diff --git a/react-native-aztec/RNTAztecView.podspec b/RNTAztecView.podspec similarity index 100% rename from react-native-aztec/RNTAztecView.podspec rename to RNTAztecView.podspec diff --git a/bin/generate-podspecs.sh b/bin/generate-podspecs.sh index 3dba3a3c20..7d399477a3 100755 --- a/bin/generate-podspecs.sh +++ b/bin/generate-podspecs.sh @@ -16,7 +16,6 @@ node_modules/react-native/ReactCommon/yoga/yoga.podspec node_modules/react-native/third-party-podspecs/Folly.podspec node_modules/react-native/third-party-podspecs/DoubleConversion.podspec node_modules/react-native/third-party-podspecs/glog.podspec -react-native-aztec/RNTAztecView.podspec EOP ) diff --git a/bundle/android/App.js b/bundle/android/App.js index 9388f8d223..4ddacec9de 100644 --- a/bundle/android/App.js +++ b/bundle/android/App.js @@ -336,7 +336,7 @@ __d(function(g,r,i,a,m,e,d){'use strict';var t=r(d[0]),o={vibrate:function(){t(' __d(function(g,r,i,a,m,e,d){'use strict';var n,t=r(d[0]),u=r(d[1]),l=r(d[2]),o=r(d[3]),s=r(d[4]);n=(function(n){function c(){return t(this,c),l(this,o(c).apply(this,arguments))}return s(c,n),u(c,[{key:"render",value:function(){return null}}],[{key:"ignoreWarnings",value:function(n){}},{key:"install",value:function(){}},{key:"uninstall",value:function(){}}]),c})(r(d[5]).Component),m.exports=n},325,[19,20,27,30,33,45]); __d(function(g,r,i,a,m,e,d){var n=r(d[0]),o=r(d[1]);m.exports=function(t,f){return'number'!=typeof t&&'window'!==t&&(t=n.findNodeHandle(t)||'window'),o.__takeSnapshot(t,f)}},326,[77,40]); __d(function(g,r,i,a,m,e,d){'use strict';var n=r(d[0]),s=n.shape({x:n.number,y:n.number});m.exports=s},327,[60]); -__d(function(g,r,i,a,m,e,d){var t=r(d[0]),l=r(d[1]);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=r(d[2]);r(d[3]);l(r(d[4]));var o=r(d[5]),c=r(d[6]),u=l(r(d[7])),s=l(r(d[8])),v=t(r(d[9]));(0,o.registerCoreBlocks)(),(0,c.registerBlockType)(v.name,v.settings),(0,c.setUnregisteredTypeHandlerName)(v.name),(0,c.unregisterBlockType)('core/code'),(0,c.unregisterBlockType)('core/more');var f=function(t){var l=t.initialData,o=t.initialHtmlModeEnabled;return void 0===l&&(l=s.default),(0,n.createElement)(u.default,{initialHtml:l,initialHtmlModeEnabled:o})};e.default=f},328,[329,1,330,338,46,806,807,1160,1209,1196]); +__d(function(g,r,i,a,m,e,d){var t=r(d[0]),l=r(d[1]);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=r(d[2]);r(d[3]);l(r(d[4]));var o=r(d[5]),c=r(d[6]),u=l(r(d[7])),s=l(r(d[8])),v=t(r(d[9]));(0,o.registerCoreBlocks)(),(0,c.registerBlockType)(v.name,v.settings),(0,c.setUnregisteredTypeHandlerName)(v.name),(0,c.unregisterBlockType)('core/code'),(0,c.unregisterBlockType)('core/more');var f=function(t){var l=t.initialData,o=t.initialHtmlModeEnabled;return void 0===l&&(l=s.default),(0,n.createElement)(u.default,{initialHtml:l,initialHtmlModeEnabled:o})};e.default=f},328,[329,1,330,338,46,806,807,1164,1211,1200]); __d(function(g,r,i,a,m,e,d){m.exports=function(t){if(t&&t.__esModule)return t;var o={};if(null!=t)for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){var c=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(t,n):{};c.get||c.set?Object.defineProperty(o,n,c):o[n]=t[n]}return o.default=t,o}},329,[]); __d(function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0});var n={renderToString:!0,RawHTML:!0};Object.defineProperty(e,"renderToString",{enumerable:!0,get:function(){return f.default}}),Object.defineProperty(e,"RawHTML",{enumerable:!0,get:function(){return l.default}});var o=r(d[1]);Object.keys(o).forEach(function(t){"default"!==t&&"__esModule"!==t&&(Object.prototype.hasOwnProperty.call(n,t)||Object.defineProperty(e,t,{enumerable:!0,get:function(){return o[t]}}))});var u=r(d[2]);Object.keys(u).forEach(function(t){"default"!==t&&"__esModule"!==t&&(Object.prototype.hasOwnProperty.call(n,t)||Object.defineProperty(e,t,{enumerable:!0,get:function(){return u[t]}}))});var c=r(d[3]);Object.keys(c).forEach(function(t){"default"!==t&&"__esModule"!==t&&(Object.prototype.hasOwnProperty.call(n,t)||Object.defineProperty(e,t,{enumerable:!0,get:function(){return c[t]}}))});var f=t(r(d[4])),l=t(r(d[5]))},330,[1,331,333,334,335,337]); __d(function(g,r,i,a,m,e,d){var n=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.concatChildren=function(){for(var n=arguments.length,t=new Array(n),o=0;o',nbsp __d(function(g,r,i,a,m,e,d){var t={area:1,base:1,basefont:1,br:1,col:1,frame:1,hr:1,img:1,input:1,isindex:1,link:1,meta:1,param:1,embed:1},n=r(d[0]).HTMLEncode;e.stringifyElement=function(o){var s,l=o.tagName.toLowerCase(),u={start:'<'+l,end:''},E=[],c=null;if(o.attributes.length)for(u.start+=' ',s=0;s'),u};var o=/SCRIPT|STYLE/i;function s(t){if(t.ownerDocument&&t.ownerDocument._fullDT)return t.ownerDocument._fullDT;var n='-1?n+='\''+t.systemId+'\'':n+='"'+t.systemId+'"'),n+='>'}e.makeHtmlGenerator=function(t,l){return t=t||'',l=l||'',function u(E,c,T){var _,f,N='';if(T=T||'',E){E.nodeType&&E.nodeType===E.ENTITY_REFERENCE_NODE&&(E=E._entity);var D=c||o.test(E.nodeName);switch(E.nodeType){case E.ELEMENT_NODE:N+=T+(_=e.stringifyElement(E)).start;var h=E._childNodes.length;if(h>0){for(E._childNodes[0].nodeType!==E.TEXT_NODE&&(N+=l),f=0;f0&&void 0!==arguments[0]?arguments[0]:{},s={},p=[];function l(){p.forEach(function(t){return t()})}function b(t,n){if('function'!=typeof n.getSelectors)throw new TypeError('config.getSelectors must be a function');if('function'!=typeof n.getActions)throw new TypeError('config.getActions must be a function');if('function'!=typeof n.subscribe)throw new TypeError('config.subscribe must be a function');s[t]=n,n.subscribe(l)}var y={registerGenericStore:b,stores:s,namespaces:s,subscribe:function(t){return p.push(t),function(){p=(0,u.without)(p,t)}},select:function(t){var n=s[t];return n&&n.getSelectors()},dispatch:function(t){var n=s[t];return n&&n.getActions()},use:function(t,n){return y=(0,o.default)({},y,t(y,n))}};return y.registerStore=function(t,n){if(!n.reducer)throw new TypeError('Must specify store reducer');var o=(0,c.default)(t,n,y);return b(t,o),o.store},Object.entries((0,o.default)({'core/data':f.default},t)).map(function(t){var o=(0,n.default)(t,2),u=o[0],c=o[1];return y.registerStore(u,c)}),v=y,(0,u.mapValues)(v,function(t,n){return'function'!=typeof t?t:function(){return y[n].apply(null,arguments)}});var v};var n=t(r(d[1])),o=t(r(d[2])),u=r(d[3]),c=t(r(d[4])),f=t(r(d[5]))},812,[1,9,43,332,813,836]); -__d(function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,n,u){var o,c,s,l=n.reducer,w=f(l,t,u);n.actions&&(c=v(n.actions,w));n.selectors&&(o=p(n.selectors,w));if(n.resolvers){var _=h(u,t),S=y(n.resolvers,o,_,w);s=S.resolvers,o=S.selectors}return{reducer:l,store:w,actions:c,selectors:o,resolvers:s,getSelectors:function(){return o},getActions:function(){return c},subscribe:w&&function(t){var n=w.getState();w.subscribe(function(){var u=w.getState(),o=u!==n;n=u,o&&t()})}}};var n=t(r(d[1])),u=t(r(d[2])),o=r(d[3]),c=r(d[4]),s=t(r(d[5])),l=t(r(d[6]));function f(t,n,u){var f=[(0,o.applyMiddleware)((0,l.default)(u,n),s.default)];return'undefined'!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION__&&f.push(window.__REDUX_DEVTOOLS_EXTENSION__({name:n,instanceId:n})),(0,o.createStore)(t,(0,c.flowRight)(f))}function p(t,n){return(0,c.mapValues)(t,function(t){return function(){for(var u=arguments.length,o=new Array(u),c=0;c3?f-3:0),v=3;v3?f-3:0),v=3;v0&&void 0!==arguments[0]?arguments[0]:{},f=arguments.length>1?arguments[1]:void 0,l=f[n];if(void 0===l)return v;var c=o(v[l],f);return c===v[l]?v:(0,u.default)({},v,(0,t.default)({},l,c))}}}},839,[1,44,43]); __d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.getIsResolving=t,e.hasStartedResolution=function(n,o,u){var s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[];return void 0!==t(n,o,u,s)},e.hasFinishedResolution=function(n,o,u){var s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[];return!1===t(n,o,u,s)},e.isResolving=function(n,o,u){var s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[];return!0===t(n,o,u,s)},e.getCachedResolvers=function(n,t){return n.hasOwnProperty(t)?n[t]:{}};var n=r(d[0]);function t(t,o,u,s){var v=(0,n.get)(t,[o,u]);if(v)return v.get(s)}},840,[332]); __d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.startResolution=function(t,n,o){return{type:'START_RESOLUTION',reducerKey:t,selectorName:n,args:o}},e.finishResolution=function(t,n,o){return{type:'FINISH_RESOLUTION',reducerKey:t,selectorName:n,args:o}},e.invalidateResolution=function(t,n,o){return{type:'INVALIDATE_RESOLUTION',reducerKey:t,selectorName:n,args:o}}},841,[]); -__d(function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"controls",{enumerable:!0,get:function(){return n.default}}),Object.defineProperty(e,"persistence",{enumerable:!0,get:function(){return u.default}});var n=t(r(d[1])),u=t(r(d[2]))},842,[1,843,858]); +__d(function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"controls",{enumerable:!0,get:function(){return n.default}}),Object.defineProperty(e,"persistence",{enumerable:!0,get:function(){return u.default}});var n=t(r(d[1])),u=t(r(d[2]))},842,[1,843,857]); __d(function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){return{registerStore:function(l,c){var f=t.registerStore(l,c);if(c.controls){var s=(0,u.default)(c.controls),p=(0,o.applyMiddleware)(s);(0,n.default)(f,p(function(){return f})(c.reducer)),t.namespaces[l].supportControls=!0}return f}}};var n=t(r(d[1])),o=r(d[2]),u=t(r(d[3]))},843,[1,8,814,844]); __d(function(g,r,i,a,m,e,d){var n=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return function(f){var o=(0,u.default)(n,f.dispatch);return function(n){return function(u){return(0,t.default)(u)?o(u):n(u)}}}};var t=n(r(d[1])),u=n(r(d[2]))},844,[1,845,846]); __d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){return!!t&&'Generator'===t["function"==typeof Symbol?Symbol.toStringTag:"@@toStringTag"]}},845,[]); -__d(function(g,r,i,a,m,e,d){var n=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},v=arguments.length>1?arguments[1]:void 0,l=(0,u.map)(n,function(n,t){return function(u,v,l,p,s){if(!(0,c.isActionOfType)(u,t))return!1;var h=n(u);return(0,o.default)(h)?h.then(p,function(n){return s((0,f.default)(n))}):v(h),!0}});l.push(function(n,t){if(!(0,c.isAction)(n))return!1;return v(n),t(),!0});var p=(0,t.create)(l);return function(n){return new Promise(function(t,o){return p(n,function(n){'object'==typeof n&&(0,u.isString)(n.type)&&v(n),t(n)},o)})}};var t=r(d[1]),u=r(d[2]),o=n(r(d[3])),f=n(r(d[4])),c=r(d[5])},846,[1,847,332,834,856,857]); +__d(function(g,r,i,a,m,e,d){var n=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},c=arguments.length>1?arguments[1]:void 0,v=(0,u.map)(n,function(n,t){return function(u,c,v,l,s){if(!(0,f.isActionOfType)(u,t))return!1;var h=n(u);return(0,o.default)(h)?h.then(l,s):c(h),!0}});v.push(function(n,t){if(!(0,f.isAction)(n))return!1;return c(n),t(),!0});var l=(0,t.create)(v);return function(n){return new Promise(function(t,u){return l(n,function(n){(0,f.isAction)(n)&&c(n),t(n)},u)})}};var t=r(d[1]),u=r(d[2]),o=n(r(d[3])),f=r(d[4])},846,[1,847,332,834,856]); __d(function(g,r,i,a,m,e,d){'use strict';Object.defineProperty(e,"__esModule",{value:!0}),e.wrapControls=e.asyncControls=e.create=void 0;var t=r(d[0]);Object.keys(t).forEach(function(n){"default"!==n&&Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[n]}})});var n=c(r(d[1])),o=c(r(d[2])),u=c(r(d[3]));function c(t){return t&&t.__esModule?t:{default:t}}e.create=n.default,e.asyncControls=o.default,e.wrapControls=u.default},847,[848,850,853,855]); __d(function(g,r,i,a,m,e,d){'use strict';Object.defineProperty(e,"__esModule",{value:!0}),e.createChannel=e.subscribe=e.cps=e.apply=e.call=e.invoke=e.delay=e.race=e.join=e.fork=e.error=e.all=void 0;var n,t=r(d[0]),u=(n=t)&&n.__esModule?n:{default:n};e.all=function(n){return{type:u.default.all,value:n}},e.error=function(n){return{type:u.default.error,error:n}},e.fork=function(n){for(var t=arguments.length,c=Array(t>1?t-1:0),o=1;o1?t-1:0),o=1;o2?c-2:0),l=2;l1?t-1:0),o=1;o0&&void 0!==arguments[0]?arguments[0]:n,o=arguments.length>1?arguments[1]:void 0;return t(u,o)}}function v(t){var o,s=t.storage,v=void 0===s?f:s,l=t.storageKey,p=void 0===l?c:l;return{get:function(){if(void 0===o){var t=v.getItem(p);if(null===t)o={};else try{o=JSON.parse(t)}catch(t){o={}}}return o},set:function(t,f){o=(0,u.default)({},o,(0,n.default)({},t,f)),v.setItem(p,JSON.stringify(o))}}}},858,[1,44,43,332,859]); -__d(function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o,l=t(r(d[1]));try{(o=window.localStorage).setItem('__wpDataTestLocalStorage',''),o.removeItem('__wpDataTestLocalStorage')}catch(t){o=l.default}var _=o;e.default=_},859,[1,860]); -__d(function(g,r,i,a,m,e,d){var t;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n={getItem:function(n){return t&&t[n]?t[n]:null},setItem:function(u,l){t||n.clear(),t[u]=String(l)},clear:function(){t=Object.create(null)}},u=n;e.default=u},860,[]); -__d(function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=r(d[1]),s=t(r(d[2])),u=t(r(d[3])),o=t(r(d[4])),c=t(r(d[5])),l=t(r(d[6])),h=t(r(d[7])),f=t(r(d[8])),p=t(r(d[9])),v=r(d[10]),b=r(d[11]),y=function(t){return(0,v.createHigherOrderComponent)(function(v){var y={};function S(n){return t(n.registry.select,n.ownProps,n.registry)||y}var P=(function(t){function b(t){var n;return(0,u.default)(this,b),(n=(0,c.default)(this,(0,l.default)(b).call(this,t))).onStoreChange=n.onStoreChange.bind((0,f.default)((0,f.default)(n))),n.subscribe(t.registry),n.mergeProps=S(t),n}return(0,h.default)(b,t),(0,o.default)(b,[{key:"componentDidMount",value:function(){this.canRunSelection=!0,this.hasQueuedSelection&&(this.hasQueuedSelection=!1,this.onStoreChange())}},{key:"componentWillUnmount",value:function(){this.canRunSelection=!1,this.unsubscribe()}},{key:"shouldComponentUpdate",value:function(t,n){var s=t.registry!==this.props.registry;s&&(this.unsubscribe(),this.subscribe(t.registry));var u=s||!(0,p.default)(this.props.ownProps,t.ownProps);if(this.state===n&&!u)return!1;if(u){var o=S(t);(0,p.default)(this.mergeProps,o)||(this.mergeProps=o)}return!0}},{key:"onStoreChange",value:function(){if(this.canRunSelection){var t=S(this.props);(0,p.default)(this.mergeProps,t)||(this.mergeProps=t,this.setState({}))}else this.hasQueuedSelection=!0}},{key:"subscribe",value:function(t){this.unsubscribe=t.subscribe(this.onStoreChange)}},{key:"render",value:function(){return(0,n.createElement)(v,(0,s.default)({},this.props.ownProps,this.mergeProps))}}]),b})(n.Component);return function(t){return(0,n.createElement)(b.RegistryConsumer,null,function(s){return(0,n.createElement)(P,{ownProps:t,registry:s})})}},'withSelect')};e.default=y},861,[1,330,8,19,20,27,30,33,29,862,865,874]); -__d(function(g,r,i,a,m,e,d){'use strict';var t=r(d[0]),c=r(d[1]),n=Array.isArray;m.exports=function(u,o){if(u&&o){if(u.constructor===Object&&o.constructor===Object)return t(u,o);if(n(u)&&n(o))return c(u,o)}return u===o}},862,[863,864]); -__d(function(g,r,i,a,m,e,d){'use strict';var t=Object.keys;m.exports=function(n,u){var f,c,o,s;if(n===u)return!0;if(f=t(n),c=t(u),f.length!==c.length)return!1;for(o=0;o0&&void 0!==arguments[0]?arguments[0]:{};return(0,v.default)(function(v){return(function(p){function S(){var n;return(0,f.default)(this,S),(n=(0,s.default)(this,(0,o.default)(S).apply(this,arguments))).setState=n.setState.bind((0,h.default)((0,h.default)(n))),n.state=t,n}return(0,c.default)(S,p),(0,l.default)(S,[{key:"render",value:function(){return(0,n.createElement)(v,(0,u.default)({},this.props,this.state,{setState:this.setState}))}}]),S})(n.Component)},'withState')};var n=r(d[1]),u=t(r(d[2])),f=t(r(d[3])),l=t(r(d[4])),s=t(r(d[5])),o=t(r(d[6])),c=t(r(d[7])),h=t(r(d[8])),v=t(r(d[9]))},873,[1,330,8,19,20,27,30,33,29,866]); +__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.isAction=t,e.isActionOfType=function(n,c){return t(n)&&n.type===c};var n=r(d[0]);function t(t){return(0,n.isPlainObject)(t)&&(0,n.isString)(t.type)}},856,[332]); +__d(function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.withInitialState=S,e.createPersistenceInterface=y,e.default=function(t,c){var v=y(c);function l(t,o,f){var c;if(Array.isArray(f)){var l=f.reduce(function(t,o){return(0,n.default)(t,(0,u.default)({},o,function(t,n){return n.nextState[o]}))},{});c=h((0,s.combineReducers)(l))}else c=function(t,n){return n.nextState};var S=c(void 0,{nextState:t()});return function(n){var u=c(S,{nextState:t()});return u!==S&&(v.set(o,u),S=u),n}}return{registerStore:function(n,u){if(!u.persist)return t.registerStore(n,u);var c=v.get()[n];u=(0,o.default)({},u,{reducer:S(u.reducer,c)});var s=t.registerStore(n,u);return s.dispatch=(0,f.flow)([s.dispatch,l(s.getState,n,u.persist)]),s}}},e.withLazySameState=void 0;var n=t(r(d[1])),u=t(r(d[2])),o=t(r(d[3])),f=r(d[4]),c=t(r(d[5])),s=r(d[6]),v=c.default,l='WP_DATA';function S(t,n){return function(){var u=arguments.length>0&&void 0!==arguments[0]?arguments[0]:n,o=arguments.length>1?arguments[1]:void 0;return t(u,o)}}var h=function(t){return function(n,u){return u.nextState===n?n:t(n,u)}};function y(t){var n,f=t.storage,c=void 0===f?v:f,s=t.storageKey,S=void 0===s?l:s;return{get:function(){if(void 0===n){var t=c.getItem(S);if(null===t)n={};else try{n=JSON.parse(t)}catch(t){n={}}}return n},set:function(t,f){n=(0,o.default)({},n,(0,u.default)({},t,f)),c.setItem(S,JSON.stringify(n))}}}e.withLazySameState=h},857,[1,8,44,43,332,858,809]); +__d(function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o,l=t(r(d[1]));try{(o=window.localStorage).setItem('__wpDataTestLocalStorage',''),o.removeItem('__wpDataTestLocalStorage')}catch(t){o=l.default}var _=o;e.default=_},858,[1,859]); +__d(function(g,r,i,a,m,e,d){var t;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n={getItem:function(n){return t&&t[n]?t[n]:null},setItem:function(u,l){t||n.clear(),t[u]=String(l)},clear:function(){t=Object.create(null)}},u=n;e.default=u},859,[]); +__d(function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=r(d[1]),s=t(r(d[2])),o=t(r(d[3])),u=t(r(d[4])),c=t(r(d[5])),l=t(r(d[6])),h=t(r(d[7])),f=t(r(d[8])),p=r(d[9]),y=r(d[10]),b=r(d[11]),v=r(d[12]),S=r(d[13]),P=(0,b.createQueue)(),C=function(t){return(0,y.createHigherOrderComponent)(function(y){var b={};function C(n){return t(n.registry.select,n.ownProps,n.registry)||b}var w=(function(t){function b(t){var n;return(0,o.default)(this,b),(n=(0,c.default)(this,(0,l.default)(b).call(this,t))).onStoreChange=n.onStoreChange.bind((0,f.default)((0,f.default)(n))),n.subscribe(t.registry),n.mergeProps=C(t),n}return(0,h.default)(b,t),(0,u.default)(b,[{key:"componentDidMount",value:function(){this.canRunSelection=!0,this.hasQueuedSelection&&(this.hasQueuedSelection=!1,this.onStoreChange())}},{key:"componentWillUnmount",value:function(){this.canRunSelection=!1,this.unsubscribe(),P.flush(this)}},{key:"shouldComponentUpdate",value:function(t,n){var s=t.registry!==this.props.registry,o=t.isAsync!==this.props.isAsync;s&&(this.unsubscribe(),this.subscribe(t.registry)),o&&P.flush(this);var u=s||!(0,p.isShallowEqualObjects)(this.props.ownProps,t.ownProps);if(this.state===n&&!u&&!o)return!1;if(u||o){var c=C(t);(0,p.isShallowEqualObjects)(this.mergeProps,c)||(this.mergeProps=c)}return!0}},{key:"onStoreChange",value:function(){if(this.canRunSelection){var t=C(this.props);(0,p.isShallowEqualObjects)(this.mergeProps,t)||(this.mergeProps=t,this.setState({}))}else this.hasQueuedSelection=!0}},{key:"subscribe",value:function(t){var n=this;this.unsubscribe=t.subscribe(function(){n.props.isAsync?P.add(n,n.onStoreChange):n.onStoreChange()})}},{key:"render",value:function(){return(0,n.createElement)(y,(0,s.default)({},this.props.ownProps,this.mergeProps))}}]),b})(n.Component);return function(t){return(0,n.createElement)(S.AsyncModeConsumer,null,function(s){return(0,n.createElement)(v.RegistryConsumer,null,function(o){return(0,n.createElement)(w,{ownProps:t,registry:o,isAsync:s})})})}},'withSelect')};e.default=C},860,[1,330,8,19,20,27,30,33,29,861,864,873,874,875]); +__d(function(g,r,i,a,m,e,d){'use strict';var t=r(d[0]),s=r(d[1]),o=Array.isArray;m.exports=function(c,u){if(c&&u){if(c.constructor===Object&&u.constructor===Object)return t(c,u);if(o(c)&&o(u))return s(c,u)}return c===u},m.exports.isShallowEqualObjects=t,m.exports.isShallowEqualArrays=s},861,[862,863]); +__d(function(g,r,i,a,m,e,d){'use strict';var t=Object.keys;m.exports=function(n,u){var f,c,o,s;if(n===u)return!0;if(f=t(n),c=t(u),f.length!==c.length)return!1;for(o=0;o0&&void 0!==arguments[0]?arguments[0]:{};return(0,v.default)(function(v){return(function(p){function S(){var n;return(0,f.default)(this,S),(n=(0,s.default)(this,(0,o.default)(S).apply(this,arguments))).setState=n.setState.bind((0,h.default)((0,h.default)(n))),n.state=t,n}return(0,c.default)(S,p),(0,l.default)(S,[{key:"render",value:function(){return(0,n.createElement)(v,(0,u.default)({},this.props,this.state,{setState:this.setState}))}}]),S})(n.Component)},'withState')};var n=r(d[1]),u=t(r(d[2])),f=t(r(d[3])),l=t(r(d[4])),s=t(r(d[5])),o=t(r(d[6])),c=t(r(d[7])),h=t(r(d[8])),v=t(r(d[9]))},872,[1,330,8,19,20,27,30,33,29,865]); +__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.createQueue=void 0;var n=window.requestIdleCallback?window.requestIdleCallback:window.requestAnimationFrame;e.createQueue=function(){var t=[],u=new WeakMap,l=!1,o=function o(c){do{if(0===t.length)return void(l=!1);var f=t.shift();u.get(f)(),u.delete(f)}while(c&&c.timeRemaining&&c.timeRemaining()>0);n(o)};return{add:function(c,f){u.has(c)||t.push(c),u.set(c,f),l||(l=!0,n(o))},flush:function(n){if(!u.has(n))return!1;u.delete(n);var l=t.indexOf(n);return t.splice(l,1),!0}}}},873,[]); __d(function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.RegistryConsumer=void 0;var o=r(d[1]),u=t(r(d[2])),n=(0,o.createContext)(u.default),s=n.Consumer,v=n.Provider,f=s;e.RegistryConsumer=f;var l=v;e.default=l},874,[1,330,811]); -__d(function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=r(d[1]),n=t(r(d[2])),s=t(r(d[3])),p=t(r(d[4])),u=t(r(d[5])),c=t(r(d[6])),f=t(r(d[7])),y=r(d[8]),h=r(d[9]),l=r(d[10]),P=function(t){return(0,h.createHigherOrderComponent)(function(h){var P=(function(l){function P(t){var o;return(0,s.default)(this,P),(o=(0,u.default)(this,(0,c.default)(P).apply(this,arguments))).proxyProps={},o.setProxyProps(t),o}return(0,f.default)(P,l),(0,p.default)(P,[{key:"proxyDispatch",value:function(o){for(var n,s=arguments.length,p=new Array(s>1?s-1:0),u=1;u0&&void 0!==arguments[0]?arguments[0]:{},l=arguments.length>1?arguments[1]:void 0;switch(l.type){case'ADD_BLOCK_TYPES':return(0,u.default)({},t,(0,c.keyBy)((0,c.map)(l.blockTypes,function(t){return(0,c.omit)(t,'styles ')}),'name'));case'REMOVE_BLOCK_TYPES':return(0,c.omit)(t,l.names)}return t}function E(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=arguments.length>1?arguments[1]:void 0;switch(o.type){case'ADD_BLOCK_TYPES':return(0,u.default)({},t,(0,c.mapValues)((0,c.keyBy)(o.blockTypes,'name'),function(l){return(0,c.uniqBy)((0,n.default)((0,c.get)(l,['styles'],[])).concat((0,n.default)((0,c.get)(t,[l.name],[]))),function(t){return t.name})}));case'ADD_BLOCK_STYLES':return(0,u.default)({},t,(0,l.default)({},o.blockName,(0,c.uniqBy)((0,n.default)((0,c.get)(t,[o.blockName],[])).concat((0,n.default)(o.styles)),function(t){return t.name})));case'REMOVE_BLOCK_STYLES':return(0,u.default)({},t,(0,l.default)({},o.blockName,(0,c.filter)((0,c.get)(t,[o.blockName],[]),function(t){return-1===o.styleNames.indexOf(t.name)})))}return t}function k(t){return function(){var l=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n=arguments.length>1?arguments[1]:void 0;switch(n.type){case'REMOVE_BLOCK_TYPES':return-1!==n.names.indexOf(l)?null:l;case t:return n.name||null}return l}}e.DEFAULT_CATEGORIES=_;var y=k('SET_DEFAULT_BLOCK_NAME');e.defaultBlockName=y;var B=k('SET_FREEFORM_FALLBACK_BLOCK_NAME');e.freeformFallbackBlockName=B;var T=k('SET_UNREGISTERED_FALLBACK_BLOCK_NAME');function b(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:_,l=arguments.length>1?arguments[1]:void 0;switch(l.type){case'SET_CATEGORIES':return l.categories||[];case'UPDATE_CATEGORY':if(!l.category||(0,c.isEmpty)(l.category))return t;if((0,c.find)(t,['slug',l.slug]))return(0,c.map)(t,function(t){return t.slug===l.slug?(0,u.default)({},t,l.category):t})}return t}e.unregisteredFallbackBlockName=T;var v=(0,o.combineReducers)({blockTypes:f,blockStyles:E,defaultBlockName:y,freeformFallbackBlockName:B,unregisteredFallbackBlockName:T,categories:b});e.default=v},876,[1,44,15,43,332,809,877]); -__d(function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.setLocaleData=_,e.__=function(t,n){return p(n,void 0,t)},e._x=function(t,n,o){return p(o,n,t)},e._n=function(t,n,o,u){return p(u,void 0,t,n,o)},e._nx=function(t,n,o,u,l){return p(l,u,t,n,o)},e.sprintf=function(t){try{for(var n=arguments.length,o=new Array(n>1?n-1:0),u=1;u1&&void 0!==arguments[1]?arguments[1]:'default';v.data[o]=(0,n.default)({},f,v.data[o],t),v.data[o]['']=(0,n.default)({},f[''],v.data[o][''])}function p(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:'default',n=arguments.length>1?arguments[1]:void 0,o=arguments.length>2?arguments[2]:void 0,u=arguments.length>3?arguments[3]:void 0,l=arguments.length>4?arguments[4]:void 0;return v.data[t]||_(void 0,t),v.dcnpgettext(t,n,o,u,l)}},877,[1,43,878,883,884]); -__d(function(g,r,i,a,m,e,d){'use strict';var t,o=(t=r(d[0]))&&'object'==typeof t&&'default'in t?t.default:t,s={contextDelimiter:"\x04",onMissingKey:null};function n(t){var o,s,n;for(o=t.split(';'),s=0;s':5,'>=':5,'==':4,'!=':4,'&&':3,'||':2,'?':1,'?:':1},t=['(','?'],u={')':['('],':':['?','?:']},n=/<=|>=|==|!=|&&|\|\||\?:|\(|!|\*|\/|%|\+|-|<|>|\?|\)|:/,m.exports=function(f){for(var p,h,o,c,b=[],x=[];p=f.match(n);){for(h=p[0],(o=f.substr(0,p.index).trim())&&b.push(o);c=x.pop();){if(u[h]){if(u[h][0]===c){h=u[h][1]||h;break}}else if(t.indexOf(c)>=0||s[c]':function(n,t){return n>t},'>=':function(n,t){return n>=t},'==':function(n,t){return n===t},'!=':function(n,t){return n!==t},'&&':function(n,t){return n&&t},'||':function(n,t){return n||t},'?:':function(n,t,u){if(n)throw t;return u}};m.exports=function(t,u){var c,o,f,l,s=[];for(c=0;c=0),f[8]){case'b':p=parseInt(p,10).toString(2);break;case'c':p=String.fromCharCode(parseInt(p,10));break;case'd':case'i':p=parseInt(p,10);break;case'j':p=JSON.stringify(p,null,f[6]?parseInt(f[6]):0);break;case'e':p=f[7]?parseFloat(p).toExponential(f[7]):parseFloat(p).toExponential();break;case'f':p=f[7]?parseFloat(p).toFixed(f[7]):parseFloat(p);break;case'g':p=f[7]?String(Number(p.toPrecision(f[7]))):parseFloat(p);break;case'o':p=(parseInt(p,10)>>>0).toString(8);break;case's':p=String(p),p=f[7]?p.substring(0,f[7]):p;break;case't':p=String(!!p),p=f[7]?p.substring(0,f[7]):p;break;case'T':p=Object.prototype.toString.call(p).slice(8,-1).toLowerCase(),p=f[7]?p.substring(0,f[7]):p;break;case'u':p=parseInt(p,10)>>>0;break;case'v':p=p.valueOf(),p=f[7]?p.substring(0,f[7]):p;break;case'x':p=(parseInt(p,10)>>>0).toString(16);break;case'X':p=(parseInt(p,10)>>>0).toString(16).toUpperCase()}t.json.test(f[8])?_+=p:(!t.number.test(f[8])||h&&!f[3]?y='':(y=h?'+':'-',p=p.toString().replace(t.sign,'')),b=f[4]?'0'===f[4]?'0':f[4].charAt(1):' ',x=f[6]-(y+p).length,l=f[6]&&x>0?b.repeat(x):'',_+=f[5]?y+p+l:'0'===b?y+l+p:l+y+p)}return _}var p=Object.create(null);function c(n){if(p[n])return p[n];for(var s,o=n,c=[],u=0;o;){if(null!==(s=t.text.exec(o)))c.push(s[0]);else if(null!==(s=t.modulo.exec(o)))c.push('%');else{if(null===(s=t.placeholder.exec(o)))throw new SyntaxError('[sprintf] unexpected placeholder');if(s[2]){u|=1;var f=[],l=s[2],b=[];if(null===(b=t.key.exec(l)))throw new SyntaxError('[sprintf] failed to parse named argument key');for(f.push(b[1]);''!==(l=l.substring(b[0].length));)if(null!==(b=t.key_access.exec(l)))f.push(b[1]);else{if(null===(b=t.index_access.exec(l)))throw new SyntaxError('[sprintf] failed to parse named argument key');f.push(b[1])}s[2]=f}else u|=2;if(3===u)throw new Error('[sprintf] mixing positional and named placeholders is not (yet) supported');c.push(s)}o=o.substring(s[0].length)}return p[n]=c}void 0!==e&&(e.sprintf=n,e.vsprintf=s),'undefined'!=typeof window&&(window.sprintf=n,window.vsprintf=s,'function'==typeof define&&define.amd&&define(function(){return{sprintf:n,vsprintf:s}}))})()},884,[]); -__d(function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.getBlockType=l,e.getBlockStyles=function(t,n){return t.blockStyles[n]},e.getCategories=function(t){return t.categories},e.getDefaultBlockName=function(t){return t.defaultBlockName},e.getFreeformFallbackBlockName=function(t){return t.freeformFallbackBlockName},e.getUnregisteredFallbackBlockName=function(t){return t.unregisteredFallbackBlockName},e.hasBlockSupport=k,e.hasChildBlocksWithInserterSupport=e.hasChildBlocks=e.getBlockSupport=e.getChildBlockNames=e.getBlockTypes=void 0;var n=t(r(d[1])),o=r(d[2]),c=(0,n.default)(function(t){return Object.values(t.blockTypes)},function(t){return[t.blockTypes]});function l(t,n){return t.blockTypes[n]}e.getBlockTypes=c;var u=(0,n.default)(function(t,n){return(0,o.map)((0,o.filter)(t.blockTypes,function(t){return(0,o.includes)(t.parent,n)}),function(t){return t.name})},function(t){return[t.blockTypes]});e.getChildBlockNames=u;var s=function(t,n,c,u){var s='string'==typeof n?l(t,n):n;return(0,o.get)(s,['supports',c],u)};function k(t,n,o,c){return!!s(t,n,o,c)}e.getBlockSupport=s;e.hasChildBlocks=function(t,n){return u(t,n).length>0};e.hasChildBlocksWithInserterSupport=function(t,n){return(0,o.some)(u(t,n),function(n){return k(t,n,'inserter',!0)})}},885,[1,886,332]); -__d(function(g,r,i,a,m,e,d){'use strict';var n,t;function u(n){return[n]}function l(){var n={clear:function(){n.head=null}};return n}function p(n,t,u){var l;if(n.length!==t.length)return!1;for(l=u;l1&&void 0!==arguments[1]?arguments[1]:{},u=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],f=(0,c.getBlockType)(t),s=(0,l.reduce)(f.attributes,function(t,u,o){var l=n[o];return void 0!==l?t[o]=l:u.hasOwnProperty('default')&&(t[o]=u.default),-1!==['node','children'].indexOf(u.source)&&('string'==typeof t[o]?t[o]=[t[o]]:Array.isArray(t[o])||(t[o]=[])),t},{});return{clientId:(0,o.default)(),name:t,isValid:!0,attributes:s,innerBlocks:u}},e.cloneBlock=function t(n){var l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};var f=arguments.length>2?arguments[2]:void 0;var c=(0,o.default)();return(0,u.default)({},n,{clientId:c,attributes:(0,u.default)({},n.attributes,l),innerBlocks:f||n.innerBlocks.map(function(n){return t(n)})})},e.getPossibleBlockTransformations=function(t){if((0,l.isEmpty)(t))return[];var u=(0,l.first)(t);if(t.length>1&&!(0,l.every)(t,{name:u.name}))return[];var o=p(t),f=v(t);return(0,l.uniq)((0,n.default)(o).concat((0,n.default)(f)))},e.findTransform=y,e.getBlockTransforms=B,e.switchToBlockType=function(t,n){var o=(0,l.castArray)(t),s=o.length>1,k=o[0],p=k.name;if(s&&!(0,l.every)(o,function(t){return t.name===p}))return null;var v,b=B('from',n),h=y(B('to',p),function(t){return'block'===t.type&&-1!==t.blocks.indexOf(n)&&(!s||t.isMultiBlock)})||y(b,function(t){return'block'===t.type&&-1!==t.blocks.indexOf(p)&&(!s||t.isMultiBlock)});if(!h)return null;v=h.isMultiBlock?h.transform(o.map(function(t){return t.attributes})):h.transform(k.attributes);if(!(0,l.isObjectLike)(v))return null;if((v=(0,l.castArray)(v)).some(function(t){return!(0,c.getBlockType)(t.name)}))return null;var T=(0,l.findIndex)(v,function(t){return t.name===n});if(T<0)return null;return v.map(function(n,o){var l=(0,u.default)({},n,{clientId:o===T?k.clientId:n.clientId});return(0,f.applyFilters)('blocks.switchToBlockType.transformedBlock',l,t)})};var n=t(r(d[1])),u=t(r(d[2])),o=t(r(d[3])),l=r(d[4]),f=r(d[5]),c=r(d[6]),s=r(d[7]);var k=function(t,n,u){if((0,l.isEmpty)(u))return!1;var o=u.length>1,f=(0,l.first)(u);if(!(!o||t.isMultiBlock))return!1;if(!('block'===t.type))return!1;if(!('from'!==n||-1!==t.blocks.indexOf(f.name)))return!1;if((0,l.isFunction)(t.isMatch)){var c=t.isMultiBlock?u.map(function(t){return t.attributes}):f.attributes;if(!t.isMatch(c))return!1}return!0},p=function(t){if((0,l.isEmpty)(t))return[];var n=(0,c.getBlockTypes)();return(0,l.filter)(n,function(n){return!!y(B('from',n.name),function(n){return k(n,'from',t)})})},v=function(t){if((0,l.isEmpty)(t))return[];var n=(0,l.first)(t),u=B('to',(0,c.getBlockType)(n.name).name),o=(0,l.filter)(u,function(n){return k(n,'to',t)});return(0,l.flatMap)(o,function(t){return t.blocks}).map(function(t){return(0,c.getBlockType)(t)})};function y(t,n){for(var u=(0,f.createHooks)(),o=function(o){var l=t[o];n(l)&&u.addFilter('transform','transform/'+o.toString(),function(t){return t||l},l.priority)},l=0;l>>((3&t)<<3)&255;return u}}m.exports=n},891,[]); -__d(function(g,r,i,a,m,e,d){for(var t=[],n=0;n<256;++n)t[n]=(n+256).toString(16).substr(1);m.exports=function(n,o){var u=o||0,f=t;return f[n[u++]]+f[n[u++]]+f[n[u++]]+f[n[u++]]+'-'+f[n[u++]]+f[n[u++]]+'-'+f[n[u++]]+f[n[u++]]+'-'+f[n[u++]]+f[n[u++]]+'-'+f[n[u++]]+f[n[u++]]+f[n[u++]]+f[n[u++]]+f[n[u++]]+f[n[u++]]}},892,[]); -__d(function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"createHooks",{enumerable:!0,get:function(){return o.default}}),e.filters=e.actions=e.didFilter=e.didAction=e.doingFilter=e.doingAction=e.currentFilter=e.currentAction=e.applyFilters=e.doAction=e.removeAllFilters=e.removeAllActions=e.hasFilter=e.hasAction=e.removeFilter=e.removeAction=e.addFilter=e.addAction=void 0;var o=t(r(d[1])),l=(0,o.default)(),n=l.addAction,c=l.addFilter,A=l.removeAction,F=l.removeFilter,s=l.hasAction,v=l.hasFilter,u=l.removeAllActions,f=l.removeAllFilters,p=l.doAction,h=l.applyFilters,y=l.currentAction,_=l.currentFilter,b=l.doingAction,j=l.doingFilter,O=l.didAction,P=l.didFilter,k=l.actions,H=l.filters;e.filters=H,e.actions=k,e.didFilter=P,e.didAction=O,e.doingFilter=j,e.doingAction=b,e.currentFilter=_,e.currentAction=y,e.applyFilters=h,e.doAction=p,e.removeAllFilters=f,e.removeAllActions=u,e.hasFilter=v,e.hasAction=s,e.removeFilter=F,e.removeAction=A,e.addFilter=c,e.addAction=n},893,[1,894]); -__d(function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var l=t(r(d[1])),u=t(r(d[2])),n=t(r(d[3])),f=t(r(d[4])),o=t(r(d[5])),c=t(r(d[6])),v=t(r(d[7]));var A=function(){var t=Object.create(null),A=Object.create(null);return t.__current=[],A.__current=[],{addAction:(0,l.default)(t),addFilter:(0,l.default)(A),removeAction:(0,u.default)(t),removeFilter:(0,u.default)(A),hasAction:(0,n.default)(t),hasFilter:(0,n.default)(A),removeAllActions:(0,u.default)(t,!0),removeAllFilters:(0,u.default)(A,!0),doAction:(0,f.default)(t),applyFilters:(0,f.default)(A,!0),currentAction:(0,o.default)(t),currentFilter:(0,o.default)(A),doingAction:(0,c.default)(t),doingFilter:(0,c.default)(A),didAction:(0,v.default)(t),didFilter:(0,v.default)(A),actions:t,filters:A}};e.default=A},894,[1,895,898,899,900,901,902,903]); -__d(function(g,r,i,a,m,e,d){var o=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=o(r(d[1])),t=o(r(d[2])),c=r(d[3]);var f=function(o){return function(f,u,l){var s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:10;if((0,t.default)(f)&&(0,n.default)(u))if('function'==typeof l)if('number'==typeof s){var h={callback:l,priority:s,namespace:u};if(o[f]){for(var p=o[f].handlers,v=0;vs);)v++;p.splice(v,0,h),(o.__current||[]).forEach(function(o){o.name===f&&o.currentIndex>=v&&o.currentIndex++})}else o[f]={handlers:[h],runs:0};'hookAdded'!==f&&(0,c.doAction)('hookAdded',f,u,l,s)}else console.error('If specified, the hook priority must be a number.');else console.error('The hook callback must be a function.')}};e.default=f},895,[1,896,897,893]); -__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=function(n){return'string'!=typeof n||''===n?(console.error('The namespace must be a non-empty string.'),!1):!!/^[a-zA-Z][a-zA-Z0-9_.\-\/]*$/.test(n)||(console.error('The namespace can only contain numbers, letters, dashes, periods, underscores and slashes.'),!1)};e.default=n},896,[]); -__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=function(o){return'string'!=typeof o||''===o?(console.error('The hook name must be a non-empty string.'),!1):/^__/.test(o)?(console.error('The hook name cannot begin with `__`.'),!1):!!/^[a-zA-Z][a-zA-Z0-9_.-]*$/.test(o)||(console.error('The hook name can only contain numbers, letters, dashes, periods and underscores.'),!1)};e.default=o},897,[]); -__d(function(g,r,i,a,m,e,d){var n=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=n(r(d[1])),u=n(r(d[2])),o=r(d[3]);var f=function(n,f){return function(c,l){if((0,u.default)(c)&&(f||(0,t.default)(l))){if(!n[c])return 0;var s=0;if(f)s=n[c].handlers.length,n[c]={runs:n[c].runs,handlers:[]};else for(var v=n[c].handlers,h=function(t){v[t].namespace===l&&(v.splice(t,1),s++,(n.__current||[]).forEach(function(n){n.name===c&&n.currentIndex>=t&&n.currentIndex--}))},_=v.length-1;_>=0;_--)h(_);return'hookRemoved'!==c&&(0,o.doAction)('hookRemoved',c,l),s}}};e.default=f},898,[1,896,897,893]); -__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=function(n){return function(t){return t in n}};e.default=n},899,[]); -__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=function(n,u){return function(t){n[t]||(n[t]={handlers:[],runs:0}),n[t].runs++;for(var l=n[t].handlers,c=arguments.length,o=new Array(c>1?c-1:0),f=1;f3)return void console.error('The block "'+o+'" can have a maximum of 3 keywords.');if(!('category'in k))return void console.error('The block "'+o+'" must have a category.');if('category'in k&&!(0,c.some)((0,s.select)('core/blocks').getCategories(),{slug:k.category}))return void console.error('The block "'+o+'" must have a registered category.');if(!('title'in k)||''===k.title)return void console.error('The block "'+o+'" must have a title.');if('string'!=typeof k.title)return void console.error('Block titles must be strings.');if(k.icon=(0,n.normalizeIconObject)(k.icon),!(0,n.isValidIcon)(k.icon.src))return void console.error("The icon passed is invalid. The icon should be a string, an element, a function, or an object following the specifications documented in https://wordpress.org/gutenberg/handbook/block-api/#icon-optional");return(0,s.dispatch)('core/blocks').addBlockTypes(k),k},e.unregisterBlockType=function(o){var t=(0,s.select)('core/blocks').getBlockType(o);if(!t)return void console.error('Block "'+o+'" is not registered.');return(0,s.dispatch)('core/blocks').removeBlockTypes(o),t},e.setFreeformContentHandlerName=function(o){(0,s.dispatch)('core/blocks').setFreeformFallbackBlockName(o)},e.getFreeformContentHandlerName=function(){return(0,s.select)('core/blocks').getFreeformFallbackBlockName()},e.setUnregisteredTypeHandlerName=function(o){(0,s.dispatch)('core/blocks').setUnregisteredFallbackBlockName(o)},e.getUnregisteredTypeHandlerName=function(){return(0,s.select)('core/blocks').getUnregisteredFallbackBlockName()},e.setDefaultBlockName=function(o){(0,s.dispatch)('core/blocks').setDefaultBlockName(o)},e.getDefaultBlockName=function(){return(0,s.select)('core/blocks').getDefaultBlockName()},e.getBlockType=function(o){return(0,s.select)('core/blocks').getBlockType(o)},e.getBlockTypes=function(){return(0,s.select)('core/blocks').getBlockTypes()},e.getBlockSupport=function(o,t,c){return(0,s.select)('core/blocks').getBlockSupport(o,t,c)},e.hasBlockSupport=function(o,t,c){return(0,s.select)('core/blocks').hasBlockSupport(o,t,c)},e.isReusableBlock=function(o){return'core/block'===o.name},e.unregisterBlockStyle=e.registerBlockStyle=e.hasChildBlocksWithInserterSupport=e.hasChildBlocks=e.getChildBlockNames=void 0;var t=o(r(d[1])),c=r(d[2]),l=r(d[3]),s=r(d[4]),n=r(d[5]),u={};e.getChildBlockNames=function(o){return(0,s.select)('core/blocks').getChildBlockNames(o)};e.hasChildBlocks=function(o){return(0,s.select)('core/blocks').hasChildBlocks(o)};e.hasChildBlocksWithInserterSupport=function(o){return(0,s.select)('core/blocks').hasChildBlocksWithInserterSupport(o)};e.registerBlockStyle=function(o,t){(0,s.dispatch)('core/blocks').addBlockStyles(o,t)};e.unregisterBlockStyle=function(o,t){(0,s.dispatch)('core/blocks').removeBlockStyles(o,t)}},904,[1,43,332,893,809,905]); -__d(function(g,r,i,a,m,e,d){var t=r(d[0]),n=r(d[1]);Object.defineProperty(e,"__esModule",{value:!0}),e.isUnmodifiedDefaultBlock=function t(n){var o=(0,f.getDefaultBlockName)();if(n.name!==o)return!1;t.block&&t.block.name===o||(t.block=(0,s.createBlock)(o));var u=t.block;var c=(0,f.getBlockType)(o);return(0,l.every)(c.attributes,function(t,o){return u.attributes[o]===n.attributes[o]})},e.isValidIcon=k,e.normalizeIconObject=function(t){t||(t='block-default');if(k(t))return{src:t};if((0,l.has)(t,['background'])){var n=(0,u.default)(t.background);return(0,o.default)({},t,{foreground:t.foreground?t.foreground:(0,u.mostReadable)(n,b,{includeFallbackColors:!0,level:'AA',size:'large'}).toHexString(),shadowColor:n.setAlpha(.3).toRgbString()})}return t},e.normalizeBlockType=function(t){if((0,l.isString)(t))return(0,f.getBlockType)(t);return t};var o=n(r(d[2])),l=r(d[3]),u=t(r(d[4])),c=r(d[5]),f=r(d[6]),s=r(d[7]),b=['#191e23','#f8f9f9'];function k(t){return!!t&&((0,l.isString)(t)||(0,c.isValidElement)(t)||(0,l.isFunction)(t)||t instanceof c.Component)}},905,[329,1,43,332,906,330,904,889]); -__d(function(g,r,i,a,m,e,d){!(function(t){var n=/^\s+/,s=/\s+$/,o=0,f=t.round,h=t.min,l=t.max,u=t.random;function c(t,n){if(t=t||'',n=n||{},t instanceof c)return t;if(!(this instanceof c))return new c(t,n);var s=b(t);this._originalInput=t,this._r=s.r,this._g=s.g,this._b=s.b,this._a=s.a,this._roundA=f(100*this._a)/100,this._format=n.format||s.format,this._gradientType=n.gradientType,this._r<1&&(this._r=f(this._r)),this._g<1&&(this._g=f(this._g)),this._b<1&&(this._b=f(this._b)),this._ok=s.ok,this._tc_id=o++}function b(t){var n,s,o,f={r:0,g:0,b:0},u=1,c=null,b=null,_=null,v=!1,A=!1;return"string"==typeof t&&(t=W(t)),"object"==typeof t&&(Q(t.r)&&Q(t.g)&&Q(t.b)?(n=t.r,s=t.g,o=t.b,f={r:255*P(n,255),g:255*P(s,255),b:255*P(o,255)},v=!0,A="%"===String(t.r).substr(-1)?"prgb":"rgb"):Q(t.h)&&Q(t.s)&&Q(t.v)?(c=V(t.s),b=V(t.v),f=y(t.h,c,b),v=!0,A="hsv"):Q(t.h)&&Q(t.s)&&Q(t.l)&&(c=V(t.s),_=V(t.l),f=p(t.h,c,_),v=!0,A="hsl"),t.hasOwnProperty("a")&&(u=t.a)),u=O(u),{ok:v,format:t.format||A,r:h(255,l(f.r,0)),g:h(255,l(f.g,0)),b:h(255,l(f.b,0)),a:u}}function _(t,n,s){t=P(t,255),n=P(n,255),s=P(s,255);var o,f,u=l(t,n,s),c=h(t,n,s),b=(u+c)/2;if(u==c)o=f=0;else{var _=u-c;switch(f=b>.5?_/(2-u-c):_/(u+c),u){case t:o=(n-s)/_+(n1&&(s-=1),s<.16666666666666666?t+6*(n-t)*s:s<.5?n:s<.6666666666666666?t+(n-t)*(.6666666666666666-s)*6:t}if(t=P(t,360),n=P(n,100),s=P(s,100),0===n)o=f=h=s;else{var u=s<.5?s*(1+n):s+n-s*n,c=2*s-u;o=l(c,u,t+.3333333333333333),f=l(c,u,t),h=l(c,u,t-.3333333333333333)}return{r:255*o,g:255*f,b:255*h}}function v(t,n,s){t=P(t,255),n=P(n,255),s=P(s,255);var o,f,u=l(t,n,s),c=h(t,n,s),b=u,_=u-c;if(f=0===u?0:_/u,u==c)o=0;else{switch(u){case t:o=(n-s)/_+(n>1)+720)%360;--n;)o.h=(o.h+f)%360,h.push(c(o));return h}function E(t,n){n=n||6;for(var s=c(t).toHsv(),o=s.h,f=s.s,h=s.v,l=[],u=1/n;n--;)l.push(c({h:o,s:f,v:h})),h=(h+u)%1;return l}c.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var t=this.toRgb();return(299*t.r+587*t.g+114*t.b)/1e3},getLuminance:function(){var n,s,o,f=this.toRgb();return n=f.r/255,s=f.g/255,o=f.b/255,.2126*(n<=.03928?n/12.92:t.pow((n+.055)/1.055,2.4))+.7152*(s<=.03928?s/12.92:t.pow((s+.055)/1.055,2.4))+.0722*(o<=.03928?o/12.92:t.pow((o+.055)/1.055,2.4))},setAlpha:function(t){return this._a=O(t),this._roundA=f(100*this._a)/100,this},toHsv:function(){var t=v(this._r,this._g,this._b);return{h:360*t.h,s:t.s,v:t.v,a:this._a}},toHsvString:function(){var t=v(this._r,this._g,this._b),n=f(360*t.h),s=f(100*t.s),o=f(100*t.v);return 1==this._a?"hsv("+n+", "+s+"%, "+o+"%)":"hsva("+n+", "+s+"%, "+o+"%, "+this._roundA+")"},toHsl:function(){var t=_(this._r,this._g,this._b);return{h:360*t.h,s:t.s,l:t.l,a:this._a}},toHslString:function(){var t=_(this._r,this._g,this._b),n=f(360*t.h),s=f(100*t.s),o=f(100*t.l);return 1==this._a?"hsl("+n+", "+s+"%, "+o+"%)":"hsla("+n+", "+s+"%, "+o+"%, "+this._roundA+")"},toHex:function(t){return A(this._r,this._g,this._b,t)},toHexString:function(t){return'#'+this.toHex(t)},toHex8:function(t){return x(this._r,this._g,this._b,this._a,t)},toHex8String:function(t){return'#'+this.toHex8(t)},toRgb:function(){return{r:f(this._r),g:f(this._g),b:f(this._b),a:this._a}},toRgbString:function(){return 1==this._a?"rgb("+f(this._r)+", "+f(this._g)+", "+f(this._b)+")":"rgba("+f(this._r)+", "+f(this._g)+", "+f(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:f(100*P(this._r,255))+"%",g:f(100*P(this._g,255))+"%",b:f(100*P(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return 1==this._a?"rgb("+f(100*P(this._r,255))+"%, "+f(100*P(this._g,255))+"%, "+f(100*P(this._b,255))+"%)":"rgba("+f(100*P(this._r,255))+"%, "+f(100*P(this._g,255))+"%, "+f(100*P(this._b,255))+"%, "+this._roundA+")"},toName:function(){return 0===this._a?"transparent":!(this._a<1)&&(j[A(this._r,this._g,this._b,!0)]||!1)},toFilter:function(t){var n='#'+k(this._r,this._g,this._b,this._a),s=n,o=this._gradientType?"GradientType = 1, ":"";if(t){var f=c(t);s='#'+k(f._r,f._g,f._b,f._a)}return"progid:DXImageTransform.Microsoft.gradient("+o+"startColorstr="+n+",endColorstr="+s+")"},toString:function(t){var n=!!t;t=t||this._format;var s=!1,o=this._a<1&&this._a>=0;return n||!o||"hex"!==t&&"hex6"!==t&&"hex3"!==t&&"hex4"!==t&&"hex8"!==t&&"name"!==t?("rgb"===t&&(s=this.toRgbString()),"prgb"===t&&(s=this.toPercentageRgbString()),"hex"!==t&&"hex6"!==t||(s=this.toHexString()),"hex3"===t&&(s=this.toHexString(!0)),"hex4"===t&&(s=this.toHex8String(!0)),"hex8"===t&&(s=this.toHex8String()),"name"===t&&(s=this.toName()),"hsl"===t&&(s=this.toHslString()),"hsv"===t&&(s=this.toHsvString()),s||this.toHexString()):"name"===t&&0===this._a?this.toName():this.toRgbString()},clone:function(){return c(this.toString())},_applyModification:function(t,n){var s=t.apply(null,[this].concat([].slice.call(n)));return this._r=s._r,this._g=s._g,this._b=s._b,this.setAlpha(s._a),this},lighten:function(){return this._applyModification(R,arguments)},brighten:function(){return this._applyModification(F,arguments)},darken:function(){return this._applyModification(C,arguments)},desaturate:function(){return this._applyModification(w,arguments)},saturate:function(){return this._applyModification(S,arguments)},greyscale:function(){return this._applyModification(H,arguments)},spin:function(){return this._applyModification(q,arguments)},_applyCombination:function(t,n){return t.apply(null,[this].concat([].slice.call(n)))},analogous:function(){return this._applyCombination(z,arguments)},complement:function(){return this._applyCombination(M,arguments)},monochromatic:function(){return this._applyCombination(E,arguments)},splitcomplement:function(){return this._applyCombination(N,arguments)},triad:function(){return this._applyCombination(I,arguments)},tetrad:function(){return this._applyCombination(L,arguments)}},c.fromRatio=function(t,n){if("object"==typeof t){var s={};for(var o in t)t.hasOwnProperty(o)&&(s[o]="a"===o?t[o]:V(t[o]));t=s}return c(t,n)},c.equals=function(t,n){return!(!t||!n)&&c(t).toRgbString()==c(n).toRgbString()},c.random=function(){return c.fromRatio({r:u(),g:u(),b:u()})},c.mix=function(t,n,s){s=0===s?0:s||50;var o=c(t).toRgb(),f=c(n).toRgb(),h=s/100;return c({r:(f.r-o.r)*h+o.r,g:(f.g-o.g)*h+o.g,b:(f.b-o.b)*h+o.b,a:(f.a-o.a)*h+o.a})},c.readability=function(n,s){var o=c(n),f=c(s);return(t.max(o.getLuminance(),f.getLuminance())+.05)/(t.min(o.getLuminance(),f.getLuminance())+.05)},c.isReadable=function(t,n,s){var o,f,h=c.readability(t,n);switch(f=!1,(o=Y(s)).level+o.size){case"AAsmall":case"AAAlarge":f=h>=4.5;break;case"AAlarge":f=h>=3;break;case"AAAsmall":f=h>=7}return f},c.mostReadable=function(t,n,s){var o,f,h,l,u=null,b=0;f=(s=s||{}).includeFallbackColors,h=s.level,l=s.size;for(var _=0;_b&&(b=o,u=c(n[_]));return c.isReadable(t,u,{level:h,size:l})||!f?u:(s.includeFallbackColors=!1,c.mostReadable(t,["#fff","#000"],s))};var T=c.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},j=c.hexNames=(function(t){var n={};for(var s in t)t.hasOwnProperty(s)&&(n[t[s]]=s);return n})(T);function O(t){return t=parseFloat(t),(isNaN(t)||t<0||t>1)&&(t=1),t}function P(n,s){U(n)&&(n="100%");var o=B(n);return n=h(s,l(0,parseFloat(n))),o&&(n=parseInt(n*s,10)/100),t.abs(n-s)<1e-6?1:n%s/parseFloat(s)}function $(t){return h(1,l(0,t))}function D(t){return parseInt(t,16)}function U(t){return"string"==typeof t&&-1!=t.indexOf('.')&&1===parseFloat(t)}function B(t){return"string"==typeof t&&-1!=t.indexOf('%')}function G(t){return 1==t.length?'0'+t:''+t}function V(t){return t<=1&&(t=100*t+"%"),t}function X(n){return t.round(255*parseFloat(n)).toString(16)}function J(t){return D(t)/255}var K={CSS_UNIT:new RegExp("(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)"),rgb:new RegExp("rgb[\\s|\\(]+((?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?))[,|\\s]+((?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?))[,|\\s]+((?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?))\\s*\\)?"),rgba:new RegExp("rgba[\\s|\\(]+((?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?))[,|\\s]+((?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?))[,|\\s]+((?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?))[,|\\s]+((?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?))\\s*\\)?"),hsl:new RegExp("hsl[\\s|\\(]+((?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?))[,|\\s]+((?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?))[,|\\s]+((?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?))\\s*\\)?"),hsla:new RegExp("hsla[\\s|\\(]+((?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?))[,|\\s]+((?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?))[,|\\s]+((?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?))[,|\\s]+((?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?))\\s*\\)?"),hsv:new RegExp("hsv[\\s|\\(]+((?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?))[,|\\s]+((?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?))[,|\\s]+((?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?))\\s*\\)?"),hsva:new RegExp("hsva[\\s|\\(]+((?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?))[,|\\s]+((?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?))[,|\\s]+((?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?))[,|\\s]+((?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?))\\s*\\)?"),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/};function Q(t){return!!K.CSS_UNIT.exec(t)}function W(t){t=t.replace(n,'').replace(s,'').toLowerCase();var o,f=!1;if(T[t])t=T[t],f=!0;else if('transparent'==t)return{r:0,g:0,b:0,a:0,format:"name"};return(o=K.rgb.exec(t))?{r:o[1],g:o[2],b:o[3]}:(o=K.rgba.exec(t))?{r:o[1],g:o[2],b:o[3],a:o[4]}:(o=K.hsl.exec(t))?{h:o[1],s:o[2],l:o[3]}:(o=K.hsla.exec(t))?{h:o[1],s:o[2],l:o[3],a:o[4]}:(o=K.hsv.exec(t))?{h:o[1],s:o[2],v:o[3]}:(o=K.hsva.exec(t))?{h:o[1],s:o[2],v:o[3],a:o[4]}:(o=K.hex8.exec(t))?{r:D(o[1]),g:D(o[2]),b:D(o[3]),a:J(o[4]),format:f?"name":"hex8"}:(o=K.hex6.exec(t))?{r:D(o[1]),g:D(o[2]),b:D(o[3]),format:f?"name":"hex"}:(o=K.hex4.exec(t))?{r:D(o[1]+''+o[1]),g:D(o[2]+''+o[2]),b:D(o[3]+''+o[3]),a:J(o[4]+''+o[4]),format:f?"name":"hex8"}:!!(o=K.hex3.exec(t))&&{r:D(o[1]+''+o[1]),g:D(o[2]+''+o[2]),b:D(o[3]+''+o[3]),format:f?"name":"hex"}}function Y(t){var n,s;return n=((t=t||{level:"AA",size:"small"}).level||"AA").toUpperCase(),s=(t.size||"small").toLowerCase(),"AA"!==n&&"AAA"!==n&&(n="AA"),"small"!==s&&"large"!==s&&(s="small"),{level:n,size:s}}void 0!==m&&m.exports?m.exports=c:'function'==typeof define&&define.amd?define(function(){return c}):window.tinycolor=c})(Math)},906,[]); -__d(function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.isOfType=C,e.isOfTypes=T,e.isAmbiguousStringSource=function(t){var n=t.source,o=t.type;return A.has(n)&&'string'==typeof o},e.asType=function(t,n){switch(n){case'string':return String(t);case'boolean':return Boolean(t);case'object':return Object(t);case'null':return null;case'array':return Array.isArray(t)?t:Array.from(t);case'integer':case'number':return Number(t)}return t},e.matcherFromSource=V,e.parseWithAttributeSchema=x,e.getBlockAttribute=N,e.getBlockAttributes=S,e.getMigratedBlock=j,e.createBlockWithFallback=F,e.default=e.parseWithGrammar=e.toBooleanAttributeMatcher=void 0;var n=t(r(d[1])),o=t(r(d[2])),c=t(r(d[3])),u=r(d[4]),s=r(d[5]),l=r(d[6]),f=r(d[7]),v=r(d[8]),p=r(d[9]),b=r(d[10]),y=r(d[11]),h=r(d[12]),k=r(d[13]),B=r(d[14]),A=new Set(['attribute','html','text','tag']),w=function(t){return(0,s.flow)([t,function(t){return void 0!==t}])};function C(t,n){switch(n){case'string':return'string'==typeof t;case'boolean':return'boolean'==typeof t;case'object':return!!t&&t.constructor===Object;case'null':return null===t;case'array':return Array.isArray(t);case'integer':case'number':return'number'==typeof t}return!0}function T(t,n){return n.some(function(n){return C(t,n)})}function V(t){switch(t.source){case'attribute':var n=(0,k.attr)(t.selector,t.attribute);return'boolean'===t.type&&(n=w(n)),n;case'html':return(0,k.html)(t.selector,t.multiline);case'text':return(0,k.text)(t.selector);case'children':return(0,k.children)(t.selector);case'node':return(0,k.node)(t.selector);case'query':var o=(0,s.mapValues)(t.query,V);return(0,k.query)(t.selector,o);case'tag':return(0,s.flow)([(0,k.prop)(t.selector,'nodeName'),function(t){return t.toLowerCase()}]);default:console.error("Unknown source type \""+t.source+"\"")}}function x(t,n){return(0,u.parse)(t,V(n))}function N(t,n,o,c){var u,l=n.type;switch(n.source){case void 0:u=c?c[t]:void 0;break;case'attribute':case'property':case'html':case'text':case'children':case'node':case'query':case'tag':u=x(o,n)}return void 0===l||T(u,(0,s.castArray)(l))||(u=void 0),void 0===u?n.default:u}function S(t,n){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},c=(0,B.normalizeBlockType)(t),u=(0,s.mapValues)(c.attributes,function(t,c){return N(c,t,n,o)});return(0,f.applyFilters)('blocks.getBlockAttributes',u,c,n,o)}function j(t){var u=(0,p.getBlockType)(t.name),l=u.deprecated;if(!l||!l.length)return t;for(var f=t,v=f.originalContent,b=f.attributes,h=f.innerBlocks,k=0;k1&&void 0!==arguments[1])||arguments[1],l=[];if(''===t.trim())return'';if(-1!==(t+='\n').indexOf(''),s=c.pop();t='';for(var u=0;u';l.push([b,f.substr(h)+'']),t+=f.substr(0,h)+b}else t+=f}t+=s}-1!==(t=o(t=(t=(t=(t=t.replace(/\s*/g,'\n\n')).replace(new RegExp("(<(?:table|thead|tfoot|caption|col|colgroup|tbody|tr|td|th|div|dl|dd|dt|ul|ol|li|pre|form|map|area|blockquote|address|math|style|p|h[1-6]|hr|fieldset|legend|section|article|aside|hgroup|header|footer|nav|figure|figcaption|details|menu|summary)[s/>])",'g'),'\n\n$1')).replace(new RegExp("()",'g'),'$1\n\n')).replace(/\r\n|\r/g,'\n'),{'\n':' \x3c!-- wpnl --\x3e '})).indexOf('\s*/g,''));-1!==t.indexOf('')&&(t=(t=(t=t.replace(/(]*>)\s*/g,'$1')).replace(/\s*<\/object>/g,'')).replace(/\s*(<\/?(?:param|embed)[^>]*>)\s*/g,'$1'));-1===t.indexOf('\]]*[>\]])\s*/g,'$1')).replace(/\s*([<\[]\/(?:audio|video)[>\]])/g,'$1')).replace(/\s*(<(?:source|track)[^>]*>)\s*/g,'$1'));-1!==t.indexOf(']*>)/,'$1')).replace(/<\/figcaption>\s*/,''));var v=(t=t.replace(/\n\n+/g,'\n\n')).split(/\n\s*\n/).filter(Boolean);t='',v.forEach(function(p){t+='

'+p.replace(/^\n*|\n*$/g,'')+'

\n'}),t=(t=(t=(t=(t=(t=(t=(t=t.replace(/

\s*<\/p>/g,'')).replace(/

([^<]+)<\/(div|address|form)>/g,'

$1

')).replace(new RegExp("

s*(]*>)s*

",'g'),'$1')).replace(/

(/g,'$1')).replace(/

]*)>/gi,'

')).replace(/<\/blockquote><\/p>/g,'

')).replace(new RegExp("

s*(]*>)",'g'),'$1')).replace(new RegExp("(]*>)s*

",'g'),'$1'),n&&(t=(t=(t=(t=t.replace(/<(script|style).*?<\/\\1>/g,function(t){return t[0].replace(/\n/g,'')})).replace(/
|/g,'
')).replace(/(
)?\s*\n/g,function(t,p){return p?t:'
\n'})).replace(//g,'\n'));t=(t=(t=t.replace(new RegExp("(]*>)s*
",'g'),'$1')).replace(/
(\s*<\/?(?:p|li|div|dl|dd|dt|th|pre|td|ul|ol)[^>]*>)/g,'$1')).replace(/\n<\/p>$/g,'

'),l.forEach(function(n){var l=(0,p.default)(n,2),o=l[0],c=l[1];t=t.replace(o,c)}),-1!==t.indexOf('\x3c!-- wpnl --\x3e')&&(t=t.replace(/\s?\s?/g,'\n'));return t},e.removep=function(t){var p=[],n=!1,l=!1;if(!t)return'';-1===t.indexOf(']*>[\s\S]*?<\/\1>/g,function(t){return p.push(t),''}));-1!==t.indexOf(']*>[\s\S]+?<\/pre>/g,function(t){return(t=(t=t.replace(/
(\r\n|\n)?/g,'')).replace(/<\/?p( [^>]*)?>(\r\n|\n)?/g,'')).replace(/\r?\n/g,'')}));-1!==t.indexOf('[caption')&&(l=!0,t=t.replace(/\[caption[\s\S]+?\[\/caption\]/g,function(t){return t.replace(/]*)>/g,'').replace(/[\r\n\t]+/,'')}));-1!==(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=t.replace(new RegExp("\\s*\\s*",'g'),'\n')).replace(new RegExp("\\s*<((?:blockquote|ul|ol|li|dl|dt|dd|table|thead|tbody|tfoot|tr|th|td|h[1-6]|fieldset|figure|div|p)(?: [^>]*)?)>",'g'),'\n<$1>')).replace(/(

]+>.*?)<\/p>/g,'$1')).replace(/]*)?>\s*

/gi,'\n\n')).replace(/\s*

/gi,'')).replace(/\s*<\/p>\s*/gi,'\n\n')).replace(/\n[\s\u00a0]+\n/g,'\n\n')).replace(/(\s*)
\s*/gi,function(t,p){return p&&-1!==p.indexOf('\n')?'\n\n':'\n'})).replace(/\s*

\s*/g,'
\n')).replace(/\s*\[caption([^\[]+)\[\/caption\]\s*/gi,'\n\n[caption$1[/caption]\n\n')).replace(/caption\]\n\n+\[caption/g,'caption]\n\n[caption')).replace(new RegExp("\\s*<((?:blockquote|ul|ol|li|dl|dt|dd|table|thead|tbody|tfoot|tr|th|td|h[1-6]|fieldset|figure|pre)(?: [^>]*)?)\\s*>",'g'),'\n<$1>')).replace(new RegExp("\\s*\\s*",'g'),'\n')).replace(/<((li|dt|dd)[^>]*)>/g,' \t<$1>')).indexOf('/g,'\n'));-1!==t.indexOf(']*)?>\s*/g,'\n\n\n\n'));-1!==t.indexOf('/g,function(t){return t.replace(/[\r\n]+/g,'')}));t=(t=(t=(t=t.replace(/<\/p#>/g,'

\n')).replace(/\s*(

]+>[\s\S]*?<\/p>)/g,'\n$1')).replace(/^\s+/,'')).replace(/[\s\u00a0]+$/,''),n&&(t=t.replace(//g,'\n'));l&&(t=t.replace(/]*)>/g,''));p.length&&(t=t.replace(//g,function(){return p.shift()}));return t};var p=t(r(d[1])),n=new RegExp("(<((?=!--|!\\[CDATA\\[)((?=!-)!(?:-(?!->)[^\\-]*)*(?:--\x3e)?|!\\[CDATA\\[[^\\]]*(?:](?!]>)[^\\]]*)*?(?:]]>)?)|[^>]*>?))");function l(t){for(var p,l=[],o=t;p=o.match(n);)l.push(o.slice(0,p.index)),l.push(p[0]),o=o.slice(p.index+p[0].length);return o.length&&l.push(o),l}function o(t,p){for(var n=l(t),o=!1,c=Object.keys(p),s=1;s)[^])*)\5|[^]*?)}\s+)?(\/)?-->/g;function f(n,t,o,u,s){return{blockName:n,attrs:t,innerBlocks:o,innerHTML:u,innerContent:s}}function p(n){return f(null,{},[],n,[n])}function k(n,t,o,u,s){return{block:n,tokenStart:t,tokenLength:o,prevOffset:u||t+o,leadingHtmlStart:s}}function b(){var n=h(),c=(0,l.default)(n,5),b=c[0],v=c[1],S=c[2],_=c[3],C=c[4],M=s.length,z=_>o?o:null;switch(b){case'no-more-tokens':if(0===M)return O(),!1;if(1===M)return L(),!1;for(;01?o-1:0),s=1;s"===t?(this.delegate.finishComment(),this.state='beforeData'):(this.delegate.appendToCommentData(t),this.state='comment')},commentStartDash:function(){var t=this.consume();"-"===t?this.state='commentEnd':">"===t?(this.delegate.finishComment(),this.state='beforeData'):(this.delegate.appendToCommentData("-"),this.state='comment')},comment:function(){var t=this.consume();"-"===t?this.state='commentEndDash':this.delegate.appendToCommentData(t)},commentEndDash:function(){var t=this.consume();"-"===t?this.state='commentEnd':(this.delegate.appendToCommentData("-"+t),this.state='comment')},commentEnd:function(){var t=this.consume();">"===t?(this.delegate.finishComment(),this.state='beforeData'):(this.delegate.appendToCommentData("--"+t),this.state='comment')},tagName:function(){var s=this.consume();(0,t.isSpace)(s)?this.state='beforeAttributeName':"/"===s?this.state='selfClosingStartTag':">"===s?(this.delegate.finishTag(),this.state='beforeData'):this.delegate.appendToTagName(s)},beforeAttributeName:function(){var s=this.peek();(0,t.isSpace)(s)?this.consume():"/"===s?(this.state='selfClosingStartTag',this.consume()):">"===s?(this.consume(),this.delegate.finishTag(),this.state='beforeData'):'='===s?(this.delegate.reportSyntaxError("attribute name cannot start with equals sign"),this.state='attributeName',this.delegate.beginAttribute(),this.consume(),this.delegate.appendToAttributeName(s)):(this.state='attributeName',this.delegate.beginAttribute())},attributeName:function(){var s=this.peek();(0,t.isSpace)(s)?(this.state='afterAttributeName',this.consume()):"/"===s?(this.delegate.beginAttributeValue(!1),this.delegate.finishAttributeValue(),this.consume(),this.state='selfClosingStartTag'):"="===s?(this.state='beforeAttributeValue',this.consume()):">"===s?(this.delegate.beginAttributeValue(!1),this.delegate.finishAttributeValue(),this.consume(),this.delegate.finishTag(),this.state='beforeData'):'"'===s||"'"===s||'<'===s?(this.delegate.reportSyntaxError(s+" is not a valid character within attribute names"),this.consume(),this.delegate.appendToAttributeName(s)):(this.consume(),this.delegate.appendToAttributeName(s))},afterAttributeName:function(){var s=this.peek();(0,t.isSpace)(s)?this.consume():"/"===s?(this.delegate.beginAttributeValue(!1),this.delegate.finishAttributeValue(),this.consume(),this.state='selfClosingStartTag'):"="===s?(this.consume(),this.state='beforeAttributeValue'):">"===s?(this.delegate.beginAttributeValue(!1),this.delegate.finishAttributeValue(),this.consume(),this.delegate.finishTag(),this.state='beforeData'):(this.delegate.beginAttributeValue(!1),this.delegate.finishAttributeValue(),this.consume(),this.state='attributeName',this.delegate.beginAttribute(),this.delegate.appendToAttributeName(s))},beforeAttributeValue:function(){var s=this.peek();(0,t.isSpace)(s)?this.consume():'"'===s?(this.state='attributeValueDoubleQuoted',this.delegate.beginAttributeValue(!0),this.consume()):"'"===s?(this.state='attributeValueSingleQuoted',this.delegate.beginAttributeValue(!0),this.consume()):">"===s?(this.delegate.beginAttributeValue(!1),this.delegate.finishAttributeValue(),this.consume(),this.delegate.finishTag(),this.state='beforeData'):(this.state='attributeValueUnquoted',this.delegate.beginAttributeValue(!1),this.consume(),this.delegate.appendToAttributeValue(s))},attributeValueDoubleQuoted:function(){var t=this.consume();'"'===t?(this.delegate.finishAttributeValue(),this.state='afterAttributeValueQuoted'):"&"===t?this.delegate.appendToAttributeValue(this.consumeCharRef('"')||"&"):this.delegate.appendToAttributeValue(t)},attributeValueSingleQuoted:function(){var t=this.consume();"'"===t?(this.delegate.finishAttributeValue(),this.state='afterAttributeValueQuoted'):"&"===t?this.delegate.appendToAttributeValue(this.consumeCharRef("'")||"&"):this.delegate.appendToAttributeValue(t)},attributeValueUnquoted:function(){var s=this.peek();(0,t.isSpace)(s)?(this.delegate.finishAttributeValue(),this.consume(),this.state='beforeAttributeName'):"&"===s?(this.consume(),this.delegate.appendToAttributeValue(this.consumeCharRef(">")||"&")):">"===s?(this.delegate.finishAttributeValue(),this.consume(),this.delegate.finishTag(),this.state='beforeData'):(this.consume(),this.delegate.appendToAttributeValue(s))},afterAttributeValueQuoted:function(){var s=this.peek();(0,t.isSpace)(s)?(this.consume(),this.state='beforeAttributeName'):"/"===s?(this.consume(),this.state='selfClosingStartTag'):">"===s?(this.consume(),this.delegate.finishTag(),this.state='beforeData'):this.state='beforeAttributeName'},selfClosingStartTag:function(){">"===this.peek()?(this.consume(),this.delegate.markTagAsSelfClosing(),this.delegate.finishTag(),this.state='beforeData'):this.state='beforeAttributeName'},endTagOpen:function(){var s=this.consume();(0,t.isAlpha)(s)&&(this.state='tagName',this.delegate.beginEndTag(),this.delegate.appendToTagName(s.toLowerCase()))}},this.reset()}return s.prototype.reset=function(){this.state='beforeData',this.input='',this.index=0,this.line=1,this.column=0,this.tagLine=-1,this.tagColumn=-1,this.delegate.reset()},s.prototype.tokenize=function(t){this.reset(),this.tokenizePart(t),this.tokenizeEOF()},s.prototype.tokenizePart=function(s){for(this.input+=(0,t.preprocessInput)(s);this.index2&&void 0!==arguments[2]?arguments[2]:[],k=(0,p.normalizeBlockType)(t),b=k.save;if(b.prototype instanceof n.Component){var y=new b({attributes:s});b=y.render.bind(y)}var C=b({attributes:s,innerBlocks:v});if((0,o.isObject)(C)&&(0,c.hasFilter)('blocks.getSaveContent.extraProps')){var B=(0,c.applyFilters)('blocks.getSaveContent.extraProps',(0,l.default)({},C.props),k,s);(0,u.default)(B,C.props)||(C=(0,n.cloneElement)(C,B))}return C=(0,c.applyFilters)('blocks.getSaveElement',C,k,s),(0,n.createElement)(f.default,{innerBlocks:v},C)}function k(t,l,o){var c=(0,p.normalizeBlockType)(t);return(0,n.renderToString)(v(c,l,o))}function b(t,n){return(0,o.reduce)(t.attributes,function(t,l,o){var c=n[o];return void 0===c?t:void 0!==l.source?t:'default'in l&&l.default===c?t:(t[o]=c,t)},{})}function y(t){return JSON.stringify(t).replace(/--/g,"\\u002d\\u002d").replace(//g,"\\u003e").replace(/&/g,"\\u0026").replace(/\\"/g,"\\u0022")}function C(t){var n=t.originalContent;if(t.isValid||t.innerBlocks.length)try{n=k(t.name,t.attributes,t.innerBlocks)}catch(t){}return n}function B(t,n,l){var c=(0,o.isEmpty)(n)?'':y(n)+' ',u=(0,o.startsWith)(t,'core/')?t.slice(5):t;return l?"\x3c!-- wp:"+u+" "+c+"--\x3e\n"+l+"\n\x3c!-- /wp:"+u+" --\x3e":"\x3c!-- wp:"+u+" "+c+"/--\x3e"}function x(t){var n=t.name,l=(0,s.getBlockType)(n),o=C(t),c=b(l,t.attributes);switch(n){case(0,s.getFreeformContentHandlerName)():case(0,s.getUnregisteredTypeHandlerName)():return o;default:return B(n,c,o)}}},917,[1,330,43,332,893,862,904,905,918]); -__d(function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.withBlockContentContext=void 0;var n=r(d[1]),o=t(r(d[2])),l=r(d[3]),u=r(d[4]),c=(0,n.createContext)(function(){}),f=c.Consumer,C=c.Provider,v=(0,l.createHigherOrderComponent)(function(t){return function(l){return(0,n.createElement)(f,null,function(u){return(0,n.createElement)(t,(0,o.default)({},l,{BlockContent:u}))})}},'withBlockContentContext');e.withBlockContentContext=v;var h=function(t){var o=t.children,l=t.innerBlocks;return(0,n.createElement)(C,{value:function(){var t=(0,u.serialize)(l);return(0,n.createElement)(n.RawHTML,null,t)}},o)};e.default=h},918,[1,330,8,865,888]); -__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.html=function(t,n){return function(u){var o=u;if(t&&(o=u.querySelector(t)),!o)return'';if(n){for(var c='',f=o.children.length,l=0;l>16&255,u>>8&255,255&u],this.valpha=1;else{this.valpha=1;var k=Object.keys(u);'alpha'in u&&(k.splice(k.indexOf('alpha'),1),this.valpha='number'==typeof u.alpha?u.alpha:0);var x=k.sort().join('');if(!(x in l))throw new Error('Unable to parse color from object: '+JSON.stringify(u));this.model=l[x];var j=o[this.model].labels,A=[];for(v=0;vn?(o+.05)/(n+.05):(n+.05)/(o+.05)},level:function(t){var o=this.contrast(t);return o>=7.1?'AAA':o>=4.5?'AA':''},dark:function(){var t=this.rgb().color;return(299*t[0]+587*t[1]+114*t[2])/1e3<128},light:function(){return!this.dark()},negate:function(){for(var t=this.rgb(),o=0;o<3;o++)t.color[o]=255-t.color[o];return t},lighten:function(t){var o=this.hsl();return o.color[2]+=o.color[2]*t,o},darken:function(t){var o=this.hsl();return o.color[2]-=o.color[2]*t,o},saturate:function(t){var o=this.hsl();return o.color[1]+=o.color[1]*t,o},desaturate:function(t){var o=this.hsl();return o.color[1]-=o.color[1]*t,o},whiten:function(t){var o=this.hwb();return o.color[1]+=o.color[1]*t,o},blacken:function(t){var o=this.hwb();return o.color[2]+=o.color[2]*t,o},grayscale:function(){var t=this.rgb().color,o=.3*t[0]+.59*t[1]+.11*t[2];return c.rgb(o,o,o)},fade:function(t){return this.alpha(this.valpha-this.valpha*t)},opaquer:function(t){return this.alpha(this.valpha+this.valpha*t)},rotate:function(t){var o=this.hsl(),n=o.color[0];return n=(n=(n+t)%360)<0?360+n:n,o.color[0]=n,o},mix:function(t,o){var n=t.rgb(),h=this.rgb(),l=void 0===o?.5:o,s=2*l-1,u=n.alpha()-h.alpha(),f=((s*u==-1?s:(s+u)/(1+s*u))+1)/2,v=1-f;return c.rgb(f*n.red()+v*h.red(),f*n.green()+v*h.green(),f*n.blue()+v*h.blue(),n.alpha()*l+h.alpha()*(1-l))}},Object.keys(o).forEach(function(t){if(-1===h.indexOf(t)){var l=o[t].channels;c.prototype[t]=function(){if(this.model===t)return new c(this);if(arguments.length)return new c(arguments,t);var n,h='number'==typeof arguments[l]?l:this.valpha;return new c((n=o[this.model][t].raw(this.color),Array.isArray(n)?n:[n]).concat(h),t)},c[t]=function(o){return'number'==typeof o&&(o=b(n.call(arguments),l)),new c(o,t)}}}),m.exports=c},936,[937,941]); -__d(function(g,r,i,a,m,e,d){var t=r(d[0]),n=r(d[1]),s={};for(var o in t)t.hasOwnProperty(o)&&(s[t[o]]=o);var u=m.exports={to:{},get:{}};function l(t,n,s){return Math.min(Math.max(n,t),s)}function h(t){var n=t.toString(16).toUpperCase();return n.length<2?'0'+n:n}u.get=function(t){var n,s;switch(t.substring(0,3).toLowerCase()){case'hsl':n=u.get.hsl(t),s='hsl';break;case'hwb':n=u.get.hwb(t),s='hwb';break;default:n=u.get.rgb(t),s='rgb'}return n?{model:s,value:n}:null},u.get.rgb=function(n){if(!n)return null;var s,o,u,h=[0,0,0,1];if(s=n.match(/^#([a-f0-9]{6})([a-f0-9]{2})?$/i)){for(u=s[2],s=s[1],o=0;o<3;o++){var f=2*o;h[o]=parseInt(s.slice(f,f+2),16)}u&&(h[3]=Math.round(parseInt(u,16)/255*100)/100)}else if(s=n.match(/^#([a-f0-9]{3,4})$/i)){for(u=(s=s[1])[3],o=0;o<3;o++)h[o]=parseInt(s[o]+s[o],16);u&&(h[3]=Math.round(parseInt(u+u,16)/255*100)/100)}else if(s=n.match(/^rgba?\(\s*([+-]?\d+)\s*,\s*([+-]?\d+)\s*,\s*([+-]?\d+)\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)$/)){for(o=0;o<3;o++)h[o]=parseInt(s[o+1],0);s[4]&&(h[3]=parseFloat(s[4]))}else{if(!(s=n.match(/^rgba?\(\s*([+-]?[\d\.]+)\%\s*,\s*([+-]?[\d\.]+)\%\s*,\s*([+-]?[\d\.]+)\%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)$/)))return(s=n.match(/(\D+)/))?'transparent'===s[1]?[0,0,0,0]:(h=t[s[1]])?(h[3]=1,h):null:null;for(o=0;o<3;o++)h[o]=Math.round(2.55*parseFloat(s[o+1]));s[4]&&(h[3]=parseFloat(s[4]))}for(o=0;o<3;o++)h[o]=l(h[o],0,255);return h[3]=l(h[3],0,1),h},u.get.hsl=function(t){if(!t)return null;var n=t.match(/^hsla?\(\s*([+-]?(?:\d*\.)?\d+)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)$/);if(n){var s=parseFloat(n[4]);return[(parseFloat(n[1])+360)%360,l(parseFloat(n[2]),0,100),l(parseFloat(n[3]),0,100),l(isNaN(s)?1:s,0,1)]}return null},u.get.hwb=function(t){if(!t)return null;var n=t.match(/^hwb\(\s*([+-]?\d*[\.]?\d+)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)$/);if(n){var s=parseFloat(n[4]);return[(parseFloat(n[1])%360+360)%360,l(parseFloat(n[2]),0,100),l(parseFloat(n[3]),0,100),l(isNaN(s)?1:s,0,1)]}return null},u.to.hex=function(){var t=n(arguments);return'#'+h(t[0])+h(t[1])+h(t[2])+(t[3]<1?h(Math.round(255*t[3])):'')},u.to.rgb=function(){var t=n(arguments);return t.length<4||1===t[3]?'rgb('+Math.round(t[0])+', '+Math.round(t[1])+', '+Math.round(t[2])+')':'rgba('+Math.round(t[0])+', '+Math.round(t[1])+', '+Math.round(t[2])+', '+t[3]+')'},u.to.rgb.percent=function(){var t=n(arguments),s=Math.round(t[0]/255*100),o=Math.round(t[1]/255*100),u=Math.round(t[2]/255*100);return t.length<4||1===t[3]?'rgb('+s+'%, '+o+'%, '+u+'%)':'rgba('+s+'%, '+o+'%, '+u+'%, '+t[3]+')'},u.to.hsl=function(){var t=n(arguments);return t.length<4||1===t[3]?'hsl('+t[0]+', '+t[1]+'%, '+t[2]+'%)':'hsla('+t[0]+', '+t[1]+'%, '+t[2]+'%, '+t[3]+')'},u.to.hwb=function(){var t=n(arguments),s='';return t.length>=4&&1!==t[3]&&(s=', '+t[3]),'hwb('+t[0]+', '+t[1]+'%, '+t[2]+'%'+s+')'},u.to.keyword=function(t){return s[t.slice(0,3)]}},937,[938,939]); -__d(function(g,r,i,a,m,e,d){'use strict';m.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}},938,[]); -__d(function(g,r,i,a,m,e,d){'use strict';var t=r(d[0]),n=Array.prototype.concat,o=Array.prototype.slice,c=m.exports=function(c){for(var u=[],p=0,l=c.length;p=0&&(n.splice instanceof Function||Object.getOwnPropertyDescriptor(n,n.length-1)&&'String'!==n.constructor.name))}},940,[]); -__d(function(g,r,i,a,m,e,d){var n=r(d[0]),o=r(d[1]),t={};function c(n){var o=function(o){return void 0===o||null===o?o:(arguments.length>1&&(o=Array.prototype.slice.call(arguments)),n(o))};return'conversion'in n&&(o.conversion=n.conversion),o}function l(n){var o=function(o){if(void 0===o||null===o)return o;arguments.length>1&&(o=Array.prototype.slice.call(arguments));var t=n(o);if('object'==typeof t)for(var c=t.length,l=0;l1&&(o-=1)),[360*o,100*s,100*f]},u.rgb.hwb=function(n){var t=n[0],h=n[1],o=n[2];return[u.rgb.hsl(n)[0],100*(.00392156862745098*Math.min(t,Math.min(h,o))),100*(o=1-.00392156862745098*Math.max(t,Math.max(h,o)))]},u.rgb.cmyk=function(n){var t,h=n[0]/255,u=n[1]/255,o=n[2]/255;return[100*((1-h-(t=Math.min(1-h,1-u,1-o)))/(1-t)||0),100*((1-u-t)/(1-t)||0),100*((1-o-t)/(1-t)||0),100*t]},u.rgb.keyword=function(h){var u=t[h];if(u)return u;var o,s,c,l=1/0;for(var b in n)if(n.hasOwnProperty(b)){var f=n[b],M=(s=h,c=f,Math.pow(s[0]-c[0],2)+Math.pow(s[1]-c[1],2)+Math.pow(s[2]-c[2],2));M.04045?Math.pow((t+.055)/1.055,2.4):t/12.92)+.3576*(h=h>.04045?Math.pow((h+.055)/1.055,2.4):h/12.92)+.1805*(u=u>.04045?Math.pow((u+.055)/1.055,2.4):u/12.92)),100*(.2126*t+.7152*h+.0722*u),100*(.0193*t+.1192*h+.9505*u)]},u.rgb.lab=function(n){var t=u.rgb.xyz(n),h=t[0],o=t[1],s=t[2];return o/=100,s/=108.883,h=(h/=95.047)>.008856?Math.pow(h,.3333333333333333):7.787*h+.13793103448275862,[116*(o=o>.008856?Math.pow(o,.3333333333333333):7.787*o+.13793103448275862)-16,500*(h-o),200*(o-(s=s>.008856?Math.pow(s,.3333333333333333):7.787*s+.13793103448275862))]},u.hsl.rgb=function(n){var t,h,u,o,s,c=n[0]/360,l=n[1]/100,b=n[2]/100;if(0===l)return[s=255*b,s,s];t=2*b-(h=b<.5?b*(1+l):b+l-b*l),o=[0,0,0];for(var f=0;f<3;f++)(u=c+.3333333333333333*-(f-1))<0&&u++,u>1&&u--,s=6*u<1?t+6*(h-t)*u:2*u<1?h:3*u<2?t+(h-t)*(.6666666666666666-u)*6:t,o[f]=255*s;return o},u.hsl.hsv=function(n){var t=n[0],h=n[1]/100,u=n[2]/100,o=h,s=Math.max(u,.01);return h*=(u*=2)<=1?u:2-u,o*=s<=1?s:2-s,[t,100*(0===u?2*o/(s+o):2*h/(u+h)),100*((u+h)/2)]},u.hsv.rgb=function(n){var t=n[0]/60,h=n[1]/100,u=n[2]/100,o=Math.floor(t)%6,s=t-Math.floor(t),c=255*u*(1-h),l=255*u*(1-h*s),b=255*u*(1-h*(1-s));switch(u*=255,o){case 0:return[u,b,c];case 1:return[l,u,c];case 2:return[c,u,b];case 3:return[c,l,u];case 4:return[b,c,u];case 5:return[u,c,l]}},u.hsv.hsl=function(n){var t,h,u,o=n[0],s=n[1]/100,c=n[2]/100,l=Math.max(c,.01);return u=(2-s)*c,h=s*l,[o,100*(h=(h/=(t=(2-s)*l)<=1?t:2-t)||0),100*(u/=2)]},u.hwb.rgb=function(n){var t,h,u,o,s,c,l,b=n[0]/360,f=n[1]/100,M=n[2]/100,v=f+M;switch(v>1&&(f/=v,M/=v),h=1-M,u=6*b-(t=Math.floor(6*b)),0!=(1&t)&&(u=1-u),o=f+u*(h-f),t){default:case 6:case 0:s=h,c=o,l=f;break;case 1:s=o,c=h,l=f;break;case 2:s=f,c=h,l=o;break;case 3:s=f,c=o,l=h;break;case 4:s=o,c=f,l=h;break;case 5:s=h,c=f,l=o}return[255*s,255*c,255*l]},u.cmyk.rgb=function(n){var t=n[0]/100,h=n[1]/100,u=n[2]/100,o=n[3]/100;return[255*(1-Math.min(1,t*(1-o)+o)),255*(1-Math.min(1,h*(1-o)+o)),255*(1-Math.min(1,u*(1-o)+o))]},u.xyz.rgb=function(n){var t,h,u,o=n[0]/100,s=n[1]/100,c=n[2]/100;return h=-.9689*o+1.8758*s+.0415*c,u=.0557*o+-.204*s+1.057*c,t=(t=3.2406*o+-1.5372*s+-.4986*c)>.0031308?1.055*Math.pow(t,.4166666666666667)-.055:12.92*t,h=h>.0031308?1.055*Math.pow(h,.4166666666666667)-.055:12.92*h,u=u>.0031308?1.055*Math.pow(u,.4166666666666667)-.055:12.92*u,[255*(t=Math.min(Math.max(0,t),1)),255*(h=Math.min(Math.max(0,h),1)),255*(u=Math.min(Math.max(0,u),1))]},u.xyz.lab=function(n){var t=n[0],h=n[1],u=n[2];return h/=100,u/=108.883,t=(t/=95.047)>.008856?Math.pow(t,.3333333333333333):7.787*t+.13793103448275862,[116*(h=h>.008856?Math.pow(h,.3333333333333333):7.787*h+.13793103448275862)-16,500*(t-h),200*(h-(u=u>.008856?Math.pow(u,.3333333333333333):7.787*u+.13793103448275862))]},u.lab.xyz=function(n){var t,h,u,o=n[0],s=n[1],c=n[2];t=s/500+(h=(o+16)/116),u=h-c/200;var l=Math.pow(h,3),b=Math.pow(t,3),f=Math.pow(u,3);return h=l>.008856?l:(h-.13793103448275862)/7.787,t=b>.008856?b:(t-.13793103448275862)/7.787,u=f>.008856?f:(u-.13793103448275862)/7.787,[t*=95.047,h*=100,u*=108.883]},u.lab.lch=function(n){var t,h=n[0],u=n[1],o=n[2];return(t=360*Math.atan2(o,u)/2/Math.PI)<0&&(t+=360),[h,Math.sqrt(u*u+o*o),t]},u.lch.lab=function(n){var t,h=n[0],u=n[1];return t=n[2]/360*2*Math.PI,[h,u*Math.cos(t),u*Math.sin(t)]},u.rgb.ansi16=function(n){var t=n[0],h=n[1],o=n[2],s=1 in arguments?arguments[1]:u.rgb.hsv(n)[2];if(0===(s=Math.round(s/50)))return 30;var c=30+(Math.round(o/255)<<2|Math.round(h/255)<<1|Math.round(t/255));return 2===s&&(c+=60),c},u.hsv.ansi16=function(n){return u.rgb.ansi16(u.hsv.rgb(n),n[2])},u.rgb.ansi256=function(n){var t=n[0],h=n[1],u=n[2];return t===h&&h===u?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(h/255*5)+Math.round(u/255*5)},u.ansi16.rgb=function(n){var t=n%10;if(0===t||7===t)return n>50&&(t+=3.5),[t=t/10.5*255,t,t];var h=.5*(1+~~(n>50));return[(1&t)*h*255,(t>>1&1)*h*255,(t>>2&1)*h*255]},u.ansi256.rgb=function(n){if(n>=232){var t=10*(n-232)+8;return[t,t,t]}var h;return n-=16,[Math.floor(n/36)/5*255,Math.floor((h=n%36)/6)/5*255,h%6/5*255]},u.rgb.hex=function(n){var t=(((255&Math.round(n[0]))<<16)+((255&Math.round(n[1]))<<8)+(255&Math.round(n[2]))).toString(16).toUpperCase();return'000000'.substring(t.length)+t},u.hex.rgb=function(n){var t=n.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t)return[0,0,0];var h=t[0];3===t[0].length&&(h=h.split('').map(function(n){return n+n}).join(''));var u=parseInt(h,16);return[u>>16&255,u>>8&255,255&u]},u.rgb.hcg=function(n){var t,h,u=n[0]/255,o=n[1]/255,s=n[2]/255,c=Math.max(Math.max(u,o),s),l=Math.min(Math.min(u,o),s),b=c-l;return t=b<1?l/(1-b):0,h=b<=0?0:c===u?(o-s)/b%6:c===o?2+(s-u)/b:4+(u-o)/b+4,h/=6,[360*(h%=1),100*b,100*t]},u.hsl.hcg=function(n){var t=n[1]/100,h=n[2]/100,u=1,o=0;return(u=h<.5?2*t*h:2*t*(1-h))<1&&(o=(h-.5*u)/(1-u)),[n[0],100*u,100*o]},u.hsv.hcg=function(n){var t=n[1]/100,h=n[2]/100,u=t*h,o=0;return u<1&&(o=(h-u)/(1-u)),[n[0],100*u,100*o]},u.hcg.rgb=function(n){var t=n[0]/360,h=n[1]/100,u=n[2]/100;if(0===h)return[255*u,255*u,255*u];var o,s=[0,0,0],c=t%1*6,l=c%1,b=1-l;switch(Math.floor(c)){case 0:s[0]=1,s[1]=l,s[2]=0;break;case 1:s[0]=b,s[1]=1,s[2]=0;break;case 2:s[0]=0,s[1]=1,s[2]=l;break;case 3:s[0]=0,s[1]=b,s[2]=1;break;case 4:s[0]=l,s[1]=0,s[2]=1;break;default:s[0]=1,s[1]=0,s[2]=b}return o=(1-h)*u,[255*(h*s[0]+o),255*(h*s[1]+o),255*(h*s[2]+o)]},u.hcg.hsv=function(n){var t=n[1]/100,h=t+n[2]/100*(1-t),u=0;return h>0&&(u=t/h),[n[0],100*u,100*h]},u.hcg.hsl=function(n){var t=n[1]/100,h=n[2]/100*(1-t)+.5*t,u=0;return h>0&&h<.5?u=t/(2*h):h>=.5&&h<1&&(u=t/(2*(1-h))),[n[0],100*u,100*h]},u.hcg.hwb=function(n){var t=n[1]/100,h=t+n[2]/100*(1-t);return[n[0],100*(h-t),100*(1-h)]},u.hwb.hcg=function(n){var t=n[1]/100,h=1-n[2]/100,u=h-t,o=0;return u<1&&(o=(h-u)/(1-u)),[n[0],100*u,100*o]},u.apple.rgb=function(n){return[n[0]/65535*255,n[1]/65535*255,n[2]/65535*255]},u.rgb.apple=function(n){return[n[0]/255*65535,n[1]/255*65535,n[2]/255*65535]},u.gray.rgb=function(n){return[n[0]/100*255,n[0]/100*255,n[0]/100*255]},u.gray.hsl=u.gray.hsv=function(n){return[0,0,n[0]]},u.gray.hwb=function(n){return[0,100,n[0]]},u.gray.cmyk=function(n){return[0,0,0,n[0]]},u.gray.lab=function(n){return[n[0],0,0]},u.gray.hex=function(n){var t=255&Math.round(n[0]/100*255),h=((t<<16)+(t<<8)+t).toString(16).toUpperCase();return'000000'.substring(h.length)+h},u.rgb.gray=function(n){return[(n[0]+n[1]+n[2])/3/255*100]}},942,[943]); -__d(function(g,r,i,a,m,e,d){'use strict';m.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}},943,[]); -__d(function(g,r,i,a,m,e,d){var n=r(d[0]);function t(){for(var t={},u=Object.keys(n),c=u.length,o=0;o0){for(A=1,t=1;A0?{type:"choice",alternatives:QC(u,A,3),location:Tt()}:u},f=function(u,A){return null!==A?{type:"action",expression:u,code:A[1],location:Tt()}:u},s=function(u,A){return A.length>0?{type:"sequence",elements:QC(u,A,1),location:Tt()}:u},v=":",h=Gt(":",!1),l=function(u,A){return{type:"labeled",label:u,expression:A,location:Tt()}},d=function(u,A){return{type:KC[u],expression:A,location:Tt()}},p="$",b=Gt("$",!1),g="&",x=Gt("&",!1),y="!",m=Gt("!",!1),w=function(u,A){return{type:LC[A],expression:u,location:Tt()}},_="?",S=Gt("?",!1),k="*",z=Gt("*",!1),R="+",j=Gt("+",!1),$="(",q=Gt("(",!1),I=")",M=Gt(")",!1),T=function(u){return'labeled'===u.type||'sequence'===u.type?{type:"group",expression:u}:u},Z=function(u){return{type:"rule_ref",name:u,location:Tt()}},G=function(u,A){return{type:NC[u],code:A,location:Tt()}},U={type:"any"},H=Ht("whitespace"),J="\t",K=Gt("\t",!1),L="\v",N=Gt("\v",!1),O="\f",P=Gt("\f",!1),Q=" ",V=Gt(" ",!1),W="\xa0",X=Gt("\xa0",!1),Y="\ufeff",uu=Gt("\ufeff",!1),Au=/^[\n\r\u2028\u2029]/,ru=Ut(["\n","\r","\u2028","\u2029"],!1,!1),tu=Ht("end of line"),nu="\n",Cu=Gt("\n",!1),Eu="\r\n",eu=Gt("\r\n",!1),Fu="\r",Bu=Gt("\r",!1),ou="\u2028",Du=Gt("\u2028",!1),cu="\u2029",au=Gt("\u2029",!1),iu=Ht("comment"),fu="/*",su=Gt("/*",!1),vu="*/",hu=Gt("*/",!1),lu="//",du=Gt("//",!1),pu=function(u){return u},bu=Ht("identifier"),gu=function(u,A){return u+A.join("")},xu="_",yu=Gt("_",!1),mu="\\",wu=Gt("\\",!1),_u=function(u){return u},Su="\u200c",ku=Gt("\u200c",!1),zu="\u200d",Ru=Gt("\u200d",!1),ju=Ht("literal"),$u="i",qu=Gt("i",!1),Iu=function(u,A){return{type:"literal",value:u,ignoreCase:null!==A,location:Tt()}},Mu=Ht("string"),Tu="\"",Zu=Gt("\"",!1),Gu=function(u){return u.join("")},Uu="'",Hu=Gt("'",!1),Ju=function(){return Mt()},Ku=Ht("character class"),Lu="[",Nu=Gt("[",!1),Ou="^",Pu=Gt("^",!1),Qu="]",Vu=Gt("]",!1),Wu=function(u,A,r){return{type:"class",parts:OC(A),inverted:null!==u,ignoreCase:null!==r,location:Tt()}},Xu="-",Yu=Gt("-",!1),uA=function(u,A){return u.charCodeAt(0)>A.charCodeAt(0)&&Zt("Invalid character range: "+Mt()+"."),[u,A]},AA=function(){return""},rA="0",tA=Gt("0",!1),nA=function(){return"\0"},CA="b",EA=Gt("b",!1),eA=function(){return"\b"},FA="f",BA=Gt("f",!1),oA=function(){return"\f"},DA="n",cA=Gt("n",!1),aA=function(){return"\n"},iA="r",fA=Gt("r",!1),sA=function(){return"\r"},vA="t",hA=Gt("t",!1),lA=function(){return"\t"},dA="v",pA=Gt("v",!1),bA=function(){return"\v"},gA="x",xA=Gt("x",!1),yA="u",mA=Gt("u",!1),wA=function(u){return String.fromCharCode(parseInt(u,16))},_A=/^[0-9]/,SA=Ut([["0","9"]],!1,!1),kA=/^[0-9a-f]/i,zA=Ut([["0","9"],["a","f"]],!1,!0),RA=".",jA=Gt(".",!1),$A=function(){return{type:"any",location:Tt()}},qA=Ht("code block"),IA="{",MA=Gt("{",!1),TA="}",ZA=Gt("}",!1),GA=function(u){return u},UA=/^[{}]/,HA=Ut(["{","}"],!1,!1),JA=/^[a-z\xB5\xDF-\xF6\xF8-\xFF\u0101\u0103\u0105\u0107\u0109\u010B\u010D\u010F\u0111\u0113\u0115\u0117\u0119\u011B\u011D\u011F\u0121\u0123\u0125\u0127\u0129\u012B\u012D\u012F\u0131\u0133\u0135\u0137-\u0138\u013A\u013C\u013E\u0140\u0142\u0144\u0146\u0148-\u0149\u014B\u014D\u014F\u0151\u0153\u0155\u0157\u0159\u015B\u015D\u015F\u0161\u0163\u0165\u0167\u0169\u016B\u016D\u016F\u0171\u0173\u0175\u0177\u017A\u017C\u017E-\u0180\u0183\u0185\u0188\u018C-\u018D\u0192\u0195\u0199-\u019B\u019E\u01A1\u01A3\u01A5\u01A8\u01AA-\u01AB\u01AD\u01B0\u01B4\u01B6\u01B9-\u01BA\u01BD-\u01BF\u01C6\u01C9\u01CC\u01CE\u01D0\u01D2\u01D4\u01D6\u01D8\u01DA\u01DC-\u01DD\u01DF\u01E1\u01E3\u01E5\u01E7\u01E9\u01EB\u01ED\u01EF-\u01F0\u01F3\u01F5\u01F9\u01FB\u01FD\u01FF\u0201\u0203\u0205\u0207\u0209\u020B\u020D\u020F\u0211\u0213\u0215\u0217\u0219\u021B\u021D\u021F\u0221\u0223\u0225\u0227\u0229\u022B\u022D\u022F\u0231\u0233-\u0239\u023C\u023F-\u0240\u0242\u0247\u0249\u024B\u024D\u024F-\u0293\u0295-\u02AF\u0371\u0373\u0377\u037B-\u037D\u0390\u03AC-\u03CE\u03D0-\u03D1\u03D5-\u03D7\u03D9\u03DB\u03DD\u03DF\u03E1\u03E3\u03E5\u03E7\u03E9\u03EB\u03ED\u03EF-\u03F3\u03F5\u03F8\u03FB-\u03FC\u0430-\u045F\u0461\u0463\u0465\u0467\u0469\u046B\u046D\u046F\u0471\u0473\u0475\u0477\u0479\u047B\u047D\u047F\u0481\u048B\u048D\u048F\u0491\u0493\u0495\u0497\u0499\u049B\u049D\u049F\u04A1\u04A3\u04A5\u04A7\u04A9\u04AB\u04AD\u04AF\u04B1\u04B3\u04B5\u04B7\u04B9\u04BB\u04BD\u04BF\u04C2\u04C4\u04C6\u04C8\u04CA\u04CC\u04CE-\u04CF\u04D1\u04D3\u04D5\u04D7\u04D9\u04DB\u04DD\u04DF\u04E1\u04E3\u04E5\u04E7\u04E9\u04EB\u04ED\u04EF\u04F1\u04F3\u04F5\u04F7\u04F9\u04FB\u04FD\u04FF\u0501\u0503\u0505\u0507\u0509\u050B\u050D\u050F\u0511\u0513\u0515\u0517\u0519\u051B\u051D\u051F\u0521\u0523\u0525\u0527\u0529\u052B\u052D\u052F\u0561-\u0587\u13F8-\u13FD\u1D00-\u1D2B\u1D6B-\u1D77\u1D79-\u1D9A\u1E01\u1E03\u1E05\u1E07\u1E09\u1E0B\u1E0D\u1E0F\u1E11\u1E13\u1E15\u1E17\u1E19\u1E1B\u1E1D\u1E1F\u1E21\u1E23\u1E25\u1E27\u1E29\u1E2B\u1E2D\u1E2F\u1E31\u1E33\u1E35\u1E37\u1E39\u1E3B\u1E3D\u1E3F\u1E41\u1E43\u1E45\u1E47\u1E49\u1E4B\u1E4D\u1E4F\u1E51\u1E53\u1E55\u1E57\u1E59\u1E5B\u1E5D\u1E5F\u1E61\u1E63\u1E65\u1E67\u1E69\u1E6B\u1E6D\u1E6F\u1E71\u1E73\u1E75\u1E77\u1E79\u1E7B\u1E7D\u1E7F\u1E81\u1E83\u1E85\u1E87\u1E89\u1E8B\u1E8D\u1E8F\u1E91\u1E93\u1E95-\u1E9D\u1E9F\u1EA1\u1EA3\u1EA5\u1EA7\u1EA9\u1EAB\u1EAD\u1EAF\u1EB1\u1EB3\u1EB5\u1EB7\u1EB9\u1EBB\u1EBD\u1EBF\u1EC1\u1EC3\u1EC5\u1EC7\u1EC9\u1ECB\u1ECD\u1ECF\u1ED1\u1ED3\u1ED5\u1ED7\u1ED9\u1EDB\u1EDD\u1EDF\u1EE1\u1EE3\u1EE5\u1EE7\u1EE9\u1EEB\u1EED\u1EEF\u1EF1\u1EF3\u1EF5\u1EF7\u1EF9\u1EFB\u1EFD\u1EFF-\u1F07\u1F10-\u1F15\u1F20-\u1F27\u1F30-\u1F37\u1F40-\u1F45\u1F50-\u1F57\u1F60-\u1F67\u1F70-\u1F7D\u1F80-\u1F87\u1F90-\u1F97\u1FA0-\u1FA7\u1FB0-\u1FB4\u1FB6-\u1FB7\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FC7\u1FD0-\u1FD3\u1FD6-\u1FD7\u1FE0-\u1FE7\u1FF2-\u1FF4\u1FF6-\u1FF7\u210A\u210E-\u210F\u2113\u212F\u2134\u2139\u213C-\u213D\u2146-\u2149\u214E\u2184\u2C30-\u2C5E\u2C61\u2C65-\u2C66\u2C68\u2C6A\u2C6C\u2C71\u2C73-\u2C74\u2C76-\u2C7B\u2C81\u2C83\u2C85\u2C87\u2C89\u2C8B\u2C8D\u2C8F\u2C91\u2C93\u2C95\u2C97\u2C99\u2C9B\u2C9D\u2C9F\u2CA1\u2CA3\u2CA5\u2CA7\u2CA9\u2CAB\u2CAD\u2CAF\u2CB1\u2CB3\u2CB5\u2CB7\u2CB9\u2CBB\u2CBD\u2CBF\u2CC1\u2CC3\u2CC5\u2CC7\u2CC9\u2CCB\u2CCD\u2CCF\u2CD1\u2CD3\u2CD5\u2CD7\u2CD9\u2CDB\u2CDD\u2CDF\u2CE1\u2CE3-\u2CE4\u2CEC\u2CEE\u2CF3\u2D00-\u2D25\u2D27\u2D2D\uA641\uA643\uA645\uA647\uA649\uA64B\uA64D\uA64F\uA651\uA653\uA655\uA657\uA659\uA65B\uA65D\uA65F\uA661\uA663\uA665\uA667\uA669\uA66B\uA66D\uA681\uA683\uA685\uA687\uA689\uA68B\uA68D\uA68F\uA691\uA693\uA695\uA697\uA699\uA69B\uA723\uA725\uA727\uA729\uA72B\uA72D\uA72F-\uA731\uA733\uA735\uA737\uA739\uA73B\uA73D\uA73F\uA741\uA743\uA745\uA747\uA749\uA74B\uA74D\uA74F\uA751\uA753\uA755\uA757\uA759\uA75B\uA75D\uA75F\uA761\uA763\uA765\uA767\uA769\uA76B\uA76D\uA76F\uA771-\uA778\uA77A\uA77C\uA77F\uA781\uA783\uA785\uA787\uA78C\uA78E\uA791\uA793-\uA795\uA797\uA799\uA79B\uA79D\uA79F\uA7A1\uA7A3\uA7A5\uA7A7\uA7A9\uA7B5\uA7B7\uA7FA\uAB30-\uAB5A\uAB60-\uAB65\uAB70-\uABBF\uFB00-\uFB06\uFB13-\uFB17\uFF41-\uFF5A]/,KA=Ut([["a","z"],"\xb5",["\xdf","\xf6"],["\xf8","\xff"],"\u0101","\u0103","\u0105","\u0107","\u0109","\u010b","\u010d","\u010f","\u0111","\u0113","\u0115","\u0117","\u0119","\u011b","\u011d","\u011f","\u0121","\u0123","\u0125","\u0127","\u0129","\u012b","\u012d","\u012f","\u0131","\u0133","\u0135",["\u0137","\u0138"],"\u013a","\u013c","\u013e","\u0140","\u0142","\u0144","\u0146",["\u0148","\u0149"],"\u014b","\u014d","\u014f","\u0151","\u0153","\u0155","\u0157","\u0159","\u015b","\u015d","\u015f","\u0161","\u0163","\u0165","\u0167","\u0169","\u016b","\u016d","\u016f","\u0171","\u0173","\u0175","\u0177","\u017a","\u017c",["\u017e","\u0180"],"\u0183","\u0185","\u0188",["\u018c","\u018d"],"\u0192","\u0195",["\u0199","\u019b"],"\u019e","\u01a1","\u01a3","\u01a5","\u01a8",["\u01aa","\u01ab"],"\u01ad","\u01b0","\u01b4","\u01b6",["\u01b9","\u01ba"],["\u01bd","\u01bf"],"\u01c6","\u01c9","\u01cc","\u01ce","\u01d0","\u01d2","\u01d4","\u01d6","\u01d8","\u01da",["\u01dc","\u01dd"],"\u01df","\u01e1","\u01e3","\u01e5","\u01e7","\u01e9","\u01eb","\u01ed",["\u01ef","\u01f0"],"\u01f3","\u01f5","\u01f9","\u01fb","\u01fd","\u01ff","\u0201","\u0203","\u0205","\u0207","\u0209","\u020b","\u020d","\u020f","\u0211","\u0213","\u0215","\u0217","\u0219","\u021b","\u021d","\u021f","\u0221","\u0223","\u0225","\u0227","\u0229","\u022b","\u022d","\u022f","\u0231",["\u0233","\u0239"],"\u023c",["\u023f","\u0240"],"\u0242","\u0247","\u0249","\u024b","\u024d",["\u024f","\u0293"],["\u0295","\u02af"],"\u0371","\u0373","\u0377",["\u037b","\u037d"],"\u0390",["\u03ac","\u03ce"],["\u03d0","\u03d1"],["\u03d5","\u03d7"],"\u03d9","\u03db","\u03dd","\u03df","\u03e1","\u03e3","\u03e5","\u03e7","\u03e9","\u03eb","\u03ed",["\u03ef","\u03f3"],"\u03f5","\u03f8",["\u03fb","\u03fc"],["\u0430","\u045f"],"\u0461","\u0463","\u0465","\u0467","\u0469","\u046b","\u046d","\u046f","\u0471","\u0473","\u0475","\u0477","\u0479","\u047b","\u047d","\u047f","\u0481","\u048b","\u048d","\u048f","\u0491","\u0493","\u0495","\u0497","\u0499","\u049b","\u049d","\u049f","\u04a1","\u04a3","\u04a5","\u04a7","\u04a9","\u04ab","\u04ad","\u04af","\u04b1","\u04b3","\u04b5","\u04b7","\u04b9","\u04bb","\u04bd","\u04bf","\u04c2","\u04c4","\u04c6","\u04c8","\u04ca","\u04cc",["\u04ce","\u04cf"],"\u04d1","\u04d3","\u04d5","\u04d7","\u04d9","\u04db","\u04dd","\u04df","\u04e1","\u04e3","\u04e5","\u04e7","\u04e9","\u04eb","\u04ed","\u04ef","\u04f1","\u04f3","\u04f5","\u04f7","\u04f9","\u04fb","\u04fd","\u04ff","\u0501","\u0503","\u0505","\u0507","\u0509","\u050b","\u050d","\u050f","\u0511","\u0513","\u0515","\u0517","\u0519","\u051b","\u051d","\u051f","\u0521","\u0523","\u0525","\u0527","\u0529","\u052b","\u052d","\u052f",["\u0561","\u0587"],["\u13f8","\u13fd"],["\u1d00","\u1d2b"],["\u1d6b","\u1d77"],["\u1d79","\u1d9a"],"\u1e01","\u1e03","\u1e05","\u1e07","\u1e09","\u1e0b","\u1e0d","\u1e0f","\u1e11","\u1e13","\u1e15","\u1e17","\u1e19","\u1e1b","\u1e1d","\u1e1f","\u1e21","\u1e23","\u1e25","\u1e27","\u1e29","\u1e2b","\u1e2d","\u1e2f","\u1e31","\u1e33","\u1e35","\u1e37","\u1e39","\u1e3b","\u1e3d","\u1e3f","\u1e41","\u1e43","\u1e45","\u1e47","\u1e49","\u1e4b","\u1e4d","\u1e4f","\u1e51","\u1e53","\u1e55","\u1e57","\u1e59","\u1e5b","\u1e5d","\u1e5f","\u1e61","\u1e63","\u1e65","\u1e67","\u1e69","\u1e6b","\u1e6d","\u1e6f","\u1e71","\u1e73","\u1e75","\u1e77","\u1e79","\u1e7b","\u1e7d","\u1e7f","\u1e81","\u1e83","\u1e85","\u1e87","\u1e89","\u1e8b","\u1e8d","\u1e8f","\u1e91","\u1e93",["\u1e95","\u1e9d"],"\u1e9f","\u1ea1","\u1ea3","\u1ea5","\u1ea7","\u1ea9","\u1eab","\u1ead","\u1eaf","\u1eb1","\u1eb3","\u1eb5","\u1eb7","\u1eb9","\u1ebb","\u1ebd","\u1ebf","\u1ec1","\u1ec3","\u1ec5","\u1ec7","\u1ec9","\u1ecb","\u1ecd","\u1ecf","\u1ed1","\u1ed3","\u1ed5","\u1ed7","\u1ed9","\u1edb","\u1edd","\u1edf","\u1ee1","\u1ee3","\u1ee5","\u1ee7","\u1ee9","\u1eeb","\u1eed","\u1eef","\u1ef1","\u1ef3","\u1ef5","\u1ef7","\u1ef9","\u1efb","\u1efd",["\u1eff","\u1f07"],["\u1f10","\u1f15"],["\u1f20","\u1f27"],["\u1f30","\u1f37"],["\u1f40","\u1f45"],["\u1f50","\u1f57"],["\u1f60","\u1f67"],["\u1f70","\u1f7d"],["\u1f80","\u1f87"],["\u1f90","\u1f97"],["\u1fa0","\u1fa7"],["\u1fb0","\u1fb4"],["\u1fb6","\u1fb7"],"\u1fbe",["\u1fc2","\u1fc4"],["\u1fc6","\u1fc7"],["\u1fd0","\u1fd3"],["\u1fd6","\u1fd7"],["\u1fe0","\u1fe7"],["\u1ff2","\u1ff4"],["\u1ff6","\u1ff7"],"\u210a",["\u210e","\u210f"],"\u2113","\u212f","\u2134","\u2139",["\u213c","\u213d"],["\u2146","\u2149"],"\u214e","\u2184",["\u2c30","\u2c5e"],"\u2c61",["\u2c65","\u2c66"],"\u2c68","\u2c6a","\u2c6c","\u2c71",["\u2c73","\u2c74"],["\u2c76","\u2c7b"],"\u2c81","\u2c83","\u2c85","\u2c87","\u2c89","\u2c8b","\u2c8d","\u2c8f","\u2c91","\u2c93","\u2c95","\u2c97","\u2c99","\u2c9b","\u2c9d","\u2c9f","\u2ca1","\u2ca3","\u2ca5","\u2ca7","\u2ca9","\u2cab","\u2cad","\u2caf","\u2cb1","\u2cb3","\u2cb5","\u2cb7","\u2cb9","\u2cbb","\u2cbd","\u2cbf","\u2cc1","\u2cc3","\u2cc5","\u2cc7","\u2cc9","\u2ccb","\u2ccd","\u2ccf","\u2cd1","\u2cd3","\u2cd5","\u2cd7","\u2cd9","\u2cdb","\u2cdd","\u2cdf","\u2ce1",["\u2ce3","\u2ce4"],"\u2cec","\u2cee","\u2cf3",["\u2d00","\u2d25"],"\u2d27","\u2d2d","\ua641","\ua643","\ua645","\ua647","\ua649","\ua64b","\ua64d","\ua64f","\ua651","\ua653","\ua655","\ua657","\ua659","\ua65b","\ua65d","\ua65f","\ua661","\ua663","\ua665","\ua667","\ua669","\ua66b","\ua66d","\ua681","\ua683","\ua685","\ua687","\ua689","\ua68b","\ua68d","\ua68f","\ua691","\ua693","\ua695","\ua697","\ua699","\ua69b","\ua723","\ua725","\ua727","\ua729","\ua72b","\ua72d",["\ua72f","\ua731"],"\ua733","\ua735","\ua737","\ua739","\ua73b","\ua73d","\ua73f","\ua741","\ua743","\ua745","\ua747","\ua749","\ua74b","\ua74d","\ua74f","\ua751","\ua753","\ua755","\ua757","\ua759","\ua75b","\ua75d","\ua75f","\ua761","\ua763","\ua765","\ua767","\ua769","\ua76b","\ua76d","\ua76f",["\ua771","\ua778"],"\ua77a","\ua77c","\ua77f","\ua781","\ua783","\ua785","\ua787","\ua78c","\ua78e","\ua791",["\ua793","\ua795"],"\ua797","\ua799","\ua79b","\ua79d","\ua79f","\ua7a1","\ua7a3","\ua7a5","\ua7a7","\ua7a9","\ua7b5","\ua7b7","\ua7fa",["\uab30","\uab5a"],["\uab60","\uab65"],["\uab70","\uabbf"],["\ufb00","\ufb06"],["\ufb13","\ufb17"],["\uff41","\uff5a"]],!1,!1),LA=/^[\u02B0-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0374\u037A\u0559\u0640\u06E5-\u06E6\u07F4-\u07F5\u07FA\u081A\u0824\u0828\u0971\u0E46\u0EC6\u10FC\u17D7\u1843\u1AA7\u1C78-\u1C7D\u1D2C-\u1D6A\u1D78\u1D9B-\u1DBF\u2071\u207F\u2090-\u209C\u2C7C-\u2C7D\u2D6F\u2E2F\u3005\u3031-\u3035\u303B\u309D-\u309E\u30FC-\u30FE\uA015\uA4F8-\uA4FD\uA60C\uA67F\uA69C-\uA69D\uA717-\uA71F\uA770\uA788\uA7F8-\uA7F9\uA9CF\uA9E6\uAA70\uAADD\uAAF3-\uAAF4\uAB5C-\uAB5F\uFF70\uFF9E-\uFF9F]/,NA=Ut([["\u02b0","\u02c1"],["\u02c6","\u02d1"],["\u02e0","\u02e4"],"\u02ec","\u02ee","\u0374","\u037a","\u0559","\u0640",["\u06e5","\u06e6"],["\u07f4","\u07f5"],"\u07fa","\u081a","\u0824","\u0828","\u0971","\u0e46","\u0ec6","\u10fc","\u17d7","\u1843","\u1aa7",["\u1c78","\u1c7d"],["\u1d2c","\u1d6a"],"\u1d78",["\u1d9b","\u1dbf"],"\u2071","\u207f",["\u2090","\u209c"],["\u2c7c","\u2c7d"],"\u2d6f","\u2e2f","\u3005",["\u3031","\u3035"],"\u303b",["\u309d","\u309e"],["\u30fc","\u30fe"],"\ua015",["\ua4f8","\ua4fd"],"\ua60c","\ua67f",["\ua69c","\ua69d"],["\ua717","\ua71f"],"\ua770","\ua788",["\ua7f8","\ua7f9"],"\ua9cf","\ua9e6","\uaa70","\uaadd",["\uaaf3","\uaaf4"],["\uab5c","\uab5f"],"\uff70",["\uff9e","\uff9f"]],!1,!1),OA=/^[\xAA\xBA\u01BB\u01C0-\u01C3\u0294\u05D0-\u05EA\u05F0-\u05F2\u0620-\u063F\u0641-\u064A\u066E-\u066F\u0671-\u06D3\u06D5\u06EE-\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u0800-\u0815\u0840-\u0858\u08A0-\u08B4\u0904-\u0939\u093D\u0950\u0958-\u0961\u0972-\u0980\u0985-\u098C\u098F-\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC-\u09DD\u09DF-\u09E1\u09F0-\u09F1\u0A05-\u0A0A\u0A0F-\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32-\u0A33\u0A35-\u0A36\u0A38-\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2-\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0-\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F-\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32-\u0B33\u0B35-\u0B39\u0B3D\u0B5C-\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99-\u0B9A\u0B9C\u0B9E-\u0B9F\u0BA3-\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60-\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0-\u0CE1\u0CF1-\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32-\u0E33\u0E40-\u0E45\u0E81-\u0E82\u0E84\u0E87-\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA-\u0EAB\u0EAD-\u0EB0\u0EB2-\u0EB3\u0EBD\u0EC0-\u0EC4\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065-\u1066\u106E-\u1070\u1075-\u1081\u108E\u10D0-\u10FA\u10FD-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16F1-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17DC\u1820-\u1842\u1844-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE-\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C77\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5-\u1CF6\u2135-\u2138\u2D30-\u2D67\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3006\u303C\u3041-\u3096\u309F\u30A1-\u30FA\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA014\uA016-\uA48C\uA4D0-\uA4F7\uA500-\uA60B\uA610-\uA61F\uA62A-\uA62B\uA66E\uA6A0-\uA6E5\uA78F\uA7F7\uA7FB-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9E0-\uA9E4\uA9E7-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA6F\uAA71-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5-\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADC\uAAE0-\uAAEA\uAAF2\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uABC0-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40-\uFB41\uFB43-\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF66-\uFF6F\uFF71-\uFF9D\uFFA0-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]/,PA=Ut(["\xaa","\xba","\u01bb",["\u01c0","\u01c3"],"\u0294",["\u05d0","\u05ea"],["\u05f0","\u05f2"],["\u0620","\u063f"],["\u0641","\u064a"],["\u066e","\u066f"],["\u0671","\u06d3"],"\u06d5",["\u06ee","\u06ef"],["\u06fa","\u06fc"],"\u06ff","\u0710",["\u0712","\u072f"],["\u074d","\u07a5"],"\u07b1",["\u07ca","\u07ea"],["\u0800","\u0815"],["\u0840","\u0858"],["\u08a0","\u08b4"],["\u0904","\u0939"],"\u093d","\u0950",["\u0958","\u0961"],["\u0972","\u0980"],["\u0985","\u098c"],["\u098f","\u0990"],["\u0993","\u09a8"],["\u09aa","\u09b0"],"\u09b2",["\u09b6","\u09b9"],"\u09bd","\u09ce",["\u09dc","\u09dd"],["\u09df","\u09e1"],["\u09f0","\u09f1"],["\u0a05","\u0a0a"],["\u0a0f","\u0a10"],["\u0a13","\u0a28"],["\u0a2a","\u0a30"],["\u0a32","\u0a33"],["\u0a35","\u0a36"],["\u0a38","\u0a39"],["\u0a59","\u0a5c"],"\u0a5e",["\u0a72","\u0a74"],["\u0a85","\u0a8d"],["\u0a8f","\u0a91"],["\u0a93","\u0aa8"],["\u0aaa","\u0ab0"],["\u0ab2","\u0ab3"],["\u0ab5","\u0ab9"],"\u0abd","\u0ad0",["\u0ae0","\u0ae1"],"\u0af9",["\u0b05","\u0b0c"],["\u0b0f","\u0b10"],["\u0b13","\u0b28"],["\u0b2a","\u0b30"],["\u0b32","\u0b33"],["\u0b35","\u0b39"],"\u0b3d",["\u0b5c","\u0b5d"],["\u0b5f","\u0b61"],"\u0b71","\u0b83",["\u0b85","\u0b8a"],["\u0b8e","\u0b90"],["\u0b92","\u0b95"],["\u0b99","\u0b9a"],"\u0b9c",["\u0b9e","\u0b9f"],["\u0ba3","\u0ba4"],["\u0ba8","\u0baa"],["\u0bae","\u0bb9"],"\u0bd0",["\u0c05","\u0c0c"],["\u0c0e","\u0c10"],["\u0c12","\u0c28"],["\u0c2a","\u0c39"],"\u0c3d",["\u0c58","\u0c5a"],["\u0c60","\u0c61"],["\u0c85","\u0c8c"],["\u0c8e","\u0c90"],["\u0c92","\u0ca8"],["\u0caa","\u0cb3"],["\u0cb5","\u0cb9"],"\u0cbd","\u0cde",["\u0ce0","\u0ce1"],["\u0cf1","\u0cf2"],["\u0d05","\u0d0c"],["\u0d0e","\u0d10"],["\u0d12","\u0d3a"],"\u0d3d","\u0d4e",["\u0d5f","\u0d61"],["\u0d7a","\u0d7f"],["\u0d85","\u0d96"],["\u0d9a","\u0db1"],["\u0db3","\u0dbb"],"\u0dbd",["\u0dc0","\u0dc6"],["\u0e01","\u0e30"],["\u0e32","\u0e33"],["\u0e40","\u0e45"],["\u0e81","\u0e82"],"\u0e84",["\u0e87","\u0e88"],"\u0e8a","\u0e8d",["\u0e94","\u0e97"],["\u0e99","\u0e9f"],["\u0ea1","\u0ea3"],"\u0ea5","\u0ea7",["\u0eaa","\u0eab"],["\u0ead","\u0eb0"],["\u0eb2","\u0eb3"],"\u0ebd",["\u0ec0","\u0ec4"],["\u0edc","\u0edf"],"\u0f00",["\u0f40","\u0f47"],["\u0f49","\u0f6c"],["\u0f88","\u0f8c"],["\u1000","\u102a"],"\u103f",["\u1050","\u1055"],["\u105a","\u105d"],"\u1061",["\u1065","\u1066"],["\u106e","\u1070"],["\u1075","\u1081"],"\u108e",["\u10d0","\u10fa"],["\u10fd","\u1248"],["\u124a","\u124d"],["\u1250","\u1256"],"\u1258",["\u125a","\u125d"],["\u1260","\u1288"],["\u128a","\u128d"],["\u1290","\u12b0"],["\u12b2","\u12b5"],["\u12b8","\u12be"],"\u12c0",["\u12c2","\u12c5"],["\u12c8","\u12d6"],["\u12d8","\u1310"],["\u1312","\u1315"],["\u1318","\u135a"],["\u1380","\u138f"],["\u1401","\u166c"],["\u166f","\u167f"],["\u1681","\u169a"],["\u16a0","\u16ea"],["\u16f1","\u16f8"],["\u1700","\u170c"],["\u170e","\u1711"],["\u1720","\u1731"],["\u1740","\u1751"],["\u1760","\u176c"],["\u176e","\u1770"],["\u1780","\u17b3"],"\u17dc",["\u1820","\u1842"],["\u1844","\u1877"],["\u1880","\u18a8"],"\u18aa",["\u18b0","\u18f5"],["\u1900","\u191e"],["\u1950","\u196d"],["\u1970","\u1974"],["\u1980","\u19ab"],["\u19b0","\u19c9"],["\u1a00","\u1a16"],["\u1a20","\u1a54"],["\u1b05","\u1b33"],["\u1b45","\u1b4b"],["\u1b83","\u1ba0"],["\u1bae","\u1baf"],["\u1bba","\u1be5"],["\u1c00","\u1c23"],["\u1c4d","\u1c4f"],["\u1c5a","\u1c77"],["\u1ce9","\u1cec"],["\u1cee","\u1cf1"],["\u1cf5","\u1cf6"],["\u2135","\u2138"],["\u2d30","\u2d67"],["\u2d80","\u2d96"],["\u2da0","\u2da6"],["\u2da8","\u2dae"],["\u2db0","\u2db6"],["\u2db8","\u2dbe"],["\u2dc0","\u2dc6"],["\u2dc8","\u2dce"],["\u2dd0","\u2dd6"],["\u2dd8","\u2dde"],"\u3006","\u303c",["\u3041","\u3096"],"\u309f",["\u30a1","\u30fa"],"\u30ff",["\u3105","\u312d"],["\u3131","\u318e"],["\u31a0","\u31ba"],["\u31f0","\u31ff"],["\u3400","\u4db5"],["\u4e00","\u9fd5"],["\ua000","\ua014"],["\ua016","\ua48c"],["\ua4d0","\ua4f7"],["\ua500","\ua60b"],["\ua610","\ua61f"],["\ua62a","\ua62b"],"\ua66e",["\ua6a0","\ua6e5"],"\ua78f","\ua7f7",["\ua7fb","\ua801"],["\ua803","\ua805"],["\ua807","\ua80a"],["\ua80c","\ua822"],["\ua840","\ua873"],["\ua882","\ua8b3"],["\ua8f2","\ua8f7"],"\ua8fb","\ua8fd",["\ua90a","\ua925"],["\ua930","\ua946"],["\ua960","\ua97c"],["\ua984","\ua9b2"],["\ua9e0","\ua9e4"],["\ua9e7","\ua9ef"],["\ua9fa","\ua9fe"],["\uaa00","\uaa28"],["\uaa40","\uaa42"],["\uaa44","\uaa4b"],["\uaa60","\uaa6f"],["\uaa71","\uaa76"],"\uaa7a",["\uaa7e","\uaaaf"],"\uaab1",["\uaab5","\uaab6"],["\uaab9","\uaabd"],"\uaac0","\uaac2",["\uaadb","\uaadc"],["\uaae0","\uaaea"],"\uaaf2",["\uab01","\uab06"],["\uab09","\uab0e"],["\uab11","\uab16"],["\uab20","\uab26"],["\uab28","\uab2e"],["\uabc0","\uabe2"],["\uac00","\ud7a3"],["\ud7b0","\ud7c6"],["\ud7cb","\ud7fb"],["\uf900","\ufa6d"],["\ufa70","\ufad9"],"\ufb1d",["\ufb1f","\ufb28"],["\ufb2a","\ufb36"],["\ufb38","\ufb3c"],"\ufb3e",["\ufb40","\ufb41"],["\ufb43","\ufb44"],["\ufb46","\ufbb1"],["\ufbd3","\ufd3d"],["\ufd50","\ufd8f"],["\ufd92","\ufdc7"],["\ufdf0","\ufdfb"],["\ufe70","\ufe74"],["\ufe76","\ufefc"],["\uff66","\uff6f"],["\uff71","\uff9d"],["\uffa0","\uffbe"],["\uffc2","\uffc7"],["\uffca","\uffcf"],["\uffd2","\uffd7"],["\uffda","\uffdc"]],!1,!1),QA=/^[\u01C5\u01C8\u01CB\u01F2\u1F88-\u1F8F\u1F98-\u1F9F\u1FA8-\u1FAF\u1FBC\u1FCC\u1FFC]/,VA=Ut(["\u01c5","\u01c8","\u01cb","\u01f2",["\u1f88","\u1f8f"],["\u1f98","\u1f9f"],["\u1fa8","\u1faf"],"\u1fbc","\u1fcc","\u1ffc"],!1,!1),WA=/^[A-Z\xC0-\xD6\xD8-\xDE\u0100\u0102\u0104\u0106\u0108\u010A\u010C\u010E\u0110\u0112\u0114\u0116\u0118\u011A\u011C\u011E\u0120\u0122\u0124\u0126\u0128\u012A\u012C\u012E\u0130\u0132\u0134\u0136\u0139\u013B\u013D\u013F\u0141\u0143\u0145\u0147\u014A\u014C\u014E\u0150\u0152\u0154\u0156\u0158\u015A\u015C\u015E\u0160\u0162\u0164\u0166\u0168\u016A\u016C\u016E\u0170\u0172\u0174\u0176\u0178-\u0179\u017B\u017D\u0181-\u0182\u0184\u0186-\u0187\u0189-\u018B\u018E-\u0191\u0193-\u0194\u0196-\u0198\u019C-\u019D\u019F-\u01A0\u01A2\u01A4\u01A6-\u01A7\u01A9\u01AC\u01AE-\u01AF\u01B1-\u01B3\u01B5\u01B7-\u01B8\u01BC\u01C4\u01C7\u01CA\u01CD\u01CF\u01D1\u01D3\u01D5\u01D7\u01D9\u01DB\u01DE\u01E0\u01E2\u01E4\u01E6\u01E8\u01EA\u01EC\u01EE\u01F1\u01F4\u01F6-\u01F8\u01FA\u01FC\u01FE\u0200\u0202\u0204\u0206\u0208\u020A\u020C\u020E\u0210\u0212\u0214\u0216\u0218\u021A\u021C\u021E\u0220\u0222\u0224\u0226\u0228\u022A\u022C\u022E\u0230\u0232\u023A-\u023B\u023D-\u023E\u0241\u0243-\u0246\u0248\u024A\u024C\u024E\u0370\u0372\u0376\u037F\u0386\u0388-\u038A\u038C\u038E-\u038F\u0391-\u03A1\u03A3-\u03AB\u03CF\u03D2-\u03D4\u03D8\u03DA\u03DC\u03DE\u03E0\u03E2\u03E4\u03E6\u03E8\u03EA\u03EC\u03EE\u03F4\u03F7\u03F9-\u03FA\u03FD-\u042F\u0460\u0462\u0464\u0466\u0468\u046A\u046C\u046E\u0470\u0472\u0474\u0476\u0478\u047A\u047C\u047E\u0480\u048A\u048C\u048E\u0490\u0492\u0494\u0496\u0498\u049A\u049C\u049E\u04A0\u04A2\u04A4\u04A6\u04A8\u04AA\u04AC\u04AE\u04B0\u04B2\u04B4\u04B6\u04B8\u04BA\u04BC\u04BE\u04C0-\u04C1\u04C3\u04C5\u04C7\u04C9\u04CB\u04CD\u04D0\u04D2\u04D4\u04D6\u04D8\u04DA\u04DC\u04DE\u04E0\u04E2\u04E4\u04E6\u04E8\u04EA\u04EC\u04EE\u04F0\u04F2\u04F4\u04F6\u04F8\u04FA\u04FC\u04FE\u0500\u0502\u0504\u0506\u0508\u050A\u050C\u050E\u0510\u0512\u0514\u0516\u0518\u051A\u051C\u051E\u0520\u0522\u0524\u0526\u0528\u052A\u052C\u052E\u0531-\u0556\u10A0-\u10C5\u10C7\u10CD\u13A0-\u13F5\u1E00\u1E02\u1E04\u1E06\u1E08\u1E0A\u1E0C\u1E0E\u1E10\u1E12\u1E14\u1E16\u1E18\u1E1A\u1E1C\u1E1E\u1E20\u1E22\u1E24\u1E26\u1E28\u1E2A\u1E2C\u1E2E\u1E30\u1E32\u1E34\u1E36\u1E38\u1E3A\u1E3C\u1E3E\u1E40\u1E42\u1E44\u1E46\u1E48\u1E4A\u1E4C\u1E4E\u1E50\u1E52\u1E54\u1E56\u1E58\u1E5A\u1E5C\u1E5E\u1E60\u1E62\u1E64\u1E66\u1E68\u1E6A\u1E6C\u1E6E\u1E70\u1E72\u1E74\u1E76\u1E78\u1E7A\u1E7C\u1E7E\u1E80\u1E82\u1E84\u1E86\u1E88\u1E8A\u1E8C\u1E8E\u1E90\u1E92\u1E94\u1E9E\u1EA0\u1EA2\u1EA4\u1EA6\u1EA8\u1EAA\u1EAC\u1EAE\u1EB0\u1EB2\u1EB4\u1EB6\u1EB8\u1EBA\u1EBC\u1EBE\u1EC0\u1EC2\u1EC4\u1EC6\u1EC8\u1ECA\u1ECC\u1ECE\u1ED0\u1ED2\u1ED4\u1ED6\u1ED8\u1EDA\u1EDC\u1EDE\u1EE0\u1EE2\u1EE4\u1EE6\u1EE8\u1EEA\u1EEC\u1EEE\u1EF0\u1EF2\u1EF4\u1EF6\u1EF8\u1EFA\u1EFC\u1EFE\u1F08-\u1F0F\u1F18-\u1F1D\u1F28-\u1F2F\u1F38-\u1F3F\u1F48-\u1F4D\u1F59\u1F5B\u1F5D\u1F5F\u1F68-\u1F6F\u1FB8-\u1FBB\u1FC8-\u1FCB\u1FD8-\u1FDB\u1FE8-\u1FEC\u1FF8-\u1FFB\u2102\u2107\u210B-\u210D\u2110-\u2112\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u2130-\u2133\u213E-\u213F\u2145\u2183\u2C00-\u2C2E\u2C60\u2C62-\u2C64\u2C67\u2C69\u2C6B\u2C6D-\u2C70\u2C72\u2C75\u2C7E-\u2C80\u2C82\u2C84\u2C86\u2C88\u2C8A\u2C8C\u2C8E\u2C90\u2C92\u2C94\u2C96\u2C98\u2C9A\u2C9C\u2C9E\u2CA0\u2CA2\u2CA4\u2CA6\u2CA8\u2CAA\u2CAC\u2CAE\u2CB0\u2CB2\u2CB4\u2CB6\u2CB8\u2CBA\u2CBC\u2CBE\u2CC0\u2CC2\u2CC4\u2CC6\u2CC8\u2CCA\u2CCC\u2CCE\u2CD0\u2CD2\u2CD4\u2CD6\u2CD8\u2CDA\u2CDC\u2CDE\u2CE0\u2CE2\u2CEB\u2CED\u2CF2\uA640\uA642\uA644\uA646\uA648\uA64A\uA64C\uA64E\uA650\uA652\uA654\uA656\uA658\uA65A\uA65C\uA65E\uA660\uA662\uA664\uA666\uA668\uA66A\uA66C\uA680\uA682\uA684\uA686\uA688\uA68A\uA68C\uA68E\uA690\uA692\uA694\uA696\uA698\uA69A\uA722\uA724\uA726\uA728\uA72A\uA72C\uA72E\uA732\uA734\uA736\uA738\uA73A\uA73C\uA73E\uA740\uA742\uA744\uA746\uA748\uA74A\uA74C\uA74E\uA750\uA752\uA754\uA756\uA758\uA75A\uA75C\uA75E\uA760\uA762\uA764\uA766\uA768\uA76A\uA76C\uA76E\uA779\uA77B\uA77D-\uA77E\uA780\uA782\uA784\uA786\uA78B\uA78D\uA790\uA792\uA796\uA798\uA79A\uA79C\uA79E\uA7A0\uA7A2\uA7A4\uA7A6\uA7A8\uA7AA-\uA7AD\uA7B0-\uA7B4\uA7B6\uFF21-\uFF3A]/,XA=Ut([["A","Z"],["\xc0","\xd6"],["\xd8","\xde"],"\u0100","\u0102","\u0104","\u0106","\u0108","\u010a","\u010c","\u010e","\u0110","\u0112","\u0114","\u0116","\u0118","\u011a","\u011c","\u011e","\u0120","\u0122","\u0124","\u0126","\u0128","\u012a","\u012c","\u012e","\u0130","\u0132","\u0134","\u0136","\u0139","\u013b","\u013d","\u013f","\u0141","\u0143","\u0145","\u0147","\u014a","\u014c","\u014e","\u0150","\u0152","\u0154","\u0156","\u0158","\u015a","\u015c","\u015e","\u0160","\u0162","\u0164","\u0166","\u0168","\u016a","\u016c","\u016e","\u0170","\u0172","\u0174","\u0176",["\u0178","\u0179"],"\u017b","\u017d",["\u0181","\u0182"],"\u0184",["\u0186","\u0187"],["\u0189","\u018b"],["\u018e","\u0191"],["\u0193","\u0194"],["\u0196","\u0198"],["\u019c","\u019d"],["\u019f","\u01a0"],"\u01a2","\u01a4",["\u01a6","\u01a7"],"\u01a9","\u01ac",["\u01ae","\u01af"],["\u01b1","\u01b3"],"\u01b5",["\u01b7","\u01b8"],"\u01bc","\u01c4","\u01c7","\u01ca","\u01cd","\u01cf","\u01d1","\u01d3","\u01d5","\u01d7","\u01d9","\u01db","\u01de","\u01e0","\u01e2","\u01e4","\u01e6","\u01e8","\u01ea","\u01ec","\u01ee","\u01f1","\u01f4",["\u01f6","\u01f8"],"\u01fa","\u01fc","\u01fe","\u0200","\u0202","\u0204","\u0206","\u0208","\u020a","\u020c","\u020e","\u0210","\u0212","\u0214","\u0216","\u0218","\u021a","\u021c","\u021e","\u0220","\u0222","\u0224","\u0226","\u0228","\u022a","\u022c","\u022e","\u0230","\u0232",["\u023a","\u023b"],["\u023d","\u023e"],"\u0241",["\u0243","\u0246"],"\u0248","\u024a","\u024c","\u024e","\u0370","\u0372","\u0376","\u037f","\u0386",["\u0388","\u038a"],"\u038c",["\u038e","\u038f"],["\u0391","\u03a1"],["\u03a3","\u03ab"],"\u03cf",["\u03d2","\u03d4"],"\u03d8","\u03da","\u03dc","\u03de","\u03e0","\u03e2","\u03e4","\u03e6","\u03e8","\u03ea","\u03ec","\u03ee","\u03f4","\u03f7",["\u03f9","\u03fa"],["\u03fd","\u042f"],"\u0460","\u0462","\u0464","\u0466","\u0468","\u046a","\u046c","\u046e","\u0470","\u0472","\u0474","\u0476","\u0478","\u047a","\u047c","\u047e","\u0480","\u048a","\u048c","\u048e","\u0490","\u0492","\u0494","\u0496","\u0498","\u049a","\u049c","\u049e","\u04a0","\u04a2","\u04a4","\u04a6","\u04a8","\u04aa","\u04ac","\u04ae","\u04b0","\u04b2","\u04b4","\u04b6","\u04b8","\u04ba","\u04bc","\u04be",["\u04c0","\u04c1"],"\u04c3","\u04c5","\u04c7","\u04c9","\u04cb","\u04cd","\u04d0","\u04d2","\u04d4","\u04d6","\u04d8","\u04da","\u04dc","\u04de","\u04e0","\u04e2","\u04e4","\u04e6","\u04e8","\u04ea","\u04ec","\u04ee","\u04f0","\u04f2","\u04f4","\u04f6","\u04f8","\u04fa","\u04fc","\u04fe","\u0500","\u0502","\u0504","\u0506","\u0508","\u050a","\u050c","\u050e","\u0510","\u0512","\u0514","\u0516","\u0518","\u051a","\u051c","\u051e","\u0520","\u0522","\u0524","\u0526","\u0528","\u052a","\u052c","\u052e",["\u0531","\u0556"],["\u10a0","\u10c5"],"\u10c7","\u10cd",["\u13a0","\u13f5"],"\u1e00","\u1e02","\u1e04","\u1e06","\u1e08","\u1e0a","\u1e0c","\u1e0e","\u1e10","\u1e12","\u1e14","\u1e16","\u1e18","\u1e1a","\u1e1c","\u1e1e","\u1e20","\u1e22","\u1e24","\u1e26","\u1e28","\u1e2a","\u1e2c","\u1e2e","\u1e30","\u1e32","\u1e34","\u1e36","\u1e38","\u1e3a","\u1e3c","\u1e3e","\u1e40","\u1e42","\u1e44","\u1e46","\u1e48","\u1e4a","\u1e4c","\u1e4e","\u1e50","\u1e52","\u1e54","\u1e56","\u1e58","\u1e5a","\u1e5c","\u1e5e","\u1e60","\u1e62","\u1e64","\u1e66","\u1e68","\u1e6a","\u1e6c","\u1e6e","\u1e70","\u1e72","\u1e74","\u1e76","\u1e78","\u1e7a","\u1e7c","\u1e7e","\u1e80","\u1e82","\u1e84","\u1e86","\u1e88","\u1e8a","\u1e8c","\u1e8e","\u1e90","\u1e92","\u1e94","\u1e9e","\u1ea0","\u1ea2","\u1ea4","\u1ea6","\u1ea8","\u1eaa","\u1eac","\u1eae","\u1eb0","\u1eb2","\u1eb4","\u1eb6","\u1eb8","\u1eba","\u1ebc","\u1ebe","\u1ec0","\u1ec2","\u1ec4","\u1ec6","\u1ec8","\u1eca","\u1ecc","\u1ece","\u1ed0","\u1ed2","\u1ed4","\u1ed6","\u1ed8","\u1eda","\u1edc","\u1ede","\u1ee0","\u1ee2","\u1ee4","\u1ee6","\u1ee8","\u1eea","\u1eec","\u1eee","\u1ef0","\u1ef2","\u1ef4","\u1ef6","\u1ef8","\u1efa","\u1efc","\u1efe",["\u1f08","\u1f0f"],["\u1f18","\u1f1d"],["\u1f28","\u1f2f"],["\u1f38","\u1f3f"],["\u1f48","\u1f4d"],"\u1f59","\u1f5b","\u1f5d","\u1f5f",["\u1f68","\u1f6f"],["\u1fb8","\u1fbb"],["\u1fc8","\u1fcb"],["\u1fd8","\u1fdb"],["\u1fe8","\u1fec"],["\u1ff8","\u1ffb"],"\u2102","\u2107",["\u210b","\u210d"],["\u2110","\u2112"],"\u2115",["\u2119","\u211d"],"\u2124","\u2126","\u2128",["\u212a","\u212d"],["\u2130","\u2133"],["\u213e","\u213f"],"\u2145","\u2183",["\u2c00","\u2c2e"],"\u2c60",["\u2c62","\u2c64"],"\u2c67","\u2c69","\u2c6b",["\u2c6d","\u2c70"],"\u2c72","\u2c75",["\u2c7e","\u2c80"],"\u2c82","\u2c84","\u2c86","\u2c88","\u2c8a","\u2c8c","\u2c8e","\u2c90","\u2c92","\u2c94","\u2c96","\u2c98","\u2c9a","\u2c9c","\u2c9e","\u2ca0","\u2ca2","\u2ca4","\u2ca6","\u2ca8","\u2caa","\u2cac","\u2cae","\u2cb0","\u2cb2","\u2cb4","\u2cb6","\u2cb8","\u2cba","\u2cbc","\u2cbe","\u2cc0","\u2cc2","\u2cc4","\u2cc6","\u2cc8","\u2cca","\u2ccc","\u2cce","\u2cd0","\u2cd2","\u2cd4","\u2cd6","\u2cd8","\u2cda","\u2cdc","\u2cde","\u2ce0","\u2ce2","\u2ceb","\u2ced","\u2cf2","\ua640","\ua642","\ua644","\ua646","\ua648","\ua64a","\ua64c","\ua64e","\ua650","\ua652","\ua654","\ua656","\ua658","\ua65a","\ua65c","\ua65e","\ua660","\ua662","\ua664","\ua666","\ua668","\ua66a","\ua66c","\ua680","\ua682","\ua684","\ua686","\ua688","\ua68a","\ua68c","\ua68e","\ua690","\ua692","\ua694","\ua696","\ua698","\ua69a","\ua722","\ua724","\ua726","\ua728","\ua72a","\ua72c","\ua72e","\ua732","\ua734","\ua736","\ua738","\ua73a","\ua73c","\ua73e","\ua740","\ua742","\ua744","\ua746","\ua748","\ua74a","\ua74c","\ua74e","\ua750","\ua752","\ua754","\ua756","\ua758","\ua75a","\ua75c","\ua75e","\ua760","\ua762","\ua764","\ua766","\ua768","\ua76a","\ua76c","\ua76e","\ua779","\ua77b",["\ua77d","\ua77e"],"\ua780","\ua782","\ua784","\ua786","\ua78b","\ua78d","\ua790","\ua792","\ua796","\ua798","\ua79a","\ua79c","\ua79e","\ua7a0","\ua7a2","\ua7a4","\ua7a6","\ua7a8",["\ua7aa","\ua7ad"],["\ua7b0","\ua7b4"],"\ua7b6",["\uff21","\uff3a"]],!1,!1),YA=/^[\u0903\u093B\u093E-\u0940\u0949-\u094C\u094E-\u094F\u0982-\u0983\u09BE-\u09C0\u09C7-\u09C8\u09CB-\u09CC\u09D7\u0A03\u0A3E-\u0A40\u0A83\u0ABE-\u0AC0\u0AC9\u0ACB-\u0ACC\u0B02-\u0B03\u0B3E\u0B40\u0B47-\u0B48\u0B4B-\u0B4C\u0B57\u0BBE-\u0BBF\u0BC1-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCC\u0BD7\u0C01-\u0C03\u0C41-\u0C44\u0C82-\u0C83\u0CBE\u0CC0-\u0CC4\u0CC7-\u0CC8\u0CCA-\u0CCB\u0CD5-\u0CD6\u0D02-\u0D03\u0D3E-\u0D40\u0D46-\u0D48\u0D4A-\u0D4C\u0D57\u0D82-\u0D83\u0DCF-\u0DD1\u0DD8-\u0DDF\u0DF2-\u0DF3\u0F3E-\u0F3F\u0F7F\u102B-\u102C\u1031\u1038\u103B-\u103C\u1056-\u1057\u1062-\u1064\u1067-\u106D\u1083-\u1084\u1087-\u108C\u108F\u109A-\u109C\u17B6\u17BE-\u17C5\u17C7-\u17C8\u1923-\u1926\u1929-\u192B\u1930-\u1931\u1933-\u1938\u1A19-\u1A1A\u1A55\u1A57\u1A61\u1A63-\u1A64\u1A6D-\u1A72\u1B04\u1B35\u1B3B\u1B3D-\u1B41\u1B43-\u1B44\u1B82\u1BA1\u1BA6-\u1BA7\u1BAA\u1BE7\u1BEA-\u1BEC\u1BEE\u1BF2-\u1BF3\u1C24-\u1C2B\u1C34-\u1C35\u1CE1\u1CF2-\u1CF3\u302E-\u302F\uA823-\uA824\uA827\uA880-\uA881\uA8B4-\uA8C3\uA952-\uA953\uA983\uA9B4-\uA9B5\uA9BA-\uA9BB\uA9BD-\uA9C0\uAA2F-\uAA30\uAA33-\uAA34\uAA4D\uAA7B\uAA7D\uAAEB\uAAEE-\uAAEF\uAAF5\uABE3-\uABE4\uABE6-\uABE7\uABE9-\uABEA\uABEC]/,ur=Ut(["\u0903","\u093b",["\u093e","\u0940"],["\u0949","\u094c"],["\u094e","\u094f"],["\u0982","\u0983"],["\u09be","\u09c0"],["\u09c7","\u09c8"],["\u09cb","\u09cc"],"\u09d7","\u0a03",["\u0a3e","\u0a40"],"\u0a83",["\u0abe","\u0ac0"],"\u0ac9",["\u0acb","\u0acc"],["\u0b02","\u0b03"],"\u0b3e","\u0b40",["\u0b47","\u0b48"],["\u0b4b","\u0b4c"],"\u0b57",["\u0bbe","\u0bbf"],["\u0bc1","\u0bc2"],["\u0bc6","\u0bc8"],["\u0bca","\u0bcc"],"\u0bd7",["\u0c01","\u0c03"],["\u0c41","\u0c44"],["\u0c82","\u0c83"],"\u0cbe",["\u0cc0","\u0cc4"],["\u0cc7","\u0cc8"],["\u0cca","\u0ccb"],["\u0cd5","\u0cd6"],["\u0d02","\u0d03"],["\u0d3e","\u0d40"],["\u0d46","\u0d48"],["\u0d4a","\u0d4c"],"\u0d57",["\u0d82","\u0d83"],["\u0dcf","\u0dd1"],["\u0dd8","\u0ddf"],["\u0df2","\u0df3"],["\u0f3e","\u0f3f"],"\u0f7f",["\u102b","\u102c"],"\u1031","\u1038",["\u103b","\u103c"],["\u1056","\u1057"],["\u1062","\u1064"],["\u1067","\u106d"],["\u1083","\u1084"],["\u1087","\u108c"],"\u108f",["\u109a","\u109c"],"\u17b6",["\u17be","\u17c5"],["\u17c7","\u17c8"],["\u1923","\u1926"],["\u1929","\u192b"],["\u1930","\u1931"],["\u1933","\u1938"],["\u1a19","\u1a1a"],"\u1a55","\u1a57","\u1a61",["\u1a63","\u1a64"],["\u1a6d","\u1a72"],"\u1b04","\u1b35","\u1b3b",["\u1b3d","\u1b41"],["\u1b43","\u1b44"],"\u1b82","\u1ba1",["\u1ba6","\u1ba7"],"\u1baa","\u1be7",["\u1bea","\u1bec"],"\u1bee",["\u1bf2","\u1bf3"],["\u1c24","\u1c2b"],["\u1c34","\u1c35"],"\u1ce1",["\u1cf2","\u1cf3"],["\u302e","\u302f"],["\ua823","\ua824"],"\ua827",["\ua880","\ua881"],["\ua8b4","\ua8c3"],["\ua952","\ua953"],"\ua983",["\ua9b4","\ua9b5"],["\ua9ba","\ua9bb"],["\ua9bd","\ua9c0"],["\uaa2f","\uaa30"],["\uaa33","\uaa34"],"\uaa4d","\uaa7b","\uaa7d","\uaaeb",["\uaaee","\uaaef"],"\uaaf5",["\uabe3","\uabe4"],["\uabe6","\uabe7"],["\uabe9","\uabea"],"\uabec"],!1,!1),Ar=/^[\u0300-\u036F\u0483-\u0487\u0591-\u05BD\u05BF\u05C1-\u05C2\u05C4-\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7-\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u08E3-\u0902\u093A\u093C\u0941-\u0948\u094D\u0951-\u0957\u0962-\u0963\u0981\u09BC\u09C1-\u09C4\u09CD\u09E2-\u09E3\u0A01-\u0A02\u0A3C\u0A41-\u0A42\u0A47-\u0A48\u0A4B-\u0A4D\u0A51\u0A70-\u0A71\u0A75\u0A81-\u0A82\u0ABC\u0AC1-\u0AC5\u0AC7-\u0AC8\u0ACD\u0AE2-\u0AE3\u0B01\u0B3C\u0B3F\u0B41-\u0B44\u0B4D\u0B56\u0B62-\u0B63\u0B82\u0BC0\u0BCD\u0C00\u0C3E-\u0C40\u0C46-\u0C48\u0C4A-\u0C4D\u0C55-\u0C56\u0C62-\u0C63\u0C81\u0CBC\u0CBF\u0CC6\u0CCC-\u0CCD\u0CE2-\u0CE3\u0D01\u0D41-\u0D44\u0D4D\u0D62-\u0D63\u0DCA\u0DD2-\u0DD4\u0DD6\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EB9\u0EBB-\u0EBC\u0EC8-\u0ECD\u0F18-\u0F19\u0F35\u0F37\u0F39\u0F71-\u0F7E\u0F80-\u0F84\u0F86-\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102D-\u1030\u1032-\u1037\u1039-\u103A\u103D-\u103E\u1058-\u1059\u105E-\u1060\u1071-\u1074\u1082\u1085-\u1086\u108D\u109D\u135D-\u135F\u1712-\u1714\u1732-\u1734\u1752-\u1753\u1772-\u1773\u17B4-\u17B5\u17B7-\u17BD\u17C6\u17C9-\u17D3\u17DD\u180B-\u180D\u18A9\u1920-\u1922\u1927-\u1928\u1932\u1939-\u193B\u1A17-\u1A18\u1A1B\u1A56\u1A58-\u1A5E\u1A60\u1A62\u1A65-\u1A6C\u1A73-\u1A7C\u1A7F\u1AB0-\u1ABD\u1B00-\u1B03\u1B34\u1B36-\u1B3A\u1B3C\u1B42\u1B6B-\u1B73\u1B80-\u1B81\u1BA2-\u1BA5\u1BA8-\u1BA9\u1BAB-\u1BAD\u1BE6\u1BE8-\u1BE9\u1BED\u1BEF-\u1BF1\u1C2C-\u1C33\u1C36-\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE0\u1CE2-\u1CE8\u1CED\u1CF4\u1CF8-\u1CF9\u1DC0-\u1DF5\u1DFC-\u1DFF\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302D\u3099-\u309A\uA66F\uA674-\uA67D\uA69E-\uA69F\uA6F0-\uA6F1\uA802\uA806\uA80B\uA825-\uA826\uA8C4\uA8E0-\uA8F1\uA926-\uA92D\uA947-\uA951\uA980-\uA982\uA9B3\uA9B6-\uA9B9\uA9BC\uA9E5\uAA29-\uAA2E\uAA31-\uAA32\uAA35-\uAA36\uAA43\uAA4C\uAA7C\uAAB0\uAAB2-\uAAB4\uAAB7-\uAAB8\uAABE-\uAABF\uAAC1\uAAEC-\uAAED\uAAF6\uABE5\uABE8\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F]/,rr=Ut([["\u0300","\u036f"],["\u0483","\u0487"],["\u0591","\u05bd"],"\u05bf",["\u05c1","\u05c2"],["\u05c4","\u05c5"],"\u05c7",["\u0610","\u061a"],["\u064b","\u065f"],"\u0670",["\u06d6","\u06dc"],["\u06df","\u06e4"],["\u06e7","\u06e8"],["\u06ea","\u06ed"],"\u0711",["\u0730","\u074a"],["\u07a6","\u07b0"],["\u07eb","\u07f3"],["\u0816","\u0819"],["\u081b","\u0823"],["\u0825","\u0827"],["\u0829","\u082d"],["\u0859","\u085b"],["\u08e3","\u0902"],"\u093a","\u093c",["\u0941","\u0948"],"\u094d",["\u0951","\u0957"],["\u0962","\u0963"],"\u0981","\u09bc",["\u09c1","\u09c4"],"\u09cd",["\u09e2","\u09e3"],["\u0a01","\u0a02"],"\u0a3c",["\u0a41","\u0a42"],["\u0a47","\u0a48"],["\u0a4b","\u0a4d"],"\u0a51",["\u0a70","\u0a71"],"\u0a75",["\u0a81","\u0a82"],"\u0abc",["\u0ac1","\u0ac5"],["\u0ac7","\u0ac8"],"\u0acd",["\u0ae2","\u0ae3"],"\u0b01","\u0b3c","\u0b3f",["\u0b41","\u0b44"],"\u0b4d","\u0b56",["\u0b62","\u0b63"],"\u0b82","\u0bc0","\u0bcd","\u0c00",["\u0c3e","\u0c40"],["\u0c46","\u0c48"],["\u0c4a","\u0c4d"],["\u0c55","\u0c56"],["\u0c62","\u0c63"],"\u0c81","\u0cbc","\u0cbf","\u0cc6",["\u0ccc","\u0ccd"],["\u0ce2","\u0ce3"],"\u0d01",["\u0d41","\u0d44"],"\u0d4d",["\u0d62","\u0d63"],"\u0dca",["\u0dd2","\u0dd4"],"\u0dd6","\u0e31",["\u0e34","\u0e3a"],["\u0e47","\u0e4e"],"\u0eb1",["\u0eb4","\u0eb9"],["\u0ebb","\u0ebc"],["\u0ec8","\u0ecd"],["\u0f18","\u0f19"],"\u0f35","\u0f37","\u0f39",["\u0f71","\u0f7e"],["\u0f80","\u0f84"],["\u0f86","\u0f87"],["\u0f8d","\u0f97"],["\u0f99","\u0fbc"],"\u0fc6",["\u102d","\u1030"],["\u1032","\u1037"],["\u1039","\u103a"],["\u103d","\u103e"],["\u1058","\u1059"],["\u105e","\u1060"],["\u1071","\u1074"],"\u1082",["\u1085","\u1086"],"\u108d","\u109d",["\u135d","\u135f"],["\u1712","\u1714"],["\u1732","\u1734"],["\u1752","\u1753"],["\u1772","\u1773"],["\u17b4","\u17b5"],["\u17b7","\u17bd"],"\u17c6",["\u17c9","\u17d3"],"\u17dd",["\u180b","\u180d"],"\u18a9",["\u1920","\u1922"],["\u1927","\u1928"],"\u1932",["\u1939","\u193b"],["\u1a17","\u1a18"],"\u1a1b","\u1a56",["\u1a58","\u1a5e"],"\u1a60","\u1a62",["\u1a65","\u1a6c"],["\u1a73","\u1a7c"],"\u1a7f",["\u1ab0","\u1abd"],["\u1b00","\u1b03"],"\u1b34",["\u1b36","\u1b3a"],"\u1b3c","\u1b42",["\u1b6b","\u1b73"],["\u1b80","\u1b81"],["\u1ba2","\u1ba5"],["\u1ba8","\u1ba9"],["\u1bab","\u1bad"],"\u1be6",["\u1be8","\u1be9"],"\u1bed",["\u1bef","\u1bf1"],["\u1c2c","\u1c33"],["\u1c36","\u1c37"],["\u1cd0","\u1cd2"],["\u1cd4","\u1ce0"],["\u1ce2","\u1ce8"],"\u1ced","\u1cf4",["\u1cf8","\u1cf9"],["\u1dc0","\u1df5"],["\u1dfc","\u1dff"],["\u20d0","\u20dc"],"\u20e1",["\u20e5","\u20f0"],["\u2cef","\u2cf1"],"\u2d7f",["\u2de0","\u2dff"],["\u302a","\u302d"],["\u3099","\u309a"],"\ua66f",["\ua674","\ua67d"],["\ua69e","\ua69f"],["\ua6f0","\ua6f1"],"\ua802","\ua806","\ua80b",["\ua825","\ua826"],"\ua8c4",["\ua8e0","\ua8f1"],["\ua926","\ua92d"],["\ua947","\ua951"],["\ua980","\ua982"],"\ua9b3",["\ua9b6","\ua9b9"],"\ua9bc","\ua9e5",["\uaa29","\uaa2e"],["\uaa31","\uaa32"],["\uaa35","\uaa36"],"\uaa43","\uaa4c","\uaa7c","\uaab0",["\uaab2","\uaab4"],["\uaab7","\uaab8"],["\uaabe","\uaabf"],"\uaac1",["\uaaec","\uaaed"],"\uaaf6","\uabe5","\uabe8","\uabed","\ufb1e",["\ufe00","\ufe0f"],["\ufe20","\ufe2f"]],!1,!1),tr=/^[0-9\u0660-\u0669\u06F0-\u06F9\u07C0-\u07C9\u0966-\u096F\u09E6-\u09EF\u0A66-\u0A6F\u0AE6-\u0AEF\u0B66-\u0B6F\u0BE6-\u0BEF\u0C66-\u0C6F\u0CE6-\u0CEF\u0D66-\u0D6F\u0DE6-\u0DEF\u0E50-\u0E59\u0ED0-\u0ED9\u0F20-\u0F29\u1040-\u1049\u1090-\u1099\u17E0-\u17E9\u1810-\u1819\u1946-\u194F\u19D0-\u19D9\u1A80-\u1A89\u1A90-\u1A99\u1B50-\u1B59\u1BB0-\u1BB9\u1C40-\u1C49\u1C50-\u1C59\uA620-\uA629\uA8D0-\uA8D9\uA900-\uA909\uA9D0-\uA9D9\uA9F0-\uA9F9\uAA50-\uAA59\uABF0-\uABF9\uFF10-\uFF19]/,nr=Ut([["0","9"],["\u0660","\u0669"],["\u06f0","\u06f9"],["\u07c0","\u07c9"],["\u0966","\u096f"],["\u09e6","\u09ef"],["\u0a66","\u0a6f"],["\u0ae6","\u0aef"],["\u0b66","\u0b6f"],["\u0be6","\u0bef"],["\u0c66","\u0c6f"],["\u0ce6","\u0cef"],["\u0d66","\u0d6f"],["\u0de6","\u0def"],["\u0e50","\u0e59"],["\u0ed0","\u0ed9"],["\u0f20","\u0f29"],["\u1040","\u1049"],["\u1090","\u1099"],["\u17e0","\u17e9"],["\u1810","\u1819"],["\u1946","\u194f"],["\u19d0","\u19d9"],["\u1a80","\u1a89"],["\u1a90","\u1a99"],["\u1b50","\u1b59"],["\u1bb0","\u1bb9"],["\u1c40","\u1c49"],["\u1c50","\u1c59"],["\ua620","\ua629"],["\ua8d0","\ua8d9"],["\ua900","\ua909"],["\ua9d0","\ua9d9"],["\ua9f0","\ua9f9"],["\uaa50","\uaa59"],["\uabf0","\uabf9"],["\uff10","\uff19"]],!1,!1),Cr=/^[\u16EE-\u16F0\u2160-\u2182\u2185-\u2188\u3007\u3021-\u3029\u3038-\u303A\uA6E6-\uA6EF]/,Er=Ut([["\u16ee","\u16f0"],["\u2160","\u2182"],["\u2185","\u2188"],"\u3007",["\u3021","\u3029"],["\u3038","\u303a"],["\ua6e6","\ua6ef"]],!1,!1),er=/^[_\u203F-\u2040\u2054\uFE33-\uFE34\uFE4D-\uFE4F\uFF3F]/,Fr=Ut(["_",["\u203f","\u2040"],"\u2054",["\ufe33","\ufe34"],["\ufe4d","\ufe4f"],"\uff3f"],!1,!1),Br=/^[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,or=Ut([" ","\xa0","\u1680",["\u2000","\u200a"],"\u202f","\u205f","\u3000"],!1,!1),Dr="break",cr=Gt("break",!1),ar="case",ir=Gt("case",!1),fr="catch",sr=Gt("catch",!1),vr="class",hr=Gt("class",!1),lr="const",dr=Gt("const",!1),pr="continue",br=Gt("continue",!1),gr="debugger",xr=Gt("debugger",!1),yr="default",mr=Gt("default",!1),wr="delete",_r=Gt("delete",!1),Sr="do",kr=Gt("do",!1),zr="else",Rr=Gt("else",!1),jr="enum",$r=Gt("enum",!1),qr="export",Ir=Gt("export",!1),Mr="extends",Tr=Gt("extends",!1),Zr="false",Gr=Gt("false",!1),Ur="finally",Hr=Gt("finally",!1),Jr="for",Kr=Gt("for",!1),Lr="function",Nr=Gt("function",!1),Or="if",Pr=Gt("if",!1),Qr="import",Vr=Gt("import",!1),Wr="instanceof",Xr=Gt("instanceof",!1),Yr="in",ut=Gt("in",!1),At="new",rt=Gt("new",!1),tt="null",nt=Gt("null",!1),Ct="return",Et=Gt("return",!1),et="super",Ft=Gt("super",!1),Bt="switch",ot=Gt("switch",!1),Dt="this",ct=Gt("this",!1),at="throw",it=Gt("throw",!1),ft="true",st=Gt("true",!1),vt="try",ht=Gt("try",!1),lt="typeof",dt=Gt("typeof",!1),pt="var",bt=Gt("var",!1),gt="void",xt=Gt("void",!1),yt="while",mt=Gt("while",!1),wt="with",_t=Gt("with",!1),St=";",kt=Gt(";",!1),zt=0,Rt=0,jt=[{line:1,column:1}],$t=0,qt=[],It=0;if("startRule"in A){if(!(A.startRule in n))throw new Error("Can't start parsing from rule \""+A.startRule+"\".");C=n[A.startRule]}function Mt(){return u.substring(Rt,zt)}function Tt(){return Kt(Rt,zt)}function Zt(u,A){throw Nt(u,A=void 0!==A?A:Kt(Rt,zt))}function Gt(u,A){return{type:"literal",text:u,ignoreCase:A}}function Ut(u,A,r){return{type:"class",parts:u,inverted:A,ignoreCase:r}}function Ht(u){return{type:"other",description:u}}function Jt(A){var r,t=jt[A];if(t)return t;for(r=A-1;!jt[r];)r--;for(t={line:(t=jt[r]).line,column:t.column};r$t&&($t=zt,qt=[]),qt.push(u))}function Nt(u,A){return new e(u,null,null,A)}function Ot(){var u,A,r,n,C,e;if(u=zt,GC()!==t)if(A=zt,(r=Pt())!==t&&(n=GC())!==t?A=r=[r,n]:(zt=A,A=t),A===t&&(A=null),A!==t){if(r=[],n=zt,(C=Qt())!==t&&(e=GC())!==t?n=C=[C,e]:(zt=n,n=t),n!==t)for(;n!==t;)r.push(n),n=zt,(C=Qt())!==t&&(e=GC())!==t?n=C=[C,e]:(zt=n,n=t);else r=t;r!==t?(Rt=u,u=E(A,r)):(zt=u,u=t)}else zt=u,u=t;else zt=u,u=t;return u}function Pt(){var u,A;return u=zt,(A=Ln())!==t&&HC()!==t?(Rt=u,u=A=F(A)):(zt=u,u=t),u}function Qt(){var A,r,n,C,E,e;return A=zt,(r=hn())!==t&&GC()!==t?(n=zt,(C=_n())!==t&&(E=GC())!==t?n=C=[C,E]:(zt=n,n=t),n===t&&(n=null),n!==t?(61===u.charCodeAt(zt)?(C=B,zt++):(C=t,0===It&&Lt(o)),C!==t&&(E=GC())!==t&&(e=Vt())!==t&&HC()!==t?(Rt=A,A=r=D(r,n,e)):(zt=A,A=t)):(zt=A,A=t)):(zt=A,A=t),A}function Vt(){var A,r,n,C,E,e,F,B;if(A=zt,(r=Wt())!==t){for(n=[],C=zt,(E=GC())!==t?(47===u.charCodeAt(zt)?(e=c,zt++):(e=t,0===It&&Lt(a)),e!==t&&(F=GC())!==t&&(B=Wt())!==t?C=E=[E,e,F,B]:(zt=C,C=t)):(zt=C,C=t);C!==t;)n.push(C),C=zt,(E=GC())!==t?(47===u.charCodeAt(zt)?(e=c,zt++):(e=t,0===It&&Lt(a)),e!==t&&(F=GC())!==t&&(B=Wt())!==t?C=E=[E,e,F,B]:(zt=C,C=t)):(zt=C,C=t);n!==t?(Rt=A,A=r=i(r,n)):(zt=A,A=t)}else zt=A,A=t;return A}function Wt(){var u,A,r,n,C;return u=zt,(A=Xt())!==t?(r=zt,(n=GC())!==t&&(C=Ln())!==t?r=n=[n,C]:(zt=r,r=t),r===t&&(r=null),r!==t?(Rt=u,u=A=f(A,r)):(zt=u,u=t)):(zt=u,u=t),u}function Xt(){var u,A,r,n,C,E;if(u=zt,(A=Yt())!==t){for(r=[],n=zt,(C=GC())!==t&&(E=Yt())!==t?n=C=[C,E]:(zt=n,n=t);n!==t;)r.push(n),n=zt,(C=GC())!==t&&(E=Yt())!==t?n=C=[C,E]:(zt=n,n=t);r!==t?(Rt=u,u=A=s(A,r)):(zt=u,u=t)}else zt=u,u=t;return u}function Yt(){var A,r,n,C;return A=zt,(r=vn())!==t&&GC()!==t?(58===u.charCodeAt(zt)?(n=v,zt++):(n=t,0===It&&Lt(h)),n!==t&&GC()!==t&&(C=un())!==t?(Rt=A,A=r=l(r,C)):(zt=A,A=t)):(zt=A,A=t),A===t&&(A=un()),A}function un(){var u,A,r;return u=zt,(A=An())!==t&&GC()!==t&&(r=rn())!==t?(Rt=u,u=A=d(A,r)):(zt=u,u=t),u===t&&(u=rn()),u}function An(){var A;return 36===u.charCodeAt(zt)?(A=p,zt++):(A=t,0===It&&Lt(b)),A===t&&(38===u.charCodeAt(zt)?(A=g,zt++):(A=t,0===It&&Lt(x)),A===t&&(33===u.charCodeAt(zt)?(A=y,zt++):(A=t,0===It&&Lt(m)))),A}function rn(){var u,A,r;return u=zt,(A=nn())!==t&&GC()!==t&&(r=tn())!==t?(Rt=u,u=A=w(A,r)):(zt=u,u=t),u===t&&(u=nn()),u}function tn(){var A;return 63===u.charCodeAt(zt)?(A=_,zt++):(A=t,0===It&&Lt(S)),A===t&&(42===u.charCodeAt(zt)?(A=k,zt++):(A=t,0===It&&Lt(z)),A===t&&(43===u.charCodeAt(zt)?(A=R,zt++):(A=t,0===It&&Lt(j)))),A}function nn(){var A,r,n,C;return(A=wn())===t&&(A=zn())===t&&(A=Kn())===t&&(A=Cn())===t&&(A=En())===t&&(A=zt,40===u.charCodeAt(zt)?(r=$,zt++):(r=t,0===It&&Lt(q)),r!==t&&GC()!==t&&(n=Vt())!==t&&GC()!==t?(41===u.charCodeAt(zt)?(C=I,zt++):(C=t,0===It&&Lt(M)),C!==t?(Rt=A,A=r=T(n)):(zt=A,A=t)):(zt=A,A=t)),A}function Cn(){var A,r,n,C,E,e,F,D;return A=zt,(r=hn())!==t?(n=zt,It++,C=zt,(E=GC())!==t?(e=zt,(F=_n())!==t&&(D=GC())!==t?e=F=[F,D]:(zt=e,e=t),e===t&&(e=null),e!==t?(61===u.charCodeAt(zt)?(F=B,zt++):(F=t,0===It&&Lt(o)),F!==t?C=E=[E,e,F]:(zt=C,C=t)):(zt=C,C=t)):(zt=C,C=t),It--,C===t?n=void 0:(zt=n,n=t),n!==t?(Rt=A,A=r=Z(r)):(zt=A,A=t)):(zt=A,A=t),A}function En(){var u,A,r;return u=zt,(A=en())!==t&&GC()!==t&&(r=Ln())!==t?(Rt=u,u=A=G(A,r)):(zt=u,u=t),u}function en(){var A;return 38===u.charCodeAt(zt)?(A=g,zt++):(A=t,0===It&&Lt(x)),A===t&&(33===u.charCodeAt(zt)?(A=y,zt++):(A=t,0===It&&Lt(m))),A}function Fn(){var A;return u.length>zt?(A=u.charAt(zt),zt++):(A=t,0===It&&Lt(U)),A}function Bn(){var A;return It++,9===u.charCodeAt(zt)?(A=J,zt++):(A=t,0===It&&Lt(K)),A===t&&(11===u.charCodeAt(zt)?(A=L,zt++):(A=t,0===It&&Lt(N)),A===t&&(12===u.charCodeAt(zt)?(A=O,zt++):(A=t,0===It&&Lt(P)),A===t&&(32===u.charCodeAt(zt)?(A=Q,zt++):(A=t,0===It&&Lt(V)),A===t&&(160===u.charCodeAt(zt)?(A=W,zt++):(A=t,0===It&&Lt(X)),A===t&&(65279===u.charCodeAt(zt)?(A=Y,zt++):(A=t,0===It&&Lt(uu)),A===t&&(A=tC())))))),It--,A===t&&0===It&&Lt(H),A}function on(){var A;return Au.test(u.charAt(zt))?(A=u.charAt(zt),zt++):(A=t,0===It&&Lt(ru)),A}function Dn(){var A;return It++,10===u.charCodeAt(zt)?(A=nu,zt++):(A=t,0===It&&Lt(Cu)),A===t&&(u.substr(zt,2)===Eu?(A=Eu,zt+=2):(A=t,0===It&&Lt(eu)),A===t&&(13===u.charCodeAt(zt)?(A=Fu,zt++):(A=t,0===It&&Lt(Bu)),A===t&&(8232===u.charCodeAt(zt)?(A=ou,zt++):(A=t,0===It&&Lt(Du)),A===t&&(8233===u.charCodeAt(zt)?(A=cu,zt++):(A=t,0===It&&Lt(au)))))),It--,A===t&&0===It&&Lt(tu),A}function cn(){var u;return It++,(u=an())===t&&(u=sn()),It--,u===t&&0===It&&Lt(iu),u}function an(){var A,r,n,C,E,e;if(A=zt,u.substr(zt,2)===fu?(r=fu,zt+=2):(r=t,0===It&&Lt(su)),r!==t){for(n=[],C=zt,E=zt,It++,u.substr(zt,2)===vu?(e=vu,zt+=2):(e=t,0===It&&Lt(hu)),It--,e===t?E=void 0:(zt=E,E=t),E!==t&&(e=Fn())!==t?C=E=[E,e]:(zt=C,C=t);C!==t;)n.push(C),C=zt,E=zt,It++,u.substr(zt,2)===vu?(e=vu,zt+=2):(e=t,0===It&&Lt(hu)),It--,e===t?E=void 0:(zt=E,E=t),E!==t&&(e=Fn())!==t?C=E=[E,e]:(zt=C,C=t);n!==t?(u.substr(zt,2)===vu?(C=vu,zt+=2):(C=t,0===It&&Lt(hu)),C!==t?A=r=[r,n,C]:(zt=A,A=t)):(zt=A,A=t)}else zt=A,A=t;return A}function fn(){var A,r,n,C,E,e;if(A=zt,u.substr(zt,2)===fu?(r=fu,zt+=2):(r=t,0===It&&Lt(su)),r!==t){for(n=[],C=zt,E=zt,It++,u.substr(zt,2)===vu?(e=vu,zt+=2):(e=t,0===It&&Lt(hu)),e===t&&(e=on()),It--,e===t?E=void 0:(zt=E,E=t),E!==t&&(e=Fn())!==t?C=E=[E,e]:(zt=C,C=t);C!==t;)n.push(C),C=zt,E=zt,It++,u.substr(zt,2)===vu?(e=vu,zt+=2):(e=t,0===It&&Lt(hu)),e===t&&(e=on()),It--,e===t?E=void 0:(zt=E,E=t),E!==t&&(e=Fn())!==t?C=E=[E,e]:(zt=C,C=t);n!==t?(u.substr(zt,2)===vu?(C=vu,zt+=2):(C=t,0===It&&Lt(hu)),C!==t?A=r=[r,n,C]:(zt=A,A=t)):(zt=A,A=t)}else zt=A,A=t;return A}function sn(){var A,r,n,C,E,e;if(A=zt,u.substr(zt,2)===lu?(r=lu,zt+=2):(r=t,0===It&&Lt(du)),r!==t){for(n=[],C=zt,E=zt,It++,e=on(),It--,e===t?E=void 0:(zt=E,E=t),E!==t&&(e=Fn())!==t?C=E=[E,e]:(zt=C,C=t);C!==t;)n.push(C),C=zt,E=zt,It++,e=on(),It--,e===t?E=void 0:(zt=E,E=t),E!==t&&(e=Fn())!==t?C=E=[E,e]:(zt=C,C=t);n!==t?A=r=[r,n]:(zt=A,A=t)}else zt=A,A=t;return A}function vn(){var u,A,r;return u=zt,A=zt,It++,r=gn(),It--,r===t?A=void 0:(zt=A,A=t),A!==t&&(r=hn())!==t?(Rt=u,u=A=pu(r)):(zt=u,u=t),u}function hn(){var u,A,r,n;if(It++,u=zt,(A=ln())!==t){for(r=[],n=dn();n!==t;)r.push(n),n=dn();r!==t?(Rt=u,u=A=gu(A,r)):(zt=u,u=t)}else zt=u,u=t;return It--,u===t&&(A=t,0===It&&Lt(bu)),u}function ln(){var A,r,n;return(A=pn())===t&&(36===u.charCodeAt(zt)?(A=p,zt++):(A=t,0===It&&Lt(b)),A===t&&(95===u.charCodeAt(zt)?(A=xu,zt++):(A=t,0===It&&Lt(yu)),A===t&&(A=zt,92===u.charCodeAt(zt)?(r=mu,zt++):(r=t,0===It&&Lt(wu)),r!==t&&(n=Un())!==t?(Rt=A,A=r=_u(n)):(zt=A,A=t)))),A}function dn(){var A;return(A=ln())===t&&(A=bn())===t&&(A=uC())===t&&(A=rC())===t&&(8204===u.charCodeAt(zt)?(A=Su,zt++):(A=t,0===It&&Lt(ku)),A===t&&(8205===u.charCodeAt(zt)?(A=zu,zt++):(A=t,0===It&&Lt(Ru)))),A}function pn(){var u;return(u=Wn())===t&&(u=On())===t&&(u=Vn())===t&&(u=Pn())===t&&(u=Qn())===t&&(u=AC()),u}function bn(){var u;return(u=Yn())===t&&(u=Xn()),u}function gn(){var u;return(u=xn())===t&&(u=yn())===t&&(u=wC())===t&&(u=mn()),u}function xn(){var u;return(u=nC())===t&&(u=CC())===t&&(u=EC())===t&&(u=BC())===t&&(u=oC())===t&&(u=DC())===t&&(u=cC())===t&&(u=aC())===t&&(u=iC())===t&&(u=lC())===t&&(u=dC())===t&&(u=pC())===t&&(u=bC())===t&&(u=xC())===t&&(u=yC())===t&&(u=mC())===t&&(u=_C())===t&&(u=kC())===t&&(u=zC())===t&&(u=RC())===t&&(u=$C())===t&&(u=qC())===t&&(u=IC())===t&&(u=MC())===t&&(u=TC())===t&&(u=ZC()),u}function yn(){var u;return(u=eC())===t&&(u=FC())===t&&(u=fC())===t&&(u=sC())===t&&(u=vC())===t&&(u=gC())===t&&(u=SC()),u}function mn(){var u;return(u=jC())===t&&(u=hC()),u}function wn(){var A,r,n;return It++,A=zt,(r=_n())!==t?(105===u.charCodeAt(zt)?(n=$u,zt++):(n=t,0===It&&Lt(qu)),n===t&&(n=null),n!==t?(Rt=A,A=r=Iu(r,n)):(zt=A,A=t)):(zt=A,A=t),It--,A===t&&(r=t,0===It&&Lt(ju)),A}function _n(){var A,r,n,C;if(It++,A=zt,34===u.charCodeAt(zt)?(r=Tu,zt++):(r=t,0===It&&Lt(Zu)),r!==t){for(n=[],C=Sn();C!==t;)n.push(C),C=Sn();n!==t?(34===u.charCodeAt(zt)?(C=Tu,zt++):(C=t,0===It&&Lt(Zu)),C!==t?(Rt=A,A=r=Gu(n)):(zt=A,A=t)):(zt=A,A=t)}else zt=A,A=t;if(A===t)if(A=zt,39===u.charCodeAt(zt)?(r=Uu,zt++):(r=t,0===It&&Lt(Hu)),r!==t){for(n=[],C=kn();C!==t;)n.push(C),C=kn();n!==t?(39===u.charCodeAt(zt)?(C=Uu,zt++):(C=t,0===It&&Lt(Hu)),C!==t?(Rt=A,A=r=Gu(n)):(zt=A,A=t)):(zt=A,A=t)}else zt=A,A=t;return It--,A===t&&(r=t,0===It&&Lt(Mu)),A}function Sn(){var A,r,n;return A=zt,r=zt,It++,34===u.charCodeAt(zt)?(n=Tu,zt++):(n=t,0===It&&Lt(Zu)),n===t&&(92===u.charCodeAt(zt)?(n=mu,zt++):(n=t,0===It&&Lt(wu)),n===t&&(n=on())),It--,n===t?r=void 0:(zt=r,r=t),r!==t&&(n=Fn())!==t?(Rt=A,A=r=Ju()):(zt=A,A=t),A===t&&(A=zt,92===u.charCodeAt(zt)?(r=mu,zt++):(r=t,0===It&&Lt(wu)),r!==t&&(n=qn())!==t?(Rt=A,A=r=_u(n)):(zt=A,A=t),A===t&&(A=$n())),A}function kn(){var A,r,n;return A=zt,r=zt,It++,39===u.charCodeAt(zt)?(n=Uu,zt++):(n=t,0===It&&Lt(Hu)),n===t&&(92===u.charCodeAt(zt)?(n=mu,zt++):(n=t,0===It&&Lt(wu)),n===t&&(n=on())),It--,n===t?r=void 0:(zt=r,r=t),r!==t&&(n=Fn())!==t?(Rt=A,A=r=Ju()):(zt=A,A=t),A===t&&(A=zt,92===u.charCodeAt(zt)?(r=mu,zt++):(r=t,0===It&&Lt(wu)),r!==t&&(n=qn())!==t?(Rt=A,A=r=_u(n)):(zt=A,A=t),A===t&&(A=$n())),A}function zn(){var A,r,n,C,E,e;if(It++,A=zt,91===u.charCodeAt(zt)?(r=Lu,zt++):(r=t,0===It&&Lt(Nu)),r!==t)if(94===u.charCodeAt(zt)?(n=Ou,zt++):(n=t,0===It&&Lt(Pu)),n===t&&(n=null),n!==t){for(C=[],(E=Rn())===t&&(E=jn());E!==t;)C.push(E),(E=Rn())===t&&(E=jn());C!==t?(93===u.charCodeAt(zt)?(E=Qu,zt++):(E=t,0===It&&Lt(Vu)),E!==t?(105===u.charCodeAt(zt)?(e=$u,zt++):(e=t,0===It&&Lt(qu)),e===t&&(e=null),e!==t?(Rt=A,A=r=Wu(n,C,e)):(zt=A,A=t)):(zt=A,A=t)):(zt=A,A=t)}else zt=A,A=t;else zt=A,A=t;return It--,A===t&&(r=t,0===It&&Lt(Ku)),A}function Rn(){var A,r,n,C;return A=zt,(r=jn())!==t?(45===u.charCodeAt(zt)?(n=Xu,zt++):(n=t,0===It&&Lt(Yu)),n!==t&&(C=jn())!==t?(Rt=A,A=r=uA(r,C)):(zt=A,A=t)):(zt=A,A=t),A}function jn(){var A,r,n;return A=zt,r=zt,It++,93===u.charCodeAt(zt)?(n=Qu,zt++):(n=t,0===It&&Lt(Vu)),n===t&&(92===u.charCodeAt(zt)?(n=mu,zt++):(n=t,0===It&&Lt(wu)),n===t&&(n=on())),It--,n===t?r=void 0:(zt=r,r=t),r!==t&&(n=Fn())!==t?(Rt=A,A=r=Ju()):(zt=A,A=t),A===t&&(A=zt,92===u.charCodeAt(zt)?(r=mu,zt++):(r=t,0===It&&Lt(wu)),r!==t&&(n=qn())!==t?(Rt=A,A=r=_u(n)):(zt=A,A=t),A===t&&(A=$n())),A}function $n(){var A,r;return A=zt,92===u.charCodeAt(zt)?(r=mu,zt++):(r=t,0===It&&Lt(wu)),r!==t&&Dn()!==t?(Rt=A,A=r=AA()):(zt=A,A=t),A}function qn(){var A,r,n,C;return(A=In())===t&&(A=zt,48===u.charCodeAt(zt)?(r=rA,zt++):(r=t,0===It&&Lt(tA)),r!==t?(n=zt,It++,C=Hn(),It--,C===t?n=void 0:(zt=n,n=t),n!==t?(Rt=A,A=r=nA()):(zt=A,A=t)):(zt=A,A=t),A===t&&(A=Gn())===t&&(A=Un())),A}function In(){var u;return(u=Mn())===t&&(u=Tn()),u}function Mn(){var A,r;return 39===u.charCodeAt(zt)?(A=Uu,zt++):(A=t,0===It&&Lt(Hu)),A===t&&(34===u.charCodeAt(zt)?(A=Tu,zt++):(A=t,0===It&&Lt(Zu)),A===t&&(92===u.charCodeAt(zt)?(A=mu,zt++):(A=t,0===It&&Lt(wu)),A===t&&(A=zt,98===u.charCodeAt(zt)?(r=CA,zt++):(r=t,0===It&&Lt(EA)),r!==t&&(Rt=A,r=eA()),(A=r)===t&&(A=zt,102===u.charCodeAt(zt)?(r=FA,zt++):(r=t,0===It&&Lt(BA)),r!==t&&(Rt=A,r=oA()),(A=r)===t&&(A=zt,110===u.charCodeAt(zt)?(r=DA,zt++):(r=t,0===It&&Lt(cA)),r!==t&&(Rt=A,r=aA()),(A=r)===t&&(A=zt,114===u.charCodeAt(zt)?(r=iA,zt++):(r=t,0===It&&Lt(fA)),r!==t&&(Rt=A,r=sA()),(A=r)===t&&(A=zt,116===u.charCodeAt(zt)?(r=vA,zt++):(r=t,0===It&&Lt(hA)),r!==t&&(Rt=A,r=lA()),(A=r)===t&&(A=zt,118===u.charCodeAt(zt)?(r=dA,zt++):(r=t,0===It&&Lt(pA)),r!==t&&(Rt=A,r=bA()),A=r)))))))),A}function Tn(){var u,A,r;return u=zt,A=zt,It++,(r=Zn())===t&&(r=on()),It--,r===t?A=void 0:(zt=A,A=t),A!==t&&(r=Fn())!==t?(Rt=u,u=A=Ju()):(zt=u,u=t),u}function Zn(){var A;return(A=Mn())===t&&(A=Hn())===t&&(120===u.charCodeAt(zt)?(A=gA,zt++):(A=t,0===It&&Lt(xA)),A===t&&(117===u.charCodeAt(zt)?(A=yA,zt++):(A=t,0===It&&Lt(mA)))),A}function Gn(){var A,r,n,C,E,e;return A=zt,120===u.charCodeAt(zt)?(r=gA,zt++):(r=t,0===It&&Lt(xA)),r!==t?(n=zt,C=zt,(E=Jn())!==t&&(e=Jn())!==t?C=E=[E,e]:(zt=C,C=t),(n=C!==t?u.substring(n,zt):C)!==t?(Rt=A,A=r=wA(n)):(zt=A,A=t)):(zt=A,A=t),A}function Un(){var A,r,n,C,E,e,F,B;return A=zt,117===u.charCodeAt(zt)?(r=yA,zt++):(r=t,0===It&&Lt(mA)),r!==t?(n=zt,C=zt,(E=Jn())!==t&&(e=Jn())!==t&&(F=Jn())!==t&&(B=Jn())!==t?C=E=[E,e,F,B]:(zt=C,C=t),(n=C!==t?u.substring(n,zt):C)!==t?(Rt=A,A=r=wA(n)):(zt=A,A=t)):(zt=A,A=t),A}function Hn(){var A;return _A.test(u.charAt(zt))?(A=u.charAt(zt),zt++):(A=t,0===It&&Lt(SA)),A}function Jn(){var A;return kA.test(u.charAt(zt))?(A=u.charAt(zt),zt++):(A=t,0===It&&Lt(zA)),A}function Kn(){var A,r;return A=zt,46===u.charCodeAt(zt)?(r=RA,zt++):(r=t,0===It&&Lt(jA)),r!==t&&(Rt=A,r=$A()),A=r}function Ln(){var A,r,n,C;return It++,A=zt,123===u.charCodeAt(zt)?(r=IA,zt++):(r=t,0===It&&Lt(MA)),r!==t&&(n=Nn())!==t?(125===u.charCodeAt(zt)?(C=TA,zt++):(C=t,0===It&&Lt(ZA)),C!==t?(Rt=A,A=r=GA(n)):(zt=A,A=t)):(zt=A,A=t),It--,A===t&&(r=t,0===It&&Lt(qA)),A}function Nn(){var A,r,n,C,E,e;if(A=zt,r=[],n=[],C=zt,E=zt,It++,UA.test(u.charAt(zt))?(e=u.charAt(zt),zt++):(e=t,0===It&&Lt(HA)),It--,e===t?E=void 0:(zt=E,E=t),E!==t&&(e=Fn())!==t?C=E=[E,e]:(zt=C,C=t),C!==t)for(;C!==t;)n.push(C),C=zt,E=zt,It++,UA.test(u.charAt(zt))?(e=u.charAt(zt),zt++):(e=t,0===It&&Lt(HA)),It--,e===t?E=void 0:(zt=E,E=t),E!==t&&(e=Fn())!==t?C=E=[E,e]:(zt=C,C=t);else n=t;for(n===t&&(n=zt,123===u.charCodeAt(zt)?(C=IA,zt++):(C=t,0===It&&Lt(MA)),C!==t&&(E=Nn())!==t?(125===u.charCodeAt(zt)?(e=TA,zt++):(e=t,0===It&&Lt(ZA)),e!==t?n=C=[C,E,e]:(zt=n,n=t)):(zt=n,n=t));n!==t;){if(r.push(n),n=[],C=zt,E=zt,It++,UA.test(u.charAt(zt))?(e=u.charAt(zt),zt++):(e=t,0===It&&Lt(HA)),It--,e===t?E=void 0:(zt=E,E=t),E!==t&&(e=Fn())!==t?C=E=[E,e]:(zt=C,C=t),C!==t)for(;C!==t;)n.push(C),C=zt,E=zt,It++,UA.test(u.charAt(zt))?(e=u.charAt(zt),zt++):(e=t,0===It&&Lt(HA)),It--,e===t?E=void 0:(zt=E,E=t),E!==t&&(e=Fn())!==t?C=E=[E,e]:(zt=C,C=t);else n=t;n===t&&(n=zt,123===u.charCodeAt(zt)?(C=IA,zt++):(C=t,0===It&&Lt(MA)),C!==t&&(E=Nn())!==t?(125===u.charCodeAt(zt)?(e=TA,zt++):(e=t,0===It&&Lt(ZA)),e!==t?n=C=[C,E,e]:(zt=n,n=t)):(zt=n,n=t))}return A=r!==t?u.substring(A,zt):r}function On(){var A;return JA.test(u.charAt(zt))?(A=u.charAt(zt),zt++):(A=t,0===It&&Lt(KA)),A}function Pn(){var A;return LA.test(u.charAt(zt))?(A=u.charAt(zt),zt++):(A=t,0===It&&Lt(NA)),A}function Qn(){var A;return OA.test(u.charAt(zt))?(A=u.charAt(zt),zt++):(A=t,0===It&&Lt(PA)),A}function Vn(){var A;return QA.test(u.charAt(zt))?(A=u.charAt(zt),zt++):(A=t,0===It&&Lt(VA)),A}function Wn(){var A;return WA.test(u.charAt(zt))?(A=u.charAt(zt),zt++):(A=t,0===It&&Lt(XA)),A}function Xn(){var A;return YA.test(u.charAt(zt))?(A=u.charAt(zt),zt++):(A=t,0===It&&Lt(ur)),A}function Yn(){var A;return Ar.test(u.charAt(zt))?(A=u.charAt(zt),zt++):(A=t,0===It&&Lt(rr)),A}function uC(){var A;return tr.test(u.charAt(zt))?(A=u.charAt(zt),zt++):(A=t,0===It&&Lt(nr)),A}function AC(){var A;return Cr.test(u.charAt(zt))?(A=u.charAt(zt),zt++):(A=t,0===It&&Lt(Er)),A}function rC(){var A;return er.test(u.charAt(zt))?(A=u.charAt(zt),zt++):(A=t,0===It&&Lt(Fr)),A}function tC(){var A;return Br.test(u.charAt(zt))?(A=u.charAt(zt),zt++):(A=t,0===It&&Lt(or)),A}function nC(){var A,r,n,C;return A=zt,u.substr(zt,5)===Dr?(r=Dr,zt+=5):(r=t,0===It&&Lt(cr)),r!==t?(n=zt,It++,C=dn(),It--,C===t?n=void 0:(zt=n,n=t),n!==t?A=r=[r,n]:(zt=A,A=t)):(zt=A,A=t),A}function CC(){var A,r,n,C;return A=zt,u.substr(zt,4)===ar?(r=ar,zt+=4):(r=t,0===It&&Lt(ir)),r!==t?(n=zt,It++,C=dn(),It--,C===t?n=void 0:(zt=n,n=t),n!==t?A=r=[r,n]:(zt=A,A=t)):(zt=A,A=t),A}function EC(){var A,r,n,C;return A=zt,u.substr(zt,5)===fr?(r=fr,zt+=5):(r=t,0===It&&Lt(sr)),r!==t?(n=zt,It++,C=dn(),It--,C===t?n=void 0:(zt=n,n=t),n!==t?A=r=[r,n]:(zt=A,A=t)):(zt=A,A=t),A}function eC(){var A,r,n,C;return A=zt,u.substr(zt,5)===vr?(r=vr,zt+=5):(r=t,0===It&&Lt(hr)),r!==t?(n=zt,It++,C=dn(),It--,C===t?n=void 0:(zt=n,n=t),n!==t?A=r=[r,n]:(zt=A,A=t)):(zt=A,A=t),A}function FC(){var A,r,n,C;return A=zt,u.substr(zt,5)===lr?(r=lr,zt+=5):(r=t,0===It&&Lt(dr)),r!==t?(n=zt,It++,C=dn(),It--,C===t?n=void 0:(zt=n,n=t),n!==t?A=r=[r,n]:(zt=A,A=t)):(zt=A,A=t),A}function BC(){var A,r,n,C;return A=zt,u.substr(zt,8)===pr?(r=pr,zt+=8):(r=t,0===It&&Lt(br)),r!==t?(n=zt,It++,C=dn(),It--,C===t?n=void 0:(zt=n,n=t),n!==t?A=r=[r,n]:(zt=A,A=t)):(zt=A,A=t),A}function oC(){var A,r,n,C;return A=zt,u.substr(zt,8)===gr?(r=gr,zt+=8):(r=t,0===It&&Lt(xr)),r!==t?(n=zt,It++,C=dn(),It--,C===t?n=void 0:(zt=n,n=t),n!==t?A=r=[r,n]:(zt=A,A=t)):(zt=A,A=t),A}function DC(){var A,r,n,C;return A=zt,u.substr(zt,7)===yr?(r=yr,zt+=7):(r=t,0===It&&Lt(mr)),r!==t?(n=zt,It++,C=dn(),It--,C===t?n=void 0:(zt=n,n=t),n!==t?A=r=[r,n]:(zt=A,A=t)):(zt=A,A=t),A}function cC(){var A,r,n,C;return A=zt,u.substr(zt,6)===wr?(r=wr,zt+=6):(r=t,0===It&&Lt(_r)),r!==t?(n=zt,It++,C=dn(),It--,C===t?n=void 0:(zt=n,n=t),n!==t?A=r=[r,n]:(zt=A,A=t)):(zt=A,A=t),A}function aC(){var A,r,n,C;return A=zt,u.substr(zt,2)===Sr?(r=Sr,zt+=2):(r=t,0===It&&Lt(kr)),r!==t?(n=zt,It++,C=dn(),It--,C===t?n=void 0:(zt=n,n=t),n!==t?A=r=[r,n]:(zt=A,A=t)):(zt=A,A=t),A}function iC(){var A,r,n,C;return A=zt,u.substr(zt,4)===zr?(r=zr,zt+=4):(r=t,0===It&&Lt(Rr)),r!==t?(n=zt,It++,C=dn(),It--,C===t?n=void 0:(zt=n,n=t),n!==t?A=r=[r,n]:(zt=A,A=t)):(zt=A,A=t),A}function fC(){var A,r,n,C;return A=zt,u.substr(zt,4)===jr?(r=jr,zt+=4):(r=t,0===It&&Lt($r)),r!==t?(n=zt,It++,C=dn(),It--,C===t?n=void 0:(zt=n,n=t),n!==t?A=r=[r,n]:(zt=A,A=t)):(zt=A,A=t),A}function sC(){var A,r,n,C;return A=zt,u.substr(zt,6)===qr?(r=qr,zt+=6):(r=t,0===It&&Lt(Ir)),r!==t?(n=zt,It++,C=dn(),It--,C===t?n=void 0:(zt=n,n=t),n!==t?A=r=[r,n]:(zt=A,A=t)):(zt=A,A=t),A}function vC(){var A,r,n,C;return A=zt,u.substr(zt,7)===Mr?(r=Mr,zt+=7):(r=t,0===It&&Lt(Tr)),r!==t?(n=zt,It++,C=dn(),It--,C===t?n=void 0:(zt=n,n=t),n!==t?A=r=[r,n]:(zt=A,A=t)):(zt=A,A=t),A}function hC(){var A,r,n,C;return A=zt,u.substr(zt,5)===Zr?(r=Zr,zt+=5):(r=t,0===It&&Lt(Gr)),r!==t?(n=zt,It++,C=dn(),It--,C===t?n=void 0:(zt=n,n=t),n!==t?A=r=[r,n]:(zt=A,A=t)):(zt=A,A=t),A}function lC(){var A,r,n,C;return A=zt,u.substr(zt,7)===Ur?(r=Ur,zt+=7):(r=t,0===It&&Lt(Hr)),r!==t?(n=zt,It++,C=dn(),It--,C===t?n=void 0:(zt=n,n=t),n!==t?A=r=[r,n]:(zt=A,A=t)):(zt=A,A=t),A}function dC(){var A,r,n,C;return A=zt,u.substr(zt,3)===Jr?(r=Jr,zt+=3):(r=t,0===It&&Lt(Kr)),r!==t?(n=zt,It++,C=dn(),It--,C===t?n=void 0:(zt=n,n=t),n!==t?A=r=[r,n]:(zt=A,A=t)):(zt=A,A=t),A}function pC(){var A,r,n,C;return A=zt,u.substr(zt,8)===Lr?(r=Lr,zt+=8):(r=t,0===It&&Lt(Nr)),r!==t?(n=zt,It++,C=dn(),It--,C===t?n=void 0:(zt=n,n=t),n!==t?A=r=[r,n]:(zt=A,A=t)):(zt=A,A=t),A}function bC(){var A,r,n,C;return A=zt,u.substr(zt,2)===Or?(r=Or,zt+=2):(r=t,0===It&&Lt(Pr)),r!==t?(n=zt,It++,C=dn(),It--,C===t?n=void 0:(zt=n,n=t),n!==t?A=r=[r,n]:(zt=A,A=t)):(zt=A,A=t),A}function gC(){var A,r,n,C;return A=zt,u.substr(zt,6)===Qr?(r=Qr,zt+=6):(r=t,0===It&&Lt(Vr)),r!==t?(n=zt,It++,C=dn(),It--,C===t?n=void 0:(zt=n,n=t),n!==t?A=r=[r,n]:(zt=A,A=t)):(zt=A,A=t),A}function xC(){var A,r,n,C;return A=zt,u.substr(zt,10)===Wr?(r=Wr,zt+=10):(r=t,0===It&&Lt(Xr)),r!==t?(n=zt,It++,C=dn(),It--,C===t?n=void 0:(zt=n,n=t),n!==t?A=r=[r,n]:(zt=A,A=t)):(zt=A,A=t),A}function yC(){var A,r,n,C;return A=zt,u.substr(zt,2)===Yr?(r=Yr,zt+=2):(r=t,0===It&&Lt(ut)),r!==t?(n=zt,It++,C=dn(),It--,C===t?n=void 0:(zt=n,n=t),n!==t?A=r=[r,n]:(zt=A,A=t)):(zt=A,A=t),A}function mC(){var A,r,n,C;return A=zt,u.substr(zt,3)===At?(r=At,zt+=3):(r=t,0===It&&Lt(rt)),r!==t?(n=zt,It++,C=dn(),It--,C===t?n=void 0:(zt=n,n=t),n!==t?A=r=[r,n]:(zt=A,A=t)):(zt=A,A=t),A}function wC(){var A,r,n,C;return A=zt,u.substr(zt,4)===tt?(r=tt,zt+=4):(r=t,0===It&&Lt(nt)),r!==t?(n=zt,It++,C=dn(),It--,C===t?n=void 0:(zt=n,n=t),n!==t?A=r=[r,n]:(zt=A,A=t)):(zt=A,A=t),A}function _C(){var A,r,n,C;return A=zt,u.substr(zt,6)===Ct?(r=Ct,zt+=6):(r=t,0===It&&Lt(Et)),r!==t?(n=zt,It++,C=dn(),It--,C===t?n=void 0:(zt=n,n=t),n!==t?A=r=[r,n]:(zt=A,A=t)):(zt=A,A=t),A}function SC(){var A,r,n,C;return A=zt,u.substr(zt,5)===et?(r=et,zt+=5):(r=t,0===It&&Lt(Ft)),r!==t?(n=zt,It++,C=dn(),It--,C===t?n=void 0:(zt=n,n=t),n!==t?A=r=[r,n]:(zt=A,A=t)):(zt=A,A=t),A}function kC(){var A,r,n,C;return A=zt,u.substr(zt,6)===Bt?(r=Bt,zt+=6):(r=t,0===It&&Lt(ot)),r!==t?(n=zt,It++,C=dn(),It--,C===t?n=void 0:(zt=n,n=t),n!==t?A=r=[r,n]:(zt=A,A=t)):(zt=A,A=t),A}function zC(){var A,r,n,C;return A=zt,u.substr(zt,4)===Dt?(r=Dt,zt+=4):(r=t,0===It&&Lt(ct)),r!==t?(n=zt,It++,C=dn(),It--,C===t?n=void 0:(zt=n,n=t),n!==t?A=r=[r,n]:(zt=A,A=t)):(zt=A,A=t),A}function RC(){var A,r,n,C;return A=zt,u.substr(zt,5)===at?(r=at,zt+=5):(r=t,0===It&&Lt(it)),r!==t?(n=zt,It++,C=dn(),It--,C===t?n=void 0:(zt=n,n=t),n!==t?A=r=[r,n]:(zt=A,A=t)):(zt=A,A=t),A}function jC(){var A,r,n,C;return A=zt,u.substr(zt,4)===ft?(r=ft,zt+=4):(r=t,0===It&&Lt(st)),r!==t?(n=zt,It++,C=dn(),It--,C===t?n=void 0:(zt=n,n=t),n!==t?A=r=[r,n]:(zt=A,A=t)):(zt=A,A=t),A}function $C(){var A,r,n,C;return A=zt,u.substr(zt,3)===vt?(r=vt,zt+=3):(r=t,0===It&&Lt(ht)),r!==t?(n=zt,It++,C=dn(),It--,C===t?n=void 0:(zt=n,n=t),n!==t?A=r=[r,n]:(zt=A,A=t)):(zt=A,A=t),A}function qC(){var A,r,n,C;return A=zt,u.substr(zt,6)===lt?(r=lt,zt+=6):(r=t,0===It&&Lt(dt)),r!==t?(n=zt,It++,C=dn(),It--,C===t?n=void 0:(zt=n,n=t),n!==t?A=r=[r,n]:(zt=A,A=t)):(zt=A,A=t),A}function IC(){var A,r,n,C;return A=zt,u.substr(zt,3)===pt?(r=pt,zt+=3):(r=t,0===It&&Lt(bt)),r!==t?(n=zt,It++,C=dn(),It--,C===t?n=void 0:(zt=n,n=t),n!==t?A=r=[r,n]:(zt=A,A=t)):(zt=A,A=t),A}function MC(){var A,r,n,C;return A=zt,u.substr(zt,4)===gt?(r=gt,zt+=4):(r=t,0===It&&Lt(xt)),r!==t?(n=zt,It++,C=dn(),It--,C===t?n=void 0:(zt=n,n=t),n!==t?A=r=[r,n]:(zt=A,A=t)):(zt=A,A=t),A}function TC(){var A,r,n,C;return A=zt,u.substr(zt,5)===yt?(r=yt,zt+=5):(r=t,0===It&&Lt(mt)),r!==t?(n=zt,It++,C=dn(),It--,C===t?n=void 0:(zt=n,n=t),n!==t?A=r=[r,n]:(zt=A,A=t)):(zt=A,A=t),A}function ZC(){var A,r,n,C;return A=zt,u.substr(zt,4)===wt?(r=wt,zt+=4):(r=t,0===It&&Lt(_t)),r!==t?(n=zt,It++,C=dn(),It--,C===t?n=void 0:(zt=n,n=t),n!==t?A=r=[r,n]:(zt=A,A=t)):(zt=A,A=t),A}function GC(){var u,A;for(u=[],(A=Bn())===t&&(A=Dn())===t&&(A=cn());A!==t;)u.push(A),(A=Bn())===t&&(A=Dn())===t&&(A=cn());return u}function UC(){var u,A;for(u=[],(A=Bn())===t&&(A=fn());A!==t;)u.push(A),(A=Bn())===t&&(A=fn());return u}function HC(){var A,r,n,C;return A=zt,(r=GC())!==t?(59===u.charCodeAt(zt)?(n=St,zt++):(n=t,0===It&&Lt(kt)),n!==t?A=r=[r,n]:(zt=A,A=t)):(zt=A,A=t),A===t&&(A=zt,(r=UC())!==t?((n=sn())===t&&(n=null),n!==t&&(C=Dn())!==t?A=r=[r,n,C]:(zt=A,A=t)):(zt=A,A=t),A===t&&(A=zt,(r=GC())!==t&&(n=JC())!==t?A=r=[r,n]:(zt=A,A=t))),A}function JC(){var A,r;return A=zt,It++,u.length>zt?(r=u.charAt(zt),zt++):(r=t,0===It&&Lt(U)),It--,r===t?A=void 0:(zt=A,A=t),A}var KC={$:"text","&":"simple_and","!":"simple_not"},LC={"?":"optional","*":"zero_or_more","+":"one_or_more"},NC={"&":"semantic_and","!":"semantic_not"};function OC(u){var A,r=[];for(A=0;A ")+").",u.location);f(s.findRule(t,u.name))}});f(t)}},963,[952,954,960,958]); -__d(function(g,r,i,a,m,e,d){"use strict";var n=r(d[0]),o=r(d[1]),s=r(d[2]);m.exports=function(t){s.build({zero_or_more:function(s){if(!o.alwaysConsumesOnSuccess(t,s.expression))throw new n("Possible infinite loop when parsing (repetition used with an expression that may not consume any input).",s.location)},one_or_more:function(s){if(!o.alwaysConsumesOnSuccess(t,s.expression))throw new n("Possible infinite loop when parsing (repetition used with an expression that may not consume any input).",s.location)}})(t)}},964,[954,960,958]); -__d(function(g,r,i,a,m,e,d){"use strict";var n=r(d[0]),u=r(d[1]);m.exports=function(s,t){function c(n,s,t){u.build({rule_ref:function(n){n.name===s&&(n.name=t)}})(n)}var o=[];n.each(s.rules,function(u,l){var f;"rule"===(f=u).type&&"rule_ref"===f.expression.type&&(c(s,u.name,u.expression.name),n.contains(t.allowedStartRules,u.name)||o.push(l))}),o.reverse(),n.each(o,function(n){s.rules.splice(n,1)})}},965,[952,958]); -__d(function(g,r,i,a,m,e,d){"use strict";var n=r(d[0]),t=r(d[1]),s=r(d[2]),o=r(d[3]),c=r(d[4]),u=r(d[5]);m.exports=function(l){var p=[];function _(t){var s=n.indexOf(p,t);return-1===s?p.push(t)-1:s}function P(n,t){return _("function("+n.join(", ")+") {"+t+"}")}function v(){return Array.prototype.concat.apply([],arguments)}function R(n,t,s){return n.concat([t.length,s.length],t,s)}function E(s,o,u,l){var p=n.map(t.values(u),function(n){return l-n});return[c.CALL,s,o,p.length].concat(p)}function O(n,s,o){return v([c.PUSH_CURR_POS],[c.SILENT_FAILS_ON],I(n,{sp:o.sp+1,env:t.clone(o.env),action:null}),[c.SILENT_FAILS_OFF],R([s?c.IF_ERROR:c.IF_NOT_ERROR],v([c.POP],[s?c.POP:c.POP_CURR_POS],[c.PUSH_UNDEFINED]),v([c.POP],[s?c.POP_CURR_POS:c.POP],[c.PUSH_FAILED])))}function f(n,s,o){var u=P(t.keys(o.env),n);return v([c.UPDATE_SAVED_POS],E(u,0,o.env,o.sp),R([c.IF],v([c.POP],s?[c.PUSH_FAILED]:[c.PUSH_UNDEFINED]),v([c.POP],s?[c.PUSH_UNDEFINED]:[c.PUSH_FAILED])))}function S(n){return t=[c.WHILE_NOT_ERROR],s=v([c.APPEND],n),t.concat([s.length],s);var t,s}var I=o.build({grammar:function(t){n.each(t.rules,I),t.consts=p},rule:function(n){n.bytecode=I(n.expression,{sp:-1,env:{},action:null})},named:function(n,t){var s=_('peg$otherExpectation("'+u.stringEscape(n.name)+'")');return v([c.SILENT_FAILS_ON],I(n.expression,t),[c.SILENT_FAILS_OFF],R([c.IF_ERROR],[c.FAIL,s],[]))},choice:function(n,s){return(function n(s,o){return v(I(s[0],{sp:o.sp,env:t.clone(o.env),action:null}),s.length>1?R([c.IF_ERROR],v([c.POP],n(s.slice(1),o)),[]):[])})(n.alternatives,s)},action:function(n,s){var o=t.clone(s.env),u="sequence"!==n.expression.type||0===n.expression.elements.length,l=I(n.expression,{sp:s.sp+(u?1:0),env:o,action:n}),p=P(t.keys(o),n.code);return u?v([c.PUSH_CURR_POS],l,R([c.IF_NOT_ERROR],v([c.LOAD_SAVED_POS,1],E(p,1,o,s.sp+2)),[]),[c.NIP]):l},sequence:function(n,s){return v([c.PUSH_CURR_POS],(function s(o,u){var l,p;return o.length>0?(l=n.elements.length-o.slice(1).length,v(I(o[0],{sp:u.sp,env:u.env,action:null}),R([c.IF_NOT_ERROR],s(o.slice(1),{sp:u.sp+1,env:u.env,action:u.action}),v(l>1?[c.POP_N,l]:[c.POP],[c.POP_CURR_POS],[c.PUSH_FAILED])))):u.action?(p=P(t.keys(u.env),u.action.code),v([c.LOAD_SAVED_POS,n.elements.length],E(p,n.elements.length,u.env,u.sp),[c.NIP])):v([c.WRAP,n.elements.length],[c.NIP])})(n.elements,{sp:s.sp+1,env:s.env,action:s.action}))},labeled:function(n,s){var o=t.clone(s.env);return s.env[n.label]=s.sp+1,I(n.expression,{sp:s.sp,env:o,action:null})},text:function(n,s){return v([c.PUSH_CURR_POS],I(n.expression,{sp:s.sp+1,env:t.clone(s.env),action:null}),R([c.IF_NOT_ERROR],v([c.POP],[c.TEXT]),[c.NIP]))},simple_and:function(n,t){return O(n.expression,!1,t)},simple_not:function(n,t){return O(n.expression,!0,t)},optional:function(n,s){return v(I(n.expression,{sp:s.sp,env:t.clone(s.env),action:null}),R([c.IF_ERROR],v([c.POP],[c.PUSH_NULL]),[]))},zero_or_more:function(n,s){var o=I(n.expression,{sp:s.sp+1,env:t.clone(s.env),action:null});return v([c.PUSH_EMPTY_ARRAY],o,S(o),[c.POP])},one_or_more:function(n,s){var o=I(n.expression,{sp:s.sp+1,env:t.clone(s.env),action:null});return v([c.PUSH_EMPTY_ARRAY],o,R([c.IF_NOT_ERROR],v(S(o),[c.POP]),v([c.POP],[c.POP],[c.PUSH_FAILED])))},group:function(n,s){return I(n.expression,{sp:s.sp,env:t.clone(s.env),action:null})},semantic_and:function(n,t){return f(n.code,!1,t)},semantic_not:function(n,t){return f(n.code,!0,t)},rule_ref:function(n){return[c.RULE,s.indexOfRule(l,n.name)]},literal:function(n){var t,s;return n.value.length>0?(t=_('"'+u.stringEscape(n.ignoreCase?n.value.toLowerCase():n.value)+'"'),s=_("peg$literalExpectation(\""+u.stringEscape(n.value)+'", '+n.ignoreCase+')'),R(n.ignoreCase?[c.MATCH_STRING_IC,t]:[c.MATCH_STRING,t],n.ignoreCase?[c.ACCEPT_N,n.value.length]:[c.ACCEPT_STRING,t],[c.FAIL,s])):(t=_('""'),[c.PUSH,t])},class:function(t){var s,o,l,p;return s=t.parts.length>0?'/^['+(t.inverted?'^':'')+n.map(t.parts,function(n){return n instanceof Array?u.regexpClassEscape(n[0])+'-'+u.regexpClassEscape(n[1]):u.regexpClassEscape(n)}).join('')+']/'+(t.ignoreCase?'i':''):t.inverted?'/^[\\S\\s]/':'/^(?!)/',o='['+n.map(t.parts,function(n){return n instanceof Array?'["'+u.stringEscape(n[0])+'", "'+u.stringEscape(n[1])+'"]':'"'+u.stringEscape(n)+'"'}).join(', ')+']',l=_(s),p=_('peg$classExpectation('+o+', '+t.inverted+', '+t.ignoreCase+')'),R([c.MATCH_REGEXP,l],[c.ACCEPT_N,1],[c.FAIL,p])},any:function(){var n=_('peg$anyExpectation()');return R([c.MATCH_ANY],[c.ACCEPT_N,1],[c.FAIL,n])}});I(l)}},966,[952,953,960,958,967,968]); -__d(function(g,r,i,a,m,e,d){"use strict";m.exports={PUSH:0,PUSH_UNDEFINED:1,PUSH_NULL:2,PUSH_FAILED:3,PUSH_EMPTY_ARRAY:4,PUSH_CURR_POS:5,POP:6,POP_CURR_POS:7,POP_N:8,NIP:9,APPEND:10,WRAP:11,TEXT:12,IF:13,IF_ERROR:14,IF_NOT_ERROR:15,WHILE_NOT_ERROR:16,MATCH_ANY:17,MATCH_STRING:18,MATCH_STRING_IC:19,MATCH_REGEXP:20,ACCEPT_N:21,ACCEPT_STRING:22,FAIL:23,LOAD_SAVED_POS:24,UPDATE_SAVED_POS:25,CALL:26,RULE:27,SILENT_FAILS_ON:28,SILENT_FAILS_OFF:29}},967,[]); -__d(function(g,r,i,a,m,e,d){"use strict";function c(c){return c.charCodeAt(0).toString(16).toUpperCase()}var n={stringEscape:function(n){return n.replace(/\\/g,'\\\\').replace(/"/g,'\\"').replace(/\0/g,'\\0').replace(/\x08/g,'\\b').replace(/\t/g,'\\t').replace(/\n/g,'\\n').replace(/\f/g,'\\f').replace(/\r/g,'\\r').replace(/[\x00-\x0F]/g,function(n){return'\\x0'+c(n)}).replace(/[\x10-\x1F\x7F-\xFF]/g,function(n){return'\\x'+c(n)}).replace(/[\u0100-\u0FFF]/g,function(n){return"\\u0"+c(n)}).replace(/[\u1000-\uFFFF]/g,function(n){return"\\u"+c(n)})},regexpClassEscape:function(n){return n.replace(/\\/g,'\\\\').replace(/\//g,'\\/').replace(/\]/g,'\\]').replace(/\^/g,'\\^').replace(/-/g,'\\-').replace(/\0/g,'\\0').replace(/\t/g,'\\t').replace(/\n/g,'\\n').replace(/\v/g,'\\x0B').replace(/\f/g,'\\f').replace(/\r/g,'\\r').replace(/[\x00-\x0F]/g,function(n){return'\\x0'+c(n)}).replace(/[\x10-\x1F\x7F-\xFF]/g,function(n){return'\\x'+c(n)}).replace(/[\u0100-\u0FFF]/g,function(n){return"\\u0"+c(n)}).replace(/[\u1000-\uFFFF]/g,function(n){return"\\u"+c(n)})}};m.exports=n},968,[]); -__d(function(g,r,i,a,m,e,d){"use strict";var arrays=r(d[0]),objects=r(d[1]),asts=r(d[2]),op=r(d[3]),js=r(d[4]);function generateJS(ast,options){function indent2(t){return t.replace(/^(.+)$/gm,' $1')}function indent6(t){return t.replace(/^(.+)$/gm,' $1')}function indent10(t){return t.replace(/^(.+)$/gm,' $1')}function generateTables(){return"size"===options.optimize?['peg$consts = [',indent2(ast.consts.join(',\n')),'],','','peg$bytecode = [',indent2(arrays.map(ast.rules,function(t){return'peg$decode("'+js.stringEscape(arrays.map(t.bytecode,function(t){return String.fromCharCode(t+32)}).join(''))+'")'}).join(',\n')),'],'].join('\n'):arrays.map(ast.consts,function(t,s){return'peg$c'+s+' = '+t+','}).join('\n')}function generateRuleHeader(t,s){var p=[];return p.push(''),options.trace&&p.push(['peg$tracer.trace({',' type: "rule.enter",',' rule: '+t+',',' location: peg$computeLocation(startPos, startPos)','});',''].join('\n')),options.cache&&(p.push(['var key = peg$currPos * '+ast.rules.length+' + '+s+',',' cached = peg$resultsCache[key];','','if (cached) {',' peg$currPos = cached.nextPos;',''].join('\n')),options.trace&&p.push(['if (cached.result !== peg$FAILED) {',' peg$tracer.trace({',' type: "rule.match",',' rule: '+t+',',' result: cached.result,',' location: peg$computeLocation(startPos, peg$currPos)',' });','} else {',' peg$tracer.trace({',' type: "rule.fail",',' rule: '+t+',',' location: peg$computeLocation(startPos, startPos)',' });','}',''].join('\n')),p.push([' return cached.result;','}',''].join('\n'))),p.join('\n')}function generateRuleFooter(t,s){var p=[];return options.cache&&p.push(['','peg$resultsCache[key] = { nextPos: peg$currPos, result: '+s+' };'].join('\n')),options.trace&&p.push(['','if ('+s+' !== peg$FAILED) {',' peg$tracer.trace({',' type: "rule.match",',' rule: '+t+',',' result: '+s+',',' location: peg$computeLocation(startPos, peg$currPos)',' });','} else {',' peg$tracer.trace({',' type: "rule.fail",',' rule: '+t+',',' location: peg$computeLocation(startPos, startPos)',' });','}'].join('\n')),p.push(['','return '+s+';'].join('\n')),p.join('\n')}function generateInterpreter(){var t,s=[];function p(t,s){var p=s+3,n='bc[ip + '+(p-2)+']',o='bc[ip + '+(p-1)+']';return['ends.push(end);','ips.push(ip + '+p+' + '+n+' + '+o+');','','if ('+t+') {',' end = ip + '+p+' + '+n+';',' ip += '+p+';','} else {',' end = ip + '+p+' + '+n+' + '+o+';',' ip += '+p+' + '+n+';','}','','break;'].join('\n')}return s.push(['function peg$decode(s) {',' var bc = new Array(s.length), i;','',' for (i = 0; i < s.length; i++) {',' bc[i] = s.charCodeAt(i) - 32;',' }','',' return bc;','}','','function peg$parseRule(index) {'].join('\n')),options.trace?s.push([' var bc = peg$bytecode[index],',' ip = 0,',' ips = [],',' end = bc.length,',' ends = [],',' stack = [],',' startPos = peg$currPos,',' params, i;'].join('\n')):s.push([' var bc = peg$bytecode[index],',' ip = 0,',' ips = [],',' end = bc.length,',' ends = [],',' stack = [],',' params, i;'].join('\n')),s.push(indent2(generateRuleHeader('peg$ruleNames[index]','index'))),s.push([' while (true) {',' while (ip < end) {',' switch (bc[ip]) {',' case '+op.PUSH+':',' stack.push(peg$consts[bc[ip + 1]]);',' ip += 2;',' break;','',' case '+op.PUSH_UNDEFINED+':',' stack.push(void 0);',' ip++;',' break;','',' case '+op.PUSH_NULL+':',' stack.push(null);',' ip++;',' break;','',' case '+op.PUSH_FAILED+':',' stack.push(peg$FAILED);',' ip++;',' break;','',' case '+op.PUSH_EMPTY_ARRAY+':',' stack.push([]);',' ip++;',' break;','',' case '+op.PUSH_CURR_POS+':',' stack.push(peg$currPos);',' ip++;',' break;','',' case '+op.POP+':',' stack.pop();',' ip++;',' break;','',' case '+op.POP_CURR_POS+':',' peg$currPos = stack.pop();',' ip++;',' break;','',' case '+op.POP_N+':',' stack.length -= bc[ip + 1];',' ip += 2;',' break;','',' case '+op.NIP+':',' stack.splice(-2, 1);',' ip++;',' break;','',' case '+op.APPEND+':',' stack[stack.length - 2].push(stack.pop());',' ip++;',' break;','',' case '+op.WRAP+':',' stack.push(stack.splice(stack.length - bc[ip + 1], bc[ip + 1]));',' ip += 2;',' break;','',' case '+op.TEXT+':',' stack.push(input.substring(stack.pop(), peg$currPos));',' ip++;',' break;','',' case '+op.IF+':',indent10(p('stack[stack.length - 1]',0)),'',' case '+op.IF_ERROR+':',indent10(p('stack[stack.length - 1] === peg$FAILED',0)),'',' case '+op.IF_NOT_ERROR+':',indent10(p('stack[stack.length - 1] !== peg$FAILED',0)),'',' case '+op.WHILE_NOT_ERROR+':',indent10((t='stack[stack.length - 1] !== peg$FAILED',['if ('+t+') {',' ends.push(end);',' ips.push(ip);',''," end = ip + 2 + bc[ip + 1];"," ip += 2;",'} else {'," ip += 2 + bc[ip + 1];",'}','','break;'].join('\n'))),'',' case '+op.MATCH_ANY+':',indent10(p('input.length > peg$currPos',0)),'',' case '+op.MATCH_STRING+':',indent10(p('input.substr(peg$currPos, peg$consts[bc[ip + 1]].length) === peg$consts[bc[ip + 1]]',1)),'',' case '+op.MATCH_STRING_IC+':',indent10(p('input.substr(peg$currPos, peg$consts[bc[ip + 1]].length).toLowerCase() === peg$consts[bc[ip + 1]]',1)),'',' case '+op.MATCH_REGEXP+':',indent10(p('peg$consts[bc[ip + 1]].test(input.charAt(peg$currPos))',1)),'',' case '+op.ACCEPT_N+':',' stack.push(input.substr(peg$currPos, bc[ip + 1]));',' peg$currPos += bc[ip + 1];',' ip += 2;',' break;','',' case '+op.ACCEPT_STRING+':',' stack.push(peg$consts[bc[ip + 1]]);',' peg$currPos += peg$consts[bc[ip + 1]].length;',' ip += 2;',' break;','',' case '+op.FAIL+':',' stack.push(peg$FAILED);',' if (peg$silentFails === 0) {',' peg$fail(peg$consts[bc[ip + 1]]);',' }',' ip += 2;',' break;','',' case '+op.LOAD_SAVED_POS+':',' peg$savedPos = stack[stack.length - 1 - bc[ip + 1]];',' ip += 2;',' break;','',' case '+op.UPDATE_SAVED_POS+':',' peg$savedPos = peg$currPos;',' ip++;',' break;','',' case '+op.CALL+':',indent10(["params = bc.slice(ip + 4, ip + 4 + bc[ip + 3]);","for (i = 0; i < bc[ip + 3]; i++) {",' params[i] = stack[stack.length - 1 - params[i]];','}','','stack.splice(',' stack.length - bc[ip + 2],',' bc[ip + 2],',' peg$consts[bc[ip + 1]].apply(null, params)',');','',"ip += 4 + bc[ip + 3];",'break;'].join('\n')),'',' case '+op.RULE+':',' stack.push(peg$parseRule(bc[ip + 1]));',' ip += 2;',' break;','',' case '+op.SILENT_FAILS_ON+':',' peg$silentFails++;',' ip++;',' break;','',' case '+op.SILENT_FAILS_OFF+':',' peg$silentFails--;',' ip++;',' break;','',' default:',' throw new Error("Invalid opcode: " + bc[ip] + ".");',' }',' }','',' if (ends.length > 0) {',' end = ends.pop();',' ip = ips.pop();',' } else {',' break;',' }',' }'].join('\n')),s.push(indent2(generateRuleFooter('peg$ruleNames[index]','stack[0]'))),s.push('}'),s.join('\n')}function generateRuleFunction(rule){var parts=[],code;function c(t){return"peg$c"+t}function s(t){return"s"+t}var stack={sp:-1,maxSp:-1,push:function(t){var p=s(++this.sp)+' = '+t+';';return this.sp>this.maxSp&&(this.maxSp=this.sp),p},pop:function(t){var p;return void 0===t?s(this.sp--):(p=arrays.map(arrays.range(this.sp-t+1,this.sp+1),s),this.sp-=t,p)},top:function(){return s(this.sp)},index:function(t){return s(this.sp-t)}};function compile(bc){var ip=0,end=bc.length,parts=[],value;function compileCondition(t,s){var p,n,o,c,u=s+3,l=bc[ip+u-2],h=bc[ip+u-1],$=stack.sp;if(ip+=u,p=compile(bc.slice(ip,ip+l)),o=stack.sp,ip+=l,h>0&&(stack.sp=$,n=compile(bc.slice(ip,ip+h)),c=stack.sp,ip+=h,o!==c))throw new Error("Branches of a condition must move the stack pointer in the same way.");parts.push('if ('+t+') {'),parts.push(indent2(p)),h>0&&(parts.push('} else {'),parts.push(indent2(n))),parts.push('}')}function compileLoop(t){var s,p,n=bc[ip+2-1],o=stack.sp;if(ip+=2,s=compile(bc.slice(ip,ip+n)),p=stack.sp,ip+=n,p!==o)throw new Error("Body of a loop can't move the stack pointer.");parts.push('while ('+t+') {'),parts.push(indent2(s)),parts.push('}')}function compileCall(){var t=bc[ip+4-1],s=c(bc[ip+1])+'('+arrays.map(bc.slice(ip+4,ip+4+t),function(t){return stack.index(t)}).join(', ')+')';stack.pop(bc[ip+2]),parts.push(stack.push(s)),ip+=4+t}for(;ip peg$currPos',0);break;case op.MATCH_STRING:compileCondition(eval(ast.consts[bc[ip+1]]).length>1?'input.substr(peg$currPos, '+eval(ast.consts[bc[ip+1]]).length+') === '+c(bc[ip+1]):'input.charCodeAt(peg$currPos) === '+eval(ast.consts[bc[ip+1]]).charCodeAt(0),1);break;case op.MATCH_STRING_IC:compileCondition('input.substr(peg$currPos, '+eval(ast.consts[bc[ip+1]]).length+').toLowerCase() === '+c(bc[ip+1]),1);break;case op.MATCH_REGEXP:compileCondition(c(bc[ip+1])+'.test(input.charAt(peg$currPos))',1);break;case op.ACCEPT_N:parts.push(stack.push(bc[ip+1]>1?'input.substr(peg$currPos, '+bc[ip+1]+')':'input.charAt(peg$currPos)')),parts.push(bc[ip+1]>1?'peg$currPos += '+bc[ip+1]+';':'peg$currPos++;'),ip+=2;break;case op.ACCEPT_STRING:parts.push(stack.push(c(bc[ip+1]))),parts.push(eval(ast.consts[bc[ip+1]]).length>1?'peg$currPos += '+eval(ast.consts[bc[ip+1]]).length+';':'peg$currPos++;'),ip+=2;break;case op.FAIL:parts.push(stack.push('peg$FAILED')),parts.push('if (peg$silentFails === 0) { peg$fail('+c(bc[ip+1])+'); }'),ip+=2;break;case op.LOAD_SAVED_POS:parts.push('peg$savedPos = '+stack.index(bc[ip+1])+';'),ip+=2;break;case op.UPDATE_SAVED_POS:parts.push('peg$savedPos = peg$currPos;'),ip++;break;case op.CALL:compileCall();break;case op.RULE:parts.push(stack.push("peg$parse"+ast.rules[bc[ip+1]].name+"()")),ip+=2;break;case op.SILENT_FAILS_ON:parts.push('peg$silentFails++;'),ip++;break;case op.SILENT_FAILS_OFF:parts.push('peg$silentFails--;'),ip++;break;default:throw new Error("Invalid opcode: "+bc[ip]+".")}return parts.join('\n')}return code=compile(rule.bytecode),parts.push('function peg$parse'+rule.name+'() {'),options.trace?parts.push([' var '+arrays.map(arrays.range(0,stack.maxSp+1),s).join(', ')+',',' startPos = peg$currPos;'].join('\n')):parts.push(' var '+arrays.map(arrays.range(0,stack.maxSp+1),s).join(', ')+';'),parts.push(indent2(generateRuleHeader('"'+js.stringEscape(rule.name)+'"',asts.indexOfRule(ast,rule.name)))),parts.push(indent2(code)),parts.push(indent2(generateRuleFooter('"'+js.stringEscape(rule.name)+'"',s(0)))),parts.push('}'),parts.join('\n')}function generateToplevel(){var t,s,p,n,o,c=[];return c.push(['function peg$subclass(child, parent) {',' function ctor() { this.constructor = child; }',' ctor.prototype = parent.prototype;',' child.prototype = new ctor();','}','','function peg$SyntaxError(message, expected, found, location) {',' this.message = message;',' this.expected = expected;',' this.found = found;',' this.location = location;',' this.name = "SyntaxError";','',' if (typeof Error.captureStackTrace === "function") {',' Error.captureStackTrace(this, peg$SyntaxError);',' }','}','','peg$subclass(peg$SyntaxError, Error);','','peg$SyntaxError.buildMessage = function(expected, found) {',' var DESCRIBE_EXPECTATION_FNS = {',' literal: function(expectation) {',' return "\\"" + literalEscape(expectation.text) + "\\"";',' },','',' "class": function(expectation) {',' var escapedParts = "",',' i;','',' for (i = 0; i < expectation.parts.length; i++) {',' escapedParts += expectation.parts[i] instanceof Array',' ? classEscape(expectation.parts[i][0]) + "-" + classEscape(expectation.parts[i][1])',' : classEscape(expectation.parts[i]);',' }','',' return "[" + (expectation.inverted ? "^" : "") + escapedParts + "]";',' },','',' any: function(expectation) {',' return "any character";',' },','',' end: function(expectation) {',' return "end of input";',' },','',' other: function(expectation) {',' return expectation.description;',' }',' };','',' function hex(ch) {',' return ch.charCodeAt(0).toString(16).toUpperCase();',' }','',' function literalEscape(s) {',' return s',' .replace(/\\\\/g, \'\\\\\\\\\')',' .replace(/"/g, \'\\\\"\')',' .replace(/\\0/g, \'\\\\0\')',' .replace(/\\t/g, \'\\\\t\')',' .replace(/\\n/g, \'\\\\n\')',' .replace(/\\r/g, \'\\\\r\')',' .replace(/[\\x00-\\x0F]/g, function(ch) { return \'\\\\x0\' + hex(ch); })',' .replace(/[\\x10-\\x1F\\x7F-\\x9F]/g, function(ch) { return \'\\\\x\' + hex(ch); });',' }','',' function classEscape(s) {',' return s',' .replace(/\\\\/g, \'\\\\\\\\\')',' .replace(/\\]/g, \'\\\\]\')',' .replace(/\\^/g, \'\\\\^\')',' .replace(/-/g, \'\\\\-\')',' .replace(/\\0/g, \'\\\\0\')',' .replace(/\\t/g, \'\\\\t\')',' .replace(/\\n/g, \'\\\\n\')',' .replace(/\\r/g, \'\\\\r\')',' .replace(/[\\x00-\\x0F]/g, function(ch) { return \'\\\\x0\' + hex(ch); })',' .replace(/[\\x10-\\x1F\\x7F-\\x9F]/g, function(ch) { return \'\\\\x\' + hex(ch); });',' }','',' function describeExpectation(expectation) {',' return DESCRIBE_EXPECTATION_FNS[expectation.type](expectation);',' }','',' function describeExpected(expected) {',' var descriptions = new Array(expected.length),',' i, j;','',' for (i = 0; i < expected.length; i++) {',' descriptions[i] = describeExpectation(expected[i]);',' }','',' descriptions.sort();','',' if (descriptions.length > 0) {',' for (i = 1, j = 1; i < descriptions.length; i++) {',' if (descriptions[i - 1] !== descriptions[i]) {',' descriptions[j] = descriptions[i];',' j++;',' }',' }',' descriptions.length = j;',' }','',' switch (descriptions.length) {',' case 1:',' return descriptions[0];','',' case 2:',' return descriptions[0] + " or " + descriptions[1];','',' default:',' return descriptions.slice(0, -1).join(", ")',' + ", or "',' + descriptions[descriptions.length - 1];',' }',' }','',' function describeFound(found) {',' return found ? "\\"" + literalEscape(found) + "\\"" : "end of input";',' }','',' return "Expected " + describeExpected(expected) + " but " + describeFound(found) + " found.";','};',''].join('\n')),options.trace&&c.push(['function peg$DefaultTracer() {',' this.indentLevel = 0;','}','','peg$DefaultTracer.prototype.trace = function(event) {',' var that = this;','',' function log(event) {',' function repeat(string, n) {',' var result = "", i;','',' for (i = 0; i < n; i++) {',' result += string;',' }','',' return result;',' }','',' function pad(string, length) {',' return string + repeat(" ", length - string.length);',' }','',' if (typeof console === "object") {',' console.log(',' event.location.start.line + ":" + event.location.start.column + "-"',' + event.location.end.line + ":" + event.location.end.column + " "',' + pad(event.type, 10) + " "',' + repeat(" ", that.indentLevel) + event.rule',' );',' }',' }','',' switch (event.type) {',' case "rule.enter":',' log(event);',' this.indentLevel++;',' break;','',' case "rule.match":',' this.indentLevel--;',' log(event);',' break;','',' case "rule.fail":',' this.indentLevel--;',' log(event);',' break;','',' default:',' throw new Error("Invalid event type: " + event.type + ".");',' }','};',''].join('\n')),c.push(['function peg$parse(input, options) {',' options = options !== void 0 ? options : {};','',' var peg$FAILED = {},',''].join('\n')),"size"===options.optimize?(t='{ '+arrays.map(options.allowedStartRules,function(t){return t+': '+asts.indexOfRule(ast,t)}).join(', ')+' }',s=asts.indexOfRule(ast,options.allowedStartRules[0]),c.push([' peg$startRuleIndices = '+t+',',' peg$startRuleIndex = '+s+','].join('\n'))):(p='{ '+arrays.map(options.allowedStartRules,function(t){return t+': peg$parse'+t}).join(', ')+' }',n='peg$parse'+options.allowedStartRules[0],c.push([' peg$startRuleFunctions = '+p+',',' peg$startRuleFunction = '+n+','].join('\n'))),c.push(''),c.push(indent6(generateTables())),c.push(['',' peg$currPos = 0,',' peg$savedPos = 0,',' peg$posDetailsCache = [{ line: 1, column: 1 }],',' peg$maxFailPos = 0,',' peg$maxFailExpected = [],',' peg$silentFails = 0,',''].join('\n')),options.cache&&c.push([' peg$resultsCache = {},',''].join('\n')),options.trace&&("size"===options.optimize&&(o='['+arrays.map(ast.rules,function(t){return'"'+js.stringEscape(t.name)+'"'}).join(', ')+']',c.push([' peg$ruleNames = '+o+',',''].join('\n'))),c.push([' peg$tracer = "tracer" in options ? options.tracer : new peg$DefaultTracer(),',''].join('\n'))),c.push([' peg$result;',''].join('\n')),"size"===options.optimize?c.push([' if ("startRule" in options) {',' if (!(options.startRule in peg$startRuleIndices)) {',' throw new Error("Can\'t start parsing from rule \\"" + options.startRule + "\\".");',' }','',' peg$startRuleIndex = peg$startRuleIndices[options.startRule];',' }'].join('\n')):c.push([' if ("startRule" in options) {',' if (!(options.startRule in peg$startRuleFunctions)) {',' throw new Error("Can\'t start parsing from rule \\"" + options.startRule + "\\".");',' }','',' peg$startRuleFunction = peg$startRuleFunctions[options.startRule];',' }'].join('\n')),c.push(['',' function text() {',' return input.substring(peg$savedPos, peg$currPos);',' }','',' function location() {',' return peg$computeLocation(peg$savedPos, peg$currPos);',' }','',' function expected(description, location) {',' location = location !== void 0 ? location : peg$computeLocation(peg$savedPos, peg$currPos)','',' throw peg$buildStructuredError(',' [peg$otherExpectation(description)],',' input.substring(peg$savedPos, peg$currPos),',' location',' );',' }','',' function error(message, location) {',' location = location !== void 0 ? location : peg$computeLocation(peg$savedPos, peg$currPos)','',' throw peg$buildSimpleError(message, location);',' }','',' function peg$literalExpectation(text, ignoreCase) {',' return { type: "literal", text: text, ignoreCase: ignoreCase };',' }','',' function peg$classExpectation(parts, inverted, ignoreCase) {',' return { type: "class", parts: parts, inverted: inverted, ignoreCase: ignoreCase };',' }','',' function peg$anyExpectation() {',' return { type: "any" };',' }','',' function peg$endExpectation() {',' return { type: "end" };',' }','',' function peg$otherExpectation(description) {',' return { type: "other", description: description };',' }','',' function peg$computePosDetails(pos) {',' var details = peg$posDetailsCache[pos], p;','',' if (details) {',' return details;',' } else {',' p = pos - 1;',' while (!peg$posDetailsCache[p]) {',' p--;',' }','',' details = peg$posDetailsCache[p];',' details = {',' line: details.line,',' column: details.column',' };','',' while (p < pos) {',' if (input.charCodeAt(p) === 10) {',' details.line++;',' details.column = 1;',' } else {',' details.column++;',' }','',' p++;',' }','',' peg$posDetailsCache[pos] = details;',' return details;',' }',' }','',' function peg$computeLocation(startPos, endPos) {',' var startPosDetails = peg$computePosDetails(startPos),',' endPosDetails = peg$computePosDetails(endPos);','',' return {',' start: {',' offset: startPos,',' line: startPosDetails.line,',' column: startPosDetails.column',' },',' end: {',' offset: endPos,',' line: endPosDetails.line,',' column: endPosDetails.column',' }',' };',' }','',' function peg$fail(expected) {',' if (peg$currPos < peg$maxFailPos) { return; }','',' if (peg$currPos > peg$maxFailPos) {',' peg$maxFailPos = peg$currPos;',' peg$maxFailExpected = [];',' }','',' peg$maxFailExpected.push(expected);',' }','',' function peg$buildSimpleError(message, location) {',' return new peg$SyntaxError(message, null, null, location);',' }','',' function peg$buildStructuredError(expected, found, location) {',' return new peg$SyntaxError(',' peg$SyntaxError.buildMessage(expected, found),',' expected,',' found,',' location',' );',' }',''].join('\n')),"size"===options.optimize?(c.push(indent2(generateInterpreter())),c.push('')):arrays.each(ast.rules,function(t){c.push(indent2(generateRuleFunction(t))),c.push('')}),ast.initializer&&(c.push(indent2(ast.initializer.code)),c.push('')),"size"===options.optimize?c.push(' peg$result = peg$parseRule(peg$startRuleIndex);'):c.push(' peg$result = peg$startRuleFunction();'),c.push(['',' if (peg$result !== peg$FAILED && peg$currPos === input.length) {',' return peg$result;',' } else {',' if (peg$result !== peg$FAILED && peg$currPos < input.length) {',' peg$fail(peg$endExpectation());',' }','',' throw peg$buildStructuredError(',' peg$maxFailExpected,',' peg$maxFailPos < input.length ? input.charAt(peg$maxFailPos) : null,',' peg$maxFailPos < input.length',' ? peg$computeLocation(peg$maxFailPos, peg$maxFailPos + 1)',' : peg$computeLocation(peg$maxFailPos, peg$maxFailPos)',' );',' }','}'].join('\n')),c.join('\n')}function generateWrapper(t){function s(){return['/*',' * Generated by PEG.js 0.10.0.',' *',' * http://pegjs.org/',' */'].join('\n')}function p(){return options.trace?['{',' SyntaxError: peg$SyntaxError,',' DefaultTracer: peg$DefaultTracer,',' parse: peg$parse','}'].join('\n'):['{',' SyntaxError: peg$SyntaxError,',' parse: peg$parse','}'].join('\n')}return{bare:function(){return[s(),'(function() {',' "use strict";','',indent2(t),'',indent2('return '+p()+';'),'})()'].join('\n')},commonjs:function(){var n=[],o=objects.keys(options.dependencies),c=arrays.map(o,function(t){return t+' = require("'+js.stringEscape(options.dependencies[t])+'")'});return n.push([s(),'','"use strict";',''].join('\n')),c.length>0&&(n.push('var '+c.join(', ')+';'),n.push('')),n.push([t,'','module.exports = '+p()+';',''].join('\n')),n.join('\n')},amd:function(){var n=objects.values(options.dependencies),o=objects.keys(options.dependencies),c='['+arrays.map(n,function(t){return'"'+js.stringEscape(t)+'"'}).join(', ')+']',u=o.join(', ');return[s(),'define('+c+', function('+u+') {',' "use strict";','',indent2(t),'',indent2('return '+p()+';'),'});',''].join('\n')},globals:function(){return[s(),'(function(root) {',' "use strict";','',indent2(t),'',indent2('root.'+options.exportVar+' = '+p()+';'),'})(this);',''].join('\n')},umd:function(){var n=[],o=objects.values(options.dependencies),c=objects.keys(options.dependencies),u='['+arrays.map(o,function(t){return'"'+js.stringEscape(t)+'"'}).join(', ')+']',l=arrays.map(o,function(t){return'require("'+js.stringEscape(t)+'")'}).join(', '),h=c.join(', ');return n.push([s(),'(function(root, factory) {',' if (typeof define === "function" && define.amd) {',' define('+u+', factory);',' } else if (typeof module === "object" && module.exports) {',' module.exports = factory('+l+');'].join('\n')),null!==options.exportVar&&n.push([' } else {',' root.'+options.exportVar+' = factory();'].join('\n')),n.push([' }','})(this, function('+h+') {',' "use strict";','',indent2(t),'',indent2('return '+p()+';'),'});',''].join('\n')),n.join('\n')}}[options.format]()}ast.code=generateWrapper(generateToplevel())}m.exports=generateJS},969,[952,953,960,967,968]); -__d(function(g,r,i,a,m,e,d){var l=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(l){var n=l.clipPath,o=l.clipRule,p={};o&&(p.clipRule=0===c[o]?0:1);if(n){var u=n.match(t.default);u?p.clipPath=u[1]:console.warn('Invalid `clipPath` prop, expected a clipPath like `"#id"`, but got: "'+n+'"')}return p};var t=l(r(d[1])),c={evenodd:0,nonzero:1}},970,[1,945]); -__d(function(g,r,i,a,m,e,d){var n=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(n,s){var t={};return l.default.forEach(u,function(o){var s=n[o];n[o]&&(t.responsible||"pointerEvents"===o||(t.responsible=!0),t[o]=s)}),l.default.every(p,function(l){return!n[l]||(t.responsible=!0,(0,o.default)(t,{onStartShouldSetResponder:s.touchableHandleStartShouldSetResponder,onResponderTerminationRequest:s.touchableHandleResponderTerminationRequest,onResponderGrant:s.touchableHandleResponderGrant,onResponderMove:s.touchableHandleResponderMove,onResponderRelease:s.touchableHandleResponderRelease,onResponderTerminate:s.touchableHandleResponderTerminate}),!1)}),t};var o=n(r(d[1])),s=n(r(d[2])),t=r(d[3]),l=n(r(d[4])),u=(0,s.default)(Object.keys(t.PanResponder.create({}).panHandlers)).concat(["pointerEvents"]),p=["disabled","onPress","onPressIn","onPressOut","onLongPress","delayPressIn","delayPressOut","delayLongPress"]},971,[1,8,15,2,332]); -__d(function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var u=t(r(d[1])),l=t(r(d[2])),n=t(r(d[3])),f=t(r(d[4])),o=t(r(d[5])),c=t(r(d[6])),s=t(r(d[7])),v=r(d[8]),p=t(r(d[9])),y=t(r(d[10])),h=(function(t){function v(){var t,u;(0,l.default)(this,v);for(var n=arguments.length,c=new Array(n),s=0;s1&&void 0!==arguments[1]&&arguments[1],l=arguments.length>2?arguments[2]:void 0,o=t.x,c=t.y,s=t.dx,y=t.dy,S=t.rotate,p=t.baselineShift,h=t.verticalAlign,v=t.alignmentBaseline,b=t.children,A=null;if("string"==typeof b||"number"==typeof b){var F=b.toString();n?b=f.default.createElement(l,null,F):(A=F,b=null)}else(f.Children.count(b)>1||Array.isArray(b))&&(b=f.Children.map(b,function(t){return"string"==typeof t||"number"==typeof t?f.default.createElement(l,null,t.toString()):t}));return{content:A,children:b,baselineShift:p,verticalAlign:h,alignmentBaseline:v,font:x(t),x:(0,u.default)(o),y:(0,u.default)(c),dx:(0,u.default)(s),dy:(0,u.default)(y),rotate:(0,u.default)(S)}};var l=n(r(d[2])),o=n(r(d[3])),f=t(r(d[4])),u=n(r(d[5])),c=/^\s*((?:(?:normal|bold|italic)\s+)*)(?:(\d+(?:\.\d+)?[ptexm%])*(?:\s*\/.*?)?\s+)?\s*"?([^"]*)/i,s=/^[\s"']*/,y=/[\s"']*$/,S=/\s*,\s*/g,p={};function h(t){return t?t.split(S)[0].replace(s,"").replace(y,""):null}function v(t){if(p.hasOwnProperty(t))return p[t];var n=c.exec(t);if(!n)return null;var l=h(n[3]),o=n[2]||"12",f=/bold/.exec(n[1]),u=/italic/.exec(n[1]),s=f?"bold":"normal",y=u?"italic":"normal";return p[t]={fontSize:o,fontFamily:l,fontWeight:s,fontStyle:y},p[t]}function x(t){var n=(0,l.default)({},t.style,t),f=n.fontData,u=n.fontStyle,c=n.fontVariant,s=n.fontWeight,y=n.fontStretch,S=n.textAnchor,p=n.textDecoration,x=n.letterSpacing,b=n.wordSpacing,A=n.kerning,F=n.fontVariantLigatures,D=n.fontFeatureSettings,V=n.fontSize,_=n.fontFamily,k=n.font;_=h(_),V=V?""+V:null;var w=o.default.pickBy({fontData:f,fontStyle:u,fontVariant:c,fontWeight:s,fontStretch:y,fontSize:V,fontFamily:_,textAnchor:S,textDecoration:p,letterSpacing:x,wordSpacing:b,kerning:A,fontVariantLigatures:F,fontFeatureSettings:D},function(t){return!o.default.isNil(t)});return"string"==typeof k&&(k=v(k)),o.default.defaults(w,k)}},981,[329,1,43,332,46,948]); -__d(function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var u=t(r(d[1])),l=t(r(d[2])),f=t(r(d[3])),n=t(r(d[4])),o=t(r(d[5])),s=t(r(d[6])),v=t(r(d[7])),c=t(r(d[8])),p=t(r(d[9])),h=r(d[10]),y=t(r(d[11])),N=t(r(d[12])),x=t(r(d[13])),_=t(r(d[14])),P=t(r(d[15])),k=(function(t){function h(){var t,u;(0,f.default)(this,h);for(var n=arguments.length,v=new Array(n),c=0;c0&&0===u?'has-left-divider':null},l))})}),b)};e.default=v},1000,[1,330,8,1001,332,1002,1007,1008]); -__d(function(g,r,i,a,m,e,d){!(function(){'use strict';var n={}.hasOwnProperty;function t(){for(var f=[],o=0;o1&&void 0!==arguments[1]?arguments[1]:'polite';(0,h.speak)(t,n)}},{key:"componentWillUnmount",value:function(){this.debouncedSpeak.cancel()}},{key:"render",value:function(){return(0,n.createElement)(t,(0,u.default)({},this.props,{speak:this.speak,debouncedSpeak:this.debouncedSpeak}))}}]),b})(n.Component)},'withSpokenMessages');e.default=v},1010,[1,330,8,19,20,27,30,33,29,332,1011,865]); -__d(function(g,r,i,a,m,e,d){var n=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.speak=void 0;var o=n(r(d[1]));e.speak=function(n,t){n=(0,o.default)(n)}},1011,[1,1012]); -__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t='',u=function(u){return u=u.replace(/<[^<>]+>/g,' '),t===u&&(u+="\xa0"),t=u,u};e.default=u},1012,[]); -__d(function(g,r,i,a,m,e,d){var t=r(d[0]),n=r(d[1]);Object.defineProperty(e,"__esModule",{value:!0}),e.createSlotFill=function(t){var n=function(n){return(0,u.createElement)(f.default,(0,l.default)({name:t},n))};n.displayName=t+'Fill';var c=function(n){return(0,u.createElement)(o.default,(0,l.default)({name:t},n))};return c.displayName=t+'Slot',{Fill:n,Slot:c}},Object.defineProperty(e,"Slot",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(e,"Fill",{enumerable:!0,get:function(){return f.default}}),Object.defineProperty(e,"Provider",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(e,"Consumer",{enumerable:!0,get:function(){return c.Consumer}});var u=r(d[2]),l=n(r(d[3])),o=n(r(d[4])),f=n(r(d[5])),c=t(r(d[6]))},1013,[329,1,330,8,1014,1016,1015]); -__d(function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=r(d[1]),l=t(r(d[2])),o=t(r(d[3])),u=t(r(d[4])),s=t(r(d[5])),c=t(r(d[6])),p=t(r(d[7])),f=t(r(d[8])),h=r(d[9]),v=r(d[10]),y=(function(t){function l(){var t;return(0,o.default)(this,l),(t=(0,s.default)(this,(0,c.default)(l).apply(this,arguments))).bindNode=t.bindNode.bind((0,f.default)((0,f.default)(t))),t}return(0,p.default)(l,t),(0,u.default)(l,[{key:"componentDidMount",value:function(){(0,this.props.registerSlot)(this.props.name,this)}},{key:"componentWillUnmount",value:function(){(0,this.props.unregisterSlot)(this.props.name,this)}},{key:"componentDidUpdate",value:function(t){var n=this.props,l=n.name,o=n.unregisterSlot,u=n.registerSlot;t.name!==l&&(o(t.name),u(l,this))}},{key:"bindNode",value:function(t){this.node=t}},{key:"render",value:function(){var t=this.props,l=t.children,o=t.name,u=t.bubblesVirtually,s=void 0!==u&&u,c=t.fillProps,p=void 0===c?{}:c,f=t.getFills;if(s)return(0,n.createElement)("div",{ref:this.bindNode});var v=(0,h.map)(f(o),function(t){var l=t.occurrence,o=(0,h.isFunction)(t.props.children)?t.props.children(p):t.props.children;return n.Children.map(o,function(t,o){if(!t||(0,h.isString)(t))return t;var u=l+"---"+(t.key||o);return(0,n.cloneElement)(t,{key:u})})}).filter((0,h.negate)(n.isEmptyElement));return(0,n.createElement)(n.Fragment,null,(0,h.isFunction)(l)?l(v):v)}}]),l})(n.Component),b=function(t){return(0,n.createElement)(v.Consumer,null,function(o){var u=o.registerSlot,s=o.unregisterSlot,c=o.getFills;return(0,n.createElement)(y,(0,l.default)({},t,{registerSlot:u,unregisterSlot:s,getFills:c}))})};e.default=b},1014,[1,330,8,19,20,27,30,33,29,332,1015]); -__d(function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.Consumer=e.default=void 0;var l=r(d[1]),s=t(r(d[2])),n=t(r(d[3])),u=t(r(d[4])),o=t(r(d[5])),f=t(r(d[6])),c=t(r(d[7])),h=t(r(d[8])),F=r(d[9]),S=(0,l.createContext)({registerSlot:function(){},unregisterSlot:function(){},registerFill:function(){},unregisterFill:function(){},getSlot:function(){},getFills:function(){}}),v=S.Provider,p=S.Consumer;e.Consumer=p;var y=(function(t){function S(){var t;return(0,n.default)(this,S),(t=(0,o.default)(this,(0,f.default)(S).apply(this,arguments))).registerSlot=t.registerSlot.bind((0,h.default)((0,h.default)(t))),t.registerFill=t.registerFill.bind((0,h.default)((0,h.default)(t))),t.unregisterSlot=t.unregisterSlot.bind((0,h.default)((0,h.default)(t))),t.unregisterFill=t.unregisterFill.bind((0,h.default)((0,h.default)(t))),t.getSlot=t.getSlot.bind((0,h.default)((0,h.default)(t))),t.getFills=t.getFills.bind((0,h.default)((0,h.default)(t))),t.slots={},t.fills={},t.state={registerSlot:t.registerSlot,unregisterSlot:t.unregisterSlot,registerFill:t.registerFill,unregisterFill:t.unregisterFill,getSlot:t.getSlot,getFills:t.getFills},t}return(0,c.default)(S,t),(0,u.default)(S,[{key:"registerSlot",value:function(t,l){this.slots[t]=l,this.forceUpdateFills(t),this.forceUpdateSlot(t)}},{key:"registerFill",value:function(t,l){this.fills[t]=(0,s.default)(this.fills[t]||[]).concat([l]),this.forceUpdateSlot(t)}},{key:"unregisterSlot",value:function(t){delete this.slots[t],this.forceUpdateFills(t)}},{key:"unregisterFill",value:function(t,l){this.fills[t]=(0,F.without)(this.fills[t],l),this.resetFillOccurrence(t),this.forceUpdateSlot(t)}},{key:"getSlot",value:function(t){return this.slots[t]}},{key:"getFills",value:function(t){return(0,F.sortBy)(this.fills[t],'occurrence')}},{key:"resetFillOccurrence",value:function(t){(0,F.forEach)(this.fills[t],function(t){t.resetOccurrence()})}},{key:"forceUpdateFills",value:function(t){(0,F.forEach)(this.fills[t],function(t){t.forceUpdate()})}},{key:"forceUpdateSlot",value:function(t){var l=this.getSlot(t);l&&l.forceUpdate()}},{key:"render",value:function(){return(0,l.createElement)(v,{value:this.state},this.props.children)}}]),S})(l.Component);e.default=y},1015,[1,330,15,19,20,27,30,33,29,332]); -__d(function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=r(d[1]),l=t(r(d[2])),o=t(r(d[3])),u=t(r(d[4])),s=t(r(d[5])),c=t(r(d[6])),p=t(r(d[7])),f=r(d[8]),h=r(d[9]),v=0,y=(function(t){function l(){var t;return(0,o.default)(this,l),(t=(0,s.default)(this,(0,c.default)(l).apply(this,arguments))).occurrence=++v,t}return(0,p.default)(l,t),(0,u.default)(l,[{key:"componentDidMount",value:function(){(0,this.props.registerFill)(this.props.name,this)}},{key:"componentWillUpdate",value:function(){this.occurrence||(this.occurrence=++v);var t=(0,this.props.getSlot)(this.props.name);t&&!t.props.bubblesVirtually&&t.forceUpdate()}},{key:"componentWillUnmount",value:function(){(0,this.props.unregisterFill)(this.props.name,this)}},{key:"componentDidUpdate",value:function(t){var n=this.props,l=n.name,o=n.unregisterFill,u=n.registerFill;t.name!==l&&(o(t.name,this),u(l,this))}},{key:"resetOccurrence",value:function(){this.occurrence=null}},{key:"render",value:function(){var t=this.props,l=t.name,o=t.getSlot,u=this.props.children,s=o(l);return s&&s.props.bubblesVirtually?((0,f.isFunction)(u)&&(u=u(s.props.fillProps)),(0,n.createPortal)(u,s.node)):null}}]),l})(n.Component),F=function(t){return(0,n.createElement)(h.Consumer,null,function(o){var u=o.getSlot,s=o.registerFill,c=o.unregisterFill;return(0,n.createElement)(y,(0,l.default)({},t,{getSlot:u,registerFill:s,unregisterFill:c}))})};e.default=F},1016,[1,330,8,19,20,27,30,33,332,1015]); -__d(function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){return(0,k.createHigherOrderComponent)(function(k){return(function(U){function y(o){var c;return(0,n.default)(this,y),(c=(0,u.default)(this,(0,l.default)(y).call(this,o))).onHooksUpdated=c.onHooksUpdated.bind((0,s.default)((0,s.default)(c))),c.Component=(0,h.applyFilters)(t,k),c.namespace=(0,f.uniqueId)('core/with-filters/component-'),c.throttledForceUpdate=(0,f.debounce)(function(){c.Component=(0,h.applyFilters)(t,k),c.forceUpdate()},v),(0,h.addAction)('hookRemoved',c.namespace,c.onHooksUpdated),(0,h.addAction)('hookAdded',c.namespace,c.onHooksUpdated),c}return(0,p.default)(y,U),(0,c.default)(y,[{key:"componentWillUnmount",value:function(){this.throttledForceUpdate.cancel(),(0,h.removeAction)('hookRemoved',this.namespace),(0,h.removeAction)('hookAdded',this.namespace)}},{key:"onHooksUpdated",value:function(o){o===t&&this.throttledForceUpdate()}},{key:"render",value:function(){return(0,o.createElement)(this.Component,this.props)}}]),y})(o.Component)},'withFilters')};var o=r(d[1]),n=t(r(d[2])),c=t(r(d[3])),u=t(r(d[4])),l=t(r(d[5])),p=t(r(d[6])),s=t(r(d[7])),f=r(d[8]),h=r(d[9]),k=r(d[10]),v=16},1017,[1,330,19,20,27,30,33,29,332,893,865]); -__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(c){var s=c.attributes,_=c.setAttributes,f=c.style,b=c.onFocus,v=c.onBlur;return(0,t.createElement)(n.View,null,(0,t.createElement)(o.PlainText,{value:s.content,style:[f,u.blockCode],multiline:!0,underlineColorAndroid:"transparent",onChange:function(t){return _({content:t})},placeholder:(0,l.__)('Write code\u2026'),"aria-label":(0,l.__)('Code'),isSelected:c.isSelected,onFocus:b,onBlur:v}))};var t=r(d[0]),n=r(d[1]),l=r(d[2]),o=r(d[3]),u="ios"===n.Platform.OS?r(d[4]):r(d[5])},1018,[330,2,877,1019,1140,1141]); -__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),r(d[0]),r(d[1]),r(d[2]),r(d[3]);var t=r(d[4]);Object.keys(t).forEach(function(n){"default"!==n&&"__esModule"!==n&&Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[n]}})});var n=r(d[5]);Object.keys(n).forEach(function(t){"default"!==t&&"__esModule"!==t&&Object.defineProperty(e,t,{enumerable:!0,get:function(){return n[t]}})})},1019,[807,1020,1052,1076,1079,1139]); -__d(function(g,r,i,a,m,e,d){var t=r(d[0]),n=r(d[1]),o=n(r(d[2])),u=r(d[3]),c=n(r(d[4])),f=n(r(d[5])),l=t(r(d[6])),s=t(r(d[7])),v=t(r(d[8])),y=r(d[9]),E=r(d[10]),h=y.defaultEntities.reduce(function(t,n){var o=n.kind,u=n.name;return t[(0,y.getMethodName)(o,u)]=function(t,n){return l.getEntityRecord(t,o,u,n)},t[(0,y.getMethodName)(o,u,'get',!0)]=function(t){for(var n=arguments.length,c=new Array(n>1?n-1:0),f=1;f1?c-1:0),l=1;l0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;switch(n.type){case'RECEIVE_TERMS':return(0,s.default)({},t,(0,o.default)({},n.taxonomy,n.terms))}return t}function p(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{byId:{},queries:{}},n=arguments.length>1?arguments[1]:void 0;switch(n.type){case'RECEIVE_USER_QUERY':return{byId:(0,s.default)({},t.byId,(0,c.keyBy)(n.users,'id')),queries:(0,s.default)({},t.queries,(0,o.default)({},n.queryID,(0,c.map)(n.users,function(t){return t.id})))}}return t}function y(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1?arguments[1]:void 0;switch(n.type){case'RECEIVE_TAXONOMIES':return n.taxonomies}return t}function I(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;switch(n.type){case'RECEIVE_THEME_SUPPORTS':return(0,s.default)({},t,n.themeSupports)}return t}function _(t){return(0,c.flowRight)([(0,l.ifMatchingAction)(function(n){return n.name&&n.kind&&n.name===t.name&&n.kind===t.kind}),(0,l.replaceAction)(function(n){return(0,s.default)({},n,{key:t.key||E.DEFAULT_ENTITY_KEY})})])(v.reducer)}function R(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:E.defaultEntities,n=arguments.length>1?arguments[1]:void 0;switch(n.type){case'ADD_ENTITIES':return(0,u.default)(t).concat((0,u.default)(n.entities))}return t}var S=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},u=arguments.length>1?arguments[1]:void 0,l=R(t.config,u),v=t.reducer;if(!v||l!==t.config){var E=(0,c.groupBy)(l,'kind');v=(0,f.combineReducers)(Object.entries(E).reduce(function(t,u){var c=(0,n.default)(u,2),l=c[0],v=c[1],E=(0,f.combineReducers)(v.reduce(function(t,n){return(0,s.default)({},t,(0,o.default)({},n.name,_(n)))},{}));return t[l]=E,t},{}))}var h=v(t.data,u);return h===t.data&&l===t.config&&v===t.reducer?t:{reducer:v,data:h,config:l}};function w(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;switch(n.type){case'RECEIVE_EMBED_PREVIEW':var u=n.url,c=n.preview;return(0,s.default)({},t,(0,o.default)({},u,c))}return t}function P(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;switch(n.type){case'RECEIVE_UPLOAD_PERMISSIONS':return n.hasUploadPermissions}return t}e.entities=S;var b=(0,f.combineReducers)({terms:h,users:p,taxonomies:y,themeSupports:I,entities:S,embedPreviews:w,hasUploadPermissions:P});e.default=b},1021,[1,9,15,44,43,332,809,1022,1027,1038]); -__d(function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"ifMatchingAction",{enumerable:!0,get:function(){return n.default}}),Object.defineProperty(e,"onSubKey",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(e,"replaceAction",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(e,"withWeakMapCache",{enumerable:!0,get:function(){return f.default}});var n=t(r(d[1])),u=t(r(d[2])),c=t(r(d[3])),f=t(r(d[4]))},1022,[1,1023,1024,1025,1026]); -__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=function(n){return function(t){return function(u,o){return void 0===u||n(o)?t(u,o):u}}};e.default=n},1023,[]); -__d(function(g,r,i,a,m,e,d){var n=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.onSubKey=void 0;var t=n(r(d[1])),u=n(r(d[2])),o=function(n){return function(o){return function(){var f=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},v=arguments.length>1?arguments[1]:void 0,l=v[n];if(void 0===l)return f;var c=o(f[l],v);return c===f[l]?f:(0,u.default)({},f,(0,t.default)({},l,c))}}};e.onSubKey=o;var f=o;e.default=f},1024,[1,44,43]); -__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=function(n){return function(t){return function(u,f){return t(u,n(f))}}};e.default=n},1025,[]); -__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=r(d[0]);var n=function(n){var u=new WeakMap;return function(f){var o;return u.has(f)?o=u.get(f):(o=n(f),(0,t.isObjectLike)(f)&&u.set(f,o)),o}};e.default=n},1026,[332]); -__d(function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0});var n={reducer:!0};Object.defineProperty(e,"reducer",{enumerable:!0,get:function(){return c.default}});var o=r(d[1]);Object.keys(o).forEach(function(t){"default"!==t&&"__esModule"!==t&&(Object.prototype.hasOwnProperty.call(n,t)||Object.defineProperty(e,t,{enumerable:!0,get:function(){return o[t]}}))});var u=r(d[2]);Object.keys(u).forEach(function(t){"default"!==t&&"__esModule"!==t&&(Object.prototype.hasOwnProperty.call(n,t)||Object.defineProperty(e,t,{enumerable:!0,get:function(){return u[t]}}))});var c=t(r(d[3]))},1027,[1,1028,1029,1037]); -__d(function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.receiveItems=c,e.receiveQueriedItems=function(t){var u=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(0,n.default)({},c(t),{query:u})};var n=t(r(d[1])),u=r(d[2]);function c(t){return{type:'RECEIVE_ITEMS',items:(0,u.castArray)(t)}}},1028,[1,43,332]); -__d(function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.getQueriedItems=void 0;var n=t(r(d[1])),u=t(r(d[2])),l=t(r(d[3])),v=new WeakMap;function f(t,n){var u=(0,l.default)(n),v=u.stableKey,f=u.page,s=u.perPage;if(!t.queries[v])return null;var o=t.queries[v];if(!o)return null;for(var h=-1===s?0:(f-1)*s,p=-1===s?o.length:Math.min(h+s,o.length),c=[],_=h;_1&&void 0!==arguments[1]?arguments[1]:{},l=v.get(t);if(l){var s=l.get(n);if(void 0!==s)return s}else l=new u.default,v.set(t,l);var o=f(t,n);return l.set(n,o),o});e.getQueriedItems=s},1029,[1,886,838,1030]); -__d(function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.getQueryParts=l,e.default=void 0;var u=t(r(d[1])),s=r(d[2]);function l(t){for(var l={stableKey:'',page:1,perPage:10},b=Object.keys(t).sort(),c=0;c1?o-1:0),l=1;l0?P+F:''}},1033,[1034,1035]); -__d(function(g,r,i,a,m,e,d){'use strict';var t=Object.prototype.hasOwnProperty,o=(function(){for(var t=[],o=0;o<256;++o)t.push('%'+((o<16?'0':'')+o.toString(16)).toUpperCase());return t})(),n=function(t){for(var o;t.length;){var n=t.pop();if(o=n.obj[n.prop],Array.isArray(o)){for(var c=[],u=0;u=48&&f<=57||f>=65&&f<=90||f>=97&&f<=122?c+=n.charAt(u):f<128?c+=o[f]:f<2048?c+=o[192|f>>6]+o[128|63&f]:f<55296||f>=57344?c+=o[224|f>>12]+o[128|f>>6&63]+o[128|63&f]:(u+=1,f=65536+((1023&f)<<10|1023&n.charCodeAt(u)),c+=o[240|f>>18]+o[128|f>>12&63]+o[128|f>>6&63]+o[128|63&f])}return c},isBuffer:function(t){return null!==t&&void 0!==t&&!!(t.constructor&&t.constructor.isBuffer&&t.constructor.isBuffer(t))},isRegExp:function(t){return'[object RegExp]'===Object.prototype.toString.call(t)},merge:function o(n,u,f){if(!u)return n;if('object'!=typeof u){if(Array.isArray(n))n.push(u);else{if('object'!=typeof n)return[n,u];(f.plainObjects||f.allowPrototypes||!t.call(Object.prototype,u))&&(n[u]=!0)}return n}if('object'!=typeof n)return[n].concat(u);var p=n;return Array.isArray(n)&&!Array.isArray(u)&&(p=c(n,f)),Array.isArray(n)&&Array.isArray(u)?(u.forEach(function(c,u){t.call(n,u)?n[u]&&'object'==typeof n[u]?n[u]=o(n[u],c,f):n.push(c):n[u]=c}),n):Object.keys(u).reduce(function(n,c){var p=u[c];return t.call(n,c)?n[c]=o(n[c],p,f):n[c]=p,n},p)}}},1034,[]); -__d(function(g,r,i,a,m,e,d){'use strict';var t=String.prototype.replace,n=/%20/g;m.exports={default:'RFC3986',formatters:{RFC1738:function(o){return t.call(o,n,'+')},RFC3986:function(t){return t}},RFC1738:'RFC1738',RFC3986:'RFC3986'}},1035,[]); -__d(function(g,r,i,a,m,e,d){'use strict';var t=r(d[0]),o=Object.prototype.hasOwnProperty,l={allowDots:!1,allowPrototypes:!1,arrayLimit:20,decoder:t.decode,delimiter:'&',depth:5,parameterLimit:1e3,plainObjects:!1,strictNullHandling:!1},n=function(t,n){for(var c={},p=n.ignoreQueryPrefix?t.replace(/^\?/,''):t,s=n.parameterLimit===1/0?void 0:n.parameterLimit,u=p.split(n.delimiter,s),y=0;y=0;--c){var p,s=t[c];if('[]'===s)p=(p=[]).concat(n);else{p=l.plainObjects?Object.create(null):{};var u='['===s.charAt(0)&&']'===s.charAt(s.length-1)?s.slice(1,-1):s,y=parseInt(u,10);!isNaN(y)&&s!==u&&String(y)===u&&y>=0&&l.parseArrays&&y<=l.arrayLimit?(p=[])[y]=n:p[u]=n}n=p}return n},p=function(t,l,n){if(t){var p=n.allowDots?t.replace(/\.([^.[]+)/g,'[$1]'):t,s=/(\[[^[\]]*])/g,u=/(\[[^[\]]*])/.exec(p),y=u?p.slice(0,u.index):p,f=[];if(y){if(!n.plainObjects&&o.call(Object.prototype,y)&&!n.allowPrototypes)return;f.push(y)}for(var b=0;null!==(u=s.exec(p))&&b=l&&v0&&void 0!==arguments[0]?arguments[0]:null,n=arguments.length>1?arguments[1]:void 0,u=n.type,l=n.page,f=n.perPage,E=n.key,y=void 0===E?c.DEFAULT_ENTITY_KEY:E;return'RECEIVE_ITEMS'!==u?t:v(t||[],(0,o.map)(n.items,y),l,f)}),y=(0,u.combineReducers)({items:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},u=arguments.length>1?arguments[1]:void 0;switch(u.type){case'RECEIVE_ITEMS':return(0,n.default)({},t,(0,o.keyBy)(u.items,u.key||c.DEFAULT_ENTITY_KEY))}return t},queries:E});e.default=y},1037,[1,43,814,332,1022,1038,1030]); -__d(function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.getKindEntities=h,e.getMethodName=e.kinds=e.defaultEntities=e.DEFAULT_ENTITY_KEY=void 0;var n=t(r(d[1])),s=r(d[2]),u=r(d[3]),o=r(d[4]),p=n.default.mark(x),c=n.default.mark(b),l=n.default.mark(h);e.DEFAULT_ENTITY_KEY='id';var f=[{name:'postType',kind:'root',key:'slug',baseURL:'/wp/v2/types'},{name:'media',kind:'root',baseURL:'/wp/v2/media',plural:'mediaItems'},{name:'taxonomy',kind:'root',key:'slug',baseURL:'/wp/v2/taxonomies',plural:'taxonomies'}];e.defaultEntities=f;var v=[{name:'postType',loadEntities:x},{name:'taxonomy',loadEntities:b}];function x(){var t;return n.default.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,(0,o.apiFetch)({path:'/wp/v2/types?context=edit'});case 2:return t=n.sent,n.abrupt("return",(0,s.map)(t,function(t,n){return{kind:'postType',baseURL:'/wp/v2/'+t.rest_base,name:n}}));case 4:case"end":return n.stop()}},p,this)}function b(){var t;return n.default.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,(0,o.apiFetch)({path:'/wp/v2/taxonomies?context=edit'});case 2:return t=n.sent,n.abrupt("return",(0,s.map)(t,function(t,n){return{kind:'taxonomy',baseURL:'/wp/v2/'+t.rest_base,name:n}}));case 4:case"end":return n.stop()}},c,this)}e.kinds=v;function h(t){var p,c;return n.default.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,(0,o.select)('getEntitiesByKind',t);case 2:if(!(p=n.sent)||0===p.length){n.next=5;break}return n.abrupt("return",p);case 5:if(c=(0,s.find)(v,{name:t})){n.next=8;break}return n.abrupt("return",[]);case 8:return n.next=10,c.loadEntities();case 10:return p=n.sent,n.next=13,(0,u.addEntities)(p);case 13:return n.abrupt("return",p);case 14:case"end":return n.stop()}},l,this)}e.getMethodName=function(t,n){var u=arguments.length>2&&void 0!==arguments[2]?arguments[2]:'get',o=arguments.length>3&&void 0!==arguments[3]&&arguments[3],p=(0,s.find)(f,{kind:t,name:n}),c='root'===t?'':(0,s.upperFirst)((0,s.camelCase)(t)),l=(0,s.upperFirst)((0,s.camelCase)(n))+(o?'s':'');return""+u+c+(o&&p.plural?(0,s.upperFirst)((0,s.camelCase)(p.plural)):l)}},1038,[1,129,332,1039,1040]); -__d(function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.receiveUserQuery=function(t,n){return{type:'RECEIVE_USER_QUERY',users:(0,s.castArray)(n),queryID:t}},e.addEntities=function(t){return{type:'ADD_ENTITIES',entities:t}},e.receiveEntityRecords=v,e.receiveThemeSupports=function(t){return{type:'RECEIVE_THEME_SUPPORTS',themeSupports:t}},e.receiveEmbedPreview=function(t,n){return{type:'RECEIVE_EMBED_PREVIEW',url:t,preview:n}},e.saveEntityRecord=f,e.receiveUploadPermissions=function(t){return{type:'RECEIVE_UPLOAD_PERMISSIONS',hasUploadPermissions:t}};var n=t(r(d[1])),u=t(r(d[2])),s=r(d[3]),E=r(d[4]),c=r(d[5]),o=r(d[6]),p=n.default.mark(f);function v(t,n,s,c){var o,p=arguments.length>4&&void 0!==arguments[4]&&arguments[4];return o=c?(0,E.receiveQueriedItems)(s,c):(0,E.receiveItems)(s),(0,u.default)({},o,{kind:t,name:n,invalidateCache:p})}function f(t,u,E){var f,_,I,y,R;return n.default.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,(0,c.getKindEntities)(t);case 2:if(f=n.sent,_=(0,s.find)(f,{kind:t,name:u})){n.next=6;break}return n.abrupt("return");case 6:return I=_.key||c.DEFAULT_ENTITY_KEY,y=E[I],n.next=10,(0,o.apiFetch)({path:_.baseURL+(y?'/'+y:''),method:y?'PUT':'POST',data:E});case 10:return R=n.sent,n.next=13,v(t,u,R,void 0,!0);case 13:return n.abrupt("return",R);case 14:case"end":return n.stop()}},p,this)}},1039,[1,129,43,332,1027,1038,1040]); -__d(function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.apiFetch=function(t){return{type:'API_FETCH',request:t}},e.select=function(t){for(var n=arguments.length,u=new Array(n>1?n-1:0),c=1;c=200&&t.status<300)return t;throw t}).then(function(t){return h?204===t.status?null:t.json?t.json():Promise.reject(t):t}).catch(function(t){if(!h)throw t;var n={code:'invalid_json',message:(0,u.__)('The response is not a valid JSON response.')};if(!t||!t.json)throw n;return t.json().catch(function(){throw n}).then(function(t){var n={code:'unknown_error',message:(0,u.__)('An unknown error occurred.')};throw t||n})})},f.default,p.default,h.default,v.default].concat(j).reverse();return(function t(n){return function(o){return(0,c[n])(o,t(n+1))}})(0)(t)}y.use=function(t){j.push(t)},y.createNonceMiddleware=c.default,y.createPreloadingMiddleware=l.default,y.createRootURLMiddleware=s.default,y.fetchAllMiddleware=f.default;var M=y;e.default=M},1041,[1,43,6,877,1042,1043,1045,1046,1044,1047,1048]); -__d(function(g,r,i,a,m,e,d){var n=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=n(r(d[1])),o=r(d[2]),c=function(n){var c=n;return(0,o.addAction)('heartbeat.tick','core/api-fetch/create-nonce-middleware',function(n){n['rest-nonce']&&(c=n['rest-nonce'])}),function(n,o){var f=n.headers||{},u=!0;for(var l in f)if(f.hasOwnProperty(l)&&'x-wp-nonce'===l.toLowerCase()){u=!1;break}return u&&(f=(0,t.default)({},f,{'X-WP-Nonce':c})),o((0,t.default)({},n,{headers:f}))}};e.default=c},1042,[1,43,893]); -__d(function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=t(r(d[1])),u=t(r(d[2])),f=function(t){return function(f,l){return(0,u.default)(f,function(u){var f,o=u.url,c=u.path;return'string'==typeof c&&(f=t,-1!==t.indexOf('?')&&(c=c.replace('?','&')),c=c.replace(/^\//,''),'string'==typeof f&&-1!==f.indexOf('?')&&(c=c.replace('?','&')),o=f+c),l((0,n.default)({},u,{url:o}))})}};e.default=f},1043,[1,43,1044]); -__d(function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=t(r(d[1])),p=function(t,p){var o,l,c=t.path;return'string'==typeof t.namespace&&'string'==typeof t.endpoint&&(o=t.namespace.replace(/^\/|\/$/g,''),c=(l=t.endpoint.replace(/^\//,''))?o+'/'+l:o),delete t.namespace,delete t.endpoint,p((0,n.default)({},t,{path:c}))};e.default=p},1044,[1,43]); -__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=function(t){return function(n,o){var u=n.parse,f=void 0===u||u;if('string'==typeof n.path){var l=n.method||'GET',p=(function(t){var n=t.split('?'),o=n[1],u=n[0];return o?u+'?'+o.split('&').map(function(t){return t.split('=')}).sort(function(t,n){return t[0].localeCompare(n[0])}).map(function(t){return t.join('=')}).join('&'):u})(n.path);if(f&&'GET'===l&&t[p])return Promise.resolve(t[p].body);if('OPTIONS'===l&&t[l][p])return Promise.resolve(t[l][p])}return o(n)}};e.default=t},1045,[]); -__d(function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=t(r(d[1])),u=t(r(d[2])),s=t(r(d[3])),c=r(d[4]),f=function(t,n){var f=t.path,p=t.url,l=(0,s.default)(t,["path","url"]);return(0,u.default)({},l,{url:p&&(0,c.addQueryArgs)(p,n),path:f&&(0,c.addQueryArgs)(f,n)})},p=function(t){return t.json?t.json():Promise.reject(t)},l=function(t){if(!t)return{};var n=t.match(/<([^>]+)>; rel="next"/);return n?{next:n[1]}:{}},o=function(t){return l(t.headers.get('link')).next},x=function(t){var n=t.path&&-1!==t.path.indexOf('per_page=-1'),u=t.url&&-1!==t.url.indexOf('per_page=-1');return n||u},b=function(t,s){var c,l,b,h,v,k;return n.default.async(function(_){for(;;)switch(_.prev=_.next){case 0:if(!1!==t.parse){_.next=2;break}return _.abrupt("return",s(t));case 2:if(x(t)){_.next=4;break}return _.abrupt("return",s(t));case 4:return _.next=6,n.default.awrap(s((0,u.default)({},f(t,{per_page:100}),{parse:!1})));case 6:return c=_.sent,_.next=9,n.default.awrap(p(c));case 9:if(l=_.sent,Array.isArray(l)){_.next=12;break}return _.abrupt("return",l);case 12:if(b=o(c)){_.next=15;break}return _.abrupt("return",l);case 15:h=[].concat(l);case 16:if(!b){_.next=27;break}return _.next=19,n.default.awrap(s((0,u.default)({},t,{path:void 0,url:b,parse:!1})));case 19:return v=_.sent,_.next=22,n.default.awrap(p(v));case 22:k=_.sent,h=h.concat(k),b=o(v),_.next=16;break;case 27:return _.abrupt("return",h);case 28:case"end":return _.stop()}},null,this)};e.default=b},1046,[1,129,43,6,1031]); -__d(function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=t(r(d[1])),n=new Set(['PATCH','PUT','DELETE']),u='GET';var v=function(t,v){var T=t.method,f=void 0===T?u:T;return n.has(f.toUpperCase())&&(t=(0,o.default)({},t,{headers:(0,o.default)({},t.headers,{'X-HTTP-Method-Override':f,'Content-Type':'application/json'}),method:'POST'})),v(t,v)};e.default=v},1047,[1,43]); -__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var u=r(d[0]);var l=function(l,t){return'string'!=typeof l.url||(0,u.hasQueryArg)(l.url,'_locale')||(l.url=(0,u.addQueryArgs)(l.url,{_locale:'user'})),'string'!=typeof l.path||(0,u.hasQueryArg)(l.path,'_locale')||(l.path=(0,u.addQueryArgs)(l.path,{_locale:'user'})),t(l,t)};e.default=l},1048,[1031]); -__d(function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.isRequestingEmbedPreview=function(t,n){return c('getEmbedPreview',n)},e.getAuthors=function(t){return v(t,'authors')},e.getEntitiesByKind=function(t,n){return(0,u.filter)(t.entities.config,{kind:n})},e.getEntity=function(t,n,s){return(0,u.find)(t.entities.config,{kind:n,name:s})},e.getEntityRecord=function(t,n,s,o){return(0,u.get)(t.entities.data,[n,s,'items',o])},e.getEntityRecords=function(t,n,s,o){var c=(0,u.get)(t.entities.data,[n,s]);if(!c)return[];return(0,f.getQueriedItems)(c,o)},e.getThemeSupports=function(t){return t.themeSupports},e.getEmbedPreview=function(t,n){return t.embedPreviews[n]},e.isPreviewEmbedFallback=function(t,n){var u=t.embedPreviews[n],s=''+n+'';if(!u)return!1;return u.html===s},e.hasUploadPermissions=function(t){return t.hasUploadPermissions},e.getUserQueryResults=void 0;var n=t(r(d[1])),u=r(d[2]),s=r(d[3]),o=r(d[4]),f=r(d[5]);function c(t){for(var n=arguments.length,u=new Array(n>1?n-1:0),f=1;f2&&void 0!==k[2]?k[2]:{},s.next=3,(0,p.getKindEntities)(t);case 3:if(x=s.sent,w=(0,u.find)(x,{kind:t,name:f})){s.next=7;break}return s.abrupt("return");case 7:return b=(0,c.addQueryArgs)(w.baseURL,(0,n.default)({},v,{context:'edit'})),s.next=10,(0,h.apiFetch)({path:b});case 10:return E=s.sent,s.next=13,(0,o.receiveEntityRecords)(t,f,Object.values(E),v);case 13:case"end":return s.stop()}},l,this)}function P(){var t;return s.default.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,(0,h.apiFetch)({path:'/wp/v2/themes?status=active'});case 2:return t=n.sent,n.next=5,(0,o.receiveThemeSupports)(t[0].theme_supports);case 5:case"end":return n.stop()}},x,this)}function R(t){var n;return s.default.wrap(function(s){for(;;)switch(s.prev=s.next){case 0:return s.prev=0,s.next=3,(0,h.apiFetch)({path:(0,c.addQueryArgs)('/oembed/1.0/proxy',{url:t})});case 3:return n=s.sent,s.next=6,(0,o.receiveEmbedPreview)(t,n);case 6:s.next=12;break;case 8:return s.prev=8,s.t0=s.catch(0),s.next=12,(0,o.receiveEmbedPreview)(t,!1);case 12:case"end":return s.stop()}},w,this,[[0,8]])}function _(){var t,n;return s.default.wrap(function(s){for(;;)switch(s.prev=s.next){case 0:return s.next=2,(0,h.apiFetch)({path:'/wp/v2/media',method:'OPTIONS',parse:!1});case 2:return t=s.sent,n=(0,u.hasIn)(t,['headers','get'])?t.headers.get('allow'):(0,u.get)(t,['headers','Allow'],''),s.next=6,(0,o.receiveUploadPermissions)((0,u.includes)(n,'POST'));case 6:case"end":return s.stop()}},b,this)}y.shouldInvalidate=function(t,n,s){return'RECEIVE_ITEMS'===t.type&&t.invalidateCache&&n===t.kind&&s===t.name}},1051,[1,43,129,332,1031,1039,1038,1040]); -__d(function(g,r,i,a,m,e,d){var t=r(d[0]),o=r(d[1]);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var s=r(d[2]),u=o(r(d[3])),c=o(r(d[4])),f=t(r(d[5])),l=t(r(d[6])),n=(0,s.registerStore)('core/editor',{reducer:u.default,selectors:f,actions:l,persist:['preferences']});(0,c.default)(n);var v=n;e.default=v},1052,[329,1,809,1053,1061,1066,1065]); -__d(function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.getPostRawValue=C,e.hasSameKeys=U,e.isUpdatingSameBlockAttribute=B,e.isUpdatingSamePostProperty=b,e.shouldOverwriteState=y,e.initialEdits=D,e.currentPost=K,e.isTyping=w,e.isCaretWithinFormattedText=V,e.blockSelection=M,e.blocksMode=N,e.insertionPoint=F,e.template=x,e.settings=G,e.preferences=q,e.saving=H,e.postLock=Q,e.postSavingLock=W,e.autosave=j,e.previewLink=z,e.default=e.blockListSettings=e.reusableBlocks=e.editor=void 0;var n=t(r(d[1])),u=t(r(d[2])),l=t(r(d[3])),s=t(r(d[4])),o=t(r(d[5])),c=t(r(d[6])),E=t(r(d[7])),S=r(d[8]),f=r(d[9]),T=r(d[10]),_=r(d[11]),v=t(r(d[12])),I=t(r(d[13])),O=r(d[14]),L=r(d[15]),h=r(d[16]);function C(t){return t&&'object'==typeof t&&'raw'in t?t.raw:t}function P(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:'',u=(0,c.default)({},n,[]);return t.forEach(function(t){var l=t.clientId,s=t.innerBlocks;u[n].push(l),(0,o.default)(u,P(s,l))}),u}function p(t){for(var n={},u=(0,s.default)(t);u.length;){var o=u.shift(),c=o.innerBlocks,E=(0,l.default)(o,["innerBlocks"]);u.push.apply(u,(0,s.default)(c)),n[E.clientId]=E}return n}function R(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:'';return(0,S.reduce)(t[n],function(n,u){return(0,s.default)(n).concat([u],(0,s.default)(R(t,u)))},[])}function A(t,n){return t===n?(0,u.default)({},t):n}function U(t,n){return(0,S.isEqual)((0,S.keys)(t),(0,S.keys)(n))}function B(t,n){return'UPDATE_BLOCK_ATTRIBUTES'===t.type&&t.clientId===n.clientId&&U(t.attributes,n.attributes)}function b(t,n){return'EDIT_POST'===t.type&&U(t.edits,n.edits)}function y(t,n){return!(!n||t.type!==n.type)&&(0,S.overSome)([B,b])(t,n)}var k=(0,S.flow)([T.combineReducers,function(t){return function(n,l){if(n&&'REMOVE_BLOCKS'===l.type){for(var o=(0,s.default)(l.clientIds),c=0;c0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;switch(n.type){case'EDIT_POST':return(0,S.reduce)(n.edits,function(n,l,s){return l!==t[s]&&(n=A(t,n),h.EDIT_MERGE_PROPERTIES.has(s)?n[s]=(0,u.default)({},n[s],l):n[s]=l),n},t);case'RESET_BLOCKS':return'content'in t?(0,S.omit)(t,'content'):t;case'UPDATE_POST':case'RESET_POST':var l='UPDATE_POST'===n.type?function(t){return n.edits[t]}:function(t){return C(n.post[t])};return(0,S.reduce)(t,function(n,u,s){return(0,S.isEqual)(u,l(s))?(delete(n=A(t,n))[s],n):n},t)}return t},blocks:(0,S.flow)([T.combineReducers,function(t){return function(n,l){if(n&&'RESET_BLOCKS'===l.type){var s=R(n.order);return(0,u.default)({},n,{byClientId:(0,u.default)({},(0,S.omit)(n.byClientId,s),p(l.blocks)),order:(0,u.default)({},(0,S.omit)(n.order,s),P(l.blocks))})}return t(n,l)}},(0,I.default)({resetTypes:['SETUP_EDITOR_STATE','REQUEST_POST_UPDATE_START'],ignoreTypes:['RECEIVE_BLOCKS','RESET_POST','UPDATE_POST']})])({byClientId:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;switch(n.type){case'SETUP_EDITOR_STATE':return p(n.blocks);case'RECEIVE_BLOCKS':return(0,u.default)({},t,p(n.blocks));case'UPDATE_BLOCK_ATTRIBUTES':if(!t[n.clientId])return t;var l=(0,S.reduce)(n.attributes,function(u,l,s){return l!==u[s]&&((u=A(t[n.clientId].attributes,u))[s]=l),u},t[n.clientId].attributes);return l===t[n.clientId].attributes?t:(0,u.default)({},t,(0,c.default)({},n.clientId,(0,u.default)({},t[n.clientId],{attributes:l})));case'UPDATE_BLOCK':return t[n.clientId]?(0,u.default)({},t,(0,c.default)({},n.clientId,(0,u.default)({},t[n.clientId],n.updates))):t;case'INSERT_BLOCKS':return(0,u.default)({},t,p(n.blocks));case'REPLACE_BLOCKS':return n.blocks?(0,u.default)({},(0,S.omit)(t,n.clientIds),p(n.blocks)):t;case'REMOVE_BLOCKS':return(0,S.omit)(t,n.clientIds);case'SAVE_REUSABLE_BLOCK_SUCCESS':var s=n.id,o=n.updatedId;return s===o?t:(0,S.mapValues)(t,function(t){return'core/block'===t.name&&t.attributes.ref===s?(0,u.default)({},t,{attributes:(0,u.default)({},t.attributes,{ref:o})}):t})}return t},order:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;switch(n.type){case'SETUP_EDITOR_STATE':return P(n.blocks);case'RECEIVE_BLOCKS':return(0,u.default)({},t,(0,S.omit)(P(n.blocks),''));case'INSERT_BLOCKS':var l=n.rootClientId,o=void 0===l?'':l,E=n.blocks,f=t[o]||[],T=P(E,o),_=n.index,v=void 0===_?f.length:_;return(0,u.default)({},t,T,(0,c.default)({},o,(0,L.insertAt)(f,T[o],v)));case'MOVE_BLOCK_TO_POSITION':var I,O=n.fromRootClientId,h=void 0===O?'':O,C=n.toRootClientId,p=void 0===C?'':C,R=n.clientId,A=n.index,U=void 0===A?t[p].length:A;if(h===p){var B=t[p].indexOf(R);return(0,u.default)({},t,(0,c.default)({},p,(0,L.moveTo)(t[p],B,U)))}return(0,u.default)({},t,(I={},(0,c.default)(I,h,(0,S.without)(t[h],R)),(0,c.default)(I,p,(0,L.insertAt)(t[p],R,U)),I));case'MOVE_BLOCKS_UP':var b=n.clientIds,y=n.rootClientId,k=void 0===y?'':y,D=(0,S.first)(b),K=t[k];if(!K.length||D===(0,S.first)(K))return t;var w=K.indexOf(D);return(0,u.default)({},t,(0,c.default)({},k,(0,L.moveTo)(K,w,w-1,b.length)));case'MOVE_BLOCKS_DOWN':var V=n.clientIds,M=n.rootClientId,N=void 0===M?'':M,F=(0,S.first)(V),x=(0,S.last)(V),G=t[N];if(!G.length||x===(0,S.last)(G))return t;var q=G.indexOf(F);return(0,u.default)({},t,(0,c.default)({},N,(0,L.moveTo)(G,q,q+1,V.length)));case'REPLACE_BLOCKS':var H=n.blocks,Q=n.clientIds;if(!H)return t;var W=P(H);return(0,S.flow)([function(t){return(0,S.omit)(t,Q)},function(t){return(0,u.default)({},t,(0,S.omit)(W,''))},function(t){return(0,S.mapValues)(t,function(t){return(0,S.reduce)(t,function(t,n){return n===Q[0]?(0,s.default)(t).concat((0,s.default)(W[''])):(-1===Q.indexOf(n)&&t.push(n),t)},[])})}])(t);case'REMOVE_BLOCKS':return(0,S.flow)([function(t){return(0,S.omit)(t,n.clientIds)},function(t){return(0,S.mapValues)(t,function(t){return S.without.apply(void 0,[t].concat((0,s.default)(n.clientIds)))})}])(t)}return t}})});function D(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:O.INITIAL_EDITS_DEFAULTS,n=arguments.length>1?arguments[1]:void 0;switch(n.type){case'SETUP_EDITOR':if(!n.edits)break;return n.edits;case'SETUP_EDITOR_STATE':return'content'in t?(0,S.omit)(t,'content'):t;case'UPDATE_POST':return(0,S.reduce)(n.edits,function(n,u,l){return n.hasOwnProperty(l)?(delete(n=A(t,n))[l],n):n},t);case'RESET_POST':return O.INITIAL_EDITS_DEFAULTS}return t}function K(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;switch(n.type){case'SETUP_EDITOR_STATE':case'RESET_POST':case'UPDATE_POST':var l;if(n.post)l=n.post;else{if(!n.edits)return t;l=(0,u.default)({},t,n.edits)}return(0,S.mapValues)(l,C)}return t}function w(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];switch((arguments.length>1?arguments[1]:void 0).type){case'START_TYPING':return!0;case'STOP_TYPING':return!1}return t}function V(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];switch((arguments.length>1?arguments[1]:void 0).type){case'ENTER_FORMATTED_TEXT':return!0;case'EXIT_FORMATTED_TEXT':return!1}return t}function M(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{start:null,end:null,isMultiSelecting:!1,isEnabled:!0,initialPosition:null},n=arguments.length>1?arguments[1]:void 0;switch(n.type){case'CLEAR_SELECTED_BLOCK':return null!==t.start||null!==t.end||t.isMultiSelecting?(0,u.default)({},t,{start:null,end:null,isMultiSelecting:!1,initialPosition:null}):t;case'START_MULTI_SELECT':return t.isMultiSelecting?t:(0,u.default)({},t,{isMultiSelecting:!0,initialPosition:null});case'STOP_MULTI_SELECT':return t.isMultiSelecting?(0,u.default)({},t,{isMultiSelecting:!1,initialPosition:null}):t;case'MULTI_SELECT':return(0,u.default)({},t,{start:n.start,end:n.end,initialPosition:null});case'SELECT_BLOCK':return n.clientId===t.start&&n.clientId===t.end?t:(0,u.default)({},t,{start:n.clientId,end:n.clientId,initialPosition:n.initialPosition});case'INSERT_BLOCKS':return n.updateSelection?(0,u.default)({},t,{start:n.blocks[0].clientId,end:n.blocks[0].clientId,initialPosition:null,isMultiSelecting:!1}):t;case'REMOVE_BLOCKS':return n.clientIds&&n.clientIds.length&&-1!==n.clientIds.indexOf(t.start)?(0,u.default)({},t,{start:null,end:null,initialPosition:null,isMultiSelecting:!1}):t;case'REPLACE_BLOCKS':if(-1===n.clientIds.indexOf(t.start))return t;var l=(0,S.get)(n.blocks,[0,'clientId'],null);return l===t.start&&l===t.end?t:(0,u.default)({},t,{start:l,end:l,initialPosition:null,isMultiSelecting:!1});case'TOGGLE_SELECTION':return(0,u.default)({},t,{isEnabled:n.isSelectionEnabled})}return t}function N(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;if('TOGGLE_BLOCK_MODE'===n.type){var l=n.clientId;return(0,u.default)({},t,(0,c.default)({},l,t[l]&&'html'===t[l]?'visual':'html'))}return t}function F(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n=arguments.length>1?arguments[1]:void 0;switch(n.type){case'SHOW_INSERTION_POINT':return{rootClientId:n.rootClientId,index:n.index};case'HIDE_INSERTION_POINT':return null}return t}function x(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{isValid:!0},n=arguments.length>1?arguments[1]:void 0;switch(n.type){case'SET_TEMPLATE_VALIDITY':return(0,u.default)({},t,{isValid:n.isValid})}return t}function G(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:O.EDITOR_SETTINGS_DEFAULTS,n=arguments.length>1?arguments[1]:void 0;switch(n.type){case'UPDATE_EDITOR_SETTINGS':return(0,u.default)({},t,n.settings)}return t}function q(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:O.PREFERENCES_DEFAULTS,n=arguments.length>1?arguments[1]:void 0;switch(n.type){case'INSERT_BLOCKS':case'REPLACE_BLOCKS':return n.blocks.reduce(function(t,l){var s=l.name,o={name:l.name};return(0,f.isReusableBlock)(l)&&(o.ref=l.attributes.ref,s+='/'+l.attributes.ref),(0,u.default)({},t,{insertUsage:(0,u.default)({},t.insertUsage,(0,c.default)({},s,{time:n.time,count:t.insertUsage[s]?t.insertUsage[s].count+1:1,insert:o}))})},t);case'REMOVE_REUSABLE_BLOCK':return(0,u.default)({},t,{insertUsage:(0,S.omitBy)(t.insertUsage,function(t){return t.insert.ref===n.id})});case'ENABLE_PUBLISH_SIDEBAR':return(0,u.default)({},t,{isPublishSidebarEnabled:!0});case'DISABLE_PUBLISH_SIDEBAR':return(0,u.default)({},t,{isPublishSidebarEnabled:!1})}return t}function H(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;switch(n.type){case'REQUEST_POST_UPDATE_START':return{requesting:!0,successful:!1,error:null,options:n.options||{}};case'REQUEST_POST_UPDATE_SUCCESS':return{requesting:!1,successful:!0,error:null,options:n.options||{}};case'REQUEST_POST_UPDATE_FAILURE':return{requesting:!1,successful:!1,error:n.error,options:n.options||{}}}return t}function Q(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{isLocked:!1},n=arguments.length>1?arguments[1]:void 0;switch(n.type){case'UPDATE_POST_LOCK':return n.lock}return t}function W(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;switch(n.type){case'LOCK_POST_SAVING':return(0,u.default)({},t,(0,c.default)({},n.lockName,!0));case'UNLOCK_POST_SAVING':return(0,S.omit)(t,n.lockName)}return t}e.editor=k;var X=(0,T.combineReducers)({data:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;switch(n.type){case'RECEIVE_REUSABLE_BLOCKS':return(0,S.reduce)(n.results,function(n,u){var l=u.reusableBlock,s=l.id,o=l.title,c={clientId:u.parsedBlock.clientId,title:o};return(0,S.isEqual)(n[s],c)||((n=A(t,n))[s]=c),n},t);case'UPDATE_REUSABLE_BLOCK_TITLE':var l=n.id,s=n.title;return t[l]&&t[l].title!==s?(0,u.default)({},t,(0,c.default)({},l,(0,u.default)({},t[l],{title:s}))):t;case'SAVE_REUSABLE_BLOCK_SUCCESS':var o=n.id,E=n.updatedId;if(o===E)return t;var f=t[o];return(0,u.default)({},(0,S.omit)(t,o),(0,c.default)({},E,f));case'REMOVE_REUSABLE_BLOCK':var T=n.id;return(0,S.omit)(t,T)}return t},isFetching:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;switch(n.type){case'FETCH_REUSABLE_BLOCKS':var l=n.id;return l?(0,u.default)({},t,(0,c.default)({},l,!0)):t;case'FETCH_REUSABLE_BLOCKS_SUCCESS':case'FETCH_REUSABLE_BLOCKS_FAILURE':var s=n.id;return(0,S.omit)(t,s)}return t},isSaving:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;switch(n.type){case'SAVE_REUSABLE_BLOCK':return(0,u.default)({},t,(0,c.default)({},n.id,!0));case'SAVE_REUSABLE_BLOCK_SUCCESS':case'SAVE_REUSABLE_BLOCK_FAILURE':var l=n.id;return(0,S.omit)(t,l)}return t}});e.reusableBlocks=X;var Y=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;switch(n.type){case'REPLACE_BLOCKS':case'REMOVE_BLOCKS':return(0,S.omit)(t,n.clientIds);case'UPDATE_BLOCK_LIST_SETTINGS':var l=n.clientId;return n.settings?(0,S.isEqual)(t[l],n.settings)?t:(0,u.default)({},t,(0,c.default)({},l,n.settings)):t.hasOwnProperty(l)?(0,S.omit)(t,l):t}return t};function j(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,u=arguments.length>1?arguments[1]:void 0;switch(u.type){case'RESET_AUTOSAVE':var l=u.post,s=['title','excerpt','content'].map(function(t){return C(l[t])}),o=(0,n.default)(s,3);return{title:o[0],excerpt:o[1],content:o[2]}}return t}function z(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n=arguments.length>1?arguments[1]:void 0;switch(n.type){case'REQUEST_POST_UPDATE_SUCCESS':return n.post.preview_link||(0,_.addQueryArgs)(n.post.link,{preview:!0});case'REQUEST_POST_UPDATE_START':if(t&&n.options.isPreview)return null}return t}e.blockListSettings=Y;var J=(0,E.default)((0,T.combineReducers)({editor:k,initialEdits:D,currentPost:K,isTyping:w,isCaretWithinFormattedText:V,blockSelection:M,blocksMode:N,blockListSettings:Y,insertionPoint:F,preferences:q,saving:H,postLock:Q,reusableBlocks:X,template:x,autosave:j,previewLink:z,settings:G,postSavingLock:W}));e.default=J},1053,[1,9,43,6,15,8,44,1054,332,807,809,1031,1056,1057,1058,1059,1060]); -__d(function(g,r,i,a,m,e,d){m.exports=r(d[0])},1054,[1055]); -__d(function(g,r,i,a,m,e,d){'use strict';var t=Object.assign||function(t){for(var o=1;o=0||Object.prototype.hasOwnProperty.call(t,s)&&(n[s]=t[s]);return n}var n='BEGIN',s='COMMIT',c='REVERT',p=[];function u(t,o){return t.optimist&&t.optimist.id===o}function f(t,o){if(!t||'object'!=typeof t||Array.isArray(t))throw new TypeError('Error while handling "'+o.type+'": Optimist requires that state is always a plain object.')}function h(t){if(t){var n=t.optimist;return{optimist:void 0===n?p:n,innerState:o(t,['optimist'])}}return{optimist:p,innerState:t}}m.exports=function(o){function p(n,s){var c=h(n),p=c.optimist,u=c.innerState;return p=p.concat([{beforeState:u,action:s}]),f(u=o(u,s),s),t({optimist:p},u)}function b(t,o){var n=h(t),s=n.optimist,c=n.innerState,p=[],f=!1,b=!1;return s.forEach(function(t){f?t.beforeState&&u(t.action,o.optimist.id)?(b=!0,p.push({action:t.action})):p.push(t):t.beforeState&&!u(t.action,o.optimist.id)?(f=!0,p.push(t)):t.beforeState&&u(t.action,o.optimist.id)&&(b=!0)}),b||console.error('Cannot commit transaction with id "'+o.optimist.id+'" because it does not exist'),S(s=p,c,o)}function v(t,n){var s=h(t),c=s.optimist,p=s.innerState,b=[],v=!1,l=!1,y=p;return c.forEach(function(t){t.beforeState&&u(t.action,n.optimist.id)&&(y=t.beforeState,l=!0),u(t.action,n.optimist.id)||(t.beforeState&&(v=!0),v&&(l&&t.beforeState?b.push({beforeState:y,action:t.action}):b.push(t)),l&&(y=o(y,t.action),f(p,n)))}),l||console.error('Cannot revert transaction with id "'+n.optimist.id+'" because it does not exist'),S(c=b,y,n)}function S(n,s,c){return n.length&&(n=n.concat([{action:c}])),f(s=o(s,c),c),t({optimist:n},s)}return function(u,l){if(l.optimist)switch(l.optimist.type){case n:return p(u,l);case s:return b(u,l);case c:return v(u,l)}var y=h(u),E=y.optimist,w=y.innerState;if(u&&!E.length){var O=o(w,l);return O===w?u:(f(O,l),t({optimist:E},O))}return S(E,w,l)}},m.exports.BEGIN=n,m.exports.COMMIT=s,m.exports.REVERT=c},1055,[]); -__d(function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=t(r(d[1])),u=t(r(d[2])),l=r(d[3]),o={resetTypes:[],ignoreTypes:[],shouldOverwriteState:function(){return!1}},s=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return function(s){(t=(0,u.default)({},o,t)).shouldOverwriteState=(0,l.overSome)([t.shouldOverwriteState,function(n){return(0,l.includes)(t.ignoreTypes,n.type)}]);var c={past:[],present:s(void 0,{}),future:[],lastAction:null,shouldCreateUndoLevel:!1},v=t,f=v.resetTypes,p=void 0===f?[]:f,h=v.shouldOverwriteState,L=void 0===h?function(){return!1}:h;return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:c,o=arguments.length>1?arguments[1]:void 0,v=t.past,f=t.present,h=t.future,U=t.lastAction,y=t.shouldCreateUndoLevel,A=U;switch(o.type){case'UNDO':return v.length?{past:(0,l.dropRight)(v),present:(0,l.last)(v),future:[f].concat((0,n.default)(h)),lastAction:null,shouldCreateUndoLevel:!1}:t;case'REDO':return h.length?{past:(0,n.default)(v).concat([f]),present:(0,l.first)(h),future:(0,l.drop)(h),lastAction:null,shouldCreateUndoLevel:!1}:t;case'CREATE_UNDO_LEVEL':return(0,u.default)({},t,{lastAction:null,shouldCreateUndoLevel:!0})}var C=s(f,o);if((0,l.includes)(p,o.type))return{past:[],present:C,future:[],lastAction:null,shouldCreateUndoLevel:!1};if(f===C)return t;var O=v,_=A;return!y&&v.length&&L(o,A)||(O=(0,n.default)(v).concat([f]),_=o),{past:O,present:C,future:[],shouldCreateUndoLevel:!1,lastAction:_}}}};e.default=s},1056,[1,15,43,332]); -__d(function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=t(r(d[1])),u=r(d[2]),o=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return function(o){return function(v,f){var l=o(v,f),s=void 0===v||(0,u.includes)(t.resetTypes,f.type),c=v!==l;if(!c&&!s)return v;c&&void 0!==v||(l=(0,n.default)({},l));var y=(0,u.includes)(t.ignoreTypes,f.type);return l.isDirty=y?v.isDirty:!s&&c,l}}};e.default=o},1057,[1,43,332]); -__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.INITIAL_EDITS_DEFAULTS=e.EDITOR_SETTINGS_DEFAULTS=e.PREFERENCES_DEFAULTS=void 0;var l=r(d[0]);e.PREFERENCES_DEFAULTS={insertUsage:{},isPublishSidebarEnabled:!0};var n={alignWide:!1,colors:[{name:(0,l.__)('Pale pink'),slug:'pale-pink',color:'#f78da7'},{name:(0,l.__)('Vivid red'),slug:'vivid-red',color:'#cf2e2e'},{name:(0,l.__)('Luminous vivid orange'),slug:'luminous-vivid-orange',color:'#ff6900'},{name:(0,l.__)('Luminous vivid amber'),slug:'luminous-vivid-amber',color:'#fcb900'},{name:(0,l.__)('Light green cyan'),slug:'light-green-cyan',color:'#7bdcb5'},{name:(0,l.__)('Vivid green cyan'),slug:'vivid-green-cyan',color:'#00d084'},{name:(0,l.__)('Pale cyan blue'),slug:'pale-cyan-blue',color:'#8ed1fc'},{name:(0,l.__)('Vivid cyan blue'),slug:'vivid-cyan-blue',color:'#0693e3'},{name:(0,l.__)('Very light gray'),slug:'very-light-gray',color:'#eeeeee'},{name:(0,l.__)('Cyan bluish gray'),slug:'cyan-bluish-gray',color:'#abb8c3'},{name:(0,l.__)('Very dark gray'),slug:'very-dark-gray',color:'#313131'}],fontSizes:[{name:(0,l._x)('Small','font size name'),size:13,slug:'small'},{name:(0,l._x)('Normal','font size name'),size:16,slug:'normal'},{name:(0,l._x)('Medium','font size name'),size:20,slug:'medium'},{name:(0,l._x)('Large','font size name'),size:36,slug:'large'},{name:(0,l._x)('Huge','font size name'),size:48,slug:'huge'}],imageSizes:[{slug:'thumbnail',label:(0,l.__)('Thumbnail')},{slug:'medium',label:(0,l.__)('Medium')},{slug:'large',label:(0,l.__)('Large')},{slug:'full',label:(0,l.__)('Full Size')}],maxWidth:580,allowedBlockTypes:!0,maxUploadFileSize:0,allowedMimeTypes:null,richEditingEnabled:!0};e.EDITOR_SETTINGS_DEFAULTS=n;e.INITIAL_EDITS_DEFAULTS={}},1058,[877]); -__d(function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.insertAt=l,e.moveTo=function(t,c,u){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1,f=(0,n.default)(t);return f.splice(c,o),l(f,t.slice(c,c+o),u)};var n=t(r(d[1])),c=r(d[2]);function l(t,l,u){return(0,n.default)(t.slice(0,u)).concat((0,n.default)((0,c.castArray)(l)),(0,n.default)(t.slice(u)))}},1059,[1,15,332]); -__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.EDIT_MERGE_PROPERTIES=void 0;var E=new Set(['meta']);e.EDIT_MERGE_PROPERTIES=E},1060,[]); -__d(function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=t(r(d[1])),o=t(r(d[2])),u=t(r(d[3])),l=r(d[4]),c=t(r(d[5]));var f=function(t){var f,p=[(0,o.default)(c.default),u.default],h=function(){throw new Error("Dispatching while constructing your middleware is not allowed. Other middleware would not be applied to this dispatch.")},s={getState:t.getState,dispatch:function(){return h.apply(void 0,arguments)}};return f=p.map(function(t){return t(s)}),h=l.flowRight.apply(void 0,(0,n.default)(f))(t.dispatch),t.dispatch=h,t};e.default=f},1061,[1,15,1062,1063,332,1064]); -__d(function(g,r,i,a,m,e,d){'use strict';function n(t,f){var c;if(Array.isArray(f))for(c=0;c1&&void 0!==arguments[1]?arguments[1]:null,clientId:t}},e.startMultiSelect=function(){return{type:'START_MULTI_SELECT'}},e.stopMultiSelect=function(){return{type:'STOP_MULTI_SELECT'}},e.multiSelect=function(t,n){return{type:'MULTI_SELECT',start:t,end:n}},e.clearSelectedBlock=function(){return{type:'CLEAR_SELECTED_BLOCK'}},e.toggleSelection=function(){return{type:'TOGGLE_SELECTION',isSelectionEnabled:!(arguments.length>0&&void 0!==arguments[0])||arguments[0]}},e.replaceBlocks=c,e.replaceBlock=function(t,n){return c(t,n)},e.moveBlockToPosition=function(t,n,o,u){return{type:'MOVE_BLOCK_TO_POSITION',fromRootClientId:n,toRootClientId:o,clientId:t,index:u}},e.insertBlock=_,e.insertBlocks=s,e.showInsertionPoint=function(t,n){return{type:'SHOW_INSERTION_POINT',rootClientId:t,index:n}},e.hideInsertionPoint=function(){return{type:'HIDE_INSERTION_POINT'}},e.setTemplateValidity=function(t){return{type:'SET_TEMPLATE_VALIDITY',isValid:t}},e.synchronizeTemplate=function(){return{type:'SYNCHRONIZE_TEMPLATE'}},e.editPost=function(t){return{type:'EDIT_POST',edits:t}},e.savePost=p,e.refreshPost=function(){return{type:'REFRESH_POST'}},e.trashPost=function(t,n){return{type:'TRASH_POST',postId:t,postType:n}},e.mergeBlocks=function(t,n){return{type:'MERGE_BLOCKS',blocks:[t,n]}},e.autosave=function(t){return p((0,n.default)({isAutosave:!0},t))},e.redo=function(){return{type:'REDO'}},e.undo=function(){return{type:'UNDO'}},e.createUndoLevel=function(){return{type:'CREATE_UNDO_LEVEL'}},e.removeBlocks=S,e.removeBlock=function(t,n){return S([t],n)},e.toggleBlockMode=function(t){return{type:'TOGGLE_BLOCK_MODE',clientId:t}},e.startTyping=function(){return{type:'START_TYPING'}},e.stopTyping=function(){return{type:'STOP_TYPING'}},e.enterFormattedText=function(){return{type:'ENTER_FORMATTED_TEXT'}},e.exitFormattedText=function(){return{type:'EXIT_FORMATTED_TEXT'}},e.updatePostLock=function(t){return{type:'UPDATE_POST_LOCK',lock:t}},e.__experimentalFetchReusableBlocks=function(t){return{type:'FETCH_REUSABLE_BLOCKS',id:t}},e.__experimentalReceiveReusableBlocks=function(t){return{type:'RECEIVE_REUSABLE_BLOCKS',results:t}},e.__experimentalSaveReusableBlock=function(t){return{type:'SAVE_REUSABLE_BLOCK',id:t}},e.__experimentalDeleteReusableBlock=function(t){return{type:'DELETE_REUSABLE_BLOCK',id:t}},e.__experimentalUpdateReusableBlockTitle=function(t,n){return{type:'UPDATE_REUSABLE_BLOCK_TITLE',id:t,title:n}},e.__experimentalConvertBlockToStatic=function(t){return{type:'CONVERT_BLOCK_TO_STATIC',clientId:t}},e.__experimentalConvertBlockToReusable=function(t){return{type:'CONVERT_BLOCK_TO_REUSABLE',clientIds:(0,o.castArray)(t)}},e.insertDefaultBlock=function(t,n,o){return _((0,u.createBlock)((0,u.getDefaultBlockName)(),t),o,n)},e.updateBlockListSettings=function(t,n){return{type:'UPDATE_BLOCK_LIST_SETTINGS',clientId:t,settings:n}},e.updateEditorSettings=function(t){return{type:'UPDATE_EDITOR_SETTINGS',settings:t}},e.enablePublishSidebar=function(){return{type:'ENABLE_PUBLISH_SIDEBAR'}},e.disablePublishSidebar=function(){return{type:'DISABLE_PUBLISH_SIDEBAR'}},e.lockPostSaving=function(t){return{type:'LOCK_POST_SAVING',lockName:t}},e.unlockPostSaving=function(t){return{type:'UNLOCK_POST_SAVING',lockName:t}},e.moveBlocksUp=e.moveBlocksDown=void 0;var n=t(r(d[1])),o=r(d[2]),u=r(d[3]);function c(t,n){return{type:'REPLACE_BLOCKS',clientIds:(0,o.castArray)(t),blocks:(0,o.castArray)(n),time:Date.now()}}function l(t){return function(n,u){return{clientIds:(0,o.castArray)(n),type:t,rootClientId:u}}}var E=l('MOVE_BLOCKS_DOWN');e.moveBlocksDown=E;var T=l('MOVE_BLOCKS_UP');function _(t,n,o){return s([t],n,o,!(arguments.length>3&&void 0!==arguments[3])||arguments[3])}function s(t,n,u){var c=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];return{type:'INSERT_BLOCKS',blocks:(0,o.castArray)(t),index:n,rootClientId:u,time:Date.now(),updateSelection:c}}function p(){return{type:'REQUEST_POST_UPDATE',options:arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}}}function S(t){var n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return{type:'REMOVE_BLOCKS',clientIds:(0,o.castArray)(t),selectPrevious:n}}e.moveBlocksUp=T},1065,[1,43,332,807]); -__d(function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.hasEditorUndo=function(t){return t.editor.past.length>0},e.hasEditorRedo=function(t){return t.editor.future.length>0},e.isEditedPostNew=P,e.hasChangedContent=y,e.isEditedPostDirty=E,e.isCleanNewPost=function(t){return!E(t)&&P(t)},e.getCurrentPost=C,e.getCurrentPostType=function(t){return t.currentPost.type},e.getCurrentPostId=function(t){return C(t).id||null},e.getCurrentPostRevisionsCount=function(t){return(0,l.get)(C(t),['_links','version-history',0,'count'],0)},e.getCurrentPostLastRevisionId=function(t){return(0,l.get)(C(t),['_links','predecessor-version',0,'id'],null)},e.getCurrentPostAttribute=L,e.getEditedPostAttribute=R,e.getAutosaveAttribute=function(t,n){if(!w(t))return null;var o=O(t);if(o.hasOwnProperty(n))return o[n]},e.getEditedPostVisibility=function(t){var n=R(t,'status'),o=R(t,'password');if('private'===n)return'private';if(o)return'password';return'public'},e.isCurrentPostPending=function(t){return'pending'===C(t).status},e.isCurrentPostPublished=D,e.isCurrentPostScheduled=function(t){return'future'===C(t).status&&!D(t)},e.isEditedPostPublishable=function(t){var n=C(t);return E(t)||-1===['publish','private','future'].indexOf(n.status)},e.isEditedPostSaveable=N,e.isEditedPostEmpty=A,e.isEditedPostAutosaveable=function(t){if(!N(t))return!1;if(!w(t))return!0;if(y(t))return!0;var n=O(t);return['title','excerpt'].some(function(o){return n[o]!==R(t,o)})},e.getAutosave=O,e.hasAutosave=w,e.isEditedPostBeingScheduled=function(t){var n=R(t,'date'),o=new Date(Number((0,f.getDate)(n))-B);return(0,f.isInTheFuture)(o)},e.isEditedPostDateFloating=function(t){var n=R(t,'date'),o=R(t,'modified'),u=R(t,'status');if('draft'===u||'auto-draft'===u)return n===o;return!1},e.getBlockName=x,e.isBlockValid=function(t,n){var o=t.editor.present.blocks.byClientId[n];return!!o&&o.isValid},e.getBlockCount=function(t,n){return ie(t,n).length},e.getBlockSelectionStart=function(t){return t.blockSelection.start},e.getBlockSelectionEnd=function(t){return t.blockSelection.end},e.getSelectedBlockCount=function(t){var n=X(t).length;if(n)return n;return t.blockSelection.start?1:0},e.hasSelectedBlock=function(t){var n=t.blockSelection,o=n.start,u=n.end;return!!o&&o===u},e.getSelectedBlockClientId=z,e.getSelectedBlock=function(t){var n=z(t);return n?F(t,n):null},e.getAdjacentBlockClientId=K,e.getPreviousBlockClientId=function(t,n){return K(t,n,-1)},e.getNextBlockClientId=function(t,n){return K(t,n,1)},e.getSelectedBlocksInitialCaretPosition=function(t){var n=t.blockSelection,o=n.start,u=n.end;if(o!==u||!o)return null;return t.blockSelection.initialPosition},e.getFirstMultiSelectedBlockClientId=$,e.getLastMultiSelectedBlockClientId=ee,e.isFirstMultiSelectedBlock=function(t,n){return $(t)===n},e.isBlockMultiSelected=ne,e.getMultiSelectedBlocksStartClientId=function(t){var n=t.blockSelection,o=n.start,u=n.end;if(o===u)return null;return o||null},e.getMultiSelectedBlocksEndClientId=function(t){var n=t.blockSelection,o=n.start,u=n.end;if(o===u)return null;return u||null},e.getBlockOrder=ie,e.getBlockIndex=oe,e.isBlockSelected=ue,e.hasSelectedInnerBlock=function t(n,o){var u=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return(0,l.some)(ie(n,o),function(o){return ue(n,o)||ne(n,o)||u&&t(n,o,u)})},e.isBlockWithinSelection=function(t,n){if(!n)return!1;var o=X(t),u=o.indexOf(n);return u>-1&&u0},e.isPostLockTakeover=function(t){return t.postLock.isTakeover},e.getPostLockUser=function(t){return t.postLock.user},e.getActivePostLock=function(t){return t.postLock.activePostLock},e.canUserUseUnfilteredHTML=function(t){return(0,l.has)(C(t),['_links','wp:action-unfiltered-html'])},e.isPublishSidebarEnabled=function(t){if(t.preferences.hasOwnProperty('isPublishSidebarEnabled'))return t.preferences.isPublishSidebarEnabled;return v.PREFERENCES_DEFAULTS.isPublishSidebarEnabled},e.__experimentalGetReusableBlock=e.hasInserterItems=e.getInserterItems=e.canInsertBlockType=e.getEditedPostContent=e.isAncestorMultiSelected=e.getMultiSelectedBlocks=e.getMultiSelectedBlockClientIds=e.getBlockHierarchyRootClientId=e.getBlockRootClientId=e.getBlocksByClientId=e.getGlobalBlockCount=e.getClientIdsWithDescendants=e.getClientIdsOfDescendants=e.getBlocks=e.__unstableGetBlockWithoutInnerBlocks=e.getBlock=e.getBlockAttributes=e.getBlockDependantsCacheBust=e.getReferenceByDistinctEdits=e.getPostEdits=e.INSERTER_UTILITY_NONE=e.INSERTER_UTILITY_LOW=e.INSERTER_UTILITY_MEDIUM=e.INSERTER_UTILITY_HIGH=e.POST_UPDATE_TRANSACTION_ID=void 0;var n=t(r(d[1])),o=t(r(d[2])),u=t(r(d[3])),l=r(d[4]),s=t(r(d[5])),c=r(d[6]),f=r(d[7]),k=r(d[8]),p=r(d[9]),v=r(d[10]),b=r(d[11]),I='post-update';e.POST_UPDATE_TRANSACTION_ID=I;var S=/%(?:postname|pagename)%/;e.INSERTER_UTILITY_HIGH=3;e.INSERTER_UTILITY_MEDIUM=2;e.INSERTER_UTILITY_LOW=1;e.INSERTER_UTILITY_NONE=0;var B=6e4,h=[];function P(t){return'auto-draft'===C(t).status}function y(t){return t.editor.present.blocks.isDirty||'content'in t.editor.present.edits}function E(t){return!!y(t)||(Object.keys(t.editor.present.edits).length>0||Pe(t,E))}function C(t){return t.currentPost}var T=(0,s.default)(function(t){return(0,u.default)({},t.initialEdits,t.editor.present.edits)},function(t){return[t.editor.present.edits,t.initialEdits]});e.getPostEdits=T;var _=(0,s.default)(function(){return[]},function(t){return[t.editor]});function L(t,n){var o=C(t);if(o.hasOwnProperty(n))return o[n]}function R(t,n){var o=T(t);switch(n){case'content':return ae(t)}return o.hasOwnProperty(n)?b.EDIT_MERGE_PROPERTIES.has(n)?(0,u.default)({},L(t,n),o[n]):o[n]:L(t,n)}function D(t){var n=C(t);return-1!==['publish','private'].indexOf(n.status)||'future'===n.status&&!(0,f.isInTheFuture)(new Date(Number((0,f.getDate)(n.date))-B))}function N(t){return!se(t)&&(!!R(t,'title')||!!R(t,'excerpt')||!A(t))}function A(t){var n=ce(t);if(n.length&&!('content'in T(t))){if(n.length>1)return!1;if(n[0].name!==(0,c.getFreeformContentHandlerName)())return!1}return!ae(t)}function O(t){return t.autosave}function w(t){return!!O(t)}e.getReferenceByDistinctEdits=_;var M=(0,s.default)(function(){return[]},function(t,n){return(0,l.map)(ie(t,n),function(n){return F(t,n)})});function x(t,n){var o=t.editor.present.blocks.byClientId[n];return o?o.name:null}e.getBlockDependantsCacheBust=M;var U=(0,s.default)(function(t,n){var o=t.editor.present.blocks.byClientId[n];if(!o)return null;var s=o.attributes,f=(0,c.getBlockType)(o.name);return f&&(s=(0,l.reduce)(f.attributes,function(n,o,l){return'meta'===o.source&&(n===s&&(n=(0,u.default)({},n)),n[l]=G(t,o.meta)),n},s)),s},function(t,n){return[t.editor.present.blocks.byClientId[n],t.editor.present.edits.meta,t.initialEdits.meta,t.currentPost.meta]});e.getBlockAttributes=U;var F=(0,s.default)(function(t,n){var o=t.editor.present.blocks.byClientId[n];return o?(0,u.default)({},o,{attributes:U(t,n),innerBlocks:H(t,n)}):null},function(t,n){return[t.editor.present.blocks.byClientId[n],M(t,n)].concat((0,o.default)(U.getDependants(t,n)))});e.getBlock=F;var W=(0,s.default)(function(t,n){var o=t.editor.present.blocks.byClientId[n];return o?(0,u.default)({},o,{attributes:U(t,n)}):null},function(t,n){return[t.editor.present.blocks.byClientId[n]].concat((0,o.default)(U.getDependants(t,n)))});function G(t,n){return(0,l.has)(t,['editor','present','edits','meta',n])?(0,l.get)(t,['editor','present','edits','meta',n]):(0,l.get)(t,['currentPost','meta',n])}e.__unstableGetBlockWithoutInnerBlocks=W;var H=(0,s.default)(function(t,n){return(0,l.map)(ie(t,n),function(n){return F(t,n)})},function(t){return[t.editor.present.blocks]});e.getBlocks=H;var Y=function t(n,u){return(0,l.flatMap)(u,function(u){var l=ie(n,u);return(0,o.default)(l).concat((0,o.default)(t(n,l)))})};e.getClientIdsOfDescendants=Y;var q=(0,s.default)(function(t){var n=ie(t);return(0,o.default)(n).concat((0,o.default)(Y(t,n)))},function(t){return[t.editor.present.blocks.order]});e.getClientIdsWithDescendants=q;var V=(0,s.default)(function(t,n){var o=q(t);return n?(0,l.reduce)(o,function(o,u){return t.editor.present.blocks.byClientId[u].name===n?o+1:o},0):o.length},function(t){return[t.editor.present.blocks.order,t.editor.present.blocks.byClientId]});e.getGlobalBlockCount=V;var j=(0,s.default)(function(t,n){return(0,l.map)((0,l.castArray)(n),function(n){return F(t,n)})},function(t){return[t.editor.present.edits.meta,t.initialEdits.meta,t.currentPost.meta,t.editor.present.blocks]});function z(t){var n=t.blockSelection,o=n.start,u=n.end;return o&&o===u&&t.editor.present.blocks.byClientId[o]?o:null}e.getBlocksByClientId=j;var Q=(0,s.default)(function(t,n){var o=t.editor.present.blocks.order;for(var u in o)if((0,l.includes)(o[u],n))return u;return null},function(t){return[t.editor.present.blocks.order]});e.getBlockRootClientId=Q;var J=(0,s.default)(function(t,n){for(var o=n,u=n;o;)o=Q(t,u=o);return u},function(t){return[t.editor.present.blocks.order]});function K(t,n){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;if(void 0===n&&(n=z(t)),void 0===n&&(n=o<0?$(t):ee(t)),!n)return null;var u=Q(t,n);if(null===u)return null;var l=t.editor.present.blocks.order[u],s=l.indexOf(n)+1*o;return s<0?null:s===l.length?null:l[s]}e.getBlockHierarchyRootClientId=J;var X=(0,s.default)(function(t){var n=t.blockSelection,o=n.start,u=n.end;if(o===u)return[];var l=Q(t,o);if(null===l)return[];var s=ie(t,l),c=s.indexOf(o),f=s.indexOf(u);return c>f?s.slice(f,c+1):s.slice(c,f+1)},function(t){return[t.editor.present.blocks.order,t.blockSelection.start,t.blockSelection.end]});e.getMultiSelectedBlockClientIds=X;var Z=(0,s.default)(function(t){var n=X(t);return n.length?n.map(function(n){return F(t,n)}):h},function(t){return[t.editor.present.blocks.order,t.blockSelection.start,t.blockSelection.end,t.editor.present.blocks.byClientId,t.editor.present.edits.meta,t.initialEdits.meta,t.currentPost.meta]});function $(t){return(0,l.first)(X(t))||null}function ee(t){return(0,l.last)(X(t))||null}e.getMultiSelectedBlocks=Z;var te=(0,s.default)(function(t,n,o){for(var u=o;n!==u&&u;)u=Q(t,u);return n===u},function(t){return[t.editor.present.blocks]});function ne(t,n){return-1!==X(t).indexOf(n)}var re=(0,s.default)(function(t,n){for(var o=n,u=!1;o&&!u;)u=ne(t,o=Q(t,o));return u},function(t){return[t.editor.present.blocks.order,t.blockSelection.start,t.blockSelection.end]});function ie(t,n){return t.editor.present.blocks.order[n||'']||h}function oe(t,n,o){return ie(t,o).indexOf(n)}function ue(t,n){var o=t.blockSelection,u=o.start;return u===o.end&&u===n}function le(t,n){if(!n)return t.settings.templateLock;var o=ye(t,n);return o?o.templateLock:null}function se(t){return t.saving.requesting}function ce(t){var n=H(t);return 1===n.length&&(0,c.isUnmodifiedDefaultBlock)(n[0])?[]:n}e.isAncestorMultiSelected=re;var ae=(0,s.default)(function(t){var n=T(t);if('content'in n)return n.content;var o=ce(t),u=(0,c.serialize)(o);return 1===o.length&&o[0].name===(0,c.getFreeformContentHandlerName)()?(0,k.removep)(u):u},function(t){return[t.editor.present.blocks,t.editor.present.edits.content,t.initialEdits.content]});e.getEditedPostContent=ae;var de=function(t,n){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,u=function(t,n){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return(0,l.isBoolean)(t)?t:(0,l.isArray)(t)?(0,l.includes)(t,n):o},s=(0,c.getBlockType)(n);if(!s)return!1;if(!u(Ee(t).allowedBlockTypes,n,!0))return!1;if(!!le(t,o))return!1;var f=ye(t,o),k=u((0,l.get)(f,['allowedBlocks']),n),p=u(s.parent,x(t,o));return null!==k&&null!==p?k||p:null!==k?k:null===p||p},fe=(0,s.default)(de,function(t,n,o){return[t.blockListSettings[o],t.editor.present.blocks.byClientId[o],t.settings.allowedBlockTypes,t.settings.templateLock]});function ke(t,n){return t.preferences.insertUsage[n]||null}e.canInsertBlockType=fe;var ge=function(t,n,o){return!!(0,c.hasBlockSupport)(n,'inserter',!0)&&de(t,n.name,o)},pe=function(t,n,o){if(!de(t,'core/block',o))return!1;var u=x(t,n.clientId);return!!u&&(!!(0,c.getBlockType)(u)&&(!!de(t,u,o)&&!te(t,n.clientId,o)))},ve=(0,s.default)(function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,u=function(t,n,o){return o?3:n>0?2:'common'===t?1:0},s=function(t,n){if(!t)return n;var o=Date.now()-t;switch(!0){case o<36e5:return 4*n;case o<864e5:return 2*n;case o<6048e5:return n/2;default:return n/4}},f=(0,c.getBlockTypes)().filter(function(o){return ge(t,o,n)}).map(function(n){var o=n.name,f=!1;(0,c.hasBlockSupport)(n.name,'multiple',!0)||(f=(0,l.some)(j(t,q(t)),{name:n.name}));var k=(0,l.isArray)(n.parent),p=ke(t,o)||{},v=p.time,b=p.count,I=void 0===b?0:b;return{id:o,name:n.name,initialAttributes:{},title:n.title,icon:n.icon,category:n.category,keywords:n.keywords,isDisabled:f,utility:u(n.category,I,k),frecency:s(v,I),hasChildBlocksWithInserterSupport:(0,c.hasChildBlocksWithInserterSupport)(n.name)}}),k=Ie(t).filter(function(o){return pe(t,o,n)}).map(function(n){var o="core/block/"+n.id,l=x(t,n.clientId),f=(0,c.getBlockType)(l),k=ke(t,o)||{},p=k.time,v=k.count,b=void 0===v?0:v,I=u('reusable',b,!1),S=s(p,b);return{id:o,name:'core/block',initialAttributes:{ref:n.id},title:n.title,icon:f.icon,category:'reusable',keywords:[],isDisabled:!1,utility:I,frecency:S}});return(0,l.orderBy)((0,o.default)(f).concat((0,o.default)(k)),['utility','frecency'],['desc','desc'])},function(t,n){return[t.blockListSettings[n],t.editor.present.blocks,t.preferences.insertUsage,t.settings.allowedBlockTypes,t.settings.templateLock,t.reusableBlocks.data,(0,c.getBlockTypes)()]});e.getInserterItems=ve;var be=(0,s.default)(function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return!!(0,l.some)((0,c.getBlockTypes)(),function(o){return ge(t,o,n)})||(0,l.some)(Ie(t),function(o){return pe(t,o,n)})},function(t,n){return[t.blockListSettings[n],t.editor.present.blocks,t.settings.allowedBlockTypes,t.settings.templateLock,t.reusableBlocks.data,(0,c.getBlockTypes)()]});e.hasInserterItems=be;var me=(0,s.default)(function(t,n){var o=t.reusableBlocks.data[n];if(!o)return null;var l=isNaN(parseInt(n));return(0,u.default)({},o,{id:l?n:+n,isTemporary:l})},function(t,n){return[t.reusableBlocks.data[n]]});function Ie(t){return(0,l.map)(t.reusableBlocks.data,function(n,o){return me(t,o)})}function Se(t,n){var o=(0,l.find)(t.optimist,function(t){return t.beforeState&&(0,l.get)(t.action,['optimist','id'])===n});return o?o.beforeState:null}function Be(t){var n=R(t,'permalink_template');return S.test(n)}function he(t){var o=R(t,'permalink_template');if(!o)return null;var u=R(t,'slug')||R(t,'generated_slug'),l=o.split(S),s=(0,n.default)(l,2);return{prefix:s[0],postName:u,suffix:s[1]}}function Pe(t,n){var o=t.optimist;return!!o&&o.some(function(t){var o=t.beforeState;return o&&n(o)})}function ye(t,n){return t.blockListSettings[n]}function Ee(t){return t.settings}e.__experimentalGetReusableBlock=me},1066,[1,9,15,43,332,886,807,1067,909,1031,1058,1060]); -__d(function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.setSettings=function(t){o=t;var u=n.default.locale();n.default.updateLocale(t.l10n.locale,{parentLocale:u,months:t.l10n.months,monthsShort:t.l10n.monthsShort,weekdays:t.l10n.weekdays,weekdaysShort:t.l10n.weekdaysShort,meridiem:function(n,u,o){return n<12?o?t.l10n.meridiem.am:t.l10n.meridiem.AM:o?t.l10n.meridiem.pm:t.l10n.meridiem.PM},longDateFormat:{LT:t.formats.time,LTS:null,L:null,LL:t.formats.date,LLL:t.formats.datetime,LLLL:null},relativeTime:{future:t.l10n.relative.future,past:t.l10n.relative.past,s:'seconds',m:'a minute',mm:'%d minutes',h:'an hour',hh:'%d hours',d:'a day',dd:'%d days',M:'a month',MM:'%d months',y:'a year',yy:'%d years'}}),n.default.locale(u),s()},e.__experimentalGetSettings=function(){return o},e.format=c,e.date=function(t){var u=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Date,s=o.timezone.offset*f,l=(0,n.default)(u).utcOffset(s,!0);return c(t,l)},e.gmdate=function(t){var u=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Date,o=(0,n.default)(u).utc();return c(t,o)},e.dateI18n=function(t){var u=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Date,s=arguments.length>2&&void 0!==arguments[2]&&arguments[2]?0:o.timezone.offset*f,l=(0,n.default)(u).utcOffset(s,!0);return l.locale(o.l10n.locale),c(t,l)},e.isInTheFuture=function(t){var o=n.default.tz(u);return n.default.tz(t,u).isAfter(o)},e.getDate=function(t){if(!t)return n.default.tz(u).toDate();return n.default.tz(t,u).toDate()};var n=t(r(d[1]));r(d[2]),r(d[3]);var u='WP',o={l10n:{locale:'en_US',months:['January','February','March','April','May','June','July','August','September','October','November','December'],monthsShort:['Jan','Feb','Mar','Apr','May','Jun','Jul','Aug','Sep','Oct','Nov','Dec'],weekdays:['Sunday','Monday','Tuesday','Wednesday','Thursday','Friday','Saturday'],weekdaysShort:['Sun','Mon','Tue','Wed','Thu','Fri','Sat'],meridiem:{am:'am',pm:'pm',AM:'AM',PM:'PM'},relative:{future:' % s from now',past:'% s ago'}},formats:{time:'g: i a',date:'F j, Y',datetime:'F j, Y g: i a',datetimeAbbreviated:'M j, Y g: i a'},timezone:{offset:'0',string:''}};function s(){n.default.tz.add(n.default.tz.pack({name:u,abbrs:[u],untils:[null],offsets:[60*-o.timezone.offset||0]}))}var f=60,l={d:'DD',D:'ddd',j:'D',l:'dddd',N:'E',S:function(t){var n=t.format('D');return t.format('Do').replace(n,'')},w:'d',z:function(t){return''+parseInt(t.format('DDD'),10)-1},W:'W',F:'MMMM',m:'MM',M:'MMM',n:'M',t:function(t){return t.daysInMonth()},L:function(t){return t.isLeapYear()?'1':'0'},o:'GGGG',Y:'YYYY',y:'YY',a:'a',A:'A',B:function(t){var u=(0,n.default)(t).utcOffset(60),o=parseInt(u.format('s'),10),s=parseInt(u.format('m'),10),f=parseInt(u.format('H'),10);return parseInt((o+60*s+3600*f)/86.4,10)},g:'h',G:'H',h:'hh',H:'HH',i:'mm',s:'ss',u:'SSSSSS',v:'SSS',e:'zz',I:function(t){return t.isDST()?'1':'0'},O:'ZZ',P:'Z',T:'z',Z:function(t){var n=t.format('Z'),u='-'===n[0]?-1:1,o=n.substring(1).split(':');return u*(o[0]*f+o[1])*60},c:'YYYY-MM-DDTHH:mm:ssZ',r:'ddd, D MMM YYYY HH:mm:ss ZZ',U:'X'};function c(t){var u,o,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Date,f=[],c=(0,n.default)(s);for(u=0;u>>0,o=0;o0)for(s=0;s=0?s?'+':'':'-')+Math.pow(10,Math.max(0,u)).toString().substr(1)+o}var $=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|YYYYYY|YYYYY|YYYY|YY|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,J=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,q={},B={};function Q(t,n,s,o){var u=o;'string'==typeof o&&(u=function(){return this[o]()}),t&&(B[t]=u),n&&(B[n[0]]=function(){return z(u.apply(this,arguments),n[1],n[2])}),s&&(B[s]=function(){return this.localeData().ordinal(u.apply(this,arguments),t)})}function X(t){var n,s,o,u=t.match($);for(n=0,s=u.length;n=0&&J.test(t);)t=t.replace(J,o),J.lastIndex=0,s-=1;return t}var te=/\d/,ne=/\d\d/,se=/\d{3}/,ie=/\d{4}/,re=/[+-]?\d{6}/,ae=/\d\d?/,oe=/\d\d\d\d?/,ue=/\d\d\d\d\d\d?/,le=/\d{1,3}/,de=/\d{1,4}/,he=/[+-]?\d{1,6}/,ce=/\d+/,fe=/[+-]?\d+/,me=/Z|[+-]\d\d:?\d\d/gi,_e=/Z|[+-]\d\d(?::?\d\d)?/gi,ye=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,ge={};function ve(t,n,s){ge[t]=L(n)?n:function(t,o){return t&&s?s:n}}function pe(t,n){return y(ge,t)?ge[t](n._strict,n._locale):new RegExp(we(t.replace('\\','').replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(t,n,s,o,u){return n||s||o||u})))}function we(t){return t.replace(/[-\/\\^$*+?.()|[\]{}]/g,'\\$&')}var Me={};function Se(t,n){var s,o=n;for('string'==typeof t&&(t=[t]),c(n)&&(o=function(t,s){s[n]=b(t)}),s=0;s68?1900:2e3)};var Le,Ue=Ne('FullYear',!0);function Ne(t,n){return function(o){return null!=o?(Ve(this,t,o),s.updateOffset(this,n),this):Ge(this,t)}}function Ge(t,n){return t.isValid()?t._d['get'+(t._isUTC?'UTC':'')+n]():NaN}function Ve(t,n,s){t.isValid()&&!isNaN(s)&&('FullYear'===n&&Fe(t.year())&&1===t.month()&&29===t.date()?t._d['set'+(t._isUTC?'UTC':'')+n](s,t.month(),Ee(s,t.month())):t._d['set'+(t._isUTC?'UTC':'')+n](s))}function Ee(t,n){if(isNaN(t)||isNaN(n))return NaN;var s,o=(n%(s=12)+s)%s;return t+=(n-o)/12,1===o?Fe(t)?29:28:31-o%7%2}Le=Array.prototype.indexOf?Array.prototype.indexOf:function(t){var n;for(n=0;n=0&&isFinite(c.getFullYear())&&c.setFullYear(t),c}function Xe(t){var n=new Date(Date.UTC.apply(null,arguments));return t<100&&t>=0&&isFinite(n.getUTCFullYear())&&n.setUTCFullYear(t),n}function Ke(t,n,s){var o=7+n-s;return-((7+Xe(t,0,o).getUTCDay()-n)%7)+o-1}function et(t,n,s,o,u){var l,h,c=1+7*(n-1)+(7+s-o)%7+Ke(t,o,u);return c<=0?h=Ce(l=t-1)+c:c>Ce(t)?(l=t+1,h=c-Ce(t)):(l=t,h=c),{year:l,dayOfYear:h}}function tt(t,n,s){var o,u,l=Ke(t.year(),n,s),h=Math.floor((t.dayOfYear()-l-1)/7)+1;return h<1?o=h+nt(u=t.year()-1,n,s):h>nt(t.year(),n,s)?(o=h-nt(t.year(),n,s),u=t.year()+1):(u=t.year(),o=h),{week:o,year:u}}function nt(t,n,s){var o=Ke(t,n,s),u=Ke(t+1,n,s);return(Ce(t)-o+u)/7}Q('w',['ww',2],'wo','week'),Q('W',['WW',2],'Wo','isoWeek'),V('week','w'),V('isoWeek','W'),j('week',5),j('isoWeek',5),ve('w',ae),ve('ww',ae,ne),ve('W',ae),ve('WW',ae,ne),De(['w','ww','W','WW'],function(t,n,s,o){n[o.substr(0,1)]=b(t)});function st(t,n){return'string'!=typeof t?t:isNaN(t)?'number'==typeof(t=n.weekdaysParse(t))?t:null:parseInt(t,10)}function it(t,n){return'string'==typeof t?n.weekdaysParse(t)%7||7:isNaN(t)?null:t}Q('d',0,'do','day'),Q('dd',0,0,function(t){return this.localeData().weekdaysMin(this,t)}),Q('ddd',0,0,function(t){return this.localeData().weekdaysShort(this,t)}),Q('dddd',0,0,function(t){return this.localeData().weekdays(this,t)}),Q('e',0,0,'weekday'),Q('E',0,0,'isoWeekday'),V('day','d'),V('weekday','e'),V('isoWeekday','E'),j('day',11),j('weekday',11),j('isoWeekday',11),ve('d',ae),ve('e',ae),ve('E',ae),ve('dd',function(t,n){return n.weekdaysMinRegex(t)}),ve('ddd',function(t,n){return n.weekdaysShortRegex(t)}),ve('dddd',function(t,n){return n.weekdaysRegex(t)}),De(['dd','ddd','dddd'],function(t,n,s,o){var u=s._locale.weekdaysParse(t,o,s._strict);null!=u?n.d=u:w(s).invalidWeekday=t}),De(['d','e','E'],function(t,n,s,o){n[o]=b(t)});var rt='Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split('_');var at='Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_');var ot='Su_Mo_Tu_We_Th_Fr_Sa'.split('_');function ut(t,n,s){var o,u,l,h=t.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],o=0;o<7;++o)l=p([2e3,1]).day(o),this._minWeekdaysParse[o]=this.weekdaysMin(l,'').toLocaleLowerCase(),this._shortWeekdaysParse[o]=this.weekdaysShort(l,'').toLocaleLowerCase(),this._weekdaysParse[o]=this.weekdays(l,'').toLocaleLowerCase();return s?'dddd'===n?-1!==(u=Le.call(this._weekdaysParse,h))?u:null:'ddd'===n?-1!==(u=Le.call(this._shortWeekdaysParse,h))?u:null:-1!==(u=Le.call(this._minWeekdaysParse,h))?u:null:'dddd'===n?-1!==(u=Le.call(this._weekdaysParse,h))?u:-1!==(u=Le.call(this._shortWeekdaysParse,h))?u:-1!==(u=Le.call(this._minWeekdaysParse,h))?u:null:'ddd'===n?-1!==(u=Le.call(this._shortWeekdaysParse,h))?u:-1!==(u=Le.call(this._weekdaysParse,h))?u:-1!==(u=Le.call(this._minWeekdaysParse,h))?u:null:-1!==(u=Le.call(this._minWeekdaysParse,h))?u:-1!==(u=Le.call(this._weekdaysParse,h))?u:-1!==(u=Le.call(this._shortWeekdaysParse,h))?u:null}var lt=ye;var dt=ye;var ht=ye;function ct(){function t(t,n){return n.length-t.length}var n,s,o,u,l,h=[],c=[],f=[],_=[];for(n=0;n<7;n++)s=p([2e3,1]).day(n),o=this.weekdaysMin(s,''),u=this.weekdaysShort(s,''),l=this.weekdays(s,''),h.push(o),c.push(u),f.push(l),_.push(o),_.push(u),_.push(l);for(h.sort(t),c.sort(t),f.sort(t),_.sort(t),n=0;n<7;n++)c[n]=we(c[n]),f[n]=we(f[n]),_[n]=we(_[n]);this._weekdaysRegex=new RegExp('^('+_.join('|')+')','i'),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp('^('+f.join('|')+')','i'),this._weekdaysShortStrictRegex=new RegExp('^('+c.join('|')+')','i'),this._weekdaysMinStrictRegex=new RegExp('^('+h.join('|')+')','i')}function ft(){return this.hours()%12||12}function mt(t,n){Q(t,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),n)})}function _t(t,n){return n._meridiemParse}Q('H',['HH',2],0,'hour'),Q('h',['hh',2],0,ft),Q('k',['kk',2],0,function(){return this.hours()||24}),Q('hmm',0,0,function(){return''+ft.apply(this)+z(this.minutes(),2)}),Q('hmmss',0,0,function(){return''+ft.apply(this)+z(this.minutes(),2)+z(this.seconds(),2)}),Q('Hmm',0,0,function(){return''+this.hours()+z(this.minutes(),2)}),Q('Hmmss',0,0,function(){return''+this.hours()+z(this.minutes(),2)+z(this.seconds(),2)}),mt('a',!0),mt('A',!1),V('hour','h'),j('hour',13),ve('a',_t),ve('A',_t),ve('H',ae),ve('h',ae),ve('k',ae),ve('HH',ae,ne),ve('hh',ae,ne),ve('kk',ae,ne),ve('hmm',oe),ve('hmmss',ue),ve('Hmm',oe),ve('Hmmss',ue),Se(['H','HH'],xe),Se(['k','kk'],function(t,n,s){var o=b(t);n[xe]=24===o?0:o}),Se(['a','A'],function(t,n,s){s._isPm=s._locale.isPM(t),s._meridiem=t}),Se(['h','hh'],function(t,n,s){n[xe]=b(t),w(s).bigHour=!0}),Se('hmm',function(t,n,s){var o=t.length-2;n[xe]=b(t.substr(0,o)),n[be]=b(t.substr(o)),w(s).bigHour=!0}),Se('hmmss',function(t,n,s){var o=t.length-4,u=t.length-2;n[xe]=b(t.substr(0,o)),n[be]=b(t.substr(o,2)),n[Pe]=b(t.substr(u)),w(s).bigHour=!0}),Se('Hmm',function(t,n,s){var o=t.length-2;n[xe]=b(t.substr(0,o)),n[be]=b(t.substr(o))}),Se('Hmmss',function(t,n,s){var o=t.length-4,u=t.length-2;n[xe]=b(t.substr(0,o)),n[be]=b(t.substr(o,2)),n[Pe]=b(t.substr(u))});var yt,gt=Ne('Hours',!0),vt={calendar:{sameDay:'[Today at] LT',nextDay:'[Tomorrow at] LT',nextWeek:'dddd [at] LT',lastDay:'[Yesterday at] LT',lastWeek:'[Last] dddd [at] LT',sameElse:'L'},longDateFormat:{LTS:'h:mm:ss A',LT:'h:mm A',L:'MM/DD/YYYY',LL:'MMMM D, YYYY',LLL:'MMMM D, YYYY h:mm A',LLLL:'dddd, MMMM D, YYYY h:mm A'},invalidDate:'Invalid date',ordinal:'%d',dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{future:'in %s',past:'%s ago',s:'a few seconds',ss:'%d seconds',m:'a minute',mm:'%d minutes',h:'an hour',hh:'%d hours',d:'a day',dd:'%d days',M:'a month',MM:'%d months',y:'a year',yy:'%d years'},months:Ae,monthsShort:je,week:{dow:0,doy:6},weekdays:rt,weekdaysMin:ot,weekdaysShort:at,meridiemParse:/[ap]\.?m?\.?/i},pt={},wt={};function Mt(t){return t?t.toLowerCase().replace('_','-'):t}function St(t){for(var n,s,o,u,l=0;l0;){if(o=Dt(u.slice(0,n).join('-')))return o;if(s&&s.length>=n&&P(u,s,!0)>=n-1)break;n--}l++}return yt}function Dt(t){var n=null;if(!pt[t]&&void 0!==m&&m&&m.exports)try{n=yt._abbr,r('./locale/'+t),kt(n)}catch(t){}return pt[t]}function kt(t,n){var s;return t&&((s=h(n)?Ot(t):Yt(t,n))?yt=s:'undefined'!=typeof console&&console.warn&&console.warn('Locale '+t+' not found. Did you forget to load it?')),yt._abbr}function Yt(t,n){if(null!==n){var s,o=vt;if(n.abbr=t,null!=pt[t])F('defineLocaleOverride',"use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),o=pt[t]._config;else if(null!=n.parentLocale)if(null!=pt[n.parentLocale])o=pt[n.parentLocale]._config;else{if(null==(s=Dt(n.parentLocale)))return wt[n.parentLocale]||(wt[n.parentLocale]=[]),wt[n.parentLocale].push({name:t,config:n}),null;o=s._config}return pt[t]=new N(U(o,n)),wt[t]&&wt[t].forEach(function(t){Yt(t.name,t.config)}),kt(t),pt[t]}return delete pt[t],null}function Ot(t){var n;if(t&&t._locale&&t._locale._abbr&&(t=t._locale._abbr),!t)return yt;if(!o(t)){if(n=Dt(t))return n;t=[t]}return St(t)}function Tt(t){var n,s=t._a;return s&&-2===w(t).overflow&&(n=s[Oe]<0||s[Oe]>11?Oe:s[Te]<1||s[Te]>Ee(s[Ye],s[Oe])?Te:s[xe]<0||s[xe]>24||24===s[xe]&&(0!==s[be]||0!==s[Pe]||0!==s[We])?xe:s[be]<0||s[be]>59?be:s[Pe]<0||s[Pe]>59?Pe:s[We]<0||s[We]>999?We:-1,w(t)._overflowDayOfYear&&(nTe)&&(n=Te),w(t)._overflowWeeks&&-1===n&&(n=He),w(t)._overflowWeekday&&-1===n&&(n=Re),w(t).overflow=n),t}function xt(t,n,s){return null!=t?t:null!=n?n:s}function bt(t){var n=new Date(s.now());return t._useUTC?[n.getUTCFullYear(),n.getUTCMonth(),n.getUTCDate()]:[n.getFullYear(),n.getMonth(),n.getDate()]}function Pt(t){var n,s,o,u,l,h=[];if(!t._d){for(o=bt(t),t._w&&null==t._a[Te]&&null==t._a[Oe]&&Wt(t),null!=t._dayOfYear&&(l=xt(t._a[Ye],o[Ye]),(t._dayOfYear>Ce(l)||0===t._dayOfYear)&&(w(t)._overflowDayOfYear=!0),s=Xe(l,0,t._dayOfYear),t._a[Oe]=s.getUTCMonth(),t._a[Te]=s.getUTCDate()),n=0;n<3&&null==t._a[n];++n)t._a[n]=h[n]=o[n];for(;n<7;n++)t._a[n]=h[n]=null==t._a[n]?2===n?1:0:t._a[n];24===t._a[xe]&&0===t._a[be]&&0===t._a[Pe]&&0===t._a[We]&&(t._nextDay=!0,t._a[xe]=0),t._d=(t._useUTC?Xe:Qe).apply(null,h),u=t._useUTC?t._d.getUTCDay():t._d.getDay(),null!=t._tzm&&t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),t._nextDay&&(t._a[xe]=24),t._w&&void 0!==t._w.d&&t._w.d!==u&&(w(t).weekdayMismatch=!0)}}function Wt(t){var n,s,o,u,l,h,c,f;if(null!=(n=t._w).GG||null!=n.W||null!=n.E)l=1,h=4,s=xt(n.GG,t._a[Ye],tt(Kt(),1,4).year),o=xt(n.W,1),((u=xt(n.E,1))<1||u>7)&&(f=!0);else{l=t._locale._week.dow,h=t._locale._week.doy;var _=tt(Kt(),l,h);s=xt(n.gg,t._a[Ye],_.year),o=xt(n.w,_.week),null!=n.d?((u=n.d)<0||u>6)&&(f=!0):null!=n.e?(u=n.e+l,(n.e<0||n.e>6)&&(f=!0)):u=l}o<1||o>nt(s,l,h)?w(t)._overflowWeeks=!0:null!=f?w(t)._overflowWeekday=!0:(c=et(s,o,u,l,h),t._a[Ye]=c.year,t._dayOfYear=c.dayOfYear)}var Ht=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Rt=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Ct=/Z|[+-]\d\d(?::?\d\d)?/,Ft=[['YYYYYY-MM-DD',/[+-]\d{6}-\d\d-\d\d/],['YYYY-MM-DD',/\d{4}-\d\d-\d\d/],['GGGG-[W]WW-E',/\d{4}-W\d\d-\d/],['GGGG-[W]WW',/\d{4}-W\d\d/,!1],['YYYY-DDD',/\d{4}-\d{3}/],['YYYY-MM',/\d{4}-\d\d/,!1],['YYYYYYMMDD',/[+-]\d{10}/],['YYYYMMDD',/\d{8}/],['GGGG[W]WWE',/\d{4}W\d{3}/],['GGGG[W]WW',/\d{4}W\d{2}/,!1],['YYYYDDD',/\d{7}/]],Lt=[['HH:mm:ss.SSSS',/\d\d:\d\d:\d\d\.\d+/],['HH:mm:ss,SSSS',/\d\d:\d\d:\d\d,\d+/],['HH:mm:ss',/\d\d:\d\d:\d\d/],['HH:mm',/\d\d:\d\d/],['HHmmss.SSSS',/\d\d\d\d\d\d\.\d+/],['HHmmss,SSSS',/\d\d\d\d\d\d,\d+/],['HHmmss',/\d\d\d\d\d\d/],['HHmm',/\d\d\d\d/],['HH',/\d\d/]],Ut=/^\/?Date\((\-?\d+)/i;function Nt(t){var n,s,o,u,l,h,c=t._i,f=Ht.exec(c)||Rt.exec(c);if(f){for(w(t).iso=!0,n=0,s=Ft.length;n0&&w(t).unusedInput.push(h),c=c.slice(c.indexOf(o)+o.length),_+=o.length),B[l]?(o?w(t).empty=!1:w(t).unusedTokens.push(l),ke(l,o,t)):t._strict&&!o&&w(t).unusedTokens.push(l);w(t).charsLeftOver=f-_,c.length>0&&w(t).unusedInput.push(c),t._a[xe]<=12&&!0===w(t).bigHour&&t._a[xe]>0&&(w(t).bigHour=void 0),w(t).parsedDateParts=t._a.slice(0),w(t).meridiem=t._meridiem,t._a[xe]=$t(t._locale,t._a[xe],t._meridiem),Pt(t),Tt(t)}else jt(t);else Nt(t)}function $t(t,n,s){var o;return null==s?n:null!=t.meridiemHour?t.meridiemHour(n,s):null!=t.isPM?((o=t.isPM(s))&&n<12&&(n+=12),o||12!==n||(n=0),n):n}function Jt(t){var n,s,o,u,l;if(0===t._f.length)return w(t).invalidFormat=!0,void(t._d=new Date(NaN));for(u=0;uthis?this:t:S()});function nn(t,n){var s,u;if(1===n.length&&o(n[0])&&(n=n[0]),!n.length)return Kt();for(s=n[0],u=1;u(l=nt(t,o,u))&&(n=l),Wn.call(this,t,n,s,o,u))}function Wn(t,n,s,o,u){var l=et(t,n,s,o,u),h=Xe(l.year,0,l.dayOfYear);return this.year(h.getUTCFullYear()),this.month(h.getUTCMonth()),this.date(h.getUTCDate()),this}Q(0,['gg',2],0,function(){return this.weekYear()%100}),Q(0,['GG',2],0,function(){return this.isoWeekYear()%100}),bn('gggg','weekYear'),bn('ggggg','weekYear'),bn('GGGG','isoWeekYear'),bn('GGGGG','isoWeekYear'),V('weekYear','gg'),V('isoWeekYear','GG'),j('weekYear',1),j('isoWeekYear',1),ve('G',fe),ve('g',fe),ve('GG',ae,ne),ve('gg',ae,ne),ve('GGGG',de,ie),ve('gggg',de,ie),ve('GGGGG',he,re),ve('ggggg',he,re),De(['gggg','ggggg','GGGG','GGGGG'],function(t,n,s,o){n[o.substr(0,2)]=b(t)}),De(['gg','GG'],function(t,n,o,u){n[u]=s.parseTwoDigitYear(t)}),Q('Q',0,'Qo','quarter'),V('quarter','Q'),j('quarter',7),ve('Q',te),Se('Q',function(t,n){n[Oe]=3*(b(t)-1)}),Q('D',['DD',2],'Do','date'),V('date','D'),j('date',9),ve('D',ae),ve('DD',ae,ne),ve('Do',function(t,n){return t?n._dayOfMonthOrdinalParse||n._ordinalParse:n._dayOfMonthOrdinalParseLenient}),Se(['D','DD'],Te),Se('Do',function(t,n){n[Te]=b(t.match(ae)[0])});var Hn=Ne('Date',!0);Q('DDD',['DDDD',3],'DDDo','dayOfYear'),V('dayOfYear','DDD'),j('dayOfYear',4),ve('DDD',le),ve('DDDD',se),Se(['DDD','DDDD'],function(t,n,s){s._dayOfYear=b(t)}),Q('m',['mm',2],0,'minute'),V('minute','m'),j('minute',14),ve('m',ae),ve('mm',ae,ne),Se(['m','mm'],be);var Rn=Ne('Minutes',!1);Q('s',['ss',2],0,'second'),V('second','s'),j('second',15),ve('s',ae),ve('ss',ae,ne),Se(['s','ss'],Pe);var Cn,Fn=Ne('Seconds',!1);for(Q('S',0,0,function(){return~~(this.millisecond()/100)}),Q(0,['SS',2],0,function(){return~~(this.millisecond()/10)}),Q(0,['SSS',3],0,'millisecond'),Q(0,['SSSS',4],0,function(){return 10*this.millisecond()}),Q(0,['SSSSS',5],0,function(){return 100*this.millisecond()}),Q(0,['SSSSSS',6],0,function(){return 1e3*this.millisecond()}),Q(0,['SSSSSSS',7],0,function(){return 1e4*this.millisecond()}),Q(0,['SSSSSSSS',8],0,function(){return 1e5*this.millisecond()}),Q(0,['SSSSSSSSS',9],0,function(){return 1e6*this.millisecond()}),V('millisecond','ms'),j('millisecond',16),ve('S',le,te),ve('SS',le,ne),ve('SSS',le,se),Cn='SSSS';Cn.length<=9;Cn+='S')ve(Cn,ce);function Ln(t,n){n[We]=b(1e3*('0.'+t))}for(Cn='S';Cn.length<=9;Cn+='S')Se(Cn,Ln);var Un=Ne('Milliseconds',!1);Q('z',0,0,'zoneAbbr'),Q('zz',0,0,'zoneName');var Nn=O.prototype;function Gn(t){return t}Nn.add=Dn,Nn.calendar=function(t,n){var o=t||Kt(),u=cn(o,this).startOf('day'),l=s.calendarFormat(this,u)||'sameElse',h=n&&(L(n[l])?n[l].call(this,o):n[l]);return this.format(h||this.localeData().calendar(l,this,Kt(o)))},Nn.clone=function(){return new O(this)},Nn.diff=function(t,n,s){var o,u,l;if(!this.isValid())return NaN;if(!(o=cn(t,this)).isValid())return NaN;switch(u=6e4*(o.utcOffset()-this.utcOffset()),n=E(n)){case'year':l=Yn(this,o)/12;break;case'month':l=Yn(this,o);break;case'quarter':l=Yn(this,o)/3;break;case'second':l=(this-o)/1e3;break;case'minute':l=(this-o)/6e4;break;case'hour':l=(this-o)/36e5;break;case'day':l=(this-o-u)/864e5;break;case'week':l=(this-o-u)/6048e5;break;default:l=this-o}return s?l:x(l)},Nn.endOf=function(t){return void 0===(t=E(t))||'millisecond'===t?this:('date'===t&&(t='day'),this.startOf(t).add(1,'isoWeek'===t?'week':t).subtract(1,'ms'))},Nn.format=function(t){t||(t=this.isUtc()?s.defaultFormatUtc:s.defaultFormat);var n=K(this,t);return this.localeData().postformat(n)},Nn.from=function(t,n){return this.isValid()&&(T(t)&&t.isValid()||Kt(t).isValid())?gn({to:this,from:t}).locale(this.locale()).humanize(!n):this.localeData().invalidDate()},Nn.fromNow=function(t){return this.from(Kt(),t)},Nn.to=function(t,n){return this.isValid()&&(T(t)&&t.isValid()||Kt(t).isValid())?gn({from:this,to:t}).locale(this.locale()).humanize(!n):this.localeData().invalidDate()},Nn.toNow=function(t){return this.to(Kt(),t)},Nn.get=function(t){return L(this[t=E(t)])?this[t]():this},Nn.invalidAt=function(){return w(this).overflow},Nn.isAfter=function(t,n){var s=T(t)?t:Kt(t);return!(!this.isValid()||!s.isValid())&&('millisecond'===(n=E(h(n)?'millisecond':n))?this.valueOf()>s.valueOf():s.valueOf()9999?K(s,n?'YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]':'YYYYYY-MM-DD[T]HH:mm:ss.SSSZ'):L(Date.prototype.toISOString)?n?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace('Z',K(s,'Z')):K(s,n?'YYYY-MM-DD[T]HH:mm:ss.SSS[Z]':'YYYY-MM-DD[T]HH:mm:ss.SSSZ')},Nn.inspect=function(){if(!this.isValid())return'moment.invalid(/* '+this._i+' */)';var t='moment',n='';this.isLocal()||(t=0===this.utcOffset()?'moment.utc':'moment.parseZone',n='Z');var s='['+t+'("]',o=0<=this.year()&&this.year()<=9999?'YYYY':'YYYYYY',u=n+'[")]';return this.format(s+o+'-MM-DD[T]HH:mm:ss.SSS'+u)},Nn.toJSON=function(){return this.isValid()?this.toISOString():null},Nn.toString=function(){return this.clone().locale('en').format('ddd MMM DD YYYY HH:mm:ss [GMT]ZZ')},Nn.unix=function(){return Math.floor(this.valueOf()/1e3)},Nn.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},Nn.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},Nn.year=Ue,Nn.isLeapYear=function(){return Fe(this.year())},Nn.weekYear=function(t){return Pn.call(this,t,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)},Nn.isoWeekYear=function(t){return Pn.call(this,t,this.isoWeek(),this.isoWeekday(),1,4)},Nn.quarter=Nn.quarters=function(t){return null==t?Math.ceil((this.month()+1)/3):this.month(3*(t-1)+this.month()%3)},Nn.month=$e,Nn.daysInMonth=function(){return Ee(this.year(),this.month())},Nn.week=Nn.weeks=function(t){var n=this.localeData().week(this);return null==t?n:this.add(7*(t-n),'d')},Nn.isoWeek=Nn.isoWeeks=function(t){var n=tt(this,1,4).week;return null==t?n:this.add(7*(t-n),'d')},Nn.weeksInYear=function(){var t=this.localeData()._week;return nt(this.year(),t.dow,t.doy)},Nn.isoWeeksInYear=function(){return nt(this.year(),1,4)},Nn.date=Hn,Nn.day=Nn.days=function(t){if(!this.isValid())return null!=t?this:NaN;var n=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=t?(t=st(t,this.localeData()),this.add(t-n,'d')):n},Nn.weekday=function(t){if(!this.isValid())return null!=t?this:NaN;var n=(this.day()+7-this.localeData()._week.dow)%7;return null==t?n:this.add(t-n,'d')},Nn.isoWeekday=function(t){if(!this.isValid())return null!=t?this:NaN;if(null!=t){var n=it(t,this.localeData());return this.day(this.day()%7?n:n-7)}return this.day()||7},Nn.dayOfYear=function(t){var n=Math.round((this.clone().startOf('day')-this.clone().startOf('year'))/864e5)+1;return null==t?n:this.add(t-n,'d')},Nn.hour=Nn.hours=gt,Nn.minute=Nn.minutes=Rn,Nn.second=Nn.seconds=Fn,Nn.millisecond=Nn.milliseconds=Un,Nn.utcOffset=function(t,n,o){var u,l=this._offset||0;if(!this.isValid())return null!=t?this:NaN;if(null!=t){if('string'==typeof t){if(null===(t=hn(_e,t)))return this}else Math.abs(t)<16&&!o&&(t*=60);return!this._isUTC&&n&&(u=fn(this)),this._offset=t,this._isUTC=!0,null!=u&&this.add(u,'m'),l!==t&&(!n||this._changeInProgress?Sn(this,gn(t-l,'m'),1,!1):this._changeInProgress||(this._changeInProgress=!0,s.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?l:fn(this)},Nn.utc=function(t){return this.utcOffset(0,t)},Nn.local=function(t){return this._isUTC&&(this.utcOffset(0,t),this._isUTC=!1,t&&this.subtract(fn(this),'m')),this},Nn.parseZone=function(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if('string'==typeof this._i){var t=hn(me,this._i);null!=t?this.utcOffset(t):this.utcOffset(0,!0)}return this},Nn.hasAlignedHourOffset=function(t){return!!this.isValid()&&(t=t?Kt(t).utcOffset():0,(this.utcOffset()-t)%60==0)},Nn.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},Nn.isLocal=function(){return!!this.isValid()&&!this._isUTC},Nn.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},Nn.isUtc=mn,Nn.isUTC=mn,Nn.zoneAbbr=function(){return this._isUTC?'UTC':''},Nn.zoneName=function(){return this._isUTC?'Coordinated Universal Time':''},Nn.dates=H('dates accessor is deprecated. Use date instead.',Hn),Nn.months=H('months accessor is deprecated. Use month instead',$e),Nn.years=H('years accessor is deprecated. Use year instead',Ue),Nn.zone=H('moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/',function(t,n){return null!=t?('string'!=typeof t&&(t=-t),this.utcOffset(t,n),this):-this.utcOffset()}),Nn.isDSTShifted=H('isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information',function(){if(!h(this._isDSTShifted))return this._isDSTShifted;var t={};if(k(t,this),(t=Bt(t))._a){var n=t._isUTC?p(t._a):Kt(t._a);this._isDSTShifted=this.isValid()&&P(t._a,n.toArray())>0}else this._isDSTShifted=!1;return this._isDSTShifted});var Vn=N.prototype;function En(t,n,s,o){var u=Ot(),l=p().set(o,n);return u[s](l,t)}function In(t,n,s){if(c(t)&&(n=t,t=void 0),t=t||'',null!=n)return En(t,n,s,'month');var o,u=[];for(o=0;o<12;o++)u[o]=En(t,o,s,'month');return u}function An(t,n,s,o){'boolean'==typeof t?(c(n)&&(s=n,n=void 0),n=n||''):(s=n=t,t=!1,c(n)&&(s=n,n=void 0),n=n||'');var u,l=Ot(),h=t?l._week.dow:0;if(null!=s)return En(n,(s+h)%7,o,'day');var f=[];for(u=0;u<7;u++)f[u]=En(n,(u+h)%7,o,'day');return f}Vn.calendar=function(t,n,s){var o=this._calendar[t]||this._calendar.sameElse;return L(o)?o.call(n,s):o},Vn.longDateFormat=function(t){var n=this._longDateFormat[t],s=this._longDateFormat[t.toUpperCase()];return n||!s?n:(this._longDateFormat[t]=s.replace(/MMMM|MM|DD|dddd/g,function(t){return t.slice(1)}),this._longDateFormat[t])},Vn.invalidDate=function(){return this._invalidDate},Vn.ordinal=function(t){return this._ordinal.replace('%d',t)},Vn.preparse=Gn,Vn.postformat=Gn,Vn.relativeTime=function(t,n,s,o){var u=this._relativeTime[s];return L(u)?u(t,n,s,o):u.replace(/%d/i,t)},Vn.pastFuture=function(t,n){var s=this._relativeTime[t>0?'future':'past'];return L(s)?s(n):s.replace(/%s/i,n)},Vn.set=function(t){var n,s;for(s in t)L(n=t[s])?this[s]=n:this['_'+s]=n;this._config=t,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+'|'+/\d{1,2}/.source)},Vn.months=function(t,n){return t?o(this._months)?this._months[t.month()]:this._months[(this._months.isFormat||Ie).test(n)?'format':'standalone'][t.month()]:o(this._months)?this._months:this._months.standalone},Vn.monthsShort=function(t,n){return t?o(this._monthsShort)?this._monthsShort[t.month()]:this._monthsShort[Ie.test(n)?'format':'standalone'][t.month()]:o(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},Vn.monthsParse=function(t,n,s){var o,u,l;if(this._monthsParseExact)return Ze.call(this,t,n,s);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),o=0;o<12;o++){if(u=p([2e3,o]),s&&!this._longMonthsParse[o]&&(this._longMonthsParse[o]=new RegExp('^'+this.months(u,'').replace('.','')+'$','i'),this._shortMonthsParse[o]=new RegExp('^'+this.monthsShort(u,'').replace('.','')+'$','i')),s||this._monthsParse[o]||(l='^'+this.months(u,'')+'|^'+this.monthsShort(u,''),this._monthsParse[o]=new RegExp(l.replace('.',''),'i')),s&&'MMMM'===n&&this._longMonthsParse[o].test(t))return o;if(s&&'MMM'===n&&this._shortMonthsParse[o].test(t))return o;if(!s&&this._monthsParse[o].test(t))return o}},Vn.monthsRegex=function(t){return this._monthsParseExact?(y(this,'_monthsRegex')||Be.call(this),t?this._monthsStrictRegex:this._monthsRegex):(y(this,'_monthsRegex')||(this._monthsRegex=qe),this._monthsStrictRegex&&t?this._monthsStrictRegex:this._monthsRegex)},Vn.monthsShortRegex=function(t){return this._monthsParseExact?(y(this,'_monthsRegex')||Be.call(this),t?this._monthsShortStrictRegex:this._monthsShortRegex):(y(this,'_monthsShortRegex')||(this._monthsShortRegex=Je),this._monthsShortStrictRegex&&t?this._monthsShortStrictRegex:this._monthsShortRegex)},Vn.week=function(t){return tt(t,this._week.dow,this._week.doy).week},Vn.firstDayOfYear=function(){return this._week.doy},Vn.firstDayOfWeek=function(){return this._week.dow},Vn.weekdays=function(t,n){return t?o(this._weekdays)?this._weekdays[t.day()]:this._weekdays[this._weekdays.isFormat.test(n)?'format':'standalone'][t.day()]:o(this._weekdays)?this._weekdays:this._weekdays.standalone},Vn.weekdaysMin=function(t){return t?this._weekdaysMin[t.day()]:this._weekdaysMin},Vn.weekdaysShort=function(t){return t?this._weekdaysShort[t.day()]:this._weekdaysShort},Vn.weekdaysParse=function(t,n,s){var o,u,l;if(this._weekdaysParseExact)return ut.call(this,t,n,s);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),o=0;o<7;o++){if(u=p([2e3,1]).day(o),s&&!this._fullWeekdaysParse[o]&&(this._fullWeekdaysParse[o]=new RegExp('^'+this.weekdays(u,'').replace('.','\\.?')+'$','i'),this._shortWeekdaysParse[o]=new RegExp('^'+this.weekdaysShort(u,'').replace('.','\\.?')+'$','i'),this._minWeekdaysParse[o]=new RegExp('^'+this.weekdaysMin(u,'').replace('.','\\.?')+'$','i')),this._weekdaysParse[o]||(l='^'+this.weekdays(u,'')+'|^'+this.weekdaysShort(u,'')+'|^'+this.weekdaysMin(u,''),this._weekdaysParse[o]=new RegExp(l.replace('.',''),'i')),s&&'dddd'===n&&this._fullWeekdaysParse[o].test(t))return o;if(s&&'ddd'===n&&this._shortWeekdaysParse[o].test(t))return o;if(s&&'dd'===n&&this._minWeekdaysParse[o].test(t))return o;if(!s&&this._weekdaysParse[o].test(t))return o}},Vn.weekdaysRegex=function(t){return this._weekdaysParseExact?(y(this,'_weekdaysRegex')||ct.call(this),t?this._weekdaysStrictRegex:this._weekdaysRegex):(y(this,'_weekdaysRegex')||(this._weekdaysRegex=lt),this._weekdaysStrictRegex&&t?this._weekdaysStrictRegex:this._weekdaysRegex)},Vn.weekdaysShortRegex=function(t){return this._weekdaysParseExact?(y(this,'_weekdaysRegex')||ct.call(this),t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(y(this,'_weekdaysShortRegex')||(this._weekdaysShortRegex=dt),this._weekdaysShortStrictRegex&&t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},Vn.weekdaysMinRegex=function(t){return this._weekdaysParseExact?(y(this,'_weekdaysRegex')||ct.call(this),t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(y(this,'_weekdaysMinRegex')||(this._weekdaysMinRegex=ht),this._weekdaysMinStrictRegex&&t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},Vn.isPM=function(t){return'p'===(t+'').toLowerCase().charAt(0)},Vn.meridiem=function(t,n,s){return t>11?s?'pm':'PM':s?'am':'AM'},kt('en',{dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(t){var n=t%10;return t+(1===b(t%100/10)?'th':1===n?'st':2===n?'nd':3===n?'rd':'th')}}),s.lang=H('moment.lang is deprecated. Use moment.locale instead.',kt),s.langData=H('moment.langData is deprecated. Use moment.localeData instead.',Ot);var jn=Math.abs;function Zn(t,n,s,o){var u=gn(n,s);return t._milliseconds+=o*u._milliseconds,t._days+=o*u._days,t._months+=o*u._months,t._bubble()}function zn(t){return t<0?Math.floor(t):Math.ceil(t)}function $n(t){return 4800*t/146097}function Jn(t){return 146097*t/4800}function qn(t){return function(){return this.as(t)}}var Bn=qn('ms'),Qn=qn('s'),Xn=qn('m'),Kn=qn('h'),es=qn('d'),ts=qn('w'),ns=qn('M'),ss=qn('y');function is(t){return function(){return this.isValid()?this._data[t]:NaN}}var rs=is('milliseconds'),as=is('seconds'),os=is('minutes'),us=is('hours'),ls=is('days'),ds=is('months'),hs=is('years');var cs=Math.round,fs={ss:44,s:45,m:45,h:22,d:26,M:11};function ms(t,n,s,o,u){return u.relativeTime(n||1,!!s,t,o)}function _s(t,n,s){var o=gn(t).abs(),u=cs(o.as('s')),l=cs(o.as('m')),h=cs(o.as('h')),c=cs(o.as('d')),f=cs(o.as('M')),_=cs(o.as('y')),y=u<=fs.ss&&['s',u]||u0,y[4]=s,ms.apply(null,y)}var ys=Math.abs;function gs(t){return(t>0)-(t<0)||+t}function vs(){if(!this.isValid())return this.localeData().invalidDate();var t,n,s=ys(this._milliseconds)/1e3,o=ys(this._days),u=ys(this._months);n=x((t=x(s/60))/60),s%=60,t%=60;var l=x(u/12),h=u%=12,c=o,f=n,_=t,y=s?s.toFixed(3).replace(/\.?0+$/,''):'',v=this.asSeconds();if(!v)return'P0D';var p=v<0?'-':'',w=gs(this._months)!==gs(v)?'-':'',M=gs(this._days)!==gs(v)?'-':'',S=gs(this._milliseconds)!==gs(v)?'-':'';return p+'P'+(l?w+l+'Y':'')+(h?w+h+'M':'')+(c?M+c+'D':'')+(f||_||y?'T':'')+(f?S+f+'H':'')+(_?S+_+'M':'')+(y?S+y+'S':'')}var ps=an.prototype;return ps.isValid=function(){return this._isValid},ps.abs=function(){var t=this._data;return this._milliseconds=jn(this._milliseconds),this._days=jn(this._days),this._months=jn(this._months),t.milliseconds=jn(t.milliseconds),t.seconds=jn(t.seconds),t.minutes=jn(t.minutes),t.hours=jn(t.hours),t.months=jn(t.months),t.years=jn(t.years),this},ps.add=function(t,n){return Zn(this,t,n,1)},ps.subtract=function(t,n){return Zn(this,t,n,-1)},ps.as=function(t){if(!this.isValid())return NaN;var n,s,o=this._milliseconds;if('month'===(t=E(t))||'year'===t)return n=this._days+o/864e5,s=this._months+$n(n),'month'===t?s:s/12;switch(n=this._days+Math.round(Jn(this._months)),t){case'week':return n/7+o/6048e5;case'day':return n+o/864e5;case'hour':return 24*n+o/36e5;case'minute':return 1440*n+o/6e4;case'second':return 86400*n+o/1e3;case'millisecond':return Math.floor(864e5*n)+o;default:throw new Error('Unknown unit '+t)}},ps.asMilliseconds=Bn,ps.asSeconds=Qn,ps.asMinutes=Xn,ps.asHours=Kn,ps.asDays=es,ps.asWeeks=ts,ps.asMonths=ns,ps.asYears=ss,ps.valueOf=function(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*b(this._months/12):NaN},ps._bubble=function(){var t,n,s,o,u,l=this._milliseconds,h=this._days,c=this._months,f=this._data;return l>=0&&h>=0&&c>=0||l<=0&&h<=0&&c<=0||(l+=864e5*zn(Jn(c)+h),h=0,c=0),f.milliseconds=l%1e3,t=x(l/1e3),f.seconds=t%60,n=x(t/60),f.minutes=n%60,s=x(n/60),f.hours=s%24,c+=u=x($n(h+=x(s/24))),h-=zn(Jn(u)),o=x(c/12),c%=12,f.days=h,f.months=c,f.years=o,this},ps.clone=function(){return gn(this)},ps.get=function(t){return t=E(t),this.isValid()?this[t+'s']():NaN},ps.milliseconds=rs,ps.seconds=as,ps.minutes=os,ps.hours=us,ps.days=ls,ps.weeks=function(){return x(this.days()/7)},ps.months=ds,ps.years=hs,ps.humanize=function(t){if(!this.isValid())return this.localeData().invalidDate();var n=this.localeData(),s=_s(this,!t,n);return t&&(s=n.pastFuture(+this,s)),n.postformat(s)},ps.toISOString=vs,ps.toString=vs,ps.toJSON=vs,ps.locale=On,ps.localeData=xn,ps.toIsoString=H('toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)',vs),ps.lang=Tn,Q('X',0,0,'unix'),Q('x',0,0,'valueOf'),ve('x',fe),ve('X',/[+-]?\d+(\.\d{1,3})?/),Se('X',function(t,n,s){s._d=new Date(1e3*parseFloat(t,10))}),Se('x',function(t,n,s){s._d=new Date(b(t))}),s.version='2.22.2',t=Kt,s.fn=Nn,s.min=function(){return nn('isBefore',[].slice.call(arguments,0))},s.max=function(){return nn('isAfter',[].slice.call(arguments,0))},s.now=function(){return Date.now?Date.now():+new Date},s.utc=p,s.unix=function(t){return Kt(1e3*t)},s.months=function(t,n){return In(t,n,'months')},s.isDate=f,s.locale=kt,s.invalid=S,s.duration=gn,s.isMoment=T,s.weekdays=function(t,n,s){return An(t,n,s,'weekdays')},s.parseZone=function(){return Kt.apply(null,arguments).parseZone()},s.localeData=Ot,s.isDuration=on,s.monthsShort=function(t,n){return In(t,n,'monthsShort')},s.weekdaysMin=function(t,n,s){return An(t,n,s,'weekdaysMin')},s.defineLocale=Yt,s.updateLocale=function(t,n){if(null!=n){var s,o,u=vt;null!=(o=Dt(t))&&(u=o._config),(s=new N(n=U(u,n))).parentLocale=pt[t],pt[t]=s,kt(t)}else null!=pt[t]&&(null!=pt[t].parentLocale?pt[t]=pt[t].parentLocale:null!=pt[t]&&delete pt[t]);return pt[t]},s.locales=function(){return R(pt)},s.weekdaysShort=function(t,n,s){return An(t,n,s,'weekdaysShort')},s.normalizeUnits=E,s.relativeTimeRounding=function(t){return void 0===t?cs:'function'==typeof t&&(cs=t,!0)},s.relativeTimeThreshold=function(t,n){return void 0!==fs[t]&&(void 0===n?fs[t]:(fs[t]=n,'s'===t&&(fs.ss=n-1),!0))},s.calendarFormat=function(t,n){var s=t.diff(n,'days',!0);return s<-6?'sameElse':s<-1?'lastWeek':s<0?'lastDay':s<1?'sameDay':s<2?'nextDay':s<7?'nextWeek':'sameElse'},s.prototype=Nn,s.HTML5_FMT={DATETIME_LOCAL:'YYYY-MM-DDTHH:mm',DATETIME_LOCAL_SECONDS:'YYYY-MM-DDTHH:mm:ss',DATETIME_LOCAL_MS:'YYYY-MM-DDTHH:mm:ss.SSS',DATE:'YYYY-MM-DD',TIME:'HH:mm',TIME_SECONDS:'HH:mm:ss',TIME_MS:'HH:mm:ss.SSS',WEEK:'YYYY-[W]WW',MONTH:'YYYY-MM'},s},'object'==typeof e&&void 0!==m?m.exports=n():'function'==typeof define&&define.amd?define(n):t.moment=n()},1068,[]); -__d(function(g,r,i,a,m,e,d){!(function(t,n){"use strict";'object'==typeof m&&m.exports?m.exports=n(r(d[0])):'function'==typeof define&&define.amd?define(['moment'],n):n(t.moment)})(this,function(t){"use strict";var n,o={},s={},f={},u={};t&&'string'==typeof t.version||I('Moment Timezone requires Moment.js. See https://momentjs.com/timezone/docs/#/use-it/browser/');var c=t.version.split('.'),h=+c[0],l=+c[1];function p(t){return t>96?t-87:t>64?t-29:t-48}function v(t){var n=0,o=t.split('.'),s=o[0],f=o[1]||'',u=1,c=0,h=1;for(45===t.charCodeAt(0)&&(n=1,h=-1);n3){var n=f[Z(t)];if(n)return n;I("Moment Timezone found "+t+" from the Intl api, but did not have that data loaded.")}}catch(t){}var o,s,u,c=A(),h=c.length,l=D(c),p=[];for(s=0;s0?p[0].zone.name:void 0}function Z(t){return(t||'').toLowerCase().replace(/\//g,'_')}function F(t){var n,s,u,c;for("string"==typeof t&&(t=[t]),n=0;n= 2.6.0. You are using Moment.js '+t.version+'. See momentjs.com'),y.prototype={_set:function(t){this.name=t.name,this.abbrs=t.abbrs,this.untils=t.untils,this.offsets=t.offsets,this.population=t.population},_index:function(t){var n,o=+t,s=this.untils;for(n=0;ns&&P.moveInvalidForward&&(n=s),u= 2.9.0. You are using Moment.js '+t.version+'.'),t.defaultZone=n?k(n):null,t};var V=t.momentProperties;return'[object Array]'===Object.prototype.toString.call(V)?(V.push('_z'),V.push('_a')):V&&(V._z=null),t})},1069,[1068]); -__d(function(g,r,i,a,m,e,d){!(function(n,t){"use strict";'object'==typeof m&&m.exports?m.exports=t(r(d[0])):'function'==typeof define&&define.amd?define(['moment'],t):t(n.moment)})(this,function(n){"use strict";if(!n.tz)throw new Error("moment-timezone-utils.js must be loaded after moment-timezone.js");var t='0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWX',o=1e-6;function s(n,s){for(var f,u='.',l='';s>0;)s-=1,n*=60,f=Math.floor(n+o),u+=t[f],n-=f,f&&(l+=u,u='');return l}function f(n,o){for(var f='',u=Math.abs(n),l=Math.floor(u),h=s(u-l,Math.min(~~o,10));l>0;)f=t[l%60]+f,l=Math.floor(l/60);return n<0&&(f='-'+f),f&&h?f+h:(h||'-'!==f)&&(f||h)||'0'}function u(n){var t,o=[],s=0;for(t=0;th.population?p.unshift(l):l.population===h.population&&s&&s[l.name]?p.unshift(l):p.push(l),c=!0);c||b.push([l])}for(f=0;fo&&(f=t,t=o,o=f),f=0;fo&&(l=Math.min(l,f+1)));return[u,l]}function k(n,t,o){var s=Array.prototype.slice,f=w(n.untils,t,o),u=s.apply(n.untils,f);return u[u.length-1]=null,{name:n.name,abbrs:s.apply(n.abbrs,f),untils:u,offsets:s.apply(n.offsets,f),population:n.population}}return n.tz.pack=c,n.tz.packBase60=f,n.tz.createLinks=M,n.tz.filterYears=k,n.tz.filterLinkPack=function(n,t,o,s){var f,u,l=n.zones,h=[];for(f=0;f2?u-2:0),l=2;l";var s=(0,n.parseWithAttributeSchema)(t,{type:'string',source:'attribute',selector:'[data-custom-class-name] > *',attribute:'class'});return s?s.trim().split(/\s+/):[]}function b(t,o,l){if((0,n.hasBlockSupport)(o,'customClassName',!0)){var u=f((0,n.getSaveContent)(o,t)),p=f(l),b=(0,c.difference)(p,u),v=(0,c.compact)([t.className].concat((0,s.default)(b))).join(' ');v?t.className=v:delete t.className}return t}(0,l.addFilter)('blocks.registerBlockType','core/custom-class-name/attribute',u),(0,l.addFilter)('blocks.getSaveContent.extraProps','core/custom-class-name/save-props',p),(0,l.addFilter)('blocks.getBlockAttributes','core/custom-class-name/addParsedDifference',b)},1077,[1,15,332,1001,893,807]); -__d(function(g,r,i,a,m,e,d){var s=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.addGeneratedClassName=o;var t=s(r(d[1])),l=r(d[2]),n=r(d[3]),c=r(d[4]);function o(s,n){return(0,c.hasBlockSupport)(n,'className',!0)&&('string'==typeof s.className?s.className=(0,l.uniq)([(0,c.getBlockDefaultClassName)(n.name)].concat((0,t.default)(s.className.split(' ')))).join(' ').trim():s.className=(0,c.getBlockDefaultClassName)(n.name)),s}(0,n.addFilter)('blocks.getSaveContent.extraProps','core/generated-class-name/save-props',o)},1078,[1,15,332,893,807]); -__d(function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0});var n={PlainText:!0,RichText:!0,MediaPlaceholder:!0,BlockFormatControls:!0,BlockControls:!0,BlockEdit:!0,DefaultBlockAppender:!0,EditorHistoryRedo:!0,EditorHistoryUndo:!0};Object.defineProperty(e,"PlainText",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(e,"RichText",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(e,"MediaPlaceholder",{enumerable:!0,get:function(){return f.default}}),Object.defineProperty(e,"BlockFormatControls",{enumerable:!0,get:function(){return b.default}}),Object.defineProperty(e,"BlockControls",{enumerable:!0,get:function(){return p.default}}),Object.defineProperty(e,"BlockEdit",{enumerable:!0,get:function(){return y.default}}),Object.defineProperty(e,"DefaultBlockAppender",{enumerable:!0,get:function(){return O.default}}),Object.defineProperty(e,"EditorHistoryRedo",{enumerable:!0,get:function(){return P.default}}),Object.defineProperty(e,"EditorHistoryUndo",{enumerable:!0,get:function(){return j.default}});var o=r(d[1]);Object.keys(o).forEach(function(t){"default"!==t&&"__esModule"!==t&&(Object.prototype.hasOwnProperty.call(n,t)||Object.defineProperty(e,t,{enumerable:!0,get:function(){return o[t]}}))});var u=r(d[2]);Object.keys(u).forEach(function(t){"default"!==t&&"__esModule"!==t&&(Object.prototype.hasOwnProperty.call(n,t)||Object.defineProperty(e,t,{enumerable:!0,get:function(){return u[t]}}))});var l=t(r(d[3])),c=t(r(d[4])),f=t(r(d[5])),b=t(r(d[6])),p=t(r(d[7])),y=t(r(d[8])),O=t(r(d[9])),P=t(r(d[10])),j=t(r(d[11]))},1079,[1,1080,1083,1085,1087,1128,1130,1132,1133,1135,1137,1138]); -__d(function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"getColorClassName",{enumerable:!0,get:function(){return o.getColorClassName}}),Object.defineProperty(e,"getColorObjectByAttributeValues",{enumerable:!0,get:function(){return o.getColorObjectByAttributeValues}}),Object.defineProperty(e,"getColorObjectByColorValue",{enumerable:!0,get:function(){return o.getColorObjectByColorValue}}),Object.defineProperty(e,"withColors",{enumerable:!0,get:function(){return n.default}});var o=r(d[1]),n=t(r(d[2]))},1080,[1,1081,1082]); -__d(function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.getColorClassName=function(t,l){if(!t||!l)return;return"has-"+(0,o.kebabCase)(l)+"-"+t},e.getMostReadableColor=function(t,u){return l.default.mostReadable(u,(0,o.map)(t,'color')).toHexString()},e.getColorObjectByColorValue=e.getColorObjectByAttributeValues=void 0;var o=r(d[1]),l=t(r(d[2]));e.getColorObjectByAttributeValues=function(t,l,u){if(l){var n=(0,o.find)(t,{slug:l});if(n)return n}return{color:u}};e.getColorObjectByColorValue=function(t,l){return(0,o.find)(t,{color:l})}},1081,[1,332,906]); -__d(function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=r(d[1]),u=t(r(d[2])),l=t(r(d[3])),s=t(r(d[4])),n=t(r(d[5])),c=t(r(d[6])),f=t(r(d[7])),v=t(r(d[8])),p=t(r(d[9])),C=r(d[10]),h=r(d[11]),b=r(d[12]),y=r(d[13]),S=[];e.default=function(){for(var t=arguments.length,k=new Array(t),M=0;M','gim'),o=RegExp('$','gim');return t.replace(n,'').replace(o,'')}},{key:"onChange",value:function(t){this.lastEventCount=t.nativeEvent.eventCount;var n=this.removeRootTagsProduceByAztec(t.nativeEvent.text);this.lastContent=n,this.props.onChange({content:this.lastContent})}},{key:"onContentSizeChange",value:function(t){var n=t.height;this.forceUpdate(),this.props.onContentSizeChange({aztecHeight:n})}},{key:"onEnter",value:function(t){this.props.onSplit&&this.splitContent(t.nativeEvent.text,t.nativeEvent.selectionStart,t.nativeEvent.selectionEnd)}},{key:"onBackspace",value:function(t){var n=this.props,o=n.onMerge,s=n.onRemove;if(o||s){var l=b.BACKSPACE===b.BACKSPACE,u=this.isEmpty();o&&o(!l),s&&u&&l&&s(!l)}}},{key:"isEmpty",value:function(){return(0,A.isEmpty)(this.formatToValue(this.props.value))}},{key:"formatToValue",value:function(t){return Array.isArray(t)?(0,A.create)({html:_.children.toHTML(t),multilineTag:this.multilineTag}):'string'===this.props.format?(0,A.create)({html:t,multilineTag:this.multilineTag}):null===t?(0,A.create)():t}},{key:"shouldComponentUpdate",value:function(t){return t.tagName!==this.props.tagName?(this.lastEventCount=void 0,this.lastContent=void 0,!0):(void 0!==t.value&&void 0!==this.lastContent&&t.value!==this.lastContent&&(this.lastEventCount=void 0),!0)}},{key:"componentDidMount",value:function(){this.props.isSelected&&this._editor.focus()}},{key:"componentWillUnmount",value:function(){this._editor.isFocused()&&this._editor.blur()}},{key:"componentDidUpdate",value:function(t){this.props.isSelected&&!t.isSelected?this._editor.focus():!this.props.isSelected&&t.isSelected&&this.isIOS&&this._editor.blur()}},{key:"isFormatActive",value:function(t){return this.state.formats[t]&&this.state.formats[t].isActive}},{key:"removeFormat",value:function(t){this._editor.applyFormat(t)}},{key:"applyFormat",value:function(t,n,o){this._editor.applyFormat(t)}},{key:"changeFormats",value:function(t){var n=this,o={};(0,k.forEach)(t,function(t,s){o[s]={isActive:!0};var l=n.isFormatActive(s);l&&!t?n.removeFormat(s):!l&&t&&n.applyFormat(s)}),this.setState(function(t){return{formats:(0,k.merge)({},t.formats,o)}})}},{key:"toggleFormat",value:function(t){var n=this;return function(){return n.changeFormats((0,s.default)({},t,!n.state.formats[t]))}}},{key:"render",value:function(){var t=this,o=this.props,s=o.tagName,u=o.style,c=o.formattingControls,f=o.value,h=x.filter(function(t){return-1!==c.indexOf(t.format)}).map(function(n){return(0,l.default)({},n,{onClick:t.toggleFormat(n.format),isActive:t.isFormatActive(n.format)})}),v='<'+s+'>'+f+'';return(0,n.createElement)(E.View,null,(0,n.createElement)(T.BlockFormatControls,null,(0,n.createElement)(S.Toolbar,{controls:h})),(0,n.createElement)(y.default,{ref:function(n){t._editor=n},text:{text:v,eventCount:this.lastEventCount},onChange:this.onChange,onFocus:this.props.onFocus,onBlur:this.props.onBlur,onEnter:this.onEnter,onBackspace:this.onBackspace,onContentSizeChange:this.onContentSizeChange,onActiveFormatsChange:this.onActiveFormatsChange,isSelected:this.props.isSelected,blockType:{tag:s},color:'black',maxImagesWidth:200,style:u}))}}]),o})(n.Component);e.RichText=z,z.defaultProps={formattingControls:x.map(function(t){return t.format}),format:'string'};var I=(0,F.compose)([F.withInstanceId])(z);I.Content=function(t){var s,l=t.value,u=t.format,c=t.tagName,f=(0,o.default)(t,["value","format","tagName"]);switch(u){case'string':s=(0,n.createElement)(n.RawHTML,null,l)}return c?(0,n.createElement)(c,f,s):s},I.isEmpty=function(t){return!t||!t.length},I.Content.defaultProps={format:'string'};var P=I;e.default=P},1087,[1,330,6,44,43,9,19,20,27,30,33,29,1088,2,332,865,925,1019,1091,1126,807,877]); -__d(function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var u=t(r(d[1])).default;e.default=u},1088,[1,1089]); -__d(function(g,r,i,a,m,e,d){var t=r(d[0]),n=r(d[1]);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=r(d[2]),u=n(r(d[3])),s=n(r(d[4])),c=n(r(d[5])),l=n(r(d[6])),f=n(r(d[7])),p=n(r(d[8])),h=n(r(d[9])),C=n(r(d[10])),v=n(r(d[11])),F=n(r(d[12])),_=n(r(d[13])),A=t(r(d[14])),b=n(r(d[15])),T=A.UIManager.RCTAztecView,k=(function(t){function n(){var t,o;(0,l.default)(this,n);for(var u=arguments.length,s=new Array(u),c=0;c0&&void 0!==arguments[0]?arguments[0]:{},u=arguments.length>1?arguments[1]:void 0;switch(u.type){case'ADD_FORMAT_TYPES':return(0,n.default)({},t,(0,o.keyBy)(u.formatTypes,'name'));case'REMOVE_FORMAT_TYPES':return(0,o.omit)(t,u.names)}return t}var f=(0,r(d[3]).combineReducers)({formatTypes:u});e.default=f},1093,[1,43,332,809]); -__d(function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.getFormatType=function(t,n){return t.formatTypes[n]},e.getFormatTypeForBareElement=function(t,n){return(0,o.find)(u(t),function(t){var o=t.tagName;return n===o})},e.getFormatTypeForClassName=function(t,n){return(0,o.find)(u(t),function(t){var o=t.className;return null!==o&&(" "+n+" ").indexOf(" "+o+" ")>=0})},e.getFormatTypes=void 0;var n=t(r(d[1])),o=r(d[2]),u=(0,n.default)(function(t){return Object.values(t.formatTypes)},function(t){return[t.formatTypes]});e.getFormatTypes=u},1094,[1,886,332]); -__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.addFormatTypes=function(n){return{type:'ADD_FORMAT_TYPES',formatTypes:(0,t.castArray)(n)}},e.removeFormatTypes=function(n){return{type:'REMOVE_FORMAT_TYPES',names:(0,t.castArray)(n)}};var t=r(d[0])},1095,[332]); -__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.applyFormat=function(o,s){var l=o.formats,p=o.text,u=o.start,v=o.end,y=arguments.length>2&&void 0!==arguments[2]?arguments[2]:u,c=arguments.length>3&&void 0!==arguments[3]?arguments[3]:v,h=l.slice(0);if(y===c){var x=(0,t.find)(h[y],{type:s.type});if(!x){var _=h[y-1]||[],F=(0,t.find)(_,{type:s.type});return{formats:l,text:p,start:u,end:v,formatPlaceholder:{index:y,format:F?void 0:s}}}for(;(0,t.find)(h[y],x);)f(h,y,s),y--;for(c++;(0,t.find)(h[c],x);)f(h,c,s),c++}else for(var P=y;P0&&void 0!==arguments[0]?arguments[0]:{},n=t.element,o=t.text,s=t.html,l=t.range,u=t.multilineTag,v=t.multilineWrapperTags,p=t.removeNode,c=t.unwrapNode,h=t.filterString,N=t.removeAttribute;if('string'==typeof o&&o.length>0)return{formats:Array(o.length),text:o};'string'==typeof s&&s.length>0&&(n=(0,f.createElement)(document,s));if('object'!=typeof n)return{formats:[],text:''};if(!u)return b({element:n,range:l,removeNode:p,unwrapNode:c,filterString:h,removeAttribute:N});return y({element:n,range:l,multilineTag:u,multilineWrapperTags:v,removeNode:p,unwrapNode:c,filterString:h,removeAttribute:N})};var n=t(r(d[1])),o=r(d[2]),s=r(d[3]),l=r(d[4]),f=r(d[5]),u=r(d[6]),v=window.Node,p=v.TEXT_NODE,c=v.ELEMENT_NODE;function h(t,n){for(var o in t)if(t[o]===n)return o}function N(t){var n,s=t.type,l=t.attributes;if(l&&l.class&&(n=(0,o.select)('core/rich-text').getFormatTypeForClassName(l.class))&&(l.class=(" "+l.class+" ").replace(" "+n.className+" ",' ').trim(),l.class||delete l.class),n||(n=(0,o.select)('core/rich-text').getFormatTypeForBareElement(s)),!n)return l?{type:s,attributes:l}:{type:s};if(!l)return{type:n.name};var f={},u={};for(var v in l){var p=h(n.attributes,v);p?f[p]=l[v]:u[v]=l[v]}return{type:n.name,attributes:f,unregisteredAttributes:u}}function T(t,n,o,s){if(o){var l=n.parentNode,f=o.startContainer,u=o.startOffset,v=o.endContainer,c=o.endOffset,h=t.text.length;void 0!==s.start?t.start=h+s.start:n===f&&n.nodeType===p?t.start=h+u:l===f&&n===f.childNodes[u]?t.start=h:l===f&&n===f.childNodes[u-1]?t.start=h+s.text.length:n===f&&(t.start=h),void 0!==s.end?t.end=h+s.end:n===v&&n.nodeType===p?t.end=h+c:l===v&&n===v.childNodes[c-1]?t.end=h+s.text.length:l===v&&n===v.childNodes[c]?t.end=h:n===v&&(t.end=h+c)}}function x(t,n,o){if(n){var s=n.startContainer,l=n.endContainer,f=n.startOffset,u=n.endOffset;return t===s&&(f=o(t.nodeValue.slice(0,f)).length),t===l&&(u=o(t.nodeValue.slice(0,u)).length),{startContainer:s,startOffset:f,endContainer:l,endOffset:u}}}function b(t){var o=t.element,f=t.range,v=t.multilineTag,h=t.multilineWrapperTags,E=t.currentWrapperTags,C=void 0===E?[]:E,w=t.removeNode,O=t.unwrapNode,W=t.filterString,S=t.removeAttribute,_={formats:[],text:''};if(!o)return _;if(!o.hasChildNodes())return T(_,o,f,{formats:[],text:''}),_;for(var F=o.childNodes.length,L=function(t){return t=t.replace(/[\n\r\t]+/g,' '),W&&(t=W(t)),t},R=0;R0){var W=N.length>0?[N]:[,];x.formats=x.formats.concat(W),x.text+=u.LINE_SEPARATOR}T(x,E,o,C),x.formats=x.formats.concat(C.formats),x.text+=C.text}}return x}function A(t){var n=t.element,o=t.removeAttribute;if(n.hasAttributes()){for(var s,l=n.attributes.length,f=0;f1&&void 0!==arguments[1]?arguments[1]:'';'string'==typeof f&&(f=(0,t.create)({text:f}));return(0,o.normaliseFormats)(n.reduce(function(t,o){var n=o.formats,c=o.text;return{text:t.text+f.text+c,formats:t.formats.concat(f.formats,n)}}))};var t=r(d[0]),o=r(d[1])},1110,[1101,1097]); -__d(function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.registerFormatType=function(t,v){if('string'!=typeof(v=(0,c.default)({name:t},v)).name)return void window.console.error('Format names must be strings.');if(!/^[a-z][a-z0-9-]*\/[a-z][a-z0-9-]*$/.test(v.name))return void window.console.error('Format names must contain a namespace prefix, include only lowercase alphanumeric characters or dashes, and start with a letter. Example: my-plugin/my-custom-format');if((0,p.select)('core/rich-text').getFormatType(v.name))return void window.console.error('Format "'+v.name+'" is already registered.');if('string'!=typeof v.tagName||''===v.tagName)return void window.console.error('Format tag names must be a string.');if(('string'!=typeof v.className||''===v.className)&&null!==v.className)return void window.console.error('Format class names must be a string, or null to handle bare elements.');if(!/^[_a-zA-Z]+[a-zA-Z0-9-]*$/.test(v.className))return void window.console.error('A class name must begin with a letter, followed by any number of hyphens, letters, or numbers.');if(null===v.className){var b=(0,p.select)('core/rich-text').getFormatTypeForBareElement(v.tagName);if(b)return void window.console.error("Format \""+b.name+"\" is already registered to handle bare tag name \""+v.tagName+"\".")}else{var x=(0,p.select)('core/rich-text').getFormatTypeForClassName(v.className);if(x)return void window.console.error("Format \""+x.name+"\" is already registered to handle class name \""+v.className+"\".")}if(!('title'in v)||''===v.title)return void window.console.error('The format "'+v.name+'" must have a title.');if('keywords'in v&&v.keywords.length>3)return void window.console.error('The format "'+v.name+'" can have a maximum of 3 keywords.');if('string'!=typeof v.title)return void window.console.error('Format titles must be strings.');(0,p.dispatch)('core/rich-text').addFormatTypes(v);var y=(0,f.default)(function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:w,n=arguments.length>1?arguments[1]:void 0;return(0,s.default)(t).concat([n])});v.__experimentalGetPropsForEditableTreePreparation&&(0,h.addFilter)('experimentalRichText',t,function(s){var f=s;(v.__experimentalCreatePrepareEditableTree||v.__experimentalCreateFormatToValue||v.__experimentalCreateValueToFormat)&&(f=function(o){var u={};if(v.__experimentalCreatePrepareEditableTree&&(u.prepareEditableTree=y(o.prepareEditableTree,v.__experimentalCreatePrepareEditableTree(o["format_"+t],{richTextIdentifier:o.identifier,blockClientId:o.clientId}))),v.__experimentalCreateOnChangeEditableValue){var f=Object.keys(o).reduce(function(n,l){var s=o[l],c="format_"+t+"_dispatch_";if(l.startsWith(c)){var u=l.replace(c,'');n[u]=s}return n},{});u.onChangeEditableValue=y(o.onChangeEditableValue,v.__experimentalCreateOnChangeEditableValue((0,c.default)({},o["format_"+t],f),{richTextIdentifier:o.identifier,blockClientId:o.clientId}))}return(0,n.createElement)(s,(0,l.default)({},o,u))});var h=[(0,p.withSelect)(function(n,l){var s=l.clientId,c=l.identifier;return(0,o.default)({},"format_"+t,v.__experimentalGetPropsForEditableTreePreparation(n,{richTextIdentifier:c,blockClientId:s}))})];return v.__experimentalGetPropsForEditableTreeChangeHandler&&h.push((0,p.withDispatch)(function(n,o){var l=o.clientId,s=o.identifier,c=v.__experimentalGetPropsForEditableTreeChangeHandler(n,{richTextIdentifier:s,blockClientId:l});return(0,u.mapKeys)(c,function(n,o){return"format_"+t+"_dispatch_"+o})})),(0,_.compose)(h)(f)});return v};var n=r(d[1]),o=t(r(d[2])),l=t(r(d[3])),s=t(r(d[4])),c=t(r(d[5])),u=r(d[6]),f=t(r(d[7])),p=r(d[8]),h=r(d[9]),_=r(d[10]),w=[]},1111,[1,330,44,8,15,43,332,883,809,893,865]); -__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.removeFormat=function(f,l){var s=f.formats,v=f.text,u=f.start,c=f.end,_=arguments.length>2&&void 0!==arguments[2]?arguments[2]:u,h=arguments.length>3&&void 0!==arguments[3]?arguments[3]:c,p=s.slice(0);if(_===h){for(var y=(0,t.find)(p[_],{type:l});(0,t.find)(p[_],y);)o(p,_,l),_--;for(h++;(0,t.find)(p[h],y);)o(p,h,l),h++}else for(var x=_;x2&&void 0!==arguments[2]?arguments[2]:f,x=arguments.length>3&&void 0!==arguments[3]?arguments[3]:v;'string'==typeof o&&(o=(0,t.create)({text:o}));var _=u+o.text.length;return(0,n.normaliseFormats)({formats:c.slice(0,u).concat(o.formats,c.slice(x)),text:l.slice(0,u)+o.text+l.slice(x),start:_,end:_})};var t=r(d[0]),n=r(d[1])},1114,[1101,1097]); -__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.replace=function(n,o,l){var c=n.formats,f=n.text,s=n.start,u=n.end;return f=f.replace(o,function(t){for(var n=arguments.length,o=new Array(n>1?n-1:0),f=1;f1&&void 0!==arguments[1]?arguments[1]:s.start,l=arguments.length>2&&void 0!==arguments[2]?arguments[2]:s.end,v=(0,t.getTextContent)(s).slice(0,f).lastIndexOf(o.LINE_SEPARATOR),_=s.formats[v],u=[,];_&&(u=[_]);var c={formats:u,text:o.LINE_SEPARATOR};return(0,n.insert)(s,c,f,l)};var t=r(d[0]),n=r(d[1]),o=r(d[2])},1116,[1108,1114,1103]); -__d(function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.insertObject=function(t,c,f,s){var v={text:u,formats:[[(0,n.default)({},c,{object:!0})]]};return(0,o.insert)(t,v,f,s)};var n=t(r(d[1])),o=r(d[2]),u="\ufffc"},1117,[1,43,1114]); -__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.slice=function(t){var o=t.formats,n=t.text,s=t.start,f=t.end,l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:s,c=arguments.length>2&&void 0!==arguments[2]?arguments[2]:f;if(void 0===l||void 0===c)return{formats:o,text:n};return{formats:o.slice(l,c),text:n.slice(l,c)}}},1118,[]); -__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.split=function(t,s){var l=t.formats,o=t.text,c=t.start,f=t.end;if('string'!=typeof s)return n.apply(void 0,arguments);var u=0;return o.split(s).map(function(t){var n=u,o={formats:l.slice(n,n+t.length),text:t};return u+=s.length+t.length,void 0!==c&&void 0!==f&&(c>=n&&cn&&(o.start=0),f>=n&&fu&&(o.end=t.length)),o})};var t=r(d[0]);function n(n){var s=n.formats,l=n.text,o=n.start,c=n.end,f=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o,u=arguments.length>2&&void 0!==arguments[2]?arguments[2]:c,v={formats:s.slice(0,f),text:l.slice(0,f)},p={formats:s.slice(u),text:l.slice(u),start:0,end:0};return[(0,t.replace)(v,/\u2028+$/,''),(0,t.replace)(p,/^\u2028+/,'')]}},1119,[1115]); -__d(function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.toDom=w,e.apply=function(t){var n=t.value,o=t.current,l=t.multilineTag,u=t.multilineWrapperTags,f=t.createLinePadding,s=t.prepareEditableTree,p=w({value:n,multilineTag:l,multilineWrapperTags:u,createLinePadding:f,prepareEditableTree:s}),c=p.body,v=p.selection;L(c,o),void 0!==n.start&&x(v,o)},e.applyValue=L,e.applySelection=x;var n=t(r(d[1])),o=t(r(d[2])),l=r(d[3]),u=r(d[4]),f=window.Node,s=f.TEXT_NODE,p=f.ELEMENT_NODE;function c(t,n,l){for(var u=t.parentNode,f=0;t=t.previousSibling;)f++;return l=[f].concat((0,o.default)(l)),u!==n&&(l=c(u,n,l)),l}function v(t,n){for(n=(0,o.default)(n);t&&n.length>1;)t=t.childNodes[n.shift()];return{node:t,offset:n[0]}}var h=function(){return(0,u.createElement)(document,'')};function T(t,n){'string'==typeof n&&(n=t.ownerDocument.createTextNode(n));var o=n,l=o.type,u=o.attributes;if(l)for(var f in n=t.ownerDocument.createElement(l),u)n.setAttribute(f,u[f]);return t.appendChild(n)}function E(t,n){t.appendData(n)}function N(t){return t.lastChild}function C(t){return t.parentNode}function b(t){return t.nodeType===s}function y(t){return t.nodeValue}function P(t){return t.parentNode.removeChild(t)}function S(t){for(var n=t.element,o=t.createLinePadding,l=t.multilineWrapperTags,u=n.childNodes.length,f=n.ownerDocument,p=0;p0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1?arguments[1]:void 0;return t.reduce(function(t,o){return o(t,n.text)},n.formats)}function w(t){var o=t.value,u=t.multilineTag,f=t.multilineWrapperTags,s=t.createLinePadding,p=t.prepareEditableTree,v=[],w=[],L=(0,l.toTree)({value:(0,n.default)({},o,{formats:D(p,o)}),multilineTag:u,multilineWrapperTags:f,createEmpty:h,append:T,getLastChild:N,getParent:C,isText:b,getText:y,remove:P,appendText:E,onStartIndex:function(t,n){v=c(n,t,[n.nodeValue.length])},onEndIndex:function(t,n){w=c(n,t,[n.nodeValue.length])},isEditableTree:!0});return s&&S({element:L,createLinePadding:s,multilineWrapperTags:f}),{body:L,selection:{startPath:v,endPath:w}}}function L(t,n){for(var o,l=0;o=t.firstChild;){var u=n.childNodes[l];u?u.isEqualNode(o)?t.removeChild(o):n.replaceChild(o,u):n.appendChild(o),l++}for(;n.childNodes[l];)n.removeChild(n.childNodes[l])}function x(t,n){var o,l,u=v(n,t.startPath),f=u.node,c=u.offset,h=v(n,t.endPath),T=h.node,E=h.offset,N=window.getSelection(),C=n.ownerDocument.createRange(),b=f===T&&c===E;if(b&&0===c&&f.previousSibling&&f.previousSibling.nodeType===p&&'BR'!==f.previousSibling.nodeName?(f.insertData(0,"\ufeff"),C.setStart(f,1),C.setEnd(T,1)):b&&0===c&&f===s&&0===f.nodeValue.length?(f.insertData(0,"\ufeff"),C.setStart(f,1),C.setEnd(T,1)):(C.setStart(f,c),C.setEnd(T,E)),N.rangeCount>0){if(o=C,l=N.getRangeAt(0),o.startContainer===l.startContainer&&o.startOffset===l.startOffset&&o.endContainer===l.endContainer&&o.endOffset===l.endOffset)return;N.removeAllRanges()}N.addRange(C)}},1120,[1,43,15,1121,1104]); -__d(function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.toTree=function(t){var o,u,f,l=t.value,E=t.multilineTag,p=t.multilineWrapperTags,v=void 0===p?[]:p,A=t.createEmpty,T=t.append,R=t.getLastChild,_=t.getParent,b=t.isText,N=t.getText,y=t.remove,O=t.appendText,P=t.onStartIndex,h=t.onEndIndex,x=t.isEditableTree,I=l.formats,j=l.text,L=l.start,S=l.end,C=l.formatPlaceholder,B=I.length+1,H=A(),M={type:E};E?(T(T(H,{type:E}),''),u=o=[M]):T(H,'');function W(t,n){if(x&&C&&C.index===n){var o=_(t);t=void 0===C.format?_(o):T(o,c(C.format)),t=T(t,s.ZERO_WIDTH_NO_BREAK_SPACE)}return t}for(var D=function(t){var l=j.charAt(t),p=I[t];E&&(p=l===s.LINE_SEPARATOR?o=(p||[]).reduce(function(t,n){return l===s.LINE_SEPARATOR&&-1!==v.indexOf(n.type)&&(t.push(n),t.push(M)),t},[M]):(0,n.default)(o).concat((0,n.default)(p||[])));var A=R(H);if(f===s.LINE_SEPARATOR){for(var x=A;!b(x);)x=R(x);P&&L===t&&P(H,x),h&&S===t&&h(H,x)}if(p&&p.forEach(function(t,n){if(!A||!u||t!==u[n]||l===s.LINE_SEPARATOR&&p.length-1===n){var o=_(A),f=T(o,c(t));b(A)&&0===N(A).length&&y(A),A=T(t.object?o:f,'')}else A=R(A)}),l===s.LINE_SEPARATOR)return u=p,f=l,"continue";A=W(A,0),0===t&&(P&&0===L&&P(H,A),h&&0===S&&h(H,A)),l!==s.OBJECT_REPLACEMENT_CHARACTER&&('\n'===l?(A=T(_(A),{type:'br',object:!0}),A=T(_(A),'')):b(A)?O(A,l):A=T(_(A),l)),A=W(A,t+1),P&&L===t+1&&P(H,A),h&&S===t+1&&h(H,A),u=p,f=l},F=0;F":"<"+u+p+">"+x(o)+""}function x(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).map(function(n){return void 0===n.text?v(n):(0,t.escapeHTML)(n.text)}).join('')}},1123,[336,1121]); -__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.toggleFormat=function(u,p){if((0,t.getActiveFormat)(u,p.type))return(0,o.removeFormat)(u,p.type);return(0,n.applyFormat)(u,p)};var t=r(d[0]),o=r(d[1]),n=r(d[2])},1124,[1105,1112,1096]); -__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.unregisterFormatType=function(n){var c=(0,t.select)('core/rich-text').getFormatType(n);if(!c)return void window.console.error("Format "+n+" is not registered.");c.__experimentalCreatePrepareEditableTree&&c.__experimentalGetPropsForEditableTreePreparation&&(0,o.removeFilter)('experimentalRichText',n);return(0,t.dispatch)('core/rich-text').removeFormatTypes(n),c};var t=r(d[0]),o=r(d[1])},1125,[809,893]); -__d(function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.isKeyboardEvent=e.shortcutAriaLabel=e.displayShortcut=e.displayShortcutList=e.rawShortcut=e.modifiers=e.SHIFT=e.COMMAND=e.CTRL=e.ALT=e.F10=e.DELETE=e.DOWN=e.RIGHT=e.UP=e.LEFT=e.SPACE=e.ESCAPE=e.ENTER=e.TAB=e.BACKSPACE=void 0;var n=t(r(d[1])),u=t(r(d[2])),o=r(d[3]),c=r(d[4]),l=r(d[5]);e.BACKSPACE=8;e.TAB=9;e.ENTER=13;e.ESCAPE=27;e.SPACE=32;e.LEFT=37;e.UP=38;e.RIGHT=39;e.DOWN=40;e.DELETE=46;e.F10=121;var f='alt';e.ALT=f;var s='ctrl';e.CTRL=s;e.COMMAND="meta";var p='shift';e.SHIFT=p;var v={primary:function(t){return t()?["meta"]:[s]},primaryShift:function(t){return t()?[p,"meta"]:[s,p]},primaryAlt:function(t){return t()?[f,"meta"]:[s,f]},secondary:function(t){return t()?[p,f,"meta"]:[s,p,f]},access:function(t){return t()?[s,f]:[p,f]},ctrl:function(){return[s]},alt:function(){return[f]},ctrlShift:function(){return[s,p]},shift:function(){return[p]},shiftAlt:function(){return[p,f]}};e.modifiers=v;var A=(0,o.mapValues)(v,function(t){return function(n){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:l.isAppleOS;return(0,u.default)(t(o)).concat([n.toLowerCase()]).join('+')}});e.rawShortcut=A;var S=(0,o.mapValues)(v,function(t){return function(c){var v,A=arguments.length>1&&void 0!==arguments[1]?arguments[1]:l.isAppleOS,S=A(),E=(v={},(0,n.default)(v,f,S?'\u2325':'Alt'),(0,n.default)(v,s,S?'^':'Ctrl'),(0,n.default)(v,"meta",'\u2318'),(0,n.default)(v,p,S?'\u21e7':'Shift'),v),h=t(A).reduce(function(t,n){var c=(0,o.get)(E,n,n);return S?(0,u.default)(t).concat([c]):(0,u.default)(t).concat([c,'+'])},[]),C=(0,o.capitalize)(c);return(0,u.default)(h).concat([C])}});e.displayShortcutList=S;var E=(0,o.mapValues)(S,function(t){return function(n){var u=arguments.length>1&&void 0!==arguments[1]?arguments[1]:l.isAppleOS;return t(n,u).join('')}});e.displayShortcut=E;var h=(0,o.mapValues)(v,function(t){return function(v){var A,S=arguments.length>1&&void 0!==arguments[1]?arguments[1]:l.isAppleOS,E=S(),h=(A={},(0,n.default)(A,p,'Shift'),(0,n.default)(A,"meta",E?'Command':'Control'),(0,n.default)(A,s,'Control'),(0,n.default)(A,f,E?'Option':'Alt'),(0,n.default)(A,',',(0,c.__)('Comma')),(0,n.default)(A,'.',(0,c.__)('Period')),(0,n.default)(A,'`',(0,c.__)('Backtick')),A);return(0,u.default)(t(S)).concat([v]).map(function(t){return(0,o.capitalize)((0,o.get)(h,t,t))}).join(E?' ':' + ')}});e.shortcutAriaLabel=h;var C=(0,o.mapValues)(v,function(t){return function(n,u){var c=arguments.length>2&&void 0!==arguments[2]?arguments[2]:l.isAppleOS,f=t(c);return!!f.every(function(t){return n[t+"Key"]})&&(u?n.key===u:(0,o.includes)(f,n.key.toLowerCase()))}});e.isKeyboardEvent=C},1126,[1,44,15,332,877,1127]); -__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.isAppleOS=function(){return'ios'===n.Platform.OS};var n=r(d[0])},1127,[2]); -__d(function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var l=r(d[1]),n=r(d[2]),o=t(r(d[3]));var u=function(t){return(0,l.createElement)(n.View,{style:o.default.emptyStateContainer},(0,l.createElement)(n.Text,{style:o.default.emptyStateTitle},"Image"),(0,l.createElement)(n.Text,{style:o.default.emptyStateDescription},"Select an image from your library."),(0,l.createElement)(n.View,{style:o.default.emptyStateButtonsContainer},(0,l.createElement)(n.Button,{title:"Media Library",onPress:t.onMediaLibraryPress})))};e.default=u},1128,[1,330,2,1129]); -__d(function(g,r,i,a,m,e,d){m.exports={emptyStateContainer:{alignItems:"center",backgroundColor:"#f2f2f2",paddingLeft:12,paddingRight:12,paddingTop:12,paddingBottom:12},emptyStateTitle:{textAlign:"center",fontWeight:"600",paddingBottom:12},emptyStateDescription:{textAlign:"center"},emptyStateButtonsContainer:{flexDirection:"row",alignItems:"center"}}},1129,[]); -__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var l=r(d[0]),t=r(d[1]),o=(0,l.createSlotFill)('BlockFormatControls'),c=o.Fill,f=o.Slot,u=(0,t.ifBlockEditSelected)(c);u.Slot=f;var n=u;e.default=n},1130,[925,1131]); -__d(function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.ifBlockEditSelected=e.withBlockEditContext=e.BlockEditContextProvider=void 0;var n=r(d[1]),o=t(r(d[2])),c=r(d[3]),l=r(d[4]),u=(0,n.createContext)({name:'',isSelected:!1,focusedElement:null,setFocusedElement:c.noop,clientId:null}),f=u.Consumer,E=u.Provider;e.BlockEditContextProvider=E;e.withBlockEditContext=function(t){return(0,l.createHigherOrderComponent)(function(c){return function(l){return(0,n.createElement)(f,null,function(u){return(0,n.createElement)(c,(0,o.default)({},l,t(u,l)))})}},'withBlockEditContext')};var C=(0,l.createHigherOrderComponent)(function(t){return function(o){return(0,n.createElement)(f,null,function(c){return c.isSelected&&(0,n.createElement)(t,o)})}},'ifBlockEditSelected');e.ifBlockEditSelected=C},1131,[1,330,8,332,865]); -__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var l=r(d[0]),t=r(d[1]),o=r(d[2]),n=(0,t.createSlotFill)('BlockControls'),c=n.Fill,u=n.Slot,f=(0,o.ifBlockEditSelected)(function(o){var n=o.controls,u=o.children;return(0,l.createElement)(c,null,(0,l.createElement)(t.Toolbar,{controls:n}),u)});f.Slot=u;var v=f;e.default=v},1132,[330,925,1131]); -__d(function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=r(d[1]),u=t(r(d[2])),l=t(r(d[3])),s=t(r(d[4])),o=t(r(d[5])),c=t(r(d[6])),f=t(r(d[7])),v=t(r(d[8])),E=r(d[9]),h=(function(t){function h(t){var n;return(0,u.default)(this,h),(n=(0,s.default)(this,(0,o.default)(h).call(this,t))).setFocusedElement=n.setFocusedElement.bind((0,f.default)((0,f.default)(n))),n.state={focusedElement:null,setFocusedElement:n.setFocusedElement},n}return(0,c.default)(h,t),(0,l.default)(h,[{key:"setFocusedElement",value:function(t){this.setState(function(n){return n.focusedElement===t?null:{focusedElement:t}})}},{key:"render",value:function(){return(0,n.createElement)(E.BlockEditContextProvider,{value:this.state},(0,n.createElement)(v.default,this.props))}}],[{key:"getDerivedStateFromProps",value:function(t){var n=t.clientId;return{name:t.name,isSelected:t.isSelected,clientId:n}}}]),h})(n.Component);e.default=h},1133,[1,330,19,20,27,30,33,29,1134,1131]); -__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.Edit=void 0;var t=r(d[0]),l=r(d[1]),n=r(d[2]),u=function(l){var u=l.name,o=(0,n.getBlockType)(u);if(!o)return null;var c=o.edit;return(0,t.createElement)(c,l)};e.Edit=u;var o=(0,l.withFilters)('editor.BlockEdit')(u);e.default=o},1134,[330,925,807]); -__d(function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.DefaultBlockAppender=f,e.default=void 0;var o=r(d[1]),n=r(d[2]),l=r(d[3]),c=r(d[4]),u=r(d[5]),s=r(d[6]),p=t(r(d[7]));function f(t){var c=t.isLocked,s=t.isVisible,f=t.onAppend,v=t.placeholder;if(c||!s)return null;var b=(0,u.decodeEntities)(v)||(0,l.__)("Start writing or press \u2295 to add content");return(0,o.createElement)(n.TouchableWithoutFeedback,{onPress:f},(0,o.createElement)(n.View,{style:p.default.blockHolder,pointerEvents:"box-only"},(0,o.createElement)(n.View,{style:p.default.blockContainer},(0,o.createElement)(n.TextInput,{style:p.default.textView,textAlignVertical:"top",multiline:!0,numberOfLines:0,value:b}))))}var v=(0,c.compose)((0,s.withSelect)(function(t,o){var n=t('core/editor'),l=n.getBlockCount,c=n.getEditorSettings,u=n.getTemplateLock,s=!l(o.rootClientId),p=c().bodyPlaceholder;return{isVisible:s,isLocked:!!u(o.rootClientId),placeholder:p}}),(0,s.withDispatch)(function(t,o){var n=t('core/editor'),l=n.insertDefaultBlock,c=n.startTyping;return{onAppend:function(){var t=o.rootClientId;l(void 0,t),c()}}}))(f);e.default=v},1135,[1,330,2,877,865,916,809,1136]); -__d(function(g,r,i,a,m,e,d){m.exports={blockHolder:{flexGrow:1,flexShrink:1},blockContainer:{backgroundColor:"#fff",paddingTop:8,paddingRight:8,paddingBottom:8,paddingLeft:8},textView:{color:"#87a6bc",fontSize:16}}},1136,[]); -__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=r(d[0]),t=r(d[1]),c=r(d[2]),n=r(d[3]),u=r(d[4]),l=r(d[5]);var s=(0,u.compose)([(0,n.withSelect)(function(o){return{hasRedo:o('core/editor').hasEditorRedo()}}),(0,n.withDispatch)(function(o){return{redo:o('core/editor').redo}})])(function(n){var u=n.hasRedo,s=n.redo;return(0,o.createElement)(c.IconButton,{icon:"redo",label:(0,t.__)('Redo'),shortcut:l.displayShortcut.primaryShift('z'),"aria-disabled":!u,onClick:u?s:void 0,className:"editor-history__redo"})});e.default=s},1137,[330,877,925,809,865,1126]); -__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=r(d[0]),t=r(d[1]),n=r(d[2]),u=r(d[3]),c=r(d[4]),l=r(d[5]);var s=(0,c.compose)([(0,u.withSelect)(function(o){return{hasUndo:o('core/editor').hasEditorUndo()}}),(0,u.withDispatch)(function(o){return{undo:o('core/editor').undo}})])(function(u){var c=u.hasUndo,s=u.undo;return(0,o.createElement)(n.IconButton,{icon:"undo",label:(0,t.__)('Undo'),shortcut:l.displayShortcut.primary('z'),"aria-disabled":!c,onClick:c?s:void 0,className:"editor-history__undo"})});e.default=s},1138,[330,877,925,809,865,1126]); -__d(function(g,r,i,a,m,e,d){},1139,[]); -__d(function(g,r,i,a,m,e,d){m.exports={blockCode:{fontFamily:"courier"}}},1140,[]); -__d(function(g,r,i,a,m,e,d){m.exports={blockCode:{fontFamily:"monospace"}}},1141,[]); -__d(function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.getLevelFromHeadingNodeName=y,e.settings=e.name=void 0;var n=r(d[1]),o=t(r(d[2])),c=t(r(d[3])),l=t(r(d[4])),h=r(d[5]),s=r(d[6]),u=r(d[7]),p=r(d[8]),f=r(d[9]),v=t(r(d[10]));function y(t){return Number(t.substr(1))}var b={className:!1,anchor:!0},N={content:{type:'string',source:'html',selector:'h1,h2,h3,h4,h5,h6',default:''},level:{type:'number',default:2},align:{type:'string'},placeholder:{type:'string'}};e.name='core/heading';var _={title:(0,s.__)('Heading'),description:(0,s.__)('Introduce new sections and organize content to help visitors (and search engines) understand the structure of your content.'),icon:(0,n.createElement)(f.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,n.createElement)(f.Path,{d:"M5 4v3h5.5v12h3V7H19V4z"}),(0,n.createElement)(f.Path,{fill:"none",d:"M0 0h24v24H0V0z"})),category:'common',keywords:[(0,s.__)('title'),(0,s.__)('subtitle')],supports:b,attributes:N,transforms:{from:[{type:'block',blocks:['core/paragraph'],transform:function(t){var n=t.content;return(0,u.createBlock)('core/heading',{content:n})}},{type:'raw',selector:'h1,h2,h3,h4,h5,h6',schema:{h1:{children:(0,u.getPhrasingContentSchema)()},h2:{children:(0,u.getPhrasingContentSchema)()},h3:{children:(0,u.getPhrasingContentSchema)()},h4:{children:(0,u.getPhrasingContentSchema)()},h5:{children:(0,u.getPhrasingContentSchema)()},h6:{children:(0,u.getPhrasingContentSchema)()}},transform:function(t){return(0,u.createBlock)('core/heading',(0,c.default)({},(0,u.getBlockAttributes)('core/heading',t.outerHTML),{level:y(t.nodeName)}))}}].concat((0,l.default)([2,3,4,5,6].map(function(t){return{type:'prefix',prefix:Array(t+1).join('#'),transform:function(n){return(0,u.createBlock)('core/heading',{level:t,content:n})}}}))),to:[{type:'block',blocks:['core/paragraph'],transform:function(t){var n=t.content;return(0,u.createBlock)('core/paragraph',{content:n})}}]},deprecated:[{supports:b,attributes:(0,c.default)({},(0,h.omit)(N,['level']),{nodeName:{type:'string',source:'property',selector:'h1,h2,h3,h4,h5,h6',property:'nodeName',default:'H2'}}),migrate:function(t){var n=t.nodeName,l=(0,o.default)(t,["nodeName"]);return(0,c.default)({},l,{level:y(n)})},save:function(t){var o=t.attributes,c=o.align,l=o.nodeName,h=o.content;return(0,n.createElement)(p.RichText.Content,{tagName:l.toLowerCase(),style:{textAlign:c},value:h})}}],merge:function(t,n){return{content:t.content+n.content}},edit:v.default,save:function(t){var o=t.attributes,c=o.align,l=o.level,h=o.content,s='h'+l;return(0,n.createElement)(p.RichText.Content,{tagName:s,style:{textAlign:c},value:h})}};e.settings=_},1142,[1,330,6,43,15,332,877,807,1019,925,1143]); -__d(function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=r(d[1]),l=t(r(d[2])),o=t(r(d[3])),c=t(r(d[4])),u=t(r(d[5])),s=t(r(d[6])),h=t(r(d[7])),f=t(r(d[8])),p=r(d[9]),v=r(d[10]),x=r(d[11]),B=r(d[12]);r(d[13]);var C=(function(t){function C(t){var n;return(0,o.default)(this,C),(n=(0,u.default)(this,(0,s.default)(C).call(this,t))).state={aztecHeight:0},n}return(0,h.default)(C,t),(0,c.default)(C,[{key:"render",value:function(){var t=this,o=this.props,c=o.attributes,u=o.setAttributes,s=o.mergeBlocks,h=o.insertBlocksAfter,C=c.level,_=c.placeholder,b=c.content,k='h'+C;return(0,n.createElement)(p.View,null,(0,n.createElement)(x.BlockControls,null,(0,n.createElement)(f.default,{minLevel:2,maxLevel:5,selectedLevel:C,onChange:function(t){return u({level:t})}})),(0,n.createElement)(x.RichText,{tagName:k,value:b,isSelected:this.props.isSelected,onFocus:this.props.onFocus,onBlur:this.props.onBlur,style:{minHeight:Math.max(50,this.state.aztecHeight)},onChange:function(n){var o=(0,B.parse)("\x3c!-- wp:heading {\"level\":"+C+"} --\x3e<"+k+">"+n.content+"\x3c!-- /wp:heading --\x3e")[0];u((0,l.default)({},t.props.attributes,{content:o.attributes.content}))},onMerge:s,onSplit:h?function(t,n){u({content:t});for(var l=arguments.length,o=new Array(l>2?l-2:0),c=2;c2?p-2:0),f=2;f'+n.content+'

\x3c!-- /wp:paragraph --\x3e')[0];c((0,l.default)({},t.props.attributes,{content:o.attributes.content}))},onSplit:this.splitBlock,onMerge:u,onContentSizeChange:function(n){t.setState({aztecHeight:n.aztecHeight})},placeholder:h||(0,v.__)('Add text or type / to add content')}))}}]),x})(n.Component);e.default=x},1150,[1,330,43,19,20,27,30,33,29,2,877,807,1019,1151]); -__d(function(g,r,i,a,m,e,d){m.exports={blockText:{minHeight:50}}},1151,[]); -__d(function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.settings=e.name=void 0;var n=r(d[1]),l=t(r(d[2])),c=t(r(d[3])),s=t(r(d[4])),u=t(r(d[5])),o=r(d[6]),h=r(d[7]),f=r(d[8]),p=r(d[9]),b=r(d[10]),v=t(r(d[11]));e.name='core/image';var y={url:{type:'string',source:'attribute',selector:'img',attribute:'src'},alt:{type:'string',source:'attribute',selector:'img',attribute:'alt',default:''},caption:{type:'string',source:'html',selector:'figcaption'},href:{type:'string',source:'attribute',selector:'figure > a',attribute:'href'},rel:{type:'string',source:'attribute',selector:'figure > a',attribute:'rel'},linkClass:{type:'string',source:'attribute',selector:'figure > a',attribute:'class'},id:{type:'number'},align:{type:'string'},width:{type:'number'},height:{type:'number'},linkDestination:{type:'string',default:'none'},linkTarget:{type:'string',source:'attribute',selector:'figure > a',attribute:'target'}},E={img:{attributes:['src','alt'],classes:['alignleft','aligncenter','alignright','alignnone',/^wp-image-\d+$/]}},w={figure:{require:['img'],children:(0,s.default)({},E,{a:{attributes:['href','rel','target'],children:E},figcaption:{children:(0,h.getPhrasingContentSchema)()}})}},N={title:(0,o.__)('Image'),description:(0,o.__)('Insert an image to make a visual statement.'),icon:(0,n.createElement)(b.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,n.createElement)(b.Path,{d:"M0,0h24v24H0V0z",fill:"none"}),(0,n.createElement)(b.Path,{d:"m19 5v14h-14v-14h14m0-2h-14c-1.1 0-2 0.9-2 2v14c0 1.1 0.9 2 2 2h14c1.1 0 2-0.9 2-2v-14c0-1.1-0.9-2-2-2z"}),(0,n.createElement)(b.Path,{d:"m14.14 11.86l-3 3.87-2.14-2.59-3 3.86h12l-3.86-5.14z"})),category:'common',keywords:['img',(0,o.__)('photo')],attributes:y,transforms:{from:[{type:'raw',isMatch:function(t){return'FIGURE'===t.nodeName&&!!t.querySelector('img')},schema:w,transform:function(t){var n=t.className+' '+t.querySelector('img').className,l=/(?:^|\s)align(left|center|right)(?:$|\s)/.exec(n),c=l?l[1]:void 0,s=/(?:^|\s)wp-image-(\d+)(?:$|\s)/.exec(n),u=s?Number(s[1]):void 0,o=t.querySelector('a'),f=o&&o.href?'custom':void 0,p=o&&o.href?o.href:void 0,b=o&&o.rel?o.rel:void 0,v=o&&o.className?o.className:void 0,y=(0,h.getBlockAttributes)('core/image',t.outerHTML,{align:c,id:u,linkDestination:f,href:p,rel:b,linkClass:v});return(0,h.createBlock)('core/image',y)}},{type:'files',isMatch:function(t){return 1===t.length&&0===t[0].type.indexOf('image/')},transform:function(t){var n=t[0];return(0,h.createBlock)('core/image',{url:(0,p.createBlobURL)(n)})}},{type:'shortcode',tag:'caption',attributes:{url:{type:'string',source:'attribute',attribute:'src',selector:'img'},alt:{type:'string',source:'attribute',attribute:'alt',selector:'img'},caption:{shortcode:function(t,n){return n.shortcode.content.replace(/\s*]*>\s/,'')}},href:{type:'string',source:'attribute',attribute:'href',selector:'a'},rel:{type:'string',source:'attribute',attribute:'rel',selector:'a'},linkClass:{type:'string',source:'attribute',attribute:'class',selector:'a'},id:{type:'number',shortcode:function(t){var n=t.named.id;if(n)return parseInt(n.replace('attachment_',''),10)}},align:{type:'string',shortcode:function(t){var n=t.named.align;return(void 0===n?'alignnone':n).replace('align','')}}}}]},getEditWrapperProps:function(t){var n=t.align,l=t.width;if('left'===n||'center'===n||'right'===n||'wide'===n||'full'===n)return{'data-align':n,'data-resized':!!l}},edit:v.default,save:function(t){var l,s=t.attributes,o=s.url,h=s.alt,p=s.caption,b=s.align,v=s.href,y=s.rel,E=s.linkClass,w=s.width,N=s.height,x=s.id,k=s.linkTarget,T=(0,u.default)((l={},(0,c.default)(l,"align"+b,b),(0,c.default)(l,'is-resized',w||N),l)),_=(0,n.createElement)("img",{src:o,alt:h,className:x?"wp-image-"+x:null,width:w,height:N}),R=(0,n.createElement)(n.Fragment,null,v?(0,n.createElement)("a",{className:E,href:v,target:k,rel:y},_):_,!f.RichText.isEmpty(p)&&(0,n.createElement)(f.RichText.Content,{tagName:"figcaption",value:p}));return'left'===b||'right'===b||'center'===b?(0,n.createElement)("div",null,(0,n.createElement)("figure",{className:T},R)):(0,n.createElement)("figure",{className:T},R)},deprecated:[{attributes:y,save:function(t){var l,s=t.attributes,o=s.url,h=s.alt,p=s.caption,b=s.align,v=s.href,y=s.width,E=s.height,w=s.id,N=(0,u.default)((l={},(0,c.default)(l,"align"+b,b),(0,c.default)(l,'is-resized',y||E),l)),x=(0,n.createElement)("img",{src:o,alt:h,className:w?"wp-image-"+w:null,width:y,height:E});return(0,n.createElement)("figure",{className:N},v?(0,n.createElement)("a",{href:v},x):x,!f.RichText.isEmpty(p)&&(0,n.createElement)(f.RichText.Content,{tagName:"figcaption",value:p}))}},{attributes:y,save:function(t){var l=t.attributes,c=l.url,s=l.alt,u=l.caption,o=l.align,h=l.href,p=l.width,b=l.height,v=l.id,y=(0,n.createElement)("img",{src:c,alt:s,className:v?"wp-image-"+v:null,width:p,height:b});return(0,n.createElement)("figure",{className:o?"align"+o:null},h?(0,n.createElement)("a",{href:h},y):y,!f.RichText.isEmpty(u)&&(0,n.createElement)(f.RichText.Content,{tagName:"figcaption",value:u}))}},{attributes:y,save:function(t){var c=t.attributes,s=c.url,u=c.alt,o=c.caption,h=c.align,p=c.href,b=c.width,v=c.height,y=b||v?{width:b,height:v}:{},E=(0,n.createElement)("img",(0,l.default)({src:s,alt:u},y)),w={};return b?w={width:b}:'left'!==h&&'right'!==h||(w={maxWidth:'50%'}),(0,n.createElement)("figure",{className:h?"align"+h:null,style:w},p?(0,n.createElement)("a",{href:p},E):E,!f.RichText.isEmpty(o)&&(0,n.createElement)(f.RichText.Content,{tagName:"figcaption",value:o}))}}]};e.settings=N},1152,[1,330,8,44,43,1001,877,807,1019,1153,925,1154]); -__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.createBlobURL=function(n){var o=t(n);return u[o]=n,o},e.getBlobByURL=function(n){return u[n]},e.revokeBlobURL=function(n){u[n]&&o(n);delete u[n]},e.isBlobURL=function(n){if(!n||!n.indexOf)return!1;return 0===n.indexOf('blob:')};var n=window.URL,t=n.createObjectURL,o=n.revokeObjectURL,u={}},1153,[]); -__d(function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){var f=t.attributes,p=t.isSelected,E=t.setAttributes,b=f.url,h=f.caption,y=function(){o.default.onMediaLibraryPress(function(t){t&&E({url:t})})};if(!b)return(0,n.createElement)(c.MediaPlaceholder,{onUploadPress:function(){},onMediaLibraryPress:y});var _=(0,n.createElement)(u.Toolbar,null,(0,n.createElement)(u.ToolbarButton,{className:"components-toolbar__control",label:(0,s.__)('Edit image'),icon:"edit",onClick:y}));return(0,n.createElement)(l.View,{style:{flex:1}},(0,n.createElement)(c.BlockControls,null,_),(0,n.createElement)(l.Image,{style:{width:'100%',height:200},resizeMethod:"scale",source:{uri:b}}),(!c.RichText.isEmpty(h)>0||p)&&(0,n.createElement)(l.View,{style:{padding:12,flex:1}},(0,n.createElement)(l.TextInput,{style:{textAlign:'center'},underlineColorAndroid:"transparent",value:h,placeholder:'Write caption\u2026',onChangeText:function(t){return E({caption:t})}})))};var n=r(d[1]),l=r(d[2]),o=t(r(d[3])),c=r(d[4]),u=r(d[5]),s=r(d[6])},1154,[1,330,2,1155,1019,925,877]); -__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.sendNativeEditorDidLayout=function(){u&&n.editorDidLayout()},e.subscribeParentGetHtml=function(t){return o.addListener('requestGetHtml',t)},e.subscribeParentToggleHTMLMode=function(t){return o.addListener('toggleHTMLMode',t)},e.subscribeUpdateHtml=function(t){return o.addListener('updateHtml',t)},e.default=void 0;var t=r(d[0]),n=t.NativeModules.RNReactNativeGutenbergBridge,u='ios'===t.Platform.OS,o=new t.NativeEventEmitter(n);var s=n;e.default=s},1155,[2]); -__d(function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.settings=e.name=void 0;var n=r(d[1]),o=r(d[2]),c=r(d[3]),s=r(d[4]),l=t(r(d[5]));e.name='core/nextpage';var u={title:(0,o.__)('Page Break'),description:(0,o.__)('Separate your content into a multi-page experience.'),icon:(0,n.createElement)(s.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,n.createElement)(s.G,null,(0,n.createElement)(s.Path,{d:"M9 12h6v-2H9zm-7 0h5v-2H2zm15 0h5v-2h-5zm3 2v2l-6 6H6a2 2 0 0 1-2-2v-6h2v6h6v-4a2 2 0 0 1 2-2h6zM4 8V4a2 2 0 0 1 2-2h12a2 2 0 0 1 2 2v4h-2V4H6v4z"}))),category:'layout',keywords:[(0,o.__)('next page'),(0,o.__)('pagination')],supports:{customClassName:!1,className:!1,html:!1},attributes:{},transforms:{from:[{type:'raw',schema:{'wp-block':{attributes:['data-block']}},isMatch:function(t){return t.dataset&&'core/nextpage'===t.dataset.block},transform:function(){return(0,c.createBlock)('core/nextpage',{})}}]},edit:l.default,save:function(){return(0,n.createElement)(n.RawHTML,null,'\x3c!--nextpage--\x3e')}};e.settings=u},1156,[1,330,877,807,925,1157]); -__d(function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){var o=t.attributes.customText,b=void 0===o?(0,_.__)('Page break'):o;return(0,l.createElement)(n.View,{style:c.default['block-library-nextpage__container']},(0,l.createElement)(u.default,{text:b,textStyle:c.default['block-library-nextpage__text'],lineStyle:c.default['block-library-nextpage__line']}))};var l=r(d[1]),n=r(d[2]),u=t(r(d[3])),_=r(d[4]),c=t(r(d[5]))},1157,[1,330,2,1158,877,1159]); -__d(function(g,r,i,a,m,e,d){'use strict';Object.defineProperty(e,"__esModule",{value:!0});var t=(function(){function t(t,n){for(var o=0;o0&&void 0!==arguments[0]?arguments[0]:'',l=(0,u.parse)(o);t.props.onResetBlocks(l)},t.serializeToNativeAction=function(){t.props.showHtml&&t.parseBlocksAction(t.props.editedPostContent);var o=(0,u.serialize)(t.props.blocks);f.default.provideToNative_Html(o,t.lastHtml!==o),t.lastHtml=o},t.toggleHtmlModeAction=function(){t.props.onToggleBlockMode(t.props.rootClientId)},t.updateHtmlAction=function(o){t.parseBlocksAction(o)},t.mergeBlocksAction=function(o,l){t.props.onMerge(o,l)};var n=o.post||{id:1,content:{raw:o.initialHtml},type:'draft'};return t.props.setupEditor(n),t.lastHtml=(0,u.serialize)((0,u.parse)(o.initialHtml)),o.initialHtmlModeEnabled&&!o.showHtml&&t.toggleHtmlModeAction(),t}return(0,p.default)(k,o),(0,n.default)(k,[{key:"render",value:function(){return(0,t.createElement)(v.default,{rootClientId:this.props.rootClientId,blocks:this.props.blocks,showHtml:this.props.showHtml,onChange:this.onChange,focusBlockAction:this.focusBlockAction,moveBlockUpAction:this.moveBlockUpAction,moveBlockDownAction:this.moveBlockDownAction,deleteBlockAction:this.deleteBlockAction,createBlockAction:this.createBlockAction,serializeToNativeAction:this.serializeToNativeAction,toggleHtmlModeAction:this.toggleHtmlModeAction,updateHtmlAction:this.updateHtmlAction,mergeBlocksAction:this.mergeBlocksAction,isBlockSelected:this.props.isBlockSelected})}}]),k})(k.default.Component),H=(0,A.compose)([(0,B.withSelect)(function(o,t){var l=t.rootClientId,n=o('core/editor'),c=n.getBlockIndex,s=n.getBlocks,p=n.getSelectedBlockClientId,k=n.isBlockSelected,u=n.getBlockMode,B=n.getEditedPostContent;return{isBlockSelected:k,selectedBlockIndex:c(p(),l),blocks:s(l),showHtml:'html'===u(l),editedPostContent:B()}}),(0,B.withDispatch)(function(o){var t=o('core/editor'),l=t.clearSelectedBlock,n=t.insertBlock,c=t.mergeBlocks,s=t.moveBlocksDown,p=t.moveBlocksUp,k=t.removeBlock,u=t.resetBlocks,B=t.selectBlock,A=t.setupEditor,f=t.updateBlockAttributes,v=t.toggleBlockMode;return{clearSelectedBlock:l,onInsertBlock:n,onMerge:c,onMoveDown:s,onMoveUp:p,onRemove:k,onResetBlocks:u,onToggleBlockMode:v,onSelect:function(o){l(),B(o)},onAttributesUpdate:f,setupEditor:A}})])(h);e.default=H},1160,[1,330,19,20,27,30,33,46,807,809,865,1155,1161]); -__d(function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=r(d[1]),o=t(r(d[2])),s=t(r(d[3])),u=t(r(d[4])),l=t(r(d[5])),c=t(r(d[6])),p=t(r(d[7])),f=r(d[8]),b=t(r(d[9])),h=r(d[10]),H=(function(t){function p(){return(0,o.default)(this,p),(0,u.default)(this,(0,l.default)(p).apply(this,arguments))}return(0,c.default)(p,t),(0,s.default)(p,[{key:"componentDidMount",value:function(){var t=this;this.subscriptionParentGetHtml=(0,f.subscribeParentGetHtml)(function(){t.props.serializeToNativeAction()}),this.subscriptionParentToggleHTMLMode=(0,f.subscribeParentToggleHTMLMode)(function(){t.props.toggleHtmlModeAction()}),this.subscriptionParentUpdateHtml=(0,f.subscribeUpdateHtml)(function(n){t.props.updateHtmlAction(n.html)})}},{key:"componentWillUnmount",value:function(){this.subscriptionParentGetHtml&&this.subscriptionParentGetHtml.remove(),this.subscriptionParentToggleHTMLMode&&this.subscriptionParentToggleHTMLMode.remove(),this.subscriptionParentUpdateHtml&&this.subscriptionParentUpdateHtml.remove()}},{key:"render",value:function(){return(0,n.createElement)(h.SlotFillProvider,null,(0,n.createElement)(b.default,this.props))}}]),p})(p.default.Component);e.default=H},1161,[1,330,19,20,27,30,33,46,1155,1162,925]); -__d(function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.BlockManager=void 0;var o=r(d[1]),n=t(r(d[2])),l=t(r(d[3])),s=t(r(d[4])),c=t(r(d[5])),u=t(r(d[6])),f=t(r(d[7])),k=t(r(d[8])),h=t(r(d[9])),y=r(d[10]),p=t(r(d[11])),b=r(d[12]),v=r(d[13]),B=t(r(d[14])),I=r(d[15]),A=t(r(d[16])),S=t(r(d[17])),w=t(r(d[18])),E=t(r(d[19])),D=t(r(d[20])),T=t(r(d[21])),V=t(r(d[22])),H=t(r(d[23])),L=t(r(d[24])),P=r(d[25]),K=r(d[26]),C=r(d[27]),R=r(d[28]),x=r(d[29]),U=(t(r(d[30])),(function(t){function p(t){var o;(0,s.default)(this,p),(o=(0,u.default)(this,(0,f.default)(p).call(this,t))).onSafeAreaInsetsUpdate=function(t){var n=t.safeAreaInsets;o.state.safeAreaBottomInset!==n.bottom&&o.setState((0,l.default)({},o.state,{safeAreaBottomInset:n.bottom}))},o.onInlineToolbarButtonPressed=function(t,n){switch(t){case I.InlineToolbarActions.UP:o.props.moveBlockUpAction(n);break;case I.InlineToolbarActions.DOWN:o.props.moveBlockDownAction(n);break;case I.InlineToolbarActions.DELETE:o.props.deleteBlockAction(n)}},o.onRootViewLayout=function(t){var n=t.nativeEvent.layout.height;o.setState({rootViewHeight:n},function(){(0,x.sendNativeEditorDidLayout)()})},o.keyboardDidShow=function(){o.setState({isKeyboardVisible:!0})},o.keyboardDidHide=function(){o.setState({isKeyboardVisible:!1})},o.mergeBlocks=function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],n=o.state.blocks.findIndex(function(t){return t.focused});if(-1!==n){var l=o.state.blocks[n],s=o.state.blocks[n-1],c=o.state.blocks[n+1];!t&&!s||t&&!c||(t?o.props.mergeBlocksAction(l.clientId,c.clientId):o.props.mergeBlocksAction(s.clientId,l.clientId))}},(0,h.default)((0,h.default)(o)).renderItem=o.renderItem.bind((0,h.default)((0,h.default)(o))),(0,h.default)((0,h.default)(o)).shouldFlatListPreventAutomaticScroll=o.shouldFlatListPreventAutomaticScroll.bind((0,h.default)((0,h.default)(o))),(0,h.default)((0,h.default)(o)).keyExtractor=o.keyExtractor.bind((0,h.default)((0,h.default)(o))),(0,h.default)((0,h.default)(o)).onSafeAreaInsetsUpdate=o.onSafeAreaInsetsUpdate.bind((0,h.default)((0,h.default)(o)));var n=t.blocks.map(function(o){var n=(0,l.default)({},o);return n.focused=t.isBlockSelected(o.clientId),n});return o.state={blocks:n,blockTypePickerVisible:!1,selectedBlockType:'core/paragraph',refresh:!1,isKeyboardVisible:!1,rootViewHeight:0,safeAreaBottomInset:0},L.default.getSafeAreaInsetsForRootView().then(o.onSafeAreaInsetsUpdate),o}return(0,k.default)(p,t),(0,c.default)(p,[{key:"showBlockTypePicker",value:function(t){this.setState((0,l.default)({},this.state,{blockTypePickerVisible:t}))}},{key:"onKeyboardHide",value:function(){v.Keyboard.dismiss()}},{key:"onBlockTypeSelected",value:function(t){this.setState({selectedBlockType:t,blockTypePickerVisible:!1});var o=(0,C.createBlock)(t);this.isReplaceable(this.props.selectedBlock)?this.props.replaceBlock(this.props.selectedBlockClientId,o):this.props.createBlockAction(o.clientId,o),this.props.focusBlockAction(o.clientId)}},{key:"componentDidMount",value:function(){this.keyboardDidShowListener=v.Keyboard.addListener("keyboardDidShow",this.keyboardDidShow),this.keyboardDidHideListener=v.Keyboard.addListener("keyboardDidHide",this.keyboardDidHide),L.default.addEventListener("safeAreaInsetsForRootViewDidChange",this.onSafeAreaInsetsUpdate)}},{key:"componentWillUnmount",value:function(){v.Keyboard.removeListener("keyboardDidShow",this.keyboardDidShow),v.Keyboard.removeListener("keyboardDidHide",this.keyboardDidHide),L.default.removeEventListener("safeAreaInsetsForRootViewDidChange",this.onSafeAreaInsetsUpdate)}},{key:"insertBlocksAfter",value:function(t,o){var n=o[0];n&&(this.props.createBlockAction(n.clientId,n),this.props.focusBlockAction(n.clientId))}},{key:"onReplace",value:function(t,o){this.props.replaceBlock(t,o)}},{key:"shouldFlatListPreventAutomaticScroll",value:function(){return this.state.blockTypePickerVisible}},{key:"keyExtractor",value:function(t){return t.clientId}},{key:"renderList",value:function(){var t=this,n=(0,o.createElement)(H.default,{blockToolbarHeight:w.default.container.height,innerToolbarHeight:S.default.toolbar.height,safeAreaBottomInset:this.state.safeAreaBottomInset,keyboardShouldPersistTaps:"always",style:A.default.list,data:this.state.blocks,extraData:{refresh:this.state.refresh},keyExtractor:this.keyExtractor,renderItem:this.renderItem,shouldPreventAutomaticScroll:this.shouldFlatListPreventAutomaticScroll});return(0,o.createElement)(v.View,{style:{flex:1}},(0,o.createElement)(R.DefaultBlockAppender,{rootClientId:this.props.rootClientId}),n,(0,o.createElement)(v.SafeAreaView,null,(0,o.createElement)(v.View,{style:{height:w.default.container.height}})),(0,o.createElement)(V.default,{style:A.default.blockToolbarKeyboardAvoidingView,parentHeight:this.state.rootViewHeight},(0,o.createElement)(T.default,{onInsertClick:function(){t.showBlockTypePicker(!0)},onKeyboardHide:function(){t.onKeyboardHide()},showKeyboardHideButton:this.state.isKeyboardVisible})))}},{key:"render",value:function(){var t=this,n=this.renderList(),l=(0,o.createElement)(E.default,{onDismiss:function(){t.showBlockTypePicker(!1)},onValueSelected:function(o){t.onBlockTypeSelected(o)}});return(0,o.createElement)(v.SafeAreaView,{style:A.default.container,onLayout:this.onRootViewLayout},this.props.showHtml&&this.renderHTML(),!this.props.showHtml&&n,this.state.blockTypePickerVisible&&l)}},{key:"isFirstBlock",value:function(t){return 0===t}},{key:"isLastBlock",value:function(t){return t===this.state.blocks.length-1}},{key:"isReplaceable",value:function(t){return!!t&&(0,C.isUnmodifiedDefaultBlock)(t)}},{key:"renderItem",value:function(t){var l=this,s=(0,y.__)('ADD BLOCK HERE'),c=(0,o.createElement)(v.View,{style:A.default.containerStyleAddHere},(0,o.createElement)(v.View,{style:A.default.lineStyleAddHere}),(0,o.createElement)(v.Text,{style:A.default.labelStyleAddHere}," ",s," "),(0,o.createElement)(v.View,{style:A.default.lineStyleAddHere})),u=!this.isFirstBlock(t.index),f=!this.isLastBlock(t.index);return(0,o.createElement)(v.View,null,(0,o.createElement)(B.default,(0,n.default)({key:t.item.clientId,onInlineToolbarButtonPressed:this.onInlineToolbarButtonPressed,onChange:this.props.onChange,showTitle:!1,clientId:t.item.clientId,canMoveUp:u,canMoveDown:f,insertBlocksAfter:function(o){return l.insertBlocksAfter(t.item.clientId,o)},mergeBlocks:this.mergeBlocks,onReplace:function(o){return l.onReplace(t.item.clientId,o)}},t.item)),this.state.blockTypePickerVisible&&t.item.focused&&!this.isReplaceable(t.item)&&c)}},{key:"renderHTML",value:function(){return(0,o.createElement)(D.default,this.props)}}],[{key:"getDerivedStateFromProps",value:function(t,o){var n=t.blocks.map(function(o){var n=(0,l.default)({},o);return n.focused=t.isBlockSelected(o.clientId),n});return(0,b.isEqual)(o.blocks,n)?null:{blocks:n,refresh:!o.refresh}}}]),p})(p.default.Component));e.BlockManager=U;var F=(0,K.compose)([(0,P.withSelect)(function(t){var o=t('core/editor'),n=o.getSelectedBlock,l=o.getSelectedBlockClientId;return{selectedBlock:n(),selectedBlockClientId:l()}}),(0,P.withDispatch)(function(t){return{replaceBlock:t('core/editor').replaceBlock}})])(U);e.default=F},1162,[1,330,8,43,19,20,27,30,33,29,877,46,332,2,1163,1164,1168,1166,1169,1170,1198,1200,1202,1203,1204,809,865,807,1019,1155,1208]); -__d(function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.BlockHolder=void 0;var o=r(d[1]),l=t(r(d[2])),n=t(r(d[3])),s=t(r(d[4])),c=t(r(d[5])),u=t(r(d[6])),p=t(r(d[7])),f=t(r(d[8])),h=r(d[9]),k=t(r(d[10])),v=r(d[11]),B=r(d[12]),y=t(r(d[13])),b=r(d[14]),F=t(r(d[15])),S=(function(t){function f(t){var o;return(0,n.default)(this,f),(o=(0,c.default)(this,(0,u.default)(f).call(this,t))).onBlockHolderLayout=function(t){var n=h.Dimensions.get('window').width>t.nativeEvent.layout.width;n!==o.state.isFullyBordered&&o.setState((0,l.default)({},o.state,{isFullyBordered:n}))},o.state={isFullyBordered:!1},o}return(0,p.default)(f,t),(0,s.default)(f,[{key:"renderToolbarIfBlockFocused",value:function(){return this.props.isSelected?(0,o.createElement)(k.default,{clientId:this.props.clientId,onButtonPressed:this.props.onInlineToolbarButtonPressed,canMoveUp:this.props.canMoveUp,canMoveDown:this.props.canMoveDown}):(0,o.createElement)(h.View,null)}},{key:"getBlockForType",value:function(){var t=this;return(0,o.createElement)(b.BlockEdit,{name:this.props.name,isSelected:this.props.isSelected,attributes:(0,l.default)({},this.props.attributes),setAttributes:function(o){return t.props.onChange(t.props.clientId,(0,l.default)({},t.props.attributes,o))},onFocus:this.props.onSelect,onReplace:this.props.onReplace,insertBlocksAfter:this.props.insertBlocksAfter,mergeBlocks:this.props.mergeBlocks})}},{key:"renderBlockTitle",value:function(){return(0,o.createElement)(h.View,{style:y.default.blockTitle},(0,o.createElement)(h.Text,null,"BlockType: ",this.props.name))}},{key:"render",value:function(){var t=this.props.focused;return(0,o.createElement)(h.TouchableWithoutFeedback,{onPress:this.props.onSelect,onLayout:this.onBlockHolderLayout},(0,o.createElement)(h.View,{style:[y.default.blockHolder,t&&this.blockHolderFocusedStyle()]},this.props.showTitle&&this.renderBlockTitle(),(0,o.createElement)(h.View,{style:[!t&&y.default.blockContainer,t&&y.default.blockContainerFocused]},this.getBlockForType()),this.renderToolbarIfBlockFocused()))}},{key:"blockHolderFocusedStyle",value:function(){return this.state.isFullyBordered?y.default.blockHolderFocusedFullBordered:y.default.blockHolderFocusedSemiBordered}}]),f})(f.default.Component);e.BlockHolder=S;var T=(0,B.compose)([(0,v.withSelect)(function(t,o){var l=o.clientId;return{isSelected:(0,t('core/editor').isBlockSelected)(l)}}),(0,v.withDispatch)(function(t,o){var l=o.clientId,n=t('core/editor'),s=n.clearSelectedBlock,c=n.selectBlock;return{onSelect:function(t){if(t){var o=F.default.currentlyFocusedField();t.nativeEvent.target===o||F.default.isTextInput(t.nativeEvent.target)||F.default.blurTextInput(o)}s(),c(l)}}})])(S);e.default=T},1163,[1,330,43,19,20,27,30,33,46,2,1164,809,865,1167,1019,1090]); -__d(function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"InlineToolbarActions",{enumerable:!0,get:function(){return P.default}}),e.default=void 0;var n=r(d[1]),o=t(r(d[2])),l=t(r(d[3])),s=t(r(d[4])),u=t(r(d[5])),f=t(r(d[6])),c=t(r(d[7])),p=t(r(d[8])),b=r(d[9]),P=t(r(d[10])),h=r(d[11]),v=r(d[12]),D=t(r(d[13])),w=(function(t){function p(){var t;return(0,o.default)(this,p),t=(0,s.default)(this,(0,u.default)(p).apply(this,arguments)),(0,c.default)((0,c.default)(t)).onUpPressed=t.onUpPressed.bind((0,c.default)((0,c.default)(t))),(0,c.default)((0,c.default)(t)).onDownPressed=t.onDownPressed.bind((0,c.default)((0,c.default)(t))),(0,c.default)((0,c.default)(t)).onDeletePressed=t.onDeletePressed.bind((0,c.default)((0,c.default)(t))),t}return(0,f.default)(p,t),(0,l.default)(p,[{key:"onUpPressed",value:function(){this.props.onButtonPressed(P.default.UP,this.props.clientId)}},{key:"onDownPressed",value:function(){this.props.onButtonPressed(P.default.DOWN,this.props.clientId)}},{key:"onDeletePressed",value:function(){this.props.onButtonPressed(P.default.DELETE,this.props.clientId)}},{key:"render",value:function(){return(0,n.createElement)(b.View,{style:D.default.toolbar},(0,n.createElement)(h.ToolbarButton,{label:(0,v.__)('Move block up'),isDisabled:!this.props.canMoveUp,onClick:this.onUpPressed,icon:"arrow-up-alt"}),(0,n.createElement)(h.ToolbarButton,{label:(0,v.__)('Move block down'),isDisabled:!this.props.canMoveDown,onClick:this.onDownPressed,icon:"arrow-down-alt"}),(0,n.createElement)(b.View,{style:D.default.spacer}),(0,n.createElement)(h.ToolbarButton,{label:(0,v.__)('Remove content'),onClick:this.onDeletePressed,icon:"trash"}))}}]),p})(p.default.Component);e.default=w},1164,[1,330,19,20,27,30,33,29,46,2,1165,925,877,1166]); -__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={UP:1,DOWN:2,DELETE:3};e.default=t},1165,[]); -__d(function(g,r,i,a,m,e,d){m.exports={toolbar:{flexDirection:"row",height:44,alignItems:"flex-start",marginLeft:2,marginRight:2},spacer:{flexGrow:1},button:{width:44,height:44,justifyContent:"center",alignItems:"center"},icon:{color:"#7b9ab1",fill:"currentColor"},iconDisabled:{color:"#e9eff3"}}},1166,[]); -__d(function(g,r,i,a,m,e,d){m.exports={blockCode:{fontFamily:"monospace"},blockText:{minHeight:50},blockHolder:{flexGrow:1,flexShrink:1},blockHolderFocusedSemiBordered:{borderColor:"#e9eff3",borderTopWidth:1,borderBottomWidth:1,borderLeftWidth:0,borderRightWidth:0},blockHolderFocusedFullBordered:{borderColor:"#e9eff3",borderTopWidth:1,borderBottomWidth:1,borderLeftWidth:1,borderRightWidth:1},blockContainer:{backgroundColor:"white",paddingLeft:16,paddingRight:16,paddingTop:12,paddingBottom:12},blockContainerFocused:{backgroundColor:"white",paddingLeft:16,paddingRight:16,paddingTop:12,paddingBottom:0},blockTitle:{backgroundColor:"grey",paddingLeft:8,paddingTop:4,paddingBottom:4},unsupportedBlock:{backgroundColor:"#e9eff3",paddingTop:8,paddingBottom:8,paddingLeft:8,paddingRight:8},unsupportedBlockImagePlaceholder:{marginTop:24,marginRight:"auto",marginBottom:8,marginLeft:"auto",textAlign:"center",backgroundColor:"#4f748e",width:20,height:20},unsupportedBlockMessage:{textAlign:"center",color:"#4f748e",paddingTop:24,paddingBottom:24,fontSize:16},aztec_container:{flexGrow:1,flexShrink:1,flexBasis:0}}},1167,[]); -__d(function(g,r,i,a,m,e,d){m.exports={container:{flexGrow:1,flexShrink:1,flexBasis:0,justifyContent:"flex-start",backgroundColor:"#fff"},list:{flexGrow:1,flexShrink:1,flexBasis:0},switch:{flexDirection:"row",justifyContent:"flex-start",alignItems:"center",marginTop:10,marginRight:10,marginBottom:10,marginLeft:10},switchLabel:{marginLeft:10},lineStyleAddHere:{flexGrow:1,flexShrink:1,flexBasis:0,backgroundColor:"#0087be",alignSelf:"center",height:2},labelStyleAddHere:{flexGrow:1,flexShrink:1,flexBasis:0,textAlign:"center",fontFamily:"monospace",fontSize:12,fontWeight:"bold"},containerStyleAddHere:{flexGrow:1,flexShrink:1,flexBasis:0,flexDirection:"row",backgroundColor:"white"},blockToolbarKeyboardAvoidingView:{position:"absolute",bottom:0,right:0,left:0}}},1168,[]); -__d(function(g,r,i,a,m,e,d){m.exports={container:{height:44,flexDirection:"row",backgroundColor:"white",borderTopColor:"#e9eff3",borderTopWidth:1}}},1169,[]); -__d(function(g,r,i,a,m,e,d){var t=r(d[0]),l=r(d[1]);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=r(d[2]),s=l(r(d[3])),o=l(r(d[4])),u=l(r(d[5])),c=l(r(d[6])),f=l(r(d[7])),p=r(d[8]),y=t(r(d[9])),h=r(d[10]),b=l(r(d[11])),E=l(r(d[12])),v=r(d[13]),k=r(d[14]),w=(function(t){function l(t){var n;return(0,s.default)(this,l),(n=(0,u.default)(this,(0,c.default)(l).call(this,t))).availableBlockTypes=(0,k.getBlockTypes)().filter(function(t){return t.name!==v.name}),n.state={selectedIndex:0},n}return(0,f.default)(l,t),(0,o.default)(l,[{key:"render",value:function(){var t=this,l=(0,p.__)('ADD BLOCK');return(0,n.createElement)(b.default,{transparent:!0,isVisible:!0,onSwipe:this.props.onDismiss.bind(this),onBackButtonPress:this.props.onDismiss.bind(this),swipeDirection:"down",style:[E.default.bottomModal,this.props.style],backdropColor:'lightgrey',backdropOpacity:.4,onBackdropPress:this.props.onDismiss.bind(this)},(0,n.createElement)(h.View,{style:E.default.modalContent},(0,n.createElement)(h.View,{style:E.default.shortLineStyle}),(0,n.createElement)(h.View,null,(0,n.createElement)(h.Text,{style:E.default.title},l)),(0,n.createElement)(h.View,{style:E.default.lineStyle}),(0,n.createElement)(h.FlatList,{keyboardShouldPersistTaps:"always",numColumns:3,data:this.availableBlockTypes,keyExtractor:function(t){return t.name},renderItem:function(l){var s=l.item;return(0,n.createElement)(h.TouchableHighlight,{style:E.default.touchableArea,underlayColor:'transparent',activeOpacity:.5,onPress:t.props.onValueSelected.bind(t,s.name)},(0,n.createElement)(h.View,{style:E.default.modalItem},(0,n.createElement)(h.View,{style:E.default.modalIcon},s.icon.src),(0,n.createElement)(h.Text,{style:E.default.modalItemLabel},s.title)))}})))}}]),l})(y.Component);e.default=w},1170,[329,1,330,19,20,27,30,33,877,46,2,1171,1195,1196,807]); -__d(function(g,r,i,a,m,e,d){var t=r(d[0]),n=r(d[1]);Object.defineProperty(e,"__esModule",{value:!0}),e.ReactNativeModal=e.default=void 0;var o=n(r(d[2])),s=n(r(d[3])),p=n(r(d[4])),l=n(r(d[5])),c=n(r(d[6])),u=n(r(d[7])),f=n(r(d[8])),b=n(r(d[9])),h=t(r(d[10])),v=r(d[11]),w=n(r(d[12])),k=r(d[13]),O=t(r(d[14])),y=n(r(d[15]));(0,k.initializeRegistryWithDefinitions)(O);var T=function(t,n){(0,k.registerAnimation)(t,(0,k.createAnimation)(n))},D=function(t){return null!==t&&"object"==typeof t},R=(function(t){function n(t){var o;return(0,l.default)(this,n),(o=(0,u.default)(this,(0,f.default)(n).call(this,t))).state={showContent:!0,isVisible:!1,deviceWidth:v.Dimensions.get("window").width,deviceHeight:v.Dimensions.get("window").height,isSwipeable:!!o.props.swipeDirection,pan:null},o.transitionLock=null,o.inSwipeClosingState=!1,o.buildPanResponder=function(){var t=null;t="right"===o.props.swipeDirection||"left"===o.props.swipeDirection?v.Animated.event([null,{dx:o.state.pan.x}]):v.Animated.event([null,{dy:o.state.pan.y}]),o.panResponder=v.PanResponder.create({onStartShouldSetPanResponder:function(){return!(o.props.scrollTo&&o.props.scrollOffset>0)},onPanResponderMove:function(n,s){var p=1-o.getAccDistancePerDirection(s)/o.state.deviceWidth;if(o.isSwipeDirectionAllowed(s))o.backdropRef&&o.backdropRef.transitionTo({opacity:o.props.backdropOpacity*p}),t(n,s);else if(o.props.scrollTo){var l=-s.dy;l>o.props.scrollOffsetMax&&(l-=(l-o.props.scrollOffsetMax)/2),o.props.scrollTo({y:l,animated:!1})}},onPanResponderRelease:function(t,n){if(o.getAccDistancePerDirection(n)>o.props.swipeThreshold&&o.props.onSwipe)return o.inSwipeClosingState=!0,void o.props.onSwipe();o.backdropRef&&o.backdropRef.transitionTo({opacity:o.props.backdropOpacity},o.props.backdropTransitionInTiming),v.Animated.spring(o.state.pan,{toValue:{x:0,y:0},bounciness:0}).start(),o.props.scrollOffset>o.props.scrollOffsetMax&&o.props.scrollTo({y:o.props.scrollOffsetMax,animated:!0})}})},o.getAccDistancePerDirection=function(t){switch(o.props.swipeDirection){case"up":return-t.dy;case"down":return t.dy;case"right":return t.dx;case"left":return-t.dx;default:return 0}},o.isSwipeDirectionAllowed=function(t){var n=t.dy,s=t.dx,p=n>0,l=n<0,c=s<0,u=s>0;return!("up"!==o.props.swipeDirection||!l)||(!("down"!==o.props.swipeDirection||!p)||(!("right"!==o.props.swipeDirection||!u)||!("left"!==o.props.swipeDirection||!c)))},o.buildAnimations=function(t){var n=t.animationIn,s=t.animationOut;if(D(n)){var p=JSON.stringify(n);T(p,n),n=p}if(D(s)){var l=JSON.stringify(s);T(l,s),s=l}o.animationIn=n,o.animationOut=s},o.handleDimensionsUpdate=function(t){var n=v.Dimensions.get("window").width,s=v.Dimensions.get("window").height;n===o.state.deviceWidth&&s===o.state.deviceHeight||o.setState({deviceWidth:n,deviceHeight:s})},o.open=function(){o.transitionLock||(o.transitionLock=!0,o.backdropRef&&o.backdropRef.transitionTo({opacity:o.props.backdropOpacity},o.props.backdropTransitionInTiming),o.state.isSwipeable&&o.state.pan.setValue({x:0,y:0}),o.contentRef&&o.contentRef[o.animationIn](o.props.animationInTiming).then(function(){o.transitionLock=!1,o.props.isVisible?o.props.onModalShow():o._close()}))},o._close=function(){if(!o.transitionLock){o.transitionLock=!0,o.backdropRef&&o.backdropRef.transitionTo({opacity:0},o.props.backdropTransitionOutTiming);var t=o.animationOut;o.inSwipeClosingState&&(o.inSwipeClosingState=!1,"up"===o.props.swipeDirection?t="slideOutUp":"down"===o.props.swipeDirection?t="slideOutDown":"right"===o.props.swipeDirection?t="slideOutRight":"left"===o.props.swipeDirection&&(t="slideOutLeft")),o.contentRef&&o.contentRef[t](o.props.animationOutTiming).then(function(){o.transitionLock=!1,o.props.isVisible?o.open():(o.setState({showContent:!1},function(){o.setState({isVisible:!1})}),o.props.onModalHide())})}},o.buildAnimations(t),o.state.isSwipeable&&(o.state=(0,p.default)({},o.state,{pan:new v.Animated.ValueXY}),o.buildPanResponder()),o.props.isVisible&&(o.state=(0,p.default)({},o.state,{isVisible:!0,showContent:!0})),o}return(0,b.default)(n,t),(0,c.default)(n,[{key:"componentWillReceiveProps",value:function(t){!this.state.isVisible&&t.isVisible&&this.setState({isVisible:!0,showContent:!0}),this.props.animationIn===t.animationIn&&this.props.animationOut===t.animationOut||this.buildAnimations(t),this.props.backdropOpacity!==t.backdropOpacity&&this.backdropRef&&this.backdropRef.transitionTo({opacity:t.backdropOpacity},this.props.backdropTransitionInTiming)}},{key:"componentDidMount",value:function(){this.state.isVisible&&this.open(),v.DeviceEventEmitter.addListener("didUpdateDimensions",this.handleDimensionsUpdate)}},{key:"componentWillUnmount",value:function(){v.DeviceEventEmitter.removeListener("didUpdateDimensions",this.handleDimensionsUpdate)}},{key:"componentDidUpdate",value:function(t,n){this.props.isVisible&&!t.isVisible?this.open():!this.props.isVisible&&t.isVisible&&this._close()}},{key:"render",value:function(){var t=this,n=this.props,l=(n.animationIn,n.animationInTiming,n.animationOut,n.animationOutTiming,n.avoidKeyboard),c=n.backdropColor,u=(n.backdropOpacity,n.backdropTransitionInTiming,n.backdropTransitionOutTiming,n.children),f=(n.isVisible,n.onModalShow,n.onBackdropPress),b=n.onBackButtonPress,w=n.useNativeDriver,O=n.style,T=(0,s.default)(n,["animationIn","animationInTiming","animationOut","animationOutTiming","avoidKeyboard","backdropColor","backdropOpacity","backdropTransitionInTiming","backdropTransitionOutTiming","children","isVisible","onModalShow","onBackdropPress","onBackButtonPress","useNativeDriver","style"]),D=this.state,R=D.deviceWidth,S=D.deviceHeight,V=[{margin:.05*R,transform:[{translateY:0}]},y.default.content,O],M={},I={};this.state.isSwipeable&&(M=(0,p.default)({},this.panResponder.panHandlers),I=this.state.pan.getLayout());var P=this.props.hideModalContentWhileAnimating&&this.props.useNativeDriver&&!this.state.showContent?h.default.createElement(k.View,null):u,C=h.default.createElement(k.View,(0,o.default)({},M,{ref:function(n){return t.contentRef=n},style:[I,V],pointerEvents:"box-none",useNativeDriver:w},T),P);return h.default.createElement(v.Modal,(0,o.default)({transparent:!0,animationType:"none",visible:this.state.isVisible,onRequestClose:b},T),h.default.createElement(v.TouchableWithoutFeedback,{onPress:f},h.default.createElement(k.View,{ref:function(n){return t.backdropRef=n},useNativeDriver:w,style:[y.default.backdrop,{backgroundColor:this.state.showContent?c:"transparent",width:R,height:S}]})),l&&h.default.createElement(v.KeyboardAvoidingView,{behavior:"ios"===v.Platform.OS?"padding":null,pointerEvents:"box-none",style:V.concat([{margin:0}])},C),!l&&C)}}]),n})(h.Component);e.ReactNativeModal=R,R.propTypes={animationIn:w.default.oneOfType([w.default.string,w.default.object]),animationInTiming:w.default.number,animationOut:w.default.oneOfType([w.default.string,w.default.object]),animationOutTiming:w.default.number,avoidKeyboard:w.default.bool,backdropColor:w.default.string,backdropOpacity:w.default.number,backdropTransitionInTiming:w.default.number,backdropTransitionOutTiming:w.default.number,children:w.default.node.isRequired,isVisible:w.default.bool.isRequired,hideModalContentWhileAnimating:w.default.bool,onModalShow:w.default.func,onModalHide:w.default.func,onBackButtonPress:w.default.func,onBackdropPress:w.default.func,onSwipe:w.default.func,swipeThreshold:w.default.number,swipeDirection:w.default.oneOf(["up","down","left","right"]),useNativeDriver:w.default.bool,style:w.default.any,scrollTo:w.default.func,scrollOffset:w.default.number,scrollOffsetMax:w.default.number,supportedOrientations:w.default.arrayOf(w.default.oneOf(["portrait","portrait-upside-down","landscape","landscape-left","landscape-right"]))},R.defaultProps={animationIn:"slideInUp",animationInTiming:300,animationOut:"slideOutDown",animationOutTiming:300,avoidKeyboard:!1,backdropColor:"black",backdropOpacity:.7,backdropTransitionInTiming:300,backdropTransitionOutTiming:300,onModalShow:function(){return null},onModalHide:function(){return null},isVisible:!1,hideModalContentWhileAnimating:!1,onBackdropPress:function(){return null},onBackButtonPress:function(){return null},swipeThreshold:100,useNativeDriver:!1,scrollTo:null,scrollOffset:0,scrollOffsetMax:0,supportedOrientations:["portrait","landscape"]};var S=R;e.default=S},1171,[329,1,8,6,43,19,20,27,30,33,46,2,60,1172,1193,1194]); -__d(function(g,r,i,a,m,e,d){var t=r(d[0]),n=r(d[1]);Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"registerAnimation",{enumerable:!0,get:function(){return f.registerAnimation}}),Object.defineProperty(e,"initializeRegistryWithDefinitions",{enumerable:!0,get:function(){return f.initializeRegistryWithDefinitions}}),Object.defineProperty(e,"createAnimation",{enumerable:!0,get:function(){return c.default}}),e.Image=e.Text=e.View=e.createAnimatableComponent=void 0;var o=r(d[2]),u=n(r(d[3])),f=r(d[4]),l=t(r(d[5])),c=n(r(d[6]));(0,f.initializeRegistryWithDefinitions)(l);var b=u.default;e.createAnimatableComponent=b;var s=(0,u.default)(o.View);e.View=s;var v=(0,u.default)(o.Text);e.Text=v;var y=(0,u.default)(o.Image);e.Image=y},1172,[329,1,2,1173,1179,1181,1178]); -__d(function(g,r,i,a,m,e,d){var t=r(d[0]),n=r(d[1]);Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){var n,k,R=t.displayName||t.name||'Component',P=T.Animated.createAnimatedComponent(t);return k=n=(function(t){function n(t){var u;(0,s.default)(this,n),(u=(0,l.default)(this,(0,f.default)(n).call(this,t))).ref=null,u.handleRef=function(t){u.ref=t};var c=new T.Animated.Value(D(0,u.props.direction)),v={},y={};return t.animation&&(y=j(t.animation),v=B(y,c)),u.state={animationValue:c,animationStyle:v,compiledAnimation:y,transitionStyle:{},transitionValues:{},currentTransitionValues:{}},t.transition&&(u.state=(0,o.default)({},u.state,u.initializeTransitionState(t.transition))),u.delayTimer=null,(0,O.getAnimationNames)().forEach(function(t){t in(0,p.default)((0,p.default)(u))||(u[t]=u.animate.bind((0,p.default)((0,p.default)(u)),t))}),u}return(0,c.default)(n,t),(0,u.default)(n,[{key:"initializeTransitionState",value:function(t){var n={},o={},s=(0,V.default)(t,this.props.style);return Object.keys(s).forEach(function(t){var u=s[t];if(-1!==E.indexOf(t))n[t]=new T.Animated.Value(0),o[t]=u;else{var l=new T.Animated.Value(u);n[t]=l,o[t]=l}}),{currentTransitionValues:s,transitionStyle:o,transitionValues:n}}},{key:"getTransitionState",value:function(t){var n=this,s='string'==typeof t?[t]:t,u=this.state,l=u.transitionValues,f=u.currentTransitionValues,c=u.transitionStyle,p=s.filter(function(t){return!n.state.transitionValues[t]});if(p.length){var v=this.initializeTransitionState(p);l=(0,o.default)({},l,v.transitionValues),f=(0,o.default)({},f,v.currentTransitionValues),c=(0,o.default)({},c,v.transitionStyle)}return{transitionValues:l,currentTransitionValues:f,transitionStyle:c}}},{key:"setNativeProps",value:function(t){this.ref&&this.ref.setNativeProps(t)}},{key:"componentDidMount",value:function(){var t=this,n=this.props,o=n.animation,s=n.duration,u=n.delay,l=n.onAnimationBegin,f=n.iterationDelay;if(o){var c=function(){l(),t.startAnimation(s,0,f,function(n){return t.props.onAnimationEnd(n)}),t.delayTimer=null};u?this.delayTimer=setTimeout(c,u):c()}}},{key:"componentWillReceiveProps",value:function(t){var n,o,s=this,u=t.animation,l=t.delay,f=t.duration,c=t.easing,p=t.transition,v=t.onAnimationBegin;if(p){var y=(0,V.default)(p,t.style);this.transitionTo(y,f,c,l)}else n=u,o=this.props.animation,n!==o&&JSON.stringify(n)!==JSON.stringify(o)&&(u?this.delayTimer?this.setAnimation(u):(v(),this.animate(u,f).then(function(t){return s.props.onAnimationEnd(t)})):this.stopAnimation())}},{key:"componentWillUnmount",value:function(){this.delayTimer&&clearTimeout(this.delayTimer)}},{key:"setAnimation",value:function(t,n){var o=j(t),s=B(o,this.state.animationValue);this.setState({animationStyle:s,compiledAnimation:o},n)}},{key:"animate",value:function(t,n,o){var s=this;return new Promise(function(u){s.setAnimation(t,function(){s.startAnimation(n,0,o,u)})})}},{key:"stopAnimation",value:function(){this.setState({scheduledAnimation:!1,animationStyle:{}}),this.state.animationValue.stopAnimation(),this.delayTimer&&(clearTimeout(this.delayTimer),this.delayTimer=null)}},{key:"startAnimation",value:function(t,n,o,s){var u=this,l=this.state,f=l.animationValue,c=l.compiledAnimation,p=this.props,v=p.direction,y=p.iterationCount,h=p.useNativeDriver,A=this.props.easing||c.easing||'ease',V=n||0,b=D(V,v),k=C(V,v);f.setValue(b),'string'==typeof A&&(A=S.default[A]);var O='reverse'===v||'alternate'===v&&!k||'alternate-reverse'===v&&!k;O&&(A=T.Easing.out(A));var E={toValue:k,easing:A,isInteraction:y<=1,duration:t||this.props.duration||1e3,useNativeDriver:h,delay:o||0};T.Animated.timing(f,E).start(function(n){V+=1,n.finished&&u.props.animation&&('infinite'===y||V=1?null:new Error('iterationCount must be a positive number or "infinite"')},iterationDelay:h.default.number,onAnimationBegin:h.default.func,onAnimationEnd:h.default.func,onTransitionBegin:h.default.func,onTransitionEnd:h.default.func,style:h.default.oneOfType([h.default.number,h.default.array,h.default.object]),transition:h.default.oneOfType([h.default.string,h.default.arrayOf(h.default.string)]),useNativeDriver:h.default.bool},n.defaultProps={animation:void 0,delay:0,direction:'normal',duration:void 0,easing:void 0,iterationCount:1,iterationDelay:0,onAnimationBegin:function(){},onAnimationEnd:function(){},onTransitionBegin:function(){},onTransitionEnd:function(){},style:void 0,transition:void 0,useNativeDriver:!1},k};var o=n(r(d[2])),s=n(r(d[3])),u=n(r(d[4])),l=n(r(d[5])),f=n(r(d[6])),c=n(r(d[7])),p=n(r(d[8])),v=n(r(d[9])),y=t(r(d[10])),h=n(r(d[11])),T=r(d[12]),A=n(r(d[13])),V=n(r(d[14])),b=n(r(d[15])),k=n(r(d[16])),O=r(d[17]),S=n(r(d[18])),E=['rotate','rotateX','rotateY','rotateZ','skewX','skewY','transformMatrix','backgroundColor','borderColor','borderTopColor','borderRightColor','borderBottomColor','borderLeftColor','shadowColor','color','textDecorationColor','tintColor'],N=['width','height'];function w(t,n){var o={};return Object.keys(n).forEach(function(s){-1===t.indexOf(s)&&(o[s]=n[s])}),o}function C(t,n){switch(n){case'reverse':return 0;case'alternate':return t%2?0:1;case'alternate-reverse':return t%2?1:0;case'normal':default:return 1}}function D(t,n){return C(t,n)?0:1}function j(t){if('string'==typeof t){var n=(0,O.getAnimationByName)(t);if(!n)throw new Error("No animation registred by the name of "+t);return n}return(0,k.default)(t)}function B(t,n){var o={};return Object.keys(t).forEach(function(s){'style'===s?(0,v.default)(o,t.style):'easing'!==s&&(o[s]=n.interpolate(t[s]))}),(0,A.default)(o)}function x(t,n,o,s,u){var l=arguments.length>5&&void 0!==arguments[5]&&arguments[5],f=arguments.length>6?arguments[6]:void 0,c=arguments.length>7?arguments[7]:void 0,p=arguments.length>8?arguments[8]:void 0,v=s||u||f?T.Animated.timing(n,{toValue:o,delay:f,duration:s||1e3,easing:'function'==typeof u?u:S.default[u||'ease'],useNativeDriver:l}):T.Animated.spring(n,{toValue:o,useNativeDriver:l});setTimeout(function(){return c(t)},f),v.start(function(){return p(t)})}},1173,[329,1,43,19,20,27,30,33,29,8,46,60,2,1174,1175,1176,1178,1179,1180]); -__d(function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){var o={};return Object.keys(t).forEach(function(f){-1!==s.indexOf(f)?(o.transform||(o.transform=[]),o.transform.push((0,n.default)({},f,t[f]))):o[f]=t[f]}),o};var n=t(r(d[1])),s=['perspective','rotate','rotateX','rotateY','rotateZ','scale','scaleX','scaleY','skewX','skewY','translateX','translateY']},1174,[1,44]); -__d(function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,u){var o={},c=(0,n.default)(u);return('string'==typeof t?[t]:t).forEach(function(t){o[t]=t in c?c[t]:(0,f.default)(t,c)}),o};var n=t(r(d[1])),f=t(r(d[2]))},1175,[1,1176,1177]); -__d(function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){var o=(0,n.default)({},f.StyleSheet.flatten(t));o.transform&&(o.transform.forEach(function(t){var n=Object.keys(t)[0];o[n]=t[n]}),delete o.transform);return o};var n=t(r(d[1])),f=r(d[2])},1176,[1,8,2]); -__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(o,f){if('backgroundColor'===o)return'rgba(0,0,0,0)';if('color'===o||-1!==o.indexOf('Color'))return'rgba(0,0,0,1)';if(0===o.indexOf('rotate')||0===o.indexOf('skew'))return'0deg';if('opacity'===o||0===o.indexOf('scale'))return 1;if('fontSize'===o)return 14;if(0===o.indexOf('margin')||0===o.indexOf('padding'))for(var l,u=0;u1?null:t}var s={}},1178,[1,1176]); -__d(function(g,r,i,a,m,e,d){var n=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.registerAnimation=u,e.getAnimationByName=function(n){return o[n]},e.getAnimationNames=function(){return Object.keys(o)},e.initializeRegistryWithDefinitions=function(n){Object.keys(n).forEach(function(o){u(o,(0,t.default)(n[o]))})};var t=n(r(d[1])),o={};function u(n,t){o[n]=t}},1179,[1,1178]); -__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var s=r(d[0]),n={linear:s.Easing.linear,ease:s.Easing.bezier(.25,.1,.25,1),'ease-in':s.Easing.bezier(.42,0,1,1),'ease-out':s.Easing.bezier(0,0,.58,1),'ease-in-out':s.Easing.bezier(.42,0,.58,1),'ease-in-cubic':s.Easing.bezier(.55,.055,.675,.19),'ease-out-cubic':s.Easing.bezier(.215,.61,.355,1),'ease-in-out-cubic':s.Easing.bezier(.645,.045,.355,1),'ease-in-circ':s.Easing.bezier(.6,.04,.98,.335),'ease-out-circ':s.Easing.bezier(.075,.82,.165,1),'ease-in-out-circ':s.Easing.bezier(.785,.135,.15,.86),'ease-in-expo':s.Easing.bezier(.95,.05,.795,.035),'ease-out-expo':s.Easing.bezier(.19,1,.22,1),'ease-in-out-expo':s.Easing.bezier(1,0,0,1),'ease-in-quad':s.Easing.bezier(.55,.085,.68,.53),'ease-out-quad':s.Easing.bezier(.25,.46,.45,.94),'ease-in-out-quad':s.Easing.bezier(.455,.03,.515,.955),'ease-in-quart':s.Easing.bezier(.895,.03,.685,.22),'ease-out-quart':s.Easing.bezier(.165,.84,.44,1),'ease-in-out-quart':s.Easing.bezier(.77,0,.175,1),'ease-in-quint':s.Easing.bezier(.755,.05,.855,.06),'ease-out-quint':s.Easing.bezier(.23,1,.32,1),'ease-in-out-quint':s.Easing.bezier(.86,0,.07,1),'ease-in-sine':s.Easing.bezier(.47,0,.745,.715),'ease-out-sine':s.Easing.bezier(.39,.575,.565,1),'ease-in-out-sine':s.Easing.bezier(.445,.05,.55,.95),'ease-in-back':s.Easing.bezier(.6,-.28,.735,.045),'ease-out-back':s.Easing.bezier(.175,.885,.32,1.275),'ease-in-out-back':s.Easing.bezier(.68,-.55,.265,1.55)};e.default=n},1180,[2]); -__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0});var t=r(d[0]);Object.keys(t).forEach(function(n){"default"!==n&&"__esModule"!==n&&Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[n]}})});var n=r(d[1]);Object.keys(n).forEach(function(t){"default"!==t&&"__esModule"!==t&&Object.defineProperty(e,t,{enumerable:!0,get:function(){return n[t]}})});var u=r(d[2]);Object.keys(u).forEach(function(t){"default"!==t&&"__esModule"!==t&&Object.defineProperty(e,t,{enumerable:!0,get:function(){return u[t]}})});var o=r(d[3]);Object.keys(o).forEach(function(t){"default"!==t&&"__esModule"!==t&&Object.defineProperty(e,t,{enumerable:!0,get:function(){return o[t]}})});var c=r(d[4]);Object.keys(c).forEach(function(t){"default"!==t&&"__esModule"!==t&&Object.defineProperty(e,t,{enumerable:!0,get:function(){return c[t]}})});var f=r(d[5]);Object.keys(f).forEach(function(t){"default"!==t&&"__esModule"!==t&&Object.defineProperty(e,t,{enumerable:!0,get:function(){return f[t]}})});var l=r(d[6]);Object.keys(l).forEach(function(t){"default"!==t&&"__esModule"!==t&&Object.defineProperty(e,t,{enumerable:!0,get:function(){return l[t]}})});var b=r(d[7]);Object.keys(b).forEach(function(t){"default"!==t&&"__esModule"!==t&&Object.defineProperty(e,t,{enumerable:!0,get:function(){return b[t]}})});var _=r(d[8]);Object.keys(_).forEach(function(t){"default"!==t&&"__esModule"!==t&&Object.defineProperty(e,t,{enumerable:!0,get:function(){return _[t]}})});var j=r(d[9]);Object.keys(j).forEach(function(t){"default"!==t&&"__esModule"!==t&&Object.defineProperty(e,t,{enumerable:!0,get:function(){return j[t]}})});var s=r(d[10]);Object.keys(s).forEach(function(t){"default"!==t&&"__esModule"!==t&&Object.defineProperty(e,t,{enumerable:!0,get:function(){return s[t]}})})},1181,[1182,1183,1184,1185,1186,1187,1188,1189,1190,1191,1192]); -__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.wobble=e.tada=e.rubberBand=e.swing=e.shake=e.rotate=e.pulse=e.jello=e.flash=e.bounce=void 0;e.bounce={0:{translateY:0},.2:{translateY:0},.4:{translateY:-30},.43:{translateY:-30},.53:{translateY:0},.7:{translateY:-15},.8:{translateY:0},.9:{translateY:-4},1:{translateY:0}};e.flash={0:{opacity:1},.25:{opacity:0},.5:{opacity:1},.75:{opacity:0},1:{opacity:1}};e.jello={0:{skewX:'0deg',skewY:'0deg'},.111:{skewX:'0deg',skewY:'0deg'},.222:{skewX:'-12.5deg',skewY:'-12.5deg'},.333:{skewX:'6.25deg',skewY:'6.25deg'},.444:{skewX:'-3.125deg',skewY:'-3.125deg'},.555:{skewX:'1.5625deg',skewY:'1.5625deg'},.666:{skewX:'-0.78125deg',skewY:'-0.78125deg'},.777:{skewX:'0.390625deg',skewY:'0.390625deg'},.888:{skewX:'-0.1953125deg',skewY:'-0.1953125deg'},1:{skewX:'0deg',skewY:'0deg'}};e.pulse={0:{scale:1},.5:{scale:1.05},1:{scale:1}};e.rotate={0:{rotate:'0deg'},.25:{rotate:'90deg'},.5:{rotate:'180deg'},.75:{rotate:'270deg'},1:{rotate:'360deg'}};e.shake={0:{translateX:0},.1:{translateX:-10},.2:{translateX:10},.3:{translateX:-10},.4:{translateX:10},.5:{translateX:-10},.6:{translateX:10},.7:{translateX:-10},.8:{translateX:10},.9:{translateX:-10},1:{translateX:0}};e.swing={0:{rotate:'0deg'},.2:{rotate:'15deg'},.4:{rotate:'-10deg'},.6:{rotate:'5deg'},.8:{rotate:'-5deg'},1:{rotate:'0deg'}};e.rubberBand={0:{scaleX:1,scaleY:1},.3:{scaleX:1.25,scaleY:.75},.4:{scaleX:.75,scaleY:1.25},.5:{scaleX:1.15,scaleY:.85},.65:{scaleX:.95,scaleY:1.05},.75:{scaleX:1.05,scaleY:.95},1:{scaleX:1,scaleY:1}};e.tada={0:{scale:1,rotate:'0deg'},.1:{scale:.9,rotate:'-3deg'},.2:{scale:.9,rotate:'-3deg'},.3:{scale:1.1,rotate:'-3deg'},.4:{rotate:'3deg'},.5:{rotate:'-3deg'},.6:{rotate:'3deg'},.7:{rotate:'-3deg'},.8:{rotate:'3deg'},.9:{scale:1.1,rotate:'3deg'},1:{scale:1,rotate:'0deg'}};e.wobble={0:{translateX:0,rotate:'0deg'},.15:{translateX:-25,rotate:'-5deg'},.3:{translateX:20,rotate:'3deg'},.45:{translateX:-15,rotate:'-3deg'},.6:{translateX:10,rotate:'2deg'},.75:{translateX:-5,rotate:'-1deg'},1:{translateX:0,rotate:'0deg'}}},1182,[]); -__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.bounceInLeft=e.bounceInRight=e.bounceInDown=e.bounceInUp=e.bounceIn=void 0;e.bounceIn={0:{opacity:0,scale:.3},.2:{scale:1.1},.4:{scale:.9},.6:{opacity:1,scale:1.03},.8:{scale:.97},1:{opacity:1,scale:1}};e.bounceInUp={0:{opacity:0,translateY:800},.6:{opacity:1,translateY:-25},.75:{translateY:10},.9:{translateY:-5},1:{translateY:0}};e.bounceInDown={0:{opacity:0,translateY:-800},.6:{opacity:1,translateY:25},.75:{translateY:-10},.9:{translateY:5},1:{translateY:0}};e.bounceInRight={0:{opacity:0,translateX:600},.6:{opacity:1,translateX:-20},.75:{translateX:8},.9:{translateX:-4},1:{translateX:0}};e.bounceInLeft={0:{opacity:0,translateX:-600},.6:{opacity:1,translateX:20},.75:{translateX:-8},.9:{translateX:4},1:{translateX:0}}},1183,[]); -__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.bounceOutLeft=e.bounceOutRight=e.bounceOutDown=e.bounceOutUp=e.bounceOut=void 0;e.bounceOut={0:{opacity:1,scale:1},.2:{scale:.9},.5:{opacity:1,scale:1.11},.55:{scale:1.11},1:{opacity:0,scale:.3}};e.bounceOutUp={0:{opacity:1,translateY:0},.2:{opacity:1,translateY:-10},.4:{translateY:20},.45:{translateY:20},.55:{opacity:1},1:{opacity:0,translateY:-800}};e.bounceOutDown={0:{opacity:1,translateY:0},.2:{opacity:1,translateY:10},.4:{translateY:-20},.45:{translateY:-20},.55:{opacity:1},1:{opacity:0,translateY:800}};e.bounceOutRight={0:{opacity:1,translateX:0},.2:{opacity:1,translateX:10},.4:{translateX:-20},.45:{translateX:-20},.55:{opacity:1},1:{opacity:0,translateX:600}};e.bounceOutLeft={0:{opacity:1,translateX:0},.2:{opacity:1,translateX:-10},.4:{translateX:20},.45:{translateX:20},.55:{opacity:1},1:{opacity:0,translateX:-600}}},1184,[]); -__d(function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.fadeInRightBig=e.fadeInLeftBig=e.fadeInUpBig=e.fadeInDownBig=e.fadeInRight=e.fadeInLeft=e.fadeInUp=e.fadeInDown=e.fadeIn=void 0;var n=t(r(d[1]));function f(t,f){return{from:(0,n.default)({opacity:0},t,f),to:(0,n.default)({opacity:1},t,0)}}e.fadeIn={from:{opacity:0},to:{opacity:1}};var I=f('translateY',-100);e.fadeInDown=I;var o=f('translateY',100);e.fadeInUp=o;var l=f('translateX',-100);e.fadeInLeft=l;var v=f('translateX',100);e.fadeInRight=v;var p=f('translateY',-500);e.fadeInDownBig=p;var s=f('translateY',500);e.fadeInUpBig=s;var B=f('translateX',-500);e.fadeInLeftBig=B;var c=f('translateX',500);e.fadeInRightBig=c},1185,[1,44]); -__d(function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.fadeOutRightBig=e.fadeOutLeftBig=e.fadeOutUpBig=e.fadeOutDownBig=e.fadeOutRight=e.fadeOutLeft=e.fadeOutUp=e.fadeOutDown=e.fadeOut=void 0;var f=t(r(d[1]));function u(t,u){return{from:(0,f.default)({opacity:1},t,0),to:(0,f.default)({opacity:0},t,u)}}e.fadeOut={from:{opacity:1},to:{opacity:0}};var O=u('translateY',100);e.fadeOutDown=O;var n=u('translateY',-100);e.fadeOutUp=n;var o=u('translateX',-100);e.fadeOutLeft=o;var l=u('translateX',100);e.fadeOutRight=l;var v=u('translateY',500);e.fadeOutDownBig=v;var p=u('translateY',-500);e.fadeOutUpBig=p;var s=u('translateX',-500);e.fadeOutLeftBig=s;var B=u('translateX',500);e.fadeOutRightBig=B},1186,[1,44]); -__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.flipOutY=e.flipOutX=e.flipInY=e.flipInX=void 0;e.flipInX={easing:'ease-in',style:{backfaceVisibility:'visible',perspective:400},0:{opacity:0,rotateX:'90deg'},.4:{rotateX:'-20deg'},.6:{opacity:1,rotateX:'10deg'},.8:{rotateX:'-5deg'},1:{opacity:1,rotateX:'0deg'}};e.flipInY={easing:'ease-in',style:{backfaceVisibility:'visible',perspective:400},0:{opacity:0,rotateY:'90deg'},.4:{rotateY:'-20deg'},.6:{opacity:1,rotateY:'10deg'},.8:{rotateY:'-5deg'},1:{opacity:1,rotateY:'0deg'}};e.flipOutX={style:{backfaceVisibility:'visible',perspective:400},0:{opacity:1,rotateX:'0deg'},.3:{opacity:1,rotateX:'-20deg'},1:{opacity:0,rotateX:'90deg'}};e.flipOutY={style:{backfaceVisibility:'visible',perspective:400},0:{opacity:1,rotateY:'0deg'},.3:{opacity:1,rotateY:'-20deg'},1:{opacity:0,rotateY:'90deg'}}},1187,[]); -__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.lightSpeedOut=e.lightSpeedIn=void 0;e.lightSpeedIn={easing:'ease-out',0:{opacity:0,translateX:200,skewX:'-30deg'},.6:{opacity:1,translateX:0,skewX:'20deg'},.8:{skewX:'-5deg'},1:{opacity:1,translateX:0,skewX:'0deg'}};e.lightSpeedOut={easing:'ease-in',0:{opacity:1,translateX:0,skewX:'0deg'},1:{opacity:0,translateX:200,skewX:'30deg'}}},1188,[]); -__d(function(g,r,i,a,m,e,d){var n=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.slideInRight=e.slideInLeft=e.slideInUp=e.slideInDown=void 0;var t=n(r(d[1]));function l(n,l){return{from:(0,t.default)({},n,l),to:(0,t.default)({},n,0)}}var s=l('translateY',-100);e.slideInDown=s;var o=l('translateY',100);e.slideInUp=o;var f=l('translateX',-100);e.slideInLeft=f;var v=l('translateX',100);e.slideInRight=v},1189,[1,44]); -__d(function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.slideOutRight=e.slideOutLeft=e.slideOutUp=e.slideOutDown=void 0;var l=t(r(d[1]));function u(t,u){return{from:(0,l.default)({},t,0),to:(0,l.default)({},t,u)}}var s=u('translateY',100);e.slideOutDown=s;var n=u('translateY',-100);e.slideOutUp=n;var o=u('translateX',-100);e.slideOutLeft=o;var O=u('translateX',100);e.slideOutRight=O},1190,[1,44]); -__d(function(g,r,i,a,m,e,d){var o=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.zoomInRight=e.zoomInLeft=e.zoomInUp=e.zoomInDown=e.zoomIn=void 0;var t=o(r(d[1])),n=r(d[2]);function l(o,l){var c=Math.min(1,Math.max(-1,l));return{easing:n.Easing.bezier(.175,.885,.32,1),0:(0,t.default)({opacity:0,scale:.1},o,-1e3*c),.6:(0,t.default)({opacity:1,scale:.457},o,l),1:(0,t.default)({scale:1},o,0)}}e.zoomIn={from:{opacity:0,scale:.3},.5:{opacity:1},to:{opacity:1,scale:1}};var c=l('translateY',60);e.zoomInDown=c;var s=l('translateY',-60);e.zoomInUp=s;var z=l('translateX',10);e.zoomInLeft=z;var I=l('translateX',-10);e.zoomInRight=I},1191,[1,44,2]); -__d(function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.zoomOutRight=e.zoomOutLeft=e.zoomOutUp=e.zoomOutDown=e.zoomOut=void 0;var o=t(r(d[1])),u=r(d[2]);function c(t,c){var l=Math.min(1,Math.max(-1,c));return{easing:u.Easing.bezier(.175,.885,.32,1),0:(0,o.default)({opacity:1,scale:1},t,0),.4:(0,o.default)({opacity:1,scale:.457},t,c),1:(0,o.default)({opacity:0,scale:.1},t,-1e3*l)}}e.zoomOut={from:{opacity:1,scale:1},.5:{opacity:1,scale:.3},to:{opacity:0,scale:0}};var l=c('translateY',60);e.zoomOutDown=l;var n=c('translateY',-60);e.zoomOutUp=n;var s=c('translateX',10);e.zoomOutLeft=s;var z=c('translateX',-10);e.zoomOutRight=z},1192,[1,44,2]); -__d(function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.slideOutRight=e.slideOutLeft=e.slideOutUp=e.slideOutDown=e.slideInRight=e.slideInLeft=e.slideInUp=e.slideInDown=void 0;var n=t(r(d[1])),l=r(d[2]).Dimensions.get("window"),s=l.height,u=l.width,o=function(t,l,s){return{from:(0,n.default)({},t,l),to:(0,n.default)({},t,s)}},v=o("translateY",-s,0);e.slideInDown=v;var f=o("translateY",s,0);e.slideInUp=f;var O=o("translateX",-u,0);e.slideInLeft=O;var I=o("translateX",u,0);e.slideInRight=I;var h=o("translateY",0,s);e.slideOutDown=h;var w=o("translateY",0,-s);e.slideOutUp=w;var p=o("translateX",0,-u);e.slideOutLeft=p;var D=o("translateX",0,u);e.slideOutRight=D},1193,[1,44,2]); -__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=r(d[0]).StyleSheet.create({backdrop:{position:"absolute",top:0,bottom:0,left:0,right:0,opacity:0,backgroundColor:"black"},content:{flex:1,justifyContent:"center"}});e.default=t},1194,[2]); -__d(function(g,r,i,a,m,e,d){m.exports={title:{fontFamily:"monospace",fontSize:16,fontWeight:"bold",marginBottom:8},lineStyle:{borderBottomColor:"lightgray",borderBottomWidth:1,width:"100%"},shortLineStyle:{borderBottomColor:"lightgray",borderBottomWidth:2,marginBottom:8,width:40},bottomModal:{justifyContent:"flex-end",marginTop:0,marginRight:0,marginBottom:0,marginLeft:0},touchableArea:{borderRadius:4},modalContent:{backgroundColor:"white",paddingTop:8,paddingBottom:8,justifyContent:"center",alignItems:"center",borderTopLeftRadius:10,borderTopRightRadius:10,borderBottomRightRadius:0,borderBottomLeftRadius:0,borderColor:"grey",borderWidth:1},modalItem:{flexGrow:1,flexShrink:1,marginTop:5,marginRight:5,marginBottom:5,marginLeft:5,width:100,alignSelf:"stretch",justifyContent:"center",alignItems:"center"},modalIcon:{flexGrow:1,flexShrink:1,backgroundColor:"lightgray",paddingLeft:8,paddingRight:8,paddingTop:8,paddingBottom:8,marginTop:4,marginRight:4,marginBottom:4,marginLeft:4,width:72,height:48,justifyContent:"center",alignItems:"center",borderRadius:4},modalItemLabel:{backgroundColor:"transparent",paddingLeft:2,paddingRight:2,paddingTop:2,paddingBottom:2,justifyContent:"center"}}},1195,[]); -__d(function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.settings=e.name=void 0;var n=r(d[1]),o=(t(r(d[2])),r(d[3])),s=t(r(d[4]));e.name='gmobile/unsupported';var u={title:(0,o.__)('Unsupported Block'),description:(0,o.__)('Unsupported block type.'),icon:'editor-code',category:'formatting',attributes:{content:{type:'string',source:'html'}},supports:{className:!1,customClassName:!1},transforms:{},edit:s.default,save:function(t){var o=t.attributes;return(0,n.createElement)(n.RawHTML,null,o.content)}};e.settings=u},1196,[1,330,46,877,1197]); -__d(function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var u=r(d[1]),l=t(r(d[2])),n=t(r(d[3])),f=t(r(d[4])),o=t(r(d[5])),s=t(r(d[6])),p=t(r(d[7])),c=r(d[8]),v=t(r(d[9])),y=(function(t){function p(){return(0,l.default)(this,p),(0,f.default)(this,(0,o.default)(p).apply(this,arguments))}return(0,s.default)(p,t),(0,n.default)(p,[{key:"render",value:function(){return(0,u.createElement)(c.View,{style:v.default.unsupportedBlock},(0,u.createElement)(c.Text,{style:v.default.unsupportedBlockMessage},"Unsupported"))}}]),p})(p.default.Component);e.default=y},1197,[1,330,19,20,27,30,33,46,2,1167]); -__d(function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.HTMLInputView=void 0;var n=r(d[1]),u=t(r(d[2])),o=t(r(d[3])),s=t(r(d[4])),l=t(r(d[5])),f=t(r(d[6])),c=t(r(d[7])),h=t(r(d[8])),p=r(d[9]),v=t(r(d[10])),y=r(d[11]),D=r(d[12]),E=r(d[13]),I=(function(t){function h(){var t;return(0,u.default)(this,h),(t=(0,s.default)(this,(0,l.default)(h).apply(this,arguments))).isIOS='ios'===p.Platform.OS,t.edit=t.edit.bind((0,c.default)((0,c.default)(t))),t.stopEditing=t.stopEditing.bind((0,c.default)((0,c.default)(t))),t.state={isDirty:!1,value:''},t}return(0,f.default)(h,t),(0,o.default)(h,[{key:"componentWillUnmount",value:function(){this.stopEditing()}},{key:"edit",value:function(t){this.props.onChange(t),this.setState({value:t,isDirty:!0})}},{key:"stopEditing",value:function(){this.state.isDirty&&(this.props.onPersist(this.state.value),this.setState({isDirty:!1}))}},{key:"render",value:function(){var t=this,u=this.isIOS?'padding':null;return(0,n.createElement)(p.KeyboardAvoidingView,{style:v.default.container,behavior:u},(0,n.createElement)(p.TextInput,{autoCorrect:!1,ref:function(n){return t.textInput=n},textAlignVertical:"top",multiline:!0,numberOfLines:0,style:v.default.htmlView,value:this.state.value,onChangeText:this.edit,onBlur:this.stopEditing}))}}],[{key:"getDerivedStateFromProps",value:function(t,n){return n.isDirty?null:{value:t.value,isDirty:!1}}}]),h})(h.default.Component);e.HTMLInputView=I;var w=(0,E.compose)([(0,D.withSelect)(function(t){return{value:(0,t('core/editor').getEditedPostContent)()}}),(0,D.withDispatch)(function(t){var n=t('core/editor'),u=n.editPost,o=n.resetBlocks;return{onChange:function(t){u({content:t})},onPersist:function(t){o((0,y.parse)(t))}}}),E.withInstanceId])(I);e.default=w},1198,[1,330,19,20,27,30,33,29,46,2,1199,807,809,865]); -__d(function(g,r,i,a,m,e,d){m.exports={htmlView:{fontFamily:"monospace",flexGrow:1,flexShrink:1,flexBasis:0,backgroundColor:"#eee",paddingLeft:8,paddingRight:8,paddingTop:8,paddingBottom:8},container:{flexGrow:1,flexShrink:1,flexBasis:0}}},1199,[]); -__d(function(g,r,i,a,m,e,d){var o=r(d[0]),t=r(d[1]);Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.BlockToolbar=void 0;var l=r(d[2]),n=t(r(d[3])),c=t(r(d[4])),u=t(r(d[5])),s=t(r(d[6])),b=t(r(d[7])),h=o(r(d[8])),f=r(d[9]),E=r(d[10]),k=r(d[11]),_=r(d[12]),p=r(d[13]),y=r(d[14]),B=t(r(d[15])),w=t(r(d[16])),T=(function(o){function t(){return(0,n.default)(this,t),(0,u.default)(this,(0,s.default)(t).apply(this,arguments))}return(0,b.default)(t,o),(0,c.default)(t,[{key:"render",value:function(){var o=this.props,t=o.hasRedo,n=o.hasUndo,c=o.redo,u=o.undo,s=o.onInsertClick,b=o.onKeyboardHide,h=o.showKeyboardHideButton;return(0,l.createElement)(f.View,{style:w.default.container},(0,l.createElement)(f.ScrollView,{horizontal:!0,showsHorizontalScrollIndicator:!1,keyboardShouldPersistTaps:'always',alwaysBounceHorizontal:!1},(0,l.createElement)(_.Toolbar,null,(0,l.createElement)(_.ToolbarButton,{label:(0,y.__)('Add block'),icon:"insert",onClick:s}),(0,l.createElement)(_.ToolbarButton,{label:(0,y.__)('Undo'),icon:"undo",isDisabled:!n,onClick:u}),(0,l.createElement)(_.ToolbarButton,{label:(0,y.__)('Redo'),icon:"redo",isDisabled:!t,onClick:c})),h&&(0,l.createElement)(_.Toolbar,null,(0,l.createElement)(B.default,{onPress:b})),(0,l.createElement)(p.BlockControls.Slot,null),(0,l.createElement)(p.BlockFormatControls.Slot,null)))}}]),t})(h.Component);e.BlockToolbar=T;var v=(0,k.compose)([(0,E.withSelect)(function(o){return{hasRedo:o('core/editor').hasEditorRedo(),hasUndo:o('core/editor').hasEditorUndo()}}),(0,E.withDispatch)(function(o){return{redo:o('core/editor').redo,undo:o('core/editor').undo}})])(T);e.default=v},1200,[329,1,330,19,20,27,30,33,46,2,809,865,925,1019,877,1201,1169]); -__d(function(g,r,i,a,m,e,d){var t=r(d[0]),h=r(d[1]);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var l=r(d[2]),n=(h(r(d[3])),t(r(d[4]))),v=r(d[5]),c=function(t){return(0,l.createElement)(v.TouchableOpacity,{style:{justifyContent:'center',alignItems:'center',width:44},onPress:t.onPress},(0,l.createElement)(n.default,{width:20,height:20},(0,l.createElement)(n.G,{fillRule:"nonzero",fill:"none"},(0,l.createElement)(n.Rect,{fill:"#7b9ab1",width:20,height:14,rx:2}),(0,l.createElement)(n.Path,{fill:"#FFF",d:"M2 2h16v10H2z"}),(0,l.createElement)(n.Path,{fill:"#7b9ab1",d:"M3 3h2v2H3zM6 3h2v2H6zM9 3h2v2H9zM12 3h2v2h-2zM15 3h2v2h-2zM3 6h2v2H3zM5 9h9v2H5zM6 6h2v2H6zM9 6h2v2H9zM12 6h2v2h-2zM15 6h2v2h-2zM10 20l4-4H6z"}))))};e.default=c},1201,[329,1,330,46,928,2]); -__d(function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=r(d[1]),u=t(r(d[2])),o=(t(r(d[3])),r(d[4])),f=function(t){var f=(0,u.default)({},t);return(0,n.createElement)(o.KeyboardAvoidingView,f)};e.default=f},1202,[1,330,8,46,2]); -__d(function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var l=r(d[1]),n=r(d[2]),u=t(r(d[3])),f=function(t){return(0,l.createElement)(u.default,{style:{flex:1}},(0,l.createElement)(n.FlatList,t))};e.default=f},1203,[1,330,2,1202]); -__d(function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0});var o={};e.default=void 0;var n=t(r(d[1])),u=r(d[2]);Object.keys(u).forEach(function(t){"default"!==t&&"__esModule"!==t&&(Object.prototype.hasOwnProperty.call(o,t)||Object.defineProperty(e,t,{enumerable:!0,get:function(){return u[t]}}))});var c=r(d[3]);Object.keys(c).forEach(function(t){"default"!==t&&"__esModule"!==t&&(Object.prototype.hasOwnProperty.call(o,t)||Object.defineProperty(e,t,{enumerable:!0,get:function(){return c[t]}}))});var f=n.default;e.default=f},1204,[1,1205,1206,1207]); -__d(function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=t(r(d[1])),u=t(r(d[2])),o=new((function(){function t(){(0,n.default)(this,t)}return(0,u.default)(t,[{key:"getSafeAreaInsetsForRootView",value:function(){return Promise.resolve({safeAreaInsets:{top:0,left:0,bottom:0,right:0}})}},{key:"addEventListener",value:function(t,n,u){return null}},{key:"removeEventListener",value:function(t,n){}}]),t})());e.default=o},1205,[1,19,20]); -__d(function(g,r,i,a,m,e,d){var t=r(d[0]),n=r(d[1]);Object.defineProperty(e,"__esModule",{value:!0}),e.withSafeArea=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:'margin',I=arguments.length>2&&void 0!==arguments[2]?arguments[2]:'all',R=I,b=R.match(/^(top|bottom)(Left|Right)$/);b&&(R=b[1]+"And"+b[2],console.warn("'"+I+"' is deprecated. Use '"+R+"' instead."));var z='top'===R||'topAndLeft'===R||'topAndRight'===R||'vertical'===R||'verticalAndLeft'===R||'verticalAndRight'===R||'horizontalAndTop'===R||'all'===R,L='bottom'===R||'bottomAndLeft'===R||'bottomAndRight'===R||'vertical'===R||'verticalAndLeft'===R||'verticalAndRight'===R||'horizontalAndBottom'===R||'all'===R,S='left'===R||'topAndLeft'===R||'bottomAndLeft'===R||'horizontal'===R||'horizontalAndTop'===R||'horizontalAndBottom'===R||'verticalAndLeft'===R||'all'===R,w='right'===R||'topAndRight'===R||'bottomAndRight'===R||'horizontal'===R||'horizontalAndTop'===R||'horizontalAndBottom'===R||'verticalAndRight'===R||'all'===R;return(function(I){function R(){var t,n;(0,l.default)(this,R);for(var o=arguments.length,s=new Array(o),f=0;f0&&this._events[h].length>l&&(this._events[h].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[h].length),'function'==typeof console.trace&&console.trace()),this},t.prototype.on=t.prototype.addListener,t.prototype.once=function(t,n){if(!s(n))throw TypeError('listener must be a function');var o=!1;function h(){this.removeListener(t,h),o||(o=!0,n.apply(this,arguments))}return h.listener=n,this.on(t,h),this},t.prototype.removeListener=function(t,o){var h,v,l,u;if(!s(o))throw TypeError('listener must be a function');if(!this._events||!this._events[t])return this;if(l=(h=this._events[t]).length,v=-1,h===o||s(h.listener)&&h.listener===o)delete this._events[t],this._events.removeListener&&this.emit('removeListener',t,o);else if(n(h)){for(u=l;u-- >0;)if(h[u]===o||h[u].listener&&h[u].listener===o){v=u;break}if(v<0)return this;1===h.length?(h.length=0,delete this._events[t]):h.splice(v,1),this._events.removeListener&&this.emit('removeListener',t,o)}return this},t.prototype.removeAllListeners=function(t){var n,o;if(!this._events)return this;if(!this._events.removeListener)return 0===arguments.length?this._events={}:this._events[t]&&delete this._events[t],this;if(0===arguments.length){for(n in this._events)'removeListener'!==n&&this.removeAllListeners(n);return this.removeAllListeners('removeListener'),this._events={},this}if(s(o=this._events[t]))this.removeListener(t,o);else if(o)for(;o.length;)this.removeListener(t,o[o.length-1]);return delete this._events[t],this},t.prototype.listeners=function(t){return this._events&&this._events[t]?s(this._events[t])?[this._events[t]]:this._events[t].slice():[]},t.prototype.listenerCount=function(t){if(this._events){var n=this._events[t];if(s(n))return 1;if(n)return n.length}return 0},t.listenerCount=function(t,s){return t.listenerCount(s)}},1208,[]); -__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default="\n\x3c!-- wp:image --\x3e\n
\"\"/
\n\x3c!-- /wp:image --\x3e\n\n\x3c!-- wp:image --\x3e\n
\"\"/
\n\x3c!-- /wp:image --\x3e\n\n\x3c!-- wp:title --\x3e\nHello World\n\x3c!-- /wp:title --\x3e\n\n\x3c!-- wp:heading {\"level\": 2} --\x3e\n

Welcome to Gutenberg

\n\x3c!-- /wp:heading --\x3e\n\n\x3c!-- wp:paragraph --\x3e\n

Hello World!

\n\x3c!-- /wp:paragraph --\x3e\n\n\x3c!-- wp:nextpage --\x3e\n\x3c!--nextpage--\x3e\n\x3c!-- /wp:nextpage --\x3e\n\n\x3c!-- wp:paragraph {\"dropCap\":true,\"backgroundColor\":\"vivid-red\",\"fontSize\":\"large\",\"className\":\"custom-class-1 custom-class-2\"} --\x3e\n

\nLorem ipsum dolor sit amet, consectetur adipiscing elit. Integer tempor tincidunt sapien, quis dictum orci sollicitudin quis. Proin sed elit id est pulvinar feugiat vitae eget dolor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

\n\x3c!-- /wp:paragraph --\x3e\n\n\n\x3c!-- wp:code --\x3e\n
if name == \"World\":\n    return \"Hello World\"\nelse:\n    return \"Hello Pony\"
\n\x3c!-- /wp:code --\x3e\n\n\x3c!-- wp:more --\x3e\n\x3c!--more--\x3e\n\x3c!-- /wp:more --\x3e\n\n\x3c!-- wp:p4ragraph --\x3e\n\u041b\u043e\u0440\u0435\u043c \u0438\u043f\u0441\u0443\u043c \u0434\u043e\u043b\u043e\u0440 \u0441\u0438\u0442 \u0430\u043c\u0435\u0442, \u0430\u0434\u0438\u043f\u0438\u0441\u0446\u0438 \u0442\u0440\u0430\u0446\u0442\u0430\u0442\u043e\u0441 \u0435\u0430 \u0435\u0443\u043c. \u041c\u0435\u0430 \u0430\u0443\u0434\u0438\u0430\u043c \u043c\u0430\u043b\u0443\u0438\u0441\u0441\u0435\u0442 \u0442\u0435, \u0445\u0430\u0441 \u043c\u0435\u0438\u0441 \u043b\u0438\u0431\u0440\u0438\u0441 \u0435\u043b\u0435\u0438\u0444\u0435\u043d\u0434 \u0438\u043d. \u041d\u0435\u0446 \u0435\u0445 \u0442\u043e\u0442\u0430 \u0434\u0435\u043b\u0435\u043d\u0438\u0442 \u0441\u0443\u0441\u0446\u0438\u043f\u0438\u0442. \u042f\u0443\u0430\u0441 \u043f\u043e\u0440\u0440\u043e \u0438\u043d\u0441\u0442\u0440\u0443\u0446\u0442\u0438\u043e\u0440 \u043d\u043e \u043d\u0435\u0446.\n\x3c!-- /wp:p4ragraph --\x3e\n\n\x3c!-- wp:paragraph {\"customTextColor\":\"#6c7781\",\"customFontSize\":17} --\x3e\n

It\u2019s a whole new way to use WordPress. Try it right here!

\n\x3c!-- /wp:paragraph --\x3e\n\n\x3c!-- wp:image {\"id\":97629,\"align\":\"full\"} --\x3e\n
\"\"
\n\x3c!-- /wp:image --\x3e\n\n\x3c!-- wp:paragraph {\"align\":\"left\"} --\x3e\n

We call the new editor Gutenberg. The entire editing experience has been rebuilt for media rich pages and posts. Experience the flexibility that blocks will bring, whether you are building your first site, or write code for a living.

\n\x3c!-- /wp:paragraph --\x3e\n\n\x3c!-- wp:gallery {\"ids\":[null,null,null,null],\"columns\":4,\"align\":\"wide\",\"className\":\"alignwide gutenberg-landing--features-grid\"} --\x3e\n\n\x3c!-- /wp:gallery --\x3e\n\n\x3c!-- wp:spacer --\x3e\n
\n\x3c!-- /wp:spacer --\x3e\n\n\x3c!-- wp:wporg/download-button --\x3e\n\n\x3c!-- /wp:wporg/download-button --\x3e\n\n\x3c!-- wp:paragraph {\"align\":\"center\",\"fontSize\":\"small\",\"className\":\"gutenberg-landing--button-disclaimer\"} --\x3e\n

Gutenberg is available as a plugin now, and soon by default in version 5.0 of WordPress. The classic editor will be available as a plugin if needed.

\n\x3c!-- /wp:paragraph --\x3e\n\n\x3c!-- wp:spacer --\x3e\n
\n\x3c!-- /wp:spacer --\x3e\n\n\x3c!-- wp:heading {\"align\":\"left\"} --\x3e\n

Meet your new best friends, Blocks

\n\x3c!-- /wp:heading --\x3e\n\n\x3c!-- wp:paragraph {\"align\":\"left\"} --\x3e\n

Blocks are a great new tool for building engaging content. With blocks, you can insert, rearrange, and style multimedia content with very little technical knowledge. Instead of using custom code, you can add a block and focus on your content.

\n\x3c!-- /wp:paragraph --\x3e\n\n\x3c!-- wp:image {\"id\":358} --\x3e\n
\"\"
\n\x3c!-- /wp:image --\x3e\n\n\x3c!-- wp:paragraph {\"align\":\"left\"} --\x3e\n

Without being an expert developer, you can build your own custom posts and pages. Here\u2019s a selection of the default blocks included with Gutenberg:

\n\x3c!-- /wp:paragraph --\x3e\n\n\x3c!-- wp:gallery {\"ids\":[null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null],\"columns\":8,\"align\":\"full\",\"className\":\"alignfull\"} --\x3e\n\n\x3c!-- /wp:gallery --\x3e\n\n\x3c!-- wp:spacer --\x3e\n
\n\x3c!-- /wp:spacer --\x3e\n\n\x3c!-- wp:heading {\"align\":\"left\"} --\x3e\n

Be your own builder

\n\x3c!-- /wp:heading --\x3e\n\n\x3c!-- wp:paragraph {\"align\":\"left\"} --\x3e\n

A single block is nice\u2014reliable, clear, distinct. Discover the flexibility to use media and content, side by side, driven by your vision.

\n\x3c!-- /wp:paragraph --\x3e\n\n\x3c!-- wp:image {\"id\":98363} --\x3e\n
\"\"
\n\x3c!-- /wp:image --\x3e\n\n\x3c!-- wp:spacer --\x3e\n
\n\x3c!-- /wp:spacer --\x3e\n\n\x3c!-- wp:heading {\"align\":\"left\"} --\x3e\n

Gutenberg \u2764\ufe0f Developers

\n\x3c!-- /wp:heading --\x3e\n\n\x3c!-- wp:columns {\"className\":\"gutenberg-landing--developers-columns\"} --\x3e\n
\x3c!-- wp:column --\x3e\n
\x3c!-- wp:paragraph {\"align\":\"left\"} --\x3e\n

Built with modern technology.

\n\x3c!-- /wp:paragraph --\x3e\n\n\x3c!-- wp:paragraph {\"align\":\"left\"} --\x3e\n

Gutenberg was developed on GitHub using the WordPress REST API, JavaScript, and React.

\n\x3c!-- /wp:paragraph --\x3e\n\n\x3c!-- wp:paragraph {\"align\":\"left\",\"fontSize\":\"small\"} --\x3e\n

Learn more

\n\x3c!-- /wp:paragraph --\x3e
\n\x3c!-- /wp:column --\x3e\n\n\x3c!-- wp:column --\x3e\n
\x3c!-- wp:paragraph {\"align\":\"left\"} --\x3e\n

Designed for compatibility.

\n\x3c!-- /wp:paragraph --\x3e\n\n\x3c!-- wp:paragraph {\"align\":\"left\"} --\x3e\n

We recommend migrating features to blocks, but support for existing WordPress functionality remains. There will be transition paths for shortcodes, meta-boxes, and Custom Post Types.

\n\x3c!-- /wp:paragraph --\x3e\n\n\x3c!-- wp:paragraph {\"align\":\"left\",\"fontSize\":\"small\"} --\x3e\n

Learn more

\n\x3c!-- /wp:paragraph --\x3e
\n\x3c!-- /wp:column --\x3e
\n\x3c!-- /wp:columns --\x3e\n\n\x3c!-- wp:spacer --\x3e\n
\n\x3c!-- /wp:spacer --\x3e\n\n\x3c!-- wp:heading {\"align\":\"left\"} --\x3e\n

The editor is just the beginning

\n\x3c!-- /wp:heading --\x3e\n\n\x3c!-- wp:paragraph {\"align\":\"left\"} --\x3e\n

Gutenberg is more than an editor. It\u2019s also the foundation that\u2019ll revolutionize customization and site building in WordPress.

\n\x3c!-- /wp:paragraph --\x3e\n\n\x3c!-- wp:quote {\"align\":\"left\",\"className\":\"is-style-large\"} --\x3e\n

\"This will make running your own blog a viable alternative again.\"

\u2014 Adrian Zumbrunnen
\n\x3c!-- /wp:quote --\x3e\n\n\x3c!-- wp:quote {\"align\":\"left\",\"className\":\"is-style-large\"} --\x3e\n

\"The web up until this point has been confined to some sort of rectangular screen. But that is not how it\u2019s going to be. Gutenberg has the potential of moving us into the next time.\"

\u2014 Morten Rand-Hendriksen
\n\x3c!-- /wp:quote --\x3e\n\n\x3c!-- wp:quote {\"align\":\"left\",\"className\":\"is-style-large\"} --\x3e\n

\"The Gutenberg editor has some great assets that could genuinely help people to write better texts.\"

\u2014 Marieke van de Rakt
\n\x3c!-- /wp:quote --\x3e\n\n\x3c!-- wp:spacer --\x3e\n
\n\x3c!-- /wp:spacer --\x3e\n\n\x3c!-- wp:wporg/download-button --\x3e\n\n\x3c!-- /wp:wporg/download-button --\x3e\n\n\x3c!-- wp:paragraph {\"align\":\"center\",\"fontSize\":\"small\",\"className\":\"gutenberg-landing--button-disclaimer\"} --\x3e\n

Gutenberg is available as a plugin today, and will be included in version 5.0 of WordPress. The classic editor will be available as a plugin if needed.

\n\x3c!-- /wp:paragraph --\x3e\n\n\x3c!-- wp:spacer --\x3e\n
\n\x3c!-- /wp:spacer --\x3e\n\n\x3c!-- wp:heading {\"align\":\"left\"} --\x3e\n

Dig in deeper

\n\x3c!-- /wp:heading --\x3e\n\n\x3c!-- wp:list --\x3e\n\n\x3c!-- /wp:list --\x3e\n"},1209,[]); +__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.AsyncModeConsumer=void 0;var o=(0,r(d[0]).createContext)(!1),n=o.Consumer,t=o.Provider,u=n;e.AsyncModeConsumer=u;var s=t;e.default=s},875,[330]); +__d(function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=r(d[1]),n=t(r(d[2])),s=t(r(d[3])),p=t(r(d[4])),u=t(r(d[5])),c=t(r(d[6])),f=t(r(d[7])),y=r(d[8]),h=r(d[9]),l=r(d[10]),P=function(t){return(0,h.createHigherOrderComponent)(function(h){var P=(function(l){function P(t){var o;return(0,s.default)(this,P),(o=(0,u.default)(this,(0,c.default)(P).apply(this,arguments))).proxyProps={},o.setProxyProps(t),o}return(0,f.default)(P,l),(0,p.default)(P,[{key:"proxyDispatch",value:function(o){for(var n,s=arguments.length,p=new Array(s>1?s-1:0),u=1;u0&&void 0!==arguments[0]?arguments[0]:{},l=arguments.length>1?arguments[1]:void 0;switch(l.type){case'ADD_BLOCK_TYPES':return(0,u.default)({},t,(0,c.keyBy)((0,c.map)(l.blockTypes,function(t){return(0,c.omit)(t,'styles ')}),'name'));case'REMOVE_BLOCK_TYPES':return(0,c.omit)(t,l.names)}return t}function E(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=arguments.length>1?arguments[1]:void 0;switch(o.type){case'ADD_BLOCK_TYPES':return(0,u.default)({},t,(0,c.mapValues)((0,c.keyBy)(o.blockTypes,'name'),function(l){return(0,c.uniqBy)((0,n.default)((0,c.get)(l,['styles'],[])).concat((0,n.default)((0,c.get)(t,[l.name],[]))),function(t){return t.name})}));case'ADD_BLOCK_STYLES':return(0,u.default)({},t,(0,l.default)({},o.blockName,(0,c.uniqBy)((0,n.default)((0,c.get)(t,[o.blockName],[])).concat((0,n.default)(o.styles)),function(t){return t.name})));case'REMOVE_BLOCK_STYLES':return(0,u.default)({},t,(0,l.default)({},o.blockName,(0,c.filter)((0,c.get)(t,[o.blockName],[]),function(t){return-1===o.styleNames.indexOf(t.name)})))}return t}function k(t){return function(){var l=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n=arguments.length>1?arguments[1]:void 0;switch(n.type){case'REMOVE_BLOCK_TYPES':return-1!==n.names.indexOf(l)?null:l;case t:return n.name||null}return l}}e.DEFAULT_CATEGORIES=_;var y=k('SET_DEFAULT_BLOCK_NAME');e.defaultBlockName=y;var B=k('SET_FREEFORM_FALLBACK_BLOCK_NAME');e.freeformFallbackBlockName=B;var T=k('SET_UNREGISTERED_FALLBACK_BLOCK_NAME');function b(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:_,l=arguments.length>1?arguments[1]:void 0;switch(l.type){case'SET_CATEGORIES':return l.categories||[];case'UPDATE_CATEGORY':if(!l.category||(0,c.isEmpty)(l.category))return t;if((0,c.find)(t,['slug',l.slug]))return(0,c.map)(t,function(t){return t.slug===l.slug?(0,u.default)({},t,l.category):t})}return t}e.unregisteredFallbackBlockName=T;var v=(0,o.combineReducers)({blockTypes:f,blockStyles:E,defaultBlockName:y,freeformFallbackBlockName:B,unregisteredFallbackBlockName:T,categories:b});e.default=v},877,[1,44,15,43,332,809,878]); +__d(function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.setLocaleData=_,e.__=function(t,n){return p(n,void 0,t)},e._x=function(t,n,o){return p(o,n,t)},e._n=function(t,n,o,u){return p(u,void 0,t,n,o)},e._nx=function(t,n,o,u,l){return p(l,u,t,n,o)},e.sprintf=function(t){try{for(var n=arguments.length,o=new Array(n>1?n-1:0),u=1;u1&&void 0!==arguments[1]?arguments[1]:'default';v.data[o]=(0,n.default)({},f,v.data[o],t),v.data[o]['']=(0,n.default)({},f[''],v.data[o][''])}function p(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:'default',n=arguments.length>1?arguments[1]:void 0,o=arguments.length>2?arguments[2]:void 0,u=arguments.length>3?arguments[3]:void 0,l=arguments.length>4?arguments[4]:void 0;return v.data[t]||_(void 0,t),v.dcnpgettext(t,n,o,u,l)}},878,[1,43,879,884,885]); +__d(function(g,r,i,a,m,e,d){'use strict';var t,o=(t=r(d[0]))&&'object'==typeof t&&'default'in t?t.default:t,s={contextDelimiter:"\x04",onMissingKey:null};function n(t){var o,s,n;for(o=t.split(';'),s=0;s':5,'>=':5,'==':4,'!=':4,'&&':3,'||':2,'?':1,'?:':1},t=['(','?'],u={')':['('],':':['?','?:']},n=/<=|>=|==|!=|&&|\|\||\?:|\(|!|\*|\/|%|\+|-|<|>|\?|\)|:/,m.exports=function(f){for(var p,h,o,c,b=[],x=[];p=f.match(n);){for(h=p[0],(o=f.substr(0,p.index).trim())&&b.push(o);c=x.pop();){if(u[h]){if(u[h][0]===c){h=u[h][1]||h;break}}else if(t.indexOf(c)>=0||s[c]':function(n,t){return n>t},'>=':function(n,t){return n>=t},'==':function(n,t){return n===t},'!=':function(n,t){return n!==t},'&&':function(n,t){return n&&t},'||':function(n,t){return n||t},'?:':function(n,t,u){if(n)throw t;return u}};m.exports=function(t,u){var c,o,f,l,s=[];for(c=0;c=0),f[8]){case'b':p=parseInt(p,10).toString(2);break;case'c':p=String.fromCharCode(parseInt(p,10));break;case'd':case'i':p=parseInt(p,10);break;case'j':p=JSON.stringify(p,null,f[6]?parseInt(f[6]):0);break;case'e':p=f[7]?parseFloat(p).toExponential(f[7]):parseFloat(p).toExponential();break;case'f':p=f[7]?parseFloat(p).toFixed(f[7]):parseFloat(p);break;case'g':p=f[7]?String(Number(p.toPrecision(f[7]))):parseFloat(p);break;case'o':p=(parseInt(p,10)>>>0).toString(8);break;case's':p=String(p),p=f[7]?p.substring(0,f[7]):p;break;case't':p=String(!!p),p=f[7]?p.substring(0,f[7]):p;break;case'T':p=Object.prototype.toString.call(p).slice(8,-1).toLowerCase(),p=f[7]?p.substring(0,f[7]):p;break;case'u':p=parseInt(p,10)>>>0;break;case'v':p=p.valueOf(),p=f[7]?p.substring(0,f[7]):p;break;case'x':p=(parseInt(p,10)>>>0).toString(16);break;case'X':p=(parseInt(p,10)>>>0).toString(16).toUpperCase()}t.json.test(f[8])?_+=p:(!t.number.test(f[8])||h&&!f[3]?y='':(y=h?'+':'-',p=p.toString().replace(t.sign,'')),b=f[4]?'0'===f[4]?'0':f[4].charAt(1):' ',x=f[6]-(y+p).length,l=f[6]&&x>0?b.repeat(x):'',_+=f[5]?y+p+l:'0'===b?y+l+p:l+y+p)}return _}var p=Object.create(null);function c(n){if(p[n])return p[n];for(var s,o=n,c=[],u=0;o;){if(null!==(s=t.text.exec(o)))c.push(s[0]);else if(null!==(s=t.modulo.exec(o)))c.push('%');else{if(null===(s=t.placeholder.exec(o)))throw new SyntaxError('[sprintf] unexpected placeholder');if(s[2]){u|=1;var f=[],l=s[2],b=[];if(null===(b=t.key.exec(l)))throw new SyntaxError('[sprintf] failed to parse named argument key');for(f.push(b[1]);''!==(l=l.substring(b[0].length));)if(null!==(b=t.key_access.exec(l)))f.push(b[1]);else{if(null===(b=t.index_access.exec(l)))throw new SyntaxError('[sprintf] failed to parse named argument key');f.push(b[1])}s[2]=f}else u|=2;if(3===u)throw new Error('[sprintf] mixing positional and named placeholders is not (yet) supported');c.push(s)}o=o.substring(s[0].length)}return p[n]=c}void 0!==e&&(e.sprintf=n,e.vsprintf=s),'undefined'!=typeof window&&(window.sprintf=n,window.vsprintf=s,'function'==typeof define&&define.amd&&define(function(){return{sprintf:n,vsprintf:s}}))})()},885,[]); +__d(function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.getBlockType=l,e.getBlockStyles=function(t,n){return t.blockStyles[n]},e.getCategories=function(t){return t.categories},e.getDefaultBlockName=function(t){return t.defaultBlockName},e.getFreeformFallbackBlockName=function(t){return t.freeformFallbackBlockName},e.getUnregisteredFallbackBlockName=function(t){return t.unregisteredFallbackBlockName},e.hasBlockSupport=k,e.hasChildBlocksWithInserterSupport=e.hasChildBlocks=e.getBlockSupport=e.getChildBlockNames=e.getBlockTypes=void 0;var n=t(r(d[1])),o=r(d[2]),c=(0,n.default)(function(t){return Object.values(t.blockTypes)},function(t){return[t.blockTypes]});function l(t,n){return t.blockTypes[n]}e.getBlockTypes=c;var u=(0,n.default)(function(t,n){return(0,o.map)((0,o.filter)(t.blockTypes,function(t){return(0,o.includes)(t.parent,n)}),function(t){return t.name})},function(t){return[t.blockTypes]});e.getChildBlockNames=u;var s=function(t,n,c,u){var s='string'==typeof n?l(t,n):n;return(0,o.get)(s,['supports',c],u)};function k(t,n,o,c){return!!s(t,n,o,c)}e.getBlockSupport=s;e.hasChildBlocks=function(t,n){return u(t,n).length>0};e.hasChildBlocksWithInserterSupport=function(t,n){return(0,o.some)(u(t,n),function(n){return k(t,n,'inserter',!0)})}},886,[1,887,332]); +__d(function(g,r,i,a,m,e,d){'use strict';var n,t;function u(n){return[n]}function l(){var n={clear:function(){n.head=null}};return n}function p(n,t,u){var l;if(n.length!==t.length)return!1;for(l=u;l1&&void 0!==arguments[1]?arguments[1]:{},u=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],f=(0,c.getBlockType)(t),s=(0,l.reduce)(f.attributes,function(t,u,o){var l=n[o];return void 0!==l?t[o]=l:u.hasOwnProperty('default')&&(t[o]=u.default),-1!==['node','children'].indexOf(u.source)&&('string'==typeof t[o]?t[o]=[t[o]]:Array.isArray(t[o])||(t[o]=[])),t},{});return{clientId:(0,o.default)(),name:t,isValid:!0,attributes:s,innerBlocks:u}},e.cloneBlock=function t(n){var l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};var f=arguments.length>2?arguments[2]:void 0;var c=(0,o.default)();return(0,u.default)({},n,{clientId:c,attributes:(0,u.default)({},n.attributes,l),innerBlocks:f||n.innerBlocks.map(function(n){return t(n)})})},e.getPossibleBlockTransformations=function(t){if((0,l.isEmpty)(t))return[];var u=(0,l.first)(t);if(t.length>1&&!(0,l.every)(t,{name:u.name}))return[];var o=p(t),f=v(t);return(0,l.uniq)((0,n.default)(o).concat((0,n.default)(f)))},e.findTransform=y,e.getBlockTransforms=B,e.switchToBlockType=function(t,n){var o=(0,l.castArray)(t),s=o.length>1,k=o[0],p=k.name;if(s&&!(0,l.every)(o,function(t){return t.name===p}))return null;var v,b=B('from',n),h=y(B('to',p),function(t){return'block'===t.type&&-1!==t.blocks.indexOf(n)&&(!s||t.isMultiBlock)})||y(b,function(t){return'block'===t.type&&-1!==t.blocks.indexOf(p)&&(!s||t.isMultiBlock)});if(!h)return null;v=h.isMultiBlock?h.transform(o.map(function(t){return t.attributes})):h.transform(k.attributes);if(!(0,l.isObjectLike)(v))return null;if((v=(0,l.castArray)(v)).some(function(t){return!(0,c.getBlockType)(t.name)}))return null;var T=(0,l.findIndex)(v,function(t){return t.name===n});if(T<0)return null;return v.map(function(n,o){var l=(0,u.default)({},n,{clientId:o===T?k.clientId:n.clientId});return(0,f.applyFilters)('blocks.switchToBlockType.transformedBlock',l,t)})};var n=t(r(d[1])),u=t(r(d[2])),o=t(r(d[3])),l=r(d[4]),f=r(d[5]),c=r(d[6]),s=r(d[7]);var k=function(t,n,u){if((0,l.isEmpty)(u))return!1;if(!(!(u.length>1)||t.isMultiBlock))return!1;if(!('block'===t.type))return!1;var o=(0,l.first)(u);if(!('from'!==n||-1!==t.blocks.indexOf(o.name)))return!1;if((0,l.isFunction)(t.isMatch)){var f=t.isMultiBlock?u.map(function(t){return t.attributes}):o.attributes;if(!t.isMatch(f))return!1}return!0},p=function(t){if((0,l.isEmpty)(t))return[];var n=(0,c.getBlockTypes)();return(0,l.filter)(n,function(n){return!!y(B('from',n.name),function(n){return k(n,'from',t)})})},v=function(t){if((0,l.isEmpty)(t))return[];var n=(0,l.first)(t),u=B('to',(0,c.getBlockType)(n.name).name),o=(0,l.filter)(u,function(n){return k(n,'to',t)});return(0,l.flatMap)(o,function(t){return t.blocks}).map(function(t){return(0,c.getBlockType)(t)})};function y(t,n){for(var u=(0,f.createHooks)(),o=function(o){var l=t[o];n(l)&&u.addFilter('transform','transform/'+o.toString(),function(t){return t||l},l.priority)},l=0;l>>((3&t)<<3)&255;return u}}m.exports=n},892,[]); +__d(function(g,r,i,a,m,e,d){for(var t=[],n=0;n<256;++n)t[n]=(n+256).toString(16).substr(1);m.exports=function(n,o){var u=o||0,f=t;return f[n[u++]]+f[n[u++]]+f[n[u++]]+f[n[u++]]+'-'+f[n[u++]]+f[n[u++]]+'-'+f[n[u++]]+f[n[u++]]+'-'+f[n[u++]]+f[n[u++]]+'-'+f[n[u++]]+f[n[u++]]+f[n[u++]]+f[n[u++]]+f[n[u++]]+f[n[u++]]}},893,[]); +__d(function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"createHooks",{enumerable:!0,get:function(){return o.default}}),e.filters=e.actions=e.didFilter=e.didAction=e.doingFilter=e.doingAction=e.currentFilter=e.currentAction=e.applyFilters=e.doAction=e.removeAllFilters=e.removeAllActions=e.hasFilter=e.hasAction=e.removeFilter=e.removeAction=e.addFilter=e.addAction=void 0;var o=t(r(d[1])),l=(0,o.default)(),n=l.addAction,c=l.addFilter,A=l.removeAction,F=l.removeFilter,s=l.hasAction,v=l.hasFilter,u=l.removeAllActions,f=l.removeAllFilters,p=l.doAction,h=l.applyFilters,y=l.currentAction,_=l.currentFilter,b=l.doingAction,j=l.doingFilter,O=l.didAction,P=l.didFilter,k=l.actions,H=l.filters;e.filters=H,e.actions=k,e.didFilter=P,e.didAction=O,e.doingFilter=j,e.doingAction=b,e.currentFilter=_,e.currentAction=y,e.applyFilters=h,e.doAction=p,e.removeAllFilters=f,e.removeAllActions=u,e.hasFilter=v,e.hasAction=s,e.removeFilter=F,e.removeAction=A,e.addFilter=c,e.addAction=n},894,[1,895]); +__d(function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var l=t(r(d[1])),u=t(r(d[2])),n=t(r(d[3])),f=t(r(d[4])),o=t(r(d[5])),c=t(r(d[6])),v=t(r(d[7]));var A=function(){var t=Object.create(null),A=Object.create(null);return t.__current=[],A.__current=[],{addAction:(0,l.default)(t),addFilter:(0,l.default)(A),removeAction:(0,u.default)(t),removeFilter:(0,u.default)(A),hasAction:(0,n.default)(t),hasFilter:(0,n.default)(A),removeAllActions:(0,u.default)(t,!0),removeAllFilters:(0,u.default)(A,!0),doAction:(0,f.default)(t),applyFilters:(0,f.default)(A,!0),currentAction:(0,o.default)(t),currentFilter:(0,o.default)(A),doingAction:(0,c.default)(t),doingFilter:(0,c.default)(A),didAction:(0,v.default)(t),didFilter:(0,v.default)(A),actions:t,filters:A}};e.default=A},895,[1,896,899,900,901,902,903,904]); +__d(function(g,r,i,a,m,e,d){var o=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=o(r(d[1])),t=o(r(d[2])),c=r(d[3]);var f=function(o){return function(f,l,u){var s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:10;if((0,t.default)(f)&&(0,n.default)(l))if('function'==typeof u)if('number'==typeof s){var h={callback:u,priority:s,namespace:l};if(o[f]){var p,v=o[f].handlers;for(p=v.length;p>0&&!(s>=v[p-1].priority);p--);p===v.length?v[p]=h:v.splice(p,0,h),(o.__current||[]).forEach(function(o){o.name===f&&o.currentIndex>=p&&o.currentIndex++})}else o[f]={handlers:[h],runs:0};'hookAdded'!==f&&(0,c.doAction)('hookAdded',f,l,u,s)}else console.error('If specified, the hook priority must be a number.');else console.error('The hook callback must be a function.')}};e.default=f},896,[1,897,898,894]); +__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=function(n){return'string'!=typeof n||''===n?(console.error('The namespace must be a non-empty string.'),!1):!!/^[a-zA-Z][a-zA-Z0-9_.\-\/]*$/.test(n)||(console.error('The namespace can only contain numbers, letters, dashes, periods, underscores and slashes.'),!1)};e.default=n},897,[]); +__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=function(o){return'string'!=typeof o||''===o?(console.error('The hook name must be a non-empty string.'),!1):/^__/.test(o)?(console.error('The hook name cannot begin with `__`.'),!1):!!/^[a-zA-Z][a-zA-Z0-9_.-]*$/.test(o)||(console.error('The hook name can only contain numbers, letters, dashes, periods and underscores.'),!1)};e.default=o},898,[]); +__d(function(g,r,i,a,m,e,d){var n=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=n(r(d[1])),u=n(r(d[2])),o=r(d[3]);var f=function(n,f){return function(c,l){if((0,u.default)(c)&&(f||(0,t.default)(l))){if(!n[c])return 0;var s=0;if(f)s=n[c].handlers.length,n[c]={runs:n[c].runs,handlers:[]};else for(var v=n[c].handlers,h=function(t){v[t].namespace===l&&(v.splice(t,1),s++,(n.__current||[]).forEach(function(n){n.name===c&&n.currentIndex>=t&&n.currentIndex--}))},_=v.length-1;_>=0;_--)h(_);return'hookRemoved'!==c&&(0,o.doAction)('hookRemoved',c,l),s}}};e.default=f},899,[1,897,898,894]); +__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=function(n){return function(t){return t in n}};e.default=n},900,[]); +__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=function(n,u){return function(t){n[t]||(n[t]={handlers:[],runs:0}),n[t].runs++;for(var l=n[t].handlers,c=arguments.length,o=new Array(c>1?c-1:0),f=1;f3)return void console.error('The block "'+o+'" can have a maximum of 3 keywords.');if(!('category'in k))return void console.error('The block "'+o+'" must have a category.');if('category'in k&&!(0,c.some)((0,s.select)('core/blocks').getCategories(),{slug:k.category}))return void console.error('The block "'+o+'" must have a registered category.');if(!('title'in k)||''===k.title)return void console.error('The block "'+o+'" must have a title.');if('string'!=typeof k.title)return void console.error('Block titles must be strings.');if(k.icon=(0,n.normalizeIconObject)(k.icon),!(0,n.isValidIcon)(k.icon.src))return void console.error("The icon passed is invalid. The icon should be a string, an element, a function, or an object following the specifications documented in https://wordpress.org/gutenberg/handbook/designers-developers/developers/block-api/block-registration/#icon-optional");return(0,s.dispatch)('core/blocks').addBlockTypes(k),k},e.unregisterBlockType=function(o){var t=(0,s.select)('core/blocks').getBlockType(o);if(!t)return void console.error('Block "'+o+'" is not registered.');return(0,s.dispatch)('core/blocks').removeBlockTypes(o),t},e.setFreeformContentHandlerName=function(o){(0,s.dispatch)('core/blocks').setFreeformFallbackBlockName(o)},e.getFreeformContentHandlerName=function(){return(0,s.select)('core/blocks').getFreeformFallbackBlockName()},e.setUnregisteredTypeHandlerName=function(o){(0,s.dispatch)('core/blocks').setUnregisteredFallbackBlockName(o)},e.getUnregisteredTypeHandlerName=function(){return(0,s.select)('core/blocks').getUnregisteredFallbackBlockName()},e.setDefaultBlockName=function(o){(0,s.dispatch)('core/blocks').setDefaultBlockName(o)},e.getDefaultBlockName=function(){return(0,s.select)('core/blocks').getDefaultBlockName()},e.getBlockType=function(o){return(0,s.select)('core/blocks').getBlockType(o)},e.getBlockTypes=function(){return(0,s.select)('core/blocks').getBlockTypes()},e.getBlockSupport=function(o,t,c){return(0,s.select)('core/blocks').getBlockSupport(o,t,c)},e.hasBlockSupport=function(o,t,c){return(0,s.select)('core/blocks').hasBlockSupport(o,t,c)},e.isReusableBlock=function(o){return'core/block'===o.name},e.unregisterBlockStyle=e.registerBlockStyle=e.hasChildBlocksWithInserterSupport=e.hasChildBlocks=e.getChildBlockNames=void 0;var t=o(r(d[1])),c=r(d[2]),l=r(d[3]),s=r(d[4]),n=r(d[5]),u={};e.getChildBlockNames=function(o){return(0,s.select)('core/blocks').getChildBlockNames(o)};e.hasChildBlocks=function(o){return(0,s.select)('core/blocks').hasChildBlocks(o)};e.hasChildBlocksWithInserterSupport=function(o){return(0,s.select)('core/blocks').hasChildBlocksWithInserterSupport(o)};e.registerBlockStyle=function(o,t){(0,s.dispatch)('core/blocks').addBlockStyles(o,t)};e.unregisterBlockStyle=function(o,t){(0,s.dispatch)('core/blocks').removeBlockStyles(o,t)}},905,[1,43,332,894,809,906]); +__d(function(g,r,i,a,m,e,d){var t=r(d[0]),n=r(d[1]);Object.defineProperty(e,"__esModule",{value:!0}),e.isUnmodifiedDefaultBlock=function t(n){var o=(0,f.getDefaultBlockName)();if(n.name!==o)return!1;t.block&&t.block.name===o||(t.block=(0,s.createBlock)(o));var u=t.block;var c=(0,f.getBlockType)(o);return(0,l.every)(c.attributes,function(t,o){return u.attributes[o]===n.attributes[o]})},e.isValidIcon=k,e.normalizeIconObject=function(t){t||(t='block-default');if(k(t))return{src:t};if((0,l.has)(t,['background'])){var n=(0,u.default)(t.background);return(0,o.default)({},t,{foreground:t.foreground?t.foreground:(0,u.mostReadable)(n,b,{includeFallbackColors:!0,level:'AA',size:'large'}).toHexString(),shadowColor:n.setAlpha(.3).toRgbString()})}return t},e.normalizeBlockType=function(t){if((0,l.isString)(t))return(0,f.getBlockType)(t);return t};var o=n(r(d[2])),l=r(d[3]),u=t(r(d[4])),c=r(d[5]),f=r(d[6]),s=r(d[7]),b=['#191e23','#f8f9f9'];function k(t){return!!t&&((0,l.isString)(t)||(0,c.isValidElement)(t)||(0,l.isFunction)(t)||t instanceof c.Component)}},906,[329,1,43,332,907,330,905,890]); +__d(function(g,r,i,a,m,e,d){!(function(t){var n=/^\s+/,s=/\s+$/,o=0,f=t.round,h=t.min,l=t.max,u=t.random;function c(t,n){if(t=t||'',n=n||{},t instanceof c)return t;if(!(this instanceof c))return new c(t,n);var s=b(t);this._originalInput=t,this._r=s.r,this._g=s.g,this._b=s.b,this._a=s.a,this._roundA=f(100*this._a)/100,this._format=n.format||s.format,this._gradientType=n.gradientType,this._r<1&&(this._r=f(this._r)),this._g<1&&(this._g=f(this._g)),this._b<1&&(this._b=f(this._b)),this._ok=s.ok,this._tc_id=o++}function b(t){var n,s,o,f={r:0,g:0,b:0},u=1,c=null,b=null,_=null,v=!1,A=!1;return"string"==typeof t&&(t=W(t)),"object"==typeof t&&(Q(t.r)&&Q(t.g)&&Q(t.b)?(n=t.r,s=t.g,o=t.b,f={r:255*P(n,255),g:255*P(s,255),b:255*P(o,255)},v=!0,A="%"===String(t.r).substr(-1)?"prgb":"rgb"):Q(t.h)&&Q(t.s)&&Q(t.v)?(c=V(t.s),b=V(t.v),f=y(t.h,c,b),v=!0,A="hsv"):Q(t.h)&&Q(t.s)&&Q(t.l)&&(c=V(t.s),_=V(t.l),f=p(t.h,c,_),v=!0,A="hsl"),t.hasOwnProperty("a")&&(u=t.a)),u=O(u),{ok:v,format:t.format||A,r:h(255,l(f.r,0)),g:h(255,l(f.g,0)),b:h(255,l(f.b,0)),a:u}}function _(t,n,s){t=P(t,255),n=P(n,255),s=P(s,255);var o,f,u=l(t,n,s),c=h(t,n,s),b=(u+c)/2;if(u==c)o=f=0;else{var _=u-c;switch(f=b>.5?_/(2-u-c):_/(u+c),u){case t:o=(n-s)/_+(n1&&(s-=1),s<.16666666666666666?t+6*(n-t)*s:s<.5?n:s<.6666666666666666?t+(n-t)*(.6666666666666666-s)*6:t}if(t=P(t,360),n=P(n,100),s=P(s,100),0===n)o=f=h=s;else{var u=s<.5?s*(1+n):s+n-s*n,c=2*s-u;o=l(c,u,t+.3333333333333333),f=l(c,u,t),h=l(c,u,t-.3333333333333333)}return{r:255*o,g:255*f,b:255*h}}function v(t,n,s){t=P(t,255),n=P(n,255),s=P(s,255);var o,f,u=l(t,n,s),c=h(t,n,s),b=u,_=u-c;if(f=0===u?0:_/u,u==c)o=0;else{switch(u){case t:o=(n-s)/_+(n>1)+720)%360;--n;)o.h=(o.h+f)%360,h.push(c(o));return h}function E(t,n){n=n||6;for(var s=c(t).toHsv(),o=s.h,f=s.s,h=s.v,l=[],u=1/n;n--;)l.push(c({h:o,s:f,v:h})),h=(h+u)%1;return l}c.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var t=this.toRgb();return(299*t.r+587*t.g+114*t.b)/1e3},getLuminance:function(){var n,s,o,f=this.toRgb();return n=f.r/255,s=f.g/255,o=f.b/255,.2126*(n<=.03928?n/12.92:t.pow((n+.055)/1.055,2.4))+.7152*(s<=.03928?s/12.92:t.pow((s+.055)/1.055,2.4))+.0722*(o<=.03928?o/12.92:t.pow((o+.055)/1.055,2.4))},setAlpha:function(t){return this._a=O(t),this._roundA=f(100*this._a)/100,this},toHsv:function(){var t=v(this._r,this._g,this._b);return{h:360*t.h,s:t.s,v:t.v,a:this._a}},toHsvString:function(){var t=v(this._r,this._g,this._b),n=f(360*t.h),s=f(100*t.s),o=f(100*t.v);return 1==this._a?"hsv("+n+", "+s+"%, "+o+"%)":"hsva("+n+", "+s+"%, "+o+"%, "+this._roundA+")"},toHsl:function(){var t=_(this._r,this._g,this._b);return{h:360*t.h,s:t.s,l:t.l,a:this._a}},toHslString:function(){var t=_(this._r,this._g,this._b),n=f(360*t.h),s=f(100*t.s),o=f(100*t.l);return 1==this._a?"hsl("+n+", "+s+"%, "+o+"%)":"hsla("+n+", "+s+"%, "+o+"%, "+this._roundA+")"},toHex:function(t){return A(this._r,this._g,this._b,t)},toHexString:function(t){return'#'+this.toHex(t)},toHex8:function(t){return x(this._r,this._g,this._b,this._a,t)},toHex8String:function(t){return'#'+this.toHex8(t)},toRgb:function(){return{r:f(this._r),g:f(this._g),b:f(this._b),a:this._a}},toRgbString:function(){return 1==this._a?"rgb("+f(this._r)+", "+f(this._g)+", "+f(this._b)+")":"rgba("+f(this._r)+", "+f(this._g)+", "+f(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:f(100*P(this._r,255))+"%",g:f(100*P(this._g,255))+"%",b:f(100*P(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return 1==this._a?"rgb("+f(100*P(this._r,255))+"%, "+f(100*P(this._g,255))+"%, "+f(100*P(this._b,255))+"%)":"rgba("+f(100*P(this._r,255))+"%, "+f(100*P(this._g,255))+"%, "+f(100*P(this._b,255))+"%, "+this._roundA+")"},toName:function(){return 0===this._a?"transparent":!(this._a<1)&&(j[A(this._r,this._g,this._b,!0)]||!1)},toFilter:function(t){var n='#'+k(this._r,this._g,this._b,this._a),s=n,o=this._gradientType?"GradientType = 1, ":"";if(t){var f=c(t);s='#'+k(f._r,f._g,f._b,f._a)}return"progid:DXImageTransform.Microsoft.gradient("+o+"startColorstr="+n+",endColorstr="+s+")"},toString:function(t){var n=!!t;t=t||this._format;var s=!1,o=this._a<1&&this._a>=0;return n||!o||"hex"!==t&&"hex6"!==t&&"hex3"!==t&&"hex4"!==t&&"hex8"!==t&&"name"!==t?("rgb"===t&&(s=this.toRgbString()),"prgb"===t&&(s=this.toPercentageRgbString()),"hex"!==t&&"hex6"!==t||(s=this.toHexString()),"hex3"===t&&(s=this.toHexString(!0)),"hex4"===t&&(s=this.toHex8String(!0)),"hex8"===t&&(s=this.toHex8String()),"name"===t&&(s=this.toName()),"hsl"===t&&(s=this.toHslString()),"hsv"===t&&(s=this.toHsvString()),s||this.toHexString()):"name"===t&&0===this._a?this.toName():this.toRgbString()},clone:function(){return c(this.toString())},_applyModification:function(t,n){var s=t.apply(null,[this].concat([].slice.call(n)));return this._r=s._r,this._g=s._g,this._b=s._b,this.setAlpha(s._a),this},lighten:function(){return this._applyModification(R,arguments)},brighten:function(){return this._applyModification(F,arguments)},darken:function(){return this._applyModification(C,arguments)},desaturate:function(){return this._applyModification(w,arguments)},saturate:function(){return this._applyModification(S,arguments)},greyscale:function(){return this._applyModification(H,arguments)},spin:function(){return this._applyModification(q,arguments)},_applyCombination:function(t,n){return t.apply(null,[this].concat([].slice.call(n)))},analogous:function(){return this._applyCombination(z,arguments)},complement:function(){return this._applyCombination(M,arguments)},monochromatic:function(){return this._applyCombination(E,arguments)},splitcomplement:function(){return this._applyCombination(N,arguments)},triad:function(){return this._applyCombination(I,arguments)},tetrad:function(){return this._applyCombination(L,arguments)}},c.fromRatio=function(t,n){if("object"==typeof t){var s={};for(var o in t)t.hasOwnProperty(o)&&(s[o]="a"===o?t[o]:V(t[o]));t=s}return c(t,n)},c.equals=function(t,n){return!(!t||!n)&&c(t).toRgbString()==c(n).toRgbString()},c.random=function(){return c.fromRatio({r:u(),g:u(),b:u()})},c.mix=function(t,n,s){s=0===s?0:s||50;var o=c(t).toRgb(),f=c(n).toRgb(),h=s/100;return c({r:(f.r-o.r)*h+o.r,g:(f.g-o.g)*h+o.g,b:(f.b-o.b)*h+o.b,a:(f.a-o.a)*h+o.a})},c.readability=function(n,s){var o=c(n),f=c(s);return(t.max(o.getLuminance(),f.getLuminance())+.05)/(t.min(o.getLuminance(),f.getLuminance())+.05)},c.isReadable=function(t,n,s){var o,f,h=c.readability(t,n);switch(f=!1,(o=Y(s)).level+o.size){case"AAsmall":case"AAAlarge":f=h>=4.5;break;case"AAlarge":f=h>=3;break;case"AAAsmall":f=h>=7}return f},c.mostReadable=function(t,n,s){var o,f,h,l,u=null,b=0;f=(s=s||{}).includeFallbackColors,h=s.level,l=s.size;for(var _=0;_b&&(b=o,u=c(n[_]));return c.isReadable(t,u,{level:h,size:l})||!f?u:(s.includeFallbackColors=!1,c.mostReadable(t,["#fff","#000"],s))};var T=c.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},j=c.hexNames=(function(t){var n={};for(var s in t)t.hasOwnProperty(s)&&(n[t[s]]=s);return n})(T);function O(t){return t=parseFloat(t),(isNaN(t)||t<0||t>1)&&(t=1),t}function P(n,s){U(n)&&(n="100%");var o=B(n);return n=h(s,l(0,parseFloat(n))),o&&(n=parseInt(n*s,10)/100),t.abs(n-s)<1e-6?1:n%s/parseFloat(s)}function $(t){return h(1,l(0,t))}function D(t){return parseInt(t,16)}function U(t){return"string"==typeof t&&-1!=t.indexOf('.')&&1===parseFloat(t)}function B(t){return"string"==typeof t&&-1!=t.indexOf('%')}function G(t){return 1==t.length?'0'+t:''+t}function V(t){return t<=1&&(t=100*t+"%"),t}function X(n){return t.round(255*parseFloat(n)).toString(16)}function J(t){return D(t)/255}var K={CSS_UNIT:new RegExp("(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)"),rgb:new RegExp("rgb[\\s|\\(]+((?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?))[,|\\s]+((?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?))[,|\\s]+((?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?))\\s*\\)?"),rgba:new RegExp("rgba[\\s|\\(]+((?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?))[,|\\s]+((?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?))[,|\\s]+((?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?))[,|\\s]+((?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?))\\s*\\)?"),hsl:new RegExp("hsl[\\s|\\(]+((?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?))[,|\\s]+((?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?))[,|\\s]+((?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?))\\s*\\)?"),hsla:new RegExp("hsla[\\s|\\(]+((?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?))[,|\\s]+((?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?))[,|\\s]+((?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?))[,|\\s]+((?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?))\\s*\\)?"),hsv:new RegExp("hsv[\\s|\\(]+((?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?))[,|\\s]+((?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?))[,|\\s]+((?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?))\\s*\\)?"),hsva:new RegExp("hsva[\\s|\\(]+((?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?))[,|\\s]+((?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?))[,|\\s]+((?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?))[,|\\s]+((?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?))\\s*\\)?"),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/};function Q(t){return!!K.CSS_UNIT.exec(t)}function W(t){t=t.replace(n,'').replace(s,'').toLowerCase();var o,f=!1;if(T[t])t=T[t],f=!0;else if('transparent'==t)return{r:0,g:0,b:0,a:0,format:"name"};return(o=K.rgb.exec(t))?{r:o[1],g:o[2],b:o[3]}:(o=K.rgba.exec(t))?{r:o[1],g:o[2],b:o[3],a:o[4]}:(o=K.hsl.exec(t))?{h:o[1],s:o[2],l:o[3]}:(o=K.hsla.exec(t))?{h:o[1],s:o[2],l:o[3],a:o[4]}:(o=K.hsv.exec(t))?{h:o[1],s:o[2],v:o[3]}:(o=K.hsva.exec(t))?{h:o[1],s:o[2],v:o[3],a:o[4]}:(o=K.hex8.exec(t))?{r:D(o[1]),g:D(o[2]),b:D(o[3]),a:J(o[4]),format:f?"name":"hex8"}:(o=K.hex6.exec(t))?{r:D(o[1]),g:D(o[2]),b:D(o[3]),format:f?"name":"hex"}:(o=K.hex4.exec(t))?{r:D(o[1]+''+o[1]),g:D(o[2]+''+o[2]),b:D(o[3]+''+o[3]),a:J(o[4]+''+o[4]),format:f?"name":"hex8"}:!!(o=K.hex3.exec(t))&&{r:D(o[1]+''+o[1]),g:D(o[2]+''+o[2]),b:D(o[3]+''+o[3]),format:f?"name":"hex"}}function Y(t){var n,s;return n=((t=t||{level:"AA",size:"small"}).level||"AA").toUpperCase(),s=(t.size||"small").toLowerCase(),"AA"!==n&&"AAA"!==n&&(n="AA"),"small"!==s&&"large"!==s&&(s="small"),{level:n,size:s}}void 0!==m&&m.exports?m.exports=c:'function'==typeof define&&define.amd?define(function(){return c}):window.tinycolor=c})(Math)},907,[]); +__d(function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.isOfType=C,e.isOfTypes=T,e.isAmbiguousStringSource=function(t){var n=t.source,o=t.type;return A.has(n)&&'string'==typeof o},e.asType=function(t,n){switch(n){case'string':return String(t);case'boolean':return Boolean(t);case'object':return Object(t);case'null':return null;case'array':return Array.isArray(t)?t:Array.from(t);case'integer':case'number':return Number(t)}return t},e.matcherFromSource=V,e.parseWithAttributeSchema=x,e.getBlockAttribute=N,e.getBlockAttributes=S,e.getMigratedBlock=j,e.createBlockWithFallback=F,e.default=e.parseWithGrammar=e.toBooleanAttributeMatcher=void 0;var n=t(r(d[1])),o=t(r(d[2])),c=t(r(d[3])),u=r(d[4]),s=r(d[5]),l=r(d[6]),f=r(d[7]),v=r(d[8]),p=r(d[9]),b=r(d[10]),y=r(d[11]),h=r(d[12]),k=r(d[13]),B=r(d[14]),A=new Set(['attribute','html','text','tag']),w=function(t){return(0,s.flow)([t,function(t){return void 0!==t}])};function C(t,n){switch(n){case'string':return'string'==typeof t;case'boolean':return'boolean'==typeof t;case'object':return!!t&&t.constructor===Object;case'null':return null===t;case'array':return Array.isArray(t);case'integer':case'number':return'number'==typeof t}return!0}function T(t,n){return n.some(function(n){return C(t,n)})}function V(t){switch(t.source){case'attribute':var n=(0,k.attr)(t.selector,t.attribute);return'boolean'===t.type&&(n=w(n)),n;case'html':return(0,k.html)(t.selector,t.multiline);case'text':return(0,k.text)(t.selector);case'children':return(0,k.children)(t.selector);case'node':return(0,k.node)(t.selector);case'query':var o=(0,s.mapValues)(t.query,V);return(0,k.query)(t.selector,o);case'tag':return(0,s.flow)([(0,k.prop)(t.selector,'nodeName'),function(t){return t.toLowerCase()}]);default:console.error("Unknown source type \""+t.source+"\"")}}function x(t,n){return(0,u.parse)(t,V(n))}function N(t,n,o,c){var u,l=n.type;switch(n.source){case void 0:u=c?c[t]:void 0;break;case'attribute':case'property':case'html':case'text':case'children':case'node':case'query':case'tag':u=x(o,n)}return void 0===l||T(u,(0,s.castArray)(l))||(u=void 0),void 0===u?n.default:u}function S(t,n){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},c=(0,B.normalizeBlockType)(t),u=(0,s.mapValues)(c.attributes,function(t,c){return N(c,t,n,o)});return(0,f.applyFilters)('blocks.getBlockAttributes',u,c,n,o)}function j(t){var u=(0,p.getBlockType)(t.name),l=u.deprecated;if(!l||!l.length)return t;for(var f=t,v=f.originalContent,b=f.attributes,h=f.innerBlocks,k=0;k1&&void 0!==arguments[1])||arguments[1],l=[];if(''===t.trim())return'';if(-1!==(t+='\n').indexOf(''),s=c.pop();t='';for(var u=0;u';l.push([b,f.substr(h)+'']),t+=f.substr(0,h)+b}else t+=f}t+=s}-1!==(t=o(t=(t=(t=(t=t.replace(/\s*/g,'\n\n')).replace(new RegExp("(<(?:table|thead|tfoot|caption|col|colgroup|tbody|tr|td|th|div|dl|dd|dt|ul|ol|li|pre|form|map|area|blockquote|address|math|style|p|h[1-6]|hr|fieldset|legend|section|article|aside|hgroup|header|footer|nav|figure|figcaption|details|menu|summary)[\\s/>])",'g'),'\n\n$1')).replace(new RegExp("()",'g'),'$1\n\n')).replace(/\r\n|\r/g,'\n'),{'\n':' \x3c!-- wpnl --\x3e '})).indexOf('\s*/g,''));-1!==t.indexOf('')&&(t=(t=(t=t.replace(/(]*>)\s*/g,'$1')).replace(/\s*<\/object>/g,'')).replace(/\s*(<\/?(?:param|embed)[^>]*>)\s*/g,'$1'));-1===t.indexOf('\]]*[>\]])\s*/g,'$1')).replace(/\s*([<\[]\/(?:audio|video)[>\]])/g,'$1')).replace(/\s*(<(?:source|track)[^>]*>)\s*/g,'$1'));-1!==t.indexOf(']*>)/,'$1')).replace(/<\/figcaption>\s*/,''));var v=(t=t.replace(/\n\n+/g,'\n\n')).split(/\n\s*\n/).filter(Boolean);t='',v.forEach(function(p){t+='

'+p.replace(/^\n*|\n*$/g,'')+'

\n'}),t=(t=(t=(t=(t=(t=(t=(t=t.replace(/

\s*<\/p>/g,'')).replace(/

([^<]+)<\/(div|address|form)>/g,'

$1

')).replace(new RegExp("

\\s*(]*>)\\s*

",'g'),'$1')).replace(/

(/g,'$1')).replace(/

]*)>/gi,'

')).replace(/<\/blockquote><\/p>/g,'

')).replace(new RegExp("

\\s*(]*>)",'g'),'$1')).replace(new RegExp("(]*>)\\s*

",'g'),'$1'),n&&(t=(t=(t=(t=t.replace(/<(script|style).*?<\/\\1>/g,function(t){return t[0].replace(/\n/g,'')})).replace(/
|/g,'
')).replace(/(
)?\s*\n/g,function(t,p){return p?t:'
\n'})).replace(//g,'\n'));t=(t=(t=t.replace(new RegExp("(]*>)\\s*
",'g'),'$1')).replace(/
(\s*<\/?(?:p|li|div|dl|dd|dt|th|pre|td|ul|ol)[^>]*>)/g,'$1')).replace(/\n<\/p>$/g,'

'),l.forEach(function(n){var l=(0,p.default)(n,2),o=l[0],c=l[1];t=t.replace(o,c)}),-1!==t.indexOf('\x3c!-- wpnl --\x3e')&&(t=t.replace(/\s?\s?/g,'\n'));return t},e.removep=function(t){var p=[],n=!1,l=!1;if(!t)return'';-1===t.indexOf(']*>[\s\S]*?<\/\1>/g,function(t){return p.push(t),''}));-1!==t.indexOf(']*>[\s\S]+?<\/pre>/g,function(t){return(t=(t=t.replace(/
(\r\n|\n)?/g,'')).replace(/<\/?p( [^>]*)?>(\r\n|\n)?/g,'')).replace(/\r?\n/g,'')}));-1!==t.indexOf('[caption')&&(l=!0,t=t.replace(/\[caption[\s\S]+?\[\/caption\]/g,function(t){return t.replace(/]*)>/g,'').replace(/[\r\n\t]+/,'')}));-1!==(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=t.replace(new RegExp("\\s*\\s*",'g'),'\n')).replace(new RegExp("\\s*<((?:blockquote|ul|ol|li|dl|dt|dd|table|thead|tbody|tfoot|tr|th|td|h[1-6]|fieldset|figure|div|p)(?: [^>]*)?)>",'g'),'\n<$1>')).replace(/(

]+>.*?)<\/p>/g,'$1')).replace(/]*)?>\s*

/gi,'\n\n')).replace(/\s*

/gi,'')).replace(/\s*<\/p>\s*/gi,'\n\n')).replace(/\n[\s\u00a0]+\n/g,'\n\n')).replace(/(\s*)
\s*/gi,function(t,p){return p&&-1!==p.indexOf('\n')?'\n\n':'\n'})).replace(/\s*

\s*/g,'
\n')).replace(/\s*\[caption([^\[]+)\[\/caption\]\s*/gi,'\n\n[caption$1[/caption]\n\n')).replace(/caption\]\n\n+\[caption/g,'caption]\n\n[caption')).replace(new RegExp("\\s*<((?:blockquote|ul|ol|li|dl|dt|dd|table|thead|tbody|tfoot|tr|th|td|h[1-6]|fieldset|figure|pre)(?: [^>]*)?)\\s*>",'g'),'\n<$1>')).replace(new RegExp("\\s*\\s*",'g'),'\n')).replace(/<((li|dt|dd)[^>]*)>/g,' \t<$1>')).indexOf('/g,'\n'));-1!==t.indexOf(']*)?>\s*/g,'\n\n\n\n'));-1!==t.indexOf('/g,function(t){return t.replace(/[\r\n]+/g,'')}));t=(t=(t=(t=t.replace(/<\/p#>/g,'

\n')).replace(/\s*(

]+>[\s\S]*?<\/p>)/g,'\n$1')).replace(/^\s+/,'')).replace(/[\s\u00a0]+$/,''),n&&(t=t.replace(//g,'\n'));l&&(t=t.replace(/]*)>/g,''));p.length&&(t=t.replace(//g,function(){return p.shift()}));return t};var p=t(r(d[1])),n=new RegExp("(<((?=!--|!\\[CDATA\\[)((?=!-)!(?:-(?!->)[^\\-]*)*(?:--\x3e)?|!\\[CDATA\\[[^\\]]*(?:](?!]>)[^\\]]*)*?(?:]]>)?)|[^>]*>?))");function l(t){for(var p,l=[],o=t;p=o.match(n);)l.push(o.slice(0,p.index)),l.push(p[0]),o=o.slice(p.index+p[0].length);return o.length&&l.push(o),l}function o(t,p){for(var n=l(t),o=!1,c=Object.keys(p),s=1;s)[^])*)\5|[^]*?)}\s+)?(\/)?-->/g;function f(n,t,o,u,s){return{blockName:n,attrs:t,innerBlocks:o,innerHTML:u,innerContent:s}}function p(n){return f(null,{},[],n,[n])}function k(n,t,o,u,s){return{block:n,tokenStart:t,tokenLength:o,prevOffset:u||t+o,leadingHtmlStart:s}}function b(){var n=h(),c=(0,l.default)(n,5),b=c[0],v=c[1],S=c[2],_=c[3],C=c[4],M=s.length,z=_>o?o:null;switch(b){case'no-more-tokens':if(0===M)return O(),!1;if(1===M)return L(),!1;for(;01?o-1:0),s=1;s"===t?(this.delegate.finishComment(),this.state='beforeData'):(this.delegate.appendToCommentData(t),this.state='comment')},commentStartDash:function(){var t=this.consume();"-"===t?this.state='commentEnd':">"===t?(this.delegate.finishComment(),this.state='beforeData'):(this.delegate.appendToCommentData("-"),this.state='comment')},comment:function(){var t=this.consume();"-"===t?this.state='commentEndDash':this.delegate.appendToCommentData(t)},commentEndDash:function(){var t=this.consume();"-"===t?this.state='commentEnd':(this.delegate.appendToCommentData("-"+t),this.state='comment')},commentEnd:function(){var t=this.consume();">"===t?(this.delegate.finishComment(),this.state='beforeData'):(this.delegate.appendToCommentData("--"+t),this.state='comment')},tagName:function(){var s=this.consume();(0,t.isSpace)(s)?this.state='beforeAttributeName':"/"===s?this.state='selfClosingStartTag':">"===s?(this.delegate.finishTag(),this.state='beforeData'):this.delegate.appendToTagName(s)},beforeAttributeName:function(){var s=this.peek();(0,t.isSpace)(s)?this.consume():"/"===s?(this.state='selfClosingStartTag',this.consume()):">"===s?(this.consume(),this.delegate.finishTag(),this.state='beforeData'):'='===s?(this.delegate.reportSyntaxError("attribute name cannot start with equals sign"),this.state='attributeName',this.delegate.beginAttribute(),this.consume(),this.delegate.appendToAttributeName(s)):(this.state='attributeName',this.delegate.beginAttribute())},attributeName:function(){var s=this.peek();(0,t.isSpace)(s)?(this.state='afterAttributeName',this.consume()):"/"===s?(this.delegate.beginAttributeValue(!1),this.delegate.finishAttributeValue(),this.consume(),this.state='selfClosingStartTag'):"="===s?(this.state='beforeAttributeValue',this.consume()):">"===s?(this.delegate.beginAttributeValue(!1),this.delegate.finishAttributeValue(),this.consume(),this.delegate.finishTag(),this.state='beforeData'):'"'===s||"'"===s||'<'===s?(this.delegate.reportSyntaxError(s+" is not a valid character within attribute names"),this.consume(),this.delegate.appendToAttributeName(s)):(this.consume(),this.delegate.appendToAttributeName(s))},afterAttributeName:function(){var s=this.peek();(0,t.isSpace)(s)?this.consume():"/"===s?(this.delegate.beginAttributeValue(!1),this.delegate.finishAttributeValue(),this.consume(),this.state='selfClosingStartTag'):"="===s?(this.consume(),this.state='beforeAttributeValue'):">"===s?(this.delegate.beginAttributeValue(!1),this.delegate.finishAttributeValue(),this.consume(),this.delegate.finishTag(),this.state='beforeData'):(this.delegate.beginAttributeValue(!1),this.delegate.finishAttributeValue(),this.consume(),this.state='attributeName',this.delegate.beginAttribute(),this.delegate.appendToAttributeName(s))},beforeAttributeValue:function(){var s=this.peek();(0,t.isSpace)(s)?this.consume():'"'===s?(this.state='attributeValueDoubleQuoted',this.delegate.beginAttributeValue(!0),this.consume()):"'"===s?(this.state='attributeValueSingleQuoted',this.delegate.beginAttributeValue(!0),this.consume()):">"===s?(this.delegate.beginAttributeValue(!1),this.delegate.finishAttributeValue(),this.consume(),this.delegate.finishTag(),this.state='beforeData'):(this.state='attributeValueUnquoted',this.delegate.beginAttributeValue(!1),this.consume(),this.delegate.appendToAttributeValue(s))},attributeValueDoubleQuoted:function(){var t=this.consume();'"'===t?(this.delegate.finishAttributeValue(),this.state='afterAttributeValueQuoted'):"&"===t?this.delegate.appendToAttributeValue(this.consumeCharRef('"')||"&"):this.delegate.appendToAttributeValue(t)},attributeValueSingleQuoted:function(){var t=this.consume();"'"===t?(this.delegate.finishAttributeValue(),this.state='afterAttributeValueQuoted'):"&"===t?this.delegate.appendToAttributeValue(this.consumeCharRef("'")||"&"):this.delegate.appendToAttributeValue(t)},attributeValueUnquoted:function(){var s=this.peek();(0,t.isSpace)(s)?(this.delegate.finishAttributeValue(),this.consume(),this.state='beforeAttributeName'):"&"===s?(this.consume(),this.delegate.appendToAttributeValue(this.consumeCharRef(">")||"&")):">"===s?(this.delegate.finishAttributeValue(),this.consume(),this.delegate.finishTag(),this.state='beforeData'):(this.consume(),this.delegate.appendToAttributeValue(s))},afterAttributeValueQuoted:function(){var s=this.peek();(0,t.isSpace)(s)?(this.consume(),this.state='beforeAttributeName'):"/"===s?(this.consume(),this.state='selfClosingStartTag'):">"===s?(this.consume(),this.delegate.finishTag(),this.state='beforeData'):this.state='beforeAttributeName'},selfClosingStartTag:function(){">"===this.peek()?(this.consume(),this.delegate.markTagAsSelfClosing(),this.delegate.finishTag(),this.state='beforeData'):this.state='beforeAttributeName'},endTagOpen:function(){var s=this.consume();(0,t.isAlpha)(s)&&(this.state='tagName',this.delegate.beginEndTag(),this.delegate.appendToTagName(s.toLowerCase()))}},this.reset()}return s.prototype.reset=function(){this.state='beforeData',this.input='',this.index=0,this.line=1,this.column=0,this.tagLine=-1,this.tagColumn=-1,this.delegate.reset()},s.prototype.tokenize=function(t){this.reset(),this.tokenizePart(t),this.tokenizeEOF()},s.prototype.tokenizePart=function(s){for(this.input+=(0,t.preprocessInput)(s);this.index2&&void 0!==arguments[2]?arguments[2]:[],k=(0,p.normalizeBlockType)(t),b=k.save;if(b.prototype instanceof n.Component){var y=new b({attributes:s});b=y.render.bind(y)}var C=b({attributes:s,innerBlocks:v});if((0,o.isObject)(C)&&(0,c.hasFilter)('blocks.getSaveContent.extraProps')){var B=(0,c.applyFilters)('blocks.getSaveContent.extraProps',(0,l.default)({},C.props),k,s);(0,u.default)(B,C.props)||(C=(0,n.cloneElement)(C,B))}return C=(0,c.applyFilters)('blocks.getSaveElement',C,k,s),(0,n.createElement)(f.default,{innerBlocks:v},C)}function k(t,l,o){var c=(0,p.normalizeBlockType)(t);return(0,n.renderToString)(v(c,l,o))}function b(t,n){return(0,o.reduce)(t.attributes,function(t,l,o){var c=n[o];return void 0===c?t:void 0!==l.source?t:'default'in l&&l.default===c?t:(t[o]=c,t)},{})}function y(t){return JSON.stringify(t).replace(/--/g,"\\u002d\\u002d").replace(//g,"\\u003e").replace(/&/g,"\\u0026").replace(/\\"/g,"\\u0022")}function C(t){var n=t.originalContent;if(t.isValid||t.innerBlocks.length)try{n=k(t.name,t.attributes,t.innerBlocks)}catch(t){}return n}function B(t,n,l){var c=(0,o.isEmpty)(n)?'':y(n)+' ',u=(0,o.startsWith)(t,'core/')?t.slice(5):t;return l?"\x3c!-- wp:"+u+" "+c+"--\x3e\n"+l+"\n\x3c!-- /wp:"+u+" --\x3e":"\x3c!-- wp:"+u+" "+c+"/--\x3e"}function x(t){var n=t.name,l=C(t);switch(n){case(0,s.getFreeformContentHandlerName)():case(0,s.getUnregisteredTypeHandlerName)():return l;default:return B(n,b((0,s.getBlockType)(n),t.attributes),l)}}},918,[1,330,43,332,894,861,905,906,919]); +__d(function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.withBlockContentContext=void 0;var n=r(d[1]),o=t(r(d[2])),l=r(d[3]),u=r(d[4]),c=(0,n.createContext)(function(){}),f=c.Consumer,C=c.Provider,v=(0,l.createHigherOrderComponent)(function(t){return function(l){return(0,n.createElement)(f,null,function(u){return(0,n.createElement)(t,(0,o.default)({},l,{BlockContent:u}))})}},'withBlockContentContext');e.withBlockContentContext=v;var h=function(t){var o=t.children,l=t.innerBlocks;return(0,n.createElement)(C,{value:function(){var t=(0,u.serialize)(l);return(0,n.createElement)(n.RawHTML,null,t)}},o)};e.default=h},919,[1,330,8,864,889]); +__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.html=function(t,n){return function(u){var o=u;if(t&&(o=u.querySelector(t)),!o)return'';if(n){for(var c='',f=o.children.length,l=0;l>16&255,u>>8&255,255&u],this.valpha=1;else{this.valpha=1;var k=Object.keys(u);'alpha'in u&&(k.splice(k.indexOf('alpha'),1),this.valpha='number'==typeof u.alpha?u.alpha:0);var x=k.sort().join('');if(!(x in l))throw new Error('Unable to parse color from object: '+JSON.stringify(u));this.model=l[x];var j=o[this.model].labels,A=[];for(v=0;vn?(o+.05)/(n+.05):(n+.05)/(o+.05)},level:function(t){var o=this.contrast(t);return o>=7.1?'AAA':o>=4.5?'AA':''},dark:function(){var t=this.rgb().color;return(299*t[0]+587*t[1]+114*t[2])/1e3<128},light:function(){return!this.dark()},negate:function(){for(var t=this.rgb(),o=0;o<3;o++)t.color[o]=255-t.color[o];return t},lighten:function(t){var o=this.hsl();return o.color[2]+=o.color[2]*t,o},darken:function(t){var o=this.hsl();return o.color[2]-=o.color[2]*t,o},saturate:function(t){var o=this.hsl();return o.color[1]+=o.color[1]*t,o},desaturate:function(t){var o=this.hsl();return o.color[1]-=o.color[1]*t,o},whiten:function(t){var o=this.hwb();return o.color[1]+=o.color[1]*t,o},blacken:function(t){var o=this.hwb();return o.color[2]+=o.color[2]*t,o},grayscale:function(){var t=this.rgb().color,o=.3*t[0]+.59*t[1]+.11*t[2];return c.rgb(o,o,o)},fade:function(t){return this.alpha(this.valpha-this.valpha*t)},opaquer:function(t){return this.alpha(this.valpha+this.valpha*t)},rotate:function(t){var o=this.hsl(),n=o.color[0];return n=(n=(n+t)%360)<0?360+n:n,o.color[0]=n,o},mix:function(t,o){var n=t.rgb(),h=this.rgb(),l=void 0===o?.5:o,s=2*l-1,u=n.alpha()-h.alpha(),f=((s*u==-1?s:(s+u)/(1+s*u))+1)/2,v=1-f;return c.rgb(f*n.red()+v*h.red(),f*n.green()+v*h.green(),f*n.blue()+v*h.blue(),n.alpha()*l+h.alpha()*(1-l))}},Object.keys(o).forEach(function(t){if(-1===h.indexOf(t)){var l=o[t].channels;c.prototype[t]=function(){if(this.model===t)return new c(this);if(arguments.length)return new c(arguments,t);var n,h='number'==typeof arguments[l]?l:this.valpha;return new c((n=o[this.model][t].raw(this.color),Array.isArray(n)?n:[n]).concat(h),t)},c[t]=function(o){return'number'==typeof o&&(o=b(n.call(arguments),l)),new c(o,t)}}}),m.exports=c},937,[938,942]); +__d(function(g,r,i,a,m,e,d){var t=r(d[0]),n=r(d[1]),s={};for(var o in t)t.hasOwnProperty(o)&&(s[t[o]]=o);var u=m.exports={to:{},get:{}};function l(t,n,s){return Math.min(Math.max(n,t),s)}function h(t){var n=t.toString(16).toUpperCase();return n.length<2?'0'+n:n}u.get=function(t){var n,s;switch(t.substring(0,3).toLowerCase()){case'hsl':n=u.get.hsl(t),s='hsl';break;case'hwb':n=u.get.hwb(t),s='hwb';break;default:n=u.get.rgb(t),s='rgb'}return n?{model:s,value:n}:null},u.get.rgb=function(n){if(!n)return null;var s,o,u,h=[0,0,0,1];if(s=n.match(/^#([a-f0-9]{6})([a-f0-9]{2})?$/i)){for(u=s[2],s=s[1],o=0;o<3;o++){var f=2*o;h[o]=parseInt(s.slice(f,f+2),16)}u&&(h[3]=Math.round(parseInt(u,16)/255*100)/100)}else if(s=n.match(/^#([a-f0-9]{3,4})$/i)){for(u=(s=s[1])[3],o=0;o<3;o++)h[o]=parseInt(s[o]+s[o],16);u&&(h[3]=Math.round(parseInt(u+u,16)/255*100)/100)}else if(s=n.match(/^rgba?\(\s*([+-]?\d+)\s*,\s*([+-]?\d+)\s*,\s*([+-]?\d+)\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)$/)){for(o=0;o<3;o++)h[o]=parseInt(s[o+1],0);s[4]&&(h[3]=parseFloat(s[4]))}else{if(!(s=n.match(/^rgba?\(\s*([+-]?[\d\.]+)\%\s*,\s*([+-]?[\d\.]+)\%\s*,\s*([+-]?[\d\.]+)\%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)$/)))return(s=n.match(/(\D+)/))?'transparent'===s[1]?[0,0,0,0]:(h=t[s[1]])?(h[3]=1,h):null:null;for(o=0;o<3;o++)h[o]=Math.round(2.55*parseFloat(s[o+1]));s[4]&&(h[3]=parseFloat(s[4]))}for(o=0;o<3;o++)h[o]=l(h[o],0,255);return h[3]=l(h[3],0,1),h},u.get.hsl=function(t){if(!t)return null;var n=t.match(/^hsla?\(\s*([+-]?(?:\d*\.)?\d+)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)$/);if(n){var s=parseFloat(n[4]);return[(parseFloat(n[1])+360)%360,l(parseFloat(n[2]),0,100),l(parseFloat(n[3]),0,100),l(isNaN(s)?1:s,0,1)]}return null},u.get.hwb=function(t){if(!t)return null;var n=t.match(/^hwb\(\s*([+-]?\d*[\.]?\d+)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)$/);if(n){var s=parseFloat(n[4]);return[(parseFloat(n[1])%360+360)%360,l(parseFloat(n[2]),0,100),l(parseFloat(n[3]),0,100),l(isNaN(s)?1:s,0,1)]}return null},u.to.hex=function(){var t=n(arguments);return'#'+h(t[0])+h(t[1])+h(t[2])+(t[3]<1?h(Math.round(255*t[3])):'')},u.to.rgb=function(){var t=n(arguments);return t.length<4||1===t[3]?'rgb('+Math.round(t[0])+', '+Math.round(t[1])+', '+Math.round(t[2])+')':'rgba('+Math.round(t[0])+', '+Math.round(t[1])+', '+Math.round(t[2])+', '+t[3]+')'},u.to.rgb.percent=function(){var t=n(arguments),s=Math.round(t[0]/255*100),o=Math.round(t[1]/255*100),u=Math.round(t[2]/255*100);return t.length<4||1===t[3]?'rgb('+s+'%, '+o+'%, '+u+'%)':'rgba('+s+'%, '+o+'%, '+u+'%, '+t[3]+')'},u.to.hsl=function(){var t=n(arguments);return t.length<4||1===t[3]?'hsl('+t[0]+', '+t[1]+'%, '+t[2]+'%)':'hsla('+t[0]+', '+t[1]+'%, '+t[2]+'%, '+t[3]+')'},u.to.hwb=function(){var t=n(arguments),s='';return t.length>=4&&1!==t[3]&&(s=', '+t[3]),'hwb('+t[0]+', '+t[1]+'%, '+t[2]+'%'+s+')'},u.to.keyword=function(t){return s[t.slice(0,3)]}},938,[939,940]); +__d(function(g,r,i,a,m,e,d){'use strict';m.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}},939,[]); +__d(function(g,r,i,a,m,e,d){'use strict';var t=r(d[0]),n=Array.prototype.concat,o=Array.prototype.slice,c=m.exports=function(c){for(var u=[],p=0,l=c.length;p=0&&(n.splice instanceof Function||Object.getOwnPropertyDescriptor(n,n.length-1)&&'String'!==n.constructor.name))}},941,[]); +__d(function(g,r,i,a,m,e,d){var n=r(d[0]),o=r(d[1]),t={};function c(n){var o=function(o){return void 0===o||null===o?o:(arguments.length>1&&(o=Array.prototype.slice.call(arguments)),n(o))};return'conversion'in n&&(o.conversion=n.conversion),o}function l(n){var o=function(o){if(void 0===o||null===o)return o;arguments.length>1&&(o=Array.prototype.slice.call(arguments));var t=n(o);if('object'==typeof t)for(var c=t.length,l=0;l1&&(o-=1)),[360*o,100*s,100*f]},u.rgb.hwb=function(n){var t=n[0],h=n[1],o=n[2];return[u.rgb.hsl(n)[0],100*(.00392156862745098*Math.min(t,Math.min(h,o))),100*(o=1-.00392156862745098*Math.max(t,Math.max(h,o)))]},u.rgb.cmyk=function(n){var t,h=n[0]/255,u=n[1]/255,o=n[2]/255;return[100*((1-h-(t=Math.min(1-h,1-u,1-o)))/(1-t)||0),100*((1-u-t)/(1-t)||0),100*((1-o-t)/(1-t)||0),100*t]},u.rgb.keyword=function(h){var u=t[h];if(u)return u;var o,s,c,l=1/0;for(var b in n)if(n.hasOwnProperty(b)){var f=n[b],M=(s=h,c=f,Math.pow(s[0]-c[0],2)+Math.pow(s[1]-c[1],2)+Math.pow(s[2]-c[2],2));M.04045?Math.pow((t+.055)/1.055,2.4):t/12.92)+.3576*(h=h>.04045?Math.pow((h+.055)/1.055,2.4):h/12.92)+.1805*(u=u>.04045?Math.pow((u+.055)/1.055,2.4):u/12.92)),100*(.2126*t+.7152*h+.0722*u),100*(.0193*t+.1192*h+.9505*u)]},u.rgb.lab=function(n){var t=u.rgb.xyz(n),h=t[0],o=t[1],s=t[2];return o/=100,s/=108.883,h=(h/=95.047)>.008856?Math.pow(h,.3333333333333333):7.787*h+.13793103448275862,[116*(o=o>.008856?Math.pow(o,.3333333333333333):7.787*o+.13793103448275862)-16,500*(h-o),200*(o-(s=s>.008856?Math.pow(s,.3333333333333333):7.787*s+.13793103448275862))]},u.hsl.rgb=function(n){var t,h,u,o,s,c=n[0]/360,l=n[1]/100,b=n[2]/100;if(0===l)return[s=255*b,s,s];t=2*b-(h=b<.5?b*(1+l):b+l-b*l),o=[0,0,0];for(var f=0;f<3;f++)(u=c+.3333333333333333*-(f-1))<0&&u++,u>1&&u--,s=6*u<1?t+6*(h-t)*u:2*u<1?h:3*u<2?t+(h-t)*(.6666666666666666-u)*6:t,o[f]=255*s;return o},u.hsl.hsv=function(n){var t=n[0],h=n[1]/100,u=n[2]/100,o=h,s=Math.max(u,.01);return h*=(u*=2)<=1?u:2-u,o*=s<=1?s:2-s,[t,100*(0===u?2*o/(s+o):2*h/(u+h)),100*((u+h)/2)]},u.hsv.rgb=function(n){var t=n[0]/60,h=n[1]/100,u=n[2]/100,o=Math.floor(t)%6,s=t-Math.floor(t),c=255*u*(1-h),l=255*u*(1-h*s),b=255*u*(1-h*(1-s));switch(u*=255,o){case 0:return[u,b,c];case 1:return[l,u,c];case 2:return[c,u,b];case 3:return[c,l,u];case 4:return[b,c,u];case 5:return[u,c,l]}},u.hsv.hsl=function(n){var t,h,u,o=n[0],s=n[1]/100,c=n[2]/100,l=Math.max(c,.01);return u=(2-s)*c,h=s*l,[o,100*(h=(h/=(t=(2-s)*l)<=1?t:2-t)||0),100*(u/=2)]},u.hwb.rgb=function(n){var t,h,u,o,s,c,l,b=n[0]/360,f=n[1]/100,M=n[2]/100,v=f+M;switch(v>1&&(f/=v,M/=v),h=1-M,u=6*b-(t=Math.floor(6*b)),0!=(1&t)&&(u=1-u),o=f+u*(h-f),t){default:case 6:case 0:s=h,c=o,l=f;break;case 1:s=o,c=h,l=f;break;case 2:s=f,c=h,l=o;break;case 3:s=f,c=o,l=h;break;case 4:s=o,c=f,l=h;break;case 5:s=h,c=f,l=o}return[255*s,255*c,255*l]},u.cmyk.rgb=function(n){var t=n[0]/100,h=n[1]/100,u=n[2]/100,o=n[3]/100;return[255*(1-Math.min(1,t*(1-o)+o)),255*(1-Math.min(1,h*(1-o)+o)),255*(1-Math.min(1,u*(1-o)+o))]},u.xyz.rgb=function(n){var t,h,u,o=n[0]/100,s=n[1]/100,c=n[2]/100;return h=-.9689*o+1.8758*s+.0415*c,u=.0557*o+-.204*s+1.057*c,t=(t=3.2406*o+-1.5372*s+-.4986*c)>.0031308?1.055*Math.pow(t,.4166666666666667)-.055:12.92*t,h=h>.0031308?1.055*Math.pow(h,.4166666666666667)-.055:12.92*h,u=u>.0031308?1.055*Math.pow(u,.4166666666666667)-.055:12.92*u,[255*(t=Math.min(Math.max(0,t),1)),255*(h=Math.min(Math.max(0,h),1)),255*(u=Math.min(Math.max(0,u),1))]},u.xyz.lab=function(n){var t=n[0],h=n[1],u=n[2];return h/=100,u/=108.883,t=(t/=95.047)>.008856?Math.pow(t,.3333333333333333):7.787*t+.13793103448275862,[116*(h=h>.008856?Math.pow(h,.3333333333333333):7.787*h+.13793103448275862)-16,500*(t-h),200*(h-(u=u>.008856?Math.pow(u,.3333333333333333):7.787*u+.13793103448275862))]},u.lab.xyz=function(n){var t,h,u,o=n[0],s=n[1],c=n[2];t=s/500+(h=(o+16)/116),u=h-c/200;var l=Math.pow(h,3),b=Math.pow(t,3),f=Math.pow(u,3);return h=l>.008856?l:(h-.13793103448275862)/7.787,t=b>.008856?b:(t-.13793103448275862)/7.787,u=f>.008856?f:(u-.13793103448275862)/7.787,[t*=95.047,h*=100,u*=108.883]},u.lab.lch=function(n){var t,h=n[0],u=n[1],o=n[2];return(t=360*Math.atan2(o,u)/2/Math.PI)<0&&(t+=360),[h,Math.sqrt(u*u+o*o),t]},u.lch.lab=function(n){var t,h=n[0],u=n[1];return t=n[2]/360*2*Math.PI,[h,u*Math.cos(t),u*Math.sin(t)]},u.rgb.ansi16=function(n){var t=n[0],h=n[1],o=n[2],s=1 in arguments?arguments[1]:u.rgb.hsv(n)[2];if(0===(s=Math.round(s/50)))return 30;var c=30+(Math.round(o/255)<<2|Math.round(h/255)<<1|Math.round(t/255));return 2===s&&(c+=60),c},u.hsv.ansi16=function(n){return u.rgb.ansi16(u.hsv.rgb(n),n[2])},u.rgb.ansi256=function(n){var t=n[0],h=n[1],u=n[2];return t===h&&h===u?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(h/255*5)+Math.round(u/255*5)},u.ansi16.rgb=function(n){var t=n%10;if(0===t||7===t)return n>50&&(t+=3.5),[t=t/10.5*255,t,t];var h=.5*(1+~~(n>50));return[(1&t)*h*255,(t>>1&1)*h*255,(t>>2&1)*h*255]},u.ansi256.rgb=function(n){if(n>=232){var t=10*(n-232)+8;return[t,t,t]}var h;return n-=16,[Math.floor(n/36)/5*255,Math.floor((h=n%36)/6)/5*255,h%6/5*255]},u.rgb.hex=function(n){var t=(((255&Math.round(n[0]))<<16)+((255&Math.round(n[1]))<<8)+(255&Math.round(n[2]))).toString(16).toUpperCase();return'000000'.substring(t.length)+t},u.hex.rgb=function(n){var t=n.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t)return[0,0,0];var h=t[0];3===t[0].length&&(h=h.split('').map(function(n){return n+n}).join(''));var u=parseInt(h,16);return[u>>16&255,u>>8&255,255&u]},u.rgb.hcg=function(n){var t,h,u=n[0]/255,o=n[1]/255,s=n[2]/255,c=Math.max(Math.max(u,o),s),l=Math.min(Math.min(u,o),s),b=c-l;return t=b<1?l/(1-b):0,h=b<=0?0:c===u?(o-s)/b%6:c===o?2+(s-u)/b:4+(u-o)/b+4,h/=6,[360*(h%=1),100*b,100*t]},u.hsl.hcg=function(n){var t=n[1]/100,h=n[2]/100,u=1,o=0;return(u=h<.5?2*t*h:2*t*(1-h))<1&&(o=(h-.5*u)/(1-u)),[n[0],100*u,100*o]},u.hsv.hcg=function(n){var t=n[1]/100,h=n[2]/100,u=t*h,o=0;return u<1&&(o=(h-u)/(1-u)),[n[0],100*u,100*o]},u.hcg.rgb=function(n){var t=n[0]/360,h=n[1]/100,u=n[2]/100;if(0===h)return[255*u,255*u,255*u];var o,s=[0,0,0],c=t%1*6,l=c%1,b=1-l;switch(Math.floor(c)){case 0:s[0]=1,s[1]=l,s[2]=0;break;case 1:s[0]=b,s[1]=1,s[2]=0;break;case 2:s[0]=0,s[1]=1,s[2]=l;break;case 3:s[0]=0,s[1]=b,s[2]=1;break;case 4:s[0]=l,s[1]=0,s[2]=1;break;default:s[0]=1,s[1]=0,s[2]=b}return o=(1-h)*u,[255*(h*s[0]+o),255*(h*s[1]+o),255*(h*s[2]+o)]},u.hcg.hsv=function(n){var t=n[1]/100,h=t+n[2]/100*(1-t),u=0;return h>0&&(u=t/h),[n[0],100*u,100*h]},u.hcg.hsl=function(n){var t=n[1]/100,h=n[2]/100*(1-t)+.5*t,u=0;return h>0&&h<.5?u=t/(2*h):h>=.5&&h<1&&(u=t/(2*(1-h))),[n[0],100*u,100*h]},u.hcg.hwb=function(n){var t=n[1]/100,h=t+n[2]/100*(1-t);return[n[0],100*(h-t),100*(1-h)]},u.hwb.hcg=function(n){var t=n[1]/100,h=1-n[2]/100,u=h-t,o=0;return u<1&&(o=(h-u)/(1-u)),[n[0],100*u,100*o]},u.apple.rgb=function(n){return[n[0]/65535*255,n[1]/65535*255,n[2]/65535*255]},u.rgb.apple=function(n){return[n[0]/255*65535,n[1]/255*65535,n[2]/255*65535]},u.gray.rgb=function(n){return[n[0]/100*255,n[0]/100*255,n[0]/100*255]},u.gray.hsl=u.gray.hsv=function(n){return[0,0,n[0]]},u.gray.hwb=function(n){return[0,100,n[0]]},u.gray.cmyk=function(n){return[0,0,0,n[0]]},u.gray.lab=function(n){return[n[0],0,0]},u.gray.hex=function(n){var t=255&Math.round(n[0]/100*255),h=((t<<16)+(t<<8)+t).toString(16).toUpperCase();return'000000'.substring(h.length)+h},u.rgb.gray=function(n){return[(n[0]+n[1]+n[2])/3/255*100]}},943,[944]); +__d(function(g,r,i,a,m,e,d){'use strict';m.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}},944,[]); +__d(function(g,r,i,a,m,e,d){var n=r(d[0]);function t(){for(var t={},u=Object.keys(n),c=u.length,o=0;o0){for(A=1,t=1;A0?{type:"choice",alternatives:QC(u,A,3),location:Tt()}:u},f=function(u,A){return null!==A?{type:"action",expression:u,code:A[1],location:Tt()}:u},s=function(u,A){return A.length>0?{type:"sequence",elements:QC(u,A,1),location:Tt()}:u},v=":",h=Gt(":",!1),l=function(u,A){return{type:"labeled",label:u,expression:A,location:Tt()}},d=function(u,A){return{type:KC[u],expression:A,location:Tt()}},p="$",b=Gt("$",!1),g="&",x=Gt("&",!1),y="!",m=Gt("!",!1),w=function(u,A){return{type:LC[A],expression:u,location:Tt()}},_="?",S=Gt("?",!1),k="*",z=Gt("*",!1),R="+",j=Gt("+",!1),$="(",q=Gt("(",!1),I=")",M=Gt(")",!1),T=function(u){return'labeled'===u.type||'sequence'===u.type?{type:"group",expression:u}:u},Z=function(u){return{type:"rule_ref",name:u,location:Tt()}},G=function(u,A){return{type:NC[u],code:A,location:Tt()}},U={type:"any"},H=Ht("whitespace"),J="\t",K=Gt("\t",!1),L="\v",N=Gt("\v",!1),O="\f",P=Gt("\f",!1),Q=" ",V=Gt(" ",!1),W="\xa0",X=Gt("\xa0",!1),Y="\ufeff",uu=Gt("\ufeff",!1),Au=/^[\n\r\u2028\u2029]/,ru=Ut(["\n","\r","\u2028","\u2029"],!1,!1),tu=Ht("end of line"),nu="\n",Cu=Gt("\n",!1),Eu="\r\n",eu=Gt("\r\n",!1),Fu="\r",Bu=Gt("\r",!1),ou="\u2028",Du=Gt("\u2028",!1),cu="\u2029",au=Gt("\u2029",!1),iu=Ht("comment"),fu="/*",su=Gt("/*",!1),vu="*/",hu=Gt("*/",!1),lu="//",du=Gt("//",!1),pu=function(u){return u},bu=Ht("identifier"),gu=function(u,A){return u+A.join("")},xu="_",yu=Gt("_",!1),mu="\\",wu=Gt("\\",!1),_u=function(u){return u},Su="\u200c",ku=Gt("\u200c",!1),zu="\u200d",Ru=Gt("\u200d",!1),ju=Ht("literal"),$u="i",qu=Gt("i",!1),Iu=function(u,A){return{type:"literal",value:u,ignoreCase:null!==A,location:Tt()}},Mu=Ht("string"),Tu="\"",Zu=Gt("\"",!1),Gu=function(u){return u.join("")},Uu="'",Hu=Gt("'",!1),Ju=function(){return Mt()},Ku=Ht("character class"),Lu="[",Nu=Gt("[",!1),Ou="^",Pu=Gt("^",!1),Qu="]",Vu=Gt("]",!1),Wu=function(u,A,r){return{type:"class",parts:OC(A),inverted:null!==u,ignoreCase:null!==r,location:Tt()}},Xu="-",Yu=Gt("-",!1),uA=function(u,A){return u.charCodeAt(0)>A.charCodeAt(0)&&Zt("Invalid character range: "+Mt()+"."),[u,A]},AA=function(){return""},rA="0",tA=Gt("0",!1),nA=function(){return"\0"},CA="b",EA=Gt("b",!1),eA=function(){return"\b"},FA="f",BA=Gt("f",!1),oA=function(){return"\f"},DA="n",cA=Gt("n",!1),aA=function(){return"\n"},iA="r",fA=Gt("r",!1),sA=function(){return"\r"},vA="t",hA=Gt("t",!1),lA=function(){return"\t"},dA="v",pA=Gt("v",!1),bA=function(){return"\v"},gA="x",xA=Gt("x",!1),yA="u",mA=Gt("u",!1),wA=function(u){return String.fromCharCode(parseInt(u,16))},_A=/^[0-9]/,SA=Ut([["0","9"]],!1,!1),kA=/^[0-9a-f]/i,zA=Ut([["0","9"],["a","f"]],!1,!0),RA=".",jA=Gt(".",!1),$A=function(){return{type:"any",location:Tt()}},qA=Ht("code block"),IA="{",MA=Gt("{",!1),TA="}",ZA=Gt("}",!1),GA=function(u){return u},UA=/^[{}]/,HA=Ut(["{","}"],!1,!1),JA=/^[a-z\xB5\xDF-\xF6\xF8-\xFF\u0101\u0103\u0105\u0107\u0109\u010B\u010D\u010F\u0111\u0113\u0115\u0117\u0119\u011B\u011D\u011F\u0121\u0123\u0125\u0127\u0129\u012B\u012D\u012F\u0131\u0133\u0135\u0137-\u0138\u013A\u013C\u013E\u0140\u0142\u0144\u0146\u0148-\u0149\u014B\u014D\u014F\u0151\u0153\u0155\u0157\u0159\u015B\u015D\u015F\u0161\u0163\u0165\u0167\u0169\u016B\u016D\u016F\u0171\u0173\u0175\u0177\u017A\u017C\u017E-\u0180\u0183\u0185\u0188\u018C-\u018D\u0192\u0195\u0199-\u019B\u019E\u01A1\u01A3\u01A5\u01A8\u01AA-\u01AB\u01AD\u01B0\u01B4\u01B6\u01B9-\u01BA\u01BD-\u01BF\u01C6\u01C9\u01CC\u01CE\u01D0\u01D2\u01D4\u01D6\u01D8\u01DA\u01DC-\u01DD\u01DF\u01E1\u01E3\u01E5\u01E7\u01E9\u01EB\u01ED\u01EF-\u01F0\u01F3\u01F5\u01F9\u01FB\u01FD\u01FF\u0201\u0203\u0205\u0207\u0209\u020B\u020D\u020F\u0211\u0213\u0215\u0217\u0219\u021B\u021D\u021F\u0221\u0223\u0225\u0227\u0229\u022B\u022D\u022F\u0231\u0233-\u0239\u023C\u023F-\u0240\u0242\u0247\u0249\u024B\u024D\u024F-\u0293\u0295-\u02AF\u0371\u0373\u0377\u037B-\u037D\u0390\u03AC-\u03CE\u03D0-\u03D1\u03D5-\u03D7\u03D9\u03DB\u03DD\u03DF\u03E1\u03E3\u03E5\u03E7\u03E9\u03EB\u03ED\u03EF-\u03F3\u03F5\u03F8\u03FB-\u03FC\u0430-\u045F\u0461\u0463\u0465\u0467\u0469\u046B\u046D\u046F\u0471\u0473\u0475\u0477\u0479\u047B\u047D\u047F\u0481\u048B\u048D\u048F\u0491\u0493\u0495\u0497\u0499\u049B\u049D\u049F\u04A1\u04A3\u04A5\u04A7\u04A9\u04AB\u04AD\u04AF\u04B1\u04B3\u04B5\u04B7\u04B9\u04BB\u04BD\u04BF\u04C2\u04C4\u04C6\u04C8\u04CA\u04CC\u04CE-\u04CF\u04D1\u04D3\u04D5\u04D7\u04D9\u04DB\u04DD\u04DF\u04E1\u04E3\u04E5\u04E7\u04E9\u04EB\u04ED\u04EF\u04F1\u04F3\u04F5\u04F7\u04F9\u04FB\u04FD\u04FF\u0501\u0503\u0505\u0507\u0509\u050B\u050D\u050F\u0511\u0513\u0515\u0517\u0519\u051B\u051D\u051F\u0521\u0523\u0525\u0527\u0529\u052B\u052D\u052F\u0561-\u0587\u13F8-\u13FD\u1D00-\u1D2B\u1D6B-\u1D77\u1D79-\u1D9A\u1E01\u1E03\u1E05\u1E07\u1E09\u1E0B\u1E0D\u1E0F\u1E11\u1E13\u1E15\u1E17\u1E19\u1E1B\u1E1D\u1E1F\u1E21\u1E23\u1E25\u1E27\u1E29\u1E2B\u1E2D\u1E2F\u1E31\u1E33\u1E35\u1E37\u1E39\u1E3B\u1E3D\u1E3F\u1E41\u1E43\u1E45\u1E47\u1E49\u1E4B\u1E4D\u1E4F\u1E51\u1E53\u1E55\u1E57\u1E59\u1E5B\u1E5D\u1E5F\u1E61\u1E63\u1E65\u1E67\u1E69\u1E6B\u1E6D\u1E6F\u1E71\u1E73\u1E75\u1E77\u1E79\u1E7B\u1E7D\u1E7F\u1E81\u1E83\u1E85\u1E87\u1E89\u1E8B\u1E8D\u1E8F\u1E91\u1E93\u1E95-\u1E9D\u1E9F\u1EA1\u1EA3\u1EA5\u1EA7\u1EA9\u1EAB\u1EAD\u1EAF\u1EB1\u1EB3\u1EB5\u1EB7\u1EB9\u1EBB\u1EBD\u1EBF\u1EC1\u1EC3\u1EC5\u1EC7\u1EC9\u1ECB\u1ECD\u1ECF\u1ED1\u1ED3\u1ED5\u1ED7\u1ED9\u1EDB\u1EDD\u1EDF\u1EE1\u1EE3\u1EE5\u1EE7\u1EE9\u1EEB\u1EED\u1EEF\u1EF1\u1EF3\u1EF5\u1EF7\u1EF9\u1EFB\u1EFD\u1EFF-\u1F07\u1F10-\u1F15\u1F20-\u1F27\u1F30-\u1F37\u1F40-\u1F45\u1F50-\u1F57\u1F60-\u1F67\u1F70-\u1F7D\u1F80-\u1F87\u1F90-\u1F97\u1FA0-\u1FA7\u1FB0-\u1FB4\u1FB6-\u1FB7\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FC7\u1FD0-\u1FD3\u1FD6-\u1FD7\u1FE0-\u1FE7\u1FF2-\u1FF4\u1FF6-\u1FF7\u210A\u210E-\u210F\u2113\u212F\u2134\u2139\u213C-\u213D\u2146-\u2149\u214E\u2184\u2C30-\u2C5E\u2C61\u2C65-\u2C66\u2C68\u2C6A\u2C6C\u2C71\u2C73-\u2C74\u2C76-\u2C7B\u2C81\u2C83\u2C85\u2C87\u2C89\u2C8B\u2C8D\u2C8F\u2C91\u2C93\u2C95\u2C97\u2C99\u2C9B\u2C9D\u2C9F\u2CA1\u2CA3\u2CA5\u2CA7\u2CA9\u2CAB\u2CAD\u2CAF\u2CB1\u2CB3\u2CB5\u2CB7\u2CB9\u2CBB\u2CBD\u2CBF\u2CC1\u2CC3\u2CC5\u2CC7\u2CC9\u2CCB\u2CCD\u2CCF\u2CD1\u2CD3\u2CD5\u2CD7\u2CD9\u2CDB\u2CDD\u2CDF\u2CE1\u2CE3-\u2CE4\u2CEC\u2CEE\u2CF3\u2D00-\u2D25\u2D27\u2D2D\uA641\uA643\uA645\uA647\uA649\uA64B\uA64D\uA64F\uA651\uA653\uA655\uA657\uA659\uA65B\uA65D\uA65F\uA661\uA663\uA665\uA667\uA669\uA66B\uA66D\uA681\uA683\uA685\uA687\uA689\uA68B\uA68D\uA68F\uA691\uA693\uA695\uA697\uA699\uA69B\uA723\uA725\uA727\uA729\uA72B\uA72D\uA72F-\uA731\uA733\uA735\uA737\uA739\uA73B\uA73D\uA73F\uA741\uA743\uA745\uA747\uA749\uA74B\uA74D\uA74F\uA751\uA753\uA755\uA757\uA759\uA75B\uA75D\uA75F\uA761\uA763\uA765\uA767\uA769\uA76B\uA76D\uA76F\uA771-\uA778\uA77A\uA77C\uA77F\uA781\uA783\uA785\uA787\uA78C\uA78E\uA791\uA793-\uA795\uA797\uA799\uA79B\uA79D\uA79F\uA7A1\uA7A3\uA7A5\uA7A7\uA7A9\uA7B5\uA7B7\uA7FA\uAB30-\uAB5A\uAB60-\uAB65\uAB70-\uABBF\uFB00-\uFB06\uFB13-\uFB17\uFF41-\uFF5A]/,KA=Ut([["a","z"],"\xb5",["\xdf","\xf6"],["\xf8","\xff"],"\u0101","\u0103","\u0105","\u0107","\u0109","\u010b","\u010d","\u010f","\u0111","\u0113","\u0115","\u0117","\u0119","\u011b","\u011d","\u011f","\u0121","\u0123","\u0125","\u0127","\u0129","\u012b","\u012d","\u012f","\u0131","\u0133","\u0135",["\u0137","\u0138"],"\u013a","\u013c","\u013e","\u0140","\u0142","\u0144","\u0146",["\u0148","\u0149"],"\u014b","\u014d","\u014f","\u0151","\u0153","\u0155","\u0157","\u0159","\u015b","\u015d","\u015f","\u0161","\u0163","\u0165","\u0167","\u0169","\u016b","\u016d","\u016f","\u0171","\u0173","\u0175","\u0177","\u017a","\u017c",["\u017e","\u0180"],"\u0183","\u0185","\u0188",["\u018c","\u018d"],"\u0192","\u0195",["\u0199","\u019b"],"\u019e","\u01a1","\u01a3","\u01a5","\u01a8",["\u01aa","\u01ab"],"\u01ad","\u01b0","\u01b4","\u01b6",["\u01b9","\u01ba"],["\u01bd","\u01bf"],"\u01c6","\u01c9","\u01cc","\u01ce","\u01d0","\u01d2","\u01d4","\u01d6","\u01d8","\u01da",["\u01dc","\u01dd"],"\u01df","\u01e1","\u01e3","\u01e5","\u01e7","\u01e9","\u01eb","\u01ed",["\u01ef","\u01f0"],"\u01f3","\u01f5","\u01f9","\u01fb","\u01fd","\u01ff","\u0201","\u0203","\u0205","\u0207","\u0209","\u020b","\u020d","\u020f","\u0211","\u0213","\u0215","\u0217","\u0219","\u021b","\u021d","\u021f","\u0221","\u0223","\u0225","\u0227","\u0229","\u022b","\u022d","\u022f","\u0231",["\u0233","\u0239"],"\u023c",["\u023f","\u0240"],"\u0242","\u0247","\u0249","\u024b","\u024d",["\u024f","\u0293"],["\u0295","\u02af"],"\u0371","\u0373","\u0377",["\u037b","\u037d"],"\u0390",["\u03ac","\u03ce"],["\u03d0","\u03d1"],["\u03d5","\u03d7"],"\u03d9","\u03db","\u03dd","\u03df","\u03e1","\u03e3","\u03e5","\u03e7","\u03e9","\u03eb","\u03ed",["\u03ef","\u03f3"],"\u03f5","\u03f8",["\u03fb","\u03fc"],["\u0430","\u045f"],"\u0461","\u0463","\u0465","\u0467","\u0469","\u046b","\u046d","\u046f","\u0471","\u0473","\u0475","\u0477","\u0479","\u047b","\u047d","\u047f","\u0481","\u048b","\u048d","\u048f","\u0491","\u0493","\u0495","\u0497","\u0499","\u049b","\u049d","\u049f","\u04a1","\u04a3","\u04a5","\u04a7","\u04a9","\u04ab","\u04ad","\u04af","\u04b1","\u04b3","\u04b5","\u04b7","\u04b9","\u04bb","\u04bd","\u04bf","\u04c2","\u04c4","\u04c6","\u04c8","\u04ca","\u04cc",["\u04ce","\u04cf"],"\u04d1","\u04d3","\u04d5","\u04d7","\u04d9","\u04db","\u04dd","\u04df","\u04e1","\u04e3","\u04e5","\u04e7","\u04e9","\u04eb","\u04ed","\u04ef","\u04f1","\u04f3","\u04f5","\u04f7","\u04f9","\u04fb","\u04fd","\u04ff","\u0501","\u0503","\u0505","\u0507","\u0509","\u050b","\u050d","\u050f","\u0511","\u0513","\u0515","\u0517","\u0519","\u051b","\u051d","\u051f","\u0521","\u0523","\u0525","\u0527","\u0529","\u052b","\u052d","\u052f",["\u0561","\u0587"],["\u13f8","\u13fd"],["\u1d00","\u1d2b"],["\u1d6b","\u1d77"],["\u1d79","\u1d9a"],"\u1e01","\u1e03","\u1e05","\u1e07","\u1e09","\u1e0b","\u1e0d","\u1e0f","\u1e11","\u1e13","\u1e15","\u1e17","\u1e19","\u1e1b","\u1e1d","\u1e1f","\u1e21","\u1e23","\u1e25","\u1e27","\u1e29","\u1e2b","\u1e2d","\u1e2f","\u1e31","\u1e33","\u1e35","\u1e37","\u1e39","\u1e3b","\u1e3d","\u1e3f","\u1e41","\u1e43","\u1e45","\u1e47","\u1e49","\u1e4b","\u1e4d","\u1e4f","\u1e51","\u1e53","\u1e55","\u1e57","\u1e59","\u1e5b","\u1e5d","\u1e5f","\u1e61","\u1e63","\u1e65","\u1e67","\u1e69","\u1e6b","\u1e6d","\u1e6f","\u1e71","\u1e73","\u1e75","\u1e77","\u1e79","\u1e7b","\u1e7d","\u1e7f","\u1e81","\u1e83","\u1e85","\u1e87","\u1e89","\u1e8b","\u1e8d","\u1e8f","\u1e91","\u1e93",["\u1e95","\u1e9d"],"\u1e9f","\u1ea1","\u1ea3","\u1ea5","\u1ea7","\u1ea9","\u1eab","\u1ead","\u1eaf","\u1eb1","\u1eb3","\u1eb5","\u1eb7","\u1eb9","\u1ebb","\u1ebd","\u1ebf","\u1ec1","\u1ec3","\u1ec5","\u1ec7","\u1ec9","\u1ecb","\u1ecd","\u1ecf","\u1ed1","\u1ed3","\u1ed5","\u1ed7","\u1ed9","\u1edb","\u1edd","\u1edf","\u1ee1","\u1ee3","\u1ee5","\u1ee7","\u1ee9","\u1eeb","\u1eed","\u1eef","\u1ef1","\u1ef3","\u1ef5","\u1ef7","\u1ef9","\u1efb","\u1efd",["\u1eff","\u1f07"],["\u1f10","\u1f15"],["\u1f20","\u1f27"],["\u1f30","\u1f37"],["\u1f40","\u1f45"],["\u1f50","\u1f57"],["\u1f60","\u1f67"],["\u1f70","\u1f7d"],["\u1f80","\u1f87"],["\u1f90","\u1f97"],["\u1fa0","\u1fa7"],["\u1fb0","\u1fb4"],["\u1fb6","\u1fb7"],"\u1fbe",["\u1fc2","\u1fc4"],["\u1fc6","\u1fc7"],["\u1fd0","\u1fd3"],["\u1fd6","\u1fd7"],["\u1fe0","\u1fe7"],["\u1ff2","\u1ff4"],["\u1ff6","\u1ff7"],"\u210a",["\u210e","\u210f"],"\u2113","\u212f","\u2134","\u2139",["\u213c","\u213d"],["\u2146","\u2149"],"\u214e","\u2184",["\u2c30","\u2c5e"],"\u2c61",["\u2c65","\u2c66"],"\u2c68","\u2c6a","\u2c6c","\u2c71",["\u2c73","\u2c74"],["\u2c76","\u2c7b"],"\u2c81","\u2c83","\u2c85","\u2c87","\u2c89","\u2c8b","\u2c8d","\u2c8f","\u2c91","\u2c93","\u2c95","\u2c97","\u2c99","\u2c9b","\u2c9d","\u2c9f","\u2ca1","\u2ca3","\u2ca5","\u2ca7","\u2ca9","\u2cab","\u2cad","\u2caf","\u2cb1","\u2cb3","\u2cb5","\u2cb7","\u2cb9","\u2cbb","\u2cbd","\u2cbf","\u2cc1","\u2cc3","\u2cc5","\u2cc7","\u2cc9","\u2ccb","\u2ccd","\u2ccf","\u2cd1","\u2cd3","\u2cd5","\u2cd7","\u2cd9","\u2cdb","\u2cdd","\u2cdf","\u2ce1",["\u2ce3","\u2ce4"],"\u2cec","\u2cee","\u2cf3",["\u2d00","\u2d25"],"\u2d27","\u2d2d","\ua641","\ua643","\ua645","\ua647","\ua649","\ua64b","\ua64d","\ua64f","\ua651","\ua653","\ua655","\ua657","\ua659","\ua65b","\ua65d","\ua65f","\ua661","\ua663","\ua665","\ua667","\ua669","\ua66b","\ua66d","\ua681","\ua683","\ua685","\ua687","\ua689","\ua68b","\ua68d","\ua68f","\ua691","\ua693","\ua695","\ua697","\ua699","\ua69b","\ua723","\ua725","\ua727","\ua729","\ua72b","\ua72d",["\ua72f","\ua731"],"\ua733","\ua735","\ua737","\ua739","\ua73b","\ua73d","\ua73f","\ua741","\ua743","\ua745","\ua747","\ua749","\ua74b","\ua74d","\ua74f","\ua751","\ua753","\ua755","\ua757","\ua759","\ua75b","\ua75d","\ua75f","\ua761","\ua763","\ua765","\ua767","\ua769","\ua76b","\ua76d","\ua76f",["\ua771","\ua778"],"\ua77a","\ua77c","\ua77f","\ua781","\ua783","\ua785","\ua787","\ua78c","\ua78e","\ua791",["\ua793","\ua795"],"\ua797","\ua799","\ua79b","\ua79d","\ua79f","\ua7a1","\ua7a3","\ua7a5","\ua7a7","\ua7a9","\ua7b5","\ua7b7","\ua7fa",["\uab30","\uab5a"],["\uab60","\uab65"],["\uab70","\uabbf"],["\ufb00","\ufb06"],["\ufb13","\ufb17"],["\uff41","\uff5a"]],!1,!1),LA=/^[\u02B0-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0374\u037A\u0559\u0640\u06E5-\u06E6\u07F4-\u07F5\u07FA\u081A\u0824\u0828\u0971\u0E46\u0EC6\u10FC\u17D7\u1843\u1AA7\u1C78-\u1C7D\u1D2C-\u1D6A\u1D78\u1D9B-\u1DBF\u2071\u207F\u2090-\u209C\u2C7C-\u2C7D\u2D6F\u2E2F\u3005\u3031-\u3035\u303B\u309D-\u309E\u30FC-\u30FE\uA015\uA4F8-\uA4FD\uA60C\uA67F\uA69C-\uA69D\uA717-\uA71F\uA770\uA788\uA7F8-\uA7F9\uA9CF\uA9E6\uAA70\uAADD\uAAF3-\uAAF4\uAB5C-\uAB5F\uFF70\uFF9E-\uFF9F]/,NA=Ut([["\u02b0","\u02c1"],["\u02c6","\u02d1"],["\u02e0","\u02e4"],"\u02ec","\u02ee","\u0374","\u037a","\u0559","\u0640",["\u06e5","\u06e6"],["\u07f4","\u07f5"],"\u07fa","\u081a","\u0824","\u0828","\u0971","\u0e46","\u0ec6","\u10fc","\u17d7","\u1843","\u1aa7",["\u1c78","\u1c7d"],["\u1d2c","\u1d6a"],"\u1d78",["\u1d9b","\u1dbf"],"\u2071","\u207f",["\u2090","\u209c"],["\u2c7c","\u2c7d"],"\u2d6f","\u2e2f","\u3005",["\u3031","\u3035"],"\u303b",["\u309d","\u309e"],["\u30fc","\u30fe"],"\ua015",["\ua4f8","\ua4fd"],"\ua60c","\ua67f",["\ua69c","\ua69d"],["\ua717","\ua71f"],"\ua770","\ua788",["\ua7f8","\ua7f9"],"\ua9cf","\ua9e6","\uaa70","\uaadd",["\uaaf3","\uaaf4"],["\uab5c","\uab5f"],"\uff70",["\uff9e","\uff9f"]],!1,!1),OA=/^[\xAA\xBA\u01BB\u01C0-\u01C3\u0294\u05D0-\u05EA\u05F0-\u05F2\u0620-\u063F\u0641-\u064A\u066E-\u066F\u0671-\u06D3\u06D5\u06EE-\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u0800-\u0815\u0840-\u0858\u08A0-\u08B4\u0904-\u0939\u093D\u0950\u0958-\u0961\u0972-\u0980\u0985-\u098C\u098F-\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC-\u09DD\u09DF-\u09E1\u09F0-\u09F1\u0A05-\u0A0A\u0A0F-\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32-\u0A33\u0A35-\u0A36\u0A38-\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2-\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0-\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F-\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32-\u0B33\u0B35-\u0B39\u0B3D\u0B5C-\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99-\u0B9A\u0B9C\u0B9E-\u0B9F\u0BA3-\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60-\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0-\u0CE1\u0CF1-\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32-\u0E33\u0E40-\u0E45\u0E81-\u0E82\u0E84\u0E87-\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA-\u0EAB\u0EAD-\u0EB0\u0EB2-\u0EB3\u0EBD\u0EC0-\u0EC4\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065-\u1066\u106E-\u1070\u1075-\u1081\u108E\u10D0-\u10FA\u10FD-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16F1-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17DC\u1820-\u1842\u1844-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE-\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C77\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5-\u1CF6\u2135-\u2138\u2D30-\u2D67\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3006\u303C\u3041-\u3096\u309F\u30A1-\u30FA\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA014\uA016-\uA48C\uA4D0-\uA4F7\uA500-\uA60B\uA610-\uA61F\uA62A-\uA62B\uA66E\uA6A0-\uA6E5\uA78F\uA7F7\uA7FB-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9E0-\uA9E4\uA9E7-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA6F\uAA71-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5-\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADC\uAAE0-\uAAEA\uAAF2\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uABC0-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40-\uFB41\uFB43-\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF66-\uFF6F\uFF71-\uFF9D\uFFA0-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]/,PA=Ut(["\xaa","\xba","\u01bb",["\u01c0","\u01c3"],"\u0294",["\u05d0","\u05ea"],["\u05f0","\u05f2"],["\u0620","\u063f"],["\u0641","\u064a"],["\u066e","\u066f"],["\u0671","\u06d3"],"\u06d5",["\u06ee","\u06ef"],["\u06fa","\u06fc"],"\u06ff","\u0710",["\u0712","\u072f"],["\u074d","\u07a5"],"\u07b1",["\u07ca","\u07ea"],["\u0800","\u0815"],["\u0840","\u0858"],["\u08a0","\u08b4"],["\u0904","\u0939"],"\u093d","\u0950",["\u0958","\u0961"],["\u0972","\u0980"],["\u0985","\u098c"],["\u098f","\u0990"],["\u0993","\u09a8"],["\u09aa","\u09b0"],"\u09b2",["\u09b6","\u09b9"],"\u09bd","\u09ce",["\u09dc","\u09dd"],["\u09df","\u09e1"],["\u09f0","\u09f1"],["\u0a05","\u0a0a"],["\u0a0f","\u0a10"],["\u0a13","\u0a28"],["\u0a2a","\u0a30"],["\u0a32","\u0a33"],["\u0a35","\u0a36"],["\u0a38","\u0a39"],["\u0a59","\u0a5c"],"\u0a5e",["\u0a72","\u0a74"],["\u0a85","\u0a8d"],["\u0a8f","\u0a91"],["\u0a93","\u0aa8"],["\u0aaa","\u0ab0"],["\u0ab2","\u0ab3"],["\u0ab5","\u0ab9"],"\u0abd","\u0ad0",["\u0ae0","\u0ae1"],"\u0af9",["\u0b05","\u0b0c"],["\u0b0f","\u0b10"],["\u0b13","\u0b28"],["\u0b2a","\u0b30"],["\u0b32","\u0b33"],["\u0b35","\u0b39"],"\u0b3d",["\u0b5c","\u0b5d"],["\u0b5f","\u0b61"],"\u0b71","\u0b83",["\u0b85","\u0b8a"],["\u0b8e","\u0b90"],["\u0b92","\u0b95"],["\u0b99","\u0b9a"],"\u0b9c",["\u0b9e","\u0b9f"],["\u0ba3","\u0ba4"],["\u0ba8","\u0baa"],["\u0bae","\u0bb9"],"\u0bd0",["\u0c05","\u0c0c"],["\u0c0e","\u0c10"],["\u0c12","\u0c28"],["\u0c2a","\u0c39"],"\u0c3d",["\u0c58","\u0c5a"],["\u0c60","\u0c61"],["\u0c85","\u0c8c"],["\u0c8e","\u0c90"],["\u0c92","\u0ca8"],["\u0caa","\u0cb3"],["\u0cb5","\u0cb9"],"\u0cbd","\u0cde",["\u0ce0","\u0ce1"],["\u0cf1","\u0cf2"],["\u0d05","\u0d0c"],["\u0d0e","\u0d10"],["\u0d12","\u0d3a"],"\u0d3d","\u0d4e",["\u0d5f","\u0d61"],["\u0d7a","\u0d7f"],["\u0d85","\u0d96"],["\u0d9a","\u0db1"],["\u0db3","\u0dbb"],"\u0dbd",["\u0dc0","\u0dc6"],["\u0e01","\u0e30"],["\u0e32","\u0e33"],["\u0e40","\u0e45"],["\u0e81","\u0e82"],"\u0e84",["\u0e87","\u0e88"],"\u0e8a","\u0e8d",["\u0e94","\u0e97"],["\u0e99","\u0e9f"],["\u0ea1","\u0ea3"],"\u0ea5","\u0ea7",["\u0eaa","\u0eab"],["\u0ead","\u0eb0"],["\u0eb2","\u0eb3"],"\u0ebd",["\u0ec0","\u0ec4"],["\u0edc","\u0edf"],"\u0f00",["\u0f40","\u0f47"],["\u0f49","\u0f6c"],["\u0f88","\u0f8c"],["\u1000","\u102a"],"\u103f",["\u1050","\u1055"],["\u105a","\u105d"],"\u1061",["\u1065","\u1066"],["\u106e","\u1070"],["\u1075","\u1081"],"\u108e",["\u10d0","\u10fa"],["\u10fd","\u1248"],["\u124a","\u124d"],["\u1250","\u1256"],"\u1258",["\u125a","\u125d"],["\u1260","\u1288"],["\u128a","\u128d"],["\u1290","\u12b0"],["\u12b2","\u12b5"],["\u12b8","\u12be"],"\u12c0",["\u12c2","\u12c5"],["\u12c8","\u12d6"],["\u12d8","\u1310"],["\u1312","\u1315"],["\u1318","\u135a"],["\u1380","\u138f"],["\u1401","\u166c"],["\u166f","\u167f"],["\u1681","\u169a"],["\u16a0","\u16ea"],["\u16f1","\u16f8"],["\u1700","\u170c"],["\u170e","\u1711"],["\u1720","\u1731"],["\u1740","\u1751"],["\u1760","\u176c"],["\u176e","\u1770"],["\u1780","\u17b3"],"\u17dc",["\u1820","\u1842"],["\u1844","\u1877"],["\u1880","\u18a8"],"\u18aa",["\u18b0","\u18f5"],["\u1900","\u191e"],["\u1950","\u196d"],["\u1970","\u1974"],["\u1980","\u19ab"],["\u19b0","\u19c9"],["\u1a00","\u1a16"],["\u1a20","\u1a54"],["\u1b05","\u1b33"],["\u1b45","\u1b4b"],["\u1b83","\u1ba0"],["\u1bae","\u1baf"],["\u1bba","\u1be5"],["\u1c00","\u1c23"],["\u1c4d","\u1c4f"],["\u1c5a","\u1c77"],["\u1ce9","\u1cec"],["\u1cee","\u1cf1"],["\u1cf5","\u1cf6"],["\u2135","\u2138"],["\u2d30","\u2d67"],["\u2d80","\u2d96"],["\u2da0","\u2da6"],["\u2da8","\u2dae"],["\u2db0","\u2db6"],["\u2db8","\u2dbe"],["\u2dc0","\u2dc6"],["\u2dc8","\u2dce"],["\u2dd0","\u2dd6"],["\u2dd8","\u2dde"],"\u3006","\u303c",["\u3041","\u3096"],"\u309f",["\u30a1","\u30fa"],"\u30ff",["\u3105","\u312d"],["\u3131","\u318e"],["\u31a0","\u31ba"],["\u31f0","\u31ff"],["\u3400","\u4db5"],["\u4e00","\u9fd5"],["\ua000","\ua014"],["\ua016","\ua48c"],["\ua4d0","\ua4f7"],["\ua500","\ua60b"],["\ua610","\ua61f"],["\ua62a","\ua62b"],"\ua66e",["\ua6a0","\ua6e5"],"\ua78f","\ua7f7",["\ua7fb","\ua801"],["\ua803","\ua805"],["\ua807","\ua80a"],["\ua80c","\ua822"],["\ua840","\ua873"],["\ua882","\ua8b3"],["\ua8f2","\ua8f7"],"\ua8fb","\ua8fd",["\ua90a","\ua925"],["\ua930","\ua946"],["\ua960","\ua97c"],["\ua984","\ua9b2"],["\ua9e0","\ua9e4"],["\ua9e7","\ua9ef"],["\ua9fa","\ua9fe"],["\uaa00","\uaa28"],["\uaa40","\uaa42"],["\uaa44","\uaa4b"],["\uaa60","\uaa6f"],["\uaa71","\uaa76"],"\uaa7a",["\uaa7e","\uaaaf"],"\uaab1",["\uaab5","\uaab6"],["\uaab9","\uaabd"],"\uaac0","\uaac2",["\uaadb","\uaadc"],["\uaae0","\uaaea"],"\uaaf2",["\uab01","\uab06"],["\uab09","\uab0e"],["\uab11","\uab16"],["\uab20","\uab26"],["\uab28","\uab2e"],["\uabc0","\uabe2"],["\uac00","\ud7a3"],["\ud7b0","\ud7c6"],["\ud7cb","\ud7fb"],["\uf900","\ufa6d"],["\ufa70","\ufad9"],"\ufb1d",["\ufb1f","\ufb28"],["\ufb2a","\ufb36"],["\ufb38","\ufb3c"],"\ufb3e",["\ufb40","\ufb41"],["\ufb43","\ufb44"],["\ufb46","\ufbb1"],["\ufbd3","\ufd3d"],["\ufd50","\ufd8f"],["\ufd92","\ufdc7"],["\ufdf0","\ufdfb"],["\ufe70","\ufe74"],["\ufe76","\ufefc"],["\uff66","\uff6f"],["\uff71","\uff9d"],["\uffa0","\uffbe"],["\uffc2","\uffc7"],["\uffca","\uffcf"],["\uffd2","\uffd7"],["\uffda","\uffdc"]],!1,!1),QA=/^[\u01C5\u01C8\u01CB\u01F2\u1F88-\u1F8F\u1F98-\u1F9F\u1FA8-\u1FAF\u1FBC\u1FCC\u1FFC]/,VA=Ut(["\u01c5","\u01c8","\u01cb","\u01f2",["\u1f88","\u1f8f"],["\u1f98","\u1f9f"],["\u1fa8","\u1faf"],"\u1fbc","\u1fcc","\u1ffc"],!1,!1),WA=/^[A-Z\xC0-\xD6\xD8-\xDE\u0100\u0102\u0104\u0106\u0108\u010A\u010C\u010E\u0110\u0112\u0114\u0116\u0118\u011A\u011C\u011E\u0120\u0122\u0124\u0126\u0128\u012A\u012C\u012E\u0130\u0132\u0134\u0136\u0139\u013B\u013D\u013F\u0141\u0143\u0145\u0147\u014A\u014C\u014E\u0150\u0152\u0154\u0156\u0158\u015A\u015C\u015E\u0160\u0162\u0164\u0166\u0168\u016A\u016C\u016E\u0170\u0172\u0174\u0176\u0178-\u0179\u017B\u017D\u0181-\u0182\u0184\u0186-\u0187\u0189-\u018B\u018E-\u0191\u0193-\u0194\u0196-\u0198\u019C-\u019D\u019F-\u01A0\u01A2\u01A4\u01A6-\u01A7\u01A9\u01AC\u01AE-\u01AF\u01B1-\u01B3\u01B5\u01B7-\u01B8\u01BC\u01C4\u01C7\u01CA\u01CD\u01CF\u01D1\u01D3\u01D5\u01D7\u01D9\u01DB\u01DE\u01E0\u01E2\u01E4\u01E6\u01E8\u01EA\u01EC\u01EE\u01F1\u01F4\u01F6-\u01F8\u01FA\u01FC\u01FE\u0200\u0202\u0204\u0206\u0208\u020A\u020C\u020E\u0210\u0212\u0214\u0216\u0218\u021A\u021C\u021E\u0220\u0222\u0224\u0226\u0228\u022A\u022C\u022E\u0230\u0232\u023A-\u023B\u023D-\u023E\u0241\u0243-\u0246\u0248\u024A\u024C\u024E\u0370\u0372\u0376\u037F\u0386\u0388-\u038A\u038C\u038E-\u038F\u0391-\u03A1\u03A3-\u03AB\u03CF\u03D2-\u03D4\u03D8\u03DA\u03DC\u03DE\u03E0\u03E2\u03E4\u03E6\u03E8\u03EA\u03EC\u03EE\u03F4\u03F7\u03F9-\u03FA\u03FD-\u042F\u0460\u0462\u0464\u0466\u0468\u046A\u046C\u046E\u0470\u0472\u0474\u0476\u0478\u047A\u047C\u047E\u0480\u048A\u048C\u048E\u0490\u0492\u0494\u0496\u0498\u049A\u049C\u049E\u04A0\u04A2\u04A4\u04A6\u04A8\u04AA\u04AC\u04AE\u04B0\u04B2\u04B4\u04B6\u04B8\u04BA\u04BC\u04BE\u04C0-\u04C1\u04C3\u04C5\u04C7\u04C9\u04CB\u04CD\u04D0\u04D2\u04D4\u04D6\u04D8\u04DA\u04DC\u04DE\u04E0\u04E2\u04E4\u04E6\u04E8\u04EA\u04EC\u04EE\u04F0\u04F2\u04F4\u04F6\u04F8\u04FA\u04FC\u04FE\u0500\u0502\u0504\u0506\u0508\u050A\u050C\u050E\u0510\u0512\u0514\u0516\u0518\u051A\u051C\u051E\u0520\u0522\u0524\u0526\u0528\u052A\u052C\u052E\u0531-\u0556\u10A0-\u10C5\u10C7\u10CD\u13A0-\u13F5\u1E00\u1E02\u1E04\u1E06\u1E08\u1E0A\u1E0C\u1E0E\u1E10\u1E12\u1E14\u1E16\u1E18\u1E1A\u1E1C\u1E1E\u1E20\u1E22\u1E24\u1E26\u1E28\u1E2A\u1E2C\u1E2E\u1E30\u1E32\u1E34\u1E36\u1E38\u1E3A\u1E3C\u1E3E\u1E40\u1E42\u1E44\u1E46\u1E48\u1E4A\u1E4C\u1E4E\u1E50\u1E52\u1E54\u1E56\u1E58\u1E5A\u1E5C\u1E5E\u1E60\u1E62\u1E64\u1E66\u1E68\u1E6A\u1E6C\u1E6E\u1E70\u1E72\u1E74\u1E76\u1E78\u1E7A\u1E7C\u1E7E\u1E80\u1E82\u1E84\u1E86\u1E88\u1E8A\u1E8C\u1E8E\u1E90\u1E92\u1E94\u1E9E\u1EA0\u1EA2\u1EA4\u1EA6\u1EA8\u1EAA\u1EAC\u1EAE\u1EB0\u1EB2\u1EB4\u1EB6\u1EB8\u1EBA\u1EBC\u1EBE\u1EC0\u1EC2\u1EC4\u1EC6\u1EC8\u1ECA\u1ECC\u1ECE\u1ED0\u1ED2\u1ED4\u1ED6\u1ED8\u1EDA\u1EDC\u1EDE\u1EE0\u1EE2\u1EE4\u1EE6\u1EE8\u1EEA\u1EEC\u1EEE\u1EF0\u1EF2\u1EF4\u1EF6\u1EF8\u1EFA\u1EFC\u1EFE\u1F08-\u1F0F\u1F18-\u1F1D\u1F28-\u1F2F\u1F38-\u1F3F\u1F48-\u1F4D\u1F59\u1F5B\u1F5D\u1F5F\u1F68-\u1F6F\u1FB8-\u1FBB\u1FC8-\u1FCB\u1FD8-\u1FDB\u1FE8-\u1FEC\u1FF8-\u1FFB\u2102\u2107\u210B-\u210D\u2110-\u2112\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u2130-\u2133\u213E-\u213F\u2145\u2183\u2C00-\u2C2E\u2C60\u2C62-\u2C64\u2C67\u2C69\u2C6B\u2C6D-\u2C70\u2C72\u2C75\u2C7E-\u2C80\u2C82\u2C84\u2C86\u2C88\u2C8A\u2C8C\u2C8E\u2C90\u2C92\u2C94\u2C96\u2C98\u2C9A\u2C9C\u2C9E\u2CA0\u2CA2\u2CA4\u2CA6\u2CA8\u2CAA\u2CAC\u2CAE\u2CB0\u2CB2\u2CB4\u2CB6\u2CB8\u2CBA\u2CBC\u2CBE\u2CC0\u2CC2\u2CC4\u2CC6\u2CC8\u2CCA\u2CCC\u2CCE\u2CD0\u2CD2\u2CD4\u2CD6\u2CD8\u2CDA\u2CDC\u2CDE\u2CE0\u2CE2\u2CEB\u2CED\u2CF2\uA640\uA642\uA644\uA646\uA648\uA64A\uA64C\uA64E\uA650\uA652\uA654\uA656\uA658\uA65A\uA65C\uA65E\uA660\uA662\uA664\uA666\uA668\uA66A\uA66C\uA680\uA682\uA684\uA686\uA688\uA68A\uA68C\uA68E\uA690\uA692\uA694\uA696\uA698\uA69A\uA722\uA724\uA726\uA728\uA72A\uA72C\uA72E\uA732\uA734\uA736\uA738\uA73A\uA73C\uA73E\uA740\uA742\uA744\uA746\uA748\uA74A\uA74C\uA74E\uA750\uA752\uA754\uA756\uA758\uA75A\uA75C\uA75E\uA760\uA762\uA764\uA766\uA768\uA76A\uA76C\uA76E\uA779\uA77B\uA77D-\uA77E\uA780\uA782\uA784\uA786\uA78B\uA78D\uA790\uA792\uA796\uA798\uA79A\uA79C\uA79E\uA7A0\uA7A2\uA7A4\uA7A6\uA7A8\uA7AA-\uA7AD\uA7B0-\uA7B4\uA7B6\uFF21-\uFF3A]/,XA=Ut([["A","Z"],["\xc0","\xd6"],["\xd8","\xde"],"\u0100","\u0102","\u0104","\u0106","\u0108","\u010a","\u010c","\u010e","\u0110","\u0112","\u0114","\u0116","\u0118","\u011a","\u011c","\u011e","\u0120","\u0122","\u0124","\u0126","\u0128","\u012a","\u012c","\u012e","\u0130","\u0132","\u0134","\u0136","\u0139","\u013b","\u013d","\u013f","\u0141","\u0143","\u0145","\u0147","\u014a","\u014c","\u014e","\u0150","\u0152","\u0154","\u0156","\u0158","\u015a","\u015c","\u015e","\u0160","\u0162","\u0164","\u0166","\u0168","\u016a","\u016c","\u016e","\u0170","\u0172","\u0174","\u0176",["\u0178","\u0179"],"\u017b","\u017d",["\u0181","\u0182"],"\u0184",["\u0186","\u0187"],["\u0189","\u018b"],["\u018e","\u0191"],["\u0193","\u0194"],["\u0196","\u0198"],["\u019c","\u019d"],["\u019f","\u01a0"],"\u01a2","\u01a4",["\u01a6","\u01a7"],"\u01a9","\u01ac",["\u01ae","\u01af"],["\u01b1","\u01b3"],"\u01b5",["\u01b7","\u01b8"],"\u01bc","\u01c4","\u01c7","\u01ca","\u01cd","\u01cf","\u01d1","\u01d3","\u01d5","\u01d7","\u01d9","\u01db","\u01de","\u01e0","\u01e2","\u01e4","\u01e6","\u01e8","\u01ea","\u01ec","\u01ee","\u01f1","\u01f4",["\u01f6","\u01f8"],"\u01fa","\u01fc","\u01fe","\u0200","\u0202","\u0204","\u0206","\u0208","\u020a","\u020c","\u020e","\u0210","\u0212","\u0214","\u0216","\u0218","\u021a","\u021c","\u021e","\u0220","\u0222","\u0224","\u0226","\u0228","\u022a","\u022c","\u022e","\u0230","\u0232",["\u023a","\u023b"],["\u023d","\u023e"],"\u0241",["\u0243","\u0246"],"\u0248","\u024a","\u024c","\u024e","\u0370","\u0372","\u0376","\u037f","\u0386",["\u0388","\u038a"],"\u038c",["\u038e","\u038f"],["\u0391","\u03a1"],["\u03a3","\u03ab"],"\u03cf",["\u03d2","\u03d4"],"\u03d8","\u03da","\u03dc","\u03de","\u03e0","\u03e2","\u03e4","\u03e6","\u03e8","\u03ea","\u03ec","\u03ee","\u03f4","\u03f7",["\u03f9","\u03fa"],["\u03fd","\u042f"],"\u0460","\u0462","\u0464","\u0466","\u0468","\u046a","\u046c","\u046e","\u0470","\u0472","\u0474","\u0476","\u0478","\u047a","\u047c","\u047e","\u0480","\u048a","\u048c","\u048e","\u0490","\u0492","\u0494","\u0496","\u0498","\u049a","\u049c","\u049e","\u04a0","\u04a2","\u04a4","\u04a6","\u04a8","\u04aa","\u04ac","\u04ae","\u04b0","\u04b2","\u04b4","\u04b6","\u04b8","\u04ba","\u04bc","\u04be",["\u04c0","\u04c1"],"\u04c3","\u04c5","\u04c7","\u04c9","\u04cb","\u04cd","\u04d0","\u04d2","\u04d4","\u04d6","\u04d8","\u04da","\u04dc","\u04de","\u04e0","\u04e2","\u04e4","\u04e6","\u04e8","\u04ea","\u04ec","\u04ee","\u04f0","\u04f2","\u04f4","\u04f6","\u04f8","\u04fa","\u04fc","\u04fe","\u0500","\u0502","\u0504","\u0506","\u0508","\u050a","\u050c","\u050e","\u0510","\u0512","\u0514","\u0516","\u0518","\u051a","\u051c","\u051e","\u0520","\u0522","\u0524","\u0526","\u0528","\u052a","\u052c","\u052e",["\u0531","\u0556"],["\u10a0","\u10c5"],"\u10c7","\u10cd",["\u13a0","\u13f5"],"\u1e00","\u1e02","\u1e04","\u1e06","\u1e08","\u1e0a","\u1e0c","\u1e0e","\u1e10","\u1e12","\u1e14","\u1e16","\u1e18","\u1e1a","\u1e1c","\u1e1e","\u1e20","\u1e22","\u1e24","\u1e26","\u1e28","\u1e2a","\u1e2c","\u1e2e","\u1e30","\u1e32","\u1e34","\u1e36","\u1e38","\u1e3a","\u1e3c","\u1e3e","\u1e40","\u1e42","\u1e44","\u1e46","\u1e48","\u1e4a","\u1e4c","\u1e4e","\u1e50","\u1e52","\u1e54","\u1e56","\u1e58","\u1e5a","\u1e5c","\u1e5e","\u1e60","\u1e62","\u1e64","\u1e66","\u1e68","\u1e6a","\u1e6c","\u1e6e","\u1e70","\u1e72","\u1e74","\u1e76","\u1e78","\u1e7a","\u1e7c","\u1e7e","\u1e80","\u1e82","\u1e84","\u1e86","\u1e88","\u1e8a","\u1e8c","\u1e8e","\u1e90","\u1e92","\u1e94","\u1e9e","\u1ea0","\u1ea2","\u1ea4","\u1ea6","\u1ea8","\u1eaa","\u1eac","\u1eae","\u1eb0","\u1eb2","\u1eb4","\u1eb6","\u1eb8","\u1eba","\u1ebc","\u1ebe","\u1ec0","\u1ec2","\u1ec4","\u1ec6","\u1ec8","\u1eca","\u1ecc","\u1ece","\u1ed0","\u1ed2","\u1ed4","\u1ed6","\u1ed8","\u1eda","\u1edc","\u1ede","\u1ee0","\u1ee2","\u1ee4","\u1ee6","\u1ee8","\u1eea","\u1eec","\u1eee","\u1ef0","\u1ef2","\u1ef4","\u1ef6","\u1ef8","\u1efa","\u1efc","\u1efe",["\u1f08","\u1f0f"],["\u1f18","\u1f1d"],["\u1f28","\u1f2f"],["\u1f38","\u1f3f"],["\u1f48","\u1f4d"],"\u1f59","\u1f5b","\u1f5d","\u1f5f",["\u1f68","\u1f6f"],["\u1fb8","\u1fbb"],["\u1fc8","\u1fcb"],["\u1fd8","\u1fdb"],["\u1fe8","\u1fec"],["\u1ff8","\u1ffb"],"\u2102","\u2107",["\u210b","\u210d"],["\u2110","\u2112"],"\u2115",["\u2119","\u211d"],"\u2124","\u2126","\u2128",["\u212a","\u212d"],["\u2130","\u2133"],["\u213e","\u213f"],"\u2145","\u2183",["\u2c00","\u2c2e"],"\u2c60",["\u2c62","\u2c64"],"\u2c67","\u2c69","\u2c6b",["\u2c6d","\u2c70"],"\u2c72","\u2c75",["\u2c7e","\u2c80"],"\u2c82","\u2c84","\u2c86","\u2c88","\u2c8a","\u2c8c","\u2c8e","\u2c90","\u2c92","\u2c94","\u2c96","\u2c98","\u2c9a","\u2c9c","\u2c9e","\u2ca0","\u2ca2","\u2ca4","\u2ca6","\u2ca8","\u2caa","\u2cac","\u2cae","\u2cb0","\u2cb2","\u2cb4","\u2cb6","\u2cb8","\u2cba","\u2cbc","\u2cbe","\u2cc0","\u2cc2","\u2cc4","\u2cc6","\u2cc8","\u2cca","\u2ccc","\u2cce","\u2cd0","\u2cd2","\u2cd4","\u2cd6","\u2cd8","\u2cda","\u2cdc","\u2cde","\u2ce0","\u2ce2","\u2ceb","\u2ced","\u2cf2","\ua640","\ua642","\ua644","\ua646","\ua648","\ua64a","\ua64c","\ua64e","\ua650","\ua652","\ua654","\ua656","\ua658","\ua65a","\ua65c","\ua65e","\ua660","\ua662","\ua664","\ua666","\ua668","\ua66a","\ua66c","\ua680","\ua682","\ua684","\ua686","\ua688","\ua68a","\ua68c","\ua68e","\ua690","\ua692","\ua694","\ua696","\ua698","\ua69a","\ua722","\ua724","\ua726","\ua728","\ua72a","\ua72c","\ua72e","\ua732","\ua734","\ua736","\ua738","\ua73a","\ua73c","\ua73e","\ua740","\ua742","\ua744","\ua746","\ua748","\ua74a","\ua74c","\ua74e","\ua750","\ua752","\ua754","\ua756","\ua758","\ua75a","\ua75c","\ua75e","\ua760","\ua762","\ua764","\ua766","\ua768","\ua76a","\ua76c","\ua76e","\ua779","\ua77b",["\ua77d","\ua77e"],"\ua780","\ua782","\ua784","\ua786","\ua78b","\ua78d","\ua790","\ua792","\ua796","\ua798","\ua79a","\ua79c","\ua79e","\ua7a0","\ua7a2","\ua7a4","\ua7a6","\ua7a8",["\ua7aa","\ua7ad"],["\ua7b0","\ua7b4"],"\ua7b6",["\uff21","\uff3a"]],!1,!1),YA=/^[\u0903\u093B\u093E-\u0940\u0949-\u094C\u094E-\u094F\u0982-\u0983\u09BE-\u09C0\u09C7-\u09C8\u09CB-\u09CC\u09D7\u0A03\u0A3E-\u0A40\u0A83\u0ABE-\u0AC0\u0AC9\u0ACB-\u0ACC\u0B02-\u0B03\u0B3E\u0B40\u0B47-\u0B48\u0B4B-\u0B4C\u0B57\u0BBE-\u0BBF\u0BC1-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCC\u0BD7\u0C01-\u0C03\u0C41-\u0C44\u0C82-\u0C83\u0CBE\u0CC0-\u0CC4\u0CC7-\u0CC8\u0CCA-\u0CCB\u0CD5-\u0CD6\u0D02-\u0D03\u0D3E-\u0D40\u0D46-\u0D48\u0D4A-\u0D4C\u0D57\u0D82-\u0D83\u0DCF-\u0DD1\u0DD8-\u0DDF\u0DF2-\u0DF3\u0F3E-\u0F3F\u0F7F\u102B-\u102C\u1031\u1038\u103B-\u103C\u1056-\u1057\u1062-\u1064\u1067-\u106D\u1083-\u1084\u1087-\u108C\u108F\u109A-\u109C\u17B6\u17BE-\u17C5\u17C7-\u17C8\u1923-\u1926\u1929-\u192B\u1930-\u1931\u1933-\u1938\u1A19-\u1A1A\u1A55\u1A57\u1A61\u1A63-\u1A64\u1A6D-\u1A72\u1B04\u1B35\u1B3B\u1B3D-\u1B41\u1B43-\u1B44\u1B82\u1BA1\u1BA6-\u1BA7\u1BAA\u1BE7\u1BEA-\u1BEC\u1BEE\u1BF2-\u1BF3\u1C24-\u1C2B\u1C34-\u1C35\u1CE1\u1CF2-\u1CF3\u302E-\u302F\uA823-\uA824\uA827\uA880-\uA881\uA8B4-\uA8C3\uA952-\uA953\uA983\uA9B4-\uA9B5\uA9BA-\uA9BB\uA9BD-\uA9C0\uAA2F-\uAA30\uAA33-\uAA34\uAA4D\uAA7B\uAA7D\uAAEB\uAAEE-\uAAEF\uAAF5\uABE3-\uABE4\uABE6-\uABE7\uABE9-\uABEA\uABEC]/,ur=Ut(["\u0903","\u093b",["\u093e","\u0940"],["\u0949","\u094c"],["\u094e","\u094f"],["\u0982","\u0983"],["\u09be","\u09c0"],["\u09c7","\u09c8"],["\u09cb","\u09cc"],"\u09d7","\u0a03",["\u0a3e","\u0a40"],"\u0a83",["\u0abe","\u0ac0"],"\u0ac9",["\u0acb","\u0acc"],["\u0b02","\u0b03"],"\u0b3e","\u0b40",["\u0b47","\u0b48"],["\u0b4b","\u0b4c"],"\u0b57",["\u0bbe","\u0bbf"],["\u0bc1","\u0bc2"],["\u0bc6","\u0bc8"],["\u0bca","\u0bcc"],"\u0bd7",["\u0c01","\u0c03"],["\u0c41","\u0c44"],["\u0c82","\u0c83"],"\u0cbe",["\u0cc0","\u0cc4"],["\u0cc7","\u0cc8"],["\u0cca","\u0ccb"],["\u0cd5","\u0cd6"],["\u0d02","\u0d03"],["\u0d3e","\u0d40"],["\u0d46","\u0d48"],["\u0d4a","\u0d4c"],"\u0d57",["\u0d82","\u0d83"],["\u0dcf","\u0dd1"],["\u0dd8","\u0ddf"],["\u0df2","\u0df3"],["\u0f3e","\u0f3f"],"\u0f7f",["\u102b","\u102c"],"\u1031","\u1038",["\u103b","\u103c"],["\u1056","\u1057"],["\u1062","\u1064"],["\u1067","\u106d"],["\u1083","\u1084"],["\u1087","\u108c"],"\u108f",["\u109a","\u109c"],"\u17b6",["\u17be","\u17c5"],["\u17c7","\u17c8"],["\u1923","\u1926"],["\u1929","\u192b"],["\u1930","\u1931"],["\u1933","\u1938"],["\u1a19","\u1a1a"],"\u1a55","\u1a57","\u1a61",["\u1a63","\u1a64"],["\u1a6d","\u1a72"],"\u1b04","\u1b35","\u1b3b",["\u1b3d","\u1b41"],["\u1b43","\u1b44"],"\u1b82","\u1ba1",["\u1ba6","\u1ba7"],"\u1baa","\u1be7",["\u1bea","\u1bec"],"\u1bee",["\u1bf2","\u1bf3"],["\u1c24","\u1c2b"],["\u1c34","\u1c35"],"\u1ce1",["\u1cf2","\u1cf3"],["\u302e","\u302f"],["\ua823","\ua824"],"\ua827",["\ua880","\ua881"],["\ua8b4","\ua8c3"],["\ua952","\ua953"],"\ua983",["\ua9b4","\ua9b5"],["\ua9ba","\ua9bb"],["\ua9bd","\ua9c0"],["\uaa2f","\uaa30"],["\uaa33","\uaa34"],"\uaa4d","\uaa7b","\uaa7d","\uaaeb",["\uaaee","\uaaef"],"\uaaf5",["\uabe3","\uabe4"],["\uabe6","\uabe7"],["\uabe9","\uabea"],"\uabec"],!1,!1),Ar=/^[\u0300-\u036F\u0483-\u0487\u0591-\u05BD\u05BF\u05C1-\u05C2\u05C4-\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7-\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u08E3-\u0902\u093A\u093C\u0941-\u0948\u094D\u0951-\u0957\u0962-\u0963\u0981\u09BC\u09C1-\u09C4\u09CD\u09E2-\u09E3\u0A01-\u0A02\u0A3C\u0A41-\u0A42\u0A47-\u0A48\u0A4B-\u0A4D\u0A51\u0A70-\u0A71\u0A75\u0A81-\u0A82\u0ABC\u0AC1-\u0AC5\u0AC7-\u0AC8\u0ACD\u0AE2-\u0AE3\u0B01\u0B3C\u0B3F\u0B41-\u0B44\u0B4D\u0B56\u0B62-\u0B63\u0B82\u0BC0\u0BCD\u0C00\u0C3E-\u0C40\u0C46-\u0C48\u0C4A-\u0C4D\u0C55-\u0C56\u0C62-\u0C63\u0C81\u0CBC\u0CBF\u0CC6\u0CCC-\u0CCD\u0CE2-\u0CE3\u0D01\u0D41-\u0D44\u0D4D\u0D62-\u0D63\u0DCA\u0DD2-\u0DD4\u0DD6\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EB9\u0EBB-\u0EBC\u0EC8-\u0ECD\u0F18-\u0F19\u0F35\u0F37\u0F39\u0F71-\u0F7E\u0F80-\u0F84\u0F86-\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102D-\u1030\u1032-\u1037\u1039-\u103A\u103D-\u103E\u1058-\u1059\u105E-\u1060\u1071-\u1074\u1082\u1085-\u1086\u108D\u109D\u135D-\u135F\u1712-\u1714\u1732-\u1734\u1752-\u1753\u1772-\u1773\u17B4-\u17B5\u17B7-\u17BD\u17C6\u17C9-\u17D3\u17DD\u180B-\u180D\u18A9\u1920-\u1922\u1927-\u1928\u1932\u1939-\u193B\u1A17-\u1A18\u1A1B\u1A56\u1A58-\u1A5E\u1A60\u1A62\u1A65-\u1A6C\u1A73-\u1A7C\u1A7F\u1AB0-\u1ABD\u1B00-\u1B03\u1B34\u1B36-\u1B3A\u1B3C\u1B42\u1B6B-\u1B73\u1B80-\u1B81\u1BA2-\u1BA5\u1BA8-\u1BA9\u1BAB-\u1BAD\u1BE6\u1BE8-\u1BE9\u1BED\u1BEF-\u1BF1\u1C2C-\u1C33\u1C36-\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE0\u1CE2-\u1CE8\u1CED\u1CF4\u1CF8-\u1CF9\u1DC0-\u1DF5\u1DFC-\u1DFF\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302D\u3099-\u309A\uA66F\uA674-\uA67D\uA69E-\uA69F\uA6F0-\uA6F1\uA802\uA806\uA80B\uA825-\uA826\uA8C4\uA8E0-\uA8F1\uA926-\uA92D\uA947-\uA951\uA980-\uA982\uA9B3\uA9B6-\uA9B9\uA9BC\uA9E5\uAA29-\uAA2E\uAA31-\uAA32\uAA35-\uAA36\uAA43\uAA4C\uAA7C\uAAB0\uAAB2-\uAAB4\uAAB7-\uAAB8\uAABE-\uAABF\uAAC1\uAAEC-\uAAED\uAAF6\uABE5\uABE8\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F]/,rr=Ut([["\u0300","\u036f"],["\u0483","\u0487"],["\u0591","\u05bd"],"\u05bf",["\u05c1","\u05c2"],["\u05c4","\u05c5"],"\u05c7",["\u0610","\u061a"],["\u064b","\u065f"],"\u0670",["\u06d6","\u06dc"],["\u06df","\u06e4"],["\u06e7","\u06e8"],["\u06ea","\u06ed"],"\u0711",["\u0730","\u074a"],["\u07a6","\u07b0"],["\u07eb","\u07f3"],["\u0816","\u0819"],["\u081b","\u0823"],["\u0825","\u0827"],["\u0829","\u082d"],["\u0859","\u085b"],["\u08e3","\u0902"],"\u093a","\u093c",["\u0941","\u0948"],"\u094d",["\u0951","\u0957"],["\u0962","\u0963"],"\u0981","\u09bc",["\u09c1","\u09c4"],"\u09cd",["\u09e2","\u09e3"],["\u0a01","\u0a02"],"\u0a3c",["\u0a41","\u0a42"],["\u0a47","\u0a48"],["\u0a4b","\u0a4d"],"\u0a51",["\u0a70","\u0a71"],"\u0a75",["\u0a81","\u0a82"],"\u0abc",["\u0ac1","\u0ac5"],["\u0ac7","\u0ac8"],"\u0acd",["\u0ae2","\u0ae3"],"\u0b01","\u0b3c","\u0b3f",["\u0b41","\u0b44"],"\u0b4d","\u0b56",["\u0b62","\u0b63"],"\u0b82","\u0bc0","\u0bcd","\u0c00",["\u0c3e","\u0c40"],["\u0c46","\u0c48"],["\u0c4a","\u0c4d"],["\u0c55","\u0c56"],["\u0c62","\u0c63"],"\u0c81","\u0cbc","\u0cbf","\u0cc6",["\u0ccc","\u0ccd"],["\u0ce2","\u0ce3"],"\u0d01",["\u0d41","\u0d44"],"\u0d4d",["\u0d62","\u0d63"],"\u0dca",["\u0dd2","\u0dd4"],"\u0dd6","\u0e31",["\u0e34","\u0e3a"],["\u0e47","\u0e4e"],"\u0eb1",["\u0eb4","\u0eb9"],["\u0ebb","\u0ebc"],["\u0ec8","\u0ecd"],["\u0f18","\u0f19"],"\u0f35","\u0f37","\u0f39",["\u0f71","\u0f7e"],["\u0f80","\u0f84"],["\u0f86","\u0f87"],["\u0f8d","\u0f97"],["\u0f99","\u0fbc"],"\u0fc6",["\u102d","\u1030"],["\u1032","\u1037"],["\u1039","\u103a"],["\u103d","\u103e"],["\u1058","\u1059"],["\u105e","\u1060"],["\u1071","\u1074"],"\u1082",["\u1085","\u1086"],"\u108d","\u109d",["\u135d","\u135f"],["\u1712","\u1714"],["\u1732","\u1734"],["\u1752","\u1753"],["\u1772","\u1773"],["\u17b4","\u17b5"],["\u17b7","\u17bd"],"\u17c6",["\u17c9","\u17d3"],"\u17dd",["\u180b","\u180d"],"\u18a9",["\u1920","\u1922"],["\u1927","\u1928"],"\u1932",["\u1939","\u193b"],["\u1a17","\u1a18"],"\u1a1b","\u1a56",["\u1a58","\u1a5e"],"\u1a60","\u1a62",["\u1a65","\u1a6c"],["\u1a73","\u1a7c"],"\u1a7f",["\u1ab0","\u1abd"],["\u1b00","\u1b03"],"\u1b34",["\u1b36","\u1b3a"],"\u1b3c","\u1b42",["\u1b6b","\u1b73"],["\u1b80","\u1b81"],["\u1ba2","\u1ba5"],["\u1ba8","\u1ba9"],["\u1bab","\u1bad"],"\u1be6",["\u1be8","\u1be9"],"\u1bed",["\u1bef","\u1bf1"],["\u1c2c","\u1c33"],["\u1c36","\u1c37"],["\u1cd0","\u1cd2"],["\u1cd4","\u1ce0"],["\u1ce2","\u1ce8"],"\u1ced","\u1cf4",["\u1cf8","\u1cf9"],["\u1dc0","\u1df5"],["\u1dfc","\u1dff"],["\u20d0","\u20dc"],"\u20e1",["\u20e5","\u20f0"],["\u2cef","\u2cf1"],"\u2d7f",["\u2de0","\u2dff"],["\u302a","\u302d"],["\u3099","\u309a"],"\ua66f",["\ua674","\ua67d"],["\ua69e","\ua69f"],["\ua6f0","\ua6f1"],"\ua802","\ua806","\ua80b",["\ua825","\ua826"],"\ua8c4",["\ua8e0","\ua8f1"],["\ua926","\ua92d"],["\ua947","\ua951"],["\ua980","\ua982"],"\ua9b3",["\ua9b6","\ua9b9"],"\ua9bc","\ua9e5",["\uaa29","\uaa2e"],["\uaa31","\uaa32"],["\uaa35","\uaa36"],"\uaa43","\uaa4c","\uaa7c","\uaab0",["\uaab2","\uaab4"],["\uaab7","\uaab8"],["\uaabe","\uaabf"],"\uaac1",["\uaaec","\uaaed"],"\uaaf6","\uabe5","\uabe8","\uabed","\ufb1e",["\ufe00","\ufe0f"],["\ufe20","\ufe2f"]],!1,!1),tr=/^[0-9\u0660-\u0669\u06F0-\u06F9\u07C0-\u07C9\u0966-\u096F\u09E6-\u09EF\u0A66-\u0A6F\u0AE6-\u0AEF\u0B66-\u0B6F\u0BE6-\u0BEF\u0C66-\u0C6F\u0CE6-\u0CEF\u0D66-\u0D6F\u0DE6-\u0DEF\u0E50-\u0E59\u0ED0-\u0ED9\u0F20-\u0F29\u1040-\u1049\u1090-\u1099\u17E0-\u17E9\u1810-\u1819\u1946-\u194F\u19D0-\u19D9\u1A80-\u1A89\u1A90-\u1A99\u1B50-\u1B59\u1BB0-\u1BB9\u1C40-\u1C49\u1C50-\u1C59\uA620-\uA629\uA8D0-\uA8D9\uA900-\uA909\uA9D0-\uA9D9\uA9F0-\uA9F9\uAA50-\uAA59\uABF0-\uABF9\uFF10-\uFF19]/,nr=Ut([["0","9"],["\u0660","\u0669"],["\u06f0","\u06f9"],["\u07c0","\u07c9"],["\u0966","\u096f"],["\u09e6","\u09ef"],["\u0a66","\u0a6f"],["\u0ae6","\u0aef"],["\u0b66","\u0b6f"],["\u0be6","\u0bef"],["\u0c66","\u0c6f"],["\u0ce6","\u0cef"],["\u0d66","\u0d6f"],["\u0de6","\u0def"],["\u0e50","\u0e59"],["\u0ed0","\u0ed9"],["\u0f20","\u0f29"],["\u1040","\u1049"],["\u1090","\u1099"],["\u17e0","\u17e9"],["\u1810","\u1819"],["\u1946","\u194f"],["\u19d0","\u19d9"],["\u1a80","\u1a89"],["\u1a90","\u1a99"],["\u1b50","\u1b59"],["\u1bb0","\u1bb9"],["\u1c40","\u1c49"],["\u1c50","\u1c59"],["\ua620","\ua629"],["\ua8d0","\ua8d9"],["\ua900","\ua909"],["\ua9d0","\ua9d9"],["\ua9f0","\ua9f9"],["\uaa50","\uaa59"],["\uabf0","\uabf9"],["\uff10","\uff19"]],!1,!1),Cr=/^[\u16EE-\u16F0\u2160-\u2182\u2185-\u2188\u3007\u3021-\u3029\u3038-\u303A\uA6E6-\uA6EF]/,Er=Ut([["\u16ee","\u16f0"],["\u2160","\u2182"],["\u2185","\u2188"],"\u3007",["\u3021","\u3029"],["\u3038","\u303a"],["\ua6e6","\ua6ef"]],!1,!1),er=/^[_\u203F-\u2040\u2054\uFE33-\uFE34\uFE4D-\uFE4F\uFF3F]/,Fr=Ut(["_",["\u203f","\u2040"],"\u2054",["\ufe33","\ufe34"],["\ufe4d","\ufe4f"],"\uff3f"],!1,!1),Br=/^[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,or=Ut([" ","\xa0","\u1680",["\u2000","\u200a"],"\u202f","\u205f","\u3000"],!1,!1),Dr="break",cr=Gt("break",!1),ar="case",ir=Gt("case",!1),fr="catch",sr=Gt("catch",!1),vr="class",hr=Gt("class",!1),lr="const",dr=Gt("const",!1),pr="continue",br=Gt("continue",!1),gr="debugger",xr=Gt("debugger",!1),yr="default",mr=Gt("default",!1),wr="delete",_r=Gt("delete",!1),Sr="do",kr=Gt("do",!1),zr="else",Rr=Gt("else",!1),jr="enum",$r=Gt("enum",!1),qr="export",Ir=Gt("export",!1),Mr="extends",Tr=Gt("extends",!1),Zr="false",Gr=Gt("false",!1),Ur="finally",Hr=Gt("finally",!1),Jr="for",Kr=Gt("for",!1),Lr="function",Nr=Gt("function",!1),Or="if",Pr=Gt("if",!1),Qr="import",Vr=Gt("import",!1),Wr="instanceof",Xr=Gt("instanceof",!1),Yr="in",ut=Gt("in",!1),At="new",rt=Gt("new",!1),tt="null",nt=Gt("null",!1),Ct="return",Et=Gt("return",!1),et="super",Ft=Gt("super",!1),Bt="switch",ot=Gt("switch",!1),Dt="this",ct=Gt("this",!1),at="throw",it=Gt("throw",!1),ft="true",st=Gt("true",!1),vt="try",ht=Gt("try",!1),lt="typeof",dt=Gt("typeof",!1),pt="var",bt=Gt("var",!1),gt="void",xt=Gt("void",!1),yt="while",mt=Gt("while",!1),wt="with",_t=Gt("with",!1),St=";",kt=Gt(";",!1),zt=0,Rt=0,jt=[{line:1,column:1}],$t=0,qt=[],It=0;if("startRule"in A){if(!(A.startRule in n))throw new Error("Can't start parsing from rule \""+A.startRule+"\".");C=n[A.startRule]}function Mt(){return u.substring(Rt,zt)}function Tt(){return Kt(Rt,zt)}function Zt(u,A){throw Nt(u,A=void 0!==A?A:Kt(Rt,zt))}function Gt(u,A){return{type:"literal",text:u,ignoreCase:A}}function Ut(u,A,r){return{type:"class",parts:u,inverted:A,ignoreCase:r}}function Ht(u){return{type:"other",description:u}}function Jt(A){var r,t=jt[A];if(t)return t;for(r=A-1;!jt[r];)r--;for(t={line:(t=jt[r]).line,column:t.column};r$t&&($t=zt,qt=[]),qt.push(u))}function Nt(u,A){return new e(u,null,null,A)}function Ot(){var u,A,r,n,C,e;if(u=zt,GC()!==t)if(A=zt,(r=Pt())!==t&&(n=GC())!==t?A=r=[r,n]:(zt=A,A=t),A===t&&(A=null),A!==t){if(r=[],n=zt,(C=Qt())!==t&&(e=GC())!==t?n=C=[C,e]:(zt=n,n=t),n!==t)for(;n!==t;)r.push(n),n=zt,(C=Qt())!==t&&(e=GC())!==t?n=C=[C,e]:(zt=n,n=t);else r=t;r!==t?(Rt=u,u=E(A,r)):(zt=u,u=t)}else zt=u,u=t;else zt=u,u=t;return u}function Pt(){var u,A;return u=zt,(A=Ln())!==t&&HC()!==t?(Rt=u,u=A=F(A)):(zt=u,u=t),u}function Qt(){var A,r,n,C,E,e;return A=zt,(r=hn())!==t&&GC()!==t?(n=zt,(C=_n())!==t&&(E=GC())!==t?n=C=[C,E]:(zt=n,n=t),n===t&&(n=null),n!==t?(61===u.charCodeAt(zt)?(C=B,zt++):(C=t,0===It&&Lt(o)),C!==t&&(E=GC())!==t&&(e=Vt())!==t&&HC()!==t?(Rt=A,A=r=D(r,n,e)):(zt=A,A=t)):(zt=A,A=t)):(zt=A,A=t),A}function Vt(){var A,r,n,C,E,e,F,B;if(A=zt,(r=Wt())!==t){for(n=[],C=zt,(E=GC())!==t?(47===u.charCodeAt(zt)?(e=c,zt++):(e=t,0===It&&Lt(a)),e!==t&&(F=GC())!==t&&(B=Wt())!==t?C=E=[E,e,F,B]:(zt=C,C=t)):(zt=C,C=t);C!==t;)n.push(C),C=zt,(E=GC())!==t?(47===u.charCodeAt(zt)?(e=c,zt++):(e=t,0===It&&Lt(a)),e!==t&&(F=GC())!==t&&(B=Wt())!==t?C=E=[E,e,F,B]:(zt=C,C=t)):(zt=C,C=t);n!==t?(Rt=A,A=r=i(r,n)):(zt=A,A=t)}else zt=A,A=t;return A}function Wt(){var u,A,r,n,C;return u=zt,(A=Xt())!==t?(r=zt,(n=GC())!==t&&(C=Ln())!==t?r=n=[n,C]:(zt=r,r=t),r===t&&(r=null),r!==t?(Rt=u,u=A=f(A,r)):(zt=u,u=t)):(zt=u,u=t),u}function Xt(){var u,A,r,n,C,E;if(u=zt,(A=Yt())!==t){for(r=[],n=zt,(C=GC())!==t&&(E=Yt())!==t?n=C=[C,E]:(zt=n,n=t);n!==t;)r.push(n),n=zt,(C=GC())!==t&&(E=Yt())!==t?n=C=[C,E]:(zt=n,n=t);r!==t?(Rt=u,u=A=s(A,r)):(zt=u,u=t)}else zt=u,u=t;return u}function Yt(){var A,r,n,C;return A=zt,(r=vn())!==t&&GC()!==t?(58===u.charCodeAt(zt)?(n=v,zt++):(n=t,0===It&&Lt(h)),n!==t&&GC()!==t&&(C=un())!==t?(Rt=A,A=r=l(r,C)):(zt=A,A=t)):(zt=A,A=t),A===t&&(A=un()),A}function un(){var u,A,r;return u=zt,(A=An())!==t&&GC()!==t&&(r=rn())!==t?(Rt=u,u=A=d(A,r)):(zt=u,u=t),u===t&&(u=rn()),u}function An(){var A;return 36===u.charCodeAt(zt)?(A=p,zt++):(A=t,0===It&&Lt(b)),A===t&&(38===u.charCodeAt(zt)?(A=g,zt++):(A=t,0===It&&Lt(x)),A===t&&(33===u.charCodeAt(zt)?(A=y,zt++):(A=t,0===It&&Lt(m)))),A}function rn(){var u,A,r;return u=zt,(A=nn())!==t&&GC()!==t&&(r=tn())!==t?(Rt=u,u=A=w(A,r)):(zt=u,u=t),u===t&&(u=nn()),u}function tn(){var A;return 63===u.charCodeAt(zt)?(A=_,zt++):(A=t,0===It&&Lt(S)),A===t&&(42===u.charCodeAt(zt)?(A=k,zt++):(A=t,0===It&&Lt(z)),A===t&&(43===u.charCodeAt(zt)?(A=R,zt++):(A=t,0===It&&Lt(j)))),A}function nn(){var A,r,n,C;return(A=wn())===t&&(A=zn())===t&&(A=Kn())===t&&(A=Cn())===t&&(A=En())===t&&(A=zt,40===u.charCodeAt(zt)?(r=$,zt++):(r=t,0===It&&Lt(q)),r!==t&&GC()!==t&&(n=Vt())!==t&&GC()!==t?(41===u.charCodeAt(zt)?(C=I,zt++):(C=t,0===It&&Lt(M)),C!==t?(Rt=A,A=r=T(n)):(zt=A,A=t)):(zt=A,A=t)),A}function Cn(){var A,r,n,C,E,e,F,D;return A=zt,(r=hn())!==t?(n=zt,It++,C=zt,(E=GC())!==t?(e=zt,(F=_n())!==t&&(D=GC())!==t?e=F=[F,D]:(zt=e,e=t),e===t&&(e=null),e!==t?(61===u.charCodeAt(zt)?(F=B,zt++):(F=t,0===It&&Lt(o)),F!==t?C=E=[E,e,F]:(zt=C,C=t)):(zt=C,C=t)):(zt=C,C=t),It--,C===t?n=void 0:(zt=n,n=t),n!==t?(Rt=A,A=r=Z(r)):(zt=A,A=t)):(zt=A,A=t),A}function En(){var u,A,r;return u=zt,(A=en())!==t&&GC()!==t&&(r=Ln())!==t?(Rt=u,u=A=G(A,r)):(zt=u,u=t),u}function en(){var A;return 38===u.charCodeAt(zt)?(A=g,zt++):(A=t,0===It&&Lt(x)),A===t&&(33===u.charCodeAt(zt)?(A=y,zt++):(A=t,0===It&&Lt(m))),A}function Fn(){var A;return u.length>zt?(A=u.charAt(zt),zt++):(A=t,0===It&&Lt(U)),A}function Bn(){var A;return It++,9===u.charCodeAt(zt)?(A=J,zt++):(A=t,0===It&&Lt(K)),A===t&&(11===u.charCodeAt(zt)?(A=L,zt++):(A=t,0===It&&Lt(N)),A===t&&(12===u.charCodeAt(zt)?(A=O,zt++):(A=t,0===It&&Lt(P)),A===t&&(32===u.charCodeAt(zt)?(A=Q,zt++):(A=t,0===It&&Lt(V)),A===t&&(160===u.charCodeAt(zt)?(A=W,zt++):(A=t,0===It&&Lt(X)),A===t&&(65279===u.charCodeAt(zt)?(A=Y,zt++):(A=t,0===It&&Lt(uu)),A===t&&(A=tC())))))),It--,A===t&&0===It&&Lt(H),A}function on(){var A;return Au.test(u.charAt(zt))?(A=u.charAt(zt),zt++):(A=t,0===It&&Lt(ru)),A}function Dn(){var A;return It++,10===u.charCodeAt(zt)?(A=nu,zt++):(A=t,0===It&&Lt(Cu)),A===t&&(u.substr(zt,2)===Eu?(A=Eu,zt+=2):(A=t,0===It&&Lt(eu)),A===t&&(13===u.charCodeAt(zt)?(A=Fu,zt++):(A=t,0===It&&Lt(Bu)),A===t&&(8232===u.charCodeAt(zt)?(A=ou,zt++):(A=t,0===It&&Lt(Du)),A===t&&(8233===u.charCodeAt(zt)?(A=cu,zt++):(A=t,0===It&&Lt(au)))))),It--,A===t&&0===It&&Lt(tu),A}function cn(){var u;return It++,(u=an())===t&&(u=sn()),It--,u===t&&0===It&&Lt(iu),u}function an(){var A,r,n,C,E,e;if(A=zt,u.substr(zt,2)===fu?(r=fu,zt+=2):(r=t,0===It&&Lt(su)),r!==t){for(n=[],C=zt,E=zt,It++,u.substr(zt,2)===vu?(e=vu,zt+=2):(e=t,0===It&&Lt(hu)),It--,e===t?E=void 0:(zt=E,E=t),E!==t&&(e=Fn())!==t?C=E=[E,e]:(zt=C,C=t);C!==t;)n.push(C),C=zt,E=zt,It++,u.substr(zt,2)===vu?(e=vu,zt+=2):(e=t,0===It&&Lt(hu)),It--,e===t?E=void 0:(zt=E,E=t),E!==t&&(e=Fn())!==t?C=E=[E,e]:(zt=C,C=t);n!==t?(u.substr(zt,2)===vu?(C=vu,zt+=2):(C=t,0===It&&Lt(hu)),C!==t?A=r=[r,n,C]:(zt=A,A=t)):(zt=A,A=t)}else zt=A,A=t;return A}function fn(){var A,r,n,C,E,e;if(A=zt,u.substr(zt,2)===fu?(r=fu,zt+=2):(r=t,0===It&&Lt(su)),r!==t){for(n=[],C=zt,E=zt,It++,u.substr(zt,2)===vu?(e=vu,zt+=2):(e=t,0===It&&Lt(hu)),e===t&&(e=on()),It--,e===t?E=void 0:(zt=E,E=t),E!==t&&(e=Fn())!==t?C=E=[E,e]:(zt=C,C=t);C!==t;)n.push(C),C=zt,E=zt,It++,u.substr(zt,2)===vu?(e=vu,zt+=2):(e=t,0===It&&Lt(hu)),e===t&&(e=on()),It--,e===t?E=void 0:(zt=E,E=t),E!==t&&(e=Fn())!==t?C=E=[E,e]:(zt=C,C=t);n!==t?(u.substr(zt,2)===vu?(C=vu,zt+=2):(C=t,0===It&&Lt(hu)),C!==t?A=r=[r,n,C]:(zt=A,A=t)):(zt=A,A=t)}else zt=A,A=t;return A}function sn(){var A,r,n,C,E,e;if(A=zt,u.substr(zt,2)===lu?(r=lu,zt+=2):(r=t,0===It&&Lt(du)),r!==t){for(n=[],C=zt,E=zt,It++,e=on(),It--,e===t?E=void 0:(zt=E,E=t),E!==t&&(e=Fn())!==t?C=E=[E,e]:(zt=C,C=t);C!==t;)n.push(C),C=zt,E=zt,It++,e=on(),It--,e===t?E=void 0:(zt=E,E=t),E!==t&&(e=Fn())!==t?C=E=[E,e]:(zt=C,C=t);n!==t?A=r=[r,n]:(zt=A,A=t)}else zt=A,A=t;return A}function vn(){var u,A,r;return u=zt,A=zt,It++,r=gn(),It--,r===t?A=void 0:(zt=A,A=t),A!==t&&(r=hn())!==t?(Rt=u,u=A=pu(r)):(zt=u,u=t),u}function hn(){var u,A,r,n;if(It++,u=zt,(A=ln())!==t){for(r=[],n=dn();n!==t;)r.push(n),n=dn();r!==t?(Rt=u,u=A=gu(A,r)):(zt=u,u=t)}else zt=u,u=t;return It--,u===t&&(A=t,0===It&&Lt(bu)),u}function ln(){var A,r,n;return(A=pn())===t&&(36===u.charCodeAt(zt)?(A=p,zt++):(A=t,0===It&&Lt(b)),A===t&&(95===u.charCodeAt(zt)?(A=xu,zt++):(A=t,0===It&&Lt(yu)),A===t&&(A=zt,92===u.charCodeAt(zt)?(r=mu,zt++):(r=t,0===It&&Lt(wu)),r!==t&&(n=Un())!==t?(Rt=A,A=r=_u(n)):(zt=A,A=t)))),A}function dn(){var A;return(A=ln())===t&&(A=bn())===t&&(A=uC())===t&&(A=rC())===t&&(8204===u.charCodeAt(zt)?(A=Su,zt++):(A=t,0===It&&Lt(ku)),A===t&&(8205===u.charCodeAt(zt)?(A=zu,zt++):(A=t,0===It&&Lt(Ru)))),A}function pn(){var u;return(u=Wn())===t&&(u=On())===t&&(u=Vn())===t&&(u=Pn())===t&&(u=Qn())===t&&(u=AC()),u}function bn(){var u;return(u=Yn())===t&&(u=Xn()),u}function gn(){var u;return(u=xn())===t&&(u=yn())===t&&(u=wC())===t&&(u=mn()),u}function xn(){var u;return(u=nC())===t&&(u=CC())===t&&(u=EC())===t&&(u=BC())===t&&(u=oC())===t&&(u=DC())===t&&(u=cC())===t&&(u=aC())===t&&(u=iC())===t&&(u=lC())===t&&(u=dC())===t&&(u=pC())===t&&(u=bC())===t&&(u=xC())===t&&(u=yC())===t&&(u=mC())===t&&(u=_C())===t&&(u=kC())===t&&(u=zC())===t&&(u=RC())===t&&(u=$C())===t&&(u=qC())===t&&(u=IC())===t&&(u=MC())===t&&(u=TC())===t&&(u=ZC()),u}function yn(){var u;return(u=eC())===t&&(u=FC())===t&&(u=fC())===t&&(u=sC())===t&&(u=vC())===t&&(u=gC())===t&&(u=SC()),u}function mn(){var u;return(u=jC())===t&&(u=hC()),u}function wn(){var A,r,n;return It++,A=zt,(r=_n())!==t?(105===u.charCodeAt(zt)?(n=$u,zt++):(n=t,0===It&&Lt(qu)),n===t&&(n=null),n!==t?(Rt=A,A=r=Iu(r,n)):(zt=A,A=t)):(zt=A,A=t),It--,A===t&&(r=t,0===It&&Lt(ju)),A}function _n(){var A,r,n,C;if(It++,A=zt,34===u.charCodeAt(zt)?(r=Tu,zt++):(r=t,0===It&&Lt(Zu)),r!==t){for(n=[],C=Sn();C!==t;)n.push(C),C=Sn();n!==t?(34===u.charCodeAt(zt)?(C=Tu,zt++):(C=t,0===It&&Lt(Zu)),C!==t?(Rt=A,A=r=Gu(n)):(zt=A,A=t)):(zt=A,A=t)}else zt=A,A=t;if(A===t)if(A=zt,39===u.charCodeAt(zt)?(r=Uu,zt++):(r=t,0===It&&Lt(Hu)),r!==t){for(n=[],C=kn();C!==t;)n.push(C),C=kn();n!==t?(39===u.charCodeAt(zt)?(C=Uu,zt++):(C=t,0===It&&Lt(Hu)),C!==t?(Rt=A,A=r=Gu(n)):(zt=A,A=t)):(zt=A,A=t)}else zt=A,A=t;return It--,A===t&&(r=t,0===It&&Lt(Mu)),A}function Sn(){var A,r,n;return A=zt,r=zt,It++,34===u.charCodeAt(zt)?(n=Tu,zt++):(n=t,0===It&&Lt(Zu)),n===t&&(92===u.charCodeAt(zt)?(n=mu,zt++):(n=t,0===It&&Lt(wu)),n===t&&(n=on())),It--,n===t?r=void 0:(zt=r,r=t),r!==t&&(n=Fn())!==t?(Rt=A,A=r=Ju()):(zt=A,A=t),A===t&&(A=zt,92===u.charCodeAt(zt)?(r=mu,zt++):(r=t,0===It&&Lt(wu)),r!==t&&(n=qn())!==t?(Rt=A,A=r=_u(n)):(zt=A,A=t),A===t&&(A=$n())),A}function kn(){var A,r,n;return A=zt,r=zt,It++,39===u.charCodeAt(zt)?(n=Uu,zt++):(n=t,0===It&&Lt(Hu)),n===t&&(92===u.charCodeAt(zt)?(n=mu,zt++):(n=t,0===It&&Lt(wu)),n===t&&(n=on())),It--,n===t?r=void 0:(zt=r,r=t),r!==t&&(n=Fn())!==t?(Rt=A,A=r=Ju()):(zt=A,A=t),A===t&&(A=zt,92===u.charCodeAt(zt)?(r=mu,zt++):(r=t,0===It&&Lt(wu)),r!==t&&(n=qn())!==t?(Rt=A,A=r=_u(n)):(zt=A,A=t),A===t&&(A=$n())),A}function zn(){var A,r,n,C,E,e;if(It++,A=zt,91===u.charCodeAt(zt)?(r=Lu,zt++):(r=t,0===It&&Lt(Nu)),r!==t)if(94===u.charCodeAt(zt)?(n=Ou,zt++):(n=t,0===It&&Lt(Pu)),n===t&&(n=null),n!==t){for(C=[],(E=Rn())===t&&(E=jn());E!==t;)C.push(E),(E=Rn())===t&&(E=jn());C!==t?(93===u.charCodeAt(zt)?(E=Qu,zt++):(E=t,0===It&&Lt(Vu)),E!==t?(105===u.charCodeAt(zt)?(e=$u,zt++):(e=t,0===It&&Lt(qu)),e===t&&(e=null),e!==t?(Rt=A,A=r=Wu(n,C,e)):(zt=A,A=t)):(zt=A,A=t)):(zt=A,A=t)}else zt=A,A=t;else zt=A,A=t;return It--,A===t&&(r=t,0===It&&Lt(Ku)),A}function Rn(){var A,r,n,C;return A=zt,(r=jn())!==t?(45===u.charCodeAt(zt)?(n=Xu,zt++):(n=t,0===It&&Lt(Yu)),n!==t&&(C=jn())!==t?(Rt=A,A=r=uA(r,C)):(zt=A,A=t)):(zt=A,A=t),A}function jn(){var A,r,n;return A=zt,r=zt,It++,93===u.charCodeAt(zt)?(n=Qu,zt++):(n=t,0===It&&Lt(Vu)),n===t&&(92===u.charCodeAt(zt)?(n=mu,zt++):(n=t,0===It&&Lt(wu)),n===t&&(n=on())),It--,n===t?r=void 0:(zt=r,r=t),r!==t&&(n=Fn())!==t?(Rt=A,A=r=Ju()):(zt=A,A=t),A===t&&(A=zt,92===u.charCodeAt(zt)?(r=mu,zt++):(r=t,0===It&&Lt(wu)),r!==t&&(n=qn())!==t?(Rt=A,A=r=_u(n)):(zt=A,A=t),A===t&&(A=$n())),A}function $n(){var A,r;return A=zt,92===u.charCodeAt(zt)?(r=mu,zt++):(r=t,0===It&&Lt(wu)),r!==t&&Dn()!==t?(Rt=A,A=r=AA()):(zt=A,A=t),A}function qn(){var A,r,n,C;return(A=In())===t&&(A=zt,48===u.charCodeAt(zt)?(r=rA,zt++):(r=t,0===It&&Lt(tA)),r!==t?(n=zt,It++,C=Hn(),It--,C===t?n=void 0:(zt=n,n=t),n!==t?(Rt=A,A=r=nA()):(zt=A,A=t)):(zt=A,A=t),A===t&&(A=Gn())===t&&(A=Un())),A}function In(){var u;return(u=Mn())===t&&(u=Tn()),u}function Mn(){var A,r;return 39===u.charCodeAt(zt)?(A=Uu,zt++):(A=t,0===It&&Lt(Hu)),A===t&&(34===u.charCodeAt(zt)?(A=Tu,zt++):(A=t,0===It&&Lt(Zu)),A===t&&(92===u.charCodeAt(zt)?(A=mu,zt++):(A=t,0===It&&Lt(wu)),A===t&&(A=zt,98===u.charCodeAt(zt)?(r=CA,zt++):(r=t,0===It&&Lt(EA)),r!==t&&(Rt=A,r=eA()),(A=r)===t&&(A=zt,102===u.charCodeAt(zt)?(r=FA,zt++):(r=t,0===It&&Lt(BA)),r!==t&&(Rt=A,r=oA()),(A=r)===t&&(A=zt,110===u.charCodeAt(zt)?(r=DA,zt++):(r=t,0===It&&Lt(cA)),r!==t&&(Rt=A,r=aA()),(A=r)===t&&(A=zt,114===u.charCodeAt(zt)?(r=iA,zt++):(r=t,0===It&&Lt(fA)),r!==t&&(Rt=A,r=sA()),(A=r)===t&&(A=zt,116===u.charCodeAt(zt)?(r=vA,zt++):(r=t,0===It&&Lt(hA)),r!==t&&(Rt=A,r=lA()),(A=r)===t&&(A=zt,118===u.charCodeAt(zt)?(r=dA,zt++):(r=t,0===It&&Lt(pA)),r!==t&&(Rt=A,r=bA()),A=r)))))))),A}function Tn(){var u,A,r;return u=zt,A=zt,It++,(r=Zn())===t&&(r=on()),It--,r===t?A=void 0:(zt=A,A=t),A!==t&&(r=Fn())!==t?(Rt=u,u=A=Ju()):(zt=u,u=t),u}function Zn(){var A;return(A=Mn())===t&&(A=Hn())===t&&(120===u.charCodeAt(zt)?(A=gA,zt++):(A=t,0===It&&Lt(xA)),A===t&&(117===u.charCodeAt(zt)?(A=yA,zt++):(A=t,0===It&&Lt(mA)))),A}function Gn(){var A,r,n,C,E,e;return A=zt,120===u.charCodeAt(zt)?(r=gA,zt++):(r=t,0===It&&Lt(xA)),r!==t?(n=zt,C=zt,(E=Jn())!==t&&(e=Jn())!==t?C=E=[E,e]:(zt=C,C=t),(n=C!==t?u.substring(n,zt):C)!==t?(Rt=A,A=r=wA(n)):(zt=A,A=t)):(zt=A,A=t),A}function Un(){var A,r,n,C,E,e,F,B;return A=zt,117===u.charCodeAt(zt)?(r=yA,zt++):(r=t,0===It&&Lt(mA)),r!==t?(n=zt,C=zt,(E=Jn())!==t&&(e=Jn())!==t&&(F=Jn())!==t&&(B=Jn())!==t?C=E=[E,e,F,B]:(zt=C,C=t),(n=C!==t?u.substring(n,zt):C)!==t?(Rt=A,A=r=wA(n)):(zt=A,A=t)):(zt=A,A=t),A}function Hn(){var A;return _A.test(u.charAt(zt))?(A=u.charAt(zt),zt++):(A=t,0===It&&Lt(SA)),A}function Jn(){var A;return kA.test(u.charAt(zt))?(A=u.charAt(zt),zt++):(A=t,0===It&&Lt(zA)),A}function Kn(){var A,r;return A=zt,46===u.charCodeAt(zt)?(r=RA,zt++):(r=t,0===It&&Lt(jA)),r!==t&&(Rt=A,r=$A()),A=r}function Ln(){var A,r,n,C;return It++,A=zt,123===u.charCodeAt(zt)?(r=IA,zt++):(r=t,0===It&&Lt(MA)),r!==t&&(n=Nn())!==t?(125===u.charCodeAt(zt)?(C=TA,zt++):(C=t,0===It&&Lt(ZA)),C!==t?(Rt=A,A=r=GA(n)):(zt=A,A=t)):(zt=A,A=t),It--,A===t&&(r=t,0===It&&Lt(qA)),A}function Nn(){var A,r,n,C,E,e;if(A=zt,r=[],n=[],C=zt,E=zt,It++,UA.test(u.charAt(zt))?(e=u.charAt(zt),zt++):(e=t,0===It&&Lt(HA)),It--,e===t?E=void 0:(zt=E,E=t),E!==t&&(e=Fn())!==t?C=E=[E,e]:(zt=C,C=t),C!==t)for(;C!==t;)n.push(C),C=zt,E=zt,It++,UA.test(u.charAt(zt))?(e=u.charAt(zt),zt++):(e=t,0===It&&Lt(HA)),It--,e===t?E=void 0:(zt=E,E=t),E!==t&&(e=Fn())!==t?C=E=[E,e]:(zt=C,C=t);else n=t;for(n===t&&(n=zt,123===u.charCodeAt(zt)?(C=IA,zt++):(C=t,0===It&&Lt(MA)),C!==t&&(E=Nn())!==t?(125===u.charCodeAt(zt)?(e=TA,zt++):(e=t,0===It&&Lt(ZA)),e!==t?n=C=[C,E,e]:(zt=n,n=t)):(zt=n,n=t));n!==t;){if(r.push(n),n=[],C=zt,E=zt,It++,UA.test(u.charAt(zt))?(e=u.charAt(zt),zt++):(e=t,0===It&&Lt(HA)),It--,e===t?E=void 0:(zt=E,E=t),E!==t&&(e=Fn())!==t?C=E=[E,e]:(zt=C,C=t),C!==t)for(;C!==t;)n.push(C),C=zt,E=zt,It++,UA.test(u.charAt(zt))?(e=u.charAt(zt),zt++):(e=t,0===It&&Lt(HA)),It--,e===t?E=void 0:(zt=E,E=t),E!==t&&(e=Fn())!==t?C=E=[E,e]:(zt=C,C=t);else n=t;n===t&&(n=zt,123===u.charCodeAt(zt)?(C=IA,zt++):(C=t,0===It&&Lt(MA)),C!==t&&(E=Nn())!==t?(125===u.charCodeAt(zt)?(e=TA,zt++):(e=t,0===It&&Lt(ZA)),e!==t?n=C=[C,E,e]:(zt=n,n=t)):(zt=n,n=t))}return A=r!==t?u.substring(A,zt):r}function On(){var A;return JA.test(u.charAt(zt))?(A=u.charAt(zt),zt++):(A=t,0===It&&Lt(KA)),A}function Pn(){var A;return LA.test(u.charAt(zt))?(A=u.charAt(zt),zt++):(A=t,0===It&&Lt(NA)),A}function Qn(){var A;return OA.test(u.charAt(zt))?(A=u.charAt(zt),zt++):(A=t,0===It&&Lt(PA)),A}function Vn(){var A;return QA.test(u.charAt(zt))?(A=u.charAt(zt),zt++):(A=t,0===It&&Lt(VA)),A}function Wn(){var A;return WA.test(u.charAt(zt))?(A=u.charAt(zt),zt++):(A=t,0===It&&Lt(XA)),A}function Xn(){var A;return YA.test(u.charAt(zt))?(A=u.charAt(zt),zt++):(A=t,0===It&&Lt(ur)),A}function Yn(){var A;return Ar.test(u.charAt(zt))?(A=u.charAt(zt),zt++):(A=t,0===It&&Lt(rr)),A}function uC(){var A;return tr.test(u.charAt(zt))?(A=u.charAt(zt),zt++):(A=t,0===It&&Lt(nr)),A}function AC(){var A;return Cr.test(u.charAt(zt))?(A=u.charAt(zt),zt++):(A=t,0===It&&Lt(Er)),A}function rC(){var A;return er.test(u.charAt(zt))?(A=u.charAt(zt),zt++):(A=t,0===It&&Lt(Fr)),A}function tC(){var A;return Br.test(u.charAt(zt))?(A=u.charAt(zt),zt++):(A=t,0===It&&Lt(or)),A}function nC(){var A,r,n,C;return A=zt,u.substr(zt,5)===Dr?(r=Dr,zt+=5):(r=t,0===It&&Lt(cr)),r!==t?(n=zt,It++,C=dn(),It--,C===t?n=void 0:(zt=n,n=t),n!==t?A=r=[r,n]:(zt=A,A=t)):(zt=A,A=t),A}function CC(){var A,r,n,C;return A=zt,u.substr(zt,4)===ar?(r=ar,zt+=4):(r=t,0===It&&Lt(ir)),r!==t?(n=zt,It++,C=dn(),It--,C===t?n=void 0:(zt=n,n=t),n!==t?A=r=[r,n]:(zt=A,A=t)):(zt=A,A=t),A}function EC(){var A,r,n,C;return A=zt,u.substr(zt,5)===fr?(r=fr,zt+=5):(r=t,0===It&&Lt(sr)),r!==t?(n=zt,It++,C=dn(),It--,C===t?n=void 0:(zt=n,n=t),n!==t?A=r=[r,n]:(zt=A,A=t)):(zt=A,A=t),A}function eC(){var A,r,n,C;return A=zt,u.substr(zt,5)===vr?(r=vr,zt+=5):(r=t,0===It&&Lt(hr)),r!==t?(n=zt,It++,C=dn(),It--,C===t?n=void 0:(zt=n,n=t),n!==t?A=r=[r,n]:(zt=A,A=t)):(zt=A,A=t),A}function FC(){var A,r,n,C;return A=zt,u.substr(zt,5)===lr?(r=lr,zt+=5):(r=t,0===It&&Lt(dr)),r!==t?(n=zt,It++,C=dn(),It--,C===t?n=void 0:(zt=n,n=t),n!==t?A=r=[r,n]:(zt=A,A=t)):(zt=A,A=t),A}function BC(){var A,r,n,C;return A=zt,u.substr(zt,8)===pr?(r=pr,zt+=8):(r=t,0===It&&Lt(br)),r!==t?(n=zt,It++,C=dn(),It--,C===t?n=void 0:(zt=n,n=t),n!==t?A=r=[r,n]:(zt=A,A=t)):(zt=A,A=t),A}function oC(){var A,r,n,C;return A=zt,u.substr(zt,8)===gr?(r=gr,zt+=8):(r=t,0===It&&Lt(xr)),r!==t?(n=zt,It++,C=dn(),It--,C===t?n=void 0:(zt=n,n=t),n!==t?A=r=[r,n]:(zt=A,A=t)):(zt=A,A=t),A}function DC(){var A,r,n,C;return A=zt,u.substr(zt,7)===yr?(r=yr,zt+=7):(r=t,0===It&&Lt(mr)),r!==t?(n=zt,It++,C=dn(),It--,C===t?n=void 0:(zt=n,n=t),n!==t?A=r=[r,n]:(zt=A,A=t)):(zt=A,A=t),A}function cC(){var A,r,n,C;return A=zt,u.substr(zt,6)===wr?(r=wr,zt+=6):(r=t,0===It&&Lt(_r)),r!==t?(n=zt,It++,C=dn(),It--,C===t?n=void 0:(zt=n,n=t),n!==t?A=r=[r,n]:(zt=A,A=t)):(zt=A,A=t),A}function aC(){var A,r,n,C;return A=zt,u.substr(zt,2)===Sr?(r=Sr,zt+=2):(r=t,0===It&&Lt(kr)),r!==t?(n=zt,It++,C=dn(),It--,C===t?n=void 0:(zt=n,n=t),n!==t?A=r=[r,n]:(zt=A,A=t)):(zt=A,A=t),A}function iC(){var A,r,n,C;return A=zt,u.substr(zt,4)===zr?(r=zr,zt+=4):(r=t,0===It&&Lt(Rr)),r!==t?(n=zt,It++,C=dn(),It--,C===t?n=void 0:(zt=n,n=t),n!==t?A=r=[r,n]:(zt=A,A=t)):(zt=A,A=t),A}function fC(){var A,r,n,C;return A=zt,u.substr(zt,4)===jr?(r=jr,zt+=4):(r=t,0===It&&Lt($r)),r!==t?(n=zt,It++,C=dn(),It--,C===t?n=void 0:(zt=n,n=t),n!==t?A=r=[r,n]:(zt=A,A=t)):(zt=A,A=t),A}function sC(){var A,r,n,C;return A=zt,u.substr(zt,6)===qr?(r=qr,zt+=6):(r=t,0===It&&Lt(Ir)),r!==t?(n=zt,It++,C=dn(),It--,C===t?n=void 0:(zt=n,n=t),n!==t?A=r=[r,n]:(zt=A,A=t)):(zt=A,A=t),A}function vC(){var A,r,n,C;return A=zt,u.substr(zt,7)===Mr?(r=Mr,zt+=7):(r=t,0===It&&Lt(Tr)),r!==t?(n=zt,It++,C=dn(),It--,C===t?n=void 0:(zt=n,n=t),n!==t?A=r=[r,n]:(zt=A,A=t)):(zt=A,A=t),A}function hC(){var A,r,n,C;return A=zt,u.substr(zt,5)===Zr?(r=Zr,zt+=5):(r=t,0===It&&Lt(Gr)),r!==t?(n=zt,It++,C=dn(),It--,C===t?n=void 0:(zt=n,n=t),n!==t?A=r=[r,n]:(zt=A,A=t)):(zt=A,A=t),A}function lC(){var A,r,n,C;return A=zt,u.substr(zt,7)===Ur?(r=Ur,zt+=7):(r=t,0===It&&Lt(Hr)),r!==t?(n=zt,It++,C=dn(),It--,C===t?n=void 0:(zt=n,n=t),n!==t?A=r=[r,n]:(zt=A,A=t)):(zt=A,A=t),A}function dC(){var A,r,n,C;return A=zt,u.substr(zt,3)===Jr?(r=Jr,zt+=3):(r=t,0===It&&Lt(Kr)),r!==t?(n=zt,It++,C=dn(),It--,C===t?n=void 0:(zt=n,n=t),n!==t?A=r=[r,n]:(zt=A,A=t)):(zt=A,A=t),A}function pC(){var A,r,n,C;return A=zt,u.substr(zt,8)===Lr?(r=Lr,zt+=8):(r=t,0===It&&Lt(Nr)),r!==t?(n=zt,It++,C=dn(),It--,C===t?n=void 0:(zt=n,n=t),n!==t?A=r=[r,n]:(zt=A,A=t)):(zt=A,A=t),A}function bC(){var A,r,n,C;return A=zt,u.substr(zt,2)===Or?(r=Or,zt+=2):(r=t,0===It&&Lt(Pr)),r!==t?(n=zt,It++,C=dn(),It--,C===t?n=void 0:(zt=n,n=t),n!==t?A=r=[r,n]:(zt=A,A=t)):(zt=A,A=t),A}function gC(){var A,r,n,C;return A=zt,u.substr(zt,6)===Qr?(r=Qr,zt+=6):(r=t,0===It&&Lt(Vr)),r!==t?(n=zt,It++,C=dn(),It--,C===t?n=void 0:(zt=n,n=t),n!==t?A=r=[r,n]:(zt=A,A=t)):(zt=A,A=t),A}function xC(){var A,r,n,C;return A=zt,u.substr(zt,10)===Wr?(r=Wr,zt+=10):(r=t,0===It&&Lt(Xr)),r!==t?(n=zt,It++,C=dn(),It--,C===t?n=void 0:(zt=n,n=t),n!==t?A=r=[r,n]:(zt=A,A=t)):(zt=A,A=t),A}function yC(){var A,r,n,C;return A=zt,u.substr(zt,2)===Yr?(r=Yr,zt+=2):(r=t,0===It&&Lt(ut)),r!==t?(n=zt,It++,C=dn(),It--,C===t?n=void 0:(zt=n,n=t),n!==t?A=r=[r,n]:(zt=A,A=t)):(zt=A,A=t),A}function mC(){var A,r,n,C;return A=zt,u.substr(zt,3)===At?(r=At,zt+=3):(r=t,0===It&&Lt(rt)),r!==t?(n=zt,It++,C=dn(),It--,C===t?n=void 0:(zt=n,n=t),n!==t?A=r=[r,n]:(zt=A,A=t)):(zt=A,A=t),A}function wC(){var A,r,n,C;return A=zt,u.substr(zt,4)===tt?(r=tt,zt+=4):(r=t,0===It&&Lt(nt)),r!==t?(n=zt,It++,C=dn(),It--,C===t?n=void 0:(zt=n,n=t),n!==t?A=r=[r,n]:(zt=A,A=t)):(zt=A,A=t),A}function _C(){var A,r,n,C;return A=zt,u.substr(zt,6)===Ct?(r=Ct,zt+=6):(r=t,0===It&&Lt(Et)),r!==t?(n=zt,It++,C=dn(),It--,C===t?n=void 0:(zt=n,n=t),n!==t?A=r=[r,n]:(zt=A,A=t)):(zt=A,A=t),A}function SC(){var A,r,n,C;return A=zt,u.substr(zt,5)===et?(r=et,zt+=5):(r=t,0===It&&Lt(Ft)),r!==t?(n=zt,It++,C=dn(),It--,C===t?n=void 0:(zt=n,n=t),n!==t?A=r=[r,n]:(zt=A,A=t)):(zt=A,A=t),A}function kC(){var A,r,n,C;return A=zt,u.substr(zt,6)===Bt?(r=Bt,zt+=6):(r=t,0===It&&Lt(ot)),r!==t?(n=zt,It++,C=dn(),It--,C===t?n=void 0:(zt=n,n=t),n!==t?A=r=[r,n]:(zt=A,A=t)):(zt=A,A=t),A}function zC(){var A,r,n,C;return A=zt,u.substr(zt,4)===Dt?(r=Dt,zt+=4):(r=t,0===It&&Lt(ct)),r!==t?(n=zt,It++,C=dn(),It--,C===t?n=void 0:(zt=n,n=t),n!==t?A=r=[r,n]:(zt=A,A=t)):(zt=A,A=t),A}function RC(){var A,r,n,C;return A=zt,u.substr(zt,5)===at?(r=at,zt+=5):(r=t,0===It&&Lt(it)),r!==t?(n=zt,It++,C=dn(),It--,C===t?n=void 0:(zt=n,n=t),n!==t?A=r=[r,n]:(zt=A,A=t)):(zt=A,A=t),A}function jC(){var A,r,n,C;return A=zt,u.substr(zt,4)===ft?(r=ft,zt+=4):(r=t,0===It&&Lt(st)),r!==t?(n=zt,It++,C=dn(),It--,C===t?n=void 0:(zt=n,n=t),n!==t?A=r=[r,n]:(zt=A,A=t)):(zt=A,A=t),A}function $C(){var A,r,n,C;return A=zt,u.substr(zt,3)===vt?(r=vt,zt+=3):(r=t,0===It&&Lt(ht)),r!==t?(n=zt,It++,C=dn(),It--,C===t?n=void 0:(zt=n,n=t),n!==t?A=r=[r,n]:(zt=A,A=t)):(zt=A,A=t),A}function qC(){var A,r,n,C;return A=zt,u.substr(zt,6)===lt?(r=lt,zt+=6):(r=t,0===It&&Lt(dt)),r!==t?(n=zt,It++,C=dn(),It--,C===t?n=void 0:(zt=n,n=t),n!==t?A=r=[r,n]:(zt=A,A=t)):(zt=A,A=t),A}function IC(){var A,r,n,C;return A=zt,u.substr(zt,3)===pt?(r=pt,zt+=3):(r=t,0===It&&Lt(bt)),r!==t?(n=zt,It++,C=dn(),It--,C===t?n=void 0:(zt=n,n=t),n!==t?A=r=[r,n]:(zt=A,A=t)):(zt=A,A=t),A}function MC(){var A,r,n,C;return A=zt,u.substr(zt,4)===gt?(r=gt,zt+=4):(r=t,0===It&&Lt(xt)),r!==t?(n=zt,It++,C=dn(),It--,C===t?n=void 0:(zt=n,n=t),n!==t?A=r=[r,n]:(zt=A,A=t)):(zt=A,A=t),A}function TC(){var A,r,n,C;return A=zt,u.substr(zt,5)===yt?(r=yt,zt+=5):(r=t,0===It&&Lt(mt)),r!==t?(n=zt,It++,C=dn(),It--,C===t?n=void 0:(zt=n,n=t),n!==t?A=r=[r,n]:(zt=A,A=t)):(zt=A,A=t),A}function ZC(){var A,r,n,C;return A=zt,u.substr(zt,4)===wt?(r=wt,zt+=4):(r=t,0===It&&Lt(_t)),r!==t?(n=zt,It++,C=dn(),It--,C===t?n=void 0:(zt=n,n=t),n!==t?A=r=[r,n]:(zt=A,A=t)):(zt=A,A=t),A}function GC(){var u,A;for(u=[],(A=Bn())===t&&(A=Dn())===t&&(A=cn());A!==t;)u.push(A),(A=Bn())===t&&(A=Dn())===t&&(A=cn());return u}function UC(){var u,A;for(u=[],(A=Bn())===t&&(A=fn());A!==t;)u.push(A),(A=Bn())===t&&(A=fn());return u}function HC(){var A,r,n,C;return A=zt,(r=GC())!==t?(59===u.charCodeAt(zt)?(n=St,zt++):(n=t,0===It&&Lt(kt)),n!==t?A=r=[r,n]:(zt=A,A=t)):(zt=A,A=t),A===t&&(A=zt,(r=UC())!==t?((n=sn())===t&&(n=null),n!==t&&(C=Dn())!==t?A=r=[r,n,C]:(zt=A,A=t)):(zt=A,A=t),A===t&&(A=zt,(r=GC())!==t&&(n=JC())!==t?A=r=[r,n]:(zt=A,A=t))),A}function JC(){var A,r;return A=zt,It++,u.length>zt?(r=u.charAt(zt),zt++):(r=t,0===It&&Lt(U)),It--,r===t?A=void 0:(zt=A,A=t),A}var KC={$:"text","&":"simple_and","!":"simple_not"},LC={"?":"optional","*":"zero_or_more","+":"one_or_more"},NC={"&":"semantic_and","!":"semantic_not"};function OC(u){var A,r=[];for(A=0;A ")+").",u.location);f(s.findRule(t,u.name))}});f(t)}},964,[953,955,961,959]); +__d(function(g,r,i,a,m,e,d){"use strict";var n=r(d[0]),o=r(d[1]),s=r(d[2]);m.exports=function(t){s.build({zero_or_more:function(s){if(!o.alwaysConsumesOnSuccess(t,s.expression))throw new n("Possible infinite loop when parsing (repetition used with an expression that may not consume any input).",s.location)},one_or_more:function(s){if(!o.alwaysConsumesOnSuccess(t,s.expression))throw new n("Possible infinite loop when parsing (repetition used with an expression that may not consume any input).",s.location)}})(t)}},965,[955,961,959]); +__d(function(g,r,i,a,m,e,d){"use strict";var n=r(d[0]),u=r(d[1]);m.exports=function(s,t){function c(n,s,t){u.build({rule_ref:function(n){n.name===s&&(n.name=t)}})(n)}var o=[];n.each(s.rules,function(u,l){var f;"rule"===(f=u).type&&"rule_ref"===f.expression.type&&(c(s,u.name,u.expression.name),n.contains(t.allowedStartRules,u.name)||o.push(l))}),o.reverse(),n.each(o,function(n){s.rules.splice(n,1)})}},966,[953,959]); +__d(function(g,r,i,a,m,e,d){"use strict";var n=r(d[0]),t=r(d[1]),s=r(d[2]),o=r(d[3]),c=r(d[4]),u=r(d[5]);m.exports=function(l){var p=[];function _(t){var s=n.indexOf(p,t);return-1===s?p.push(t)-1:s}function P(n,t){return _("function("+n.join(", ")+") {"+t+"}")}function v(){return Array.prototype.concat.apply([],arguments)}function R(n,t,s){return n.concat([t.length,s.length],t,s)}function E(s,o,u,l){var p=n.map(t.values(u),function(n){return l-n});return[c.CALL,s,o,p.length].concat(p)}function O(n,s,o){return v([c.PUSH_CURR_POS],[c.SILENT_FAILS_ON],I(n,{sp:o.sp+1,env:t.clone(o.env),action:null}),[c.SILENT_FAILS_OFF],R([s?c.IF_ERROR:c.IF_NOT_ERROR],v([c.POP],[s?c.POP:c.POP_CURR_POS],[c.PUSH_UNDEFINED]),v([c.POP],[s?c.POP_CURR_POS:c.POP],[c.PUSH_FAILED])))}function f(n,s,o){var u=P(t.keys(o.env),n);return v([c.UPDATE_SAVED_POS],E(u,0,o.env,o.sp),R([c.IF],v([c.POP],s?[c.PUSH_FAILED]:[c.PUSH_UNDEFINED]),v([c.POP],s?[c.PUSH_UNDEFINED]:[c.PUSH_FAILED])))}function S(n){return t=[c.WHILE_NOT_ERROR],s=v([c.APPEND],n),t.concat([s.length],s);var t,s}var I=o.build({grammar:function(t){n.each(t.rules,I),t.consts=p},rule:function(n){n.bytecode=I(n.expression,{sp:-1,env:{},action:null})},named:function(n,t){var s=_('peg$otherExpectation("'+u.stringEscape(n.name)+'")');return v([c.SILENT_FAILS_ON],I(n.expression,t),[c.SILENT_FAILS_OFF],R([c.IF_ERROR],[c.FAIL,s],[]))},choice:function(n,s){return(function n(s,o){return v(I(s[0],{sp:o.sp,env:t.clone(o.env),action:null}),s.length>1?R([c.IF_ERROR],v([c.POP],n(s.slice(1),o)),[]):[])})(n.alternatives,s)},action:function(n,s){var o=t.clone(s.env),u="sequence"!==n.expression.type||0===n.expression.elements.length,l=I(n.expression,{sp:s.sp+(u?1:0),env:o,action:n}),p=P(t.keys(o),n.code);return u?v([c.PUSH_CURR_POS],l,R([c.IF_NOT_ERROR],v([c.LOAD_SAVED_POS,1],E(p,1,o,s.sp+2)),[]),[c.NIP]):l},sequence:function(n,s){return v([c.PUSH_CURR_POS],(function s(o,u){var l,p;return o.length>0?(l=n.elements.length-o.slice(1).length,v(I(o[0],{sp:u.sp,env:u.env,action:null}),R([c.IF_NOT_ERROR],s(o.slice(1),{sp:u.sp+1,env:u.env,action:u.action}),v(l>1?[c.POP_N,l]:[c.POP],[c.POP_CURR_POS],[c.PUSH_FAILED])))):u.action?(p=P(t.keys(u.env),u.action.code),v([c.LOAD_SAVED_POS,n.elements.length],E(p,n.elements.length,u.env,u.sp),[c.NIP])):v([c.WRAP,n.elements.length],[c.NIP])})(n.elements,{sp:s.sp+1,env:s.env,action:s.action}))},labeled:function(n,s){var o=t.clone(s.env);return s.env[n.label]=s.sp+1,I(n.expression,{sp:s.sp,env:o,action:null})},text:function(n,s){return v([c.PUSH_CURR_POS],I(n.expression,{sp:s.sp+1,env:t.clone(s.env),action:null}),R([c.IF_NOT_ERROR],v([c.POP],[c.TEXT]),[c.NIP]))},simple_and:function(n,t){return O(n.expression,!1,t)},simple_not:function(n,t){return O(n.expression,!0,t)},optional:function(n,s){return v(I(n.expression,{sp:s.sp,env:t.clone(s.env),action:null}),R([c.IF_ERROR],v([c.POP],[c.PUSH_NULL]),[]))},zero_or_more:function(n,s){var o=I(n.expression,{sp:s.sp+1,env:t.clone(s.env),action:null});return v([c.PUSH_EMPTY_ARRAY],o,S(o),[c.POP])},one_or_more:function(n,s){var o=I(n.expression,{sp:s.sp+1,env:t.clone(s.env),action:null});return v([c.PUSH_EMPTY_ARRAY],o,R([c.IF_NOT_ERROR],v(S(o),[c.POP]),v([c.POP],[c.POP],[c.PUSH_FAILED])))},group:function(n,s){return I(n.expression,{sp:s.sp,env:t.clone(s.env),action:null})},semantic_and:function(n,t){return f(n.code,!1,t)},semantic_not:function(n,t){return f(n.code,!0,t)},rule_ref:function(n){return[c.RULE,s.indexOfRule(l,n.name)]},literal:function(n){var t,s;return n.value.length>0?(t=_('"'+u.stringEscape(n.ignoreCase?n.value.toLowerCase():n.value)+'"'),s=_("peg$literalExpectation(\""+u.stringEscape(n.value)+'", '+n.ignoreCase+')'),R(n.ignoreCase?[c.MATCH_STRING_IC,t]:[c.MATCH_STRING,t],n.ignoreCase?[c.ACCEPT_N,n.value.length]:[c.ACCEPT_STRING,t],[c.FAIL,s])):(t=_('""'),[c.PUSH,t])},class:function(t){var s,o,l,p;return s=t.parts.length>0?'/^['+(t.inverted?'^':'')+n.map(t.parts,function(n){return n instanceof Array?u.regexpClassEscape(n[0])+'-'+u.regexpClassEscape(n[1]):u.regexpClassEscape(n)}).join('')+']/'+(t.ignoreCase?'i':''):t.inverted?'/^[\\S\\s]/':'/^(?!)/',o='['+n.map(t.parts,function(n){return n instanceof Array?'["'+u.stringEscape(n[0])+'", "'+u.stringEscape(n[1])+'"]':'"'+u.stringEscape(n)+'"'}).join(', ')+']',l=_(s),p=_('peg$classExpectation('+o+', '+t.inverted+', '+t.ignoreCase+')'),R([c.MATCH_REGEXP,l],[c.ACCEPT_N,1],[c.FAIL,p])},any:function(){var n=_('peg$anyExpectation()');return R([c.MATCH_ANY],[c.ACCEPT_N,1],[c.FAIL,n])}});I(l)}},967,[953,954,961,959,968,969]); +__d(function(g,r,i,a,m,e,d){"use strict";m.exports={PUSH:0,PUSH_UNDEFINED:1,PUSH_NULL:2,PUSH_FAILED:3,PUSH_EMPTY_ARRAY:4,PUSH_CURR_POS:5,POP:6,POP_CURR_POS:7,POP_N:8,NIP:9,APPEND:10,WRAP:11,TEXT:12,IF:13,IF_ERROR:14,IF_NOT_ERROR:15,WHILE_NOT_ERROR:16,MATCH_ANY:17,MATCH_STRING:18,MATCH_STRING_IC:19,MATCH_REGEXP:20,ACCEPT_N:21,ACCEPT_STRING:22,FAIL:23,LOAD_SAVED_POS:24,UPDATE_SAVED_POS:25,CALL:26,RULE:27,SILENT_FAILS_ON:28,SILENT_FAILS_OFF:29}},968,[]); +__d(function(g,r,i,a,m,e,d){"use strict";function c(c){return c.charCodeAt(0).toString(16).toUpperCase()}var n={stringEscape:function(n){return n.replace(/\\/g,'\\\\').replace(/"/g,'\\"').replace(/\0/g,'\\0').replace(/\x08/g,'\\b').replace(/\t/g,'\\t').replace(/\n/g,'\\n').replace(/\f/g,'\\f').replace(/\r/g,'\\r').replace(/[\x00-\x0F]/g,function(n){return'\\x0'+c(n)}).replace(/[\x10-\x1F\x7F-\xFF]/g,function(n){return'\\x'+c(n)}).replace(/[\u0100-\u0FFF]/g,function(n){return"\\u0"+c(n)}).replace(/[\u1000-\uFFFF]/g,function(n){return"\\u"+c(n)})},regexpClassEscape:function(n){return n.replace(/\\/g,'\\\\').replace(/\//g,'\\/').replace(/\]/g,'\\]').replace(/\^/g,'\\^').replace(/-/g,'\\-').replace(/\0/g,'\\0').replace(/\t/g,'\\t').replace(/\n/g,'\\n').replace(/\v/g,'\\x0B').replace(/\f/g,'\\f').replace(/\r/g,'\\r').replace(/[\x00-\x0F]/g,function(n){return'\\x0'+c(n)}).replace(/[\x10-\x1F\x7F-\xFF]/g,function(n){return'\\x'+c(n)}).replace(/[\u0100-\u0FFF]/g,function(n){return"\\u0"+c(n)}).replace(/[\u1000-\uFFFF]/g,function(n){return"\\u"+c(n)})}};m.exports=n},969,[]); +__d(function(g,r,i,a,m,e,d){"use strict";var arrays=r(d[0]),objects=r(d[1]),asts=r(d[2]),op=r(d[3]),js=r(d[4]);function generateJS(ast,options){function indent2(t){return t.replace(/^(.+)$/gm,' $1')}function indent6(t){return t.replace(/^(.+)$/gm,' $1')}function indent10(t){return t.replace(/^(.+)$/gm,' $1')}function generateTables(){return"size"===options.optimize?['peg$consts = [',indent2(ast.consts.join(',\n')),'],','','peg$bytecode = [',indent2(arrays.map(ast.rules,function(t){return'peg$decode("'+js.stringEscape(arrays.map(t.bytecode,function(t){return String.fromCharCode(t+32)}).join(''))+'")'}).join(',\n')),'],'].join('\n'):arrays.map(ast.consts,function(t,s){return'peg$c'+s+' = '+t+','}).join('\n')}function generateRuleHeader(t,s){var p=[];return p.push(''),options.trace&&p.push(['peg$tracer.trace({',' type: "rule.enter",',' rule: '+t+',',' location: peg$computeLocation(startPos, startPos)','});',''].join('\n')),options.cache&&(p.push(['var key = peg$currPos * '+ast.rules.length+' + '+s+',',' cached = peg$resultsCache[key];','','if (cached) {',' peg$currPos = cached.nextPos;',''].join('\n')),options.trace&&p.push(['if (cached.result !== peg$FAILED) {',' peg$tracer.trace({',' type: "rule.match",',' rule: '+t+',',' result: cached.result,',' location: peg$computeLocation(startPos, peg$currPos)',' });','} else {',' peg$tracer.trace({',' type: "rule.fail",',' rule: '+t+',',' location: peg$computeLocation(startPos, startPos)',' });','}',''].join('\n')),p.push([' return cached.result;','}',''].join('\n'))),p.join('\n')}function generateRuleFooter(t,s){var p=[];return options.cache&&p.push(['','peg$resultsCache[key] = { nextPos: peg$currPos, result: '+s+' };'].join('\n')),options.trace&&p.push(['','if ('+s+' !== peg$FAILED) {',' peg$tracer.trace({',' type: "rule.match",',' rule: '+t+',',' result: '+s+',',' location: peg$computeLocation(startPos, peg$currPos)',' });','} else {',' peg$tracer.trace({',' type: "rule.fail",',' rule: '+t+',',' location: peg$computeLocation(startPos, startPos)',' });','}'].join('\n')),p.push(['','return '+s+';'].join('\n')),p.join('\n')}function generateInterpreter(){var t,s=[];function p(t,s){var p=s+3,n='bc[ip + '+(p-2)+']',o='bc[ip + '+(p-1)+']';return['ends.push(end);','ips.push(ip + '+p+' + '+n+' + '+o+');','','if ('+t+') {',' end = ip + '+p+' + '+n+';',' ip += '+p+';','} else {',' end = ip + '+p+' + '+n+' + '+o+';',' ip += '+p+' + '+n+';','}','','break;'].join('\n')}return s.push(['function peg$decode(s) {',' var bc = new Array(s.length), i;','',' for (i = 0; i < s.length; i++) {',' bc[i] = s.charCodeAt(i) - 32;',' }','',' return bc;','}','','function peg$parseRule(index) {'].join('\n')),options.trace?s.push([' var bc = peg$bytecode[index],',' ip = 0,',' ips = [],',' end = bc.length,',' ends = [],',' stack = [],',' startPos = peg$currPos,',' params, i;'].join('\n')):s.push([' var bc = peg$bytecode[index],',' ip = 0,',' ips = [],',' end = bc.length,',' ends = [],',' stack = [],',' params, i;'].join('\n')),s.push(indent2(generateRuleHeader('peg$ruleNames[index]','index'))),s.push([' while (true) {',' while (ip < end) {',' switch (bc[ip]) {',' case '+op.PUSH+':',' stack.push(peg$consts[bc[ip + 1]]);',' ip += 2;',' break;','',' case '+op.PUSH_UNDEFINED+':',' stack.push(void 0);',' ip++;',' break;','',' case '+op.PUSH_NULL+':',' stack.push(null);',' ip++;',' break;','',' case '+op.PUSH_FAILED+':',' stack.push(peg$FAILED);',' ip++;',' break;','',' case '+op.PUSH_EMPTY_ARRAY+':',' stack.push([]);',' ip++;',' break;','',' case '+op.PUSH_CURR_POS+':',' stack.push(peg$currPos);',' ip++;',' break;','',' case '+op.POP+':',' stack.pop();',' ip++;',' break;','',' case '+op.POP_CURR_POS+':',' peg$currPos = stack.pop();',' ip++;',' break;','',' case '+op.POP_N+':',' stack.length -= bc[ip + 1];',' ip += 2;',' break;','',' case '+op.NIP+':',' stack.splice(-2, 1);',' ip++;',' break;','',' case '+op.APPEND+':',' stack[stack.length - 2].push(stack.pop());',' ip++;',' break;','',' case '+op.WRAP+':',' stack.push(stack.splice(stack.length - bc[ip + 1], bc[ip + 1]));',' ip += 2;',' break;','',' case '+op.TEXT+':',' stack.push(input.substring(stack.pop(), peg$currPos));',' ip++;',' break;','',' case '+op.IF+':',indent10(p('stack[stack.length - 1]',0)),'',' case '+op.IF_ERROR+':',indent10(p('stack[stack.length - 1] === peg$FAILED',0)),'',' case '+op.IF_NOT_ERROR+':',indent10(p('stack[stack.length - 1] !== peg$FAILED',0)),'',' case '+op.WHILE_NOT_ERROR+':',indent10((t='stack[stack.length - 1] !== peg$FAILED',['if ('+t+') {',' ends.push(end);',' ips.push(ip);',''," end = ip + 2 + bc[ip + 1];"," ip += 2;",'} else {'," ip += 2 + bc[ip + 1];",'}','','break;'].join('\n'))),'',' case '+op.MATCH_ANY+':',indent10(p('input.length > peg$currPos',0)),'',' case '+op.MATCH_STRING+':',indent10(p('input.substr(peg$currPos, peg$consts[bc[ip + 1]].length) === peg$consts[bc[ip + 1]]',1)),'',' case '+op.MATCH_STRING_IC+':',indent10(p('input.substr(peg$currPos, peg$consts[bc[ip + 1]].length).toLowerCase() === peg$consts[bc[ip + 1]]',1)),'',' case '+op.MATCH_REGEXP+':',indent10(p('peg$consts[bc[ip + 1]].test(input.charAt(peg$currPos))',1)),'',' case '+op.ACCEPT_N+':',' stack.push(input.substr(peg$currPos, bc[ip + 1]));',' peg$currPos += bc[ip + 1];',' ip += 2;',' break;','',' case '+op.ACCEPT_STRING+':',' stack.push(peg$consts[bc[ip + 1]]);',' peg$currPos += peg$consts[bc[ip + 1]].length;',' ip += 2;',' break;','',' case '+op.FAIL+':',' stack.push(peg$FAILED);',' if (peg$silentFails === 0) {',' peg$fail(peg$consts[bc[ip + 1]]);',' }',' ip += 2;',' break;','',' case '+op.LOAD_SAVED_POS+':',' peg$savedPos = stack[stack.length - 1 - bc[ip + 1]];',' ip += 2;',' break;','',' case '+op.UPDATE_SAVED_POS+':',' peg$savedPos = peg$currPos;',' ip++;',' break;','',' case '+op.CALL+':',indent10(["params = bc.slice(ip + 4, ip + 4 + bc[ip + 3]);","for (i = 0; i < bc[ip + 3]; i++) {",' params[i] = stack[stack.length - 1 - params[i]];','}','','stack.splice(',' stack.length - bc[ip + 2],',' bc[ip + 2],',' peg$consts[bc[ip + 1]].apply(null, params)',');','',"ip += 4 + bc[ip + 3];",'break;'].join('\n')),'',' case '+op.RULE+':',' stack.push(peg$parseRule(bc[ip + 1]));',' ip += 2;',' break;','',' case '+op.SILENT_FAILS_ON+':',' peg$silentFails++;',' ip++;',' break;','',' case '+op.SILENT_FAILS_OFF+':',' peg$silentFails--;',' ip++;',' break;','',' default:',' throw new Error("Invalid opcode: " + bc[ip] + ".");',' }',' }','',' if (ends.length > 0) {',' end = ends.pop();',' ip = ips.pop();',' } else {',' break;',' }',' }'].join('\n')),s.push(indent2(generateRuleFooter('peg$ruleNames[index]','stack[0]'))),s.push('}'),s.join('\n')}function generateRuleFunction(rule){var parts=[],code;function c(t){return"peg$c"+t}function s(t){return"s"+t}var stack={sp:-1,maxSp:-1,push:function(t){var p=s(++this.sp)+' = '+t+';';return this.sp>this.maxSp&&(this.maxSp=this.sp),p},pop:function(t){var p;return void 0===t?s(this.sp--):(p=arrays.map(arrays.range(this.sp-t+1,this.sp+1),s),this.sp-=t,p)},top:function(){return s(this.sp)},index:function(t){return s(this.sp-t)}};function compile(bc){var ip=0,end=bc.length,parts=[],value;function compileCondition(t,s){var p,n,o,c,u=s+3,l=bc[ip+u-2],h=bc[ip+u-1],$=stack.sp;if(ip+=u,p=compile(bc.slice(ip,ip+l)),o=stack.sp,ip+=l,h>0&&(stack.sp=$,n=compile(bc.slice(ip,ip+h)),c=stack.sp,ip+=h,o!==c))throw new Error("Branches of a condition must move the stack pointer in the same way.");parts.push('if ('+t+') {'),parts.push(indent2(p)),h>0&&(parts.push('} else {'),parts.push(indent2(n))),parts.push('}')}function compileLoop(t){var s,p,n=bc[ip+2-1],o=stack.sp;if(ip+=2,s=compile(bc.slice(ip,ip+n)),p=stack.sp,ip+=n,p!==o)throw new Error("Body of a loop can't move the stack pointer.");parts.push('while ('+t+') {'),parts.push(indent2(s)),parts.push('}')}function compileCall(){var t=bc[ip+4-1],s=c(bc[ip+1])+'('+arrays.map(bc.slice(ip+4,ip+4+t),function(t){return stack.index(t)}).join(', ')+')';stack.pop(bc[ip+2]),parts.push(stack.push(s)),ip+=4+t}for(;ip peg$currPos',0);break;case op.MATCH_STRING:compileCondition(eval(ast.consts[bc[ip+1]]).length>1?'input.substr(peg$currPos, '+eval(ast.consts[bc[ip+1]]).length+') === '+c(bc[ip+1]):'input.charCodeAt(peg$currPos) === '+eval(ast.consts[bc[ip+1]]).charCodeAt(0),1);break;case op.MATCH_STRING_IC:compileCondition('input.substr(peg$currPos, '+eval(ast.consts[bc[ip+1]]).length+').toLowerCase() === '+c(bc[ip+1]),1);break;case op.MATCH_REGEXP:compileCondition(c(bc[ip+1])+'.test(input.charAt(peg$currPos))',1);break;case op.ACCEPT_N:parts.push(stack.push(bc[ip+1]>1?'input.substr(peg$currPos, '+bc[ip+1]+')':'input.charAt(peg$currPos)')),parts.push(bc[ip+1]>1?'peg$currPos += '+bc[ip+1]+';':'peg$currPos++;'),ip+=2;break;case op.ACCEPT_STRING:parts.push(stack.push(c(bc[ip+1]))),parts.push(eval(ast.consts[bc[ip+1]]).length>1?'peg$currPos += '+eval(ast.consts[bc[ip+1]]).length+';':'peg$currPos++;'),ip+=2;break;case op.FAIL:parts.push(stack.push('peg$FAILED')),parts.push('if (peg$silentFails === 0) { peg$fail('+c(bc[ip+1])+'); }'),ip+=2;break;case op.LOAD_SAVED_POS:parts.push('peg$savedPos = '+stack.index(bc[ip+1])+';'),ip+=2;break;case op.UPDATE_SAVED_POS:parts.push('peg$savedPos = peg$currPos;'),ip++;break;case op.CALL:compileCall();break;case op.RULE:parts.push(stack.push("peg$parse"+ast.rules[bc[ip+1]].name+"()")),ip+=2;break;case op.SILENT_FAILS_ON:parts.push('peg$silentFails++;'),ip++;break;case op.SILENT_FAILS_OFF:parts.push('peg$silentFails--;'),ip++;break;default:throw new Error("Invalid opcode: "+bc[ip]+".")}return parts.join('\n')}return code=compile(rule.bytecode),parts.push('function peg$parse'+rule.name+'() {'),options.trace?parts.push([' var '+arrays.map(arrays.range(0,stack.maxSp+1),s).join(', ')+',',' startPos = peg$currPos;'].join('\n')):parts.push(' var '+arrays.map(arrays.range(0,stack.maxSp+1),s).join(', ')+';'),parts.push(indent2(generateRuleHeader('"'+js.stringEscape(rule.name)+'"',asts.indexOfRule(ast,rule.name)))),parts.push(indent2(code)),parts.push(indent2(generateRuleFooter('"'+js.stringEscape(rule.name)+'"',s(0)))),parts.push('}'),parts.join('\n')}function generateToplevel(){var t,s,p,n,o,c=[];return c.push(['function peg$subclass(child, parent) {',' function ctor() { this.constructor = child; }',' ctor.prototype = parent.prototype;',' child.prototype = new ctor();','}','','function peg$SyntaxError(message, expected, found, location) {',' this.message = message;',' this.expected = expected;',' this.found = found;',' this.location = location;',' this.name = "SyntaxError";','',' if (typeof Error.captureStackTrace === "function") {',' Error.captureStackTrace(this, peg$SyntaxError);',' }','}','','peg$subclass(peg$SyntaxError, Error);','','peg$SyntaxError.buildMessage = function(expected, found) {',' var DESCRIBE_EXPECTATION_FNS = {',' literal: function(expectation) {',' return "\\"" + literalEscape(expectation.text) + "\\"";',' },','',' "class": function(expectation) {',' var escapedParts = "",',' i;','',' for (i = 0; i < expectation.parts.length; i++) {',' escapedParts += expectation.parts[i] instanceof Array',' ? classEscape(expectation.parts[i][0]) + "-" + classEscape(expectation.parts[i][1])',' : classEscape(expectation.parts[i]);',' }','',' return "[" + (expectation.inverted ? "^" : "") + escapedParts + "]";',' },','',' any: function(expectation) {',' return "any character";',' },','',' end: function(expectation) {',' return "end of input";',' },','',' other: function(expectation) {',' return expectation.description;',' }',' };','',' function hex(ch) {',' return ch.charCodeAt(0).toString(16).toUpperCase();',' }','',' function literalEscape(s) {',' return s',' .replace(/\\\\/g, \'\\\\\\\\\')',' .replace(/"/g, \'\\\\"\')',' .replace(/\\0/g, \'\\\\0\')',' .replace(/\\t/g, \'\\\\t\')',' .replace(/\\n/g, \'\\\\n\')',' .replace(/\\r/g, \'\\\\r\')',' .replace(/[\\x00-\\x0F]/g, function(ch) { return \'\\\\x0\' + hex(ch); })',' .replace(/[\\x10-\\x1F\\x7F-\\x9F]/g, function(ch) { return \'\\\\x\' + hex(ch); });',' }','',' function classEscape(s) {',' return s',' .replace(/\\\\/g, \'\\\\\\\\\')',' .replace(/\\]/g, \'\\\\]\')',' .replace(/\\^/g, \'\\\\^\')',' .replace(/-/g, \'\\\\-\')',' .replace(/\\0/g, \'\\\\0\')',' .replace(/\\t/g, \'\\\\t\')',' .replace(/\\n/g, \'\\\\n\')',' .replace(/\\r/g, \'\\\\r\')',' .replace(/[\\x00-\\x0F]/g, function(ch) { return \'\\\\x0\' + hex(ch); })',' .replace(/[\\x10-\\x1F\\x7F-\\x9F]/g, function(ch) { return \'\\\\x\' + hex(ch); });',' }','',' function describeExpectation(expectation) {',' return DESCRIBE_EXPECTATION_FNS[expectation.type](expectation);',' }','',' function describeExpected(expected) {',' var descriptions = new Array(expected.length),',' i, j;','',' for (i = 0; i < expected.length; i++) {',' descriptions[i] = describeExpectation(expected[i]);',' }','',' descriptions.sort();','',' if (descriptions.length > 0) {',' for (i = 1, j = 1; i < descriptions.length; i++) {',' if (descriptions[i - 1] !== descriptions[i]) {',' descriptions[j] = descriptions[i];',' j++;',' }',' }',' descriptions.length = j;',' }','',' switch (descriptions.length) {',' case 1:',' return descriptions[0];','',' case 2:',' return descriptions[0] + " or " + descriptions[1];','',' default:',' return descriptions.slice(0, -1).join(", ")',' + ", or "',' + descriptions[descriptions.length - 1];',' }',' }','',' function describeFound(found) {',' return found ? "\\"" + literalEscape(found) + "\\"" : "end of input";',' }','',' return "Expected " + describeExpected(expected) + " but " + describeFound(found) + " found.";','};',''].join('\n')),options.trace&&c.push(['function peg$DefaultTracer() {',' this.indentLevel = 0;','}','','peg$DefaultTracer.prototype.trace = function(event) {',' var that = this;','',' function log(event) {',' function repeat(string, n) {',' var result = "", i;','',' for (i = 0; i < n; i++) {',' result += string;',' }','',' return result;',' }','',' function pad(string, length) {',' return string + repeat(" ", length - string.length);',' }','',' if (typeof console === "object") {',' console.log(',' event.location.start.line + ":" + event.location.start.column + "-"',' + event.location.end.line + ":" + event.location.end.column + " "',' + pad(event.type, 10) + " "',' + repeat(" ", that.indentLevel) + event.rule',' );',' }',' }','',' switch (event.type) {',' case "rule.enter":',' log(event);',' this.indentLevel++;',' break;','',' case "rule.match":',' this.indentLevel--;',' log(event);',' break;','',' case "rule.fail":',' this.indentLevel--;',' log(event);',' break;','',' default:',' throw new Error("Invalid event type: " + event.type + ".");',' }','};',''].join('\n')),c.push(['function peg$parse(input, options) {',' options = options !== void 0 ? options : {};','',' var peg$FAILED = {},',''].join('\n')),"size"===options.optimize?(t='{ '+arrays.map(options.allowedStartRules,function(t){return t+': '+asts.indexOfRule(ast,t)}).join(', ')+' }',s=asts.indexOfRule(ast,options.allowedStartRules[0]),c.push([' peg$startRuleIndices = '+t+',',' peg$startRuleIndex = '+s+','].join('\n'))):(p='{ '+arrays.map(options.allowedStartRules,function(t){return t+': peg$parse'+t}).join(', ')+' }',n='peg$parse'+options.allowedStartRules[0],c.push([' peg$startRuleFunctions = '+p+',',' peg$startRuleFunction = '+n+','].join('\n'))),c.push(''),c.push(indent6(generateTables())),c.push(['',' peg$currPos = 0,',' peg$savedPos = 0,',' peg$posDetailsCache = [{ line: 1, column: 1 }],',' peg$maxFailPos = 0,',' peg$maxFailExpected = [],',' peg$silentFails = 0,',''].join('\n')),options.cache&&c.push([' peg$resultsCache = {},',''].join('\n')),options.trace&&("size"===options.optimize&&(o='['+arrays.map(ast.rules,function(t){return'"'+js.stringEscape(t.name)+'"'}).join(', ')+']',c.push([' peg$ruleNames = '+o+',',''].join('\n'))),c.push([' peg$tracer = "tracer" in options ? options.tracer : new peg$DefaultTracer(),',''].join('\n'))),c.push([' peg$result;',''].join('\n')),"size"===options.optimize?c.push([' if ("startRule" in options) {',' if (!(options.startRule in peg$startRuleIndices)) {',' throw new Error("Can\'t start parsing from rule \\"" + options.startRule + "\\".");',' }','',' peg$startRuleIndex = peg$startRuleIndices[options.startRule];',' }'].join('\n')):c.push([' if ("startRule" in options) {',' if (!(options.startRule in peg$startRuleFunctions)) {',' throw new Error("Can\'t start parsing from rule \\"" + options.startRule + "\\".");',' }','',' peg$startRuleFunction = peg$startRuleFunctions[options.startRule];',' }'].join('\n')),c.push(['',' function text() {',' return input.substring(peg$savedPos, peg$currPos);',' }','',' function location() {',' return peg$computeLocation(peg$savedPos, peg$currPos);',' }','',' function expected(description, location) {',' location = location !== void 0 ? location : peg$computeLocation(peg$savedPos, peg$currPos)','',' throw peg$buildStructuredError(',' [peg$otherExpectation(description)],',' input.substring(peg$savedPos, peg$currPos),',' location',' );',' }','',' function error(message, location) {',' location = location !== void 0 ? location : peg$computeLocation(peg$savedPos, peg$currPos)','',' throw peg$buildSimpleError(message, location);',' }','',' function peg$literalExpectation(text, ignoreCase) {',' return { type: "literal", text: text, ignoreCase: ignoreCase };',' }','',' function peg$classExpectation(parts, inverted, ignoreCase) {',' return { type: "class", parts: parts, inverted: inverted, ignoreCase: ignoreCase };',' }','',' function peg$anyExpectation() {',' return { type: "any" };',' }','',' function peg$endExpectation() {',' return { type: "end" };',' }','',' function peg$otherExpectation(description) {',' return { type: "other", description: description };',' }','',' function peg$computePosDetails(pos) {',' var details = peg$posDetailsCache[pos], p;','',' if (details) {',' return details;',' } else {',' p = pos - 1;',' while (!peg$posDetailsCache[p]) {',' p--;',' }','',' details = peg$posDetailsCache[p];',' details = {',' line: details.line,',' column: details.column',' };','',' while (p < pos) {',' if (input.charCodeAt(p) === 10) {',' details.line++;',' details.column = 1;',' } else {',' details.column++;',' }','',' p++;',' }','',' peg$posDetailsCache[pos] = details;',' return details;',' }',' }','',' function peg$computeLocation(startPos, endPos) {',' var startPosDetails = peg$computePosDetails(startPos),',' endPosDetails = peg$computePosDetails(endPos);','',' return {',' start: {',' offset: startPos,',' line: startPosDetails.line,',' column: startPosDetails.column',' },',' end: {',' offset: endPos,',' line: endPosDetails.line,',' column: endPosDetails.column',' }',' };',' }','',' function peg$fail(expected) {',' if (peg$currPos < peg$maxFailPos) { return; }','',' if (peg$currPos > peg$maxFailPos) {',' peg$maxFailPos = peg$currPos;',' peg$maxFailExpected = [];',' }','',' peg$maxFailExpected.push(expected);',' }','',' function peg$buildSimpleError(message, location) {',' return new peg$SyntaxError(message, null, null, location);',' }','',' function peg$buildStructuredError(expected, found, location) {',' return new peg$SyntaxError(',' peg$SyntaxError.buildMessage(expected, found),',' expected,',' found,',' location',' );',' }',''].join('\n')),"size"===options.optimize?(c.push(indent2(generateInterpreter())),c.push('')):arrays.each(ast.rules,function(t){c.push(indent2(generateRuleFunction(t))),c.push('')}),ast.initializer&&(c.push(indent2(ast.initializer.code)),c.push('')),"size"===options.optimize?c.push(' peg$result = peg$parseRule(peg$startRuleIndex);'):c.push(' peg$result = peg$startRuleFunction();'),c.push(['',' if (peg$result !== peg$FAILED && peg$currPos === input.length) {',' return peg$result;',' } else {',' if (peg$result !== peg$FAILED && peg$currPos < input.length) {',' peg$fail(peg$endExpectation());',' }','',' throw peg$buildStructuredError(',' peg$maxFailExpected,',' peg$maxFailPos < input.length ? input.charAt(peg$maxFailPos) : null,',' peg$maxFailPos < input.length',' ? peg$computeLocation(peg$maxFailPos, peg$maxFailPos + 1)',' : peg$computeLocation(peg$maxFailPos, peg$maxFailPos)',' );',' }','}'].join('\n')),c.join('\n')}function generateWrapper(t){function s(){return['/*',' * Generated by PEG.js 0.10.0.',' *',' * http://pegjs.org/',' */'].join('\n')}function p(){return options.trace?['{',' SyntaxError: peg$SyntaxError,',' DefaultTracer: peg$DefaultTracer,',' parse: peg$parse','}'].join('\n'):['{',' SyntaxError: peg$SyntaxError,',' parse: peg$parse','}'].join('\n')}return{bare:function(){return[s(),'(function() {',' "use strict";','',indent2(t),'',indent2('return '+p()+';'),'})()'].join('\n')},commonjs:function(){var n=[],o=objects.keys(options.dependencies),c=arrays.map(o,function(t){return t+' = require("'+js.stringEscape(options.dependencies[t])+'")'});return n.push([s(),'','"use strict";',''].join('\n')),c.length>0&&(n.push('var '+c.join(', ')+';'),n.push('')),n.push([t,'','module.exports = '+p()+';',''].join('\n')),n.join('\n')},amd:function(){var n=objects.values(options.dependencies),o=objects.keys(options.dependencies),c='['+arrays.map(n,function(t){return'"'+js.stringEscape(t)+'"'}).join(', ')+']',u=o.join(', ');return[s(),'define('+c+', function('+u+') {',' "use strict";','',indent2(t),'',indent2('return '+p()+';'),'});',''].join('\n')},globals:function(){return[s(),'(function(root) {',' "use strict";','',indent2(t),'',indent2('root.'+options.exportVar+' = '+p()+';'),'})(this);',''].join('\n')},umd:function(){var n=[],o=objects.values(options.dependencies),c=objects.keys(options.dependencies),u='['+arrays.map(o,function(t){return'"'+js.stringEscape(t)+'"'}).join(', ')+']',l=arrays.map(o,function(t){return'require("'+js.stringEscape(t)+'")'}).join(', '),h=c.join(', ');return n.push([s(),'(function(root, factory) {',' if (typeof define === "function" && define.amd) {',' define('+u+', factory);',' } else if (typeof module === "object" && module.exports) {',' module.exports = factory('+l+');'].join('\n')),null!==options.exportVar&&n.push([' } else {',' root.'+options.exportVar+' = factory();'].join('\n')),n.push([' }','})(this, function('+h+') {',' "use strict";','',indent2(t),'',indent2('return '+p()+';'),'});',''].join('\n')),n.join('\n')}}[options.format]()}ast.code=generateWrapper(generateToplevel())}m.exports=generateJS},970,[953,954,961,968,969]); +__d(function(g,r,i,a,m,e,d){var l=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(l){var n=l.clipPath,o=l.clipRule,p={};o&&(p.clipRule=0===c[o]?0:1);if(n){var u=n.match(t.default);u?p.clipPath=u[1]:console.warn('Invalid `clipPath` prop, expected a clipPath like `"#id"`, but got: "'+n+'"')}return p};var t=l(r(d[1])),c={evenodd:0,nonzero:1}},971,[1,946]); +__d(function(g,r,i,a,m,e,d){var n=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(n,s){var t={};return l.default.forEach(u,function(o){var s=n[o];n[o]&&(t.responsible||"pointerEvents"===o||(t.responsible=!0),t[o]=s)}),l.default.every(p,function(l){return!n[l]||(t.responsible=!0,(0,o.default)(t,{onStartShouldSetResponder:s.touchableHandleStartShouldSetResponder,onResponderTerminationRequest:s.touchableHandleResponderTerminationRequest,onResponderGrant:s.touchableHandleResponderGrant,onResponderMove:s.touchableHandleResponderMove,onResponderRelease:s.touchableHandleResponderRelease,onResponderTerminate:s.touchableHandleResponderTerminate}),!1)}),t};var o=n(r(d[1])),s=n(r(d[2])),t=r(d[3]),l=n(r(d[4])),u=(0,s.default)(Object.keys(t.PanResponder.create({}).panHandlers)).concat(["pointerEvents"]),p=["disabled","onPress","onPressIn","onPressOut","onLongPress","delayPressIn","delayPressOut","delayLongPress"]},972,[1,8,15,2,332]); +__d(function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var u=t(r(d[1])),l=t(r(d[2])),n=t(r(d[3])),f=t(r(d[4])),o=t(r(d[5])),c=t(r(d[6])),s=t(r(d[7])),v=r(d[8]),p=t(r(d[9])),y=t(r(d[10])),h=(function(t){function v(){var t,u;(0,l.default)(this,v);for(var n=arguments.length,c=new Array(n),s=0;s1&&void 0!==arguments[1]&&arguments[1],l=arguments.length>2?arguments[2]:void 0,o=t.x,c=t.y,s=t.dx,y=t.dy,S=t.rotate,p=t.baselineShift,h=t.verticalAlign,v=t.alignmentBaseline,b=t.children,A=null;if("string"==typeof b||"number"==typeof b){var F=b.toString();n?b=f.default.createElement(l,null,F):(A=F,b=null)}else(f.Children.count(b)>1||Array.isArray(b))&&(b=f.Children.map(b,function(t){return"string"==typeof t||"number"==typeof t?f.default.createElement(l,null,t.toString()):t}));return{content:A,children:b,baselineShift:p,verticalAlign:h,alignmentBaseline:v,font:x(t),x:(0,u.default)(o),y:(0,u.default)(c),dx:(0,u.default)(s),dy:(0,u.default)(y),rotate:(0,u.default)(S)}};var l=n(r(d[2])),o=n(r(d[3])),f=t(r(d[4])),u=n(r(d[5])),c=/^\s*((?:(?:normal|bold|italic)\s+)*)(?:(\d+(?:\.\d+)?[ptexm%])*(?:\s*\/.*?)?\s+)?\s*"?([^"]*)/i,s=/^[\s"']*/,y=/[\s"']*$/,S=/\s*,\s*/g,p={};function h(t){return t?t.split(S)[0].replace(s,"").replace(y,""):null}function v(t){if(p.hasOwnProperty(t))return p[t];var n=c.exec(t);if(!n)return null;var l=h(n[3]),o=n[2]||"12",f=/bold/.exec(n[1]),u=/italic/.exec(n[1]),s=f?"bold":"normal",y=u?"italic":"normal";return p[t]={fontSize:o,fontFamily:l,fontWeight:s,fontStyle:y},p[t]}function x(t){var n=(0,l.default)({},t.style,t),f=n.fontData,u=n.fontStyle,c=n.fontVariant,s=n.fontWeight,y=n.fontStretch,S=n.textAnchor,p=n.textDecoration,x=n.letterSpacing,b=n.wordSpacing,A=n.kerning,F=n.fontVariantLigatures,D=n.fontFeatureSettings,V=n.fontSize,_=n.fontFamily,k=n.font;_=h(_),V=V?""+V:null;var w=o.default.pickBy({fontData:f,fontStyle:u,fontVariant:c,fontWeight:s,fontStretch:y,fontSize:V,fontFamily:_,textAnchor:S,textDecoration:p,letterSpacing:x,wordSpacing:b,kerning:A,fontVariantLigatures:F,fontFeatureSettings:D},function(t){return!o.default.isNil(t)});return"string"==typeof k&&(k=v(k)),o.default.defaults(w,k)}},982,[329,1,43,332,46,949]); +__d(function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var u=t(r(d[1])),l=t(r(d[2])),f=t(r(d[3])),n=t(r(d[4])),o=t(r(d[5])),s=t(r(d[6])),v=t(r(d[7])),c=t(r(d[8])),p=t(r(d[9])),h=r(d[10]),y=t(r(d[11])),N=t(r(d[12])),x=t(r(d[13])),_=t(r(d[14])),P=t(r(d[15])),k=(function(t){function h(){var t,u;(0,f.default)(this,h);for(var n=arguments.length,v=new Array(n),c=0;c0&&0===c?'has-left-divider':null},l))})}),N)};e.default=p},1001,[1,330,8,6,1002,332,1003,1008,1009]); +__d(function(g,r,i,a,m,e,d){!(function(){'use strict';var n={}.hasOwnProperty;function t(){for(var f=[],o=0;o1&&void 0!==arguments[1]?arguments[1]:'polite';(0,h.speak)(t,n)}},{key:"componentWillUnmount",value:function(){this.debouncedSpeak.cancel()}},{key:"render",value:function(){return(0,n.createElement)(t,(0,u.default)({},this.props,{speak:this.speak,debouncedSpeak:this.debouncedSpeak}))}}]),b})(n.Component)},'withSpokenMessages');e.default=v},1011,[1,330,8,19,20,27,30,33,29,332,1012,864]); +__d(function(g,r,i,a,m,e,d){var n=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.speak=void 0;var o=n(r(d[1]));e.speak=function(n,t){n=(0,o.default)(n)}},1012,[1,1013]); +__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t='',u=function(u){return u=u.replace(/<[^<>]+>/g,' '),t===u&&(u+="\xa0"),t=u,u};e.default=u},1013,[]); +__d(function(g,r,i,a,m,e,d){var t=r(d[0]),n=r(d[1]);Object.defineProperty(e,"__esModule",{value:!0}),e.createSlotFill=function(t){var n=function(n){return(0,u.createElement)(f.default,(0,l.default)({name:t},n))};n.displayName=t+'Fill';var c=function(n){return(0,u.createElement)(o.default,(0,l.default)({name:t},n))};return c.displayName=t+'Slot',{Fill:n,Slot:c}},Object.defineProperty(e,"Slot",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(e,"Fill",{enumerable:!0,get:function(){return f.default}}),Object.defineProperty(e,"Provider",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(e,"Consumer",{enumerable:!0,get:function(){return c.Consumer}});var u=r(d[2]),l=n(r(d[3])),o=n(r(d[4])),f=n(r(d[5])),c=t(r(d[6]))},1014,[329,1,330,8,1015,1017,1016]); +__d(function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=r(d[1]),l=t(r(d[2])),o=t(r(d[3])),u=t(r(d[4])),s=t(r(d[5])),c=t(r(d[6])),p=t(r(d[7])),f=t(r(d[8])),h=r(d[9]),v=r(d[10]),y=(function(t){function l(){var t;return(0,o.default)(this,l),(t=(0,s.default)(this,(0,c.default)(l).apply(this,arguments))).bindNode=t.bindNode.bind((0,f.default)((0,f.default)(t))),t}return(0,p.default)(l,t),(0,u.default)(l,[{key:"componentDidMount",value:function(){(0,this.props.registerSlot)(this.props.name,this)}},{key:"componentWillUnmount",value:function(){(0,this.props.unregisterSlot)(this.props.name,this)}},{key:"componentDidUpdate",value:function(t){var n=this.props,l=n.name,o=n.unregisterSlot,u=n.registerSlot;t.name!==l&&(o(t.name),u(l,this))}},{key:"bindNode",value:function(t){this.node=t}},{key:"render",value:function(){var t=this.props,l=t.children,o=t.name,u=t.bubblesVirtually,s=void 0!==u&&u,c=t.fillProps,p=void 0===c?{}:c,f=t.getFills;if(s)return(0,n.createElement)("div",{ref:this.bindNode});var v=(0,h.map)(f(o,this),function(t){var l=t.occurrence,o=(0,h.isFunction)(t.props.children)?t.props.children(p):t.props.children;return n.Children.map(o,function(t,o){if(!t||(0,h.isString)(t))return t;var u=l+"---"+(t.key||o);return(0,n.cloneElement)(t,{key:u})})}).filter((0,h.negate)(n.isEmptyElement));return(0,n.createElement)(n.Fragment,null,(0,h.isFunction)(l)?l(v):v)}}]),l})(n.Component),b=function(t){return(0,n.createElement)(v.Consumer,null,function(o){var u=o.registerSlot,s=o.unregisterSlot,c=o.getFills;return(0,n.createElement)(y,(0,l.default)({},t,{registerSlot:u,unregisterSlot:s,getFills:c}))})};e.default=b},1015,[1,330,8,19,20,27,30,33,29,332,1016]); +__d(function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.Consumer=e.default=void 0;var l=r(d[1]),s=t(r(d[2])),n=t(r(d[3])),u=t(r(d[4])),o=t(r(d[5])),f=t(r(d[6])),c=t(r(d[7])),h=t(r(d[8])),F=r(d[9]),S=(0,l.createContext)({registerSlot:function(){},unregisterSlot:function(){},registerFill:function(){},unregisterFill:function(){},getSlot:function(){},getFills:function(){}}),v=S.Provider,p=S.Consumer;e.Consumer=p;var y=(function(t){function S(){var t;return(0,n.default)(this,S),(t=(0,o.default)(this,(0,f.default)(S).apply(this,arguments))).registerSlot=t.registerSlot.bind((0,h.default)((0,h.default)(t))),t.registerFill=t.registerFill.bind((0,h.default)((0,h.default)(t))),t.unregisterSlot=t.unregisterSlot.bind((0,h.default)((0,h.default)(t))),t.unregisterFill=t.unregisterFill.bind((0,h.default)((0,h.default)(t))),t.getSlot=t.getSlot.bind((0,h.default)((0,h.default)(t))),t.getFills=t.getFills.bind((0,h.default)((0,h.default)(t))),t.slots={},t.fills={},t.state={registerSlot:t.registerSlot,unregisterSlot:t.unregisterSlot,registerFill:t.registerFill,unregisterFill:t.unregisterFill,getSlot:t.getSlot,getFills:t.getFills},t}return(0,c.default)(S,t),(0,u.default)(S,[{key:"registerSlot",value:function(t,l){var s=this.slots[t];this.slots[t]=l,this.forceUpdateFills(t),this.forceUpdateSlot(t),s&&s.forceUpdate()}},{key:"registerFill",value:function(t,l){this.fills[t]=(0,s.default)(this.fills[t]||[]).concat([l]),this.forceUpdateSlot(t)}},{key:"unregisterSlot",value:function(t,l){this.slots[t]===l&&(delete this.slots[t],this.forceUpdateFills(t))}},{key:"unregisterFill",value:function(t,l){this.fills[t]=(0,F.without)(this.fills[t],l),this.resetFillOccurrence(t),this.forceUpdateSlot(t)}},{key:"getSlot",value:function(t){return this.slots[t]}},{key:"getFills",value:function(t,l){return this.slots[t]!==l?[]:(0,F.sortBy)(this.fills[t],'occurrence')}},{key:"resetFillOccurrence",value:function(t){(0,F.forEach)(this.fills[t],function(t){t.resetOccurrence()})}},{key:"forceUpdateFills",value:function(t){(0,F.forEach)(this.fills[t],function(t){t.forceUpdate()})}},{key:"forceUpdateSlot",value:function(t){var l=this.getSlot(t);l&&l.forceUpdate()}},{key:"render",value:function(){return(0,l.createElement)(v,{value:this.state},this.props.children)}}]),S})(l.Component);e.default=y},1016,[1,330,15,19,20,27,30,33,29,332]); +__d(function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=r(d[1]),l=t(r(d[2])),o=t(r(d[3])),u=t(r(d[4])),s=t(r(d[5])),c=t(r(d[6])),p=t(r(d[7])),f=r(d[8]),h=r(d[9]),v=0,y=(function(t){function l(){var t;return(0,o.default)(this,l),(t=(0,s.default)(this,(0,c.default)(l).apply(this,arguments))).occurrence=++v,t}return(0,p.default)(l,t),(0,u.default)(l,[{key:"componentDidMount",value:function(){(0,this.props.registerFill)(this.props.name,this)}},{key:"componentWillUpdate",value:function(){this.occurrence||(this.occurrence=++v);var t=(0,this.props.getSlot)(this.props.name);t&&!t.props.bubblesVirtually&&t.forceUpdate()}},{key:"componentWillUnmount",value:function(){(0,this.props.unregisterFill)(this.props.name,this)}},{key:"componentDidUpdate",value:function(t){var n=this.props,l=n.name,o=n.unregisterFill,u=n.registerFill;t.name!==l&&(o(t.name,this),u(l,this))}},{key:"resetOccurrence",value:function(){this.occurrence=null}},{key:"render",value:function(){var t=this.props,l=t.name,o=t.getSlot,u=this.props.children,s=o(l);return s&&s.node&&s.props.bubblesVirtually?((0,f.isFunction)(u)&&(u=u(s.props.fillProps)),(0,n.createPortal)(u,s.node)):null}}]),l})(n.Component),F=function(t){return(0,n.createElement)(h.Consumer,null,function(o){var u=o.getSlot,s=o.registerFill,c=o.unregisterFill;return(0,n.createElement)(y,(0,l.default)({},t,{getSlot:u,registerFill:s,unregisterFill:c}))})};e.default=F},1017,[1,330,8,19,20,27,30,33,332,1016]); +__d(function(g,r,i,a,m,e,d){var n=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(n){return(0,p.createHigherOrderComponent)(function(p){var k,y='core/with-filters/'+n;function A(){void 0===k&&(k=(0,h.applyFilters)(n,p))}var _=(function(n){function p(){var n;return(0,o.default)(this,p),n=(0,c.default)(this,(0,s.default)(p).apply(this,arguments)),A(),n}return(0,l.default)(p,n),(0,u.default)(p,[{key:"componentDidMount",value:function(){p.instances.push(this),1===p.instances.length&&((0,h.addAction)('hookRemoved',y,F),(0,h.addAction)('hookAdded',y,F))}},{key:"componentWillUnmount",value:function(){p.instances=(0,f.without)(p.instances,this),0===p.instances.length&&((0,h.removeAction)('hookRemoved',y),(0,h.removeAction)('hookAdded',y))}},{key:"render",value:function(){return(0,t.createElement)(k,this.props)}}]),p})(t.Component);_.instances=[];var w=(0,f.debounce)(function(){k=(0,h.applyFilters)(n,p),_.instances.forEach(function(n){n.forceUpdate()})},v);function F(t){t===n&&w()}return _},'withFilters')};var t=r(d[1]),o=n(r(d[2])),u=n(r(d[3])),c=n(r(d[4])),s=n(r(d[5])),l=n(r(d[6])),f=r(d[7]),h=r(d[8]),p=r(d[9]),v=16},1018,[1,330,19,20,27,30,33,332,894,864]); +__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(c){var s=c.attributes,_=c.setAttributes,f=c.style,b=c.onFocus,v=c.onBlur;return(0,t.createElement)(n.View,null,(0,t.createElement)(o.PlainText,{value:s.content,style:[f,u.blockCode],multiline:!0,underlineColorAndroid:"transparent",onChange:function(t){return _({content:t})},placeholder:(0,l.__)('Write code\u2026'),"aria-label":(0,l.__)('Code'),isSelected:c.isSelected,onFocus:b,onBlur:v}))};var t=r(d[0]),n=r(d[1]),l=r(d[2]),o=r(d[3]),u="ios"===n.Platform.OS?r(d[4]):r(d[5])},1019,[330,2,878,1020,1142,1143]); +__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),r(d[0]),r(d[1]),r(d[2]),r(d[3]);var t=r(d[4]);Object.keys(t).forEach(function(n){"default"!==n&&"__esModule"!==n&&Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[n]}})});var n=r(d[5]);Object.keys(n).forEach(function(t){"default"!==t&&"__esModule"!==t&&Object.defineProperty(e,t,{enumerable:!0,get:function(){return n[t]}})})},1020,[807,1021,1054,1078,1081,1141]); +__d(function(g,r,i,a,m,e,d){var t=r(d[0]),n=r(d[1]),o=n(r(d[2])),u=r(d[3]),c=n(r(d[4])),f=n(r(d[5])),l=t(r(d[6])),s=t(r(d[7])),v=t(r(d[8])),y=r(d[9]),E=r(d[10]),h=y.defaultEntities.reduce(function(t,n){var o=n.kind,u=n.name;return t[(0,y.getMethodName)(o,u)]=function(t,n){return l.getEntityRecord(t,o,u,n)},t[(0,y.getMethodName)(o,u,'get',!0)]=function(t){for(var n=arguments.length,c=new Array(n>1?n-1:0),f=1;f1?c-1:0),l=1;l0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;switch(n.type){case'RECEIVE_TERMS':return(0,s.default)({},t,(0,o.default)({},n.taxonomy,n.terms))}return t}function y(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{byId:{},queries:{}},n=arguments.length>1?arguments[1]:void 0;switch(n.type){case'RECEIVE_USER_QUERY':return{byId:(0,s.default)({},t.byId,(0,c.keyBy)(n.users,'id')),queries:(0,s.default)({},t.queries,(0,o.default)({},n.queryID,(0,c.map)(n.users,function(t){return t.id})))}}return t}function p(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1?arguments[1]:void 0;switch(n.type){case'RECEIVE_TAXONOMIES':return n.taxonomies}return t}function I(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;switch(n.type){case'RECEIVE_THEME_SUPPORTS':return(0,s.default)({},t,n.themeSupports)}return t}function R(t){return(0,c.flowRight)([(0,l.ifMatchingAction)(function(n){return n.name&&n.kind&&n.name===t.name&&n.kind===t.kind}),(0,l.replaceAction)(function(n){return(0,s.default)({},n,{key:t.key||E.DEFAULT_ENTITY_KEY})})])(v.reducer)}function _(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:E.defaultEntities,n=arguments.length>1?arguments[1]:void 0;switch(n.type){case'ADD_ENTITIES':return(0,u.default)(t).concat((0,u.default)(n.entities))}return t}var w=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},u=arguments.length>1?arguments[1]:void 0,l=_(t.config,u),v=t.reducer;if(!v||l!==t.config){var E=(0,c.groupBy)(l,'kind');v=(0,f.combineReducers)(Object.entries(E).reduce(function(t,u){var c=(0,n.default)(u,2),l=c[0],v=c[1],E=(0,f.combineReducers)(v.reduce(function(t,n){return(0,s.default)({},t,(0,o.default)({},n.name,R(n)))},{}));return t[l]=E,t},{}))}var h=v(t.data,u);return h===t.data&&l===t.config&&v===t.reducer?t:{reducer:v,data:h,config:l}};function S(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;switch(n.type){case'RECEIVE_EMBED_PREVIEW':var u=n.url,c=n.preview;return(0,s.default)({},t,(0,o.default)({},u,c))}return t}function b(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;switch(n.type){case'RECEIVE_USER_PERMISSION':return(0,s.default)({},t,(0,o.default)({},n.key,n.isAllowed))}return t}e.entities=w;var P=(0,f.combineReducers)({terms:h,users:y,taxonomies:p,themeSupports:I,entities:w,embedPreviews:S,userPermissions:b});e.default=P},1022,[1,9,15,44,43,332,809,1023,1028,1039]); +__d(function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"ifMatchingAction",{enumerable:!0,get:function(){return n.default}}),Object.defineProperty(e,"onSubKey",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(e,"replaceAction",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(e,"withWeakMapCache",{enumerable:!0,get:function(){return f.default}});var n=t(r(d[1])),u=t(r(d[2])),c=t(r(d[3])),f=t(r(d[4]))},1023,[1,1024,1025,1026,1027]); +__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=function(n){return function(t){return function(u,o){return void 0===u||n(o)?t(u,o):u}}};e.default=n},1024,[]); +__d(function(g,r,i,a,m,e,d){var n=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.onSubKey=void 0;var t=n(r(d[1])),u=n(r(d[2])),o=function(n){return function(o){return function(){var f=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},v=arguments.length>1?arguments[1]:void 0,l=v[n];if(void 0===l)return f;var c=o(f[l],v);return c===f[l]?f:(0,u.default)({},f,(0,t.default)({},l,c))}}};e.onSubKey=o;var f=o;e.default=f},1025,[1,44,43]); +__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=function(n){return function(t){return function(u,f){return t(u,n(f))}}};e.default=n},1026,[]); +__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=r(d[0]);var n=function(n){var u=new WeakMap;return function(f){var o;return u.has(f)?o=u.get(f):(o=n(f),(0,t.isObjectLike)(f)&&u.set(f,o)),o}};e.default=n},1027,[332]); +__d(function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0});var n={reducer:!0};Object.defineProperty(e,"reducer",{enumerable:!0,get:function(){return c.default}});var o=r(d[1]);Object.keys(o).forEach(function(t){"default"!==t&&"__esModule"!==t&&(Object.prototype.hasOwnProperty.call(n,t)||Object.defineProperty(e,t,{enumerable:!0,get:function(){return o[t]}}))});var u=r(d[2]);Object.keys(u).forEach(function(t){"default"!==t&&"__esModule"!==t&&(Object.prototype.hasOwnProperty.call(n,t)||Object.defineProperty(e,t,{enumerable:!0,get:function(){return u[t]}}))});var c=t(r(d[3]))},1028,[1,1029,1030,1038]); +__d(function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.receiveItems=c,e.receiveQueriedItems=function(t){var u=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(0,n.default)({},c(t),{query:u})};var n=t(r(d[1])),u=r(d[2]);function c(t){return{type:'RECEIVE_ITEMS',items:(0,u.castArray)(t)}}},1029,[1,43,332]); +__d(function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.getQueriedItems=void 0;var n=t(r(d[1])),u=t(r(d[2])),l=t(r(d[3])),v=new WeakMap;function f(t,n){var u=(0,l.default)(n),v=u.stableKey,f=u.page,s=u.perPage;if(!t.queries[v])return null;var o=t.queries[v];if(!o)return null;for(var h=-1===s?0:(f-1)*s,p=-1===s?o.length:Math.min(h+s,o.length),c=[],_=h;_1&&void 0!==arguments[1]?arguments[1]:{},l=v.get(t);if(l){var s=l.get(n);if(void 0!==s)return s}else l=new u.default,v.set(t,l);var o=f(t,n);return l.set(n,o),o});e.getQueriedItems=s},1030,[1,887,838,1031]); +__d(function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.getQueryParts=l,e.default=void 0;var u=t(r(d[1])),s=r(d[2]);function l(t){for(var l={stableKey:'',page:1,perPage:10},b=Object.keys(t).sort(),c=0;c0&&void 0!==arguments[0]?arguments[0]:'',s=arguments.length>1?arguments[1]:void 0;if(!s||!Object.keys(s).length)return t;var f=t,o=t.indexOf('?');-1!==o&&(s=(0,n.default)((0,u.parse)(t.substr(o+1)),s),f=f.substr(0,o));return f+'?'+(0,u.stringify)(s)},e.getQueryArg=c,e.hasQueryArg=function(t,n){return void 0!==c(t,n)},e.removeQueryArgs=function(t){for(var n=t.indexOf('?'),s=-1!==n?(0,u.parse)(t.substr(n+1)):{},f=-1!==n?t.substr(0,n):t,o=arguments.length,c=new Array(o>1?o-1:0),l=1;l0?P+F:''}},1034,[1035,1036]); +__d(function(g,r,i,a,m,e,d){'use strict';var t=Object.prototype.hasOwnProperty,o=(function(){for(var t=[],o=0;o<256;++o)t.push('%'+((o<16?'0':'')+o.toString(16)).toUpperCase());return t})(),n=function(t){for(var o;t.length;){var n=t.pop();if(o=n.obj[n.prop],Array.isArray(o)){for(var c=[],u=0;u=48&&f<=57||f>=65&&f<=90||f>=97&&f<=122?c+=n.charAt(u):f<128?c+=o[f]:f<2048?c+=o[192|f>>6]+o[128|63&f]:f<55296||f>=57344?c+=o[224|f>>12]+o[128|f>>6&63]+o[128|63&f]:(u+=1,f=65536+((1023&f)<<10|1023&n.charCodeAt(u)),c+=o[240|f>>18]+o[128|f>>12&63]+o[128|f>>6&63]+o[128|63&f])}return c},isBuffer:function(t){return null!==t&&void 0!==t&&!!(t.constructor&&t.constructor.isBuffer&&t.constructor.isBuffer(t))},isRegExp:function(t){return'[object RegExp]'===Object.prototype.toString.call(t)},merge:function o(n,u,f){if(!u)return n;if('object'!=typeof u){if(Array.isArray(n))n.push(u);else{if('object'!=typeof n)return[n,u];(f.plainObjects||f.allowPrototypes||!t.call(Object.prototype,u))&&(n[u]=!0)}return n}if('object'!=typeof n)return[n].concat(u);var p=n;return Array.isArray(n)&&!Array.isArray(u)&&(p=c(n,f)),Array.isArray(n)&&Array.isArray(u)?(u.forEach(function(c,u){t.call(n,u)?n[u]&&'object'==typeof n[u]?n[u]=o(n[u],c,f):n.push(c):n[u]=c}),n):Object.keys(u).reduce(function(n,c){var p=u[c];return t.call(n,c)?n[c]=o(n[c],p,f):n[c]=p,n},p)}}},1035,[]); +__d(function(g,r,i,a,m,e,d){'use strict';var t=String.prototype.replace,n=/%20/g;m.exports={default:'RFC3986',formatters:{RFC1738:function(o){return t.call(o,n,'+')},RFC3986:function(t){return t}},RFC1738:'RFC1738',RFC3986:'RFC3986'}},1036,[]); +__d(function(g,r,i,a,m,e,d){'use strict';var t=r(d[0]),o=Object.prototype.hasOwnProperty,l={allowDots:!1,allowPrototypes:!1,arrayLimit:20,decoder:t.decode,delimiter:'&',depth:5,parameterLimit:1e3,plainObjects:!1,strictNullHandling:!1},n=function(t,n){for(var c={},p=n.ignoreQueryPrefix?t.replace(/^\?/,''):t,s=n.parameterLimit===1/0?void 0:n.parameterLimit,u=p.split(n.delimiter,s),y=0;y=0;--c){var p,s=t[c];if('[]'===s)p=(p=[]).concat(n);else{p=l.plainObjects?Object.create(null):{};var u='['===s.charAt(0)&&']'===s.charAt(s.length-1)?s.slice(1,-1):s,y=parseInt(u,10);!isNaN(y)&&s!==u&&String(y)===u&&y>=0&&l.parseArrays&&y<=l.arrayLimit?(p=[])[y]=n:p[u]=n}n=p}return n},p=function(t,l,n){if(t){var p=n.allowDots?t.replace(/\.([^.[]+)/g,'[$1]'):t,s=/(\[[^[\]]*])/g,u=/(\[[^[\]]*])/.exec(p),y=u?p.slice(0,u.index):p,f=[];if(y){if(!n.plainObjects&&o.call(Object.prototype,y)&&!n.allowPrototypes)return;f.push(y)}for(var b=0;null!==(u=s.exec(p))&&b=l&&v0&&void 0!==arguments[0]?arguments[0]:null,n=arguments.length>1?arguments[1]:void 0,u=n.type,l=n.page,f=n.perPage,E=n.key,y=void 0===E?c.DEFAULT_ENTITY_KEY:E;return'RECEIVE_ITEMS'!==u?t:v(t||[],(0,o.map)(n.items,y),l,f)}),y=(0,u.combineReducers)({items:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},u=arguments.length>1?arguments[1]:void 0;switch(u.type){case'RECEIVE_ITEMS':return(0,n.default)({},t,(0,o.keyBy)(u.items,u.key||c.DEFAULT_ENTITY_KEY))}return t},queries:E});e.default=y},1038,[1,43,814,332,1023,1039,1031]); +__d(function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.getKindEntities=h,e.getMethodName=e.kinds=e.defaultEntities=e.DEFAULT_ENTITY_KEY=void 0;var n=t(r(d[1])),s=r(d[2]),u=r(d[3]),o=r(d[4]),p=n.default.mark(x),c=n.default.mark(b),l=n.default.mark(h);e.DEFAULT_ENTITY_KEY='id';var f=[{name:'postType',kind:'root',key:'slug',baseURL:'/wp/v2/types'},{name:'media',kind:'root',baseURL:'/wp/v2/media',plural:'mediaItems'},{name:'taxonomy',kind:'root',key:'slug',baseURL:'/wp/v2/taxonomies',plural:'taxonomies'}];e.defaultEntities=f;var v=[{name:'postType',loadEntities:x},{name:'taxonomy',loadEntities:b}];function x(){var t;return n.default.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,(0,o.apiFetch)({path:'/wp/v2/types?context=edit'});case 2:return t=n.sent,n.abrupt("return",(0,s.map)(t,function(t,n){return{kind:'postType',baseURL:'/wp/v2/'+t.rest_base,name:n}}));case 4:case"end":return n.stop()}},p,this)}function b(){var t;return n.default.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,(0,o.apiFetch)({path:'/wp/v2/taxonomies?context=edit'});case 2:return t=n.sent,n.abrupt("return",(0,s.map)(t,function(t,n){return{kind:'taxonomy',baseURL:'/wp/v2/'+t.rest_base,name:n}}));case 4:case"end":return n.stop()}},c,this)}e.kinds=v;function h(t){var p,c;return n.default.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,(0,o.select)('getEntitiesByKind',t);case 2:if(!(p=n.sent)||0===p.length){n.next=5;break}return n.abrupt("return",p);case 5:if(c=(0,s.find)(v,{name:t})){n.next=8;break}return n.abrupt("return",[]);case 8:return n.next=10,c.loadEntities();case 10:return p=n.sent,n.next=13,(0,u.addEntities)(p);case 13:return n.abrupt("return",p);case 14:case"end":return n.stop()}},l,this)}e.getMethodName=function(t,n){var u=arguments.length>2&&void 0!==arguments[2]?arguments[2]:'get',o=arguments.length>3&&void 0!==arguments[3]&&arguments[3],p=(0,s.find)(f,{kind:t,name:n}),c='root'===t?'':(0,s.upperFirst)((0,s.camelCase)(t)),l=(0,s.upperFirst)((0,s.camelCase)(n))+(o?'s':'');return""+u+c+(o&&p.plural?(0,s.upperFirst)((0,s.camelCase)(p.plural)):l)}},1039,[1,129,332,1040,1041]); +__d(function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.receiveUserQuery=function(t,n){return{type:'RECEIVE_USER_QUERY',users:(0,E.castArray)(n),queryID:t}},e.addEntities=function(t){return{type:'ADD_ENTITIES',entities:t}},e.receiveEntityRecords=v,e.receiveThemeSupports=function(t){return{type:'RECEIVE_THEME_SUPPORTS',themeSupports:t}},e.receiveEmbedPreview=function(t,n){return{type:'RECEIVE_EMBED_PREVIEW',url:t,preview:n}},e.saveEntityRecord=f,e.receiveUploadPermissions=function(t){return{type:'RECEIVE_USER_PERMISSION',key:'create/media',isAllowed:t}},e.receiveUserPermission=function(t,n){return{type:'RECEIVE_USER_PERMISSION',key:t,isAllowed:n}};var n=t(r(d[1])),u=t(r(d[2])),E=r(d[3]),s=r(d[4]),c=r(d[5]),o=r(d[6]),p=n.default.mark(f);function v(t,n,E,c){var o,p=arguments.length>4&&void 0!==arguments[4]&&arguments[4];return o=c?(0,s.receiveQueriedItems)(E,c):(0,s.receiveItems)(E),(0,u.default)({},o,{kind:t,name:n,invalidateCache:p})}function f(t,u,s){var f,_,I,R,y;return n.default.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,(0,c.getKindEntities)(t);case 2:if(f=n.sent,_=(0,E.find)(f,{kind:t,name:u})){n.next=6;break}return n.abrupt("return");case 6:return I=_.key||c.DEFAULT_ENTITY_KEY,R=s[I],n.next=10,(0,o.apiFetch)({path:_.baseURL+(R?'/'+R:''),method:R?'PUT':'POST',data:s});case 10:return y=n.sent,n.next=13,v(t,u,y,void 0,!0);case 13:return n.abrupt("return",y);case 14:case"end":return n.stop()}},p,this)}},1040,[1,129,43,332,1028,1039,1041]); +__d(function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.apiFetch=function(t){return{type:'API_FETCH',request:t}},e.select=function(t){for(var n=arguments.length,u=new Array(n>1?n-1:0),c=1;c=200&&t.status<300)return t;throw t}).then(function(t){return h?204===t.status?null:t.json?t.json():Promise.reject(t):t}).catch(function(t){if(!h)throw t;var n={code:'invalid_json',message:(0,u.__)('The response is not a valid JSON response.')};if(!t||!t.json)throw n;return t.json().catch(function(){throw n}).then(function(t){var n={code:'unknown_error',message:(0,u.__)('An unknown error occurred.')};throw t||n})})};function y(t){var n=_.concat([j]);return(function t(o){return function(u){var c=n[o];return o===n.length-1?c(u):c(u,t(o+1))}})(0)(t)}y.use=function(t){_.unshift(t)},y.setFetchHandler=function(t){j=t},y.createNonceMiddleware=c.default,y.createPreloadingMiddleware=f.default,y.createRootURLMiddleware=l.default,y.fetchAllMiddleware=s.default;var M=y;e.default=M},1042,[1,43,6,878,1043,1044,1046,1047,1045,1048,1049]); +__d(function(g,r,i,a,m,e,d){var n=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=n(r(d[1])),o=r(d[2]),c=function(n){var c=n;return(0,o.addAction)('heartbeat.tick','core/api-fetch/create-nonce-middleware',function(n){n['rest-nonce']&&(c=n['rest-nonce'])}),function(n,o){var f=n.headers||{},u=!0;for(var l in f)if(f.hasOwnProperty(l)&&'x-wp-nonce'===l.toLowerCase()){u=!1;break}return u&&(f=(0,t.default)({},f,{'X-WP-Nonce':c})),o((0,t.default)({},n,{headers:f}))}};e.default=c},1043,[1,43,894]); +__d(function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=t(r(d[1])),u=t(r(d[2])),f=function(t){return function(f,l){return(0,u.default)(f,function(u){var f,o=u.url,c=u.path;return'string'==typeof c&&(f=t,-1!==t.indexOf('?')&&(c=c.replace('?','&')),c=c.replace(/^\//,''),'string'==typeof f&&-1!==f.indexOf('?')&&(c=c.replace('?','&')),o=f+c),l((0,n.default)({},u,{url:o}))})}};e.default=f},1044,[1,43,1045]); +__d(function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=t(r(d[1])),p=function(t,p){var o,l,c=t.path;return'string'==typeof t.namespace&&'string'==typeof t.endpoint&&(o=t.namespace.replace(/^\/|\/$/g,''),c=(l=t.endpoint.replace(/^\//,''))?o+'/'+l:o),delete t.namespace,delete t.endpoint,p((0,n.default)({},t,{path:c}))};e.default=p},1045,[1,43]); +__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=function(t){return function(n,o){var u=n.parse,f=void 0===u||u;if('string'==typeof n.path){var l=n.method||'GET',p=(function(t){var n=t.split('?'),o=n[1],u=n[0];return o?u+'?'+o.split('&').map(function(t){return t.split('=')}).sort(function(t,n){return t[0].localeCompare(n[0])}).map(function(t){return t.join('=')}).join('&'):u})(n.path);if(f&&'GET'===l&&t[p])return Promise.resolve(t[p].body);if('OPTIONS'===l&&t[l][p])return Promise.resolve(t[l][p])}return o(n)}};e.default=t},1046,[]); +__d(function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=t(r(d[1])),u=t(r(d[2])),s=t(r(d[3])),c=r(d[4]),f=function(t,n){var f=t.path,p=t.url,l=(0,s.default)(t,["path","url"]);return(0,u.default)({},l,{url:p&&(0,c.addQueryArgs)(p,n),path:f&&(0,c.addQueryArgs)(f,n)})},p=function(t){return t.json?t.json():Promise.reject(t)},l=function(t){if(!t)return{};var n=t.match(/<([^>]+)>; rel="next"/);return n?{next:n[1]}:{}},o=function(t){return l(t.headers.get('link')).next},x=function(t){var n=t.path&&-1!==t.path.indexOf('per_page=-1'),u=t.url&&-1!==t.url.indexOf('per_page=-1');return n||u},b=function(t,s){var c,l,b,h,v,k;return n.default.async(function(_){for(;;)switch(_.prev=_.next){case 0:if(!1!==t.parse){_.next=2;break}return _.abrupt("return",s(t));case 2:if(x(t)){_.next=4;break}return _.abrupt("return",s(t));case 4:return _.next=6,n.default.awrap(s((0,u.default)({},f(t,{per_page:100}),{parse:!1})));case 6:return c=_.sent,_.next=9,n.default.awrap(p(c));case 9:if(l=_.sent,Array.isArray(l)){_.next=12;break}return _.abrupt("return",l);case 12:if(b=o(c)){_.next=15;break}return _.abrupt("return",l);case 15:h=[].concat(l);case 16:if(!b){_.next=27;break}return _.next=19,n.default.awrap(s((0,u.default)({},t,{path:void 0,url:b,parse:!1})));case 19:return v=_.sent,_.next=22,n.default.awrap(p(v));case 22:k=_.sent,h=h.concat(k),b=o(v),_.next=16;break;case 27:return _.abrupt("return",h);case 28:case"end":return _.stop()}},null,this)};e.default=b},1047,[1,129,43,6,1032]); +__d(function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=t(r(d[1])),n=new Set(['PATCH','PUT','DELETE']),u='GET';var v=function(t,v){var T=t.method,f=void 0===T?u:T;return n.has(f.toUpperCase())&&(t=(0,o.default)({},t,{headers:(0,o.default)({},t.headers,{'X-HTTP-Method-Override':f,'Content-Type':'application/json'}),method:'POST'})),v(t,v)};e.default=v},1048,[1,43]); +__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var u=r(d[0]);var l=function(l,t){return'string'!=typeof l.url||(0,u.hasQueryArg)(l.url,'_locale')||(l.url=(0,u.addQueryArgs)(l.url,{_locale:'user'})),'string'!=typeof l.path||(0,u.hasQueryArg)(l.path,'_locale')||(l.path=(0,u.addQueryArgs)(l.path,{_locale:'user'})),t(l,t)};e.default=l},1049,[1032]); +__d(function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.isRequestingEmbedPreview=function(t,n){return l('getEmbedPreview',n)},e.getAuthors=function(t){return v(t,'authors')},e.getEntitiesByKind=function(t,n){return(0,u.filter)(t.entities.config,{kind:n})},e.getEntity=function(t,n,s){return(0,u.find)(t.entities.config,{kind:n,name:s})},e.getEntityRecord=function(t,n,s,o){return(0,u.get)(t.entities.data,[n,s,'items',o])},e.getEntityRecords=function(t,n,s,o){var c=(0,u.get)(t.entities.data,[n,s]);if(!c)return[];return(0,f.getQueriedItems)(c,o)},e.getThemeSupports=function(t){return t.themeSupports},e.getEmbedPreview=function(t,n){return t.embedPreviews[n]},e.isPreviewEmbedFallback=function(t,n){var u=t.embedPreviews[n],s=''+n+'';if(!u)return!1;return u.html===s},e.hasUploadPermissions=function(t){return(0,o.default)("select( 'core' ).hasUploadPermissions()",{alternative:"select( 'core' ).canUser( 'create', 'media' )"}),(0,u.defaultTo)(E(t,'create','media'),!0)},e.canUser=E,e.getUserQueryResults=void 0;var n=t(r(d[1])),u=r(d[2]),s=r(d[3]),o=t(r(d[4])),c=r(d[5]),f=r(d[6]);function l(t){for(var n=arguments.length,u=new Array(n>1?n-1:0),o=1;o1&&void 0!==arguments[1]?arguments[1]:{},c=l.version,u=l.alternative,v=l.plugin,s=l.link,f=l.hint,p=o+" is deprecated and will be removed"+(c?(v?" from "+v:'')+" in "+c:'')+"."+(u?" Please use "+u+" instead.":'')+(s?" See: "+s:'')+(f?" Note: "+f:'');if(p in t)return;(0,n.doAction)('deprecated',o,l,p),console.warn(p),t[p]=!0},e.logged=void 0;var n=r(d[0]),t=Object.create(null);e.logged=t},1051,[894]); +__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.REDUCER_KEY=void 0;e.REDUCER_KEY='core'},1052,[]); +__d(function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.getAuthors=y,e.getEntityRecord=P,e.getEntityRecords=T,e.getThemeSupports=U,e.getEmbedPreview=R,e.hasUploadPermissions=_,e.canUser=F;var n=t(r(d[1])),s=t(r(d[2])),c=r(d[3]),u=r(d[4]),o=t(r(d[5])),p=r(d[6]),h=r(d[7]),f=r(d[8]),v=s.default.mark(y),l=s.default.mark(P),x=s.default.mark(T),w=s.default.mark(U),E=s.default.mark(R),b=s.default.mark(_),k=s.default.mark(F);function y(){var t;return s.default.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,(0,f.apiFetch)({path:'/wp/v2/users/?who=authors&per_page=-1'});case 2:return t=n.sent,n.next=5,(0,p.receiveUserQuery)('authors',t);case 5:case"end":return n.stop()}},v,this)}function P(t,n,u){var o,v,x;return s.default.wrap(function(s){for(;;)switch(s.prev=s.next){case 0:return s.next=2,(0,h.getKindEntities)(t);case 2:if(o=s.sent,v=(0,c.find)(o,{kind:t,name:n})){s.next=6;break}return s.abrupt("return");case 6:return s.next=8,(0,f.apiFetch)({path:v.baseURL+"/"+u+"?context=edit"});case 8:return x=s.sent,s.next=11,(0,p.receiveEntityRecords)(t,n,x);case 11:case"end":return s.stop()}},l,this)}function T(t,o){var v,l,w,E,b,k=arguments;return s.default.wrap(function(s){for(;;)switch(s.prev=s.next){case 0:return v=k.length>2&&void 0!==k[2]?k[2]:{},s.next=3,(0,h.getKindEntities)(t);case 3:if(l=s.sent,w=(0,c.find)(l,{kind:t,name:o})){s.next=7;break}return s.abrupt("return");case 7:return E=(0,u.addQueryArgs)(w.baseURL,(0,n.default)({},v,{context:'edit'})),s.next=10,(0,f.apiFetch)({path:E});case 10:return b=s.sent,s.next=13,(0,p.receiveEntityRecords)(t,o,Object.values(b),v);case 13:case"end":return s.stop()}},x,this)}function U(){var t;return s.default.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,(0,f.apiFetch)({path:'/wp/v2/themes?status=active'});case 2:return t=n.sent,n.next=5,(0,p.receiveThemeSupports)(t[0].theme_supports);case 5:case"end":return n.stop()}},w,this)}function R(t){var n;return s.default.wrap(function(s){for(;;)switch(s.prev=s.next){case 0:return s.prev=0,s.next=3,(0,f.apiFetch)({path:(0,u.addQueryArgs)('/oembed/1.0/proxy',{url:t})});case 3:return n=s.sent,s.next=6,(0,p.receiveEmbedPreview)(t,n);case 6:s.next=12;break;case 8:return s.prev=8,s.t0=s.catch(0),s.next=12,(0,p.receiveEmbedPreview)(t,!1);case 12:case"end":return s.stop()}},E,this,[[0,8]])}function _(){return s.default.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return(0,o.default)("select( 'core' ).hasUploadPermissions()",{alternative:"select( 'core' ).canUser( 'create', 'media' )"}),t.delegateYield(F('create','media'),"t0",2);case 2:case"end":return t.stop()}},b,this)}function F(t,n,u){var o,h,v,l,x,w;return s.default.wrap(function(s){for(;;)switch(s.prev=s.next){case 0:if(o={create:'POST',read:'GET',update:'PUT',delete:'DELETE'}[t]){s.next=4;break}throw new Error("'"+t+"' is not a valid action.");case 4:return h=u?"/wp/v2/"+n+"/"+u:"/wp/v2/"+n,s.prev=5,s.next=8,(0,f.apiFetch)({path:h,method:u?'GET':'OPTIONS',parse:!1});case 8:v=s.sent,s.next=14;break;case 11:return s.prev=11,s.t0=s.catch(5),s.abrupt("return");case 14:return l=(0,c.hasIn)(v,['headers','get'])?v.headers.get('allow'):(0,c.get)(v,['headers','Allow'],''),x=(0,c.compact)([t,n,u]).join('/'),w=(0,c.includes)(l,o),s.next=19,(0,p.receiveUserPermission)(x,w);case 19:case"end":return s.stop()}},k,this,[[5,11]])}T.shouldInvalidate=function(t,n,s){return'RECEIVE_ITEMS'===t.type&&t.invalidateCache&&n===t.kind&&s===t.name}},1053,[1,43,129,332,1032,1051,1040,1039,1041]); +__d(function(g,r,i,a,m,e,d){var t=r(d[0]),o=r(d[1]);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var s=r(d[2]),u=o(r(d[3])),c=o(r(d[4])),f=t(r(d[5])),l=t(r(d[6])),n=(0,s.registerStore)('core/editor',{reducer:u.default,selectors:f,actions:l,persist:['preferences']});(0,c.default)(n);var v=n;e.default=v},1054,[329,1,809,1055,1063,1068,1067]); +__d(function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.getPostRawValue=C,e.hasSameKeys=b,e.isUpdatingSameBlockAttribute=k,e.isUpdatingSamePostProperty=y,e.shouldOverwriteState=K,e.initialEdits=w,e.currentPost=V,e.isTyping=M,e.isCaretWithinFormattedText=N,e.blockSelection=F,e.blocksMode=x,e.insertionPoint=G,e.template=q,e.settings=H,e.preferences=Q,e.saving=W,e.postLock=X,e.postSavingLock=Y,e.autosave=J,e.previewLink=Z,e.default=e.blockListSettings=e.reusableBlocks=e.editor=void 0;var n=t(r(d[1])),u=t(r(d[2])),l=t(r(d[3])),s=t(r(d[4])),o=t(r(d[5])),c=t(r(d[6])),E=t(r(d[7])),f=r(d[8]),S=r(d[9]),T=r(d[10]),_=r(d[11]),v=t(r(d[12])),I=t(r(d[13])),O=r(d[14]),L=r(d[15]),h=r(d[16]);function C(t){return t&&'object'==typeof t&&'raw'in t?t.raw:t}function p(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:'',u=(0,c.default)({},n,[]);return t.forEach(function(t){var l=t.clientId,s=t.innerBlocks;u[n].push(l),(0,o.default)(u,p(s,l))}),u}function P(t,n){for(var u={},o=(0,s.default)(t);o.length;){var c=o.shift(),E=c.innerBlocks,f=(0,l.default)(c,["innerBlocks"]);o.push.apply(o,(0,s.default)(E)),u[f.clientId]=n(f)}return u}function R(t){return P(t,function(t){return(0,f.omit)(t,'attributes')})}function A(t){return P(t,function(t){return t.attributes})}function B(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:'';return(0,f.reduce)(t[n],function(n,u){return(0,s.default)(n).concat([u],(0,s.default)(B(t,u)))},[])}function U(t,n){return t===n?(0,u.default)({},t):n}function b(t,n){return(0,f.isEqual)((0,f.keys)(t),(0,f.keys)(n))}function k(t,n){return'UPDATE_BLOCK_ATTRIBUTES'===t.type&&t.clientId===n.clientId&&b(t.attributes,n.attributes)}function y(t,n){return'EDIT_POST'===t.type&&b(t.edits,n.edits)}function K(t,n){return!(!n||t.type!==n.type)&&(0,f.overSome)([k,y])(t,n)}var D=(0,f.flow)([T.combineReducers,function(t){return function(n,l){if(n&&'REMOVE_BLOCKS'===l.type){for(var o=(0,s.default)(l.clientIds),c=0;c0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;switch(n.type){case'EDIT_POST':return(0,f.reduce)(n.edits,function(n,l,s){return l!==t[s]&&(n=U(t,n),h.EDIT_MERGE_PROPERTIES.has(s)?n[s]=(0,u.default)({},n[s],l):n[s]=l),n},t);case'RESET_BLOCKS':return'content'in t?(0,f.omit)(t,'content'):t;case'UPDATE_POST':case'RESET_POST':var l='UPDATE_POST'===n.type?function(t){return n.edits[t]}:function(t){return C(n.post[t])};return(0,f.reduce)(t,function(n,u,s){return(0,f.isEqual)(u,l(s))?(delete(n=U(t,n))[s],n):n},t)}return t},blocks:(0,f.flow)([T.combineReducers,function(t){return function(n,l){if(n&&'RESET_BLOCKS'===l.type){var s=B(n.order);return(0,u.default)({},n,{byClientId:(0,u.default)({},(0,f.omit)(n.byClientId,s),R(l.blocks)),attributes:(0,u.default)({},(0,f.omit)(n.attributes,s),A(l.blocks)),order:(0,u.default)({},(0,f.omit)(n.order,s),p(l.blocks))})}return t(n,l)}},function(t){return function(n,l){if(n&&'SAVE_REUSABLE_BLOCK_SUCCESS'===l.type){var s=l.id,o=l.updatedId;if(s===o)return n;(n=(0,u.default)({},n)).attributes=(0,f.mapValues)(n.attributes,function(t,l){return'core/block'===n.byClientId[l].name&&t.ref===s?(0,u.default)({},t,{ref:o}):t})}return t(n,l)}},(0,I.default)({resetTypes:['SETUP_EDITOR_STATE','REQUEST_POST_UPDATE_START'],ignoreTypes:['RECEIVE_BLOCKS','RESET_POST','UPDATE_POST']})])({byClientId:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;switch(n.type){case'SETUP_EDITOR_STATE':return R(n.blocks);case'RECEIVE_BLOCKS':return(0,u.default)({},t,R(n.blocks));case'UPDATE_BLOCK':if(!t[n.clientId])return t;var l=(0,f.omit)(n.updates,'attributes');return(0,f.isEmpty)(l)?t:(0,u.default)({},t,(0,c.default)({},n.clientId,(0,u.default)({},t[n.clientId],l)));case'INSERT_BLOCKS':return(0,u.default)({},t,R(n.blocks));case'REPLACE_BLOCKS':return n.blocks?(0,u.default)({},(0,f.omit)(t,n.clientIds),R(n.blocks)):t;case'REMOVE_BLOCKS':return(0,f.omit)(t,n.clientIds)}return t},attributes:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;switch(n.type){case'SETUP_EDITOR_STATE':return A(n.blocks);case'RECEIVE_BLOCKS':return(0,u.default)({},t,A(n.blocks));case'UPDATE_BLOCK':return t[n.clientId]&&n.updates.attributes?(0,u.default)({},t,(0,c.default)({},n.clientId,(0,u.default)({},t[n.clientId],n.updates.attributes))):t;case'UPDATE_BLOCK_ATTRIBUTES':if(!t[n.clientId])return t;var l=(0,f.reduce)(n.attributes,function(u,l,s){return l!==u[s]&&((u=U(t[n.clientId],u))[s]=l),u},t[n.clientId]);return l===t[n.clientId]?t:(0,u.default)({},t,(0,c.default)({},n.clientId,l));case'INSERT_BLOCKS':return(0,u.default)({},t,A(n.blocks));case'REPLACE_BLOCKS':return n.blocks?(0,u.default)({},(0,f.omit)(t,n.clientIds),A(n.blocks)):t;case'REMOVE_BLOCKS':return(0,f.omit)(t,n.clientIds)}return t},order:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;switch(n.type){case'SETUP_EDITOR_STATE':return p(n.blocks);case'RECEIVE_BLOCKS':return(0,u.default)({},t,(0,f.omit)(p(n.blocks),''));case'INSERT_BLOCKS':var l=n.rootClientId,o=void 0===l?'':l,E=n.blocks,S=t[o]||[],T=p(E,o),_=n.index,v=void 0===_?S.length:_;return(0,u.default)({},t,T,(0,c.default)({},o,(0,L.insertAt)(S,T[o],v)));case'MOVE_BLOCK_TO_POSITION':var I,O=n.fromRootClientId,h=void 0===O?'':O,C=n.toRootClientId,P=void 0===C?'':C,R=n.clientId,A=n.index,B=void 0===A?t[P].length:A;if(h===P){var U=t[P].indexOf(R);return(0,u.default)({},t,(0,c.default)({},P,(0,L.moveTo)(t[P],U,B)))}return(0,u.default)({},t,(I={},(0,c.default)(I,h,(0,f.without)(t[h],R)),(0,c.default)(I,P,(0,L.insertAt)(t[P],R,B)),I));case'MOVE_BLOCKS_UP':var b=n.clientIds,k=n.rootClientId,y=void 0===k?'':k,K=(0,f.first)(b),D=t[y];if(!D.length||K===(0,f.first)(D))return t;var w=D.indexOf(K);return(0,u.default)({},t,(0,c.default)({},y,(0,L.moveTo)(D,w,w-1,b.length)));case'MOVE_BLOCKS_DOWN':var V=n.clientIds,M=n.rootClientId,N=void 0===M?'':M,F=(0,f.first)(V),x=(0,f.last)(V),G=t[N];if(!G.length||x===(0,f.last)(G))return t;var q=G.indexOf(F);return(0,u.default)({},t,(0,c.default)({},N,(0,L.moveTo)(G,q,q+1,V.length)));case'REPLACE_BLOCKS':var H=n.blocks,Q=n.clientIds;if(!H)return t;var W=p(H);return(0,f.flow)([function(t){return(0,f.omit)(t,Q)},function(t){return(0,u.default)({},t,(0,f.omit)(W,''))},function(t){return(0,f.mapValues)(t,function(t){return(0,f.reduce)(t,function(t,n){return n===Q[0]?(0,s.default)(t).concat((0,s.default)(W[''])):(-1===Q.indexOf(n)&&t.push(n),t)},[])})}])(t);case'REMOVE_BLOCKS':return(0,f.flow)([function(t){return(0,f.omit)(t,n.clientIds)},function(t){return(0,f.mapValues)(t,function(t){return f.without.apply(void 0,[t].concat((0,s.default)(n.clientIds)))})}])(t)}return t}})});function w(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:O.INITIAL_EDITS_DEFAULTS,n=arguments.length>1?arguments[1]:void 0;switch(n.type){case'SETUP_EDITOR':if(!n.edits)break;return n.edits;case'SETUP_EDITOR_STATE':return'content'in t?(0,f.omit)(t,'content'):t;case'UPDATE_POST':return(0,f.reduce)(n.edits,function(n,u,l){return n.hasOwnProperty(l)?(delete(n=U(t,n))[l],n):n},t);case'RESET_POST':return O.INITIAL_EDITS_DEFAULTS}return t}function V(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;switch(n.type){case'SETUP_EDITOR_STATE':case'RESET_POST':case'UPDATE_POST':var l;if(n.post)l=n.post;else{if(!n.edits)return t;l=(0,u.default)({},t,n.edits)}return(0,f.mapValues)(l,C)}return t}function M(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];switch((arguments.length>1?arguments[1]:void 0).type){case'START_TYPING':return!0;case'STOP_TYPING':return!1}return t}function N(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];switch((arguments.length>1?arguments[1]:void 0).type){case'ENTER_FORMATTED_TEXT':return!0;case'EXIT_FORMATTED_TEXT':return!1}return t}function F(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{start:null,end:null,isMultiSelecting:!1,isEnabled:!0,initialPosition:null},n=arguments.length>1?arguments[1]:void 0;switch(n.type){case'CLEAR_SELECTED_BLOCK':return null!==t.start||null!==t.end||t.isMultiSelecting?(0,u.default)({},t,{start:null,end:null,isMultiSelecting:!1,initialPosition:null}):t;case'START_MULTI_SELECT':return t.isMultiSelecting?t:(0,u.default)({},t,{isMultiSelecting:!0,initialPosition:null});case'STOP_MULTI_SELECT':return t.isMultiSelecting?(0,u.default)({},t,{isMultiSelecting:!1,initialPosition:null}):t;case'MULTI_SELECT':return(0,u.default)({},t,{start:n.start,end:n.end,initialPosition:null});case'SELECT_BLOCK':return n.clientId===t.start&&n.clientId===t.end?t:(0,u.default)({},t,{start:n.clientId,end:n.clientId,initialPosition:n.initialPosition});case'INSERT_BLOCKS':return n.updateSelection?(0,u.default)({},t,{start:n.blocks[0].clientId,end:n.blocks[0].clientId,initialPosition:null,isMultiSelecting:!1}):t;case'REMOVE_BLOCKS':return n.clientIds&&n.clientIds.length&&-1!==n.clientIds.indexOf(t.start)?(0,u.default)({},t,{start:null,end:null,initialPosition:null,isMultiSelecting:!1}):t;case'REPLACE_BLOCKS':if(-1===n.clientIds.indexOf(t.start))return t;var l=(0,f.get)(n.blocks,[0,'clientId'],null);return l===t.start&&l===t.end?t:(0,u.default)({},t,{start:l,end:l,initialPosition:null,isMultiSelecting:!1});case'TOGGLE_SELECTION':return(0,u.default)({},t,{isEnabled:n.isSelectionEnabled})}return t}function x(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;if('TOGGLE_BLOCK_MODE'===n.type){var l=n.clientId;return(0,u.default)({},t,(0,c.default)({},l,t[l]&&'html'===t[l]?'visual':'html'))}return t}function G(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n=arguments.length>1?arguments[1]:void 0;switch(n.type){case'SHOW_INSERTION_POINT':return{rootClientId:n.rootClientId,index:n.index};case'HIDE_INSERTION_POINT':return null}return t}function q(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{isValid:!0},n=arguments.length>1?arguments[1]:void 0;switch(n.type){case'SET_TEMPLATE_VALIDITY':return(0,u.default)({},t,{isValid:n.isValid})}return t}function H(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:O.EDITOR_SETTINGS_DEFAULTS,n=arguments.length>1?arguments[1]:void 0;switch(n.type){case'UPDATE_EDITOR_SETTINGS':return(0,u.default)({},t,n.settings)}return t}function Q(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:O.PREFERENCES_DEFAULTS,n=arguments.length>1?arguments[1]:void 0;switch(n.type){case'INSERT_BLOCKS':case'REPLACE_BLOCKS':return n.blocks.reduce(function(t,l){var s=l.name,o={name:l.name};return(0,S.isReusableBlock)(l)&&(o.ref=l.attributes.ref,s+='/'+l.attributes.ref),(0,u.default)({},t,{insertUsage:(0,u.default)({},t.insertUsage,(0,c.default)({},s,{time:n.time,count:t.insertUsage[s]?t.insertUsage[s].count+1:1,insert:o}))})},t);case'REMOVE_REUSABLE_BLOCK':return(0,u.default)({},t,{insertUsage:(0,f.omitBy)(t.insertUsage,function(t){return t.insert.ref===n.id})});case'ENABLE_PUBLISH_SIDEBAR':return(0,u.default)({},t,{isPublishSidebarEnabled:!0});case'DISABLE_PUBLISH_SIDEBAR':return(0,u.default)({},t,{isPublishSidebarEnabled:!1})}return t}function W(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;switch(n.type){case'REQUEST_POST_UPDATE_START':return{requesting:!0,successful:!1,error:null,options:n.options||{}};case'REQUEST_POST_UPDATE_SUCCESS':return{requesting:!1,successful:!0,error:null,options:n.options||{}};case'REQUEST_POST_UPDATE_FAILURE':return{requesting:!1,successful:!1,error:n.error,options:n.options||{}}}return t}function X(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{isLocked:!1},n=arguments.length>1?arguments[1]:void 0;switch(n.type){case'UPDATE_POST_LOCK':return n.lock}return t}function Y(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;switch(n.type){case'LOCK_POST_SAVING':return(0,u.default)({},t,(0,c.default)({},n.lockName,!0));case'UNLOCK_POST_SAVING':return(0,f.omit)(t,n.lockName)}return t}e.editor=D;var j=(0,T.combineReducers)({data:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;switch(n.type){case'RECEIVE_REUSABLE_BLOCKS':return(0,f.reduce)(n.results,function(n,u){var l=u.reusableBlock,s=l.id,o=l.title,c={clientId:u.parsedBlock.clientId,title:o};return(0,f.isEqual)(n[s],c)||((n=U(t,n))[s]=c),n},t);case'UPDATE_REUSABLE_BLOCK_TITLE':var l=n.id,s=n.title;return t[l]&&t[l].title!==s?(0,u.default)({},t,(0,c.default)({},l,(0,u.default)({},t[l],{title:s}))):t;case'SAVE_REUSABLE_BLOCK_SUCCESS':var o=n.id,E=n.updatedId;if(o===E)return t;var S=t[o];return(0,u.default)({},(0,f.omit)(t,o),(0,c.default)({},E,S));case'REMOVE_REUSABLE_BLOCK':var T=n.id;return(0,f.omit)(t,T)}return t},isFetching:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;switch(n.type){case'FETCH_REUSABLE_BLOCKS':var l=n.id;return l?(0,u.default)({},t,(0,c.default)({},l,!0)):t;case'FETCH_REUSABLE_BLOCKS_SUCCESS':case'FETCH_REUSABLE_BLOCKS_FAILURE':var s=n.id;return(0,f.omit)(t,s)}return t},isSaving:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;switch(n.type){case'SAVE_REUSABLE_BLOCK':return(0,u.default)({},t,(0,c.default)({},n.id,!0));case'SAVE_REUSABLE_BLOCK_SUCCESS':case'SAVE_REUSABLE_BLOCK_FAILURE':var l=n.id;return(0,f.omit)(t,l)}return t}});e.reusableBlocks=j;var z=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;switch(n.type){case'REPLACE_BLOCKS':case'REMOVE_BLOCKS':return(0,f.omit)(t,n.clientIds);case'UPDATE_BLOCK_LIST_SETTINGS':var l=n.clientId;return n.settings?(0,f.isEqual)(t[l],n.settings)?t:(0,u.default)({},t,(0,c.default)({},l,n.settings)):t.hasOwnProperty(l)?(0,f.omit)(t,l):t}return t};function J(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,u=arguments.length>1?arguments[1]:void 0;switch(u.type){case'RESET_AUTOSAVE':var l=u.post,s=['title','excerpt','content'].map(function(t){return C(l[t])}),o=(0,n.default)(s,3);return{title:o[0],excerpt:o[1],content:o[2]}}return t}function Z(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n=arguments.length>1?arguments[1]:void 0;switch(n.type){case'REQUEST_POST_UPDATE_SUCCESS':return n.post.preview_link?n.post.preview_link:n.post.link?(0,_.addQueryArgs)(n.post.link,{preview:!0}):t;case'REQUEST_POST_UPDATE_START':if(t&&n.options.isPreview)return null}return t}e.blockListSettings=z;var $=(0,E.default)((0,T.combineReducers)({editor:D,initialEdits:w,currentPost:V,isTyping:M,isCaretWithinFormattedText:N,blockSelection:F,blocksMode:x,blockListSettings:z,insertionPoint:G,preferences:Q,saving:W,postLock:X,reusableBlocks:j,template:q,autosave:J,previewLink:Z,settings:H,postSavingLock:Y}));e.default=$},1055,[1,9,43,6,15,8,44,1056,332,807,809,1032,1058,1059,1060,1061,1062]); +__d(function(g,r,i,a,m,e,d){m.exports=r(d[0])},1056,[1057]); +__d(function(g,r,i,a,m,e,d){'use strict';var t=Object.assign||function(t){for(var o=1;o=0||Object.prototype.hasOwnProperty.call(t,s)&&(n[s]=t[s]);return n}var n='BEGIN',s='COMMIT',c='REVERT',p=[];function u(t,o){return t.optimist&&t.optimist.id===o}function f(t,o){if(!t||'object'!=typeof t||Array.isArray(t))throw new TypeError('Error while handling "'+o.type+'": Optimist requires that state is always a plain object.')}function h(t){if(t){var n=t.optimist;return{optimist:void 0===n?p:n,innerState:o(t,['optimist'])}}return{optimist:p,innerState:t}}m.exports=function(o){function p(n,s){var c=h(n),p=c.optimist,u=c.innerState;return p=p.concat([{beforeState:u,action:s}]),f(u=o(u,s),s),t({optimist:p},u)}function b(t,o){var n=h(t),s=n.optimist,c=n.innerState,p=[],f=!1,b=!1;return s.forEach(function(t){f?t.beforeState&&u(t.action,o.optimist.id)?(b=!0,p.push({action:t.action})):p.push(t):t.beforeState&&!u(t.action,o.optimist.id)?(f=!0,p.push(t)):t.beforeState&&u(t.action,o.optimist.id)&&(b=!0)}),b||console.error('Cannot commit transaction with id "'+o.optimist.id+'" because it does not exist'),S(s=p,c,o)}function v(t,n){var s=h(t),c=s.optimist,p=s.innerState,b=[],v=!1,l=!1,y=p;return c.forEach(function(t){t.beforeState&&u(t.action,n.optimist.id)&&(y=t.beforeState,l=!0),u(t.action,n.optimist.id)||(t.beforeState&&(v=!0),v&&(l&&t.beforeState?b.push({beforeState:y,action:t.action}):b.push(t)),l&&(y=o(y,t.action),f(p,n)))}),l||console.error('Cannot revert transaction with id "'+n.optimist.id+'" because it does not exist'),S(c=b,y,n)}function S(n,s,c){return n.length&&(n=n.concat([{action:c}])),f(s=o(s,c),c),t({optimist:n},s)}return function(u,l){if(l.optimist)switch(l.optimist.type){case n:return p(u,l);case s:return b(u,l);case c:return v(u,l)}var y=h(u),E=y.optimist,w=y.innerState;if(u&&!E.length){var O=o(w,l);return O===w?u:(f(O,l),t({optimist:E},O))}return S(E,w,l)}},m.exports.BEGIN=n,m.exports.COMMIT=s,m.exports.REVERT=c},1057,[]); +__d(function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=t(r(d[1])),u=t(r(d[2])),l=r(d[3]),o={resetTypes:[],ignoreTypes:[],shouldOverwriteState:function(){return!1}},s=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return function(s){(t=(0,u.default)({},o,t)).shouldOverwriteState=(0,l.overSome)([t.shouldOverwriteState,function(n){return(0,l.includes)(t.ignoreTypes,n.type)}]);var c={past:[],present:s(void 0,{}),future:[],lastAction:null,shouldCreateUndoLevel:!1},v=t,f=v.resetTypes,p=void 0===f?[]:f,h=v.shouldOverwriteState,L=void 0===h?function(){return!1}:h;return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:c,o=arguments.length>1?arguments[1]:void 0,v=t.past,f=t.present,h=t.future,U=t.lastAction,y=t.shouldCreateUndoLevel,A=U;switch(o.type){case'UNDO':return v.length?{past:(0,l.dropRight)(v),present:(0,l.last)(v),future:[f].concat((0,n.default)(h)),lastAction:null,shouldCreateUndoLevel:!1}:t;case'REDO':return h.length?{past:(0,n.default)(v).concat([f]),present:(0,l.first)(h),future:(0,l.drop)(h),lastAction:null,shouldCreateUndoLevel:!1}:t;case'CREATE_UNDO_LEVEL':return(0,u.default)({},t,{lastAction:null,shouldCreateUndoLevel:!0})}var C=s(f,o);if((0,l.includes)(p,o.type))return{past:[],present:C,future:[],lastAction:null,shouldCreateUndoLevel:!1};if(f===C)return t;var O=v,_=A;return!y&&v.length&&L(o,A)||(O=(0,n.default)(v).concat([f]),_=o),{past:O,present:C,future:[],shouldCreateUndoLevel:!1,lastAction:_}}}};e.default=s},1058,[1,15,43,332]); +__d(function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=t(r(d[1])),u=r(d[2]),o=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return function(o){return function(v,f){var l=o(v,f),s=void 0===v||(0,u.includes)(t.resetTypes,f.type),c=v!==l;if(!c&&!s)return v;c&&void 0!==v||(l=(0,n.default)({},l));var y=(0,u.includes)(t.ignoreTypes,f.type);return l.isDirty=y?v.isDirty:!s&&c,l}}};e.default=o},1059,[1,43,332]); +__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.INITIAL_EDITS_DEFAULTS=e.EDITOR_SETTINGS_DEFAULTS=e.PREFERENCES_DEFAULTS=void 0;var l=r(d[0]);e.PREFERENCES_DEFAULTS={insertUsage:{},isPublishSidebarEnabled:!0};var n={alignWide:!1,colors:[{name:(0,l.__)('Pale pink'),slug:'pale-pink',color:'#f78da7'},{name:(0,l.__)('Vivid red'),slug:'vivid-red',color:'#cf2e2e'},{name:(0,l.__)('Luminous vivid orange'),slug:'luminous-vivid-orange',color:'#ff6900'},{name:(0,l.__)('Luminous vivid amber'),slug:'luminous-vivid-amber',color:'#fcb900'},{name:(0,l.__)('Light green cyan'),slug:'light-green-cyan',color:'#7bdcb5'},{name:(0,l.__)('Vivid green cyan'),slug:'vivid-green-cyan',color:'#00d084'},{name:(0,l.__)('Pale cyan blue'),slug:'pale-cyan-blue',color:'#8ed1fc'},{name:(0,l.__)('Vivid cyan blue'),slug:'vivid-cyan-blue',color:'#0693e3'},{name:(0,l.__)('Very light gray'),slug:'very-light-gray',color:'#eeeeee'},{name:(0,l.__)('Cyan bluish gray'),slug:'cyan-bluish-gray',color:'#abb8c3'},{name:(0,l.__)('Very dark gray'),slug:'very-dark-gray',color:'#313131'}],fontSizes:[{name:(0,l._x)('Small','font size name'),size:13,slug:'small'},{name:(0,l._x)('Normal','font size name'),size:16,slug:'normal'},{name:(0,l._x)('Medium','font size name'),size:20,slug:'medium'},{name:(0,l._x)('Large','font size name'),size:36,slug:'large'},{name:(0,l._x)('Huge','font size name'),size:48,slug:'huge'}],imageSizes:[{slug:'thumbnail',label:(0,l.__)('Thumbnail')},{slug:'medium',label:(0,l.__)('Medium')},{slug:'large',label:(0,l.__)('Large')},{slug:'full',label:(0,l.__)('Full Size')}],maxWidth:580,allowedBlockTypes:!0,maxUploadFileSize:0,allowedMimeTypes:null,richEditingEnabled:!0};e.EDITOR_SETTINGS_DEFAULTS=n;e.INITIAL_EDITS_DEFAULTS={}},1060,[878]); +__d(function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.insertAt=l,e.moveTo=function(t,c,u){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1,f=(0,n.default)(t);return f.splice(c,o),l(f,t.slice(c,c+o),u)};var n=t(r(d[1])),c=r(d[2]);function l(t,l,u){return(0,n.default)(t.slice(0,u)).concat((0,n.default)((0,c.castArray)(l)),(0,n.default)(t.slice(u)))}},1061,[1,15,332]); +__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.EDIT_MERGE_PROPERTIES=void 0;var E=new Set(['meta']);e.EDIT_MERGE_PROPERTIES=E},1062,[]); +__d(function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=t(r(d[1])),o=t(r(d[2])),u=t(r(d[3])),l=r(d[4]),c=t(r(d[5]));var f=function(t){var f,p=[(0,o.default)(c.default),u.default],h=function(){throw new Error("Dispatching while constructing your middleware is not allowed. Other middleware would not be applied to this dispatch.")},s={getState:t.getState,dispatch:function(){return h.apply(void 0,arguments)}};return f=p.map(function(t){return t(s)}),h=l.flowRight.apply(void 0,(0,n.default)(f))(t.dispatch),t.dispatch=h,t};e.default=f},1063,[1,15,1064,1065,332,1066]); +__d(function(g,r,i,a,m,e,d){'use strict';function n(t,f){var c;if(Array.isArray(f))for(c=0;c1&&void 0!==arguments[1]?arguments[1]:null,clientId:t}},e.startMultiSelect=function(){return{type:'START_MULTI_SELECT'}},e.stopMultiSelect=function(){return{type:'STOP_MULTI_SELECT'}},e.multiSelect=function(t,n){return{type:'MULTI_SELECT',start:t,end:n}},e.clearSelectedBlock=function(){return{type:'CLEAR_SELECTED_BLOCK'}},e.toggleSelection=function(){return{type:'TOGGLE_SELECTION',isSelectionEnabled:!(arguments.length>0&&void 0!==arguments[0])||arguments[0]}},e.replaceBlocks=c,e.replaceBlock=function(t,n){return c(t,n)},e.moveBlockToPosition=function(t,n,o,u){return{type:'MOVE_BLOCK_TO_POSITION',fromRootClientId:n,toRootClientId:o,clientId:t,index:u}},e.insertBlock=_,e.insertBlocks=s,e.showInsertionPoint=function(t,n){return{type:'SHOW_INSERTION_POINT',rootClientId:t,index:n}},e.hideInsertionPoint=function(){return{type:'HIDE_INSERTION_POINT'}},e.setTemplateValidity=function(t){return{type:'SET_TEMPLATE_VALIDITY',isValid:t}},e.synchronizeTemplate=function(){return{type:'SYNCHRONIZE_TEMPLATE'}},e.editPost=function(t){return{type:'EDIT_POST',edits:t}},e.savePost=p,e.refreshPost=function(){return{type:'REFRESH_POST'}},e.trashPost=function(t,n){return{type:'TRASH_POST',postId:t,postType:n}},e.mergeBlocks=function(t,n){return{type:'MERGE_BLOCKS',blocks:[t,n]}},e.autosave=function(t){return p((0,n.default)({isAutosave:!0},t))},e.redo=function(){return{type:'REDO'}},e.undo=function(){return{type:'UNDO'}},e.createUndoLevel=function(){return{type:'CREATE_UNDO_LEVEL'}},e.removeBlocks=S,e.removeBlock=function(t,n){return S([t],n)},e.toggleBlockMode=function(t){return{type:'TOGGLE_BLOCK_MODE',clientId:t}},e.startTyping=function(){return{type:'START_TYPING'}},e.stopTyping=function(){return{type:'STOP_TYPING'}},e.enterFormattedText=function(){return{type:'ENTER_FORMATTED_TEXT'}},e.exitFormattedText=function(){return{type:'EXIT_FORMATTED_TEXT'}},e.updatePostLock=function(t){return{type:'UPDATE_POST_LOCK',lock:t}},e.__experimentalFetchReusableBlocks=function(t){return{type:'FETCH_REUSABLE_BLOCKS',id:t}},e.__experimentalReceiveReusableBlocks=function(t){return{type:'RECEIVE_REUSABLE_BLOCKS',results:t}},e.__experimentalSaveReusableBlock=function(t){return{type:'SAVE_REUSABLE_BLOCK',id:t}},e.__experimentalDeleteReusableBlock=function(t){return{type:'DELETE_REUSABLE_BLOCK',id:t}},e.__experimentalUpdateReusableBlockTitle=function(t,n){return{type:'UPDATE_REUSABLE_BLOCK_TITLE',id:t,title:n}},e.__experimentalConvertBlockToStatic=function(t){return{type:'CONVERT_BLOCK_TO_STATIC',clientId:t}},e.__experimentalConvertBlockToReusable=function(t){return{type:'CONVERT_BLOCK_TO_REUSABLE',clientIds:(0,o.castArray)(t)}},e.insertDefaultBlock=function(t,n,o){return _((0,u.createBlock)((0,u.getDefaultBlockName)(),t),o,n)},e.updateBlockListSettings=function(t,n){return{type:'UPDATE_BLOCK_LIST_SETTINGS',clientId:t,settings:n}},e.updateEditorSettings=function(t){return{type:'UPDATE_EDITOR_SETTINGS',settings:t}},e.enablePublishSidebar=function(){return{type:'ENABLE_PUBLISH_SIDEBAR'}},e.disablePublishSidebar=function(){return{type:'DISABLE_PUBLISH_SIDEBAR'}},e.lockPostSaving=function(t){return{type:'LOCK_POST_SAVING',lockName:t}},e.unlockPostSaving=function(t){return{type:'UNLOCK_POST_SAVING',lockName:t}},e.moveBlocksUp=e.moveBlocksDown=void 0;var n=t(r(d[1])),o=r(d[2]),u=r(d[3]);function c(t,n){return{type:'REPLACE_BLOCKS',clientIds:(0,o.castArray)(t),blocks:(0,o.castArray)(n),time:Date.now()}}function l(t){return function(n,u){return{clientIds:(0,o.castArray)(n),type:t,rootClientId:u}}}var E=l('MOVE_BLOCKS_DOWN');e.moveBlocksDown=E;var T=l('MOVE_BLOCKS_UP');function _(t,n,o){return s([t],n,o,!(arguments.length>3&&void 0!==arguments[3])||arguments[3])}function s(t,n,u){var c=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];return{type:'INSERT_BLOCKS',blocks:(0,o.castArray)(t),index:n,rootClientId:u,time:Date.now(),updateSelection:c}}function p(){return{type:'REQUEST_POST_UPDATE',options:arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}}}function S(t){var n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return{type:'REMOVE_BLOCKS',clientIds:(0,o.castArray)(t),selectPrevious:n}}e.moveBlocksUp=T},1067,[1,43,332,807]); +__d(function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.hasEditorUndo=function(t){return t.editor.past.length>0},e.hasEditorRedo=function(t){return t.editor.future.length>0},e.isEditedPostNew=P,e.hasChangedContent=y,e.isEditedPostDirty=E,e.isCleanNewPost=function(t){return!E(t)&&P(t)},e.getCurrentPost=C,e.getCurrentPostType=function(t){return t.currentPost.type},e.getCurrentPostId=function(t){return C(t).id||null},e.getCurrentPostRevisionsCount=function(t){return(0,l.get)(C(t),['_links','version-history',0,'count'],0)},e.getCurrentPostLastRevisionId=function(t){return(0,l.get)(C(t),['_links','predecessor-version',0,'id'],null)},e.getCurrentPostAttribute=L,e.getEditedPostAttribute=R,e.getAutosaveAttribute=function(t,n){if(!w(t))return null;var o=O(t);if(o.hasOwnProperty(n))return o[n]},e.getEditedPostVisibility=function(t){if('private'===R(t,'status'))return'private';if(R(t,'password'))return'password';return'public'},e.isCurrentPostPending=function(t){return'pending'===C(t).status},e.isCurrentPostPublished=D,e.isCurrentPostScheduled=function(t){return'future'===C(t).status&&!D(t)},e.isEditedPostPublishable=function(t){var n=C(t);return E(t)||-1===['publish','private','future'].indexOf(n.status)},e.isEditedPostSaveable=N,e.isEditedPostEmpty=A,e.isEditedPostAutosaveable=function(t){if(!N(t))return!1;if(!w(t))return!0;if(y(t))return!0;var n=O(t);return['title','excerpt'].some(function(o){return n[o]!==R(t,o)})},e.getAutosave=O,e.hasAutosave=w,e.isEditedPostBeingScheduled=function(t){var n=R(t,'date'),o=new Date(Number((0,f.getDate)(n))-S);return(0,f.isInTheFuture)(o)},e.isEditedPostDateFloating=function(t){var n=R(t,'date'),o=R(t,'modified'),u=R(t,'status');if('draft'===u||'auto-draft'===u||'pending'===u)return n===o;return!1},e.getBlockName=x,e.isBlockValid=function(t,n){var o=t.editor.present.blocks.byClientId[n];return!!o&&o.isValid},e.getBlockCount=function(t,n){return ie(t,n).length},e.getBlockSelectionStart=function(t){return t.blockSelection.start},e.getBlockSelectionEnd=function(t){return t.blockSelection.end},e.getSelectedBlockCount=function(t){var n=X(t).length;if(n)return n;return t.blockSelection.start?1:0},e.hasSelectedBlock=function(t){var n=t.blockSelection,o=n.start,u=n.end;return!!o&&o===u},e.getSelectedBlockClientId=z,e.getSelectedBlock=function(t){var n=z(t);return n?F(t,n):null},e.getAdjacentBlockClientId=K,e.getPreviousBlockClientId=function(t,n){return K(t,n,-1)},e.getNextBlockClientId=function(t,n){return K(t,n,1)},e.getSelectedBlocksInitialCaretPosition=function(t){var n=t.blockSelection,o=n.start,u=n.end;if(o!==u||!o)return null;return t.blockSelection.initialPosition},e.getFirstMultiSelectedBlockClientId=$,e.getLastMultiSelectedBlockClientId=ee,e.isFirstMultiSelectedBlock=function(t,n){return $(t)===n},e.isBlockMultiSelected=ne,e.getMultiSelectedBlocksStartClientId=function(t){var n=t.blockSelection,o=n.start,u=n.end;if(o===u)return null;return o||null},e.getMultiSelectedBlocksEndClientId=function(t){var n=t.blockSelection,o=n.start,u=n.end;if(o===u)return null;return u||null},e.getBlockOrder=ie,e.getBlockIndex=oe,e.isBlockSelected=ue,e.hasSelectedInnerBlock=function t(n,o){var u=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return(0,l.some)(ie(n,o),function(o){return ue(n,o)||ne(n,o)||u&&t(n,o,u)})},e.isBlockWithinSelection=function(t,n){if(!n)return!1;var o=X(t),u=o.indexOf(n);return u>-1&&u0},e.isPostLockTakeover=function(t){return t.postLock.isTakeover},e.getPostLockUser=function(t){return t.postLock.user},e.getActivePostLock=function(t){return t.postLock.activePostLock},e.canUserUseUnfilteredHTML=function(t){return(0,l.has)(C(t),['_links','wp:action-unfiltered-html'])},e.isPublishSidebarEnabled=function(t){if(t.preferences.hasOwnProperty('isPublishSidebarEnabled'))return t.preferences.isPublishSidebarEnabled;return v.PREFERENCES_DEFAULTS.isPublishSidebarEnabled},e.__experimentalGetReusableBlock=e.hasInserterItems=e.getInserterItems=e.canInsertBlockType=e.getEditedPostContent=e.isAncestorMultiSelected=e.getMultiSelectedBlocks=e.getMultiSelectedBlockClientIds=e.getBlockHierarchyRootClientId=e.getBlockRootClientId=e.getBlocksByClientId=e.getGlobalBlockCount=e.getClientIdsWithDescendants=e.getClientIdsOfDescendants=e.getBlocks=e.__unstableGetBlockWithoutInnerBlocks=e.getBlock=e.getBlockAttributes=e.getBlockDependantsCacheBust=e.getReferenceByDistinctEdits=e.getPostEdits=e.INSERTER_UTILITY_NONE=e.INSERTER_UTILITY_LOW=e.INSERTER_UTILITY_MEDIUM=e.INSERTER_UTILITY_HIGH=e.POST_UPDATE_TRANSACTION_ID=void 0;var n=t(r(d[1])),o=t(r(d[2])),u=t(r(d[3])),l=r(d[4]),s=t(r(d[5])),c=r(d[6]),f=r(d[7]),k=r(d[8]),p=r(d[9]),v=r(d[10]),b=r(d[11]),B='post-update';e.POST_UPDATE_TRANSACTION_ID=B;var I=/%(?:postname|pagename)%/;e.INSERTER_UTILITY_HIGH=3;e.INSERTER_UTILITY_MEDIUM=2;e.INSERTER_UTILITY_LOW=1;e.INSERTER_UTILITY_NONE=0;var S=6e4,h=[];function P(t){return'auto-draft'===C(t).status}function y(t){return t.editor.present.blocks.isDirty||'content'in t.editor.present.edits}function E(t){return!!y(t)||(Object.keys(t.editor.present.edits).length>0||Pe(t,E))}function C(t){return t.currentPost}var T=(0,s.default)(function(t){return(0,u.default)({},t.initialEdits,t.editor.present.edits)},function(t){return[t.editor.present.edits,t.initialEdits]});e.getPostEdits=T;var _=(0,s.default)(function(){return[]},function(t){return[t.editor]});function L(t,n){var o=C(t);if(o.hasOwnProperty(n))return o[n]}function R(t,n){switch(n){case'content':return ae(t)}var o=T(t);return o.hasOwnProperty(n)?b.EDIT_MERGE_PROPERTIES.has(n)?(0,u.default)({},L(t,n),o[n]):o[n]:L(t,n)}function D(t){var n=C(t);return-1!==['publish','private'].indexOf(n.status)||'future'===n.status&&!(0,f.isInTheFuture)(new Date(Number((0,f.getDate)(n.date))-S))}function N(t){return!se(t)&&(!!R(t,'title')||!!R(t,'excerpt')||!A(t))}function A(t){var n=ie(t);if(n.length&&!('content'in T(t))){if(n.length>1)return!1;var o=x(t,n[0]);if(o!==(0,c.getDefaultBlockName)()&&o!==(0,c.getFreeformContentHandlerName)())return!1}return!ae(t)}function O(t){return t.autosave}function w(t){return!!O(t)}e.getReferenceByDistinctEdits=_;var M=(0,s.default)(function(){return[]},function(t,n){return(0,l.map)(ie(t,n),function(n){return F(t,n)})});function x(t,n){var o=t.editor.present.blocks.byClientId[n];return o?o.name:null}e.getBlockDependantsCacheBust=M;var U=(0,s.default)(function(t,n){var o=t.editor.present.blocks.byClientId[n];if(!o)return null;var s=t.editor.present.blocks.attributes[n],f=(0,c.getBlockType)(o.name);return f&&(s=(0,l.reduce)(f.attributes,function(n,o,l){return'meta'===o.source&&(n===s&&(n=(0,u.default)({},n)),n[l]=G(t,o.meta)),n},s)),s},function(t,n){return[t.editor.present.blocks.byClientId[n],t.editor.present.blocks.attributes[n],t.editor.present.edits.meta,t.initialEdits.meta,t.currentPost.meta]});e.getBlockAttributes=U;var F=(0,s.default)(function(t,n){var o=t.editor.present.blocks.byClientId[n];return o?(0,u.default)({},o,{attributes:U(t,n),innerBlocks:H(t,n)}):null},function(t,n){return(0,o.default)(U.getDependants(t,n)).concat([M(t,n)])});e.getBlock=F;var W=(0,s.default)(function(t,n){var o=t.editor.present.blocks.byClientId[n];return o?(0,u.default)({},o,{attributes:U(t,n)}):null},function(t,n){return[t.editor.present.blocks.byClientId[n]].concat((0,o.default)(U.getDependants(t,n)))});function G(t,n){return(0,l.has)(t,['editor','present','edits','meta',n])?(0,l.get)(t,['editor','present','edits','meta',n]):(0,l.get)(t,['currentPost','meta',n])}e.__unstableGetBlockWithoutInnerBlocks=W;var H=(0,s.default)(function(t,n){return(0,l.map)(ie(t,n),function(n){return F(t,n)})},function(t){return[t.editor.present.blocks]});e.getBlocks=H;var Y=function t(n,u){return(0,l.flatMap)(u,function(u){var l=ie(n,u);return(0,o.default)(l).concat((0,o.default)(t(n,l)))})};e.getClientIdsOfDescendants=Y;var q=(0,s.default)(function(t){var n=ie(t);return(0,o.default)(n).concat((0,o.default)(Y(t,n)))},function(t){return[t.editor.present.blocks.order]});e.getClientIdsWithDescendants=q;var V=(0,s.default)(function(t,n){var o=q(t);return n?(0,l.reduce)(o,function(o,u){return t.editor.present.blocks.byClientId[u].name===n?o+1:o},0):o.length},function(t){return[t.editor.present.blocks.order,t.editor.present.blocks.byClientId]});e.getGlobalBlockCount=V;var j=(0,s.default)(function(t,n){return(0,l.map)((0,l.castArray)(n),function(n){return F(t,n)})},function(t){return[t.editor.present.edits.meta,t.initialEdits.meta,t.currentPost.meta,t.editor.present.blocks]});function z(t){var n=t.blockSelection,o=n.start,u=n.end;return o&&o===u&&t.editor.present.blocks.byClientId[o]?o:null}e.getBlocksByClientId=j;var Q=(0,s.default)(function(t,n){var o=t.editor.present.blocks.order;for(var u in o)if((0,l.includes)(o[u],n))return u;return null},function(t){return[t.editor.present.blocks.order]});e.getBlockRootClientId=Q;var J=(0,s.default)(function(t,n){for(var o=n,u=n;o;)o=Q(t,u=o);return u},function(t){return[t.editor.present.blocks.order]});function K(t,n){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;if(void 0===n&&(n=z(t)),void 0===n&&(n=o<0?$(t):ee(t)),!n)return null;var u=Q(t,n);if(null===u)return null;var l=t.editor.present.blocks.order[u],s=l.indexOf(n)+1*o;return s<0?null:s===l.length?null:l[s]}e.getBlockHierarchyRootClientId=J;var X=(0,s.default)(function(t){var n=t.blockSelection,o=n.start,u=n.end;if(o===u)return[];var l=Q(t,o);if(null===l)return[];var s=ie(t,l),c=s.indexOf(o),f=s.indexOf(u);return c>f?s.slice(f,c+1):s.slice(c,f+1)},function(t){return[t.editor.present.blocks.order,t.blockSelection.start,t.blockSelection.end]});e.getMultiSelectedBlockClientIds=X;var Z=(0,s.default)(function(t){var n=X(t);return n.length?n.map(function(n){return F(t,n)}):h},function(t){return(0,o.default)(X.getDependants(t)).concat([t.editor.present.blocks,t.editor.present.edits.meta,t.initialEdits.meta,t.currentPost.meta])});function $(t){return(0,l.first)(X(t))||null}function ee(t){return(0,l.last)(X(t))||null}e.getMultiSelectedBlocks=Z;var te=(0,s.default)(function(t,n,o){for(var u=o;n!==u&&u;)u=Q(t,u);return n===u},function(t){return[t.editor.present.blocks.order]});function ne(t,n){return-1!==X(t).indexOf(n)}var re=(0,s.default)(function(t,n){for(var o=n,u=!1;o&&!u;)u=ne(t,o=Q(t,o));return u},function(t){return[t.editor.present.blocks.order,t.blockSelection.start,t.blockSelection.end]});function ie(t,n){return t.editor.present.blocks.order[n||'']||h}function oe(t,n,o){return ie(t,o).indexOf(n)}function ue(t,n){var o=t.blockSelection,u=o.start;return u===o.end&&u===n}function le(t,n){if(!n)return t.settings.templateLock;var o=ye(t,n);return o?o.templateLock:null}function se(t){return t.saving.requesting}function ce(t){var n=H(t);return 1===n.length&&(0,c.isUnmodifiedDefaultBlock)(n[0])?[]:n}e.isAncestorMultiSelected=re;var ae=(0,s.default)(function(t){var n=T(t);if('content'in n)return n.content;var o=ce(t),u=(0,c.serialize)(o);return 1===o.length&&o[0].name===(0,c.getFreeformContentHandlerName)()?(0,k.removep)(u):u},function(t){return[t.editor.present.blocks,t.editor.present.edits.content,t.initialEdits.content]});e.getEditedPostContent=ae;var de=function(t,n){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,u=function(t,n){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return(0,l.isBoolean)(t)?t:(0,l.isArray)(t)?(0,l.includes)(t,n):o},s=(0,c.getBlockType)(n);if(!s)return!1;if(!u(Ee(t).allowedBlockTypes,n,!0))return!1;if(!!le(t,o))return!1;var f=ye(t,o),k=u((0,l.get)(f,['allowedBlocks']),n),p=u(s.parent,x(t,o));return null!==k&&null!==p?k||p:null!==k?k:null===p||p},fe=(0,s.default)(de,function(t,n,o){return[t.blockListSettings[o],t.editor.present.blocks.byClientId[o],t.settings.allowedBlockTypes,t.settings.templateLock]});function ke(t,n){return t.preferences.insertUsage[n]||null}e.canInsertBlockType=fe;var ge=function(t,n,o){return!!(0,c.hasBlockSupport)(n,'inserter',!0)&&de(t,n.name,o)},pe=function(t,n,o){if(!de(t,'core/block',o))return!1;var u=x(t,n.clientId);return!!u&&(!!(0,c.getBlockType)(u)&&(!!de(t,u,o)&&!te(t,n.clientId,o)))},ve=(0,s.default)(function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,u=function(t,n,o){return o?3:n>0?2:'common'===t?1:0},s=function(t,n){if(!t)return n;var o=Date.now()-t;switch(!0){case o<36e5:return 4*n;case o<864e5:return 2*n;case o<6048e5:return n/2;default:return n/4}},f=(0,c.getBlockTypes)().filter(function(o){return ge(t,o,n)}).map(function(n){var o=n.name,f=!1;(0,c.hasBlockSupport)(n.name,'multiple',!0)||(f=(0,l.some)(j(t,q(t)),{name:n.name}));var k=(0,l.isArray)(n.parent),p=ke(t,o)||{},v=p.time,b=p.count,B=void 0===b?0:b;return{id:o,name:n.name,initialAttributes:{},title:n.title,icon:n.icon,category:n.category,keywords:n.keywords,isDisabled:f,utility:u(n.category,B,k),frecency:s(v,B),hasChildBlocksWithInserterSupport:(0,c.hasChildBlocksWithInserterSupport)(n.name)}}),k=Be(t).filter(function(o){return pe(t,o,n)}).map(function(n){var o="core/block/"+n.id,l=x(t,n.clientId),f=(0,c.getBlockType)(l),k=ke(t,o)||{},p=k.time,v=k.count,b=void 0===v?0:v,B=u('reusable',b,!1),I=s(p,b);return{id:o,name:'core/block',initialAttributes:{ref:n.id},title:n.title,icon:f.icon,category:'reusable',keywords:[],isDisabled:!1,utility:B,frecency:I}});return(0,l.orderBy)((0,o.default)(f).concat((0,o.default)(k)),['utility','frecency'],['desc','desc'])},function(t,n){return[t.blockListSettings[n],t.editor.present.blocks.byClientId,t.editor.present.blocks.order,t.preferences.insertUsage,t.settings.allowedBlockTypes,t.settings.templateLock,t.reusableBlocks.data,(0,c.getBlockTypes)()]});e.getInserterItems=ve;var be=(0,s.default)(function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return!!(0,l.some)((0,c.getBlockTypes)(),function(o){return ge(t,o,n)})||(0,l.some)(Be(t),function(o){return pe(t,o,n)})},function(t,n){return[t.blockListSettings[n],t.editor.present.blocks.byClientId,t.settings.allowedBlockTypes,t.settings.templateLock,t.reusableBlocks.data,(0,c.getBlockTypes)()]});e.hasInserterItems=be;var me=(0,s.default)(function(t,n){var o=t.reusableBlocks.data[n];if(!o)return null;var l=isNaN(parseInt(n));return(0,u.default)({},o,{id:l?n:+n,isTemporary:l})},function(t,n){return[t.reusableBlocks.data[n]]});function Be(t){return(0,l.map)(t.reusableBlocks.data,function(n,o){return me(t,o)})}function Ie(t,n){var o=(0,l.find)(t.optimist,function(t){return t.beforeState&&(0,l.get)(t.action,['optimist','id'])===n});return o?o.beforeState:null}function Se(t){var n=R(t,'permalink_template');return I.test(n)}function he(t){var o=R(t,'permalink_template');if(!o)return null;var u=R(t,'slug')||R(t,'generated_slug'),l=o.split(I),s=(0,n.default)(l,2);return{prefix:s[0],postName:u,suffix:s[1]}}function Pe(t,n){var o=t.optimist;return!!o&&o.some(function(t){var o=t.beforeState;return o&&n(o)})}function ye(t,n){return t.blockListSettings[n]}function Ee(t){return t.settings}e.__experimentalGetReusableBlock=me},1068,[1,9,15,43,332,887,807,1069,910,1032,1060,1062]); +__d(function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.setSettings=function(t){o=t;var u=n.default.locale();n.default.updateLocale(t.l10n.locale,{parentLocale:u,months:t.l10n.months,monthsShort:t.l10n.monthsShort,weekdays:t.l10n.weekdays,weekdaysShort:t.l10n.weekdaysShort,meridiem:function(n,u,o){return n<12?o?t.l10n.meridiem.am:t.l10n.meridiem.AM:o?t.l10n.meridiem.pm:t.l10n.meridiem.PM},longDateFormat:{LT:t.formats.time,LTS:null,L:null,LL:t.formats.date,LLL:t.formats.datetime,LLLL:null},relativeTime:{future:t.l10n.relative.future,past:t.l10n.relative.past,s:'seconds',m:'a minute',mm:'%d minutes',h:'an hour',hh:'%d hours',d:'a day',dd:'%d days',M:'a month',MM:'%d months',y:'a year',yy:'%d years'}}),n.default.locale(u),s()},e.__experimentalGetSettings=function(){return o},e.format=c,e.date=function(t){var u=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Date,s=o.timezone.offset*f,l=(0,n.default)(u).utcOffset(s,!0);return c(t,l)},e.gmdate=function(t){var u=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Date,o=(0,n.default)(u).utc();return c(t,o)},e.dateI18n=function(t){var u=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Date,s=arguments.length>2&&void 0!==arguments[2]&&arguments[2]?0:o.timezone.offset*f,l=(0,n.default)(u).utcOffset(s,!0);return l.locale(o.l10n.locale),c(t,l)},e.isInTheFuture=function(t){var o=n.default.tz(u);return n.default.tz(t,u).isAfter(o)},e.getDate=function(t){if(!t)return n.default.tz(u).toDate();return n.default.tz(t,u).toDate()};var n=t(r(d[1]));r(d[2]),r(d[3]);var u='WP',o={l10n:{locale:'en_US',months:['January','February','March','April','May','June','July','August','September','October','November','December'],monthsShort:['Jan','Feb','Mar','Apr','May','Jun','Jul','Aug','Sep','Oct','Nov','Dec'],weekdays:['Sunday','Monday','Tuesday','Wednesday','Thursday','Friday','Saturday'],weekdaysShort:['Sun','Mon','Tue','Wed','Thu','Fri','Sat'],meridiem:{am:'am',pm:'pm',AM:'AM',PM:'PM'},relative:{future:' % s from now',past:'% s ago'}},formats:{time:'g: i a',date:'F j, Y',datetime:'F j, Y g: i a',datetimeAbbreviated:'M j, Y g: i a'},timezone:{offset:'0',string:''}};function s(){n.default.tz.add(n.default.tz.pack({name:u,abbrs:[u],untils:[null],offsets:[60*-o.timezone.offset||0]}))}var f=60,l={d:'DD',D:'ddd',j:'D',l:'dddd',N:'E',S:function(t){var n=t.format('D');return t.format('Do').replace(n,'')},w:'d',z:function(t){return''+parseInt(t.format('DDD'),10)-1},W:'W',F:'MMMM',m:'MM',M:'MMM',n:'M',t:function(t){return t.daysInMonth()},L:function(t){return t.isLeapYear()?'1':'0'},o:'GGGG',Y:'YYYY',y:'YY',a:'a',A:'A',B:function(t){var u=(0,n.default)(t).utcOffset(60),o=parseInt(u.format('s'),10),s=parseInt(u.format('m'),10),f=parseInt(u.format('H'),10);return parseInt((o+60*s+3600*f)/86.4,10)},g:'h',G:'H',h:'hh',H:'HH',i:'mm',s:'ss',u:'SSSSSS',v:'SSS',e:'zz',I:function(t){return t.isDST()?'1':'0'},O:'ZZ',P:'Z',T:'z',Z:function(t){var n=t.format('Z'),u='-'===n[0]?-1:1,o=n.substring(1).split(':');return u*(o[0]*f+o[1])*60},c:'YYYY-MM-DDTHH:mm:ssZ',r:'ddd, D MMM YYYY HH:mm:ss ZZ',U:'X'};function c(t){var u,o,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Date,f=[],c=(0,n.default)(s);for(u=0;u>>0,o=0;o0)for(s=0;s=0?s?'+':'':'-')+Math.pow(10,Math.max(0,u)).toString().substr(1)+o}var $=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|YYYYYY|YYYYY|YYYY|YY|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,J=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,q={},B={};function Q(t,n,s,o){var u=o;'string'==typeof o&&(u=function(){return this[o]()}),t&&(B[t]=u),n&&(B[n[0]]=function(){return z(u.apply(this,arguments),n[1],n[2])}),s&&(B[s]=function(){return this.localeData().ordinal(u.apply(this,arguments),t)})}function X(t){var n,s,o,u=t.match($);for(n=0,s=u.length;n=0&&J.test(t);)t=t.replace(J,o),J.lastIndex=0,s-=1;return t}var te=/\d/,ne=/\d\d/,se=/\d{3}/,ie=/\d{4}/,re=/[+-]?\d{6}/,ae=/\d\d?/,oe=/\d\d\d\d?/,ue=/\d\d\d\d\d\d?/,le=/\d{1,3}/,de=/\d{1,4}/,he=/[+-]?\d{1,6}/,ce=/\d+/,fe=/[+-]?\d+/,me=/Z|[+-]\d\d:?\d\d/gi,_e=/Z|[+-]\d\d(?::?\d\d)?/gi,ye=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,ge={};function ve(t,n,s){ge[t]=L(n)?n:function(t,o){return t&&s?s:n}}function pe(t,n){return y(ge,t)?ge[t](n._strict,n._locale):new RegExp(we(t.replace('\\','').replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(t,n,s,o,u){return n||s||o||u})))}function we(t){return t.replace(/[-\/\\^$*+?.()|[\]{}]/g,'\\$&')}var Me={};function Se(t,n){var s,o=n;for('string'==typeof t&&(t=[t]),c(n)&&(o=function(t,s){s[n]=b(t)}),s=0;s68?1900:2e3)};var Le,Ue=Ne('FullYear',!0);function Ne(t,n){return function(o){return null!=o?(Ve(this,t,o),s.updateOffset(this,n),this):Ge(this,t)}}function Ge(t,n){return t.isValid()?t._d['get'+(t._isUTC?'UTC':'')+n]():NaN}function Ve(t,n,s){t.isValid()&&!isNaN(s)&&('FullYear'===n&&Fe(t.year())&&1===t.month()&&29===t.date()?t._d['set'+(t._isUTC?'UTC':'')+n](s,t.month(),Ee(s,t.month())):t._d['set'+(t._isUTC?'UTC':'')+n](s))}function Ee(t,n){if(isNaN(t)||isNaN(n))return NaN;var s,o=(n%(s=12)+s)%s;return t+=(n-o)/12,1===o?Fe(t)?29:28:31-o%7%2}Le=Array.prototype.indexOf?Array.prototype.indexOf:function(t){var n;for(n=0;n=0&&isFinite(c.getFullYear())&&c.setFullYear(t),c}function Xe(t){var n=new Date(Date.UTC.apply(null,arguments));return t<100&&t>=0&&isFinite(n.getUTCFullYear())&&n.setUTCFullYear(t),n}function Ke(t,n,s){var o=7+n-s;return-((7+Xe(t,0,o).getUTCDay()-n)%7)+o-1}function et(t,n,s,o,u){var l,h,c=1+7*(n-1)+(7+s-o)%7+Ke(t,o,u);return c<=0?h=Ce(l=t-1)+c:c>Ce(t)?(l=t+1,h=c-Ce(t)):(l=t,h=c),{year:l,dayOfYear:h}}function tt(t,n,s){var o,u,l=Ke(t.year(),n,s),h=Math.floor((t.dayOfYear()-l-1)/7)+1;return h<1?o=h+nt(u=t.year()-1,n,s):h>nt(t.year(),n,s)?(o=h-nt(t.year(),n,s),u=t.year()+1):(u=t.year(),o=h),{week:o,year:u}}function nt(t,n,s){var o=Ke(t,n,s),u=Ke(t+1,n,s);return(Ce(t)-o+u)/7}Q('w',['ww',2],'wo','week'),Q('W',['WW',2],'Wo','isoWeek'),V('week','w'),V('isoWeek','W'),j('week',5),j('isoWeek',5),ve('w',ae),ve('ww',ae,ne),ve('W',ae),ve('WW',ae,ne),De(['w','ww','W','WW'],function(t,n,s,o){n[o.substr(0,1)]=b(t)});function st(t,n){return'string'!=typeof t?t:isNaN(t)?'number'==typeof(t=n.weekdaysParse(t))?t:null:parseInt(t,10)}function it(t,n){return'string'==typeof t?n.weekdaysParse(t)%7||7:isNaN(t)?null:t}Q('d',0,'do','day'),Q('dd',0,0,function(t){return this.localeData().weekdaysMin(this,t)}),Q('ddd',0,0,function(t){return this.localeData().weekdaysShort(this,t)}),Q('dddd',0,0,function(t){return this.localeData().weekdays(this,t)}),Q('e',0,0,'weekday'),Q('E',0,0,'isoWeekday'),V('day','d'),V('weekday','e'),V('isoWeekday','E'),j('day',11),j('weekday',11),j('isoWeekday',11),ve('d',ae),ve('e',ae),ve('E',ae),ve('dd',function(t,n){return n.weekdaysMinRegex(t)}),ve('ddd',function(t,n){return n.weekdaysShortRegex(t)}),ve('dddd',function(t,n){return n.weekdaysRegex(t)}),De(['dd','ddd','dddd'],function(t,n,s,o){var u=s._locale.weekdaysParse(t,o,s._strict);null!=u?n.d=u:w(s).invalidWeekday=t}),De(['d','e','E'],function(t,n,s,o){n[o]=b(t)});var rt='Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split('_');var at='Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_');var ot='Su_Mo_Tu_We_Th_Fr_Sa'.split('_');function ut(t,n,s){var o,u,l,h=t.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],o=0;o<7;++o)l=p([2e3,1]).day(o),this._minWeekdaysParse[o]=this.weekdaysMin(l,'').toLocaleLowerCase(),this._shortWeekdaysParse[o]=this.weekdaysShort(l,'').toLocaleLowerCase(),this._weekdaysParse[o]=this.weekdays(l,'').toLocaleLowerCase();return s?'dddd'===n?-1!==(u=Le.call(this._weekdaysParse,h))?u:null:'ddd'===n?-1!==(u=Le.call(this._shortWeekdaysParse,h))?u:null:-1!==(u=Le.call(this._minWeekdaysParse,h))?u:null:'dddd'===n?-1!==(u=Le.call(this._weekdaysParse,h))?u:-1!==(u=Le.call(this._shortWeekdaysParse,h))?u:-1!==(u=Le.call(this._minWeekdaysParse,h))?u:null:'ddd'===n?-1!==(u=Le.call(this._shortWeekdaysParse,h))?u:-1!==(u=Le.call(this._weekdaysParse,h))?u:-1!==(u=Le.call(this._minWeekdaysParse,h))?u:null:-1!==(u=Le.call(this._minWeekdaysParse,h))?u:-1!==(u=Le.call(this._weekdaysParse,h))?u:-1!==(u=Le.call(this._shortWeekdaysParse,h))?u:null}var lt=ye;var dt=ye;var ht=ye;function ct(){function t(t,n){return n.length-t.length}var n,s,o,u,l,h=[],c=[],f=[],_=[];for(n=0;n<7;n++)s=p([2e3,1]).day(n),o=this.weekdaysMin(s,''),u=this.weekdaysShort(s,''),l=this.weekdays(s,''),h.push(o),c.push(u),f.push(l),_.push(o),_.push(u),_.push(l);for(h.sort(t),c.sort(t),f.sort(t),_.sort(t),n=0;n<7;n++)c[n]=we(c[n]),f[n]=we(f[n]),_[n]=we(_[n]);this._weekdaysRegex=new RegExp('^('+_.join('|')+')','i'),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp('^('+f.join('|')+')','i'),this._weekdaysShortStrictRegex=new RegExp('^('+c.join('|')+')','i'),this._weekdaysMinStrictRegex=new RegExp('^('+h.join('|')+')','i')}function ft(){return this.hours()%12||12}function mt(t,n){Q(t,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),n)})}function _t(t,n){return n._meridiemParse}Q('H',['HH',2],0,'hour'),Q('h',['hh',2],0,ft),Q('k',['kk',2],0,function(){return this.hours()||24}),Q('hmm',0,0,function(){return''+ft.apply(this)+z(this.minutes(),2)}),Q('hmmss',0,0,function(){return''+ft.apply(this)+z(this.minutes(),2)+z(this.seconds(),2)}),Q('Hmm',0,0,function(){return''+this.hours()+z(this.minutes(),2)}),Q('Hmmss',0,0,function(){return''+this.hours()+z(this.minutes(),2)+z(this.seconds(),2)}),mt('a',!0),mt('A',!1),V('hour','h'),j('hour',13),ve('a',_t),ve('A',_t),ve('H',ae),ve('h',ae),ve('k',ae),ve('HH',ae,ne),ve('hh',ae,ne),ve('kk',ae,ne),ve('hmm',oe),ve('hmmss',ue),ve('Hmm',oe),ve('Hmmss',ue),Se(['H','HH'],xe),Se(['k','kk'],function(t,n,s){var o=b(t);n[xe]=24===o?0:o}),Se(['a','A'],function(t,n,s){s._isPm=s._locale.isPM(t),s._meridiem=t}),Se(['h','hh'],function(t,n,s){n[xe]=b(t),w(s).bigHour=!0}),Se('hmm',function(t,n,s){var o=t.length-2;n[xe]=b(t.substr(0,o)),n[be]=b(t.substr(o)),w(s).bigHour=!0}),Se('hmmss',function(t,n,s){var o=t.length-4,u=t.length-2;n[xe]=b(t.substr(0,o)),n[be]=b(t.substr(o,2)),n[Pe]=b(t.substr(u)),w(s).bigHour=!0}),Se('Hmm',function(t,n,s){var o=t.length-2;n[xe]=b(t.substr(0,o)),n[be]=b(t.substr(o))}),Se('Hmmss',function(t,n,s){var o=t.length-4,u=t.length-2;n[xe]=b(t.substr(0,o)),n[be]=b(t.substr(o,2)),n[Pe]=b(t.substr(u))});var yt,gt=Ne('Hours',!0),vt={calendar:{sameDay:'[Today at] LT',nextDay:'[Tomorrow at] LT',nextWeek:'dddd [at] LT',lastDay:'[Yesterday at] LT',lastWeek:'[Last] dddd [at] LT',sameElse:'L'},longDateFormat:{LTS:'h:mm:ss A',LT:'h:mm A',L:'MM/DD/YYYY',LL:'MMMM D, YYYY',LLL:'MMMM D, YYYY h:mm A',LLLL:'dddd, MMMM D, YYYY h:mm A'},invalidDate:'Invalid date',ordinal:'%d',dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{future:'in %s',past:'%s ago',s:'a few seconds',ss:'%d seconds',m:'a minute',mm:'%d minutes',h:'an hour',hh:'%d hours',d:'a day',dd:'%d days',M:'a month',MM:'%d months',y:'a year',yy:'%d years'},months:Ae,monthsShort:je,week:{dow:0,doy:6},weekdays:rt,weekdaysMin:ot,weekdaysShort:at,meridiemParse:/[ap]\.?m?\.?/i},pt={},wt={};function Mt(t){return t?t.toLowerCase().replace('_','-'):t}function St(t){for(var n,s,o,u,l=0;l0;){if(o=Dt(u.slice(0,n).join('-')))return o;if(s&&s.length>=n&&P(u,s,!0)>=n-1)break;n--}l++}return yt}function Dt(t){var n=null;if(!pt[t]&&void 0!==m&&m&&m.exports)try{n=yt._abbr,r('./locale/'+t),kt(n)}catch(t){}return pt[t]}function kt(t,n){var s;return t&&((s=h(n)?Ot(t):Yt(t,n))?yt=s:'undefined'!=typeof console&&console.warn&&console.warn('Locale '+t+' not found. Did you forget to load it?')),yt._abbr}function Yt(t,n){if(null!==n){var s,o=vt;if(n.abbr=t,null!=pt[t])F('defineLocaleOverride',"use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),o=pt[t]._config;else if(null!=n.parentLocale)if(null!=pt[n.parentLocale])o=pt[n.parentLocale]._config;else{if(null==(s=Dt(n.parentLocale)))return wt[n.parentLocale]||(wt[n.parentLocale]=[]),wt[n.parentLocale].push({name:t,config:n}),null;o=s._config}return pt[t]=new N(U(o,n)),wt[t]&&wt[t].forEach(function(t){Yt(t.name,t.config)}),kt(t),pt[t]}return delete pt[t],null}function Ot(t){var n;if(t&&t._locale&&t._locale._abbr&&(t=t._locale._abbr),!t)return yt;if(!o(t)){if(n=Dt(t))return n;t=[t]}return St(t)}function Tt(t){var n,s=t._a;return s&&-2===w(t).overflow&&(n=s[Oe]<0||s[Oe]>11?Oe:s[Te]<1||s[Te]>Ee(s[Ye],s[Oe])?Te:s[xe]<0||s[xe]>24||24===s[xe]&&(0!==s[be]||0!==s[Pe]||0!==s[We])?xe:s[be]<0||s[be]>59?be:s[Pe]<0||s[Pe]>59?Pe:s[We]<0||s[We]>999?We:-1,w(t)._overflowDayOfYear&&(nTe)&&(n=Te),w(t)._overflowWeeks&&-1===n&&(n=He),w(t)._overflowWeekday&&-1===n&&(n=Re),w(t).overflow=n),t}function xt(t,n,s){return null!=t?t:null!=n?n:s}function bt(t){var n=new Date(s.now());return t._useUTC?[n.getUTCFullYear(),n.getUTCMonth(),n.getUTCDate()]:[n.getFullYear(),n.getMonth(),n.getDate()]}function Pt(t){var n,s,o,u,l,h=[];if(!t._d){for(o=bt(t),t._w&&null==t._a[Te]&&null==t._a[Oe]&&Wt(t),null!=t._dayOfYear&&(l=xt(t._a[Ye],o[Ye]),(t._dayOfYear>Ce(l)||0===t._dayOfYear)&&(w(t)._overflowDayOfYear=!0),s=Xe(l,0,t._dayOfYear),t._a[Oe]=s.getUTCMonth(),t._a[Te]=s.getUTCDate()),n=0;n<3&&null==t._a[n];++n)t._a[n]=h[n]=o[n];for(;n<7;n++)t._a[n]=h[n]=null==t._a[n]?2===n?1:0:t._a[n];24===t._a[xe]&&0===t._a[be]&&0===t._a[Pe]&&0===t._a[We]&&(t._nextDay=!0,t._a[xe]=0),t._d=(t._useUTC?Xe:Qe).apply(null,h),u=t._useUTC?t._d.getUTCDay():t._d.getDay(),null!=t._tzm&&t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),t._nextDay&&(t._a[xe]=24),t._w&&void 0!==t._w.d&&t._w.d!==u&&(w(t).weekdayMismatch=!0)}}function Wt(t){var n,s,o,u,l,h,c,f;if(null!=(n=t._w).GG||null!=n.W||null!=n.E)l=1,h=4,s=xt(n.GG,t._a[Ye],tt(Kt(),1,4).year),o=xt(n.W,1),((u=xt(n.E,1))<1||u>7)&&(f=!0);else{l=t._locale._week.dow,h=t._locale._week.doy;var _=tt(Kt(),l,h);s=xt(n.gg,t._a[Ye],_.year),o=xt(n.w,_.week),null!=n.d?((u=n.d)<0||u>6)&&(f=!0):null!=n.e?(u=n.e+l,(n.e<0||n.e>6)&&(f=!0)):u=l}o<1||o>nt(s,l,h)?w(t)._overflowWeeks=!0:null!=f?w(t)._overflowWeekday=!0:(c=et(s,o,u,l,h),t._a[Ye]=c.year,t._dayOfYear=c.dayOfYear)}var Ht=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Rt=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Ct=/Z|[+-]\d\d(?::?\d\d)?/,Ft=[['YYYYYY-MM-DD',/[+-]\d{6}-\d\d-\d\d/],['YYYY-MM-DD',/\d{4}-\d\d-\d\d/],['GGGG-[W]WW-E',/\d{4}-W\d\d-\d/],['GGGG-[W]WW',/\d{4}-W\d\d/,!1],['YYYY-DDD',/\d{4}-\d{3}/],['YYYY-MM',/\d{4}-\d\d/,!1],['YYYYYYMMDD',/[+-]\d{10}/],['YYYYMMDD',/\d{8}/],['GGGG[W]WWE',/\d{4}W\d{3}/],['GGGG[W]WW',/\d{4}W\d{2}/,!1],['YYYYDDD',/\d{7}/]],Lt=[['HH:mm:ss.SSSS',/\d\d:\d\d:\d\d\.\d+/],['HH:mm:ss,SSSS',/\d\d:\d\d:\d\d,\d+/],['HH:mm:ss',/\d\d:\d\d:\d\d/],['HH:mm',/\d\d:\d\d/],['HHmmss.SSSS',/\d\d\d\d\d\d\.\d+/],['HHmmss,SSSS',/\d\d\d\d\d\d,\d+/],['HHmmss',/\d\d\d\d\d\d/],['HHmm',/\d\d\d\d/],['HH',/\d\d/]],Ut=/^\/?Date\((\-?\d+)/i;function Nt(t){var n,s,o,u,l,h,c=t._i,f=Ht.exec(c)||Rt.exec(c);if(f){for(w(t).iso=!0,n=0,s=Ft.length;n0&&w(t).unusedInput.push(h),c=c.slice(c.indexOf(o)+o.length),_+=o.length),B[l]?(o?w(t).empty=!1:w(t).unusedTokens.push(l),ke(l,o,t)):t._strict&&!o&&w(t).unusedTokens.push(l);w(t).charsLeftOver=f-_,c.length>0&&w(t).unusedInput.push(c),t._a[xe]<=12&&!0===w(t).bigHour&&t._a[xe]>0&&(w(t).bigHour=void 0),w(t).parsedDateParts=t._a.slice(0),w(t).meridiem=t._meridiem,t._a[xe]=$t(t._locale,t._a[xe],t._meridiem),Pt(t),Tt(t)}else jt(t);else Nt(t)}function $t(t,n,s){var o;return null==s?n:null!=t.meridiemHour?t.meridiemHour(n,s):null!=t.isPM?((o=t.isPM(s))&&n<12&&(n+=12),o||12!==n||(n=0),n):n}function Jt(t){var n,s,o,u,l;if(0===t._f.length)return w(t).invalidFormat=!0,void(t._d=new Date(NaN));for(u=0;uthis?this:t:S()});function nn(t,n){var s,u;if(1===n.length&&o(n[0])&&(n=n[0]),!n.length)return Kt();for(s=n[0],u=1;u(l=nt(t,o,u))&&(n=l),Wn.call(this,t,n,s,o,u))}function Wn(t,n,s,o,u){var l=et(t,n,s,o,u),h=Xe(l.year,0,l.dayOfYear);return this.year(h.getUTCFullYear()),this.month(h.getUTCMonth()),this.date(h.getUTCDate()),this}Q(0,['gg',2],0,function(){return this.weekYear()%100}),Q(0,['GG',2],0,function(){return this.isoWeekYear()%100}),bn('gggg','weekYear'),bn('ggggg','weekYear'),bn('GGGG','isoWeekYear'),bn('GGGGG','isoWeekYear'),V('weekYear','gg'),V('isoWeekYear','GG'),j('weekYear',1),j('isoWeekYear',1),ve('G',fe),ve('g',fe),ve('GG',ae,ne),ve('gg',ae,ne),ve('GGGG',de,ie),ve('gggg',de,ie),ve('GGGGG',he,re),ve('ggggg',he,re),De(['gggg','ggggg','GGGG','GGGGG'],function(t,n,s,o){n[o.substr(0,2)]=b(t)}),De(['gg','GG'],function(t,n,o,u){n[u]=s.parseTwoDigitYear(t)}),Q('Q',0,'Qo','quarter'),V('quarter','Q'),j('quarter',7),ve('Q',te),Se('Q',function(t,n){n[Oe]=3*(b(t)-1)}),Q('D',['DD',2],'Do','date'),V('date','D'),j('date',9),ve('D',ae),ve('DD',ae,ne),ve('Do',function(t,n){return t?n._dayOfMonthOrdinalParse||n._ordinalParse:n._dayOfMonthOrdinalParseLenient}),Se(['D','DD'],Te),Se('Do',function(t,n){n[Te]=b(t.match(ae)[0])});var Hn=Ne('Date',!0);Q('DDD',['DDDD',3],'DDDo','dayOfYear'),V('dayOfYear','DDD'),j('dayOfYear',4),ve('DDD',le),ve('DDDD',se),Se(['DDD','DDDD'],function(t,n,s){s._dayOfYear=b(t)}),Q('m',['mm',2],0,'minute'),V('minute','m'),j('minute',14),ve('m',ae),ve('mm',ae,ne),Se(['m','mm'],be);var Rn=Ne('Minutes',!1);Q('s',['ss',2],0,'second'),V('second','s'),j('second',15),ve('s',ae),ve('ss',ae,ne),Se(['s','ss'],Pe);var Cn,Fn=Ne('Seconds',!1);for(Q('S',0,0,function(){return~~(this.millisecond()/100)}),Q(0,['SS',2],0,function(){return~~(this.millisecond()/10)}),Q(0,['SSS',3],0,'millisecond'),Q(0,['SSSS',4],0,function(){return 10*this.millisecond()}),Q(0,['SSSSS',5],0,function(){return 100*this.millisecond()}),Q(0,['SSSSSS',6],0,function(){return 1e3*this.millisecond()}),Q(0,['SSSSSSS',7],0,function(){return 1e4*this.millisecond()}),Q(0,['SSSSSSSS',8],0,function(){return 1e5*this.millisecond()}),Q(0,['SSSSSSSSS',9],0,function(){return 1e6*this.millisecond()}),V('millisecond','ms'),j('millisecond',16),ve('S',le,te),ve('SS',le,ne),ve('SSS',le,se),Cn='SSSS';Cn.length<=9;Cn+='S')ve(Cn,ce);function Ln(t,n){n[We]=b(1e3*('0.'+t))}for(Cn='S';Cn.length<=9;Cn+='S')Se(Cn,Ln);var Un=Ne('Milliseconds',!1);Q('z',0,0,'zoneAbbr'),Q('zz',0,0,'zoneName');var Nn=O.prototype;function Gn(t){return t}Nn.add=Dn,Nn.calendar=function(t,n){var o=t||Kt(),u=cn(o,this).startOf('day'),l=s.calendarFormat(this,u)||'sameElse',h=n&&(L(n[l])?n[l].call(this,o):n[l]);return this.format(h||this.localeData().calendar(l,this,Kt(o)))},Nn.clone=function(){return new O(this)},Nn.diff=function(t,n,s){var o,u,l;if(!this.isValid())return NaN;if(!(o=cn(t,this)).isValid())return NaN;switch(u=6e4*(o.utcOffset()-this.utcOffset()),n=E(n)){case'year':l=Yn(this,o)/12;break;case'month':l=Yn(this,o);break;case'quarter':l=Yn(this,o)/3;break;case'second':l=(this-o)/1e3;break;case'minute':l=(this-o)/6e4;break;case'hour':l=(this-o)/36e5;break;case'day':l=(this-o-u)/864e5;break;case'week':l=(this-o-u)/6048e5;break;default:l=this-o}return s?l:x(l)},Nn.endOf=function(t){return void 0===(t=E(t))||'millisecond'===t?this:('date'===t&&(t='day'),this.startOf(t).add(1,'isoWeek'===t?'week':t).subtract(1,'ms'))},Nn.format=function(t){t||(t=this.isUtc()?s.defaultFormatUtc:s.defaultFormat);var n=K(this,t);return this.localeData().postformat(n)},Nn.from=function(t,n){return this.isValid()&&(T(t)&&t.isValid()||Kt(t).isValid())?gn({to:this,from:t}).locale(this.locale()).humanize(!n):this.localeData().invalidDate()},Nn.fromNow=function(t){return this.from(Kt(),t)},Nn.to=function(t,n){return this.isValid()&&(T(t)&&t.isValid()||Kt(t).isValid())?gn({from:this,to:t}).locale(this.locale()).humanize(!n):this.localeData().invalidDate()},Nn.toNow=function(t){return this.to(Kt(),t)},Nn.get=function(t){return L(this[t=E(t)])?this[t]():this},Nn.invalidAt=function(){return w(this).overflow},Nn.isAfter=function(t,n){var s=T(t)?t:Kt(t);return!(!this.isValid()||!s.isValid())&&('millisecond'===(n=E(h(n)?'millisecond':n))?this.valueOf()>s.valueOf():s.valueOf()9999?K(s,n?'YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]':'YYYYYY-MM-DD[T]HH:mm:ss.SSSZ'):L(Date.prototype.toISOString)?n?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace('Z',K(s,'Z')):K(s,n?'YYYY-MM-DD[T]HH:mm:ss.SSS[Z]':'YYYY-MM-DD[T]HH:mm:ss.SSSZ')},Nn.inspect=function(){if(!this.isValid())return'moment.invalid(/* '+this._i+' */)';var t='moment',n='';this.isLocal()||(t=0===this.utcOffset()?'moment.utc':'moment.parseZone',n='Z');var s='['+t+'("]',o=0<=this.year()&&this.year()<=9999?'YYYY':'YYYYYY',u=n+'[")]';return this.format(s+o+'-MM-DD[T]HH:mm:ss.SSS'+u)},Nn.toJSON=function(){return this.isValid()?this.toISOString():null},Nn.toString=function(){return this.clone().locale('en').format('ddd MMM DD YYYY HH:mm:ss [GMT]ZZ')},Nn.unix=function(){return Math.floor(this.valueOf()/1e3)},Nn.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},Nn.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},Nn.year=Ue,Nn.isLeapYear=function(){return Fe(this.year())},Nn.weekYear=function(t){return Pn.call(this,t,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)},Nn.isoWeekYear=function(t){return Pn.call(this,t,this.isoWeek(),this.isoWeekday(),1,4)},Nn.quarter=Nn.quarters=function(t){return null==t?Math.ceil((this.month()+1)/3):this.month(3*(t-1)+this.month()%3)},Nn.month=$e,Nn.daysInMonth=function(){return Ee(this.year(),this.month())},Nn.week=Nn.weeks=function(t){var n=this.localeData().week(this);return null==t?n:this.add(7*(t-n),'d')},Nn.isoWeek=Nn.isoWeeks=function(t){var n=tt(this,1,4).week;return null==t?n:this.add(7*(t-n),'d')},Nn.weeksInYear=function(){var t=this.localeData()._week;return nt(this.year(),t.dow,t.doy)},Nn.isoWeeksInYear=function(){return nt(this.year(),1,4)},Nn.date=Hn,Nn.day=Nn.days=function(t){if(!this.isValid())return null!=t?this:NaN;var n=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=t?(t=st(t,this.localeData()),this.add(t-n,'d')):n},Nn.weekday=function(t){if(!this.isValid())return null!=t?this:NaN;var n=(this.day()+7-this.localeData()._week.dow)%7;return null==t?n:this.add(t-n,'d')},Nn.isoWeekday=function(t){if(!this.isValid())return null!=t?this:NaN;if(null!=t){var n=it(t,this.localeData());return this.day(this.day()%7?n:n-7)}return this.day()||7},Nn.dayOfYear=function(t){var n=Math.round((this.clone().startOf('day')-this.clone().startOf('year'))/864e5)+1;return null==t?n:this.add(t-n,'d')},Nn.hour=Nn.hours=gt,Nn.minute=Nn.minutes=Rn,Nn.second=Nn.seconds=Fn,Nn.millisecond=Nn.milliseconds=Un,Nn.utcOffset=function(t,n,o){var u,l=this._offset||0;if(!this.isValid())return null!=t?this:NaN;if(null!=t){if('string'==typeof t){if(null===(t=hn(_e,t)))return this}else Math.abs(t)<16&&!o&&(t*=60);return!this._isUTC&&n&&(u=fn(this)),this._offset=t,this._isUTC=!0,null!=u&&this.add(u,'m'),l!==t&&(!n||this._changeInProgress?Sn(this,gn(t-l,'m'),1,!1):this._changeInProgress||(this._changeInProgress=!0,s.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?l:fn(this)},Nn.utc=function(t){return this.utcOffset(0,t)},Nn.local=function(t){return this._isUTC&&(this.utcOffset(0,t),this._isUTC=!1,t&&this.subtract(fn(this),'m')),this},Nn.parseZone=function(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if('string'==typeof this._i){var t=hn(me,this._i);null!=t?this.utcOffset(t):this.utcOffset(0,!0)}return this},Nn.hasAlignedHourOffset=function(t){return!!this.isValid()&&(t=t?Kt(t).utcOffset():0,(this.utcOffset()-t)%60==0)},Nn.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},Nn.isLocal=function(){return!!this.isValid()&&!this._isUTC},Nn.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},Nn.isUtc=mn,Nn.isUTC=mn,Nn.zoneAbbr=function(){return this._isUTC?'UTC':''},Nn.zoneName=function(){return this._isUTC?'Coordinated Universal Time':''},Nn.dates=H('dates accessor is deprecated. Use date instead.',Hn),Nn.months=H('months accessor is deprecated. Use month instead',$e),Nn.years=H('years accessor is deprecated. Use year instead',Ue),Nn.zone=H('moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/',function(t,n){return null!=t?('string'!=typeof t&&(t=-t),this.utcOffset(t,n),this):-this.utcOffset()}),Nn.isDSTShifted=H('isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information',function(){if(!h(this._isDSTShifted))return this._isDSTShifted;var t={};if(k(t,this),(t=Bt(t))._a){var n=t._isUTC?p(t._a):Kt(t._a);this._isDSTShifted=this.isValid()&&P(t._a,n.toArray())>0}else this._isDSTShifted=!1;return this._isDSTShifted});var Vn=N.prototype;function En(t,n,s,o){var u=Ot(),l=p().set(o,n);return u[s](l,t)}function In(t,n,s){if(c(t)&&(n=t,t=void 0),t=t||'',null!=n)return En(t,n,s,'month');var o,u=[];for(o=0;o<12;o++)u[o]=En(t,o,s,'month');return u}function An(t,n,s,o){'boolean'==typeof t?(c(n)&&(s=n,n=void 0),n=n||''):(s=n=t,t=!1,c(n)&&(s=n,n=void 0),n=n||'');var u,l=Ot(),h=t?l._week.dow:0;if(null!=s)return En(n,(s+h)%7,o,'day');var f=[];for(u=0;u<7;u++)f[u]=En(n,(u+h)%7,o,'day');return f}Vn.calendar=function(t,n,s){var o=this._calendar[t]||this._calendar.sameElse;return L(o)?o.call(n,s):o},Vn.longDateFormat=function(t){var n=this._longDateFormat[t],s=this._longDateFormat[t.toUpperCase()];return n||!s?n:(this._longDateFormat[t]=s.replace(/MMMM|MM|DD|dddd/g,function(t){return t.slice(1)}),this._longDateFormat[t])},Vn.invalidDate=function(){return this._invalidDate},Vn.ordinal=function(t){return this._ordinal.replace('%d',t)},Vn.preparse=Gn,Vn.postformat=Gn,Vn.relativeTime=function(t,n,s,o){var u=this._relativeTime[s];return L(u)?u(t,n,s,o):u.replace(/%d/i,t)},Vn.pastFuture=function(t,n){var s=this._relativeTime[t>0?'future':'past'];return L(s)?s(n):s.replace(/%s/i,n)},Vn.set=function(t){var n,s;for(s in t)L(n=t[s])?this[s]=n:this['_'+s]=n;this._config=t,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+'|'+/\d{1,2}/.source)},Vn.months=function(t,n){return t?o(this._months)?this._months[t.month()]:this._months[(this._months.isFormat||Ie).test(n)?'format':'standalone'][t.month()]:o(this._months)?this._months:this._months.standalone},Vn.monthsShort=function(t,n){return t?o(this._monthsShort)?this._monthsShort[t.month()]:this._monthsShort[Ie.test(n)?'format':'standalone'][t.month()]:o(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},Vn.monthsParse=function(t,n,s){var o,u,l;if(this._monthsParseExact)return Ze.call(this,t,n,s);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),o=0;o<12;o++){if(u=p([2e3,o]),s&&!this._longMonthsParse[o]&&(this._longMonthsParse[o]=new RegExp('^'+this.months(u,'').replace('.','')+'$','i'),this._shortMonthsParse[o]=new RegExp('^'+this.monthsShort(u,'').replace('.','')+'$','i')),s||this._monthsParse[o]||(l='^'+this.months(u,'')+'|^'+this.monthsShort(u,''),this._monthsParse[o]=new RegExp(l.replace('.',''),'i')),s&&'MMMM'===n&&this._longMonthsParse[o].test(t))return o;if(s&&'MMM'===n&&this._shortMonthsParse[o].test(t))return o;if(!s&&this._monthsParse[o].test(t))return o}},Vn.monthsRegex=function(t){return this._monthsParseExact?(y(this,'_monthsRegex')||Be.call(this),t?this._monthsStrictRegex:this._monthsRegex):(y(this,'_monthsRegex')||(this._monthsRegex=qe),this._monthsStrictRegex&&t?this._monthsStrictRegex:this._monthsRegex)},Vn.monthsShortRegex=function(t){return this._monthsParseExact?(y(this,'_monthsRegex')||Be.call(this),t?this._monthsShortStrictRegex:this._monthsShortRegex):(y(this,'_monthsShortRegex')||(this._monthsShortRegex=Je),this._monthsShortStrictRegex&&t?this._monthsShortStrictRegex:this._monthsShortRegex)},Vn.week=function(t){return tt(t,this._week.dow,this._week.doy).week},Vn.firstDayOfYear=function(){return this._week.doy},Vn.firstDayOfWeek=function(){return this._week.dow},Vn.weekdays=function(t,n){return t?o(this._weekdays)?this._weekdays[t.day()]:this._weekdays[this._weekdays.isFormat.test(n)?'format':'standalone'][t.day()]:o(this._weekdays)?this._weekdays:this._weekdays.standalone},Vn.weekdaysMin=function(t){return t?this._weekdaysMin[t.day()]:this._weekdaysMin},Vn.weekdaysShort=function(t){return t?this._weekdaysShort[t.day()]:this._weekdaysShort},Vn.weekdaysParse=function(t,n,s){var o,u,l;if(this._weekdaysParseExact)return ut.call(this,t,n,s);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),o=0;o<7;o++){if(u=p([2e3,1]).day(o),s&&!this._fullWeekdaysParse[o]&&(this._fullWeekdaysParse[o]=new RegExp('^'+this.weekdays(u,'').replace('.','\\.?')+'$','i'),this._shortWeekdaysParse[o]=new RegExp('^'+this.weekdaysShort(u,'').replace('.','\\.?')+'$','i'),this._minWeekdaysParse[o]=new RegExp('^'+this.weekdaysMin(u,'').replace('.','\\.?')+'$','i')),this._weekdaysParse[o]||(l='^'+this.weekdays(u,'')+'|^'+this.weekdaysShort(u,'')+'|^'+this.weekdaysMin(u,''),this._weekdaysParse[o]=new RegExp(l.replace('.',''),'i')),s&&'dddd'===n&&this._fullWeekdaysParse[o].test(t))return o;if(s&&'ddd'===n&&this._shortWeekdaysParse[o].test(t))return o;if(s&&'dd'===n&&this._minWeekdaysParse[o].test(t))return o;if(!s&&this._weekdaysParse[o].test(t))return o}},Vn.weekdaysRegex=function(t){return this._weekdaysParseExact?(y(this,'_weekdaysRegex')||ct.call(this),t?this._weekdaysStrictRegex:this._weekdaysRegex):(y(this,'_weekdaysRegex')||(this._weekdaysRegex=lt),this._weekdaysStrictRegex&&t?this._weekdaysStrictRegex:this._weekdaysRegex)},Vn.weekdaysShortRegex=function(t){return this._weekdaysParseExact?(y(this,'_weekdaysRegex')||ct.call(this),t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(y(this,'_weekdaysShortRegex')||(this._weekdaysShortRegex=dt),this._weekdaysShortStrictRegex&&t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},Vn.weekdaysMinRegex=function(t){return this._weekdaysParseExact?(y(this,'_weekdaysRegex')||ct.call(this),t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(y(this,'_weekdaysMinRegex')||(this._weekdaysMinRegex=ht),this._weekdaysMinStrictRegex&&t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},Vn.isPM=function(t){return'p'===(t+'').toLowerCase().charAt(0)},Vn.meridiem=function(t,n,s){return t>11?s?'pm':'PM':s?'am':'AM'},kt('en',{dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(t){var n=t%10;return t+(1===b(t%100/10)?'th':1===n?'st':2===n?'nd':3===n?'rd':'th')}}),s.lang=H('moment.lang is deprecated. Use moment.locale instead.',kt),s.langData=H('moment.langData is deprecated. Use moment.localeData instead.',Ot);var jn=Math.abs;function Zn(t,n,s,o){var u=gn(n,s);return t._milliseconds+=o*u._milliseconds,t._days+=o*u._days,t._months+=o*u._months,t._bubble()}function zn(t){return t<0?Math.floor(t):Math.ceil(t)}function $n(t){return 4800*t/146097}function Jn(t){return 146097*t/4800}function qn(t){return function(){return this.as(t)}}var Bn=qn('ms'),Qn=qn('s'),Xn=qn('m'),Kn=qn('h'),es=qn('d'),ts=qn('w'),ns=qn('M'),ss=qn('y');function is(t){return function(){return this.isValid()?this._data[t]:NaN}}var rs=is('milliseconds'),as=is('seconds'),os=is('minutes'),us=is('hours'),ls=is('days'),ds=is('months'),hs=is('years');var cs=Math.round,fs={ss:44,s:45,m:45,h:22,d:26,M:11};function ms(t,n,s,o,u){return u.relativeTime(n||1,!!s,t,o)}function _s(t,n,s){var o=gn(t).abs(),u=cs(o.as('s')),l=cs(o.as('m')),h=cs(o.as('h')),c=cs(o.as('d')),f=cs(o.as('M')),_=cs(o.as('y')),y=u<=fs.ss&&['s',u]||u0,y[4]=s,ms.apply(null,y)}var ys=Math.abs;function gs(t){return(t>0)-(t<0)||+t}function vs(){if(!this.isValid())return this.localeData().invalidDate();var t,n,s=ys(this._milliseconds)/1e3,o=ys(this._days),u=ys(this._months);n=x((t=x(s/60))/60),s%=60,t%=60;var l=x(u/12),h=u%=12,c=o,f=n,_=t,y=s?s.toFixed(3).replace(/\.?0+$/,''):'',v=this.asSeconds();if(!v)return'P0D';var p=v<0?'-':'',w=gs(this._months)!==gs(v)?'-':'',M=gs(this._days)!==gs(v)?'-':'',S=gs(this._milliseconds)!==gs(v)?'-':'';return p+'P'+(l?w+l+'Y':'')+(h?w+h+'M':'')+(c?M+c+'D':'')+(f||_||y?'T':'')+(f?S+f+'H':'')+(_?S+_+'M':'')+(y?S+y+'S':'')}var ps=an.prototype;return ps.isValid=function(){return this._isValid},ps.abs=function(){var t=this._data;return this._milliseconds=jn(this._milliseconds),this._days=jn(this._days),this._months=jn(this._months),t.milliseconds=jn(t.milliseconds),t.seconds=jn(t.seconds),t.minutes=jn(t.minutes),t.hours=jn(t.hours),t.months=jn(t.months),t.years=jn(t.years),this},ps.add=function(t,n){return Zn(this,t,n,1)},ps.subtract=function(t,n){return Zn(this,t,n,-1)},ps.as=function(t){if(!this.isValid())return NaN;var n,s,o=this._milliseconds;if('month'===(t=E(t))||'year'===t)return n=this._days+o/864e5,s=this._months+$n(n),'month'===t?s:s/12;switch(n=this._days+Math.round(Jn(this._months)),t){case'week':return n/7+o/6048e5;case'day':return n+o/864e5;case'hour':return 24*n+o/36e5;case'minute':return 1440*n+o/6e4;case'second':return 86400*n+o/1e3;case'millisecond':return Math.floor(864e5*n)+o;default:throw new Error('Unknown unit '+t)}},ps.asMilliseconds=Bn,ps.asSeconds=Qn,ps.asMinutes=Xn,ps.asHours=Kn,ps.asDays=es,ps.asWeeks=ts,ps.asMonths=ns,ps.asYears=ss,ps.valueOf=function(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*b(this._months/12):NaN},ps._bubble=function(){var t,n,s,o,u,l=this._milliseconds,h=this._days,c=this._months,f=this._data;return l>=0&&h>=0&&c>=0||l<=0&&h<=0&&c<=0||(l+=864e5*zn(Jn(c)+h),h=0,c=0),f.milliseconds=l%1e3,t=x(l/1e3),f.seconds=t%60,n=x(t/60),f.minutes=n%60,s=x(n/60),f.hours=s%24,c+=u=x($n(h+=x(s/24))),h-=zn(Jn(u)),o=x(c/12),c%=12,f.days=h,f.months=c,f.years=o,this},ps.clone=function(){return gn(this)},ps.get=function(t){return t=E(t),this.isValid()?this[t+'s']():NaN},ps.milliseconds=rs,ps.seconds=as,ps.minutes=os,ps.hours=us,ps.days=ls,ps.weeks=function(){return x(this.days()/7)},ps.months=ds,ps.years=hs,ps.humanize=function(t){if(!this.isValid())return this.localeData().invalidDate();var n=this.localeData(),s=_s(this,!t,n);return t&&(s=n.pastFuture(+this,s)),n.postformat(s)},ps.toISOString=vs,ps.toString=vs,ps.toJSON=vs,ps.locale=On,ps.localeData=xn,ps.toIsoString=H('toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)',vs),ps.lang=Tn,Q('X',0,0,'unix'),Q('x',0,0,'valueOf'),ve('x',fe),ve('X',/[+-]?\d+(\.\d{1,3})?/),Se('X',function(t,n,s){s._d=new Date(1e3*parseFloat(t,10))}),Se('x',function(t,n,s){s._d=new Date(b(t))}),s.version='2.22.2',t=Kt,s.fn=Nn,s.min=function(){return nn('isBefore',[].slice.call(arguments,0))},s.max=function(){return nn('isAfter',[].slice.call(arguments,0))},s.now=function(){return Date.now?Date.now():+new Date},s.utc=p,s.unix=function(t){return Kt(1e3*t)},s.months=function(t,n){return In(t,n,'months')},s.isDate=f,s.locale=kt,s.invalid=S,s.duration=gn,s.isMoment=T,s.weekdays=function(t,n,s){return An(t,n,s,'weekdays')},s.parseZone=function(){return Kt.apply(null,arguments).parseZone()},s.localeData=Ot,s.isDuration=on,s.monthsShort=function(t,n){return In(t,n,'monthsShort')},s.weekdaysMin=function(t,n,s){return An(t,n,s,'weekdaysMin')},s.defineLocale=Yt,s.updateLocale=function(t,n){if(null!=n){var s,o,u=vt;null!=(o=Dt(t))&&(u=o._config),(s=new N(n=U(u,n))).parentLocale=pt[t],pt[t]=s,kt(t)}else null!=pt[t]&&(null!=pt[t].parentLocale?pt[t]=pt[t].parentLocale:null!=pt[t]&&delete pt[t]);return pt[t]},s.locales=function(){return R(pt)},s.weekdaysShort=function(t,n,s){return An(t,n,s,'weekdaysShort')},s.normalizeUnits=E,s.relativeTimeRounding=function(t){return void 0===t?cs:'function'==typeof t&&(cs=t,!0)},s.relativeTimeThreshold=function(t,n){return void 0!==fs[t]&&(void 0===n?fs[t]:(fs[t]=n,'s'===t&&(fs.ss=n-1),!0))},s.calendarFormat=function(t,n){var s=t.diff(n,'days',!0);return s<-6?'sameElse':s<-1?'lastWeek':s<0?'lastDay':s<1?'sameDay':s<2?'nextDay':s<7?'nextWeek':'sameElse'},s.prototype=Nn,s.HTML5_FMT={DATETIME_LOCAL:'YYYY-MM-DDTHH:mm',DATETIME_LOCAL_SECONDS:'YYYY-MM-DDTHH:mm:ss',DATETIME_LOCAL_MS:'YYYY-MM-DDTHH:mm:ss.SSS',DATE:'YYYY-MM-DD',TIME:'HH:mm',TIME_SECONDS:'HH:mm:ss',TIME_MS:'HH:mm:ss.SSS',WEEK:'YYYY-[W]WW',MONTH:'YYYY-MM'},s},'object'==typeof e&&void 0!==m?m.exports=n():'function'==typeof define&&define.amd?define(n):t.moment=n()},1070,[]); +__d(function(g,r,i,a,m,e,d){!(function(t,n){"use strict";'object'==typeof m&&m.exports?m.exports=n(r(d[0])):'function'==typeof define&&define.amd?define(['moment'],n):n(t.moment)})(this,function(t){"use strict";var n,o={},s={},f={},u={};t&&'string'==typeof t.version||I('Moment Timezone requires Moment.js. See https://momentjs.com/timezone/docs/#/use-it/browser/');var c=t.version.split('.'),h=+c[0],l=+c[1];function p(t){return t>96?t-87:t>64?t-29:t-48}function v(t){var n=0,o=t.split('.'),s=o[0],f=o[1]||'',u=1,c=0,h=1;for(45===t.charCodeAt(0)&&(n=1,h=-1);n3){var n=f[Z(t)];if(n)return n;I("Moment Timezone found "+t+" from the Intl api, but did not have that data loaded.")}}catch(t){}var o,s,u,c=A(),h=c.length,l=D(c),p=[];for(s=0;s0?p[0].zone.name:void 0}function Z(t){return(t||'').toLowerCase().replace(/\//g,'_')}function F(t){var n,s,u,c;for("string"==typeof t&&(t=[t]),n=0;n= 2.6.0. You are using Moment.js '+t.version+'. See momentjs.com'),y.prototype={_set:function(t){this.name=t.name,this.abbrs=t.abbrs,this.untils=t.untils,this.offsets=t.offsets,this.population=t.population},_index:function(t){var n,o=+t,s=this.untils;for(n=0;ns&&P.moveInvalidForward&&(n=s),u= 2.9.0. You are using Moment.js '+t.version+'.'),t.defaultZone=n?k(n):null,t};var V=t.momentProperties;return'[object Array]'===Object.prototype.toString.call(V)?(V.push('_z'),V.push('_a')):V&&(V._z=null),t})},1071,[1070]); +__d(function(g,r,i,a,m,e,d){!(function(n,t){"use strict";'object'==typeof m&&m.exports?m.exports=t(r(d[0])):'function'==typeof define&&define.amd?define(['moment'],t):t(n.moment)})(this,function(n){"use strict";if(!n.tz)throw new Error("moment-timezone-utils.js must be loaded after moment-timezone.js");var t='0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWX',o=1e-6;function s(n,s){for(var f,u='.',l='';s>0;)s-=1,n*=60,f=Math.floor(n+o),u+=t[f],n-=f,f&&(l+=u,u='');return l}function f(n,o){for(var f='',u=Math.abs(n),l=Math.floor(u),h=s(u-l,Math.min(~~o,10));l>0;)f=t[l%60]+f,l=Math.floor(l/60);return n<0&&(f='-'+f),f&&h?f+h:(h||'-'!==f)&&(f||h)||'0'}function u(n){var t,o=[],s=0;for(t=0;th.population?p.unshift(l):l.population===h.population&&s&&s[l.name]?p.unshift(l):p.push(l),c=!0);c||b.push([l])}for(f=0;fo&&(f=t,t=o,o=f),f=0;fo&&(l=Math.min(l,f+1)));return[u,l]}function k(n,t,o){var s=Array.prototype.slice,f=w(n.untils,t,o),u=s.apply(n.untils,f);return u[u.length-1]=null,{name:n.name,abbrs:s.apply(n.abbrs,f),untils:u,offsets:s.apply(n.offsets,f),population:n.population}}return n.tz.pack=c,n.tz.packBase60=f,n.tz.createLinks=M,n.tz.filterYears=k,n.tz.filterLinkPack=function(n,t,o,s){var f,u,l=n.zones,h=[];for(f=0;f2?u-2:0),l=2;l";var s=(0,n.parseWithAttributeSchema)(t,{type:'string',source:'attribute',selector:'[data-custom-class-name] > *',attribute:'class'});return s?s.trim().split(/\s+/):[]}function b(t,o,l){if((0,n.hasBlockSupport)(o,'customClassName',!0)){var u=f((0,n.getSaveContent)(o,t)),p=f(l),b=(0,c.difference)(p,u),v=(0,c.compact)([t.className].concat((0,s.default)(b))).join(' ');v?t.className=v:delete t.className}return t}(0,l.addFilter)('blocks.registerBlockType','core/custom-class-name/attribute',u),(0,l.addFilter)('blocks.getSaveContent.extraProps','core/custom-class-name/save-props',p),(0,l.addFilter)('blocks.getBlockAttributes','core/custom-class-name/addParsedDifference',b)},1079,[1,15,332,1002,894,807]); +__d(function(g,r,i,a,m,e,d){var s=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.addGeneratedClassName=o;var t=s(r(d[1])),l=r(d[2]),n=r(d[3]),c=r(d[4]);function o(s,n){return(0,c.hasBlockSupport)(n,'className',!0)&&('string'==typeof s.className?s.className=(0,l.uniq)([(0,c.getBlockDefaultClassName)(n.name)].concat((0,t.default)(s.className.split(' ')))).join(' ').trim():s.className=(0,c.getBlockDefaultClassName)(n.name)),s}(0,n.addFilter)('blocks.getSaveContent.extraProps','core/generated-class-name/save-props',o)},1080,[1,15,332,894,807]); +__d(function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0});var n={PlainText:!0,RichText:!0,MediaPlaceholder:!0,BlockFormatControls:!0,BlockControls:!0,BlockEdit:!0,DefaultBlockAppender:!0,EditorHistoryRedo:!0,EditorHistoryUndo:!0};Object.defineProperty(e,"PlainText",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(e,"RichText",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(e,"MediaPlaceholder",{enumerable:!0,get:function(){return f.default}}),Object.defineProperty(e,"BlockFormatControls",{enumerable:!0,get:function(){return b.default}}),Object.defineProperty(e,"BlockControls",{enumerable:!0,get:function(){return p.default}}),Object.defineProperty(e,"BlockEdit",{enumerable:!0,get:function(){return y.default}}),Object.defineProperty(e,"DefaultBlockAppender",{enumerable:!0,get:function(){return O.default}}),Object.defineProperty(e,"EditorHistoryRedo",{enumerable:!0,get:function(){return P.default}}),Object.defineProperty(e,"EditorHistoryUndo",{enumerable:!0,get:function(){return j.default}});var o=r(d[1]);Object.keys(o).forEach(function(t){"default"!==t&&"__esModule"!==t&&(Object.prototype.hasOwnProperty.call(n,t)||Object.defineProperty(e,t,{enumerable:!0,get:function(){return o[t]}}))});var u=r(d[2]);Object.keys(u).forEach(function(t){"default"!==t&&"__esModule"!==t&&(Object.prototype.hasOwnProperty.call(n,t)||Object.defineProperty(e,t,{enumerable:!0,get:function(){return u[t]}}))});var l=t(r(d[3])),c=t(r(d[4])),f=t(r(d[5])),b=t(r(d[6])),p=t(r(d[7])),y=t(r(d[8])),O=t(r(d[9])),P=t(r(d[10])),j=t(r(d[11]))},1081,[1,1082,1085,1087,1089,1130,1132,1134,1135,1137,1139,1140]); +__d(function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"getColorClassName",{enumerable:!0,get:function(){return o.getColorClassName}}),Object.defineProperty(e,"getColorObjectByAttributeValues",{enumerable:!0,get:function(){return o.getColorObjectByAttributeValues}}),Object.defineProperty(e,"getColorObjectByColorValue",{enumerable:!0,get:function(){return o.getColorObjectByColorValue}}),Object.defineProperty(e,"createCustomColorsHOC",{enumerable:!0,get:function(){return n.createCustomColorsHOC}}),Object.defineProperty(e,"withColors",{enumerable:!0,get:function(){return n.default}});var o=r(d[1]),n=t(r(d[2]))},1082,[329,1083,1084]); +__d(function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.getColorClassName=function(t,l){if(!t||!l)return;return"has-"+(0,o.kebabCase)(l)+"-"+t},e.getMostReadableColor=function(t,u){return l.default.mostReadable(u,(0,o.map)(t,'color')).toHexString()},e.getColorObjectByColorValue=e.getColorObjectByAttributeValues=void 0;var o=r(d[1]),l=t(r(d[2]));e.getColorObjectByAttributeValues=function(t,l,u){if(l){var n=(0,o.find)(t,{slug:l});if(n)return n}return{color:u}};e.getColorObjectByColorValue=function(t,l){return(0,o.find)(t,{color:l})}},1083,[1,332,907]); +__d(function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.createCustomColorsHOC=function(t){return function(){for(var o=k(t),n=arguments.length,u=new Array(n),l=0;l','gim'),o=RegExp('$','gim');return t.replace(n,'').replace(o,'')}},{key:"onChange",value:function(t){this.lastEventCount=t.nativeEvent.eventCount;var n=this.removeRootTagsProduceByAztec(t.nativeEvent.text);this.lastContent=n,this.props.onChange({content:this.lastContent})}},{key:"onContentSizeChange",value:function(t){var n=t.height;this.forceUpdate(),this.props.onContentSizeChange({aztecHeight:n})}},{key:"onEnter",value:function(t){this.props.onSplit&&this.splitContent(t.nativeEvent.text,t.nativeEvent.selectionStart,t.nativeEvent.selectionEnd)}},{key:"onBackspace",value:function(t){var n=this.props,o=n.onMerge,s=n.onRemove;if(o||s){var l=b.BACKSPACE===b.BACKSPACE,u=this.isEmpty();o&&o(!l),s&&u&&l&&s(!l)}}},{key:"isEmpty",value:function(){return(0,A.isEmpty)(this.formatToValue(this.props.value))}},{key:"formatToValue",value:function(t){return Array.isArray(t)?(0,A.create)({html:_.children.toHTML(t),multilineTag:this.multilineTag}):'string'===this.props.format?(0,A.create)({html:t,multilineTag:this.multilineTag}):null===t?(0,A.create)():t}},{key:"shouldComponentUpdate",value:function(t){return t.tagName!==this.props.tagName?(this.lastEventCount=void 0,this.lastContent=void 0,!0):(void 0!==t.value&&void 0!==this.lastContent&&t.value!==this.lastContent&&(this.lastEventCount=void 0),!0)}},{key:"componentDidMount",value:function(){this.props.isSelected&&this._editor.focus()}},{key:"componentWillUnmount",value:function(){this._editor.isFocused()&&this._editor.blur()}},{key:"componentDidUpdate",value:function(t){this.props.isSelected&&!t.isSelected?this._editor.focus():!this.props.isSelected&&t.isSelected&&this.isIOS&&this._editor.blur()}},{key:"isFormatActive",value:function(t){return this.state.formats[t]&&this.state.formats[t].isActive}},{key:"removeFormat",value:function(t){this._editor.applyFormat(t)}},{key:"applyFormat",value:function(t,n,o){this._editor.applyFormat(t)}},{key:"changeFormats",value:function(t){var n=this,o={};(0,k.forEach)(t,function(t,s){o[s]={isActive:!0};var l=n.isFormatActive(s);l&&!t?n.removeFormat(s):!l&&t&&n.applyFormat(s)}),this.setState(function(t){return{formats:(0,k.merge)({},t.formats,o)}})}},{key:"toggleFormat",value:function(t){var n=this;return function(){return n.changeFormats((0,s.default)({},t,!n.state.formats[t]))}}},{key:"render",value:function(){var t=this,o=this.props,s=o.tagName,u=o.style,c=o.formattingControls,h=o.value,f=x.filter(function(t){return-1!==c.indexOf(t.format)}).map(function(n){return(0,l.default)({},n,{onClick:t.toggleFormat(n.format),isActive:t.isFormatActive(n.format)})}),v='<'+s+'>'+h+'';return(0,n.createElement)(E.View,null,(0,n.createElement)(T.BlockFormatControls,null,(0,n.createElement)(S.Toolbar,{controls:f})),(0,n.createElement)(y.default,{ref:function(n){t._editor=n},text:{text:v,eventCount:this.lastEventCount},onChange:this.onChange,onFocus:this.props.onFocus,onBlur:this.props.onBlur,onEnter:this.onEnter,onBackspace:this.onBackspace,onContentSizeChange:this.onContentSizeChange,onActiveFormatsChange:this.onActiveFormatsChange,onCaretVerticalPositionChange:this.props.onCaretVerticalPositionChange,isSelected:this.props.isSelected,blockType:{tag:s},color:'black',maxImagesWidth:200,style:u}))}}]),o})(n.Component);e.RichText=P,P.defaultProps={formattingControls:x.map(function(t){return t.format}),format:'string'};var z=(0,F.compose)([F.withInstanceId])(P);z.Content=function(t){var s,l=t.value,u=t.format,c=t.tagName,h=(0,o.default)(t,["value","format","tagName"]);switch(u){case'string':s=(0,n.createElement)(n.RawHTML,null,l)}return c?(0,n.createElement)(c,h,s):s},z.isEmpty=function(t){return!t||!t.length},z.Content.defaultProps={format:'string'};var I=z;e.default=I},1089,[1,330,6,44,43,9,19,20,27,30,33,29,1090,2,332,864,926,1020,1093,1128,807,878]); +__d(function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var u=t(r(d[1])).default;e.default=u},1090,[1,1091]); +__d(function(g,r,i,a,m,e,d){var t=r(d[0]),n=r(d[1]);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=r(d[2]),u=n(r(d[3])),s=n(r(d[4])),c=n(r(d[5])),l=n(r(d[6])),f=n(r(d[7])),p=n(r(d[8])),C=n(r(d[9])),h=n(r(d[10])),v=n(r(d[11])),F=n(r(d[12])),E=n(r(d[13])),_=t(r(d[14])),A=n(r(d[15])),b=_.UIManager.RCTAztecView,T=(function(t){function n(){var t,o;(0,l.default)(this,n);for(var u=arguments.length,s=new Array(u),c=0;c0&&void 0!==arguments[0]?arguments[0]:{},u=arguments.length>1?arguments[1]:void 0;switch(u.type){case'ADD_FORMAT_TYPES':return(0,n.default)({},t,(0,o.keyBy)(u.formatTypes,'name'));case'REMOVE_FORMAT_TYPES':return(0,o.omit)(t,u.names)}return t}var f=(0,r(d[3]).combineReducers)({formatTypes:u});e.default=f},1095,[1,43,332,809]); +__d(function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.getFormatType=function(t,n){return t.formatTypes[n]},e.getFormatTypeForBareElement=function(t,n){return(0,o.find)(u(t),function(t){var o=t.tagName;return n===o})},e.getFormatTypeForClassName=function(t,n){return(0,o.find)(u(t),function(t){var o=t.className;return null!==o&&(" "+n+" ").indexOf(" "+o+" ")>=0})},e.getFormatTypes=void 0;var n=t(r(d[1])),o=r(d[2]),u=(0,n.default)(function(t){return Object.values(t.formatTypes)},function(t){return[t.formatTypes]});e.getFormatTypes=u},1096,[1,887,332]); +__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.addFormatTypes=function(n){return{type:'ADD_FORMAT_TYPES',formatTypes:(0,t.castArray)(n)}},e.removeFormatTypes=function(n){return{type:'REMOVE_FORMAT_TYPES',names:(0,t.castArray)(n)}};var t=r(d[0])},1097,[332]); +__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.applyFormat=function(o,s){var l=o.formats,p=o.text,u=o.start,v=o.end,y=arguments.length>2&&void 0!==arguments[2]?arguments[2]:u,c=arguments.length>3&&void 0!==arguments[3]?arguments[3]:v,h=l.slice(0);if(y===c){var x=(0,t.find)(h[y],{type:s.type});if(!x){var _=h[y-1]||[],F=(0,t.find)(_,{type:s.type});return{formats:l,text:p,start:u,end:v,formatPlaceholder:{index:y,format:F?void 0:s}}}for(;(0,t.find)(h[y],x);)f(h,y,s),y--;for(c++;(0,t.find)(h[c],x);)f(h,c,s),c++}else for(var P=y;P0&&void 0!==arguments[0]?arguments[0]:{},n=t.element,o=t.text,s=t.html,l=t.range,u=t.multilineTag,v=t.multilineWrapperTags,p=t.removeNode,c=t.unwrapNode,h=t.filterString,N=t.removeAttribute;if('string'==typeof o&&o.length>0)return{formats:Array(o.length),text:o};'string'==typeof s&&s.length>0&&(n=(0,f.createElement)(document,s));if('object'!=typeof n)return{formats:[],text:''};if(!u)return b({element:n,range:l,removeNode:p,unwrapNode:c,filterString:h,removeAttribute:N});return y({element:n,range:l,multilineTag:u,multilineWrapperTags:v,removeNode:p,unwrapNode:c,filterString:h,removeAttribute:N})};var n=t(r(d[1])),o=r(d[2]),s=r(d[3]),l=r(d[4]),f=r(d[5]),u=r(d[6]),v=window.Node,p=v.TEXT_NODE,c=v.ELEMENT_NODE;function h(t,n){for(var o in t)if(t[o]===n)return o}function N(t){var n,s=t.type,l=t.attributes;if(l&&l.class&&(n=(0,o.select)('core/rich-text').getFormatTypeForClassName(l.class))&&(l.class=(" "+l.class+" ").replace(" "+n.className+" ",' ').trim(),l.class||delete l.class),n||(n=(0,o.select)('core/rich-text').getFormatTypeForBareElement(s)),!n)return l?{type:s,attributes:l}:{type:s};if(!l)return{type:n.name};var f={},u={};for(var v in l){var p=h(n.attributes,v);p?f[p]=l[v]:u[v]=l[v]}return{type:n.name,attributes:f,unregisteredAttributes:u}}function T(t,n,o,s){if(o){var l=n.parentNode,f=o.startContainer,u=o.startOffset,v=o.endContainer,c=o.endOffset,h=t.text.length;void 0!==s.start?t.start=h+s.start:n===f&&n.nodeType===p?t.start=h+u:l===f&&n===f.childNodes[u]?t.start=h:l===f&&n===f.childNodes[u-1]?t.start=h+s.text.length:n===f&&(t.start=h),void 0!==s.end?t.end=h+s.end:n===v&&n.nodeType===p?t.end=h+c:l===v&&n===v.childNodes[c-1]?t.end=h+s.text.length:l===v&&n===v.childNodes[c]?t.end=h:n===v&&(t.end=h+c)}}function x(t,n,o){if(n){var s=n.startContainer,l=n.endContainer,f=n.startOffset,u=n.endOffset;return t===s&&(f=o(t.nodeValue.slice(0,f)).length),t===l&&(u=o(t.nodeValue.slice(0,u)).length),{startContainer:s,startOffset:f,endContainer:l,endOffset:u}}}function b(t){var o=t.element,f=t.range,v=t.multilineTag,h=t.multilineWrapperTags,E=t.currentWrapperTags,C=void 0===E?[]:E,w=t.removeNode,O=t.unwrapNode,W=t.filterString,S=t.removeAttribute,_={formats:[],text:''};if(!o)return _;if(!o.hasChildNodes())return T(_,o,f,{formats:[],text:''}),_;for(var F=o.childNodes.length,L=function(t){return t=t.replace(/[\n\r\t]+/g,' '),W&&(t=W(t)),t},R=0;R0){var W=N.length>0?[N]:[,];x.formats=x.formats.concat(W),x.text+=u.LINE_SEPARATOR}T(x,E,o,C),x.formats=x.formats.concat(C.formats),x.text+=C.text}}return x}function A(t){var n=t.element,o=t.removeAttribute;if(n.hasAttributes()){for(var s,l=n.attributes.length,f=0;f1&&void 0!==arguments[1]?arguments[1]:'';'string'==typeof f&&(f=(0,t.create)({text:f}));return(0,o.normaliseFormats)(n.reduce(function(t,o){var n=o.formats,c=o.text;return{text:t.text+f.text+c,formats:t.formats.concat(f.formats,n)}}))};var t=r(d[0]),o=r(d[1])},1112,[1103,1099]); +__d(function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.registerFormatType=function(t,v){if('string'!=typeof(v=(0,c.default)({name:t},v)).name)return void window.console.error('Format names must be strings.');if(!/^[a-z][a-z0-9-]*\/[a-z][a-z0-9-]*$/.test(v.name))return void window.console.error('Format names must contain a namespace prefix, include only lowercase alphanumeric characters or dashes, and start with a letter. Example: my-plugin/my-custom-format');if((0,p.select)('core/rich-text').getFormatType(v.name))return void window.console.error('Format "'+v.name+'" is already registered.');if('string'!=typeof v.tagName||''===v.tagName)return void window.console.error('Format tag names must be a string.');if(('string'!=typeof v.className||''===v.className)&&null!==v.className)return void window.console.error('Format class names must be a string, or null to handle bare elements.');if(!/^[_a-zA-Z]+[a-zA-Z0-9-]*$/.test(v.className))return void window.console.error('A class name must begin with a letter, followed by any number of hyphens, letters, or numbers.');if(null===v.className){var b=(0,p.select)('core/rich-text').getFormatTypeForBareElement(v.tagName);if(b)return void window.console.error("Format \""+b.name+"\" is already registered to handle bare tag name \""+v.tagName+"\".")}else{var x=(0,p.select)('core/rich-text').getFormatTypeForClassName(v.className);if(x)return void window.console.error("Format \""+x.name+"\" is already registered to handle class name \""+v.className+"\".")}if(!('title'in v)||''===v.title)return void window.console.error('The format "'+v.name+'" must have a title.');if('keywords'in v&&v.keywords.length>3)return void window.console.error('The format "'+v.name+'" can have a maximum of 3 keywords.');if('string'!=typeof v.title)return void window.console.error('Format titles must be strings.');(0,p.dispatch)('core/rich-text').addFormatTypes(v);var y=(0,f.default)(function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:w,n=arguments.length>1?arguments[1]:void 0;return(0,s.default)(t).concat([n])});v.__experimentalGetPropsForEditableTreePreparation&&(0,h.addFilter)('experimentalRichText',t,function(s){var f=s;(v.__experimentalCreatePrepareEditableTree||v.__experimentalCreateFormatToValue||v.__experimentalCreateValueToFormat)&&(f=function(o){var u={};if(v.__experimentalCreatePrepareEditableTree&&(u.prepareEditableTree=y(o.prepareEditableTree,v.__experimentalCreatePrepareEditableTree(o["format_"+t],{richTextIdentifier:o.identifier,blockClientId:o.clientId}))),v.__experimentalCreateOnChangeEditableValue){var f=Object.keys(o).reduce(function(n,l){var s=o[l],c="format_"+t+"_dispatch_";if(l.startsWith(c)){var u=l.replace(c,'');n[u]=s}return n},{});u.onChangeEditableValue=y(o.onChangeEditableValue,v.__experimentalCreateOnChangeEditableValue((0,c.default)({},o["format_"+t],f),{richTextIdentifier:o.identifier,blockClientId:o.clientId}))}return(0,n.createElement)(s,(0,l.default)({},o,u))});var h=[(0,p.withSelect)(function(n,l){var s=l.clientId,c=l.identifier;return(0,o.default)({},"format_"+t,v.__experimentalGetPropsForEditableTreePreparation(n,{richTextIdentifier:c,blockClientId:s}))})];return v.__experimentalGetPropsForEditableTreeChangeHandler&&h.push((0,p.withDispatch)(function(n,o){var l=o.clientId,s=o.identifier,c=v.__experimentalGetPropsForEditableTreeChangeHandler(n,{richTextIdentifier:s,blockClientId:l});return(0,u.mapKeys)(c,function(n,o){return"format_"+t+"_dispatch_"+o})})),(0,_.compose)(h)(f)});return v};var n=r(d[1]),o=t(r(d[2])),l=t(r(d[3])),s=t(r(d[4])),c=t(r(d[5])),u=r(d[6]),f=t(r(d[7])),p=r(d[8]),h=r(d[9]),_=r(d[10]),w=[]},1113,[1,330,44,8,15,43,332,884,809,894,864]); +__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.removeFormat=function(f,l){var s=f.formats,v=f.text,u=f.start,c=f.end,_=arguments.length>2&&void 0!==arguments[2]?arguments[2]:u,h=arguments.length>3&&void 0!==arguments[3]?arguments[3]:c,p=s.slice(0);if(_===h){for(var y=(0,t.find)(p[_],{type:l});(0,t.find)(p[_],y);)o(p,_,l),_--;for(h++;(0,t.find)(p[h],y);)o(p,h,l),h++}else for(var x=_;x2&&void 0!==arguments[2]?arguments[2]:f,x=arguments.length>3&&void 0!==arguments[3]?arguments[3]:v;'string'==typeof o&&(o=(0,t.create)({text:o}));var _=u+o.text.length;return(0,n.normaliseFormats)({formats:c.slice(0,u).concat(o.formats,c.slice(x)),text:l.slice(0,u)+o.text+l.slice(x),start:_,end:_})};var t=r(d[0]),n=r(d[1])},1116,[1103,1099]); +__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.replace=function(n,o,l){var c=n.formats,f=n.text,s=n.start,u=n.end;return f=f.replace(o,function(t){for(var n=arguments.length,o=new Array(n>1?n-1:0),f=1;f1&&void 0!==arguments[1]?arguments[1]:s.start,l=arguments.length>2&&void 0!==arguments[2]?arguments[2]:s.end,v=(0,t.getTextContent)(s).slice(0,f).lastIndexOf(o.LINE_SEPARATOR),_=s.formats[v],u=[,];_&&(u=[_]);var c={formats:u,text:o.LINE_SEPARATOR};return(0,n.insert)(s,c,f,l)};var t=r(d[0]),n=r(d[1]),o=r(d[2])},1118,[1110,1116,1105]); +__d(function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.insertObject=function(t,c,f,s){var v={text:u,formats:[[(0,n.default)({},c,{object:!0})]]};return(0,o.insert)(t,v,f,s)};var n=t(r(d[1])),o=r(d[2]),u="\ufffc"},1119,[1,43,1116]); +__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.slice=function(t){var o=t.formats,n=t.text,s=t.start,f=t.end,l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:s,c=arguments.length>2&&void 0!==arguments[2]?arguments[2]:f;if(void 0===l||void 0===c)return{formats:o,text:n};return{formats:o.slice(l,c),text:n.slice(l,c)}}},1120,[]); +__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.split=function(t,s){var l=t.formats,o=t.text,c=t.start,f=t.end;if('string'!=typeof s)return n.apply(void 0,arguments);var u=0;return o.split(s).map(function(t){var n=u,o={formats:l.slice(n,n+t.length),text:t};return u+=s.length+t.length,void 0!==c&&void 0!==f&&(c>=n&&cn&&(o.start=0),f>=n&&fu&&(o.end=t.length)),o})};var t=r(d[0]);function n(n){var s=n.formats,l=n.text,o=n.start,c=n.end,f=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o,u=arguments.length>2&&void 0!==arguments[2]?arguments[2]:c,v={formats:s.slice(0,f),text:l.slice(0,f)},p={formats:s.slice(u),text:l.slice(u),start:0,end:0};return[(0,t.replace)(v,/\u2028+$/,''),(0,t.replace)(p,/^\u2028+/,'')]}},1121,[1117]); +__d(function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.toDom=w,e.apply=function(t){var n=t.value,o=t.current,l=t.multilineTag,u=t.multilineWrapperTags,f=t.createLinePadding,s=t.prepareEditableTree,p=w({value:n,multilineTag:l,multilineWrapperTags:u,createLinePadding:f,prepareEditableTree:s}),c=p.body,v=p.selection;L(c,o),void 0!==n.start&&x(v,o)},e.applyValue=L,e.applySelection=x;var n=t(r(d[1])),o=t(r(d[2])),l=r(d[3]),u=r(d[4]),f=window.Node,s=f.TEXT_NODE,p=f.ELEMENT_NODE;function c(t,n,l){for(var u=t.parentNode,f=0;t=t.previousSibling;)f++;return l=[f].concat((0,o.default)(l)),u!==n&&(l=c(u,n,l)),l}function v(t,n){for(n=(0,o.default)(n);t&&n.length>1;)t=t.childNodes[n.shift()];return{node:t,offset:n[0]}}var h=function(){return(0,u.createElement)(document,'')};function T(t,n){'string'==typeof n&&(n=t.ownerDocument.createTextNode(n));var o=n,l=o.type,u=o.attributes;if(l)for(var f in n=t.ownerDocument.createElement(l),u)n.setAttribute(f,u[f]);return t.appendChild(n)}function E(t,n){t.appendData(n)}function N(t){return t.lastChild}function C(t){return t.parentNode}function b(t){return t.nodeType===s}function y(t){return t.nodeValue}function P(t){return t.parentNode.removeChild(t)}function S(t){for(var n=t.element,o=t.createLinePadding,l=t.multilineWrapperTags,u=n.childNodes.length,f=n.ownerDocument,p=0;p0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1?arguments[1]:void 0;return t.reduce(function(t,o){return o(t,n.text)},n.formats)}function w(t){var o=t.value,u=t.multilineTag,f=t.multilineWrapperTags,s=t.createLinePadding,p=t.prepareEditableTree,v=[],w=[],L=(0,l.toTree)({value:(0,n.default)({},o,{formats:D(p,o)}),multilineTag:u,multilineWrapperTags:f,createEmpty:h,append:T,getLastChild:N,getParent:C,isText:b,getText:y,remove:P,appendText:E,onStartIndex:function(t,n){v=c(n,t,[n.nodeValue.length])},onEndIndex:function(t,n){w=c(n,t,[n.nodeValue.length])},isEditableTree:!0});return s&&S({element:L,createLinePadding:s,multilineWrapperTags:f}),{body:L,selection:{startPath:v,endPath:w}}}function L(t,n){for(var o,l=0;o=t.firstChild;){var u=n.childNodes[l];u?u.isEqualNode(o)?t.removeChild(o):n.replaceChild(o,u):n.appendChild(o),l++}for(;n.childNodes[l];)n.removeChild(n.childNodes[l])}function x(t,n){var o,l,u=v(n,t.startPath),f=u.node,c=u.offset,h=v(n,t.endPath),T=h.node,E=h.offset,N=window.getSelection(),C=n.ownerDocument.createRange(),b=f===T&&c===E;if(b&&0===c&&f.previousSibling&&f.previousSibling.nodeType===p&&'BR'!==f.previousSibling.nodeName?(f.insertData(0,"\ufeff"),C.setStart(f,1),C.setEnd(T,1)):b&&0===c&&f===s&&0===f.nodeValue.length?(f.insertData(0,"\ufeff"),C.setStart(f,1),C.setEnd(T,1)):(C.setStart(f,c),C.setEnd(T,E)),N.rangeCount>0){if(o=C,l=N.getRangeAt(0),o.startContainer===l.startContainer&&o.startOffset===l.startOffset&&o.endContainer===l.endContainer&&o.endOffset===l.endOffset)return;N.removeAllRanges()}N.addRange(C)}},1122,[1,43,15,1123,1106]); +__d(function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.toTree=function(t){var o,u,f,l=t.value,E=t.multilineTag,p=t.multilineWrapperTags,v=void 0===p?[]:p,A=t.createEmpty,T=t.append,R=t.getLastChild,_=t.getParent,b=t.isText,N=t.getText,y=t.remove,O=t.appendText,P=t.onStartIndex,h=t.onEndIndex,x=t.isEditableTree,I=l.formats,j=l.text,L=l.start,S=l.end,C=l.formatPlaceholder,B=I.length+1,H=A(),M={type:E};E?(T(T(H,{type:E}),''),u=o=[M]):T(H,'');function W(t,n){if(x&&C&&C.index===n){var o=_(t);t=void 0===C.format?_(o):T(o,c(C.format)),t=T(t,s.ZERO_WIDTH_NO_BREAK_SPACE)}return t}for(var D=function(t){var l=j.charAt(t),p=I[t];E&&(p=l===s.LINE_SEPARATOR?o=(p||[]).reduce(function(t,n){return l===s.LINE_SEPARATOR&&-1!==v.indexOf(n.type)&&(t.push(n),t.push(M)),t},[M]):(0,n.default)(o).concat((0,n.default)(p||[])));var A=R(H);if(f===s.LINE_SEPARATOR){for(var x=A;!b(x);)x=R(x);P&&L===t&&P(H,x),h&&S===t&&h(H,x)}if(p&&p.forEach(function(t,n){if(!A||!u||t!==u[n]||l===s.LINE_SEPARATOR&&p.length-1===n){var o=_(A),f=T(o,c(t));b(A)&&0===N(A).length&&y(A),A=T(t.object?o:f,'')}else A=R(A)}),l===s.LINE_SEPARATOR)return u=p,f=l,"continue";A=W(A,0),0===t&&(P&&0===L&&P(H,A),h&&0===S&&h(H,A)),l!==s.OBJECT_REPLACEMENT_CHARACTER&&('\n'===l?(A=T(_(A),{type:'br',object:!0}),A=T(_(A),'')):b(A)?O(A,l):A=T(_(A),l)),A=W(A,t+1),P&&L===t+1&&P(H,A),h&&S===t+1&&h(H,A),u=p,f=l},F=0;F":"<"+u+p+">"+x(o)+""}function x(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).map(function(n){return void 0===n.text?v(n):(0,t.escapeHTML)(n.text)}).join('')}},1125,[336,1123]); +__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.toggleFormat=function(u,p){if((0,t.getActiveFormat)(u,p.type))return(0,o.removeFormat)(u,p.type);return(0,n.applyFormat)(u,p)};var t=r(d[0]),o=r(d[1]),n=r(d[2])},1126,[1107,1114,1098]); +__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.unregisterFormatType=function(n){var c=(0,t.select)('core/rich-text').getFormatType(n);if(!c)return void window.console.error("Format "+n+" is not registered.");c.__experimentalCreatePrepareEditableTree&&c.__experimentalGetPropsForEditableTreePreparation&&(0,o.removeFilter)('experimentalRichText',n);return(0,t.dispatch)('core/rich-text').removeFormatTypes(n),c};var t=r(d[0]),o=r(d[1])},1127,[809,894]); +__d(function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.isKeyboardEvent=e.shortcutAriaLabel=e.displayShortcut=e.displayShortcutList=e.rawShortcut=e.modifiers=e.SHIFT=e.COMMAND=e.CTRL=e.ALT=e.F10=e.DELETE=e.DOWN=e.RIGHT=e.UP=e.LEFT=e.SPACE=e.ESCAPE=e.ENTER=e.TAB=e.BACKSPACE=void 0;var n=t(r(d[1])),u=t(r(d[2])),o=r(d[3]),c=r(d[4]),l=r(d[5]);e.BACKSPACE=8;e.TAB=9;e.ENTER=13;e.ESCAPE=27;e.SPACE=32;e.LEFT=37;e.UP=38;e.RIGHT=39;e.DOWN=40;e.DELETE=46;e.F10=121;var f='alt';e.ALT=f;var s='ctrl';e.CTRL=s;e.COMMAND="meta";var p='shift';e.SHIFT=p;var v={primary:function(t){return t()?["meta"]:[s]},primaryShift:function(t){return t()?[p,"meta"]:[s,p]},primaryAlt:function(t){return t()?[f,"meta"]:[s,f]},secondary:function(t){return t()?[p,f,"meta"]:[s,p,f]},access:function(t){return t()?[s,f]:[p,f]},ctrl:function(){return[s]},alt:function(){return[f]},ctrlShift:function(){return[s,p]},shift:function(){return[p]},shiftAlt:function(){return[p,f]}};e.modifiers=v;var A=(0,o.mapValues)(v,function(t){return function(n){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:l.isAppleOS;return(0,u.default)(t(o)).concat([n.toLowerCase()]).join('+')}});e.rawShortcut=A;var S=(0,o.mapValues)(v,function(t){return function(c){var v,A=arguments.length>1&&void 0!==arguments[1]?arguments[1]:l.isAppleOS,S=A(),E=(v={},(0,n.default)(v,f,S?'\u2325':'Alt'),(0,n.default)(v,s,S?'^':'Ctrl'),(0,n.default)(v,"meta",'\u2318'),(0,n.default)(v,p,S?'\u21e7':'Shift'),v),h=t(A).reduce(function(t,n){var c=(0,o.get)(E,n,n);return S?(0,u.default)(t).concat([c]):(0,u.default)(t).concat([c,'+'])},[]),C=(0,o.capitalize)(c);return(0,u.default)(h).concat([C])}});e.displayShortcutList=S;var E=(0,o.mapValues)(S,function(t){return function(n){var u=arguments.length>1&&void 0!==arguments[1]?arguments[1]:l.isAppleOS;return t(n,u).join('')}});e.displayShortcut=E;var h=(0,o.mapValues)(v,function(t){return function(v){var A,S=arguments.length>1&&void 0!==arguments[1]?arguments[1]:l.isAppleOS,E=S(),h=(A={},(0,n.default)(A,p,'Shift'),(0,n.default)(A,"meta",E?'Command':'Control'),(0,n.default)(A,s,'Control'),(0,n.default)(A,f,E?'Option':'Alt'),(0,n.default)(A,',',(0,c.__)('Comma')),(0,n.default)(A,'.',(0,c.__)('Period')),(0,n.default)(A,'`',(0,c.__)('Backtick')),A);return(0,u.default)(t(S)).concat([v]).map(function(t){return(0,o.capitalize)((0,o.get)(h,t,t))}).join(E?' ':' + ')}});e.shortcutAriaLabel=h;var C=(0,o.mapValues)(v,function(t){return function(n,u){var c=arguments.length>2&&void 0!==arguments[2]?arguments[2]:l.isAppleOS,f=t(c);return!!f.every(function(t){return n[t+"Key"]})&&(u?n.key===u:(0,o.includes)(f,n.key.toLowerCase()))}});e.isKeyboardEvent=C},1128,[1,44,15,332,878,1129]); +__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.isAppleOS=function(){return'ios'===n.Platform.OS};var n=r(d[0])},1129,[2]); +__d(function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var l=r(d[1]),n=r(d[2]),o=t(r(d[3]));var u=function(t){return(0,l.createElement)(n.View,{style:o.default.emptyStateContainer},(0,l.createElement)(n.Text,{style:o.default.emptyStateTitle},"Image"),(0,l.createElement)(n.Text,{style:o.default.emptyStateDescription},"Select an image from your library."),(0,l.createElement)(n.View,{style:o.default.emptyStateButtonsContainer},(0,l.createElement)(n.Button,{title:"Media Library",onPress:t.onMediaLibraryPress})))};e.default=u},1130,[1,330,2,1131]); +__d(function(g,r,i,a,m,e,d){m.exports={emptyStateContainer:{alignItems:"center",backgroundColor:"#f2f2f2",paddingLeft:12,paddingRight:12,paddingTop:12,paddingBottom:12},emptyStateTitle:{textAlign:"center",fontWeight:"600",paddingBottom:12},emptyStateDescription:{textAlign:"center"},emptyStateButtonsContainer:{flexDirection:"row",alignItems:"center"}}},1131,[]); +__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var l=r(d[0]),t=r(d[1]),o=(0,l.createSlotFill)('BlockFormatControls'),c=o.Fill,f=o.Slot,u=(0,t.ifBlockEditSelected)(c);u.Slot=f;var n=u;e.default=n},1132,[926,1133]); +__d(function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.ifBlockEditSelected=e.withBlockEditContext=e.BlockEditContextProvider=void 0;var n=r(d[1]),o=t(r(d[2])),c=r(d[3]),l=r(d[4]),u=(0,n.createContext)({name:'',isSelected:!1,focusedElement:null,setFocusedElement:c.noop,clientId:null}),f=u.Consumer,E=u.Provider;e.BlockEditContextProvider=E;e.withBlockEditContext=function(t){return(0,l.createHigherOrderComponent)(function(c){return function(l){return(0,n.createElement)(f,null,function(u){return(0,n.createElement)(c,(0,o.default)({},l,t(u,l)))})}},'withBlockEditContext')};var C=(0,l.createHigherOrderComponent)(function(t){return function(o){return(0,n.createElement)(f,null,function(c){return c.isSelected&&(0,n.createElement)(t,o)})}},'ifBlockEditSelected');e.ifBlockEditSelected=C},1133,[1,330,8,332,864]); +__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var l=r(d[0]),t=r(d[1]),o=r(d[2]),n=(0,t.createSlotFill)('BlockControls'),c=n.Fill,u=n.Slot,f=(0,o.ifBlockEditSelected)(function(o){var n=o.controls,u=o.children;return(0,l.createElement)(c,null,(0,l.createElement)(t.Toolbar,{controls:n}),u)});f.Slot=u;var v=f;e.default=v},1134,[330,926,1133]); +__d(function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=r(d[1]),u=t(r(d[2])),l=t(r(d[3])),s=t(r(d[4])),o=t(r(d[5])),c=t(r(d[6])),f=t(r(d[7])),v=t(r(d[8])),E=r(d[9]),h=(function(t){function h(t){var n;return(0,u.default)(this,h),(n=(0,s.default)(this,(0,o.default)(h).call(this,t))).setFocusedElement=n.setFocusedElement.bind((0,f.default)((0,f.default)(n))),n.state={focusedElement:null,setFocusedElement:n.setFocusedElement},n}return(0,c.default)(h,t),(0,l.default)(h,[{key:"setFocusedElement",value:function(t){this.setState(function(n){return n.focusedElement===t?null:{focusedElement:t}})}},{key:"render",value:function(){return(0,n.createElement)(E.BlockEditContextProvider,{value:this.state},(0,n.createElement)(v.default,this.props))}}],[{key:"getDerivedStateFromProps",value:function(t){var n=t.clientId;return{name:t.name,isSelected:t.isSelected,clientId:n}}}]),h})(n.Component);e.default=h},1135,[1,330,19,20,27,30,33,29,1136,1133]); +__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.Edit=void 0;var t=r(d[0]),l=r(d[1]),n=r(d[2]),u=function(l){var u=l.name,o=(0,n.getBlockType)(u);if(!o)return null;var c=o.edit;return(0,t.createElement)(c,l)};e.Edit=u;var o=(0,l.withFilters)('editor.BlockEdit')(u);e.default=o},1136,[330,926,807]); +__d(function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.DefaultBlockAppender=f,e.default=void 0;var o=r(d[1]),n=r(d[2]),l=r(d[3]),c=r(d[4]),u=r(d[5]),s=r(d[6]),p=t(r(d[7]));function f(t){var c=t.isLocked,s=t.isVisible,f=t.onAppend,v=t.placeholder;if(c||!s)return null;var b=(0,u.decodeEntities)(v)||(0,l.__)("Start writing or press \u2295 to add content");return(0,o.createElement)(n.TouchableWithoutFeedback,{onPress:f},(0,o.createElement)(n.View,{style:p.default.blockHolder,pointerEvents:"box-only"},(0,o.createElement)(n.View,{style:p.default.blockContainer},(0,o.createElement)(n.TextInput,{style:p.default.textView,textAlignVertical:"top",multiline:!0,numberOfLines:0,value:b}))))}var v=(0,c.compose)((0,s.withSelect)(function(t,o){var n=t('core/editor'),l=n.getBlockCount,c=n.getEditorSettings,u=n.getTemplateLock,s=!l(o.rootClientId),p=c().bodyPlaceholder;return{isVisible:s,isLocked:!!u(o.rootClientId),placeholder:p}}),(0,s.withDispatch)(function(t,o){var n=t('core/editor'),l=n.insertDefaultBlock,c=n.startTyping;return{onAppend:function(){var t=o.rootClientId;l(void 0,t),c()}}}))(f);e.default=v},1137,[1,330,2,878,864,917,809,1138]); +__d(function(g,r,i,a,m,e,d){m.exports={blockHolder:{flexGrow:1,flexShrink:1},blockContainer:{backgroundColor:"#fff",paddingTop:8,paddingRight:8,paddingBottom:8,paddingLeft:8},textView:{color:"#87a6bc",fontSize:16}}},1138,[]); +__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=r(d[0]),t=r(d[1]),c=r(d[2]),n=r(d[3]),u=r(d[4]),l=r(d[5]);var s=(0,u.compose)([(0,n.withSelect)(function(o){return{hasRedo:o('core/editor').hasEditorRedo()}}),(0,n.withDispatch)(function(o){return{redo:o('core/editor').redo}})])(function(n){var u=n.hasRedo,s=n.redo;return(0,o.createElement)(c.IconButton,{icon:"redo",label:(0,t.__)('Redo'),shortcut:l.displayShortcut.primaryShift('z'),"aria-disabled":!u,onClick:u?s:void 0,className:"editor-history__redo"})});e.default=s},1139,[330,878,926,809,864,1128]); +__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=r(d[0]),t=r(d[1]),n=r(d[2]),u=r(d[3]),c=r(d[4]),l=r(d[5]);var s=(0,c.compose)([(0,u.withSelect)(function(o){return{hasUndo:o('core/editor').hasEditorUndo()}}),(0,u.withDispatch)(function(o){return{undo:o('core/editor').undo}})])(function(u){var c=u.hasUndo,s=u.undo;return(0,o.createElement)(n.IconButton,{icon:"undo",label:(0,t.__)('Undo'),shortcut:l.displayShortcut.primary('z'),"aria-disabled":!c,onClick:c?s:void 0,className:"editor-history__undo"})});e.default=s},1140,[330,878,926,809,864,1128]); +__d(function(g,r,i,a,m,e,d){},1141,[]); +__d(function(g,r,i,a,m,e,d){m.exports={blockCode:{fontFamily:"courier"}}},1142,[]); +__d(function(g,r,i,a,m,e,d){m.exports={blockCode:{fontFamily:"monospace"}}},1143,[]); +__d(function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.getLevelFromHeadingNodeName=y,e.settings=e.name=void 0;var n=r(d[1]),o=t(r(d[2])),c=t(r(d[3])),l=t(r(d[4])),h=r(d[5]),s=r(d[6]),u=r(d[7]),p=r(d[8]),f=r(d[9]),v=t(r(d[10]));function y(t){return Number(t.substr(1))}var b={className:!1,anchor:!0},N={content:{type:'string',source:'html',selector:'h1,h2,h3,h4,h5,h6',default:''},level:{type:'number',default:2},align:{type:'string'},placeholder:{type:'string'}};e.name='core/heading';var _={title:(0,s.__)('Heading'),description:(0,s.__)('Introduce new sections and organize content to help visitors (and search engines) understand the structure of your content.'),icon:(0,n.createElement)(f.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,n.createElement)(f.Path,{d:"M5 4v3h5.5v12h3V7H19V4z"}),(0,n.createElement)(f.Path,{fill:"none",d:"M0 0h24v24H0V0z"})),category:'common',keywords:[(0,s.__)('title'),(0,s.__)('subtitle')],supports:b,attributes:N,transforms:{from:[{type:'block',blocks:['core/paragraph'],transform:function(t){var n=t.content;return(0,u.createBlock)('core/heading',{content:n})}},{type:'raw',selector:'h1,h2,h3,h4,h5,h6',schema:{h1:{children:(0,u.getPhrasingContentSchema)()},h2:{children:(0,u.getPhrasingContentSchema)()},h3:{children:(0,u.getPhrasingContentSchema)()},h4:{children:(0,u.getPhrasingContentSchema)()},h5:{children:(0,u.getPhrasingContentSchema)()},h6:{children:(0,u.getPhrasingContentSchema)()}},transform:function(t){return(0,u.createBlock)('core/heading',(0,c.default)({},(0,u.getBlockAttributes)('core/heading',t.outerHTML),{level:y(t.nodeName)}))}}].concat((0,l.default)([2,3,4,5,6].map(function(t){return{type:'prefix',prefix:Array(t+1).join('#'),transform:function(n){return(0,u.createBlock)('core/heading',{level:t,content:n})}}}))),to:[{type:'block',blocks:['core/paragraph'],transform:function(t){var n=t.content;return(0,u.createBlock)('core/paragraph',{content:n})}}]},deprecated:[{supports:b,attributes:(0,c.default)({},(0,h.omit)(N,['level']),{nodeName:{type:'string',source:'property',selector:'h1,h2,h3,h4,h5,h6',property:'nodeName',default:'H2'}}),migrate:function(t){var n=t.nodeName,l=(0,o.default)(t,["nodeName"]);return(0,c.default)({},l,{level:y(n)})},save:function(t){var o=t.attributes,c=o.align,l=o.nodeName,h=o.content;return(0,n.createElement)(p.RichText.Content,{tagName:l.toLowerCase(),style:{textAlign:c},value:h})}}],merge:function(t,n){return{content:t.content+n.content}},edit:v.default,save:function(t){var o=t.attributes,c=o.align,l=o.level,h=o.content,s='h'+l;return(0,n.createElement)(p.RichText.Content,{tagName:s,style:{textAlign:c},value:h})}};e.settings=_},1144,[1,330,6,43,15,332,878,807,1020,926,1145]); +__d(function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=r(d[1]),o=t(r(d[2])),l=t(r(d[3])),c=t(r(d[4])),s=t(r(d[5])),u=t(r(d[6])),h=t(r(d[7])),p=t(r(d[8])),f=r(d[9]),v=r(d[10]),C=r(d[11]),x=r(d[12]);r(d[13]);var B=(function(t){function B(t){var n;return(0,l.default)(this,B),(n=(0,s.default)(this,(0,u.default)(B).call(this,t))).state={aztecHeight:0},n}return(0,h.default)(B,t),(0,c.default)(B,[{key:"render",value:function(){var t=this,l=this.props,c=l.attributes,s=l.setAttributes,u=l.mergeBlocks,h=l.insertBlocksAfter,B=c.level,_=c.placeholder,b=c.content,k='h'+B;return(0,n.createElement)(f.View,null,(0,n.createElement)(C.BlockControls,null,(0,n.createElement)(p.default,{minLevel:2,maxLevel:5,selectedLevel:B,onChange:function(t){return s({level:t})}})),(0,n.createElement)(C.RichText,{tagName:k,value:b,isSelected:this.props.isSelected,onFocus:this.props.onFocus,onBlur:this.props.onBlur,onCaretVerticalPositionChange:this.props.onCaretVerticalPositionChange,style:{minHeight:Math.max(50,this.state.aztecHeight)},onChange:function(n){var l=(0,x.parse)("\x3c!-- wp:heading {\"level\":"+B+"} --\x3e<"+k+">"+n.content+"\x3c!-- /wp:heading --\x3e")[0];s((0,o.default)({},t.props.attributes,{content:l.attributes.content}))},onMerge:u,onSplit:h?function(t,n){s({content:t});for(var o=arguments.length,l=new Array(o>2?o-2:0),c=2;c2?p-2:0),f=2;f'+n.content+'

\x3c!-- /wp:paragraph --\x3e')[0];c((0,o.default)({},t.props.attributes,{content:l.attributes.content}))},onSplit:this.splitBlock,onMerge:u,onContentSizeChange:function(n){t.setState({aztecHeight:n.aztecHeight})},placeholder:h||(0,v.__)('Add text or type / to add content')}))}}]),x})(n.Component);e.default=x},1152,[1,330,43,19,20,27,30,33,29,2,878,807,1020,1153]); +__d(function(g,r,i,a,m,e,d){m.exports={blockText:{minHeight:50}}},1153,[]); +__d(function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.settings=e.name=void 0;var n=r(d[1]),l=t(r(d[2])),c=t(r(d[3])),s=t(r(d[4])),o=t(r(d[5])),u=r(d[6]),h=r(d[7]),f=r(d[8]),p=r(d[9]),v=r(d[10]),b=t(r(d[11]));e.name='core/image';var y={url:{type:'string',source:'attribute',selector:'img',attribute:'src'},alt:{type:'string',source:'attribute',selector:'img',attribute:'alt',default:''},caption:{type:'string',source:'html',selector:'figcaption'},href:{type:'string',source:'attribute',selector:'figure > a',attribute:'href'},rel:{type:'string',source:'attribute',selector:'figure > a',attribute:'rel'},linkClass:{type:'string',source:'attribute',selector:'figure > a',attribute:'class'},id:{type:'number'},align:{type:'string'},width:{type:'number'},height:{type:'number'},linkDestination:{type:'string',default:'none'},linkTarget:{type:'string',source:'attribute',selector:'figure > a',attribute:'target'}},E={img:{attributes:['src','alt'],classes:['alignleft','aligncenter','alignright','alignnone',/^wp-image-\d+$/]}},w={figure:{require:['img'],children:(0,s.default)({},E,{a:{attributes:['href','rel','target'],children:E},figcaption:{children:(0,h.getPhrasingContentSchema)()}})}};function N(t,n){var l=document.implementation.createHTMLDocument('').body;l.innerHTML=t;var c=l.firstElementChild;if(c&&'A'===c.nodeName)return c.getAttribute(n)||void 0}var T={title:(0,u.__)('Image'),description:(0,u.__)('Insert an image to make a visual statement.'),icon:(0,n.createElement)(v.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,n.createElement)(v.Path,{d:"M0,0h24v24H0V0z",fill:"none"}),(0,n.createElement)(v.Path,{d:"m19 5v14h-14v-14h14m0-2h-14c-1.1 0-2 0.9-2 2v14c0 1.1 0.9 2 2 2h14c1.1 0 2-0.9 2-2v-14c0-1.1-0.9-2-2-2z"}),(0,n.createElement)(v.Path,{d:"m14.14 11.86l-3 3.87-2.14-2.59-3 3.86h12l-3.86-5.14z"})),category:'common',keywords:['img',(0,u.__)('photo')],attributes:y,transforms:{from:[{type:'raw',isMatch:function(t){return'FIGURE'===t.nodeName&&!!t.querySelector('img')},schema:w,transform:function(t){var n=t.className+' '+t.querySelector('img').className,l=/(?:^|\s)align(left|center|right)(?:$|\s)/.exec(n),c=l?l[1]:void 0,s=/(?:^|\s)wp-image-(\d+)(?:$|\s)/.exec(n),o=s?Number(s[1]):void 0,u=t.querySelector('a'),f=u&&u.href?'custom':void 0,p=u&&u.href?u.href:void 0,v=u&&u.rel?u.rel:void 0,b=u&&u.className?u.className:void 0,y=(0,h.getBlockAttributes)('core/image',t.outerHTML,{align:c,id:o,linkDestination:f,href:p,rel:v,linkClass:b});return(0,h.createBlock)('core/image',y)}},{type:'files',isMatch:function(t){return 1===t.length&&0===t[0].type.indexOf('image/')},transform:function(t){var n=t[0];return(0,h.createBlock)('core/image',{url:(0,p.createBlobURL)(n)})}},{type:'shortcode',tag:'caption',attributes:{url:{type:'string',source:'attribute',attribute:'src',selector:'img'},alt:{type:'string',source:'attribute',attribute:'alt',selector:'img'},caption:{shortcode:function(t,n){var l=n.shortcode,c=document.implementation.createHTMLDocument('').body;return c.innerHTML=l.content,c.removeChild(c.firstElementChild),c.innerHTML.trim()}},href:{shortcode:function(t,n){return N(n.shortcode.content,'href')}},rel:{shortcode:function(t,n){return N(n.shortcode.content,'rel')}},linkClass:{shortcode:function(t,n){return N(n.shortcode.content,'class')}},id:{type:'number',shortcode:function(t){var n=t.named.id;if(n)return parseInt(n.replace('attachment_',''),10)}},align:{type:'string',shortcode:function(t){var n=t.named.align;return(void 0===n?'alignnone':n).replace('align','')}}}}]},getEditWrapperProps:function(t){var n=t.align,l=t.width;if('left'===n||'center'===n||'right'===n||'wide'===n||'full'===n)return{'data-align':n,'data-resized':!!l}},edit:b.default,save:function(t){var l,s=t.attributes,u=s.url,h=s.alt,p=s.caption,v=s.align,b=s.href,y=s.rel,E=s.linkClass,w=s.width,N=s.height,T=s.id,x=s.linkTarget,k=(0,o.default)((l={},(0,c.default)(l,"align"+v,v),(0,c.default)(l,'is-resized',w||N),l)),C=(0,n.createElement)("img",{src:u,alt:h,className:T?"wp-image-"+T:null,width:w,height:N}),_=(0,n.createElement)(n.Fragment,null,b?(0,n.createElement)("a",{className:E,href:b,target:x,rel:y},C):C,!f.RichText.isEmpty(p)&&(0,n.createElement)(f.RichText.Content,{tagName:"figcaption",value:p}));return'left'===v||'right'===v||'center'===v?(0,n.createElement)("div",null,(0,n.createElement)("figure",{className:k},_)):(0,n.createElement)("figure",{className:k},_)},deprecated:[{attributes:y,save:function(t){var l,s=t.attributes,u=s.url,h=s.alt,p=s.caption,v=s.align,b=s.href,y=s.width,E=s.height,w=s.id,N=(0,o.default)((l={},(0,c.default)(l,"align"+v,v),(0,c.default)(l,'is-resized',y||E),l)),T=(0,n.createElement)("img",{src:u,alt:h,className:w?"wp-image-"+w:null,width:y,height:E});return(0,n.createElement)("figure",{className:N},b?(0,n.createElement)("a",{href:b},T):T,!f.RichText.isEmpty(p)&&(0,n.createElement)(f.RichText.Content,{tagName:"figcaption",value:p}))}},{attributes:y,save:function(t){var l=t.attributes,c=l.url,s=l.alt,o=l.caption,u=l.align,h=l.href,p=l.width,v=l.height,b=l.id,y=(0,n.createElement)("img",{src:c,alt:s,className:b?"wp-image-"+b:null,width:p,height:v});return(0,n.createElement)("figure",{className:u?"align"+u:null},h?(0,n.createElement)("a",{href:h},y):y,!f.RichText.isEmpty(o)&&(0,n.createElement)(f.RichText.Content,{tagName:"figcaption",value:o}))}},{attributes:y,save:function(t){var c=t.attributes,s=c.url,o=c.alt,u=c.caption,h=c.align,p=c.href,v=c.width,b=c.height,y=v||b?{width:v,height:b}:{},E=(0,n.createElement)("img",(0,l.default)({src:s,alt:o},y)),w={};return v?w={width:v}:'left'!==h&&'right'!==h||(w={maxWidth:'50%'}),(0,n.createElement)("figure",{className:h?"align"+h:null,style:w},p?(0,n.createElement)("a",{href:p},E):E,!f.RichText.isEmpty(u)&&(0,n.createElement)(f.RichText.Content,{tagName:"figcaption",value:u}))}}]};e.settings=T},1154,[1,330,8,44,43,1002,878,807,1020,1155,926,1156]); +__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.createBlobURL=function(n){var o=t(n);return u[o]=n,o},e.getBlobByURL=function(n){return u[n]},e.revokeBlobURL=function(n){u[n]&&o(n);delete u[n]},e.isBlobURL=function(n){if(!n||!n.indexOf)return!1;return 0===n.indexOf('blob:')};var n=window.URL,t=n.createObjectURL,o=n.revokeObjectURL,u={}},1155,[]); +__d(function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=r(d[1]),l=t(r(d[2])),o=t(r(d[3])),s=t(r(d[4])),u=t(r(d[5])),c=t(r(d[6])),f=t(r(d[7])),h=r(d[8]),p=t(r(d[9])),y=r(d[10]),b=r(d[11]),v=r(d[12]),E=t(r(d[13])),P=(function(t){function P(){var t;return(0,l.default)(this,P),(t=(0,s.default)(this,(0,u.default)(P).apply(this,arguments))).onMediaLibraryPress=t.onMediaLibraryPress.bind((0,f.default)((0,f.default)(t))),t}return(0,c.default)(P,t),(0,o.default)(P,[{key:"onUploadPress",value:function(){}},{key:"onMediaLibraryPress",value:function(){var t=this;p.default.onMediaLibraryPress(function(n){n&&t.props.setAttributes({url:n})})}},{key:"toolbarEditButton",value:function(){return(0,n.createElement)(b.Toolbar,null,(0,n.createElement)(b.ToolbarButton,{className:"components-toolbar__control",label:(0,v.__)('Edit image'),icon:"edit",onClick:this.onMediaLibraryPress}))}},{key:"render",value:function(){var t=this.props,l=t.attributes,o=t.isSelected,s=t.setAttributes,u=l.url,c=l.caption,f=l.height,p=l.width;return u?(0,n.createElement)(h.View,{style:{flex:1}},(0,n.createElement)(y.BlockControls,null,this.toolbarEditButton()),(0,n.createElement)(E.default,{src:u},function(t){var l=t.imageWidthWithinContainer,o=t.imageHeightWithinContainer,s=o;f>0&&f0&&p0||o)&&(0,n.createElement)(h.View,{style:{padding:12,flex:1}},(0,n.createElement)(h.TextInput,{style:{textAlign:'center'},underlineColorAndroid:"transparent",value:c,placeholder:'Write caption\u2026',onChangeText:function(t){return s({caption:t})}}))):(0,n.createElement)(y.MediaPlaceholder,{onUploadPress:this.onUploadPress,onMediaLibraryPress:this.onMediaLibraryPress})}}]),P})(n.Component);e.default=P},1156,[1,330,19,20,27,30,33,29,2,1157,1020,926,878,1158]); +__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.sendNativeEditorDidLayout=function(){u&&n.editorDidLayout()},e.subscribeParentGetHtml=function(t){return o.addListener('requestGetHtml',t)},e.subscribeParentToggleHTMLMode=function(t){return o.addListener('toggleHTMLMode',t)},e.subscribeUpdateHtml=function(t){return o.addListener('updateHtml',t)},e.default=void 0;var t=r(d[0]),n=t.NativeModules.RNReactNativeGutenbergBridge,u='ios'===t.Platform.OS,o=new t.NativeEventEmitter(n);var s=n;e.default=s},1157,[2]); +__d(function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var h=r(d[1]),n=t(r(d[2])),o=t(r(d[3])),s=t(r(d[4])),c=t(r(d[5])),u=t(r(d[6])),l=t(r(d[7])),f=r(d[8]),v=r(d[9]),y=(function(t){function y(){var t;return(0,n.default)(this,y),(t=(0,s.default)(this,(0,c.default)(y).apply(this,arguments))).state={width:void 0,height:void 0},t.onLayout=t.onLayout.bind((0,l.default)((0,l.default)(t))),t}return(0,u.default)(y,t),(0,o.default)(y,[{key:"componentDidUpdate",value:function(t){this.props.src!==t.src&&(this.image={},this.setState({width:void 0,height:void 0}),this.fetchImageSize()),this.props.dirtynessTrigger!==t.dirtynessTrigger&&this.calculateSize()}},{key:"componentDidMount",value:function(){this.fetchImageSize()}},{key:"fetchImageSize",value:function(){var t=this;f.Image.getSize(this.props.src,function(h,n){t.image={width:h,height:n},t.calculateSize()})}},{key:"calculateSize",value:function(){if(void 0!==this.image&&void 0!==this.container){var t=(0,v.calculatePreferedImageSize)(this.image,this.container),h=t.width,n=t.height;this.setState({width:h,height:n})}}},{key:"onLayout",value:function(t){var h=t.nativeEvent.layout,n=h.width,o=h.height;this.container={clientWidth:n,clientHeight:o},this.calculateSize()}},{key:"render",value:function(){var t={imageWidth:this.image&&this.image.width,imageHeight:this.image&&this.image.height,containerWidth:this.container&&this.container.width,containerHeight:this.container&&this.container.height,imageWidthWithinContainer:this.state.width,imageHeightWithinContainer:this.state.height};return(0,h.createElement)(f.View,{onLayout:this.onLayout},this.props.children(t))}}]),y})(h.Component);e.default=y},1158,[1,330,19,20,27,30,33,29,2,1159]); +__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.calculatePreferedImageSize=function(t,h){var n=h.clientWidth,c=t.width>n,u=t.height/t.width,l=c?n:t.width,f=c?n*u:t.height;return{width:l,height:f}}},1159,[]); +__d(function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.settings=e.name=void 0;var n=r(d[1]),o=r(d[2]),c=r(d[3]),s=r(d[4]),l=t(r(d[5]));e.name='core/nextpage';var u={title:(0,o.__)('Page Break'),description:(0,o.__)('Separate your content into a multi-page experience.'),icon:(0,n.createElement)(s.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,n.createElement)(s.G,null,(0,n.createElement)(s.Path,{d:"M9 12h6v-2H9zm-7 0h5v-2H2zm15 0h5v-2h-5zm3 2v2l-6 6H6a2 2 0 0 1-2-2v-6h2v6h6v-4a2 2 0 0 1 2-2h6zM4 8V4a2 2 0 0 1 2-2h12a2 2 0 0 1 2 2v4h-2V4H6v4z"}))),category:'layout',keywords:[(0,o.__)('next page'),(0,o.__)('pagination')],supports:{customClassName:!1,className:!1,html:!1},attributes:{},transforms:{from:[{type:'raw',schema:{'wp-block':{attributes:['data-block']}},isMatch:function(t){return t.dataset&&'core/nextpage'===t.dataset.block},transform:function(){return(0,c.createBlock)('core/nextpage',{})}}]},edit:l.default,save:function(){return(0,n.createElement)(n.RawHTML,null,'\x3c!--nextpage--\x3e')}};e.settings=u},1160,[1,330,878,807,926,1161]); +__d(function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){var o=t.attributes.customText,b=void 0===o?(0,_.__)('Page break'):o;return(0,l.createElement)(n.View,{style:c.default['block-library-nextpage__container']},(0,l.createElement)(u.default,{text:b,textStyle:c.default['block-library-nextpage__text'],lineStyle:c.default['block-library-nextpage__line']}))};var l=r(d[1]),n=r(d[2]),u=t(r(d[3])),_=r(d[4]),c=t(r(d[5]))},1161,[1,330,2,1162,878,1163]); +__d(function(g,r,i,a,m,e,d){'use strict';Object.defineProperty(e,"__esModule",{value:!0});var t=(function(){function t(t,n){for(var o=0;o0&&void 0!==arguments[0]?arguments[0]:'',l=(0,f.parse)(t);o.props.resetBlocks(l)};var n=t.post||{id:1,content:{raw:t.initialHtml},type:'draft'};return o.props.setupEditor(n),o.lastHtml=(0,f.serialize)((0,f.parse)(t.initialHtml)),t.initialHtmlModeEnabled&&!t.showHtml&&o.toggleHtmlModeAction(),o}return(0,u.default)(p,t),(0,n.default)(p,[{key:"render",value:function(){return(0,o.createElement)(k.default,{rootClientId:this.props.rootClientId,serializeToNativeAction:this.serializeToNativeAction,toggleHtmlModeAction:this.toggleHtmlModeAction,updateHtmlAction:this.updateHtmlAction})}}]),p})(p.default.Component),B=(0,v.compose)([(0,H.withSelect)(function(t,o){var l=o.rootClientId,n=t('core/editor'),s=n.getBlocks,c=n.getBlockMode,u=n.getEditedPostContent;return{getBlocks:s,showHtml:'html'===c(l),editedPostContent:u()}}),(0,H.withDispatch)(function(t){var o=t('core/editor');return{resetBlocks:o.resetBlocks,setupEditor:o.setupEditor,toggleBlockMode:o.toggleBlockMode}})])(A);e.default=B},1164,[1,330,19,20,27,30,33,46,807,809,864,1157,1165]); +__d(function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=r(d[1]),o=t(r(d[2])),s=t(r(d[3])),u=t(r(d[4])),l=t(r(d[5])),c=t(r(d[6])),p=t(r(d[7])),f=r(d[8]),b=t(r(d[9])),h=r(d[10]),H=(function(t){function p(){return(0,o.default)(this,p),(0,u.default)(this,(0,l.default)(p).apply(this,arguments))}return(0,c.default)(p,t),(0,s.default)(p,[{key:"componentDidMount",value:function(){var t=this;this.subscriptionParentGetHtml=(0,f.subscribeParentGetHtml)(function(){t.props.serializeToNativeAction()}),this.subscriptionParentToggleHTMLMode=(0,f.subscribeParentToggleHTMLMode)(function(){t.props.toggleHtmlModeAction()}),this.subscriptionParentUpdateHtml=(0,f.subscribeUpdateHtml)(function(n){t.props.updateHtmlAction(n.html)})}},{key:"componentWillUnmount",value:function(){this.subscriptionParentGetHtml&&this.subscriptionParentGetHtml.remove(),this.subscriptionParentToggleHTMLMode&&this.subscriptionParentToggleHTMLMode.remove(),this.subscriptionParentUpdateHtml&&this.subscriptionParentUpdateHtml.remove()}},{key:"render",value:function(){return(0,n.createElement)(h.SlotFillProvider,null,(0,n.createElement)(b.default,this.props))}}]),p})(p.default.Component);e.default=H},1165,[1,330,19,20,27,30,33,46,1157,1166,926]); +__d(function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.BlockManager=void 0;var o=r(d[1]),l=t(r(d[2])),n=t(r(d[3])),s=t(r(d[4])),c=t(r(d[5])),u=t(r(d[6])),f=t(r(d[7])),h=t(r(d[8])),k=t(r(d[9])),y=r(d[10]),b=t(r(d[11])),p=r(d[12]),w=r(d[13]),B=t(r(d[14])),v=t(r(d[15])),S=t(r(d[16])),V=t(r(d[17])),I=t(r(d[18])),A=t(r(d[19])),C=t(r(d[20])),H=t(r(d[21])),D=r(d[22]),E=t(r(d[23])),L=r(d[24]),P=r(d[25]),T=r(d[26]),R=r(d[27]),K=r(d[28]),F=(function(t){function b(t){var o;return(0,s.default)(this,b),(o=(0,u.default)(this,(0,f.default)(b).call(this,t))).onCaretVerticalPositionChange=function(t,l,n){(0,D.handleCaretVerticalPositionChange)(o.scrollViewRef,t,l,n)},(0,k.default)((0,k.default)(o)).renderItem=o.renderItem.bind((0,k.default)((0,k.default)(o))),(0,k.default)((0,k.default)(o)).shouldFlatListPreventAutomaticScroll=o.shouldFlatListPreventAutomaticScroll.bind((0,k.default)((0,k.default)(o))),(0,k.default)((0,k.default)(o)).onSafeAreaInsetsUpdate=o.onSafeAreaInsetsUpdate.bind((0,k.default)((0,k.default)(o))),(0,k.default)((0,k.default)(o)).onBlockTypeSelected=o.onBlockTypeSelected.bind((0,k.default)((0,k.default)(o))),(0,k.default)((0,k.default)(o)).onRootViewLayout=o.onRootViewLayout.bind((0,k.default)((0,k.default)(o))),(0,k.default)((0,k.default)(o)).keyboardDidShow=o.keyboardDidShow.bind((0,k.default)((0,k.default)(o))),(0,k.default)((0,k.default)(o)).keyboardDidHide=o.keyboardDidHide.bind((0,k.default)((0,k.default)(o))),(0,k.default)((0,k.default)(o)).onCaretVerticalPositionChange=o.onCaretVerticalPositionChange.bind((0,k.default)((0,k.default)(o))),(0,k.default)((0,k.default)(o)).scrollViewInnerRef=o.scrollViewInnerRef.bind((0,k.default)((0,k.default)(o))),o.state={blockTypePickerVisible:!1,isKeyboardVisible:!1,rootViewHeight:0,safeAreaBottomInset:0},E.default.getSafeAreaInsetsForRootView().then(o.onSafeAreaInsetsUpdate),o}return(0,h.default)(b,t),(0,c.default)(b,[{key:"showBlockTypePicker",value:function(t){this.setState({blockTypePickerVisible:t})}},{key:"onBlockTypeSelected",value:function(t){this.setState({blockTypePickerVisible:!1});var o=(0,T.createBlock)(t);if(this.isReplaceable(this.props.selectedBlock))this.props.replaceBlock(this.props.selectedBlockClientId,o);else{var l=this.props.selectedBlockOrder+1||this.props.blockCount;this.props.insertBlock(o,l)}this.props.focusBlock(o.clientId)}},{key:"onSafeAreaInsetsUpdate",value:function(t){var o=t.safeAreaInsets;this.state.safeAreaBottomInset!==o.bottom&&this.setState((0,n.default)({},this.state,{safeAreaBottomInset:o.bottom}))}},{key:"onRootViewLayout",value:function(t){var o=t.nativeEvent.layout.height;this.setState({rootViewHeight:o},function(){(0,K.sendNativeEditorDidLayout)()})}},{key:"componentDidMount",value:function(){w.Keyboard.addListener('keyboardDidShow',this.keyboardDidShow),w.Keyboard.addListener('keyboardDidHide',this.keyboardDidHide),E.default.addEventListener('safeAreaInsetsForRootViewDidChange',this.onSafeAreaInsetsUpdate)}},{key:"componentWillUnmount",value:function(){w.Keyboard.removeListener('keyboardDidShow',this.keyboardDidShow),w.Keyboard.removeListener('keyboardDidHide',this.keyboardDidHide),E.default.removeEventListener('safeAreaInsetsForRootViewDidChange',this.onSafeAreaInsetsUpdate)}},{key:"keyboardDidShow",value:function(){this.setState({isKeyboardVisible:!0})}},{key:"keyboardDidHide",value:function(){this.setState({isKeyboardVisible:!1})}},{key:"scrollViewInnerRef",value:function(t){this.scrollViewRef=t}},{key:"shouldFlatListPreventAutomaticScroll",value:function(){return this.state.blockTypePickerVisible}},{key:"renderList",value:function(){var t=this;return(0,o.createElement)(w.View,{style:{flex:1}},(0,o.createElement)(R.DefaultBlockAppender,{rootClientId:this.props.rootClientId}),(0,o.createElement)(D.KeyboardAwareFlatList,{innerRef:this.scrollViewInnerRef,blockToolbarHeight:V.default.container.height,innerToolbarHeight:S.default.toolbar.height,safeAreaBottomInset:this.state.safeAreaBottomInset,parentHeight:this.state.rootViewHeight,keyboardShouldPersistTaps:"always",style:v.default.list,data:this.props.blockClientIds,keyExtractor:p.identity,renderItem:this.renderItem,shouldPreventAutomaticScroll:this.shouldFlatListPreventAutomaticScroll}),(0,o.createElement)(w.SafeAreaView,null,(0,o.createElement)(w.View,{style:{height:V.default.container.height}})),(0,o.createElement)(H.default,{style:v.default.blockToolbarKeyboardAvoidingView,parentHeight:this.state.rootViewHeight},(0,o.createElement)(C.default,{onInsertClick:function(){t.showBlockTypePicker(!0)},showKeyboardHideButton:this.state.isKeyboardVisible})))}},{key:"render",value:function(){var t=this;return(0,o.createElement)(w.SafeAreaView,{style:v.default.container,onLayout:this.onRootViewLayout},this.props.showHtml?this.renderHTML():this.renderList(),this.state.blockTypePickerVisible&&(0,o.createElement)(I.default,{onDismiss:function(){return t.showBlockTypePicker(!1)},onValueSelected:this.onBlockTypeSelected,isReplacement:this.isReplaceable(this.props.selectedBlock)}))}},{key:"isReplaceable",value:function(t){return!!t&&(0,T.isUnmodifiedDefaultBlock)(t)}},{key:"renderItem",value:function(t){var l=t.item;return(0,o.createElement)(w.View,null,(0,o.createElement)(B.default,{key:l,showTitle:!1,clientId:l,rootClientId:this.props.rootClientId,onCaretVerticalPositionChange:this.onCaretVerticalPositionChange}),this.state.blockTypePickerVisible&&this.props.isBlockSelected(l)&&(0,o.createElement)(w.View,{style:v.default.containerStyleAddHere},(0,o.createElement)(w.View,{style:v.default.lineStyleAddHere}),(0,o.createElement)(w.Text,{style:v.default.labelStyleAddHere},(0,y.__)('ADD BLOCK HERE')),(0,o.createElement)(w.View,{style:v.default.lineStyleAddHere})))}},{key:"renderHTML",value:function(){return(0,o.createElement)(A.default,(0,l.default)({},this.props,{parentHeight:this.state.rootViewHeight}))}}]),b})(b.default.Component);e.BlockManager=F;var U=(0,P.compose)([(0,L.withSelect)(function(t,o){var l=o.rootClientId,n=t('core/editor'),s=n.getBlockCount,c=n.getBlockIndex,u=n.getBlockOrder,f=n.getSelectedBlock,h=n.getSelectedBlockClientId,k=n.isBlockSelected,y=n.getBlockMode,b=h();return{blockClientIds:u(l),blockCount:s(l),isBlockSelected:k,selectedBlock:f(),selectedBlockClientId:b,selectedBlockOrder:c(b),showHtml:'html'===y()}}),(0,L.withDispatch)(function(t){var o=t('core/editor'),l=o.clearSelectedBlock,n=o.insertBlock,s=o.replaceBlock,c=o.selectBlock;return{insertBlock:n,focusBlock:function(t){l(),c(t)},replaceBlock:s}})])(F);e.default=U},1166,[1,330,8,43,19,20,27,30,33,29,878,46,332,2,1167,1172,1170,1173,1174,1202,1205,1204,1206,1207,809,864,807,1020,1157]); +__d(function(g,r,i,a,m,e,d){var t=r(d[0]),o=r(d[1]);Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.BlockHolder=void 0;var l=r(d[2]),n=o(r(d[3])),c=o(r(d[4])),s=o(r(d[5])),u=o(r(d[6])),k=o(r(d[7])),p=o(r(d[8])),B=o(r(d[9])),f=r(d[10]),h=t(r(d[11])),v=r(d[12]),I=r(d[13]),b=o(r(d[14])),y=r(d[15]),F=o(r(d[16])),T=(function(t){function o(t){var l;return(0,c.default)(this,o),(l=(0,u.default)(this,(0,k.default)(o).call(this,t))).onFocus=function(t){if(t){var o=F.default.currentlyFocusedField();t.nativeEvent.target===o||F.default.isTextInput(t.nativeEvent.target)||F.default.blurTextInput(o)}l.props.onSelect(l.props.clientId)},l.onInlineToolbarButtonPressed=function(t){switch(t){case h.InlineToolbarActions.UP:l.props.moveBlockUp();break;case h.InlineToolbarActions.DOWN:l.props.moveBlockDown();break;case h.InlineToolbarActions.DELETE:l.props.removeBlock()}},l.insertBlocksAfter=function(t){var o=l.props.getBlockIndex(l.props.clientId,l.props.rootClientId);l.props.onInsertBlocks(t,o+1),t[0]&&l.props.onSelect(t[0].clientId)},l.mergeBlocks=function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],o=l.props,n=o.clientId,c=o.getPreviousBlockClientId,s=o.getNextBlockClientId,u=o.mergeBlocks,k=c(n),p=s(n);!t&&!k||t&&!p||(t?u(n,p):u(k,n))},l.onBlockHolderLayout=function(t){var o=f.Dimensions.get('window').width>t.nativeEvent.layout.width;o!==l.state.isFullyBordered&&l.setState((0,n.default)({},l.state,{isFullyBordered:o}))},l.state={isFullyBordered:!1},l}return(0,p.default)(o,t),(0,s.default)(o,[{key:"blockHolderFocusedStyle",value:function(){return this.state.isFullyBordered?b.default.blockHolderFocusedFullBordered:b.default.blockHolderFocusedSemiBordered}},{key:"renderToolbar",value:function(){return this.props.isSelected?(0,l.createElement)(h.default,{clientId:this.props.clientId,onButtonPressed:this.onInlineToolbarButtonPressed,canMoveUp:!this.props.isFirstBlock,canMoveDown:!this.props.isLastBlock}):null}},{key:"getBlockForType",value:function(){return(0,l.createElement)(y.BlockEdit,{name:this.props.name,isSelected:this.props.isSelected,attributes:this.props.attributes,setAttributes:this.props.onChange,onFocus:this.onFocus,onReplace:this.props.onReplace,insertBlocksAfter:this.insertBlocksAfter,mergeBlocks:this.mergeBlocks,onCaretVerticalPositionChange:this.props.onCaretVerticalPositionChange})}},{key:"renderBlockTitle",value:function(){return(0,l.createElement)(f.View,{style:b.default.blockTitle},(0,l.createElement)(f.Text,null,"BlockType: ",this.props.name))}},{key:"render",value:function(){var t=this.props.isSelected;return(0,l.createElement)(f.TouchableWithoutFeedback,{onPress:this.onFocus,onLayout:this.onBlockHolderLayout},(0,l.createElement)(f.View,{style:[b.default.blockHolder,t&&this.blockHolderFocusedStyle()]},this.props.showTitle&&this.renderBlockTitle(),(0,l.createElement)(f.View,{style:[!t&&b.default.blockContainer,t&&b.default.blockContainerFocused]},this.getBlockForType()),this.renderToolbar()))}}]),o})(B.default.Component);e.BlockHolder=T;var C=(0,I.compose)([(0,v.withSelect)(function(t,o){var l=o.clientId,n=o.rootClientId,c=t('core/editor'),s=c.getBlockAttributes,u=c.getBlockName,k=c.getBlockIndex,p=c.getBlocks,B=c.getPreviousBlockClientId,f=c.getNextBlockClientId,h=c.isBlockSelected,v=u(l),I=s(l),b=k(l,n),y=h(l);return{attributes:I,getBlockIndex:k,getPreviousBlockClientId:B,getNextBlockClientId:f,isFirstBlock:0===b,isLastBlock:b===p().length-1,isSelected:y,name:v}}),(0,v.withDispatch)(function(t,o){var l=o.clientId,n=o.rootClientId,c=t('core/editor'),s=c.clearSelectedBlock,u=c.insertBlocks,k=c.mergeBlocks,p=c.moveBlocksDown,B=c.moveBlocksUp,f=c.removeBlock,h=c.replaceBlocks,v=c.selectBlock,I=c.updateBlockAttributes;return{mergeBlocks:k,moveBlockDown:function(){p(l)},moveBlockUp:function(){B(l)},removeBlock:function(){f(l)},onInsertBlocks:function(t,o){u(t,o,n)},onSelect:function(t){s(),v(t)},onChange:function(t){I(l,t)},onReplace:function(t){h([l],t)}}})])(T);e.default=C},1167,[329,1,330,43,19,20,27,30,33,46,2,1168,809,864,1171,1020,1092]); +__d(function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"InlineToolbarActions",{enumerable:!0,get:function(){return P.default}}),e.default=void 0;var n=r(d[1]),o=t(r(d[2])),l=t(r(d[3])),s=t(r(d[4])),u=t(r(d[5])),f=t(r(d[6])),c=t(r(d[7])),p=t(r(d[8])),b=r(d[9]),P=t(r(d[10])),v=r(d[11]),D=r(d[12]),h=t(r(d[13])),w=(function(t){function p(){var t;return(0,o.default)(this,p),t=(0,s.default)(this,(0,u.default)(p).apply(this,arguments)),(0,c.default)((0,c.default)(t)).onUpPressed=t.onUpPressed.bind((0,c.default)((0,c.default)(t))),(0,c.default)((0,c.default)(t)).onDownPressed=t.onDownPressed.bind((0,c.default)((0,c.default)(t))),(0,c.default)((0,c.default)(t)).onDeletePressed=t.onDeletePressed.bind((0,c.default)((0,c.default)(t))),t}return(0,f.default)(p,t),(0,l.default)(p,[{key:"onUpPressed",value:function(){this.props.onButtonPressed(P.default.UP)}},{key:"onDownPressed",value:function(){this.props.onButtonPressed(P.default.DOWN)}},{key:"onDeletePressed",value:function(){this.props.onButtonPressed(P.default.DELETE)}},{key:"render",value:function(){return(0,n.createElement)(b.View,{style:h.default.toolbar},(0,n.createElement)(v.ToolbarButton,{label:(0,D.__)('Move block up'),isDisabled:!this.props.canMoveUp,onClick:this.onUpPressed,icon:"arrow-up-alt"}),(0,n.createElement)(v.ToolbarButton,{label:(0,D.__)('Move block down'),isDisabled:!this.props.canMoveDown,onClick:this.onDownPressed,icon:"arrow-down-alt"}),(0,n.createElement)(b.View,{style:h.default.spacer}),(0,n.createElement)(v.ToolbarButton,{label:(0,D.__)('Remove content'),onClick:this.onDeletePressed,icon:"trash"}))}}]),p})(p.default.Component);e.default=w},1168,[1,330,19,20,27,30,33,29,46,2,1169,926,878,1170]); +__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={UP:1,DOWN:2,DELETE:3};e.default=t},1169,[]); +__d(function(g,r,i,a,m,e,d){m.exports={toolbar:{flexDirection:"row",height:44,alignItems:"flex-start",marginLeft:2,marginRight:2},spacer:{flexGrow:1},button:{width:44,height:44,justifyContent:"center",alignItems:"center"},icon:{color:"#7b9ab1",fill:"currentColor"},iconDisabled:{color:"#e9eff3"}}},1170,[]); +__d(function(g,r,i,a,m,e,d){m.exports={blockCode:{fontFamily:"monospace"},blockText:{minHeight:50},blockHolder:{flexGrow:1,flexShrink:1},blockHolderFocusedSemiBordered:{borderColor:"#e9eff3",borderTopWidth:1,borderBottomWidth:1,borderLeftWidth:0,borderRightWidth:0},blockHolderFocusedFullBordered:{borderColor:"#e9eff3",borderTopWidth:1,borderBottomWidth:1,borderLeftWidth:1,borderRightWidth:1},blockContainer:{backgroundColor:"white",paddingLeft:16,paddingRight:16,paddingTop:12,paddingBottom:12},blockContainerFocused:{backgroundColor:"white",paddingLeft:16,paddingRight:16,paddingTop:12,paddingBottom:0},blockTitle:{backgroundColor:"grey",paddingLeft:8,paddingTop:4,paddingBottom:4},unsupportedBlock:{backgroundColor:"#e9eff3",paddingTop:8,paddingBottom:8,paddingLeft:8,paddingRight:8},unsupportedBlockImagePlaceholder:{marginTop:24,marginRight:"auto",marginBottom:8,marginLeft:"auto",textAlign:"center",backgroundColor:"#4f748e",width:20,height:20},unsupportedBlockMessage:{textAlign:"center",color:"#4f748e",paddingTop:24,paddingBottom:24,fontSize:16},aztec_container:{flexGrow:1,flexShrink:1,flexBasis:0}}},1171,[]); +__d(function(g,r,i,a,m,e,d){m.exports={container:{flexGrow:1,flexShrink:1,flexBasis:0,justifyContent:"flex-start",backgroundColor:"#fff"},list:{flexGrow:1,flexShrink:1,flexBasis:0},switch:{flexDirection:"row",justifyContent:"flex-start",alignItems:"center",marginTop:10,marginRight:10,marginBottom:10,marginLeft:10},switchLabel:{marginLeft:10},lineStyleAddHere:{flexGrow:1,flexShrink:1,flexBasis:0,backgroundColor:"#0087be",alignSelf:"center",height:2},labelStyleAddHere:{flexGrow:1,flexShrink:1,flexBasis:0,textAlign:"center",fontFamily:"monospace",fontSize:12,fontWeight:"bold"},containerStyleAddHere:{flexGrow:1,flexShrink:1,flexBasis:0,flexDirection:"row",backgroundColor:"white"},blockToolbarKeyboardAvoidingView:{position:"absolute",bottom:0,right:0,left:0}}},1172,[]); +__d(function(g,r,i,a,m,e,d){m.exports={container:{height:44,flexDirection:"row",backgroundColor:"white",borderTopColor:"#e9eff3",borderTopWidth:1},keyboardHideContainer:{paddingRight:0,paddingLeft:0,paddingTop:4,width:44,justifyContent:"center",alignItems:"center"}}},1173,[]); +__d(function(g,r,i,a,m,e,d){var t=r(d[0]),l=r(d[1]);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=r(d[2]),o=l(r(d[3])),s=l(r(d[4])),u=l(r(d[5])),c=l(r(d[6])),f=l(r(d[7])),p=r(d[8]),y=t(r(d[9])),h=r(d[10]),v=l(r(d[11])),E=l(r(d[12])),b=r(d[13]),w=r(d[14]),k=(function(t){function l(){var t,n;(0,o.default)(this,l);for(var s=arguments.length,f=new Array(s),p=0;p0)},onPanResponderMove:function(n,s){var p=1-o.getAccDistancePerDirection(s)/o.state.deviceWidth;if(o.isSwipeDirectionAllowed(s))o.backdropRef&&o.backdropRef.transitionTo({opacity:o.props.backdropOpacity*p}),t(n,s);else if(o.props.scrollTo){var l=-s.dy;l>o.props.scrollOffsetMax&&(l-=(l-o.props.scrollOffsetMax)/2),o.props.scrollTo({y:l,animated:!1})}},onPanResponderRelease:function(t,n){if(o.getAccDistancePerDirection(n)>o.props.swipeThreshold&&o.props.onSwipe)return o.inSwipeClosingState=!0,void o.props.onSwipe();o.backdropRef&&o.backdropRef.transitionTo({opacity:o.props.backdropOpacity},o.props.backdropTransitionInTiming),v.Animated.spring(o.state.pan,{toValue:{x:0,y:0},bounciness:0}).start(),o.props.scrollOffset>o.props.scrollOffsetMax&&o.props.scrollTo({y:o.props.scrollOffsetMax,animated:!0})}})},o.getAccDistancePerDirection=function(t){switch(o.props.swipeDirection){case"up":return-t.dy;case"down":return t.dy;case"right":return t.dx;case"left":return-t.dx;default:return 0}},o.isSwipeDirectionAllowed=function(t){var n=t.dy,s=t.dx,p=n>0,l=n<0,c=s<0,u=s>0;return!("up"!==o.props.swipeDirection||!l)||(!("down"!==o.props.swipeDirection||!p)||(!("right"!==o.props.swipeDirection||!u)||!("left"!==o.props.swipeDirection||!c)))},o.buildAnimations=function(t){var n=t.animationIn,s=t.animationOut;if(D(n)){var p=JSON.stringify(n);T(p,n),n=p}if(D(s)){var l=JSON.stringify(s);T(l,s),s=l}o.animationIn=n,o.animationOut=s},o.handleDimensionsUpdate=function(t){var n=v.Dimensions.get("window").width,s=v.Dimensions.get("window").height;n===o.state.deviceWidth&&s===o.state.deviceHeight||o.setState({deviceWidth:n,deviceHeight:s})},o.open=function(){o.transitionLock||(o.transitionLock=!0,o.backdropRef&&o.backdropRef.transitionTo({opacity:o.props.backdropOpacity},o.props.backdropTransitionInTiming),o.state.isSwipeable&&o.state.pan.setValue({x:0,y:0}),o.contentRef&&o.contentRef[o.animationIn](o.props.animationInTiming).then(function(){o.transitionLock=!1,o.props.isVisible?o.props.onModalShow():o._close()}))},o._close=function(){if(!o.transitionLock){o.transitionLock=!0,o.backdropRef&&o.backdropRef.transitionTo({opacity:0},o.props.backdropTransitionOutTiming);var t=o.animationOut;o.inSwipeClosingState&&(o.inSwipeClosingState=!1,"up"===o.props.swipeDirection?t="slideOutUp":"down"===o.props.swipeDirection?t="slideOutDown":"right"===o.props.swipeDirection?t="slideOutRight":"left"===o.props.swipeDirection&&(t="slideOutLeft")),o.contentRef&&o.contentRef[t](o.props.animationOutTiming).then(function(){o.transitionLock=!1,o.props.isVisible?o.open():(o.setState({showContent:!1},function(){o.setState({isVisible:!1})}),o.props.onModalHide())})}},o.buildAnimations(t),o.state.isSwipeable&&(o.state=(0,p.default)({},o.state,{pan:new v.Animated.ValueXY}),o.buildPanResponder()),o.props.isVisible&&(o.state=(0,p.default)({},o.state,{isVisible:!0,showContent:!0})),o}return(0,b.default)(n,t),(0,c.default)(n,[{key:"componentWillReceiveProps",value:function(t){!this.state.isVisible&&t.isVisible&&this.setState({isVisible:!0,showContent:!0}),this.props.animationIn===t.animationIn&&this.props.animationOut===t.animationOut||this.buildAnimations(t),this.props.backdropOpacity!==t.backdropOpacity&&this.backdropRef&&this.backdropRef.transitionTo({opacity:t.backdropOpacity},this.props.backdropTransitionInTiming)}},{key:"componentDidMount",value:function(){this.state.isVisible&&this.open(),v.DeviceEventEmitter.addListener("didUpdateDimensions",this.handleDimensionsUpdate)}},{key:"componentWillUnmount",value:function(){v.DeviceEventEmitter.removeListener("didUpdateDimensions",this.handleDimensionsUpdate)}},{key:"componentDidUpdate",value:function(t,n){this.props.isVisible&&!t.isVisible?this.open():!this.props.isVisible&&t.isVisible&&this._close()}},{key:"render",value:function(){var t=this,n=this.props,l=(n.animationIn,n.animationInTiming,n.animationOut,n.animationOutTiming,n.avoidKeyboard),c=n.backdropColor,u=(n.backdropOpacity,n.backdropTransitionInTiming,n.backdropTransitionOutTiming,n.children),f=(n.isVisible,n.onModalShow,n.onBackdropPress),b=n.onBackButtonPress,w=n.useNativeDriver,O=n.style,T=(0,s.default)(n,["animationIn","animationInTiming","animationOut","animationOutTiming","avoidKeyboard","backdropColor","backdropOpacity","backdropTransitionInTiming","backdropTransitionOutTiming","children","isVisible","onModalShow","onBackdropPress","onBackButtonPress","useNativeDriver","style"]),D=this.state,R=D.deviceWidth,S=D.deviceHeight,V=[{margin:.05*R,transform:[{translateY:0}]},y.default.content,O],M={},I={};this.state.isSwipeable&&(M=(0,p.default)({},this.panResponder.panHandlers),I=this.state.pan.getLayout());var P=this.props.hideModalContentWhileAnimating&&this.props.useNativeDriver&&!this.state.showContent?h.default.createElement(k.View,null):u,C=h.default.createElement(k.View,(0,o.default)({},M,{ref:function(n){return t.contentRef=n},style:[I,V],pointerEvents:"box-none",useNativeDriver:w},T),P);return h.default.createElement(v.Modal,(0,o.default)({transparent:!0,animationType:"none",visible:this.state.isVisible,onRequestClose:b},T),h.default.createElement(v.TouchableWithoutFeedback,{onPress:f},h.default.createElement(k.View,{ref:function(n){return t.backdropRef=n},useNativeDriver:w,style:[y.default.backdrop,{backgroundColor:this.state.showContent?c:"transparent",width:R,height:S}]})),l&&h.default.createElement(v.KeyboardAvoidingView,{behavior:"ios"===v.Platform.OS?"padding":null,pointerEvents:"box-none",style:V.concat([{margin:0}])},C),!l&&C)}}]),n})(h.Component);e.ReactNativeModal=R,R.propTypes={animationIn:w.default.oneOfType([w.default.string,w.default.object]),animationInTiming:w.default.number,animationOut:w.default.oneOfType([w.default.string,w.default.object]),animationOutTiming:w.default.number,avoidKeyboard:w.default.bool,backdropColor:w.default.string,backdropOpacity:w.default.number,backdropTransitionInTiming:w.default.number,backdropTransitionOutTiming:w.default.number,children:w.default.node.isRequired,isVisible:w.default.bool.isRequired,hideModalContentWhileAnimating:w.default.bool,onModalShow:w.default.func,onModalHide:w.default.func,onBackButtonPress:w.default.func,onBackdropPress:w.default.func,onSwipe:w.default.func,swipeThreshold:w.default.number,swipeDirection:w.default.oneOf(["up","down","left","right"]),useNativeDriver:w.default.bool,style:w.default.any,scrollTo:w.default.func,scrollOffset:w.default.number,scrollOffsetMax:w.default.number,supportedOrientations:w.default.arrayOf(w.default.oneOf(["portrait","portrait-upside-down","landscape","landscape-left","landscape-right"]))},R.defaultProps={animationIn:"slideInUp",animationInTiming:300,animationOut:"slideOutDown",animationOutTiming:300,avoidKeyboard:!1,backdropColor:"black",backdropOpacity:.7,backdropTransitionInTiming:300,backdropTransitionOutTiming:300,onModalShow:function(){return null},onModalHide:function(){return null},isVisible:!1,hideModalContentWhileAnimating:!1,onBackdropPress:function(){return null},onBackButtonPress:function(){return null},swipeThreshold:100,useNativeDriver:!1,scrollTo:null,scrollOffset:0,scrollOffsetMax:0,supportedOrientations:["portrait","landscape"]};var S=R;e.default=S},1175,[329,1,8,6,43,19,20,27,30,33,46,2,60,1176,1197,1198]); +__d(function(g,r,i,a,m,e,d){var t=r(d[0]),n=r(d[1]);Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"registerAnimation",{enumerable:!0,get:function(){return f.registerAnimation}}),Object.defineProperty(e,"initializeRegistryWithDefinitions",{enumerable:!0,get:function(){return f.initializeRegistryWithDefinitions}}),Object.defineProperty(e,"createAnimation",{enumerable:!0,get:function(){return c.default}}),e.Image=e.Text=e.View=e.createAnimatableComponent=void 0;var o=r(d[2]),u=n(r(d[3])),f=r(d[4]),l=t(r(d[5])),c=n(r(d[6]));(0,f.initializeRegistryWithDefinitions)(l);var b=u.default;e.createAnimatableComponent=b;var s=(0,u.default)(o.View);e.View=s;var v=(0,u.default)(o.Text);e.Text=v;var y=(0,u.default)(o.Image);e.Image=y},1176,[329,1,2,1177,1183,1185,1182]); +__d(function(g,r,i,a,m,e,d){var t=r(d[0]),n=r(d[1]);Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){var n,k,R=t.displayName||t.name||'Component',P=T.Animated.createAnimatedComponent(t);return k=n=(function(t){function n(t){var u;(0,s.default)(this,n),(u=(0,l.default)(this,(0,f.default)(n).call(this,t))).ref=null,u.handleRef=function(t){u.ref=t};var c=new T.Animated.Value(D(0,u.props.direction)),v={},y={};return t.animation&&(y=j(t.animation),v=B(y,c)),u.state={animationValue:c,animationStyle:v,compiledAnimation:y,transitionStyle:{},transitionValues:{},currentTransitionValues:{}},t.transition&&(u.state=(0,o.default)({},u.state,u.initializeTransitionState(t.transition))),u.delayTimer=null,(0,O.getAnimationNames)().forEach(function(t){t in(0,p.default)((0,p.default)(u))||(u[t]=u.animate.bind((0,p.default)((0,p.default)(u)),t))}),u}return(0,c.default)(n,t),(0,u.default)(n,[{key:"initializeTransitionState",value:function(t){var n={},o={},s=(0,V.default)(t,this.props.style);return Object.keys(s).forEach(function(t){var u=s[t];if(-1!==E.indexOf(t))n[t]=new T.Animated.Value(0),o[t]=u;else{var l=new T.Animated.Value(u);n[t]=l,o[t]=l}}),{currentTransitionValues:s,transitionStyle:o,transitionValues:n}}},{key:"getTransitionState",value:function(t){var n=this,s='string'==typeof t?[t]:t,u=this.state,l=u.transitionValues,f=u.currentTransitionValues,c=u.transitionStyle,p=s.filter(function(t){return!n.state.transitionValues[t]});if(p.length){var v=this.initializeTransitionState(p);l=(0,o.default)({},l,v.transitionValues),f=(0,o.default)({},f,v.currentTransitionValues),c=(0,o.default)({},c,v.transitionStyle)}return{transitionValues:l,currentTransitionValues:f,transitionStyle:c}}},{key:"setNativeProps",value:function(t){this.ref&&this.ref.setNativeProps(t)}},{key:"componentDidMount",value:function(){var t=this,n=this.props,o=n.animation,s=n.duration,u=n.delay,l=n.onAnimationBegin,f=n.iterationDelay;if(o){var c=function(){l(),t.startAnimation(s,0,f,function(n){return t.props.onAnimationEnd(n)}),t.delayTimer=null};u?this.delayTimer=setTimeout(c,u):c()}}},{key:"componentWillReceiveProps",value:function(t){var n,o,s=this,u=t.animation,l=t.delay,f=t.duration,c=t.easing,p=t.transition,v=t.onAnimationBegin;if(p){var y=(0,V.default)(p,t.style);this.transitionTo(y,f,c,l)}else n=u,o=this.props.animation,n!==o&&JSON.stringify(n)!==JSON.stringify(o)&&(u?this.delayTimer?this.setAnimation(u):(v(),this.animate(u,f).then(function(t){return s.props.onAnimationEnd(t)})):this.stopAnimation())}},{key:"componentWillUnmount",value:function(){this.delayTimer&&clearTimeout(this.delayTimer)}},{key:"setAnimation",value:function(t,n){var o=j(t),s=B(o,this.state.animationValue);this.setState({animationStyle:s,compiledAnimation:o},n)}},{key:"animate",value:function(t,n,o){var s=this;return new Promise(function(u){s.setAnimation(t,function(){s.startAnimation(n,0,o,u)})})}},{key:"stopAnimation",value:function(){this.setState({scheduledAnimation:!1,animationStyle:{}}),this.state.animationValue.stopAnimation(),this.delayTimer&&(clearTimeout(this.delayTimer),this.delayTimer=null)}},{key:"startAnimation",value:function(t,n,o,s){var u=this,l=this.state,f=l.animationValue,c=l.compiledAnimation,p=this.props,v=p.direction,y=p.iterationCount,h=p.useNativeDriver,A=this.props.easing||c.easing||'ease',V=n||0,b=D(V,v),k=C(V,v);f.setValue(b),'string'==typeof A&&(A=S.default[A]);var O='reverse'===v||'alternate'===v&&!k||'alternate-reverse'===v&&!k;O&&(A=T.Easing.out(A));var E={toValue:k,easing:A,isInteraction:y<=1,duration:t||this.props.duration||1e3,useNativeDriver:h,delay:o||0};T.Animated.timing(f,E).start(function(n){V+=1,n.finished&&u.props.animation&&('infinite'===y||V=1?null:new Error('iterationCount must be a positive number or "infinite"')},iterationDelay:h.default.number,onAnimationBegin:h.default.func,onAnimationEnd:h.default.func,onTransitionBegin:h.default.func,onTransitionEnd:h.default.func,style:h.default.oneOfType([h.default.number,h.default.array,h.default.object]),transition:h.default.oneOfType([h.default.string,h.default.arrayOf(h.default.string)]),useNativeDriver:h.default.bool},n.defaultProps={animation:void 0,delay:0,direction:'normal',duration:void 0,easing:void 0,iterationCount:1,iterationDelay:0,onAnimationBegin:function(){},onAnimationEnd:function(){},onTransitionBegin:function(){},onTransitionEnd:function(){},style:void 0,transition:void 0,useNativeDriver:!1},k};var o=n(r(d[2])),s=n(r(d[3])),u=n(r(d[4])),l=n(r(d[5])),f=n(r(d[6])),c=n(r(d[7])),p=n(r(d[8])),v=n(r(d[9])),y=t(r(d[10])),h=n(r(d[11])),T=r(d[12]),A=n(r(d[13])),V=n(r(d[14])),b=n(r(d[15])),k=n(r(d[16])),O=r(d[17]),S=n(r(d[18])),E=['rotate','rotateX','rotateY','rotateZ','skewX','skewY','transformMatrix','backgroundColor','borderColor','borderTopColor','borderRightColor','borderBottomColor','borderLeftColor','shadowColor','color','textDecorationColor','tintColor'],N=['width','height'];function w(t,n){var o={};return Object.keys(n).forEach(function(s){-1===t.indexOf(s)&&(o[s]=n[s])}),o}function C(t,n){switch(n){case'reverse':return 0;case'alternate':return t%2?0:1;case'alternate-reverse':return t%2?1:0;case'normal':default:return 1}}function D(t,n){return C(t,n)?0:1}function j(t){if('string'==typeof t){var n=(0,O.getAnimationByName)(t);if(!n)throw new Error("No animation registred by the name of "+t);return n}return(0,k.default)(t)}function B(t,n){var o={};return Object.keys(t).forEach(function(s){'style'===s?(0,v.default)(o,t.style):'easing'!==s&&(o[s]=n.interpolate(t[s]))}),(0,A.default)(o)}function x(t,n,o,s,u){var l=arguments.length>5&&void 0!==arguments[5]&&arguments[5],f=arguments.length>6?arguments[6]:void 0,c=arguments.length>7?arguments[7]:void 0,p=arguments.length>8?arguments[8]:void 0,v=s||u||f?T.Animated.timing(n,{toValue:o,delay:f,duration:s||1e3,easing:'function'==typeof u?u:S.default[u||'ease'],useNativeDriver:l}):T.Animated.spring(n,{toValue:o,useNativeDriver:l});setTimeout(function(){return c(t)},f),v.start(function(){return p(t)})}},1177,[329,1,43,19,20,27,30,33,29,8,46,60,2,1178,1179,1180,1182,1183,1184]); +__d(function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){var o={};return Object.keys(t).forEach(function(f){-1!==s.indexOf(f)?(o.transform||(o.transform=[]),o.transform.push((0,n.default)({},f,t[f]))):o[f]=t[f]}),o};var n=t(r(d[1])),s=['perspective','rotate','rotateX','rotateY','rotateZ','scale','scaleX','scaleY','skewX','skewY','translateX','translateY']},1178,[1,44]); +__d(function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,u){var o={},c=(0,n.default)(u);return('string'==typeof t?[t]:t).forEach(function(t){o[t]=t in c?c[t]:(0,f.default)(t,c)}),o};var n=t(r(d[1])),f=t(r(d[2]))},1179,[1,1180,1181]); +__d(function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){var o=(0,n.default)({},f.StyleSheet.flatten(t));o.transform&&(o.transform.forEach(function(t){var n=Object.keys(t)[0];o[n]=t[n]}),delete o.transform);return o};var n=t(r(d[1])),f=r(d[2])},1180,[1,8,2]); +__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(o,f){if('backgroundColor'===o)return'rgba(0,0,0,0)';if('color'===o||-1!==o.indexOf('Color'))return'rgba(0,0,0,1)';if(0===o.indexOf('rotate')||0===o.indexOf('skew'))return'0deg';if('opacity'===o||0===o.indexOf('scale'))return 1;if('fontSize'===o)return 14;if(0===o.indexOf('margin')||0===o.indexOf('padding'))for(var l,u=0;u1?null:t}var s={}},1182,[1,1180]); +__d(function(g,r,i,a,m,e,d){var n=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.registerAnimation=u,e.getAnimationByName=function(n){return o[n]},e.getAnimationNames=function(){return Object.keys(o)},e.initializeRegistryWithDefinitions=function(n){Object.keys(n).forEach(function(o){u(o,(0,t.default)(n[o]))})};var t=n(r(d[1])),o={};function u(n,t){o[n]=t}},1183,[1,1182]); +__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var s=r(d[0]),n={linear:s.Easing.linear,ease:s.Easing.bezier(.25,.1,.25,1),'ease-in':s.Easing.bezier(.42,0,1,1),'ease-out':s.Easing.bezier(0,0,.58,1),'ease-in-out':s.Easing.bezier(.42,0,.58,1),'ease-in-cubic':s.Easing.bezier(.55,.055,.675,.19),'ease-out-cubic':s.Easing.bezier(.215,.61,.355,1),'ease-in-out-cubic':s.Easing.bezier(.645,.045,.355,1),'ease-in-circ':s.Easing.bezier(.6,.04,.98,.335),'ease-out-circ':s.Easing.bezier(.075,.82,.165,1),'ease-in-out-circ':s.Easing.bezier(.785,.135,.15,.86),'ease-in-expo':s.Easing.bezier(.95,.05,.795,.035),'ease-out-expo':s.Easing.bezier(.19,1,.22,1),'ease-in-out-expo':s.Easing.bezier(1,0,0,1),'ease-in-quad':s.Easing.bezier(.55,.085,.68,.53),'ease-out-quad':s.Easing.bezier(.25,.46,.45,.94),'ease-in-out-quad':s.Easing.bezier(.455,.03,.515,.955),'ease-in-quart':s.Easing.bezier(.895,.03,.685,.22),'ease-out-quart':s.Easing.bezier(.165,.84,.44,1),'ease-in-out-quart':s.Easing.bezier(.77,0,.175,1),'ease-in-quint':s.Easing.bezier(.755,.05,.855,.06),'ease-out-quint':s.Easing.bezier(.23,1,.32,1),'ease-in-out-quint':s.Easing.bezier(.86,0,.07,1),'ease-in-sine':s.Easing.bezier(.47,0,.745,.715),'ease-out-sine':s.Easing.bezier(.39,.575,.565,1),'ease-in-out-sine':s.Easing.bezier(.445,.05,.55,.95),'ease-in-back':s.Easing.bezier(.6,-.28,.735,.045),'ease-out-back':s.Easing.bezier(.175,.885,.32,1.275),'ease-in-out-back':s.Easing.bezier(.68,-.55,.265,1.55)};e.default=n},1184,[2]); +__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0});var t=r(d[0]);Object.keys(t).forEach(function(n){"default"!==n&&"__esModule"!==n&&Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[n]}})});var n=r(d[1]);Object.keys(n).forEach(function(t){"default"!==t&&"__esModule"!==t&&Object.defineProperty(e,t,{enumerable:!0,get:function(){return n[t]}})});var u=r(d[2]);Object.keys(u).forEach(function(t){"default"!==t&&"__esModule"!==t&&Object.defineProperty(e,t,{enumerable:!0,get:function(){return u[t]}})});var o=r(d[3]);Object.keys(o).forEach(function(t){"default"!==t&&"__esModule"!==t&&Object.defineProperty(e,t,{enumerable:!0,get:function(){return o[t]}})});var c=r(d[4]);Object.keys(c).forEach(function(t){"default"!==t&&"__esModule"!==t&&Object.defineProperty(e,t,{enumerable:!0,get:function(){return c[t]}})});var f=r(d[5]);Object.keys(f).forEach(function(t){"default"!==t&&"__esModule"!==t&&Object.defineProperty(e,t,{enumerable:!0,get:function(){return f[t]}})});var l=r(d[6]);Object.keys(l).forEach(function(t){"default"!==t&&"__esModule"!==t&&Object.defineProperty(e,t,{enumerable:!0,get:function(){return l[t]}})});var b=r(d[7]);Object.keys(b).forEach(function(t){"default"!==t&&"__esModule"!==t&&Object.defineProperty(e,t,{enumerable:!0,get:function(){return b[t]}})});var _=r(d[8]);Object.keys(_).forEach(function(t){"default"!==t&&"__esModule"!==t&&Object.defineProperty(e,t,{enumerable:!0,get:function(){return _[t]}})});var j=r(d[9]);Object.keys(j).forEach(function(t){"default"!==t&&"__esModule"!==t&&Object.defineProperty(e,t,{enumerable:!0,get:function(){return j[t]}})});var s=r(d[10]);Object.keys(s).forEach(function(t){"default"!==t&&"__esModule"!==t&&Object.defineProperty(e,t,{enumerable:!0,get:function(){return s[t]}})})},1185,[1186,1187,1188,1189,1190,1191,1192,1193,1194,1195,1196]); +__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.wobble=e.tada=e.rubberBand=e.swing=e.shake=e.rotate=e.pulse=e.jello=e.flash=e.bounce=void 0;e.bounce={0:{translateY:0},.2:{translateY:0},.4:{translateY:-30},.43:{translateY:-30},.53:{translateY:0},.7:{translateY:-15},.8:{translateY:0},.9:{translateY:-4},1:{translateY:0}};e.flash={0:{opacity:1},.25:{opacity:0},.5:{opacity:1},.75:{opacity:0},1:{opacity:1}};e.jello={0:{skewX:'0deg',skewY:'0deg'},.111:{skewX:'0deg',skewY:'0deg'},.222:{skewX:'-12.5deg',skewY:'-12.5deg'},.333:{skewX:'6.25deg',skewY:'6.25deg'},.444:{skewX:'-3.125deg',skewY:'-3.125deg'},.555:{skewX:'1.5625deg',skewY:'1.5625deg'},.666:{skewX:'-0.78125deg',skewY:'-0.78125deg'},.777:{skewX:'0.390625deg',skewY:'0.390625deg'},.888:{skewX:'-0.1953125deg',skewY:'-0.1953125deg'},1:{skewX:'0deg',skewY:'0deg'}};e.pulse={0:{scale:1},.5:{scale:1.05},1:{scale:1}};e.rotate={0:{rotate:'0deg'},.25:{rotate:'90deg'},.5:{rotate:'180deg'},.75:{rotate:'270deg'},1:{rotate:'360deg'}};e.shake={0:{translateX:0},.1:{translateX:-10},.2:{translateX:10},.3:{translateX:-10},.4:{translateX:10},.5:{translateX:-10},.6:{translateX:10},.7:{translateX:-10},.8:{translateX:10},.9:{translateX:-10},1:{translateX:0}};e.swing={0:{rotate:'0deg'},.2:{rotate:'15deg'},.4:{rotate:'-10deg'},.6:{rotate:'5deg'},.8:{rotate:'-5deg'},1:{rotate:'0deg'}};e.rubberBand={0:{scaleX:1,scaleY:1},.3:{scaleX:1.25,scaleY:.75},.4:{scaleX:.75,scaleY:1.25},.5:{scaleX:1.15,scaleY:.85},.65:{scaleX:.95,scaleY:1.05},.75:{scaleX:1.05,scaleY:.95},1:{scaleX:1,scaleY:1}};e.tada={0:{scale:1,rotate:'0deg'},.1:{scale:.9,rotate:'-3deg'},.2:{scale:.9,rotate:'-3deg'},.3:{scale:1.1,rotate:'-3deg'},.4:{rotate:'3deg'},.5:{rotate:'-3deg'},.6:{rotate:'3deg'},.7:{rotate:'-3deg'},.8:{rotate:'3deg'},.9:{scale:1.1,rotate:'3deg'},1:{scale:1,rotate:'0deg'}};e.wobble={0:{translateX:0,rotate:'0deg'},.15:{translateX:-25,rotate:'-5deg'},.3:{translateX:20,rotate:'3deg'},.45:{translateX:-15,rotate:'-3deg'},.6:{translateX:10,rotate:'2deg'},.75:{translateX:-5,rotate:'-1deg'},1:{translateX:0,rotate:'0deg'}}},1186,[]); +__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.bounceInLeft=e.bounceInRight=e.bounceInDown=e.bounceInUp=e.bounceIn=void 0;e.bounceIn={0:{opacity:0,scale:.3},.2:{scale:1.1},.4:{scale:.9},.6:{opacity:1,scale:1.03},.8:{scale:.97},1:{opacity:1,scale:1}};e.bounceInUp={0:{opacity:0,translateY:800},.6:{opacity:1,translateY:-25},.75:{translateY:10},.9:{translateY:-5},1:{translateY:0}};e.bounceInDown={0:{opacity:0,translateY:-800},.6:{opacity:1,translateY:25},.75:{translateY:-10},.9:{translateY:5},1:{translateY:0}};e.bounceInRight={0:{opacity:0,translateX:600},.6:{opacity:1,translateX:-20},.75:{translateX:8},.9:{translateX:-4},1:{translateX:0}};e.bounceInLeft={0:{opacity:0,translateX:-600},.6:{opacity:1,translateX:20},.75:{translateX:-8},.9:{translateX:4},1:{translateX:0}}},1187,[]); +__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.bounceOutLeft=e.bounceOutRight=e.bounceOutDown=e.bounceOutUp=e.bounceOut=void 0;e.bounceOut={0:{opacity:1,scale:1},.2:{scale:.9},.5:{opacity:1,scale:1.11},.55:{scale:1.11},1:{opacity:0,scale:.3}};e.bounceOutUp={0:{opacity:1,translateY:0},.2:{opacity:1,translateY:-10},.4:{translateY:20},.45:{translateY:20},.55:{opacity:1},1:{opacity:0,translateY:-800}};e.bounceOutDown={0:{opacity:1,translateY:0},.2:{opacity:1,translateY:10},.4:{translateY:-20},.45:{translateY:-20},.55:{opacity:1},1:{opacity:0,translateY:800}};e.bounceOutRight={0:{opacity:1,translateX:0},.2:{opacity:1,translateX:10},.4:{translateX:-20},.45:{translateX:-20},.55:{opacity:1},1:{opacity:0,translateX:600}};e.bounceOutLeft={0:{opacity:1,translateX:0},.2:{opacity:1,translateX:-10},.4:{translateX:20},.45:{translateX:20},.55:{opacity:1},1:{opacity:0,translateX:-600}}},1188,[]); +__d(function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.fadeInRightBig=e.fadeInLeftBig=e.fadeInUpBig=e.fadeInDownBig=e.fadeInRight=e.fadeInLeft=e.fadeInUp=e.fadeInDown=e.fadeIn=void 0;var n=t(r(d[1]));function f(t,f){return{from:(0,n.default)({opacity:0},t,f),to:(0,n.default)({opacity:1},t,0)}}e.fadeIn={from:{opacity:0},to:{opacity:1}};var I=f('translateY',-100);e.fadeInDown=I;var o=f('translateY',100);e.fadeInUp=o;var l=f('translateX',-100);e.fadeInLeft=l;var v=f('translateX',100);e.fadeInRight=v;var p=f('translateY',-500);e.fadeInDownBig=p;var s=f('translateY',500);e.fadeInUpBig=s;var B=f('translateX',-500);e.fadeInLeftBig=B;var c=f('translateX',500);e.fadeInRightBig=c},1189,[1,44]); +__d(function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.fadeOutRightBig=e.fadeOutLeftBig=e.fadeOutUpBig=e.fadeOutDownBig=e.fadeOutRight=e.fadeOutLeft=e.fadeOutUp=e.fadeOutDown=e.fadeOut=void 0;var f=t(r(d[1]));function u(t,u){return{from:(0,f.default)({opacity:1},t,0),to:(0,f.default)({opacity:0},t,u)}}e.fadeOut={from:{opacity:1},to:{opacity:0}};var O=u('translateY',100);e.fadeOutDown=O;var n=u('translateY',-100);e.fadeOutUp=n;var o=u('translateX',-100);e.fadeOutLeft=o;var l=u('translateX',100);e.fadeOutRight=l;var v=u('translateY',500);e.fadeOutDownBig=v;var p=u('translateY',-500);e.fadeOutUpBig=p;var s=u('translateX',-500);e.fadeOutLeftBig=s;var B=u('translateX',500);e.fadeOutRightBig=B},1190,[1,44]); +__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.flipOutY=e.flipOutX=e.flipInY=e.flipInX=void 0;e.flipInX={easing:'ease-in',style:{backfaceVisibility:'visible',perspective:400},0:{opacity:0,rotateX:'90deg'},.4:{rotateX:'-20deg'},.6:{opacity:1,rotateX:'10deg'},.8:{rotateX:'-5deg'},1:{opacity:1,rotateX:'0deg'}};e.flipInY={easing:'ease-in',style:{backfaceVisibility:'visible',perspective:400},0:{opacity:0,rotateY:'90deg'},.4:{rotateY:'-20deg'},.6:{opacity:1,rotateY:'10deg'},.8:{rotateY:'-5deg'},1:{opacity:1,rotateY:'0deg'}};e.flipOutX={style:{backfaceVisibility:'visible',perspective:400},0:{opacity:1,rotateX:'0deg'},.3:{opacity:1,rotateX:'-20deg'},1:{opacity:0,rotateX:'90deg'}};e.flipOutY={style:{backfaceVisibility:'visible',perspective:400},0:{opacity:1,rotateY:'0deg'},.3:{opacity:1,rotateY:'-20deg'},1:{opacity:0,rotateY:'90deg'}}},1191,[]); +__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.lightSpeedOut=e.lightSpeedIn=void 0;e.lightSpeedIn={easing:'ease-out',0:{opacity:0,translateX:200,skewX:'-30deg'},.6:{opacity:1,translateX:0,skewX:'20deg'},.8:{skewX:'-5deg'},1:{opacity:1,translateX:0,skewX:'0deg'}};e.lightSpeedOut={easing:'ease-in',0:{opacity:1,translateX:0,skewX:'0deg'},1:{opacity:0,translateX:200,skewX:'30deg'}}},1192,[]); +__d(function(g,r,i,a,m,e,d){var n=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.slideInRight=e.slideInLeft=e.slideInUp=e.slideInDown=void 0;var t=n(r(d[1]));function l(n,l){return{from:(0,t.default)({},n,l),to:(0,t.default)({},n,0)}}var s=l('translateY',-100);e.slideInDown=s;var o=l('translateY',100);e.slideInUp=o;var f=l('translateX',-100);e.slideInLeft=f;var v=l('translateX',100);e.slideInRight=v},1193,[1,44]); +__d(function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.slideOutRight=e.slideOutLeft=e.slideOutUp=e.slideOutDown=void 0;var l=t(r(d[1]));function u(t,u){return{from:(0,l.default)({},t,0),to:(0,l.default)({},t,u)}}var s=u('translateY',100);e.slideOutDown=s;var n=u('translateY',-100);e.slideOutUp=n;var o=u('translateX',-100);e.slideOutLeft=o;var O=u('translateX',100);e.slideOutRight=O},1194,[1,44]); +__d(function(g,r,i,a,m,e,d){var o=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.zoomInRight=e.zoomInLeft=e.zoomInUp=e.zoomInDown=e.zoomIn=void 0;var t=o(r(d[1])),n=r(d[2]);function l(o,l){var c=Math.min(1,Math.max(-1,l));return{easing:n.Easing.bezier(.175,.885,.32,1),0:(0,t.default)({opacity:0,scale:.1},o,-1e3*c),.6:(0,t.default)({opacity:1,scale:.457},o,l),1:(0,t.default)({scale:1},o,0)}}e.zoomIn={from:{opacity:0,scale:.3},.5:{opacity:1},to:{opacity:1,scale:1}};var c=l('translateY',60);e.zoomInDown=c;var s=l('translateY',-60);e.zoomInUp=s;var z=l('translateX',10);e.zoomInLeft=z;var I=l('translateX',-10);e.zoomInRight=I},1195,[1,44,2]); +__d(function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.zoomOutRight=e.zoomOutLeft=e.zoomOutUp=e.zoomOutDown=e.zoomOut=void 0;var o=t(r(d[1])),u=r(d[2]);function c(t,c){var l=Math.min(1,Math.max(-1,c));return{easing:u.Easing.bezier(.175,.885,.32,1),0:(0,o.default)({opacity:1,scale:1},t,0),.4:(0,o.default)({opacity:1,scale:.457},t,c),1:(0,o.default)({opacity:0,scale:.1},t,-1e3*l)}}e.zoomOut={from:{opacity:1,scale:1},.5:{opacity:1,scale:.3},to:{opacity:0,scale:0}};var l=c('translateY',60);e.zoomOutDown=l;var n=c('translateY',-60);e.zoomOutUp=n;var s=c('translateX',10);e.zoomOutLeft=s;var z=c('translateX',-10);e.zoomOutRight=z},1196,[1,44,2]); +__d(function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.slideOutRight=e.slideOutLeft=e.slideOutUp=e.slideOutDown=e.slideInRight=e.slideInLeft=e.slideInUp=e.slideInDown=void 0;var n=t(r(d[1])),l=r(d[2]).Dimensions.get("window"),s=l.height,u=l.width,o=function(t,l,s){return{from:(0,n.default)({},t,l),to:(0,n.default)({},t,s)}},v=o("translateY",-s,0);e.slideInDown=v;var f=o("translateY",s,0);e.slideInUp=f;var O=o("translateX",-u,0);e.slideInLeft=O;var I=o("translateX",u,0);e.slideInRight=I;var h=o("translateY",0,s);e.slideOutDown=h;var w=o("translateY",0,-s);e.slideOutUp=w;var p=o("translateX",0,-u);e.slideOutLeft=p;var D=o("translateX",0,u);e.slideOutRight=D},1197,[1,44,2]); +__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=r(d[0]).StyleSheet.create({backdrop:{position:"absolute",top:0,bottom:0,left:0,right:0,opacity:0,backgroundColor:"black"},content:{flex:1,justifyContent:"center"}});e.default=t},1198,[2]); +__d(function(g,r,i,a,m,e,d){m.exports={title:{fontFamily:"monospace",fontSize:16,fontWeight:"bold",marginBottom:8},lineStyle:{borderBottomColor:"lightgray",borderBottomWidth:1,width:"100%"},shortLineStyle:{borderBottomColor:"lightgray",borderBottomWidth:2,marginBottom:8,width:40},bottomModal:{justifyContent:"flex-end",marginTop:0,marginRight:0,marginBottom:0,marginLeft:0},touchableArea:{borderRadius:4},modalContent:{backgroundColor:"white",paddingTop:8,paddingBottom:8,justifyContent:"center",alignItems:"center",borderTopLeftRadius:10,borderTopRightRadius:10,borderBottomRightRadius:0,borderBottomLeftRadius:0,borderColor:"grey",borderWidth:1},modalItem:{flexGrow:1,flexShrink:1,marginTop:5,marginRight:5,marginBottom:5,marginLeft:5,width:100,alignSelf:"stretch",justifyContent:"center",alignItems:"center"},modalIcon:{flexGrow:1,flexShrink:1,backgroundColor:"lightgray",paddingLeft:8,paddingRight:8,paddingTop:8,paddingBottom:8,marginTop:4,marginRight:4,marginBottom:4,marginLeft:4,width:72,height:48,justifyContent:"center",alignItems:"center",borderRadius:4},modalItemLabel:{backgroundColor:"transparent",paddingLeft:2,paddingRight:2,paddingTop:2,paddingBottom:2,justifyContent:"center"}}},1199,[]); +__d(function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.settings=e.name=void 0;var n=r(d[1]),o=(t(r(d[2])),r(d[3])),s=t(r(d[4]));e.name='gmobile/unsupported';var u={title:(0,o.__)('Unsupported Block'),description:(0,o.__)('Unsupported block type.'),icon:'editor-code',category:'formatting',attributes:{content:{type:'string',source:'html'}},supports:{className:!1,customClassName:!1},transforms:{},edit:s.default,save:function(t){var o=t.attributes;return(0,n.createElement)(n.RawHTML,null,o.content)}};e.settings=u},1200,[1,330,46,878,1201]); +__d(function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var u=r(d[1]),l=t(r(d[2])),n=t(r(d[3])),f=t(r(d[4])),o=t(r(d[5])),s=t(r(d[6])),p=t(r(d[7])),c=r(d[8]),v=t(r(d[9])),y=(function(t){function p(){return(0,l.default)(this,p),(0,f.default)(this,(0,o.default)(p).apply(this,arguments))}return(0,s.default)(p,t),(0,n.default)(p,[{key:"render",value:function(){return(0,u.createElement)(c.View,{style:v.default.unsupportedBlock},(0,u.createElement)(c.Text,{style:v.default.unsupportedBlockMessage},"Unsupported"))}}]),p})(p.default.Component);e.default=y},1201,[1,330,19,20,27,30,33,46,2,1171]); +__d(function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.HTMLInputView=void 0;var n=r(d[1]),u=t(r(d[2])),s=t(r(d[3])),o=t(r(d[4])),l=t(r(d[5])),f=t(r(d[6])),c=t(r(d[7])),p=t(r(d[8])),h=r(d[9]),v=t(r(d[10])),y=t(r(d[11])),E=r(d[12]),D=r(d[13]),w=r(d[14]),I=(function(t){function p(){var t;return(0,u.default)(this,p),(t=(0,o.default)(this,(0,l.default)(p).apply(this,arguments))).isIOS='ios'===h.Platform.OS,t.edit=t.edit.bind((0,c.default)((0,c.default)(t))),t.stopEditing=t.stopEditing.bind((0,c.default)((0,c.default)(t))),t.state={isDirty:!1,value:''},t}return(0,f.default)(p,t),(0,s.default)(p,[{key:"componentWillUnmount",value:function(){this.stopEditing()}},{key:"edit",value:function(t){this.props.onChange(t),this.setState({value:t,isDirty:!0})}},{key:"stopEditing",value:function(){this.state.isDirty&&(this.props.onPersist(this.state.value),this.setState({isDirty:!1}))}},{key:"render",value:function(){var t=this;return(0,n.createElement)(y.default,{style:v.default.container,parentHeight:this.props.parentHeight},(0,n.createElement)(h.View,{style:{flex:1}},(0,n.createElement)(h.TextInput,{autoCorrect:!1,ref:function(n){return t.textInput=n},textAlignVertical:"top",multiline:!0,numberOfLines:0,style:v.default.htmlView,value:this.state.value,onChangeText:this.edit,onBlur:this.stopEditing})))}}],[{key:"getDerivedStateFromProps",value:function(t,n){return n.isDirty?null:{value:t.value,isDirty:!1}}}]),p})(p.default.Component);e.HTMLInputView=I;var P=(0,w.compose)([(0,D.withSelect)(function(t){return{value:(0,t('core/editor').getEditedPostContent)()}}),(0,D.withDispatch)(function(t){var n=t('core/editor'),u=n.editPost,s=n.resetBlocks;return{onChange:function(t){u({content:t})},onPersist:function(t){s((0,E.parse)(t))}}}),w.withInstanceId])(I);e.default=P},1202,[1,330,19,20,27,30,33,29,46,2,1203,1204,807,809,864]); +__d(function(g,r,i,a,m,e,d){m.exports={htmlView:{fontFamily:"monospace",flexGrow:1,flexShrink:1,flexBasis:0,backgroundColor:"white",paddingLeft:8,paddingRight:8,paddingTop:8,paddingBottom:8},container:{position:"absolute",top:0,right:0,left:0,bottom:0}}},1203,[]); +__d(function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=r(d[1]),u=t(r(d[2])),o=(t(r(d[3])),r(d[4])),f=function(t){var f=(0,u.default)({},t);return(0,n.createElement)(o.KeyboardAvoidingView,f)};e.default=f},1204,[1,330,8,46,2]); +__d(function(g,r,i,a,m,e,d){var o=r(d[0]),t=r(d[1]);Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.BlockToolbar=void 0;var n=r(d[2]),l=t(r(d[3])),c=t(r(d[4])),u=t(r(d[5])),s=t(r(d[6])),b=t(r(d[7])),h=o(r(d[8])),f=r(d[9]),y=r(d[10]),k=r(d[11]),E=r(d[12]),p=r(d[13]),B=r(d[14]),_=t(r(d[15])),v=(function(o){function t(){var o,n;(0,l.default)(this,t);for(var c=arguments.length,b=new Array(c),h=0;h1&&void 0!==arguments[1]?arguments[1]:'margin',I=arguments.length>2&&void 0!==arguments[2]?arguments[2]:'all',R=I,b=R.match(/^(top|bottom)(Left|Right)$/);b&&(R=b[1]+"And"+b[2],console.warn("'"+I+"' is deprecated. Use '"+R+"' instead."));var z='top'===R||'topAndLeft'===R||'topAndRight'===R||'vertical'===R||'verticalAndLeft'===R||'verticalAndRight'===R||'horizontalAndTop'===R||'all'===R,L='bottom'===R||'bottomAndLeft'===R||'bottomAndRight'===R||'vertical'===R||'verticalAndLeft'===R||'verticalAndRight'===R||'horizontalAndBottom'===R||'all'===R,S='left'===R||'topAndLeft'===R||'bottomAndLeft'===R||'horizontal'===R||'horizontalAndTop'===R||'horizontalAndBottom'===R||'verticalAndLeft'===R||'all'===R,w='right'===R||'topAndRight'===R||'bottomAndRight'===R||'horizontal'===R||'horizontalAndTop'===R||'horizontalAndBottom'===R||'verticalAndRight'===R||'all'===R;return(function(I){function R(){var t,n;(0,l.default)(this,R);for(var o=arguments.length,s=new Array(o),f=0;f\"\"/\n\x3c!-- /wp:image --\x3e\n\n\x3c!-- wp:image --\x3e\n
\"\"/
\n\x3c!-- /wp:image --\x3e\n\n\x3c!-- wp:title --\x3e\nHello World\n\x3c!-- /wp:title --\x3e\n\n\x3c!-- wp:heading {\"level\": 2} --\x3e\n

Welcome to Gutenberg

\n\x3c!-- /wp:heading --\x3e\n\n\x3c!-- wp:paragraph --\x3e\n

Hello World!

\n\x3c!-- /wp:paragraph --\x3e\n\n\x3c!-- wp:nextpage --\x3e\n\x3c!--nextpage--\x3e\n\x3c!-- /wp:nextpage --\x3e\n\n\x3c!-- wp:paragraph {\"dropCap\":true,\"backgroundColor\":\"vivid-red\",\"fontSize\":\"large\",\"className\":\"custom-class-1 custom-class-2\"} --\x3e\n

\nLorem ipsum dolor sit amet, consectetur adipiscing elit. Integer tempor tincidunt sapien, quis dictum orci sollicitudin quis. Proin sed elit id est pulvinar feugiat vitae eget dolor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

\n\x3c!-- /wp:paragraph --\x3e\n\n\n\x3c!-- wp:code --\x3e\n
if name == \"World\":\n    return \"Hello World\"\nelse:\n    return \"Hello Pony\"
\n\x3c!-- /wp:code --\x3e\n\n\x3c!-- wp:more --\x3e\n\x3c!--more--\x3e\n\x3c!-- /wp:more --\x3e\n\n\x3c!-- wp:p4ragraph --\x3e\n\u041b\u043e\u0440\u0435\u043c \u0438\u043f\u0441\u0443\u043c \u0434\u043e\u043b\u043e\u0440 \u0441\u0438\u0442 \u0430\u043c\u0435\u0442, \u0430\u0434\u0438\u043f\u0438\u0441\u0446\u0438 \u0442\u0440\u0430\u0446\u0442\u0430\u0442\u043e\u0441 \u0435\u0430 \u0435\u0443\u043c. \u041c\u0435\u0430 \u0430\u0443\u0434\u0438\u0430\u043c \u043c\u0430\u043b\u0443\u0438\u0441\u0441\u0435\u0442 \u0442\u0435, \u0445\u0430\u0441 \u043c\u0435\u0438\u0441 \u043b\u0438\u0431\u0440\u0438\u0441 \u0435\u043b\u0435\u0438\u0444\u0435\u043d\u0434 \u0438\u043d. \u041d\u0435\u0446 \u0435\u0445 \u0442\u043e\u0442\u0430 \u0434\u0435\u043b\u0435\u043d\u0438\u0442 \u0441\u0443\u0441\u0446\u0438\u043f\u0438\u0442. \u042f\u0443\u0430\u0441 \u043f\u043e\u0440\u0440\u043e \u0438\u043d\u0441\u0442\u0440\u0443\u0446\u0442\u0438\u043e\u0440 \u043d\u043e \u043d\u0435\u0446.\n\x3c!-- /wp:p4ragraph --\x3e\n\n\x3c!-- wp:paragraph {\"customTextColor\":\"#6c7781\",\"customFontSize\":17} --\x3e\n

It\u2019s a whole new way to use WordPress. Try it right here!

\n\x3c!-- /wp:paragraph --\x3e\n\n\x3c!-- wp:image {\"id\":97629,\"align\":\"full\"} --\x3e\n
\"\"
\n\x3c!-- /wp:image --\x3e\n\n\x3c!-- wp:paragraph {\"align\":\"left\"} --\x3e\n

We call the new editor Gutenberg. The entire editing experience has been rebuilt for media rich pages and posts. Experience the flexibility that blocks will bring, whether you are building your first site, or write code for a living.

\n\x3c!-- /wp:paragraph --\x3e\n\n\x3c!-- wp:gallery {\"ids\":[null,null,null,null],\"columns\":4,\"align\":\"wide\",\"className\":\"alignwide gutenberg-landing--features-grid\"} --\x3e\n\n\x3c!-- /wp:gallery --\x3e\n\n\x3c!-- wp:spacer --\x3e\n
\n\x3c!-- /wp:spacer --\x3e\n\n\x3c!-- wp:wporg/download-button --\x3e\n\n\x3c!-- /wp:wporg/download-button --\x3e\n\n\x3c!-- wp:paragraph {\"align\":\"center\",\"fontSize\":\"small\",\"className\":\"gutenberg-landing--button-disclaimer\"} --\x3e\n

Gutenberg is available as a plugin now, and soon by default in version 5.0 of WordPress. The classic editor will be available as a plugin if needed.

\n\x3c!-- /wp:paragraph --\x3e\n\n\x3c!-- wp:spacer --\x3e\n
\n\x3c!-- /wp:spacer --\x3e\n\n\x3c!-- wp:heading {\"align\":\"left\"} --\x3e\n

Meet your new best friends, Blocks

\n\x3c!-- /wp:heading --\x3e\n\n\x3c!-- wp:paragraph {\"align\":\"left\"} --\x3e\n

Blocks are a great new tool for building engaging content. With blocks, you can insert, rearrange, and style multimedia content with very little technical knowledge. Instead of using custom code, you can add a block and focus on your content.

\n\x3c!-- /wp:paragraph --\x3e\n\n\x3c!-- wp:image {\"id\":358} --\x3e\n
\"\"
\n\x3c!-- /wp:image --\x3e\n\n\x3c!-- wp:paragraph {\"align\":\"left\"} --\x3e\n

Without being an expert developer, you can build your own custom posts and pages. Here\u2019s a selection of the default blocks included with Gutenberg:

\n\x3c!-- /wp:paragraph --\x3e\n\n\x3c!-- wp:gallery {\"ids\":[null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null],\"columns\":8,\"align\":\"full\",\"className\":\"alignfull\"} --\x3e\n\n\x3c!-- /wp:gallery --\x3e\n\n\x3c!-- wp:spacer --\x3e\n
\n\x3c!-- /wp:spacer --\x3e\n\n\x3c!-- wp:heading {\"align\":\"left\"} --\x3e\n

Be your own builder

\n\x3c!-- /wp:heading --\x3e\n\n\x3c!-- wp:paragraph {\"align\":\"left\"} --\x3e\n

A single block is nice\u2014reliable, clear, distinct. Discover the flexibility to use media and content, side by side, driven by your vision.

\n\x3c!-- /wp:paragraph --\x3e\n\n\x3c!-- wp:image {\"id\":98363} --\x3e\n
\"\"
\n\x3c!-- /wp:image --\x3e\n\n\x3c!-- wp:spacer --\x3e\n
\n\x3c!-- /wp:spacer --\x3e\n\n\x3c!-- wp:heading {\"align\":\"left\"} --\x3e\n

Gutenberg \u2764\ufe0f Developers

\n\x3c!-- /wp:heading --\x3e\n\n\x3c!-- wp:columns {\"className\":\"gutenberg-landing--developers-columns\"} --\x3e\n
\x3c!-- wp:column --\x3e\n
\x3c!-- wp:paragraph {\"align\":\"left\"} --\x3e\n

Built with modern technology.

\n\x3c!-- /wp:paragraph --\x3e\n\n\x3c!-- wp:paragraph {\"align\":\"left\"} --\x3e\n

Gutenberg was developed on GitHub using the WordPress REST API, JavaScript, and React.

\n\x3c!-- /wp:paragraph --\x3e\n\n\x3c!-- wp:paragraph {\"align\":\"left\",\"fontSize\":\"small\"} --\x3e\n

Learn more

\n\x3c!-- /wp:paragraph --\x3e
\n\x3c!-- /wp:column --\x3e\n\n\x3c!-- wp:column --\x3e\n
\x3c!-- wp:paragraph {\"align\":\"left\"} --\x3e\n

Designed for compatibility.

\n\x3c!-- /wp:paragraph --\x3e\n\n\x3c!-- wp:paragraph {\"align\":\"left\"} --\x3e\n

We recommend migrating features to blocks, but support for existing WordPress functionality remains. There will be transition paths for shortcodes, meta-boxes, and Custom Post Types.

\n\x3c!-- /wp:paragraph --\x3e\n\n\x3c!-- wp:paragraph {\"align\":\"left\",\"fontSize\":\"small\"} --\x3e\n

Learn more

\n\x3c!-- /wp:paragraph --\x3e
\n\x3c!-- /wp:column --\x3e
\n\x3c!-- /wp:columns --\x3e\n\n\x3c!-- wp:spacer --\x3e\n
\n\x3c!-- /wp:spacer --\x3e\n\n\x3c!-- wp:heading {\"align\":\"left\"} --\x3e\n

The editor is just the beginning

\n\x3c!-- /wp:heading --\x3e\n\n\x3c!-- wp:paragraph {\"align\":\"left\"} --\x3e\n

Gutenberg is more than an editor. It\u2019s also the foundation that\u2019ll revolutionize customization and site building in WordPress.

\n\x3c!-- /wp:paragraph --\x3e\n\n\x3c!-- wp:quote {\"align\":\"left\",\"className\":\"is-style-large\"} --\x3e\n

\"This will make running your own blog a viable alternative again.\"

\u2014 Adrian Zumbrunnen
\n\x3c!-- /wp:quote --\x3e\n\n\x3c!-- wp:quote {\"align\":\"left\",\"className\":\"is-style-large\"} --\x3e\n

\"The web up until this point has been confined to some sort of rectangular screen. But that is not how it\u2019s going to be. Gutenberg has the potential of moving us into the next time.\"

\u2014 Morten Rand-Hendriksen
\n\x3c!-- /wp:quote --\x3e\n\n\x3c!-- wp:quote {\"align\":\"left\",\"className\":\"is-style-large\"} --\x3e\n

\"The Gutenberg editor has some great assets that could genuinely help people to write better texts.\"

\u2014 Marieke van de Rakt
\n\x3c!-- /wp:quote --\x3e\n\n\x3c!-- wp:spacer --\x3e\n
\n\x3c!-- /wp:spacer --\x3e\n\n\x3c!-- wp:wporg/download-button --\x3e\n\n\x3c!-- /wp:wporg/download-button --\x3e\n\n\x3c!-- wp:paragraph {\"align\":\"center\",\"fontSize\":\"small\",\"className\":\"gutenberg-landing--button-disclaimer\"} --\x3e\n

Gutenberg is available as a plugin today, and will be included in version 5.0 of WordPress. The classic editor will be available as a plugin if needed.

\n\x3c!-- /wp:paragraph --\x3e\n\n\x3c!-- wp:spacer --\x3e\n
\n\x3c!-- /wp:spacer --\x3e\n\n\x3c!-- wp:heading {\"align\":\"left\"} --\x3e\n

Dig in deeper

\n\x3c!-- /wp:heading --\x3e\n\n\x3c!-- wp:list --\x3e\n\n\x3c!-- /wp:list --\x3e\n"},1211,[]); __r(79); __r(0); //# sourceMappingURL=App.js.map \ No newline at end of file diff --git a/bundle/android/App.js.map b/bundle/android/App.js.map index 08d1fafe86..0b51d0178d 100644 --- a/bundle/android/App.js.map +++ b/bundle/android/App.js.map @@ -1 +1 @@ -{"version":3,"sources":["__prelude__","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/metro/src/lib/polyfills/require.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/react-native/Libraries/polyfills/Object.es6.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/react-native/Libraries/polyfills/console.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/react-native/Libraries/polyfills/error-guard.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/react-native/Libraries/polyfills/Number.es6.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/react-native/Libraries/polyfills/String.prototype.es6.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/react-native/Libraries/polyfills/Array.prototype.es6.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/react-native/Libraries/polyfills/Array.es6.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/react-native/Libraries/polyfills/Object.es7.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/index.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/@babel/runtime/helpers/interopRequireDefault.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/react-native/Libraries/react-native/react-native-implementation.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/react-native/node_modules/fbjs/lib/invariant.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/react-native/Libraries/Components/AccessibilityInfo/AccessibilityInfo.android.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/react-native/Libraries/BatchedBridge/NativeModules.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/@babel/runtime/helpers/objectWithoutProperties.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/@babel/runtime/helpers/objectWithoutPropertiesLoose.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/@babel/runtime/helpers/extends.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/@babel/runtime/helpers/slicedToArray.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/@babel/runtime/helpers/arrayWithHoles.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/@babel/runtime/helpers/iterableToArrayLimit.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/@babel/runtime/helpers/nonIterableRest.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/react-native/Libraries/BatchedBridge/BatchedBridge.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/react-native/Libraries/BatchedBridge/MessageQueue.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/@babel/runtime/helpers/toConsumableArray.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/@babel/runtime/helpers/arrayWithoutHoles.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/@babel/runtime/helpers/iterableToArray.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/@babel/runtime/helpers/nonIterableSpread.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/@babel/runtime/helpers/classCallCheck.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/@babel/runtime/helpers/createClass.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/react-native/Libraries/vendor/core/ErrorUtils.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/react-native/Libraries/Performance/Systrace.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/react-native/Libraries/Utilities/deepFreezeAndThrowOnMutationInDev.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/react-native/Libraries/Utilities/stringifySafe.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/react-native/Libraries/Utilities/defineLazyObjectProperty.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/react-native/Libraries/EventEmitter/RCTDeviceEventEmitter.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/@babel/runtime/helpers/possibleConstructorReturn.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/@babel/runtime/helpers/typeof.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/@babel/runtime/helpers/assertThisInitialized.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/@babel/runtime/helpers/getPrototypeOf.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/@babel/runtime/helpers/get.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/@babel/runtime/helpers/superPropBase.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/@babel/runtime/helpers/inherits.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/@babel/runtime/helpers/setPrototypeOf.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/react-native/Libraries/vendor/emitter/EventEmitter.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/react-native/Libraries/vendor/emitter/EmitterSubscription.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/react-native/Libraries/vendor/emitter/EventSubscription.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/react-native/Libraries/vendor/emitter/EventSubscriptionVendor.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/react-native/node_modules/fbjs/lib/emptyFunction.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/react-native/Libraries/ReactNative/UIManager.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/react-native/Libraries/Utilities/Platform.android.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/react-native/Libraries/Components/ActivityIndicator/ActivityIndicator.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/@babel/runtime/helpers/objectSpread.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/@babel/runtime/helpers/defineProperty.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/react-native/Libraries/react-native/React.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/react/index.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/react/cjs/react.production.min.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/object-assign/index.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/react-native/Libraries/StyleSheet/StyleSheet.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/react-native/Libraries/Utilities/PixelRatio.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/react-native/Libraries/Utilities/Dimensions.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/react-native/Libraries/Utilities/DeviceInfo.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/react-native/Libraries/Components/View/ReactNativeStyleAttributes.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/react-native/Libraries/Image/ImageStylePropTypes.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/react-native/Libraries/StyleSheet/ColorPropType.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/react-native/Libraries/Color/normalizeColor.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/react-native/Libraries/Image/ImageResizeMode.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/react-native/node_modules/fbjs/lib/keyMirror.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/react-native/Libraries/StyleSheet/LayoutPropTypes.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/prop-types/index.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/prop-types/factoryWithThrowingShims.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/prop-types/lib/ReactPropTypesSecret.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/react-native/Libraries/Components/View/ShadowPropTypesIOS.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/react-native/Libraries/StyleSheet/TransformPropTypes.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/react-native/Libraries/Utilities/deprecatedPropType.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/react-native/Libraries/Text/TextStylePropTypes.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/react-native/Libraries/Components/View/ViewStylePropTypes.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/react-native/Libraries/StyleSheet/processColor.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/react-native/Libraries/StyleSheet/processTransform.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/react-native/Libraries/Utilities/MatrixMath.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/react-native/Libraries/Utilities/differ/sizesDiffer.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/react-native/Libraries/StyleSheet/StyleSheetValidation.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/react-native/Libraries/StyleSheet/flattenStyle.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/react-native/Libraries/Components/View/View.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/react-native/Libraries/Text/TextAncestor.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/react-native/Libraries/Components/View/ViewNativeComponent.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/react-native/Libraries/Renderer/shims/ReactNative.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/react-native/Libraries/Renderer/oss/ReactNativeRenderer-prod.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/react-native/Libraries/Core/InitializeCore.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/react-native/Libraries/Utilities/PolyfillFunctions.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/react-native/Libraries/vendor/core/_shouldPolyfillES6Collection.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/react-native/Libraries/vendor/core/Map.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/react-native/Libraries/vendor/core/guid.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/react-native/node_modules/fbjs/lib/isNode.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/react-native/Libraries/vendor/core/toIterator.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/react-native/Libraries/vendor/core/Set.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/react-native/Libraries/Core/ExceptionsManager.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/react-native/Libraries/Core/Devtools/parseErrorStack.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/stacktrace-parser/index.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/stacktrace-parser/lib/stacktrace-parser.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/react-native/Libraries/Core/ReactNativeVersionCheck.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/react-native/Libraries/Core/ReactNativeVersion.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/react-native/Libraries/Promise.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/react-native/node_modules/fbjs/lib/Promise.native.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/promise/setimmediate/es6-extensions.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/promise/setimmediate/core.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/promise/setimmediate/done.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/react-native/node_modules/regenerator-runtime/runtime.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/react-native/Libraries/Core/Timers/JSTimers.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/react-native/node_modules/fbjs/lib/performanceNow.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/react-native/node_modules/fbjs/lib/performance.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/react-native/node_modules/fbjs/lib/ExecutionEnvironment.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/react-native/node_modules/fbjs/lib/warning.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/react-native/Libraries/Network/XMLHttpRequest.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/event-target-shim/lib/event-target.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/event-target-shim/lib/commons.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/event-target-shim/lib/custom-event-target.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/event-target-shim/lib/event-wrapper.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/react-native/Libraries/Network/RCTNetworking.android.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/react-native/Libraries/EventEmitter/MissingNativeEventEmitterShim.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/react-native/Libraries/EventEmitter/NativeEventEmitter.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/react-native/Libraries/Network/convertRequestBody.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/react-native/Libraries/Utilities/binaryToBase64.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/base64-js/index.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/react-native/Libraries/Blob/Blob.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/react-native/Libraries/Blob/BlobManager.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/react-native/Libraries/Blob/BlobRegistry.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/react-native/Libraries/Network/FormData.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/react-native/Libraries/Network/fetch.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/react-native/Libraries/vendor/core/whatwg-fetch.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/react-native/Libraries/WebSocket/WebSocket.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/react-native/Libraries/WebSocket/WebSocketEvent.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/react-native/Libraries/Blob/File.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/react-native/Libraries/Blob/FileReader.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/react-native/Libraries/Blob/URL.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/react-native/Libraries/Alert/Alert.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/react-native/Libraries/Alert/AlertIOS.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/react-native/Libraries/Geolocation/Geolocation.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/@babel/runtime/regenerator/index.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/regenerator-runtime/runtime-module.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/regenerator-runtime/runtime.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/react-native/Libraries/Utilities/logError.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/react-native/Libraries/PermissionsAndroid/PermissionsAndroid.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/react-native/Libraries/Utilities/HeapCapture.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/react-native/Libraries/Performance/SamplingProfiler.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/react-native/Libraries/Utilities/RCTLog.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/react-native/Libraries/EventEmitter/RCTNativeAppEventEmitter.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/react-native/Libraries/Utilities/PerformanceLogger.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/react-native/Libraries/Utilities/infoLog.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/react-native/Libraries/Utilities/JSDevSupportModule.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/react-native/Libraries/Renderer/shims/ReactNativeViewConfigRegistry.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/react-native/Libraries/EventEmitter/RCTEventEmitter.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/react-native/Libraries/Utilities/differ/deepDiffer.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/react-native/Libraries/Components/TextInput/TextInputState.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/scheduler/index.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/scheduler/cjs/scheduler.production.min.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/react-native/Libraries/ReactNative/requireNativeComponent.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/react-native/Libraries/Renderer/shims/createReactNativeComponentClass.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/react-native/Libraries/ReactNative/getNativeComponentAttributes.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/react-native/Libraries/Utilities/differ/insetsDiffer.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/react-native/Libraries/Utilities/differ/matricesDiffer.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/react-native/Libraries/Utilities/differ/pointsDiffer.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/react-native/Libraries/Image/resolveAssetSource.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/react-native/Libraries/Image/AssetRegistry.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/react-native/Libraries/Image/AssetSourceResolver.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/react-native/local-cli/bundle/assetPathUtils.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/react-native/Libraries/Components/ProgressBarAndroid/ProgressBarAndroid.android.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/react-native/Libraries/ART/ReactNativeART.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/art/core/color.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/react-native/Libraries/ART/ARTSerializablePath.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/art/core/class.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/art/core/path.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/art/core/transform.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/react-native/Libraries/Components/View/ReactNativeViewAttributes.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/react-native/Libraries/vendor/core/merge.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/react-native/Libraries/vendor/core/mergeInto.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/react-native/Libraries/vendor/core/mergeHelpers.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/react-native/Libraries/Components/Button.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/react-native/Libraries/Text/Text.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/react-native/Libraries/Text/TextPropTypes.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/react-native/Libraries/StyleSheet/EdgeInsetsPropType.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/react-native/Libraries/StyleSheet/StyleSheetPropType.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/react-native/Libraries/Utilities/createStrictShapeTypeChecker.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/react-native/Libraries/Components/Touchable/Touchable.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/react-native/Libraries/Components/Touchable/BoundingDimensions.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/react-native/Libraries/Components/Touchable/PooledClass.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/react-native/Libraries/Components/Touchable/Position.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/react-native/Libraries/Components/AppleTV/TVEventHandler.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/react-native/node_modules/fbjs/lib/TouchEventUtils.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/react-native/node_modules/fbjs/lib/nullthrows.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/react-native/Libraries/Components/Touchable/TouchableNativeFeedback.android.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/react-native/Libraries/Components/Touchable/TouchableWithoutFeedback.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/react-timer-mixin/TimerMixin.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/create-react-class/index.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/create-react-class/factory.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/fbjs/lib/emptyObject.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/fbjs/lib/invariant.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/react-native/Libraries/Components/Touchable/ensurePositiveDelayProps.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/react-native/Libraries/Components/View/ViewAccessibility.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/react-native/Libraries/Components/Touchable/TouchableOpacity.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/react-native/Libraries/Animated/src/Animated.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/react-native/Libraries/Animated/src/AnimatedImplementation.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/react-native/Libraries/Animated/src/AnimatedEvent.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/react-native/Libraries/Animated/src/nodes/AnimatedValue.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/react-native/Libraries/Animated/src/nodes/AnimatedInterpolation.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/react-native/Libraries/Animated/src/nodes/AnimatedNode.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/react-native/Libraries/Animated/src/NativeAnimatedHelper.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/react-native/Libraries/Animated/src/nodes/AnimatedWithChildren.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/react-native/Libraries/Interaction/InteractionManager.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/react-native/Libraries/Interaction/TaskQueue.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/react-native/Libraries/Animated/src/nodes/AnimatedAddition.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/react-native/Libraries/Animated/src/nodes/AnimatedDiffClamp.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/react-native/Libraries/Animated/src/nodes/AnimatedDivision.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/react-native/Libraries/Animated/src/nodes/AnimatedModulo.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/react-native/Libraries/Animated/src/nodes/AnimatedMultiplication.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/react-native/Libraries/Animated/src/nodes/AnimatedProps.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/react-native/Libraries/Animated/src/nodes/AnimatedStyle.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/react-native/Libraries/Animated/src/nodes/AnimatedTransform.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/react-native/Libraries/Animated/src/nodes/AnimatedSubtraction.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/react-native/Libraries/Animated/src/nodes/AnimatedTracking.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/react-native/Libraries/Animated/src/nodes/AnimatedValueXY.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/react-native/Libraries/Animated/src/animations/DecayAnimation.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/react-native/Libraries/Animated/src/animations/Animation.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/react-native/Libraries/Animated/src/animations/SpringAnimation.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/react-native/Libraries/Animated/src/SpringConfig.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/react-native/Libraries/Animated/src/animations/TimingAnimation.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/react-native/Libraries/Animated/src/Easing.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/react-native/Libraries/Animated/src/bezier.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/react-native/Libraries/Animated/src/createAnimatedComponent.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/react-native/Libraries/Lists/FlatList.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/react-native/Libraries/Lists/MetroListView.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/react-native/Libraries/Lists/ListView/ListView.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/react-native/Libraries/Lists/ListView/InternalListViewType.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/react-native/Libraries/Lists/ListView/ListViewDataSource.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/react-native/Libraries/vendor/core/isEmpty.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/react-native/Libraries/Components/ScrollView/ScrollView.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/react-native/Libraries/Components/ScrollResponder.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/react-native/Libraries/Interaction/FrameRateLogger.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/react-native/Libraries/Components/Keyboard/Keyboard.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/react-native/Libraries/LayoutAnimation/LayoutAnimation.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/react-native/Libraries/Utilities/dismissKeyboard.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/react-native/Libraries/Components/Subscribable.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/react-native/Libraries/Components/ScrollView/ScrollViewStickyHeader.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/react-native/Libraries/Components/ScrollView/InternalScrollViewType.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/react-native/Libraries/Components/ScrollView/processDecelerationRate.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/react-native/Libraries/Components/StaticRenderer.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/react-clone-referenced-element/cloneReferencedElement.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/react-native/Libraries/Components/RefreshControl/RefreshControl.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/react-native/Libraries/Lists/VirtualizedList.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/react-native/Libraries/Interaction/Batchinator.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/react-native/Libraries/Lists/FillRateHelper.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/react-native/Libraries/Lists/ViewabilityHelper.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/react-native/Libraries/Lists/VirtualizeUtils.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/react-native/Libraries/Image/Image.android.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/react-native/Libraries/Components/View/ViewPropTypes.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/react-native/Libraries/Components/View/PlatformViewPropTypes.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/react-native/Libraries/Components/AppleTV/TVViewPropTypes.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/react-native/Libraries/Lists/SectionList.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/react-native/Libraries/Lists/VirtualizedSectionList.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/react-native/Libraries/Renderer/shims/NativeMethodsMixin.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/react-native/Libraries/Components/CheckBox/CheckBox.android.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/react-native/Libraries/Components/DatePicker/DatePickerIOS.android.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/react-native/Libraries/Components/DrawerAndroid/DrawerLayoutAndroid.android.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/react-native/Libraries/Components/StatusBar/StatusBar.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/react-native/Libraries/Image/ImageBackground.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/react-native/Libraries/Components/Touchable/ensureComponentIsNative.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/react-native/Libraries/Image/ImageEditor.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/react-native/Libraries/Image/ImageStore.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/react-native/Libraries/Components/TextInput/InputAccessoryView.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/react-native/Libraries/Components/Keyboard/KeyboardAvoidingView.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/react-native/Libraries/Components/MaskedView/MaskedViewIOS.android.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/react-native/Libraries/Components/UnimplementedViews/UnimplementedView.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/react-native/Libraries/Modal/Modal.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/react-native/Libraries/ReactNative/AppContainer.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/react-native/Libraries/ReactNative/I18nManager.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/react-native/Libraries/Components/Navigation/NavigatorIOS.android.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/react-native/Libraries/Components/Picker/Picker.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/react-native/Libraries/Components/Picker/PickerIOS.android.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/react-native/Libraries/Components/Picker/PickerAndroid.android.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/react-native/Libraries/Components/ProgressViewIOS/ProgressViewIOS.android.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/react-native/Libraries/Components/SafeAreaView/SafeAreaView.android.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/react-native/Libraries/Components/SegmentedControlIOS/SegmentedControlIOS.android.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/react-native/Libraries/Components/Slider/Slider.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/react-native/Libraries/RCTTest/SnapshotViewIOS.android.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/react-native/Libraries/Components/Switch/Switch.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/react-native/Libraries/Components/Switch/SwitchNativeComponent.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/react-native/Libraries/Experimental/SwipeableRow/SwipeableFlatList.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/react-native/Libraries/Experimental/SwipeableRow/SwipeableRow.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/react-native/Libraries/Interaction/PanResponder.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/react-native/Libraries/Interaction/TouchHistoryMath.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/react-native/Libraries/Experimental/SwipeableRow/SwipeableListView.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/react-native/Libraries/Experimental/SwipeableRow/SwipeableListViewDataSource.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/react-native/Libraries/Components/TabBarIOS/TabBarIOS.android.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/react-native/Libraries/Components/TabBarIOS/TabBarItemIOS.android.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/react-native/Libraries/Components/TextInput/TextInput.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/react-native/Libraries/vendor/document/selection/DocumentSelectionState.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/react-native/Libraries/vendor/emitter/mixInEventEmitter.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/react-native/Libraries/vendor/emitter/EventEmitterWithHolding.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/react-native/Libraries/vendor/emitter/EventHolder.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/react-native/node_modules/fbjs/lib/keyOf.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/react-native/Libraries/Components/ToastAndroid/ToastAndroid.android.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/react-native/Libraries/Components/ToolbarAndroid/ToolbarAndroid.android.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/react-native/Libraries/Components/Touchable/TouchableHighlight.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/react-native/Libraries/Components/ViewPager/ViewPagerAndroid.android.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/react-native/Libraries/Components/WebView/WebView.android.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/react-native/Libraries/Components/WebView/WebViewShared.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/escape-string-regexp/index.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/react-native/Libraries/ActionSheetIOS/ActionSheetIOS.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/react-native/Libraries/ReactNative/AppRegistry.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/react-native/Libraries/BugReporting/BugReporting.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/react-native/Libraries/BugReporting/dumpReactTree.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/react-native/Libraries/Utilities/SceneTracker.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/react-native/Libraries/ReactNative/renderApplication.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/react-native/Libraries/ReactNative/ReactFabricIndicator.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/react-native/Libraries/Utilities/BackHandler.android.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/react-native/Libraries/Renderer/shims/ReactFabric.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/react-native/Libraries/Renderer/oss/ReactFabric-prod.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/react-native/Libraries/ReactNative/FabricUIManager.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/react-native/Libraries/AppState/AppState.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/react-native/Libraries/Storage/AsyncStorage.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/react-native/Libraries/Utilities/BackAndroid.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/react-native/Libraries/CameraRoll/CameraRoll.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/react-native/Libraries/Components/Clipboard/Clipboard.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/react-native/Libraries/Components/DatePickerAndroid/DatePickerAndroid.android.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/react-native/Libraries/CameraRoll/ImagePickerIOS.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/react-native/Libraries/Linking/Linking.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/react-native/Libraries/Network/NetInfo.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/react-native/Libraries/PushNotificationIOS/PushNotificationIOS.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/react-native/Libraries/Settings/Settings.android.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/react-native/Libraries/Share/Share.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/react-native/Libraries/Components/StatusBar/StatusBarIOS.android.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/react-native/Libraries/Components/TimePickerAndroid/TimePickerAndroid.android.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/react-native/Libraries/Vibration/Vibration.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/react-native/Libraries/Vibration/VibrationIOS.android.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/react-native/Libraries/YellowBox/YellowBox.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/react-native/Libraries/ReactNative/takeSnapshot.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/react-native/Libraries/StyleSheet/PointPropType.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/src/app/App.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/@babel/runtime/helpers/interopRequireWildcard.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/gutenberg/packages/element/src/index.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/gutenberg/packages/element/src/react.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/lodash/lodash.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/gutenberg/packages/element/src/react-platform.native.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/gutenberg/packages/element/src/utils.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/gutenberg/packages/element/src/serialize.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/gutenberg/packages/escape-html/src/index.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/gutenberg/packages/element/src/raw-html.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/src/globals.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/jsdom.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/jsdom/utils.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/url/url.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/punycode/punycode.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/querystring/index.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/querystring/decode.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/querystring/encode.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/path-browserify/index.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/htmlparser2-without-node-native/lib/index.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/htmlparser2-without-node-native/lib/Parser.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/htmlparser2-without-node-native/lib/Tokenizer.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/entities/lib/decode_codepoint.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/entities/maps/decode.json","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/entities/maps/entities.json","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/entities/maps/legacy.json","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/entities/maps/xml.json","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/inherits/inherits_browser.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/eventemitter2/lib/eventemitter2.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/domhandler/index.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/domelementtype/index.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/domhandler/lib/node.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/domhandler/lib/element.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/htmlparser2-without-node-native/node_modules/domelementtype/index.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/htmlparser2-without-node-native/lib/FeedHandler.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/htmlparser2-without-node-native/lib/ProxyHandler.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/domutils/index.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/domutils/lib/stringify.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/dom-serializer/index.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/dom-serializer/node_modules/domelementtype/index.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/entities/index.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/entities/lib/encode.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/entities/lib/decode.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/domutils/lib/traversal.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/domutils/lib/manipulation.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/domutils/lib/querying.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/domutils/lib/legacy.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/domutils/lib/helpers.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/htmlparser2-without-node-native/lib/CollectingHandler.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/nwmatcher/src/nwmatcher-noqsa.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssom/lib/index.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssom/lib/CSSStyleDeclaration.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssom/lib/parse.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssom/lib/CSSStyleSheet.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssom/lib/StyleSheet.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssom/lib/CSSStyleRule.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssom/lib/CSSRule.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssom/lib/CSSImportRule.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssom/lib/MediaList.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssom/lib/CSSMediaRule.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssom/lib/CSSFontFaceRule.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssom/lib/CSSKeyframeRule.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssom/lib/CSSKeyframesRule.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssom/lib/CSSValueExpression.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssom/lib/CSSValue.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssom/lib/CSSDocumentRule.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssom/lib/MatcherList.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssom/lib/clone.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssstyle/lib/CSSStyleDeclaration.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssstyle/lib/parsers.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssstyle/lib/properties.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssstyle/lib/properties/alignmentBaseline.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssstyle/lib/properties/azimuth.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssstyle/lib/properties/background.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssstyle/lib/properties/backgroundColor.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssstyle/lib/properties/backgroundImage.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssstyle/lib/properties/backgroundRepeat.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssstyle/lib/properties/backgroundAttachment.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssstyle/lib/properties/backgroundPosition.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssstyle/lib/properties/backgroundClip.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssstyle/lib/properties/backgroundOrigin.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssstyle/lib/properties/backgroundPositionX.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssstyle/lib/properties/backgroundPositionY.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssstyle/lib/properties/backgroundRepeatX.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssstyle/lib/properties/backgroundRepeatY.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssstyle/lib/properties/backgroundSize.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssstyle/lib/properties/baselineShift.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssstyle/lib/properties/border.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssstyle/lib/properties/borderWidth.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssstyle/lib/properties/borderStyle.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssstyle/lib/properties/borderColor.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssstyle/lib/properties/borderBottom.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssstyle/lib/properties/borderBottomWidth.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssstyle/lib/properties/borderBottomStyle.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssstyle/lib/properties/borderBottomColor.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssstyle/lib/properties/borderBottomLeftRadius.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssstyle/lib/properties/borderBottomRightRadius.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssstyle/lib/properties/borderCollapse.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssstyle/lib/properties/borderImage.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssstyle/lib/properties/borderImageOutset.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssstyle/lib/properties/borderImageRepeat.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssstyle/lib/properties/borderImageSlice.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssstyle/lib/properties/borderImageSource.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssstyle/lib/properties/borderImageWidth.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssstyle/lib/properties/borderLeft.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssstyle/lib/properties/borderLeftWidth.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssstyle/lib/properties/borderLeftStyle.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssstyle/lib/properties/borderLeftColor.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssstyle/lib/properties/borderRadius.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssstyle/lib/properties/borderRight.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssstyle/lib/properties/borderRightWidth.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssstyle/lib/properties/borderRightStyle.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssstyle/lib/properties/borderRightColor.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssstyle/lib/properties/borderSpacing.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssstyle/lib/properties/borderTop.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssstyle/lib/properties/borderTopWidth.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssstyle/lib/properties/borderTopStyle.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssstyle/lib/properties/borderTopColor.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssstyle/lib/properties/borderTopLeftRadius.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssstyle/lib/properties/borderTopRightRadius.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssstyle/lib/properties/bottom.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssstyle/lib/properties/boxShadow.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssstyle/lib/properties/boxSizing.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssstyle/lib/properties/captionSide.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssstyle/lib/properties/clear.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssstyle/lib/properties/clip.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssstyle/lib/properties/color.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssstyle/lib/properties/colorInterpolation.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssstyle/lib/properties/colorInterpolationFilters.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssstyle/lib/properties/colorProfile.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssstyle/lib/properties/colorRendering.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssstyle/lib/properties/content.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssstyle/lib/properties/counterIncrement.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssstyle/lib/properties/counterReset.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssstyle/lib/properties/cssFloat.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssstyle/lib/properties/cue.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssstyle/lib/properties/cueAfter.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssstyle/lib/properties/cueBefore.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssstyle/lib/properties/cursor.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssstyle/lib/properties/direction.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssstyle/lib/properties/display.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssstyle/lib/properties/dominantBaseline.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssstyle/lib/properties/elevation.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssstyle/lib/properties/emptyCells.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssstyle/lib/properties/enableBackground.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssstyle/lib/properties/fill.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssstyle/lib/properties/fillOpacity.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssstyle/lib/properties/fillRule.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssstyle/lib/properties/filter.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssstyle/lib/properties/floodColor.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssstyle/lib/properties/floodOpacity.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssstyle/lib/properties/font.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssstyle/lib/properties/fontFamily.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssstyle/lib/properties/fontSize.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssstyle/lib/properties/fontStyle.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssstyle/lib/properties/fontVariant.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssstyle/lib/properties/fontWeight.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssstyle/lib/properties/lineHeight.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssstyle/lib/properties/fontSizeAdjust.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssstyle/lib/properties/fontStretch.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssstyle/lib/properties/glyphOrientationHorizontal.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssstyle/lib/properties/glyphOrientationVertical.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssstyle/lib/properties/height.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssstyle/lib/properties/imageRendering.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssstyle/lib/properties/kerning.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssstyle/lib/properties/left.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssstyle/lib/properties/letterSpacing.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssstyle/lib/properties/lightingColor.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssstyle/lib/properties/listStyle.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssstyle/lib/properties/listStyleImage.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssstyle/lib/properties/listStylePosition.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssstyle/lib/properties/listStyleType.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssstyle/lib/properties/margin.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssstyle/lib/properties/marginBottom.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssstyle/lib/properties/marginLeft.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssstyle/lib/properties/marginRight.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssstyle/lib/properties/marginTop.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssstyle/lib/properties/marker.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssstyle/lib/properties/markerEnd.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssstyle/lib/properties/markerMid.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssstyle/lib/properties/markerOffset.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssstyle/lib/properties/markerStart.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssstyle/lib/properties/marks.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssstyle/lib/properties/mask.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssstyle/lib/properties/maxHeight.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssstyle/lib/properties/maxWidth.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssstyle/lib/properties/minHeight.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssstyle/lib/properties/minWidth.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssstyle/lib/properties/opacity.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssstyle/lib/properties/orphans.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssstyle/lib/properties/outline.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssstyle/lib/properties/outlineColor.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssstyle/lib/properties/outlineOffset.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssstyle/lib/properties/outlineStyle.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssstyle/lib/properties/outlineWidth.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssstyle/lib/properties/overflow.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssstyle/lib/properties/overflowX.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssstyle/lib/properties/overflowY.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssstyle/lib/properties/padding.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssstyle/lib/properties/paddingBottom.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssstyle/lib/properties/paddingLeft.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssstyle/lib/properties/paddingRight.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssstyle/lib/properties/paddingTop.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssstyle/lib/properties/page.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssstyle/lib/properties/pageBreakAfter.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssstyle/lib/properties/pageBreakBefore.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssstyle/lib/properties/pageBreakInside.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssstyle/lib/properties/pause.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssstyle/lib/properties/pauseAfter.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssstyle/lib/properties/pauseBefore.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssstyle/lib/properties/pitch.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssstyle/lib/properties/pitchRange.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssstyle/lib/properties/playDuring.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssstyle/lib/properties/pointerEvents.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssstyle/lib/properties/position.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssstyle/lib/properties/quotes.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssstyle/lib/properties/resize.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssstyle/lib/properties/richness.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssstyle/lib/properties/right.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssstyle/lib/properties/shapeRendering.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssstyle/lib/properties/size.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssstyle/lib/properties/speak.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssstyle/lib/properties/speakHeader.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssstyle/lib/properties/speakNumeral.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssstyle/lib/properties/speakPunctuation.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssstyle/lib/properties/speechRate.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssstyle/lib/properties/src.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssstyle/lib/properties/stopColor.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssstyle/lib/properties/stopOpacity.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssstyle/lib/properties/stress.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssstyle/lib/properties/stroke.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssstyle/lib/properties/strokeDasharray.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssstyle/lib/properties/strokeDashoffset.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssstyle/lib/properties/strokeLinecap.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssstyle/lib/properties/strokeLinejoin.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssstyle/lib/properties/strokeMiterlimit.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssstyle/lib/properties/strokeOpacity.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssstyle/lib/properties/strokeWidth.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssstyle/lib/properties/tableLayout.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssstyle/lib/properties/textAlign.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssstyle/lib/properties/textAnchor.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssstyle/lib/properties/textDecoration.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssstyle/lib/properties/textIndent.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssstyle/lib/properties/textLineThrough.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssstyle/lib/properties/textLineThroughColor.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssstyle/lib/properties/textLineThroughMode.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssstyle/lib/properties/textLineThroughStyle.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssstyle/lib/properties/textLineThroughWidth.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssstyle/lib/properties/textOverflow.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssstyle/lib/properties/textOverline.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssstyle/lib/properties/textOverlineColor.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssstyle/lib/properties/textOverlineMode.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssstyle/lib/properties/textOverlineStyle.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssstyle/lib/properties/textOverlineWidth.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssstyle/lib/properties/textRendering.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssstyle/lib/properties/textShadow.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssstyle/lib/properties/textTransform.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssstyle/lib/properties/textUnderline.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssstyle/lib/properties/textUnderlineColor.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssstyle/lib/properties/textUnderlineMode.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssstyle/lib/properties/textUnderlineStyle.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssstyle/lib/properties/textUnderlineWidth.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssstyle/lib/properties/top.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssstyle/lib/properties/unicodeBidi.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssstyle/lib/properties/unicodeRange.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssstyle/lib/properties/vectorEffect.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssstyle/lib/properties/verticalAlign.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssstyle/lib/properties/visibility.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssstyle/lib/properties/voiceFamily.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssstyle/lib/properties/volume.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssstyle/lib/properties/webkitAnimation.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssstyle/lib/properties/webkitAnimationDelay.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssstyle/lib/properties/webkitAnimationDirection.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssstyle/lib/properties/webkitAnimationDuration.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssstyle/lib/properties/webkitAnimationFillMode.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssstyle/lib/properties/webkitAnimationIterationCount.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssstyle/lib/properties/webkitAnimationName.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssstyle/lib/properties/webkitAnimationPlayState.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssstyle/lib/properties/webkitAnimationTimingFunction.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssstyle/lib/properties/webkitAppearance.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssstyle/lib/properties/webkitAspectRatio.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssstyle/lib/properties/webkitBackfaceVisibility.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssstyle/lib/properties/webkitBackgroundClip.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssstyle/lib/properties/webkitBackgroundComposite.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssstyle/lib/properties/webkitBackgroundOrigin.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssstyle/lib/properties/webkitBackgroundSize.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssstyle/lib/properties/webkitBorderAfter.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssstyle/lib/properties/webkitBorderAfterColor.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssstyle/lib/properties/webkitBorderAfterStyle.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssstyle/lib/properties/webkitBorderAfterWidth.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssstyle/lib/properties/webkitBorderBefore.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssstyle/lib/properties/webkitBorderBeforeColor.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssstyle/lib/properties/webkitBorderBeforeStyle.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssstyle/lib/properties/webkitBorderBeforeWidth.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssstyle/lib/properties/webkitBorderEnd.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssstyle/lib/properties/webkitBorderEndColor.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssstyle/lib/properties/webkitBorderEndStyle.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssstyle/lib/properties/webkitBorderEndWidth.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssstyle/lib/properties/webkitBorderFit.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssstyle/lib/properties/webkitBorderHorizontalSpacing.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssstyle/lib/properties/webkitBorderImage.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssstyle/lib/properties/webkitBorderRadius.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssstyle/lib/properties/webkitBorderStart.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssstyle/lib/properties/webkitBorderStartColor.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssstyle/lib/properties/webkitBorderStartStyle.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssstyle/lib/properties/webkitBorderStartWidth.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssstyle/lib/properties/webkitBorderVerticalSpacing.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssstyle/lib/properties/webkitBoxAlign.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssstyle/lib/properties/webkitBoxDirection.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssstyle/lib/properties/webkitBoxFlex.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssstyle/lib/properties/webkitBoxFlexGroup.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssstyle/lib/properties/webkitBoxLines.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssstyle/lib/properties/webkitBoxOrdinalGroup.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssstyle/lib/properties/webkitBoxOrient.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssstyle/lib/properties/webkitBoxPack.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssstyle/lib/properties/webkitBoxReflect.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssstyle/lib/properties/webkitBoxShadow.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssstyle/lib/properties/webkitColorCorrection.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssstyle/lib/properties/webkitColumnAxis.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssstyle/lib/properties/webkitColumnBreakAfter.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssstyle/lib/properties/webkitColumnBreakBefore.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssstyle/lib/properties/webkitColumnBreakInside.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssstyle/lib/properties/webkitColumnCount.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssstyle/lib/properties/webkitColumnGap.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssstyle/lib/properties/webkitColumnRule.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssstyle/lib/properties/webkitColumnRuleColor.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssstyle/lib/properties/webkitColumnRuleStyle.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssstyle/lib/properties/webkitColumnRuleWidth.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssstyle/lib/properties/webkitColumnSpan.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssstyle/lib/properties/webkitColumnWidth.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssstyle/lib/properties/webkitColumns.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssstyle/lib/properties/webkitFilter.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssstyle/lib/properties/webkitFlexAlign.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssstyle/lib/properties/webkitFlexDirection.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssstyle/lib/properties/webkitFlexFlow.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssstyle/lib/properties/webkitFlexItemAlign.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssstyle/lib/properties/webkitFlexLinePack.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssstyle/lib/properties/webkitFlexOrder.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssstyle/lib/properties/webkitFlexPack.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssstyle/lib/properties/webkitFlexWrap.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssstyle/lib/properties/webkitFlowFrom.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssstyle/lib/properties/webkitFlowInto.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssstyle/lib/properties/webkitFontFeatureSettings.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssstyle/lib/properties/webkitFontKerning.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssstyle/lib/properties/webkitFontSizeDelta.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssstyle/lib/properties/webkitFontSmoothing.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssstyle/lib/properties/webkitFontVariantLigatures.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssstyle/lib/properties/webkitHighlight.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssstyle/lib/properties/webkitHyphenateCharacter.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssstyle/lib/properties/webkitHyphenateLimitAfter.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssstyle/lib/properties/webkitHyphenateLimitBefore.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssstyle/lib/properties/webkitHyphenateLimitLines.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssstyle/lib/properties/webkitHyphens.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssstyle/lib/properties/webkitLineAlign.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssstyle/lib/properties/webkitLineBoxContain.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssstyle/lib/properties/webkitLineBreak.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssstyle/lib/properties/webkitLineClamp.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssstyle/lib/properties/webkitLineGrid.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssstyle/lib/properties/webkitLineSnap.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssstyle/lib/properties/webkitLocale.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssstyle/lib/properties/webkitLogicalHeight.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssstyle/lib/properties/webkitLogicalWidth.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssstyle/lib/properties/webkitMarginAfter.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssstyle/lib/properties/webkitMarginAfterCollapse.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssstyle/lib/properties/webkitMarginBefore.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssstyle/lib/properties/webkitMarginBeforeCollapse.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssstyle/lib/properties/webkitMarginBottomCollapse.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssstyle/lib/properties/webkitMarginCollapse.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssstyle/lib/properties/webkitMarginEnd.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssstyle/lib/properties/webkitMarginStart.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssstyle/lib/properties/webkitMarginTopCollapse.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssstyle/lib/properties/webkitMarquee.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssstyle/lib/properties/webkitMarqueeDirection.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssstyle/lib/properties/webkitMarqueeIncrement.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssstyle/lib/properties/webkitMarqueeRepetition.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssstyle/lib/properties/webkitMarqueeSpeed.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssstyle/lib/properties/webkitMarqueeStyle.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssstyle/lib/properties/webkitMask.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssstyle/lib/properties/webkitMaskAttachment.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssstyle/lib/properties/webkitMaskBoxImage.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssstyle/lib/properties/webkitMaskBoxImageOutset.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssstyle/lib/properties/webkitMaskBoxImageRepeat.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssstyle/lib/properties/webkitMaskBoxImageSlice.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssstyle/lib/properties/webkitMaskBoxImageSource.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssstyle/lib/properties/webkitMaskBoxImageWidth.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssstyle/lib/properties/webkitMaskClip.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssstyle/lib/properties/webkitMaskComposite.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssstyle/lib/properties/webkitMaskImage.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssstyle/lib/properties/webkitMaskOrigin.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssstyle/lib/properties/webkitMaskPosition.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssstyle/lib/properties/webkitMaskPositionX.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssstyle/lib/properties/webkitMaskPositionY.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssstyle/lib/properties/webkitMaskRepeat.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssstyle/lib/properties/webkitMaskRepeatX.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssstyle/lib/properties/webkitMaskRepeatY.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssstyle/lib/properties/webkitMaskSize.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssstyle/lib/properties/webkitMatchNearestMailBlockquoteColor.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssstyle/lib/properties/webkitMaxLogicalHeight.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssstyle/lib/properties/webkitMaxLogicalWidth.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssstyle/lib/properties/webkitMinLogicalHeight.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssstyle/lib/properties/webkitMinLogicalWidth.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssstyle/lib/properties/webkitNbspMode.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssstyle/lib/properties/webkitOverflowScrolling.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssstyle/lib/properties/webkitPaddingAfter.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssstyle/lib/properties/webkitPaddingBefore.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssstyle/lib/properties/webkitPaddingEnd.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssstyle/lib/properties/webkitPaddingStart.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssstyle/lib/properties/webkitPerspective.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssstyle/lib/properties/webkitPerspectiveOrigin.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssstyle/lib/properties/webkitPerspectiveOriginX.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssstyle/lib/properties/webkitPerspectiveOriginY.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssstyle/lib/properties/webkitPrintColorAdjust.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssstyle/lib/properties/webkitRegionBreakAfter.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssstyle/lib/properties/webkitRegionBreakBefore.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssstyle/lib/properties/webkitRegionBreakInside.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssstyle/lib/properties/webkitRegionOverflow.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssstyle/lib/properties/webkitRtlOrdering.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssstyle/lib/properties/webkitSvgShadow.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssstyle/lib/properties/webkitTapHighlightColor.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssstyle/lib/properties/webkitTextCombine.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssstyle/lib/properties/webkitTextDecorationsInEffect.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssstyle/lib/properties/webkitTextEmphasis.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssstyle/lib/properties/webkitTextEmphasisColor.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssstyle/lib/properties/webkitTextEmphasisPosition.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssstyle/lib/properties/webkitTextEmphasisStyle.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssstyle/lib/properties/webkitTextFillColor.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssstyle/lib/properties/webkitTextOrientation.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssstyle/lib/properties/webkitTextSecurity.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssstyle/lib/properties/webkitTextSizeAdjust.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssstyle/lib/properties/webkitTextStroke.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssstyle/lib/properties/webkitTextStrokeColor.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssstyle/lib/properties/webkitTextStrokeWidth.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssstyle/lib/properties/webkitTransform.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssstyle/lib/properties/webkitTransformOrigin.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssstyle/lib/properties/webkitTransformOriginX.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssstyle/lib/properties/webkitTransformOriginY.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssstyle/lib/properties/webkitTransformOriginZ.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssstyle/lib/properties/webkitTransformStyle.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssstyle/lib/properties/webkitTransition.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssstyle/lib/properties/webkitTransitionDelay.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssstyle/lib/properties/webkitTransitionDuration.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssstyle/lib/properties/webkitTransitionProperty.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssstyle/lib/properties/webkitTransitionTimingFunction.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssstyle/lib/properties/webkitUserDrag.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssstyle/lib/properties/webkitUserModify.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssstyle/lib/properties/webkitUserSelect.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssstyle/lib/properties/webkitWrap.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssstyle/lib/properties/webkitWrapFlow.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssstyle/lib/properties/webkitWrapMargin.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssstyle/lib/properties/webkitWrapPadding.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssstyle/lib/properties/webkitWrapShapeInside.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssstyle/lib/properties/webkitWrapShapeOutside.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssstyle/lib/properties/webkitWrapThrough.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssstyle/lib/properties/webkitWritingMode.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssstyle/lib/properties/whiteSpace.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssstyle/lib/properties/widows.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssstyle/lib/properties/width.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssstyle/lib/properties/wordBreak.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssstyle/lib/properties/wordSpacing.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssstyle/lib/properties/wordWrap.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssstyle/lib/properties/writingMode.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssstyle/lib/properties/zIndex.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/builtins/cssstyle/lib/properties/zoom.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/jsdom/level3/index.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/jsdom/level3/core.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/jsdom/level2/core.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/jsdom/level1/core.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/jsdom/level3/xpath.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/jsdom/level3/html.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/jsdom/level2/html.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/jsdom/level3/ls.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/jsdom/browser/index.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/jsdom/browser/htmltodom.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/jsdom/browser/htmlencoding.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/jsdom/browser/domtohtml.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/jsdom/browser/utils.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/jsdom-jscore/lib/jsdom/selectors/index.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/gutenberg/packages/block-library/src/index.native.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/gutenberg/packages/blocks/src/index.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/gutenberg/packages/blocks/src/store/index.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/gutenberg/packages/data/src/index.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/turbo-combine-reducers/index.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/gutenberg/packages/data/src/default-registry.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/gutenberg/packages/data/src/registry.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/gutenberg/packages/data/src/namespace-store.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/redux/lib/index.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/redux/lib/createStore.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/lodash/isPlainObject.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/lodash/_baseGetTag.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/lodash/_Symbol.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/lodash/_root.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/lodash/_freeGlobal.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/lodash/_getRawTag.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/lodash/_objectToString.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/lodash/_getPrototype.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/lodash/_overArg.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/lodash/isObjectLike.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/symbol-observable/lib/index.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/symbol-observable/lib/ponyfill.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/redux/lib/combineReducers.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/redux/lib/utils/warning.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/redux/lib/bindActionCreators.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/redux/lib/applyMiddleware.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/redux/lib/compose.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/gutenberg/packages/data/src/promise-middleware.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/is-promise/index.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/gutenberg/packages/data/src/resolvers-cache-middleware.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/gutenberg/packages/data/src/store/index.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/gutenberg/packages/data/src/store/reducer.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/equivalent-key-map/equivalent-key-map.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/gutenberg/packages/data/src/store/utils.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/gutenberg/packages/data/src/store/selectors.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/gutenberg/packages/data/src/store/actions.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/gutenberg/packages/data/src/plugins/index.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/gutenberg/packages/data/src/plugins/controls/index.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/gutenberg/packages/redux-routine/src/index.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/gutenberg/packages/redux-routine/src/is-generator.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/gutenberg/packages/redux-routine/src/runtime.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/rungen/dist/index.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/rungen/dist/utils/helpers.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/rungen/dist/utils/keys.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/rungen/dist/create.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/rungen/dist/controls/builtin.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/rungen/dist/utils/is.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/rungen/dist/controls/async.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/rungen/dist/utils/dispatcher.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/rungen/dist/controls/wrap.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/gutenberg/packages/redux-routine/src/cast-error.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/gutenberg/packages/redux-routine/src/is-action.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/gutenberg/packages/data/src/plugins/persistence/index.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/gutenberg/packages/data/src/plugins/persistence/storage/default.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/gutenberg/packages/data/src/plugins/persistence/storage/object.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/gutenberg/packages/data/src/components/with-select/index.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/gutenberg/packages/is-shallow-equal/index.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/gutenberg/packages/is-shallow-equal/objects.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/gutenberg/packages/is-shallow-equal/arrays.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/gutenberg/packages/compose/src/index.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/gutenberg/packages/compose/src/create-higher-order-component/index.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/gutenberg/packages/compose/src/if-condition/index.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/gutenberg/packages/compose/src/pure/index.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/gutenberg/packages/compose/src/with-global-events/index.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/gutenberg/packages/compose/src/with-global-events/listener.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/gutenberg/packages/compose/src/with-instance-id/index.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/gutenberg/packages/compose/src/with-safe-timeout/index.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/gutenberg/packages/compose/src/with-state/index.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/gutenberg/packages/data/src/components/registry-provider/index.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/gutenberg/packages/data/src/components/with-dispatch/index.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/gutenberg/packages/blocks/src/store/reducer.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/gutenberg/packages/i18n/src/index.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/tannin/build/index.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/@tannin/plural-forms/build/index.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/@tannin/compile/build/index.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/@tannin/postfix/build/index.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/@tannin/evaluate/build/index.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/memize/index.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/sprintf-js/src/sprintf.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/gutenberg/packages/blocks/src/store/selectors.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/rememo/rememo.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/gutenberg/packages/blocks/src/store/actions.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/gutenberg/packages/blocks/src/api/index.native.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/gutenberg/packages/blocks/src/api/factory.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/uuid/v4.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/uuid/lib/rng-browser.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/uuid/lib/bytesToUuid.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/gutenberg/packages/hooks/src/index.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/gutenberg/packages/hooks/src/createHooks.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/gutenberg/packages/hooks/src/createAddHook.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/gutenberg/packages/hooks/src/validateNamespace.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/gutenberg/packages/hooks/src/validateHookName.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/gutenberg/packages/hooks/src/createRemoveHook.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/gutenberg/packages/hooks/src/createHasHook.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/gutenberg/packages/hooks/src/createRunHook.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/gutenberg/packages/hooks/src/createCurrentHook.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/gutenberg/packages/hooks/src/createDoingHook.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/gutenberg/packages/hooks/src/createDidHook.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/gutenberg/packages/blocks/src/api/registration.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/gutenberg/packages/blocks/src/api/utils.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/tinycolor2/tinycolor.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/gutenberg/packages/blocks/src/api/parser.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/hpq/dist/hpq.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/gutenberg/packages/autop/src/index.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/gutenberg/packages/block-serialization-default-parser/src/index.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/gutenberg/packages/blocks/src/api/validation.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/@babel/runtime/helpers/toArray.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/simple-html-tokenizer/dist/es6/tokenizer.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/simple-html-tokenizer/dist/es6/evented-tokenizer.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/simple-html-tokenizer/dist/es6/utils.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/gutenberg/packages/html-entities/src/index.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/gutenberg/packages/blocks/src/api/serializer.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/gutenberg/packages/blocks/src/block-content-provider/index.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/gutenberg/packages/blocks/src/api/matchers.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/gutenberg/packages/blocks/src/api/node.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/gutenberg/packages/blocks/src/api/children.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/gutenberg/packages/blocks/src/api/raw-handling/index.native.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/gutenberg/packages/blocks/src/api/raw-handling/phrasing-content.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/gutenberg/packages/block-library/src/code/index.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/gutenberg/packages/components/src/index.native.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/gutenberg/packages/components/src/primitives/index.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/gutenberg/packages/components/src/primitives/svg/index.native.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/react-native-svg/index.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/react-native-svg/elements/Rect.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/react-native-svg/elements/Path.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/react-native-svg/elements/Shape.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/react-native-svg/lib/SvgTouchableMixin.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/react-native-svg/lib/extract/extractProps.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/react-native-svg/lib/extract/extractFill.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/react-native-svg/lib/extract/extractBrush.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/color/index.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/color-string/index.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/color-string/node_modules/color-name/index.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/simple-swizzle/index.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/simple-swizzle/node_modules/is-arrayish/index.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/color-convert/index.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/color-convert/conversions.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/color-name/index.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/color-convert/route.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/react-native-svg/lib/extract/patternReg.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/react-native-svg/lib/extract/extractOpacity.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/react-native-svg/lib/extract/extractStroke.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/react-native-svg/lib/extract/extractLengthList.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/react-native-svg/lib/extract/extractTransform.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/react-native-svg/lib/Matrix2D.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/pegjs/lib/peg.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/pegjs/lib/utils/arrays.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/pegjs/lib/utils/objects.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/pegjs/lib/grammar-error.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/pegjs/lib/utils/classes.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/pegjs/lib/parser.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/pegjs/lib/compiler/index.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/pegjs/lib/compiler/visitor.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/pegjs/lib/compiler/passes/report-undefined-rules.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/pegjs/lib/compiler/asts.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/pegjs/lib/compiler/passes/report-duplicate-rules.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/pegjs/lib/compiler/passes/report-duplicate-labels.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/pegjs/lib/compiler/passes/report-infinite-recursion.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/pegjs/lib/compiler/passes/report-infinite-repetition.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/pegjs/lib/compiler/passes/remove-proxy-rules.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/pegjs/lib/compiler/passes/generate-bytecode.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/pegjs/lib/compiler/opcodes.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/pegjs/lib/compiler/js.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/pegjs/lib/compiler/passes/generate-js.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/react-native-svg/lib/extract/extractClipPath.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/react-native-svg/lib/extract/extractResponder.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/react-native-svg/elements/Circle.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/react-native-svg/elements/Ellipse.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/react-native-svg/elements/Polygon.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/react-native-svg/lib/extract/extractPolyPoints.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/react-native-svg/elements/Polyline.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/react-native-svg/elements/Line.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/react-native-svg/elements/Svg.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/react-native-svg/lib/extract/extractViewBox.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/react-native-svg/elements/G.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/react-native-svg/lib/extract/extractText.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/react-native-svg/elements/Text.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/react-native-svg/elements/TSpan.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/react-native-svg/elements/TextPath.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/react-native-svg/elements/Use.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/react-native-svg/elements/Image.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/react-native-svg/elements/Symbol.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/react-native-svg/elements/Defs.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/react-native-svg/elements/LinearGradient.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/react-native-svg/lib/extract/extractGradient.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/react-native-svg/lib/units.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/react-native-svg/elements/RadialGradient.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/react-native-svg/elements/Stop.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/react-native-svg/elements/ClipPath.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/react-native-svg/elements/Pattern.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/react-native-svg/elements/Mask.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/gutenberg/packages/components/src/primitives/svg/style.native.scss","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/gutenberg/packages/components/src/dashicon/index.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/gutenberg/packages/components/src/dashicon/icon-class.native.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/gutenberg/packages/components/src/toolbar/index.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/classnames/index.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/gutenberg/packages/components/src/toolbar-button/index.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/gutenberg/packages/components/src/icon-button/index.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/gutenberg/packages/components/src/tooltip/index.native.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/gutenberg/packages/components/src/button/index.native.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/gutenberg/packages/components/src/toolbar-button/toolbar-button-container.native.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/gutenberg/packages/components/src/dropdown-menu/index.native.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/gutenberg/packages/components/src/toolbar/toolbar-container.native.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/gutenberg/packages/components/src/toolbar/style.native.scss","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/gutenberg/packages/components/src/higher-order/with-spoken-messages/index.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/gutenberg/packages/a11y/src/index.native.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/gutenberg/packages/a11y/src/filterMessage.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/gutenberg/packages/components/src/slot-fill/index.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/gutenberg/packages/components/src/slot-fill/slot.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/gutenberg/packages/components/src/slot-fill/context.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/gutenberg/packages/components/src/slot-fill/fill.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/gutenberg/packages/components/src/higher-order/with-filters/index.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/gutenberg/packages/block-library/src/code/edit.native.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/gutenberg/packages/editor/src/index.native.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/gutenberg/packages/core-data/src/index.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/gutenberg/packages/core-data/src/reducer.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/gutenberg/packages/core-data/src/utils/index.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/gutenberg/packages/core-data/src/utils/if-matching-action.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/gutenberg/packages/core-data/src/utils/on-sub-key.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/gutenberg/packages/core-data/src/utils/replace-action.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/gutenberg/packages/core-data/src/utils/with-weak-map-cache.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/gutenberg/packages/core-data/src/queried-data/index.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/gutenberg/packages/core-data/src/queried-data/actions.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/gutenberg/packages/core-data/src/queried-data/selectors.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/gutenberg/packages/core-data/src/queried-data/get-query-parts.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/gutenberg/packages/url/src/index.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/qs/lib/index.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/qs/lib/stringify.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/qs/lib/utils.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/qs/lib/formats.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/qs/lib/parse.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/gutenberg/packages/core-data/src/queried-data/reducer.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/gutenberg/packages/core-data/src/entities.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/gutenberg/packages/core-data/src/actions.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/gutenberg/packages/core-data/src/controls.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/gutenberg/packages/api-fetch/src/index.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/gutenberg/packages/api-fetch/src/middlewares/nonce.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/gutenberg/packages/api-fetch/src/middlewares/root-url.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/gutenberg/packages/api-fetch/src/middlewares/namespace-endpoint.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/gutenberg/packages/api-fetch/src/middlewares/preloading.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/gutenberg/packages/api-fetch/src/middlewares/fetch-all-middleware.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/gutenberg/packages/api-fetch/src/middlewares/http-v1.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/gutenberg/packages/api-fetch/src/middlewares/user-locale.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/gutenberg/packages/core-data/src/selectors.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/gutenberg/packages/core-data/src/name.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/gutenberg/packages/core-data/src/resolvers.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/gutenberg/packages/editor/src/store/index.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/gutenberg/packages/editor/src/store/reducer.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/redux-optimist/index.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/redux-optimist/lib/index.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/gutenberg/packages/editor/src/utils/with-history/index.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/gutenberg/packages/editor/src/utils/with-change-detection/index.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/gutenberg/packages/editor/src/store/defaults.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/gutenberg/packages/editor/src/store/array.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/gutenberg/packages/editor/src/store/constants.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/gutenberg/packages/editor/src/store/middlewares.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/refx/refx.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/redux-multi/lib/index.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/gutenberg/packages/editor/src/store/effects.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/gutenberg/packages/editor/src/store/actions.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/gutenberg/packages/editor/src/store/selectors.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/gutenberg/packages/date/src/index.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/moment/moment.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/moment-timezone/moment-timezone.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/moment-timezone/moment-timezone-utils.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/moment-timezone/index.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/moment-timezone/data/packed/latest.json","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/gutenberg/packages/editor/src/store/effects/reusable-blocks.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/gutenberg/packages/editor/src/store/effects/posts.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/gutenberg/packages/editor/src/store/effects/utils.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/gutenberg/packages/editor/src/hooks/index.native.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/gutenberg/packages/editor/src/hooks/custom-class-name.native.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/gutenberg/packages/editor/src/hooks/generated-class-name.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/gutenberg/packages/editor/src/components/index.native.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/gutenberg/packages/editor/src/components/colors/index.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/gutenberg/packages/editor/src/components/colors/utils.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/gutenberg/packages/editor/src/components/colors/with-colors.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/gutenberg/packages/editor/src/components/font-sizes/index.native.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/gutenberg/packages/editor/src/components/font-sizes/utils.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/gutenberg/packages/editor/src/components/plain-text/index.native.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/gutenberg/packages/editor/src/components/plain-text/style.native.scss","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/gutenberg/packages/editor/src/components/rich-text/index.native.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/react-native-aztec/index.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/react-native-aztec/src/AztecView.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/react-native/lib/TextInputState.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/gutenberg/packages/rich-text/src/index.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/gutenberg/packages/rich-text/src/store/index.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/gutenberg/packages/rich-text/src/store/reducer.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/gutenberg/packages/rich-text/src/store/selectors.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/gutenberg/packages/rich-text/src/store/actions.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/gutenberg/packages/rich-text/src/apply-format.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/gutenberg/packages/rich-text/src/normalise-formats.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/gutenberg/packages/rich-text/src/is-format-equal.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/gutenberg/packages/rich-text/src/char-at.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/gutenberg/packages/rich-text/src/concat.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/gutenberg/packages/rich-text/src/create.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/gutenberg/packages/rich-text/src/is-empty.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/gutenberg/packages/rich-text/src/special-characters.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/gutenberg/packages/rich-text/src/create-element.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/gutenberg/packages/rich-text/src/get-active-format.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/gutenberg/packages/rich-text/src/get-selection-end.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/gutenberg/packages/rich-text/src/get-selection-start.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/gutenberg/packages/rich-text/src/get-text-content.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/gutenberg/packages/rich-text/src/is-collapsed.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/gutenberg/packages/rich-text/src/join.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/gutenberg/packages/rich-text/src/register-format-type.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/gutenberg/packages/rich-text/src/remove-format.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/gutenberg/packages/rich-text/src/remove.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/gutenberg/packages/rich-text/src/insert.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/gutenberg/packages/rich-text/src/replace.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/gutenberg/packages/rich-text/src/insert-line-separator.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/gutenberg/packages/rich-text/src/insert-object.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/gutenberg/packages/rich-text/src/slice.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/gutenberg/packages/rich-text/src/split.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/gutenberg/packages/rich-text/src/to-dom.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/gutenberg/packages/rich-text/src/to-tree.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/gutenberg/packages/rich-text/src/get-format-type.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/gutenberg/packages/rich-text/src/to-html-string.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/gutenberg/packages/rich-text/src/toggle-format.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/gutenberg/packages/rich-text/src/unregister-format-type.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/gutenberg/packages/keycodes/src/index.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/gutenberg/packages/keycodes/src/platform.native.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/gutenberg/packages/editor/src/components/media-placeholder/index.native.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/gutenberg/packages/editor/src/components/media-placeholder/styles.native.scss","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/gutenberg/packages/editor/src/components/block-format-controls/index.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/gutenberg/packages/editor/src/components/block-edit/context.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/gutenberg/packages/editor/src/components/block-controls/index.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/gutenberg/packages/editor/src/components/block-edit/index.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/gutenberg/packages/editor/src/components/block-edit/edit.native.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/gutenberg/packages/editor/src/components/default-block-appender/index.native.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/gutenberg/packages/editor/src/components/default-block-appender/style.native.scss","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/gutenberg/packages/editor/src/components/editor-history/redo.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/gutenberg/packages/editor/src/components/editor-history/undo.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/gutenberg/packages/editor/src/utils/index.native.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/gutenberg/packages/block-library/src/code/theme.ios.scss","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/gutenberg/packages/block-library/src/code/theme.android.scss","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/gutenberg/packages/block-library/src/heading/index.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/gutenberg/packages/block-library/src/heading/edit.native.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/gutenberg/packages/block-library/src/heading/heading-toolbar.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/gutenberg/packages/block-library/src/heading/editor.scss","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/gutenberg/packages/block-library/src/more/index.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/gutenberg/packages/block-library/src/more/edit.native.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/gutenberg/packages/block-library/src/more/editor.native.scss","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/gutenberg/packages/block-library/src/paragraph/index.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/gutenberg/packages/block-library/src/paragraph/edit.native.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/gutenberg/packages/block-library/src/paragraph/style.native.scss","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/gutenberg/packages/block-library/src/image/index.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/gutenberg/packages/blob/src/index.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/gutenberg/packages/block-library/src/image/edit.native.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/react-native-gutenberg-bridge/index.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/gutenberg/packages/block-library/src/nextpage/index.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/gutenberg/packages/block-library/src/nextpage/edit.native.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/react-native-hr/dist/index.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/gutenberg/packages/block-library/src/nextpage/editor.native.scss","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/src/app/AppContainer.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/src/app/MainApp.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/src/block-management/block-manager.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/src/block-management/block-holder.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/src/block-management/inline-toolbar/index.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/src/block-management/inline-toolbar/actions.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/src/block-management/inline-toolbar/style.scss","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/src/block-management/block-holder.scss","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/src/block-management/block-manager.scss","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/src/block-management/block-toolbar.scss","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/src/block-management/block-picker.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/react-native-modal/src/index.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/react-native-animatable/index.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/react-native-animatable/createAnimatableComponent.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/react-native-animatable/wrapStyleTransforms.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/react-native-animatable/getStyleValues.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/react-native-animatable/flattenStyle.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/react-native-animatable/getDefaultStyleValue.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/react-native-animatable/createAnimation.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/react-native-animatable/registry.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/react-native-animatable/easing.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/react-native-animatable/definitions/index.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/react-native-animatable/definitions/attention-seekers.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/react-native-animatable/definitions/bouncing-entrances.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/react-native-animatable/definitions/bouncing-exits.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/react-native-animatable/definitions/fading-entrances.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/react-native-animatable/definitions/fading-exits.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/react-native-animatable/definitions/flippers.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/react-native-animatable/definitions/lightspeed.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/react-native-animatable/definitions/sliding-entrances.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/react-native-animatable/definitions/sliding-exits.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/react-native-animatable/definitions/zooming-entrances.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/react-native-animatable/definitions/zooming-exits.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/react-native-modal/src/animations.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/react-native-modal/src/index.style.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/src/block-management/block-picker.scss","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/src/block-types/unsupported-block/index.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/src/block-types/unsupported-block/edit.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/src/components/html-text-input.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/src/components/html-text-input.scss","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/src/block-management/block-toolbar.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/src/components/keyboard-hide-button.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/src/components/keyboard-avoiding-view.android.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/src/components/keyboard-aware-flat-list.android.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/react-native-safe-area/lib/index.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/react-native-safe-area/lib/SafeArea.android.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/react-native-safe-area/lib/withSafeArea.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/react-native-safe-area/lib/TypeDefinition.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/node_modules/events/events.js","/Users/hypest/proj/a8c/android/wp/libs/gutenberg-mobile/src/app/initial-html.js"],"sourcesContent":["var __DEV__=false,__BUNDLE_START_TIME__=this.nativePerformanceNow?nativePerformanceNow():Date.now(),process=this.process||{};process.env=process.env||{};process.env.NODE_ENV=\"production\";","/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @polyfill\n *\n * @format\n */\n\n\"use strict\";\n\n/* eslint-disable no-bitwise */\n\nglobal.__r = metroRequire;\nglobal.__d = define;\nglobal.__c = clear;\n\nvar modules = clear();\n\n// Don't use a Symbol here, it would pull in an extra polyfill with all sorts of\n// additional stuff (e.g. Array.from).\nvar EMPTY = {};\nvar _ref = {},\n hasOwnProperty = _ref.hasOwnProperty;\n\nfunction clear() {\n modules =\n typeof __NUM_MODULES__ === \"number\"\n ? Array(__NUM_MODULES__ | 0)\n : Object.create(null);\n\n // We return modules here so that we can assign an initial value to modules\n // when defining it. Otherwise, we would have to do \"let modules = null\",\n // which will force us to add \"nullthrows\" everywhere.\n return modules;\n}\n\nif (__DEV__) {\n var verboseNamesToModuleIds = Object.create(null);\n var initializingModuleIds = [];\n}\n\nfunction define(factory, moduleId, dependencyMap) {\n if (modules[moduleId] != null) {\n if (__DEV__) {\n // (We take `inverseDependencies` from `arguments` to avoid an unused\n // named parameter in `define` in production.\n var inverseDependencies = arguments[4];\n\n // If the module has already been defined and the define method has been\n // called with inverseDependencies, we can hot reload it.\n if (inverseDependencies) {\n global.__accept(moduleId, factory, dependencyMap, inverseDependencies);\n } else {\n console.warn(\n \"Trying to define twice module ID \" + moduleId + \" in the same bundle\"\n );\n }\n }\n\n // prevent repeated calls to `global.nativeRequire` to overwrite modules\n // that are already loaded\n return;\n }\n modules[moduleId] = {\n dependencyMap: dependencyMap,\n factory: factory,\n hasError: false,\n importedAll: EMPTY,\n importedDefault: EMPTY,\n isInitialized: false,\n publicModule: { exports: {} }\n };\n if (__DEV__) {\n // HMR\n modules[moduleId].hot = createHotReloadingObject();\n\n // DEBUGGABLE MODULES NAMES\n // we take `verboseName` from `arguments` to avoid an unused named parameter\n // in `define` in production.\n var _verboseName = arguments[3];\n if (_verboseName) {\n modules[moduleId].verboseName = _verboseName;\n verboseNamesToModuleIds[_verboseName] = moduleId;\n }\n }\n}\n\nfunction metroRequire(moduleId) {\n if (__DEV__ && typeof moduleId === \"string\") {\n var _verboseName2 = moduleId;\n moduleId = verboseNamesToModuleIds[_verboseName2];\n if (moduleId == null) {\n throw new Error('Unknown named module: \"' + _verboseName2 + '\"');\n } else {\n console.warn(\n 'Requiring module \"' +\n _verboseName2 +\n '\" by name is only supported for ' +\n \"debugging purposes and will BREAK IN PRODUCTION!\"\n );\n }\n }\n\n //$FlowFixMe: at this point we know that moduleId is a number\n var moduleIdReallyIsNumber = moduleId;\n\n if (__DEV__) {\n var initializingIndex = initializingModuleIds.indexOf(\n moduleIdReallyIsNumber\n );\n if (initializingIndex !== -1) {\n var cycle = initializingModuleIds\n .slice(initializingIndex)\n .map(function(id) {\n return modules[id].verboseName;\n });\n // We want to show A -> B -> A:\n cycle.push(cycle[0]);\n console.warn(\n \"Require cycle: \" +\n cycle.join(\" -> \") +\n \"\\n\\n\" +\n \"Require cycles are allowed, but can result in uninitialized values. \" +\n \"Consider refactoring to remove the need for a cycle.\"\n );\n }\n }\n\n var module = modules[moduleIdReallyIsNumber];\n\n return module && module.isInitialized\n ? module.publicModule.exports\n : guardedLoadModule(moduleIdReallyIsNumber, module);\n}\n\nfunction metroImportDefault(moduleId) {\n if (__DEV__ && typeof moduleId === \"string\") {\n var _verboseName3 = moduleId;\n moduleId = verboseNamesToModuleIds[_verboseName3];\n }\n\n //$FlowFixMe: at this point we know that moduleId is a number\n var moduleIdReallyIsNumber = moduleId;\n\n if (\n modules[moduleIdReallyIsNumber] &&\n modules[moduleIdReallyIsNumber].importedDefault !== EMPTY\n ) {\n return modules[moduleIdReallyIsNumber].importedDefault;\n }\n\n var exports = metroRequire(moduleIdReallyIsNumber);\n var importedDefault =\n exports && exports.__esModule ? exports.default : exports;\n\n return (modules[moduleIdReallyIsNumber].importedDefault = importedDefault);\n}\n\nfunction metroImportAll(moduleId) {\n if (__DEV__ && typeof moduleId === \"string\") {\n var _verboseName4 = moduleId;\n moduleId = verboseNamesToModuleIds[_verboseName4];\n }\n\n //$FlowFixMe: at this point we know that moduleId is a number\n var moduleIdReallyIsNumber = moduleId;\n\n if (\n modules[moduleIdReallyIsNumber] &&\n modules[moduleIdReallyIsNumber].importedAll !== EMPTY\n ) {\n return modules[moduleIdReallyIsNumber].importedAll;\n }\n\n var exports = metroRequire(moduleIdReallyIsNumber);\n var importedAll = void 0;\n\n if (exports && exports.__esModule) {\n importedAll = exports;\n } else {\n importedAll = {};\n\n // Refrain from using Object.assign, it has to work in ES3 environments.\n if (exports) {\n for (var _key in exports) {\n if (hasOwnProperty.call(exports, _key)) {\n importedAll[_key] = exports[_key];\n }\n }\n }\n\n importedAll.default = exports;\n }\n\n return (modules[moduleIdReallyIsNumber].importedAll = importedAll);\n}\n\nvar inGuard = false;\nfunction guardedLoadModule(moduleId, module) {\n if (!inGuard && global.ErrorUtils) {\n inGuard = true;\n var returnValue = void 0;\n try {\n returnValue = loadModuleImplementation(moduleId, module);\n } catch (e) {\n global.ErrorUtils.reportFatalError(e);\n }\n inGuard = false;\n return returnValue;\n } else {\n return loadModuleImplementation(moduleId, module);\n }\n}\n\nvar ID_MASK_SHIFT = 16;\nvar LOCAL_ID_MASK = ~0 >>> ID_MASK_SHIFT;\n\nfunction unpackModuleId(moduleId) {\n var segmentId = moduleId >>> ID_MASK_SHIFT;\n var localId = moduleId & LOCAL_ID_MASK;\n return { segmentId: segmentId, localId: localId };\n}\nmetroRequire.unpackModuleId = unpackModuleId;\n\nfunction packModuleId(value) {\n return (value.segmentId << ID_MASK_SHIFT) + value.localId;\n}\nmetroRequire.packModuleId = packModuleId;\n\nvar hooks = [];\nfunction registerHook(cb) {\n var hook = { cb: cb };\n hooks.push(hook);\n return {\n release: function release() {\n for (var i = 0; i < hooks.length; ++i) {\n if (hooks[i] === hook) {\n hooks.splice(i, 1);\n break;\n }\n }\n }\n };\n}\nmetroRequire.registerHook = registerHook;\n\nfunction loadModuleImplementation(moduleId, module) {\n if (!module && global.__defineModule) {\n global.__defineModule(moduleId);\n module = modules[moduleId];\n }\n\n var nativeRequire = global.nativeRequire;\n if (!module && nativeRequire) {\n var _unpackModuleId = unpackModuleId(moduleId),\n _segmentId = _unpackModuleId.segmentId,\n _localId = _unpackModuleId.localId;\n\n nativeRequire(_localId, _segmentId);\n module = modules[moduleId];\n }\n\n if (!module) {\n throw unknownModuleError(moduleId);\n }\n\n if (module.hasError) {\n throw moduleThrewError(moduleId, module.error);\n }\n\n // `metroRequire` calls into the require polyfill itself are not analyzed and\n // replaced so that they use numeric module IDs.\n // The systrace module will expose itself on the metroRequire function so that\n // it can be used here.\n // TODO(davidaurelio) Scan polyfills for dependencies, too (t9759686)\n if (__DEV__) {\n var Systrace = metroRequire.Systrace;\n }\n\n // We must optimistically mark module as initialized before running the\n // factory to keep any require cycles inside the factory from causing an\n // infinite require loop.\n module.isInitialized = true;\n\n var _module = module,\n factory = _module.factory,\n dependencyMap = _module.dependencyMap;\n\n if (__DEV__) {\n initializingModuleIds.push(moduleId);\n }\n try {\n if (__DEV__) {\n // $FlowFixMe: we know that __DEV__ is const and `Systrace` exists\n Systrace.beginEvent(\"JS_require_\" + (module.verboseName || moduleId));\n }\n\n var _moduleObject = module.publicModule;\n\n if (__DEV__) {\n if (module.hot) {\n _moduleObject.hot = module.hot;\n }\n }\n _moduleObject.id = moduleId;\n\n if (hooks.length > 0) {\n for (var i = 0; i < hooks.length; ++i) {\n hooks[i].cb(moduleId, _moduleObject);\n }\n }\n\n // keep args in sync with with defineModuleCode in\n // metro/src/Resolver/index.js\n // and metro/src/ModuleGraph/worker.js\n factory(\n global,\n metroRequire,\n metroImportDefault,\n metroImportAll,\n _moduleObject,\n _moduleObject.exports,\n dependencyMap\n );\n\n // avoid removing factory in DEV mode as it breaks HMR\n if (!__DEV__) {\n // $FlowFixMe: This is only sound because we never access `factory` again\n module.factory = undefined;\n module.dependencyMap = undefined;\n }\n\n if (__DEV__) {\n // $FlowFixMe: we know that __DEV__ is const and `Systrace` exists\n Systrace.endEvent();\n }\n return _moduleObject.exports;\n } catch (e) {\n module.hasError = true;\n module.error = e;\n module.isInitialized = false;\n module.publicModule.exports = undefined;\n throw e;\n } finally {\n if (__DEV__) {\n if (initializingModuleIds.pop() !== moduleId) {\n throw new Error(\n \"initializingModuleIds is corrupt; something is terribly wrong\"\n );\n }\n }\n }\n}\n\nfunction unknownModuleError(id) {\n var message = 'Requiring unknown module \"' + id + '\".';\n if (__DEV__) {\n message +=\n \"If you are sure the module is there, try restarting Metro Bundler. \" +\n \"You may also want to run `yarn`, or `npm install` (depending on your environment).\";\n }\n return Error(message);\n}\n\nfunction moduleThrewError(id, error) {\n var displayName = (__DEV__ && modules[id] && modules[id].verboseName) || id;\n return Error(\n 'Requiring module \"' + displayName + '\", which threw an exception: ' + error\n );\n}\n\nif (__DEV__) {\n metroRequire.Systrace = {\n beginEvent: function beginEvent() {},\n endEvent: function endEvent() {}\n };\n\n metroRequire.getModules = function() {\n return modules;\n };\n\n // HOT MODULE RELOADING\n var createHotReloadingObject = function createHotReloadingObject() {\n var hot = {\n acceptCallback: null,\n accept: function accept(callback) {\n hot.acceptCallback = callback;\n },\n disposeCallback: null,\n dispose: function dispose(callback) {\n hot.disposeCallback = callback;\n }\n };\n return hot;\n };\n\n var metroAcceptAll = function metroAcceptAll(\n dependentModules,\n inverseDependencies,\n patchedModules\n ) {\n if (!dependentModules || dependentModules.length === 0) {\n return true;\n }\n\n var notAccepted = dependentModules.filter(function(module) {\n return !metroAccept(\n module,\n /*factory*/ undefined,\n /*dependencyMap*/ undefined,\n inverseDependencies,\n patchedModules\n );\n });\n\n var parents = [];\n for (var i = 0; i < notAccepted.length; i++) {\n // if the module has no parents then the change cannot be hot loaded\n if (inverseDependencies[notAccepted[i]].length === 0) {\n return false;\n }\n\n parents.push.apply(parents, inverseDependencies[notAccepted[i]]);\n }\n\n return parents.length == 0;\n };\n\n var metroAccept = function metroAccept(\n id,\n factory,\n dependencyMap,\n inverseDependencies\n ) {\n var patchedModules =\n arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : {};\n\n if (id in patchedModules) {\n // Do not patch the same module more that once during an update.\n return true;\n }\n patchedModules[id] = true;\n\n var mod = modules[id];\n\n if (!mod && factory) {\n // New modules are going to be handled by the define() method.\n return true;\n }\n\n var hot = mod.hot;\n\n if (!hot) {\n console.warn(\n \"Cannot accept module because Hot Module Replacement \" +\n \"API was not installed.\"\n );\n return false;\n }\n\n if (hot.disposeCallback) {\n try {\n hot.disposeCallback();\n } catch (error) {\n console.error(\n \"Error while calling dispose handler for module \" + id + \": \",\n error\n );\n }\n }\n\n // replace and initialize factory\n if (factory) {\n mod.factory = factory;\n }\n if (dependencyMap) {\n mod.dependencyMap = dependencyMap;\n }\n mod.hasError = false;\n mod.isInitialized = false;\n metroRequire(id);\n\n if (hot.acceptCallback) {\n try {\n hot.acceptCallback();\n return true;\n } catch (error) {\n console.error(\n \"Error while calling accept handler for module \" + id + \": \",\n error\n );\n }\n }\n\n // need to have inverseDependencies to bubble up accept\n if (!inverseDependencies) {\n throw new Error(\"Undefined `inverseDependencies`\");\n }\n\n // accept parent modules recursively up until all siblings are accepted\n return metroAcceptAll(\n inverseDependencies[id],\n inverseDependencies,\n patchedModules\n );\n };\n\n global.__accept = metroAccept;\n}\n","/**\n * Copyright (c) 2015-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n * @polyfill\n * @nolint\n */\n\n// WARNING: This is an optimized version that fails on hasOwnProperty checks\n// and non objects. It's not spec-compliant. It's a perf optimization.\n// This is only needed for iOS 8 and current Android JSC.\n\nObject.assign = function(target, sources) {\n if (__DEV__) {\n if (target == null) {\n throw new TypeError('Object.assign target cannot be null or undefined');\n }\n if (typeof target !== 'object' && typeof target !== 'function') {\n throw new TypeError(\n 'In this environment the target of assign MUST be an object. ' +\n 'This error is a performance optimization and not spec compliant.',\n );\n }\n }\n\n for (var nextIndex = 1; nextIndex < arguments.length; nextIndex++) {\n var nextSource = arguments[nextIndex];\n if (nextSource == null) {\n continue;\n }\n\n if (__DEV__) {\n if (typeof nextSource !== 'object' && typeof nextSource !== 'function') {\n throw new TypeError(\n 'In this environment the sources for assign MUST be an object. ' +\n 'This error is a performance optimization and not spec compliant.',\n );\n }\n }\n\n // We don't currently support accessors nor proxies. Therefore this\n // copy cannot throw. If we ever supported this then we must handle\n // exceptions and side-effects.\n\n for (var key in nextSource) {\n if (__DEV__) {\n var hasOwnProperty = Object.prototype.hasOwnProperty;\n if (!hasOwnProperty.call(nextSource, key)) {\n throw new TypeError(\n 'One of the sources for assign has an enumerable key on the ' +\n 'prototype chain. Are you trying to assign a prototype property? ' +\n \"We don't allow it, as this is an edge case that we do not support. \" +\n 'This error is a performance optimization and not spec compliant.',\n );\n }\n }\n target[key] = nextSource[key];\n }\n }\n\n return target;\n};\n","/**\n * Copyright (c) 2015-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @polyfill\n * @nolint\n * @format\n */\n\n/* eslint-disable no-shadow, eqeqeq, curly, no-unused-vars, no-void */\n\n/**\n * This pipes all of our console logging functions to native logging so that\n * JavaScript errors in required modules show up in Xcode via NSLog.\n */\nconst inspect = (function() {\n // Copyright Joyent, Inc. and other Node contributors.\n //\n // Permission is hereby granted, free of charge, to any person obtaining a\n // copy of this software and associated documentation files (the\n // \"Software\"), to deal in the Software without restriction, including\n // without limitation the rights to use, copy, modify, merge, publish,\n // distribute, sublicense, and/or sell copies of the Software, and to permit\n // persons to whom the Software is furnished to do so, subject to the\n // following conditions:\n //\n // The above copyright notice and this permission notice shall be included\n // in all copies or substantial portions of the Software.\n //\n // THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS\n // OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN\n // NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,\n // DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR\n // OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE\n // USE OR OTHER DEALINGS IN THE SOFTWARE.\n //\n // https://github.com/joyent/node/blob/master/lib/util.js\n\n function inspect(obj, opts) {\n var ctx = {\n seen: [],\n stylize: stylizeNoColor,\n };\n return formatValue(ctx, obj, opts.depth);\n }\n\n function stylizeNoColor(str, styleType) {\n return str;\n }\n\n function arrayToHash(array) {\n var hash = {};\n\n array.forEach(function(val, idx) {\n hash[val] = true;\n });\n\n return hash;\n }\n\n function formatValue(ctx, value, recurseTimes) {\n // Primitive types cannot have properties\n var primitive = formatPrimitive(ctx, value);\n if (primitive) {\n return primitive;\n }\n\n // Look up the keys of the object.\n var keys = Object.keys(value);\n var visibleKeys = arrayToHash(keys);\n\n // IE doesn't make error fields non-enumerable\n // http://msdn.microsoft.com/en-us/library/ie/dww52sbt(v=vs.94).aspx\n if (\n isError(value) &&\n (keys.indexOf('message') >= 0 || keys.indexOf('description') >= 0)\n ) {\n return formatError(value);\n }\n\n // Some type of object without properties can be shortcutted.\n if (keys.length === 0) {\n if (isFunction(value)) {\n var name = value.name ? ': ' + value.name : '';\n return ctx.stylize('[Function' + name + ']', 'special');\n }\n if (isRegExp(value)) {\n return ctx.stylize(RegExp.prototype.toString.call(value), 'regexp');\n }\n if (isDate(value)) {\n return ctx.stylize(Date.prototype.toString.call(value), 'date');\n }\n if (isError(value)) {\n return formatError(value);\n }\n }\n\n var base = '',\n array = false,\n braces = ['{', '}'];\n\n // Make Array say that they are Array\n if (isArray(value)) {\n array = true;\n braces = ['[', ']'];\n }\n\n // Make functions say that they are functions\n if (isFunction(value)) {\n var n = value.name ? ': ' + value.name : '';\n base = ' [Function' + n + ']';\n }\n\n // Make RegExps say that they are RegExps\n if (isRegExp(value)) {\n base = ' ' + RegExp.prototype.toString.call(value);\n }\n\n // Make dates with properties first say the date\n if (isDate(value)) {\n base = ' ' + Date.prototype.toUTCString.call(value);\n }\n\n // Make error with message first say the error\n if (isError(value)) {\n base = ' ' + formatError(value);\n }\n\n if (keys.length === 0 && (!array || value.length == 0)) {\n return braces[0] + base + braces[1];\n }\n\n if (recurseTimes < 0) {\n if (isRegExp(value)) {\n return ctx.stylize(RegExp.prototype.toString.call(value), 'regexp');\n } else {\n return ctx.stylize('[Object]', 'special');\n }\n }\n\n ctx.seen.push(value);\n\n var output;\n if (array) {\n output = formatArray(ctx, value, recurseTimes, visibleKeys, keys);\n } else {\n output = keys.map(function(key) {\n return formatProperty(\n ctx,\n value,\n recurseTimes,\n visibleKeys,\n key,\n array,\n );\n });\n }\n\n ctx.seen.pop();\n\n return reduceToSingleString(output, base, braces);\n }\n\n function formatPrimitive(ctx, value) {\n if (isUndefined(value)) return ctx.stylize('undefined', 'undefined');\n if (isString(value)) {\n var simple =\n \"'\" +\n JSON.stringify(value)\n .replace(/^\"|\"$/g, '')\n .replace(/'/g, \"\\\\'\")\n .replace(/\\\\\"/g, '\"') +\n \"'\";\n return ctx.stylize(simple, 'string');\n }\n if (isNumber(value)) return ctx.stylize('' + value, 'number');\n if (isBoolean(value)) return ctx.stylize('' + value, 'boolean');\n // For some reason typeof null is \"object\", so special case here.\n if (isNull(value)) return ctx.stylize('null', 'null');\n }\n\n function formatError(value) {\n return '[' + Error.prototype.toString.call(value) + ']';\n }\n\n function formatArray(ctx, value, recurseTimes, visibleKeys, keys) {\n var output = [];\n for (var i = 0, l = value.length; i < l; ++i) {\n if (hasOwnProperty(value, String(i))) {\n output.push(\n formatProperty(\n ctx,\n value,\n recurseTimes,\n visibleKeys,\n String(i),\n true,\n ),\n );\n } else {\n output.push('');\n }\n }\n keys.forEach(function(key) {\n if (!key.match(/^\\d+$/)) {\n output.push(\n formatProperty(ctx, value, recurseTimes, visibleKeys, key, true),\n );\n }\n });\n return output;\n }\n\n function formatProperty(ctx, value, recurseTimes, visibleKeys, key, array) {\n var name, str, desc;\n desc = Object.getOwnPropertyDescriptor(value, key) || {value: value[key]};\n if (desc.get) {\n if (desc.set) {\n str = ctx.stylize('[Getter/Setter]', 'special');\n } else {\n str = ctx.stylize('[Getter]', 'special');\n }\n } else {\n if (desc.set) {\n str = ctx.stylize('[Setter]', 'special');\n }\n }\n if (!hasOwnProperty(visibleKeys, key)) {\n name = '[' + key + ']';\n }\n if (!str) {\n if (ctx.seen.indexOf(desc.value) < 0) {\n if (isNull(recurseTimes)) {\n str = formatValue(ctx, desc.value, null);\n } else {\n str = formatValue(ctx, desc.value, recurseTimes - 1);\n }\n if (str.indexOf('\\n') > -1) {\n if (array) {\n str = str\n .split('\\n')\n .map(function(line) {\n return ' ' + line;\n })\n .join('\\n')\n .substr(2);\n } else {\n str =\n '\\n' +\n str\n .split('\\n')\n .map(function(line) {\n return ' ' + line;\n })\n .join('\\n');\n }\n }\n } else {\n str = ctx.stylize('[Circular]', 'special');\n }\n }\n if (isUndefined(name)) {\n if (array && key.match(/^\\d+$/)) {\n return str;\n }\n name = JSON.stringify('' + key);\n if (name.match(/^\"([a-zA-Z_][a-zA-Z_0-9]*)\"$/)) {\n name = name.substr(1, name.length - 2);\n name = ctx.stylize(name, 'name');\n } else {\n name = name\n .replace(/'/g, \"\\\\'\")\n .replace(/\\\\\"/g, '\"')\n .replace(/(^\"|\"$)/g, \"'\");\n name = ctx.stylize(name, 'string');\n }\n }\n\n return name + ': ' + str;\n }\n\n function reduceToSingleString(output, base, braces) {\n var numLinesEst = 0;\n var length = output.reduce(function(prev, cur) {\n numLinesEst++;\n if (cur.indexOf('\\n') >= 0) numLinesEst++;\n return prev + cur.replace(/\\u001b\\[\\d\\d?m/g, '').length + 1;\n }, 0);\n\n if (length > 60) {\n return (\n braces[0] +\n (base === '' ? '' : base + '\\n ') +\n ' ' +\n output.join(',\\n ') +\n ' ' +\n braces[1]\n );\n }\n\n return braces[0] + base + ' ' + output.join(', ') + ' ' + braces[1];\n }\n\n // NOTE: These type checking functions intentionally don't use `instanceof`\n // because it is fragile and can be easily faked with `Object.create()`.\n function isArray(ar) {\n return Array.isArray(ar);\n }\n\n function isBoolean(arg) {\n return typeof arg === 'boolean';\n }\n\n function isNull(arg) {\n return arg === null;\n }\n\n function isNullOrUndefined(arg) {\n return arg == null;\n }\n\n function isNumber(arg) {\n return typeof arg === 'number';\n }\n\n function isString(arg) {\n return typeof arg === 'string';\n }\n\n function isSymbol(arg) {\n return typeof arg === 'symbol';\n }\n\n function isUndefined(arg) {\n return arg === void 0;\n }\n\n function isRegExp(re) {\n return isObject(re) && objectToString(re) === '[object RegExp]';\n }\n\n function isObject(arg) {\n return typeof arg === 'object' && arg !== null;\n }\n\n function isDate(d) {\n return isObject(d) && objectToString(d) === '[object Date]';\n }\n\n function isError(e) {\n return (\n isObject(e) &&\n (objectToString(e) === '[object Error]' || e instanceof Error)\n );\n }\n\n function isFunction(arg) {\n return typeof arg === 'function';\n }\n\n function isPrimitive(arg) {\n return (\n arg === null ||\n typeof arg === 'boolean' ||\n typeof arg === 'number' ||\n typeof arg === 'string' ||\n typeof arg === 'symbol' || // ES6 symbol\n typeof arg === 'undefined'\n );\n }\n\n function objectToString(o) {\n return Object.prototype.toString.call(o);\n }\n\n function hasOwnProperty(obj, prop) {\n return Object.prototype.hasOwnProperty.call(obj, prop);\n }\n\n return inspect;\n})();\n\nconst OBJECT_COLUMN_NAME = '(index)';\nconst LOG_LEVELS = {\n trace: 0,\n info: 1,\n warn: 2,\n error: 3,\n};\nconst INSPECTOR_LEVELS = [];\nINSPECTOR_LEVELS[LOG_LEVELS.trace] = 'debug';\nINSPECTOR_LEVELS[LOG_LEVELS.info] = 'log';\nINSPECTOR_LEVELS[LOG_LEVELS.warn] = 'warning';\nINSPECTOR_LEVELS[LOG_LEVELS.error] = 'error';\n\n// Strip the inner function in getNativeLogFunction(), if in dev also\n// strip method printing to originalConsole.\nconst INSPECTOR_FRAMES_TO_SKIP = __DEV__ ? 2 : 1;\n\nfunction getNativeLogFunction(level) {\n return function() {\n let str;\n if (arguments.length === 1 && typeof arguments[0] === 'string') {\n str = arguments[0];\n } else {\n str = Array.prototype.map\n .call(arguments, function(arg) {\n return inspect(arg, {depth: 10});\n })\n .join(', ');\n }\n\n let logLevel = level;\n if (str.slice(0, 9) === 'Warning: ' && logLevel >= LOG_LEVELS.error) {\n // React warnings use console.error so that a stack trace is shown,\n // but we don't (currently) want these to show a redbox\n // (Note: Logic duplicated in ExceptionsManager.js.)\n logLevel = LOG_LEVELS.warn;\n }\n if (global.__inspectorLog) {\n global.__inspectorLog(\n INSPECTOR_LEVELS[logLevel],\n str,\n [].slice.call(arguments),\n INSPECTOR_FRAMES_TO_SKIP,\n );\n }\n if (groupStack.length) {\n str = groupFormat('', str);\n }\n global.nativeLoggingHook(str, logLevel);\n };\n}\n\nfunction repeat(element, n) {\n return Array.apply(null, Array(n)).map(function() {\n return element;\n });\n}\n\nfunction consoleTablePolyfill(rows) {\n // convert object -> array\n if (!Array.isArray(rows)) {\n var data = rows;\n rows = [];\n for (var key in data) {\n if (data.hasOwnProperty(key)) {\n var row = data[key];\n row[OBJECT_COLUMN_NAME] = key;\n rows.push(row);\n }\n }\n }\n if (rows.length === 0) {\n global.nativeLoggingHook('', LOG_LEVELS.info);\n return;\n }\n\n var columns = Object.keys(rows[0]).sort();\n var stringRows = [];\n var columnWidths = [];\n\n // Convert each cell to a string. Also\n // figure out max cell width for each column\n columns.forEach(function(k, i) {\n columnWidths[i] = k.length;\n for (var j = 0; j < rows.length; j++) {\n var cellStr = (rows[j][k] || '?').toString();\n stringRows[j] = stringRows[j] || [];\n stringRows[j][i] = cellStr;\n columnWidths[i] = Math.max(columnWidths[i], cellStr.length);\n }\n });\n\n // Join all elements in the row into a single string with | separators\n // (appends extra spaces to each cell to make separators | aligned)\n function joinRow(row, space) {\n var cells = row.map(function(cell, i) {\n var extraSpaces = repeat(' ', columnWidths[i] - cell.length).join('');\n return cell + extraSpaces;\n });\n space = space || ' ';\n return cells.join(space + '|' + space);\n }\n\n var separators = columnWidths.map(function(columnWidth) {\n return repeat('-', columnWidth).join('');\n });\n var separatorRow = joinRow(separators, '-');\n var header = joinRow(columns);\n var table = [header, separatorRow];\n\n for (var i = 0; i < rows.length; i++) {\n table.push(joinRow(stringRows[i]));\n }\n\n // Notice extra empty line at the beginning.\n // Native logging hook adds \"RCTLog >\" at the front of every\n // logged string, which would shift the header and screw up\n // the table\n global.nativeLoggingHook('\\n' + table.join('\\n'), LOG_LEVELS.info);\n}\n\nconst GROUP_PAD = '\\u2502'; // Box light vertical\nconst GROUP_OPEN = '\\u2510'; // Box light down+left\nconst GROUP_CLOSE = '\\u2518'; // Box light up+left\n\nconst groupStack = [];\n\nfunction groupFormat(prefix, msg) {\n // Insert group formatting before the console message\n return groupStack.join('') + prefix + ' ' + (msg || '');\n}\n\nfunction consoleGroupPolyfill(label) {\n global.nativeLoggingHook(groupFormat(GROUP_OPEN, label), LOG_LEVELS.info);\n groupStack.push(GROUP_PAD);\n}\n\nfunction consoleGroupEndPolyfill() {\n groupStack.pop();\n global.nativeLoggingHook(groupFormat(GROUP_CLOSE), LOG_LEVELS.info);\n}\n\nif (global.nativeLoggingHook) {\n const originalConsole = global.console;\n global.console = {\n error: getNativeLogFunction(LOG_LEVELS.error),\n info: getNativeLogFunction(LOG_LEVELS.info),\n log: getNativeLogFunction(LOG_LEVELS.info),\n warn: getNativeLogFunction(LOG_LEVELS.warn),\n trace: getNativeLogFunction(LOG_LEVELS.trace),\n debug: getNativeLogFunction(LOG_LEVELS.trace),\n table: consoleTablePolyfill,\n group: consoleGroupPolyfill,\n groupEnd: consoleGroupEndPolyfill,\n };\n\n // If available, also call the original `console` method since that is\n // sometimes useful. Ex: on OS X, this will let you see rich output in\n // the Safari Web Inspector console.\n if (__DEV__ && originalConsole) {\n // Preserve the original `console` as `originalConsole`\n const descriptor = Object.getOwnPropertyDescriptor(global, 'console');\n if (descriptor) {\n Object.defineProperty(global, 'originalConsole', descriptor);\n }\n\n Object.keys(console).forEach(methodName => {\n const reactNativeMethod = console[methodName];\n if (originalConsole[methodName]) {\n console[methodName] = function() {\n originalConsole[methodName](...arguments);\n reactNativeMethod.apply(console, arguments);\n };\n }\n });\n }\n} else if (!global.console) {\n const log = global.print || function consoleLoggingStub() {};\n global.console = {\n error: log,\n info: log,\n log: log,\n warn: log,\n trace: log,\n debug: log,\n table: log,\n };\n}\n","/**\n * Copyright (c) 2015-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n * @polyfill\n * @nolint\n */\n\nlet _inGuard = 0;\n\n/**\n * This is the error handler that is called when we encounter an exception\n * when loading a module. This will report any errors encountered before\n * ExceptionsManager is configured.\n */\nlet _globalHandler = function onError(e) {\n throw e;\n};\n\n/**\n * The particular require runtime that we are using looks for a global\n * `ErrorUtils` object and if it exists, then it requires modules with the\n * error handler specified via ErrorUtils.setGlobalHandler by calling the\n * require function with applyWithGuard. Since the require module is loaded\n * before any of the modules, this ErrorUtils must be defined (and the handler\n * set) globally before requiring anything.\n */\nconst ErrorUtils = {\n setGlobalHandler(fun) {\n _globalHandler = fun;\n },\n getGlobalHandler() {\n return _globalHandler;\n },\n reportError(error) {\n _globalHandler && _globalHandler(error);\n },\n reportFatalError(error) {\n _globalHandler && _globalHandler(error, true);\n },\n applyWithGuard(fun, context, args) {\n try {\n _inGuard++;\n return fun.apply(context, args);\n } catch (e) {\n ErrorUtils.reportError(e);\n } finally {\n _inGuard--;\n }\n return null;\n },\n applyWithGuardIfNeeded(fun, context, args) {\n if (ErrorUtils.inGuard()) {\n return fun.apply(context, args);\n } else {\n ErrorUtils.applyWithGuard(fun, context, args);\n }\n return null;\n },\n inGuard() {\n return _inGuard;\n },\n guard(fun, name, context) {\n if (typeof fun !== 'function') {\n console.warn('A function must be passed to ErrorUtils.guard, got ', fun);\n return null;\n }\n name = name || fun.name || '';\n function guarded() {\n return ErrorUtils.applyWithGuard(\n fun,\n context || this,\n arguments,\n null,\n name,\n );\n }\n\n return guarded;\n },\n};\n\nglobal.ErrorUtils = ErrorUtils;\n","/**\n * Copyright (c) 2015-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n * @polyfill\n * @nolint\n */\n\nif (Number.EPSILON === undefined) {\n Object.defineProperty(Number, 'EPSILON', {\n value: Math.pow(2, -52),\n });\n}\nif (Number.MAX_SAFE_INTEGER === undefined) {\n Object.defineProperty(Number, 'MAX_SAFE_INTEGER', {\n value: Math.pow(2, 53) - 1,\n });\n}\nif (Number.MIN_SAFE_INTEGER === undefined) {\n Object.defineProperty(Number, 'MIN_SAFE_INTEGER', {\n value: -(Math.pow(2, 53) - 1),\n });\n}\nif (!Number.isNaN) {\n // https://github.com/dherman/tc39-codex-wiki/blob/master/data/es6/number/index.md#polyfill-for-numberisnan\n const globalIsNaN = global.isNaN;\n Object.defineProperty(Number, 'isNaN', {\n configurable: true,\n enumerable: false,\n value: function isNaN(value) {\n return typeof value === 'number' && globalIsNaN(value);\n },\n writable: true,\n });\n}\n","/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n * @polyfill\n * @nolint\n */\n\n/* eslint-disable no-extend-native, no-bitwise */\n\n/*\n * NOTE: We use (Number(x) || 0) to replace NaN values with zero.\n */\n\nif (!String.prototype.startsWith) {\n String.prototype.startsWith = function(search) {\n 'use strict';\n if (this == null) {\n throw TypeError();\n }\n var string = String(this);\n var pos = arguments.length > 1 ? Number(arguments[1]) || 0 : 0;\n var start = Math.min(Math.max(pos, 0), string.length);\n return string.indexOf(String(search), pos) === start;\n };\n}\n\nif (!String.prototype.endsWith) {\n String.prototype.endsWith = function(search) {\n 'use strict';\n if (this == null) {\n throw TypeError();\n }\n var string = String(this);\n var stringLength = string.length;\n var searchString = String(search);\n var pos = arguments.length > 1 ? Number(arguments[1]) || 0 : stringLength;\n var end = Math.min(Math.max(pos, 0), stringLength);\n var start = end - searchString.length;\n if (start < 0) {\n return false;\n }\n return string.lastIndexOf(searchString, start) === start;\n };\n}\n\nif (!String.prototype.repeat) {\n String.prototype.repeat = function(count) {\n 'use strict';\n if (this == null) {\n throw TypeError();\n }\n var string = String(this);\n count = Number(count) || 0;\n if (count < 0 || count === Infinity) {\n throw RangeError();\n }\n if (count === 1) {\n return string;\n }\n var result = '';\n while (count) {\n if (count & 1) {\n result += string;\n }\n if ((count >>= 1)) {\n string += string;\n }\n }\n return result;\n };\n}\n\nif (!String.prototype.includes) {\n String.prototype.includes = function(search, start) {\n 'use strict';\n if (typeof start !== 'number') {\n start = 0;\n }\n\n if (start + search.length > this.length) {\n return false;\n } else {\n return this.indexOf(search, start) !== -1;\n }\n };\n}\n\nif (!String.prototype.codePointAt) {\n String.prototype.codePointAt = function(position) {\n if (this == null) {\n throw TypeError();\n }\n var string = String(this);\n var size = string.length;\n // `ToInteger`\n var index = position ? Number(position) : 0;\n if (Number.isNaN(index)) {\n index = 0;\n }\n // Account for out-of-bounds indices:\n if (index < 0 || index >= size) {\n return undefined;\n }\n // Get the first code unit\n var first = string.charCodeAt(index);\n var second;\n if (\n // check if it’s the start of a surrogate pair\n first >= 0xd800 &&\n first <= 0xdbff && // high surrogate\n size > index + 1 // there is a next code unit\n ) {\n second = string.charCodeAt(index + 1);\n if (second >= 0xdc00 && second <= 0xdfff) {\n // low surrogate\n // http://mathiasbynens.be/notes/javascript-encoding#surrogate-formulae\n return (first - 0xd800) * 0x400 + second - 0xdc00 + 0x10000;\n }\n }\n return first;\n };\n}\n\n// https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/padEnd\nif (!String.prototype.padEnd) {\n String.prototype.padEnd = function padEnd(targetLength, padString) {\n targetLength = targetLength >> 0; //floor if number or convert non-number to 0;\n padString = String(typeof padString !== 'undefined' ? padString : ' ');\n if (this.length > targetLength) {\n return String(this);\n } else {\n targetLength = targetLength - this.length;\n if (targetLength > padString.length) {\n padString += padString.repeat(targetLength / padString.length); //append to original to ensure we are longer than needed\n }\n return String(this) + padString.slice(0, targetLength);\n }\n };\n}\n\n// https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/padStart\nif (!String.prototype.padStart) {\n String.prototype.padStart = function padStart(targetLength, padString) {\n targetLength = targetLength >> 0; //truncate if number or convert non-number to 0;\n padString = String(typeof padString !== 'undefined' ? padString : ' ');\n if (this.length > targetLength) {\n return String(this);\n } else {\n targetLength = targetLength - this.length;\n if (targetLength > padString.length) {\n padString += padString.repeat(targetLength / padString.length); //append to original to ensure we are longer than needed\n }\n return padString.slice(0, targetLength) + String(this);\n }\n };\n}\n","/**\n * Copyright (c) 2015-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n * @polyfill\n * @nolint\n */\n\n/* eslint-disable no-bitwise, no-extend-native, radix, no-self-compare */\n\n// https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/findIndex\nfunction findIndex(predicate, context) {\n if (this == null) {\n throw new TypeError(\n 'Array.prototype.findIndex called on null or undefined',\n );\n }\n if (typeof predicate !== 'function') {\n throw new TypeError('predicate must be a function');\n }\n var list = Object(this);\n var length = list.length >>> 0;\n for (var i = 0; i < length; i++) {\n if (predicate.call(context, list[i], i, list)) {\n return i;\n }\n }\n return -1;\n}\n\nif (!Array.prototype.findIndex) {\n Object.defineProperty(Array.prototype, 'findIndex', {\n enumerable: false,\n writable: true,\n configurable: true,\n value: findIndex,\n });\n}\n\n// https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/find\nif (!Array.prototype.find) {\n Object.defineProperty(Array.prototype, 'find', {\n enumerable: false,\n writable: true,\n configurable: true,\n value: function(predicate, context) {\n if (this == null) {\n throw new TypeError('Array.prototype.find called on null or undefined');\n }\n var index = findIndex.call(this, predicate, context);\n return index === -1 ? undefined : this[index];\n },\n });\n}\n\n// https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/includes\nif (!Array.prototype.includes) {\n Object.defineProperty(Array.prototype, 'includes', {\n enumerable: false,\n writable: true,\n configurable: true,\n value: function(searchElement) {\n var O = Object(this);\n var len = parseInt(O.length) || 0;\n if (len === 0) {\n return false;\n }\n var n = parseInt(arguments[1]) || 0;\n var k;\n if (n >= 0) {\n k = n;\n } else {\n k = len + n;\n if (k < 0) {\n k = 0;\n }\n }\n var currentElement;\n while (k < len) {\n currentElement = O[k];\n if (\n searchElement === currentElement ||\n (searchElement !== searchElement && currentElement !== currentElement)\n ) {\n return true;\n }\n k++;\n }\n return false;\n },\n });\n}\n","/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n * @polyfill\n * @nolint\n */\n\n/* eslint-disable consistent-this */\n\n/**\n * Creates an array from array like objects.\n *\n * https://people.mozilla.org/~jorendorff/es6-draft.html#sec-array.from\n */\nif (!Array.from) {\n Array.from = function(arrayLike /*, mapFn, thisArg */) {\n if (arrayLike == null) {\n throw new TypeError('Object is null or undefined');\n }\n\n // Optional args.\n var mapFn = arguments[1];\n var thisArg = arguments[2];\n\n var C = this;\n var items = Object(arrayLike);\n var symbolIterator =\n typeof Symbol === 'function' ? Symbol.iterator : '@@iterator';\n var mapping = typeof mapFn === 'function';\n var usingIterator = typeof items[symbolIterator] === 'function';\n var key = 0;\n var ret;\n var value;\n\n if (usingIterator) {\n ret = typeof C === 'function' ? new C() : [];\n var it = items[symbolIterator]();\n var next;\n\n while (!(next = it.next()).done) {\n value = next.value;\n\n if (mapping) {\n value = mapFn.call(thisArg, value, key);\n }\n\n ret[key] = value;\n key += 1;\n }\n\n ret.length = key;\n return ret;\n }\n\n var len = items.length;\n if (isNaN(len) || len < 0) {\n len = 0;\n }\n\n ret = typeof C === 'function' ? new C(len) : new Array(len);\n\n while (key < len) {\n value = items[key];\n\n if (mapping) {\n value = mapFn.call(thisArg, value, key);\n }\n\n ret[key] = value;\n\n key += 1;\n }\n\n ret.length = key;\n return ret;\n };\n}\n","/**\n * Copyright (c) 2015-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n * @polyfill\n * @nolint\n */\n\n(function() {\n 'use strict';\n\n const hasOwnProperty = Object.prototype.hasOwnProperty;\n\n /**\n * Returns an array of the given object's own enumerable entries.\n * https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/entries\n */\n if (typeof Object.entries !== 'function') {\n Object.entries = function(object) {\n // `null` and `undefined` values are not allowed.\n if (object == null) {\n throw new TypeError('Object.entries called on non-object');\n }\n\n const entries = [];\n for (const key in object) {\n if (hasOwnProperty.call(object, key)) {\n entries.push([key, object[key]]);\n }\n }\n return entries;\n };\n }\n\n /**\n * Returns an array of the given object's own enumerable entries.\n * https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/values\n */\n if (typeof Object.values !== 'function') {\n Object.values = function(object) {\n // `null` and `undefined` values are not allowed.\n if (object == null) {\n throw new TypeError('Object.values called on non-object');\n }\n\n const values = [];\n for (const key in object) {\n if (hasOwnProperty.call(object, key)) {\n values.push(object[key]);\n }\n }\n return values;\n };\n }\n})();\n","/** @flow\n * @format */\n\nimport { AppRegistry } from 'react-native';\nimport App from './src/app/App';\nAppRegistry.registerComponent( 'gutenberg', () => App );\n","function _interopRequireDefault(obj) {\n return obj && obj.__esModule ? obj : {\n default: obj\n };\n}\n\nmodule.exports = _interopRequireDefault;","/**\n * Copyright (c) 2015-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n * @flow\n */\n\n'use strict';\n\nconst invariant = require('fbjs/lib/invariant');\n\nlet showedListViewDeprecation = false;\nlet showedSwipeableListViewDeprecation = false;\n\n// Export React, plus some native additions.\nconst ReactNative = {\n // Components\n get AccessibilityInfo() {\n return require('AccessibilityInfo');\n },\n get ActivityIndicator() {\n return require('ActivityIndicator');\n },\n get ART() {\n return require('ReactNativeART');\n },\n get Button() {\n return require('Button');\n },\n get CheckBox() {\n return require('CheckBox');\n },\n get DatePickerIOS() {\n return require('DatePickerIOS');\n },\n get DrawerLayoutAndroid() {\n return require('DrawerLayoutAndroid');\n },\n get FlatList() {\n return require('FlatList');\n },\n get Image() {\n return require('Image');\n },\n get ImageBackground() {\n return require('ImageBackground');\n },\n get ImageEditor() {\n return require('ImageEditor');\n },\n get ImageStore() {\n return require('ImageStore');\n },\n get InputAccessoryView() {\n return require('InputAccessoryView');\n },\n get KeyboardAvoidingView() {\n return require('KeyboardAvoidingView');\n },\n get ListView() {\n if (!showedListViewDeprecation) {\n console.warn(\n 'ListView is deprecated and will be removed in a future release. ' +\n 'See https://fb.me/nolistview for more information',\n );\n\n showedListViewDeprecation = true;\n }\n return require('ListView');\n },\n get MaskedViewIOS() {\n return require('MaskedViewIOS');\n },\n get Modal() {\n return require('Modal');\n },\n get NavigatorIOS() {\n return require('NavigatorIOS');\n },\n get Picker() {\n return require('Picker');\n },\n get PickerIOS() {\n return require('PickerIOS');\n },\n get ProgressBarAndroid() {\n return require('ProgressBarAndroid');\n },\n get ProgressViewIOS() {\n return require('ProgressViewIOS');\n },\n get SafeAreaView() {\n return require('SafeAreaView');\n },\n get ScrollView() {\n return require('ScrollView');\n },\n get SectionList() {\n return require('SectionList');\n },\n get SegmentedControlIOS() {\n return require('SegmentedControlIOS');\n },\n get Slider() {\n return require('Slider');\n },\n get SnapshotViewIOS() {\n return require('SnapshotViewIOS');\n },\n get Switch() {\n return require('Switch');\n },\n get RefreshControl() {\n return require('RefreshControl');\n },\n get StatusBar() {\n return require('StatusBar');\n },\n get SwipeableFlatList() {\n return require('SwipeableFlatList');\n },\n get SwipeableListView() {\n if (!showedSwipeableListViewDeprecation) {\n console.warn(\n 'ListView and SwipeableListView are deprecated and will be removed in a future release. ' +\n 'See https://fb.me/nolistview for more information',\n );\n\n showedSwipeableListViewDeprecation = true;\n }\n return require('SwipeableListView');\n },\n get TabBarIOS() {\n return require('TabBarIOS');\n },\n get Text() {\n return require('Text');\n },\n get TextInput() {\n return require('TextInput');\n },\n get ToastAndroid() {\n return require('ToastAndroid');\n },\n get ToolbarAndroid() {\n return require('ToolbarAndroid');\n },\n get Touchable() {\n return require('Touchable');\n },\n get TouchableHighlight() {\n return require('TouchableHighlight');\n },\n get TouchableNativeFeedback() {\n return require('TouchableNativeFeedback');\n },\n get TouchableOpacity() {\n return require('TouchableOpacity');\n },\n get TouchableWithoutFeedback() {\n return require('TouchableWithoutFeedback');\n },\n get View() {\n return require('View');\n },\n get ViewPagerAndroid() {\n return require('ViewPagerAndroid');\n },\n get VirtualizedList() {\n return require('VirtualizedList');\n },\n get WebView() {\n return require('WebView');\n },\n\n // APIs\n get ActionSheetIOS() {\n return require('ActionSheetIOS');\n },\n get Alert() {\n return require('Alert');\n },\n get AlertIOS() {\n return require('AlertIOS');\n },\n get Animated() {\n return require('Animated');\n },\n get AppRegistry() {\n return require('AppRegistry');\n },\n get AppState() {\n return require('AppState');\n },\n get AsyncStorage() {\n return require('AsyncStorage');\n },\n get BackAndroid() {\n return require('BackAndroid');\n }, // deprecated: use BackHandler instead\n get BackHandler() {\n return require('BackHandler');\n },\n get CameraRoll() {\n return require('CameraRoll');\n },\n get Clipboard() {\n return require('Clipboard');\n },\n get DatePickerAndroid() {\n return require('DatePickerAndroid');\n },\n get DeviceInfo() {\n return require('DeviceInfo');\n },\n get Dimensions() {\n return require('Dimensions');\n },\n get Easing() {\n return require('Easing');\n },\n get findNodeHandle() {\n return require('ReactNative').findNodeHandle;\n },\n get I18nManager() {\n return require('I18nManager');\n },\n get ImagePickerIOS() {\n return require('ImagePickerIOS');\n },\n get InteractionManager() {\n return require('InteractionManager');\n },\n get Keyboard() {\n return require('Keyboard');\n },\n get LayoutAnimation() {\n return require('LayoutAnimation');\n },\n get Linking() {\n return require('Linking');\n },\n get NativeEventEmitter() {\n return require('NativeEventEmitter');\n },\n get NetInfo() {\n return require('NetInfo');\n },\n get PanResponder() {\n return require('PanResponder');\n },\n get PermissionsAndroid() {\n return require('PermissionsAndroid');\n },\n get PixelRatio() {\n return require('PixelRatio');\n },\n get PushNotificationIOS() {\n return require('PushNotificationIOS');\n },\n get Settings() {\n return require('Settings');\n },\n get Share() {\n return require('Share');\n },\n get StatusBarIOS() {\n return require('StatusBarIOS');\n },\n get StyleSheet() {\n return require('StyleSheet');\n },\n get Systrace() {\n return require('Systrace');\n },\n get TimePickerAndroid() {\n return require('TimePickerAndroid');\n },\n get TVEventHandler() {\n return require('TVEventHandler');\n },\n get UIManager() {\n return require('UIManager');\n },\n get unstable_batchedUpdates() {\n return require('ReactNative').unstable_batchedUpdates;\n },\n get Vibration() {\n return require('Vibration');\n },\n get VibrationIOS() {\n return require('VibrationIOS');\n },\n get YellowBox() {\n return require('YellowBox');\n },\n\n // Plugins\n get DeviceEventEmitter() {\n return require('RCTDeviceEventEmitter');\n },\n get NativeAppEventEmitter() {\n return require('RCTNativeAppEventEmitter');\n },\n get NativeModules() {\n return require('NativeModules');\n },\n get Platform() {\n return require('Platform');\n },\n get processColor() {\n return require('processColor');\n },\n get requireNativeComponent() {\n return require('requireNativeComponent');\n },\n get takeSnapshot() {\n return require('takeSnapshot');\n },\n\n // Prop Types\n get ColorPropType() {\n return require('ColorPropType');\n },\n get EdgeInsetsPropType() {\n return require('EdgeInsetsPropType');\n },\n get PointPropType() {\n return require('PointPropType');\n },\n get ViewPropTypes() {\n return require('ViewPropTypes');\n },\n\n // Deprecated\n get Navigator() {\n invariant(\n false,\n 'Navigator is deprecated and has been removed from this package. It can now be installed ' +\n 'and imported from `react-native-deprecated-custom-components` instead of `react-native`. ' +\n 'Learn about alternative navigation solutions at http://facebook.github.io/react-native/docs/navigation.html',\n );\n },\n};\n\nmodule.exports = ReactNative;\n","/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * \n */\n'use strict';\n\nvar validateFormat = process.env.NODE_ENV !== \"production\" ? function (format) {} : function (format) {\n if (format === undefined) {\n throw new Error('invariant(...): Second argument must be a string.');\n }\n};\n/**\n * Use invariant() to assert state which your program assumes to be true.\n *\n * Provide sprintf-style format (only %s is supported) and arguments to provide\n * information about what broke and what you were expecting.\n *\n * The invariant message will be stripped in production, but the invariant will\n * remain to ensure logic does not differ in production.\n */\n\nfunction invariant(condition, format) {\n for (var _len = arguments.length, args = new Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++) {\n args[_key - 2] = arguments[_key];\n }\n\n validateFormat(format);\n\n if (!condition) {\n var error;\n\n if (format === undefined) {\n error = new Error('Minified exception occurred; use the non-minified dev environment ' + 'for the full error message and additional helpful warnings.');\n } else {\n var argIndex = 0;\n error = new Error(format.replace(/%s/g, function () {\n return String(args[argIndex++]);\n }));\n error.name = 'Invariant Violation';\n }\n\n error.framesToPop = 1; // Skip invariant's own stack frame.\n\n throw error;\n }\n}\n\nmodule.exports = invariant;","/**\n * Copyright (c) 2015-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n * @flow\n */\n\n'use strict';\n\nconst NativeModules = require('NativeModules');\nconst RCTDeviceEventEmitter = require('RCTDeviceEventEmitter');\nconst UIManager = require('UIManager');\n\nconst RCTAccessibilityInfo = NativeModules.AccessibilityInfo;\n\nconst TOUCH_EXPLORATION_EVENT = 'touchExplorationDidChange';\n\ntype ChangeEventName = $Enum<{\n change: string,\n}>;\n\nconst _subscriptions = new Map();\n\n/**\n * Sometimes it's useful to know whether or not the device has a screen reader\n * that is currently active. The `AccessibilityInfo` API is designed for this\n * purpose. You can use it to query the current state of the screen reader as\n * well as to register to be notified when the state of the screen reader\n * changes.\n *\n * See http://facebook.github.io/react-native/docs/accessibilityinfo.html\n */\n\nconst AccessibilityInfo = {\n /* $FlowFixMe(>=0.78.0 site=react_native_android_fb) This issue was found\n * when making Flow check .android.js files. */\n fetch: function(): Promise {\n return new Promise((resolve, reject) => {\n RCTAccessibilityInfo.isTouchExplorationEnabled(function(resp) {\n resolve(resp);\n });\n });\n },\n\n addEventListener: function(\n eventName: ChangeEventName,\n handler: Function,\n ): void {\n const listener = RCTDeviceEventEmitter.addListener(\n TOUCH_EXPLORATION_EVENT,\n enabled => {\n handler(enabled);\n },\n );\n _subscriptions.set(handler, listener);\n },\n\n removeEventListener: function(\n eventName: ChangeEventName,\n handler: Function,\n ): void {\n const listener = _subscriptions.get(handler);\n if (!listener) {\n return;\n }\n listener.remove();\n _subscriptions.delete(handler);\n },\n\n /**\n * Set accessibility focus to a react component.\n *\n * See http://facebook.github.io/react-native/docs/accessibilityinfo.html#setaccessibilityfocus\n */\n setAccessibilityFocus: function(reactTag: number): void {\n UIManager.sendAccessibilityEvent(\n reactTag,\n UIManager.AccessibilityEventTypes.typeViewFocused,\n );\n },\n};\n\nmodule.exports = AccessibilityInfo;\n","/**\n * Copyright (c) 2015-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n * @flow\n */\n\n'use strict';\n\nconst BatchedBridge = require('BatchedBridge');\n\nconst invariant = require('fbjs/lib/invariant');\n\nimport type {ExtendedError} from 'parseErrorStack';\n\ntype ModuleConfig = [\n string /* name */,\n ?Object /* constants */,\n Array /* functions */,\n Array /* promise method IDs */,\n Array /* sync method IDs */,\n];\n\nexport type MethodType = 'async' | 'promise' | 'sync';\n\nfunction genModule(\n config: ?ModuleConfig,\n moduleID: number,\n): ?{name: string, module?: Object} {\n if (!config) {\n return null;\n }\n\n const [moduleName, constants, methods, promiseMethods, syncMethods] = config;\n invariant(\n !moduleName.startsWith('RCT') && !moduleName.startsWith('RK'),\n \"Module name prefixes should've been stripped by the native side \" +\n \"but wasn't for \" +\n moduleName,\n );\n\n if (!constants && !methods) {\n // Module contents will be filled in lazily later\n return {name: moduleName};\n }\n\n const module = {};\n methods &&\n methods.forEach((methodName, methodID) => {\n const isPromise =\n promiseMethods && arrayContains(promiseMethods, methodID);\n const isSync = syncMethods && arrayContains(syncMethods, methodID);\n invariant(\n !isPromise || !isSync,\n 'Cannot have a method that is both async and a sync hook',\n );\n const methodType = isPromise ? 'promise' : isSync ? 'sync' : 'async';\n module[methodName] = genMethod(moduleID, methodID, methodType);\n });\n Object.assign(module, constants);\n\n if (__DEV__) {\n BatchedBridge.createDebugLookup(moduleID, moduleName, methods);\n }\n\n return {name: moduleName, module};\n}\n\n// export this method as a global so we can call it from native\nglobal.__fbGenNativeModule = genModule;\n\nfunction loadModule(name: string, moduleID: number): ?Object {\n invariant(\n global.nativeRequireModuleConfig,\n \"Can't lazily create module without nativeRequireModuleConfig\",\n );\n const config = global.nativeRequireModuleConfig(name);\n const info = genModule(config, moduleID);\n return info && info.module;\n}\n\nfunction genMethod(moduleID: number, methodID: number, type: MethodType) {\n let fn = null;\n if (type === 'promise') {\n fn = function(...args: Array) {\n return new Promise((resolve, reject) => {\n BatchedBridge.enqueueNativeCall(\n moduleID,\n methodID,\n args,\n data => resolve(data),\n errorData => reject(createErrorFromErrorData(errorData)),\n );\n });\n };\n } else if (type === 'sync') {\n fn = function(...args: Array) {\n if (__DEV__) {\n invariant(\n global.nativeCallSyncHook,\n 'Calling synchronous methods on native ' +\n 'modules is not supported in Chrome.\\n\\n Consider providing alternative ' +\n 'methods to expose this method in debug mode, e.g. by exposing constants ' +\n 'ahead-of-time.',\n );\n }\n return global.nativeCallSyncHook(moduleID, methodID, args);\n };\n } else {\n fn = function(...args: Array) {\n const lastArg = args.length > 0 ? args[args.length - 1] : null;\n const secondLastArg = args.length > 1 ? args[args.length - 2] : null;\n const hasSuccessCallback = typeof lastArg === 'function';\n const hasErrorCallback = typeof secondLastArg === 'function';\n hasErrorCallback &&\n invariant(\n hasSuccessCallback,\n 'Cannot have a non-function arg after a function arg.',\n );\n const onSuccess = hasSuccessCallback ? lastArg : null;\n const onFail = hasErrorCallback ? secondLastArg : null;\n const callbackCount = hasSuccessCallback + hasErrorCallback;\n args = args.slice(0, args.length - callbackCount);\n BatchedBridge.enqueueNativeCall(\n moduleID,\n methodID,\n args,\n onFail,\n onSuccess,\n );\n };\n }\n fn.type = type;\n return fn;\n}\n\nfunction arrayContains(array: Array, value: T): boolean {\n return array.indexOf(value) !== -1;\n}\n\nfunction createErrorFromErrorData(errorData: {message: string}): ExtendedError {\n const {message, ...extraErrorInfo} = errorData || {};\n const error: ExtendedError = new Error(message);\n error.framesToPop = 1;\n return Object.assign(error, extraErrorInfo);\n}\n\nlet NativeModules: {[moduleName: string]: Object} = {};\nif (global.nativeModuleProxy) {\n NativeModules = global.nativeModuleProxy;\n} else if (!global.nativeExtensions) {\n const bridgeConfig = global.__fbBatchedBridgeConfig;\n invariant(\n bridgeConfig,\n '__fbBatchedBridgeConfig is not set, cannot invoke native modules',\n );\n\n const defineLazyObjectProperty = require('defineLazyObjectProperty');\n (bridgeConfig.remoteModuleConfig || []).forEach(\n (config: ModuleConfig, moduleID: number) => {\n // Initially this config will only contain the module name when running in JSC. The actual\n // configuration of the module will be lazily loaded.\n const info = genModule(config, moduleID);\n if (!info) {\n return;\n }\n\n if (info.module) {\n NativeModules[info.name] = info.module;\n }\n // If there's no module config, define a lazy getter\n else {\n defineLazyObjectProperty(NativeModules, info.name, {\n get: () => loadModule(info.name, moduleID),\n });\n }\n },\n );\n}\n\nmodule.exports = NativeModules;\n","var objectWithoutPropertiesLoose = require(\"./objectWithoutPropertiesLoose\");\n\nfunction _objectWithoutProperties(source, excluded) {\n if (source == null) return {};\n var target = objectWithoutPropertiesLoose(source, excluded);\n var key, i;\n\n if (Object.getOwnPropertySymbols) {\n var sourceSymbolKeys = Object.getOwnPropertySymbols(source);\n\n for (i = 0; i < sourceSymbolKeys.length; i++) {\n key = sourceSymbolKeys[i];\n if (excluded.indexOf(key) >= 0) continue;\n if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;\n target[key] = source[key];\n }\n }\n\n return target;\n}\n\nmodule.exports = _objectWithoutProperties;","function _objectWithoutPropertiesLoose(source, excluded) {\n if (source == null) return {};\n var target = {};\n var sourceKeys = Object.keys(source);\n var key, i;\n\n for (i = 0; i < sourceKeys.length; i++) {\n key = sourceKeys[i];\n if (excluded.indexOf(key) >= 0) continue;\n target[key] = source[key];\n }\n\n return target;\n}\n\nmodule.exports = _objectWithoutPropertiesLoose;","function _extends() {\n module.exports = _extends = Object.assign || function (target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i];\n\n for (var key in source) {\n if (Object.prototype.hasOwnProperty.call(source, key)) {\n target[key] = source[key];\n }\n }\n }\n\n return target;\n };\n\n return _extends.apply(this, arguments);\n}\n\nmodule.exports = _extends;","var arrayWithHoles = require(\"./arrayWithHoles\");\n\nvar iterableToArrayLimit = require(\"./iterableToArrayLimit\");\n\nvar nonIterableRest = require(\"./nonIterableRest\");\n\nfunction _slicedToArray(arr, i) {\n return arrayWithHoles(arr) || iterableToArrayLimit(arr, i) || nonIterableRest();\n}\n\nmodule.exports = _slicedToArray;","function _arrayWithHoles(arr) {\n if (Array.isArray(arr)) return arr;\n}\n\nmodule.exports = _arrayWithHoles;","function _iterableToArrayLimit(arr, i) {\n var _arr = [];\n var _n = true;\n var _d = false;\n var _e = undefined;\n\n try {\n for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) {\n _arr.push(_s.value);\n\n if (i && _arr.length === i) break;\n }\n } catch (err) {\n _d = true;\n _e = err;\n } finally {\n try {\n if (!_n && _i[\"return\"] != null) _i[\"return\"]();\n } finally {\n if (_d) throw _e;\n }\n }\n\n return _arr;\n}\n\nmodule.exports = _iterableToArrayLimit;","function _nonIterableRest() {\n throw new TypeError(\"Invalid attempt to destructure non-iterable instance\");\n}\n\nmodule.exports = _nonIterableRest;","/**\n * Copyright (c) 2015-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n * @flow strict-local\n */\n\n'use strict';\n\nconst MessageQueue = require('MessageQueue');\n\nconst BatchedBridge = new MessageQueue();\n\n// Wire up the batched bridge on the global object so that we can call into it.\n// Ideally, this would be the inverse relationship. I.e. the native environment\n// provides this global directly with its script embedded. Then this module\n// would export it. A possible fix would be to trim the dependencies in\n// MessageQueue to its minimal features and embed that in the native runtime.\n\nObject.defineProperty(global, '__fbBatchedBridge', {\n configurable: true,\n value: BatchedBridge,\n});\n\nmodule.exports = BatchedBridge;\n","/**\n * Copyright (c) 2015-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @flow\n * @format\n */\n\n'use strict';\n\nconst ErrorUtils = require('ErrorUtils');\nconst Systrace = require('Systrace');\n\nconst deepFreezeAndThrowOnMutationInDev = require('deepFreezeAndThrowOnMutationInDev');\nconst invariant = require('fbjs/lib/invariant');\nconst stringifySafe = require('stringifySafe');\n\nexport type SpyData = {\n type: number,\n module: ?string,\n method: string | number,\n args: any[],\n};\n\nconst TO_JS = 0;\nconst TO_NATIVE = 1;\n\nconst MODULE_IDS = 0;\nconst METHOD_IDS = 1;\nconst PARAMS = 2;\nconst MIN_TIME_BETWEEN_FLUSHES_MS = 5;\n\n// eslint-disable-next-line no-bitwise\nconst TRACE_TAG_REACT_APPS = 1 << 17;\n\nconst DEBUG_INFO_LIMIT = 32;\n\nclass MessageQueue {\n _lazyCallableModules: {[key: string]: (void) => Object};\n _queue: [number[], number[], any[], number];\n _successCallbacks: {[key: number]: ?Function};\n _failureCallbacks: {[key: number]: ?Function};\n _callID: number;\n _lastFlush: number;\n _eventLoopStartTime: number;\n _immediatesCallback: ?() => void;\n\n _debugInfo: {[number]: [number, number]};\n _remoteModuleTable: {[number]: string};\n _remoteMethodTable: {[number]: string[]};\n\n __spy: ?(data: SpyData) => void;\n\n constructor() {\n this._lazyCallableModules = {};\n this._queue = [[], [], [], 0];\n this._successCallbacks = {};\n this._failureCallbacks = {};\n this._callID = 0;\n this._lastFlush = 0;\n this._eventLoopStartTime = Date.now();\n this._immediatesCallback = null;\n\n if (__DEV__) {\n this._debugInfo = {};\n this._remoteModuleTable = {};\n this._remoteMethodTable = {};\n }\n\n (this: any).callFunctionReturnFlushedQueue = this.callFunctionReturnFlushedQueue.bind(\n this,\n );\n (this: any).callFunctionReturnResultAndFlushedQueue = this.callFunctionReturnResultAndFlushedQueue.bind(\n this,\n );\n (this: any).flushedQueue = this.flushedQueue.bind(this);\n (this: any).invokeCallbackAndReturnFlushedQueue = this.invokeCallbackAndReturnFlushedQueue.bind(\n this,\n );\n }\n\n /**\n * Public APIs\n */\n\n static spy(spyOrToggle: boolean | ((data: SpyData) => void)) {\n if (spyOrToggle === true) {\n MessageQueue.prototype.__spy = info => {\n console.log(\n `${info.type === TO_JS ? 'N->JS' : 'JS->N'} : ` +\n `${info.module ? info.module + '.' : ''}${info.method}` +\n `(${JSON.stringify(info.args)})`,\n );\n };\n } else if (spyOrToggle === false) {\n MessageQueue.prototype.__spy = null;\n } else {\n MessageQueue.prototype.__spy = spyOrToggle;\n }\n }\n\n callFunctionReturnFlushedQueue(module: string, method: string, args: any[]) {\n this.__guard(() => {\n this.__callFunction(module, method, args);\n });\n\n return this.flushedQueue();\n }\n\n callFunctionReturnResultAndFlushedQueue(\n module: string,\n method: string,\n args: any[],\n ) {\n let result;\n this.__guard(() => {\n result = this.__callFunction(module, method, args);\n });\n\n return [result, this.flushedQueue()];\n }\n\n invokeCallbackAndReturnFlushedQueue(cbID: number, args: any[]) {\n this.__guard(() => {\n this.__invokeCallback(cbID, args);\n });\n\n return this.flushedQueue();\n }\n\n flushedQueue() {\n this.__guard(() => {\n this.__callImmediates();\n });\n\n const queue = this._queue;\n this._queue = [[], [], [], this._callID];\n return queue[0].length ? queue : null;\n }\n\n getEventLoopRunningTime() {\n return Date.now() - this._eventLoopStartTime;\n }\n\n registerCallableModule(name: string, module: Object) {\n this._lazyCallableModules[name] = () => module;\n }\n\n registerLazyCallableModule(name: string, factory: void => Object) {\n let module: Object;\n let getValue: ?(void) => Object = factory;\n this._lazyCallableModules[name] = () => {\n if (getValue) {\n module = getValue();\n getValue = null;\n }\n return module;\n };\n }\n\n getCallableModule(name: string) {\n const getValue = this._lazyCallableModules[name];\n return getValue ? getValue() : null;\n }\n\n enqueueNativeCall(\n moduleID: number,\n methodID: number,\n params: any[],\n onFail: ?Function,\n onSucc: ?Function,\n ) {\n if (onFail || onSucc) {\n if (__DEV__) {\n this._debugInfo[this._callID] = [moduleID, methodID];\n if (this._callID > DEBUG_INFO_LIMIT) {\n delete this._debugInfo[this._callID - DEBUG_INFO_LIMIT];\n }\n }\n // Encode callIDs into pairs of callback identifiers by shifting left and using the rightmost bit\n // to indicate fail (0) or success (1)\n // eslint-disable-next-line no-bitwise\n onFail && params.push(this._callID << 1);\n // eslint-disable-next-line no-bitwise\n onSucc && params.push((this._callID << 1) | 1);\n this._successCallbacks[this._callID] = onSucc;\n this._failureCallbacks[this._callID] = onFail;\n }\n\n if (__DEV__) {\n global.nativeTraceBeginAsyncFlow &&\n global.nativeTraceBeginAsyncFlow(\n TRACE_TAG_REACT_APPS,\n 'native',\n this._callID,\n );\n }\n this._callID++;\n\n this._queue[MODULE_IDS].push(moduleID);\n this._queue[METHOD_IDS].push(methodID);\n\n if (__DEV__) {\n // Validate that parameters passed over the bridge are\n // folly-convertible. As a special case, if a prop value is a\n // function it is permitted here, and special-cased in the\n // conversion.\n const isValidArgument = val => {\n const t = typeof val;\n if (\n t === 'undefined' ||\n t === 'null' ||\n t === 'boolean' ||\n t === 'number' ||\n t === 'string'\n ) {\n return true;\n }\n if (t === 'function' || t !== 'object') {\n return false;\n }\n if (Array.isArray(val)) {\n return val.every(isValidArgument);\n }\n for (const k in val) {\n if (typeof val[k] !== 'function' && !isValidArgument(val[k])) {\n return false;\n }\n }\n return true;\n };\n\n invariant(\n isValidArgument(params),\n '%s is not usable as a native method argument',\n params,\n );\n\n // The params object should not be mutated after being queued\n deepFreezeAndThrowOnMutationInDev((params: any));\n }\n this._queue[PARAMS].push(params);\n\n const now = Date.now();\n if (\n global.nativeFlushQueueImmediate &&\n now - this._lastFlush >= MIN_TIME_BETWEEN_FLUSHES_MS\n ) {\n const queue = this._queue;\n this._queue = [[], [], [], this._callID];\n this._lastFlush = now;\n global.nativeFlushQueueImmediate(queue);\n }\n Systrace.counterEvent('pending_js_to_native_queue', this._queue[0].length);\n if (__DEV__ && this.__spy && isFinite(moduleID)) {\n this.__spy({\n type: TO_NATIVE,\n module: this._remoteModuleTable[moduleID],\n method: this._remoteMethodTable[moduleID][methodID],\n args: params,\n });\n } else if (this.__spy) {\n this.__spy({\n type: TO_NATIVE,\n module: moduleID + '',\n method: methodID,\n args: params,\n });\n }\n }\n\n createDebugLookup(moduleID: number, name: string, methods: string[]) {\n if (__DEV__) {\n this._remoteModuleTable[moduleID] = name;\n this._remoteMethodTable[moduleID] = methods;\n }\n }\n\n // For JSTimers to register its callback. Otherwise a circular dependency\n // between modules is introduced. Note that only one callback may be\n // registered at a time.\n setImmediatesCallback(fn: () => void) {\n this._immediatesCallback = fn;\n }\n\n /**\n * Private methods\n */\n\n __guard(fn: () => void) {\n if (this.__shouldPauseOnThrow()) {\n fn();\n } else {\n try {\n fn();\n } catch (error) {\n ErrorUtils.reportFatalError(error);\n }\n }\n }\n\n // MessageQueue installs a global handler to catch all exceptions where JS users can register their own behavior\n // This handler makes all exceptions to be propagated from inside MessageQueue rather than by the VM at their origin\n // This makes stacktraces to be placed at MessageQueue rather than at where they were launched\n // The parameter DebuggerInternal.shouldPauseOnThrow is used to check before catching all exceptions and\n // can be configured by the VM or any Inspector\n __shouldPauseOnThrow() {\n return (\n // $FlowFixMe\n typeof DebuggerInternal !== 'undefined' &&\n DebuggerInternal.shouldPauseOnThrow === true // eslint-disable-line no-undef\n );\n }\n\n __callImmediates() {\n Systrace.beginEvent('JSTimers.callImmediates()');\n if (this._immediatesCallback != null) {\n this._immediatesCallback();\n }\n Systrace.endEvent();\n }\n\n __callFunction(module: string, method: string, args: any[]): any {\n this._lastFlush = Date.now();\n this._eventLoopStartTime = this._lastFlush;\n if (__DEV__ || this.__spy) {\n Systrace.beginEvent(`${module}.${method}(${stringifySafe(args)})`);\n } else {\n Systrace.beginEvent(`${module}.${method}(...)`);\n }\n if (this.__spy) {\n this.__spy({type: TO_JS, module, method, args});\n }\n const moduleMethods = this.getCallableModule(module);\n invariant(\n !!moduleMethods,\n 'Module %s is not a registered callable module (calling %s)',\n module,\n method,\n );\n invariant(\n !!moduleMethods[method],\n 'Method %s does not exist on module %s',\n method,\n module,\n );\n const result = moduleMethods[method].apply(moduleMethods, args);\n Systrace.endEvent();\n return result;\n }\n\n __invokeCallback(cbID: number, args: any[]) {\n this._lastFlush = Date.now();\n this._eventLoopStartTime = this._lastFlush;\n\n // The rightmost bit of cbID indicates fail (0) or success (1), the other bits are the callID shifted left.\n // eslint-disable-next-line no-bitwise\n const callID = cbID >>> 1;\n // eslint-disable-next-line no-bitwise\n const isSuccess = cbID & 1;\n const callback = isSuccess\n ? this._successCallbacks[callID]\n : this._failureCallbacks[callID];\n\n if (__DEV__) {\n const debug = this._debugInfo[callID];\n const module = debug && this._remoteModuleTable[debug[0]];\n const method = debug && this._remoteMethodTable[debug[0]][debug[1]];\n if (!callback) {\n let errorMessage = `Callback with id ${cbID}: ${module}.${method}() not found`;\n if (method) {\n errorMessage =\n `The callback ${method}() exists in module ${module}, ` +\n 'but only one callback may be registered to a function in a native module.';\n }\n invariant(callback, errorMessage);\n }\n const profileName = debug\n ? ''\n : cbID;\n if (callback && this.__spy) {\n this.__spy({type: TO_JS, module: null, method: profileName, args});\n }\n Systrace.beginEvent(\n `MessageQueue.invokeCallback(${profileName}, ${stringifySafe(args)})`,\n );\n }\n\n if (!callback) {\n return;\n }\n\n delete this._successCallbacks[callID];\n delete this._failureCallbacks[callID];\n callback(...args);\n\n if (__DEV__) {\n Systrace.endEvent();\n }\n }\n}\n\nmodule.exports = MessageQueue;\n","var arrayWithoutHoles = require(\"./arrayWithoutHoles\");\n\nvar iterableToArray = require(\"./iterableToArray\");\n\nvar nonIterableSpread = require(\"./nonIterableSpread\");\n\nfunction _toConsumableArray(arr) {\n return arrayWithoutHoles(arr) || iterableToArray(arr) || nonIterableSpread();\n}\n\nmodule.exports = _toConsumableArray;","function _arrayWithoutHoles(arr) {\n if (Array.isArray(arr)) {\n for (var i = 0, arr2 = new Array(arr.length); i < arr.length; i++) {\n arr2[i] = arr[i];\n }\n\n return arr2;\n }\n}\n\nmodule.exports = _arrayWithoutHoles;","function _iterableToArray(iter) {\n if (Symbol.iterator in Object(iter) || Object.prototype.toString.call(iter) === \"[object Arguments]\") return Array.from(iter);\n}\n\nmodule.exports = _iterableToArray;","function _nonIterableSpread() {\n throw new TypeError(\"Invalid attempt to spread non-iterable instance\");\n}\n\nmodule.exports = _nonIterableSpread;","function _classCallCheck(instance, Constructor) {\n if (!(instance instanceof Constructor)) {\n throw new TypeError(\"Cannot call a class as a function\");\n }\n}\n\nmodule.exports = _classCallCheck;","function _defineProperties(target, props) {\n for (var i = 0; i < props.length; i++) {\n var descriptor = props[i];\n descriptor.enumerable = descriptor.enumerable || false;\n descriptor.configurable = true;\n if (\"value\" in descriptor) descriptor.writable = true;\n Object.defineProperty(target, descriptor.key, descriptor);\n }\n}\n\nfunction _createClass(Constructor, protoProps, staticProps) {\n if (protoProps) _defineProperties(Constructor.prototype, protoProps);\n if (staticProps) _defineProperties(Constructor, staticProps);\n return Constructor;\n}\n\nmodule.exports = _createClass;","/**\n * Copyright (c) 2015-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n * @flow strict\n */\n\n/* eslint-disable strict */\n\n/**\n * The particular require runtime that we are using looks for a global\n * `ErrorUtils` object and if it exists, then it requires modules with the\n * error handler specified via ErrorUtils.setGlobalHandler by calling the\n * require function with applyWithGuard. Since the require module is loaded\n * before any of the modules, this ErrorUtils must be defined (and the handler\n * set) globally before requiring anything.\n *\n * However, we still want to treat ErrorUtils as a module so that other modules\n * that use it aren't just using a global variable, so simply export the global\n * variable here. ErrorUtils is originally defined in a file named error-guard.js.\n */\nmodule.exports = global.ErrorUtils;\n","/**\n * Copyright (c) 2015-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @flow\n * @format\n */\n\n'use strict';\n\nconst invariant = require('fbjs/lib/invariant');\n\nconst TRACE_TAG_REACT_APPS = 1 << 17; // eslint-disable-line no-bitwise\nconst TRACE_TAG_JS_VM_CALLS = 1 << 27; // eslint-disable-line no-bitwise\n\nlet _enabled = false;\nlet _asyncCookie = 0;\nconst _markStack = [];\nlet _markStackIndex = -1;\nlet _canInstallReactHook = false;\n\n// Implements a subset of User Timing API necessary for React measurements.\n// https://developer.mozilla.org/en-US/docs/Web/API/User_Timing_API\nconst REACT_MARKER = '\\u269B';\nconst userTimingPolyfill = __DEV__\n ? {\n mark(markName: string) {\n if (_enabled) {\n _markStackIndex++;\n _markStack[_markStackIndex] = markName;\n let systraceLabel = markName;\n // Since perf measurements are a shared namespace in User Timing API,\n // we prefix all React results with a React emoji.\n if (markName[0] === REACT_MARKER) {\n // This is coming from React.\n // Removing component IDs keeps trace colors stable.\n const indexOfId = markName.lastIndexOf(' (#');\n const cutoffIndex = indexOfId !== -1 ? indexOfId : markName.length;\n // Also cut off the emoji because it breaks Systrace\n systraceLabel = markName.slice(2, cutoffIndex);\n }\n Systrace.beginEvent(systraceLabel);\n }\n },\n measure(measureName: string, startMark: ?string, endMark: ?string) {\n if (_enabled) {\n invariant(\n typeof measureName === 'string' &&\n typeof startMark === 'string' &&\n typeof endMark === 'undefined',\n 'Only performance.measure(string, string) overload is supported.',\n );\n const topMark = _markStack[_markStackIndex];\n invariant(\n startMark === topMark,\n 'There was a mismatching performance.measure() call. ' +\n 'Expected \"%s\" but got \"%s.\"',\n topMark,\n startMark,\n );\n _markStackIndex--;\n // We can't use more descriptive measureName because Systrace doesn't\n // let us edit labels post factum.\n Systrace.endEvent();\n }\n },\n clearMarks(markName: string) {\n if (_enabled) {\n if (_markStackIndex === -1) {\n return;\n }\n if (markName === _markStack[_markStackIndex]) {\n // React uses this for \"cancelling\" started measurements.\n // Systrace doesn't support deleting measurements, so we just stop them.\n if (userTimingPolyfill != null) {\n userTimingPolyfill.measure(markName, markName);\n }\n }\n }\n },\n clearMeasures() {\n // React calls this to avoid memory leaks in browsers, but we don't keep\n // measurements anyway.\n },\n }\n : null;\n\nconst Systrace = {\n installReactHook() {\n if (_enabled) {\n if (__DEV__) {\n global.performance = userTimingPolyfill;\n }\n }\n _canInstallReactHook = true;\n },\n\n setEnabled(enabled: boolean) {\n if (_enabled !== enabled) {\n if (__DEV__) {\n if (enabled) {\n global.nativeTraceBeginLegacy &&\n global.nativeTraceBeginLegacy(TRACE_TAG_JS_VM_CALLS);\n } else {\n global.nativeTraceEndLegacy &&\n global.nativeTraceEndLegacy(TRACE_TAG_JS_VM_CALLS);\n }\n if (_canInstallReactHook) {\n if (enabled && global.performance === undefined) {\n global.performance = userTimingPolyfill;\n }\n }\n }\n _enabled = enabled;\n }\n },\n\n isEnabled(): boolean {\n return _enabled;\n },\n\n /**\n * beginEvent/endEvent for starting and then ending a profile within the same call stack frame\n **/\n beginEvent(profileName?: any, args?: any) {\n if (_enabled) {\n profileName =\n typeof profileName === 'function' ? profileName() : profileName;\n global.nativeTraceBeginSection(TRACE_TAG_REACT_APPS, profileName, args);\n }\n },\n\n endEvent() {\n if (_enabled) {\n global.nativeTraceEndSection(TRACE_TAG_REACT_APPS);\n }\n },\n\n /**\n * beginAsyncEvent/endAsyncEvent for starting and then ending a profile where the end can either\n * occur on another thread or out of the current stack frame, eg await\n * the returned cookie variable should be used as input into the endAsyncEvent call to end the profile\n **/\n beginAsyncEvent(profileName?: any): any {\n const cookie = _asyncCookie;\n if (_enabled) {\n _asyncCookie++;\n profileName =\n typeof profileName === 'function' ? profileName() : profileName;\n global.nativeTraceBeginAsyncSection(\n TRACE_TAG_REACT_APPS,\n profileName,\n cookie,\n );\n }\n return cookie;\n },\n\n endAsyncEvent(profileName?: any, cookie?: any) {\n if (_enabled) {\n profileName =\n typeof profileName === 'function' ? profileName() : profileName;\n global.nativeTraceEndAsyncSection(\n TRACE_TAG_REACT_APPS,\n profileName,\n cookie,\n );\n }\n },\n\n /**\n * counterEvent registers the value to the profileName on the systrace timeline\n **/\n counterEvent(profileName?: any, value?: any) {\n if (_enabled) {\n profileName =\n typeof profileName === 'function' ? profileName() : profileName;\n global.nativeTraceCounter &&\n global.nativeTraceCounter(TRACE_TAG_REACT_APPS, profileName, value);\n }\n },\n};\n\nif (__DEV__) {\n // This is needed, because require callis in polyfills are not processed as\n // other files. Therefore, calls to `require('moduleId')` are not replaced\n // with numeric IDs\n // TODO(davidaurelio) Scan polyfills for dependencies, too (t9759686)\n (require: any).Systrace = Systrace;\n}\n\nmodule.exports = Systrace;\n","/**\n * Copyright (c) 2015-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n * @flow\n */\n\n'use strict';\n\n/**\n * If your application is accepting different values for the same field over\n * time and is doing a diff on them, you can either (1) create a copy or\n * (2) ensure that those values are not mutated behind two passes.\n * This function helps you with (2) by freezing the object and throwing if\n * the user subsequently modifies the value.\n *\n * There are two caveats with this function:\n * - If the call site is not in strict mode, it will only throw when\n * mutating existing fields, adding a new one\n * will unfortunately fail silently :(\n * - If the object is already frozen or sealed, it will not continue the\n * deep traversal and will leave leaf nodes unfrozen.\n *\n * Freezing the object and adding the throw mechanism is expensive and will\n * only be used in DEV.\n */\nfunction deepFreezeAndThrowOnMutationInDev(object: T): T {\n if (__DEV__) {\n if (\n typeof object !== 'object' ||\n object === null ||\n Object.isFrozen(object) ||\n Object.isSealed(object)\n ) {\n return object;\n }\n\n const keys = Object.keys(object);\n const hasOwnProperty = Object.prototype.hasOwnProperty;\n\n for (var i = 0; i < keys.length; i++) {\n var key = keys[i];\n if (hasOwnProperty.call(object, key)) {\n Object.defineProperty(object, key, {\n get: identity.bind(null, object[key]),\n });\n Object.defineProperty(object, key, {\n set: throwOnImmutableMutation.bind(null, key),\n });\n }\n }\n\n Object.freeze(object);\n Object.seal(object);\n\n for (var i = 0; i < keys.length; i++) {\n var key = keys[i];\n if (hasOwnProperty.call(object, key)) {\n deepFreezeAndThrowOnMutationInDev(object[key]);\n }\n }\n }\n return object;\n}\n\nfunction throwOnImmutableMutation(key, value) {\n throw Error(\n 'You attempted to set the key `' +\n key +\n '` with the value `' +\n JSON.stringify(value) +\n '` on an object that is meant to be immutable ' +\n 'and has been frozen.',\n );\n}\n\nfunction identity(value) {\n return value;\n}\n\nmodule.exports = deepFreezeAndThrowOnMutationInDev;\n","/**\n * Copyright (c) 2015-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n * @flow\n */\n\n'use strict';\n\n/**\n * Tries to stringify with JSON.stringify and toString, but catches exceptions\n * (e.g. from circular objects) and always returns a string and never throws.\n */\nfunction stringifySafe(arg: any): string {\n let ret;\n const type = typeof arg;\n if (arg === undefined) {\n ret = 'undefined';\n } else if (arg === null) {\n ret = 'null';\n } else if (type === 'string') {\n ret = '\"' + arg + '\"';\n } else if (type === 'function') {\n try {\n ret = arg.toString();\n } catch (e) {\n ret = '[function unknown]';\n }\n } else {\n // Perform a try catch, just in case the object has a circular\n // reference or stringify throws for some other reason.\n try {\n ret = JSON.stringify(arg);\n } catch (e) {\n if (typeof arg.toString === 'function') {\n try {\n ret = arg.toString();\n } catch (E) {}\n }\n }\n }\n return ret || '[\"' + type + '\" failed to stringify]';\n}\n\nmodule.exports = stringifySafe;\n","/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n * @flow\n */\n\n'use strict';\n\n/**\n * Defines a lazily evaluated property on the supplied `object`.\n */\nfunction defineLazyObjectProperty(\n object: Object,\n name: string,\n descriptor: {\n get: () => T,\n enumerable?: boolean,\n writable?: boolean,\n },\n): void {\n const {get} = descriptor;\n const enumerable = descriptor.enumerable !== false;\n const writable = descriptor.writable !== false;\n\n let value;\n let valueSet = false;\n function getValue(): T {\n // WORKAROUND: A weird infinite loop occurs where calling `getValue` calls\n // `setValue` which calls `Object.defineProperty` which somehow triggers\n // `getValue` again. Adding `valueSet` breaks this loop.\n if (!valueSet) {\n // Calling `get()` here can trigger an infinite loop if it fails to\n // remove the getter on the property, which can happen when executing\n // JS in a V8 context. `valueSet = true` will break this loop, and\n // sets the value of the property to undefined, until the code in `get()`\n // finishes, at which point the property is set to the correct value.\n valueSet = true;\n setValue(get());\n }\n return value;\n }\n function setValue(newValue: T): void {\n value = newValue;\n valueSet = true;\n Object.defineProperty(object, name, {\n value: newValue,\n configurable: true,\n enumerable,\n writable,\n });\n }\n\n Object.defineProperty(object, name, {\n get: getValue,\n set: setValue,\n configurable: true,\n enumerable,\n });\n}\n\nmodule.exports = defineLazyObjectProperty;\n","/**\n * Copyright (c) 2015-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n * @flow\n */\n\n'use strict';\n\nconst EventEmitter = require('EventEmitter');\nconst EventSubscriptionVendor = require('EventSubscriptionVendor');\n\nimport type EmitterSubscription from 'EmitterSubscription';\n\nfunction checkNativeEventModule(eventType: ?string) {\n if (eventType) {\n if (eventType.lastIndexOf('statusBar', 0) === 0) {\n throw new Error(\n '`' +\n eventType +\n '` event should be registered via the StatusBarIOS module',\n );\n }\n if (eventType.lastIndexOf('keyboard', 0) === 0) {\n throw new Error(\n '`' +\n eventType +\n '` event should be registered via the Keyboard module',\n );\n }\n if (eventType === 'appStateDidChange' || eventType === 'memoryWarning') {\n throw new Error(\n '`' +\n eventType +\n '` event should be registered via the AppState module',\n );\n }\n }\n}\n\n/**\n * Deprecated - subclass NativeEventEmitter to create granular event modules instead of\n * adding all event listeners directly to RCTDeviceEventEmitter.\n */\nclass RCTDeviceEventEmitter extends EventEmitter {\n sharedSubscriber: EventSubscriptionVendor;\n\n constructor() {\n const sharedSubscriber = new EventSubscriptionVendor();\n super(sharedSubscriber);\n this.sharedSubscriber = sharedSubscriber;\n }\n\n addListener(\n eventType: string,\n listener: Function,\n context: ?Object,\n ): EmitterSubscription {\n if (__DEV__) {\n checkNativeEventModule(eventType);\n }\n return super.addListener(eventType, listener, context);\n }\n\n removeAllListeners(eventType: ?string) {\n if (__DEV__) {\n checkNativeEventModule(eventType);\n }\n super.removeAllListeners(eventType);\n }\n\n removeSubscription(subscription: EmitterSubscription) {\n if (subscription.emitter !== this) {\n subscription.emitter.removeSubscription(subscription);\n } else {\n super.removeSubscription(subscription);\n }\n }\n}\n\nmodule.exports = new RCTDeviceEventEmitter();\n","var _typeof = require(\"../helpers/typeof\");\n\nvar assertThisInitialized = require(\"./assertThisInitialized\");\n\nfunction _possibleConstructorReturn(self, call) {\n if (call && (_typeof(call) === \"object\" || typeof call === \"function\")) {\n return call;\n }\n\n return assertThisInitialized(self);\n}\n\nmodule.exports = _possibleConstructorReturn;","function _typeof2(obj) { if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof2 = function _typeof2(obj) { return typeof obj; }; } else { _typeof2 = function _typeof2(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof2(obj); }\n\nfunction _typeof(obj) {\n if (typeof Symbol === \"function\" && _typeof2(Symbol.iterator) === \"symbol\") {\n module.exports = _typeof = function _typeof(obj) {\n return _typeof2(obj);\n };\n } else {\n module.exports = _typeof = function _typeof(obj) {\n return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : _typeof2(obj);\n };\n }\n\n return _typeof(obj);\n}\n\nmodule.exports = _typeof;","function _assertThisInitialized(self) {\n if (self === void 0) {\n throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");\n }\n\n return self;\n}\n\nmodule.exports = _assertThisInitialized;","function _getPrototypeOf(o) {\n module.exports = _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) {\n return o.__proto__ || Object.getPrototypeOf(o);\n };\n return _getPrototypeOf(o);\n}\n\nmodule.exports = _getPrototypeOf;","var getPrototypeOf = require(\"./getPrototypeOf\");\n\nvar superPropBase = require(\"./superPropBase\");\n\nfunction _get(target, property, receiver) {\n if (typeof Reflect !== \"undefined\" && Reflect.get) {\n module.exports = _get = Reflect.get;\n } else {\n module.exports = _get = function _get(target, property, receiver) {\n var base = superPropBase(target, property);\n if (!base) return;\n var desc = Object.getOwnPropertyDescriptor(base, property);\n\n if (desc.get) {\n return desc.get.call(receiver);\n }\n\n return desc.value;\n };\n }\n\n return _get(target, property, receiver || target);\n}\n\nmodule.exports = _get;","var getPrototypeOf = require(\"./getPrototypeOf\");\n\nfunction _superPropBase(object, property) {\n while (!Object.prototype.hasOwnProperty.call(object, property)) {\n object = getPrototypeOf(object);\n if (object === null) break;\n }\n\n return object;\n}\n\nmodule.exports = _superPropBase;","var setPrototypeOf = require(\"./setPrototypeOf\");\n\nfunction _inherits(subClass, superClass) {\n if (typeof superClass !== \"function\" && superClass !== null) {\n throw new TypeError(\"Super expression must either be null or a function\");\n }\n\n subClass.prototype = Object.create(superClass && superClass.prototype, {\n constructor: {\n value: subClass,\n writable: true,\n configurable: true\n }\n });\n if (superClass) setPrototypeOf(subClass, superClass);\n}\n\nmodule.exports = _inherits;","function _setPrototypeOf(o, p) {\n module.exports = _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {\n o.__proto__ = p;\n return o;\n };\n\n return _setPrototypeOf(o, p);\n}\n\nmodule.exports = _setPrototypeOf;","/**\n * Copyright (c) 2015-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n * @noflow\n * @typecheck\n */\n\n'use strict';\n\nconst EmitterSubscription = require('EmitterSubscription');\nconst EventSubscriptionVendor = require('EventSubscriptionVendor');\n\nconst emptyFunction = require('fbjs/lib/emptyFunction');\nconst invariant = require('fbjs/lib/invariant');\n\n/**\n * @class EventEmitter\n * @description\n * An EventEmitter is responsible for managing a set of listeners and publishing\n * events to them when it is told that such events happened. In addition to the\n * data for the given event it also sends a event control object which allows\n * the listeners/handlers to prevent the default behavior of the given event.\n *\n * The emitter is designed to be generic enough to support all the different\n * contexts in which one might want to emit events. It is a simple multicast\n * mechanism on top of which extra functionality can be composed. For example, a\n * more advanced emitter may use an EventHolder and EventFactory.\n */\nclass EventEmitter {\n _subscriber: EventSubscriptionVendor;\n _currentSubscription: ?EmitterSubscription;\n\n /**\n * @constructor\n *\n * @param {EventSubscriptionVendor} subscriber - Optional subscriber instance\n * to use. If omitted, a new subscriber will be created for the emitter.\n */\n constructor(subscriber: ?EventSubscriptionVendor) {\n this._subscriber = subscriber || new EventSubscriptionVendor();\n }\n\n /**\n * Adds a listener to be invoked when events of the specified type are\n * emitted. An optional calling context may be provided. The data arguments\n * emitted will be passed to the listener function.\n *\n * TODO: Annotate the listener arg's type. This is tricky because listeners\n * can be invoked with varargs.\n *\n * @param {string} eventType - Name of the event to listen to\n * @param {function} listener - Function to invoke when the specified event is\n * emitted\n * @param {*} context - Optional context object to use when invoking the\n * listener\n */\n addListener(\n eventType: string,\n listener: Function,\n context: ?Object,\n ): EmitterSubscription {\n return (this._subscriber.addSubscription(\n eventType,\n new EmitterSubscription(this, this._subscriber, listener, context),\n ): any);\n }\n\n /**\n * Similar to addListener, except that the listener is removed after it is\n * invoked once.\n *\n * @param {string} eventType - Name of the event to listen to\n * @param {function} listener - Function to invoke only once when the\n * specified event is emitted\n * @param {*} context - Optional context object to use when invoking the\n * listener\n */\n once(\n eventType: string,\n listener: Function,\n context: ?Object,\n ): EmitterSubscription {\n return this.addListener(eventType, (...args) => {\n this.removeCurrentListener();\n listener.apply(context, args);\n });\n }\n\n /**\n * Removes all of the registered listeners, including those registered as\n * listener maps.\n *\n * @param {?string} eventType - Optional name of the event whose registered\n * listeners to remove\n */\n removeAllListeners(eventType: ?string) {\n this._subscriber.removeAllSubscriptions(eventType);\n }\n\n /**\n * Provides an API that can be called during an eventing cycle to remove the\n * last listener that was invoked. This allows a developer to provide an event\n * object that can remove the listener (or listener map) during the\n * invocation.\n *\n * If it is called when not inside of an emitting cycle it will throw.\n *\n * @throws {Error} When called not during an eventing cycle\n *\n * @example\n * var subscription = emitter.addListenerMap({\n * someEvent: function(data, event) {\n * console.log(data);\n * emitter.removeCurrentListener();\n * }\n * });\n *\n * emitter.emit('someEvent', 'abc'); // logs 'abc'\n * emitter.emit('someEvent', 'def'); // does not log anything\n */\n removeCurrentListener() {\n invariant(\n !!this._currentSubscription,\n 'Not in an emitting cycle; there is no current subscription',\n );\n this.removeSubscription(this._currentSubscription);\n }\n\n /**\n * Removes a specific subscription. Called by the `remove()` method of the\n * subscription itself to ensure any necessary cleanup is performed.\n */\n removeSubscription(subscription: EmitterSubscription) {\n invariant(\n subscription.emitter === this,\n 'Subscription does not belong to this emitter.',\n );\n this._subscriber.removeSubscription(subscription);\n }\n\n /**\n * Returns an array of listeners that are currently registered for the given\n * event.\n *\n * @param {string} eventType - Name of the event to query\n * @returns {array}\n */\n listeners(eventType: string): [EmitterSubscription] {\n const subscriptions: ?[\n EmitterSubscription,\n ] = (this._subscriber.getSubscriptionsForType(eventType): any);\n return subscriptions\n ? subscriptions\n .filter(emptyFunction.thatReturnsTrue)\n .map(function(subscription) {\n return subscription.listener;\n })\n : [];\n }\n\n /**\n * Emits an event of the given type with the given data. All handlers of that\n * particular type will be notified.\n *\n * @param {string} eventType - Name of the event to emit\n * @param {...*} Arbitrary arguments to be passed to each registered listener\n *\n * @example\n * emitter.addListener('someEvent', function(message) {\n * console.log(message);\n * });\n *\n * emitter.emit('someEvent', 'abc'); // logs 'abc'\n */\n emit(eventType: string) {\n const subscriptions: ?[\n EmitterSubscription,\n ] = (this._subscriber.getSubscriptionsForType(eventType): any);\n if (subscriptions) {\n for (let i = 0, l = subscriptions.length; i < l; i++) {\n const subscription = subscriptions[i];\n\n // The subscription may have been removed during this event loop.\n if (subscription) {\n this._currentSubscription = subscription;\n subscription.listener.apply(\n subscription.context,\n Array.prototype.slice.call(arguments, 1),\n );\n }\n }\n this._currentSubscription = null;\n }\n }\n\n /**\n * Removes the given listener for event of specific type.\n *\n * @param {string} eventType - Name of the event to emit\n * @param {function} listener - Function to invoke when the specified event is\n * emitted\n *\n * @example\n * emitter.removeListener('someEvent', function(message) {\n * console.log(message);\n * }); // removes the listener if already registered\n *\n */\n removeListener(eventType: String, listener) {\n const subscriptions: ?[\n EmitterSubscription,\n ] = (this._subscriber.getSubscriptionsForType(eventType): any);\n if (subscriptions) {\n for (let i = 0, l = subscriptions.length; i < l; i++) {\n const subscription = subscriptions[i];\n\n // The subscription may have been removed during this event loop.\n // its listener matches the listener in method parameters\n if (subscription && subscription.listener === listener) {\n subscription.remove();\n }\n }\n }\n }\n}\n\nmodule.exports = EventEmitter;\n","/**\n * Copyright (c) 2015-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n * @flow\n */\n\n'use strict';\n\nconst EventSubscription = require('EventSubscription');\n\nimport type EventEmitter from 'EventEmitter';\nimport type EventSubscriptionVendor from 'EventSubscriptionVendor';\n\n/**\n * EmitterSubscription represents a subscription with listener and context data.\n */\nclass EmitterSubscription extends EventSubscription {\n emitter: EventEmitter;\n listener: Function;\n context: ?Object;\n\n /**\n * @param {EventEmitter} emitter - The event emitter that registered this\n * subscription\n * @param {EventSubscriptionVendor} subscriber - The subscriber that controls\n * this subscription\n * @param {function} listener - Function to invoke when the specified event is\n * emitted\n * @param {*} context - Optional context object to use when invoking the\n * listener\n */\n constructor(\n emitter: EventEmitter,\n subscriber: EventSubscriptionVendor,\n listener: Function,\n context: ?Object,\n ) {\n super(subscriber);\n this.emitter = emitter;\n this.listener = listener;\n this.context = context;\n }\n\n /**\n * Removes this subscription from the emitter that registered it.\n * Note: we're overriding the `remove()` method of EventSubscription here\n * but deliberately not calling `super.remove()` as the responsibility\n * for removing the subscription lies with the EventEmitter.\n */\n remove() {\n this.emitter.removeSubscription(this);\n }\n}\n\nmodule.exports = EmitterSubscription;\n","/**\n * Copyright (c) 2015-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n * @flow strict-local\n */\n\n'use strict';\n\nimport type EventSubscriptionVendor from 'EventSubscriptionVendor';\n\n/**\n * EventSubscription represents a subscription to a particular event. It can\n * remove its own subscription.\n */\nclass EventSubscription {\n eventType: string;\n key: number;\n subscriber: EventSubscriptionVendor;\n\n /**\n * @param {EventSubscriptionVendor} subscriber the subscriber that controls\n * this subscription.\n */\n constructor(subscriber: EventSubscriptionVendor) {\n this.subscriber = subscriber;\n }\n\n /**\n * Removes this subscription from the subscriber that controls it.\n */\n remove() {\n this.subscriber.removeSubscription(this);\n }\n}\n\nmodule.exports = EventSubscription;\n","/**\n * Copyright (c) 2015-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n * @flow\n */\n\n'use strict';\n\nconst invariant = require('fbjs/lib/invariant');\n\nimport type EventSubscription from 'EventSubscription';\n\n/**\n * EventSubscriptionVendor stores a set of EventSubscriptions that are\n * subscribed to a particular event type.\n */\nclass EventSubscriptionVendor {\n _subscriptionsForType: Object;\n _currentSubscription: ?EventSubscription;\n\n constructor() {\n this._subscriptionsForType = {};\n this._currentSubscription = null;\n }\n\n /**\n * Adds a subscription keyed by an event type.\n *\n * @param {string} eventType\n * @param {EventSubscription} subscription\n */\n addSubscription(\n eventType: string,\n subscription: EventSubscription,\n ): EventSubscription {\n invariant(\n subscription.subscriber === this,\n 'The subscriber of the subscription is incorrectly set.',\n );\n if (!this._subscriptionsForType[eventType]) {\n this._subscriptionsForType[eventType] = [];\n }\n const key = this._subscriptionsForType[eventType].length;\n this._subscriptionsForType[eventType].push(subscription);\n subscription.eventType = eventType;\n subscription.key = key;\n return subscription;\n }\n\n /**\n * Removes a bulk set of the subscriptions.\n *\n * @param {?string} eventType - Optional name of the event type whose\n * registered supscriptions to remove, if null remove all subscriptions.\n */\n removeAllSubscriptions(eventType: ?string) {\n if (eventType === undefined) {\n this._subscriptionsForType = {};\n } else {\n delete this._subscriptionsForType[eventType];\n }\n }\n\n /**\n * Removes a specific subscription. Instead of calling this function, call\n * `subscription.remove()` directly.\n *\n * @param {object} subscription\n */\n removeSubscription(subscription: Object) {\n const eventType = subscription.eventType;\n const key = subscription.key;\n\n const subscriptionsForType = this._subscriptionsForType[eventType];\n if (subscriptionsForType) {\n delete subscriptionsForType[key];\n }\n }\n\n /**\n * Returns the array of subscriptions that are currently registered for the\n * given event type.\n *\n * Note: This array can be potentially sparse as subscriptions are deleted\n * from it when they are removed.\n *\n * TODO: This returns a nullable array. wat?\n *\n * @param {string} eventType\n * @returns {?array}\n */\n getSubscriptionsForType(eventType: string): ?[EventSubscription] {\n return this._subscriptionsForType[eventType];\n }\n}\n\nmodule.exports = EventSubscriptionVendor;\n","\"use strict\";\n\n/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * \n */\nfunction makeEmptyFunction(arg) {\n return function () {\n return arg;\n };\n}\n/**\n * This function accepts and discards inputs; it has no side effects. This is\n * primarily useful idiomatically for overridable function endpoints which\n * always need to be callable, since JS lacks a null-call idiom ala Cocoa.\n */\n\n\nvar emptyFunction = function emptyFunction() {};\n\nemptyFunction.thatReturns = makeEmptyFunction;\nemptyFunction.thatReturnsFalse = makeEmptyFunction(false);\nemptyFunction.thatReturnsTrue = makeEmptyFunction(true);\nemptyFunction.thatReturnsNull = makeEmptyFunction(null);\n\nemptyFunction.thatReturnsThis = function () {\n return this;\n};\n\nemptyFunction.thatReturnsArgument = function (arg) {\n return arg;\n};\n\nmodule.exports = emptyFunction;","/**\n * Copyright (c) 2015-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @flow strict-local\n * @format\n */\n'use strict';\n\nconst NativeModules = require('NativeModules');\nconst Platform = require('Platform');\n\nconst defineLazyObjectProperty = require('defineLazyObjectProperty');\nconst invariant = require('fbjs/lib/invariant');\n\nconst {UIManager} = NativeModules;\n\ninvariant(\n UIManager,\n 'UIManager is undefined. The native module config is probably incorrect.',\n);\n\n// In past versions of ReactNative users called UIManager.takeSnapshot()\n// However takeSnapshot was moved to ReactNative in order to support flat\n// bundles and to avoid a cyclic dependency between UIManager and ReactNative.\n// UIManager.takeSnapshot still exists though. In order to avoid confusion or\n// accidental usage, mask the method with a deprecation warning.\nUIManager.__takeSnapshot = UIManager.takeSnapshot;\nUIManager.takeSnapshot = function() {\n invariant(\n false,\n 'UIManager.takeSnapshot should not be called directly. ' +\n 'Use ReactNative.takeSnapshot instead.',\n );\n};\n\n/**\n * Copies the ViewManager constants and commands into UIManager. This is\n * only needed for iOS, which puts the constants in the ViewManager\n * namespace instead of UIManager, unlike Android.\n */\nif (Platform.OS === 'ios') {\n Object.keys(UIManager).forEach(viewName => {\n const viewConfig = UIManager[viewName];\n if (viewConfig.Manager) {\n defineLazyObjectProperty(viewConfig, 'Constants', {\n get: () => {\n const viewManager = NativeModules[viewConfig.Manager];\n const constants = {};\n viewManager &&\n Object.keys(viewManager).forEach(key => {\n const value = viewManager[key];\n if (typeof value !== 'function') {\n constants[key] = value;\n }\n });\n return constants;\n },\n });\n defineLazyObjectProperty(viewConfig, 'Commands', {\n get: () => {\n const viewManager = NativeModules[viewConfig.Manager];\n const commands = {};\n let index = 0;\n viewManager &&\n Object.keys(viewManager).forEach(key => {\n const value = viewManager[key];\n if (typeof value === 'function') {\n commands[key] = index++;\n }\n });\n return commands;\n },\n });\n }\n });\n} else if (UIManager.ViewManagerNames) {\n // We want to add all the view managers to the UIManager.\n // However, the way things are set up, the list of view managers is not known at compile time.\n // As Prepack runs at compile it, it cannot process this loop.\n // So we wrap it in a special __residual call, which basically tells Prepack to ignore it.\n let residual = global.__residual\n ? global.__residual\n : (_, f, ...args) => f.apply(undefined, args);\n residual(\n 'void',\n (UIManager, defineLazyObjectProperty) => {\n UIManager.ViewManagerNames.forEach(viewManagerName => {\n defineLazyObjectProperty(UIManager, viewManagerName, {\n get: () => UIManager.getConstantsForViewManager(viewManagerName),\n });\n });\n },\n UIManager,\n defineLazyObjectProperty,\n );\n\n // As Prepack now no longer knows which properties exactly the UIManager has,\n // we also tell Prepack that it has only partial knowledge of the UIManager,\n // so that any accesses to unknown properties along the global code will fail\n // when Prepack encounters them.\n if (global.__makePartial) global.__makePartial(UIManager);\n}\n\nmodule.exports = UIManager;\n","/**\n * Copyright (c) 2015-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n * @flow\n */\n\n'use strict';\n\nconst NativeModules = require('NativeModules');\n\nconst Platform = {\n OS: 'android',\n get Version() {\n const constants = NativeModules.PlatformConstants;\n return constants && constants.Version;\n },\n get isTesting(): boolean {\n const constants = NativeModules.PlatformConstants;\n return constants && constants.isTesting;\n },\n get isTV(): boolean {\n const constants = NativeModules.PlatformConstants;\n return constants && constants.uiMode === 'tv';\n },\n select: (obj: Object) => ('android' in obj ? obj.android : obj.default),\n};\n\nmodule.exports = Platform;\n","/**\n * Copyright (c) 2015-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n * @flow\n */\n\n'use strict';\n\nconst Platform = require('Platform');\nconst React = require('React');\nconst StyleSheet = require('StyleSheet');\nconst View = require('View');\n\nconst requireNativeComponent = require('requireNativeComponent');\n\nimport type {NativeComponent} from 'ReactNative';\nimport type {ViewProps} from 'ViewPropTypes';\n\nconst RCTActivityIndicator =\n Platform.OS === 'android'\n ? require('ProgressBarAndroid')\n : requireNativeComponent('RCTActivityIndicatorView');\n\nconst GRAY = '#999999';\n\ntype IndicatorSize = number | 'small' | 'large';\n\ntype IOSProps = $ReadOnly<{|\n /**\n * Whether the indicator should hide when not animating (true by default).\n *\n * See http://facebook.github.io/react-native/docs/activityindicator.html#hideswhenstopped\n */\n hidesWhenStopped?: ?boolean,\n|}>;\ntype Props = $ReadOnly<{|\n ...ViewProps,\n ...IOSProps,\n\n /**\n * Whether to show the indicator (true, the default) or hide it (false).\n *\n * See http://facebook.github.io/react-native/docs/activityindicator.html#animating\n */\n animating?: ?boolean,\n\n /**\n * The foreground color of the spinner (default is gray).\n *\n * See http://facebook.github.io/react-native/docs/activityindicator.html#color\n */\n color?: ?string,\n\n /**\n * Size of the indicator (default is 'small').\n * Passing a number to the size prop is only supported on Android.\n *\n * See http://facebook.github.io/react-native/docs/activityindicator.html#size\n */\n size?: ?IndicatorSize,\n|}>;\n\n/**\n * Displays a circular loading indicator.\n *\n * See http://facebook.github.io/react-native/docs/activityindicator.html\n */\nconst ActivityIndicator = (\n props: Props,\n forwardedRef?: ?React.Ref<'RCTActivityIndicatorView'>,\n) => {\n const {onLayout, style, ...restProps} = props;\n let sizeStyle;\n\n switch (props.size) {\n case 'small':\n sizeStyle = styles.sizeSmall;\n break;\n case 'large':\n sizeStyle = styles.sizeLarge;\n break;\n default:\n sizeStyle = {height: props.size, width: props.size};\n break;\n }\n\n const nativeProps = {\n ...restProps,\n ref: forwardedRef,\n style: sizeStyle,\n styleAttr: 'Normal',\n indeterminate: true,\n };\n\n return (\n \n {/* $FlowFixMe(>=0.78.0 site=react_native_android_fb) This issue was\n * found when making Flow check .android.js files. */}\n \n \n );\n};\n\n// $FlowFixMe - TODO T29156721 `React.forwardRef` is not defined in Flow, yet.\nconst ActivityIndicatorWithRef = React.forwardRef(ActivityIndicator);\n\nActivityIndicatorWithRef.defaultProps = {\n animating: true,\n color: Platform.OS === 'ios' ? GRAY : null,\n hidesWhenStopped: true,\n size: 'small',\n};\n\nconst styles = StyleSheet.create({\n container: {\n alignItems: 'center',\n justifyContent: 'center',\n },\n sizeSmall: {\n width: 20,\n height: 20,\n },\n sizeLarge: {\n width: 36,\n height: 36,\n },\n});\n\nmodule.exports = (ActivityIndicatorWithRef: Class>);\n","var defineProperty = require(\"./defineProperty\");\n\nfunction _objectSpread(target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i] != null ? arguments[i] : {};\n var ownKeys = Object.keys(source);\n\n if (typeof Object.getOwnPropertySymbols === 'function') {\n ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) {\n return Object.getOwnPropertyDescriptor(source, sym).enumerable;\n }));\n }\n\n ownKeys.forEach(function (key) {\n defineProperty(target, key, source[key]);\n });\n }\n\n return target;\n}\n\nmodule.exports = _objectSpread;","function _defineProperty(obj, key, value) {\n if (key in obj) {\n Object.defineProperty(obj, key, {\n value: value,\n enumerable: true,\n configurable: true,\n writable: true\n });\n } else {\n obj[key] = value;\n }\n\n return obj;\n}\n\nmodule.exports = _defineProperty;","/**\n * Copyright (c) 2016-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n */\n\n'use strict';\n\nmodule.exports = require('react');\n","'use strict';\n\nif (process.env.NODE_ENV === 'production') {\n module.exports = require('./cjs/react.production.min.js');\n} else {\n module.exports = require('./cjs/react.development.js');\n}\n","/** @license React v16.6.1\n * react.production.min.js\n *\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';var k=require(\"object-assign\"),n=\"function\"===typeof Symbol&&Symbol.for,p=n?Symbol.for(\"react.element\"):60103,q=n?Symbol.for(\"react.portal\"):60106,r=n?Symbol.for(\"react.fragment\"):60107,t=n?Symbol.for(\"react.strict_mode\"):60108,u=n?Symbol.for(\"react.profiler\"):60114,v=n?Symbol.for(\"react.provider\"):60109,w=n?Symbol.for(\"react.context\"):60110,x=n?Symbol.for(\"react.concurrent_mode\"):60111,y=n?Symbol.for(\"react.forward_ref\"):60112,z=n?Symbol.for(\"react.suspense\"):60113,A=n?Symbol.for(\"react.memo\"):\n60115,B=n?Symbol.for(\"react.lazy\"):60116,C=\"function\"===typeof Symbol&&Symbol.iterator;function aa(a,b,e,c,d,g,h,f){if(!a){a=void 0;if(void 0===b)a=Error(\"Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.\");else{var l=[e,c,d,g,h,f],m=0;a=Error(b.replace(/%s/g,function(){return l[m++]}));a.name=\"Invariant Violation\"}a.framesToPop=1;throw a;}}\nfunction D(a){for(var b=arguments.length-1,e=\"https://reactjs.org/docs/error-decoder.html?invariant=\"+a,c=0;cQ.length&&Q.push(a)}\nfunction T(a,b,e,c){var d=typeof a;if(\"undefined\"===d||\"boolean\"===d)a=null;var g=!1;if(null===a)g=!0;else switch(d){case \"string\":case \"number\":g=!0;break;case \"object\":switch(a.$$typeof){case p:case q:g=!0}}if(g)return e(c,a,\"\"===b?\".\"+U(a,0):b),1;g=0;b=\"\"===b?\".\":b+\":\";if(Array.isArray(a))for(var h=0;h's `style` prop. This ensures call sites of the component\n * can't pass styles that View doesn't support such as `fontSize`.`\n *\n * type Props = {style: ViewStyleProp}\n * const MyComponent = (props: Props) => \n */\nexport type ViewStyleProp = ____ViewStyleProp_Internal;\n\n/**\n * This type should be used as the type for a prop that is passed through\n * to a 's `style` prop. This ensures call sites of the component\n * can't pass styles that Text doesn't support such as `resizeMode`.`\n *\n * type Props = {style: TextStyleProp}\n * const MyComponent = (props: Props) => \n */\nexport type TextStyleProp = ____TextStyleProp_Internal;\n\n/**\n * This type should be used as the type for a prop that is passed through\n * to an 's `style` prop. This ensures call sites of the component\n * can't pass styles that Image doesn't support such as `fontSize`.`\n *\n * type Props = {style: ImageStyleProp}\n * const MyComponent = (props: Props) => \n */\nexport type ImageStyleProp = ____ImageStyleProp_Internal;\n\n/**\n * WARNING: You probably shouldn't be using this type. This type\n * is similar to the ones above except it allows styles that are accepted\n * by all of View, Text, or Image. It is therefore very unsafe to pass this\n * through to an underlying component. Using this is almost always a mistake\n * and using one of the other more restrictive types is likely the right choice.\n */\nexport type DangerouslyImpreciseStyleProp = ____DangerouslyImpreciseStyleProp_Internal;\n\n/**\n * Utility type for getting the values for specific style keys.\n *\n * The following is bad because position is more restrictive than 'string':\n * ```\n * type Props = {position: string};\n * ```\n *\n * You should use the following instead:\n *\n * ```\n * type Props = {position: TypeForStyleKey<'position'>};\n * ```\n *\n * This will correctly give you the type 'absolute' | 'relative'\n */\nexport type TypeForStyleKey<\n +key: $Keys<____DangerouslyImpreciseStyle_Internal>,\n> = $ElementType<____DangerouslyImpreciseStyle_Internal, key>;\n\n/**\n * This type is an object of the different possible style\n * properties that can be specified for View.\n *\n * Note that this isn't a safe way to type a style prop for a component as\n * results from StyleSheet.create return an internal identifier, not\n * an object of styles.\n *\n * If you want to type the style prop of a function,\n * consider using ViewStyleProp.\n *\n * A reasonable usage of this type is for helper functions that return an\n * object of styles to pass to a View that can't be precomputed with\n * StyleSheet.create.\n */\nexport type ViewStyle = ____ViewStyle_Internal;\n\n/**\n * This type is an object of the different possible style\n * properties that can be specified for Text.\n *\n * Note that this isn't a safe way to type a style prop for a component as\n * results from StyleSheet.create return an internal identifier, not\n * an object of styles.\n *\n * If you want to type the style prop of a function,\n * consider using TextStyleProp.\n *\n * A reasonable usage of this type is for helper functions that return an\n * object of styles to pass to a Text that can't be precomputed with\n * StyleSheet.create.\n */\nexport type TextStyle = ____TextStyle_Internal;\n\n/**\n * This type is an object of the different possible style\n * properties that can be specified for Image.\n *\n * Note that this isn't a safe way to type a style prop for a component as\n * results from StyleSheet.create return an internal identifier, not\n * an object of styles.\n *\n * If you want to type the style prop of a function,\n * consider using ImageStyleProp.\n *\n * A reasonable usage of this type is for helper functions that return an\n * object of styles to pass to an Image that can't be precomputed with\n * StyleSheet.create.\n */\nexport type ImageStyle = ____ImageStyle_Internal;\n\n/**\n * WARNING: You probably shouldn't be using this type. This type is an object\n * with all possible style keys and their values. Note that this isn't\n * a safe way to type a style prop for a component as results from\n * StyleSheet.create return an internal identifier, not an object of styles.\n *\n * If you want to type the style prop of a function, consider using\n * ViewStyleProp, TextStyleProp, or ImageStyleProp.\n *\n * This should only be used by very core utilities that operate on an object\n * containing any possible style value.\n */\nexport type DangerouslyImpreciseStyle = ____DangerouslyImpreciseStyle_Internal;\n\n/**\n * These types are simlilar to the style types above. They are objects of the\n * possible style keys in that group. For example, ShadowStyle contains\n * keys like `shadowColor` and `shadowRadius`.\n */\nexport type LayoutStyle = ____LayoutStyle_Internal;\nexport type ShadowStyle = ____ShadowStyle_Internal;\nexport type TransformStyle = ____TransformStyle_Internal;\n\nlet hairlineWidth = PixelRatio.roundToNearestPixel(0.4);\nif (hairlineWidth === 0) {\n hairlineWidth = 1 / PixelRatio.get();\n}\n\nconst absoluteFill: LayoutStyle = {\n position: 'absolute',\n left: 0,\n right: 0,\n top: 0,\n bottom: 0,\n};\nif (__DEV__) {\n Object.freeze(absoluteFill);\n}\n\n/**\n * A StyleSheet is an abstraction similar to CSS StyleSheets\n *\n * Create a new StyleSheet:\n *\n * ```\n * const styles = StyleSheet.create({\n * container: {\n * borderRadius: 4,\n * borderWidth: 0.5,\n * borderColor: '#d6d7da',\n * },\n * title: {\n * fontSize: 19,\n * fontWeight: 'bold',\n * },\n * activeTitle: {\n * color: 'red',\n * },\n * });\n * ```\n *\n * Use a StyleSheet:\n *\n * ```\n * \n * \n * \n * ```\n *\n * Code quality:\n *\n * - By moving styles away from the render function, you're making the code\n * easier to understand.\n * - Naming the styles is a good way to add meaning to the low level components\n * in the render function.\n *\n * Performance:\n *\n * - Making a stylesheet from a style object makes it possible to refer to it\n * by ID instead of creating a new style object every time.\n * - It also allows to send the style only once through the bridge. All\n * subsequent uses are going to refer an id (not implemented yet).\n */\nmodule.exports = {\n /**\n * This is defined as the width of a thin line on the platform. It can be\n * used as the thickness of a border or division between two elements.\n * Example:\n * ```\n * {\n * borderBottomColor: '#bbb',\n * borderBottomWidth: StyleSheet.hairlineWidth\n * }\n * ```\n *\n * This constant will always be a round number of pixels (so a line defined\n * by it look crisp) and will try to match the standard width of a thin line\n * on the underlying platform. However, you should not rely on it being a\n * constant size, because on different platforms and screen densities its\n * value may be calculated differently.\n *\n * A line with hairline width may not be visible if your simulator is downscaled.\n */\n hairlineWidth,\n\n /**\n * A very common pattern is to create overlays with position absolute and zero positioning,\n * so `absoluteFill` can be used for convenience and to reduce duplication of these repeated\n * styles.\n */\n absoluteFill: (absoluteFill: any), // TODO: This should be updated after we fix downstream Flow sites.\n\n /**\n * Sometimes you may want `absoluteFill` but with a couple tweaks - `absoluteFillObject` can be\n * used to create a customized entry in a `StyleSheet`, e.g.:\n *\n * const styles = StyleSheet.create({\n * wrapper: {\n * ...StyleSheet.absoluteFillObject,\n * top: 10,\n * backgroundColor: 'transparent',\n * },\n * });\n */\n absoluteFillObject: absoluteFill,\n\n /**\n * Combines two styles such that `style2` will override any styles in `style1`.\n * If either style is falsy, the other one is returned without allocating an\n * array, saving allocations and maintaining reference equality for\n * PureComponent checks.\n */\n compose(\n style1: ?T,\n style2: ?T,\n ): ?T | $ReadOnlyArray {\n if (style1 != null && style2 != null) {\n return ([style1, style2]: $ReadOnlyArray);\n } else {\n return style1 != null ? style1 : style2;\n }\n },\n\n /**\n * Flattens an array of style objects, into one aggregated style object.\n * Alternatively, this method can be used to lookup IDs, returned by\n * StyleSheet.register.\n *\n * > **NOTE**: Exercise caution as abusing this can tax you in terms of\n * > optimizations.\n * >\n * > IDs enable optimizations through the bridge and memory in general. Refering\n * > to style objects directly will deprive you of these optimizations.\n *\n * Example:\n * ```\n * const styles = StyleSheet.create({\n * listItem: {\n * flex: 1,\n * fontSize: 16,\n * color: 'white'\n * },\n * selectedListItem: {\n * color: 'green'\n * }\n * });\n *\n * StyleSheet.flatten([styles.listItem, styles.selectedListItem])\n * // returns { flex: 1, fontSize: 16, color: 'green' }\n * ```\n * Alternative use:\n * ```\n * StyleSheet.flatten(styles.listItem);\n * // return { flex: 1, fontSize: 16, color: 'white' }\n * // Simply styles.listItem would return its ID (number)\n * ```\n * This method internally uses `StyleSheetRegistry.getStyleByID(style)`\n * to resolve style objects represented by IDs. Thus, an array of style\n * objects (instances of StyleSheet.create), are individually resolved to,\n * their respective objects, merged as one and then returned. This also explains\n * the alternative use.\n */\n flatten,\n\n /**\n * WARNING: EXPERIMENTAL. Breaking changes will probably happen a lot and will\n * not be reliably announced. The whole thing might be deleted, who knows? Use\n * at your own risk.\n *\n * Sets a function to use to pre-process a style property value. This is used\n * internally to process color and transform values. You should not use this\n * unless you really know what you are doing and have exhausted other options.\n */\n setStyleAttributePreprocessor(\n property: string,\n process: (nextProp: mixed) => mixed,\n ) {\n let value;\n\n if (typeof ReactNativeStyleAttributes[property] === 'string') {\n value = {};\n } else if (typeof ReactNativeStyleAttributes[property] === 'object') {\n value = ReactNativeStyleAttributes[property];\n } else {\n console.error(`${property} is not a valid style attribute`);\n return;\n }\n\n if (__DEV__ && typeof value.process === 'function') {\n console.warn(`Overwriting ${property} style attribute preprocessor`);\n }\n\n ReactNativeStyleAttributes[property] = {...value, process};\n },\n\n /**\n * Creates a StyleSheet style reference from the given object.\n */\n create<+S: ____Styles_Internal>(obj: S): $ObjMap any> {\n // TODO: This should return S as the return type. But first,\n // we need to codemod all the callsites that are typing this\n // return value as a number (even though it was opaque).\n if (__DEV__) {\n for (const key in obj) {\n StyleSheetValidation.validateStyle(key, obj);\n if (obj[key]) {\n Object.freeze(obj[key]);\n }\n }\n }\n return obj;\n },\n};\n","/**\n * Copyright (c) 2015-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n * @flow strict-local\n */\n\n'use strict';\n\nconst Dimensions = require('Dimensions');\n\n/**\n * PixelRatio class gives access to the device pixel density.\n *\n * ## Fetching a correctly sized image\n *\n * You should get a higher resolution image if you are on a high pixel density\n * device. A good rule of thumb is to multiply the size of the image you display\n * by the pixel ratio.\n *\n * ```\n * var image = getImage({\n * width: PixelRatio.getPixelSizeForLayoutSize(200),\n * height: PixelRatio.getPixelSizeForLayoutSize(100),\n * });\n * \n * ```\n *\n * ## Pixel grid snapping\n *\n * In iOS, you can specify positions and dimensions for elements with arbitrary\n * precision, for example 29.674825. But, ultimately the physical display only\n * have a fixed number of pixels, for example 640×960 for iPhone 4 or 750×1334\n * for iPhone 6. iOS tries to be as faithful as possible to the user value by\n * spreading one original pixel into multiple ones to trick the eye. The\n * downside of this technique is that it makes the resulting element look\n * blurry.\n *\n * In practice, we found out that developers do not want this feature and they\n * have to work around it by doing manual rounding in order to avoid having\n * blurry elements. In React Native, we are rounding all the pixels\n * automatically.\n *\n * We have to be careful when to do this rounding. You never want to work with\n * rounded and unrounded values at the same time as you're going to accumulate\n * rounding errors. Having even one rounding error is deadly because a one\n * pixel border may vanish or be twice as big.\n *\n * In React Native, everything in JavaScript and within the layout engine works\n * with arbitrary precision numbers. It's only when we set the position and\n * dimensions of the native element on the main thread that we round. Also,\n * rounding is done relative to the root rather than the parent, again to avoid\n * accumulating rounding errors.\n *\n */\nclass PixelRatio {\n /**\n * Returns the device pixel density. Some examples:\n *\n * - PixelRatio.get() === 1\n * - mdpi Android devices (160 dpi)\n * - PixelRatio.get() === 1.5\n * - hdpi Android devices (240 dpi)\n * - PixelRatio.get() === 2\n * - iPhone 4, 4S\n * - iPhone 5, 5c, 5s\n * - iPhone 6\n * - xhdpi Android devices (320 dpi)\n * - PixelRatio.get() === 3\n * - iPhone 6 plus\n * - xxhdpi Android devices (480 dpi)\n * - PixelRatio.get() === 3.5\n * - Nexus 6\n */\n static get(): number {\n return Dimensions.get('window').scale;\n }\n\n /**\n * Returns the scaling factor for font sizes. This is the ratio that is used to calculate the\n * absolute font size, so any elements that heavily depend on that should use this to do\n * calculations.\n *\n * If a font scale is not set, this returns the device pixel ratio.\n *\n * Currently this is only implemented on Android and reflects the user preference set in\n * Settings > Display > Font size, on iOS it will always return the default pixel ratio.\n * @platform android\n */\n static getFontScale(): number {\n return Dimensions.get('window').fontScale || PixelRatio.get();\n }\n\n /**\n * Converts a layout size (dp) to pixel size (px).\n *\n * Guaranteed to return an integer number.\n */\n static getPixelSizeForLayoutSize(layoutSize: number): number {\n return Math.round(layoutSize * PixelRatio.get());\n }\n\n /**\n * Rounds a layout size (dp) to the nearest layout size that corresponds to\n * an integer number of pixels. For example, on a device with a PixelRatio\n * of 3, `PixelRatio.roundToNearestPixel(8.4) = 8.33`, which corresponds to\n * exactly (8.33 * 3) = 25 pixels.\n */\n static roundToNearestPixel(layoutSize: number): number {\n const ratio = PixelRatio.get();\n return Math.round(layoutSize * ratio) / ratio;\n }\n\n // No-op for iOS, but used on the web. Should not be documented.\n static startDetecting() {}\n}\n\nmodule.exports = PixelRatio;\n","/**\n * Copyright (c) 2015-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n * @flow\n */\n\n'use strict';\n\nconst EventEmitter = require('EventEmitter');\nconst Platform = require('Platform');\nconst RCTDeviceEventEmitter = require('RCTDeviceEventEmitter');\n\nconst invariant = require('fbjs/lib/invariant');\n\nconst eventEmitter = new EventEmitter();\nlet dimensionsInitialized = false;\nconst dimensions = {};\nclass Dimensions {\n /**\n * This should only be called from native code by sending the\n * didUpdateDimensions event.\n *\n * @param {object} dims Simple string-keyed object of dimensions to set\n */\n static set(dims: {[key: string]: any}): void {\n // We calculate the window dimensions in JS so that we don't encounter loss of\n // precision in transferring the dimensions (which could be non-integers) over\n // the bridge.\n if (dims && dims.windowPhysicalPixels) {\n // parse/stringify => Clone hack\n dims = JSON.parse(JSON.stringify(dims));\n\n const windowPhysicalPixels = dims.windowPhysicalPixels;\n dims.window = {\n width: windowPhysicalPixels.width / windowPhysicalPixels.scale,\n height: windowPhysicalPixels.height / windowPhysicalPixels.scale,\n scale: windowPhysicalPixels.scale,\n fontScale: windowPhysicalPixels.fontScale,\n };\n if (Platform.OS === 'android') {\n // Screen and window dimensions are different on android\n const screenPhysicalPixels = dims.screenPhysicalPixels;\n dims.screen = {\n width: screenPhysicalPixels.width / screenPhysicalPixels.scale,\n height: screenPhysicalPixels.height / screenPhysicalPixels.scale,\n scale: screenPhysicalPixels.scale,\n fontScale: screenPhysicalPixels.fontScale,\n };\n\n // delete so no callers rely on this existing\n delete dims.screenPhysicalPixels;\n } else {\n dims.screen = dims.window;\n }\n // delete so no callers rely on this existing\n delete dims.windowPhysicalPixels;\n }\n\n Object.assign(dimensions, dims);\n if (dimensionsInitialized) {\n // Don't fire 'change' the first time the dimensions are set.\n eventEmitter.emit('change', {\n window: dimensions.window,\n screen: dimensions.screen,\n });\n } else {\n dimensionsInitialized = true;\n }\n }\n\n /**\n * Initial dimensions are set before `runApplication` is called so they should\n * be available before any other require's are run, but may be updated later.\n *\n * Note: Although dimensions are available immediately, they may change (e.g\n * due to device rotation) so any rendering logic or styles that depend on\n * these constants should try to call this function on every render, rather\n * than caching the value (for example, using inline styles rather than\n * setting a value in a `StyleSheet`).\n *\n * Example: `var {height, width} = Dimensions.get('window');`\n *\n * @param {string} dim Name of dimension as defined when calling `set`.\n * @returns {Object?} Value for the dimension.\n */\n static get(dim: string): Object {\n invariant(dimensions[dim], 'No dimension set for key ' + dim);\n return dimensions[dim];\n }\n\n /**\n * Add an event handler. Supported events:\n *\n * - `change`: Fires when a property within the `Dimensions` object changes. The argument\n * to the event handler is an object with `window` and `screen` properties whose values\n * are the same as the return values of `Dimensions.get('window')` and\n * `Dimensions.get('screen')`, respectively.\n */\n static addEventListener(type: string, handler: Function) {\n invariant(\n type === 'change',\n 'Trying to subscribe to unknown event: \"%s\"',\n type,\n );\n eventEmitter.addListener(type, handler);\n }\n\n /**\n * Remove an event handler.\n */\n static removeEventListener(type: string, handler: Function) {\n invariant(\n type === 'change',\n 'Trying to remove listener for unknown event: \"%s\"',\n type,\n );\n eventEmitter.removeListener(type, handler);\n }\n}\n\nlet dims: ?{[key: string]: any} =\n global.nativeExtensions &&\n global.nativeExtensions.DeviceInfo &&\n global.nativeExtensions.DeviceInfo.Dimensions;\nlet nativeExtensionsEnabled = true;\nif (!dims) {\n const DeviceInfo = require('DeviceInfo');\n dims = DeviceInfo.Dimensions;\n nativeExtensionsEnabled = false;\n}\n\ninvariant(\n dims,\n 'Either DeviceInfo native extension or DeviceInfo Native Module must be registered',\n);\nDimensions.set(dims);\nif (!nativeExtensionsEnabled) {\n RCTDeviceEventEmitter.addListener('didUpdateDimensions', function(update) {\n Dimensions.set(update);\n });\n}\n\nmodule.exports = Dimensions;\n","/**\n * Copyright (c) 2015-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n * @flow strict-local\n */\n\n'use strict';\n\nconst DeviceInfo = require('NativeModules').DeviceInfo;\n\nconst invariant = require('fbjs/lib/invariant');\n\ninvariant(DeviceInfo, 'DeviceInfo native module is not installed correctly');\n\nmodule.exports = DeviceInfo;\n","/**\n * Copyright (c) 2015-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format strict-local\n * @flow\n */\n\n'use strict';\n\nconst ImageStylePropTypes = require('ImageStylePropTypes');\nconst TextStylePropTypes = require('TextStylePropTypes');\nconst ViewStylePropTypes = require('ViewStylePropTypes');\n\nconst processColor = require('processColor');\nconst processTransform = require('processTransform');\nconst sizesDiffer = require('sizesDiffer');\n\nconst ReactNativeStyleAttributes = {};\n\nfor (const attributeName of Object.keys({\n ...ViewStylePropTypes,\n ...TextStylePropTypes,\n ...ImageStylePropTypes,\n})) {\n ReactNativeStyleAttributes[attributeName] = true;\n}\n\nReactNativeStyleAttributes.transform = {process: processTransform};\nReactNativeStyleAttributes.shadowOffset = {diff: sizesDiffer};\n\nconst colorAttributes = {process: processColor};\nReactNativeStyleAttributes.backgroundColor = colorAttributes;\nReactNativeStyleAttributes.borderBottomColor = colorAttributes;\nReactNativeStyleAttributes.borderColor = colorAttributes;\nReactNativeStyleAttributes.borderLeftColor = colorAttributes;\nReactNativeStyleAttributes.borderRightColor = colorAttributes;\nReactNativeStyleAttributes.borderTopColor = colorAttributes;\nReactNativeStyleAttributes.borderStartColor = colorAttributes;\nReactNativeStyleAttributes.borderEndColor = colorAttributes;\nReactNativeStyleAttributes.color = colorAttributes;\nReactNativeStyleAttributes.shadowColor = colorAttributes;\nReactNativeStyleAttributes.textDecorationColor = colorAttributes;\nReactNativeStyleAttributes.tintColor = colorAttributes;\nReactNativeStyleAttributes.textShadowColor = colorAttributes;\nReactNativeStyleAttributes.overlayColor = colorAttributes;\n\nmodule.exports = ReactNativeStyleAttributes;\n","/**\n * Copyright (c) 2015-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @flow\n * @format\n */\n'use strict';\n\nconst ColorPropType = require('ColorPropType');\nconst ImageResizeMode = require('ImageResizeMode');\nconst LayoutPropTypes = require('LayoutPropTypes');\nconst ReactPropTypes = require('prop-types');\nconst ShadowPropTypesIOS = require('ShadowPropTypesIOS');\nconst TransformPropTypes = require('TransformPropTypes');\n\nconst ImageStylePropTypes = {\n ...LayoutPropTypes,\n ...ShadowPropTypesIOS,\n ...TransformPropTypes,\n resizeMode: ReactPropTypes.oneOf(Object.keys(ImageResizeMode)),\n backfaceVisibility: ReactPropTypes.oneOf(['visible', 'hidden']),\n backgroundColor: ColorPropType,\n borderColor: ColorPropType,\n borderWidth: ReactPropTypes.number,\n borderRadius: ReactPropTypes.number,\n overflow: ReactPropTypes.oneOf(['visible', 'hidden']),\n\n /**\n * Changes the color of all the non-transparent pixels to the tintColor.\n */\n tintColor: ColorPropType,\n opacity: ReactPropTypes.number,\n /**\n * When the image has rounded corners, specifying an overlayColor will\n * cause the remaining space in the corners to be filled with a solid color.\n * This is useful in cases which are not supported by the Android\n * implementation of rounded corners:\n * - Certain resize modes, such as 'contain'\n * - Animated GIFs\n *\n * A typical way to use this prop is with images displayed on a solid\n * background and setting the `overlayColor` to the same color\n * as the background.\n *\n * For details of how this works under the hood, see\n * http://frescolib.org/docs/rounded-corners-and-circles.html\n *\n * @platform android\n */\n overlayColor: ReactPropTypes.string,\n\n // Android-Specific styles\n borderTopLeftRadius: ReactPropTypes.number,\n borderTopRightRadius: ReactPropTypes.number,\n borderBottomLeftRadius: ReactPropTypes.number,\n borderBottomRightRadius: ReactPropTypes.number,\n};\n\nmodule.exports = ImageStylePropTypes;\n","/**\n * Copyright (c) 2015-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n */\n\n'use strict';\n\nconst normalizeColor = require('normalizeColor');\n\nconst colorPropType = function(\n isRequired,\n props,\n propName,\n componentName,\n location,\n propFullName,\n) {\n const color = props[propName];\n if (color === undefined || color === null) {\n if (isRequired) {\n return new Error(\n 'Required ' +\n location +\n ' `' +\n (propFullName || propName) +\n '` was not specified in `' +\n componentName +\n '`.',\n );\n }\n return;\n }\n\n if (typeof color === 'number') {\n // Developers should not use a number, but we are using the prop type\n // both for user provided colors and for transformed ones. This isn't ideal\n // and should be fixed but will do for now...\n return;\n }\n\n if (normalizeColor(color) === null) {\n return new Error(\n 'Invalid ' +\n location +\n ' `' +\n (propFullName || propName) +\n '` supplied to `' +\n componentName +\n '`: ' +\n color +\n '\\n' +\n `Valid color formats are\n - '#f0f' (#rgb)\n - '#f0fc' (#rgba)\n - '#ff00ff' (#rrggbb)\n - '#ff00ff00' (#rrggbbaa)\n - 'rgb(255, 255, 255)'\n - 'rgba(255, 255, 255, 1.0)'\n - 'hsl(360, 100%, 100%)'\n - 'hsla(360, 100%, 100%, 1.0)'\n - 'transparent'\n - 'red'\n - 0xff00ff00 (0xrrggbbaa)\n`,\n );\n }\n};\n\nconst ColorPropType = colorPropType.bind(null, false /* isRequired */);\nColorPropType.isRequired = colorPropType.bind(null, true /* isRequired */);\n\nmodule.exports = ColorPropType;\n","/**\n * Copyright (c) 2015-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n * @flow\n */\n\n/* eslint no-bitwise: 0 */\n'use strict';\n\nfunction normalizeColor(color: string | number): ?number {\n const matchers = getMatchers();\n let match;\n\n if (typeof color === 'number') {\n if (color >>> 0 === color && color >= 0 && color <= 0xffffffff) {\n return color;\n }\n return null;\n }\n\n // Ordered based on occurrences on Facebook codebase\n if ((match = matchers.hex6.exec(color))) {\n return parseInt(match[1] + 'ff', 16) >>> 0;\n }\n\n if (names.hasOwnProperty(color)) {\n return names[color];\n }\n\n if ((match = matchers.rgb.exec(color))) {\n return (\n // b\n ((parse255(match[1]) << 24) | // r\n (parse255(match[2]) << 16) | // g\n (parse255(match[3]) << 8) |\n 0x000000ff) >>> // a\n 0\n );\n }\n\n if ((match = matchers.rgba.exec(color))) {\n return (\n // b\n ((parse255(match[1]) << 24) | // r\n (parse255(match[2]) << 16) | // g\n (parse255(match[3]) << 8) |\n parse1(match[4])) >>> // a\n 0\n );\n }\n\n if ((match = matchers.hex3.exec(color))) {\n return (\n parseInt(\n match[1] +\n match[1] + // r\n match[2] +\n match[2] + // g\n match[3] +\n match[3] + // b\n 'ff', // a\n 16,\n ) >>> 0\n );\n }\n\n // https://drafts.csswg.org/css-color-4/#hex-notation\n if ((match = matchers.hex8.exec(color))) {\n return parseInt(match[1], 16) >>> 0;\n }\n\n if ((match = matchers.hex4.exec(color))) {\n return (\n parseInt(\n match[1] +\n match[1] + // r\n match[2] +\n match[2] + // g\n match[3] +\n match[3] + // b\n match[4] +\n match[4], // a\n 16,\n ) >>> 0\n );\n }\n\n if ((match = matchers.hsl.exec(color))) {\n return (\n (hslToRgb(\n parse360(match[1]), // h\n parsePercentage(match[2]), // s\n parsePercentage(match[3]), // l\n ) |\n 0x000000ff) >>> // a\n 0\n );\n }\n\n if ((match = matchers.hsla.exec(color))) {\n return (\n (hslToRgb(\n parse360(match[1]), // h\n parsePercentage(match[2]), // s\n parsePercentage(match[3]), // l\n ) |\n parse1(match[4])) >>> // a\n 0\n );\n }\n\n return null;\n}\n\nfunction hue2rgb(p: number, q: number, t: number): number {\n if (t < 0) {\n t += 1;\n }\n if (t > 1) {\n t -= 1;\n }\n if (t < 1 / 6) {\n return p + (q - p) * 6 * t;\n }\n if (t < 1 / 2) {\n return q;\n }\n if (t < 2 / 3) {\n return p + (q - p) * (2 / 3 - t) * 6;\n }\n return p;\n}\n\nfunction hslToRgb(h: number, s: number, l: number): number {\n const q = l < 0.5 ? l * (1 + s) : l + s - l * s;\n const p = 2 * l - q;\n const r = hue2rgb(p, q, h + 1 / 3);\n const g = hue2rgb(p, q, h);\n const b = hue2rgb(p, q, h - 1 / 3);\n\n return (\n (Math.round(r * 255) << 24) |\n (Math.round(g * 255) << 16) |\n (Math.round(b * 255) << 8)\n );\n}\n\n// var INTEGER = '[-+]?\\\\d+';\nconst NUMBER = '[-+]?\\\\d*\\\\.?\\\\d+';\nconst PERCENTAGE = NUMBER + '%';\n\nfunction call(...args) {\n return '\\\\(\\\\s*(' + args.join(')\\\\s*,\\\\s*(') + ')\\\\s*\\\\)';\n}\n\nlet cachedMatchers;\n\nfunction getMatchers() {\n if (cachedMatchers === undefined) {\n cachedMatchers = {\n rgb: new RegExp('rgb' + call(NUMBER, NUMBER, NUMBER)),\n rgba: new RegExp('rgba' + call(NUMBER, NUMBER, NUMBER, NUMBER)),\n hsl: new RegExp('hsl' + call(NUMBER, PERCENTAGE, PERCENTAGE)),\n hsla: new RegExp('hsla' + call(NUMBER, PERCENTAGE, PERCENTAGE, NUMBER)),\n hex3: /^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,\n hex4: /^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,\n hex6: /^#([0-9a-fA-F]{6})$/,\n hex8: /^#([0-9a-fA-F]{8})$/,\n };\n }\n return cachedMatchers;\n}\n\nfunction parse255(str: string): number {\n const int = parseInt(str, 10);\n if (int < 0) {\n return 0;\n }\n if (int > 255) {\n return 255;\n }\n return int;\n}\n\nfunction parse360(str: string): number {\n const int = parseFloat(str);\n return (((int % 360) + 360) % 360) / 360;\n}\n\nfunction parse1(str: string): number {\n const num = parseFloat(str);\n if (num < 0) {\n return 0;\n }\n if (num > 1) {\n return 255;\n }\n return Math.round(num * 255);\n}\n\nfunction parsePercentage(str: string): number {\n // parseFloat conveniently ignores the final %\n const int = parseFloat(str);\n if (int < 0) {\n return 0;\n }\n if (int > 100) {\n return 1;\n }\n return int / 100;\n}\n\nconst names = {\n transparent: 0x00000000,\n\n // http://www.w3.org/TR/css3-color/#svg-color\n aliceblue: 0xf0f8ffff,\n antiquewhite: 0xfaebd7ff,\n aqua: 0x00ffffff,\n aquamarine: 0x7fffd4ff,\n azure: 0xf0ffffff,\n beige: 0xf5f5dcff,\n bisque: 0xffe4c4ff,\n black: 0x000000ff,\n blanchedalmond: 0xffebcdff,\n blue: 0x0000ffff,\n blueviolet: 0x8a2be2ff,\n brown: 0xa52a2aff,\n burlywood: 0xdeb887ff,\n burntsienna: 0xea7e5dff,\n cadetblue: 0x5f9ea0ff,\n chartreuse: 0x7fff00ff,\n chocolate: 0xd2691eff,\n coral: 0xff7f50ff,\n cornflowerblue: 0x6495edff,\n cornsilk: 0xfff8dcff,\n crimson: 0xdc143cff,\n cyan: 0x00ffffff,\n darkblue: 0x00008bff,\n darkcyan: 0x008b8bff,\n darkgoldenrod: 0xb8860bff,\n darkgray: 0xa9a9a9ff,\n darkgreen: 0x006400ff,\n darkgrey: 0xa9a9a9ff,\n darkkhaki: 0xbdb76bff,\n darkmagenta: 0x8b008bff,\n darkolivegreen: 0x556b2fff,\n darkorange: 0xff8c00ff,\n darkorchid: 0x9932ccff,\n darkred: 0x8b0000ff,\n darksalmon: 0xe9967aff,\n darkseagreen: 0x8fbc8fff,\n darkslateblue: 0x483d8bff,\n darkslategray: 0x2f4f4fff,\n darkslategrey: 0x2f4f4fff,\n darkturquoise: 0x00ced1ff,\n darkviolet: 0x9400d3ff,\n deeppink: 0xff1493ff,\n deepskyblue: 0x00bfffff,\n dimgray: 0x696969ff,\n dimgrey: 0x696969ff,\n dodgerblue: 0x1e90ffff,\n firebrick: 0xb22222ff,\n floralwhite: 0xfffaf0ff,\n forestgreen: 0x228b22ff,\n fuchsia: 0xff00ffff,\n gainsboro: 0xdcdcdcff,\n ghostwhite: 0xf8f8ffff,\n gold: 0xffd700ff,\n goldenrod: 0xdaa520ff,\n gray: 0x808080ff,\n green: 0x008000ff,\n greenyellow: 0xadff2fff,\n grey: 0x808080ff,\n honeydew: 0xf0fff0ff,\n hotpink: 0xff69b4ff,\n indianred: 0xcd5c5cff,\n indigo: 0x4b0082ff,\n ivory: 0xfffff0ff,\n khaki: 0xf0e68cff,\n lavender: 0xe6e6faff,\n lavenderblush: 0xfff0f5ff,\n lawngreen: 0x7cfc00ff,\n lemonchiffon: 0xfffacdff,\n lightblue: 0xadd8e6ff,\n lightcoral: 0xf08080ff,\n lightcyan: 0xe0ffffff,\n lightgoldenrodyellow: 0xfafad2ff,\n lightgray: 0xd3d3d3ff,\n lightgreen: 0x90ee90ff,\n lightgrey: 0xd3d3d3ff,\n lightpink: 0xffb6c1ff,\n lightsalmon: 0xffa07aff,\n lightseagreen: 0x20b2aaff,\n lightskyblue: 0x87cefaff,\n lightslategray: 0x778899ff,\n lightslategrey: 0x778899ff,\n lightsteelblue: 0xb0c4deff,\n lightyellow: 0xffffe0ff,\n lime: 0x00ff00ff,\n limegreen: 0x32cd32ff,\n linen: 0xfaf0e6ff,\n magenta: 0xff00ffff,\n maroon: 0x800000ff,\n mediumaquamarine: 0x66cdaaff,\n mediumblue: 0x0000cdff,\n mediumorchid: 0xba55d3ff,\n mediumpurple: 0x9370dbff,\n mediumseagreen: 0x3cb371ff,\n mediumslateblue: 0x7b68eeff,\n mediumspringgreen: 0x00fa9aff,\n mediumturquoise: 0x48d1ccff,\n mediumvioletred: 0xc71585ff,\n midnightblue: 0x191970ff,\n mintcream: 0xf5fffaff,\n mistyrose: 0xffe4e1ff,\n moccasin: 0xffe4b5ff,\n navajowhite: 0xffdeadff,\n navy: 0x000080ff,\n oldlace: 0xfdf5e6ff,\n olive: 0x808000ff,\n olivedrab: 0x6b8e23ff,\n orange: 0xffa500ff,\n orangered: 0xff4500ff,\n orchid: 0xda70d6ff,\n palegoldenrod: 0xeee8aaff,\n palegreen: 0x98fb98ff,\n paleturquoise: 0xafeeeeff,\n palevioletred: 0xdb7093ff,\n papayawhip: 0xffefd5ff,\n peachpuff: 0xffdab9ff,\n peru: 0xcd853fff,\n pink: 0xffc0cbff,\n plum: 0xdda0ddff,\n powderblue: 0xb0e0e6ff,\n purple: 0x800080ff,\n rebeccapurple: 0x663399ff,\n red: 0xff0000ff,\n rosybrown: 0xbc8f8fff,\n royalblue: 0x4169e1ff,\n saddlebrown: 0x8b4513ff,\n salmon: 0xfa8072ff,\n sandybrown: 0xf4a460ff,\n seagreen: 0x2e8b57ff,\n seashell: 0xfff5eeff,\n sienna: 0xa0522dff,\n silver: 0xc0c0c0ff,\n skyblue: 0x87ceebff,\n slateblue: 0x6a5acdff,\n slategray: 0x708090ff,\n slategrey: 0x708090ff,\n snow: 0xfffafaff,\n springgreen: 0x00ff7fff,\n steelblue: 0x4682b4ff,\n tan: 0xd2b48cff,\n teal: 0x008080ff,\n thistle: 0xd8bfd8ff,\n tomato: 0xff6347ff,\n turquoise: 0x40e0d0ff,\n violet: 0xee82eeff,\n wheat: 0xf5deb3ff,\n white: 0xffffffff,\n whitesmoke: 0xf5f5f5ff,\n yellow: 0xffff00ff,\n yellowgreen: 0x9acd32ff,\n};\n\nmodule.exports = normalizeColor;\n","/**\n * Copyright (c) 2015-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @flow\n * @format\n */\n'use strict';\n\n/* $FlowFixMe(>=0.54.0 site=react_native_oss) This comment suppresses an error\n * found when Flow v0.54 was deployed. To see the error delete this comment and\n * run Flow. */\nconst keyMirror = require('fbjs/lib/keyMirror');\n\n/**\n * ImageResizeMode - Enum for different image resizing modes, set via\n * `resizeMode` style property on `` components.\n */\nconst ImageResizeMode = keyMirror({\n /**\n * contain - The image will be resized such that it will be completely\n * visible, contained within the frame of the View.\n */\n contain: null,\n /**\n * cover - The image will be resized such that the entire area of the view\n * is covered by the image, potentially clipping parts of the image.\n */\n cover: null,\n /**\n * stretch - The image will be stretched to fill the entire frame of the\n * view without clipping. This may change the aspect ratio of the image,\n * distorting it.\n */\n stretch: null,\n /**\n * center - The image will be scaled down such that it is completely visible,\n * if bigger than the area of the view.\n * The image will not be scaled up.\n */\n center: null,\n\n /**\n * repeat - The image will be repeated to cover the frame of the View. The\n * image will keep it's size and aspect ratio.\n */\n repeat: null,\n});\n\nmodule.exports = ImageResizeMode;\n","/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @typechecks static-only\n * \n */\n'use strict';\n\nvar invariant = require(\"./invariant\");\n/**\n * Constructs an enumeration with keys equal to their value.\n *\n * For example:\n *\n * var COLORS = keyMirror({blue: null, red: null});\n * var myColor = COLORS.blue;\n * var isColorValid = !!COLORS[myColor];\n *\n * The last line could not be performed if the values of the generated enum were\n * not equal to their keys.\n *\n * Input: {key1: val1, key2: val2}\n * Output: {key1: key1, key2: key2}\n *\n * @param {object} obj\n * @return {object}\n */\n\n\nvar keyMirror = function keyMirror(obj) {\n var ret = {};\n var key;\n !(obj instanceof Object && !Array.isArray(obj)) ? process.env.NODE_ENV !== \"production\" ? invariant(false, 'keyMirror(...): Argument must be an object.') : invariant(false) : void 0;\n\n for (key in obj) {\n if (!obj.hasOwnProperty(key)) {\n continue;\n }\n\n ret[key] = key;\n }\n\n return ret;\n};\n\nmodule.exports = keyMirror;","/**\n * Copyright (c) 2015-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n * @flow strict\n */\n\n'use strict';\n\nconst ReactPropTypes = require('prop-types');\n\n/**\n * React Native's layout system is based on Flexbox and is powered both\n * on iOS and Android by an open source project called `Yoga`:\n * https://github.com/facebook/yoga\n *\n * The implementation in Yoga is slightly different from what the\n * Flexbox spec defines - for example, we chose more sensible default\n * values. Since our layout docs are generated from the comments in this\n * file, please keep a brief comment describing each prop type.\n *\n * These properties are a subset of our styles that are consumed by the layout\n * algorithm and affect the positioning and sizing of views.\n */\nconst LayoutPropTypes = {\n /** `display` sets the display type of this component.\n *\n * It works similarly to `display` in CSS, but only support 'flex' and 'none'.\n * 'flex' is the default.\n */\n display: ReactPropTypes.oneOf(['none', 'flex']),\n\n /** `width` sets the width of this component.\n *\n * It works similarly to `width` in CSS, but in React Native you\n * must use points or percentages. Ems and other units are not supported.\n * See https://developer.mozilla.org/en-US/docs/Web/CSS/width for more details.\n */\n width: ReactPropTypes.oneOfType([\n ReactPropTypes.number,\n ReactPropTypes.string,\n ]),\n\n /** `height` sets the height of this component.\n *\n * It works similarly to `height` in CSS, but in React Native you\n * must use points or percentages. Ems and other units are not supported.\n * See https://developer.mozilla.org/en-US/docs/Web/CSS/height for more details.\n */\n height: ReactPropTypes.oneOfType([\n ReactPropTypes.number,\n ReactPropTypes.string,\n ]),\n\n /**\n * When the direction is `ltr`, `start` is equivalent to `left`.\n * When the direction is `rtl`, `start` is equivalent to `right`.\n *\n * This style takes precedence over the `left`, `right`, and `end` styles.\n */\n start: ReactPropTypes.oneOfType([\n ReactPropTypes.number,\n ReactPropTypes.string,\n ]),\n\n /**\n * When the direction is `ltr`, `end` is equivalent to `right`.\n * When the direction is `rtl`, `end` is equivalent to `left`.\n *\n * This style takes precedence over the `left` and `right` styles.\n */\n end: ReactPropTypes.oneOfType([ReactPropTypes.number, ReactPropTypes.string]),\n\n /** `top` is the number of logical pixels to offset the top edge of\n * this component.\n *\n * It works similarly to `top` in CSS, but in React Native you\n * must use points or percentages. Ems and other units are not supported.\n *\n * See https://developer.mozilla.org/en-US/docs/Web/CSS/top\n * for more details of how `top` affects layout.\n */\n top: ReactPropTypes.oneOfType([ReactPropTypes.number, ReactPropTypes.string]),\n\n /** `left` is the number of logical pixels to offset the left edge of\n * this component.\n *\n * It works similarly to `left` in CSS, but in React Native you\n * must use points or percentages. Ems and other units are not supported.\n *\n * See https://developer.mozilla.org/en-US/docs/Web/CSS/left\n * for more details of how `left` affects layout.\n */\n left: ReactPropTypes.oneOfType([\n ReactPropTypes.number,\n ReactPropTypes.string,\n ]),\n\n /** `right` is the number of logical pixels to offset the right edge of\n * this component.\n *\n * It works similarly to `right` in CSS, but in React Native you\n * must use points or percentages. Ems and other units are not supported.\n *\n * See https://developer.mozilla.org/en-US/docs/Web/CSS/right\n * for more details of how `right` affects layout.\n */\n right: ReactPropTypes.oneOfType([\n ReactPropTypes.number,\n ReactPropTypes.string,\n ]),\n\n /** `bottom` is the number of logical pixels to offset the bottom edge of\n * this component.\n *\n * It works similarly to `bottom` in CSS, but in React Native you\n * must use points or percentages. Ems and other units are not supported.\n *\n * See https://developer.mozilla.org/en-US/docs/Web/CSS/bottom\n * for more details of how `bottom` affects layout.\n */\n bottom: ReactPropTypes.oneOfType([\n ReactPropTypes.number,\n ReactPropTypes.string,\n ]),\n\n /** `minWidth` is the minimum width for this component, in logical pixels.\n *\n * It works similarly to `min-width` in CSS, but in React Native you\n * must use points or percentages. Ems and other units are not supported.\n *\n * See https://developer.mozilla.org/en-US/docs/Web/CSS/min-width\n * for more details.\n */\n minWidth: ReactPropTypes.oneOfType([\n ReactPropTypes.number,\n ReactPropTypes.string,\n ]),\n\n /** `maxWidth` is the maximum width for this component, in logical pixels.\n *\n * It works similarly to `max-width` in CSS, but in React Native you\n * must use points or percentages. Ems and other units are not supported.\n *\n * See https://developer.mozilla.org/en-US/docs/Web/CSS/max-width\n * for more details.\n */\n maxWidth: ReactPropTypes.oneOfType([\n ReactPropTypes.number,\n ReactPropTypes.string,\n ]),\n\n /** `minHeight` is the minimum height for this component, in logical pixels.\n *\n * It works similarly to `min-height` in CSS, but in React Native you\n * must use points or percentages. Ems and other units are not supported.\n *\n * See https://developer.mozilla.org/en-US/docs/Web/CSS/min-height\n * for more details.\n */\n minHeight: ReactPropTypes.oneOfType([\n ReactPropTypes.number,\n ReactPropTypes.string,\n ]),\n\n /** `maxHeight` is the maximum height for this component, in logical pixels.\n *\n * It works similarly to `max-height` in CSS, but in React Native you\n * must use points or percentages. Ems and other units are not supported.\n *\n * See https://developer.mozilla.org/en-US/docs/Web/CSS/max-height\n * for more details.\n */\n maxHeight: ReactPropTypes.oneOfType([\n ReactPropTypes.number,\n ReactPropTypes.string,\n ]),\n\n /** Setting `margin` has the same effect as setting each of\n * `marginTop`, `marginLeft`, `marginBottom`, and `marginRight`.\n * See https://developer.mozilla.org/en-US/docs/Web/CSS/margin\n * for more details.\n */\n margin: ReactPropTypes.oneOfType([\n ReactPropTypes.number,\n ReactPropTypes.string,\n ]),\n\n /** Setting `marginVertical` has the same effect as setting both\n * `marginTop` and `marginBottom`.\n */\n marginVertical: ReactPropTypes.oneOfType([\n ReactPropTypes.number,\n ReactPropTypes.string,\n ]),\n\n /** Setting `marginHorizontal` has the same effect as setting\n * both `marginLeft` and `marginRight`.\n */\n marginHorizontal: ReactPropTypes.oneOfType([\n ReactPropTypes.number,\n ReactPropTypes.string,\n ]),\n\n /** `marginTop` works like `margin-top` in CSS.\n * See https://developer.mozilla.org/en-US/docs/Web/CSS/margin-top\n * for more details.\n */\n marginTop: ReactPropTypes.oneOfType([\n ReactPropTypes.number,\n ReactPropTypes.string,\n ]),\n\n /** `marginBottom` works like `margin-bottom` in CSS.\n * See https://developer.mozilla.org/en-US/docs/Web/CSS/margin-bottom\n * for more details.\n */\n marginBottom: ReactPropTypes.oneOfType([\n ReactPropTypes.number,\n ReactPropTypes.string,\n ]),\n\n /** `marginLeft` works like `margin-left` in CSS.\n * See https://developer.mozilla.org/en-US/docs/Web/CSS/margin-left\n * for more details.\n */\n marginLeft: ReactPropTypes.oneOfType([\n ReactPropTypes.number,\n ReactPropTypes.string,\n ]),\n\n /** `marginRight` works like `margin-right` in CSS.\n * See https://developer.mozilla.org/en-US/docs/Web/CSS/margin-right\n * for more details.\n */\n marginRight: ReactPropTypes.oneOfType([\n ReactPropTypes.number,\n ReactPropTypes.string,\n ]),\n\n /**\n * When direction is `ltr`, `marginStart` is equivalent to `marginLeft`.\n * When direction is `rtl`, `marginStart` is equivalent to `marginRight`.\n */\n marginStart: ReactPropTypes.oneOfType([\n ReactPropTypes.number,\n ReactPropTypes.string,\n ]),\n\n /**\n * When direction is `ltr`, `marginEnd` is equivalent to `marginRight`.\n * When direction is `rtl`, `marginEnd` is equivalent to `marginLeft`.\n */\n marginEnd: ReactPropTypes.oneOfType([\n ReactPropTypes.number,\n ReactPropTypes.string,\n ]),\n\n /** Setting `padding` has the same effect as setting each of\n * `paddingTop`, `paddingBottom`, `paddingLeft`, and `paddingRight`.\n * See https://developer.mozilla.org/en-US/docs/Web/CSS/padding\n * for more details.\n */\n padding: ReactPropTypes.oneOfType([\n ReactPropTypes.number,\n ReactPropTypes.string,\n ]),\n\n /** Setting `paddingVertical` is like setting both of\n * `paddingTop` and `paddingBottom`.\n */\n paddingVertical: ReactPropTypes.oneOfType([\n ReactPropTypes.number,\n ReactPropTypes.string,\n ]),\n\n /** Setting `paddingHorizontal` is like setting both of\n * `paddingLeft` and `paddingRight`.\n */\n paddingHorizontal: ReactPropTypes.oneOfType([\n ReactPropTypes.number,\n ReactPropTypes.string,\n ]),\n\n /** `paddingTop` works like `padding-top` in CSS.\n * See https://developer.mozilla.org/en-US/docs/Web/CSS/padding-top\n * for more details.\n */\n paddingTop: ReactPropTypes.oneOfType([\n ReactPropTypes.number,\n ReactPropTypes.string,\n ]),\n\n /** `paddingBottom` works like `padding-bottom` in CSS.\n * See https://developer.mozilla.org/en-US/docs/Web/CSS/padding-bottom\n * for more details.\n */\n paddingBottom: ReactPropTypes.oneOfType([\n ReactPropTypes.number,\n ReactPropTypes.string,\n ]),\n\n /** `paddingLeft` works like `padding-left` in CSS.\n * See https://developer.mozilla.org/en-US/docs/Web/CSS/padding-left\n * for more details.\n */\n paddingLeft: ReactPropTypes.oneOfType([\n ReactPropTypes.number,\n ReactPropTypes.string,\n ]),\n\n /** `paddingRight` works like `padding-right` in CSS.\n * See https://developer.mozilla.org/en-US/docs/Web/CSS/padding-right\n * for more details.\n */\n paddingRight: ReactPropTypes.oneOfType([\n ReactPropTypes.number,\n ReactPropTypes.string,\n ]),\n\n /**\n * When direction is `ltr`, `paddingStart` is equivalent to `paddingLeft`.\n * When direction is `rtl`, `paddingStart` is equivalent to `paddingRight`.\n */\n paddingStart: ReactPropTypes.oneOfType([\n ReactPropTypes.number,\n ReactPropTypes.string,\n ]),\n\n /**\n * When direction is `ltr`, `paddingEnd` is equivalent to `paddingRight`.\n * When direction is `rtl`, `paddingEnd` is equivalent to `paddingLeft`.\n */\n paddingEnd: ReactPropTypes.oneOfType([\n ReactPropTypes.number,\n ReactPropTypes.string,\n ]),\n\n /** `borderWidth` works like `border-width` in CSS.\n * See https://developer.mozilla.org/en-US/docs/Web/CSS/border-width\n * for more details.\n */\n borderWidth: ReactPropTypes.number,\n\n /** `borderTopWidth` works like `border-top-width` in CSS.\n * See https://developer.mozilla.org/en-US/docs/Web/CSS/border-top-width\n * for more details.\n */\n borderTopWidth: ReactPropTypes.number,\n\n /**\n * When direction is `ltr`, `borderStartWidth` is equivalent to `borderLeftWidth`.\n * When direction is `rtl`, `borderStartWidth` is equivalent to `borderRightWidth`.\n */\n borderStartWidth: ReactPropTypes.number,\n\n /**\n * When direction is `ltr`, `borderEndWidth` is equivalent to `borderRightWidth`.\n * When direction is `rtl`, `borderEndWidth` is equivalent to `borderLeftWidth`.\n */\n borderEndWidth: ReactPropTypes.number,\n\n /** `borderRightWidth` works like `border-right-width` in CSS.\n * See https://developer.mozilla.org/en-US/docs/Web/CSS/border-right-width\n * for more details.\n */\n borderRightWidth: ReactPropTypes.number,\n\n /** `borderBottomWidth` works like `border-bottom-width` in CSS.\n * See https://developer.mozilla.org/en-US/docs/Web/CSS/border-bottom-width\n * for more details.\n */\n borderBottomWidth: ReactPropTypes.number,\n\n /** `borderLeftWidth` works like `border-left-width` in CSS.\n * See https://developer.mozilla.org/en-US/docs/Web/CSS/border-left-width\n * for more details.\n */\n borderLeftWidth: ReactPropTypes.number,\n\n /** `position` in React Native is similar to regular CSS, but\n * everything is set to `relative` by default, so `absolute`\n * positioning is always just relative to the parent.\n *\n * If you want to position a child using specific numbers of logical\n * pixels relative to its parent, set the child to have `absolute`\n * position.\n *\n * If you want to position a child relative to something\n * that is not its parent, just don't use styles for that. Use the\n * component tree.\n *\n * See https://github.com/facebook/yoga\n * for more details on how `position` differs between React Native\n * and CSS.\n */\n position: ReactPropTypes.oneOf(['absolute', 'relative']),\n\n /** `flexDirection` controls which directions children of a container go.\n * `row` goes left to right, `column` goes top to bottom, and you may\n * be able to guess what the other two do. It works like `flex-direction`\n * in CSS, except the default is `column`.\n * See https://developer.mozilla.org/en-US/docs/Web/CSS/flex-direction\n * for more details.\n */\n flexDirection: ReactPropTypes.oneOf([\n 'row',\n 'row-reverse',\n 'column',\n 'column-reverse',\n ]),\n\n /** `flexWrap` controls whether children can wrap around after they\n * hit the end of a flex container.\n * It works like `flex-wrap` in CSS (default: nowrap).\n * See https://developer.mozilla.org/en-US/docs/Web/CSS/flex-wrap\n * for more details.\n */\n flexWrap: ReactPropTypes.oneOf(['wrap', 'nowrap', 'wrap-reverse']),\n\n /** `justifyContent` aligns children in the main direction.\n * For example, if children are flowing vertically, `justifyContent`\n * controls how they align vertically.\n * It works like `justify-content` in CSS (default: flex-start).\n * See https://developer.mozilla.org/en-US/docs/Web/CSS/justify-content\n * for more details.\n */\n justifyContent: ReactPropTypes.oneOf([\n 'flex-start',\n 'flex-end',\n 'center',\n 'space-between',\n 'space-around',\n 'space-evenly',\n ]),\n\n /** `alignItems` aligns children in the cross direction.\n * For example, if children are flowing vertically, `alignItems`\n * controls how they align horizontally.\n * It works like `align-items` in CSS (default: stretch).\n * See https://developer.mozilla.org/en-US/docs/Web/CSS/align-items\n * for more details.\n */\n alignItems: ReactPropTypes.oneOf([\n 'flex-start',\n 'flex-end',\n 'center',\n 'stretch',\n 'baseline',\n ]),\n\n /** `alignSelf` controls how a child aligns in the cross direction,\n * overriding the `alignItems` of the parent. It works like `align-self`\n * in CSS (default: auto).\n * See https://developer.mozilla.org/en-US/docs/Web/CSS/align-self\n * for more details.\n */\n alignSelf: ReactPropTypes.oneOf([\n 'auto',\n 'flex-start',\n 'flex-end',\n 'center',\n 'stretch',\n 'baseline',\n ]),\n\n /** `alignContent` controls how rows align in the cross direction,\n * overriding the `alignContent` of the parent.\n * See https://developer.mozilla.org/en-US/docs/Web/CSS/align-content\n * for more details.\n */\n alignContent: ReactPropTypes.oneOf([\n 'flex-start',\n 'flex-end',\n 'center',\n 'stretch',\n 'space-between',\n 'space-around',\n ]),\n\n /** `overflow` controls how children are measured and displayed.\n * `overflow: hidden` causes views to be clipped while `overflow: scroll`\n * causes views to be measured independently of their parents main axis.\n * It works like `overflow` in CSS (default: visible).\n * See https://developer.mozilla.org/en/docs/Web/CSS/overflow\n * for more details.\n * `overflow: visible` only works on iOS. On Android, all views will clip\n * their children.\n */\n overflow: ReactPropTypes.oneOf(['visible', 'hidden', 'scroll']),\n\n /** In React Native `flex` does not work the same way that it does in CSS.\n * `flex` is a number rather than a string, and it works\n * according to the `Yoga` library\n * at https://github.com/facebook/yoga\n *\n * When `flex` is a positive number, it makes the component flexible\n * and it will be sized proportional to its flex value. So a\n * component with `flex` set to 2 will take twice the space as a\n * component with `flex` set to 1.\n *\n * When `flex` is 0, the component is sized according to `width`\n * and `height` and it is inflexible.\n *\n * When `flex` is -1, the component is normally sized according\n * `width` and `height`. However, if there's not enough space,\n * the component will shrink to its `minWidth` and `minHeight`.\n *\n * flexGrow, flexShrink, and flexBasis work the same as in CSS.\n */\n flex: ReactPropTypes.number,\n flexGrow: ReactPropTypes.number,\n flexShrink: ReactPropTypes.number,\n flexBasis: ReactPropTypes.oneOfType([\n ReactPropTypes.number,\n ReactPropTypes.string,\n ]),\n\n /**\n * Aspect ratio control the size of the undefined dimension of a node. Aspect ratio is a\n * non-standard property only available in react native and not CSS.\n *\n * - On a node with a set width/height aspect ratio control the size of the unset dimension\n * - On a node with a set flex basis aspect ratio controls the size of the node in the cross axis\n * if unset\n * - On a node with a measure function aspect ratio works as though the measure function measures\n * the flex basis\n * - On a node with flex grow/shrink aspect ratio controls the size of the node in the cross axis\n * if unset\n * - Aspect ratio takes min/max dimensions into account\n */\n aspectRatio: ReactPropTypes.number,\n\n /** `zIndex` controls which components display on top of others.\n * Normally, you don't use `zIndex`. Components render according to\n * their order in the document tree, so later components draw over\n * earlier ones. `zIndex` may be useful if you have animations or custom\n * modal interfaces where you don't want this behavior.\n *\n * It works like the CSS `z-index` property - components with a larger\n * `zIndex` will render on top. Think of the z-direction like it's\n * pointing from the phone into your eyeball.\n * See https://developer.mozilla.org/en-US/docs/Web/CSS/z-index for\n * more details.\n */\n zIndex: ReactPropTypes.number,\n\n /** `direction` specifies the directional flow of the user interface.\n * The default is `inherit`, except for root node which will have\n * value based on the current locale.\n * See https://facebook.github.io/yoga/docs/rtl/\n * for more details.\n * @platform ios\n */\n direction: ReactPropTypes.oneOf(['inherit', 'ltr', 'rtl']),\n};\n\nmodule.exports = LayoutPropTypes;\n","/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nif (process.env.NODE_ENV !== 'production') {\n var REACT_ELEMENT_TYPE = (typeof Symbol === 'function' &&\n Symbol.for &&\n Symbol.for('react.element')) ||\n 0xeac7;\n\n var isValidElement = function(object) {\n return typeof object === 'object' &&\n object !== null &&\n object.$$typeof === REACT_ELEMENT_TYPE;\n };\n\n // By explicitly using `prop-types` you are opting into new development behavior.\n // http://fb.me/prop-types-in-prod\n var throwOnDirectAccess = true;\n module.exports = require('./factoryWithTypeCheckers')(isValidElement, throwOnDirectAccess);\n} else {\n // By explicitly using `prop-types` you are opting into new production behavior.\n // http://fb.me/prop-types-in-prod\n module.exports = require('./factoryWithThrowingShims')();\n}\n","/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';\n\nvar ReactPropTypesSecret = require('./lib/ReactPropTypesSecret');\n\nfunction emptyFunction() {}\n\nmodule.exports = function() {\n function shim(props, propName, componentName, location, propFullName, secret) {\n if (secret === ReactPropTypesSecret) {\n // It is still safe when called from React.\n return;\n }\n var err = new Error(\n 'Calling PropTypes validators directly is not supported by the `prop-types` package. ' +\n 'Use PropTypes.checkPropTypes() to call them. ' +\n 'Read more at http://fb.me/use-check-prop-types'\n );\n err.name = 'Invariant Violation';\n throw err;\n };\n shim.isRequired = shim;\n function getShim() {\n return shim;\n };\n // Important!\n // Keep this list in sync with production version in `./factoryWithTypeCheckers.js`.\n var ReactPropTypes = {\n array: shim,\n bool: shim,\n func: shim,\n number: shim,\n object: shim,\n string: shim,\n symbol: shim,\n\n any: shim,\n arrayOf: getShim,\n element: shim,\n instanceOf: getShim,\n node: shim,\n objectOf: getShim,\n oneOf: getShim,\n oneOfType: getShim,\n shape: getShim,\n exact: getShim\n };\n\n ReactPropTypes.checkPropTypes = emptyFunction;\n ReactPropTypes.PropTypes = ReactPropTypes;\n\n return ReactPropTypes;\n};\n","/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';\n\nvar ReactPropTypesSecret = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED';\n\nmodule.exports = ReactPropTypesSecret;\n","/**\n * Copyright (c) 2015-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @flow\n * @format\n */\n'use strict';\n\nconst ColorPropType = require('ColorPropType');\nconst ReactPropTypes = require('prop-types');\n\n/**\n * These props can be used to dynamically generate shadows on views, images, text, etc.\n *\n * Because they are dynamically generated, they may cause performance regressions. Static\n * shadow image asset may be a better way to go for optimal performance.\n *\n * These properties are iOS only - for similar functionality on Android, use the [`elevation`\n * property](docs/viewstyleproptypes.html#elevation).\n */\nconst ShadowPropTypesIOS = {\n /**\n * Sets the drop shadow color\n * @platform ios\n */\n shadowColor: ColorPropType,\n /**\n * Sets the drop shadow offset\n * @platform ios\n */\n shadowOffset: ReactPropTypes.shape({\n width: ReactPropTypes.number,\n height: ReactPropTypes.number,\n }),\n /**\n * Sets the drop shadow opacity (multiplied by the color's alpha component)\n * @platform ios\n */\n shadowOpacity: ReactPropTypes.number,\n /**\n * Sets the drop shadow blur radius\n * @platform ios\n */\n shadowRadius: ReactPropTypes.number,\n};\n\nmodule.exports = ShadowPropTypesIOS;\n","/**\n * Copyright (c) 2015-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n * @flow\n */\n\n'use strict';\n\nconst ReactPropTypes = require('prop-types');\n\nconst deprecatedPropType = require('deprecatedPropType');\n\nconst TransformMatrixPropType = function(\n props: Object,\n propName: string,\n componentName: string,\n): ?Error {\n if (props[propName]) {\n return new Error(\n 'The transformMatrix style property is deprecated. ' +\n 'Use `transform: [{ matrix: ... }]` instead.',\n );\n }\n};\n\nconst DecomposedMatrixPropType = function(\n props: Object,\n propName: string,\n componentName: string,\n): ?Error {\n if (props[propName]) {\n return new Error(\n 'The decomposedMatrix style property is deprecated. ' +\n 'Use `transform: [...]` instead.',\n );\n }\n};\n\nconst TransformPropTypes = {\n /**\n * `transform` accepts an array of transformation objects. Each object specifies\n * the property that will be transformed as the key, and the value to use in the\n * transformation. Objects should not be combined. Use a single key/value pair\n * per object.\n *\n * The rotate transformations require a string so that the transform may be\n * expressed in degrees (deg) or radians (rad). For example:\n *\n * `transform([{ rotateX: '45deg' }, { rotateZ: '0.785398rad' }])`\n *\n * The skew transformations require a string so that the transform may be\n * expressed in degrees (deg). For example:\n *\n * `transform([{ skewX: '45deg' }])`\n */\n transform: ReactPropTypes.arrayOf(\n ReactPropTypes.oneOfType([\n ReactPropTypes.shape({perspective: ReactPropTypes.number}),\n ReactPropTypes.shape({rotate: ReactPropTypes.string}),\n ReactPropTypes.shape({rotateX: ReactPropTypes.string}),\n ReactPropTypes.shape({rotateY: ReactPropTypes.string}),\n ReactPropTypes.shape({rotateZ: ReactPropTypes.string}),\n ReactPropTypes.shape({scale: ReactPropTypes.number}),\n ReactPropTypes.shape({scaleX: ReactPropTypes.number}),\n ReactPropTypes.shape({scaleY: ReactPropTypes.number}),\n ReactPropTypes.shape({translateX: ReactPropTypes.number}),\n ReactPropTypes.shape({translateY: ReactPropTypes.number}),\n ReactPropTypes.shape({skewX: ReactPropTypes.string}),\n ReactPropTypes.shape({skewY: ReactPropTypes.string}),\n ]),\n ),\n\n /**\n * Deprecated. Use the transform prop instead.\n */\n transformMatrix: TransformMatrixPropType,\n /**\n * Deprecated. Use the transform prop instead.\n */\n decomposedMatrix: DecomposedMatrixPropType,\n\n /* Deprecated transform props used on Android only */\n scaleX: deprecatedPropType(\n ReactPropTypes.number,\n 'Use the transform prop instead.',\n ),\n scaleY: deprecatedPropType(\n ReactPropTypes.number,\n 'Use the transform prop instead.',\n ),\n rotation: deprecatedPropType(\n ReactPropTypes.number,\n 'Use the transform prop instead.',\n ),\n translateX: deprecatedPropType(\n ReactPropTypes.number,\n 'Use the transform prop instead.',\n ),\n translateY: deprecatedPropType(\n ReactPropTypes.number,\n 'Use the transform prop instead.',\n ),\n};\n\nmodule.exports = TransformPropTypes;\n","/**\n * Copyright (c) 2015-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n * @flow strict-local\n */\n\n'use strict';\n\nconst UIManager = require('UIManager');\n\n/**\n * Adds a deprecation warning when the prop is used.\n */\nfunction deprecatedPropType(\n propType: ReactPropsCheckType,\n explanation: string,\n): ReactPropsCheckType {\n return function validate(props, propName, componentName, ...rest) {\n // Don't warn for native components.\n if (!UIManager[componentName] && props[propName] !== undefined) {\n console.warn(\n `\\`${propName}\\` supplied to \\`${componentName}\\` has been deprecated. ${explanation}`,\n );\n }\n\n return propType(props, propName, componentName, ...rest);\n };\n}\n\nmodule.exports = deprecatedPropType;\n","/**\n * Copyright (c) 2015-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n * @flow\n */\n\n'use strict';\n\nconst ColorPropType = require('ColorPropType');\nconst ReactPropTypes = require('prop-types');\nconst ViewStylePropTypes = require('ViewStylePropTypes');\n\nconst TextStylePropTypes = {\n ...ViewStylePropTypes,\n\n color: ColorPropType,\n fontFamily: ReactPropTypes.string,\n fontSize: ReactPropTypes.number,\n fontStyle: ReactPropTypes.oneOf(['normal', 'italic']),\n /**\n * Specifies font weight. The values 'normal' and 'bold' are supported for\n * most fonts. Not all fonts have a variant for each of the numeric values,\n * in that case the closest one is chosen.\n */\n fontWeight: ReactPropTypes.oneOf([\n 'normal' /*default*/,\n 'bold',\n '100',\n '200',\n '300',\n '400',\n '500',\n '600',\n '700',\n '800',\n '900',\n ]),\n /**\n * @platform ios\n */\n fontVariant: ReactPropTypes.arrayOf(\n ReactPropTypes.oneOf([\n 'small-caps',\n 'oldstyle-nums',\n 'lining-nums',\n 'tabular-nums',\n 'proportional-nums',\n ]),\n ),\n textShadowOffset: ReactPropTypes.shape({\n width: ReactPropTypes.number,\n height: ReactPropTypes.number,\n }),\n textShadowRadius: ReactPropTypes.number,\n textShadowColor: ColorPropType,\n /**\n * @platform ios\n */\n letterSpacing: ReactPropTypes.number,\n lineHeight: ReactPropTypes.number,\n /**\n * Specifies text alignment. The value 'justify' is only supported on iOS and\n * fallbacks to `left` on Android.\n */\n textAlign: ReactPropTypes.oneOf([\n 'auto' /*default*/,\n 'left',\n 'right',\n 'center',\n 'justify',\n ]),\n /**\n * @platform android\n */\n textAlignVertical: ReactPropTypes.oneOf([\n 'auto' /*default*/,\n 'top',\n 'bottom',\n 'center',\n ]),\n /**\n * Set to `false` to remove extra font padding intended to make space for certain ascenders / descenders.\n * With some fonts, this padding can make text look slightly misaligned when centered vertically.\n * For best results also set `textAlignVertical` to `center`. Default is true.\n * @platform android\n */\n includeFontPadding: ReactPropTypes.bool,\n textDecorationLine: ReactPropTypes.oneOf([\n 'none' /*default*/,\n 'underline',\n 'line-through',\n 'underline line-through',\n ]),\n /**\n * @platform ios\n */\n textDecorationStyle: ReactPropTypes.oneOf([\n 'solid' /*default*/,\n 'double',\n 'dotted',\n 'dashed',\n ]),\n /**\n * @platform ios\n */\n textDecorationColor: ColorPropType,\n textTransform: ReactPropTypes.oneOf([\n 'none' /*default*/,\n 'capitalize',\n 'uppercase',\n 'lowercase',\n ]),\n /**\n * @platform ios\n */\n writingDirection: ReactPropTypes.oneOf(['auto' /*default*/, 'ltr', 'rtl']),\n};\n\nmodule.exports = TextStylePropTypes;\n","/**\n * Copyright (c) 2015-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n * @flow\n */\n\n'use strict';\n\nconst ColorPropType = require('ColorPropType');\nconst LayoutPropTypes = require('LayoutPropTypes');\nconst ReactPropTypes = require('prop-types');\nconst ShadowPropTypesIOS = require('ShadowPropTypesIOS');\nconst TransformPropTypes = require('TransformPropTypes');\n\n/**\n * Warning: Some of these properties may not be supported in all releases.\n */\nconst ViewStylePropTypes = {\n ...LayoutPropTypes,\n ...ShadowPropTypesIOS,\n ...TransformPropTypes,\n backfaceVisibility: ReactPropTypes.oneOf(['visible', 'hidden']),\n backgroundColor: ColorPropType,\n borderColor: ColorPropType,\n borderTopColor: ColorPropType,\n borderRightColor: ColorPropType,\n borderBottomColor: ColorPropType,\n borderLeftColor: ColorPropType,\n borderStartColor: ColorPropType,\n borderEndColor: ColorPropType,\n borderRadius: ReactPropTypes.number,\n borderTopLeftRadius: ReactPropTypes.number,\n borderTopRightRadius: ReactPropTypes.number,\n borderTopStartRadius: ReactPropTypes.number,\n borderTopEndRadius: ReactPropTypes.number,\n borderBottomLeftRadius: ReactPropTypes.number,\n borderBottomRightRadius: ReactPropTypes.number,\n borderBottomStartRadius: ReactPropTypes.number,\n borderBottomEndRadius: ReactPropTypes.number,\n borderStyle: ReactPropTypes.oneOf(['solid', 'dotted', 'dashed']),\n borderWidth: ReactPropTypes.number,\n borderTopWidth: ReactPropTypes.number,\n borderRightWidth: ReactPropTypes.number,\n borderBottomWidth: ReactPropTypes.number,\n borderLeftWidth: ReactPropTypes.number,\n opacity: ReactPropTypes.number,\n /**\n * (Android-only) Sets the elevation of a view, using Android's underlying\n * [elevation API](https://developer.android.com/training/material/shadows-clipping.html#Elevation).\n * This adds a drop shadow to the item and affects z-order for overlapping views.\n * Only supported on Android 5.0+, has no effect on earlier versions.\n * @platform android\n */\n elevation: ReactPropTypes.number,\n};\n\nmodule.exports = ViewStylePropTypes;\n","/**\n * Copyright (c) 2015-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n * @flow strict-local\n */\n\n'use strict';\n\nconst Platform = require('Platform');\n\nconst normalizeColor = require('normalizeColor');\n\n/* eslint no-bitwise: 0 */\nfunction processColor(color?: ?(string | number)): ?number {\n if (color === undefined || color === null) {\n return color;\n }\n\n let int32Color = normalizeColor(color);\n if (int32Color === null || int32Color === undefined) {\n return undefined;\n }\n\n // Converts 0xrrggbbaa into 0xaarrggbb\n int32Color = ((int32Color << 24) | (int32Color >>> 8)) >>> 0;\n\n if (Platform.OS === 'android') {\n // Android use 32 bit *signed* integer to represent the color\n // We utilize the fact that bitwise operations in JS also operates on\n // signed 32 bit integers, so that we can use those to convert from\n // *unsigned* to *signed* 32bit int that way.\n int32Color = int32Color | 0x0;\n }\n return int32Color;\n}\n\nmodule.exports = processColor;\n","/**\n * Copyright (c) 2015-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n * @flow\n */\n\n'use strict';\n\nconst MatrixMath = require('MatrixMath');\nconst Platform = require('Platform');\n\nconst invariant = require('fbjs/lib/invariant');\nconst stringifySafe = require('stringifySafe');\n\n/**\n * Generate a transform matrix based on the provided transforms, and use that\n * within the style object instead.\n *\n * This allows us to provide an API that is similar to CSS, where transforms may\n * be applied in an arbitrary order, and yet have a universal, singular\n * interface to native code.\n */\nfunction processTransform(\n transform: Array,\n): Array | Array {\n if (__DEV__) {\n _validateTransforms(transform);\n }\n\n // Android & iOS implementations of transform property accept the list of\n // transform properties as opposed to a transform Matrix. This is necessary\n // to control transform property updates completely on the native thread.\n if (Platform.OS === 'android' || Platform.OS === 'ios') {\n return transform;\n }\n\n const result = MatrixMath.createIdentityMatrix();\n\n transform.forEach(transformation => {\n const key = Object.keys(transformation)[0];\n const value = transformation[key];\n\n switch (key) {\n case 'matrix':\n MatrixMath.multiplyInto(result, result, value);\n break;\n case 'perspective':\n _multiplyTransform(result, MatrixMath.reusePerspectiveCommand, [value]);\n break;\n case 'rotateX':\n _multiplyTransform(result, MatrixMath.reuseRotateXCommand, [\n _convertToRadians(value),\n ]);\n break;\n case 'rotateY':\n _multiplyTransform(result, MatrixMath.reuseRotateYCommand, [\n _convertToRadians(value),\n ]);\n break;\n case 'rotate':\n case 'rotateZ':\n _multiplyTransform(result, MatrixMath.reuseRotateZCommand, [\n _convertToRadians(value),\n ]);\n break;\n case 'scale':\n _multiplyTransform(result, MatrixMath.reuseScaleCommand, [value]);\n break;\n case 'scaleX':\n _multiplyTransform(result, MatrixMath.reuseScaleXCommand, [value]);\n break;\n case 'scaleY':\n _multiplyTransform(result, MatrixMath.reuseScaleYCommand, [value]);\n break;\n case 'translate':\n _multiplyTransform(result, MatrixMath.reuseTranslate3dCommand, [\n value[0],\n value[1],\n value[2] || 0,\n ]);\n break;\n case 'translateX':\n _multiplyTransform(result, MatrixMath.reuseTranslate2dCommand, [\n value,\n 0,\n ]);\n break;\n case 'translateY':\n _multiplyTransform(result, MatrixMath.reuseTranslate2dCommand, [\n 0,\n value,\n ]);\n break;\n case 'skewX':\n _multiplyTransform(result, MatrixMath.reuseSkewXCommand, [\n _convertToRadians(value),\n ]);\n break;\n case 'skewY':\n _multiplyTransform(result, MatrixMath.reuseSkewYCommand, [\n _convertToRadians(value),\n ]);\n break;\n default:\n throw new Error('Invalid transform name: ' + key);\n }\n });\n\n return result;\n}\n\n/**\n * Performs a destructive operation on a transform matrix.\n */\nfunction _multiplyTransform(\n result: Array,\n matrixMathFunction: Function,\n args: Array,\n): void {\n const matrixToApply = MatrixMath.createIdentityMatrix();\n const argsWithIdentity = [matrixToApply].concat(args);\n matrixMathFunction.apply(this, argsWithIdentity);\n MatrixMath.multiplyInto(result, result, matrixToApply);\n}\n\n/**\n * Parses a string like '0.5rad' or '60deg' into radians expressed in a float.\n * Note that validation on the string is done in `_validateTransform()`.\n */\nfunction _convertToRadians(value: string): number {\n const floatValue = parseFloat(value);\n return value.indexOf('rad') > -1 ? floatValue : (floatValue * Math.PI) / 180;\n}\n\nfunction _validateTransforms(transform: Array): void {\n transform.forEach(transformation => {\n const keys = Object.keys(transformation);\n invariant(\n keys.length === 1,\n 'You must specify exactly one property per transform object. Passed properties: %s',\n stringifySafe(transformation),\n );\n const key = keys[0];\n const value = transformation[key];\n _validateTransform(key, value, transformation);\n });\n}\n\nfunction _validateTransform(key, value, transformation) {\n invariant(\n !value.getValue,\n 'You passed an Animated.Value to a normal component. ' +\n 'You need to wrap that component in an Animated. For example, ' +\n 'replace by .',\n );\n\n const multivalueTransforms = ['matrix', 'translate'];\n if (multivalueTransforms.indexOf(key) !== -1) {\n invariant(\n Array.isArray(value),\n 'Transform with key of %s must have an array as the value: %s',\n key,\n stringifySafe(transformation),\n );\n }\n switch (key) {\n case 'matrix':\n invariant(\n value.length === 9 || value.length === 16,\n 'Matrix transform must have a length of 9 (2d) or 16 (3d). ' +\n 'Provided matrix has a length of %s: %s',\n value.length,\n stringifySafe(transformation),\n );\n break;\n case 'translate':\n invariant(\n value.length === 2 || value.length === 3,\n 'Transform with key translate must be an array of length 2 or 3, found %s: %s',\n value.length,\n stringifySafe(transformation),\n );\n break;\n case 'rotateX':\n case 'rotateY':\n case 'rotateZ':\n case 'rotate':\n case 'skewX':\n case 'skewY':\n invariant(\n typeof value === 'string',\n 'Transform with key of \"%s\" must be a string: %s',\n key,\n stringifySafe(transformation),\n );\n invariant(\n value.indexOf('deg') > -1 || value.indexOf('rad') > -1,\n 'Rotate transform must be expressed in degrees (deg) or radians ' +\n '(rad): %s',\n stringifySafe(transformation),\n );\n break;\n case 'perspective':\n invariant(\n typeof value === 'number',\n 'Transform with key of \"%s\" must be a number: %s',\n key,\n stringifySafe(transformation),\n );\n invariant(\n value !== 0,\n 'Transform with key of \"%s\" cannot be zero: %s',\n key,\n stringifySafe(transformation),\n );\n break;\n case 'translateX':\n case 'translateY':\n case 'scale':\n case 'scaleX':\n case 'scaleY':\n invariant(\n typeof value === 'number',\n 'Transform with key of \"%s\" must be a number: %s',\n key,\n stringifySafe(transformation),\n );\n break;\n default:\n invariant(\n false,\n 'Invalid transform %s: %s',\n key,\n stringifySafe(transformation),\n );\n }\n}\n\nmodule.exports = processTransform;\n","/**\n * Copyright (c) 2015-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n * @noflow\n */\n\n/* eslint-disable space-infix-ops */\n'use strict';\n\nconst invariant = require('fbjs/lib/invariant');\n\n/**\n * Memory conservative (mutative) matrix math utilities. Uses \"command\"\n * matrices, which are reusable.\n */\nconst MatrixMath = {\n createIdentityMatrix: function() {\n return [1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1];\n },\n\n createCopy: function(m) {\n return [\n m[0],\n m[1],\n m[2],\n m[3],\n m[4],\n m[5],\n m[6],\n m[7],\n m[8],\n m[9],\n m[10],\n m[11],\n m[12],\n m[13],\n m[14],\n m[15],\n ];\n },\n\n createOrthographic: function(left, right, bottom, top, near, far) {\n const a = 2 / (right - left);\n const b = 2 / (top - bottom);\n const c = -2 / (far - near);\n\n const tx = -(right + left) / (right - left);\n const ty = -(top + bottom) / (top - bottom);\n const tz = -(far + near) / (far - near);\n\n return [a, 0, 0, 0, 0, b, 0, 0, 0, 0, c, 0, tx, ty, tz, 1];\n },\n\n createFrustum: function(left, right, bottom, top, near, far) {\n const r_width = 1 / (right - left);\n const r_height = 1 / (top - bottom);\n const r_depth = 1 / (near - far);\n const x = 2 * (near * r_width);\n const y = 2 * (near * r_height);\n const A = (right + left) * r_width;\n const B = (top + bottom) * r_height;\n const C = (far + near) * r_depth;\n const D = 2 * (far * near * r_depth);\n return [x, 0, 0, 0, 0, y, 0, 0, A, B, C, -1, 0, 0, D, 0];\n },\n\n /**\n * This create a perspective projection towards negative z\n * Clipping the z range of [-near, -far]\n *\n * @param fovInRadians - field of view in randians\n */\n createPerspective: function(fovInRadians, aspect, near, far) {\n const h = 1 / Math.tan(fovInRadians / 2);\n const r_depth = 1 / (near - far);\n const C = (far + near) * r_depth;\n const D = 2 * (far * near * r_depth);\n return [h / aspect, 0, 0, 0, 0, h, 0, 0, 0, 0, C, -1, 0, 0, D, 0];\n },\n\n createTranslate2d: function(x, y) {\n const mat = MatrixMath.createIdentityMatrix();\n MatrixMath.reuseTranslate2dCommand(mat, x, y);\n return mat;\n },\n\n reuseTranslate2dCommand: function(matrixCommand, x, y) {\n matrixCommand[12] = x;\n matrixCommand[13] = y;\n },\n\n reuseTranslate3dCommand: function(matrixCommand, x, y, z) {\n matrixCommand[12] = x;\n matrixCommand[13] = y;\n matrixCommand[14] = z;\n },\n\n createScale: function(factor) {\n const mat = MatrixMath.createIdentityMatrix();\n MatrixMath.reuseScaleCommand(mat, factor);\n return mat;\n },\n\n reuseScaleCommand: function(matrixCommand, factor) {\n matrixCommand[0] = factor;\n matrixCommand[5] = factor;\n },\n\n reuseScale3dCommand: function(matrixCommand, x, y, z) {\n matrixCommand[0] = x;\n matrixCommand[5] = y;\n matrixCommand[10] = z;\n },\n\n reusePerspectiveCommand: function(matrixCommand, p) {\n matrixCommand[11] = -1 / p;\n },\n\n reuseScaleXCommand(matrixCommand, factor) {\n matrixCommand[0] = factor;\n },\n\n reuseScaleYCommand(matrixCommand, factor) {\n matrixCommand[5] = factor;\n },\n\n reuseScaleZCommand(matrixCommand, factor) {\n matrixCommand[10] = factor;\n },\n\n reuseRotateXCommand: function(matrixCommand, radians) {\n matrixCommand[5] = Math.cos(radians);\n matrixCommand[6] = Math.sin(radians);\n matrixCommand[9] = -Math.sin(radians);\n matrixCommand[10] = Math.cos(radians);\n },\n\n reuseRotateYCommand: function(matrixCommand, amount) {\n matrixCommand[0] = Math.cos(amount);\n matrixCommand[2] = -Math.sin(amount);\n matrixCommand[8] = Math.sin(amount);\n matrixCommand[10] = Math.cos(amount);\n },\n\n // http://www.w3.org/TR/css3-transforms/#recomposing-to-a-2d-matrix\n reuseRotateZCommand: function(matrixCommand, radians) {\n matrixCommand[0] = Math.cos(radians);\n matrixCommand[1] = Math.sin(radians);\n matrixCommand[4] = -Math.sin(radians);\n matrixCommand[5] = Math.cos(radians);\n },\n\n createRotateZ: function(radians) {\n const mat = MatrixMath.createIdentityMatrix();\n MatrixMath.reuseRotateZCommand(mat, radians);\n return mat;\n },\n\n reuseSkewXCommand: function(matrixCommand, radians) {\n matrixCommand[4] = Math.tan(radians);\n },\n\n reuseSkewYCommand: function(matrixCommand, radians) {\n matrixCommand[1] = Math.tan(radians);\n },\n\n multiplyInto: function(out, a, b) {\n const a00 = a[0],\n a01 = a[1],\n a02 = a[2],\n a03 = a[3],\n a10 = a[4],\n a11 = a[5],\n a12 = a[6],\n a13 = a[7],\n a20 = a[8],\n a21 = a[9],\n a22 = a[10],\n a23 = a[11],\n a30 = a[12],\n a31 = a[13],\n a32 = a[14],\n a33 = a[15];\n\n let b0 = b[0],\n b1 = b[1],\n b2 = b[2],\n b3 = b[3];\n out[0] = b0 * a00 + b1 * a10 + b2 * a20 + b3 * a30;\n out[1] = b0 * a01 + b1 * a11 + b2 * a21 + b3 * a31;\n out[2] = b0 * a02 + b1 * a12 + b2 * a22 + b3 * a32;\n out[3] = b0 * a03 + b1 * a13 + b2 * a23 + b3 * a33;\n\n b0 = b[4];\n b1 = b[5];\n b2 = b[6];\n b3 = b[7];\n out[4] = b0 * a00 + b1 * a10 + b2 * a20 + b3 * a30;\n out[5] = b0 * a01 + b1 * a11 + b2 * a21 + b3 * a31;\n out[6] = b0 * a02 + b1 * a12 + b2 * a22 + b3 * a32;\n out[7] = b0 * a03 + b1 * a13 + b2 * a23 + b3 * a33;\n\n b0 = b[8];\n b1 = b[9];\n b2 = b[10];\n b3 = b[11];\n out[8] = b0 * a00 + b1 * a10 + b2 * a20 + b3 * a30;\n out[9] = b0 * a01 + b1 * a11 + b2 * a21 + b3 * a31;\n out[10] = b0 * a02 + b1 * a12 + b2 * a22 + b3 * a32;\n out[11] = b0 * a03 + b1 * a13 + b2 * a23 + b3 * a33;\n\n b0 = b[12];\n b1 = b[13];\n b2 = b[14];\n b3 = b[15];\n out[12] = b0 * a00 + b1 * a10 + b2 * a20 + b3 * a30;\n out[13] = b0 * a01 + b1 * a11 + b2 * a21 + b3 * a31;\n out[14] = b0 * a02 + b1 * a12 + b2 * a22 + b3 * a32;\n out[15] = b0 * a03 + b1 * a13 + b2 * a23 + b3 * a33;\n },\n\n determinant(matrix: Array): number {\n const [\n m00,\n m01,\n m02,\n m03,\n m10,\n m11,\n m12,\n m13,\n m20,\n m21,\n m22,\n m23,\n m30,\n m31,\n m32,\n m33,\n ] = matrix;\n return (\n m03 * m12 * m21 * m30 -\n m02 * m13 * m21 * m30 -\n m03 * m11 * m22 * m30 +\n m01 * m13 * m22 * m30 +\n m02 * m11 * m23 * m30 -\n m01 * m12 * m23 * m30 -\n m03 * m12 * m20 * m31 +\n m02 * m13 * m20 * m31 +\n m03 * m10 * m22 * m31 -\n m00 * m13 * m22 * m31 -\n m02 * m10 * m23 * m31 +\n m00 * m12 * m23 * m31 +\n m03 * m11 * m20 * m32 -\n m01 * m13 * m20 * m32 -\n m03 * m10 * m21 * m32 +\n m00 * m13 * m21 * m32 +\n m01 * m10 * m23 * m32 -\n m00 * m11 * m23 * m32 -\n m02 * m11 * m20 * m33 +\n m01 * m12 * m20 * m33 +\n m02 * m10 * m21 * m33 -\n m00 * m12 * m21 * m33 -\n m01 * m10 * m22 * m33 +\n m00 * m11 * m22 * m33\n );\n },\n\n /**\n * Inverse of a matrix. Multiplying by the inverse is used in matrix math\n * instead of division.\n *\n * Formula from:\n * http://www.euclideanspace.com/maths/algebra/matrix/functions/inverse/fourD/index.htm\n */\n inverse(matrix: Array): Array {\n const det = MatrixMath.determinant(matrix);\n if (!det) {\n return matrix;\n }\n const [\n m00,\n m01,\n m02,\n m03,\n m10,\n m11,\n m12,\n m13,\n m20,\n m21,\n m22,\n m23,\n m30,\n m31,\n m32,\n m33,\n ] = matrix;\n return [\n (m12 * m23 * m31 -\n m13 * m22 * m31 +\n m13 * m21 * m32 -\n m11 * m23 * m32 -\n m12 * m21 * m33 +\n m11 * m22 * m33) /\n det,\n (m03 * m22 * m31 -\n m02 * m23 * m31 -\n m03 * m21 * m32 +\n m01 * m23 * m32 +\n m02 * m21 * m33 -\n m01 * m22 * m33) /\n det,\n (m02 * m13 * m31 -\n m03 * m12 * m31 +\n m03 * m11 * m32 -\n m01 * m13 * m32 -\n m02 * m11 * m33 +\n m01 * m12 * m33) /\n det,\n (m03 * m12 * m21 -\n m02 * m13 * m21 -\n m03 * m11 * m22 +\n m01 * m13 * m22 +\n m02 * m11 * m23 -\n m01 * m12 * m23) /\n det,\n (m13 * m22 * m30 -\n m12 * m23 * m30 -\n m13 * m20 * m32 +\n m10 * m23 * m32 +\n m12 * m20 * m33 -\n m10 * m22 * m33) /\n det,\n (m02 * m23 * m30 -\n m03 * m22 * m30 +\n m03 * m20 * m32 -\n m00 * m23 * m32 -\n m02 * m20 * m33 +\n m00 * m22 * m33) /\n det,\n (m03 * m12 * m30 -\n m02 * m13 * m30 -\n m03 * m10 * m32 +\n m00 * m13 * m32 +\n m02 * m10 * m33 -\n m00 * m12 * m33) /\n det,\n (m02 * m13 * m20 -\n m03 * m12 * m20 +\n m03 * m10 * m22 -\n m00 * m13 * m22 -\n m02 * m10 * m23 +\n m00 * m12 * m23) /\n det,\n (m11 * m23 * m30 -\n m13 * m21 * m30 +\n m13 * m20 * m31 -\n m10 * m23 * m31 -\n m11 * m20 * m33 +\n m10 * m21 * m33) /\n det,\n (m03 * m21 * m30 -\n m01 * m23 * m30 -\n m03 * m20 * m31 +\n m00 * m23 * m31 +\n m01 * m20 * m33 -\n m00 * m21 * m33) /\n det,\n (m01 * m13 * m30 -\n m03 * m11 * m30 +\n m03 * m10 * m31 -\n m00 * m13 * m31 -\n m01 * m10 * m33 +\n m00 * m11 * m33) /\n det,\n (m03 * m11 * m20 -\n m01 * m13 * m20 -\n m03 * m10 * m21 +\n m00 * m13 * m21 +\n m01 * m10 * m23 -\n m00 * m11 * m23) /\n det,\n (m12 * m21 * m30 -\n m11 * m22 * m30 -\n m12 * m20 * m31 +\n m10 * m22 * m31 +\n m11 * m20 * m32 -\n m10 * m21 * m32) /\n det,\n (m01 * m22 * m30 -\n m02 * m21 * m30 +\n m02 * m20 * m31 -\n m00 * m22 * m31 -\n m01 * m20 * m32 +\n m00 * m21 * m32) /\n det,\n (m02 * m11 * m30 -\n m01 * m12 * m30 -\n m02 * m10 * m31 +\n m00 * m12 * m31 +\n m01 * m10 * m32 -\n m00 * m11 * m32) /\n det,\n (m01 * m12 * m20 -\n m02 * m11 * m20 +\n m02 * m10 * m21 -\n m00 * m12 * m21 -\n m01 * m10 * m22 +\n m00 * m11 * m22) /\n det,\n ];\n },\n\n /**\n * Turns columns into rows and rows into columns.\n */\n transpose(m: Array): Array {\n return [\n m[0],\n m[4],\n m[8],\n m[12],\n m[1],\n m[5],\n m[9],\n m[13],\n m[2],\n m[6],\n m[10],\n m[14],\n m[3],\n m[7],\n m[11],\n m[15],\n ];\n },\n\n /**\n * Based on: http://tog.acm.org/resources/GraphicsGems/gemsii/unmatrix.c\n */\n multiplyVectorByMatrix(v: Array, m: Array): Array {\n const [vx, vy, vz, vw] = v;\n return [\n vx * m[0] + vy * m[4] + vz * m[8] + vw * m[12],\n vx * m[1] + vy * m[5] + vz * m[9] + vw * m[13],\n vx * m[2] + vy * m[6] + vz * m[10] + vw * m[14],\n vx * m[3] + vy * m[7] + vz * m[11] + vw * m[15],\n ];\n },\n\n /**\n * From: https://code.google.com/p/webgl-mjs/source/browse/mjs.js\n */\n v3Length(a: Array): number {\n return Math.sqrt(a[0] * a[0] + a[1] * a[1] + a[2] * a[2]);\n },\n\n /**\n * Based on: https://code.google.com/p/webgl-mjs/source/browse/mjs.js\n */\n v3Normalize(vector: Array, v3Length: number): Array {\n const im = 1 / (v3Length || MatrixMath.v3Length(vector));\n return [vector[0] * im, vector[1] * im, vector[2] * im];\n },\n\n /**\n * The dot product of a and b, two 3-element vectors.\n * From: https://code.google.com/p/webgl-mjs/source/browse/mjs.js\n */\n v3Dot(a, b) {\n return a[0] * b[0] + a[1] * b[1] + a[2] * b[2];\n },\n\n /**\n * From:\n * http://www.opensource.apple.com/source/WebCore/WebCore-514/platform/graphics/transforms/TransformationMatrix.cpp\n */\n v3Combine(\n a: Array,\n b: Array,\n aScale: number,\n bScale: number,\n ): Array {\n return [\n aScale * a[0] + bScale * b[0],\n aScale * a[1] + bScale * b[1],\n aScale * a[2] + bScale * b[2],\n ];\n },\n\n /**\n * From:\n * http://www.opensource.apple.com/source/WebCore/WebCore-514/platform/graphics/transforms/TransformationMatrix.cpp\n */\n v3Cross(a: Array, b: Array): Array {\n return [\n a[1] * b[2] - a[2] * b[1],\n a[2] * b[0] - a[0] * b[2],\n a[0] * b[1] - a[1] * b[0],\n ];\n },\n\n /**\n * Based on:\n * http://www.euclideanspace.com/maths/geometry/rotations/conversions/quaternionToEuler/\n * and:\n * http://quat.zachbennett.com/\n *\n * Note that this rounds degrees to the thousandth of a degree, due to\n * floating point errors in the creation of the quaternion.\n *\n * Also note that this expects the qw value to be last, not first.\n *\n * Also, when researching this, remember that:\n * yaw === heading === z-axis\n * pitch === elevation/attitude === y-axis\n * roll === bank === x-axis\n */\n quaternionToDegreesXYZ(q: Array, matrix, row): Array {\n const [qx, qy, qz, qw] = q;\n const qw2 = qw * qw;\n const qx2 = qx * qx;\n const qy2 = qy * qy;\n const qz2 = qz * qz;\n const test = qx * qy + qz * qw;\n const unit = qw2 + qx2 + qy2 + qz2;\n const conv = 180 / Math.PI;\n\n if (test > 0.49999 * unit) {\n return [0, 2 * Math.atan2(qx, qw) * conv, 90];\n }\n if (test < -0.49999 * unit) {\n return [0, -2 * Math.atan2(qx, qw) * conv, -90];\n }\n\n return [\n MatrixMath.roundTo3Places(\n Math.atan2(2 * qx * qw - 2 * qy * qz, 1 - 2 * qx2 - 2 * qz2) * conv,\n ),\n MatrixMath.roundTo3Places(\n Math.atan2(2 * qy * qw - 2 * qx * qz, 1 - 2 * qy2 - 2 * qz2) * conv,\n ),\n MatrixMath.roundTo3Places(Math.asin(2 * qx * qy + 2 * qz * qw) * conv),\n ];\n },\n\n /**\n * Based on:\n * https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/round\n */\n roundTo3Places(n: number): number {\n const arr = n.toString().split('e');\n return Math.round(arr[0] + 'e' + (arr[1] ? +arr[1] - 3 : 3)) * 0.001;\n },\n\n /**\n * Decompose a matrix into separate transform values, for use on platforms\n * where applying a precomposed matrix is not possible, and transforms are\n * applied in an inflexible ordering (e.g. Android).\n *\n * Implementation based on\n * http://www.w3.org/TR/css3-transforms/#decomposing-a-2d-matrix\n * http://www.w3.org/TR/css3-transforms/#decomposing-a-3d-matrix\n * which was based on\n * http://tog.acm.org/resources/GraphicsGems/gemsii/unmatrix.c\n */\n decomposeMatrix(transformMatrix: Array): ?Object {\n invariant(\n transformMatrix.length === 16,\n 'Matrix decomposition needs a list of 3d matrix values, received %s',\n transformMatrix,\n );\n\n // output values\n var perspective = [];\n const quaternion = [];\n const scale = [];\n const skew = [];\n const translation = [];\n\n // create normalized, 2d array matrix\n // and normalized 1d array perspectiveMatrix with redefined 4th column\n if (!transformMatrix[15]) {\n return;\n }\n const matrix = [];\n const perspectiveMatrix = [];\n for (var i = 0; i < 4; i++) {\n matrix.push([]);\n for (let j = 0; j < 4; j++) {\n const value = transformMatrix[i * 4 + j] / transformMatrix[15];\n matrix[i].push(value);\n perspectiveMatrix.push(j === 3 ? 0 : value);\n }\n }\n perspectiveMatrix[15] = 1;\n\n // test for singularity of upper 3x3 part of the perspective matrix\n if (!MatrixMath.determinant(perspectiveMatrix)) {\n return;\n }\n\n // isolate perspective\n if (matrix[0][3] !== 0 || matrix[1][3] !== 0 || matrix[2][3] !== 0) {\n // rightHandSide is the right hand side of the equation.\n // rightHandSide is a vector, or point in 3d space relative to the origin.\n const rightHandSide = [\n matrix[0][3],\n matrix[1][3],\n matrix[2][3],\n matrix[3][3],\n ];\n\n // Solve the equation by inverting perspectiveMatrix and multiplying\n // rightHandSide by the inverse.\n const inversePerspectiveMatrix = MatrixMath.inverse(perspectiveMatrix);\n const transposedInversePerspectiveMatrix = MatrixMath.transpose(\n inversePerspectiveMatrix,\n );\n var perspective = MatrixMath.multiplyVectorByMatrix(\n rightHandSide,\n transposedInversePerspectiveMatrix,\n );\n } else {\n // no perspective\n perspective[0] = perspective[1] = perspective[2] = 0;\n perspective[3] = 1;\n }\n\n // translation is simple\n for (var i = 0; i < 3; i++) {\n translation[i] = matrix[3][i];\n }\n\n // Now get scale and shear.\n // 'row' is a 3 element array of 3 component vectors\n const row = [];\n for (i = 0; i < 3; i++) {\n row[i] = [matrix[i][0], matrix[i][1], matrix[i][2]];\n }\n\n // Compute X scale factor and normalize first row.\n scale[0] = MatrixMath.v3Length(row[0]);\n row[0] = MatrixMath.v3Normalize(row[0], scale[0]);\n\n // Compute XY shear factor and make 2nd row orthogonal to 1st.\n skew[0] = MatrixMath.v3Dot(row[0], row[1]);\n row[1] = MatrixMath.v3Combine(row[1], row[0], 1.0, -skew[0]);\n\n // Compute XY shear factor and make 2nd row orthogonal to 1st.\n skew[0] = MatrixMath.v3Dot(row[0], row[1]);\n row[1] = MatrixMath.v3Combine(row[1], row[0], 1.0, -skew[0]);\n\n // Now, compute Y scale and normalize 2nd row.\n scale[1] = MatrixMath.v3Length(row[1]);\n row[1] = MatrixMath.v3Normalize(row[1], scale[1]);\n skew[0] /= scale[1];\n\n // Compute XZ and YZ shears, orthogonalize 3rd row\n skew[1] = MatrixMath.v3Dot(row[0], row[2]);\n row[2] = MatrixMath.v3Combine(row[2], row[0], 1.0, -skew[1]);\n skew[2] = MatrixMath.v3Dot(row[1], row[2]);\n row[2] = MatrixMath.v3Combine(row[2], row[1], 1.0, -skew[2]);\n\n // Next, get Z scale and normalize 3rd row.\n scale[2] = MatrixMath.v3Length(row[2]);\n row[2] = MatrixMath.v3Normalize(row[2], scale[2]);\n skew[1] /= scale[2];\n skew[2] /= scale[2];\n\n // At this point, the matrix (in rows) is orthonormal.\n // Check for a coordinate system flip. If the determinant\n // is -1, then negate the matrix and the scaling factors.\n const pdum3 = MatrixMath.v3Cross(row[1], row[2]);\n if (MatrixMath.v3Dot(row[0], pdum3) < 0) {\n for (i = 0; i < 3; i++) {\n scale[i] *= -1;\n row[i][0] *= -1;\n row[i][1] *= -1;\n row[i][2] *= -1;\n }\n }\n\n // Now, get the rotations out\n quaternion[0] =\n 0.5 * Math.sqrt(Math.max(1 + row[0][0] - row[1][1] - row[2][2], 0));\n quaternion[1] =\n 0.5 * Math.sqrt(Math.max(1 - row[0][0] + row[1][1] - row[2][2], 0));\n quaternion[2] =\n 0.5 * Math.sqrt(Math.max(1 - row[0][0] - row[1][1] + row[2][2], 0));\n quaternion[3] =\n 0.5 * Math.sqrt(Math.max(1 + row[0][0] + row[1][1] + row[2][2], 0));\n\n if (row[2][1] > row[1][2]) {\n quaternion[0] = -quaternion[0];\n }\n if (row[0][2] > row[2][0]) {\n quaternion[1] = -quaternion[1];\n }\n if (row[1][0] > row[0][1]) {\n quaternion[2] = -quaternion[2];\n }\n\n // correct for occasional, weird Euler synonyms for 2d rotation\n let rotationDegrees;\n if (\n quaternion[0] < 0.001 &&\n quaternion[0] >= 0 &&\n quaternion[1] < 0.001 &&\n quaternion[1] >= 0\n ) {\n // this is a 2d rotation on the z-axis\n rotationDegrees = [\n 0,\n 0,\n MatrixMath.roundTo3Places(\n (Math.atan2(row[0][1], row[0][0]) * 180) / Math.PI,\n ),\n ];\n } else {\n rotationDegrees = MatrixMath.quaternionToDegreesXYZ(\n quaternion,\n matrix,\n row,\n );\n }\n\n // expose both base data and convenience names\n return {\n rotationDegrees,\n perspective,\n quaternion,\n scale,\n skew,\n translation,\n\n rotate: rotationDegrees[2],\n rotateX: rotationDegrees[0],\n rotateY: rotationDegrees[1],\n scaleX: scale[0],\n scaleY: scale[1],\n translateX: translation[0],\n translateY: translation[1],\n };\n },\n};\n\nmodule.exports = MatrixMath;\n","/**\n * Copyright (c) 2015-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n */\n\n'use strict';\n\nconst dummySize = {width: undefined, height: undefined};\n\nconst sizesDiffer = function(one, two) {\n one = one || dummySize;\n two = two || dummySize;\n return one !== two && (one.width !== two.width || one.height !== two.height);\n};\n\nmodule.exports = sizesDiffer;\n","/**\n * Copyright (c) 2015-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n * @flow\n */\n\n'use strict';\n\nconst ImageStylePropTypes = require('ImageStylePropTypes');\nconst TextStylePropTypes = require('TextStylePropTypes');\nconst ViewStylePropTypes = require('ViewStylePropTypes');\n\nconst invariant = require('fbjs/lib/invariant');\n\n// Hardcoded because this is a legit case but we don't want to load it from\n// a private API. We might likely want to unify style sheet creation with how it\n// is done in the DOM so this might move into React. I know what I'm doing so\n// plz don't fire me.\nconst ReactPropTypesSecret = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED';\n\nclass StyleSheetValidation {\n static validateStyleProp(prop: string, style: Object, caller: string) {\n if (!__DEV__) {\n return;\n }\n if (allStylePropTypes[prop] === undefined) {\n const message1 = '\"' + prop + '\" is not a valid style property.';\n const message2 =\n '\\nValid style props: ' +\n JSON.stringify(Object.keys(allStylePropTypes).sort(), null, ' ');\n styleError(message1, style, caller, message2);\n }\n const error = allStylePropTypes[prop](\n style,\n prop,\n caller,\n 'prop',\n null,\n ReactPropTypesSecret,\n );\n if (error) {\n styleError(error.message, style, caller);\n }\n }\n\n static validateStyle(name: string, styles: Object) {\n if (!__DEV__) {\n return;\n }\n for (const prop in styles[name]) {\n StyleSheetValidation.validateStyleProp(\n prop,\n styles[name],\n 'StyleSheet ' + name,\n );\n }\n }\n\n static addValidStylePropTypes(stylePropTypes) {\n for (const key in stylePropTypes) {\n allStylePropTypes[key] = stylePropTypes[key];\n }\n }\n}\n\nconst styleError = function(message1, style, caller?, message2?) {\n invariant(\n false,\n message1 +\n '\\n' +\n (caller || '<>') +\n ': ' +\n JSON.stringify(style, null, ' ') +\n (message2 || ''),\n );\n};\n\nconst allStylePropTypes = {};\n\nStyleSheetValidation.addValidStylePropTypes(ImageStylePropTypes);\nStyleSheetValidation.addValidStylePropTypes(TextStylePropTypes);\nStyleSheetValidation.addValidStylePropTypes(ViewStylePropTypes);\n\nmodule.exports = StyleSheetValidation;\n","/**\n * Copyright (c) 2015-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @flow strict-local\n * @format\n */\n'use strict';\n\nimport type {\n DangerouslyImpreciseStyle,\n DangerouslyImpreciseStyleProp,\n} from 'StyleSheet';\n\nfunction flattenStyle(\n style: ?DangerouslyImpreciseStyleProp,\n): ?DangerouslyImpreciseStyle {\n if (style === null || typeof style !== 'object') {\n return undefined;\n }\n\n if (!Array.isArray(style)) {\n return style;\n }\n\n const result = {};\n for (let i = 0, styleLength = style.length; i < styleLength; ++i) {\n const computedStyle = flattenStyle(style[i]);\n if (computedStyle) {\n for (const key in computedStyle) {\n result[key] = computedStyle[key];\n }\n }\n }\n return result;\n}\n\nmodule.exports = flattenStyle;\n","/**\n * Copyright (c) 2015-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n * @flow strict-local\n */\n\n'use strict';\n\nconst React = require('React');\nconst TextAncestor = require('TextAncestor');\nconst ViewNativeComponent = require('ViewNativeComponent');\n\nconst invariant = require('fbjs/lib/invariant');\n\nimport type {ViewProps} from 'ViewPropTypes';\n\nexport type Props = ViewProps;\n\n/**\n * The most fundamental component for building a UI, View is a container that\n * supports layout with flexbox, style, some touch handling, and accessibility\n * controls.\n *\n * @see http://facebook.github.io/react-native/docs/view.html\n */\n\nlet ViewToExport = ViewNativeComponent;\nif (__DEV__) {\n if (!global.__RCTProfileIsProfiling) {\n const View = (\n props: Props,\n forwardedRef: React.Ref,\n ) => {\n return (\n \n {hasTextAncestor => {\n invariant(\n !hasTextAncestor,\n 'Nesting of within is not currently supported.',\n );\n return ;\n }}\n \n );\n };\n // $FlowFixMe - TODO T29156721 `React.forwardRef` is not defined in Flow, yet.\n ViewToExport = React.forwardRef(View);\n ViewToExport.displayName = 'View';\n }\n}\n\nmodule.exports = ((ViewToExport: $FlowFixMe): typeof ViewNativeComponent);\n","/**\n * Copyright (c) 2015-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @flow strict\n * @format\n */\n\n'use strict';\n\nconst React = require('React');\n\n/**\n * Whether the current element is the descendant of a element.\n */\nmodule.exports = React.createContext(false);\n","/**\n * Copyright (c) 2015-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n * @flow\n */\n\n'use strict';\n\nconst ReactNative = require('ReactNative');\n\nconst requireNativeComponent = require('requireNativeComponent');\n\nimport type {ViewProps} from 'ViewPropTypes';\n\ntype ViewNativeComponentType = Class>;\n\nconst NativeViewComponent = requireNativeComponent('RCTView');\n\nmodule.exports = ((NativeViewComponent: any): ViewNativeComponentType);\n","/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n * @flow\n */\n\n'use strict';\n\nimport type {ReactNativeType} from 'ReactNativeTypes';\n\nlet ReactNative;\n\nif (__DEV__) {\n ReactNative = require('ReactNativeRenderer-dev');\n} else {\n ReactNative = require('ReactNativeRenderer-prod');\n}\n\nmodule.exports = (ReactNative: ReactNativeType);\n","/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @noflow\n * @providesModule ReactNativeRenderer-prod\n * @preventMunge\n * @generated\n */\n\n\"use strict\";\nrequire(\"InitializeCore\");\nvar ReactNativeViewConfigRegistry = require(\"ReactNativeViewConfigRegistry\"),\n UIManager = require(\"UIManager\"),\n RCTEventEmitter = require(\"RCTEventEmitter\"),\n React = require(\"react\"),\n deepDiffer = require(\"deepDiffer\"),\n flattenStyle = require(\"flattenStyle\"),\n TextInputState = require(\"TextInputState\");\nvar scheduler = require(\"scheduler\"),\n ExceptionsManager = require(\"ExceptionsManager\");\nfunction invariant(condition, format, a, b, c, d, e, f) {\n if (!condition) {\n condition = void 0;\n if (void 0 === format)\n condition = Error(\n \"Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.\"\n );\n else {\n var args = [a, b, c, d, e, f],\n argIndex = 0;\n condition = Error(\n format.replace(/%s/g, function() {\n return args[argIndex++];\n })\n );\n condition.name = \"Invariant Violation\";\n }\n condition.framesToPop = 1;\n throw condition;\n }\n}\nfunction invokeGuardedCallbackImpl(name, func, context, a, b, c, d, e, f) {\n var funcArgs = Array.prototype.slice.call(arguments, 3);\n try {\n func.apply(context, funcArgs);\n } catch (error) {\n this.onError(error);\n }\n}\nvar hasError = !1,\n caughtError = null,\n hasRethrowError = !1,\n rethrowError = null,\n reporter = {\n onError: function(error) {\n hasError = !0;\n caughtError = error;\n }\n };\nfunction invokeGuardedCallback(name, func, context, a, b, c, d, e, f) {\n hasError = !1;\n caughtError = null;\n invokeGuardedCallbackImpl.apply(reporter, arguments);\n}\nfunction invokeGuardedCallbackAndCatchFirstError(\n name,\n func,\n context,\n a,\n b,\n c,\n d,\n e,\n f\n) {\n invokeGuardedCallback.apply(this, arguments);\n if (hasError) {\n if (hasError) {\n var error = caughtError;\n hasError = !1;\n caughtError = null;\n } else\n invariant(\n !1,\n \"clearCaughtError was called but no error was captured. This error is likely caused by a bug in React. Please file an issue.\"\n ),\n (error = void 0);\n hasRethrowError || ((hasRethrowError = !0), (rethrowError = error));\n }\n}\nvar eventPluginOrder = null,\n namesToPlugins = {};\nfunction recomputePluginOrdering() {\n if (eventPluginOrder)\n for (var pluginName in namesToPlugins) {\n var pluginModule = namesToPlugins[pluginName],\n pluginIndex = eventPluginOrder.indexOf(pluginName);\n invariant(\n -1 < pluginIndex,\n \"EventPluginRegistry: Cannot inject event plugins that do not exist in the plugin ordering, `%s`.\",\n pluginName\n );\n if (!plugins[pluginIndex]) {\n invariant(\n pluginModule.extractEvents,\n \"EventPluginRegistry: Event plugins must implement an `extractEvents` method, but `%s` does not.\",\n pluginName\n );\n plugins[pluginIndex] = pluginModule;\n pluginIndex = pluginModule.eventTypes;\n for (var eventName in pluginIndex) {\n var JSCompiler_inline_result = void 0;\n var dispatchConfig = pluginIndex[eventName],\n pluginModule$jscomp$0 = pluginModule,\n eventName$jscomp$0 = eventName;\n invariant(\n !eventNameDispatchConfigs.hasOwnProperty(eventName$jscomp$0),\n \"EventPluginHub: More than one plugin attempted to publish the same event name, `%s`.\",\n eventName$jscomp$0\n );\n eventNameDispatchConfigs[eventName$jscomp$0] = dispatchConfig;\n var phasedRegistrationNames = dispatchConfig.phasedRegistrationNames;\n if (phasedRegistrationNames) {\n for (JSCompiler_inline_result in phasedRegistrationNames)\n phasedRegistrationNames.hasOwnProperty(\n JSCompiler_inline_result\n ) &&\n publishRegistrationName(\n phasedRegistrationNames[JSCompiler_inline_result],\n pluginModule$jscomp$0,\n eventName$jscomp$0\n );\n JSCompiler_inline_result = !0;\n } else\n dispatchConfig.registrationName\n ? (publishRegistrationName(\n dispatchConfig.registrationName,\n pluginModule$jscomp$0,\n eventName$jscomp$0\n ),\n (JSCompiler_inline_result = !0))\n : (JSCompiler_inline_result = !1);\n invariant(\n JSCompiler_inline_result,\n \"EventPluginRegistry: Failed to publish event `%s` for plugin `%s`.\",\n eventName,\n pluginName\n );\n }\n }\n }\n}\nfunction publishRegistrationName(registrationName, pluginModule) {\n invariant(\n !registrationNameModules[registrationName],\n \"EventPluginHub: More than one plugin attempted to publish the same registration name, `%s`.\",\n registrationName\n );\n registrationNameModules[registrationName] = pluginModule;\n}\nvar plugins = [],\n eventNameDispatchConfigs = {},\n registrationNameModules = {},\n getFiberCurrentPropsFromNode = null,\n getInstanceFromNode = null,\n getNodeFromInstance = null;\nfunction executeDispatch(event, listener, inst) {\n var type = event.type || \"unknown-event\";\n event.currentTarget = getNodeFromInstance(inst);\n invokeGuardedCallbackAndCatchFirstError(type, listener, void 0, event);\n event.currentTarget = null;\n}\nfunction executeDirectDispatch(event) {\n var dispatchListener = event._dispatchListeners,\n dispatchInstance = event._dispatchInstances;\n invariant(\n !Array.isArray(dispatchListener),\n \"executeDirectDispatch(...): Invalid `event`.\"\n );\n event.currentTarget = dispatchListener\n ? getNodeFromInstance(dispatchInstance)\n : null;\n dispatchListener = dispatchListener ? dispatchListener(event) : null;\n event.currentTarget = null;\n event._dispatchListeners = null;\n event._dispatchInstances = null;\n return dispatchListener;\n}\nfunction accumulateInto(current, next) {\n invariant(\n null != next,\n \"accumulateInto(...): Accumulated items must not be null or undefined.\"\n );\n if (null == current) return next;\n if (Array.isArray(current)) {\n if (Array.isArray(next)) return current.push.apply(current, next), current;\n current.push(next);\n return current;\n }\n return Array.isArray(next) ? [current].concat(next) : [current, next];\n}\nfunction forEachAccumulated(arr, cb, scope) {\n Array.isArray(arr) ? arr.forEach(cb, scope) : arr && cb.call(scope, arr);\n}\nvar eventQueue = null;\nfunction executeDispatchesAndReleaseTopLevel(e) {\n if (e) {\n var dispatchListeners = e._dispatchListeners,\n dispatchInstances = e._dispatchInstances;\n if (Array.isArray(dispatchListeners))\n for (\n var i = 0;\n i < dispatchListeners.length && !e.isPropagationStopped();\n i++\n )\n executeDispatch(e, dispatchListeners[i], dispatchInstances[i]);\n else\n dispatchListeners &&\n executeDispatch(e, dispatchListeners, dispatchInstances);\n e._dispatchListeners = null;\n e._dispatchInstances = null;\n e.isPersistent() || e.constructor.release(e);\n }\n}\nvar injection = {\n injectEventPluginOrder: function(injectedEventPluginOrder) {\n invariant(\n !eventPluginOrder,\n \"EventPluginRegistry: Cannot inject event plugin ordering more than once. You are likely trying to load more than one copy of React.\"\n );\n eventPluginOrder = Array.prototype.slice.call(injectedEventPluginOrder);\n recomputePluginOrdering();\n },\n injectEventPluginsByName: function(injectedNamesToPlugins) {\n var isOrderingDirty = !1,\n pluginName;\n for (pluginName in injectedNamesToPlugins)\n if (injectedNamesToPlugins.hasOwnProperty(pluginName)) {\n var pluginModule = injectedNamesToPlugins[pluginName];\n (namesToPlugins.hasOwnProperty(pluginName) &&\n namesToPlugins[pluginName] === pluginModule) ||\n (invariant(\n !namesToPlugins[pluginName],\n \"EventPluginRegistry: Cannot inject two different event plugins using the same name, `%s`.\",\n pluginName\n ),\n (namesToPlugins[pluginName] = pluginModule),\n (isOrderingDirty = !0));\n }\n isOrderingDirty && recomputePluginOrdering();\n }\n};\nfunction getListener(inst, registrationName) {\n var listener = inst.stateNode;\n if (!listener) return null;\n var props = getFiberCurrentPropsFromNode(listener);\n if (!props) return null;\n listener = props[registrationName];\n a: switch (registrationName) {\n case \"onClick\":\n case \"onClickCapture\":\n case \"onDoubleClick\":\n case \"onDoubleClickCapture\":\n case \"onMouseDown\":\n case \"onMouseDownCapture\":\n case \"onMouseMove\":\n case \"onMouseMoveCapture\":\n case \"onMouseUp\":\n case \"onMouseUpCapture\":\n (props = !props.disabled) ||\n ((inst = inst.type),\n (props = !(\n \"button\" === inst ||\n \"input\" === inst ||\n \"select\" === inst ||\n \"textarea\" === inst\n )));\n inst = !props;\n break a;\n default:\n inst = !1;\n }\n if (inst) return null;\n invariant(\n !listener || \"function\" === typeof listener,\n \"Expected `%s` listener to be a function, instead got a value of `%s` type.\",\n registrationName,\n typeof listener\n );\n return listener;\n}\nfunction getParent(inst) {\n do inst = inst.return;\n while (inst && 5 !== inst.tag);\n return inst ? inst : null;\n}\nfunction traverseTwoPhase(inst, fn, arg) {\n for (var path = []; inst; ) path.push(inst), (inst = getParent(inst));\n for (inst = path.length; 0 < inst--; ) fn(path[inst], \"captured\", arg);\n for (inst = 0; inst < path.length; inst++) fn(path[inst], \"bubbled\", arg);\n}\nfunction accumulateDirectionalDispatches(inst, phase, event) {\n if (\n (phase = getListener(\n inst,\n event.dispatchConfig.phasedRegistrationNames[phase]\n ))\n )\n (event._dispatchListeners = accumulateInto(\n event._dispatchListeners,\n phase\n )),\n (event._dispatchInstances = accumulateInto(\n event._dispatchInstances,\n inst\n ));\n}\nfunction accumulateTwoPhaseDispatchesSingle(event) {\n event &&\n event.dispatchConfig.phasedRegistrationNames &&\n traverseTwoPhase(event._targetInst, accumulateDirectionalDispatches, event);\n}\nfunction accumulateTwoPhaseDispatchesSingleSkipTarget(event) {\n if (event && event.dispatchConfig.phasedRegistrationNames) {\n var targetInst = event._targetInst;\n targetInst = targetInst ? getParent(targetInst) : null;\n traverseTwoPhase(targetInst, accumulateDirectionalDispatches, event);\n }\n}\nfunction accumulateDirectDispatchesSingle(event) {\n if (event && event.dispatchConfig.registrationName) {\n var inst = event._targetInst;\n if (inst && event && event.dispatchConfig.registrationName) {\n var listener = getListener(inst, event.dispatchConfig.registrationName);\n listener &&\n ((event._dispatchListeners = accumulateInto(\n event._dispatchListeners,\n listener\n )),\n (event._dispatchInstances = accumulateInto(\n event._dispatchInstances,\n inst\n )));\n }\n }\n}\nfunction functionThatReturnsTrue() {\n return !0;\n}\nfunction functionThatReturnsFalse() {\n return !1;\n}\nfunction SyntheticEvent(\n dispatchConfig,\n targetInst,\n nativeEvent,\n nativeEventTarget\n) {\n this.dispatchConfig = dispatchConfig;\n this._targetInst = targetInst;\n this.nativeEvent = nativeEvent;\n dispatchConfig = this.constructor.Interface;\n for (var propName in dispatchConfig)\n dispatchConfig.hasOwnProperty(propName) &&\n ((targetInst = dispatchConfig[propName])\n ? (this[propName] = targetInst(nativeEvent))\n : \"target\" === propName\n ? (this.target = nativeEventTarget)\n : (this[propName] = nativeEvent[propName]));\n this.isDefaultPrevented = (null != nativeEvent.defaultPrevented\n ? nativeEvent.defaultPrevented\n : !1 === nativeEvent.returnValue)\n ? functionThatReturnsTrue\n : functionThatReturnsFalse;\n this.isPropagationStopped = functionThatReturnsFalse;\n return this;\n}\nObject.assign(SyntheticEvent.prototype, {\n preventDefault: function() {\n this.defaultPrevented = !0;\n var event = this.nativeEvent;\n event &&\n (event.preventDefault\n ? event.preventDefault()\n : \"unknown\" !== typeof event.returnValue && (event.returnValue = !1),\n (this.isDefaultPrevented = functionThatReturnsTrue));\n },\n stopPropagation: function() {\n var event = this.nativeEvent;\n event &&\n (event.stopPropagation\n ? event.stopPropagation()\n : \"unknown\" !== typeof event.cancelBubble && (event.cancelBubble = !0),\n (this.isPropagationStopped = functionThatReturnsTrue));\n },\n persist: function() {\n this.isPersistent = functionThatReturnsTrue;\n },\n isPersistent: functionThatReturnsFalse,\n destructor: function() {\n var Interface = this.constructor.Interface,\n propName;\n for (propName in Interface) this[propName] = null;\n this.nativeEvent = this._targetInst = this.dispatchConfig = null;\n this.isPropagationStopped = this.isDefaultPrevented = functionThatReturnsFalse;\n this._dispatchInstances = this._dispatchListeners = null;\n }\n});\nSyntheticEvent.Interface = {\n type: null,\n target: null,\n currentTarget: function() {\n return null;\n },\n eventPhase: null,\n bubbles: null,\n cancelable: null,\n timeStamp: function(event) {\n return event.timeStamp || Date.now();\n },\n defaultPrevented: null,\n isTrusted: null\n};\nSyntheticEvent.extend = function(Interface) {\n function E() {}\n function Class() {\n return Super.apply(this, arguments);\n }\n var Super = this;\n E.prototype = Super.prototype;\n var prototype = new E();\n Object.assign(prototype, Class.prototype);\n Class.prototype = prototype;\n Class.prototype.constructor = Class;\n Class.Interface = Object.assign({}, Super.Interface, Interface);\n Class.extend = Super.extend;\n addEventPoolingTo(Class);\n return Class;\n};\naddEventPoolingTo(SyntheticEvent);\nfunction getPooledEvent(dispatchConfig, targetInst, nativeEvent, nativeInst) {\n if (this.eventPool.length) {\n var instance = this.eventPool.pop();\n this.call(instance, dispatchConfig, targetInst, nativeEvent, nativeInst);\n return instance;\n }\n return new this(dispatchConfig, targetInst, nativeEvent, nativeInst);\n}\nfunction releasePooledEvent(event) {\n invariant(\n event instanceof this,\n \"Trying to release an event instance into a pool of a different type.\"\n );\n event.destructor();\n 10 > this.eventPool.length && this.eventPool.push(event);\n}\nfunction addEventPoolingTo(EventConstructor) {\n EventConstructor.eventPool = [];\n EventConstructor.getPooled = getPooledEvent;\n EventConstructor.release = releasePooledEvent;\n}\nvar ResponderSyntheticEvent = SyntheticEvent.extend({\n touchHistory: function() {\n return null;\n }\n});\nfunction isStartish(topLevelType) {\n return \"topTouchStart\" === topLevelType;\n}\nfunction isMoveish(topLevelType) {\n return \"topTouchMove\" === topLevelType;\n}\nvar startDependencies = [\"topTouchStart\"],\n moveDependencies = [\"topTouchMove\"],\n endDependencies = [\"topTouchCancel\", \"topTouchEnd\"],\n touchBank = [],\n touchHistory = {\n touchBank: touchBank,\n numberActiveTouches: 0,\n indexOfSingleActiveTouch: -1,\n mostRecentTimeStamp: 0\n };\nfunction timestampForTouch(touch) {\n return touch.timeStamp || touch.timestamp;\n}\nfunction getTouchIdentifier(_ref) {\n _ref = _ref.identifier;\n invariant(null != _ref, \"Touch object is missing identifier.\");\n return _ref;\n}\nfunction recordTouchStart(touch) {\n var identifier = getTouchIdentifier(touch),\n touchRecord = touchBank[identifier];\n touchRecord\n ? ((touchRecord.touchActive = !0),\n (touchRecord.startPageX = touch.pageX),\n (touchRecord.startPageY = touch.pageY),\n (touchRecord.startTimeStamp = timestampForTouch(touch)),\n (touchRecord.currentPageX = touch.pageX),\n (touchRecord.currentPageY = touch.pageY),\n (touchRecord.currentTimeStamp = timestampForTouch(touch)),\n (touchRecord.previousPageX = touch.pageX),\n (touchRecord.previousPageY = touch.pageY),\n (touchRecord.previousTimeStamp = timestampForTouch(touch)))\n : ((touchRecord = {\n touchActive: !0,\n startPageX: touch.pageX,\n startPageY: touch.pageY,\n startTimeStamp: timestampForTouch(touch),\n currentPageX: touch.pageX,\n currentPageY: touch.pageY,\n currentTimeStamp: timestampForTouch(touch),\n previousPageX: touch.pageX,\n previousPageY: touch.pageY,\n previousTimeStamp: timestampForTouch(touch)\n }),\n (touchBank[identifier] = touchRecord));\n touchHistory.mostRecentTimeStamp = timestampForTouch(touch);\n}\nfunction recordTouchMove(touch) {\n var touchRecord = touchBank[getTouchIdentifier(touch)];\n touchRecord\n ? ((touchRecord.touchActive = !0),\n (touchRecord.previousPageX = touchRecord.currentPageX),\n (touchRecord.previousPageY = touchRecord.currentPageY),\n (touchRecord.previousTimeStamp = touchRecord.currentTimeStamp),\n (touchRecord.currentPageX = touch.pageX),\n (touchRecord.currentPageY = touch.pageY),\n (touchRecord.currentTimeStamp = timestampForTouch(touch)),\n (touchHistory.mostRecentTimeStamp = timestampForTouch(touch)))\n : console.error(\n \"Cannot record touch move without a touch start.\\nTouch Move: %s\\n\",\n \"Touch Bank: %s\",\n printTouch(touch),\n printTouchBank()\n );\n}\nfunction recordTouchEnd(touch) {\n var touchRecord = touchBank[getTouchIdentifier(touch)];\n touchRecord\n ? ((touchRecord.touchActive = !1),\n (touchRecord.previousPageX = touchRecord.currentPageX),\n (touchRecord.previousPageY = touchRecord.currentPageY),\n (touchRecord.previousTimeStamp = touchRecord.currentTimeStamp),\n (touchRecord.currentPageX = touch.pageX),\n (touchRecord.currentPageY = touch.pageY),\n (touchRecord.currentTimeStamp = timestampForTouch(touch)),\n (touchHistory.mostRecentTimeStamp = timestampForTouch(touch)))\n : console.error(\n \"Cannot record touch end without a touch start.\\nTouch End: %s\\n\",\n \"Touch Bank: %s\",\n printTouch(touch),\n printTouchBank()\n );\n}\nfunction printTouch(touch) {\n return JSON.stringify({\n identifier: touch.identifier,\n pageX: touch.pageX,\n pageY: touch.pageY,\n timestamp: timestampForTouch(touch)\n });\n}\nfunction printTouchBank() {\n var printed = JSON.stringify(touchBank.slice(0, 20));\n 20 < touchBank.length &&\n (printed += \" (original size: \" + touchBank.length + \")\");\n return printed;\n}\nvar ResponderTouchHistoryStore = {\n recordTouchTrack: function(topLevelType, nativeEvent) {\n if (isMoveish(topLevelType))\n nativeEvent.changedTouches.forEach(recordTouchMove);\n else if (isStartish(topLevelType))\n nativeEvent.changedTouches.forEach(recordTouchStart),\n (touchHistory.numberActiveTouches = nativeEvent.touches.length),\n 1 === touchHistory.numberActiveTouches &&\n (touchHistory.indexOfSingleActiveTouch =\n nativeEvent.touches[0].identifier);\n else if (\n \"topTouchEnd\" === topLevelType ||\n \"topTouchCancel\" === topLevelType\n )\n if (\n (nativeEvent.changedTouches.forEach(recordTouchEnd),\n (touchHistory.numberActiveTouches = nativeEvent.touches.length),\n 1 === touchHistory.numberActiveTouches)\n )\n for (topLevelType = 0; topLevelType < touchBank.length; topLevelType++)\n if (\n ((nativeEvent = touchBank[topLevelType]),\n null != nativeEvent && nativeEvent.touchActive)\n ) {\n touchHistory.indexOfSingleActiveTouch = topLevelType;\n break;\n }\n },\n touchHistory: touchHistory\n};\nfunction accumulate(current, next) {\n invariant(\n null != next,\n \"accumulate(...): Accumulated items must be not be null or undefined.\"\n );\n return null == current\n ? next\n : Array.isArray(current)\n ? current.concat(next)\n : Array.isArray(next)\n ? [current].concat(next)\n : [current, next];\n}\nvar responderInst = null,\n trackedTouchCount = 0;\nfunction changeResponder(nextResponderInst, blockHostResponder) {\n var oldResponderInst = responderInst;\n responderInst = nextResponderInst;\n if (null !== ResponderEventPlugin.GlobalResponderHandler)\n ResponderEventPlugin.GlobalResponderHandler.onChange(\n oldResponderInst,\n nextResponderInst,\n blockHostResponder\n );\n}\nvar eventTypes$1 = {\n startShouldSetResponder: {\n phasedRegistrationNames: {\n bubbled: \"onStartShouldSetResponder\",\n captured: \"onStartShouldSetResponderCapture\"\n },\n dependencies: startDependencies\n },\n scrollShouldSetResponder: {\n phasedRegistrationNames: {\n bubbled: \"onScrollShouldSetResponder\",\n captured: \"onScrollShouldSetResponderCapture\"\n },\n dependencies: [\"topScroll\"]\n },\n selectionChangeShouldSetResponder: {\n phasedRegistrationNames: {\n bubbled: \"onSelectionChangeShouldSetResponder\",\n captured: \"onSelectionChangeShouldSetResponderCapture\"\n },\n dependencies: [\"topSelectionChange\"]\n },\n moveShouldSetResponder: {\n phasedRegistrationNames: {\n bubbled: \"onMoveShouldSetResponder\",\n captured: \"onMoveShouldSetResponderCapture\"\n },\n dependencies: moveDependencies\n },\n responderStart: {\n registrationName: \"onResponderStart\",\n dependencies: startDependencies\n },\n responderMove: {\n registrationName: \"onResponderMove\",\n dependencies: moveDependencies\n },\n responderEnd: {\n registrationName: \"onResponderEnd\",\n dependencies: endDependencies\n },\n responderRelease: {\n registrationName: \"onResponderRelease\",\n dependencies: endDependencies\n },\n responderTerminationRequest: {\n registrationName: \"onResponderTerminationRequest\",\n dependencies: []\n },\n responderGrant: { registrationName: \"onResponderGrant\", dependencies: [] },\n responderReject: {\n registrationName: \"onResponderReject\",\n dependencies: []\n },\n responderTerminate: {\n registrationName: \"onResponderTerminate\",\n dependencies: []\n }\n },\n ResponderEventPlugin = {\n _getResponder: function() {\n return responderInst;\n },\n eventTypes: eventTypes$1,\n extractEvents: function(\n topLevelType,\n targetInst,\n nativeEvent,\n nativeEventTarget\n ) {\n if (isStartish(topLevelType)) trackedTouchCount += 1;\n else if (\n \"topTouchEnd\" === topLevelType ||\n \"topTouchCancel\" === topLevelType\n )\n if (0 <= trackedTouchCount) --trackedTouchCount;\n else\n return (\n console.error(\n \"Ended a touch event which was not counted in `trackedTouchCount`.\"\n ),\n null\n );\n ResponderTouchHistoryStore.recordTouchTrack(topLevelType, nativeEvent);\n if (\n targetInst &&\n ((\"topScroll\" === topLevelType && !nativeEvent.responderIgnoreScroll) ||\n (0 < trackedTouchCount && \"topSelectionChange\" === topLevelType) ||\n isStartish(topLevelType) ||\n isMoveish(topLevelType))\n ) {\n var JSCompiler_temp = isStartish(topLevelType)\n ? eventTypes$1.startShouldSetResponder\n : isMoveish(topLevelType)\n ? eventTypes$1.moveShouldSetResponder\n : \"topSelectionChange\" === topLevelType\n ? eventTypes$1.selectionChangeShouldSetResponder\n : eventTypes$1.scrollShouldSetResponder;\n if (responderInst)\n b: {\n var JSCompiler_temp$jscomp$0 = responderInst;\n for (\n var depthA = 0, tempA = JSCompiler_temp$jscomp$0;\n tempA;\n tempA = getParent(tempA)\n )\n depthA++;\n tempA = 0;\n for (var tempB = targetInst; tempB; tempB = getParent(tempB))\n tempA++;\n for (; 0 < depthA - tempA; )\n (JSCompiler_temp$jscomp$0 = getParent(JSCompiler_temp$jscomp$0)),\n depthA--;\n for (; 0 < tempA - depthA; )\n (targetInst = getParent(targetInst)), tempA--;\n for (; depthA--; ) {\n if (\n JSCompiler_temp$jscomp$0 === targetInst ||\n JSCompiler_temp$jscomp$0 === targetInst.alternate\n )\n break b;\n JSCompiler_temp$jscomp$0 = getParent(JSCompiler_temp$jscomp$0);\n targetInst = getParent(targetInst);\n }\n JSCompiler_temp$jscomp$0 = null;\n }\n else JSCompiler_temp$jscomp$0 = targetInst;\n targetInst = JSCompiler_temp$jscomp$0 === responderInst;\n JSCompiler_temp$jscomp$0 = ResponderSyntheticEvent.getPooled(\n JSCompiler_temp,\n JSCompiler_temp$jscomp$0,\n nativeEvent,\n nativeEventTarget\n );\n JSCompiler_temp$jscomp$0.touchHistory =\n ResponderTouchHistoryStore.touchHistory;\n targetInst\n ? forEachAccumulated(\n JSCompiler_temp$jscomp$0,\n accumulateTwoPhaseDispatchesSingleSkipTarget\n )\n : forEachAccumulated(\n JSCompiler_temp$jscomp$0,\n accumulateTwoPhaseDispatchesSingle\n );\n b: {\n JSCompiler_temp = JSCompiler_temp$jscomp$0._dispatchListeners;\n targetInst = JSCompiler_temp$jscomp$0._dispatchInstances;\n if (Array.isArray(JSCompiler_temp))\n for (\n depthA = 0;\n depthA < JSCompiler_temp.length &&\n !JSCompiler_temp$jscomp$0.isPropagationStopped();\n depthA++\n ) {\n if (\n JSCompiler_temp[depthA](\n JSCompiler_temp$jscomp$0,\n targetInst[depthA]\n )\n ) {\n JSCompiler_temp = targetInst[depthA];\n break b;\n }\n }\n else if (\n JSCompiler_temp &&\n JSCompiler_temp(JSCompiler_temp$jscomp$0, targetInst)\n ) {\n JSCompiler_temp = targetInst;\n break b;\n }\n JSCompiler_temp = null;\n }\n JSCompiler_temp$jscomp$0._dispatchInstances = null;\n JSCompiler_temp$jscomp$0._dispatchListeners = null;\n JSCompiler_temp$jscomp$0.isPersistent() ||\n JSCompiler_temp$jscomp$0.constructor.release(\n JSCompiler_temp$jscomp$0\n );\n JSCompiler_temp && JSCompiler_temp !== responderInst\n ? ((JSCompiler_temp$jscomp$0 = void 0),\n (targetInst = ResponderSyntheticEvent.getPooled(\n eventTypes$1.responderGrant,\n JSCompiler_temp,\n nativeEvent,\n nativeEventTarget\n )),\n (targetInst.touchHistory = ResponderTouchHistoryStore.touchHistory),\n forEachAccumulated(targetInst, accumulateDirectDispatchesSingle),\n (depthA = !0 === executeDirectDispatch(targetInst)),\n responderInst\n ? ((tempA = ResponderSyntheticEvent.getPooled(\n eventTypes$1.responderTerminationRequest,\n responderInst,\n nativeEvent,\n nativeEventTarget\n )),\n (tempA.touchHistory = ResponderTouchHistoryStore.touchHistory),\n forEachAccumulated(tempA, accumulateDirectDispatchesSingle),\n (tempB =\n !tempA._dispatchListeners || executeDirectDispatch(tempA)),\n tempA.isPersistent() || tempA.constructor.release(tempA),\n tempB\n ? ((tempA = ResponderSyntheticEvent.getPooled(\n eventTypes$1.responderTerminate,\n responderInst,\n nativeEvent,\n nativeEventTarget\n )),\n (tempA.touchHistory =\n ResponderTouchHistoryStore.touchHistory),\n forEachAccumulated(tempA, accumulateDirectDispatchesSingle),\n (JSCompiler_temp$jscomp$0 = accumulate(\n JSCompiler_temp$jscomp$0,\n [targetInst, tempA]\n )),\n changeResponder(JSCompiler_temp, depthA))\n : ((JSCompiler_temp = ResponderSyntheticEvent.getPooled(\n eventTypes$1.responderReject,\n JSCompiler_temp,\n nativeEvent,\n nativeEventTarget\n )),\n (JSCompiler_temp.touchHistory =\n ResponderTouchHistoryStore.touchHistory),\n forEachAccumulated(\n JSCompiler_temp,\n accumulateDirectDispatchesSingle\n ),\n (JSCompiler_temp$jscomp$0 = accumulate(\n JSCompiler_temp$jscomp$0,\n JSCompiler_temp\n ))))\n : ((JSCompiler_temp$jscomp$0 = accumulate(\n JSCompiler_temp$jscomp$0,\n targetInst\n )),\n changeResponder(JSCompiler_temp, depthA)),\n (JSCompiler_temp = JSCompiler_temp$jscomp$0))\n : (JSCompiler_temp = null);\n } else JSCompiler_temp = null;\n JSCompiler_temp$jscomp$0 = responderInst && isStartish(topLevelType);\n targetInst = responderInst && isMoveish(topLevelType);\n depthA =\n responderInst &&\n (\"topTouchEnd\" === topLevelType || \"topTouchCancel\" === topLevelType);\n if (\n (JSCompiler_temp$jscomp$0 = JSCompiler_temp$jscomp$0\n ? eventTypes$1.responderStart\n : targetInst\n ? eventTypes$1.responderMove\n : depthA\n ? eventTypes$1.responderEnd\n : null)\n )\n (JSCompiler_temp$jscomp$0 = ResponderSyntheticEvent.getPooled(\n JSCompiler_temp$jscomp$0,\n responderInst,\n nativeEvent,\n nativeEventTarget\n )),\n (JSCompiler_temp$jscomp$0.touchHistory =\n ResponderTouchHistoryStore.touchHistory),\n forEachAccumulated(\n JSCompiler_temp$jscomp$0,\n accumulateDirectDispatchesSingle\n ),\n (JSCompiler_temp = accumulate(\n JSCompiler_temp,\n JSCompiler_temp$jscomp$0\n ));\n JSCompiler_temp$jscomp$0 =\n responderInst && \"topTouchCancel\" === topLevelType;\n if (\n (topLevelType =\n responderInst &&\n !JSCompiler_temp$jscomp$0 &&\n (\"topTouchEnd\" === topLevelType || \"topTouchCancel\" === topLevelType))\n )\n a: {\n if ((topLevelType = nativeEvent.touches) && 0 !== topLevelType.length)\n for (targetInst = 0; targetInst < topLevelType.length; targetInst++)\n if (\n ((depthA = topLevelType[targetInst].target),\n null !== depthA && void 0 !== depthA && 0 !== depthA)\n ) {\n tempA = getInstanceFromNode(depthA);\n b: {\n for (depthA = responderInst; tempA; ) {\n if (depthA === tempA || depthA === tempA.alternate) {\n depthA = !0;\n break b;\n }\n tempA = getParent(tempA);\n }\n depthA = !1;\n }\n if (depthA) {\n topLevelType = !1;\n break a;\n }\n }\n topLevelType = !0;\n }\n if (\n (topLevelType = JSCompiler_temp$jscomp$0\n ? eventTypes$1.responderTerminate\n : topLevelType\n ? eventTypes$1.responderRelease\n : null)\n )\n (nativeEvent = ResponderSyntheticEvent.getPooled(\n topLevelType,\n responderInst,\n nativeEvent,\n nativeEventTarget\n )),\n (nativeEvent.touchHistory = ResponderTouchHistoryStore.touchHistory),\n forEachAccumulated(nativeEvent, accumulateDirectDispatchesSingle),\n (JSCompiler_temp = accumulate(JSCompiler_temp, nativeEvent)),\n changeResponder(null);\n return JSCompiler_temp;\n },\n GlobalResponderHandler: null,\n injection: {\n injectGlobalResponderHandler: function(GlobalResponderHandler) {\n ResponderEventPlugin.GlobalResponderHandler = GlobalResponderHandler;\n }\n }\n },\n customBubblingEventTypes$1 =\n ReactNativeViewConfigRegistry.customBubblingEventTypes,\n customDirectEventTypes$1 =\n ReactNativeViewConfigRegistry.customDirectEventTypes,\n ReactNativeBridgeEventPlugin = {\n eventTypes: ReactNativeViewConfigRegistry.eventTypes,\n extractEvents: function(\n topLevelType,\n targetInst,\n nativeEvent,\n nativeEventTarget\n ) {\n if (null == targetInst) return null;\n var bubbleDispatchConfig = customBubblingEventTypes$1[topLevelType],\n directDispatchConfig = customDirectEventTypes$1[topLevelType];\n invariant(\n bubbleDispatchConfig || directDispatchConfig,\n 'Unsupported top level event type \"%s\" dispatched',\n topLevelType\n );\n topLevelType = SyntheticEvent.getPooled(\n bubbleDispatchConfig || directDispatchConfig,\n targetInst,\n nativeEvent,\n nativeEventTarget\n );\n if (bubbleDispatchConfig)\n forEachAccumulated(topLevelType, accumulateTwoPhaseDispatchesSingle);\n else if (directDispatchConfig)\n forEachAccumulated(topLevelType, accumulateDirectDispatchesSingle);\n else return null;\n return topLevelType;\n }\n };\ninjection.injectEventPluginOrder([\n \"ResponderEventPlugin\",\n \"ReactNativeBridgeEventPlugin\"\n]);\ninjection.injectEventPluginsByName({\n ResponderEventPlugin: ResponderEventPlugin,\n ReactNativeBridgeEventPlugin: ReactNativeBridgeEventPlugin\n});\nvar instanceCache = {},\n instanceProps = {};\nfunction getInstanceFromTag(tag) {\n return instanceCache[tag] || null;\n}\nvar restoreTarget = null,\n restoreQueue = null;\nfunction restoreStateOfTarget(target) {\n if ((target = getInstanceFromNode(target))) {\n invariant(\n !1,\n \"setRestoreImplementation() needs to be called to handle a target for controlled events. This error is likely caused by a bug in React. Please file an issue.\"\n );\n var props = getFiberCurrentPropsFromNode(target.stateNode);\n null(target.stateNode, target.type, props);\n }\n}\nfunction _batchedUpdatesImpl(fn, bookkeeping) {\n return fn(bookkeeping);\n}\nfunction _flushInteractiveUpdatesImpl() {}\nvar isBatching = !1;\nfunction batchedUpdates(fn, bookkeeping) {\n if (isBatching) return fn(bookkeeping);\n isBatching = !0;\n try {\n return _batchedUpdatesImpl(fn, bookkeeping);\n } finally {\n if (((isBatching = !1), null !== restoreTarget || null !== restoreQueue))\n if (\n (_flushInteractiveUpdatesImpl(),\n restoreTarget &&\n ((bookkeeping = restoreTarget),\n (fn = restoreQueue),\n (restoreQueue = restoreTarget = null),\n restoreStateOfTarget(bookkeeping),\n fn))\n )\n for (bookkeeping = 0; bookkeeping < fn.length; bookkeeping++)\n restoreStateOfTarget(fn[bookkeeping]);\n }\n}\nvar EMPTY_NATIVE_EVENT = {};\nfunction _receiveRootNodeIDEvent(rootNodeID, topLevelType, nativeEventParam) {\n var nativeEvent = nativeEventParam || EMPTY_NATIVE_EVENT,\n inst = getInstanceFromTag(rootNodeID);\n batchedUpdates(function() {\n var events = nativeEvent.target;\n for (var events$jscomp$0 = null, i = 0; i < plugins.length; i++) {\n var possiblePlugin = plugins[i];\n possiblePlugin &&\n (possiblePlugin = possiblePlugin.extractEvents(\n topLevelType,\n inst,\n nativeEvent,\n events\n )) &&\n (events$jscomp$0 = accumulateInto(events$jscomp$0, possiblePlugin));\n }\n events = events$jscomp$0;\n null !== events && (eventQueue = accumulateInto(eventQueue, events));\n events = eventQueue;\n eventQueue = null;\n if (\n events &&\n (forEachAccumulated(events, executeDispatchesAndReleaseTopLevel),\n invariant(\n !eventQueue,\n \"processEventQueue(): Additional events were enqueued while processing an event queue. Support for this has not yet been implemented.\"\n ),\n hasRethrowError)\n )\n throw ((events = rethrowError),\n (hasRethrowError = !1),\n (rethrowError = null),\n events);\n });\n}\nRCTEventEmitter.register({\n getListener: getListener,\n registrationNames: registrationNameModules,\n _receiveRootNodeIDEvent: _receiveRootNodeIDEvent,\n receiveEvent: function(rootNodeID, topLevelType, nativeEventParam) {\n _receiveRootNodeIDEvent(rootNodeID, topLevelType, nativeEventParam);\n },\n receiveTouches: function(eventTopLevelType, touches, changedIndices) {\n if (\n \"topTouchEnd\" === eventTopLevelType ||\n \"topTouchCancel\" === eventTopLevelType\n ) {\n var JSCompiler_temp = [];\n for (var i = 0; i < changedIndices.length; i++) {\n var index = changedIndices[i];\n JSCompiler_temp.push(touches[index]);\n touches[index] = null;\n }\n for (i = changedIndices = 0; i < touches.length; i++)\n (index = touches[i]),\n null !== index && (touches[changedIndices++] = index);\n touches.length = changedIndices;\n } else\n for (JSCompiler_temp = [], i = 0; i < changedIndices.length; i++)\n JSCompiler_temp.push(touches[changedIndices[i]]);\n for (\n changedIndices = 0;\n changedIndices < JSCompiler_temp.length;\n changedIndices++\n ) {\n i = JSCompiler_temp[changedIndices];\n i.changedTouches = JSCompiler_temp;\n i.touches = touches;\n index = null;\n var target = i.target;\n null === target || void 0 === target || 1 > target || (index = target);\n _receiveRootNodeIDEvent(index, eventTopLevelType, i);\n }\n }\n});\ngetFiberCurrentPropsFromNode = function(stateNode) {\n return instanceProps[stateNode._nativeTag] || null;\n};\ngetInstanceFromNode = getInstanceFromTag;\ngetNodeFromInstance = function(inst) {\n var tag = inst.stateNode._nativeTag;\n void 0 === tag && (tag = inst.stateNode.canonical._nativeTag);\n invariant(tag, \"All native instances should have a tag.\");\n return tag;\n};\nResponderEventPlugin.injection.injectGlobalResponderHandler({\n onChange: function(from, to, blockNativeResponder) {\n null !== to\n ? UIManager.setJSResponder(to.stateNode._nativeTag, blockNativeResponder)\n : UIManager.clearJSResponder();\n }\n});\nvar ReactSharedInternals =\n React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,\n hasSymbol = \"function\" === typeof Symbol && Symbol.for,\n REACT_ELEMENT_TYPE = hasSymbol ? Symbol.for(\"react.element\") : 60103,\n REACT_PORTAL_TYPE = hasSymbol ? Symbol.for(\"react.portal\") : 60106,\n REACT_FRAGMENT_TYPE = hasSymbol ? Symbol.for(\"react.fragment\") : 60107,\n REACT_STRICT_MODE_TYPE = hasSymbol ? Symbol.for(\"react.strict_mode\") : 60108,\n REACT_PROFILER_TYPE = hasSymbol ? Symbol.for(\"react.profiler\") : 60114,\n REACT_PROVIDER_TYPE = hasSymbol ? Symbol.for(\"react.provider\") : 60109,\n REACT_CONTEXT_TYPE = hasSymbol ? Symbol.for(\"react.context\") : 60110,\n REACT_CONCURRENT_MODE_TYPE = hasSymbol\n ? Symbol.for(\"react.concurrent_mode\")\n : 60111,\n REACT_FORWARD_REF_TYPE = hasSymbol ? Symbol.for(\"react.forward_ref\") : 60112,\n REACT_SUSPENSE_TYPE = hasSymbol ? Symbol.for(\"react.suspense\") : 60113,\n REACT_MEMO_TYPE = hasSymbol ? Symbol.for(\"react.memo\") : 60115,\n REACT_LAZY_TYPE = hasSymbol ? Symbol.for(\"react.lazy\") : 60116,\n MAYBE_ITERATOR_SYMBOL = \"function\" === typeof Symbol && Symbol.iterator;\nfunction getIteratorFn(maybeIterable) {\n if (null === maybeIterable || \"object\" !== typeof maybeIterable) return null;\n maybeIterable =\n (MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL]) ||\n maybeIterable[\"@@iterator\"];\n return \"function\" === typeof maybeIterable ? maybeIterable : null;\n}\nfunction getComponentName(type) {\n if (null == type) return null;\n if (\"function\" === typeof type) return type.displayName || type.name || null;\n if (\"string\" === typeof type) return type;\n switch (type) {\n case REACT_CONCURRENT_MODE_TYPE:\n return \"ConcurrentMode\";\n case REACT_FRAGMENT_TYPE:\n return \"Fragment\";\n case REACT_PORTAL_TYPE:\n return \"Portal\";\n case REACT_PROFILER_TYPE:\n return \"Profiler\";\n case REACT_STRICT_MODE_TYPE:\n return \"StrictMode\";\n case REACT_SUSPENSE_TYPE:\n return \"Suspense\";\n }\n if (\"object\" === typeof type)\n switch (type.$$typeof) {\n case REACT_CONTEXT_TYPE:\n return \"Context.Consumer\";\n case REACT_PROVIDER_TYPE:\n return \"Context.Provider\";\n case REACT_FORWARD_REF_TYPE:\n var innerType = type.render;\n innerType = innerType.displayName || innerType.name || \"\";\n return (\n type.displayName ||\n (\"\" !== innerType ? \"ForwardRef(\" + innerType + \")\" : \"ForwardRef\")\n );\n case REACT_MEMO_TYPE:\n return getComponentName(type.type);\n case REACT_LAZY_TYPE:\n if ((type = 1 === type._status ? type._result : null))\n return getComponentName(type);\n }\n return null;\n}\nfunction isFiberMountedImpl(fiber) {\n var node = fiber;\n if (fiber.alternate) for (; node.return; ) node = node.return;\n else {\n if (0 !== (node.effectTag & 2)) return 1;\n for (; node.return; )\n if (((node = node.return), 0 !== (node.effectTag & 2))) return 1;\n }\n return 3 === node.tag ? 2 : 3;\n}\nfunction assertIsMounted(fiber) {\n invariant(\n 2 === isFiberMountedImpl(fiber),\n \"Unable to find node on an unmounted component.\"\n );\n}\nfunction findCurrentFiberUsingSlowPath(fiber) {\n var alternate = fiber.alternate;\n if (!alternate)\n return (\n (alternate = isFiberMountedImpl(fiber)),\n invariant(\n 3 !== alternate,\n \"Unable to find node on an unmounted component.\"\n ),\n 1 === alternate ? null : fiber\n );\n for (var a = fiber, b = alternate; ; ) {\n var parentA = a.return,\n parentB = parentA ? parentA.alternate : null;\n if (!parentA || !parentB) break;\n if (parentA.child === parentB.child) {\n for (var child = parentA.child; child; ) {\n if (child === a) return assertIsMounted(parentA), fiber;\n if (child === b) return assertIsMounted(parentA), alternate;\n child = child.sibling;\n }\n invariant(!1, \"Unable to find node on an unmounted component.\");\n }\n if (a.return !== b.return) (a = parentA), (b = parentB);\n else {\n child = !1;\n for (var _child = parentA.child; _child; ) {\n if (_child === a) {\n child = !0;\n a = parentA;\n b = parentB;\n break;\n }\n if (_child === b) {\n child = !0;\n b = parentA;\n a = parentB;\n break;\n }\n _child = _child.sibling;\n }\n if (!child) {\n for (_child = parentB.child; _child; ) {\n if (_child === a) {\n child = !0;\n a = parentB;\n b = parentA;\n break;\n }\n if (_child === b) {\n child = !0;\n b = parentB;\n a = parentA;\n break;\n }\n _child = _child.sibling;\n }\n invariant(\n child,\n \"Child was not found in either parent set. This indicates a bug in React related to the return pointer. Please file an issue.\"\n );\n }\n }\n invariant(\n a.alternate === b,\n \"Return fibers should always be each others' alternates. This error is likely caused by a bug in React. Please file an issue.\"\n );\n }\n invariant(3 === a.tag, \"Unable to find node on an unmounted component.\");\n return a.stateNode.current === a ? fiber : alternate;\n}\nfunction findCurrentHostFiber(parent) {\n parent = findCurrentFiberUsingSlowPath(parent);\n if (!parent) return null;\n for (var node = parent; ; ) {\n if (5 === node.tag || 6 === node.tag) return node;\n if (node.child) (node.child.return = node), (node = node.child);\n else {\n if (node === parent) break;\n for (; !node.sibling; ) {\n if (!node.return || node.return === parent) return null;\n node = node.return;\n }\n node.sibling.return = node.return;\n node = node.sibling;\n }\n }\n return null;\n}\nvar emptyObject = {},\n removedKeys = null,\n removedKeyCount = 0;\nfunction restoreDeletedValuesInNestedArray(\n updatePayload,\n node,\n validAttributes\n) {\n if (Array.isArray(node))\n for (var i = node.length; i-- && 0 < removedKeyCount; )\n restoreDeletedValuesInNestedArray(\n updatePayload,\n node[i],\n validAttributes\n );\n else if (node && 0 < removedKeyCount)\n for (i in removedKeys)\n if (removedKeys[i]) {\n var nextProp = node[i];\n if (void 0 !== nextProp) {\n var attributeConfig = validAttributes[i];\n if (attributeConfig) {\n \"function\" === typeof nextProp && (nextProp = !0);\n \"undefined\" === typeof nextProp && (nextProp = null);\n if (\"object\" !== typeof attributeConfig)\n updatePayload[i] = nextProp;\n else if (\n \"function\" === typeof attributeConfig.diff ||\n \"function\" === typeof attributeConfig.process\n )\n (nextProp =\n \"function\" === typeof attributeConfig.process\n ? attributeConfig.process(nextProp)\n : nextProp),\n (updatePayload[i] = nextProp);\n removedKeys[i] = !1;\n removedKeyCount--;\n }\n }\n }\n}\nfunction diffNestedProperty(\n updatePayload,\n prevProp,\n nextProp,\n validAttributes\n) {\n if (!updatePayload && prevProp === nextProp) return updatePayload;\n if (!prevProp || !nextProp)\n return nextProp\n ? addNestedProperty(updatePayload, nextProp, validAttributes)\n : prevProp\n ? clearNestedProperty(updatePayload, prevProp, validAttributes)\n : updatePayload;\n if (!Array.isArray(prevProp) && !Array.isArray(nextProp))\n return diffProperties(updatePayload, prevProp, nextProp, validAttributes);\n if (Array.isArray(prevProp) && Array.isArray(nextProp)) {\n var minLength =\n prevProp.length < nextProp.length ? prevProp.length : nextProp.length,\n i;\n for (i = 0; i < minLength; i++)\n updatePayload = diffNestedProperty(\n updatePayload,\n prevProp[i],\n nextProp[i],\n validAttributes\n );\n for (; i < prevProp.length; i++)\n updatePayload = clearNestedProperty(\n updatePayload,\n prevProp[i],\n validAttributes\n );\n for (; i < nextProp.length; i++)\n updatePayload = addNestedProperty(\n updatePayload,\n nextProp[i],\n validAttributes\n );\n return updatePayload;\n }\n return Array.isArray(prevProp)\n ? diffProperties(\n updatePayload,\n flattenStyle(prevProp),\n nextProp,\n validAttributes\n )\n : diffProperties(\n updatePayload,\n prevProp,\n flattenStyle(nextProp),\n validAttributes\n );\n}\nfunction addNestedProperty(updatePayload, nextProp, validAttributes) {\n if (!nextProp) return updatePayload;\n if (!Array.isArray(nextProp))\n return diffProperties(\n updatePayload,\n emptyObject,\n nextProp,\n validAttributes\n );\n for (var i = 0; i < nextProp.length; i++)\n updatePayload = addNestedProperty(\n updatePayload,\n nextProp[i],\n validAttributes\n );\n return updatePayload;\n}\nfunction clearNestedProperty(updatePayload, prevProp, validAttributes) {\n if (!prevProp) return updatePayload;\n if (!Array.isArray(prevProp))\n return diffProperties(\n updatePayload,\n prevProp,\n emptyObject,\n validAttributes\n );\n for (var i = 0; i < prevProp.length; i++)\n updatePayload = clearNestedProperty(\n updatePayload,\n prevProp[i],\n validAttributes\n );\n return updatePayload;\n}\nfunction diffProperties(updatePayload, prevProps, nextProps, validAttributes) {\n var attributeConfig, propKey;\n for (propKey in nextProps)\n if ((attributeConfig = validAttributes[propKey])) {\n var prevProp = prevProps[propKey];\n var nextProp = nextProps[propKey];\n \"function\" === typeof nextProp &&\n ((nextProp = !0), \"function\" === typeof prevProp && (prevProp = !0));\n \"undefined\" === typeof nextProp &&\n ((nextProp = null),\n \"undefined\" === typeof prevProp && (prevProp = null));\n removedKeys && (removedKeys[propKey] = !1);\n if (updatePayload && void 0 !== updatePayload[propKey])\n if (\"object\" !== typeof attributeConfig)\n updatePayload[propKey] = nextProp;\n else {\n if (\n \"function\" === typeof attributeConfig.diff ||\n \"function\" === typeof attributeConfig.process\n )\n (attributeConfig =\n \"function\" === typeof attributeConfig.process\n ? attributeConfig.process(nextProp)\n : nextProp),\n (updatePayload[propKey] = attributeConfig);\n }\n else if (prevProp !== nextProp)\n if (\"object\" !== typeof attributeConfig)\n (\"object\" !== typeof nextProp ||\n null === nextProp ||\n deepDiffer(prevProp, nextProp)) &&\n ((updatePayload || (updatePayload = {}))[propKey] = nextProp);\n else if (\n \"function\" === typeof attributeConfig.diff ||\n \"function\" === typeof attributeConfig.process\n ) {\n if (\n void 0 === prevProp ||\n (\"function\" === typeof attributeConfig.diff\n ? attributeConfig.diff(prevProp, nextProp)\n : \"object\" !== typeof nextProp ||\n null === nextProp ||\n deepDiffer(prevProp, nextProp))\n )\n (attributeConfig =\n \"function\" === typeof attributeConfig.process\n ? attributeConfig.process(nextProp)\n : nextProp),\n ((updatePayload || (updatePayload = {}))[\n propKey\n ] = attributeConfig);\n } else\n (removedKeys = null),\n (removedKeyCount = 0),\n (updatePayload = diffNestedProperty(\n updatePayload,\n prevProp,\n nextProp,\n attributeConfig\n )),\n 0 < removedKeyCount &&\n updatePayload &&\n (restoreDeletedValuesInNestedArray(\n updatePayload,\n nextProp,\n attributeConfig\n ),\n (removedKeys = null));\n }\n for (var _propKey in prevProps)\n void 0 === nextProps[_propKey] &&\n (!(attributeConfig = validAttributes[_propKey]) ||\n (updatePayload && void 0 !== updatePayload[_propKey]) ||\n ((prevProp = prevProps[_propKey]),\n void 0 !== prevProp &&\n (\"object\" !== typeof attributeConfig ||\n \"function\" === typeof attributeConfig.diff ||\n \"function\" === typeof attributeConfig.process\n ? (((updatePayload || (updatePayload = {}))[_propKey] = null),\n removedKeys || (removedKeys = {}),\n removedKeys[_propKey] ||\n ((removedKeys[_propKey] = !0), removedKeyCount++))\n : (updatePayload = clearNestedProperty(\n updatePayload,\n prevProp,\n attributeConfig\n )))));\n return updatePayload;\n}\nfunction mountSafeCallback_NOT_REALLY_SAFE(context, callback) {\n return function() {\n if (\n callback &&\n (\"boolean\" !== typeof context.__isMounted || context.__isMounted)\n )\n return callback.apply(context, arguments);\n };\n}\nvar ReactNativeFiberHostComponent = (function() {\n function ReactNativeFiberHostComponent(tag, viewConfig) {\n if (!(this instanceof ReactNativeFiberHostComponent))\n throw new TypeError(\"Cannot call a class as a function\");\n this._nativeTag = tag;\n this._children = [];\n this.viewConfig = viewConfig;\n }\n ReactNativeFiberHostComponent.prototype.blur = function() {\n TextInputState.blurTextInput(this._nativeTag);\n };\n ReactNativeFiberHostComponent.prototype.focus = function() {\n TextInputState.focusTextInput(this._nativeTag);\n };\n ReactNativeFiberHostComponent.prototype.measure = function(callback) {\n UIManager.measure(\n this._nativeTag,\n mountSafeCallback_NOT_REALLY_SAFE(this, callback)\n );\n };\n ReactNativeFiberHostComponent.prototype.measureInWindow = function(\n callback\n ) {\n UIManager.measureInWindow(\n this._nativeTag,\n mountSafeCallback_NOT_REALLY_SAFE(this, callback)\n );\n };\n ReactNativeFiberHostComponent.prototype.measureLayout = function(\n relativeToNativeNode,\n onSuccess,\n onFail\n ) {\n UIManager.measureLayout(\n this._nativeTag,\n relativeToNativeNode,\n mountSafeCallback_NOT_REALLY_SAFE(this, onFail),\n mountSafeCallback_NOT_REALLY_SAFE(this, onSuccess)\n );\n };\n ReactNativeFiberHostComponent.prototype.setNativeProps = function(\n nativeProps\n ) {\n nativeProps = diffProperties(\n null,\n emptyObject,\n nativeProps,\n this.viewConfig.validAttributes\n );\n null != nativeProps &&\n UIManager.updateView(\n this._nativeTag,\n this.viewConfig.uiViewClassName,\n nativeProps\n );\n };\n return ReactNativeFiberHostComponent;\n })(),\n now$1 =\n \"object\" === typeof performance && \"function\" === typeof performance.now\n ? function() {\n return performance.now();\n }\n : function() {\n return Date.now();\n },\n scheduledCallback = null,\n frameDeadline = 0;\nfunction setTimeoutCallback() {\n frameDeadline = now$1() + 5;\n var callback = scheduledCallback;\n scheduledCallback = null;\n null !== callback && callback();\n}\nfunction shim$1() {\n invariant(\n !1,\n \"The current renderer does not support hyration. This error is likely caused by a bug in React. Please file an issue.\"\n );\n}\nvar UPDATE_SIGNAL = {},\n nextReactTag = 3;\nfunction allocateTag() {\n var tag = nextReactTag;\n 1 === tag % 10 && (tag += 2);\n nextReactTag = tag + 2;\n return tag;\n}\nfunction recursivelyUncacheFiberNode(node) {\n if (\"number\" === typeof node)\n delete instanceCache[node], delete instanceProps[node];\n else {\n var tag = node._nativeTag;\n delete instanceCache[tag];\n delete instanceProps[tag];\n node._children.forEach(recursivelyUncacheFiberNode);\n }\n}\nfunction finalizeInitialChildren(parentInstance) {\n if (0 === parentInstance._children.length) return !1;\n var nativeTags = parentInstance._children.map(function(child) {\n return \"number\" === typeof child ? child : child._nativeTag;\n });\n UIManager.setChildren(parentInstance._nativeTag, nativeTags);\n return !1;\n}\nvar scheduleTimeout = setTimeout,\n cancelTimeout = clearTimeout,\n BEFORE_SLASH_RE = /^(.*)[\\\\\\/]/;\nfunction getStackByFiberInDevAndProd(workInProgress) {\n var info = \"\";\n do {\n a: switch (workInProgress.tag) {\n case 2:\n case 16:\n case 0:\n case 1:\n case 5:\n case 8:\n case 13:\n var owner = workInProgress._debugOwner,\n source = workInProgress._debugSource,\n name = getComponentName(workInProgress.type);\n var JSCompiler_inline_result = null;\n owner && (JSCompiler_inline_result = getComponentName(owner.type));\n owner = name;\n name = \"\";\n source\n ? (name =\n \" (at \" +\n source.fileName.replace(BEFORE_SLASH_RE, \"\") +\n \":\" +\n source.lineNumber +\n \")\")\n : JSCompiler_inline_result &&\n (name = \" (created by \" + JSCompiler_inline_result + \")\");\n JSCompiler_inline_result = \"\\n in \" + (owner || \"Unknown\") + name;\n break a;\n default:\n JSCompiler_inline_result = \"\";\n }\n info += JSCompiler_inline_result;\n workInProgress = workInProgress.return;\n } while (workInProgress);\n return info;\n}\nnew Set();\nvar valueStack = [],\n index = -1;\nfunction pop(cursor) {\n 0 > index ||\n ((cursor.current = valueStack[index]), (valueStack[index] = null), index--);\n}\nfunction push(cursor, value) {\n index++;\n valueStack[index] = cursor.current;\n cursor.current = value;\n}\nvar emptyContextObject = {},\n contextStackCursor = { current: emptyContextObject },\n didPerformWorkStackCursor = { current: !1 },\n previousContext = emptyContextObject;\nfunction getMaskedContext(workInProgress, unmaskedContext) {\n var contextTypes = workInProgress.type.contextTypes;\n if (!contextTypes) return emptyContextObject;\n var instance = workInProgress.stateNode;\n if (\n instance &&\n instance.__reactInternalMemoizedUnmaskedChildContext === unmaskedContext\n )\n return instance.__reactInternalMemoizedMaskedChildContext;\n var context = {},\n key;\n for (key in contextTypes) context[key] = unmaskedContext[key];\n instance &&\n ((workInProgress = workInProgress.stateNode),\n (workInProgress.__reactInternalMemoizedUnmaskedChildContext = unmaskedContext),\n (workInProgress.__reactInternalMemoizedMaskedChildContext = context));\n return context;\n}\nfunction isContextProvider(type) {\n type = type.childContextTypes;\n return null !== type && void 0 !== type;\n}\nfunction popContext(fiber) {\n pop(didPerformWorkStackCursor, fiber);\n pop(contextStackCursor, fiber);\n}\nfunction popTopLevelContextObject(fiber) {\n pop(didPerformWorkStackCursor, fiber);\n pop(contextStackCursor, fiber);\n}\nfunction pushTopLevelContextObject(fiber, context, didChange) {\n invariant(\n contextStackCursor.current === emptyContextObject,\n \"Unexpected context found on stack. This error is likely caused by a bug in React. Please file an issue.\"\n );\n push(contextStackCursor, context, fiber);\n push(didPerformWorkStackCursor, didChange, fiber);\n}\nfunction processChildContext(fiber, type, parentContext) {\n var instance = fiber.stateNode;\n fiber = type.childContextTypes;\n if (\"function\" !== typeof instance.getChildContext) return parentContext;\n instance = instance.getChildContext();\n for (var contextKey in instance)\n invariant(\n contextKey in fiber,\n '%s.getChildContext(): key \"%s\" is not defined in childContextTypes.',\n getComponentName(type) || \"Unknown\",\n contextKey\n );\n return Object.assign({}, parentContext, instance);\n}\nfunction pushContextProvider(workInProgress) {\n var instance = workInProgress.stateNode;\n instance =\n (instance && instance.__reactInternalMemoizedMergedChildContext) ||\n emptyContextObject;\n previousContext = contextStackCursor.current;\n push(contextStackCursor, instance, workInProgress);\n push(\n didPerformWorkStackCursor,\n didPerformWorkStackCursor.current,\n workInProgress\n );\n return !0;\n}\nfunction invalidateContextProvider(workInProgress, type, didChange) {\n var instance = workInProgress.stateNode;\n invariant(\n instance,\n \"Expected to have an instance by this point. This error is likely caused by a bug in React. Please file an issue.\"\n );\n didChange\n ? ((type = processChildContext(workInProgress, type, previousContext)),\n (instance.__reactInternalMemoizedMergedChildContext = type),\n pop(didPerformWorkStackCursor, workInProgress),\n pop(contextStackCursor, workInProgress),\n push(contextStackCursor, type, workInProgress))\n : pop(didPerformWorkStackCursor, workInProgress);\n push(didPerformWorkStackCursor, didChange, workInProgress);\n}\nvar onCommitFiberRoot = null,\n onCommitFiberUnmount = null;\nfunction catchErrors(fn) {\n return function(arg) {\n try {\n return fn(arg);\n } catch (err) {}\n };\n}\nfunction injectInternals(internals) {\n if (\"undefined\" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) return !1;\n var hook = __REACT_DEVTOOLS_GLOBAL_HOOK__;\n if (hook.isDisabled || !hook.supportsFiber) return !0;\n try {\n var rendererID = hook.inject(internals);\n onCommitFiberRoot = catchErrors(function(root) {\n return hook.onCommitFiberRoot(rendererID, root);\n });\n onCommitFiberUnmount = catchErrors(function(fiber) {\n return hook.onCommitFiberUnmount(rendererID, fiber);\n });\n } catch (err) {}\n return !0;\n}\nfunction FiberNode(tag, pendingProps, key, mode) {\n this.tag = tag;\n this.key = key;\n this.sibling = this.child = this.return = this.stateNode = this.type = this.elementType = null;\n this.index = 0;\n this.ref = null;\n this.pendingProps = pendingProps;\n this.firstContextDependency = this.memoizedState = this.updateQueue = this.memoizedProps = null;\n this.mode = mode;\n this.effectTag = 0;\n this.lastEffect = this.firstEffect = this.nextEffect = null;\n this.childExpirationTime = this.expirationTime = 0;\n this.alternate = null;\n}\nfunction createFiber(tag, pendingProps, key, mode) {\n return new FiberNode(tag, pendingProps, key, mode);\n}\nfunction shouldConstruct(Component) {\n Component = Component.prototype;\n return !(!Component || !Component.isReactComponent);\n}\nfunction resolveLazyComponentTag(Component) {\n if (\"function\" === typeof Component)\n return shouldConstruct(Component) ? 1 : 0;\n if (void 0 !== Component && null !== Component) {\n Component = Component.$$typeof;\n if (Component === REACT_FORWARD_REF_TYPE) return 11;\n if (Component === REACT_MEMO_TYPE) return 14;\n }\n return 2;\n}\nfunction createWorkInProgress(current, pendingProps) {\n var workInProgress = current.alternate;\n null === workInProgress\n ? ((workInProgress = createFiber(\n current.tag,\n pendingProps,\n current.key,\n current.mode\n )),\n (workInProgress.elementType = current.elementType),\n (workInProgress.type = current.type),\n (workInProgress.stateNode = current.stateNode),\n (workInProgress.alternate = current),\n (current.alternate = workInProgress))\n : ((workInProgress.pendingProps = pendingProps),\n (workInProgress.effectTag = 0),\n (workInProgress.nextEffect = null),\n (workInProgress.firstEffect = null),\n (workInProgress.lastEffect = null));\n workInProgress.childExpirationTime = current.childExpirationTime;\n workInProgress.expirationTime = current.expirationTime;\n workInProgress.child = current.child;\n workInProgress.memoizedProps = current.memoizedProps;\n workInProgress.memoizedState = current.memoizedState;\n workInProgress.updateQueue = current.updateQueue;\n workInProgress.firstContextDependency = current.firstContextDependency;\n workInProgress.sibling = current.sibling;\n workInProgress.index = current.index;\n workInProgress.ref = current.ref;\n return workInProgress;\n}\nfunction createFiberFromTypeAndProps(\n type,\n key,\n pendingProps,\n owner,\n mode,\n expirationTime\n) {\n var fiberTag = 2;\n owner = type;\n if (\"function\" === typeof type) shouldConstruct(type) && (fiberTag = 1);\n else if (\"string\" === typeof type) fiberTag = 5;\n else\n a: switch (type) {\n case REACT_FRAGMENT_TYPE:\n return createFiberFromFragment(\n pendingProps.children,\n mode,\n expirationTime,\n key\n );\n case REACT_CONCURRENT_MODE_TYPE:\n return createFiberFromMode(pendingProps, mode | 3, expirationTime, key);\n case REACT_STRICT_MODE_TYPE:\n return createFiberFromMode(pendingProps, mode | 2, expirationTime, key);\n case REACT_PROFILER_TYPE:\n return (\n (type = createFiber(12, pendingProps, key, mode | 4)),\n (type.elementType = REACT_PROFILER_TYPE),\n (type.type = REACT_PROFILER_TYPE),\n (type.expirationTime = expirationTime),\n type\n );\n case REACT_SUSPENSE_TYPE:\n return (\n (type = createFiber(13, pendingProps, key, mode)),\n (type.elementType = REACT_SUSPENSE_TYPE),\n (type.type = REACT_SUSPENSE_TYPE),\n (type.expirationTime = expirationTime),\n type\n );\n default:\n if (\"object\" === typeof type && null !== type)\n switch (type.$$typeof) {\n case REACT_PROVIDER_TYPE:\n fiberTag = 10;\n break a;\n case REACT_CONTEXT_TYPE:\n fiberTag = 9;\n break a;\n case REACT_FORWARD_REF_TYPE:\n fiberTag = 11;\n break a;\n case REACT_MEMO_TYPE:\n fiberTag = 14;\n break a;\n case REACT_LAZY_TYPE:\n fiberTag = 16;\n owner = null;\n break a;\n }\n invariant(\n !1,\n \"Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s\",\n null == type ? type : typeof type,\n \"\"\n );\n }\n key = createFiber(fiberTag, pendingProps, key, mode);\n key.elementType = type;\n key.type = owner;\n key.expirationTime = expirationTime;\n return key;\n}\nfunction createFiberFromFragment(elements, mode, expirationTime, key) {\n elements = createFiber(7, elements, key, mode);\n elements.expirationTime = expirationTime;\n return elements;\n}\nfunction createFiberFromMode(pendingProps, mode, expirationTime, key) {\n pendingProps = createFiber(8, pendingProps, key, mode);\n mode = 0 === (mode & 1) ? REACT_STRICT_MODE_TYPE : REACT_CONCURRENT_MODE_TYPE;\n pendingProps.elementType = mode;\n pendingProps.type = mode;\n pendingProps.expirationTime = expirationTime;\n return pendingProps;\n}\nfunction createFiberFromText(content, mode, expirationTime) {\n content = createFiber(6, content, null, mode);\n content.expirationTime = expirationTime;\n return content;\n}\nfunction createFiberFromPortal(portal, mode, expirationTime) {\n mode = createFiber(\n 4,\n null !== portal.children ? portal.children : [],\n portal.key,\n mode\n );\n mode.expirationTime = expirationTime;\n mode.stateNode = {\n containerInfo: portal.containerInfo,\n pendingChildren: null,\n implementation: portal.implementation\n };\n return mode;\n}\nfunction markPendingPriorityLevel(root, expirationTime) {\n root.didError = !1;\n var earliestPendingTime = root.earliestPendingTime;\n 0 === earliestPendingTime\n ? (root.earliestPendingTime = root.latestPendingTime = expirationTime)\n : earliestPendingTime < expirationTime\n ? (root.earliestPendingTime = expirationTime)\n : root.latestPendingTime > expirationTime &&\n (root.latestPendingTime = expirationTime);\n findNextExpirationTimeToWorkOn(expirationTime, root);\n}\nfunction markSuspendedPriorityLevel(root, suspendedTime) {\n root.didError = !1;\n var latestPingedTime = root.latestPingedTime;\n 0 !== latestPingedTime &&\n latestPingedTime >= suspendedTime &&\n (root.latestPingedTime = 0);\n latestPingedTime = root.earliestPendingTime;\n var latestPendingTime = root.latestPendingTime;\n latestPingedTime === suspendedTime\n ? (root.earliestPendingTime =\n latestPendingTime === suspendedTime\n ? (root.latestPendingTime = 0)\n : latestPendingTime)\n : latestPendingTime === suspendedTime &&\n (root.latestPendingTime = latestPingedTime);\n latestPingedTime = root.earliestSuspendedTime;\n latestPendingTime = root.latestSuspendedTime;\n 0 === latestPingedTime\n ? (root.earliestSuspendedTime = root.latestSuspendedTime = suspendedTime)\n : latestPingedTime < suspendedTime\n ? (root.earliestSuspendedTime = suspendedTime)\n : latestPendingTime > suspendedTime &&\n (root.latestSuspendedTime = suspendedTime);\n findNextExpirationTimeToWorkOn(suspendedTime, root);\n}\nfunction findEarliestOutstandingPriorityLevel(root, renderExpirationTime) {\n var earliestPendingTime = root.earliestPendingTime;\n root = root.earliestSuspendedTime;\n earliestPendingTime > renderExpirationTime &&\n (renderExpirationTime = earliestPendingTime);\n root > renderExpirationTime && (renderExpirationTime = root);\n return renderExpirationTime;\n}\nfunction findNextExpirationTimeToWorkOn(completedExpirationTime, root) {\n var earliestSuspendedTime = root.earliestSuspendedTime,\n latestSuspendedTime = root.latestSuspendedTime,\n earliestPendingTime = root.earliestPendingTime,\n latestPingedTime = root.latestPingedTime;\n earliestPendingTime =\n 0 !== earliestPendingTime ? earliestPendingTime : latestPingedTime;\n 0 === earliestPendingTime &&\n (0 === completedExpirationTime ||\n latestSuspendedTime < completedExpirationTime) &&\n (earliestPendingTime = latestSuspendedTime);\n completedExpirationTime = earliestPendingTime;\n 0 !== completedExpirationTime &&\n earliestSuspendedTime > completedExpirationTime &&\n (completedExpirationTime = earliestSuspendedTime);\n root.nextExpirationTimeToWorkOn = earliestPendingTime;\n root.expirationTime = completedExpirationTime;\n}\nvar hasForceUpdate = !1;\nfunction createUpdateQueue(baseState) {\n return {\n baseState: baseState,\n firstUpdate: null,\n lastUpdate: null,\n firstCapturedUpdate: null,\n lastCapturedUpdate: null,\n firstEffect: null,\n lastEffect: null,\n firstCapturedEffect: null,\n lastCapturedEffect: null\n };\n}\nfunction cloneUpdateQueue(currentQueue) {\n return {\n baseState: currentQueue.baseState,\n firstUpdate: currentQueue.firstUpdate,\n lastUpdate: currentQueue.lastUpdate,\n firstCapturedUpdate: null,\n lastCapturedUpdate: null,\n firstEffect: null,\n lastEffect: null,\n firstCapturedEffect: null,\n lastCapturedEffect: null\n };\n}\nfunction createUpdate(expirationTime) {\n return {\n expirationTime: expirationTime,\n tag: 0,\n payload: null,\n callback: null,\n next: null,\n nextEffect: null\n };\n}\nfunction appendUpdateToQueue(queue, update) {\n null === queue.lastUpdate\n ? (queue.firstUpdate = queue.lastUpdate = update)\n : ((queue.lastUpdate.next = update), (queue.lastUpdate = update));\n}\nfunction enqueueUpdate(fiber, update) {\n var alternate = fiber.alternate;\n if (null === alternate) {\n var queue1 = fiber.updateQueue;\n var queue2 = null;\n null === queue1 &&\n (queue1 = fiber.updateQueue = createUpdateQueue(fiber.memoizedState));\n } else\n (queue1 = fiber.updateQueue),\n (queue2 = alternate.updateQueue),\n null === queue1\n ? null === queue2\n ? ((queue1 = fiber.updateQueue = createUpdateQueue(\n fiber.memoizedState\n )),\n (queue2 = alternate.updateQueue = createUpdateQueue(\n alternate.memoizedState\n )))\n : (queue1 = fiber.updateQueue = cloneUpdateQueue(queue2))\n : null === queue2 &&\n (queue2 = alternate.updateQueue = cloneUpdateQueue(queue1));\n null === queue2 || queue1 === queue2\n ? appendUpdateToQueue(queue1, update)\n : null === queue1.lastUpdate || null === queue2.lastUpdate\n ? (appendUpdateToQueue(queue1, update),\n appendUpdateToQueue(queue2, update))\n : (appendUpdateToQueue(queue1, update), (queue2.lastUpdate = update));\n}\nfunction enqueueCapturedUpdate(workInProgress, update) {\n var workInProgressQueue = workInProgress.updateQueue;\n workInProgressQueue =\n null === workInProgressQueue\n ? (workInProgress.updateQueue = createUpdateQueue(\n workInProgress.memoizedState\n ))\n : ensureWorkInProgressQueueIsAClone(workInProgress, workInProgressQueue);\n null === workInProgressQueue.lastCapturedUpdate\n ? (workInProgressQueue.firstCapturedUpdate = workInProgressQueue.lastCapturedUpdate = update)\n : ((workInProgressQueue.lastCapturedUpdate.next = update),\n (workInProgressQueue.lastCapturedUpdate = update));\n}\nfunction ensureWorkInProgressQueueIsAClone(workInProgress, queue) {\n var current = workInProgress.alternate;\n null !== current &&\n queue === current.updateQueue &&\n (queue = workInProgress.updateQueue = cloneUpdateQueue(queue));\n return queue;\n}\nfunction getStateFromUpdate(\n workInProgress,\n queue,\n update,\n prevState,\n nextProps,\n instance\n) {\n switch (update.tag) {\n case 1:\n return (\n (workInProgress = update.payload),\n \"function\" === typeof workInProgress\n ? workInProgress.call(instance, prevState, nextProps)\n : workInProgress\n );\n case 3:\n workInProgress.effectTag = (workInProgress.effectTag & -2049) | 64;\n case 0:\n workInProgress = update.payload;\n nextProps =\n \"function\" === typeof workInProgress\n ? workInProgress.call(instance, prevState, nextProps)\n : workInProgress;\n if (null === nextProps || void 0 === nextProps) break;\n return Object.assign({}, prevState, nextProps);\n case 2:\n hasForceUpdate = !0;\n }\n return prevState;\n}\nfunction processUpdateQueue(\n workInProgress,\n queue,\n props,\n instance,\n renderExpirationTime\n) {\n hasForceUpdate = !1;\n queue = ensureWorkInProgressQueueIsAClone(workInProgress, queue);\n for (\n var newBaseState = queue.baseState,\n newFirstUpdate = null,\n newExpirationTime = 0,\n update = queue.firstUpdate,\n resultState = newBaseState;\n null !== update;\n\n ) {\n var updateExpirationTime = update.expirationTime;\n updateExpirationTime < renderExpirationTime\n ? (null === newFirstUpdate &&\n ((newFirstUpdate = update), (newBaseState = resultState)),\n newExpirationTime < updateExpirationTime &&\n (newExpirationTime = updateExpirationTime))\n : ((resultState = getStateFromUpdate(\n workInProgress,\n queue,\n update,\n resultState,\n props,\n instance\n )),\n null !== update.callback &&\n ((workInProgress.effectTag |= 32),\n (update.nextEffect = null),\n null === queue.lastEffect\n ? (queue.firstEffect = queue.lastEffect = update)\n : ((queue.lastEffect.nextEffect = update),\n (queue.lastEffect = update))));\n update = update.next;\n }\n updateExpirationTime = null;\n for (update = queue.firstCapturedUpdate; null !== update; ) {\n var _updateExpirationTime = update.expirationTime;\n _updateExpirationTime < renderExpirationTime\n ? (null === updateExpirationTime &&\n ((updateExpirationTime = update),\n null === newFirstUpdate && (newBaseState = resultState)),\n newExpirationTime < _updateExpirationTime &&\n (newExpirationTime = _updateExpirationTime))\n : ((resultState = getStateFromUpdate(\n workInProgress,\n queue,\n update,\n resultState,\n props,\n instance\n )),\n null !== update.callback &&\n ((workInProgress.effectTag |= 32),\n (update.nextEffect = null),\n null === queue.lastCapturedEffect\n ? (queue.firstCapturedEffect = queue.lastCapturedEffect = update)\n : ((queue.lastCapturedEffect.nextEffect = update),\n (queue.lastCapturedEffect = update))));\n update = update.next;\n }\n null === newFirstUpdate && (queue.lastUpdate = null);\n null === updateExpirationTime\n ? (queue.lastCapturedUpdate = null)\n : (workInProgress.effectTag |= 32);\n null === newFirstUpdate &&\n null === updateExpirationTime &&\n (newBaseState = resultState);\n queue.baseState = newBaseState;\n queue.firstUpdate = newFirstUpdate;\n queue.firstCapturedUpdate = updateExpirationTime;\n workInProgress.expirationTime = newExpirationTime;\n workInProgress.memoizedState = resultState;\n}\nfunction commitUpdateQueue(finishedWork, finishedQueue, instance) {\n null !== finishedQueue.firstCapturedUpdate &&\n (null !== finishedQueue.lastUpdate &&\n ((finishedQueue.lastUpdate.next = finishedQueue.firstCapturedUpdate),\n (finishedQueue.lastUpdate = finishedQueue.lastCapturedUpdate)),\n (finishedQueue.firstCapturedUpdate = finishedQueue.lastCapturedUpdate = null));\n commitUpdateEffects(finishedQueue.firstEffect, instance);\n finishedQueue.firstEffect = finishedQueue.lastEffect = null;\n commitUpdateEffects(finishedQueue.firstCapturedEffect, instance);\n finishedQueue.firstCapturedEffect = finishedQueue.lastCapturedEffect = null;\n}\nfunction commitUpdateEffects(effect, instance) {\n for (; null !== effect; ) {\n var _callback3 = effect.callback;\n if (null !== _callback3) {\n effect.callback = null;\n var context = instance;\n invariant(\n \"function\" === typeof _callback3,\n \"Invalid argument passed as callback. Expected a function. Instead received: %s\",\n _callback3\n );\n _callback3.call(context);\n }\n effect = effect.nextEffect;\n }\n}\nfunction createCapturedValue(value, source) {\n return {\n value: value,\n source: source,\n stack: getStackByFiberInDevAndProd(source)\n };\n}\nvar valueCursor = { current: null },\n currentlyRenderingFiber = null,\n lastContextDependency = null,\n lastContextWithAllBitsObserved = null;\nfunction pushProvider(providerFiber, nextValue) {\n var context = providerFiber.type._context;\n push(valueCursor, context._currentValue, providerFiber);\n context._currentValue = nextValue;\n}\nfunction popProvider(providerFiber) {\n var currentValue = valueCursor.current;\n pop(valueCursor, providerFiber);\n providerFiber.type._context._currentValue = currentValue;\n}\nfunction prepareToReadContext(workInProgress) {\n currentlyRenderingFiber = workInProgress;\n lastContextWithAllBitsObserved = lastContextDependency = null;\n workInProgress.firstContextDependency = null;\n}\nfunction readContext(context, observedBits) {\n if (\n lastContextWithAllBitsObserved !== context &&\n !1 !== observedBits &&\n 0 !== observedBits\n ) {\n if (\"number\" !== typeof observedBits || 1073741823 === observedBits)\n (lastContextWithAllBitsObserved = context), (observedBits = 1073741823);\n observedBits = { context: context, observedBits: observedBits, next: null };\n null === lastContextDependency\n ? (invariant(\n null !== currentlyRenderingFiber,\n \"Context can only be read while React is rendering, e.g. inside the render method or getDerivedStateFromProps.\"\n ),\n (currentlyRenderingFiber.firstContextDependency = lastContextDependency = observedBits))\n : (lastContextDependency = lastContextDependency.next = observedBits);\n }\n return context._currentValue;\n}\nvar NO_CONTEXT = {},\n contextStackCursor$1 = { current: NO_CONTEXT },\n contextFiberStackCursor = { current: NO_CONTEXT },\n rootInstanceStackCursor = { current: NO_CONTEXT };\nfunction requiredContext(c) {\n invariant(\n c !== NO_CONTEXT,\n \"Expected host context to exist. This error is likely caused by a bug in React. Please file an issue.\"\n );\n return c;\n}\nfunction pushHostContainer(fiber, nextRootInstance) {\n push(rootInstanceStackCursor, nextRootInstance, fiber);\n push(contextFiberStackCursor, fiber, fiber);\n push(contextStackCursor$1, NO_CONTEXT, fiber);\n pop(contextStackCursor$1, fiber);\n push(contextStackCursor$1, { isInAParentText: !1 }, fiber);\n}\nfunction popHostContainer(fiber) {\n pop(contextStackCursor$1, fiber);\n pop(contextFiberStackCursor, fiber);\n pop(rootInstanceStackCursor, fiber);\n}\nfunction pushHostContext(fiber) {\n requiredContext(rootInstanceStackCursor.current);\n var context = requiredContext(contextStackCursor$1.current);\n var nextContext = fiber.type;\n nextContext =\n \"AndroidTextInput\" === nextContext ||\n \"RCTMultilineTextInputView\" === nextContext ||\n \"RCTSinglelineTextInputView\" === nextContext ||\n \"RCTText\" === nextContext ||\n \"RCTVirtualText\" === nextContext;\n nextContext =\n context.isInAParentText !== nextContext\n ? { isInAParentText: nextContext }\n : context;\n context !== nextContext &&\n (push(contextFiberStackCursor, fiber, fiber),\n push(contextStackCursor$1, nextContext, fiber));\n}\nfunction popHostContext(fiber) {\n contextFiberStackCursor.current === fiber &&\n (pop(contextStackCursor$1, fiber), pop(contextFiberStackCursor, fiber));\n}\nvar hasOwnProperty = Object.prototype.hasOwnProperty;\nfunction is(x, y) {\n return x === y ? 0 !== x || 0 !== y || 1 / x === 1 / y : x !== x && y !== y;\n}\nfunction shallowEqual(objA, objB) {\n if (is(objA, objB)) return !0;\n if (\n \"object\" !== typeof objA ||\n null === objA ||\n \"object\" !== typeof objB ||\n null === objB\n )\n return !1;\n var keysA = Object.keys(objA),\n keysB = Object.keys(objB);\n if (keysA.length !== keysB.length) return !1;\n for (keysB = 0; keysB < keysA.length; keysB++)\n if (\n !hasOwnProperty.call(objB, keysA[keysB]) ||\n !is(objA[keysA[keysB]], objB[keysA[keysB]])\n )\n return !1;\n return !0;\n}\nfunction resolveDefaultProps(Component, baseProps) {\n if (Component && Component.defaultProps) {\n baseProps = Object.assign({}, baseProps);\n Component = Component.defaultProps;\n for (var propName in Component)\n void 0 === baseProps[propName] &&\n (baseProps[propName] = Component[propName]);\n }\n return baseProps;\n}\nfunction readLazyComponentType(lazyComponent) {\n var result = lazyComponent._result;\n switch (lazyComponent._status) {\n case 1:\n return result;\n case 2:\n throw result;\n case 0:\n throw result;\n default:\n throw ((lazyComponent._status = 0),\n (result = lazyComponent._ctor),\n (result = result()),\n result.then(\n function(moduleObject) {\n 0 === lazyComponent._status &&\n ((moduleObject = moduleObject.default),\n (lazyComponent._status = 1),\n (lazyComponent._result = moduleObject));\n },\n function(error) {\n 0 === lazyComponent._status &&\n ((lazyComponent._status = 2), (lazyComponent._result = error));\n }\n ),\n (lazyComponent._result = result),\n result);\n }\n}\nvar ReactCurrentOwner$4 = ReactSharedInternals.ReactCurrentOwner,\n emptyRefsObject = new React.Component().refs;\nfunction applyDerivedStateFromProps(\n workInProgress,\n ctor,\n getDerivedStateFromProps,\n nextProps\n) {\n ctor = workInProgress.memoizedState;\n getDerivedStateFromProps = getDerivedStateFromProps(nextProps, ctor);\n getDerivedStateFromProps =\n null === getDerivedStateFromProps || void 0 === getDerivedStateFromProps\n ? ctor\n : Object.assign({}, ctor, getDerivedStateFromProps);\n workInProgress.memoizedState = getDerivedStateFromProps;\n nextProps = workInProgress.updateQueue;\n null !== nextProps &&\n 0 === workInProgress.expirationTime &&\n (nextProps.baseState = getDerivedStateFromProps);\n}\nvar classComponentUpdater = {\n isMounted: function(component) {\n return (component = component._reactInternalFiber)\n ? 2 === isFiberMountedImpl(component)\n : !1;\n },\n enqueueSetState: function(inst, payload, callback) {\n inst = inst._reactInternalFiber;\n var currentTime = requestCurrentTime();\n currentTime = computeExpirationForFiber(currentTime, inst);\n var update = createUpdate(currentTime);\n update.payload = payload;\n void 0 !== callback && null !== callback && (update.callback = callback);\n flushPassiveEffects();\n enqueueUpdate(inst, update);\n scheduleWork(inst, currentTime);\n },\n enqueueReplaceState: function(inst, payload, callback) {\n inst = inst._reactInternalFiber;\n var currentTime = requestCurrentTime();\n currentTime = computeExpirationForFiber(currentTime, inst);\n var update = createUpdate(currentTime);\n update.tag = 1;\n update.payload = payload;\n void 0 !== callback && null !== callback && (update.callback = callback);\n flushPassiveEffects();\n enqueueUpdate(inst, update);\n scheduleWork(inst, currentTime);\n },\n enqueueForceUpdate: function(inst, callback) {\n inst = inst._reactInternalFiber;\n var currentTime = requestCurrentTime();\n currentTime = computeExpirationForFiber(currentTime, inst);\n var update = createUpdate(currentTime);\n update.tag = 2;\n void 0 !== callback && null !== callback && (update.callback = callback);\n flushPassiveEffects();\n enqueueUpdate(inst, update);\n scheduleWork(inst, currentTime);\n }\n};\nfunction checkShouldComponentUpdate(\n workInProgress,\n ctor,\n oldProps,\n newProps,\n oldState,\n newState,\n nextContext\n) {\n workInProgress = workInProgress.stateNode;\n return \"function\" === typeof workInProgress.shouldComponentUpdate\n ? workInProgress.shouldComponentUpdate(newProps, newState, nextContext)\n : ctor.prototype && ctor.prototype.isPureReactComponent\n ? !shallowEqual(oldProps, newProps) || !shallowEqual(oldState, newState)\n : !0;\n}\nfunction constructClassInstance(workInProgress, ctor, props) {\n var isLegacyContextConsumer = !1,\n unmaskedContext = emptyContextObject;\n var context = ctor.contextType;\n \"object\" === typeof context && null !== context\n ? (context = ReactCurrentOwner$4.currentDispatcher.readContext(context))\n : ((unmaskedContext = isContextProvider(ctor)\n ? previousContext\n : contextStackCursor.current),\n (isLegacyContextConsumer = ctor.contextTypes),\n (context = (isLegacyContextConsumer =\n null !== isLegacyContextConsumer && void 0 !== isLegacyContextConsumer)\n ? getMaskedContext(workInProgress, unmaskedContext)\n : emptyContextObject));\n ctor = new ctor(props, context);\n workInProgress.memoizedState =\n null !== ctor.state && void 0 !== ctor.state ? ctor.state : null;\n ctor.updater = classComponentUpdater;\n workInProgress.stateNode = ctor;\n ctor._reactInternalFiber = workInProgress;\n isLegacyContextConsumer &&\n ((workInProgress = workInProgress.stateNode),\n (workInProgress.__reactInternalMemoizedUnmaskedChildContext = unmaskedContext),\n (workInProgress.__reactInternalMemoizedMaskedChildContext = context));\n return ctor;\n}\nfunction callComponentWillReceiveProps(\n workInProgress,\n instance,\n newProps,\n nextContext\n) {\n workInProgress = instance.state;\n \"function\" === typeof instance.componentWillReceiveProps &&\n instance.componentWillReceiveProps(newProps, nextContext);\n \"function\" === typeof instance.UNSAFE_componentWillReceiveProps &&\n instance.UNSAFE_componentWillReceiveProps(newProps, nextContext);\n instance.state !== workInProgress &&\n classComponentUpdater.enqueueReplaceState(instance, instance.state, null);\n}\nfunction mountClassInstance(\n workInProgress,\n ctor,\n newProps,\n renderExpirationTime\n) {\n var instance = workInProgress.stateNode;\n instance.props = newProps;\n instance.state = workInProgress.memoizedState;\n instance.refs = emptyRefsObject;\n var contextType = ctor.contextType;\n \"object\" === typeof contextType && null !== contextType\n ? (instance.context = ReactCurrentOwner$4.currentDispatcher.readContext(\n contextType\n ))\n : ((contextType = isContextProvider(ctor)\n ? previousContext\n : contextStackCursor.current),\n (instance.context = getMaskedContext(workInProgress, contextType)));\n contextType = workInProgress.updateQueue;\n null !== contextType &&\n (processUpdateQueue(\n workInProgress,\n contextType,\n newProps,\n instance,\n renderExpirationTime\n ),\n (instance.state = workInProgress.memoizedState));\n contextType = ctor.getDerivedStateFromProps;\n \"function\" === typeof contextType &&\n (applyDerivedStateFromProps(workInProgress, ctor, contextType, newProps),\n (instance.state = workInProgress.memoizedState));\n \"function\" === typeof ctor.getDerivedStateFromProps ||\n \"function\" === typeof instance.getSnapshotBeforeUpdate ||\n (\"function\" !== typeof instance.UNSAFE_componentWillMount &&\n \"function\" !== typeof instance.componentWillMount) ||\n ((ctor = instance.state),\n \"function\" === typeof instance.componentWillMount &&\n instance.componentWillMount(),\n \"function\" === typeof instance.UNSAFE_componentWillMount &&\n instance.UNSAFE_componentWillMount(),\n ctor !== instance.state &&\n classComponentUpdater.enqueueReplaceState(instance, instance.state, null),\n (contextType = workInProgress.updateQueue),\n null !== contextType &&\n (processUpdateQueue(\n workInProgress,\n contextType,\n newProps,\n instance,\n renderExpirationTime\n ),\n (instance.state = workInProgress.memoizedState)));\n \"function\" === typeof instance.componentDidMount &&\n (workInProgress.effectTag |= 4);\n}\nvar isArray = Array.isArray;\nfunction coerceRef(returnFiber, current$$1, element) {\n returnFiber = element.ref;\n if (\n null !== returnFiber &&\n \"function\" !== typeof returnFiber &&\n \"object\" !== typeof returnFiber\n ) {\n if (element._owner) {\n element = element._owner;\n var inst = void 0;\n element &&\n (invariant(1 === element.tag, \"Function components cannot have refs.\"),\n (inst = element.stateNode));\n invariant(\n inst,\n \"Missing owner for string ref %s. This error is likely caused by a bug in React. Please file an issue.\",\n returnFiber\n );\n var stringRef = \"\" + returnFiber;\n if (\n null !== current$$1 &&\n null !== current$$1.ref &&\n \"function\" === typeof current$$1.ref &&\n current$$1.ref._stringRef === stringRef\n )\n return current$$1.ref;\n current$$1 = function(value) {\n var refs = inst.refs;\n refs === emptyRefsObject && (refs = inst.refs = {});\n null === value ? delete refs[stringRef] : (refs[stringRef] = value);\n };\n current$$1._stringRef = stringRef;\n return current$$1;\n }\n invariant(\n \"string\" === typeof returnFiber,\n \"Expected ref to be a function, a string, an object returned by React.createRef(), or null.\"\n );\n invariant(\n element._owner,\n \"Element ref was specified as a string (%s) but no owner was set. This could happen for one of the following reasons:\\n1. You may be adding a ref to a function component\\n2. You may be adding a ref to a component that was not created inside a component's render method\\n3. You have multiple copies of React loaded\\nSee https://fb.me/react-refs-must-have-owner for more information.\",\n returnFiber\n );\n }\n return returnFiber;\n}\nfunction throwOnInvalidObjectType(returnFiber, newChild) {\n \"textarea\" !== returnFiber.type &&\n invariant(\n !1,\n \"Objects are not valid as a React child (found: %s).%s\",\n \"[object Object]\" === Object.prototype.toString.call(newChild)\n ? \"object with keys {\" + Object.keys(newChild).join(\", \") + \"}\"\n : newChild,\n \"\"\n );\n}\nfunction ChildReconciler(shouldTrackSideEffects) {\n function deleteChild(returnFiber, childToDelete) {\n if (shouldTrackSideEffects) {\n var last = returnFiber.lastEffect;\n null !== last\n ? ((last.nextEffect = childToDelete),\n (returnFiber.lastEffect = childToDelete))\n : (returnFiber.firstEffect = returnFiber.lastEffect = childToDelete);\n childToDelete.nextEffect = null;\n childToDelete.effectTag = 8;\n }\n }\n function deleteRemainingChildren(returnFiber, currentFirstChild) {\n if (!shouldTrackSideEffects) return null;\n for (; null !== currentFirstChild; )\n deleteChild(returnFiber, currentFirstChild),\n (currentFirstChild = currentFirstChild.sibling);\n return null;\n }\n function mapRemainingChildren(returnFiber, currentFirstChild) {\n for (returnFiber = new Map(); null !== currentFirstChild; )\n null !== currentFirstChild.key\n ? returnFiber.set(currentFirstChild.key, currentFirstChild)\n : returnFiber.set(currentFirstChild.index, currentFirstChild),\n (currentFirstChild = currentFirstChild.sibling);\n return returnFiber;\n }\n function useFiber(fiber, pendingProps, expirationTime) {\n fiber = createWorkInProgress(fiber, pendingProps, expirationTime);\n fiber.index = 0;\n fiber.sibling = null;\n return fiber;\n }\n function placeChild(newFiber, lastPlacedIndex, newIndex) {\n newFiber.index = newIndex;\n if (!shouldTrackSideEffects) return lastPlacedIndex;\n newIndex = newFiber.alternate;\n if (null !== newIndex)\n return (\n (newIndex = newIndex.index),\n newIndex < lastPlacedIndex\n ? ((newFiber.effectTag = 2), lastPlacedIndex)\n : newIndex\n );\n newFiber.effectTag = 2;\n return lastPlacedIndex;\n }\n function placeSingleChild(newFiber) {\n shouldTrackSideEffects &&\n null === newFiber.alternate &&\n (newFiber.effectTag = 2);\n return newFiber;\n }\n function updateTextNode(\n returnFiber,\n current$$1,\n textContent,\n expirationTime\n ) {\n if (null === current$$1 || 6 !== current$$1.tag)\n return (\n (current$$1 = createFiberFromText(\n textContent,\n returnFiber.mode,\n expirationTime\n )),\n (current$$1.return = returnFiber),\n current$$1\n );\n current$$1 = useFiber(current$$1, textContent, expirationTime);\n current$$1.return = returnFiber;\n return current$$1;\n }\n function updateElement(returnFiber, current$$1, element, expirationTime) {\n if (null !== current$$1 && current$$1.elementType === element.type)\n return (\n (expirationTime = useFiber(current$$1, element.props, expirationTime)),\n (expirationTime.ref = coerceRef(returnFiber, current$$1, element)),\n (expirationTime.return = returnFiber),\n expirationTime\n );\n expirationTime = createFiberFromTypeAndProps(\n element.type,\n element.key,\n element.props,\n null,\n returnFiber.mode,\n expirationTime\n );\n expirationTime.ref = coerceRef(returnFiber, current$$1, element);\n expirationTime.return = returnFiber;\n return expirationTime;\n }\n function updatePortal(returnFiber, current$$1, portal, expirationTime) {\n if (\n null === current$$1 ||\n 4 !== current$$1.tag ||\n current$$1.stateNode.containerInfo !== portal.containerInfo ||\n current$$1.stateNode.implementation !== portal.implementation\n )\n return (\n (current$$1 = createFiberFromPortal(\n portal,\n returnFiber.mode,\n expirationTime\n )),\n (current$$1.return = returnFiber),\n current$$1\n );\n current$$1 = useFiber(current$$1, portal.children || [], expirationTime);\n current$$1.return = returnFiber;\n return current$$1;\n }\n function updateFragment(\n returnFiber,\n current$$1,\n fragment,\n expirationTime,\n key\n ) {\n if (null === current$$1 || 7 !== current$$1.tag)\n return (\n (current$$1 = createFiberFromFragment(\n fragment,\n returnFiber.mode,\n expirationTime,\n key\n )),\n (current$$1.return = returnFiber),\n current$$1\n );\n current$$1 = useFiber(current$$1, fragment, expirationTime);\n current$$1.return = returnFiber;\n return current$$1;\n }\n function createChild(returnFiber, newChild, expirationTime) {\n if (\"string\" === typeof newChild || \"number\" === typeof newChild)\n return (\n (newChild = createFiberFromText(\n \"\" + newChild,\n returnFiber.mode,\n expirationTime\n )),\n (newChild.return = returnFiber),\n newChild\n );\n if (\"object\" === typeof newChild && null !== newChild) {\n switch (newChild.$$typeof) {\n case REACT_ELEMENT_TYPE:\n return (\n (expirationTime = createFiberFromTypeAndProps(\n newChild.type,\n newChild.key,\n newChild.props,\n null,\n returnFiber.mode,\n expirationTime\n )),\n (expirationTime.ref = coerceRef(returnFiber, null, newChild)),\n (expirationTime.return = returnFiber),\n expirationTime\n );\n case REACT_PORTAL_TYPE:\n return (\n (newChild = createFiberFromPortal(\n newChild,\n returnFiber.mode,\n expirationTime\n )),\n (newChild.return = returnFiber),\n newChild\n );\n }\n if (isArray(newChild) || getIteratorFn(newChild))\n return (\n (newChild = createFiberFromFragment(\n newChild,\n returnFiber.mode,\n expirationTime,\n null\n )),\n (newChild.return = returnFiber),\n newChild\n );\n throwOnInvalidObjectType(returnFiber, newChild);\n }\n return null;\n }\n function updateSlot(returnFiber, oldFiber, newChild, expirationTime) {\n var key = null !== oldFiber ? oldFiber.key : null;\n if (\"string\" === typeof newChild || \"number\" === typeof newChild)\n return null !== key\n ? null\n : updateTextNode(returnFiber, oldFiber, \"\" + newChild, expirationTime);\n if (\"object\" === typeof newChild && null !== newChild) {\n switch (newChild.$$typeof) {\n case REACT_ELEMENT_TYPE:\n return newChild.key === key\n ? newChild.type === REACT_FRAGMENT_TYPE\n ? updateFragment(\n returnFiber,\n oldFiber,\n newChild.props.children,\n expirationTime,\n key\n )\n : updateElement(returnFiber, oldFiber, newChild, expirationTime)\n : null;\n case REACT_PORTAL_TYPE:\n return newChild.key === key\n ? updatePortal(returnFiber, oldFiber, newChild, expirationTime)\n : null;\n }\n if (isArray(newChild) || getIteratorFn(newChild))\n return null !== key\n ? null\n : updateFragment(\n returnFiber,\n oldFiber,\n newChild,\n expirationTime,\n null\n );\n throwOnInvalidObjectType(returnFiber, newChild);\n }\n return null;\n }\n function updateFromMap(\n existingChildren,\n returnFiber,\n newIdx,\n newChild,\n expirationTime\n ) {\n if (\"string\" === typeof newChild || \"number\" === typeof newChild)\n return (\n (existingChildren = existingChildren.get(newIdx) || null),\n updateTextNode(\n returnFiber,\n existingChildren,\n \"\" + newChild,\n expirationTime\n )\n );\n if (\"object\" === typeof newChild && null !== newChild) {\n switch (newChild.$$typeof) {\n case REACT_ELEMENT_TYPE:\n return (\n (existingChildren =\n existingChildren.get(\n null === newChild.key ? newIdx : newChild.key\n ) || null),\n newChild.type === REACT_FRAGMENT_TYPE\n ? updateFragment(\n returnFiber,\n existingChildren,\n newChild.props.children,\n expirationTime,\n newChild.key\n )\n : updateElement(\n returnFiber,\n existingChildren,\n newChild,\n expirationTime\n )\n );\n case REACT_PORTAL_TYPE:\n return (\n (existingChildren =\n existingChildren.get(\n null === newChild.key ? newIdx : newChild.key\n ) || null),\n updatePortal(\n returnFiber,\n existingChildren,\n newChild,\n expirationTime\n )\n );\n }\n if (isArray(newChild) || getIteratorFn(newChild))\n return (\n (existingChildren = existingChildren.get(newIdx) || null),\n updateFragment(\n returnFiber,\n existingChildren,\n newChild,\n expirationTime,\n null\n )\n );\n throwOnInvalidObjectType(returnFiber, newChild);\n }\n return null;\n }\n function reconcileChildrenArray(\n returnFiber,\n currentFirstChild,\n newChildren,\n expirationTime\n ) {\n for (\n var resultingFirstChild = null,\n previousNewFiber = null,\n oldFiber = currentFirstChild,\n newIdx = (currentFirstChild = 0),\n nextOldFiber = null;\n null !== oldFiber && newIdx < newChildren.length;\n newIdx++\n ) {\n oldFiber.index > newIdx\n ? ((nextOldFiber = oldFiber), (oldFiber = null))\n : (nextOldFiber = oldFiber.sibling);\n var newFiber = updateSlot(\n returnFiber,\n oldFiber,\n newChildren[newIdx],\n expirationTime\n );\n if (null === newFiber) {\n null === oldFiber && (oldFiber = nextOldFiber);\n break;\n }\n shouldTrackSideEffects &&\n oldFiber &&\n null === newFiber.alternate &&\n deleteChild(returnFiber, oldFiber);\n currentFirstChild = placeChild(newFiber, currentFirstChild, newIdx);\n null === previousNewFiber\n ? (resultingFirstChild = newFiber)\n : (previousNewFiber.sibling = newFiber);\n previousNewFiber = newFiber;\n oldFiber = nextOldFiber;\n }\n if (newIdx === newChildren.length)\n return (\n deleteRemainingChildren(returnFiber, oldFiber), resultingFirstChild\n );\n if (null === oldFiber) {\n for (; newIdx < newChildren.length; newIdx++)\n if (\n (oldFiber = createChild(\n returnFiber,\n newChildren[newIdx],\n expirationTime\n ))\n )\n (currentFirstChild = placeChild(oldFiber, currentFirstChild, newIdx)),\n null === previousNewFiber\n ? (resultingFirstChild = oldFiber)\n : (previousNewFiber.sibling = oldFiber),\n (previousNewFiber = oldFiber);\n return resultingFirstChild;\n }\n for (\n oldFiber = mapRemainingChildren(returnFiber, oldFiber);\n newIdx < newChildren.length;\n newIdx++\n )\n if (\n (nextOldFiber = updateFromMap(\n oldFiber,\n returnFiber,\n newIdx,\n newChildren[newIdx],\n expirationTime\n ))\n )\n shouldTrackSideEffects &&\n null !== nextOldFiber.alternate &&\n oldFiber.delete(\n null === nextOldFiber.key ? newIdx : nextOldFiber.key\n ),\n (currentFirstChild = placeChild(\n nextOldFiber,\n currentFirstChild,\n newIdx\n )),\n null === previousNewFiber\n ? (resultingFirstChild = nextOldFiber)\n : (previousNewFiber.sibling = nextOldFiber),\n (previousNewFiber = nextOldFiber);\n shouldTrackSideEffects &&\n oldFiber.forEach(function(child) {\n return deleteChild(returnFiber, child);\n });\n return resultingFirstChild;\n }\n function reconcileChildrenIterator(\n returnFiber,\n currentFirstChild,\n newChildrenIterable,\n expirationTime\n ) {\n var iteratorFn = getIteratorFn(newChildrenIterable);\n invariant(\n \"function\" === typeof iteratorFn,\n \"An object is not an iterable. This error is likely caused by a bug in React. Please file an issue.\"\n );\n newChildrenIterable = iteratorFn.call(newChildrenIterable);\n invariant(\n null != newChildrenIterable,\n \"An iterable object provided no iterator.\"\n );\n for (\n var previousNewFiber = (iteratorFn = null),\n oldFiber = currentFirstChild,\n newIdx = (currentFirstChild = 0),\n nextOldFiber = null,\n step = newChildrenIterable.next();\n null !== oldFiber && !step.done;\n newIdx++, step = newChildrenIterable.next()\n ) {\n oldFiber.index > newIdx\n ? ((nextOldFiber = oldFiber), (oldFiber = null))\n : (nextOldFiber = oldFiber.sibling);\n var newFiber = updateSlot(\n returnFiber,\n oldFiber,\n step.value,\n expirationTime\n );\n if (null === newFiber) {\n oldFiber || (oldFiber = nextOldFiber);\n break;\n }\n shouldTrackSideEffects &&\n oldFiber &&\n null === newFiber.alternate &&\n deleteChild(returnFiber, oldFiber);\n currentFirstChild = placeChild(newFiber, currentFirstChild, newIdx);\n null === previousNewFiber\n ? (iteratorFn = newFiber)\n : (previousNewFiber.sibling = newFiber);\n previousNewFiber = newFiber;\n oldFiber = nextOldFiber;\n }\n if (step.done)\n return deleteRemainingChildren(returnFiber, oldFiber), iteratorFn;\n if (null === oldFiber) {\n for (; !step.done; newIdx++, step = newChildrenIterable.next())\n (step = createChild(returnFiber, step.value, expirationTime)),\n null !== step &&\n ((currentFirstChild = placeChild(step, currentFirstChild, newIdx)),\n null === previousNewFiber\n ? (iteratorFn = step)\n : (previousNewFiber.sibling = step),\n (previousNewFiber = step));\n return iteratorFn;\n }\n for (\n oldFiber = mapRemainingChildren(returnFiber, oldFiber);\n !step.done;\n newIdx++, step = newChildrenIterable.next()\n )\n (step = updateFromMap(\n oldFiber,\n returnFiber,\n newIdx,\n step.value,\n expirationTime\n )),\n null !== step &&\n (shouldTrackSideEffects &&\n null !== step.alternate &&\n oldFiber.delete(null === step.key ? newIdx : step.key),\n (currentFirstChild = placeChild(step, currentFirstChild, newIdx)),\n null === previousNewFiber\n ? (iteratorFn = step)\n : (previousNewFiber.sibling = step),\n (previousNewFiber = step));\n shouldTrackSideEffects &&\n oldFiber.forEach(function(child) {\n return deleteChild(returnFiber, child);\n });\n return iteratorFn;\n }\n return function(returnFiber, currentFirstChild, newChild, expirationTime) {\n var isUnkeyedTopLevelFragment =\n \"object\" === typeof newChild &&\n null !== newChild &&\n newChild.type === REACT_FRAGMENT_TYPE &&\n null === newChild.key;\n isUnkeyedTopLevelFragment && (newChild = newChild.props.children);\n var isObject = \"object\" === typeof newChild && null !== newChild;\n if (isObject)\n switch (newChild.$$typeof) {\n case REACT_ELEMENT_TYPE:\n a: {\n isObject = newChild.key;\n for (\n isUnkeyedTopLevelFragment = currentFirstChild;\n null !== isUnkeyedTopLevelFragment;\n\n ) {\n if (isUnkeyedTopLevelFragment.key === isObject)\n if (\n 7 === isUnkeyedTopLevelFragment.tag\n ? newChild.type === REACT_FRAGMENT_TYPE\n : isUnkeyedTopLevelFragment.elementType === newChild.type\n ) {\n deleteRemainingChildren(\n returnFiber,\n isUnkeyedTopLevelFragment.sibling\n );\n currentFirstChild = useFiber(\n isUnkeyedTopLevelFragment,\n newChild.type === REACT_FRAGMENT_TYPE\n ? newChild.props.children\n : newChild.props,\n expirationTime\n );\n currentFirstChild.ref = coerceRef(\n returnFiber,\n isUnkeyedTopLevelFragment,\n newChild\n );\n currentFirstChild.return = returnFiber;\n returnFiber = currentFirstChild;\n break a;\n } else {\n deleteRemainingChildren(\n returnFiber,\n isUnkeyedTopLevelFragment\n );\n break;\n }\n else deleteChild(returnFiber, isUnkeyedTopLevelFragment);\n isUnkeyedTopLevelFragment = isUnkeyedTopLevelFragment.sibling;\n }\n newChild.type === REACT_FRAGMENT_TYPE\n ? ((currentFirstChild = createFiberFromFragment(\n newChild.props.children,\n returnFiber.mode,\n expirationTime,\n newChild.key\n )),\n (currentFirstChild.return = returnFiber),\n (returnFiber = currentFirstChild))\n : ((expirationTime = createFiberFromTypeAndProps(\n newChild.type,\n newChild.key,\n newChild.props,\n null,\n returnFiber.mode,\n expirationTime\n )),\n (expirationTime.ref = coerceRef(\n returnFiber,\n currentFirstChild,\n newChild\n )),\n (expirationTime.return = returnFiber),\n (returnFiber = expirationTime));\n }\n return placeSingleChild(returnFiber);\n case REACT_PORTAL_TYPE:\n a: {\n for (\n isUnkeyedTopLevelFragment = newChild.key;\n null !== currentFirstChild;\n\n ) {\n if (currentFirstChild.key === isUnkeyedTopLevelFragment)\n if (\n 4 === currentFirstChild.tag &&\n currentFirstChild.stateNode.containerInfo ===\n newChild.containerInfo &&\n currentFirstChild.stateNode.implementation ===\n newChild.implementation\n ) {\n deleteRemainingChildren(\n returnFiber,\n currentFirstChild.sibling\n );\n currentFirstChild = useFiber(\n currentFirstChild,\n newChild.children || [],\n expirationTime\n );\n currentFirstChild.return = returnFiber;\n returnFiber = currentFirstChild;\n break a;\n } else {\n deleteRemainingChildren(returnFiber, currentFirstChild);\n break;\n }\n else deleteChild(returnFiber, currentFirstChild);\n currentFirstChild = currentFirstChild.sibling;\n }\n currentFirstChild = createFiberFromPortal(\n newChild,\n returnFiber.mode,\n expirationTime\n );\n currentFirstChild.return = returnFiber;\n returnFiber = currentFirstChild;\n }\n return placeSingleChild(returnFiber);\n }\n if (\"string\" === typeof newChild || \"number\" === typeof newChild)\n return (\n (newChild = \"\" + newChild),\n null !== currentFirstChild && 6 === currentFirstChild.tag\n ? (deleteRemainingChildren(returnFiber, currentFirstChild.sibling),\n (currentFirstChild = useFiber(\n currentFirstChild,\n newChild,\n expirationTime\n )),\n (currentFirstChild.return = returnFiber),\n (returnFiber = currentFirstChild))\n : (deleteRemainingChildren(returnFiber, currentFirstChild),\n (currentFirstChild = createFiberFromText(\n newChild,\n returnFiber.mode,\n expirationTime\n )),\n (currentFirstChild.return = returnFiber),\n (returnFiber = currentFirstChild)),\n placeSingleChild(returnFiber)\n );\n if (isArray(newChild))\n return reconcileChildrenArray(\n returnFiber,\n currentFirstChild,\n newChild,\n expirationTime\n );\n if (getIteratorFn(newChild))\n return reconcileChildrenIterator(\n returnFiber,\n currentFirstChild,\n newChild,\n expirationTime\n );\n isObject && throwOnInvalidObjectType(returnFiber, newChild);\n if (\"undefined\" === typeof newChild && !isUnkeyedTopLevelFragment)\n switch (returnFiber.tag) {\n case 1:\n case 0:\n (expirationTime = returnFiber.type),\n invariant(\n !1,\n \"%s(...): Nothing was returned from render. This usually means a return statement is missing. Or, to render nothing, return null.\",\n expirationTime.displayName || expirationTime.name || \"Component\"\n );\n }\n return deleteRemainingChildren(returnFiber, currentFirstChild);\n };\n}\nvar reconcileChildFibers = ChildReconciler(!0),\n mountChildFibers = ChildReconciler(!1),\n hydrationParentFiber = null,\n nextHydratableInstance = null,\n isHydrating = !1;\nfunction tryHydrate(fiber, nextInstance) {\n switch (fiber.tag) {\n case 5:\n return (\n (nextInstance = shim$1(nextInstance, fiber.type, fiber.pendingProps)),\n null !== nextInstance ? ((fiber.stateNode = nextInstance), !0) : !1\n );\n case 6:\n return (\n (nextInstance = shim$1(nextInstance, fiber.pendingProps)),\n null !== nextInstance ? ((fiber.stateNode = nextInstance), !0) : !1\n );\n default:\n return !1;\n }\n}\nfunction tryToClaimNextHydratableInstance(fiber$jscomp$0) {\n if (isHydrating) {\n var nextInstance = nextHydratableInstance;\n if (nextInstance) {\n var firstAttemptedInstance = nextInstance;\n if (!tryHydrate(fiber$jscomp$0, nextInstance)) {\n nextInstance = shim$1(firstAttemptedInstance);\n if (!nextInstance || !tryHydrate(fiber$jscomp$0, nextInstance)) {\n fiber$jscomp$0.effectTag |= 2;\n isHydrating = !1;\n hydrationParentFiber = fiber$jscomp$0;\n return;\n }\n var returnFiber = hydrationParentFiber,\n fiber = createFiber(5, null, null, 0);\n fiber.elementType = \"DELETED\";\n fiber.type = \"DELETED\";\n fiber.stateNode = firstAttemptedInstance;\n fiber.return = returnFiber;\n fiber.effectTag = 8;\n null !== returnFiber.lastEffect\n ? ((returnFiber.lastEffect.nextEffect = fiber),\n (returnFiber.lastEffect = fiber))\n : (returnFiber.firstEffect = returnFiber.lastEffect = fiber);\n }\n hydrationParentFiber = fiber$jscomp$0;\n nextHydratableInstance = shim$1(nextInstance);\n } else\n (fiber$jscomp$0.effectTag |= 2),\n (isHydrating = !1),\n (hydrationParentFiber = fiber$jscomp$0);\n }\n}\nvar ReactCurrentOwner$3 = ReactSharedInternals.ReactCurrentOwner;\nfunction reconcileChildren(\n current$$1,\n workInProgress,\n nextChildren,\n renderExpirationTime\n) {\n workInProgress.child =\n null === current$$1\n ? mountChildFibers(\n workInProgress,\n null,\n nextChildren,\n renderExpirationTime\n )\n : reconcileChildFibers(\n workInProgress,\n current$$1.child,\n nextChildren,\n renderExpirationTime\n );\n}\nfunction updateForwardRef(\n current$$1,\n workInProgress,\n Component,\n nextProps,\n renderExpirationTime\n) {\n Component = Component.render;\n var ref = workInProgress.ref;\n prepareToReadContext(workInProgress, renderExpirationTime);\n nextProps = Component(nextProps, ref);\n workInProgress.effectTag |= 1;\n reconcileChildren(\n current$$1,\n workInProgress,\n nextProps,\n renderExpirationTime\n );\n return workInProgress.child;\n}\nfunction updateMemoComponent(\n current$$1,\n workInProgress,\n Component,\n nextProps,\n updateExpirationTime,\n renderExpirationTime\n) {\n if (null === current$$1) {\n var type = Component.type;\n if (\n \"function\" === typeof type &&\n !shouldConstruct(type) &&\n void 0 === type.defaultProps &&\n null === Component.compare\n )\n return (\n (workInProgress.tag = 15),\n (workInProgress.type = type),\n updateSimpleMemoComponent(\n current$$1,\n workInProgress,\n type,\n nextProps,\n updateExpirationTime,\n renderExpirationTime\n )\n );\n current$$1 = createFiberFromTypeAndProps(\n Component.type,\n null,\n nextProps,\n null,\n workInProgress.mode,\n renderExpirationTime\n );\n current$$1.ref = workInProgress.ref;\n current$$1.return = workInProgress;\n return (workInProgress.child = current$$1);\n }\n type = current$$1.child;\n if (\n updateExpirationTime < renderExpirationTime &&\n ((updateExpirationTime = type.memoizedProps),\n (Component = Component.compare),\n (Component = null !== Component ? Component : shallowEqual),\n Component(updateExpirationTime, nextProps) &&\n current$$1.ref === workInProgress.ref)\n )\n return bailoutOnAlreadyFinishedWork(\n current$$1,\n workInProgress,\n renderExpirationTime\n );\n workInProgress.effectTag |= 1;\n current$$1 = createWorkInProgress(type, nextProps, renderExpirationTime);\n current$$1.ref = workInProgress.ref;\n current$$1.return = workInProgress;\n return (workInProgress.child = current$$1);\n}\nfunction updateSimpleMemoComponent(\n current$$1,\n workInProgress,\n Component,\n nextProps,\n updateExpirationTime,\n renderExpirationTime\n) {\n return null !== current$$1 &&\n updateExpirationTime < renderExpirationTime &&\n shallowEqual(current$$1.memoizedProps, nextProps) &&\n current$$1.ref === workInProgress.ref\n ? bailoutOnAlreadyFinishedWork(\n current$$1,\n workInProgress,\n renderExpirationTime\n )\n : updateFunctionComponent(\n current$$1,\n workInProgress,\n Component,\n nextProps,\n renderExpirationTime\n );\n}\nfunction markRef(current$$1, workInProgress) {\n var ref = workInProgress.ref;\n if (\n (null === current$$1 && null !== ref) ||\n (null !== current$$1 && current$$1.ref !== ref)\n )\n workInProgress.effectTag |= 128;\n}\nfunction updateFunctionComponent(\n current$$1,\n workInProgress,\n Component,\n nextProps,\n renderExpirationTime\n) {\n var unmaskedContext = isContextProvider(Component)\n ? previousContext\n : contextStackCursor.current;\n unmaskedContext = getMaskedContext(workInProgress, unmaskedContext);\n prepareToReadContext(workInProgress, renderExpirationTime);\n Component = Component(nextProps, unmaskedContext);\n workInProgress.effectTag |= 1;\n reconcileChildren(\n current$$1,\n workInProgress,\n Component,\n renderExpirationTime\n );\n return workInProgress.child;\n}\nfunction updateClassComponent(\n current$$1,\n workInProgress,\n Component,\n nextProps,\n renderExpirationTime\n) {\n if (isContextProvider(Component)) {\n var hasContext = !0;\n pushContextProvider(workInProgress);\n } else hasContext = !1;\n prepareToReadContext(workInProgress, renderExpirationTime);\n if (null === workInProgress.stateNode)\n null !== current$$1 &&\n ((current$$1.alternate = null),\n (workInProgress.alternate = null),\n (workInProgress.effectTag |= 2)),\n constructClassInstance(\n workInProgress,\n Component,\n nextProps,\n renderExpirationTime\n ),\n mountClassInstance(\n workInProgress,\n Component,\n nextProps,\n renderExpirationTime\n ),\n (nextProps = !0);\n else if (null === current$$1) {\n var instance = workInProgress.stateNode,\n oldProps = workInProgress.memoizedProps;\n instance.props = oldProps;\n var oldContext = instance.context,\n contextType = Component.contextType;\n \"object\" === typeof contextType && null !== contextType\n ? (contextType = ReactCurrentOwner$4.currentDispatcher.readContext(\n contextType\n ))\n : ((contextType = isContextProvider(Component)\n ? previousContext\n : contextStackCursor.current),\n (contextType = getMaskedContext(workInProgress, contextType)));\n var getDerivedStateFromProps = Component.getDerivedStateFromProps,\n hasNewLifecycles =\n \"function\" === typeof getDerivedStateFromProps ||\n \"function\" === typeof instance.getSnapshotBeforeUpdate;\n hasNewLifecycles ||\n (\"function\" !== typeof instance.UNSAFE_componentWillReceiveProps &&\n \"function\" !== typeof instance.componentWillReceiveProps) ||\n ((oldProps !== nextProps || oldContext !== contextType) &&\n callComponentWillReceiveProps(\n workInProgress,\n instance,\n nextProps,\n contextType\n ));\n hasForceUpdate = !1;\n var oldState = workInProgress.memoizedState;\n oldContext = instance.state = oldState;\n var updateQueue = workInProgress.updateQueue;\n null !== updateQueue &&\n (processUpdateQueue(\n workInProgress,\n updateQueue,\n nextProps,\n instance,\n renderExpirationTime\n ),\n (oldContext = workInProgress.memoizedState));\n oldProps !== nextProps ||\n oldState !== oldContext ||\n didPerformWorkStackCursor.current ||\n hasForceUpdate\n ? (\"function\" === typeof getDerivedStateFromProps &&\n (applyDerivedStateFromProps(\n workInProgress,\n Component,\n getDerivedStateFromProps,\n nextProps\n ),\n (oldContext = workInProgress.memoizedState)),\n (oldProps =\n hasForceUpdate ||\n checkShouldComponentUpdate(\n workInProgress,\n Component,\n oldProps,\n nextProps,\n oldState,\n oldContext,\n contextType\n ))\n ? (hasNewLifecycles ||\n (\"function\" !== typeof instance.UNSAFE_componentWillMount &&\n \"function\" !== typeof instance.componentWillMount) ||\n (\"function\" === typeof instance.componentWillMount &&\n instance.componentWillMount(),\n \"function\" === typeof instance.UNSAFE_componentWillMount &&\n instance.UNSAFE_componentWillMount()),\n \"function\" === typeof instance.componentDidMount &&\n (workInProgress.effectTag |= 4))\n : (\"function\" === typeof instance.componentDidMount &&\n (workInProgress.effectTag |= 4),\n (workInProgress.memoizedProps = nextProps),\n (workInProgress.memoizedState = oldContext)),\n (instance.props = nextProps),\n (instance.state = oldContext),\n (instance.context = contextType),\n (nextProps = oldProps))\n : (\"function\" === typeof instance.componentDidMount &&\n (workInProgress.effectTag |= 4),\n (nextProps = !1));\n } else\n (instance = workInProgress.stateNode),\n (oldProps = workInProgress.memoizedProps),\n (instance.props =\n workInProgress.type === workInProgress.elementType\n ? oldProps\n : resolveDefaultProps(workInProgress.type, oldProps)),\n (oldContext = instance.context),\n (contextType = Component.contextType),\n \"object\" === typeof contextType && null !== contextType\n ? (contextType = ReactCurrentOwner$4.currentDispatcher.readContext(\n contextType\n ))\n : ((contextType = isContextProvider(Component)\n ? previousContext\n : contextStackCursor.current),\n (contextType = getMaskedContext(workInProgress, contextType))),\n (getDerivedStateFromProps = Component.getDerivedStateFromProps),\n (hasNewLifecycles =\n \"function\" === typeof getDerivedStateFromProps ||\n \"function\" === typeof instance.getSnapshotBeforeUpdate) ||\n (\"function\" !== typeof instance.UNSAFE_componentWillReceiveProps &&\n \"function\" !== typeof instance.componentWillReceiveProps) ||\n ((oldProps !== nextProps || oldContext !== contextType) &&\n callComponentWillReceiveProps(\n workInProgress,\n instance,\n nextProps,\n contextType\n )),\n (hasForceUpdate = !1),\n (oldContext = workInProgress.memoizedState),\n (oldState = instance.state = oldContext),\n (updateQueue = workInProgress.updateQueue),\n null !== updateQueue &&\n (processUpdateQueue(\n workInProgress,\n updateQueue,\n nextProps,\n instance,\n renderExpirationTime\n ),\n (oldState = workInProgress.memoizedState)),\n oldProps !== nextProps ||\n oldContext !== oldState ||\n didPerformWorkStackCursor.current ||\n hasForceUpdate\n ? (\"function\" === typeof getDerivedStateFromProps &&\n (applyDerivedStateFromProps(\n workInProgress,\n Component,\n getDerivedStateFromProps,\n nextProps\n ),\n (oldState = workInProgress.memoizedState)),\n (getDerivedStateFromProps =\n hasForceUpdate ||\n checkShouldComponentUpdate(\n workInProgress,\n Component,\n oldProps,\n nextProps,\n oldContext,\n oldState,\n contextType\n ))\n ? (hasNewLifecycles ||\n (\"function\" !== typeof instance.UNSAFE_componentWillUpdate &&\n \"function\" !== typeof instance.componentWillUpdate) ||\n (\"function\" === typeof instance.componentWillUpdate &&\n instance.componentWillUpdate(\n nextProps,\n oldState,\n contextType\n ),\n \"function\" === typeof instance.UNSAFE_componentWillUpdate &&\n instance.UNSAFE_componentWillUpdate(\n nextProps,\n oldState,\n contextType\n )),\n \"function\" === typeof instance.componentDidUpdate &&\n (workInProgress.effectTag |= 4),\n \"function\" === typeof instance.getSnapshotBeforeUpdate &&\n (workInProgress.effectTag |= 256))\n : (\"function\" !== typeof instance.componentDidUpdate ||\n (oldProps === current$$1.memoizedProps &&\n oldContext === current$$1.memoizedState) ||\n (workInProgress.effectTag |= 4),\n \"function\" !== typeof instance.getSnapshotBeforeUpdate ||\n (oldProps === current$$1.memoizedProps &&\n oldContext === current$$1.memoizedState) ||\n (workInProgress.effectTag |= 256),\n (workInProgress.memoizedProps = nextProps),\n (workInProgress.memoizedState = oldState)),\n (instance.props = nextProps),\n (instance.state = oldState),\n (instance.context = contextType),\n (nextProps = getDerivedStateFromProps))\n : (\"function\" !== typeof instance.componentDidUpdate ||\n (oldProps === current$$1.memoizedProps &&\n oldContext === current$$1.memoizedState) ||\n (workInProgress.effectTag |= 4),\n \"function\" !== typeof instance.getSnapshotBeforeUpdate ||\n (oldProps === current$$1.memoizedProps &&\n oldContext === current$$1.memoizedState) ||\n (workInProgress.effectTag |= 256),\n (nextProps = !1));\n return finishClassComponent(\n current$$1,\n workInProgress,\n Component,\n nextProps,\n hasContext,\n renderExpirationTime\n );\n}\nfunction finishClassComponent(\n current$$1,\n workInProgress,\n Component,\n shouldUpdate,\n hasContext,\n renderExpirationTime\n) {\n markRef(current$$1, workInProgress);\n var didCaptureError = 0 !== (workInProgress.effectTag & 64);\n if (!shouldUpdate && !didCaptureError)\n return (\n hasContext && invalidateContextProvider(workInProgress, Component, !1),\n bailoutOnAlreadyFinishedWork(\n current$$1,\n workInProgress,\n renderExpirationTime\n )\n );\n shouldUpdate = workInProgress.stateNode;\n ReactCurrentOwner$3.current = workInProgress;\n var nextChildren =\n didCaptureError && \"function\" !== typeof Component.getDerivedStateFromError\n ? null\n : shouldUpdate.render();\n workInProgress.effectTag |= 1;\n null !== current$$1 && didCaptureError\n ? ((workInProgress.child = reconcileChildFibers(\n workInProgress,\n current$$1.child,\n null,\n renderExpirationTime\n )),\n (workInProgress.child = reconcileChildFibers(\n workInProgress,\n null,\n nextChildren,\n renderExpirationTime\n )))\n : reconcileChildren(\n current$$1,\n workInProgress,\n nextChildren,\n renderExpirationTime\n );\n workInProgress.memoizedState = shouldUpdate.state;\n hasContext && invalidateContextProvider(workInProgress, Component, !0);\n return workInProgress.child;\n}\nfunction pushHostRootContext(workInProgress) {\n var root = workInProgress.stateNode;\n root.pendingContext\n ? pushTopLevelContextObject(\n workInProgress,\n root.pendingContext,\n root.pendingContext !== root.context\n )\n : root.context &&\n pushTopLevelContextObject(workInProgress, root.context, !1);\n pushHostContainer(workInProgress, root.containerInfo);\n}\nfunction updateSuspenseComponent(\n current$$1,\n workInProgress,\n renderExpirationTime\n) {\n var mode = workInProgress.mode,\n nextProps = workInProgress.pendingProps,\n nextState = workInProgress.memoizedState;\n if (0 === (workInProgress.effectTag & 64)) {\n nextState = null;\n var nextDidTimeout = !1;\n } else\n (nextState = { timedOutAt: null !== nextState ? nextState.timedOutAt : 0 }),\n (nextDidTimeout = !0),\n (workInProgress.effectTag &= -65);\n null === current$$1\n ? nextDidTimeout\n ? ((nextDidTimeout = nextProps.fallback),\n (nextProps = createFiberFromFragment(null, mode, 0, null)),\n 0 === (workInProgress.mode & 1) &&\n (nextProps.child =\n null !== workInProgress.memoizedState\n ? workInProgress.child.child\n : workInProgress.child),\n (mode = createFiberFromFragment(\n nextDidTimeout,\n mode,\n renderExpirationTime,\n null\n )),\n (nextProps.sibling = mode),\n (renderExpirationTime = nextProps),\n (renderExpirationTime.return = mode.return = workInProgress))\n : (renderExpirationTime = mode = mountChildFibers(\n workInProgress,\n null,\n nextProps.children,\n renderExpirationTime\n ))\n : null !== current$$1.memoizedState\n ? ((mode = current$$1.child),\n (current$$1 = mode.sibling),\n nextDidTimeout\n ? ((renderExpirationTime = nextProps.fallback),\n (nextProps = createWorkInProgress(mode, mode.pendingProps, 0)),\n (nextProps.effectTag |= 2),\n 0 === (workInProgress.mode & 1) &&\n ((nextDidTimeout =\n null !== workInProgress.memoizedState\n ? workInProgress.child.child\n : workInProgress.child),\n nextDidTimeout !== mode.child &&\n (nextProps.child = nextDidTimeout)),\n (mode = nextProps.sibling = createWorkInProgress(\n current$$1,\n renderExpirationTime,\n current$$1.expirationTime\n )),\n (mode.effectTag |= 2),\n (renderExpirationTime = nextProps),\n (nextProps.childExpirationTime = 0),\n (renderExpirationTime.return = mode.return = workInProgress))\n : (renderExpirationTime = mode = reconcileChildFibers(\n workInProgress,\n mode.child,\n nextProps.children,\n renderExpirationTime\n )))\n : ((current$$1 = current$$1.child),\n nextDidTimeout\n ? ((nextDidTimeout = nextProps.fallback),\n (nextProps = createFiberFromFragment(null, mode, 0, null)),\n (nextProps.effectTag |= 2),\n (nextProps.child = current$$1),\n (current$$1.return = nextProps),\n 0 === (workInProgress.mode & 1) &&\n (nextProps.child =\n null !== workInProgress.memoizedState\n ? workInProgress.child.child\n : workInProgress.child),\n (mode = nextProps.sibling = createFiberFromFragment(\n nextDidTimeout,\n mode,\n renderExpirationTime,\n null\n )),\n (mode.effectTag |= 2),\n (renderExpirationTime = nextProps),\n (nextProps.childExpirationTime = 0),\n (renderExpirationTime.return = mode.return = workInProgress))\n : (mode = renderExpirationTime = reconcileChildFibers(\n workInProgress,\n current$$1,\n nextProps.children,\n renderExpirationTime\n )));\n workInProgress.memoizedState = nextState;\n workInProgress.child = renderExpirationTime;\n return mode;\n}\nfunction bailoutOnAlreadyFinishedWork(\n current$$1,\n workInProgress,\n renderExpirationTime\n) {\n null !== current$$1 &&\n (workInProgress.firstContextDependency = current$$1.firstContextDependency);\n if (workInProgress.childExpirationTime < renderExpirationTime) return null;\n invariant(\n null === current$$1 || workInProgress.child === current$$1.child,\n \"Resuming work not yet implemented.\"\n );\n if (null !== workInProgress.child) {\n current$$1 = workInProgress.child;\n renderExpirationTime = createWorkInProgress(\n current$$1,\n current$$1.pendingProps,\n current$$1.expirationTime\n );\n workInProgress.child = renderExpirationTime;\n for (\n renderExpirationTime.return = workInProgress;\n null !== current$$1.sibling;\n\n )\n (current$$1 = current$$1.sibling),\n (renderExpirationTime = renderExpirationTime.sibling = createWorkInProgress(\n current$$1,\n current$$1.pendingProps,\n current$$1.expirationTime\n )),\n (renderExpirationTime.return = workInProgress);\n renderExpirationTime.sibling = null;\n }\n return workInProgress.child;\n}\nfunction beginWork(current$$1, workInProgress, renderExpirationTime) {\n var updateExpirationTime = workInProgress.expirationTime;\n if (\n null !== current$$1 &&\n current$$1.memoizedProps === workInProgress.pendingProps &&\n !didPerformWorkStackCursor.current &&\n updateExpirationTime < renderExpirationTime\n ) {\n switch (workInProgress.tag) {\n case 3:\n pushHostRootContext(workInProgress);\n break;\n case 5:\n pushHostContext(workInProgress);\n break;\n case 1:\n isContextProvider(workInProgress.type) &&\n pushContextProvider(workInProgress);\n break;\n case 4:\n pushHostContainer(\n workInProgress,\n workInProgress.stateNode.containerInfo\n );\n break;\n case 10:\n pushProvider(workInProgress, workInProgress.memoizedProps.value);\n break;\n case 13:\n if (null !== workInProgress.memoizedState) {\n updateExpirationTime = workInProgress.child.childExpirationTime;\n if (\n 0 !== updateExpirationTime &&\n updateExpirationTime >= renderExpirationTime\n )\n return updateSuspenseComponent(\n current$$1,\n workInProgress,\n renderExpirationTime\n );\n workInProgress = bailoutOnAlreadyFinishedWork(\n current$$1,\n workInProgress,\n renderExpirationTime\n );\n return null !== workInProgress ? workInProgress.sibling : null;\n }\n }\n return bailoutOnAlreadyFinishedWork(\n current$$1,\n workInProgress,\n renderExpirationTime\n );\n }\n workInProgress.expirationTime = 0;\n switch (workInProgress.tag) {\n case 2:\n updateExpirationTime = workInProgress.elementType;\n null !== current$$1 &&\n ((current$$1.alternate = null),\n (workInProgress.alternate = null),\n (workInProgress.effectTag |= 2));\n current$$1 = workInProgress.pendingProps;\n var context = getMaskedContext(\n workInProgress,\n contextStackCursor.current\n );\n prepareToReadContext(workInProgress, renderExpirationTime);\n context = updateExpirationTime(current$$1, context);\n workInProgress.effectTag |= 1;\n if (\n \"object\" === typeof context &&\n null !== context &&\n \"function\" === typeof context.render &&\n void 0 === context.$$typeof\n ) {\n workInProgress.tag = 1;\n if (isContextProvider(updateExpirationTime)) {\n var hasContext = !0;\n pushContextProvider(workInProgress);\n } else hasContext = !1;\n workInProgress.memoizedState =\n null !== context.state && void 0 !== context.state\n ? context.state\n : null;\n var getDerivedStateFromProps =\n updateExpirationTime.getDerivedStateFromProps;\n \"function\" === typeof getDerivedStateFromProps &&\n applyDerivedStateFromProps(\n workInProgress,\n updateExpirationTime,\n getDerivedStateFromProps,\n current$$1\n );\n context.updater = classComponentUpdater;\n workInProgress.stateNode = context;\n context._reactInternalFiber = workInProgress;\n mountClassInstance(\n workInProgress,\n updateExpirationTime,\n current$$1,\n renderExpirationTime\n );\n workInProgress = finishClassComponent(\n null,\n workInProgress,\n updateExpirationTime,\n !0,\n hasContext,\n renderExpirationTime\n );\n } else\n (workInProgress.tag = 0),\n reconcileChildren(\n null,\n workInProgress,\n context,\n renderExpirationTime\n ),\n (workInProgress = workInProgress.child);\n return workInProgress;\n case 16:\n context = workInProgress.elementType;\n null !== current$$1 &&\n ((current$$1.alternate = null),\n (workInProgress.alternate = null),\n (workInProgress.effectTag |= 2));\n hasContext = workInProgress.pendingProps;\n current$$1 = readLazyComponentType(context);\n workInProgress.type = current$$1;\n context = workInProgress.tag = resolveLazyComponentTag(current$$1);\n hasContext = resolveDefaultProps(current$$1, hasContext);\n getDerivedStateFromProps = void 0;\n switch (context) {\n case 0:\n getDerivedStateFromProps = updateFunctionComponent(\n null,\n workInProgress,\n current$$1,\n hasContext,\n renderExpirationTime\n );\n break;\n case 1:\n getDerivedStateFromProps = updateClassComponent(\n null,\n workInProgress,\n current$$1,\n hasContext,\n renderExpirationTime\n );\n break;\n case 11:\n getDerivedStateFromProps = updateForwardRef(\n null,\n workInProgress,\n current$$1,\n hasContext,\n renderExpirationTime\n );\n break;\n case 14:\n getDerivedStateFromProps = updateMemoComponent(\n null,\n workInProgress,\n current$$1,\n resolveDefaultProps(current$$1.type, hasContext),\n updateExpirationTime,\n renderExpirationTime\n );\n break;\n default:\n invariant(\n !1,\n \"Element type is invalid. Received a promise that resolves to: %s. Promise elements must resolve to a class or function.\",\n current$$1\n );\n }\n return getDerivedStateFromProps;\n case 0:\n return (\n (updateExpirationTime = workInProgress.type),\n (context = workInProgress.pendingProps),\n (context =\n workInProgress.elementType === updateExpirationTime\n ? context\n : resolveDefaultProps(updateExpirationTime, context)),\n updateFunctionComponent(\n current$$1,\n workInProgress,\n updateExpirationTime,\n context,\n renderExpirationTime\n )\n );\n case 1:\n return (\n (updateExpirationTime = workInProgress.type),\n (context = workInProgress.pendingProps),\n (context =\n workInProgress.elementType === updateExpirationTime\n ? context\n : resolveDefaultProps(updateExpirationTime, context)),\n updateClassComponent(\n current$$1,\n workInProgress,\n updateExpirationTime,\n context,\n renderExpirationTime\n )\n );\n case 3:\n return (\n pushHostRootContext(workInProgress),\n (updateExpirationTime = workInProgress.updateQueue),\n invariant(\n null !== updateExpirationTime,\n \"If the root does not have an updateQueue, we should have already bailed out. This error is likely caused by a bug in React. Please file an issue.\"\n ),\n (context = workInProgress.memoizedState),\n (context = null !== context ? context.element : null),\n processUpdateQueue(\n workInProgress,\n updateExpirationTime,\n workInProgress.pendingProps,\n null,\n renderExpirationTime\n ),\n (updateExpirationTime = workInProgress.memoizedState.element),\n updateExpirationTime === context\n ? (workInProgress = bailoutOnAlreadyFinishedWork(\n current$$1,\n workInProgress,\n renderExpirationTime\n ))\n : (reconcileChildren(\n current$$1,\n workInProgress,\n updateExpirationTime,\n renderExpirationTime\n ),\n (workInProgress = workInProgress.child)),\n workInProgress\n );\n case 5:\n return (\n pushHostContext(workInProgress),\n null === current$$1 && tryToClaimNextHydratableInstance(workInProgress),\n (updateExpirationTime = workInProgress.pendingProps.children),\n markRef(current$$1, workInProgress),\n reconcileChildren(\n current$$1,\n workInProgress,\n updateExpirationTime,\n renderExpirationTime\n ),\n (workInProgress = workInProgress.child),\n workInProgress\n );\n case 6:\n return (\n null === current$$1 && tryToClaimNextHydratableInstance(workInProgress),\n null\n );\n case 13:\n return updateSuspenseComponent(\n current$$1,\n workInProgress,\n renderExpirationTime\n );\n case 4:\n return (\n pushHostContainer(\n workInProgress,\n workInProgress.stateNode.containerInfo\n ),\n (updateExpirationTime = workInProgress.pendingProps),\n null === current$$1\n ? (workInProgress.child = reconcileChildFibers(\n workInProgress,\n null,\n updateExpirationTime,\n renderExpirationTime\n ))\n : reconcileChildren(\n current$$1,\n workInProgress,\n updateExpirationTime,\n renderExpirationTime\n ),\n workInProgress.child\n );\n case 11:\n return (\n (updateExpirationTime = workInProgress.type),\n (context = workInProgress.pendingProps),\n (context =\n workInProgress.elementType === updateExpirationTime\n ? context\n : resolveDefaultProps(updateExpirationTime, context)),\n updateForwardRef(\n current$$1,\n workInProgress,\n updateExpirationTime,\n context,\n renderExpirationTime\n )\n );\n case 7:\n return (\n reconcileChildren(\n current$$1,\n workInProgress,\n workInProgress.pendingProps,\n renderExpirationTime\n ),\n workInProgress.child\n );\n case 8:\n return (\n reconcileChildren(\n current$$1,\n workInProgress,\n workInProgress.pendingProps.children,\n renderExpirationTime\n ),\n workInProgress.child\n );\n case 12:\n return (\n reconcileChildren(\n current$$1,\n workInProgress,\n workInProgress.pendingProps.children,\n renderExpirationTime\n ),\n workInProgress.child\n );\n case 10:\n a: {\n updateExpirationTime = workInProgress.type._context;\n context = workInProgress.pendingProps;\n getDerivedStateFromProps = workInProgress.memoizedProps;\n hasContext = context.value;\n pushProvider(workInProgress, hasContext);\n if (null !== getDerivedStateFromProps) {\n var oldValue = getDerivedStateFromProps.value;\n hasContext =\n (oldValue === hasContext &&\n (0 !== oldValue || 1 / oldValue === 1 / hasContext)) ||\n (oldValue !== oldValue && hasContext !== hasContext)\n ? 0\n : (\"function\" ===\n typeof updateExpirationTime._calculateChangedBits\n ? updateExpirationTime._calculateChangedBits(\n oldValue,\n hasContext\n )\n : 1073741823) | 0;\n if (0 === hasContext) {\n if (\n getDerivedStateFromProps.children === context.children &&\n !didPerformWorkStackCursor.current\n ) {\n workInProgress = bailoutOnAlreadyFinishedWork(\n current$$1,\n workInProgress,\n renderExpirationTime\n );\n break a;\n }\n } else\n for (\n getDerivedStateFromProps = workInProgress.child,\n null !== getDerivedStateFromProps &&\n (getDerivedStateFromProps.return = workInProgress);\n null !== getDerivedStateFromProps;\n\n ) {\n oldValue = getDerivedStateFromProps.firstContextDependency;\n if (null !== oldValue) {\n do {\n if (\n oldValue.context === updateExpirationTime &&\n 0 !== (oldValue.observedBits & hasContext)\n ) {\n if (1 === getDerivedStateFromProps.tag) {\n var nextFiber = createUpdate(renderExpirationTime);\n nextFiber.tag = 2;\n enqueueUpdate(getDerivedStateFromProps, nextFiber);\n }\n getDerivedStateFromProps.expirationTime <\n renderExpirationTime &&\n (getDerivedStateFromProps.expirationTime = renderExpirationTime);\n nextFiber = getDerivedStateFromProps.alternate;\n null !== nextFiber &&\n nextFiber.expirationTime < renderExpirationTime &&\n (nextFiber.expirationTime = renderExpirationTime);\n for (\n var node = getDerivedStateFromProps.return;\n null !== node;\n\n ) {\n nextFiber = node.alternate;\n if (node.childExpirationTime < renderExpirationTime)\n (node.childExpirationTime = renderExpirationTime),\n null !== nextFiber &&\n nextFiber.childExpirationTime <\n renderExpirationTime &&\n (nextFiber.childExpirationTime = renderExpirationTime);\n else if (\n null !== nextFiber &&\n nextFiber.childExpirationTime < renderExpirationTime\n )\n nextFiber.childExpirationTime = renderExpirationTime;\n else break;\n node = node.return;\n }\n }\n nextFiber = getDerivedStateFromProps.child;\n oldValue = oldValue.next;\n } while (null !== oldValue);\n } else\n nextFiber =\n 10 === getDerivedStateFromProps.tag\n ? getDerivedStateFromProps.type === workInProgress.type\n ? null\n : getDerivedStateFromProps.child\n : getDerivedStateFromProps.child;\n if (null !== nextFiber)\n nextFiber.return = getDerivedStateFromProps;\n else\n for (\n nextFiber = getDerivedStateFromProps;\n null !== nextFiber;\n\n ) {\n if (nextFiber === workInProgress) {\n nextFiber = null;\n break;\n }\n getDerivedStateFromProps = nextFiber.sibling;\n if (null !== getDerivedStateFromProps) {\n getDerivedStateFromProps.return = nextFiber.return;\n nextFiber = getDerivedStateFromProps;\n break;\n }\n nextFiber = nextFiber.return;\n }\n getDerivedStateFromProps = nextFiber;\n }\n }\n reconcileChildren(\n current$$1,\n workInProgress,\n context.children,\n renderExpirationTime\n );\n workInProgress = workInProgress.child;\n }\n return workInProgress;\n case 9:\n return (\n (context = workInProgress.type),\n (hasContext = workInProgress.pendingProps),\n (updateExpirationTime = hasContext.children),\n prepareToReadContext(workInProgress, renderExpirationTime),\n (context = readContext(context, hasContext.unstable_observedBits)),\n (updateExpirationTime = updateExpirationTime(context)),\n (workInProgress.effectTag |= 1),\n reconcileChildren(\n current$$1,\n workInProgress,\n updateExpirationTime,\n renderExpirationTime\n ),\n workInProgress.child\n );\n case 14:\n return (\n (context = workInProgress.type),\n (hasContext = resolveDefaultProps(\n context.type,\n workInProgress.pendingProps\n )),\n updateMemoComponent(\n current$$1,\n workInProgress,\n context,\n hasContext,\n updateExpirationTime,\n renderExpirationTime\n )\n );\n case 15:\n return updateSimpleMemoComponent(\n current$$1,\n workInProgress,\n workInProgress.type,\n workInProgress.pendingProps,\n updateExpirationTime,\n renderExpirationTime\n );\n case 17:\n return (\n (updateExpirationTime = workInProgress.type),\n (context = workInProgress.pendingProps),\n (context =\n workInProgress.elementType === updateExpirationTime\n ? context\n : resolveDefaultProps(updateExpirationTime, context)),\n null !== current$$1 &&\n ((current$$1.alternate = null),\n (workInProgress.alternate = null),\n (workInProgress.effectTag |= 2)),\n (workInProgress.tag = 1),\n isContextProvider(updateExpirationTime)\n ? ((current$$1 = !0), pushContextProvider(workInProgress))\n : (current$$1 = !1),\n prepareToReadContext(workInProgress, renderExpirationTime),\n constructClassInstance(\n workInProgress,\n updateExpirationTime,\n context,\n renderExpirationTime\n ),\n mountClassInstance(\n workInProgress,\n updateExpirationTime,\n context,\n renderExpirationTime\n ),\n finishClassComponent(\n null,\n workInProgress,\n updateExpirationTime,\n !0,\n current$$1,\n renderExpirationTime\n )\n );\n default:\n invariant(\n !1,\n \"Unknown unit of work tag. This error is likely caused by a bug in React. Please file an issue.\"\n );\n }\n}\nvar appendAllChildren = void 0,\n updateHostContainer = void 0,\n updateHostComponent$1 = void 0,\n updateHostText$1 = void 0;\nappendAllChildren = function(parent, workInProgress) {\n for (var node = workInProgress.child; null !== node; ) {\n if (5 === node.tag || 6 === node.tag) parent._children.push(node.stateNode);\n else if (4 !== node.tag && null !== node.child) {\n node.child.return = node;\n node = node.child;\n continue;\n }\n if (node === workInProgress) break;\n for (; null === node.sibling; ) {\n if (null === node.return || node.return === workInProgress) return;\n node = node.return;\n }\n node.sibling.return = node.return;\n node = node.sibling;\n }\n};\nupdateHostContainer = function() {};\nupdateHostComponent$1 = function(current, workInProgress, type, newProps) {\n current.memoizedProps !== newProps &&\n (requiredContext(contextStackCursor$1.current),\n (workInProgress.updateQueue = UPDATE_SIGNAL)) &&\n (workInProgress.effectTag |= 4);\n};\nupdateHostText$1 = function(current, workInProgress, oldText, newText) {\n oldText !== newText && (workInProgress.effectTag |= 4);\n};\nfunction logCapturedError(capturedError) {\n var componentStack = capturedError.componentStack,\n error = capturedError.error;\n if (error instanceof Error) {\n capturedError = error.message;\n var name = error.name;\n try {\n error.message =\n (capturedError ? name + \": \" + capturedError : name) +\n \"\\n\\nThis error is located at:\" +\n componentStack;\n } catch (e) {}\n } else\n error =\n \"string\" === typeof error\n ? Error(error + \"\\n\\nThis error is located at:\" + componentStack)\n : Error(\"Unspecified error at:\" + componentStack);\n ExceptionsManager.handleException(error, !1);\n}\nfunction logError(boundary, errorInfo) {\n var source = errorInfo.source,\n stack = errorInfo.stack;\n null === stack &&\n null !== source &&\n (stack = getStackByFiberInDevAndProd(source));\n errorInfo = {\n componentName: null !== source ? getComponentName(source.type) : null,\n componentStack: null !== stack ? stack : \"\",\n error: errorInfo.value,\n errorBoundary: null,\n errorBoundaryName: null,\n errorBoundaryFound: !1,\n willRetry: !1\n };\n null !== boundary &&\n 1 === boundary.tag &&\n ((errorInfo.errorBoundary = boundary.stateNode),\n (errorInfo.errorBoundaryName = getComponentName(boundary.type)),\n (errorInfo.errorBoundaryFound = !0),\n (errorInfo.willRetry = !0));\n try {\n logCapturedError(errorInfo);\n } catch (e) {\n setTimeout(function() {\n throw e;\n });\n }\n}\nfunction safelyDetachRef(current$$1) {\n var ref = current$$1.ref;\n if (null !== ref)\n if (\"function\" === typeof ref)\n try {\n ref(null);\n } catch (refError) {\n captureCommitPhaseError(current$$1, refError);\n }\n else ref.current = null;\n}\nfunction commitUnmount(current$$1$jscomp$0) {\n \"function\" === typeof onCommitFiberUnmount &&\n onCommitFiberUnmount(current$$1$jscomp$0);\n switch (current$$1$jscomp$0.tag) {\n case 0:\n case 11:\n case 14:\n case 15:\n var updateQueue = current$$1$jscomp$0.updateQueue;\n if (\n null !== updateQueue &&\n ((updateQueue = updateQueue.lastEffect), null !== updateQueue)\n ) {\n var effect = (updateQueue = updateQueue.next);\n do {\n var destroy = effect.destroy;\n if (null !== destroy) {\n var current$$1 = current$$1$jscomp$0;\n try {\n destroy();\n } catch (error) {\n captureCommitPhaseError(current$$1, error);\n }\n }\n effect = effect.next;\n } while (effect !== updateQueue);\n }\n break;\n case 1:\n safelyDetachRef(current$$1$jscomp$0);\n updateQueue = current$$1$jscomp$0.stateNode;\n if (\"function\" === typeof updateQueue.componentWillUnmount)\n try {\n (updateQueue.props = current$$1$jscomp$0.memoizedProps),\n (updateQueue.state = current$$1$jscomp$0.memoizedState),\n updateQueue.componentWillUnmount();\n } catch (unmountError) {\n captureCommitPhaseError(current$$1$jscomp$0, unmountError);\n }\n break;\n case 5:\n safelyDetachRef(current$$1$jscomp$0);\n break;\n case 4:\n unmountHostComponents(current$$1$jscomp$0);\n }\n}\nfunction isHostParent(fiber) {\n return 5 === fiber.tag || 3 === fiber.tag || 4 === fiber.tag;\n}\nfunction commitPlacement(finishedWork) {\n a: {\n for (var parent = finishedWork.return; null !== parent; ) {\n if (isHostParent(parent)) {\n var parentFiber = parent;\n break a;\n }\n parent = parent.return;\n }\n invariant(\n !1,\n \"Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.\"\n );\n parentFiber = void 0;\n }\n var isContainer = (parent = void 0);\n switch (parentFiber.tag) {\n case 5:\n parent = parentFiber.stateNode;\n isContainer = !1;\n break;\n case 3:\n parent = parentFiber.stateNode.containerInfo;\n isContainer = !0;\n break;\n case 4:\n parent = parentFiber.stateNode.containerInfo;\n isContainer = !0;\n break;\n default:\n invariant(\n !1,\n \"Invalid host parent fiber. This error is likely caused by a bug in React. Please file an issue.\"\n );\n }\n parentFiber.effectTag & 16 && (parentFiber.effectTag &= -17);\n a: b: for (parentFiber = finishedWork; ; ) {\n for (; null === parentFiber.sibling; ) {\n if (null === parentFiber.return || isHostParent(parentFiber.return)) {\n parentFiber = null;\n break a;\n }\n parentFiber = parentFiber.return;\n }\n parentFiber.sibling.return = parentFiber.return;\n for (\n parentFiber = parentFiber.sibling;\n 5 !== parentFiber.tag && 6 !== parentFiber.tag;\n\n ) {\n if (parentFiber.effectTag & 2) continue b;\n if (null === parentFiber.child || 4 === parentFiber.tag) continue b;\n else\n (parentFiber.child.return = parentFiber),\n (parentFiber = parentFiber.child);\n }\n if (!(parentFiber.effectTag & 2)) {\n parentFiber = parentFiber.stateNode;\n break a;\n }\n }\n for (var node = finishedWork; ; ) {\n if (5 === node.tag || 6 === node.tag)\n if (parentFiber)\n if (isContainer)\n invariant(\n \"number\" !== typeof parent,\n \"Container does not support insertBefore operation\"\n );\n else {\n var parentInstance = parent,\n child = node.stateNode,\n beforeChild = parentFiber,\n children = parentInstance._children,\n index = children.indexOf(child);\n 0 <= index\n ? (children.splice(index, 1),\n (beforeChild = children.indexOf(beforeChild)),\n children.splice(beforeChild, 0, child),\n UIManager.manageChildren(\n parentInstance._nativeTag,\n [index],\n [beforeChild],\n [],\n [],\n []\n ))\n : ((index = children.indexOf(beforeChild)),\n children.splice(index, 0, child),\n UIManager.manageChildren(\n parentInstance._nativeTag,\n [],\n [],\n [\"number\" === typeof child ? child : child._nativeTag],\n [index],\n []\n ));\n }\n else\n isContainer\n ? ((parentInstance = node.stateNode),\n UIManager.setChildren(parent, [\n \"number\" === typeof parentInstance\n ? parentInstance\n : parentInstance._nativeTag\n ]))\n : ((parentInstance = parent),\n (child = node.stateNode),\n (children = \"number\" === typeof child ? child : child._nativeTag),\n (index = parentInstance._children),\n (beforeChild = index.indexOf(child)),\n 0 <= beforeChild\n ? (index.splice(beforeChild, 1),\n index.push(child),\n UIManager.manageChildren(\n parentInstance._nativeTag,\n [beforeChild],\n [index.length - 1],\n [],\n [],\n []\n ))\n : (index.push(child),\n UIManager.manageChildren(\n parentInstance._nativeTag,\n [],\n [],\n [children],\n [index.length - 1],\n []\n )));\n else if (4 !== node.tag && null !== node.child) {\n node.child.return = node;\n node = node.child;\n continue;\n }\n if (node === finishedWork) break;\n for (; null === node.sibling; ) {\n if (null === node.return || node.return === finishedWork) return;\n node = node.return;\n }\n node.sibling.return = node.return;\n node = node.sibling;\n }\n}\nfunction unmountHostComponents(current$$1) {\n for (\n var node = current$$1,\n currentParentIsValid = !1,\n currentParent = void 0,\n currentParentIsContainer = void 0;\n ;\n\n ) {\n if (!currentParentIsValid) {\n currentParentIsValid = node.return;\n a: for (;;) {\n invariant(\n null !== currentParentIsValid,\n \"Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.\"\n );\n switch (currentParentIsValid.tag) {\n case 5:\n currentParent = currentParentIsValid.stateNode;\n currentParentIsContainer = !1;\n break a;\n case 3:\n currentParent = currentParentIsValid.stateNode.containerInfo;\n currentParentIsContainer = !0;\n break a;\n case 4:\n currentParent = currentParentIsValid.stateNode.containerInfo;\n currentParentIsContainer = !0;\n break a;\n }\n currentParentIsValid = currentParentIsValid.return;\n }\n currentParentIsValid = !0;\n }\n if (5 === node.tag || 6 === node.tag) {\n a: for (var root = node, node$jscomp$0 = root; ; )\n if (\n (commitUnmount(node$jscomp$0),\n null !== node$jscomp$0.child && 4 !== node$jscomp$0.tag)\n )\n (node$jscomp$0.child.return = node$jscomp$0),\n (node$jscomp$0 = node$jscomp$0.child);\n else {\n if (node$jscomp$0 === root) break;\n for (; null === node$jscomp$0.sibling; ) {\n if (null === node$jscomp$0.return || node$jscomp$0.return === root)\n break a;\n node$jscomp$0 = node$jscomp$0.return;\n }\n node$jscomp$0.sibling.return = node$jscomp$0.return;\n node$jscomp$0 = node$jscomp$0.sibling;\n }\n if (currentParentIsContainer)\n (root = currentParent),\n recursivelyUncacheFiberNode(node.stateNode),\n UIManager.manageChildren(root, [], [], [], [], [0]);\n else {\n root = currentParent;\n var child = node.stateNode;\n recursivelyUncacheFiberNode(child);\n node$jscomp$0 = root._children;\n child = node$jscomp$0.indexOf(child);\n node$jscomp$0.splice(child, 1);\n UIManager.manageChildren(root._nativeTag, [], [], [], [], [child]);\n }\n } else if (\n (4 === node.tag\n ? ((currentParent = node.stateNode.containerInfo),\n (currentParentIsContainer = !0))\n : commitUnmount(node),\n null !== node.child)\n ) {\n node.child.return = node;\n node = node.child;\n continue;\n }\n if (node === current$$1) break;\n for (; null === node.sibling; ) {\n if (null === node.return || node.return === current$$1) return;\n node = node.return;\n 4 === node.tag && (currentParentIsValid = !1);\n }\n node.sibling.return = node.return;\n node = node.sibling;\n }\n}\nfunction commitWork(current$$1, finishedWork) {\n switch (finishedWork.tag) {\n case 0:\n case 11:\n case 14:\n case 15:\n break;\n case 1:\n break;\n case 5:\n var instance = finishedWork.stateNode;\n if (null != instance) {\n var newProps = finishedWork.memoizedProps;\n current$$1 = null !== current$$1 ? current$$1.memoizedProps : newProps;\n var updatePayload = finishedWork.updateQueue;\n finishedWork.updateQueue = null;\n null !== updatePayload &&\n ((finishedWork = instance.viewConfig),\n (instanceProps[instance._nativeTag] = newProps),\n (newProps = diffProperties(\n null,\n current$$1,\n newProps,\n finishedWork.validAttributes\n )),\n null != newProps &&\n UIManager.updateView(\n instance._nativeTag,\n finishedWork.uiViewClassName,\n newProps\n ));\n }\n break;\n case 6:\n invariant(\n null !== finishedWork.stateNode,\n \"This should have a text node initialized. This error is likely caused by a bug in React. Please file an issue.\"\n );\n UIManager.updateView(finishedWork.stateNode, \"RCTRawText\", {\n text: finishedWork.memoizedProps\n });\n break;\n case 3:\n break;\n case 12:\n break;\n case 13:\n newProps = finishedWork.memoizedState;\n current$$1 = finishedWork;\n null === newProps\n ? (instance = !1)\n : ((instance = !0),\n (current$$1 = finishedWork.child),\n 0 === newProps.timedOutAt &&\n (newProps.timedOutAt = requestCurrentTime()));\n if (null !== current$$1)\n a: for (newProps = finishedWork = current$$1; ; ) {\n if (5 === newProps.tag)\n if (((current$$1 = newProps.stateNode), instance)) {\n updatePayload = current$$1.viewConfig;\n var updatePayload$jscomp$0 = diffProperties(\n null,\n emptyObject,\n { style: { display: \"none\" } },\n updatePayload.validAttributes\n );\n UIManager.updateView(\n current$$1._nativeTag,\n updatePayload.uiViewClassName,\n updatePayload$jscomp$0\n );\n } else {\n current$$1 = newProps.stateNode;\n updatePayload$jscomp$0 = newProps.memoizedProps;\n updatePayload = current$$1.viewConfig;\n var prevProps = Object.assign({}, updatePayload$jscomp$0, {\n style: [updatePayload$jscomp$0.style, { display: \"none\" }]\n });\n updatePayload$jscomp$0 = diffProperties(\n null,\n prevProps,\n updatePayload$jscomp$0,\n updatePayload.validAttributes\n );\n UIManager.updateView(\n current$$1._nativeTag,\n updatePayload.uiViewClassName,\n updatePayload$jscomp$0\n );\n }\n else {\n if (6 === newProps.tag) throw Error(\"Not yet implemented.\");\n if (null !== newProps.child) {\n newProps.child.return = newProps;\n newProps = newProps.child;\n continue;\n }\n }\n if (newProps === finishedWork) break a;\n for (; null === newProps.sibling; ) {\n if (null === newProps.return || newProps.return === finishedWork)\n break a;\n newProps = newProps.return;\n }\n newProps.sibling.return = newProps.return;\n newProps = newProps.sibling;\n }\n break;\n case 17:\n break;\n default:\n invariant(\n !1,\n \"This unit of work tag should not have side-effects. This error is likely caused by a bug in React. Please file an issue.\"\n );\n }\n}\nfunction createRootErrorUpdate(fiber, errorInfo, expirationTime) {\n expirationTime = createUpdate(expirationTime);\n expirationTime.tag = 3;\n expirationTime.payload = { element: null };\n var error = errorInfo.value;\n expirationTime.callback = function() {\n onUncaughtError(error);\n logError(fiber, errorInfo);\n };\n return expirationTime;\n}\nfunction createClassErrorUpdate(fiber, errorInfo, expirationTime) {\n expirationTime = createUpdate(expirationTime);\n expirationTime.tag = 3;\n var getDerivedStateFromError = fiber.type.getDerivedStateFromError;\n if (\"function\" === typeof getDerivedStateFromError) {\n var error$jscomp$0 = errorInfo.value;\n expirationTime.payload = function() {\n return getDerivedStateFromError(error$jscomp$0);\n };\n }\n var inst = fiber.stateNode;\n null !== inst &&\n \"function\" === typeof inst.componentDidCatch &&\n (expirationTime.callback = function() {\n \"function\" !== typeof getDerivedStateFromError &&\n (null === legacyErrorBoundariesThatAlreadyFailed\n ? (legacyErrorBoundariesThatAlreadyFailed = new Set([this]))\n : legacyErrorBoundariesThatAlreadyFailed.add(this));\n var error = errorInfo.value,\n stack = errorInfo.stack;\n logError(fiber, errorInfo);\n this.componentDidCatch(error, {\n componentStack: null !== stack ? stack : \"\"\n });\n });\n return expirationTime;\n}\nfunction unwindWork(workInProgress) {\n switch (workInProgress.tag) {\n case 1:\n isContextProvider(workInProgress.type) && popContext(workInProgress);\n var effectTag = workInProgress.effectTag;\n return effectTag & 2048\n ? ((workInProgress.effectTag = (effectTag & -2049) | 64),\n workInProgress)\n : null;\n case 3:\n return (\n popHostContainer(workInProgress),\n popTopLevelContextObject(workInProgress),\n (effectTag = workInProgress.effectTag),\n invariant(\n 0 === (effectTag & 64),\n \"The root failed to unmount after an error. This is likely a bug in React. Please file an issue.\"\n ),\n (workInProgress.effectTag = (effectTag & -2049) | 64),\n workInProgress\n );\n case 5:\n return popHostContext(workInProgress), null;\n case 13:\n return (\n (effectTag = workInProgress.effectTag),\n effectTag & 2048\n ? ((workInProgress.effectTag = (effectTag & -2049) | 64),\n workInProgress)\n : null\n );\n case 4:\n return popHostContainer(workInProgress), null;\n case 10:\n return popProvider(workInProgress), null;\n default:\n return null;\n }\n}\nvar DispatcherWithoutHooks = { readContext: readContext },\n ReactCurrentOwner$2 = ReactSharedInternals.ReactCurrentOwner,\n isWorking = !1,\n nextUnitOfWork = null,\n nextRoot = null,\n nextRenderExpirationTime = 0,\n nextLatestAbsoluteTimeoutMs = -1,\n nextRenderDidError = !1,\n nextEffect = null,\n isCommitting$1 = !1,\n passiveEffectCallbackHandle = null,\n passiveEffectCallback = null,\n legacyErrorBoundariesThatAlreadyFailed = null;\nfunction resetStack() {\n if (null !== nextUnitOfWork)\n for (\n var interruptedWork = nextUnitOfWork.return;\n null !== interruptedWork;\n\n ) {\n var interruptedWork$jscomp$0 = interruptedWork;\n switch (interruptedWork$jscomp$0.tag) {\n case 1:\n var childContextTypes =\n interruptedWork$jscomp$0.type.childContextTypes;\n null !== childContextTypes &&\n void 0 !== childContextTypes &&\n popContext(interruptedWork$jscomp$0);\n break;\n case 3:\n popHostContainer(interruptedWork$jscomp$0);\n popTopLevelContextObject(interruptedWork$jscomp$0);\n break;\n case 5:\n popHostContext(interruptedWork$jscomp$0);\n break;\n case 4:\n popHostContainer(interruptedWork$jscomp$0);\n break;\n case 10:\n popProvider(interruptedWork$jscomp$0);\n }\n interruptedWork = interruptedWork.return;\n }\n nextRoot = null;\n nextRenderExpirationTime = 0;\n nextLatestAbsoluteTimeoutMs = -1;\n nextRenderDidError = !1;\n nextUnitOfWork = null;\n}\nfunction flushPassiveEffects() {\n null !== passiveEffectCallback &&\n (scheduler.unstable_cancelCallback(passiveEffectCallbackHandle),\n passiveEffectCallback());\n}\nfunction completeUnitOfWork(workInProgress) {\n for (;;) {\n var current$$1 = workInProgress.alternate,\n returnFiber = workInProgress.return,\n siblingFiber = workInProgress.sibling;\n if (0 === (workInProgress.effectTag & 1024)) {\n nextUnitOfWork = workInProgress;\n a: {\n var current = current$$1;\n current$$1 = workInProgress;\n var renderExpirationTime = nextRenderExpirationTime,\n newProps = current$$1.pendingProps;\n switch (current$$1.tag) {\n case 2:\n break;\n case 16:\n break;\n case 15:\n case 0:\n break;\n case 1:\n isContextProvider(current$$1.type) && popContext(current$$1);\n break;\n case 3:\n popHostContainer(current$$1);\n popTopLevelContextObject(current$$1);\n newProps = current$$1.stateNode;\n newProps.pendingContext &&\n ((newProps.context = newProps.pendingContext),\n (newProps.pendingContext = null));\n if (null === current || null === current.child)\n current$$1.effectTag &= -3;\n updateHostContainer(current$$1);\n break;\n case 5:\n popHostContext(current$$1);\n renderExpirationTime = requiredContext(\n rootInstanceStackCursor.current\n );\n var type = current$$1.type;\n if (null !== current && null != current$$1.stateNode)\n updateHostComponent$1(\n current,\n current$$1,\n type,\n newProps,\n renderExpirationTime\n ),\n current.ref !== current$$1.ref && (current$$1.effectTag |= 128);\n else if (newProps) {\n current = requiredContext(contextStackCursor$1.current);\n var internalInstanceHandle = current$$1,\n tag = allocateTag(),\n viewConfig = ReactNativeViewConfigRegistry.get(type);\n invariant(\n \"RCTView\" !== type || !current.isInAParentText,\n \"Nesting of within is not currently supported.\"\n );\n var updatePayload = diffProperties(\n null,\n emptyObject,\n newProps,\n viewConfig.validAttributes\n );\n UIManager.createView(\n tag,\n viewConfig.uiViewClassName,\n renderExpirationTime,\n updatePayload\n );\n viewConfig = new ReactNativeFiberHostComponent(tag, viewConfig);\n instanceCache[tag] = internalInstanceHandle;\n instanceProps[tag] = newProps;\n appendAllChildren(viewConfig, current$$1, !1, !1);\n finalizeInitialChildren(\n viewConfig,\n type,\n newProps,\n renderExpirationTime,\n current\n ) && (current$$1.effectTag |= 4);\n current$$1.stateNode = viewConfig;\n null !== current$$1.ref && (current$$1.effectTag |= 128);\n } else\n invariant(\n null !== current$$1.stateNode,\n \"We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.\"\n );\n break;\n case 6:\n current && null != current$$1.stateNode\n ? updateHostText$1(\n current,\n current$$1,\n current.memoizedProps,\n newProps\n )\n : (\"string\" !== typeof newProps &&\n invariant(\n null !== current$$1.stateNode,\n \"We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.\"\n ),\n (current = requiredContext(rootInstanceStackCursor.current)),\n (type = requiredContext(contextStackCursor$1.current)),\n (renderExpirationTime = current$$1),\n invariant(\n type.isInAParentText,\n \"Text strings must be rendered within a component.\"\n ),\n (type = allocateTag()),\n UIManager.createView(type, \"RCTRawText\", current, {\n text: newProps\n }),\n (instanceCache[type] = current$$1),\n (renderExpirationTime.stateNode = type));\n break;\n case 11:\n break;\n case 13:\n newProps = current$$1.memoizedState;\n if (0 !== (current$$1.effectTag & 64)) {\n current$$1.expirationTime = renderExpirationTime;\n nextUnitOfWork = current$$1;\n break a;\n }\n newProps = null !== newProps;\n type = null !== current && null !== current.memoizedState;\n null !== current &&\n !newProps &&\n type &&\n ((current = current.child.sibling),\n null !== current &&\n reconcileChildFibers(\n current$$1,\n current,\n null,\n renderExpirationTime\n ));\n if (\n newProps !== type ||\n (0 === (current$$1.effectTag & 1) && newProps)\n )\n current$$1.effectTag |= 4;\n break;\n case 7:\n break;\n case 8:\n break;\n case 12:\n break;\n case 4:\n popHostContainer(current$$1);\n updateHostContainer(current$$1);\n break;\n case 10:\n popProvider(current$$1);\n break;\n case 9:\n break;\n case 14:\n break;\n case 17:\n isContextProvider(current$$1.type) && popContext(current$$1);\n break;\n default:\n invariant(\n !1,\n \"Unknown unit of work tag. This error is likely caused by a bug in React. Please file an issue.\"\n );\n }\n nextUnitOfWork = null;\n }\n current$$1 = workInProgress;\n if (\n 1 === nextRenderExpirationTime ||\n 1 !== current$$1.childExpirationTime\n ) {\n newProps = 0;\n for (\n renderExpirationTime = current$$1.child;\n null !== renderExpirationTime;\n\n )\n (type = renderExpirationTime.expirationTime),\n (current = renderExpirationTime.childExpirationTime),\n type > newProps && (newProps = type),\n current > newProps && (newProps = current),\n (renderExpirationTime = renderExpirationTime.sibling);\n current$$1.childExpirationTime = newProps;\n }\n if (null !== nextUnitOfWork) return nextUnitOfWork;\n null !== returnFiber &&\n 0 === (returnFiber.effectTag & 1024) &&\n (null === returnFiber.firstEffect &&\n (returnFiber.firstEffect = workInProgress.firstEffect),\n null !== workInProgress.lastEffect &&\n (null !== returnFiber.lastEffect &&\n (returnFiber.lastEffect.nextEffect = workInProgress.firstEffect),\n (returnFiber.lastEffect = workInProgress.lastEffect)),\n 1 < workInProgress.effectTag &&\n (null !== returnFiber.lastEffect\n ? (returnFiber.lastEffect.nextEffect = workInProgress)\n : (returnFiber.firstEffect = workInProgress),\n (returnFiber.lastEffect = workInProgress)));\n } else {\n workInProgress = unwindWork(workInProgress, nextRenderExpirationTime);\n if (null !== workInProgress)\n return (workInProgress.effectTag &= 1023), workInProgress;\n null !== returnFiber &&\n ((returnFiber.firstEffect = returnFiber.lastEffect = null),\n (returnFiber.effectTag |= 1024));\n }\n if (null !== siblingFiber) return siblingFiber;\n if (null !== returnFiber) workInProgress = returnFiber;\n else break;\n }\n return null;\n}\nfunction performUnitOfWork(workInProgress) {\n var next = beginWork(\n workInProgress.alternate,\n workInProgress,\n nextRenderExpirationTime\n );\n workInProgress.memoizedProps = workInProgress.pendingProps;\n null === next && (next = completeUnitOfWork(workInProgress));\n ReactCurrentOwner$2.current = null;\n return next;\n}\nfunction renderRoot(root$jscomp$0, isYieldy) {\n invariant(\n !isWorking,\n \"renderRoot was called recursively. This error is likely caused by a bug in React. Please file an issue.\"\n );\n flushPassiveEffects();\n isWorking = !0;\n ReactCurrentOwner$2.currentDispatcher = DispatcherWithoutHooks;\n var expirationTime = root$jscomp$0.nextExpirationTimeToWorkOn;\n if (\n expirationTime !== nextRenderExpirationTime ||\n root$jscomp$0 !== nextRoot ||\n null === nextUnitOfWork\n )\n resetStack(),\n (nextRoot = root$jscomp$0),\n (nextRenderExpirationTime = expirationTime),\n (nextUnitOfWork = createWorkInProgress(\n nextRoot.current,\n null,\n nextRenderExpirationTime\n )),\n (root$jscomp$0.pendingCommitExpirationTime = 0);\n var didFatal = !1;\n do {\n try {\n if (isYieldy)\n for (; null !== nextUnitOfWork && !shouldYieldToRenderer(); )\n nextUnitOfWork = performUnitOfWork(nextUnitOfWork);\n else\n for (; null !== nextUnitOfWork; )\n nextUnitOfWork = performUnitOfWork(nextUnitOfWork);\n } catch (thrownValue) {\n if (\n ((lastContextWithAllBitsObserved = lastContextDependency = currentlyRenderingFiber = null),\n null === nextUnitOfWork)\n )\n (didFatal = !0), onUncaughtError(thrownValue);\n else {\n invariant(\n null !== nextUnitOfWork,\n \"Failed to replay rendering after an error. This is likely caused by a bug in React. Please file an issue with a reproducing case to help us find it.\"\n );\n var sourceFiber = nextUnitOfWork,\n returnFiber = sourceFiber.return;\n if (null === returnFiber) (didFatal = !0), onUncaughtError(thrownValue);\n else {\n a: {\n var root = root$jscomp$0,\n returnFiber$jscomp$0 = returnFiber,\n sourceFiber$jscomp$0 = sourceFiber,\n value = thrownValue;\n returnFiber = nextRenderExpirationTime;\n sourceFiber$jscomp$0.effectTag |= 1024;\n sourceFiber$jscomp$0.firstEffect = sourceFiber$jscomp$0.lastEffect = null;\n if (\n null !== value &&\n \"object\" === typeof value &&\n \"function\" === typeof value.then\n ) {\n var thenable = value;\n value = returnFiber$jscomp$0;\n var earliestTimeoutMs = -1,\n startTimeMs = -1;\n do {\n if (13 === value.tag) {\n var current$$1 = value.alternate;\n if (\n null !== current$$1 &&\n ((current$$1 = current$$1.memoizedState),\n null !== current$$1)\n ) {\n startTimeMs = 10 * (1073741822 - current$$1.timedOutAt);\n break;\n }\n current$$1 = value.pendingProps.maxDuration;\n if (\"number\" === typeof current$$1)\n if (0 >= current$$1) earliestTimeoutMs = 0;\n else if (\n -1 === earliestTimeoutMs ||\n current$$1 < earliestTimeoutMs\n )\n earliestTimeoutMs = current$$1;\n }\n value = value.return;\n } while (null !== value);\n value = returnFiber$jscomp$0;\n do {\n if ((current$$1 = 13 === value.tag))\n current$$1 =\n void 0 === value.memoizedProps.fallback\n ? !1\n : null === value.memoizedState;\n if (current$$1) {\n returnFiber$jscomp$0 = retrySuspendedRoot.bind(\n null,\n root,\n value,\n sourceFiber$jscomp$0,\n 0 === (value.mode & 1) ? 1073741823 : returnFiber\n );\n thenable.then(returnFiber$jscomp$0, returnFiber$jscomp$0);\n if (0 === (value.mode & 1)) {\n value.effectTag |= 64;\n reconcileChildren(\n sourceFiber$jscomp$0.alternate,\n sourceFiber$jscomp$0,\n null,\n returnFiber\n );\n sourceFiber$jscomp$0.effectTag &= -1025;\n sourceFiber$jscomp$0.effectTag &= -933;\n 1 === sourceFiber$jscomp$0.tag &&\n null === sourceFiber$jscomp$0.alternate &&\n (sourceFiber$jscomp$0.tag = 17);\n sourceFiber$jscomp$0.expirationTime = returnFiber;\n break a;\n }\n -1 === earliestTimeoutMs\n ? (root = 1073741823)\n : (-1 === startTimeMs &&\n (startTimeMs =\n 10 *\n (1073741822 -\n findEarliestOutstandingPriorityLevel(\n root,\n returnFiber\n )) -\n 5e3),\n (root = startTimeMs + earliestTimeoutMs));\n 0 <= root &&\n nextLatestAbsoluteTimeoutMs < root &&\n (nextLatestAbsoluteTimeoutMs = root);\n value.effectTag |= 2048;\n value.expirationTime = returnFiber;\n break a;\n }\n value = value.return;\n } while (null !== value);\n value = Error(\n (getComponentName(sourceFiber$jscomp$0.type) ||\n \"A React component\") +\n \" suspended while rendering, but no fallback UI was specified.\\n\\nAdd a component higher in the tree to provide a loading indicator or placeholder to display.\" +\n getStackByFiberInDevAndProd(sourceFiber$jscomp$0)\n );\n }\n nextRenderDidError = !0;\n value = createCapturedValue(value, sourceFiber$jscomp$0);\n root = returnFiber$jscomp$0;\n do {\n switch (root.tag) {\n case 3:\n sourceFiber$jscomp$0 = value;\n root.effectTag |= 2048;\n root.expirationTime = returnFiber;\n returnFiber = createRootErrorUpdate(\n root,\n sourceFiber$jscomp$0,\n returnFiber\n );\n enqueueCapturedUpdate(root, returnFiber);\n break a;\n case 1:\n if (\n ((sourceFiber$jscomp$0 = value),\n (returnFiber$jscomp$0 = root.type),\n (thenable = root.stateNode),\n 0 === (root.effectTag & 64) &&\n (\"function\" ===\n typeof returnFiber$jscomp$0.getDerivedStateFromError ||\n (null !== thenable &&\n \"function\" === typeof thenable.componentDidCatch &&\n (null === legacyErrorBoundariesThatAlreadyFailed ||\n !legacyErrorBoundariesThatAlreadyFailed.has(\n thenable\n )))))\n ) {\n root.effectTag |= 2048;\n root.expirationTime = returnFiber;\n returnFiber = createClassErrorUpdate(\n root,\n sourceFiber$jscomp$0,\n returnFiber\n );\n enqueueCapturedUpdate(root, returnFiber);\n break a;\n }\n }\n root = root.return;\n } while (null !== root);\n }\n nextUnitOfWork = completeUnitOfWork(sourceFiber);\n continue;\n }\n }\n }\n break;\n } while (1);\n isWorking = !1;\n lastContextWithAllBitsObserved = lastContextDependency = currentlyRenderingFiber = ReactCurrentOwner$2.currentDispatcher = null;\n if (didFatal) (nextRoot = null), (root$jscomp$0.finishedWork = null);\n else if (null !== nextUnitOfWork) root$jscomp$0.finishedWork = null;\n else {\n didFatal = root$jscomp$0.current.alternate;\n invariant(\n null !== didFatal,\n \"Finished root should have a work-in-progress. This error is likely caused by a bug in React. Please file an issue.\"\n );\n nextRoot = null;\n if (nextRenderDidError) {\n sourceFiber = root$jscomp$0.latestPendingTime;\n returnFiber = root$jscomp$0.latestSuspendedTime;\n root = root$jscomp$0.latestPingedTime;\n if (\n (0 !== sourceFiber && sourceFiber < expirationTime) ||\n (0 !== returnFiber && returnFiber < expirationTime) ||\n (0 !== root && root < expirationTime)\n ) {\n markSuspendedPriorityLevel(root$jscomp$0, expirationTime);\n onSuspend(\n root$jscomp$0,\n didFatal,\n expirationTime,\n root$jscomp$0.expirationTime,\n -1\n );\n return;\n }\n if (!root$jscomp$0.didError && isYieldy) {\n root$jscomp$0.didError = !0;\n expirationTime = root$jscomp$0.nextExpirationTimeToWorkOn = expirationTime;\n isYieldy = root$jscomp$0.expirationTime = 1073741823;\n onSuspend(root$jscomp$0, didFatal, expirationTime, isYieldy, -1);\n return;\n }\n }\n isYieldy && -1 !== nextLatestAbsoluteTimeoutMs\n ? (markSuspendedPriorityLevel(root$jscomp$0, expirationTime),\n (isYieldy =\n 10 *\n (1073741822 -\n findEarliestOutstandingPriorityLevel(\n root$jscomp$0,\n expirationTime\n ))),\n isYieldy < nextLatestAbsoluteTimeoutMs &&\n (nextLatestAbsoluteTimeoutMs = isYieldy),\n (isYieldy = 10 * (1073741822 - requestCurrentTime())),\n (isYieldy = nextLatestAbsoluteTimeoutMs - isYieldy),\n onSuspend(\n root$jscomp$0,\n didFatal,\n expirationTime,\n root$jscomp$0.expirationTime,\n 0 > isYieldy ? 0 : isYieldy\n ))\n : ((root$jscomp$0.pendingCommitExpirationTime = expirationTime),\n (root$jscomp$0.finishedWork = didFatal));\n }\n}\nfunction captureCommitPhaseError(sourceFiber, value) {\n for (var fiber = sourceFiber.return; null !== fiber; ) {\n switch (fiber.tag) {\n case 1:\n var instance = fiber.stateNode;\n if (\n \"function\" === typeof fiber.type.getDerivedStateFromError ||\n (\"function\" === typeof instance.componentDidCatch &&\n (null === legacyErrorBoundariesThatAlreadyFailed ||\n !legacyErrorBoundariesThatAlreadyFailed.has(instance)))\n ) {\n sourceFiber = createCapturedValue(value, sourceFiber);\n sourceFiber = createClassErrorUpdate(fiber, sourceFiber, 1073741823);\n enqueueUpdate(fiber, sourceFiber);\n scheduleWork(fiber, 1073741823);\n return;\n }\n break;\n case 3:\n sourceFiber = createCapturedValue(value, sourceFiber);\n sourceFiber = createRootErrorUpdate(fiber, sourceFiber, 1073741823);\n enqueueUpdate(fiber, sourceFiber);\n scheduleWork(fiber, 1073741823);\n return;\n }\n fiber = fiber.return;\n }\n 3 === sourceFiber.tag &&\n ((fiber = createCapturedValue(value, sourceFiber)),\n (fiber = createRootErrorUpdate(sourceFiber, fiber, 1073741823)),\n enqueueUpdate(sourceFiber, fiber),\n scheduleWork(sourceFiber, 1073741823));\n}\nfunction computeExpirationForFiber(currentTime, fiber) {\n isWorking\n ? (currentTime = isCommitting$1 ? 1073741823 : nextRenderExpirationTime)\n : fiber.mode & 1\n ? ((currentTime = isBatchingInteractiveUpdates\n ? 1073741822 - 10 * ((((1073741822 - currentTime + 15) / 10) | 0) + 1)\n : 1073741822 -\n 25 * ((((1073741822 - currentTime + 500) / 25) | 0) + 1)),\n null !== nextRoot &&\n currentTime === nextRenderExpirationTime &&\n --currentTime)\n : (currentTime = 1073741823);\n isBatchingInteractiveUpdates &&\n (0 === lowestPriorityPendingInteractiveExpirationTime ||\n currentTime < lowestPriorityPendingInteractiveExpirationTime) &&\n (lowestPriorityPendingInteractiveExpirationTime = currentTime);\n return currentTime;\n}\nfunction retrySuspendedRoot(root, boundaryFiber, sourceFiber, suspendedTime) {\n var retryTime = root.earliestSuspendedTime;\n var latestSuspendedTime = root.latestSuspendedTime;\n if (\n 0 !== retryTime &&\n suspendedTime <= retryTime &&\n suspendedTime >= latestSuspendedTime\n ) {\n latestSuspendedTime = retryTime = suspendedTime;\n root.didError = !1;\n var latestPingedTime = root.latestPingedTime;\n if (0 === latestPingedTime || latestPingedTime > latestSuspendedTime)\n root.latestPingedTime = latestSuspendedTime;\n findNextExpirationTimeToWorkOn(latestSuspendedTime, root);\n } else\n (retryTime = requestCurrentTime()),\n (retryTime = computeExpirationForFiber(retryTime, boundaryFiber)),\n markPendingPriorityLevel(root, retryTime);\n 0 !== (boundaryFiber.mode & 1) &&\n root === nextRoot &&\n nextRenderExpirationTime === suspendedTime &&\n (nextRoot = null);\n scheduleWorkToRoot(boundaryFiber, retryTime);\n 0 === (boundaryFiber.mode & 1) &&\n (scheduleWorkToRoot(sourceFiber, retryTime),\n 1 === sourceFiber.tag &&\n null !== sourceFiber.stateNode &&\n ((boundaryFiber = createUpdate(retryTime)),\n (boundaryFiber.tag = 2),\n enqueueUpdate(sourceFiber, boundaryFiber)));\n sourceFiber = root.expirationTime;\n 0 !== sourceFiber && requestWork(root, sourceFiber);\n}\nfunction scheduleWorkToRoot(fiber, expirationTime) {\n fiber.expirationTime < expirationTime &&\n (fiber.expirationTime = expirationTime);\n var alternate = fiber.alternate;\n null !== alternate &&\n alternate.expirationTime < expirationTime &&\n (alternate.expirationTime = expirationTime);\n var node = fiber.return,\n root = null;\n if (null === node && 3 === fiber.tag) root = fiber.stateNode;\n else\n for (; null !== node; ) {\n alternate = node.alternate;\n node.childExpirationTime < expirationTime &&\n (node.childExpirationTime = expirationTime);\n null !== alternate &&\n alternate.childExpirationTime < expirationTime &&\n (alternate.childExpirationTime = expirationTime);\n if (null === node.return && 3 === node.tag) {\n root = node.stateNode;\n break;\n }\n node = node.return;\n }\n return null === root ? null : root;\n}\nfunction scheduleWork(fiber, expirationTime) {\n fiber = scheduleWorkToRoot(fiber, expirationTime);\n null !== fiber &&\n (!isWorking &&\n 0 !== nextRenderExpirationTime &&\n expirationTime > nextRenderExpirationTime &&\n resetStack(),\n markPendingPriorityLevel(fiber, expirationTime),\n (isWorking && !isCommitting$1 && nextRoot === fiber) ||\n requestWork(fiber, fiber.expirationTime),\n nestedUpdateCount > NESTED_UPDATE_LIMIT &&\n ((nestedUpdateCount = 0),\n invariant(\n !1,\n \"Maximum update depth exceeded. This can happen when a component repeatedly calls setState inside componentWillUpdate or componentDidUpdate. React limits the number of nested updates to prevent infinite loops.\"\n )));\n}\nvar firstScheduledRoot = null,\n lastScheduledRoot = null,\n callbackExpirationTime = 0,\n callbackID = void 0,\n isRendering = !1,\n nextFlushedRoot = null,\n nextFlushedExpirationTime = 0,\n lowestPriorityPendingInteractiveExpirationTime = 0,\n hasUnhandledError = !1,\n unhandledError = null,\n isBatchingUpdates = !1,\n isUnbatchingUpdates = !1,\n isBatchingInteractiveUpdates = !1,\n completedBatches = null,\n originalStartTimeMs = now$1(),\n currentRendererTime = 1073741822 - ((originalStartTimeMs / 10) | 0),\n currentSchedulerTime = currentRendererTime,\n NESTED_UPDATE_LIMIT = 50,\n nestedUpdateCount = 0,\n lastCommittedRootDuringThisBatch = null;\nfunction recomputeCurrentRendererTime() {\n currentRendererTime =\n 1073741822 - (((now$1() - originalStartTimeMs) / 10) | 0);\n}\nfunction scheduleCallbackWithExpirationTime(root, expirationTime) {\n if (0 !== callbackExpirationTime) {\n if (expirationTime < callbackExpirationTime) return;\n null !== callbackID &&\n ((root = callbackID), (scheduledCallback = null), clearTimeout(root));\n }\n callbackExpirationTime = expirationTime;\n now$1();\n scheduledCallback = performAsyncWork;\n callbackID = setTimeout(setTimeoutCallback, 1);\n}\nfunction onSuspend(\n root,\n finishedWork,\n suspendedExpirationTime,\n rootExpirationTime,\n msUntilTimeout\n) {\n root.expirationTime = rootExpirationTime;\n 0 !== msUntilTimeout || shouldYieldToRenderer()\n ? 0 < msUntilTimeout &&\n (root.timeoutHandle = scheduleTimeout(\n onTimeout.bind(null, root, finishedWork, suspendedExpirationTime),\n msUntilTimeout\n ))\n : ((root.pendingCommitExpirationTime = suspendedExpirationTime),\n (root.finishedWork = finishedWork));\n}\nfunction onTimeout(root, finishedWork, suspendedExpirationTime) {\n root.pendingCommitExpirationTime = suspendedExpirationTime;\n root.finishedWork = finishedWork;\n recomputeCurrentRendererTime();\n currentSchedulerTime = currentRendererTime;\n invariant(\n !isRendering,\n \"work.commit(): Cannot commit while already rendering. This likely means you attempted to commit from inside a lifecycle method.\"\n );\n nextFlushedRoot = root;\n nextFlushedExpirationTime = suspendedExpirationTime;\n performWorkOnRoot(root, suspendedExpirationTime, !1);\n performWork(1073741823, !1);\n}\nfunction requestCurrentTime() {\n if (isRendering) return currentSchedulerTime;\n findHighestPriorityRoot();\n if (0 === nextFlushedExpirationTime || 1 === nextFlushedExpirationTime)\n recomputeCurrentRendererTime(),\n (currentSchedulerTime = currentRendererTime);\n return currentSchedulerTime;\n}\nfunction requestWork(root, expirationTime) {\n null === root.nextScheduledRoot\n ? ((root.expirationTime = expirationTime),\n null === lastScheduledRoot\n ? ((firstScheduledRoot = lastScheduledRoot = root),\n (root.nextScheduledRoot = root))\n : ((lastScheduledRoot = lastScheduledRoot.nextScheduledRoot = root),\n (lastScheduledRoot.nextScheduledRoot = firstScheduledRoot)))\n : expirationTime > root.expirationTime &&\n (root.expirationTime = expirationTime);\n isRendering ||\n (isBatchingUpdates\n ? isUnbatchingUpdates &&\n ((nextFlushedRoot = root),\n (nextFlushedExpirationTime = 1073741823),\n performWorkOnRoot(root, 1073741823, !1))\n : 1073741823 === expirationTime\n ? performWork(1073741823, !1)\n : scheduleCallbackWithExpirationTime(root, expirationTime));\n}\nfunction findHighestPriorityRoot() {\n var highestPriorityWork = 0,\n highestPriorityRoot = null;\n if (null !== lastScheduledRoot)\n for (\n var previousScheduledRoot = lastScheduledRoot, root = firstScheduledRoot;\n null !== root;\n\n ) {\n var remainingExpirationTime = root.expirationTime;\n if (0 === remainingExpirationTime) {\n invariant(\n null !== previousScheduledRoot && null !== lastScheduledRoot,\n \"Should have a previous and last root. This error is likely caused by a bug in React. Please file an issue.\"\n );\n if (root === root.nextScheduledRoot) {\n firstScheduledRoot = lastScheduledRoot = root.nextScheduledRoot = null;\n break;\n } else if (root === firstScheduledRoot)\n (firstScheduledRoot = remainingExpirationTime =\n root.nextScheduledRoot),\n (lastScheduledRoot.nextScheduledRoot = remainingExpirationTime),\n (root.nextScheduledRoot = null);\n else if (root === lastScheduledRoot) {\n lastScheduledRoot = previousScheduledRoot;\n lastScheduledRoot.nextScheduledRoot = firstScheduledRoot;\n root.nextScheduledRoot = null;\n break;\n } else\n (previousScheduledRoot.nextScheduledRoot = root.nextScheduledRoot),\n (root.nextScheduledRoot = null);\n root = previousScheduledRoot.nextScheduledRoot;\n } else {\n remainingExpirationTime > highestPriorityWork &&\n ((highestPriorityWork = remainingExpirationTime),\n (highestPriorityRoot = root));\n if (root === lastScheduledRoot) break;\n if (1073741823 === highestPriorityWork) break;\n previousScheduledRoot = root;\n root = root.nextScheduledRoot;\n }\n }\n nextFlushedRoot = highestPriorityRoot;\n nextFlushedExpirationTime = highestPriorityWork;\n}\nvar didYield = !1;\nfunction shouldYieldToRenderer() {\n return didYield ? !0 : frameDeadline <= now$1() ? (didYield = !0) : !1;\n}\nfunction performAsyncWork() {\n try {\n if (!shouldYieldToRenderer() && null !== firstScheduledRoot) {\n recomputeCurrentRendererTime();\n var root = firstScheduledRoot;\n do {\n var expirationTime = root.expirationTime;\n 0 !== expirationTime &&\n currentRendererTime <= expirationTime &&\n (root.nextExpirationTimeToWorkOn = currentRendererTime);\n root = root.nextScheduledRoot;\n } while (root !== firstScheduledRoot);\n }\n performWork(0, !0);\n } finally {\n didYield = !1;\n }\n}\nfunction performWork(minExpirationTime, isYieldy) {\n findHighestPriorityRoot();\n if (isYieldy)\n for (\n recomputeCurrentRendererTime(),\n currentSchedulerTime = currentRendererTime;\n null !== nextFlushedRoot &&\n 0 !== nextFlushedExpirationTime &&\n minExpirationTime <= nextFlushedExpirationTime &&\n !(didYield && currentRendererTime > nextFlushedExpirationTime);\n\n )\n performWorkOnRoot(\n nextFlushedRoot,\n nextFlushedExpirationTime,\n currentRendererTime > nextFlushedExpirationTime\n ),\n findHighestPriorityRoot(),\n recomputeCurrentRendererTime(),\n (currentSchedulerTime = currentRendererTime);\n else\n for (\n ;\n null !== nextFlushedRoot &&\n 0 !== nextFlushedExpirationTime &&\n minExpirationTime <= nextFlushedExpirationTime;\n\n )\n performWorkOnRoot(nextFlushedRoot, nextFlushedExpirationTime, !1),\n findHighestPriorityRoot();\n isYieldy && ((callbackExpirationTime = 0), (callbackID = null));\n 0 !== nextFlushedExpirationTime &&\n scheduleCallbackWithExpirationTime(\n nextFlushedRoot,\n nextFlushedExpirationTime\n );\n nestedUpdateCount = 0;\n lastCommittedRootDuringThisBatch = null;\n if (null !== completedBatches)\n for (\n minExpirationTime = completedBatches,\n completedBatches = null,\n isYieldy = 0;\n isYieldy < minExpirationTime.length;\n isYieldy++\n ) {\n var batch = minExpirationTime[isYieldy];\n try {\n batch._onComplete();\n } catch (error) {\n hasUnhandledError ||\n ((hasUnhandledError = !0), (unhandledError = error));\n }\n }\n if (hasUnhandledError)\n throw ((minExpirationTime = unhandledError),\n (unhandledError = null),\n (hasUnhandledError = !1),\n minExpirationTime);\n}\nfunction performWorkOnRoot(root, expirationTime, isYieldy) {\n invariant(\n !isRendering,\n \"performWorkOnRoot was called recursively. This error is likely caused by a bug in React. Please file an issue.\"\n );\n isRendering = !0;\n if (isYieldy) {\n var _finishedWork = root.finishedWork;\n null !== _finishedWork\n ? completeRoot(root, _finishedWork, expirationTime)\n : ((root.finishedWork = null),\n (_finishedWork = root.timeoutHandle),\n -1 !== _finishedWork &&\n ((root.timeoutHandle = -1), cancelTimeout(_finishedWork)),\n renderRoot(root, isYieldy),\n (_finishedWork = root.finishedWork),\n null !== _finishedWork &&\n (shouldYieldToRenderer()\n ? (root.finishedWork = _finishedWork)\n : completeRoot(root, _finishedWork, expirationTime)));\n } else\n (_finishedWork = root.finishedWork),\n null !== _finishedWork\n ? completeRoot(root, _finishedWork, expirationTime)\n : ((root.finishedWork = null),\n (_finishedWork = root.timeoutHandle),\n -1 !== _finishedWork &&\n ((root.timeoutHandle = -1), cancelTimeout(_finishedWork)),\n renderRoot(root, isYieldy),\n (_finishedWork = root.finishedWork),\n null !== _finishedWork &&\n completeRoot(root, _finishedWork, expirationTime));\n isRendering = !1;\n}\nfunction completeRoot(root, finishedWork$jscomp$0, expirationTime) {\n var firstBatch = root.firstBatch;\n if (\n null !== firstBatch &&\n firstBatch._expirationTime >= expirationTime &&\n (null === completedBatches\n ? (completedBatches = [firstBatch])\n : completedBatches.push(firstBatch),\n firstBatch._defer)\n ) {\n root.finishedWork = finishedWork$jscomp$0;\n root.expirationTime = 0;\n return;\n }\n root.finishedWork = null;\n root === lastCommittedRootDuringThisBatch\n ? nestedUpdateCount++\n : ((lastCommittedRootDuringThisBatch = root), (nestedUpdateCount = 0));\n isCommitting$1 = isWorking = !0;\n invariant(\n root.current !== finishedWork$jscomp$0,\n \"Cannot commit the same tree as before. This is probably a bug related to the return field. This error is likely caused by a bug in React. Please file an issue.\"\n );\n expirationTime = root.pendingCommitExpirationTime;\n invariant(\n 0 !== expirationTime,\n \"Cannot commit an incomplete root. This error is likely caused by a bug in React. Please file an issue.\"\n );\n root.pendingCommitExpirationTime = 0;\n firstBatch = finishedWork$jscomp$0.expirationTime;\n var childExpirationTimeBeforeCommit =\n finishedWork$jscomp$0.childExpirationTime;\n firstBatch =\n childExpirationTimeBeforeCommit > firstBatch\n ? childExpirationTimeBeforeCommit\n : firstBatch;\n root.didError = !1;\n 0 === firstBatch\n ? ((root.earliestPendingTime = 0),\n (root.latestPendingTime = 0),\n (root.earliestSuspendedTime = 0),\n (root.latestSuspendedTime = 0),\n (root.latestPingedTime = 0))\n : ((childExpirationTimeBeforeCommit = root.latestPendingTime),\n 0 !== childExpirationTimeBeforeCommit &&\n (childExpirationTimeBeforeCommit > firstBatch\n ? (root.earliestPendingTime = root.latestPendingTime = 0)\n : root.earliestPendingTime > firstBatch &&\n (root.earliestPendingTime = root.latestPendingTime)),\n (childExpirationTimeBeforeCommit = root.earliestSuspendedTime),\n 0 === childExpirationTimeBeforeCommit\n ? markPendingPriorityLevel(root, firstBatch)\n : firstBatch < root.latestSuspendedTime\n ? ((root.earliestSuspendedTime = 0),\n (root.latestSuspendedTime = 0),\n (root.latestPingedTime = 0),\n markPendingPriorityLevel(root, firstBatch))\n : firstBatch > childExpirationTimeBeforeCommit &&\n markPendingPriorityLevel(root, firstBatch));\n findNextExpirationTimeToWorkOn(0, root);\n ReactCurrentOwner$2.current = null;\n 1 < finishedWork$jscomp$0.effectTag\n ? null !== finishedWork$jscomp$0.lastEffect\n ? ((finishedWork$jscomp$0.lastEffect.nextEffect = finishedWork$jscomp$0),\n (firstBatch = finishedWork$jscomp$0.firstEffect))\n : (firstBatch = finishedWork$jscomp$0)\n : (firstBatch = finishedWork$jscomp$0.firstEffect);\n for (nextEffect = firstBatch; null !== nextEffect; ) {\n childExpirationTimeBeforeCommit = !1;\n var error = void 0;\n try {\n for (; null !== nextEffect; ) {\n if (nextEffect.effectTag & 256)\n a: {\n var current$$1 = nextEffect.alternate,\n finishedWork = nextEffect;\n switch (finishedWork.tag) {\n case 0:\n case 11:\n case 15:\n break a;\n case 1:\n if (finishedWork.effectTag & 256 && null !== current$$1) {\n var prevProps = current$$1.memoizedProps,\n prevState = current$$1.memoizedState,\n instance = finishedWork.stateNode,\n snapshot = instance.getSnapshotBeforeUpdate(\n finishedWork.elementType === finishedWork.type\n ? prevProps\n : resolveDefaultProps(finishedWork.type, prevProps),\n prevState\n );\n instance.__reactInternalSnapshotBeforeUpdate = snapshot;\n }\n break a;\n case 3:\n case 5:\n case 6:\n case 4:\n case 17:\n break a;\n default:\n invariant(\n !1,\n \"This unit of work tag should not have side-effects. This error is likely caused by a bug in React. Please file an issue.\"\n );\n }\n }\n nextEffect = nextEffect.nextEffect;\n }\n } catch (e) {\n (childExpirationTimeBeforeCommit = !0), (error = e);\n }\n childExpirationTimeBeforeCommit &&\n (invariant(\n null !== nextEffect,\n \"Should have next effect. This error is likely caused by a bug in React. Please file an issue.\"\n ),\n captureCommitPhaseError(nextEffect, error),\n null !== nextEffect && (nextEffect = nextEffect.nextEffect));\n }\n for (nextEffect = firstBatch; null !== nextEffect; ) {\n current$$1 = !1;\n prevProps = void 0;\n try {\n for (; null !== nextEffect; ) {\n var effectTag = nextEffect.effectTag;\n if (effectTag & 128) {\n var current$$1$jscomp$0 = nextEffect.alternate;\n if (null !== current$$1$jscomp$0) {\n var currentRef = current$$1$jscomp$0.ref;\n null !== currentRef &&\n (\"function\" === typeof currentRef\n ? currentRef(null)\n : (currentRef.current = null));\n }\n }\n switch (effectTag & 14) {\n case 2:\n commitPlacement(nextEffect);\n nextEffect.effectTag &= -3;\n break;\n case 6:\n commitPlacement(nextEffect);\n nextEffect.effectTag &= -3;\n commitWork(nextEffect.alternate, nextEffect);\n break;\n case 4:\n commitWork(nextEffect.alternate, nextEffect);\n break;\n case 8:\n (prevState = nextEffect),\n unmountHostComponents(prevState),\n (prevState.return = null),\n (prevState.child = null),\n prevState.alternate &&\n ((prevState.alternate.child = null),\n (prevState.alternate.return = null));\n }\n nextEffect = nextEffect.nextEffect;\n }\n } catch (e) {\n (current$$1 = !0), (prevProps = e);\n }\n current$$1 &&\n (invariant(\n null !== nextEffect,\n \"Should have next effect. This error is likely caused by a bug in React. Please file an issue.\"\n ),\n captureCommitPhaseError(nextEffect, prevProps),\n null !== nextEffect && (nextEffect = nextEffect.nextEffect));\n }\n root.current = finishedWork$jscomp$0;\n for (nextEffect = firstBatch; null !== nextEffect; ) {\n effectTag = !1;\n current$$1$jscomp$0 = void 0;\n try {\n for (currentRef = expirationTime; null !== nextEffect; ) {\n var effectTag$jscomp$0 = nextEffect.effectTag;\n if (effectTag$jscomp$0 & 36) {\n var current$$1$jscomp$1 = nextEffect.alternate;\n current$$1 = nextEffect;\n prevProps = currentRef;\n switch (current$$1.tag) {\n case 0:\n case 11:\n case 15:\n break;\n case 1:\n var instance$jscomp$0 = current$$1.stateNode;\n if (current$$1.effectTag & 4)\n if (null === current$$1$jscomp$1)\n instance$jscomp$0.componentDidMount();\n else {\n var prevProps$jscomp$0 =\n current$$1.elementType === current$$1.type\n ? current$$1$jscomp$1.memoizedProps\n : resolveDefaultProps(\n current$$1.type,\n current$$1$jscomp$1.memoizedProps\n );\n instance$jscomp$0.componentDidUpdate(\n prevProps$jscomp$0,\n current$$1$jscomp$1.memoizedState,\n instance$jscomp$0.__reactInternalSnapshotBeforeUpdate\n );\n }\n var updateQueue = current$$1.updateQueue;\n null !== updateQueue &&\n commitUpdateQueue(\n current$$1,\n updateQueue,\n instance$jscomp$0,\n prevProps\n );\n break;\n case 3:\n var _updateQueue = current$$1.updateQueue;\n if (null !== _updateQueue) {\n prevState = null;\n if (null !== current$$1.child)\n switch (current$$1.child.tag) {\n case 5:\n prevState = current$$1.child.stateNode;\n break;\n case 1:\n prevState = current$$1.child.stateNode;\n }\n commitUpdateQueue(\n current$$1,\n _updateQueue,\n prevState,\n prevProps\n );\n }\n break;\n case 5:\n break;\n case 6:\n break;\n case 4:\n break;\n case 12:\n break;\n case 13:\n break;\n case 17:\n break;\n default:\n invariant(\n !1,\n \"This unit of work tag should not have side-effects. This error is likely caused by a bug in React. Please file an issue.\"\n );\n }\n }\n if (effectTag$jscomp$0 & 128) {\n var ref = nextEffect.ref;\n if (null !== ref) {\n var instance$jscomp$1 = nextEffect.stateNode;\n switch (nextEffect.tag) {\n case 5:\n var instanceToUse = instance$jscomp$1;\n break;\n default:\n instanceToUse = instance$jscomp$1;\n }\n \"function\" === typeof ref\n ? ref(instanceToUse)\n : (ref.current = instanceToUse);\n }\n }\n nextEffect = nextEffect.nextEffect;\n }\n } catch (e) {\n (effectTag = !0), (current$$1$jscomp$0 = e);\n }\n effectTag &&\n (invariant(\n null !== nextEffect,\n \"Should have next effect. This error is likely caused by a bug in React. Please file an issue.\"\n ),\n captureCommitPhaseError(nextEffect, current$$1$jscomp$0),\n null !== nextEffect && (nextEffect = nextEffect.nextEffect));\n }\n isWorking = isCommitting$1 = !1;\n \"function\" === typeof onCommitFiberRoot &&\n onCommitFiberRoot(finishedWork$jscomp$0.stateNode);\n effectTag$jscomp$0 = finishedWork$jscomp$0.expirationTime;\n finishedWork$jscomp$0 = finishedWork$jscomp$0.childExpirationTime;\n finishedWork$jscomp$0 =\n finishedWork$jscomp$0 > effectTag$jscomp$0\n ? finishedWork$jscomp$0\n : effectTag$jscomp$0;\n 0 === finishedWork$jscomp$0 &&\n (legacyErrorBoundariesThatAlreadyFailed = null);\n root.expirationTime = finishedWork$jscomp$0;\n root.finishedWork = null;\n}\nfunction onUncaughtError(error) {\n invariant(\n null !== nextFlushedRoot,\n \"Should be working on a root. This error is likely caused by a bug in React. Please file an issue.\"\n );\n nextFlushedRoot.expirationTime = 0;\n hasUnhandledError || ((hasUnhandledError = !0), (unhandledError = error));\n}\nfunction findHostInstance$1(component) {\n var fiber = component._reactInternalFiber;\n void 0 === fiber &&\n (\"function\" === typeof component.render\n ? invariant(!1, \"Unable to find node on an unmounted component.\")\n : invariant(\n !1,\n \"Argument appears to not be a ReactComponent. Keys: %s\",\n Object.keys(component)\n ));\n component = findCurrentHostFiber(fiber);\n return null === component ? null : component.stateNode;\n}\nfunction updateContainer(element, container, parentComponent, callback) {\n var current$$1 = container.current,\n currentTime = requestCurrentTime();\n current$$1 = computeExpirationForFiber(currentTime, current$$1);\n currentTime = container.current;\n a: if (parentComponent) {\n parentComponent = parentComponent._reactInternalFiber;\n b: {\n invariant(\n 2 === isFiberMountedImpl(parentComponent) && 1 === parentComponent.tag,\n \"Expected subtree parent to be a mounted class component. This error is likely caused by a bug in React. Please file an issue.\"\n );\n var parentContext = parentComponent;\n do {\n switch (parentContext.tag) {\n case 3:\n parentContext = parentContext.stateNode.context;\n break b;\n case 1:\n if (isContextProvider(parentContext.type)) {\n parentContext =\n parentContext.stateNode\n .__reactInternalMemoizedMergedChildContext;\n break b;\n }\n }\n parentContext = parentContext.return;\n } while (null !== parentContext);\n invariant(\n !1,\n \"Found unexpected detached subtree parent. This error is likely caused by a bug in React. Please file an issue.\"\n );\n parentContext = void 0;\n }\n if (1 === parentComponent.tag) {\n var Component = parentComponent.type;\n if (isContextProvider(Component)) {\n parentComponent = processChildContext(\n parentComponent,\n Component,\n parentContext\n );\n break a;\n }\n }\n parentComponent = parentContext;\n } else parentComponent = emptyContextObject;\n null === container.context\n ? (container.context = parentComponent)\n : (container.pendingContext = parentComponent);\n container = callback;\n callback = createUpdate(current$$1);\n callback.payload = { element: element };\n container = void 0 === container ? null : container;\n null !== container && (callback.callback = container);\n flushPassiveEffects();\n enqueueUpdate(currentTime, callback);\n scheduleWork(currentTime, current$$1);\n return current$$1;\n}\nfunction createPortal(children, containerInfo, implementation) {\n var key =\n 3 < arguments.length && void 0 !== arguments[3] ? arguments[3] : null;\n return {\n $$typeof: REACT_PORTAL_TYPE,\n key: null == key ? null : \"\" + key,\n children: children,\n containerInfo: containerInfo,\n implementation: implementation\n };\n}\nfunction _inherits(subClass, superClass) {\n if (\"function\" !== typeof superClass && null !== superClass)\n throw new TypeError(\n \"Super expression must either be null or a function, not \" +\n typeof superClass\n );\n subClass.prototype = Object.create(superClass && superClass.prototype, {\n constructor: {\n value: subClass,\n enumerable: !1,\n writable: !0,\n configurable: !0\n }\n });\n superClass &&\n (Object.setPrototypeOf\n ? Object.setPrototypeOf(subClass, superClass)\n : (subClass.__proto__ = superClass));\n}\nvar getInspectorDataForViewTag = void 0;\ngetInspectorDataForViewTag = function() {\n invariant(!1, \"getInspectorDataForViewTag() is not available in production\");\n};\nfunction findNodeHandle(componentOrHandle) {\n if (null == componentOrHandle) return null;\n if (\"number\" === typeof componentOrHandle) return componentOrHandle;\n if (componentOrHandle._nativeTag) return componentOrHandle._nativeTag;\n if (componentOrHandle.canonical && componentOrHandle.canonical._nativeTag)\n return componentOrHandle.canonical._nativeTag;\n componentOrHandle = findHostInstance$1(componentOrHandle);\n return null == componentOrHandle\n ? componentOrHandle\n : componentOrHandle.canonical\n ? componentOrHandle.canonical._nativeTag\n : componentOrHandle._nativeTag;\n}\n_batchedUpdatesImpl = function(fn, a) {\n var previousIsBatchingUpdates = isBatchingUpdates;\n isBatchingUpdates = !0;\n try {\n return fn(a);\n } finally {\n (isBatchingUpdates = previousIsBatchingUpdates) ||\n isRendering ||\n performWork(1073741823, !1);\n }\n};\n_flushInteractiveUpdatesImpl = function() {\n isRendering ||\n 0 === lowestPriorityPendingInteractiveExpirationTime ||\n (performWork(lowestPriorityPendingInteractiveExpirationTime, !1),\n (lowestPriorityPendingInteractiveExpirationTime = 0));\n};\nvar roots = new Map(),\n ReactNativeRenderer = {\n NativeComponent: (function(findNodeHandle, findHostInstance) {\n return (function(_React$Component) {\n function ReactNativeComponent() {\n if (!(this instanceof ReactNativeComponent))\n throw new TypeError(\"Cannot call a class as a function\");\n var call = _React$Component.apply(this, arguments);\n if (!this)\n throw new ReferenceError(\n \"this hasn't been initialised - super() hasn't been called\"\n );\n return !call ||\n (\"object\" !== typeof call && \"function\" !== typeof call)\n ? this\n : call;\n }\n _inherits(ReactNativeComponent, _React$Component);\n ReactNativeComponent.prototype.blur = function() {\n TextInputState.blurTextInput(findNodeHandle(this));\n };\n ReactNativeComponent.prototype.focus = function() {\n TextInputState.focusTextInput(findNodeHandle(this));\n };\n ReactNativeComponent.prototype.measure = function(callback) {\n UIManager.measure(\n findNodeHandle(this),\n mountSafeCallback_NOT_REALLY_SAFE(this, callback)\n );\n };\n ReactNativeComponent.prototype.measureInWindow = function(callback) {\n UIManager.measureInWindow(\n findNodeHandle(this),\n mountSafeCallback_NOT_REALLY_SAFE(this, callback)\n );\n };\n ReactNativeComponent.prototype.measureLayout = function(\n relativeToNativeNode,\n onSuccess,\n onFail\n ) {\n UIManager.measureLayout(\n findNodeHandle(this),\n relativeToNativeNode,\n mountSafeCallback_NOT_REALLY_SAFE(this, onFail),\n mountSafeCallback_NOT_REALLY_SAFE(this, onSuccess)\n );\n };\n ReactNativeComponent.prototype.setNativeProps = function(nativeProps) {\n var maybeInstance = void 0;\n try {\n maybeInstance = findHostInstance(this);\n } catch (error) {}\n if (null != maybeInstance) {\n var viewConfig =\n maybeInstance.viewConfig || maybeInstance.canonical.viewConfig;\n nativeProps = diffProperties(\n null,\n emptyObject,\n nativeProps,\n viewConfig.validAttributes\n );\n null != nativeProps &&\n UIManager.updateView(\n maybeInstance._nativeTag,\n viewConfig.uiViewClassName,\n nativeProps\n );\n }\n };\n return ReactNativeComponent;\n })(React.Component);\n })(findNodeHandle, findHostInstance$1),\n findNodeHandle: findNodeHandle,\n render: function(element, containerTag, callback) {\n var root = roots.get(containerTag);\n if (!root) {\n root = createFiber(3, null, null, 0);\n var root$jscomp$0 = {\n current: root,\n containerInfo: containerTag,\n pendingChildren: null,\n earliestPendingTime: 0,\n latestPendingTime: 0,\n earliestSuspendedTime: 0,\n latestSuspendedTime: 0,\n latestPingedTime: 0,\n didError: !1,\n pendingCommitExpirationTime: 0,\n finishedWork: null,\n timeoutHandle: -1,\n context: null,\n pendingContext: null,\n hydrate: !1,\n nextExpirationTimeToWorkOn: 0,\n expirationTime: 0,\n firstBatch: null,\n nextScheduledRoot: null\n };\n root = root.stateNode = root$jscomp$0;\n roots.set(containerTag, root);\n }\n updateContainer(element, root, null, callback);\n a: if (((element = root.current), element.child))\n switch (element.child.tag) {\n case 5:\n element = element.child.stateNode;\n break a;\n default:\n element = element.child.stateNode;\n }\n else element = null;\n return element;\n },\n unmountComponentAtNode: function(containerTag) {\n var root = roots.get(containerTag);\n root &&\n updateContainer(null, root, null, function() {\n roots.delete(containerTag);\n });\n },\n unmountComponentAtNodeAndRemoveContainer: function(containerTag) {\n ReactNativeRenderer.unmountComponentAtNode(containerTag);\n UIManager.removeRootView(containerTag);\n },\n createPortal: function(children, containerTag) {\n return createPortal(\n children,\n containerTag,\n null,\n 2 < arguments.length && void 0 !== arguments[2] ? arguments[2] : null\n );\n },\n unstable_batchedUpdates: batchedUpdates,\n __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED: {\n NativeMethodsMixin: (function(findNodeHandle, findHostInstance) {\n return {\n measure: function(callback) {\n UIManager.measure(\n findNodeHandle(this),\n mountSafeCallback_NOT_REALLY_SAFE(this, callback)\n );\n },\n measureInWindow: function(callback) {\n UIManager.measureInWindow(\n findNodeHandle(this),\n mountSafeCallback_NOT_REALLY_SAFE(this, callback)\n );\n },\n measureLayout: function(relativeToNativeNode, onSuccess, onFail) {\n UIManager.measureLayout(\n findNodeHandle(this),\n relativeToNativeNode,\n mountSafeCallback_NOT_REALLY_SAFE(this, onFail),\n mountSafeCallback_NOT_REALLY_SAFE(this, onSuccess)\n );\n },\n setNativeProps: function(nativeProps) {\n var maybeInstance = void 0;\n try {\n maybeInstance = findHostInstance(this);\n } catch (error) {}\n if (null != maybeInstance) {\n var viewConfig = maybeInstance.viewConfig;\n nativeProps = diffProperties(\n null,\n emptyObject,\n nativeProps,\n viewConfig.validAttributes\n );\n null != nativeProps &&\n UIManager.updateView(\n maybeInstance._nativeTag,\n viewConfig.uiViewClassName,\n nativeProps\n );\n }\n },\n focus: function() {\n TextInputState.focusTextInput(findNodeHandle(this));\n },\n blur: function() {\n TextInputState.blurTextInput(findNodeHandle(this));\n }\n };\n })(findNodeHandle, findHostInstance$1),\n computeComponentStackForErrorReporting: function(reactTag) {\n return (reactTag = getInstanceFromTag(reactTag))\n ? getStackByFiberInDevAndProd(reactTag)\n : \"\";\n }\n }\n };\n(function(devToolsConfig) {\n var findFiberByHostInstance = devToolsConfig.findFiberByHostInstance;\n return injectInternals(\n Object.assign({}, devToolsConfig, {\n findHostInstanceByFiber: function(fiber) {\n fiber = findCurrentHostFiber(fiber);\n return null === fiber ? null : fiber.stateNode;\n },\n findFiberByHostInstance: function(instance) {\n return findFiberByHostInstance\n ? findFiberByHostInstance(instance)\n : null;\n }\n })\n );\n})({\n findFiberByHostInstance: getInstanceFromTag,\n getInspectorDataForViewTag: getInspectorDataForViewTag,\n bundleType: 0,\n version: \"16.6.1\",\n rendererPackageName: \"react-native-renderer\"\n});\nvar ReactNativeRenderer$2 = { default: ReactNativeRenderer },\n ReactNativeRenderer$3 =\n (ReactNativeRenderer$2 && ReactNativeRenderer) || ReactNativeRenderer$2;\nmodule.exports = ReactNativeRenderer$3.default || ReactNativeRenderer$3;\n","/**\n * Copyright (c) 2015-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n * @flow\n */\n\n/* globals window: true */\n\n/**\n * Sets up global variables typical in most JavaScript environments.\n *\n * 1. Global timers (via `setTimeout` etc).\n * 2. Global console object.\n * 3. Hooks for printing stack traces with source maps.\n *\n * Leaves enough room in the environment for implementing your own:\n *\n * 1. Require system.\n * 2. Bridged modules.\n *\n */\n'use strict';\n\nconst {polyfillObjectProperty, polyfillGlobal} = require('PolyfillFunctions');\n\nif (global.GLOBAL === undefined) {\n global.GLOBAL = global;\n}\n\nif (global.window === undefined) {\n global.window = global;\n}\n\n// Set up collections\nconst _shouldPolyfillCollection = require('_shouldPolyfillES6Collection');\nif (_shouldPolyfillCollection('Map')) {\n polyfillGlobal('Map', () => require('Map'));\n}\nif (_shouldPolyfillCollection('Set')) {\n polyfillGlobal('Set', () => require('Set'));\n}\n\n// Set up process\nglobal.process = global.process || {};\nglobal.process.env = global.process.env || {};\nif (!global.process.env.NODE_ENV) {\n global.process.env.NODE_ENV = __DEV__ ? 'development' : 'production';\n}\n\n// Setup the Systrace profiling hooks if necessary\nif (global.__RCTProfileIsProfiling) {\n const Systrace = require('Systrace');\n Systrace.installReactHook();\n Systrace.setEnabled(true);\n}\n\n// Set up console\nconst ExceptionsManager = require('ExceptionsManager');\nExceptionsManager.installConsoleErrorReporter();\n\n// Set up error handler\nif (!global.__fbDisableExceptionsManager) {\n const handleError = (e, isFatal) => {\n try {\n ExceptionsManager.handleException(e, isFatal);\n } catch (ee) {\n console.log('Failed to print error: ', ee.message);\n throw e;\n }\n };\n\n const ErrorUtils = require('ErrorUtils');\n ErrorUtils.setGlobalHandler(handleError);\n}\n\n// Check for compatibility between the JS and native code\nconst ReactNativeVersionCheck = require('ReactNativeVersionCheck');\nReactNativeVersionCheck.checkVersions();\n\n// Set up Promise\n// The native Promise implementation throws the following error:\n// ERROR: Event loop not supported.\npolyfillGlobal('Promise', () => require('Promise'));\n\n// Set up regenerator.\npolyfillGlobal('regeneratorRuntime', () => {\n // The require just sets up the global, so make sure when we first\n // invoke it the global does not exist\n delete global.regeneratorRuntime;\n\n // regenerator-runtime/runtime exports the regeneratorRuntime object, so we\n // can return it safely.\n return require('regenerator-runtime/runtime');\n});\n\n// Set up timers\nconst defineLazyTimer = name => {\n polyfillGlobal(name, () => require('JSTimers')[name]);\n};\ndefineLazyTimer('setTimeout');\ndefineLazyTimer('setInterval');\ndefineLazyTimer('setImmediate');\ndefineLazyTimer('clearTimeout');\ndefineLazyTimer('clearInterval');\ndefineLazyTimer('clearImmediate');\ndefineLazyTimer('requestAnimationFrame');\ndefineLazyTimer('cancelAnimationFrame');\ndefineLazyTimer('requestIdleCallback');\ndefineLazyTimer('cancelIdleCallback');\n\n// Set up XHR\n// The native XMLHttpRequest in Chrome dev tools is CORS aware and won't\n// let you fetch anything from the internet\npolyfillGlobal('XMLHttpRequest', () => require('XMLHttpRequest'));\npolyfillGlobal('FormData', () => require('FormData'));\n\npolyfillGlobal('fetch', () => require('fetch').fetch);\npolyfillGlobal('Headers', () => require('fetch').Headers);\npolyfillGlobal('Request', () => require('fetch').Request);\npolyfillGlobal('Response', () => require('fetch').Response);\npolyfillGlobal('WebSocket', () => require('WebSocket'));\npolyfillGlobal('Blob', () => require('Blob'));\npolyfillGlobal('File', () => require('File'));\npolyfillGlobal('FileReader', () => require('FileReader'));\npolyfillGlobal('URL', () => require('URL'));\n\n// Set up alert\nif (!global.alert) {\n global.alert = function(text) {\n // Require Alert on demand. Requiring it too early can lead to issues\n // with things like Platform not being fully initialized.\n require('Alert').alert('Alert', '' + text);\n };\n}\n\n// Set up Geolocation\nlet navigator = global.navigator;\nif (navigator === undefined) {\n global.navigator = navigator = {};\n}\n\n// see https://github.com/facebook/react-native/issues/10881\npolyfillObjectProperty(navigator, 'product', () => 'ReactNative');\npolyfillObjectProperty(navigator, 'geolocation', () => require('Geolocation'));\n\n// Just to make sure the JS gets packaged up. Wait until the JS environment has\n// been initialized before requiring them.\nconst BatchedBridge = require('BatchedBridge');\nBatchedBridge.registerLazyCallableModule('Systrace', () => require('Systrace'));\nBatchedBridge.registerLazyCallableModule('JSTimers', () => require('JSTimers'));\nBatchedBridge.registerLazyCallableModule('HeapCapture', () =>\n require('HeapCapture'),\n);\nBatchedBridge.registerLazyCallableModule('SamplingProfiler', () =>\n require('SamplingProfiler'),\n);\nBatchedBridge.registerLazyCallableModule('RCTLog', () => require('RCTLog'));\nBatchedBridge.registerLazyCallableModule('RCTDeviceEventEmitter', () =>\n require('RCTDeviceEventEmitter'),\n);\nBatchedBridge.registerLazyCallableModule('RCTNativeAppEventEmitter', () =>\n require('RCTNativeAppEventEmitter'),\n);\nBatchedBridge.registerLazyCallableModule('PerformanceLogger', () =>\n require('PerformanceLogger'),\n);\nBatchedBridge.registerLazyCallableModule('JSDevSupportModule', () =>\n require('JSDevSupportModule'),\n);\n\nglobal.__fetchSegment = function(\n segmentId: number,\n options: {|+otaBuildNumber: ?string|},\n callback: (?Error) => void,\n) {\n const {SegmentFetcher} = require('NativeModules');\n if (!SegmentFetcher) {\n throw new Error(\n 'SegmentFetcher is missing. Please ensure that it is ' +\n 'included as a NativeModule.',\n );\n }\n\n SegmentFetcher.fetchSegment(\n segmentId,\n options,\n (errorObject: ?{message: string, code: string}) => {\n if (errorObject) {\n const error = new Error(errorObject.message);\n (error: any).code = errorObject.code;\n callback(error);\n }\n\n callback(null);\n },\n );\n};\n\n// Set up devtools\nif (__DEV__) {\n if (!global.__RCTProfileIsProfiling) {\n BatchedBridge.registerCallableModule('HMRClient', require('HMRClient'));\n\n // not when debugging in chrome\n // TODO(t12832058) This check is broken\n if (!window.document) {\n require('setupDevtools');\n }\n\n // Set up inspector\n const JSInspector = require('JSInspector');\n JSInspector.registerAgent(require('NetworkAgent'));\n }\n}\n","/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @flow\n * @format\n */\n\n'use strict';\n\nconst defineLazyObjectProperty = require('defineLazyObjectProperty');\n\n/**\n * Sets an object's property. If a property with the same name exists, this will\n * replace it but maintain its descriptor configuration. The property will be\n * replaced with a lazy getter.\n *\n * In DEV mode the original property value will be preserved as `original[PropertyName]`\n * so that, if necessary, it can be restored. For example, if you want to route\n * network requests through DevTools (to trace them):\n *\n * global.XMLHttpRequest = global.originalXMLHttpRequest;\n *\n * @see https://github.com/facebook/react-native/issues/934\n */\nfunction polyfillObjectProperty(\n object: Object,\n name: string,\n getValue: () => T,\n): void {\n const descriptor = Object.getOwnPropertyDescriptor(object, name);\n if (__DEV__ && descriptor) {\n const backupName = `original${name[0].toUpperCase()}${name.substr(1)}`;\n Object.defineProperty(object, backupName, {\n ...descriptor,\n value: object[name],\n });\n }\n\n const {enumerable, writable, configurable} = descriptor || {};\n if (descriptor && !configurable) {\n console.error('Failed to set polyfill. ' + name + ' is not configurable.');\n return;\n }\n\n defineLazyObjectProperty(object, name, {\n get: getValue,\n enumerable: enumerable !== false,\n writable: writable !== false,\n });\n}\n\nfunction polyfillGlobal(name: string, getValue: () => T): void {\n polyfillObjectProperty(global, name, getValue);\n}\n\nmodule.exports = {polyfillObjectProperty, polyfillGlobal};\n","/**\n * Copyright (c) 2015-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n * @preventMunge\n * @flow strict\n */\n\n'use strict';\n\n/**\n * Checks whether a collection name (e.g. \"Map\" or \"Set\") has a native polyfill\n * that is safe to be used.\n */\nfunction _shouldActuallyPolyfillES6Collection(collectionName: string): boolean {\n const Collection = global[collectionName];\n if (Collection == null) {\n return true;\n }\n\n // The iterator protocol depends on `Symbol.iterator`. If a collection is\n // implemented, but `Symbol` is not, it's going to break iteration because\n // we'll be using custom \"@@iterator\" instead, which is not implemented on\n // native collections.\n if (typeof global.Symbol !== 'function') {\n return true;\n }\n\n const proto = Collection.prototype;\n\n // These checks are adapted from es6-shim: https://fburl.com/34437854\n // NOTE: `isCallableWithoutNew` and `!supportsSubclassing` are not checked\n // because they make debugging with \"break on exceptions\" difficult.\n return (\n Collection == null ||\n typeof Collection !== 'function' ||\n typeof proto.clear !== 'function' ||\n new Collection().size !== 0 ||\n typeof proto.keys !== 'function' ||\n typeof proto.forEach !== 'function'\n );\n}\n\nconst cache: {[name: string]: boolean} = {};\n\n/**\n * Checks whether a collection name (e.g. \"Map\" or \"Set\") has a native polyfill\n * that is safe to be used and caches this result.\n * Make sure to make a first call to this function before a corresponding\n * property on global was overriden in any way.\n */\nfunction _shouldPolyfillES6Collection(collectionName: string) {\n let result = cache[collectionName];\n if (result !== undefined) {\n return result;\n }\n\n result = _shouldActuallyPolyfillES6Collection(collectionName);\n cache[collectionName] = result;\n return result;\n}\n\nmodule.exports = _shouldPolyfillES6Collection;\n","/**\n * Copyright (c) 2015-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n * @preventMunge\n * @typechecks\n */\n\n/* eslint-disable no-extend-native, no-shadow-restricted-names */\n\n'use strict';\n\nconst _shouldPolyfillES6Collection = require('_shouldPolyfillES6Collection');\nconst guid = require('guid');\nconst isNode = require('fbjs/lib/isNode');\nconst toIterator = require('toIterator');\n\nmodule.exports = (function(global, undefined) {\n // Since our implementation is spec-compliant for the most part we can safely\n // delegate to a built-in version if exists and is implemented correctly.\n // Firefox had gotten a few implementation details wrong across different\n // versions so we guard against that.\n if (!_shouldPolyfillES6Collection('Map')) {\n return global.Map;\n }\n\n /**\n * == ES6 Map Collection ==\n *\n * This module is meant to implement a Map collection as described in chapter\n * 23.1 of the ES6 specification.\n *\n * Map objects are collections of key/value pairs where both the keys and\n * values may be arbitrary ECMAScript language values. A distinct key value\n * may only occur in one key/value pair within the Map's collection.\n *\n * https://people.mozilla.org/~jorendorff/es6-draft.html#sec-map-objects\n *\n * There only two -- rather small -- diviations from the spec:\n *\n * 1. The use of frozen objects as keys.\n * We decided not to allow and simply throw an error. The reason being is\n * we store a \"hash\" on the object for fast access to it's place in the\n * internal map entries.\n * If this turns out to be a popular use case it's possible to implement by\n * overiding `Object.freeze` to store a \"hash\" property on the object\n * for later use with the map.\n *\n * 2. The `size` property on a map object is a regular property and not a\n * computed property on the prototype as described by the spec.\n * The reason being is that we simply want to support ES3 environments\n * which doesn't implement computed properties.\n *\n * == Usage ==\n *\n * var map = new Map(iterable);\n *\n * map.set(key, value);\n * map.get(key); // value\n * map.has(key); // true\n * map.delete(key); // true\n *\n * var iterator = map.keys();\n * iterator.next(); // {value: key, done: false}\n *\n * var iterator = map.values();\n * iterator.next(); // {value: value, done: false}\n *\n * var iterator = map.entries();\n * iterator.next(); // {value: [key, value], done: false}\n *\n * map.forEach(function(value, key){ this === thisArg }, thisArg);\n *\n * map.clear(); // resets map.\n */\n\n /**\n * Constants\n */\n\n // Kinds of map iterations 23.1.5.3\n const KIND_KEY = 'key';\n const KIND_VALUE = 'value';\n const KIND_KEY_VALUE = 'key+value';\n\n // In older browsers we can't create a null-prototype object so we have to\n // defend against key collisions with built-in methods.\n const KEY_PREFIX = '$map_';\n\n // This property will be used as the internal size variable to disallow\n // writing and to issue warnings for writings in development.\n let SECRET_SIZE_PROP;\n if (__DEV__) {\n SECRET_SIZE_PROP = '$size' + guid();\n }\n\n // In oldIE we use the DOM Node `uniqueID` property to get create the hash.\n const OLD_IE_HASH_PREFIX = 'IE_HASH_';\n\n class Map {\n /**\n * 23.1.1.1\n * Takes an `iterable` which is basically any object that implements a\n * Symbol.iterator (@@iterator) method. The iterable is expected to be a\n * collection of pairs. Each pair is a key/value pair that will be used\n * to instantiate the map.\n *\n * @param {*} iterable\n */\n constructor(iterable) {\n if (!isObject(this)) {\n throw new TypeError('Wrong map object type.');\n }\n\n initMap(this);\n\n if (iterable != null) {\n const it = toIterator(iterable);\n let next;\n while (!(next = it.next()).done) {\n if (!isObject(next.value)) {\n throw new TypeError('Expected iterable items to be pair objects.');\n }\n this.set(next.value[0], next.value[1]);\n }\n }\n }\n\n /**\n * 23.1.3.1\n * Clears the map from all keys and values.\n */\n clear() {\n initMap(this);\n }\n\n /**\n * 23.1.3.7\n * Check if a key exists in the collection.\n *\n * @param {*} key\n * @return {boolean}\n */\n has(key) {\n const index = getIndex(this, key);\n return !!(index != null && this._mapData[index]);\n }\n\n /**\n * 23.1.3.9\n * Adds a key/value pair to the collection.\n *\n * @param {*} key\n * @param {*} value\n * @return {map}\n */\n set(key, value) {\n let index = getIndex(this, key);\n\n if (index != null && this._mapData[index]) {\n this._mapData[index][1] = value;\n } else {\n index = this._mapData.push([key, value]) - 1;\n setIndex(this, key, index);\n if (__DEV__) {\n this[SECRET_SIZE_PROP] += 1;\n } else {\n this.size += 1;\n }\n }\n\n return this;\n }\n\n /**\n * 23.1.3.6\n * Gets a value associated with a key in the collection.\n *\n * @param {*} key\n * @return {*}\n */\n get(key) {\n const index = getIndex(this, key);\n if (index == null) {\n return undefined;\n } else {\n return this._mapData[index][1];\n }\n }\n\n /**\n * 23.1.3.3\n * Delete a key/value from the collection.\n *\n * @param {*} key\n * @return {boolean} Whether the key was found and deleted.\n */\n delete(key) {\n const index = getIndex(this, key);\n if (index != null && this._mapData[index]) {\n setIndex(this, key, undefined);\n this._mapData[index] = undefined;\n if (__DEV__) {\n this[SECRET_SIZE_PROP] -= 1;\n } else {\n this.size -= 1;\n }\n return true;\n } else {\n return false;\n }\n }\n\n /**\n * 23.1.3.4\n * Returns an iterator over the key/value pairs (in the form of an Array) in\n * the collection.\n *\n * @return {MapIterator}\n */\n entries() {\n return new MapIterator(this, KIND_KEY_VALUE);\n }\n\n /**\n * 23.1.3.8\n * Returns an iterator over the keys in the collection.\n *\n * @return {MapIterator}\n */\n keys() {\n return new MapIterator(this, KIND_KEY);\n }\n\n /**\n * 23.1.3.11\n * Returns an iterator over the values pairs in the collection.\n *\n * @return {MapIterator}\n */\n values() {\n return new MapIterator(this, KIND_VALUE);\n }\n\n /**\n * 23.1.3.5\n * Iterates over the key/value pairs in the collection calling `callback`\n * with [value, key, map]. An optional `thisArg` can be passed to set the\n * context when `callback` is called.\n *\n * @param {function} callback\n * @param {?object} thisArg\n */\n forEach(callback, thisArg) {\n if (typeof callback !== 'function') {\n throw new TypeError('Callback must be callable.');\n }\n\n const boundCallback = callback.bind(thisArg || undefined);\n const mapData = this._mapData;\n\n // Note that `mapData.length` should be computed on each iteration to\n // support iterating over new items in the map that were added after the\n // start of the iteration.\n for (let i = 0; i < mapData.length; i++) {\n const entry = mapData[i];\n if (entry != null) {\n boundCallback(entry[1], entry[0], this);\n }\n }\n }\n }\n\n // 23.1.3.12\n Map.prototype[toIterator.ITERATOR_SYMBOL] = Map.prototype.entries;\n\n class MapIterator {\n /**\n * 23.1.5.1\n * Create a `MapIterator` for a given `map`. While this class is private it\n * will create objects that will be passed around publicily.\n *\n * @param {map} map\n * @param {string} kind\n */\n constructor(map, kind) {\n if (!(isObject(map) && map._mapData)) {\n throw new TypeError('Object is not a map.');\n }\n\n if ([KIND_KEY, KIND_KEY_VALUE, KIND_VALUE].indexOf(kind) === -1) {\n throw new Error('Invalid iteration kind.');\n }\n\n this._map = map;\n this._nextIndex = 0;\n this._kind = kind;\n }\n\n /**\n * 23.1.5.2.1\n * Get the next iteration.\n *\n * @return {object}\n */\n next() {\n if (!this instanceof Map) {\n throw new TypeError('Expected to be called on a MapIterator.');\n }\n\n const map = this._map;\n let index = this._nextIndex;\n const kind = this._kind;\n\n if (map == null) {\n return createIterResultObject(undefined, true);\n }\n\n const entries = map._mapData;\n\n while (index < entries.length) {\n const record = entries[index];\n\n index += 1;\n this._nextIndex = index;\n\n if (record) {\n if (kind === KIND_KEY) {\n return createIterResultObject(record[0], false);\n } else if (kind === KIND_VALUE) {\n return createIterResultObject(record[1], false);\n } else if (kind) {\n return createIterResultObject(record, false);\n }\n }\n }\n\n this._map = undefined;\n\n return createIterResultObject(undefined, true);\n }\n }\n\n // We can put this in the class definition once we have computed props\n // transform.\n // 23.1.5.2.2\n MapIterator.prototype[toIterator.ITERATOR_SYMBOL] = function() {\n return this;\n };\n\n /**\n * Helper Functions.\n */\n\n /**\n * Return an index to map.[[MapData]] array for a given Key.\n *\n * @param {map} map\n * @param {*} key\n * @return {?number}\n */\n function getIndex(map, key) {\n if (isObject(key)) {\n const hash = getHash(key);\n return map._objectIndex[hash];\n } else {\n const prefixedKey = KEY_PREFIX + key;\n if (typeof key === 'string') {\n return map._stringIndex[prefixedKey];\n } else {\n return map._otherIndex[prefixedKey];\n }\n }\n }\n\n /**\n * Setup an index that refer to the key's location in map.[[MapData]].\n *\n * @param {map} map\n * @param {*} key\n */\n function setIndex(map, key, index) {\n const shouldDelete = index == null;\n\n if (isObject(key)) {\n const hash = getHash(key);\n if (shouldDelete) {\n delete map._objectIndex[hash];\n } else {\n map._objectIndex[hash] = index;\n }\n } else {\n const prefixedKey = KEY_PREFIX + key;\n if (typeof key === 'string') {\n if (shouldDelete) {\n delete map._stringIndex[prefixedKey];\n } else {\n map._stringIndex[prefixedKey] = index;\n }\n } else {\n if (shouldDelete) {\n delete map._otherIndex[prefixedKey];\n } else {\n map._otherIndex[prefixedKey] = index;\n }\n }\n }\n }\n\n /**\n * Instantiate a map with internal slots.\n *\n * @param {map} map\n */\n function initMap(map) {\n // Data structure design inspired by Traceur's Map implementation.\n // We maintain an internal array for all the entries. The array is needed\n // to remember order. However, to have a reasonable HashMap performance\n // i.e. O(1) for insertion, deletion, and retrieval. We maintain indices\n // in objects for fast look ups. Indices are split up according to data\n // types to avoid collisions.\n map._mapData = [];\n\n // Object index maps from an object \"hash\" to index. The hash being a unique\n // property of our choosing that we associate with the object. Association\n // is done by ways of keeping a non-enumerable property on the object.\n // Ideally these would be `Object.create(null)` objects but since we're\n // trying to support ES3 we'll have to guard against collisions using\n // prefixes on the keys rather than rely on null prototype objects.\n map._objectIndex = {};\n\n // String index maps from strings to index.\n map._stringIndex = {};\n\n // Numbers, booleans, undefined, and null.\n map._otherIndex = {};\n\n // Unfortunately we have to support ES3 and cannot have `Map.prototype.size`\n // be a getter method but just a regular method. The biggest problem with\n // this is safety. Clients can change the size property easily and possibly\n // without noticing (e.g. `if (map.size = 1) {..}` kind of typo). What we\n // can do to mitigate use getters and setters in development to disallow\n // and issue a warning for changing the `size` property.\n if (__DEV__) {\n if (isES5) {\n // If the `SECRET_SIZE_PROP` property is already defined then we're not\n // in the first call to `initMap` (e.g. coming from `map.clear()`) so\n // all we need to do is reset the size without defining the properties.\n if (map.hasOwnProperty(SECRET_SIZE_PROP)) {\n map[SECRET_SIZE_PROP] = 0;\n } else {\n Object.defineProperty(map, SECRET_SIZE_PROP, {\n value: 0,\n writable: true,\n });\n Object.defineProperty(map, 'size', {\n set: v => {\n console.error(\n 'PLEASE FIX ME: You are changing the map size property which ' +\n 'should not be writable and will break in production.',\n );\n throw new Error('The map size property is not writable.');\n },\n get: () => map[SECRET_SIZE_PROP],\n });\n }\n\n // NOTE: Early return to implement immutable `.size` in DEV.\n return;\n }\n }\n\n // This is a diviation from the spec. `size` should be a getter on\n // `Map.prototype`. However, we have to support IE8.\n map.size = 0;\n }\n\n /**\n * Check if something is an object.\n *\n * @param {*} o\n * @return {boolean}\n */\n function isObject(o) {\n return o != null && (typeof o === 'object' || typeof o === 'function');\n }\n\n /**\n * Create an iteration object.\n *\n * @param {*} value\n * @param {boolean} done\n * @return {object}\n */\n function createIterResultObject(value, done) {\n return {value, done};\n }\n\n // Are we in a legit ES5 environment. Spoiler alert: that doesn't include IE8.\n const isES5 = (function() {\n try {\n Object.defineProperty({}, 'x', {});\n return true;\n } catch (e) {\n return false;\n }\n })();\n\n /**\n * Check if an object can be extended.\n *\n * @param {object|array|function|regexp} o\n * @return {boolean}\n */\n function isExtensible(o) {\n if (!isES5) {\n return true;\n } else {\n return Object.isExtensible(o);\n }\n }\n\n /**\n * IE has a `uniqueID` set on every DOM node. So we construct the hash from\n * this uniqueID to avoid memory leaks and the IE cloneNode bug where it\n * clones properties in addition to the attributes.\n *\n * @param {object} node\n * @return {?string}\n */\n function getIENodeHash(node) {\n let uniqueID;\n switch (node.nodeType) {\n case 1: // Element\n uniqueID = node.uniqueID;\n break;\n case 9: // Document\n uniqueID = node.documentElement.uniqueID;\n break;\n default:\n return null;\n }\n\n if (uniqueID) {\n return OLD_IE_HASH_PREFIX + uniqueID;\n } else {\n return null;\n }\n }\n\n const getHash = (function() {\n const propIsEnumerable = Object.prototype.propertyIsEnumerable;\n const hashProperty = guid();\n let hashCounter = 0;\n\n /**\n * Get the \"hash\" associated with an object.\n *\n * @param {object|array|function|regexp} o\n * @return {number}\n */\n return function getHash(o) {\n // eslint-disable-line no-shadow\n if (o[hashProperty]) {\n return o[hashProperty];\n } else if (\n !isES5 &&\n o.propertyIsEnumerable &&\n o.propertyIsEnumerable[hashProperty]\n ) {\n return o.propertyIsEnumerable[hashProperty];\n } else if (!isES5 && isNode(o) && getIENodeHash(o)) {\n return getIENodeHash(o);\n } else if (!isES5 && o[hashProperty]) {\n return o[hashProperty];\n }\n\n if (isExtensible(o)) {\n hashCounter += 1;\n if (isES5) {\n Object.defineProperty(o, hashProperty, {\n enumerable: false,\n writable: false,\n configurable: false,\n value: hashCounter,\n });\n } else if (o.propertyIsEnumerable) {\n // Since we can't define a non-enumerable property on the object\n // we'll hijack one of the less-used non-enumerable properties to\n // save our hash on it. Addiotionally, since this is a function it\n // will not show up in `JSON.stringify` which is what we want.\n o.propertyIsEnumerable = function() {\n return propIsEnumerable.apply(this, arguments);\n };\n o.propertyIsEnumerable[hashProperty] = hashCounter;\n } else if (isNode(o)) {\n // At this point we couldn't get the IE `uniqueID` to use as a hash\n // and we couldn't use a non-enumerable property to exploit the\n // dontEnum bug so we simply add the `hashProperty` on the node\n // itself.\n o[hashProperty] = hashCounter;\n } else {\n throw new Error('Unable to set a non-enumerable property on object.');\n }\n return hashCounter;\n } else {\n throw new Error('Non-extensible objects are not allowed as keys.');\n }\n };\n })();\n\n return Map;\n})(Function('return this')()); // eslint-disable-line no-new-func\n","/**\n * Copyright (c) 2015-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n */\n\n/* eslint-disable no-bitwise */\n\n'use strict';\n\n/**\n * Module that provides a function for creating a unique identifier.\n * The returned value does not conform to the GUID standard, but should\n * be globally unique in the context of the browser.\n */\nfunction guid() {\n return 'f' + (Math.random() * (1 << 30)).toString(16).replace('.', '');\n}\n\nmodule.exports = guid;\n","\"use strict\";\n\n/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @typechecks\n */\n\n/**\n * @param {*} object The object to check.\n * @return {boolean} Whether or not the object is a DOM node.\n */\nfunction isNode(object) {\n var doc = object ? object.ownerDocument || object : document;\n var defaultView = doc.defaultView || window;\n return !!(object && (typeof defaultView.Node === 'function' ? object instanceof defaultView.Node : typeof object === 'object' && typeof object.nodeType === 'number' && typeof object.nodeName === 'string'));\n}\n\nmodule.exports = isNode;","/**\n * Copyright (c) 2015-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n */\n\n'use strict';\n\n/**\n * Given an object `toIterator` will return the itrator for that object. If the\n * object has a `Symbol.iterator` method we just call that. Otherwise we\n * implement the ES6 `Array` and `String` Iterator.\n */\n\n/**\n * Constants\n */\n\nconst KIND_KEY = 'key';\nconst KIND_VALUE = 'value';\nconst KIND_KEY_VAL = 'key+value';\n/*global Symbol: true*/\nconst ITERATOR_SYMBOL =\n typeof Symbol === 'function' ? Symbol.iterator : '@@iterator';\n\nconst toIterator = (function() {\n if (\n !(Array.prototype[ITERATOR_SYMBOL] && String.prototype[ITERATOR_SYMBOL])\n ) {\n // IIFE to avoid creating classes for no reason because of hoisting.\n return (function() {\n class ArrayIterator {\n // 22.1.5.1 CreateArrayIterator Abstract Operation\n constructor(array, kind) {\n if (!Array.isArray(array)) {\n throw new TypeError('Object is not an Array');\n }\n this._iteratedObject = array;\n this._kind = kind;\n this._nextIndex = 0;\n }\n\n // 22.1.5.2.1 %ArrayIteratorPrototype%.next()\n next() {\n if (!this instanceof ArrayIterator) {\n throw new TypeError('Object is not an ArrayIterator');\n }\n\n if (this._iteratedObject == null) {\n return createIterResultObject(undefined, true);\n }\n\n const array = this._iteratedObject;\n const len = this._iteratedObject.length;\n const index = this._nextIndex;\n const kind = this._kind;\n\n if (index >= len) {\n this._iteratedObject = undefined;\n return createIterResultObject(undefined, true);\n }\n\n this._nextIndex = index + 1;\n\n if (kind === KIND_KEY) {\n return createIterResultObject(index, false);\n } else if (kind === KIND_VALUE) {\n return createIterResultObject(array[index], false);\n } else if (kind === KIND_KEY_VAL) {\n return createIterResultObject([index, array[index]], false);\n }\n }\n\n // 22.1.5.2.2 %ArrayIteratorPrototype%[@@iterator]()\n '@@iterator'() {\n return this;\n }\n }\n\n class StringIterator {\n // 21.1.5.1 CreateStringIterator Abstract Operation\n constructor(string) {\n if (typeof string !== 'string') {\n throw new TypeError('Object is not a string');\n }\n this._iteratedString = string;\n this._nextIndex = 0;\n }\n\n // 21.1.5.2.1 %StringIteratorPrototype%.next()\n next() {\n if (!this instanceof StringIterator) {\n throw new TypeError('Object is not a StringIterator');\n }\n\n if (this._iteratedString == null) {\n return createIterResultObject(undefined, true);\n }\n\n const index = this._nextIndex;\n const s = this._iteratedString;\n const len = s.length;\n\n if (index >= len) {\n this._iteratedString = undefined;\n return createIterResultObject(undefined, true);\n }\n\n let ret;\n const first = s.charCodeAt(index);\n\n if (first < 0xd800 || first > 0xdbff || index + 1 === len) {\n ret = s[index];\n } else {\n const second = s.charCodeAt(index + 1);\n if (second < 0xdc00 || second > 0xdfff) {\n ret = s[index];\n } else {\n ret = s[index] + s[index + 1];\n }\n }\n\n this._nextIndex = index + ret.length;\n\n return createIterResultObject(ret, false);\n }\n\n // 21.1.5.2.2 %StringIteratorPrototype%[@@ITERATOR_SYMBOL]()\n '@@iterator'() {\n return this;\n }\n }\n\n // 7.4.7 createIterResultObject(value, done)\n function createIterResultObject(value, done) {\n return {value: value, done: done};\n }\n\n return function(object, kind) {\n if (typeof object === 'string') {\n return new StringIterator(object);\n } else if (Array.isArray(object)) {\n return new ArrayIterator(object, kind || KIND_VALUE);\n } else {\n return object[ITERATOR_SYMBOL]();\n }\n };\n })();\n } else {\n return function(object) {\n return object[ITERATOR_SYMBOL]();\n };\n }\n})();\n\n/**\n * Export constants\n */\n\nObject.assign(toIterator, {\n KIND_KEY,\n KIND_VALUE,\n KIND_KEY_VAL,\n ITERATOR_SYMBOL,\n});\n\nmodule.exports = toIterator;\n","/**\n * Copyright (c) 2015-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n * @preventMunge\n * @typechecks\n */\n\n/* eslint-disable no-extend-native */\n\n'use strict';\n\nconst Map = require('Map');\n\nconst _shouldPolyfillES6Collection = require('_shouldPolyfillES6Collection');\nconst toIterator = require('toIterator');\n\nmodule.exports = (function(global) {\n // Since our implementation is spec-compliant for the most part we can safely\n // delegate to a built-in version if exists and is implemented correctly.\n // Firefox had gotten a few implementation details wrong across different\n // versions so we guard against that.\n // These checks are adapted from es6-shim https://fburl.com/34437854\n if (!_shouldPolyfillES6Collection('Set')) {\n return global.Set;\n }\n\n /**\n * == ES6 Set Collection ==\n *\n * This module is meant to implement a Set collection as described in chapter\n * 23.2 of the ES6 specification.\n *\n * Set objects are collections of unique values. Where values can be any\n * JavaScript value.\n * https://people.mozilla.org/~jorendorff/es6-draft.html#sec-map-objects\n *\n * There only two -- rather small -- diviations from the spec:\n *\n * 1. The use of frozen objects as keys. @see Map module for more on this.\n *\n * 2. The `size` property on a map object is a regular property and not a\n * computed property on the prototype as described by the spec.\n * The reason being is that we simply want to support ES3 environments\n * which doesn't implement computed properties.\n *\n * == Usage ==\n *\n * var set = new set(iterable);\n *\n * set.set(value);\n * set.has(value); // true\n * set.delete(value); // true\n *\n * var iterator = set.keys();\n * iterator.next(); // {value: value, done: false}\n *\n * var iterator = set.values();\n * iterator.next(); // {value: value, done: false}\n *\n * var iterator = set.entries();\n * iterator.next(); // {value: [value, value], done: false}\n *\n * set.forEach(function(value, value){ this === thisArg }, thisArg);\n *\n * set.clear(); // resets set.\n */\n\n class Set {\n /**\n * 23.2.1.1\n *\n * Takes an optional `iterable` (which is basically any object that\n * implements a Symbol.iterator (@@iterator) method). That is a collection\n * of values used to instantiate the set.\n *\n * @param {*} iterable\n */\n constructor(iterable) {\n if (\n this == null ||\n (typeof this !== 'object' && typeof this !== 'function')\n ) {\n throw new TypeError('Wrong set object type.');\n }\n\n initSet(this);\n\n if (iterable != null) {\n const it = toIterator(iterable);\n let next;\n while (!(next = it.next()).done) {\n this.add(next.value);\n }\n }\n }\n\n /**\n * 23.2.3.1\n *\n * If it doesn't already exist in the collection a `value` is added.\n *\n * @param {*} value\n * @return {set}\n */\n add(value) {\n this._map.set(value, value);\n this.size = this._map.size;\n return this;\n }\n\n /**\n * 23.2.3.2\n *\n * Clears the set.\n */\n clear() {\n initSet(this);\n }\n\n /**\n * 23.2.3.4\n *\n * Deletes a `value` from the collection if it exists.\n * Returns true if the value was found and deleted and false otherwise.\n *\n * @param {*} value\n * @return {boolean}\n */\n delete(value) {\n const ret = this._map.delete(value);\n this.size = this._map.size;\n return ret;\n }\n\n /**\n * 23.2.3.5\n *\n * Returns an iterator over a collection of [value, value] tuples.\n */\n entries() {\n return this._map.entries();\n }\n\n /**\n * 23.2.3.6\n *\n * Iterate over the collection calling `callback` with (value, value, set).\n *\n * @param {function} callback\n */\n forEach(callback) {\n const thisArg = arguments[1];\n const it = this._map.keys();\n let next;\n while (!(next = it.next()).done) {\n callback.call(thisArg, next.value, next.value, this);\n }\n }\n\n /**\n * 23.2.3.7\n *\n * Iterate over the collection calling `callback` with (value, value, set).\n *\n * @param {*} value\n * @return {boolean}\n */\n has(value) {\n return this._map.has(value);\n }\n\n /**\n * 23.2.3.7\n *\n * Returns an iterator over the colleciton of values.\n */\n values() {\n return this._map.values();\n }\n }\n\n // 23.2.3.11\n Set.prototype[toIterator.ITERATOR_SYMBOL] = Set.prototype.values;\n\n // 23.2.3.7\n Set.prototype.keys = Set.prototype.values;\n\n function initSet(set) {\n set._map = new Map();\n set.size = set._map.size;\n }\n\n return Set;\n})(Function('return this')()); // eslint-disable-line no-new-func\n","/**\n * Copyright (c) 2015-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n * @flow\n */\n\n'use strict';\n\nimport type {ExtendedError} from 'parseErrorStack';\n\n/**\n * Handles the developer-visible aspect of errors and exceptions\n */\nlet exceptionID = 0;\nfunction reportException(e: ExtendedError, isFatal: boolean) {\n const {ExceptionsManager} = require('NativeModules');\n if (ExceptionsManager) {\n const parseErrorStack = require('parseErrorStack');\n const stack = parseErrorStack(e);\n const currentExceptionID = ++exceptionID;\n if (isFatal) {\n ExceptionsManager.reportFatalException(\n e.message,\n stack,\n currentExceptionID,\n );\n } else {\n ExceptionsManager.reportSoftException(\n e.message,\n stack,\n currentExceptionID,\n );\n }\n if (__DEV__) {\n const symbolicateStackTrace = require('symbolicateStackTrace');\n symbolicateStackTrace(stack)\n .then(prettyStack => {\n if (prettyStack) {\n ExceptionsManager.updateExceptionMessage(\n e.message,\n prettyStack,\n currentExceptionID,\n );\n } else {\n throw new Error('The stack is null');\n }\n })\n .catch(error =>\n console.warn('Unable to symbolicate stack trace: ' + error.message),\n );\n }\n }\n}\n\ndeclare var console: typeof console & {\n _errorOriginal: Function,\n reportErrorsAsExceptions: boolean,\n};\n\n/**\n * Logs exceptions to the (native) console and displays them\n */\nfunction handleException(e: Error, isFatal: boolean) {\n // Workaround for reporting errors caused by `throw 'some string'`\n // Unfortunately there is no way to figure out the stacktrace in this\n // case, so if you ended up here trying to trace an error, look for\n // `throw ''` somewhere in your codebase.\n if (!e.message) {\n e = new Error(e);\n }\n if (console._errorOriginal) {\n console._errorOriginal(e.message);\n } else {\n console.error(e.message);\n }\n reportException(e, isFatal);\n}\n\nfunction reactConsoleErrorHandler() {\n console._errorOriginal.apply(console, arguments);\n if (!console.reportErrorsAsExceptions) {\n return;\n }\n\n if (arguments[0] && arguments[0].stack) {\n reportException(arguments[0], /* isFatal */ false);\n } else {\n const stringifySafe = require('stringifySafe');\n const str = Array.prototype.map.call(arguments, stringifySafe).join(', ');\n if (str.slice(0, 10) === '\"Warning: ') {\n // React warnings use console.error so that a stack trace is shown, but\n // we don't (currently) want these to show a redbox\n // (Note: Logic duplicated in polyfills/console.js.)\n return;\n }\n const error: ExtendedError = new Error('console.error: ' + str);\n error.framesToPop = 1;\n reportException(error, /* isFatal */ false);\n }\n}\n\n/**\n * Shows a redbox with stacktrace for all console.error messages. Disable by\n * setting `console.reportErrorsAsExceptions = false;` in your app.\n */\nfunction installConsoleErrorReporter() {\n // Enable reportErrorsAsExceptions\n if (console._errorOriginal) {\n return; // already installed\n }\n // Flow doesn't like it when you set arbitrary values on a global object\n console._errorOriginal = console.error.bind(console);\n console.error = reactConsoleErrorHandler;\n if (console.reportErrorsAsExceptions === undefined) {\n // Individual apps can disable this\n // Flow doesn't like it when you set arbitrary values on a global object\n console.reportErrorsAsExceptions = true;\n }\n}\n\nmodule.exports = {handleException, installConsoleErrorReporter};\n","/**\n * Copyright (c) 2015-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n * @flow\n */\n\n'use strict';\n\nexport type StackFrame = {\n column: ?number,\n file: string,\n lineNumber: number,\n methodName: string,\n};\n\nexport type ExtendedError = Error & {\n framesToPop?: number,\n};\n\nfunction parseErrorStack(e: ExtendedError): Array {\n if (!e || !e.stack) {\n return [];\n }\n\n /* $FlowFixMe(>=0.54.0 site=react_native_oss) This comment suppresses an\n * error found when Flow v0.54 was deployed. To see the error delete this\n * comment and run Flow. */\n const stacktraceParser = require('stacktrace-parser');\n const stack = Array.isArray(e.stack)\n ? e.stack\n : stacktraceParser.parse(e.stack);\n\n let framesToPop = typeof e.framesToPop === 'number' ? e.framesToPop : 0;\n while (framesToPop--) {\n stack.shift();\n }\n return stack;\n}\n\nmodule.exports = parseErrorStack;\n","module.exports = require('./lib/stacktrace-parser.js');\n","\n\nvar UNKNOWN_FUNCTION = '';\n\nvar StackTraceParser = {\n /**\n * This parses the different stack traces and puts them into one format\n * This borrows heavily from TraceKit (https://github.com/occ/TraceKit)\n */\n parse: function(stackString) {\n var chrome = /^\\s*at (?:(?:(?:Anonymous function)?|((?:\\[object object\\])?\\S+(?: \\[as \\S+\\])?)) )?\\(?((?:file|http|https):.*?):(\\d+)(?::(\\d+))?\\)?\\s*$/i,\n gecko = /^(?:\\s*([^@]*)(?:\\((.*?)\\))?@)?(\\S.*?):(\\d+)(?::(\\d+))?\\s*$/i,\n node = /^\\s*at (?:((?:\\[object object\\])?\\S+(?: \\[as \\S+\\])?) )?\\(?(.*?):(\\d+)(?::(\\d+))?\\)?\\s*$/i,\n lines = stackString.split('\\n'),\n stack = [],\n parts,\n element;\n\n for (var i = 0, j = lines.length; i < j; ++i) {\n if ((parts = gecko.exec(lines[i]))) {\n element = {\n 'file': parts[3],\n 'methodName': parts[1] || UNKNOWN_FUNCTION,\n 'lineNumber': +parts[4],\n 'column': parts[5] ? +parts[5] : null\n };\n } else if ((parts = chrome.exec(lines[i]))) {\n element = {\n 'file': parts[2],\n 'methodName': parts[1] || UNKNOWN_FUNCTION,\n 'lineNumber': +parts[3],\n 'column': parts[4] ? +parts[4] : null\n };\n } else if ((parts = node.exec(lines[i]))) {\n element = {\n 'file': parts[2],\n 'methodName': parts[1] || UNKNOWN_FUNCTION,\n 'lineNumber': +parts[3],\n 'column': parts[4] ? +parts[4] : null\n };\n } else {\n continue;\n }\n\n stack.push(element);\n }\n\n return stack;\n }\n};\n\n\nmodule.exports = StackTraceParser;\n","/**\n * Copyright (c) 2017-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @flow strict-local\n * @format\n */\n'use strict';\n\nconst {PlatformConstants} = require('NativeModules');\nconst ReactNativeVersion = require('ReactNativeVersion');\n\n/**\n * Checks that the version of this React Native JS is compatible with the native\n * code, throwing an error if it isn't.\n *\n * The existence of this module is part of the public interface of React Native\n * even though it is used only internally within React Native. React Native\n * implementations for other platforms (ex: Windows) may override this module\n * and rely on its existence as a separate module.\n */\nexports.checkVersions = function checkVersions(): void {\n if (!PlatformConstants) {\n return;\n }\n\n const nativeVersion = PlatformConstants.reactNativeVersion;\n if (\n ReactNativeVersion.version.major !== nativeVersion.major ||\n ReactNativeVersion.version.minor !== nativeVersion.minor\n ) {\n console.error(\n `React Native version mismatch.\\n\\nJavaScript version: ${_formatVersion(\n ReactNativeVersion.version,\n )}\\n` +\n `Native version: ${_formatVersion(nativeVersion)}\\n\\n` +\n 'Make sure that you have rebuilt the native code. If the problem ' +\n 'persists try clearing the Watchman and packager caches with ' +\n '`watchman watch-del-all && react-native start --reset-cache`.',\n );\n }\n};\n\nfunction _formatVersion(version): string {\n return (\n `${version.major}.${version.minor}.${version.patch}` +\n (version.prerelease !== null ? `-${version.prerelease}` : '')\n );\n}\n","/**\n * @generated by scripts/bump-oss-version.js\n *\n * Copyright (c) 2015-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @flow\n */\n\nexports.version = {\n major: 0,\n minor: 57,\n patch: 5,\n prerelease: null,\n};\n","/**\n * Copyright (c) 2016-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n * @flow\n */\n\n'use strict';\n\n/* $FlowFixMe(>=0.54.0 site=react_native_oss) This comment suppresses an error\n * found when Flow v0.54 was deployed. To see the error delete this comment and\n * run Flow. */\nconst Promise = require('fbjs/lib/Promise.native');\n\nif (__DEV__) {\n /* $FlowFixMe(>=0.54.0 site=react_native_oss) This comment suppresses an\n * error found when Flow v0.54 was deployed. To see the error delete this\n * comment and run Flow. */\n require('promise/setimmediate/rejection-tracking').enable({\n allRejections: true,\n onUnhandled: (id, error = {}) => {\n let message: string;\n let stack: ?string;\n\n const stringValue = Object.prototype.toString.call(error);\n if (stringValue === '[object Error]') {\n message = Error.prototype.toString.call(error);\n stack = error.stack;\n } else {\n /* $FlowFixMe(>=0.54.0 site=react_native_oss) This comment suppresses\n * an error found when Flow v0.54 was deployed. To see the error delete\n * this comment and run Flow. */\n message = require('pretty-format')(error);\n }\n\n const warning =\n `Possible Unhandled Promise Rejection (id: ${id}):\\n` +\n `${message}\\n` +\n (stack == null ? '' : stack);\n console.warn(warning);\n },\n onHandled: id => {\n const warning =\n `Promise Rejection Handled (id: ${id})\\n` +\n 'This means you can ignore any previous messages of the form ' +\n `\"Possible Unhandled Promise Rejection (id: ${id}):\"`;\n console.warn(warning);\n },\n });\n}\n\nmodule.exports = Promise;\n","/**\n *\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * This module wraps and augments the minimally ES6-compliant Promise\n * implementation provided by the promise npm package.\n *\n */\n'use strict';\n\nvar Promise = require(\"promise/setimmediate/es6-extensions\");\n\nrequire(\"promise/setimmediate/done\");\n/**\n * Handle either fulfillment or rejection with the same callback.\n */\n\n\nPromise.prototype[\"finally\"] = function (onSettled) {\n return this.then(onSettled, onSettled);\n};\n\nmodule.exports = Promise;","'use strict';\n\n//This file contains the ES6 extensions to the core Promises/A+ API\n\nvar Promise = require('./core.js');\n\nmodule.exports = Promise;\n\n/* Static Functions */\n\nvar TRUE = valuePromise(true);\nvar FALSE = valuePromise(false);\nvar NULL = valuePromise(null);\nvar UNDEFINED = valuePromise(undefined);\nvar ZERO = valuePromise(0);\nvar EMPTYSTRING = valuePromise('');\n\nfunction valuePromise(value) {\n var p = new Promise(Promise._61);\n p._65 = 1;\n p._55 = value;\n return p;\n}\nPromise.resolve = function (value) {\n if (value instanceof Promise) return value;\n\n if (value === null) return NULL;\n if (value === undefined) return UNDEFINED;\n if (value === true) return TRUE;\n if (value === false) return FALSE;\n if (value === 0) return ZERO;\n if (value === '') return EMPTYSTRING;\n\n if (typeof value === 'object' || typeof value === 'function') {\n try {\n var then = value.then;\n if (typeof then === 'function') {\n return new Promise(then.bind(value));\n }\n } catch (ex) {\n return new Promise(function (resolve, reject) {\n reject(ex);\n });\n }\n }\n return valuePromise(value);\n};\n\nPromise.all = function (arr) {\n var args = Array.prototype.slice.call(arr);\n\n return new Promise(function (resolve, reject) {\n if (args.length === 0) return resolve([]);\n var remaining = args.length;\n function res(i, val) {\n if (val && (typeof val === 'object' || typeof val === 'function')) {\n if (val instanceof Promise && val.then === Promise.prototype.then) {\n while (val._65 === 3) {\n val = val._55;\n }\n if (val._65 === 1) return res(i, val._55);\n if (val._65 === 2) reject(val._55);\n val.then(function (val) {\n res(i, val);\n }, reject);\n return;\n } else {\n var then = val.then;\n if (typeof then === 'function') {\n var p = new Promise(then.bind(val));\n p.then(function (val) {\n res(i, val);\n }, reject);\n return;\n }\n }\n }\n args[i] = val;\n if (--remaining === 0) {\n resolve(args);\n }\n }\n for (var i = 0; i < args.length; i++) {\n res(i, args[i]);\n }\n });\n};\n\nPromise.reject = function (value) {\n return new Promise(function (resolve, reject) {\n reject(value);\n });\n};\n\nPromise.race = function (values) {\n return new Promise(function (resolve, reject) {\n values.forEach(function(value){\n Promise.resolve(value).then(resolve, reject);\n });\n });\n};\n\n/* Prototype Methods */\n\nPromise.prototype['catch'] = function (onRejected) {\n return this.then(null, onRejected);\n};\n","'use strict';\n\n\n\nfunction noop() {}\n\n// States:\n//\n// 0 - pending\n// 1 - fulfilled with _value\n// 2 - rejected with _value\n// 3 - adopted the state of another promise, _value\n//\n// once the state is no longer pending (0) it is immutable\n\n// All `_` prefixed properties will be reduced to `_{random number}`\n// at build time to obfuscate them and discourage their use.\n// We don't use symbols or Object.defineProperty to fully hide them\n// because the performance isn't good enough.\n\n\n// to avoid using try/catch inside critical functions, we\n// extract them to here.\nvar LAST_ERROR = null;\nvar IS_ERROR = {};\nfunction getThen(obj) {\n try {\n return obj.then;\n } catch (ex) {\n LAST_ERROR = ex;\n return IS_ERROR;\n }\n}\n\nfunction tryCallOne(fn, a) {\n try {\n return fn(a);\n } catch (ex) {\n LAST_ERROR = ex;\n return IS_ERROR;\n }\n}\nfunction tryCallTwo(fn, a, b) {\n try {\n fn(a, b);\n } catch (ex) {\n LAST_ERROR = ex;\n return IS_ERROR;\n }\n}\n\nmodule.exports = Promise;\n\nfunction Promise(fn) {\n if (typeof this !== 'object') {\n throw new TypeError('Promises must be constructed via new');\n }\n if (typeof fn !== 'function') {\n throw new TypeError('Promise constructor\\'s argument is not a function');\n }\n this._40 = 0;\n this._65 = 0;\n this._55 = null;\n this._72 = null;\n if (fn === noop) return;\n doResolve(fn, this);\n}\nPromise._37 = null;\nPromise._87 = null;\nPromise._61 = noop;\n\nPromise.prototype.then = function(onFulfilled, onRejected) {\n if (this.constructor !== Promise) {\n return safeThen(this, onFulfilled, onRejected);\n }\n var res = new Promise(noop);\n handle(this, new Handler(onFulfilled, onRejected, res));\n return res;\n};\n\nfunction safeThen(self, onFulfilled, onRejected) {\n return new self.constructor(function (resolve, reject) {\n var res = new Promise(noop);\n res.then(resolve, reject);\n handle(self, new Handler(onFulfilled, onRejected, res));\n });\n}\nfunction handle(self, deferred) {\n while (self._65 === 3) {\n self = self._55;\n }\n if (Promise._37) {\n Promise._37(self);\n }\n if (self._65 === 0) {\n if (self._40 === 0) {\n self._40 = 1;\n self._72 = deferred;\n return;\n }\n if (self._40 === 1) {\n self._40 = 2;\n self._72 = [self._72, deferred];\n return;\n }\n self._72.push(deferred);\n return;\n }\n handleResolved(self, deferred);\n}\n\nfunction handleResolved(self, deferred) {\n setImmediate(function() {\n var cb = self._65 === 1 ? deferred.onFulfilled : deferred.onRejected;\n if (cb === null) {\n if (self._65 === 1) {\n resolve(deferred.promise, self._55);\n } else {\n reject(deferred.promise, self._55);\n }\n return;\n }\n var ret = tryCallOne(cb, self._55);\n if (ret === IS_ERROR) {\n reject(deferred.promise, LAST_ERROR);\n } else {\n resolve(deferred.promise, ret);\n }\n });\n}\nfunction resolve(self, newValue) {\n // Promise Resolution Procedure: https://github.com/promises-aplus/promises-spec#the-promise-resolution-procedure\n if (newValue === self) {\n return reject(\n self,\n new TypeError('A promise cannot be resolved with itself.')\n );\n }\n if (\n newValue &&\n (typeof newValue === 'object' || typeof newValue === 'function')\n ) {\n var then = getThen(newValue);\n if (then === IS_ERROR) {\n return reject(self, LAST_ERROR);\n }\n if (\n then === self.then &&\n newValue instanceof Promise\n ) {\n self._65 = 3;\n self._55 = newValue;\n finale(self);\n return;\n } else if (typeof then === 'function') {\n doResolve(then.bind(newValue), self);\n return;\n }\n }\n self._65 = 1;\n self._55 = newValue;\n finale(self);\n}\n\nfunction reject(self, newValue) {\n self._65 = 2;\n self._55 = newValue;\n if (Promise._87) {\n Promise._87(self, newValue);\n }\n finale(self);\n}\nfunction finale(self) {\n if (self._40 === 1) {\n handle(self, self._72);\n self._72 = null;\n }\n if (self._40 === 2) {\n for (var i = 0; i < self._72.length; i++) {\n handle(self, self._72[i]);\n }\n self._72 = null;\n }\n}\n\nfunction Handler(onFulfilled, onRejected, promise){\n this.onFulfilled = typeof onFulfilled === 'function' ? onFulfilled : null;\n this.onRejected = typeof onRejected === 'function' ? onRejected : null;\n this.promise = promise;\n}\n\n/**\n * Take a potentially misbehaving resolver function and make sure\n * onFulfilled and onRejected are only called once.\n *\n * Makes no guarantees about asynchrony.\n */\nfunction doResolve(fn, promise) {\n var done = false;\n var res = tryCallTwo(fn, function (value) {\n if (done) return;\n done = true;\n resolve(promise, value);\n }, function (reason) {\n if (done) return;\n done = true;\n reject(promise, reason);\n });\n if (!done && res === IS_ERROR) {\n done = true;\n reject(promise, LAST_ERROR);\n }\n}\n","'use strict';\n\nvar Promise = require('./core.js');\n\nmodule.exports = Promise;\nPromise.prototype.done = function (onFulfilled, onRejected) {\n var self = arguments.length ? this.then.apply(this, arguments) : this;\n self.then(null, function (err) {\n setTimeout(function () {\n throw err;\n }, 0);\n });\n};\n","/**\n * Copyright (c) 2014-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n!(function(global) {\n \"use strict\";\n\n var Op = Object.prototype;\n var hasOwn = Op.hasOwnProperty;\n var undefined; // More compressible than void 0.\n var $Symbol = typeof Symbol === \"function\" ? Symbol : {};\n var iteratorSymbol = $Symbol.iterator || \"@@iterator\";\n var asyncIteratorSymbol = $Symbol.asyncIterator || \"@@asyncIterator\";\n var toStringTagSymbol = $Symbol.toStringTag || \"@@toStringTag\";\n\n var inModule = typeof module === \"object\";\n var runtime = global.regeneratorRuntime;\n if (runtime) {\n if (inModule) {\n // If regeneratorRuntime is defined globally and we're in a module,\n // make the exports object identical to regeneratorRuntime.\n module.exports = runtime;\n }\n // Don't bother evaluating the rest of this file if the runtime was\n // already defined globally.\n return;\n }\n\n // Define the runtime globally (as expected by generated code) as either\n // module.exports (if we're in a module) or a new, empty object.\n runtime = global.regeneratorRuntime = inModule ? module.exports : {};\n\n function wrap(innerFn, outerFn, self, tryLocsList) {\n // If outerFn provided and outerFn.prototype is a Generator, then outerFn.prototype instanceof Generator.\n var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator;\n var generator = Object.create(protoGenerator.prototype);\n var context = new Context(tryLocsList || []);\n\n // The ._invoke method unifies the implementations of the .next,\n // .throw, and .return methods.\n generator._invoke = makeInvokeMethod(innerFn, self, context);\n\n return generator;\n }\n runtime.wrap = wrap;\n\n // Try/catch helper to minimize deoptimizations. Returns a completion\n // record like context.tryEntries[i].completion. This interface could\n // have been (and was previously) designed to take a closure to be\n // invoked without arguments, but in all the cases we care about we\n // already have an existing method we want to call, so there's no need\n // to create a new function object. We can even get away with assuming\n // the method takes exactly one argument, since that happens to be true\n // in every case, so we don't have to touch the arguments object. The\n // only additional allocation required is the completion record, which\n // has a stable shape and so hopefully should be cheap to allocate.\n function tryCatch(fn, obj, arg) {\n try {\n return { type: \"normal\", arg: fn.call(obj, arg) };\n } catch (err) {\n return { type: \"throw\", arg: err };\n }\n }\n\n var GenStateSuspendedStart = \"suspendedStart\";\n var GenStateSuspendedYield = \"suspendedYield\";\n var GenStateExecuting = \"executing\";\n var GenStateCompleted = \"completed\";\n\n // Returning this object from the innerFn has the same effect as\n // breaking out of the dispatch switch statement.\n var ContinueSentinel = {};\n\n // Dummy constructor functions that we use as the .constructor and\n // .constructor.prototype properties for functions that return Generator\n // objects. For full spec compliance, you may wish to configure your\n // minifier not to mangle the names of these two functions.\n function Generator() {}\n function GeneratorFunction() {}\n function GeneratorFunctionPrototype() {}\n\n // This is a polyfill for %IteratorPrototype% for environments that\n // don't natively support it.\n var IteratorPrototype = {};\n IteratorPrototype[iteratorSymbol] = function () {\n return this;\n };\n\n var getProto = Object.getPrototypeOf;\n var NativeIteratorPrototype = getProto && getProto(getProto(values([])));\n if (NativeIteratorPrototype &&\n NativeIteratorPrototype !== Op &&\n hasOwn.call(NativeIteratorPrototype, iteratorSymbol)) {\n // This environment has a native %IteratorPrototype%; use it instead\n // of the polyfill.\n IteratorPrototype = NativeIteratorPrototype;\n }\n\n var Gp = GeneratorFunctionPrototype.prototype =\n Generator.prototype = Object.create(IteratorPrototype);\n GeneratorFunction.prototype = Gp.constructor = GeneratorFunctionPrototype;\n GeneratorFunctionPrototype.constructor = GeneratorFunction;\n GeneratorFunctionPrototype[toStringTagSymbol] =\n GeneratorFunction.displayName = \"GeneratorFunction\";\n\n // Helper for defining the .next, .throw, and .return methods of the\n // Iterator interface in terms of a single ._invoke method.\n function defineIteratorMethods(prototype) {\n [\"next\", \"throw\", \"return\"].forEach(function(method) {\n prototype[method] = function(arg) {\n return this._invoke(method, arg);\n };\n });\n }\n\n runtime.isGeneratorFunction = function(genFun) {\n var ctor = typeof genFun === \"function\" && genFun.constructor;\n return ctor\n ? ctor === GeneratorFunction ||\n // For the native GeneratorFunction constructor, the best we can\n // do is to check its .name property.\n (ctor.displayName || ctor.name) === \"GeneratorFunction\"\n : false;\n };\n\n runtime.mark = function(genFun) {\n if (Object.setPrototypeOf) {\n Object.setPrototypeOf(genFun, GeneratorFunctionPrototype);\n } else {\n genFun.__proto__ = GeneratorFunctionPrototype;\n if (!(toStringTagSymbol in genFun)) {\n genFun[toStringTagSymbol] = \"GeneratorFunction\";\n }\n }\n genFun.prototype = Object.create(Gp);\n return genFun;\n };\n\n // Within the body of any async function, `await x` is transformed to\n // `yield regeneratorRuntime.awrap(x)`, so that the runtime can test\n // `hasOwn.call(value, \"__await\")` to determine if the yielded value is\n // meant to be awaited.\n runtime.awrap = function(arg) {\n return { __await: arg };\n };\n\n function AsyncIterator(generator) {\n function invoke(method, arg, resolve, reject) {\n var record = tryCatch(generator[method], generator, arg);\n if (record.type === \"throw\") {\n reject(record.arg);\n } else {\n var result = record.arg;\n var value = result.value;\n if (value &&\n typeof value === \"object\" &&\n hasOwn.call(value, \"__await\")) {\n return Promise.resolve(value.__await).then(function(value) {\n invoke(\"next\", value, resolve, reject);\n }, function(err) {\n invoke(\"throw\", err, resolve, reject);\n });\n }\n\n return Promise.resolve(value).then(function(unwrapped) {\n // When a yielded Promise is resolved, its final value becomes\n // the .value of the Promise<{value,done}> result for the\n // current iteration. If the Promise is rejected, however, the\n // result for this iteration will be rejected with the same\n // reason. Note that rejections of yielded Promises are not\n // thrown back into the generator function, as is the case\n // when an awaited Promise is rejected. This difference in\n // behavior between yield and await is important, because it\n // allows the consumer to decide what to do with the yielded\n // rejection (swallow it and continue, manually .throw it back\n // into the generator, abandon iteration, whatever). With\n // await, by contrast, there is no opportunity to examine the\n // rejection reason outside the generator function, so the\n // only option is to throw it from the await expression, and\n // let the generator function handle the exception.\n result.value = unwrapped;\n resolve(result);\n }, reject);\n }\n }\n\n var previousPromise;\n\n function enqueue(method, arg) {\n function callInvokeWithMethodAndArg() {\n return new Promise(function(resolve, reject) {\n invoke(method, arg, resolve, reject);\n });\n }\n\n return previousPromise =\n // If enqueue has been called before, then we want to wait until\n // all previous Promises have been resolved before calling invoke,\n // so that results are always delivered in the correct order. If\n // enqueue has not been called before, then it is important to\n // call invoke immediately, without waiting on a callback to fire,\n // so that the async generator function has the opportunity to do\n // any necessary setup in a predictable way. This predictability\n // is why the Promise constructor synchronously invokes its\n // executor callback, and why async functions synchronously\n // execute code before the first await. Since we implement simple\n // async functions in terms of async generators, it is especially\n // important to get this right, even though it requires care.\n previousPromise ? previousPromise.then(\n callInvokeWithMethodAndArg,\n // Avoid propagating failures to Promises returned by later\n // invocations of the iterator.\n callInvokeWithMethodAndArg\n ) : callInvokeWithMethodAndArg();\n }\n\n // Define the unified helper method that is used to implement .next,\n // .throw, and .return (see defineIteratorMethods).\n this._invoke = enqueue;\n }\n\n defineIteratorMethods(AsyncIterator.prototype);\n AsyncIterator.prototype[asyncIteratorSymbol] = function () {\n return this;\n };\n runtime.AsyncIterator = AsyncIterator;\n\n // Note that simple async functions are implemented on top of\n // AsyncIterator objects; they just return a Promise for the value of\n // the final result produced by the iterator.\n runtime.async = function(innerFn, outerFn, self, tryLocsList) {\n var iter = new AsyncIterator(\n wrap(innerFn, outerFn, self, tryLocsList)\n );\n\n return runtime.isGeneratorFunction(outerFn)\n ? iter // If outerFn is a generator, return the full iterator.\n : iter.next().then(function(result) {\n return result.done ? result.value : iter.next();\n });\n };\n\n function makeInvokeMethod(innerFn, self, context) {\n var state = GenStateSuspendedStart;\n\n return function invoke(method, arg) {\n if (state === GenStateExecuting) {\n throw new Error(\"Generator is already running\");\n }\n\n if (state === GenStateCompleted) {\n if (method === \"throw\") {\n throw arg;\n }\n\n // Be forgiving, per 25.3.3.3.3 of the spec:\n // https://people.mozilla.org/~jorendorff/es6-draft.html#sec-generatorresume\n return doneResult();\n }\n\n context.method = method;\n context.arg = arg;\n\n while (true) {\n var delegate = context.delegate;\n if (delegate) {\n var delegateResult = maybeInvokeDelegate(delegate, context);\n if (delegateResult) {\n if (delegateResult === ContinueSentinel) continue;\n return delegateResult;\n }\n }\n\n if (context.method === \"next\") {\n // Setting context._sent for legacy support of Babel's\n // function.sent implementation.\n context.sent = context._sent = context.arg;\n\n } else if (context.method === \"throw\") {\n if (state === GenStateSuspendedStart) {\n state = GenStateCompleted;\n throw context.arg;\n }\n\n context.dispatchException(context.arg);\n\n } else if (context.method === \"return\") {\n context.abrupt(\"return\", context.arg);\n }\n\n state = GenStateExecuting;\n\n var record = tryCatch(innerFn, self, context);\n if (record.type === \"normal\") {\n // If an exception is thrown from innerFn, we leave state ===\n // GenStateExecuting and loop back for another invocation.\n state = context.done\n ? GenStateCompleted\n : GenStateSuspendedYield;\n\n if (record.arg === ContinueSentinel) {\n continue;\n }\n\n return {\n value: record.arg,\n done: context.done\n };\n\n } else if (record.type === \"throw\") {\n state = GenStateCompleted;\n // Dispatch the exception by looping back around to the\n // context.dispatchException(context.arg) call above.\n context.method = \"throw\";\n context.arg = record.arg;\n }\n }\n };\n }\n\n // Call delegate.iterator[context.method](context.arg) and handle the\n // result, either by returning a { value, done } result from the\n // delegate iterator, or by modifying context.method and context.arg,\n // setting context.delegate to null, and returning the ContinueSentinel.\n function maybeInvokeDelegate(delegate, context) {\n var method = delegate.iterator[context.method];\n if (method === undefined) {\n // A .throw or .return when the delegate iterator has no .throw\n // method always terminates the yield* loop.\n context.delegate = null;\n\n if (context.method === \"throw\") {\n if (delegate.iterator.return) {\n // If the delegate iterator has a return method, give it a\n // chance to clean up.\n context.method = \"return\";\n context.arg = undefined;\n maybeInvokeDelegate(delegate, context);\n\n if (context.method === \"throw\") {\n // If maybeInvokeDelegate(context) changed context.method from\n // \"return\" to \"throw\", let that override the TypeError below.\n return ContinueSentinel;\n }\n }\n\n context.method = \"throw\";\n context.arg = new TypeError(\n \"The iterator does not provide a 'throw' method\");\n }\n\n return ContinueSentinel;\n }\n\n var record = tryCatch(method, delegate.iterator, context.arg);\n\n if (record.type === \"throw\") {\n context.method = \"throw\";\n context.arg = record.arg;\n context.delegate = null;\n return ContinueSentinel;\n }\n\n var info = record.arg;\n\n if (! info) {\n context.method = \"throw\";\n context.arg = new TypeError(\"iterator result is not an object\");\n context.delegate = null;\n return ContinueSentinel;\n }\n\n if (info.done) {\n // Assign the result of the finished delegate to the temporary\n // variable specified by delegate.resultName (see delegateYield).\n context[delegate.resultName] = info.value;\n\n // Resume execution at the desired location (see delegateYield).\n context.next = delegate.nextLoc;\n\n // If context.method was \"throw\" but the delegate handled the\n // exception, let the outer generator proceed normally. If\n // context.method was \"next\", forget context.arg since it has been\n // \"consumed\" by the delegate iterator. If context.method was\n // \"return\", allow the original .return call to continue in the\n // outer generator.\n if (context.method !== \"return\") {\n context.method = \"next\";\n context.arg = undefined;\n }\n\n } else {\n // Re-yield the result returned by the delegate method.\n return info;\n }\n\n // The delegate iterator is finished, so forget it and continue with\n // the outer generator.\n context.delegate = null;\n return ContinueSentinel;\n }\n\n // Define Generator.prototype.{next,throw,return} in terms of the\n // unified ._invoke helper method.\n defineIteratorMethods(Gp);\n\n Gp[toStringTagSymbol] = \"Generator\";\n\n // A Generator should always return itself as the iterator object when the\n // @@iterator function is called on it. Some browsers' implementations of the\n // iterator prototype chain incorrectly implement this, causing the Generator\n // object to not be returned from this call. This ensures that doesn't happen.\n // See https://github.com/facebook/regenerator/issues/274 for more details.\n Gp[iteratorSymbol] = function() {\n return this;\n };\n\n Gp.toString = function() {\n return \"[object Generator]\";\n };\n\n function pushTryEntry(locs) {\n var entry = { tryLoc: locs[0] };\n\n if (1 in locs) {\n entry.catchLoc = locs[1];\n }\n\n if (2 in locs) {\n entry.finallyLoc = locs[2];\n entry.afterLoc = locs[3];\n }\n\n this.tryEntries.push(entry);\n }\n\n function resetTryEntry(entry) {\n var record = entry.completion || {};\n record.type = \"normal\";\n delete record.arg;\n entry.completion = record;\n }\n\n function Context(tryLocsList) {\n // The root entry object (effectively a try statement without a catch\n // or a finally block) gives us a place to store values thrown from\n // locations where there is no enclosing try statement.\n this.tryEntries = [{ tryLoc: \"root\" }];\n tryLocsList.forEach(pushTryEntry, this);\n this.reset(true);\n }\n\n runtime.keys = function(object) {\n var keys = [];\n for (var key in object) {\n keys.push(key);\n }\n keys.reverse();\n\n // Rather than returning an object with a next method, we keep\n // things simple and return the next function itself.\n return function next() {\n while (keys.length) {\n var key = keys.pop();\n if (key in object) {\n next.value = key;\n next.done = false;\n return next;\n }\n }\n\n // To avoid creating an additional object, we just hang the .value\n // and .done properties off the next function object itself. This\n // also ensures that the minifier will not anonymize the function.\n next.done = true;\n return next;\n };\n };\n\n function values(iterable) {\n if (iterable) {\n var iteratorMethod = iterable[iteratorSymbol];\n if (iteratorMethod) {\n return iteratorMethod.call(iterable);\n }\n\n if (typeof iterable.next === \"function\") {\n return iterable;\n }\n\n if (!isNaN(iterable.length)) {\n var i = -1, next = function next() {\n while (++i < iterable.length) {\n if (hasOwn.call(iterable, i)) {\n next.value = iterable[i];\n next.done = false;\n return next;\n }\n }\n\n next.value = undefined;\n next.done = true;\n\n return next;\n };\n\n return next.next = next;\n }\n }\n\n // Return an iterator with no values.\n return { next: doneResult };\n }\n runtime.values = values;\n\n function doneResult() {\n return { value: undefined, done: true };\n }\n\n Context.prototype = {\n constructor: Context,\n\n reset: function(skipTempReset) {\n this.prev = 0;\n this.next = 0;\n // Resetting context._sent for legacy support of Babel's\n // function.sent implementation.\n this.sent = this._sent = undefined;\n this.done = false;\n this.delegate = null;\n\n this.method = \"next\";\n this.arg = undefined;\n\n this.tryEntries.forEach(resetTryEntry);\n\n if (!skipTempReset) {\n for (var name in this) {\n // Not sure about the optimal order of these conditions:\n if (name.charAt(0) === \"t\" &&\n hasOwn.call(this, name) &&\n !isNaN(+name.slice(1))) {\n this[name] = undefined;\n }\n }\n }\n },\n\n stop: function() {\n this.done = true;\n\n var rootEntry = this.tryEntries[0];\n var rootRecord = rootEntry.completion;\n if (rootRecord.type === \"throw\") {\n throw rootRecord.arg;\n }\n\n return this.rval;\n },\n\n dispatchException: function(exception) {\n if (this.done) {\n throw exception;\n }\n\n var context = this;\n function handle(loc, caught) {\n record.type = \"throw\";\n record.arg = exception;\n context.next = loc;\n\n if (caught) {\n // If the dispatched exception was caught by a catch block,\n // then let that catch block handle the exception normally.\n context.method = \"next\";\n context.arg = undefined;\n }\n\n return !! caught;\n }\n\n for (var i = this.tryEntries.length - 1; i >= 0; --i) {\n var entry = this.tryEntries[i];\n var record = entry.completion;\n\n if (entry.tryLoc === \"root\") {\n // Exception thrown outside of any try block that could handle\n // it, so set the completion value of the entire function to\n // throw the exception.\n return handle(\"end\");\n }\n\n if (entry.tryLoc <= this.prev) {\n var hasCatch = hasOwn.call(entry, \"catchLoc\");\n var hasFinally = hasOwn.call(entry, \"finallyLoc\");\n\n if (hasCatch && hasFinally) {\n if (this.prev < entry.catchLoc) {\n return handle(entry.catchLoc, true);\n } else if (this.prev < entry.finallyLoc) {\n return handle(entry.finallyLoc);\n }\n\n } else if (hasCatch) {\n if (this.prev < entry.catchLoc) {\n return handle(entry.catchLoc, true);\n }\n\n } else if (hasFinally) {\n if (this.prev < entry.finallyLoc) {\n return handle(entry.finallyLoc);\n }\n\n } else {\n throw new Error(\"try statement without catch or finally\");\n }\n }\n }\n },\n\n abrupt: function(type, arg) {\n for (var i = this.tryEntries.length - 1; i >= 0; --i) {\n var entry = this.tryEntries[i];\n if (entry.tryLoc <= this.prev &&\n hasOwn.call(entry, \"finallyLoc\") &&\n this.prev < entry.finallyLoc) {\n var finallyEntry = entry;\n break;\n }\n }\n\n if (finallyEntry &&\n (type === \"break\" ||\n type === \"continue\") &&\n finallyEntry.tryLoc <= arg &&\n arg <= finallyEntry.finallyLoc) {\n // Ignore the finally entry if control is not jumping to a\n // location outside the try/catch block.\n finallyEntry = null;\n }\n\n var record = finallyEntry ? finallyEntry.completion : {};\n record.type = type;\n record.arg = arg;\n\n if (finallyEntry) {\n this.method = \"next\";\n this.next = finallyEntry.finallyLoc;\n return ContinueSentinel;\n }\n\n return this.complete(record);\n },\n\n complete: function(record, afterLoc) {\n if (record.type === \"throw\") {\n throw record.arg;\n }\n\n if (record.type === \"break\" ||\n record.type === \"continue\") {\n this.next = record.arg;\n } else if (record.type === \"return\") {\n this.rval = this.arg = record.arg;\n this.method = \"return\";\n this.next = \"end\";\n } else if (record.type === \"normal\" && afterLoc) {\n this.next = afterLoc;\n }\n\n return ContinueSentinel;\n },\n\n finish: function(finallyLoc) {\n for (var i = this.tryEntries.length - 1; i >= 0; --i) {\n var entry = this.tryEntries[i];\n if (entry.finallyLoc === finallyLoc) {\n this.complete(entry.completion, entry.afterLoc);\n resetTryEntry(entry);\n return ContinueSentinel;\n }\n }\n },\n\n \"catch\": function(tryLoc) {\n for (var i = this.tryEntries.length - 1; i >= 0; --i) {\n var entry = this.tryEntries[i];\n if (entry.tryLoc === tryLoc) {\n var record = entry.completion;\n if (record.type === \"throw\") {\n var thrown = record.arg;\n resetTryEntry(entry);\n }\n return thrown;\n }\n }\n\n // The context.catch method must only be called with a location\n // argument that corresponds to a known catch block.\n throw new Error(\"illegal catch attempt\");\n },\n\n delegateYield: function(iterable, resultName, nextLoc) {\n this.delegate = {\n iterator: values(iterable),\n resultName: resultName,\n nextLoc: nextLoc\n };\n\n if (this.method === \"next\") {\n // Deliberately forget the last sent value so that we don't\n // accidentally pass it on to the delegate.\n this.arg = undefined;\n }\n\n return ContinueSentinel;\n }\n };\n})(\n // In sloppy mode, unbound `this` refers to the global object, fallback to\n // Function constructor if we're in global strict mode. That is sadly a form\n // of indirect eval which violates Content Security Policy.\n (function() { return this })() || Function(\"return this\")()\n);\n","/**\n * Copyright (c) 2015-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n * @flow\n */\n'use strict';\n\nconst Platform = require('Platform');\nconst Systrace = require('Systrace');\n\nconst invariant = require('fbjs/lib/invariant');\nconst {Timing} = require('NativeModules');\nconst BatchedBridge = require('BatchedBridge');\n\nimport type {ExtendedError} from 'parseErrorStack';\n\nlet _performanceNow = null;\nfunction performanceNow() {\n if (!_performanceNow) {\n /* $FlowFixMe(>=0.54.0 site=react_native_oss) This comment suppresses an\n * error found when Flow v0.54 was deployed. To see the error delete this\n * comment and run Flow. */\n _performanceNow = require('fbjs/lib/performanceNow');\n }\n return _performanceNow();\n}\n\n/**\n * JS implementation of timer functions. Must be completely driven by an\n * external clock signal, all that's stored here is timerID, timer type, and\n * callback.\n */\n\nexport type JSTimerType =\n | 'setTimeout'\n | 'setInterval'\n | 'requestAnimationFrame'\n | 'setImmediate'\n | 'requestIdleCallback';\n\n// These timing constants should be kept in sync with the ones in native ios and\n// android `RCTTiming` module.\nconst FRAME_DURATION = 1000 / 60;\nconst IDLE_CALLBACK_FRAME_DEADLINE = 1;\n\nconst MAX_TIMER_DURATION_MS = 60 * 1000;\nconst IS_ANDROID = Platform.OS === 'android';\nconst ANDROID_LONG_TIMER_MESSAGE =\n 'Setting a timer for a long period of time, i.e. multiple minutes, is a ' +\n 'performance and correctness issue on Android as it keeps the timer ' +\n 'module awake, and timers can only be called when the app is in the foreground. ' +\n 'See https://github.com/facebook/react-native/issues/12981 for more info.';\n\n// Parallel arrays\nconst callbacks: Array = [];\nconst types: Array = [];\nconst timerIDs: Array = [];\nlet immediates: Array = [];\nlet requestIdleCallbacks: Array = [];\nconst requestIdleCallbackTimeouts: {[number]: number} = {};\nconst identifiers: Array = [];\n\nlet GUID = 1;\nlet errors: ?Array = null;\n\nlet hasEmittedTimeDriftWarning = false;\n\n// Returns a free index if one is available, and the next consecutive index otherwise.\nfunction _getFreeIndex(): number {\n let freeIndex = timerIDs.indexOf(null);\n if (freeIndex === -1) {\n freeIndex = timerIDs.length;\n }\n return freeIndex;\n}\n\nfunction _allocateCallback(func: Function, type: JSTimerType): number {\n const id = GUID++;\n const freeIndex = _getFreeIndex();\n timerIDs[freeIndex] = id;\n callbacks[freeIndex] = func;\n types[freeIndex] = type;\n if (__DEV__) {\n const parseErrorStack = require('parseErrorStack');\n const error: ExtendedError = new Error();\n error.framesToPop = 1;\n const stack = parseErrorStack(error);\n if (stack) {\n identifiers[freeIndex] = stack.shift();\n }\n }\n return id;\n}\n\n/**\n * Calls the callback associated with the ID. Also unregister that callback\n * if it was a one time timer (setTimeout), and not unregister it if it was\n * recurring (setInterval).\n */\nfunction _callTimer(timerID: number, frameTime: number, didTimeout: ?boolean) {\n /* $FlowFixMe(>=0.54.0 site=react_native_oss) This comment suppresses an\n * error found when Flow v0.54 was deployed. To see the error delete this\n * comment and run Flow. */\n require('fbjs/lib/warning')(\n timerID <= GUID,\n 'Tried to call timer with ID %s but no such timer exists.',\n timerID,\n );\n\n // timerIndex of -1 means that no timer with that ID exists. There are\n // two situations when this happens, when a garbage timer ID was given\n // and when a previously existing timer was deleted before this callback\n // fired. In both cases we want to ignore the timer id, but in the former\n // case we warn as well.\n const timerIndex = timerIDs.indexOf(timerID);\n if (timerIndex === -1) {\n return;\n }\n\n const type = types[timerIndex];\n const callback = callbacks[timerIndex];\n if (!callback || !type) {\n console.error('No callback found for timerID ' + timerID);\n return;\n }\n\n if (__DEV__) {\n const identifier = identifiers[timerIndex] || {};\n Systrace.beginEvent('Systrace.callTimer: ' + identifier.methodName);\n }\n\n // Clear the metadata\n if (\n type === 'setTimeout' ||\n type === 'setImmediate' ||\n type === 'requestAnimationFrame' ||\n type === 'requestIdleCallback'\n ) {\n _clearIndex(timerIndex);\n }\n\n try {\n if (\n type === 'setTimeout' ||\n type === 'setInterval' ||\n type === 'setImmediate'\n ) {\n callback();\n } else if (type === 'requestAnimationFrame') {\n callback(performanceNow());\n } else if (type === 'requestIdleCallback') {\n callback({\n timeRemaining: function() {\n // TODO: Optimisation: allow running for longer than one frame if\n // there are no pending JS calls on the bridge from native. This\n // would require a way to check the bridge queue synchronously.\n return Math.max(0, FRAME_DURATION - (performanceNow() - frameTime));\n },\n didTimeout: !!didTimeout,\n });\n } else {\n console.error('Tried to call a callback with invalid type: ' + type);\n }\n } catch (e) {\n // Don't rethrow so that we can run all timers.\n if (!errors) {\n errors = [e];\n } else {\n errors.push(e);\n }\n }\n\n if (__DEV__) {\n Systrace.endEvent();\n }\n}\n\n/**\n * Performs a single pass over the enqueued immediates. Returns whether\n * more immediates are queued up (can be used as a condition a while loop).\n */\nfunction _callImmediatesPass() {\n if (__DEV__) {\n Systrace.beginEvent('callImmediatesPass()');\n }\n\n // The main reason to extract a single pass is so that we can track\n // in the system trace\n if (immediates.length > 0) {\n const passImmediates = immediates.slice();\n immediates = [];\n\n // Use for loop rather than forEach as per @vjeux's advice\n // https://github.com/facebook/react-native/commit/c8fd9f7588ad02d2293cac7224715f4af7b0f352#commitcomment-14570051\n for (let i = 0; i < passImmediates.length; ++i) {\n _callTimer(passImmediates[i], 0);\n }\n }\n\n if (__DEV__) {\n Systrace.endEvent();\n }\n return immediates.length > 0;\n}\n\nfunction _clearIndex(i: number) {\n timerIDs[i] = null;\n callbacks[i] = null;\n types[i] = null;\n identifiers[i] = null;\n}\n\nfunction _freeCallback(timerID: number) {\n // timerIDs contains nulls after timers have been removed;\n // ignore nulls upfront so indexOf doesn't find them\n if (timerID == null) {\n return;\n }\n\n const index = timerIDs.indexOf(timerID);\n // See corresponding comment in `callTimers` for reasoning behind this\n if (index !== -1) {\n _clearIndex(index);\n const type = types[index];\n if (type !== 'setImmediate' && type !== 'requestIdleCallback') {\n Timing.deleteTimer(timerID);\n }\n }\n}\n\n/**\n * JS implementation of timer functions. Must be completely driven by an\n * external clock signal, all that's stored here is timerID, timer type, and\n * callback.\n */\nconst JSTimers = {\n /**\n * @param {function} func Callback to be invoked after `duration` ms.\n * @param {number} duration Number of milliseconds.\n */\n setTimeout: function(func: Function, duration: number, ...args: any): number {\n if (__DEV__ && IS_ANDROID && duration > MAX_TIMER_DURATION_MS) {\n console.warn(\n ANDROID_LONG_TIMER_MESSAGE +\n '\\n' +\n '(Saw setTimeout with duration ' +\n duration +\n 'ms)',\n );\n }\n const id = _allocateCallback(\n () => func.apply(undefined, args),\n 'setTimeout',\n );\n Timing.createTimer(id, duration || 0, Date.now(), /* recurring */ false);\n return id;\n },\n\n /**\n * @param {function} func Callback to be invoked every `duration` ms.\n * @param {number} duration Number of milliseconds.\n */\n setInterval: function(\n func: Function,\n duration: number,\n ...args: any\n ): number {\n if (__DEV__ && IS_ANDROID && duration > MAX_TIMER_DURATION_MS) {\n console.warn(\n ANDROID_LONG_TIMER_MESSAGE +\n '\\n' +\n '(Saw setInterval with duration ' +\n duration +\n 'ms)',\n );\n }\n const id = _allocateCallback(\n () => func.apply(undefined, args),\n 'setInterval',\n );\n Timing.createTimer(id, duration || 0, Date.now(), /* recurring */ true);\n return id;\n },\n\n /**\n * @param {function} func Callback to be invoked before the end of the\n * current JavaScript execution loop.\n */\n setImmediate: function(func: Function, ...args: any) {\n const id = _allocateCallback(\n () => func.apply(undefined, args),\n 'setImmediate',\n );\n immediates.push(id);\n return id;\n },\n\n /**\n * @param {function} func Callback to be invoked every frame.\n */\n requestAnimationFrame: function(func: Function) {\n const id = _allocateCallback(func, 'requestAnimationFrame');\n Timing.createTimer(id, 1, Date.now(), /* recurring */ false);\n return id;\n },\n\n /**\n * @param {function} func Callback to be invoked every frame and provided\n * with time remaining in frame.\n * @param {?object} options\n */\n requestIdleCallback: function(func: Function, options: ?Object) {\n if (requestIdleCallbacks.length === 0) {\n Timing.setSendIdleEvents(true);\n }\n\n const timeout = options && options.timeout;\n const id = _allocateCallback(\n timeout != null\n ? deadline => {\n const timeoutId = requestIdleCallbackTimeouts[id];\n if (timeoutId) {\n JSTimers.clearTimeout(timeoutId);\n delete requestIdleCallbackTimeouts[id];\n }\n return func(deadline);\n }\n : func,\n 'requestIdleCallback',\n );\n requestIdleCallbacks.push(id);\n\n if (timeout != null) {\n const timeoutId = JSTimers.setTimeout(() => {\n const index = requestIdleCallbacks.indexOf(id);\n if (index > -1) {\n requestIdleCallbacks.splice(index, 1);\n _callTimer(id, performanceNow(), true);\n }\n delete requestIdleCallbackTimeouts[id];\n if (requestIdleCallbacks.length === 0) {\n Timing.setSendIdleEvents(false);\n }\n }, timeout);\n requestIdleCallbackTimeouts[id] = timeoutId;\n }\n return id;\n },\n\n cancelIdleCallback: function(timerID: number) {\n _freeCallback(timerID);\n const index = requestIdleCallbacks.indexOf(timerID);\n if (index !== -1) {\n requestIdleCallbacks.splice(index, 1);\n }\n\n const timeoutId = requestIdleCallbackTimeouts[timerID];\n if (timeoutId) {\n JSTimers.clearTimeout(timeoutId);\n delete requestIdleCallbackTimeouts[timerID];\n }\n\n if (requestIdleCallbacks.length === 0) {\n Timing.setSendIdleEvents(false);\n }\n },\n\n clearTimeout: function(timerID: number) {\n _freeCallback(timerID);\n },\n\n clearInterval: function(timerID: number) {\n _freeCallback(timerID);\n },\n\n clearImmediate: function(timerID: number) {\n _freeCallback(timerID);\n const index = immediates.indexOf(timerID);\n if (index !== -1) {\n immediates.splice(index, 1);\n }\n },\n\n cancelAnimationFrame: function(timerID: number) {\n _freeCallback(timerID);\n },\n\n /**\n * This is called from the native side. We are passed an array of timerIDs,\n * and\n */\n callTimers: function(timersToCall: Array) {\n invariant(\n timersToCall.length !== 0,\n 'Cannot call `callTimers` with an empty list of IDs.',\n );\n\n // $FlowFixMe: optionals do not allow assignment from null\n errors = null;\n for (let i = 0; i < timersToCall.length; i++) {\n _callTimer(timersToCall[i], 0);\n }\n\n if (errors) {\n const errorCount = errors.length;\n if (errorCount > 1) {\n // Throw all the other errors in a setTimeout, which will throw each\n // error one at a time\n for (let ii = 1; ii < errorCount; ii++) {\n JSTimers.setTimeout(\n (error => {\n throw error;\n }).bind(null, errors[ii]),\n 0,\n );\n }\n }\n throw errors[0];\n }\n },\n\n callIdleCallbacks: function(frameTime: number) {\n if (\n FRAME_DURATION - (performanceNow() - frameTime) <\n IDLE_CALLBACK_FRAME_DEADLINE\n ) {\n return;\n }\n\n // $FlowFixMe: optionals do not allow assignment from null\n errors = null;\n if (requestIdleCallbacks.length > 0) {\n const passIdleCallbacks = requestIdleCallbacks.slice();\n requestIdleCallbacks = [];\n\n for (let i = 0; i < passIdleCallbacks.length; ++i) {\n _callTimer(passIdleCallbacks[i], frameTime);\n }\n }\n\n if (requestIdleCallbacks.length === 0) {\n Timing.setSendIdleEvents(false);\n }\n\n if (errors) {\n errors.forEach(error =>\n JSTimers.setTimeout(() => {\n throw error;\n }, 0),\n );\n }\n },\n\n /**\n * This is called after we execute any command we receive from native but\n * before we hand control back to native.\n */\n callImmediates() {\n errors = null;\n while (_callImmediatesPass()) {}\n if (errors) {\n errors.forEach(error =>\n JSTimers.setTimeout(() => {\n throw error;\n }, 0),\n );\n }\n },\n\n /**\n * Called from native (in development) when environment times are out-of-sync.\n */\n emitTimeDriftWarning(warningMessage: string) {\n if (hasEmittedTimeDriftWarning) {\n return;\n }\n hasEmittedTimeDriftWarning = true;\n console.warn(warningMessage);\n },\n};\n\nlet ExportedJSTimers;\nif (!Timing) {\n console.warn(\"Timing native module is not available, can't set timers.\");\n // $FlowFixMe: we can assume timers are generally available\n ExportedJSTimers = ({\n callImmediates: JSTimers.callImmediates,\n setImmediate: JSTimers.setImmediate,\n }: typeof JSTimers);\n} else {\n ExportedJSTimers = JSTimers;\n}\n\nBatchedBridge.setImmediatesCallback(\n ExportedJSTimers.callImmediates.bind(ExportedJSTimers),\n);\n\nmodule.exports = ExportedJSTimers;\n","\"use strict\";\n\n/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @typechecks\n */\nvar performance = require(\"./performance\");\n\nvar performanceNow;\n/**\n * Detect if we can use `window.performance.now()` and gracefully fallback to\n * `Date.now()` if it doesn't exist. We need to support Firefox < 15 for now\n * because of Facebook's testing infrastructure.\n */\n\nif (performance.now) {\n performanceNow = function performanceNow() {\n return performance.now();\n };\n} else {\n performanceNow = function performanceNow() {\n return Date.now();\n };\n}\n\nmodule.exports = performanceNow;","/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @typechecks\n */\n'use strict';\n\nvar ExecutionEnvironment = require(\"./ExecutionEnvironment\");\n\nvar performance;\n\nif (ExecutionEnvironment.canUseDOM) {\n performance = window.performance || window.msPerformance || window.webkitPerformance;\n}\n\nmodule.exports = performance || {};","/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n */\n'use strict';\n\nvar canUseDOM = !!(typeof window !== 'undefined' && window.document && window.document.createElement);\n/**\n * Simple, lightweight module assisting with the detection and context of\n * Worker. Helps avoid circular dependencies and allows code to reason about\n * whether or not they are in a Worker, even if they never include the main\n * `ReactWorker` dependency.\n */\n\nvar ExecutionEnvironment = {\n canUseDOM: canUseDOM,\n canUseWorkers: typeof Worker !== 'undefined',\n canUseEventListeners: canUseDOM && !!(window.addEventListener || window.attachEvent),\n canUseViewport: canUseDOM && !!window.screen,\n isInWorker: !canUseDOM // For now, this is true - might change in the future.\n\n};\nmodule.exports = ExecutionEnvironment;","/**\n * Copyright (c) 2014-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n */\n'use strict';\n\nvar emptyFunction = require(\"./emptyFunction\");\n/**\n * Similar to invariant but only logs a warning if the condition is not met.\n * This can be used to log issues in development environments in critical\n * paths. Removing the logging code for production environments will keep the\n * same logic and follow the same code paths.\n */\n\n\nfunction printWarning(format) {\n for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {\n args[_key - 1] = arguments[_key];\n }\n\n var argIndex = 0;\n var message = 'Warning: ' + format.replace(/%s/g, function () {\n return args[argIndex++];\n });\n\n if (typeof console !== 'undefined') {\n console.error(message);\n }\n\n try {\n // --- Welcome to debugging React ---\n // This error was thrown as a convenience so that you can use this stack\n // to find the callsite that caused this warning to fire.\n throw new Error(message);\n } catch (x) {}\n}\n\nvar warning = process.env.NODE_ENV !== \"production\" ? function (condition, format) {\n if (format === undefined) {\n throw new Error('`warning(condition, format, ...args)` requires a warning ' + 'message argument');\n }\n\n if (!condition) {\n for (var _len2 = arguments.length, args = new Array(_len2 > 2 ? _len2 - 2 : 0), _key2 = 2; _key2 < _len2; _key2++) {\n args[_key2 - 2] = arguments[_key2];\n }\n\n printWarning.apply(void 0, [format].concat(args));\n }\n} : emptyFunction;\nmodule.exports = warning;","/**\n * Copyright (c) 2015-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n * @flow\n */\n\n'use strict';\n\nconst EventTarget = require('event-target-shim');\nconst RCTNetworking = require('RCTNetworking');\n\n/* $FlowFixMe(>=0.54.0 site=react_native_oss) This comment suppresses an error\n * found when Flow v0.54 was deployed. To see the error delete this comment and\n * run Flow. */\nconst base64 = require('base64-js');\nconst invariant = require('fbjs/lib/invariant');\n/* $FlowFixMe(>=0.54.0 site=react_native_oss) This comment suppresses an error\n * found when Flow v0.54 was deployed. To see the error delete this comment and\n * run Flow. */\nconst warning = require('fbjs/lib/warning');\nconst BlobManager = require('BlobManager');\n\nexport type NativeResponseType = 'base64' | 'blob' | 'text';\nexport type ResponseType =\n | ''\n | 'arraybuffer'\n | 'blob'\n | 'document'\n | 'json'\n | 'text';\nexport type Response = ?Object | string;\n\ntype XHRInterceptor = {\n requestSent(id: number, url: string, method: string, headers: Object): void,\n responseReceived(\n id: number,\n url: string,\n status: number,\n headers: Object,\n ): void,\n dataReceived(id: number, data: string): void,\n loadingFinished(id: number, encodedDataLength: number): void,\n loadingFailed(id: number, error: string): void,\n};\n\n// The native blob module is optional so inject it here if available.\nif (BlobManager.isAvailable) {\n BlobManager.addNetworkingHandler();\n}\n\nconst UNSENT = 0;\nconst OPENED = 1;\nconst HEADERS_RECEIVED = 2;\nconst LOADING = 3;\nconst DONE = 4;\n\nconst SUPPORTED_RESPONSE_TYPES = {\n arraybuffer: typeof global.ArrayBuffer === 'function',\n blob: typeof global.Blob === 'function',\n document: false,\n json: true,\n text: true,\n '': true,\n};\n\nconst REQUEST_EVENTS = [\n 'abort',\n 'error',\n 'load',\n 'loadstart',\n 'progress',\n 'timeout',\n 'loadend',\n];\n\nconst XHR_EVENTS = REQUEST_EVENTS.concat('readystatechange');\n\nclass XMLHttpRequestEventTarget extends EventTarget(...REQUEST_EVENTS) {\n onload: ?Function;\n onloadstart: ?Function;\n onprogress: ?Function;\n ontimeout: ?Function;\n onerror: ?Function;\n onabort: ?Function;\n onloadend: ?Function;\n}\n\n/**\n * Shared base for platform-specific XMLHttpRequest implementations.\n */\nclass XMLHttpRequest extends EventTarget(...XHR_EVENTS) {\n static UNSENT: number = UNSENT;\n static OPENED: number = OPENED;\n static HEADERS_RECEIVED: number = HEADERS_RECEIVED;\n static LOADING: number = LOADING;\n static DONE: number = DONE;\n\n static _interceptor: ?XHRInterceptor = null;\n\n UNSENT: number = UNSENT;\n OPENED: number = OPENED;\n HEADERS_RECEIVED: number = HEADERS_RECEIVED;\n LOADING: number = LOADING;\n DONE: number = DONE;\n\n // EventTarget automatically initializes these to `null`.\n onload: ?Function;\n onloadstart: ?Function;\n onprogress: ?Function;\n ontimeout: ?Function;\n onerror: ?Function;\n onabort: ?Function;\n onloadend: ?Function;\n onreadystatechange: ?Function;\n\n readyState: number = UNSENT;\n responseHeaders: ?Object;\n status: number = 0;\n timeout: number = 0;\n responseURL: ?string;\n withCredentials: boolean = true;\n\n upload: XMLHttpRequestEventTarget = new XMLHttpRequestEventTarget();\n\n _requestId: ?number;\n _subscriptions: Array<*>;\n\n _aborted: boolean = false;\n _cachedResponse: Response;\n _hasError: boolean = false;\n _headers: Object;\n _lowerCaseResponseHeaders: Object;\n _method: ?string = null;\n _response: string | ?Object;\n _responseType: ResponseType;\n _response: string = '';\n _sent: boolean;\n _url: ?string = null;\n _timedOut: boolean = false;\n _trackingName: string = 'unknown';\n _incrementalEvents: boolean = false;\n\n static setInterceptor(interceptor: ?XHRInterceptor) {\n XMLHttpRequest._interceptor = interceptor;\n }\n\n constructor() {\n super();\n this._reset();\n }\n\n _reset(): void {\n this.readyState = this.UNSENT;\n this.responseHeaders = undefined;\n this.status = 0;\n delete this.responseURL;\n\n this._requestId = null;\n\n this._cachedResponse = undefined;\n this._hasError = false;\n this._headers = {};\n this._response = '';\n this._responseType = '';\n this._sent = false;\n this._lowerCaseResponseHeaders = {};\n\n this._clearSubscriptions();\n this._timedOut = false;\n }\n\n get responseType(): ResponseType {\n return this._responseType;\n }\n\n set responseType(responseType: ResponseType): void {\n if (this._sent) {\n throw new Error(\n \"Failed to set the 'responseType' property on 'XMLHttpRequest': The \" +\n 'response type cannot be set after the request has been sent.',\n );\n }\n if (!SUPPORTED_RESPONSE_TYPES.hasOwnProperty(responseType)) {\n warning(\n false,\n `The provided value '${responseType}' is not a valid 'responseType'.`,\n );\n return;\n }\n\n // redboxes early, e.g. for 'arraybuffer' on ios 7\n invariant(\n SUPPORTED_RESPONSE_TYPES[responseType] || responseType === 'document',\n `The provided value '${responseType}' is unsupported in this environment.`,\n );\n\n if (responseType === 'blob') {\n invariant(\n BlobManager.isAvailable,\n 'Native module BlobModule is required for blob support',\n );\n }\n this._responseType = responseType;\n }\n\n get responseText(): string {\n if (this._responseType !== '' && this._responseType !== 'text') {\n throw new Error(\n \"The 'responseText' property is only available if 'responseType' \" +\n `is set to '' or 'text', but it is '${this._responseType}'.`,\n );\n }\n if (this.readyState < LOADING) {\n return '';\n }\n return this._response;\n }\n\n get response(): Response {\n const {responseType} = this;\n if (responseType === '' || responseType === 'text') {\n return this.readyState < LOADING || this._hasError ? '' : this._response;\n }\n\n if (this.readyState !== DONE) {\n return null;\n }\n\n if (this._cachedResponse !== undefined) {\n return this._cachedResponse;\n }\n\n switch (responseType) {\n case 'document':\n this._cachedResponse = null;\n break;\n\n case 'arraybuffer':\n this._cachedResponse = base64.toByteArray(this._response).buffer;\n break;\n\n case 'blob':\n if (typeof this._response === 'object' && this._response) {\n this._cachedResponse = BlobManager.createFromOptions(this._response);\n } else if (this._response === '') {\n this._cachedResponse = null;\n } else { \n throw new Error(`Invalid response for blob: ${this._response}`);\n }\n break;\n\n case 'json':\n try {\n this._cachedResponse = JSON.parse(this._response);\n } catch (_) {\n this._cachedResponse = null;\n }\n break;\n\n default:\n this._cachedResponse = null;\n }\n\n return this._cachedResponse;\n }\n\n // exposed for testing\n __didCreateRequest(requestId: number): void {\n this._requestId = requestId;\n\n XMLHttpRequest._interceptor &&\n XMLHttpRequest._interceptor.requestSent(\n requestId,\n this._url || '',\n this._method || 'GET',\n this._headers,\n );\n }\n\n // exposed for testing\n __didUploadProgress(\n requestId: number,\n progress: number,\n total: number,\n ): void {\n if (requestId === this._requestId) {\n this.upload.dispatchEvent({\n type: 'progress',\n lengthComputable: true,\n loaded: progress,\n total,\n });\n }\n }\n\n __didReceiveResponse(\n requestId: number,\n status: number,\n responseHeaders: ?Object,\n responseURL: ?string,\n ): void {\n if (requestId === this._requestId) {\n this.status = status;\n this.setResponseHeaders(responseHeaders);\n this.setReadyState(this.HEADERS_RECEIVED);\n if (responseURL || responseURL === '') {\n this.responseURL = responseURL;\n } else {\n delete this.responseURL;\n }\n\n XMLHttpRequest._interceptor &&\n XMLHttpRequest._interceptor.responseReceived(\n requestId,\n responseURL || this._url || '',\n status,\n responseHeaders || {},\n );\n }\n }\n\n __didReceiveData(requestId: number, response: string): void {\n if (requestId !== this._requestId) {\n return;\n }\n this._response = response;\n this._cachedResponse = undefined; // force lazy recomputation\n this.setReadyState(this.LOADING);\n\n XMLHttpRequest._interceptor &&\n XMLHttpRequest._interceptor.dataReceived(requestId, response);\n }\n\n __didReceiveIncrementalData(\n requestId: number,\n responseText: string,\n progress: number,\n total: number,\n ) {\n if (requestId !== this._requestId) {\n return;\n }\n if (!this._response) {\n this._response = responseText;\n } else {\n this._response += responseText;\n }\n\n XMLHttpRequest._interceptor &&\n XMLHttpRequest._interceptor.dataReceived(requestId, responseText);\n\n this.setReadyState(this.LOADING);\n this.__didReceiveDataProgress(requestId, progress, total);\n }\n\n __didReceiveDataProgress(\n requestId: number,\n loaded: number,\n total: number,\n ): void {\n if (requestId !== this._requestId) {\n return;\n }\n this.dispatchEvent({\n type: 'progress',\n lengthComputable: total >= 0,\n loaded,\n total,\n });\n }\n\n // exposed for testing\n __didCompleteResponse(\n requestId: number,\n error: string,\n timeOutError: boolean,\n ): void {\n if (requestId === this._requestId) {\n if (error) {\n if (this._responseType === '' || this._responseType === 'text') {\n this._response = error;\n }\n this._hasError = true;\n if (timeOutError) {\n this._timedOut = true;\n }\n }\n this._clearSubscriptions();\n this._requestId = null;\n this.setReadyState(this.DONE);\n\n if (error) {\n XMLHttpRequest._interceptor &&\n XMLHttpRequest._interceptor.loadingFailed(requestId, error);\n } else {\n XMLHttpRequest._interceptor &&\n XMLHttpRequest._interceptor.loadingFinished(\n requestId,\n this._response.length,\n );\n }\n }\n }\n\n _clearSubscriptions(): void {\n (this._subscriptions || []).forEach(sub => {\n if (sub) {\n sub.remove();\n }\n });\n this._subscriptions = [];\n }\n\n getAllResponseHeaders(): ?string {\n if (!this.responseHeaders) {\n // according to the spec, return null if no response has been received\n return null;\n }\n const headers = this.responseHeaders || {};\n return Object.keys(headers)\n .map(headerName => {\n return headerName + ': ' + headers[headerName];\n })\n .join('\\r\\n');\n }\n\n getResponseHeader(header: string): ?string {\n const value = this._lowerCaseResponseHeaders[header.toLowerCase()];\n return value !== undefined ? value : null;\n }\n\n setRequestHeader(header: string, value: any): void {\n if (this.readyState !== this.OPENED) {\n throw new Error('Request has not been opened');\n }\n this._headers[header.toLowerCase()] = String(value);\n }\n\n /**\n * Custom extension for tracking origins of request.\n */\n setTrackingName(trackingName: string): XMLHttpRequest {\n this._trackingName = trackingName;\n return this;\n }\n\n open(method: string, url: string, async: ?boolean): void {\n /* Other optional arguments are not supported yet */\n if (this.readyState !== this.UNSENT) {\n throw new Error('Cannot open, already sending');\n }\n if (async !== undefined && !async) {\n // async is default\n throw new Error('Synchronous http requests are not supported');\n }\n if (!url) {\n throw new Error('Cannot load an empty url');\n }\n this._method = method.toUpperCase();\n this._url = url;\n this._aborted = false;\n this.setReadyState(this.OPENED);\n }\n\n send(data: any): void {\n if (this.readyState !== this.OPENED) {\n throw new Error('Request has not been opened');\n }\n if (this._sent) {\n throw new Error('Request has already been sent');\n }\n this._sent = true;\n const incrementalEvents =\n this._incrementalEvents || !!this.onreadystatechange || !!this.onprogress;\n\n this._subscriptions.push(\n RCTNetworking.addListener('didSendNetworkData', args =>\n this.__didUploadProgress(...args),\n ),\n );\n this._subscriptions.push(\n RCTNetworking.addListener('didReceiveNetworkResponse', args =>\n this.__didReceiveResponse(...args),\n ),\n );\n this._subscriptions.push(\n RCTNetworking.addListener('didReceiveNetworkData', args =>\n this.__didReceiveData(...args),\n ),\n );\n this._subscriptions.push(\n RCTNetworking.addListener('didReceiveNetworkIncrementalData', args =>\n this.__didReceiveIncrementalData(...args),\n ),\n );\n this._subscriptions.push(\n RCTNetworking.addListener('didReceiveNetworkDataProgress', args =>\n this.__didReceiveDataProgress(...args),\n ),\n );\n this._subscriptions.push(\n RCTNetworking.addListener('didCompleteNetworkResponse', args =>\n this.__didCompleteResponse(...args),\n ),\n );\n\n let nativeResponseType: NativeResponseType = 'text';\n if (this._responseType === 'arraybuffer') {\n nativeResponseType = 'base64';\n }\n if (this._responseType === 'blob') {\n nativeResponseType = 'blob';\n }\n\n invariant(this._method, 'Request method needs to be defined.');\n invariant(this._url, 'Request URL needs to be defined.');\n RCTNetworking.sendRequest(\n this._method,\n this._trackingName,\n this._url,\n this._headers,\n data,\n /* $FlowFixMe(>=0.78.0 site=react_native_android_fb) This issue was found\n * when making Flow check .android.js files. */\n nativeResponseType,\n incrementalEvents,\n this.timeout,\n this.__didCreateRequest.bind(this),\n this.withCredentials,\n );\n }\n\n abort(): void {\n this._aborted = true;\n if (this._requestId) {\n RCTNetworking.abortRequest(this._requestId);\n }\n // only call onreadystatechange if there is something to abort,\n // below logic is per spec\n if (\n !(\n this.readyState === this.UNSENT ||\n (this.readyState === this.OPENED && !this._sent) ||\n this.readyState === this.DONE\n )\n ) {\n this._reset();\n this.setReadyState(this.DONE);\n }\n // Reset again after, in case modified in handler\n this._reset();\n }\n\n setResponseHeaders(responseHeaders: ?Object): void {\n this.responseHeaders = responseHeaders || null;\n const headers = responseHeaders || {};\n this._lowerCaseResponseHeaders = Object.keys(headers).reduce(\n (lcaseHeaders, headerName) => {\n lcaseHeaders[headerName.toLowerCase()] = headers[headerName];\n return lcaseHeaders;\n },\n {},\n );\n }\n\n setReadyState(newState: number): void {\n this.readyState = newState;\n this.dispatchEvent({type: 'readystatechange'});\n if (newState === this.DONE) {\n if (this._aborted) {\n this.dispatchEvent({type: 'abort'});\n } else if (this._hasError) {\n if (this._timedOut) {\n this.dispatchEvent({type: 'timeout'});\n } else {\n this.dispatchEvent({type: 'error'});\n }\n } else {\n this.dispatchEvent({type: 'load'});\n }\n this.dispatchEvent({type: 'loadend'});\n }\n }\n\n /* global EventListener */\n addEventListener(type: string, listener: EventListener): void {\n // If we dont' have a 'readystatechange' event handler, we don't\n // have to send repeated LOADING events with incremental updates\n // to responseText, which will avoid a bunch of native -> JS\n // bridge traffic.\n if (type === 'readystatechange' || type === 'progress') {\n this._incrementalEvents = true;\n }\n super.addEventListener(type, listener);\n }\n}\n\nmodule.exports = XMLHttpRequest;\n","/**\n * @author Toru Nagashima\n * @copyright 2015 Toru Nagashima. All rights reserved.\n * See LICENSE file in root directory for full license.\n */\n\n\"use strict\";\n\n//-----------------------------------------------------------------------------\n// Requirements\n//-----------------------------------------------------------------------------\n\nvar Commons = require(\"./commons\");\nvar CustomEventTarget = require(\"./custom-event-target\");\nvar EventWrapper = require(\"./event-wrapper\");\nvar LISTENERS = Commons.LISTENERS;\nvar CAPTURE = Commons.CAPTURE;\nvar BUBBLE = Commons.BUBBLE;\nvar ATTRIBUTE = Commons.ATTRIBUTE;\nvar newNode = Commons.newNode;\nvar defineCustomEventTarget = CustomEventTarget.defineCustomEventTarget;\nvar createEventWrapper = EventWrapper.createEventWrapper;\nvar STOP_IMMEDIATE_PROPAGATION_FLAG =\n EventWrapper.STOP_IMMEDIATE_PROPAGATION_FLAG;\n\n//-----------------------------------------------------------------------------\n// Constants\n//-----------------------------------------------------------------------------\n\n/**\n * A flag which shows there is the native `EventTarget` interface object.\n *\n * @type {boolean}\n * @private\n */\nvar HAS_EVENTTARGET_INTERFACE = (\n typeof window !== \"undefined\" &&\n typeof window.EventTarget !== \"undefined\"\n);\n\n//-----------------------------------------------------------------------------\n// Public Interface\n//-----------------------------------------------------------------------------\n\n/**\n * An implementation for `EventTarget` interface.\n *\n * @constructor\n * @public\n */\nvar EventTarget = module.exports = function EventTarget() {\n if (this instanceof EventTarget) {\n // this[LISTENERS] is a Map.\n // Its key is event type.\n // Its value is ListenerNode object or null.\n //\n // interface ListenerNode {\n // var listener: Function\n // var kind: CAPTURE|BUBBLE|ATTRIBUTE\n // var next: ListenerNode|null\n // }\n Object.defineProperty(this, LISTENERS, {value: Object.create(null)});\n }\n else if (arguments.length === 1 && Array.isArray(arguments[0])) {\n return defineCustomEventTarget(EventTarget, arguments[0]);\n }\n else if (arguments.length > 0) {\n var types = Array(arguments.length);\n for (var i = 0; i < arguments.length; ++i) {\n types[i] = arguments[i];\n }\n\n // To use to extend with attribute listener properties.\n // e.g.\n // class MyCustomObject extends EventTarget(\"message\", \"error\") {\n // //...\n // }\n return defineCustomEventTarget(EventTarget, types);\n }\n else {\n throw new TypeError(\"Cannot call a class as a function\");\n }\n};\n\nEventTarget.prototype = Object.create(\n (HAS_EVENTTARGET_INTERFACE ? window.EventTarget : Object).prototype,\n {\n constructor: {\n value: EventTarget,\n writable: true,\n configurable: true\n },\n\n addEventListener: {\n value: function addEventListener(type, listener, capture) {\n if (listener == null) {\n return false;\n }\n if (typeof listener !== \"function\" && typeof listener !== \"object\") {\n throw new TypeError(\"\\\"listener\\\" is not an object.\");\n }\n\n var kind = (capture ? CAPTURE : BUBBLE);\n var node = this[LISTENERS][type];\n if (node == null) {\n this[LISTENERS][type] = newNode(listener, kind);\n return true;\n }\n\n var prev = null;\n while (node != null) {\n if (node.listener === listener && node.kind === kind) {\n // Should ignore a duplicated listener.\n return false;\n }\n prev = node;\n node = node.next;\n }\n\n prev.next = newNode(listener, kind);\n return true;\n },\n configurable: true,\n writable: true\n },\n\n removeEventListener: {\n value: function removeEventListener(type, listener, capture) {\n if (listener == null) {\n return false;\n }\n\n var kind = (capture ? CAPTURE : BUBBLE);\n var prev = null;\n var node = this[LISTENERS][type];\n while (node != null) {\n if (node.listener === listener && node.kind === kind) {\n if (prev == null) {\n this[LISTENERS][type] = node.next;\n }\n else {\n prev.next = node.next;\n }\n return true;\n }\n\n prev = node;\n node = node.next;\n }\n\n return false;\n },\n configurable: true,\n writable: true\n },\n\n dispatchEvent: {\n value: function dispatchEvent(event) {\n // If listeners aren't registered, terminate.\n var node = this[LISTENERS][event.type];\n if (node == null) {\n return true;\n }\n\n // Since we cannot rewrite several properties, so wrap object.\n var wrapped = createEventWrapper(event, this);\n\n // This doesn't process capturing phase and bubbling phase.\n // This isn't participating in a tree.\n while (node != null) {\n if (typeof node.listener === \"function\") {\n node.listener.call(this, wrapped);\n }\n else if (node.kind !== ATTRIBUTE && typeof node.listener.handleEvent === \"function\") {\n node.listener.handleEvent(wrapped);\n }\n\n if (wrapped[STOP_IMMEDIATE_PROPAGATION_FLAG]) {\n break;\n }\n node = node.next;\n }\n\n return !wrapped.defaultPrevented;\n },\n configurable: true,\n writable: true\n }\n }\n);\n","/**\n * @author Toru Nagashima\n * @copyright 2015 Toru Nagashima. All rights reserved.\n * See LICENSE file in root directory for full license.\n */\n\n\"use strict\";\n\n/**\n * Creates a unique key.\n *\n * @param {string} name - A name to create.\n * @returns {symbol|string}\n * @private\n */\nvar createUniqueKey = exports.createUniqueKey = (typeof Symbol !== \"undefined\" ?\n Symbol :\n function createUniqueKey(name) {\n return \"[[\" + name + \"_\" + Math.random().toFixed(8).slice(2) + \"]]\";\n });\n\n/**\n * The key of listeners.\n *\n * @type {symbol|string}\n * @private\n */\nexports.LISTENERS = createUniqueKey(\"listeners\");\n\n/**\n * A value of kind for listeners which are registered in the capturing phase.\n *\n * @type {number}\n * @private\n */\nexports.CAPTURE = 1;\n\n/**\n * A value of kind for listeners which are registered in the bubbling phase.\n *\n * @type {number}\n * @private\n */\nexports.BUBBLE = 2;\n\n/**\n * A value of kind for listeners which are registered as an attribute.\n *\n * @type {number}\n * @private\n */\nexports.ATTRIBUTE = 3;\n\n/**\n * @typedef object ListenerNode\n * @property {function} listener - A listener function.\n * @property {number} kind - The kind of the listener.\n * @property {ListenerNode|null} next - The next node.\n * If this node is the last, this is `null`.\n */\n\n/**\n * Creates a node of singly linked list for a list of listeners.\n *\n * @param {function} listener - A listener function.\n * @param {number} kind - The kind of the listener.\n * @returns {ListenerNode} The created listener node.\n */\nexports.newNode = function newNode(listener, kind) {\n return {listener: listener, kind: kind, next: null};\n};\n","/**\n * @author Toru Nagashima\n * @copyright 2015 Toru Nagashima. All rights reserved.\n * See LICENSE file in root directory for full license.\n */\n\n\"use strict\";\n\n//-----------------------------------------------------------------------------\n// Requirements\n//-----------------------------------------------------------------------------\n\nvar Commons = require(\"./commons\");\nvar LISTENERS = Commons.LISTENERS;\nvar ATTRIBUTE = Commons.ATTRIBUTE;\nvar newNode = Commons.newNode;\n\n//-----------------------------------------------------------------------------\n// Helpers\n//-----------------------------------------------------------------------------\n\n/**\n * Gets a specified attribute listener from a given EventTarget object.\n *\n * @param {EventTarget} eventTarget - An EventTarget object to get.\n * @param {string} type - An event type to get.\n * @returns {function|null} The found attribute listener.\n */\nfunction getAttributeListener(eventTarget, type) {\n var node = eventTarget[LISTENERS][type];\n while (node != null) {\n if (node.kind === ATTRIBUTE) {\n return node.listener;\n }\n node = node.next;\n }\n return null;\n}\n\n/**\n * Sets a specified attribute listener to a given EventTarget object.\n *\n * @param {EventTarget} eventTarget - An EventTarget object to set.\n * @param {string} type - An event type to set.\n * @param {function|null} listener - A listener to be set.\n * @returns {void}\n */\nfunction setAttributeListener(eventTarget, type, listener) {\n if (typeof listener !== \"function\" && typeof listener !== \"object\") {\n listener = null; // eslint-disable-line no-param-reassign\n }\n\n var prev = null;\n var node = eventTarget[LISTENERS][type];\n while (node != null) {\n if (node.kind === ATTRIBUTE) {\n // Remove old value.\n if (prev == null) {\n eventTarget[LISTENERS][type] = node.next;\n }\n else {\n prev.next = node.next;\n }\n }\n else {\n prev = node;\n }\n\n node = node.next;\n }\n\n // Add new value.\n if (listener != null) {\n if (prev == null) {\n eventTarget[LISTENERS][type] = newNode(listener, ATTRIBUTE);\n }\n else {\n prev.next = newNode(listener, ATTRIBUTE);\n }\n }\n}\n\n//-----------------------------------------------------------------------------\n// Public Interface\n//-----------------------------------------------------------------------------\n\n/**\n * Defines an `EventTarget` implementation which has `onfoobar` attributes.\n *\n * @param {EventTarget} EventTargetBase - A base implementation of EventTarget.\n * @param {string[]} types - A list of event types which are defined as attribute listeners.\n * @returns {EventTarget} The defined `EventTarget` implementation which has attribute listeners.\n */\nexports.defineCustomEventTarget = function(EventTargetBase, types) {\n function EventTarget() {\n EventTargetBase.call(this);\n }\n\n var descripter = {\n constructor: {\n value: EventTarget,\n configurable: true,\n writable: true\n }\n };\n\n types.forEach(function(type) {\n descripter[\"on\" + type] = {\n get: function() { return getAttributeListener(this, type); },\n set: function(listener) { setAttributeListener(this, type, listener); },\n configurable: true,\n enumerable: true\n };\n });\n\n EventTarget.prototype = Object.create(EventTargetBase.prototype, descripter);\n\n return EventTarget;\n};\n","/**\n * @author Toru Nagashima\n * @copyright 2015 Toru Nagashima. All rights reserved.\n * See LICENSE file in root directory for full license.\n */\n\n\"use strict\";\n\n//-----------------------------------------------------------------------------\n// Requirements\n//-----------------------------------------------------------------------------\n\nvar createUniqueKey = require(\"./commons\").createUniqueKey;\n\n//-----------------------------------------------------------------------------\n// Constsnts\n//-----------------------------------------------------------------------------\n\n/**\n * The key of the flag which is turned on by `stopImmediatePropagation` method.\n *\n * @type {symbol|string}\n * @private\n */\nvar STOP_IMMEDIATE_PROPAGATION_FLAG =\n createUniqueKey(\"stop_immediate_propagation_flag\");\n\n/**\n * The key of the flag which is turned on by `preventDefault` method.\n *\n * @type {symbol|string}\n * @private\n */\nvar CANCELED_FLAG = createUniqueKey(\"canceled_flag\");\n\n/**\n * The key of the original event object.\n *\n * @type {symbol|string}\n * @private\n */\nvar ORIGINAL_EVENT = createUniqueKey(\"original_event\");\n\n/**\n * Method definitions for the event wrapper.\n *\n * @type {object}\n * @private\n */\nvar wrapperPrototypeDefinition = Object.freeze({\n stopPropagation: Object.freeze({\n value: function stopPropagation() {\n var e = this[ORIGINAL_EVENT];\n if (typeof e.stopPropagation === \"function\") {\n e.stopPropagation();\n }\n },\n writable: true,\n configurable: true\n }),\n\n stopImmediatePropagation: Object.freeze({\n value: function stopImmediatePropagation() {\n this[STOP_IMMEDIATE_PROPAGATION_FLAG] = true;\n\n var e = this[ORIGINAL_EVENT];\n if (typeof e.stopImmediatePropagation === \"function\") {\n e.stopImmediatePropagation();\n }\n },\n writable: true,\n configurable: true\n }),\n\n preventDefault: Object.freeze({\n value: function preventDefault() {\n if (this.cancelable === true) {\n this[CANCELED_FLAG] = true;\n }\n\n var e = this[ORIGINAL_EVENT];\n if (typeof e.preventDefault === \"function\") {\n e.preventDefault();\n }\n },\n writable: true,\n configurable: true\n }),\n\n defaultPrevented: Object.freeze({\n get: function defaultPrevented() { return this[CANCELED_FLAG]; },\n enumerable: true,\n configurable: true\n })\n});\n\n//-----------------------------------------------------------------------------\n// Public Interface\n//-----------------------------------------------------------------------------\n\nexports.STOP_IMMEDIATE_PROPAGATION_FLAG = STOP_IMMEDIATE_PROPAGATION_FLAG;\n\n/**\n * Creates an event wrapper.\n *\n * We cannot modify several properties of `Event` object, so we need to create the wrapper.\n * Plus, this wrapper supports non `Event` objects.\n *\n * @param {Event|{type: string}} event - An original event to create the wrapper.\n * @param {EventTarget} eventTarget - The event target of the event.\n * @returns {Event} The created wrapper. This object is implemented `Event` interface.\n * @private\n */\nexports.createEventWrapper = function createEventWrapper(event, eventTarget) {\n var timeStamp = (\n typeof event.timeStamp === \"number\" ? event.timeStamp : Date.now()\n );\n var propertyDefinition = {\n type: {value: event.type, enumerable: true},\n target: {value: eventTarget, enumerable: true},\n currentTarget: {value: eventTarget, enumerable: true},\n eventPhase: {value: 2, enumerable: true},\n bubbles: {value: Boolean(event.bubbles), enumerable: true},\n cancelable: {value: Boolean(event.cancelable), enumerable: true},\n timeStamp: {value: timeStamp, enumerable: true},\n isTrusted: {value: false, enumerable: true}\n };\n propertyDefinition[STOP_IMMEDIATE_PROPAGATION_FLAG] = {value: false, writable: true};\n propertyDefinition[CANCELED_FLAG] = {value: false, writable: true};\n propertyDefinition[ORIGINAL_EVENT] = {value: event};\n\n // For CustomEvent.\n if (typeof event.detail !== \"undefined\") {\n propertyDefinition.detail = {value: event.detail, enumerable: true};\n }\n\n return Object.create(\n Object.create(event, wrapperPrototypeDefinition),\n propertyDefinition\n );\n};\n","/**\n * Copyright (c) 2015-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n * @flow\n */\n\n'use strict';\n\n// Do not require the native RCTNetworking module directly! Use this wrapper module instead.\n// It will add the necessary requestId, so that you don't have to generate it yourself.\nconst MissingNativeEventEmitterShim = require('MissingNativeEventEmitterShim');\nconst NativeEventEmitter = require('NativeEventEmitter');\nconst RCTNetworkingNative = require('NativeModules').Networking;\nconst convertRequestBody = require('convertRequestBody');\n\nimport type {RequestBody} from 'convertRequestBody';\n\ntype Header = [string, string];\n\n// Convert FormData headers to arrays, which are easier to consume in\n// native on Android.\nfunction convertHeadersMapToArray(headers: Object): Array
{\n const headerArray = [];\n for (const name in headers) {\n headerArray.push([name, headers[name]]);\n }\n return headerArray;\n}\n\nlet _requestId = 1;\nfunction generateRequestId(): number {\n return _requestId++;\n}\n\n/**\n * This class is a wrapper around the native RCTNetworking module. It adds a necessary unique\n * requestId to each network request that can be used to abort that request later on.\n */\nclass RCTNetworking extends NativeEventEmitter {\n isAvailable: boolean = true;\n\n constructor() {\n super(RCTNetworkingNative);\n }\n\n sendRequest(\n method: string,\n trackingName: string,\n url: string,\n headers: Object,\n data: RequestBody,\n responseType: 'text' | 'base64',\n incrementalUpdates: boolean,\n timeout: number,\n callback: (requestId: number) => any,\n withCredentials: boolean,\n ) {\n const body = convertRequestBody(data);\n if (body && body.formData) {\n body.formData = body.formData.map(part => ({\n ...part,\n headers: convertHeadersMapToArray(part.headers),\n }));\n }\n const requestId = generateRequestId();\n RCTNetworkingNative.sendRequest(\n method,\n url,\n requestId,\n convertHeadersMapToArray(headers),\n {...body, trackingName},\n responseType,\n incrementalUpdates,\n timeout,\n withCredentials,\n );\n callback(requestId);\n }\n\n abortRequest(requestId: number) {\n RCTNetworkingNative.abortRequest(requestId);\n }\n\n clearCookies(callback: (result: boolean) => any) {\n RCTNetworkingNative.clearCookies(callback);\n }\n}\n\nif (__DEV__ && !RCTNetworkingNative) {\n class MissingNativeRCTNetworkingShim extends MissingNativeEventEmitterShim {\n constructor() {\n super('RCTNetworking', 'Networking');\n }\n\n sendRequest(...args: Array) {\n this.throwMissingNativeModule();\n }\n\n abortRequest(...args: Array) {\n this.throwMissingNativeModule();\n }\n\n clearCookies(...args: Array) {\n this.throwMissingNativeModule();\n }\n }\n\n // This module depends on the native `RCTNetworkingNative` module. If you don't include it,\n // `RCTNetworking.isAvailable` will return `false`, and any method calls will throw.\n // We reassign the class variable to keep the autodoc generator happy.\n RCTNetworking = new MissingNativeRCTNetworkingShim();\n} else {\n RCTNetworking = new RCTNetworking();\n}\n\nmodule.exports = RCTNetworking;\n","/**\n * Copyright (c) 2015-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n * @flow\n */\n\n'use strict';\n\nconst EmitterSubscription = require('EmitterSubscription');\nconst EventEmitter = require('EventEmitter');\n\nconst invariant = require('fbjs/lib/invariant');\n\nclass MissingNativeEventEmitterShim extends EventEmitter {\n isAvailable: boolean = false;\n _nativeModuleName: string;\n _nativeEventEmitterName: string;\n\n constructor(nativeModuleName: string, nativeEventEmitterName: string) {\n super(null);\n this._nativeModuleName = nativeModuleName;\n this._nativeEventEmitterName = nativeEventEmitterName;\n }\n\n throwMissingNativeModule() {\n invariant(\n false,\n `Cannot use '${this._nativeEventEmitterName}' module when ` +\n `native '${this._nativeModuleName}' is not included in the build. ` +\n `Either include it, or check '${\n this._nativeEventEmitterName\n }'.isAvailable ` +\n 'before calling any methods.',\n );\n }\n\n // EventEmitter\n addListener(eventType: string, listener: Function, context: ?Object) {\n this.throwMissingNativeModule();\n }\n\n removeAllListeners(eventType: string) {\n this.throwMissingNativeModule();\n }\n\n removeSubscription(subscription: EmitterSubscription) {\n this.throwMissingNativeModule();\n }\n}\n\nmodule.exports = MissingNativeEventEmitterShim;\n","/**\n * Copyright (c) 2015-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n * @flow\n */\n\n'use strict';\n\nconst EventEmitter = require('EventEmitter');\nconst Platform = require('Platform');\nconst RCTDeviceEventEmitter = require('RCTDeviceEventEmitter');\n\nconst invariant = require('fbjs/lib/invariant');\n\nimport type EmitterSubscription from 'EmitterSubscription';\n\ntype NativeModule = {\n +addListener: (eventType: string) => void,\n +removeListeners: (count: number) => void,\n};\n\n/**\n * Abstract base class for implementing event-emitting modules. This implements\n * a subset of the standard EventEmitter node module API.\n */\nclass NativeEventEmitter extends EventEmitter {\n _nativeModule: ?NativeModule;\n\n constructor(nativeModule: ?NativeModule) {\n super(RCTDeviceEventEmitter.sharedSubscriber);\n if (Platform.OS === 'ios') {\n invariant(nativeModule, 'Native module cannot be null.');\n this._nativeModule = nativeModule;\n }\n }\n\n addListener(\n eventType: string,\n listener: Function,\n context: ?Object,\n ): EmitterSubscription {\n if (this._nativeModule != null) {\n this._nativeModule.addListener(eventType);\n }\n return super.addListener(eventType, listener, context);\n }\n\n removeAllListeners(eventType: string) {\n invariant(eventType, 'eventType argument is required.');\n const count = this.listeners(eventType).length;\n if (this._nativeModule != null) {\n this._nativeModule.removeListeners(count);\n }\n super.removeAllListeners(eventType);\n }\n\n removeSubscription(subscription: EmitterSubscription) {\n if (this._nativeModule != null) {\n this._nativeModule.removeListeners(1);\n }\n super.removeSubscription(subscription);\n }\n}\n\nmodule.exports = NativeEventEmitter;\n","/**\n * Copyright (c) 2015-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @flow\n * @format\n */\n'use strict';\n\nconst binaryToBase64 = require('binaryToBase64');\n\nconst Blob = require('Blob');\nconst FormData = require('FormData');\n\nexport type RequestBody =\n | string\n | Blob\n | FormData\n | {uri: string}\n | ArrayBuffer\n | $ArrayBufferView;\n\nfunction convertRequestBody(body: RequestBody): Object {\n if (typeof body === 'string') {\n return {string: body};\n }\n if (body instanceof Blob) {\n return {blob: body.data};\n }\n if (body instanceof FormData) {\n return {formData: body.getParts()};\n }\n if (body instanceof ArrayBuffer || ArrayBuffer.isView(body)) {\n // $FlowFixMe: no way to assert that 'body' is indeed an ArrayBufferView\n return {base64: binaryToBase64(body)};\n }\n return body;\n}\n\nmodule.exports = convertRequestBody;\n","/**\n * Copyright (c) 2015-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n * @flow\n */\n\n'use strict';\n\n/* $FlowFixMe(>=0.54.0 site=react_native_oss) This comment suppresses an error\n * found when Flow v0.54 was deployed. To see the error delete this comment and\n * run Flow. */\nconst base64 = require('base64-js');\n\nfunction binaryToBase64(data: ArrayBuffer | $ArrayBufferView) {\n if (data instanceof ArrayBuffer) {\n data = new Uint8Array(data);\n }\n if (data instanceof Uint8Array) {\n return base64.fromByteArray(data);\n }\n if (!ArrayBuffer.isView(data)) {\n throw new Error('data must be ArrayBuffer or typed array');\n }\n const {buffer, byteOffset, byteLength} = data;\n return base64.fromByteArray(new Uint8Array(buffer, byteOffset, byteLength));\n}\n\nmodule.exports = binaryToBase64;\n","'use strict'\n\nexports.byteLength = byteLength\nexports.toByteArray = toByteArray\nexports.fromByteArray = fromByteArray\n\nvar lookup = []\nvar revLookup = []\nvar Arr = typeof Uint8Array !== 'undefined' ? Uint8Array : Array\n\nvar code = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/'\nfor (var i = 0, len = code.length; i < len; ++i) {\n lookup[i] = code[i]\n revLookup[code.charCodeAt(i)] = i\n}\n\n// Support decoding URL-safe base64 strings, as Node.js does.\n// See: https://en.wikipedia.org/wiki/Base64#URL_applications\nrevLookup['-'.charCodeAt(0)] = 62\nrevLookup['_'.charCodeAt(0)] = 63\n\nfunction getLens (b64) {\n var len = b64.length\n\n if (len % 4 > 0) {\n throw new Error('Invalid string. Length must be a multiple of 4')\n }\n\n // Trim off extra bytes after placeholder bytes are found\n // See: https://github.com/beatgammit/base64-js/issues/42\n var validLen = b64.indexOf('=')\n if (validLen === -1) validLen = len\n\n var placeHoldersLen = validLen === len\n ? 0\n : 4 - (validLen % 4)\n\n return [validLen, placeHoldersLen]\n}\n\n// base64 is 4/3 + up to two characters of the original data\nfunction byteLength (b64) {\n var lens = getLens(b64)\n var validLen = lens[0]\n var placeHoldersLen = lens[1]\n return ((validLen + placeHoldersLen) * 3 / 4) - placeHoldersLen\n}\n\nfunction _byteLength (b64, validLen, placeHoldersLen) {\n return ((validLen + placeHoldersLen) * 3 / 4) - placeHoldersLen\n}\n\nfunction toByteArray (b64) {\n var tmp\n var lens = getLens(b64)\n var validLen = lens[0]\n var placeHoldersLen = lens[1]\n\n var arr = new Arr(_byteLength(b64, validLen, placeHoldersLen))\n\n var curByte = 0\n\n // if there are placeholders, only get up to the last complete 4 chars\n var len = placeHoldersLen > 0\n ? validLen - 4\n : validLen\n\n for (var i = 0; i < len; i += 4) {\n tmp =\n (revLookup[b64.charCodeAt(i)] << 18) |\n (revLookup[b64.charCodeAt(i + 1)] << 12) |\n (revLookup[b64.charCodeAt(i + 2)] << 6) |\n revLookup[b64.charCodeAt(i + 3)]\n arr[curByte++] = (tmp >> 16) & 0xFF\n arr[curByte++] = (tmp >> 8) & 0xFF\n arr[curByte++] = tmp & 0xFF\n }\n\n if (placeHoldersLen === 2) {\n tmp =\n (revLookup[b64.charCodeAt(i)] << 2) |\n (revLookup[b64.charCodeAt(i + 1)] >> 4)\n arr[curByte++] = tmp & 0xFF\n }\n\n if (placeHoldersLen === 1) {\n tmp =\n (revLookup[b64.charCodeAt(i)] << 10) |\n (revLookup[b64.charCodeAt(i + 1)] << 4) |\n (revLookup[b64.charCodeAt(i + 2)] >> 2)\n arr[curByte++] = (tmp >> 8) & 0xFF\n arr[curByte++] = tmp & 0xFF\n }\n\n return arr\n}\n\nfunction tripletToBase64 (num) {\n return lookup[num >> 18 & 0x3F] +\n lookup[num >> 12 & 0x3F] +\n lookup[num >> 6 & 0x3F] +\n lookup[num & 0x3F]\n}\n\nfunction encodeChunk (uint8, start, end) {\n var tmp\n var output = []\n for (var i = start; i < end; i += 3) {\n tmp =\n ((uint8[i] << 16) & 0xFF0000) +\n ((uint8[i + 1] << 8) & 0xFF00) +\n (uint8[i + 2] & 0xFF)\n output.push(tripletToBase64(tmp))\n }\n return output.join('')\n}\n\nfunction fromByteArray (uint8) {\n var tmp\n var len = uint8.length\n var extraBytes = len % 3 // if we have 1 byte left, pad 2 bytes\n var parts = []\n var maxChunkLength = 16383 // must be multiple of 3\n\n // go through the array every three bytes, we'll deal with trailing stuff later\n for (var i = 0, len2 = len - extraBytes; i < len2; i += maxChunkLength) {\n parts.push(encodeChunk(\n uint8, i, (i + maxChunkLength) > len2 ? len2 : (i + maxChunkLength)\n ))\n }\n\n // pad the end with zeros, but make sure to not forget the extra bytes\n if (extraBytes === 1) {\n tmp = uint8[len - 1]\n parts.push(\n lookup[tmp >> 2] +\n lookup[(tmp << 4) & 0x3F] +\n '=='\n )\n } else if (extraBytes === 2) {\n tmp = (uint8[len - 2] << 8) + uint8[len - 1]\n parts.push(\n lookup[tmp >> 10] +\n lookup[(tmp >> 4) & 0x3F] +\n lookup[(tmp << 2) & 0x3F] +\n '='\n )\n }\n\n return parts.join('')\n}\n","/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @flow\n * @format\n */\n\n'use strict';\n\nimport type {BlobData, BlobOptions} from 'BlobTypes';\n\n/**\n * Opaque JS representation of some binary data in native.\n *\n * The API is modeled after the W3C Blob API, with one caveat\n * regarding explicit deallocation. Refer to the `close()`\n * method for further details.\n *\n * Example usage in a React component:\n *\n * class WebSocketImage extends React.Component {\n * state = {blob: null};\n * componentDidMount() {\n * let ws = this.ws = new WebSocket(...);\n * ws.binaryType = 'blob';\n * ws.onmessage = (event) => {\n * if (this.state.blob) {\n * this.state.blob.close();\n * }\n * this.setState({blob: event.data});\n * };\n * }\n * componentUnmount() {\n * if (this.state.blob) {\n * this.state.blob.close();\n * }\n * this.ws.close();\n * }\n * render() {\n * if (!this.state.blob) {\n * return ;\n * }\n * return ;\n * }\n * }\n *\n * Reference: https://developer.mozilla.org/en-US/docs/Web/API/Blob\n */\nclass Blob {\n _data: ?BlobData;\n\n /**\n * Constructor for JS consumers.\n * Currently we only support creating Blobs from other Blobs.\n * Reference: https://developer.mozilla.org/en-US/docs/Web/API/Blob/Blob\n */\n constructor(parts: Array = [], options?: BlobOptions) {\n const BlobManager = require('BlobManager');\n this.data = BlobManager.createFromParts(parts, options).data;\n }\n\n /*\n * This method is used to create a new Blob object containing\n * the data in the specified range of bytes of the source Blob.\n * Reference: https://developer.mozilla.org/en-US/docs/Web/API/Blob/slice\n */\n set data(data: ?BlobData) {\n this._data = data;\n }\n\n get data(): BlobData {\n if (!this._data) {\n throw new Error('Blob has been closed and is no longer available');\n }\n\n return this._data;\n }\n\n slice(start?: number, end?: number): Blob {\n const BlobManager = require('BlobManager');\n let {offset, size} = this.data;\n\n if (typeof start === 'number') {\n if (start > size) {\n start = size;\n }\n offset += start;\n size -= start;\n\n if (typeof end === 'number') {\n if (end < 0) {\n end = this.size + end;\n }\n size = end - start;\n }\n }\n return BlobManager.createFromOptions({\n blobId: this.data.blobId,\n offset,\n size,\n });\n }\n\n /**\n * This method is in the standard, but not actually implemented by\n * any browsers at this point. It's important for how Blobs work in\n * React Native, however, since we cannot de-allocate resources automatically,\n * so consumers need to explicitly de-allocate them.\n *\n * Note that the semantics around Blobs created via `blob.slice()`\n * and `new Blob([blob])` are different. `blob.slice()` creates a\n * new *view* onto the same binary data, so calling `close()` on any\n * of those views is enough to deallocate the data, whereas\n * `new Blob([blob, ...])` actually copies the data in memory.\n */\n close() {\n const BlobManager = require('BlobManager');\n BlobManager.release(this.data.blobId);\n this.data = null;\n }\n\n /**\n * Size of the data contained in the Blob object, in bytes.\n */\n get size(): number {\n return this.data.size;\n }\n\n /*\n * String indicating the MIME type of the data contained in the Blob.\n * If the type is unknown, this string is empty.\n */\n get type(): string {\n return this.data.type || '';\n }\n}\n\nmodule.exports = Blob;\n","/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @flow strict-local\n * @format\n */\n\n'use strict';\n\nconst Blob = require('Blob');\nconst BlobRegistry = require('BlobRegistry');\nconst {BlobModule} = require('NativeModules');\n\nimport type {BlobData, BlobOptions} from 'BlobTypes';\n\n/*eslint-disable no-bitwise */\n/*eslint-disable eqeqeq */\n\n/**\n * Based on the rfc4122-compliant solution posted at\n * http://stackoverflow.com/questions/105034\n */\nfunction uuidv4(): string {\n return 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, c => {\n const r = (Math.random() * 16) | 0,\n v = c == 'x' ? r : (r & 0x3) | 0x8;\n return v.toString(16);\n });\n}\n\n/**\n * Module to manage blobs. Wrapper around the native blob module.\n */\nclass BlobManager {\n /**\n * If the native blob module is available.\n */\n static isAvailable = !!BlobModule;\n\n /**\n * Create blob from existing array of blobs.\n */\n static createFromParts(\n parts: Array,\n options?: BlobOptions,\n ): Blob {\n const blobId = uuidv4();\n const items = parts.map(part => {\n if (\n part instanceof ArrayBuffer ||\n (global.ArrayBufferView && part instanceof global.ArrayBufferView)\n ) {\n throw new Error(\n \"Creating blobs from 'ArrayBuffer' and 'ArrayBufferView' are not supported\",\n );\n }\n if (part instanceof Blob) {\n return {\n data: part.data,\n type: 'blob',\n };\n } else {\n return {\n data: String(part),\n type: 'string',\n };\n }\n });\n const size = items.reduce((acc, curr) => {\n if (curr.type === 'string') {\n return acc + global.unescape(encodeURI(curr.data)).length;\n } else {\n return acc + curr.data.size;\n }\n }, 0);\n\n BlobModule.createFromParts(items, blobId);\n\n return BlobManager.createFromOptions({\n blobId,\n offset: 0,\n size,\n type: options ? options.type : '',\n lastModified: options ? options.lastModified : Date.now(),\n });\n }\n\n /**\n * Create blob instance from blob data from native.\n * Used internally by modules like XHR, WebSocket, etc.\n */\n static createFromOptions(options: BlobData): Blob {\n BlobRegistry.register(options.blobId);\n return Object.assign(Object.create(Blob.prototype), {data: options});\n }\n\n /**\n * Deallocate resources for a blob.\n */\n static release(blobId: string): void {\n BlobRegistry.unregister(blobId);\n if (BlobRegistry.has(blobId)) {\n return;\n }\n BlobModule.release(blobId);\n }\n\n /**\n * Inject the blob content handler in the networking module to support blob\n * requests and responses.\n */\n static addNetworkingHandler(): void {\n BlobModule.addNetworkingHandler();\n }\n\n /**\n * Indicate the websocket should return a blob for incoming binary\n * messages.\n */\n static addWebSocketHandler(socketId: number): void {\n BlobModule.addWebSocketHandler(socketId);\n }\n\n /**\n * Indicate the websocket should no longer return a blob for incoming\n * binary messages.\n */\n static removeWebSocketHandler(socketId: number): void {\n BlobModule.removeWebSocketHandler(socketId);\n }\n\n /**\n * Send a blob message to a websocket.\n */\n static sendOverSocket(blob: Blob, socketId: number): void {\n BlobModule.sendOverSocket(blob.data, socketId);\n }\n}\n\nmodule.exports = BlobManager;\n","/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @flow strict\n * @format\n */\n\nconst registry: {[key: string]: number} = {};\n\nconst register = (id: string) => {\n if (registry[id]) {\n registry[id]++;\n } else {\n registry[id] = 1;\n }\n};\n\nconst unregister = (id: string) => {\n if (registry[id]) {\n registry[id]--;\n if (registry[id] <= 0) {\n delete registry[id];\n }\n }\n};\n\nconst has = (id: string) => {\n return registry[id] && registry[id] > 0;\n};\n\nmodule.exports = {\n register,\n unregister,\n has,\n};\n","/**\n * Copyright (c) 2015-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n * @flow\n */\n\n'use strict';\n\ntype FormDataValue = any;\ntype FormDataNameValuePair = [string, FormDataValue];\n\ntype Headers = {[name: string]: string};\ntype FormDataPart =\n | {\n string: string,\n headers: Headers,\n }\n | {\n uri: string,\n headers: Headers,\n name?: string,\n type?: string,\n };\n\n/**\n * Polyfill for XMLHttpRequest2 FormData API, allowing multipart POST requests\n * with mixed data (string, native files) to be submitted via XMLHttpRequest.\n *\n * Example:\n *\n * var photo = {\n * uri: uriFromCameraRoll,\n * type: 'image/jpeg',\n * name: 'photo.jpg',\n * };\n *\n * var body = new FormData();\n * body.append('authToken', 'secret');\n * body.append('photo', photo);\n * body.append('title', 'A beautiful photo!');\n *\n * xhr.open('POST', serverURL);\n * xhr.send(body);\n */\nclass FormData {\n _parts: Array;\n\n constructor() {\n this._parts = [];\n }\n\n append(key: string, value: FormDataValue) {\n // The XMLHttpRequest spec doesn't specify if duplicate keys are allowed.\n // MDN says that any new values should be appended to existing values.\n // In any case, major browsers allow duplicate keys, so that's what we'll do\n // too. They'll simply get appended as additional form data parts in the\n // request body, leaving the server to deal with them.\n this._parts.push([key, value]);\n }\n\n getParts(): Array {\n return this._parts.map(([name, value]) => {\n const contentDisposition = 'form-data; name=\"' + name + '\"';\n\n const headers: Headers = {'content-disposition': contentDisposition};\n\n // The body part is a \"blob\", which in React Native just means\n // an object with a `uri` attribute. Optionally, it can also\n // have a `name` and `type` attribute to specify filename and\n // content type (cf. web Blob interface.)\n if (typeof value === 'object' && value) {\n if (typeof value.name === 'string') {\n headers['content-disposition'] += '; filename=\"' + value.name + '\"';\n }\n if (typeof value.type === 'string') {\n headers['content-type'] = value.type;\n }\n return {...value, headers, fieldName: name};\n }\n // Convert non-object values to strings as per FormData.append() spec\n return {string: String(value), headers, fieldName: name};\n });\n }\n}\n\nmodule.exports = FormData;\n","/**\n * Copyright (c) 2015-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n */\n\n/* globals Headers, Request, Response */\n\n'use strict';\n\nconst whatwg = require('whatwg-fetch');\n\nif (whatwg && whatwg.fetch) {\n module.exports = whatwg;\n} else {\n module.exports = {fetch, Headers, Request, Response};\n}\n","/**\n * Copyright (c) 2015-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n */\n\n// Fork of https://github.com/github/fetch/blob/master/fetch.js that does not\n// use reponseType: 'blob' by default. RN already has specific native implementations\n// for different response types so there is no need to add the extra blob overhead.\n\n// Copyright (c) 2014-2016 GitHub, Inc.\n//\n// Permission is hereby granted, free of charge, to any person obtaining\n// a copy of this software and associated documentation files (the\n// \"Software\"), to deal in the Software without restriction, including\n// without limitation the rights to use, copy, modify, merge, publish,\n// distribute, sublicense, and/or sell copies of the Software, and to\n// permit persons to whom the Software is furnished to do so, subject to\n// the following conditions:\n//\n// The above copyright notice and this permission notice shall be\n// included in all copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND,\n// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND\n// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE\n// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION\n// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION\n// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n\n(function(self) {\n 'use strict';\n\n if (self.fetch) {\n return;\n }\n\n var support = {\n searchParams: 'URLSearchParams' in self,\n iterable: 'Symbol' in self && 'iterator' in Symbol,\n blob:\n 'FileReader' in self &&\n 'Blob' in self &&\n (function() {\n try {\n new Blob();\n return true;\n } catch (e) {\n return false;\n }\n })(),\n formData: 'FormData' in self,\n arrayBuffer: 'ArrayBuffer' in self,\n };\n\n if (support.arrayBuffer) {\n var viewClasses = [\n '[object Int8Array]',\n '[object Uint8Array]',\n '[object Uint8ClampedArray]',\n '[object Int16Array]',\n '[object Uint16Array]',\n '[object Int32Array]',\n '[object Uint32Array]',\n '[object Float32Array]',\n '[object Float64Array]',\n ];\n\n var isDataView = function(obj) {\n return obj && DataView.prototype.isPrototypeOf(obj);\n };\n\n var isArrayBufferView =\n ArrayBuffer.isView ||\n function(obj) {\n return (\n obj && viewClasses.indexOf(Object.prototype.toString.call(obj)) > -1\n );\n };\n }\n\n function normalizeName(name) {\n if (typeof name !== 'string') {\n name = String(name);\n }\n if (/[^a-z0-9\\-#$%&'*+.\\^_`|~]/i.test(name)) {\n throw new TypeError('Invalid character in header field name');\n }\n return name.toLowerCase();\n }\n\n function normalizeValue(value) {\n if (typeof value !== 'string') {\n value = String(value);\n }\n return value;\n }\n\n // Build a destructive iterator for the value list\n function iteratorFor(items) {\n var iterator = {\n next: function() {\n var value = items.shift();\n return {done: value === undefined, value: value};\n },\n };\n\n if (support.iterable) {\n iterator[Symbol.iterator] = function() {\n return iterator;\n };\n }\n\n return iterator;\n }\n\n function Headers(headers) {\n this.map = {};\n\n if (headers instanceof Headers) {\n headers.forEach(function(value, name) {\n this.append(name, value);\n }, this);\n } else if (Array.isArray(headers)) {\n headers.forEach(function(header) {\n this.append(header[0], header[1]);\n }, this);\n } else if (headers) {\n Object.getOwnPropertyNames(headers).forEach(function(name) {\n this.append(name, headers[name]);\n }, this);\n }\n }\n\n Headers.prototype.append = function(name, value) {\n name = normalizeName(name);\n value = normalizeValue(value);\n var oldValue = this.map[name];\n this.map[name] = oldValue ? oldValue + ',' + value : value;\n };\n\n Headers.prototype['delete'] = function(name) {\n delete this.map[normalizeName(name)];\n };\n\n Headers.prototype.get = function(name) {\n name = normalizeName(name);\n return this.has(name) ? this.map[name] : null;\n };\n\n Headers.prototype.has = function(name) {\n return this.map.hasOwnProperty(normalizeName(name));\n };\n\n Headers.prototype.set = function(name, value) {\n this.map[normalizeName(name)] = normalizeValue(value);\n };\n\n Headers.prototype.forEach = function(callback, thisArg) {\n for (var name in this.map) {\n if (this.map.hasOwnProperty(name)) {\n callback.call(thisArg, this.map[name], name, this);\n }\n }\n };\n\n Headers.prototype.keys = function() {\n var items = [];\n this.forEach(function(value, name) {\n items.push(name);\n });\n return iteratorFor(items);\n };\n\n Headers.prototype.values = function() {\n var items = [];\n this.forEach(function(value) {\n items.push(value);\n });\n return iteratorFor(items);\n };\n\n Headers.prototype.entries = function() {\n var items = [];\n this.forEach(function(value, name) {\n items.push([name, value]);\n });\n return iteratorFor(items);\n };\n\n if (support.iterable) {\n Headers.prototype[Symbol.iterator] = Headers.prototype.entries;\n }\n\n function consumed(body) {\n if (body.bodyUsed) {\n return Promise.reject(new TypeError('Already read'));\n }\n body.bodyUsed = true;\n }\n\n function fileReaderReady(reader) {\n return new Promise(function(resolve, reject) {\n reader.onload = function() {\n resolve(reader.result);\n };\n reader.onerror = function() {\n reject(reader.error);\n };\n });\n }\n\n function readBlobAsArrayBuffer(blob) {\n var reader = new FileReader();\n var promise = fileReaderReady(reader);\n reader.readAsArrayBuffer(blob);\n return promise;\n }\n\n function readBlobAsText(blob) {\n var reader = new FileReader();\n var promise = fileReaderReady(reader);\n reader.readAsText(blob);\n return promise;\n }\n\n function readArrayBufferAsText(buf) {\n var view = new Uint8Array(buf);\n var chars = new Array(view.length);\n\n for (var i = 0; i < view.length; i++) {\n chars[i] = String.fromCharCode(view[i]);\n }\n return chars.join('');\n }\n\n function bufferClone(buf) {\n if (buf.slice) {\n return buf.slice(0);\n } else {\n var view = new Uint8Array(buf.byteLength);\n view.set(new Uint8Array(buf));\n return view.buffer;\n }\n }\n\n function Body() {\n this.bodyUsed = false;\n\n this._initBody = function(body) {\n this._bodyInit = body;\n if (!body) {\n this._bodyText = '';\n } else if (typeof body === 'string') {\n this._bodyText = body;\n } else if (support.blob && Blob.prototype.isPrototypeOf(body)) {\n this._bodyBlob = body;\n } else if (support.formData && FormData.prototype.isPrototypeOf(body)) {\n this._bodyFormData = body;\n } else if (\n support.searchParams &&\n URLSearchParams.prototype.isPrototypeOf(body)\n ) {\n this._bodyText = body.toString();\n } else if (support.arrayBuffer && support.blob && isDataView(body)) {\n this._bodyArrayBuffer = bufferClone(body.buffer);\n // IE 10-11 can't handle a DataView body.\n this._bodyInit = new Blob([this._bodyArrayBuffer]);\n } else if (\n support.arrayBuffer &&\n (ArrayBuffer.prototype.isPrototypeOf(body) || isArrayBufferView(body))\n ) {\n this._bodyArrayBuffer = bufferClone(body);\n } else {\n throw new Error('unsupported BodyInit type');\n }\n\n if (!this.headers.get('content-type')) {\n if (typeof body === 'string') {\n this.headers.set('content-type', 'text/plain;charset=UTF-8');\n } else if (this._bodyBlob && this._bodyBlob.type) {\n this.headers.set('content-type', this._bodyBlob.type);\n } else if (\n support.searchParams &&\n URLSearchParams.prototype.isPrototypeOf(body)\n ) {\n this.headers.set(\n 'content-type',\n 'application/x-www-form-urlencoded;charset=UTF-8',\n );\n }\n }\n };\n\n if (support.blob) {\n this.blob = function() {\n var rejected = consumed(this);\n if (rejected) {\n return rejected;\n }\n\n if (this._bodyBlob) {\n return Promise.resolve(this._bodyBlob);\n } else if (this._bodyArrayBuffer) {\n return Promise.resolve(new Blob([this._bodyArrayBuffer]));\n } else if (this._bodyFormData) {\n throw new Error('could not read FormData body as blob');\n } else {\n return Promise.resolve(new Blob([this._bodyText]));\n }\n };\n\n this.arrayBuffer = function() {\n if (this._bodyArrayBuffer) {\n return consumed(this) || Promise.resolve(this._bodyArrayBuffer);\n } else {\n return this.blob().then(readBlobAsArrayBuffer);\n }\n };\n }\n\n this.text = function() {\n var rejected = consumed(this);\n if (rejected) {\n return rejected;\n }\n\n if (this._bodyBlob) {\n return readBlobAsText(this._bodyBlob);\n } else if (this._bodyArrayBuffer) {\n return Promise.resolve(readArrayBufferAsText(this._bodyArrayBuffer));\n } else if (this._bodyFormData) {\n throw new Error('could not read FormData body as text');\n } else {\n return Promise.resolve(this._bodyText);\n }\n };\n\n if (support.formData) {\n this.formData = function() {\n return this.text().then(decode);\n };\n }\n\n this.json = function() {\n return this.text().then(JSON.parse);\n };\n\n return this;\n }\n\n // HTTP methods whose capitalization should be normalized\n var methods = ['DELETE', 'GET', 'HEAD', 'OPTIONS', 'POST', 'PUT'];\n\n function normalizeMethod(method) {\n var upcased = method.toUpperCase();\n return methods.indexOf(upcased) > -1 ? upcased : method;\n }\n\n function Request(input, options) {\n options = options || {};\n var body = options.body;\n\n if (input instanceof Request) {\n if (input.bodyUsed) {\n throw new TypeError('Already read');\n }\n this.url = input.url;\n this.credentials = input.credentials;\n if (!options.headers) {\n this.headers = new Headers(input.headers);\n }\n this.method = input.method;\n this.mode = input.mode;\n if (!body && input._bodyInit != null) {\n body = input._bodyInit;\n input.bodyUsed = true;\n }\n } else {\n this.url = String(input);\n }\n\n this.credentials = options.credentials || this.credentials || 'omit';\n if (options.headers || !this.headers) {\n this.headers = new Headers(options.headers);\n }\n this.method = normalizeMethod(options.method || this.method || 'GET');\n this.mode = options.mode || this.mode || null;\n this.referrer = null;\n\n if ((this.method === 'GET' || this.method === 'HEAD') && body) {\n throw new TypeError('Body not allowed for GET or HEAD requests');\n }\n this._initBody(body);\n }\n\n Request.prototype.clone = function() {\n return new Request(this, {body: this._bodyInit});\n };\n\n function decode(body) {\n var form = new FormData();\n body\n .trim()\n .split('&')\n .forEach(function(bytes) {\n if (bytes) {\n var split = bytes.split('=');\n var name = split.shift().replace(/\\+/g, ' ');\n var value = split.join('=').replace(/\\+/g, ' ');\n form.append(decodeURIComponent(name), decodeURIComponent(value));\n }\n });\n return form;\n }\n\n function parseHeaders(rawHeaders) {\n var headers = new Headers();\n // Replace instances of \\r\\n and \\n followed by at least one space or horizontal tab with a space\n // https://tools.ietf.org/html/rfc7230#section-3.2\n var preProcessedHeaders = rawHeaders.replace(/\\r?\\n[\\t ]+/g, ' ');\n preProcessedHeaders.split(/\\r?\\n/).forEach(function(line) {\n var parts = line.split(':');\n var key = parts.shift().trim();\n if (key) {\n var value = parts.join(':').trim();\n headers.append(key, value);\n }\n });\n return headers;\n }\n\n Body.call(Request.prototype);\n\n function Response(bodyInit, options) {\n if (!options) {\n options = {};\n }\n\n this.type = 'default';\n this.status = options.status === undefined ? 200 : options.status;\n this.ok = this.status >= 200 && this.status < 300;\n this.statusText = 'statusText' in options ? options.statusText : 'OK';\n this.headers = new Headers(options.headers);\n this.url = options.url || '';\n this._initBody(bodyInit);\n }\n\n Body.call(Response.prototype);\n\n Response.prototype.clone = function() {\n return new Response(this._bodyInit, {\n status: this.status,\n statusText: this.statusText,\n headers: new Headers(this.headers),\n url: this.url,\n });\n };\n\n Response.error = function() {\n var response = new Response(null, {status: 0, statusText: ''});\n response.type = 'error';\n return response;\n };\n\n var redirectStatuses = [301, 302, 303, 307, 308];\n\n Response.redirect = function(url, status) {\n if (redirectStatuses.indexOf(status) === -1) {\n throw new RangeError('Invalid status code');\n }\n\n return new Response(null, {status: status, headers: {location: url}});\n };\n\n self.Headers = Headers;\n self.Request = Request;\n self.Response = Response;\n\n self.fetch = function(input, init) {\n return new Promise(function(resolve, reject) {\n var request = new Request(input, init);\n var xhr = new XMLHttpRequest();\n\n xhr.onload = function() {\n var options = {\n status: xhr.status,\n statusText: xhr.statusText,\n headers: parseHeaders(xhr.getAllResponseHeaders() || ''),\n };\n options.url =\n 'responseURL' in xhr\n ? xhr.responseURL\n : options.headers.get('X-Request-URL');\n var body = 'response' in xhr ? xhr.response : xhr.responseText;\n resolve(new Response(body, options));\n };\n\n xhr.onerror = function() {\n reject(new TypeError('Network request failed'));\n };\n\n xhr.ontimeout = function() {\n reject(new TypeError('Network request failed'));\n };\n\n xhr.open(request.method, request.url, true);\n\n if (request.credentials === 'include') {\n xhr.withCredentials = true;\n } else if (request.credentials === 'omit') {\n xhr.withCredentials = false;\n }\n\n request.headers.forEach(function(value, name) {\n xhr.setRequestHeader(name, value);\n });\n\n xhr.send(\n typeof request._bodyInit === 'undefined' ? null : request._bodyInit,\n );\n });\n };\n self.fetch.polyfill = true;\n})(typeof self !== 'undefined' ? self : this);\n","/**\n * Copyright (c) 2015-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n * @flow\n */\n\n'use strict';\n\nconst Blob = require('Blob');\nconst EventTarget = require('event-target-shim');\nconst NativeEventEmitter = require('NativeEventEmitter');\nconst BlobManager = require('BlobManager');\nconst NativeModules = require('NativeModules');\nconst Platform = require('Platform');\nconst WebSocketEvent = require('WebSocketEvent');\n\n/* $FlowFixMe(>=0.54.0 site=react_native_oss) This comment suppresses an error\n * found when Flow v0.54 was deployed. To see the error delete this comment and\n * run Flow. */\nconst base64 = require('base64-js');\nconst binaryToBase64 = require('binaryToBase64');\nconst invariant = require('fbjs/lib/invariant');\n\nconst {WebSocketModule} = NativeModules;\n\nimport type EventSubscription from 'EventSubscription';\n\ntype ArrayBufferView =\n | Int8Array\n | Uint8Array\n | Uint8ClampedArray\n | Int16Array\n | Uint16Array\n | Int32Array\n | Uint32Array\n | Float32Array\n | Float64Array\n | DataView;\n\ntype BinaryType = 'blob' | 'arraybuffer';\n\nconst CONNECTING = 0;\nconst OPEN = 1;\nconst CLOSING = 2;\nconst CLOSED = 3;\n\nconst CLOSE_NORMAL = 1000;\n\nconst WEBSOCKET_EVENTS = ['close', 'error', 'message', 'open'];\n\nlet nextWebSocketId = 0;\n\n/**\n * Browser-compatible WebSockets implementation.\n *\n * See https://developer.mozilla.org/en-US/docs/Web/API/WebSocket\n * See https://github.com/websockets/ws\n */\nclass WebSocket extends EventTarget(...WEBSOCKET_EVENTS) {\n static CONNECTING = CONNECTING;\n static OPEN = OPEN;\n static CLOSING = CLOSING;\n static CLOSED = CLOSED;\n\n CONNECTING: number = CONNECTING;\n OPEN: number = OPEN;\n CLOSING: number = CLOSING;\n CLOSED: number = CLOSED;\n\n _socketId: number;\n _eventEmitter: NativeEventEmitter;\n _subscriptions: Array;\n _binaryType: ?BinaryType;\n\n onclose: ?Function;\n onerror: ?Function;\n onmessage: ?Function;\n onopen: ?Function;\n\n bufferedAmount: number;\n extension: ?string;\n protocol: ?string;\n readyState: number = CONNECTING;\n url: ?string;\n\n // This module depends on the native `WebSocketModule` module. If you don't include it,\n // `WebSocket.isAvailable` will return `false`, and WebSocket constructor will throw an error\n static isAvailable: boolean = !!WebSocketModule;\n\n constructor(\n url: string,\n protocols: ?string | ?Array,\n options: ?{headers?: {origin?: string}},\n ) {\n super();\n if (typeof protocols === 'string') {\n protocols = [protocols];\n }\n\n const {headers = {}, ...unrecognized} = options || {};\n\n // Preserve deprecated backwards compatibility for the 'origin' option\n /* $FlowFixMe(>=0.68.0 site=react_native_fb) This comment suppresses an\n * error found when Flow v0.68 was deployed. To see the error delete this\n * comment and run Flow. */\n if (unrecognized && typeof unrecognized.origin === 'string') {\n console.warn(\n 'Specifying `origin` as a WebSocket connection option is deprecated. Include it under `headers` instead.',\n );\n /* $FlowFixMe(>=0.54.0 site=react_native_fb,react_native_oss) This\n * comment suppresses an error found when Flow v0.54 was deployed. To see\n * the error delete this comment and run Flow. */\n headers.origin = unrecognized.origin;\n /* $FlowFixMe(>=0.54.0 site=react_native_fb,react_native_oss) This\n * comment suppresses an error found when Flow v0.54 was deployed. To see\n * the error delete this comment and run Flow. */\n delete unrecognized.origin;\n }\n\n // Warn about and discard anything else\n if (Object.keys(unrecognized).length > 0) {\n console.warn(\n 'Unrecognized WebSocket connection option(s) `' +\n Object.keys(unrecognized).join('`, `') +\n '`. ' +\n 'Did you mean to put these under `headers`?',\n );\n }\n\n if (!Array.isArray(protocols)) {\n protocols = null;\n }\n\n if (!WebSocket.isAvailable) {\n throw new Error(\n 'Cannot initialize WebSocket module. ' +\n 'Native module WebSocketModule is missing.',\n );\n }\n\n this._eventEmitter = new NativeEventEmitter(WebSocketModule);\n this._socketId = nextWebSocketId++;\n this._registerEvents();\n WebSocketModule.connect(\n url,\n protocols,\n {headers},\n this._socketId,\n );\n }\n\n get binaryType(): ?BinaryType {\n return this._binaryType;\n }\n\n set binaryType(binaryType: BinaryType): void {\n if (binaryType !== 'blob' && binaryType !== 'arraybuffer') {\n throw new Error(\"binaryType must be either 'blob' or 'arraybuffer'\");\n }\n if (this._binaryType === 'blob' || binaryType === 'blob') {\n invariant(\n BlobManager.isAvailable,\n 'Native module BlobModule is required for blob support',\n );\n if (binaryType === 'blob') {\n BlobManager.addWebSocketHandler(this._socketId);\n } else {\n BlobManager.removeWebSocketHandler(this._socketId);\n }\n }\n this._binaryType = binaryType;\n }\n\n get binaryType(): ?BinaryType {\n return this._binaryType;\n }\n\n close(code?: number, reason?: string): void {\n if (this.readyState === this.CLOSING || this.readyState === this.CLOSED) {\n return;\n }\n\n this.readyState = this.CLOSING;\n this._close(code, reason);\n }\n\n send(data: string | ArrayBuffer | ArrayBufferView | Blob): void {\n if (this.readyState === this.CONNECTING) {\n throw new Error('INVALID_STATE_ERR');\n }\n\n if (data instanceof Blob) {\n invariant(\n BlobManager.isAvailable,\n 'Native module BlobModule is required for blob support',\n );\n BlobManager.sendOverSocket(data, this._socketId);\n return;\n }\n\n if (typeof data === 'string') {\n WebSocketModule.send(data, this._socketId);\n return;\n }\n\n if (data instanceof ArrayBuffer || ArrayBuffer.isView(data)) {\n WebSocketModule.sendBinary(binaryToBase64(data), this._socketId);\n return;\n }\n\n throw new Error('Unsupported data type');\n }\n\n ping(): void {\n if (this.readyState === this.CONNECTING) {\n throw new Error('INVALID_STATE_ERR');\n }\n\n WebSocketModule.ping(this._socketId);\n }\n\n _close(code?: number, reason?: string): void {\n if (Platform.OS === 'android') {\n // See https://developer.mozilla.org/en-US/docs/Web/API/CloseEvent\n const statusCode = typeof code === 'number' ? code : CLOSE_NORMAL;\n const closeReason = typeof reason === 'string' ? reason : '';\n WebSocketModule.close(statusCode, closeReason, this._socketId);\n } else {\n WebSocketModule.close(this._socketId);\n }\n\n if (BlobManager.isAvailable && this._binaryType === 'blob') {\n BlobManager.removeWebSocketHandler(this._socketId);\n }\n }\n\n _unregisterEvents(): void {\n this._subscriptions.forEach(e => e.remove());\n this._subscriptions = [];\n }\n\n _registerEvents(): void {\n this._subscriptions = [\n this._eventEmitter.addListener('websocketMessage', ev => {\n if (ev.id !== this._socketId) {\n return;\n }\n let data = ev.data;\n switch (ev.type) {\n case 'binary':\n data = base64.toByteArray(ev.data).buffer;\n break;\n case 'blob':\n data = BlobManager.createFromOptions(ev.data);\n break;\n }\n this.dispatchEvent(new WebSocketEvent('message', {data}));\n }),\n this._eventEmitter.addListener('websocketOpen', ev => {\n if (ev.id !== this._socketId) {\n return;\n }\n this.readyState = this.OPEN;\n this.dispatchEvent(new WebSocketEvent('open'));\n }),\n this._eventEmitter.addListener('websocketClosed', ev => {\n if (ev.id !== this._socketId) {\n return;\n }\n this.readyState = this.CLOSED;\n this.dispatchEvent(\n new WebSocketEvent('close', {\n code: ev.code,\n reason: ev.reason,\n }),\n );\n this._unregisterEvents();\n this.close();\n }),\n this._eventEmitter.addListener('websocketFailed', ev => {\n if (ev.id !== this._socketId) {\n return;\n }\n this.readyState = this.CLOSED;\n this.dispatchEvent(\n new WebSocketEvent('error', {\n message: ev.message,\n }),\n );\n this.dispatchEvent(\n new WebSocketEvent('close', {\n message: ev.message,\n }),\n );\n this._unregisterEvents();\n this.close();\n }),\n ];\n }\n}\n\nmodule.exports = WebSocket;\n","/**\n * Copyright (c) 2015-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n */\n\n'use strict';\n\n/**\n * Event object passed to the `onopen`, `onclose`, `onmessage`, `onerror`\n * callbacks of `WebSocket`.\n *\n * The `type` property is \"open\", \"close\", \"message\", \"error\" respectively.\n *\n * In case of \"message\", the `data` property contains the incoming data.\n */\nclass WebSocketEvent {\n constructor(type, eventInitDict) {\n this.type = type.toString();\n Object.assign(this, eventInitDict);\n }\n}\n\nmodule.exports = WebSocketEvent;\n","/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @flow\n * @format\n */\n'use strict';\n\nconst Blob = require('Blob');\n\nconst invariant = require('fbjs/lib/invariant');\n\nimport type {BlobOptions} from 'BlobTypes';\n\n/**\n * The File interface provides information about files.\n */\nclass File extends Blob {\n /**\n * Constructor for JS consumers.\n */\n constructor(\n parts: Array,\n name: string,\n options?: BlobOptions,\n ) {\n invariant(\n parts != null && name != null,\n 'Failed to construct `File`: Must pass both `parts` and `name` arguments.',\n );\n\n super(parts, options);\n this.data.name = name;\n }\n\n /**\n * Name of the file.\n */\n get name(): string {\n invariant(this.data.name != null, 'Files must have a name set.');\n return this.data.name;\n }\n\n /*\n * Last modified time of the file.\n */\n get lastModified(): number {\n return this.data.lastModified || 0;\n }\n}\n\nmodule.exports = File;\n","/**\n * Copyright (c) 2015-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @flow\n * @format\n */\n\n'use strict';\n\nconst EventTarget = require('event-target-shim');\nconst Blob = require('Blob');\nconst {FileReaderModule} = require('NativeModules');\n\ntype ReadyState =\n | 0 // EMPTY\n | 1 // LOADING\n | 2; // DONE\n\ntype ReaderResult = string | ArrayBuffer;\n\nconst READER_EVENTS = [\n 'abort',\n 'error',\n 'load',\n 'loadstart',\n 'loadend',\n 'progress',\n];\n\nconst EMPTY = 0;\nconst LOADING = 1;\nconst DONE = 2;\n\nclass FileReader extends EventTarget(...READER_EVENTS) {\n static EMPTY = EMPTY;\n static LOADING = LOADING;\n static DONE = DONE;\n\n EMPTY = EMPTY;\n LOADING = LOADING;\n DONE = DONE;\n\n _readyState: ReadyState;\n _error: ?Error;\n _result: ?ReaderResult;\n _aborted: boolean = false;\n _subscriptions: Array<*> = [];\n\n constructor() {\n super();\n this._reset();\n }\n\n _reset(): void {\n this._readyState = EMPTY;\n this._error = null;\n this._result = null;\n }\n\n _clearSubscriptions(): void {\n this._subscriptions.forEach(sub => sub.remove());\n this._subscriptions = [];\n }\n\n _setReadyState(newState: ReadyState) {\n this._readyState = newState;\n this.dispatchEvent({type: 'readystatechange'});\n if (newState === DONE) {\n if (this._aborted) {\n this.dispatchEvent({type: 'abort'});\n } else if (this._error) {\n this.dispatchEvent({type: 'error'});\n } else {\n this.dispatchEvent({type: 'load'});\n }\n this.dispatchEvent({type: 'loadend'});\n }\n }\n\n readAsArrayBuffer() {\n throw new Error('FileReader.readAsArrayBuffer is not implemented');\n }\n\n readAsDataURL(blob: Blob) {\n this._aborted = false;\n\n FileReaderModule.readAsDataURL(blob.data).then(\n (text: string) => {\n if (this._aborted) {\n return;\n }\n this._result = text;\n this._setReadyState(DONE);\n },\n error => {\n if (this._aborted) {\n return;\n }\n this._error = error;\n this._setReadyState(DONE);\n },\n );\n }\n\n readAsText(blob: Blob, encoding: string = 'UTF-8') {\n this._aborted = false;\n\n FileReaderModule.readAsText(blob.data, encoding).then(\n (text: string) => {\n if (this._aborted) {\n return;\n }\n this._result = text;\n this._setReadyState(DONE);\n },\n error => {\n if (this._aborted) {\n return;\n }\n this._error = error;\n this._setReadyState(DONE);\n },\n );\n }\n\n abort() {\n this._aborted = true;\n // only call onreadystatechange if there is something to abort, as per spec\n if (this._readyState !== EMPTY && this._readyState !== DONE) {\n this._reset();\n this._setReadyState(DONE);\n }\n // Reset again after, in case modified in handler\n this._reset();\n }\n\n get readyState(): ReadyState {\n return this._readyState;\n }\n\n get error(): ?Error {\n return this._error;\n }\n\n get result(): ?ReaderResult {\n return this._result;\n }\n}\n\nmodule.exports = FileReader;\n","/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n * @flow strict-local\n */\n\n'use strict';\n\nconst Blob = require('Blob');\n\nconst {BlobModule} = require('NativeModules');\n\nlet BLOB_URL_PREFIX = null;\n\nif (BlobModule && typeof BlobModule.BLOB_URI_SCHEME === 'string') {\n BLOB_URL_PREFIX = BlobModule.BLOB_URI_SCHEME + ':';\n if (typeof BlobModule.BLOB_URI_HOST === 'string') {\n BLOB_URL_PREFIX += `//${BlobModule.BLOB_URI_HOST}/`;\n }\n}\n\n/**\n * To allow Blobs be accessed via `content://` URIs,\n * you need to register `BlobProvider` as a ContentProvider in your app's `AndroidManifest.xml`:\n *\n * ```xml\n * \n * \n * \n * \n * \n * ```\n * And then define the `blob_provider_authority` string in `res/values/strings.xml`.\n * Use a dotted name that's entirely unique to your app:\n *\n * ```xml\n * \n * your.app.package.blobs\n * \n * ```\n */\nclass URL {\n constructor() {\n throw new Error('Creating URL objects is not supported yet.');\n }\n\n static createObjectURL(blob: Blob) {\n if (BLOB_URL_PREFIX === null) {\n throw new Error('Cannot create URL for blob!');\n }\n return `${BLOB_URL_PREFIX}${blob.data.blobId}?offset=${\n blob.data.offset\n }&size=${blob.size}`;\n }\n\n static revokeObjectURL(url: string) {\n // Do nothing.\n }\n}\n\nmodule.exports = URL;\n","/**\n * Copyright (c) 2015-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n * @flow\n */\n\n'use strict';\n\nconst AlertIOS = require('AlertIOS');\nconst NativeModules = require('NativeModules');\nconst Platform = require('Platform');\n\nimport type {AlertType, AlertButtonStyle} from 'AlertIOS';\n\nexport type Buttons = Array<{\n text?: string,\n onPress?: ?Function,\n style?: AlertButtonStyle,\n}>;\n\ntype Options = {\n cancelable?: ?boolean,\n onDismiss?: ?Function,\n};\n\n/**\n * Launches an alert dialog with the specified title and message.\n *\n * See http://facebook.github.io/react-native/docs/alert.html\n */\nclass Alert {\n /**\n * Launches an alert dialog with the specified title and message.\n *\n * See http://facebook.github.io/react-native/docs/alert.html#alert\n */\n static alert(\n title: ?string,\n message?: ?string,\n buttons?: Buttons,\n options?: Options,\n type?: AlertType,\n ): void {\n if (Platform.OS === 'ios') {\n if (typeof type !== 'undefined') {\n console.warn(\n 'Alert.alert() with a 5th \"type\" parameter is deprecated and will be removed. Use AlertIOS.prompt() instead.',\n );\n AlertIOS.alert(title, message, buttons, type);\n return;\n }\n AlertIOS.alert(title, message, buttons);\n } else if (Platform.OS === 'android') {\n AlertAndroid.alert(title, message, buttons, options);\n }\n }\n}\n\n/**\n * Wrapper around the Android native module.\n */\nclass AlertAndroid {\n static alert(\n title: ?string,\n message?: ?string,\n buttons?: Buttons,\n options?: Options,\n ): void {\n let config = {\n title: title || '',\n message: message || '',\n };\n\n if (options) {\n config = {...config, cancelable: options.cancelable};\n }\n // At most three buttons (neutral, negative, positive). Ignore rest.\n // The text 'OK' should be probably localized. iOS Alert does that in native.\n const validButtons: Buttons = buttons\n ? buttons.slice(0, 3)\n : [{text: 'OK'}];\n const buttonPositive = validButtons.pop();\n const buttonNegative = validButtons.pop();\n const buttonNeutral = validButtons.pop();\n if (buttonNeutral) {\n config = {...config, buttonNeutral: buttonNeutral.text || ''};\n }\n if (buttonNegative) {\n config = {...config, buttonNegative: buttonNegative.text || ''};\n }\n if (buttonPositive) {\n config = {...config, buttonPositive: buttonPositive.text || ''};\n }\n NativeModules.DialogManagerAndroid.showAlert(\n config,\n errorMessage => console.warn(errorMessage),\n (action, buttonKey) => {\n if (action === NativeModules.DialogManagerAndroid.buttonClicked) {\n if (buttonKey === NativeModules.DialogManagerAndroid.buttonNeutral) {\n buttonNeutral.onPress && buttonNeutral.onPress();\n } else if (\n buttonKey === NativeModules.DialogManagerAndroid.buttonNegative\n ) {\n buttonNegative.onPress && buttonNegative.onPress();\n } else if (\n buttonKey === NativeModules.DialogManagerAndroid.buttonPositive\n ) {\n buttonPositive.onPress && buttonPositive.onPress();\n }\n } else if (action === NativeModules.DialogManagerAndroid.dismissed) {\n options && options.onDismiss && options.onDismiss();\n }\n },\n );\n }\n}\n\nmodule.exports = Alert;\n","/**\n * Copyright (c) 2015-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n * @flow\n * @jsdoc\n */\n\n'use strict';\n\nconst RCTAlertManager = require('NativeModules').AlertManager;\n\n/**\n * An Alert button type\n */\nexport type AlertType = $Enum<{\n /**\n * Default alert with no inputs\n */\n default: string,\n /**\n * Plain text input alert\n */\n 'plain-text': string,\n /**\n * Secure text input alert\n */\n 'secure-text': string,\n /**\n * Login and password alert\n */\n 'login-password': string,\n}>;\n\n/**\n * An Alert button style\n */\nexport type AlertButtonStyle = $Enum<{\n /**\n * Default button style\n */\n default: string,\n /**\n * Cancel button style\n */\n cancel: string,\n /**\n * Destructive button style\n */\n destructive: string,\n}>;\n\n/**\n * Array or buttons\n * @typedef {Array} ButtonsArray\n * @property {string=} text Button label\n * @property {Function=} onPress Callback function when button pressed\n * @property {AlertButtonStyle=} style Button style\n */\nexport type ButtonsArray = Array<{\n /**\n * Button label\n */\n text?: string,\n /**\n * Callback function when button pressed\n */\n onPress?: ?Function,\n /**\n * Button style\n */\n style?: AlertButtonStyle,\n}>;\n\n/**\n * Use `AlertIOS` to display an alert dialog with a message or to create a prompt for user input on iOS. If you don't need to prompt for user input, we recommend using `Alert.alert() for cross-platform support.\n *\n * See http://facebook.github.io/react-native/docs/alertios.html\n */\nclass AlertIOS {\n /**\n * Create and display a popup alert.\n *\n * See http://facebook.github.io/react-native/docs/alertios.html#alert\n */\n static alert(\n title: ?string,\n message?: ?string,\n callbackOrButtons?: ?((() => void) | ButtonsArray),\n type?: AlertType,\n ): void {\n if (typeof type !== 'undefined') {\n console.warn(\n 'AlertIOS.alert() with a 4th \"type\" parameter is deprecated and will be removed. Use AlertIOS.prompt() instead.',\n );\n this.prompt(title, message, callbackOrButtons, type);\n return;\n }\n this.prompt(title, message, callbackOrButtons, 'default');\n }\n\n /**\n * Create and display a prompt to enter some text.\n *\n * See http://facebook.github.io/react-native/docs/alertios.html#prompt\n */\n static prompt(\n title: ?string,\n message?: ?string,\n callbackOrButtons?: ?(((text: string) => void) | ButtonsArray),\n type?: ?AlertType = 'plain-text',\n defaultValue?: string,\n keyboardType?: string,\n ): void {\n if (typeof type === 'function') {\n console.warn(\n 'You passed a callback function as the \"type\" argument to AlertIOS.prompt(). React Native is ' +\n 'assuming you want to use the deprecated AlertIOS.prompt(title, defaultValue, buttons, callback) ' +\n 'signature. The current signature is AlertIOS.prompt(title, message, callbackOrButtons, type, defaultValue, ' +\n 'keyboardType) and the old syntax will be removed in a future version.',\n );\n\n const callback = type;\n RCTAlertManager.alertWithArgs(\n {\n title: title || '',\n type: 'plain-text',\n defaultValue: message,\n },\n (id, value) => {\n callback(value);\n },\n );\n return;\n }\n\n let callbacks = [];\n const buttons = [];\n let cancelButtonKey;\n let destructiveButtonKey;\n if (typeof callbackOrButtons === 'function') {\n callbacks = [callbackOrButtons];\n } else if (callbackOrButtons instanceof Array) {\n callbackOrButtons.forEach((btn, index) => {\n callbacks[index] = btn.onPress;\n if (btn.style === 'cancel') {\n cancelButtonKey = String(index);\n } else if (btn.style === 'destructive') {\n destructiveButtonKey = String(index);\n }\n if (btn.text || index < (callbackOrButtons || []).length - 1) {\n const btnDef = {};\n btnDef[index] = btn.text || '';\n buttons.push(btnDef);\n }\n });\n }\n\n RCTAlertManager.alertWithArgs(\n {\n title: title || '',\n message: message || undefined,\n buttons,\n type: type || undefined,\n defaultValue,\n cancelButtonKey,\n destructiveButtonKey,\n keyboardType,\n },\n (id, value) => {\n const cb = callbacks[id];\n cb && cb(value);\n },\n );\n }\n}\n\nmodule.exports = AlertIOS;\n","/**\n * Copyright (c) 2015-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n * @flow\n */\n\n'use strict';\n\nconst NativeEventEmitter = require('NativeEventEmitter');\nconst RCTLocationObserver = require('NativeModules').LocationObserver;\n\nconst invariant = require('fbjs/lib/invariant');\nconst logError = require('logError');\n/* $FlowFixMe(>=0.54.0 site=react_native_oss) This comment suppresses an error\n * found when Flow v0.54 was deployed. To see the error delete this comment and\n * run Flow. */\nconst warning = require('fbjs/lib/warning');\n\nconst LocationEventEmitter = new NativeEventEmitter(RCTLocationObserver);\n\nconst Platform = require('Platform');\nconst PermissionsAndroid = require('PermissionsAndroid');\n\nlet subscriptions = [];\nlet updatesEnabled = false;\n\ntype GeoConfiguration = {\n skipPermissionRequests: boolean,\n};\n\ntype GeoOptions = {\n timeout?: number,\n maximumAge?: number,\n enableHighAccuracy?: boolean,\n distanceFilter: number,\n useSignificantChanges?: boolean,\n};\n\n/**\n * The Geolocation API extends the web spec:\n * https://developer.mozilla.org/en-US/docs/Web/API/Geolocation\n *\n * See https://facebook.github.io/react-native/docs/geolocation.html\n */\nconst Geolocation = {\n /*\n * Sets configuration options that will be used in all location requests.\n *\n * See https://facebook.github.io/react-native/docs/geolocation.html#setrnconfiguration\n *\n */\n setRNConfiguration: function(config: GeoConfiguration) {\n if (RCTLocationObserver.setConfiguration) {\n RCTLocationObserver.setConfiguration(config);\n }\n },\n\n /*\n * Request suitable Location permission based on the key configured on pList.\n *\n * See https://facebook.github.io/react-native/docs/geolocation.html#requestauthorization\n */\n requestAuthorization: function() {\n RCTLocationObserver.requestAuthorization();\n },\n\n /*\n * Invokes the success callback once with the latest location info.\n *\n * See https://facebook.github.io/react-native/docs/geolocation.html#getcurrentposition\n */\n getCurrentPosition: async function(\n geo_success: Function,\n geo_error?: Function,\n geo_options?: GeoOptions,\n ) {\n invariant(\n typeof geo_success === 'function',\n 'Must provide a valid geo_success callback.',\n );\n let hasPermission = true;\n // Supports Android's new permission model. For Android older devices,\n // it's always on.\n if (Platform.OS === 'android' && Platform.Version >= 23) {\n hasPermission = await PermissionsAndroid.check(\n PermissionsAndroid.PERMISSIONS.ACCESS_FINE_LOCATION,\n );\n if (!hasPermission) {\n const status = await PermissionsAndroid.request(\n PermissionsAndroid.PERMISSIONS.ACCESS_FINE_LOCATION,\n );\n hasPermission = status === PermissionsAndroid.RESULTS.GRANTED;\n }\n }\n if (hasPermission) {\n RCTLocationObserver.getCurrentPosition(\n geo_options || {},\n geo_success,\n geo_error || logError,\n );\n }\n },\n\n /*\n * Invokes the success callback whenever the location changes.\n *\n * See https://facebook.github.io/react-native/docs/geolocation.html#watchposition\n */\n watchPosition: function(\n success: Function,\n error?: Function,\n options?: GeoOptions,\n ): number {\n if (!updatesEnabled) {\n RCTLocationObserver.startObserving(options || {});\n updatesEnabled = true;\n }\n const watchID = subscriptions.length;\n subscriptions.push([\n LocationEventEmitter.addListener('geolocationDidChange', success),\n error\n ? LocationEventEmitter.addListener('geolocationError', error)\n : null,\n ]);\n return watchID;\n },\n\n clearWatch: function(watchID: number) {\n const sub = subscriptions[watchID];\n if (!sub) {\n // Silently exit when the watchID is invalid or already cleared\n // This is consistent with timers\n return;\n }\n\n sub[0].remove();\n // array element refinements not yet enabled in Flow\n const sub1 = sub[1];\n sub1 && sub1.remove();\n subscriptions[watchID] = undefined;\n let noWatchers = true;\n for (let ii = 0; ii < subscriptions.length; ii++) {\n if (subscriptions[ii]) {\n noWatchers = false; // still valid subscriptions\n }\n }\n if (noWatchers) {\n Geolocation.stopObserving();\n }\n },\n\n stopObserving: function() {\n if (updatesEnabled) {\n RCTLocationObserver.stopObserving();\n updatesEnabled = false;\n for (let ii = 0; ii < subscriptions.length; ii++) {\n const sub = subscriptions[ii];\n if (sub) {\n warning(false, 'Called stopObserving with existing subscriptions.');\n sub[0].remove();\n // array element refinements not yet enabled in Flow\n const sub1 = sub[1];\n sub1 && sub1.remove();\n }\n }\n subscriptions = [];\n }\n },\n};\n\nmodule.exports = Geolocation;\n","module.exports = require(\"regenerator-runtime\");\n","/**\n * Copyright (c) 2014-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n// This method of obtaining a reference to the global object needs to be\n// kept identical to the way it is obtained in runtime.js\nvar g = (function() {\n return this || (typeof self === \"object\" && self);\n})() || Function(\"return this\")();\n\n// Use `getOwnPropertyNames` because not all browsers support calling\n// `hasOwnProperty` on the global `self` object in a worker. See #183.\nvar hadRuntime = g.regeneratorRuntime &&\n Object.getOwnPropertyNames(g).indexOf(\"regeneratorRuntime\") >= 0;\n\n// Save the old regeneratorRuntime in case it needs to be restored later.\nvar oldRuntime = hadRuntime && g.regeneratorRuntime;\n\n// Force reevalutation of runtime.js.\ng.regeneratorRuntime = undefined;\n\nmodule.exports = require(\"./runtime\");\n\nif (hadRuntime) {\n // Restore the original runtime.\n g.regeneratorRuntime = oldRuntime;\n} else {\n // Remove the global property added by runtime.js.\n try {\n delete g.regeneratorRuntime;\n } catch(e) {\n g.regeneratorRuntime = undefined;\n }\n}\n","/**\n * Copyright (c) 2014-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n!(function(global) {\n \"use strict\";\n\n var Op = Object.prototype;\n var hasOwn = Op.hasOwnProperty;\n var undefined; // More compressible than void 0.\n var $Symbol = typeof Symbol === \"function\" ? Symbol : {};\n var iteratorSymbol = $Symbol.iterator || \"@@iterator\";\n var asyncIteratorSymbol = $Symbol.asyncIterator || \"@@asyncIterator\";\n var toStringTagSymbol = $Symbol.toStringTag || \"@@toStringTag\";\n\n var inModule = typeof module === \"object\";\n var runtime = global.regeneratorRuntime;\n if (runtime) {\n if (inModule) {\n // If regeneratorRuntime is defined globally and we're in a module,\n // make the exports object identical to regeneratorRuntime.\n module.exports = runtime;\n }\n // Don't bother evaluating the rest of this file if the runtime was\n // already defined globally.\n return;\n }\n\n // Define the runtime globally (as expected by generated code) as either\n // module.exports (if we're in a module) or a new, empty object.\n runtime = global.regeneratorRuntime = inModule ? module.exports : {};\n\n function wrap(innerFn, outerFn, self, tryLocsList) {\n // If outerFn provided and outerFn.prototype is a Generator, then outerFn.prototype instanceof Generator.\n var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator;\n var generator = Object.create(protoGenerator.prototype);\n var context = new Context(tryLocsList || []);\n\n // The ._invoke method unifies the implementations of the .next,\n // .throw, and .return methods.\n generator._invoke = makeInvokeMethod(innerFn, self, context);\n\n return generator;\n }\n runtime.wrap = wrap;\n\n // Try/catch helper to minimize deoptimizations. Returns a completion\n // record like context.tryEntries[i].completion. This interface could\n // have been (and was previously) designed to take a closure to be\n // invoked without arguments, but in all the cases we care about we\n // already have an existing method we want to call, so there's no need\n // to create a new function object. We can even get away with assuming\n // the method takes exactly one argument, since that happens to be true\n // in every case, so we don't have to touch the arguments object. The\n // only additional allocation required is the completion record, which\n // has a stable shape and so hopefully should be cheap to allocate.\n function tryCatch(fn, obj, arg) {\n try {\n return { type: \"normal\", arg: fn.call(obj, arg) };\n } catch (err) {\n return { type: \"throw\", arg: err };\n }\n }\n\n var GenStateSuspendedStart = \"suspendedStart\";\n var GenStateSuspendedYield = \"suspendedYield\";\n var GenStateExecuting = \"executing\";\n var GenStateCompleted = \"completed\";\n\n // Returning this object from the innerFn has the same effect as\n // breaking out of the dispatch switch statement.\n var ContinueSentinel = {};\n\n // Dummy constructor functions that we use as the .constructor and\n // .constructor.prototype properties for functions that return Generator\n // objects. For full spec compliance, you may wish to configure your\n // minifier not to mangle the names of these two functions.\n function Generator() {}\n function GeneratorFunction() {}\n function GeneratorFunctionPrototype() {}\n\n // This is a polyfill for %IteratorPrototype% for environments that\n // don't natively support it.\n var IteratorPrototype = {};\n IteratorPrototype[iteratorSymbol] = function () {\n return this;\n };\n\n var getProto = Object.getPrototypeOf;\n var NativeIteratorPrototype = getProto && getProto(getProto(values([])));\n if (NativeIteratorPrototype &&\n NativeIteratorPrototype !== Op &&\n hasOwn.call(NativeIteratorPrototype, iteratorSymbol)) {\n // This environment has a native %IteratorPrototype%; use it instead\n // of the polyfill.\n IteratorPrototype = NativeIteratorPrototype;\n }\n\n var Gp = GeneratorFunctionPrototype.prototype =\n Generator.prototype = Object.create(IteratorPrototype);\n GeneratorFunction.prototype = Gp.constructor = GeneratorFunctionPrototype;\n GeneratorFunctionPrototype.constructor = GeneratorFunction;\n GeneratorFunctionPrototype[toStringTagSymbol] =\n GeneratorFunction.displayName = \"GeneratorFunction\";\n\n // Helper for defining the .next, .throw, and .return methods of the\n // Iterator interface in terms of a single ._invoke method.\n function defineIteratorMethods(prototype) {\n [\"next\", \"throw\", \"return\"].forEach(function(method) {\n prototype[method] = function(arg) {\n return this._invoke(method, arg);\n };\n });\n }\n\n runtime.isGeneratorFunction = function(genFun) {\n var ctor = typeof genFun === \"function\" && genFun.constructor;\n return ctor\n ? ctor === GeneratorFunction ||\n // For the native GeneratorFunction constructor, the best we can\n // do is to check its .name property.\n (ctor.displayName || ctor.name) === \"GeneratorFunction\"\n : false;\n };\n\n runtime.mark = function(genFun) {\n if (Object.setPrototypeOf) {\n Object.setPrototypeOf(genFun, GeneratorFunctionPrototype);\n } else {\n genFun.__proto__ = GeneratorFunctionPrototype;\n if (!(toStringTagSymbol in genFun)) {\n genFun[toStringTagSymbol] = \"GeneratorFunction\";\n }\n }\n genFun.prototype = Object.create(Gp);\n return genFun;\n };\n\n // Within the body of any async function, `await x` is transformed to\n // `yield regeneratorRuntime.awrap(x)`, so that the runtime can test\n // `hasOwn.call(value, \"__await\")` to determine if the yielded value is\n // meant to be awaited.\n runtime.awrap = function(arg) {\n return { __await: arg };\n };\n\n function AsyncIterator(generator) {\n function invoke(method, arg, resolve, reject) {\n var record = tryCatch(generator[method], generator, arg);\n if (record.type === \"throw\") {\n reject(record.arg);\n } else {\n var result = record.arg;\n var value = result.value;\n if (value &&\n typeof value === \"object\" &&\n hasOwn.call(value, \"__await\")) {\n return Promise.resolve(value.__await).then(function(value) {\n invoke(\"next\", value, resolve, reject);\n }, function(err) {\n invoke(\"throw\", err, resolve, reject);\n });\n }\n\n return Promise.resolve(value).then(function(unwrapped) {\n // When a yielded Promise is resolved, its final value becomes\n // the .value of the Promise<{value,done}> result for the\n // current iteration.\n result.value = unwrapped;\n resolve(result);\n }, function(error) {\n // If a rejected Promise was yielded, throw the rejection back\n // into the async generator function so it can be handled there.\n return invoke(\"throw\", error, resolve, reject);\n });\n }\n }\n\n var previousPromise;\n\n function enqueue(method, arg) {\n function callInvokeWithMethodAndArg() {\n return new Promise(function(resolve, reject) {\n invoke(method, arg, resolve, reject);\n });\n }\n\n return previousPromise =\n // If enqueue has been called before, then we want to wait until\n // all previous Promises have been resolved before calling invoke,\n // so that results are always delivered in the correct order. If\n // enqueue has not been called before, then it is important to\n // call invoke immediately, without waiting on a callback to fire,\n // so that the async generator function has the opportunity to do\n // any necessary setup in a predictable way. This predictability\n // is why the Promise constructor synchronously invokes its\n // executor callback, and why async functions synchronously\n // execute code before the first await. Since we implement simple\n // async functions in terms of async generators, it is especially\n // important to get this right, even though it requires care.\n previousPromise ? previousPromise.then(\n callInvokeWithMethodAndArg,\n // Avoid propagating failures to Promises returned by later\n // invocations of the iterator.\n callInvokeWithMethodAndArg\n ) : callInvokeWithMethodAndArg();\n }\n\n // Define the unified helper method that is used to implement .next,\n // .throw, and .return (see defineIteratorMethods).\n this._invoke = enqueue;\n }\n\n defineIteratorMethods(AsyncIterator.prototype);\n AsyncIterator.prototype[asyncIteratorSymbol] = function () {\n return this;\n };\n runtime.AsyncIterator = AsyncIterator;\n\n // Note that simple async functions are implemented on top of\n // AsyncIterator objects; they just return a Promise for the value of\n // the final result produced by the iterator.\n runtime.async = function(innerFn, outerFn, self, tryLocsList) {\n var iter = new AsyncIterator(\n wrap(innerFn, outerFn, self, tryLocsList)\n );\n\n return runtime.isGeneratorFunction(outerFn)\n ? iter // If outerFn is a generator, return the full iterator.\n : iter.next().then(function(result) {\n return result.done ? result.value : iter.next();\n });\n };\n\n function makeInvokeMethod(innerFn, self, context) {\n var state = GenStateSuspendedStart;\n\n return function invoke(method, arg) {\n if (state === GenStateExecuting) {\n throw new Error(\"Generator is already running\");\n }\n\n if (state === GenStateCompleted) {\n if (method === \"throw\") {\n throw arg;\n }\n\n // Be forgiving, per 25.3.3.3.3 of the spec:\n // https://people.mozilla.org/~jorendorff/es6-draft.html#sec-generatorresume\n return doneResult();\n }\n\n context.method = method;\n context.arg = arg;\n\n while (true) {\n var delegate = context.delegate;\n if (delegate) {\n var delegateResult = maybeInvokeDelegate(delegate, context);\n if (delegateResult) {\n if (delegateResult === ContinueSentinel) continue;\n return delegateResult;\n }\n }\n\n if (context.method === \"next\") {\n // Setting context._sent for legacy support of Babel's\n // function.sent implementation.\n context.sent = context._sent = context.arg;\n\n } else if (context.method === \"throw\") {\n if (state === GenStateSuspendedStart) {\n state = GenStateCompleted;\n throw context.arg;\n }\n\n context.dispatchException(context.arg);\n\n } else if (context.method === \"return\") {\n context.abrupt(\"return\", context.arg);\n }\n\n state = GenStateExecuting;\n\n var record = tryCatch(innerFn, self, context);\n if (record.type === \"normal\") {\n // If an exception is thrown from innerFn, we leave state ===\n // GenStateExecuting and loop back for another invocation.\n state = context.done\n ? GenStateCompleted\n : GenStateSuspendedYield;\n\n if (record.arg === ContinueSentinel) {\n continue;\n }\n\n return {\n value: record.arg,\n done: context.done\n };\n\n } else if (record.type === \"throw\") {\n state = GenStateCompleted;\n // Dispatch the exception by looping back around to the\n // context.dispatchException(context.arg) call above.\n context.method = \"throw\";\n context.arg = record.arg;\n }\n }\n };\n }\n\n // Call delegate.iterator[context.method](context.arg) and handle the\n // result, either by returning a { value, done } result from the\n // delegate iterator, or by modifying context.method and context.arg,\n // setting context.delegate to null, and returning the ContinueSentinel.\n function maybeInvokeDelegate(delegate, context) {\n var method = delegate.iterator[context.method];\n if (method === undefined) {\n // A .throw or .return when the delegate iterator has no .throw\n // method always terminates the yield* loop.\n context.delegate = null;\n\n if (context.method === \"throw\") {\n if (delegate.iterator.return) {\n // If the delegate iterator has a return method, give it a\n // chance to clean up.\n context.method = \"return\";\n context.arg = undefined;\n maybeInvokeDelegate(delegate, context);\n\n if (context.method === \"throw\") {\n // If maybeInvokeDelegate(context) changed context.method from\n // \"return\" to \"throw\", let that override the TypeError below.\n return ContinueSentinel;\n }\n }\n\n context.method = \"throw\";\n context.arg = new TypeError(\n \"The iterator does not provide a 'throw' method\");\n }\n\n return ContinueSentinel;\n }\n\n var record = tryCatch(method, delegate.iterator, context.arg);\n\n if (record.type === \"throw\") {\n context.method = \"throw\";\n context.arg = record.arg;\n context.delegate = null;\n return ContinueSentinel;\n }\n\n var info = record.arg;\n\n if (! info) {\n context.method = \"throw\";\n context.arg = new TypeError(\"iterator result is not an object\");\n context.delegate = null;\n return ContinueSentinel;\n }\n\n if (info.done) {\n // Assign the result of the finished delegate to the temporary\n // variable specified by delegate.resultName (see delegateYield).\n context[delegate.resultName] = info.value;\n\n // Resume execution at the desired location (see delegateYield).\n context.next = delegate.nextLoc;\n\n // If context.method was \"throw\" but the delegate handled the\n // exception, let the outer generator proceed normally. If\n // context.method was \"next\", forget context.arg since it has been\n // \"consumed\" by the delegate iterator. If context.method was\n // \"return\", allow the original .return call to continue in the\n // outer generator.\n if (context.method !== \"return\") {\n context.method = \"next\";\n context.arg = undefined;\n }\n\n } else {\n // Re-yield the result returned by the delegate method.\n return info;\n }\n\n // The delegate iterator is finished, so forget it and continue with\n // the outer generator.\n context.delegate = null;\n return ContinueSentinel;\n }\n\n // Define Generator.prototype.{next,throw,return} in terms of the\n // unified ._invoke helper method.\n defineIteratorMethods(Gp);\n\n Gp[toStringTagSymbol] = \"Generator\";\n\n // A Generator should always return itself as the iterator object when the\n // @@iterator function is called on it. Some browsers' implementations of the\n // iterator prototype chain incorrectly implement this, causing the Generator\n // object to not be returned from this call. This ensures that doesn't happen.\n // See https://github.com/facebook/regenerator/issues/274 for more details.\n Gp[iteratorSymbol] = function() {\n return this;\n };\n\n Gp.toString = function() {\n return \"[object Generator]\";\n };\n\n function pushTryEntry(locs) {\n var entry = { tryLoc: locs[0] };\n\n if (1 in locs) {\n entry.catchLoc = locs[1];\n }\n\n if (2 in locs) {\n entry.finallyLoc = locs[2];\n entry.afterLoc = locs[3];\n }\n\n this.tryEntries.push(entry);\n }\n\n function resetTryEntry(entry) {\n var record = entry.completion || {};\n record.type = \"normal\";\n delete record.arg;\n entry.completion = record;\n }\n\n function Context(tryLocsList) {\n // The root entry object (effectively a try statement without a catch\n // or a finally block) gives us a place to store values thrown from\n // locations where there is no enclosing try statement.\n this.tryEntries = [{ tryLoc: \"root\" }];\n tryLocsList.forEach(pushTryEntry, this);\n this.reset(true);\n }\n\n runtime.keys = function(object) {\n var keys = [];\n for (var key in object) {\n keys.push(key);\n }\n keys.reverse();\n\n // Rather than returning an object with a next method, we keep\n // things simple and return the next function itself.\n return function next() {\n while (keys.length) {\n var key = keys.pop();\n if (key in object) {\n next.value = key;\n next.done = false;\n return next;\n }\n }\n\n // To avoid creating an additional object, we just hang the .value\n // and .done properties off the next function object itself. This\n // also ensures that the minifier will not anonymize the function.\n next.done = true;\n return next;\n };\n };\n\n function values(iterable) {\n if (iterable) {\n var iteratorMethod = iterable[iteratorSymbol];\n if (iteratorMethod) {\n return iteratorMethod.call(iterable);\n }\n\n if (typeof iterable.next === \"function\") {\n return iterable;\n }\n\n if (!isNaN(iterable.length)) {\n var i = -1, next = function next() {\n while (++i < iterable.length) {\n if (hasOwn.call(iterable, i)) {\n next.value = iterable[i];\n next.done = false;\n return next;\n }\n }\n\n next.value = undefined;\n next.done = true;\n\n return next;\n };\n\n return next.next = next;\n }\n }\n\n // Return an iterator with no values.\n return { next: doneResult };\n }\n runtime.values = values;\n\n function doneResult() {\n return { value: undefined, done: true };\n }\n\n Context.prototype = {\n constructor: Context,\n\n reset: function(skipTempReset) {\n this.prev = 0;\n this.next = 0;\n // Resetting context._sent for legacy support of Babel's\n // function.sent implementation.\n this.sent = this._sent = undefined;\n this.done = false;\n this.delegate = null;\n\n this.method = \"next\";\n this.arg = undefined;\n\n this.tryEntries.forEach(resetTryEntry);\n\n if (!skipTempReset) {\n for (var name in this) {\n // Not sure about the optimal order of these conditions:\n if (name.charAt(0) === \"t\" &&\n hasOwn.call(this, name) &&\n !isNaN(+name.slice(1))) {\n this[name] = undefined;\n }\n }\n }\n },\n\n stop: function() {\n this.done = true;\n\n var rootEntry = this.tryEntries[0];\n var rootRecord = rootEntry.completion;\n if (rootRecord.type === \"throw\") {\n throw rootRecord.arg;\n }\n\n return this.rval;\n },\n\n dispatchException: function(exception) {\n if (this.done) {\n throw exception;\n }\n\n var context = this;\n function handle(loc, caught) {\n record.type = \"throw\";\n record.arg = exception;\n context.next = loc;\n\n if (caught) {\n // If the dispatched exception was caught by a catch block,\n // then let that catch block handle the exception normally.\n context.method = \"next\";\n context.arg = undefined;\n }\n\n return !! caught;\n }\n\n for (var i = this.tryEntries.length - 1; i >= 0; --i) {\n var entry = this.tryEntries[i];\n var record = entry.completion;\n\n if (entry.tryLoc === \"root\") {\n // Exception thrown outside of any try block that could handle\n // it, so set the completion value of the entire function to\n // throw the exception.\n return handle(\"end\");\n }\n\n if (entry.tryLoc <= this.prev) {\n var hasCatch = hasOwn.call(entry, \"catchLoc\");\n var hasFinally = hasOwn.call(entry, \"finallyLoc\");\n\n if (hasCatch && hasFinally) {\n if (this.prev < entry.catchLoc) {\n return handle(entry.catchLoc, true);\n } else if (this.prev < entry.finallyLoc) {\n return handle(entry.finallyLoc);\n }\n\n } else if (hasCatch) {\n if (this.prev < entry.catchLoc) {\n return handle(entry.catchLoc, true);\n }\n\n } else if (hasFinally) {\n if (this.prev < entry.finallyLoc) {\n return handle(entry.finallyLoc);\n }\n\n } else {\n throw new Error(\"try statement without catch or finally\");\n }\n }\n }\n },\n\n abrupt: function(type, arg) {\n for (var i = this.tryEntries.length - 1; i >= 0; --i) {\n var entry = this.tryEntries[i];\n if (entry.tryLoc <= this.prev &&\n hasOwn.call(entry, \"finallyLoc\") &&\n this.prev < entry.finallyLoc) {\n var finallyEntry = entry;\n break;\n }\n }\n\n if (finallyEntry &&\n (type === \"break\" ||\n type === \"continue\") &&\n finallyEntry.tryLoc <= arg &&\n arg <= finallyEntry.finallyLoc) {\n // Ignore the finally entry if control is not jumping to a\n // location outside the try/catch block.\n finallyEntry = null;\n }\n\n var record = finallyEntry ? finallyEntry.completion : {};\n record.type = type;\n record.arg = arg;\n\n if (finallyEntry) {\n this.method = \"next\";\n this.next = finallyEntry.finallyLoc;\n return ContinueSentinel;\n }\n\n return this.complete(record);\n },\n\n complete: function(record, afterLoc) {\n if (record.type === \"throw\") {\n throw record.arg;\n }\n\n if (record.type === \"break\" ||\n record.type === \"continue\") {\n this.next = record.arg;\n } else if (record.type === \"return\") {\n this.rval = this.arg = record.arg;\n this.method = \"return\";\n this.next = \"end\";\n } else if (record.type === \"normal\" && afterLoc) {\n this.next = afterLoc;\n }\n\n return ContinueSentinel;\n },\n\n finish: function(finallyLoc) {\n for (var i = this.tryEntries.length - 1; i >= 0; --i) {\n var entry = this.tryEntries[i];\n if (entry.finallyLoc === finallyLoc) {\n this.complete(entry.completion, entry.afterLoc);\n resetTryEntry(entry);\n return ContinueSentinel;\n }\n }\n },\n\n \"catch\": function(tryLoc) {\n for (var i = this.tryEntries.length - 1; i >= 0; --i) {\n var entry = this.tryEntries[i];\n if (entry.tryLoc === tryLoc) {\n var record = entry.completion;\n if (record.type === \"throw\") {\n var thrown = record.arg;\n resetTryEntry(entry);\n }\n return thrown;\n }\n }\n\n // The context.catch method must only be called with a location\n // argument that corresponds to a known catch block.\n throw new Error(\"illegal catch attempt\");\n },\n\n delegateYield: function(iterable, resultName, nextLoc) {\n this.delegate = {\n iterator: values(iterable),\n resultName: resultName,\n nextLoc: nextLoc\n };\n\n if (this.method === \"next\") {\n // Deliberately forget the last sent value so that we don't\n // accidentally pass it on to the delegate.\n this.arg = undefined;\n }\n\n return ContinueSentinel;\n }\n };\n})(\n // In sloppy mode, unbound `this` refers to the global object, fallback to\n // Function constructor if we're in global strict mode. That is sadly a form\n // of indirect eval which violates Content Security Policy.\n (function() {\n return this || (typeof self === \"object\" && self);\n })() || Function(\"return this\")()\n);\n","/**\n * Copyright (c) 2015-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n * @flow strict\n */\n\n'use strict';\n\n/**\n * Small utility that can be used as an error handler. You cannot just pass\n * `console.error` as a failure callback - it's not properly bound. If passes an\n * `Error` object, it will print the message and stack.\n */\nconst logError = function(...args: $ReadOnlyArray) {\n if (args.length === 1 && args[0] instanceof Error) {\n const err = args[0];\n console.error('Error: \"' + err.message + '\". Stack:\\n' + err.stack);\n } else {\n console.error.apply(console, args);\n }\n};\n\nmodule.exports = logError;\n","/**\n * Copyright (c) 2015-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n * @flow\n */\n\n'use strict';\n\nconst NativeModules = require('NativeModules');\n\ntype Rationale = {\n title: string,\n message: string,\n};\n\ntype PermissionStatus = 'granted' | 'denied' | 'never_ask_again';\n/**\n * `PermissionsAndroid` provides access to Android M's new permissions model.\n *\n * See https://facebook.github.io/react-native/docs/permissionsandroid.html\n */\n\nclass PermissionsAndroid {\n PERMISSIONS: Object;\n RESULTS: Object;\n\n constructor() {\n /**\n * A list of specified \"dangerous\" permissions that require prompting the user\n */\n this.PERMISSIONS = {\n READ_CALENDAR: 'android.permission.READ_CALENDAR',\n WRITE_CALENDAR: 'android.permission.WRITE_CALENDAR',\n CAMERA: 'android.permission.CAMERA',\n READ_CONTACTS: 'android.permission.READ_CONTACTS',\n WRITE_CONTACTS: 'android.permission.WRITE_CONTACTS',\n GET_ACCOUNTS: 'android.permission.GET_ACCOUNTS',\n ACCESS_FINE_LOCATION: 'android.permission.ACCESS_FINE_LOCATION',\n ACCESS_COARSE_LOCATION: 'android.permission.ACCESS_COARSE_LOCATION',\n RECORD_AUDIO: 'android.permission.RECORD_AUDIO',\n READ_PHONE_STATE: 'android.permission.READ_PHONE_STATE',\n CALL_PHONE: 'android.permission.CALL_PHONE',\n READ_CALL_LOG: 'android.permission.READ_CALL_LOG',\n WRITE_CALL_LOG: 'android.permission.WRITE_CALL_LOG',\n ADD_VOICEMAIL: 'com.android.voicemail.permission.ADD_VOICEMAIL',\n USE_SIP: 'android.permission.USE_SIP',\n PROCESS_OUTGOING_CALLS: 'android.permission.PROCESS_OUTGOING_CALLS',\n BODY_SENSORS: 'android.permission.BODY_SENSORS',\n SEND_SMS: 'android.permission.SEND_SMS',\n RECEIVE_SMS: 'android.permission.RECEIVE_SMS',\n READ_SMS: 'android.permission.READ_SMS',\n RECEIVE_WAP_PUSH: 'android.permission.RECEIVE_WAP_PUSH',\n RECEIVE_MMS: 'android.permission.RECEIVE_MMS',\n READ_EXTERNAL_STORAGE: 'android.permission.READ_EXTERNAL_STORAGE',\n WRITE_EXTERNAL_STORAGE: 'android.permission.WRITE_EXTERNAL_STORAGE',\n };\n\n this.RESULTS = {\n GRANTED: 'granted',\n DENIED: 'denied',\n NEVER_ASK_AGAIN: 'never_ask_again',\n };\n }\n\n /**\n * DEPRECATED - use check\n *\n * Returns a promise resolving to a boolean value as to whether the specified\n * permissions has been granted\n *\n * @deprecated\n */\n checkPermission(permission: string): Promise {\n console.warn(\n '\"PermissionsAndroid.checkPermission\" is deprecated. Use \"PermissionsAndroid.check\" instead',\n );\n return NativeModules.PermissionsAndroid.checkPermission(permission);\n }\n\n /**\n * Returns a promise resolving to a boolean value as to whether the specified\n * permissions has been granted\n *\n * See https://facebook.github.io/react-native/docs/permissionsandroid.html#check\n */\n check(permission: string): Promise {\n return NativeModules.PermissionsAndroid.checkPermission(permission);\n }\n\n /**\n * DEPRECATED - use request\n *\n * Prompts the user to enable a permission and returns a promise resolving to a\n * boolean value indicating whether the user allowed or denied the request\n *\n * If the optional rationale argument is included (which is an object with a\n * `title` and `message`), this function checks with the OS whether it is\n * necessary to show a dialog explaining why the permission is needed\n * (https://developer.android.com/training/permissions/requesting.html#explain)\n * and then shows the system permission dialog\n *\n * @deprecated\n */\n async requestPermission(\n permission: string,\n rationale?: Rationale,\n ): Promise {\n console.warn(\n '\"PermissionsAndroid.requestPermission\" is deprecated. Use \"PermissionsAndroid.request\" instead',\n );\n const response = await this.request(permission, rationale);\n return response === this.RESULTS.GRANTED;\n }\n\n /**\n * Prompts the user to enable a permission and returns a promise resolving to a\n * string value indicating whether the user allowed or denied the request\n *\n * See https://facebook.github.io/react-native/docs/permissionsandroid.html#request\n */\n async request(\n permission: string,\n rationale?: Rationale,\n ): Promise {\n if (rationale) {\n const shouldShowRationale = await NativeModules.PermissionsAndroid.shouldShowRequestPermissionRationale(\n permission,\n );\n\n if (shouldShowRationale) {\n return new Promise((resolve, reject) => {\n NativeModules.DialogManagerAndroid.showAlert(\n rationale,\n () => reject(new Error('Error showing rationale')),\n () =>\n resolve(\n NativeModules.PermissionsAndroid.requestPermission(permission),\n ),\n );\n });\n }\n }\n return NativeModules.PermissionsAndroid.requestPermission(permission);\n }\n\n /**\n * Prompts the user to enable multiple permissions in the same dialog and\n * returns an object with the permissions as keys and strings as values\n * indicating whether the user allowed or denied the request\n *\n * See https://facebook.github.io/react-native/docs/permissionsandroid.html#requestmultiple\n */\n requestMultiple(\n permissions: Array,\n ): Promise<{[permission: string]: PermissionStatus}> {\n return NativeModules.PermissionsAndroid.requestMultiplePermissions(\n permissions,\n );\n }\n}\n\nPermissionsAndroid = new PermissionsAndroid();\n\nmodule.exports = PermissionsAndroid;\n","/**\n * Copyright (c) 2015-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n * @flow strict-local\n */\n\n'use strict';\n\nconst HeapCapture = {\n captureHeap: function(path: string) {\n let error = null;\n try {\n global.nativeCaptureHeap(path);\n console.log('HeapCapture.captureHeap succeeded: ' + path);\n } catch (e) {\n console.log('HeapCapture.captureHeap error: ' + e.toString());\n error = e.toString();\n }\n require('NativeModules').JSCHeapCapture.captureComplete(path, error);\n },\n};\n\nmodule.exports = HeapCapture;\n","/**\n * Copyright (c) 2015-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n * @flow strict-local\n */\n\n'use strict';\n\nconst SamplingProfiler = {\n poke: function(token: number): void {\n let error = null;\n let result = null;\n try {\n result = global.pokeSamplingProfiler();\n if (result === null) {\n console.log('The JSC Sampling Profiler has started');\n } else {\n console.log('The JSC Sampling Profiler has stopped');\n }\n } catch (e) {\n console.log(\n 'Error occurred when restarting Sampling Profiler: ' + e.toString(),\n );\n error = e.toString();\n }\n\n const {JSCSamplingProfiler} = require('NativeModules');\n JSCSamplingProfiler.operationComplete(token, result, error);\n },\n};\n\nmodule.exports = SamplingProfiler;\n","/**\n * Copyright (c) 2015-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n * @flow\n */\n\n'use strict';\n\nconst invariant = require('fbjs/lib/invariant');\n\nconst levelsMap = {\n log: 'log',\n info: 'info',\n warn: 'warn',\n error: 'error',\n fatal: 'error',\n};\n\nlet warningHandler: ?(Array) => void = null;\n\nconst RCTLog = {\n // level one of log, info, warn, error, mustfix\n logIfNoNativeHook(level: string, ...args: Array): void {\n // We already printed in the native console, so only log here if using a js debugger\n if (typeof global.nativeLoggingHook === 'undefined') {\n RCTLog.logToConsole(level, ...args);\n } else {\n // Report native warnings to YellowBox\n if (warningHandler && level === 'warn') {\n warningHandler(...args);\n }\n }\n },\n\n // Log to console regardless of nativeLoggingHook\n logToConsole(level: string, ...args: Array): void {\n const logFn = levelsMap[level];\n invariant(\n logFn,\n 'Level \"' + level + '\" not one of ' + Object.keys(levelsMap).toString(),\n );\n\n console[logFn](...args);\n },\n\n setWarningHandler(handler: typeof warningHandler): void {\n warningHandler = handler;\n },\n};\n\nmodule.exports = RCTLog;\n","/**\n * Copyright (c) 2015-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n * @flow strict-local\n */\n\n'use strict';\n\nconst RCTDeviceEventEmitter = require('RCTDeviceEventEmitter');\n\n/**\n * Deprecated - subclass NativeEventEmitter to create granular event modules instead of\n * adding all event listeners directly to RCTNativeAppEventEmitter.\n */\nconst RCTNativeAppEventEmitter = RCTDeviceEventEmitter;\nmodule.exports = RCTNativeAppEventEmitter;\n","/**\n * Copyright (c) 2015-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @flow\n * @format\n */\n'use strict';\n\nconst Systrace = require('Systrace');\n\nconst infoLog = require('infoLog');\nconst performanceNow =\n global.nativeQPLTimestamp ||\n global.nativePerformanceNow ||\n require('fbjs/lib/performanceNow');\n\ntype Timespan = {\n description?: string,\n totalTime?: number,\n startTime?: number,\n endTime?: number,\n};\n\nlet timespans: {[key: string]: Timespan} = {};\nlet extras: {[key: string]: any} = {};\nconst cookies: {[key: string]: number} = {};\n\nconst PRINT_TO_CONSOLE: false = false; // Type as false to prevent accidentally committing `true`;\n\n/**\n * This is meant to collect and log performance data in production, which means\n * it needs to have minimal overhead.\n */\nconst PerformanceLogger = {\n addTimespan(key: string, lengthInMs: number, description?: string) {\n if (timespans[key]) {\n if (__DEV__) {\n infoLog(\n 'PerformanceLogger: Attempting to add a timespan that already exists ',\n key,\n );\n }\n return;\n }\n\n timespans[key] = {\n description: description,\n totalTime: lengthInMs,\n };\n },\n\n startTimespan(key: string, description?: string) {\n if (timespans[key]) {\n if (__DEV__) {\n infoLog(\n 'PerformanceLogger: Attempting to start a timespan that already exists ',\n key,\n );\n }\n return;\n }\n\n timespans[key] = {\n description: description,\n startTime: performanceNow(),\n };\n cookies[key] = Systrace.beginAsyncEvent(key);\n if (PRINT_TO_CONSOLE) {\n infoLog('PerformanceLogger.js', 'start: ' + key);\n }\n },\n\n stopTimespan(key: string) {\n const timespan = timespans[key];\n if (!timespan || !timespan.startTime) {\n if (__DEV__) {\n infoLog(\n 'PerformanceLogger: Attempting to end a timespan that has not started ',\n key,\n );\n }\n return;\n }\n if (timespan.endTime) {\n if (__DEV__) {\n infoLog(\n 'PerformanceLogger: Attempting to end a timespan that has already ended ',\n key,\n );\n }\n return;\n }\n\n timespan.endTime = performanceNow();\n timespan.totalTime = timespan.endTime - (timespan.startTime || 0);\n if (PRINT_TO_CONSOLE) {\n infoLog('PerformanceLogger.js', 'end: ' + key);\n }\n\n Systrace.endAsyncEvent(key, cookies[key]);\n delete cookies[key];\n },\n\n clear() {\n timespans = {};\n extras = {};\n if (PRINT_TO_CONSOLE) {\n infoLog('PerformanceLogger.js', 'clear');\n }\n },\n\n clearCompleted() {\n for (const key in timespans) {\n if (timespans[key].totalTime) {\n delete timespans[key];\n }\n }\n extras = {};\n if (PRINT_TO_CONSOLE) {\n infoLog('PerformanceLogger.js', 'clearCompleted');\n }\n },\n\n clearExceptTimespans(keys: Array) {\n timespans = Object.keys(timespans).reduce(function(previous, key) {\n if (keys.indexOf(key) !== -1) {\n previous[key] = timespans[key];\n }\n return previous;\n }, {});\n extras = {};\n if (PRINT_TO_CONSOLE) {\n infoLog('PerformanceLogger.js', 'clearExceptTimespans', keys);\n }\n },\n\n currentTimestamp() {\n return performanceNow();\n },\n\n getTimespans() {\n return timespans;\n },\n\n hasTimespan(key: string) {\n return !!timespans[key];\n },\n\n logTimespans() {\n for (const key in timespans) {\n if (timespans[key].totalTime) {\n infoLog(key + ': ' + timespans[key].totalTime + 'ms');\n }\n }\n },\n\n addTimespans(newTimespans: Array, labels: Array) {\n for (let ii = 0, l = newTimespans.length; ii < l; ii += 2) {\n const label = labels[ii / 2];\n PerformanceLogger.addTimespan(\n label,\n newTimespans[ii + 1] - newTimespans[ii],\n label,\n );\n }\n },\n\n setExtra(key: string, value: any) {\n if (extras[key]) {\n if (__DEV__) {\n infoLog(\n 'PerformanceLogger: Attempting to set an extra that already exists ',\n {key, currentValue: extras[key], attemptedValue: value},\n );\n }\n return;\n }\n extras[key] = value;\n },\n\n getExtras() {\n return extras;\n },\n\n logExtras() {\n infoLog(extras);\n },\n};\n\nmodule.exports = PerformanceLogger;\n","/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n */\n\n'use strict';\n\n/**\n * Intentional info-level logging for clear separation from ad-hoc console debug logging.\n */\nfunction infoLog(...args) {\n return console.log(...args);\n}\n\nmodule.exports = infoLog;\n","/**\n * Copyright (c) 2015-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n * @flow strict-local\n */\n\n'use strict';\n\nconst JSDevSupport = require('NativeModules').JSDevSupport;\nconst ReactNative = require('ReactNative');\n\nconst JSDevSupportModule = {\n getJSHierarchy: function(tag: number) {\n try {\n const {\n computeComponentStackForErrorReporting,\n } = ReactNative.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;\n const componentStack = computeComponentStackForErrorReporting(tag);\n if (!componentStack) {\n JSDevSupport.onFailure(\n JSDevSupport.ERROR_CODE_VIEW_NOT_FOUND,\n \"Component stack doesn't exist for tag \" + tag,\n );\n } else {\n JSDevSupport.onSuccess(componentStack);\n }\n } catch (e) {\n JSDevSupport.onFailure(JSDevSupport.ERROR_CODE_EXCEPTION, e.message);\n }\n },\n};\n\nmodule.exports = JSDevSupportModule;\n","/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n * @flow strict-local\n */\n\n'use strict';\n\nimport type {\n ReactNativeBaseComponentViewConfig,\n ViewConfigGetter,\n} from './ReactNativeTypes';\n\nconst invariant = require('fbjs/lib/invariant');\n\n// Event configs\nconst customBubblingEventTypes = {};\nconst customDirectEventTypes = {};\nconst eventTypes = {};\n\nexports.customBubblingEventTypes = customBubblingEventTypes;\nexports.customDirectEventTypes = customDirectEventTypes;\nexports.eventTypes = eventTypes;\n\nconst viewConfigCallbacks = new Map();\nconst viewConfigs = new Map();\n\nfunction processEventTypes(\n viewConfig: ReactNativeBaseComponentViewConfig<>,\n): void {\n const {bubblingEventTypes, directEventTypes} = viewConfig;\n\n if (__DEV__) {\n if (bubblingEventTypes != null && directEventTypes != null) {\n for (const topLevelType in directEventTypes) {\n invariant(\n bubblingEventTypes[topLevelType] == null,\n 'Event cannot be both direct and bubbling: %s',\n topLevelType,\n );\n }\n }\n }\n\n if (bubblingEventTypes != null) {\n for (const topLevelType in bubblingEventTypes) {\n if (customBubblingEventTypes[topLevelType] == null) {\n eventTypes[topLevelType] = customBubblingEventTypes[topLevelType] =\n bubblingEventTypes[topLevelType];\n }\n }\n }\n\n if (directEventTypes != null) {\n for (const topLevelType in directEventTypes) {\n if (customDirectEventTypes[topLevelType] == null) {\n eventTypes[topLevelType] = customDirectEventTypes[topLevelType] =\n directEventTypes[topLevelType];\n }\n }\n }\n}\n\n/**\n * Registers a native view/component by name.\n * A callback is provided to load the view config from UIManager.\n * The callback is deferred until the view is actually rendered.\n * This is done to avoid causing Prepack deopts.\n */\nexports.register = function(name: string, callback: ViewConfigGetter): string {\n invariant(\n !viewConfigCallbacks.has(name),\n 'Tried to register two views with the same name %s',\n name,\n );\n viewConfigCallbacks.set(name, callback);\n return name;\n};\n\n/**\n * Retrieves a config for the specified view.\n * If this is the first time the view has been used,\n * This configuration will be lazy-loaded from UIManager.\n */\nexports.get = function(name: string): ReactNativeBaseComponentViewConfig<> {\n let viewConfig;\n if (!viewConfigs.has(name)) {\n const callback = viewConfigCallbacks.get(name);\n if (typeof callback !== 'function') {\n invariant(\n false,\n 'View config not found for name %s.%s',\n name,\n typeof name[0] === 'string' && /[a-z]/.test(name[0])\n ? ' Make sure to start component names with a capital letter.'\n : '',\n );\n }\n viewConfigCallbacks.set(name, null);\n viewConfig = callback();\n processEventTypes(viewConfig);\n viewConfigs.set(name, viewConfig);\n } else {\n viewConfig = viewConfigs.get(name);\n }\n invariant(viewConfig, 'View config not found for name %s', name);\n return viewConfig;\n};\n","/**\n * Copyright (c) 2015-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n * @flow\n */\n\n'use strict';\n\nconst BatchedBridge = require('BatchedBridge');\n\nconst RCTEventEmitter = {\n register(eventEmitter: any) {\n BatchedBridge.registerCallableModule('RCTEventEmitter', eventEmitter);\n },\n};\n\nmodule.exports = RCTEventEmitter;\n","/**\n * Copyright (c) 2015-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n * @flow\n */\n\n'use strict';\n\n/*\n * @returns {bool} true if different, false if equal\n */\nconst deepDiffer = function(\n one: any,\n two: any,\n maxDepth: number = -1,\n): boolean {\n if (maxDepth === 0) {\n return true;\n }\n if (one === two) {\n // Short circuit on identical object references instead of traversing them.\n return false;\n }\n if (typeof one === 'function' && typeof two === 'function') {\n // We consider all functions equal\n return false;\n }\n if (typeof one !== 'object' || one === null) {\n // Primitives can be directly compared\n return one !== two;\n }\n if (typeof two !== 'object' || two === null) {\n // We know they are different because the previous case would have triggered\n // otherwise.\n return true;\n }\n if (one.constructor !== two.constructor) {\n return true;\n }\n if (Array.isArray(one)) {\n // We know two is also an array because the constructors are equal\n const len = one.length;\n if (two.length !== len) {\n return true;\n }\n for (let ii = 0; ii < len; ii++) {\n if (deepDiffer(one[ii], two[ii], maxDepth - 1)) {\n return true;\n }\n }\n } else {\n for (const key in one) {\n if (deepDiffer(one[key], two[key], maxDepth - 1)) {\n return true;\n }\n }\n for (const twoKey in two) {\n // The only case we haven't checked yet is keys that are in two but aren't\n // in one, which means they are different.\n if (one[twoKey] === undefined && two[twoKey] !== undefined) {\n return true;\n }\n }\n }\n return false;\n};\n\nmodule.exports = deepDiffer;\n","/**\n * Copyright (c) 2015-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n *\n * This class is responsible for coordinating the \"focused\"\n * state for TextInputs. All calls relating to the keyboard\n * should be funneled through here\n *\n * @format\n * @flow strict-local\n */\n\n'use strict';\n\nconst Platform = require('Platform');\nconst UIManager = require('UIManager');\n\nlet currentlyFocusedID: ?number = null;\nconst inputs = new Set();\n\n/**\n * Returns the ID of the currently focused text field, if one exists\n * If no text field is focused it returns null\n */\nfunction currentlyFocusedField(): ?number {\n return currentlyFocusedID;\n}\n\n/**\n * @param {number} TextInputID id of the text field to focus\n * Focuses the specified text field\n * noop if the text field was already focused\n */\nfunction focusTextInput(textFieldID: ?number) {\n if (currentlyFocusedID !== textFieldID && textFieldID !== null) {\n currentlyFocusedID = textFieldID;\n if (Platform.OS === 'ios') {\n UIManager.focus(textFieldID);\n } else if (Platform.OS === 'android') {\n UIManager.dispatchViewManagerCommand(\n textFieldID,\n UIManager.AndroidTextInput.Commands.focusTextInput,\n null,\n );\n }\n }\n}\n\n/**\n * @param {number} textFieldID id of the text field to unfocus\n * Unfocuses the specified text field\n * noop if it wasn't focused\n */\nfunction blurTextInput(textFieldID: ?number) {\n if (currentlyFocusedID === textFieldID && textFieldID !== null) {\n currentlyFocusedID = null;\n if (Platform.OS === 'ios') {\n UIManager.blur(textFieldID);\n } else if (Platform.OS === 'android') {\n UIManager.dispatchViewManagerCommand(\n textFieldID,\n UIManager.AndroidTextInput.Commands.blurTextInput,\n null,\n );\n }\n }\n}\n\nfunction registerInput(textFieldID: number) {\n inputs.add(textFieldID);\n}\n\nfunction unregisterInput(textFieldID: number) {\n inputs.delete(textFieldID);\n}\n\nfunction isTextInput(textFieldID: number) {\n return inputs.has(textFieldID);\n}\n\nmodule.exports = {\n currentlyFocusedField,\n focusTextInput,\n blurTextInput,\n registerInput,\n unregisterInput,\n isTextInput,\n};\n","'use strict';\n\nif (process.env.NODE_ENV === 'production') {\n module.exports = require('./cjs/scheduler.production.min.js');\n} else {\n module.exports = require('./cjs/scheduler.development.js');\n}\n","/** @license React v16.6.1\n * scheduler.production.min.js\n *\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';Object.defineProperty(exports,\"__esModule\",{value:!0});var d=null,f=!1,h=3,k=-1,l=-1,m=!1,n=!1;function p(){if(!m){var a=d.expirationTime;n?q():n=!0;r(t,a)}}\nfunction u(){var a=d,b=d.next;if(d===b)d=null;else{var c=d.previous;d=c.next=b;b.previous=c}a.next=a.previous=null;c=a.callback;b=a.expirationTime;a=a.priorityLevel;var e=h,Q=l;h=a;l=b;try{var g=c()}finally{h=e,l=Q}if(\"function\"===typeof g)if(g={callback:g,priorityLevel:a,expirationTime:b,next:null,previous:null},null===d)d=g.next=g.previous=g;else{c=null;a=d;do{if(a.expirationTime>=b){c=a;break}a=a.next}while(a!==d);null===c?c=d:c===d&&(d=g,p());b=c.previous;b.next=c.previous=g;g.next=c;g.previous=\nb}}function v(){if(-1===k&&null!==d&&1===d.priorityLevel){m=!0;try{do u();while(null!==d&&1===d.priorityLevel)}finally{m=!1,null!==d?p():n=!1}}}function t(a){m=!0;var b=f;f=a;try{if(a)for(;null!==d;){var c=exports.unstable_now();if(d.expirationTime<=c){do u();while(null!==d&&d.expirationTime<=c)}else break}else if(null!==d){do u();while(null!==d&&!w())}}finally{m=!1,f=b,null!==d?p():n=!1,v()}}\nvar x=Date,y=\"function\"===typeof setTimeout?setTimeout:void 0,z=\"function\"===typeof clearTimeout?clearTimeout:void 0,A=\"function\"===typeof requestAnimationFrame?requestAnimationFrame:void 0,B=\"function\"===typeof cancelAnimationFrame?cancelAnimationFrame:void 0,C,D;function E(a){C=A(function(b){z(D);a(b)});D=y(function(){B(C);a(exports.unstable_now())},100)}\nif(\"object\"===typeof performance&&\"function\"===typeof performance.now){var F=performance;exports.unstable_now=function(){return F.now()}}else exports.unstable_now=function(){return x.now()};var r,q,w;\nif(\"undefined\"!==typeof window&&window._schedMock){var G=window._schedMock;r=G[0];q=G[1];w=G[2]}else if(\"undefined\"===typeof window||\"function\"!==typeof window.addEventListener){var H=null,I=-1,J=function(a,b){if(null!==H){var c=H;H=null;try{I=b,c(a)}finally{I=-1}}};r=function(a,b){-1!==I?setTimeout(r,0,a,b):(H=a,setTimeout(J,b,!0,b),setTimeout(J,1073741823,!1,1073741823))};q=function(){H=null};w=function(){return!1};exports.unstable_now=function(){return-1===I?0:I}}else{\"undefined\"!==typeof console&&\n(\"function\"!==typeof A&&console.error(\"This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills\"),\"function\"!==typeof B&&console.error(\"This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills\"));var K=null,L=!1,M=-1,N=!1,O=!1,P=0,R=33,S=33;w=function(){return P<=exports.unstable_now()};var T=\"__reactIdleCallback$\"+Math.random().toString(36).slice(2);\nwindow.addEventListener(\"message\",function(a){if(a.source===window&&a.data===T){L=!1;a=K;var b=M;K=null;M=-1;var c=exports.unstable_now(),e=!1;if(0>=P-c)if(-1!==b&&b<=c)e=!0;else{N||(N=!0,E(U));K=a;M=b;return}if(null!==a){O=!0;try{a(e)}finally{O=!1}}}},!1);var U=function(a){if(null!==K){E(U);var b=a-P+S;bb&&(b=8),S=bb?window.postMessage(T,\"*\"):N||(N=!0,E(U))};q=function(){K=null;L=!1;M=-1}}\nexports.unstable_ImmediatePriority=1;exports.unstable_UserBlockingPriority=2;exports.unstable_NormalPriority=3;exports.unstable_IdlePriority=5;exports.unstable_LowPriority=4;exports.unstable_runWithPriority=function(a,b){switch(a){case 1:case 2:case 3:case 4:case 5:break;default:a=3}var c=h,e=k;h=a;k=exports.unstable_now();try{return b()}finally{h=c,k=e,v()}};\nexports.unstable_scheduleCallback=function(a,b){var c=-1!==k?k:exports.unstable_now();if(\"object\"===typeof b&&null!==b&&\"number\"===typeof b.timeout)b=c+b.timeout;else switch(h){case 1:b=c+-1;break;case 2:b=c+250;break;case 5:b=c+1073741823;break;case 4:b=c+1E4;break;default:b=c+5E3}a={callback:a,priorityLevel:h,expirationTime:b,next:null,previous:null};if(null===d)d=a.next=a.previous=a,p();else{c=null;var e=d;do{if(e.expirationTime>b){c=e;break}e=e.next}while(e!==d);null===c?c=d:c===d&&(d=a,p());\nb=c.previous;b.next=c.previous=a;a.next=c;a.previous=b}return a};exports.unstable_cancelCallback=function(a){var b=a.next;if(null!==b){if(b===a)d=null;else{a===d&&(d=b);var c=a.previous;c.next=b;b.previous=c}a.next=a.previous=null}};exports.unstable_wrapCallback=function(a){var b=h;return function(){var c=h,e=k;h=b;k=exports.unstable_now();try{return a.apply(this,arguments)}finally{h=c,k=e,v()}}};exports.unstable_getCurrentPriorityLevel=function(){return h};\nexports.unstable_shouldYield=function(){return!f&&(null!==d&&d.expirationTime\n createReactNativeComponentClass(uiViewClassName, () =>\n getNativeComponentAttributes(uiViewClassName),\n );\n\nmodule.exports = requireNativeComponent;\n","/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n * @flow strict-local\n */\n\n'use strict';\n\nimport type {ViewConfigGetter} from './ReactNativeTypes';\n\nconst {register} = require('ReactNativeViewConfigRegistry');\n\n/**\n * Creates a renderable ReactNative host component.\n * Use this method for view configs that are loaded from UIManager.\n * Use createReactNativeComponentClass() for view configs defined within JavaScript.\n *\n * @param {string} config iOS View configuration.\n * @private\n */\nconst createReactNativeComponentClass = function(\n name: string,\n callback: ViewConfigGetter,\n): string {\n return register(name, callback);\n};\n\nmodule.exports = createReactNativeComponentClass;\n","/**\n * Copyright (c) 2015-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @flow\n * @format\n */\n\n'use strict';\n\nconst ReactNativeStyleAttributes = require('ReactNativeStyleAttributes');\nconst UIManager = require('UIManager');\n\nconst insetsDiffer = require('insetsDiffer');\nconst matricesDiffer = require('matricesDiffer');\nconst pointsDiffer = require('pointsDiffer');\nconst processColor = require('processColor');\nconst resolveAssetSource = require('resolveAssetSource');\nconst sizesDiffer = require('sizesDiffer');\nconst invariant = require('fbjs/lib/invariant');\nconst warning = require('fbjs/lib/warning');\n\nfunction getNativeComponentAttributes(uiViewClassName: string) {\n const viewConfig = UIManager[uiViewClassName];\n\n invariant(\n viewConfig != null && viewConfig.NativeProps != null,\n 'requireNativeComponent: \"%s\" was not found in the UIManager.',\n uiViewClassName,\n );\n\n // TODO: This seems like a whole lot of runtime initialization for every\n // native component that can be either avoided or simplified.\n let {baseModuleName, bubblingEventTypes, directEventTypes} = viewConfig;\n let nativeProps = viewConfig.NativeProps;\n while (baseModuleName) {\n const baseModule = UIManager[baseModuleName];\n if (!baseModule) {\n warning(false, 'Base module \"%s\" does not exist', baseModuleName);\n baseModuleName = null;\n } else {\n bubblingEventTypes = {\n ...baseModule.bubblingEventTypes,\n ...bubblingEventTypes,\n };\n directEventTypes = {\n ...baseModule.directEventTypes,\n ...directEventTypes,\n };\n nativeProps = {\n ...baseModule.NativeProps,\n ...nativeProps,\n };\n baseModuleName = baseModule.baseModuleName;\n }\n }\n\n const validAttributes = {};\n\n for (const key in nativeProps) {\n const typeName = nativeProps[key];\n const diff = getDifferForType(typeName);\n const process = getProcessorForType(typeName);\n\n validAttributes[key] =\n diff == null && process == null ? true : {diff, process};\n }\n\n // Unfortunately, the current setup declares style properties as top-level\n // props. This makes it so we allow style properties in the `style` prop.\n // TODO: Move style properties into a `style` prop and disallow them as\n // top-level props on the native side.\n validAttributes.style = ReactNativeStyleAttributes;\n\n Object.assign(viewConfig, {\n uiViewClassName,\n validAttributes,\n bubblingEventTypes,\n directEventTypes,\n });\n\n if (!hasAttachedDefaultEventTypes) {\n attachDefaultEventTypes(viewConfig);\n hasAttachedDefaultEventTypes = true;\n }\n\n return viewConfig;\n}\n\n// TODO: Figure out how this makes sense. We're using a global boolean to only\n// initialize this on the first eagerly initialized native component.\nlet hasAttachedDefaultEventTypes = false;\nfunction attachDefaultEventTypes(viewConfig: any) {\n // This is supported on UIManager platforms (ex: Android),\n // as lazy view managers are not implemented for all platforms.\n // See [UIManager] for details on constants and implementations.\n if (UIManager.ViewManagerNames) {\n // Lazy view managers enabled.\n viewConfig = merge(viewConfig, UIManager.getDefaultEventTypes());\n } else {\n viewConfig.bubblingEventTypes = merge(\n viewConfig.bubblingEventTypes,\n UIManager.genericBubblingEventTypes,\n );\n viewConfig.directEventTypes = merge(\n viewConfig.directEventTypes,\n UIManager.genericDirectEventTypes,\n );\n }\n}\n\n// TODO: Figure out how to avoid all this runtime initialization cost.\nfunction merge(destination: ?Object, source: ?Object): ?Object {\n if (!source) {\n return destination;\n }\n if (!destination) {\n return source;\n }\n\n for (const key in source) {\n if (!source.hasOwnProperty(key)) {\n continue;\n }\n\n let sourceValue = source[key];\n if (destination.hasOwnProperty(key)) {\n const destinationValue = destination[key];\n if (\n typeof sourceValue === 'object' &&\n typeof destinationValue === 'object'\n ) {\n sourceValue = merge(destinationValue, sourceValue);\n }\n }\n destination[key] = sourceValue;\n }\n return destination;\n}\n\nfunction getDifferForType(\n typeName: string,\n): ?(prevProp: any, nextProp: any) => boolean {\n switch (typeName) {\n // iOS Types\n case 'CATransform3D':\n return matricesDiffer;\n case 'CGPoint':\n return pointsDiffer;\n case 'CGSize':\n return sizesDiffer;\n case 'UIEdgeInsets':\n return insetsDiffer;\n // Android Types\n // (not yet implemented)\n }\n return null;\n}\n\nfunction getProcessorForType(typeName: string): ?(nextProp: any) => any {\n switch (typeName) {\n // iOS Types\n case 'CGColor':\n case 'UIColor':\n return processColor;\n case 'CGColorArray':\n case 'UIColorArray':\n return processColorArray;\n case 'CGImage':\n case 'UIImage':\n case 'RCTImageSource':\n return resolveAssetSource;\n // Android Types\n case 'Color':\n return processColor;\n case 'ColorArray':\n return processColorArray;\n }\n return null;\n}\n\nfunction processColorArray(colors: ?Array): ?Array {\n return colors == null ? null : colors.map(processColor);\n}\n\nmodule.exports = getNativeComponentAttributes;\n","/**\n * Copyright (c) 2015-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n * @flow\n */\n\n'use strict';\n\ntype Inset = {\n top: ?number,\n left: ?number,\n right: ?number,\n bottom: ?number,\n};\n\nconst dummyInsets = {\n top: undefined,\n left: undefined,\n right: undefined,\n bottom: undefined,\n};\n\nconst insetsDiffer = function(one: ?Inset, two: ?Inset): boolean {\n one = one || dummyInsets;\n two = two || dummyInsets;\n return (\n one !== two &&\n (one.top !== two.top ||\n one.left !== two.left ||\n one.right !== two.right ||\n one.bottom !== two.bottom)\n );\n};\n\nmodule.exports = insetsDiffer;\n","/**\n * Copyright (c) 2015-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n */\n\n'use strict';\n\n/**\n * Unrolls an array comparison specially for matrices. Prioritizes\n * checking of indices that are most likely to change so that the comparison\n * bails as early as possible.\n *\n * @param {MatrixMath.Matrix} one First matrix.\n * @param {MatrixMath.Matrix} two Second matrix.\n * @return {boolean} Whether or not the two matrices differ.\n */\nconst matricesDiffer = function(one, two) {\n if (one === two) {\n return false;\n }\n return (\n !one ||\n !two ||\n one[12] !== two[12] ||\n one[13] !== two[13] ||\n one[14] !== two[14] ||\n one[5] !== two[5] ||\n one[10] !== two[10] ||\n one[1] !== two[1] ||\n one[2] !== two[2] ||\n one[3] !== two[3] ||\n one[4] !== two[4] ||\n one[6] !== two[6] ||\n one[7] !== two[7] ||\n one[8] !== two[8] ||\n one[9] !== two[9] ||\n one[11] !== two[11] ||\n one[15] !== two[15]\n );\n};\n\nmodule.exports = matricesDiffer;\n","/**\n * Copyright (c) 2015-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n * @flow\n */\n\n'use strict';\n\ntype Point = {\n x: ?number,\n y: ?number,\n};\n\nconst dummyPoint = {x: undefined, y: undefined};\n\nconst pointsDiffer = function(one: ?Point, two: ?Point): boolean {\n one = one || dummyPoint;\n two = two || dummyPoint;\n return one !== two && (one.x !== two.x || one.y !== two.y);\n};\n\nmodule.exports = pointsDiffer;\n","/**\n * Copyright (c) 2015-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n *\n * Resolves an asset into a `source` for `Image`.\n *\n * @format\n * @flow\n */\n\n'use strict';\n\nconst AssetRegistry = require('AssetRegistry');\nconst AssetSourceResolver = require('AssetSourceResolver');\n\nimport type {ResolvedAssetSource} from 'AssetSourceResolver';\n\nlet _customSourceTransformer, _serverURL, _scriptURL;\n\nlet _sourceCodeScriptURL: ?string;\nfunction getSourceCodeScriptURL(): ?string {\n if (_sourceCodeScriptURL) {\n return _sourceCodeScriptURL;\n }\n\n let sourceCode =\n global.nativeExtensions && global.nativeExtensions.SourceCode;\n if (!sourceCode) {\n const NativeModules = require('NativeModules');\n sourceCode = NativeModules && NativeModules.SourceCode;\n }\n _sourceCodeScriptURL = sourceCode.scriptURL;\n return _sourceCodeScriptURL;\n}\n\nfunction getDevServerURL(): ?string {\n if (_serverURL === undefined) {\n const sourceCodeScriptURL = getSourceCodeScriptURL();\n const match =\n sourceCodeScriptURL && sourceCodeScriptURL.match(/^https?:\\/\\/.*?\\//);\n if (match) {\n // jsBundle was loaded from network\n _serverURL = match[0];\n } else {\n // jsBundle was loaded from file\n _serverURL = null;\n }\n }\n return _serverURL;\n}\n\nfunction _coerceLocalScriptURL(scriptURL: ?string): ?string {\n if (scriptURL) {\n if (scriptURL.startsWith('assets://')) {\n // android: running from within assets, no offline path to use\n return null;\n }\n scriptURL = scriptURL.substring(0, scriptURL.lastIndexOf('/') + 1);\n if (!scriptURL.includes('://')) {\n // Add file protocol in case we have an absolute file path and not a URL.\n // This shouldn't really be necessary. scriptURL should be a URL.\n scriptURL = 'file://' + scriptURL;\n }\n }\n return scriptURL;\n}\n\nfunction getScriptURL(): ?string {\n if (_scriptURL === undefined) {\n _scriptURL = _coerceLocalScriptURL(getSourceCodeScriptURL());\n }\n return _scriptURL;\n}\n\nfunction setCustomSourceTransformer(\n transformer: (resolver: AssetSourceResolver) => ResolvedAssetSource,\n): void {\n _customSourceTransformer = transformer;\n}\n\n/**\n * `source` is either a number (opaque type returned by require('./foo.png'))\n * or an `ImageSource` like { uri: '' }\n */\nfunction resolveAssetSource(source: any): ?ResolvedAssetSource {\n if (typeof source === 'object') {\n return source;\n }\n\n const asset = AssetRegistry.getAssetByID(source);\n if (!asset) {\n return null;\n }\n\n const resolver = new AssetSourceResolver(\n getDevServerURL(),\n getScriptURL(),\n asset,\n );\n if (_customSourceTransformer) {\n return _customSourceTransformer(resolver);\n }\n return resolver.defaultAsset();\n}\n\nmodule.exports = resolveAssetSource;\nmodule.exports.pickScale = AssetSourceResolver.pickScale;\nmodule.exports.setCustomSourceTransformer = setCustomSourceTransformer;\n","/**\n * Copyright (c) 2015-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @flow strict\n * @format\n */\n'use strict';\n\nexport type PackagerAsset = {\n +__packager_asset: boolean,\n +fileSystemLocation: string,\n +httpServerLocation: string,\n +width: ?number,\n +height: ?number,\n +scales: Array,\n +hash: string,\n +name: string,\n +type: string,\n};\n\nconst assets: Array = [];\n\nfunction registerAsset(asset: PackagerAsset): number {\n // `push` returns new array length, so the first asset will\n // get id 1 (not 0) to make the value truthy\n return assets.push(asset);\n}\n\nfunction getAssetByID(assetId: number): PackagerAsset {\n return assets[assetId - 1];\n}\n\nmodule.exports = {registerAsset, getAssetByID};\n","/**\n * Copyright (c) 2015-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @flow\n * @format\n */\n'use strict';\n\nexport type ResolvedAssetSource = {|\n +__packager_asset: boolean,\n +width: ?number,\n +height: ?number,\n +uri: string,\n +scale: number,\n|};\n\nimport type {PackagerAsset} from 'AssetRegistry';\n\nconst PixelRatio = require('PixelRatio');\nconst Platform = require('Platform');\n\nconst assetPathUtils = require('../../local-cli/bundle/assetPathUtils');\nconst invariant = require('fbjs/lib/invariant');\n\n/**\n * Returns a path like 'assets/AwesomeModule/icon@2x.png'\n */\nfunction getScaledAssetPath(asset): string {\n const scale = AssetSourceResolver.pickScale(asset.scales, PixelRatio.get());\n const scaleSuffix = scale === 1 ? '' : '@' + scale + 'x';\n const assetDir = assetPathUtils.getBasePath(asset);\n return assetDir + '/' + asset.name + scaleSuffix + '.' + asset.type;\n}\n\n/**\n * Returns a path like 'drawable-mdpi/icon.png'\n */\nfunction getAssetPathInDrawableFolder(asset): string {\n const scale = AssetSourceResolver.pickScale(asset.scales, PixelRatio.get());\n const drawbleFolder = assetPathUtils.getAndroidResourceFolderName(\n asset,\n scale,\n );\n const fileName = assetPathUtils.getAndroidResourceIdentifier(asset);\n return drawbleFolder + '/' + fileName + '.' + asset.type;\n}\n\nclass AssetSourceResolver {\n serverUrl: ?string;\n // where the jsbundle is being run from\n jsbundleUrl: ?string;\n // the asset to resolve\n asset: PackagerAsset;\n\n constructor(serverUrl: ?string, jsbundleUrl: ?string, asset: PackagerAsset) {\n this.serverUrl = serverUrl;\n this.jsbundleUrl = jsbundleUrl;\n this.asset = asset;\n }\n\n isLoadedFromServer(): boolean {\n return !!this.serverUrl;\n }\n\n isLoadedFromFileSystem(): boolean {\n return !!(this.jsbundleUrl && this.jsbundleUrl.startsWith('file://'));\n }\n\n defaultAsset(): ResolvedAssetSource {\n if (this.isLoadedFromServer()) {\n return this.assetServerURL();\n }\n\n if (Platform.OS === 'android') {\n return this.isLoadedFromFileSystem()\n ? this.drawableFolderInBundle()\n : this.resourceIdentifierWithoutScale();\n } else {\n return this.scaledAssetURLNearBundle();\n }\n }\n\n /**\n * Returns an absolute URL which can be used to fetch the asset\n * from the devserver\n */\n assetServerURL(): ResolvedAssetSource {\n invariant(!!this.serverUrl, 'need server to load from');\n return this.fromSource(\n this.serverUrl +\n getScaledAssetPath(this.asset) +\n '?platform=' +\n Platform.OS +\n '&hash=' +\n this.asset.hash,\n );\n }\n\n /**\n * Resolves to just the scaled asset filename\n * E.g. 'assets/AwesomeModule/icon@2x.png'\n */\n scaledAssetPath(): ResolvedAssetSource {\n return this.fromSource(getScaledAssetPath(this.asset));\n }\n\n /**\n * Resolves to where the bundle is running from, with a scaled asset filename\n * E.g. 'file:///sdcard/bundle/assets/AwesomeModule/icon@2x.png'\n */\n scaledAssetURLNearBundle(): ResolvedAssetSource {\n const path = this.jsbundleUrl || 'file://';\n return this.fromSource(path + getScaledAssetPath(this.asset));\n }\n\n /**\n * The default location of assets bundled with the app, located by\n * resource identifier\n * The Android resource system picks the correct scale.\n * E.g. 'assets_awesomemodule_icon'\n */\n resourceIdentifierWithoutScale(): ResolvedAssetSource {\n invariant(\n Platform.OS === 'android',\n 'resource identifiers work on Android',\n );\n return this.fromSource(\n assetPathUtils.getAndroidResourceIdentifier(this.asset),\n );\n }\n\n /**\n * If the jsbundle is running from a sideload location, this resolves assets\n * relative to its location\n * E.g. 'file:///sdcard/AwesomeModule/drawable-mdpi/icon.png'\n */\n drawableFolderInBundle(): ResolvedAssetSource {\n const path = this.jsbundleUrl || 'file://';\n return this.fromSource(path + getAssetPathInDrawableFolder(this.asset));\n }\n\n fromSource(source: string): ResolvedAssetSource {\n return {\n __packager_asset: true,\n width: this.asset.width,\n height: this.asset.height,\n uri: source,\n scale: AssetSourceResolver.pickScale(this.asset.scales, PixelRatio.get()),\n };\n }\n\n static pickScale(scales: Array, deviceScale: number): number {\n // Packager guarantees that `scales` array is sorted\n for (let i = 0; i < scales.length; i++) {\n if (scales[i] >= deviceScale) {\n return scales[i];\n }\n }\n\n // If nothing matches, device scale is larger than any available\n // scales, so we return the biggest one. Unless the array is empty,\n // in which case we default to 1\n return scales[scales.length - 1] || 1;\n }\n}\n\nmodule.exports = AssetSourceResolver;\n","/**\n * Copyright (c) 2015-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n * @flow strict\n */\n\n'use strict';\n\nimport type {PackagerAsset} from '../../Libraries/Image/AssetRegistry';\n\n/**\n * FIXME: using number to represent discrete scale numbers is fragile in essence because of\n * floating point numbers imprecision.\n */\nfunction getAndroidAssetSuffix(scale: number): string {\n switch (scale) {\n case 0.75:\n return 'ldpi';\n case 1:\n return 'mdpi';\n case 1.5:\n return 'hdpi';\n case 2:\n return 'xhdpi';\n case 3:\n return 'xxhdpi';\n case 4:\n return 'xxxhdpi';\n }\n throw new Error('no such scale');\n}\n\n// See https://developer.android.com/guide/topics/resources/drawable-resource.html\nconst drawableFileTypes = new Set([\n 'gif',\n 'jpeg',\n 'jpg',\n 'png',\n 'svg',\n 'webp',\n 'xml',\n]);\n\nfunction getAndroidResourceFolderName(asset: PackagerAsset, scale: number) {\n if (!drawableFileTypes.has(asset.type)) {\n return 'raw';\n }\n var suffix = getAndroidAssetSuffix(scale);\n if (!suffix) {\n throw new Error(\n \"Don't know which android drawable suffix to use for asset: \" +\n JSON.stringify(asset),\n );\n }\n const androidFolder = 'drawable-' + suffix;\n return androidFolder;\n}\n\nfunction getAndroidResourceIdentifier(asset: PackagerAsset) {\n var folderPath = getBasePath(asset);\n return (folderPath + '/' + asset.name)\n .toLowerCase()\n .replace(/\\//g, '_') // Encode folder structure in file name\n .replace(/([^a-z0-9_])/g, '') // Remove illegal chars\n .replace(/^assets_/, ''); // Remove \"assets_\" prefix\n}\n\nfunction getBasePath(asset: PackagerAsset) {\n var basePath = asset.httpServerLocation;\n if (basePath[0] === '/') {\n basePath = basePath.substr(1);\n }\n return basePath;\n}\n\nmodule.exports = {\n getAndroidAssetSuffix: getAndroidAssetSuffix,\n getAndroidResourceFolderName: getAndroidResourceFolderName,\n getAndroidResourceIdentifier: getAndroidResourceIdentifier,\n getBasePath: getBasePath,\n};\n","/**\n * Copyright (c) 2015-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @flow\n * @format\n */\n\n'use strict';\n\nconst React = require('React');\n\nconst requireNativeComponent = require('requireNativeComponent');\n\nimport type {NativeComponent} from 'ReactNative';\nimport type {ViewProps} from 'ViewPropTypes';\n\nconst AndroidProgressBar = requireNativeComponent('AndroidProgressBar');\n\ntype Props = $ReadOnly<{|\n ...ViewProps,\n\n /**\n * Style of the ProgressBar and whether it shows indeterminate progress (e.g. spinner).\n *\n * `indeterminate` can only be false if `styleAttr` is Horizontal, and requires a\n * `progress` value.\n */\n ...\n | {|\n styleAttr: 'Horizontal',\n indeterminate: false,\n progress: number,\n |}\n | {|\n typeAttr:\n | 'Horizontal'\n | 'Normal'\n | 'Small'\n | 'Large'\n | 'Inverse'\n | 'SmallInverse'\n | 'LargeInverse',\n indeterminate: true,\n |},\n /**\n * Whether to show the ProgressBar (true, the default) or hide it (false).\n */\n animating?: ?boolean,\n /**\n * Color of the progress bar.\n */\n color?: ?string,\n /**\n * Used to locate this view in end-to-end tests.\n */\n testID?: ?string,\n|}>;\n\n/**\n * React component that wraps the Android-only `ProgressBar`. This component is\n * used to indicate that the app is loading or there is activity in the app.\n *\n * Example:\n *\n * ```\n * render: function() {\n * var progressBar =\n * \n * \n * ;\n\n * return (\n * \n * );\n * },\n * ```\n */\nconst ProgressBarAndroid = (\n props: Props,\n forwardedRef: ?React.Ref<'AndroidProgressBar'>,\n) => {\n return ;\n};\n\n// $FlowFixMe - TODO T29156721 `React.forwardRef` is not defined in Flow, yet.\nconst ProgressBarAndroidToExport = React.forwardRef(ProgressBarAndroid);\n\nProgressBarAndroidToExport.defaultProps = {\n styleAttr: 'Normal',\n indeterminate: true,\n animating: true,\n};\n\nmodule.exports = (ProgressBarAndroidToExport: Class>);\n","/**\n * Copyright (c) 2015-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n */\n\n'use strict';\n\nconst Color = require('art/core/color');\nconst Path = require('ARTSerializablePath');\nconst Transform = require('art/core/transform');\n\nconst React = require('React');\nconst PropTypes = require('prop-types');\nconst ReactNativeViewAttributes = require('ReactNativeViewAttributes');\n\nconst createReactNativeComponentClass = require('createReactNativeComponentClass');\nconst merge = require('merge');\nconst invariant = require('fbjs/lib/invariant');\n\n// Diff Helpers\n\nfunction arrayDiffer(a, b) {\n if (a == null || b == null) {\n return true;\n }\n if (a.length !== b.length) {\n return true;\n }\n for (let i = 0; i < a.length; i++) {\n if (a[i] !== b[i]) {\n return true;\n }\n }\n return false;\n}\n\nfunction fontAndLinesDiffer(a, b) {\n if (a === b) {\n return false;\n }\n if (a.font !== b.font) {\n if (a.font === null) {\n return true;\n }\n if (b.font === null) {\n return true;\n }\n\n if (\n a.font.fontFamily !== b.font.fontFamily ||\n a.font.fontSize !== b.font.fontSize ||\n a.font.fontWeight !== b.font.fontWeight ||\n a.font.fontStyle !== b.font.fontStyle\n ) {\n return true;\n }\n }\n return arrayDiffer(a.lines, b.lines);\n}\n\n// Native Attributes\n\nconst SurfaceViewAttributes = merge(ReactNativeViewAttributes.UIView, {\n // This should contain pixel information such as width, height and\n // resolution to know what kind of buffer needs to be allocated.\n // Currently we rely on UIViews and style to figure that out.\n});\n\nconst NodeAttributes = {\n transform: {diff: arrayDiffer},\n opacity: true,\n};\n\nconst GroupAttributes = merge(NodeAttributes, {\n clipping: {diff: arrayDiffer},\n});\n\nconst RenderableAttributes = merge(NodeAttributes, {\n fill: {diff: arrayDiffer},\n stroke: {diff: arrayDiffer},\n strokeWidth: true,\n strokeCap: true,\n strokeJoin: true,\n strokeDash: {diff: arrayDiffer},\n});\n\nconst ShapeAttributes = merge(RenderableAttributes, {\n d: {diff: arrayDiffer},\n});\n\nconst TextAttributes = merge(RenderableAttributes, {\n alignment: true,\n frame: {diff: fontAndLinesDiffer},\n path: {diff: arrayDiffer},\n});\n\n// Native Components\n\nconst NativeSurfaceView = createReactNativeComponentClass(\n 'ARTSurfaceView',\n () => ({\n validAttributes: SurfaceViewAttributes,\n uiViewClassName: 'ARTSurfaceView',\n }),\n);\n\nconst NativeGroup = createReactNativeComponentClass('ARTGroup', () => ({\n validAttributes: GroupAttributes,\n uiViewClassName: 'ARTGroup',\n}));\n\nconst NativeShape = createReactNativeComponentClass('ARTShape', () => ({\n validAttributes: ShapeAttributes,\n uiViewClassName: 'ARTShape',\n}));\n\nconst NativeText = createReactNativeComponentClass('ARTText', () => ({\n validAttributes: TextAttributes,\n uiViewClassName: 'ARTText',\n}));\n\n// Utilities\n\nfunction childrenAsString(children) {\n if (!children) {\n return '';\n }\n if (typeof children === 'string') {\n return children;\n }\n if (children.length) {\n return children.join('\\n');\n }\n return '';\n}\n\n// Surface - Root node of all ART\n\nclass Surface extends React.Component {\n static childContextTypes = {\n isInSurface: PropTypes.bool,\n };\n\n getChildContext() {\n return {isInSurface: true};\n }\n\n render() {\n const height = extractNumber(this.props.height, 0);\n const width = extractNumber(this.props.width, 0);\n\n return (\n \n {this.props.children}\n \n );\n }\n}\n\n// Node Props\n\n// TODO: The desktop version of ART has title and cursor. We should have\n// accessibility support here too even though hovering doesn't work.\n\nfunction extractNumber(value, defaultValue) {\n if (value == null) {\n return defaultValue;\n }\n return +value;\n}\n\nconst pooledTransform = new Transform();\n\nfunction extractTransform(props) {\n const scaleX =\n props.scaleX != null ? props.scaleX : props.scale != null ? props.scale : 1;\n const scaleY =\n props.scaleY != null ? props.scaleY : props.scale != null ? props.scale : 1;\n\n pooledTransform\n .transformTo(1, 0, 0, 1, 0, 0)\n .move(props.x || 0, props.y || 0)\n .rotate(props.rotation || 0, props.originX, props.originY)\n .scale(scaleX, scaleY, props.originX, props.originY);\n\n if (props.transform != null) {\n pooledTransform.transform(props.transform);\n }\n\n return [\n pooledTransform.xx,\n pooledTransform.yx,\n pooledTransform.xy,\n pooledTransform.yy,\n pooledTransform.x,\n pooledTransform.y,\n ];\n}\n\nfunction extractOpacity(props) {\n // TODO: visible === false should also have no hit detection\n if (props.visible === false) {\n return 0;\n }\n if (props.opacity == null) {\n return 1;\n }\n return +props.opacity;\n}\n\n// Groups\n\n// Note: ART has a notion of width and height on Group but AFAIK it's a noop in\n// ReactART.\n\nclass Group extends React.Component {\n static contextTypes = {\n isInSurface: PropTypes.bool.isRequired,\n };\n\n render() {\n const props = this.props;\n invariant(\n this.context.isInSurface,\n 'ART: must be a child of a ',\n );\n return (\n \n {this.props.children}\n \n );\n }\n}\n\nclass ClippingRectangle extends React.Component {\n render() {\n const props = this.props;\n const x = extractNumber(props.x, 0);\n const y = extractNumber(props.y, 0);\n const w = extractNumber(props.width, 0);\n const h = extractNumber(props.height, 0);\n const clipping = [x, y, w, h];\n // The current clipping API requires x and y to be ignored in the transform\n const propsExcludingXAndY = merge(props);\n delete propsExcludingXAndY.x;\n delete propsExcludingXAndY.y;\n return (\n \n {this.props.children}\n \n );\n }\n}\n\n// Renderables\n\nconst SOLID_COLOR = 0;\nconst LINEAR_GRADIENT = 1;\nconst RADIAL_GRADIENT = 2;\nconst PATTERN = 3;\n\nfunction insertColorIntoArray(color, targetArray, atIndex) {\n const c = new Color(color);\n targetArray[atIndex + 0] = c.red / 255;\n targetArray[atIndex + 1] = c.green / 255;\n targetArray[atIndex + 2] = c.blue / 255;\n targetArray[atIndex + 3] = c.alpha;\n}\n\nfunction insertColorsIntoArray(stops, targetArray, atIndex) {\n let i = 0;\n if ('length' in stops) {\n while (i < stops.length) {\n insertColorIntoArray(stops[i], targetArray, atIndex + i * 4);\n i++;\n }\n } else {\n for (const offset in stops) {\n insertColorIntoArray(stops[offset], targetArray, atIndex + i * 4);\n i++;\n }\n }\n return atIndex + i * 4;\n}\n\nfunction insertOffsetsIntoArray(stops, targetArray, atIndex, multi, reverse) {\n let offsetNumber;\n let i = 0;\n if ('length' in stops) {\n while (i < stops.length) {\n offsetNumber = (i / (stops.length - 1)) * multi;\n targetArray[atIndex + i] = reverse ? 1 - offsetNumber : offsetNumber;\n i++;\n }\n } else {\n for (const offsetString in stops) {\n offsetNumber = +offsetString * multi;\n targetArray[atIndex + i] = reverse ? 1 - offsetNumber : offsetNumber;\n i++;\n }\n }\n return atIndex + i;\n}\n\nfunction insertColorStopsIntoArray(stops, targetArray, atIndex) {\n const lastIndex = insertColorsIntoArray(stops, targetArray, atIndex);\n insertOffsetsIntoArray(stops, targetArray, lastIndex, 1, false);\n}\n\nfunction insertDoubleColorStopsIntoArray(stops, targetArray, atIndex) {\n let lastIndex = insertColorsIntoArray(stops, targetArray, atIndex);\n lastIndex = insertColorsIntoArray(stops, targetArray, lastIndex);\n lastIndex = insertOffsetsIntoArray(stops, targetArray, lastIndex, 0.5, false);\n insertOffsetsIntoArray(stops, targetArray, lastIndex, 0.5, true);\n}\n\nfunction applyBoundingBoxToBrushData(brushData, props) {\n const type = brushData[0];\n const width = +props.width;\n const height = +props.height;\n if (type === LINEAR_GRADIENT) {\n brushData[1] *= width;\n brushData[2] *= height;\n brushData[3] *= width;\n brushData[4] *= height;\n } else if (type === RADIAL_GRADIENT) {\n brushData[1] *= width;\n brushData[2] *= height;\n brushData[3] *= width;\n brushData[4] *= height;\n brushData[5] *= width;\n brushData[6] *= height;\n } else if (type === PATTERN) {\n // todo\n }\n}\n\nfunction extractBrush(colorOrBrush, props) {\n if (colorOrBrush == null) {\n return null;\n }\n if (colorOrBrush._brush) {\n if (colorOrBrush._bb) {\n // The legacy API for Gradients allow for the bounding box to be used\n // as a convenience for specifying gradient positions. This should be\n // deprecated. It's not properly implemented in canvas mode. ReactART\n // doesn't handle update to the bounding box correctly. That's why we\n // mutate this so that if it's reused, we reuse the same resolved box.\n applyBoundingBoxToBrushData(colorOrBrush._brush, props);\n colorOrBrush._bb = false;\n }\n return colorOrBrush._brush;\n }\n const c = new Color(colorOrBrush);\n return [SOLID_COLOR, c.red / 255, c.green / 255, c.blue / 255, c.alpha];\n}\n\nfunction extractColor(color) {\n if (color == null) {\n return null;\n }\n const c = new Color(color);\n return [c.red / 255, c.green / 255, c.blue / 255, c.alpha];\n}\n\nfunction extractStrokeCap(strokeCap) {\n switch (strokeCap) {\n case 'butt':\n return 0;\n case 'square':\n return 2;\n default:\n return 1; // round\n }\n}\n\nfunction extractStrokeJoin(strokeJoin) {\n switch (strokeJoin) {\n case 'miter':\n return 0;\n case 'bevel':\n return 2;\n default:\n return 1; // round\n }\n}\n\n// Shape\n\n// Note: ART has a notion of width and height on Shape but AFAIK it's a noop in\n// ReactART.\n\nclass Shape extends React.Component {\n render() {\n const props = this.props;\n const path = props.d || childrenAsString(props.children);\n const d = (path instanceof Path ? path : new Path(path)).toJSON();\n return (\n \n );\n }\n}\n\n// Text\n\nconst cachedFontObjectsFromString = {};\n\nconst fontFamilyPrefix = /^[\\s\"']*/;\nconst fontFamilySuffix = /[\\s\"']*$/;\n\nfunction extractSingleFontFamily(fontFamilyString) {\n // ART on the web allows for multiple font-families to be specified.\n // For compatibility, we extract the first font-family, hoping\n // we'll get a match.\n return fontFamilyString\n .split(',')[0]\n .replace(fontFamilyPrefix, '')\n .replace(fontFamilySuffix, '');\n}\n\nfunction parseFontString(font) {\n if (cachedFontObjectsFromString.hasOwnProperty(font)) {\n return cachedFontObjectsFromString[font];\n }\n const regexp = /^\\s*((?:(?:normal|bold|italic)\\s+)*)(?:(\\d+(?:\\.\\d+)?)[ptexm\\%]*(?:\\s*\\/.*?)?\\s+)?\\s*\\\"?([^\\\"]*)/i;\n const match = regexp.exec(font);\n if (!match) {\n return null;\n }\n const fontFamily = extractSingleFontFamily(match[3]);\n const fontSize = +match[2] || 12;\n const isBold = /bold/.exec(match[1]);\n const isItalic = /italic/.exec(match[1]);\n cachedFontObjectsFromString[font] = {\n fontFamily: fontFamily,\n fontSize: fontSize,\n fontWeight: isBold ? 'bold' : 'normal',\n fontStyle: isItalic ? 'italic' : 'normal',\n };\n return cachedFontObjectsFromString[font];\n}\n\nfunction extractFont(font) {\n if (font == null) {\n return null;\n }\n if (typeof font === 'string') {\n return parseFontString(font);\n }\n const fontFamily = extractSingleFontFamily(font.fontFamily);\n const fontSize = +font.fontSize || 12;\n const fontWeight =\n font.fontWeight != null ? font.fontWeight.toString() : '400';\n return {\n // Normalize\n fontFamily: fontFamily,\n fontSize: fontSize,\n fontWeight: fontWeight,\n fontStyle: font.fontStyle,\n };\n}\n\nconst newLine = /\\n/g;\nfunction extractFontAndLines(font, text) {\n return {font: extractFont(font), lines: text.split(newLine)};\n}\n\nfunction extractAlignment(alignment) {\n switch (alignment) {\n case 'right':\n return 1;\n case 'center':\n return 2;\n default:\n return 0;\n }\n}\n\nclass Text extends React.Component {\n render() {\n const props = this.props;\n const path = props.path;\n const textPath = path\n ? (path instanceof Path ? path : new Path(path)).toJSON()\n : null;\n const textFrame = extractFontAndLines(\n props.font,\n childrenAsString(props.children),\n );\n return (\n \n );\n }\n}\n\n// Declarative fill type objects - API design not finalized\n\nfunction LinearGradient(stops, x1, y1, x2, y2) {\n const type = LINEAR_GRADIENT;\n\n if (arguments.length < 5) {\n const angle = ((x1 == null ? 270 : x1) * Math.PI) / 180;\n\n let x = Math.cos(angle);\n let y = -Math.sin(angle);\n const l = (Math.abs(x) + Math.abs(y)) / 2;\n\n x *= l;\n y *= l;\n\n x1 = 0.5 - x;\n x2 = 0.5 + x;\n y1 = 0.5 - y;\n y2 = 0.5 + y;\n this._bb = true;\n } else {\n this._bb = false;\n }\n\n const brushData = [type, +x1, +y1, +x2, +y2];\n insertColorStopsIntoArray(stops, brushData, 5);\n this._brush = brushData;\n}\n\nfunction RadialGradient(stops, fx, fy, rx, ry, cx, cy) {\n if (ry == null) {\n ry = rx;\n }\n if (cx == null) {\n cx = fx;\n }\n if (cy == null) {\n cy = fy;\n }\n if (fx == null) {\n // As a convenience we allow the whole radial gradient to cover the\n // bounding box. We should consider dropping this API.\n fx = fy = rx = ry = cx = cy = 0.5;\n this._bb = true;\n } else {\n this._bb = false;\n }\n // The ART API expects the radial gradient to be repeated at the edges.\n // To simulate this we render the gradient twice as large and add double\n // color stops. Ideally this API would become more restrictive so that this\n // extra work isn't needed.\n const brushData = [RADIAL_GRADIENT, +fx, +fy, +rx * 2, +ry * 2, +cx, +cy];\n insertDoubleColorStopsIntoArray(stops, brushData, 7);\n this._brush = brushData;\n}\n\nfunction Pattern(url, width, height, left, top) {\n this._brush = [PATTERN, url, +left || 0, +top || 0, +width, +height];\n}\n\nconst ReactART = {\n LinearGradient: LinearGradient,\n RadialGradient: RadialGradient,\n Pattern: Pattern,\n Transform: Transform,\n Path: Path,\n Surface: Surface,\n Group: Group,\n ClippingRectangle: ClippingRectangle,\n Shape: Shape,\n Text: Text,\n};\n\nmodule.exports = ReactART;\n","var colors = {\n\tmaroon: '#800000', red: '#ff0000', orange: '#ffA500', yellow: '#ffff00', olive: '#808000',\n\tpurple: '#800080', fuchsia: \"#ff00ff\", white: '#ffffff', lime: '#00ff00', green: '#008000',\n\tnavy: '#000080', blue: '#0000ff', aqua: '#00ffff', teal: '#008080',\n\tblack: '#000000', silver: '#c0c0c0', gray: '#808080'\n};\n\nvar map = function(array, fn){\n\tvar results = [];\n\tfor (var i = 0, l = array.length; i < l; i++)\n\t\tresults[i] = fn(array[i], i);\n\treturn results;\n};\n\nvar Color = function(color, type){\n\t\n\tif (color.isColor){\n\t\t\n\t\tthis.red = color.red;\n\t\tthis.green = color.green;\n\t\tthis.blue = color.blue;\n\t\tthis.alpha = color.alpha;\n\n\t} else {\n\t\t\n\t\tvar namedColor = colors[color];\n\t\tif (namedColor){\n\t\t\tcolor = namedColor;\n\t\t\ttype = 'hex';\n\t\t}\n\n\t\tswitch (typeof color){\n\t\t\tcase 'string': if (!type) type = (type = color.match(/^rgb|^hsb|^hsl/)) ? type[0] : 'hex'; break;\n\t\t\tcase 'object': type = type || 'rgb'; color = color.toString(); break;\n\t\t\tcase 'number': type = 'hex'; color = color.toString(16); break;\n\t\t}\n\n\t\tcolor = Color['parse' + type.toUpperCase()](color);\n\t\tthis.red = color[0];\n\t\tthis.green = color[1];\n\t\tthis.blue = color[2];\n\t\tthis.alpha = color[3];\n\t}\n\t\n\tthis.isColor = true;\n\n};\n\nvar limit = function(number, min, max){\n\treturn Math.min(max, Math.max(min, number));\n};\n\nvar listMatch = /([-.\\d]+\\%?)\\s*,\\s*([-.\\d]+\\%?)\\s*,\\s*([-.\\d]+\\%?)\\s*,?\\s*([-.\\d]*\\%?)/;\nvar hexMatch = /^#?([a-f0-9]{1,2})([a-f0-9]{1,2})([a-f0-9]{1,2})([a-f0-9]{0,2})$/i;\n\nColor.parseRGB = function(color){\n\treturn map(color.match(listMatch).slice(1), function(bit, i){\n\t\tif (bit) bit = parseFloat(bit) * (bit[bit.length - 1] == '%' ? 2.55 : 1);\n\t\treturn (i < 3) ? Math.round(((bit %= 256) < 0) ? bit + 256 : bit) : limit(((bit === '') ? 1 : Number(bit)), 0, 1);\n\t});\n};\n\t\nColor.parseHEX = function(color){\n\tif (color.length == 1) color = color + color + color;\n\treturn map(color.match(hexMatch).slice(1), function(bit, i){\n\t\tif (i == 3) return (bit) ? parseInt(bit, 16) / 255 : 1;\n\t\treturn parseInt((bit.length == 1) ? bit + bit : bit, 16);\n\t});\n};\n\t\nColor.parseHSB = function(color){\n\tvar hsb = map(color.match(listMatch).slice(1), function(bit, i){\n\t\tif (bit) bit = parseFloat(bit);\n\t\tif (i === 0) return Math.round(((bit %= 360) < 0) ? (bit + 360) : bit);\n\t\telse if (i < 3) return limit(Math.round(bit), 0, 100);\n\t\telse return limit(((bit === '') ? 1 : Number(bit)), 0, 1);\n\t});\n\t\n\tvar a = hsb[3];\n\tvar br = Math.round(hsb[2] / 100 * 255);\n\tif (hsb[1] == 0) return [br, br, br, a];\n\t\t\n\tvar hue = hsb[0];\n\tvar f = hue % 60;\n\tvar p = Math.round((hsb[2] * (100 - hsb[1])) / 10000 * 255);\n\tvar q = Math.round((hsb[2] * (6000 - hsb[1] * f)) / 600000 * 255);\n\tvar t = Math.round((hsb[2] * (6000 - hsb[1] * (60 - f))) / 600000 * 255);\n\n\tswitch (Math.floor(hue / 60)){\n\t\tcase 0: return [br, t, p, a];\n\t\tcase 1: return [q, br, p, a];\n\t\tcase 2: return [p, br, t, a];\n\t\tcase 3: return [p, q, br, a];\n\t\tcase 4: return [t, p, br, a];\n\t\tdefault: return [br, p, q, a];\n\t}\n};\n\nColor.parseHSL = function(color){\n\tvar hsb = map(color.match(listMatch).slice(1), function(bit, i){\n\t\tif (bit) bit = parseFloat(bit);\n\t\tif (i === 0) return Math.round(((bit %= 360) < 0) ? (bit + 360) : bit);\n\t\telse if (i < 3) return limit(Math.round(bit), 0, 100);\n\t\telse return limit(((bit === '') ? 1 : Number(bit)), 0, 1);\n\t});\n\n\tvar h = hsb[0] / 60;\n\tvar s = hsb[1] / 100;\n\tvar l = hsb[2] / 100;\n\tvar a = hsb[3];\n\t\n\tvar c = (1 - Math.abs(2 * l - 1)) * s;\n\tvar x = c * (1 - Math.abs(h % 2 - 1));\n\tvar m = l - c / 2;\n\t\n\tvar p = Math.round((c + m) * 255);\n\tvar q = Math.round((x + m) * 255);\n\tvar t = Math.round((m) * 255);\n\n\tswitch (Math.floor(h)){\n\t\tcase 0: return [p, q, t, a];\n\t\tcase 1: return [q, p, t, a];\n\t\tcase 2: return [t, p, q, a];\n\t\tcase 3: return [t, q, p, a];\n\t\tcase 4: return [q, t, p, a];\n\t\tdefault: return [p, t, q, a];\n\t}\n};\n\nvar toString = function(type, array){\n\tif (array[3] != 1) type += 'a';\n\telse array.pop();\n\treturn type + '(' + array.join(', ') + ')';\n};\n\nColor.prototype = {\n\n\ttoHSB: function(array){\n\t\tvar red = this.red, green = this.green, blue = this.blue, alpha = this.alpha;\n\n\t\tvar max = Math.max(red, green, blue), min = Math.min(red, green, blue), delta = max - min;\n\t\tvar hue = 0, saturation = (delta != 0) ? delta / max : 0, brightness = max / 255;\n\t\tif (saturation){\n\t\t\tvar rr = (max - red) / delta, gr = (max - green) / delta, br = (max - blue) / delta;\n\t\t\thue = (red == max) ? br - gr : (green == max) ? 2 + rr - br : 4 + gr - rr;\n\t\t\tif ((hue /= 6) < 0) hue++;\n\t\t}\n\n\t\tvar hsb = [Math.round(hue * 360), Math.round(saturation * 100), Math.round(brightness * 100), alpha];\n\n\t\treturn (array) ? hsb : toString('hsb', hsb);\n\t},\n\n\ttoHSL: function(array){\n\t\tvar red = this.red, green = this.green, blue = this.blue, alpha = this.alpha;\n\n\t\tvar max = Math.max(red, green, blue), min = Math.min(red, green, blue), delta = max - min;\n\t\tvar hue = 0, saturation = (delta != 0) ? delta / (255 - Math.abs((max + min) - 255)) : 0, lightness = (max + min) / 512;\n\t\tif (saturation){\n\t\t\tvar rr = (max - red) / delta, gr = (max - green) / delta, br = (max - blue) / delta;\n\t\t\thue = (red == max) ? br - gr : (green == max) ? 2 + rr - br : 4 + gr - rr;\n\t\t\tif ((hue /= 6) < 0) hue++;\n\t\t}\n\n\t\tvar hsl = [Math.round(hue * 360), Math.round(saturation * 100), Math.round(lightness * 100), alpha];\n\n\t\treturn (array) ? hsl : toString('hsl', hsl);\n\t},\n\n\ttoHEX: function(array){\n\n\t\tvar a = this.alpha;\n\t\tvar alpha = ((a = Math.round((a * 255)).toString(16)).length == 1) ? a + a : a;\n\t\t\n\t\tvar hex = map([this.red, this.green, this.blue], function(bit){\n\t\t\tbit = bit.toString(16);\n\t\t\treturn (bit.length == 1) ? '0' + bit : bit;\n\t\t});\n\t\t\n\t\treturn (array) ? hex.concat(alpha) : '#' + hex.join('') + ((alpha == 'ff') ? '' : alpha);\n\t},\n\t\n\ttoRGB: function(array){\n\t\tvar rgb = [this.red, this.green, this.blue, this.alpha];\n\t\treturn (array) ? rgb : toString('rgb', rgb);\n\t}\n\n};\n\nColor.prototype.toString = Color.prototype.toRGB;\n\nColor.hex = function(hex){\n\treturn new Color(hex, 'hex');\n};\n\nif (this.hex == null) this.hex = Color.hex;\n\nColor.hsb = function(h, s, b, a){\n\treturn new Color([h || 0, s || 0, b || 0, (a == null) ? 1 : a], 'hsb');\n};\n\nif (this.hsb == null) this.hsb = Color.hsb;\n\nColor.hsl = function(h, s, l, a){\n\treturn new Color([h || 0, s || 0, l || 0, (a == null) ? 1 : a], 'hsl');\n};\n\nif (this.hsl == null) this.hsl = Color.hsl;\n\nColor.rgb = function(r, g, b, a){\n\treturn new Color([r || 0, g || 0, b || 0, (a == null) ? 1 : a], 'rgb');\n};\n\nif (this.rgb == null) this.rgb = Color.rgb;\n\nColor.detach = function(color){\n\tcolor = new Color(color);\n\treturn [Color.rgb(color.red, color.green, color.blue).toString(), color.alpha];\n};\n\nmodule.exports = Color;","/**\n * Copyright (c) 2015-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n */\n\n'use strict';\n\n// TODO: Move this into an ART mode called \"serialized\" or something\n\nconst Class = require('art/core/class.js');\nconst Path = require('art/core/path.js');\n\nconst MOVE_TO = 0;\nconst CLOSE = 1;\nconst LINE_TO = 2;\nconst CURVE_TO = 3;\nconst ARC = 4;\n\nconst SerializablePath = Class(Path, {\n initialize: function(path) {\n this.reset();\n if (path instanceof SerializablePath) {\n this.path = path.path.slice(0);\n } else if (path) {\n if (path.applyToPath) {\n path.applyToPath(this);\n } else {\n this.push(path);\n }\n }\n },\n\n onReset: function() {\n this.path = [];\n },\n\n onMove: function(sx, sy, x, y) {\n this.path.push(MOVE_TO, x, y);\n },\n\n onLine: function(sx, sy, x, y) {\n this.path.push(LINE_TO, x, y);\n },\n\n onBezierCurve: function(sx, sy, p1x, p1y, p2x, p2y, x, y) {\n this.path.push(CURVE_TO, p1x, p1y, p2x, p2y, x, y);\n },\n\n _arcToBezier: Path.prototype.onArc,\n\n onArc: function(sx, sy, ex, ey, cx, cy, rx, ry, sa, ea, ccw, rotation) {\n if (rx !== ry || rotation) {\n return this._arcToBezier(\n sx,\n sy,\n ex,\n ey,\n cx,\n cy,\n rx,\n ry,\n sa,\n ea,\n ccw,\n rotation,\n );\n }\n this.path.push(ARC, cx, cy, rx, sa, ea, ccw ? 0 : 1);\n },\n\n onClose: function() {\n this.path.push(CLOSE);\n },\n\n toJSON: function() {\n return this.path;\n },\n});\n\nmodule.exports = SerializablePath;\n","module.exports = function(mixins){\n\tvar proto = {};\n\tfor (var i = 0, l = arguments.length; i < l; i++){\n\t\tvar mixin = arguments[i];\n\t\tif (typeof mixin == 'function') mixin = mixin.prototype;\n\t\tfor (var key in mixin) proto[key] = mixin[key];\n\t}\n\tif (!proto.initialize) proto.initialize = function(){};\n\tproto.constructor = function(a,b,c,d,e,f,g,h){\n\t\treturn new proto.initialize(a,b,c,d,e,f,g,h);\n\t};\n\tproto.constructor.prototype = proto.initialize.prototype = proto;\n\treturn proto.constructor;\n};\n","var Class = require('./class');\n\nmodule.exports = Class({\n\t\n\tinitialize: function(path){\n\t\tthis.reset().push(path);\n\t},\n\n\t/* parser */\n\t\n\tpush: function(){\n\t\tvar p = Array.prototype.join.call(arguments, ' ')\n\t\t\t.match(/[a-df-z]|[\\-+]?(?:[\\d\\.]e[\\-+]?|[^\\s\\-+,a-z])+/ig);\n\t\tif (!p) return this;\n\n\t\tvar last, cmd = p[0], i = 1;\n\t\twhile (cmd){\n\t\t\tswitch (cmd){\n\t\t\t\tcase 'm': this.move(p[i++], p[i++]); break;\n\t\t\t\tcase 'l': this.line(p[i++], p[i++]); break;\n\t\t\t\tcase 'c': this.curve(p[i++], p[i++], p[i++], p[i++], p[i++], p[i++]); break;\n\t\t\t\tcase 's': this.curve(p[i++], p[i++], null, null, p[i++], p[i++]); break;\n\t\t\t\tcase 'q': this.curve(p[i++], p[i++], p[i++], p[i++]); break;\n\t\t\t\tcase 't': this.curve(p[i++], p[i++]); break;\n\t\t\t\tcase 'a': this.arc(p[i+5], p[i+6], p[i], p[i+1], p[i+3], !+p[i+4], p[i+2]); i += 7; break;\n\t\t\t\tcase 'h': this.line(p[i++], 0); break;\n\t\t\t\tcase 'v': this.line(0, p[i++]); break;\n\n\t\t\t\tcase 'M': this.moveTo(p[i++], p[i++]); break;\n\t\t\t\tcase 'L': this.lineTo(p[i++], p[i++]); break;\n\t\t\t\tcase 'C': this.curveTo(p[i++], p[i++], p[i++], p[i++], p[i++], p[i++]); break;\n\t\t\t\tcase 'S': this.curveTo(p[i++], p[i++], null, null, p[i++], p[i++]); break;\n\t\t\t\tcase 'Q': this.curveTo(p[i++], p[i++], p[i++], p[i++]); break;\n\t\t\t\tcase 'T': this.curveTo(p[i++], p[i++]); break;\n\t\t\t\tcase 'A': this.arcTo(p[i+5], p[i+6], p[i], p[i+1], p[i+3], !+p[i+4], p[i+2]); i += 7; break;\n\t\t\t\tcase 'H': this.lineTo(p[i++], this.penY); break;\n\t\t\t\tcase 'V': this.lineTo(this.penX, p[i++]); break;\n\t\t\t\t\n\t\t\t\tcase 'Z': case 'z': this.close(); break;\n\t\t\t\tdefault: cmd = last; i--; continue;\n\t\t\t}\n\n\t\t\tlast = cmd;\n\t\t\tif (last == 'm') last = 'l';\n\t\t\telse if (last == 'M') last = 'L';\n\t\t\tcmd = p[i++];\n\t\t}\n\t\treturn this;\n\t},\n\n\t/* utility methods */\n\n\treset: function(){\n\t\tthis.penX = this.penY = 0;\n\t\tthis.penDownX = this.penDownY = null;\n\t\tthis._pivotX = this._pivotY = 0;\n\t\tthis.onReset();\n\t\treturn this;\n\t},\n\t\n\tmove: function(x,y){\n\t\tthis.onMove(this.penX, this.penY, this._pivotX = this.penX += (+x), this._pivotY = this.penY += (+y));\n\t\treturn this;\n\t},\n\tmoveTo: function(x,y){\n\t\tthis.onMove(this.penX, this.penY, this._pivotX = this.penX = (+x), this._pivotY = this.penY = (+y));\n\t\treturn this;\n\t},\n\n\tline: function(x,y){\n\t\treturn this.lineTo(this.penX + (+x), this.penY + (+y));\n\t},\n\tlineTo: function(x,y){\n\t\tif (this.penDownX == null){ this.penDownX = this.penX; this.penDownY = this.penY; }\n\t\tthis.onLine(this.penX, this.penY, this._pivotX = this.penX = (+x), this._pivotY = this.penY = (+y));\n\t\treturn this;\n\t},\n\t\n\tcurve: function(c1x, c1y, c2x, c2y, ex, ey){\n\t\tvar x = this.penX, y = this.penY;\n\t\treturn this.curveTo(\n\t\t\tx + (+c1x), y + (+c1y),\n\t\t\tc2x == null ? null : x + (+c2x),\n\t\t\tc2y == null ? null : y + (+c2y),\n\t\t\tex == null ? null : x + (+ex),\n\t\t\tey == null ? null : y + (+ey)\n\t\t);\n\t},\n\tcurveTo: function(c1x, c1y, c2x, c2y, ex, ey){\n\t\tvar x = this.penX, y = this.penY;\n\t\tif (c2x == null){\n\t\t\tc2x = +c1x; c2y = +c1y;\n\t\t\tc1x = (x * 2) - (this._pivotX || 0); c1y = (y * 2) - (this._pivotY || 0);\n\t\t}\n\t\tif (ex == null){\n\t\t\tthis._pivotX = +c1x; this._pivotY = +c1y;\n\t\t\tex = +c2x; ey = +c2y;\n\t\t\tc2x = (ex + (+c1x) * 2) / 3; c2y = (ey + (+c1y) * 2) / 3;\n\t\t\tc1x = (x + (+c1x) * 2) / 3; c1y = (y + (+c1y) * 2) / 3;\n\t\t} else {\n\t\t\tthis._pivotX = +c2x; this._pivotY = +c2y;\n\t\t}\n\t\tif (this.penDownX == null){ this.penDownX = x; this.penDownY = y; }\n\t\tthis.onBezierCurve(x, y, +c1x, +c1y, +c2x, +c2y, this.penX = +ex, this.penY = +ey);\n\t\treturn this;\n\t},\n\t\n\tarc: function(x, y, rx, ry, outer, counterClockwise, rotation){\n\t\treturn this.arcTo(this.penX + (+x), this.penY + (+y), rx, ry, outer, counterClockwise, rotation);\n\t},\n\tarcTo: function(x, y, rx, ry, outer, counterClockwise, rotation){\n\t\try = Math.abs(+ry || +rx || (+y - this.penY));\n\t\trx = Math.abs(+rx || (+x - this.penX));\n\n\t\tif (!rx || !ry || (x == this.penX && y == this.penY)) return this.lineTo(x, y);\n\n\t\tvar tX = this.penX, tY = this.penY, clockwise = !+counterClockwise, large = !!+outer;\n\n\t\tvar rad = rotation ? rotation * Math.PI / 180 : 0, cos = Math.cos(rad), sin = Math.sin(rad);\n\t\tx -= tX; y -= tY;\n\t\t\n\t\t// Ellipse Center\n\t\tvar cx = cos * x / 2 + sin * y / 2,\n\t\t\tcy = -sin * x / 2 + cos * y / 2,\n\t\t\trxry = rx * rx * ry * ry,\n\t\t\trycx = ry * ry * cx * cx,\n\t\t\trxcy = rx * rx * cy * cy,\n\t\t\ta = rxry - rxcy - rycx;\n\n\t\tif (a < 0){\n\t\t\ta = Math.sqrt(1 - a / rxry);\n\t\t\trx *= a; ry *= a;\n\t\t\tcx = x / 2; cy = y / 2;\n\t\t} else {\n\t\t\ta = Math.sqrt(a / (rxcy + rycx));\n\t\t\tif (large == clockwise) a = -a;\n\t\t\tvar cxd = -a * cy * rx / ry,\n\t\t\t cyd = a * cx * ry / rx;\n\t\t\tcx = cos * cxd - sin * cyd + x / 2;\n\t\t\tcy = sin * cxd + cos * cyd + y / 2;\n\t\t}\n\n\t\t// Rotation + Scale Transform\n\t\tvar xx = cos / rx, yx = sin / rx,\n\t\t xy = -sin / ry, yy = cos / ry;\n\n\t\t// Start and End Angle\n\t\tvar sa = Math.atan2(xy * -cx + yy * -cy, xx * -cx + yx * -cy),\n\t\t ea = Math.atan2(xy * (x - cx) + yy * (y - cy), xx * (x - cx) + yx * (y - cy));\n\n\t\tcx += tX; cy += tY;\n\t\tx += tX; y += tY;\n\n\t\t// Circular Arc\n\t\tif (this.penDownX == null){ this.penDownX = this.penX; this.penDownY = this.penY; }\n\t\tthis.onArc(\n\t\t\ttX, tY, this._pivotX = this.penX = x, this._pivotY = this.penY = y,\n\t\t\tcx, cy, rx, ry, sa, ea, !clockwise, rotation\n\t\t);\n\t\treturn this;\n\t},\n\n\tcounterArc: function(x, y, rx, ry, outer){\n\t\treturn this.arc(x, y, rx, ry, outer, true);\n\t},\n\tcounterArcTo: function(x, y, rx, ry, outer){\n\t\treturn this.arcTo(x, y, rx, ry, outer, true);\n\t},\n\n\tclose: function(){\n\t\tif (this.penDownX != null){\n\t\t\tthis.onClose(this.penX, this.penY, this.penX = this.penDownX, this.penY = this.penDownY);\n\t\t\tthis.penDownX = null;\n\t\t}\n\t\treturn this;\n\t},\n\n\t/* overridable handlers */\n\t\n\tonReset: function(){\n\t},\n\n\tonMove: function(sx, sy, ex, ey){\n\t},\n\n\tonLine: function(sx, sy, ex, ey){\n\t\tthis.onBezierCurve(sx, sy, sx, sy, ex, ey, ex, ey);\n\t},\n\n\tonBezierCurve: function(sx, sy, c1x, c1y, c2x, c2y, ex, ey){\n\t\tvar gx = ex - sx, gy = ey - sy,\n\t\t\tg = gx * gx + gy * gy,\n\t\t\tv1, v2, cx, cy, u;\n\n\t\tcx = c1x - sx; cy = c1y - sy;\n\t\tu = cx * gx + cy * gy;\n\n\t\tif (u > g){\n\t\t\tcx -= gx;\n\t\t\tcy -= gy;\n\t\t} else if (u > 0 && g != 0){\n\t\t\tcx -= u/g * gx;\n\t\t\tcy -= u/g * gy;\n\t\t}\n\n\t\tv1 = cx * cx + cy * cy;\n\n\t\tcx = c2x - sx; cy = c2y - sy;\n\t\tu = cx * gx + cy * gy;\n\n\t\tif (u > g){\n\t\t\tcx -= gx;\n\t\t\tcy -= gy;\n\t\t} else if (u > 0 && g != 0){\n\t\t\tcx -= u/g * gx;\n\t\t\tcy -= u/g * gy;\n\t\t}\n\n\t\tv2 = cx * cx + cy * cy;\n\n\t\tif (v1 < 0.01 && v2 < 0.01){\n\t\t\tthis.onLine(sx, sy, ex, ey);\n\t\t\treturn;\n\t\t}\n\n\t\t// Avoid infinite recursion\n\t\tif (isNaN(v1) || isNaN(v2)){\n\t\t\tthrow new Error('Bad input');\n\t\t}\n\n\t\t// Split curve\n\t\tvar s1x = (c1x + c2x) * 0.5, s1y = (c1y + c2y) * 0.5,\n\t\t l1x = (c1x + sx) * 0.5, l1y = (c1y + sy) * 0.5,\n\t\t l2x = (l1x + s1x) * 0.5, l2y = (l1y + s1y) * 0.5,\n\t\t r2x = (ex + c2x) * 0.5, r2y = (ey + c2y) * 0.5,\n\t\t r1x = (r2x + s1x) * 0.5, r1y = (r2y + s1y) * 0.5,\n\t\t l2r1x = (l2x + r1x) * 0.5, l2r1y = (l2y + r1y) * 0.5;\n\n\t\t// TODO: Manual stack if necessary. Currently recursive without tail optimization.\n\t\tthis.onBezierCurve(sx, sy, l1x, l1y, l2x, l2y, l2r1x, l2r1y);\n\t\tthis.onBezierCurve(l2r1x, l2r1y, r1x, r1y, r2x, r2y, ex, ey);\n\t},\n\n\tonArc: function(sx, sy, ex, ey, cx, cy, rx, ry, sa, ea, ccw, rotation){\n\t\t// Inverse Rotation + Scale Transform\n\t\tvar rad = rotation ? rotation * Math.PI / 180 : 0, cos = Math.cos(rad), sin = Math.sin(rad),\n\t\t\txx = cos * rx, yx = -sin * ry,\n\t\t xy = sin * rx, yy = cos * ry;\n\n\t\t// Bezier Curve Approximation\n\t\tvar arc = ea - sa;\n\t\tif (arc < 0 && !ccw) arc += Math.PI * 2;\n\t\telse if (arc > 0 && ccw) arc -= Math.PI * 2;\n\n\t\tvar n = Math.ceil(Math.abs(arc / (Math.PI / 2))),\n\t\t step = arc / n,\n\t\t k = (4 / 3) * Math.tan(step / 4);\n\n\t\tvar x = Math.cos(sa), y = Math.sin(sa);\n\n\t\tfor (var i = 0; i < n; i++){\n\t\t\tvar cp1x = x - k * y, cp1y = y + k * x;\n\n\t\t\tsa += step;\n\t\t\tx = Math.cos(sa); y = Math.sin(sa);\n\n\t\t\tvar cp2x = x + k * y, cp2y = y - k * x;\n\n\t\t\tthis.onBezierCurve(\n\t\t\t\tsx, sy,\n\t\t\t\tcx + xx * cp1x + yx * cp1y, cy + xy * cp1x + yy * cp1y,\n\t\t\t\tcx + xx * cp2x + yx * cp2y, cy + xy * cp2x + yy * cp2y,\n\t\t\t\t(sx = (cx + xx * x + yx * y)), (sy = (cy + xy * x + yy * y))\n\t\t\t);\n\t\t}\n\t},\n\n\tonClose: function(sx, sy, ex, ey){\n\t\tthis.onLine(sx, sy, ex, ey);\n\t}\n\n});","var Class = require('./class');\n\nfunction Transform(xx, yx, xy, yy, x, y){\n\tif (xx && typeof xx == 'object'){\n\t\tyx = xx.yx; yy = xx.yy; y = xx.y;\n\t\txy = xx.xy; x = xx.x; xx = xx.xx;\n\t}\n\tthis.xx = xx == null ? 1 : xx;\n\tthis.yx = yx || 0;\n\tthis.xy = xy || 0;\n\tthis.yy = yy == null ? 1 : yy;\n\tthis.x = (x == null ? this.x : x) || 0;\n\tthis.y = (y == null ? this.y : y) || 0;\n\tthis._transform();\n\treturn this;\n};\n\nmodule.exports = Class({\n\n\tinitialize: Transform,\n\n\t_transform: function(){},\n\n\txx: 1, yx: 0, x: 0,\n\txy: 0, yy: 1, y: 0,\n\n\ttransform: function(xx, yx, xy, yy, x, y){\n\t\tvar m = this;\n\t\tif (xx && typeof xx == 'object'){\n\t\t\tyx = xx.yx; yy = xx.yy; y = xx.y;\n\t\t\txy = xx.xy; x = xx.x; xx = xx.xx;\n\t\t}\n\t\tif (!x) x = 0;\n\t\tif (!y) y = 0;\n\t\treturn this.transformTo(\n\t\t\tm.xx * xx + m.xy * yx,\n\t\t\tm.yx * xx + m.yy * yx,\n\t\t\tm.xx * xy + m.xy * yy,\n\t\t\tm.yx * xy + m.yy * yy,\n\t\t\tm.xx * x + m.xy * y + m.x,\n\t\t\tm.yx * x + m.yy * y + m.y\n\t\t);\n\t},\n\n\ttransformTo: Transform,\n\n\ttranslate: function(x, y){\n\t\treturn this.transform(1, 0, 0, 1, x, y);\n\t},\n\n\tmove: function(x, y){\n\t\tthis.x += x || 0;\n\t\tthis.y += y || 0;\n\t\tthis._transform();\n\t\treturn this;\n\t},\n\n\tscale: function(x, y){\n\t\tif (y == null) y = x;\n\t\treturn this.transform(x, 0, 0, y, 0, 0);\n\t},\n\n\trotate: function(deg, x, y){\n\t\tif (x == null || y == null){\n\t\t\tx = (this.left || 0) + (this.width || 0) / 2;\n\t\t\ty = (this.top || 0) + (this.height || 0) / 2;\n\t\t}\n\n\t\tvar rad = deg * Math.PI / 180, sin = Math.sin(rad), cos = Math.cos(rad);\n\n\t\tthis.transform(1, 0, 0, 1, x, y);\n\t\tvar m = this;\n\n\t\treturn this.transformTo(\n\t\t\tcos * m.xx - sin * m.yx,\n\t\t\tsin * m.xx + cos * m.yx,\n\t\t\tcos * m.xy - sin * m.yy,\n\t\t\tsin * m.xy + cos * m.yy,\n\t\t\tm.x,\n\t\t\tm.y\n\t\t).transform(1, 0, 0, 1, -x, -y);\n\t},\n\n\tmoveTo: function(x, y){\n\t\tvar m = this;\n\t\treturn this.transformTo(m.xx, m.yx, m.xy, m.yy, x, y);\n\t},\n\n\trotateTo: function(deg, x, y){\n\t\tvar m = this;\n\t\tvar flip = m.yx / m.xx > m.yy / m.xy ? -1 : 1;\n\t\tif (m.xx < 0 ? m.xy >= 0 : m.xy < 0) flip = -flip;\n\t\treturn this.rotate(deg - Math.atan2(flip * m.yx, flip * m.xx) * 180 / Math.PI, x, y);\n\t},\n\n\tscaleTo: function(x, y){\n\t\t// Normalize\n\t\tvar m = this;\n\n\t\tvar h = Math.sqrt(m.xx * m.xx + m.yx * m.yx);\n\t\tm.xx /= h; m.yx /= h;\n\n\t\th = Math.sqrt(m.yy * m.yy + m.xy * m.xy);\n\t\tm.yy /= h; m.xy /= h;\n\n\t\treturn this.scale(x, y);\n\t},\n\n\tresizeTo: function(width, height){\n\t\tvar w = this.width, h = this.height;\n\t\tif (!w || !h) return this;\n\t\treturn this.scaleTo(width / w, height / h);\n\t},\n\n\t/*\n\tinverse: function(){\n\t\tvar a = this.xx, b = this.yx,\n\t\t\tc = this.xy, d = this.yy,\n\t\t\te = this.x, f = this.y;\n\t\tif (a * d - b * c == 0) return null;\n\t\treturn new Transform(\n\t\t\td/(a * d-b * c), b/(b * c-a * d),\n\t\t\tc/(b * c-a * d), a/(a * d-b * c),\n\t\t\t(d * e-c * f)/(b * c-a * d), (b * e-a * f)/(a * d-b * c)\n\t\t);\n\t},\n\t*/\n\n\tinversePoint: function(x, y){\n\t\tvar a = this.xx, b = this.yx,\n\t\t\tc = this.xy, d = this.yy,\n\t\t\te = this.x, f = this.y;\n\t\tvar det = b * c - a * d;\n\t\tif (det == 0) return null;\n\t\treturn {\n\t\t\tx: (d * (e - x) + c * (y - f)) / det,\n\t\t\ty: (a * (f - y) + b * (x - e)) / det\n\t\t};\n\t},\n\n\tpoint: function(x, y){\n\t\tvar m = this;\n\t\treturn {\n\t\t\tx: m.xx * x + m.xy * y + m.x,\n\t\t\ty: m.yx * x + m.yy * y + m.y\n\t\t};\n\t}\t\n\n});\n","/**\n * Copyright (c) 2015-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @flow strict-local\n * @format\n */\n\n'use strict';\n\nconst ReactNativeStyleAttributes = require('ReactNativeStyleAttributes');\n\nconst ReactNativeViewAttributes = {};\n\nReactNativeViewAttributes.UIView = {\n pointerEvents: true,\n accessible: true,\n accessibilityActions: true,\n accessibilityLabel: true,\n accessibilityComponentType: true,\n accessibilityLiveRegion: true,\n accessibilityRole: true,\n accessibilityStates: true,\n accessibilityTraits: true,\n accessibilityHint: true,\n importantForAccessibility: true,\n nativeID: true,\n testID: true,\n renderToHardwareTextureAndroid: true,\n shouldRasterizeIOS: true,\n onLayout: true,\n onAccessibilityAction: true,\n onAccessibilityTap: true,\n onMagicTap: true,\n collapsable: true,\n needsOffscreenAlphaCompositing: true,\n style: ReactNativeStyleAttributes,\n};\n\nReactNativeViewAttributes.RCTView = {\n ...ReactNativeViewAttributes.UIView,\n\n // This is a special performance property exposed by RCTView and useful for\n // scrolling content when there are many subviews, most of which are offscreen.\n // For this property to be effective, it must be applied to a view that contains\n // many subviews that extend outside its bound. The subviews must also have\n // overflow: hidden, as should the containing view (or one of its superviews).\n removeClippedSubviews: true,\n};\n\nmodule.exports = ReactNativeViewAttributes;\n","/**\n * @generated SignedSource<<148d1974f94f5c9597e86f946bdf0d4e>>\n *\n * !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!\n * !! This file is a check-in of a static_upstream project! !!\n * !! !!\n * !! You should not modify this file directly. Instead: !!\n * !! 1) Use `fjs use-upstream` to temporarily replace this with !!\n * !! the latest version from upstream. !!\n * !! 2) Make your changes, test them, etc. !!\n * !! 3) Use `fjs push-upstream` to copy your changes back to !!\n * !! static_upstream. !!\n * !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!\n *\n * Copyright 2013-2014 Facebook, Inc.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n *\n */\n\n\"use strict\";\n\nvar mergeInto = require('mergeInto');\n\n/**\n * Shallow merges two structures into a return value, without mutating either.\n *\n * @param {?object} one Optional object with properties to merge from.\n * @param {?object} two Optional object with properties to merge from.\n * @return {object} The shallow extension of one by two.\n */\nvar merge = function(one, two) {\n var result = {};\n mergeInto(result, one);\n mergeInto(result, two);\n return result;\n};\n\nmodule.exports = merge;\n","/**\n * @generated SignedSource<>\n *\n * !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!\n * !! This file is a check-in of a static_upstream project! !!\n * !! !!\n * !! You should not modify this file directly. Instead: !!\n * !! 1) Use `fjs use-upstream` to temporarily replace this with !!\n * !! the latest version from upstream. !!\n * !! 2) Make your changes, test them, etc. !!\n * !! 3) Use `fjs push-upstream` to copy your changes back to !!\n * !! static_upstream. !!\n * !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!\n *\n * Copyright 2013-2014 Facebook, Inc.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n *\n * @typechecks static-only\n */\n\n\"use strict\";\n\nvar mergeHelpers = require('mergeHelpers');\n\nvar checkMergeObjectArg = mergeHelpers.checkMergeObjectArg;\nvar checkMergeIntoObjectArg = mergeHelpers.checkMergeIntoObjectArg;\n\n/**\n * Shallow merges two structures by mutating the first parameter.\n *\n * @param {object|function} one Object to be merged into.\n * @param {?object} two Optional object with properties to merge from.\n */\nfunction mergeInto(one, two) {\n checkMergeIntoObjectArg(one);\n if (two != null) {\n checkMergeObjectArg(two);\n for (var key in two) {\n if (!two.hasOwnProperty(key)) {\n continue;\n }\n one[key] = two[key];\n }\n }\n}\n\nmodule.exports = mergeInto;\n","/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n *\n * requiresPolyfills: Array.isArray\n *\n * @format\n */\n\n'use strict';\n\nconst invariant = require('fbjs/lib/invariant');\n\n/**\n * Maximum number of levels to traverse. Will catch circular structures.\n * @const\n */\nconst MAX_MERGE_DEPTH = 36;\n\n/**\n * We won't worry about edge cases like new String('x') or new Boolean(true).\n * Functions and Dates are considered terminals, and arrays are not.\n * @param {*} o The item/object/value to test.\n * @return {boolean} true iff the argument is a terminal.\n */\nconst isTerminal = function(o) {\n return typeof o !== 'object' || o instanceof Date || o === null;\n};\n\nconst mergeHelpers = {\n MAX_MERGE_DEPTH: MAX_MERGE_DEPTH,\n\n isTerminal: isTerminal,\n\n /**\n * Converts null/undefined values into empty object.\n *\n * @param {?Object=} arg Argument to be normalized (nullable optional)\n * @return {!Object}\n */\n normalizeMergeArg: function(arg) {\n return arg === undefined || arg === null ? {} : arg;\n },\n\n /**\n * If merging Arrays, a merge strategy *must* be supplied. If not, it is\n * likely the caller's fault. If this function is ever called with anything\n * but `one` and `two` being `Array`s, it is the fault of the merge utilities.\n *\n * @param {*} one Array to merge into.\n * @param {*} two Array to merge from.\n */\n checkMergeArrayArgs: function(one, two) {\n invariant(\n Array.isArray(one) && Array.isArray(two),\n 'Tried to merge arrays, instead got %s and %s.',\n one,\n two,\n );\n },\n\n /**\n * @param {*} one Object to merge into.\n * @param {*} two Object to merge from.\n */\n checkMergeObjectArgs: function(one, two) {\n mergeHelpers.checkMergeObjectArg(one);\n mergeHelpers.checkMergeObjectArg(two);\n },\n\n /**\n * @param {*} arg\n */\n checkMergeObjectArg: function(arg) {\n invariant(\n !isTerminal(arg) && !Array.isArray(arg),\n 'Tried to merge an object, instead got %s.',\n arg,\n );\n },\n\n /**\n * @param {*} arg\n */\n checkMergeIntoObjectArg: function(arg) {\n invariant(\n (!isTerminal(arg) || typeof arg === 'function') && !Array.isArray(arg),\n 'Tried to merge into an object, instead got %s.',\n arg,\n );\n },\n\n /**\n * Checks that a merge was not given a circular object or an object that had\n * too great of depth.\n *\n * @param {number} Level of recursion to validate against maximum.\n */\n checkMergeLevel: function(level) {\n invariant(\n level < MAX_MERGE_DEPTH,\n 'Maximum deep merge depth exceeded. You may be attempting to merge ' +\n 'circular structures in an unsupported way.',\n );\n },\n\n /**\n * Checks that the supplied merge strategy is valid.\n *\n * @param {string} Array merge strategy.\n */\n checkArrayStrategy: function(strategy) {\n invariant(\n strategy === undefined || strategy in mergeHelpers.ArrayStrategies,\n 'You must provide an array strategy to deep merge functions to ' +\n 'instruct the deep merge how to resolve merging two arrays.',\n );\n },\n\n /**\n * Set of possible behaviors of merge algorithms when encountering two Arrays\n * that must be merged together.\n * - `clobber`: The left `Array` is ignored.\n * - `indexByIndex`: The result is achieved by recursively deep merging at\n * each index. (not yet supported.)\n */\n ArrayStrategies: {\n Clobber: 'Clobber',\n Concat: 'Concat',\n IndexByIndex: 'IndexByIndex',\n },\n};\n\nmodule.exports = mergeHelpers;\n","/**\n * Copyright (c) 2015-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n * @flow\n */\n\n'use strict';\n\nconst ColorPropType = require('ColorPropType');\nconst Platform = require('Platform');\nconst React = require('React');\nconst PropTypes = require('prop-types');\nconst StyleSheet = require('StyleSheet');\nconst Text = require('Text');\nconst TouchableNativeFeedback = require('TouchableNativeFeedback');\nconst TouchableOpacity = require('TouchableOpacity');\nconst View = require('View');\n\nconst invariant = require('fbjs/lib/invariant');\n\n/**\n * A basic button component that should render nicely on any platform. Supports\n * a minimal level of customization.\n *\n *
\n *\n * If this button doesn't look right for your app, you can build your own\n * button using [TouchableOpacity](docs/touchableopacity.html)\n * or [TouchableNativeFeedback](docs/touchablenativefeedback.html).\n * For inspiration, look at the [source code for this button component](https://github.com/facebook/react-native/blob/master/Libraries/Components/Button.js).\n * Or, take a look at the [wide variety of button components built by the community](https://js.coach/react-native?search=button).\n *\n * Example usage:\n *\n * ```\n * import { Button } from 'react-native';\n * ...\n *\n * \n * ```\n *\n */\n\nclass Button extends React.Component<{\n title: string,\n onPress: () => any,\n color?: ?string,\n hasTVPreferredFocus?: ?boolean,\n accessibilityLabel?: ?string,\n disabled?: ?boolean,\n testID?: ?string,\n}> {\n static propTypes = {\n /**\n * Text to display inside the button\n */\n title: PropTypes.string.isRequired,\n /**\n * Text to display for blindness accessibility features\n */\n accessibilityLabel: PropTypes.string,\n /**\n * Color of the text (iOS), or background color of the button (Android)\n */\n color: ColorPropType,\n /**\n * If true, disable all interactions for this component.\n */\n disabled: PropTypes.bool,\n /**\n * TV preferred focus (see documentation for the View component).\n */\n hasTVPreferredFocus: PropTypes.bool,\n /**\n * Handler to be called when the user taps the button\n */\n onPress: PropTypes.func.isRequired,\n /**\n * Used to locate this view in end-to-end tests.\n */\n testID: PropTypes.string,\n };\n\n render() {\n const {\n accessibilityLabel,\n color,\n onPress,\n title,\n hasTVPreferredFocus,\n disabled,\n testID,\n } = this.props;\n const buttonStyles = [styles.button];\n const textStyles = [styles.text];\n if (color) {\n if (Platform.OS === 'ios') {\n textStyles.push({color: color});\n } else {\n buttonStyles.push({backgroundColor: color});\n }\n }\n const accessibilityStates = [];\n if (disabled) {\n buttonStyles.push(styles.buttonDisabled);\n textStyles.push(styles.textDisabled);\n accessibilityStates.push('disabled');\n }\n invariant(\n typeof title === 'string',\n 'The title prop of a Button must be a string',\n );\n const formattedTitle =\n Platform.OS === 'android' ? title.toUpperCase() : title;\n const Touchable =\n Platform.OS === 'android' ? TouchableNativeFeedback : TouchableOpacity;\n return (\n \n \n \n {formattedTitle}\n \n \n \n );\n }\n}\n\nconst styles = StyleSheet.create({\n button: Platform.select({\n ios: {},\n android: {\n elevation: 4,\n // Material design blue from https://material.google.com/style/color.html#color-color-palette\n backgroundColor: '#2196F3',\n borderRadius: 2,\n },\n }),\n text: Platform.select({\n ios: {\n // iOS blue from https://developer.apple.com/ios/human-interface-guidelines/visual-design/color/\n color: '#007AFF',\n textAlign: 'center',\n padding: 8,\n fontSize: 18,\n },\n android: {\n color: 'white',\n textAlign: 'center',\n padding: 8,\n fontWeight: '500',\n },\n }),\n buttonDisabled: Platform.select({\n ios: {},\n android: {\n elevation: 0,\n backgroundColor: '#dfdfdf',\n },\n }),\n textDisabled: Platform.select({\n ios: {\n color: '#cdcdcd',\n },\n android: {\n color: '#a1a1a1',\n },\n }),\n});\n\nmodule.exports = Button;\n","/**\n * Copyright (c) 2015-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @flow\n * @format\n */\n\n'use strict';\n\nconst React = require('React');\nconst ReactNativeViewAttributes = require('ReactNativeViewAttributes');\nconst TextAncestor = require('TextAncestor');\nconst TextPropTypes = require('TextPropTypes');\nconst Touchable = require('Touchable');\nconst UIManager = require('UIManager');\n\nconst createReactNativeComponentClass = require('createReactNativeComponentClass');\nconst nullthrows = require('fbjs/lib/nullthrows');\nconst processColor = require('processColor');\n\nimport type {PressEvent} from 'CoreEventTypes';\nimport type {NativeComponent} from 'ReactNative';\nimport type {PressRetentionOffset, TextProps} from 'TextProps';\n\ntype ResponseHandlers = $ReadOnly<{|\n onStartShouldSetResponder: () => boolean,\n onResponderGrant: (event: SyntheticEvent<>, dispatchID: string) => void,\n onResponderMove: (event: SyntheticEvent<>) => void,\n onResponderRelease: (event: SyntheticEvent<>) => void,\n onResponderTerminate: (event: SyntheticEvent<>) => void,\n onResponderTerminationRequest: () => boolean,\n|}>;\n\ntype Props = $ReadOnly<{\n ...TextProps,\n forwardedRef: ?React.Ref<'RCTText' | 'RCTVirtualText'>,\n}>;\n\ntype State = {|\n touchable: {|\n touchState: ?string,\n responderID: ?number,\n |},\n isHighlighted: boolean,\n createResponderHandlers: () => ResponseHandlers,\n responseHandlers: ?ResponseHandlers,\n|};\n\nconst PRESS_RECT_OFFSET = {top: 20, left: 20, right: 20, bottom: 30};\n\nconst viewConfig = {\n validAttributes: {\n ...ReactNativeViewAttributes.UIView,\n isHighlighted: true,\n numberOfLines: true,\n ellipsizeMode: true,\n allowFontScaling: true,\n disabled: true,\n selectable: true,\n selectionColor: true,\n adjustsFontSizeToFit: true,\n minimumFontScale: true,\n textBreakStrategy: true,\n onTextLayout: true,\n },\n directEventTypes: {\n topTextLayout: {\n registrationName: 'onTextLayout',\n },\n },\n uiViewClassName: 'RCTText',\n};\n\n/**\n * A React component for displaying text.\n *\n * See https://facebook.github.io/react-native/docs/text.html\n */\nclass TouchableText extends React.Component {\n static defaultProps = {\n accessible: true,\n allowFontScaling: true,\n ellipsizeMode: 'tail',\n };\n\n touchableGetPressRectOffset: ?() => PressRetentionOffset;\n touchableHandleActivePressIn: ?() => void;\n touchableHandleActivePressOut: ?() => void;\n touchableHandleLongPress: ?(event: PressEvent) => void;\n touchableHandlePress: ?(event: PressEvent) => void;\n touchableHandleResponderGrant: ?(\n event: SyntheticEvent<>,\n dispatchID: string,\n ) => void;\n touchableHandleResponderMove: ?(event: SyntheticEvent<>) => void;\n touchableHandleResponderRelease: ?(event: SyntheticEvent<>) => void;\n touchableHandleResponderTerminate: ?(event: SyntheticEvent<>) => void;\n touchableHandleResponderTerminationRequest: ?() => boolean;\n\n state = {\n ...Touchable.Mixin.touchableGetInitialState(),\n isHighlighted: false,\n createResponderHandlers: this._createResponseHandlers.bind(this),\n responseHandlers: null,\n };\n\n static getDerivedStateFromProps(nextProps: Props, prevState: State): ?State {\n return prevState.responseHandlers == null && isTouchable(nextProps)\n ? {\n ...prevState,\n responseHandlers: prevState.createResponderHandlers(),\n }\n : null;\n }\n\n static viewConfig = viewConfig;\n\n render(): React.Node {\n let props = this.props;\n if (isTouchable(props)) {\n props = {\n ...props,\n ...this.state.responseHandlers,\n isHighlighted: this.state.isHighlighted,\n };\n }\n if (props.selectionColor != null) {\n props = {\n ...props,\n selectionColor: processColor(props.selectionColor),\n };\n }\n if (__DEV__) {\n if (Touchable.TOUCH_TARGET_DEBUG && props.onPress != null) {\n props = {\n ...props,\n style: [props.style, {color: 'magenta'}],\n };\n }\n }\n return (\n \n {hasTextAncestor =>\n hasTextAncestor ? (\n \n ) : (\n \n \n \n )\n }\n \n );\n }\n\n _createResponseHandlers(): ResponseHandlers {\n return {\n onStartShouldSetResponder: (): boolean => {\n const {onStartShouldSetResponder} = this.props;\n const shouldSetResponder =\n (onStartShouldSetResponder == null\n ? false\n : onStartShouldSetResponder()) || isTouchable(this.props);\n\n if (shouldSetResponder) {\n this._attachTouchHandlers();\n }\n return shouldSetResponder;\n },\n onResponderGrant: (event: SyntheticEvent<>, dispatchID: string): void => {\n nullthrows(this.touchableHandleResponderGrant)(event, dispatchID);\n if (this.props.onResponderGrant != null) {\n this.props.onResponderGrant.call(this, event, dispatchID);\n }\n },\n onResponderMove: (event: SyntheticEvent<>): void => {\n nullthrows(this.touchableHandleResponderMove)(event);\n if (this.props.onResponderMove != null) {\n this.props.onResponderMove.call(this, event);\n }\n },\n onResponderRelease: (event: SyntheticEvent<>): void => {\n nullthrows(this.touchableHandleResponderRelease)(event);\n if (this.props.onResponderRelease != null) {\n this.props.onResponderRelease.call(this, event);\n }\n },\n onResponderTerminate: (event: SyntheticEvent<>): void => {\n nullthrows(this.touchableHandleResponderTerminate)(event);\n if (this.props.onResponderTerminate != null) {\n this.props.onResponderTerminate.call(this, event);\n }\n },\n onResponderTerminationRequest: (): boolean => {\n const {onResponderTerminationRequest} = this.props;\n if (!nullthrows(this.touchableHandleResponderTerminationRequest)()) {\n return false;\n }\n if (onResponderTerminationRequest == null) {\n return true;\n }\n return onResponderTerminationRequest();\n },\n };\n }\n\n /**\n * Lazily attaches Touchable.Mixin handlers.\n */\n _attachTouchHandlers(): void {\n if (this.touchableGetPressRectOffset != null) {\n return;\n }\n for (const key in Touchable.Mixin) {\n if (typeof Touchable.Mixin[key] === 'function') {\n (this: any)[key] = Touchable.Mixin[key].bind(this);\n }\n }\n this.touchableHandleActivePressIn = (): void => {\n if (!this.props.suppressHighlighting && isTouchable(this.props)) {\n this.setState({isHighlighted: true});\n }\n };\n this.touchableHandleActivePressOut = (): void => {\n if (!this.props.suppressHighlighting && isTouchable(this.props)) {\n this.setState({isHighlighted: false});\n }\n };\n this.touchableHandlePress = (event: PressEvent): void => {\n if (this.props.onPress != null) {\n this.props.onPress(event);\n }\n };\n this.touchableHandleLongPress = (event: PressEvent): void => {\n if (this.props.onLongPress != null) {\n this.props.onLongPress(event);\n }\n };\n this.touchableGetPressRectOffset = (): PressRetentionOffset =>\n this.props.pressRetentionOffset == null\n ? PRESS_RECT_OFFSET\n : this.props.pressRetentionOffset;\n }\n}\n\nconst isTouchable = (props: Props): boolean =>\n props.onPress != null ||\n props.onLongPress != null ||\n props.onStartShouldSetResponder != null;\n\nconst RCTText = createReactNativeComponentClass(\n viewConfig.uiViewClassName,\n () => viewConfig,\n);\n\nconst RCTVirtualText =\n UIManager.RCTVirtualText == null\n ? RCTText\n : createReactNativeComponentClass('RCTVirtualText', () => ({\n validAttributes: {\n ...ReactNativeViewAttributes.UIView,\n isHighlighted: true,\n },\n uiViewClassName: 'RCTVirtualText',\n }));\n\nconst Text = (\n props: TextProps,\n forwardedRef: ?React.Ref<'RCTText' | 'RCTVirtualText'>,\n) => {\n return ;\n};\n// $FlowFixMe - TODO T29156721 `React.forwardRef` is not defined in Flow, yet.\nconst TextToExport = React.forwardRef(Text);\nTextToExport.displayName = 'Text';\n\n// TODO: Deprecate this.\nTextToExport.propTypes = TextPropTypes;\n\nmodule.exports = (TextToExport: Class>);\n","/**\n * Copyright (c) 2015-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @flow\n * @format\n */\n\n'use strict';\n\nconst ColorPropType = require('ColorPropType');\nconst EdgeInsetsPropType = require('EdgeInsetsPropType');\nconst PropTypes = require('prop-types');\nconst StyleSheetPropType = require('StyleSheetPropType');\nconst TextStylePropTypes = require('TextStylePropTypes');\n\nconst stylePropType = StyleSheetPropType(TextStylePropTypes);\n\nmodule.exports = {\n /**\n * When `numberOfLines` is set, this prop defines how text will be\n * truncated.\n *\n * See https://facebook.github.io/react-native/docs/text.html#ellipsizemode\n */\n ellipsizeMode: PropTypes.oneOf(['head', 'middle', 'tail', 'clip']),\n /**\n * Used to truncate the text with an ellipsis.\n *\n * See https://facebook.github.io/react-native/docs/text.html#numberoflines\n */\n numberOfLines: PropTypes.number,\n /**\n * Set text break strategy on Android.\n *\n * See https://facebook.github.io/react-native/docs/text.html#textbreakstrategy\n */\n textBreakStrategy: PropTypes.oneOf(['simple', 'highQuality', 'balanced']),\n /**\n * Invoked on mount and layout changes.\n *\n * See https://facebook.github.io/react-native/docs/text.html#onlayout\n */\n onLayout: PropTypes.func,\n /**\n * This function is called on press.\n *\n * See https://facebook.github.io/react-native/docs/text.html#onpress\n */\n onPress: PropTypes.func,\n /**\n * This function is called on long press.\n *\n * See https://facebook.github.io/react-native/docs/text.html#onlongpress\n */\n onLongPress: PropTypes.func,\n /**\n * Defines how far your touch may move off of the button, before\n * deactivating the button.\n *\n * See https://facebook.github.io/react-native/docs/text.html#pressretentionoffset\n */\n pressRetentionOffset: EdgeInsetsPropType,\n /**\n * Lets the user select text.\n *\n * See https://facebook.github.io/react-native/docs/text.html#selectable\n */\n selectable: PropTypes.bool,\n /**\n * The highlight color of the text.\n *\n * See https://facebook.github.io/react-native/docs/text.html#selectioncolor\n */\n selectionColor: ColorPropType,\n /**\n * When `true`, no visual change is made when text is pressed down.\n *\n * See https://facebook.github.io/react-native/docs/text.html#supperhighlighting\n */\n suppressHighlighting: PropTypes.bool,\n style: stylePropType,\n /**\n * Used to locate this view in end-to-end tests.\n *\n * See https://facebook.github.io/react-native/docs/text.html#testid\n */\n testID: PropTypes.string,\n /**\n * Used to locate this view from native code.\n *\n * See https://facebook.github.io/react-native/docs/text.html#nativeid\n */\n nativeID: PropTypes.string,\n /**\n * Whether fonts should scale to respect Text Size accessibility settings.\n *\n * See https://facebook.github.io/react-native/docs/text.html#allowfontscaling\n */\n allowFontScaling: PropTypes.bool,\n /**\n * Indicates whether the view is an accessibility element.\n *\n * See https://facebook.github.io/react-native/docs/text.html#accessible\n */\n accessible: PropTypes.bool,\n /**\n * Whether font should be scaled down automatically.\n *\n * See https://facebook.github.io/react-native/docs/text.html#adjustsfontsizetofit\n */\n adjustsFontSizeToFit: PropTypes.bool,\n /**\n * Smallest possible scale a font can reach.\n *\n * See https://facebook.github.io/react-native/docs/text.html#minimumfontscale\n */\n minimumFontScale: PropTypes.number,\n /**\n * Specifies the disabled state of the text view for testing purposes.\n *\n * See https://facebook.github.io/react-native/docs/text.html#disabled\n */\n disabled: PropTypes.bool,\n};\n","/**\n * Copyright (c) 2015-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n * @flow strict\n */\n\n'use strict';\n\nconst PropTypes = require('prop-types');\n\nconst EdgeInsetsPropType = PropTypes.shape({\n top: PropTypes.number,\n left: PropTypes.number,\n bottom: PropTypes.number,\n right: PropTypes.number,\n});\n\nexport type EdgeInsetsProp = $ReadOnly<{|\n top?: ?number,\n left?: ?number,\n bottom?: ?number,\n right?: ?number,\n|}>;\n\nmodule.exports = EdgeInsetsPropType;\n","/**\n * Copyright (c) 2015-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n * @flow strict-local\n */\n\n'use strict';\n\nconst createStrictShapeTypeChecker = require('createStrictShapeTypeChecker');\nconst flattenStyle = require('flattenStyle');\n\nfunction StyleSheetPropType(shape: {\n [key: string]: ReactPropsCheckType,\n}): ReactPropsCheckType {\n const shapePropType = createStrictShapeTypeChecker(shape);\n return function(props, propName, componentName, location?, ...rest) {\n let newProps = props;\n if (props[propName]) {\n // Just make a dummy prop object with only the flattened style\n newProps = {};\n newProps[propName] = flattenStyle(props[propName]);\n }\n return shapePropType(newProps, propName, componentName, location, ...rest);\n };\n}\n\nmodule.exports = StyleSheetPropType;\n","/**\n * Copyright (c) 2015-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n * @flow\n */\n\n'use strict';\n\nconst invariant = require('fbjs/lib/invariant');\nconst merge = require('merge');\n\nfunction createStrictShapeTypeChecker(shapeTypes: {\n [key: string]: ReactPropsCheckType,\n}): ReactPropsChainableTypeChecker {\n function checkType(\n isRequired,\n props,\n propName,\n componentName,\n location?,\n ...rest\n ) {\n if (!props[propName]) {\n if (isRequired) {\n invariant(\n false,\n `Required object \\`${propName}\\` was not specified in ` +\n `\\`${componentName}\\`.`,\n );\n }\n return;\n }\n const propValue = props[propName];\n const propType = typeof propValue;\n const locationName = location || '(unknown)';\n if (propType !== 'object') {\n invariant(\n false,\n `Invalid ${locationName} \\`${propName}\\` of type \\`${propType}\\` ` +\n `supplied to \\`${componentName}\\`, expected \\`object\\`.`,\n );\n }\n // We need to check all keys in case some are required but missing from\n // props.\n const allKeys = merge(props[propName], shapeTypes);\n for (const key in allKeys) {\n const checker = shapeTypes[key];\n if (!checker) {\n invariant(\n false,\n `Invalid props.${propName} key \\`${key}\\` supplied to \\`${componentName}\\`.` +\n '\\nBad object: ' +\n JSON.stringify(props[propName], null, ' ') +\n '\\nValid keys: ' +\n JSON.stringify(Object.keys(shapeTypes), null, ' '),\n );\n }\n const error = checker(propValue, key, componentName, location, ...rest);\n if (error) {\n invariant(\n false,\n error.message +\n '\\nBad object: ' +\n JSON.stringify(props[propName], null, ' '),\n );\n }\n }\n }\n function chainedCheckType(\n props: {[key: string]: any},\n propName: string,\n componentName: string,\n location?: string,\n ...rest\n ): ?Error {\n return checkType(false, props, propName, componentName, location, ...rest);\n }\n chainedCheckType.isRequired = checkType.bind(null, true);\n return chainedCheckType;\n}\n\nmodule.exports = createStrictShapeTypeChecker;\n","/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n */\n\n'use strict';\n\nconst BoundingDimensions = require('BoundingDimensions');\nconst Platform = require('Platform');\nconst Position = require('Position');\nconst React = require('React');\nconst ReactNative = require('ReactNative');\nconst TVEventHandler = require('TVEventHandler');\nconst TouchEventUtils = require('fbjs/lib/TouchEventUtils');\nconst UIManager = require('UIManager');\nconst View = require('View');\n\nconst keyMirror = require('fbjs/lib/keyMirror');\nconst normalizeColor = require('normalizeColor');\n\n/**\n * `Touchable`: Taps done right.\n *\n * You hook your `ResponderEventPlugin` events into `Touchable`. `Touchable`\n * will measure time/geometry and tells you when to give feedback to the user.\n *\n * ====================== Touchable Tutorial ===============================\n * The `Touchable` mixin helps you handle the \"press\" interaction. It analyzes\n * the geometry of elements, and observes when another responder (scroll view\n * etc) has stolen the touch lock. It notifies your component when it should\n * give feedback to the user. (bouncing/highlighting/unhighlighting).\n *\n * - When a touch was activated (typically you highlight)\n * - When a touch was deactivated (typically you unhighlight)\n * - When a touch was \"pressed\" - a touch ended while still within the geometry\n * of the element, and no other element (like scroller) has \"stolen\" touch\n * lock (\"responder\") (Typically you bounce the element).\n *\n * A good tap interaction isn't as simple as you might think. There should be a\n * slight delay before showing a highlight when starting a touch. If a\n * subsequent touch move exceeds the boundary of the element, it should\n * unhighlight, but if that same touch is brought back within the boundary, it\n * should rehighlight again. A touch can move in and out of that boundary\n * several times, each time toggling highlighting, but a \"press\" is only\n * triggered if that touch ends while within the element's boundary and no\n * scroller (or anything else) has stolen the lock on touches.\n *\n * To create a new type of component that handles interaction using the\n * `Touchable` mixin, do the following:\n *\n * - Initialize the `Touchable` state.\n *\n * getInitialState: function() {\n * return merge(this.touchableGetInitialState(), yourComponentState);\n * }\n *\n * - Choose the rendered component who's touches should start the interactive\n * sequence. On that rendered node, forward all `Touchable` responder\n * handlers. You can choose any rendered node you like. Choose a node whose\n * hit target you'd like to instigate the interaction sequence:\n *\n * // In render function:\n * return (\n * \n * \n * Even though the hit detection/interactions are triggered by the\n * wrapping (typically larger) node, we usually end up implementing\n * custom logic that highlights this inner one.\n * \n *
\n * );\n *\n * - You may set up your own handlers for each of these events, so long as you\n * also invoke the `touchable*` handlers inside of your custom handler.\n *\n * - Implement the handlers on your component class in order to provide\n * feedback to the user. See documentation for each of these class methods\n * that you should implement.\n *\n * touchableHandlePress: function() {\n * this.performBounceAnimation(); // or whatever you want to do.\n * },\n * touchableHandleActivePressIn: function() {\n * this.beginHighlighting(...); // Whatever you like to convey activation\n * },\n * touchableHandleActivePressOut: function() {\n * this.endHighlighting(...); // Whatever you like to convey deactivation\n * },\n *\n * - There are more advanced methods you can implement (see documentation below):\n * touchableGetHighlightDelayMS: function() {\n * return 20;\n * }\n * // In practice, *always* use a predeclared constant (conserve memory).\n * touchableGetPressRectOffset: function() {\n * return {top: 20, left: 20, right: 20, bottom: 100};\n * }\n */\n\n/**\n * Touchable states.\n */\nconst States = keyMirror({\n NOT_RESPONDER: null, // Not the responder\n RESPONDER_INACTIVE_PRESS_IN: null, // Responder, inactive, in the `PressRect`\n RESPONDER_INACTIVE_PRESS_OUT: null, // Responder, inactive, out of `PressRect`\n RESPONDER_ACTIVE_PRESS_IN: null, // Responder, active, in the `PressRect`\n RESPONDER_ACTIVE_PRESS_OUT: null, // Responder, active, out of `PressRect`\n RESPONDER_ACTIVE_LONG_PRESS_IN: null, // Responder, active, in the `PressRect`, after long press threshold\n RESPONDER_ACTIVE_LONG_PRESS_OUT: null, // Responder, active, out of `PressRect`, after long press threshold\n ERROR: null,\n});\n\n/**\n * Quick lookup map for states that are considered to be \"active\"\n */\nconst IsActive = {\n RESPONDER_ACTIVE_PRESS_OUT: true,\n RESPONDER_ACTIVE_PRESS_IN: true,\n};\n\n/**\n * Quick lookup for states that are considered to be \"pressing\" and are\n * therefore eligible to result in a \"selection\" if the press stops.\n */\nconst IsPressingIn = {\n RESPONDER_INACTIVE_PRESS_IN: true,\n RESPONDER_ACTIVE_PRESS_IN: true,\n RESPONDER_ACTIVE_LONG_PRESS_IN: true,\n};\n\nconst IsLongPressingIn = {\n RESPONDER_ACTIVE_LONG_PRESS_IN: true,\n};\n\n/**\n * Inputs to the state machine.\n */\nconst Signals = keyMirror({\n DELAY: null,\n RESPONDER_GRANT: null,\n RESPONDER_RELEASE: null,\n RESPONDER_TERMINATED: null,\n ENTER_PRESS_RECT: null,\n LEAVE_PRESS_RECT: null,\n LONG_PRESS_DETECTED: null,\n});\n\n/**\n * Mapping from States x Signals => States\n */\nconst Transitions = {\n NOT_RESPONDER: {\n DELAY: States.ERROR,\n RESPONDER_GRANT: States.RESPONDER_INACTIVE_PRESS_IN,\n RESPONDER_RELEASE: States.ERROR,\n RESPONDER_TERMINATED: States.ERROR,\n ENTER_PRESS_RECT: States.ERROR,\n LEAVE_PRESS_RECT: States.ERROR,\n LONG_PRESS_DETECTED: States.ERROR,\n },\n RESPONDER_INACTIVE_PRESS_IN: {\n DELAY: States.RESPONDER_ACTIVE_PRESS_IN,\n RESPONDER_GRANT: States.ERROR,\n RESPONDER_RELEASE: States.NOT_RESPONDER,\n RESPONDER_TERMINATED: States.NOT_RESPONDER,\n ENTER_PRESS_RECT: States.RESPONDER_INACTIVE_PRESS_IN,\n LEAVE_PRESS_RECT: States.RESPONDER_INACTIVE_PRESS_OUT,\n LONG_PRESS_DETECTED: States.ERROR,\n },\n RESPONDER_INACTIVE_PRESS_OUT: {\n DELAY: States.RESPONDER_ACTIVE_PRESS_OUT,\n RESPONDER_GRANT: States.ERROR,\n RESPONDER_RELEASE: States.NOT_RESPONDER,\n RESPONDER_TERMINATED: States.NOT_RESPONDER,\n ENTER_PRESS_RECT: States.RESPONDER_INACTIVE_PRESS_IN,\n LEAVE_PRESS_RECT: States.RESPONDER_INACTIVE_PRESS_OUT,\n LONG_PRESS_DETECTED: States.ERROR,\n },\n RESPONDER_ACTIVE_PRESS_IN: {\n DELAY: States.ERROR,\n RESPONDER_GRANT: States.ERROR,\n RESPONDER_RELEASE: States.NOT_RESPONDER,\n RESPONDER_TERMINATED: States.NOT_RESPONDER,\n ENTER_PRESS_RECT: States.RESPONDER_ACTIVE_PRESS_IN,\n LEAVE_PRESS_RECT: States.RESPONDER_ACTIVE_PRESS_OUT,\n LONG_PRESS_DETECTED: States.RESPONDER_ACTIVE_LONG_PRESS_IN,\n },\n RESPONDER_ACTIVE_PRESS_OUT: {\n DELAY: States.ERROR,\n RESPONDER_GRANT: States.ERROR,\n RESPONDER_RELEASE: States.NOT_RESPONDER,\n RESPONDER_TERMINATED: States.NOT_RESPONDER,\n ENTER_PRESS_RECT: States.RESPONDER_ACTIVE_PRESS_IN,\n LEAVE_PRESS_RECT: States.RESPONDER_ACTIVE_PRESS_OUT,\n LONG_PRESS_DETECTED: States.ERROR,\n },\n RESPONDER_ACTIVE_LONG_PRESS_IN: {\n DELAY: States.ERROR,\n RESPONDER_GRANT: States.ERROR,\n RESPONDER_RELEASE: States.NOT_RESPONDER,\n RESPONDER_TERMINATED: States.NOT_RESPONDER,\n ENTER_PRESS_RECT: States.RESPONDER_ACTIVE_LONG_PRESS_IN,\n LEAVE_PRESS_RECT: States.RESPONDER_ACTIVE_LONG_PRESS_OUT,\n LONG_PRESS_DETECTED: States.RESPONDER_ACTIVE_LONG_PRESS_IN,\n },\n RESPONDER_ACTIVE_LONG_PRESS_OUT: {\n DELAY: States.ERROR,\n RESPONDER_GRANT: States.ERROR,\n RESPONDER_RELEASE: States.NOT_RESPONDER,\n RESPONDER_TERMINATED: States.NOT_RESPONDER,\n ENTER_PRESS_RECT: States.RESPONDER_ACTIVE_LONG_PRESS_IN,\n LEAVE_PRESS_RECT: States.RESPONDER_ACTIVE_LONG_PRESS_OUT,\n LONG_PRESS_DETECTED: States.ERROR,\n },\n error: {\n DELAY: States.NOT_RESPONDER,\n RESPONDER_GRANT: States.RESPONDER_INACTIVE_PRESS_IN,\n RESPONDER_RELEASE: States.NOT_RESPONDER,\n RESPONDER_TERMINATED: States.NOT_RESPONDER,\n ENTER_PRESS_RECT: States.NOT_RESPONDER,\n LEAVE_PRESS_RECT: States.NOT_RESPONDER,\n LONG_PRESS_DETECTED: States.NOT_RESPONDER,\n },\n};\n\n// ==== Typical Constants for integrating into UI components ====\n// var HIT_EXPAND_PX = 20;\n// var HIT_VERT_OFFSET_PX = 10;\nconst HIGHLIGHT_DELAY_MS = 130;\n\nconst PRESS_EXPAND_PX = 20;\n\nconst LONG_PRESS_THRESHOLD = 500;\n\nconst LONG_PRESS_DELAY_MS = LONG_PRESS_THRESHOLD - HIGHLIGHT_DELAY_MS;\n\nconst LONG_PRESS_ALLOWED_MOVEMENT = 10;\n\n// Default amount \"active\" region protrudes beyond box\n\n/**\n * By convention, methods prefixed with underscores are meant to be @private,\n * and not @protected. Mixers shouldn't access them - not even to provide them\n * as callback handlers.\n *\n *\n * ========== Geometry =========\n * `Touchable` only assumes that there exists a `HitRect` node. The `PressRect`\n * is an abstract box that is extended beyond the `HitRect`.\n *\n * +--------------------------+\n * | | - \"Start\" events in `HitRect` cause `HitRect`\n * | +--------------------+ | to become the responder.\n * | | +--------------+ | | - `HitRect` is typically expanded around\n * | | | | | | the `VisualRect`, but shifted downward.\n * | | | VisualRect | | | - After pressing down, after some delay,\n * | | | | | | and before letting up, the Visual React\n * | | +--------------+ | | will become \"active\". This makes it eligible\n * | | HitRect | | for being highlighted (so long as the\n * | +--------------------+ | press remains in the `PressRect`).\n * | PressRect o |\n * +----------------------|---+\n * Out Region |\n * +-----+ This gap between the `HitRect` and\n * `PressRect` allows a touch to move far away\n * from the original hit rect, and remain\n * highlighted, and eligible for a \"Press\".\n * Customize this via\n * `touchableGetPressRectOffset()`.\n *\n *\n *\n * ======= State Machine =======\n *\n * +-------------+ <---+ RESPONDER_RELEASE\n * |NOT_RESPONDER|\n * +-------------+ <---+ RESPONDER_TERMINATED\n * +\n * | RESPONDER_GRANT (HitRect)\n * v\n * +---------------------------+ DELAY +-------------------------+ T + DELAY +------------------------------+\n * |RESPONDER_INACTIVE_PRESS_IN|+-------->|RESPONDER_ACTIVE_PRESS_IN| +------------> |RESPONDER_ACTIVE_LONG_PRESS_IN|\n * +---------------------------+ +-------------------------+ +------------------------------+\n * + ^ + ^ + ^\n * |LEAVE_ |ENTER_ |LEAVE_ |ENTER_ |LEAVE_ |ENTER_\n * |PRESS_RECT |PRESS_RECT |PRESS_RECT |PRESS_RECT |PRESS_RECT |PRESS_RECT\n * | | | | | |\n * v + v + v +\n * +----------------------------+ DELAY +--------------------------+ +-------------------------------+\n * |RESPONDER_INACTIVE_PRESS_OUT|+------->|RESPONDER_ACTIVE_PRESS_OUT| |RESPONDER_ACTIVE_LONG_PRESS_OUT|\n * +----------------------------+ +--------------------------+ +-------------------------------+\n *\n * T + DELAY => LONG_PRESS_DELAY_MS + DELAY\n *\n * Not drawn are the side effects of each transition. The most important side\n * effect is the `touchableHandlePress` abstract method invocation that occurs\n * when a responder is released while in either of the \"Press\" states.\n *\n * The other important side effects are the highlight abstract method\n * invocations (internal callbacks) to be implemented by the mixer.\n *\n *\n * @lends Touchable.prototype\n */\nconst TouchableMixin = {\n componentDidMount: function() {\n if (!Platform.isTV) {\n return;\n }\n\n this._tvEventHandler = new TVEventHandler();\n this._tvEventHandler.enable(this, function(cmp, evt) {\n const myTag = ReactNative.findNodeHandle(cmp);\n evt.dispatchConfig = {};\n if (myTag === evt.tag) {\n if (evt.eventType === 'focus') {\n cmp.touchableHandleFocus(evt);\n } else if (evt.eventType === 'blur') {\n cmp.touchableHandleBlur(evt);\n } else if (evt.eventType === 'select') {\n cmp.touchableHandlePress &&\n !cmp.props.disabled &&\n cmp.touchableHandlePress(evt);\n }\n }\n });\n },\n\n /**\n * Clear all timeouts on unmount\n */\n componentWillUnmount: function() {\n if (this._tvEventHandler) {\n this._tvEventHandler.disable();\n delete this._tvEventHandler;\n }\n this.touchableDelayTimeout && clearTimeout(this.touchableDelayTimeout);\n this.longPressDelayTimeout && clearTimeout(this.longPressDelayTimeout);\n this.pressOutDelayTimeout && clearTimeout(this.pressOutDelayTimeout);\n },\n\n /**\n * It's prefer that mixins determine state in this way, having the class\n * explicitly mix the state in the one and only `getInitialState` method.\n *\n * @return {object} State object to be placed inside of\n * `this.state.touchable`.\n */\n touchableGetInitialState: function() {\n return {\n touchable: {touchState: undefined, responderID: null},\n };\n },\n\n // ==== Hooks to Gesture Responder system ====\n /**\n * Must return true if embedded in a native platform scroll view.\n */\n touchableHandleResponderTerminationRequest: function() {\n return !this.props.rejectResponderTermination;\n },\n\n /**\n * Must return true to start the process of `Touchable`.\n */\n touchableHandleStartShouldSetResponder: function() {\n return !this.props.disabled;\n },\n\n /**\n * Return true to cancel press on long press.\n */\n touchableLongPressCancelsPress: function() {\n return true;\n },\n\n /**\n * Place as callback for a DOM element's `onResponderGrant` event.\n * @param {SyntheticEvent} e Synthetic event from event system.\n *\n */\n touchableHandleResponderGrant: function(e) {\n const dispatchID = e.currentTarget;\n // Since e is used in a callback invoked on another event loop\n // (as in setTimeout etc), we need to call e.persist() on the\n // event to make sure it doesn't get reused in the event object pool.\n e.persist();\n\n this.pressOutDelayTimeout && clearTimeout(this.pressOutDelayTimeout);\n this.pressOutDelayTimeout = null;\n\n this.state.touchable.touchState = States.NOT_RESPONDER;\n this.state.touchable.responderID = dispatchID;\n this._receiveSignal(Signals.RESPONDER_GRANT, e);\n let delayMS =\n this.touchableGetHighlightDelayMS !== undefined\n ? Math.max(this.touchableGetHighlightDelayMS(), 0)\n : HIGHLIGHT_DELAY_MS;\n delayMS = isNaN(delayMS) ? HIGHLIGHT_DELAY_MS : delayMS;\n if (delayMS !== 0) {\n this.touchableDelayTimeout = setTimeout(\n this._handleDelay.bind(this, e),\n delayMS,\n );\n } else {\n this._handleDelay(e);\n }\n\n let longDelayMS =\n this.touchableGetLongPressDelayMS !== undefined\n ? Math.max(this.touchableGetLongPressDelayMS(), 10)\n : LONG_PRESS_DELAY_MS;\n longDelayMS = isNaN(longDelayMS) ? LONG_PRESS_DELAY_MS : longDelayMS;\n this.longPressDelayTimeout = setTimeout(\n this._handleLongDelay.bind(this, e),\n longDelayMS + delayMS,\n );\n },\n\n /**\n * Place as callback for a DOM element's `onResponderRelease` event.\n */\n touchableHandleResponderRelease: function(e) {\n this._receiveSignal(Signals.RESPONDER_RELEASE, e);\n },\n\n /**\n * Place as callback for a DOM element's `onResponderTerminate` event.\n */\n touchableHandleResponderTerminate: function(e) {\n this._receiveSignal(Signals.RESPONDER_TERMINATED, e);\n },\n\n /**\n * Place as callback for a DOM element's `onResponderMove` event.\n */\n touchableHandleResponderMove: function(e) {\n // Not enough time elapsed yet, wait for highlight -\n // this is just a perf optimization.\n if (\n this.state.touchable.touchState === States.RESPONDER_INACTIVE_PRESS_IN\n ) {\n return;\n }\n\n // Measurement may not have returned yet.\n if (!this.state.touchable.positionOnActivate) {\n return;\n }\n\n const positionOnActivate = this.state.touchable.positionOnActivate;\n const dimensionsOnActivate = this.state.touchable.dimensionsOnActivate;\n const pressRectOffset = this.touchableGetPressRectOffset\n ? this.touchableGetPressRectOffset()\n : {\n left: PRESS_EXPAND_PX,\n right: PRESS_EXPAND_PX,\n top: PRESS_EXPAND_PX,\n bottom: PRESS_EXPAND_PX,\n };\n\n let pressExpandLeft = pressRectOffset.left;\n let pressExpandTop = pressRectOffset.top;\n let pressExpandRight = pressRectOffset.right;\n let pressExpandBottom = pressRectOffset.bottom;\n\n const hitSlop = this.touchableGetHitSlop\n ? this.touchableGetHitSlop()\n : null;\n\n if (hitSlop) {\n pressExpandLeft += hitSlop.left;\n pressExpandTop += hitSlop.top;\n pressExpandRight += hitSlop.right;\n pressExpandBottom += hitSlop.bottom;\n }\n\n const touch = TouchEventUtils.extractSingleTouch(e.nativeEvent);\n const pageX = touch && touch.pageX;\n const pageY = touch && touch.pageY;\n\n if (this.pressInLocation) {\n const movedDistance = this._getDistanceBetweenPoints(\n pageX,\n pageY,\n this.pressInLocation.pageX,\n this.pressInLocation.pageY,\n );\n if (movedDistance > LONG_PRESS_ALLOWED_MOVEMENT) {\n this._cancelLongPressDelayTimeout();\n }\n }\n\n const isTouchWithinActive =\n pageX > positionOnActivate.left - pressExpandLeft &&\n pageY > positionOnActivate.top - pressExpandTop &&\n pageX <\n positionOnActivate.left +\n dimensionsOnActivate.width +\n pressExpandRight &&\n pageY <\n positionOnActivate.top +\n dimensionsOnActivate.height +\n pressExpandBottom;\n if (isTouchWithinActive) {\n this._receiveSignal(Signals.ENTER_PRESS_RECT, e);\n const curState = this.state.touchable.touchState;\n if (curState === States.RESPONDER_INACTIVE_PRESS_IN) {\n // fix for t7967420\n this._cancelLongPressDelayTimeout();\n }\n } else {\n this._cancelLongPressDelayTimeout();\n this._receiveSignal(Signals.LEAVE_PRESS_RECT, e);\n }\n },\n\n /**\n * Invoked when the item receives focus. Mixers might override this to\n * visually distinguish the `VisualRect` so that the user knows that it\n * currently has the focus. Most platforms only support a single element being\n * focused at a time, in which case there may have been a previously focused\n * element that was blurred just prior to this.\n */\n touchableHandleFocus: function(e: Event) {\n this.props.onFocus && this.props.onFocus(e);\n },\n\n /**\n * Invoked when the item loses focus. Mixers might override this to\n * visually distinguish the `VisualRect` so that the user knows that it\n * no longer has focus. Most platforms only support a single element being\n * focused at a time, in which case the focus may have moved to another.\n */\n touchableHandleBlur: function(e: Event) {\n this.props.onBlur && this.props.onBlur(e);\n },\n\n // ==== Abstract Application Callbacks ====\n\n /**\n * Invoked when the item should be highlighted. Mixers should implement this\n * to visually distinguish the `VisualRect` so that the user knows that\n * releasing a touch will result in a \"selection\" (analog to click).\n *\n * @abstract\n * touchableHandleActivePressIn: function,\n */\n\n /**\n * Invoked when the item is \"active\" (in that it is still eligible to become\n * a \"select\") but the touch has left the `PressRect`. Usually the mixer will\n * want to unhighlight the `VisualRect`. If the user (while pressing) moves\n * back into the `PressRect` `touchableHandleActivePressIn` will be invoked\n * again and the mixer should probably highlight the `VisualRect` again. This\n * event will not fire on an `touchEnd/mouseUp` event, only move events while\n * the user is depressing the mouse/touch.\n *\n * @abstract\n * touchableHandleActivePressOut: function\n */\n\n /**\n * Invoked when the item is \"selected\" - meaning the interaction ended by\n * letting up while the item was either in the state\n * `RESPONDER_ACTIVE_PRESS_IN` or `RESPONDER_INACTIVE_PRESS_IN`.\n *\n * @abstract\n * touchableHandlePress: function\n */\n\n /**\n * Invoked when the item is long pressed - meaning the interaction ended by\n * letting up while the item was in `RESPONDER_ACTIVE_LONG_PRESS_IN`. If\n * `touchableHandleLongPress` is *not* provided, `touchableHandlePress` will\n * be called as it normally is. If `touchableHandleLongPress` is provided, by\n * default any `touchableHandlePress` callback will not be invoked. To\n * override this default behavior, override `touchableLongPressCancelsPress`\n * to return false. As a result, `touchableHandlePress` will be called when\n * lifting up, even if `touchableHandleLongPress` has also been called.\n *\n * @abstract\n * touchableHandleLongPress: function\n */\n\n /**\n * Returns the number of millis to wait before triggering a highlight.\n *\n * @abstract\n * touchableGetHighlightDelayMS: function\n */\n\n /**\n * Returns the amount to extend the `HitRect` into the `PressRect`. Positive\n * numbers mean the size expands outwards.\n *\n * @abstract\n * touchableGetPressRectOffset: function\n */\n\n // ==== Internal Logic ====\n\n /**\n * Measures the `HitRect` node on activation. The Bounding rectangle is with\n * respect to viewport - not page, so adding the `pageXOffset/pageYOffset`\n * should result in points that are in the same coordinate system as an\n * event's `globalX/globalY` data values.\n *\n * - Consider caching this for the lifetime of the component, or possibly\n * being able to share this cache between any `ScrollMap` view.\n *\n * @sideeffects\n * @private\n */\n _remeasureMetricsOnActivation: function() {\n const tag = this.state.touchable.responderID;\n if (tag == null) {\n return;\n }\n\n UIManager.measure(tag, this._handleQueryLayout);\n },\n\n _handleQueryLayout: function(l, t, w, h, globalX, globalY) {\n //don't do anything UIManager failed to measure node\n if (!l && !t && !w && !h && !globalX && !globalY) {\n return;\n }\n this.state.touchable.positionOnActivate &&\n Position.release(this.state.touchable.positionOnActivate);\n this.state.touchable.dimensionsOnActivate &&\n BoundingDimensions.release(this.state.touchable.dimensionsOnActivate);\n this.state.touchable.positionOnActivate = Position.getPooled(\n globalX,\n globalY,\n );\n this.state.touchable.dimensionsOnActivate = BoundingDimensions.getPooled(\n w,\n h,\n );\n },\n\n _handleDelay: function(e) {\n this.touchableDelayTimeout = null;\n this._receiveSignal(Signals.DELAY, e);\n },\n\n _handleLongDelay: function(e) {\n this.longPressDelayTimeout = null;\n const curState = this.state.touchable.touchState;\n if (\n curState !== States.RESPONDER_ACTIVE_PRESS_IN &&\n curState !== States.RESPONDER_ACTIVE_LONG_PRESS_IN\n ) {\n console.error(\n 'Attempted to transition from state `' +\n curState +\n '` to `' +\n States.RESPONDER_ACTIVE_LONG_PRESS_IN +\n '`, which is not supported. This is ' +\n 'most likely due to `Touchable.longPressDelayTimeout` not being cancelled.',\n );\n } else {\n this._receiveSignal(Signals.LONG_PRESS_DETECTED, e);\n }\n },\n\n /**\n * Receives a state machine signal, performs side effects of the transition\n * and stores the new state. Validates the transition as well.\n *\n * @param {Signals} signal State machine signal.\n * @throws Error if invalid state transition or unrecognized signal.\n * @sideeffects\n */\n _receiveSignal: function(signal, e) {\n const responderID = this.state.touchable.responderID;\n const curState = this.state.touchable.touchState;\n const nextState = Transitions[curState] && Transitions[curState][signal];\n if (!responderID && signal === Signals.RESPONDER_RELEASE) {\n return;\n }\n if (!nextState) {\n throw new Error(\n 'Unrecognized signal `' +\n signal +\n '` or state `' +\n curState +\n '` for Touchable responder `' +\n responderID +\n '`',\n );\n }\n if (nextState === States.ERROR) {\n throw new Error(\n 'Touchable cannot transition from `' +\n curState +\n '` to `' +\n signal +\n '` for responder `' +\n responderID +\n '`',\n );\n }\n if (curState !== nextState) {\n this._performSideEffectsForTransition(curState, nextState, signal, e);\n this.state.touchable.touchState = nextState;\n }\n },\n\n _cancelLongPressDelayTimeout: function() {\n this.longPressDelayTimeout && clearTimeout(this.longPressDelayTimeout);\n this.longPressDelayTimeout = null;\n },\n\n _isHighlight: function(state) {\n return (\n state === States.RESPONDER_ACTIVE_PRESS_IN ||\n state === States.RESPONDER_ACTIVE_LONG_PRESS_IN\n );\n },\n\n _savePressInLocation: function(e) {\n const touch = TouchEventUtils.extractSingleTouch(e.nativeEvent);\n const pageX = touch && touch.pageX;\n const pageY = touch && touch.pageY;\n const locationX = touch && touch.locationX;\n const locationY = touch && touch.locationY;\n this.pressInLocation = {pageX, pageY, locationX, locationY};\n },\n\n _getDistanceBetweenPoints: function(aX, aY, bX, bY) {\n const deltaX = aX - bX;\n const deltaY = aY - bY;\n return Math.sqrt(deltaX * deltaX + deltaY * deltaY);\n },\n\n /**\n * Will perform a transition between touchable states, and identify any\n * highlighting or unhighlighting that must be performed for this particular\n * transition.\n *\n * @param {States} curState Current Touchable state.\n * @param {States} nextState Next Touchable state.\n * @param {Signal} signal Signal that triggered the transition.\n * @param {Event} e Native event.\n * @sideeffects\n */\n _performSideEffectsForTransition: function(curState, nextState, signal, e) {\n const curIsHighlight = this._isHighlight(curState);\n const newIsHighlight = this._isHighlight(nextState);\n\n const isFinalSignal =\n signal === Signals.RESPONDER_TERMINATED ||\n signal === Signals.RESPONDER_RELEASE;\n\n if (isFinalSignal) {\n this._cancelLongPressDelayTimeout();\n }\n\n if (!IsActive[curState] && IsActive[nextState]) {\n this._remeasureMetricsOnActivation();\n }\n\n if (IsPressingIn[curState] && signal === Signals.LONG_PRESS_DETECTED) {\n this.touchableHandleLongPress && this.touchableHandleLongPress(e);\n }\n\n if (newIsHighlight && !curIsHighlight) {\n this._startHighlight(e);\n } else if (!newIsHighlight && curIsHighlight) {\n this._endHighlight(e);\n }\n\n if (IsPressingIn[curState] && signal === Signals.RESPONDER_RELEASE) {\n const hasLongPressHandler = !!this.props.onLongPress;\n const pressIsLongButStillCallOnPress =\n IsLongPressingIn[curState] && // We *are* long pressing.. // But either has no long handler\n (!hasLongPressHandler || !this.touchableLongPressCancelsPress()); // or we're told to ignore it.\n\n const shouldInvokePress =\n !IsLongPressingIn[curState] || pressIsLongButStillCallOnPress;\n if (shouldInvokePress && this.touchableHandlePress) {\n if (!newIsHighlight && !curIsHighlight) {\n // we never highlighted because of delay, but we should highlight now\n this._startHighlight(e);\n this._endHighlight(e);\n }\n if (Platform.OS === 'android') {\n this._playTouchSound();\n }\n this.touchableHandlePress(e);\n }\n }\n\n this.touchableDelayTimeout && clearTimeout(this.touchableDelayTimeout);\n this.touchableDelayTimeout = null;\n },\n\n _playTouchSound: function() {\n UIManager.playTouchSound();\n },\n\n _startHighlight: function(e) {\n this._savePressInLocation(e);\n this.touchableHandleActivePressIn && this.touchableHandleActivePressIn(e);\n },\n\n _endHighlight: function(e) {\n if (this.touchableHandleActivePressOut) {\n if (\n this.touchableGetPressOutDelayMS &&\n this.touchableGetPressOutDelayMS()\n ) {\n this.pressOutDelayTimeout = setTimeout(() => {\n this.touchableHandleActivePressOut(e);\n }, this.touchableGetPressOutDelayMS());\n } else {\n this.touchableHandleActivePressOut(e);\n }\n }\n },\n};\n\nconst Touchable = {\n Mixin: TouchableMixin,\n TOUCH_TARGET_DEBUG: false, // Highlights all touchable targets. Toggle with Inspector.\n /**\n * Renders a debugging overlay to visualize touch target with hitSlop (might not work on Android).\n */\n renderDebugView: ({color, hitSlop}) => {\n if (!Touchable.TOUCH_TARGET_DEBUG) {\n return null;\n }\n if (!__DEV__) {\n throw Error(\n 'Touchable.TOUCH_TARGET_DEBUG should not be enabled in prod!',\n );\n }\n const debugHitSlopStyle = {};\n hitSlop = hitSlop || {top: 0, bottom: 0, left: 0, right: 0};\n for (const key in hitSlop) {\n debugHitSlopStyle[key] = -hitSlop[key];\n }\n const hexColor =\n '#' + ('00000000' + normalizeColor(color).toString(16)).substr(-8);\n return (\n \n );\n },\n};\n\nmodule.exports = Touchable;\n","/**\n * Copyright (c) 2015-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n */\n\n'use strict';\n\nconst PooledClass = require('PooledClass');\n\nconst twoArgumentPooler = PooledClass.twoArgumentPooler;\n\n/**\n * PooledClass representing the bounding rectangle of a region.\n *\n * @param {number} width Width of bounding rectangle.\n * @param {number} height Height of bounding rectangle.\n * @constructor BoundingDimensions\n */\nfunction BoundingDimensions(width, height) {\n this.width = width;\n this.height = height;\n}\n\nBoundingDimensions.prototype.destructor = function() {\n this.width = null;\n this.height = null;\n};\n\n/**\n * @param {HTMLElement} element Element to return `BoundingDimensions` for.\n * @return {BoundingDimensions} Bounding dimensions of `element`.\n */\nBoundingDimensions.getPooledFromElement = function(element) {\n return BoundingDimensions.getPooled(\n element.offsetWidth,\n element.offsetHeight,\n );\n};\n\nPooledClass.addPoolingTo(BoundingDimensions, twoArgumentPooler);\n\nmodule.exports = BoundingDimensions;\n","/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n * @flow\n */\n\n'use strict';\n\nconst invariant = require('fbjs/lib/invariant');\n\n/**\n * Static poolers. Several custom versions for each potential number of\n * arguments. A completely generic pooler is easy to implement, but would\n * require accessing the `arguments` object. In each of these, `this` refers to\n * the Class itself, not an instance. If any others are needed, simply add them\n * here, or in their own files.\n */\nconst oneArgumentPooler = function(copyFieldsFrom) {\n const Klass = this;\n if (Klass.instancePool.length) {\n const instance = Klass.instancePool.pop();\n Klass.call(instance, copyFieldsFrom);\n return instance;\n } else {\n return new Klass(copyFieldsFrom);\n }\n};\n\nconst twoArgumentPooler = function(a1, a2) {\n const Klass = this;\n if (Klass.instancePool.length) {\n const instance = Klass.instancePool.pop();\n Klass.call(instance, a1, a2);\n return instance;\n } else {\n return new Klass(a1, a2);\n }\n};\n\nconst threeArgumentPooler = function(a1, a2, a3) {\n const Klass = this;\n if (Klass.instancePool.length) {\n const instance = Klass.instancePool.pop();\n Klass.call(instance, a1, a2, a3);\n return instance;\n } else {\n return new Klass(a1, a2, a3);\n }\n};\n\nconst fourArgumentPooler = function(a1, a2, a3, a4) {\n const Klass = this;\n if (Klass.instancePool.length) {\n const instance = Klass.instancePool.pop();\n Klass.call(instance, a1, a2, a3, a4);\n return instance;\n } else {\n return new Klass(a1, a2, a3, a4);\n }\n};\n\nconst standardReleaser = function(instance) {\n const Klass = this;\n invariant(\n instance instanceof Klass,\n 'Trying to release an instance into a pool of a different type.',\n );\n instance.destructor();\n if (Klass.instancePool.length < Klass.poolSize) {\n Klass.instancePool.push(instance);\n }\n};\n\nconst DEFAULT_POOL_SIZE = 10;\nconst DEFAULT_POOLER = oneArgumentPooler;\n\ntype Pooler = any;\n\n/**\n * Augments `CopyConstructor` to be a poolable class, augmenting only the class\n * itself (statically) not adding any prototypical fields. Any CopyConstructor\n * you give this may have a `poolSize` property, and will look for a\n * prototypical `destructor` on instances.\n *\n * @param {Function} CopyConstructor Constructor that can be used to reset.\n * @param {Function} pooler Customizable pooler.\n */\nconst addPoolingTo = function(\n CopyConstructor: Class,\n pooler: Pooler,\n): Class & {\n getPooled(\n ...args: $ReadOnlyArray\n ): /* arguments of the constructor */ T,\n release(instance: mixed): void,\n} {\n // Casting as any so that flow ignores the actual implementation and trusts\n // it to match the type we declared\n const NewKlass = (CopyConstructor: any);\n NewKlass.instancePool = [];\n NewKlass.getPooled = pooler || DEFAULT_POOLER;\n if (!NewKlass.poolSize) {\n NewKlass.poolSize = DEFAULT_POOL_SIZE;\n }\n NewKlass.release = standardReleaser;\n return NewKlass;\n};\n\nconst PooledClass = {\n addPoolingTo: addPoolingTo,\n oneArgumentPooler: (oneArgumentPooler: Pooler),\n twoArgumentPooler: (twoArgumentPooler: Pooler),\n threeArgumentPooler: (threeArgumentPooler: Pooler),\n fourArgumentPooler: (fourArgumentPooler: Pooler),\n};\n\nmodule.exports = PooledClass;\n","/**\n * Copyright (c) 2015-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n */\n\n'use strict';\n\nconst PooledClass = require('PooledClass');\n\nconst twoArgumentPooler = PooledClass.twoArgumentPooler;\n\n/**\n * Position does not expose methods for construction via an `HTMLDOMElement`,\n * because it isn't meaningful to construct such a thing without first defining\n * a frame of reference.\n *\n * @param {number} windowStartKey Key that window starts at.\n * @param {number} windowEndKey Key that window ends at.\n */\nfunction Position(left, top) {\n this.left = left;\n this.top = top;\n}\n\nPosition.prototype.destructor = function() {\n this.left = null;\n this.top = null;\n};\n\nPooledClass.addPoolingTo(Position, twoArgumentPooler);\n\nmodule.exports = Position;\n","/**\n * Copyright (c) 2015-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n * @flow\n */\n\n'use strict';\n\nconst Platform = require('Platform');\nconst TVNavigationEventEmitter = require('NativeModules')\n .TVNavigationEventEmitter;\nconst NativeEventEmitter = require('NativeEventEmitter');\n\nfunction TVEventHandler() {\n this.__nativeTVNavigationEventListener = null;\n this.__nativeTVNavigationEventEmitter = null;\n}\n\nTVEventHandler.prototype.enable = function(\n component: ?any,\n callback: Function,\n) {\n if (Platform.OS === 'ios' && !TVNavigationEventEmitter) {\n return;\n }\n\n this.__nativeTVNavigationEventEmitter = new NativeEventEmitter(\n TVNavigationEventEmitter,\n );\n this.__nativeTVNavigationEventListener = this.__nativeTVNavigationEventEmitter.addListener(\n 'onHWKeyEvent',\n data => {\n if (callback) {\n callback(component, data);\n }\n },\n );\n};\n\nTVEventHandler.prototype.disable = function() {\n if (this.__nativeTVNavigationEventListener) {\n this.__nativeTVNavigationEventListener.remove();\n delete this.__nativeTVNavigationEventListener;\n }\n if (this.__nativeTVNavigationEventEmitter) {\n delete this.__nativeTVNavigationEventEmitter;\n }\n};\n\nmodule.exports = TVEventHandler;\n","\"use strict\";\n\n/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n */\nvar TouchEventUtils = {\n /**\n * Utility function for common case of extracting out the primary touch from a\n * touch event.\n * - `touchEnd` events usually do not have the `touches` property.\n * http://stackoverflow.com/questions/3666929/\n * mobile-sarai-touchend-event-not-firing-when-last-touch-is-removed\n *\n * @param {Event} nativeEvent Native event that may or may not be a touch.\n * @return {TouchesObject?} an object with pageX and pageY or null.\n */\n extractSingleTouch: function extractSingleTouch(nativeEvent) {\n var touches = nativeEvent.touches;\n var changedTouches = nativeEvent.changedTouches;\n var hasTouches = touches && touches.length > 0;\n var hasChangedTouches = changedTouches && changedTouches.length > 0;\n return !hasTouches && hasChangedTouches ? changedTouches[0] : hasTouches ? touches[0] : nativeEvent;\n }\n};\nmodule.exports = TouchEventUtils;","\"use strict\";\n\n/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * \n */\nvar nullthrows = function nullthrows(x) {\n if (x != null) {\n return x;\n }\n\n throw new Error(\"Got unexpected null or undefined\");\n};\n\nmodule.exports = nullthrows;","/**\n * Copyright (c) 2015-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n */\n\n'use strict';\n\nconst Platform = require('Platform');\nconst React = require('React');\nconst PropTypes = require('prop-types');\nconst ReactNative = require('ReactNative');\nconst Touchable = require('Touchable');\nconst TouchableWithoutFeedback = require('TouchableWithoutFeedback');\nconst UIManager = require('UIManager');\nconst View = require('View');\n\nconst createReactClass = require('create-react-class');\nconst ensurePositiveDelayProps = require('ensurePositiveDelayProps');\nconst processColor = require('processColor');\n\nconst rippleBackgroundPropType = PropTypes.shape({\n type: PropTypes.oneOf(['RippleAndroid']),\n color: PropTypes.number,\n borderless: PropTypes.bool,\n});\n\nconst themeAttributeBackgroundPropType = PropTypes.shape({\n type: PropTypes.oneOf(['ThemeAttrAndroid']),\n attribute: PropTypes.string.isRequired,\n});\n\nconst backgroundPropType = PropTypes.oneOfType([\n rippleBackgroundPropType,\n themeAttributeBackgroundPropType,\n]);\n\ntype Event = Object;\n\nconst PRESS_RETENTION_OFFSET = {top: 20, left: 20, right: 20, bottom: 30};\n\n/**\n * A wrapper for making views respond properly to touches (Android only).\n * On Android this component uses native state drawable to display touch\n * feedback.\n *\n * At the moment it only supports having a single View instance as a child\n * node, as it's implemented by replacing that View with another instance of\n * RCTView node with some additional properties set.\n *\n * Background drawable of native feedback touchable can be customized with\n * `background` property.\n *\n * Example:\n *\n * ```\n * renderButton: function() {\n * return (\n * \n * \n * Button\n * \n * \n * );\n * },\n * ```\n */\n\nconst TouchableNativeFeedback = createReactClass({\n displayName: 'TouchableNativeFeedback',\n propTypes: {\n ...TouchableWithoutFeedback.propTypes,\n\n /**\n * Determines the type of background drawable that's going to be used to\n * display feedback. It takes an object with `type` property and extra data\n * depending on the `type`. It's recommended to use one of the static\n * methods to generate that dictionary.\n */\n background: backgroundPropType,\n\n /**\n * TV preferred focus (see documentation for the View component).\n */\n hasTVPreferredFocus: PropTypes.bool,\n\n /**\n * Set to true to add the ripple effect to the foreground of the view, instead of the\n * background. This is useful if one of your child views has a background of its own, or you're\n * e.g. displaying images, and you don't want the ripple to be covered by them.\n *\n * Check TouchableNativeFeedback.canUseNativeForeground() first, as this is only available on\n * Android 6.0 and above. If you try to use this on older versions you will get a warning and\n * fallback to background.\n */\n useForeground: PropTypes.bool,\n },\n\n statics: {\n /**\n * Creates an object that represents android theme's default background for\n * selectable elements (?android:attr/selectableItemBackground).\n */\n SelectableBackground: function() {\n return {type: 'ThemeAttrAndroid', attribute: 'selectableItemBackground'};\n },\n /**\n * Creates an object that represent android theme's default background for borderless\n * selectable elements (?android:attr/selectableItemBackgroundBorderless).\n * Available on android API level 21+.\n */\n SelectableBackgroundBorderless: function() {\n return {\n type: 'ThemeAttrAndroid',\n attribute: 'selectableItemBackgroundBorderless',\n };\n },\n /**\n * Creates an object that represents ripple drawable with specified color (as a\n * string). If property `borderless` evaluates to true the ripple will\n * render outside of the view bounds (see native actionbar buttons as an\n * example of that behavior). This background type is available on Android\n * API level 21+.\n *\n * @param color The ripple color\n * @param borderless If the ripple can render outside it's bounds\n */\n Ripple: function(color: string, borderless: boolean) {\n return {\n type: 'RippleAndroid',\n color: processColor(color),\n borderless: borderless,\n };\n },\n\n canUseNativeForeground: function() {\n return Platform.OS === 'android' && Platform.Version >= 23;\n },\n },\n\n mixins: [Touchable.Mixin],\n\n getDefaultProps: function() {\n return {\n background: this.SelectableBackground(),\n };\n },\n\n getInitialState: function() {\n return this.touchableGetInitialState();\n },\n\n componentDidMount: function() {\n ensurePositiveDelayProps(this.props);\n },\n\n UNSAFE_componentWillReceiveProps: function(nextProps) {\n ensurePositiveDelayProps(nextProps);\n },\n\n /**\n * `Touchable.Mixin` self callbacks. The mixin will invoke these if they are\n * defined on your component.\n */\n touchableHandleActivePressIn: function(e: Event) {\n this.props.onPressIn && this.props.onPressIn(e);\n this._dispatchPressedStateChange(true);\n if (this.pressInLocation) {\n this._dispatchHotspotUpdate(\n this.pressInLocation.locationX,\n this.pressInLocation.locationY,\n );\n }\n },\n\n touchableHandleActivePressOut: function(e: Event) {\n this.props.onPressOut && this.props.onPressOut(e);\n this._dispatchPressedStateChange(false);\n },\n\n touchableHandlePress: function(e: Event) {\n this.props.onPress && this.props.onPress(e);\n },\n\n touchableHandleLongPress: function(e: Event) {\n this.props.onLongPress && this.props.onLongPress(e);\n },\n\n touchableGetPressRectOffset: function() {\n // Always make sure to predeclare a constant!\n return this.props.pressRetentionOffset || PRESS_RETENTION_OFFSET;\n },\n\n touchableGetHitSlop: function() {\n return this.props.hitSlop;\n },\n\n touchableGetHighlightDelayMS: function() {\n return this.props.delayPressIn;\n },\n\n touchableGetLongPressDelayMS: function() {\n return this.props.delayLongPress;\n },\n\n touchableGetPressOutDelayMS: function() {\n return this.props.delayPressOut;\n },\n\n _handleResponderMove: function(e) {\n this.touchableHandleResponderMove(e);\n this._dispatchHotspotUpdate(\n e.nativeEvent.locationX,\n e.nativeEvent.locationY,\n );\n },\n\n _dispatchHotspotUpdate: function(destX, destY) {\n UIManager.dispatchViewManagerCommand(\n ReactNative.findNodeHandle(this),\n UIManager.RCTView.Commands.hotspotUpdate,\n [destX || 0, destY || 0],\n );\n },\n\n _dispatchPressedStateChange: function(pressed) {\n UIManager.dispatchViewManagerCommand(\n ReactNative.findNodeHandle(this),\n UIManager.RCTView.Commands.setPressed,\n [pressed],\n );\n },\n\n render: function() {\n const child = React.Children.only(this.props.children);\n let children = child.props.children;\n if (Touchable.TOUCH_TARGET_DEBUG && child.type === View) {\n if (!Array.isArray(children)) {\n children = [children];\n }\n children.push(\n Touchable.renderDebugView({\n color: 'brown',\n hitSlop: this.props.hitSlop,\n }),\n );\n }\n if (\n this.props.useForeground &&\n !TouchableNativeFeedback.canUseNativeForeground()\n ) {\n console.warn(\n 'Requested foreground ripple, but it is not available on this version of Android. ' +\n 'Consider calling TouchableNativeFeedback.canUseNativeForeground() and using a different ' +\n 'Touchable if the result is false.',\n );\n }\n const drawableProp =\n this.props.useForeground &&\n TouchableNativeFeedback.canUseNativeForeground()\n ? 'nativeForegroundAndroid'\n : 'nativeBackgroundAndroid';\n const childProps = {\n ...child.props,\n [drawableProp]: this.props.background,\n accessible: this.props.accessible !== false,\n accessibilityLabel: this.props.accessibilityLabel,\n accessibilityRole: this.props.accessibilityRole,\n accessibilityStates: this.props.accessibilityStates,\n children,\n testID: this.props.testID,\n onLayout: this.props.onLayout,\n hitSlop: this.props.hitSlop,\n isTVSelectable: true,\n hasTVPreferredFocus: this.props.hasTVPreferredFocus,\n onStartShouldSetResponder: this.touchableHandleStartShouldSetResponder,\n onResponderTerminationRequest: this\n .touchableHandleResponderTerminationRequest,\n onResponderGrant: this.touchableHandleResponderGrant,\n onResponderMove: this._handleResponderMove,\n onResponderRelease: this.touchableHandleResponderRelease,\n onResponderTerminate: this.touchableHandleResponderTerminate,\n };\n\n // We need to clone the actual element so that the ripple background drawable\n // can be applied directly to the background of this element rather than to\n // a wrapper view as done in other Touchable*\n return React.cloneElement(child, childProps);\n },\n});\n\nmodule.exports = TouchableNativeFeedback;\n","/**\n * Copyright (c) 2015-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n * @flow\n */\n\n'use strict';\n\nconst EdgeInsetsPropType = require('EdgeInsetsPropType');\nconst React = require('React');\nconst PropTypes = require('prop-types');\nconst TimerMixin = require('react-timer-mixin');\nconst Touchable = require('Touchable');\nconst View = require('View');\n\nconst createReactClass = require('create-react-class');\nconst ensurePositiveDelayProps = require('ensurePositiveDelayProps');\nconst warning = require('fbjs/lib/warning');\n\nconst {\n AccessibilityComponentTypes,\n AccessibilityRoles,\n AccessibilityStates,\n AccessibilityTraits,\n} = require('ViewAccessibility');\n\nimport type {PressEvent} from 'CoreEventTypes';\nimport type {EdgeInsetsProp} from 'EdgeInsetsPropType';\nimport type {\n AccessibilityComponentType,\n AccessibilityRole,\n AccessibilityStates as AccessibilityStatesFlow,\n AccessibilityTraits as AccessibilityTraitsFlow,\n} from 'ViewAccessibility';\n\nconst PRESS_RETENTION_OFFSET = {top: 20, left: 20, right: 20, bottom: 30};\n\nexport type Props = $ReadOnly<{|\n accessible?: ?boolean,\n accessibilityComponentType?: ?AccessibilityComponentType,\n accessibilityLabel?:\n | null\n | React$PropType$Primitive\n | string\n | Array\n | any,\n accessibilityHint?: string,\n accessibilityRole?: ?AccessibilityRole,\n accessibilityStates?: ?AccessibilityStatesFlow,\n accessibilityTraits?: ?AccessibilityTraitsFlow,\n children?: ?React.Node,\n delayLongPress?: ?number,\n delayPressIn?: ?number,\n delayPressOut?: ?number,\n disabled?: ?boolean,\n hitSlop?: ?EdgeInsetsProp,\n nativeID?: ?string,\n onLayout?: ?Function,\n onLongPress?: ?Function,\n onPress?: ?Function,\n onPressIn?: ?Function,\n onPressOut?: ?Function,\n pressRetentionOffset?: ?EdgeInsetsProp,\n rejectResponderTermination?: ?boolean,\n testID?: ?string,\n|}>;\n\n/**\n * Do not use unless you have a very good reason. All elements that\n * respond to press should have a visual feedback when touched.\n *\n * TouchableWithoutFeedback supports only one child.\n * If you wish to have several child components, wrap them in a View.\n */\nconst TouchableWithoutFeedback = ((createReactClass({\n displayName: 'TouchableWithoutFeedback',\n mixins: [TimerMixin, Touchable.Mixin],\n\n propTypes: {\n accessible: PropTypes.bool,\n accessibilityLabel: PropTypes.node,\n accessibilityHint: PropTypes.string,\n accessibilityComponentType: PropTypes.oneOf(AccessibilityComponentTypes),\n accessibilityRole: PropTypes.oneOf(AccessibilityRoles),\n accessibilityStates: PropTypes.arrayOf(\n PropTypes.oneOf(AccessibilityStates),\n ),\n accessibilityTraits: PropTypes.oneOfType([\n PropTypes.oneOf(AccessibilityTraits),\n PropTypes.arrayOf(PropTypes.oneOf(AccessibilityTraits)),\n ]),\n /**\n * When `accessible` is true (which is the default) this may be called when\n * the OS-specific concept of \"focus\" occurs. Some platforms may not have\n * the concept of focus.\n */\n onFocus: PropTypes.func,\n /**\n * When `accessible` is true (which is the default) this may be called when\n * the OS-specific concept of \"blur\" occurs, meaning the element lost focus.\n * Some platforms may not have the concept of blur.\n */\n onBlur: PropTypes.func,\n /**\n * If true, disable all interactions for this component.\n */\n disabled: PropTypes.bool,\n /**\n * Called when the touch is released, but not if cancelled (e.g. by a scroll\n * that steals the responder lock).\n */\n onPress: PropTypes.func,\n /**\n * Called as soon as the touchable element is pressed and invoked even before onPress.\n * This can be useful when making network requests.\n */\n onPressIn: PropTypes.func,\n /**\n * Called as soon as the touch is released even before onPress.\n */\n onPressOut: PropTypes.func,\n /**\n * Invoked on mount and layout changes with\n *\n * `{nativeEvent: {layout: {x, y, width, height}}}`\n */\n onLayout: PropTypes.func,\n\n onLongPress: PropTypes.func,\n\n nativeID: PropTypes.string,\n testID: PropTypes.string,\n\n /**\n * Delay in ms, from the start of the touch, before onPressIn is called.\n */\n delayPressIn: PropTypes.number,\n /**\n * Delay in ms, from the release of the touch, before onPressOut is called.\n */\n delayPressOut: PropTypes.number,\n /**\n * Delay in ms, from onPressIn, before onLongPress is called.\n */\n delayLongPress: PropTypes.number,\n /**\n * When the scroll view is disabled, this defines how far your touch may\n * move off of the button, before deactivating the button. Once deactivated,\n * try moving it back and you'll see that the button is once again\n * reactivated! Move it back and forth several times while the scroll view\n * is disabled. Ensure you pass in a constant to reduce memory allocations.\n */\n pressRetentionOffset: EdgeInsetsPropType,\n /**\n * This defines how far your touch can start away from the button. This is\n * added to `pressRetentionOffset` when moving off of the button.\n * ** NOTE **\n * The touch area never extends past the parent view bounds and the Z-index\n * of sibling views always takes precedence if a touch hits two overlapping\n * views.\n */\n hitSlop: EdgeInsetsPropType,\n },\n\n getInitialState: function() {\n return this.touchableGetInitialState();\n },\n\n componentDidMount: function() {\n ensurePositiveDelayProps(this.props);\n },\n\n UNSAFE_componentWillReceiveProps: function(nextProps: Object) {\n ensurePositiveDelayProps(nextProps);\n },\n\n /**\n * `Touchable.Mixin` self callbacks. The mixin will invoke these if they are\n * defined on your component.\n */\n touchableHandlePress: function(e: PressEvent) {\n this.props.onPress && this.props.onPress(e);\n },\n\n touchableHandleActivePressIn: function(e: PressEvent) {\n this.props.onPressIn && this.props.onPressIn(e);\n },\n\n touchableHandleActivePressOut: function(e: PressEvent) {\n this.props.onPressOut && this.props.onPressOut(e);\n },\n\n touchableHandleLongPress: function(e: PressEvent) {\n this.props.onLongPress && this.props.onLongPress(e);\n },\n\n touchableGetPressRectOffset: function(): typeof PRESS_RETENTION_OFFSET {\n // $FlowFixMe Invalid prop usage\n return this.props.pressRetentionOffset || PRESS_RETENTION_OFFSET;\n },\n\n touchableGetHitSlop: function(): ?Object {\n return this.props.hitSlop;\n },\n\n touchableGetHighlightDelayMS: function(): number {\n return this.props.delayPressIn || 0;\n },\n\n touchableGetLongPressDelayMS: function(): number {\n return this.props.delayLongPress === 0\n ? 0\n : this.props.delayLongPress || 500;\n },\n\n touchableGetPressOutDelayMS: function(): number {\n return this.props.delayPressOut || 0;\n },\n\n render: function(): React.Element {\n // Note(avik): remove dynamic typecast once Flow has been upgraded\n // $FlowFixMe(>=0.41.0)\n const child = React.Children.only(this.props.children);\n let children = child.props.children;\n if (Touchable.TOUCH_TARGET_DEBUG && child.type === View) {\n children = React.Children.toArray(children);\n children.push(\n Touchable.renderDebugView({color: 'red', hitSlop: this.props.hitSlop}),\n );\n }\n return (React: any).cloneElement(child, {\n accessible: this.props.accessible !== false,\n accessibilityLabel: this.props.accessibilityLabel,\n accessibilityHint: this.props.accessibilityHint,\n accessibilityComponentType: this.props.accessibilityComponentType,\n accessibilityRole: this.props.accessibilityRole,\n accessibilityStates: this.props.accessibilityStates,\n accessibilityTraits: this.props.accessibilityTraits,\n nativeID: this.props.nativeID,\n testID: this.props.testID,\n onLayout: this.props.onLayout,\n hitSlop: this.props.hitSlop,\n onStartShouldSetResponder: this.touchableHandleStartShouldSetResponder,\n onResponderTerminationRequest: this\n .touchableHandleResponderTerminationRequest,\n onResponderGrant: this.touchableHandleResponderGrant,\n onResponderMove: this.touchableHandleResponderMove,\n onResponderRelease: this.touchableHandleResponderRelease,\n onResponderTerminate: this.touchableHandleResponderTerminate,\n children,\n });\n },\n}): any): React.ComponentType);\n\nmodule.exports = TouchableWithoutFeedback;\n","/*\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n */\n'use strict';\n\nvar GLOBAL = typeof window === 'undefined' ? global : window;\n\nvar setter = function(_setter, _clearer, array) {\n return function(callback, delta) {\n var id = _setter(function() {\n _clearer.call(this, id);\n callback.apply(this, arguments);\n }.bind(this), delta);\n\n if (!this[array]) {\n this[array] = [id];\n } else {\n this[array].push(id);\n }\n return id;\n };\n};\n\nvar clearer = function(_clearer, array) {\n return function(id) {\n if (this[array]) {\n var index = this[array].indexOf(id);\n if (index !== -1) {\n this[array].splice(index, 1);\n }\n }\n _clearer(id);\n };\n};\n\nvar _timeouts = 'TimerMixin_timeouts';\nvar _clearTimeout = clearer(GLOBAL.clearTimeout, _timeouts);\nvar _setTimeout = setter(GLOBAL.setTimeout, _clearTimeout, _timeouts);\n\nvar _intervals = 'TimerMixin_intervals';\nvar _clearInterval = clearer(GLOBAL.clearInterval, _intervals);\nvar _setInterval = setter(GLOBAL.setInterval, function() {/* noop */}, _intervals);\n\nvar _immediates = 'TimerMixin_immediates';\nvar _clearImmediate = clearer(GLOBAL.clearImmediate, _immediates);\nvar _setImmediate = setter(GLOBAL.setImmediate, _clearImmediate, _immediates);\n\nvar _rafs = 'TimerMixin_rafs';\nvar _cancelAnimationFrame = clearer(GLOBAL.cancelAnimationFrame, _rafs);\nvar _requestAnimationFrame = setter(GLOBAL.requestAnimationFrame, _cancelAnimationFrame, _rafs);\n\nvar TimerMixin = {\n componentWillUnmount: function() {\n this[_timeouts] && this[_timeouts].forEach(function(id) {\n GLOBAL.clearTimeout(id);\n });\n this[_timeouts] = null;\n this[_intervals] && this[_intervals].forEach(function(id) {\n GLOBAL.clearInterval(id);\n });\n this[_intervals] = null;\n this[_immediates] && this[_immediates].forEach(function(id) {\n GLOBAL.clearImmediate(id);\n });\n this[_immediates] = null;\n this[_rafs] && this[_rafs].forEach(function(id) {\n GLOBAL.cancelAnimationFrame(id);\n });\n this[_rafs] = null;\n },\n\n setTimeout: _setTimeout,\n clearTimeout: _clearTimeout,\n\n setInterval: _setInterval,\n clearInterval: _clearInterval,\n\n setImmediate: _setImmediate,\n clearImmediate: _clearImmediate,\n\n requestAnimationFrame: _requestAnimationFrame,\n cancelAnimationFrame: _cancelAnimationFrame,\n};\n\nmodule.exports = TimerMixin;\n","/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n */\n\n'use strict';\n\nvar React = require('react');\nvar factory = require('./factory');\n\nif (typeof React === 'undefined') {\n throw Error(\n 'create-react-class could not find the React object. If you are using script tags, ' +\n 'make sure that React is being loaded before create-react-class.'\n );\n}\n\n// Hack to grab NoopUpdateQueue from isomorphic React\nvar ReactNoopUpdateQueue = new React.Component().updater;\n\nmodule.exports = factory(\n React.Component,\n React.isValidElement,\n ReactNoopUpdateQueue\n);\n","/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n */\n\n'use strict';\n\nvar _assign = require('object-assign');\n\nvar emptyObject = require('fbjs/lib/emptyObject');\nvar _invariant = require('fbjs/lib/invariant');\n\nif (process.env.NODE_ENV !== 'production') {\n var warning = require('fbjs/lib/warning');\n}\n\nvar MIXINS_KEY = 'mixins';\n\n// Helper function to allow the creation of anonymous functions which do not\n// have .name set to the name of the variable being assigned to.\nfunction identity(fn) {\n return fn;\n}\n\nvar ReactPropTypeLocationNames;\nif (process.env.NODE_ENV !== 'production') {\n ReactPropTypeLocationNames = {\n prop: 'prop',\n context: 'context',\n childContext: 'child context'\n };\n} else {\n ReactPropTypeLocationNames = {};\n}\n\nfunction factory(ReactComponent, isValidElement, ReactNoopUpdateQueue) {\n /**\n * Policies that describe methods in `ReactClassInterface`.\n */\n\n var injectedMixins = [];\n\n /**\n * Composite components are higher-level components that compose other composite\n * or host components.\n *\n * To create a new type of `ReactClass`, pass a specification of\n * your new class to `React.createClass`. The only requirement of your class\n * specification is that you implement a `render` method.\n *\n * var MyComponent = React.createClass({\n * render: function() {\n * return
Hello World
;\n * }\n * });\n *\n * The class specification supports a specific protocol of methods that have\n * special meaning (e.g. `render`). See `ReactClassInterface` for\n * more the comprehensive protocol. Any other properties and methods in the\n * class specification will be available on the prototype.\n *\n * @interface ReactClassInterface\n * @internal\n */\n var ReactClassInterface = {\n /**\n * An array of Mixin objects to include when defining your component.\n *\n * @type {array}\n * @optional\n */\n mixins: 'DEFINE_MANY',\n\n /**\n * An object containing properties and methods that should be defined on\n * the component's constructor instead of its prototype (static methods).\n *\n * @type {object}\n * @optional\n */\n statics: 'DEFINE_MANY',\n\n /**\n * Definition of prop types for this component.\n *\n * @type {object}\n * @optional\n */\n propTypes: 'DEFINE_MANY',\n\n /**\n * Definition of context types for this component.\n *\n * @type {object}\n * @optional\n */\n contextTypes: 'DEFINE_MANY',\n\n /**\n * Definition of context types this component sets for its children.\n *\n * @type {object}\n * @optional\n */\n childContextTypes: 'DEFINE_MANY',\n\n // ==== Definition methods ====\n\n /**\n * Invoked when the component is mounted. Values in the mapping will be set on\n * `this.props` if that prop is not specified (i.e. using an `in` check).\n *\n * This method is invoked before `getInitialState` and therefore cannot rely\n * on `this.state` or use `this.setState`.\n *\n * @return {object}\n * @optional\n */\n getDefaultProps: 'DEFINE_MANY_MERGED',\n\n /**\n * Invoked once before the component is mounted. The return value will be used\n * as the initial value of `this.state`.\n *\n * getInitialState: function() {\n * return {\n * isOn: false,\n * fooBaz: new BazFoo()\n * }\n * }\n *\n * @return {object}\n * @optional\n */\n getInitialState: 'DEFINE_MANY_MERGED',\n\n /**\n * @return {object}\n * @optional\n */\n getChildContext: 'DEFINE_MANY_MERGED',\n\n /**\n * Uses props from `this.props` and state from `this.state` to render the\n * structure of the component.\n *\n * No guarantees are made about when or how often this method is invoked, so\n * it must not have side effects.\n *\n * render: function() {\n * var name = this.props.name;\n * return
Hello, {name}!
;\n * }\n *\n * @return {ReactComponent}\n * @required\n */\n render: 'DEFINE_ONCE',\n\n // ==== Delegate methods ====\n\n /**\n * Invoked when the component is initially created and about to be mounted.\n * This may have side effects, but any external subscriptions or data created\n * by this method must be cleaned up in `componentWillUnmount`.\n *\n * @optional\n */\n componentWillMount: 'DEFINE_MANY',\n\n /**\n * Invoked when the component has been mounted and has a DOM representation.\n * However, there is no guarantee that the DOM node is in the document.\n *\n * Use this as an opportunity to operate on the DOM when the component has\n * been mounted (initialized and rendered) for the first time.\n *\n * @param {DOMElement} rootNode DOM element representing the component.\n * @optional\n */\n componentDidMount: 'DEFINE_MANY',\n\n /**\n * Invoked before the component receives new props.\n *\n * Use this as an opportunity to react to a prop transition by updating the\n * state using `this.setState`. Current props are accessed via `this.props`.\n *\n * componentWillReceiveProps: function(nextProps, nextContext) {\n * this.setState({\n * likesIncreasing: nextProps.likeCount > this.props.likeCount\n * });\n * }\n *\n * NOTE: There is no equivalent `componentWillReceiveState`. An incoming prop\n * transition may cause a state change, but the opposite is not true. If you\n * need it, you are probably looking for `componentWillUpdate`.\n *\n * @param {object} nextProps\n * @optional\n */\n componentWillReceiveProps: 'DEFINE_MANY',\n\n /**\n * Invoked while deciding if the component should be updated as a result of\n * receiving new props, state and/or context.\n *\n * Use this as an opportunity to `return false` when you're certain that the\n * transition to the new props/state/context will not require a component\n * update.\n *\n * shouldComponentUpdate: function(nextProps, nextState, nextContext) {\n * return !equal(nextProps, this.props) ||\n * !equal(nextState, this.state) ||\n * !equal(nextContext, this.context);\n * }\n *\n * @param {object} nextProps\n * @param {?object} nextState\n * @param {?object} nextContext\n * @return {boolean} True if the component should update.\n * @optional\n */\n shouldComponentUpdate: 'DEFINE_ONCE',\n\n /**\n * Invoked when the component is about to update due to a transition from\n * `this.props`, `this.state` and `this.context` to `nextProps`, `nextState`\n * and `nextContext`.\n *\n * Use this as an opportunity to perform preparation before an update occurs.\n *\n * NOTE: You **cannot** use `this.setState()` in this method.\n *\n * @param {object} nextProps\n * @param {?object} nextState\n * @param {?object} nextContext\n * @param {ReactReconcileTransaction} transaction\n * @optional\n */\n componentWillUpdate: 'DEFINE_MANY',\n\n /**\n * Invoked when the component's DOM representation has been updated.\n *\n * Use this as an opportunity to operate on the DOM when the component has\n * been updated.\n *\n * @param {object} prevProps\n * @param {?object} prevState\n * @param {?object} prevContext\n * @param {DOMElement} rootNode DOM element representing the component.\n * @optional\n */\n componentDidUpdate: 'DEFINE_MANY',\n\n /**\n * Invoked when the component is about to be removed from its parent and have\n * its DOM representation destroyed.\n *\n * Use this as an opportunity to deallocate any external resources.\n *\n * NOTE: There is no `componentDidUnmount` since your component will have been\n * destroyed by that point.\n *\n * @optional\n */\n componentWillUnmount: 'DEFINE_MANY',\n\n /**\n * Replacement for (deprecated) `componentWillMount`.\n *\n * @optional\n */\n UNSAFE_componentWillMount: 'DEFINE_MANY',\n\n /**\n * Replacement for (deprecated) `componentWillReceiveProps`.\n *\n * @optional\n */\n UNSAFE_componentWillReceiveProps: 'DEFINE_MANY',\n\n /**\n * Replacement for (deprecated) `componentWillUpdate`.\n *\n * @optional\n */\n UNSAFE_componentWillUpdate: 'DEFINE_MANY',\n\n // ==== Advanced methods ====\n\n /**\n * Updates the component's currently mounted DOM representation.\n *\n * By default, this implements React's rendering and reconciliation algorithm.\n * Sophisticated clients may wish to override this.\n *\n * @param {ReactReconcileTransaction} transaction\n * @internal\n * @overridable\n */\n updateComponent: 'OVERRIDE_BASE'\n };\n\n /**\n * Similar to ReactClassInterface but for static methods.\n */\n var ReactClassStaticInterface = {\n /**\n * This method is invoked after a component is instantiated and when it\n * receives new props. Return an object to update state in response to\n * prop changes. Return null to indicate no change to state.\n *\n * If an object is returned, its keys will be merged into the existing state.\n *\n * @return {object || null}\n * @optional\n */\n getDerivedStateFromProps: 'DEFINE_MANY_MERGED'\n };\n\n /**\n * Mapping from class specification keys to special processing functions.\n *\n * Although these are declared like instance properties in the specification\n * when defining classes using `React.createClass`, they are actually static\n * and are accessible on the constructor instead of the prototype. Despite\n * being static, they must be defined outside of the \"statics\" key under\n * which all other static methods are defined.\n */\n var RESERVED_SPEC_KEYS = {\n displayName: function(Constructor, displayName) {\n Constructor.displayName = displayName;\n },\n mixins: function(Constructor, mixins) {\n if (mixins) {\n for (var i = 0; i < mixins.length; i++) {\n mixSpecIntoComponent(Constructor, mixins[i]);\n }\n }\n },\n childContextTypes: function(Constructor, childContextTypes) {\n if (process.env.NODE_ENV !== 'production') {\n validateTypeDef(Constructor, childContextTypes, 'childContext');\n }\n Constructor.childContextTypes = _assign(\n {},\n Constructor.childContextTypes,\n childContextTypes\n );\n },\n contextTypes: function(Constructor, contextTypes) {\n if (process.env.NODE_ENV !== 'production') {\n validateTypeDef(Constructor, contextTypes, 'context');\n }\n Constructor.contextTypes = _assign(\n {},\n Constructor.contextTypes,\n contextTypes\n );\n },\n /**\n * Special case getDefaultProps which should move into statics but requires\n * automatic merging.\n */\n getDefaultProps: function(Constructor, getDefaultProps) {\n if (Constructor.getDefaultProps) {\n Constructor.getDefaultProps = createMergedResultFunction(\n Constructor.getDefaultProps,\n getDefaultProps\n );\n } else {\n Constructor.getDefaultProps = getDefaultProps;\n }\n },\n propTypes: function(Constructor, propTypes) {\n if (process.env.NODE_ENV !== 'production') {\n validateTypeDef(Constructor, propTypes, 'prop');\n }\n Constructor.propTypes = _assign({}, Constructor.propTypes, propTypes);\n },\n statics: function(Constructor, statics) {\n mixStaticSpecIntoComponent(Constructor, statics);\n },\n autobind: function() {}\n };\n\n function validateTypeDef(Constructor, typeDef, location) {\n for (var propName in typeDef) {\n if (typeDef.hasOwnProperty(propName)) {\n // use a warning instead of an _invariant so components\n // don't show up in prod but only in __DEV__\n if (process.env.NODE_ENV !== 'production') {\n warning(\n typeof typeDef[propName] === 'function',\n '%s: %s type `%s` is invalid; it must be a function, usually from ' +\n 'React.PropTypes.',\n Constructor.displayName || 'ReactClass',\n ReactPropTypeLocationNames[location],\n propName\n );\n }\n }\n }\n }\n\n function validateMethodOverride(isAlreadyDefined, name) {\n var specPolicy = ReactClassInterface.hasOwnProperty(name)\n ? ReactClassInterface[name]\n : null;\n\n // Disallow overriding of base class methods unless explicitly allowed.\n if (ReactClassMixin.hasOwnProperty(name)) {\n _invariant(\n specPolicy === 'OVERRIDE_BASE',\n 'ReactClassInterface: You are attempting to override ' +\n '`%s` from your class specification. Ensure that your method names ' +\n 'do not overlap with React methods.',\n name\n );\n }\n\n // Disallow defining methods more than once unless explicitly allowed.\n if (isAlreadyDefined) {\n _invariant(\n specPolicy === 'DEFINE_MANY' || specPolicy === 'DEFINE_MANY_MERGED',\n 'ReactClassInterface: You are attempting to define ' +\n '`%s` on your component more than once. This conflict may be due ' +\n 'to a mixin.',\n name\n );\n }\n }\n\n /**\n * Mixin helper which handles policy validation and reserved\n * specification keys when building React classes.\n */\n function mixSpecIntoComponent(Constructor, spec) {\n if (!spec) {\n if (process.env.NODE_ENV !== 'production') {\n var typeofSpec = typeof spec;\n var isMixinValid = typeofSpec === 'object' && spec !== null;\n\n if (process.env.NODE_ENV !== 'production') {\n warning(\n isMixinValid,\n \"%s: You're attempting to include a mixin that is either null \" +\n 'or not an object. Check the mixins included by the component, ' +\n 'as well as any mixins they include themselves. ' +\n 'Expected object but got %s.',\n Constructor.displayName || 'ReactClass',\n spec === null ? null : typeofSpec\n );\n }\n }\n\n return;\n }\n\n _invariant(\n typeof spec !== 'function',\n \"ReactClass: You're attempting to \" +\n 'use a component class or function as a mixin. Instead, just use a ' +\n 'regular object.'\n );\n _invariant(\n !isValidElement(spec),\n \"ReactClass: You're attempting to \" +\n 'use a component as a mixin. Instead, just use a regular object.'\n );\n\n var proto = Constructor.prototype;\n var autoBindPairs = proto.__reactAutoBindPairs;\n\n // By handling mixins before any other properties, we ensure the same\n // chaining order is applied to methods with DEFINE_MANY policy, whether\n // mixins are listed before or after these methods in the spec.\n if (spec.hasOwnProperty(MIXINS_KEY)) {\n RESERVED_SPEC_KEYS.mixins(Constructor, spec.mixins);\n }\n\n for (var name in spec) {\n if (!spec.hasOwnProperty(name)) {\n continue;\n }\n\n if (name === MIXINS_KEY) {\n // We have already handled mixins in a special case above.\n continue;\n }\n\n var property = spec[name];\n var isAlreadyDefined = proto.hasOwnProperty(name);\n validateMethodOverride(isAlreadyDefined, name);\n\n if (RESERVED_SPEC_KEYS.hasOwnProperty(name)) {\n RESERVED_SPEC_KEYS[name](Constructor, property);\n } else {\n // Setup methods on prototype:\n // The following member methods should not be automatically bound:\n // 1. Expected ReactClass methods (in the \"interface\").\n // 2. Overridden methods (that were mixed in).\n var isReactClassMethod = ReactClassInterface.hasOwnProperty(name);\n var isFunction = typeof property === 'function';\n var shouldAutoBind =\n isFunction &&\n !isReactClassMethod &&\n !isAlreadyDefined &&\n spec.autobind !== false;\n\n if (shouldAutoBind) {\n autoBindPairs.push(name, property);\n proto[name] = property;\n } else {\n if (isAlreadyDefined) {\n var specPolicy = ReactClassInterface[name];\n\n // These cases should already be caught by validateMethodOverride.\n _invariant(\n isReactClassMethod &&\n (specPolicy === 'DEFINE_MANY_MERGED' ||\n specPolicy === 'DEFINE_MANY'),\n 'ReactClass: Unexpected spec policy %s for key %s ' +\n 'when mixing in component specs.',\n specPolicy,\n name\n );\n\n // For methods which are defined more than once, call the existing\n // methods before calling the new property, merging if appropriate.\n if (specPolicy === 'DEFINE_MANY_MERGED') {\n proto[name] = createMergedResultFunction(proto[name], property);\n } else if (specPolicy === 'DEFINE_MANY') {\n proto[name] = createChainedFunction(proto[name], property);\n }\n } else {\n proto[name] = property;\n if (process.env.NODE_ENV !== 'production') {\n // Add verbose displayName to the function, which helps when looking\n // at profiling tools.\n if (typeof property === 'function' && spec.displayName) {\n proto[name].displayName = spec.displayName + '_' + name;\n }\n }\n }\n }\n }\n }\n }\n\n function mixStaticSpecIntoComponent(Constructor, statics) {\n if (!statics) {\n return;\n }\n\n for (var name in statics) {\n var property = statics[name];\n if (!statics.hasOwnProperty(name)) {\n continue;\n }\n\n var isReserved = name in RESERVED_SPEC_KEYS;\n _invariant(\n !isReserved,\n 'ReactClass: You are attempting to define a reserved ' +\n 'property, `%s`, that shouldn\\'t be on the \"statics\" key. Define it ' +\n 'as an instance property instead; it will still be accessible on the ' +\n 'constructor.',\n name\n );\n\n var isAlreadyDefined = name in Constructor;\n if (isAlreadyDefined) {\n var specPolicy = ReactClassStaticInterface.hasOwnProperty(name)\n ? ReactClassStaticInterface[name]\n : null;\n\n _invariant(\n specPolicy === 'DEFINE_MANY_MERGED',\n 'ReactClass: You are attempting to define ' +\n '`%s` on your component more than once. This conflict may be ' +\n 'due to a mixin.',\n name\n );\n\n Constructor[name] = createMergedResultFunction(Constructor[name], property);\n\n return;\n }\n\n Constructor[name] = property;\n }\n }\n\n /**\n * Merge two objects, but throw if both contain the same key.\n *\n * @param {object} one The first object, which is mutated.\n * @param {object} two The second object\n * @return {object} one after it has been mutated to contain everything in two.\n */\n function mergeIntoWithNoDuplicateKeys(one, two) {\n _invariant(\n one && two && typeof one === 'object' && typeof two === 'object',\n 'mergeIntoWithNoDuplicateKeys(): Cannot merge non-objects.'\n );\n\n for (var key in two) {\n if (two.hasOwnProperty(key)) {\n _invariant(\n one[key] === undefined,\n 'mergeIntoWithNoDuplicateKeys(): ' +\n 'Tried to merge two objects with the same key: `%s`. This conflict ' +\n 'may be due to a mixin; in particular, this may be caused by two ' +\n 'getInitialState() or getDefaultProps() methods returning objects ' +\n 'with clashing keys.',\n key\n );\n one[key] = two[key];\n }\n }\n return one;\n }\n\n /**\n * Creates a function that invokes two functions and merges their return values.\n *\n * @param {function} one Function to invoke first.\n * @param {function} two Function to invoke second.\n * @return {function} Function that invokes the two argument functions.\n * @private\n */\n function createMergedResultFunction(one, two) {\n return function mergedResult() {\n var a = one.apply(this, arguments);\n var b = two.apply(this, arguments);\n if (a == null) {\n return b;\n } else if (b == null) {\n return a;\n }\n var c = {};\n mergeIntoWithNoDuplicateKeys(c, a);\n mergeIntoWithNoDuplicateKeys(c, b);\n return c;\n };\n }\n\n /**\n * Creates a function that invokes two functions and ignores their return vales.\n *\n * @param {function} one Function to invoke first.\n * @param {function} two Function to invoke second.\n * @return {function} Function that invokes the two argument functions.\n * @private\n */\n function createChainedFunction(one, two) {\n return function chainedFunction() {\n one.apply(this, arguments);\n two.apply(this, arguments);\n };\n }\n\n /**\n * Binds a method to the component.\n *\n * @param {object} component Component whose method is going to be bound.\n * @param {function} method Method to be bound.\n * @return {function} The bound method.\n */\n function bindAutoBindMethod(component, method) {\n var boundMethod = method.bind(component);\n if (process.env.NODE_ENV !== 'production') {\n boundMethod.__reactBoundContext = component;\n boundMethod.__reactBoundMethod = method;\n boundMethod.__reactBoundArguments = null;\n var componentName = component.constructor.displayName;\n var _bind = boundMethod.bind;\n boundMethod.bind = function(newThis) {\n for (\n var _len = arguments.length,\n args = Array(_len > 1 ? _len - 1 : 0),\n _key = 1;\n _key < _len;\n _key++\n ) {\n args[_key - 1] = arguments[_key];\n }\n\n // User is trying to bind() an autobound method; we effectively will\n // ignore the value of \"this\" that the user is trying to use, so\n // let's warn.\n if (newThis !== component && newThis !== null) {\n if (process.env.NODE_ENV !== 'production') {\n warning(\n false,\n 'bind(): React component methods may only be bound to the ' +\n 'component instance. See %s',\n componentName\n );\n }\n } else if (!args.length) {\n if (process.env.NODE_ENV !== 'production') {\n warning(\n false,\n 'bind(): You are binding a component method to the component. ' +\n 'React does this for you automatically in a high-performance ' +\n 'way, so you can safely remove this call. See %s',\n componentName\n );\n }\n return boundMethod;\n }\n var reboundMethod = _bind.apply(boundMethod, arguments);\n reboundMethod.__reactBoundContext = component;\n reboundMethod.__reactBoundMethod = method;\n reboundMethod.__reactBoundArguments = args;\n return reboundMethod;\n };\n }\n return boundMethod;\n }\n\n /**\n * Binds all auto-bound methods in a component.\n *\n * @param {object} component Component whose method is going to be bound.\n */\n function bindAutoBindMethods(component) {\n var pairs = component.__reactAutoBindPairs;\n for (var i = 0; i < pairs.length; i += 2) {\n var autoBindKey = pairs[i];\n var method = pairs[i + 1];\n component[autoBindKey] = bindAutoBindMethod(component, method);\n }\n }\n\n var IsMountedPreMixin = {\n componentDidMount: function() {\n this.__isMounted = true;\n }\n };\n\n var IsMountedPostMixin = {\n componentWillUnmount: function() {\n this.__isMounted = false;\n }\n };\n\n /**\n * Add more to the ReactClass base class. These are all legacy features and\n * therefore not already part of the modern ReactComponent.\n */\n var ReactClassMixin = {\n /**\n * TODO: This will be deprecated because state should always keep a consistent\n * type signature and the only use case for this, is to avoid that.\n */\n replaceState: function(newState, callback) {\n this.updater.enqueueReplaceState(this, newState, callback);\n },\n\n /**\n * Checks whether or not this composite component is mounted.\n * @return {boolean} True if mounted, false otherwise.\n * @protected\n * @final\n */\n isMounted: function() {\n if (process.env.NODE_ENV !== 'production') {\n warning(\n this.__didWarnIsMounted,\n '%s: isMounted is deprecated. Instead, make sure to clean up ' +\n 'subscriptions and pending requests in componentWillUnmount to ' +\n 'prevent memory leaks.',\n (this.constructor && this.constructor.displayName) ||\n this.name ||\n 'Component'\n );\n this.__didWarnIsMounted = true;\n }\n return !!this.__isMounted;\n }\n };\n\n var ReactClassComponent = function() {};\n _assign(\n ReactClassComponent.prototype,\n ReactComponent.prototype,\n ReactClassMixin\n );\n\n /**\n * Creates a composite component class given a class specification.\n * See https://facebook.github.io/react/docs/top-level-api.html#react.createclass\n *\n * @param {object} spec Class specification (which must define `render`).\n * @return {function} Component constructor function.\n * @public\n */\n function createClass(spec) {\n // To keep our warnings more understandable, we'll use a little hack here to\n // ensure that Constructor.name !== 'Constructor'. This makes sure we don't\n // unnecessarily identify a class without displayName as 'Constructor'.\n var Constructor = identity(function(props, context, updater) {\n // This constructor gets overridden by mocks. The argument is used\n // by mocks to assert on what gets mounted.\n\n if (process.env.NODE_ENV !== 'production') {\n warning(\n this instanceof Constructor,\n 'Something is calling a React component directly. Use a factory or ' +\n 'JSX instead. See: https://fb.me/react-legacyfactory'\n );\n }\n\n // Wire up auto-binding\n if (this.__reactAutoBindPairs.length) {\n bindAutoBindMethods(this);\n }\n\n this.props = props;\n this.context = context;\n this.refs = emptyObject;\n this.updater = updater || ReactNoopUpdateQueue;\n\n this.state = null;\n\n // ReactClasses doesn't have constructors. Instead, they use the\n // getInitialState and componentWillMount methods for initialization.\n\n var initialState = this.getInitialState ? this.getInitialState() : null;\n if (process.env.NODE_ENV !== 'production') {\n // We allow auto-mocks to proceed as if they're returning null.\n if (\n initialState === undefined &&\n this.getInitialState._isMockFunction\n ) {\n // This is probably bad practice. Consider warning here and\n // deprecating this convenience.\n initialState = null;\n }\n }\n _invariant(\n typeof initialState === 'object' && !Array.isArray(initialState),\n '%s.getInitialState(): must return an object or null',\n Constructor.displayName || 'ReactCompositeComponent'\n );\n\n this.state = initialState;\n });\n Constructor.prototype = new ReactClassComponent();\n Constructor.prototype.constructor = Constructor;\n Constructor.prototype.__reactAutoBindPairs = [];\n\n injectedMixins.forEach(mixSpecIntoComponent.bind(null, Constructor));\n\n mixSpecIntoComponent(Constructor, IsMountedPreMixin);\n mixSpecIntoComponent(Constructor, spec);\n mixSpecIntoComponent(Constructor, IsMountedPostMixin);\n\n // Initialize the defaultProps property after all mixins have been merged.\n if (Constructor.getDefaultProps) {\n Constructor.defaultProps = Constructor.getDefaultProps();\n }\n\n if (process.env.NODE_ENV !== 'production') {\n // This is a tag to indicate that the use of these method names is ok,\n // since it's used with createClass. If it's not, then it's likely a\n // mistake so we'll warn you to use the static property, property\n // initializer or constructor respectively.\n if (Constructor.getDefaultProps) {\n Constructor.getDefaultProps.isReactClassApproved = {};\n }\n if (Constructor.prototype.getInitialState) {\n Constructor.prototype.getInitialState.isReactClassApproved = {};\n }\n }\n\n _invariant(\n Constructor.prototype.render,\n 'createClass(...): Class specification must implement a `render` method.'\n );\n\n if (process.env.NODE_ENV !== 'production') {\n warning(\n !Constructor.prototype.componentShouldUpdate,\n '%s has a method called ' +\n 'componentShouldUpdate(). Did you mean shouldComponentUpdate()? ' +\n 'The name is phrased as a question because the function is ' +\n 'expected to return a value.',\n spec.displayName || 'A component'\n );\n warning(\n !Constructor.prototype.componentWillRecieveProps,\n '%s has a method called ' +\n 'componentWillRecieveProps(). Did you mean componentWillReceiveProps()?',\n spec.displayName || 'A component'\n );\n warning(\n !Constructor.prototype.UNSAFE_componentWillRecieveProps,\n '%s has a method called UNSAFE_componentWillRecieveProps(). ' +\n 'Did you mean UNSAFE_componentWillReceiveProps()?',\n spec.displayName || 'A component'\n );\n }\n\n // Reduce time spent doing lookups by setting these on the prototype.\n for (var methodName in ReactClassInterface) {\n if (!Constructor.prototype[methodName]) {\n Constructor.prototype[methodName] = null;\n }\n }\n\n return Constructor;\n }\n\n return createClass;\n}\n\nmodule.exports = factory;\n","/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n */\n\n'use strict';\n\nvar emptyObject = {};\n\nif (process.env.NODE_ENV !== 'production') {\n Object.freeze(emptyObject);\n}\n\nmodule.exports = emptyObject;","/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n */\n\n'use strict';\n\n/**\n * Use invariant() to assert state which your program assumes to be true.\n *\n * Provide sprintf-style format (only %s is supported) and arguments\n * to provide information about what broke and what you were\n * expecting.\n *\n * The invariant message will be stripped in production, but the invariant\n * will remain to ensure logic does not differ in production.\n */\n\nvar validateFormat = function validateFormat(format) {};\n\nif (process.env.NODE_ENV !== 'production') {\n validateFormat = function validateFormat(format) {\n if (format === undefined) {\n throw new Error('invariant requires an error message argument');\n }\n };\n}\n\nfunction invariant(condition, format, a, b, c, d, e, f) {\n validateFormat(format);\n\n if (!condition) {\n var error;\n if (format === undefined) {\n error = new Error('Minified exception occurred; use the non-minified dev environment ' + 'for the full error message and additional helpful warnings.');\n } else {\n var args = [a, b, c, d, e, f];\n var argIndex = 0;\n error = new Error(format.replace(/%s/g, function () {\n return args[argIndex++];\n }));\n error.name = 'Invariant Violation';\n }\n\n error.framesToPop = 1; // we don't care about invariant's own frame\n throw error;\n }\n}\n\nmodule.exports = invariant;","/**\n * Copyright (c) 2015-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n * @flow\n */\n\n'use strict';\n\nconst invariant = require('fbjs/lib/invariant');\n\nconst ensurePositiveDelayProps = function(props: any) {\n invariant(\n !(\n props.delayPressIn < 0 ||\n props.delayPressOut < 0 ||\n props.delayLongPress < 0\n ),\n 'Touchable components cannot have negative delay properties',\n );\n};\n\nmodule.exports = ensurePositiveDelayProps;\n","/**\n * Copyright (c) 2015-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n * @flow strict\n */\n\n'use strict';\n\nexport type AccessibilityTrait =\n | 'none'\n | 'button'\n | 'link'\n | 'header'\n | 'search'\n | 'image'\n | 'selected'\n | 'plays'\n | 'key'\n | 'text'\n | 'summary'\n | 'disabled'\n | 'frequentUpdates'\n | 'startsMedia'\n | 'adjustable'\n | 'allowsDirectInteraction'\n | 'pageTurn';\n\nexport type AccessibilityTraits =\n | AccessibilityTrait\n | $ReadOnlyArray;\n\nexport type AccessibilityComponentType =\n | 'none'\n | 'button'\n | 'radiobutton_checked'\n | 'radiobutton_unchecked';\n\nexport type AccessibilityRole =\n | 'none'\n | 'button'\n | 'link'\n | 'search'\n | 'image'\n | 'keyboardkey'\n | 'text'\n | 'adjustable'\n | 'imagebutton'\n | 'header'\n | 'summary';\n\nexport type AccessibilityState = 'selected' | 'disabled';\n\nexport type AccessibilityStates =\n | AccessibilityState\n | $ReadOnlyArray;\n\nmodule.exports = {\n AccessibilityTraits: [\n 'none',\n 'button',\n 'link',\n 'header',\n 'search',\n 'image',\n 'selected',\n 'plays',\n 'key',\n 'text',\n 'summary',\n 'disabled',\n 'frequentUpdates',\n 'startsMedia',\n 'adjustable',\n 'allowsDirectInteraction',\n 'pageTurn',\n ],\n AccessibilityComponentTypes: [\n 'none',\n 'button',\n 'radiobutton_checked',\n 'radiobutton_unchecked',\n ],\n AccessibilityRoles: [\n 'none',\n 'button',\n 'link',\n 'search',\n 'image',\n 'keyboardkey',\n 'text',\n 'adjustable',\n 'imagebutton',\n 'header',\n 'summary',\n ],\n AccessibilityStates: ['selected', 'disabled'],\n};\n","/**\n * Copyright (c) 2015-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n * @flow\n */\n\n'use strict';\n\nconst Animated = require('Animated');\nconst Easing = require('Easing');\nconst NativeMethodsMixin = require('NativeMethodsMixin');\nconst React = require('React');\nconst PropTypes = require('prop-types');\nconst TimerMixin = require('react-timer-mixin');\nconst Touchable = require('Touchable');\nconst TouchableWithoutFeedback = require('TouchableWithoutFeedback');\n\nconst createReactClass = require('create-react-class');\nconst ensurePositiveDelayProps = require('ensurePositiveDelayProps');\nconst flattenStyle = require('flattenStyle');\n\nimport type {Props as TouchableWithoutFeedbackProps} from 'TouchableWithoutFeedback';\nimport type {ViewStyleProp} from 'StyleSheet';\n\ntype Event = Object;\n\nconst PRESS_RETENTION_OFFSET = {top: 20, left: 20, right: 20, bottom: 30};\n\ntype TVProps = $ReadOnly<{|\n hasTVPreferredFocus?: ?boolean,\n tvParallaxProperties?: ?Object,\n|}>;\n\ntype Props = $ReadOnly<{|\n ...TouchableWithoutFeedbackProps,\n ...TVProps,\n activeOpacity?: ?number,\n style?: ?ViewStyleProp,\n|}>;\n\n/**\n * A wrapper for making views respond properly to touches.\n * On press down, the opacity of the wrapped view is decreased, dimming it.\n *\n * Opacity is controlled by wrapping the children in an Animated.View, which is\n * added to the view hiearchy. Be aware that this can affect layout.\n *\n * Example:\n *\n * ```\n * renderButton: function() {\n * return (\n * \n * \n * \n * );\n * },\n * ```\n * ### Example\n *\n * ```ReactNativeWebPlayer\n * import React, { Component } from 'react'\n * import {\n * AppRegistry,\n * StyleSheet,\n * TouchableOpacity,\n * Text,\n * View,\n * } from 'react-native'\n *\n * class App extends Component {\n * constructor(props) {\n * super(props)\n * this.state = { count: 0 }\n * }\n *\n * onPress = () => {\n * this.setState({\n * count: this.state.count+1\n * })\n * }\n *\n * render() {\n * return (\n * \n * \n * Touch Here \n * \n * \n * \n * { this.state.count !== 0 ? this.state.count: null}\n * \n * \n * \n * )\n * }\n * }\n *\n * const styles = StyleSheet.create({\n * container: {\n * flex: 1,\n * justifyContent: 'center',\n * paddingHorizontal: 10\n * },\n * button: {\n * alignItems: 'center',\n * backgroundColor: '#DDDDDD',\n * padding: 10\n * },\n * countContainer: {\n * alignItems: 'center',\n * padding: 10\n * },\n * countText: {\n * color: '#FF00FF'\n * }\n * })\n *\n * AppRegistry.registerComponent('App', () => App)\n * ```\n *\n */\nconst TouchableOpacity = ((createReactClass({\n displayName: 'TouchableOpacity',\n mixins: [TimerMixin, Touchable.Mixin, NativeMethodsMixin],\n\n propTypes: {\n ...TouchableWithoutFeedback.propTypes,\n /**\n * Determines what the opacity of the wrapped view should be when touch is\n * active. Defaults to 0.2.\n */\n activeOpacity: PropTypes.number,\n /**\n * TV preferred focus (see documentation for the View component).\n */\n hasTVPreferredFocus: PropTypes.bool,\n /**\n * Apple TV parallax effects\n */\n tvParallaxProperties: PropTypes.object,\n },\n\n getDefaultProps: function() {\n return {\n activeOpacity: 0.2,\n };\n },\n\n getInitialState: function() {\n return {\n ...this.touchableGetInitialState(),\n anim: new Animated.Value(this._getChildStyleOpacityWithDefault()),\n };\n },\n\n componentDidMount: function() {\n ensurePositiveDelayProps(this.props);\n },\n\n UNSAFE_componentWillReceiveProps: function(nextProps) {\n ensurePositiveDelayProps(nextProps);\n },\n\n componentDidUpdate: function(prevProps, prevState) {\n if (this.props.disabled !== prevProps.disabled) {\n this._opacityInactive(250);\n }\n },\n\n /**\n * Animate the touchable to a new opacity.\n */\n setOpacityTo: function(value: number, duration: number) {\n Animated.timing(this.state.anim, {\n toValue: value,\n duration: duration,\n easing: Easing.inOut(Easing.quad),\n useNativeDriver: true,\n }).start();\n },\n\n /**\n * `Touchable.Mixin` self callbacks. The mixin will invoke these if they are\n * defined on your component.\n */\n touchableHandleActivePressIn: function(e: Event) {\n if (e.dispatchConfig.registrationName === 'onResponderGrant') {\n this._opacityActive(0);\n } else {\n this._opacityActive(150);\n }\n this.props.onPressIn && this.props.onPressIn(e);\n },\n\n touchableHandleActivePressOut: function(e: Event) {\n this._opacityInactive(250);\n this.props.onPressOut && this.props.onPressOut(e);\n },\n\n touchableHandlePress: function(e: Event) {\n this.props.onPress && this.props.onPress(e);\n },\n\n touchableHandleLongPress: function(e: Event) {\n this.props.onLongPress && this.props.onLongPress(e);\n },\n\n touchableGetPressRectOffset: function() {\n return this.props.pressRetentionOffset || PRESS_RETENTION_OFFSET;\n },\n\n touchableGetHitSlop: function() {\n return this.props.hitSlop;\n },\n\n touchableGetHighlightDelayMS: function() {\n return this.props.delayPressIn || 0;\n },\n\n touchableGetLongPressDelayMS: function() {\n return this.props.delayLongPress === 0\n ? 0\n : this.props.delayLongPress || 500;\n },\n\n touchableGetPressOutDelayMS: function() {\n return this.props.delayPressOut;\n },\n\n _opacityActive: function(duration: number) {\n this.setOpacityTo(this.props.activeOpacity, duration);\n },\n\n _opacityInactive: function(duration: number) {\n this.setOpacityTo(this._getChildStyleOpacityWithDefault(), duration);\n },\n\n _getChildStyleOpacityWithDefault: function() {\n const childStyle = flattenStyle(this.props.style) || {};\n return childStyle.opacity == undefined ? 1 : childStyle.opacity;\n },\n\n render: function() {\n return (\n \n {this.props.children}\n {Touchable.renderDebugView({\n color: 'cyan',\n hitSlop: this.props.hitSlop,\n })}\n \n );\n },\n}): any): React.ComponentType);\n\nmodule.exports = TouchableOpacity;\n","/**\n * Copyright (c) 2015-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @flow strict-local\n * @format\n */\n\n'use strict';\n\nconst AnimatedImplementation = require('AnimatedImplementation');\nconst FlatList = require('FlatList');\nconst Image = require('Image');\nconst ScrollView = require('ScrollView');\nconst SectionList = require('SectionList');\nconst Text = require('Text');\nconst View = require('View');\n\nmodule.exports = {\n ...AnimatedImplementation,\n View: AnimatedImplementation.createAnimatedComponent(View),\n Text: AnimatedImplementation.createAnimatedComponent(Text),\n Image: AnimatedImplementation.createAnimatedComponent(Image),\n ScrollView: AnimatedImplementation.createAnimatedComponent(ScrollView),\n FlatList: AnimatedImplementation.createAnimatedComponent(FlatList),\n SectionList: AnimatedImplementation.createAnimatedComponent(SectionList),\n};\n","/**\n * Copyright (c) 2015-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @flow\n * @format\n * @preventMunge\n */\n'use strict';\n\nconst {AnimatedEvent, attachNativeEvent} = require('./AnimatedEvent');\nconst AnimatedAddition = require('./nodes/AnimatedAddition');\nconst AnimatedDiffClamp = require('./nodes/AnimatedDiffClamp');\nconst AnimatedDivision = require('./nodes/AnimatedDivision');\nconst AnimatedInterpolation = require('./nodes/AnimatedInterpolation');\nconst AnimatedModulo = require('./nodes/AnimatedModulo');\nconst AnimatedMultiplication = require('./nodes/AnimatedMultiplication');\nconst AnimatedNode = require('./nodes/AnimatedNode');\nconst AnimatedProps = require('./nodes/AnimatedProps');\nconst AnimatedSubtraction = require('./nodes/AnimatedSubtraction');\nconst AnimatedTracking = require('./nodes/AnimatedTracking');\nconst AnimatedValue = require('./nodes/AnimatedValue');\nconst AnimatedValueXY = require('./nodes/AnimatedValueXY');\nconst DecayAnimation = require('./animations/DecayAnimation');\nconst SpringAnimation = require('./animations/SpringAnimation');\nconst TimingAnimation = require('./animations/TimingAnimation');\n\nconst createAnimatedComponent = require('./createAnimatedComponent');\n\nimport type {\n AnimationConfig,\n EndCallback,\n EndResult,\n} from './animations/Animation';\nimport type {TimingAnimationConfig} from './animations/TimingAnimation';\nimport type {DecayAnimationConfig} from './animations/DecayAnimation';\nimport type {SpringAnimationConfig} from './animations/SpringAnimation';\nimport type {Mapping, EventConfig} from './AnimatedEvent';\n\nexport type CompositeAnimation = {\n start: (callback?: ?EndCallback) => void,\n stop: () => void,\n reset: () => void,\n _startNativeLoop: (iterations?: number) => void,\n _isUsingNativeDriver: () => boolean,\n};\n\nconst add = function(\n a: AnimatedNode | number,\n b: AnimatedNode | number,\n): AnimatedAddition {\n return new AnimatedAddition(a, b);\n};\n\nconst subtract = function(\n a: AnimatedNode | number,\n b: AnimatedNode | number,\n): AnimatedSubtraction {\n return new AnimatedSubtraction(a, b);\n};\n\nconst divide = function(\n a: AnimatedNode | number,\n b: AnimatedNode | number,\n): AnimatedDivision {\n return new AnimatedDivision(a, b);\n};\n\nconst multiply = function(\n a: AnimatedNode | number,\n b: AnimatedNode | number,\n): AnimatedMultiplication {\n return new AnimatedMultiplication(a, b);\n};\n\nconst modulo = function(a: AnimatedNode, modulus: number): AnimatedModulo {\n return new AnimatedModulo(a, modulus);\n};\n\nconst diffClamp = function(\n a: AnimatedNode,\n min: number,\n max: number,\n): AnimatedDiffClamp {\n return new AnimatedDiffClamp(a, min, max);\n};\n\nconst _combineCallbacks = function(\n callback: ?EndCallback,\n config: AnimationConfig,\n) {\n if (callback && config.onComplete) {\n return (...args) => {\n config.onComplete && config.onComplete(...args);\n callback && callback(...args);\n };\n } else {\n return callback || config.onComplete;\n }\n};\n\nconst maybeVectorAnim = function(\n value: AnimatedValue | AnimatedValueXY,\n config: Object,\n anim: (value: AnimatedValue, config: Object) => CompositeAnimation,\n): ?CompositeAnimation {\n if (value instanceof AnimatedValueXY) {\n const configX = {...config};\n const configY = {...config};\n for (const key in config) {\n const {x, y} = config[key];\n if (x !== undefined && y !== undefined) {\n configX[key] = x;\n configY[key] = y;\n }\n }\n const aX = anim((value: AnimatedValueXY).x, configX);\n const aY = anim((value: AnimatedValueXY).y, configY);\n // We use `stopTogether: false` here because otherwise tracking will break\n // because the second animation will get stopped before it can update.\n return parallel([aX, aY], {stopTogether: false});\n }\n return null;\n};\n\nconst spring = function(\n value: AnimatedValue | AnimatedValueXY,\n config: SpringAnimationConfig,\n): CompositeAnimation {\n const start = function(\n animatedValue: AnimatedValue | AnimatedValueXY,\n configuration: SpringAnimationConfig,\n callback?: ?EndCallback,\n ): void {\n callback = _combineCallbacks(callback, configuration);\n const singleValue: any = animatedValue;\n const singleConfig: any = configuration;\n singleValue.stopTracking();\n if (configuration.toValue instanceof AnimatedNode) {\n singleValue.track(\n new AnimatedTracking(\n singleValue,\n configuration.toValue,\n SpringAnimation,\n singleConfig,\n callback,\n ),\n );\n } else {\n singleValue.animate(new SpringAnimation(singleConfig), callback);\n }\n };\n return (\n maybeVectorAnim(value, config, spring) || {\n start: function(callback?: ?EndCallback): void {\n start(value, config, callback);\n },\n\n stop: function(): void {\n value.stopAnimation();\n },\n\n reset: function(): void {\n value.resetAnimation();\n },\n\n _startNativeLoop: function(iterations?: number): void {\n const singleConfig = {...config, iterations};\n start(value, singleConfig);\n },\n\n _isUsingNativeDriver: function(): boolean {\n return config.useNativeDriver || false;\n },\n }\n );\n};\n\nconst timing = function(\n value: AnimatedValue | AnimatedValueXY,\n config: TimingAnimationConfig,\n): CompositeAnimation {\n const start = function(\n animatedValue: AnimatedValue | AnimatedValueXY,\n configuration: TimingAnimationConfig,\n callback?: ?EndCallback,\n ): void {\n callback = _combineCallbacks(callback, configuration);\n const singleValue: any = animatedValue;\n const singleConfig: any = configuration;\n singleValue.stopTracking();\n if (configuration.toValue instanceof AnimatedNode) {\n singleValue.track(\n new AnimatedTracking(\n singleValue,\n configuration.toValue,\n TimingAnimation,\n singleConfig,\n callback,\n ),\n );\n } else {\n singleValue.animate(new TimingAnimation(singleConfig), callback);\n }\n };\n\n return (\n maybeVectorAnim(value, config, timing) || {\n start: function(callback?: ?EndCallback): void {\n start(value, config, callback);\n },\n\n stop: function(): void {\n value.stopAnimation();\n },\n\n reset: function(): void {\n value.resetAnimation();\n },\n\n _startNativeLoop: function(iterations?: number): void {\n const singleConfig = {...config, iterations};\n start(value, singleConfig);\n },\n\n _isUsingNativeDriver: function(): boolean {\n return config.useNativeDriver || false;\n },\n }\n );\n};\n\nconst decay = function(\n value: AnimatedValue | AnimatedValueXY,\n config: DecayAnimationConfig,\n): CompositeAnimation {\n const start = function(\n animatedValue: AnimatedValue | AnimatedValueXY,\n configuration: DecayAnimationConfig,\n callback?: ?EndCallback,\n ): void {\n callback = _combineCallbacks(callback, configuration);\n const singleValue: any = animatedValue;\n const singleConfig: any = configuration;\n singleValue.stopTracking();\n singleValue.animate(new DecayAnimation(singleConfig), callback);\n };\n\n return (\n maybeVectorAnim(value, config, decay) || {\n start: function(callback?: ?EndCallback): void {\n start(value, config, callback);\n },\n\n stop: function(): void {\n value.stopAnimation();\n },\n\n reset: function(): void {\n value.resetAnimation();\n },\n\n _startNativeLoop: function(iterations?: number): void {\n const singleConfig = {...config, iterations};\n start(value, singleConfig);\n },\n\n _isUsingNativeDriver: function(): boolean {\n return config.useNativeDriver || false;\n },\n }\n );\n};\n\nconst sequence = function(\n animations: Array,\n): CompositeAnimation {\n let current = 0;\n return {\n start: function(callback?: ?EndCallback) {\n const onComplete = function(result) {\n if (!result.finished) {\n callback && callback(result);\n return;\n }\n\n current++;\n\n if (current === animations.length) {\n callback && callback(result);\n return;\n }\n\n animations[current].start(onComplete);\n };\n\n if (animations.length === 0) {\n callback && callback({finished: true});\n } else {\n animations[current].start(onComplete);\n }\n },\n\n stop: function() {\n if (current < animations.length) {\n animations[current].stop();\n }\n },\n\n reset: function() {\n animations.forEach((animation, idx) => {\n if (idx <= current) {\n animation.reset();\n }\n });\n current = 0;\n },\n\n _startNativeLoop: function() {\n throw new Error(\n 'Loops run using the native driver cannot contain Animated.sequence animations',\n );\n },\n\n _isUsingNativeDriver: function(): boolean {\n return false;\n },\n };\n};\n\ntype ParallelConfig = {\n stopTogether?: boolean, // If one is stopped, stop all. default: true\n};\nconst parallel = function(\n animations: Array,\n config?: ?ParallelConfig,\n): CompositeAnimation {\n let doneCount = 0;\n // Make sure we only call stop() at most once for each animation\n const hasEnded = {};\n const stopTogether = !(config && config.stopTogether === false);\n\n const result = {\n start: function(callback?: ?EndCallback) {\n if (doneCount === animations.length) {\n callback && callback({finished: true});\n return;\n }\n\n animations.forEach((animation, idx) => {\n const cb = function(endResult) {\n hasEnded[idx] = true;\n doneCount++;\n if (doneCount === animations.length) {\n doneCount = 0;\n callback && callback(endResult);\n return;\n }\n\n if (!endResult.finished && stopTogether) {\n result.stop();\n }\n };\n\n if (!animation) {\n cb({finished: true});\n } else {\n animation.start(cb);\n }\n });\n },\n\n stop: function(): void {\n animations.forEach((animation, idx) => {\n !hasEnded[idx] && animation.stop();\n hasEnded[idx] = true;\n });\n },\n\n reset: function(): void {\n animations.forEach((animation, idx) => {\n animation.reset();\n hasEnded[idx] = false;\n doneCount = 0;\n });\n },\n\n _startNativeLoop: function() {\n throw new Error(\n 'Loops run using the native driver cannot contain Animated.parallel animations',\n );\n },\n\n _isUsingNativeDriver: function(): boolean {\n return false;\n },\n };\n\n return result;\n};\n\nconst delay = function(time: number): CompositeAnimation {\n // Would be nice to make a specialized implementation\n return timing(new AnimatedValue(0), {toValue: 0, delay: time, duration: 0});\n};\n\nconst stagger = function(\n time: number,\n animations: Array,\n): CompositeAnimation {\n return parallel(\n animations.map((animation, i) => {\n return sequence([delay(time * i), animation]);\n }),\n );\n};\n\ntype LoopAnimationConfig = {iterations: number};\n\nconst loop = function(\n animation: CompositeAnimation,\n {iterations = -1}: LoopAnimationConfig = {},\n): CompositeAnimation {\n let isFinished = false;\n let iterationsSoFar = 0;\n return {\n start: function(callback?: ?EndCallback) {\n const restart = function(result: EndResult = {finished: true}): void {\n if (\n isFinished ||\n iterationsSoFar === iterations ||\n result.finished === false\n ) {\n callback && callback(result);\n } else {\n iterationsSoFar++;\n animation.reset();\n animation.start(restart);\n }\n };\n if (!animation || iterations === 0) {\n callback && callback({finished: true});\n } else {\n if (animation._isUsingNativeDriver()) {\n animation._startNativeLoop(iterations);\n } else {\n restart(); // Start looping recursively on the js thread\n }\n }\n },\n\n stop: function(): void {\n isFinished = true;\n animation.stop();\n },\n\n reset: function(): void {\n iterationsSoFar = 0;\n isFinished = false;\n animation.reset();\n },\n\n _startNativeLoop: function() {\n throw new Error(\n 'Loops run using the native driver cannot contain Animated.loop animations',\n );\n },\n\n _isUsingNativeDriver: function(): boolean {\n return animation._isUsingNativeDriver();\n },\n };\n};\n\nfunction forkEvent(\n event: ?AnimatedEvent | ?Function,\n listener: Function,\n): AnimatedEvent | Function {\n if (!event) {\n return listener;\n } else if (event instanceof AnimatedEvent) {\n event.__addListener(listener);\n return event;\n } else {\n return (...args) => {\n typeof event === 'function' && event(...args);\n listener(...args);\n };\n }\n}\n\nfunction unforkEvent(\n event: ?AnimatedEvent | ?Function,\n listener: Function,\n): void {\n if (event && event instanceof AnimatedEvent) {\n event.__removeListener(listener);\n }\n}\n\nconst event = function(argMapping: Array, config?: EventConfig): any {\n const animatedEvent = new AnimatedEvent(argMapping, config);\n if (animatedEvent.__isNative) {\n return animatedEvent;\n } else {\n return animatedEvent.__getHandler();\n }\n};\n\n/**\n * The `Animated` library is designed to make animations fluid, powerful, and\n * easy to build and maintain. `Animated` focuses on declarative relationships\n * between inputs and outputs, with configurable transforms in between, and\n * simple `start`/`stop` methods to control time-based animation execution.\n *\n * See http://facebook.github.io/react-native/docs/animated.html\n */\nmodule.exports = {\n /**\n * Standard value class for driving animations. Typically initialized with\n * `new Animated.Value(0);`\n *\n * See http://facebook.github.io/react-native/docs/animated.html#value\n */\n Value: AnimatedValue,\n /**\n * 2D value class for driving 2D animations, such as pan gestures.\n *\n * See https://facebook.github.io/react-native/docs/animatedvaluexy.html\n */\n ValueXY: AnimatedValueXY,\n /**\n * Exported to use the Interpolation type in flow.\n *\n * See http://facebook.github.io/react-native/docs/animated.html#interpolation\n */\n Interpolation: AnimatedInterpolation,\n /**\n * Exported for ease of type checking. All animated values derive from this\n * class.\n *\n * See http://facebook.github.io/react-native/docs/animated.html#node\n */\n Node: AnimatedNode,\n\n /**\n * Animates a value from an initial velocity to zero based on a decay\n * coefficient.\n *\n * See http://facebook.github.io/react-native/docs/animated.html#decay\n */\n decay,\n /**\n * Animates a value along a timed easing curve. The Easing module has tons of\n * predefined curves, or you can use your own function.\n *\n * See http://facebook.github.io/react-native/docs/animated.html#timing\n */\n timing,\n /**\n * Animates a value according to an analytical spring model based on\n * damped harmonic oscillation.\n *\n * See http://facebook.github.io/react-native/docs/animated.html#spring\n */\n spring,\n\n /**\n * Creates a new Animated value composed from two Animated values added\n * together.\n *\n * See http://facebook.github.io/react-native/docs/animated.html#add\n */\n add,\n\n /**\n * Creates a new Animated value composed by subtracting the second Animated\n * value from the first Animated value.\n *\n * See http://facebook.github.io/react-native/docs/animated.html#subtract\n */\n subtract,\n\n /**\n * Creates a new Animated value composed by dividing the first Animated value\n * by the second Animated value.\n *\n * See http://facebook.github.io/react-native/docs/animated.html#divide\n */\n divide,\n\n /**\n * Creates a new Animated value composed from two Animated values multiplied\n * together.\n *\n * See http://facebook.github.io/react-native/docs/animated.html#multiply\n */\n multiply,\n\n /**\n * Creates a new Animated value that is the (non-negative) modulo of the\n * provided Animated value.\n *\n * See http://facebook.github.io/react-native/docs/animated.html#modulo\n */\n modulo,\n\n /**\n * Create a new Animated value that is limited between 2 values. It uses the\n * difference between the last value so even if the value is far from the\n * bounds it will start changing when the value starts getting closer again.\n *\n * See http://facebook.github.io/react-native/docs/animated.html#diffclamp\n */\n diffClamp,\n\n /**\n * Starts an animation after the given delay.\n *\n * See http://facebook.github.io/react-native/docs/animated.html#delay\n */\n delay,\n /**\n * Starts an array of animations in order, waiting for each to complete\n * before starting the next. If the current running animation is stopped, no\n * following animations will be started.\n *\n * See http://facebook.github.io/react-native/docs/animated.html#sequence\n */\n sequence,\n /**\n * Starts an array of animations all at the same time. By default, if one\n * of the animations is stopped, they will all be stopped. You can override\n * this with the `stopTogether` flag.\n *\n * See http://facebook.github.io/react-native/docs/animated.html#parallel\n */\n parallel,\n /**\n * Array of animations may run in parallel (overlap), but are started in\n * sequence with successive delays. Nice for doing trailing effects.\n *\n * See http://facebook.github.io/react-native/docs/animated.html#stagger\n */\n stagger,\n /**\n * Loops a given animation continuously, so that each time it reaches the\n * end, it resets and begins again from the start.\n *\n * See http://facebook.github.io/react-native/docs/animated.html#loop\n */\n loop,\n\n /**\n * Takes an array of mappings and extracts values from each arg accordingly,\n * then calls `setValue` on the mapped outputs.\n *\n * See http://facebook.github.io/react-native/docs/animated.html#event\n */\n event,\n\n /**\n * Make any React component Animatable. Used to create `Animated.View`, etc.\n *\n * See http://facebook.github.io/react-native/docs/animated.html#createanimatedcomponent\n */\n createAnimatedComponent,\n\n /**\n * Imperative API to attach an animated value to an event on a view. Prefer\n * using `Animated.event` with `useNativeDrive: true` if possible.\n *\n * See http://facebook.github.io/react-native/docs/animated.html#attachnativeevent\n */\n attachNativeEvent,\n\n /**\n * Advanced imperative API for snooping on animated events that are passed in\n * through props. Use values directly where possible.\n *\n * See http://facebook.github.io/react-native/docs/animated.html#forkevent\n */\n forkEvent,\n unforkEvent,\n\n __PropsOnlyForTests: AnimatedProps,\n};\n","/**\n * Copyright (c) 2015-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @flow\n * @format\n */\n'use strict';\n\nconst AnimatedValue = require('./nodes/AnimatedValue');\nconst NativeAnimatedHelper = require('./NativeAnimatedHelper');\nconst ReactNative = require('ReactNative');\n\nconst invariant = require('fbjs/lib/invariant');\nconst {shouldUseNativeDriver} = require('./NativeAnimatedHelper');\n\nexport type Mapping = {[key: string]: Mapping} | AnimatedValue;\nexport type EventConfig = {\n listener?: ?Function,\n useNativeDriver?: boolean,\n};\n\nfunction attachNativeEvent(\n viewRef: any,\n eventName: string,\n argMapping: Array,\n) {\n // Find animated values in `argMapping` and create an array representing their\n // key path inside the `nativeEvent` object. Ex.: ['contentOffset', 'x'].\n const eventMappings = [];\n\n const traverse = (value, path) => {\n if (value instanceof AnimatedValue) {\n value.__makeNative();\n\n eventMappings.push({\n nativeEventPath: path,\n animatedValueTag: value.__getNativeTag(),\n });\n } else if (typeof value === 'object') {\n for (const key in value) {\n traverse(value[key], path.concat(key));\n }\n }\n };\n\n invariant(\n argMapping[0] && argMapping[0].nativeEvent,\n 'Native driven events only support animated values contained inside `nativeEvent`.',\n );\n\n // Assume that the event containing `nativeEvent` is always the first argument.\n traverse(argMapping[0].nativeEvent, []);\n\n const viewTag = ReactNative.findNodeHandle(viewRef);\n\n eventMappings.forEach(mapping => {\n NativeAnimatedHelper.API.addAnimatedEventToView(\n viewTag,\n eventName,\n mapping,\n );\n });\n\n return {\n detach() {\n eventMappings.forEach(mapping => {\n NativeAnimatedHelper.API.removeAnimatedEventFromView(\n viewTag,\n eventName,\n mapping.animatedValueTag,\n );\n });\n },\n };\n}\n\nclass AnimatedEvent {\n _argMapping: Array;\n _listeners: Array = [];\n _callListeners: Function;\n _attachedEvent: ?{\n detach: () => void,\n };\n __isNative: boolean;\n\n constructor(argMapping: Array, config?: EventConfig = {}) {\n this._argMapping = argMapping;\n if (config.listener) {\n this.__addListener(config.listener);\n }\n this._callListeners = this._callListeners.bind(this);\n this._attachedEvent = null;\n this.__isNative = shouldUseNativeDriver(config);\n\n if (__DEV__) {\n this._validateMapping();\n }\n }\n\n __addListener(callback: Function): void {\n this._listeners.push(callback);\n }\n\n __removeListener(callback: Function): void {\n this._listeners = this._listeners.filter(listener => listener !== callback);\n }\n\n __attach(viewRef: any, eventName: string) {\n invariant(\n this.__isNative,\n 'Only native driven events need to be attached.',\n );\n\n this._attachedEvent = attachNativeEvent(\n viewRef,\n eventName,\n this._argMapping,\n );\n }\n\n __detach(viewTag: any, eventName: string) {\n invariant(\n this.__isNative,\n 'Only native driven events need to be detached.',\n );\n\n this._attachedEvent && this._attachedEvent.detach();\n }\n\n __getHandler() {\n if (this.__isNative) {\n return this._callListeners;\n }\n\n return (...args: any) => {\n const traverse = (recMapping, recEvt, key) => {\n if (typeof recEvt === 'number' && recMapping instanceof AnimatedValue) {\n recMapping.setValue(recEvt);\n } else if (typeof recMapping === 'object') {\n for (const mappingKey in recMapping) {\n /* $FlowFixMe(>=0.53.0 site=react_native_fb,react_native_oss) This\n * comment suppresses an error when upgrading Flow's support for\n * React. To see the error delete this comment and run Flow. */\n traverse(recMapping[mappingKey], recEvt[mappingKey], mappingKey);\n }\n }\n };\n\n if (!this.__isNative) {\n this._argMapping.forEach((mapping, idx) => {\n traverse(mapping, args[idx], 'arg' + idx);\n });\n }\n this._callListeners(...args);\n };\n }\n\n _callListeners(...args) {\n this._listeners.forEach(listener => listener(...args));\n }\n\n _validateMapping() {\n const traverse = (recMapping, recEvt, key) => {\n if (typeof recEvt === 'number') {\n invariant(\n recMapping instanceof AnimatedValue,\n 'Bad mapping of type ' +\n typeof recMapping +\n ' for key ' +\n key +\n ', event value must map to AnimatedValue',\n );\n return;\n }\n invariant(\n typeof recMapping === 'object',\n 'Bad mapping of type ' + typeof recMapping + ' for key ' + key,\n );\n invariant(\n typeof recEvt === 'object',\n 'Bad event of type ' + typeof recEvt + ' for key ' + key,\n );\n for (const mappingKey in recMapping) {\n traverse(recMapping[mappingKey], recEvt[mappingKey], mappingKey);\n }\n };\n }\n}\n\nmodule.exports = {AnimatedEvent, attachNativeEvent};\n","/**\n * Copyright (c) 2015-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @flow\n * @format\n */\n'use strict';\n\nconst AnimatedInterpolation = require('./AnimatedInterpolation');\nconst AnimatedNode = require('./AnimatedNode');\nconst AnimatedWithChildren = require('./AnimatedWithChildren');\nconst InteractionManager = require('InteractionManager');\nconst NativeAnimatedHelper = require('../NativeAnimatedHelper');\n\nimport type Animation, {EndCallback} from '../animations/Animation';\nimport type {InterpolationConfigType} from './AnimatedInterpolation';\nimport type AnimatedTracking from './AnimatedTracking';\n\nconst NativeAnimatedAPI = NativeAnimatedHelper.API;\n\ntype ValueListenerCallback = (state: {value: number}) => void;\n\nlet _uniqueId = 1;\n\n/**\n * Animated works by building a directed acyclic graph of dependencies\n * transparently when you render your Animated components.\n *\n * new Animated.Value(0)\n * .interpolate() .interpolate() new Animated.Value(1)\n * opacity translateY scale\n * style transform\n * View#234 style\n * View#123\n *\n * A) Top Down phase\n * When an Animated.Value is updated, we recursively go down through this\n * graph in order to find leaf nodes: the views that we flag as needing\n * an update.\n *\n * B) Bottom Up phase\n * When a view is flagged as needing an update, we recursively go back up\n * in order to build the new value that it needs. The reason why we need\n * this two-phases process is to deal with composite props such as\n * transform which can receive values from multiple parents.\n */\nfunction _flush(rootNode: AnimatedValue): void {\n const animatedStyles = new Set();\n function findAnimatedStyles(node) {\n /* $FlowFixMe(>=0.68.0 site=react_native_fb) This comment suppresses an\n * error found when Flow v0.68 was deployed. To see the error delete this\n * comment and run Flow. */\n if (typeof node.update === 'function') {\n animatedStyles.add(node);\n } else {\n node.__getChildren().forEach(findAnimatedStyles);\n }\n }\n findAnimatedStyles(rootNode);\n /* $FlowFixMe */\n animatedStyles.forEach(animatedStyle => animatedStyle.update());\n}\n\n/**\n * Standard value for driving animations. One `Animated.Value` can drive\n * multiple properties in a synchronized fashion, but can only be driven by one\n * mechanism at a time. Using a new mechanism (e.g. starting a new animation,\n * or calling `setValue`) will stop any previous ones.\n *\n * See http://facebook.github.io/react-native/docs/animatedvalue.html\n */\nclass AnimatedValue extends AnimatedWithChildren {\n _value: number;\n _startingValue: number;\n _offset: number;\n _animation: ?Animation;\n _tracking: ?AnimatedTracking;\n _listeners: {[key: string]: ValueListenerCallback};\n __nativeAnimatedValueListener: ?any;\n\n constructor(value: number) {\n super();\n this._startingValue = this._value = value;\n this._offset = 0;\n this._animation = null;\n this._listeners = {};\n }\n\n __detach() {\n this.stopAnimation();\n super.__detach();\n }\n\n __getValue(): number {\n return this._value + this._offset;\n }\n\n __makeNative() {\n super.__makeNative();\n\n if (Object.keys(this._listeners).length) {\n this._startListeningToNativeValueUpdates();\n }\n }\n\n /**\n * Directly set the value. This will stop any animations running on the value\n * and update all the bound properties.\n *\n * See http://facebook.github.io/react-native/docs/animatedvalue.html#setvalue\n */\n setValue(value: number): void {\n if (this._animation) {\n this._animation.stop();\n this._animation = null;\n }\n this._updateValue(\n value,\n !this.__isNative /* don't perform a flush for natively driven values */,\n );\n if (this.__isNative) {\n NativeAnimatedAPI.setAnimatedNodeValue(this.__getNativeTag(), value);\n }\n }\n\n /**\n * Sets an offset that is applied on top of whatever value is set, whether via\n * `setValue`, an animation, or `Animated.event`. Useful for compensating\n * things like the start of a pan gesture.\n *\n * See http://facebook.github.io/react-native/docs/animatedvalue.html#setoffset\n */\n setOffset(offset: number): void {\n this._offset = offset;\n if (this.__isNative) {\n NativeAnimatedAPI.setAnimatedNodeOffset(this.__getNativeTag(), offset);\n }\n }\n\n /**\n * Merges the offset value into the base value and resets the offset to zero.\n * The final output of the value is unchanged.\n *\n * See http://facebook.github.io/react-native/docs/animatedvalue.html#flattenoffset\n */\n flattenOffset(): void {\n this._value += this._offset;\n this._offset = 0;\n if (this.__isNative) {\n NativeAnimatedAPI.flattenAnimatedNodeOffset(this.__getNativeTag());\n }\n }\n\n /**\n * Sets the offset value to the base value, and resets the base value to zero.\n * The final output of the value is unchanged.\n *\n * See http://facebook.github.io/react-native/docs/animatedvalue.html#extractoffset\n */\n extractOffset(): void {\n this._offset += this._value;\n this._value = 0;\n if (this.__isNative) {\n NativeAnimatedAPI.extractAnimatedNodeOffset(this.__getNativeTag());\n }\n }\n\n /**\n * Adds an asynchronous listener to the value so you can observe updates from\n * animations. This is useful because there is no way to\n * synchronously read the value because it might be driven natively.\n *\n * See http://facebook.github.io/react-native/docs/animatedvalue.html#addlistener\n */\n addListener(callback: ValueListenerCallback): string {\n const id = String(_uniqueId++);\n this._listeners[id] = callback;\n if (this.__isNative) {\n this._startListeningToNativeValueUpdates();\n }\n return id;\n }\n\n /**\n * Unregister a listener. The `id` param shall match the identifier\n * previously returned by `addListener()`.\n *\n * See http://facebook.github.io/react-native/docs/animatedvalue.html#removelistener\n */\n removeListener(id: string): void {\n delete this._listeners[id];\n if (this.__isNative && Object.keys(this._listeners).length === 0) {\n this._stopListeningForNativeValueUpdates();\n }\n }\n\n /**\n * Remove all registered listeners.\n *\n * See http://facebook.github.io/react-native/docs/animatedvalue.html#removealllisteners\n */\n removeAllListeners(): void {\n this._listeners = {};\n if (this.__isNative) {\n this._stopListeningForNativeValueUpdates();\n }\n }\n\n _startListeningToNativeValueUpdates() {\n if (this.__nativeAnimatedValueListener) {\n return;\n }\n\n NativeAnimatedAPI.startListeningToAnimatedNodeValue(this.__getNativeTag());\n this.__nativeAnimatedValueListener = NativeAnimatedHelper.nativeEventEmitter.addListener(\n 'onAnimatedValueUpdate',\n data => {\n if (data.tag !== this.__getNativeTag()) {\n return;\n }\n this._updateValue(data.value, false /* flush */);\n },\n );\n }\n\n _stopListeningForNativeValueUpdates() {\n if (!this.__nativeAnimatedValueListener) {\n return;\n }\n\n this.__nativeAnimatedValueListener.remove();\n this.__nativeAnimatedValueListener = null;\n NativeAnimatedAPI.stopListeningToAnimatedNodeValue(this.__getNativeTag());\n }\n\n /**\n * Stops any running animation or tracking. `callback` is invoked with the\n * final value after stopping the animation, which is useful for updating\n * state to match the animation position with layout.\n *\n * See http://facebook.github.io/react-native/docs/animatedvalue.html#stopanimation\n */\n stopAnimation(callback?: ?(value: number) => void): void {\n this.stopTracking();\n this._animation && this._animation.stop();\n this._animation = null;\n callback && callback(this.__getValue());\n }\n\n /**\n * Stops any animation and resets the value to its original.\n *\n * See http://facebook.github.io/react-native/docs/animatedvalue.html#resetanimation\n */\n resetAnimation(callback?: ?(value: number) => void): void {\n this.stopAnimation(callback);\n this._value = this._startingValue;\n }\n\n /**\n * Interpolates the value before updating the property, e.g. mapping 0-1 to\n * 0-10.\n */\n interpolate(config: InterpolationConfigType): AnimatedInterpolation {\n return new AnimatedInterpolation(this, config);\n }\n\n /**\n * Typically only used internally, but could be used by a custom Animation\n * class.\n *\n * See http://facebook.github.io/react-native/docs/animatedvalue.html#animate\n */\n animate(animation: Animation, callback: ?EndCallback): void {\n let handle = null;\n if (animation.__isInteraction) {\n handle = InteractionManager.createInteractionHandle();\n }\n const previousAnimation = this._animation;\n this._animation && this._animation.stop();\n this._animation = animation;\n animation.start(\n this._value,\n value => {\n // Natively driven animations will never call into that callback, therefore we can always\n // pass flush = true to allow the updated value to propagate to native with setNativeProps\n this._updateValue(value, true /* flush */);\n },\n result => {\n this._animation = null;\n if (handle !== null) {\n InteractionManager.clearInteractionHandle(handle);\n }\n callback && callback(result);\n },\n previousAnimation,\n this,\n );\n }\n\n /**\n * Typically only used internally.\n */\n stopTracking(): void {\n this._tracking && this._tracking.__detach();\n this._tracking = null;\n }\n\n /**\n * Typically only used internally.\n */\n track(tracking: AnimatedTracking): void {\n this.stopTracking();\n this._tracking = tracking;\n }\n\n _updateValue(value: number, flush: boolean): void {\n this._value = value;\n if (flush) {\n _flush(this);\n }\n for (const key in this._listeners) {\n this._listeners[key]({value: this.__getValue()});\n }\n }\n\n __getNativeConfig(): Object {\n return {\n type: 'value',\n value: this._value,\n offset: this._offset,\n };\n }\n}\n\nmodule.exports = AnimatedValue;\n","/**\n * Copyright (c) 2015-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @flow\n * @format\n */\n/* eslint no-bitwise: 0 */\n'use strict';\n\nconst AnimatedNode = require('./AnimatedNode');\nconst AnimatedWithChildren = require('./AnimatedWithChildren');\nconst NativeAnimatedHelper = require('../NativeAnimatedHelper');\n\nconst invariant = require('fbjs/lib/invariant');\nconst normalizeColor = require('normalizeColor');\n\ntype ExtrapolateType = 'extend' | 'identity' | 'clamp';\n\nexport type InterpolationConfigType = {\n inputRange: Array,\n /* $FlowFixMe(>=0.38.0 site=react_native_fb,react_native_oss) - Flow error\n * detected during the deployment of v0.38.0. To see the error, remove this\n * comment and run flow\n */\n outputRange: Array | Array,\n easing?: (input: number) => number,\n extrapolate?: ExtrapolateType,\n extrapolateLeft?: ExtrapolateType,\n extrapolateRight?: ExtrapolateType,\n};\n\nconst linear = t => t;\n\n/**\n * Very handy helper to map input ranges to output ranges with an easing\n * function and custom behavior outside of the ranges.\n */\nfunction createInterpolation(\n config: InterpolationConfigType,\n): (input: number) => number | string {\n if (config.outputRange && typeof config.outputRange[0] === 'string') {\n return createInterpolationFromStringOutputRange(config);\n }\n\n const outputRange: Array = (config.outputRange: any);\n checkInfiniteRange('outputRange', outputRange);\n\n const inputRange = config.inputRange;\n checkInfiniteRange('inputRange', inputRange);\n checkValidInputRange(inputRange);\n\n invariant(\n inputRange.length === outputRange.length,\n 'inputRange (' +\n inputRange.length +\n ') and outputRange (' +\n outputRange.length +\n ') must have the same length',\n );\n\n const easing = config.easing || linear;\n\n let extrapolateLeft: ExtrapolateType = 'extend';\n if (config.extrapolateLeft !== undefined) {\n extrapolateLeft = config.extrapolateLeft;\n } else if (config.extrapolate !== undefined) {\n extrapolateLeft = config.extrapolate;\n }\n\n let extrapolateRight: ExtrapolateType = 'extend';\n if (config.extrapolateRight !== undefined) {\n extrapolateRight = config.extrapolateRight;\n } else if (config.extrapolate !== undefined) {\n extrapolateRight = config.extrapolate;\n }\n\n return input => {\n invariant(\n typeof input === 'number',\n 'Cannot interpolation an input which is not a number',\n );\n\n const range = findRange(input, inputRange);\n return interpolate(\n input,\n inputRange[range],\n inputRange[range + 1],\n outputRange[range],\n outputRange[range + 1],\n easing,\n extrapolateLeft,\n extrapolateRight,\n );\n };\n}\n\nfunction interpolate(\n input: number,\n inputMin: number,\n inputMax: number,\n outputMin: number,\n outputMax: number,\n easing: (input: number) => number,\n extrapolateLeft: ExtrapolateType,\n extrapolateRight: ExtrapolateType,\n) {\n let result = input;\n\n // Extrapolate\n if (result < inputMin) {\n if (extrapolateLeft === 'identity') {\n return result;\n } else if (extrapolateLeft === 'clamp') {\n result = inputMin;\n } else if (extrapolateLeft === 'extend') {\n // noop\n }\n }\n\n if (result > inputMax) {\n if (extrapolateRight === 'identity') {\n return result;\n } else if (extrapolateRight === 'clamp') {\n result = inputMax;\n } else if (extrapolateRight === 'extend') {\n // noop\n }\n }\n\n if (outputMin === outputMax) {\n return outputMin;\n }\n\n if (inputMin === inputMax) {\n if (input <= inputMin) {\n return outputMin;\n }\n return outputMax;\n }\n\n // Input Range\n if (inputMin === -Infinity) {\n result = -result;\n } else if (inputMax === Infinity) {\n result = result - inputMin;\n } else {\n result = (result - inputMin) / (inputMax - inputMin);\n }\n\n // Easing\n result = easing(result);\n\n // Output Range\n if (outputMin === -Infinity) {\n result = -result;\n } else if (outputMax === Infinity) {\n result = result + outputMin;\n } else {\n result = result * (outputMax - outputMin) + outputMin;\n }\n\n return result;\n}\n\nfunction colorToRgba(input: string): string {\n let int32Color = normalizeColor(input);\n if (int32Color === null) {\n return input;\n }\n\n int32Color = int32Color || 0;\n\n const r = (int32Color & 0xff000000) >>> 24;\n const g = (int32Color & 0x00ff0000) >>> 16;\n const b = (int32Color & 0x0000ff00) >>> 8;\n const a = (int32Color & 0x000000ff) / 255;\n\n return `rgba(${r}, ${g}, ${b}, ${a})`;\n}\n\nconst stringShapeRegex = /[0-9\\.-]+/g;\n\n/**\n * Supports string shapes by extracting numbers so new values can be computed,\n * and recombines those values into new strings of the same shape. Supports\n * things like:\n *\n * rgba(123, 42, 99, 0.36) // colors\n * -45deg // values with units\n */\nfunction createInterpolationFromStringOutputRange(\n config: InterpolationConfigType,\n): (input: number) => string {\n let outputRange: Array = (config.outputRange: any);\n invariant(outputRange.length >= 2, 'Bad output range');\n outputRange = outputRange.map(colorToRgba);\n checkPattern(outputRange);\n\n // ['rgba(0, 100, 200, 0)', 'rgba(50, 150, 250, 0.5)']\n // ->\n // [\n // [0, 50],\n // [100, 150],\n // [200, 250],\n // [0, 0.5],\n // ]\n /* $FlowFixMe(>=0.18.0): `outputRange[0].match()` can return `null`. Need to\n * guard against this possibility.\n */\n const outputRanges = outputRange[0].match(stringShapeRegex).map(() => []);\n outputRange.forEach(value => {\n /* $FlowFixMe(>=0.18.0): `value.match()` can return `null`. Need to guard\n * against this possibility.\n */\n value.match(stringShapeRegex).forEach((number, i) => {\n outputRanges[i].push(+number);\n });\n });\n\n /* $FlowFixMe(>=0.18.0): `outputRange[0].match()` can return `null`. Need to\n * guard against this possibility.\n */\n const interpolations = outputRange[0]\n .match(stringShapeRegex)\n .map((value, i) => {\n return createInterpolation({\n ...config,\n outputRange: outputRanges[i],\n });\n });\n\n // rgba requires that the r,g,b are integers.... so we want to round them, but we *dont* want to\n // round the opacity (4th column).\n const shouldRound = isRgbOrRgba(outputRange[0]);\n\n return input => {\n let i = 0;\n // 'rgba(0, 100, 200, 0)'\n // ->\n // 'rgba(${interpolations[0](input)}, ${interpolations[1](input)}, ...'\n return outputRange[0].replace(stringShapeRegex, () => {\n const val = +interpolations[i++](input);\n const rounded =\n shouldRound && i < 4 ? Math.round(val) : Math.round(val * 1000) / 1000;\n return String(rounded);\n });\n };\n}\n\nfunction isRgbOrRgba(range) {\n return typeof range === 'string' && range.startsWith('rgb');\n}\n\nfunction checkPattern(arr: Array) {\n const pattern = arr[0].replace(stringShapeRegex, '');\n for (let i = 1; i < arr.length; ++i) {\n invariant(\n pattern === arr[i].replace(stringShapeRegex, ''),\n 'invalid pattern ' + arr[0] + ' and ' + arr[i],\n );\n }\n}\n\nfunction findRange(input: number, inputRange: Array) {\n let i;\n for (i = 1; i < inputRange.length - 1; ++i) {\n if (inputRange[i] >= input) {\n break;\n }\n }\n return i - 1;\n}\n\nfunction checkValidInputRange(arr: Array) {\n invariant(arr.length >= 2, 'inputRange must have at least 2 elements');\n for (let i = 1; i < arr.length; ++i) {\n invariant(\n arr[i] >= arr[i - 1],\n /* $FlowFixMe(>=0.13.0) - In the addition expression below this comment,\n * one or both of the operands may be something that doesn't cleanly\n * convert to a string, like undefined, null, and object, etc. If you really\n * mean this implicit string conversion, you can do something like\n * String(myThing)\n */\n 'inputRange must be monotonically non-decreasing ' + arr,\n );\n }\n}\n\nfunction checkInfiniteRange(name: string, arr: Array) {\n invariant(arr.length >= 2, name + ' must have at least 2 elements');\n invariant(\n arr.length !== 2 || arr[0] !== -Infinity || arr[1] !== Infinity,\n /* $FlowFixMe(>=0.13.0) - In the addition expression below this comment,\n * one or both of the operands may be something that doesn't cleanly convert\n * to a string, like undefined, null, and object, etc. If you really mean\n * this implicit string conversion, you can do something like\n * String(myThing)\n */\n name + 'cannot be ]-infinity;+infinity[ ' + arr,\n );\n}\n\nclass AnimatedInterpolation extends AnimatedWithChildren {\n // Export for testing.\n static __createInterpolation = createInterpolation;\n\n _parent: AnimatedNode;\n _config: InterpolationConfigType;\n _interpolation: (input: number) => number | string;\n\n constructor(parent: AnimatedNode, config: InterpolationConfigType) {\n super();\n this._parent = parent;\n this._config = config;\n this._interpolation = createInterpolation(config);\n }\n\n __makeNative() {\n this._parent.__makeNative();\n super.__makeNative();\n }\n\n __getValue(): number | string {\n const parentValue: number = this._parent.__getValue();\n invariant(\n typeof parentValue === 'number',\n 'Cannot interpolate an input which is not a number.',\n );\n return this._interpolation(parentValue);\n }\n\n interpolate(config: InterpolationConfigType): AnimatedInterpolation {\n return new AnimatedInterpolation(this, config);\n }\n\n __attach(): void {\n this._parent.__addChild(this);\n }\n\n __detach(): void {\n this._parent.__removeChild(this);\n super.__detach();\n }\n\n __transformDataType(range: Array) {\n // Change the string array type to number array\n // So we can reuse the same logic in iOS and Android platform\n /* $FlowFixMe(>=0.70.0 site=react_native_fb) This comment suppresses an\n * error found when Flow v0.70 was deployed. To see the error delete this\n * comment and run Flow. */\n return range.map(function(value) {\n if (typeof value !== 'string') {\n return value;\n }\n if (/deg$/.test(value)) {\n const degrees = parseFloat(value) || 0;\n const radians = (degrees * Math.PI) / 180.0;\n return radians;\n } else {\n // Assume radians\n return parseFloat(value) || 0;\n }\n });\n }\n\n __getNativeConfig(): any {\n if (__DEV__) {\n NativeAnimatedHelper.validateInterpolation(this._config);\n }\n\n return {\n inputRange: this._config.inputRange,\n // Only the `outputRange` can contain strings so we don't need to transform `inputRange` here\n outputRange: this.__transformDataType(this._config.outputRange),\n extrapolateLeft:\n this._config.extrapolateLeft || this._config.extrapolate || 'extend',\n extrapolateRight:\n this._config.extrapolateRight || this._config.extrapolate || 'extend',\n type: 'interpolation',\n };\n }\n}\n\nmodule.exports = AnimatedInterpolation;\n","/**\n * Copyright (c) 2015-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @flow\n * @format\n */\n'use strict';\n\nconst NativeAnimatedHelper = require('../NativeAnimatedHelper');\n\nconst invariant = require('fbjs/lib/invariant');\n\n// Note(vjeux): this would be better as an interface but flow doesn't\n// support them yet\nclass AnimatedNode {\n __attach(): void {}\n __detach(): void {\n if (this.__isNative && this.__nativeTag != null) {\n NativeAnimatedHelper.API.dropAnimatedNode(this.__nativeTag);\n this.__nativeTag = undefined;\n }\n }\n __getValue(): any {}\n __getAnimatedValue(): any {\n return this.__getValue();\n }\n __addChild(child: AnimatedNode) {}\n __removeChild(child: AnimatedNode) {}\n __getChildren(): Array {\n return [];\n }\n\n /* Methods and props used by native Animated impl */\n __isNative: boolean;\n __nativeTag: ?number;\n __makeNative() {\n if (!this.__isNative) {\n throw new Error('This node cannot be made a \"native\" animated node');\n }\n }\n __getNativeTag(): ?number {\n NativeAnimatedHelper.assertNativeAnimatedModule();\n invariant(\n this.__isNative,\n 'Attempt to get native tag from node not marked as \"native\"',\n );\n if (this.__nativeTag == null) {\n const nativeTag: ?number = NativeAnimatedHelper.generateNewNodeTag();\n NativeAnimatedHelper.API.createAnimatedNode(\n nativeTag,\n this.__getNativeConfig(),\n );\n this.__nativeTag = nativeTag;\n }\n return this.__nativeTag;\n }\n __getNativeConfig(): Object {\n throw new Error(\n 'This JS animated node type cannot be used as native animated node',\n );\n }\n toJSON(): any {\n return this.__getValue();\n }\n}\n\nmodule.exports = AnimatedNode;\n","/**\n * Copyright (c) 2015-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @flow\n * @format\n */\n'use strict';\n\nconst NativeAnimatedModule = require('NativeModules').NativeAnimatedModule;\nconst NativeEventEmitter = require('NativeEventEmitter');\n\nconst invariant = require('fbjs/lib/invariant');\n\nimport type {AnimationConfig} from './animations/Animation';\nimport type {EventConfig} from './AnimatedEvent';\n\nlet __nativeAnimatedNodeTagCount = 1; /* used for animated nodes */\nlet __nativeAnimationIdCount = 1; /* used for started animations */\n\ntype EndResult = {finished: boolean};\ntype EndCallback = (result: EndResult) => void;\ntype EventMapping = {\n nativeEventPath: Array,\n animatedValueTag: ?number,\n};\n\nlet nativeEventEmitter;\n\n/**\n * Simple wrappers around NativeAnimatedModule to provide flow and autocmplete support for\n * the native module methods\n */\nconst API = {\n createAnimatedNode: function(tag: ?number, config: Object): void {\n assertNativeAnimatedModule();\n NativeAnimatedModule.createAnimatedNode(tag, config);\n },\n startListeningToAnimatedNodeValue: function(tag: ?number) {\n assertNativeAnimatedModule();\n NativeAnimatedModule.startListeningToAnimatedNodeValue(tag);\n },\n stopListeningToAnimatedNodeValue: function(tag: ?number) {\n assertNativeAnimatedModule();\n NativeAnimatedModule.stopListeningToAnimatedNodeValue(tag);\n },\n connectAnimatedNodes: function(parentTag: ?number, childTag: ?number): void {\n assertNativeAnimatedModule();\n NativeAnimatedModule.connectAnimatedNodes(parentTag, childTag);\n },\n disconnectAnimatedNodes: function(\n parentTag: ?number,\n childTag: ?number,\n ): void {\n assertNativeAnimatedModule();\n NativeAnimatedModule.disconnectAnimatedNodes(parentTag, childTag);\n },\n startAnimatingNode: function(\n animationId: ?number,\n nodeTag: ?number,\n config: Object,\n endCallback: EndCallback,\n ): void {\n assertNativeAnimatedModule();\n NativeAnimatedModule.startAnimatingNode(\n animationId,\n nodeTag,\n config,\n endCallback,\n );\n },\n stopAnimation: function(animationId: ?number) {\n assertNativeAnimatedModule();\n NativeAnimatedModule.stopAnimation(animationId);\n },\n setAnimatedNodeValue: function(nodeTag: ?number, value: ?number): void {\n assertNativeAnimatedModule();\n NativeAnimatedModule.setAnimatedNodeValue(nodeTag, value);\n },\n setAnimatedNodeOffset: function(nodeTag: ?number, offset: ?number): void {\n assertNativeAnimatedModule();\n NativeAnimatedModule.setAnimatedNodeOffset(nodeTag, offset);\n },\n flattenAnimatedNodeOffset: function(nodeTag: ?number): void {\n assertNativeAnimatedModule();\n NativeAnimatedModule.flattenAnimatedNodeOffset(nodeTag);\n },\n extractAnimatedNodeOffset: function(nodeTag: ?number): void {\n assertNativeAnimatedModule();\n NativeAnimatedModule.extractAnimatedNodeOffset(nodeTag);\n },\n connectAnimatedNodeToView: function(\n nodeTag: ?number,\n viewTag: ?number,\n ): void {\n assertNativeAnimatedModule();\n NativeAnimatedModule.connectAnimatedNodeToView(nodeTag, viewTag);\n },\n disconnectAnimatedNodeFromView: function(\n nodeTag: ?number,\n viewTag: ?number,\n ): void {\n assertNativeAnimatedModule();\n NativeAnimatedModule.disconnectAnimatedNodeFromView(nodeTag, viewTag);\n },\n dropAnimatedNode: function(tag: ?number): void {\n assertNativeAnimatedModule();\n NativeAnimatedModule.dropAnimatedNode(tag);\n },\n addAnimatedEventToView: function(\n viewTag: ?number,\n eventName: string,\n eventMapping: EventMapping,\n ) {\n assertNativeAnimatedModule();\n NativeAnimatedModule.addAnimatedEventToView(\n viewTag,\n eventName,\n eventMapping,\n );\n },\n removeAnimatedEventFromView(\n viewTag: ?number,\n eventName: string,\n animatedNodeTag: ?number,\n ) {\n assertNativeAnimatedModule();\n NativeAnimatedModule.removeAnimatedEventFromView(\n viewTag,\n eventName,\n animatedNodeTag,\n );\n },\n};\n\n/**\n * Styles allowed by the native animated implementation.\n *\n * In general native animated implementation should support any numeric property that doesn't need\n * to be updated through the shadow view hierarchy (all non-layout properties).\n */\nconst STYLES_WHITELIST = {\n opacity: true,\n transform: true,\n borderRadius: true,\n borderBottomEndRadius: true,\n borderBottomLeftRadius: true,\n borderBottomRightRadius: true,\n borderBottomStartRadius: true,\n borderTopEndRadius: true,\n borderTopLeftRadius: true,\n borderTopRightRadius: true,\n borderTopStartRadius: true,\n /* ios styles */\n shadowOpacity: true,\n shadowRadius: true,\n /* legacy android transform properties */\n scaleX: true,\n scaleY: true,\n translateX: true,\n translateY: true,\n};\n\nconst TRANSFORM_WHITELIST = {\n translateX: true,\n translateY: true,\n scale: true,\n scaleX: true,\n scaleY: true,\n rotate: true,\n rotateX: true,\n rotateY: true,\n perspective: true,\n};\n\nconst SUPPORTED_INTERPOLATION_PARAMS = {\n inputRange: true,\n outputRange: true,\n extrapolate: true,\n extrapolateRight: true,\n extrapolateLeft: true,\n};\n\nfunction addWhitelistedStyleProp(prop: string): void {\n STYLES_WHITELIST[prop] = true;\n}\n\nfunction addWhitelistedTransformProp(prop: string): void {\n TRANSFORM_WHITELIST[prop] = true;\n}\n\nfunction addWhitelistedInterpolationParam(param: string): void {\n SUPPORTED_INTERPOLATION_PARAMS[param] = true;\n}\n\nfunction validateTransform(configs: Array): void {\n configs.forEach(config => {\n if (!TRANSFORM_WHITELIST.hasOwnProperty(config.property)) {\n throw new Error(\n `Property '${\n config.property\n }' is not supported by native animated module`,\n );\n }\n });\n}\n\nfunction validateStyles(styles: Object): void {\n for (const key in styles) {\n if (!STYLES_WHITELIST.hasOwnProperty(key)) {\n throw new Error(\n `Style property '${key}' is not supported by native animated module`,\n );\n }\n }\n}\n\nfunction validateInterpolation(config: Object): void {\n for (const key in config) {\n if (!SUPPORTED_INTERPOLATION_PARAMS.hasOwnProperty(key)) {\n throw new Error(\n `Interpolation property '${key}' is not supported by native animated module`,\n );\n }\n }\n}\n\nfunction generateNewNodeTag(): number {\n return __nativeAnimatedNodeTagCount++;\n}\n\nfunction generateNewAnimationId(): number {\n return __nativeAnimationIdCount++;\n}\n\nfunction assertNativeAnimatedModule(): void {\n invariant(NativeAnimatedModule, 'Native animated module is not available');\n}\n\nlet _warnedMissingNativeAnimated = false;\n\nfunction shouldUseNativeDriver(config: AnimationConfig | EventConfig): boolean {\n if (config.useNativeDriver && !NativeAnimatedModule) {\n if (!_warnedMissingNativeAnimated) {\n console.warn(\n 'Animated: `useNativeDriver` is not supported because the native ' +\n 'animated module is missing. Falling back to JS-based animation. To ' +\n 'resolve this, add `RCTAnimation` module to this app, or remove ' +\n '`useNativeDriver`. ' +\n 'More info: https://github.com/facebook/react-native/issues/11094#issuecomment-263240420',\n );\n _warnedMissingNativeAnimated = true;\n }\n return false;\n }\n\n return config.useNativeDriver || false;\n}\n\nmodule.exports = {\n API,\n addWhitelistedStyleProp,\n addWhitelistedTransformProp,\n addWhitelistedInterpolationParam,\n validateStyles,\n validateTransform,\n validateInterpolation,\n generateNewNodeTag,\n generateNewAnimationId,\n assertNativeAnimatedModule,\n shouldUseNativeDriver,\n get nativeEventEmitter() {\n if (!nativeEventEmitter) {\n nativeEventEmitter = new NativeEventEmitter(NativeAnimatedModule);\n }\n return nativeEventEmitter;\n },\n};\n","/**\n * Copyright (c) 2015-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @flow strict-local\n * @format\n */\n'use strict';\n\nconst AnimatedNode = require('./AnimatedNode');\nconst NativeAnimatedHelper = require('../NativeAnimatedHelper');\n\nclass AnimatedWithChildren extends AnimatedNode {\n _children: Array;\n\n constructor() {\n super();\n this._children = [];\n }\n\n __makeNative() {\n if (!this.__isNative) {\n this.__isNative = true;\n for (const child of this._children) {\n child.__makeNative();\n NativeAnimatedHelper.API.connectAnimatedNodes(\n this.__getNativeTag(),\n child.__getNativeTag(),\n );\n }\n }\n }\n\n __addChild(child: AnimatedNode): void {\n if (this._children.length === 0) {\n this.__attach();\n }\n this._children.push(child);\n if (this.__isNative) {\n // Only accept \"native\" animated nodes as children\n child.__makeNative();\n NativeAnimatedHelper.API.connectAnimatedNodes(\n this.__getNativeTag(),\n child.__getNativeTag(),\n );\n }\n }\n\n __removeChild(child: AnimatedNode): void {\n const index = this._children.indexOf(child);\n if (index === -1) {\n console.warn(\"Trying to remove a child that doesn't exist\");\n return;\n }\n if (this.__isNative && child.__isNative) {\n NativeAnimatedHelper.API.disconnectAnimatedNodes(\n this.__getNativeTag(),\n child.__getNativeTag(),\n );\n }\n this._children.splice(index, 1);\n if (this._children.length === 0) {\n this.__detach();\n }\n }\n\n __getChildren(): Array {\n return this._children;\n }\n}\n\nmodule.exports = AnimatedWithChildren;\n","/**\n * Copyright (c) 2015-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n * @flow\n */\n\n'use strict';\n\nconst BatchedBridge = require('BatchedBridge');\nconst EventEmitter = require('EventEmitter');\nconst Set = require('Set');\nconst TaskQueue = require('TaskQueue');\n\nconst infoLog = require('infoLog');\nconst invariant = require('fbjs/lib/invariant');\n/* $FlowFixMe(>=0.54.0 site=react_native_oss) This comment suppresses an error\n * found when Flow v0.54 was deployed. To see the error delete this comment and\n * run Flow. */\nconst keyMirror = require('fbjs/lib/keyMirror');\n\ntype Handle = number;\nimport type {Task} from 'TaskQueue';\n\nconst _emitter = new EventEmitter();\n\nconst DEBUG_DELAY = 0;\nconst DEBUG = false;\n\n/**\n * InteractionManager allows long-running work to be scheduled after any\n * interactions/animations have completed. In particular, this allows JavaScript\n * animations to run smoothly.\n *\n * Applications can schedule tasks to run after interactions with the following:\n *\n * ```\n * InteractionManager.runAfterInteractions(() => {\n * // ...long-running synchronous task...\n * });\n * ```\n *\n * Compare this to other scheduling alternatives:\n *\n * - requestAnimationFrame(): for code that animates a view over time.\n * - setImmediate/setTimeout(): run code later, note this may delay animations.\n * - runAfterInteractions(): run code later, without delaying active animations.\n *\n * The touch handling system considers one or more active touches to be an\n * 'interaction' and will delay `runAfterInteractions()` callbacks until all\n * touches have ended or been cancelled.\n *\n * InteractionManager also allows applications to register animations by\n * creating an interaction 'handle' on animation start, and clearing it upon\n * completion:\n *\n * ```\n * var handle = InteractionManager.createInteractionHandle();\n * // run animation... (`runAfterInteractions` tasks are queued)\n * // later, on animation completion:\n * InteractionManager.clearInteractionHandle(handle);\n * // queued tasks run if all handles were cleared\n * ```\n *\n * `runAfterInteractions` takes either a plain callback function, or a\n * `PromiseTask` object with a `gen` method that returns a `Promise`. If a\n * `PromiseTask` is supplied, then it is fully resolved (including asynchronous\n * dependencies that also schedule more tasks via `runAfterInteractions`) before\n * starting on the next task that might have been queued up synchronously\n * earlier.\n *\n * By default, queued tasks are executed together in a loop in one\n * `setImmediate` batch. If `setDeadline` is called with a positive number, then\n * tasks will only be executed until the deadline (in terms of js event loop run\n * time) approaches, at which point execution will yield via setTimeout,\n * allowing events such as touches to start interactions and block queued tasks\n * from executing, making apps more responsive.\n */\nconst InteractionManager = {\n Events: keyMirror({\n interactionStart: true,\n interactionComplete: true,\n }),\n\n /**\n * Schedule a function to run after all interactions have completed. Returns a cancellable\n * \"promise\".\n */\n runAfterInteractions(\n task: ?Task,\n ): {then: Function, done: Function, cancel: Function} {\n const tasks = [];\n const promise = new Promise(resolve => {\n _scheduleUpdate();\n if (task) {\n tasks.push(task);\n }\n tasks.push({\n run: resolve,\n name: 'resolve ' + ((task && task.name) || '?'),\n });\n _taskQueue.enqueueTasks(tasks);\n });\n return {\n then: promise.then.bind(promise),\n done: (...args) => {\n if (promise.done) {\n return promise.done(...args);\n } else {\n console.warn(\n 'Tried to call done when not supported by current Promise implementation.',\n );\n }\n },\n cancel: function() {\n _taskQueue.cancelTasks(tasks);\n },\n };\n },\n\n /**\n * Notify manager that an interaction has started.\n */\n createInteractionHandle(): Handle {\n DEBUG && infoLog('create interaction handle');\n _scheduleUpdate();\n const handle = ++_inc;\n _addInteractionSet.add(handle);\n return handle;\n },\n\n /**\n * Notify manager that an interaction has completed.\n */\n clearInteractionHandle(handle: Handle) {\n DEBUG && infoLog('clear interaction handle');\n invariant(!!handle, 'Must provide a handle to clear.');\n _scheduleUpdate();\n _addInteractionSet.delete(handle);\n _deleteInteractionSet.add(handle);\n },\n\n addListener: _emitter.addListener.bind(_emitter),\n\n /**\n * A positive number will use setTimeout to schedule any tasks after the\n * eventLoopRunningTime hits the deadline value, otherwise all tasks will be\n * executed in one setImmediate batch (default).\n */\n setDeadline(deadline: number) {\n _deadline = deadline;\n },\n};\n\nconst _interactionSet = new Set();\nconst _addInteractionSet = new Set();\nconst _deleteInteractionSet = new Set();\nconst _taskQueue = new TaskQueue({onMoreTasks: _scheduleUpdate});\nlet _nextUpdateHandle = 0;\nlet _inc = 0;\nlet _deadline = -1;\n\ndeclare function setImmediate(callback: any, ...args: Array): number;\n\n/**\n * Schedule an asynchronous update to the interaction state.\n */\nfunction _scheduleUpdate() {\n if (!_nextUpdateHandle) {\n if (_deadline > 0) {\n /* $FlowFixMe(>=0.63.0 site=react_native_fb) This comment suppresses an\n * error found when Flow v0.63 was deployed. To see the error delete this\n * comment and run Flow. */\n _nextUpdateHandle = setTimeout(_processUpdate, 0 + DEBUG_DELAY);\n } else {\n _nextUpdateHandle = setImmediate(_processUpdate);\n }\n }\n}\n\n/**\n * Notify listeners, process queue, etc\n */\nfunction _processUpdate() {\n _nextUpdateHandle = 0;\n\n const interactionCount = _interactionSet.size;\n _addInteractionSet.forEach(handle => _interactionSet.add(handle));\n _deleteInteractionSet.forEach(handle => _interactionSet.delete(handle));\n const nextInteractionCount = _interactionSet.size;\n\n if (interactionCount !== 0 && nextInteractionCount === 0) {\n // transition from 1+ --> 0 interactions\n _emitter.emit(InteractionManager.Events.interactionComplete);\n } else if (interactionCount === 0 && nextInteractionCount !== 0) {\n // transition from 0 --> 1+ interactions\n _emitter.emit(InteractionManager.Events.interactionStart);\n }\n\n // process the queue regardless of a transition\n if (nextInteractionCount === 0) {\n while (_taskQueue.hasTasksToProcess()) {\n _taskQueue.processNext();\n if (\n _deadline > 0 &&\n BatchedBridge.getEventLoopRunningTime() >= _deadline\n ) {\n // Hit deadline before processing all tasks, so process more later.\n _scheduleUpdate();\n break;\n }\n }\n }\n _addInteractionSet.clear();\n _deleteInteractionSet.clear();\n}\n\nmodule.exports = InteractionManager;\n","/**\n * Copyright (c) 2015-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n * @flow\n */\n\n'use strict';\n\nconst infoLog = require('infoLog');\nconst invariant = require('fbjs/lib/invariant');\n\ntype SimpleTask = {\n name: string,\n run: () => void,\n};\ntype PromiseTask = {\n name: string,\n gen: () => Promise,\n};\nexport type Task = Function | SimpleTask | PromiseTask;\n\nconst DEBUG = false;\n\n/**\n * TaskQueue - A system for queueing and executing a mix of simple callbacks and\n * trees of dependent tasks based on Promises. No tasks are executed unless\n * `processNext` is called.\n *\n * `enqueue` takes a Task object with either a simple `run` callback, or a\n * `gen` function that returns a `Promise` and puts it in the queue. If a gen\n * function is supplied, then the promise it returns will block execution of\n * tasks already in the queue until it resolves. This can be used to make sure\n * the first task is fully resolved (including asynchronous dependencies that\n * also schedule more tasks via `enqueue`) before starting on the next task.\n * The `onMoreTasks` constructor argument is used to inform the owner that an\n * async task has resolved and that the queue should be processed again.\n *\n * Note: Tasks are only actually executed with explicit calls to `processNext`.\n */\nclass TaskQueue {\n /**\n * TaskQueue instances are self contained and independent, so multiple tasks\n * of varying semantics and priority can operate together.\n *\n * `onMoreTasks` is invoked when `PromiseTask`s resolve if there are more\n * tasks to process.\n */\n constructor({onMoreTasks}: {onMoreTasks: () => void}) {\n this._onMoreTasks = onMoreTasks;\n this._queueStack = [{tasks: [], popable: false}];\n }\n\n /**\n * Add a task to the queue. It is recommended to name your tasks for easier\n * async debugging. Tasks will not be executed until `processNext` is called\n * explicitly.\n */\n enqueue(task: Task): void {\n this._getCurrentQueue().push(task);\n }\n\n enqueueTasks(tasks: Array): void {\n tasks.forEach(task => this.enqueue(task));\n }\n\n cancelTasks(tasksToCancel: Array): void {\n // search through all tasks and remove them.\n this._queueStack = this._queueStack\n .map(queue => ({\n ...queue,\n tasks: queue.tasks.filter(task => tasksToCancel.indexOf(task) === -1),\n }))\n .filter((queue, idx) => queue.tasks.length > 0 || idx === 0);\n }\n\n /**\n * Check to see if `processNext` should be called.\n *\n * @returns {boolean} Returns true if there are tasks that are ready to be\n * processed with `processNext`, or returns false if there are no more tasks\n * to be processed right now, although there may be tasks in the queue that\n * are blocked by earlier `PromiseTask`s that haven't resolved yet.\n * `onMoreTasks` will be called after each `PromiseTask` resolves if there are\n * tasks ready to run at that point.\n */\n hasTasksToProcess(): boolean {\n return this._getCurrentQueue().length > 0;\n }\n\n /**\n * Executes the next task in the queue.\n */\n processNext(): void {\n const queue = this._getCurrentQueue();\n if (queue.length) {\n const task = queue.shift();\n try {\n if (task.gen) {\n DEBUG && infoLog('genPromise for task ' + task.name);\n this._genPromise((task: any)); // Rather than annoying tagged union\n } else if (task.run) {\n DEBUG && infoLog('run task ' + task.name);\n task.run();\n } else {\n invariant(\n typeof task === 'function',\n 'Expected Function, SimpleTask, or PromiseTask, but got:\\n' +\n JSON.stringify(task, null, 2),\n );\n DEBUG && infoLog('run anonymous task');\n task();\n }\n } catch (e) {\n e.message =\n 'TaskQueue: Error with task ' + (task.name || '') + ': ' + e.message;\n throw e;\n }\n }\n }\n\n _queueStack: Array<{tasks: Array, popable: boolean}>;\n _onMoreTasks: () => void;\n\n _getCurrentQueue(): Array {\n const stackIdx = this._queueStack.length - 1;\n const queue = this._queueStack[stackIdx];\n if (\n queue.popable &&\n queue.tasks.length === 0 &&\n this._queueStack.length > 1\n ) {\n this._queueStack.pop();\n DEBUG &&\n infoLog('popped queue: ', {\n stackIdx,\n queueStackSize: this._queueStack.length,\n });\n return this._getCurrentQueue();\n } else {\n return queue.tasks;\n }\n }\n\n _genPromise(task: PromiseTask) {\n // Each async task pushes it's own queue onto the queue stack. This\n // effectively defers execution of previously queued tasks until the promise\n // resolves, at which point we allow the new queue to be popped, which\n // happens once it is fully processed.\n this._queueStack.push({tasks: [], popable: false});\n const stackIdx = this._queueStack.length - 1;\n DEBUG && infoLog('push new queue: ', {stackIdx});\n DEBUG && infoLog('exec gen task ' + task.name);\n task\n .gen()\n .then(() => {\n DEBUG &&\n infoLog('onThen for gen task ' + task.name, {\n stackIdx,\n queueStackSize: this._queueStack.length,\n });\n this._queueStack[stackIdx].popable = true;\n this.hasTasksToProcess() && this._onMoreTasks();\n })\n .catch(ex => {\n ex.message = `TaskQueue: Error resolving Promise in task ${\n task.name\n }: ${ex.message}`;\n throw ex;\n })\n .done();\n }\n}\n\nmodule.exports = TaskQueue;\n","/**\n * Copyright (c) 2015-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @flow\n * @format\n */\n'use strict';\n\nconst AnimatedInterpolation = require('./AnimatedInterpolation');\nconst AnimatedNode = require('./AnimatedNode');\nconst AnimatedValue = require('./AnimatedValue');\nconst AnimatedWithChildren = require('./AnimatedWithChildren');\n\nimport type {InterpolationConfigType} from './AnimatedInterpolation';\n\nclass AnimatedAddition extends AnimatedWithChildren {\n _a: AnimatedNode;\n _b: AnimatedNode;\n\n constructor(a: AnimatedNode | number, b: AnimatedNode | number) {\n super();\n this._a = typeof a === 'number' ? new AnimatedValue(a) : a;\n this._b = typeof b === 'number' ? new AnimatedValue(b) : b;\n }\n\n __makeNative() {\n this._a.__makeNative();\n this._b.__makeNative();\n super.__makeNative();\n }\n\n __getValue(): number {\n return this._a.__getValue() + this._b.__getValue();\n }\n\n interpolate(config: InterpolationConfigType): AnimatedInterpolation {\n return new AnimatedInterpolation(this, config);\n }\n\n __attach(): void {\n this._a.__addChild(this);\n this._b.__addChild(this);\n }\n\n __detach(): void {\n this._a.__removeChild(this);\n this._b.__removeChild(this);\n super.__detach();\n }\n\n __getNativeConfig(): any {\n return {\n type: 'addition',\n input: [this._a.__getNativeTag(), this._b.__getNativeTag()],\n };\n }\n}\n\nmodule.exports = AnimatedAddition;\n","/**\n * Copyright (c) 2015-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @flow\n * @format\n */\n'use strict';\n\nconst AnimatedInterpolation = require('./AnimatedInterpolation');\nconst AnimatedNode = require('./AnimatedNode');\nconst AnimatedWithChildren = require('./AnimatedWithChildren');\n\nimport type {InterpolationConfigType} from './AnimatedInterpolation';\n\nclass AnimatedDiffClamp extends AnimatedWithChildren {\n _a: AnimatedNode;\n _min: number;\n _max: number;\n _value: number;\n _lastValue: number;\n\n constructor(a: AnimatedNode, min: number, max: number) {\n super();\n\n this._a = a;\n this._min = min;\n this._max = max;\n this._value = this._lastValue = this._a.__getValue();\n }\n\n __makeNative() {\n this._a.__makeNative();\n super.__makeNative();\n }\n\n interpolate(config: InterpolationConfigType): AnimatedInterpolation {\n return new AnimatedInterpolation(this, config);\n }\n\n __getValue(): number {\n const value = this._a.__getValue();\n const diff = value - this._lastValue;\n this._lastValue = value;\n this._value = Math.min(Math.max(this._value + diff, this._min), this._max);\n return this._value;\n }\n\n __attach(): void {\n this._a.__addChild(this);\n }\n\n __detach(): void {\n this._a.__removeChild(this);\n super.__detach();\n }\n\n __getNativeConfig(): any {\n return {\n type: 'diffclamp',\n input: this._a.__getNativeTag(),\n min: this._min,\n max: this._max,\n };\n }\n}\n\nmodule.exports = AnimatedDiffClamp;\n","/**\n * Copyright (c) 2015-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @flow\n * @format\n */\n'use strict';\n\nconst AnimatedInterpolation = require('./AnimatedInterpolation');\nconst AnimatedNode = require('./AnimatedNode');\nconst AnimatedValue = require('./AnimatedValue');\nconst AnimatedWithChildren = require('./AnimatedWithChildren');\n\nimport type {InterpolationConfigType} from './AnimatedInterpolation';\n\nclass AnimatedDivision extends AnimatedWithChildren {\n _a: AnimatedNode;\n _b: AnimatedNode;\n\n constructor(a: AnimatedNode | number, b: AnimatedNode | number) {\n super();\n this._a = typeof a === 'number' ? new AnimatedValue(a) : a;\n this._b = typeof b === 'number' ? new AnimatedValue(b) : b;\n }\n\n __makeNative() {\n this._a.__makeNative();\n this._b.__makeNative();\n super.__makeNative();\n }\n\n __getValue(): number {\n const a = this._a.__getValue();\n const b = this._b.__getValue();\n if (b === 0) {\n console.error('Detected division by zero in AnimatedDivision');\n }\n return a / b;\n }\n\n interpolate(config: InterpolationConfigType): AnimatedInterpolation {\n return new AnimatedInterpolation(this, config);\n }\n\n __attach(): void {\n this._a.__addChild(this);\n this._b.__addChild(this);\n }\n\n __detach(): void {\n this._a.__removeChild(this);\n this._b.__removeChild(this);\n super.__detach();\n }\n\n __getNativeConfig(): any {\n return {\n type: 'division',\n input: [this._a.__getNativeTag(), this._b.__getNativeTag()],\n };\n }\n}\n\nmodule.exports = AnimatedDivision;\n","/**\n * Copyright (c) 2015-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @flow\n * @format\n */\n'use strict';\n\nconst AnimatedInterpolation = require('./AnimatedInterpolation');\nconst AnimatedNode = require('./AnimatedNode');\nconst AnimatedWithChildren = require('./AnimatedWithChildren');\n\nimport type {InterpolationConfigType} from './AnimatedInterpolation';\n\nclass AnimatedModulo extends AnimatedWithChildren {\n _a: AnimatedNode;\n _modulus: number;\n\n constructor(a: AnimatedNode, modulus: number) {\n super();\n this._a = a;\n this._modulus = modulus;\n }\n\n __makeNative() {\n this._a.__makeNative();\n super.__makeNative();\n }\n\n __getValue(): number {\n return (\n ((this._a.__getValue() % this._modulus) + this._modulus) % this._modulus\n );\n }\n\n interpolate(config: InterpolationConfigType): AnimatedInterpolation {\n return new AnimatedInterpolation(this, config);\n }\n\n __attach(): void {\n this._a.__addChild(this);\n }\n\n __detach(): void {\n this._a.__removeChild(this);\n super.__detach();\n }\n\n __getNativeConfig(): any {\n return {\n type: 'modulus',\n input: this._a.__getNativeTag(),\n modulus: this._modulus,\n };\n }\n}\n\nmodule.exports = AnimatedModulo;\n","/**\n * Copyright (c) 2015-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @flow\n * @format\n */\n'use strict';\n\nconst AnimatedInterpolation = require('./AnimatedInterpolation');\nconst AnimatedNode = require('./AnimatedNode');\nconst AnimatedValue = require('./AnimatedValue');\nconst AnimatedWithChildren = require('./AnimatedWithChildren');\n\nimport type {InterpolationConfigType} from './AnimatedInterpolation';\n\nclass AnimatedMultiplication extends AnimatedWithChildren {\n _a: AnimatedNode;\n _b: AnimatedNode;\n\n constructor(a: AnimatedNode | number, b: AnimatedNode | number) {\n super();\n this._a = typeof a === 'number' ? new AnimatedValue(a) : a;\n this._b = typeof b === 'number' ? new AnimatedValue(b) : b;\n }\n\n __makeNative() {\n this._a.__makeNative();\n this._b.__makeNative();\n super.__makeNative();\n }\n\n __getValue(): number {\n return this._a.__getValue() * this._b.__getValue();\n }\n\n interpolate(config: InterpolationConfigType): AnimatedInterpolation {\n return new AnimatedInterpolation(this, config);\n }\n\n __attach(): void {\n this._a.__addChild(this);\n this._b.__addChild(this);\n }\n\n __detach(): void {\n this._a.__removeChild(this);\n this._b.__removeChild(this);\n super.__detach();\n }\n\n __getNativeConfig(): any {\n return {\n type: 'multiplication',\n input: [this._a.__getNativeTag(), this._b.__getNativeTag()],\n };\n }\n}\n\nmodule.exports = AnimatedMultiplication;\n","/**\n * Copyright (c) 2015-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @flow\n * @format\n */\n'use strict';\n\nconst {AnimatedEvent} = require('../AnimatedEvent');\nconst AnimatedNode = require('./AnimatedNode');\nconst AnimatedStyle = require('./AnimatedStyle');\nconst NativeAnimatedHelper = require('../NativeAnimatedHelper');\nconst ReactNative = require('ReactNative');\n\nconst invariant = require('fbjs/lib/invariant');\n\nclass AnimatedProps extends AnimatedNode {\n _props: Object;\n _animatedView: any;\n _callback: () => void;\n\n constructor(props: Object, callback: () => void) {\n super();\n if (props.style) {\n props = {\n ...props,\n style: new AnimatedStyle(props.style),\n };\n }\n this._props = props;\n this._callback = callback;\n this.__attach();\n }\n\n __getValue(): Object {\n const props = {};\n for (const key in this._props) {\n const value = this._props[key];\n if (value instanceof AnimatedNode) {\n if (!value.__isNative || value instanceof AnimatedStyle) {\n // We cannot use value of natively driven nodes this way as the value we have access from\n // JS may not be up to date.\n props[key] = value.__getValue();\n }\n } else if (value instanceof AnimatedEvent) {\n props[key] = value.__getHandler();\n } else {\n props[key] = value;\n }\n }\n return props;\n }\n\n __getAnimatedValue(): Object {\n const props = {};\n for (const key in this._props) {\n const value = this._props[key];\n if (value instanceof AnimatedNode) {\n props[key] = value.__getAnimatedValue();\n }\n }\n return props;\n }\n\n __attach(): void {\n for (const key in this._props) {\n const value = this._props[key];\n if (value instanceof AnimatedNode) {\n value.__addChild(this);\n }\n }\n }\n\n __detach(): void {\n if (this.__isNative && this._animatedView) {\n this.__disconnectAnimatedView();\n }\n for (const key in this._props) {\n const value = this._props[key];\n if (value instanceof AnimatedNode) {\n value.__removeChild(this);\n }\n }\n super.__detach();\n }\n\n update(): void {\n this._callback();\n }\n\n __makeNative(): void {\n if (!this.__isNative) {\n this.__isNative = true;\n for (const key in this._props) {\n const value = this._props[key];\n if (value instanceof AnimatedNode) {\n value.__makeNative();\n }\n }\n if (this._animatedView) {\n this.__connectAnimatedView();\n }\n }\n }\n\n setNativeView(animatedView: any): void {\n if (this._animatedView === animatedView) {\n return;\n }\n this._animatedView = animatedView;\n if (this.__isNative) {\n this.__connectAnimatedView();\n }\n }\n\n __connectAnimatedView(): void {\n invariant(this.__isNative, 'Expected node to be marked as \"native\"');\n const nativeViewTag: ?number = ReactNative.findNodeHandle(\n this._animatedView,\n );\n invariant(\n nativeViewTag != null,\n 'Unable to locate attached view in the native tree',\n );\n NativeAnimatedHelper.API.connectAnimatedNodeToView(\n this.__getNativeTag(),\n nativeViewTag,\n );\n }\n\n __disconnectAnimatedView(): void {\n invariant(this.__isNative, 'Expected node to be marked as \"native\"');\n const nativeViewTag: ?number = ReactNative.findNodeHandle(\n this._animatedView,\n );\n invariant(\n nativeViewTag != null,\n 'Unable to locate attached view in the native tree',\n );\n NativeAnimatedHelper.API.disconnectAnimatedNodeFromView(\n this.__getNativeTag(),\n nativeViewTag,\n );\n }\n\n __getNativeConfig(): Object {\n const propsConfig = {};\n for (const propKey in this._props) {\n const value = this._props[propKey];\n if (value instanceof AnimatedNode) {\n propsConfig[propKey] = value.__getNativeTag();\n }\n }\n return {\n type: 'props',\n props: propsConfig,\n };\n }\n}\n\nmodule.exports = AnimatedProps;\n","/**\n * Copyright (c) 2015-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @flow\n * @format\n */\n'use strict';\n\nconst AnimatedNode = require('./AnimatedNode');\nconst AnimatedTransform = require('./AnimatedTransform');\nconst AnimatedWithChildren = require('./AnimatedWithChildren');\nconst NativeAnimatedHelper = require('../NativeAnimatedHelper');\n\nconst flattenStyle = require('flattenStyle');\n\nclass AnimatedStyle extends AnimatedWithChildren {\n _style: Object;\n\n constructor(style: any) {\n super();\n style = flattenStyle(style) || {};\n if (style.transform) {\n style = {\n ...style,\n transform: new AnimatedTransform(style.transform),\n };\n }\n this._style = style;\n }\n\n // Recursively get values for nested styles (like iOS's shadowOffset)\n _walkStyleAndGetValues(style) {\n const updatedStyle = {};\n for (const key in style) {\n const value = style[key];\n if (value instanceof AnimatedNode) {\n if (!value.__isNative) {\n // We cannot use value of natively driven nodes this way as the value we have access from\n // JS may not be up to date.\n updatedStyle[key] = value.__getValue();\n }\n } else if (value && !Array.isArray(value) && typeof value === 'object') {\n // Support animating nested values (for example: shadowOffset.height)\n updatedStyle[key] = this._walkStyleAndGetValues(value);\n } else {\n updatedStyle[key] = value;\n }\n }\n return updatedStyle;\n }\n\n __getValue(): Object {\n return this._walkStyleAndGetValues(this._style);\n }\n\n // Recursively get animated values for nested styles (like iOS's shadowOffset)\n _walkStyleAndGetAnimatedValues(style) {\n const updatedStyle = {};\n for (const key in style) {\n const value = style[key];\n if (value instanceof AnimatedNode) {\n updatedStyle[key] = value.__getAnimatedValue();\n } else if (value && !Array.isArray(value) && typeof value === 'object') {\n // Support animating nested values (for example: shadowOffset.height)\n updatedStyle[key] = this._walkStyleAndGetAnimatedValues(value);\n }\n }\n return updatedStyle;\n }\n\n __getAnimatedValue(): Object {\n return this._walkStyleAndGetAnimatedValues(this._style);\n }\n\n __attach(): void {\n for (const key in this._style) {\n const value = this._style[key];\n if (value instanceof AnimatedNode) {\n value.__addChild(this);\n }\n }\n }\n\n __detach(): void {\n for (const key in this._style) {\n const value = this._style[key];\n if (value instanceof AnimatedNode) {\n value.__removeChild(this);\n }\n }\n super.__detach();\n }\n\n __makeNative() {\n for (const key in this._style) {\n const value = this._style[key];\n if (value instanceof AnimatedNode) {\n value.__makeNative();\n }\n }\n super.__makeNative();\n }\n\n __getNativeConfig(): Object {\n const styleConfig = {};\n for (const styleKey in this._style) {\n if (this._style[styleKey] instanceof AnimatedNode) {\n styleConfig[styleKey] = this._style[styleKey].__getNativeTag();\n }\n // Non-animated styles are set using `setNativeProps`, no need\n // to pass those as a part of the node config\n }\n NativeAnimatedHelper.validateStyles(styleConfig);\n return {\n type: 'style',\n style: styleConfig,\n };\n }\n}\n\nmodule.exports = AnimatedStyle;\n","/**\n * Copyright (c) 2015-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @flow\n * @format\n */\n'use strict';\n\nconst AnimatedNode = require('./AnimatedNode');\nconst AnimatedWithChildren = require('./AnimatedWithChildren');\nconst NativeAnimatedHelper = require('../NativeAnimatedHelper');\n\nclass AnimatedTransform extends AnimatedWithChildren {\n _transforms: $ReadOnlyArray;\n\n constructor(transforms: $ReadOnlyArray) {\n super();\n this._transforms = transforms;\n }\n\n __makeNative() {\n this._transforms.forEach(transform => {\n for (const key in transform) {\n const value = transform[key];\n if (value instanceof AnimatedNode) {\n value.__makeNative();\n }\n }\n });\n super.__makeNative();\n }\n\n __getValue(): $ReadOnlyArray {\n return this._transforms.map(transform => {\n const result = {};\n for (const key in transform) {\n const value = transform[key];\n if (value instanceof AnimatedNode) {\n result[key] = value.__getValue();\n } else {\n result[key] = value;\n }\n }\n return result;\n });\n }\n\n __getAnimatedValue(): $ReadOnlyArray {\n return this._transforms.map(transform => {\n const result = {};\n for (const key in transform) {\n const value = transform[key];\n if (value instanceof AnimatedNode) {\n result[key] = value.__getAnimatedValue();\n } else {\n // All transform components needed to recompose matrix\n result[key] = value;\n }\n }\n return result;\n });\n }\n\n __attach(): void {\n this._transforms.forEach(transform => {\n for (const key in transform) {\n const value = transform[key];\n if (value instanceof AnimatedNode) {\n value.__addChild(this);\n }\n }\n });\n }\n\n __detach(): void {\n this._transforms.forEach(transform => {\n for (const key in transform) {\n const value = transform[key];\n if (value instanceof AnimatedNode) {\n value.__removeChild(this);\n }\n }\n });\n super.__detach();\n }\n\n __getNativeConfig(): any {\n const transConfigs = [];\n\n this._transforms.forEach(transform => {\n for (const key in transform) {\n const value = transform[key];\n if (value instanceof AnimatedNode) {\n transConfigs.push({\n type: 'animated',\n property: key,\n nodeTag: value.__getNativeTag(),\n });\n } else {\n transConfigs.push({\n type: 'static',\n property: key,\n value,\n });\n }\n }\n });\n\n NativeAnimatedHelper.validateTransform(transConfigs);\n return {\n type: 'transform',\n transforms: transConfigs,\n };\n }\n}\n\nmodule.exports = AnimatedTransform;\n","/**\n * Copyright (c) 2015-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @flow\n * @format\n */\n'use strict';\n\nconst AnimatedInterpolation = require('./AnimatedInterpolation');\nconst AnimatedNode = require('./AnimatedNode');\nconst AnimatedValue = require('./AnimatedValue');\nconst AnimatedWithChildren = require('./AnimatedWithChildren');\n\nimport type {InterpolationConfigType} from './AnimatedInterpolation';\n\nclass AnimatedSubtraction extends AnimatedWithChildren {\n _a: AnimatedNode;\n _b: AnimatedNode;\n\n constructor(a: AnimatedNode | number, b: AnimatedNode | number) {\n super();\n this._a = typeof a === 'number' ? new AnimatedValue(a) : a;\n this._b = typeof b === 'number' ? new AnimatedValue(b) : b;\n }\n\n __makeNative() {\n this._a.__makeNative();\n this._b.__makeNative();\n super.__makeNative();\n }\n\n __getValue(): number {\n return this._a.__getValue() - this._b.__getValue();\n }\n\n interpolate(config: InterpolationConfigType): AnimatedInterpolation {\n return new AnimatedInterpolation(this, config);\n }\n\n __attach(): void {\n this._a.__addChild(this);\n this._b.__addChild(this);\n }\n\n __detach(): void {\n this._a.__removeChild(this);\n this._b.__removeChild(this);\n super.__detach();\n }\n\n __getNativeConfig(): any {\n return {\n type: 'subtraction',\n input: [this._a.__getNativeTag(), this._b.__getNativeTag()],\n };\n }\n}\n\nmodule.exports = AnimatedSubtraction;\n","/**\n * Copyright (c) 2015-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @flow\n * @format\n */\n'use strict';\n\nconst AnimatedValue = require('./AnimatedValue');\nconst AnimatedNode = require('./AnimatedNode');\nconst {\n generateNewAnimationId,\n shouldUseNativeDriver,\n} = require('../NativeAnimatedHelper');\n\nimport type {EndCallback} from '../animations/Animation';\n\nclass AnimatedTracking extends AnimatedNode {\n _value: AnimatedValue;\n _parent: AnimatedNode;\n _callback: ?EndCallback;\n _animationConfig: Object;\n _animationClass: any;\n _useNativeDriver: boolean;\n\n constructor(\n value: AnimatedValue,\n parent: AnimatedNode,\n animationClass: any,\n animationConfig: Object,\n callback?: ?EndCallback,\n ) {\n super();\n this._value = value;\n this._parent = parent;\n this._animationClass = animationClass;\n this._animationConfig = animationConfig;\n this._useNativeDriver = shouldUseNativeDriver(animationConfig);\n this._callback = callback;\n this.__attach();\n }\n\n __makeNative() {\n this.__isNative = true;\n this._parent.__makeNative();\n super.__makeNative();\n this._value.__makeNative();\n }\n\n __getValue(): Object {\n return this._parent.__getValue();\n }\n\n __attach(): void {\n this._parent.__addChild(this);\n if (this._useNativeDriver) {\n // when the tracking starts we need to convert this node to a \"native node\"\n // so that the parent node will be made \"native\" too. This is necessary as\n // if we don't do this `update` method will get called. At that point it\n // may be too late as it would mean the JS driver has already started\n // updating node values\n this.__makeNative();\n }\n }\n\n __detach(): void {\n this._parent.__removeChild(this);\n super.__detach();\n }\n\n update(): void {\n this._value.animate(\n new this._animationClass({\n ...this._animationConfig,\n toValue: (this._animationConfig.toValue: any).__getValue(),\n }),\n this._callback,\n );\n }\n\n __getNativeConfig(): any {\n const animation = new this._animationClass({\n ...this._animationConfig,\n // remove toValue from the config as it's a ref to Animated.Value\n toValue: undefined,\n });\n const animationConfig = animation.__getNativeAnimationConfig();\n return {\n type: 'tracking',\n animationId: generateNewAnimationId(),\n animationConfig,\n toValue: this._parent.__getNativeTag(),\n value: this._value.__getNativeTag(),\n };\n }\n}\n\nmodule.exports = AnimatedTracking;\n","/**\n * Copyright (c) 2015-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @flow\n * @format\n */\n'use strict';\n\nconst AnimatedValue = require('./AnimatedValue');\nconst AnimatedWithChildren = require('./AnimatedWithChildren');\n\nconst invariant = require('fbjs/lib/invariant');\n\ntype ValueXYListenerCallback = (value: {x: number, y: number}) => void;\n\nlet _uniqueId = 1;\n\n/**\n * 2D Value for driving 2D animations, such as pan gestures. Almost identical\n * API to normal `Animated.Value`, but multiplexed.\n *\n * See http://facebook.github.io/react-native/docs/animatedvaluexy.html\n */\nclass AnimatedValueXY extends AnimatedWithChildren {\n x: AnimatedValue;\n y: AnimatedValue;\n _listeners: {[key: string]: {x: string, y: string}};\n\n constructor(\n valueIn?: ?{+x: number | AnimatedValue, +y: number | AnimatedValue},\n ) {\n super();\n const value: any = valueIn || {x: 0, y: 0}; // @flowfixme: shouldn't need `: any`\n if (typeof value.x === 'number' && typeof value.y === 'number') {\n this.x = new AnimatedValue(value.x);\n this.y = new AnimatedValue(value.y);\n } else {\n invariant(\n value.x instanceof AnimatedValue && value.y instanceof AnimatedValue,\n 'AnimatedValueXY must be initialized with an object of numbers or ' +\n 'AnimatedValues.',\n );\n this.x = value.x;\n this.y = value.y;\n }\n this._listeners = {};\n }\n\n /**\n * Directly set the value. This will stop any animations running on the value\n * and update all the bound properties.\n *\n * See http://facebook.github.io/react-native/docs/animatedvaluexy.html#setvalue\n */\n setValue(value: {x: number, y: number}) {\n this.x.setValue(value.x);\n this.y.setValue(value.y);\n }\n\n /**\n * Sets an offset that is applied on top of whatever value is set, whether\n * via `setValue`, an animation, or `Animated.event`. Useful for compensating\n * things like the start of a pan gesture.\n *\n * See http://facebook.github.io/react-native/docs/animatedvaluexy.html#setoffset\n */\n setOffset(offset: {x: number, y: number}) {\n this.x.setOffset(offset.x);\n this.y.setOffset(offset.y);\n }\n\n /**\n * Merges the offset value into the base value and resets the offset to zero.\n * The final output of the value is unchanged.\n *\n * See http://facebook.github.io/react-native/docs/animatedvaluexy.html#flattenoffset\n */\n flattenOffset(): void {\n this.x.flattenOffset();\n this.y.flattenOffset();\n }\n\n /**\n * Sets the offset value to the base value, and resets the base value to\n * zero. The final output of the value is unchanged.\n *\n * See http://facebook.github.io/react-native/docs/animatedvaluexy.html#extractoffset\n */\n extractOffset(): void {\n this.x.extractOffset();\n this.y.extractOffset();\n }\n\n __getValue(): {x: number, y: number} {\n return {\n x: this.x.__getValue(),\n y: this.y.__getValue(),\n };\n }\n\n /**\n * Stops any animation and resets the value to its original.\n *\n * See http://facebook.github.io/react-native/docs/animatedvaluexy.html#resetanimation\n */\n resetAnimation(callback?: (value: {x: number, y: number}) => void): void {\n this.x.resetAnimation();\n this.y.resetAnimation();\n callback && callback(this.__getValue());\n }\n\n /**\n * Stops any running animation or tracking. `callback` is invoked with the\n * final value after stopping the animation, which is useful for updating\n * state to match the animation position with layout.\n *\n * See http://facebook.github.io/react-native/docs/animatedvaluexy.html#stopanimation\n */\n stopAnimation(callback?: (value: {x: number, y: number}) => void): void {\n this.x.stopAnimation();\n this.y.stopAnimation();\n callback && callback(this.__getValue());\n }\n\n /**\n * Adds an asynchronous listener to the value so you can observe updates from\n * animations. This is useful because there is no way to synchronously read\n * the value because it might be driven natively.\n *\n * Returns a string that serves as an identifier for the listener.\n *\n * See http://facebook.github.io/react-native/docs/animatedvaluexy.html#addlistener\n */\n addListener(callback: ValueXYListenerCallback): string {\n const id = String(_uniqueId++);\n const jointCallback = ({value: number}) => {\n callback(this.__getValue());\n };\n this._listeners[id] = {\n x: this.x.addListener(jointCallback),\n y: this.y.addListener(jointCallback),\n };\n return id;\n }\n\n /**\n * Unregister a listener. The `id` param shall match the identifier\n * previously returned by `addListener()`.\n *\n * See http://facebook.github.io/react-native/docs/animatedvaluexy.html#removelistener\n */\n removeListener(id: string): void {\n this.x.removeListener(this._listeners[id].x);\n this.y.removeListener(this._listeners[id].y);\n delete this._listeners[id];\n }\n\n /**\n * Remove all registered listeners.\n *\n * See http://facebook.github.io/react-native/docs/animatedvaluexy.html#removealllisteners\n */\n removeAllListeners(): void {\n this.x.removeAllListeners();\n this.y.removeAllListeners();\n this._listeners = {};\n }\n\n /**\n * Converts `{x, y}` into `{left, top}` for use in style.\n *\n * See http://facebook.github.io/react-native/docs/animatedvaluexy.html#getlayout\n */\n getLayout(): {[key: string]: AnimatedValue} {\n return {\n left: this.x,\n top: this.y,\n };\n }\n\n /**\n * Converts `{x, y}` into a useable translation transform.\n *\n * See http://facebook.github.io/react-native/docs/animatedvaluexy.html#gettranslatetransform\n */\n getTranslateTransform(): Array<{[key: string]: AnimatedValue}> {\n return [{translateX: this.x}, {translateY: this.y}];\n }\n}\n\nmodule.exports = AnimatedValueXY;\n","/**\n * Copyright (c) 2015-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @flow\n * @format\n */\n'use strict';\n\nconst Animation = require('./Animation');\n\nconst {shouldUseNativeDriver} = require('../NativeAnimatedHelper');\n\nimport type {AnimationConfig, EndCallback} from './Animation';\nimport type AnimatedValue from '../nodes/AnimatedValue';\n\nexport type DecayAnimationConfig = AnimationConfig & {\n velocity: number | {x: number, y: number},\n deceleration?: number,\n};\n\nexport type DecayAnimationConfigSingle = AnimationConfig & {\n velocity: number,\n deceleration?: number,\n};\n\nclass DecayAnimation extends Animation {\n _startTime: number;\n _lastValue: number;\n _fromValue: number;\n _deceleration: number;\n _velocity: number;\n _onUpdate: (value: number) => void;\n _animationFrame: any;\n _useNativeDriver: boolean;\n\n constructor(config: DecayAnimationConfigSingle) {\n super();\n this._deceleration =\n config.deceleration !== undefined ? config.deceleration : 0.998;\n this._velocity = config.velocity;\n this._useNativeDriver = shouldUseNativeDriver(config);\n this.__isInteraction =\n config.isInteraction !== undefined ? config.isInteraction : true;\n this.__iterations = config.iterations !== undefined ? config.iterations : 1;\n }\n\n __getNativeAnimationConfig() {\n return {\n type: 'decay',\n deceleration: this._deceleration,\n velocity: this._velocity,\n iterations: this.__iterations,\n };\n }\n\n start(\n fromValue: number,\n onUpdate: (value: number) => void,\n onEnd: ?EndCallback,\n previousAnimation: ?Animation,\n animatedValue: AnimatedValue,\n ): void {\n this.__active = true;\n this._lastValue = fromValue;\n this._fromValue = fromValue;\n this._onUpdate = onUpdate;\n this.__onEnd = onEnd;\n this._startTime = Date.now();\n if (this._useNativeDriver) {\n this.__startNativeAnimation(animatedValue);\n } else {\n this._animationFrame = requestAnimationFrame(this.onUpdate.bind(this));\n }\n }\n\n onUpdate(): void {\n const now = Date.now();\n\n const value =\n this._fromValue +\n (this._velocity / (1 - this._deceleration)) *\n (1 - Math.exp(-(1 - this._deceleration) * (now - this._startTime)));\n\n this._onUpdate(value);\n\n if (Math.abs(this._lastValue - value) < 0.1) {\n this.__debouncedOnEnd({finished: true});\n return;\n }\n\n this._lastValue = value;\n if (this.__active) {\n this._animationFrame = requestAnimationFrame(this.onUpdate.bind(this));\n }\n }\n\n stop(): void {\n super.stop();\n this.__active = false;\n global.cancelAnimationFrame(this._animationFrame);\n this.__debouncedOnEnd({finished: false});\n }\n}\n\nmodule.exports = DecayAnimation;\n","/**\n * Copyright (c) 2015-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @flow\n * @format\n */\n'use strict';\n\nconst NativeAnimatedHelper = require('NativeAnimatedHelper');\n\nimport type AnimatedValue from '../nodes/AnimatedValue';\n\nexport type EndResult = {finished: boolean};\nexport type EndCallback = (result: EndResult) => void;\n\nexport type AnimationConfig = {\n isInteraction?: boolean,\n useNativeDriver?: boolean,\n onComplete?: ?EndCallback,\n iterations?: number,\n};\n\n// Important note: start() and stop() will only be called at most once.\n// Once an animation has been stopped or finished its course, it will\n// not be reused.\nclass Animation {\n __active: boolean;\n __isInteraction: boolean;\n __nativeId: number;\n __onEnd: ?EndCallback;\n __iterations: number;\n start(\n fromValue: number,\n onUpdate: (value: number) => void,\n onEnd: ?EndCallback,\n previousAnimation: ?Animation,\n animatedValue: AnimatedValue,\n ): void {}\n stop(): void {\n if (this.__nativeId) {\n NativeAnimatedHelper.API.stopAnimation(this.__nativeId);\n }\n }\n __getNativeAnimationConfig(): any {\n // Subclasses that have corresponding animation implementation done in native\n // should override this method\n throw new Error('This animation type cannot be offloaded to native');\n }\n // Helper function for subclasses to make sure onEnd is only called once.\n __debouncedOnEnd(result: EndResult): void {\n const onEnd = this.__onEnd;\n this.__onEnd = null;\n onEnd && onEnd(result);\n }\n __startNativeAnimation(animatedValue: AnimatedValue): void {\n animatedValue.__makeNative();\n this.__nativeId = NativeAnimatedHelper.generateNewAnimationId();\n NativeAnimatedHelper.API.startAnimatingNode(\n this.__nativeId,\n animatedValue.__getNativeTag(),\n this.__getNativeAnimationConfig(),\n this.__debouncedOnEnd.bind(this),\n );\n }\n}\n\nmodule.exports = Animation;\n","/**\n * Copyright (c) 2015-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @flow\n * @format\n */\n'use strict';\n\nconst AnimatedValue = require('../nodes/AnimatedValue');\nconst AnimatedValueXY = require('../nodes/AnimatedValueXY');\nconst Animation = require('./Animation');\nconst SpringConfig = require('../SpringConfig');\n\nconst invariant = require('fbjs/lib/invariant');\nconst {shouldUseNativeDriver} = require('../NativeAnimatedHelper');\n\nimport type {AnimationConfig, EndCallback} from './Animation';\n\nexport type SpringAnimationConfig = AnimationConfig & {\n toValue: number | AnimatedValue | {x: number, y: number} | AnimatedValueXY,\n overshootClamping?: boolean,\n restDisplacementThreshold?: number,\n restSpeedThreshold?: number,\n velocity?: number | {x: number, y: number},\n bounciness?: number,\n speed?: number,\n tension?: number,\n friction?: number,\n stiffness?: number,\n damping?: number,\n mass?: number,\n delay?: number,\n};\n\nexport type SpringAnimationConfigSingle = AnimationConfig & {\n toValue: number | AnimatedValue,\n overshootClamping?: boolean,\n restDisplacementThreshold?: number,\n restSpeedThreshold?: number,\n velocity?: number,\n bounciness?: number,\n speed?: number,\n tension?: number,\n friction?: number,\n stiffness?: number,\n damping?: number,\n mass?: number,\n delay?: number,\n};\n\nfunction withDefault(value: ?T, defaultValue: T): T {\n if (value === undefined || value === null) {\n return defaultValue;\n }\n return value;\n}\n\nclass SpringAnimation extends Animation {\n _overshootClamping: boolean;\n _restDisplacementThreshold: number;\n _restSpeedThreshold: number;\n _lastVelocity: number;\n _startPosition: number;\n _lastPosition: number;\n _fromValue: number;\n _toValue: any;\n _stiffness: number;\n _damping: number;\n _mass: number;\n _initialVelocity: number;\n _delay: number;\n _timeout: any;\n _startTime: number;\n _lastTime: number;\n _frameTime: number;\n _onUpdate: (value: number) => void;\n _animationFrame: any;\n _useNativeDriver: boolean;\n\n constructor(config: SpringAnimationConfigSingle) {\n super();\n\n this._overshootClamping = withDefault(config.overshootClamping, false);\n this._restDisplacementThreshold = withDefault(\n config.restDisplacementThreshold,\n 0.001,\n );\n this._restSpeedThreshold = withDefault(config.restSpeedThreshold, 0.001);\n this._initialVelocity = withDefault(config.velocity, 0);\n this._lastVelocity = withDefault(config.velocity, 0);\n this._toValue = config.toValue;\n this._delay = withDefault(config.delay, 0);\n this._useNativeDriver = shouldUseNativeDriver(config);\n this.__isInteraction =\n config.isInteraction !== undefined ? config.isInteraction : true;\n this.__iterations = config.iterations !== undefined ? config.iterations : 1;\n\n if (\n config.stiffness !== undefined ||\n config.damping !== undefined ||\n config.mass !== undefined\n ) {\n invariant(\n config.bounciness === undefined &&\n config.speed === undefined &&\n config.tension === undefined &&\n config.friction === undefined,\n 'You can define one of bounciness/speed, tension/friction, or stiffness/damping/mass, but not more than one',\n );\n this._stiffness = withDefault(config.stiffness, 100);\n this._damping = withDefault(config.damping, 10);\n this._mass = withDefault(config.mass, 1);\n } else if (config.bounciness !== undefined || config.speed !== undefined) {\n // Convert the origami bounciness/speed values to stiffness/damping\n // We assume mass is 1.\n invariant(\n config.tension === undefined &&\n config.friction === undefined &&\n config.stiffness === undefined &&\n config.damping === undefined &&\n config.mass === undefined,\n 'You can define one of bounciness/speed, tension/friction, or stiffness/damping/mass, but not more than one',\n );\n const springConfig = SpringConfig.fromBouncinessAndSpeed(\n withDefault(config.bounciness, 8),\n withDefault(config.speed, 12),\n );\n this._stiffness = springConfig.stiffness;\n this._damping = springConfig.damping;\n this._mass = 1;\n } else {\n // Convert the origami tension/friction values to stiffness/damping\n // We assume mass is 1.\n const springConfig = SpringConfig.fromOrigamiTensionAndFriction(\n withDefault(config.tension, 40),\n withDefault(config.friction, 7),\n );\n this._stiffness = springConfig.stiffness;\n this._damping = springConfig.damping;\n this._mass = 1;\n }\n\n invariant(this._stiffness > 0, 'Stiffness value must be greater than 0');\n invariant(this._damping > 0, 'Damping value must be greater than 0');\n invariant(this._mass > 0, 'Mass value must be greater than 0');\n }\n\n __getNativeAnimationConfig() {\n return {\n type: 'spring',\n overshootClamping: this._overshootClamping,\n restDisplacementThreshold: this._restDisplacementThreshold,\n restSpeedThreshold: this._restSpeedThreshold,\n stiffness: this._stiffness,\n damping: this._damping,\n mass: this._mass,\n initialVelocity: withDefault(this._initialVelocity, this._lastVelocity),\n toValue: this._toValue,\n iterations: this.__iterations,\n };\n }\n\n start(\n fromValue: number,\n onUpdate: (value: number) => void,\n onEnd: ?EndCallback,\n previousAnimation: ?Animation,\n animatedValue: AnimatedValue,\n ): void {\n this.__active = true;\n this._startPosition = fromValue;\n this._lastPosition = this._startPosition;\n\n this._onUpdate = onUpdate;\n this.__onEnd = onEnd;\n this._lastTime = Date.now();\n this._frameTime = 0.0;\n\n if (previousAnimation instanceof SpringAnimation) {\n const internalState = previousAnimation.getInternalState();\n this._lastPosition = internalState.lastPosition;\n this._lastVelocity = internalState.lastVelocity;\n // Set the initial velocity to the last velocity\n this._initialVelocity = this._lastVelocity;\n this._lastTime = internalState.lastTime;\n }\n\n const start = () => {\n if (this._useNativeDriver) {\n this.__startNativeAnimation(animatedValue);\n } else {\n this.onUpdate();\n }\n };\n\n // If this._delay is more than 0, we start after the timeout.\n if (this._delay) {\n this._timeout = setTimeout(start, this._delay);\n } else {\n start();\n }\n }\n\n getInternalState(): Object {\n return {\n lastPosition: this._lastPosition,\n lastVelocity: this._lastVelocity,\n lastTime: this._lastTime,\n };\n }\n\n /**\n * This spring model is based off of a damped harmonic oscillator\n * (https://en.wikipedia.org/wiki/Harmonic_oscillator#Damped_harmonic_oscillator).\n *\n * We use the closed form of the second order differential equation:\n *\n * x'' + (2ζ⍵_0)x' + ⍵^2x = 0\n *\n * where\n * ⍵_0 = √(k / m) (undamped angular frequency of the oscillator),\n * ζ = c / 2√mk (damping ratio),\n * c = damping constant\n * k = stiffness\n * m = mass\n *\n * The derivation of the closed form is described in detail here:\n * http://planetmath.org/sites/default/files/texpdf/39745.pdf\n *\n * This algorithm happens to match the algorithm used by CASpringAnimation,\n * a QuartzCore (iOS) API that creates spring animations.\n */\n onUpdate(): void {\n // If for some reason we lost a lot of frames (e.g. process large payload or\n // stopped in the debugger), we only advance by 4 frames worth of\n // computation and will continue on the next frame. It's better to have it\n // running at faster speed than jumping to the end.\n const MAX_STEPS = 64;\n let now = Date.now();\n if (now > this._lastTime + MAX_STEPS) {\n now = this._lastTime + MAX_STEPS;\n }\n\n const deltaTime = (now - this._lastTime) / 1000;\n this._frameTime += deltaTime;\n\n const c: number = this._damping;\n const m: number = this._mass;\n const k: number = this._stiffness;\n const v0: number = -this._initialVelocity;\n\n const zeta = c / (2 * Math.sqrt(k * m)); // damping ratio\n const omega0 = Math.sqrt(k / m); // undamped angular frequency of the oscillator (rad/ms)\n const omega1 = omega0 * Math.sqrt(1.0 - zeta * zeta); // exponential decay\n const x0 = this._toValue - this._startPosition; // calculate the oscillation from x0 = 1 to x = 0\n\n let position = 0.0;\n let velocity = 0.0;\n const t = this._frameTime;\n if (zeta < 1) {\n // Under damped\n const envelope = Math.exp(-zeta * omega0 * t);\n position =\n this._toValue -\n envelope *\n (((v0 + zeta * omega0 * x0) / omega1) * Math.sin(omega1 * t) +\n x0 * Math.cos(omega1 * t));\n // This looks crazy -- it's actually just the derivative of the\n // oscillation function\n velocity =\n zeta *\n omega0 *\n envelope *\n ((Math.sin(omega1 * t) * (v0 + zeta * omega0 * x0)) / omega1 +\n x0 * Math.cos(omega1 * t)) -\n envelope *\n (Math.cos(omega1 * t) * (v0 + zeta * omega0 * x0) -\n omega1 * x0 * Math.sin(omega1 * t));\n } else {\n // Critically damped\n const envelope = Math.exp(-omega0 * t);\n position = this._toValue - envelope * (x0 + (v0 + omega0 * x0) * t);\n velocity =\n envelope * (v0 * (t * omega0 - 1) + t * x0 * (omega0 * omega0));\n }\n\n this._lastTime = now;\n this._lastPosition = position;\n this._lastVelocity = velocity;\n\n this._onUpdate(position);\n if (!this.__active) {\n // a listener might have stopped us in _onUpdate\n return;\n }\n\n // Conditions for stopping the spring animation\n let isOvershooting = false;\n if (this._overshootClamping && this._stiffness !== 0) {\n if (this._startPosition < this._toValue) {\n isOvershooting = position > this._toValue;\n } else {\n isOvershooting = position < this._toValue;\n }\n }\n const isVelocity = Math.abs(velocity) <= this._restSpeedThreshold;\n let isDisplacement = true;\n if (this._stiffness !== 0) {\n isDisplacement =\n Math.abs(this._toValue - position) <= this._restDisplacementThreshold;\n }\n\n if (isOvershooting || (isVelocity && isDisplacement)) {\n if (this._stiffness !== 0) {\n // Ensure that we end up with a round value\n this._lastPosition = this._toValue;\n this._lastVelocity = 0;\n this._onUpdate(this._toValue);\n }\n\n this.__debouncedOnEnd({finished: true});\n return;\n }\n this._animationFrame = requestAnimationFrame(this.onUpdate.bind(this));\n }\n\n stop(): void {\n super.stop();\n this.__active = false;\n clearTimeout(this._timeout);\n global.cancelAnimationFrame(this._animationFrame);\n this.__debouncedOnEnd({finished: false});\n }\n}\n\nmodule.exports = SpringAnimation;\n","/**\n * Copyright (c) 2015-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n * @flow strict\n */\n\n'use strict';\n\ntype SpringConfigType = {\n stiffness: number,\n damping: number,\n};\n\nfunction stiffnessFromOrigamiValue(oValue) {\n return (oValue - 30) * 3.62 + 194;\n}\n\nfunction dampingFromOrigamiValue(oValue) {\n return (oValue - 8) * 3 + 25;\n}\n\nfunction fromOrigamiTensionAndFriction(\n tension: number,\n friction: number,\n): SpringConfigType {\n return {\n stiffness: stiffnessFromOrigamiValue(tension),\n damping: dampingFromOrigamiValue(friction),\n };\n}\n\nfunction fromBouncinessAndSpeed(\n bounciness: number,\n speed: number,\n): SpringConfigType {\n function normalize(value, startValue, endValue) {\n return (value - startValue) / (endValue - startValue);\n }\n\n function projectNormal(n, start, end) {\n return start + n * (end - start);\n }\n\n function linearInterpolation(t, start, end) {\n return t * end + (1 - t) * start;\n }\n\n function quadraticOutInterpolation(t, start, end) {\n return linearInterpolation(2 * t - t * t, start, end);\n }\n\n function b3Friction1(x) {\n return 0.0007 * Math.pow(x, 3) - 0.031 * Math.pow(x, 2) + 0.64 * x + 1.28;\n }\n\n function b3Friction2(x) {\n return 0.000044 * Math.pow(x, 3) - 0.006 * Math.pow(x, 2) + 0.36 * x + 2;\n }\n\n function b3Friction3(x) {\n return (\n 0.00000045 * Math.pow(x, 3) -\n 0.000332 * Math.pow(x, 2) +\n 0.1078 * x +\n 5.84\n );\n }\n\n function b3Nobounce(tension) {\n if (tension <= 18) {\n return b3Friction1(tension);\n } else if (tension > 18 && tension <= 44) {\n return b3Friction2(tension);\n } else {\n return b3Friction3(tension);\n }\n }\n\n let b = normalize(bounciness / 1.7, 0, 20);\n b = projectNormal(b, 0, 0.8);\n const s = normalize(speed / 1.7, 0, 20);\n const bouncyTension = projectNormal(s, 0.5, 200);\n const bouncyFriction = quadraticOutInterpolation(\n b,\n b3Nobounce(bouncyTension),\n 0.01,\n );\n\n return {\n stiffness: stiffnessFromOrigamiValue(bouncyTension),\n damping: dampingFromOrigamiValue(bouncyFriction),\n };\n}\n\nmodule.exports = {\n fromOrigamiTensionAndFriction,\n fromBouncinessAndSpeed,\n};\n","/**\n * Copyright (c) 2015-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @flow\n * @format\n */\n'use strict';\n\nconst AnimatedValue = require('../nodes/AnimatedValue');\nconst AnimatedValueXY = require('../nodes/AnimatedValueXY');\nconst Animation = require('./Animation');\n\nconst {shouldUseNativeDriver} = require('../NativeAnimatedHelper');\n\nimport type {AnimationConfig, EndCallback} from './Animation';\n\nexport type TimingAnimationConfig = AnimationConfig & {\n toValue: number | AnimatedValue | {x: number, y: number} | AnimatedValueXY,\n easing?: (value: number) => number,\n duration?: number,\n delay?: number,\n};\n\nexport type TimingAnimationConfigSingle = AnimationConfig & {\n toValue: number | AnimatedValue,\n easing?: (value: number) => number,\n duration?: number,\n delay?: number,\n};\n\nlet _easeInOut;\nfunction easeInOut() {\n if (!_easeInOut) {\n const Easing = require('Easing');\n _easeInOut = Easing.inOut(Easing.ease);\n }\n return _easeInOut;\n}\n\nclass TimingAnimation extends Animation {\n _startTime: number;\n _fromValue: number;\n _toValue: any;\n _duration: number;\n _delay: number;\n _easing: (value: number) => number;\n _onUpdate: (value: number) => void;\n _animationFrame: any;\n _timeout: any;\n _useNativeDriver: boolean;\n\n constructor(config: TimingAnimationConfigSingle) {\n super();\n this._toValue = config.toValue;\n this._easing = config.easing !== undefined ? config.easing : easeInOut();\n this._duration = config.duration !== undefined ? config.duration : 500;\n this._delay = config.delay !== undefined ? config.delay : 0;\n this.__iterations = config.iterations !== undefined ? config.iterations : 1;\n this.__isInteraction =\n config.isInteraction !== undefined ? config.isInteraction : true;\n this._useNativeDriver = shouldUseNativeDriver(config);\n }\n\n __getNativeAnimationConfig(): any {\n const frameDuration = 1000.0 / 60.0;\n const frames = [];\n for (let dt = 0.0; dt < this._duration; dt += frameDuration) {\n frames.push(this._easing(dt / this._duration));\n }\n frames.push(this._easing(1));\n return {\n type: 'frames',\n frames,\n toValue: this._toValue,\n iterations: this.__iterations,\n };\n }\n\n start(\n fromValue: number,\n onUpdate: (value: number) => void,\n onEnd: ?EndCallback,\n previousAnimation: ?Animation,\n animatedValue: AnimatedValue,\n ): void {\n this.__active = true;\n this._fromValue = fromValue;\n this._onUpdate = onUpdate;\n this.__onEnd = onEnd;\n\n const start = () => {\n // Animations that sometimes have 0 duration and sometimes do not\n // still need to use the native driver when duration is 0 so as to\n // not cause intermixed JS and native animations.\n if (this._duration === 0 && !this._useNativeDriver) {\n this._onUpdate(this._toValue);\n this.__debouncedOnEnd({finished: true});\n } else {\n this._startTime = Date.now();\n if (this._useNativeDriver) {\n this.__startNativeAnimation(animatedValue);\n } else {\n this._animationFrame = requestAnimationFrame(\n this.onUpdate.bind(this),\n );\n }\n }\n };\n if (this._delay) {\n this._timeout = setTimeout(start, this._delay);\n } else {\n start();\n }\n }\n\n onUpdate(): void {\n const now = Date.now();\n if (now >= this._startTime + this._duration) {\n if (this._duration === 0) {\n this._onUpdate(this._toValue);\n } else {\n this._onUpdate(\n this._fromValue + this._easing(1) * (this._toValue - this._fromValue),\n );\n }\n this.__debouncedOnEnd({finished: true});\n return;\n }\n\n this._onUpdate(\n this._fromValue +\n this._easing((now - this._startTime) / this._duration) *\n (this._toValue - this._fromValue),\n );\n if (this.__active) {\n this._animationFrame = requestAnimationFrame(this.onUpdate.bind(this));\n }\n }\n\n stop(): void {\n super.stop();\n this.__active = false;\n clearTimeout(this._timeout);\n global.cancelAnimationFrame(this._animationFrame);\n this.__debouncedOnEnd({finished: false});\n }\n}\n\nmodule.exports = TimingAnimation;\n","/**\n * Copyright (c) 2015-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n * @flow\n */\n\n'use strict';\n\nlet ease;\n\n/**\n * The `Easing` module implements common easing functions. This module is used\n * by [Animate.timing()](docs/animate.html#timing) to convey physically\n * believable motion in animations.\n *\n * You can find a visualization of some common easing functions at\n * http://easings.net/\n *\n * ### Predefined animations\n *\n * The `Easing` module provides several predefined animations through the\n * following methods:\n *\n * - [`back`](docs/easing.html#back) provides a simple animation where the\n * object goes slightly back before moving forward\n * - [`bounce`](docs/easing.html#bounce) provides a bouncing animation\n * - [`ease`](docs/easing.html#ease) provides a simple inertial animation\n * - [`elastic`](docs/easing.html#elastic) provides a simple spring interaction\n *\n * ### Standard functions\n *\n * Three standard easing functions are provided:\n *\n * - [`linear`](docs/easing.html#linear)\n * - [`quad`](docs/easing.html#quad)\n * - [`cubic`](docs/easing.html#cubic)\n *\n * The [`poly`](docs/easing.html#poly) function can be used to implement\n * quartic, quintic, and other higher power functions.\n *\n * ### Additional functions\n *\n * Additional mathematical functions are provided by the following methods:\n *\n * - [`bezier`](docs/easing.html#bezier) provides a cubic bezier curve\n * - [`circle`](docs/easing.html#circle) provides a circular function\n * - [`sin`](docs/easing.html#sin) provides a sinusoidal function\n * - [`exp`](docs/easing.html#exp) provides an exponential function\n *\n * The following helpers are used to modify other easing functions.\n *\n * - [`in`](docs/easing.html#in) runs an easing function forwards\n * - [`inOut`](docs/easing.html#inout) makes any easing function symmetrical\n * - [`out`](docs/easing.html#out) runs an easing function backwards\n */\nclass Easing {\n /**\n * A stepping function, returns 1 for any positive value of `n`.\n */\n static step0(n: number) {\n return n > 0 ? 1 : 0;\n }\n\n /**\n * A stepping function, returns 1 if `n` is greater than or equal to 1.\n */\n static step1(n: number) {\n return n >= 1 ? 1 : 0;\n }\n\n /**\n * A linear function, `f(t) = t`. Position correlates to elapsed time one to\n * one.\n *\n * http://cubic-bezier.com/#0,0,1,1\n */\n static linear(t: number) {\n return t;\n }\n\n /**\n * A simple inertial interaction, similar to an object slowly accelerating to\n * speed.\n *\n * http://cubic-bezier.com/#.42,0,1,1\n */\n static ease(t: number): number {\n if (!ease) {\n ease = Easing.bezier(0.42, 0, 1, 1);\n }\n return ease(t);\n }\n\n /**\n * A quadratic function, `f(t) = t * t`. Position equals the square of elapsed\n * time.\n *\n * http://easings.net/#easeInQuad\n */\n static quad(t: number) {\n return t * t;\n }\n\n /**\n * A cubic function, `f(t) = t * t * t`. Position equals the cube of elapsed\n * time.\n *\n * http://easings.net/#easeInCubic\n */\n static cubic(t: number) {\n return t * t * t;\n }\n\n /**\n * A power function. Position is equal to the Nth power of elapsed time.\n *\n * n = 4: http://easings.net/#easeInQuart\n * n = 5: http://easings.net/#easeInQuint\n */\n static poly(n: number) {\n return (t: number) => Math.pow(t, n);\n }\n\n /**\n * A sinusoidal function.\n *\n * http://easings.net/#easeInSine\n */\n static sin(t: number) {\n return 1 - Math.cos((t * Math.PI) / 2);\n }\n\n /**\n * A circular function.\n *\n * http://easings.net/#easeInCirc\n */\n static circle(t: number) {\n return 1 - Math.sqrt(1 - t * t);\n }\n\n /**\n * An exponential function.\n *\n * http://easings.net/#easeInExpo\n */\n static exp(t: number) {\n return Math.pow(2, 10 * (t - 1));\n }\n\n /**\n * A simple elastic interaction, similar to a spring oscillating back and\n * forth.\n *\n * Default bounciness is 1, which overshoots a little bit once. 0 bounciness\n * doesn't overshoot at all, and bounciness of N > 1 will overshoot about N\n * times.\n *\n * http://easings.net/#easeInElastic\n */\n static elastic(bounciness: number = 1): (t: number) => number {\n const p = bounciness * Math.PI;\n return t => 1 - Math.pow(Math.cos((t * Math.PI) / 2), 3) * Math.cos(t * p);\n }\n\n /**\n * Use with `Animated.parallel()` to create a simple effect where the object\n * animates back slightly as the animation starts.\n *\n * Wolfram Plot:\n *\n * - http://tiny.cc/back_default (s = 1.70158, default)\n */\n static back(s: number): (t: number) => number {\n if (s === undefined) {\n s = 1.70158;\n }\n return t => t * t * ((s + 1) * t - s);\n }\n\n /**\n * Provides a simple bouncing effect.\n *\n * http://easings.net/#easeInBounce\n */\n static bounce(t: number): number {\n if (t < 1 / 2.75) {\n return 7.5625 * t * t;\n }\n\n if (t < 2 / 2.75) {\n t -= 1.5 / 2.75;\n return 7.5625 * t * t + 0.75;\n }\n\n if (t < 2.5 / 2.75) {\n t -= 2.25 / 2.75;\n return 7.5625 * t * t + 0.9375;\n }\n\n t -= 2.625 / 2.75;\n return 7.5625 * t * t + 0.984375;\n }\n\n /**\n * Provides a cubic bezier curve, equivalent to CSS Transitions'\n * `transition-timing-function`.\n *\n * A useful tool to visualize cubic bezier curves can be found at\n * http://cubic-bezier.com/\n */\n static bezier(\n x1: number,\n y1: number,\n x2: number,\n y2: number,\n ): (t: number) => number {\n const _bezier = require('bezier');\n return _bezier(x1, y1, x2, y2);\n }\n\n /**\n * Runs an easing function forwards.\n */\n static in(easing: (t: number) => number): (t: number) => number {\n return easing;\n }\n\n /**\n * Runs an easing function backwards.\n */\n static out(easing: (t: number) => number): (t: number) => number {\n return t => 1 - easing(1 - t);\n }\n\n /**\n * Makes any easing function symmetrical. The easing function will run\n * forwards for half of the duration, then backwards for the rest of the\n * duration.\n */\n static inOut(easing: (t: number) => number): (t: number) => number {\n return t => {\n if (t < 0.5) {\n return easing(t * 2) / 2;\n }\n return 1 - easing((1 - t) * 2) / 2;\n };\n }\n}\n\nmodule.exports = Easing;\n","/**\n * BezierEasing - use bezier curve for transition easing function\n * https://github.com/gre/bezier-easing\n *\n * @flow\n * @format\n * @copyright 2014-2015 Gaëtan Renaudeau. MIT License.\n */\n\n'use strict';\n\n// These values are established by empiricism with tests (tradeoff: performance VS precision)\nconst NEWTON_ITERATIONS = 4;\nconst NEWTON_MIN_SLOPE = 0.001;\nconst SUBDIVISION_PRECISION = 0.0000001;\nconst SUBDIVISION_MAX_ITERATIONS = 10;\n\nconst kSplineTableSize = 11;\nconst kSampleStepSize = 1.0 / (kSplineTableSize - 1.0);\n\nconst float32ArraySupported = typeof Float32Array === 'function';\n\nfunction A(aA1, aA2) {\n return 1.0 - 3.0 * aA2 + 3.0 * aA1;\n}\nfunction B(aA1, aA2) {\n return 3.0 * aA2 - 6.0 * aA1;\n}\nfunction C(aA1) {\n return 3.0 * aA1;\n}\n\n// Returns x(t) given t, x1, and x2, or y(t) given t, y1, and y2.\nfunction calcBezier(aT, aA1, aA2) {\n return ((A(aA1, aA2) * aT + B(aA1, aA2)) * aT + C(aA1)) * aT;\n}\n\n// Returns dx/dt given t, x1, and x2, or dy/dt given t, y1, and y2.\nfunction getSlope(aT, aA1, aA2) {\n return 3.0 * A(aA1, aA2) * aT * aT + 2.0 * B(aA1, aA2) * aT + C(aA1);\n}\n\nfunction binarySubdivide(aX, aA, aB, mX1, mX2) {\n let currentX,\n currentT,\n i = 0;\n do {\n currentT = aA + (aB - aA) / 2.0;\n currentX = calcBezier(currentT, mX1, mX2) - aX;\n if (currentX > 0.0) {\n aB = currentT;\n } else {\n aA = currentT;\n }\n } while (\n Math.abs(currentX) > SUBDIVISION_PRECISION &&\n ++i < SUBDIVISION_MAX_ITERATIONS\n );\n return currentT;\n}\n\nfunction newtonRaphsonIterate(aX, aGuessT, mX1, mX2) {\n for (let i = 0; i < NEWTON_ITERATIONS; ++i) {\n const currentSlope = getSlope(aGuessT, mX1, mX2);\n if (currentSlope === 0.0) {\n return aGuessT;\n }\n const currentX = calcBezier(aGuessT, mX1, mX2) - aX;\n aGuessT -= currentX / currentSlope;\n }\n return aGuessT;\n}\n\nmodule.exports = function bezier(\n mX1: number,\n mY1: number,\n mX2: number,\n mY2: number,\n) {\n if (!(0 <= mX1 && mX1 <= 1 && 0 <= mX2 && mX2 <= 1)) {\n throw new Error('bezier x values must be in [0, 1] range');\n }\n\n // Precompute samples table\n const sampleValues = float32ArraySupported\n ? new Float32Array(kSplineTableSize)\n : new Array(kSplineTableSize);\n if (mX1 !== mY1 || mX2 !== mY2) {\n for (let i = 0; i < kSplineTableSize; ++i) {\n sampleValues[i] = calcBezier(i * kSampleStepSize, mX1, mX2);\n }\n }\n\n function getTForX(aX) {\n let intervalStart = 0.0;\n let currentSample = 1;\n const lastSample = kSplineTableSize - 1;\n\n for (\n ;\n currentSample !== lastSample && sampleValues[currentSample] <= aX;\n ++currentSample\n ) {\n intervalStart += kSampleStepSize;\n }\n --currentSample;\n\n // Interpolate to provide an initial guess for t\n const dist =\n (aX - sampleValues[currentSample]) /\n (sampleValues[currentSample + 1] - sampleValues[currentSample]);\n const guessForT = intervalStart + dist * kSampleStepSize;\n\n const initialSlope = getSlope(guessForT, mX1, mX2);\n if (initialSlope >= NEWTON_MIN_SLOPE) {\n return newtonRaphsonIterate(aX, guessForT, mX1, mX2);\n } else if (initialSlope === 0.0) {\n return guessForT;\n } else {\n return binarySubdivide(\n aX,\n intervalStart,\n intervalStart + kSampleStepSize,\n mX1,\n mX2,\n );\n }\n }\n\n return function BezierEasing(x: number): number {\n if (mX1 === mY1 && mX2 === mY2) {\n return x; // linear\n }\n // Because JavaScript number are imprecise, we should guarantee the extremes are right.\n if (x === 0) {\n return 0;\n }\n if (x === 1) {\n return 1;\n }\n return calcBezier(getTForX(x), mY1, mY2);\n };\n};\n","/**\n * Copyright (c) 2015-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @flow\n * @format\n */\n'use strict';\n\nconst {AnimatedEvent} = require('./AnimatedEvent');\nconst AnimatedProps = require('./nodes/AnimatedProps');\nconst React = require('React');\nconst ViewStylePropTypes = require('ViewStylePropTypes');\n\nconst invariant = require('fbjs/lib/invariant');\n\nfunction createAnimatedComponent(Component: any): any {\n invariant(\n typeof Component !== 'function' ||\n (Component.prototype && Component.prototype.isReactComponent),\n '`createAnimatedComponent` does not support stateless functional components; ' +\n 'use a class component instead.',\n );\n\n class AnimatedComponent extends React.Component {\n _component: any;\n _invokeAnimatedPropsCallbackOnMount: boolean = false;\n _prevComponent: any;\n _propsAnimated: AnimatedProps;\n _eventDetachers: Array = [];\n _setComponentRef: Function;\n\n static __skipSetNativeProps_FOR_TESTS_ONLY = false;\n\n constructor(props: Object) {\n super(props);\n this._setComponentRef = this._setComponentRef.bind(this);\n }\n\n componentWillUnmount() {\n this._propsAnimated && this._propsAnimated.__detach();\n this._detachNativeEvents();\n }\n\n setNativeProps(props) {\n this._component.setNativeProps(props);\n }\n\n UNSAFE_componentWillMount() {\n this._attachProps(this.props);\n }\n\n componentDidMount() {\n if (this._invokeAnimatedPropsCallbackOnMount) {\n this._invokeAnimatedPropsCallbackOnMount = false;\n this._animatedPropsCallback();\n }\n\n this._propsAnimated.setNativeView(this._component);\n this._attachNativeEvents();\n }\n\n _attachNativeEvents() {\n // Make sure to get the scrollable node for components that implement\n // `ScrollResponder.Mixin`.\n const scrollableNode = this._component.getScrollableNode\n ? this._component.getScrollableNode()\n : this._component;\n\n for (const key in this.props) {\n const prop = this.props[key];\n if (prop instanceof AnimatedEvent && prop.__isNative) {\n prop.__attach(scrollableNode, key);\n this._eventDetachers.push(() => prop.__detach(scrollableNode, key));\n }\n }\n }\n\n _detachNativeEvents() {\n this._eventDetachers.forEach(remove => remove());\n this._eventDetachers = [];\n }\n\n // The system is best designed when setNativeProps is implemented. It is\n // able to avoid re-rendering and directly set the attributes that changed.\n // However, setNativeProps can only be implemented on leaf native\n // components. If you want to animate a composite component, you need to\n // re-render it. In this case, we have a fallback that uses forceUpdate.\n _animatedPropsCallback = () => {\n if (this._component == null) {\n // AnimatedProps is created in will-mount because it's used in render.\n // But this callback may be invoked before mount in async mode,\n // In which case we should defer the setNativeProps() call.\n // React may throw away uncommitted work in async mode,\n // So a deferred call won't always be invoked.\n this._invokeAnimatedPropsCallbackOnMount = true;\n } else if (\n AnimatedComponent.__skipSetNativeProps_FOR_TESTS_ONLY ||\n typeof this._component.setNativeProps !== 'function'\n ) {\n this.forceUpdate();\n } else if (!this._propsAnimated.__isNative) {\n this._component.setNativeProps(\n this._propsAnimated.__getAnimatedValue(),\n );\n } else {\n throw new Error(\n 'Attempting to run JS driven animation on animated ' +\n 'node that has been moved to \"native\" earlier by starting an ' +\n 'animation with `useNativeDriver: true`',\n );\n }\n };\n\n _attachProps(nextProps) {\n const oldPropsAnimated = this._propsAnimated;\n\n this._propsAnimated = new AnimatedProps(\n nextProps,\n this._animatedPropsCallback,\n );\n\n // When you call detach, it removes the element from the parent list\n // of children. If it goes to 0, then the parent also detaches itself\n // and so on.\n // An optimization is to attach the new elements and THEN detach the old\n // ones instead of detaching and THEN attaching.\n // This way the intermediate state isn't to go to 0 and trigger\n // this expensive recursive detaching to then re-attach everything on\n // the very next operation.\n oldPropsAnimated && oldPropsAnimated.__detach();\n }\n\n UNSAFE_componentWillReceiveProps(newProps) {\n this._attachProps(newProps);\n }\n\n componentDidUpdate(prevProps) {\n if (this._component !== this._prevComponent) {\n this._propsAnimated.setNativeView(this._component);\n }\n if (this._component !== this._prevComponent || prevProps !== this.props) {\n this._detachNativeEvents();\n this._attachNativeEvents();\n }\n }\n\n render() {\n const props = this._propsAnimated.__getValue();\n return (\n \n );\n }\n\n _setComponentRef(c) {\n this._prevComponent = this._component;\n this._component = c;\n }\n\n // A third party library can use getNode()\n // to get the node reference of the decorated component\n getNode() {\n return this._component;\n }\n }\n\n const propTypes = Component.propTypes;\n\n AnimatedComponent.propTypes = {\n style: function(props, propName, componentName) {\n if (!propTypes) {\n return;\n }\n\n for (const key in ViewStylePropTypes) {\n if (!propTypes[key] && props[key] !== undefined) {\n console.warn(\n 'You are setting the style `{ ' +\n key +\n ': ... }` as a prop. You ' +\n 'should nest it in a style object. ' +\n 'E.g. `{ style: { ' +\n key +\n ': ... } }`',\n );\n }\n }\n },\n };\n\n return AnimatedComponent;\n}\n\nmodule.exports = createAnimatedComponent;\n","/**\n * Copyright (c) 2015-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @flow\n * @format\n */\n'use strict';\n\nconst MetroListView = require('MetroListView'); // Used as a fallback legacy option\nconst React = require('React');\nconst View = require('View');\nconst VirtualizedList = require('VirtualizedList');\nconst ListView = require('ListView');\nconst StyleSheet = require('StyleSheet');\n\nconst invariant = require('fbjs/lib/invariant');\n\nimport type {DangerouslyImpreciseStyleProp, ViewStyleProp} from 'StyleSheet';\nimport type {\n ViewabilityConfig,\n ViewToken,\n ViewabilityConfigCallbackPair,\n} from 'ViewabilityHelper';\nimport type {Props as VirtualizedListProps} from 'VirtualizedList';\n\nexport type SeparatorsObj = {\n highlight: () => void,\n unhighlight: () => void,\n updateProps: (select: 'leading' | 'trailing', newProps: Object) => void,\n};\n\ntype RequiredProps = {\n /**\n * Takes an item from `data` and renders it into the list. Example usage:\n *\n * (\n * \n * )}\n * data={[{title: 'Title Text', key: 'item1'}]}\n * renderItem={({item, separators}) => (\n * this._onPress(item)}\n * onShowUnderlay={separators.highlight}\n * onHideUnderlay={separators.unhighlight}>\n * \n * {item.title}\n * \n * \n * )}\n * />\n *\n * Provides additional metadata like `index` if you need it, as well as a more generic\n * `separators.updateProps` function which let's you set whatever props you want to change the\n * rendering of either the leading separator or trailing separator in case the more common\n * `highlight` and `unhighlight` (which set the `highlighted: boolean` prop) are insufficient for\n * your use-case.\n */\n renderItem: (info: {\n item: ItemT,\n index: number,\n separators: SeparatorsObj,\n }) => ?React.Element,\n /**\n * For simplicity, data is just a plain array. If you want to use something else, like an\n * immutable list, use the underlying `VirtualizedList` directly.\n */\n data: ?$ReadOnlyArray,\n};\ntype OptionalProps = {\n /**\n * Rendered in between each item, but not at the top or bottom. By default, `highlighted` and\n * `leadingItem` props are provided. `renderItem` provides `separators.highlight`/`unhighlight`\n * which will update the `highlighted` prop, but you can also add custom props with\n * `separators.updateProps`.\n */\n ItemSeparatorComponent?: ?React.ComponentType,\n /**\n * Rendered when the list is empty. Can be a React Component Class, a render function, or\n * a rendered element.\n */\n ListEmptyComponent?: ?(React.ComponentType | React.Element),\n /**\n * Rendered at the bottom of all the items. Can be a React Component Class, a render function, or\n * a rendered element.\n */\n ListFooterComponent?: ?(React.ComponentType | React.Element),\n /**\n * Styling for internal View for ListFooterComponent\n */\n ListFooterComponentStyle?: ViewStyleProp,\n /**\n * Rendered at the top of all the items. Can be a React Component Class, a render function, or\n * a rendered element.\n */\n ListHeaderComponent?: ?(React.ComponentType | React.Element),\n /**\n * Styling for internal View for ListHeaderComponent\n */\n ListHeaderComponentStyle?: ViewStyleProp,\n /**\n * Optional custom style for multi-item rows generated when numColumns > 1.\n */\n columnWrapperStyle?: DangerouslyImpreciseStyleProp,\n /**\n * A marker property for telling the list to re-render (since it implements `PureComponent`). If\n * any of your `renderItem`, Header, Footer, etc. functions depend on anything outside of the\n * `data` prop, stick it here and treat it immutably.\n */\n extraData?: any,\n /**\n * `getItemLayout` is an optional optimizations that let us skip measurement of dynamic content if\n * you know the height of items a priori. `getItemLayout` is the most efficient, and is easy to\n * use if you have fixed height items, for example:\n *\n * getItemLayout={(data, index) => (\n * {length: ITEM_HEIGHT, offset: ITEM_HEIGHT * index, index}\n * )}\n *\n * Adding `getItemLayout` can be a great performance boost for lists of several hundred items.\n * Remember to include separator length (height or width) in your offset calculation if you\n * specify `ItemSeparatorComponent`.\n */\n getItemLayout?: (\n data: ?Array,\n index: number,\n ) => {length: number, offset: number, index: number},\n /**\n * If true, renders items next to each other horizontally instead of stacked vertically.\n */\n horizontal?: ?boolean,\n /**\n * How many items to render in the initial batch. This should be enough to fill the screen but not\n * much more. Note these items will never be unmounted as part of the windowed rendering in order\n * to improve perceived performance of scroll-to-top actions.\n */\n initialNumToRender: number,\n /**\n * Instead of starting at the top with the first item, start at `initialScrollIndex`. This\n * disables the \"scroll to top\" optimization that keeps the first `initialNumToRender` items\n * always rendered and immediately renders the items starting at this initial index. Requires\n * `getItemLayout` to be implemented.\n */\n initialScrollIndex?: ?number,\n /**\n * Reverses the direction of scroll. Uses scale transforms of -1.\n */\n inverted?: ?boolean,\n /**\n * Used to extract a unique key for a given item at the specified index. Key is used for caching\n * and as the react key to track item re-ordering. The default extractor checks `item.key`, then\n * falls back to using the index, like React does.\n */\n keyExtractor: (item: ItemT, index: number) => string,\n /**\n * Multiple columns can only be rendered with `horizontal={false}` and will zig-zag like a\n * `flexWrap` layout. Items should all be the same height - masonry layouts are not supported.\n */\n numColumns: number,\n /**\n * Called once when the scroll position gets within `onEndReachedThreshold` of the rendered\n * content.\n */\n onEndReached?: ?(info: {distanceFromEnd: number}) => void,\n /**\n * How far from the end (in units of visible length of the list) the bottom edge of the\n * list must be from the end of the content to trigger the `onEndReached` callback.\n * Thus a value of 0.5 will trigger `onEndReached` when the end of the content is\n * within half the visible length of the list.\n */\n onEndReachedThreshold?: ?number,\n /**\n * If provided, a standard RefreshControl will be added for \"Pull to Refresh\" functionality. Make\n * sure to also set the `refreshing` prop correctly.\n */\n onRefresh?: ?() => void,\n /**\n * Called when the viewability of rows changes, as defined by the `viewabilityConfig` prop.\n */\n onViewableItemsChanged?: ?(info: {\n viewableItems: Array,\n changed: Array,\n }) => void,\n /**\n * Set this when offset is needed for the loading indicator to show correctly.\n * @platform android\n */\n progressViewOffset?: number,\n legacyImplementation?: ?boolean,\n /**\n * Set this true while waiting for new data from a refresh.\n */\n refreshing?: ?boolean,\n /**\n * Note: may have bugs (missing content) in some circumstances - use at your own risk.\n *\n * This may improve scroll performance for large lists.\n */\n removeClippedSubviews?: boolean,\n /**\n * See `ViewabilityHelper` for flow type and further documentation.\n */\n viewabilityConfig?: ViewabilityConfig,\n /**\n * List of ViewabilityConfig/onViewableItemsChanged pairs. A specific onViewableItemsChanged\n * will be called when its corresponding ViewabilityConfig's conditions are met.\n */\n viewabilityConfigCallbackPairs?: Array,\n};\nexport type Props = RequiredProps &\n OptionalProps &\n VirtualizedListProps;\n\nconst defaultProps = {\n ...VirtualizedList.defaultProps,\n numColumns: 1,\n};\nexport type DefaultProps = typeof defaultProps;\n\n/**\n * A performant interface for rendering simple, flat lists, supporting the most handy features:\n *\n * - Fully cross-platform.\n * - Optional horizontal mode.\n * - Configurable viewability callbacks.\n * - Header support.\n * - Footer support.\n * - Separator support.\n * - Pull to Refresh.\n * - Scroll loading.\n * - ScrollToIndex support.\n *\n * If you need section support, use [``](docs/sectionlist.html).\n *\n * Minimal Example:\n *\n * {item.key}}\n * />\n *\n * More complex, multi-select example demonstrating `PureComponent` usage for perf optimization and avoiding bugs.\n *\n * - By binding the `onPressItem` handler, the props will remain `===` and `PureComponent` will\n * prevent wasteful re-renders unless the actual `id`, `selected`, or `title` props change, even\n * if the components rendered in `MyListItem` did not have such optimizations.\n * - By passing `extraData={this.state}` to `FlatList` we make sure `FlatList` itself will re-render\n * when the `state.selected` changes. Without setting this prop, `FlatList` would not know it\n * needs to re-render any items because it is also a `PureComponent` and the prop comparison will\n * not show any changes.\n * - `keyExtractor` tells the list to use the `id`s for the react keys instead of the default `key` property.\n *\n *\n * class MyListItem extends React.PureComponent {\n * _onPress = () => {\n * this.props.onPressItem(this.props.id);\n * };\n *\n * render() {\n * const textColor = this.props.selected ? \"red\" : \"black\";\n * return (\n * \n * \n * \n * {this.props.title}\n * \n * \n * \n * );\n * }\n * }\n *\n * class MultiSelectList extends React.PureComponent {\n * state = {selected: (new Map(): Map)};\n *\n * _keyExtractor = (item, index) => item.id;\n *\n * _onPressItem = (id: string) => {\n * // updater functions are preferred for transactional updates\n * this.setState((state) => {\n * // copy the map rather than modifying state.\n * const selected = new Map(state.selected);\n * selected.set(id, !selected.get(id)); // toggle\n * return {selected};\n * });\n * };\n *\n * _renderItem = ({item}) => (\n * \n * );\n *\n * render() {\n * return (\n * \n * );\n * }\n * }\n *\n * This is a convenience wrapper around [``](docs/virtualizedlist.html),\n * and thus inherits its props (as well as those of `ScrollView`) that aren't explicitly listed\n * here, along with the following caveats:\n *\n * - Internal state is not preserved when content scrolls out of the render window. Make sure all\n * your data is captured in the item data or external stores like Flux, Redux, or Relay.\n * - This is a `PureComponent` which means that it will not re-render if `props` remain shallow-\n * equal. Make sure that everything your `renderItem` function depends on is passed as a prop\n * (e.g. `extraData`) that is not `===` after updates, otherwise your UI may not update on\n * changes. This includes the `data` prop and parent component state.\n * - In order to constrain memory and enable smooth scrolling, content is rendered asynchronously\n * offscreen. This means it's possible to scroll faster than the fill rate ands momentarily see\n * blank content. This is a tradeoff that can be adjusted to suit the needs of each application,\n * and we are working on improving it behind the scenes.\n * - By default, the list looks for a `key` prop on each item and uses that for the React key.\n * Alternatively, you can provide a custom `keyExtractor` prop.\n *\n * Also inherits [ScrollView Props](docs/scrollview.html#props), unless it is nested in another FlatList of same orientation.\n */\nclass FlatList extends React.PureComponent, void> {\n static defaultProps: DefaultProps = defaultProps;\n props: Props;\n /**\n * Scrolls to the end of the content. May be janky without `getItemLayout` prop.\n */\n scrollToEnd(params?: ?{animated?: ?boolean}) {\n if (this._listRef) {\n this._listRef.scrollToEnd(params);\n }\n }\n\n /**\n * Scrolls to the item at the specified index such that it is positioned in the viewable area\n * such that `viewPosition` 0 places it at the top, 1 at the bottom, and 0.5 centered in the\n * middle. `viewOffset` is a fixed number of pixels to offset the final target position.\n *\n * Note: cannot scroll to locations outside the render window without specifying the\n * `getItemLayout` prop.\n */\n scrollToIndex(params: {\n animated?: ?boolean,\n index: number,\n viewOffset?: number,\n viewPosition?: number,\n }) {\n if (this._listRef) {\n // $FlowFixMe Found when typing ListView\n this._listRef.scrollToIndex(params);\n }\n }\n\n /**\n * Requires linear scan through data - use `scrollToIndex` instead if possible.\n *\n * Note: cannot scroll to locations outside the render window without specifying the\n * `getItemLayout` prop.\n */\n scrollToItem(params: {\n animated?: ?boolean,\n item: ItemT,\n viewPosition?: number,\n }) {\n if (this._listRef) {\n // $FlowFixMe Found when typing ListView\n this._listRef.scrollToItem(params);\n }\n }\n\n /**\n * Scroll to a specific content pixel offset in the list.\n *\n * Check out [scrollToOffset](docs/virtualizedlist.html#scrolltooffset) of VirtualizedList\n */\n scrollToOffset(params: {animated?: ?boolean, offset: number}) {\n if (this._listRef) {\n // $FlowFixMe Found when typing ListView\n this._listRef.scrollToOffset(params);\n }\n }\n\n /**\n * Tells the list an interaction has occurred, which should trigger viewability calculations, e.g.\n * if `waitForInteractions` is true and the user has not scrolled. This is typically called by\n * taps on items or by navigation actions.\n */\n recordInteraction() {\n if (this._listRef) {\n // $FlowFixMe Found when typing ListView\n this._listRef.recordInteraction();\n }\n }\n\n /**\n * Displays the scroll indicators momentarily.\n *\n * @platform ios\n */\n flashScrollIndicators() {\n if (this._listRef) {\n // $FlowFixMe Found when typing ListView\n this._listRef.flashScrollIndicators();\n }\n }\n\n /**\n * Provides a handle to the underlying scroll responder.\n */\n getScrollResponder() {\n if (this._listRef) {\n // $FlowFixMe Found when typing ListView\n return this._listRef.getScrollResponder();\n }\n }\n\n getScrollableNode() {\n if (this._listRef) {\n // $FlowFixMe Found when typing ListView\n return this._listRef.getScrollableNode();\n }\n }\n\n setNativeProps(props: {[string]: mixed}) {\n if (this._listRef) {\n this._listRef.setNativeProps(props);\n }\n }\n\n constructor(props: Props) {\n super(props);\n this._checkProps(this.props);\n if (this.props.viewabilityConfigCallbackPairs) {\n this._virtualizedListPairs = this.props.viewabilityConfigCallbackPairs.map(\n pair => ({\n viewabilityConfig: pair.viewabilityConfig,\n onViewableItemsChanged: this._createOnViewableItemsChanged(\n pair.onViewableItemsChanged,\n ),\n }),\n );\n } else if (this.props.onViewableItemsChanged) {\n /* $FlowFixMe(>=0.63.0 site=react_native_fb) This comment suppresses an\n * error found when Flow v0.63 was deployed. To see the error delete this\n * comment and run Flow. */\n this._virtualizedListPairs.push({\n viewabilityConfig: this.props.viewabilityConfig,\n onViewableItemsChanged: this._createOnViewableItemsChanged(\n this.props.onViewableItemsChanged,\n ),\n });\n }\n }\n\n componentDidUpdate(prevProps: Props) {\n invariant(\n prevProps.numColumns === this.props.numColumns,\n 'Changing numColumns on the fly is not supported. Change the key prop on FlatList when ' +\n 'changing the number of columns to force a fresh render of the component.',\n );\n invariant(\n prevProps.onViewableItemsChanged === this.props.onViewableItemsChanged,\n 'Changing onViewableItemsChanged on the fly is not supported',\n );\n invariant(\n prevProps.viewabilityConfig === this.props.viewabilityConfig,\n 'Changing viewabilityConfig on the fly is not supported',\n );\n invariant(\n prevProps.viewabilityConfigCallbackPairs ===\n this.props.viewabilityConfigCallbackPairs,\n 'Changing viewabilityConfigCallbackPairs on the fly is not supported',\n );\n\n this._checkProps(this.props);\n }\n\n _hasWarnedLegacy = false;\n _listRef: null | VirtualizedList | ListView | MetroListView;\n _virtualizedListPairs: Array = [];\n\n _captureRef = ref => {\n this._listRef = ref;\n };\n\n _checkProps(props: Props) {\n const {\n getItem,\n getItemCount,\n horizontal,\n legacyImplementation,\n numColumns,\n columnWrapperStyle,\n onViewableItemsChanged,\n viewabilityConfigCallbackPairs,\n } = props;\n invariant(\n !getItem && !getItemCount,\n 'FlatList does not support custom data formats.',\n );\n if (numColumns > 1) {\n invariant(!horizontal, 'numColumns does not support horizontal.');\n } else {\n invariant(\n !columnWrapperStyle,\n 'columnWrapperStyle not supported for single column lists',\n );\n }\n if (legacyImplementation) {\n invariant(\n numColumns === 1,\n 'Legacy list does not support multiple columns.',\n );\n // Warning: may not have full feature parity and is meant more for debugging and performance\n // comparison.\n if (!this._hasWarnedLegacy) {\n console.warn(\n 'FlatList: legacyImplementation is deprecated and will be removed in a ' +\n 'future release - some features not supported and performance may suffer. ' +\n 'Please migrate to the default implementation.',\n );\n this._hasWarnedLegacy = true;\n }\n }\n invariant(\n !(onViewableItemsChanged && viewabilityConfigCallbackPairs),\n 'FlatList does not support setting both onViewableItemsChanged and ' +\n 'viewabilityConfigCallbackPairs.',\n );\n }\n\n _getItem = (data: Array, index: number) => {\n const {numColumns} = this.props;\n if (numColumns > 1) {\n const ret = [];\n for (let kk = 0; kk < numColumns; kk++) {\n const item = data[index * numColumns + kk];\n if (item != null) {\n ret.push(item);\n }\n }\n return ret;\n } else {\n return data[index];\n }\n };\n\n _getItemCount = (data: ?Array): number => {\n return data ? Math.ceil(data.length / this.props.numColumns) : 0;\n };\n\n _keyExtractor = (items: ItemT | Array, index: number) => {\n const {keyExtractor, numColumns} = this.props;\n if (numColumns > 1) {\n invariant(\n Array.isArray(items),\n 'FlatList: Encountered internal consistency error, expected each item to consist of an ' +\n 'array with 1-%s columns; instead, received a single item.',\n numColumns,\n );\n return items\n .map((it, kk) => keyExtractor(it, index * numColumns + kk))\n .join(':');\n } else {\n /* $FlowFixMe(>=0.63.0 site=react_native_fb) This comment suppresses an\n * error found when Flow v0.63 was deployed. To see the error delete this\n * comment and run Flow. */\n return keyExtractor(items, index);\n }\n };\n\n _pushMultiColumnViewable(arr: Array, v: ViewToken): void {\n const {numColumns, keyExtractor} = this.props;\n v.item.forEach((item, ii) => {\n invariant(v.index != null, 'Missing index!');\n const index = v.index * numColumns + ii;\n arr.push({...v, item, key: keyExtractor(item, index), index});\n });\n }\n\n _createOnViewableItemsChanged(\n onViewableItemsChanged: ?(info: {\n viewableItems: Array,\n changed: Array,\n }) => void,\n ) {\n return (info: {\n viewableItems: Array,\n changed: Array,\n }) => {\n const {numColumns} = this.props;\n if (onViewableItemsChanged) {\n if (numColumns > 1) {\n const changed = [];\n const viewableItems = [];\n info.viewableItems.forEach(v =>\n this._pushMultiColumnViewable(viewableItems, v),\n );\n info.changed.forEach(v => this._pushMultiColumnViewable(changed, v));\n onViewableItemsChanged({viewableItems, changed});\n } else {\n onViewableItemsChanged(info);\n }\n }\n };\n }\n\n _renderItem = (info: Object) => {\n const {renderItem, numColumns, columnWrapperStyle} = this.props;\n if (numColumns > 1) {\n const {item, index} = info;\n invariant(\n Array.isArray(item),\n 'Expected array of items with numColumns > 1',\n );\n return (\n \n {item.map((it, kk) => {\n const element = renderItem({\n item: it,\n index: index * numColumns + kk,\n separators: info.separators,\n });\n return element && React.cloneElement(element, {key: kk});\n })}\n \n );\n } else {\n return renderItem(info);\n }\n };\n\n render() {\n if (this.props.legacyImplementation) {\n return (\n /* $FlowFixMe(>=0.66.0 site=react_native_fb) This comment suppresses an\n * error found when Flow v0.66 was deployed. To see the error delete\n * this comment and run Flow. */\n =0.66.0 site=react_native_fb) This comment suppresses\n * an error found when Flow v0.66 was deployed. To see the error\n * delete this comment and run Flow. */\n items={this.props.data}\n ref={this._captureRef}\n />\n );\n } else {\n return (\n \n );\n }\n }\n}\n\nconst styles = StyleSheet.create({\n row: {flexDirection: 'row'},\n});\n\nmodule.exports = FlatList;\n","/**\n * Copyright (c) 2015-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @flow\n * @format\n */\n'use strict';\n\nconst ListView = require('ListView');\nconst React = require('React');\nconst RefreshControl = require('RefreshControl');\nconst ScrollView = require('ScrollView');\n\nconst invariant = require('fbjs/lib/invariant');\n\ntype Item = any;\n\ntype NormalProps = {\n FooterComponent?: React.ComponentType<*>,\n renderItem: (info: Object) => ?React.Element,\n /* $FlowFixMe(>=0.53.0 site=react_native_fb,react_native_oss) This comment\n * suppresses an error when upgrading Flow's support for React. To see the\n * error delete this comment and run Flow. */\n renderSectionHeader?: ({section: Object}) => ?React.Element,\n SeparatorComponent?: ?React.ComponentType<*>, // not supported yet\n\n // Provide either `items` or `sections`\n items?: ?Array, // By default, an Item is assumed to be {key: string}\n // $FlowFixMe - Something is a little off with the type Array\n sections?: ?Array<{key: string, data: Array}>,\n\n /**\n * If provided, a standard RefreshControl will be added for \"Pull to Refresh\" functionality. Make\n * sure to also set the `refreshing` prop correctly.\n */\n onRefresh?: ?Function,\n /**\n * Set this true while waiting for new data from a refresh.\n */\n refreshing?: boolean,\n /**\n * If true, renders items next to each other horizontally instead of stacked vertically.\n */\n horizontal?: ?boolean,\n};\ntype DefaultProps = {\n keyExtractor: (item: Item, index: number) => string,\n};\ntype Props = NormalProps & DefaultProps;\n\n/**\n * This is just a wrapper around the legacy ListView that matches the new API of FlatList, but with\n * some section support tacked on. It is recommended to just use FlatList directly, this component\n * is mostly for debugging and performance comparison.\n */\nclass MetroListView extends React.Component {\n scrollToEnd(params?: ?{animated?: ?boolean}) {\n throw new Error('scrollToEnd not supported in legacy ListView.');\n }\n scrollToIndex(params: {\n animated?: ?boolean,\n index: number,\n viewPosition?: number,\n }) {\n throw new Error('scrollToIndex not supported in legacy ListView.');\n }\n scrollToItem(params: {\n animated?: ?boolean,\n item: Item,\n viewPosition?: number,\n }) {\n throw new Error('scrollToItem not supported in legacy ListView.');\n }\n scrollToLocation(params: {\n animated?: ?boolean,\n itemIndex: number,\n sectionIndex: number,\n viewOffset?: number,\n viewPosition?: number,\n }) {\n throw new Error('scrollToLocation not supported in legacy ListView.');\n }\n scrollToOffset(params: {animated?: ?boolean, offset: number}) {\n const {animated, offset} = params;\n // $FlowFixMe Invalid prop usage\n this._listRef.scrollTo(\n this.props.horizontal ? {x: offset, animated} : {y: offset, animated},\n );\n }\n getListRef() {\n return this._listRef;\n }\n setNativeProps(props: Object) {\n if (this._listRef) {\n this._listRef.setNativeProps(props);\n }\n }\n static defaultProps: DefaultProps = {\n keyExtractor: (item, index) => item.key || String(index),\n renderScrollComponent: (props: Props) => {\n if (props.onRefresh) {\n return (\n // $FlowFixMe Invalid prop usage\n =0.53.0 site=react_native_fb,react_native_oss)\n * This comment suppresses an error when upgrading Flow's support\n * for React. To see the error delete this comment and run Flow.\n */\n \n }\n />\n );\n } else {\n // $FlowFixMe Invalid prop usage\n return ;\n }\n },\n };\n state = this._computeState(this.props, {\n ds: new ListView.DataSource({\n rowHasChanged: (itemA, itemB) => true,\n sectionHeaderHasChanged: () => true,\n getSectionHeaderData: (dataBlob, sectionID) =>\n this.state.sectionHeaderData[sectionID],\n }),\n sectionHeaderData: {},\n });\n UNSAFE_componentWillReceiveProps(newProps: Props) {\n this.setState(state => this._computeState(newProps, state));\n }\n render() {\n return (\n // $FlowFixMe Found when typing ListView\n \n );\n }\n _listRef: ?ListView;\n _captureRef = ref => {\n this._listRef = ref;\n };\n _computeState(props: Props, state) {\n const sectionHeaderData = {};\n if (props.sections) {\n invariant(!props.items, 'Cannot have both sections and items props.');\n const sections = {};\n props.sections.forEach((sectionIn, ii) => {\n const sectionID = 's' + ii;\n sections[sectionID] = sectionIn.data;\n sectionHeaderData[sectionID] = sectionIn;\n });\n return {\n ds: state.ds.cloneWithRowsAndSections(sections),\n sectionHeaderData,\n };\n } else {\n invariant(!props.sections, 'Cannot have both sections and items props.');\n return {\n // $FlowFixMe Found when typing ListView\n ds: state.ds.cloneWithRows(props.items),\n sectionHeaderData,\n };\n }\n }\n /* $FlowFixMe(>=0.53.0 site=react_native_fb,react_native_oss) This comment\n * suppresses an error when upgrading Flow's support for React. To see the\n * error delete this comment and run Flow. */\n _renderFooter = () => ;\n _renderRow = (item, sectionID, rowID, highlightRow) => {\n return this.props.renderItem({item, index: rowID});\n };\n _renderSectionHeader = (section, sectionID) => {\n const {renderSectionHeader} = this.props;\n invariant(\n renderSectionHeader,\n 'Must provide renderSectionHeader with sections prop',\n );\n return renderSectionHeader({section});\n };\n _renderSeparator = (sID, rID) => (\n /* $FlowFixMe(>=0.53.0 site=react_native_fb,react_native_oss) This comment\n * suppresses an error when upgrading Flow's support for React. To see the\n * error delete this comment and run Flow. */\n \n );\n}\n\nmodule.exports = MetroListView;\n","/**\n * Copyright (c) 2015-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @flow\n * @format\n */\n'use strict';\n\nconst InternalListViewType = require('InternalListViewType');\nconst ListViewDataSource = require('ListViewDataSource');\nconst Platform = require('Platform');\nconst React = require('React');\nconst ReactNative = require('ReactNative');\nconst RCTScrollViewManager = require('NativeModules').ScrollViewManager;\nconst ScrollView = require('ScrollView');\nconst ScrollResponder = require('ScrollResponder');\nconst StaticRenderer = require('StaticRenderer');\nconst View = require('View');\nconst cloneReferencedElement = require('react-clone-referenced-element');\nconst createReactClass = require('create-react-class');\nconst isEmpty = require('isEmpty');\nconst merge = require('merge');\n\nimport type {Props as ScrollViewProps} from 'ScrollView';\n\nconst DEFAULT_PAGE_SIZE = 1;\nconst DEFAULT_INITIAL_ROWS = 10;\nconst DEFAULT_SCROLL_RENDER_AHEAD = 1000;\nconst DEFAULT_END_REACHED_THRESHOLD = 1000;\nconst DEFAULT_SCROLL_CALLBACK_THROTTLE = 50;\n\ntype Props = $ReadOnly<{|\n ...ScrollViewProps,\n\n /**\n * An instance of [ListView.DataSource](docs/listviewdatasource.html) to use\n */\n dataSource: ListViewDataSource,\n /**\n * (sectionID, rowID, adjacentRowHighlighted) => renderable\n *\n * If provided, a renderable component to be rendered as the separator\n * below each row but not the last row if there is a section header below.\n * Take a sectionID and rowID of the row above and whether its adjacent row\n * is highlighted.\n */\n renderSeparator?: ?Function,\n /**\n * (rowData, sectionID, rowID, highlightRow) => renderable\n *\n * Takes a data entry from the data source and its ids and should return\n * a renderable component to be rendered as the row. By default the data\n * is exactly what was put into the data source, but it's also possible to\n * provide custom extractors. ListView can be notified when a row is\n * being highlighted by calling `highlightRow(sectionID, rowID)`. This\n * sets a boolean value of adjacentRowHighlighted in renderSeparator, allowing you\n * to control the separators above and below the highlighted row. The highlighted\n * state of a row can be reset by calling highlightRow(null).\n */\n renderRow: Function,\n /**\n * How many rows to render on initial component mount. Use this to make\n * it so that the first screen worth of data appears at one time instead of\n * over the course of multiple frames.\n */\n initialListSize?: ?number,\n /**\n * Called when all rows have been rendered and the list has been scrolled\n * to within onEndReachedThreshold of the bottom. The native scroll\n * event is provided.\n */\n onEndReached?: ?Function,\n /**\n * Threshold in pixels (virtual, not physical) for calling onEndReached.\n */\n onEndReachedThreshold?: ?number,\n /**\n * Number of rows to render per event loop. Note: if your 'rows' are actually\n * cells, i.e. they don't span the full width of your view (as in the\n * ListViewGridLayoutExample), you should set the pageSize to be a multiple\n * of the number of cells per row, otherwise you're likely to see gaps at\n * the edge of the ListView as new pages are loaded.\n */\n pageSize?: ?number,\n /**\n * () => renderable\n *\n * The header and footer are always rendered (if these props are provided)\n * on every render pass. If they are expensive to re-render, wrap them\n * in StaticContainer or other mechanism as appropriate. Footer is always\n * at the bottom of the list, and header at the top, on every render pass.\n * In a horizontal ListView, the header is rendered on the left and the\n * footer on the right.\n */\n renderFooter?: ?Function,\n renderHeader?: ?Function,\n /**\n * (sectionData, sectionID) => renderable\n *\n * If provided, a header is rendered for this section.\n */\n renderSectionHeader?: ?Function,\n /**\n * (props) => renderable\n *\n * A function that returns the scrollable component in which the list rows\n * are rendered. Defaults to returning a ScrollView with the given props.\n */\n renderScrollComponent?: ?Function,\n /**\n * How early to start rendering rows before they come on screen, in\n * pixels.\n */\n scrollRenderAheadDistance?: ?number,\n /**\n * (visibleRows, changedRows) => void\n *\n * Called when the set of visible rows changes. `visibleRows` maps\n * { sectionID: { rowID: true }} for all the visible rows, and\n * `changedRows` maps { sectionID: { rowID: true | false }} for the rows\n * that have changed their visibility, with true indicating visible, and\n * false indicating the view has moved out of view.\n */\n onChangeVisibleRows?: ?Function,\n /**\n * A performance optimization for improving scroll perf of\n * large lists, used in conjunction with overflow: 'hidden' on the row\n * containers. This is enabled by default.\n */\n removeClippedSubviews?: ?boolean,\n /**\n * Makes the sections headers sticky. The sticky behavior means that it\n * will scroll with the content at the top of the section until it reaches\n * the top of the screen, at which point it will stick to the top until it\n * is pushed off the screen by the next section header. This property is\n * not supported in conjunction with `horizontal={true}`. Only enabled by\n * default on iOS because of typical platform standards.\n */\n stickySectionHeadersEnabled?: ?boolean,\n /**\n * An array of child indices determining which children get docked to the\n * top of the screen when scrolling. For example, passing\n * `stickyHeaderIndices={[0]}` will cause the first child to be fixed to the\n * top of the scroll view. This property is not supported in conjunction\n * with `horizontal={true}`.\n */\n stickyHeaderIndices?: ?$ReadOnlyArray,\n /**\n * Flag indicating whether empty section headers should be rendered. In the future release\n * empty section headers will be rendered by default, and the flag will be deprecated.\n * If empty sections are not desired to be rendered their indices should be excluded from sectionID object.\n */\n enableEmptySections?: ?boolean,\n|}>;\n\n/**\n * DEPRECATED - use one of the new list components, such as [`FlatList`](docs/flatlist.html)\n * or [`SectionList`](docs/sectionlist.html) for bounded memory use, fewer bugs,\n * better performance, an easier to use API, and more features. Check out this\n * [blog post](https://facebook.github.io/react-native/blog/2017/03/13/better-list-views.html)\n * for more details.\n *\n * ListView - A core component designed for efficient display of vertically\n * scrolling lists of changing data. The minimal API is to create a\n * [`ListView.DataSource`](docs/listviewdatasource.html), populate it with a simple\n * array of data blobs, and instantiate a `ListView` component with that data\n * source and a `renderRow` callback which takes a blob from the data array and\n * returns a renderable component.\n *\n * Minimal example:\n *\n * ```\n * class MyComponent extends Component {\n * constructor() {\n * super();\n * const ds = new ListView.DataSource({rowHasChanged: (r1, r2) => r1 !== r2});\n * this.state = {\n * dataSource: ds.cloneWithRows(['row 1', 'row 2']),\n * };\n * }\n *\n * render() {\n * return (\n * {rowData}}\n * />\n * );\n * }\n * }\n * ```\n *\n * ListView also supports more advanced features, including sections with sticky\n * section headers, header and footer support, callbacks on reaching the end of\n * the available data (`onEndReached`) and on the set of rows that are visible\n * in the device viewport change (`onChangeVisibleRows`), and several\n * performance optimizations.\n *\n * There are a few performance operations designed to make ListView scroll\n * smoothly while dynamically loading potentially very large (or conceptually\n * infinite) data sets:\n *\n * * Only re-render changed rows - the rowHasChanged function provided to the\n * data source tells the ListView if it needs to re-render a row because the\n * source data has changed - see ListViewDataSource for more details.\n *\n * * Rate-limited row rendering - By default, only one row is rendered per\n * event-loop (customizable with the `pageSize` prop). This breaks up the\n * work into smaller chunks to reduce the chance of dropping frames while\n * rendering rows.\n */\n\nconst ListView = createReactClass({\n displayName: 'ListView',\n _rafIds: ([]: Array),\n _childFrames: ([]: Array),\n _sentEndForContentLength: (null: ?number),\n _scrollComponent: (null: ?React.ElementRef),\n _prevRenderedRowsCount: 0,\n _visibleRows: ({}: Object),\n scrollProperties: ({}: Object),\n\n mixins: [ScrollResponder.Mixin],\n\n statics: {\n DataSource: ListViewDataSource,\n },\n\n /**\n * Exports some data, e.g. for perf investigations or analytics.\n */\n getMetrics: function() {\n return {\n contentLength: this.scrollProperties.contentLength,\n totalRows: this.props.enableEmptySections\n ? this.props.dataSource.getRowAndSectionCount()\n : this.props.dataSource.getRowCount(),\n renderedRows: this.state.curRenderedRowsCount,\n visibleRows: Object.keys(this._visibleRows).length,\n };\n },\n\n /**\n * Provides a handle to the underlying scroll responder.\n * Note that `this._scrollComponent` might not be a `ScrollView`, so we\n * need to check that it responds to `getScrollResponder` before calling it.\n */\n getScrollResponder: function() {\n if (this._scrollComponent && this._scrollComponent.getScrollResponder) {\n return this._scrollComponent.getScrollResponder();\n }\n },\n\n getScrollableNode: function() {\n if (this._scrollComponent && this._scrollComponent.getScrollableNode) {\n return this._scrollComponent.getScrollableNode();\n } else {\n return ReactNative.findNodeHandle(this._scrollComponent);\n }\n },\n\n /**\n * Scrolls to a given x, y offset, either immediately or with a smooth animation.\n *\n * See `ScrollView#scrollTo`.\n */\n scrollTo: function(...args: any) {\n if (this._scrollComponent && this._scrollComponent.scrollTo) {\n this._scrollComponent.scrollTo(...args);\n }\n },\n\n /**\n * If this is a vertical ListView scrolls to the bottom.\n * If this is a horizontal ListView scrolls to the right.\n *\n * Use `scrollToEnd({animated: true})` for smooth animated scrolling,\n * `scrollToEnd({animated: false})` for immediate scrolling.\n * If no options are passed, `animated` defaults to true.\n *\n * See `ScrollView#scrollToEnd`.\n */\n scrollToEnd: function(options?: ?{animated?: boolean}) {\n if (this._scrollComponent) {\n if (this._scrollComponent.scrollToEnd) {\n this._scrollComponent.scrollToEnd(options);\n } else {\n console.warn(\n 'The scroll component used by the ListView does not support ' +\n 'scrollToEnd. Check the renderScrollComponent prop of your ListView.',\n );\n }\n }\n },\n\n /**\n * Displays the scroll indicators momentarily.\n *\n * @platform ios\n */\n flashScrollIndicators: function() {\n if (this._scrollComponent && this._scrollComponent.flashScrollIndicators) {\n this._scrollComponent.flashScrollIndicators();\n }\n },\n\n setNativeProps: function(props: Object) {\n if (this._scrollComponent) {\n this._scrollComponent.setNativeProps(props);\n }\n },\n\n /**\n * React life cycle hooks.\n */\n\n getDefaultProps: function() {\n return {\n initialListSize: DEFAULT_INITIAL_ROWS,\n pageSize: DEFAULT_PAGE_SIZE,\n renderScrollComponent: props => ,\n scrollRenderAheadDistance: DEFAULT_SCROLL_RENDER_AHEAD,\n onEndReachedThreshold: DEFAULT_END_REACHED_THRESHOLD,\n stickySectionHeadersEnabled: Platform.OS === 'ios',\n stickyHeaderIndices: [],\n };\n },\n\n getInitialState: function() {\n return {\n curRenderedRowsCount: this.props.initialListSize,\n highlightedRow: ({}: Object),\n };\n },\n\n getInnerViewNode: function() {\n return this._scrollComponent && this._scrollComponent.getInnerViewNode();\n },\n\n UNSAFE_componentWillMount: function() {\n // this data should never trigger a render pass, so don't put in state\n this.scrollProperties = {\n visibleLength: null,\n contentLength: null,\n offset: 0,\n };\n\n this._rafIds = [];\n this._childFrames = [];\n this._visibleRows = {};\n this._prevRenderedRowsCount = 0;\n this._sentEndForContentLength = null;\n },\n\n componentWillUnmount: function() {\n this._rafIds.forEach(cancelAnimationFrame);\n this._rafIds = [];\n },\n\n componentDidMount: function() {\n // do this in animation frame until componentDidMount actually runs after\n // the component is laid out\n this._requestAnimationFrame(() => {\n this._measureAndUpdateScrollProps();\n });\n },\n\n UNSAFE_componentWillReceiveProps: function(nextProps: Object) {\n if (\n this.props.dataSource !== nextProps.dataSource ||\n this.props.initialListSize !== nextProps.initialListSize\n ) {\n this.setState(\n (state, props) => {\n this._prevRenderedRowsCount = 0;\n return {\n curRenderedRowsCount: Math.min(\n Math.max(state.curRenderedRowsCount, props.initialListSize),\n props.enableEmptySections\n ? props.dataSource.getRowAndSectionCount()\n : props.dataSource.getRowCount(),\n ),\n };\n },\n () => this._renderMoreRowsIfNeeded(),\n );\n }\n },\n\n componentDidUpdate: function() {\n this._requestAnimationFrame(() => {\n this._measureAndUpdateScrollProps();\n });\n },\n\n _onRowHighlighted: function(sectionID: string, rowID: string) {\n this.setState({highlightedRow: {sectionID, rowID}});\n },\n\n render: function() {\n const bodyComponents = [];\n\n const dataSource = this.props.dataSource;\n const allRowIDs = dataSource.rowIdentities;\n let rowCount = 0;\n const stickySectionHeaderIndices = [];\n\n const {renderSectionHeader} = this.props;\n\n const header = this.props.renderHeader && this.props.renderHeader();\n const footer = this.props.renderFooter && this.props.renderFooter();\n let totalIndex = header ? 1 : 0;\n\n for (let sectionIdx = 0; sectionIdx < allRowIDs.length; sectionIdx++) {\n const sectionID = dataSource.sectionIdentities[sectionIdx];\n const rowIDs = allRowIDs[sectionIdx];\n if (rowIDs.length === 0) {\n if (this.props.enableEmptySections === undefined) {\n const warning = require('fbjs/lib/warning');\n warning(\n false,\n 'In next release empty section headers will be rendered.' +\n \" In this release you can use 'enableEmptySections' flag to render empty section headers.\",\n );\n continue;\n } else {\n const invariant = require('fbjs/lib/invariant');\n invariant(\n this.props.enableEmptySections,\n \"In next release 'enableEmptySections' flag will be deprecated, empty section headers will always be rendered.\" +\n ' If empty section headers are not desirable their indices should be excluded from sectionIDs object.' +\n \" In this release 'enableEmptySections' may only have value 'true' to allow empty section headers rendering.\",\n );\n }\n }\n\n if (renderSectionHeader) {\n const element = renderSectionHeader(\n dataSource.getSectionHeaderData(sectionIdx),\n sectionID,\n );\n if (element) {\n bodyComponents.push(\n React.cloneElement(element, {key: 's_' + sectionID}),\n );\n if (this.props.stickySectionHeadersEnabled) {\n stickySectionHeaderIndices.push(totalIndex);\n }\n totalIndex++;\n }\n }\n\n for (let rowIdx = 0; rowIdx < rowIDs.length; rowIdx++) {\n const rowID = rowIDs[rowIdx];\n const comboID = sectionID + '_' + rowID;\n const shouldUpdateRow =\n rowCount >= this._prevRenderedRowsCount &&\n dataSource.rowShouldUpdate(sectionIdx, rowIdx);\n const row = (\n \n );\n bodyComponents.push(row);\n totalIndex++;\n\n if (\n this.props.renderSeparator &&\n (rowIdx !== rowIDs.length - 1 || sectionIdx === allRowIDs.length - 1)\n ) {\n const adjacentRowHighlighted =\n this.state.highlightedRow.sectionID === sectionID &&\n (this.state.highlightedRow.rowID === rowID ||\n this.state.highlightedRow.rowID === rowIDs[rowIdx + 1]);\n const separator = this.props.renderSeparator(\n sectionID,\n rowID,\n adjacentRowHighlighted,\n );\n if (separator) {\n bodyComponents.push({separator});\n totalIndex++;\n }\n }\n if (++rowCount === this.state.curRenderedRowsCount) {\n break;\n }\n }\n if (rowCount >= this.state.curRenderedRowsCount) {\n break;\n }\n }\n\n const {renderScrollComponent, ...props} = this.props;\n if (!props.scrollEventThrottle) {\n props.scrollEventThrottle = DEFAULT_SCROLL_CALLBACK_THROTTLE;\n }\n if (props.removeClippedSubviews === undefined) {\n props.removeClippedSubviews = true;\n }\n Object.assign(props, {\n onScroll: this._onScroll,\n stickyHeaderIndices: this.props.stickyHeaderIndices.concat(\n stickySectionHeaderIndices,\n ),\n\n // Do not pass these events downstream to ScrollView since they will be\n // registered in ListView's own ScrollResponder.Mixin\n onKeyboardWillShow: undefined,\n onKeyboardWillHide: undefined,\n onKeyboardDidShow: undefined,\n onKeyboardDidHide: undefined,\n });\n\n return cloneReferencedElement(\n renderScrollComponent(props),\n {\n ref: this._setScrollComponentRef,\n onContentSizeChange: this._onContentSizeChange,\n onLayout: this._onLayout,\n DEPRECATED_sendUpdatedChildFrames:\n typeof props.onChangeVisibleRows !== undefined,\n },\n header,\n bodyComponents,\n footer,\n );\n },\n\n /**\n * Private methods\n */\n\n _requestAnimationFrame: function(fn: () => void): void {\n const rafId = requestAnimationFrame(() => {\n this._rafIds = this._rafIds.filter(id => id !== rafId);\n fn();\n });\n this._rafIds.push(rafId);\n },\n\n _measureAndUpdateScrollProps: function() {\n const scrollComponent = this.getScrollResponder();\n if (!scrollComponent || !scrollComponent.getInnerViewNode) {\n return;\n }\n\n // RCTScrollViewManager.calculateChildFrames is not available on\n // every platform\n RCTScrollViewManager &&\n RCTScrollViewManager.calculateChildFrames &&\n RCTScrollViewManager.calculateChildFrames(\n ReactNative.findNodeHandle(scrollComponent),\n this._updateVisibleRows,\n );\n },\n\n _setScrollComponentRef: function(scrollComponent) {\n this._scrollComponent = scrollComponent;\n },\n\n _onContentSizeChange: function(width: number, height: number) {\n const contentLength = !this.props.horizontal ? height : width;\n if (contentLength !== this.scrollProperties.contentLength) {\n this.scrollProperties.contentLength = contentLength;\n this._updateVisibleRows();\n this._renderMoreRowsIfNeeded();\n }\n this.props.onContentSizeChange &&\n this.props.onContentSizeChange(width, height);\n },\n\n _onLayout: function(event: Object) {\n const {width, height} = event.nativeEvent.layout;\n const visibleLength = !this.props.horizontal ? height : width;\n if (visibleLength !== this.scrollProperties.visibleLength) {\n this.scrollProperties.visibleLength = visibleLength;\n this._updateVisibleRows();\n this._renderMoreRowsIfNeeded();\n }\n this.props.onLayout && this.props.onLayout(event);\n },\n\n _maybeCallOnEndReached: function(event?: Object) {\n if (\n this.props.onEndReached &&\n this.scrollProperties.contentLength !== this._sentEndForContentLength &&\n this._getDistanceFromEnd(this.scrollProperties) <\n this.props.onEndReachedThreshold &&\n this.state.curRenderedRowsCount ===\n (this.props.enableEmptySections\n ? this.props.dataSource.getRowAndSectionCount()\n : this.props.dataSource.getRowCount())\n ) {\n this._sentEndForContentLength = this.scrollProperties.contentLength;\n this.props.onEndReached(event);\n return true;\n }\n return false;\n },\n\n _renderMoreRowsIfNeeded: function() {\n if (\n this.scrollProperties.contentLength === null ||\n this.scrollProperties.visibleLength === null ||\n this.state.curRenderedRowsCount ===\n (this.props.enableEmptySections\n ? this.props.dataSource.getRowAndSectionCount()\n : this.props.dataSource.getRowCount())\n ) {\n this._maybeCallOnEndReached();\n return;\n }\n\n const distanceFromEnd = this._getDistanceFromEnd(this.scrollProperties);\n if (distanceFromEnd < this.props.scrollRenderAheadDistance) {\n this._pageInNewRows();\n }\n },\n\n _pageInNewRows: function() {\n this.setState(\n (state, props) => {\n const rowsToRender = Math.min(\n state.curRenderedRowsCount + props.pageSize,\n props.enableEmptySections\n ? props.dataSource.getRowAndSectionCount()\n : props.dataSource.getRowCount(),\n );\n this._prevRenderedRowsCount = state.curRenderedRowsCount;\n return {\n curRenderedRowsCount: rowsToRender,\n };\n },\n () => {\n this._measureAndUpdateScrollProps();\n this._prevRenderedRowsCount = this.state.curRenderedRowsCount;\n },\n );\n },\n\n _getDistanceFromEnd: function(scrollProperties: Object) {\n return (\n scrollProperties.contentLength -\n scrollProperties.visibleLength -\n scrollProperties.offset\n );\n },\n\n _updateVisibleRows: function(updatedFrames?: Array) {\n if (!this.props.onChangeVisibleRows) {\n return; // No need to compute visible rows if there is no callback\n }\n if (updatedFrames) {\n updatedFrames.forEach(newFrame => {\n this._childFrames[newFrame.index] = merge(newFrame);\n });\n }\n const isVertical = !this.props.horizontal;\n const dataSource = this.props.dataSource;\n const visibleMin = this.scrollProperties.offset;\n const visibleMax = visibleMin + this.scrollProperties.visibleLength;\n const allRowIDs = dataSource.rowIdentities;\n\n const header = this.props.renderHeader && this.props.renderHeader();\n let totalIndex = header ? 1 : 0;\n let visibilityChanged = false;\n const changedRows = {};\n for (let sectionIdx = 0; sectionIdx < allRowIDs.length; sectionIdx++) {\n const rowIDs = allRowIDs[sectionIdx];\n if (rowIDs.length === 0) {\n continue;\n }\n const sectionID = dataSource.sectionIdentities[sectionIdx];\n if (this.props.renderSectionHeader) {\n totalIndex++;\n }\n let visibleSection = this._visibleRows[sectionID];\n if (!visibleSection) {\n visibleSection = {};\n }\n for (let rowIdx = 0; rowIdx < rowIDs.length; rowIdx++) {\n const rowID = rowIDs[rowIdx];\n const frame = this._childFrames[totalIndex];\n totalIndex++;\n if (\n this.props.renderSeparator &&\n (rowIdx !== rowIDs.length - 1 || sectionIdx === allRowIDs.length - 1)\n ) {\n totalIndex++;\n }\n if (!frame) {\n break;\n }\n const rowVisible = visibleSection[rowID];\n const min = isVertical ? frame.y : frame.x;\n const max = min + (isVertical ? frame.height : frame.width);\n if ((!min && !max) || min === max) {\n break;\n }\n if (min > visibleMax || max < visibleMin) {\n if (rowVisible) {\n visibilityChanged = true;\n delete visibleSection[rowID];\n if (!changedRows[sectionID]) {\n changedRows[sectionID] = {};\n }\n changedRows[sectionID][rowID] = false;\n }\n } else if (!rowVisible) {\n visibilityChanged = true;\n visibleSection[rowID] = true;\n if (!changedRows[sectionID]) {\n changedRows[sectionID] = {};\n }\n changedRows[sectionID][rowID] = true;\n }\n }\n if (!isEmpty(visibleSection)) {\n this._visibleRows[sectionID] = visibleSection;\n } else if (this._visibleRows[sectionID]) {\n delete this._visibleRows[sectionID];\n }\n }\n visibilityChanged &&\n this.props.onChangeVisibleRows(this._visibleRows, changedRows);\n },\n\n _onScroll: function(e: Object) {\n const isVertical = !this.props.horizontal;\n this.scrollProperties.visibleLength =\n e.nativeEvent.layoutMeasurement[isVertical ? 'height' : 'width'];\n this.scrollProperties.contentLength =\n e.nativeEvent.contentSize[isVertical ? 'height' : 'width'];\n this.scrollProperties.offset =\n e.nativeEvent.contentOffset[isVertical ? 'y' : 'x'];\n this._updateVisibleRows(e.nativeEvent.updatedChildFrames);\n if (!this._maybeCallOnEndReached(e)) {\n this._renderMoreRowsIfNeeded();\n }\n\n if (\n this.props.onEndReached &&\n this._getDistanceFromEnd(this.scrollProperties) >\n this.props.onEndReachedThreshold\n ) {\n // Scrolled out of the end zone, so it should be able to trigger again.\n this._sentEndForContentLength = null;\n }\n\n this.props.onScroll && this.props.onScroll(e);\n },\n});\n\nmodule.exports = ((ListView: any): Class>);\n","/**\n * Copyright (c) 2015-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n * @flow\n */\n\nconst React = require('React');\nconst ListViewDataSource = require('ListViewDataSource');\n\n// This class is purely a facsimile of ListView so that we can\n// properly type it with Flow before migrating ListView off of\n// createReactClass. If there are things missing here that are in\n// ListView, that is unintentional.\nclass InternalListViewType extends React.Component {\n static DataSource = ListViewDataSource;\n setNativeProps(props: Object) {}\n flashScrollIndicators() {}\n getScrollResponder(): any {}\n getScrollableNode(): any {}\n // $FlowFixMe\n getMetrics(): Object {}\n scrollTo(...args: Array) {}\n scrollToEnd(options?: ?{animated?: ?boolean}) {}\n}\n\nmodule.exports = InternalListViewType;\n","/**\n * Copyright (c) 2015-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @flow\n * @format\n */\n'use strict';\n\nconst invariant = require('fbjs/lib/invariant');\nconst isEmpty = require('isEmpty');\n/* $FlowFixMe(>=0.54.0 site=react_native_oss) This comment suppresses an error\n * found when Flow v0.54 was deployed. To see the error delete this comment and\n * run Flow. */\nconst warning = require('fbjs/lib/warning');\n\nfunction defaultGetRowData(\n dataBlob: any,\n sectionID: number | string,\n rowID: number | string,\n): any {\n return dataBlob[sectionID][rowID];\n}\n\nfunction defaultGetSectionHeaderData(\n dataBlob: any,\n sectionID: number | string,\n): any {\n return dataBlob[sectionID];\n}\n\ntype differType = (data1: any, data2: any) => boolean;\n\ntype ParamType = {\n rowHasChanged: differType,\n getRowData?: ?typeof defaultGetRowData,\n sectionHeaderHasChanged?: ?differType,\n getSectionHeaderData?: ?typeof defaultGetSectionHeaderData,\n};\n\n/**\n * Provides efficient data processing and access to the\n * `ListView` component. A `ListViewDataSource` is created with functions for\n * extracting data from the input blob, and comparing elements (with default\n * implementations for convenience). The input blob can be as simple as an\n * array of strings, or an object with rows nested inside section objects.\n *\n * To update the data in the datasource, use `cloneWithRows` (or\n * `cloneWithRowsAndSections` if you care about sections). The data in the\n * data source is immutable, so you can't modify it directly. The clone methods\n * suck in the new data and compute a diff for each row so ListView knows\n * whether to re-render it or not.\n *\n * In this example, a component receives data in chunks, handled by\n * `_onDataArrived`, which concats the new data onto the old data and updates the\n * data source. We use `concat` to create a new array - mutating `this._data`,\n * e.g. with `this._data.push(newRowData)`, would be an error. `_rowHasChanged`\n * understands the shape of the row data and knows how to efficiently compare\n * it.\n *\n * ```\n * getInitialState: function() {\n * var ds = new ListView.DataSource({rowHasChanged: this._rowHasChanged});\n * return {ds};\n * },\n * _onDataArrived(newData) {\n * this._data = this._data.concat(newData);\n * this.setState({\n * ds: this.state.ds.cloneWithRows(this._data)\n * });\n * }\n * ```\n */\n\nclass ListViewDataSource {\n /**\n * You can provide custom extraction and `hasChanged` functions for section\n * headers and rows. If absent, data will be extracted with the\n * `defaultGetRowData` and `defaultGetSectionHeaderData` functions.\n *\n * The default extractor expects data of one of the following forms:\n *\n * { sectionID_1: { rowID_1: , ... }, ... }\n *\n * or\n *\n * { sectionID_1: [ , , ... ], ... }\n *\n * or\n *\n * [ [ , , ... ], ... ]\n *\n * The constructor takes in a params argument that can contain any of the\n * following:\n *\n * - getRowData(dataBlob, sectionID, rowID);\n * - getSectionHeaderData(dataBlob, sectionID);\n * - rowHasChanged(prevRowData, nextRowData);\n * - sectionHeaderHasChanged(prevSectionData, nextSectionData);\n */\n constructor(params: ParamType) {\n invariant(\n params && typeof params.rowHasChanged === 'function',\n 'Must provide a rowHasChanged function.',\n );\n this._rowHasChanged = params.rowHasChanged;\n this._getRowData = params.getRowData || defaultGetRowData;\n this._sectionHeaderHasChanged = params.sectionHeaderHasChanged;\n this._getSectionHeaderData =\n params.getSectionHeaderData || defaultGetSectionHeaderData;\n\n this._dataBlob = null;\n this._dirtyRows = [];\n this._dirtySections = [];\n this._cachedRowCount = 0;\n\n // These two private variables are accessed by outsiders because ListView\n // uses them to iterate over the data in this class.\n this.rowIdentities = [];\n this.sectionIdentities = [];\n }\n\n /**\n * Clones this `ListViewDataSource` with the specified `dataBlob` and\n * `rowIdentities`. The `dataBlob` is just an arbitrary blob of data. At\n * construction an extractor to get the interesting information was defined\n * (or the default was used).\n *\n * The `rowIdentities` is a 2D array of identifiers for rows.\n * ie. [['a1', 'a2'], ['b1', 'b2', 'b3'], ...]. If not provided, it's\n * assumed that the keys of the section data are the row identities.\n *\n * Note: This function does NOT clone the data in this data source. It simply\n * passes the functions defined at construction to a new data source with\n * the data specified. If you wish to maintain the existing data you must\n * handle merging of old and new data separately and then pass that into\n * this function as the `dataBlob`.\n */\n cloneWithRows(\n dataBlob: $ReadOnlyArray | {+[key: string]: any},\n rowIdentities: ?$ReadOnlyArray,\n ): ListViewDataSource {\n const rowIds = rowIdentities ? [[...rowIdentities]] : null;\n if (!this._sectionHeaderHasChanged) {\n this._sectionHeaderHasChanged = () => false;\n }\n return this.cloneWithRowsAndSections({s1: dataBlob}, ['s1'], rowIds);\n }\n\n /**\n * This performs the same function as the `cloneWithRows` function but here\n * you also specify what your `sectionIdentities` are. If you don't care\n * about sections you should safely be able to use `cloneWithRows`.\n *\n * `sectionIdentities` is an array of identifiers for sections.\n * ie. ['s1', 's2', ...]. The identifiers should correspond to the keys or array indexes\n * of the data you wish to include. If not provided, it's assumed that the\n * keys of dataBlob are the section identities.\n *\n * Note: this returns a new object!\n *\n * ```\n * const dataSource = ds.cloneWithRowsAndSections({\n * addresses: ['row 1', 'row 2'],\n * phone_numbers: ['data 1', 'data 2'],\n * }, ['phone_numbers']);\n * ```\n */\n cloneWithRowsAndSections(\n dataBlob: any,\n sectionIdentities: ?Array,\n rowIdentities: ?Array>,\n ): ListViewDataSource {\n invariant(\n typeof this._sectionHeaderHasChanged === 'function',\n 'Must provide a sectionHeaderHasChanged function with section data.',\n );\n invariant(\n !sectionIdentities ||\n !rowIdentities ||\n sectionIdentities.length === rowIdentities.length,\n 'row and section ids lengths must be the same',\n );\n\n const newSource = new ListViewDataSource({\n getRowData: this._getRowData,\n getSectionHeaderData: this._getSectionHeaderData,\n rowHasChanged: this._rowHasChanged,\n sectionHeaderHasChanged: this._sectionHeaderHasChanged,\n });\n newSource._dataBlob = dataBlob;\n if (sectionIdentities) {\n newSource.sectionIdentities = sectionIdentities;\n } else {\n newSource.sectionIdentities = Object.keys(dataBlob);\n }\n if (rowIdentities) {\n newSource.rowIdentities = rowIdentities;\n } else {\n newSource.rowIdentities = [];\n newSource.sectionIdentities.forEach(sectionID => {\n newSource.rowIdentities.push(Object.keys(dataBlob[sectionID]));\n });\n }\n newSource._cachedRowCount = countRows(newSource.rowIdentities);\n\n newSource._calculateDirtyArrays(\n this._dataBlob,\n this.sectionIdentities,\n this.rowIdentities,\n );\n\n return newSource;\n }\n\n /**\n * Returns the total number of rows in the data source.\n *\n * If you are specifying the rowIdentities or sectionIdentities, then `getRowCount` will return the number of rows in the filtered data source.\n */\n getRowCount(): number {\n return this._cachedRowCount;\n }\n\n /**\n * Returns the total number of rows in the data source (see `getRowCount` for how this is calculated) plus the number of sections in the data.\n *\n * If you are specifying the rowIdentities or sectionIdentities, then `getRowAndSectionCount` will return the number of rows & sections in the filtered data source.\n */\n getRowAndSectionCount(): number {\n return this._cachedRowCount + this.sectionIdentities.length;\n }\n\n /**\n * Returns if the row is dirtied and needs to be rerendered\n */\n rowShouldUpdate(sectionIndex: number, rowIndex: number): boolean {\n const needsUpdate = this._dirtyRows[sectionIndex][rowIndex];\n warning(\n needsUpdate !== undefined,\n 'missing dirtyBit for section, row: ' + sectionIndex + ', ' + rowIndex,\n );\n return needsUpdate;\n }\n\n /**\n * Gets the data required to render the row.\n */\n getRowData(sectionIndex: number, rowIndex: number): any {\n const sectionID = this.sectionIdentities[sectionIndex];\n const rowID = this.rowIdentities[sectionIndex][rowIndex];\n warning(\n sectionID !== undefined && rowID !== undefined,\n 'rendering invalid section, row: ' + sectionIndex + ', ' + rowIndex,\n );\n return this._getRowData(this._dataBlob, sectionID, rowID);\n }\n\n /**\n * Gets the rowID at index provided if the dataSource arrays were flattened,\n * or null of out of range indexes.\n */\n getRowIDForFlatIndex(index: number): ?string {\n let accessIndex = index;\n for (let ii = 0; ii < this.sectionIdentities.length; ii++) {\n if (accessIndex >= this.rowIdentities[ii].length) {\n accessIndex -= this.rowIdentities[ii].length;\n } else {\n return this.rowIdentities[ii][accessIndex];\n }\n }\n return null;\n }\n\n /**\n * Gets the sectionID at index provided if the dataSource arrays were flattened,\n * or null for out of range indexes.\n */\n getSectionIDForFlatIndex(index: number): ?string {\n let accessIndex = index;\n for (let ii = 0; ii < this.sectionIdentities.length; ii++) {\n if (accessIndex >= this.rowIdentities[ii].length) {\n accessIndex -= this.rowIdentities[ii].length;\n } else {\n return this.sectionIdentities[ii];\n }\n }\n return null;\n }\n\n /**\n * Returns an array containing the number of rows in each section\n */\n getSectionLengths(): Array {\n const results = [];\n for (let ii = 0; ii < this.sectionIdentities.length; ii++) {\n results.push(this.rowIdentities[ii].length);\n }\n return results;\n }\n\n /**\n * Returns if the section header is dirtied and needs to be rerendered\n */\n sectionHeaderShouldUpdate(sectionIndex: number): boolean {\n const needsUpdate = this._dirtySections[sectionIndex];\n warning(\n needsUpdate !== undefined,\n 'missing dirtyBit for section: ' + sectionIndex,\n );\n return needsUpdate;\n }\n\n /**\n * Gets the data required to render the section header\n */\n getSectionHeaderData(sectionIndex: number): any {\n if (!this._getSectionHeaderData) {\n return null;\n }\n const sectionID = this.sectionIdentities[sectionIndex];\n warning(\n sectionID !== undefined,\n 'renderSection called on invalid section: ' + sectionIndex,\n );\n return this._getSectionHeaderData(this._dataBlob, sectionID);\n }\n\n /**\n * Private members and methods.\n */\n\n _getRowData: typeof defaultGetRowData;\n _getSectionHeaderData: typeof defaultGetSectionHeaderData;\n _rowHasChanged: differType;\n _sectionHeaderHasChanged: ?differType;\n\n _dataBlob: any;\n _dirtyRows: Array>;\n _dirtySections: Array;\n _cachedRowCount: number;\n\n // These two 'protected' variables are accessed by ListView to iterate over\n // the data in this class.\n rowIdentities: Array>;\n sectionIdentities: Array;\n\n _calculateDirtyArrays(\n prevDataBlob: any,\n prevSectionIDs: Array,\n prevRowIDs: Array>,\n ): void {\n // construct a hashmap of the existing (old) id arrays\n const prevSectionsHash = keyedDictionaryFromArray(prevSectionIDs);\n const prevRowsHash = {};\n for (let ii = 0; ii < prevRowIDs.length; ii++) {\n var sectionID = prevSectionIDs[ii];\n warning(\n !prevRowsHash[sectionID],\n 'SectionID appears more than once: ' + sectionID,\n );\n prevRowsHash[sectionID] = keyedDictionaryFromArray(prevRowIDs[ii]);\n }\n\n // compare the 2 identity array and get the dirtied rows\n this._dirtySections = [];\n this._dirtyRows = [];\n\n let dirty;\n for (let sIndex = 0; sIndex < this.sectionIdentities.length; sIndex++) {\n var sectionID = this.sectionIdentities[sIndex];\n // dirty if the sectionHeader is new or _sectionHasChanged is true\n dirty = !prevSectionsHash[sectionID];\n const sectionHeaderHasChanged = this._sectionHeaderHasChanged;\n if (!dirty && sectionHeaderHasChanged) {\n dirty = sectionHeaderHasChanged(\n this._getSectionHeaderData(prevDataBlob, sectionID),\n this._getSectionHeaderData(this._dataBlob, sectionID),\n );\n }\n this._dirtySections.push(!!dirty);\n\n this._dirtyRows[sIndex] = [];\n for (\n let rIndex = 0;\n rIndex < this.rowIdentities[sIndex].length;\n rIndex++\n ) {\n const rowID = this.rowIdentities[sIndex][rIndex];\n // dirty if the section is new, row is new or _rowHasChanged is true\n dirty =\n !prevSectionsHash[sectionID] ||\n !prevRowsHash[sectionID][rowID] ||\n this._rowHasChanged(\n this._getRowData(prevDataBlob, sectionID, rowID),\n this._getRowData(this._dataBlob, sectionID, rowID),\n );\n this._dirtyRows[sIndex].push(!!dirty);\n }\n }\n }\n}\n\nfunction countRows(allRowIDs) {\n let totalRows = 0;\n for (let sectionIdx = 0; sectionIdx < allRowIDs.length; sectionIdx++) {\n const rowIDs = allRowIDs[sectionIdx];\n totalRows += rowIDs.length;\n }\n return totalRows;\n}\n\nfunction keyedDictionaryFromArray(arr) {\n if (isEmpty(arr)) {\n return {};\n }\n const result = {};\n for (let ii = 0; ii < arr.length; ii++) {\n const key = arr[ii];\n warning(!result[key], 'Value appears more than once in array: ' + key);\n result[key] = true;\n }\n return result;\n}\n\nmodule.exports = ListViewDataSource;\n","/**\n * Copyright (c) 2015-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @flow strict\n * @format\n */\n\n'use strict';\n\n/**\n * Mimics empty from PHP.\n */\nfunction isEmpty(obj: mixed): boolean {\n if (Array.isArray(obj)) {\n return obj.length === 0;\n } else if (typeof obj === 'object') {\n for (const i in obj) {\n return false;\n }\n return true;\n } else {\n return !obj;\n }\n}\n\nmodule.exports = isEmpty;\n","/**\n * Copyright (c) 2015-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n * @flow\n */\n\n'use strict';\n\nconst AnimatedImplementation = require('AnimatedImplementation');\nconst Platform = require('Platform');\nconst React = require('React');\nconst ReactNative = require('ReactNative');\nconst ScrollResponder = require('ScrollResponder');\nconst ScrollViewStickyHeader = require('ScrollViewStickyHeader');\nconst StyleSheet = require('StyleSheet');\nconst View = require('View');\nconst InternalScrollViewType = require('InternalScrollViewType');\n\nconst createReactClass = require('create-react-class');\nconst dismissKeyboard = require('dismissKeyboard');\nconst flattenStyle = require('flattenStyle');\nconst invariant = require('fbjs/lib/invariant');\nconst processDecelerationRate = require('processDecelerationRate');\nconst requireNativeComponent = require('requireNativeComponent');\nconst warning = require('fbjs/lib/warning');\nconst resolveAssetSource = require('resolveAssetSource');\n\nimport type {PressEvent} from 'CoreEventTypes';\nimport type {EdgeInsetsProp} from 'EdgeInsetsPropType';\nimport type {NativeMethodsMixinType} from 'ReactNativeTypes';\nimport type {ViewStyleProp} from 'StyleSheet';\nimport type {ViewProps} from 'ViewPropTypes';\nimport type {PointProp} from 'PointPropType';\n\nimport type {ColorValue} from 'StyleSheetTypes';\n\nlet AndroidScrollView;\nlet AndroidHorizontalScrollContentView;\nlet AndroidHorizontalScrollView;\nlet RCTScrollView;\nlet RCTScrollContentView;\n\nif (Platform.OS === 'android') {\n AndroidScrollView = requireNativeComponent('RCTScrollView');\n AndroidHorizontalScrollView = requireNativeComponent(\n 'AndroidHorizontalScrollView',\n );\n AndroidHorizontalScrollContentView = requireNativeComponent(\n 'AndroidHorizontalScrollContentView',\n );\n} else if (Platform.OS === 'ios') {\n RCTScrollView = requireNativeComponent('RCTScrollView');\n RCTScrollContentView = requireNativeComponent('RCTScrollContentView');\n} else {\n RCTScrollView = requireNativeComponent('RCTScrollView');\n RCTScrollContentView = requireNativeComponent('RCTScrollContentView');\n}\n\ntype TouchableProps = $ReadOnly<{|\n onTouchStart?: (event: PressEvent) => void,\n onTouchMove?: (event: PressEvent) => void,\n onTouchEnd?: (event: PressEvent) => void,\n onTouchCancel?: (event: PressEvent) => void,\n onTouchEndCapture?: (event: PressEvent) => void,\n|}>;\n\ntype IOSProps = $ReadOnly<{|\n /**\n * Controls whether iOS should automatically adjust the content inset\n * for scroll views that are placed behind a navigation bar or\n * tab bar/ toolbar. The default value is true.\n * @platform ios\n */\n automaticallyAdjustContentInsets?: ?boolean,\n /**\n * The amount by which the scroll view content is inset from the edges\n * of the scroll view. Defaults to `{top: 0, left: 0, bottom: 0, right: 0}`.\n * @platform ios\n */\n contentInset?: ?EdgeInsetsProp,\n /**\n * Used to manually set the starting scroll offset.\n * The default value is `{x: 0, y: 0}`.\n * @platform ios\n */\n contentOffset?: ?PointProp,\n /**\n * When true, the scroll view bounces when it reaches the end of the\n * content if the content is larger then the scroll view along the axis of\n * the scroll direction. When false, it disables all bouncing even if\n * the `alwaysBounce*` props are true. The default value is true.\n * @platform ios\n */\n bounces?: ?boolean,\n /**\n * When true, gestures can drive zoom past min/max and the zoom will animate\n * to the min/max value at gesture end, otherwise the zoom will not exceed\n * the limits.\n * @platform ios\n */\n bouncesZoom?: ?boolean,\n /**\n * When true, the scroll view bounces horizontally when it reaches the end\n * even if the content is smaller than the scroll view itself. The default\n * value is true when `horizontal={true}` and false otherwise.\n * @platform ios\n */\n alwaysBounceHorizontal?: ?boolean,\n /**\n * When true, the scroll view bounces vertically when it reaches the end\n * even if the content is smaller than the scroll view itself. The default\n * value is false when `horizontal={true}` and true otherwise.\n * @platform ios\n */\n alwaysBounceVertical?: ?boolean,\n /**\n * When true, the scroll view automatically centers the content when the\n * content is smaller than the scroll view bounds; when the content is\n * larger than the scroll view, this property has no effect. The default\n * value is false.\n * @platform ios\n */\n centerContent?: ?boolean,\n /**\n * The style of the scroll indicators.\n *\n * - `'default'` (the default), same as `black`.\n * - `'black'`, scroll indicator is black. This style is good against a light background.\n * - `'white'`, scroll indicator is white. This style is good against a dark background.\n *\n * @platform ios\n */\n indicatorStyle?: ?('default' | 'black' | 'white'),\n /**\n * When true, the ScrollView will try to lock to only vertical or horizontal\n * scrolling while dragging. The default value is false.\n * @platform ios\n */\n directionalLockEnabled?: ?boolean,\n /**\n * When false, once tracking starts, won't try to drag if the touch moves.\n * The default value is true.\n * @platform ios\n */\n canCancelContentTouches?: ?boolean,\n /**\n * When set, the scroll view will adjust the scroll position so that the first child that is\n * currently visible and at or beyond `minIndexForVisible` will not change position. This is\n * useful for lists that are loading content in both directions, e.g. a chat thread, where new\n * messages coming in might otherwise cause the scroll position to jump. A value of 0 is common,\n * but other values such as 1 can be used to skip loading spinners or other content that should\n * not maintain position.\n *\n * The optional `autoscrollToTopThreshold` can be used to make the content automatically scroll\n * to the top after making the adjustment if the user was within the threshold of the top before\n * the adjustment was made. This is also useful for chat-like applications where you want to see\n * new messages scroll into place, but not if the user has scrolled up a ways and it would be\n * disruptive to scroll a bunch.\n *\n * Caveat 1: Reordering elements in the scrollview with this enabled will probably cause\n * jumpiness and jank. It can be fixed, but there are currently no plans to do so. For now,\n * don't re-order the content of any ScrollViews or Lists that use this feature.\n *\n * Caveat 2: This simply uses `contentOffset` and `frame.origin` in native code to compute\n * visibility. Occlusion, transforms, and other complexity won't be taken into account as to\n * whether content is \"visible\" or not.\n *\n * @platform ios\n */\n maintainVisibleContentPosition?: ?$ReadOnly<{|\n minIndexForVisible: number,\n autoscrollToTopThreshold?: ?number,\n |}>,\n /**\n * The maximum allowed zoom scale. The default value is 1.0.\n * @platform ios\n */\n maximumZoomScale?: ?number,\n /**\n * The minimum allowed zoom scale. The default value is 1.0.\n * @platform ios\n */\n minimumZoomScale?: ?number,\n /**\n * When true, ScrollView allows use of pinch gestures to zoom in and out.\n * The default value is true.\n * @platform ios\n */\n pinchGestureEnabled?: ?boolean,\n /**\n * This controls how often the scroll event will be fired while scrolling\n * (as a time interval in ms). A lower number yields better accuracy for code\n * that is tracking the scroll position, but can lead to scroll performance\n * problems due to the volume of information being send over the bridge.\n * You will not notice a difference between values set between 1-16 as the\n * JS run loop is synced to the screen refresh rate. If you do not need precise\n * scroll position tracking, set this value higher to limit the information\n * being sent across the bridge. The default value is zero, which results in\n * the scroll event being sent only once each time the view is scrolled.\n * @platform ios\n */\n scrollEventThrottle?: ?number,\n /**\n * The amount by which the scroll view indicators are inset from the edges\n * of the scroll view. This should normally be set to the same value as\n * the `contentInset`. Defaults to `{0, 0, 0, 0}`.\n * @platform ios\n */\n scrollIndicatorInsets?: ?EdgeInsetsProp,\n /**\n * When true, the scroll view scrolls to top when the status bar is tapped.\n * The default value is true.\n * @platform ios\n */\n scrollsToTop?: ?boolean,\n /**\n * When true, shows a horizontal scroll indicator.\n * The default value is true.\n */\n showsHorizontalScrollIndicator?: ?boolean,\n /**\n * When `snapToInterval` is set, `snapToAlignment` will define the relationship\n * of the snapping to the scroll view.\n *\n * - `'start'` (the default) will align the snap at the left (horizontal) or top (vertical)\n * - `'center'` will align the snap in the center\n * - `'end'` will align the snap at the right (horizontal) or bottom (vertical)\n *\n * @platform ios\n */\n snapToAlignment?: ?('start' | 'center' | 'end'),\n /**\n * The current scale of the scroll view content. The default value is 1.0.\n * @platform ios\n */\n zoomScale?: ?number,\n /**\n * This property specifies how the safe area insets are used to modify the\n * content area of the scroll view. The default value of this property is\n * \"never\". Available on iOS 11 and later.\n * @platform ios\n */\n contentInsetAdjustmentBehavior?: ?(\n | 'automatic'\n | 'scrollableAxes'\n | 'never'\n | 'always'\n ),\n /**\n * When true, ScrollView will emit updateChildFrames data in scroll events,\n * otherwise will not compute or emit child frame data. This only exists\n * to support legacy issues, `onLayout` should be used instead to retrieve\n * frame data.\n * The default value is false.\n * @platform ios\n */\n DEPRECATED_sendUpdatedChildFrames?: ?boolean,\n|}>;\n\ntype AndroidProps = $ReadOnly<{|\n /**\n * Enables nested scrolling for Android API level 21+.\n * Nested scrolling is supported by default on iOS\n * @platform android\n */\n nestedScrollEnabled?: ?boolean,\n /**\n * Sometimes a scrollview takes up more space than its content fills. When this is\n * the case, this prop will fill the rest of the scrollview with a color to avoid setting\n * a background and creating unnecessary overdraw. This is an advanced optimization\n * that is not needed in the general case.\n * @platform android\n */\n endFillColor?: ?ColorValue,\n /**\n * Tag used to log scroll performance on this scroll view. Will force\n * momentum events to be turned on (see sendMomentumEvents). This doesn't do\n * anything out of the box and you need to implement a custom native\n * FpsListener for it to be useful.\n * @platform android\n */\n scrollPerfTag?: ?string,\n /**\n * Used to override default value of overScroll mode.\n *\n * Possible values:\n *\n * - `'auto'` - Default value, allow a user to over-scroll\n * this view only if the content is large enough to meaningfully scroll.\n * - `'always'` - Always allow a user to over-scroll this view.\n * - `'never'` - Never allow a user to over-scroll this view.\n *\n * @platform android\n */\n overScrollMode?: ?('auto' | 'always' | 'never'),\n|}>;\n\ntype VRProps = $ReadOnly<{|\n /**\n * Optionally an image can be used for the scroll bar thumb. This will\n * override the color. While the image is loading or the image fails to\n * load the color will be used instead. Use an alpha of 0 in the color\n * to avoid seeing it while the image is loading.\n *\n * - `uri` - a string representing the resource identifier for the image, which\n * should be either a local file path or the name of a static image resource\n * - `number` - Opaque type returned by something like\n * `import IMAGE from './image.jpg'`.\n * @platform vr\n */\n scrollBarThumbImage?: ?($ReadOnly<{||}> | number), // Opaque type returned by import IMAGE from './image.jpg'\n|}>;\n\nexport type Props = $ReadOnly<{|\n ...ViewProps,\n ...TouchableProps,\n ...IOSProps,\n ...AndroidProps,\n ...VRProps,\n\n /**\n * These styles will be applied to the scroll view content container which\n * wraps all of the child views. Example:\n *\n * ```\n * return (\n * \n * \n * );\n * ...\n * const styles = StyleSheet.create({\n * contentContainer: {\n * paddingVertical: 20\n * }\n * });\n * ```\n */\n contentContainerStyle?: ?ViewStyleProp,\n /**\n * A floating-point number that determines how quickly the scroll view\n * decelerates after the user lifts their finger. You may also use string\n * shortcuts `\"normal\"` and `\"fast\"` which match the underlying iOS settings\n * for `UIScrollViewDecelerationRateNormal` and\n * `UIScrollViewDecelerationRateFast` respectively.\n *\n * - `'normal'`: 0.998 on iOS, 0.985 on Android (the default)\n * - `'fast'`: 0.99 on iOS, 0.9 on Android\n */\n decelerationRate?: ?('fast' | 'normal' | number),\n /**\n * When true, the scroll view's children are arranged horizontally in a row\n * instead of vertically in a column. The default value is false.\n */\n horizontal?: ?boolean,\n /**\n * If sticky headers should stick at the bottom instead of the top of the\n * ScrollView. This is usually used with inverted ScrollViews.\n */\n invertStickyHeaders?: ?boolean,\n /**\n * Determines whether the keyboard gets dismissed in response to a drag.\n *\n * *Cross platform*\n *\n * - `'none'` (the default), drags do not dismiss the keyboard.\n * - `'on-drag'`, the keyboard is dismissed when a drag begins.\n *\n * *iOS Only*\n *\n * - `'interactive'`, the keyboard is dismissed interactively with the drag and moves in\n * synchrony with the touch; dragging upwards cancels the dismissal.\n * On android this is not supported and it will have the same behavior as 'none'.\n */\n keyboardDismissMode?: ?(\n | 'none' // default\n | 'on-drag' // cross-platform\n | 'interactive'\n ), // ios only\n /**\n * Determines when the keyboard should stay visible after a tap.\n *\n * - `'never'` (the default), tapping outside of the focused text input when the keyboard\n * is up dismisses the keyboard. When this happens, children won't receive the tap.\n * - `'always'`, the keyboard will not dismiss automatically, and the scroll view will not\n * catch taps, but children of the scroll view can catch taps.\n * - `'handled'`, the keyboard will not dismiss automatically when the tap was handled by\n * a children, (or captured by an ancestor).\n * - `false`, deprecated, use 'never' instead\n * - `true`, deprecated, use 'always' instead\n */\n // $FlowFixMe(site=react_native_fb) Issues found when typing ScrollView\n keyboardShouldPersistTaps?: ?('always' | 'never' | 'handled' | false | true),\n /**\n * Called when the momentum scroll starts (scroll which occurs as the ScrollView glides to a stop).\n */\n onMomentumScrollBegin?: ?Function,\n /**\n * Called when the momentum scroll ends (scroll which occurs as the ScrollView glides to a stop).\n */\n onMomentumScrollEnd?: ?Function,\n\n /**\n * Fires at most once per frame during scrolling. The frequency of the\n * events can be controlled using the `scrollEventThrottle` prop.\n */\n onScroll?: ?Function,\n /**\n * Called when the user begins to drag the scroll view.\n */\n onScrollBeginDrag?: ?Function,\n /**\n * Called when the user stops dragging the scroll view and it either stops\n * or begins to glide.\n */\n onScrollEndDrag?: ?Function,\n /**\n * Called when scrollable content view of the ScrollView changes.\n *\n * Handler function is passed the content width and content height as parameters:\n * `(contentWidth, contentHeight)`\n *\n * It's implemented using onLayout handler attached to the content container\n * which this ScrollView renders.\n */\n onContentSizeChange?: ?Function,\n onKeyboardDidShow?: (event: PressEvent) => void,\n /**\n * When true, the scroll view stops on multiples of the scroll view's size\n * when scrolling. This can be used for horizontal pagination. The default\n * value is false.\n *\n * Note: Vertical pagination is not supported on Android.\n */\n pagingEnabled?: ?boolean,\n /**\n * When false, the view cannot be scrolled via touch interaction.\n * The default value is true.\n *\n * Note that the view can always be scrolled by calling `scrollTo`.\n */\n scrollEnabled?: ?boolean,\n /**\n * When true, shows a vertical scroll indicator.\n * The default value is true.\n */\n showsVerticalScrollIndicator?: ?boolean,\n /**\n * An array of child indices determining which children get docked to the\n * top of the screen when scrolling. For example, passing\n * `stickyHeaderIndices={[0]}` will cause the first child to be fixed to the\n * top of the scroll view. This property is not supported in conjunction\n * with `horizontal={true}`.\n */\n stickyHeaderIndices?: ?$ReadOnlyArray,\n /**\n * When set, causes the scroll view to stop at multiples of the value of\n * `snapToInterval`. This can be used for paginating through children\n * that have lengths smaller than the scroll view. Typically used in\n * combination with `snapToAlignment` and `decelerationRate=\"fast\"`.\n *\n * Overrides less configurable `pagingEnabled` prop.\n */\n snapToInterval?: ?number,\n /**\n * When set, causes the scroll view to stop at the defined offsets.\n * This can be used for paginating through variously sized children\n * that have lengths smaller than the scroll view. Typically used in\n * combination with `decelerationRate=\"fast\"`.\n *\n * Overrides less configurable `pagingEnabled` and `snapToInterval` props.\n */\n snapToOffsets?: ?$ReadOnlyArray,\n /**\n * Experimental: When true, offscreen child views (whose `overflow` value is\n * `hidden`) are removed from their native backing superview when offscreen.\n * This can improve scrolling performance on long lists. The default value is\n * true.\n */\n removeClippedSubviews?: ?boolean,\n /**\n * A RefreshControl component, used to provide pull-to-refresh\n * functionality for the ScrollView. Only works for vertical ScrollViews\n * (`horizontal` prop must be `false`).\n *\n * See [RefreshControl](docs/refreshcontrol.html).\n */\n refreshControl?: ?React.Element,\n style?: ?ViewStyleProp,\n children?: React.Node,\n|}>;\n\n/**\n * Component that wraps platform ScrollView while providing\n * integration with touch locking \"responder\" system.\n *\n * Keep in mind that ScrollViews must have a bounded height in order to work,\n * since they contain unbounded-height children into a bounded container (via\n * a scroll interaction). In order to bound the height of a ScrollView, either\n * set the height of the view directly (discouraged) or make sure all parent\n * views have bounded height. Forgetting to transfer `{flex: 1}` down the\n * view stack can lead to errors here, which the element inspector makes\n * easy to debug.\n *\n * Doesn't yet support other contained responders from blocking this scroll\n * view from becoming the responder.\n *\n *\n * `` vs [``](/react-native/docs/flatlist.html) - which one to use?\n *\n * `ScrollView` simply renders all its react child components at once. That\n * makes it very easy to understand and use.\n *\n * On the other hand, this has a performance downside. Imagine you have a very\n * long list of items you want to display, maybe several screens worth of\n * content. Creating JS components and native views for everything all at once,\n * much of which may not even be shown, will contribute to slow rendering and\n * increased memory usage.\n *\n * This is where `FlatList` comes into play. `FlatList` renders items lazily,\n * just when they are about to appear, and removes items that scroll way off\n * screen to save memory and processing time.\n *\n * `FlatList` is also handy if you want to render separators between your items,\n * multiple columns, infinite scroll loading, or any number of other features it\n * supports out of the box.\n */\nconst ScrollView = createReactClass({\n displayName: 'ScrollView',\n mixins: [ScrollResponder.Mixin],\n\n _scrollAnimatedValue: (new AnimatedImplementation.Value(\n 0,\n ): AnimatedImplementation.Value),\n _scrollAnimatedValueAttachment: (null: ?{detach: () => void}),\n _stickyHeaderRefs: (new Map(): Map),\n _headerLayoutYs: (new Map(): Map),\n getInitialState: function() {\n return {\n ...this.scrollResponderMixinGetInitialState(),\n layoutHeight: null,\n };\n },\n\n UNSAFE_componentWillMount: function() {\n this._scrollAnimatedValue = new AnimatedImplementation.Value(\n this.props.contentOffset ? this.props.contentOffset.y : 0,\n );\n this._scrollAnimatedValue.setOffset(\n this.props.contentInset ? this.props.contentInset.top : 0,\n );\n this._stickyHeaderRefs = new Map();\n this._headerLayoutYs = new Map();\n },\n\n componentDidMount: function() {\n this._updateAnimatedNodeAttachment();\n },\n\n componentDidUpdate: function() {\n this._updateAnimatedNodeAttachment();\n },\n\n componentWillUnmount: function() {\n if (this._scrollAnimatedValueAttachment) {\n this._scrollAnimatedValueAttachment.detach();\n }\n },\n\n setNativeProps: function(props: Object) {\n this._scrollViewRef && this._scrollViewRef.setNativeProps(props);\n },\n\n /**\n * Returns a reference to the underlying scroll responder, which supports\n * operations like `scrollTo`. All ScrollView-like components should\n * implement this method so that they can be composed while providing access\n * to the underlying scroll responder's methods.\n */\n getScrollResponder: function(): ScrollView {\n return this;\n },\n\n getScrollableNode: function(): any {\n return ReactNative.findNodeHandle(this._scrollViewRef);\n },\n\n getInnerViewNode: function(): any {\n return ReactNative.findNodeHandle(this._innerViewRef);\n },\n\n /**\n * Scrolls to a given x, y offset, either immediately or with a smooth animation.\n *\n * Example:\n *\n * `scrollTo({x: 0, y: 0, animated: true})`\n *\n * Note: The weird function signature is due to the fact that, for historical reasons,\n * the function also accepts separate arguments as an alternative to the options object.\n * This is deprecated due to ambiguity (y before x), and SHOULD NOT BE USED.\n */\n scrollTo: function(\n y?: number | {x?: number, y?: number, animated?: boolean},\n x?: number,\n animated?: boolean,\n ) {\n if (typeof y === 'number') {\n console.warn(\n '`scrollTo(y, x, animated)` is deprecated. Use `scrollTo({x: 5, y: 5, ' +\n 'animated: true})` instead.',\n );\n } else {\n ({x, y, animated} = y || {});\n }\n this.getScrollResponder().scrollResponderScrollTo({\n x: x || 0,\n y: y || 0,\n animated: animated !== false,\n });\n },\n\n /**\n * If this is a vertical ScrollView scrolls to the bottom.\n * If this is a horizontal ScrollView scrolls to the right.\n *\n * Use `scrollToEnd({animated: true})` for smooth animated scrolling,\n * `scrollToEnd({animated: false})` for immediate scrolling.\n * If no options are passed, `animated` defaults to true.\n */\n scrollToEnd: function(options?: {animated?: boolean}) {\n // Default to true\n const animated = (options && options.animated) !== false;\n this.getScrollResponder().scrollResponderScrollToEnd({\n animated: animated,\n });\n },\n\n /**\n * Deprecated, use `scrollTo` instead.\n */\n scrollWithoutAnimationTo: function(y: number = 0, x: number = 0) {\n console.warn(\n '`scrollWithoutAnimationTo` is deprecated. Use `scrollTo` instead',\n );\n this.scrollTo({x, y, animated: false});\n },\n\n /**\n * Displays the scroll indicators momentarily.\n *\n * @platform ios\n */\n flashScrollIndicators: function() {\n this.getScrollResponder().scrollResponderFlashScrollIndicators();\n },\n\n _getKeyForIndex: function(index, childArray) {\n // $FlowFixMe Invalid prop usage\n const child = childArray[index];\n return child && child.key;\n },\n\n _updateAnimatedNodeAttachment: function() {\n if (this._scrollAnimatedValueAttachment) {\n this._scrollAnimatedValueAttachment.detach();\n }\n if (\n this.props.stickyHeaderIndices &&\n this.props.stickyHeaderIndices.length > 0\n ) {\n this._scrollAnimatedValueAttachment = AnimatedImplementation.attachNativeEvent(\n this._scrollViewRef,\n 'onScroll',\n [{nativeEvent: {contentOffset: {y: this._scrollAnimatedValue}}}],\n );\n }\n },\n\n _setStickyHeaderRef: function(key, ref) {\n if (ref) {\n this._stickyHeaderRefs.set(key, ref);\n } else {\n this._stickyHeaderRefs.delete(key);\n }\n },\n\n _onStickyHeaderLayout: function(index, event, key) {\n if (!this.props.stickyHeaderIndices) {\n return;\n }\n const childArray = React.Children.toArray(this.props.children);\n if (key !== this._getKeyForIndex(index, childArray)) {\n // ignore stale layout update\n return;\n }\n\n const layoutY = event.nativeEvent.layout.y;\n this._headerLayoutYs.set(key, layoutY);\n\n const indexOfIndex = this.props.stickyHeaderIndices.indexOf(index);\n const previousHeaderIndex = this.props.stickyHeaderIndices[\n indexOfIndex - 1\n ];\n if (previousHeaderIndex != null) {\n const previousHeader = this._stickyHeaderRefs.get(\n this._getKeyForIndex(previousHeaderIndex, childArray),\n );\n previousHeader && previousHeader.setNextHeaderY(layoutY);\n }\n },\n\n _handleScroll: function(e: Object) {\n if (__DEV__) {\n if (\n this.props.onScroll &&\n this.props.scrollEventThrottle == null &&\n Platform.OS === 'ios'\n ) {\n console.log(\n 'You specified `onScroll` on a but not ' +\n '`scrollEventThrottle`. You will only receive one event. ' +\n 'Using `16` you get all the events but be aware that it may ' +\n \"cause frame drops, use a bigger number if you don't need as \" +\n 'much precision.',\n );\n }\n }\n if (Platform.OS === 'android') {\n if (\n this.props.keyboardDismissMode === 'on-drag' &&\n this.state.isTouching\n ) {\n dismissKeyboard();\n }\n }\n this.scrollResponderHandleScroll(e);\n },\n\n _handleLayout: function(e: Object) {\n if (this.props.invertStickyHeaders) {\n this.setState({layoutHeight: e.nativeEvent.layout.height});\n }\n if (this.props.onLayout) {\n this.props.onLayout(e);\n }\n },\n\n _handleContentOnLayout: function(e: Object) {\n const {width, height} = e.nativeEvent.layout;\n this.props.onContentSizeChange &&\n this.props.onContentSizeChange(width, height);\n },\n\n _scrollViewRef: (null: ?ScrollView),\n _setScrollViewRef: function(ref: ?ScrollView) {\n this._scrollViewRef = ref;\n },\n\n _innerViewRef: (null: ?NativeMethodsMixinType),\n _setInnerViewRef: function(ref: ?NativeMethodsMixinType) {\n this._innerViewRef = ref;\n },\n\n render: function() {\n let ScrollViewClass;\n let ScrollContentContainerViewClass;\n if (Platform.OS === 'android') {\n if (this.props.horizontal) {\n ScrollViewClass = AndroidHorizontalScrollView;\n ScrollContentContainerViewClass = AndroidHorizontalScrollContentView;\n } else {\n ScrollViewClass = AndroidScrollView;\n ScrollContentContainerViewClass = View;\n }\n } else {\n ScrollViewClass = RCTScrollView;\n ScrollContentContainerViewClass = RCTScrollContentView;\n }\n\n invariant(\n ScrollViewClass !== undefined,\n 'ScrollViewClass must not be undefined',\n );\n\n invariant(\n ScrollContentContainerViewClass !== undefined,\n 'ScrollContentContainerViewClass must not be undefined',\n );\n\n const contentContainerStyle = [\n this.props.horizontal && styles.contentContainerHorizontal,\n this.props.contentContainerStyle,\n ];\n if (__DEV__ && this.props.style) {\n const style = flattenStyle(this.props.style);\n const childLayoutProps = ['alignItems', 'justifyContent'].filter(\n prop => style && style[prop] !== undefined,\n );\n invariant(\n childLayoutProps.length === 0,\n 'ScrollView child layout (' +\n JSON.stringify(childLayoutProps) +\n ') must be applied through the contentContainerStyle prop.',\n );\n }\n\n let contentSizeChangeProps = {};\n if (this.props.onContentSizeChange) {\n contentSizeChangeProps = {\n onLayout: this._handleContentOnLayout,\n };\n }\n\n const {stickyHeaderIndices} = this.props;\n const hasStickyHeaders =\n stickyHeaderIndices && stickyHeaderIndices.length > 0;\n const childArray =\n hasStickyHeaders && React.Children.toArray(this.props.children);\n const children = hasStickyHeaders\n ? // $FlowFixMe Invalid prop usage\n childArray.map((child, index) => {\n const indexOfIndex = child ? stickyHeaderIndices.indexOf(index) : -1;\n if (indexOfIndex > -1) {\n const key = child.key;\n const nextIndex = stickyHeaderIndices[indexOfIndex + 1];\n return (\n this._setStickyHeaderRef(key, ref)}\n nextHeaderLayoutY={this._headerLayoutYs.get(\n this._getKeyForIndex(nextIndex, childArray),\n )}\n onLayout={event =>\n this._onStickyHeaderLayout(index, event, key)\n }\n scrollAnimatedValue={this._scrollAnimatedValue}\n inverted={this.props.invertStickyHeaders}\n scrollViewHeight={this.state.layoutHeight}>\n {child}\n \n );\n } else {\n return child;\n }\n })\n : this.props.children;\n const contentContainer = (\n \n {children}\n \n );\n\n const alwaysBounceHorizontal =\n this.props.alwaysBounceHorizontal !== undefined\n ? this.props.alwaysBounceHorizontal\n : this.props.horizontal;\n\n const alwaysBounceVertical =\n this.props.alwaysBounceVertical !== undefined\n ? this.props.alwaysBounceVertical\n : !this.props.horizontal;\n\n const DEPRECATED_sendUpdatedChildFrames = !!this.props\n .DEPRECATED_sendUpdatedChildFrames;\n\n const baseStyle = this.props.horizontal\n ? styles.baseHorizontal\n : styles.baseVertical;\n const props = {\n ...this.props,\n alwaysBounceHorizontal,\n alwaysBounceVertical,\n style: ([baseStyle, this.props.style]: ?Array),\n // Override the onContentSizeChange from props, since this event can\n // bubble up from TextInputs\n onContentSizeChange: null,\n onLayout: this._handleLayout,\n onMomentumScrollBegin: this.scrollResponderHandleMomentumScrollBegin,\n onMomentumScrollEnd: this.scrollResponderHandleMomentumScrollEnd,\n onResponderGrant: this.scrollResponderHandleResponderGrant,\n onResponderReject: this.scrollResponderHandleResponderReject,\n onResponderRelease: this.scrollResponderHandleResponderRelease,\n // $FlowFixMe\n onResponderTerminate: this.scrollResponderHandleTerminate,\n onResponderTerminationRequest: this\n .scrollResponderHandleTerminationRequest,\n onScroll: this._handleScroll,\n onScrollBeginDrag: this.scrollResponderHandleScrollBeginDrag,\n onScrollEndDrag: this.scrollResponderHandleScrollEndDrag,\n onScrollShouldSetResponder: this\n .scrollResponderHandleScrollShouldSetResponder,\n onStartShouldSetResponder: this\n .scrollResponderHandleStartShouldSetResponder,\n onStartShouldSetResponderCapture: this\n .scrollResponderHandleStartShouldSetResponderCapture,\n onTouchEnd: this.scrollResponderHandleTouchEnd,\n onTouchMove: this.scrollResponderHandleTouchMove,\n onTouchStart: this.scrollResponderHandleTouchStart,\n onTouchCancel: this.scrollResponderHandleTouchCancel,\n scrollBarThumbImage: resolveAssetSource(this.props.scrollBarThumbImage),\n scrollEventThrottle: hasStickyHeaders\n ? 1\n : this.props.scrollEventThrottle,\n sendMomentumEvents:\n this.props.onMomentumScrollBegin || this.props.onMomentumScrollEnd\n ? true\n : false,\n DEPRECATED_sendUpdatedChildFrames,\n // pagingEnabled is overridden by snapToInterval / snapToOffsets\n pagingEnabled: Platform.select({\n // on iOS, pagingEnabled must be set to false to have snapToInterval / snapToOffsets work\n ios:\n this.props.pagingEnabled &&\n this.props.snapToInterval == null &&\n this.props.snapToOffsets == null,\n // on Android, pagingEnabled must be set to true to have snapToInterval / snapToOffsets work\n android:\n this.props.pagingEnabled ||\n this.props.snapToInterval != null ||\n this.props.snapToOffsets != null,\n }),\n };\n\n const {decelerationRate} = this.props;\n if (decelerationRate != null) {\n props.decelerationRate = processDecelerationRate(decelerationRate);\n }\n\n const refreshControl = this.props.refreshControl;\n\n if (refreshControl) {\n if (Platform.OS === 'ios') {\n // On iOS the RefreshControl is a child of the ScrollView.\n // tvOS lacks native support for RefreshControl, so don't include it in that case\n return (\n \n {Platform.isTV ? null : refreshControl}\n {contentContainer}\n \n );\n } else if (Platform.OS === 'android') {\n // On Android wrap the ScrollView with a AndroidSwipeRefreshLayout.\n // Since the ScrollView is wrapped add the style props to the\n // AndroidSwipeRefreshLayout and use flex: 1 for the ScrollView.\n // Note: we should only apply props.style on the wrapper\n // however, the ScrollView still needs the baseStyle to be scrollable\n\n return React.cloneElement(\n refreshControl,\n {style: props.style},\n \n {contentContainer}\n ,\n );\n }\n }\n return (\n \n {contentContainer}\n \n );\n },\n});\n\nconst TypedScrollView = ((ScrollView: any): Class<\n InternalScrollViewType,\n>);\n\nconst styles = StyleSheet.create({\n baseVertical: {\n flexGrow: 1,\n flexShrink: 1,\n flexDirection: 'column',\n overflow: 'scroll',\n },\n baseHorizontal: {\n flexGrow: 1,\n flexShrink: 1,\n flexDirection: 'row',\n overflow: 'scroll',\n },\n contentContainerHorizontal: {\n flexDirection: 'row',\n },\n});\n\nmodule.exports = TypedScrollView;\n","/**\n * Copyright (c) 2015-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n * @flow\n */\n\n'use strict';\n\nconst Dimensions = require('Dimensions');\nconst FrameRateLogger = require('FrameRateLogger');\nconst Keyboard = require('Keyboard');\nconst ReactNative = require('ReactNative');\nconst Subscribable = require('Subscribable');\nconst TextInputState = require('TextInputState');\nconst UIManager = require('UIManager');\n\nconst invariant = require('fbjs/lib/invariant');\nconst nullthrows = require('fbjs/lib/nullthrows');\nconst performanceNow = require('fbjs/lib/performanceNow');\nconst warning = require('fbjs/lib/warning');\n\nconst {ScrollViewManager} = require('NativeModules');\n\n/**\n * Mixin that can be integrated in order to handle scrolling that plays well\n * with `ResponderEventPlugin`. Integrate with your platform specific scroll\n * views, or even your custom built (every-frame animating) scroll views so that\n * all of these systems play well with the `ResponderEventPlugin`.\n *\n * iOS scroll event timing nuances:\n * ===============================\n *\n *\n * Scrolling without bouncing, if you touch down:\n * -------------------------------\n *\n * 1. `onMomentumScrollBegin` (when animation begins after letting up)\n * ... physical touch starts ...\n * 2. `onTouchStartCapture` (when you press down to stop the scroll)\n * 3. `onTouchStart` (same, but bubble phase)\n * 4. `onResponderRelease` (when lifting up - you could pause forever before * lifting)\n * 5. `onMomentumScrollEnd`\n *\n *\n * Scrolling with bouncing, if you touch down:\n * -------------------------------\n *\n * 1. `onMomentumScrollBegin` (when animation begins after letting up)\n * ... bounce begins ...\n * ... some time elapses ...\n * ... physical touch during bounce ...\n * 2. `onMomentumScrollEnd` (Makes no sense why this occurs first during bounce)\n * 3. `onTouchStartCapture` (immediately after `onMomentumScrollEnd`)\n * 4. `onTouchStart` (same, but bubble phase)\n * 5. `onTouchEnd` (You could hold the touch start for a long time)\n * 6. `onMomentumScrollBegin` (When releasing the view starts bouncing back)\n *\n * So when we receive an `onTouchStart`, how can we tell if we are touching\n * *during* an animation (which then causes the animation to stop)? The only way\n * to tell is if the `touchStart` occurred immediately after the\n * `onMomentumScrollEnd`.\n *\n * This is abstracted out for you, so you can just call this.scrollResponderIsAnimating() if\n * necessary\n *\n * `ScrollResponder` also includes logic for blurring a currently focused input\n * if one is focused while scrolling. The `ScrollResponder` is a natural place\n * to put this logic since it can support not dismissing the keyboard while\n * scrolling, unless a recognized \"tap\"-like gesture has occurred.\n *\n * The public lifecycle API includes events for keyboard interaction, responder\n * interaction, and scrolling (among others). The keyboard callbacks\n * `onKeyboardWill/Did/*` are *global* events, but are invoked on scroll\n * responder's props so that you can guarantee that the scroll responder's\n * internal state has been updated accordingly (and deterministically) by\n * the time the props callbacks are invoke. Otherwise, you would always wonder\n * if the scroll responder is currently in a state where it recognizes new\n * keyboard positions etc. If coordinating scrolling with keyboard movement,\n * *always* use these hooks instead of listening to your own global keyboard\n * events.\n *\n * Public keyboard lifecycle API: (props callbacks)\n *\n * Standard Keyboard Appearance Sequence:\n *\n * this.props.onKeyboardWillShow\n * this.props.onKeyboardDidShow\n *\n * `onScrollResponderKeyboardDismissed` will be invoked if an appropriate\n * tap inside the scroll responder's scrollable region was responsible\n * for the dismissal of the keyboard. There are other reasons why the\n * keyboard could be dismissed.\n *\n * this.props.onScrollResponderKeyboardDismissed\n *\n * Standard Keyboard Hide Sequence:\n *\n * this.props.onKeyboardWillHide\n * this.props.onKeyboardDidHide\n */\n\nconst IS_ANIMATING_TOUCH_START_THRESHOLD_MS = 16;\n\ntype State = {\n isTouching: boolean,\n lastMomentumScrollBeginTime: number,\n lastMomentumScrollEndTime: number,\n observedScrollSinceBecomingResponder: boolean,\n becameResponderWhileAnimating: boolean,\n};\ntype Event = Object;\n\nconst ScrollResponderMixin = {\n mixins: [Subscribable.Mixin],\n scrollResponderMixinGetInitialState: function(): State {\n return {\n isTouching: false,\n lastMomentumScrollBeginTime: 0,\n lastMomentumScrollEndTime: 0,\n\n // Reset to false every time becomes responder. This is used to:\n // - Determine if the scroll view has been scrolled and therefore should\n // refuse to give up its responder lock.\n // - Determine if releasing should dismiss the keyboard when we are in\n // tap-to-dismiss mode (this.props.keyboardShouldPersistTaps !== 'always').\n observedScrollSinceBecomingResponder: false,\n becameResponderWhileAnimating: false,\n };\n },\n\n /**\n * Invoke this from an `onScroll` event.\n */\n scrollResponderHandleScrollShouldSetResponder: function(): boolean {\n return this.state.isTouching;\n },\n\n /**\n * Merely touch starting is not sufficient for a scroll view to become the\n * responder. Being the \"responder\" means that the very next touch move/end\n * event will result in an action/movement.\n *\n * Invoke this from an `onStartShouldSetResponder` event.\n *\n * `onStartShouldSetResponder` is used when the next move/end will trigger\n * some UI movement/action, but when you want to yield priority to views\n * nested inside of the view.\n *\n * There may be some cases where scroll views actually should return `true`\n * from `onStartShouldSetResponder`: Any time we are detecting a standard tap\n * that gives priority to nested views.\n *\n * - If a single tap on the scroll view triggers an action such as\n * recentering a map style view yet wants to give priority to interaction\n * views inside (such as dropped pins or labels), then we would return true\n * from this method when there is a single touch.\n *\n * - Similar to the previous case, if a two finger \"tap\" should trigger a\n * zoom, we would check the `touches` count, and if `>= 2`, we would return\n * true.\n *\n */\n scrollResponderHandleStartShouldSetResponder: function(e: Event): boolean {\n const currentlyFocusedTextInput = TextInputState.currentlyFocusedField();\n\n if (\n this.props.keyboardShouldPersistTaps === 'handled' &&\n currentlyFocusedTextInput != null &&\n e.target !== currentlyFocusedTextInput\n ) {\n return true;\n }\n return false;\n },\n\n /**\n * There are times when the scroll view wants to become the responder\n * (meaning respond to the next immediate `touchStart/touchEnd`), in a way\n * that *doesn't* give priority to nested views (hence the capture phase):\n *\n * - Currently animating.\n * - Tapping anywhere that is not a text input, while the keyboard is\n * up (which should dismiss the keyboard).\n *\n * Invoke this from an `onStartShouldSetResponderCapture` event.\n */\n scrollResponderHandleStartShouldSetResponderCapture: function(\n e: Event,\n ): boolean {\n // The scroll view should receive taps instead of its descendants if:\n // * it is already animating/decelerating\n if (this.scrollResponderIsAnimating()) {\n return true;\n }\n\n // * the keyboard is up, keyboardShouldPersistTaps is 'never' (the default),\n // and a new touch starts with a non-textinput target (in which case the\n // first tap should be sent to the scroll view and dismiss the keyboard,\n // then the second tap goes to the actual interior view)\n const currentlyFocusedTextInput = TextInputState.currentlyFocusedField();\n const {keyboardShouldPersistTaps} = this.props;\n const keyboardNeverPersistTaps =\n !keyboardShouldPersistTaps || keyboardShouldPersistTaps === 'never';\n if (\n keyboardNeverPersistTaps &&\n currentlyFocusedTextInput != null &&\n !TextInputState.isTextInput(e.target)\n ) {\n return true;\n }\n\n return false;\n },\n\n /**\n * Invoke this from an `onResponderReject` event.\n *\n * Some other element is not yielding its role as responder. Normally, we'd\n * just disable the `UIScrollView`, but a touch has already began on it, the\n * `UIScrollView` will not accept being disabled after that. The easiest\n * solution for now is to accept the limitation of disallowing this\n * altogether. To improve this, find a way to disable the `UIScrollView` after\n * a touch has already started.\n */\n scrollResponderHandleResponderReject: function() {},\n\n /**\n * We will allow the scroll view to give up its lock iff it acquired the lock\n * during an animation. This is a very useful default that happens to satisfy\n * many common user experiences.\n *\n * - Stop a scroll on the left edge, then turn that into an outer view's\n * backswipe.\n * - Stop a scroll mid-bounce at the top, continue pulling to have the outer\n * view dismiss.\n * - However, without catching the scroll view mid-bounce (while it is\n * motionless), if you drag far enough for the scroll view to become\n * responder (and therefore drag the scroll view a bit), any backswipe\n * navigation of a swipe gesture higher in the view hierarchy, should be\n * rejected.\n */\n scrollResponderHandleTerminationRequest: function(): boolean {\n return !this.state.observedScrollSinceBecomingResponder;\n },\n\n /**\n * Invoke this from an `onTouchEnd` event.\n *\n * @param {SyntheticEvent} e Event.\n */\n scrollResponderHandleTouchEnd: function(e: Event) {\n const nativeEvent = e.nativeEvent;\n this.state.isTouching = nativeEvent.touches.length !== 0;\n this.props.onTouchEnd && this.props.onTouchEnd(e);\n },\n\n /**\n * Invoke this from an `onTouchCancel` event.\n *\n * @param {SyntheticEvent} e Event.\n */\n scrollResponderHandleTouchCancel: function(e: Event) {\n this.state.isTouching = false;\n this.props.onTouchCancel && this.props.onTouchCancel(e);\n },\n\n /**\n * Invoke this from an `onResponderRelease` event.\n */\n scrollResponderHandleResponderRelease: function(e: Event) {\n this.props.onResponderRelease && this.props.onResponderRelease(e);\n\n // By default scroll views will unfocus a textField\n // if another touch occurs outside of it\n const currentlyFocusedTextInput = TextInputState.currentlyFocusedField();\n if (\n this.props.keyboardShouldPersistTaps !== true &&\n this.props.keyboardShouldPersistTaps !== 'always' &&\n currentlyFocusedTextInput != null &&\n e.target !== currentlyFocusedTextInput &&\n !this.state.observedScrollSinceBecomingResponder &&\n !this.state.becameResponderWhileAnimating\n ) {\n this.props.onScrollResponderKeyboardDismissed &&\n this.props.onScrollResponderKeyboardDismissed(e);\n TextInputState.blurTextInput(currentlyFocusedTextInput);\n }\n },\n\n scrollResponderHandleScroll: function(e: Event) {\n this.state.observedScrollSinceBecomingResponder = true;\n this.props.onScroll && this.props.onScroll(e);\n },\n\n /**\n * Invoke this from an `onResponderGrant` event.\n */\n scrollResponderHandleResponderGrant: function(e: Event) {\n this.state.observedScrollSinceBecomingResponder = false;\n this.props.onResponderGrant && this.props.onResponderGrant(e);\n this.state.becameResponderWhileAnimating = this.scrollResponderIsAnimating();\n },\n\n /**\n * Unfortunately, `onScrollBeginDrag` also fires when *stopping* the scroll\n * animation, and there's not an easy way to distinguish a drag vs. stopping\n * momentum.\n *\n * Invoke this from an `onScrollBeginDrag` event.\n */\n scrollResponderHandleScrollBeginDrag: function(e: Event) {\n FrameRateLogger.beginScroll(); // TODO: track all scrolls after implementing onScrollEndAnimation\n this.props.onScrollBeginDrag && this.props.onScrollBeginDrag(e);\n },\n\n /**\n * Invoke this from an `onScrollEndDrag` event.\n */\n scrollResponderHandleScrollEndDrag: function(e: Event) {\n const {velocity} = e.nativeEvent;\n // - If we are animating, then this is a \"drag\" that is stopping the scrollview and momentum end\n // will fire.\n // - If velocity is non-zero, then the interaction will stop when momentum scroll ends or\n // another drag starts and ends.\n // - If we don't get velocity, better to stop the interaction twice than not stop it.\n if (\n !this.scrollResponderIsAnimating() &&\n (!velocity || (velocity.x === 0 && velocity.y === 0))\n ) {\n FrameRateLogger.endScroll();\n }\n this.props.onScrollEndDrag && this.props.onScrollEndDrag(e);\n },\n\n /**\n * Invoke this from an `onMomentumScrollBegin` event.\n */\n scrollResponderHandleMomentumScrollBegin: function(e: Event) {\n this.state.lastMomentumScrollBeginTime = performanceNow();\n this.props.onMomentumScrollBegin && this.props.onMomentumScrollBegin(e);\n },\n\n /**\n * Invoke this from an `onMomentumScrollEnd` event.\n */\n scrollResponderHandleMomentumScrollEnd: function(e: Event) {\n FrameRateLogger.endScroll();\n this.state.lastMomentumScrollEndTime = performanceNow();\n this.props.onMomentumScrollEnd && this.props.onMomentumScrollEnd(e);\n },\n\n /**\n * Invoke this from an `onTouchStart` event.\n *\n * Since we know that the `SimpleEventPlugin` occurs later in the plugin\n * order, after `ResponderEventPlugin`, we can detect that we were *not*\n * permitted to be the responder (presumably because a contained view became\n * responder). The `onResponderReject` won't fire in that case - it only\n * fires when a *current* responder rejects our request.\n *\n * @param {SyntheticEvent} e Touch Start event.\n */\n scrollResponderHandleTouchStart: function(e: Event) {\n this.state.isTouching = true;\n this.props.onTouchStart && this.props.onTouchStart(e);\n },\n\n /**\n * Invoke this from an `onTouchMove` event.\n *\n * Since we know that the `SimpleEventPlugin` occurs later in the plugin\n * order, after `ResponderEventPlugin`, we can detect that we were *not*\n * permitted to be the responder (presumably because a contained view became\n * responder). The `onResponderReject` won't fire in that case - it only\n * fires when a *current* responder rejects our request.\n *\n * @param {SyntheticEvent} e Touch Start event.\n */\n scrollResponderHandleTouchMove: function(e: Event) {\n this.props.onTouchMove && this.props.onTouchMove(e);\n },\n\n /**\n * A helper function for this class that lets us quickly determine if the\n * view is currently animating. This is particularly useful to know when\n * a touch has just started or ended.\n */\n scrollResponderIsAnimating: function(): boolean {\n const now = performanceNow();\n const timeSinceLastMomentumScrollEnd =\n now - this.state.lastMomentumScrollEndTime;\n const isAnimating =\n timeSinceLastMomentumScrollEnd < IS_ANIMATING_TOUCH_START_THRESHOLD_MS ||\n this.state.lastMomentumScrollEndTime <\n this.state.lastMomentumScrollBeginTime;\n return isAnimating;\n },\n\n /**\n * Returns the node that represents native view that can be scrolled.\n * Components can pass what node to use by defining a `getScrollableNode`\n * function otherwise `this` is used.\n */\n scrollResponderGetScrollableNode: function(): any {\n return this.getScrollableNode\n ? this.getScrollableNode()\n : ReactNative.findNodeHandle(this);\n },\n\n /**\n * A helper function to scroll to a specific point in the ScrollView.\n * This is currently used to help focus child TextViews, but can also\n * be used to quickly scroll to any element we want to focus. Syntax:\n *\n * `scrollResponderScrollTo(options: {x: number = 0; y: number = 0; animated: boolean = true})`\n *\n * Note: The weird argument signature is due to the fact that, for historical reasons,\n * the function also accepts separate arguments as as alternative to the options object.\n * This is deprecated due to ambiguity (y before x), and SHOULD NOT BE USED.\n */\n scrollResponderScrollTo: function(\n x?: number | {x?: number, y?: number, animated?: boolean},\n y?: number,\n animated?: boolean,\n ) {\n if (typeof x === 'number') {\n console.warn(\n '`scrollResponderScrollTo(x, y, animated)` is deprecated. Use `scrollResponderScrollTo({x: 5, y: 5, animated: true})` instead.',\n );\n } else {\n ({x, y, animated} = x || {});\n }\n UIManager.dispatchViewManagerCommand(\n nullthrows(this.scrollResponderGetScrollableNode()),\n UIManager.RCTScrollView.Commands.scrollTo,\n [x || 0, y || 0, animated !== false],\n );\n },\n\n /**\n * Scrolls to the end of the ScrollView, either immediately or with a smooth\n * animation.\n *\n * Example:\n *\n * `scrollResponderScrollToEnd({animated: true})`\n */\n scrollResponderScrollToEnd: function(options?: {animated?: boolean}) {\n // Default to true\n const animated = (options && options.animated) !== false;\n UIManager.dispatchViewManagerCommand(\n this.scrollResponderGetScrollableNode(),\n UIManager.RCTScrollView.Commands.scrollToEnd,\n [animated],\n );\n },\n\n /**\n * Deprecated, do not use.\n */\n scrollResponderScrollWithoutAnimationTo: function(\n offsetX: number,\n offsetY: number,\n ) {\n console.warn(\n '`scrollResponderScrollWithoutAnimationTo` is deprecated. Use `scrollResponderScrollTo` instead',\n );\n this.scrollResponderScrollTo({x: offsetX, y: offsetY, animated: false});\n },\n\n /**\n * A helper function to zoom to a specific rect in the scrollview. The argument has the shape\n * {x: number; y: number; width: number; height: number; animated: boolean = true}\n *\n * @platform ios\n */\n scrollResponderZoomTo: function(\n rect: {|\n x: number,\n y: number,\n width: number,\n height: number,\n animated?: boolean,\n |},\n animated?: boolean, // deprecated, put this inside the rect argument instead\n ) {\n invariant(\n ScrollViewManager && ScrollViewManager.zoomToRect,\n 'zoomToRect is not implemented',\n );\n if ('animated' in rect) {\n animated = rect.animated;\n delete rect.animated;\n } else if (typeof animated !== 'undefined') {\n console.warn(\n '`scrollResponderZoomTo` `animated` argument is deprecated. Use `options.animated` instead',\n );\n }\n ScrollViewManager.zoomToRect(\n this.scrollResponderGetScrollableNode(),\n rect,\n animated !== false,\n );\n },\n\n /**\n * Displays the scroll indicators momentarily.\n */\n scrollResponderFlashScrollIndicators: function() {\n UIManager.dispatchViewManagerCommand(\n this.scrollResponderGetScrollableNode(),\n UIManager.RCTScrollView.Commands.flashScrollIndicators,\n [],\n );\n },\n\n /**\n * This method should be used as the callback to onFocus in a TextInputs'\n * parent view. Note that any module using this mixin needs to return\n * the parent view's ref in getScrollViewRef() in order to use this method.\n * @param {any} nodeHandle The TextInput node handle\n * @param {number} additionalOffset The scroll view's bottom \"contentInset\".\n * Default is 0.\n * @param {bool} preventNegativeScrolling Whether to allow pulling the content\n * down to make it meet the keyboard's top. Default is false.\n */\n scrollResponderScrollNativeHandleToKeyboard: function(\n nodeHandle: any,\n additionalOffset?: number,\n preventNegativeScrollOffset?: boolean,\n ) {\n this.additionalScrollOffset = additionalOffset || 0;\n this.preventNegativeScrollOffset = !!preventNegativeScrollOffset;\n UIManager.measureLayout(\n nodeHandle,\n ReactNative.findNodeHandle(this.getInnerViewNode()),\n this.scrollResponderTextInputFocusError,\n this.scrollResponderInputMeasureAndScrollToKeyboard,\n );\n },\n\n /**\n * The calculations performed here assume the scroll view takes up the entire\n * screen - even if has some content inset. We then measure the offsets of the\n * keyboard, and compensate both for the scroll view's \"contentInset\".\n *\n * @param {number} left Position of input w.r.t. table view.\n * @param {number} top Position of input w.r.t. table view.\n * @param {number} width Width of the text input.\n * @param {number} height Height of the text input.\n */\n scrollResponderInputMeasureAndScrollToKeyboard: function(\n left: number,\n top: number,\n width: number,\n height: number,\n ) {\n let keyboardScreenY = Dimensions.get('window').height;\n if (this.keyboardWillOpenTo) {\n keyboardScreenY = this.keyboardWillOpenTo.endCoordinates.screenY;\n }\n let scrollOffsetY =\n top - keyboardScreenY + height + this.additionalScrollOffset;\n\n // By default, this can scroll with negative offset, pulling the content\n // down so that the target component's bottom meets the keyboard's top.\n // If requested otherwise, cap the offset at 0 minimum to avoid content\n // shifting down.\n if (this.preventNegativeScrollOffset) {\n scrollOffsetY = Math.max(0, scrollOffsetY);\n }\n this.scrollResponderScrollTo({x: 0, y: scrollOffsetY, animated: true});\n\n this.additionalOffset = 0;\n this.preventNegativeScrollOffset = false;\n },\n\n scrollResponderTextInputFocusError: function(e: Event) {\n console.error('Error measuring text field: ', e);\n },\n\n /**\n * `componentWillMount` is the closest thing to a standard \"constructor\" for\n * React components.\n *\n * The `keyboardWillShow` is called before input focus.\n */\n UNSAFE_componentWillMount: function() {\n const {keyboardShouldPersistTaps} = this.props;\n warning(\n typeof keyboardShouldPersistTaps !== 'boolean',\n `'keyboardShouldPersistTaps={${keyboardShouldPersistTaps}}' is deprecated. ` +\n `Use 'keyboardShouldPersistTaps=\"${\n keyboardShouldPersistTaps ? 'always' : 'never'\n }\"' instead`,\n );\n\n this.keyboardWillOpenTo = null;\n this.additionalScrollOffset = 0;\n this.addListenerOn(\n Keyboard,\n 'keyboardWillShow',\n this.scrollResponderKeyboardWillShow,\n );\n this.addListenerOn(\n Keyboard,\n 'keyboardWillHide',\n this.scrollResponderKeyboardWillHide,\n );\n this.addListenerOn(\n Keyboard,\n 'keyboardDidShow',\n this.scrollResponderKeyboardDidShow,\n );\n this.addListenerOn(\n Keyboard,\n 'keyboardDidHide',\n this.scrollResponderKeyboardDidHide,\n );\n },\n\n /**\n * Warning, this may be called several times for a single keyboard opening.\n * It's best to store the information in this method and then take any action\n * at a later point (either in `keyboardDidShow` or other).\n *\n * Here's the order that events occur in:\n * - focus\n * - willShow {startCoordinates, endCoordinates} several times\n * - didShow several times\n * - blur\n * - willHide {startCoordinates, endCoordinates} several times\n * - didHide several times\n *\n * The `ScrollResponder` module callbacks for each of these events.\n * Even though any user could have easily listened to keyboard events\n * themselves, using these `props` callbacks ensures that ordering of events\n * is consistent - and not dependent on the order that the keyboard events are\n * subscribed to. This matters when telling the scroll view to scroll to where\n * the keyboard is headed - the scroll responder better have been notified of\n * the keyboard destination before being instructed to scroll to where the\n * keyboard will be. Stick to the `ScrollResponder` callbacks, and everything\n * will work.\n *\n * WARNING: These callbacks will fire even if a keyboard is displayed in a\n * different navigation pane. Filter out the events to determine if they are\n * relevant to you. (For example, only if you receive these callbacks after\n * you had explicitly focused a node etc).\n */\n scrollResponderKeyboardWillShow: function(e: Event) {\n this.keyboardWillOpenTo = e;\n this.props.onKeyboardWillShow && this.props.onKeyboardWillShow(e);\n },\n\n scrollResponderKeyboardWillHide: function(e: Event) {\n this.keyboardWillOpenTo = null;\n this.props.onKeyboardWillHide && this.props.onKeyboardWillHide(e);\n },\n\n scrollResponderKeyboardDidShow: function(e: Event) {\n // TODO(7693961): The event for DidShow is not available on iOS yet.\n // Use the one from WillShow and do not assign.\n if (e) {\n this.keyboardWillOpenTo = e;\n }\n this.props.onKeyboardDidShow && this.props.onKeyboardDidShow(e);\n },\n\n scrollResponderKeyboardDidHide: function(e: Event) {\n this.keyboardWillOpenTo = null;\n this.props.onKeyboardDidHide && this.props.onKeyboardDidHide(e);\n },\n};\n\nconst ScrollResponder = {\n Mixin: ScrollResponderMixin,\n};\n\nmodule.exports = ScrollResponder;\n","/**\n * Copyright (c) 2015-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n * @flow strict-local\n */\n\n'use strict';\n\nconst NativeModules = require('NativeModules');\n\nconst invariant = require('fbjs/lib/invariant');\n\n/**\n * Flow API for native FrameRateLogger module. If the native module is not installed, function calls\n * are just no-ops.\n *\n * Typical behavior is that `setContext` is called when a new screen is loaded (e.g. via a\n * navigation integration), and then `beginScroll` is called by `ScrollResponder` at which point the\n * native module then begins tracking frame drops. When `ScrollResponder` calls `endScroll`, the\n * native module gathers up all it's frame drop data and reports it via an analytics pipeline for\n * analysis.\n *\n * Note that `beginScroll` may be called multiple times by `ScrollResponder` - unclear if that's a\n * bug, but the native module should be robust to that.\n *\n * In the future we may add support for tracking frame drops in other types of interactions beyond\n * scrolling.\n */\nconst FrameRateLogger = {\n /**\n * Enable `debug` to see local logs of what's going on. `reportStackTraces` will grab stack traces\n * during UI thread stalls and upload them if the native module supports it.\n */\n setGlobalOptions: function(options: {\n debug?: boolean,\n reportStackTraces?: boolean,\n }) {\n if (options.debug !== undefined) {\n invariant(\n NativeModules.FrameRateLogger,\n 'Trying to debug FrameRateLogger without the native module!',\n );\n }\n if (NativeModules.FrameRateLogger) {\n // Freeze the object to avoid the prepack warning (PP0017) about leaking\n // unfrozen objects.\n // Needs to clone the object first to avoid modifying the argument.\n const optionsClone = {\n debug: !!options.debug,\n reportStackTraces: !!options.reportStackTraces,\n };\n Object.freeze(optionsClone);\n Object.seal(optionsClone);\n NativeModules.FrameRateLogger.setGlobalOptions(optionsClone);\n }\n },\n\n /**\n * Must call `setContext` before any events can be properly tracked, which is done automatically\n * in `AppRegistry`, but navigation is also a common place to hook in.\n */\n setContext: function(context: string) {\n NativeModules.FrameRateLogger &&\n NativeModules.FrameRateLogger.setContext(context);\n },\n\n /**\n * Called in `ScrollResponder` so any component that uses that module will handle this\n * automatically.\n */\n beginScroll() {\n NativeModules.FrameRateLogger &&\n NativeModules.FrameRateLogger.beginScroll();\n },\n\n /**\n * Called in `ScrollResponder` so any component that uses that module will handle this\n * automatically.\n */\n endScroll() {\n NativeModules.FrameRateLogger && NativeModules.FrameRateLogger.endScroll();\n },\n};\n\nmodule.exports = FrameRateLogger;\n","/**\n * Copyright (c) 2015-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n * @flow\n */\n\n'use strict';\n\nconst LayoutAnimation = require('LayoutAnimation');\nconst invariant = require('fbjs/lib/invariant');\nconst NativeEventEmitter = require('NativeEventEmitter');\nconst KeyboardObserver = require('NativeModules').KeyboardObserver;\nconst dismissKeyboard = require('dismissKeyboard');\nconst KeyboardEventEmitter = new NativeEventEmitter(KeyboardObserver);\n\ntype KeyboardEventName =\n | 'keyboardWillShow'\n | 'keyboardDidShow'\n | 'keyboardWillHide'\n | 'keyboardDidHide'\n | 'keyboardWillChangeFrame'\n | 'keyboardDidChangeFrame';\n\ntype ScreenRect = $ReadOnly<{|\n screenX: number,\n screenY: number,\n width: number,\n height: number,\n|}>;\n\nexport type KeyboardEvent = $ReadOnly<{|\n duration?: number,\n easing?: string,\n endCoordinates: ScreenRect,\n startCoordinates?: ScreenRect,\n|}>;\n\ntype KeyboardEventListener = (e: KeyboardEvent) => void;\n\n// The following object exists for documentation purposes\n// Actual work happens in\n// https://github.com/facebook/react-native/blob/master/Libraries/EventEmitter/NativeEventEmitter.js\n\n/**\n * `Keyboard` module to control keyboard events.\n *\n * ### Usage\n *\n * The Keyboard module allows you to listen for native events and react to them, as\n * well as make changes to the keyboard, like dismissing it.\n *\n *```\n * import React, { Component } from 'react';\n * import { Keyboard, TextInput } from 'react-native';\n *\n * class Example extends Component {\n * componentWillMount () {\n * this.keyboardDidShowListener = Keyboard.addListener('keyboardDidShow', this._keyboardDidShow);\n * this.keyboardDidHideListener = Keyboard.addListener('keyboardDidHide', this._keyboardDidHide);\n * }\n *\n * componentWillUnmount () {\n * this.keyboardDidShowListener.remove();\n * this.keyboardDidHideListener.remove();\n * }\n *\n * _keyboardDidShow () {\n * alert('Keyboard Shown');\n * }\n *\n * _keyboardDidHide () {\n * alert('Keyboard Hidden');\n * }\n *\n * render() {\n * return (\n * \n * );\n * }\n * }\n *```\n */\n\nlet Keyboard = {\n /**\n * The `addListener` function connects a JavaScript function to an identified native\n * keyboard notification event.\n *\n * This function then returns the reference to the listener.\n *\n * @param {string} eventName The `nativeEvent` is the string that identifies the event you're listening for. This\n *can be any of the following:\n *\n * - `keyboardWillShow`\n * - `keyboardDidShow`\n * - `keyboardWillHide`\n * - `keyboardDidHide`\n * - `keyboardWillChangeFrame`\n * - `keyboardDidChangeFrame`\n *\n * Note that if you set `android:windowSoftInputMode` to `adjustResize` or `adjustNothing`,\n * only `keyboardDidShow` and `keyboardDidHide` events will be available on Android.\n * `keyboardWillShow` as well as `keyboardWillHide` are generally not available on Android\n * since there is no native corresponding event.\n *\n * @param {function} callback function to be called when the event fires.\n */\n addListener(eventName: KeyboardEventName, callback: KeyboardEventListener) {\n invariant(false, 'Dummy method used for documentation');\n },\n\n /**\n * Removes a specific listener.\n *\n * @param {string} eventName The `nativeEvent` is the string that identifies the event you're listening for.\n * @param {function} callback function to be called when the event fires.\n */\n removeListener(eventName: KeyboardEventName, callback: Function) {\n invariant(false, 'Dummy method used for documentation');\n },\n\n /**\n * Removes all listeners for a specific event type.\n *\n * @param {string} eventType The native event string listeners are watching which will be removed.\n */\n removeAllListeners(eventName: KeyboardEventName) {\n invariant(false, 'Dummy method used for documentation');\n },\n\n /**\n * Dismisses the active keyboard and removes focus.\n */\n dismiss() {\n invariant(false, 'Dummy method used for documentation');\n },\n\n /**\n * Useful for syncing TextInput (or other keyboard accessory view) size of\n * position changes with keyboard movements.\n */\n scheduleLayoutAnimation(event: KeyboardEvent) {\n invariant(false, 'Dummy method used for documentation');\n },\n};\n\n// Throw away the dummy object and reassign it to original module\nKeyboard = KeyboardEventEmitter;\nKeyboard.dismiss = dismissKeyboard;\nKeyboard.scheduleLayoutAnimation = function(event: KeyboardEvent) {\n const {duration, easing} = event;\n if (duration) {\n LayoutAnimation.configureNext({\n duration: duration,\n update: {\n duration: duration,\n type: (easing && LayoutAnimation.Types[easing]) || 'keyboard',\n },\n });\n }\n};\n\nmodule.exports = Keyboard;\n","/**\n * Copyright (c) 2015-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @flow\n * @format\n */\n'use strict';\n\nconst PropTypes = require('prop-types');\nconst UIManager = require('UIManager');\n\n/* $FlowFixMe(>=0.54.0 site=react_native_oss) This comment suppresses an error\n * found when Flow v0.54 was deployed. To see the error delete this comment and\n * run Flow. */\nconst keyMirror = require('fbjs/lib/keyMirror');\n\nconst {checkPropTypes} = PropTypes;\n\nconst TypesEnum = {\n spring: true,\n linear: true,\n easeInEaseOut: true,\n easeIn: true,\n easeOut: true,\n keyboard: true,\n};\nconst Types = keyMirror(TypesEnum);\n\nconst PropertiesEnum = {\n opacity: true,\n scaleX: true,\n scaleY: true,\n scaleXY: true,\n};\nconst Properties = keyMirror(PropertiesEnum);\n\nconst animType = PropTypes.shape({\n duration: PropTypes.number,\n delay: PropTypes.number,\n springDamping: PropTypes.number,\n initialVelocity: PropTypes.number,\n type: PropTypes.oneOf(Object.keys(Types)).isRequired,\n property: PropTypes.oneOf(\n // Only applies to create/delete\n Object.keys(Properties),\n ),\n});\n\ntype Anim = {\n duration?: number,\n delay?: number,\n springDamping?: number,\n initialVelocity?: number,\n type?: $Enum,\n property?: $Enum,\n};\n\nconst configType = PropTypes.shape({\n duration: PropTypes.number.isRequired,\n create: animType,\n update: animType,\n delete: animType,\n});\n\ntype Config = {\n duration: number,\n create?: Anim,\n update?: Anim,\n delete?: Anim,\n};\n\nfunction checkConfig(config: Config, location: string, name: string) {\n checkPropTypes({config: configType}, {config}, location, name);\n}\n\nfunction configureNext(config: Config, onAnimationDidEnd?: Function) {\n if (__DEV__) {\n checkConfig(config, 'config', 'LayoutAnimation.configureNext');\n }\n UIManager.configureNextLayoutAnimation(\n config,\n onAnimationDidEnd || function() {},\n function() {\n /* unused */\n },\n );\n}\n\nfunction create(duration: number, type, creationProp): Config {\n return {\n duration,\n create: {\n type,\n property: creationProp,\n },\n update: {\n type,\n },\n delete: {\n type,\n property: creationProp,\n },\n };\n}\n\nconst Presets = {\n easeInEaseOut: create(300, Types.easeInEaseOut, Properties.opacity),\n linear: create(500, Types.linear, Properties.opacity),\n spring: {\n duration: 700,\n create: {\n type: Types.linear,\n property: Properties.opacity,\n },\n update: {\n type: Types.spring,\n springDamping: 0.4,\n },\n delete: {\n type: Types.linear,\n property: Properties.opacity,\n },\n },\n};\n\n/**\n * Automatically animates views to their new positions when the\n * next layout happens.\n *\n * A common way to use this API is to call it before calling `setState`.\n *\n * Note that in order to get this to work on **Android** you need to set the following flags via `UIManager`:\n *\n * UIManager.setLayoutAnimationEnabledExperimental && UIManager.setLayoutAnimationEnabledExperimental(true);\n */\nconst LayoutAnimation = {\n /**\n * Schedules an animation to happen on the next layout.\n *\n * @param config Specifies animation properties:\n *\n * - `duration` in milliseconds\n * - `create`, config for animating in new views (see `Anim` type)\n * - `update`, config for animating views that have been updated\n * (see `Anim` type)\n *\n * @param onAnimationDidEnd Called when the animation finished.\n * Only supported on iOS.\n * @param onError Called on error. Only supported on iOS.\n */\n configureNext,\n /**\n * Helper for creating a config for `configureNext`.\n */\n create,\n Types,\n Properties,\n checkConfig,\n Presets,\n easeInEaseOut: configureNext.bind(null, Presets.easeInEaseOut),\n linear: configureNext.bind(null, Presets.linear),\n spring: configureNext.bind(null, Presets.spring),\n};\n\nmodule.exports = LayoutAnimation;\n","/**\n * Copyright (c) 2015-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n *\n * This function dismisses the currently-open keyboard, if any\n *\n * @flow strict-local\n * @format\n */\n\n'use strict';\n\nconst TextInputState = require('TextInputState');\n\nfunction dismissKeyboard() {\n TextInputState.blurTextInput(TextInputState.currentlyFocusedField());\n}\n\nmodule.exports = dismissKeyboard;\n","/**\n * Copyright (c) 2015-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n * @flow\n */\n\n'use strict';\n\nimport type EventEmitter from 'EventEmitter';\n\n/**\n * Subscribable provides a mixin for safely subscribing a component to an\n * eventEmitter\n *\n * This will be replaced with the observe interface that will be coming soon to\n * React Core\n */\n\nconst Subscribable = {};\n\nSubscribable.Mixin = {\n UNSAFE_componentWillMount: function() {\n this._subscribableSubscriptions = [];\n },\n\n componentWillUnmount: function() {\n // This null check is a fix for a broken version of uglify-es. Should be deleted eventually\n // https://github.com/facebook/react-native/issues/17348\n this._subscribableSubscriptions &&\n this._subscribableSubscriptions.forEach(subscription =>\n subscription.remove(),\n );\n this._subscribableSubscriptions = null;\n },\n\n /**\n * Special form of calling `addListener` that *guarantees* that a\n * subscription *must* be tied to a component instance, and therefore will\n * be cleaned up when the component is unmounted. It is impossible to create\n * the subscription and pass it in - this method must be the one to create\n * the subscription and therefore can guarantee it is retained in a way that\n * will be cleaned up.\n *\n * @param {EventEmitter} eventEmitter emitter to subscribe to.\n * @param {string} eventType Type of event to listen to.\n * @param {function} listener Function to invoke when event occurs.\n * @param {object} context Object to use as listener context.\n */\n addListenerOn: function(\n eventEmitter: EventEmitter,\n eventType: string,\n listener: Function,\n context: Object,\n ) {\n this._subscribableSubscriptions.push(\n eventEmitter.addListener(eventType, listener, context),\n );\n },\n};\n\nmodule.exports = Subscribable;\n","/**\n * Copyright (c) 2015-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @flow\n * @format\n */\n'use strict';\n\nconst AnimatedImplementation = require('AnimatedImplementation');\nconst React = require('React');\nconst StyleSheet = require('StyleSheet');\nconst View = require('View');\n\nimport type {LayoutEvent} from 'CoreEventTypes';\n\nconst AnimatedView = AnimatedImplementation.createAnimatedComponent(View);\n\ntype Props = {\n children?: React.Element,\n nextHeaderLayoutY: ?number,\n onLayout: (event: LayoutEvent) => void,\n scrollAnimatedValue: AnimatedImplementation.Value,\n // Will cause sticky headers to stick at the bottom of the ScrollView instead\n // of the top.\n inverted: ?boolean,\n // The height of the parent ScrollView. Currently only set when inverted.\n scrollViewHeight: ?number,\n};\n\ntype State = {\n measured: boolean,\n layoutY: number,\n layoutHeight: number,\n nextHeaderLayoutY: ?number,\n};\n\nclass ScrollViewStickyHeader extends React.Component {\n state = {\n measured: false,\n layoutY: 0,\n layoutHeight: 0,\n nextHeaderLayoutY: this.props.nextHeaderLayoutY,\n };\n\n setNextHeaderY(y: number) {\n this.setState({nextHeaderLayoutY: y});\n }\n\n _onLayout = event => {\n this.setState({\n measured: true,\n layoutY: event.nativeEvent.layout.y,\n layoutHeight: event.nativeEvent.layout.height,\n });\n\n this.props.onLayout(event);\n const child = React.Children.only(this.props.children);\n if (child.props.onLayout) {\n child.props.onLayout(event);\n }\n };\n\n render() {\n const {inverted, scrollViewHeight} = this.props;\n const {measured, layoutHeight, layoutY, nextHeaderLayoutY} = this.state;\n const inputRange: Array = [-1, 0];\n const outputRange: Array = [0, 0];\n\n if (measured) {\n if (inverted) {\n // The interpolation looks like:\n // - Negative scroll: no translation\n // - `stickStartPoint` is the point at which the header will start sticking.\n // It is calculated using the ScrollView viewport height so it is a the bottom.\n // - Headers that are in the initial viewport will never stick, `stickStartPoint`\n // will be negative.\n // - From 0 to `stickStartPoint` no translation. This will cause the header\n // to scroll normally until it reaches the top of the scroll view.\n // - From `stickStartPoint` to when the next header y hits the bottom edge of the header: translate\n // equally to scroll. This will cause the header to stay at the top of the scroll view.\n // - Past the collision with the next header y: no more translation. This will cause the\n // header to continue scrolling up and make room for the next sticky header.\n // In the case that there is no next header just translate equally to\n // scroll indefinitely.\n if (scrollViewHeight != null) {\n const stickStartPoint = layoutY + layoutHeight - scrollViewHeight;\n if (stickStartPoint > 0) {\n inputRange.push(stickStartPoint);\n outputRange.push(0);\n inputRange.push(stickStartPoint + 1);\n outputRange.push(1);\n // If the next sticky header has not loaded yet (probably windowing) or is the last\n // we can just keep it sticked forever.\n const collisionPoint =\n (nextHeaderLayoutY || 0) - layoutHeight - scrollViewHeight;\n if (collisionPoint > stickStartPoint) {\n inputRange.push(collisionPoint, collisionPoint + 1);\n outputRange.push(\n collisionPoint - stickStartPoint,\n collisionPoint - stickStartPoint,\n );\n }\n }\n }\n } else {\n // The interpolation looks like:\n // - Negative scroll: no translation\n // - From 0 to the y of the header: no translation. This will cause the header\n // to scroll normally until it reaches the top of the scroll view.\n // - From header y to when the next header y hits the bottom edge of the header: translate\n // equally to scroll. This will cause the header to stay at the top of the scroll view.\n // - Past the collision with the next header y: no more translation. This will cause the\n // header to continue scrolling up and make room for the next sticky header.\n // In the case that there is no next header just translate equally to\n // scroll indefinitely.\n inputRange.push(layoutY);\n outputRange.push(0);\n // If the next sticky header has not loaded yet (probably windowing) or is the last\n // we can just keep it sticked forever.\n const collisionPoint = (nextHeaderLayoutY || 0) - layoutHeight;\n if (collisionPoint >= layoutY) {\n inputRange.push(collisionPoint, collisionPoint + 1);\n outputRange.push(collisionPoint - layoutY, collisionPoint - layoutY);\n } else {\n inputRange.push(layoutY + 1);\n outputRange.push(1);\n }\n }\n }\n\n const translateY = this.props.scrollAnimatedValue.interpolate({\n inputRange,\n outputRange,\n });\n const child = React.Children.only(this.props.children);\n\n return (\n \n {React.cloneElement(child, {\n style: styles.fill, // We transfer the child style to the wrapper.\n onLayout: undefined, // we call this manually through our this._onLayout\n })}\n \n );\n }\n}\n\nconst styles = StyleSheet.create({\n header: {\n zIndex: 10,\n },\n fill: {\n flex: 1,\n },\n});\n\nmodule.exports = ScrollViewStickyHeader;\n","/**\n * Copyright (c) 2015-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n * @flow\n */\n\nconst ReactNative = require('ReactNative');\n\n// This class is purely a facsimile of ScrollView so that we can\n// properly type it with Flow before migrating ScrollView off of\n// createReactClass. If there are things missing here that are in\n// ScrollView, that is unintentional.\nclass InternalScrollViewType extends ReactNative.NativeComponent {\n scrollTo(\n y?: number | {x?: number, y?: number, animated?: boolean},\n x?: number,\n animated?: boolean,\n ) {}\n\n flashScrollIndicators() {}\n propTypes: empty;\n scrollToEnd(options?: ?{animated?: boolean}) {}\n scrollWithoutAnimationTo(y: number = 0, x: number = 0) {}\n\n getScrollResponder(): any {}\n getScrollableNode(): any {}\n getInnerViewNode(): any {}\n\n scrollResponderScrollNativeHandleToKeyboard(\n nodeHandle: any,\n additionalOffset?: number,\n preventNegativeScrollOffset?: boolean,\n ) {}\n\n scrollResponderScrollTo(\n x?: number | {x?: number, y?: number, animated?: boolean},\n y?: number,\n animated?: boolean,\n ) {}\n}\n\nmodule.exports = InternalScrollViewType;\n","/**\n * Copyright (c) 2015-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n * @flow\n */\n\n'use strict';\n\nconst Platform = require('Platform');\n\nfunction processDecelerationRate(\n decelerationRate: number | 'normal' | 'fast',\n): number {\n if (decelerationRate === 'normal') {\n return Platform.select({\n ios: 0.998,\n android: 0.985,\n });\n } else if (decelerationRate === 'fast') {\n return Platform.select({\n ios: 0.99,\n android: 0.9,\n });\n }\n return decelerationRate;\n}\n\nmodule.exports = processDecelerationRate;\n","/**\n * Copyright (c) 2015-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n * @flow\n */\n\n'use strict';\n\nconst React = require('React');\n\nconst PropTypes = require('prop-types');\n\nclass StaticRenderer extends React.Component<{\n shouldUpdate: boolean,\n render: Function,\n}> {\n static propTypes = {\n shouldUpdate: PropTypes.bool.isRequired,\n render: PropTypes.func.isRequired,\n };\n\n shouldComponentUpdate(nextProps: {shouldUpdate: boolean}): boolean {\n return nextProps.shouldUpdate;\n }\n\n render(): React.Node {\n return this.props.render();\n }\n}\n\nmodule.exports = StaticRenderer;\n","'use strict';\n\nconst React = require('react');\n\nfunction cloneReferencedElement(element, config, ...children) {\n let cloneRef = config.ref;\n let originalRef = element.ref;\n if (originalRef == null || cloneRef == null) {\n return React.cloneElement(element, config, ...children);\n }\n\n if (typeof originalRef !== 'function') {\n if (__DEV__) {\n console.warn(\n 'Cloning an element with a ref that will be overwritten because it ' +\n 'is not a function. Use a composable callback-style ref instead. ' +\n 'Ignoring ref: ' + originalRef,\n );\n }\n return React.cloneElement(element, config, ...children);\n }\n\n return React.cloneElement(element, {\n ...config,\n ref(component) {\n cloneRef(component);\n originalRef(component);\n },\n }, ...children);\n}\n\nmodule.exports = cloneReferencedElement;\n","/**\n * Copyright (c) 2015-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n * @flow\n */\n\n'use strict';\n\nconst Platform = require('Platform');\nconst React = require('React');\nconst {NativeComponent} = require('ReactNative');\n\nconst requireNativeComponent = require('requireNativeComponent');\nconst nullthrows = require('fbjs/lib/nullthrows');\n\nimport type {ColorValue} from 'StyleSheetTypes';\nimport type {ViewProps} from 'ViewPropTypes';\n\nif (Platform.OS === 'android') {\n const AndroidSwipeRefreshLayout = require('UIManager')\n .AndroidSwipeRefreshLayout;\n var RefreshLayoutConsts = AndroidSwipeRefreshLayout\n ? AndroidSwipeRefreshLayout.Constants\n : {SIZE: {}};\n} else {\n var RefreshLayoutConsts = {SIZE: {}};\n}\ntype NativeRefreshControlType = Class>;\n\nconst NativeRefreshControl: NativeRefreshControlType =\n Platform.OS === 'ios'\n ? (requireNativeComponent('RCTRefreshControl'): any)\n : (requireNativeComponent('AndroidSwipeRefreshLayout'): any);\n\ntype IOSProps = $ReadOnly<{|\n /**\n * The color of the refresh indicator.\n */\n tintColor?: ?ColorValue,\n /**\n * Title color.\n */\n titleColor?: ?ColorValue,\n /**\n * The title displayed under the refresh indicator.\n */\n title?: ?string,\n|}>;\n\ntype AndroidProps = $ReadOnly<{|\n /**\n * Whether the pull to refresh functionality is enabled.\n */\n enabled?: ?boolean,\n /**\n * The colors (at least one) that will be used to draw the refresh indicator.\n */\n colors?: ?$ReadOnlyArray,\n /**\n * The background color of the refresh indicator.\n */\n progressBackgroundColor?: ?ColorValue,\n /**\n * Size of the refresh indicator, see RefreshControl.SIZE.\n */\n size?: ?(\n | typeof RefreshLayoutConsts.SIZE.DEFAULT\n | typeof RefreshLayoutConsts.SIZE.LARGE\n ),\n /**\n * Progress view top offset\n */\n progressViewOffset?: ?number,\n|}>;\n\nexport type RefreshControlProps = $ReadOnly<{|\n ...ViewProps,\n ...IOSProps,\n ...AndroidProps,\n\n /**\n * Called when the view starts refreshing.\n */\n onRefresh?: ?Function,\n\n /**\n * Whether the view should be indicating an active refresh.\n */\n refreshing: boolean,\n|}>;\n\n/**\n * This component is used inside a ScrollView or ListView to add pull to refresh\n * functionality. When the ScrollView is at `scrollY: 0`, swiping down\n * triggers an `onRefresh` event.\n *\n * ### Usage example\n *\n * ``` js\n * class RefreshableList extends Component {\n * constructor(props) {\n * super(props);\n * this.state = {\n * refreshing: false,\n * };\n * }\n *\n * _onRefresh() {\n * this.setState({refreshing: true});\n * fetchData().then(() => {\n * this.setState({refreshing: false});\n * });\n * }\n *\n * render() {\n * return (\n * \n * }\n * ...\n * >\n * ...\n * \n * );\n * }\n * ...\n * }\n * ```\n *\n * __Note:__ `refreshing` is a controlled prop, this is why it needs to be set to true\n * in the `onRefresh` function otherwise the refresh indicator will stop immediately.\n */\nclass RefreshControl extends React.Component {\n static SIZE = RefreshLayoutConsts.SIZE;\n\n _nativeRef: ?React.ElementRef = null;\n _lastNativeRefreshing = false;\n\n componentDidMount() {\n this._lastNativeRefreshing = this.props.refreshing;\n }\n\n componentDidUpdate(prevProps: RefreshControlProps) {\n // RefreshControl is a controlled component so if the native refreshing\n // value doesn't match the current js refreshing prop update it to\n // the js value.\n if (this.props.refreshing !== prevProps.refreshing) {\n this._lastNativeRefreshing = this.props.refreshing;\n } else if (this.props.refreshing !== this._lastNativeRefreshing) {\n nullthrows(this._nativeRef).setNativeProps({\n refreshing: this.props.refreshing,\n });\n this._lastNativeRefreshing = this.props.refreshing;\n }\n }\n\n render() {\n return (\n {\n this._nativeRef = ref;\n }}\n onRefresh={this._onRefresh}\n />\n );\n }\n\n _onRefresh = () => {\n this._lastNativeRefreshing = true;\n\n this.props.onRefresh && this.props.onRefresh();\n\n // The native component will start refreshing so force an update to\n // make sure it stays in sync with the js component.\n this.forceUpdate();\n };\n}\n\nmodule.exports = RefreshControl;\n","/**\n * Copyright (c) 2015-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @flow\n * @format\n */\n'use strict';\n\nconst Batchinator = require('Batchinator');\nconst FillRateHelper = require('FillRateHelper');\nconst PropTypes = require('prop-types');\nconst React = require('React');\nconst ReactNative = require('ReactNative');\nconst RefreshControl = require('RefreshControl');\nconst ScrollView = require('ScrollView');\nconst StyleSheet = require('StyleSheet');\nconst UIManager = require('UIManager');\nconst View = require('View');\nconst ViewabilityHelper = require('ViewabilityHelper');\n\nconst flattenStyle = require('flattenStyle');\nconst infoLog = require('infoLog');\nconst invariant = require('fbjs/lib/invariant');\n/* $FlowFixMe(>=0.54.0 site=react_native_oss) This comment suppresses an error\n * found when Flow v0.54 was deployed. To see the error delete this comment and\n * run Flow. */\nconst warning = require('fbjs/lib/warning');\n\nconst {computeWindowedRenderLimits} = require('VirtualizeUtils');\n\nimport type {DangerouslyImpreciseStyleProp, ViewStyleProp} from 'StyleSheet';\nimport type {\n ViewabilityConfig,\n ViewToken,\n ViewabilityConfigCallbackPair,\n} from 'ViewabilityHelper';\n\ntype Item = any;\n\nexport type renderItemType = (info: any) => ?React.Element;\n\ntype ViewabilityHelperCallbackTuple = {\n viewabilityHelper: ViewabilityHelper,\n onViewableItemsChanged: (info: {\n viewableItems: Array,\n changed: Array,\n }) => void,\n};\n\ntype RequiredProps = {\n // TODO: Conflicts with the optional `renderItem` in\n // `VirtualizedSectionList`'s props.\n renderItem: $FlowFixMe,\n /**\n * The default accessor functions assume this is an Array<{key: string}> but you can override\n * getItem, getItemCount, and keyExtractor to handle any type of index-based data.\n */\n data?: any,\n /**\n * A generic accessor for extracting an item from any sort of data blob.\n */\n getItem: (data: any, index: number) => ?Item,\n /**\n * Determines how many items are in the data blob.\n */\n getItemCount: (data: any) => number,\n};\ntype OptionalProps = {\n /**\n * `debug` will turn on extra logging and visual overlays to aid with debugging both usage and\n * implementation, but with a significant perf hit.\n */\n debug?: ?boolean,\n /**\n * DEPRECATED: Virtualization provides significant performance and memory optimizations, but fully\n * unmounts react instances that are outside of the render window. You should only need to disable\n * this for debugging purposes.\n */\n disableVirtualization: boolean,\n /**\n * A marker property for telling the list to re-render (since it implements `PureComponent`). If\n * any of your `renderItem`, Header, Footer, etc. functions depend on anything outside of the\n * `data` prop, stick it here and treat it immutably.\n */\n extraData?: any,\n getItemLayout?: (\n data: any,\n index: number,\n ) => {length: number, offset: number, index: number}, // e.g. height, y\n horizontal?: ?boolean,\n /**\n * How many items to render in the initial batch. This should be enough to fill the screen but not\n * much more. Note these items will never be unmounted as part of the windowed rendering in order\n * to improve perceived performance of scroll-to-top actions.\n */\n initialNumToRender: number,\n /**\n * Instead of starting at the top with the first item, start at `initialScrollIndex`. This\n * disables the \"scroll to top\" optimization that keeps the first `initialNumToRender` items\n * always rendered and immediately renders the items starting at this initial index. Requires\n * `getItemLayout` to be implemented.\n */\n initialScrollIndex?: ?number,\n /**\n * Reverses the direction of scroll. Uses scale transforms of -1.\n */\n inverted?: ?boolean,\n keyExtractor: (item: Item, index: number) => string,\n /**\n * Each cell is rendered using this element. Can be a React Component Class,\n * or a render function. Defaults to using View.\n */\n CellRendererComponent?: ?React.ComponentType,\n /**\n * Rendered when the list is empty. Can be a React Component Class, a render function, or\n * a rendered element.\n */\n ListEmptyComponent?: ?(React.ComponentType | React.Element),\n /**\n * Rendered at the bottom of all the items. Can be a React Component Class, a render function, or\n * a rendered element.\n */\n ListFooterComponent?: ?(React.ComponentType | React.Element),\n /**\n * Styling for internal View for ListFooterComponent\n */\n ListFooterComponentStyle?: ViewStyleProp,\n /**\n * Rendered at the top of all the items. Can be a React Component Class, a render function, or\n * a rendered element.\n */\n ListHeaderComponent?: ?(React.ComponentType | React.Element),\n /**\n * Styling for internal View for ListHeaderComponent\n */\n ListHeaderComponentStyle?: ViewStyleProp,\n /**\n * A unique identifier for this list. If there are multiple VirtualizedLists at the same level of\n * nesting within another VirtualizedList, this key is necessary for virtualization to\n * work properly.\n */\n listKey?: string,\n /**\n * The maximum number of items to render in each incremental render batch. The more rendered at\n * once, the better the fill rate, but responsiveness my suffer because rendering content may\n * interfere with responding to button taps or other interactions.\n */\n maxToRenderPerBatch: number,\n onEndReached?: ?(info: {distanceFromEnd: number}) => void,\n onEndReachedThreshold?: ?number, // units of visible length\n onLayout?: ?Function,\n /**\n * If provided, a standard RefreshControl will be added for \"Pull to Refresh\" functionality. Make\n * sure to also set the `refreshing` prop correctly.\n */\n onRefresh?: ?Function,\n /**\n * Used to handle failures when scrolling to an index that has not been measured yet. Recommended\n * action is to either compute your own offset and `scrollTo` it, or scroll as far as possible and\n * then try again after more items have been rendered.\n */\n onScrollToIndexFailed?: ?(info: {\n index: number,\n highestMeasuredFrameIndex: number,\n averageItemLength: number,\n }) => void,\n /**\n * Called when the viewability of rows changes, as defined by the\n * `viewabilityConfig` prop.\n */\n onViewableItemsChanged?: ?(info: {\n viewableItems: Array,\n changed: Array,\n }) => void,\n /**\n * Set this when offset is needed for the loading indicator to show correctly.\n * @platform android\n */\n progressViewOffset?: number,\n /**\n * A custom refresh control element. When set, it overrides the default\n * component built internally. The onRefresh and refreshing\n * props are also ignored. Only works for vertical VirtualizedList.\n */\n refreshControl?: ?React.Element,\n /**\n * Set this true while waiting for new data from a refresh.\n */\n refreshing?: ?boolean,\n /**\n * Note: may have bugs (missing content) in some circumstances - use at your own risk.\n *\n * This may improve scroll performance for large lists.\n */\n removeClippedSubviews?: boolean,\n /**\n * Render a custom scroll component, e.g. with a differently styled `RefreshControl`.\n */\n renderScrollComponent?: (props: Object) => React.Element,\n /**\n * Amount of time between low-pri item render batches, e.g. for rendering items quite a ways off\n * screen. Similar fill rate/responsiveness tradeoff as `maxToRenderPerBatch`.\n */\n updateCellsBatchingPeriod: number,\n viewabilityConfig?: ViewabilityConfig,\n /**\n * List of ViewabilityConfig/onViewableItemsChanged pairs. A specific onViewableItemsChanged\n * will be called when its corresponding ViewabilityConfig's conditions are met.\n */\n viewabilityConfigCallbackPairs?: Array,\n /**\n * Determines the maximum number of items rendered outside of the visible area, in units of\n * visible lengths. So if your list fills the screen, then `windowSize={21}` (the default) will\n * render the visible screen area plus up to 10 screens above and 10 below the viewport. Reducing\n * this number will reduce memory consumption and may improve performance, but will increase the\n * chance that fast scrolling may reveal momentary blank areas of unrendered content.\n */\n windowSize: number,\n};\n/* $FlowFixMe - this Props seems to be missing a bunch of stuff. Remove this\n * comment to see the errors */\nexport type Props = RequiredProps & OptionalProps;\n\nlet _usedIndexForKey = false;\nlet _keylessItemComponentName: string = '';\n\ntype Frame = {\n offset: number,\n length: number,\n index: number,\n inLayout: boolean,\n};\n\ntype ChildListState = {\n first: number,\n last: number,\n frames: {[key: number]: Frame},\n};\n\ntype State = {first: number, last: number};\n\n/**\n * Base implementation for the more convenient [``](/react-native/docs/flatlist.html)\n * and [``](/react-native/docs/sectionlist.html) components, which are also better\n * documented. In general, this should only really be used if you need more flexibility than\n * `FlatList` provides, e.g. for use with immutable data instead of plain arrays.\n *\n * Virtualization massively improves memory consumption and performance of large lists by\n * maintaining a finite render window of active items and replacing all items outside of the render\n * window with appropriately sized blank space. The window adapts to scrolling behavior, and items\n * are rendered incrementally with low-pri (after any running interactions) if they are far from the\n * visible area, or with hi-pri otherwise to minimize the potential of seeing blank space.\n *\n * Some caveats:\n *\n * - Internal state is not preserved when content scrolls out of the render window. Make sure all\n * your data is captured in the item data or external stores like Flux, Redux, or Relay.\n * - This is a `PureComponent` which means that it will not re-render if `props` remain shallow-\n * equal. Make sure that everything your `renderItem` function depends on is passed as a prop\n * (e.g. `extraData`) that is not `===` after updates, otherwise your UI may not update on\n * changes. This includes the `data` prop and parent component state.\n * - In order to constrain memory and enable smooth scrolling, content is rendered asynchronously\n * offscreen. This means it's possible to scroll faster than the fill rate ands momentarily see\n * blank content. This is a tradeoff that can be adjusted to suit the needs of each application,\n * and we are working on improving it behind the scenes.\n * - By default, the list looks for a `key` prop on each item and uses that for the React key.\n * Alternatively, you can provide a custom `keyExtractor` prop.\n *\n */\nclass VirtualizedList extends React.PureComponent {\n props: Props;\n\n // scrollToEnd may be janky without getItemLayout prop\n scrollToEnd(params?: ?{animated?: ?boolean}) {\n const animated = params ? params.animated : true;\n const veryLast = this.props.getItemCount(this.props.data) - 1;\n const frame = this._getFrameMetricsApprox(veryLast);\n const offset = Math.max(\n 0,\n frame.offset +\n frame.length +\n this._footerLength -\n this._scrollMetrics.visibleLength,\n );\n /* $FlowFixMe(>=0.53.0 site=react_native_fb,react_native_oss) This comment\n * suppresses an error when upgrading Flow's support for React. To see the\n * error delete this comment and run Flow. */\n this._scrollRef.scrollTo(\n /* $FlowFixMe(>=0.53.0 site=react_native_fb,react_native_oss) This\n * comment suppresses an error when upgrading Flow's support for React.\n * To see the error delete this comment and run Flow. */\n this.props.horizontal ? {x: offset, animated} : {y: offset, animated},\n );\n }\n\n // scrollToIndex may be janky without getItemLayout prop\n scrollToIndex(params: {\n animated?: ?boolean,\n index: number,\n viewOffset?: number,\n viewPosition?: number,\n }) {\n const {\n data,\n horizontal,\n getItemCount,\n getItemLayout,\n onScrollToIndexFailed,\n } = this.props;\n const {animated, index, viewOffset, viewPosition} = params;\n invariant(\n index >= 0 && index < getItemCount(data),\n `scrollToIndex out of range: ${index} vs ${getItemCount(data) - 1}`,\n );\n if (!getItemLayout && index > this._highestMeasuredFrameIndex) {\n invariant(\n !!onScrollToIndexFailed,\n 'scrollToIndex should be used in conjunction with getItemLayout or onScrollToIndexFailed, ' +\n 'otherwise there is no way to know the location of offscreen indices or handle failures.',\n );\n onScrollToIndexFailed({\n averageItemLength: this._averageCellLength,\n highestMeasuredFrameIndex: this._highestMeasuredFrameIndex,\n index,\n });\n return;\n }\n const frame = this._getFrameMetricsApprox(index);\n const offset =\n Math.max(\n 0,\n frame.offset -\n (viewPosition || 0) *\n (this._scrollMetrics.visibleLength - frame.length),\n ) - (viewOffset || 0);\n /* $FlowFixMe(>=0.53.0 site=react_native_fb,react_native_oss) This comment\n * suppresses an error when upgrading Flow's support for React. To see the\n * error delete this comment and run Flow. */\n this._scrollRef.scrollTo(\n /* $FlowFixMe(>=0.53.0 site=react_native_fb,react_native_oss) This\n * comment suppresses an error when upgrading Flow's support for React.\n * To see the error delete this comment and run Flow. */\n horizontal ? {x: offset, animated} : {y: offset, animated},\n );\n }\n\n // scrollToItem may be janky without getItemLayout prop. Required linear scan through items -\n // use scrollToIndex instead if possible.\n scrollToItem(params: {\n animated?: ?boolean,\n item: Item,\n viewPosition?: number,\n }) {\n const {item} = params;\n const {data, getItem, getItemCount} = this.props;\n const itemCount = getItemCount(data);\n for (let index = 0; index < itemCount; index++) {\n if (getItem(data, index) === item) {\n this.scrollToIndex({...params, index});\n break;\n }\n }\n }\n\n /**\n * Scroll to a specific content pixel offset in the list.\n *\n * Param `offset` expects the offset to scroll to.\n * In case of `horizontal` is true, the offset is the x-value,\n * in any other case the offset is the y-value.\n *\n * Param `animated` (`true` by default) defines whether the list\n * should do an animation while scrolling.\n */\n scrollToOffset(params: {animated?: ?boolean, offset: number}) {\n const {animated, offset} = params;\n /* $FlowFixMe(>=0.53.0 site=react_native_fb,react_native_oss) This comment\n * suppresses an error when upgrading Flow's support for React. To see the\n * error delete this comment and run Flow. */\n this._scrollRef.scrollTo(\n /* $FlowFixMe(>=0.53.0 site=react_native_fb,react_native_oss) This\n * comment suppresses an error when upgrading Flow's support for React.\n * To see the error delete this comment and run Flow. */\n this.props.horizontal ? {x: offset, animated} : {y: offset, animated},\n );\n }\n\n recordInteraction() {\n this._nestedChildLists.forEach(childList => {\n childList.ref && childList.ref.recordInteraction();\n });\n this._viewabilityTuples.forEach(t => {\n t.viewabilityHelper.recordInteraction();\n });\n this._updateViewableItems(this.props.data);\n }\n\n flashScrollIndicators() {\n /* $FlowFixMe(>=0.53.0 site=react_native_fb,react_native_oss) This comment\n * suppresses an error when upgrading Flow's support for React. To see the\n * error delete this comment and run Flow. */\n this._scrollRef.flashScrollIndicators();\n }\n\n /**\n * Provides a handle to the underlying scroll responder.\n * Note that `this._scrollRef` might not be a `ScrollView`, so we\n * need to check that it responds to `getScrollResponder` before calling it.\n */\n getScrollResponder() {\n if (this._scrollRef && this._scrollRef.getScrollResponder) {\n return this._scrollRef.getScrollResponder();\n }\n }\n\n getScrollableNode() {\n if (this._scrollRef && this._scrollRef.getScrollableNode) {\n return this._scrollRef.getScrollableNode();\n } else {\n return ReactNative.findNodeHandle(this._scrollRef);\n }\n }\n\n setNativeProps(props: Object) {\n if (this._scrollRef) {\n this._scrollRef.setNativeProps(props);\n }\n }\n\n static defaultProps = {\n disableVirtualization: false,\n horizontal: false,\n initialNumToRender: 10,\n keyExtractor: (item: Item, index: number) => {\n if (item.key != null) {\n return item.key;\n }\n _usedIndexForKey = true;\n if (item.type && item.type.displayName) {\n _keylessItemComponentName = item.type.displayName;\n }\n return String(index);\n },\n maxToRenderPerBatch: 10,\n onEndReachedThreshold: 2, // multiples of length\n scrollEventThrottle: 50,\n updateCellsBatchingPeriod: 50,\n windowSize: 21, // multiples of length\n };\n\n static contextTypes = {\n virtualizedCell: PropTypes.shape({\n cellKey: PropTypes.string,\n }),\n virtualizedList: PropTypes.shape({\n getScrollMetrics: PropTypes.func,\n horizontal: PropTypes.bool,\n getOutermostParentListRef: PropTypes.func,\n getNestedChildState: PropTypes.func,\n registerAsNestedChild: PropTypes.func,\n unregisterAsNestedChild: PropTypes.func,\n }),\n };\n\n static childContextTypes = {\n virtualizedList: PropTypes.shape({\n getScrollMetrics: PropTypes.func,\n horizontal: PropTypes.bool,\n getOutermostParentListRef: PropTypes.func,\n getNestedChildState: PropTypes.func,\n registerAsNestedChild: PropTypes.func,\n unregisterAsNestedChild: PropTypes.func,\n }),\n };\n\n getChildContext() {\n return {\n virtualizedList: {\n getScrollMetrics: this._getScrollMetrics,\n horizontal: this.props.horizontal,\n getOutermostParentListRef: this._getOutermostParentListRef,\n getNestedChildState: this._getNestedChildState,\n registerAsNestedChild: this._registerAsNestedChild,\n unregisterAsNestedChild: this._unregisterAsNestedChild,\n },\n };\n }\n\n _getCellKey(): string {\n return (\n (this.context.virtualizedCell && this.context.virtualizedCell.cellKey) ||\n 'rootList'\n );\n }\n\n _getScrollMetrics = () => {\n return this._scrollMetrics;\n };\n\n hasMore(): boolean {\n return this._hasMore;\n }\n\n _getOutermostParentListRef = () => {\n if (this._isNestedWithSameOrientation()) {\n return this.context.virtualizedList.getOutermostParentListRef();\n } else {\n return this;\n }\n };\n\n _getNestedChildState = (key: string): ?ChildListState => {\n const existingChildData = this._nestedChildLists.get(key);\n return existingChildData && existingChildData.state;\n };\n\n _registerAsNestedChild = (childList: {\n cellKey: string,\n key: string,\n ref: VirtualizedList,\n }): ?ChildListState => {\n // Register the mapping between this child key and the cellKey for its cell\n const childListsInCell =\n this._cellKeysToChildListKeys.get(childList.cellKey) || new Set();\n childListsInCell.add(childList.key);\n this._cellKeysToChildListKeys.set(childList.cellKey, childListsInCell);\n\n const existingChildData = this._nestedChildLists.get(childList.key);\n invariant(\n !(existingChildData && existingChildData.ref !== null),\n 'A VirtualizedList contains a cell which itself contains ' +\n 'more than one VirtualizedList of the same orientation as the parent ' +\n 'list. You must pass a unique listKey prop to each sibling list.',\n );\n this._nestedChildLists.set(childList.key, {\n ref: childList.ref,\n state: null,\n });\n\n if (this._hasInteracted) {\n childList.ref.recordInteraction();\n }\n };\n\n _unregisterAsNestedChild = (childList: {\n key: string,\n state: ChildListState,\n }): void => {\n this._nestedChildLists.set(childList.key, {\n ref: null,\n state: childList.state,\n });\n };\n\n state: State;\n\n constructor(props: Props, context: Object) {\n super(props, context);\n invariant(\n !props.onScroll || !props.onScroll.__isNative,\n 'Components based on VirtualizedList must be wrapped with Animated.createAnimatedComponent ' +\n 'to support native onScroll events with useNativeDriver',\n );\n\n invariant(\n props.windowSize > 0,\n 'VirtualizedList: The windowSize prop must be present and set to a value greater than 0.',\n );\n\n this._fillRateHelper = new FillRateHelper(this._getFrameMetrics);\n this._updateCellsToRenderBatcher = new Batchinator(\n this._updateCellsToRender,\n this.props.updateCellsBatchingPeriod,\n );\n\n if (this.props.viewabilityConfigCallbackPairs) {\n this._viewabilityTuples = this.props.viewabilityConfigCallbackPairs.map(\n pair => ({\n viewabilityHelper: new ViewabilityHelper(pair.viewabilityConfig),\n onViewableItemsChanged: pair.onViewableItemsChanged,\n }),\n );\n } else if (this.props.onViewableItemsChanged) {\n this._viewabilityTuples.push({\n viewabilityHelper: new ViewabilityHelper(this.props.viewabilityConfig),\n onViewableItemsChanged: this.props.onViewableItemsChanged,\n });\n }\n\n let initialState = {\n first: this.props.initialScrollIndex || 0,\n last:\n Math.min(\n this.props.getItemCount(this.props.data),\n (this.props.initialScrollIndex || 0) + this.props.initialNumToRender,\n ) - 1,\n };\n\n if (this._isNestedWithSameOrientation()) {\n const storedState = this.context.virtualizedList.getNestedChildState(\n this.props.listKey || this._getCellKey(),\n );\n if (storedState) {\n initialState = storedState;\n this.state = storedState;\n this._frames = storedState.frames;\n }\n }\n\n this.state = initialState;\n }\n\n componentDidMount() {\n if (this._isNestedWithSameOrientation()) {\n this.context.virtualizedList.registerAsNestedChild({\n cellKey: this._getCellKey(),\n key: this.props.listKey || this._getCellKey(),\n ref: this,\n });\n }\n }\n\n componentWillUnmount() {\n if (this._isNestedWithSameOrientation()) {\n this.context.virtualizedList.unregisterAsNestedChild({\n key: this.props.listKey || this._getCellKey(),\n state: {\n first: this.state.first,\n last: this.state.last,\n frames: this._frames,\n },\n });\n }\n this._updateViewableItems(null);\n this._updateCellsToRenderBatcher.dispose({abort: true});\n this._viewabilityTuples.forEach(tuple => {\n tuple.viewabilityHelper.dispose();\n });\n this._fillRateHelper.deactivateAndFlush();\n }\n\n static getDerivedStateFromProps(newProps: Props, prevState: State) {\n const {data, extraData, getItemCount, maxToRenderPerBatch} = newProps;\n // first and last could be stale (e.g. if a new, shorter items props is passed in), so we make\n // sure we're rendering a reasonable range here.\n return {\n first: Math.max(\n 0,\n Math.min(prevState.first, getItemCount(data) - 1 - maxToRenderPerBatch),\n ),\n last: Math.max(0, Math.min(prevState.last, getItemCount(data) - 1)),\n };\n }\n\n _pushCells(\n cells: Array,\n stickyHeaderIndices: Array,\n stickyIndicesFromProps: Set,\n first: number,\n last: number,\n inversionStyle: ?DangerouslyImpreciseStyleProp,\n ) {\n const {\n CellRendererComponent,\n ItemSeparatorComponent,\n data,\n getItem,\n getItemCount,\n horizontal,\n keyExtractor,\n } = this.props;\n const stickyOffset = this.props.ListHeaderComponent ? 1 : 0;\n const end = getItemCount(data) - 1;\n let prevCellKey;\n last = Math.min(end, last);\n for (let ii = first; ii <= last; ii++) {\n const item = getItem(data, ii);\n const key = keyExtractor(item, ii);\n this._indicesToKeys.set(ii, key);\n if (stickyIndicesFromProps.has(ii + stickyOffset)) {\n stickyHeaderIndices.push(cells.length);\n }\n cells.push(\n this._onCellLayout(e, key, ii)}\n onUnmount={this._onCellUnmount}\n parentProps={this.props}\n ref={ref => {\n this._cellRefs[key] = ref;\n }}\n />,\n );\n prevCellKey = key;\n }\n }\n\n _onUpdateSeparators = (keys: Array, newProps: Object) => {\n keys.forEach(key => {\n const ref = key != null && this._cellRefs[key];\n ref && ref.updateSeparatorProps(newProps);\n });\n };\n\n _isVirtualizationDisabled(): boolean {\n return this.props.disableVirtualization;\n }\n\n _isNestedWithSameOrientation(): boolean {\n const nestedContext = this.context.virtualizedList;\n return !!(\n nestedContext && !!nestedContext.horizontal === !!this.props.horizontal\n );\n }\n\n render() {\n if (__DEV__) {\n const flatStyles = flattenStyle(this.props.contentContainerStyle);\n warning(\n flatStyles == null || flatStyles.flexWrap !== 'wrap',\n '`flexWrap: `wrap`` is not supported with the `VirtualizedList` components.' +\n 'Consider using `numColumns` with `FlatList` instead.',\n );\n }\n const {\n ListEmptyComponent,\n ListFooterComponent,\n ListHeaderComponent,\n } = this.props;\n const {data, horizontal} = this.props;\n const isVirtualizationDisabled = this._isVirtualizationDisabled();\n const inversionStyle = this.props.inverted\n ? this.props.horizontal\n ? styles.horizontallyInverted\n : styles.verticallyInverted\n : null;\n const cells = [];\n const stickyIndicesFromProps = new Set(this.props.stickyHeaderIndices);\n const stickyHeaderIndices = [];\n if (ListHeaderComponent) {\n if (stickyIndicesFromProps.has(0)) {\n stickyHeaderIndices.push(0);\n }\n const element = React.isValidElement(ListHeaderComponent) ? (\n ListHeaderComponent\n ) : (\n // $FlowFixMe\n \n );\n cells.push(\n \n \n {\n // $FlowFixMe - Typing ReactNativeComponent revealed errors\n element\n }\n \n ,\n );\n }\n const itemCount = this.props.getItemCount(data);\n if (itemCount > 0) {\n _usedIndexForKey = false;\n _keylessItemComponentName = '';\n const spacerKey = !horizontal ? 'height' : 'width';\n const lastInitialIndex = this.props.initialScrollIndex\n ? -1\n : this.props.initialNumToRender - 1;\n const {first, last} = this.state;\n this._pushCells(\n cells,\n stickyHeaderIndices,\n stickyIndicesFromProps,\n 0,\n lastInitialIndex,\n inversionStyle,\n );\n const firstAfterInitial = Math.max(lastInitialIndex + 1, first);\n if (!isVirtualizationDisabled && first > lastInitialIndex + 1) {\n let insertedStickySpacer = false;\n if (stickyIndicesFromProps.size > 0) {\n const stickyOffset = ListHeaderComponent ? 1 : 0;\n // See if there are any sticky headers in the virtualized space that we need to render.\n for (let ii = firstAfterInitial - 1; ii > lastInitialIndex; ii--) {\n if (stickyIndicesFromProps.has(ii + stickyOffset)) {\n const initBlock = this._getFrameMetricsApprox(lastInitialIndex);\n const stickyBlock = this._getFrameMetricsApprox(ii);\n const leadSpace = stickyBlock.offset - initBlock.offset;\n cells.push(\n ,\n );\n this._pushCells(\n cells,\n stickyHeaderIndices,\n stickyIndicesFromProps,\n ii,\n ii,\n inversionStyle,\n );\n const trailSpace =\n this._getFrameMetricsApprox(first).offset -\n (stickyBlock.offset + stickyBlock.length);\n cells.push(\n ,\n );\n insertedStickySpacer = true;\n break;\n }\n }\n }\n if (!insertedStickySpacer) {\n const initBlock = this._getFrameMetricsApprox(lastInitialIndex);\n const firstSpace =\n this._getFrameMetricsApprox(first).offset -\n (initBlock.offset + initBlock.length);\n cells.push(\n ,\n );\n }\n }\n this._pushCells(\n cells,\n stickyHeaderIndices,\n stickyIndicesFromProps,\n firstAfterInitial,\n last,\n inversionStyle,\n );\n if (!this._hasWarned.keys && _usedIndexForKey) {\n console.warn(\n 'VirtualizedList: missing keys for items, make sure to specify a key property on each ' +\n 'item or provide a custom keyExtractor.',\n _keylessItemComponentName,\n );\n this._hasWarned.keys = true;\n }\n if (!isVirtualizationDisabled && last < itemCount - 1) {\n const lastFrame = this._getFrameMetricsApprox(last);\n // Without getItemLayout, we limit our tail spacer to the _highestMeasuredFrameIndex to\n // prevent the user for hyperscrolling into un-measured area because otherwise content will\n // likely jump around as it renders in above the viewport.\n const end = this.props.getItemLayout\n ? itemCount - 1\n : Math.min(itemCount - 1, this._highestMeasuredFrameIndex);\n const endFrame = this._getFrameMetricsApprox(end);\n const tailSpacerLength =\n endFrame.offset +\n endFrame.length -\n (lastFrame.offset + lastFrame.length);\n cells.push(\n ,\n );\n }\n } else if (ListEmptyComponent) {\n const element: React.Element = ((React.isValidElement(\n ListEmptyComponent,\n ) ? (\n ListEmptyComponent\n ) : (\n // $FlowFixMe\n \n )): any);\n cells.push(\n React.cloneElement(element, {\n key: '$empty',\n onLayout: event => {\n this._onLayoutEmpty(event);\n if (element.props.onLayout) {\n element.props.onLayout(event);\n }\n },\n style: [element.props.style, inversionStyle],\n }),\n );\n }\n if (ListFooterComponent) {\n const element = React.isValidElement(ListFooterComponent) ? (\n ListFooterComponent\n ) : (\n // $FlowFixMe\n \n );\n cells.push(\n \n \n {\n // $FlowFixMe - Typing ReactNativeComponent revealed errors\n element\n }\n \n ,\n );\n }\n const scrollProps = {\n ...this.props,\n onContentSizeChange: this._onContentSizeChange,\n onLayout: this._onLayout,\n onScroll: this._onScroll,\n onScrollBeginDrag: this._onScrollBeginDrag,\n onScrollEndDrag: this._onScrollEndDrag,\n onMomentumScrollEnd: this._onMomentumScrollEnd,\n scrollEventThrottle: this.props.scrollEventThrottle, // TODO: Android support\n invertStickyHeaders:\n this.props.invertStickyHeaders !== undefined\n ? this.props.invertStickyHeaders\n : this.props.inverted,\n stickyHeaderIndices,\n };\n if (inversionStyle) {\n /* $FlowFixMe(>=0.70.0 site=react_native_fb) This comment suppresses an\n * error found when Flow v0.70 was deployed. To see the error delete\n * this comment and run Flow. */\n scrollProps.style = [inversionStyle, this.props.style];\n }\n\n this._hasMore =\n this.state.last < this.props.getItemCount(this.props.data) - 1;\n\n const ret = React.cloneElement(\n (this.props.renderScrollComponent || this._defaultRenderScrollComponent)(\n scrollProps,\n ),\n // $FlowFixMe Invalid prop usage\n {\n ref: this._captureScrollRef,\n },\n cells,\n );\n if (this.props.debug) {\n return (\n \n {ret}\n {this._renderDebugOverlay()}\n \n );\n } else {\n return ret;\n }\n }\n\n componentDidUpdate(prevProps: Props) {\n const {data, extraData} = this.props;\n if (data !== prevProps.data || extraData !== prevProps.extraData) {\n this._hasDataChangedSinceEndReached = true;\n\n // clear the viewableIndices cache to also trigger\n // the onViewableItemsChanged callback with the new data\n this._viewabilityTuples.forEach(tuple => {\n tuple.viewabilityHelper.resetViewableIndices();\n });\n }\n this._scheduleCellsToRenderUpdate();\n }\n\n _averageCellLength = 0;\n // Maps a cell key to the set of keys for all outermost child lists within that cell\n _cellKeysToChildListKeys: Map> = new Map();\n _cellRefs = {};\n _fillRateHelper: FillRateHelper;\n _frames = {};\n _footerLength = 0;\n _hasDataChangedSinceEndReached = true;\n _hasInteracted = false;\n _hasMore = false;\n _hasWarned = {};\n _highestMeasuredFrameIndex = 0;\n _headerLength = 0;\n _indicesToKeys: Map = new Map();\n _hasDoneInitialScroll = false;\n _nestedChildLists: Map<\n string,\n {ref: ?VirtualizedList, state: ?ChildListState},\n > = new Map();\n _offsetFromParentVirtualizedList: number = 0;\n _prevParentOffset: number = 0;\n _scrollMetrics = {\n contentLength: 0,\n dOffset: 0,\n dt: 10,\n offset: 0,\n timestamp: 0,\n velocity: 0,\n visibleLength: 0,\n };\n _scrollRef: ?React.ElementRef = null;\n _sentEndForContentLength = 0;\n _totalCellLength = 0;\n _totalCellsMeasured = 0;\n _updateCellsToRenderBatcher: Batchinator;\n _viewabilityTuples: Array = [];\n\n _captureScrollRef = ref => {\n this._scrollRef = ref;\n };\n\n _computeBlankness() {\n this._fillRateHelper.computeBlankness(\n this.props,\n this.state,\n this._scrollMetrics,\n );\n }\n\n _defaultRenderScrollComponent = props => {\n const onRefresh = props.onRefresh;\n if (this._isNestedWithSameOrientation()) {\n // $FlowFixMe - Typing ReactNativeComponent revealed errors\n return ;\n } else if (onRefresh) {\n invariant(\n typeof props.refreshing === 'boolean',\n '`refreshing` prop must be set as a boolean in order to use `onRefresh`, but got `' +\n JSON.stringify(props.refreshing) +\n '`',\n );\n return (\n // $FlowFixMe Invalid prop usage\n \n ) : (\n props.refreshControl\n )\n }\n />\n );\n } else {\n // $FlowFixMe Invalid prop usage\n return ;\n }\n };\n\n _onCellLayout(e, cellKey, index) {\n const layout = e.nativeEvent.layout;\n const next = {\n offset: this._selectOffset(layout),\n length: this._selectLength(layout),\n index,\n inLayout: true,\n };\n const curr = this._frames[cellKey];\n if (\n !curr ||\n next.offset !== curr.offset ||\n next.length !== curr.length ||\n index !== curr.index\n ) {\n this._totalCellLength += next.length - (curr ? curr.length : 0);\n this._totalCellsMeasured += curr ? 0 : 1;\n this._averageCellLength =\n this._totalCellLength / this._totalCellsMeasured;\n this._frames[cellKey] = next;\n this._highestMeasuredFrameIndex = Math.max(\n this._highestMeasuredFrameIndex,\n index,\n );\n this._scheduleCellsToRenderUpdate();\n } else {\n this._frames[cellKey].inLayout = true;\n }\n\n const childListKeys = this._cellKeysToChildListKeys.get(cellKey);\n if (childListKeys) {\n for (let childKey of childListKeys) {\n const childList = this._nestedChildLists.get(childKey);\n childList &&\n childList.ref &&\n childList.ref.measureLayoutRelativeToContainingList();\n }\n }\n\n this._computeBlankness();\n }\n\n _onCellUnmount = (cellKey: string) => {\n const curr = this._frames[cellKey];\n if (curr) {\n this._frames[cellKey] = {...curr, inLayout: false};\n }\n };\n\n measureLayoutRelativeToContainingList(): void {\n // TODO (T35574538): findNodeHandle sometimes crashes with \"Unable to find\n // node on an unmounted component\" during scrolling\n try {\n UIManager.measureLayout(\n ReactNative.findNodeHandle(this),\n ReactNative.findNodeHandle(\n this.context.virtualizedList.getOutermostParentListRef(),\n ),\n error => {\n console.warn(\n \"VirtualizedList: Encountered an error while measuring a list's\" +\n ' offset from its containing VirtualizedList.',\n );\n },\n (x, y, width, height) => {\n this._offsetFromParentVirtualizedList = this._selectOffset({x, y});\n this._scrollMetrics.contentLength = this._selectLength({\n width,\n height,\n });\n\n const scrollMetrics = this._convertParentScrollMetrics(\n this.context.virtualizedList.getScrollMetrics(),\n );\n this._scrollMetrics.visibleLength = scrollMetrics.visibleLength;\n this._scrollMetrics.offset = scrollMetrics.offset;\n },\n );\n } catch (error) {\n console.warn(\n 'measureLayoutRelativeToContainingList threw an error',\n error.stack,\n );\n }\n }\n\n _onLayout = (e: Object) => {\n if (this._isNestedWithSameOrientation()) {\n // Need to adjust our scroll metrics to be relative to our containing\n // VirtualizedList before we can make claims about list item viewability\n this.measureLayoutRelativeToContainingList();\n } else {\n this._scrollMetrics.visibleLength = this._selectLength(\n e.nativeEvent.layout,\n );\n }\n this.props.onLayout && this.props.onLayout(e);\n this._scheduleCellsToRenderUpdate();\n this._maybeCallOnEndReached();\n };\n\n _onLayoutEmpty = e => {\n this.props.onLayout && this.props.onLayout(e);\n };\n\n _onLayoutFooter = e => {\n this._footerLength = this._selectLength(e.nativeEvent.layout);\n };\n\n _onLayoutHeader = e => {\n this._headerLength = this._selectLength(e.nativeEvent.layout);\n };\n\n _renderDebugOverlay() {\n const normalize =\n this._scrollMetrics.visibleLength / this._scrollMetrics.contentLength;\n const framesInLayout = [];\n const itemCount = this.props.getItemCount(this.props.data);\n for (let ii = 0; ii < itemCount; ii++) {\n const frame = this._getFrameMetricsApprox(ii);\n /* $FlowFixMe(>=0.68.0 site=react_native_fb) This comment suppresses an\n * error found when Flow v0.68 was deployed. To see the error delete this\n * comment and run Flow. */\n if (frame.inLayout) {\n framesInLayout.push(frame);\n }\n }\n const windowTop = this._getFrameMetricsApprox(this.state.first).offset;\n const frameLast = this._getFrameMetricsApprox(this.state.last);\n const windowLen = frameLast.offset + frameLast.length - windowTop;\n const visTop = this._scrollMetrics.offset;\n const visLen = this._scrollMetrics.visibleLength;\n const baseStyle = {position: 'absolute', top: 0, right: 0};\n return (\n \n {framesInLayout.map((f, ii) => (\n \n ))}\n \n \n \n );\n }\n\n _selectLength(metrics: $ReadOnly<{height: number, width: number}>): number {\n return !this.props.horizontal ? metrics.height : metrics.width;\n }\n\n _selectOffset(metrics: $ReadOnly<{x: number, y: number}>): number {\n return !this.props.horizontal ? metrics.y : metrics.x;\n }\n\n _maybeCallOnEndReached() {\n const {\n data,\n getItemCount,\n onEndReached,\n onEndReachedThreshold,\n } = this.props;\n const {contentLength, visibleLength, offset} = this._scrollMetrics;\n const distanceFromEnd = contentLength - visibleLength - offset;\n if (\n onEndReached &&\n this.state.last === getItemCount(data) - 1 &&\n /* $FlowFixMe(>=0.63.0 site=react_native_fb) This comment suppresses an\n * error found when Flow v0.63 was deployed. To see the error delete this\n * comment and run Flow. */\n distanceFromEnd < onEndReachedThreshold * visibleLength &&\n (this._hasDataChangedSinceEndReached ||\n this._scrollMetrics.contentLength !== this._sentEndForContentLength)\n ) {\n // Only call onEndReached once for a given dataset + content length.\n this._hasDataChangedSinceEndReached = false;\n this._sentEndForContentLength = this._scrollMetrics.contentLength;\n onEndReached({distanceFromEnd});\n }\n }\n\n _onContentSizeChange = (width: number, height: number) => {\n if (\n width > 0 &&\n height > 0 &&\n this.props.initialScrollIndex != null &&\n this.props.initialScrollIndex > 0 &&\n !this._hasDoneInitialScroll\n ) {\n this.scrollToIndex({\n animated: false,\n index: this.props.initialScrollIndex,\n });\n this._hasDoneInitialScroll = true;\n }\n if (this.props.onContentSizeChange) {\n this.props.onContentSizeChange(width, height);\n }\n this._scrollMetrics.contentLength = this._selectLength({height, width});\n this._scheduleCellsToRenderUpdate();\n this._maybeCallOnEndReached();\n };\n\n /* Translates metrics from a scroll event in a parent VirtualizedList into\n * coordinates relative to the child list.\n */\n _convertParentScrollMetrics = (metrics: {\n visibleLength: number,\n offset: number,\n }) => {\n // Offset of the top of the nested list relative to the top of its parent's viewport\n const offset = metrics.offset - this._offsetFromParentVirtualizedList;\n // Child's visible length is the same as its parent's\n const visibleLength = metrics.visibleLength;\n const dOffset = offset - this._scrollMetrics.offset;\n const contentLength = this._scrollMetrics.contentLength;\n\n return {\n visibleLength,\n contentLength,\n offset,\n dOffset,\n };\n };\n\n _onScroll = (e: Object) => {\n this._nestedChildLists.forEach(childList => {\n childList.ref && childList.ref._onScroll(e);\n });\n if (this.props.onScroll) {\n this.props.onScroll(e);\n }\n const timestamp = e.timeStamp;\n let visibleLength = this._selectLength(e.nativeEvent.layoutMeasurement);\n let contentLength = this._selectLength(e.nativeEvent.contentSize);\n let offset = this._selectOffset(e.nativeEvent.contentOffset);\n let dOffset = offset - this._scrollMetrics.offset;\n\n if (this._isNestedWithSameOrientation()) {\n if (this._scrollMetrics.contentLength === 0) {\n // Ignore scroll events until onLayout has been called and we\n // know our offset from our offset from our parent\n return;\n }\n ({\n visibleLength,\n contentLength,\n offset,\n dOffset,\n } = this._convertParentScrollMetrics({\n visibleLength,\n offset,\n }));\n }\n\n const dt = this._scrollMetrics.timestamp\n ? Math.max(1, timestamp - this._scrollMetrics.timestamp)\n : 1;\n const velocity = dOffset / dt;\n\n if (\n dt > 500 &&\n this._scrollMetrics.dt > 500 &&\n contentLength > 5 * visibleLength &&\n !this._hasWarned.perf\n ) {\n infoLog(\n 'VirtualizedList: You have a large list that is slow to update - make sure your ' +\n 'renderItem function renders components that follow React performance best practices ' +\n 'like PureComponent, shouldComponentUpdate, etc.',\n {dt, prevDt: this._scrollMetrics.dt, contentLength},\n );\n this._hasWarned.perf = true;\n }\n this._scrollMetrics = {\n contentLength,\n dt,\n dOffset,\n offset,\n timestamp,\n velocity,\n visibleLength,\n };\n this._updateViewableItems(this.props.data);\n if (!this.props) {\n return;\n }\n this._maybeCallOnEndReached();\n if (velocity !== 0) {\n this._fillRateHelper.activate();\n }\n this._computeBlankness();\n this._scheduleCellsToRenderUpdate();\n };\n\n _scheduleCellsToRenderUpdate() {\n const {first, last} = this.state;\n const {offset, visibleLength, velocity} = this._scrollMetrics;\n const itemCount = this.props.getItemCount(this.props.data);\n let hiPri = false;\n const scrollingThreshold =\n /* $FlowFixMe(>=0.63.0 site=react_native_fb) This comment suppresses an\n * error found when Flow v0.63 was deployed. To see the error delete\n * this comment and run Flow. */\n (this.props.onEndReachedThreshold * visibleLength) / 2;\n // Mark as high priority if we're close to the start of the first item\n // But only if there are items before the first rendered item\n if (first > 0) {\n const distTop = offset - this._getFrameMetricsApprox(first).offset;\n hiPri =\n hiPri || distTop < 0 || (velocity < -2 && distTop < scrollingThreshold);\n }\n // Mark as high priority if we're close to the end of the last item\n // But only if there are items after the last rendered item\n if (last < itemCount - 1) {\n const distBottom =\n this._getFrameMetricsApprox(last).offset - (offset + visibleLength);\n hiPri =\n hiPri ||\n distBottom < 0 ||\n (velocity > 2 && distBottom < scrollingThreshold);\n }\n // Only trigger high-priority updates if we've actually rendered cells,\n // and with that size estimate, accurately compute how many cells we should render.\n // Otherwise, it would just render as many cells as it can (of zero dimension),\n // each time through attempting to render more (limited by maxToRenderPerBatch),\n // starving the renderer from actually laying out the objects and computing _averageCellLength.\n if (hiPri && this._averageCellLength) {\n // Don't worry about interactions when scrolling quickly; focus on filling content as fast\n // as possible.\n this._updateCellsToRenderBatcher.dispose({abort: true});\n this._updateCellsToRender();\n return;\n } else {\n this._updateCellsToRenderBatcher.schedule();\n }\n }\n\n _onScrollBeginDrag = (e): void => {\n this._nestedChildLists.forEach(childList => {\n childList.ref && childList.ref._onScrollBeginDrag(e);\n });\n this._viewabilityTuples.forEach(tuple => {\n tuple.viewabilityHelper.recordInteraction();\n });\n this._hasInteracted = true;\n this.props.onScrollBeginDrag && this.props.onScrollBeginDrag(e);\n };\n\n _onScrollEndDrag = (e): void => {\n const {velocity} = e.nativeEvent;\n if (velocity) {\n this._scrollMetrics.velocity = this._selectOffset(velocity);\n }\n this._computeBlankness();\n this.props.onScrollEndDrag && this.props.onScrollEndDrag(e);\n };\n\n _onMomentumScrollEnd = (e): void => {\n this._scrollMetrics.velocity = 0;\n this._computeBlankness();\n this.props.onMomentumScrollEnd && this.props.onMomentumScrollEnd(e);\n };\n\n _updateCellsToRender = () => {\n const {data, getItemCount, onEndReachedThreshold} = this.props;\n const isVirtualizationDisabled = this._isVirtualizationDisabled();\n this._updateViewableItems(data);\n if (!data) {\n return;\n }\n this.setState(state => {\n let newState;\n if (!isVirtualizationDisabled) {\n // If we run this with bogus data, we'll force-render window {first: 0, last: 0},\n // and wipe out the initialNumToRender rendered elements.\n // So let's wait until the scroll view metrics have been set up. And until then,\n // we will trust the initialNumToRender suggestion\n if (this._scrollMetrics.visibleLength) {\n // If we have a non-zero initialScrollIndex and run this before we've scrolled,\n // we'll wipe out the initialNumToRender rendered elements starting at initialScrollIndex.\n // So let's wait until we've scrolled the view to the right place. And until then,\n // we will trust the initialScrollIndex suggestion.\n if (!this.props.initialScrollIndex || this._scrollMetrics.offset) {\n newState = computeWindowedRenderLimits(\n this.props,\n state,\n this._getFrameMetricsApprox,\n this._scrollMetrics,\n );\n }\n }\n } else {\n const {contentLength, offset, visibleLength} = this._scrollMetrics;\n const distanceFromEnd = contentLength - visibleLength - offset;\n const renderAhead =\n /* $FlowFixMe(>=0.63.0 site=react_native_fb) This comment suppresses\n * an error found when Flow v0.63 was deployed. To see the error\n * delete this comment and run Flow. */\n distanceFromEnd < onEndReachedThreshold * visibleLength\n ? this.props.maxToRenderPerBatch\n : 0;\n newState = {\n first: 0,\n last: Math.min(state.last + renderAhead, getItemCount(data) - 1),\n };\n }\n if (newState && this._nestedChildLists.size > 0) {\n const newFirst = newState.first;\n const newLast = newState.last;\n // If some cell in the new state has a child list in it, we should only render\n // up through that item, so that we give that list a chance to render.\n // Otherwise there's churn from multiple child lists mounting and un-mounting\n // their items.\n for (let ii = newFirst; ii <= newLast; ii++) {\n const cellKeyForIndex = this._indicesToKeys.get(ii);\n const childListKeys =\n cellKeyForIndex &&\n this._cellKeysToChildListKeys.get(cellKeyForIndex);\n if (!childListKeys) {\n continue;\n }\n let someChildHasMore = false;\n // For each cell, need to check whether any child list in it has more elements to render\n for (let childKey of childListKeys) {\n const childList = this._nestedChildLists.get(childKey);\n if (childList && childList.ref && childList.ref.hasMore()) {\n someChildHasMore = true;\n break;\n }\n }\n if (someChildHasMore) {\n newState.last = ii;\n break;\n }\n }\n }\n return newState;\n });\n };\n\n _createViewToken = (index: number, isViewable: boolean) => {\n const {data, getItem, keyExtractor} = this.props;\n const item = getItem(data, index);\n return {index, item, key: keyExtractor(item, index), isViewable};\n };\n\n _getFrameMetricsApprox = (\n index: number,\n ): {length: number, offset: number} => {\n const frame = this._getFrameMetrics(index);\n if (frame && frame.index === index) {\n // check for invalid frames due to row re-ordering\n return frame;\n } else {\n const {getItemLayout} = this.props;\n invariant(\n !getItemLayout,\n 'Should not have to estimate frames when a measurement metrics function is provided',\n );\n return {\n length: this._averageCellLength,\n offset: this._averageCellLength * index,\n };\n }\n };\n\n _getFrameMetrics = (\n index: number,\n ): ?{\n length: number,\n offset: number,\n index: number,\n inLayout?: boolean,\n } => {\n const {\n data,\n getItem,\n getItemCount,\n getItemLayout,\n keyExtractor,\n } = this.props;\n invariant(\n getItemCount(data) > index,\n 'Tried to get frame for out of range index ' + index,\n );\n const item = getItem(data, index);\n let frame = item && this._frames[keyExtractor(item, index)];\n if (!frame || frame.index !== index) {\n if (getItemLayout) {\n frame = getItemLayout(data, index);\n if (__DEV__) {\n const frameType = PropTypes.shape({\n length: PropTypes.number.isRequired,\n offset: PropTypes.number.isRequired,\n index: PropTypes.number.isRequired,\n }).isRequired;\n PropTypes.checkPropTypes(\n {frame: frameType},\n {frame},\n 'frame',\n 'VirtualizedList.getItemLayout',\n );\n }\n }\n }\n /* $FlowFixMe(>=0.63.0 site=react_native_fb) This comment suppresses an\n * error found when Flow v0.63 was deployed. To see the error delete this\n * comment and run Flow. */\n return frame;\n };\n\n _updateViewableItems(data: any) {\n const {getItemCount} = this.props;\n\n this._viewabilityTuples.forEach(tuple => {\n tuple.viewabilityHelper.onUpdate(\n getItemCount(data),\n this._scrollMetrics.offset,\n this._scrollMetrics.visibleLength,\n this._getFrameMetrics,\n this._createViewToken,\n tuple.onViewableItemsChanged,\n this.state,\n );\n });\n }\n}\n\nclass CellRenderer extends React.Component<\n {\n CellRendererComponent?: ?React.ComponentType,\n ItemSeparatorComponent: ?React.ComponentType<*>,\n cellKey: string,\n fillRateHelper: FillRateHelper,\n horizontal: ?boolean,\n index: number,\n inversionStyle: ?DangerouslyImpreciseStyleProp,\n item: Item,\n onLayout: (event: Object) => void, // This is extracted by ScrollViewStickyHeader\n onUnmount: (cellKey: string) => void,\n onUpdateSeparators: (cellKeys: Array, props: Object) => void,\n parentProps: {\n getItemLayout?: ?Function,\n renderItem: renderItemType,\n },\n prevCellKey: ?string,\n },\n $FlowFixMeState,\n> {\n state = {\n separatorProps: {\n highlighted: false,\n leadingItem: this.props.item,\n },\n };\n\n static childContextTypes = {\n virtualizedCell: PropTypes.shape({\n cellKey: PropTypes.string,\n }),\n };\n\n getChildContext() {\n return {\n virtualizedCell: {\n cellKey: this.props.cellKey,\n },\n };\n }\n\n // TODO: consider factoring separator stuff out of VirtualizedList into FlatList since it's not\n // reused by SectionList and we can keep VirtualizedList simpler.\n _separators = {\n highlight: () => {\n const {cellKey, prevCellKey} = this.props;\n this.props.onUpdateSeparators([cellKey, prevCellKey], {\n highlighted: true,\n });\n },\n unhighlight: () => {\n const {cellKey, prevCellKey} = this.props;\n this.props.onUpdateSeparators([cellKey, prevCellKey], {\n highlighted: false,\n });\n },\n updateProps: (select: 'leading' | 'trailing', newProps: Object) => {\n const {cellKey, prevCellKey} = this.props;\n this.props.onUpdateSeparators(\n [select === 'leading' ? prevCellKey : cellKey],\n newProps,\n );\n },\n };\n\n updateSeparatorProps(newProps: Object) {\n this.setState(state => ({\n separatorProps: {...state.separatorProps, ...newProps},\n }));\n }\n\n componentWillUnmount() {\n this.props.onUnmount(this.props.cellKey);\n }\n\n render() {\n const {\n CellRendererComponent,\n ItemSeparatorComponent,\n fillRateHelper,\n horizontal,\n item,\n index,\n inversionStyle,\n parentProps,\n } = this.props;\n const {renderItem, getItemLayout} = parentProps;\n invariant(renderItem, 'no renderItem!');\n const element = renderItem({\n item,\n index,\n separators: this._separators,\n });\n const onLayout =\n /* $FlowFixMe(>=0.68.0 site=react_native_fb) This comment suppresses an\n * error found when Flow v0.68 was deployed. To see the error delete this\n * comment and run Flow. */\n getItemLayout && !parentProps.debug && !fillRateHelper.enabled()\n ? undefined\n : this.props.onLayout;\n // NOTE: that when this is a sticky header, `onLayout` will get automatically extracted and\n // called explicitly by `ScrollViewStickyHeader`.\n const itemSeparator = ItemSeparatorComponent && (\n \n );\n const cellStyle = inversionStyle\n ? horizontal\n ? [{flexDirection: 'row-reverse'}, inversionStyle]\n : [{flexDirection: 'column-reverse'}, inversionStyle]\n : horizontal\n ? [{flexDirection: 'row'}, inversionStyle]\n : inversionStyle;\n if (!CellRendererComponent) {\n return (\n \n {element}\n {itemSeparator}\n \n );\n }\n return (\n \n {element}\n {itemSeparator}\n \n );\n }\n}\n\nclass VirtualizedCellWrapper extends React.Component<{\n cellKey: string,\n children: React.Node,\n}> {\n static childContextTypes = {\n virtualizedCell: PropTypes.shape({\n cellKey: PropTypes.string,\n }),\n };\n\n getChildContext() {\n return {\n virtualizedCell: {\n cellKey: this.props.cellKey,\n },\n };\n }\n\n render() {\n return this.props.children;\n }\n}\n\nconst styles = StyleSheet.create({\n verticallyInverted: {\n transform: [{scaleY: -1}],\n },\n horizontallyInverted: {\n transform: [{scaleX: -1}],\n },\n});\n\nmodule.exports = VirtualizedList;\n","/**\n * Copyright (c) 2015-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n * @flow strict-local\n */\n\n'use strict';\n\nconst InteractionManager = require('InteractionManager');\n\n/**\n * A simple class for batching up invocations of a low-pri callback. A timeout is set to run the\n * callback once after a delay, no matter how many times it's scheduled. Once the delay is reached,\n * InteractionManager.runAfterInteractions is used to invoke the callback after any hi-pri\n * interactions are done running.\n *\n * Make sure to cleanup with dispose(). Example:\n *\n * class Widget extends React.Component {\n * _batchedSave: new Batchinator(() => this._saveState, 1000);\n * _saveSate() {\n * // save this.state to disk\n * }\n * componentDidUpdate() {\n * this._batchedSave.schedule();\n * }\n * componentWillUnmount() {\n * this._batchedSave.dispose();\n * }\n * ...\n * }\n */\nclass Batchinator {\n _callback: () => void;\n _delay: number;\n _taskHandle: ?{cancel: () => void};\n constructor(callback: () => void, delayMS: number) {\n this._delay = delayMS;\n this._callback = callback;\n }\n /*\n * Cleanup any pending tasks.\n *\n * By default, if there is a pending task the callback is run immediately. Set the option abort to\n * true to not call the callback if it was pending.\n */\n dispose(options: {abort: boolean} = {abort: false}) {\n if (this._taskHandle) {\n this._taskHandle.cancel();\n if (!options.abort) {\n this._callback();\n }\n this._taskHandle = null;\n }\n }\n schedule() {\n if (this._taskHandle) {\n return;\n }\n const timeoutHandle = setTimeout(() => {\n this._taskHandle = InteractionManager.runAfterInteractions(() => {\n // Note that we clear the handle before invoking the callback so that if the callback calls\n // schedule again, it will actually schedule another task.\n this._taskHandle = null;\n this._callback();\n });\n }, this._delay);\n this._taskHandle = {cancel: () => clearTimeout(timeoutHandle)};\n }\n}\n\nmodule.exports = Batchinator;\n","/**\n * Copyright (c) 2015-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @flow\n * @format\n */\n\n'use strict';\n\n/* $FlowFixMe(>=0.54.0 site=react_native_oss) This comment suppresses an error\n * found when Flow v0.54 was deployed. To see the error delete this comment and\n * run Flow. */\nconst performanceNow = require('fbjs/lib/performanceNow');\n/* $FlowFixMe(>=0.54.0 site=react_native_oss) This comment suppresses an error\n * found when Flow v0.54 was deployed. To see the error delete this comment and\n * run Flow. */\nconst warning = require('fbjs/lib/warning');\n\nexport type FillRateInfo = Info;\n\nclass Info {\n any_blank_count = 0;\n any_blank_ms = 0;\n any_blank_speed_sum = 0;\n mostly_blank_count = 0;\n mostly_blank_ms = 0;\n pixels_blank = 0;\n pixels_sampled = 0;\n pixels_scrolled = 0;\n total_time_spent = 0;\n sample_count = 0;\n}\n\ntype FrameMetrics = {inLayout?: boolean, length: number, offset: number};\n\nconst DEBUG = false;\n\nlet _listeners: Array<(Info) => void> = [];\nlet _minSampleCount = 10;\nlet _sampleRate = DEBUG ? 1 : null;\n\n/**\n * A helper class for detecting when the maximem fill rate of `VirtualizedList` is exceeded.\n * By default the sampling rate is set to zero and this will do nothing. If you want to collect\n * samples (e.g. to log them), make sure to call `FillRateHelper.setSampleRate(0.0-1.0)`.\n *\n * Listeners and sample rate are global for all `VirtualizedList`s - typical usage will combine with\n * `SceneTracker.getActiveScene` to determine the context of the events.\n */\nclass FillRateHelper {\n _anyBlankStartTime = (null: ?number);\n _enabled = false;\n _getFrameMetrics: (index: number) => ?FrameMetrics;\n _info = new Info();\n _mostlyBlankStartTime = (null: ?number);\n _samplesStartTime = (null: ?number);\n\n static addListener(callback: FillRateInfo => void): {remove: () => void} {\n warning(\n _sampleRate !== null,\n 'Call `FillRateHelper.setSampleRate` before `addListener`.',\n );\n _listeners.push(callback);\n return {\n remove: () => {\n _listeners = _listeners.filter(listener => callback !== listener);\n },\n };\n }\n\n static setSampleRate(sampleRate: number) {\n _sampleRate = sampleRate;\n }\n\n static setMinSampleCount(minSampleCount: number) {\n _minSampleCount = minSampleCount;\n }\n\n constructor(getFrameMetrics: (index: number) => ?FrameMetrics) {\n this._getFrameMetrics = getFrameMetrics;\n this._enabled = (_sampleRate || 0) > Math.random();\n this._resetData();\n }\n\n activate() {\n if (this._enabled && this._samplesStartTime == null) {\n DEBUG && console.debug('FillRateHelper: activate');\n this._samplesStartTime = performanceNow();\n }\n }\n\n deactivateAndFlush() {\n if (!this._enabled) {\n return;\n }\n const start = this._samplesStartTime; // const for flow\n if (start == null) {\n DEBUG &&\n console.debug('FillRateHelper: bail on deactivate with no start time');\n return;\n }\n if (this._info.sample_count < _minSampleCount) {\n // Don't bother with under-sampled events.\n this._resetData();\n return;\n }\n const total_time_spent = performanceNow() - start;\n const info: any = {\n ...this._info,\n total_time_spent,\n };\n if (DEBUG) {\n const derived = {\n avg_blankness: this._info.pixels_blank / this._info.pixels_sampled,\n avg_speed: this._info.pixels_scrolled / (total_time_spent / 1000),\n avg_speed_when_any_blank:\n this._info.any_blank_speed_sum / this._info.any_blank_count,\n any_blank_per_min:\n this._info.any_blank_count / (total_time_spent / 1000 / 60),\n any_blank_time_frac: this._info.any_blank_ms / total_time_spent,\n mostly_blank_per_min:\n this._info.mostly_blank_count / (total_time_spent / 1000 / 60),\n mostly_blank_time_frac: this._info.mostly_blank_ms / total_time_spent,\n };\n for (const key in derived) {\n derived[key] = Math.round(1000 * derived[key]) / 1000;\n }\n console.debug('FillRateHelper deactivateAndFlush: ', {derived, info});\n }\n _listeners.forEach(listener => listener(info));\n this._resetData();\n }\n\n computeBlankness(\n props: {\n data: Array,\n getItemCount: (data: Array) => number,\n initialNumToRender: number,\n },\n state: {\n first: number,\n last: number,\n },\n scrollMetrics: {\n dOffset: number,\n offset: number,\n velocity: number,\n visibleLength: number,\n },\n ): number {\n if (\n !this._enabled ||\n props.getItemCount(props.data) === 0 ||\n this._samplesStartTime == null\n ) {\n return 0;\n }\n const {dOffset, offset, velocity, visibleLength} = scrollMetrics;\n\n // Denominator metrics that we track for all events - most of the time there is no blankness and\n // we want to capture that.\n this._info.sample_count++;\n this._info.pixels_sampled += Math.round(visibleLength);\n this._info.pixels_scrolled += Math.round(Math.abs(dOffset));\n const scrollSpeed = Math.round(Math.abs(velocity) * 1000); // px / sec\n\n // Whether blank now or not, record the elapsed time blank if we were blank last time.\n const now = performanceNow();\n if (this._anyBlankStartTime != null) {\n this._info.any_blank_ms += now - this._anyBlankStartTime;\n }\n this._anyBlankStartTime = null;\n if (this._mostlyBlankStartTime != null) {\n this._info.mostly_blank_ms += now - this._mostlyBlankStartTime;\n }\n this._mostlyBlankStartTime = null;\n\n let blankTop = 0;\n let first = state.first;\n let firstFrame = this._getFrameMetrics(first);\n while (first <= state.last && (!firstFrame || !firstFrame.inLayout)) {\n firstFrame = this._getFrameMetrics(first);\n first++;\n }\n // Only count blankTop if we aren't rendering the first item, otherwise we will count the header\n // as blank.\n if (firstFrame && first > 0) {\n blankTop = Math.min(\n visibleLength,\n Math.max(0, firstFrame.offset - offset),\n );\n }\n let blankBottom = 0;\n let last = state.last;\n let lastFrame = this._getFrameMetrics(last);\n while (last >= state.first && (!lastFrame || !lastFrame.inLayout)) {\n lastFrame = this._getFrameMetrics(last);\n last--;\n }\n // Only count blankBottom if we aren't rendering the last item, otherwise we will count the\n // footer as blank.\n if (lastFrame && last < props.getItemCount(props.data) - 1) {\n const bottomEdge = lastFrame.offset + lastFrame.length;\n blankBottom = Math.min(\n visibleLength,\n Math.max(0, offset + visibleLength - bottomEdge),\n );\n }\n const pixels_blank = Math.round(blankTop + blankBottom);\n const blankness = pixels_blank / visibleLength;\n if (blankness > 0) {\n this._anyBlankStartTime = now;\n this._info.any_blank_speed_sum += scrollSpeed;\n this._info.any_blank_count++;\n this._info.pixels_blank += pixels_blank;\n if (blankness > 0.5) {\n this._mostlyBlankStartTime = now;\n this._info.mostly_blank_count++;\n }\n } else if (scrollSpeed < 0.01 || Math.abs(dOffset) < 1) {\n this.deactivateAndFlush();\n }\n return blankness;\n }\n\n enabled(): boolean {\n return this._enabled;\n }\n\n _resetData() {\n this._anyBlankStartTime = null;\n this._info = new Info();\n this._mostlyBlankStartTime = null;\n this._samplesStartTime = null;\n }\n}\n\nmodule.exports = FillRateHelper;\n","/**\n * Copyright (c) 2015-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @flow\n * @format\n */\n'use strict';\n\nconst invariant = require('fbjs/lib/invariant');\n\nexport type ViewToken = {\n item: any,\n key: string,\n index: ?number,\n isViewable: boolean,\n section?: any,\n};\n\nexport type ViewabilityConfigCallbackPair = {\n viewabilityConfig: ViewabilityConfig,\n onViewableItemsChanged: (info: {\n viewableItems: Array,\n changed: Array,\n }) => void,\n};\n\nexport type ViewabilityConfig = {|\n /**\n * Minimum amount of time (in milliseconds) that an item must be physically viewable before the\n * viewability callback will be fired. A high number means that scrolling through content without\n * stopping will not mark the content as viewable.\n */\n minimumViewTime?: number,\n\n /**\n * Percent of viewport that must be covered for a partially occluded item to count as\n * \"viewable\", 0-100. Fully visible items are always considered viewable. A value of 0 means\n * that a single pixel in the viewport makes the item viewable, and a value of 100 means that\n * an item must be either entirely visible or cover the entire viewport to count as viewable.\n */\n viewAreaCoveragePercentThreshold?: number,\n\n /**\n * Similar to `viewAreaPercentThreshold`, but considers the percent of the item that is visible,\n * rather than the fraction of the viewable area it covers.\n */\n itemVisiblePercentThreshold?: number,\n\n /**\n * Nothing is considered viewable until the user scrolls or `recordInteraction` is called after\n * render.\n */\n waitForInteraction?: boolean,\n|};\n\n/**\n * A Utility class for calculating viewable items based on current metrics like scroll position and\n * layout.\n *\n * An item is said to be in a \"viewable\" state when any of the following\n * is true for longer than `minimumViewTime` milliseconds (after an interaction if `waitForInteraction`\n * is true):\n *\n * - Occupying >= `viewAreaCoveragePercentThreshold` of the view area XOR fraction of the item\n * visible in the view area >= `itemVisiblePercentThreshold`.\n * - Entirely visible on screen\n */\nclass ViewabilityHelper {\n _config: ViewabilityConfig;\n _hasInteracted: boolean = false;\n /* $FlowFixMe(>=0.63.0 site=react_native_fb) This comment suppresses an error\n * found when Flow v0.63 was deployed. To see the error delete this comment\n * and run Flow. */\n _timers: Set = new Set();\n _viewableIndices: Array = [];\n _viewableItems: Map = new Map();\n\n constructor(\n config: ViewabilityConfig = {viewAreaCoveragePercentThreshold: 0},\n ) {\n this._config = config;\n }\n\n /**\n * Cleanup, e.g. on unmount. Clears any pending timers.\n */\n dispose() {\n this._timers.forEach(clearTimeout);\n }\n\n /**\n * Determines which items are viewable based on the current metrics and config.\n */\n computeViewableItems(\n itemCount: number,\n scrollOffset: number,\n viewportHeight: number,\n getFrameMetrics: (index: number) => ?{length: number, offset: number},\n renderRange?: {first: number, last: number}, // Optional optimization to reduce the scan size\n ): Array {\n const {\n itemVisiblePercentThreshold,\n viewAreaCoveragePercentThreshold,\n } = this._config;\n const viewAreaMode = viewAreaCoveragePercentThreshold != null;\n const viewablePercentThreshold = viewAreaMode\n ? viewAreaCoveragePercentThreshold\n : itemVisiblePercentThreshold;\n invariant(\n viewablePercentThreshold != null &&\n (itemVisiblePercentThreshold != null) !==\n (viewAreaCoveragePercentThreshold != null),\n 'Must set exactly one of itemVisiblePercentThreshold or viewAreaCoveragePercentThreshold',\n );\n const viewableIndices = [];\n if (itemCount === 0) {\n return viewableIndices;\n }\n let firstVisible = -1;\n const {first, last} = renderRange || {first: 0, last: itemCount - 1};\n invariant(\n last < itemCount,\n 'Invalid render range ' + JSON.stringify({renderRange, itemCount}),\n );\n for (let idx = first; idx <= last; idx++) {\n const metrics = getFrameMetrics(idx);\n if (!metrics) {\n continue;\n }\n const top = metrics.offset - scrollOffset;\n const bottom = top + metrics.length;\n if (top < viewportHeight && bottom > 0) {\n firstVisible = idx;\n if (\n _isViewable(\n viewAreaMode,\n viewablePercentThreshold,\n top,\n bottom,\n viewportHeight,\n metrics.length,\n )\n ) {\n viewableIndices.push(idx);\n }\n } else if (firstVisible >= 0) {\n break;\n }\n }\n return viewableIndices;\n }\n\n /**\n * Figures out which items are viewable and how that has changed from before and calls\n * `onViewableItemsChanged` as appropriate.\n */\n onUpdate(\n itemCount: number,\n scrollOffset: number,\n viewportHeight: number,\n getFrameMetrics: (index: number) => ?{length: number, offset: number},\n createViewToken: (index: number, isViewable: boolean) => ViewToken,\n onViewableItemsChanged: ({\n viewableItems: Array,\n changed: Array,\n }) => void,\n renderRange?: {first: number, last: number}, // Optional optimization to reduce the scan size\n ): void {\n if (\n (this._config.waitForInteraction && !this._hasInteracted) ||\n itemCount === 0 ||\n !getFrameMetrics(0)\n ) {\n return;\n }\n let viewableIndices = [];\n if (itemCount) {\n viewableIndices = this.computeViewableItems(\n itemCount,\n scrollOffset,\n viewportHeight,\n getFrameMetrics,\n renderRange,\n );\n }\n if (\n this._viewableIndices.length === viewableIndices.length &&\n this._viewableIndices.every((v, ii) => v === viewableIndices[ii])\n ) {\n // We might get a lot of scroll events where visibility doesn't change and we don't want to do\n // extra work in those cases.\n return;\n }\n this._viewableIndices = viewableIndices;\n if (this._config.minimumViewTime) {\n const handle = setTimeout(() => {\n this._timers.delete(handle);\n this._onUpdateSync(\n viewableIndices,\n onViewableItemsChanged,\n createViewToken,\n );\n }, this._config.minimumViewTime);\n this._timers.add(handle);\n } else {\n this._onUpdateSync(\n viewableIndices,\n onViewableItemsChanged,\n createViewToken,\n );\n }\n }\n\n /**\n * clean-up cached _viewableIndices to evaluate changed items on next update\n */\n resetViewableIndices() {\n this._viewableIndices = [];\n }\n\n /**\n * Records that an interaction has happened even if there has been no scroll.\n */\n recordInteraction() {\n this._hasInteracted = true;\n }\n\n _onUpdateSync(\n viewableIndicesToCheck,\n onViewableItemsChanged,\n createViewToken,\n ) {\n // Filter out indices that have gone out of view since this call was scheduled.\n viewableIndicesToCheck = viewableIndicesToCheck.filter(ii =>\n this._viewableIndices.includes(ii),\n );\n const prevItems = this._viewableItems;\n const nextItems = new Map(\n viewableIndicesToCheck.map(ii => {\n const viewable = createViewToken(ii, true);\n return [viewable.key, viewable];\n }),\n );\n\n const changed = [];\n for (const [key, viewable] of nextItems) {\n if (!prevItems.has(key)) {\n changed.push(viewable);\n }\n }\n for (const [key, viewable] of prevItems) {\n if (!nextItems.has(key)) {\n changed.push({...viewable, isViewable: false});\n }\n }\n if (changed.length > 0) {\n this._viewableItems = nextItems;\n onViewableItemsChanged({\n viewableItems: Array.from(nextItems.values()),\n changed,\n viewabilityConfig: this._config,\n });\n }\n }\n}\n\nfunction _isViewable(\n viewAreaMode: boolean,\n viewablePercentThreshold: number,\n top: number,\n bottom: number,\n viewportHeight: number,\n itemLength: number,\n): boolean {\n if (_isEntirelyVisible(top, bottom, viewportHeight)) {\n return true;\n } else {\n const pixels = _getPixelsVisible(top, bottom, viewportHeight);\n const percent =\n 100 * (viewAreaMode ? pixels / viewportHeight : pixels / itemLength);\n return percent >= viewablePercentThreshold;\n }\n}\n\nfunction _getPixelsVisible(\n top: number,\n bottom: number,\n viewportHeight: number,\n): number {\n const visibleHeight = Math.min(bottom, viewportHeight) - Math.max(top, 0);\n return Math.max(0, visibleHeight);\n}\n\nfunction _isEntirelyVisible(\n top: number,\n bottom: number,\n viewportHeight: number,\n): boolean {\n return top >= 0 && bottom <= viewportHeight && bottom > top;\n}\n\nmodule.exports = ViewabilityHelper;\n","/**\n * Copyright (c) 2015-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @flow\n * @format\n */\n'use strict';\n\nconst invariant = require('fbjs/lib/invariant');\n\n/**\n * Used to find the indices of the frames that overlap the given offsets. Useful for finding the\n * items that bound different windows of content, such as the visible area or the buffered overscan\n * area.\n */\nfunction elementsThatOverlapOffsets(\n offsets: Array,\n itemCount: number,\n getFrameMetrics: (index: number) => {length: number, offset: number},\n): Array {\n const out = [];\n let outLength = 0;\n for (let ii = 0; ii < itemCount; ii++) {\n const frame = getFrameMetrics(ii);\n const trailingOffset = frame.offset + frame.length;\n for (let kk = 0; kk < offsets.length; kk++) {\n if (out[kk] == null && trailingOffset >= offsets[kk]) {\n out[kk] = ii;\n outLength++;\n if (kk === offsets.length - 1) {\n invariant(\n outLength === offsets.length,\n 'bad offsets input, should be in increasing order: %s',\n JSON.stringify(offsets),\n );\n return out;\n }\n }\n }\n }\n return out;\n}\n\n/**\n * Computes the number of elements in the `next` range that are new compared to the `prev` range.\n * Handy for calculating how many new items will be rendered when the render window changes so we\n * can restrict the number of new items render at once so that content can appear on the screen\n * faster.\n */\nfunction newRangeCount(\n prev: {first: number, last: number},\n next: {first: number, last: number},\n): number {\n return (\n next.last -\n next.first +\n 1 -\n Math.max(\n 0,\n 1 + Math.min(next.last, prev.last) - Math.max(next.first, prev.first),\n )\n );\n}\n\n/**\n * Custom logic for determining which items should be rendered given the current frame and scroll\n * metrics, as well as the previous render state. The algorithm may evolve over time, but generally\n * prioritizes the visible area first, then expands that with overscan regions ahead and behind,\n * biased in the direction of scroll.\n */\nfunction computeWindowedRenderLimits(\n props: {\n data: any,\n getItemCount: (data: any) => number,\n maxToRenderPerBatch: number,\n windowSize: number,\n },\n prev: {first: number, last: number},\n getFrameMetricsApprox: (index: number) => {length: number, offset: number},\n scrollMetrics: {\n dt: number,\n offset: number,\n velocity: number,\n visibleLength: number,\n },\n): {first: number, last: number} {\n const {data, getItemCount, maxToRenderPerBatch, windowSize} = props;\n const itemCount = getItemCount(data);\n if (itemCount === 0) {\n return prev;\n }\n const {offset, velocity, visibleLength} = scrollMetrics;\n\n // Start with visible area, then compute maximum overscan region by expanding from there, biased\n // in the direction of scroll. Total overscan area is capped, which should cap memory consumption\n // too.\n const visibleBegin = Math.max(0, offset);\n const visibleEnd = visibleBegin + visibleLength;\n const overscanLength = (windowSize - 1) * visibleLength;\n\n // Considering velocity seems to introduce more churn than it's worth.\n const leadFactor = 0.5; // Math.max(0, Math.min(1, velocity / 25 + 0.5));\n\n const fillPreference =\n velocity > 1 ? 'after' : velocity < -1 ? 'before' : 'none';\n\n const overscanBegin = Math.max(\n 0,\n visibleBegin - (1 - leadFactor) * overscanLength,\n );\n const overscanEnd = Math.max(0, visibleEnd + leadFactor * overscanLength);\n\n const lastItemOffset = getFrameMetricsApprox(itemCount - 1).offset;\n if (lastItemOffset < overscanBegin) {\n // Entire list is before our overscan window\n return {\n first: Math.max(0, itemCount - 1 - maxToRenderPerBatch),\n last: itemCount - 1,\n };\n }\n\n // Find the indices that correspond to the items at the render boundaries we're targeting.\n let [overscanFirst, first, last, overscanLast] = elementsThatOverlapOffsets(\n [overscanBegin, visibleBegin, visibleEnd, overscanEnd],\n props.getItemCount(props.data),\n getFrameMetricsApprox,\n );\n overscanFirst = overscanFirst == null ? 0 : overscanFirst;\n first = first == null ? Math.max(0, overscanFirst) : first;\n overscanLast = overscanLast == null ? itemCount - 1 : overscanLast;\n last =\n last == null\n ? Math.min(overscanLast, first + maxToRenderPerBatch - 1)\n : last;\n const visible = {first, last};\n\n // We want to limit the number of new cells we're rendering per batch so that we can fill the\n // content on the screen quickly. If we rendered the entire overscan window at once, the user\n // could be staring at white space for a long time waiting for a bunch of offscreen content to\n // render.\n let newCellCount = newRangeCount(prev, visible);\n\n while (true) {\n if (first <= overscanFirst && last >= overscanLast) {\n // If we fill the entire overscan range, we're done.\n break;\n }\n const maxNewCells = newCellCount >= maxToRenderPerBatch;\n const firstWillAddMore = first <= prev.first || first > prev.last;\n const firstShouldIncrement =\n first > overscanFirst && (!maxNewCells || !firstWillAddMore);\n const lastWillAddMore = last >= prev.last || last < prev.first;\n const lastShouldIncrement =\n last < overscanLast && (!maxNewCells || !lastWillAddMore);\n if (maxNewCells && !firstShouldIncrement && !lastShouldIncrement) {\n // We only want to stop if we've hit maxNewCells AND we cannot increment first or last\n // without rendering new items. This let's us preserve as many already rendered items as\n // possible, reducing render churn and keeping the rendered overscan range as large as\n // possible.\n break;\n }\n if (\n firstShouldIncrement &&\n !(fillPreference === 'after' && lastShouldIncrement && lastWillAddMore)\n ) {\n if (firstWillAddMore) {\n newCellCount++;\n }\n first--;\n }\n if (\n lastShouldIncrement &&\n !(fillPreference === 'before' && firstShouldIncrement && firstWillAddMore)\n ) {\n if (lastWillAddMore) {\n newCellCount++;\n }\n last++;\n }\n }\n if (\n !(\n last >= first &&\n first >= 0 &&\n last < itemCount &&\n first >= overscanFirst &&\n last <= overscanLast &&\n first <= visible.first &&\n last >= visible.last\n )\n ) {\n throw new Error(\n 'Bad window calculation ' +\n JSON.stringify({\n first,\n last,\n itemCount,\n overscanFirst,\n overscanLast,\n visible,\n }),\n );\n }\n return {first, last};\n}\n\nconst VirtualizeUtils = {\n computeWindowedRenderLimits,\n elementsThatOverlapOffsets,\n newRangeCount,\n};\n\nmodule.exports = VirtualizeUtils;\n","/**\n * Copyright (c) 2015-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @flow\n * @format\n */\n\n'use strict';\n\nconst ImageStylePropTypes = require('ImageStylePropTypes');\nconst NativeModules = require('NativeModules');\nconst React = require('React');\nconst ReactNative = require('ReactNative');\nconst PropTypes = require('prop-types');\nconst StyleSheet = require('StyleSheet');\nconst StyleSheetPropType = require('StyleSheetPropType');\nconst TextAncestor = require('TextAncestor');\nconst ViewPropTypes = require('ViewPropTypes');\n\nconst flattenStyle = require('flattenStyle');\nconst merge = require('merge');\nconst requireNativeComponent = require('requireNativeComponent');\nconst resolveAssetSource = require('resolveAssetSource');\n\nconst {ImageLoader} = NativeModules;\n\nconst RKImage = requireNativeComponent('RCTImageView');\nconst RCTTextInlineImage = requireNativeComponent('RCTTextInlineImage');\n\nimport type {ImageProps as ImagePropsType} from 'ImageProps';\n\nlet _requestId = 1;\nfunction generateRequestId() {\n return _requestId++;\n}\n\nconst ImageProps = {\n ...ViewPropTypes,\n style: StyleSheetPropType(ImageStylePropTypes),\n /**\n * See https://facebook.github.io/react-native/docs/image.html#source\n */\n source: PropTypes.oneOfType([\n PropTypes.shape({\n uri: PropTypes.string,\n headers: PropTypes.objectOf(PropTypes.string),\n }),\n // Opaque type returned by require('./image.jpg')\n PropTypes.number,\n // Multiple sources\n PropTypes.arrayOf(\n PropTypes.shape({\n uri: PropTypes.string,\n width: PropTypes.number,\n height: PropTypes.number,\n headers: PropTypes.objectOf(PropTypes.string),\n }),\n ),\n ]),\n /**\n * blurRadius: the blur radius of the blur filter added to the image\n *\n * See https://facebook.github.io/react-native/docs/image.html#blurradius\n */\n blurRadius: PropTypes.number,\n /**\n * See https://facebook.github.io/react-native/docs/image.html#defaultsource\n */\n defaultSource: PropTypes.number,\n /**\n * See https://facebook.github.io/react-native/docs/image.html#loadingindicatorsource\n */\n loadingIndicatorSource: PropTypes.oneOfType([\n PropTypes.shape({\n uri: PropTypes.string,\n }),\n // Opaque type returned by require('./image.jpg')\n PropTypes.number,\n ]),\n progressiveRenderingEnabled: PropTypes.bool,\n fadeDuration: PropTypes.number,\n /**\n * Invoked on load start\n */\n onLoadStart: PropTypes.func,\n /**\n * Invoked on load error\n */\n onError: PropTypes.func,\n /**\n * Invoked when load completes successfully\n */\n onLoad: PropTypes.func,\n /**\n * Invoked when load either succeeds or fails\n */\n onLoadEnd: PropTypes.func,\n /**\n * Used to locate this view in end-to-end tests.\n */\n testID: PropTypes.string,\n /**\n * The mechanism that should be used to resize the image when the image's dimensions\n * differ from the image view's dimensions. Defaults to `auto`.\n *\n * See https://facebook.github.io/react-native/docs/image.html#resizemethod\n */\n resizeMethod: PropTypes.oneOf(['auto', 'resize', 'scale']),\n /**\n * Determines how to resize the image when the frame doesn't match the raw\n * image dimensions.\n *\n * See https://facebook.github.io/react-native/docs/image.html#resizemode\n */\n resizeMode: PropTypes.oneOf([\n 'cover',\n 'contain',\n 'stretch',\n 'repeat',\n 'center',\n ]),\n};\n\nfunction getSize(\n url: string,\n success: (width: number, height: number) => void,\n failure?: (error: any) => void,\n) {\n return ImageLoader.getSize(url)\n .then(function(sizes) {\n success(sizes.width, sizes.height);\n })\n .catch(\n failure ||\n function() {\n console.warn('Failed to get size for image: ' + url);\n },\n );\n}\n\nfunction prefetch(url: string, callback: ?Function) {\n const requestId = generateRequestId();\n callback && callback(requestId);\n return ImageLoader.prefetchImage(url, requestId);\n}\n\nfunction abortPrefetch(requestId: number) {\n ImageLoader.abortRequest(requestId);\n}\n\n/**\n * Perform cache interrogation.\n *\n * See https://facebook.github.io/react-native/docs/image.html#querycache\n */\nasync function queryCache(\n urls: Array,\n): Promise> {\n return await ImageLoader.queryCache(urls);\n}\n\ndeclare class ImageComponentType extends ReactNative.NativeComponent<\n ImagePropsType,\n> {\n static getSize: typeof getSize;\n static prefetch: typeof prefetch;\n static abortPrefetch: typeof abortPrefetch;\n static queryCache: typeof queryCache;\n static resolveAssetSource: typeof resolveAssetSource;\n static propTypes: typeof ImageProps;\n}\n\n/**\n * A React component for displaying different types of images,\n * including network images, static resources, temporary local images, and\n * images from local disk, such as the camera roll.\n *\n * See https://facebook.github.io/react-native/docs/image.html\n */\nlet Image = (\n props: ImagePropsType,\n forwardedRef: ?React.Ref<'RCTTextInlineImage' | 'RKImage'>,\n) => {\n let source = resolveAssetSource(props.source);\n const defaultSource = resolveAssetSource(props.defaultSource);\n const loadingIndicatorSource = resolveAssetSource(\n props.loadingIndicatorSource,\n );\n\n if (source && source.uri === '') {\n console.warn('source.uri should not be an empty string');\n }\n\n if (props.src) {\n console.warn(\n 'The component requires a `source` property rather than `src`.',\n );\n }\n\n if (props.children) {\n throw new Error(\n 'The component cannot contain children. If you want to render content on top of the image, consider using the component or absolute positioning.',\n );\n }\n\n if (props.defaultSource && props.loadingIndicatorSource) {\n throw new Error(\n 'The component cannot have defaultSource and loadingIndicatorSource at the same time. Please use either defaultSource or loadingIndicatorSource.',\n );\n }\n\n if (source && !source.uri && !Array.isArray(source)) {\n source = null;\n }\n\n let style;\n let sources;\n if (source?.uri != null) {\n /* $FlowFixMe(>=0.78.0 site=react_native_android_fb) This issue was found\n * when making Flow check .android.js files. */\n const {width, height} = source;\n style = flattenStyle([{width, height}, styles.base, props.style]);\n /* $FlowFixMe(>=0.78.0 site=react_native_android_fb) This issue was found\n * when making Flow check .android.js files. */\n sources = [{uri: source.uri}];\n } else {\n style = flattenStyle([styles.base, props.style]);\n sources = source;\n }\n\n const {onLoadStart, onLoad, onLoadEnd, onError} = props;\n const nativeProps = merge(props, {\n style,\n shouldNotifyLoadEvents: !!(onLoadStart || onLoad || onLoadEnd || onError),\n src: sources,\n /* $FlowFixMe(>=0.78.0 site=react_native_android_fb) This issue was found\n * when making Flow check .android.js files. */\n headers: source?.headers,\n defaultSrc: defaultSource ? defaultSource.uri : null,\n loadingIndicatorSrc: loadingIndicatorSource\n ? loadingIndicatorSource.uri\n : null,\n ref: forwardedRef,\n });\n\n return (\n \n {hasTextAncestor =>\n hasTextAncestor ? (\n \n ) : (\n \n )\n }\n \n );\n};\n\n// $FlowFixMe - TODO T29156721 `React.forwardRef` is not defined in Flow, yet.\nImage = React.forwardRef(Image);\n\n/**\n * Prefetches a remote image for later use by downloading it to the disk\n * cache\n *\n * See https://facebook.github.io/react-native/docs/image.html#prefetch\n */\nImage.getSize = getSize;\n\n/**\n * Prefetches a remote image for later use by downloading it to the disk\n * cache\n *\n * See https://facebook.github.io/react-native/docs/image.html#prefetch\n */\nImage.prefetch = prefetch;\n\n/**\n * Abort prefetch request.\n *\n * See https://facebook.github.io/react-native/docs/image.html#abortprefetch\n */\nImage.abortPrefetch = abortPrefetch;\n\n/**\n * Perform cache interrogation.\n *\n * See https://facebook.github.io/react-native/docs/image.html#querycache\n */\nImage.queryCache = queryCache;\n\n/**\n * Resolves an asset reference into an object.\n *\n * See https://facebook.github.io/react-native/docs/image.html#resolveassetsource\n */\nImage.resolveAssetSource = resolveAssetSource;\n\nImage.propTypes = ImageProps;\n\nconst styles = StyleSheet.create({\n base: {\n overflow: 'hidden',\n },\n});\n\nmodule.exports = (Image: Class);\n","/**\n * Copyright (c) 2015-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n * @flow\n */\n\n'use strict';\n\nconst React = require('React');\nconst EdgeInsetsPropType = require('EdgeInsetsPropType');\nconst PlatformViewPropTypes = require('PlatformViewPropTypes');\nconst PropTypes = require('prop-types');\nconst StyleSheetPropType = require('StyleSheetPropType');\nconst ViewStylePropTypes = require('ViewStylePropTypes');\n\nconst {\n AccessibilityComponentTypes,\n AccessibilityTraits,\n AccessibilityRoles,\n AccessibilityStates,\n} = require('ViewAccessibility');\n\nimport type {\n AccessibilityComponentType,\n AccessibilityTrait,\n AccessibilityRole,\n AccessibilityState,\n} from 'ViewAccessibility';\nimport type {EdgeInsetsProp} from 'EdgeInsetsPropType';\nimport type {TVViewProps} from 'TVViewPropTypes';\nimport type {Layout, LayoutEvent} from 'CoreEventTypes';\n\nconst stylePropType = StyleSheetPropType(ViewStylePropTypes);\n\nexport type ViewLayout = Layout;\nexport type ViewLayoutEvent = LayoutEvent;\n\ntype DirectEventProps = $ReadOnly<{|\n onAccessibilityAction?: Function,\n onAccessibilityTap?: Function,\n onLayout?: ?(event: LayoutEvent) => void,\n onMagicTap?: Function,\n|}>;\n\ntype TouchEventProps = $ReadOnly<{|\n onTouchCancel?: ?Function,\n onTouchCancelCapture?: ?Function,\n onTouchEnd?: ?Function,\n onTouchEndCapture?: ?Function,\n onTouchMove?: ?Function,\n onTouchMoveCapture?: ?Function,\n onTouchStart?: ?Function,\n onTouchStartCapture?: ?Function,\n|}>;\n\ntype GestureResponderEventProps = $ReadOnly<{|\n onMoveShouldSetResponder?: ?Function,\n onMoveShouldSetResponderCapture?: ?Function,\n onResponderGrant?: ?Function,\n onResponderMove?: ?Function,\n onResponderReject?: ?Function,\n onResponderRelease?: ?Function,\n onResponderStart?: ?Function,\n onResponderTerminate?: ?Function,\n onResponderTerminationRequest?: ?Function,\n onStartShouldSetResponder?: ?Function,\n onStartShouldSetResponderCapture?: ?Function,\n|}>;\n\ntype AndroidViewProps = $ReadOnly<{|\n nativeBackgroundAndroid?: ?Object,\n nativeForegroundAndroid?: ?Object,\n\n /* Deprecated transform prop. Use the transform style prop instead */\n rotation?: empty,\n /* Deprecated transform prop. Use the transform style prop instead */\n scaleX?: empty,\n /* Deprecated transform prop. Use the transform style prop instead */\n scaleY?: empty,\n /* Deprecated transform prop. Use the transform style prop instead */\n translateX?: empty,\n /* Deprecated transform prop. Use the transform style prop instead */\n translateY?: empty,\n|}>;\n\nexport type ViewProps = $ReadOnly<{|\n ...DirectEventProps,\n ...GestureResponderEventProps,\n ...TouchEventProps,\n ...AndroidViewProps,\n\n // There's no easy way to create a different type if (Platform.isTV):\n // so we must include TVViewProps\n ...TVViewProps,\n\n accessible?: boolean,\n accessibilityLabel?:\n | null\n | React$PropType$Primitive\n | string\n | Array\n | any,\n accessibilityHint?: string,\n accessibilityActions?: Array,\n accessibilityComponentType?: AccessibilityComponentType,\n accessibilityLiveRegion?: 'none' | 'polite' | 'assertive',\n importantForAccessibility?: 'auto' | 'yes' | 'no' | 'no-hide-descendants',\n accessibilityIgnoresInvertColors?: boolean,\n accessibilityTraits?: AccessibilityTrait | Array,\n accessibilityRole?: AccessibilityRole,\n accessibilityStates?: Array,\n accessibilityViewIsModal?: boolean,\n accessibilityElementsHidden?: boolean,\n children?: ?React.Node,\n testID?: ?string,\n nativeID?: string,\n hitSlop?: ?EdgeInsetsProp,\n pointerEvents?: null | 'box-none' | 'none' | 'box-only' | 'auto',\n style?: stylePropType,\n removeClippedSubviews?: boolean,\n renderToHardwareTextureAndroid?: boolean,\n shouldRasterizeIOS?: boolean,\n collapsable?: boolean,\n needsOffscreenAlphaCompositing?: boolean,\n|}>;\n\nmodule.exports = {\n /**\n * When `true`, indicates that the view is an accessibility element.\n * By default, all the touchable elements are accessible.\n *\n * See http://facebook.github.io/react-native/docs/view.html#accessible\n */\n accessible: PropTypes.bool,\n\n /**\n * Overrides the text that's read by the screen reader when the user interacts\n * with the element. By default, the label is constructed by traversing all\n * the children and accumulating all the `Text` nodes separated by space.\n *\n * See http://facebook.github.io/react-native/docs/view.html#accessibilitylabel\n */\n accessibilityLabel: PropTypes.node,\n\n /**\n * An accessibility hint helps users understand what will happen when they perform\n * an action on the accessibility element when that result is not obvious from the\n * accessibility label.\n *\n *\n * See http://facebook.github.io/react-native/docs/view.html#accessibilityHint\n */\n accessibilityHint: PropTypes.string,\n\n /**\n * Provides an array of custom actions available for accessibility.\n *\n * @platform ios\n */\n accessibilityActions: PropTypes.arrayOf(PropTypes.string),\n\n /**\n * Prevents view from being inverted if set to true and color inversion is turned on.\n *\n * @platform ios\n */\n accessibilityIgnoresInvertColors: PropTypes.bool,\n\n /**\n * Indicates to accessibility services to treat UI component like a\n * native one. Works for Android only.\n *\n * @platform android\n *\n * See http://facebook.github.io/react-native/docs/view.html#accessibilitycomponenttype\n */\n accessibilityComponentType: PropTypes.oneOf(AccessibilityComponentTypes),\n\n /**\n * Indicates to accessibility services to treat UI component like a specific role.\n */\n accessibilityRole: PropTypes.oneOf(AccessibilityRoles),\n\n /**\n * Indicates to accessibility services that UI Component is in a specific State.\n */\n accessibilityStates: PropTypes.arrayOf(PropTypes.oneOf(AccessibilityStates)),\n /**\n * Indicates to accessibility services whether the user should be notified\n * when this view changes. Works for Android API >= 19 only.\n *\n * @platform android\n *\n * See http://facebook.github.io/react-native/docs/view.html#accessibilityliveregion\n */\n accessibilityLiveRegion: PropTypes.oneOf(['none', 'polite', 'assertive']),\n\n /**\n * Controls how view is important for accessibility which is if it\n * fires accessibility events and if it is reported to accessibility services\n * that query the screen. Works for Android only.\n *\n * @platform android\n *\n * See http://facebook.github.io/react-native/docs/view.html#importantforaccessibility\n */\n importantForAccessibility: PropTypes.oneOf([\n 'auto',\n 'yes',\n 'no',\n 'no-hide-descendants',\n ]),\n\n /**\n * Provides additional traits to screen reader. By default no traits are\n * provided unless specified otherwise in element.\n *\n * You can provide one trait or an array of many traits.\n *\n * @platform ios\n *\n * See http://facebook.github.io/react-native/docs/view.html#accessibilitytraits\n */\n accessibilityTraits: PropTypes.oneOfType([\n PropTypes.oneOf(AccessibilityTraits),\n PropTypes.arrayOf(PropTypes.oneOf(AccessibilityTraits)),\n ]),\n\n /**\n * A value indicating whether VoiceOver should ignore the elements\n * within views that are siblings of the receiver.\n * Default is `false`.\n *\n * @platform ios\n *\n * See http://facebook.github.io/react-native/docs/view.html#accessibilityviewismodal\n */\n accessibilityViewIsModal: PropTypes.bool,\n\n /**\n * A value indicating whether the accessibility elements contained within\n * this accessibility element are hidden.\n *\n * @platform ios\n *\n * See http://facebook.github.io/react-native/docs/view.html#accessibilityElementsHidden\n */\n accessibilityElementsHidden: PropTypes.bool,\n\n /**\n * When `accessible` is true, the system will try to invoke this function\n * when the user performs an accessibility custom action.\n *\n * @platform ios\n */\n onAccessibilityAction: PropTypes.func,\n\n /**\n * When `accessible` is true, the system will try to invoke this function\n * when the user performs accessibility tap gesture.\n *\n * See http://facebook.github.io/react-native/docs/view.html#onaccessibilitytap\n */\n onAccessibilityTap: PropTypes.func,\n\n /**\n * When `accessible` is `true`, the system will invoke this function when the\n * user performs the magic tap gesture.\n *\n * See http://facebook.github.io/react-native/docs/view.html#onmagictap\n */\n onMagicTap: PropTypes.func,\n\n /**\n * Used to locate this view in end-to-end tests.\n *\n * > This disables the 'layout-only view removal' optimization for this view!\n *\n * See http://facebook.github.io/react-native/docs/view.html#testid\n */\n testID: PropTypes.string,\n\n /**\n * Used to locate this view from native classes.\n *\n * > This disables the 'layout-only view removal' optimization for this view!\n *\n * See http://facebook.github.io/react-native/docs/view.html#nativeid\n */\n nativeID: PropTypes.string,\n\n /**\n * For most touch interactions, you'll simply want to wrap your component in\n * `TouchableHighlight` or `TouchableOpacity`. Check out `Touchable.js`,\n * `ScrollResponder.js` and `ResponderEventPlugin.js` for more discussion.\n */\n\n /**\n * The View is now responding for touch events. This is the time to highlight\n * and show the user what is happening.\n *\n * `View.props.onResponderGrant: (event) => {}`, where `event` is a synthetic\n * touch event as described above.\n *\n * See http://facebook.github.io/react-native/docs/view.html#onrespondergrant\n */\n onResponderGrant: PropTypes.func,\n\n /**\n * The user is moving their finger.\n *\n * `View.props.onResponderMove: (event) => {}`, where `event` is a synthetic\n * touch event as described above.\n *\n * See http://facebook.github.io/react-native/docs/view.html#onrespondermove\n */\n onResponderMove: PropTypes.func,\n\n /**\n * Another responder is already active and will not release it to that `View`\n * asking to be the responder.\n *\n * `View.props.onResponderReject: (event) => {}`, where `event` is a\n * synthetic touch event as described above.\n *\n * See http://facebook.github.io/react-native/docs/view.html#onresponderreject\n */\n onResponderReject: PropTypes.func,\n\n /**\n * Fired at the end of the touch.\n *\n * `View.props.onResponderRelease: (event) => {}`, where `event` is a\n * synthetic touch event as described above.\n *\n * See http://facebook.github.io/react-native/docs/view.html#onresponderrelease\n */\n onResponderRelease: PropTypes.func,\n\n /**\n * The responder has been taken from the `View`. Might be taken by other\n * views after a call to `onResponderTerminationRequest`, or might be taken\n * by the OS without asking (e.g., happens with control center/ notification\n * center on iOS)\n *\n * `View.props.onResponderTerminate: (event) => {}`, where `event` is a\n * synthetic touch event as described above.\n *\n * See http://facebook.github.io/react-native/docs/view.html#onresponderterminate\n */\n onResponderTerminate: PropTypes.func,\n\n /**\n * Some other `View` wants to become responder and is asking this `View` to\n * release its responder. Returning `true` allows its release.\n *\n * `View.props.onResponderTerminationRequest: (event) => {}`, where `event`\n * is a synthetic touch event as described above.\n *\n * See http://facebook.github.io/react-native/docs/view.html#onresponderterminationrequest\n */\n onResponderTerminationRequest: PropTypes.func,\n\n /**\n * Does this view want to become responder on the start of a touch?\n *\n * `View.props.onStartShouldSetResponder: (event) => [true | false]`, where\n * `event` is a synthetic touch event as described above.\n *\n * See http://facebook.github.io/react-native/docs/view.html#onstartshouldsetresponder\n */\n onStartShouldSetResponder: PropTypes.func,\n\n /**\n * If a parent `View` wants to prevent a child `View` from becoming responder\n * on a touch start, it should have this handler which returns `true`.\n *\n * `View.props.onStartShouldSetResponderCapture: (event) => [true | false]`,\n * where `event` is a synthetic touch event as described above.\n *\n * See http://facebook.github.io/react-native/docs/view.html#onstartshouldsetrespondercapture\n */\n onStartShouldSetResponderCapture: PropTypes.func,\n\n /**\n * Does this view want to \"claim\" touch responsiveness? This is called for\n * every touch move on the `View` when it is not the responder.\n *\n * `View.props.onMoveShouldSetResponder: (event) => [true | false]`, where\n * `event` is a synthetic touch event as described above.\n *\n * See http://facebook.github.io/react-native/docs/view.html#onmoveshouldsetresponder\n */\n onMoveShouldSetResponder: PropTypes.func,\n\n /**\n * If a parent `View` wants to prevent a child `View` from becoming responder\n * on a move, it should have this handler which returns `true`.\n *\n * `View.props.onMoveShouldSetResponderCapture: (event) => [true | false]`,\n * where `event` is a synthetic touch event as described above.\n *\n * See http://facebook.github.io/react-native/docs/view.html#onMoveShouldsetrespondercapture\n */\n onMoveShouldSetResponderCapture: PropTypes.func,\n\n /**\n * This defines how far a touch event can start away from the view.\n * Typical interface guidelines recommend touch targets that are at least\n * 30 - 40 points/density-independent pixels.\n *\n * > The touch area never extends past the parent view bounds and the Z-index\n * > of sibling views always takes precedence if a touch hits two overlapping\n * > views.\n *\n * See http://facebook.github.io/react-native/docs/view.html#hitslop\n */\n hitSlop: EdgeInsetsPropType,\n\n /**\n * Invoked on mount and layout changes with:\n *\n * `{nativeEvent: { layout: {x, y, width, height}}}`\n *\n * This event is fired immediately once the layout has been calculated, but\n * the new layout may not yet be reflected on the screen at the time the\n * event is received, especially if a layout animation is in progress.\n *\n * See http://facebook.github.io/react-native/docs/view.html#onlayout\n */\n onLayout: PropTypes.func,\n\n /**\n * Controls whether the `View` can be the target of touch events.\n *\n * See http://facebook.github.io/react-native/docs/view.html#pointerevents\n */\n pointerEvents: PropTypes.oneOf(['box-none', 'none', 'box-only', 'auto']),\n\n /**\n * See http://facebook.github.io/react-native/docs/style.html\n */\n style: stylePropType,\n\n /**\n * This is a special performance property exposed by `RCTView` and is useful\n * for scrolling content when there are many subviews, most of which are\n * offscreen. For this property to be effective, it must be applied to a\n * view that contains many subviews that extend outside its bound. The\n * subviews must also have `overflow: hidden`, as should the containing view\n * (or one of its superviews).\n *\n * See http://facebook.github.io/react-native/docs/view.html#removeclippedsubviews\n */\n removeClippedSubviews: PropTypes.bool,\n\n /**\n * Whether this `View` should render itself (and all of its children) into a\n * single hardware texture on the GPU.\n *\n * @platform android\n *\n * See http://facebook.github.io/react-native/docs/view.html#rendertohardwaretextureandroid\n */\n renderToHardwareTextureAndroid: PropTypes.bool,\n\n /**\n * Whether this `View` should be rendered as a bitmap before compositing.\n *\n * @platform ios\n *\n * See http://facebook.github.io/react-native/docs/view.html#shouldrasterizeios\n */\n shouldRasterizeIOS: PropTypes.bool,\n\n /**\n * Views that are only used to layout their children or otherwise don't draw\n * anything may be automatically removed from the native hierarchy as an\n * optimization. Set this property to `false` to disable this optimization and\n * ensure that this `View` exists in the native view hierarchy.\n *\n * @platform android\n *\n * See http://facebook.github.io/react-native/docs/view.html#collapsable\n */\n collapsable: PropTypes.bool,\n\n /**\n * Whether this `View` needs to rendered offscreen and composited with an\n * alpha in order to preserve 100% correct colors and blending behavior.\n *\n * @platform android\n *\n * See http://facebook.github.io/react-native/docs/view.html#needsoffscreenalphacompositing\n */\n needsOffscreenAlphaCompositing: PropTypes.bool,\n\n /**\n * Any additional platform-specific view prop types, or prop type overrides.\n */\n ...PlatformViewPropTypes,\n};\n","/**\n * Copyright (c) 2015-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n * @flow strict-local\n */\n\nconst Platform = require('Platform');\n\nlet TVViewPropTypes = {};\n// We need to always include TVViewPropTypes on Android\n// as unlike on iOS we can't detect TV devices at build time\n// and hence make view manager export a different list of native properties.\nif (Platform.isTV || Platform.OS === 'android') {\n TVViewPropTypes = require('TVViewPropTypes');\n}\n\nmodule.exports = TVViewPropTypes;\n","/**\n * Copyright (c) 2015-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n * @flow\n */\n\n'use strict';\nconst PropTypes = require('prop-types');\n\n/**\n * Additional View properties for Apple TV\n */\nconst TVViewPropTypes = {\n /**\n * When set to true, this view will be focusable\n * and navigable using the TV remote.\n */\n isTVSelectable: PropTypes.bool,\n\n /**\n * May be set to true to force the TV focus engine to move focus to this view.\n */\n hasTVPreferredFocus: PropTypes.bool,\n\n /**\n * *(Apple TV only)* Object with properties to control Apple TV parallax effects.\n *\n * enabled: If true, parallax effects are enabled. Defaults to true.\n * shiftDistanceX: Defaults to 2.0.\n * shiftDistanceY: Defaults to 2.0.\n * tiltAngle: Defaults to 0.05.\n * magnification: Defaults to 1.0.\n * pressMagnification: Defaults to 1.0.\n * pressDuration: Defaults to 0.3.\n * pressDelay: Defaults to 0.0.\n *\n * @platform ios\n */\n tvParallaxProperties: PropTypes.object,\n\n /**\n * *(Apple TV only)* May be used to change the appearance of the Apple TV parallax effect when this view goes in or out of focus. Defaults to 2.0.\n *\n * @platform ios\n */\n tvParallaxShiftDistanceX: PropTypes.number,\n\n /**\n * *(Apple TV only)* May be used to change the appearance of the Apple TV parallax effect when this view goes in or out of focus. Defaults to 2.0.\n *\n * @platform ios\n */\n tvParallaxShiftDistanceY: PropTypes.number,\n\n /**\n * *(Apple TV only)* May be used to change the appearance of the Apple TV parallax effect when this view goes in or out of focus. Defaults to 0.05.\n *\n * @platform ios\n */\n tvParallaxTiltAngle: PropTypes.number,\n\n /**\n * *(Apple TV only)* May be used to change the appearance of the Apple TV parallax effect when this view goes in or out of focus. Defaults to 1.0.\n *\n * @platform ios\n */\n tvParallaxMagnification: PropTypes.number,\n};\n\nexport type TVViewProps = $ReadOnly<{|\n isTVSelectable?: boolean,\n hasTVPreferredFocus?: boolean,\n tvParallaxProperties?: Object,\n tvParallaxShiftDistanceX?: number,\n tvParallaxShiftDistanceY?: number,\n tvParallaxTiltAngle?: number,\n tvParallaxMagnification?: number,\n|}>;\n\nmodule.exports = TVViewPropTypes;\n","/**\n * Copyright (c) 2015-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @flow\n * @format\n */\n'use strict';\n\nconst MetroListView = require('MetroListView');\nconst Platform = require('Platform');\nconst React = require('React');\nconst ScrollView = require('ScrollView');\nconst VirtualizedSectionList = require('VirtualizedSectionList');\n\nimport type {ViewToken} from 'ViewabilityHelper';\nimport type {Props as VirtualizedSectionListProps} from 'VirtualizedSectionList';\n\ntype Item = any;\n\nexport type SectionBase = {\n /**\n * The data for rendering items in this section.\n */\n data: $ReadOnlyArray,\n /**\n * Optional key to keep track of section re-ordering. If you don't plan on re-ordering sections,\n * the array index will be used by default.\n */\n key?: string,\n\n // Optional props will override list-wide props just for this section.\n renderItem?: ?(info: {\n item: SectionItemT,\n index: number,\n section: SectionBase,\n separators: {\n highlight: () => void,\n unhighlight: () => void,\n updateProps: (select: 'leading' | 'trailing', newProps: Object) => void,\n },\n }) => ?React.Element,\n ItemSeparatorComponent?: ?React.ComponentType,\n keyExtractor?: (item: SectionItemT) => string,\n\n // TODO: support more optional/override props\n // onViewableItemsChanged?: ...\n};\n\ntype RequiredProps> = {\n /**\n * The actual data to render, akin to the `data` prop in [``](/react-native/docs/flatlist.html).\n *\n * General shape:\n *\n * sections: $ReadOnlyArray<{\n * data: $ReadOnlyArray,\n * renderItem?: ({item: SectionItem, ...}) => ?React.Element<*>,\n * ItemSeparatorComponent?: ?ReactClass<{highlighted: boolean, ...}>,\n * }>\n */\n sections: $ReadOnlyArray,\n};\n\ntype OptionalProps> = {\n /**\n * Default renderer for every item in every section. Can be over-ridden on a per-section basis.\n */\n renderItem?: (info: {\n item: Item,\n index: number,\n section: SectionT,\n separators: {\n highlight: () => void,\n unhighlight: () => void,\n updateProps: (select: 'leading' | 'trailing', newProps: Object) => void,\n },\n }) => ?React.Element,\n /**\n * Rendered in between each item, but not at the top or bottom. By default, `highlighted`,\n * `section`, and `[leading/trailing][Item/Separator]` props are provided. `renderItem` provides\n * `separators.highlight`/`unhighlight` which will update the `highlighted` prop, but you can also\n * add custom props with `separators.updateProps`.\n */\n ItemSeparatorComponent?: ?React.ComponentType,\n /**\n * Rendered at the very beginning of the list. Can be a React Component Class, a render function, or\n * a rendered element.\n */\n ListHeaderComponent?: ?(React.ComponentType | React.Element),\n /**\n * Rendered when the list is empty. Can be a React Component Class, a render function, or\n * a rendered element.\n */\n ListEmptyComponent?: ?(React.ComponentType | React.Element),\n /**\n * Rendered at the very end of the list. Can be a React Component Class, a render function, or\n * a rendered element.\n */\n ListFooterComponent?: ?(React.ComponentType | React.Element),\n /**\n * Rendered at the top and bottom of each section (note this is different from\n * `ItemSeparatorComponent` which is only rendered between items). These are intended to separate\n * sections from the headers above and below and typically have the same highlight response as\n * `ItemSeparatorComponent`. Also receives `highlighted`, `[leading/trailing][Item/Separator]`,\n * and any custom props from `separators.updateProps`.\n */\n SectionSeparatorComponent?: ?React.ComponentType,\n /**\n * A marker property for telling the list to re-render (since it implements `PureComponent`). If\n * any of your `renderItem`, Header, Footer, etc. functions depend on anything outside of the\n * `data` prop, stick it here and treat it immutably.\n */\n extraData?: any,\n /**\n * How many items to render in the initial batch. This should be enough to fill the screen but not\n * much more. Note these items will never be unmounted as part of the windowed rendering in order\n * to improve perceived performance of scroll-to-top actions.\n */\n initialNumToRender: number,\n /**\n * Reverses the direction of scroll. Uses scale transforms of -1.\n */\n inverted?: ?boolean,\n /**\n * Used to extract a unique key for a given item at the specified index. Key is used for caching\n * and as the react key to track item re-ordering. The default extractor checks item.key, then\n * falls back to using the index, like react does. Note that this sets keys for each item, but\n * each overall section still needs its own key.\n */\n keyExtractor: (item: Item, index: number) => string,\n /**\n * Called once when the scroll position gets within `onEndReachedThreshold` of the rendered\n * content.\n */\n onEndReached?: ?(info: {distanceFromEnd: number}) => void,\n /**\n * How far from the end (in units of visible length of the list) the bottom edge of the\n * list must be from the end of the content to trigger the `onEndReached` callback.\n * Thus a value of 0.5 will trigger `onEndReached` when the end of the content is\n * within half the visible length of the list.\n */\n onEndReachedThreshold?: ?number,\n /**\n * If provided, a standard RefreshControl will be added for \"Pull to Refresh\" functionality. Make\n * sure to also set the `refreshing` prop correctly.\n */\n onRefresh?: ?() => void,\n /**\n * Called when the viewability of rows changes, as defined by the\n * `viewabilityConfig` prop.\n */\n onViewableItemsChanged?: ?(info: {\n viewableItems: Array,\n changed: Array,\n }) => void,\n /**\n * Set this true while waiting for new data from a refresh.\n */\n refreshing?: ?boolean,\n /**\n * Note: may have bugs (missing content) in some circumstances - use at your own risk.\n *\n * This may improve scroll performance for large lists.\n */\n removeClippedSubviews?: boolean,\n /**\n * Rendered at the top of each section. These stick to the top of the `ScrollView` by default on\n * iOS. See `stickySectionHeadersEnabled`.\n */\n renderSectionHeader?: ?(info: {section: SectionT}) => ?React.Element,\n /**\n * Rendered at the bottom of each section.\n */\n renderSectionFooter?: ?(info: {section: SectionT}) => ?React.Element,\n /**\n * Makes section headers stick to the top of the screen until the next one pushes it off. Only\n * enabled by default on iOS because that is the platform standard there.\n */\n stickySectionHeadersEnabled?: boolean,\n\n legacyImplementation?: ?boolean,\n};\n\nexport type Props = RequiredProps &\n OptionalProps &\n VirtualizedSectionListProps;\n\nconst defaultProps = {\n ...VirtualizedSectionList.defaultProps,\n stickySectionHeadersEnabled: Platform.OS === 'ios',\n};\n\ntype DefaultProps = typeof defaultProps;\n\n/**\n * A performant interface for rendering sectioned lists, supporting the most handy features:\n *\n * - Fully cross-platform.\n * - Configurable viewability callbacks.\n * - List header support.\n * - List footer support.\n * - Item separator support.\n * - Section header support.\n * - Section separator support.\n * - Heterogeneous data and item rendering support.\n * - Pull to Refresh.\n * - Scroll loading.\n *\n * If you don't need section support and want a simpler interface, use\n * [``](/react-native/docs/flatlist.html).\n *\n * Simple Examples:\n *\n * }\n * renderSectionHeader={({section}) =>
}\n * sections={[ // homogeneous rendering between sections\n * {data: [...], title: ...},\n * {data: [...], title: ...},\n * {data: [...], title: ...},\n * ]}\n * />\n *\n * \n *\n * This is a convenience wrapper around [``](docs/virtualizedlist.html),\n * and thus inherits its props (as well as those of `ScrollView`) that aren't explicitly listed\n * here, along with the following caveats:\n *\n * - Internal state is not preserved when content scrolls out of the render window. Make sure all\n * your data is captured in the item data or external stores like Flux, Redux, or Relay.\n * - This is a `PureComponent` which means that it will not re-render if `props` remain shallow-\n * equal. Make sure that everything your `renderItem` function depends on is passed as a prop\n * (e.g. `extraData`) that is not `===` after updates, otherwise your UI may not update on\n * changes. This includes the `data` prop and parent component state.\n * - In order to constrain memory and enable smooth scrolling, content is rendered asynchronously\n * offscreen. This means it's possible to scroll faster than the fill rate and momentarily see\n * blank content. This is a tradeoff that can be adjusted to suit the needs of each application,\n * and we are working on improving it behind the scenes.\n * - By default, the list looks for a `key` prop on each item and uses that for the React key.\n * Alternatively, you can provide a custom `keyExtractor` prop.\n *\n */\nclass SectionList> extends React.PureComponent<\n Props,\n void,\n> {\n props: Props;\n static defaultProps: DefaultProps = defaultProps;\n\n /**\n * Scrolls to the item at the specified `sectionIndex` and `itemIndex` (within the section)\n * positioned in the viewable area such that `viewPosition` 0 places it at the top (and may be\n * covered by a sticky header), 1 at the bottom, and 0.5 centered in the middle. `viewOffset` is a\n * fixed number of pixels to offset the final target position, e.g. to compensate for sticky\n * headers.\n *\n * Note: cannot scroll to locations outside the render window without specifying the\n * `getItemLayout` prop.\n */\n scrollToLocation(params: {\n animated?: ?boolean,\n itemIndex: number,\n sectionIndex: number,\n viewOffset?: number,\n viewPosition?: number,\n }) {\n this._wrapperListRef.scrollToLocation(params);\n }\n\n /**\n * Tells the list an interaction has occurred, which should trigger viewability calculations, e.g.\n * if `waitForInteractions` is true and the user has not scrolled. This is typically called by\n * taps on items or by navigation actions.\n */\n recordInteraction() {\n const listRef = this._wrapperListRef && this._wrapperListRef.getListRef();\n // $FlowFixMe Found when typing ListView\n listRef && listRef.recordInteraction();\n }\n\n /**\n * Displays the scroll indicators momentarily.\n *\n * @platform ios\n */\n flashScrollIndicators() {\n const listRef = this._wrapperListRef && this._wrapperListRef.getListRef();\n listRef && listRef.flashScrollIndicators();\n }\n\n /**\n * Provides a handle to the underlying scroll responder.\n */\n getScrollResponder(): ?ScrollView {\n const listRef = this._wrapperListRef && this._wrapperListRef.getListRef();\n if (listRef) {\n return listRef.getScrollResponder();\n }\n }\n\n getScrollableNode() {\n const listRef = this._wrapperListRef && this._wrapperListRef.getListRef();\n if (listRef) {\n return listRef.getScrollableNode();\n }\n }\n\n setNativeProps(props: Object) {\n const listRef = this._wrapperListRef && this._wrapperListRef.getListRef();\n if (listRef) {\n listRef.setNativeProps(props);\n }\n }\n\n render() {\n const List = this.props.legacyImplementation\n ? MetroListView\n : VirtualizedSectionList;\n /* $FlowFixMe(>=0.66.0 site=react_native_fb) This comment suppresses an\n * error found when Flow v0.66 was deployed. To see the error delete this\n * comment and run Flow. */\n return ;\n }\n\n _wrapperListRef: MetroListView | VirtualizedSectionList;\n _captureRef = ref => {\n /* $FlowFixMe(>=0.53.0 site=react_native_fb,react_native_oss) This comment\n * suppresses an error when upgrading Flow's support for React. To see the\n * error delete this comment and run Flow. */\n this._wrapperListRef = ref;\n };\n}\n\nmodule.exports = SectionList;\n","/**\n * Copyright (c) 2015-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @flow\n * @format\n */\n'use strict';\n\nconst React = require('React');\nconst View = require('View');\nconst VirtualizedList = require('VirtualizedList');\n\nconst invariant = require('fbjs/lib/invariant');\n\nimport type {ViewToken} from 'ViewabilityHelper';\nimport type {Props as VirtualizedListProps} from 'VirtualizedList';\n\ntype Item = any;\ntype SectionItem = any;\n\ntype SectionBase = {\n // Must be provided directly on each section.\n data: $ReadOnlyArray,\n key?: string,\n\n // Optional props will override list-wide props just for this section.\n renderItem?: ?({\n item: SectionItem,\n index: number,\n section: SectionBase,\n separators: {\n highlight: () => void,\n unhighlight: () => void,\n updateProps: (select: 'leading' | 'trailing', newProps: Object) => void,\n },\n }) => ?React.Element,\n ItemSeparatorComponent?: ?React.ComponentType,\n keyExtractor?: (item: SectionItem, index: ?number) => string,\n\n // TODO: support more optional/override props\n // FooterComponent?: ?ReactClass,\n // HeaderComponent?: ?ReactClass,\n // onViewableItemsChanged?: ({viewableItems: Array, changed: Array}) => void,\n};\n\ntype RequiredProps = {\n sections: $ReadOnlyArray,\n};\n\ntype OptionalProps = {\n /**\n * Rendered after the last item in the last section.\n */\n ListFooterComponent?: ?(React.ComponentType | React.Element),\n /**\n * Rendered at the very beginning of the list.\n */\n ListHeaderComponent?: ?(React.ComponentType | React.Element),\n /**\n * Default renderer for every item in every section.\n */\n renderItem?: (info: {\n item: Item,\n index: number,\n section: SectionT,\n separators: {\n highlight: () => void,\n unhighlight: () => void,\n updateProps: (select: 'leading' | 'trailing', newProps: Object) => void,\n },\n }) => ?React.Element,\n /**\n * Rendered at the top of each section.\n */\n renderSectionHeader?: ?({section: SectionT}) => ?React.Element,\n /**\n * Rendered at the bottom of each section.\n */\n renderSectionFooter?: ?({section: SectionT}) => ?React.Element,\n /**\n * Rendered at the bottom of every Section, except the very last one, in place of the normal\n * ItemSeparatorComponent.\n */\n SectionSeparatorComponent?: ?React.ComponentType,\n /**\n * Rendered at the bottom of every Item except the very last one in the last section.\n */\n ItemSeparatorComponent?: ?React.ComponentType,\n /**\n * Warning: Virtualization can drastically improve memory consumption for long lists, but trashes\n * the state of items when they scroll out of the render window, so make sure all relavent data is\n * stored outside of the recursive `renderItem` instance tree.\n */\n enableVirtualization?: ?boolean,\n keyExtractor: (item: Item, index: number) => string,\n onEndReached?: ?({distanceFromEnd: number}) => void,\n /**\n * If provided, a standard RefreshControl will be added for \"Pull to Refresh\" functionality. Make\n * sure to also set the `refreshing` prop correctly.\n */\n onRefresh?: ?() => void,\n /**\n * Called when the viewability of rows changes, as defined by the\n * `viewabilityConfig` prop.\n */\n onViewableItemsChanged?: ?({\n viewableItems: Array,\n changed: Array,\n }) => void,\n /**\n * Set this true while waiting for new data from a refresh.\n */\n refreshing?: ?boolean,\n};\n\nexport type Props = RequiredProps &\n OptionalProps &\n VirtualizedListProps;\n\ntype DefaultProps = typeof VirtualizedList.defaultProps & {\n data: $ReadOnlyArray,\n};\ntype State = {childProps: VirtualizedListProps};\n\n/**\n * Right now this just flattens everything into one list and uses VirtualizedList under the\n * hood. The only operation that might not scale well is concatting the data arrays of all the\n * sections when new props are received, which should be plenty fast for up to ~10,000 items.\n */\nclass VirtualizedSectionList extends React.PureComponent<\n Props,\n State,\n> {\n static defaultProps: DefaultProps = {\n ...VirtualizedList.defaultProps,\n data: [],\n };\n\n scrollToLocation(params: {\n animated?: ?boolean,\n itemIndex: number,\n sectionIndex: number,\n viewPosition?: number,\n }) {\n let index = params.itemIndex + 1;\n for (let ii = 0; ii < params.sectionIndex; ii++) {\n index += this.props.sections[ii].data.length + 2;\n }\n const toIndexParams = {\n ...params,\n index,\n };\n this._listRef.scrollToIndex(toIndexParams);\n }\n\n getListRef(): VirtualizedList {\n return this._listRef;\n }\n\n constructor(props: Props, context: Object) {\n super(props, context);\n this.state = this._computeState(props);\n }\n\n UNSAFE_componentWillReceiveProps(nextProps: Props) {\n this.setState(this._computeState(nextProps));\n }\n\n _computeState(props: Props): State {\n const offset = props.ListHeaderComponent ? 1 : 0;\n const stickyHeaderIndices = [];\n const itemCount = props.sections.reduce((v, section) => {\n stickyHeaderIndices.push(v + offset);\n return v + section.data.length + 2; // Add two for the section header and footer.\n }, 0);\n\n return {\n childProps: {\n ...props,\n renderItem: this._renderItem,\n ItemSeparatorComponent: undefined, // Rendered with renderItem\n data: props.sections,\n getItemCount: () => itemCount,\n getItem,\n keyExtractor: this._keyExtractor,\n onViewableItemsChanged: props.onViewableItemsChanged\n ? this._onViewableItemsChanged\n : undefined,\n stickyHeaderIndices: props.stickySectionHeadersEnabled\n ? stickyHeaderIndices\n : undefined,\n },\n };\n }\n\n render() {\n return (\n \n );\n }\n\n _keyExtractor = (item: Item, index: number) => {\n const info = this._subExtractor(index);\n return (info && info.key) || String(index);\n };\n\n _subExtractor(\n index: number,\n ): ?{\n section: SectionT,\n key: string, // Key of the section or combined key for section + item\n index: ?number, // Relative index within the section\n header?: ?boolean, // True if this is the section header\n leadingItem?: ?Item,\n leadingSection?: ?SectionT,\n trailingItem?: ?Item,\n trailingSection?: ?SectionT,\n } {\n let itemIndex = index;\n const defaultKeyExtractor = this.props.keyExtractor;\n for (let ii = 0; ii < this.props.sections.length; ii++) {\n const section = this.props.sections[ii];\n const key = section.key || String(ii);\n itemIndex -= 1; // The section adds an item for the header\n if (itemIndex >= section.data.length + 1) {\n itemIndex -= section.data.length + 1; // The section adds an item for the footer.\n } else if (itemIndex === -1) {\n return {\n section,\n key: key + ':header',\n index: null,\n header: true,\n trailingSection: this.props.sections[ii + 1],\n };\n } else if (itemIndex === section.data.length) {\n return {\n section,\n key: key + ':footer',\n index: null,\n header: false,\n trailingSection: this.props.sections[ii + 1],\n };\n } else {\n const keyExtractor = section.keyExtractor || defaultKeyExtractor;\n return {\n section,\n key: key + ':' + keyExtractor(section.data[itemIndex], itemIndex),\n index: itemIndex,\n leadingItem: section.data[itemIndex - 1],\n leadingSection: this.props.sections[ii - 1],\n trailingItem: section.data[itemIndex + 1],\n trailingSection: this.props.sections[ii + 1],\n };\n }\n }\n }\n\n _convertViewable = (viewable: ViewToken): ?ViewToken => {\n invariant(viewable.index != null, 'Received a broken ViewToken');\n const info = this._subExtractor(viewable.index);\n if (!info) {\n return null;\n }\n const keyExtractor = info.section.keyExtractor || this.props.keyExtractor;\n return {\n ...viewable,\n index: info.index,\n /* $FlowFixMe(>=0.63.0 site=react_native_fb) This comment suppresses an\n * error found when Flow v0.63 was deployed. To see the error delete this\n * comment and run Flow. */\n key: keyExtractor(viewable.item, info.index),\n section: info.section,\n };\n };\n\n _onViewableItemsChanged = ({\n viewableItems,\n changed,\n }: {\n viewableItems: Array,\n changed: Array,\n }) => {\n if (this.props.onViewableItemsChanged) {\n this.props.onViewableItemsChanged({\n viewableItems: viewableItems\n .map(this._convertViewable, this)\n .filter(Boolean),\n changed: changed.map(this._convertViewable, this).filter(Boolean),\n });\n }\n };\n\n _renderItem = ({item, index}: {item: Item, index: number}) => {\n const info = this._subExtractor(index);\n if (!info) {\n return null;\n }\n const infoIndex = info.index;\n if (infoIndex == null) {\n const {section} = info;\n if (info.header === true) {\n const {renderSectionHeader} = this.props;\n return renderSectionHeader ? renderSectionHeader({section}) : null;\n } else {\n const {renderSectionFooter} = this.props;\n return renderSectionFooter ? renderSectionFooter({section}) : null;\n }\n } else {\n const renderItem = info.section.renderItem || this.props.renderItem;\n const SeparatorComponent = this._getSeparatorComponent(index, info);\n invariant(renderItem, 'no renderItem!');\n return (\n {\n this._cellRefs[info.key] = ref;\n }}\n renderItem={renderItem}\n section={info.section}\n trailingItem={info.trailingItem}\n trailingSection={info.trailingSection}\n />\n );\n }\n };\n\n _onUpdateSeparator = (key: string, newProps: Object) => {\n const ref = this._cellRefs[key];\n ref && ref.updateSeparatorProps(newProps);\n };\n\n _getSeparatorComponent(\n index: number,\n info?: ?Object,\n ): ?React.ComponentType {\n info = info || this._subExtractor(index);\n if (!info) {\n return null;\n }\n const ItemSeparatorComponent =\n info.section.ItemSeparatorComponent || this.props.ItemSeparatorComponent;\n const {SectionSeparatorComponent} = this.props;\n const isLastItemInList = index === this.state.childProps.getItemCount() - 1;\n const isLastItemInSection = info.index === info.section.data.length - 1;\n if (SectionSeparatorComponent && isLastItemInSection) {\n return SectionSeparatorComponent;\n }\n if (ItemSeparatorComponent && !isLastItemInSection && !isLastItemInList) {\n return ItemSeparatorComponent;\n }\n return null;\n }\n\n _cellRefs = {};\n _listRef: VirtualizedList;\n _captureRef = ref => {\n /* $FlowFixMe(>=0.53.0 site=react_native_fb,react_native_oss) This comment\n * suppresses an error when upgrading Flow's support for React. To see the\n * error delete this comment and run Flow. */\n this._listRef = ref;\n };\n}\n\ntype ItemWithSeparatorCommonProps = $ReadOnly<{|\n leadingItem: ?Item,\n leadingSection: ?Object,\n section: Object,\n trailingItem: ?Item,\n trailingSection: ?Object,\n|}>;\n\ntype ItemWithSeparatorProps = $ReadOnly<{|\n ...ItemWithSeparatorCommonProps,\n LeadingSeparatorComponent: ?React.ComponentType,\n SeparatorComponent: ?React.ComponentType,\n cellKey: string,\n index: number,\n item: Item,\n onUpdateSeparator: (cellKey: string, newProps: Object) => void,\n prevCellKey?: ?string,\n renderItem: Function,\n|}>;\n\ntype ItemWithSeparatorState = {\n separatorProps: $ReadOnly<{|\n highlighted: false,\n ...ItemWithSeparatorCommonProps,\n |}>,\n leadingSeparatorProps: $ReadOnly<{|\n highlighted: false,\n ...ItemWithSeparatorCommonProps,\n |}>,\n};\n\nclass ItemWithSeparator extends React.Component<\n ItemWithSeparatorProps,\n ItemWithSeparatorState,\n> {\n state = {\n separatorProps: {\n highlighted: false,\n leadingItem: this.props.item,\n leadingSection: this.props.leadingSection,\n section: this.props.section,\n trailingItem: this.props.trailingItem,\n trailingSection: this.props.trailingSection,\n },\n leadingSeparatorProps: {\n highlighted: false,\n leadingItem: this.props.leadingItem,\n leadingSection: this.props.leadingSection,\n section: this.props.section,\n trailingItem: this.props.item,\n trailingSection: this.props.trailingSection,\n },\n };\n\n _separators = {\n highlight: () => {\n ['leading', 'trailing'].forEach(s =>\n this._separators.updateProps(s, {highlighted: true}),\n );\n },\n unhighlight: () => {\n ['leading', 'trailing'].forEach(s =>\n this._separators.updateProps(s, {highlighted: false}),\n );\n },\n updateProps: (select: 'leading' | 'trailing', newProps: Object) => {\n const {LeadingSeparatorComponent, cellKey, prevCellKey} = this.props;\n if (select === 'leading' && LeadingSeparatorComponent != null) {\n this.setState(state => ({\n leadingSeparatorProps: {...state.leadingSeparatorProps, ...newProps},\n }));\n } else {\n this.props.onUpdateSeparator(\n (select === 'leading' && prevCellKey) || cellKey,\n newProps,\n );\n }\n },\n };\n\n static getDerivedStateFromProps(\n props: ItemWithSeparatorProps,\n prevState: ItemWithSeparatorState,\n ): ?ItemWithSeparatorState {\n return {\n separatorProps: {\n ...prevState.separatorProps,\n leadingItem: props.item,\n leadingSection: props.leadingSection,\n section: props.section,\n trailingItem: props.trailingItem,\n trailingSection: props.trailingSection,\n },\n leadingSeparatorProps: {\n ...prevState.leadingSeparatorProps,\n leadingItem: props.leadingItem,\n leadingSection: props.leadingSection,\n section: props.section,\n trailingItem: props.item,\n trailingSection: props.trailingSection,\n },\n };\n }\n\n updateSeparatorProps(newProps: Object) {\n this.setState(state => ({\n separatorProps: {...state.separatorProps, ...newProps},\n }));\n }\n\n render() {\n const {\n LeadingSeparatorComponent,\n SeparatorComponent,\n item,\n index,\n section,\n } = this.props;\n const element = this.props.renderItem({\n item,\n index,\n section,\n separators: this._separators,\n });\n const leadingSeparator = LeadingSeparatorComponent && (\n \n );\n const separator = SeparatorComponent && (\n \n );\n return leadingSeparator || separator ? (\n \n {leadingSeparator}\n {element}\n {separator}\n \n ) : (\n element\n );\n }\n}\n\nfunction getItem(sections: ?$ReadOnlyArray, index: number): ?Item {\n if (!sections) {\n return null;\n }\n let itemIdx = index - 1;\n for (let ii = 0; ii < sections.length; ii++) {\n if (itemIdx === -1 || itemIdx === sections[ii].data.length) {\n // We intend for there to be overflow by one on both ends of the list.\n // This will be for headers and footers. When returning a header or footer\n // item the section itself is the item.\n return sections[ii];\n } else if (itemIdx < sections[ii].data.length) {\n // If we are in the bounds of the list's data then return the item.\n return sections[ii].data[itemIdx];\n } else {\n itemIdx -= sections[ii].data.length + 2; // Add two for the header and footer\n }\n }\n return null;\n}\n\nmodule.exports = VirtualizedSectionList;\n","/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n * @flow\n */\n\n'use strict';\n\nconst {\n __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,\n} = require('ReactNative');\n\nimport type {NativeMethodsMixinType} from 'ReactNativeTypes';\n\nconst {NativeMethodsMixin} = __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;\n\nmodule.exports = ((NativeMethodsMixin: any): $Exact);\n","/**\n * Copyright (c) 2017-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @flow\n * @format\n */\n'use strict';\n\nconst NativeMethodsMixin = require('NativeMethodsMixin');\nconst PropTypes = require('prop-types');\nconst React = require('React');\nconst StyleSheet = require('StyleSheet');\nconst ViewPropTypes = require('ViewPropTypes');\n\nconst createReactClass = require('create-react-class');\nconst requireNativeComponent = require('requireNativeComponent');\n\nconst RCTCheckBox = requireNativeComponent('AndroidCheckBox');\n\ntype DefaultProps = {\n value: boolean,\n disabled: boolean,\n};\n\n/**\n * Renders a boolean input (Android only).\n *\n * This is a controlled component that requires an `onValueChange` callback that\n * updates the `value` prop in order for the component to reflect user actions.\n * If the `value` prop is not updated, the component will continue to render\n * the supplied `value` prop instead of the expected result of any user actions.\n *\n * ```\n * import React from 'react';\n * import { AppRegistry, StyleSheet, Text, View, CheckBox } from 'react-native';\n *\n * export default class App extends React.Component {\n * constructor(props) {\n * super(props);\n * this.state = {\n * checked: false\n * }\n * }\n *\n * toggle() {\n * this.setState(({checked}) => {\n * return {\n * checked: !checked\n * };\n * });\n * }\n *\n * render() {\n * const {checked} = this.state;\n * return (\n * \n * Checked\n * \n * \n * );\n * }\n * }\n *\n * const styles = StyleSheet.create({\n * container: {\n * flex: 1,\n * flexDirection: 'row',\n * alignItems: 'center',\n * justifyContent: 'center',\n * },\n * });\n *\n * // skip this line if using Create React Native App\n * AppRegistry.registerComponent('App', () => App);\n * ```\n *\n * @keyword checkbox\n * @keyword toggle\n */\nlet CheckBox = createReactClass({\n displayName: 'CheckBox',\n propTypes: {\n ...ViewPropTypes,\n /**\n * The value of the checkbox. If true the checkbox will be turned on.\n * Default value is false.\n */\n value: PropTypes.bool,\n /**\n * If true the user won't be able to toggle the checkbox.\n * Default value is false.\n */\n disabled: PropTypes.bool,\n /**\n * Used in case the props change removes the component.\n */\n onChange: PropTypes.func,\n /**\n * Invoked with the new value when the value changes.\n */\n onValueChange: PropTypes.func,\n /**\n * Used to locate this view in end-to-end tests.\n */\n testID: PropTypes.string,\n },\n\n getDefaultProps: function(): DefaultProps {\n return {\n value: false,\n disabled: false,\n };\n },\n\n mixins: [NativeMethodsMixin],\n\n _rctCheckBox: {},\n _onChange: function(event: Object) {\n this._rctCheckBox.setNativeProps({value: this.props.value});\n // Change the props after the native props are set in case the props\n // change removes the component\n this.props.onChange && this.props.onChange(event);\n this.props.onValueChange &&\n this.props.onValueChange(event.nativeEvent.value);\n },\n\n render: function() {\n let props = {...this.props};\n props.onStartShouldSetResponder = () => true;\n props.onResponderTerminationRequest = () => false;\n /* $FlowFixMe(>=0.78.0 site=react_native_android_fb) This issue was found\n * when making Flow check .android.js files. */\n props.enabled = !this.props.disabled;\n /* $FlowFixMe(>=0.78.0 site=react_native_android_fb) This issue was found\n * when making Flow check .android.js files. */\n props.on = this.props.value;\n props.style = [styles.rctCheckBox, this.props.style];\n\n return (\n {\n /* $FlowFixMe(>=0.53.0 site=react_native_fb,react_native_oss) This\n * comment suppresses an error when upgrading Flow's support for\n * React. To see the error delete this comment and run Flow. */\n this._rctCheckBox = ref;\n }}\n onChange={this._onChange}\n />\n );\n },\n});\n\nlet styles = StyleSheet.create({\n rctCheckBox: {\n height: 32,\n width: 32,\n },\n});\n\nmodule.exports = CheckBox;\n","/**\n * Copyright (c) 2015-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n */\n\n'use strict';\n\nconst React = require('React');\nconst StyleSheet = require('StyleSheet');\nconst Text = require('Text');\nconst View = require('View');\n\nclass DummyDatePickerIOS extends React.Component {\n render() {\n return (\n \n \n DatePickerIOS is not supported on this platform!\n \n \n );\n }\n}\n\nconst styles = StyleSheet.create({\n dummyDatePickerIOS: {\n height: 100,\n width: 300,\n backgroundColor: '#ffbcbc',\n borderWidth: 1,\n borderColor: 'red',\n alignItems: 'center',\n justifyContent: 'center',\n margin: 10,\n },\n datePickerText: {\n color: '#333333',\n margin: 20,\n },\n});\n\nmodule.exports = DummyDatePickerIOS;\n","/**\n * Copyright (c) 2015-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n */\n\n'use strict';\n\nconst ColorPropType = require('ColorPropType');\nconst NativeMethodsMixin = require('NativeMethodsMixin');\nconst Platform = require('Platform');\nconst React = require('React');\nconst PropTypes = require('prop-types');\nconst ReactNative = require('ReactNative');\nconst StatusBar = require('StatusBar');\nconst StyleSheet = require('StyleSheet');\nconst UIManager = require('UIManager');\nconst View = require('View');\nconst ViewPropTypes = require('ViewPropTypes');\n\nconst DrawerConsts = UIManager.AndroidDrawerLayout.Constants;\n\nconst createReactClass = require('create-react-class');\nconst dismissKeyboard = require('dismissKeyboard');\nconst requireNativeComponent = require('requireNativeComponent');\n\nconst RK_DRAWER_REF = 'drawerlayout';\nconst INNERVIEW_REF = 'innerView';\n\nconst DRAWER_STATES = ['Idle', 'Dragging', 'Settling'];\n\n/**\n * React component that wraps the platform `DrawerLayout` (Android only). The\n * Drawer (typically used for navigation) is rendered with `renderNavigationView`\n * and direct children are the main view (where your content goes). The navigation\n * view is initially not visible on the screen, but can be pulled in from the\n * side of the window specified by the `drawerPosition` prop and its width can\n * be set by the `drawerWidth` prop.\n *\n * Example:\n *\n * ```\n * render: function() {\n * var navigationView = (\n * \n * I'm in the Drawer!\n * \n * );\n * return (\n * navigationView}>\n * \n * Hello\n * World!\n * \n * \n * );\n * },\n * ```\n */\nconst DrawerLayoutAndroid = createReactClass({\n displayName: 'DrawerLayoutAndroid',\n statics: {\n positions: DrawerConsts.DrawerPosition,\n },\n\n propTypes: {\n ...ViewPropTypes,\n /**\n * Determines whether the keyboard gets dismissed in response to a drag.\n * - 'none' (the default), drags do not dismiss the keyboard.\n * - 'on-drag', the keyboard is dismissed when a drag begins.\n */\n keyboardDismissMode: PropTypes.oneOf([\n 'none', // default\n 'on-drag',\n ]),\n /**\n * Specifies the background color of the drawer. The default value is white.\n * If you want to set the opacity of the drawer, use rgba. Example:\n *\n * ```\n * return (\n * \n * \n * );\n * ```\n */\n drawerBackgroundColor: ColorPropType,\n /**\n * Specifies the side of the screen from which the drawer will slide in.\n */\n drawerPosition: PropTypes.oneOf([\n DrawerConsts.DrawerPosition.Left,\n DrawerConsts.DrawerPosition.Right,\n ]),\n /**\n * Specifies the width of the drawer, more precisely the width of the view that be pulled in\n * from the edge of the window.\n */\n drawerWidth: PropTypes.number,\n /**\n * Specifies the lock mode of the drawer. The drawer can be locked in 3 states:\n * - unlocked (default), meaning that the drawer will respond (open/close) to touch gestures.\n * - locked-closed, meaning that the drawer will stay closed and not respond to gestures.\n * - locked-open, meaning that the drawer will stay opened and not respond to gestures.\n * The drawer may still be opened and closed programmatically (`openDrawer`/`closeDrawer`).\n */\n drawerLockMode: PropTypes.oneOf([\n 'unlocked',\n 'locked-closed',\n 'locked-open',\n ]),\n /**\n * Function called whenever there is an interaction with the navigation view.\n */\n onDrawerSlide: PropTypes.func,\n /**\n * Function called when the drawer state has changed. The drawer can be in 3 states:\n * - idle, meaning there is no interaction with the navigation view happening at the time\n * - dragging, meaning there is currently an interaction with the navigation view\n * - settling, meaning that there was an interaction with the navigation view, and the\n * navigation view is now finishing its closing or opening animation\n */\n onDrawerStateChanged: PropTypes.func,\n /**\n * Function called whenever the navigation view has been opened.\n */\n onDrawerOpen: PropTypes.func,\n /**\n * Function called whenever the navigation view has been closed.\n */\n onDrawerClose: PropTypes.func,\n /**\n * The navigation view that will be rendered to the side of the screen and can be pulled in.\n */\n renderNavigationView: PropTypes.func.isRequired,\n\n /**\n * Make the drawer take the entire screen and draw the background of the\n * status bar to allow it to open over the status bar. It will only have an\n * effect on API 21+.\n */\n statusBarBackgroundColor: ColorPropType,\n },\n\n mixins: [NativeMethodsMixin],\n\n getDefaultProps: function(): Object {\n return {\n drawerBackgroundColor: 'white',\n };\n },\n\n getInitialState: function() {\n return {statusBarBackgroundColor: undefined};\n },\n\n getInnerViewNode: function() {\n return this.refs[INNERVIEW_REF].getInnerViewNode();\n },\n\n render: function() {\n const drawStatusBar =\n Platform.Version >= 21 && this.props.statusBarBackgroundColor;\n const drawerViewWrapper = (\n \n {this.props.renderNavigationView()}\n {drawStatusBar && }\n \n );\n const childrenWrapper = (\n \n {drawStatusBar && (\n \n )}\n {drawStatusBar && (\n \n )}\n {this.props.children}\n \n );\n return (\n \n {childrenWrapper}\n {drawerViewWrapper}\n \n );\n },\n\n _onDrawerSlide: function(event) {\n if (this.props.onDrawerSlide) {\n this.props.onDrawerSlide(event);\n }\n if (this.props.keyboardDismissMode === 'on-drag') {\n dismissKeyboard();\n }\n },\n\n _onDrawerOpen: function() {\n if (this.props.onDrawerOpen) {\n this.props.onDrawerOpen();\n }\n },\n\n _onDrawerClose: function() {\n if (this.props.onDrawerClose) {\n this.props.onDrawerClose();\n }\n },\n\n _onDrawerStateChanged: function(event) {\n if (this.props.onDrawerStateChanged) {\n this.props.onDrawerStateChanged(\n DRAWER_STATES[event.nativeEvent.drawerState],\n );\n }\n },\n\n /**\n * Opens the drawer.\n */\n openDrawer: function() {\n UIManager.dispatchViewManagerCommand(\n this._getDrawerLayoutHandle(),\n UIManager.AndroidDrawerLayout.Commands.openDrawer,\n null,\n );\n },\n\n /**\n * Closes the drawer.\n */\n closeDrawer: function() {\n UIManager.dispatchViewManagerCommand(\n this._getDrawerLayoutHandle(),\n UIManager.AndroidDrawerLayout.Commands.closeDrawer,\n null,\n );\n },\n /**\n * Closing and opening example\n * Note: To access the drawer you have to give it a ref. Refs do not work on stateless components\n * render () {\n * this.openDrawer = () => {\n * this.refs.DRAWER.openDrawer()\n * }\n * this.closeDrawer = () => {\n * this.refs.DRAWER.closeDrawer()\n * }\n * return (\n * \n * \n * )\n * }\n */\n _getDrawerLayoutHandle: function() {\n return ReactNative.findNodeHandle(this.refs[RK_DRAWER_REF]);\n },\n});\n\nconst styles = StyleSheet.create({\n base: {\n flex: 1,\n elevation: 16,\n },\n mainSubview: {\n position: 'absolute',\n top: 0,\n left: 0,\n right: 0,\n bottom: 0,\n },\n drawerSubview: {\n position: 'absolute',\n top: 0,\n bottom: 0,\n },\n statusBar: {\n height: StatusBar.currentHeight,\n },\n drawerStatusBar: {\n position: 'absolute',\n top: 0,\n left: 0,\n right: 0,\n height: StatusBar.currentHeight,\n backgroundColor: 'rgba(0, 0, 0, 0.251)',\n },\n});\n\n// The View that contains both the actual drawer and the main view\nconst AndroidDrawerLayout = requireNativeComponent('AndroidDrawerLayout');\n\nmodule.exports = DrawerLayoutAndroid;\n","/**\n * Copyright (c) 2015-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n * @flow\n */\n\n'use strict';\n\nconst React = require('React');\nconst PropTypes = require('prop-types');\nconst ColorPropType = require('ColorPropType');\nconst Platform = require('Platform');\n\nconst processColor = require('processColor');\n\nconst StatusBarManager = require('NativeModules').StatusBarManager;\n\n/**\n * Status bar style\n */\nexport type StatusBarStyle = $Enum<{\n /**\n * Default status bar style (dark for iOS, light for Android)\n */\n default: string,\n /**\n * Dark background, white texts and icons\n */\n 'light-content': string,\n /**\n * Light background, dark texts and icons\n */\n 'dark-content': string,\n}>;\n\n/**\n * Status bar animation\n */\nexport type StatusBarAnimation = $Enum<{\n /**\n * No animation\n */\n none: string,\n /**\n * Fade animation\n */\n fade: string,\n /**\n * Slide animation\n */\n slide: string,\n}>;\n\ntype DefaultProps = {\n animated: boolean,\n};\n\n/**\n * Merges the prop stack with the default values.\n */\nfunction mergePropsStack(\n propsStack: Array,\n defaultValues: Object,\n): Object {\n return propsStack.reduce((prev, cur) => {\n for (const prop in cur) {\n if (cur[prop] != null) {\n prev[prop] = cur[prop];\n }\n }\n return prev;\n }, Object.assign({}, defaultValues));\n}\n\n/**\n * Returns an object to insert in the props stack from the props\n * and the transition/animation info.\n */\nfunction createStackEntry(props: any): any {\n return {\n backgroundColor:\n props.backgroundColor != null\n ? {\n value: props.backgroundColor,\n animated: props.animated,\n }\n : null,\n barStyle:\n props.barStyle != null\n ? {\n value: props.barStyle,\n animated: props.animated,\n }\n : null,\n translucent: props.translucent,\n hidden:\n props.hidden != null\n ? {\n value: props.hidden,\n animated: props.animated,\n transition: props.showHideTransition,\n }\n : null,\n networkActivityIndicatorVisible: props.networkActivityIndicatorVisible,\n };\n}\n\n/**\n * Component to control the app status bar.\n *\n * ### Usage with Navigator\n *\n * It is possible to have multiple `StatusBar` components mounted at the same\n * time. The props will be merged in the order the `StatusBar` components were\n * mounted. One use case is to specify status bar styles per route using `Navigator`.\n *\n * ```\n * \n * \n * \n * \n * \n * }\n * />\n * \n * ```\n *\n * ### Imperative API\n *\n * For cases where using a component is not ideal, there is also an imperative\n * API exposed as static functions on the component. It is however not recommended\n * to use the static API and the component for the same prop because any value\n * set by the static API will get overriden by the one set by the component in\n * the next render.\n *\n * ### Constants\n *\n * `currentHeight` (Android only) The height of the status bar.\n */\nclass StatusBar extends React.Component<{\n hidden?: boolean,\n animated?: boolean,\n backgroundColor?: string,\n translucent?: boolean,\n barStyle?: 'default' | 'light-content' | 'dark-content',\n networkActivityIndicatorVisible?: boolean,\n showHideTransition?: 'fade' | 'slide',\n}> {\n static _propsStack = [];\n\n static _defaultProps = createStackEntry({\n animated: false,\n showHideTransition: 'fade',\n backgroundColor: 'black',\n barStyle: 'default',\n translucent: false,\n hidden: false,\n networkActivityIndicatorVisible: false,\n });\n\n // Timer for updating the native module values at the end of the frame.\n static _updateImmediate = null;\n\n // The current merged values from the props stack.\n static _currentValues = null;\n\n // TODO(janic): Provide a real API to deal with status bar height. See the\n // discussion in #6195.\n /**\n * The current height of the status bar on the device.\n *\n * @platform android\n */\n static currentHeight = StatusBarManager.HEIGHT;\n\n // Provide an imperative API as static functions of the component.\n // See the corresponding prop for more detail.\n\n /**\n * Show or hide the status bar\n * @param hidden Hide the status bar.\n * @param animation Optional animation when\n * changing the status bar hidden property.\n */\n static setHidden(hidden: boolean, animation?: StatusBarAnimation) {\n animation = animation || 'none';\n StatusBar._defaultProps.hidden.value = hidden;\n if (Platform.OS === 'ios') {\n StatusBarManager.setHidden(hidden, animation);\n } else if (Platform.OS === 'android') {\n StatusBarManager.setHidden(hidden);\n }\n }\n\n /**\n * Set the status bar style\n * @param style Status bar style to set\n * @param animated Animate the style change.\n */\n static setBarStyle(style: StatusBarStyle, animated?: boolean) {\n animated = animated || false;\n StatusBar._defaultProps.barStyle.value = style;\n if (Platform.OS === 'ios') {\n StatusBarManager.setStyle(style, animated);\n } else if (Platform.OS === 'android') {\n StatusBarManager.setStyle(style);\n }\n }\n\n /**\n * Control the visibility of the network activity indicator\n * @param visible Show the indicator.\n */\n static setNetworkActivityIndicatorVisible(visible: boolean) {\n if (Platform.OS !== 'ios') {\n console.warn(\n '`setNetworkActivityIndicatorVisible` is only available on iOS',\n );\n return;\n }\n StatusBar._defaultProps.networkActivityIndicatorVisible = visible;\n StatusBarManager.setNetworkActivityIndicatorVisible(visible);\n }\n\n /**\n * Set the background color for the status bar\n * @param color Background color.\n * @param animated Animate the style change.\n */\n static setBackgroundColor(color: string, animated?: boolean) {\n if (Platform.OS !== 'android') {\n console.warn('`setBackgroundColor` is only available on Android');\n return;\n }\n animated = animated || false;\n StatusBar._defaultProps.backgroundColor.value = color;\n StatusBarManager.setColor(processColor(color), animated);\n }\n\n /**\n * Control the translucency of the status bar\n * @param translucent Set as translucent.\n */\n static setTranslucent(translucent: boolean) {\n if (Platform.OS !== 'android') {\n console.warn('`setTranslucent` is only available on Android');\n return;\n }\n StatusBar._defaultProps.translucent = translucent;\n StatusBarManager.setTranslucent(translucent);\n }\n\n static propTypes = {\n /**\n * If the status bar is hidden.\n */\n hidden: PropTypes.bool,\n /**\n * If the transition between status bar property changes should be animated.\n * Supported for backgroundColor, barStyle and hidden.\n */\n animated: PropTypes.bool,\n /**\n * The background color of the status bar.\n * @platform android\n */\n backgroundColor: ColorPropType,\n /**\n * If the status bar is translucent.\n * When translucent is set to true, the app will draw under the status bar.\n * This is useful when using a semi transparent status bar color.\n *\n * @platform android\n */\n translucent: PropTypes.bool,\n /**\n * Sets the color of the status bar text.\n */\n barStyle: PropTypes.oneOf(['default', 'light-content', 'dark-content']),\n /**\n * If the network activity indicator should be visible.\n *\n * @platform ios\n */\n networkActivityIndicatorVisible: PropTypes.bool,\n /**\n * The transition effect when showing and hiding the status bar using the `hidden`\n * prop. Defaults to 'fade'.\n *\n * @platform ios\n */\n showHideTransition: PropTypes.oneOf(['fade', 'slide']),\n };\n\n static defaultProps = {\n animated: false,\n showHideTransition: 'fade',\n };\n\n _stackEntry = null;\n\n componentDidMount() {\n // Every time a StatusBar component is mounted, we push it's prop to a stack\n // and always update the native status bar with the props from the top of then\n // stack. This allows having multiple StatusBar components and the one that is\n // added last or is deeper in the view hierarchy will have priority.\n this._stackEntry = createStackEntry(this.props);\n StatusBar._propsStack.push(this._stackEntry);\n this._updatePropsStack();\n }\n\n componentWillUnmount() {\n // When a StatusBar is unmounted, remove itself from the stack and update\n // the native bar with the next props.\n const index = StatusBar._propsStack.indexOf(this._stackEntry);\n StatusBar._propsStack.splice(index, 1);\n\n this._updatePropsStack();\n }\n\n componentDidUpdate() {\n const index = StatusBar._propsStack.indexOf(this._stackEntry);\n this._stackEntry = createStackEntry(this.props);\n StatusBar._propsStack[index] = this._stackEntry;\n\n this._updatePropsStack();\n }\n\n /**\n * Updates the native status bar with the props from the stack.\n */\n _updatePropsStack = () => {\n // Send the update to the native module only once at the end of the frame.\n clearImmediate(StatusBar._updateImmediate);\n StatusBar._updateImmediate = setImmediate(() => {\n const oldProps = StatusBar._currentValues;\n const mergedProps = mergePropsStack(\n StatusBar._propsStack,\n StatusBar._defaultProps,\n );\n\n // Update the props that have changed using the merged values from the props stack.\n if (Platform.OS === 'ios') {\n if (\n !oldProps ||\n oldProps.barStyle.value !== mergedProps.barStyle.value\n ) {\n StatusBarManager.setStyle(\n mergedProps.barStyle.value,\n mergedProps.barStyle.animated,\n );\n }\n if (!oldProps || oldProps.hidden.value !== mergedProps.hidden.value) {\n StatusBarManager.setHidden(\n mergedProps.hidden.value,\n mergedProps.hidden.animated\n ? mergedProps.hidden.transition\n : 'none',\n );\n }\n\n if (\n !oldProps ||\n oldProps.networkActivityIndicatorVisible !==\n mergedProps.networkActivityIndicatorVisible\n ) {\n StatusBarManager.setNetworkActivityIndicatorVisible(\n mergedProps.networkActivityIndicatorVisible,\n );\n }\n } else if (Platform.OS === 'android') {\n if (\n !oldProps ||\n oldProps.barStyle.value !== mergedProps.barStyle.value\n ) {\n StatusBarManager.setStyle(mergedProps.barStyle.value);\n }\n if (\n !oldProps ||\n oldProps.backgroundColor.value !== mergedProps.backgroundColor.value\n ) {\n StatusBarManager.setColor(\n processColor(mergedProps.backgroundColor.value),\n mergedProps.backgroundColor.animated,\n );\n }\n if (!oldProps || oldProps.hidden.value !== mergedProps.hidden.value) {\n StatusBarManager.setHidden(mergedProps.hidden.value);\n }\n if (!oldProps || oldProps.translucent !== mergedProps.translucent) {\n StatusBarManager.setTranslucent(mergedProps.translucent);\n }\n }\n // Update the current prop values.\n StatusBar._currentValues = mergedProps;\n });\n };\n\n render(): React.Node {\n return null;\n }\n}\n\nmodule.exports = StatusBar;\n","/**\n * Copyright (c) 2015-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @flow\n * @format\n */\n'use strict';\n\nconst Image = require('Image');\nconst React = require('React');\nconst StyleSheet = require('StyleSheet');\nconst View = require('View');\n\nconst ensureComponentIsNative = require('ensureComponentIsNative');\n\n/**\n * Very simple drop-in replacement for which supports nesting views.\n *\n * ```ReactNativeWebPlayer\n * import React, { Component } from 'react';\n * import { AppRegistry, View, ImageBackground, Text } from 'react-native';\n *\n * class DisplayAnImageBackground extends Component {\n * render() {\n * return (\n * \n * React\n * \n * );\n * }\n * }\n *\n * // App registration and rendering\n * AppRegistry.registerComponent('DisplayAnImageBackground', () => DisplayAnImageBackground);\n * ```\n */\nclass ImageBackground extends React.Component<$FlowFixMeProps> {\n setNativeProps(props: Object) {\n // Work-around flow\n const viewRef = this._viewRef;\n if (viewRef) {\n ensureComponentIsNative(viewRef);\n viewRef.setNativeProps(props);\n }\n }\n\n _viewRef: ?React.ElementRef = null;\n\n _captureRef = ref => {\n this._viewRef = ref;\n };\n\n render() {\n const {children, style, imageStyle, imageRef, ...props} = this.props;\n\n return (\n \n overwrites width and height styles\n // (which is not quite correct), and these styles conflict with explicitly set styles\n // of and with our internal layout model here.\n // So, we have to proxy/reapply these styles explicitly for actual component.\n // This workaround should be removed after implementing proper support of\n // intrinsic content size of the .\n width: style.width,\n height: style.height,\n },\n imageStyle,\n ]}\n ref={imageRef}\n />\n {children}\n \n );\n }\n}\n\nmodule.exports = ImageBackground;\n","/**\n * Copyright (c) 2015-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n * @flow\n */\n\n'use strict';\n\nconst invariant = require('fbjs/lib/invariant');\n\nconst ensureComponentIsNative = function(component: any) {\n invariant(\n component && typeof component.setNativeProps === 'function',\n 'Touchable child must either be native or forward setNativeProps to a ' +\n 'native component',\n );\n};\n\nmodule.exports = ensureComponentIsNative;\n","/**\n * Copyright (c) 2015-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @flow\n * @format\n */\n'use strict';\n\nconst RCTImageEditingManager = require('NativeModules').ImageEditingManager;\n\ntype ImageCropData = {\n /**\n * The top-left corner of the cropped image, specified in the original\n * image's coordinate space.\n */\n offset: {\n x: number,\n y: number,\n },\n /**\n * The size (dimensions) of the cropped image, specified in the original\n * image's coordinate space.\n */\n size: {\n width: number,\n height: number,\n },\n /**\n * (Optional) size to scale the cropped image to.\n */\n displaySize?: ?{\n width: number,\n height: number,\n },\n /**\n * (Optional) the resizing mode to use when scaling the image. If the\n * `displaySize` param is not specified, this has no effect.\n */\n resizeMode?: ?$Enum<{\n contain: string,\n cover: string,\n stretch: string,\n }>,\n};\n\nclass ImageEditor {\n /**\n * Crop the image specified by the URI param. If URI points to a remote\n * image, it will be downloaded automatically. If the image cannot be\n * loaded/downloaded, the failure callback will be called. On Android, a\n * downloaded image may be cached in external storage, a publicly accessible\n * location, if it has more available space than internal storage.\n *\n * If the cropping process is successful, the resultant cropped image\n * will be stored in the ImageStore, and the URI returned in the success\n * callback will point to the image in the store. Remember to delete the\n * cropped image from the ImageStore when you are done with it.\n */\n static cropImage(\n uri: string,\n cropData: ImageCropData,\n success: (uri: string) => void,\n failure: (error: Object) => void,\n ) {\n RCTImageEditingManager.cropImage(uri, cropData, success, failure);\n }\n}\n\nmodule.exports = ImageEditor;\n","/**\n * Copyright (c) 2015-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @flow\n * @format\n */\n'use strict';\n\nconst RCTImageStoreManager = require('NativeModules').ImageStoreManager;\n\nclass ImageStore {\n /**\n * Check if the ImageStore contains image data for the specified URI.\n * @platform ios\n */\n static hasImageForTag(uri: string, callback: (hasImage: boolean) => void) {\n if (RCTImageStoreManager.hasImageForTag) {\n RCTImageStoreManager.hasImageForTag(uri, callback);\n } else {\n console.warn('hasImageForTag() not implemented');\n }\n }\n\n /**\n * Delete an image from the ImageStore. Images are stored in memory and\n * must be manually removed when you are finished with them, otherwise they\n * will continue to use up RAM until the app is terminated. It is safe to\n * call `removeImageForTag()` without first calling `hasImageForTag()`, it\n * will simply fail silently.\n * @platform ios\n */\n static removeImageForTag(uri: string) {\n if (RCTImageStoreManager.removeImageForTag) {\n RCTImageStoreManager.removeImageForTag(uri);\n } else {\n console.warn('removeImageForTag() not implemented');\n }\n }\n\n /**\n * Stores a base64-encoded image in the ImageStore, and returns a URI that\n * can be used to access or display the image later. Images are stored in\n * memory only, and must be manually deleted when you are finished with\n * them by calling `removeImageForTag()`.\n *\n * Note that it is very inefficient to transfer large quantities of binary\n * data between JS and native code, so you should avoid calling this more\n * than necessary.\n * @platform ios\n */\n static addImageFromBase64(\n base64ImageData: string,\n success: (uri: string) => void,\n failure: (error: any) => void,\n ) {\n RCTImageStoreManager.addImageFromBase64(base64ImageData, success, failure);\n }\n\n /**\n * Retrieves the base64-encoded data for an image in the ImageStore. If the\n * specified URI does not match an image in the store, the failure callback\n * will be called.\n *\n * Note that it is very inefficient to transfer large quantities of binary\n * data between JS and native code, so you should avoid calling this more\n * than necessary. To display an image in the ImageStore, you can just pass\n * the URI to an `` component; there is no need to retrieve the\n * base64 data.\n */\n static getBase64ForTag(\n uri: string,\n success: (base64ImageData: string) => void,\n failure: (error: any) => void,\n ) {\n RCTImageStoreManager.getBase64ForTag(uri, success, failure);\n }\n}\n\nmodule.exports = ImageStore;\n","/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @flow\n * @format\n */\n'use strict';\n\nconst ColorPropType = require('ColorPropType');\nconst React = require('React');\nconst StyleSheet = require('StyleSheet');\nconst ViewPropTypes = require('ViewPropTypes');\n\nconst requireNativeComponent = require('requireNativeComponent');\n\nconst RCTInputAccessoryView = requireNativeComponent('RCTInputAccessoryView');\n\n/**\n * Note: iOS only\n *\n * A component which enables customization of the keyboard input accessory view.\n * The input accessory view is displayed above the keyboard whenever a TextInput\n * has focus. This component can be used to create custom toolbars.\n *\n * To use this component wrap your custom toolbar with the\n * InputAccessoryView component, and set a nativeID. Then, pass that nativeID\n * as the inputAccessoryViewID of whatever TextInput you desire. A simple\n * example:\n *\n * ```ReactNativeWebPlayer\n * import React, { Component } from 'react';\n * import { AppRegistry, TextInput, InputAccessoryView, Button } from 'react-native';\n *\n * export default class UselessTextInput extends Component {\n * constructor(props) {\n * super(props);\n * this.state = {text: 'Placeholder Text'};\n * }\n *\n * render() {\n * const inputAccessoryViewID = \"uniqueID\";\n * return (\n * \n * \n * this.setState({text})}\n * value={this.state.text}\n * />\n * \n * \n * this.setState({text: 'Placeholder Text'})}\n * title=\"Reset Text\"\n * />\n * \n * \n * );\n * }\n * }\n *\n * // skip this line if using Create React Native App\n * AppRegistry.registerComponent('AwesomeProject', () => UselessTextInput);\n * ```\n *\n * This component can also be used to create sticky text inputs (text inputs\n * which are anchored to the top of the keyboard). To do this, wrap a\n * TextInput with the InputAccessoryView component, and don't set a nativeID.\n * For an example, look at InputAccessoryViewExample.js in RNTester.\n */\n\ntype Props = {\n +children: React.Node,\n /**\n * An ID which is used to associate this `InputAccessoryView` to\n * specified TextInput(s).\n */\n nativeID?: string,\n style?: ViewPropTypes.style,\n backgroundColor?: ColorPropType,\n};\n\nclass InputAccessoryView extends React.Component {\n render(): React.Node {\n console.warn(' is not supported on Android yet.');\n\n if (React.Children.count(this.props.children) === 0) {\n return null;\n }\n\n return (\n \n {this.props.children}\n \n );\n }\n}\n\nconst styles = StyleSheet.create({\n container: {\n position: 'absolute',\n },\n});\n\nmodule.exports = InputAccessoryView;\n","/**\n * Copyright (c) 2015-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n * @flow\n */\n\n'use strict';\n\nconst Keyboard = require('Keyboard');\nconst LayoutAnimation = require('LayoutAnimation');\nconst Platform = require('Platform');\nconst React = require('React');\nconst StyleSheet = require('StyleSheet');\nconst View = require('View');\n\nimport type EmitterSubscription from 'EmitterSubscription';\nimport type {ViewStyleProp} from 'StyleSheet';\nimport type {ViewProps, ViewLayout, ViewLayoutEvent} from 'ViewPropTypes';\nimport type {KeyboardEvent} from 'Keyboard';\n\ntype Props = $ReadOnly<{|\n ...ViewProps,\n\n /**\n * Specify how to react to the presence of the keyboard.\n */\n behavior?: ?('height' | 'position' | 'padding'),\n\n /**\n * Style of the content container when `behavior` is 'position'.\n */\n contentContainerStyle?: ?ViewStyleProp,\n\n /**\n * Controls whether this `KeyboardAvoidingView` instance should take effect.\n * This is useful when more than one is on the screen. Defaults to true.\n */\n enabled: ?boolean,\n\n /**\n * Distance between the top of the user screen and the React Native view. This\n * may be non-zero in some cases. Defaults to 0.\n */\n keyboardVerticalOffset: number,\n|}>;\n\ntype State = {|\n bottom: number,\n|};\n\nconst viewRef = 'VIEW';\n\n/**\n * View that moves out of the way when the keyboard appears by automatically\n * adjusting its height, position, or bottom padding.\n */\nclass KeyboardAvoidingView extends React.Component {\n static defaultProps = {\n enabled: true,\n keyboardVerticalOffset: 0,\n };\n\n _frame: ?ViewLayout = null;\n _subscriptions: Array = [];\n\n state = {\n bottom: 0,\n };\n\n _relativeKeyboardHeight(keyboardFrame): number {\n const frame = this._frame;\n if (!frame || !keyboardFrame) {\n return 0;\n }\n\n const keyboardY = keyboardFrame.screenY - this.props.keyboardVerticalOffset;\n\n // Calculate the displacement needed for the view such that it\n // no longer overlaps with the keyboard\n return Math.max(frame.y + frame.height - keyboardY, 0);\n }\n\n _onKeyboardChange = (event: ?KeyboardEvent) => {\n if (event == null) {\n this.setState({bottom: 0});\n return;\n }\n\n const {duration, easing, endCoordinates} = event;\n const height = this._relativeKeyboardHeight(endCoordinates);\n\n if (this.state.bottom === height) {\n return;\n }\n\n if (duration && easing) {\n LayoutAnimation.configureNext({\n duration: duration,\n update: {\n duration: duration,\n type: LayoutAnimation.Types[easing] || 'keyboard',\n },\n });\n }\n this.setState({bottom: height});\n };\n\n _onLayout = (event: ViewLayoutEvent) => {\n this._frame = event.nativeEvent.layout;\n };\n\n UNSAFE_componentWillUpdate(nextProps: Props, nextState: State): void {\n if (\n nextState.bottom === this.state.bottom &&\n this.props.behavior === 'height' &&\n nextProps.behavior === 'height'\n ) {\n // If the component rerenders without an internal state change, e.g.\n // triggered by parent component re-rendering, no need for bottom to change.\n nextState.bottom = 0;\n }\n }\n\n componentDidMount(): void {\n if (Platform.OS === 'ios') {\n this._subscriptions = [\n Keyboard.addListener('keyboardWillChangeFrame', this._onKeyboardChange),\n ];\n } else {\n this._subscriptions = [\n Keyboard.addListener('keyboardDidHide', this._onKeyboardChange),\n Keyboard.addListener('keyboardDidShow', this._onKeyboardChange),\n ];\n }\n }\n\n componentWillUnmount(): void {\n this._subscriptions.forEach(subscription => {\n subscription.remove();\n });\n }\n\n render(): React.Node {\n const {\n behavior,\n children,\n contentContainerStyle,\n enabled,\n keyboardVerticalOffset, // eslint-disable-line no-unused-vars\n style,\n ...props\n } = this.props;\n const bottomHeight = enabled ? this.state.bottom : 0;\n switch (behavior) {\n case 'height':\n let heightStyle;\n if (this._frame != null) {\n // Note that we only apply a height change when there is keyboard present,\n // i.e. this.state.bottom is greater than 0. If we remove that condition,\n // this.frame.height will never go back to its original value.\n // When height changes, we need to disable flex.\n heightStyle = {\n height: this._frame.height - bottomHeight,\n flex: 0,\n };\n }\n return (\n \n {children}\n \n );\n\n case 'position':\n return (\n \n \n {children}\n \n \n );\n\n case 'padding':\n return (\n \n {children}\n \n );\n\n default:\n return (\n \n {children}\n \n );\n }\n }\n}\n\nmodule.exports = KeyboardAvoidingView;\n","/**\n * Copyright (c) 2015-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n * @flow\n */\n\n'use strict';\n\nmodule.exports = require('UnimplementedView');\n","/**\n * Copyright (c) 2015-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @flow strict-local\n * @format\n */\n'use strict';\n\nconst React = require('React');\nconst StyleSheet = require('StyleSheet');\n\n/**\n * Common implementation for a simple stubbed view. Simply applies the view's styles to the inner\n * View component and renders its children.\n */\nclass UnimplementedView extends React.Component<$FlowFixMeProps> {\n setNativeProps() {\n // Do nothing.\n // This method is required in order to use this view as a Touchable* child.\n // See ensureComponentIsNative.js for more info\n }\n\n render() {\n // Workaround require cycle from requireNativeComponent\n const View = require('View');\n return (\n \n {this.props.children}\n \n );\n }\n}\n\nconst styles = StyleSheet.create({\n unimplementedView: __DEV__\n ? {\n alignSelf: 'flex-start',\n borderColor: 'red',\n borderWidth: 1,\n }\n : {},\n});\n\nmodule.exports = UnimplementedView;\n","/**\n * Copyright (c) 2015-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n * @flow\n */\n\n'use strict';\n\nconst AppContainer = require('AppContainer');\nconst I18nManager = require('I18nManager');\nconst NativeEventEmitter = require('NativeEventEmitter');\nconst NativeModules = require('NativeModules');\nconst Platform = require('Platform');\nconst React = require('React');\nconst PropTypes = require('prop-types');\nconst StyleSheet = require('StyleSheet');\nconst View = require('View');\n\nconst deprecatedPropType = require('deprecatedPropType');\nconst requireNativeComponent = require('requireNativeComponent');\n\nconst RCTModalHostView = requireNativeComponent('RCTModalHostView');\n\nconst ModalEventEmitter =\n Platform.OS === 'ios' && NativeModules.ModalManager\n ? new NativeEventEmitter(NativeModules.ModalManager)\n : null;\n\nimport type EmitterSubscription from 'EmitterSubscription';\n\n/**\n * The Modal component is a simple way to present content above an enclosing view.\n *\n * See https://facebook.github.io/react-native/docs/modal.html\n */\n\n// In order to route onDismiss callbacks, we need to uniquely identifier each\n// on screen. There can be different ones, either nested or as siblings.\n// We cannot pass the onDismiss callback to native as the view will be\n// destroyed before the callback is fired.\nlet uniqueModalIdentifier = 0;\n\nclass Modal extends React.Component {\n static propTypes = {\n /**\n * The `animationType` prop controls how the modal animates.\n *\n * See https://facebook.github.io/react-native/docs/modal.html#animationtype\n */\n animationType: PropTypes.oneOf(['none', 'slide', 'fade']),\n /**\n * The `presentationStyle` prop controls how the modal appears.\n *\n * See https://facebook.github.io/react-native/docs/modal.html#presentationstyle\n */\n presentationStyle: PropTypes.oneOf([\n 'fullScreen',\n 'pageSheet',\n 'formSheet',\n 'overFullScreen',\n ]),\n /**\n * The `transparent` prop determines whether your modal will fill the\n * entire view.\n *\n * See https://facebook.github.io/react-native/docs/modal.html#transparent\n */\n transparent: PropTypes.bool,\n /**\n * The `hardwareAccelerated` prop controls whether to force hardware\n * acceleration for the underlying window.\n *\n * See https://facebook.github.io/react-native/docs/modal.html#hardwareaccelerated\n */\n hardwareAccelerated: PropTypes.bool,\n /**\n * The `visible` prop determines whether your modal is visible.\n *\n * See https://facebook.github.io/react-native/docs/modal.html#visible\n */\n visible: PropTypes.bool,\n /**\n * The `onRequestClose` callback is called when the user taps the hardware\n * back button on Android or the menu button on Apple TV.\n *\n * See https://facebook.github.io/react-native/docs/modal.html#onrequestclose\n */\n onRequestClose:\n Platform.isTV || Platform.OS === 'android'\n ? PropTypes.func.isRequired\n : PropTypes.func,\n /**\n * The `onShow` prop allows passing a function that will be called once the\n * modal has been shown.\n *\n * See https://facebook.github.io/react-native/docs/modal.html#onshow\n */\n onShow: PropTypes.func,\n /**\n * The `onDismiss` prop allows passing a function that will be called once\n * the modal has been dismissed.\n *\n * See https://facebook.github.io/react-native/docs/modal.html#ondismiss\n */\n onDismiss: PropTypes.func,\n animated: deprecatedPropType(\n PropTypes.bool,\n 'Use the `animationType` prop instead.',\n ),\n /**\n * The `supportedOrientations` prop allows the modal to be rotated to any of the specified orientations.\n *\n * See https://facebook.github.io/react-native/docs/modal.html#supportedorientations\n */\n supportedOrientations: PropTypes.arrayOf(\n PropTypes.oneOf([\n 'portrait',\n 'portrait-upside-down',\n 'landscape',\n 'landscape-left',\n 'landscape-right',\n ]),\n ),\n /**\n * The `onOrientationChange` callback is called when the orientation changes while the modal is being displayed.\n *\n * See https://facebook.github.io/react-native/docs/modal.html#onorientationchange\n */\n onOrientationChange: PropTypes.func,\n };\n\n static defaultProps = {\n visible: true,\n hardwareAccelerated: false,\n };\n\n static contextTypes = {\n rootTag: PropTypes.number,\n };\n\n _identifier: number;\n _eventSubscription: ?EmitterSubscription;\n\n constructor(props: Object) {\n super(props);\n Modal._confirmProps(props);\n this._identifier = uniqueModalIdentifier++;\n }\n\n static childContextTypes = {\n virtualizedList: PropTypes.object,\n };\n\n getChildContext() {\n // Reset the context so VirtualizedList doesn't get confused by nesting\n // in the React tree that doesn't reflect the native component heirarchy.\n return {\n virtualizedList: null,\n };\n }\n\n componentDidMount() {\n if (ModalEventEmitter) {\n this._eventSubscription = ModalEventEmitter.addListener(\n 'modalDismissed',\n event => {\n if (event.modalID === this._identifier && this.props.onDismiss) {\n this.props.onDismiss();\n }\n },\n );\n }\n }\n\n componentWillUnmount() {\n if (this._eventSubscription) {\n this._eventSubscription.remove();\n }\n }\n\n UNSAFE_componentWillReceiveProps(nextProps: Object) {\n Modal._confirmProps(nextProps);\n }\n\n static _confirmProps(props: Object) {\n if (\n props.presentationStyle &&\n props.presentationStyle !== 'overFullScreen' &&\n props.transparent\n ) {\n console.warn(\n `Modal with '${\n props.presentationStyle\n }' presentation style and 'transparent' value is not supported.`,\n );\n }\n }\n\n render(): React.Node {\n if (this.props.visible === false) {\n return null;\n }\n\n const containerStyles = {\n backgroundColor: this.props.transparent ? 'transparent' : 'white',\n };\n\n let animationType = this.props.animationType;\n if (!animationType) {\n // manually setting default prop here to keep support for the deprecated 'animated' prop\n animationType = 'none';\n if (this.props.animated) {\n animationType = 'slide';\n }\n }\n\n let presentationStyle = this.props.presentationStyle;\n if (!presentationStyle) {\n presentationStyle = 'fullScreen';\n if (this.props.transparent) {\n presentationStyle = 'overFullScreen';\n }\n }\n\n const innerChildren = __DEV__ ? (\n \n {this.props.children}\n \n ) : (\n this.props.children\n );\n\n return (\n \n {innerChildren}\n \n );\n }\n\n // We don't want any responder events bubbling out of the modal.\n _shouldSetResponder(): boolean {\n return true;\n }\n}\n\nconst side = I18nManager.isRTL ? 'right' : 'left';\nconst styles = StyleSheet.create({\n modal: {\n position: 'absolute',\n },\n container: {\n position: 'absolute',\n [side]: 0,\n top: 0,\n },\n});\n\nmodule.exports = Modal;\n","/**\n * Copyright (c) 2015-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n * @flow\n */\n\n'use strict';\n\nconst EmitterSubscription = require('EmitterSubscription');\nconst PropTypes = require('prop-types');\nconst RCTDeviceEventEmitter = require('RCTDeviceEventEmitter');\nconst React = require('React');\nconst ReactNative = require('ReactNative');\nconst StyleSheet = require('StyleSheet');\nconst View = require('View');\n\ntype Context = {\n rootTag: number,\n};\n\ntype Props = $ReadOnly<{|\n children?: React.Node,\n rootTag: number,\n WrapperComponent?: ?React.ComponentType,\n|}>;\n\ntype State = {|\n inspector: ?React.Node,\n mainKey: number,\n|};\n\nclass AppContainer extends React.Component {\n state: State = {\n inspector: null,\n mainKey: 1,\n };\n _mainRef: ?React.ElementRef;\n _subscription: ?EmitterSubscription = null;\n\n static childContextTypes = {\n rootTag: PropTypes.number,\n };\n\n getChildContext(): Context {\n return {\n rootTag: this.props.rootTag,\n };\n }\n\n componentDidMount(): void {\n if (__DEV__) {\n if (!global.__RCTProfileIsProfiling) {\n this._subscription = RCTDeviceEventEmitter.addListener(\n 'toggleElementInspector',\n () => {\n const Inspector = require('Inspector');\n const inspector = this.state.inspector ? null : (\n {\n this.setState(\n s => ({mainKey: s.mainKey + 1}),\n () =>\n updateInspectedViewTag(\n ReactNative.findNodeHandle(this._mainRef),\n ),\n );\n }}\n />\n );\n this.setState({inspector});\n },\n );\n }\n }\n }\n\n componentWillUnmount(): void {\n if (this._subscription != null) {\n this._subscription.remove();\n }\n }\n\n render(): React.Node {\n let yellowBox = null;\n if (__DEV__) {\n if (!global.__RCTProfileIsProfiling) {\n const YellowBox = require('YellowBox');\n yellowBox = ;\n }\n }\n\n let innerView = (\n {\n this._mainRef = ref;\n }}>\n {this.props.children}\n \n );\n\n const Wrapper = this.props.WrapperComponent;\n if (Wrapper != null) {\n innerView = {innerView};\n }\n return (\n \n {innerView}\n {yellowBox}\n {this.state.inspector}\n \n );\n }\n}\n\nconst styles = StyleSheet.create({\n appContainer: {\n flex: 1,\n },\n});\n\nif (__DEV__) {\n if (!global.__RCTProfileIsProfiling) {\n const YellowBox = require('YellowBox');\n YellowBox.install();\n }\n}\n\nmodule.exports = AppContainer;\n","/**\n * Copyright (c) 2015-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @flow strict-local\n * @format\n */\n'use strict';\n\ntype I18nManagerStatus = {\n isRTL: boolean,\n doLeftAndRightSwapInRTL: boolean,\n allowRTL: (allowRTL: boolean) => {},\n forceRTL: (forceRTL: boolean) => {},\n swapLeftAndRightInRTL: (flipStyles: boolean) => {},\n};\n\nconst I18nManager: I18nManagerStatus = require('NativeModules').I18nManager || {\n isRTL: false,\n doLeftAndRightSwapInRTL: true,\n allowRTL: () => {},\n forceRTL: () => {},\n swapLeftAndRightInRTL: () => {},\n};\n\nmodule.exports = I18nManager;\n","/**\n * Copyright (c) 2015-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n */\n\n'use strict';\n\nmodule.exports = require('UnimplementedView');\n","/**\n * Copyright (c) 2015-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n * @flow\n */\n\n'use strict';\n\nconst ColorPropType = require('ColorPropType');\nconst PickerIOS = require('PickerIOS');\nconst PickerAndroid = require('PickerAndroid');\nconst Platform = require('Platform');\nconst React = require('React');\nconst PropTypes = require('prop-types');\nconst StyleSheetPropType = require('StyleSheetPropType');\nconst TextStylePropTypes = require('TextStylePropTypes');\nconst UnimplementedView = require('UnimplementedView');\nconst ViewPropTypes = require('ViewPropTypes');\nconst ViewStylePropTypes = require('ViewStylePropTypes');\n\nconst itemStylePropType = StyleSheetPropType(TextStylePropTypes);\n\nconst pickerStyleType = StyleSheetPropType({\n ...ViewStylePropTypes,\n color: ColorPropType,\n});\n\nconst MODE_DIALOG = 'dialog';\nconst MODE_DROPDOWN = 'dropdown';\n\n/**\n * Individual selectable item in a Picker.\n */\nclass PickerItem extends React.Component<{\n label: string,\n value?: any,\n color?: ColorPropType,\n testID?: string,\n}> {\n static propTypes = {\n /**\n * Text to display for this item.\n */\n label: PropTypes.string.isRequired,\n /**\n * The value to be passed to picker's `onValueChange` callback when\n * this item is selected. Can be a string or an integer.\n */\n value: PropTypes.any,\n /**\n * Color of this item's text.\n * @platform android\n */\n color: ColorPropType,\n /**\n * Used to locate the item in end-to-end tests.\n */\n testID: PropTypes.string,\n };\n\n render() {\n // The items are not rendered directly\n throw null;\n }\n}\n\n/**\n * Renders the native picker component on iOS and Android. Example:\n *\n * this.setState({language: itemValue})}>\n * \n * \n * \n */\nclass Picker extends React.Component<{\n style?: $FlowFixMe,\n selectedValue?: any,\n onValueChange?: Function,\n enabled?: boolean,\n mode?: 'dialog' | 'dropdown',\n itemStyle?: $FlowFixMe,\n prompt?: string,\n testID?: string,\n}> {\n /**\n * On Android, display the options in a dialog.\n */\n static MODE_DIALOG = MODE_DIALOG;\n\n /**\n * On Android, display the options in a dropdown (this is the default).\n */\n static MODE_DROPDOWN = MODE_DROPDOWN;\n\n static Item = PickerItem;\n\n static defaultProps = {\n mode: MODE_DIALOG,\n };\n\n // $FlowFixMe(>=0.41.0)\n static propTypes = {\n ...ViewPropTypes,\n style: pickerStyleType,\n /**\n * Value matching value of one of the items. Can be a string or an integer.\n */\n selectedValue: PropTypes.any,\n /**\n * Callback for when an item is selected. This is called with the following parameters:\n * - `itemValue`: the `value` prop of the item that was selected\n * - `itemPosition`: the index of the selected item in this picker\n */\n onValueChange: PropTypes.func,\n /**\n * If set to false, the picker will be disabled, i.e. the user will not be able to make a\n * selection.\n * @platform android\n */\n enabled: PropTypes.bool,\n /**\n * On Android, specifies how to display the selection items when the user taps on the picker:\n *\n * - 'dialog': Show a modal dialog. This is the default.\n * - 'dropdown': Shows a dropdown anchored to the picker view\n *\n * @platform android\n */\n mode: PropTypes.oneOf(['dialog', 'dropdown']),\n /**\n * Style to apply to each of the item labels.\n * @platform ios\n */\n itemStyle: itemStylePropType,\n /**\n * Prompt string for this picker, used on Android in dialog mode as the title of the dialog.\n * @platform android\n */\n prompt: PropTypes.string,\n /**\n * Used to locate this view in end-to-end tests.\n */\n testID: PropTypes.string,\n };\n\n render() {\n if (Platform.OS === 'ios') {\n // $FlowFixMe found when converting React.createClass to ES6\n return {this.props.children};\n } else if (Platform.OS === 'android') {\n return (\n // $FlowFixMe found when converting React.createClass to ES6\n {this.props.children}\n );\n } else {\n return ;\n }\n }\n}\n\nmodule.exports = Picker;\n","/**\n * Copyright (c) 2015-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n *\n * This is a controlled component version of RCTPickerIOS\n *\n * @format\n */\n\n'use strict';\n\nmodule.exports = require('UnimplementedView');\n","/**\n * Copyright (c) 2015-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n * @flow\n */\n\n'use strict';\n\nconst ColorPropType = require('ColorPropType');\nconst React = require('React');\nconst ReactPropTypes = require('prop-types');\nconst StyleSheet = require('StyleSheet');\nconst StyleSheetPropType = require('StyleSheetPropType');\nconst ViewPropTypes = require('ViewPropTypes');\nconst ViewStylePropTypes = require('ViewStylePropTypes');\n\nconst processColor = require('processColor');\nconst requireNativeComponent = require('requireNativeComponent');\n\nconst DropdownPicker = requireNativeComponent('AndroidDropdownPicker');\nconst DialogPicker = requireNativeComponent('AndroidDialogPicker');\n\nconst REF_PICKER = 'picker';\nconst MODE_DROPDOWN = 'dropdown';\n\nconst pickerStyleType = StyleSheetPropType({\n ...ViewStylePropTypes,\n color: ColorPropType,\n});\n\ntype Event = Object;\n\n/**\n * Not exposed as a public API - use instead.\n */\nclass PickerAndroid extends React.Component<\n {\n style?: $FlowFixMe,\n selectedValue?: any,\n enabled?: boolean,\n mode?: 'dialog' | 'dropdown',\n onValueChange?: Function,\n prompt?: string,\n testID?: string,\n },\n *,\n> {\n /* $FlowFixMe(>=0.78.0 site=react_native_android_fb) This issue was found\n * when making Flow check .android.js files. */\n static propTypes = {\n ...ViewPropTypes,\n style: pickerStyleType,\n selectedValue: ReactPropTypes.any,\n enabled: ReactPropTypes.bool,\n mode: ReactPropTypes.oneOf(['dialog', 'dropdown']),\n onValueChange: ReactPropTypes.func,\n prompt: ReactPropTypes.string,\n testID: ReactPropTypes.string,\n };\n\n /* $FlowFixMe(>=0.78.0 site=react_native_android_fb) This issue was found\n * when making Flow check .android.js files. */\n constructor(props, context) {\n super(props, context);\n const state = this._stateFromProps(props);\n\n this.state = {\n ...state,\n initialSelectedIndex: state.selectedIndex,\n };\n }\n\n /* $FlowFixMe(>=0.78.0 site=react_native_android_fb) This issue was found\n * when making Flow check .android.js files. */\n UNSAFE_componentWillReceiveProps(nextProps) {\n this.setState(this._stateFromProps(nextProps));\n }\n\n // Translate prop and children into stuff that the native picker understands.\n _stateFromProps = props => {\n let selectedIndex = 0;\n const items = React.Children.map(props.children, (child, index) => {\n if (child.props.value === props.selectedValue) {\n selectedIndex = index;\n }\n const childProps = {\n value: child.props.value,\n label: child.props.label,\n };\n if (child.props.color) {\n /* $FlowFixMe(>=0.78.0 site=react_native_android_fb) This issue was\n * found when making Flow check .android.js files. */\n childProps.color = processColor(child.props.color);\n }\n return childProps;\n });\n return {selectedIndex, items};\n };\n\n render() {\n const Picker =\n this.props.mode === MODE_DROPDOWN ? DropdownPicker : DialogPicker;\n\n const nativeProps = {\n enabled: this.props.enabled,\n items: this.state.items,\n mode: this.props.mode,\n onSelect: this._onChange,\n prompt: this.props.prompt,\n selected: this.state.initialSelectedIndex,\n testID: this.props.testID,\n style: [styles.pickerAndroid, this.props.style],\n /* $FlowFixMe(>=0.78.0 site=react_native_android_fb) This issue was found\n * when making Flow check .android.js files. */\n accessibilityLabel: this.props.accessibilityLabel,\n };\n\n return ;\n }\n\n _onChange = (event: Event) => {\n if (this.props.onValueChange) {\n const position = event.nativeEvent.position;\n if (position >= 0) {\n /* $FlowFixMe(>=0.78.0 site=react_native_android_fb) This issue was\n * found when making Flow check .android.js files. */\n const children = React.Children.toArray(this.props.children);\n const value = children[position].props.value;\n /* $FlowFixMe(>=0.78.0 site=react_native_android_fb) This issue was\n * found when making Flow check .android.js files. */\n this.props.onValueChange(value, position);\n } else {\n this.props.onValueChange(null, position);\n }\n }\n /* $FlowFixMe(>=0.78.0 site=react_native_android_fb) This issue was found\n * when making Flow check .android.js files. */\n this._lastNativePosition = event.nativeEvent.position;\n this.forceUpdate();\n };\n\n componentDidMount() {\n /* $FlowFixMe(>=0.78.0 site=react_native_android_fb) This issue was found\n * when making Flow check .android.js files. */\n this._lastNativePosition = this.state.initialSelectedIndex;\n }\n\n componentDidUpdate() {\n // The picker is a controlled component. This means we expect the\n // on*Change handlers to be in charge of updating our\n // `selectedValue` prop. That way they can also\n // disallow/undo/mutate the selection of certain values. In other\n // words, the embedder of this component should be the source of\n // truth, not the native component.\n if (\n this.refs[REF_PICKER] &&\n /* $FlowFixMe(>=0.78.0 site=react_native_android_fb) This issue was found\n * when making Flow check .android.js files. */\n this.state.selectedIndex !== this._lastNativePosition\n ) {\n this.refs[REF_PICKER].setNativeProps({\n selected: this.state.selectedIndex,\n });\n /* $FlowFixMe(>=0.78.0 site=react_native_android_fb) This issue was found\n * when making Flow check .android.js files. */\n this._lastNativePosition = this.state.selectedIndex;\n }\n }\n}\n\nconst styles = StyleSheet.create({\n pickerAndroid: {\n // The picker will conform to whatever width is given, but we do\n // have to set the component's height explicitly on the\n // surrounding view to ensure it gets rendered.\n // TODO would be better to export a native constant for this,\n // like in iOS the RCTDatePickerManager.m\n height: 50,\n },\n});\n\nmodule.exports = PickerAndroid;\n","/**\n * Copyright (c) 2015-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n */\n\n'use strict';\n\nconst React = require('React');\nconst StyleSheet = require('StyleSheet');\nconst Text = require('Text');\nconst View = require('View');\n\nclass DummyProgressViewIOS extends React.Component {\n render() {\n return (\n \n \n ProgressViewIOS is not supported on this platform!\n \n \n );\n }\n}\n\nconst styles = StyleSheet.create({\n dummy: {\n width: 120,\n height: 20,\n backgroundColor: '#ffbcbc',\n borderWidth: 1,\n borderColor: 'red',\n alignItems: 'center',\n justifyContent: 'center',\n },\n text: {\n color: '#333333',\n margin: 5,\n fontSize: 10,\n },\n});\n\nmodule.exports = DummyProgressViewIOS;\n","/**\n * Copyright (c) 2015-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n * @flow\n */\n\n'use strict';\n\nmodule.exports = require('View');\n","/**\n * Copyright (c) 2015-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n */\n\n'use strict';\n\nconst React = require('React');\nconst StyleSheet = require('StyleSheet');\nconst Text = require('Text');\nconst View = require('View');\n\nclass DummySegmentedControlIOS extends React.Component {\n render() {\n return (\n \n \n SegmentedControlIOS is not supported on this platform!\n \n \n );\n }\n}\n\nconst styles = StyleSheet.create({\n dummy: {\n width: 120,\n height: 50,\n backgroundColor: '#ffbcbc',\n borderWidth: 1,\n borderColor: 'red',\n alignItems: 'center',\n justifyContent: 'center',\n },\n text: {\n color: '#333333',\n margin: 5,\n fontSize: 10,\n },\n});\n\nmodule.exports = DummySegmentedControlIOS;\n","/**\n * Copyright (c) 2015-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n * @flow\n */\n\n'use strict';\n\nconst ReactNative = require('ReactNative');\nconst Platform = require('Platform');\nconst React = require('React');\nconst StyleSheet = require('StyleSheet');\n\nconst requireNativeComponent = require('requireNativeComponent');\n\nimport type {ImageSource} from 'ImageSource';\nimport type {ViewStyleProp} from 'StyleSheet';\nimport type {ColorValue} from 'StyleSheetTypes';\nimport type {ViewProps} from 'ViewPropTypes';\n\nconst RCTSlider = requireNativeComponent('RCTSlider');\n\ntype Event = Object;\n\ntype IOSProps = $ReadOnly<{|\n /**\n * Assigns a single image for the track. Only static images are supported.\n * The center pixel of the image will be stretched to fill the track.\n */\n trackImage?: ?ImageSource,\n\n /**\n * Assigns a minimum track image. Only static images are supported. The\n * rightmost pixel of the image will be stretched to fill the track.\n */\n minimumTrackImage?: ?ImageSource,\n\n /**\n * Assigns a maximum track image. Only static images are supported. The\n * leftmost pixel of the image will be stretched to fill the track.\n */\n maximumTrackImage?: ?ImageSource,\n\n /**\n * Sets an image for the thumb. Only static images are supported.\n */\n thumbImage?: ?ImageSource,\n|}>;\n\ntype AndroidProps = $ReadOnly<{|\n /**\n * Color of the foreground switch grip.\n * @platform android\n */\n thumbTintColor?: ?ColorValue,\n|}>;\n\ntype Props = $ReadOnly<{|\n ...ViewProps,\n ...IOSProps,\n ...AndroidProps,\n\n /**\n * Used to style and layout the `Slider`. See `StyleSheet.js` and\n * `ViewStylePropTypes.js` for more info.\n */\n style?: ?ViewStyleProp,\n\n /**\n * Initial value of the slider. The value should be between minimumValue\n * and maximumValue, which default to 0 and 1 respectively.\n * Default value is 0.\n *\n * *This is not a controlled component*, you don't need to update the\n * value during dragging.\n */\n value?: ?number,\n\n /**\n * Step value of the slider. The value should be\n * between 0 and (maximumValue - minimumValue).\n * Default value is 0.\n */\n step?: ?number,\n\n /**\n * Initial minimum value of the slider. Default value is 0.\n */\n minimumValue?: ?number,\n\n /**\n * Initial maximum value of the slider. Default value is 1.\n */\n maximumValue?: ?number,\n\n /**\n * The color used for the track to the left of the button.\n * Overrides the default blue gradient image on iOS.\n */\n minimumTrackTintColor?: ?ColorValue,\n\n /**\n * The color used for the track to the right of the button.\n * Overrides the default blue gradient image on iOS.\n */\n maximumTrackTintColor?: ?ColorValue,\n\n /**\n * If true the user won't be able to move the slider.\n * Default value is false.\n */\n disabled?: ?boolean,\n\n /**\n * Callback continuously called while the user is dragging the slider.\n */\n onValueChange?: ?Function,\n\n /**\n * Callback that is called when the user releases the slider,\n * regardless if the value has changed. The current value is passed\n * as an argument to the callback handler.\n */\n onSlidingComplete?: ?Function,\n\n /**\n * Used to locate this view in UI automation tests.\n */\n testID?: ?string,\n|}>;\n\n/**\n * A component used to select a single value from a range of values.\n *\n * ### Usage\n *\n * The example below shows how to use `Slider` to change\n * a value used by `Text`. The value is stored using\n * the state of the root component (`App`). The same component\n * subscribes to the `onValueChange` of `Slider` and changes\n * the value using `setState`.\n *\n *```\n * import React from 'react';\n * import { StyleSheet, Text, View, Slider } from 'react-native';\n *\n * export default class App extends React.Component {\n * constructor(props) {\n * super(props);\n * this.state = {\n * value: 50\n * }\n * }\n *\n * change(value) {\n * this.setState(() => {\n * return {\n * value: parseFloat(value)\n * };\n * });\n * }\n *\n * render() {\n * const {value} = this.state;\n * return (\n * \n * {String(value)}\n * \n * \n * );\n * }\n * }\n *\n * const styles = StyleSheet.create({\n * container: {\n * flex: 1,\n * flexDirection: 'column',\n * justifyContent: 'center'\n * },\n * text: {\n * fontSize: 50,\n * textAlign: 'center'\n * }\n * });\n *```\n *\n */\nconst Slider = (\n props: Props,\n forwardedRef?: ?React.Ref<'RCTActivityIndicatorView'>,\n) => {\n const style = StyleSheet.compose(\n styles.slider,\n props.style,\n );\n\n const onValueChange =\n props.onValueChange &&\n ((event: Event) => {\n let userEvent = true;\n if (Platform.OS === 'android') {\n // On Android there's a special flag telling us the user is\n // dragging the slider.\n userEvent = event.nativeEvent.fromUser;\n }\n props.onValueChange &&\n userEvent &&\n props.onValueChange(event.nativeEvent.value);\n });\n\n const onChange = onValueChange;\n\n const onSlidingComplete =\n props.onSlidingComplete &&\n ((event: Event) => {\n props.onSlidingComplete &&\n props.onSlidingComplete(event.nativeEvent.value);\n });\n\n return (\n true}\n onResponderTerminationRequest={() => false}\n />\n );\n};\n\n// $FlowFixMe - TODO T29156721 `React.forwardRef` is not defined in Flow, yet.\nconst SliderWithRef = React.forwardRef(Slider);\n\nSliderWithRef.defaultProps = {\n disabled: false,\n value: 0,\n minimumValue: 0,\n maximumValue: 1,\n step: 0,\n};\n\nlet styles;\nif (Platform.OS === 'ios') {\n styles = StyleSheet.create({\n slider: {\n height: 40,\n },\n });\n} else {\n styles = StyleSheet.create({\n slider: {},\n });\n}\n\nmodule.exports = (SliderWithRef: Class>);\n","/**\n * Copyright (c) 2015-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n */\n\n'use strict';\n\nmodule.exports = require('UnimplementedView');\n","/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @flow\n * @format\n */\n\n'use strict';\n\nconst SwitchNativeComponent = require('SwitchNativeComponent');\nconst Platform = require('Platform');\nconst React = require('React');\nconst StyleSheet = require('StyleSheet');\n\nimport type {SwitchChangeEvent} from 'CoreEventTypes';\nimport type {ColorValue} from 'StyleSheetTypes';\nimport type {ViewProps} from 'ViewPropTypes';\nimport type {NativeAndroidProps, NativeIOSProps} from 'SwitchNativeComponent';\n\nexport type Props = $ReadOnly<{|\n ...ViewProps,\n\n /**\n * Whether the switch is disabled. Defaults to false.\n */\n disabled?: ?boolean,\n\n /**\n * Boolean value of the switch. Defaults to false.\n */\n value?: ?boolean,\n\n /**\n * Custom color for the switch thumb.\n */\n thumbColor?: ?ColorValue,\n\n /**\n * Custom colors for the switch track.\n *\n * NOTE: On iOS when the switch value is false, the track shrinks into the\n * border. If you want to change the color of the background exposed by the\n * shrunken track, use `ios_backgroundColor`.\n */\n trackColor?: ?$ReadOnly<{|\n false?: ?ColorValue,\n true?: ?ColorValue,\n |}>,\n\n /**\n * On iOS, custom color for the background. This background color can be seen\n * either when the switch value is false or when the switch is disabled (and\n * the switch is translucent).\n */\n ios_backgroundColor?: ?ColorValue,\n\n /**\n * Called when the user tries to change the value of the switch.\n *\n * Receives the change event as an argument. If you want to only receive the\n * new value, use `onValueChange` instead.\n */\n onChange?: ?(event: SwitchChangeEvent) => Promise | void,\n\n /**\n * Called when the user tries to change the value of the switch.\n *\n * Receives the new value as an argument. If you want to instead receive an\n * event, use `onChange`.\n */\n onValueChange?: ?(value: boolean) => Promise | void,\n|}>;\n\n/**\n * A visual toggle between two mutually exclusive states.\n *\n * This is a controlled component that requires an `onValueChange` callback that\n * updates the `value` prop in order for the component to reflect user actions.\n * If the `value` prop is not updated, the component will continue to render the\n * supplied `value` prop instead of the expected result of any user actions.\n */\nclass Switch extends React.Component {\n _nativeSwitchRef: ?React.ElementRef;\n\n render() {\n const {\n disabled,\n ios_backgroundColor,\n onChange,\n onValueChange,\n style,\n thumbColor,\n trackColor,\n value,\n ...props\n } = this.props;\n\n // Support deprecated color props.\n let _thumbColor = thumbColor;\n let _trackColorForFalse = trackColor?.false;\n let _trackColorForTrue = trackColor?.true;\n\n // TODO: Remove support for these props after a couple releases.\n const {thumbTintColor, tintColor, onTintColor} = (props: $FlowFixMe);\n if (thumbTintColor != null) {\n _thumbColor = thumbTintColor;\n if (__DEV__) {\n console.warn(\n 'Switch: `thumbTintColor` is deprecated, use `thumbColor` instead.',\n );\n }\n }\n if (tintColor != null) {\n _trackColorForFalse = tintColor;\n if (__DEV__) {\n console.warn(\n 'Switch: `tintColor` is deprecated, use `trackColor` instead.',\n );\n }\n }\n if (onTintColor != null) {\n _trackColorForTrue = onTintColor;\n if (__DEV__) {\n console.warn(\n 'Switch: `onTintColor` is deprecated, use `trackColor` instead.',\n );\n }\n }\n\n const platformProps =\n Platform.OS === 'android'\n ? ({\n enabled: disabled !== true,\n on: value === true,\n style,\n thumbTintColor: _thumbColor,\n trackTintColor:\n value === true ? _trackColorForTrue : _trackColorForFalse,\n }: NativeAndroidProps)\n : ({\n disabled,\n onTintColor: _trackColorForTrue,\n style: StyleSheet.compose(\n {height: 31, width: 51},\n StyleSheet.compose(\n style,\n ios_backgroundColor == null\n ? null\n : {\n backgroundColor: ios_backgroundColor,\n borderRadius: 16,\n },\n ),\n ),\n thumbTintColor: _thumbColor,\n tintColor: _trackColorForFalse,\n value: value === true,\n }: NativeIOSProps);\n\n return (\n \n );\n }\n\n _handleChange = (event: SwitchChangeEvent) => {\n if (this._nativeSwitchRef == null) {\n return;\n }\n\n // Force value of native switch in order to control it.\n const value = this.props.value === true;\n if (Platform.OS === 'android') {\n this._nativeSwitchRef.setNativeProps({on: value});\n } else {\n this._nativeSwitchRef.setNativeProps({value});\n }\n\n if (this.props.onChange != null) {\n this.props.onChange(event);\n }\n\n if (this.props.onValueChange != null) {\n this.props.onValueChange(event.nativeEvent.value);\n }\n };\n\n _handleSwitchNativeComponentRef = (\n ref: ?React.ElementRef,\n ) => {\n this._nativeSwitchRef = ref;\n };\n}\n\nconst returnsFalse = () => false;\nconst returnsTrue = () => true;\n\nmodule.exports = Switch;\n","/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @flow\n * @format\n */\n\n'use strict';\n\nconst Platform = require('Platform');\nconst ReactNative = require('ReactNative');\n\nconst requireNativeComponent = require('requireNativeComponent');\n\nimport type {SwitchChangeEvent} from 'CoreEventTypes';\nimport type {ViewProps} from 'ViewPropTypes';\n\n// @see ReactSwitchManager.java\nexport type NativeAndroidProps = $ReadOnly<{|\n ...ViewProps,\n enabled?: ?boolean,\n on?: ?boolean,\n onChange?: ?(event: SwitchChangeEvent) => mixed,\n thumbTintColor?: ?string,\n trackTintColor?: ?string,\n|}>;\n\n// @see RCTSwitchManager.m\nexport type NativeIOSProps = $ReadOnly<{|\n ...ViewProps,\n disabled?: ?boolean,\n onChange?: ?(event: SwitchChangeEvent) => mixed,\n onTintColor?: ?string,\n thumbTintColor?: ?string,\n tintColor?: ?string,\n value?: ?boolean,\n|}>;\n\ntype SwitchNativeComponentType = Class<\n ReactNative.NativeComponent<\n $ReadOnly<{|\n ...NativeAndroidProps,\n ...NativeIOSProps,\n |}>,\n >,\n>;\n\nconst SwitchNativeComponent: SwitchNativeComponentType =\n Platform.OS === 'android'\n ? (requireNativeComponent('AndroidSwitch'): any)\n : (requireNativeComponent('RCTSwitch'): any);\n\nmodule.exports = SwitchNativeComponent;\n","/**\n * Copyright (c) 2015-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @flow\n * @format\n */\n'use strict';\n\nimport type {Props as FlatListProps} from 'FlatList';\nimport type {renderItemType} from 'VirtualizedList';\n\nconst PropTypes = require('prop-types');\nconst React = require('React');\nconst SwipeableRow = require('SwipeableRow');\nconst FlatList = require('FlatList');\n\ntype SwipableListProps = {\n /**\n * To alert the user that swiping is possible, the first row can bounce\n * on component mount.\n */\n bounceFirstRowOnMount: boolean,\n // Maximum distance to open to after a swipe\n maxSwipeDistance: number | (Object => number),\n // Callback method to render the view that will be unveiled on swipe\n renderQuickActions: renderItemType,\n};\n\ntype Props = SwipableListProps & FlatListProps;\n\ntype State = {\n openRowKey: ?string,\n};\n\n/**\n * A container component that renders multiple SwipeableRow's in a FlatList\n * implementation. This is designed to be a drop-in replacement for the\n * standard React Native `FlatList`, so use it as if it were a FlatList, but\n * with extra props, i.e.\n *\n * \n *\n * SwipeableRow can be used independently of this component, but the main\n * benefit of using this component is\n *\n * - It ensures that at most 1 row is swiped open (auto closes others)\n * - It can bounce the 1st row of the list so users know it's swipeable\n * - Increase performance on iOS by locking list swiping when row swiping is occurring\n * - More to come\n */\n\nclass SwipeableFlatList extends React.Component, State> {\n props: Props;\n state: State;\n\n _flatListRef: ?FlatList = null;\n _shouldBounceFirstRowOnMount: boolean = false;\n\n static propTypes = {\n ...FlatList.propTypes,\n\n /**\n * To alert the user that swiping is possible, the first row can bounce\n * on component mount.\n */\n bounceFirstRowOnMount: PropTypes.bool.isRequired,\n\n // Maximum distance to open to after a swipe\n maxSwipeDistance: PropTypes.oneOfType([PropTypes.number, PropTypes.func])\n .isRequired,\n\n // Callback method to render the view that will be unveiled on swipe\n renderQuickActions: PropTypes.func.isRequired,\n };\n\n static defaultProps = {\n ...FlatList.defaultProps,\n bounceFirstRowOnMount: true,\n renderQuickActions: () => null,\n };\n\n constructor(props: Props, context: any): void {\n super(props, context);\n this.state = {\n openRowKey: null,\n };\n\n this._shouldBounceFirstRowOnMount = this.props.bounceFirstRowOnMount;\n }\n\n render(): React.Node {\n return (\n {\n this._flatListRef = ref;\n }}\n onScroll={this._onScroll}\n renderItem={this._renderItem}\n extraData={this.state}\n />\n );\n }\n\n _onScroll = (e): void => {\n // Close any opens rows on ListView scroll\n if (this.state.openRowKey) {\n this.setState({\n openRowKey: null,\n });\n }\n\n this.props.onScroll && this.props.onScroll(e);\n };\n\n _renderItem = (info: Object): ?React.Element => {\n const slideoutView = this.props.renderQuickActions(info);\n const key = this.props.keyExtractor(info.item, info.index);\n\n // If renderQuickActions is unspecified or returns falsey, don't allow swipe\n if (!slideoutView) {\n return this.props.renderItem(info);\n }\n\n let shouldBounceOnMount = false;\n if (this._shouldBounceFirstRowOnMount) {\n this._shouldBounceFirstRowOnMount = false;\n shouldBounceOnMount = true;\n }\n\n return (\n this._onOpen(key)}\n onClose={() => this._onClose(key)}\n shouldBounceOnMount={shouldBounceOnMount}\n onSwipeEnd={this._setListViewScrollable}\n onSwipeStart={this._setListViewNotScrollable}>\n {this.props.renderItem(info)}\n \n );\n };\n\n // This enables rows having variable width slideoutView.\n _getMaxSwipeDistance(info: Object): number {\n if (typeof this.props.maxSwipeDistance === 'function') {\n return this.props.maxSwipeDistance(info);\n }\n\n return this.props.maxSwipeDistance;\n }\n\n _setListViewScrollableTo(value: boolean) {\n if (this._flatListRef) {\n this._flatListRef.setNativeProps({\n scrollEnabled: value,\n });\n }\n }\n\n _setListViewScrollable = () => {\n this._setListViewScrollableTo(true);\n };\n\n _setListViewNotScrollable = () => {\n this._setListViewScrollableTo(false);\n };\n\n _onOpen(key: any): void {\n this.setState({\n openRowKey: key,\n });\n }\n\n _onClose(key: any): void {\n this.setState({\n openRowKey: null,\n });\n }\n}\n\nmodule.exports = SwipeableFlatList;\n","/**\n * Copyright (c) 2015-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n * @flow\n */\n\n'use strict';\n\nconst Animated = require('Animated');\nconst I18nManager = require('I18nManager');\nconst PanResponder = require('PanResponder');\nconst React = require('React');\nconst PropTypes = require('prop-types');\nconst StyleSheet = require('StyleSheet');\n/* $FlowFixMe(>=0.54.0 site=react_native_oss) This comment suppresses an error\n * found when Flow v0.54 was deployed. To see the error delete this comment and\n * run Flow. */\nconst TimerMixin = require('react-timer-mixin');\nconst View = require('View');\n\nconst createReactClass = require('create-react-class');\nconst emptyFunction = require('fbjs/lib/emptyFunction');\n\nconst IS_RTL = I18nManager.isRTL;\n\n// NOTE: Eventually convert these consts to an input object of configurations\n\n// Position of the left of the swipable item when closed\nconst CLOSED_LEFT_POSITION = 0;\n// Minimum swipe distance before we recognize it as such\nconst HORIZONTAL_SWIPE_DISTANCE_THRESHOLD = 10;\n// Minimum swipe speed before we fully animate the user's action (open/close)\nconst HORIZONTAL_FULL_SWIPE_SPEED_THRESHOLD = 0.3;\n// Factor to divide by to get slow speed; i.e. 4 means 1/4 of full speed\nconst SLOW_SPEED_SWIPE_FACTOR = 4;\n// Time, in milliseconds, of how long the animated swipe should be\nconst SWIPE_DURATION = 300;\n\n/**\n * On SwipeableListView mount, the 1st item will bounce to show users it's\n * possible to swipe\n */\nconst ON_MOUNT_BOUNCE_DELAY = 700;\nconst ON_MOUNT_BOUNCE_DURATION = 400;\n\n// Distance left of closed position to bounce back when right-swiping from closed\nconst RIGHT_SWIPE_BOUNCE_BACK_DISTANCE = 30;\nconst RIGHT_SWIPE_BOUNCE_BACK_DURATION = 300;\n/**\n * Max distance of right swipe to allow (right swipes do functionally nothing).\n * Must be multiplied by SLOW_SPEED_SWIPE_FACTOR because gestureState.dx tracks\n * how far the finger swipes, and not the actual animation distance.\n */\nconst RIGHT_SWIPE_THRESHOLD = 30 * SLOW_SPEED_SWIPE_FACTOR;\n\ntype Props = $ReadOnly<{|\n children?: ?React.Node,\n isOpen?: ?boolean,\n maxSwipeDistance?: ?number,\n onClose?: ?Function,\n onOpen?: ?Function,\n onSwipeEnd?: ?Function,\n onSwipeStart?: ?Function,\n preventSwipeRight?: ?boolean,\n shouldBounceOnMount?: ?boolean,\n slideoutView?: ?React.Node,\n swipeThreshold?: ?number,\n|}>;\n\n/**\n * Creates a swipable row that allows taps on the main item and a custom View\n * on the item hidden behind the row. Typically this should be used in\n * conjunction with SwipeableListView for additional functionality, but can be\n * used in a normal ListView. See the renderRow for SwipeableListView to see how\n * to use this component separately.\n */\nconst SwipeableRow = createReactClass({\n displayName: 'SwipeableRow',\n _panResponder: {},\n _previousLeft: CLOSED_LEFT_POSITION,\n\n mixins: [TimerMixin],\n\n propTypes: {\n children: PropTypes.any,\n isOpen: PropTypes.bool,\n preventSwipeRight: PropTypes.bool,\n maxSwipeDistance: PropTypes.number.isRequired,\n onOpen: PropTypes.func.isRequired,\n onClose: PropTypes.func.isRequired,\n onSwipeEnd: PropTypes.func.isRequired,\n onSwipeStart: PropTypes.func.isRequired,\n // Should bounce the row on mount\n shouldBounceOnMount: PropTypes.bool,\n /**\n * A ReactElement that is unveiled when the user swipes\n */\n slideoutView: PropTypes.node.isRequired,\n /**\n * The minimum swipe distance required before fully animating the swipe. If\n * the user swipes less than this distance, the item will return to its\n * previous (open/close) position.\n */\n swipeThreshold: PropTypes.number.isRequired,\n },\n\n getInitialState(): Object {\n return {\n currentLeft: new Animated.Value(this._previousLeft),\n /**\n * In order to render component A beneath component B, A must be rendered\n * before B. However, this will cause \"flickering\", aka we see A briefly\n * then B. To counter this, _isSwipeableViewRendered flag is used to set\n * component A to be transparent until component B is loaded.\n */\n isSwipeableViewRendered: false,\n rowHeight: (null: ?number),\n };\n },\n\n getDefaultProps(): Object {\n return {\n isOpen: false,\n preventSwipeRight: false,\n maxSwipeDistance: 0,\n onOpen: emptyFunction,\n onClose: emptyFunction,\n onSwipeEnd: emptyFunction,\n onSwipeStart: emptyFunction,\n swipeThreshold: 30,\n };\n },\n\n UNSAFE_componentWillMount(): void {\n this._panResponder = PanResponder.create({\n onMoveShouldSetPanResponderCapture: this\n ._handleMoveShouldSetPanResponderCapture,\n onPanResponderGrant: this._handlePanResponderGrant,\n onPanResponderMove: this._handlePanResponderMove,\n onPanResponderRelease: this._handlePanResponderEnd,\n onPanResponderTerminationRequest: this._onPanResponderTerminationRequest,\n onPanResponderTerminate: this._handlePanResponderEnd,\n onShouldBlockNativeResponder: (event, gestureState) => false,\n });\n },\n\n componentDidMount(): void {\n if (this.props.shouldBounceOnMount) {\n /**\n * Do the on mount bounce after a delay because if we animate when other\n * components are loading, the animation will be laggy\n */\n this.setTimeout(() => {\n this._animateBounceBack(ON_MOUNT_BOUNCE_DURATION);\n }, ON_MOUNT_BOUNCE_DELAY);\n }\n },\n\n UNSAFE_componentWillReceiveProps(nextProps: Object): void {\n /**\n * We do not need an \"animateOpen(noCallback)\" because this animation is\n * handled internally by this component.\n */\n if (this.props.isOpen && !nextProps.isOpen) {\n this._animateToClosedPosition();\n }\n },\n\n render(): React.Element {\n // The view hidden behind the main view\n let slideOutView;\n if (this.state.isSwipeableViewRendered && this.state.rowHeight) {\n slideOutView = (\n \n {this.props.slideoutView}\n \n );\n }\n\n // The swipeable item\n const swipeableView = (\n \n {this.props.children}\n \n );\n\n return (\n \n {slideOutView}\n {swipeableView}\n \n );\n },\n\n close(): void {\n this.props.onClose();\n this._animateToClosedPosition();\n },\n\n _onSwipeableViewLayout(event: Object): void {\n this.setState({\n isSwipeableViewRendered: true,\n rowHeight: event.nativeEvent.layout.height,\n });\n },\n\n _handleMoveShouldSetPanResponderCapture(\n event: Object,\n gestureState: Object,\n ): boolean {\n // Decides whether a swipe is responded to by this component or its child\n return gestureState.dy < 10 && this._isValidSwipe(gestureState);\n },\n\n _handlePanResponderGrant(event: Object, gestureState: Object): void {},\n\n _handlePanResponderMove(event: Object, gestureState: Object): void {\n if (this._isSwipingExcessivelyRightFromClosedPosition(gestureState)) {\n return;\n }\n\n this.props.onSwipeStart();\n\n if (this._isSwipingRightFromClosed(gestureState)) {\n this._swipeSlowSpeed(gestureState);\n } else {\n this._swipeFullSpeed(gestureState);\n }\n },\n\n _isSwipingRightFromClosed(gestureState: Object): boolean {\n const gestureStateDx = IS_RTL ? -gestureState.dx : gestureState.dx;\n return this._previousLeft === CLOSED_LEFT_POSITION && gestureStateDx > 0;\n },\n\n _swipeFullSpeed(gestureState: Object): void {\n this.state.currentLeft.setValue(this._previousLeft + gestureState.dx);\n },\n\n _swipeSlowSpeed(gestureState: Object): void {\n this.state.currentLeft.setValue(\n this._previousLeft + gestureState.dx / SLOW_SPEED_SWIPE_FACTOR,\n );\n },\n\n _isSwipingExcessivelyRightFromClosedPosition(gestureState: Object): boolean {\n /**\n * We want to allow a BIT of right swipe, to allow users to know that\n * swiping is available, but swiping right does not do anything\n * functionally.\n */\n const gestureStateDx = IS_RTL ? -gestureState.dx : gestureState.dx;\n return (\n this._isSwipingRightFromClosed(gestureState) &&\n gestureStateDx > RIGHT_SWIPE_THRESHOLD\n );\n },\n\n _onPanResponderTerminationRequest(\n event: Object,\n gestureState: Object,\n ): boolean {\n return false;\n },\n\n _animateTo(\n toValue: number,\n duration: number = SWIPE_DURATION,\n callback: Function = emptyFunction,\n ): void {\n Animated.timing(this.state.currentLeft, {\n duration,\n toValue,\n useNativeDriver: true,\n }).start(() => {\n this._previousLeft = toValue;\n callback();\n });\n },\n\n _animateToOpenPosition(): void {\n const maxSwipeDistance = IS_RTL\n ? -this.props.maxSwipeDistance\n : this.props.maxSwipeDistance;\n this._animateTo(-maxSwipeDistance);\n },\n\n _animateToOpenPositionWith(speed: number, distMoved: number): void {\n /**\n * Ensure the speed is at least the set speed threshold to prevent a slow\n * swiping animation\n */\n speed =\n speed > HORIZONTAL_FULL_SWIPE_SPEED_THRESHOLD\n ? speed\n : HORIZONTAL_FULL_SWIPE_SPEED_THRESHOLD;\n /**\n * Calculate the duration the row should take to swipe the remaining distance\n * at the same speed the user swiped (or the speed threshold)\n */\n const duration = Math.abs(\n (this.props.maxSwipeDistance - Math.abs(distMoved)) / speed,\n );\n const maxSwipeDistance = IS_RTL\n ? -this.props.maxSwipeDistance\n : this.props.maxSwipeDistance;\n this._animateTo(-maxSwipeDistance, duration);\n },\n\n _animateToClosedPosition(duration: number = SWIPE_DURATION): void {\n this._animateTo(CLOSED_LEFT_POSITION, duration);\n },\n\n _animateToClosedPositionDuringBounce(): void {\n this._animateToClosedPosition(RIGHT_SWIPE_BOUNCE_BACK_DURATION);\n },\n\n _animateBounceBack(duration: number): void {\n /**\n * When swiping right, we want to bounce back past closed position on release\n * so users know they should swipe right to get content.\n */\n const swipeBounceBackDistance = IS_RTL\n ? -RIGHT_SWIPE_BOUNCE_BACK_DISTANCE\n : RIGHT_SWIPE_BOUNCE_BACK_DISTANCE;\n this._animateTo(\n -swipeBounceBackDistance,\n duration,\n this._animateToClosedPositionDuringBounce,\n );\n },\n\n // Ignore swipes due to user's finger moving slightly when tapping\n _isValidSwipe(gestureState: Object): boolean {\n if (\n this.props.preventSwipeRight &&\n this._previousLeft === CLOSED_LEFT_POSITION &&\n gestureState.dx > 0\n ) {\n return false;\n }\n\n return Math.abs(gestureState.dx) > HORIZONTAL_SWIPE_DISTANCE_THRESHOLD;\n },\n\n _shouldAnimateRemainder(gestureState: Object): boolean {\n /**\n * If user has swiped past a certain distance, animate the rest of the way\n * if they let go\n */\n return (\n Math.abs(gestureState.dx) > this.props.swipeThreshold ||\n gestureState.vx > HORIZONTAL_FULL_SWIPE_SPEED_THRESHOLD\n );\n },\n\n _handlePanResponderEnd(event: Object, gestureState: Object): void {\n const horizontalDistance = IS_RTL ? -gestureState.dx : gestureState.dx;\n if (this._isSwipingRightFromClosed(gestureState)) {\n this.props.onOpen();\n this._animateBounceBack(RIGHT_SWIPE_BOUNCE_BACK_DURATION);\n } else if (this._shouldAnimateRemainder(gestureState)) {\n if (horizontalDistance < 0) {\n // Swiped left\n this.props.onOpen();\n this._animateToOpenPositionWith(gestureState.vx, horizontalDistance);\n } else {\n // Swiped right\n this.props.onClose();\n this._animateToClosedPosition();\n }\n } else {\n if (this._previousLeft === CLOSED_LEFT_POSITION) {\n this._animateToClosedPosition();\n } else {\n this._animateToOpenPosition();\n }\n }\n\n this.props.onSwipeEnd();\n },\n});\n\n// TODO: Delete this when `SwipeableRow` uses class syntax.\nclass TypedSwipeableRow extends React.Component {\n close() {}\n}\n\nconst styles = StyleSheet.create({\n slideOutContainer: {\n bottom: 0,\n left: 0,\n position: 'absolute',\n right: 0,\n top: 0,\n },\n});\n\nmodule.exports = ((SwipeableRow: any): Class);\n","/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n */\n\n'use strict';\n\nconst InteractionManager = require('./InteractionManager');\nconst TouchHistoryMath = require('./TouchHistoryMath');\n\nconst currentCentroidXOfTouchesChangedAfter =\n TouchHistoryMath.currentCentroidXOfTouchesChangedAfter;\nconst currentCentroidYOfTouchesChangedAfter =\n TouchHistoryMath.currentCentroidYOfTouchesChangedAfter;\nconst previousCentroidXOfTouchesChangedAfter =\n TouchHistoryMath.previousCentroidXOfTouchesChangedAfter;\nconst previousCentroidYOfTouchesChangedAfter =\n TouchHistoryMath.previousCentroidYOfTouchesChangedAfter;\nconst currentCentroidX = TouchHistoryMath.currentCentroidX;\nconst currentCentroidY = TouchHistoryMath.currentCentroidY;\n\n/**\n * `PanResponder` reconciles several touches into a single gesture. It makes\n * single-touch gestures resilient to extra touches, and can be used to\n * recognize simple multi-touch gestures.\n *\n * By default, `PanResponder` holds an `InteractionManager` handle to block\n * long-running JS events from interrupting active gestures.\n *\n * It provides a predictable wrapper of the responder handlers provided by the\n * [gesture responder system](docs/gesture-responder-system.html).\n * For each handler, it provides a new `gestureState` object alongside the\n * native event object:\n *\n * ```\n * onPanResponderMove: (event, gestureState) => {}\n * ```\n *\n * A native event is a synthetic touch event with the following form:\n *\n * - `nativeEvent`\n * + `changedTouches` - Array of all touch events that have changed since the last event\n * + `identifier` - The ID of the touch\n * + `locationX` - The X position of the touch, relative to the element\n * + `locationY` - The Y position of the touch, relative to the element\n * + `pageX` - The X position of the touch, relative to the root element\n * + `pageY` - The Y position of the touch, relative to the root element\n * + `target` - The node id of the element receiving the touch event\n * + `timestamp` - A time identifier for the touch, useful for velocity calculation\n * + `touches` - Array of all current touches on the screen\n *\n * A `gestureState` object has the following:\n *\n * - `stateID` - ID of the gestureState- persisted as long as there at least\n * one touch on screen\n * - `moveX` - the latest screen coordinates of the recently-moved touch\n * - `moveY` - the latest screen coordinates of the recently-moved touch\n * - `x0` - the screen coordinates of the responder grant\n * - `y0` - the screen coordinates of the responder grant\n * - `dx` - accumulated distance of the gesture since the touch started\n * - `dy` - accumulated distance of the gesture since the touch started\n * - `vx` - current velocity of the gesture\n * - `vy` - current velocity of the gesture\n * - `numberActiveTouches` - Number of touches currently on screen\n *\n * ### Basic Usage\n *\n * ```\n * componentWillMount: function() {\n * this._panResponder = PanResponder.create({\n * // Ask to be the responder:\n * onStartShouldSetPanResponder: (evt, gestureState) => true,\n * onStartShouldSetPanResponderCapture: (evt, gestureState) => true,\n * onMoveShouldSetPanResponder: (evt, gestureState) => true,\n * onMoveShouldSetPanResponderCapture: (evt, gestureState) => true,\n *\n * onPanResponderGrant: (evt, gestureState) => {\n * // The gesture has started. Show visual feedback so the user knows\n * // what is happening!\n *\n * // gestureState.d{x,y} will be set to zero now\n * },\n * onPanResponderMove: (evt, gestureState) => {\n * // The most recent move distance is gestureState.move{X,Y}\n *\n * // The accumulated gesture distance since becoming responder is\n * // gestureState.d{x,y}\n * },\n * onPanResponderTerminationRequest: (evt, gestureState) => true,\n * onPanResponderRelease: (evt, gestureState) => {\n * // The user has released all touches while this view is the\n * // responder. This typically means a gesture has succeeded\n * },\n * onPanResponderTerminate: (evt, gestureState) => {\n * // Another component has become the responder, so this gesture\n * // should be cancelled\n * },\n * onShouldBlockNativeResponder: (evt, gestureState) => {\n * // Returns whether this component should block native components from becoming the JS\n * // responder. Returns true by default. Is currently only supported on android.\n * return true;\n * },\n * });\n * },\n *\n * render: function() {\n * return (\n * \n * );\n * },\n *\n * ```\n *\n * ### Working Example\n *\n * To see it in action, try the\n * [PanResponder example in RNTester](https://github.com/facebook/react-native/blob/master/RNTester/js/PanResponderExample.js)\n */\n\nconst PanResponder = {\n /**\n *\n * A graphical explanation of the touch data flow:\n *\n * +----------------------------+ +--------------------------------+\n * | ResponderTouchHistoryStore | |TouchHistoryMath |\n * +----------------------------+ +----------+---------------------+\n * |Global store of touchHistory| |Allocation-less math util |\n * |including activeness, start | |on touch history (centroids |\n * |position, prev/cur position.| |and multitouch movement etc) |\n * | | | |\n * +----^-----------------------+ +----^---------------------------+\n * | |\n * | (records relevant history |\n * | of touches relevant for |\n * | implementing higher level |\n * | gestures) |\n * | |\n * +----+-----------------------+ +----|---------------------------+\n * | ResponderEventPlugin | | | Your App/Component |\n * +----------------------------+ +----|---------------------------+\n * |Negotiates which view gets | Low level | | High level |\n * |onResponderMove events. | events w/ | +-+-------+ events w/ |\n * |Also records history into | touchHistory| | Pan | multitouch + |\n * |ResponderTouchHistoryStore. +---------------->Responder+-----> accumulative|\n * +----------------------------+ attached to | | | distance and |\n * each event | +---------+ velocity. |\n * | |\n * | |\n * +--------------------------------+\n *\n *\n *\n * Gesture that calculates cumulative movement over time in a way that just\n * \"does the right thing\" for multiple touches. The \"right thing\" is very\n * nuanced. When moving two touches in opposite directions, the cumulative\n * distance is zero in each dimension. When two touches move in parallel five\n * pixels in the same direction, the cumulative distance is five, not ten. If\n * two touches start, one moves five in a direction, then stops and the other\n * touch moves fives in the same direction, the cumulative distance is ten.\n *\n * This logic requires a kind of processing of time \"clusters\" of touch events\n * so that two touch moves that essentially occur in parallel but move every\n * other frame respectively, are considered part of the same movement.\n *\n * Explanation of some of the non-obvious fields:\n *\n * - moveX/moveY: If no move event has been observed, then `(moveX, moveY)` is\n * invalid. If a move event has been observed, `(moveX, moveY)` is the\n * centroid of the most recently moved \"cluster\" of active touches.\n * (Currently all move have the same timeStamp, but later we should add some\n * threshold for what is considered to be \"moving\"). If a palm is\n * accidentally counted as a touch, but a finger is moving greatly, the palm\n * will move slightly, but we only want to count the single moving touch.\n * - x0/y0: Centroid location (non-cumulative) at the time of becoming\n * responder.\n * - dx/dy: Cumulative touch distance - not the same thing as sum of each touch\n * distance. Accounts for touch moves that are clustered together in time,\n * moving the same direction. Only valid when currently responder (otherwise,\n * it only represents the drag distance below the threshold).\n * - vx/vy: Velocity.\n */\n\n _initializeGestureState: function(gestureState) {\n gestureState.moveX = 0;\n gestureState.moveY = 0;\n gestureState.x0 = 0;\n gestureState.y0 = 0;\n gestureState.dx = 0;\n gestureState.dy = 0;\n gestureState.vx = 0;\n gestureState.vy = 0;\n gestureState.numberActiveTouches = 0;\n // All `gestureState` accounts for timeStamps up until:\n gestureState._accountsForMovesUpTo = 0;\n },\n\n /**\n * This is nuanced and is necessary. It is incorrect to continuously take all\n * active *and* recently moved touches, find the centroid, and track how that\n * result changes over time. Instead, we must take all recently moved\n * touches, and calculate how the centroid has changed just for those\n * recently moved touches, and append that change to an accumulator. This is\n * to (at least) handle the case where the user is moving three fingers, and\n * then one of the fingers stops but the other two continue.\n *\n * This is very different than taking all of the recently moved touches and\n * storing their centroid as `dx/dy`. For correctness, we must *accumulate\n * changes* in the centroid of recently moved touches.\n *\n * There is also some nuance with how we handle multiple moved touches in a\n * single event. With the way `ReactNativeEventEmitter` dispatches touches as\n * individual events, multiple touches generate two 'move' events, each of\n * them triggering `onResponderMove`. But with the way `PanResponder` works,\n * all of the gesture inference is performed on the first dispatch, since it\n * looks at all of the touches (even the ones for which there hasn't been a\n * native dispatch yet). Therefore, `PanResponder` does not call\n * `onResponderMove` passed the first dispatch. This diverges from the\n * typical responder callback pattern (without using `PanResponder`), but\n * avoids more dispatches than necessary.\n */\n _updateGestureStateOnMove: function(gestureState, touchHistory) {\n gestureState.numberActiveTouches = touchHistory.numberActiveTouches;\n gestureState.moveX = currentCentroidXOfTouchesChangedAfter(\n touchHistory,\n gestureState._accountsForMovesUpTo,\n );\n gestureState.moveY = currentCentroidYOfTouchesChangedAfter(\n touchHistory,\n gestureState._accountsForMovesUpTo,\n );\n const movedAfter = gestureState._accountsForMovesUpTo;\n const prevX = previousCentroidXOfTouchesChangedAfter(\n touchHistory,\n movedAfter,\n );\n const x = currentCentroidXOfTouchesChangedAfter(touchHistory, movedAfter);\n const prevY = previousCentroidYOfTouchesChangedAfter(\n touchHistory,\n movedAfter,\n );\n const y = currentCentroidYOfTouchesChangedAfter(touchHistory, movedAfter);\n const nextDX = gestureState.dx + (x - prevX);\n const nextDY = gestureState.dy + (y - prevY);\n\n // TODO: This must be filtered intelligently.\n const dt =\n touchHistory.mostRecentTimeStamp - gestureState._accountsForMovesUpTo;\n gestureState.vx = (nextDX - gestureState.dx) / dt;\n gestureState.vy = (nextDY - gestureState.dy) / dt;\n\n gestureState.dx = nextDX;\n gestureState.dy = nextDY;\n gestureState._accountsForMovesUpTo = touchHistory.mostRecentTimeStamp;\n },\n\n /**\n * @param {object} config Enhanced versions of all of the responder callbacks\n * that provide not only the typical `ResponderSyntheticEvent`, but also the\n * `PanResponder` gesture state. Simply replace the word `Responder` with\n * `PanResponder` in each of the typical `onResponder*` callbacks. For\n * example, the `config` object would look like:\n *\n * - `onMoveShouldSetPanResponder: (e, gestureState) => {...}`\n * - `onMoveShouldSetPanResponderCapture: (e, gestureState) => {...}`\n * - `onStartShouldSetPanResponder: (e, gestureState) => {...}`\n * - `onStartShouldSetPanResponderCapture: (e, gestureState) => {...}`\n * - `onPanResponderReject: (e, gestureState) => {...}`\n * - `onPanResponderGrant: (e, gestureState) => {...}`\n * - `onPanResponderStart: (e, gestureState) => {...}`\n * - `onPanResponderEnd: (e, gestureState) => {...}`\n * - `onPanResponderRelease: (e, gestureState) => {...}`\n * - `onPanResponderMove: (e, gestureState) => {...}`\n * - `onPanResponderTerminate: (e, gestureState) => {...}`\n * - `onPanResponderTerminationRequest: (e, gestureState) => {...}`\n * - `onShouldBlockNativeResponder: (e, gestureState) => {...}`\n *\n * In general, for events that have capture equivalents, we update the\n * gestureState once in the capture phase and can use it in the bubble phase\n * as well.\n *\n * Be careful with onStartShould* callbacks. They only reflect updated\n * `gestureState` for start/end events that bubble/capture to the Node.\n * Once the node is the responder, you can rely on every start/end event\n * being processed by the gesture and `gestureState` being updated\n * accordingly. (numberActiveTouches) may not be totally accurate unless you\n * are the responder.\n */\n create: function(config) {\n const interactionState = {\n handle: (null: ?number),\n };\n const gestureState = {\n // Useful for debugging\n stateID: Math.random(),\n };\n PanResponder._initializeGestureState(gestureState);\n const panHandlers = {\n onStartShouldSetResponder: function(e) {\n return config.onStartShouldSetPanResponder === undefined\n ? false\n : config.onStartShouldSetPanResponder(e, gestureState);\n },\n onMoveShouldSetResponder: function(e) {\n return config.onMoveShouldSetPanResponder === undefined\n ? false\n : config.onMoveShouldSetPanResponder(e, gestureState);\n },\n onStartShouldSetResponderCapture: function(e) {\n // TODO: Actually, we should reinitialize the state any time\n // touches.length increases from 0 active to > 0 active.\n if (e.nativeEvent.touches.length === 1) {\n PanResponder._initializeGestureState(gestureState);\n }\n gestureState.numberActiveTouches = e.touchHistory.numberActiveTouches;\n return config.onStartShouldSetPanResponderCapture !== undefined\n ? config.onStartShouldSetPanResponderCapture(e, gestureState)\n : false;\n },\n\n onMoveShouldSetResponderCapture: function(e) {\n const touchHistory = e.touchHistory;\n // Responder system incorrectly dispatches should* to current responder\n // Filter out any touch moves past the first one - we would have\n // already processed multi-touch geometry during the first event.\n if (\n gestureState._accountsForMovesUpTo ===\n touchHistory.mostRecentTimeStamp\n ) {\n return false;\n }\n PanResponder._updateGestureStateOnMove(gestureState, touchHistory);\n return config.onMoveShouldSetPanResponderCapture\n ? config.onMoveShouldSetPanResponderCapture(e, gestureState)\n : false;\n },\n\n onResponderGrant: function(e) {\n if (!interactionState.handle) {\n interactionState.handle = InteractionManager.createInteractionHandle();\n }\n gestureState.x0 = currentCentroidX(e.touchHistory);\n gestureState.y0 = currentCentroidY(e.touchHistory);\n gestureState.dx = 0;\n gestureState.dy = 0;\n if (config.onPanResponderGrant) {\n config.onPanResponderGrant(e, gestureState);\n }\n // TODO: t7467124 investigate if this can be removed\n return config.onShouldBlockNativeResponder === undefined\n ? true\n : config.onShouldBlockNativeResponder();\n },\n\n onResponderReject: function(e) {\n clearInteractionHandle(\n interactionState,\n config.onPanResponderReject,\n e,\n gestureState,\n );\n },\n\n onResponderRelease: function(e) {\n clearInteractionHandle(\n interactionState,\n config.onPanResponderRelease,\n e,\n gestureState,\n );\n PanResponder._initializeGestureState(gestureState);\n },\n\n onResponderStart: function(e) {\n const touchHistory = e.touchHistory;\n gestureState.numberActiveTouches = touchHistory.numberActiveTouches;\n if (config.onPanResponderStart) {\n config.onPanResponderStart(e, gestureState);\n }\n },\n\n onResponderMove: function(e) {\n const touchHistory = e.touchHistory;\n // Guard against the dispatch of two touch moves when there are two\n // simultaneously changed touches.\n if (\n gestureState._accountsForMovesUpTo ===\n touchHistory.mostRecentTimeStamp\n ) {\n return;\n }\n // Filter out any touch moves past the first one - we would have\n // already processed multi-touch geometry during the first event.\n PanResponder._updateGestureStateOnMove(gestureState, touchHistory);\n if (config.onPanResponderMove) {\n config.onPanResponderMove(e, gestureState);\n }\n },\n\n onResponderEnd: function(e) {\n const touchHistory = e.touchHistory;\n gestureState.numberActiveTouches = touchHistory.numberActiveTouches;\n clearInteractionHandle(\n interactionState,\n config.onPanResponderEnd,\n e,\n gestureState,\n );\n },\n\n onResponderTerminate: function(e) {\n clearInteractionHandle(\n interactionState,\n config.onPanResponderTerminate,\n e,\n gestureState,\n );\n PanResponder._initializeGestureState(gestureState);\n },\n\n onResponderTerminationRequest: function(e) {\n return config.onPanResponderTerminationRequest === undefined\n ? true\n : config.onPanResponderTerminationRequest(e, gestureState);\n },\n };\n return {\n panHandlers,\n getInteractionHandle(): ?number {\n return interactionState.handle;\n },\n };\n },\n};\n\nfunction clearInteractionHandle(\n interactionState: {handle: ?number},\n callback: Function,\n event: Object,\n gestureState: Object,\n) {\n if (interactionState.handle) {\n InteractionManager.clearInteractionHandle(interactionState.handle);\n interactionState.handle = null;\n }\n if (callback) {\n callback(event, gestureState);\n }\n}\n\nmodule.exports = PanResponder;\n","/**\n * Copyright (c) 2016-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n */\n\nconst TouchHistoryMath = {\n /**\n * This code is optimized and not intended to look beautiful. This allows\n * computing of touch centroids that have moved after `touchesChangedAfter`\n * timeStamp. You can compute the current centroid involving all touches\n * moves after `touchesChangedAfter`, or you can compute the previous\n * centroid of all touches that were moved after `touchesChangedAfter`.\n *\n * @param {TouchHistoryMath} touchHistory Standard Responder touch track\n * data.\n * @param {number} touchesChangedAfter timeStamp after which moved touches\n * are considered \"actively moving\" - not just \"active\".\n * @param {boolean} isXAxis Consider `x` dimension vs. `y` dimension.\n * @param {boolean} ofCurrent Compute current centroid for actively moving\n * touches vs. previous centroid of now actively moving touches.\n * @return {number} value of centroid in specified dimension.\n */\n centroidDimension: function(\n touchHistory,\n touchesChangedAfter,\n isXAxis,\n ofCurrent,\n ) {\n const touchBank = touchHistory.touchBank;\n let total = 0;\n let count = 0;\n\n const oneTouchData =\n touchHistory.numberActiveTouches === 1\n ? touchHistory.touchBank[touchHistory.indexOfSingleActiveTouch]\n : null;\n\n if (oneTouchData !== null) {\n if (\n oneTouchData.touchActive &&\n oneTouchData.currentTimeStamp > touchesChangedAfter\n ) {\n total +=\n ofCurrent && isXAxis\n ? oneTouchData.currentPageX\n : ofCurrent && !isXAxis\n ? oneTouchData.currentPageY\n : !ofCurrent && isXAxis\n ? oneTouchData.previousPageX\n : oneTouchData.previousPageY;\n count = 1;\n }\n } else {\n for (let i = 0; i < touchBank.length; i++) {\n const touchTrack = touchBank[i];\n if (\n touchTrack !== null &&\n touchTrack !== undefined &&\n touchTrack.touchActive &&\n touchTrack.currentTimeStamp >= touchesChangedAfter\n ) {\n let toAdd; // Yuck, program temporarily in invalid state.\n if (ofCurrent && isXAxis) {\n toAdd = touchTrack.currentPageX;\n } else if (ofCurrent && !isXAxis) {\n toAdd = touchTrack.currentPageY;\n } else if (!ofCurrent && isXAxis) {\n toAdd = touchTrack.previousPageX;\n } else {\n toAdd = touchTrack.previousPageY;\n }\n total += toAdd;\n count++;\n }\n }\n }\n return count > 0 ? total / count : TouchHistoryMath.noCentroid;\n },\n\n currentCentroidXOfTouchesChangedAfter: function(\n touchHistory,\n touchesChangedAfter,\n ) {\n return TouchHistoryMath.centroidDimension(\n touchHistory,\n touchesChangedAfter,\n true, // isXAxis\n true, // ofCurrent\n );\n },\n\n currentCentroidYOfTouchesChangedAfter: function(\n touchHistory,\n touchesChangedAfter,\n ) {\n return TouchHistoryMath.centroidDimension(\n touchHistory,\n touchesChangedAfter,\n false, // isXAxis\n true, // ofCurrent\n );\n },\n\n previousCentroidXOfTouchesChangedAfter: function(\n touchHistory,\n touchesChangedAfter,\n ) {\n return TouchHistoryMath.centroidDimension(\n touchHistory,\n touchesChangedAfter,\n true, // isXAxis\n false, // ofCurrent\n );\n },\n\n previousCentroidYOfTouchesChangedAfter: function(\n touchHistory,\n touchesChangedAfter,\n ) {\n return TouchHistoryMath.centroidDimension(\n touchHistory,\n touchesChangedAfter,\n false, // isXAxis\n false, // ofCurrent\n );\n },\n\n currentCentroidX: function(touchHistory) {\n return TouchHistoryMath.centroidDimension(\n touchHistory,\n 0, // touchesChangedAfter\n true, // isXAxis\n true, // ofCurrent\n );\n },\n\n currentCentroidY: function(touchHistory) {\n return TouchHistoryMath.centroidDimension(\n touchHistory,\n 0, // touchesChangedAfter\n false, // isXAxis\n true, // ofCurrent\n );\n },\n\n noCentroid: -1,\n};\n\nmodule.exports = TouchHistoryMath;\n","/**\n * Copyright (c) 2015-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n * @flow\n */\n\n'use strict';\n\nconst ListView = require('ListView');\nconst PropTypes = require('prop-types');\nconst React = require('React');\nconst SwipeableListViewDataSource = require('SwipeableListViewDataSource');\nconst SwipeableRow = require('SwipeableRow');\n\ntype DefaultProps = {\n bounceFirstRowOnMount: boolean,\n renderQuickActions: Function,\n};\n\ntype Props = {\n bounceFirstRowOnMount: boolean,\n dataSource: SwipeableListViewDataSource,\n maxSwipeDistance:\n | number\n | ((rowData: any, sectionID: string, rowID: string) => number),\n onScroll?: ?Function,\n renderRow: Function,\n renderQuickActions: Function,\n};\n\ntype State = {\n dataSource: Object,\n};\n\n/**\n * A container component that renders multiple SwipeableRow's in a ListView\n * implementation. This is designed to be a drop-in replacement for the\n * standard React Native `ListView`, so use it as if it were a ListView, but\n * with extra props, i.e.\n *\n * let ds = SwipeableListView.getNewDataSource();\n * ds.cloneWithRowsAndSections(dataBlob, ?sectionIDs, ?rowIDs);\n * // ..\n * \n *\n * SwipeableRow can be used independently of this component, but the main\n * benefit of using this component is\n *\n * - It ensures that at most 1 row is swiped open (auto closes others)\n * - It can bounce the 1st row of the list so users know it's swipeable\n * - More to come\n */\nclass SwipeableListView extends React.Component {\n props: Props;\n state: State;\n\n _listViewRef: ?React.Element = null;\n _shouldBounceFirstRowOnMount: boolean = false;\n\n static getNewDataSource(): Object {\n return new SwipeableListViewDataSource({\n getRowData: (data, sectionID, rowID) => data[sectionID][rowID],\n getSectionHeaderData: (data, sectionID) => data[sectionID],\n rowHasChanged: (row1, row2) => row1 !== row2,\n sectionHeaderHasChanged: (s1, s2) => s1 !== s2,\n });\n }\n\n static propTypes = {\n /**\n * To alert the user that swiping is possible, the first row can bounce\n * on component mount.\n */\n bounceFirstRowOnMount: PropTypes.bool.isRequired,\n /**\n * Use `SwipeableListView.getNewDataSource()` to get a data source to use,\n * then use it just like you would a normal ListView data source\n */\n dataSource: PropTypes.instanceOf(SwipeableListViewDataSource).isRequired,\n // Maximum distance to open to after a swipe\n maxSwipeDistance: PropTypes.oneOfType([PropTypes.number, PropTypes.func])\n .isRequired,\n // Callback method to render the swipeable view\n renderRow: PropTypes.func.isRequired,\n // Callback method to render the view that will be unveiled on swipe\n renderQuickActions: PropTypes.func.isRequired,\n };\n\n static defaultProps = {\n bounceFirstRowOnMount: false,\n renderQuickActions: () => null,\n };\n\n constructor(props: Props, context: any): void {\n super(props, context);\n\n this._shouldBounceFirstRowOnMount = this.props.bounceFirstRowOnMount;\n this.state = {\n dataSource: this.props.dataSource,\n };\n }\n\n UNSAFE_componentWillReceiveProps(nextProps: Props): void {\n if (\n this.state.dataSource.getDataSource() !==\n nextProps.dataSource.getDataSource()\n ) {\n this.setState({\n dataSource: nextProps.dataSource,\n });\n }\n }\n\n render(): React.Node {\n return (\n // $FlowFixMe Found when typing ListView\n {\n // $FlowFixMe Found when typing ListView\n this._listViewRef = ref;\n }}\n dataSource={this.state.dataSource.getDataSource()}\n onScroll={this._onScroll}\n renderRow={this._renderRow}\n />\n );\n }\n\n _onScroll = (e): void => {\n // Close any opens rows on ListView scroll\n if (this.props.dataSource.getOpenRowID()) {\n this.setState({\n dataSource: this.state.dataSource.setOpenRowID(null),\n });\n }\n this.props.onScroll && this.props.onScroll(e);\n };\n\n /**\n * This is a work-around to lock vertical `ListView` scrolling on iOS and\n * mimic Android behaviour. Locking vertical scrolling when horizontal\n * scrolling is active allows us to significantly improve framerates\n * (from high 20s to almost consistently 60 fps)\n */\n _setListViewScrollable(value: boolean): void {\n if (\n this._listViewRef &&\n /* $FlowFixMe(>=0.68.0 site=react_native_fb) This comment suppresses an\n * error found when Flow v0.68 was deployed. To see the error delete this\n * comment and run Flow. */\n typeof this._listViewRef.setNativeProps === 'function'\n ) {\n this._listViewRef.setNativeProps({\n scrollEnabled: value,\n });\n }\n }\n\n // Passing through ListView's getScrollResponder() function\n getScrollResponder(): ?Object {\n if (\n this._listViewRef &&\n /* $FlowFixMe(>=0.68.0 site=react_native_fb) This comment suppresses an\n * error found when Flow v0.68 was deployed. To see the error delete this\n * comment and run Flow. */\n typeof this._listViewRef.getScrollResponder === 'function'\n ) {\n return this._listViewRef.getScrollResponder();\n }\n }\n\n // This enables rows having variable width slideoutView.\n _getMaxSwipeDistance(\n rowData: Object,\n sectionID: string,\n rowID: string,\n ): number {\n if (typeof this.props.maxSwipeDistance === 'function') {\n return this.props.maxSwipeDistance(rowData, sectionID, rowID);\n }\n\n return this.props.maxSwipeDistance;\n }\n\n _renderRow = (\n rowData: Object,\n sectionID: string,\n rowID: string,\n ): React.Element => {\n const slideoutView = this.props.renderQuickActions(\n rowData,\n sectionID,\n rowID,\n );\n\n // If renderQuickActions is unspecified or returns falsey, don't allow swipe\n if (!slideoutView) {\n return this.props.renderRow(rowData, sectionID, rowID);\n }\n\n let shouldBounceOnMount = false;\n if (this._shouldBounceFirstRowOnMount) {\n this._shouldBounceFirstRowOnMount = false;\n shouldBounceOnMount = rowID === this.props.dataSource.getFirstRowID();\n }\n\n return (\n this._onOpen(rowData.id)}\n onClose={() => this._onClose(rowData.id)}\n onSwipeEnd={() => this._setListViewScrollable(true)}\n onSwipeStart={() => this._setListViewScrollable(false)}\n shouldBounceOnMount={shouldBounceOnMount}>\n {this.props.renderRow(rowData, sectionID, rowID)}\n \n );\n };\n\n _onOpen(rowID: string): void {\n this.setState({\n dataSource: this.state.dataSource.setOpenRowID(rowID),\n });\n }\n\n _onClose(rowID: string): void {\n this.setState({\n dataSource: this.state.dataSource.setOpenRowID(null),\n });\n }\n}\n\nmodule.exports = SwipeableListView;\n","/**\n * Copyright (c) 2015-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n */\n\n'use strict';\n\nconst ListViewDataSource = require('ListViewDataSource');\n\n/**\n * Data source wrapper around ListViewDataSource to allow for tracking of\n * which row is swiped open and close opened row(s) when another row is swiped\n * open.\n *\n * See https://github.com/facebook/react-native/pull/5602 for why\n * ListViewDataSource is not subclassed.\n */\nclass SwipeableListViewDataSource {\n _previousOpenRowID: string;\n _openRowID: string;\n\n _dataBlob: any;\n _dataSource: ListViewDataSource;\n\n rowIdentities: Array>;\n sectionIdentities: Array;\n\n constructor(params: Object) {\n this._dataSource = new ListViewDataSource({\n getRowData: params.getRowData,\n getSectionHeaderData: params.getSectionHeaderData,\n rowHasChanged: (row1, row2) => {\n /**\n * Row needs to be re-rendered if its swiped open/close status is\n * changed, or its data blob changed.\n */\n return (\n (row1.id !== this._previousOpenRowID &&\n row2.id === this._openRowID) ||\n (row1.id === this._previousOpenRowID &&\n row2.id !== this._openRowID) ||\n params.rowHasChanged(row1, row2)\n );\n },\n sectionHeaderHasChanged: params.sectionHeaderHasChanged,\n });\n }\n\n cloneWithRowsAndSections(\n dataBlob: any,\n sectionIdentities: ?Array,\n rowIdentities: ?Array>,\n ): SwipeableListViewDataSource {\n this._dataSource = this._dataSource.cloneWithRowsAndSections(\n dataBlob,\n sectionIdentities,\n rowIdentities,\n );\n\n this._dataBlob = dataBlob;\n this.rowIdentities = this._dataSource.rowIdentities;\n this.sectionIdentities = this._dataSource.sectionIdentities;\n\n return this;\n }\n\n // For the actual ListView to use\n getDataSource(): ListViewDataSource {\n return this._dataSource;\n }\n\n getOpenRowID(): ?string {\n return this._openRowID;\n }\n\n getFirstRowID(): ?string {\n /**\n * If rowIdentities is specified, find the first data row from there since\n * we don't want to attempt to bounce section headers. If unspecified, find\n * the first data row from _dataBlob.\n */\n if (this.rowIdentities) {\n return this.rowIdentities[0] && this.rowIdentities[0][0];\n }\n return Object.keys(this._dataBlob)[0];\n }\n\n getLastRowID(): ?string {\n if (this.rowIdentities && this.rowIdentities.length) {\n const lastSection = this.rowIdentities[this.rowIdentities.length - 1];\n if (lastSection && lastSection.length) {\n return lastSection[lastSection.length - 1];\n }\n }\n return Object.keys(this._dataBlob)[this._dataBlob.length - 1];\n }\n\n setOpenRowID(rowID: string): SwipeableListViewDataSource {\n this._previousOpenRowID = this._openRowID;\n this._openRowID = rowID;\n\n this._dataSource = this._dataSource.cloneWithRowsAndSections(\n this._dataBlob,\n this.sectionIdentities,\n this.rowIdentities,\n );\n\n return this;\n }\n}\n\nmodule.exports = SwipeableListViewDataSource;\n","/**\n * Copyright (c) 2015-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n * @flow\n */\n\n'use strict';\n\nconst React = require('React');\nconst StyleSheet = require('StyleSheet');\nconst TabBarItemIOS = require('TabBarItemIOS');\nconst View = require('View');\n\nclass DummyTabBarIOS extends React.Component<$FlowFixMeProps> {\n static Item = TabBarItemIOS;\n\n render() {\n return (\n \n {this.props.children}\n \n );\n }\n}\n\nconst styles = StyleSheet.create({\n tabGroup: {\n flex: 1,\n },\n});\n\nmodule.exports = DummyTabBarIOS;\n","/**\n * Copyright (c) 2015-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n */\n\n'use strict';\n\nconst React = require('React');\nconst View = require('View');\nconst StyleSheet = require('StyleSheet');\n\nclass DummyTab extends React.Component {\n render() {\n if (!this.props.selected) {\n return ;\n }\n return (\n {this.props.children}\n );\n }\n}\n\nconst styles = StyleSheet.create({\n tab: {\n // TODO(5405356): Implement overflow: visible so position: absolute isn't useless\n // position: 'absolute',\n top: 0,\n right: 0,\n bottom: 0,\n left: 0,\n borderColor: 'red',\n borderWidth: 1,\n },\n});\n\nmodule.exports = DummyTab;\n","/**\n * Copyright (c) 2015-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @flow\n * @format\n */\n'use strict';\n\nconst ColorPropType = require('ColorPropType');\nconst DocumentSelectionState = require('DocumentSelectionState');\nconst EventEmitter = require('EventEmitter');\nconst NativeMethodsMixin = require('NativeMethodsMixin');\nconst Platform = require('Platform');\nconst React = require('React');\nconst createReactClass = require('create-react-class');\nconst PropTypes = require('prop-types');\nconst ReactNative = require('ReactNative');\nconst StyleSheet = require('StyleSheet');\nconst Text = require('Text');\nconst TextAncestor = require('TextAncestor');\nconst TextInputState = require('TextInputState');\nconst TimerMixin = require('react-timer-mixin');\nconst TouchableWithoutFeedback = require('TouchableWithoutFeedback');\nconst UIManager = require('UIManager');\nconst ViewPropTypes = require('ViewPropTypes');\n\nconst emptyFunction = require('fbjs/lib/emptyFunction');\nconst invariant = require('fbjs/lib/invariant');\nconst requireNativeComponent = require('requireNativeComponent');\nconst warning = require('fbjs/lib/warning');\n\nimport type {ColorValue} from 'StyleSheetTypes';\nimport type {TextStyleProp} from 'StyleSheet';\nimport type {ViewProps} from 'ViewPropTypes';\n\nlet AndroidTextInput;\nlet RCTMultilineTextInputView;\nlet RCTSinglelineTextInputView;\n\nif (Platform.OS === 'android') {\n AndroidTextInput = requireNativeComponent('AndroidTextInput');\n} else if (Platform.OS === 'ios') {\n RCTMultilineTextInputView = requireNativeComponent(\n 'RCTMultilineTextInputView',\n );\n RCTSinglelineTextInputView = requireNativeComponent(\n 'RCTSinglelineTextInputView',\n );\n}\n\nconst onlyMultiline = {\n onTextInput: true,\n children: true,\n};\n\ntype Event = Object;\ntype Selection = {\n start: number,\n end?: number,\n};\n\nconst DataDetectorTypes = [\n 'phoneNumber',\n 'link',\n 'address',\n 'calendarEvent',\n 'none',\n 'all',\n];\n\ntype DataDetectorTypesType =\n | 'phoneNumber'\n | 'link'\n | 'address'\n | 'calendarEvent'\n | 'none'\n | 'all';\n\nexport type KeyboardType =\n // Cross Platform\n | 'default'\n | 'email-address'\n | 'numeric'\n | 'phone-pad'\n | 'number-pad'\n | 'decimal-pad'\n // iOS-only\n | 'ascii-capable'\n | 'numbers-and-punctuation'\n | 'url'\n | 'name-phone-pad'\n | 'twitter'\n | 'web-search'\n // Android-only\n | 'visible-password';\n\nexport type ReturnKeyType =\n // Cross Platform\n | 'done'\n | 'go'\n | 'next'\n | 'search'\n | 'send'\n // Android-only\n | 'none'\n | 'previous'\n // iOS-only\n | 'default'\n | 'emergency-call'\n | 'google'\n | 'join'\n | 'route'\n | 'yahoo';\n\nexport type AutoCapitalize = 'none' | 'sentences' | 'words' | 'characters';\n\ntype IOSProps = $ReadOnly<{|\n spellCheck?: ?boolean,\n keyboardAppearance?: ?('default' | 'light' | 'dark'),\n enablesReturnKeyAutomatically?: ?boolean,\n selectionState?: ?DocumentSelectionState,\n clearButtonMode?: ?('never' | 'while-editing' | 'unless-editing' | 'always'),\n clearTextOnFocus?: ?boolean,\n dataDetectorTypes?:\n | ?DataDetectorTypesType\n | $ReadOnlyArray,\n inputAccessoryViewID?: ?string,\n textContentType?: ?(\n | 'none'\n | 'URL'\n | 'addressCity'\n | 'addressCityAndState'\n | 'addressState'\n | 'countryName'\n | 'creditCardNumber'\n | 'emailAddress'\n | 'familyName'\n | 'fullStreetAddress'\n | 'givenName'\n | 'jobTitle'\n | 'location'\n | 'middleName'\n | 'name'\n | 'namePrefix'\n | 'nameSuffix'\n | 'nickname'\n | 'organizationName'\n | 'postalCode'\n | 'streetAddressLine1'\n | 'streetAddressLine2'\n | 'sublocality'\n | 'telephoneNumber'\n | 'username'\n | 'password'\n ),\n scrollEnabled?: ?boolean,\n|}>;\n\ntype AndroidProps = $ReadOnly<{|\n returnKeyLabel?: ?string,\n numberOfLines?: ?number,\n disableFullscreenUI?: ?boolean,\n textBreakStrategy?: ?('simple' | 'highQuality' | 'balanced'),\n underlineColorAndroid?: ?ColorValue,\n inlineImageLeft?: ?string,\n inlineImagePadding?: ?number,\n|}>;\n\ntype Props = $ReadOnly<{|\n ...ViewProps,\n ...IOSProps,\n ...AndroidProps,\n autoCapitalize?: ?AutoCapitalize,\n autoCorrect?: ?boolean,\n autoFocus?: ?boolean,\n allowFontScaling?: ?boolean,\n editable?: ?boolean,\n keyboardType?: ?KeyboardType,\n returnKeyType?: ?ReturnKeyType,\n maxLength?: ?number,\n multiline?: ?boolean,\n onBlur?: ?Function,\n onFocus?: ?Function,\n onChange?: ?Function,\n onChangeText?: ?Function,\n onContentSizeChange?: ?Function,\n onTextInput?: ?Function,\n onEndEditing?: ?Function,\n onSelectionChange?: ?Function,\n onSubmitEditing?: ?Function,\n onKeyPress?: ?Function,\n onScroll?: ?Function,\n placeholder?: ?Stringish,\n placeholderTextColor?: ?ColorValue,\n secureTextEntry?: ?boolean,\n selectionColor?: ?ColorValue,\n selection?: ?$ReadOnly<{|\n start: number,\n end?: ?number,\n |}>,\n value?: ?Stringish,\n defaultValue?: ?Stringish,\n selectTextOnFocus?: ?boolean,\n blurOnSubmit?: ?boolean,\n style?: ?TextStyleProp,\n caretHidden?: ?boolean,\n contextMenuHidden?: ?boolean,\n|}>;\n\n/**\n * A foundational component for inputting text into the app via a\n * keyboard. Props provide configurability for several features, such as\n * auto-correction, auto-capitalization, placeholder text, and different keyboard\n * types, such as a numeric keypad.\n *\n * The simplest use case is to plop down a `TextInput` and subscribe to the\n * `onChangeText` events to read the user input. There are also other events,\n * such as `onSubmitEditing` and `onFocus` that can be subscribed to. A simple\n * example:\n *\n * ```ReactNativeWebPlayer\n * import React, { Component } from 'react';\n * import { AppRegistry, TextInput } from 'react-native';\n *\n * export default class UselessTextInput extends Component {\n * constructor(props) {\n * super(props);\n * this.state = { text: 'Useless Placeholder' };\n * }\n *\n * render() {\n * return (\n * this.setState({text})}\n * value={this.state.text}\n * />\n * );\n * }\n * }\n *\n * // skip this line if using Create React Native App\n * AppRegistry.registerComponent('AwesomeProject', () => UselessTextInput);\n * ```\n *\n * Two methods exposed via the native element are .focus() and .blur() that\n * will focus or blur the TextInput programmatically.\n *\n * Note that some props are only available with `multiline={true/false}`.\n * Additionally, border styles that apply to only one side of the element\n * (e.g., `borderBottomColor`, `borderLeftWidth`, etc.) will not be applied if\n * `multiline=false`. To achieve the same effect, you can wrap your `TextInput`\n * in a `View`:\n *\n * ```ReactNativeWebPlayer\n * import React, { Component } from 'react';\n * import { AppRegistry, View, TextInput } from 'react-native';\n *\n * class UselessTextInput extends Component {\n * render() {\n * return (\n * \n * );\n * }\n * }\n *\n * export default class UselessTextInputMultiline extends Component {\n * constructor(props) {\n * super(props);\n * this.state = {\n * text: 'Useless Multiline Placeholder',\n * };\n * }\n *\n * // If you type something in the text box that is a color, the background will change to that\n * // color.\n * render() {\n * return (\n * \n * this.setState({text})}\n * value={this.state.text}\n * />\n * \n * );\n * }\n * }\n *\n * // skip these lines if using Create React Native App\n * AppRegistry.registerComponent(\n * 'AwesomeProject',\n * () => UselessTextInputMultiline\n * );\n * ```\n *\n * `TextInput` has by default a border at the bottom of its view. This border\n * has its padding set by the background image provided by the system, and it\n * cannot be changed. Solutions to avoid this is to either not set height\n * explicitly, case in which the system will take care of displaying the border\n * in the correct position, or to not display the border by setting\n * `underlineColorAndroid` to transparent.\n *\n * Note that on Android performing text selection in input can change\n * app's activity `windowSoftInputMode` param to `adjustResize`.\n * This may cause issues with components that have position: 'absolute'\n * while keyboard is active. To avoid this behavior either specify `windowSoftInputMode`\n * in AndroidManifest.xml ( https://developer.android.com/guide/topics/manifest/activity-element.html )\n * or control this param programmatically with native code.\n *\n */\n\nconst TextInput = createReactClass({\n displayName: 'TextInput',\n statics: {\n State: {\n currentlyFocusedField: TextInputState.currentlyFocusedField,\n focusTextInput: TextInputState.focusTextInput,\n blurTextInput: TextInputState.blurTextInput,\n },\n },\n propTypes: {\n ...ViewPropTypes,\n /**\n * Can tell `TextInput` to automatically capitalize certain characters.\n *\n * - `characters`: all characters.\n * - `words`: first letter of each word.\n * - `sentences`: first letter of each sentence (*default*).\n * - `none`: don't auto capitalize anything.\n */\n autoCapitalize: PropTypes.oneOf([\n 'none',\n 'sentences',\n 'words',\n 'characters',\n ]),\n /**\n * If `false`, disables auto-correct. The default value is `true`.\n */\n autoCorrect: PropTypes.bool,\n /**\n * If `false`, disables spell-check style (i.e. red underlines).\n * The default value is inherited from `autoCorrect`.\n * @platform ios\n */\n spellCheck: PropTypes.bool,\n /**\n * If `true`, focuses the input on `componentDidMount`.\n * The default value is `false`.\n */\n autoFocus: PropTypes.bool,\n /**\n * Specifies whether fonts should scale to respect Text Size accessibility settings. The\n * default is `true`.\n */\n allowFontScaling: PropTypes.bool,\n /**\n * If `false`, text is not editable. The default value is `true`.\n */\n editable: PropTypes.bool,\n /**\n * Determines which keyboard to open, e.g.`numeric`.\n *\n * The following values work across platforms:\n *\n * - `default`\n * - `numeric`\n * - `number-pad`\n * - `decimal-pad`\n * - `email-address`\n * - `phone-pad`\n *\n * *iOS Only*\n *\n * The following values work on iOS only:\n *\n * - `ascii-capable`\n * - `numbers-and-punctuation`\n * - `url`\n * - `name-phone-pad`\n * - `twitter`\n * - `web-search`\n *\n * *Android Only*\n *\n * The following values work on Android only:\n *\n * - `visible-password`\n */\n keyboardType: PropTypes.oneOf([\n // Cross-platform\n 'default',\n 'email-address',\n 'numeric',\n 'phone-pad',\n 'number-pad',\n // iOS-only\n 'ascii-capable',\n 'numbers-and-punctuation',\n 'url',\n 'name-phone-pad',\n 'decimal-pad',\n 'twitter',\n 'web-search',\n // Android-only\n 'visible-password',\n ]),\n /**\n * Determines the color of the keyboard.\n * @platform ios\n */\n keyboardAppearance: PropTypes.oneOf(['default', 'light', 'dark']),\n /**\n * Determines how the return key should look. On Android you can also use\n * `returnKeyLabel`.\n *\n * *Cross platform*\n *\n * The following values work across platforms:\n *\n * - `done`\n * - `go`\n * - `next`\n * - `search`\n * - `send`\n *\n * *Android Only*\n *\n * The following values work on Android only:\n *\n * - `none`\n * - `previous`\n *\n * *iOS Only*\n *\n * The following values work on iOS only:\n *\n * - `default`\n * - `emergency-call`\n * - `google`\n * - `join`\n * - `route`\n * - `yahoo`\n */\n returnKeyType: PropTypes.oneOf([\n // Cross-platform\n 'done',\n 'go',\n 'next',\n 'search',\n 'send',\n // Android-only\n 'none',\n 'previous',\n // iOS-only\n 'default',\n 'emergency-call',\n 'google',\n 'join',\n 'route',\n 'yahoo',\n ]),\n /**\n * Sets the return key to the label. Use it instead of `returnKeyType`.\n * @platform android\n */\n returnKeyLabel: PropTypes.string,\n /**\n * Limits the maximum number of characters that can be entered. Use this\n * instead of implementing the logic in JS to avoid flicker.\n */\n maxLength: PropTypes.number,\n /**\n * Sets the number of lines for a `TextInput`. Use it with multiline set to\n * `true` to be able to fill the lines.\n * @platform android\n */\n numberOfLines: PropTypes.number,\n /**\n * When `false`, if there is a small amount of space available around a text input\n * (e.g. landscape orientation on a phone), the OS may choose to have the user edit\n * the text inside of a full screen text input mode. When `true`, this feature is\n * disabled and users will always edit the text directly inside of the text input.\n * Defaults to `false`.\n * @platform android\n */\n disableFullscreenUI: PropTypes.bool,\n /**\n * If `true`, the keyboard disables the return key when there is no text and\n * automatically enables it when there is text. The default value is `false`.\n * @platform ios\n */\n enablesReturnKeyAutomatically: PropTypes.bool,\n /**\n * If `true`, the text input can be multiple lines.\n * The default value is `false`.\n */\n multiline: PropTypes.bool,\n /**\n * Set text break strategy on Android API Level 23+, possible values are `simple`, `highQuality`, `balanced`\n * The default value is `simple`.\n * @platform android\n */\n textBreakStrategy: PropTypes.oneOf(['simple', 'highQuality', 'balanced']),\n /**\n * Callback that is called when the text input is blurred.\n */\n onBlur: PropTypes.func,\n /**\n * Callback that is called when the text input is focused.\n */\n onFocus: PropTypes.func,\n /**\n * Callback that is called when the text input's text changes.\n */\n onChange: PropTypes.func,\n /**\n * Callback that is called when the text input's text changes.\n * Changed text is passed as an argument to the callback handler.\n */\n onChangeText: PropTypes.func,\n /**\n * Callback that is called when the text input's content size changes.\n * This will be called with\n * `{ nativeEvent: { contentSize: { width, height } } }`.\n *\n * Only called for multiline text inputs.\n */\n onContentSizeChange: PropTypes.func,\n onTextInput: PropTypes.func,\n /**\n * Callback that is called when text input ends.\n */\n onEndEditing: PropTypes.func,\n /**\n * Callback that is called when the text input selection is changed.\n * This will be called with\n * `{ nativeEvent: { selection: { start, end } } }`.\n */\n onSelectionChange: PropTypes.func,\n /**\n * Callback that is called when the text input's submit button is pressed.\n * Invalid if `multiline={true}` is specified.\n */\n onSubmitEditing: PropTypes.func,\n /**\n * Callback that is called when a key is pressed.\n * This will be called with `{ nativeEvent: { key: keyValue } }`\n * where `keyValue` is `'Enter'` or `'Backspace'` for respective keys and\n * the typed-in character otherwise including `' '` for space.\n * Fires before `onChange` callbacks.\n */\n onKeyPress: PropTypes.func,\n /**\n * Invoked on mount and layout changes with `{x, y, width, height}`.\n */\n onLayout: PropTypes.func,\n /**\n * Invoked on content scroll with `{ nativeEvent: { contentOffset: { x, y } } }`.\n * May also contain other properties from ScrollEvent but on Android contentSize\n * is not provided for performance reasons.\n */\n onScroll: PropTypes.func,\n /**\n * The string that will be rendered before text input has been entered.\n */\n placeholder: PropTypes.string,\n /**\n * The text color of the placeholder string.\n */\n placeholderTextColor: ColorPropType,\n /**\n * If `false`, scrolling of the text view will be disabled.\n * The default value is `true`. Does only work with 'multiline={true}'.\n * @platform ios\n */\n scrollEnabled: PropTypes.bool,\n /**\n * If `true`, the text input obscures the text entered so that sensitive text\n * like passwords stay secure. The default value is `false`. Does not work with 'multiline={true}'.\n */\n secureTextEntry: PropTypes.bool,\n /**\n * The highlight and cursor color of the text input.\n */\n selectionColor: ColorPropType,\n /**\n * An instance of `DocumentSelectionState`, this is some state that is responsible for\n * maintaining selection information for a document.\n *\n * Some functionality that can be performed with this instance is:\n *\n * - `blur()`\n * - `focus()`\n * - `update()`\n *\n * > You can reference `DocumentSelectionState` in\n * > [`vendor/document/selection/DocumentSelectionState.js`](https://github.com/facebook/react-native/blob/master/Libraries/vendor/document/selection/DocumentSelectionState.js)\n *\n * @platform ios\n */\n selectionState: PropTypes.instanceOf(DocumentSelectionState),\n /**\n * The start and end of the text input's selection. Set start and end to\n * the same value to position the cursor.\n */\n selection: PropTypes.shape({\n start: PropTypes.number.isRequired,\n end: PropTypes.number,\n }),\n /**\n * The value to show for the text input. `TextInput` is a controlled\n * component, which means the native value will be forced to match this\n * value prop if provided. For most uses, this works great, but in some\n * cases this may cause flickering - one common cause is preventing edits\n * by keeping value the same. In addition to simply setting the same value,\n * either set `editable={false}`, or set/update `maxLength` to prevent\n * unwanted edits without flicker.\n */\n value: PropTypes.string,\n /**\n * Provides an initial value that will change when the user starts typing.\n * Useful for simple use-cases where you do not want to deal with listening\n * to events and updating the value prop to keep the controlled state in sync.\n */\n defaultValue: PropTypes.string,\n /**\n * When the clear button should appear on the right side of the text view.\n * This property is supported only for single-line TextInput component.\n * @platform ios\n */\n clearButtonMode: PropTypes.oneOf([\n 'never',\n 'while-editing',\n 'unless-editing',\n 'always',\n ]),\n /**\n * If `true`, clears the text field automatically when editing begins.\n * @platform ios\n */\n clearTextOnFocus: PropTypes.bool,\n /**\n * If `true`, all text will automatically be selected on focus.\n */\n selectTextOnFocus: PropTypes.bool,\n /**\n * If `true`, the text field will blur when submitted.\n * The default value is true for single-line fields and false for\n * multiline fields. Note that for multiline fields, setting `blurOnSubmit`\n * to `true` means that pressing return will blur the field and trigger the\n * `onSubmitEditing` event instead of inserting a newline into the field.\n */\n blurOnSubmit: PropTypes.bool,\n /**\n * Note that not all Text styles are supported, an incomplete list of what is not supported includes:\n *\n * - `borderLeftWidth`\n * - `borderTopWidth`\n * - `borderRightWidth`\n * - `borderBottomWidth`\n * - `borderTopLeftRadius`\n * - `borderTopRightRadius`\n * - `borderBottomRightRadius`\n * - `borderBottomLeftRadius`\n *\n * see [Issue#7070](https://github.com/facebook/react-native/issues/7070)\n * for more detail.\n *\n * [Styles](docs/style.html)\n */\n style: Text.propTypes.style,\n /**\n * The color of the `TextInput` underline.\n * @platform android\n */\n underlineColorAndroid: ColorPropType,\n\n /**\n * If defined, the provided image resource will be rendered on the left.\n * The image resource must be inside `/android/app/src/main/res/drawable` and referenced\n * like\n * ```\n * \n * ```\n * @platform android\n */\n inlineImageLeft: PropTypes.string,\n\n /**\n * Padding between the inline image, if any, and the text input itself.\n * @platform android\n */\n inlineImagePadding: PropTypes.number,\n\n /**\n * Determines the types of data converted to clickable URLs in the text input.\n * Only valid if `multiline={true}` and `editable={false}`.\n * By default no data types are detected.\n *\n * You can provide one type or an array of many types.\n *\n * Possible values for `dataDetectorTypes` are:\n *\n * - `'phoneNumber'`\n * - `'link'`\n * - `'address'`\n * - `'calendarEvent'`\n * - `'none'`\n * - `'all'`\n *\n * @platform ios\n */\n dataDetectorTypes: PropTypes.oneOfType([\n PropTypes.oneOf(DataDetectorTypes),\n PropTypes.arrayOf(PropTypes.oneOf(DataDetectorTypes)),\n ]),\n /**\n * If `true`, caret is hidden. The default value is `false`.\n * This property is supported only for single-line TextInput component on iOS.\n */\n caretHidden: PropTypes.bool,\n /*\n * If `true`, contextMenuHidden is hidden. The default value is `false`.\n */\n contextMenuHidden: PropTypes.bool,\n /**\n * An optional identifier which links a custom InputAccessoryView to\n * this text input. The InputAccessoryView is rendered above the\n * keyboard when this text input is focused.\n * @platform ios\n */\n inputAccessoryViewID: PropTypes.string,\n /**\n * Give the keyboard and the system information about the\n * expected semantic meaning for the content that users enter.\n * @platform ios\n */\n textContentType: PropTypes.oneOf([\n 'none',\n 'URL',\n 'addressCity',\n 'addressCityAndState',\n 'addressState',\n 'countryName',\n 'creditCardNumber',\n 'emailAddress',\n 'familyName',\n 'fullStreetAddress',\n 'givenName',\n 'jobTitle',\n 'location',\n 'middleName',\n 'name',\n 'namePrefix',\n 'nameSuffix',\n 'nickname',\n 'organizationName',\n 'postalCode',\n 'streetAddressLine1',\n 'streetAddressLine2',\n 'sublocality',\n 'telephoneNumber',\n 'username',\n 'password',\n ]),\n },\n getDefaultProps(): Object {\n return {\n allowFontScaling: true,\n underlineColorAndroid: 'transparent',\n };\n },\n /**\n * `NativeMethodsMixin` will look for this when invoking `setNativeProps`. We\n * make `this` look like an actual native component class.\n */\n mixins: [NativeMethodsMixin, TimerMixin],\n\n /**\n * Returns `true` if the input is currently focused; `false` otherwise.\n */\n isFocused: function(): boolean {\n return (\n TextInputState.currentlyFocusedField() ===\n ReactNative.findNodeHandle(this._inputRef)\n );\n },\n\n _inputRef: (undefined: any),\n _focusSubscription: (undefined: ?Function),\n _lastNativeText: (undefined: ?string),\n _lastNativeSelection: (undefined: ?Selection),\n\n componentDidMount: function() {\n this._lastNativeText = this.props.value;\n const tag = ReactNative.findNodeHandle(this._inputRef);\n if (tag != null) {\n // tag is null only in unit tests\n TextInputState.registerInput(tag);\n }\n\n if (this.context.focusEmitter) {\n this._focusSubscription = this.context.focusEmitter.addListener(\n 'focus',\n el => {\n if (this === el) {\n this.requestAnimationFrame(this.focus);\n } else if (this.isFocused()) {\n this.blur();\n }\n },\n );\n if (this.props.autoFocus) {\n this.context.onFocusRequested(this);\n }\n } else {\n if (this.props.autoFocus) {\n this.requestAnimationFrame(this.focus);\n }\n }\n },\n\n componentWillUnmount: function() {\n this._focusSubscription && this._focusSubscription.remove();\n if (this.isFocused()) {\n this.blur();\n }\n const tag = ReactNative.findNodeHandle(this._inputRef);\n if (tag != null) {\n TextInputState.unregisterInput(tag);\n }\n },\n\n contextTypes: {\n onFocusRequested: PropTypes.func,\n focusEmitter: PropTypes.instanceOf(EventEmitter),\n },\n\n /**\n * Removes all text from the `TextInput`.\n */\n clear: function() {\n this.setNativeProps({text: ''});\n },\n\n render: function() {\n let textInput;\n if (Platform.OS === 'ios') {\n textInput = UIManager.RCTVirtualText\n ? this._renderIOS()\n : this._renderIOSLegacy();\n } else if (Platform.OS === 'android') {\n textInput = this._renderAndroid();\n }\n return (\n {textInput}\n );\n },\n\n _getText: function(): ?string {\n return typeof this.props.value === 'string'\n ? this.props.value\n : typeof this.props.defaultValue === 'string'\n ? this.props.defaultValue\n : '';\n },\n\n _setNativeRef: function(ref: any) {\n this._inputRef = ref;\n },\n\n _renderIOSLegacy: function() {\n let textContainer;\n\n const props = Object.assign({}, this.props);\n props.style = [this.props.style];\n\n if (props.selection && props.selection.end == null) {\n props.selection = {\n start: props.selection.start,\n end: props.selection.start,\n };\n }\n\n if (!props.multiline) {\n if (__DEV__) {\n for (const propKey in onlyMultiline) {\n if (props[propKey]) {\n const error = new Error(\n 'TextInput prop `' +\n propKey +\n '` is only supported with multiline.',\n );\n warning(false, '%s', error.stack);\n }\n }\n }\n textContainer = (\n \n );\n } else {\n let children = props.children;\n let childCount = 0;\n React.Children.forEach(children, () => ++childCount);\n invariant(\n !(props.value && childCount),\n 'Cannot specify both value and children.',\n );\n if (childCount >= 1) {\n children = (\n \n {children}\n \n );\n }\n if (props.inputView) {\n children = [children, props.inputView];\n }\n props.style.unshift(styles.multilineInput);\n textContainer = (\n \n );\n }\n\n return (\n \n {textContainer}\n \n );\n },\n\n _renderIOS: function() {\n const props = Object.assign({}, this.props);\n props.style = [this.props.style];\n\n if (props.selection && props.selection.end == null) {\n props.selection = {\n start: props.selection.start,\n end: props.selection.start,\n };\n }\n\n const RCTTextInputView = props.multiline\n ? RCTMultilineTextInputView\n : RCTSinglelineTextInputView;\n\n if (props.multiline) {\n props.style.unshift(styles.multilineInput);\n }\n\n const textContainer = (\n \n );\n\n return (\n \n {textContainer}\n \n );\n },\n\n _renderAndroid: function() {\n const props = Object.assign({}, this.props);\n props.style = [this.props.style];\n props.autoCapitalize =\n UIManager.AndroidTextInput.Constants.AutoCapitalizationType[\n props.autoCapitalize || 'sentences'\n ];\n /* $FlowFixMe(>=0.53.0 site=react_native_fb,react_native_oss) This comment\n * suppresses an error when upgrading Flow's support for React. To see the\n * error delete this comment and run Flow. */\n let children = this.props.children;\n let childCount = 0;\n React.Children.forEach(children, () => ++childCount);\n invariant(\n !(this.props.value && childCount),\n 'Cannot specify both value and children.',\n );\n if (childCount > 1) {\n children = {children};\n }\n\n if (props.selection && props.selection.end == null) {\n props.selection = {\n start: props.selection.start,\n end: props.selection.start,\n };\n }\n\n const textContainer = (\n \n );\n\n return (\n \n {textContainer}\n \n );\n },\n\n _onFocus: function(event: Event) {\n if (this.props.onFocus) {\n this.props.onFocus(event);\n }\n\n if (this.props.selectionState) {\n this.props.selectionState.focus();\n }\n },\n\n _onPress: function(event: Event) {\n if (this.props.editable || this.props.editable === undefined) {\n this.focus();\n }\n },\n\n _onChange: function(event: Event) {\n // Make sure to fire the mostRecentEventCount first so it is already set on\n // native when the text value is set.\n if (this._inputRef) {\n this._inputRef.setNativeProps({\n mostRecentEventCount: event.nativeEvent.eventCount,\n });\n }\n\n const text = event.nativeEvent.text;\n this.props.onChange && this.props.onChange(event);\n this.props.onChangeText && this.props.onChangeText(text);\n\n if (!this._inputRef) {\n // calling `this.props.onChange` or `this.props.onChangeText`\n // may clean up the input itself. Exits here.\n return;\n }\n\n this._lastNativeText = text;\n this.forceUpdate();\n },\n\n _onSelectionChange: function(event: Event) {\n this.props.onSelectionChange && this.props.onSelectionChange(event);\n\n if (!this._inputRef) {\n // calling `this.props.onSelectionChange`\n // may clean up the input itself. Exits here.\n return;\n }\n\n this._lastNativeSelection = event.nativeEvent.selection;\n\n if (this.props.selection || this.props.selectionState) {\n this.forceUpdate();\n }\n },\n\n componentDidUpdate: function() {\n // This is necessary in case native updates the text and JS decides\n // that the update should be ignored and we should stick with the value\n // that we have in JS.\n const nativeProps = {};\n\n if (\n this._lastNativeText !== this.props.value &&\n typeof this.props.value === 'string'\n ) {\n nativeProps.text = this.props.value;\n }\n\n // Selection is also a controlled prop, if the native value doesn't match\n // JS, update to the JS value.\n const {selection} = this.props;\n if (\n this._lastNativeSelection &&\n selection &&\n (this._lastNativeSelection.start !== selection.start ||\n this._lastNativeSelection.end !== selection.end)\n ) {\n nativeProps.selection = this.props.selection;\n }\n\n if (Object.keys(nativeProps).length > 0 && this._inputRef) {\n this._inputRef.setNativeProps(nativeProps);\n }\n\n if (this.props.selectionState && selection) {\n this.props.selectionState.update(selection.start, selection.end);\n }\n },\n\n _onBlur: function(event: Event) {\n this.blur();\n if (this.props.onBlur) {\n this.props.onBlur(event);\n }\n\n if (this.props.selectionState) {\n this.props.selectionState.blur();\n }\n },\n\n _onTextInput: function(event: Event) {\n this.props.onTextInput && this.props.onTextInput(event);\n },\n\n _onScroll: function(event: Event) {\n this.props.onScroll && this.props.onScroll(event);\n },\n});\n\nclass InternalTextInputType extends ReactNative.NativeComponent {\n clear() {}\n\n // $FlowFixMe\n isFocused(): boolean {}\n}\n\nconst TypedTextInput = ((TextInput: any): Class);\n\nconst styles = StyleSheet.create({\n multilineInput: {\n // This default top inset makes RCTMultilineTextInputView seem as close as possible\n // to single-line RCTSinglelineTextInputView defaults, using the system defaults\n // of font size 17 and a height of 31 points.\n paddingTop: 5,\n },\n});\n\nmodule.exports = TypedTextInput;\n","/**\n * Copyright (c) 2015-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n * @typechecks\n */\n\n'use strict';\n\nconst mixInEventEmitter = require('mixInEventEmitter');\n\n/**\n * DocumentSelectionState is responsible for maintaining selection information\n * for a document.\n *\n * It is intended for use by AbstractTextEditor-based components for\n * identifying the appropriate start/end positions to modify the\n * DocumentContent, and for programmatically setting browser selection when\n * components re-render.\n */\nclass DocumentSelectionState {\n /**\n * @param {number} anchor\n * @param {number} focus\n */\n constructor(anchor, focus) {\n this._anchorOffset = anchor;\n this._focusOffset = focus;\n this._hasFocus = false;\n }\n\n /**\n * Apply an update to the state. If either offset value has changed,\n * set the values and emit the `change` event. Otherwise no-op.\n *\n * @param {number} anchor\n * @param {number} focus\n */\n update(anchor, focus) {\n if (this._anchorOffset !== anchor || this._focusOffset !== focus) {\n this._anchorOffset = anchor;\n this._focusOffset = focus;\n this.emit('update');\n }\n }\n\n /**\n * Given a max text length, constrain our selection offsets to ensure\n * that the selection remains strictly within the text range.\n *\n * @param {number} maxLength\n */\n constrainLength(maxLength) {\n this.update(\n Math.min(this._anchorOffset, maxLength),\n Math.min(this._focusOffset, maxLength),\n );\n }\n\n focus() {\n if (!this._hasFocus) {\n this._hasFocus = true;\n this.emit('focus');\n }\n }\n\n blur() {\n if (this._hasFocus) {\n this._hasFocus = false;\n this.emit('blur');\n }\n }\n\n /**\n * @return {boolean}\n */\n hasFocus() {\n return this._hasFocus;\n }\n\n /**\n * @return {boolean}\n */\n isCollapsed() {\n return this._anchorOffset === this._focusOffset;\n }\n\n /**\n * @return {boolean}\n */\n isBackward() {\n return this._anchorOffset > this._focusOffset;\n }\n\n /**\n * @return {?number}\n */\n getAnchorOffset() {\n return this._hasFocus ? this._anchorOffset : null;\n }\n\n /**\n * @return {?number}\n */\n getFocusOffset() {\n return this._hasFocus ? this._focusOffset : null;\n }\n\n /**\n * @return {?number}\n */\n getStartOffset() {\n return this._hasFocus\n ? Math.min(this._anchorOffset, this._focusOffset)\n : null;\n }\n\n /**\n * @return {?number}\n */\n getEndOffset() {\n return this._hasFocus\n ? Math.max(this._anchorOffset, this._focusOffset)\n : null;\n }\n\n /**\n * @param {number} start\n * @param {number} end\n * @return {boolean}\n */\n overlaps(start, end) {\n return (\n this.hasFocus() &&\n this.getStartOffset() <= end &&\n start <= this.getEndOffset()\n );\n }\n}\n\nmixInEventEmitter(DocumentSelectionState, {\n blur: true,\n focus: true,\n update: true,\n});\n\nmodule.exports = DocumentSelectionState;\n","/**\n * Copyright (c) 2015-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n * @flow\n */\n\n'use strict';\n\nconst EventEmitter = require('EventEmitter');\nconst EventEmitterWithHolding = require('EventEmitterWithHolding');\nconst EventHolder = require('EventHolder');\n\nconst invariant = require('fbjs/lib/invariant');\n/* $FlowFixMe(>=0.54.0 site=react_native_oss) This comment suppresses an error\n * found when Flow v0.54 was deployed. To see the error delete this comment and\n * run Flow. */\nconst keyOf = require('fbjs/lib/keyOf');\n\nimport type EmitterSubscription from 'EmitterSubscription';\n\nconst TYPES_KEY = keyOf({__types: true});\n\n/**\n * API to setup an object or constructor to be able to emit data events.\n *\n * @example\n * function Dog() { ...dog stuff... }\n * mixInEventEmitter(Dog, {bark: true});\n *\n * var puppy = new Dog();\n * puppy.addListener('bark', function (volume) {\n * console.log('Puppy', this, 'barked at volume:', volume);\n * });\n * puppy.emit('bark', 'quiet');\n * // Puppy barked at volume: quiet\n *\n *\n * // A \"singleton\" object may also be commissioned:\n *\n * var Singleton = {};\n * mixInEventEmitter(Singleton, {lonely: true});\n * Singleton.emit('lonely', true);\n */\nfunction mixInEventEmitter(cls: Function | Object, types: Object) {\n invariant(types, 'Must supply set of valid event types');\n\n // If this is a constructor, write to the prototype, otherwise write to the\n // singleton object.\n const target = cls.prototype || cls;\n\n invariant(!target.__eventEmitter, 'An active emitter is already mixed in');\n\n const ctor = cls.constructor;\n if (ctor) {\n invariant(\n ctor === Object || ctor === Function,\n 'Mix EventEmitter into a class, not an instance',\n );\n }\n\n // Keep track of the provided types, union the types if they already exist,\n // which allows for prototype subclasses to provide more types.\n if (target.hasOwnProperty(TYPES_KEY)) {\n Object.assign(target.__types, types);\n } else if (target.__types) {\n target.__types = Object.assign({}, target.__types, types);\n } else {\n target.__types = types;\n }\n Object.assign(target, EventEmitterMixin);\n}\n\nconst EventEmitterMixin = {\n emit: function(eventType, a, b, c, d, e, _) {\n return this.__getEventEmitter().emit(eventType, a, b, c, d, e, _);\n },\n\n emitAndHold: function(eventType, a, b, c, d, e, _) {\n return this.__getEventEmitter().emitAndHold(eventType, a, b, c, d, e, _);\n },\n\n addListener: function(eventType, listener, context): EmitterSubscription {\n return this.__getEventEmitter().addListener(eventType, listener, context);\n },\n\n once: function(eventType, listener, context) {\n return this.__getEventEmitter().once(eventType, listener, context);\n },\n\n addRetroactiveListener: function(eventType, listener, context) {\n return this.__getEventEmitter().addRetroactiveListener(\n eventType,\n listener,\n context,\n );\n },\n\n addListenerMap: function(listenerMap, context) {\n return this.__getEventEmitter().addListenerMap(listenerMap, context);\n },\n\n addRetroactiveListenerMap: function(listenerMap, context) {\n return this.__getEventEmitter().addListenerMap(listenerMap, context);\n },\n\n removeAllListeners: function() {\n this.__getEventEmitter().removeAllListeners();\n },\n\n removeCurrentListener: function() {\n this.__getEventEmitter().removeCurrentListener();\n },\n\n releaseHeldEventType: function(eventType) {\n this.__getEventEmitter().releaseHeldEventType(eventType);\n },\n\n __getEventEmitter: function() {\n if (!this.__eventEmitter) {\n let emitter = new EventEmitter();\n if (__DEV__) {\n const EventValidator = require('EventValidator');\n emitter = EventValidator.addValidation(emitter, this.__types);\n }\n\n const holder = new EventHolder();\n this.__eventEmitter = new EventEmitterWithHolding(emitter, holder);\n }\n return this.__eventEmitter;\n },\n};\n\nmodule.exports = mixInEventEmitter;\n","/**\n * Copyright (c) 2015-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n * @flow\n */\n\n'use strict';\n\nimport type EmitterSubscription from 'EmitterSubscription';\nimport type EventEmitter from 'EventEmitter';\nimport type EventHolder from 'EventHolder';\n\n/**\n * @class EventEmitterWithHolding\n * @description\n * An EventEmitterWithHolding decorates an event emitter and enables one to\n * \"hold\" or cache events and then have a handler register later to actually\n * handle them.\n *\n * This is separated into its own decorator so that only those who want to use\n * the holding functionality have to and others can just use an emitter. Since\n * it implements the emitter interface it can also be combined with anything\n * that uses an emitter.\n */\nclass EventEmitterWithHolding {\n _emitter: EventEmitter;\n _eventHolder: EventHolder;\n _currentEventToken: ?Object;\n _emittingHeldEvents: boolean;\n\n /**\n * @constructor\n * @param {object} emitter - The object responsible for emitting the actual\n * events.\n * @param {object} holder - The event holder that is responsible for holding\n * and then emitting held events.\n */\n constructor(emitter: EventEmitter, holder: EventHolder) {\n this._emitter = emitter;\n this._eventHolder = holder;\n this._currentEventToken = null;\n this._emittingHeldEvents = false;\n }\n\n /**\n * @see EventEmitter#addListener\n */\n addListener(eventType: string, listener: Function, context: ?Object) {\n return this._emitter.addListener(eventType, listener, context);\n }\n\n /**\n * @see EventEmitter#once\n */\n once(eventType: string, listener: Function, context: ?Object) {\n return this._emitter.once(eventType, listener, context);\n }\n\n /**\n * Adds a listener to be invoked when events of the specified type are\n * emitted. An optional calling context may be provided. The data arguments\n * emitted will be passed to the listener function. In addition to subscribing\n * to all subsequent events, this method will also handle any events that have\n * already been emitted, held, and not released.\n *\n * @param {string} eventType - Name of the event to listen to\n * @param {function} listener - Function to invoke when the specified event is\n * emitted\n * @param {*} context - Optional context object to use when invoking the\n * listener\n *\n * @example\n * emitter.emitAndHold('someEvent', 'abc');\n *\n * emitter.addRetroactiveListener('someEvent', function(message) {\n * console.log(message);\n * }); // logs 'abc'\n */\n addRetroactiveListener(\n eventType: string,\n listener: Function,\n context: ?Object,\n ): EmitterSubscription {\n const subscription = this._emitter.addListener(\n eventType,\n listener,\n context,\n );\n\n this._emittingHeldEvents = true;\n this._eventHolder.emitToListener(eventType, listener, context);\n this._emittingHeldEvents = false;\n\n return subscription;\n }\n\n /**\n * @see EventEmitter#removeAllListeners\n */\n removeAllListeners(eventType: string) {\n this._emitter.removeAllListeners(eventType);\n }\n\n /**\n * @see EventEmitter#removeCurrentListener\n */\n removeCurrentListener() {\n this._emitter.removeCurrentListener();\n }\n\n /**\n * @see EventEmitter#listeners\n */\n listeners(eventType: string) /* TODO: Annotate return type here */ {\n return this._emitter.listeners(eventType);\n }\n\n /**\n * @see EventEmitter#emit\n */\n emit(eventType: string, ...args: any) {\n this._emitter.emit(eventType, ...args);\n }\n\n /**\n * Emits an event of the given type with the given data, and holds that event\n * in order to be able to dispatch it to a later subscriber when they say they\n * want to handle held events.\n *\n * @param {string} eventType - Name of the event to emit\n * @param {...*} Arbitrary arguments to be passed to each registered listener\n *\n * @example\n * emitter.emitAndHold('someEvent', 'abc');\n *\n * emitter.addRetroactiveListener('someEvent', function(message) {\n * console.log(message);\n * }); // logs 'abc'\n */\n emitAndHold(eventType: string, ...args: any) {\n this._currentEventToken = this._eventHolder.holdEvent(eventType, ...args);\n this._emitter.emit(eventType, ...args);\n this._currentEventToken = null;\n }\n\n /**\n * @see EventHolder#releaseCurrentEvent\n */\n releaseCurrentEvent() {\n if (this._currentEventToken) {\n this._eventHolder.releaseEvent(this._currentEventToken);\n } else if (this._emittingHeldEvents) {\n this._eventHolder.releaseCurrentEvent();\n }\n }\n\n /**\n * @see EventHolder#releaseEventType\n * @param {string} eventType\n */\n releaseHeldEventType(eventType: string) {\n this._eventHolder.releaseEventType(eventType);\n }\n}\n\nmodule.exports = EventEmitterWithHolding;\n","/**\n * Copyright (c) 2015-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n * @flow\n */\n\n'use strict';\n\nconst invariant = require('fbjs/lib/invariant');\n\nclass EventHolder {\n _heldEvents: Object;\n _currentEventKey: ?Object;\n\n constructor() {\n this._heldEvents = {};\n this._currentEventKey = null;\n }\n\n /**\n * Holds a given event for processing later.\n *\n * TODO: Annotate return type better. The structural type of the return here\n * is pretty obvious.\n *\n * @param {string} eventType - Name of the event to hold and later emit\n * @param {...*} Arbitrary arguments to be passed to each registered listener\n * @return {object} Token that can be used to release the held event\n *\n * @example\n *\n * holder.holdEvent({someEvent: 'abc'});\n *\n * holder.emitToHandler({\n * someEvent: function(data, event) {\n * console.log(data);\n * }\n * }); //logs 'abc'\n *\n */\n holdEvent(eventType: string, ...args: any) {\n this._heldEvents[eventType] = this._heldEvents[eventType] || [];\n const eventsOfType = this._heldEvents[eventType];\n const key = {\n eventType: eventType,\n index: eventsOfType.length,\n };\n eventsOfType.push(args);\n return key;\n }\n\n /**\n * Emits the held events of the specified type to the given listener.\n *\n * @param {?string} eventType - Optional name of the events to replay\n * @param {function} listener - The listener to which to dispatch the event\n * @param {?object} context - Optional context object to use when invoking\n * the listener\n */\n emitToListener(eventType: ?string, listener: Function, context: ?Object) {\n const eventsOfType = this._heldEvents[eventType];\n if (!eventsOfType) {\n return;\n }\n const origEventKey = this._currentEventKey;\n eventsOfType.forEach((/*?array*/ eventHeld, /*number*/ index) => {\n if (!eventHeld) {\n return;\n }\n this._currentEventKey = {\n eventType: eventType,\n index: index,\n };\n listener.apply(context, eventHeld);\n });\n this._currentEventKey = origEventKey;\n }\n\n /**\n * Provides an API that can be called during an eventing cycle to release\n * the last event that was invoked, so that it is no longer \"held\".\n *\n * If it is called when not inside of an emitting cycle it will throw.\n *\n * @throws {Error} When called not during an eventing cycle\n */\n releaseCurrentEvent() {\n invariant(\n this._currentEventKey !== null,\n 'Not in an emitting cycle; there is no current event',\n );\n this._currentEventKey && this.releaseEvent(this._currentEventKey);\n }\n\n /**\n * Releases the event corresponding to the handle that was returned when the\n * event was first held.\n *\n * @param {object} token - The token returned from holdEvent\n */\n releaseEvent(token: Object) {\n delete this._heldEvents[token.eventType][token.index];\n }\n\n /**\n * Releases all events of a certain type.\n *\n * @param {string} type\n */\n releaseEventType(type: string) {\n this._heldEvents[type] = [];\n }\n}\n\nmodule.exports = EventHolder;\n","\"use strict\";\n\n/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n */\n\n/**\n * Allows extraction of a minified key. Let's the build system minify keys\n * without losing the ability to dynamically use key strings as values\n * themselves. Pass in an object with a single key/val pair and it will return\n * you the string key of that single record. Suppose you want to grab the\n * value for a key 'className' inside of an object. Key/val minification may\n * have aliased that key to be 'xa12'. keyOf({className: null}) will return\n * 'xa12' in that case. Resolve keys you want to use once at startup time, then\n * reuse those resolutions.\n */\nvar keyOf = function keyOf(oneKeyObj) {\n var key;\n\n for (key in oneKeyObj) {\n if (!oneKeyObj.hasOwnProperty(key)) {\n continue;\n }\n\n return key;\n }\n\n return null;\n};\n\nmodule.exports = keyOf;","/**\n * Copyright (c) 2015-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n * @flow\n */\n\n'use strict';\n\nconst RCTToastAndroid = require('NativeModules').ToastAndroid;\n\n/**\n * This exposes the native ToastAndroid module as a JS module. This has a function 'show'\n * which takes the following parameters:\n *\n * 1. String message: A string with the text to toast\n * 2. int duration: The duration of the toast. May be ToastAndroid.SHORT or ToastAndroid.LONG\n *\n * There is also a function `showWithGravity` to specify the layout gravity. May be\n * ToastAndroid.TOP, ToastAndroid.BOTTOM, ToastAndroid.CENTER.\n *\n * The 'showWithGravityAndOffset' function adds on the ability to specify offset\n * These offset values will translate to pixels.\n *\n * Basic usage:\n * ```javascript\n * ToastAndroid.show('A pikachu appeared nearby !', ToastAndroid.SHORT);\n * ToastAndroid.showWithGravity('All Your Base Are Belong To Us', ToastAndroid.SHORT, ToastAndroid.CENTER);\n * ToastAndroid.showWithGravityAndOffset('A wild toast appeared!', ToastAndroid.LONG, ToastAndroid.BOTTOM, 25, 50);\n * ```\n */\n\nconst ToastAndroid = {\n // Toast duration constants\n SHORT: RCTToastAndroid.SHORT,\n LONG: RCTToastAndroid.LONG,\n\n // Toast gravity constants\n TOP: RCTToastAndroid.TOP,\n BOTTOM: RCTToastAndroid.BOTTOM,\n CENTER: RCTToastAndroid.CENTER,\n\n show: function(message: string, duration: number): void {\n RCTToastAndroid.show(message, duration);\n },\n\n showWithGravity: function(\n message: string,\n duration: number,\n gravity: number,\n ): void {\n RCTToastAndroid.showWithGravity(message, duration, gravity);\n },\n\n showWithGravityAndOffset: function(\n message: string,\n duration: number,\n gravity: number,\n xOffset: number,\n yOffset: number,\n ): void {\n RCTToastAndroid.showWithGravityAndOffset(\n message,\n duration,\n gravity,\n xOffset,\n yOffset,\n );\n },\n};\n\nmodule.exports = ToastAndroid;\n","/**\n * Copyright (c) 2015-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n */\n\n'use strict';\n\nconst Image = require('Image');\nconst NativeMethodsMixin = require('NativeMethodsMixin');\nconst React = require('React');\nconst PropTypes = require('prop-types');\nconst UIManager = require('UIManager');\nconst ViewPropTypes = require('ViewPropTypes');\nconst ColorPropType = require('ColorPropType');\n\nconst createReactClass = require('create-react-class');\nconst requireNativeComponent = require('requireNativeComponent');\nconst resolveAssetSource = require('resolveAssetSource');\n\nconst optionalImageSource = PropTypes.oneOfType([\n Image.propTypes.source,\n // Image.propTypes.source is required but we want it to be optional, so we OR\n // it with a nullable propType.\n PropTypes.oneOf([]),\n]);\n\n/**\n * React component that wraps the Android-only [`Toolbar` widget][0]. A Toolbar can display a logo,\n * navigation icon (e.g. hamburger menu), a title & subtitle and a list of actions. The title and\n * subtitle are expanded so the logo and navigation icons are displayed on the left, title and\n * subtitle in the middle and the actions on the right.\n *\n * If the toolbar has an only child, it will be displayed between the title and actions.\n *\n * Although the Toolbar supports remote images for the logo, navigation and action icons, this\n * should only be used in DEV mode where `require('./some_icon.png')` translates into a packager\n * URL. In release mode you should always use a drawable resource for these icons. Using\n * `require('./some_icon.png')` will do this automatically for you, so as long as you don't\n * explicitly use e.g. `{uri: 'http://...'}`, you will be good.\n *\n * Example:\n *\n * ```\n * render: function() {\n * return (\n * \n * )\n * },\n * onActionSelected: function(position) {\n * if (position === 0) { // index of 'Settings'\n * showSettings();\n * }\n * }\n * ```\n *\n * [0]: https://developer.android.com/reference/android/support/v7/widget/Toolbar.html\n */\nconst ToolbarAndroid = createReactClass({\n displayName: 'ToolbarAndroid',\n mixins: [NativeMethodsMixin],\n\n propTypes: {\n ...ViewPropTypes,\n /**\n * Sets possible actions on the toolbar as part of the action menu. These are displayed as icons\n * or text on the right side of the widget. If they don't fit they are placed in an 'overflow'\n * menu.\n *\n * This property takes an array of objects, where each object has the following keys:\n *\n * * `title`: **required**, the title of this action\n * * `icon`: the icon for this action, e.g. `require('./some_icon.png')`\n * * `show`: when to show this action as an icon or hide it in the overflow menu: `always`,\n * `ifRoom` or `never`\n * * `showWithText`: boolean, whether to show text alongside the icon or not\n */\n actions: PropTypes.arrayOf(\n PropTypes.shape({\n title: PropTypes.string.isRequired,\n icon: optionalImageSource,\n show: PropTypes.oneOf(['always', 'ifRoom', 'never']),\n showWithText: PropTypes.bool,\n }),\n ),\n /**\n * Sets the toolbar logo.\n */\n logo: optionalImageSource,\n /**\n * Sets the navigation icon.\n */\n navIcon: optionalImageSource,\n /**\n * Callback that is called when an action is selected. The only argument that is passed to the\n * callback is the position of the action in the actions array.\n */\n onActionSelected: PropTypes.func,\n /**\n * Callback called when the icon is selected.\n */\n onIconClicked: PropTypes.func,\n /**\n * Sets the overflow icon.\n */\n overflowIcon: optionalImageSource,\n /**\n * Sets the toolbar subtitle.\n */\n subtitle: PropTypes.string,\n /**\n * Sets the toolbar subtitle color.\n */\n subtitleColor: ColorPropType,\n /**\n * Sets the toolbar title.\n */\n title: PropTypes.string,\n /**\n * Sets the toolbar title color.\n */\n titleColor: ColorPropType,\n /**\n * Sets the content inset for the toolbar starting edge.\n *\n * The content inset affects the valid area for Toolbar content other than\n * the navigation button and menu. Insets define the minimum margin for\n * these components and can be used to effectively align Toolbar content\n * along well-known gridlines.\n */\n contentInsetStart: PropTypes.number,\n /**\n * Sets the content inset for the toolbar ending edge.\n *\n * The content inset affects the valid area for Toolbar content other than\n * the navigation button and menu. Insets define the minimum margin for\n * these components and can be used to effectively align Toolbar content\n * along well-known gridlines.\n */\n contentInsetEnd: PropTypes.number,\n /**\n * Used to set the toolbar direction to RTL.\n * In addition to this property you need to add\n *\n * android:supportsRtl=\"true\"\n *\n * to your application AndroidManifest.xml and then call\n * `setLayoutDirection(LayoutDirection.RTL)` in your MainActivity\n * `onCreate` method.\n */\n rtl: PropTypes.bool,\n /**\n * Used to locate this view in end-to-end tests.\n */\n testID: PropTypes.string,\n },\n\n render: function() {\n const nativeProps = {\n ...this.props,\n };\n if (this.props.logo) {\n nativeProps.logo = resolveAssetSource(this.props.logo);\n }\n if (this.props.navIcon) {\n nativeProps.navIcon = resolveAssetSource(this.props.navIcon);\n }\n if (this.props.overflowIcon) {\n nativeProps.overflowIcon = resolveAssetSource(this.props.overflowIcon);\n }\n if (this.props.actions) {\n const nativeActions = [];\n for (let i = 0; i < this.props.actions.length; i++) {\n const action = {\n ...this.props.actions[i],\n };\n if (action.icon) {\n action.icon = resolveAssetSource(action.icon);\n }\n if (action.show) {\n action.show =\n UIManager.ToolbarAndroid.Constants.ShowAsAction[action.show];\n }\n nativeActions.push(action);\n }\n nativeProps.nativeActions = nativeActions;\n }\n\n return ;\n },\n\n _onSelect: function(event) {\n const position = event.nativeEvent.position;\n if (position === -1) {\n this.props.onIconClicked && this.props.onIconClicked();\n } else {\n this.props.onActionSelected && this.props.onActionSelected(position);\n }\n },\n});\n\nconst NativeToolbar = requireNativeComponent('ToolbarAndroid');\n\nmodule.exports = ToolbarAndroid;\n","/**\n * Copyright (c) 2015-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @flow\n * @format\n */\n'use strict';\n\nconst ColorPropType = require('ColorPropType');\nconst NativeMethodsMixin = require('NativeMethodsMixin');\nconst PropTypes = require('prop-types');\nconst Platform = require('Platform');\nconst React = require('React');\nconst ReactNativeViewAttributes = require('ReactNativeViewAttributes');\nconst StyleSheet = require('StyleSheet');\nconst Touchable = require('Touchable');\nconst TouchableWithoutFeedback = require('TouchableWithoutFeedback');\nconst View = require('View');\nconst ViewPropTypes = require('ViewPropTypes');\n\nconst createReactClass = require('create-react-class');\nconst ensurePositiveDelayProps = require('ensurePositiveDelayProps');\n\nimport type {PressEvent} from 'CoreEventTypes';\nimport type {Props as TouchableWithoutFeedbackProps} from 'TouchableWithoutFeedback';\nimport type {ViewStyleProp} from 'StyleSheet';\nimport type {ColorValue} from 'StyleSheetTypes';\n\nconst DEFAULT_PROPS = {\n activeOpacity: 0.85,\n delayPressOut: 100,\n underlayColor: 'black',\n};\n\nconst PRESS_RETENTION_OFFSET = {top: 20, left: 20, right: 20, bottom: 30};\n\ntype IOSProps = $ReadOnly<{|\n hasTVPreferredFocus?: ?boolean,\n tvParallaxProperties?: ?Object,\n|}>;\n\ntype Props = $ReadOnly<{|\n ...TouchableWithoutFeedbackProps,\n ...IOSProps,\n\n activeOpacity?: ?number,\n underlayColor?: ?ColorValue,\n style?: ?ViewStyleProp,\n onShowUnderlay?: ?Function,\n onHideUnderlay?: ?Function,\n testOnly_pressed?: ?boolean,\n|}>;\n\n/**\n * A wrapper for making views respond properly to touches.\n * On press down, the opacity of the wrapped view is decreased, which allows\n * the underlay color to show through, darkening or tinting the view.\n *\n * The underlay comes from wrapping the child in a new View, which can affect\n * layout, and sometimes cause unwanted visual artifacts if not used correctly,\n * for example if the backgroundColor of the wrapped view isn't explicitly set\n * to an opaque color.\n *\n * TouchableHighlight must have one child (not zero or more than one).\n * If you wish to have several child components, wrap them in a View.\n *\n * Example:\n *\n * ```\n * renderButton: function() {\n * return (\n * \n * \n * \n * );\n * },\n * ```\n *\n *\n * ### Example\n *\n * ```ReactNativeWebPlayer\n * import React, { Component } from 'react'\n * import {\n * AppRegistry,\n * StyleSheet,\n * TouchableHighlight,\n * Text,\n * View,\n * } from 'react-native'\n *\n * class App extends Component {\n * constructor(props) {\n * super(props)\n * this.state = { count: 0 }\n * }\n *\n * onPress = () => {\n * this.setState({\n * count: this.state.count+1\n * })\n * }\n *\n * render() {\n * return (\n * \n * \n * Touch Here \n * \n * \n * \n * { this.state.count !== 0 ? this.state.count: null}\n * \n * \n * \n * )\n * }\n * }\n *\n * const styles = StyleSheet.create({\n * container: {\n * flex: 1,\n * justifyContent: 'center',\n * paddingHorizontal: 10\n * },\n * button: {\n * alignItems: 'center',\n * backgroundColor: '#DDDDDD',\n * padding: 10\n * },\n * countContainer: {\n * alignItems: 'center',\n * padding: 10\n * },\n * countText: {\n * color: '#FF00FF'\n * }\n * })\n *\n * AppRegistry.registerComponent('App', () => App)\n * ```\n *\n */\n\nconst TouchableHighlight = ((createReactClass({\n displayName: 'TouchableHighlight',\n propTypes: {\n ...TouchableWithoutFeedback.propTypes,\n /**\n * Determines what the opacity of the wrapped view should be when touch is\n * active.\n */\n activeOpacity: PropTypes.number,\n /**\n * The color of the underlay that will show through when the touch is\n * active.\n */\n underlayColor: ColorPropType,\n /**\n * Style to apply to the container/underlay. Most commonly used to make sure\n * rounded corners match the wrapped component.\n */\n style: ViewPropTypes.style,\n /**\n * Called immediately after the underlay is shown\n */\n onShowUnderlay: PropTypes.func,\n /**\n * Called immediately after the underlay is hidden\n */\n onHideUnderlay: PropTypes.func,\n /**\n * *(Apple TV only)* TV preferred focus (see documentation for the View component).\n *\n * @platform ios\n */\n hasTVPreferredFocus: PropTypes.bool,\n /**\n * *(Apple TV only)* Object with properties to control Apple TV parallax effects.\n *\n * enabled: If true, parallax effects are enabled. Defaults to true.\n * shiftDistanceX: Defaults to 2.0.\n * shiftDistanceY: Defaults to 2.0.\n * tiltAngle: Defaults to 0.05.\n * magnification: Defaults to 1.0.\n * pressMagnification: Defaults to 1.0.\n * pressDuration: Defaults to 0.3.\n * pressDelay: Defaults to 0.0.\n *\n * @platform ios\n */\n tvParallaxProperties: PropTypes.object,\n /**\n * Handy for snapshot tests.\n */\n testOnly_pressed: PropTypes.bool,\n },\n\n mixins: [NativeMethodsMixin, Touchable.Mixin],\n\n getDefaultProps: () => DEFAULT_PROPS,\n\n getInitialState: function() {\n this._isMounted = false;\n if (this.props.testOnly_pressed) {\n return {\n ...this.touchableGetInitialState(),\n extraChildStyle: {\n opacity: this.props.activeOpacity,\n },\n extraUnderlayStyle: {\n backgroundColor: this.props.underlayColor,\n },\n };\n } else {\n return {\n ...this.touchableGetInitialState(),\n extraChildStyle: null,\n extraUnderlayStyle: null,\n };\n }\n },\n\n componentDidMount: function() {\n this._isMounted = true;\n ensurePositiveDelayProps(this.props);\n },\n\n componentWillUnmount: function() {\n this._isMounted = false;\n clearTimeout(this._hideTimeout);\n },\n\n UNSAFE_componentWillReceiveProps: function(nextProps) {\n ensurePositiveDelayProps(nextProps);\n },\n\n viewConfig: {\n uiViewClassName: 'RCTView',\n validAttributes: ReactNativeViewAttributes.RCTView,\n },\n\n /**\n * `Touchable.Mixin` self callbacks. The mixin will invoke these if they are\n * defined on your component.\n */\n touchableHandleActivePressIn: function(e: PressEvent) {\n clearTimeout(this._hideTimeout);\n this._hideTimeout = null;\n this._showUnderlay();\n this.props.onPressIn && this.props.onPressIn(e);\n },\n\n touchableHandleActivePressOut: function(e: PressEvent) {\n if (!this._hideTimeout) {\n this._hideUnderlay();\n }\n this.props.onPressOut && this.props.onPressOut(e);\n },\n\n touchableHandlePress: function(e: PressEvent) {\n clearTimeout(this._hideTimeout);\n if (!Platform.isTV) {\n this._showUnderlay();\n this._hideTimeout = setTimeout(\n this._hideUnderlay,\n this.props.delayPressOut,\n );\n }\n this.props.onPress && this.props.onPress(e);\n },\n\n touchableHandleLongPress: function(e: PressEvent) {\n this.props.onLongPress && this.props.onLongPress(e);\n },\n\n touchableGetPressRectOffset: function() {\n return this.props.pressRetentionOffset || PRESS_RETENTION_OFFSET;\n },\n\n touchableGetHitSlop: function() {\n return this.props.hitSlop;\n },\n\n touchableGetHighlightDelayMS: function() {\n return this.props.delayPressIn;\n },\n\n touchableGetLongPressDelayMS: function() {\n return this.props.delayLongPress;\n },\n\n touchableGetPressOutDelayMS: function() {\n return this.props.delayPressOut;\n },\n\n _showUnderlay: function() {\n if (!this._isMounted || !this._hasPressHandler()) {\n return;\n }\n this.setState({\n extraChildStyle: {\n opacity: this.props.activeOpacity,\n },\n extraUnderlayStyle: {\n backgroundColor: this.props.underlayColor,\n },\n });\n this.props.onShowUnderlay && this.props.onShowUnderlay();\n },\n\n _hideUnderlay: function() {\n clearTimeout(this._hideTimeout);\n this._hideTimeout = null;\n if (this.props.testOnly_pressed) {\n return;\n }\n if (this._hasPressHandler()) {\n this.setState({\n extraChildStyle: null,\n extraUnderlayStyle: null,\n });\n this.props.onHideUnderlay && this.props.onHideUnderlay();\n }\n },\n\n _hasPressHandler: function() {\n return !!(\n this.props.onPress ||\n this.props.onPressIn ||\n this.props.onPressOut ||\n this.props.onLongPress\n );\n },\n\n render: function() {\n const child = React.Children.only(this.props.children);\n return (\n \n {React.cloneElement(child, {\n style: StyleSheet.compose(\n child.props.style,\n this.state.extraChildStyle,\n ),\n })}\n {Touchable.renderDebugView({\n color: 'green',\n hitSlop: this.props.hitSlop,\n })}\n \n );\n },\n}): any): React.ComponentType);\n\nmodule.exports = TouchableHighlight;\n","/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n * @flow\n */\n\n'use strict';\n\nconst React = require('React');\nconst PropTypes = require('prop-types');\nconst ReactNative = require('ReactNative');\nconst UIManager = require('UIManager');\nconst ViewPropTypes = require('ViewPropTypes');\n\nconst dismissKeyboard = require('dismissKeyboard');\nconst requireNativeComponent = require('requireNativeComponent');\n\nconst NativeAndroidViewPager = requireNativeComponent('AndroidViewPager');\n\nconst VIEWPAGER_REF = 'viewPager';\n\ntype Event = Object;\n\nexport type ViewPagerScrollState = $Enum<{\n idle: string,\n dragging: string,\n settling: string,\n}>;\n\n/**\n * Container that allows to flip left and right between child views. Each\n * child view of the `ViewPagerAndroid` will be treated as a separate page\n * and will be stretched to fill the `ViewPagerAndroid`.\n *\n * It is important all children are ``s and not composite components.\n * You can set style properties like `padding` or `backgroundColor` for each\n * child. It is also important that each child have a `key` prop.\n *\n * Example:\n *\n * ```\n * render: function() {\n * return (\n * \n * \n * First page\n * \n * \n * Second page\n * \n * \n * );\n * }\n *\n * ...\n *\n * var styles = {\n * ...\n * viewPager: {\n * flex: 1\n * },\n * pageStyle: {\n * alignItems: 'center',\n * padding: 20,\n * }\n * }\n * ```\n */\nclass ViewPagerAndroid extends React.Component<{\n initialPage?: number,\n onPageScroll?: Function,\n onPageScrollStateChanged?: Function,\n onPageSelected?: Function,\n pageMargin?: number,\n peekEnabled?: boolean,\n keyboardDismissMode?: 'none' | 'on-drag',\n scrollEnabled?: boolean,\n}> {\n /* $FlowFixMe(>=0.78.0 site=react_native_android_fb) This issue was found\n * when making Flow check .android.js files. */\n static propTypes = {\n ...ViewPropTypes,\n /**\n * Index of initial page that should be selected. Use `setPage` method to\n * update the page, and `onPageSelected` to monitor page changes\n */\n initialPage: PropTypes.number,\n\n /**\n * Executed when transitioning between pages (ether because of animation for\n * the requested page change or when user is swiping/dragging between pages)\n * The `event.nativeEvent` object for this callback will carry following data:\n * - position - index of first page from the left that is currently visible\n * - offset - value from range [0,1) describing stage between page transitions.\n * Value x means that (1 - x) fraction of the page at \"position\" index is\n * visible, and x fraction of the next page is visible.\n */\n onPageScroll: PropTypes.func,\n\n /**\n * Function called when the page scrolling state has changed.\n * The page scrolling state can be in 3 states:\n * - idle, meaning there is no interaction with the page scroller happening at the time\n * - dragging, meaning there is currently an interaction with the page scroller\n * - settling, meaning that there was an interaction with the page scroller, and the\n * page scroller is now finishing it's closing or opening animation\n */\n onPageScrollStateChanged: PropTypes.func,\n\n /**\n * This callback will be called once ViewPager finish navigating to selected page\n * (when user swipes between pages). The `event.nativeEvent` object passed to this\n * callback will have following fields:\n * - position - index of page that has been selected\n */\n onPageSelected: PropTypes.func,\n\n /**\n * Blank space to show between pages. This is only visible while scrolling, pages are still\n * edge-to-edge.\n */\n pageMargin: PropTypes.number,\n\n /**\n * Determines whether the keyboard gets dismissed in response to a drag.\n * - 'none' (the default), drags do not dismiss the keyboard.\n * - 'on-drag', the keyboard is dismissed when a drag begins.\n */\n keyboardDismissMode: PropTypes.oneOf([\n 'none', // default\n 'on-drag',\n ]),\n\n /**\n * When false, the content does not scroll.\n * The default value is true.\n */\n scrollEnabled: PropTypes.bool,\n\n /**\n * Whether enable showing peekFraction or not. If this is true, the preview of\n * last and next page will show in current screen. Defaults to false.\n */\n peekEnabled: PropTypes.bool,\n };\n\n componentDidMount() {\n if (this.props.initialPage != null) {\n this.setPageWithoutAnimation(this.props.initialPage);\n }\n }\n\n /* $FlowFixMe(>=0.78.0 site=react_native_android_fb) This issue was found\n * when making Flow check .android.js files. */\n getInnerViewNode = (): ReactComponent => {\n return this.refs[VIEWPAGER_REF].getInnerViewNode();\n };\n\n /* $FlowFixMe(>=0.78.0 site=react_native_android_fb) This issue was found\n * when making Flow check .android.js files. */\n _childrenWithOverridenStyle = (): Array => {\n // Override styles so that each page will fill the parent. Native component\n // will handle positioning of elements, so it's not important to offset\n // them correctly.\n /* $FlowFixMe(>=0.78.0 site=react_native_android_fb) This issue was found\n * when making Flow check .android.js files. */\n return React.Children.map(this.props.children, function(child) {\n if (!child) {\n return null;\n }\n const newProps = {\n ...child.props,\n style: [\n child.props.style,\n {\n position: 'absolute',\n left: 0,\n top: 0,\n right: 0,\n bottom: 0,\n width: undefined,\n height: undefined,\n },\n ],\n collapsable: false,\n };\n if (\n child.type &&\n child.type.displayName &&\n child.type.displayName !== 'RCTView' &&\n child.type.displayName !== 'View'\n ) {\n console.warn(\n 'Each ViewPager child must be a . Was ' +\n child.type.displayName,\n );\n }\n return React.createElement(child.type, newProps);\n });\n };\n\n _onPageScroll = (e: Event) => {\n if (this.props.onPageScroll) {\n this.props.onPageScroll(e);\n }\n if (this.props.keyboardDismissMode === 'on-drag') {\n dismissKeyboard();\n }\n };\n\n _onPageScrollStateChanged = (e: Event) => {\n if (this.props.onPageScrollStateChanged) {\n this.props.onPageScrollStateChanged(e.nativeEvent.pageScrollState);\n }\n };\n\n _onPageSelected = (e: Event) => {\n if (this.props.onPageSelected) {\n this.props.onPageSelected(e);\n }\n };\n\n /**\n * A helper function to scroll to a specific page in the ViewPager.\n * The transition between pages will be animated.\n */\n setPage = (selectedPage: number) => {\n UIManager.dispatchViewManagerCommand(\n ReactNative.findNodeHandle(this),\n UIManager.AndroidViewPager.Commands.setPage,\n [selectedPage],\n );\n };\n\n /**\n * A helper function to scroll to a specific page in the ViewPager.\n * The transition between pages will *not* be animated.\n */\n setPageWithoutAnimation = (selectedPage: number) => {\n UIManager.dispatchViewManagerCommand(\n ReactNative.findNodeHandle(this),\n UIManager.AndroidViewPager.Commands.setPageWithoutAnimation,\n [selectedPage],\n );\n };\n\n render() {\n return (\n =0.78.0 site=react_native_android_fb) This issue was\n * found when making Flow check .android.js files. */\n style={this.props.style}\n onPageScroll={this._onPageScroll}\n onPageScrollStateChanged={this._onPageScrollStateChanged}\n onPageSelected={this._onPageSelected}\n children={this._childrenWithOverridenStyle()}\n />\n );\n }\n}\n\nmodule.exports = ViewPagerAndroid;\n","/**\n * Copyright (c) 2015-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n */\n\n'use strict';\n\nconst EdgeInsetsPropType = require('EdgeInsetsPropType');\nconst ActivityIndicator = require('ActivityIndicator');\nconst React = require('React');\nconst PropTypes = require('prop-types');\nconst ReactNative = require('ReactNative');\nconst StyleSheet = require('StyleSheet');\nconst UIManager = require('UIManager');\nconst View = require('View');\nconst ViewPropTypes = require('ViewPropTypes');\nconst WebViewShared = require('WebViewShared');\n\nconst deprecatedPropType = require('deprecatedPropType');\nconst keyMirror = require('fbjs/lib/keyMirror');\nconst requireNativeComponent = require('requireNativeComponent');\nconst resolveAssetSource = require('resolveAssetSource');\n\nconst RCT_WEBVIEW_REF = 'webview';\n\nconst WebViewState = keyMirror({\n IDLE: null,\n LOADING: null,\n ERROR: null,\n});\n\nconst defaultRenderLoading = () => (\n \n \n \n);\n\n/**\n * Renders a native WebView.\n */\nclass WebView extends React.Component {\n static propTypes = {\n ...ViewPropTypes,\n renderError: PropTypes.func,\n renderLoading: PropTypes.func,\n onLoad: PropTypes.func,\n onLoadEnd: PropTypes.func,\n onLoadStart: PropTypes.func,\n onError: PropTypes.func,\n automaticallyAdjustContentInsets: PropTypes.bool,\n contentInset: EdgeInsetsPropType,\n onNavigationStateChange: PropTypes.func,\n onMessage: PropTypes.func,\n onContentSizeChange: PropTypes.func,\n startInLoadingState: PropTypes.bool, // force WebView to show loadingView on first load\n style: ViewPropTypes.style,\n\n html: deprecatedPropType(\n PropTypes.string,\n 'Use the `source` prop instead.',\n ),\n\n url: deprecatedPropType(PropTypes.string, 'Use the `source` prop instead.'),\n\n /**\n * Loads static html or a uri (with optional headers) in the WebView.\n */\n source: PropTypes.oneOfType([\n PropTypes.shape({\n /*\n * The URI to load in the WebView. Can be a local or remote file.\n */\n uri: PropTypes.string,\n /*\n * The HTTP Method to use. Defaults to GET if not specified.\n * NOTE: On Android, only GET and POST are supported.\n */\n method: PropTypes.oneOf(['GET', 'POST']),\n /*\n * Additional HTTP headers to send with the request.\n * NOTE: On Android, this can only be used with GET requests.\n */\n headers: PropTypes.object,\n /*\n * The HTTP body to send with the request. This must be a valid\n * UTF-8 string, and will be sent exactly as specified, with no\n * additional encoding (e.g. URL-escaping or base64) applied.\n * NOTE: On Android, this can only be used with POST requests.\n */\n body: PropTypes.string,\n }),\n PropTypes.shape({\n /*\n * A static HTML page to display in the WebView.\n */\n html: PropTypes.string,\n /*\n * The base URL to be used for any relative links in the HTML.\n */\n baseUrl: PropTypes.string,\n }),\n /*\n * Used internally by packager.\n */\n PropTypes.number,\n ]),\n\n /**\n * If true, use WKWebView instead of UIWebView.\n * @platform ios\n */\n useWebKit: PropTypes.bool,\n\n /**\n * Used on Android only, JS is enabled by default for WebView on iOS\n * @platform android\n */\n javaScriptEnabled: PropTypes.bool,\n\n /**\n * Used on Android Lollipop and above only, third party cookies are enabled\n * by default for WebView on Android Kitkat and below and on iOS\n * @platform android\n */\n thirdPartyCookiesEnabled: PropTypes.bool,\n\n /**\n * Used on Android only, controls whether DOM Storage is enabled or not\n * @platform android\n */\n domStorageEnabled: PropTypes.bool,\n\n /**\n * Sets whether Geolocation is enabled. The default is false.\n * @platform android\n */\n geolocationEnabled: PropTypes.bool,\n\n /**\n * Sets the JS to be injected when the webpage loads.\n */\n injectedJavaScript: PropTypes.string,\n\n /**\n * Sets whether the webpage scales to fit the view and the user can change the scale.\n */\n scalesPageToFit: PropTypes.bool,\n\n /**\n * Sets whether the webview allow access to file system.\n * @platform android\n */\n allowFileAccess: PropTypes.bool,\n\n /**\n * Sets the user-agent for this WebView. The user-agent can also be set in native using\n * WebViewConfig. This prop will overwrite that config.\n */\n userAgent: PropTypes.string,\n\n /**\n * Used to locate this view in end-to-end tests.\n */\n testID: PropTypes.string,\n\n /**\n * Determines whether HTML5 audio & videos require the user to tap before they can\n * start playing. The default value is `false`.\n */\n mediaPlaybackRequiresUserAction: PropTypes.bool,\n\n /**\n * Boolean that sets whether JavaScript running in the context of a file\n * scheme URL should be allowed to access content from any origin.\n * Including accessing content from other file scheme URLs\n * @platform android\n */\n allowUniversalAccessFromFileURLs: PropTypes.bool,\n\n /**\n * List of origin strings to allow being navigated to. The strings allow\n * wildcards and get matched against *just* the origin (not the full URL).\n * If the user taps to navigate to a new page but the new page is not in\n * this whitelist, the URL will be opened by the Android OS.\n * The default whitelisted origins are \"http://*\" and \"https://*\".\n */\n originWhitelist: PropTypes.arrayOf(PropTypes.string),\n\n /**\n * Function that accepts a string that will be passed to the WebView and\n * executed immediately as JavaScript.\n */\n injectJavaScript: PropTypes.func,\n\n /**\n * Specifies the mixed content mode. i.e WebView will allow a secure origin to load content from any other origin.\n *\n * Possible values for `mixedContentMode` are:\n *\n * - `'never'` (default) - WebView will not allow a secure origin to load content from an insecure origin.\n * - `'always'` - WebView will allow a secure origin to load content from any other origin, even if that origin is insecure.\n * - `'compatibility'` - WebView will attempt to be compatible with the approach of a modern web browser with regard to mixed content.\n * @platform android\n */\n mixedContentMode: PropTypes.oneOf(['never', 'always', 'compatibility']),\n\n /**\n * Used on Android only, controls whether form autocomplete data should be saved\n * @platform android\n */\n saveFormDataDisabled: PropTypes.bool,\n\n /**\n * Override the native component used to render the WebView. Enables a custom native\n * WebView which uses the same JavaScript as the original WebView.\n */\n nativeConfig: PropTypes.shape({\n /*\n * The native component used to render the WebView.\n */\n component: PropTypes.any,\n /*\n * Set props directly on the native component WebView. Enables custom props which the\n * original WebView doesn't pass through.\n */\n props: PropTypes.object,\n /*\n * Set the ViewManager to use for communication with the native side.\n * @platform ios\n */\n viewManager: PropTypes.object,\n }),\n /*\n * Used on Android only, controls whether the given list of URL prefixes should\n * make {@link com.facebook.react.views.webview.ReactWebViewClient} to launch a\n * default activity intent for those URL instead of loading it within the webview.\n * Use this to list URLs that WebView cannot handle, e.g. a PDF url.\n * @platform android\n */\n urlPrefixesForDefaultIntent: PropTypes.arrayOf(PropTypes.string),\n };\n\n static defaultProps = {\n javaScriptEnabled: true,\n thirdPartyCookiesEnabled: true,\n scalesPageToFit: true,\n saveFormDataDisabled: false,\n originWhitelist: WebViewShared.defaultOriginWhitelist,\n };\n\n state = {\n viewState: WebViewState.IDLE,\n lastErrorEvent: null,\n startInLoadingState: true,\n };\n\n UNSAFE_componentWillMount() {\n if (this.props.startInLoadingState) {\n this.setState({viewState: WebViewState.LOADING});\n }\n }\n\n render() {\n let otherView = null;\n\n if (this.state.viewState === WebViewState.LOADING) {\n otherView = (this.props.renderLoading || defaultRenderLoading)();\n } else if (this.state.viewState === WebViewState.ERROR) {\n const errorEvent = this.state.lastErrorEvent;\n otherView =\n this.props.renderError &&\n this.props.renderError(\n errorEvent.domain,\n errorEvent.code,\n errorEvent.description,\n );\n } else if (this.state.viewState !== WebViewState.IDLE) {\n console.error(\n 'RCTWebView invalid state encountered: ' + this.state.loading,\n );\n }\n\n const webViewStyles = [styles.container, this.props.style];\n if (\n this.state.viewState === WebViewState.LOADING ||\n this.state.viewState === WebViewState.ERROR\n ) {\n // if we're in either LOADING or ERROR states, don't show the webView\n webViewStyles.push(styles.hidden);\n }\n\n const source = this.props.source || {};\n if (this.props.html) {\n source.html = this.props.html;\n } else if (this.props.url) {\n source.uri = this.props.url;\n }\n\n if (source.method === 'POST' && source.headers) {\n console.warn(\n 'WebView: `source.headers` is not supported when using POST.',\n );\n } else if (source.method === 'GET' && source.body) {\n console.warn('WebView: `source.body` is not supported when using GET.');\n }\n\n const nativeConfig = this.props.nativeConfig || {};\n\n const originWhitelist = (this.props.originWhitelist || []).map(\n WebViewShared.originWhitelistToRegex,\n );\n\n let NativeWebView = nativeConfig.component || RCTWebView;\n\n const webView = (\n \n );\n\n return (\n \n {webView}\n {otherView}\n \n );\n }\n\n goForward = () => {\n UIManager.dispatchViewManagerCommand(\n this.getWebViewHandle(),\n UIManager.RCTWebView.Commands.goForward,\n null,\n );\n };\n\n goBack = () => {\n UIManager.dispatchViewManagerCommand(\n this.getWebViewHandle(),\n UIManager.RCTWebView.Commands.goBack,\n null,\n );\n };\n\n reload = () => {\n this.setState({\n viewState: WebViewState.LOADING,\n });\n UIManager.dispatchViewManagerCommand(\n this.getWebViewHandle(),\n UIManager.RCTWebView.Commands.reload,\n null,\n );\n };\n\n stopLoading = () => {\n UIManager.dispatchViewManagerCommand(\n this.getWebViewHandle(),\n UIManager.RCTWebView.Commands.stopLoading,\n null,\n );\n };\n\n postMessage = data => {\n UIManager.dispatchViewManagerCommand(\n this.getWebViewHandle(),\n UIManager.RCTWebView.Commands.postMessage,\n [String(data)],\n );\n };\n\n /**\n * Injects a javascript string into the referenced WebView. Deliberately does not\n * return a response because using eval() to return a response breaks this method\n * on pages with a Content Security Policy that disallows eval(). If you need that\n * functionality, look into postMessage/onMessage.\n */\n injectJavaScript = data => {\n UIManager.dispatchViewManagerCommand(\n this.getWebViewHandle(),\n UIManager.RCTWebView.Commands.injectJavaScript,\n [data],\n );\n };\n\n /**\n * We return an event with a bunch of fields including:\n * url, title, loading, canGoBack, canGoForward\n */\n updateNavigationState = event => {\n if (this.props.onNavigationStateChange) {\n this.props.onNavigationStateChange(event.nativeEvent);\n }\n };\n\n getWebViewHandle = () => {\n return ReactNative.findNodeHandle(this.refs[RCT_WEBVIEW_REF]);\n };\n\n onLoadingStart = event => {\n const onLoadStart = this.props.onLoadStart;\n onLoadStart && onLoadStart(event);\n this.updateNavigationState(event);\n };\n\n onLoadingError = event => {\n event.persist(); // persist this event because we need to store it\n const {onError, onLoadEnd} = this.props;\n onError && onError(event);\n onLoadEnd && onLoadEnd(event);\n console.warn('Encountered an error loading page', event.nativeEvent);\n\n this.setState({\n lastErrorEvent: event.nativeEvent,\n viewState: WebViewState.ERROR,\n });\n };\n\n onLoadingFinish = event => {\n const {onLoad, onLoadEnd} = this.props;\n onLoad && onLoad(event);\n onLoadEnd && onLoadEnd(event);\n this.setState({\n viewState: WebViewState.IDLE,\n });\n this.updateNavigationState(event);\n };\n\n onMessage = (event: Event) => {\n const {onMessage} = this.props;\n onMessage && onMessage(event);\n };\n}\n\nconst RCTWebView = requireNativeComponent('RCTWebView');\n\nconst styles = StyleSheet.create({\n container: {\n flex: 1,\n },\n hidden: {\n height: 0,\n flex: 0, // disable 'flex:1' when hiding a View\n },\n loadingView: {\n flex: 1,\n justifyContent: 'center',\n alignItems: 'center',\n },\n loadingProgressBar: {\n height: 20,\n },\n});\n\nmodule.exports = WebView;\n","/**\n * Copyright (c) 2015-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n * @flow\n */\n\n'use strict';\n\nconst escapeStringRegexp = require('escape-string-regexp');\n\nconst WebViewShared = {\n defaultOriginWhitelist: ['http://*', 'https://*'],\n extractOrigin: (url: string): ?string => {\n const result = /^[A-Za-z0-9]+:(\\/\\/)?[^/]*/.exec(url);\n return result === null ? null : result[0];\n },\n originWhitelistToRegex: (originWhitelist: string): string => {\n return escapeStringRegexp(originWhitelist).replace(/\\\\\\*/g, '.*');\n },\n};\n\nmodule.exports = WebViewShared;\n","'use strict';\n\nvar matchOperatorsRe = /[|\\\\{}()[\\]^$+*?.]/g;\n\nmodule.exports = function (str) {\n\tif (typeof str !== 'string') {\n\t\tthrow new TypeError('Expected a string');\n\t}\n\n\treturn str.replace(matchOperatorsRe, '\\\\$&');\n};\n","/**\n * Copyright (c) 2015-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @flow\n * @format\n */\n'use strict';\n\nconst RCTActionSheetManager = require('NativeModules').ActionSheetManager;\n\nconst invariant = require('fbjs/lib/invariant');\nconst processColor = require('processColor');\n\n/**\n * Display action sheets and share sheets on iOS.\n *\n * See http://facebook.github.io/react-native/docs/actionsheetios.html\n */\nconst ActionSheetIOS = {\n /**\n * Display an iOS action sheet.\n *\n * The `options` object must contain one or more of:\n *\n * - `options` (array of strings) - a list of button titles (required)\n * - `cancelButtonIndex` (int) - index of cancel button in `options`\n * - `destructiveButtonIndex` (int) - index of destructive button in `options`\n * - `title` (string) - a title to show above the action sheet\n * - `message` (string) - a message to show below the title\n *\n * The 'callback' function takes one parameter, the zero-based index\n * of the selected item.\n *\n * See http://facebook.github.io/react-native/docs/actionsheetios.html#showactionsheetwithoptions\n */\n showActionSheetWithOptions(\n options: {|\n +title?: ?string,\n +message?: ?string,\n +options: Array,\n +destructiveButtonIndex?: ?number,\n +cancelButtonIndex?: ?number,\n +anchor?: ?number,\n +tintColor?: number | string,\n |},\n callback: (buttonIndex: number) => void,\n ) {\n invariant(\n typeof options === 'object' && options !== null,\n 'Options must be a valid object',\n );\n invariant(typeof callback === 'function', 'Must provide a valid callback');\n\n RCTActionSheetManager.showActionSheetWithOptions(\n {...options, tintColor: processColor(options.tintColor)},\n callback,\n );\n },\n\n /**\n * Display the iOS share sheet. The `options` object should contain\n * one or both of `message` and `url` and can additionally have\n * a `subject` or `excludedActivityTypes`:\n *\n * - `url` (string) - a URL to share\n * - `message` (string) - a message to share\n * - `subject` (string) - a subject for the message\n * - `excludedActivityTypes` (array) - the activities to exclude from\n * the ActionSheet\n * - `tintColor` (color) - tint color of the buttons\n *\n * The 'failureCallback' function takes one parameter, an error object.\n * The only property defined on this object is an optional `stack` property\n * of type `string`.\n *\n * The 'successCallback' function takes two parameters:\n *\n * - a boolean value signifying success or failure\n * - a string that, in the case of success, indicates the method of sharing\n *\n * See http://facebook.github.io/react-native/docs/actionsheetios.html#showshareactionsheetwithoptions\n */\n showShareActionSheetWithOptions(\n options: Object,\n failureCallback: Function,\n successCallback: Function,\n ) {\n invariant(\n typeof options === 'object' && options !== null,\n 'Options must be a valid object',\n );\n invariant(\n typeof failureCallback === 'function',\n 'Must provide a valid failureCallback',\n );\n invariant(\n typeof successCallback === 'function',\n 'Must provide a valid successCallback',\n );\n RCTActionSheetManager.showShareActionSheetWithOptions(\n {...options, tintColor: processColor(options.tintColor)},\n failureCallback,\n successCallback,\n );\n },\n};\n\nmodule.exports = ActionSheetIOS;\n","/**\n * Copyright (c) 2015-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @flow\n * @format\n */\n'use strict';\n\nconst BatchedBridge = require('BatchedBridge');\nconst BugReporting = require('BugReporting');\nconst NativeModules = require('NativeModules');\nconst ReactNative = require('ReactNative');\nconst SceneTracker = require('SceneTracker');\n\nconst infoLog = require('infoLog');\nconst invariant = require('fbjs/lib/invariant');\nconst renderApplication = require('renderApplication');\n\ntype Task = (taskData: any) => Promise;\ntype TaskProvider = () => Task;\nexport type ComponentProvider = () => React$ComponentType;\nexport type ComponentProviderInstrumentationHook = (\n component: ComponentProvider,\n) => React$ComponentType;\nexport type AppConfig = {\n appKey: string,\n component?: ComponentProvider,\n run?: Function,\n section?: boolean,\n};\nexport type Runnable = {\n component?: ComponentProvider,\n run: Function,\n};\nexport type Runnables = {\n [appKey: string]: Runnable,\n};\nexport type Registry = {\n sections: Array,\n runnables: Runnables,\n};\nexport type WrapperComponentProvider = any => React$ComponentType<*>;\n\nconst runnables: Runnables = {};\nlet runCount = 1;\nconst sections: Runnables = {};\nconst tasks: Map = new Map();\nlet componentProviderInstrumentationHook: ComponentProviderInstrumentationHook = (\n component: ComponentProvider,\n) => component();\n\nlet wrapperComponentProvider: ?WrapperComponentProvider;\n\n/**\n * `AppRegistry` is the JavaScript entry point to running all React Native apps.\n *\n * See http://facebook.github.io/react-native/docs/appregistry.html\n */\nconst AppRegistry = {\n setWrapperComponentProvider(provider: WrapperComponentProvider) {\n wrapperComponentProvider = provider;\n },\n\n registerConfig(config: Array): void {\n config.forEach(appConfig => {\n if (appConfig.run) {\n AppRegistry.registerRunnable(appConfig.appKey, appConfig.run);\n } else {\n invariant(\n appConfig.component != null,\n 'AppRegistry.registerConfig(...): Every config is expected to set ' +\n 'either `run` or `component`, but `%s` has neither.',\n appConfig.appKey,\n );\n AppRegistry.registerComponent(\n appConfig.appKey,\n appConfig.component,\n appConfig.section,\n );\n }\n });\n },\n\n /**\n * Registers an app's root component.\n *\n * See http://facebook.github.io/react-native/docs/appregistry.html#registercomponent\n */\n registerComponent(\n appKey: string,\n componentProvider: ComponentProvider,\n section?: boolean,\n ): string {\n runnables[appKey] = {\n componentProvider,\n run: appParameters => {\n renderApplication(\n componentProviderInstrumentationHook(componentProvider),\n appParameters.initialProps,\n appParameters.rootTag,\n wrapperComponentProvider && wrapperComponentProvider(appParameters),\n appParameters.fabric,\n );\n },\n };\n if (section) {\n sections[appKey] = runnables[appKey];\n }\n return appKey;\n },\n\n registerRunnable(appKey: string, run: Function): string {\n runnables[appKey] = {run};\n return appKey;\n },\n\n registerSection(appKey: string, component: ComponentProvider): void {\n AppRegistry.registerComponent(appKey, component, true);\n },\n\n getAppKeys(): Array {\n return Object.keys(runnables);\n },\n\n getSectionKeys(): Array {\n return Object.keys(sections);\n },\n\n getSections(): Runnables {\n return {\n ...sections,\n };\n },\n\n getRunnable(appKey: string): ?Runnable {\n return runnables[appKey];\n },\n\n getRegistry(): Registry {\n return {\n sections: AppRegistry.getSectionKeys(),\n runnables: {...runnables},\n };\n },\n\n setComponentProviderInstrumentationHook(\n hook: ComponentProviderInstrumentationHook,\n ) {\n componentProviderInstrumentationHook = hook;\n },\n\n /**\n * Loads the JavaScript bundle and runs the app.\n *\n * See http://facebook.github.io/react-native/docs/appregistry.html#runapplication\n */\n runApplication(appKey: string, appParameters: any): void {\n const msg =\n 'Running application \"' +\n appKey +\n '\" with appParams: ' +\n JSON.stringify(appParameters) +\n '. ' +\n '__DEV__ === ' +\n String(__DEV__) +\n ', development-level warning are ' +\n (__DEV__ ? 'ON' : 'OFF') +\n ', performance optimizations are ' +\n (__DEV__ ? 'OFF' : 'ON');\n infoLog(msg);\n BugReporting.addSource(\n 'AppRegistry.runApplication' + runCount++,\n () => msg,\n );\n invariant(\n runnables[appKey] && runnables[appKey].run,\n 'Application ' +\n appKey +\n ' has not been registered.\\n\\n' +\n \"Hint: This error often happens when you're running the packager \" +\n '(local dev server) from a wrong folder. For example you have ' +\n 'multiple apps and the packager is still running for the app you ' +\n 'were working on before.\\nIf this is the case, simply kill the old ' +\n 'packager instance (e.g. close the packager terminal window) ' +\n 'and start the packager in the correct app folder (e.g. cd into app ' +\n \"folder and run 'npm start').\\n\\n\" +\n 'This error can also happen due to a require() error during ' +\n 'initialization or failure to call AppRegistry.registerComponent.\\n\\n',\n );\n\n SceneTracker.setActiveScene({name: appKey});\n runnables[appKey].run(appParameters);\n },\n\n /**\n * Stops an application when a view should be destroyed.\n *\n * See http://facebook.github.io/react-native/docs/appregistry.html#unmountapplicationcomponentatroottag\n */\n unmountApplicationComponentAtRootTag(rootTag: number): void {\n ReactNative.unmountComponentAtNodeAndRemoveContainer(rootTag);\n },\n\n /**\n * Register a headless task. A headless task is a bit of code that runs without a UI.\n *\n * See http://facebook.github.io/react-native/docs/appregistry.html#registerheadlesstask\n */\n registerHeadlessTask(taskKey: string, task: TaskProvider): void {\n if (tasks.has(taskKey)) {\n console.warn(\n `registerHeadlessTask called multiple times for same key '${taskKey}'`,\n );\n }\n tasks.set(taskKey, task);\n },\n\n /**\n * Only called from native code. Starts a headless task.\n *\n * See http://facebook.github.io/react-native/docs/appregistry.html#startheadlesstask\n */\n startHeadlessTask(taskId: number, taskKey: string, data: any): void {\n const taskProvider = tasks.get(taskKey);\n if (!taskProvider) {\n throw new Error(`No task registered for key ${taskKey}`);\n }\n taskProvider()(data)\n .then(() =>\n NativeModules.HeadlessJsTaskSupport.notifyTaskFinished(taskId),\n )\n .catch(reason => {\n console.error(reason);\n NativeModules.HeadlessJsTaskSupport.notifyTaskFinished(taskId);\n });\n },\n};\n\nBatchedBridge.registerCallableModule('AppRegistry', AppRegistry);\n\nmodule.exports = AppRegistry;\n","/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n * @flow\n */\n\n'use strict';\n\nconst RCTDeviceEventEmitter = require('RCTDeviceEventEmitter');\nconst Map = require('Map');\nconst infoLog = require('infoLog');\n\nimport type EmitterSubscription from 'EmitterSubscription';\n\ntype ExtraData = {[key: string]: string};\ntype SourceCallback = () => string;\ntype DebugData = {extras: ExtraData, files: ExtraData};\n\nfunction defaultExtras() {\n BugReporting.addFileSource('react_hierarchy.txt', () =>\n require('dumpReactTree')(),\n );\n}\n\n/**\n * A simple class for collecting bug report data. Components can add sources that will be queried when a bug report\n * is created via `collectExtraData`. For example, a list component might add a source that provides the list of rows\n * that are currently visible on screen. Components should also remember to call `remove()` on the object that is\n * returned by `addSource` when they are unmounted.\n */\nclass BugReporting {\n static _extraSources: Map = new Map();\n static _fileSources: Map = new Map();\n static _subscription: ?EmitterSubscription = null;\n static _redboxSubscription: ?EmitterSubscription = null;\n\n static _maybeInit() {\n if (!BugReporting._subscription) {\n BugReporting._subscription = RCTDeviceEventEmitter.addListener(\n 'collectBugExtraData',\n BugReporting.collectExtraData,\n null,\n );\n defaultExtras();\n }\n\n if (!BugReporting._redboxSubscription) {\n BugReporting._redboxSubscription = RCTDeviceEventEmitter.addListener(\n 'collectRedBoxExtraData',\n BugReporting.collectExtraData,\n null,\n );\n }\n }\n\n /**\n * Maps a string key to a simple callback that should return a string payload to be attached\n * to a bug report. Source callbacks are called when `collectExtraData` is called.\n *\n * Returns an object to remove the source when the component unmounts.\n *\n * Conflicts trample with a warning.\n */\n static addSource(\n key: string,\n callback: SourceCallback,\n ): {remove: () => void} {\n return this._addSource(key, callback, BugReporting._extraSources);\n }\n\n /**\n * Maps a string key to a simple callback that should return a string payload to be attached\n * to a bug report. Source callbacks are called when `collectExtraData` is called.\n *\n * Returns an object to remove the source when the component unmounts.\n *\n * Conflicts trample with a warning.\n */\n static addFileSource(\n key: string,\n callback: SourceCallback,\n ): {remove: () => void} {\n return this._addSource(key, callback, BugReporting._fileSources);\n }\n\n static _addSource(\n key: string,\n callback: SourceCallback,\n source: Map,\n ): {remove: () => void} {\n BugReporting._maybeInit();\n if (source.has(key)) {\n console.warn(\n `BugReporting.add* called multiple times for same key '${key}'`,\n );\n }\n source.set(key, callback);\n return {\n remove: () => {\n source.delete(key);\n },\n };\n }\n\n /**\n * This can be called from a native bug reporting flow, or from JS code.\n *\n * If available, this will call `NativeModules.BugReporting.setExtraData(extraData)`\n * after collecting `extraData`.\n */\n static collectExtraData(): DebugData {\n const extraData: ExtraData = {};\n for (const [key, callback] of BugReporting._extraSources) {\n extraData[key] = callback();\n }\n const fileData: ExtraData = {};\n for (const [key, callback] of BugReporting._fileSources) {\n fileData[key] = callback();\n }\n infoLog('BugReporting extraData:', extraData);\n const BugReportingNativeModule = require('NativeModules').BugReporting;\n BugReportingNativeModule &&\n BugReportingNativeModule.setExtraData &&\n BugReportingNativeModule.setExtraData(extraData, fileData);\n\n const RedBoxNativeModule = require('NativeModules').RedBox;\n RedBoxNativeModule &&\n RedBoxNativeModule.setExtraData &&\n RedBoxNativeModule.setExtraData(extraData, 'From BugReporting.js');\n\n return {extras: extraData, files: fileData};\n }\n}\n\nmodule.exports = BugReporting;\n","/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n * @flow strict\n */\n\n'use strict';\n\n/*\nconst getReactData = require('getReactData');\n\nconst INDENTATION_SIZE = 2;\nconst MAX_DEPTH = 2;\nconst MAX_STRING_LENGTH = 50;\n*/\n\n/**\n * Dump all React Native root views and their content. This function tries\n * it best to get the content but ultimately relies on implementation details\n * of React and will fail in future versions.\n */\nfunction dumpReactTree() {\n try {\n return getReactTree();\n } catch (e) {\n return 'Failed to dump react tree: ' + e;\n }\n}\n\nfunction getReactTree() {\n // TODO(sema): Reenable tree dumps using the Fiber tree structure. #15945684\n return (\n 'React tree dumps have been temporarily disabled while React is ' +\n 'upgraded to Fiber.'\n );\n /*\n let output = '';\n const rootIds = Object.getOwnPropertyNames(ReactNativeMount._instancesByContainerID);\n for (const rootId of rootIds) {\n const instance = ReactNativeMount._instancesByContainerID[rootId];\n output += `============ Root ID: ${rootId} ============\\n`;\n output += dumpNode(instance, 0);\n output += `============ End root ID: ${rootId} ============\\n`;\n }\n return output;\n*/\n}\n\n/*\nfunction dumpNode(node: Object, indentation: number) {\n const data = getReactData(node);\n if (data.nodeType === 'Text') {\n return indent(indentation) + data.text + '\\n';\n } else if (data.nodeType === 'Empty') {\n return '';\n }\n let output = indent(indentation) + `<${data.name}`;\n if (data.nodeType === 'Composite') {\n for (const propName of Object.getOwnPropertyNames(data.props || {})) {\n if (isNormalProp(propName)) {\n try {\n const value = convertValue(data.props[propName]);\n if (value) {\n output += ` ${propName}=${value}`;\n }\n } catch (e) {\n const message = `[Failed to get property: ${e}]`;\n output += ` ${propName}=${message}`;\n }\n }\n }\n }\n let childOutput = '';\n for (const child of data.children || []) {\n childOutput += dumpNode(child, indentation + 1);\n }\n\n if (childOutput) {\n output += '>\\n' + childOutput + indent(indentation) + `\\n`;\n } else {\n output += ' />\\n';\n }\n\n return output;\n}\n\nfunction isNormalProp(name: string): boolean {\n switch (name) {\n case 'children':\n case 'key':\n case 'ref':\n return false;\n default:\n return true;\n }\n}\n\nfunction convertObject(object: Object, depth: number) {\n if (depth >= MAX_DEPTH) {\n return '[...omitted]';\n }\n let output = '{';\n let first = true;\n for (const key of Object.getOwnPropertyNames(object)) {\n if (!first) {\n output += ', ';\n }\n output += `${key}: ${convertValue(object[key], depth + 1)}`;\n first = false;\n }\n return output + '}';\n}\n\nfunction convertValue(value, depth = 0): ?string {\n if (!value) {\n return null;\n }\n\n switch (typeof value) {\n case 'string':\n return JSON.stringify(possiblyEllipsis(value).replace('\\n', '\\\\n'));\n case 'boolean':\n case 'number':\n return JSON.stringify(value);\n case 'function':\n return '[function]';\n case 'object':\n return convertObject(value, depth);\n default:\n return null;\n }\n}\n\nfunction possiblyEllipsis(value: string) {\n if (value.length > MAX_STRING_LENGTH) {\n return value.slice(0, MAX_STRING_LENGTH) + '...';\n } else {\n return value;\n }\n}\n\nfunction indent(size: number) {\n return ' '.repeat(size * INDENTATION_SIZE);\n}\n*/\n\nmodule.exports = dumpReactTree;\n","/**\n * Copyright (c) 2015-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n * @flow strict\n */\n\n'use strict';\n\ntype Scene = {name: string};\n\nlet _listeners: Array<(scene: Scene) => void> = [];\n\nlet _activeScene = {name: 'default'};\n\nconst SceneTracker = {\n setActiveScene(scene: Scene) {\n _activeScene = scene;\n _listeners.forEach(listener => listener(_activeScene));\n },\n\n getActiveScene(): Scene {\n return _activeScene;\n },\n\n addActiveSceneChangedListener(\n callback: (scene: Scene) => void,\n ): {remove: () => void} {\n _listeners.push(callback);\n return {\n remove: () => {\n _listeners = _listeners.filter(listener => callback !== listener);\n },\n };\n },\n};\n\nmodule.exports = SceneTracker;\n","/**\n * Copyright (c) 2015-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n * @flow\n */\n\n'use strict';\n\nconst AppContainer = require('AppContainer');\nconst React = require('React');\nconst ReactFabricIndicator = require('ReactFabricIndicator');\n\nconst invariant = require('fbjs/lib/invariant');\n\n// require BackHandler so it sets the default handler that exits the app if no listeners respond\nrequire('BackHandler');\n\nfunction renderApplication(\n RootComponent: React.ComponentType,\n initialProps: Props,\n rootTag: any,\n WrapperComponent?: ?React.ComponentType<*>,\n fabric?: boolean,\n showFabricIndicator?: boolean,\n) {\n invariant(rootTag, 'Expect to have a valid rootTag, instead got ', rootTag);\n\n let renderable = (\n \n \n {fabric === true && showFabricIndicator === true ? (\n \n ) : null}\n \n );\n\n // If the root component is async, the user probably wants the initial render\n // to be async also. To do this, wrap AppContainer with an async marker.\n // For more info see https://fb.me/is-component-async\n if (\n /* $FlowFixMe(>=0.68.0 site=react_native_fb) This comment suppresses an\n * error found when Flow v0.68 was deployed. To see the error delete this\n * comment and run Flow. */\n RootComponent.prototype != null &&\n RootComponent.prototype.unstable_isAsyncReactComponent === true\n ) {\n // $FlowFixMe This is not yet part of the official public API\n const AsyncMode = React.unstable_AsyncMode;\n renderable = {renderable};\n }\n\n if (fabric) {\n require('ReactFabric').render(renderable, rootTag);\n } else {\n require('ReactNative').render(renderable, rootTag);\n }\n}\n\nmodule.exports = renderApplication;\n","/**\n * Copyright (c) 2015-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n * @flow\n */\n\n'use strict';\n\nconst React = require('React');\nconst StyleSheet = require('StyleSheet');\nconst Text = require('Text');\nconst View = require('View');\n\nfunction ReactFabricIndicator(): React.Node {\n return (\n \n FABRIC\n \n );\n}\n\nconst styles = StyleSheet.create({\n container: {\n alignItems: 'center',\n justifyContent: 'center',\n backgroundColor: 'rgba(0,0,0, 0.25)',\n position: 'absolute',\n top: 0,\n right: 0,\n padding: 2,\n },\n text: {\n fontSize: 6,\n color: '#ffffff',\n },\n});\n\nmodule.exports = ReactFabricIndicator;\n","/**\n * Copyright (c) 2015-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n */\n\n'use strict';\n\nconst DeviceEventManager = require('NativeModules').DeviceEventManager;\nconst RCTDeviceEventEmitter = require('RCTDeviceEventEmitter');\n\nconst DEVICE_BACK_EVENT = 'hardwareBackPress';\n\ntype BackPressEventName = $Enum<{\n backPress: string,\n}>;\n\nconst _backPressSubscriptions = new Set();\n\nRCTDeviceEventEmitter.addListener(DEVICE_BACK_EVENT, function() {\n let invokeDefault = true;\n const subscriptions = Array.from(_backPressSubscriptions.values()).reverse();\n\n for (let i = 0; i < subscriptions.length; ++i) {\n if (subscriptions[i]()) {\n invokeDefault = false;\n break;\n }\n }\n\n if (invokeDefault) {\n BackHandler.exitApp();\n }\n});\n\n/**\n * Detect hardware button presses for back navigation.\n *\n * Android: Detect hardware back button presses, and programmatically invoke the default back button\n * functionality to exit the app if there are no listeners or if none of the listeners return true.\n *\n * tvOS: Detect presses of the menu button on the TV remote. (Still to be implemented:\n * programmatically disable menu button handling\n * functionality to exit the app if there are no listeners or if none of the listeners return true.)\n *\n * iOS: Not applicable.\n *\n * The event subscriptions are called in reverse order (i.e. last registered subscription first),\n * and if one subscription returns true then subscriptions registered earlier will not be called.\n *\n * Example:\n *\n * ```javascript\n * BackHandler.addEventListener('hardwareBackPress', function() {\n * // this.onMainScreen and this.goBack are just examples, you need to use your own implementation here\n * // Typically you would use the navigator here to go to the last state.\n *\n * if (!this.onMainScreen()) {\n * this.goBack();\n * return true;\n * }\n * return false;\n * });\n * ```\n */\nconst BackHandler = {\n exitApp: function() {\n DeviceEventManager.invokeDefaultBackPressHandler();\n },\n\n /**\n * Adds an event handler. Supported events:\n *\n * - `hardwareBackPress`: Fires when the Android hardware back button is pressed or when the\n * tvOS menu button is pressed.\n */\n addEventListener: function(\n eventName: BackPressEventName,\n handler: Function,\n ): {remove: () => void} {\n _backPressSubscriptions.add(handler);\n return {\n remove: () => BackHandler.removeEventListener(eventName, handler),\n };\n },\n\n /**\n * Removes the event handler.\n */\n removeEventListener: function(\n eventName: BackPressEventName,\n handler: Function,\n ): void {\n _backPressSubscriptions.delete(handler);\n },\n};\n\nmodule.exports = BackHandler;\n","/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n * @flow\n */\n\n'use strict';\n\nconst BatchedBridge = require('BatchedBridge');\n\n// TODO @sema: Adjust types\nimport type {ReactNativeType} from 'ReactNativeTypes';\n\nlet ReactFabric;\n\nif (__DEV__) {\n ReactFabric = require('ReactFabric-dev');\n} else {\n ReactFabric = require('ReactFabric-prod');\n}\n\nBatchedBridge.registerCallableModule('ReactFabric', ReactFabric);\n\nmodule.exports = (ReactFabric: ReactNativeType);\n","/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @noflow\n * @providesModule ReactFabric-prod\n * @preventMunge\n * @generated\n */\n\n\"use strict\";\nrequire(\"InitializeCore\");\nvar ReactNativeViewConfigRegistry = require(\"ReactNativeViewConfigRegistry\"),\n UIManager = require(\"UIManager\"),\n React = require(\"react\"),\n deepDiffer = require(\"deepDiffer\"),\n flattenStyle = require(\"flattenStyle\"),\n TextInputState = require(\"TextInputState\"),\n FabricUIManager = require(\"FabricUIManager\");\nvar scheduler = require(\"scheduler\"),\n ExceptionsManager = require(\"ExceptionsManager\");\nfunction invariant(condition, format, a, b, c, d, e, f) {\n if (!condition) {\n condition = void 0;\n if (void 0 === format)\n condition = Error(\n \"Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.\"\n );\n else {\n var args = [a, b, c, d, e, f],\n argIndex = 0;\n condition = Error(\n format.replace(/%s/g, function() {\n return args[argIndex++];\n })\n );\n condition.name = \"Invariant Violation\";\n }\n condition.framesToPop = 1;\n throw condition;\n }\n}\nfunction invokeGuardedCallbackImpl(name, func, context, a, b, c, d, e, f) {\n var funcArgs = Array.prototype.slice.call(arguments, 3);\n try {\n func.apply(context, funcArgs);\n } catch (error) {\n this.onError(error);\n }\n}\nvar hasError = !1,\n caughtError = null,\n hasRethrowError = !1,\n rethrowError = null,\n reporter = {\n onError: function(error) {\n hasError = !0;\n caughtError = error;\n }\n };\nfunction invokeGuardedCallback(name, func, context, a, b, c, d, e, f) {\n hasError = !1;\n caughtError = null;\n invokeGuardedCallbackImpl.apply(reporter, arguments);\n}\nfunction invokeGuardedCallbackAndCatchFirstError(\n name,\n func,\n context,\n a,\n b,\n c,\n d,\n e,\n f\n) {\n invokeGuardedCallback.apply(this, arguments);\n if (hasError) {\n if (hasError) {\n var error = caughtError;\n hasError = !1;\n caughtError = null;\n } else\n invariant(\n !1,\n \"clearCaughtError was called but no error was captured. This error is likely caused by a bug in React. Please file an issue.\"\n ),\n (error = void 0);\n hasRethrowError || ((hasRethrowError = !0), (rethrowError = error));\n }\n}\nvar eventPluginOrder = null,\n namesToPlugins = {};\nfunction recomputePluginOrdering() {\n if (eventPluginOrder)\n for (var pluginName in namesToPlugins) {\n var pluginModule = namesToPlugins[pluginName],\n pluginIndex = eventPluginOrder.indexOf(pluginName);\n invariant(\n -1 < pluginIndex,\n \"EventPluginRegistry: Cannot inject event plugins that do not exist in the plugin ordering, `%s`.\",\n pluginName\n );\n if (!plugins[pluginIndex]) {\n invariant(\n pluginModule.extractEvents,\n \"EventPluginRegistry: Event plugins must implement an `extractEvents` method, but `%s` does not.\",\n pluginName\n );\n plugins[pluginIndex] = pluginModule;\n pluginIndex = pluginModule.eventTypes;\n for (var eventName in pluginIndex) {\n var JSCompiler_inline_result = void 0;\n var dispatchConfig = pluginIndex[eventName],\n pluginModule$jscomp$0 = pluginModule,\n eventName$jscomp$0 = eventName;\n invariant(\n !eventNameDispatchConfigs.hasOwnProperty(eventName$jscomp$0),\n \"EventPluginHub: More than one plugin attempted to publish the same event name, `%s`.\",\n eventName$jscomp$0\n );\n eventNameDispatchConfigs[eventName$jscomp$0] = dispatchConfig;\n var phasedRegistrationNames = dispatchConfig.phasedRegistrationNames;\n if (phasedRegistrationNames) {\n for (JSCompiler_inline_result in phasedRegistrationNames)\n phasedRegistrationNames.hasOwnProperty(\n JSCompiler_inline_result\n ) &&\n publishRegistrationName(\n phasedRegistrationNames[JSCompiler_inline_result],\n pluginModule$jscomp$0,\n eventName$jscomp$0\n );\n JSCompiler_inline_result = !0;\n } else\n dispatchConfig.registrationName\n ? (publishRegistrationName(\n dispatchConfig.registrationName,\n pluginModule$jscomp$0,\n eventName$jscomp$0\n ),\n (JSCompiler_inline_result = !0))\n : (JSCompiler_inline_result = !1);\n invariant(\n JSCompiler_inline_result,\n \"EventPluginRegistry: Failed to publish event `%s` for plugin `%s`.\",\n eventName,\n pluginName\n );\n }\n }\n }\n}\nfunction publishRegistrationName(registrationName, pluginModule) {\n invariant(\n !registrationNameModules[registrationName],\n \"EventPluginHub: More than one plugin attempted to publish the same registration name, `%s`.\",\n registrationName\n );\n registrationNameModules[registrationName] = pluginModule;\n}\nvar plugins = [],\n eventNameDispatchConfigs = {},\n registrationNameModules = {},\n getFiberCurrentPropsFromNode = null,\n getInstanceFromNode = null,\n getNodeFromInstance = null;\nfunction executeDispatch(event, listener, inst) {\n var type = event.type || \"unknown-event\";\n event.currentTarget = getNodeFromInstance(inst);\n invokeGuardedCallbackAndCatchFirstError(type, listener, void 0, event);\n event.currentTarget = null;\n}\nfunction executeDirectDispatch(event) {\n var dispatchListener = event._dispatchListeners,\n dispatchInstance = event._dispatchInstances;\n invariant(\n !Array.isArray(dispatchListener),\n \"executeDirectDispatch(...): Invalid `event`.\"\n );\n event.currentTarget = dispatchListener\n ? getNodeFromInstance(dispatchInstance)\n : null;\n dispatchListener = dispatchListener ? dispatchListener(event) : null;\n event.currentTarget = null;\n event._dispatchListeners = null;\n event._dispatchInstances = null;\n return dispatchListener;\n}\nfunction accumulateInto(current, next) {\n invariant(\n null != next,\n \"accumulateInto(...): Accumulated items must not be null or undefined.\"\n );\n if (null == current) return next;\n if (Array.isArray(current)) {\n if (Array.isArray(next)) return current.push.apply(current, next), current;\n current.push(next);\n return current;\n }\n return Array.isArray(next) ? [current].concat(next) : [current, next];\n}\nfunction forEachAccumulated(arr, cb, scope) {\n Array.isArray(arr) ? arr.forEach(cb, scope) : arr && cb.call(scope, arr);\n}\nvar eventQueue = null;\nfunction executeDispatchesAndReleaseTopLevel(e) {\n if (e) {\n var dispatchListeners = e._dispatchListeners,\n dispatchInstances = e._dispatchInstances;\n if (Array.isArray(dispatchListeners))\n for (\n var i = 0;\n i < dispatchListeners.length && !e.isPropagationStopped();\n i++\n )\n executeDispatch(e, dispatchListeners[i], dispatchInstances[i]);\n else\n dispatchListeners &&\n executeDispatch(e, dispatchListeners, dispatchInstances);\n e._dispatchListeners = null;\n e._dispatchInstances = null;\n e.isPersistent() || e.constructor.release(e);\n }\n}\nvar injection = {\n injectEventPluginOrder: function(injectedEventPluginOrder) {\n invariant(\n !eventPluginOrder,\n \"EventPluginRegistry: Cannot inject event plugin ordering more than once. You are likely trying to load more than one copy of React.\"\n );\n eventPluginOrder = Array.prototype.slice.call(injectedEventPluginOrder);\n recomputePluginOrdering();\n },\n injectEventPluginsByName: function(injectedNamesToPlugins) {\n var isOrderingDirty = !1,\n pluginName;\n for (pluginName in injectedNamesToPlugins)\n if (injectedNamesToPlugins.hasOwnProperty(pluginName)) {\n var pluginModule = injectedNamesToPlugins[pluginName];\n (namesToPlugins.hasOwnProperty(pluginName) &&\n namesToPlugins[pluginName] === pluginModule) ||\n (invariant(\n !namesToPlugins[pluginName],\n \"EventPluginRegistry: Cannot inject two different event plugins using the same name, `%s`.\",\n pluginName\n ),\n (namesToPlugins[pluginName] = pluginModule),\n (isOrderingDirty = !0));\n }\n isOrderingDirty && recomputePluginOrdering();\n }\n};\nfunction getListener(inst, registrationName) {\n var listener = inst.stateNode;\n if (!listener) return null;\n var props = getFiberCurrentPropsFromNode(listener);\n if (!props) return null;\n listener = props[registrationName];\n a: switch (registrationName) {\n case \"onClick\":\n case \"onClickCapture\":\n case \"onDoubleClick\":\n case \"onDoubleClickCapture\":\n case \"onMouseDown\":\n case \"onMouseDownCapture\":\n case \"onMouseMove\":\n case \"onMouseMoveCapture\":\n case \"onMouseUp\":\n case \"onMouseUpCapture\":\n (props = !props.disabled) ||\n ((inst = inst.type),\n (props = !(\n \"button\" === inst ||\n \"input\" === inst ||\n \"select\" === inst ||\n \"textarea\" === inst\n )));\n inst = !props;\n break a;\n default:\n inst = !1;\n }\n if (inst) return null;\n invariant(\n !listener || \"function\" === typeof listener,\n \"Expected `%s` listener to be a function, instead got a value of `%s` type.\",\n registrationName,\n typeof listener\n );\n return listener;\n}\nfunction getParent(inst) {\n do inst = inst.return;\n while (inst && 5 !== inst.tag);\n return inst ? inst : null;\n}\nfunction traverseTwoPhase(inst, fn, arg) {\n for (var path = []; inst; ) path.push(inst), (inst = getParent(inst));\n for (inst = path.length; 0 < inst--; ) fn(path[inst], \"captured\", arg);\n for (inst = 0; inst < path.length; inst++) fn(path[inst], \"bubbled\", arg);\n}\nfunction accumulateDirectionalDispatches(inst, phase, event) {\n if (\n (phase = getListener(\n inst,\n event.dispatchConfig.phasedRegistrationNames[phase]\n ))\n )\n (event._dispatchListeners = accumulateInto(\n event._dispatchListeners,\n phase\n )),\n (event._dispatchInstances = accumulateInto(\n event._dispatchInstances,\n inst\n ));\n}\nfunction accumulateTwoPhaseDispatchesSingle(event) {\n event &&\n event.dispatchConfig.phasedRegistrationNames &&\n traverseTwoPhase(event._targetInst, accumulateDirectionalDispatches, event);\n}\nfunction accumulateTwoPhaseDispatchesSingleSkipTarget(event) {\n if (event && event.dispatchConfig.phasedRegistrationNames) {\n var targetInst = event._targetInst;\n targetInst = targetInst ? getParent(targetInst) : null;\n traverseTwoPhase(targetInst, accumulateDirectionalDispatches, event);\n }\n}\nfunction accumulateDirectDispatchesSingle(event) {\n if (event && event.dispatchConfig.registrationName) {\n var inst = event._targetInst;\n if (inst && event && event.dispatchConfig.registrationName) {\n var listener = getListener(inst, event.dispatchConfig.registrationName);\n listener &&\n ((event._dispatchListeners = accumulateInto(\n event._dispatchListeners,\n listener\n )),\n (event._dispatchInstances = accumulateInto(\n event._dispatchInstances,\n inst\n )));\n }\n }\n}\nfunction functionThatReturnsTrue() {\n return !0;\n}\nfunction functionThatReturnsFalse() {\n return !1;\n}\nfunction SyntheticEvent(\n dispatchConfig,\n targetInst,\n nativeEvent,\n nativeEventTarget\n) {\n this.dispatchConfig = dispatchConfig;\n this._targetInst = targetInst;\n this.nativeEvent = nativeEvent;\n dispatchConfig = this.constructor.Interface;\n for (var propName in dispatchConfig)\n dispatchConfig.hasOwnProperty(propName) &&\n ((targetInst = dispatchConfig[propName])\n ? (this[propName] = targetInst(nativeEvent))\n : \"target\" === propName\n ? (this.target = nativeEventTarget)\n : (this[propName] = nativeEvent[propName]));\n this.isDefaultPrevented = (null != nativeEvent.defaultPrevented\n ? nativeEvent.defaultPrevented\n : !1 === nativeEvent.returnValue)\n ? functionThatReturnsTrue\n : functionThatReturnsFalse;\n this.isPropagationStopped = functionThatReturnsFalse;\n return this;\n}\nObject.assign(SyntheticEvent.prototype, {\n preventDefault: function() {\n this.defaultPrevented = !0;\n var event = this.nativeEvent;\n event &&\n (event.preventDefault\n ? event.preventDefault()\n : \"unknown\" !== typeof event.returnValue && (event.returnValue = !1),\n (this.isDefaultPrevented = functionThatReturnsTrue));\n },\n stopPropagation: function() {\n var event = this.nativeEvent;\n event &&\n (event.stopPropagation\n ? event.stopPropagation()\n : \"unknown\" !== typeof event.cancelBubble && (event.cancelBubble = !0),\n (this.isPropagationStopped = functionThatReturnsTrue));\n },\n persist: function() {\n this.isPersistent = functionThatReturnsTrue;\n },\n isPersistent: functionThatReturnsFalse,\n destructor: function() {\n var Interface = this.constructor.Interface,\n propName;\n for (propName in Interface) this[propName] = null;\n this.nativeEvent = this._targetInst = this.dispatchConfig = null;\n this.isPropagationStopped = this.isDefaultPrevented = functionThatReturnsFalse;\n this._dispatchInstances = this._dispatchListeners = null;\n }\n});\nSyntheticEvent.Interface = {\n type: null,\n target: null,\n currentTarget: function() {\n return null;\n },\n eventPhase: null,\n bubbles: null,\n cancelable: null,\n timeStamp: function(event) {\n return event.timeStamp || Date.now();\n },\n defaultPrevented: null,\n isTrusted: null\n};\nSyntheticEvent.extend = function(Interface) {\n function E() {}\n function Class() {\n return Super.apply(this, arguments);\n }\n var Super = this;\n E.prototype = Super.prototype;\n var prototype = new E();\n Object.assign(prototype, Class.prototype);\n Class.prototype = prototype;\n Class.prototype.constructor = Class;\n Class.Interface = Object.assign({}, Super.Interface, Interface);\n Class.extend = Super.extend;\n addEventPoolingTo(Class);\n return Class;\n};\naddEventPoolingTo(SyntheticEvent);\nfunction getPooledEvent(dispatchConfig, targetInst, nativeEvent, nativeInst) {\n if (this.eventPool.length) {\n var instance = this.eventPool.pop();\n this.call(instance, dispatchConfig, targetInst, nativeEvent, nativeInst);\n return instance;\n }\n return new this(dispatchConfig, targetInst, nativeEvent, nativeInst);\n}\nfunction releasePooledEvent(event) {\n invariant(\n event instanceof this,\n \"Trying to release an event instance into a pool of a different type.\"\n );\n event.destructor();\n 10 > this.eventPool.length && this.eventPool.push(event);\n}\nfunction addEventPoolingTo(EventConstructor) {\n EventConstructor.eventPool = [];\n EventConstructor.getPooled = getPooledEvent;\n EventConstructor.release = releasePooledEvent;\n}\nvar ResponderSyntheticEvent = SyntheticEvent.extend({\n touchHistory: function() {\n return null;\n }\n});\nfunction isStartish(topLevelType) {\n return \"topTouchStart\" === topLevelType;\n}\nfunction isMoveish(topLevelType) {\n return \"topTouchMove\" === topLevelType;\n}\nvar startDependencies = [\"topTouchStart\"],\n moveDependencies = [\"topTouchMove\"],\n endDependencies = [\"topTouchCancel\", \"topTouchEnd\"],\n touchBank = [],\n touchHistory = {\n touchBank: touchBank,\n numberActiveTouches: 0,\n indexOfSingleActiveTouch: -1,\n mostRecentTimeStamp: 0\n };\nfunction timestampForTouch(touch) {\n return touch.timeStamp || touch.timestamp;\n}\nfunction getTouchIdentifier(_ref) {\n _ref = _ref.identifier;\n invariant(null != _ref, \"Touch object is missing identifier.\");\n return _ref;\n}\nfunction recordTouchStart(touch) {\n var identifier = getTouchIdentifier(touch),\n touchRecord = touchBank[identifier];\n touchRecord\n ? ((touchRecord.touchActive = !0),\n (touchRecord.startPageX = touch.pageX),\n (touchRecord.startPageY = touch.pageY),\n (touchRecord.startTimeStamp = timestampForTouch(touch)),\n (touchRecord.currentPageX = touch.pageX),\n (touchRecord.currentPageY = touch.pageY),\n (touchRecord.currentTimeStamp = timestampForTouch(touch)),\n (touchRecord.previousPageX = touch.pageX),\n (touchRecord.previousPageY = touch.pageY),\n (touchRecord.previousTimeStamp = timestampForTouch(touch)))\n : ((touchRecord = {\n touchActive: !0,\n startPageX: touch.pageX,\n startPageY: touch.pageY,\n startTimeStamp: timestampForTouch(touch),\n currentPageX: touch.pageX,\n currentPageY: touch.pageY,\n currentTimeStamp: timestampForTouch(touch),\n previousPageX: touch.pageX,\n previousPageY: touch.pageY,\n previousTimeStamp: timestampForTouch(touch)\n }),\n (touchBank[identifier] = touchRecord));\n touchHistory.mostRecentTimeStamp = timestampForTouch(touch);\n}\nfunction recordTouchMove(touch) {\n var touchRecord = touchBank[getTouchIdentifier(touch)];\n touchRecord\n ? ((touchRecord.touchActive = !0),\n (touchRecord.previousPageX = touchRecord.currentPageX),\n (touchRecord.previousPageY = touchRecord.currentPageY),\n (touchRecord.previousTimeStamp = touchRecord.currentTimeStamp),\n (touchRecord.currentPageX = touch.pageX),\n (touchRecord.currentPageY = touch.pageY),\n (touchRecord.currentTimeStamp = timestampForTouch(touch)),\n (touchHistory.mostRecentTimeStamp = timestampForTouch(touch)))\n : console.error(\n \"Cannot record touch move without a touch start.\\nTouch Move: %s\\n\",\n \"Touch Bank: %s\",\n printTouch(touch),\n printTouchBank()\n );\n}\nfunction recordTouchEnd(touch) {\n var touchRecord = touchBank[getTouchIdentifier(touch)];\n touchRecord\n ? ((touchRecord.touchActive = !1),\n (touchRecord.previousPageX = touchRecord.currentPageX),\n (touchRecord.previousPageY = touchRecord.currentPageY),\n (touchRecord.previousTimeStamp = touchRecord.currentTimeStamp),\n (touchRecord.currentPageX = touch.pageX),\n (touchRecord.currentPageY = touch.pageY),\n (touchRecord.currentTimeStamp = timestampForTouch(touch)),\n (touchHistory.mostRecentTimeStamp = timestampForTouch(touch)))\n : console.error(\n \"Cannot record touch end without a touch start.\\nTouch End: %s\\n\",\n \"Touch Bank: %s\",\n printTouch(touch),\n printTouchBank()\n );\n}\nfunction printTouch(touch) {\n return JSON.stringify({\n identifier: touch.identifier,\n pageX: touch.pageX,\n pageY: touch.pageY,\n timestamp: timestampForTouch(touch)\n });\n}\nfunction printTouchBank() {\n var printed = JSON.stringify(touchBank.slice(0, 20));\n 20 < touchBank.length &&\n (printed += \" (original size: \" + touchBank.length + \")\");\n return printed;\n}\nvar ResponderTouchHistoryStore = {\n recordTouchTrack: function(topLevelType, nativeEvent) {\n if (isMoveish(topLevelType))\n nativeEvent.changedTouches.forEach(recordTouchMove);\n else if (isStartish(topLevelType))\n nativeEvent.changedTouches.forEach(recordTouchStart),\n (touchHistory.numberActiveTouches = nativeEvent.touches.length),\n 1 === touchHistory.numberActiveTouches &&\n (touchHistory.indexOfSingleActiveTouch =\n nativeEvent.touches[0].identifier);\n else if (\n \"topTouchEnd\" === topLevelType ||\n \"topTouchCancel\" === topLevelType\n )\n if (\n (nativeEvent.changedTouches.forEach(recordTouchEnd),\n (touchHistory.numberActiveTouches = nativeEvent.touches.length),\n 1 === touchHistory.numberActiveTouches)\n )\n for (topLevelType = 0; topLevelType < touchBank.length; topLevelType++)\n if (\n ((nativeEvent = touchBank[topLevelType]),\n null != nativeEvent && nativeEvent.touchActive)\n ) {\n touchHistory.indexOfSingleActiveTouch = topLevelType;\n break;\n }\n },\n touchHistory: touchHistory\n};\nfunction accumulate(current, next) {\n invariant(\n null != next,\n \"accumulate(...): Accumulated items must be not be null or undefined.\"\n );\n return null == current\n ? next\n : Array.isArray(current)\n ? current.concat(next)\n : Array.isArray(next)\n ? [current].concat(next)\n : [current, next];\n}\nvar responderInst = null,\n trackedTouchCount = 0;\nfunction changeResponder(nextResponderInst, blockHostResponder) {\n var oldResponderInst = responderInst;\n responderInst = nextResponderInst;\n if (null !== ResponderEventPlugin.GlobalResponderHandler)\n ResponderEventPlugin.GlobalResponderHandler.onChange(\n oldResponderInst,\n nextResponderInst,\n blockHostResponder\n );\n}\nvar eventTypes$1 = {\n startShouldSetResponder: {\n phasedRegistrationNames: {\n bubbled: \"onStartShouldSetResponder\",\n captured: \"onStartShouldSetResponderCapture\"\n },\n dependencies: startDependencies\n },\n scrollShouldSetResponder: {\n phasedRegistrationNames: {\n bubbled: \"onScrollShouldSetResponder\",\n captured: \"onScrollShouldSetResponderCapture\"\n },\n dependencies: [\"topScroll\"]\n },\n selectionChangeShouldSetResponder: {\n phasedRegistrationNames: {\n bubbled: \"onSelectionChangeShouldSetResponder\",\n captured: \"onSelectionChangeShouldSetResponderCapture\"\n },\n dependencies: [\"topSelectionChange\"]\n },\n moveShouldSetResponder: {\n phasedRegistrationNames: {\n bubbled: \"onMoveShouldSetResponder\",\n captured: \"onMoveShouldSetResponderCapture\"\n },\n dependencies: moveDependencies\n },\n responderStart: {\n registrationName: \"onResponderStart\",\n dependencies: startDependencies\n },\n responderMove: {\n registrationName: \"onResponderMove\",\n dependencies: moveDependencies\n },\n responderEnd: {\n registrationName: \"onResponderEnd\",\n dependencies: endDependencies\n },\n responderRelease: {\n registrationName: \"onResponderRelease\",\n dependencies: endDependencies\n },\n responderTerminationRequest: {\n registrationName: \"onResponderTerminationRequest\",\n dependencies: []\n },\n responderGrant: { registrationName: \"onResponderGrant\", dependencies: [] },\n responderReject: {\n registrationName: \"onResponderReject\",\n dependencies: []\n },\n responderTerminate: {\n registrationName: \"onResponderTerminate\",\n dependencies: []\n }\n },\n ResponderEventPlugin = {\n _getResponder: function() {\n return responderInst;\n },\n eventTypes: eventTypes$1,\n extractEvents: function(\n topLevelType,\n targetInst,\n nativeEvent,\n nativeEventTarget\n ) {\n if (isStartish(topLevelType)) trackedTouchCount += 1;\n else if (\n \"topTouchEnd\" === topLevelType ||\n \"topTouchCancel\" === topLevelType\n )\n if (0 <= trackedTouchCount) --trackedTouchCount;\n else\n return (\n console.error(\n \"Ended a touch event which was not counted in `trackedTouchCount`.\"\n ),\n null\n );\n ResponderTouchHistoryStore.recordTouchTrack(topLevelType, nativeEvent);\n if (\n targetInst &&\n ((\"topScroll\" === topLevelType && !nativeEvent.responderIgnoreScroll) ||\n (0 < trackedTouchCount && \"topSelectionChange\" === topLevelType) ||\n isStartish(topLevelType) ||\n isMoveish(topLevelType))\n ) {\n var JSCompiler_temp = isStartish(topLevelType)\n ? eventTypes$1.startShouldSetResponder\n : isMoveish(topLevelType)\n ? eventTypes$1.moveShouldSetResponder\n : \"topSelectionChange\" === topLevelType\n ? eventTypes$1.selectionChangeShouldSetResponder\n : eventTypes$1.scrollShouldSetResponder;\n if (responderInst)\n b: {\n var JSCompiler_temp$jscomp$0 = responderInst;\n for (\n var depthA = 0, tempA = JSCompiler_temp$jscomp$0;\n tempA;\n tempA = getParent(tempA)\n )\n depthA++;\n tempA = 0;\n for (var tempB = targetInst; tempB; tempB = getParent(tempB))\n tempA++;\n for (; 0 < depthA - tempA; )\n (JSCompiler_temp$jscomp$0 = getParent(JSCompiler_temp$jscomp$0)),\n depthA--;\n for (; 0 < tempA - depthA; )\n (targetInst = getParent(targetInst)), tempA--;\n for (; depthA--; ) {\n if (\n JSCompiler_temp$jscomp$0 === targetInst ||\n JSCompiler_temp$jscomp$0 === targetInst.alternate\n )\n break b;\n JSCompiler_temp$jscomp$0 = getParent(JSCompiler_temp$jscomp$0);\n targetInst = getParent(targetInst);\n }\n JSCompiler_temp$jscomp$0 = null;\n }\n else JSCompiler_temp$jscomp$0 = targetInst;\n targetInst = JSCompiler_temp$jscomp$0 === responderInst;\n JSCompiler_temp$jscomp$0 = ResponderSyntheticEvent.getPooled(\n JSCompiler_temp,\n JSCompiler_temp$jscomp$0,\n nativeEvent,\n nativeEventTarget\n );\n JSCompiler_temp$jscomp$0.touchHistory =\n ResponderTouchHistoryStore.touchHistory;\n targetInst\n ? forEachAccumulated(\n JSCompiler_temp$jscomp$0,\n accumulateTwoPhaseDispatchesSingleSkipTarget\n )\n : forEachAccumulated(\n JSCompiler_temp$jscomp$0,\n accumulateTwoPhaseDispatchesSingle\n );\n b: {\n JSCompiler_temp = JSCompiler_temp$jscomp$0._dispatchListeners;\n targetInst = JSCompiler_temp$jscomp$0._dispatchInstances;\n if (Array.isArray(JSCompiler_temp))\n for (\n depthA = 0;\n depthA < JSCompiler_temp.length &&\n !JSCompiler_temp$jscomp$0.isPropagationStopped();\n depthA++\n ) {\n if (\n JSCompiler_temp[depthA](\n JSCompiler_temp$jscomp$0,\n targetInst[depthA]\n )\n ) {\n JSCompiler_temp = targetInst[depthA];\n break b;\n }\n }\n else if (\n JSCompiler_temp &&\n JSCompiler_temp(JSCompiler_temp$jscomp$0, targetInst)\n ) {\n JSCompiler_temp = targetInst;\n break b;\n }\n JSCompiler_temp = null;\n }\n JSCompiler_temp$jscomp$0._dispatchInstances = null;\n JSCompiler_temp$jscomp$0._dispatchListeners = null;\n JSCompiler_temp$jscomp$0.isPersistent() ||\n JSCompiler_temp$jscomp$0.constructor.release(\n JSCompiler_temp$jscomp$0\n );\n JSCompiler_temp && JSCompiler_temp !== responderInst\n ? ((JSCompiler_temp$jscomp$0 = void 0),\n (targetInst = ResponderSyntheticEvent.getPooled(\n eventTypes$1.responderGrant,\n JSCompiler_temp,\n nativeEvent,\n nativeEventTarget\n )),\n (targetInst.touchHistory = ResponderTouchHistoryStore.touchHistory),\n forEachAccumulated(targetInst, accumulateDirectDispatchesSingle),\n (depthA = !0 === executeDirectDispatch(targetInst)),\n responderInst\n ? ((tempA = ResponderSyntheticEvent.getPooled(\n eventTypes$1.responderTerminationRequest,\n responderInst,\n nativeEvent,\n nativeEventTarget\n )),\n (tempA.touchHistory = ResponderTouchHistoryStore.touchHistory),\n forEachAccumulated(tempA, accumulateDirectDispatchesSingle),\n (tempB =\n !tempA._dispatchListeners || executeDirectDispatch(tempA)),\n tempA.isPersistent() || tempA.constructor.release(tempA),\n tempB\n ? ((tempA = ResponderSyntheticEvent.getPooled(\n eventTypes$1.responderTerminate,\n responderInst,\n nativeEvent,\n nativeEventTarget\n )),\n (tempA.touchHistory =\n ResponderTouchHistoryStore.touchHistory),\n forEachAccumulated(tempA, accumulateDirectDispatchesSingle),\n (JSCompiler_temp$jscomp$0 = accumulate(\n JSCompiler_temp$jscomp$0,\n [targetInst, tempA]\n )),\n changeResponder(JSCompiler_temp, depthA))\n : ((JSCompiler_temp = ResponderSyntheticEvent.getPooled(\n eventTypes$1.responderReject,\n JSCompiler_temp,\n nativeEvent,\n nativeEventTarget\n )),\n (JSCompiler_temp.touchHistory =\n ResponderTouchHistoryStore.touchHistory),\n forEachAccumulated(\n JSCompiler_temp,\n accumulateDirectDispatchesSingle\n ),\n (JSCompiler_temp$jscomp$0 = accumulate(\n JSCompiler_temp$jscomp$0,\n JSCompiler_temp\n ))))\n : ((JSCompiler_temp$jscomp$0 = accumulate(\n JSCompiler_temp$jscomp$0,\n targetInst\n )),\n changeResponder(JSCompiler_temp, depthA)),\n (JSCompiler_temp = JSCompiler_temp$jscomp$0))\n : (JSCompiler_temp = null);\n } else JSCompiler_temp = null;\n JSCompiler_temp$jscomp$0 = responderInst && isStartish(topLevelType);\n targetInst = responderInst && isMoveish(topLevelType);\n depthA =\n responderInst &&\n (\"topTouchEnd\" === topLevelType || \"topTouchCancel\" === topLevelType);\n if (\n (JSCompiler_temp$jscomp$0 = JSCompiler_temp$jscomp$0\n ? eventTypes$1.responderStart\n : targetInst\n ? eventTypes$1.responderMove\n : depthA\n ? eventTypes$1.responderEnd\n : null)\n )\n (JSCompiler_temp$jscomp$0 = ResponderSyntheticEvent.getPooled(\n JSCompiler_temp$jscomp$0,\n responderInst,\n nativeEvent,\n nativeEventTarget\n )),\n (JSCompiler_temp$jscomp$0.touchHistory =\n ResponderTouchHistoryStore.touchHistory),\n forEachAccumulated(\n JSCompiler_temp$jscomp$0,\n accumulateDirectDispatchesSingle\n ),\n (JSCompiler_temp = accumulate(\n JSCompiler_temp,\n JSCompiler_temp$jscomp$0\n ));\n JSCompiler_temp$jscomp$0 =\n responderInst && \"topTouchCancel\" === topLevelType;\n if (\n (topLevelType =\n responderInst &&\n !JSCompiler_temp$jscomp$0 &&\n (\"topTouchEnd\" === topLevelType || \"topTouchCancel\" === topLevelType))\n )\n a: {\n if ((topLevelType = nativeEvent.touches) && 0 !== topLevelType.length)\n for (targetInst = 0; targetInst < topLevelType.length; targetInst++)\n if (\n ((depthA = topLevelType[targetInst].target),\n null !== depthA && void 0 !== depthA && 0 !== depthA)\n ) {\n tempA = getInstanceFromNode(depthA);\n b: {\n for (depthA = responderInst; tempA; ) {\n if (depthA === tempA || depthA === tempA.alternate) {\n depthA = !0;\n break b;\n }\n tempA = getParent(tempA);\n }\n depthA = !1;\n }\n if (depthA) {\n topLevelType = !1;\n break a;\n }\n }\n topLevelType = !0;\n }\n if (\n (topLevelType = JSCompiler_temp$jscomp$0\n ? eventTypes$1.responderTerminate\n : topLevelType\n ? eventTypes$1.responderRelease\n : null)\n )\n (nativeEvent = ResponderSyntheticEvent.getPooled(\n topLevelType,\n responderInst,\n nativeEvent,\n nativeEventTarget\n )),\n (nativeEvent.touchHistory = ResponderTouchHistoryStore.touchHistory),\n forEachAccumulated(nativeEvent, accumulateDirectDispatchesSingle),\n (JSCompiler_temp = accumulate(JSCompiler_temp, nativeEvent)),\n changeResponder(null);\n return JSCompiler_temp;\n },\n GlobalResponderHandler: null,\n injection: {\n injectGlobalResponderHandler: function(GlobalResponderHandler) {\n ResponderEventPlugin.GlobalResponderHandler = GlobalResponderHandler;\n }\n }\n },\n customBubblingEventTypes$1 =\n ReactNativeViewConfigRegistry.customBubblingEventTypes,\n customDirectEventTypes$1 =\n ReactNativeViewConfigRegistry.customDirectEventTypes,\n ReactNativeBridgeEventPlugin = {\n eventTypes: ReactNativeViewConfigRegistry.eventTypes,\n extractEvents: function(\n topLevelType,\n targetInst,\n nativeEvent,\n nativeEventTarget\n ) {\n if (null == targetInst) return null;\n var bubbleDispatchConfig = customBubblingEventTypes$1[topLevelType],\n directDispatchConfig = customDirectEventTypes$1[topLevelType];\n invariant(\n bubbleDispatchConfig || directDispatchConfig,\n 'Unsupported top level event type \"%s\" dispatched',\n topLevelType\n );\n topLevelType = SyntheticEvent.getPooled(\n bubbleDispatchConfig || directDispatchConfig,\n targetInst,\n nativeEvent,\n nativeEventTarget\n );\n if (bubbleDispatchConfig)\n forEachAccumulated(topLevelType, accumulateTwoPhaseDispatchesSingle);\n else if (directDispatchConfig)\n forEachAccumulated(topLevelType, accumulateDirectDispatchesSingle);\n else return null;\n return topLevelType;\n }\n };\ninjection.injectEventPluginOrder([\n \"ResponderEventPlugin\",\n \"ReactNativeBridgeEventPlugin\"\n]);\ninjection.injectEventPluginsByName({\n ResponderEventPlugin: ResponderEventPlugin,\n ReactNativeBridgeEventPlugin: ReactNativeBridgeEventPlugin\n});\nfunction getInstanceFromInstance(instanceHandle) {\n return instanceHandle;\n}\ngetFiberCurrentPropsFromNode = function(inst) {\n return inst.canonical.currentProps;\n};\ngetInstanceFromNode = getInstanceFromInstance;\ngetNodeFromInstance = function(inst) {\n inst = inst.stateNode.canonical._nativeTag;\n invariant(inst, \"All native instances should have a tag.\");\n return inst;\n};\nResponderEventPlugin.injection.injectGlobalResponderHandler({\n onChange: function(from, to, blockNativeResponder) {\n null !== to\n ? UIManager.setJSResponder(\n to.stateNode.canonical._nativeTag,\n blockNativeResponder\n )\n : UIManager.clearJSResponder();\n }\n});\nvar ReactSharedInternals =\n React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,\n hasSymbol = \"function\" === typeof Symbol && Symbol.for,\n REACT_ELEMENT_TYPE = hasSymbol ? Symbol.for(\"react.element\") : 60103,\n REACT_PORTAL_TYPE = hasSymbol ? Symbol.for(\"react.portal\") : 60106,\n REACT_FRAGMENT_TYPE = hasSymbol ? Symbol.for(\"react.fragment\") : 60107,\n REACT_STRICT_MODE_TYPE = hasSymbol ? Symbol.for(\"react.strict_mode\") : 60108,\n REACT_PROFILER_TYPE = hasSymbol ? Symbol.for(\"react.profiler\") : 60114,\n REACT_PROVIDER_TYPE = hasSymbol ? Symbol.for(\"react.provider\") : 60109,\n REACT_CONTEXT_TYPE = hasSymbol ? Symbol.for(\"react.context\") : 60110,\n REACT_CONCURRENT_MODE_TYPE = hasSymbol\n ? Symbol.for(\"react.concurrent_mode\")\n : 60111,\n REACT_FORWARD_REF_TYPE = hasSymbol ? Symbol.for(\"react.forward_ref\") : 60112,\n REACT_SUSPENSE_TYPE = hasSymbol ? Symbol.for(\"react.suspense\") : 60113,\n REACT_MEMO_TYPE = hasSymbol ? Symbol.for(\"react.memo\") : 60115,\n REACT_LAZY_TYPE = hasSymbol ? Symbol.for(\"react.lazy\") : 60116,\n MAYBE_ITERATOR_SYMBOL = \"function\" === typeof Symbol && Symbol.iterator;\nfunction getIteratorFn(maybeIterable) {\n if (null === maybeIterable || \"object\" !== typeof maybeIterable) return null;\n maybeIterable =\n (MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL]) ||\n maybeIterable[\"@@iterator\"];\n return \"function\" === typeof maybeIterable ? maybeIterable : null;\n}\nfunction getComponentName(type) {\n if (null == type) return null;\n if (\"function\" === typeof type) return type.displayName || type.name || null;\n if (\"string\" === typeof type) return type;\n switch (type) {\n case REACT_CONCURRENT_MODE_TYPE:\n return \"ConcurrentMode\";\n case REACT_FRAGMENT_TYPE:\n return \"Fragment\";\n case REACT_PORTAL_TYPE:\n return \"Portal\";\n case REACT_PROFILER_TYPE:\n return \"Profiler\";\n case REACT_STRICT_MODE_TYPE:\n return \"StrictMode\";\n case REACT_SUSPENSE_TYPE:\n return \"Suspense\";\n }\n if (\"object\" === typeof type)\n switch (type.$$typeof) {\n case REACT_CONTEXT_TYPE:\n return \"Context.Consumer\";\n case REACT_PROVIDER_TYPE:\n return \"Context.Provider\";\n case REACT_FORWARD_REF_TYPE:\n var innerType = type.render;\n innerType = innerType.displayName || innerType.name || \"\";\n return (\n type.displayName ||\n (\"\" !== innerType ? \"ForwardRef(\" + innerType + \")\" : \"ForwardRef\")\n );\n case REACT_MEMO_TYPE:\n return getComponentName(type.type);\n case REACT_LAZY_TYPE:\n if ((type = 1 === type._status ? type._result : null))\n return getComponentName(type);\n }\n return null;\n}\nfunction isFiberMountedImpl(fiber) {\n var node = fiber;\n if (fiber.alternate) for (; node.return; ) node = node.return;\n else {\n if (0 !== (node.effectTag & 2)) return 1;\n for (; node.return; )\n if (((node = node.return), 0 !== (node.effectTag & 2))) return 1;\n }\n return 3 === node.tag ? 2 : 3;\n}\nfunction assertIsMounted(fiber) {\n invariant(\n 2 === isFiberMountedImpl(fiber),\n \"Unable to find node on an unmounted component.\"\n );\n}\nfunction findCurrentFiberUsingSlowPath(fiber) {\n var alternate = fiber.alternate;\n if (!alternate)\n return (\n (alternate = isFiberMountedImpl(fiber)),\n invariant(\n 3 !== alternate,\n \"Unable to find node on an unmounted component.\"\n ),\n 1 === alternate ? null : fiber\n );\n for (var a = fiber, b = alternate; ; ) {\n var parentA = a.return,\n parentB = parentA ? parentA.alternate : null;\n if (!parentA || !parentB) break;\n if (parentA.child === parentB.child) {\n for (var child = parentA.child; child; ) {\n if (child === a) return assertIsMounted(parentA), fiber;\n if (child === b) return assertIsMounted(parentA), alternate;\n child = child.sibling;\n }\n invariant(!1, \"Unable to find node on an unmounted component.\");\n }\n if (a.return !== b.return) (a = parentA), (b = parentB);\n else {\n child = !1;\n for (var _child = parentA.child; _child; ) {\n if (_child === a) {\n child = !0;\n a = parentA;\n b = parentB;\n break;\n }\n if (_child === b) {\n child = !0;\n b = parentA;\n a = parentB;\n break;\n }\n _child = _child.sibling;\n }\n if (!child) {\n for (_child = parentB.child; _child; ) {\n if (_child === a) {\n child = !0;\n a = parentB;\n b = parentA;\n break;\n }\n if (_child === b) {\n child = !0;\n b = parentB;\n a = parentA;\n break;\n }\n _child = _child.sibling;\n }\n invariant(\n child,\n \"Child was not found in either parent set. This indicates a bug in React related to the return pointer. Please file an issue.\"\n );\n }\n }\n invariant(\n a.alternate === b,\n \"Return fibers should always be each others' alternates. This error is likely caused by a bug in React. Please file an issue.\"\n );\n }\n invariant(3 === a.tag, \"Unable to find node on an unmounted component.\");\n return a.stateNode.current === a ? fiber : alternate;\n}\nfunction findCurrentHostFiber(parent) {\n parent = findCurrentFiberUsingSlowPath(parent);\n if (!parent) return null;\n for (var node = parent; ; ) {\n if (5 === node.tag || 6 === node.tag) return node;\n if (node.child) (node.child.return = node), (node = node.child);\n else {\n if (node === parent) break;\n for (; !node.sibling; ) {\n if (!node.return || node.return === parent) return null;\n node = node.return;\n }\n node.sibling.return = node.return;\n node = node.sibling;\n }\n }\n return null;\n}\nfunction mountSafeCallback_NOT_REALLY_SAFE(context, callback) {\n return function() {\n if (\n callback &&\n (\"boolean\" !== typeof context.__isMounted || context.__isMounted)\n )\n return callback.apply(context, arguments);\n };\n}\nvar emptyObject = {},\n removedKeys = null,\n removedKeyCount = 0;\nfunction restoreDeletedValuesInNestedArray(\n updatePayload,\n node,\n validAttributes\n) {\n if (Array.isArray(node))\n for (var i = node.length; i-- && 0 < removedKeyCount; )\n restoreDeletedValuesInNestedArray(\n updatePayload,\n node[i],\n validAttributes\n );\n else if (node && 0 < removedKeyCount)\n for (i in removedKeys)\n if (removedKeys[i]) {\n var nextProp = node[i];\n if (void 0 !== nextProp) {\n var attributeConfig = validAttributes[i];\n if (attributeConfig) {\n \"function\" === typeof nextProp && (nextProp = !0);\n \"undefined\" === typeof nextProp && (nextProp = null);\n if (\"object\" !== typeof attributeConfig)\n updatePayload[i] = nextProp;\n else if (\n \"function\" === typeof attributeConfig.diff ||\n \"function\" === typeof attributeConfig.process\n )\n (nextProp =\n \"function\" === typeof attributeConfig.process\n ? attributeConfig.process(nextProp)\n : nextProp),\n (updatePayload[i] = nextProp);\n removedKeys[i] = !1;\n removedKeyCount--;\n }\n }\n }\n}\nfunction diffNestedProperty(\n updatePayload,\n prevProp,\n nextProp,\n validAttributes\n) {\n if (!updatePayload && prevProp === nextProp) return updatePayload;\n if (!prevProp || !nextProp)\n return nextProp\n ? addNestedProperty(updatePayload, nextProp, validAttributes)\n : prevProp\n ? clearNestedProperty(updatePayload, prevProp, validAttributes)\n : updatePayload;\n if (!Array.isArray(prevProp) && !Array.isArray(nextProp))\n return diffProperties(updatePayload, prevProp, nextProp, validAttributes);\n if (Array.isArray(prevProp) && Array.isArray(nextProp)) {\n var minLength =\n prevProp.length < nextProp.length ? prevProp.length : nextProp.length,\n i;\n for (i = 0; i < minLength; i++)\n updatePayload = diffNestedProperty(\n updatePayload,\n prevProp[i],\n nextProp[i],\n validAttributes\n );\n for (; i < prevProp.length; i++)\n updatePayload = clearNestedProperty(\n updatePayload,\n prevProp[i],\n validAttributes\n );\n for (; i < nextProp.length; i++)\n updatePayload = addNestedProperty(\n updatePayload,\n nextProp[i],\n validAttributes\n );\n return updatePayload;\n }\n return Array.isArray(prevProp)\n ? diffProperties(\n updatePayload,\n flattenStyle(prevProp),\n nextProp,\n validAttributes\n )\n : diffProperties(\n updatePayload,\n prevProp,\n flattenStyle(nextProp),\n validAttributes\n );\n}\nfunction addNestedProperty(updatePayload, nextProp, validAttributes) {\n if (!nextProp) return updatePayload;\n if (!Array.isArray(nextProp))\n return diffProperties(\n updatePayload,\n emptyObject,\n nextProp,\n validAttributes\n );\n for (var i = 0; i < nextProp.length; i++)\n updatePayload = addNestedProperty(\n updatePayload,\n nextProp[i],\n validAttributes\n );\n return updatePayload;\n}\nfunction clearNestedProperty(updatePayload, prevProp, validAttributes) {\n if (!prevProp) return updatePayload;\n if (!Array.isArray(prevProp))\n return diffProperties(\n updatePayload,\n prevProp,\n emptyObject,\n validAttributes\n );\n for (var i = 0; i < prevProp.length; i++)\n updatePayload = clearNestedProperty(\n updatePayload,\n prevProp[i],\n validAttributes\n );\n return updatePayload;\n}\nfunction diffProperties(updatePayload, prevProps, nextProps, validAttributes) {\n var attributeConfig, propKey;\n for (propKey in nextProps)\n if ((attributeConfig = validAttributes[propKey])) {\n var prevProp = prevProps[propKey];\n var nextProp = nextProps[propKey];\n \"function\" === typeof nextProp &&\n ((nextProp = !0), \"function\" === typeof prevProp && (prevProp = !0));\n \"undefined\" === typeof nextProp &&\n ((nextProp = null),\n \"undefined\" === typeof prevProp && (prevProp = null));\n removedKeys && (removedKeys[propKey] = !1);\n if (updatePayload && void 0 !== updatePayload[propKey])\n if (\"object\" !== typeof attributeConfig)\n updatePayload[propKey] = nextProp;\n else {\n if (\n \"function\" === typeof attributeConfig.diff ||\n \"function\" === typeof attributeConfig.process\n )\n (attributeConfig =\n \"function\" === typeof attributeConfig.process\n ? attributeConfig.process(nextProp)\n : nextProp),\n (updatePayload[propKey] = attributeConfig);\n }\n else if (prevProp !== nextProp)\n if (\"object\" !== typeof attributeConfig)\n (\"object\" !== typeof nextProp ||\n null === nextProp ||\n deepDiffer(prevProp, nextProp)) &&\n ((updatePayload || (updatePayload = {}))[propKey] = nextProp);\n else if (\n \"function\" === typeof attributeConfig.diff ||\n \"function\" === typeof attributeConfig.process\n ) {\n if (\n void 0 === prevProp ||\n (\"function\" === typeof attributeConfig.diff\n ? attributeConfig.diff(prevProp, nextProp)\n : \"object\" !== typeof nextProp ||\n null === nextProp ||\n deepDiffer(prevProp, nextProp))\n )\n (attributeConfig =\n \"function\" === typeof attributeConfig.process\n ? attributeConfig.process(nextProp)\n : nextProp),\n ((updatePayload || (updatePayload = {}))[\n propKey\n ] = attributeConfig);\n } else\n (removedKeys = null),\n (removedKeyCount = 0),\n (updatePayload = diffNestedProperty(\n updatePayload,\n prevProp,\n nextProp,\n attributeConfig\n )),\n 0 < removedKeyCount &&\n updatePayload &&\n (restoreDeletedValuesInNestedArray(\n updatePayload,\n nextProp,\n attributeConfig\n ),\n (removedKeys = null));\n }\n for (var _propKey in prevProps)\n void 0 === nextProps[_propKey] &&\n (!(attributeConfig = validAttributes[_propKey]) ||\n (updatePayload && void 0 !== updatePayload[_propKey]) ||\n ((prevProp = prevProps[_propKey]),\n void 0 !== prevProp &&\n (\"object\" !== typeof attributeConfig ||\n \"function\" === typeof attributeConfig.diff ||\n \"function\" === typeof attributeConfig.process\n ? (((updatePayload || (updatePayload = {}))[_propKey] = null),\n removedKeys || (removedKeys = {}),\n removedKeys[_propKey] ||\n ((removedKeys[_propKey] = !0), removedKeyCount++))\n : (updatePayload = clearNestedProperty(\n updatePayload,\n prevProp,\n attributeConfig\n )))));\n return updatePayload;\n}\nvar now$1 =\n \"object\" === typeof performance && \"function\" === typeof performance.now\n ? function() {\n return performance.now();\n }\n : function() {\n return Date.now();\n },\n scheduledCallback = null,\n frameDeadline = 0;\nfunction setTimeoutCallback() {\n frameDeadline = now$1() + 5;\n var callback = scheduledCallback;\n scheduledCallback = null;\n null !== callback && callback();\n}\nvar restoreTarget = null,\n restoreQueue = null;\nfunction restoreStateOfTarget(target) {\n if ((target = getInstanceFromNode(target))) {\n invariant(\n !1,\n \"setRestoreImplementation() needs to be called to handle a target for controlled events. This error is likely caused by a bug in React. Please file an issue.\"\n );\n var props = getFiberCurrentPropsFromNode(target.stateNode);\n null(target.stateNode, target.type, props);\n }\n}\nfunction _batchedUpdatesImpl(fn, bookkeeping) {\n return fn(bookkeeping);\n}\nfunction _flushInteractiveUpdatesImpl() {}\nvar isBatching = !1;\nfunction batchedUpdates(fn, bookkeeping) {\n if (isBatching) return fn(bookkeeping);\n isBatching = !0;\n try {\n return _batchedUpdatesImpl(fn, bookkeeping);\n } finally {\n if (((isBatching = !1), null !== restoreTarget || null !== restoreQueue))\n if (\n (_flushInteractiveUpdatesImpl(),\n restoreTarget &&\n ((bookkeeping = restoreTarget),\n (fn = restoreQueue),\n (restoreQueue = restoreTarget = null),\n restoreStateOfTarget(bookkeeping),\n fn))\n )\n for (bookkeeping = 0; bookkeeping < fn.length; bookkeeping++)\n restoreStateOfTarget(fn[bookkeeping]);\n }\n}\nfunction dispatchEvent(target, topLevelType, nativeEvent) {\n batchedUpdates(function() {\n var events = nativeEvent.target;\n for (var events$jscomp$0 = null, i = 0; i < plugins.length; i++) {\n var possiblePlugin = plugins[i];\n possiblePlugin &&\n (possiblePlugin = possiblePlugin.extractEvents(\n topLevelType,\n target,\n nativeEvent,\n events\n )) &&\n (events$jscomp$0 = accumulateInto(events$jscomp$0, possiblePlugin));\n }\n events = events$jscomp$0;\n null !== events && (eventQueue = accumulateInto(eventQueue, events));\n events = eventQueue;\n eventQueue = null;\n if (\n events &&\n (forEachAccumulated(events, executeDispatchesAndReleaseTopLevel),\n invariant(\n !eventQueue,\n \"processEventQueue(): Additional events were enqueued while processing an event queue. Support for this has not yet been implemented.\"\n ),\n hasRethrowError)\n )\n throw ((events = rethrowError),\n (hasRethrowError = !1),\n (rethrowError = null),\n events);\n });\n}\nfunction shim$1() {\n invariant(\n !1,\n \"The current renderer does not support hyration. This error is likely caused by a bug in React. Please file an issue.\"\n );\n}\nvar nextReactTag = 2;\nFabricUIManager.registerEventHandler &&\n FabricUIManager.registerEventHandler(dispatchEvent);\nvar ReactFabricHostComponent = (function() {\n function ReactFabricHostComponent(tag, viewConfig, props) {\n if (!(this instanceof ReactFabricHostComponent))\n throw new TypeError(\"Cannot call a class as a function\");\n this._nativeTag = tag;\n this.viewConfig = viewConfig;\n this.currentProps = props;\n }\n ReactFabricHostComponent.prototype.blur = function() {\n TextInputState.blurTextInput(this._nativeTag);\n };\n ReactFabricHostComponent.prototype.focus = function() {\n TextInputState.focusTextInput(this._nativeTag);\n };\n ReactFabricHostComponent.prototype.measure = function(callback) {\n UIManager.measure(\n this._nativeTag,\n mountSafeCallback_NOT_REALLY_SAFE(this, callback)\n );\n };\n ReactFabricHostComponent.prototype.measureInWindow = function(callback) {\n UIManager.measureInWindow(\n this._nativeTag,\n mountSafeCallback_NOT_REALLY_SAFE(this, callback)\n );\n };\n ReactFabricHostComponent.prototype.measureLayout = function(\n relativeToNativeNode,\n onSuccess,\n onFail\n ) {\n UIManager.measureLayout(\n this._nativeTag,\n relativeToNativeNode,\n mountSafeCallback_NOT_REALLY_SAFE(this, onFail),\n mountSafeCallback_NOT_REALLY_SAFE(this, onSuccess)\n );\n };\n ReactFabricHostComponent.prototype.setNativeProps = function(nativeProps) {\n nativeProps = diffProperties(\n null,\n emptyObject,\n nativeProps,\n this.viewConfig.validAttributes\n );\n null != nativeProps &&\n UIManager.updateView(\n this._nativeTag,\n this.viewConfig.uiViewClassName,\n nativeProps\n );\n };\n return ReactFabricHostComponent;\n})();\nfunction createTextInstance(\n text,\n rootContainerInstance,\n hostContext,\n internalInstanceHandle\n) {\n invariant(\n hostContext.isInAParentText,\n \"Text strings must be rendered within a component.\"\n );\n hostContext = nextReactTag;\n nextReactTag += 2;\n return {\n node: FabricUIManager.createNode(\n hostContext,\n \"RCTRawText\",\n rootContainerInstance,\n { text: text },\n internalInstanceHandle\n )\n };\n}\nvar scheduleTimeout = setTimeout,\n cancelTimeout = clearTimeout;\nfunction cloneHiddenInstance(instance) {\n var node = instance.node;\n var updatePayload = diffProperties(\n null,\n emptyObject,\n { style: { display: \"none\" } },\n instance.canonical.viewConfig.validAttributes\n );\n return {\n node: FabricUIManager.cloneNodeWithNewProps(node, updatePayload),\n canonical: instance.canonical\n };\n}\nfunction cloneUnhiddenInstance(instance, type, props) {\n var viewConfig = instance.canonical.viewConfig;\n type = instance.node;\n var prevProps = Object.assign({}, props, {\n style: [props.style, { display: \"none\" }]\n });\n props = diffProperties(null, prevProps, props, viewConfig.validAttributes);\n return {\n node: FabricUIManager.cloneNodeWithNewProps(type, props),\n canonical: instance.canonical\n };\n}\nvar BEFORE_SLASH_RE = /^(.*)[\\\\\\/]/;\nfunction getStackByFiberInDevAndProd(workInProgress) {\n var info = \"\";\n do {\n a: switch (workInProgress.tag) {\n case 2:\n case 16:\n case 0:\n case 1:\n case 5:\n case 8:\n case 13:\n var owner = workInProgress._debugOwner,\n source = workInProgress._debugSource,\n name = getComponentName(workInProgress.type);\n var JSCompiler_inline_result = null;\n owner && (JSCompiler_inline_result = getComponentName(owner.type));\n owner = name;\n name = \"\";\n source\n ? (name =\n \" (at \" +\n source.fileName.replace(BEFORE_SLASH_RE, \"\") +\n \":\" +\n source.lineNumber +\n \")\")\n : JSCompiler_inline_result &&\n (name = \" (created by \" + JSCompiler_inline_result + \")\");\n JSCompiler_inline_result = \"\\n in \" + (owner || \"Unknown\") + name;\n break a;\n default:\n JSCompiler_inline_result = \"\";\n }\n info += JSCompiler_inline_result;\n workInProgress = workInProgress.return;\n } while (workInProgress);\n return info;\n}\nnew Set();\nvar valueStack = [],\n index = -1;\nfunction pop(cursor) {\n 0 > index ||\n ((cursor.current = valueStack[index]), (valueStack[index] = null), index--);\n}\nfunction push(cursor, value) {\n index++;\n valueStack[index] = cursor.current;\n cursor.current = value;\n}\nvar emptyContextObject = {},\n contextStackCursor = { current: emptyContextObject },\n didPerformWorkStackCursor = { current: !1 },\n previousContext = emptyContextObject;\nfunction getMaskedContext(workInProgress, unmaskedContext) {\n var contextTypes = workInProgress.type.contextTypes;\n if (!contextTypes) return emptyContextObject;\n var instance = workInProgress.stateNode;\n if (\n instance &&\n instance.__reactInternalMemoizedUnmaskedChildContext === unmaskedContext\n )\n return instance.__reactInternalMemoizedMaskedChildContext;\n var context = {},\n key;\n for (key in contextTypes) context[key] = unmaskedContext[key];\n instance &&\n ((workInProgress = workInProgress.stateNode),\n (workInProgress.__reactInternalMemoizedUnmaskedChildContext = unmaskedContext),\n (workInProgress.__reactInternalMemoizedMaskedChildContext = context));\n return context;\n}\nfunction isContextProvider(type) {\n type = type.childContextTypes;\n return null !== type && void 0 !== type;\n}\nfunction popContext(fiber) {\n pop(didPerformWorkStackCursor, fiber);\n pop(contextStackCursor, fiber);\n}\nfunction popTopLevelContextObject(fiber) {\n pop(didPerformWorkStackCursor, fiber);\n pop(contextStackCursor, fiber);\n}\nfunction pushTopLevelContextObject(fiber, context, didChange) {\n invariant(\n contextStackCursor.current === emptyContextObject,\n \"Unexpected context found on stack. This error is likely caused by a bug in React. Please file an issue.\"\n );\n push(contextStackCursor, context, fiber);\n push(didPerformWorkStackCursor, didChange, fiber);\n}\nfunction processChildContext(fiber, type, parentContext) {\n var instance = fiber.stateNode;\n fiber = type.childContextTypes;\n if (\"function\" !== typeof instance.getChildContext) return parentContext;\n instance = instance.getChildContext();\n for (var contextKey in instance)\n invariant(\n contextKey in fiber,\n '%s.getChildContext(): key \"%s\" is not defined in childContextTypes.',\n getComponentName(type) || \"Unknown\",\n contextKey\n );\n return Object.assign({}, parentContext, instance);\n}\nfunction pushContextProvider(workInProgress) {\n var instance = workInProgress.stateNode;\n instance =\n (instance && instance.__reactInternalMemoizedMergedChildContext) ||\n emptyContextObject;\n previousContext = contextStackCursor.current;\n push(contextStackCursor, instance, workInProgress);\n push(\n didPerformWorkStackCursor,\n didPerformWorkStackCursor.current,\n workInProgress\n );\n return !0;\n}\nfunction invalidateContextProvider(workInProgress, type, didChange) {\n var instance = workInProgress.stateNode;\n invariant(\n instance,\n \"Expected to have an instance by this point. This error is likely caused by a bug in React. Please file an issue.\"\n );\n didChange\n ? ((type = processChildContext(workInProgress, type, previousContext)),\n (instance.__reactInternalMemoizedMergedChildContext = type),\n pop(didPerformWorkStackCursor, workInProgress),\n pop(contextStackCursor, workInProgress),\n push(contextStackCursor, type, workInProgress))\n : pop(didPerformWorkStackCursor, workInProgress);\n push(didPerformWorkStackCursor, didChange, workInProgress);\n}\nvar onCommitFiberRoot = null,\n onCommitFiberUnmount = null;\nfunction catchErrors(fn) {\n return function(arg) {\n try {\n return fn(arg);\n } catch (err) {}\n };\n}\nfunction injectInternals(internals) {\n if (\"undefined\" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) return !1;\n var hook = __REACT_DEVTOOLS_GLOBAL_HOOK__;\n if (hook.isDisabled || !hook.supportsFiber) return !0;\n try {\n var rendererID = hook.inject(internals);\n onCommitFiberRoot = catchErrors(function(root) {\n return hook.onCommitFiberRoot(rendererID, root);\n });\n onCommitFiberUnmount = catchErrors(function(fiber) {\n return hook.onCommitFiberUnmount(rendererID, fiber);\n });\n } catch (err) {}\n return !0;\n}\nfunction FiberNode(tag, pendingProps, key, mode) {\n this.tag = tag;\n this.key = key;\n this.sibling = this.child = this.return = this.stateNode = this.type = this.elementType = null;\n this.index = 0;\n this.ref = null;\n this.pendingProps = pendingProps;\n this.firstContextDependency = this.memoizedState = this.updateQueue = this.memoizedProps = null;\n this.mode = mode;\n this.effectTag = 0;\n this.lastEffect = this.firstEffect = this.nextEffect = null;\n this.childExpirationTime = this.expirationTime = 0;\n this.alternate = null;\n}\nfunction createFiber(tag, pendingProps, key, mode) {\n return new FiberNode(tag, pendingProps, key, mode);\n}\nfunction shouldConstruct(Component) {\n Component = Component.prototype;\n return !(!Component || !Component.isReactComponent);\n}\nfunction resolveLazyComponentTag(Component) {\n if (\"function\" === typeof Component)\n return shouldConstruct(Component) ? 1 : 0;\n if (void 0 !== Component && null !== Component) {\n Component = Component.$$typeof;\n if (Component === REACT_FORWARD_REF_TYPE) return 11;\n if (Component === REACT_MEMO_TYPE) return 14;\n }\n return 2;\n}\nfunction createWorkInProgress(current, pendingProps) {\n var workInProgress = current.alternate;\n null === workInProgress\n ? ((workInProgress = createFiber(\n current.tag,\n pendingProps,\n current.key,\n current.mode\n )),\n (workInProgress.elementType = current.elementType),\n (workInProgress.type = current.type),\n (workInProgress.stateNode = current.stateNode),\n (workInProgress.alternate = current),\n (current.alternate = workInProgress))\n : ((workInProgress.pendingProps = pendingProps),\n (workInProgress.effectTag = 0),\n (workInProgress.nextEffect = null),\n (workInProgress.firstEffect = null),\n (workInProgress.lastEffect = null));\n workInProgress.childExpirationTime = current.childExpirationTime;\n workInProgress.expirationTime = current.expirationTime;\n workInProgress.child = current.child;\n workInProgress.memoizedProps = current.memoizedProps;\n workInProgress.memoizedState = current.memoizedState;\n workInProgress.updateQueue = current.updateQueue;\n workInProgress.firstContextDependency = current.firstContextDependency;\n workInProgress.sibling = current.sibling;\n workInProgress.index = current.index;\n workInProgress.ref = current.ref;\n return workInProgress;\n}\nfunction createFiberFromTypeAndProps(\n type,\n key,\n pendingProps,\n owner,\n mode,\n expirationTime\n) {\n var fiberTag = 2;\n owner = type;\n if (\"function\" === typeof type) shouldConstruct(type) && (fiberTag = 1);\n else if (\"string\" === typeof type) fiberTag = 5;\n else\n a: switch (type) {\n case REACT_FRAGMENT_TYPE:\n return createFiberFromFragment(\n pendingProps.children,\n mode,\n expirationTime,\n key\n );\n case REACT_CONCURRENT_MODE_TYPE:\n return createFiberFromMode(pendingProps, mode | 3, expirationTime, key);\n case REACT_STRICT_MODE_TYPE:\n return createFiberFromMode(pendingProps, mode | 2, expirationTime, key);\n case REACT_PROFILER_TYPE:\n return (\n (type = createFiber(12, pendingProps, key, mode | 4)),\n (type.elementType = REACT_PROFILER_TYPE),\n (type.type = REACT_PROFILER_TYPE),\n (type.expirationTime = expirationTime),\n type\n );\n case REACT_SUSPENSE_TYPE:\n return (\n (type = createFiber(13, pendingProps, key, mode)),\n (type.elementType = REACT_SUSPENSE_TYPE),\n (type.type = REACT_SUSPENSE_TYPE),\n (type.expirationTime = expirationTime),\n type\n );\n default:\n if (\"object\" === typeof type && null !== type)\n switch (type.$$typeof) {\n case REACT_PROVIDER_TYPE:\n fiberTag = 10;\n break a;\n case REACT_CONTEXT_TYPE:\n fiberTag = 9;\n break a;\n case REACT_FORWARD_REF_TYPE:\n fiberTag = 11;\n break a;\n case REACT_MEMO_TYPE:\n fiberTag = 14;\n break a;\n case REACT_LAZY_TYPE:\n fiberTag = 16;\n owner = null;\n break a;\n }\n invariant(\n !1,\n \"Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s\",\n null == type ? type : typeof type,\n \"\"\n );\n }\n key = createFiber(fiberTag, pendingProps, key, mode);\n key.elementType = type;\n key.type = owner;\n key.expirationTime = expirationTime;\n return key;\n}\nfunction createFiberFromFragment(elements, mode, expirationTime, key) {\n elements = createFiber(7, elements, key, mode);\n elements.expirationTime = expirationTime;\n return elements;\n}\nfunction createFiberFromMode(pendingProps, mode, expirationTime, key) {\n pendingProps = createFiber(8, pendingProps, key, mode);\n mode = 0 === (mode & 1) ? REACT_STRICT_MODE_TYPE : REACT_CONCURRENT_MODE_TYPE;\n pendingProps.elementType = mode;\n pendingProps.type = mode;\n pendingProps.expirationTime = expirationTime;\n return pendingProps;\n}\nfunction createFiberFromText(content, mode, expirationTime) {\n content = createFiber(6, content, null, mode);\n content.expirationTime = expirationTime;\n return content;\n}\nfunction createFiberFromPortal(portal, mode, expirationTime) {\n mode = createFiber(\n 4,\n null !== portal.children ? portal.children : [],\n portal.key,\n mode\n );\n mode.expirationTime = expirationTime;\n mode.stateNode = {\n containerInfo: portal.containerInfo,\n pendingChildren: null,\n implementation: portal.implementation\n };\n return mode;\n}\nfunction markPendingPriorityLevel(root, expirationTime) {\n root.didError = !1;\n var earliestPendingTime = root.earliestPendingTime;\n 0 === earliestPendingTime\n ? (root.earliestPendingTime = root.latestPendingTime = expirationTime)\n : earliestPendingTime < expirationTime\n ? (root.earliestPendingTime = expirationTime)\n : root.latestPendingTime > expirationTime &&\n (root.latestPendingTime = expirationTime);\n findNextExpirationTimeToWorkOn(expirationTime, root);\n}\nfunction markSuspendedPriorityLevel(root, suspendedTime) {\n root.didError = !1;\n var latestPingedTime = root.latestPingedTime;\n 0 !== latestPingedTime &&\n latestPingedTime >= suspendedTime &&\n (root.latestPingedTime = 0);\n latestPingedTime = root.earliestPendingTime;\n var latestPendingTime = root.latestPendingTime;\n latestPingedTime === suspendedTime\n ? (root.earliestPendingTime =\n latestPendingTime === suspendedTime\n ? (root.latestPendingTime = 0)\n : latestPendingTime)\n : latestPendingTime === suspendedTime &&\n (root.latestPendingTime = latestPingedTime);\n latestPingedTime = root.earliestSuspendedTime;\n latestPendingTime = root.latestSuspendedTime;\n 0 === latestPingedTime\n ? (root.earliestSuspendedTime = root.latestSuspendedTime = suspendedTime)\n : latestPingedTime < suspendedTime\n ? (root.earliestSuspendedTime = suspendedTime)\n : latestPendingTime > suspendedTime &&\n (root.latestSuspendedTime = suspendedTime);\n findNextExpirationTimeToWorkOn(suspendedTime, root);\n}\nfunction findEarliestOutstandingPriorityLevel(root, renderExpirationTime) {\n var earliestPendingTime = root.earliestPendingTime;\n root = root.earliestSuspendedTime;\n earliestPendingTime > renderExpirationTime &&\n (renderExpirationTime = earliestPendingTime);\n root > renderExpirationTime && (renderExpirationTime = root);\n return renderExpirationTime;\n}\nfunction findNextExpirationTimeToWorkOn(completedExpirationTime, root) {\n var earliestSuspendedTime = root.earliestSuspendedTime,\n latestSuspendedTime = root.latestSuspendedTime,\n earliestPendingTime = root.earliestPendingTime,\n latestPingedTime = root.latestPingedTime;\n earliestPendingTime =\n 0 !== earliestPendingTime ? earliestPendingTime : latestPingedTime;\n 0 === earliestPendingTime &&\n (0 === completedExpirationTime ||\n latestSuspendedTime < completedExpirationTime) &&\n (earliestPendingTime = latestSuspendedTime);\n completedExpirationTime = earliestPendingTime;\n 0 !== completedExpirationTime &&\n earliestSuspendedTime > completedExpirationTime &&\n (completedExpirationTime = earliestSuspendedTime);\n root.nextExpirationTimeToWorkOn = earliestPendingTime;\n root.expirationTime = completedExpirationTime;\n}\nvar hasForceUpdate = !1;\nfunction createUpdateQueue(baseState) {\n return {\n baseState: baseState,\n firstUpdate: null,\n lastUpdate: null,\n firstCapturedUpdate: null,\n lastCapturedUpdate: null,\n firstEffect: null,\n lastEffect: null,\n firstCapturedEffect: null,\n lastCapturedEffect: null\n };\n}\nfunction cloneUpdateQueue(currentQueue) {\n return {\n baseState: currentQueue.baseState,\n firstUpdate: currentQueue.firstUpdate,\n lastUpdate: currentQueue.lastUpdate,\n firstCapturedUpdate: null,\n lastCapturedUpdate: null,\n firstEffect: null,\n lastEffect: null,\n firstCapturedEffect: null,\n lastCapturedEffect: null\n };\n}\nfunction createUpdate(expirationTime) {\n return {\n expirationTime: expirationTime,\n tag: 0,\n payload: null,\n callback: null,\n next: null,\n nextEffect: null\n };\n}\nfunction appendUpdateToQueue(queue, update) {\n null === queue.lastUpdate\n ? (queue.firstUpdate = queue.lastUpdate = update)\n : ((queue.lastUpdate.next = update), (queue.lastUpdate = update));\n}\nfunction enqueueUpdate(fiber, update) {\n var alternate = fiber.alternate;\n if (null === alternate) {\n var queue1 = fiber.updateQueue;\n var queue2 = null;\n null === queue1 &&\n (queue1 = fiber.updateQueue = createUpdateQueue(fiber.memoizedState));\n } else\n (queue1 = fiber.updateQueue),\n (queue2 = alternate.updateQueue),\n null === queue1\n ? null === queue2\n ? ((queue1 = fiber.updateQueue = createUpdateQueue(\n fiber.memoizedState\n )),\n (queue2 = alternate.updateQueue = createUpdateQueue(\n alternate.memoizedState\n )))\n : (queue1 = fiber.updateQueue = cloneUpdateQueue(queue2))\n : null === queue2 &&\n (queue2 = alternate.updateQueue = cloneUpdateQueue(queue1));\n null === queue2 || queue1 === queue2\n ? appendUpdateToQueue(queue1, update)\n : null === queue1.lastUpdate || null === queue2.lastUpdate\n ? (appendUpdateToQueue(queue1, update),\n appendUpdateToQueue(queue2, update))\n : (appendUpdateToQueue(queue1, update), (queue2.lastUpdate = update));\n}\nfunction enqueueCapturedUpdate(workInProgress, update) {\n var workInProgressQueue = workInProgress.updateQueue;\n workInProgressQueue =\n null === workInProgressQueue\n ? (workInProgress.updateQueue = createUpdateQueue(\n workInProgress.memoizedState\n ))\n : ensureWorkInProgressQueueIsAClone(workInProgress, workInProgressQueue);\n null === workInProgressQueue.lastCapturedUpdate\n ? (workInProgressQueue.firstCapturedUpdate = workInProgressQueue.lastCapturedUpdate = update)\n : ((workInProgressQueue.lastCapturedUpdate.next = update),\n (workInProgressQueue.lastCapturedUpdate = update));\n}\nfunction ensureWorkInProgressQueueIsAClone(workInProgress, queue) {\n var current = workInProgress.alternate;\n null !== current &&\n queue === current.updateQueue &&\n (queue = workInProgress.updateQueue = cloneUpdateQueue(queue));\n return queue;\n}\nfunction getStateFromUpdate(\n workInProgress,\n queue,\n update,\n prevState,\n nextProps,\n instance\n) {\n switch (update.tag) {\n case 1:\n return (\n (workInProgress = update.payload),\n \"function\" === typeof workInProgress\n ? workInProgress.call(instance, prevState, nextProps)\n : workInProgress\n );\n case 3:\n workInProgress.effectTag = (workInProgress.effectTag & -2049) | 64;\n case 0:\n workInProgress = update.payload;\n nextProps =\n \"function\" === typeof workInProgress\n ? workInProgress.call(instance, prevState, nextProps)\n : workInProgress;\n if (null === nextProps || void 0 === nextProps) break;\n return Object.assign({}, prevState, nextProps);\n case 2:\n hasForceUpdate = !0;\n }\n return prevState;\n}\nfunction processUpdateQueue(\n workInProgress,\n queue,\n props,\n instance,\n renderExpirationTime\n) {\n hasForceUpdate = !1;\n queue = ensureWorkInProgressQueueIsAClone(workInProgress, queue);\n for (\n var newBaseState = queue.baseState,\n newFirstUpdate = null,\n newExpirationTime = 0,\n update = queue.firstUpdate,\n resultState = newBaseState;\n null !== update;\n\n ) {\n var updateExpirationTime = update.expirationTime;\n updateExpirationTime < renderExpirationTime\n ? (null === newFirstUpdate &&\n ((newFirstUpdate = update), (newBaseState = resultState)),\n newExpirationTime < updateExpirationTime &&\n (newExpirationTime = updateExpirationTime))\n : ((resultState = getStateFromUpdate(\n workInProgress,\n queue,\n update,\n resultState,\n props,\n instance\n )),\n null !== update.callback &&\n ((workInProgress.effectTag |= 32),\n (update.nextEffect = null),\n null === queue.lastEffect\n ? (queue.firstEffect = queue.lastEffect = update)\n : ((queue.lastEffect.nextEffect = update),\n (queue.lastEffect = update))));\n update = update.next;\n }\n updateExpirationTime = null;\n for (update = queue.firstCapturedUpdate; null !== update; ) {\n var _updateExpirationTime = update.expirationTime;\n _updateExpirationTime < renderExpirationTime\n ? (null === updateExpirationTime &&\n ((updateExpirationTime = update),\n null === newFirstUpdate && (newBaseState = resultState)),\n newExpirationTime < _updateExpirationTime &&\n (newExpirationTime = _updateExpirationTime))\n : ((resultState = getStateFromUpdate(\n workInProgress,\n queue,\n update,\n resultState,\n props,\n instance\n )),\n null !== update.callback &&\n ((workInProgress.effectTag |= 32),\n (update.nextEffect = null),\n null === queue.lastCapturedEffect\n ? (queue.firstCapturedEffect = queue.lastCapturedEffect = update)\n : ((queue.lastCapturedEffect.nextEffect = update),\n (queue.lastCapturedEffect = update))));\n update = update.next;\n }\n null === newFirstUpdate && (queue.lastUpdate = null);\n null === updateExpirationTime\n ? (queue.lastCapturedUpdate = null)\n : (workInProgress.effectTag |= 32);\n null === newFirstUpdate &&\n null === updateExpirationTime &&\n (newBaseState = resultState);\n queue.baseState = newBaseState;\n queue.firstUpdate = newFirstUpdate;\n queue.firstCapturedUpdate = updateExpirationTime;\n workInProgress.expirationTime = newExpirationTime;\n workInProgress.memoizedState = resultState;\n}\nfunction commitUpdateQueue(finishedWork, finishedQueue, instance) {\n null !== finishedQueue.firstCapturedUpdate &&\n (null !== finishedQueue.lastUpdate &&\n ((finishedQueue.lastUpdate.next = finishedQueue.firstCapturedUpdate),\n (finishedQueue.lastUpdate = finishedQueue.lastCapturedUpdate)),\n (finishedQueue.firstCapturedUpdate = finishedQueue.lastCapturedUpdate = null));\n commitUpdateEffects(finishedQueue.firstEffect, instance);\n finishedQueue.firstEffect = finishedQueue.lastEffect = null;\n commitUpdateEffects(finishedQueue.firstCapturedEffect, instance);\n finishedQueue.firstCapturedEffect = finishedQueue.lastCapturedEffect = null;\n}\nfunction commitUpdateEffects(effect, instance) {\n for (; null !== effect; ) {\n var _callback3 = effect.callback;\n if (null !== _callback3) {\n effect.callback = null;\n var context = instance;\n invariant(\n \"function\" === typeof _callback3,\n \"Invalid argument passed as callback. Expected a function. Instead received: %s\",\n _callback3\n );\n _callback3.call(context);\n }\n effect = effect.nextEffect;\n }\n}\nfunction createCapturedValue(value, source) {\n return {\n value: value,\n source: source,\n stack: getStackByFiberInDevAndProd(source)\n };\n}\nvar valueCursor = { current: null },\n currentlyRenderingFiber = null,\n lastContextDependency = null,\n lastContextWithAllBitsObserved = null;\nfunction pushProvider(providerFiber, nextValue) {\n var context = providerFiber.type._context;\n push(valueCursor, context._currentValue2, providerFiber);\n context._currentValue2 = nextValue;\n}\nfunction popProvider(providerFiber) {\n var currentValue = valueCursor.current;\n pop(valueCursor, providerFiber);\n providerFiber.type._context._currentValue2 = currentValue;\n}\nfunction prepareToReadContext(workInProgress) {\n currentlyRenderingFiber = workInProgress;\n lastContextWithAllBitsObserved = lastContextDependency = null;\n workInProgress.firstContextDependency = null;\n}\nfunction readContext(context, observedBits) {\n if (\n lastContextWithAllBitsObserved !== context &&\n !1 !== observedBits &&\n 0 !== observedBits\n ) {\n if (\"number\" !== typeof observedBits || 1073741823 === observedBits)\n (lastContextWithAllBitsObserved = context), (observedBits = 1073741823);\n observedBits = { context: context, observedBits: observedBits, next: null };\n null === lastContextDependency\n ? (invariant(\n null !== currentlyRenderingFiber,\n \"Context can only be read while React is rendering, e.g. inside the render method or getDerivedStateFromProps.\"\n ),\n (currentlyRenderingFiber.firstContextDependency = lastContextDependency = observedBits))\n : (lastContextDependency = lastContextDependency.next = observedBits);\n }\n return context._currentValue2;\n}\nvar NO_CONTEXT = {},\n contextStackCursor$1 = { current: NO_CONTEXT },\n contextFiberStackCursor = { current: NO_CONTEXT },\n rootInstanceStackCursor = { current: NO_CONTEXT };\nfunction requiredContext(c) {\n invariant(\n c !== NO_CONTEXT,\n \"Expected host context to exist. This error is likely caused by a bug in React. Please file an issue.\"\n );\n return c;\n}\nfunction pushHostContainer(fiber, nextRootInstance) {\n push(rootInstanceStackCursor, nextRootInstance, fiber);\n push(contextFiberStackCursor, fiber, fiber);\n push(contextStackCursor$1, NO_CONTEXT, fiber);\n pop(contextStackCursor$1, fiber);\n push(contextStackCursor$1, { isInAParentText: !1 }, fiber);\n}\nfunction popHostContainer(fiber) {\n pop(contextStackCursor$1, fiber);\n pop(contextFiberStackCursor, fiber);\n pop(rootInstanceStackCursor, fiber);\n}\nfunction pushHostContext(fiber) {\n requiredContext(rootInstanceStackCursor.current);\n var context = requiredContext(contextStackCursor$1.current);\n var nextContext = fiber.type;\n nextContext =\n \"AndroidTextInput\" === nextContext ||\n \"RCTMultilineTextInputView\" === nextContext ||\n \"RCTSinglelineTextInputView\" === nextContext ||\n \"RCTText\" === nextContext ||\n \"RCTVirtualText\" === nextContext;\n nextContext =\n context.isInAParentText !== nextContext\n ? { isInAParentText: nextContext }\n : context;\n context !== nextContext &&\n (push(contextFiberStackCursor, fiber, fiber),\n push(contextStackCursor$1, nextContext, fiber));\n}\nfunction popHostContext(fiber) {\n contextFiberStackCursor.current === fiber &&\n (pop(contextStackCursor$1, fiber), pop(contextFiberStackCursor, fiber));\n}\nvar hasOwnProperty = Object.prototype.hasOwnProperty;\nfunction is(x, y) {\n return x === y ? 0 !== x || 0 !== y || 1 / x === 1 / y : x !== x && y !== y;\n}\nfunction shallowEqual(objA, objB) {\n if (is(objA, objB)) return !0;\n if (\n \"object\" !== typeof objA ||\n null === objA ||\n \"object\" !== typeof objB ||\n null === objB\n )\n return !1;\n var keysA = Object.keys(objA),\n keysB = Object.keys(objB);\n if (keysA.length !== keysB.length) return !1;\n for (keysB = 0; keysB < keysA.length; keysB++)\n if (\n !hasOwnProperty.call(objB, keysA[keysB]) ||\n !is(objA[keysA[keysB]], objB[keysA[keysB]])\n )\n return !1;\n return !0;\n}\nfunction resolveDefaultProps(Component, baseProps) {\n if (Component && Component.defaultProps) {\n baseProps = Object.assign({}, baseProps);\n Component = Component.defaultProps;\n for (var propName in Component)\n void 0 === baseProps[propName] &&\n (baseProps[propName] = Component[propName]);\n }\n return baseProps;\n}\nfunction readLazyComponentType(lazyComponent) {\n var result = lazyComponent._result;\n switch (lazyComponent._status) {\n case 1:\n return result;\n case 2:\n throw result;\n case 0:\n throw result;\n default:\n throw ((lazyComponent._status = 0),\n (result = lazyComponent._ctor),\n (result = result()),\n result.then(\n function(moduleObject) {\n 0 === lazyComponent._status &&\n ((moduleObject = moduleObject.default),\n (lazyComponent._status = 1),\n (lazyComponent._result = moduleObject));\n },\n function(error) {\n 0 === lazyComponent._status &&\n ((lazyComponent._status = 2), (lazyComponent._result = error));\n }\n ),\n (lazyComponent._result = result),\n result);\n }\n}\nvar ReactCurrentOwner$4 = ReactSharedInternals.ReactCurrentOwner,\n emptyRefsObject = new React.Component().refs;\nfunction applyDerivedStateFromProps(\n workInProgress,\n ctor,\n getDerivedStateFromProps,\n nextProps\n) {\n ctor = workInProgress.memoizedState;\n getDerivedStateFromProps = getDerivedStateFromProps(nextProps, ctor);\n getDerivedStateFromProps =\n null === getDerivedStateFromProps || void 0 === getDerivedStateFromProps\n ? ctor\n : Object.assign({}, ctor, getDerivedStateFromProps);\n workInProgress.memoizedState = getDerivedStateFromProps;\n nextProps = workInProgress.updateQueue;\n null !== nextProps &&\n 0 === workInProgress.expirationTime &&\n (nextProps.baseState = getDerivedStateFromProps);\n}\nvar classComponentUpdater = {\n isMounted: function(component) {\n return (component = component._reactInternalFiber)\n ? 2 === isFiberMountedImpl(component)\n : !1;\n },\n enqueueSetState: function(inst, payload, callback) {\n inst = inst._reactInternalFiber;\n var currentTime = requestCurrentTime();\n currentTime = computeExpirationForFiber(currentTime, inst);\n var update = createUpdate(currentTime);\n update.payload = payload;\n void 0 !== callback && null !== callback && (update.callback = callback);\n flushPassiveEffects();\n enqueueUpdate(inst, update);\n scheduleWork(inst, currentTime);\n },\n enqueueReplaceState: function(inst, payload, callback) {\n inst = inst._reactInternalFiber;\n var currentTime = requestCurrentTime();\n currentTime = computeExpirationForFiber(currentTime, inst);\n var update = createUpdate(currentTime);\n update.tag = 1;\n update.payload = payload;\n void 0 !== callback && null !== callback && (update.callback = callback);\n flushPassiveEffects();\n enqueueUpdate(inst, update);\n scheduleWork(inst, currentTime);\n },\n enqueueForceUpdate: function(inst, callback) {\n inst = inst._reactInternalFiber;\n var currentTime = requestCurrentTime();\n currentTime = computeExpirationForFiber(currentTime, inst);\n var update = createUpdate(currentTime);\n update.tag = 2;\n void 0 !== callback && null !== callback && (update.callback = callback);\n flushPassiveEffects();\n enqueueUpdate(inst, update);\n scheduleWork(inst, currentTime);\n }\n};\nfunction checkShouldComponentUpdate(\n workInProgress,\n ctor,\n oldProps,\n newProps,\n oldState,\n newState,\n nextContext\n) {\n workInProgress = workInProgress.stateNode;\n return \"function\" === typeof workInProgress.shouldComponentUpdate\n ? workInProgress.shouldComponentUpdate(newProps, newState, nextContext)\n : ctor.prototype && ctor.prototype.isPureReactComponent\n ? !shallowEqual(oldProps, newProps) || !shallowEqual(oldState, newState)\n : !0;\n}\nfunction constructClassInstance(workInProgress, ctor, props) {\n var isLegacyContextConsumer = !1,\n unmaskedContext = emptyContextObject;\n var context = ctor.contextType;\n \"object\" === typeof context && null !== context\n ? (context = ReactCurrentOwner$4.currentDispatcher.readContext(context))\n : ((unmaskedContext = isContextProvider(ctor)\n ? previousContext\n : contextStackCursor.current),\n (isLegacyContextConsumer = ctor.contextTypes),\n (context = (isLegacyContextConsumer =\n null !== isLegacyContextConsumer && void 0 !== isLegacyContextConsumer)\n ? getMaskedContext(workInProgress, unmaskedContext)\n : emptyContextObject));\n ctor = new ctor(props, context);\n workInProgress.memoizedState =\n null !== ctor.state && void 0 !== ctor.state ? ctor.state : null;\n ctor.updater = classComponentUpdater;\n workInProgress.stateNode = ctor;\n ctor._reactInternalFiber = workInProgress;\n isLegacyContextConsumer &&\n ((workInProgress = workInProgress.stateNode),\n (workInProgress.__reactInternalMemoizedUnmaskedChildContext = unmaskedContext),\n (workInProgress.__reactInternalMemoizedMaskedChildContext = context));\n return ctor;\n}\nfunction callComponentWillReceiveProps(\n workInProgress,\n instance,\n newProps,\n nextContext\n) {\n workInProgress = instance.state;\n \"function\" === typeof instance.componentWillReceiveProps &&\n instance.componentWillReceiveProps(newProps, nextContext);\n \"function\" === typeof instance.UNSAFE_componentWillReceiveProps &&\n instance.UNSAFE_componentWillReceiveProps(newProps, nextContext);\n instance.state !== workInProgress &&\n classComponentUpdater.enqueueReplaceState(instance, instance.state, null);\n}\nfunction mountClassInstance(\n workInProgress,\n ctor,\n newProps,\n renderExpirationTime\n) {\n var instance = workInProgress.stateNode;\n instance.props = newProps;\n instance.state = workInProgress.memoizedState;\n instance.refs = emptyRefsObject;\n var contextType = ctor.contextType;\n \"object\" === typeof contextType && null !== contextType\n ? (instance.context = ReactCurrentOwner$4.currentDispatcher.readContext(\n contextType\n ))\n : ((contextType = isContextProvider(ctor)\n ? previousContext\n : contextStackCursor.current),\n (instance.context = getMaskedContext(workInProgress, contextType)));\n contextType = workInProgress.updateQueue;\n null !== contextType &&\n (processUpdateQueue(\n workInProgress,\n contextType,\n newProps,\n instance,\n renderExpirationTime\n ),\n (instance.state = workInProgress.memoizedState));\n contextType = ctor.getDerivedStateFromProps;\n \"function\" === typeof contextType &&\n (applyDerivedStateFromProps(workInProgress, ctor, contextType, newProps),\n (instance.state = workInProgress.memoizedState));\n \"function\" === typeof ctor.getDerivedStateFromProps ||\n \"function\" === typeof instance.getSnapshotBeforeUpdate ||\n (\"function\" !== typeof instance.UNSAFE_componentWillMount &&\n \"function\" !== typeof instance.componentWillMount) ||\n ((ctor = instance.state),\n \"function\" === typeof instance.componentWillMount &&\n instance.componentWillMount(),\n \"function\" === typeof instance.UNSAFE_componentWillMount &&\n instance.UNSAFE_componentWillMount(),\n ctor !== instance.state &&\n classComponentUpdater.enqueueReplaceState(instance, instance.state, null),\n (contextType = workInProgress.updateQueue),\n null !== contextType &&\n (processUpdateQueue(\n workInProgress,\n contextType,\n newProps,\n instance,\n renderExpirationTime\n ),\n (instance.state = workInProgress.memoizedState)));\n \"function\" === typeof instance.componentDidMount &&\n (workInProgress.effectTag |= 4);\n}\nvar isArray = Array.isArray;\nfunction coerceRef(returnFiber, current$$1, element) {\n returnFiber = element.ref;\n if (\n null !== returnFiber &&\n \"function\" !== typeof returnFiber &&\n \"object\" !== typeof returnFiber\n ) {\n if (element._owner) {\n element = element._owner;\n var inst = void 0;\n element &&\n (invariant(1 === element.tag, \"Function components cannot have refs.\"),\n (inst = element.stateNode));\n invariant(\n inst,\n \"Missing owner for string ref %s. This error is likely caused by a bug in React. Please file an issue.\",\n returnFiber\n );\n var stringRef = \"\" + returnFiber;\n if (\n null !== current$$1 &&\n null !== current$$1.ref &&\n \"function\" === typeof current$$1.ref &&\n current$$1.ref._stringRef === stringRef\n )\n return current$$1.ref;\n current$$1 = function(value) {\n var refs = inst.refs;\n refs === emptyRefsObject && (refs = inst.refs = {});\n null === value ? delete refs[stringRef] : (refs[stringRef] = value);\n };\n current$$1._stringRef = stringRef;\n return current$$1;\n }\n invariant(\n \"string\" === typeof returnFiber,\n \"Expected ref to be a function, a string, an object returned by React.createRef(), or null.\"\n );\n invariant(\n element._owner,\n \"Element ref was specified as a string (%s) but no owner was set. This could happen for one of the following reasons:\\n1. You may be adding a ref to a function component\\n2. You may be adding a ref to a component that was not created inside a component's render method\\n3. You have multiple copies of React loaded\\nSee https://fb.me/react-refs-must-have-owner for more information.\",\n returnFiber\n );\n }\n return returnFiber;\n}\nfunction throwOnInvalidObjectType(returnFiber, newChild) {\n \"textarea\" !== returnFiber.type &&\n invariant(\n !1,\n \"Objects are not valid as a React child (found: %s).%s\",\n \"[object Object]\" === Object.prototype.toString.call(newChild)\n ? \"object with keys {\" + Object.keys(newChild).join(\", \") + \"}\"\n : newChild,\n \"\"\n );\n}\nfunction ChildReconciler(shouldTrackSideEffects) {\n function deleteChild(returnFiber, childToDelete) {\n if (shouldTrackSideEffects) {\n var last = returnFiber.lastEffect;\n null !== last\n ? ((last.nextEffect = childToDelete),\n (returnFiber.lastEffect = childToDelete))\n : (returnFiber.firstEffect = returnFiber.lastEffect = childToDelete);\n childToDelete.nextEffect = null;\n childToDelete.effectTag = 8;\n }\n }\n function deleteRemainingChildren(returnFiber, currentFirstChild) {\n if (!shouldTrackSideEffects) return null;\n for (; null !== currentFirstChild; )\n deleteChild(returnFiber, currentFirstChild),\n (currentFirstChild = currentFirstChild.sibling);\n return null;\n }\n function mapRemainingChildren(returnFiber, currentFirstChild) {\n for (returnFiber = new Map(); null !== currentFirstChild; )\n null !== currentFirstChild.key\n ? returnFiber.set(currentFirstChild.key, currentFirstChild)\n : returnFiber.set(currentFirstChild.index, currentFirstChild),\n (currentFirstChild = currentFirstChild.sibling);\n return returnFiber;\n }\n function useFiber(fiber, pendingProps, expirationTime) {\n fiber = createWorkInProgress(fiber, pendingProps, expirationTime);\n fiber.index = 0;\n fiber.sibling = null;\n return fiber;\n }\n function placeChild(newFiber, lastPlacedIndex, newIndex) {\n newFiber.index = newIndex;\n if (!shouldTrackSideEffects) return lastPlacedIndex;\n newIndex = newFiber.alternate;\n if (null !== newIndex)\n return (\n (newIndex = newIndex.index),\n newIndex < lastPlacedIndex\n ? ((newFiber.effectTag = 2), lastPlacedIndex)\n : newIndex\n );\n newFiber.effectTag = 2;\n return lastPlacedIndex;\n }\n function placeSingleChild(newFiber) {\n shouldTrackSideEffects &&\n null === newFiber.alternate &&\n (newFiber.effectTag = 2);\n return newFiber;\n }\n function updateTextNode(\n returnFiber,\n current$$1,\n textContent,\n expirationTime\n ) {\n if (null === current$$1 || 6 !== current$$1.tag)\n return (\n (current$$1 = createFiberFromText(\n textContent,\n returnFiber.mode,\n expirationTime\n )),\n (current$$1.return = returnFiber),\n current$$1\n );\n current$$1 = useFiber(current$$1, textContent, expirationTime);\n current$$1.return = returnFiber;\n return current$$1;\n }\n function updateElement(returnFiber, current$$1, element, expirationTime) {\n if (null !== current$$1 && current$$1.elementType === element.type)\n return (\n (expirationTime = useFiber(current$$1, element.props, expirationTime)),\n (expirationTime.ref = coerceRef(returnFiber, current$$1, element)),\n (expirationTime.return = returnFiber),\n expirationTime\n );\n expirationTime = createFiberFromTypeAndProps(\n element.type,\n element.key,\n element.props,\n null,\n returnFiber.mode,\n expirationTime\n );\n expirationTime.ref = coerceRef(returnFiber, current$$1, element);\n expirationTime.return = returnFiber;\n return expirationTime;\n }\n function updatePortal(returnFiber, current$$1, portal, expirationTime) {\n if (\n null === current$$1 ||\n 4 !== current$$1.tag ||\n current$$1.stateNode.containerInfo !== portal.containerInfo ||\n current$$1.stateNode.implementation !== portal.implementation\n )\n return (\n (current$$1 = createFiberFromPortal(\n portal,\n returnFiber.mode,\n expirationTime\n )),\n (current$$1.return = returnFiber),\n current$$1\n );\n current$$1 = useFiber(current$$1, portal.children || [], expirationTime);\n current$$1.return = returnFiber;\n return current$$1;\n }\n function updateFragment(\n returnFiber,\n current$$1,\n fragment,\n expirationTime,\n key\n ) {\n if (null === current$$1 || 7 !== current$$1.tag)\n return (\n (current$$1 = createFiberFromFragment(\n fragment,\n returnFiber.mode,\n expirationTime,\n key\n )),\n (current$$1.return = returnFiber),\n current$$1\n );\n current$$1 = useFiber(current$$1, fragment, expirationTime);\n current$$1.return = returnFiber;\n return current$$1;\n }\n function createChild(returnFiber, newChild, expirationTime) {\n if (\"string\" === typeof newChild || \"number\" === typeof newChild)\n return (\n (newChild = createFiberFromText(\n \"\" + newChild,\n returnFiber.mode,\n expirationTime\n )),\n (newChild.return = returnFiber),\n newChild\n );\n if (\"object\" === typeof newChild && null !== newChild) {\n switch (newChild.$$typeof) {\n case REACT_ELEMENT_TYPE:\n return (\n (expirationTime = createFiberFromTypeAndProps(\n newChild.type,\n newChild.key,\n newChild.props,\n null,\n returnFiber.mode,\n expirationTime\n )),\n (expirationTime.ref = coerceRef(returnFiber, null, newChild)),\n (expirationTime.return = returnFiber),\n expirationTime\n );\n case REACT_PORTAL_TYPE:\n return (\n (newChild = createFiberFromPortal(\n newChild,\n returnFiber.mode,\n expirationTime\n )),\n (newChild.return = returnFiber),\n newChild\n );\n }\n if (isArray(newChild) || getIteratorFn(newChild))\n return (\n (newChild = createFiberFromFragment(\n newChild,\n returnFiber.mode,\n expirationTime,\n null\n )),\n (newChild.return = returnFiber),\n newChild\n );\n throwOnInvalidObjectType(returnFiber, newChild);\n }\n return null;\n }\n function updateSlot(returnFiber, oldFiber, newChild, expirationTime) {\n var key = null !== oldFiber ? oldFiber.key : null;\n if (\"string\" === typeof newChild || \"number\" === typeof newChild)\n return null !== key\n ? null\n : updateTextNode(returnFiber, oldFiber, \"\" + newChild, expirationTime);\n if (\"object\" === typeof newChild && null !== newChild) {\n switch (newChild.$$typeof) {\n case REACT_ELEMENT_TYPE:\n return newChild.key === key\n ? newChild.type === REACT_FRAGMENT_TYPE\n ? updateFragment(\n returnFiber,\n oldFiber,\n newChild.props.children,\n expirationTime,\n key\n )\n : updateElement(returnFiber, oldFiber, newChild, expirationTime)\n : null;\n case REACT_PORTAL_TYPE:\n return newChild.key === key\n ? updatePortal(returnFiber, oldFiber, newChild, expirationTime)\n : null;\n }\n if (isArray(newChild) || getIteratorFn(newChild))\n return null !== key\n ? null\n : updateFragment(\n returnFiber,\n oldFiber,\n newChild,\n expirationTime,\n null\n );\n throwOnInvalidObjectType(returnFiber, newChild);\n }\n return null;\n }\n function updateFromMap(\n existingChildren,\n returnFiber,\n newIdx,\n newChild,\n expirationTime\n ) {\n if (\"string\" === typeof newChild || \"number\" === typeof newChild)\n return (\n (existingChildren = existingChildren.get(newIdx) || null),\n updateTextNode(\n returnFiber,\n existingChildren,\n \"\" + newChild,\n expirationTime\n )\n );\n if (\"object\" === typeof newChild && null !== newChild) {\n switch (newChild.$$typeof) {\n case REACT_ELEMENT_TYPE:\n return (\n (existingChildren =\n existingChildren.get(\n null === newChild.key ? newIdx : newChild.key\n ) || null),\n newChild.type === REACT_FRAGMENT_TYPE\n ? updateFragment(\n returnFiber,\n existingChildren,\n newChild.props.children,\n expirationTime,\n newChild.key\n )\n : updateElement(\n returnFiber,\n existingChildren,\n newChild,\n expirationTime\n )\n );\n case REACT_PORTAL_TYPE:\n return (\n (existingChildren =\n existingChildren.get(\n null === newChild.key ? newIdx : newChild.key\n ) || null),\n updatePortal(\n returnFiber,\n existingChildren,\n newChild,\n expirationTime\n )\n );\n }\n if (isArray(newChild) || getIteratorFn(newChild))\n return (\n (existingChildren = existingChildren.get(newIdx) || null),\n updateFragment(\n returnFiber,\n existingChildren,\n newChild,\n expirationTime,\n null\n )\n );\n throwOnInvalidObjectType(returnFiber, newChild);\n }\n return null;\n }\n function reconcileChildrenArray(\n returnFiber,\n currentFirstChild,\n newChildren,\n expirationTime\n ) {\n for (\n var resultingFirstChild = null,\n previousNewFiber = null,\n oldFiber = currentFirstChild,\n newIdx = (currentFirstChild = 0),\n nextOldFiber = null;\n null !== oldFiber && newIdx < newChildren.length;\n newIdx++\n ) {\n oldFiber.index > newIdx\n ? ((nextOldFiber = oldFiber), (oldFiber = null))\n : (nextOldFiber = oldFiber.sibling);\n var newFiber = updateSlot(\n returnFiber,\n oldFiber,\n newChildren[newIdx],\n expirationTime\n );\n if (null === newFiber) {\n null === oldFiber && (oldFiber = nextOldFiber);\n break;\n }\n shouldTrackSideEffects &&\n oldFiber &&\n null === newFiber.alternate &&\n deleteChild(returnFiber, oldFiber);\n currentFirstChild = placeChild(newFiber, currentFirstChild, newIdx);\n null === previousNewFiber\n ? (resultingFirstChild = newFiber)\n : (previousNewFiber.sibling = newFiber);\n previousNewFiber = newFiber;\n oldFiber = nextOldFiber;\n }\n if (newIdx === newChildren.length)\n return (\n deleteRemainingChildren(returnFiber, oldFiber), resultingFirstChild\n );\n if (null === oldFiber) {\n for (; newIdx < newChildren.length; newIdx++)\n if (\n (oldFiber = createChild(\n returnFiber,\n newChildren[newIdx],\n expirationTime\n ))\n )\n (currentFirstChild = placeChild(oldFiber, currentFirstChild, newIdx)),\n null === previousNewFiber\n ? (resultingFirstChild = oldFiber)\n : (previousNewFiber.sibling = oldFiber),\n (previousNewFiber = oldFiber);\n return resultingFirstChild;\n }\n for (\n oldFiber = mapRemainingChildren(returnFiber, oldFiber);\n newIdx < newChildren.length;\n newIdx++\n )\n if (\n (nextOldFiber = updateFromMap(\n oldFiber,\n returnFiber,\n newIdx,\n newChildren[newIdx],\n expirationTime\n ))\n )\n shouldTrackSideEffects &&\n null !== nextOldFiber.alternate &&\n oldFiber.delete(\n null === nextOldFiber.key ? newIdx : nextOldFiber.key\n ),\n (currentFirstChild = placeChild(\n nextOldFiber,\n currentFirstChild,\n newIdx\n )),\n null === previousNewFiber\n ? (resultingFirstChild = nextOldFiber)\n : (previousNewFiber.sibling = nextOldFiber),\n (previousNewFiber = nextOldFiber);\n shouldTrackSideEffects &&\n oldFiber.forEach(function(child) {\n return deleteChild(returnFiber, child);\n });\n return resultingFirstChild;\n }\n function reconcileChildrenIterator(\n returnFiber,\n currentFirstChild,\n newChildrenIterable,\n expirationTime\n ) {\n var iteratorFn = getIteratorFn(newChildrenIterable);\n invariant(\n \"function\" === typeof iteratorFn,\n \"An object is not an iterable. This error is likely caused by a bug in React. Please file an issue.\"\n );\n newChildrenIterable = iteratorFn.call(newChildrenIterable);\n invariant(\n null != newChildrenIterable,\n \"An iterable object provided no iterator.\"\n );\n for (\n var previousNewFiber = (iteratorFn = null),\n oldFiber = currentFirstChild,\n newIdx = (currentFirstChild = 0),\n nextOldFiber = null,\n step = newChildrenIterable.next();\n null !== oldFiber && !step.done;\n newIdx++, step = newChildrenIterable.next()\n ) {\n oldFiber.index > newIdx\n ? ((nextOldFiber = oldFiber), (oldFiber = null))\n : (nextOldFiber = oldFiber.sibling);\n var newFiber = updateSlot(\n returnFiber,\n oldFiber,\n step.value,\n expirationTime\n );\n if (null === newFiber) {\n oldFiber || (oldFiber = nextOldFiber);\n break;\n }\n shouldTrackSideEffects &&\n oldFiber &&\n null === newFiber.alternate &&\n deleteChild(returnFiber, oldFiber);\n currentFirstChild = placeChild(newFiber, currentFirstChild, newIdx);\n null === previousNewFiber\n ? (iteratorFn = newFiber)\n : (previousNewFiber.sibling = newFiber);\n previousNewFiber = newFiber;\n oldFiber = nextOldFiber;\n }\n if (step.done)\n return deleteRemainingChildren(returnFiber, oldFiber), iteratorFn;\n if (null === oldFiber) {\n for (; !step.done; newIdx++, step = newChildrenIterable.next())\n (step = createChild(returnFiber, step.value, expirationTime)),\n null !== step &&\n ((currentFirstChild = placeChild(step, currentFirstChild, newIdx)),\n null === previousNewFiber\n ? (iteratorFn = step)\n : (previousNewFiber.sibling = step),\n (previousNewFiber = step));\n return iteratorFn;\n }\n for (\n oldFiber = mapRemainingChildren(returnFiber, oldFiber);\n !step.done;\n newIdx++, step = newChildrenIterable.next()\n )\n (step = updateFromMap(\n oldFiber,\n returnFiber,\n newIdx,\n step.value,\n expirationTime\n )),\n null !== step &&\n (shouldTrackSideEffects &&\n null !== step.alternate &&\n oldFiber.delete(null === step.key ? newIdx : step.key),\n (currentFirstChild = placeChild(step, currentFirstChild, newIdx)),\n null === previousNewFiber\n ? (iteratorFn = step)\n : (previousNewFiber.sibling = step),\n (previousNewFiber = step));\n shouldTrackSideEffects &&\n oldFiber.forEach(function(child) {\n return deleteChild(returnFiber, child);\n });\n return iteratorFn;\n }\n return function(returnFiber, currentFirstChild, newChild, expirationTime) {\n var isUnkeyedTopLevelFragment =\n \"object\" === typeof newChild &&\n null !== newChild &&\n newChild.type === REACT_FRAGMENT_TYPE &&\n null === newChild.key;\n isUnkeyedTopLevelFragment && (newChild = newChild.props.children);\n var isObject = \"object\" === typeof newChild && null !== newChild;\n if (isObject)\n switch (newChild.$$typeof) {\n case REACT_ELEMENT_TYPE:\n a: {\n isObject = newChild.key;\n for (\n isUnkeyedTopLevelFragment = currentFirstChild;\n null !== isUnkeyedTopLevelFragment;\n\n ) {\n if (isUnkeyedTopLevelFragment.key === isObject)\n if (\n 7 === isUnkeyedTopLevelFragment.tag\n ? newChild.type === REACT_FRAGMENT_TYPE\n : isUnkeyedTopLevelFragment.elementType === newChild.type\n ) {\n deleteRemainingChildren(\n returnFiber,\n isUnkeyedTopLevelFragment.sibling\n );\n currentFirstChild = useFiber(\n isUnkeyedTopLevelFragment,\n newChild.type === REACT_FRAGMENT_TYPE\n ? newChild.props.children\n : newChild.props,\n expirationTime\n );\n currentFirstChild.ref = coerceRef(\n returnFiber,\n isUnkeyedTopLevelFragment,\n newChild\n );\n currentFirstChild.return = returnFiber;\n returnFiber = currentFirstChild;\n break a;\n } else {\n deleteRemainingChildren(\n returnFiber,\n isUnkeyedTopLevelFragment\n );\n break;\n }\n else deleteChild(returnFiber, isUnkeyedTopLevelFragment);\n isUnkeyedTopLevelFragment = isUnkeyedTopLevelFragment.sibling;\n }\n newChild.type === REACT_FRAGMENT_TYPE\n ? ((currentFirstChild = createFiberFromFragment(\n newChild.props.children,\n returnFiber.mode,\n expirationTime,\n newChild.key\n )),\n (currentFirstChild.return = returnFiber),\n (returnFiber = currentFirstChild))\n : ((expirationTime = createFiberFromTypeAndProps(\n newChild.type,\n newChild.key,\n newChild.props,\n null,\n returnFiber.mode,\n expirationTime\n )),\n (expirationTime.ref = coerceRef(\n returnFiber,\n currentFirstChild,\n newChild\n )),\n (expirationTime.return = returnFiber),\n (returnFiber = expirationTime));\n }\n return placeSingleChild(returnFiber);\n case REACT_PORTAL_TYPE:\n a: {\n for (\n isUnkeyedTopLevelFragment = newChild.key;\n null !== currentFirstChild;\n\n ) {\n if (currentFirstChild.key === isUnkeyedTopLevelFragment)\n if (\n 4 === currentFirstChild.tag &&\n currentFirstChild.stateNode.containerInfo ===\n newChild.containerInfo &&\n currentFirstChild.stateNode.implementation ===\n newChild.implementation\n ) {\n deleteRemainingChildren(\n returnFiber,\n currentFirstChild.sibling\n );\n currentFirstChild = useFiber(\n currentFirstChild,\n newChild.children || [],\n expirationTime\n );\n currentFirstChild.return = returnFiber;\n returnFiber = currentFirstChild;\n break a;\n } else {\n deleteRemainingChildren(returnFiber, currentFirstChild);\n break;\n }\n else deleteChild(returnFiber, currentFirstChild);\n currentFirstChild = currentFirstChild.sibling;\n }\n currentFirstChild = createFiberFromPortal(\n newChild,\n returnFiber.mode,\n expirationTime\n );\n currentFirstChild.return = returnFiber;\n returnFiber = currentFirstChild;\n }\n return placeSingleChild(returnFiber);\n }\n if (\"string\" === typeof newChild || \"number\" === typeof newChild)\n return (\n (newChild = \"\" + newChild),\n null !== currentFirstChild && 6 === currentFirstChild.tag\n ? (deleteRemainingChildren(returnFiber, currentFirstChild.sibling),\n (currentFirstChild = useFiber(\n currentFirstChild,\n newChild,\n expirationTime\n )),\n (currentFirstChild.return = returnFiber),\n (returnFiber = currentFirstChild))\n : (deleteRemainingChildren(returnFiber, currentFirstChild),\n (currentFirstChild = createFiberFromText(\n newChild,\n returnFiber.mode,\n expirationTime\n )),\n (currentFirstChild.return = returnFiber),\n (returnFiber = currentFirstChild)),\n placeSingleChild(returnFiber)\n );\n if (isArray(newChild))\n return reconcileChildrenArray(\n returnFiber,\n currentFirstChild,\n newChild,\n expirationTime\n );\n if (getIteratorFn(newChild))\n return reconcileChildrenIterator(\n returnFiber,\n currentFirstChild,\n newChild,\n expirationTime\n );\n isObject && throwOnInvalidObjectType(returnFiber, newChild);\n if (\"undefined\" === typeof newChild && !isUnkeyedTopLevelFragment)\n switch (returnFiber.tag) {\n case 1:\n case 0:\n (expirationTime = returnFiber.type),\n invariant(\n !1,\n \"%s(...): Nothing was returned from render. This usually means a return statement is missing. Or, to render nothing, return null.\",\n expirationTime.displayName || expirationTime.name || \"Component\"\n );\n }\n return deleteRemainingChildren(returnFiber, currentFirstChild);\n };\n}\nvar reconcileChildFibers = ChildReconciler(!0),\n mountChildFibers = ChildReconciler(!1),\n hydrationParentFiber = null,\n nextHydratableInstance = null,\n isHydrating = !1;\nfunction tryHydrate(fiber, nextInstance) {\n switch (fiber.tag) {\n case 5:\n return (\n (nextInstance = shim$1(nextInstance, fiber.type, fiber.pendingProps)),\n null !== nextInstance ? ((fiber.stateNode = nextInstance), !0) : !1\n );\n case 6:\n return (\n (nextInstance = shim$1(nextInstance, fiber.pendingProps)),\n null !== nextInstance ? ((fiber.stateNode = nextInstance), !0) : !1\n );\n default:\n return !1;\n }\n}\nfunction tryToClaimNextHydratableInstance(fiber$jscomp$0) {\n if (isHydrating) {\n var nextInstance = nextHydratableInstance;\n if (nextInstance) {\n var firstAttemptedInstance = nextInstance;\n if (!tryHydrate(fiber$jscomp$0, nextInstance)) {\n nextInstance = shim$1(firstAttemptedInstance);\n if (!nextInstance || !tryHydrate(fiber$jscomp$0, nextInstance)) {\n fiber$jscomp$0.effectTag |= 2;\n isHydrating = !1;\n hydrationParentFiber = fiber$jscomp$0;\n return;\n }\n var returnFiber = hydrationParentFiber,\n fiber = createFiber(5, null, null, 0);\n fiber.elementType = \"DELETED\";\n fiber.type = \"DELETED\";\n fiber.stateNode = firstAttemptedInstance;\n fiber.return = returnFiber;\n fiber.effectTag = 8;\n null !== returnFiber.lastEffect\n ? ((returnFiber.lastEffect.nextEffect = fiber),\n (returnFiber.lastEffect = fiber))\n : (returnFiber.firstEffect = returnFiber.lastEffect = fiber);\n }\n hydrationParentFiber = fiber$jscomp$0;\n nextHydratableInstance = shim$1(nextInstance);\n } else\n (fiber$jscomp$0.effectTag |= 2),\n (isHydrating = !1),\n (hydrationParentFiber = fiber$jscomp$0);\n }\n}\nvar ReactCurrentOwner$3 = ReactSharedInternals.ReactCurrentOwner;\nfunction reconcileChildren(\n current$$1,\n workInProgress,\n nextChildren,\n renderExpirationTime\n) {\n workInProgress.child =\n null === current$$1\n ? mountChildFibers(\n workInProgress,\n null,\n nextChildren,\n renderExpirationTime\n )\n : reconcileChildFibers(\n workInProgress,\n current$$1.child,\n nextChildren,\n renderExpirationTime\n );\n}\nfunction updateForwardRef(\n current$$1,\n workInProgress,\n Component,\n nextProps,\n renderExpirationTime\n) {\n Component = Component.render;\n var ref = workInProgress.ref;\n prepareToReadContext(workInProgress, renderExpirationTime);\n nextProps = Component(nextProps, ref);\n workInProgress.effectTag |= 1;\n reconcileChildren(\n current$$1,\n workInProgress,\n nextProps,\n renderExpirationTime\n );\n return workInProgress.child;\n}\nfunction updateMemoComponent(\n current$$1,\n workInProgress,\n Component,\n nextProps,\n updateExpirationTime,\n renderExpirationTime\n) {\n if (null === current$$1) {\n var type = Component.type;\n if (\n \"function\" === typeof type &&\n !shouldConstruct(type) &&\n void 0 === type.defaultProps &&\n null === Component.compare\n )\n return (\n (workInProgress.tag = 15),\n (workInProgress.type = type),\n updateSimpleMemoComponent(\n current$$1,\n workInProgress,\n type,\n nextProps,\n updateExpirationTime,\n renderExpirationTime\n )\n );\n current$$1 = createFiberFromTypeAndProps(\n Component.type,\n null,\n nextProps,\n null,\n workInProgress.mode,\n renderExpirationTime\n );\n current$$1.ref = workInProgress.ref;\n current$$1.return = workInProgress;\n return (workInProgress.child = current$$1);\n }\n type = current$$1.child;\n if (\n updateExpirationTime < renderExpirationTime &&\n ((updateExpirationTime = type.memoizedProps),\n (Component = Component.compare),\n (Component = null !== Component ? Component : shallowEqual),\n Component(updateExpirationTime, nextProps) &&\n current$$1.ref === workInProgress.ref)\n )\n return bailoutOnAlreadyFinishedWork(\n current$$1,\n workInProgress,\n renderExpirationTime\n );\n workInProgress.effectTag |= 1;\n current$$1 = createWorkInProgress(type, nextProps, renderExpirationTime);\n current$$1.ref = workInProgress.ref;\n current$$1.return = workInProgress;\n return (workInProgress.child = current$$1);\n}\nfunction updateSimpleMemoComponent(\n current$$1,\n workInProgress,\n Component,\n nextProps,\n updateExpirationTime,\n renderExpirationTime\n) {\n return null !== current$$1 &&\n updateExpirationTime < renderExpirationTime &&\n shallowEqual(current$$1.memoizedProps, nextProps) &&\n current$$1.ref === workInProgress.ref\n ? bailoutOnAlreadyFinishedWork(\n current$$1,\n workInProgress,\n renderExpirationTime\n )\n : updateFunctionComponent(\n current$$1,\n workInProgress,\n Component,\n nextProps,\n renderExpirationTime\n );\n}\nfunction markRef(current$$1, workInProgress) {\n var ref = workInProgress.ref;\n if (\n (null === current$$1 && null !== ref) ||\n (null !== current$$1 && current$$1.ref !== ref)\n )\n workInProgress.effectTag |= 128;\n}\nfunction updateFunctionComponent(\n current$$1,\n workInProgress,\n Component,\n nextProps,\n renderExpirationTime\n) {\n var unmaskedContext = isContextProvider(Component)\n ? previousContext\n : contextStackCursor.current;\n unmaskedContext = getMaskedContext(workInProgress, unmaskedContext);\n prepareToReadContext(workInProgress, renderExpirationTime);\n Component = Component(nextProps, unmaskedContext);\n workInProgress.effectTag |= 1;\n reconcileChildren(\n current$$1,\n workInProgress,\n Component,\n renderExpirationTime\n );\n return workInProgress.child;\n}\nfunction updateClassComponent(\n current$$1,\n workInProgress,\n Component,\n nextProps,\n renderExpirationTime\n) {\n if (isContextProvider(Component)) {\n var hasContext = !0;\n pushContextProvider(workInProgress);\n } else hasContext = !1;\n prepareToReadContext(workInProgress, renderExpirationTime);\n if (null === workInProgress.stateNode)\n null !== current$$1 &&\n ((current$$1.alternate = null),\n (workInProgress.alternate = null),\n (workInProgress.effectTag |= 2)),\n constructClassInstance(\n workInProgress,\n Component,\n nextProps,\n renderExpirationTime\n ),\n mountClassInstance(\n workInProgress,\n Component,\n nextProps,\n renderExpirationTime\n ),\n (nextProps = !0);\n else if (null === current$$1) {\n var instance = workInProgress.stateNode,\n oldProps = workInProgress.memoizedProps;\n instance.props = oldProps;\n var oldContext = instance.context,\n contextType = Component.contextType;\n \"object\" === typeof contextType && null !== contextType\n ? (contextType = ReactCurrentOwner$4.currentDispatcher.readContext(\n contextType\n ))\n : ((contextType = isContextProvider(Component)\n ? previousContext\n : contextStackCursor.current),\n (contextType = getMaskedContext(workInProgress, contextType)));\n var getDerivedStateFromProps = Component.getDerivedStateFromProps,\n hasNewLifecycles =\n \"function\" === typeof getDerivedStateFromProps ||\n \"function\" === typeof instance.getSnapshotBeforeUpdate;\n hasNewLifecycles ||\n (\"function\" !== typeof instance.UNSAFE_componentWillReceiveProps &&\n \"function\" !== typeof instance.componentWillReceiveProps) ||\n ((oldProps !== nextProps || oldContext !== contextType) &&\n callComponentWillReceiveProps(\n workInProgress,\n instance,\n nextProps,\n contextType\n ));\n hasForceUpdate = !1;\n var oldState = workInProgress.memoizedState;\n oldContext = instance.state = oldState;\n var updateQueue = workInProgress.updateQueue;\n null !== updateQueue &&\n (processUpdateQueue(\n workInProgress,\n updateQueue,\n nextProps,\n instance,\n renderExpirationTime\n ),\n (oldContext = workInProgress.memoizedState));\n oldProps !== nextProps ||\n oldState !== oldContext ||\n didPerformWorkStackCursor.current ||\n hasForceUpdate\n ? (\"function\" === typeof getDerivedStateFromProps &&\n (applyDerivedStateFromProps(\n workInProgress,\n Component,\n getDerivedStateFromProps,\n nextProps\n ),\n (oldContext = workInProgress.memoizedState)),\n (oldProps =\n hasForceUpdate ||\n checkShouldComponentUpdate(\n workInProgress,\n Component,\n oldProps,\n nextProps,\n oldState,\n oldContext,\n contextType\n ))\n ? (hasNewLifecycles ||\n (\"function\" !== typeof instance.UNSAFE_componentWillMount &&\n \"function\" !== typeof instance.componentWillMount) ||\n (\"function\" === typeof instance.componentWillMount &&\n instance.componentWillMount(),\n \"function\" === typeof instance.UNSAFE_componentWillMount &&\n instance.UNSAFE_componentWillMount()),\n \"function\" === typeof instance.componentDidMount &&\n (workInProgress.effectTag |= 4))\n : (\"function\" === typeof instance.componentDidMount &&\n (workInProgress.effectTag |= 4),\n (workInProgress.memoizedProps = nextProps),\n (workInProgress.memoizedState = oldContext)),\n (instance.props = nextProps),\n (instance.state = oldContext),\n (instance.context = contextType),\n (nextProps = oldProps))\n : (\"function\" === typeof instance.componentDidMount &&\n (workInProgress.effectTag |= 4),\n (nextProps = !1));\n } else\n (instance = workInProgress.stateNode),\n (oldProps = workInProgress.memoizedProps),\n (instance.props =\n workInProgress.type === workInProgress.elementType\n ? oldProps\n : resolveDefaultProps(workInProgress.type, oldProps)),\n (oldContext = instance.context),\n (contextType = Component.contextType),\n \"object\" === typeof contextType && null !== contextType\n ? (contextType = ReactCurrentOwner$4.currentDispatcher.readContext(\n contextType\n ))\n : ((contextType = isContextProvider(Component)\n ? previousContext\n : contextStackCursor.current),\n (contextType = getMaskedContext(workInProgress, contextType))),\n (getDerivedStateFromProps = Component.getDerivedStateFromProps),\n (hasNewLifecycles =\n \"function\" === typeof getDerivedStateFromProps ||\n \"function\" === typeof instance.getSnapshotBeforeUpdate) ||\n (\"function\" !== typeof instance.UNSAFE_componentWillReceiveProps &&\n \"function\" !== typeof instance.componentWillReceiveProps) ||\n ((oldProps !== nextProps || oldContext !== contextType) &&\n callComponentWillReceiveProps(\n workInProgress,\n instance,\n nextProps,\n contextType\n )),\n (hasForceUpdate = !1),\n (oldContext = workInProgress.memoizedState),\n (oldState = instance.state = oldContext),\n (updateQueue = workInProgress.updateQueue),\n null !== updateQueue &&\n (processUpdateQueue(\n workInProgress,\n updateQueue,\n nextProps,\n instance,\n renderExpirationTime\n ),\n (oldState = workInProgress.memoizedState)),\n oldProps !== nextProps ||\n oldContext !== oldState ||\n didPerformWorkStackCursor.current ||\n hasForceUpdate\n ? (\"function\" === typeof getDerivedStateFromProps &&\n (applyDerivedStateFromProps(\n workInProgress,\n Component,\n getDerivedStateFromProps,\n nextProps\n ),\n (oldState = workInProgress.memoizedState)),\n (getDerivedStateFromProps =\n hasForceUpdate ||\n checkShouldComponentUpdate(\n workInProgress,\n Component,\n oldProps,\n nextProps,\n oldContext,\n oldState,\n contextType\n ))\n ? (hasNewLifecycles ||\n (\"function\" !== typeof instance.UNSAFE_componentWillUpdate &&\n \"function\" !== typeof instance.componentWillUpdate) ||\n (\"function\" === typeof instance.componentWillUpdate &&\n instance.componentWillUpdate(\n nextProps,\n oldState,\n contextType\n ),\n \"function\" === typeof instance.UNSAFE_componentWillUpdate &&\n instance.UNSAFE_componentWillUpdate(\n nextProps,\n oldState,\n contextType\n )),\n \"function\" === typeof instance.componentDidUpdate &&\n (workInProgress.effectTag |= 4),\n \"function\" === typeof instance.getSnapshotBeforeUpdate &&\n (workInProgress.effectTag |= 256))\n : (\"function\" !== typeof instance.componentDidUpdate ||\n (oldProps === current$$1.memoizedProps &&\n oldContext === current$$1.memoizedState) ||\n (workInProgress.effectTag |= 4),\n \"function\" !== typeof instance.getSnapshotBeforeUpdate ||\n (oldProps === current$$1.memoizedProps &&\n oldContext === current$$1.memoizedState) ||\n (workInProgress.effectTag |= 256),\n (workInProgress.memoizedProps = nextProps),\n (workInProgress.memoizedState = oldState)),\n (instance.props = nextProps),\n (instance.state = oldState),\n (instance.context = contextType),\n (nextProps = getDerivedStateFromProps))\n : (\"function\" !== typeof instance.componentDidUpdate ||\n (oldProps === current$$1.memoizedProps &&\n oldContext === current$$1.memoizedState) ||\n (workInProgress.effectTag |= 4),\n \"function\" !== typeof instance.getSnapshotBeforeUpdate ||\n (oldProps === current$$1.memoizedProps &&\n oldContext === current$$1.memoizedState) ||\n (workInProgress.effectTag |= 256),\n (nextProps = !1));\n return finishClassComponent(\n current$$1,\n workInProgress,\n Component,\n nextProps,\n hasContext,\n renderExpirationTime\n );\n}\nfunction finishClassComponent(\n current$$1,\n workInProgress,\n Component,\n shouldUpdate,\n hasContext,\n renderExpirationTime\n) {\n markRef(current$$1, workInProgress);\n var didCaptureError = 0 !== (workInProgress.effectTag & 64);\n if (!shouldUpdate && !didCaptureError)\n return (\n hasContext && invalidateContextProvider(workInProgress, Component, !1),\n bailoutOnAlreadyFinishedWork(\n current$$1,\n workInProgress,\n renderExpirationTime\n )\n );\n shouldUpdate = workInProgress.stateNode;\n ReactCurrentOwner$3.current = workInProgress;\n var nextChildren =\n didCaptureError && \"function\" !== typeof Component.getDerivedStateFromError\n ? null\n : shouldUpdate.render();\n workInProgress.effectTag |= 1;\n null !== current$$1 && didCaptureError\n ? ((workInProgress.child = reconcileChildFibers(\n workInProgress,\n current$$1.child,\n null,\n renderExpirationTime\n )),\n (workInProgress.child = reconcileChildFibers(\n workInProgress,\n null,\n nextChildren,\n renderExpirationTime\n )))\n : reconcileChildren(\n current$$1,\n workInProgress,\n nextChildren,\n renderExpirationTime\n );\n workInProgress.memoizedState = shouldUpdate.state;\n hasContext && invalidateContextProvider(workInProgress, Component, !0);\n return workInProgress.child;\n}\nfunction pushHostRootContext(workInProgress) {\n var root = workInProgress.stateNode;\n root.pendingContext\n ? pushTopLevelContextObject(\n workInProgress,\n root.pendingContext,\n root.pendingContext !== root.context\n )\n : root.context &&\n pushTopLevelContextObject(workInProgress, root.context, !1);\n pushHostContainer(workInProgress, root.containerInfo);\n}\nfunction updateSuspenseComponent(\n current$$1,\n workInProgress,\n renderExpirationTime\n) {\n var mode = workInProgress.mode,\n nextProps = workInProgress.pendingProps,\n nextState = workInProgress.memoizedState;\n if (0 === (workInProgress.effectTag & 64)) {\n nextState = null;\n var nextDidTimeout = !1;\n } else\n (nextState = { timedOutAt: null !== nextState ? nextState.timedOutAt : 0 }),\n (nextDidTimeout = !0),\n (workInProgress.effectTag &= -65);\n null === current$$1\n ? nextDidTimeout\n ? ((nextDidTimeout = nextProps.fallback),\n (nextProps = createFiberFromFragment(null, mode, 0, null)),\n 0 === (workInProgress.mode & 1) &&\n (nextProps.child =\n null !== workInProgress.memoizedState\n ? workInProgress.child.child\n : workInProgress.child),\n (mode = createFiberFromFragment(\n nextDidTimeout,\n mode,\n renderExpirationTime,\n null\n )),\n (nextProps.sibling = mode),\n (renderExpirationTime = nextProps),\n (renderExpirationTime.return = mode.return = workInProgress))\n : (renderExpirationTime = mode = mountChildFibers(\n workInProgress,\n null,\n nextProps.children,\n renderExpirationTime\n ))\n : null !== current$$1.memoizedState\n ? ((mode = current$$1.child),\n (current$$1 = mode.sibling),\n nextDidTimeout\n ? ((renderExpirationTime = nextProps.fallback),\n (nextProps = createWorkInProgress(mode, mode.pendingProps, 0)),\n (nextProps.effectTag |= 2),\n 0 === (workInProgress.mode & 1) &&\n ((nextDidTimeout =\n null !== workInProgress.memoizedState\n ? workInProgress.child.child\n : workInProgress.child),\n nextDidTimeout !== mode.child &&\n (nextProps.child = nextDidTimeout)),\n (mode = nextProps.sibling = createWorkInProgress(\n current$$1,\n renderExpirationTime,\n current$$1.expirationTime\n )),\n (mode.effectTag |= 2),\n (renderExpirationTime = nextProps),\n (nextProps.childExpirationTime = 0),\n (renderExpirationTime.return = mode.return = workInProgress))\n : (renderExpirationTime = mode = reconcileChildFibers(\n workInProgress,\n mode.child,\n nextProps.children,\n renderExpirationTime\n )))\n : ((current$$1 = current$$1.child),\n nextDidTimeout\n ? ((nextDidTimeout = nextProps.fallback),\n (nextProps = createFiberFromFragment(null, mode, 0, null)),\n (nextProps.effectTag |= 2),\n (nextProps.child = current$$1),\n (current$$1.return = nextProps),\n 0 === (workInProgress.mode & 1) &&\n (nextProps.child =\n null !== workInProgress.memoizedState\n ? workInProgress.child.child\n : workInProgress.child),\n (mode = nextProps.sibling = createFiberFromFragment(\n nextDidTimeout,\n mode,\n renderExpirationTime,\n null\n )),\n (mode.effectTag |= 2),\n (renderExpirationTime = nextProps),\n (nextProps.childExpirationTime = 0),\n (renderExpirationTime.return = mode.return = workInProgress))\n : (mode = renderExpirationTime = reconcileChildFibers(\n workInProgress,\n current$$1,\n nextProps.children,\n renderExpirationTime\n )));\n workInProgress.memoizedState = nextState;\n workInProgress.child = renderExpirationTime;\n return mode;\n}\nfunction bailoutOnAlreadyFinishedWork(\n current$$1,\n workInProgress,\n renderExpirationTime\n) {\n null !== current$$1 &&\n (workInProgress.firstContextDependency = current$$1.firstContextDependency);\n if (workInProgress.childExpirationTime < renderExpirationTime) return null;\n invariant(\n null === current$$1 || workInProgress.child === current$$1.child,\n \"Resuming work not yet implemented.\"\n );\n if (null !== workInProgress.child) {\n current$$1 = workInProgress.child;\n renderExpirationTime = createWorkInProgress(\n current$$1,\n current$$1.pendingProps,\n current$$1.expirationTime\n );\n workInProgress.child = renderExpirationTime;\n for (\n renderExpirationTime.return = workInProgress;\n null !== current$$1.sibling;\n\n )\n (current$$1 = current$$1.sibling),\n (renderExpirationTime = renderExpirationTime.sibling = createWorkInProgress(\n current$$1,\n current$$1.pendingProps,\n current$$1.expirationTime\n )),\n (renderExpirationTime.return = workInProgress);\n renderExpirationTime.sibling = null;\n }\n return workInProgress.child;\n}\nfunction beginWork(current$$1, workInProgress, renderExpirationTime) {\n var updateExpirationTime = workInProgress.expirationTime;\n if (\n null !== current$$1 &&\n current$$1.memoizedProps === workInProgress.pendingProps &&\n !didPerformWorkStackCursor.current &&\n updateExpirationTime < renderExpirationTime\n ) {\n switch (workInProgress.tag) {\n case 3:\n pushHostRootContext(workInProgress);\n break;\n case 5:\n pushHostContext(workInProgress);\n break;\n case 1:\n isContextProvider(workInProgress.type) &&\n pushContextProvider(workInProgress);\n break;\n case 4:\n pushHostContainer(\n workInProgress,\n workInProgress.stateNode.containerInfo\n );\n break;\n case 10:\n pushProvider(workInProgress, workInProgress.memoizedProps.value);\n break;\n case 13:\n if (null !== workInProgress.memoizedState) {\n updateExpirationTime = workInProgress.child.childExpirationTime;\n if (\n 0 !== updateExpirationTime &&\n updateExpirationTime >= renderExpirationTime\n )\n return updateSuspenseComponent(\n current$$1,\n workInProgress,\n renderExpirationTime\n );\n workInProgress = bailoutOnAlreadyFinishedWork(\n current$$1,\n workInProgress,\n renderExpirationTime\n );\n return null !== workInProgress ? workInProgress.sibling : null;\n }\n }\n return bailoutOnAlreadyFinishedWork(\n current$$1,\n workInProgress,\n renderExpirationTime\n );\n }\n workInProgress.expirationTime = 0;\n switch (workInProgress.tag) {\n case 2:\n updateExpirationTime = workInProgress.elementType;\n null !== current$$1 &&\n ((current$$1.alternate = null),\n (workInProgress.alternate = null),\n (workInProgress.effectTag |= 2));\n current$$1 = workInProgress.pendingProps;\n var context = getMaskedContext(\n workInProgress,\n contextStackCursor.current\n );\n prepareToReadContext(workInProgress, renderExpirationTime);\n context = updateExpirationTime(current$$1, context);\n workInProgress.effectTag |= 1;\n if (\n \"object\" === typeof context &&\n null !== context &&\n \"function\" === typeof context.render &&\n void 0 === context.$$typeof\n ) {\n workInProgress.tag = 1;\n if (isContextProvider(updateExpirationTime)) {\n var hasContext = !0;\n pushContextProvider(workInProgress);\n } else hasContext = !1;\n workInProgress.memoizedState =\n null !== context.state && void 0 !== context.state\n ? context.state\n : null;\n var getDerivedStateFromProps =\n updateExpirationTime.getDerivedStateFromProps;\n \"function\" === typeof getDerivedStateFromProps &&\n applyDerivedStateFromProps(\n workInProgress,\n updateExpirationTime,\n getDerivedStateFromProps,\n current$$1\n );\n context.updater = classComponentUpdater;\n workInProgress.stateNode = context;\n context._reactInternalFiber = workInProgress;\n mountClassInstance(\n workInProgress,\n updateExpirationTime,\n current$$1,\n renderExpirationTime\n );\n workInProgress = finishClassComponent(\n null,\n workInProgress,\n updateExpirationTime,\n !0,\n hasContext,\n renderExpirationTime\n );\n } else\n (workInProgress.tag = 0),\n reconcileChildren(\n null,\n workInProgress,\n context,\n renderExpirationTime\n ),\n (workInProgress = workInProgress.child);\n return workInProgress;\n case 16:\n context = workInProgress.elementType;\n null !== current$$1 &&\n ((current$$1.alternate = null),\n (workInProgress.alternate = null),\n (workInProgress.effectTag |= 2));\n hasContext = workInProgress.pendingProps;\n current$$1 = readLazyComponentType(context);\n workInProgress.type = current$$1;\n context = workInProgress.tag = resolveLazyComponentTag(current$$1);\n hasContext = resolveDefaultProps(current$$1, hasContext);\n getDerivedStateFromProps = void 0;\n switch (context) {\n case 0:\n getDerivedStateFromProps = updateFunctionComponent(\n null,\n workInProgress,\n current$$1,\n hasContext,\n renderExpirationTime\n );\n break;\n case 1:\n getDerivedStateFromProps = updateClassComponent(\n null,\n workInProgress,\n current$$1,\n hasContext,\n renderExpirationTime\n );\n break;\n case 11:\n getDerivedStateFromProps = updateForwardRef(\n null,\n workInProgress,\n current$$1,\n hasContext,\n renderExpirationTime\n );\n break;\n case 14:\n getDerivedStateFromProps = updateMemoComponent(\n null,\n workInProgress,\n current$$1,\n resolveDefaultProps(current$$1.type, hasContext),\n updateExpirationTime,\n renderExpirationTime\n );\n break;\n default:\n invariant(\n !1,\n \"Element type is invalid. Received a promise that resolves to: %s. Promise elements must resolve to a class or function.\",\n current$$1\n );\n }\n return getDerivedStateFromProps;\n case 0:\n return (\n (updateExpirationTime = workInProgress.type),\n (context = workInProgress.pendingProps),\n (context =\n workInProgress.elementType === updateExpirationTime\n ? context\n : resolveDefaultProps(updateExpirationTime, context)),\n updateFunctionComponent(\n current$$1,\n workInProgress,\n updateExpirationTime,\n context,\n renderExpirationTime\n )\n );\n case 1:\n return (\n (updateExpirationTime = workInProgress.type),\n (context = workInProgress.pendingProps),\n (context =\n workInProgress.elementType === updateExpirationTime\n ? context\n : resolveDefaultProps(updateExpirationTime, context)),\n updateClassComponent(\n current$$1,\n workInProgress,\n updateExpirationTime,\n context,\n renderExpirationTime\n )\n );\n case 3:\n return (\n pushHostRootContext(workInProgress),\n (updateExpirationTime = workInProgress.updateQueue),\n invariant(\n null !== updateExpirationTime,\n \"If the root does not have an updateQueue, we should have already bailed out. This error is likely caused by a bug in React. Please file an issue.\"\n ),\n (context = workInProgress.memoizedState),\n (context = null !== context ? context.element : null),\n processUpdateQueue(\n workInProgress,\n updateExpirationTime,\n workInProgress.pendingProps,\n null,\n renderExpirationTime\n ),\n (updateExpirationTime = workInProgress.memoizedState.element),\n updateExpirationTime === context\n ? (workInProgress = bailoutOnAlreadyFinishedWork(\n current$$1,\n workInProgress,\n renderExpirationTime\n ))\n : (reconcileChildren(\n current$$1,\n workInProgress,\n updateExpirationTime,\n renderExpirationTime\n ),\n (workInProgress = workInProgress.child)),\n workInProgress\n );\n case 5:\n return (\n pushHostContext(workInProgress),\n null === current$$1 && tryToClaimNextHydratableInstance(workInProgress),\n (updateExpirationTime = workInProgress.pendingProps.children),\n markRef(current$$1, workInProgress),\n reconcileChildren(\n current$$1,\n workInProgress,\n updateExpirationTime,\n renderExpirationTime\n ),\n (workInProgress = workInProgress.child),\n workInProgress\n );\n case 6:\n return (\n null === current$$1 && tryToClaimNextHydratableInstance(workInProgress),\n null\n );\n case 13:\n return updateSuspenseComponent(\n current$$1,\n workInProgress,\n renderExpirationTime\n );\n case 4:\n return (\n pushHostContainer(\n workInProgress,\n workInProgress.stateNode.containerInfo\n ),\n (updateExpirationTime = workInProgress.pendingProps),\n null === current$$1\n ? (workInProgress.child = reconcileChildFibers(\n workInProgress,\n null,\n updateExpirationTime,\n renderExpirationTime\n ))\n : reconcileChildren(\n current$$1,\n workInProgress,\n updateExpirationTime,\n renderExpirationTime\n ),\n workInProgress.child\n );\n case 11:\n return (\n (updateExpirationTime = workInProgress.type),\n (context = workInProgress.pendingProps),\n (context =\n workInProgress.elementType === updateExpirationTime\n ? context\n : resolveDefaultProps(updateExpirationTime, context)),\n updateForwardRef(\n current$$1,\n workInProgress,\n updateExpirationTime,\n context,\n renderExpirationTime\n )\n );\n case 7:\n return (\n reconcileChildren(\n current$$1,\n workInProgress,\n workInProgress.pendingProps,\n renderExpirationTime\n ),\n workInProgress.child\n );\n case 8:\n return (\n reconcileChildren(\n current$$1,\n workInProgress,\n workInProgress.pendingProps.children,\n renderExpirationTime\n ),\n workInProgress.child\n );\n case 12:\n return (\n reconcileChildren(\n current$$1,\n workInProgress,\n workInProgress.pendingProps.children,\n renderExpirationTime\n ),\n workInProgress.child\n );\n case 10:\n a: {\n updateExpirationTime = workInProgress.type._context;\n context = workInProgress.pendingProps;\n getDerivedStateFromProps = workInProgress.memoizedProps;\n hasContext = context.value;\n pushProvider(workInProgress, hasContext);\n if (null !== getDerivedStateFromProps) {\n var oldValue = getDerivedStateFromProps.value;\n hasContext =\n (oldValue === hasContext &&\n (0 !== oldValue || 1 / oldValue === 1 / hasContext)) ||\n (oldValue !== oldValue && hasContext !== hasContext)\n ? 0\n : (\"function\" ===\n typeof updateExpirationTime._calculateChangedBits\n ? updateExpirationTime._calculateChangedBits(\n oldValue,\n hasContext\n )\n : 1073741823) | 0;\n if (0 === hasContext) {\n if (\n getDerivedStateFromProps.children === context.children &&\n !didPerformWorkStackCursor.current\n ) {\n workInProgress = bailoutOnAlreadyFinishedWork(\n current$$1,\n workInProgress,\n renderExpirationTime\n );\n break a;\n }\n } else\n for (\n getDerivedStateFromProps = workInProgress.child,\n null !== getDerivedStateFromProps &&\n (getDerivedStateFromProps.return = workInProgress);\n null !== getDerivedStateFromProps;\n\n ) {\n oldValue = getDerivedStateFromProps.firstContextDependency;\n if (null !== oldValue) {\n do {\n if (\n oldValue.context === updateExpirationTime &&\n 0 !== (oldValue.observedBits & hasContext)\n ) {\n if (1 === getDerivedStateFromProps.tag) {\n var nextFiber = createUpdate(renderExpirationTime);\n nextFiber.tag = 2;\n enqueueUpdate(getDerivedStateFromProps, nextFiber);\n }\n getDerivedStateFromProps.expirationTime <\n renderExpirationTime &&\n (getDerivedStateFromProps.expirationTime = renderExpirationTime);\n nextFiber = getDerivedStateFromProps.alternate;\n null !== nextFiber &&\n nextFiber.expirationTime < renderExpirationTime &&\n (nextFiber.expirationTime = renderExpirationTime);\n for (\n var node = getDerivedStateFromProps.return;\n null !== node;\n\n ) {\n nextFiber = node.alternate;\n if (node.childExpirationTime < renderExpirationTime)\n (node.childExpirationTime = renderExpirationTime),\n null !== nextFiber &&\n nextFiber.childExpirationTime <\n renderExpirationTime &&\n (nextFiber.childExpirationTime = renderExpirationTime);\n else if (\n null !== nextFiber &&\n nextFiber.childExpirationTime < renderExpirationTime\n )\n nextFiber.childExpirationTime = renderExpirationTime;\n else break;\n node = node.return;\n }\n }\n nextFiber = getDerivedStateFromProps.child;\n oldValue = oldValue.next;\n } while (null !== oldValue);\n } else\n nextFiber =\n 10 === getDerivedStateFromProps.tag\n ? getDerivedStateFromProps.type === workInProgress.type\n ? null\n : getDerivedStateFromProps.child\n : getDerivedStateFromProps.child;\n if (null !== nextFiber)\n nextFiber.return = getDerivedStateFromProps;\n else\n for (\n nextFiber = getDerivedStateFromProps;\n null !== nextFiber;\n\n ) {\n if (nextFiber === workInProgress) {\n nextFiber = null;\n break;\n }\n getDerivedStateFromProps = nextFiber.sibling;\n if (null !== getDerivedStateFromProps) {\n getDerivedStateFromProps.return = nextFiber.return;\n nextFiber = getDerivedStateFromProps;\n break;\n }\n nextFiber = nextFiber.return;\n }\n getDerivedStateFromProps = nextFiber;\n }\n }\n reconcileChildren(\n current$$1,\n workInProgress,\n context.children,\n renderExpirationTime\n );\n workInProgress = workInProgress.child;\n }\n return workInProgress;\n case 9:\n return (\n (context = workInProgress.type),\n (hasContext = workInProgress.pendingProps),\n (updateExpirationTime = hasContext.children),\n prepareToReadContext(workInProgress, renderExpirationTime),\n (context = readContext(context, hasContext.unstable_observedBits)),\n (updateExpirationTime = updateExpirationTime(context)),\n (workInProgress.effectTag |= 1),\n reconcileChildren(\n current$$1,\n workInProgress,\n updateExpirationTime,\n renderExpirationTime\n ),\n workInProgress.child\n );\n case 14:\n return (\n (context = workInProgress.type),\n (hasContext = resolveDefaultProps(\n context.type,\n workInProgress.pendingProps\n )),\n updateMemoComponent(\n current$$1,\n workInProgress,\n context,\n hasContext,\n updateExpirationTime,\n renderExpirationTime\n )\n );\n case 15:\n return updateSimpleMemoComponent(\n current$$1,\n workInProgress,\n workInProgress.type,\n workInProgress.pendingProps,\n updateExpirationTime,\n renderExpirationTime\n );\n case 17:\n return (\n (updateExpirationTime = workInProgress.type),\n (context = workInProgress.pendingProps),\n (context =\n workInProgress.elementType === updateExpirationTime\n ? context\n : resolveDefaultProps(updateExpirationTime, context)),\n null !== current$$1 &&\n ((current$$1.alternate = null),\n (workInProgress.alternate = null),\n (workInProgress.effectTag |= 2)),\n (workInProgress.tag = 1),\n isContextProvider(updateExpirationTime)\n ? ((current$$1 = !0), pushContextProvider(workInProgress))\n : (current$$1 = !1),\n prepareToReadContext(workInProgress, renderExpirationTime),\n constructClassInstance(\n workInProgress,\n updateExpirationTime,\n context,\n renderExpirationTime\n ),\n mountClassInstance(\n workInProgress,\n updateExpirationTime,\n context,\n renderExpirationTime\n ),\n finishClassComponent(\n null,\n workInProgress,\n updateExpirationTime,\n !0,\n current$$1,\n renderExpirationTime\n )\n );\n default:\n invariant(\n !1,\n \"Unknown unit of work tag. This error is likely caused by a bug in React. Please file an issue.\"\n );\n }\n}\nvar appendAllChildren = void 0,\n updateHostContainer = void 0,\n updateHostComponent$1 = void 0,\n updateHostText$1 = void 0;\nappendAllChildren = function(\n parent,\n workInProgress,\n needsVisibilityToggle,\n isHidden\n) {\n for (var node = workInProgress.child; null !== node; ) {\n a: if (5 === node.tag) {\n var instance = node.stateNode;\n if (needsVisibilityToggle) {\n var props = node.memoizedProps,\n type = node.type;\n instance = isHidden\n ? cloneHiddenInstance(instance, type, props, node)\n : cloneUnhiddenInstance(instance, type, props, node);\n node.stateNode = instance;\n }\n FabricUIManager.appendChild(parent.node, instance.node);\n } else if (6 === node.tag) {\n instance = node.stateNode;\n if (needsVisibilityToggle) {\n instance = node.memoizedProps;\n props = requiredContext(rootInstanceStackCursor.current);\n type = requiredContext(contextStackCursor$1.current);\n if (isHidden) throw Error(\"Not yet implemented.\");\n instance = createTextInstance(instance, props, type, workInProgress);\n node.stateNode = instance;\n }\n FabricUIManager.appendChild(parent.node, instance.node);\n } else if (4 !== node.tag) {\n if (\n 13 === node.tag &&\n ((props = node.alternate),\n null !== props &&\n ((instance = null !== node.memoizedState),\n (null !== props.memoizedState) !== instance))\n ) {\n props = instance ? node.child : node;\n null !== props && appendAllChildren(parent, props, !0, instance);\n break a;\n }\n if (null !== node.child) {\n node.child.return = node;\n node = node.child;\n continue;\n }\n }\n if (node === workInProgress) break;\n for (; null === node.sibling; ) {\n if (null === node.return || node.return === workInProgress) return;\n node = node.return;\n }\n node.sibling.return = node.return;\n node = node.sibling;\n }\n};\nfunction appendAllChildrenToContainer(\n containerChildSet,\n workInProgress,\n needsVisibilityToggle,\n isHidden\n) {\n for (var node = workInProgress.child; null !== node; ) {\n a: if (5 === node.tag) {\n var instance = node.stateNode;\n if (needsVisibilityToggle) {\n var props = node.memoizedProps,\n type = node.type;\n instance = isHidden\n ? cloneHiddenInstance(instance, type, props, node)\n : cloneUnhiddenInstance(instance, type, props, node);\n node.stateNode = instance;\n }\n FabricUIManager.appendChildToSet(containerChildSet, instance.node);\n } else if (6 === node.tag) {\n instance = node.stateNode;\n if (needsVisibilityToggle) {\n instance = node.memoizedProps;\n props = requiredContext(rootInstanceStackCursor.current);\n type = requiredContext(contextStackCursor$1.current);\n if (isHidden) throw Error(\"Not yet implemented.\");\n instance = createTextInstance(instance, props, type, workInProgress);\n node.stateNode = instance;\n }\n FabricUIManager.appendChildToSet(containerChildSet, instance.node);\n } else if (4 !== node.tag) {\n if (\n 13 === node.tag &&\n ((props = node.alternate),\n null !== props &&\n ((instance = null !== node.memoizedState),\n (null !== props.memoizedState) !== instance))\n ) {\n props = instance ? node.child : node;\n null !== props &&\n appendAllChildrenToContainer(containerChildSet, props, !0, instance);\n break a;\n }\n if (null !== node.child) {\n node.child.return = node;\n node = node.child;\n continue;\n }\n }\n if (node === workInProgress) break;\n for (; null === node.sibling; ) {\n if (null === node.return || node.return === workInProgress) return;\n node = node.return;\n }\n node.sibling.return = node.return;\n node = node.sibling;\n }\n}\nupdateHostContainer = function(workInProgress) {\n var portalOrRoot = workInProgress.stateNode;\n if (null !== workInProgress.firstEffect) {\n var container = portalOrRoot.containerInfo,\n newChildSet = FabricUIManager.createChildSet(container);\n appendAllChildrenToContainer(newChildSet, workInProgress, !1, !1);\n portalOrRoot.pendingChildren = newChildSet;\n workInProgress.effectTag |= 4;\n FabricUIManager.completeRoot(container, newChildSet);\n }\n};\nupdateHostComponent$1 = function(current, workInProgress, type, newProps) {\n type = current.stateNode;\n var oldProps = current.memoizedProps;\n if ((current = null === workInProgress.firstEffect) && oldProps === newProps)\n workInProgress.stateNode = type;\n else {\n var recyclableInstance = workInProgress.stateNode;\n requiredContext(contextStackCursor$1.current);\n var updatePayload = null;\n oldProps !== newProps &&\n ((oldProps = diffProperties(\n null,\n oldProps,\n newProps,\n recyclableInstance.canonical.viewConfig.validAttributes\n )),\n (recyclableInstance.canonical.currentProps = newProps),\n (updatePayload = oldProps));\n current && null === updatePayload\n ? (workInProgress.stateNode = type)\n : ((newProps = updatePayload),\n (recyclableInstance = type.node),\n (type = {\n node: current\n ? null !== newProps\n ? FabricUIManager.cloneNodeWithNewProps(\n recyclableInstance,\n newProps\n )\n : FabricUIManager.cloneNode(recyclableInstance)\n : null !== newProps\n ? FabricUIManager.cloneNodeWithNewChildrenAndProps(\n recyclableInstance,\n newProps\n )\n : FabricUIManager.cloneNodeWithNewChildren(recyclableInstance),\n canonical: type.canonical\n }),\n (workInProgress.stateNode = type),\n current\n ? (workInProgress.effectTag |= 4)\n : appendAllChildren(type, workInProgress, !1, !1));\n }\n};\nupdateHostText$1 = function(current, workInProgress, oldText, newText) {\n oldText !== newText &&\n ((current = requiredContext(rootInstanceStackCursor.current)),\n (oldText = requiredContext(contextStackCursor$1.current)),\n (workInProgress.stateNode = createTextInstance(\n newText,\n current,\n oldText,\n workInProgress\n )),\n (workInProgress.effectTag |= 4));\n};\nfunction logCapturedError(capturedError) {\n var componentStack = capturedError.componentStack,\n error = capturedError.error;\n if (error instanceof Error) {\n capturedError = error.message;\n var name = error.name;\n try {\n error.message =\n (capturedError ? name + \": \" + capturedError : name) +\n \"\\n\\nThis error is located at:\" +\n componentStack;\n } catch (e) {}\n } else\n error =\n \"string\" === typeof error\n ? Error(error + \"\\n\\nThis error is located at:\" + componentStack)\n : Error(\"Unspecified error at:\" + componentStack);\n ExceptionsManager.handleException(error, !1);\n}\nfunction logError(boundary, errorInfo) {\n var source = errorInfo.source,\n stack = errorInfo.stack;\n null === stack &&\n null !== source &&\n (stack = getStackByFiberInDevAndProd(source));\n errorInfo = {\n componentName: null !== source ? getComponentName(source.type) : null,\n componentStack: null !== stack ? stack : \"\",\n error: errorInfo.value,\n errorBoundary: null,\n errorBoundaryName: null,\n errorBoundaryFound: !1,\n willRetry: !1\n };\n null !== boundary &&\n 1 === boundary.tag &&\n ((errorInfo.errorBoundary = boundary.stateNode),\n (errorInfo.errorBoundaryName = getComponentName(boundary.type)),\n (errorInfo.errorBoundaryFound = !0),\n (errorInfo.willRetry = !0));\n try {\n logCapturedError(errorInfo);\n } catch (e) {\n setTimeout(function() {\n throw e;\n });\n }\n}\nfunction safelyDetachRef(current$$1) {\n var ref = current$$1.ref;\n if (null !== ref)\n if (\"function\" === typeof ref)\n try {\n ref(null);\n } catch (refError) {\n captureCommitPhaseError(current$$1, refError);\n }\n else ref.current = null;\n}\nfunction commitWork(current$$1, finishedWork) {\n switch (finishedWork.tag) {\n case 0:\n case 11:\n case 14:\n case 15:\n return;\n }\n switch (finishedWork.tag) {\n case 1:\n break;\n case 5:\n break;\n case 6:\n break;\n case 3:\n case 4:\n break;\n default:\n invariant(\n !1,\n \"This unit of work tag should not have side-effects. This error is likely caused by a bug in React. Please file an issue.\"\n );\n }\n}\nfunction createRootErrorUpdate(fiber, errorInfo, expirationTime) {\n expirationTime = createUpdate(expirationTime);\n expirationTime.tag = 3;\n expirationTime.payload = { element: null };\n var error = errorInfo.value;\n expirationTime.callback = function() {\n onUncaughtError(error);\n logError(fiber, errorInfo);\n };\n return expirationTime;\n}\nfunction createClassErrorUpdate(fiber, errorInfo, expirationTime) {\n expirationTime = createUpdate(expirationTime);\n expirationTime.tag = 3;\n var getDerivedStateFromError = fiber.type.getDerivedStateFromError;\n if (\"function\" === typeof getDerivedStateFromError) {\n var error$jscomp$0 = errorInfo.value;\n expirationTime.payload = function() {\n return getDerivedStateFromError(error$jscomp$0);\n };\n }\n var inst = fiber.stateNode;\n null !== inst &&\n \"function\" === typeof inst.componentDidCatch &&\n (expirationTime.callback = function() {\n \"function\" !== typeof getDerivedStateFromError &&\n (null === legacyErrorBoundariesThatAlreadyFailed\n ? (legacyErrorBoundariesThatAlreadyFailed = new Set([this]))\n : legacyErrorBoundariesThatAlreadyFailed.add(this));\n var error = errorInfo.value,\n stack = errorInfo.stack;\n logError(fiber, errorInfo);\n this.componentDidCatch(error, {\n componentStack: null !== stack ? stack : \"\"\n });\n });\n return expirationTime;\n}\nfunction unwindWork(workInProgress) {\n switch (workInProgress.tag) {\n case 1:\n isContextProvider(workInProgress.type) && popContext(workInProgress);\n var effectTag = workInProgress.effectTag;\n return effectTag & 2048\n ? ((workInProgress.effectTag = (effectTag & -2049) | 64),\n workInProgress)\n : null;\n case 3:\n return (\n popHostContainer(workInProgress),\n popTopLevelContextObject(workInProgress),\n (effectTag = workInProgress.effectTag),\n invariant(\n 0 === (effectTag & 64),\n \"The root failed to unmount after an error. This is likely a bug in React. Please file an issue.\"\n ),\n (workInProgress.effectTag = (effectTag & -2049) | 64),\n workInProgress\n );\n case 5:\n return popHostContext(workInProgress), null;\n case 13:\n return (\n (effectTag = workInProgress.effectTag),\n effectTag & 2048\n ? ((workInProgress.effectTag = (effectTag & -2049) | 64),\n workInProgress)\n : null\n );\n case 4:\n return popHostContainer(workInProgress), null;\n case 10:\n return popProvider(workInProgress), null;\n default:\n return null;\n }\n}\nvar DispatcherWithoutHooks = { readContext: readContext },\n ReactCurrentOwner$2 = ReactSharedInternals.ReactCurrentOwner,\n isWorking = !1,\n nextUnitOfWork = null,\n nextRoot = null,\n nextRenderExpirationTime = 0,\n nextLatestAbsoluteTimeoutMs = -1,\n nextRenderDidError = !1,\n nextEffect = null,\n isCommitting$1 = !1,\n passiveEffectCallbackHandle = null,\n passiveEffectCallback = null,\n legacyErrorBoundariesThatAlreadyFailed = null;\nfunction resetStack() {\n if (null !== nextUnitOfWork)\n for (\n var interruptedWork = nextUnitOfWork.return;\n null !== interruptedWork;\n\n ) {\n var interruptedWork$jscomp$0 = interruptedWork;\n switch (interruptedWork$jscomp$0.tag) {\n case 1:\n var childContextTypes =\n interruptedWork$jscomp$0.type.childContextTypes;\n null !== childContextTypes &&\n void 0 !== childContextTypes &&\n popContext(interruptedWork$jscomp$0);\n break;\n case 3:\n popHostContainer(interruptedWork$jscomp$0);\n popTopLevelContextObject(interruptedWork$jscomp$0);\n break;\n case 5:\n popHostContext(interruptedWork$jscomp$0);\n break;\n case 4:\n popHostContainer(interruptedWork$jscomp$0);\n break;\n case 10:\n popProvider(interruptedWork$jscomp$0);\n }\n interruptedWork = interruptedWork.return;\n }\n nextRoot = null;\n nextRenderExpirationTime = 0;\n nextLatestAbsoluteTimeoutMs = -1;\n nextRenderDidError = !1;\n nextUnitOfWork = null;\n}\nfunction flushPassiveEffects() {\n null !== passiveEffectCallback &&\n (scheduler.unstable_cancelCallback(passiveEffectCallbackHandle),\n passiveEffectCallback());\n}\nfunction completeUnitOfWork(workInProgress) {\n for (;;) {\n var current$$1 = workInProgress.alternate,\n returnFiber = workInProgress.return,\n siblingFiber = workInProgress.sibling;\n if (0 === (workInProgress.effectTag & 1024)) {\n nextUnitOfWork = workInProgress;\n a: {\n var current = current$$1;\n current$$1 = workInProgress;\n var renderExpirationTime = nextRenderExpirationTime;\n var instance = current$$1.pendingProps;\n switch (current$$1.tag) {\n case 2:\n break;\n case 16:\n break;\n case 15:\n case 0:\n break;\n case 1:\n isContextProvider(current$$1.type) && popContext(current$$1);\n break;\n case 3:\n popHostContainer(current$$1);\n popTopLevelContextObject(current$$1);\n instance = current$$1.stateNode;\n instance.pendingContext &&\n ((instance.context = instance.pendingContext),\n (instance.pendingContext = null));\n if (null === current || null === current.child)\n current$$1.effectTag &= -3;\n updateHostContainer(current$$1);\n break;\n case 5:\n popHostContext(current$$1);\n renderExpirationTime = requiredContext(\n rootInstanceStackCursor.current\n );\n var type = current$$1.type;\n if (null !== current && null != current$$1.stateNode)\n updateHostComponent$1(\n current,\n current$$1,\n type,\n instance,\n renderExpirationTime\n ),\n current.ref !== current$$1.ref && (current$$1.effectTag |= 128);\n else if (instance) {\n var currentHostContext = requiredContext(\n contextStackCursor$1.current\n ),\n internalInstanceHandle = current$$1;\n current = nextReactTag;\n nextReactTag += 2;\n var viewConfig = ReactNativeViewConfigRegistry.get(type);\n invariant(\n \"RCTView\" !== type || !currentHostContext.isInAParentText,\n \"Nesting of within is not currently supported.\"\n );\n type = diffProperties(\n null,\n emptyObject,\n instance,\n viewConfig.validAttributes\n );\n renderExpirationTime = FabricUIManager.createNode(\n current,\n viewConfig.uiViewClassName,\n renderExpirationTime,\n type,\n internalInstanceHandle\n );\n instance = new ReactFabricHostComponent(\n current,\n viewConfig,\n instance\n );\n instance = { node: renderExpirationTime, canonical: instance };\n appendAllChildren(instance, current$$1, !1, !1);\n current$$1.stateNode = instance;\n null !== current$$1.ref && (current$$1.effectTag |= 128);\n } else\n invariant(\n null !== current$$1.stateNode,\n \"We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.\"\n );\n break;\n case 6:\n current && null != current$$1.stateNode\n ? updateHostText$1(\n current,\n current$$1,\n current.memoizedProps,\n instance\n )\n : (\"string\" !== typeof instance &&\n invariant(\n null !== current$$1.stateNode,\n \"We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.\"\n ),\n (current = requiredContext(rootInstanceStackCursor.current)),\n (renderExpirationTime = requiredContext(\n contextStackCursor$1.current\n )),\n (current$$1.stateNode = createTextInstance(\n instance,\n current,\n renderExpirationTime,\n current$$1\n )));\n break;\n case 11:\n break;\n case 13:\n instance = current$$1.memoizedState;\n if (0 !== (current$$1.effectTag & 64)) {\n current$$1.expirationTime = renderExpirationTime;\n nextUnitOfWork = current$$1;\n break a;\n }\n instance = null !== instance;\n viewConfig = null !== current && null !== current.memoizedState;\n null !== current &&\n !instance &&\n viewConfig &&\n ((current = current.child.sibling),\n null !== current &&\n reconcileChildFibers(\n current$$1,\n current,\n null,\n renderExpirationTime\n ));\n if (\n instance !== viewConfig ||\n (0 === (current$$1.effectTag & 1) && instance)\n )\n current$$1.effectTag |= 4;\n break;\n case 7:\n break;\n case 8:\n break;\n case 12:\n break;\n case 4:\n popHostContainer(current$$1);\n updateHostContainer(current$$1);\n break;\n case 10:\n popProvider(current$$1);\n break;\n case 9:\n break;\n case 14:\n break;\n case 17:\n isContextProvider(current$$1.type) && popContext(current$$1);\n break;\n default:\n invariant(\n !1,\n \"Unknown unit of work tag. This error is likely caused by a bug in React. Please file an issue.\"\n );\n }\n nextUnitOfWork = null;\n }\n current$$1 = workInProgress;\n if (\n 1 === nextRenderExpirationTime ||\n 1 !== current$$1.childExpirationTime\n ) {\n instance = 0;\n for (current = current$$1.child; null !== current; )\n (renderExpirationTime = current.expirationTime),\n (viewConfig = current.childExpirationTime),\n renderExpirationTime > instance &&\n (instance = renderExpirationTime),\n viewConfig > instance && (instance = viewConfig),\n (current = current.sibling);\n current$$1.childExpirationTime = instance;\n }\n if (null !== nextUnitOfWork) return nextUnitOfWork;\n null !== returnFiber &&\n 0 === (returnFiber.effectTag & 1024) &&\n (null === returnFiber.firstEffect &&\n (returnFiber.firstEffect = workInProgress.firstEffect),\n null !== workInProgress.lastEffect &&\n (null !== returnFiber.lastEffect &&\n (returnFiber.lastEffect.nextEffect = workInProgress.firstEffect),\n (returnFiber.lastEffect = workInProgress.lastEffect)),\n 1 < workInProgress.effectTag &&\n (null !== returnFiber.lastEffect\n ? (returnFiber.lastEffect.nextEffect = workInProgress)\n : (returnFiber.firstEffect = workInProgress),\n (returnFiber.lastEffect = workInProgress)));\n } else {\n workInProgress = unwindWork(workInProgress, nextRenderExpirationTime);\n if (null !== workInProgress)\n return (workInProgress.effectTag &= 1023), workInProgress;\n null !== returnFiber &&\n ((returnFiber.firstEffect = returnFiber.lastEffect = null),\n (returnFiber.effectTag |= 1024));\n }\n if (null !== siblingFiber) return siblingFiber;\n if (null !== returnFiber) workInProgress = returnFiber;\n else break;\n }\n return null;\n}\nfunction performUnitOfWork(workInProgress) {\n var next = beginWork(\n workInProgress.alternate,\n workInProgress,\n nextRenderExpirationTime\n );\n workInProgress.memoizedProps = workInProgress.pendingProps;\n null === next && (next = completeUnitOfWork(workInProgress));\n ReactCurrentOwner$2.current = null;\n return next;\n}\nfunction renderRoot(root$jscomp$0, isYieldy) {\n invariant(\n !isWorking,\n \"renderRoot was called recursively. This error is likely caused by a bug in React. Please file an issue.\"\n );\n flushPassiveEffects();\n isWorking = !0;\n ReactCurrentOwner$2.currentDispatcher = DispatcherWithoutHooks;\n var expirationTime = root$jscomp$0.nextExpirationTimeToWorkOn;\n if (\n expirationTime !== nextRenderExpirationTime ||\n root$jscomp$0 !== nextRoot ||\n null === nextUnitOfWork\n )\n resetStack(),\n (nextRoot = root$jscomp$0),\n (nextRenderExpirationTime = expirationTime),\n (nextUnitOfWork = createWorkInProgress(\n nextRoot.current,\n null,\n nextRenderExpirationTime\n )),\n (root$jscomp$0.pendingCommitExpirationTime = 0);\n var didFatal = !1;\n do {\n try {\n if (isYieldy)\n for (; null !== nextUnitOfWork && !shouldYieldToRenderer(); )\n nextUnitOfWork = performUnitOfWork(nextUnitOfWork);\n else\n for (; null !== nextUnitOfWork; )\n nextUnitOfWork = performUnitOfWork(nextUnitOfWork);\n } catch (thrownValue) {\n if (\n ((lastContextWithAllBitsObserved = lastContextDependency = currentlyRenderingFiber = null),\n null === nextUnitOfWork)\n )\n (didFatal = !0), onUncaughtError(thrownValue);\n else {\n invariant(\n null !== nextUnitOfWork,\n \"Failed to replay rendering after an error. This is likely caused by a bug in React. Please file an issue with a reproducing case to help us find it.\"\n );\n var sourceFiber = nextUnitOfWork,\n returnFiber = sourceFiber.return;\n if (null === returnFiber) (didFatal = !0), onUncaughtError(thrownValue);\n else {\n a: {\n var root = root$jscomp$0,\n returnFiber$jscomp$0 = returnFiber,\n sourceFiber$jscomp$0 = sourceFiber,\n value = thrownValue;\n returnFiber = nextRenderExpirationTime;\n sourceFiber$jscomp$0.effectTag |= 1024;\n sourceFiber$jscomp$0.firstEffect = sourceFiber$jscomp$0.lastEffect = null;\n if (\n null !== value &&\n \"object\" === typeof value &&\n \"function\" === typeof value.then\n ) {\n var thenable = value;\n value = returnFiber$jscomp$0;\n var earliestTimeoutMs = -1,\n startTimeMs = -1;\n do {\n if (13 === value.tag) {\n var current$$1 = value.alternate;\n if (\n null !== current$$1 &&\n ((current$$1 = current$$1.memoizedState),\n null !== current$$1)\n ) {\n startTimeMs = 10 * (1073741822 - current$$1.timedOutAt);\n break;\n }\n current$$1 = value.pendingProps.maxDuration;\n if (\"number\" === typeof current$$1)\n if (0 >= current$$1) earliestTimeoutMs = 0;\n else if (\n -1 === earliestTimeoutMs ||\n current$$1 < earliestTimeoutMs\n )\n earliestTimeoutMs = current$$1;\n }\n value = value.return;\n } while (null !== value);\n value = returnFiber$jscomp$0;\n do {\n if ((current$$1 = 13 === value.tag))\n current$$1 =\n void 0 === value.memoizedProps.fallback\n ? !1\n : null === value.memoizedState;\n if (current$$1) {\n returnFiber$jscomp$0 = retrySuspendedRoot.bind(\n null,\n root,\n value,\n sourceFiber$jscomp$0,\n 0 === (value.mode & 1) ? 1073741823 : returnFiber\n );\n thenable.then(returnFiber$jscomp$0, returnFiber$jscomp$0);\n if (0 === (value.mode & 1)) {\n value.effectTag |= 64;\n reconcileChildren(\n sourceFiber$jscomp$0.alternate,\n sourceFiber$jscomp$0,\n null,\n returnFiber\n );\n sourceFiber$jscomp$0.effectTag &= -1025;\n sourceFiber$jscomp$0.effectTag &= -933;\n 1 === sourceFiber$jscomp$0.tag &&\n null === sourceFiber$jscomp$0.alternate &&\n (sourceFiber$jscomp$0.tag = 17);\n sourceFiber$jscomp$0.expirationTime = returnFiber;\n break a;\n }\n -1 === earliestTimeoutMs\n ? (root = 1073741823)\n : (-1 === startTimeMs &&\n (startTimeMs =\n 10 *\n (1073741822 -\n findEarliestOutstandingPriorityLevel(\n root,\n returnFiber\n )) -\n 5e3),\n (root = startTimeMs + earliestTimeoutMs));\n 0 <= root &&\n nextLatestAbsoluteTimeoutMs < root &&\n (nextLatestAbsoluteTimeoutMs = root);\n value.effectTag |= 2048;\n value.expirationTime = returnFiber;\n break a;\n }\n value = value.return;\n } while (null !== value);\n value = Error(\n (getComponentName(sourceFiber$jscomp$0.type) ||\n \"A React component\") +\n \" suspended while rendering, but no fallback UI was specified.\\n\\nAdd a component higher in the tree to provide a loading indicator or placeholder to display.\" +\n getStackByFiberInDevAndProd(sourceFiber$jscomp$0)\n );\n }\n nextRenderDidError = !0;\n value = createCapturedValue(value, sourceFiber$jscomp$0);\n root = returnFiber$jscomp$0;\n do {\n switch (root.tag) {\n case 3:\n sourceFiber$jscomp$0 = value;\n root.effectTag |= 2048;\n root.expirationTime = returnFiber;\n returnFiber = createRootErrorUpdate(\n root,\n sourceFiber$jscomp$0,\n returnFiber\n );\n enqueueCapturedUpdate(root, returnFiber);\n break a;\n case 1:\n if (\n ((sourceFiber$jscomp$0 = value),\n (returnFiber$jscomp$0 = root.type),\n (thenable = root.stateNode),\n 0 === (root.effectTag & 64) &&\n (\"function\" ===\n typeof returnFiber$jscomp$0.getDerivedStateFromError ||\n (null !== thenable &&\n \"function\" === typeof thenable.componentDidCatch &&\n (null === legacyErrorBoundariesThatAlreadyFailed ||\n !legacyErrorBoundariesThatAlreadyFailed.has(\n thenable\n )))))\n ) {\n root.effectTag |= 2048;\n root.expirationTime = returnFiber;\n returnFiber = createClassErrorUpdate(\n root,\n sourceFiber$jscomp$0,\n returnFiber\n );\n enqueueCapturedUpdate(root, returnFiber);\n break a;\n }\n }\n root = root.return;\n } while (null !== root);\n }\n nextUnitOfWork = completeUnitOfWork(sourceFiber);\n continue;\n }\n }\n }\n break;\n } while (1);\n isWorking = !1;\n lastContextWithAllBitsObserved = lastContextDependency = currentlyRenderingFiber = ReactCurrentOwner$2.currentDispatcher = null;\n if (didFatal) (nextRoot = null), (root$jscomp$0.finishedWork = null);\n else if (null !== nextUnitOfWork) root$jscomp$0.finishedWork = null;\n else {\n didFatal = root$jscomp$0.current.alternate;\n invariant(\n null !== didFatal,\n \"Finished root should have a work-in-progress. This error is likely caused by a bug in React. Please file an issue.\"\n );\n nextRoot = null;\n if (nextRenderDidError) {\n sourceFiber = root$jscomp$0.latestPendingTime;\n returnFiber = root$jscomp$0.latestSuspendedTime;\n root = root$jscomp$0.latestPingedTime;\n if (\n (0 !== sourceFiber && sourceFiber < expirationTime) ||\n (0 !== returnFiber && returnFiber < expirationTime) ||\n (0 !== root && root < expirationTime)\n ) {\n markSuspendedPriorityLevel(root$jscomp$0, expirationTime);\n onSuspend(\n root$jscomp$0,\n didFatal,\n expirationTime,\n root$jscomp$0.expirationTime,\n -1\n );\n return;\n }\n if (!root$jscomp$0.didError && isYieldy) {\n root$jscomp$0.didError = !0;\n expirationTime = root$jscomp$0.nextExpirationTimeToWorkOn = expirationTime;\n isYieldy = root$jscomp$0.expirationTime = 1073741823;\n onSuspend(root$jscomp$0, didFatal, expirationTime, isYieldy, -1);\n return;\n }\n }\n isYieldy && -1 !== nextLatestAbsoluteTimeoutMs\n ? (markSuspendedPriorityLevel(root$jscomp$0, expirationTime),\n (isYieldy =\n 10 *\n (1073741822 -\n findEarliestOutstandingPriorityLevel(\n root$jscomp$0,\n expirationTime\n ))),\n isYieldy < nextLatestAbsoluteTimeoutMs &&\n (nextLatestAbsoluteTimeoutMs = isYieldy),\n (isYieldy = 10 * (1073741822 - requestCurrentTime())),\n (isYieldy = nextLatestAbsoluteTimeoutMs - isYieldy),\n onSuspend(\n root$jscomp$0,\n didFatal,\n expirationTime,\n root$jscomp$0.expirationTime,\n 0 > isYieldy ? 0 : isYieldy\n ))\n : ((root$jscomp$0.pendingCommitExpirationTime = expirationTime),\n (root$jscomp$0.finishedWork = didFatal));\n }\n}\nfunction captureCommitPhaseError(sourceFiber, value) {\n for (var fiber = sourceFiber.return; null !== fiber; ) {\n switch (fiber.tag) {\n case 1:\n var instance = fiber.stateNode;\n if (\n \"function\" === typeof fiber.type.getDerivedStateFromError ||\n (\"function\" === typeof instance.componentDidCatch &&\n (null === legacyErrorBoundariesThatAlreadyFailed ||\n !legacyErrorBoundariesThatAlreadyFailed.has(instance)))\n ) {\n sourceFiber = createCapturedValue(value, sourceFiber);\n sourceFiber = createClassErrorUpdate(fiber, sourceFiber, 1073741823);\n enqueueUpdate(fiber, sourceFiber);\n scheduleWork(fiber, 1073741823);\n return;\n }\n break;\n case 3:\n sourceFiber = createCapturedValue(value, sourceFiber);\n sourceFiber = createRootErrorUpdate(fiber, sourceFiber, 1073741823);\n enqueueUpdate(fiber, sourceFiber);\n scheduleWork(fiber, 1073741823);\n return;\n }\n fiber = fiber.return;\n }\n 3 === sourceFiber.tag &&\n ((fiber = createCapturedValue(value, sourceFiber)),\n (fiber = createRootErrorUpdate(sourceFiber, fiber, 1073741823)),\n enqueueUpdate(sourceFiber, fiber),\n scheduleWork(sourceFiber, 1073741823));\n}\nfunction computeExpirationForFiber(currentTime, fiber) {\n isWorking\n ? (currentTime = isCommitting$1 ? 1073741823 : nextRenderExpirationTime)\n : fiber.mode & 1\n ? ((currentTime = isBatchingInteractiveUpdates\n ? 1073741822 - 10 * ((((1073741822 - currentTime + 15) / 10) | 0) + 1)\n : 1073741822 -\n 25 * ((((1073741822 - currentTime + 500) / 25) | 0) + 1)),\n null !== nextRoot &&\n currentTime === nextRenderExpirationTime &&\n --currentTime)\n : (currentTime = 1073741823);\n isBatchingInteractiveUpdates &&\n (0 === lowestPriorityPendingInteractiveExpirationTime ||\n currentTime < lowestPriorityPendingInteractiveExpirationTime) &&\n (lowestPriorityPendingInteractiveExpirationTime = currentTime);\n return currentTime;\n}\nfunction retrySuspendedRoot(root, boundaryFiber, sourceFiber, suspendedTime) {\n var retryTime = root.earliestSuspendedTime;\n var latestSuspendedTime = root.latestSuspendedTime;\n if (\n 0 !== retryTime &&\n suspendedTime <= retryTime &&\n suspendedTime >= latestSuspendedTime\n ) {\n latestSuspendedTime = retryTime = suspendedTime;\n root.didError = !1;\n var latestPingedTime = root.latestPingedTime;\n if (0 === latestPingedTime || latestPingedTime > latestSuspendedTime)\n root.latestPingedTime = latestSuspendedTime;\n findNextExpirationTimeToWorkOn(latestSuspendedTime, root);\n } else\n (retryTime = requestCurrentTime()),\n (retryTime = computeExpirationForFiber(retryTime, boundaryFiber)),\n markPendingPriorityLevel(root, retryTime);\n 0 !== (boundaryFiber.mode & 1) &&\n root === nextRoot &&\n nextRenderExpirationTime === suspendedTime &&\n (nextRoot = null);\n scheduleWorkToRoot(boundaryFiber, retryTime);\n 0 === (boundaryFiber.mode & 1) &&\n (scheduleWorkToRoot(sourceFiber, retryTime),\n 1 === sourceFiber.tag &&\n null !== sourceFiber.stateNode &&\n ((boundaryFiber = createUpdate(retryTime)),\n (boundaryFiber.tag = 2),\n enqueueUpdate(sourceFiber, boundaryFiber)));\n sourceFiber = root.expirationTime;\n 0 !== sourceFiber && requestWork(root, sourceFiber);\n}\nfunction scheduleWorkToRoot(fiber, expirationTime) {\n fiber.expirationTime < expirationTime &&\n (fiber.expirationTime = expirationTime);\n var alternate = fiber.alternate;\n null !== alternate &&\n alternate.expirationTime < expirationTime &&\n (alternate.expirationTime = expirationTime);\n var node = fiber.return,\n root = null;\n if (null === node && 3 === fiber.tag) root = fiber.stateNode;\n else\n for (; null !== node; ) {\n alternate = node.alternate;\n node.childExpirationTime < expirationTime &&\n (node.childExpirationTime = expirationTime);\n null !== alternate &&\n alternate.childExpirationTime < expirationTime &&\n (alternate.childExpirationTime = expirationTime);\n if (null === node.return && 3 === node.tag) {\n root = node.stateNode;\n break;\n }\n node = node.return;\n }\n return null === root ? null : root;\n}\nfunction scheduleWork(fiber, expirationTime) {\n fiber = scheduleWorkToRoot(fiber, expirationTime);\n null !== fiber &&\n (!isWorking &&\n 0 !== nextRenderExpirationTime &&\n expirationTime > nextRenderExpirationTime &&\n resetStack(),\n markPendingPriorityLevel(fiber, expirationTime),\n (isWorking && !isCommitting$1 && nextRoot === fiber) ||\n requestWork(fiber, fiber.expirationTime),\n nestedUpdateCount > NESTED_UPDATE_LIMIT &&\n ((nestedUpdateCount = 0),\n invariant(\n !1,\n \"Maximum update depth exceeded. This can happen when a component repeatedly calls setState inside componentWillUpdate or componentDidUpdate. React limits the number of nested updates to prevent infinite loops.\"\n )));\n}\nvar firstScheduledRoot = null,\n lastScheduledRoot = null,\n callbackExpirationTime = 0,\n callbackID = void 0,\n isRendering = !1,\n nextFlushedRoot = null,\n nextFlushedExpirationTime = 0,\n lowestPriorityPendingInteractiveExpirationTime = 0,\n hasUnhandledError = !1,\n unhandledError = null,\n isBatchingUpdates = !1,\n isUnbatchingUpdates = !1,\n isBatchingInteractiveUpdates = !1,\n completedBatches = null,\n originalStartTimeMs = now$1(),\n currentRendererTime = 1073741822 - ((originalStartTimeMs / 10) | 0),\n currentSchedulerTime = currentRendererTime,\n NESTED_UPDATE_LIMIT = 50,\n nestedUpdateCount = 0,\n lastCommittedRootDuringThisBatch = null;\nfunction recomputeCurrentRendererTime() {\n currentRendererTime =\n 1073741822 - (((now$1() - originalStartTimeMs) / 10) | 0);\n}\nfunction scheduleCallbackWithExpirationTime(root, expirationTime) {\n if (0 !== callbackExpirationTime) {\n if (expirationTime < callbackExpirationTime) return;\n null !== callbackID &&\n ((root = callbackID), (scheduledCallback = null), clearTimeout(root));\n }\n callbackExpirationTime = expirationTime;\n now$1();\n scheduledCallback = performAsyncWork;\n callbackID = setTimeout(setTimeoutCallback, 1);\n}\nfunction onSuspend(\n root,\n finishedWork,\n suspendedExpirationTime,\n rootExpirationTime,\n msUntilTimeout\n) {\n root.expirationTime = rootExpirationTime;\n 0 !== msUntilTimeout || shouldYieldToRenderer()\n ? 0 < msUntilTimeout &&\n (root.timeoutHandle = scheduleTimeout(\n onTimeout.bind(null, root, finishedWork, suspendedExpirationTime),\n msUntilTimeout\n ))\n : ((root.pendingCommitExpirationTime = suspendedExpirationTime),\n (root.finishedWork = finishedWork));\n}\nfunction onTimeout(root, finishedWork, suspendedExpirationTime) {\n root.pendingCommitExpirationTime = suspendedExpirationTime;\n root.finishedWork = finishedWork;\n recomputeCurrentRendererTime();\n currentSchedulerTime = currentRendererTime;\n invariant(\n !isRendering,\n \"work.commit(): Cannot commit while already rendering. This likely means you attempted to commit from inside a lifecycle method.\"\n );\n nextFlushedRoot = root;\n nextFlushedExpirationTime = suspendedExpirationTime;\n performWorkOnRoot(root, suspendedExpirationTime, !1);\n performWork(1073741823, !1);\n}\nfunction requestCurrentTime() {\n if (isRendering) return currentSchedulerTime;\n findHighestPriorityRoot();\n if (0 === nextFlushedExpirationTime || 1 === nextFlushedExpirationTime)\n recomputeCurrentRendererTime(),\n (currentSchedulerTime = currentRendererTime);\n return currentSchedulerTime;\n}\nfunction requestWork(root, expirationTime) {\n null === root.nextScheduledRoot\n ? ((root.expirationTime = expirationTime),\n null === lastScheduledRoot\n ? ((firstScheduledRoot = lastScheduledRoot = root),\n (root.nextScheduledRoot = root))\n : ((lastScheduledRoot = lastScheduledRoot.nextScheduledRoot = root),\n (lastScheduledRoot.nextScheduledRoot = firstScheduledRoot)))\n : expirationTime > root.expirationTime &&\n (root.expirationTime = expirationTime);\n isRendering ||\n (isBatchingUpdates\n ? isUnbatchingUpdates &&\n ((nextFlushedRoot = root),\n (nextFlushedExpirationTime = 1073741823),\n performWorkOnRoot(root, 1073741823, !1))\n : 1073741823 === expirationTime\n ? performWork(1073741823, !1)\n : scheduleCallbackWithExpirationTime(root, expirationTime));\n}\nfunction findHighestPriorityRoot() {\n var highestPriorityWork = 0,\n highestPriorityRoot = null;\n if (null !== lastScheduledRoot)\n for (\n var previousScheduledRoot = lastScheduledRoot, root = firstScheduledRoot;\n null !== root;\n\n ) {\n var remainingExpirationTime = root.expirationTime;\n if (0 === remainingExpirationTime) {\n invariant(\n null !== previousScheduledRoot && null !== lastScheduledRoot,\n \"Should have a previous and last root. This error is likely caused by a bug in React. Please file an issue.\"\n );\n if (root === root.nextScheduledRoot) {\n firstScheduledRoot = lastScheduledRoot = root.nextScheduledRoot = null;\n break;\n } else if (root === firstScheduledRoot)\n (firstScheduledRoot = remainingExpirationTime =\n root.nextScheduledRoot),\n (lastScheduledRoot.nextScheduledRoot = remainingExpirationTime),\n (root.nextScheduledRoot = null);\n else if (root === lastScheduledRoot) {\n lastScheduledRoot = previousScheduledRoot;\n lastScheduledRoot.nextScheduledRoot = firstScheduledRoot;\n root.nextScheduledRoot = null;\n break;\n } else\n (previousScheduledRoot.nextScheduledRoot = root.nextScheduledRoot),\n (root.nextScheduledRoot = null);\n root = previousScheduledRoot.nextScheduledRoot;\n } else {\n remainingExpirationTime > highestPriorityWork &&\n ((highestPriorityWork = remainingExpirationTime),\n (highestPriorityRoot = root));\n if (root === lastScheduledRoot) break;\n if (1073741823 === highestPriorityWork) break;\n previousScheduledRoot = root;\n root = root.nextScheduledRoot;\n }\n }\n nextFlushedRoot = highestPriorityRoot;\n nextFlushedExpirationTime = highestPriorityWork;\n}\nvar didYield = !1;\nfunction shouldYieldToRenderer() {\n return didYield ? !0 : frameDeadline <= now$1() ? (didYield = !0) : !1;\n}\nfunction performAsyncWork() {\n try {\n if (!shouldYieldToRenderer() && null !== firstScheduledRoot) {\n recomputeCurrentRendererTime();\n var root = firstScheduledRoot;\n do {\n var expirationTime = root.expirationTime;\n 0 !== expirationTime &&\n currentRendererTime <= expirationTime &&\n (root.nextExpirationTimeToWorkOn = currentRendererTime);\n root = root.nextScheduledRoot;\n } while (root !== firstScheduledRoot);\n }\n performWork(0, !0);\n } finally {\n didYield = !1;\n }\n}\nfunction performWork(minExpirationTime, isYieldy) {\n findHighestPriorityRoot();\n if (isYieldy)\n for (\n recomputeCurrentRendererTime(),\n currentSchedulerTime = currentRendererTime;\n null !== nextFlushedRoot &&\n 0 !== nextFlushedExpirationTime &&\n minExpirationTime <= nextFlushedExpirationTime &&\n !(didYield && currentRendererTime > nextFlushedExpirationTime);\n\n )\n performWorkOnRoot(\n nextFlushedRoot,\n nextFlushedExpirationTime,\n currentRendererTime > nextFlushedExpirationTime\n ),\n findHighestPriorityRoot(),\n recomputeCurrentRendererTime(),\n (currentSchedulerTime = currentRendererTime);\n else\n for (\n ;\n null !== nextFlushedRoot &&\n 0 !== nextFlushedExpirationTime &&\n minExpirationTime <= nextFlushedExpirationTime;\n\n )\n performWorkOnRoot(nextFlushedRoot, nextFlushedExpirationTime, !1),\n findHighestPriorityRoot();\n isYieldy && ((callbackExpirationTime = 0), (callbackID = null));\n 0 !== nextFlushedExpirationTime &&\n scheduleCallbackWithExpirationTime(\n nextFlushedRoot,\n nextFlushedExpirationTime\n );\n nestedUpdateCount = 0;\n lastCommittedRootDuringThisBatch = null;\n if (null !== completedBatches)\n for (\n minExpirationTime = completedBatches,\n completedBatches = null,\n isYieldy = 0;\n isYieldy < minExpirationTime.length;\n isYieldy++\n ) {\n var batch = minExpirationTime[isYieldy];\n try {\n batch._onComplete();\n } catch (error) {\n hasUnhandledError ||\n ((hasUnhandledError = !0), (unhandledError = error));\n }\n }\n if (hasUnhandledError)\n throw ((minExpirationTime = unhandledError),\n (unhandledError = null),\n (hasUnhandledError = !1),\n minExpirationTime);\n}\nfunction performWorkOnRoot(root, expirationTime, isYieldy) {\n invariant(\n !isRendering,\n \"performWorkOnRoot was called recursively. This error is likely caused by a bug in React. Please file an issue.\"\n );\n isRendering = !0;\n if (isYieldy) {\n var _finishedWork = root.finishedWork;\n null !== _finishedWork\n ? completeRoot$1(root, _finishedWork, expirationTime)\n : ((root.finishedWork = null),\n (_finishedWork = root.timeoutHandle),\n -1 !== _finishedWork &&\n ((root.timeoutHandle = -1), cancelTimeout(_finishedWork)),\n renderRoot(root, isYieldy),\n (_finishedWork = root.finishedWork),\n null !== _finishedWork &&\n (shouldYieldToRenderer()\n ? (root.finishedWork = _finishedWork)\n : completeRoot$1(root, _finishedWork, expirationTime)));\n } else\n (_finishedWork = root.finishedWork),\n null !== _finishedWork\n ? completeRoot$1(root, _finishedWork, expirationTime)\n : ((root.finishedWork = null),\n (_finishedWork = root.timeoutHandle),\n -1 !== _finishedWork &&\n ((root.timeoutHandle = -1), cancelTimeout(_finishedWork)),\n renderRoot(root, isYieldy),\n (_finishedWork = root.finishedWork),\n null !== _finishedWork &&\n completeRoot$1(root, _finishedWork, expirationTime));\n isRendering = !1;\n}\nfunction completeRoot$1(root, finishedWork$jscomp$0, expirationTime) {\n var firstBatch = root.firstBatch;\n if (\n null !== firstBatch &&\n firstBatch._expirationTime >= expirationTime &&\n (null === completedBatches\n ? (completedBatches = [firstBatch])\n : completedBatches.push(firstBatch),\n firstBatch._defer)\n ) {\n root.finishedWork = finishedWork$jscomp$0;\n root.expirationTime = 0;\n return;\n }\n root.finishedWork = null;\n root === lastCommittedRootDuringThisBatch\n ? nestedUpdateCount++\n : ((lastCommittedRootDuringThisBatch = root), (nestedUpdateCount = 0));\n isCommitting$1 = isWorking = !0;\n invariant(\n root.current !== finishedWork$jscomp$0,\n \"Cannot commit the same tree as before. This is probably a bug related to the return field. This error is likely caused by a bug in React. Please file an issue.\"\n );\n expirationTime = root.pendingCommitExpirationTime;\n invariant(\n 0 !== expirationTime,\n \"Cannot commit an incomplete root. This error is likely caused by a bug in React. Please file an issue.\"\n );\n root.pendingCommitExpirationTime = 0;\n firstBatch = finishedWork$jscomp$0.expirationTime;\n var childExpirationTimeBeforeCommit =\n finishedWork$jscomp$0.childExpirationTime;\n firstBatch =\n childExpirationTimeBeforeCommit > firstBatch\n ? childExpirationTimeBeforeCommit\n : firstBatch;\n root.didError = !1;\n 0 === firstBatch\n ? ((root.earliestPendingTime = 0),\n (root.latestPendingTime = 0),\n (root.earliestSuspendedTime = 0),\n (root.latestSuspendedTime = 0),\n (root.latestPingedTime = 0))\n : ((childExpirationTimeBeforeCommit = root.latestPendingTime),\n 0 !== childExpirationTimeBeforeCommit &&\n (childExpirationTimeBeforeCommit > firstBatch\n ? (root.earliestPendingTime = root.latestPendingTime = 0)\n : root.earliestPendingTime > firstBatch &&\n (root.earliestPendingTime = root.latestPendingTime)),\n (childExpirationTimeBeforeCommit = root.earliestSuspendedTime),\n 0 === childExpirationTimeBeforeCommit\n ? markPendingPriorityLevel(root, firstBatch)\n : firstBatch < root.latestSuspendedTime\n ? ((root.earliestSuspendedTime = 0),\n (root.latestSuspendedTime = 0),\n (root.latestPingedTime = 0),\n markPendingPriorityLevel(root, firstBatch))\n : firstBatch > childExpirationTimeBeforeCommit &&\n markPendingPriorityLevel(root, firstBatch));\n findNextExpirationTimeToWorkOn(0, root);\n ReactCurrentOwner$2.current = null;\n 1 < finishedWork$jscomp$0.effectTag\n ? null !== finishedWork$jscomp$0.lastEffect\n ? ((finishedWork$jscomp$0.lastEffect.nextEffect = finishedWork$jscomp$0),\n (firstBatch = finishedWork$jscomp$0.firstEffect))\n : (firstBatch = finishedWork$jscomp$0)\n : (firstBatch = finishedWork$jscomp$0.firstEffect);\n for (nextEffect = firstBatch; null !== nextEffect; ) {\n childExpirationTimeBeforeCommit = !1;\n var error$jscomp$0 = void 0;\n try {\n for (; null !== nextEffect; ) {\n if (nextEffect.effectTag & 256)\n a: {\n var current$$1 = nextEffect.alternate,\n finishedWork = nextEffect;\n switch (finishedWork.tag) {\n case 0:\n case 11:\n case 15:\n break a;\n case 1:\n if (finishedWork.effectTag & 256 && null !== current$$1) {\n var prevProps = current$$1.memoizedProps,\n prevState = current$$1.memoizedState,\n instance = finishedWork.stateNode,\n snapshot = instance.getSnapshotBeforeUpdate(\n finishedWork.elementType === finishedWork.type\n ? prevProps\n : resolveDefaultProps(finishedWork.type, prevProps),\n prevState\n );\n instance.__reactInternalSnapshotBeforeUpdate = snapshot;\n }\n break a;\n case 3:\n case 5:\n case 6:\n case 4:\n case 17:\n break a;\n default:\n invariant(\n !1,\n \"This unit of work tag should not have side-effects. This error is likely caused by a bug in React. Please file an issue.\"\n );\n }\n }\n nextEffect = nextEffect.nextEffect;\n }\n } catch (e) {\n (childExpirationTimeBeforeCommit = !0), (error$jscomp$0 = e);\n }\n childExpirationTimeBeforeCommit &&\n (invariant(\n null !== nextEffect,\n \"Should have next effect. This error is likely caused by a bug in React. Please file an issue.\"\n ),\n captureCommitPhaseError(nextEffect, error$jscomp$0),\n null !== nextEffect && (nextEffect = nextEffect.nextEffect));\n }\n for (nextEffect = firstBatch; null !== nextEffect; ) {\n current$$1 = !1;\n prevProps = void 0;\n try {\n for (; null !== nextEffect; ) {\n var effectTag = nextEffect.effectTag;\n if (effectTag & 128) {\n var current$$1$jscomp$0 = nextEffect.alternate;\n if (null !== current$$1$jscomp$0) {\n var currentRef = current$$1$jscomp$0.ref;\n null !== currentRef &&\n (\"function\" === typeof currentRef\n ? currentRef(null)\n : (currentRef.current = null));\n }\n }\n switch (effectTag & 14) {\n case 2:\n nextEffect.effectTag &= -3;\n break;\n case 6:\n nextEffect.effectTag &= -3;\n commitWork(nextEffect.alternate, nextEffect);\n break;\n case 4:\n commitWork(nextEffect.alternate, nextEffect);\n break;\n case 8:\n prevState = nextEffect;\n a: for (snapshot = instance = prevState; ; ) {\n childExpirationTimeBeforeCommit = snapshot;\n \"function\" === typeof onCommitFiberUnmount &&\n onCommitFiberUnmount(childExpirationTimeBeforeCommit);\n switch (childExpirationTimeBeforeCommit.tag) {\n case 0:\n case 11:\n case 14:\n case 15:\n var updateQueue = childExpirationTimeBeforeCommit.updateQueue;\n if (null !== updateQueue) {\n var lastEffect = updateQueue.lastEffect;\n if (null !== lastEffect) {\n var firstEffect = lastEffect.next;\n error$jscomp$0 = firstEffect;\n do {\n var destroy = error$jscomp$0.destroy;\n if (null !== destroy) {\n finishedWork = childExpirationTimeBeforeCommit;\n try {\n destroy();\n } catch (error) {\n captureCommitPhaseError(finishedWork, error);\n }\n }\n error$jscomp$0 = error$jscomp$0.next;\n } while (error$jscomp$0 !== firstEffect);\n }\n }\n break;\n case 1:\n safelyDetachRef(childExpirationTimeBeforeCommit);\n var instance$jscomp$0 =\n childExpirationTimeBeforeCommit.stateNode;\n if (\n \"function\" === typeof instance$jscomp$0.componentWillUnmount\n )\n try {\n (instance$jscomp$0.props =\n childExpirationTimeBeforeCommit.memoizedProps),\n (instance$jscomp$0.state =\n childExpirationTimeBeforeCommit.memoizedState),\n instance$jscomp$0.componentWillUnmount();\n } catch (unmountError) {\n captureCommitPhaseError(\n childExpirationTimeBeforeCommit,\n unmountError\n );\n }\n break;\n case 5:\n safelyDetachRef(childExpirationTimeBeforeCommit);\n break;\n case 4:\n FabricUIManager.createChildSet(\n childExpirationTimeBeforeCommit.stateNode.containerInfo\n );\n }\n if (null !== snapshot.child)\n (snapshot.child.return = snapshot), (snapshot = snapshot.child);\n else {\n if (snapshot === instance) break;\n for (; null === snapshot.sibling; ) {\n if (null === snapshot.return || snapshot.return === instance)\n break a;\n snapshot = snapshot.return;\n }\n snapshot.sibling.return = snapshot.return;\n snapshot = snapshot.sibling;\n }\n }\n prevState.return = null;\n prevState.child = null;\n prevState.alternate &&\n ((prevState.alternate.child = null),\n (prevState.alternate.return = null));\n }\n nextEffect = nextEffect.nextEffect;\n }\n } catch (e) {\n (current$$1 = !0), (prevProps = e);\n }\n current$$1 &&\n (invariant(\n null !== nextEffect,\n \"Should have next effect. This error is likely caused by a bug in React. Please file an issue.\"\n ),\n captureCommitPhaseError(nextEffect, prevProps),\n null !== nextEffect && (nextEffect = nextEffect.nextEffect));\n }\n root.current = finishedWork$jscomp$0;\n for (nextEffect = firstBatch; null !== nextEffect; ) {\n effectTag = !1;\n current$$1$jscomp$0 = void 0;\n try {\n for (currentRef = expirationTime; null !== nextEffect; ) {\n var effectTag$jscomp$0 = nextEffect.effectTag;\n if (effectTag$jscomp$0 & 36) {\n var current$$1$jscomp$1 = nextEffect.alternate;\n updateQueue = nextEffect;\n lastEffect = currentRef;\n switch (updateQueue.tag) {\n case 0:\n case 11:\n case 15:\n break;\n case 1:\n var instance$jscomp$1 = updateQueue.stateNode;\n if (updateQueue.effectTag & 4)\n if (null === current$$1$jscomp$1)\n instance$jscomp$1.componentDidMount();\n else {\n var prevProps$jscomp$0 =\n updateQueue.elementType === updateQueue.type\n ? current$$1$jscomp$1.memoizedProps\n : resolveDefaultProps(\n updateQueue.type,\n current$$1$jscomp$1.memoizedProps\n );\n instance$jscomp$1.componentDidUpdate(\n prevProps$jscomp$0,\n current$$1$jscomp$1.memoizedState,\n instance$jscomp$1.__reactInternalSnapshotBeforeUpdate\n );\n }\n var updateQueue$jscomp$0 = updateQueue.updateQueue;\n null !== updateQueue$jscomp$0 &&\n commitUpdateQueue(\n updateQueue,\n updateQueue$jscomp$0,\n instance$jscomp$1,\n lastEffect\n );\n break;\n case 3:\n var _updateQueue = updateQueue.updateQueue;\n if (null !== _updateQueue) {\n firstEffect = null;\n if (null !== updateQueue.child)\n switch (updateQueue.child.tag) {\n case 5:\n firstEffect = updateQueue.child.stateNode.canonical;\n break;\n case 1:\n firstEffect = updateQueue.child.stateNode;\n }\n commitUpdateQueue(\n updateQueue,\n _updateQueue,\n firstEffect,\n lastEffect\n );\n }\n break;\n case 5:\n null === current$$1$jscomp$1 &&\n updateQueue.effectTag & 4 &&\n invariant(\n !1,\n \"The current renderer does not support mutation. This error is likely caused by a bug in React. Please file an issue.\"\n );\n break;\n case 6:\n break;\n case 4:\n break;\n case 12:\n break;\n case 13:\n break;\n case 17:\n break;\n default:\n invariant(\n !1,\n \"This unit of work tag should not have side-effects. This error is likely caused by a bug in React. Please file an issue.\"\n );\n }\n }\n if (effectTag$jscomp$0 & 128) {\n var ref = nextEffect.ref;\n if (null !== ref) {\n var instance$jscomp$2 = nextEffect.stateNode;\n switch (nextEffect.tag) {\n case 5:\n var instanceToUse = instance$jscomp$2.canonical;\n break;\n default:\n instanceToUse = instance$jscomp$2;\n }\n \"function\" === typeof ref\n ? ref(instanceToUse)\n : (ref.current = instanceToUse);\n }\n }\n nextEffect = nextEffect.nextEffect;\n }\n } catch (e) {\n (effectTag = !0), (current$$1$jscomp$0 = e);\n }\n effectTag &&\n (invariant(\n null !== nextEffect,\n \"Should have next effect. This error is likely caused by a bug in React. Please file an issue.\"\n ),\n captureCommitPhaseError(nextEffect, current$$1$jscomp$0),\n null !== nextEffect && (nextEffect = nextEffect.nextEffect));\n }\n isWorking = isCommitting$1 = !1;\n \"function\" === typeof onCommitFiberRoot &&\n onCommitFiberRoot(finishedWork$jscomp$0.stateNode);\n effectTag$jscomp$0 = finishedWork$jscomp$0.expirationTime;\n finishedWork$jscomp$0 = finishedWork$jscomp$0.childExpirationTime;\n finishedWork$jscomp$0 =\n finishedWork$jscomp$0 > effectTag$jscomp$0\n ? finishedWork$jscomp$0\n : effectTag$jscomp$0;\n 0 === finishedWork$jscomp$0 &&\n (legacyErrorBoundariesThatAlreadyFailed = null);\n root.expirationTime = finishedWork$jscomp$0;\n root.finishedWork = null;\n}\nfunction onUncaughtError(error) {\n invariant(\n null !== nextFlushedRoot,\n \"Should be working on a root. This error is likely caused by a bug in React. Please file an issue.\"\n );\n nextFlushedRoot.expirationTime = 0;\n hasUnhandledError || ((hasUnhandledError = !0), (unhandledError = error));\n}\nfunction findHostInstance$1(component) {\n var fiber = component._reactInternalFiber;\n void 0 === fiber &&\n (\"function\" === typeof component.render\n ? invariant(!1, \"Unable to find node on an unmounted component.\")\n : invariant(\n !1,\n \"Argument appears to not be a ReactComponent. Keys: %s\",\n Object.keys(component)\n ));\n component = findCurrentHostFiber(fiber);\n return null === component ? null : component.stateNode;\n}\nfunction updateContainer(element, container, parentComponent, callback) {\n var current$$1 = container.current,\n currentTime = requestCurrentTime();\n current$$1 = computeExpirationForFiber(currentTime, current$$1);\n currentTime = container.current;\n a: if (parentComponent) {\n parentComponent = parentComponent._reactInternalFiber;\n b: {\n invariant(\n 2 === isFiberMountedImpl(parentComponent) && 1 === parentComponent.tag,\n \"Expected subtree parent to be a mounted class component. This error is likely caused by a bug in React. Please file an issue.\"\n );\n var parentContext = parentComponent;\n do {\n switch (parentContext.tag) {\n case 3:\n parentContext = parentContext.stateNode.context;\n break b;\n case 1:\n if (isContextProvider(parentContext.type)) {\n parentContext =\n parentContext.stateNode\n .__reactInternalMemoizedMergedChildContext;\n break b;\n }\n }\n parentContext = parentContext.return;\n } while (null !== parentContext);\n invariant(\n !1,\n \"Found unexpected detached subtree parent. This error is likely caused by a bug in React. Please file an issue.\"\n );\n parentContext = void 0;\n }\n if (1 === parentComponent.tag) {\n var Component = parentComponent.type;\n if (isContextProvider(Component)) {\n parentComponent = processChildContext(\n parentComponent,\n Component,\n parentContext\n );\n break a;\n }\n }\n parentComponent = parentContext;\n } else parentComponent = emptyContextObject;\n null === container.context\n ? (container.context = parentComponent)\n : (container.pendingContext = parentComponent);\n container = callback;\n callback = createUpdate(current$$1);\n callback.payload = { element: element };\n container = void 0 === container ? null : container;\n null !== container && (callback.callback = container);\n flushPassiveEffects();\n enqueueUpdate(currentTime, callback);\n scheduleWork(currentTime, current$$1);\n return current$$1;\n}\nfunction createPortal(children, containerInfo, implementation) {\n var key =\n 3 < arguments.length && void 0 !== arguments[3] ? arguments[3] : null;\n return {\n $$typeof: REACT_PORTAL_TYPE,\n key: null == key ? null : \"\" + key,\n children: children,\n containerInfo: containerInfo,\n implementation: implementation\n };\n}\nfunction _inherits(subClass, superClass) {\n if (\"function\" !== typeof superClass && null !== superClass)\n throw new TypeError(\n \"Super expression must either be null or a function, not \" +\n typeof superClass\n );\n subClass.prototype = Object.create(superClass && superClass.prototype, {\n constructor: {\n value: subClass,\n enumerable: !1,\n writable: !0,\n configurable: !0\n }\n });\n superClass &&\n (Object.setPrototypeOf\n ? Object.setPrototypeOf(subClass, superClass)\n : (subClass.__proto__ = superClass));\n}\nvar getInspectorDataForViewTag = void 0;\ngetInspectorDataForViewTag = function() {\n invariant(!1, \"getInspectorDataForViewTag() is not available in production\");\n};\nfunction findNodeHandle(componentOrHandle) {\n if (null == componentOrHandle) return null;\n if (\"number\" === typeof componentOrHandle) return componentOrHandle;\n if (componentOrHandle._nativeTag) return componentOrHandle._nativeTag;\n if (componentOrHandle.canonical && componentOrHandle.canonical._nativeTag)\n return componentOrHandle.canonical._nativeTag;\n componentOrHandle = findHostInstance$1(componentOrHandle);\n return null == componentOrHandle\n ? componentOrHandle\n : componentOrHandle.canonical\n ? componentOrHandle.canonical._nativeTag\n : componentOrHandle._nativeTag;\n}\n_batchedUpdatesImpl = function(fn, a) {\n var previousIsBatchingUpdates = isBatchingUpdates;\n isBatchingUpdates = !0;\n try {\n return fn(a);\n } finally {\n (isBatchingUpdates = previousIsBatchingUpdates) ||\n isRendering ||\n performWork(1073741823, !1);\n }\n};\n_flushInteractiveUpdatesImpl = function() {\n isRendering ||\n 0 === lowestPriorityPendingInteractiveExpirationTime ||\n (performWork(lowestPriorityPendingInteractiveExpirationTime, !1),\n (lowestPriorityPendingInteractiveExpirationTime = 0));\n};\nvar roots = new Map(),\n ReactFabric = {\n NativeComponent: (function(findNodeHandle, findHostInstance) {\n return (function(_React$Component) {\n function ReactNativeComponent() {\n if (!(this instanceof ReactNativeComponent))\n throw new TypeError(\"Cannot call a class as a function\");\n var call = _React$Component.apply(this, arguments);\n if (!this)\n throw new ReferenceError(\n \"this hasn't been initialised - super() hasn't been called\"\n );\n return !call ||\n (\"object\" !== typeof call && \"function\" !== typeof call)\n ? this\n : call;\n }\n _inherits(ReactNativeComponent, _React$Component);\n ReactNativeComponent.prototype.blur = function() {\n TextInputState.blurTextInput(findNodeHandle(this));\n };\n ReactNativeComponent.prototype.focus = function() {\n TextInputState.focusTextInput(findNodeHandle(this));\n };\n ReactNativeComponent.prototype.measure = function(callback) {\n UIManager.measure(\n findNodeHandle(this),\n mountSafeCallback_NOT_REALLY_SAFE(this, callback)\n );\n };\n ReactNativeComponent.prototype.measureInWindow = function(callback) {\n UIManager.measureInWindow(\n findNodeHandle(this),\n mountSafeCallback_NOT_REALLY_SAFE(this, callback)\n );\n };\n ReactNativeComponent.prototype.measureLayout = function(\n relativeToNativeNode,\n onSuccess,\n onFail\n ) {\n UIManager.measureLayout(\n findNodeHandle(this),\n relativeToNativeNode,\n mountSafeCallback_NOT_REALLY_SAFE(this, onFail),\n mountSafeCallback_NOT_REALLY_SAFE(this, onSuccess)\n );\n };\n ReactNativeComponent.prototype.setNativeProps = function(nativeProps) {\n var maybeInstance = void 0;\n try {\n maybeInstance = findHostInstance(this);\n } catch (error) {}\n if (null != maybeInstance) {\n var viewConfig =\n maybeInstance.viewConfig || maybeInstance.canonical.viewConfig;\n nativeProps = diffProperties(\n null,\n emptyObject,\n nativeProps,\n viewConfig.validAttributes\n );\n null != nativeProps &&\n UIManager.updateView(\n maybeInstance._nativeTag,\n viewConfig.uiViewClassName,\n nativeProps\n );\n }\n };\n return ReactNativeComponent;\n })(React.Component);\n })(findNodeHandle, findHostInstance$1),\n findNodeHandle: findNodeHandle,\n render: function(element, containerTag, callback) {\n var root = roots.get(containerTag);\n if (!root) {\n root = createFiber(3, null, null, 0);\n var root$jscomp$0 = {\n current: root,\n containerInfo: containerTag,\n pendingChildren: null,\n earliestPendingTime: 0,\n latestPendingTime: 0,\n earliestSuspendedTime: 0,\n latestSuspendedTime: 0,\n latestPingedTime: 0,\n didError: !1,\n pendingCommitExpirationTime: 0,\n finishedWork: null,\n timeoutHandle: -1,\n context: null,\n pendingContext: null,\n hydrate: !1,\n nextExpirationTimeToWorkOn: 0,\n expirationTime: 0,\n firstBatch: null,\n nextScheduledRoot: null\n };\n root = root.stateNode = root$jscomp$0;\n roots.set(containerTag, root);\n }\n updateContainer(element, root, null, callback);\n a: if (((element = root.current), element.child))\n switch (element.child.tag) {\n case 5:\n element = element.child.stateNode.canonical;\n break a;\n default:\n element = element.child.stateNode;\n }\n else element = null;\n return element;\n },\n unmountComponentAtNode: function(containerTag) {\n var root = roots.get(containerTag);\n root &&\n updateContainer(null, root, null, function() {\n roots.delete(containerTag);\n });\n },\n createPortal: function(children, containerTag) {\n return createPortal(\n children,\n containerTag,\n null,\n 2 < arguments.length && void 0 !== arguments[2] ? arguments[2] : null\n );\n },\n __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED: {\n NativeMethodsMixin: (function(findNodeHandle, findHostInstance) {\n return {\n measure: function(callback) {\n UIManager.measure(\n findNodeHandle(this),\n mountSafeCallback_NOT_REALLY_SAFE(this, callback)\n );\n },\n measureInWindow: function(callback) {\n UIManager.measureInWindow(\n findNodeHandle(this),\n mountSafeCallback_NOT_REALLY_SAFE(this, callback)\n );\n },\n measureLayout: function(relativeToNativeNode, onSuccess, onFail) {\n UIManager.measureLayout(\n findNodeHandle(this),\n relativeToNativeNode,\n mountSafeCallback_NOT_REALLY_SAFE(this, onFail),\n mountSafeCallback_NOT_REALLY_SAFE(this, onSuccess)\n );\n },\n setNativeProps: function(nativeProps) {\n var maybeInstance = void 0;\n try {\n maybeInstance = findHostInstance(this);\n } catch (error) {}\n if (null != maybeInstance) {\n var viewConfig = maybeInstance.viewConfig;\n nativeProps = diffProperties(\n null,\n emptyObject,\n nativeProps,\n viewConfig.validAttributes\n );\n null != nativeProps &&\n UIManager.updateView(\n maybeInstance._nativeTag,\n viewConfig.uiViewClassName,\n nativeProps\n );\n }\n },\n focus: function() {\n TextInputState.focusTextInput(findNodeHandle(this));\n },\n blur: function() {\n TextInputState.blurTextInput(findNodeHandle(this));\n }\n };\n })(findNodeHandle, findHostInstance$1)\n }\n };\n(function(devToolsConfig) {\n var findFiberByHostInstance = devToolsConfig.findFiberByHostInstance;\n return injectInternals(\n Object.assign({}, devToolsConfig, {\n findHostInstanceByFiber: function(fiber) {\n fiber = findCurrentHostFiber(fiber);\n return null === fiber ? null : fiber.stateNode;\n },\n findFiberByHostInstance: function(instance) {\n return findFiberByHostInstance\n ? findFiberByHostInstance(instance)\n : null;\n }\n })\n );\n})({\n findFiberByHostInstance: getInstanceFromInstance,\n getInspectorDataForViewTag: getInspectorDataForViewTag,\n bundleType: 0,\n version: \"16.6.1\",\n rendererPackageName: \"react-native-renderer\"\n});\nvar ReactFabric$2 = { default: ReactFabric },\n ReactFabric$3 = (ReactFabric$2 && ReactFabric) || ReactFabric$2;\nmodule.exports = ReactFabric$3.default || ReactFabric$3;\n","/**\n * Copyright (c) 2015-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @flow strict\n * @format\n */\n'use strict';\n\n// TODO: type these properly.\ntype Node = {};\ntype NodeSet = Array;\ntype NodeProps = {};\ntype InstanceHandle = {};\ntype Spec = {|\n +createNode: (\n reactTag: number,\n viewName: string,\n rootTag: number,\n props: NodeProps,\n instanceHandle: InstanceHandle,\n ) => Node,\n +cloneNode: (node: Node) => Node,\n +cloneNodeWithNewChildren: (node: Node) => Node,\n +cloneNodeWithNewProps: (node: Node, newProps: NodeProps) => Node,\n +cloneNodeWithNewChildrenAndProps: (node: Node, newProps: NodeProps) => Node,\n +createChildSet: (rootTag: number) => NodeSet,\n +appendChild: (parentNode: Node, child: Node) => Node,\n +appendChildToSet: (childSet: NodeSet, child: Node) => void,\n +completeRoot: (rootTag: number, childSet: NodeSet) => void,\n|};\n\nconst FabricUIManager: ?Spec = global.nativeFabricUIManager;\n\nmodule.exports = FabricUIManager;\n","/**\n * Copyright (c) 2015-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n * @flow\n */\n\n'use strict';\n\nconst MissingNativeEventEmitterShim = require('MissingNativeEventEmitterShim');\nconst NativeEventEmitter = require('NativeEventEmitter');\nconst NativeModules = require('NativeModules');\nconst RCTAppState = NativeModules.AppState;\n\nconst logError = require('logError');\nconst invariant = require('fbjs/lib/invariant');\n\n/**\n * `AppState` can tell you if the app is in the foreground or background,\n * and notify you when the state changes.\n *\n * See http://facebook.github.io/react-native/docs/appstate.html\n */\nclass AppState extends NativeEventEmitter {\n _eventHandlers: Object;\n currentState: ?string;\n isAvailable: boolean = true;\n\n constructor() {\n super(RCTAppState);\n\n this.isAvailable = true;\n this._eventHandlers = {\n change: new Map(),\n memoryWarning: new Map(),\n };\n\n // TODO: Remove the 'active' fallback after `initialAppState` is exported by\n // the Android implementation.\n this.currentState = RCTAppState.initialAppState || 'active';\n\n let eventUpdated = false;\n\n // TODO: this is a terrible solution - in order to ensure `currentState`\n // prop is up to date, we have to register an observer that updates it\n // whenever the state changes, even if nobody cares. We should just\n // deprecate the `currentState` property and get rid of this.\n this.addListener('appStateDidChange', appStateData => {\n eventUpdated = true;\n this.currentState = appStateData.app_state;\n });\n\n // TODO: see above - this request just populates the value of `currentState`\n // when the module is first initialized. Would be better to get rid of the\n // prop and expose `getCurrentAppState` method directly.\n RCTAppState.getCurrentAppState(appStateData => {\n // It's possible that the state will have changed here & listeners need to be notified\n if (!eventUpdated && this.currentState !== appStateData.app_state) {\n this.currentState = appStateData.app_state;\n this.emit('appStateDidChange', appStateData);\n }\n }, logError);\n }\n\n // TODO: now that AppState is a subclass of NativeEventEmitter, we could\n // deprecate `addEventListener` and `removeEventListener` and just use\n // addListener` and `listener.remove()` directly. That will be a breaking\n // change though, as both the method and event names are different\n // (addListener events are currently required to be globally unique).\n /**\n * Add a handler to AppState changes by listening to the `change` event type\n * and providing the handler.\n *\n * See http://facebook.github.io/react-native/docs/appstate.html#addeventlistener\n */\n addEventListener(type: string, handler: Function) {\n invariant(\n ['change', 'memoryWarning'].indexOf(type) !== -1,\n 'Trying to subscribe to unknown event: \"%s\"',\n type,\n );\n if (type === 'change') {\n this._eventHandlers[type].set(\n handler,\n this.addListener('appStateDidChange', appStateData => {\n handler(appStateData.app_state);\n }),\n );\n } else if (type === 'memoryWarning') {\n this._eventHandlers[type].set(\n handler,\n this.addListener('memoryWarning', handler),\n );\n }\n }\n\n /**\n * Remove a handler by passing the `change` event type and the handler.\n *\n * See http://facebook.github.io/react-native/docs/appstate.html#removeeventlistener\n */\n removeEventListener(type: string, handler: Function) {\n invariant(\n ['change', 'memoryWarning'].indexOf(type) !== -1,\n 'Trying to remove listener for unknown event: \"%s\"',\n type,\n );\n if (!this._eventHandlers[type].has(handler)) {\n return;\n }\n this._eventHandlers[type].get(handler).remove();\n this._eventHandlers[type].delete(handler);\n }\n}\n\nif (__DEV__ && !RCTAppState) {\n class MissingNativeAppStateShim extends MissingNativeEventEmitterShim {\n constructor() {\n super('RCTAppState', 'AppState');\n }\n\n get currentState(): ?string {\n this.throwMissingNativeModule();\n }\n\n addEventListener(...args: Array) {\n this.throwMissingNativeModule();\n }\n\n removeEventListener(...args: Array) {\n this.throwMissingNativeModule();\n }\n }\n\n // This module depends on the native `RCTAppState` module. If you don't\n // include it, `AppState.isAvailable` will return `false`, and any method\n // calls will throw. We reassign the class variable to keep the autodoc\n // generator happy.\n AppState = new MissingNativeAppStateShim();\n} else {\n AppState = new AppState();\n}\n\nmodule.exports = AppState;\n","/**\n * Copyright (c) 2015-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n * @noflow\n * @flow-weak\n * @jsdoc\n */\n\n'use strict';\n\nconst NativeModules = require('NativeModules');\n\n// Use RocksDB if available, then SQLite, then file storage.\nconst RCTAsyncStorage =\n NativeModules.AsyncRocksDBStorage ||\n NativeModules.AsyncSQLiteDBStorage ||\n NativeModules.AsyncLocalStorage;\n\n/**\n * `AsyncStorage` is a simple, unencrypted, asynchronous, persistent, key-value\n * storage system that is global to the app. It should be used instead of\n * LocalStorage.\n *\n * See http://facebook.github.io/react-native/docs/asyncstorage.html\n */\nconst AsyncStorage = {\n _getRequests: ([]: Array),\n _getKeys: ([]: Array),\n _immediate: (null: ?number),\n\n /**\n * Fetches an item for a `key` and invokes a callback upon completion.\n *\n * See http://facebook.github.io/react-native/docs/asyncstorage.html#getitem\n */\n getItem: function(\n key: string,\n callback?: ?(error: ?Error, result: ?string) => void,\n ): Promise {\n return new Promise((resolve, reject) => {\n RCTAsyncStorage.multiGet([key], function(errors, result) {\n // Unpack result to get value from [[key,value]]\n const value = result && result[0] && result[0][1] ? result[0][1] : null;\n const errs = convertErrors(errors);\n callback && callback(errs && errs[0], value);\n if (errs) {\n reject(errs[0]);\n } else {\n resolve(value);\n }\n });\n });\n },\n\n /**\n * Sets the value for a `key` and invokes a callback upon completion.\n *\n * See http://facebook.github.io/react-native/docs/asyncstorage.html#setitem\n */\n setItem: function(\n key: string,\n value: string,\n callback?: ?(error: ?Error) => void,\n ): Promise {\n return new Promise((resolve, reject) => {\n RCTAsyncStorage.multiSet([[key, value]], function(errors) {\n const errs = convertErrors(errors);\n callback && callback(errs && errs[0]);\n if (errs) {\n reject(errs[0]);\n } else {\n resolve(null);\n }\n });\n });\n },\n\n /**\n * Removes an item for a `key` and invokes a callback upon completion.\n *\n * See http://facebook.github.io/react-native/docs/asyncstorage.html#removeitem\n */\n removeItem: function(\n key: string,\n callback?: ?(error: ?Error) => void,\n ): Promise {\n return new Promise((resolve, reject) => {\n RCTAsyncStorage.multiRemove([key], function(errors) {\n const errs = convertErrors(errors);\n callback && callback(errs && errs[0]);\n if (errs) {\n reject(errs[0]);\n } else {\n resolve(null);\n }\n });\n });\n },\n\n /**\n * Merges an existing `key` value with an input value, assuming both values\n * are stringified JSON.\n *\n * **NOTE:** This is not supported by all native implementations.\n *\n * See http://facebook.github.io/react-native/docs/asyncstorage.html#mergeitem\n */\n mergeItem: function(\n key: string,\n value: string,\n callback?: ?(error: ?Error) => void,\n ): Promise {\n return new Promise((resolve, reject) => {\n RCTAsyncStorage.multiMerge([[key, value]], function(errors) {\n const errs = convertErrors(errors);\n callback && callback(errs && errs[0]);\n if (errs) {\n reject(errs[0]);\n } else {\n resolve(null);\n }\n });\n });\n },\n\n /**\n * Erases *all* `AsyncStorage` for all clients, libraries, etc. You probably\n * don't want to call this; use `removeItem` or `multiRemove` to clear only\n * your app's keys.\n *\n * See http://facebook.github.io/react-native/docs/asyncstorage.html#clear\n */\n clear: function(callback?: ?(error: ?Error) => void): Promise {\n return new Promise((resolve, reject) => {\n RCTAsyncStorage.clear(function(error) {\n callback && callback(convertError(error));\n if (error && convertError(error)) {\n reject(convertError(error));\n } else {\n resolve(null);\n }\n });\n });\n },\n\n /**\n * Gets *all* keys known to your app; for all callers, libraries, etc.\n *\n * See http://facebook.github.io/react-native/docs/asyncstorage.html#getallkeys\n */\n getAllKeys: function(\n callback?: ?(error: ?Error, keys: ?Array) => void,\n ): Promise {\n return new Promise((resolve, reject) => {\n RCTAsyncStorage.getAllKeys(function(error, keys) {\n callback && callback(convertError(error), keys);\n if (error) {\n reject(convertError(error));\n } else {\n resolve(keys);\n }\n });\n });\n },\n\n /**\n * The following batched functions are useful for executing a lot of\n * operations at once, allowing for native optimizations and provide the\n * convenience of a single callback after all operations are complete.\n *\n * These functions return arrays of errors, potentially one for every key.\n * For key-specific errors, the Error object will have a key property to\n * indicate which key caused the error.\n */\n\n /**\n * Flushes any pending requests using a single batch call to get the data.\n *\n * See http://facebook.github.io/react-native/docs/asyncstorage.html#flushgetrequests\n * */\n flushGetRequests: function(): void {\n const getRequests = this._getRequests;\n const getKeys = this._getKeys;\n\n this._getRequests = [];\n this._getKeys = [];\n\n RCTAsyncStorage.multiGet(getKeys, function(errors, result) {\n // Even though the runtime complexity of this is theoretically worse vs if we used a map,\n // it's much, much faster in practice for the data sets we deal with (we avoid\n // allocating result pair arrays). This was heavily benchmarked.\n //\n // Is there a way to avoid using the map but fix the bug in this breaking test?\n // https://github.com/facebook/react-native/commit/8dd8ad76579d7feef34c014d387bf02065692264\n const map = {};\n result &&\n result.forEach(([key, value]) => {\n map[key] = value;\n return value;\n });\n const reqLength = getRequests.length;\n for (let i = 0; i < reqLength; i++) {\n const request = getRequests[i];\n const requestKeys = request.keys;\n const requestResult = requestKeys.map(key => [key, map[key]]);\n request.callback && request.callback(null, requestResult);\n request.resolve && request.resolve(requestResult);\n }\n });\n },\n\n /**\n * This allows you to batch the fetching of items given an array of `key`\n * inputs. Your callback will be invoked with an array of corresponding\n * key-value pairs found.\n *\n * See http://facebook.github.io/react-native/docs/asyncstorage.html#multiget\n */\n multiGet: function(\n keys: Array,\n callback?: ?(errors: ?Array, result: ?Array>) => void,\n ): Promise {\n if (!this._immediate) {\n this._immediate = setImmediate(() => {\n this._immediate = null;\n this.flushGetRequests();\n });\n }\n\n const getRequest = {\n keys: keys,\n callback: callback,\n // do we need this?\n keyIndex: this._getKeys.length,\n resolve: null,\n reject: null,\n };\n\n const promiseResult = new Promise((resolve, reject) => {\n getRequest.resolve = resolve;\n getRequest.reject = reject;\n });\n\n this._getRequests.push(getRequest);\n // avoid fetching duplicates\n keys.forEach(key => {\n if (this._getKeys.indexOf(key) === -1) {\n this._getKeys.push(key);\n }\n });\n\n return promiseResult;\n },\n\n /**\n * Use this as a batch operation for storing multiple key-value pairs. When\n * the operation completes you'll get a single callback with any errors.\n *\n * See http://facebook.github.io/react-native/docs/asyncstorage.html#multiset\n */\n multiSet: function(\n keyValuePairs: Array>,\n callback?: ?(errors: ?Array) => void,\n ): Promise {\n return new Promise((resolve, reject) => {\n RCTAsyncStorage.multiSet(keyValuePairs, function(errors) {\n const error = convertErrors(errors);\n callback && callback(error);\n if (error) {\n reject(error);\n } else {\n resolve(null);\n }\n });\n });\n },\n\n /**\n * Call this to batch the deletion of all keys in the `keys` array.\n *\n * See http://facebook.github.io/react-native/docs/asyncstorage.html#multiremove\n */\n multiRemove: function(\n keys: Array,\n callback?: ?(errors: ?Array) => void,\n ): Promise {\n return new Promise((resolve, reject) => {\n RCTAsyncStorage.multiRemove(keys, function(errors) {\n const error = convertErrors(errors);\n callback && callback(error);\n if (error) {\n reject(error);\n } else {\n resolve(null);\n }\n });\n });\n },\n\n /**\n * Batch operation to merge in existing and new values for a given set of\n * keys. This assumes that the values are stringified JSON.\n *\n * **NOTE**: This is not supported by all native implementations.\n *\n * See http://facebook.github.io/react-native/docs/asyncstorage.html#multimerge\n */\n multiMerge: function(\n keyValuePairs: Array>,\n callback?: ?(errors: ?Array) => void,\n ): Promise {\n return new Promise((resolve, reject) => {\n RCTAsyncStorage.multiMerge(keyValuePairs, function(errors) {\n const error = convertErrors(errors);\n callback && callback(error);\n if (error) {\n reject(error);\n } else {\n resolve(null);\n }\n });\n });\n },\n};\n\n// Not all native implementations support merge.\nif (!RCTAsyncStorage.multiMerge) {\n delete AsyncStorage.mergeItem;\n delete AsyncStorage.multiMerge;\n}\n\nfunction convertErrors(errs) {\n if (!errs) {\n return null;\n }\n return (Array.isArray(errs) ? errs : [errs]).map(e => convertError(e));\n}\n\nfunction convertError(error) {\n if (!error) {\n return null;\n }\n const out = new Error(error.message);\n out.key = error.key; // flow doesn't like this :(\n return out;\n}\n\nmodule.exports = AsyncStorage;\n","/**\n * Copyright (c) 2015-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * BackAndroid has been moved to BackHandler. This stub calls BackHandler methods\n * after generating a warning to remind users to move to the new BackHandler module.\n *\n * @format\n */\n\n'use strict';\n\nconst BackHandler = require('BackHandler');\n\nconst warning = require('fbjs/lib/warning');\n\n/**\n * Deprecated. Use BackHandler instead.\n */\nconst BackAndroid = {\n exitApp: function() {\n warning(\n false,\n 'BackAndroid is deprecated. Please use BackHandler instead.',\n );\n BackHandler.exitApp();\n },\n\n addEventListener: function(\n eventName: BackPressEventName,\n handler: Function,\n ): {remove: () => void} {\n warning(\n false,\n 'BackAndroid is deprecated. Please use BackHandler instead.',\n );\n return BackHandler.addEventListener(eventName, handler);\n },\n\n removeEventListener: function(\n eventName: BackPressEventName,\n handler: Function,\n ): void {\n warning(\n false,\n 'BackAndroid is deprecated. Please use BackHandler instead.',\n );\n BackHandler.removeEventListener(eventName, handler);\n },\n};\n\nmodule.exports = BackAndroid;\n","/**\n * Copyright (c) 2015-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @flow\n * @format\n */\n'use strict';\n\nconst PropTypes = require('prop-types');\nconst {checkPropTypes} = PropTypes;\nconst RCTCameraRollManager = require('NativeModules').CameraRollManager;\n\nconst createStrictShapeTypeChecker = require('createStrictShapeTypeChecker');\nconst invariant = require('fbjs/lib/invariant');\n\nconst GROUP_TYPES_OPTIONS = {\n Album: 'Album',\n All: 'All',\n Event: 'Event',\n Faces: 'Faces',\n Library: 'Library',\n PhotoStream: 'PhotoStream',\n SavedPhotos: 'SavedPhotos', // default\n};\n\nconst ASSET_TYPE_OPTIONS = {\n All: 'All',\n Videos: 'Videos',\n Photos: 'Photos',\n};\n\ntype GetPhotosParams = {\n first: number,\n after?: string,\n groupTypes?: $Keys,\n groupName?: string,\n assetType?: $Keys,\n mimeTypes?: Array,\n};\n\n/**\n * Shape of the param arg for the `getPhotos` function.\n */\nconst getPhotosParamChecker = createStrictShapeTypeChecker({\n /**\n * The number of photos wanted in reverse order of the photo application\n * (i.e. most recent first for SavedPhotos).\n */\n first: PropTypes.number.isRequired,\n\n /**\n * A cursor that matches `page_info { end_cursor }` returned from a previous\n * call to `getPhotos`\n */\n after: PropTypes.string,\n\n /**\n * Specifies which group types to filter the results to.\n */\n groupTypes: PropTypes.oneOf(Object.keys(GROUP_TYPES_OPTIONS)),\n\n /**\n * Specifies filter on group names, like 'Recent Photos' or custom album\n * titles.\n */\n groupName: PropTypes.string,\n\n /**\n * Specifies filter on asset type\n */\n assetType: PropTypes.oneOf(Object.keys(ASSET_TYPE_OPTIONS)),\n\n /**\n * Filter by mimetype (e.g. image/jpeg).\n */\n mimeTypes: PropTypes.arrayOf(PropTypes.string),\n});\n\ntype GetPhotosReturn = Promise<{\n edges: Array<{\n node: {\n type: string,\n group_name: string,\n image: {\n uri: string,\n height: number,\n width: number,\n isStored?: boolean,\n playableDuration: number,\n },\n timestamp: number,\n location?: {\n latitude?: number,\n longitude?: number,\n altitude?: number,\n heading?: number,\n speed?: number,\n },\n },\n }>,\n page_info: {\n has_next_page: boolean,\n start_cursor?: string,\n end_cursor?: string,\n },\n}>;\n\n/**\n * Shape of the return value of the `getPhotos` function.\n */\nconst getPhotosReturnChecker = createStrictShapeTypeChecker({\n edges: PropTypes.arrayOf(\n /* $FlowFixMe(>=0.66.0 site=react_native_fb) This comment suppresses an\n * error found when Flow v0.66 was deployed. To see the error delete this\n * comment and run Flow. */\n createStrictShapeTypeChecker({\n node: createStrictShapeTypeChecker({\n type: PropTypes.string.isRequired,\n group_name: PropTypes.string.isRequired,\n image: createStrictShapeTypeChecker({\n uri: PropTypes.string.isRequired,\n height: PropTypes.number.isRequired,\n width: PropTypes.number.isRequired,\n isStored: PropTypes.bool,\n playableDuration: PropTypes.number.isRequired,\n }).isRequired,\n timestamp: PropTypes.number.isRequired,\n location: createStrictShapeTypeChecker({\n latitude: PropTypes.number,\n longitude: PropTypes.number,\n altitude: PropTypes.number,\n heading: PropTypes.number,\n speed: PropTypes.number,\n }),\n }).isRequired,\n }),\n ).isRequired,\n page_info: createStrictShapeTypeChecker({\n has_next_page: PropTypes.bool.isRequired,\n start_cursor: PropTypes.string,\n end_cursor: PropTypes.string,\n }).isRequired,\n});\n\n/**\n * `CameraRoll` provides access to the local camera roll or photo library.\n *\n * See https://facebook.github.io/react-native/docs/cameraroll.html\n */\nclass CameraRoll {\n static GroupTypesOptions: Object = GROUP_TYPES_OPTIONS;\n static AssetTypeOptions: Object = ASSET_TYPE_OPTIONS;\n\n /**\n * `CameraRoll.saveImageWithTag()` is deprecated. Use `CameraRoll.saveToCameraRoll()` instead.\n */\n static saveImageWithTag(tag: string): Promise {\n console.warn(\n '`CameraRoll.saveImageWithTag()` is deprecated. Use `CameraRoll.saveToCameraRoll()` instead.',\n );\n return this.saveToCameraRoll(tag, 'photo');\n }\n\n static deletePhotos(photos: Array) {\n return RCTCameraRollManager.deletePhotos(photos);\n }\n\n /**\n * Saves the photo or video to the camera roll or photo library.\n *\n * See https://facebook.github.io/react-native/docs/cameraroll.html#savetocameraroll\n */\n static saveToCameraRoll(\n tag: string,\n type?: 'photo' | 'video',\n ): Promise {\n invariant(\n typeof tag === 'string',\n 'CameraRoll.saveToCameraRoll must be a valid string.',\n );\n\n invariant(\n type === 'photo' || type === 'video' || type === undefined,\n `The second argument to saveToCameraRoll must be 'photo' or 'video'. You passed ${type ||\n 'unknown'}`,\n );\n\n let mediaType = 'photo';\n if (type) {\n mediaType = type;\n } else if (['mov', 'mp4'].indexOf(tag.split('.').slice(-1)[0]) >= 0) {\n mediaType = 'video';\n }\n\n return RCTCameraRollManager.saveToCameraRoll(tag, mediaType);\n }\n\n /**\n * Returns a Promise with photo identifier objects from the local camera\n * roll of the device matching shape defined by `getPhotosReturnChecker`.\n *\n * See https://facebook.github.io/react-native/docs/cameraroll.html#getphotos\n */\n static getPhotos(params: GetPhotosParams): GetPhotosReturn {\n if (__DEV__) {\n checkPropTypes(\n {params: getPhotosParamChecker},\n {params},\n 'params',\n 'CameraRoll.getPhotos',\n );\n }\n if (arguments.length > 1) {\n console.warn(\n 'CameraRoll.getPhotos(tag, success, error) is deprecated. Use the returned Promise instead',\n );\n let successCallback = arguments[1];\n if (__DEV__) {\n const callback = arguments[1];\n successCallback = response => {\n checkPropTypes(\n {response: getPhotosReturnChecker},\n {response},\n 'response',\n 'CameraRoll.getPhotos callback',\n );\n callback(response);\n };\n }\n const errorCallback = arguments[2] || (() => {});\n RCTCameraRollManager.getPhotos(params).then(\n successCallback,\n errorCallback,\n );\n }\n // TODO: Add the __DEV__ check back in to verify the Promise result\n return RCTCameraRollManager.getPhotos(params);\n }\n}\n\nmodule.exports = CameraRoll;\n","/**\n * Copyright (c) 2015-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n * @flow strict-local\n */\n\n'use strict';\n\nconst Clipboard = require('NativeModules').Clipboard;\n\n/**\n * `Clipboard` gives you an interface for setting and getting content from Clipboard on both iOS and Android\n */\nmodule.exports = {\n /**\n * Get content of string type, this method returns a `Promise`, so you can use following code to get clipboard content\n * ```javascript\n * async _getContent() {\n * var content = await Clipboard.getString();\n * }\n * ```\n */\n getString(): Promise {\n return Clipboard.getString();\n },\n /**\n * Set content of string type. You can use following code to set clipboard content\n * ```javascript\n * _setContent() {\n * Clipboard.setString('hello world');\n * }\n * ```\n * @param the content to be stored in the clipboard.\n */\n setString(content: string) {\n Clipboard.setString(content);\n },\n};\n","/**\n * Copyright (c) 2015-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n * @flow\n */\n\n'use strict';\n\nconst DatePickerModule = require('NativeModules').DatePickerAndroid;\n\n/**\n * Convert a Date to a timestamp.\n */\nfunction _toMillis(options: Object, key: string) {\n const dateVal = options[key];\n // Is it a Date object?\n if (typeof dateVal === 'object' && typeof dateVal.getMonth === 'function') {\n options[key] = dateVal.getTime();\n }\n}\n\n/**\n * Opens the standard Android date picker dialog.\n *\n * ### Example\n *\n * ```\n * try {\n * const {action, year, month, day} = await DatePickerAndroid.open({\n * // Use `new Date()` for current date.\n * // May 25 2020. Month 0 is January.\n * date: new Date(2020, 4, 25)\n * });\n * if (action !== DatePickerAndroid.dismissedAction) {\n * // Selected year, month (0-11), day\n * }\n * } catch ({code, message}) {\n * console.warn('Cannot open date picker', message);\n * }\n * ```\n */\nclass DatePickerAndroid {\n /**\n * Opens the standard Android date picker dialog.\n *\n * The available keys for the `options` object are:\n *\n * - `date` (`Date` object or timestamp in milliseconds) - date to show by default\n * - `minDate` (`Date` or timestamp in milliseconds) - minimum date that can be selected\n * - `maxDate` (`Date` object or timestamp in milliseconds) - maximum date that can be selected\n * - `mode` (`enum('calendar', 'spinner', 'default')`) - To set the date-picker mode to calendar/spinner/default\n * - 'calendar': Show a date picker in calendar mode.\n * - 'spinner': Show a date picker in spinner mode.\n * - 'default': Show a default native date picker(spinner/calendar) based on android versions.\n *\n * Returns a Promise which will be invoked an object containing `action`, `year`, `month` (0-11),\n * `day` if the user picked a date. If the user dismissed the dialog, the Promise will\n * still be resolved with action being `DatePickerAndroid.dismissedAction` and all the other keys\n * being undefined. **Always** check whether the `action` before reading the values.\n *\n * Note the native date picker dialog has some UI glitches on Android 4 and lower\n * when using the `minDate` and `maxDate` options.\n */\n static async open(options: Object): Promise {\n const optionsMs = options;\n if (optionsMs) {\n _toMillis(options, 'date');\n _toMillis(options, 'minDate');\n _toMillis(options, 'maxDate');\n }\n return DatePickerModule.open(options);\n }\n\n /**\n * A date has been selected.\n */\n static get dateSetAction() {\n return 'dateSetAction';\n }\n /**\n * The dialog has been dismissed.\n */\n static get dismissedAction() {\n return 'dismissedAction';\n }\n}\n\nmodule.exports = DatePickerAndroid;\n","/**\n * Copyright (c) 2015-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n * @flow\n */\n\n'use strict';\n\nconst RCTImagePicker = require('NativeModules').ImagePickerIOS;\n\nconst ImagePickerIOS = {\n canRecordVideos: function(callback: Function) {\n return RCTImagePicker.canRecordVideos(callback);\n },\n canUseCamera: function(callback: Function) {\n return RCTImagePicker.canUseCamera(callback);\n },\n openCameraDialog: function(\n config: Object,\n successCallback: Function,\n cancelCallback: Function,\n ) {\n config = {\n videoMode: false,\n ...config,\n };\n return RCTImagePicker.openCameraDialog(\n config,\n successCallback,\n cancelCallback,\n );\n },\n openSelectDialog: function(\n config: Object,\n successCallback: Function,\n cancelCallback: Function,\n ) {\n config = {\n showImages: true,\n showVideos: false,\n ...config,\n };\n return RCTImagePicker.openSelectDialog(\n config,\n successCallback,\n cancelCallback,\n );\n },\n};\n\nmodule.exports = ImagePickerIOS;\n","/**\n * Copyright (c) 2015-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n * @flow\n */\n\n'use strict';\n\nconst NativeEventEmitter = require('NativeEventEmitter');\nconst NativeModules = require('NativeModules');\nconst Platform = require('Platform');\n\nconst invariant = require('fbjs/lib/invariant');\n\nconst LinkingManager =\n Platform.OS === 'android'\n ? NativeModules.IntentAndroid\n : NativeModules.LinkingManager;\n\n/**\n * `Linking` gives you a general interface to interact with both incoming\n * and outgoing app links.\n *\n * See https://facebook.github.io/react-native/docs/linking.html\n */\nclass Linking extends NativeEventEmitter {\n constructor() {\n super(LinkingManager);\n }\n\n /**\n * Add a handler to Linking changes by listening to the `url` event type\n * and providing the handler\n *\n * See https://facebook.github.io/react-native/docs/linking.html#addeventlistener\n */\n addEventListener(type: string, handler: Function) {\n this.addListener(type, handler);\n }\n\n /**\n * Remove a handler by passing the `url` event type and the handler.\n *\n * See https://facebook.github.io/react-native/docs/linking.html#removeeventlistener\n */\n removeEventListener(type: string, handler: Function) {\n this.removeListener(type, handler);\n }\n\n /**\n * Try to open the given `url` with any of the installed apps.\n *\n * See https://facebook.github.io/react-native/docs/linking.html#openurl\n */\n openURL(url: string): Promise {\n this._validateURL(url);\n return LinkingManager.openURL(url);\n }\n\n /**\n * Determine whether or not an installed app can handle a given URL.\n *\n * See https://facebook.github.io/react-native/docs/linking.html#canopenurl\n */\n canOpenURL(url: string): Promise {\n this._validateURL(url);\n return LinkingManager.canOpenURL(url);\n }\n\n /**\n * If the app launch was triggered by an app link,\n * it will give the link url, otherwise it will give `null`\n *\n * See https://facebook.github.io/react-native/docs/linking.html#getinitialurl\n */\n getInitialURL(): Promise {\n return LinkingManager.getInitialURL();\n }\n\n _validateURL(url: string) {\n invariant(\n typeof url === 'string',\n 'Invalid URL: should be a string. Was: ' + url,\n );\n invariant(url, 'Invalid URL: cannot be empty');\n }\n}\n\nmodule.exports = new Linking();\n","/**\n * Copyright (c) 2015-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n * @flow\n */\n\n'use strict';\n\nconst Map = require('Map');\nconst NativeEventEmitter = require('NativeEventEmitter');\nconst NativeModules = require('NativeModules');\nconst Platform = require('Platform');\nconst RCTNetInfo = NativeModules.NetInfo;\n\nconst NetInfoEventEmitter = new NativeEventEmitter(RCTNetInfo);\n\nconst DEVICE_CONNECTIVITY_EVENT = 'networkStatusDidChange';\n\ntype ChangeEventName = $Enum<{\n connectionChange: string,\n change: string,\n}>;\n\ntype ReachabilityStateIOS = $Enum<{\n cell: string,\n none: string,\n unknown: string,\n wifi: string,\n}>;\n\ntype ConnectivityStateAndroid = $Enum<{\n NONE: string,\n MOBILE: string,\n WIFI: string,\n MOBILE_MMS: string,\n MOBILE_SUPL: string,\n MOBILE_DUN: string,\n MOBILE_HIPRI: string,\n WIMAX: string,\n BLUETOOTH: string,\n DUMMY: string,\n ETHERNET: string,\n MOBILE_FOTA: string,\n MOBILE_IMS: string,\n MOBILE_CBS: string,\n WIFI_P2P: string,\n MOBILE_IA: string,\n MOBILE_EMERGENCY: string,\n PROXY: string,\n VPN: string,\n UNKNOWN: string,\n}>;\n\nconst _subscriptions = new Map();\n\nlet _isConnectedDeprecated;\nif (Platform.OS === 'ios') {\n _isConnectedDeprecated = function(\n reachability: ReachabilityStateIOS,\n ): boolean {\n return reachability !== 'none' && reachability !== 'unknown';\n };\n} else if (Platform.OS === 'android') {\n _isConnectedDeprecated = function(\n connectionType: ConnectivityStateAndroid,\n ): boolean {\n return connectionType !== 'NONE' && connectionType !== 'UNKNOWN';\n };\n}\n\nfunction _isConnected(connection) {\n return connection.type !== 'none' && connection.type !== 'unknown';\n}\n\nconst _isConnectedSubscriptions = new Map();\n\n/**\n * NetInfo exposes info about online/offline status.\n *\n * See https://facebook.github.io/react-native/docs/netinfo.html\n */\nconst NetInfo = {\n /**\n * Adds an event handler.\n *\n * See https://facebook.github.io/react-native/docs/netinfo.html#addeventlistener\n */\n addEventListener(\n eventName: ChangeEventName,\n handler: Function,\n ): {remove: () => void} {\n let listener;\n if (eventName === 'connectionChange') {\n listener = NetInfoEventEmitter.addListener(\n DEVICE_CONNECTIVITY_EVENT,\n appStateData => {\n handler({\n type: appStateData.connectionType,\n effectiveType: appStateData.effectiveConnectionType,\n });\n },\n );\n } else if (eventName === 'change') {\n console.warn(\n 'NetInfo\\'s \"change\" event is deprecated. Listen to the \"connectionChange\" event instead.',\n );\n\n listener = NetInfoEventEmitter.addListener(\n DEVICE_CONNECTIVITY_EVENT,\n appStateData => {\n handler(appStateData.network_info);\n },\n );\n } else {\n console.warn('Trying to subscribe to unknown event: \"' + eventName + '\"');\n return {\n remove: () => {},\n };\n }\n\n _subscriptions.set(handler, listener);\n return {\n remove: () => NetInfo.removeEventListener(eventName, handler),\n };\n },\n\n /**\n * Removes the listener for network status changes.\n *\n * See https://facebook.github.io/react-native/docs/netinfo.html#removeeventlistener\n */\n removeEventListener(eventName: ChangeEventName, handler: Function): void {\n const listener = _subscriptions.get(handler);\n if (!listener) {\n return;\n }\n listener.remove();\n _subscriptions.delete(handler);\n },\n\n /**\n * This function is deprecated. Use `getConnectionInfo` instead.\n * Returns a promise that resolves with one of the deprecated connectivity\n * types:\n *\n * The following connectivity types are deprecated. They're used by the\n * deprecated APIs `fetch` and the `change` event.\n *\n * iOS connectivity types (deprecated):\n * - `none` - device is offline\n * - `wifi` - device is online and connected via wifi, or is the iOS simulator\n * - `cell` - device is connected via Edge, 3G, WiMax, or LTE\n * - `unknown` - error case and the network status is unknown\n *\n * Android connectivity types (deprecated).\n * - `NONE` - device is offline\n * - `BLUETOOTH` - The Bluetooth data connection.\n * - `DUMMY` - Dummy data connection.\n * - `ETHERNET` - The Ethernet data connection.\n * - `MOBILE` - The Mobile data connection.\n * - `MOBILE_DUN` - A DUN-specific Mobile data connection.\n * - `MOBILE_HIPRI` - A High Priority Mobile data connection.\n * - `MOBILE_MMS` - An MMS-specific Mobile data connection.\n * - `MOBILE_SUPL` - A SUPL-specific Mobile data connection.\n * - `VPN` - A virtual network using one or more native bearers. Requires\n * API Level 21\n * - `WIFI` - The WIFI data connection.\n * - `WIMAX` - The WiMAX data connection.\n * - `UNKNOWN` - Unknown data connection.\n *\n * The rest of the connectivity types are hidden by the Android API, but can\n * be used if necessary.\n */\n fetch(): Promise {\n console.warn(\n 'NetInfo.fetch() is deprecated. Use NetInfo.getConnectionInfo() instead.',\n );\n return RCTNetInfo.getCurrentConnectivity().then(resp => resp.network_info);\n },\n\n /**\n * See https://facebook.github.io/react-native/docs/netinfo.html#getconnectioninfo\n */\n getConnectionInfo(): Promise {\n return RCTNetInfo.getCurrentConnectivity().then(resp => {\n return {\n type: resp.connectionType,\n effectiveType: resp.effectiveConnectionType,\n };\n });\n },\n\n /**\n * An object with the same methods as above but the listener receives a\n * boolean which represents the internet connectivity.\n *\n * See https://facebook.github.io/react-native/docs/netinfo.html#isconnected\n */\n isConnected: {\n addEventListener(\n eventName: ChangeEventName,\n handler: Function,\n ): {remove: () => void} {\n const listener = connection => {\n if (eventName === 'change') {\n handler(_isConnectedDeprecated(connection));\n } else if (eventName === 'connectionChange') {\n handler(_isConnected(connection));\n }\n };\n _isConnectedSubscriptions.set(handler, listener);\n NetInfo.addEventListener(eventName, listener);\n return {\n remove: () =>\n NetInfo.isConnected.removeEventListener(eventName, handler),\n };\n },\n\n removeEventListener(eventName: ChangeEventName, handler: Function): void {\n const listener = _isConnectedSubscriptions.get(handler);\n NetInfo.removeEventListener(\n eventName,\n /* $FlowFixMe(>=0.36.0 site=react_native_fb,react_native_oss) Flow error\n * detected during the deploy of Flow v0.36.0. To see the error, remove\n * this comment and run Flow */\n listener,\n );\n _isConnectedSubscriptions.delete(handler);\n },\n\n fetch(): Promise {\n return NetInfo.getConnectionInfo().then(_isConnected);\n },\n },\n\n isConnectionExpensive(): Promise {\n return Platform.OS === 'android'\n ? RCTNetInfo.isConnectionMetered()\n : Promise.reject(new Error('Currently not supported on iOS'));\n },\n};\n\nmodule.exports = NetInfo;\n","/**\n * Copyright (c) 2015-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n * @flow\n */\n\n'use strict';\n\nconst NativeEventEmitter = require('NativeEventEmitter');\nconst RCTPushNotificationManager = require('NativeModules')\n .PushNotificationManager;\nconst invariant = require('fbjs/lib/invariant');\n\nconst PushNotificationEmitter = new NativeEventEmitter(\n RCTPushNotificationManager,\n);\n\nconst _notifHandlers = new Map();\n\nconst DEVICE_NOTIF_EVENT = 'remoteNotificationReceived';\nconst NOTIF_REGISTER_EVENT = 'remoteNotificationsRegistered';\nconst NOTIF_REGISTRATION_ERROR_EVENT = 'remoteNotificationRegistrationError';\nconst DEVICE_LOCAL_NOTIF_EVENT = 'localNotificationReceived';\n\nexport type ContentAvailable = 1 | null | void;\n\nexport type FetchResult = {\n NewData: string,\n NoData: string,\n ResultFailed: string,\n};\n\n/**\n * An event emitted by PushNotificationIOS.\n */\nexport type PushNotificationEventName = $Enum<{\n /**\n * Fired when a remote notification is received. The handler will be invoked\n * with an instance of `PushNotificationIOS`.\n */\n notification: string,\n /**\n * Fired when a local notification is received. The handler will be invoked\n * with an instance of `PushNotificationIOS`.\n */\n localNotification: string,\n /**\n * Fired when the user registers for remote notifications. The handler will be\n * invoked with a hex string representing the deviceToken.\n */\n register: string,\n /**\n * Fired when the user fails to register for remote notifications. Typically\n * occurs when APNS is having issues, or the device is a simulator. The\n * handler will be invoked with {message: string, code: number, details: any}.\n */\n registrationError: string,\n}>;\n\n/**\n *\n * Handle push notifications for your app, including permission handling and\n * icon badge number.\n *\n * See https://facebook.github.io/react-native/docs/pushnotificationios.html\n */\nclass PushNotificationIOS {\n _data: Object;\n _alert: string | Object;\n _sound: string;\n _category: string;\n _contentAvailable: ContentAvailable;\n _badgeCount: number;\n _notificationId: string;\n _isRemote: boolean;\n _remoteNotificationCompleteCallbackCalled: boolean;\n _threadID: string;\n\n static FetchResult: FetchResult = {\n NewData: 'UIBackgroundFetchResultNewData',\n NoData: 'UIBackgroundFetchResultNoData',\n ResultFailed: 'UIBackgroundFetchResultFailed',\n };\n\n /**\n * Schedules the localNotification for immediate presentation.\n *\n * See https://facebook.github.io/react-native/docs/pushnotificationios.html#presentlocalnotification\n */\n static presentLocalNotification(details: Object) {\n RCTPushNotificationManager.presentLocalNotification(details);\n }\n\n /**\n * Schedules the localNotification for future presentation.\n *\n * See https://facebook.github.io/react-native/docs/pushnotificationios.html#schedulelocalnotification\n */\n static scheduleLocalNotification(details: Object) {\n RCTPushNotificationManager.scheduleLocalNotification(details);\n }\n\n /**\n * Cancels all scheduled localNotifications.\n *\n * See https://facebook.github.io/react-native/docs/pushnotificationios.html#cancelalllocalnotifications\n */\n static cancelAllLocalNotifications() {\n RCTPushNotificationManager.cancelAllLocalNotifications();\n }\n\n /**\n * Remove all delivered notifications from Notification Center.\n *\n * See https://facebook.github.io/react-native/docs/pushnotificationios.html#removealldeliverednotifications\n */\n static removeAllDeliveredNotifications(): void {\n RCTPushNotificationManager.removeAllDeliveredNotifications();\n }\n\n /**\n * Provides you with a list of the app’s notifications that are still displayed in Notification Center.\n *\n * See https://facebook.github.io/react-native/docs/pushnotificationios.html#getdeliverednotifications\n */\n static getDeliveredNotifications(\n callback: (notifications: Array) => void,\n ): void {\n RCTPushNotificationManager.getDeliveredNotifications(callback);\n }\n\n /**\n * Removes the specified notifications from Notification Center\n *\n * See https://facebook.github.io/react-native/docs/pushnotificationios.html#removedeliverednotifications\n */\n static removeDeliveredNotifications(identifiers: Array): void {\n RCTPushNotificationManager.removeDeliveredNotifications(identifiers);\n }\n\n /**\n * Sets the badge number for the app icon on the home screen.\n *\n * See https://facebook.github.io/react-native/docs/pushnotificationios.html#setapplicationiconbadgenumber\n */\n static setApplicationIconBadgeNumber(number: number) {\n RCTPushNotificationManager.setApplicationIconBadgeNumber(number);\n }\n\n /**\n * Gets the current badge number for the app icon on the home screen.\n *\n * See https://facebook.github.io/react-native/docs/pushnotificationios.html#getapplicationiconbadgenumber\n */\n static getApplicationIconBadgeNumber(callback: Function) {\n RCTPushNotificationManager.getApplicationIconBadgeNumber(callback);\n }\n\n /**\n * Cancel local notifications.\n *\n * See https://facebook.github.io/react-native/docs/pushnotificationios.html#cancellocalnotification\n */\n static cancelLocalNotifications(userInfo: Object) {\n RCTPushNotificationManager.cancelLocalNotifications(userInfo);\n }\n\n /**\n * Gets the local notifications that are currently scheduled.\n *\n * See https://facebook.github.io/react-native/docs/pushnotificationios.html#getscheduledlocalnotifications\n */\n static getScheduledLocalNotifications(callback: Function) {\n RCTPushNotificationManager.getScheduledLocalNotifications(callback);\n }\n\n /**\n * Attaches a listener to remote or local notification events while the app\n * is running in the foreground or the background.\n *\n * See https://facebook.github.io/react-native/docs/pushnotificationios.html#addeventlistener\n */\n static addEventListener(type: PushNotificationEventName, handler: Function) {\n invariant(\n type === 'notification' ||\n type === 'register' ||\n type === 'registrationError' ||\n type === 'localNotification',\n 'PushNotificationIOS only supports `notification`, `register`, `registrationError`, and `localNotification` events',\n );\n let listener;\n if (type === 'notification') {\n listener = PushNotificationEmitter.addListener(\n DEVICE_NOTIF_EVENT,\n notifData => {\n handler(new PushNotificationIOS(notifData));\n },\n );\n } else if (type === 'localNotification') {\n listener = PushNotificationEmitter.addListener(\n DEVICE_LOCAL_NOTIF_EVENT,\n notifData => {\n handler(new PushNotificationIOS(notifData));\n },\n );\n } else if (type === 'register') {\n listener = PushNotificationEmitter.addListener(\n NOTIF_REGISTER_EVENT,\n registrationInfo => {\n handler(registrationInfo.deviceToken);\n },\n );\n } else if (type === 'registrationError') {\n listener = PushNotificationEmitter.addListener(\n NOTIF_REGISTRATION_ERROR_EVENT,\n errorInfo => {\n handler(errorInfo);\n },\n );\n }\n _notifHandlers.set(type, listener);\n }\n\n /**\n * Removes the event listener. Do this in `componentWillUnmount` to prevent\n * memory leaks.\n *\n * See https://facebook.github.io/react-native/docs/pushnotificationios.html#removeeventlistener\n */\n static removeEventListener(\n type: PushNotificationEventName,\n handler: Function,\n ) {\n invariant(\n type === 'notification' ||\n type === 'register' ||\n type === 'registrationError' ||\n type === 'localNotification',\n 'PushNotificationIOS only supports `notification`, `register`, `registrationError`, and `localNotification` events',\n );\n const listener = _notifHandlers.get(type);\n if (!listener) {\n return;\n }\n listener.remove();\n _notifHandlers.delete(type);\n }\n\n /**\n * Requests notification permissions from iOS, prompting the user's\n * dialog box. By default, it will request all notification permissions, but\n * a subset of these can be requested by passing a map of requested\n * permissions.\n *\n * See https://facebook.github.io/react-native/docs/pushnotificationios.html#requestpermissions\n */\n static requestPermissions(permissions?: {\n alert?: boolean,\n badge?: boolean,\n sound?: boolean,\n }): Promise<{\n alert: boolean,\n badge: boolean,\n sound: boolean,\n }> {\n let requestedPermissions = {};\n if (permissions) {\n requestedPermissions = {\n alert: !!permissions.alert,\n badge: !!permissions.badge,\n sound: !!permissions.sound,\n };\n } else {\n requestedPermissions = {\n alert: true,\n badge: true,\n sound: true,\n };\n }\n return RCTPushNotificationManager.requestPermissions(requestedPermissions);\n }\n\n /**\n * Unregister for all remote notifications received via Apple Push Notification service.\n *\n * See https://facebook.github.io/react-native/docs/pushnotificationios.html#abandonpermissions\n */\n static abandonPermissions() {\n RCTPushNotificationManager.abandonPermissions();\n }\n\n /**\n * See what push permissions are currently enabled. `callback` will be\n * invoked with a `permissions` object.\n *\n * See https://facebook.github.io/react-native/docs/pushnotificationios.html#checkpermissions\n */\n static checkPermissions(callback: Function) {\n invariant(typeof callback === 'function', 'Must provide a valid callback');\n RCTPushNotificationManager.checkPermissions(callback);\n }\n\n /**\n * This method returns a promise that resolves to either the notification\n * object if the app was launched by a push notification, or `null` otherwise.\n *\n * See https://facebook.github.io/react-native/docs/pushnotificationios.html#getinitialnotification\n */\n static getInitialNotification(): Promise {\n return RCTPushNotificationManager.getInitialNotification().then(\n notification => {\n return notification && new PushNotificationIOS(notification);\n },\n );\n }\n\n /**\n * You will never need to instantiate `PushNotificationIOS` yourself.\n * Listening to the `notification` event and invoking\n * `getInitialNotification` is sufficient\n *\n */\n constructor(nativeNotif: Object) {\n this._data = {};\n this._remoteNotificationCompleteCallbackCalled = false;\n this._isRemote = nativeNotif.remote;\n if (this._isRemote) {\n this._notificationId = nativeNotif.notificationId;\n }\n\n if (nativeNotif.remote) {\n // Extract data from Apple's `aps` dict as defined:\n // https://developer.apple.com/library/ios/documentation/NetworkingInternet/Conceptual/RemoteNotificationsPG/Chapters/ApplePushService.html\n Object.keys(nativeNotif).forEach(notifKey => {\n const notifVal = nativeNotif[notifKey];\n if (notifKey === 'aps') {\n this._alert = notifVal.alert;\n this._sound = notifVal.sound;\n this._badgeCount = notifVal.badge;\n this._category = notifVal.category;\n this._contentAvailable = notifVal['content-available'];\n this._threadID = notifVal['thread-id'];\n } else {\n this._data[notifKey] = notifVal;\n }\n });\n } else {\n // Local notifications aren't being sent down with `aps` dict.\n this._badgeCount = nativeNotif.applicationIconBadgeNumber;\n this._sound = nativeNotif.soundName;\n this._alert = nativeNotif.alertBody;\n this._data = nativeNotif.userInfo;\n this._category = nativeNotif.category;\n }\n }\n\n /**\n * This method is available for remote notifications that have been received via:\n * `application:didReceiveRemoteNotification:fetchCompletionHandler:`\n *\n * See https://facebook.github.io/react-native/docs/pushnotificationios.html#finish\n */\n finish(fetchResult: string) {\n if (\n !this._isRemote ||\n !this._notificationId ||\n this._remoteNotificationCompleteCallbackCalled\n ) {\n return;\n }\n this._remoteNotificationCompleteCallbackCalled = true;\n\n RCTPushNotificationManager.onFinishRemoteNotification(\n this._notificationId,\n fetchResult,\n );\n }\n\n /**\n * An alias for `getAlert` to get the notification's main message string\n */\n getMessage(): ?string | ?Object {\n // alias because \"alert\" is an ambiguous name\n return this._alert;\n }\n\n /**\n * Gets the sound string from the `aps` object\n *\n * See https://facebook.github.io/react-native/docs/pushnotificationios.html#getsound\n */\n getSound(): ?string {\n return this._sound;\n }\n\n /**\n * Gets the category string from the `aps` object\n *\n * See https://facebook.github.io/react-native/docs/pushnotificationios.html#getcategory\n */\n getCategory(): ?string {\n return this._category;\n }\n\n /**\n * Gets the notification's main message from the `aps` object\n *\n * See https://facebook.github.io/react-native/docs/pushnotificationios.html#getalert\n */\n getAlert(): ?string | ?Object {\n return this._alert;\n }\n\n /**\n * Gets the content-available number from the `aps` object\n *\n * See https://facebook.github.io/react-native/docs/pushnotificationios.html#getcontentavailable\n */\n getContentAvailable(): ContentAvailable {\n return this._contentAvailable;\n }\n\n /**\n * Gets the badge count number from the `aps` object\n *\n * See https://facebook.github.io/react-native/docs/pushnotificationios.html#getbadgecount\n */\n getBadgeCount(): ?number {\n return this._badgeCount;\n }\n\n /**\n * Gets the data object on the notif\n *\n * See https://facebook.github.io/react-native/docs/pushnotificationios.html#getdata\n */\n getData(): ?Object {\n return this._data;\n }\n\n /**\n * Gets the thread ID on the notif\n *\n * See https://facebook.github.io/react-native/docs/pushnotificationios.html#getthreadid\n */\n getThreadID(): ?string {\n return this._threadID;\n }\n}\n\nmodule.exports = PushNotificationIOS;\n","/**\n * Copyright (c) 2015-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n * @flow\n */\n\n'use strict';\n\nconst Settings = {\n get(key: string): mixed {\n console.warn('Settings is not yet supported on Android');\n return null;\n },\n\n set(settings: Object) {\n console.warn('Settings is not yet supported on Android');\n },\n\n watchKeys(keys: string | Array, callback: Function): number {\n console.warn('Settings is not yet supported on Android');\n return -1;\n },\n\n clearWatch(watchId: number) {\n console.warn('Settings is not yet supported on Android');\n },\n};\n\nmodule.exports = Settings;\n","/**\n * Copyright (c) 2016-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n * @flow\n */\n\n'use strict';\n\nconst Platform = require('Platform');\n\nconst invariant = require('fbjs/lib/invariant');\nconst processColor = require('processColor');\n\nconst {ActionSheetManager, ShareModule} = require('NativeModules');\n\ntype Content =\n | {title?: string, message: string}\n | {title?: string, url: string};\ntype Options = {\n dialogTitle?: string,\n excludedActivityTypes?: Array,\n tintColor?: string,\n subject?: string,\n};\n\nclass Share {\n /**\n * Open a dialog to share text content.\n *\n * In iOS, Returns a Promise which will be invoked an object containing `action`, `activityType`.\n * If the user dismissed the dialog, the Promise will still be resolved with action being `Share.dismissedAction`\n * and all the other keys being undefined.\n *\n * In Android, Returns a Promise which always be resolved with action being `Share.sharedAction`.\n *\n * ### Content\n *\n * - `message` - a message to share\n * - `title` - title of the message\n *\n * #### iOS\n *\n * - `url` - an URL to share\n *\n * At least one of URL and message is required.\n *\n * ### Options\n *\n * #### iOS\n *\n * - `subject` - a subject to share via email\n * - `excludedActivityTypes`\n * - `tintColor`\n *\n * #### Android\n *\n * - `dialogTitle`\n *\n */\n static share(content: Content, options: Options = {}): Promise {\n invariant(\n typeof content === 'object' && content !== null,\n 'Content to share must be a valid object',\n );\n invariant(\n typeof content.url === 'string' || typeof content.message === 'string',\n 'At least one of URL and message is required',\n );\n invariant(\n typeof options === 'object' && options !== null,\n 'Options must be a valid object',\n );\n\n if (Platform.OS === 'android') {\n invariant(\n !content.title || typeof content.title === 'string',\n 'Invalid title: title should be a string.',\n );\n return ShareModule.share(content, options.dialogTitle);\n } else if (Platform.OS === 'ios') {\n return new Promise((resolve, reject) => {\n ActionSheetManager.showShareActionSheetWithOptions(\n {...content, ...options, tintColor: processColor(options.tintColor)},\n error => reject(error),\n (success, activityType) => {\n if (success) {\n resolve({\n action: 'sharedAction',\n activityType: activityType,\n });\n } else {\n resolve({\n action: 'dismissedAction',\n });\n }\n },\n );\n });\n } else {\n return Promise.reject(new Error('Unsupported platform'));\n }\n }\n\n /**\n * The content was successfully shared.\n */\n static get sharedAction(): string {\n return 'sharedAction';\n }\n\n /**\n * The dialog has been dismissed.\n * @platform ios\n */\n static get dismissedAction(): string {\n return 'dismissedAction';\n }\n}\n\nmodule.exports = Share;\n","/**\n * Copyright (c) 2015-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n * @flow\n */\n\n'use strict';\n\nconst NativeEventEmitter = require('NativeEventEmitter');\n\n/* $FlowFixMe(>=0.78.0 site=react_native_android_fb) This issue was found when\n * making Flow check .android.js files. */\nmodule.exports = new NativeEventEmitter('StatusBarManager');\n","/**\n * Copyright (c) 2015-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n * @flow\n */\n\n'use strict';\n\nconst TimePickerModule = require('NativeModules').TimePickerAndroid;\n\n/**\n * Opens the standard Android time picker dialog.\n *\n * ### Example\n *\n * ```\n * try {\n * const {action, hour, minute} = await TimePickerAndroid.open({\n * hour: 14,\n * minute: 0,\n * is24Hour: false, // Will display '2 PM'\n * });\n * if (action !== TimePickerAndroid.dismissedAction) {\n * // Selected hour (0-23), minute (0-59)\n * }\n * } catch ({code, message}) {\n * console.warn('Cannot open time picker', message);\n * }\n * ```\n */\nclass TimePickerAndroid {\n /**\n * Opens the standard Android time picker dialog.\n *\n * The available keys for the `options` object are:\n * * `hour` (0-23) - the hour to show, defaults to the current time\n * * `minute` (0-59) - the minute to show, defaults to the current time\n * * `is24Hour` (boolean) - If `true`, the picker uses the 24-hour format. If `false`,\n * the picker shows an AM/PM chooser. If undefined, the default for the current locale\n * is used.\n * * `mode` (`enum('clock', 'spinner', 'default')`) - set the time picker mode\n * - 'clock': Show a time picker in clock mode.\n * - 'spinner': Show a time picker in spinner mode.\n * - 'default': Show a default time picker based on Android versions.\n *\n * Returns a Promise which will be invoked an object containing `action`, `hour` (0-23),\n * `minute` (0-59) if the user picked a time. If the user dismissed the dialog, the Promise will\n * still be resolved with action being `TimePickerAndroid.dismissedAction` and all the other keys\n * being undefined. **Always** check whether the `action` before reading the values.\n */\n static async open(options: Object): Promise {\n return TimePickerModule.open(options);\n }\n\n /**\n * A time has been selected.\n */\n static get timeSetAction() {\n return 'timeSetAction';\n }\n /**\n * The dialog has been dismissed.\n */\n static get dismissedAction() {\n return 'dismissedAction';\n }\n}\n\nmodule.exports = TimePickerAndroid;\n","/**\n * Copyright (c) 2015-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n * @flow\n * @jsdoc\n */\n\n'use strict';\n\nconst RCTVibration = require('NativeModules').Vibration;\nconst Platform = require('Platform');\n\n/**\n * Vibration API\n *\n * See https://facebook.github.io/react-native/docs/vibration.html\n */\n\nlet _vibrating: boolean = false;\nlet _id: number = 0; // _id is necessary to prevent race condition.\n\nfunction vibrateByPattern(pattern: Array, repeat: boolean = false) {\n if (_vibrating) {\n return;\n }\n _vibrating = true;\n if (pattern[0] === 0) {\n RCTVibration.vibrate();\n pattern = pattern.slice(1);\n }\n if (pattern.length === 0) {\n _vibrating = false;\n return;\n }\n setTimeout(() => vibrateScheduler(++_id, pattern, repeat, 1), pattern[0]);\n}\n\nfunction vibrateScheduler(\n id,\n pattern: Array,\n repeat: boolean,\n nextIndex: number,\n) {\n if (!_vibrating || id !== _id) {\n return;\n }\n RCTVibration.vibrate();\n if (nextIndex >= pattern.length) {\n if (repeat) {\n nextIndex = 0;\n } else {\n _vibrating = false;\n return;\n }\n }\n setTimeout(\n () => vibrateScheduler(id, pattern, repeat, nextIndex + 1),\n pattern[nextIndex],\n );\n}\n\nconst Vibration = {\n /**\n * Trigger a vibration with specified `pattern`.\n *\n * See https://facebook.github.io/react-native/docs/vibration.html#vibrate\n */\n vibrate: function(\n pattern: number | Array = 400,\n repeat: boolean = false,\n ) {\n if (Platform.OS === 'android') {\n if (typeof pattern === 'number') {\n RCTVibration.vibrate(pattern);\n } else if (Array.isArray(pattern)) {\n RCTVibration.vibrateByPattern(pattern, repeat ? 0 : -1);\n } else {\n throw new Error('Vibration pattern should be a number or array');\n }\n } else {\n if (_vibrating) {\n return;\n }\n if (typeof pattern === 'number') {\n RCTVibration.vibrate();\n } else if (Array.isArray(pattern)) {\n vibrateByPattern(pattern, repeat);\n } else {\n throw new Error('Vibration pattern should be a number or array');\n }\n }\n },\n /**\n * Stop vibration\n *\n * See https://facebook.github.io/react-native/docs/vibration.html#cancel\n */\n cancel: function() {\n if (Platform.OS === 'ios') {\n _vibrating = false;\n } else {\n RCTVibration.cancel();\n }\n },\n};\n\nmodule.exports = Vibration;\n","/**\n * Copyright (c) 2015-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * Stub of VibrationIOS for Android.\n *\n * @format\n */\n\n'use strict';\n\nconst warning = require('fbjs/lib/warning');\n\nconst VibrationIOS = {\n vibrate: function() {\n warning('VibrationIOS is not supported on this platform!');\n },\n};\n\nmodule.exports = VibrationIOS;\n","/**\n * Copyright (c) 2015-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @flow\n * @format\n */\n\n'use strict';\n\nconst React = require('React');\n\nimport type {Category} from 'YellowBoxCategory';\nimport type {Registry, Subscription} from 'YellowBoxRegistry';\n\ntype Props = $ReadOnly<{||}>;\ntype State = {|\n registry: ?Registry,\n|};\n\nlet YellowBox;\n\n/**\n * YellowBox displays warnings at the bottom of the screen.\n *\n * Warnings help guard against subtle yet significant issues that can impact the\n * quality of the app. This \"in your face\" style of warning allows developers to\n * notice and correct these issues as quickly as possible.\n *\n * YellowBox is only enabled in `__DEV__`. Set the following flag to disable it:\n *\n * console.disableYellowBox = true;\n *\n * Ignore specific warnings by calling:\n *\n * YellowBox.ignoreWarnings(['Warning: ...']);\n *\n * Strings supplied to `YellowBox.ignoreWarnings` only need to be a substring of\n * the ignored warning messages.\n */\nif (__DEV__) {\n const Platform = require('Platform');\n const RCTLog = require('RCTLog');\n const YellowBoxList = require('YellowBoxList');\n const YellowBoxRegistry = require('YellowBoxRegistry');\n\n const {error, warn} = console;\n\n // eslint-disable-next-line no-shadow\n YellowBox = class YellowBox extends React.Component {\n static ignoreWarnings(patterns: $ReadOnlyArray): void {\n YellowBoxRegistry.addIgnorePatterns(patterns);\n }\n\n static install(): void {\n (console: any).error = function(...args) {\n error.call(console, ...args);\n // Show YellowBox for the `warning` module.\n if (typeof args[0] === 'string' && args[0].startsWith('Warning: ')) {\n registerWarning(...args);\n }\n };\n\n (console: any).warn = function(...args) {\n warn.call(console, ...args);\n registerWarning(...args);\n };\n\n if ((console: any).disableYellowBox === true) {\n YellowBoxRegistry.setDisabled(true);\n }\n (Object.defineProperty: any)(console, 'disableYellowBox', {\n configurable: true,\n get: () => YellowBoxRegistry.isDisabled(),\n set: value => YellowBoxRegistry.setDisabled(value),\n });\n\n if (Platform.isTesting) {\n (console: any).disableYellowBox = true;\n }\n\n RCTLog.setWarningHandler((...args) => {\n registerWarning(...args);\n });\n }\n\n static uninstall(): void {\n (console: any).error = error;\n (console: any).warn = error;\n delete (console: any).disableYellowBox;\n }\n\n _subscription: ?Subscription;\n\n state = {\n registry: null,\n };\n\n render(): React.Node {\n // TODO: Ignore warnings that fire when rendering `YellowBox` itself.\n return this.state.registry == null ? null : (\n \n );\n }\n\n componentDidMount(): void {\n this._subscription = YellowBoxRegistry.observe(registry => {\n this.setState({registry});\n });\n }\n\n componentWillUnmount(): void {\n if (this._subscription != null) {\n this._subscription.unsubscribe();\n }\n }\n\n _handleDismiss = (category: Category): void => {\n YellowBoxRegistry.delete(category);\n };\n\n _handleDismissAll(): void {\n YellowBoxRegistry.clear();\n }\n };\n\n const registerWarning = (...args): void => {\n YellowBoxRegistry.add({args, framesToPop: 2});\n };\n} else {\n YellowBox = class extends React.Component {\n static ignoreWarnings(patterns: $ReadOnlyArray): void {\n // Do nothing.\n }\n\n static install(): void {\n // Do nothing.\n }\n\n static uninstall(): void {\n // Do nothing.\n }\n\n render(): React.Node {\n return null;\n }\n };\n}\n\nmodule.exports = YellowBox;\n","/**\n * Copyright (c) 2015-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n * @flow\n */\n\nconst ReactNative = require('ReactNative');\nconst UIManager = require('UIManager');\n\n/**\n * Capture an image of the screen, window or an individual view. The image\n * will be stored in a temporary file that will only exist for as long as the\n * app is running.\n *\n * The `view` argument can be the literal string `window` if you want to\n * capture the entire window, or it can be a reference to a specific\n * React Native component.\n *\n * The `options` argument may include:\n * - width/height (number) - the width and height of the image to capture.\n * - format (string) - either 'png' or 'jpeg'. Defaults to 'png'.\n * - quality (number) - the quality when using jpeg. 0.0 - 1.0 (default).\n *\n * Returns a Promise.\n * @platform ios\n */\nmodule.exports = function takeSnapshot(\n view?: 'window' | React$Element | number,\n options?: {\n width?: number,\n height?: number,\n format?: 'png' | 'jpeg',\n quality?: number,\n },\n): Promise {\n if (typeof view !== 'number' && view !== 'window') {\n view = ReactNative.findNodeHandle(view) || 'window';\n }\n\n // Call the hidden '__takeSnapshot' method; the main one throws an error to\n // prevent accidental backwards-incompatible usage.\n return UIManager.__takeSnapshot(view, options);\n};\n","/**\n * Copyright (c) 2015-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n * @flow strict\n */\n\n'use strict';\n\nconst PropTypes = require('prop-types');\n\nconst PointPropType = PropTypes.shape({\n x: PropTypes.number,\n y: PropTypes.number,\n});\n\nexport type PointProp = $ReadOnly<{\n x: number,\n y: number,\n}>;\n\nmodule.exports = PointPropType;\n","/** @flow\n * @format */\n\nimport '../globals';\n\nimport React from 'react';\n\n// Gutenberg imports\nimport { registerCoreBlocks } from '@wordpress/block-library';\nimport { registerBlockType, setUnregisteredTypeHandlerName, unregisterBlockType } from '@wordpress/blocks';\n\nimport AppContainer from './AppContainer';\nimport initialHtml from './initial-html';\n\nimport * as UnsupportedBlock from '../block-types/unsupported-block/';\n\nregisterCoreBlocks();\nregisterBlockType( UnsupportedBlock.name, UnsupportedBlock.settings );\nsetUnregisteredTypeHandlerName( UnsupportedBlock.name );\n\n// disable Code and More blocks for release\nif ( ! __DEV__ ) {\n\tunregisterBlockType( 'core/code' );\n\tunregisterBlockType( 'core/more' );\n}\n\ntype PropsType = {\n\tinitialData: string,\n\tinitialHtmlModeEnabled: boolean,\n};\n\nconst AppProvider = ( { initialData, initialHtmlModeEnabled }: PropsType ) => {\n\tif ( initialData === undefined ) {\n\t\tinitialData = initialHtml;\n\t}\n\treturn (\n\t\t\n\t);\n};\n\nexport default AppProvider;\n","function _interopRequireWildcard(obj) {\n if (obj && obj.__esModule) {\n return obj;\n } else {\n var newObj = {};\n\n if (obj != null) {\n for (var key in obj) {\n if (Object.prototype.hasOwnProperty.call(obj, key)) {\n var desc = Object.defineProperty && Object.getOwnPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : {};\n\n if (desc.get || desc.set) {\n Object.defineProperty(newObj, key, desc);\n } else {\n newObj[key] = obj[key];\n }\n }\n }\n }\n\n newObj.default = obj;\n return newObj;\n }\n}\n\nmodule.exports = _interopRequireWildcard;","export * from './react';\nexport * from './react-platform';\nexport * from './utils';\nexport { default as renderToString } from './serialize';\nexport { default as RawHTML } from './raw-html';\n","/**\n * External dependencies\n */\nimport {\n\tChildren,\n\tcloneElement,\n\tComponent,\n\tcreateContext,\n\tcreateElement,\n\tcreateRef,\n\tforwardRef,\n\tFragment,\n\tisValidElement,\n\tStrictMode,\n} from 'react';\nimport { isString } from 'lodash';\n\nexport { Children };\n\n/**\n * Creates a copy of an element with extended props.\n *\n * @param {WPElement} element Element\n * @param {?Object} props Props to apply to cloned element\n *\n * @return {WPElement} Cloned element.\n */\nexport { cloneElement };\n\n/**\n * A base class to create WordPress Components (Refs, state and lifecycle hooks)\n */\nexport { Component };\n\n/**\n * Creates a context object containing two components: a provider and consumer.\n *\n * @param {Object} defaultValue A default data stored in the context.\n *\n * @return {Object} Context object.\n */\nexport { createContext };\n\n/**\n * Returns a new element of given type. Type can be either a string tag name or\n * another function which itself returns an element.\n *\n * @param {?(string|Function)} type Tag name or element creator\n * @param {Object} props Element properties, either attribute\n * set to apply to DOM node or values to\n * pass through to element creator\n * @param {...WPElement} children Descendant elements\n *\n * @return {WPElement} Element.\n */\nexport { createElement };\n\n/**\n * Returns an object tracking a reference to a rendered element via its\n * `current` property as either a DOMElement or Element, dependent upon the\n * type of element rendered with the ref attribute.\n *\n * @return {Object} Ref object.\n */\nexport { createRef };\n\n/**\n * Component enhancer used to enable passing a ref to its wrapped component.\n * Pass a function argument which receives `props` and `ref` as its arguments,\n * returning an element using the forwarded ref. The return value is a new\n * component which forwards its ref.\n *\n * @param {Function} forwarder Function passed `props` and `ref`, expected to\n * return an element.\n *\n * @return {WPComponent} Enhanced component.\n */\nexport { forwardRef };\n\n/**\n * A component which renders its children without any wrapping element.\n */\nexport { Fragment };\n\n/**\n * Checks if an object is a valid WPElement\n *\n * @param {Object} objectToCheck The object to be checked.\n *\n * @return {boolean} true if objectToTest is a valid WPElement and false otherwise.\n */\nexport { isValidElement };\n\nexport { StrictMode };\n\n/**\n * Concatenate two or more React children objects.\n *\n * @param {...?Object} childrenArguments Array of children arguments (array of arrays/strings/objects) to concatenate.\n *\n * @return {Array} The concatenated value.\n */\nexport function concatChildren( ...childrenArguments ) {\n\treturn childrenArguments.reduce( ( memo, children, i ) => {\n\t\tChildren.forEach( children, ( child, j ) => {\n\t\t\tif ( child && 'string' !== typeof child ) {\n\t\t\t\tchild = cloneElement( child, {\n\t\t\t\t\tkey: [ i, j ].join(),\n\t\t\t\t} );\n\t\t\t}\n\n\t\t\tmemo.push( child );\n\t\t} );\n\n\t\treturn memo;\n\t}, [] );\n}\n\n/**\n * Switches the nodeName of all the elements in the children object.\n *\n * @param {?Object} children Children object.\n * @param {string} nodeName Node name.\n *\n * @return {?Object} The updated children object.\n */\nexport function switchChildrenNodeName( children, nodeName ) {\n\treturn children && Children.map( children, ( elt, index ) => {\n\t\tif ( isString( elt ) ) {\n\t\t\treturn createElement( nodeName, { key: index }, elt );\n\t\t}\n\t\tconst { children: childrenProp, ...props } = elt.props;\n\t\treturn createElement( nodeName, { key: index, ...props }, childrenProp );\n\t} );\n}\n","/**\n * @license\n * Lodash \n * Copyright JS Foundation and other contributors \n * Released under MIT license \n * Based on Underscore.js 1.8.3 \n * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors\n */\n;(function() {\n\n /** Used as a safe reference for `undefined` in pre-ES5 environments. */\n var undefined;\n\n /** Used as the semantic version number. */\n var VERSION = '4.17.11';\n\n /** Used as the size to enable large array optimizations. */\n var LARGE_ARRAY_SIZE = 200;\n\n /** Error message constants. */\n var CORE_ERROR_TEXT = 'Unsupported core-js use. Try https://npms.io/search?q=ponyfill.',\n FUNC_ERROR_TEXT = 'Expected a function';\n\n /** Used to stand-in for `undefined` hash values. */\n var HASH_UNDEFINED = '__lodash_hash_undefined__';\n\n /** Used as the maximum memoize cache size. */\n var MAX_MEMOIZE_SIZE = 500;\n\n /** Used as the internal argument placeholder. */\n var PLACEHOLDER = '__lodash_placeholder__';\n\n /** Used to compose bitmasks for cloning. */\n var CLONE_DEEP_FLAG = 1,\n CLONE_FLAT_FLAG = 2,\n CLONE_SYMBOLS_FLAG = 4;\n\n /** Used to compose bitmasks for value comparisons. */\n var COMPARE_PARTIAL_FLAG = 1,\n COMPARE_UNORDERED_FLAG = 2;\n\n /** Used to compose bitmasks for function metadata. */\n var WRAP_BIND_FLAG = 1,\n WRAP_BIND_KEY_FLAG = 2,\n WRAP_CURRY_BOUND_FLAG = 4,\n WRAP_CURRY_FLAG = 8,\n WRAP_CURRY_RIGHT_FLAG = 16,\n WRAP_PARTIAL_FLAG = 32,\n WRAP_PARTIAL_RIGHT_FLAG = 64,\n WRAP_ARY_FLAG = 128,\n WRAP_REARG_FLAG = 256,\n WRAP_FLIP_FLAG = 512;\n\n /** Used as default options for `_.truncate`. */\n var DEFAULT_TRUNC_LENGTH = 30,\n DEFAULT_TRUNC_OMISSION = '...';\n\n /** Used to detect hot functions by number of calls within a span of milliseconds. */\n var HOT_COUNT = 800,\n HOT_SPAN = 16;\n\n /** Used to indicate the type of lazy iteratees. */\n var LAZY_FILTER_FLAG = 1,\n LAZY_MAP_FLAG = 2,\n LAZY_WHILE_FLAG = 3;\n\n /** Used as references for various `Number` constants. */\n var INFINITY = 1 / 0,\n MAX_SAFE_INTEGER = 9007199254740991,\n MAX_INTEGER = 1.7976931348623157e+308,\n NAN = 0 / 0;\n\n /** Used as references for the maximum length and index of an array. */\n var MAX_ARRAY_LENGTH = 4294967295,\n MAX_ARRAY_INDEX = MAX_ARRAY_LENGTH - 1,\n HALF_MAX_ARRAY_LENGTH = MAX_ARRAY_LENGTH >>> 1;\n\n /** Used to associate wrap methods with their bit flags. */\n var wrapFlags = [\n ['ary', WRAP_ARY_FLAG],\n ['bind', WRAP_BIND_FLAG],\n ['bindKey', WRAP_BIND_KEY_FLAG],\n ['curry', WRAP_CURRY_FLAG],\n ['curryRight', WRAP_CURRY_RIGHT_FLAG],\n ['flip', WRAP_FLIP_FLAG],\n ['partial', WRAP_PARTIAL_FLAG],\n ['partialRight', WRAP_PARTIAL_RIGHT_FLAG],\n ['rearg', WRAP_REARG_FLAG]\n ];\n\n /** `Object#toString` result references. */\n var argsTag = '[object Arguments]',\n arrayTag = '[object Array]',\n asyncTag = '[object AsyncFunction]',\n boolTag = '[object Boolean]',\n dateTag = '[object Date]',\n domExcTag = '[object DOMException]',\n errorTag = '[object Error]',\n funcTag = '[object Function]',\n genTag = '[object GeneratorFunction]',\n mapTag = '[object Map]',\n numberTag = '[object Number]',\n nullTag = '[object Null]',\n objectTag = '[object Object]',\n promiseTag = '[object Promise]',\n proxyTag = '[object Proxy]',\n regexpTag = '[object RegExp]',\n setTag = '[object Set]',\n stringTag = '[object String]',\n symbolTag = '[object Symbol]',\n undefinedTag = '[object Undefined]',\n weakMapTag = '[object WeakMap]',\n weakSetTag = '[object WeakSet]';\n\n var arrayBufferTag = '[object ArrayBuffer]',\n dataViewTag = '[object DataView]',\n float32Tag = '[object Float32Array]',\n float64Tag = '[object Float64Array]',\n int8Tag = '[object Int8Array]',\n int16Tag = '[object Int16Array]',\n int32Tag = '[object Int32Array]',\n uint8Tag = '[object Uint8Array]',\n uint8ClampedTag = '[object Uint8ClampedArray]',\n uint16Tag = '[object Uint16Array]',\n uint32Tag = '[object Uint32Array]';\n\n /** Used to match empty string literals in compiled template source. */\n var reEmptyStringLeading = /\\b__p \\+= '';/g,\n reEmptyStringMiddle = /\\b(__p \\+=) '' \\+/g,\n reEmptyStringTrailing = /(__e\\(.*?\\)|\\b__t\\)) \\+\\n'';/g;\n\n /** Used to match HTML entities and HTML characters. */\n var reEscapedHtml = /&(?:amp|lt|gt|quot|#39);/g,\n reUnescapedHtml = /[&<>\"']/g,\n reHasEscapedHtml = RegExp(reEscapedHtml.source),\n reHasUnescapedHtml = RegExp(reUnescapedHtml.source);\n\n /** Used to match template delimiters. */\n var reEscape = /<%-([\\s\\S]+?)%>/g,\n reEvaluate = /<%([\\s\\S]+?)%>/g,\n reInterpolate = /<%=([\\s\\S]+?)%>/g;\n\n /** Used to match property names within property paths. */\n var reIsDeepProp = /\\.|\\[(?:[^[\\]]*|([\"'])(?:(?!\\1)[^\\\\]|\\\\.)*?\\1)\\]/,\n reIsPlainProp = /^\\w*$/,\n rePropName = /[^.[\\]]+|\\[(?:(-?\\d+(?:\\.\\d+)?)|([\"'])((?:(?!\\2)[^\\\\]|\\\\.)*?)\\2)\\]|(?=(?:\\.|\\[\\])(?:\\.|\\[\\]|$))/g;\n\n /**\n * Used to match `RegExp`\n * [syntax characters](http://ecma-international.org/ecma-262/7.0/#sec-patterns).\n */\n var reRegExpChar = /[\\\\^$.*+?()[\\]{}|]/g,\n reHasRegExpChar = RegExp(reRegExpChar.source);\n\n /** Used to match leading and trailing whitespace. */\n var reTrim = /^\\s+|\\s+$/g,\n reTrimStart = /^\\s+/,\n reTrimEnd = /\\s+$/;\n\n /** Used to match wrap detail comments. */\n var reWrapComment = /\\{(?:\\n\\/\\* \\[wrapped with .+\\] \\*\\/)?\\n?/,\n reWrapDetails = /\\{\\n\\/\\* \\[wrapped with (.+)\\] \\*/,\n reSplitDetails = /,? & /;\n\n /** Used to match words composed of alphanumeric characters. */\n var reAsciiWord = /[^\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\x7f]+/g;\n\n /** Used to match backslashes in property paths. */\n var reEscapeChar = /\\\\(\\\\)?/g;\n\n /**\n * Used to match\n * [ES template delimiters](http://ecma-international.org/ecma-262/7.0/#sec-template-literal-lexical-components).\n */\n var reEsTemplate = /\\$\\{([^\\\\}]*(?:\\\\.[^\\\\}]*)*)\\}/g;\n\n /** Used to match `RegExp` flags from their coerced string values. */\n var reFlags = /\\w*$/;\n\n /** Used to detect bad signed hexadecimal string values. */\n var reIsBadHex = /^[-+]0x[0-9a-f]+$/i;\n\n /** Used to detect binary string values. */\n var reIsBinary = /^0b[01]+$/i;\n\n /** Used to detect host constructors (Safari). */\n var reIsHostCtor = /^\\[object .+?Constructor\\]$/;\n\n /** Used to detect octal string values. */\n var reIsOctal = /^0o[0-7]+$/i;\n\n /** Used to detect unsigned integer values. */\n var reIsUint = /^(?:0|[1-9]\\d*)$/;\n\n /** Used to match Latin Unicode letters (excluding mathematical operators). */\n var reLatin = /[\\xc0-\\xd6\\xd8-\\xf6\\xf8-\\xff\\u0100-\\u017f]/g;\n\n /** Used to ensure capturing order of template delimiters. */\n var reNoMatch = /($^)/;\n\n /** Used to match unescaped characters in compiled string literals. */\n var reUnescapedString = /['\\n\\r\\u2028\\u2029\\\\]/g;\n\n /** Used to compose unicode character classes. */\n var rsAstralRange = '\\\\ud800-\\\\udfff',\n rsComboMarksRange = '\\\\u0300-\\\\u036f',\n reComboHalfMarksRange = '\\\\ufe20-\\\\ufe2f',\n rsComboSymbolsRange = '\\\\u20d0-\\\\u20ff',\n rsComboRange = rsComboMarksRange + reComboHalfMarksRange + rsComboSymbolsRange,\n rsDingbatRange = '\\\\u2700-\\\\u27bf',\n rsLowerRange = 'a-z\\\\xdf-\\\\xf6\\\\xf8-\\\\xff',\n rsMathOpRange = '\\\\xac\\\\xb1\\\\xd7\\\\xf7',\n rsNonCharRange = '\\\\x00-\\\\x2f\\\\x3a-\\\\x40\\\\x5b-\\\\x60\\\\x7b-\\\\xbf',\n rsPunctuationRange = '\\\\u2000-\\\\u206f',\n rsSpaceRange = ' \\\\t\\\\x0b\\\\f\\\\xa0\\\\ufeff\\\\n\\\\r\\\\u2028\\\\u2029\\\\u1680\\\\u180e\\\\u2000\\\\u2001\\\\u2002\\\\u2003\\\\u2004\\\\u2005\\\\u2006\\\\u2007\\\\u2008\\\\u2009\\\\u200a\\\\u202f\\\\u205f\\\\u3000',\n rsUpperRange = 'A-Z\\\\xc0-\\\\xd6\\\\xd8-\\\\xde',\n rsVarRange = '\\\\ufe0e\\\\ufe0f',\n rsBreakRange = rsMathOpRange + rsNonCharRange + rsPunctuationRange + rsSpaceRange;\n\n /** Used to compose unicode capture groups. */\n var rsApos = \"['\\u2019]\",\n rsAstral = '[' + rsAstralRange + ']',\n rsBreak = '[' + rsBreakRange + ']',\n rsCombo = '[' + rsComboRange + ']',\n rsDigits = '\\\\d+',\n rsDingbat = '[' + rsDingbatRange + ']',\n rsLower = '[' + rsLowerRange + ']',\n rsMisc = '[^' + rsAstralRange + rsBreakRange + rsDigits + rsDingbatRange + rsLowerRange + rsUpperRange + ']',\n rsFitz = '\\\\ud83c[\\\\udffb-\\\\udfff]',\n rsModifier = '(?:' + rsCombo + '|' + rsFitz + ')',\n rsNonAstral = '[^' + rsAstralRange + ']',\n rsRegional = '(?:\\\\ud83c[\\\\udde6-\\\\uddff]){2}',\n rsSurrPair = '[\\\\ud800-\\\\udbff][\\\\udc00-\\\\udfff]',\n rsUpper = '[' + rsUpperRange + ']',\n rsZWJ = '\\\\u200d';\n\n /** Used to compose unicode regexes. */\n var rsMiscLower = '(?:' + rsLower + '|' + rsMisc + ')',\n rsMiscUpper = '(?:' + rsUpper + '|' + rsMisc + ')',\n rsOptContrLower = '(?:' + rsApos + '(?:d|ll|m|re|s|t|ve))?',\n rsOptContrUpper = '(?:' + rsApos + '(?:D|LL|M|RE|S|T|VE))?',\n reOptMod = rsModifier + '?',\n rsOptVar = '[' + rsVarRange + ']?',\n rsOptJoin = '(?:' + rsZWJ + '(?:' + [rsNonAstral, rsRegional, rsSurrPair].join('|') + ')' + rsOptVar + reOptMod + ')*',\n rsOrdLower = '\\\\d*(?:1st|2nd|3rd|(?![123])\\\\dth)(?=\\\\b|[A-Z_])',\n rsOrdUpper = '\\\\d*(?:1ST|2ND|3RD|(?![123])\\\\dTH)(?=\\\\b|[a-z_])',\n rsSeq = rsOptVar + reOptMod + rsOptJoin,\n rsEmoji = '(?:' + [rsDingbat, rsRegional, rsSurrPair].join('|') + ')' + rsSeq,\n rsSymbol = '(?:' + [rsNonAstral + rsCombo + '?', rsCombo, rsRegional, rsSurrPair, rsAstral].join('|') + ')';\n\n /** Used to match apostrophes. */\n var reApos = RegExp(rsApos, 'g');\n\n /**\n * Used to match [combining diacritical marks](https://en.wikipedia.org/wiki/Combining_Diacritical_Marks) and\n * [combining diacritical marks for symbols](https://en.wikipedia.org/wiki/Combining_Diacritical_Marks_for_Symbols).\n */\n var reComboMark = RegExp(rsCombo, 'g');\n\n /** Used to match [string symbols](https://mathiasbynens.be/notes/javascript-unicode). */\n var reUnicode = RegExp(rsFitz + '(?=' + rsFitz + ')|' + rsSymbol + rsSeq, 'g');\n\n /** Used to match complex or compound words. */\n var reUnicodeWord = RegExp([\n rsUpper + '?' + rsLower + '+' + rsOptContrLower + '(?=' + [rsBreak, rsUpper, '$'].join('|') + ')',\n rsMiscUpper + '+' + rsOptContrUpper + '(?=' + [rsBreak, rsUpper + rsMiscLower, '$'].join('|') + ')',\n rsUpper + '?' + rsMiscLower + '+' + rsOptContrLower,\n rsUpper + '+' + rsOptContrUpper,\n rsOrdUpper,\n rsOrdLower,\n rsDigits,\n rsEmoji\n ].join('|'), 'g');\n\n /** Used to detect strings with [zero-width joiners or code points from the astral planes](http://eev.ee/blog/2015/09/12/dark-corners-of-unicode/). */\n var reHasUnicode = RegExp('[' + rsZWJ + rsAstralRange + rsComboRange + rsVarRange + ']');\n\n /** Used to detect strings that need a more robust regexp to match words. */\n var reHasUnicodeWord = /[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;\n\n /** Used to assign default `context` object properties. */\n var contextProps = [\n 'Array', 'Buffer', 'DataView', 'Date', 'Error', 'Float32Array', 'Float64Array',\n 'Function', 'Int8Array', 'Int16Array', 'Int32Array', 'Map', 'Math', 'Object',\n 'Promise', 'RegExp', 'Set', 'String', 'Symbol', 'TypeError', 'Uint8Array',\n 'Uint8ClampedArray', 'Uint16Array', 'Uint32Array', 'WeakMap',\n '_', 'clearTimeout', 'isFinite', 'parseInt', 'setTimeout'\n ];\n\n /** Used to make template sourceURLs easier to identify. */\n var templateCounter = -1;\n\n /** Used to identify `toStringTag` values of typed arrays. */\n var typedArrayTags = {};\n typedArrayTags[float32Tag] = typedArrayTags[float64Tag] =\n typedArrayTags[int8Tag] = typedArrayTags[int16Tag] =\n typedArrayTags[int32Tag] = typedArrayTags[uint8Tag] =\n typedArrayTags[uint8ClampedTag] = typedArrayTags[uint16Tag] =\n typedArrayTags[uint32Tag] = true;\n typedArrayTags[argsTag] = typedArrayTags[arrayTag] =\n typedArrayTags[arrayBufferTag] = typedArrayTags[boolTag] =\n typedArrayTags[dataViewTag] = typedArrayTags[dateTag] =\n typedArrayTags[errorTag] = typedArrayTags[funcTag] =\n typedArrayTags[mapTag] = typedArrayTags[numberTag] =\n typedArrayTags[objectTag] = typedArrayTags[regexpTag] =\n typedArrayTags[setTag] = typedArrayTags[stringTag] =\n typedArrayTags[weakMapTag] = false;\n\n /** Used to identify `toStringTag` values supported by `_.clone`. */\n var cloneableTags = {};\n cloneableTags[argsTag] = cloneableTags[arrayTag] =\n cloneableTags[arrayBufferTag] = cloneableTags[dataViewTag] =\n cloneableTags[boolTag] = cloneableTags[dateTag] =\n cloneableTags[float32Tag] = cloneableTags[float64Tag] =\n cloneableTags[int8Tag] = cloneableTags[int16Tag] =\n cloneableTags[int32Tag] = cloneableTags[mapTag] =\n cloneableTags[numberTag] = cloneableTags[objectTag] =\n cloneableTags[regexpTag] = cloneableTags[setTag] =\n cloneableTags[stringTag] = cloneableTags[symbolTag] =\n cloneableTags[uint8Tag] = cloneableTags[uint8ClampedTag] =\n cloneableTags[uint16Tag] = cloneableTags[uint32Tag] = true;\n cloneableTags[errorTag] = cloneableTags[funcTag] =\n cloneableTags[weakMapTag] = false;\n\n /** Used to map Latin Unicode letters to basic Latin letters. */\n var deburredLetters = {\n // Latin-1 Supplement block.\n '\\xc0': 'A', '\\xc1': 'A', '\\xc2': 'A', '\\xc3': 'A', '\\xc4': 'A', '\\xc5': 'A',\n '\\xe0': 'a', '\\xe1': 'a', '\\xe2': 'a', '\\xe3': 'a', '\\xe4': 'a', '\\xe5': 'a',\n '\\xc7': 'C', '\\xe7': 'c',\n '\\xd0': 'D', '\\xf0': 'd',\n '\\xc8': 'E', '\\xc9': 'E', '\\xca': 'E', '\\xcb': 'E',\n '\\xe8': 'e', '\\xe9': 'e', '\\xea': 'e', '\\xeb': 'e',\n '\\xcc': 'I', '\\xcd': 'I', '\\xce': 'I', '\\xcf': 'I',\n '\\xec': 'i', '\\xed': 'i', '\\xee': 'i', '\\xef': 'i',\n '\\xd1': 'N', '\\xf1': 'n',\n '\\xd2': 'O', '\\xd3': 'O', '\\xd4': 'O', '\\xd5': 'O', '\\xd6': 'O', '\\xd8': 'O',\n '\\xf2': 'o', '\\xf3': 'o', '\\xf4': 'o', '\\xf5': 'o', '\\xf6': 'o', '\\xf8': 'o',\n '\\xd9': 'U', '\\xda': 'U', '\\xdb': 'U', '\\xdc': 'U',\n '\\xf9': 'u', '\\xfa': 'u', '\\xfb': 'u', '\\xfc': 'u',\n '\\xdd': 'Y', '\\xfd': 'y', '\\xff': 'y',\n '\\xc6': 'Ae', '\\xe6': 'ae',\n '\\xde': 'Th', '\\xfe': 'th',\n '\\xdf': 'ss',\n // Latin Extended-A block.\n '\\u0100': 'A', '\\u0102': 'A', '\\u0104': 'A',\n '\\u0101': 'a', '\\u0103': 'a', '\\u0105': 'a',\n '\\u0106': 'C', '\\u0108': 'C', '\\u010a': 'C', '\\u010c': 'C',\n '\\u0107': 'c', '\\u0109': 'c', '\\u010b': 'c', '\\u010d': 'c',\n '\\u010e': 'D', '\\u0110': 'D', '\\u010f': 'd', '\\u0111': 'd',\n '\\u0112': 'E', '\\u0114': 'E', '\\u0116': 'E', '\\u0118': 'E', '\\u011a': 'E',\n '\\u0113': 'e', '\\u0115': 'e', '\\u0117': 'e', '\\u0119': 'e', '\\u011b': 'e',\n '\\u011c': 'G', '\\u011e': 'G', '\\u0120': 'G', '\\u0122': 'G',\n '\\u011d': 'g', '\\u011f': 'g', '\\u0121': 'g', '\\u0123': 'g',\n '\\u0124': 'H', '\\u0126': 'H', '\\u0125': 'h', '\\u0127': 'h',\n '\\u0128': 'I', '\\u012a': 'I', '\\u012c': 'I', '\\u012e': 'I', '\\u0130': 'I',\n '\\u0129': 'i', '\\u012b': 'i', '\\u012d': 'i', '\\u012f': 'i', '\\u0131': 'i',\n '\\u0134': 'J', '\\u0135': 'j',\n '\\u0136': 'K', '\\u0137': 'k', '\\u0138': 'k',\n '\\u0139': 'L', '\\u013b': 'L', '\\u013d': 'L', '\\u013f': 'L', '\\u0141': 'L',\n '\\u013a': 'l', '\\u013c': 'l', '\\u013e': 'l', '\\u0140': 'l', '\\u0142': 'l',\n '\\u0143': 'N', '\\u0145': 'N', '\\u0147': 'N', '\\u014a': 'N',\n '\\u0144': 'n', '\\u0146': 'n', '\\u0148': 'n', '\\u014b': 'n',\n '\\u014c': 'O', '\\u014e': 'O', '\\u0150': 'O',\n '\\u014d': 'o', '\\u014f': 'o', '\\u0151': 'o',\n '\\u0154': 'R', '\\u0156': 'R', '\\u0158': 'R',\n '\\u0155': 'r', '\\u0157': 'r', '\\u0159': 'r',\n '\\u015a': 'S', '\\u015c': 'S', '\\u015e': 'S', '\\u0160': 'S',\n '\\u015b': 's', '\\u015d': 's', '\\u015f': 's', '\\u0161': 's',\n '\\u0162': 'T', '\\u0164': 'T', '\\u0166': 'T',\n '\\u0163': 't', '\\u0165': 't', '\\u0167': 't',\n '\\u0168': 'U', '\\u016a': 'U', '\\u016c': 'U', '\\u016e': 'U', '\\u0170': 'U', '\\u0172': 'U',\n '\\u0169': 'u', '\\u016b': 'u', '\\u016d': 'u', '\\u016f': 'u', '\\u0171': 'u', '\\u0173': 'u',\n '\\u0174': 'W', '\\u0175': 'w',\n '\\u0176': 'Y', '\\u0177': 'y', '\\u0178': 'Y',\n '\\u0179': 'Z', '\\u017b': 'Z', '\\u017d': 'Z',\n '\\u017a': 'z', '\\u017c': 'z', '\\u017e': 'z',\n '\\u0132': 'IJ', '\\u0133': 'ij',\n '\\u0152': 'Oe', '\\u0153': 'oe',\n '\\u0149': \"'n\", '\\u017f': 's'\n };\n\n /** Used to map characters to HTML entities. */\n var htmlEscapes = {\n '&': '&',\n '<': '<',\n '>': '>',\n '\"': '"',\n \"'\": '''\n };\n\n /** Used to map HTML entities to characters. */\n var htmlUnescapes = {\n '&': '&',\n '<': '<',\n '>': '>',\n '"': '\"',\n ''': \"'\"\n };\n\n /** Used to escape characters for inclusion in compiled string literals. */\n var stringEscapes = {\n '\\\\': '\\\\',\n \"'\": \"'\",\n '\\n': 'n',\n '\\r': 'r',\n '\\u2028': 'u2028',\n '\\u2029': 'u2029'\n };\n\n /** Built-in method references without a dependency on `root`. */\n var freeParseFloat = parseFloat,\n freeParseInt = parseInt;\n\n /** Detect free variable `global` from Node.js. */\n var freeGlobal = typeof global == 'object' && global && global.Object === Object && global;\n\n /** Detect free variable `self`. */\n var freeSelf = typeof self == 'object' && self && self.Object === Object && self;\n\n /** Used as a reference to the global object. */\n var root = freeGlobal || freeSelf || Function('return this')();\n\n /** Detect free variable `exports`. */\n var freeExports = typeof exports == 'object' && exports && !exports.nodeType && exports;\n\n /** Detect free variable `module`. */\n var freeModule = freeExports && typeof module == 'object' && module && !module.nodeType && module;\n\n /** Detect the popular CommonJS extension `module.exports`. */\n var moduleExports = freeModule && freeModule.exports === freeExports;\n\n /** Detect free variable `process` from Node.js. */\n var freeProcess = moduleExports && freeGlobal.process;\n\n /** Used to access faster Node.js helpers. */\n var nodeUtil = (function() {\n try {\n // Use `util.types` for Node.js 10+.\n var types = freeModule && freeModule.require && freeModule.require('util').types;\n\n if (types) {\n return types;\n }\n\n // Legacy `process.binding('util')` for Node.js < 10.\n return freeProcess && freeProcess.binding && freeProcess.binding('util');\n } catch (e) {}\n }());\n\n /* Node.js helper references. */\n var nodeIsArrayBuffer = nodeUtil && nodeUtil.isArrayBuffer,\n nodeIsDate = nodeUtil && nodeUtil.isDate,\n nodeIsMap = nodeUtil && nodeUtil.isMap,\n nodeIsRegExp = nodeUtil && nodeUtil.isRegExp,\n nodeIsSet = nodeUtil && nodeUtil.isSet,\n nodeIsTypedArray = nodeUtil && nodeUtil.isTypedArray;\n\n /*--------------------------------------------------------------------------*/\n\n /**\n * A faster alternative to `Function#apply`, this function invokes `func`\n * with the `this` binding of `thisArg` and the arguments of `args`.\n *\n * @private\n * @param {Function} func The function to invoke.\n * @param {*} thisArg The `this` binding of `func`.\n * @param {Array} args The arguments to invoke `func` with.\n * @returns {*} Returns the result of `func`.\n */\n function apply(func, thisArg, args) {\n switch (args.length) {\n case 0: return func.call(thisArg);\n case 1: return func.call(thisArg, args[0]);\n case 2: return func.call(thisArg, args[0], args[1]);\n case 3: return func.call(thisArg, args[0], args[1], args[2]);\n }\n return func.apply(thisArg, args);\n }\n\n /**\n * A specialized version of `baseAggregator` for arrays.\n *\n * @private\n * @param {Array} [array] The array to iterate over.\n * @param {Function} setter The function to set `accumulator` values.\n * @param {Function} iteratee The iteratee to transform keys.\n * @param {Object} accumulator The initial aggregated object.\n * @returns {Function} Returns `accumulator`.\n */\n function arrayAggregator(array, setter, iteratee, accumulator) {\n var index = -1,\n length = array == null ? 0 : array.length;\n\n while (++index < length) {\n var value = array[index];\n setter(accumulator, value, iteratee(value), array);\n }\n return accumulator;\n }\n\n /**\n * A specialized version of `_.forEach` for arrays without support for\n * iteratee shorthands.\n *\n * @private\n * @param {Array} [array] The array to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {Array} Returns `array`.\n */\n function arrayEach(array, iteratee) {\n var index = -1,\n length = array == null ? 0 : array.length;\n\n while (++index < length) {\n if (iteratee(array[index], index, array) === false) {\n break;\n }\n }\n return array;\n }\n\n /**\n * A specialized version of `_.forEachRight` for arrays without support for\n * iteratee shorthands.\n *\n * @private\n * @param {Array} [array] The array to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {Array} Returns `array`.\n */\n function arrayEachRight(array, iteratee) {\n var length = array == null ? 0 : array.length;\n\n while (length--) {\n if (iteratee(array[length], length, array) === false) {\n break;\n }\n }\n return array;\n }\n\n /**\n * A specialized version of `_.every` for arrays without support for\n * iteratee shorthands.\n *\n * @private\n * @param {Array} [array] The array to iterate over.\n * @param {Function} predicate The function invoked per iteration.\n * @returns {boolean} Returns `true` if all elements pass the predicate check,\n * else `false`.\n */\n function arrayEvery(array, predicate) {\n var index = -1,\n length = array == null ? 0 : array.length;\n\n while (++index < length) {\n if (!predicate(array[index], index, array)) {\n return false;\n }\n }\n return true;\n }\n\n /**\n * A specialized version of `_.filter` for arrays without support for\n * iteratee shorthands.\n *\n * @private\n * @param {Array} [array] The array to iterate over.\n * @param {Function} predicate The function invoked per iteration.\n * @returns {Array} Returns the new filtered array.\n */\n function arrayFilter(array, predicate) {\n var index = -1,\n length = array == null ? 0 : array.length,\n resIndex = 0,\n result = [];\n\n while (++index < length) {\n var value = array[index];\n if (predicate(value, index, array)) {\n result[resIndex++] = value;\n }\n }\n return result;\n }\n\n /**\n * A specialized version of `_.includes` for arrays without support for\n * specifying an index to search from.\n *\n * @private\n * @param {Array} [array] The array to inspect.\n * @param {*} target The value to search for.\n * @returns {boolean} Returns `true` if `target` is found, else `false`.\n */\n function arrayIncludes(array, value) {\n var length = array == null ? 0 : array.length;\n return !!length && baseIndexOf(array, value, 0) > -1;\n }\n\n /**\n * This function is like `arrayIncludes` except that it accepts a comparator.\n *\n * @private\n * @param {Array} [array] The array to inspect.\n * @param {*} target The value to search for.\n * @param {Function} comparator The comparator invoked per element.\n * @returns {boolean} Returns `true` if `target` is found, else `false`.\n */\n function arrayIncludesWith(array, value, comparator) {\n var index = -1,\n length = array == null ? 0 : array.length;\n\n while (++index < length) {\n if (comparator(value, array[index])) {\n return true;\n }\n }\n return false;\n }\n\n /**\n * A specialized version of `_.map` for arrays without support for iteratee\n * shorthands.\n *\n * @private\n * @param {Array} [array] The array to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {Array} Returns the new mapped array.\n */\n function arrayMap(array, iteratee) {\n var index = -1,\n length = array == null ? 0 : array.length,\n result = Array(length);\n\n while (++index < length) {\n result[index] = iteratee(array[index], index, array);\n }\n return result;\n }\n\n /**\n * Appends the elements of `values` to `array`.\n *\n * @private\n * @param {Array} array The array to modify.\n * @param {Array} values The values to append.\n * @returns {Array} Returns `array`.\n */\n function arrayPush(array, values) {\n var index = -1,\n length = values.length,\n offset = array.length;\n\n while (++index < length) {\n array[offset + index] = values[index];\n }\n return array;\n }\n\n /**\n * A specialized version of `_.reduce` for arrays without support for\n * iteratee shorthands.\n *\n * @private\n * @param {Array} [array] The array to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @param {*} [accumulator] The initial value.\n * @param {boolean} [initAccum] Specify using the first element of `array` as\n * the initial value.\n * @returns {*} Returns the accumulated value.\n */\n function arrayReduce(array, iteratee, accumulator, initAccum) {\n var index = -1,\n length = array == null ? 0 : array.length;\n\n if (initAccum && length) {\n accumulator = array[++index];\n }\n while (++index < length) {\n accumulator = iteratee(accumulator, array[index], index, array);\n }\n return accumulator;\n }\n\n /**\n * A specialized version of `_.reduceRight` for arrays without support for\n * iteratee shorthands.\n *\n * @private\n * @param {Array} [array] The array to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @param {*} [accumulator] The initial value.\n * @param {boolean} [initAccum] Specify using the last element of `array` as\n * the initial value.\n * @returns {*} Returns the accumulated value.\n */\n function arrayReduceRight(array, iteratee, accumulator, initAccum) {\n var length = array == null ? 0 : array.length;\n if (initAccum && length) {\n accumulator = array[--length];\n }\n while (length--) {\n accumulator = iteratee(accumulator, array[length], length, array);\n }\n return accumulator;\n }\n\n /**\n * A specialized version of `_.some` for arrays without support for iteratee\n * shorthands.\n *\n * @private\n * @param {Array} [array] The array to iterate over.\n * @param {Function} predicate The function invoked per iteration.\n * @returns {boolean} Returns `true` if any element passes the predicate check,\n * else `false`.\n */\n function arraySome(array, predicate) {\n var index = -1,\n length = array == null ? 0 : array.length;\n\n while (++index < length) {\n if (predicate(array[index], index, array)) {\n return true;\n }\n }\n return false;\n }\n\n /**\n * Gets the size of an ASCII `string`.\n *\n * @private\n * @param {string} string The string inspect.\n * @returns {number} Returns the string size.\n */\n var asciiSize = baseProperty('length');\n\n /**\n * Converts an ASCII `string` to an array.\n *\n * @private\n * @param {string} string The string to convert.\n * @returns {Array} Returns the converted array.\n */\n function asciiToArray(string) {\n return string.split('');\n }\n\n /**\n * Splits an ASCII `string` into an array of its words.\n *\n * @private\n * @param {string} The string to inspect.\n * @returns {Array} Returns the words of `string`.\n */\n function asciiWords(string) {\n return string.match(reAsciiWord) || [];\n }\n\n /**\n * The base implementation of methods like `_.findKey` and `_.findLastKey`,\n * without support for iteratee shorthands, which iterates over `collection`\n * using `eachFunc`.\n *\n * @private\n * @param {Array|Object} collection The collection to inspect.\n * @param {Function} predicate The function invoked per iteration.\n * @param {Function} eachFunc The function to iterate over `collection`.\n * @returns {*} Returns the found element or its key, else `undefined`.\n */\n function baseFindKey(collection, predicate, eachFunc) {\n var result;\n eachFunc(collection, function(value, key, collection) {\n if (predicate(value, key, collection)) {\n result = key;\n return false;\n }\n });\n return result;\n }\n\n /**\n * The base implementation of `_.findIndex` and `_.findLastIndex` without\n * support for iteratee shorthands.\n *\n * @private\n * @param {Array} array The array to inspect.\n * @param {Function} predicate The function invoked per iteration.\n * @param {number} fromIndex The index to search from.\n * @param {boolean} [fromRight] Specify iterating from right to left.\n * @returns {number} Returns the index of the matched value, else `-1`.\n */\n function baseFindIndex(array, predicate, fromIndex, fromRight) {\n var length = array.length,\n index = fromIndex + (fromRight ? 1 : -1);\n\n while ((fromRight ? index-- : ++index < length)) {\n if (predicate(array[index], index, array)) {\n return index;\n }\n }\n return -1;\n }\n\n /**\n * The base implementation of `_.indexOf` without `fromIndex` bounds checks.\n *\n * @private\n * @param {Array} array The array to inspect.\n * @param {*} value The value to search for.\n * @param {number} fromIndex The index to search from.\n * @returns {number} Returns the index of the matched value, else `-1`.\n */\n function baseIndexOf(array, value, fromIndex) {\n return value === value\n ? strictIndexOf(array, value, fromIndex)\n : baseFindIndex(array, baseIsNaN, fromIndex);\n }\n\n /**\n * This function is like `baseIndexOf` except that it accepts a comparator.\n *\n * @private\n * @param {Array} array The array to inspect.\n * @param {*} value The value to search for.\n * @param {number} fromIndex The index to search from.\n * @param {Function} comparator The comparator invoked per element.\n * @returns {number} Returns the index of the matched value, else `-1`.\n */\n function baseIndexOfWith(array, value, fromIndex, comparator) {\n var index = fromIndex - 1,\n length = array.length;\n\n while (++index < length) {\n if (comparator(array[index], value)) {\n return index;\n }\n }\n return -1;\n }\n\n /**\n * The base implementation of `_.isNaN` without support for number objects.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is `NaN`, else `false`.\n */\n function baseIsNaN(value) {\n return value !== value;\n }\n\n /**\n * The base implementation of `_.mean` and `_.meanBy` without support for\n * iteratee shorthands.\n *\n * @private\n * @param {Array} array The array to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {number} Returns the mean.\n */\n function baseMean(array, iteratee) {\n var length = array == null ? 0 : array.length;\n return length ? (baseSum(array, iteratee) / length) : NAN;\n }\n\n /**\n * The base implementation of `_.property` without support for deep paths.\n *\n * @private\n * @param {string} key The key of the property to get.\n * @returns {Function} Returns the new accessor function.\n */\n function baseProperty(key) {\n return function(object) {\n return object == null ? undefined : object[key];\n };\n }\n\n /**\n * The base implementation of `_.propertyOf` without support for deep paths.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Function} Returns the new accessor function.\n */\n function basePropertyOf(object) {\n return function(key) {\n return object == null ? undefined : object[key];\n };\n }\n\n /**\n * The base implementation of `_.reduce` and `_.reduceRight`, without support\n * for iteratee shorthands, which iterates over `collection` using `eachFunc`.\n *\n * @private\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @param {*} accumulator The initial value.\n * @param {boolean} initAccum Specify using the first or last element of\n * `collection` as the initial value.\n * @param {Function} eachFunc The function to iterate over `collection`.\n * @returns {*} Returns the accumulated value.\n */\n function baseReduce(collection, iteratee, accumulator, initAccum, eachFunc) {\n eachFunc(collection, function(value, index, collection) {\n accumulator = initAccum\n ? (initAccum = false, value)\n : iteratee(accumulator, value, index, collection);\n });\n return accumulator;\n }\n\n /**\n * The base implementation of `_.sortBy` which uses `comparer` to define the\n * sort order of `array` and replaces criteria objects with their corresponding\n * values.\n *\n * @private\n * @param {Array} array The array to sort.\n * @param {Function} comparer The function to define sort order.\n * @returns {Array} Returns `array`.\n */\n function baseSortBy(array, comparer) {\n var length = array.length;\n\n array.sort(comparer);\n while (length--) {\n array[length] = array[length].value;\n }\n return array;\n }\n\n /**\n * The base implementation of `_.sum` and `_.sumBy` without support for\n * iteratee shorthands.\n *\n * @private\n * @param {Array} array The array to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {number} Returns the sum.\n */\n function baseSum(array, iteratee) {\n var result,\n index = -1,\n length = array.length;\n\n while (++index < length) {\n var current = iteratee(array[index]);\n if (current !== undefined) {\n result = result === undefined ? current : (result + current);\n }\n }\n return result;\n }\n\n /**\n * The base implementation of `_.times` without support for iteratee shorthands\n * or max array length checks.\n *\n * @private\n * @param {number} n The number of times to invoke `iteratee`.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {Array} Returns the array of results.\n */\n function baseTimes(n, iteratee) {\n var index = -1,\n result = Array(n);\n\n while (++index < n) {\n result[index] = iteratee(index);\n }\n return result;\n }\n\n /**\n * The base implementation of `_.toPairs` and `_.toPairsIn` which creates an array\n * of key-value pairs for `object` corresponding to the property names of `props`.\n *\n * @private\n * @param {Object} object The object to query.\n * @param {Array} props The property names to get values for.\n * @returns {Object} Returns the key-value pairs.\n */\n function baseToPairs(object, props) {\n return arrayMap(props, function(key) {\n return [key, object[key]];\n });\n }\n\n /**\n * The base implementation of `_.unary` without support for storing metadata.\n *\n * @private\n * @param {Function} func The function to cap arguments for.\n * @returns {Function} Returns the new capped function.\n */\n function baseUnary(func) {\n return function(value) {\n return func(value);\n };\n }\n\n /**\n * The base implementation of `_.values` and `_.valuesIn` which creates an\n * array of `object` property values corresponding to the property names\n * of `props`.\n *\n * @private\n * @param {Object} object The object to query.\n * @param {Array} props The property names to get values for.\n * @returns {Object} Returns the array of property values.\n */\n function baseValues(object, props) {\n return arrayMap(props, function(key) {\n return object[key];\n });\n }\n\n /**\n * Checks if a `cache` value for `key` exists.\n *\n * @private\n * @param {Object} cache The cache to query.\n * @param {string} key The key of the entry to check.\n * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.\n */\n function cacheHas(cache, key) {\n return cache.has(key);\n }\n\n /**\n * Used by `_.trim` and `_.trimStart` to get the index of the first string symbol\n * that is not found in the character symbols.\n *\n * @private\n * @param {Array} strSymbols The string symbols to inspect.\n * @param {Array} chrSymbols The character symbols to find.\n * @returns {number} Returns the index of the first unmatched string symbol.\n */\n function charsStartIndex(strSymbols, chrSymbols) {\n var index = -1,\n length = strSymbols.length;\n\n while (++index < length && baseIndexOf(chrSymbols, strSymbols[index], 0) > -1) {}\n return index;\n }\n\n /**\n * Used by `_.trim` and `_.trimEnd` to get the index of the last string symbol\n * that is not found in the character symbols.\n *\n * @private\n * @param {Array} strSymbols The string symbols to inspect.\n * @param {Array} chrSymbols The character symbols to find.\n * @returns {number} Returns the index of the last unmatched string symbol.\n */\n function charsEndIndex(strSymbols, chrSymbols) {\n var index = strSymbols.length;\n\n while (index-- && baseIndexOf(chrSymbols, strSymbols[index], 0) > -1) {}\n return index;\n }\n\n /**\n * Gets the number of `placeholder` occurrences in `array`.\n *\n * @private\n * @param {Array} array The array to inspect.\n * @param {*} placeholder The placeholder to search for.\n * @returns {number} Returns the placeholder count.\n */\n function countHolders(array, placeholder) {\n var length = array.length,\n result = 0;\n\n while (length--) {\n if (array[length] === placeholder) {\n ++result;\n }\n }\n return result;\n }\n\n /**\n * Used by `_.deburr` to convert Latin-1 Supplement and Latin Extended-A\n * letters to basic Latin letters.\n *\n * @private\n * @param {string} letter The matched letter to deburr.\n * @returns {string} Returns the deburred letter.\n */\n var deburrLetter = basePropertyOf(deburredLetters);\n\n /**\n * Used by `_.escape` to convert characters to HTML entities.\n *\n * @private\n * @param {string} chr The matched character to escape.\n * @returns {string} Returns the escaped character.\n */\n var escapeHtmlChar = basePropertyOf(htmlEscapes);\n\n /**\n * Used by `_.template` to escape characters for inclusion in compiled string literals.\n *\n * @private\n * @param {string} chr The matched character to escape.\n * @returns {string} Returns the escaped character.\n */\n function escapeStringChar(chr) {\n return '\\\\' + stringEscapes[chr];\n }\n\n /**\n * Gets the value at `key` of `object`.\n *\n * @private\n * @param {Object} [object] The object to query.\n * @param {string} key The key of the property to get.\n * @returns {*} Returns the property value.\n */\n function getValue(object, key) {\n return object == null ? undefined : object[key];\n }\n\n /**\n * Checks if `string` contains Unicode symbols.\n *\n * @private\n * @param {string} string The string to inspect.\n * @returns {boolean} Returns `true` if a symbol is found, else `false`.\n */\n function hasUnicode(string) {\n return reHasUnicode.test(string);\n }\n\n /**\n * Checks if `string` contains a word composed of Unicode symbols.\n *\n * @private\n * @param {string} string The string to inspect.\n * @returns {boolean} Returns `true` if a word is found, else `false`.\n */\n function hasUnicodeWord(string) {\n return reHasUnicodeWord.test(string);\n }\n\n /**\n * Converts `iterator` to an array.\n *\n * @private\n * @param {Object} iterator The iterator to convert.\n * @returns {Array} Returns the converted array.\n */\n function iteratorToArray(iterator) {\n var data,\n result = [];\n\n while (!(data = iterator.next()).done) {\n result.push(data.value);\n }\n return result;\n }\n\n /**\n * Converts `map` to its key-value pairs.\n *\n * @private\n * @param {Object} map The map to convert.\n * @returns {Array} Returns the key-value pairs.\n */\n function mapToArray(map) {\n var index = -1,\n result = Array(map.size);\n\n map.forEach(function(value, key) {\n result[++index] = [key, value];\n });\n return result;\n }\n\n /**\n * Creates a unary function that invokes `func` with its argument transformed.\n *\n * @private\n * @param {Function} func The function to wrap.\n * @param {Function} transform The argument transform.\n * @returns {Function} Returns the new function.\n */\n function overArg(func, transform) {\n return function(arg) {\n return func(transform(arg));\n };\n }\n\n /**\n * Replaces all `placeholder` elements in `array` with an internal placeholder\n * and returns an array of their indexes.\n *\n * @private\n * @param {Array} array The array to modify.\n * @param {*} placeholder The placeholder to replace.\n * @returns {Array} Returns the new array of placeholder indexes.\n */\n function replaceHolders(array, placeholder) {\n var index = -1,\n length = array.length,\n resIndex = 0,\n result = [];\n\n while (++index < length) {\n var value = array[index];\n if (value === placeholder || value === PLACEHOLDER) {\n array[index] = PLACEHOLDER;\n result[resIndex++] = index;\n }\n }\n return result;\n }\n\n /**\n * Converts `set` to an array of its values.\n *\n * @private\n * @param {Object} set The set to convert.\n * @returns {Array} Returns the values.\n */\n function setToArray(set) {\n var index = -1,\n result = Array(set.size);\n\n set.forEach(function(value) {\n result[++index] = value;\n });\n return result;\n }\n\n /**\n * Converts `set` to its value-value pairs.\n *\n * @private\n * @param {Object} set The set to convert.\n * @returns {Array} Returns the value-value pairs.\n */\n function setToPairs(set) {\n var index = -1,\n result = Array(set.size);\n\n set.forEach(function(value) {\n result[++index] = [value, value];\n });\n return result;\n }\n\n /**\n * A specialized version of `_.indexOf` which performs strict equality\n * comparisons of values, i.e. `===`.\n *\n * @private\n * @param {Array} array The array to inspect.\n * @param {*} value The value to search for.\n * @param {number} fromIndex The index to search from.\n * @returns {number} Returns the index of the matched value, else `-1`.\n */\n function strictIndexOf(array, value, fromIndex) {\n var index = fromIndex - 1,\n length = array.length;\n\n while (++index < length) {\n if (array[index] === value) {\n return index;\n }\n }\n return -1;\n }\n\n /**\n * A specialized version of `_.lastIndexOf` which performs strict equality\n * comparisons of values, i.e. `===`.\n *\n * @private\n * @param {Array} array The array to inspect.\n * @param {*} value The value to search for.\n * @param {number} fromIndex The index to search from.\n * @returns {number} Returns the index of the matched value, else `-1`.\n */\n function strictLastIndexOf(array, value, fromIndex) {\n var index = fromIndex + 1;\n while (index--) {\n if (array[index] === value) {\n return index;\n }\n }\n return index;\n }\n\n /**\n * Gets the number of symbols in `string`.\n *\n * @private\n * @param {string} string The string to inspect.\n * @returns {number} Returns the string size.\n */\n function stringSize(string) {\n return hasUnicode(string)\n ? unicodeSize(string)\n : asciiSize(string);\n }\n\n /**\n * Converts `string` to an array.\n *\n * @private\n * @param {string} string The string to convert.\n * @returns {Array} Returns the converted array.\n */\n function stringToArray(string) {\n return hasUnicode(string)\n ? unicodeToArray(string)\n : asciiToArray(string);\n }\n\n /**\n * Used by `_.unescape` to convert HTML entities to characters.\n *\n * @private\n * @param {string} chr The matched character to unescape.\n * @returns {string} Returns the unescaped character.\n */\n var unescapeHtmlChar = basePropertyOf(htmlUnescapes);\n\n /**\n * Gets the size of a Unicode `string`.\n *\n * @private\n * @param {string} string The string inspect.\n * @returns {number} Returns the string size.\n */\n function unicodeSize(string) {\n var result = reUnicode.lastIndex = 0;\n while (reUnicode.test(string)) {\n ++result;\n }\n return result;\n }\n\n /**\n * Converts a Unicode `string` to an array.\n *\n * @private\n * @param {string} string The string to convert.\n * @returns {Array} Returns the converted array.\n */\n function unicodeToArray(string) {\n return string.match(reUnicode) || [];\n }\n\n /**\n * Splits a Unicode `string` into an array of its words.\n *\n * @private\n * @param {string} The string to inspect.\n * @returns {Array} Returns the words of `string`.\n */\n function unicodeWords(string) {\n return string.match(reUnicodeWord) || [];\n }\n\n /*--------------------------------------------------------------------------*/\n\n /**\n * Create a new pristine `lodash` function using the `context` object.\n *\n * @static\n * @memberOf _\n * @since 1.1.0\n * @category Util\n * @param {Object} [context=root] The context object.\n * @returns {Function} Returns a new `lodash` function.\n * @example\n *\n * _.mixin({ 'foo': _.constant('foo') });\n *\n * var lodash = _.runInContext();\n * lodash.mixin({ 'bar': lodash.constant('bar') });\n *\n * _.isFunction(_.foo);\n * // => true\n * _.isFunction(_.bar);\n * // => false\n *\n * lodash.isFunction(lodash.foo);\n * // => false\n * lodash.isFunction(lodash.bar);\n * // => true\n *\n * // Create a suped-up `defer` in Node.js.\n * var defer = _.runInContext({ 'setTimeout': setImmediate }).defer;\n */\n var runInContext = (function runInContext(context) {\n context = context == null ? root : _.defaults(root.Object(), context, _.pick(root, contextProps));\n\n /** Built-in constructor references. */\n var Array = context.Array,\n Date = context.Date,\n Error = context.Error,\n Function = context.Function,\n Math = context.Math,\n Object = context.Object,\n RegExp = context.RegExp,\n String = context.String,\n TypeError = context.TypeError;\n\n /** Used for built-in method references. */\n var arrayProto = Array.prototype,\n funcProto = Function.prototype,\n objectProto = Object.prototype;\n\n /** Used to detect overreaching core-js shims. */\n var coreJsData = context['__core-js_shared__'];\n\n /** Used to resolve the decompiled source of functions. */\n var funcToString = funcProto.toString;\n\n /** Used to check objects for own properties. */\n var hasOwnProperty = objectProto.hasOwnProperty;\n\n /** Used to generate unique IDs. */\n var idCounter = 0;\n\n /** Used to detect methods masquerading as native. */\n var maskSrcKey = (function() {\n var uid = /[^.]+$/.exec(coreJsData && coreJsData.keys && coreJsData.keys.IE_PROTO || '');\n return uid ? ('Symbol(src)_1.' + uid) : '';\n }());\n\n /**\n * Used to resolve the\n * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)\n * of values.\n */\n var nativeObjectToString = objectProto.toString;\n\n /** Used to infer the `Object` constructor. */\n var objectCtorString = funcToString.call(Object);\n\n /** Used to restore the original `_` reference in `_.noConflict`. */\n var oldDash = root._;\n\n /** Used to detect if a method is native. */\n var reIsNative = RegExp('^' +\n funcToString.call(hasOwnProperty).replace(reRegExpChar, '\\\\$&')\n .replace(/hasOwnProperty|(function).*?(?=\\\\\\()| for .+?(?=\\\\\\])/g, '$1.*?') + '$'\n );\n\n /** Built-in value references. */\n var Buffer = moduleExports ? context.Buffer : undefined,\n Symbol = context.Symbol,\n Uint8Array = context.Uint8Array,\n allocUnsafe = Buffer ? Buffer.allocUnsafe : undefined,\n getPrototype = overArg(Object.getPrototypeOf, Object),\n objectCreate = Object.create,\n propertyIsEnumerable = objectProto.propertyIsEnumerable,\n splice = arrayProto.splice,\n spreadableSymbol = Symbol ? Symbol.isConcatSpreadable : undefined,\n symIterator = Symbol ? Symbol.iterator : undefined,\n symToStringTag = Symbol ? Symbol.toStringTag : undefined;\n\n var defineProperty = (function() {\n try {\n var func = getNative(Object, 'defineProperty');\n func({}, '', {});\n return func;\n } catch (e) {}\n }());\n\n /** Mocked built-ins. */\n var ctxClearTimeout = context.clearTimeout !== root.clearTimeout && context.clearTimeout,\n ctxNow = Date && Date.now !== root.Date.now && Date.now,\n ctxSetTimeout = context.setTimeout !== root.setTimeout && context.setTimeout;\n\n /* Built-in method references for those with the same name as other `lodash` methods. */\n var nativeCeil = Math.ceil,\n nativeFloor = Math.floor,\n nativeGetSymbols = Object.getOwnPropertySymbols,\n nativeIsBuffer = Buffer ? Buffer.isBuffer : undefined,\n nativeIsFinite = context.isFinite,\n nativeJoin = arrayProto.join,\n nativeKeys = overArg(Object.keys, Object),\n nativeMax = Math.max,\n nativeMin = Math.min,\n nativeNow = Date.now,\n nativeParseInt = context.parseInt,\n nativeRandom = Math.random,\n nativeReverse = arrayProto.reverse;\n\n /* Built-in method references that are verified to be native. */\n var DataView = getNative(context, 'DataView'),\n Map = getNative(context, 'Map'),\n Promise = getNative(context, 'Promise'),\n Set = getNative(context, 'Set'),\n WeakMap = getNative(context, 'WeakMap'),\n nativeCreate = getNative(Object, 'create');\n\n /** Used to store function metadata. */\n var metaMap = WeakMap && new WeakMap;\n\n /** Used to lookup unminified function names. */\n var realNames = {};\n\n /** Used to detect maps, sets, and weakmaps. */\n var dataViewCtorString = toSource(DataView),\n mapCtorString = toSource(Map),\n promiseCtorString = toSource(Promise),\n setCtorString = toSource(Set),\n weakMapCtorString = toSource(WeakMap);\n\n /** Used to convert symbols to primitives and strings. */\n var symbolProto = Symbol ? Symbol.prototype : undefined,\n symbolValueOf = symbolProto ? symbolProto.valueOf : undefined,\n symbolToString = symbolProto ? symbolProto.toString : undefined;\n\n /*------------------------------------------------------------------------*/\n\n /**\n * Creates a `lodash` object which wraps `value` to enable implicit method\n * chain sequences. Methods that operate on and return arrays, collections,\n * and functions can be chained together. Methods that retrieve a single value\n * or may return a primitive value will automatically end the chain sequence\n * and return the unwrapped value. Otherwise, the value must be unwrapped\n * with `_#value`.\n *\n * Explicit chain sequences, which must be unwrapped with `_#value`, may be\n * enabled using `_.chain`.\n *\n * The execution of chained methods is lazy, that is, it's deferred until\n * `_#value` is implicitly or explicitly called.\n *\n * Lazy evaluation allows several methods to support shortcut fusion.\n * Shortcut fusion is an optimization to merge iteratee calls; this avoids\n * the creation of intermediate arrays and can greatly reduce the number of\n * iteratee executions. Sections of a chain sequence qualify for shortcut\n * fusion if the section is applied to an array and iteratees accept only\n * one argument. The heuristic for whether a section qualifies for shortcut\n * fusion is subject to change.\n *\n * Chaining is supported in custom builds as long as the `_#value` method is\n * directly or indirectly included in the build.\n *\n * In addition to lodash methods, wrappers have `Array` and `String` methods.\n *\n * The wrapper `Array` methods are:\n * `concat`, `join`, `pop`, `push`, `shift`, `sort`, `splice`, and `unshift`\n *\n * The wrapper `String` methods are:\n * `replace` and `split`\n *\n * The wrapper methods that support shortcut fusion are:\n * `at`, `compact`, `drop`, `dropRight`, `dropWhile`, `filter`, `find`,\n * `findLast`, `head`, `initial`, `last`, `map`, `reject`, `reverse`, `slice`,\n * `tail`, `take`, `takeRight`, `takeRightWhile`, `takeWhile`, and `toArray`\n *\n * The chainable wrapper methods are:\n * `after`, `ary`, `assign`, `assignIn`, `assignInWith`, `assignWith`, `at`,\n * `before`, `bind`, `bindAll`, `bindKey`, `castArray`, `chain`, `chunk`,\n * `commit`, `compact`, `concat`, `conforms`, `constant`, `countBy`, `create`,\n * `curry`, `debounce`, `defaults`, `defaultsDeep`, `defer`, `delay`,\n * `difference`, `differenceBy`, `differenceWith`, `drop`, `dropRight`,\n * `dropRightWhile`, `dropWhile`, `extend`, `extendWith`, `fill`, `filter`,\n * `flatMap`, `flatMapDeep`, `flatMapDepth`, `flatten`, `flattenDeep`,\n * `flattenDepth`, `flip`, `flow`, `flowRight`, `fromPairs`, `functions`,\n * `functionsIn`, `groupBy`, `initial`, `intersection`, `intersectionBy`,\n * `intersectionWith`, `invert`, `invertBy`, `invokeMap`, `iteratee`, `keyBy`,\n * `keys`, `keysIn`, `map`, `mapKeys`, `mapValues`, `matches`, `matchesProperty`,\n * `memoize`, `merge`, `mergeWith`, `method`, `methodOf`, `mixin`, `negate`,\n * `nthArg`, `omit`, `omitBy`, `once`, `orderBy`, `over`, `overArgs`,\n * `overEvery`, `overSome`, `partial`, `partialRight`, `partition`, `pick`,\n * `pickBy`, `plant`, `property`, `propertyOf`, `pull`, `pullAll`, `pullAllBy`,\n * `pullAllWith`, `pullAt`, `push`, `range`, `rangeRight`, `rearg`, `reject`,\n * `remove`, `rest`, `reverse`, `sampleSize`, `set`, `setWith`, `shuffle`,\n * `slice`, `sort`, `sortBy`, `splice`, `spread`, `tail`, `take`, `takeRight`,\n * `takeRightWhile`, `takeWhile`, `tap`, `throttle`, `thru`, `toArray`,\n * `toPairs`, `toPairsIn`, `toPath`, `toPlainObject`, `transform`, `unary`,\n * `union`, `unionBy`, `unionWith`, `uniq`, `uniqBy`, `uniqWith`, `unset`,\n * `unshift`, `unzip`, `unzipWith`, `update`, `updateWith`, `values`,\n * `valuesIn`, `without`, `wrap`, `xor`, `xorBy`, `xorWith`, `zip`,\n * `zipObject`, `zipObjectDeep`, and `zipWith`\n *\n * The wrapper methods that are **not** chainable by default are:\n * `add`, `attempt`, `camelCase`, `capitalize`, `ceil`, `clamp`, `clone`,\n * `cloneDeep`, `cloneDeepWith`, `cloneWith`, `conformsTo`, `deburr`,\n * `defaultTo`, `divide`, `each`, `eachRight`, `endsWith`, `eq`, `escape`,\n * `escapeRegExp`, `every`, `find`, `findIndex`, `findKey`, `findLast`,\n * `findLastIndex`, `findLastKey`, `first`, `floor`, `forEach`, `forEachRight`,\n * `forIn`, `forInRight`, `forOwn`, `forOwnRight`, `get`, `gt`, `gte`, `has`,\n * `hasIn`, `head`, `identity`, `includes`, `indexOf`, `inRange`, `invoke`,\n * `isArguments`, `isArray`, `isArrayBuffer`, `isArrayLike`, `isArrayLikeObject`,\n * `isBoolean`, `isBuffer`, `isDate`, `isElement`, `isEmpty`, `isEqual`,\n * `isEqualWith`, `isError`, `isFinite`, `isFunction`, `isInteger`, `isLength`,\n * `isMap`, `isMatch`, `isMatchWith`, `isNaN`, `isNative`, `isNil`, `isNull`,\n * `isNumber`, `isObject`, `isObjectLike`, `isPlainObject`, `isRegExp`,\n * `isSafeInteger`, `isSet`, `isString`, `isUndefined`, `isTypedArray`,\n * `isWeakMap`, `isWeakSet`, `join`, `kebabCase`, `last`, `lastIndexOf`,\n * `lowerCase`, `lowerFirst`, `lt`, `lte`, `max`, `maxBy`, `mean`, `meanBy`,\n * `min`, `minBy`, `multiply`, `noConflict`, `noop`, `now`, `nth`, `pad`,\n * `padEnd`, `padStart`, `parseInt`, `pop`, `random`, `reduce`, `reduceRight`,\n * `repeat`, `result`, `round`, `runInContext`, `sample`, `shift`, `size`,\n * `snakeCase`, `some`, `sortedIndex`, `sortedIndexBy`, `sortedLastIndex`,\n * `sortedLastIndexBy`, `startCase`, `startsWith`, `stubArray`, `stubFalse`,\n * `stubObject`, `stubString`, `stubTrue`, `subtract`, `sum`, `sumBy`,\n * `template`, `times`, `toFinite`, `toInteger`, `toJSON`, `toLength`,\n * `toLower`, `toNumber`, `toSafeInteger`, `toString`, `toUpper`, `trim`,\n * `trimEnd`, `trimStart`, `truncate`, `unescape`, `uniqueId`, `upperCase`,\n * `upperFirst`, `value`, and `words`\n *\n * @name _\n * @constructor\n * @category Seq\n * @param {*} value The value to wrap in a `lodash` instance.\n * @returns {Object} Returns the new `lodash` wrapper instance.\n * @example\n *\n * function square(n) {\n * return n * n;\n * }\n *\n * var wrapped = _([1, 2, 3]);\n *\n * // Returns an unwrapped value.\n * wrapped.reduce(_.add);\n * // => 6\n *\n * // Returns a wrapped value.\n * var squares = wrapped.map(square);\n *\n * _.isArray(squares);\n * // => false\n *\n * _.isArray(squares.value());\n * // => true\n */\n function lodash(value) {\n if (isObjectLike(value) && !isArray(value) && !(value instanceof LazyWrapper)) {\n if (value instanceof LodashWrapper) {\n return value;\n }\n if (hasOwnProperty.call(value, '__wrapped__')) {\n return wrapperClone(value);\n }\n }\n return new LodashWrapper(value);\n }\n\n /**\n * The base implementation of `_.create` without support for assigning\n * properties to the created object.\n *\n * @private\n * @param {Object} proto The object to inherit from.\n * @returns {Object} Returns the new object.\n */\n var baseCreate = (function() {\n function object() {}\n return function(proto) {\n if (!isObject(proto)) {\n return {};\n }\n if (objectCreate) {\n return objectCreate(proto);\n }\n object.prototype = proto;\n var result = new object;\n object.prototype = undefined;\n return result;\n };\n }());\n\n /**\n * The function whose prototype chain sequence wrappers inherit from.\n *\n * @private\n */\n function baseLodash() {\n // No operation performed.\n }\n\n /**\n * The base constructor for creating `lodash` wrapper objects.\n *\n * @private\n * @param {*} value The value to wrap.\n * @param {boolean} [chainAll] Enable explicit method chain sequences.\n */\n function LodashWrapper(value, chainAll) {\n this.__wrapped__ = value;\n this.__actions__ = [];\n this.__chain__ = !!chainAll;\n this.__index__ = 0;\n this.__values__ = undefined;\n }\n\n /**\n * By default, the template delimiters used by lodash are like those in\n * embedded Ruby (ERB) as well as ES2015 template strings. Change the\n * following template settings to use alternative delimiters.\n *\n * @static\n * @memberOf _\n * @type {Object}\n */\n lodash.templateSettings = {\n\n /**\n * Used to detect `data` property values to be HTML-escaped.\n *\n * @memberOf _.templateSettings\n * @type {RegExp}\n */\n 'escape': reEscape,\n\n /**\n * Used to detect code to be evaluated.\n *\n * @memberOf _.templateSettings\n * @type {RegExp}\n */\n 'evaluate': reEvaluate,\n\n /**\n * Used to detect `data` property values to inject.\n *\n * @memberOf _.templateSettings\n * @type {RegExp}\n */\n 'interpolate': reInterpolate,\n\n /**\n * Used to reference the data object in the template text.\n *\n * @memberOf _.templateSettings\n * @type {string}\n */\n 'variable': '',\n\n /**\n * Used to import variables into the compiled template.\n *\n * @memberOf _.templateSettings\n * @type {Object}\n */\n 'imports': {\n\n /**\n * A reference to the `lodash` function.\n *\n * @memberOf _.templateSettings.imports\n * @type {Function}\n */\n '_': lodash\n }\n };\n\n // Ensure wrappers are instances of `baseLodash`.\n lodash.prototype = baseLodash.prototype;\n lodash.prototype.constructor = lodash;\n\n LodashWrapper.prototype = baseCreate(baseLodash.prototype);\n LodashWrapper.prototype.constructor = LodashWrapper;\n\n /*------------------------------------------------------------------------*/\n\n /**\n * Creates a lazy wrapper object which wraps `value` to enable lazy evaluation.\n *\n * @private\n * @constructor\n * @param {*} value The value to wrap.\n */\n function LazyWrapper(value) {\n this.__wrapped__ = value;\n this.__actions__ = [];\n this.__dir__ = 1;\n this.__filtered__ = false;\n this.__iteratees__ = [];\n this.__takeCount__ = MAX_ARRAY_LENGTH;\n this.__views__ = [];\n }\n\n /**\n * Creates a clone of the lazy wrapper object.\n *\n * @private\n * @name clone\n * @memberOf LazyWrapper\n * @returns {Object} Returns the cloned `LazyWrapper` object.\n */\n function lazyClone() {\n var result = new LazyWrapper(this.__wrapped__);\n result.__actions__ = copyArray(this.__actions__);\n result.__dir__ = this.__dir__;\n result.__filtered__ = this.__filtered__;\n result.__iteratees__ = copyArray(this.__iteratees__);\n result.__takeCount__ = this.__takeCount__;\n result.__views__ = copyArray(this.__views__);\n return result;\n }\n\n /**\n * Reverses the direction of lazy iteration.\n *\n * @private\n * @name reverse\n * @memberOf LazyWrapper\n * @returns {Object} Returns the new reversed `LazyWrapper` object.\n */\n function lazyReverse() {\n if (this.__filtered__) {\n var result = new LazyWrapper(this);\n result.__dir__ = -1;\n result.__filtered__ = true;\n } else {\n result = this.clone();\n result.__dir__ *= -1;\n }\n return result;\n }\n\n /**\n * Extracts the unwrapped value from its lazy wrapper.\n *\n * @private\n * @name value\n * @memberOf LazyWrapper\n * @returns {*} Returns the unwrapped value.\n */\n function lazyValue() {\n var array = this.__wrapped__.value(),\n dir = this.__dir__,\n isArr = isArray(array),\n isRight = dir < 0,\n arrLength = isArr ? array.length : 0,\n view = getView(0, arrLength, this.__views__),\n start = view.start,\n end = view.end,\n length = end - start,\n index = isRight ? end : (start - 1),\n iteratees = this.__iteratees__,\n iterLength = iteratees.length,\n resIndex = 0,\n takeCount = nativeMin(length, this.__takeCount__);\n\n if (!isArr || (!isRight && arrLength == length && takeCount == length)) {\n return baseWrapperValue(array, this.__actions__);\n }\n var result = [];\n\n outer:\n while (length-- && resIndex < takeCount) {\n index += dir;\n\n var iterIndex = -1,\n value = array[index];\n\n while (++iterIndex < iterLength) {\n var data = iteratees[iterIndex],\n iteratee = data.iteratee,\n type = data.type,\n computed = iteratee(value);\n\n if (type == LAZY_MAP_FLAG) {\n value = computed;\n } else if (!computed) {\n if (type == LAZY_FILTER_FLAG) {\n continue outer;\n } else {\n break outer;\n }\n }\n }\n result[resIndex++] = value;\n }\n return result;\n }\n\n // Ensure `LazyWrapper` is an instance of `baseLodash`.\n LazyWrapper.prototype = baseCreate(baseLodash.prototype);\n LazyWrapper.prototype.constructor = LazyWrapper;\n\n /*------------------------------------------------------------------------*/\n\n /**\n * Creates a hash object.\n *\n * @private\n * @constructor\n * @param {Array} [entries] The key-value pairs to cache.\n */\n function Hash(entries) {\n var index = -1,\n length = entries == null ? 0 : entries.length;\n\n this.clear();\n while (++index < length) {\n var entry = entries[index];\n this.set(entry[0], entry[1]);\n }\n }\n\n /**\n * Removes all key-value entries from the hash.\n *\n * @private\n * @name clear\n * @memberOf Hash\n */\n function hashClear() {\n this.__data__ = nativeCreate ? nativeCreate(null) : {};\n this.size = 0;\n }\n\n /**\n * Removes `key` and its value from the hash.\n *\n * @private\n * @name delete\n * @memberOf Hash\n * @param {Object} hash The hash to modify.\n * @param {string} key The key of the value to remove.\n * @returns {boolean} Returns `true` if the entry was removed, else `false`.\n */\n function hashDelete(key) {\n var result = this.has(key) && delete this.__data__[key];\n this.size -= result ? 1 : 0;\n return result;\n }\n\n /**\n * Gets the hash value for `key`.\n *\n * @private\n * @name get\n * @memberOf Hash\n * @param {string} key The key of the value to get.\n * @returns {*} Returns the entry value.\n */\n function hashGet(key) {\n var data = this.__data__;\n if (nativeCreate) {\n var result = data[key];\n return result === HASH_UNDEFINED ? undefined : result;\n }\n return hasOwnProperty.call(data, key) ? data[key] : undefined;\n }\n\n /**\n * Checks if a hash value for `key` exists.\n *\n * @private\n * @name has\n * @memberOf Hash\n * @param {string} key The key of the entry to check.\n * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.\n */\n function hashHas(key) {\n var data = this.__data__;\n return nativeCreate ? (data[key] !== undefined) : hasOwnProperty.call(data, key);\n }\n\n /**\n * Sets the hash `key` to `value`.\n *\n * @private\n * @name set\n * @memberOf Hash\n * @param {string} key The key of the value to set.\n * @param {*} value The value to set.\n * @returns {Object} Returns the hash instance.\n */\n function hashSet(key, value) {\n var data = this.__data__;\n this.size += this.has(key) ? 0 : 1;\n data[key] = (nativeCreate && value === undefined) ? HASH_UNDEFINED : value;\n return this;\n }\n\n // Add methods to `Hash`.\n Hash.prototype.clear = hashClear;\n Hash.prototype['delete'] = hashDelete;\n Hash.prototype.get = hashGet;\n Hash.prototype.has = hashHas;\n Hash.prototype.set = hashSet;\n\n /*------------------------------------------------------------------------*/\n\n /**\n * Creates an list cache object.\n *\n * @private\n * @constructor\n * @param {Array} [entries] The key-value pairs to cache.\n */\n function ListCache(entries) {\n var index = -1,\n length = entries == null ? 0 : entries.length;\n\n this.clear();\n while (++index < length) {\n var entry = entries[index];\n this.set(entry[0], entry[1]);\n }\n }\n\n /**\n * Removes all key-value entries from the list cache.\n *\n * @private\n * @name clear\n * @memberOf ListCache\n */\n function listCacheClear() {\n this.__data__ = [];\n this.size = 0;\n }\n\n /**\n * Removes `key` and its value from the list cache.\n *\n * @private\n * @name delete\n * @memberOf ListCache\n * @param {string} key The key of the value to remove.\n * @returns {boolean} Returns `true` if the entry was removed, else `false`.\n */\n function listCacheDelete(key) {\n var data = this.__data__,\n index = assocIndexOf(data, key);\n\n if (index < 0) {\n return false;\n }\n var lastIndex = data.length - 1;\n if (index == lastIndex) {\n data.pop();\n } else {\n splice.call(data, index, 1);\n }\n --this.size;\n return true;\n }\n\n /**\n * Gets the list cache value for `key`.\n *\n * @private\n * @name get\n * @memberOf ListCache\n * @param {string} key The key of the value to get.\n * @returns {*} Returns the entry value.\n */\n function listCacheGet(key) {\n var data = this.__data__,\n index = assocIndexOf(data, key);\n\n return index < 0 ? undefined : data[index][1];\n }\n\n /**\n * Checks if a list cache value for `key` exists.\n *\n * @private\n * @name has\n * @memberOf ListCache\n * @param {string} key The key of the entry to check.\n * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.\n */\n function listCacheHas(key) {\n return assocIndexOf(this.__data__, key) > -1;\n }\n\n /**\n * Sets the list cache `key` to `value`.\n *\n * @private\n * @name set\n * @memberOf ListCache\n * @param {string} key The key of the value to set.\n * @param {*} value The value to set.\n * @returns {Object} Returns the list cache instance.\n */\n function listCacheSet(key, value) {\n var data = this.__data__,\n index = assocIndexOf(data, key);\n\n if (index < 0) {\n ++this.size;\n data.push([key, value]);\n } else {\n data[index][1] = value;\n }\n return this;\n }\n\n // Add methods to `ListCache`.\n ListCache.prototype.clear = listCacheClear;\n ListCache.prototype['delete'] = listCacheDelete;\n ListCache.prototype.get = listCacheGet;\n ListCache.prototype.has = listCacheHas;\n ListCache.prototype.set = listCacheSet;\n\n /*------------------------------------------------------------------------*/\n\n /**\n * Creates a map cache object to store key-value pairs.\n *\n * @private\n * @constructor\n * @param {Array} [entries] The key-value pairs to cache.\n */\n function MapCache(entries) {\n var index = -1,\n length = entries == null ? 0 : entries.length;\n\n this.clear();\n while (++index < length) {\n var entry = entries[index];\n this.set(entry[0], entry[1]);\n }\n }\n\n /**\n * Removes all key-value entries from the map.\n *\n * @private\n * @name clear\n * @memberOf MapCache\n */\n function mapCacheClear() {\n this.size = 0;\n this.__data__ = {\n 'hash': new Hash,\n 'map': new (Map || ListCache),\n 'string': new Hash\n };\n }\n\n /**\n * Removes `key` and its value from the map.\n *\n * @private\n * @name delete\n * @memberOf MapCache\n * @param {string} key The key of the value to remove.\n * @returns {boolean} Returns `true` if the entry was removed, else `false`.\n */\n function mapCacheDelete(key) {\n var result = getMapData(this, key)['delete'](key);\n this.size -= result ? 1 : 0;\n return result;\n }\n\n /**\n * Gets the map value for `key`.\n *\n * @private\n * @name get\n * @memberOf MapCache\n * @param {string} key The key of the value to get.\n * @returns {*} Returns the entry value.\n */\n function mapCacheGet(key) {\n return getMapData(this, key).get(key);\n }\n\n /**\n * Checks if a map value for `key` exists.\n *\n * @private\n * @name has\n * @memberOf MapCache\n * @param {string} key The key of the entry to check.\n * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.\n */\n function mapCacheHas(key) {\n return getMapData(this, key).has(key);\n }\n\n /**\n * Sets the map `key` to `value`.\n *\n * @private\n * @name set\n * @memberOf MapCache\n * @param {string} key The key of the value to set.\n * @param {*} value The value to set.\n * @returns {Object} Returns the map cache instance.\n */\n function mapCacheSet(key, value) {\n var data = getMapData(this, key),\n size = data.size;\n\n data.set(key, value);\n this.size += data.size == size ? 0 : 1;\n return this;\n }\n\n // Add methods to `MapCache`.\n MapCache.prototype.clear = mapCacheClear;\n MapCache.prototype['delete'] = mapCacheDelete;\n MapCache.prototype.get = mapCacheGet;\n MapCache.prototype.has = mapCacheHas;\n MapCache.prototype.set = mapCacheSet;\n\n /*------------------------------------------------------------------------*/\n\n /**\n *\n * Creates an array cache object to store unique values.\n *\n * @private\n * @constructor\n * @param {Array} [values] The values to cache.\n */\n function SetCache(values) {\n var index = -1,\n length = values == null ? 0 : values.length;\n\n this.__data__ = new MapCache;\n while (++index < length) {\n this.add(values[index]);\n }\n }\n\n /**\n * Adds `value` to the array cache.\n *\n * @private\n * @name add\n * @memberOf SetCache\n * @alias push\n * @param {*} value The value to cache.\n * @returns {Object} Returns the cache instance.\n */\n function setCacheAdd(value) {\n this.__data__.set(value, HASH_UNDEFINED);\n return this;\n }\n\n /**\n * Checks if `value` is in the array cache.\n *\n * @private\n * @name has\n * @memberOf SetCache\n * @param {*} value The value to search for.\n * @returns {number} Returns `true` if `value` is found, else `false`.\n */\n function setCacheHas(value) {\n return this.__data__.has(value);\n }\n\n // Add methods to `SetCache`.\n SetCache.prototype.add = SetCache.prototype.push = setCacheAdd;\n SetCache.prototype.has = setCacheHas;\n\n /*------------------------------------------------------------------------*/\n\n /**\n * Creates a stack cache object to store key-value pairs.\n *\n * @private\n * @constructor\n * @param {Array} [entries] The key-value pairs to cache.\n */\n function Stack(entries) {\n var data = this.__data__ = new ListCache(entries);\n this.size = data.size;\n }\n\n /**\n * Removes all key-value entries from the stack.\n *\n * @private\n * @name clear\n * @memberOf Stack\n */\n function stackClear() {\n this.__data__ = new ListCache;\n this.size = 0;\n }\n\n /**\n * Removes `key` and its value from the stack.\n *\n * @private\n * @name delete\n * @memberOf Stack\n * @param {string} key The key of the value to remove.\n * @returns {boolean} Returns `true` if the entry was removed, else `false`.\n */\n function stackDelete(key) {\n var data = this.__data__,\n result = data['delete'](key);\n\n this.size = data.size;\n return result;\n }\n\n /**\n * Gets the stack value for `key`.\n *\n * @private\n * @name get\n * @memberOf Stack\n * @param {string} key The key of the value to get.\n * @returns {*} Returns the entry value.\n */\n function stackGet(key) {\n return this.__data__.get(key);\n }\n\n /**\n * Checks if a stack value for `key` exists.\n *\n * @private\n * @name has\n * @memberOf Stack\n * @param {string} key The key of the entry to check.\n * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.\n */\n function stackHas(key) {\n return this.__data__.has(key);\n }\n\n /**\n * Sets the stack `key` to `value`.\n *\n * @private\n * @name set\n * @memberOf Stack\n * @param {string} key The key of the value to set.\n * @param {*} value The value to set.\n * @returns {Object} Returns the stack cache instance.\n */\n function stackSet(key, value) {\n var data = this.__data__;\n if (data instanceof ListCache) {\n var pairs = data.__data__;\n if (!Map || (pairs.length < LARGE_ARRAY_SIZE - 1)) {\n pairs.push([key, value]);\n this.size = ++data.size;\n return this;\n }\n data = this.__data__ = new MapCache(pairs);\n }\n data.set(key, value);\n this.size = data.size;\n return this;\n }\n\n // Add methods to `Stack`.\n Stack.prototype.clear = stackClear;\n Stack.prototype['delete'] = stackDelete;\n Stack.prototype.get = stackGet;\n Stack.prototype.has = stackHas;\n Stack.prototype.set = stackSet;\n\n /*------------------------------------------------------------------------*/\n\n /**\n * Creates an array of the enumerable property names of the array-like `value`.\n *\n * @private\n * @param {*} value The value to query.\n * @param {boolean} inherited Specify returning inherited property names.\n * @returns {Array} Returns the array of property names.\n */\n function arrayLikeKeys(value, inherited) {\n var isArr = isArray(value),\n isArg = !isArr && isArguments(value),\n isBuff = !isArr && !isArg && isBuffer(value),\n isType = !isArr && !isArg && !isBuff && isTypedArray(value),\n skipIndexes = isArr || isArg || isBuff || isType,\n result = skipIndexes ? baseTimes(value.length, String) : [],\n length = result.length;\n\n for (var key in value) {\n if ((inherited || hasOwnProperty.call(value, key)) &&\n !(skipIndexes && (\n // Safari 9 has enumerable `arguments.length` in strict mode.\n key == 'length' ||\n // Node.js 0.10 has enumerable non-index properties on buffers.\n (isBuff && (key == 'offset' || key == 'parent')) ||\n // PhantomJS 2 has enumerable non-index properties on typed arrays.\n (isType && (key == 'buffer' || key == 'byteLength' || key == 'byteOffset')) ||\n // Skip index properties.\n isIndex(key, length)\n ))) {\n result.push(key);\n }\n }\n return result;\n }\n\n /**\n * A specialized version of `_.sample` for arrays.\n *\n * @private\n * @param {Array} array The array to sample.\n * @returns {*} Returns the random element.\n */\n function arraySample(array) {\n var length = array.length;\n return length ? array[baseRandom(0, length - 1)] : undefined;\n }\n\n /**\n * A specialized version of `_.sampleSize` for arrays.\n *\n * @private\n * @param {Array} array The array to sample.\n * @param {number} n The number of elements to sample.\n * @returns {Array} Returns the random elements.\n */\n function arraySampleSize(array, n) {\n return shuffleSelf(copyArray(array), baseClamp(n, 0, array.length));\n }\n\n /**\n * A specialized version of `_.shuffle` for arrays.\n *\n * @private\n * @param {Array} array The array to shuffle.\n * @returns {Array} Returns the new shuffled array.\n */\n function arrayShuffle(array) {\n return shuffleSelf(copyArray(array));\n }\n\n /**\n * This function is like `assignValue` except that it doesn't assign\n * `undefined` values.\n *\n * @private\n * @param {Object} object The object to modify.\n * @param {string} key The key of the property to assign.\n * @param {*} value The value to assign.\n */\n function assignMergeValue(object, key, value) {\n if ((value !== undefined && !eq(object[key], value)) ||\n (value === undefined && !(key in object))) {\n baseAssignValue(object, key, value);\n }\n }\n\n /**\n * Assigns `value` to `key` of `object` if the existing value is not equivalent\n * using [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)\n * for equality comparisons.\n *\n * @private\n * @param {Object} object The object to modify.\n * @param {string} key The key of the property to assign.\n * @param {*} value The value to assign.\n */\n function assignValue(object, key, value) {\n var objValue = object[key];\n if (!(hasOwnProperty.call(object, key) && eq(objValue, value)) ||\n (value === undefined && !(key in object))) {\n baseAssignValue(object, key, value);\n }\n }\n\n /**\n * Gets the index at which the `key` is found in `array` of key-value pairs.\n *\n * @private\n * @param {Array} array The array to inspect.\n * @param {*} key The key to search for.\n * @returns {number} Returns the index of the matched value, else `-1`.\n */\n function assocIndexOf(array, key) {\n var length = array.length;\n while (length--) {\n if (eq(array[length][0], key)) {\n return length;\n }\n }\n return -1;\n }\n\n /**\n * Aggregates elements of `collection` on `accumulator` with keys transformed\n * by `iteratee` and values set by `setter`.\n *\n * @private\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} setter The function to set `accumulator` values.\n * @param {Function} iteratee The iteratee to transform keys.\n * @param {Object} accumulator The initial aggregated object.\n * @returns {Function} Returns `accumulator`.\n */\n function baseAggregator(collection, setter, iteratee, accumulator) {\n baseEach(collection, function(value, key, collection) {\n setter(accumulator, value, iteratee(value), collection);\n });\n return accumulator;\n }\n\n /**\n * The base implementation of `_.assign` without support for multiple sources\n * or `customizer` functions.\n *\n * @private\n * @param {Object} object The destination object.\n * @param {Object} source The source object.\n * @returns {Object} Returns `object`.\n */\n function baseAssign(object, source) {\n return object && copyObject(source, keys(source), object);\n }\n\n /**\n * The base implementation of `_.assignIn` without support for multiple sources\n * or `customizer` functions.\n *\n * @private\n * @param {Object} object The destination object.\n * @param {Object} source The source object.\n * @returns {Object} Returns `object`.\n */\n function baseAssignIn(object, source) {\n return object && copyObject(source, keysIn(source), object);\n }\n\n /**\n * The base implementation of `assignValue` and `assignMergeValue` without\n * value checks.\n *\n * @private\n * @param {Object} object The object to modify.\n * @param {string} key The key of the property to assign.\n * @param {*} value The value to assign.\n */\n function baseAssignValue(object, key, value) {\n if (key == '__proto__' && defineProperty) {\n defineProperty(object, key, {\n 'configurable': true,\n 'enumerable': true,\n 'value': value,\n 'writable': true\n });\n } else {\n object[key] = value;\n }\n }\n\n /**\n * The base implementation of `_.at` without support for individual paths.\n *\n * @private\n * @param {Object} object The object to iterate over.\n * @param {string[]} paths The property paths to pick.\n * @returns {Array} Returns the picked elements.\n */\n function baseAt(object, paths) {\n var index = -1,\n length = paths.length,\n result = Array(length),\n skip = object == null;\n\n while (++index < length) {\n result[index] = skip ? undefined : get(object, paths[index]);\n }\n return result;\n }\n\n /**\n * The base implementation of `_.clamp` which doesn't coerce arguments.\n *\n * @private\n * @param {number} number The number to clamp.\n * @param {number} [lower] The lower bound.\n * @param {number} upper The upper bound.\n * @returns {number} Returns the clamped number.\n */\n function baseClamp(number, lower, upper) {\n if (number === number) {\n if (upper !== undefined) {\n number = number <= upper ? number : upper;\n }\n if (lower !== undefined) {\n number = number >= lower ? number : lower;\n }\n }\n return number;\n }\n\n /**\n * The base implementation of `_.clone` and `_.cloneDeep` which tracks\n * traversed objects.\n *\n * @private\n * @param {*} value The value to clone.\n * @param {boolean} bitmask The bitmask flags.\n * 1 - Deep clone\n * 2 - Flatten inherited properties\n * 4 - Clone symbols\n * @param {Function} [customizer] The function to customize cloning.\n * @param {string} [key] The key of `value`.\n * @param {Object} [object] The parent object of `value`.\n * @param {Object} [stack] Tracks traversed objects and their clone counterparts.\n * @returns {*} Returns the cloned value.\n */\n function baseClone(value, bitmask, customizer, key, object, stack) {\n var result,\n isDeep = bitmask & CLONE_DEEP_FLAG,\n isFlat = bitmask & CLONE_FLAT_FLAG,\n isFull = bitmask & CLONE_SYMBOLS_FLAG;\n\n if (customizer) {\n result = object ? customizer(value, key, object, stack) : customizer(value);\n }\n if (result !== undefined) {\n return result;\n }\n if (!isObject(value)) {\n return value;\n }\n var isArr = isArray(value);\n if (isArr) {\n result = initCloneArray(value);\n if (!isDeep) {\n return copyArray(value, result);\n }\n } else {\n var tag = getTag(value),\n isFunc = tag == funcTag || tag == genTag;\n\n if (isBuffer(value)) {\n return cloneBuffer(value, isDeep);\n }\n if (tag == objectTag || tag == argsTag || (isFunc && !object)) {\n result = (isFlat || isFunc) ? {} : initCloneObject(value);\n if (!isDeep) {\n return isFlat\n ? copySymbolsIn(value, baseAssignIn(result, value))\n : copySymbols(value, baseAssign(result, value));\n }\n } else {\n if (!cloneableTags[tag]) {\n return object ? value : {};\n }\n result = initCloneByTag(value, tag, isDeep);\n }\n }\n // Check for circular references and return its corresponding clone.\n stack || (stack = new Stack);\n var stacked = stack.get(value);\n if (stacked) {\n return stacked;\n }\n stack.set(value, result);\n\n if (isSet(value)) {\n value.forEach(function(subValue) {\n result.add(baseClone(subValue, bitmask, customizer, subValue, value, stack));\n });\n\n return result;\n }\n\n if (isMap(value)) {\n value.forEach(function(subValue, key) {\n result.set(key, baseClone(subValue, bitmask, customizer, key, value, stack));\n });\n\n return result;\n }\n\n var keysFunc = isFull\n ? (isFlat ? getAllKeysIn : getAllKeys)\n : (isFlat ? keysIn : keys);\n\n var props = isArr ? undefined : keysFunc(value);\n arrayEach(props || value, function(subValue, key) {\n if (props) {\n key = subValue;\n subValue = value[key];\n }\n // Recursively populate clone (susceptible to call stack limits).\n assignValue(result, key, baseClone(subValue, bitmask, customizer, key, value, stack));\n });\n return result;\n }\n\n /**\n * The base implementation of `_.conforms` which doesn't clone `source`.\n *\n * @private\n * @param {Object} source The object of property predicates to conform to.\n * @returns {Function} Returns the new spec function.\n */\n function baseConforms(source) {\n var props = keys(source);\n return function(object) {\n return baseConformsTo(object, source, props);\n };\n }\n\n /**\n * The base implementation of `_.conformsTo` which accepts `props` to check.\n *\n * @private\n * @param {Object} object The object to inspect.\n * @param {Object} source The object of property predicates to conform to.\n * @returns {boolean} Returns `true` if `object` conforms, else `false`.\n */\n function baseConformsTo(object, source, props) {\n var length = props.length;\n if (object == null) {\n return !length;\n }\n object = Object(object);\n while (length--) {\n var key = props[length],\n predicate = source[key],\n value = object[key];\n\n if ((value === undefined && !(key in object)) || !predicate(value)) {\n return false;\n }\n }\n return true;\n }\n\n /**\n * The base implementation of `_.delay` and `_.defer` which accepts `args`\n * to provide to `func`.\n *\n * @private\n * @param {Function} func The function to delay.\n * @param {number} wait The number of milliseconds to delay invocation.\n * @param {Array} args The arguments to provide to `func`.\n * @returns {number|Object} Returns the timer id or timeout object.\n */\n function baseDelay(func, wait, args) {\n if (typeof func != 'function') {\n throw new TypeError(FUNC_ERROR_TEXT);\n }\n return setTimeout(function() { func.apply(undefined, args); }, wait);\n }\n\n /**\n * The base implementation of methods like `_.difference` without support\n * for excluding multiple arrays or iteratee shorthands.\n *\n * @private\n * @param {Array} array The array to inspect.\n * @param {Array} values The values to exclude.\n * @param {Function} [iteratee] The iteratee invoked per element.\n * @param {Function} [comparator] The comparator invoked per element.\n * @returns {Array} Returns the new array of filtered values.\n */\n function baseDifference(array, values, iteratee, comparator) {\n var index = -1,\n includes = arrayIncludes,\n isCommon = true,\n length = array.length,\n result = [],\n valuesLength = values.length;\n\n if (!length) {\n return result;\n }\n if (iteratee) {\n values = arrayMap(values, baseUnary(iteratee));\n }\n if (comparator) {\n includes = arrayIncludesWith;\n isCommon = false;\n }\n else if (values.length >= LARGE_ARRAY_SIZE) {\n includes = cacheHas;\n isCommon = false;\n values = new SetCache(values);\n }\n outer:\n while (++index < length) {\n var value = array[index],\n computed = iteratee == null ? value : iteratee(value);\n\n value = (comparator || value !== 0) ? value : 0;\n if (isCommon && computed === computed) {\n var valuesIndex = valuesLength;\n while (valuesIndex--) {\n if (values[valuesIndex] === computed) {\n continue outer;\n }\n }\n result.push(value);\n }\n else if (!includes(values, computed, comparator)) {\n result.push(value);\n }\n }\n return result;\n }\n\n /**\n * The base implementation of `_.forEach` without support for iteratee shorthands.\n *\n * @private\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {Array|Object} Returns `collection`.\n */\n var baseEach = createBaseEach(baseForOwn);\n\n /**\n * The base implementation of `_.forEachRight` without support for iteratee shorthands.\n *\n * @private\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {Array|Object} Returns `collection`.\n */\n var baseEachRight = createBaseEach(baseForOwnRight, true);\n\n /**\n * The base implementation of `_.every` without support for iteratee shorthands.\n *\n * @private\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} predicate The function invoked per iteration.\n * @returns {boolean} Returns `true` if all elements pass the predicate check,\n * else `false`\n */\n function baseEvery(collection, predicate) {\n var result = true;\n baseEach(collection, function(value, index, collection) {\n result = !!predicate(value, index, collection);\n return result;\n });\n return result;\n }\n\n /**\n * The base implementation of methods like `_.max` and `_.min` which accepts a\n * `comparator` to determine the extremum value.\n *\n * @private\n * @param {Array} array The array to iterate over.\n * @param {Function} iteratee The iteratee invoked per iteration.\n * @param {Function} comparator The comparator used to compare values.\n * @returns {*} Returns the extremum value.\n */\n function baseExtremum(array, iteratee, comparator) {\n var index = -1,\n length = array.length;\n\n while (++index < length) {\n var value = array[index],\n current = iteratee(value);\n\n if (current != null && (computed === undefined\n ? (current === current && !isSymbol(current))\n : comparator(current, computed)\n )) {\n var computed = current,\n result = value;\n }\n }\n return result;\n }\n\n /**\n * The base implementation of `_.fill` without an iteratee call guard.\n *\n * @private\n * @param {Array} array The array to fill.\n * @param {*} value The value to fill `array` with.\n * @param {number} [start=0] The start position.\n * @param {number} [end=array.length] The end position.\n * @returns {Array} Returns `array`.\n */\n function baseFill(array, value, start, end) {\n var length = array.length;\n\n start = toInteger(start);\n if (start < 0) {\n start = -start > length ? 0 : (length + start);\n }\n end = (end === undefined || end > length) ? length : toInteger(end);\n if (end < 0) {\n end += length;\n }\n end = start > end ? 0 : toLength(end);\n while (start < end) {\n array[start++] = value;\n }\n return array;\n }\n\n /**\n * The base implementation of `_.filter` without support for iteratee shorthands.\n *\n * @private\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} predicate The function invoked per iteration.\n * @returns {Array} Returns the new filtered array.\n */\n function baseFilter(collection, predicate) {\n var result = [];\n baseEach(collection, function(value, index, collection) {\n if (predicate(value, index, collection)) {\n result.push(value);\n }\n });\n return result;\n }\n\n /**\n * The base implementation of `_.flatten` with support for restricting flattening.\n *\n * @private\n * @param {Array} array The array to flatten.\n * @param {number} depth The maximum recursion depth.\n * @param {boolean} [predicate=isFlattenable] The function invoked per iteration.\n * @param {boolean} [isStrict] Restrict to values that pass `predicate` checks.\n * @param {Array} [result=[]] The initial result value.\n * @returns {Array} Returns the new flattened array.\n */\n function baseFlatten(array, depth, predicate, isStrict, result) {\n var index = -1,\n length = array.length;\n\n predicate || (predicate = isFlattenable);\n result || (result = []);\n\n while (++index < length) {\n var value = array[index];\n if (depth > 0 && predicate(value)) {\n if (depth > 1) {\n // Recursively flatten arrays (susceptible to call stack limits).\n baseFlatten(value, depth - 1, predicate, isStrict, result);\n } else {\n arrayPush(result, value);\n }\n } else if (!isStrict) {\n result[result.length] = value;\n }\n }\n return result;\n }\n\n /**\n * The base implementation of `baseForOwn` which iterates over `object`\n * properties returned by `keysFunc` and invokes `iteratee` for each property.\n * Iteratee functions may exit iteration early by explicitly returning `false`.\n *\n * @private\n * @param {Object} object The object to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @param {Function} keysFunc The function to get the keys of `object`.\n * @returns {Object} Returns `object`.\n */\n var baseFor = createBaseFor();\n\n /**\n * This function is like `baseFor` except that it iterates over properties\n * in the opposite order.\n *\n * @private\n * @param {Object} object The object to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @param {Function} keysFunc The function to get the keys of `object`.\n * @returns {Object} Returns `object`.\n */\n var baseForRight = createBaseFor(true);\n\n /**\n * The base implementation of `_.forOwn` without support for iteratee shorthands.\n *\n * @private\n * @param {Object} object The object to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {Object} Returns `object`.\n */\n function baseForOwn(object, iteratee) {\n return object && baseFor(object, iteratee, keys);\n }\n\n /**\n * The base implementation of `_.forOwnRight` without support for iteratee shorthands.\n *\n * @private\n * @param {Object} object The object to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {Object} Returns `object`.\n */\n function baseForOwnRight(object, iteratee) {\n return object && baseForRight(object, iteratee, keys);\n }\n\n /**\n * The base implementation of `_.functions` which creates an array of\n * `object` function property names filtered from `props`.\n *\n * @private\n * @param {Object} object The object to inspect.\n * @param {Array} props The property names to filter.\n * @returns {Array} Returns the function names.\n */\n function baseFunctions(object, props) {\n return arrayFilter(props, function(key) {\n return isFunction(object[key]);\n });\n }\n\n /**\n * The base implementation of `_.get` without support for default values.\n *\n * @private\n * @param {Object} object The object to query.\n * @param {Array|string} path The path of the property to get.\n * @returns {*} Returns the resolved value.\n */\n function baseGet(object, path) {\n path = castPath(path, object);\n\n var index = 0,\n length = path.length;\n\n while (object != null && index < length) {\n object = object[toKey(path[index++])];\n }\n return (index && index == length) ? object : undefined;\n }\n\n /**\n * The base implementation of `getAllKeys` and `getAllKeysIn` which uses\n * `keysFunc` and `symbolsFunc` to get the enumerable property names and\n * symbols of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @param {Function} keysFunc The function to get the keys of `object`.\n * @param {Function} symbolsFunc The function to get the symbols of `object`.\n * @returns {Array} Returns the array of property names and symbols.\n */\n function baseGetAllKeys(object, keysFunc, symbolsFunc) {\n var result = keysFunc(object);\n return isArray(object) ? result : arrayPush(result, symbolsFunc(object));\n }\n\n /**\n * The base implementation of `getTag` without fallbacks for buggy environments.\n *\n * @private\n * @param {*} value The value to query.\n * @returns {string} Returns the `toStringTag`.\n */\n function baseGetTag(value) {\n if (value == null) {\n return value === undefined ? undefinedTag : nullTag;\n }\n return (symToStringTag && symToStringTag in Object(value))\n ? getRawTag(value)\n : objectToString(value);\n }\n\n /**\n * The base implementation of `_.gt` which doesn't coerce arguments.\n *\n * @private\n * @param {*} value The value to compare.\n * @param {*} other The other value to compare.\n * @returns {boolean} Returns `true` if `value` is greater than `other`,\n * else `false`.\n */\n function baseGt(value, other) {\n return value > other;\n }\n\n /**\n * The base implementation of `_.has` without support for deep paths.\n *\n * @private\n * @param {Object} [object] The object to query.\n * @param {Array|string} key The key to check.\n * @returns {boolean} Returns `true` if `key` exists, else `false`.\n */\n function baseHas(object, key) {\n return object != null && hasOwnProperty.call(object, key);\n }\n\n /**\n * The base implementation of `_.hasIn` without support for deep paths.\n *\n * @private\n * @param {Object} [object] The object to query.\n * @param {Array|string} key The key to check.\n * @returns {boolean} Returns `true` if `key` exists, else `false`.\n */\n function baseHasIn(object, key) {\n return object != null && key in Object(object);\n }\n\n /**\n * The base implementation of `_.inRange` which doesn't coerce arguments.\n *\n * @private\n * @param {number} number The number to check.\n * @param {number} start The start of the range.\n * @param {number} end The end of the range.\n * @returns {boolean} Returns `true` if `number` is in the range, else `false`.\n */\n function baseInRange(number, start, end) {\n return number >= nativeMin(start, end) && number < nativeMax(start, end);\n }\n\n /**\n * The base implementation of methods like `_.intersection`, without support\n * for iteratee shorthands, that accepts an array of arrays to inspect.\n *\n * @private\n * @param {Array} arrays The arrays to inspect.\n * @param {Function} [iteratee] The iteratee invoked per element.\n * @param {Function} [comparator] The comparator invoked per element.\n * @returns {Array} Returns the new array of shared values.\n */\n function baseIntersection(arrays, iteratee, comparator) {\n var includes = comparator ? arrayIncludesWith : arrayIncludes,\n length = arrays[0].length,\n othLength = arrays.length,\n othIndex = othLength,\n caches = Array(othLength),\n maxLength = Infinity,\n result = [];\n\n while (othIndex--) {\n var array = arrays[othIndex];\n if (othIndex && iteratee) {\n array = arrayMap(array, baseUnary(iteratee));\n }\n maxLength = nativeMin(array.length, maxLength);\n caches[othIndex] = !comparator && (iteratee || (length >= 120 && array.length >= 120))\n ? new SetCache(othIndex && array)\n : undefined;\n }\n array = arrays[0];\n\n var index = -1,\n seen = caches[0];\n\n outer:\n while (++index < length && result.length < maxLength) {\n var value = array[index],\n computed = iteratee ? iteratee(value) : value;\n\n value = (comparator || value !== 0) ? value : 0;\n if (!(seen\n ? cacheHas(seen, computed)\n : includes(result, computed, comparator)\n )) {\n othIndex = othLength;\n while (--othIndex) {\n var cache = caches[othIndex];\n if (!(cache\n ? cacheHas(cache, computed)\n : includes(arrays[othIndex], computed, comparator))\n ) {\n continue outer;\n }\n }\n if (seen) {\n seen.push(computed);\n }\n result.push(value);\n }\n }\n return result;\n }\n\n /**\n * The base implementation of `_.invert` and `_.invertBy` which inverts\n * `object` with values transformed by `iteratee` and set by `setter`.\n *\n * @private\n * @param {Object} object The object to iterate over.\n * @param {Function} setter The function to set `accumulator` values.\n * @param {Function} iteratee The iteratee to transform values.\n * @param {Object} accumulator The initial inverted object.\n * @returns {Function} Returns `accumulator`.\n */\n function baseInverter(object, setter, iteratee, accumulator) {\n baseForOwn(object, function(value, key, object) {\n setter(accumulator, iteratee(value), key, object);\n });\n return accumulator;\n }\n\n /**\n * The base implementation of `_.invoke` without support for individual\n * method arguments.\n *\n * @private\n * @param {Object} object The object to query.\n * @param {Array|string} path The path of the method to invoke.\n * @param {Array} args The arguments to invoke the method with.\n * @returns {*} Returns the result of the invoked method.\n */\n function baseInvoke(object, path, args) {\n path = castPath(path, object);\n object = parent(object, path);\n var func = object == null ? object : object[toKey(last(path))];\n return func == null ? undefined : apply(func, object, args);\n }\n\n /**\n * The base implementation of `_.isArguments`.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an `arguments` object,\n */\n function baseIsArguments(value) {\n return isObjectLike(value) && baseGetTag(value) == argsTag;\n }\n\n /**\n * The base implementation of `_.isArrayBuffer` without Node.js optimizations.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an array buffer, else `false`.\n */\n function baseIsArrayBuffer(value) {\n return isObjectLike(value) && baseGetTag(value) == arrayBufferTag;\n }\n\n /**\n * The base implementation of `_.isDate` without Node.js optimizations.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a date object, else `false`.\n */\n function baseIsDate(value) {\n return isObjectLike(value) && baseGetTag(value) == dateTag;\n }\n\n /**\n * The base implementation of `_.isEqual` which supports partial comparisons\n * and tracks traversed objects.\n *\n * @private\n * @param {*} value The value to compare.\n * @param {*} other The other value to compare.\n * @param {boolean} bitmask The bitmask flags.\n * 1 - Unordered comparison\n * 2 - Partial comparison\n * @param {Function} [customizer] The function to customize comparisons.\n * @param {Object} [stack] Tracks traversed `value` and `other` objects.\n * @returns {boolean} Returns `true` if the values are equivalent, else `false`.\n */\n function baseIsEqual(value, other, bitmask, customizer, stack) {\n if (value === other) {\n return true;\n }\n if (value == null || other == null || (!isObjectLike(value) && !isObjectLike(other))) {\n return value !== value && other !== other;\n }\n return baseIsEqualDeep(value, other, bitmask, customizer, baseIsEqual, stack);\n }\n\n /**\n * A specialized version of `baseIsEqual` for arrays and objects which performs\n * deep comparisons and tracks traversed objects enabling objects with circular\n * references to be compared.\n *\n * @private\n * @param {Object} object The object to compare.\n * @param {Object} other The other object to compare.\n * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.\n * @param {Function} customizer The function to customize comparisons.\n * @param {Function} equalFunc The function to determine equivalents of values.\n * @param {Object} [stack] Tracks traversed `object` and `other` objects.\n * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.\n */\n function baseIsEqualDeep(object, other, bitmask, customizer, equalFunc, stack) {\n var objIsArr = isArray(object),\n othIsArr = isArray(other),\n objTag = objIsArr ? arrayTag : getTag(object),\n othTag = othIsArr ? arrayTag : getTag(other);\n\n objTag = objTag == argsTag ? objectTag : objTag;\n othTag = othTag == argsTag ? objectTag : othTag;\n\n var objIsObj = objTag == objectTag,\n othIsObj = othTag == objectTag,\n isSameTag = objTag == othTag;\n\n if (isSameTag && isBuffer(object)) {\n if (!isBuffer(other)) {\n return false;\n }\n objIsArr = true;\n objIsObj = false;\n }\n if (isSameTag && !objIsObj) {\n stack || (stack = new Stack);\n return (objIsArr || isTypedArray(object))\n ? equalArrays(object, other, bitmask, customizer, equalFunc, stack)\n : equalByTag(object, other, objTag, bitmask, customizer, equalFunc, stack);\n }\n if (!(bitmask & COMPARE_PARTIAL_FLAG)) {\n var objIsWrapped = objIsObj && hasOwnProperty.call(object, '__wrapped__'),\n othIsWrapped = othIsObj && hasOwnProperty.call(other, '__wrapped__');\n\n if (objIsWrapped || othIsWrapped) {\n var objUnwrapped = objIsWrapped ? object.value() : object,\n othUnwrapped = othIsWrapped ? other.value() : other;\n\n stack || (stack = new Stack);\n return equalFunc(objUnwrapped, othUnwrapped, bitmask, customizer, stack);\n }\n }\n if (!isSameTag) {\n return false;\n }\n stack || (stack = new Stack);\n return equalObjects(object, other, bitmask, customizer, equalFunc, stack);\n }\n\n /**\n * The base implementation of `_.isMap` without Node.js optimizations.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a map, else `false`.\n */\n function baseIsMap(value) {\n return isObjectLike(value) && getTag(value) == mapTag;\n }\n\n /**\n * The base implementation of `_.isMatch` without support for iteratee shorthands.\n *\n * @private\n * @param {Object} object The object to inspect.\n * @param {Object} source The object of property values to match.\n * @param {Array} matchData The property names, values, and compare flags to match.\n * @param {Function} [customizer] The function to customize comparisons.\n * @returns {boolean} Returns `true` if `object` is a match, else `false`.\n */\n function baseIsMatch(object, source, matchData, customizer) {\n var index = matchData.length,\n length = index,\n noCustomizer = !customizer;\n\n if (object == null) {\n return !length;\n }\n object = Object(object);\n while (index--) {\n var data = matchData[index];\n if ((noCustomizer && data[2])\n ? data[1] !== object[data[0]]\n : !(data[0] in object)\n ) {\n return false;\n }\n }\n while (++index < length) {\n data = matchData[index];\n var key = data[0],\n objValue = object[key],\n srcValue = data[1];\n\n if (noCustomizer && data[2]) {\n if (objValue === undefined && !(key in object)) {\n return false;\n }\n } else {\n var stack = new Stack;\n if (customizer) {\n var result = customizer(objValue, srcValue, key, object, source, stack);\n }\n if (!(result === undefined\n ? baseIsEqual(srcValue, objValue, COMPARE_PARTIAL_FLAG | COMPARE_UNORDERED_FLAG, customizer, stack)\n : result\n )) {\n return false;\n }\n }\n }\n return true;\n }\n\n /**\n * The base implementation of `_.isNative` without bad shim checks.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a native function,\n * else `false`.\n */\n function baseIsNative(value) {\n if (!isObject(value) || isMasked(value)) {\n return false;\n }\n var pattern = isFunction(value) ? reIsNative : reIsHostCtor;\n return pattern.test(toSource(value));\n }\n\n /**\n * The base implementation of `_.isRegExp` without Node.js optimizations.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a regexp, else `false`.\n */\n function baseIsRegExp(value) {\n return isObjectLike(value) && baseGetTag(value) == regexpTag;\n }\n\n /**\n * The base implementation of `_.isSet` without Node.js optimizations.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a set, else `false`.\n */\n function baseIsSet(value) {\n return isObjectLike(value) && getTag(value) == setTag;\n }\n\n /**\n * The base implementation of `_.isTypedArray` without Node.js optimizations.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a typed array, else `false`.\n */\n function baseIsTypedArray(value) {\n return isObjectLike(value) &&\n isLength(value.length) && !!typedArrayTags[baseGetTag(value)];\n }\n\n /**\n * The base implementation of `_.iteratee`.\n *\n * @private\n * @param {*} [value=_.identity] The value to convert to an iteratee.\n * @returns {Function} Returns the iteratee.\n */\n function baseIteratee(value) {\n // Don't store the `typeof` result in a variable to avoid a JIT bug in Safari 9.\n // See https://bugs.webkit.org/show_bug.cgi?id=156034 for more details.\n if (typeof value == 'function') {\n return value;\n }\n if (value == null) {\n return identity;\n }\n if (typeof value == 'object') {\n return isArray(value)\n ? baseMatchesProperty(value[0], value[1])\n : baseMatches(value);\n }\n return property(value);\n }\n\n /**\n * The base implementation of `_.keys` which doesn't treat sparse arrays as dense.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property names.\n */\n function baseKeys(object) {\n if (!isPrototype(object)) {\n return nativeKeys(object);\n }\n var result = [];\n for (var key in Object(object)) {\n if (hasOwnProperty.call(object, key) && key != 'constructor') {\n result.push(key);\n }\n }\n return result;\n }\n\n /**\n * The base implementation of `_.keysIn` which doesn't treat sparse arrays as dense.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property names.\n */\n function baseKeysIn(object) {\n if (!isObject(object)) {\n return nativeKeysIn(object);\n }\n var isProto = isPrototype(object),\n result = [];\n\n for (var key in object) {\n if (!(key == 'constructor' && (isProto || !hasOwnProperty.call(object, key)))) {\n result.push(key);\n }\n }\n return result;\n }\n\n /**\n * The base implementation of `_.lt` which doesn't coerce arguments.\n *\n * @private\n * @param {*} value The value to compare.\n * @param {*} other The other value to compare.\n * @returns {boolean} Returns `true` if `value` is less than `other`,\n * else `false`.\n */\n function baseLt(value, other) {\n return value < other;\n }\n\n /**\n * The base implementation of `_.map` without support for iteratee shorthands.\n *\n * @private\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {Array} Returns the new mapped array.\n */\n function baseMap(collection, iteratee) {\n var index = -1,\n result = isArrayLike(collection) ? Array(collection.length) : [];\n\n baseEach(collection, function(value, key, collection) {\n result[++index] = iteratee(value, key, collection);\n });\n return result;\n }\n\n /**\n * The base implementation of `_.matches` which doesn't clone `source`.\n *\n * @private\n * @param {Object} source The object of property values to match.\n * @returns {Function} Returns the new spec function.\n */\n function baseMatches(source) {\n var matchData = getMatchData(source);\n if (matchData.length == 1 && matchData[0][2]) {\n return matchesStrictComparable(matchData[0][0], matchData[0][1]);\n }\n return function(object) {\n return object === source || baseIsMatch(object, source, matchData);\n };\n }\n\n /**\n * The base implementation of `_.matchesProperty` which doesn't clone `srcValue`.\n *\n * @private\n * @param {string} path The path of the property to get.\n * @param {*} srcValue The value to match.\n * @returns {Function} Returns the new spec function.\n */\n function baseMatchesProperty(path, srcValue) {\n if (isKey(path) && isStrictComparable(srcValue)) {\n return matchesStrictComparable(toKey(path), srcValue);\n }\n return function(object) {\n var objValue = get(object, path);\n return (objValue === undefined && objValue === srcValue)\n ? hasIn(object, path)\n : baseIsEqual(srcValue, objValue, COMPARE_PARTIAL_FLAG | COMPARE_UNORDERED_FLAG);\n };\n }\n\n /**\n * The base implementation of `_.merge` without support for multiple sources.\n *\n * @private\n * @param {Object} object The destination object.\n * @param {Object} source The source object.\n * @param {number} srcIndex The index of `source`.\n * @param {Function} [customizer] The function to customize merged values.\n * @param {Object} [stack] Tracks traversed source values and their merged\n * counterparts.\n */\n function baseMerge(object, source, srcIndex, customizer, stack) {\n if (object === source) {\n return;\n }\n baseFor(source, function(srcValue, key) {\n if (isObject(srcValue)) {\n stack || (stack = new Stack);\n baseMergeDeep(object, source, key, srcIndex, baseMerge, customizer, stack);\n }\n else {\n var newValue = customizer\n ? customizer(safeGet(object, key), srcValue, (key + ''), object, source, stack)\n : undefined;\n\n if (newValue === undefined) {\n newValue = srcValue;\n }\n assignMergeValue(object, key, newValue);\n }\n }, keysIn);\n }\n\n /**\n * A specialized version of `baseMerge` for arrays and objects which performs\n * deep merges and tracks traversed objects enabling objects with circular\n * references to be merged.\n *\n * @private\n * @param {Object} object The destination object.\n * @param {Object} source The source object.\n * @param {string} key The key of the value to merge.\n * @param {number} srcIndex The index of `source`.\n * @param {Function} mergeFunc The function to merge values.\n * @param {Function} [customizer] The function to customize assigned values.\n * @param {Object} [stack] Tracks traversed source values and their merged\n * counterparts.\n */\n function baseMergeDeep(object, source, key, srcIndex, mergeFunc, customizer, stack) {\n var objValue = safeGet(object, key),\n srcValue = safeGet(source, key),\n stacked = stack.get(srcValue);\n\n if (stacked) {\n assignMergeValue(object, key, stacked);\n return;\n }\n var newValue = customizer\n ? customizer(objValue, srcValue, (key + ''), object, source, stack)\n : undefined;\n\n var isCommon = newValue === undefined;\n\n if (isCommon) {\n var isArr = isArray(srcValue),\n isBuff = !isArr && isBuffer(srcValue),\n isTyped = !isArr && !isBuff && isTypedArray(srcValue);\n\n newValue = srcValue;\n if (isArr || isBuff || isTyped) {\n if (isArray(objValue)) {\n newValue = objValue;\n }\n else if (isArrayLikeObject(objValue)) {\n newValue = copyArray(objValue);\n }\n else if (isBuff) {\n isCommon = false;\n newValue = cloneBuffer(srcValue, true);\n }\n else if (isTyped) {\n isCommon = false;\n newValue = cloneTypedArray(srcValue, true);\n }\n else {\n newValue = [];\n }\n }\n else if (isPlainObject(srcValue) || isArguments(srcValue)) {\n newValue = objValue;\n if (isArguments(objValue)) {\n newValue = toPlainObject(objValue);\n }\n else if (!isObject(objValue) || isFunction(objValue)) {\n newValue = initCloneObject(srcValue);\n }\n }\n else {\n isCommon = false;\n }\n }\n if (isCommon) {\n // Recursively merge objects and arrays (susceptible to call stack limits).\n stack.set(srcValue, newValue);\n mergeFunc(newValue, srcValue, srcIndex, customizer, stack);\n stack['delete'](srcValue);\n }\n assignMergeValue(object, key, newValue);\n }\n\n /**\n * The base implementation of `_.nth` which doesn't coerce arguments.\n *\n * @private\n * @param {Array} array The array to query.\n * @param {number} n The index of the element to return.\n * @returns {*} Returns the nth element of `array`.\n */\n function baseNth(array, n) {\n var length = array.length;\n if (!length) {\n return;\n }\n n += n < 0 ? length : 0;\n return isIndex(n, length) ? array[n] : undefined;\n }\n\n /**\n * The base implementation of `_.orderBy` without param guards.\n *\n * @private\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function[]|Object[]|string[]} iteratees The iteratees to sort by.\n * @param {string[]} orders The sort orders of `iteratees`.\n * @returns {Array} Returns the new sorted array.\n */\n function baseOrderBy(collection, iteratees, orders) {\n var index = -1;\n iteratees = arrayMap(iteratees.length ? iteratees : [identity], baseUnary(getIteratee()));\n\n var result = baseMap(collection, function(value, key, collection) {\n var criteria = arrayMap(iteratees, function(iteratee) {\n return iteratee(value);\n });\n return { 'criteria': criteria, 'index': ++index, 'value': value };\n });\n\n return baseSortBy(result, function(object, other) {\n return compareMultiple(object, other, orders);\n });\n }\n\n /**\n * The base implementation of `_.pick` without support for individual\n * property identifiers.\n *\n * @private\n * @param {Object} object The source object.\n * @param {string[]} paths The property paths to pick.\n * @returns {Object} Returns the new object.\n */\n function basePick(object, paths) {\n return basePickBy(object, paths, function(value, path) {\n return hasIn(object, path);\n });\n }\n\n /**\n * The base implementation of `_.pickBy` without support for iteratee shorthands.\n *\n * @private\n * @param {Object} object The source object.\n * @param {string[]} paths The property paths to pick.\n * @param {Function} predicate The function invoked per property.\n * @returns {Object} Returns the new object.\n */\n function basePickBy(object, paths, predicate) {\n var index = -1,\n length = paths.length,\n result = {};\n\n while (++index < length) {\n var path = paths[index],\n value = baseGet(object, path);\n\n if (predicate(value, path)) {\n baseSet(result, castPath(path, object), value);\n }\n }\n return result;\n }\n\n /**\n * A specialized version of `baseProperty` which supports deep paths.\n *\n * @private\n * @param {Array|string} path The path of the property to get.\n * @returns {Function} Returns the new accessor function.\n */\n function basePropertyDeep(path) {\n return function(object) {\n return baseGet(object, path);\n };\n }\n\n /**\n * The base implementation of `_.pullAllBy` without support for iteratee\n * shorthands.\n *\n * @private\n * @param {Array} array The array to modify.\n * @param {Array} values The values to remove.\n * @param {Function} [iteratee] The iteratee invoked per element.\n * @param {Function} [comparator] The comparator invoked per element.\n * @returns {Array} Returns `array`.\n */\n function basePullAll(array, values, iteratee, comparator) {\n var indexOf = comparator ? baseIndexOfWith : baseIndexOf,\n index = -1,\n length = values.length,\n seen = array;\n\n if (array === values) {\n values = copyArray(values);\n }\n if (iteratee) {\n seen = arrayMap(array, baseUnary(iteratee));\n }\n while (++index < length) {\n var fromIndex = 0,\n value = values[index],\n computed = iteratee ? iteratee(value) : value;\n\n while ((fromIndex = indexOf(seen, computed, fromIndex, comparator)) > -1) {\n if (seen !== array) {\n splice.call(seen, fromIndex, 1);\n }\n splice.call(array, fromIndex, 1);\n }\n }\n return array;\n }\n\n /**\n * The base implementation of `_.pullAt` without support for individual\n * indexes or capturing the removed elements.\n *\n * @private\n * @param {Array} array The array to modify.\n * @param {number[]} indexes The indexes of elements to remove.\n * @returns {Array} Returns `array`.\n */\n function basePullAt(array, indexes) {\n var length = array ? indexes.length : 0,\n lastIndex = length - 1;\n\n while (length--) {\n var index = indexes[length];\n if (length == lastIndex || index !== previous) {\n var previous = index;\n if (isIndex(index)) {\n splice.call(array, index, 1);\n } else {\n baseUnset(array, index);\n }\n }\n }\n return array;\n }\n\n /**\n * The base implementation of `_.random` without support for returning\n * floating-point numbers.\n *\n * @private\n * @param {number} lower The lower bound.\n * @param {number} upper The upper bound.\n * @returns {number} Returns the random number.\n */\n function baseRandom(lower, upper) {\n return lower + nativeFloor(nativeRandom() * (upper - lower + 1));\n }\n\n /**\n * The base implementation of `_.range` and `_.rangeRight` which doesn't\n * coerce arguments.\n *\n * @private\n * @param {number} start The start of the range.\n * @param {number} end The end of the range.\n * @param {number} step The value to increment or decrement by.\n * @param {boolean} [fromRight] Specify iterating from right to left.\n * @returns {Array} Returns the range of numbers.\n */\n function baseRange(start, end, step, fromRight) {\n var index = -1,\n length = nativeMax(nativeCeil((end - start) / (step || 1)), 0),\n result = Array(length);\n\n while (length--) {\n result[fromRight ? length : ++index] = start;\n start += step;\n }\n return result;\n }\n\n /**\n * The base implementation of `_.repeat` which doesn't coerce arguments.\n *\n * @private\n * @param {string} string The string to repeat.\n * @param {number} n The number of times to repeat the string.\n * @returns {string} Returns the repeated string.\n */\n function baseRepeat(string, n) {\n var result = '';\n if (!string || n < 1 || n > MAX_SAFE_INTEGER) {\n return result;\n }\n // Leverage the exponentiation by squaring algorithm for a faster repeat.\n // See https://en.wikipedia.org/wiki/Exponentiation_by_squaring for more details.\n do {\n if (n % 2) {\n result += string;\n }\n n = nativeFloor(n / 2);\n if (n) {\n string += string;\n }\n } while (n);\n\n return result;\n }\n\n /**\n * The base implementation of `_.rest` which doesn't validate or coerce arguments.\n *\n * @private\n * @param {Function} func The function to apply a rest parameter to.\n * @param {number} [start=func.length-1] The start position of the rest parameter.\n * @returns {Function} Returns the new function.\n */\n function baseRest(func, start) {\n return setToString(overRest(func, start, identity), func + '');\n }\n\n /**\n * The base implementation of `_.sample`.\n *\n * @private\n * @param {Array|Object} collection The collection to sample.\n * @returns {*} Returns the random element.\n */\n function baseSample(collection) {\n return arraySample(values(collection));\n }\n\n /**\n * The base implementation of `_.sampleSize` without param guards.\n *\n * @private\n * @param {Array|Object} collection The collection to sample.\n * @param {number} n The number of elements to sample.\n * @returns {Array} Returns the random elements.\n */\n function baseSampleSize(collection, n) {\n var array = values(collection);\n return shuffleSelf(array, baseClamp(n, 0, array.length));\n }\n\n /**\n * The base implementation of `_.set`.\n *\n * @private\n * @param {Object} object The object to modify.\n * @param {Array|string} path The path of the property to set.\n * @param {*} value The value to set.\n * @param {Function} [customizer] The function to customize path creation.\n * @returns {Object} Returns `object`.\n */\n function baseSet(object, path, value, customizer) {\n if (!isObject(object)) {\n return object;\n }\n path = castPath(path, object);\n\n var index = -1,\n length = path.length,\n lastIndex = length - 1,\n nested = object;\n\n while (nested != null && ++index < length) {\n var key = toKey(path[index]),\n newValue = value;\n\n if (index != lastIndex) {\n var objValue = nested[key];\n newValue = customizer ? customizer(objValue, key, nested) : undefined;\n if (newValue === undefined) {\n newValue = isObject(objValue)\n ? objValue\n : (isIndex(path[index + 1]) ? [] : {});\n }\n }\n assignValue(nested, key, newValue);\n nested = nested[key];\n }\n return object;\n }\n\n /**\n * The base implementation of `setData` without support for hot loop shorting.\n *\n * @private\n * @param {Function} func The function to associate metadata with.\n * @param {*} data The metadata.\n * @returns {Function} Returns `func`.\n */\n var baseSetData = !metaMap ? identity : function(func, data) {\n metaMap.set(func, data);\n return func;\n };\n\n /**\n * The base implementation of `setToString` without support for hot loop shorting.\n *\n * @private\n * @param {Function} func The function to modify.\n * @param {Function} string The `toString` result.\n * @returns {Function} Returns `func`.\n */\n var baseSetToString = !defineProperty ? identity : function(func, string) {\n return defineProperty(func, 'toString', {\n 'configurable': true,\n 'enumerable': false,\n 'value': constant(string),\n 'writable': true\n });\n };\n\n /**\n * The base implementation of `_.shuffle`.\n *\n * @private\n * @param {Array|Object} collection The collection to shuffle.\n * @returns {Array} Returns the new shuffled array.\n */\n function baseShuffle(collection) {\n return shuffleSelf(values(collection));\n }\n\n /**\n * The base implementation of `_.slice` without an iteratee call guard.\n *\n * @private\n * @param {Array} array The array to slice.\n * @param {number} [start=0] The start position.\n * @param {number} [end=array.length] The end position.\n * @returns {Array} Returns the slice of `array`.\n */\n function baseSlice(array, start, end) {\n var index = -1,\n length = array.length;\n\n if (start < 0) {\n start = -start > length ? 0 : (length + start);\n }\n end = end > length ? length : end;\n if (end < 0) {\n end += length;\n }\n length = start > end ? 0 : ((end - start) >>> 0);\n start >>>= 0;\n\n var result = Array(length);\n while (++index < length) {\n result[index] = array[index + start];\n }\n return result;\n }\n\n /**\n * The base implementation of `_.some` without support for iteratee shorthands.\n *\n * @private\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} predicate The function invoked per iteration.\n * @returns {boolean} Returns `true` if any element passes the predicate check,\n * else `false`.\n */\n function baseSome(collection, predicate) {\n var result;\n\n baseEach(collection, function(value, index, collection) {\n result = predicate(value, index, collection);\n return !result;\n });\n return !!result;\n }\n\n /**\n * The base implementation of `_.sortedIndex` and `_.sortedLastIndex` which\n * performs a binary search of `array` to determine the index at which `value`\n * should be inserted into `array` in order to maintain its sort order.\n *\n * @private\n * @param {Array} array The sorted array to inspect.\n * @param {*} value The value to evaluate.\n * @param {boolean} [retHighest] Specify returning the highest qualified index.\n * @returns {number} Returns the index at which `value` should be inserted\n * into `array`.\n */\n function baseSortedIndex(array, value, retHighest) {\n var low = 0,\n high = array == null ? low : array.length;\n\n if (typeof value == 'number' && value === value && high <= HALF_MAX_ARRAY_LENGTH) {\n while (low < high) {\n var mid = (low + high) >>> 1,\n computed = array[mid];\n\n if (computed !== null && !isSymbol(computed) &&\n (retHighest ? (computed <= value) : (computed < value))) {\n low = mid + 1;\n } else {\n high = mid;\n }\n }\n return high;\n }\n return baseSortedIndexBy(array, value, identity, retHighest);\n }\n\n /**\n * The base implementation of `_.sortedIndexBy` and `_.sortedLastIndexBy`\n * which invokes `iteratee` for `value` and each element of `array` to compute\n * their sort ranking. The iteratee is invoked with one argument; (value).\n *\n * @private\n * @param {Array} array The sorted array to inspect.\n * @param {*} value The value to evaluate.\n * @param {Function} iteratee The iteratee invoked per element.\n * @param {boolean} [retHighest] Specify returning the highest qualified index.\n * @returns {number} Returns the index at which `value` should be inserted\n * into `array`.\n */\n function baseSortedIndexBy(array, value, iteratee, retHighest) {\n value = iteratee(value);\n\n var low = 0,\n high = array == null ? 0 : array.length,\n valIsNaN = value !== value,\n valIsNull = value === null,\n valIsSymbol = isSymbol(value),\n valIsUndefined = value === undefined;\n\n while (low < high) {\n var mid = nativeFloor((low + high) / 2),\n computed = iteratee(array[mid]),\n othIsDefined = computed !== undefined,\n othIsNull = computed === null,\n othIsReflexive = computed === computed,\n othIsSymbol = isSymbol(computed);\n\n if (valIsNaN) {\n var setLow = retHighest || othIsReflexive;\n } else if (valIsUndefined) {\n setLow = othIsReflexive && (retHighest || othIsDefined);\n } else if (valIsNull) {\n setLow = othIsReflexive && othIsDefined && (retHighest || !othIsNull);\n } else if (valIsSymbol) {\n setLow = othIsReflexive && othIsDefined && !othIsNull && (retHighest || !othIsSymbol);\n } else if (othIsNull || othIsSymbol) {\n setLow = false;\n } else {\n setLow = retHighest ? (computed <= value) : (computed < value);\n }\n if (setLow) {\n low = mid + 1;\n } else {\n high = mid;\n }\n }\n return nativeMin(high, MAX_ARRAY_INDEX);\n }\n\n /**\n * The base implementation of `_.sortedUniq` and `_.sortedUniqBy` without\n * support for iteratee shorthands.\n *\n * @private\n * @param {Array} array The array to inspect.\n * @param {Function} [iteratee] The iteratee invoked per element.\n * @returns {Array} Returns the new duplicate free array.\n */\n function baseSortedUniq(array, iteratee) {\n var index = -1,\n length = array.length,\n resIndex = 0,\n result = [];\n\n while (++index < length) {\n var value = array[index],\n computed = iteratee ? iteratee(value) : value;\n\n if (!index || !eq(computed, seen)) {\n var seen = computed;\n result[resIndex++] = value === 0 ? 0 : value;\n }\n }\n return result;\n }\n\n /**\n * The base implementation of `_.toNumber` which doesn't ensure correct\n * conversions of binary, hexadecimal, or octal string values.\n *\n * @private\n * @param {*} value The value to process.\n * @returns {number} Returns the number.\n */\n function baseToNumber(value) {\n if (typeof value == 'number') {\n return value;\n }\n if (isSymbol(value)) {\n return NAN;\n }\n return +value;\n }\n\n /**\n * The base implementation of `_.toString` which doesn't convert nullish\n * values to empty strings.\n *\n * @private\n * @param {*} value The value to process.\n * @returns {string} Returns the string.\n */\n function baseToString(value) {\n // Exit early for strings to avoid a performance hit in some environments.\n if (typeof value == 'string') {\n return value;\n }\n if (isArray(value)) {\n // Recursively convert values (susceptible to call stack limits).\n return arrayMap(value, baseToString) + '';\n }\n if (isSymbol(value)) {\n return symbolToString ? symbolToString.call(value) : '';\n }\n var result = (value + '');\n return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result;\n }\n\n /**\n * The base implementation of `_.uniqBy` without support for iteratee shorthands.\n *\n * @private\n * @param {Array} array The array to inspect.\n * @param {Function} [iteratee] The iteratee invoked per element.\n * @param {Function} [comparator] The comparator invoked per element.\n * @returns {Array} Returns the new duplicate free array.\n */\n function baseUniq(array, iteratee, comparator) {\n var index = -1,\n includes = arrayIncludes,\n length = array.length,\n isCommon = true,\n result = [],\n seen = result;\n\n if (comparator) {\n isCommon = false;\n includes = arrayIncludesWith;\n }\n else if (length >= LARGE_ARRAY_SIZE) {\n var set = iteratee ? null : createSet(array);\n if (set) {\n return setToArray(set);\n }\n isCommon = false;\n includes = cacheHas;\n seen = new SetCache;\n }\n else {\n seen = iteratee ? [] : result;\n }\n outer:\n while (++index < length) {\n var value = array[index],\n computed = iteratee ? iteratee(value) : value;\n\n value = (comparator || value !== 0) ? value : 0;\n if (isCommon && computed === computed) {\n var seenIndex = seen.length;\n while (seenIndex--) {\n if (seen[seenIndex] === computed) {\n continue outer;\n }\n }\n if (iteratee) {\n seen.push(computed);\n }\n result.push(value);\n }\n else if (!includes(seen, computed, comparator)) {\n if (seen !== result) {\n seen.push(computed);\n }\n result.push(value);\n }\n }\n return result;\n }\n\n /**\n * The base implementation of `_.unset`.\n *\n * @private\n * @param {Object} object The object to modify.\n * @param {Array|string} path The property path to unset.\n * @returns {boolean} Returns `true` if the property is deleted, else `false`.\n */\n function baseUnset(object, path) {\n path = castPath(path, object);\n object = parent(object, path);\n return object == null || delete object[toKey(last(path))];\n }\n\n /**\n * The base implementation of `_.update`.\n *\n * @private\n * @param {Object} object The object to modify.\n * @param {Array|string} path The path of the property to update.\n * @param {Function} updater The function to produce the updated value.\n * @param {Function} [customizer] The function to customize path creation.\n * @returns {Object} Returns `object`.\n */\n function baseUpdate(object, path, updater, customizer) {\n return baseSet(object, path, updater(baseGet(object, path)), customizer);\n }\n\n /**\n * The base implementation of methods like `_.dropWhile` and `_.takeWhile`\n * without support for iteratee shorthands.\n *\n * @private\n * @param {Array} array The array to query.\n * @param {Function} predicate The function invoked per iteration.\n * @param {boolean} [isDrop] Specify dropping elements instead of taking them.\n * @param {boolean} [fromRight] Specify iterating from right to left.\n * @returns {Array} Returns the slice of `array`.\n */\n function baseWhile(array, predicate, isDrop, fromRight) {\n var length = array.length,\n index = fromRight ? length : -1;\n\n while ((fromRight ? index-- : ++index < length) &&\n predicate(array[index], index, array)) {}\n\n return isDrop\n ? baseSlice(array, (fromRight ? 0 : index), (fromRight ? index + 1 : length))\n : baseSlice(array, (fromRight ? index + 1 : 0), (fromRight ? length : index));\n }\n\n /**\n * The base implementation of `wrapperValue` which returns the result of\n * performing a sequence of actions on the unwrapped `value`, where each\n * successive action is supplied the return value of the previous.\n *\n * @private\n * @param {*} value The unwrapped value.\n * @param {Array} actions Actions to perform to resolve the unwrapped value.\n * @returns {*} Returns the resolved value.\n */\n function baseWrapperValue(value, actions) {\n var result = value;\n if (result instanceof LazyWrapper) {\n result = result.value();\n }\n return arrayReduce(actions, function(result, action) {\n return action.func.apply(action.thisArg, arrayPush([result], action.args));\n }, result);\n }\n\n /**\n * The base implementation of methods like `_.xor`, without support for\n * iteratee shorthands, that accepts an array of arrays to inspect.\n *\n * @private\n * @param {Array} arrays The arrays to inspect.\n * @param {Function} [iteratee] The iteratee invoked per element.\n * @param {Function} [comparator] The comparator invoked per element.\n * @returns {Array} Returns the new array of values.\n */\n function baseXor(arrays, iteratee, comparator) {\n var length = arrays.length;\n if (length < 2) {\n return length ? baseUniq(arrays[0]) : [];\n }\n var index = -1,\n result = Array(length);\n\n while (++index < length) {\n var array = arrays[index],\n othIndex = -1;\n\n while (++othIndex < length) {\n if (othIndex != index) {\n result[index] = baseDifference(result[index] || array, arrays[othIndex], iteratee, comparator);\n }\n }\n }\n return baseUniq(baseFlatten(result, 1), iteratee, comparator);\n }\n\n /**\n * This base implementation of `_.zipObject` which assigns values using `assignFunc`.\n *\n * @private\n * @param {Array} props The property identifiers.\n * @param {Array} values The property values.\n * @param {Function} assignFunc The function to assign values.\n * @returns {Object} Returns the new object.\n */\n function baseZipObject(props, values, assignFunc) {\n var index = -1,\n length = props.length,\n valsLength = values.length,\n result = {};\n\n while (++index < length) {\n var value = index < valsLength ? values[index] : undefined;\n assignFunc(result, props[index], value);\n }\n return result;\n }\n\n /**\n * Casts `value` to an empty array if it's not an array like object.\n *\n * @private\n * @param {*} value The value to inspect.\n * @returns {Array|Object} Returns the cast array-like object.\n */\n function castArrayLikeObject(value) {\n return isArrayLikeObject(value) ? value : [];\n }\n\n /**\n * Casts `value` to `identity` if it's not a function.\n *\n * @private\n * @param {*} value The value to inspect.\n * @returns {Function} Returns cast function.\n */\n function castFunction(value) {\n return typeof value == 'function' ? value : identity;\n }\n\n /**\n * Casts `value` to a path array if it's not one.\n *\n * @private\n * @param {*} value The value to inspect.\n * @param {Object} [object] The object to query keys on.\n * @returns {Array} Returns the cast property path array.\n */\n function castPath(value, object) {\n if (isArray(value)) {\n return value;\n }\n return isKey(value, object) ? [value] : stringToPath(toString(value));\n }\n\n /**\n * A `baseRest` alias which can be replaced with `identity` by module\n * replacement plugins.\n *\n * @private\n * @type {Function}\n * @param {Function} func The function to apply a rest parameter to.\n * @returns {Function} Returns the new function.\n */\n var castRest = baseRest;\n\n /**\n * Casts `array` to a slice if it's needed.\n *\n * @private\n * @param {Array} array The array to inspect.\n * @param {number} start The start position.\n * @param {number} [end=array.length] The end position.\n * @returns {Array} Returns the cast slice.\n */\n function castSlice(array, start, end) {\n var length = array.length;\n end = end === undefined ? length : end;\n return (!start && end >= length) ? array : baseSlice(array, start, end);\n }\n\n /**\n * A simple wrapper around the global [`clearTimeout`](https://mdn.io/clearTimeout).\n *\n * @private\n * @param {number|Object} id The timer id or timeout object of the timer to clear.\n */\n var clearTimeout = ctxClearTimeout || function(id) {\n return root.clearTimeout(id);\n };\n\n /**\n * Creates a clone of `buffer`.\n *\n * @private\n * @param {Buffer} buffer The buffer to clone.\n * @param {boolean} [isDeep] Specify a deep clone.\n * @returns {Buffer} Returns the cloned buffer.\n */\n function cloneBuffer(buffer, isDeep) {\n if (isDeep) {\n return buffer.slice();\n }\n var length = buffer.length,\n result = allocUnsafe ? allocUnsafe(length) : new buffer.constructor(length);\n\n buffer.copy(result);\n return result;\n }\n\n /**\n * Creates a clone of `arrayBuffer`.\n *\n * @private\n * @param {ArrayBuffer} arrayBuffer The array buffer to clone.\n * @returns {ArrayBuffer} Returns the cloned array buffer.\n */\n function cloneArrayBuffer(arrayBuffer) {\n var result = new arrayBuffer.constructor(arrayBuffer.byteLength);\n new Uint8Array(result).set(new Uint8Array(arrayBuffer));\n return result;\n }\n\n /**\n * Creates a clone of `dataView`.\n *\n * @private\n * @param {Object} dataView The data view to clone.\n * @param {boolean} [isDeep] Specify a deep clone.\n * @returns {Object} Returns the cloned data view.\n */\n function cloneDataView(dataView, isDeep) {\n var buffer = isDeep ? cloneArrayBuffer(dataView.buffer) : dataView.buffer;\n return new dataView.constructor(buffer, dataView.byteOffset, dataView.byteLength);\n }\n\n /**\n * Creates a clone of `regexp`.\n *\n * @private\n * @param {Object} regexp The regexp to clone.\n * @returns {Object} Returns the cloned regexp.\n */\n function cloneRegExp(regexp) {\n var result = new regexp.constructor(regexp.source, reFlags.exec(regexp));\n result.lastIndex = regexp.lastIndex;\n return result;\n }\n\n /**\n * Creates a clone of the `symbol` object.\n *\n * @private\n * @param {Object} symbol The symbol object to clone.\n * @returns {Object} Returns the cloned symbol object.\n */\n function cloneSymbol(symbol) {\n return symbolValueOf ? Object(symbolValueOf.call(symbol)) : {};\n }\n\n /**\n * Creates a clone of `typedArray`.\n *\n * @private\n * @param {Object} typedArray The typed array to clone.\n * @param {boolean} [isDeep] Specify a deep clone.\n * @returns {Object} Returns the cloned typed array.\n */\n function cloneTypedArray(typedArray, isDeep) {\n var buffer = isDeep ? cloneArrayBuffer(typedArray.buffer) : typedArray.buffer;\n return new typedArray.constructor(buffer, typedArray.byteOffset, typedArray.length);\n }\n\n /**\n * Compares values to sort them in ascending order.\n *\n * @private\n * @param {*} value The value to compare.\n * @param {*} other The other value to compare.\n * @returns {number} Returns the sort order indicator for `value`.\n */\n function compareAscending(value, other) {\n if (value !== other) {\n var valIsDefined = value !== undefined,\n valIsNull = value === null,\n valIsReflexive = value === value,\n valIsSymbol = isSymbol(value);\n\n var othIsDefined = other !== undefined,\n othIsNull = other === null,\n othIsReflexive = other === other,\n othIsSymbol = isSymbol(other);\n\n if ((!othIsNull && !othIsSymbol && !valIsSymbol && value > other) ||\n (valIsSymbol && othIsDefined && othIsReflexive && !othIsNull && !othIsSymbol) ||\n (valIsNull && othIsDefined && othIsReflexive) ||\n (!valIsDefined && othIsReflexive) ||\n !valIsReflexive) {\n return 1;\n }\n if ((!valIsNull && !valIsSymbol && !othIsSymbol && value < other) ||\n (othIsSymbol && valIsDefined && valIsReflexive && !valIsNull && !valIsSymbol) ||\n (othIsNull && valIsDefined && valIsReflexive) ||\n (!othIsDefined && valIsReflexive) ||\n !othIsReflexive) {\n return -1;\n }\n }\n return 0;\n }\n\n /**\n * Used by `_.orderBy` to compare multiple properties of a value to another\n * and stable sort them.\n *\n * If `orders` is unspecified, all values are sorted in ascending order. Otherwise,\n * specify an order of \"desc\" for descending or \"asc\" for ascending sort order\n * of corresponding values.\n *\n * @private\n * @param {Object} object The object to compare.\n * @param {Object} other The other object to compare.\n * @param {boolean[]|string[]} orders The order to sort by for each property.\n * @returns {number} Returns the sort order indicator for `object`.\n */\n function compareMultiple(object, other, orders) {\n var index = -1,\n objCriteria = object.criteria,\n othCriteria = other.criteria,\n length = objCriteria.length,\n ordersLength = orders.length;\n\n while (++index < length) {\n var result = compareAscending(objCriteria[index], othCriteria[index]);\n if (result) {\n if (index >= ordersLength) {\n return result;\n }\n var order = orders[index];\n return result * (order == 'desc' ? -1 : 1);\n }\n }\n // Fixes an `Array#sort` bug in the JS engine embedded in Adobe applications\n // that causes it, under certain circumstances, to provide the same value for\n // `object` and `other`. See https://github.com/jashkenas/underscore/pull/1247\n // for more details.\n //\n // This also ensures a stable sort in V8 and other engines.\n // See https://bugs.chromium.org/p/v8/issues/detail?id=90 for more details.\n return object.index - other.index;\n }\n\n /**\n * Creates an array that is the composition of partially applied arguments,\n * placeholders, and provided arguments into a single array of arguments.\n *\n * @private\n * @param {Array} args The provided arguments.\n * @param {Array} partials The arguments to prepend to those provided.\n * @param {Array} holders The `partials` placeholder indexes.\n * @params {boolean} [isCurried] Specify composing for a curried function.\n * @returns {Array} Returns the new array of composed arguments.\n */\n function composeArgs(args, partials, holders, isCurried) {\n var argsIndex = -1,\n argsLength = args.length,\n holdersLength = holders.length,\n leftIndex = -1,\n leftLength = partials.length,\n rangeLength = nativeMax(argsLength - holdersLength, 0),\n result = Array(leftLength + rangeLength),\n isUncurried = !isCurried;\n\n while (++leftIndex < leftLength) {\n result[leftIndex] = partials[leftIndex];\n }\n while (++argsIndex < holdersLength) {\n if (isUncurried || argsIndex < argsLength) {\n result[holders[argsIndex]] = args[argsIndex];\n }\n }\n while (rangeLength--) {\n result[leftIndex++] = args[argsIndex++];\n }\n return result;\n }\n\n /**\n * This function is like `composeArgs` except that the arguments composition\n * is tailored for `_.partialRight`.\n *\n * @private\n * @param {Array} args The provided arguments.\n * @param {Array} partials The arguments to append to those provided.\n * @param {Array} holders The `partials` placeholder indexes.\n * @params {boolean} [isCurried] Specify composing for a curried function.\n * @returns {Array} Returns the new array of composed arguments.\n */\n function composeArgsRight(args, partials, holders, isCurried) {\n var argsIndex = -1,\n argsLength = args.length,\n holdersIndex = -1,\n holdersLength = holders.length,\n rightIndex = -1,\n rightLength = partials.length,\n rangeLength = nativeMax(argsLength - holdersLength, 0),\n result = Array(rangeLength + rightLength),\n isUncurried = !isCurried;\n\n while (++argsIndex < rangeLength) {\n result[argsIndex] = args[argsIndex];\n }\n var offset = argsIndex;\n while (++rightIndex < rightLength) {\n result[offset + rightIndex] = partials[rightIndex];\n }\n while (++holdersIndex < holdersLength) {\n if (isUncurried || argsIndex < argsLength) {\n result[offset + holders[holdersIndex]] = args[argsIndex++];\n }\n }\n return result;\n }\n\n /**\n * Copies the values of `source` to `array`.\n *\n * @private\n * @param {Array} source The array to copy values from.\n * @param {Array} [array=[]] The array to copy values to.\n * @returns {Array} Returns `array`.\n */\n function copyArray(source, array) {\n var index = -1,\n length = source.length;\n\n array || (array = Array(length));\n while (++index < length) {\n array[index] = source[index];\n }\n return array;\n }\n\n /**\n * Copies properties of `source` to `object`.\n *\n * @private\n * @param {Object} source The object to copy properties from.\n * @param {Array} props The property identifiers to copy.\n * @param {Object} [object={}] The object to copy properties to.\n * @param {Function} [customizer] The function to customize copied values.\n * @returns {Object} Returns `object`.\n */\n function copyObject(source, props, object, customizer) {\n var isNew = !object;\n object || (object = {});\n\n var index = -1,\n length = props.length;\n\n while (++index < length) {\n var key = props[index];\n\n var newValue = customizer\n ? customizer(object[key], source[key], key, object, source)\n : undefined;\n\n if (newValue === undefined) {\n newValue = source[key];\n }\n if (isNew) {\n baseAssignValue(object, key, newValue);\n } else {\n assignValue(object, key, newValue);\n }\n }\n return object;\n }\n\n /**\n * Copies own symbols of `source` to `object`.\n *\n * @private\n * @param {Object} source The object to copy symbols from.\n * @param {Object} [object={}] The object to copy symbols to.\n * @returns {Object} Returns `object`.\n */\n function copySymbols(source, object) {\n return copyObject(source, getSymbols(source), object);\n }\n\n /**\n * Copies own and inherited symbols of `source` to `object`.\n *\n * @private\n * @param {Object} source The object to copy symbols from.\n * @param {Object} [object={}] The object to copy symbols to.\n * @returns {Object} Returns `object`.\n */\n function copySymbolsIn(source, object) {\n return copyObject(source, getSymbolsIn(source), object);\n }\n\n /**\n * Creates a function like `_.groupBy`.\n *\n * @private\n * @param {Function} setter The function to set accumulator values.\n * @param {Function} [initializer] The accumulator object initializer.\n * @returns {Function} Returns the new aggregator function.\n */\n function createAggregator(setter, initializer) {\n return function(collection, iteratee) {\n var func = isArray(collection) ? arrayAggregator : baseAggregator,\n accumulator = initializer ? initializer() : {};\n\n return func(collection, setter, getIteratee(iteratee, 2), accumulator);\n };\n }\n\n /**\n * Creates a function like `_.assign`.\n *\n * @private\n * @param {Function} assigner The function to assign values.\n * @returns {Function} Returns the new assigner function.\n */\n function createAssigner(assigner) {\n return baseRest(function(object, sources) {\n var index = -1,\n length = sources.length,\n customizer = length > 1 ? sources[length - 1] : undefined,\n guard = length > 2 ? sources[2] : undefined;\n\n customizer = (assigner.length > 3 && typeof customizer == 'function')\n ? (length--, customizer)\n : undefined;\n\n if (guard && isIterateeCall(sources[0], sources[1], guard)) {\n customizer = length < 3 ? undefined : customizer;\n length = 1;\n }\n object = Object(object);\n while (++index < length) {\n var source = sources[index];\n if (source) {\n assigner(object, source, index, customizer);\n }\n }\n return object;\n });\n }\n\n /**\n * Creates a `baseEach` or `baseEachRight` function.\n *\n * @private\n * @param {Function} eachFunc The function to iterate over a collection.\n * @param {boolean} [fromRight] Specify iterating from right to left.\n * @returns {Function} Returns the new base function.\n */\n function createBaseEach(eachFunc, fromRight) {\n return function(collection, iteratee) {\n if (collection == null) {\n return collection;\n }\n if (!isArrayLike(collection)) {\n return eachFunc(collection, iteratee);\n }\n var length = collection.length,\n index = fromRight ? length : -1,\n iterable = Object(collection);\n\n while ((fromRight ? index-- : ++index < length)) {\n if (iteratee(iterable[index], index, iterable) === false) {\n break;\n }\n }\n return collection;\n };\n }\n\n /**\n * Creates a base function for methods like `_.forIn` and `_.forOwn`.\n *\n * @private\n * @param {boolean} [fromRight] Specify iterating from right to left.\n * @returns {Function} Returns the new base function.\n */\n function createBaseFor(fromRight) {\n return function(object, iteratee, keysFunc) {\n var index = -1,\n iterable = Object(object),\n props = keysFunc(object),\n length = props.length;\n\n while (length--) {\n var key = props[fromRight ? length : ++index];\n if (iteratee(iterable[key], key, iterable) === false) {\n break;\n }\n }\n return object;\n };\n }\n\n /**\n * Creates a function that wraps `func` to invoke it with the optional `this`\n * binding of `thisArg`.\n *\n * @private\n * @param {Function} func The function to wrap.\n * @param {number} bitmask The bitmask flags. See `createWrap` for more details.\n * @param {*} [thisArg] The `this` binding of `func`.\n * @returns {Function} Returns the new wrapped function.\n */\n function createBind(func, bitmask, thisArg) {\n var isBind = bitmask & WRAP_BIND_FLAG,\n Ctor = createCtor(func);\n\n function wrapper() {\n var fn = (this && this !== root && this instanceof wrapper) ? Ctor : func;\n return fn.apply(isBind ? thisArg : this, arguments);\n }\n return wrapper;\n }\n\n /**\n * Creates a function like `_.lowerFirst`.\n *\n * @private\n * @param {string} methodName The name of the `String` case method to use.\n * @returns {Function} Returns the new case function.\n */\n function createCaseFirst(methodName) {\n return function(string) {\n string = toString(string);\n\n var strSymbols = hasUnicode(string)\n ? stringToArray(string)\n : undefined;\n\n var chr = strSymbols\n ? strSymbols[0]\n : string.charAt(0);\n\n var trailing = strSymbols\n ? castSlice(strSymbols, 1).join('')\n : string.slice(1);\n\n return chr[methodName]() + trailing;\n };\n }\n\n /**\n * Creates a function like `_.camelCase`.\n *\n * @private\n * @param {Function} callback The function to combine each word.\n * @returns {Function} Returns the new compounder function.\n */\n function createCompounder(callback) {\n return function(string) {\n return arrayReduce(words(deburr(string).replace(reApos, '')), callback, '');\n };\n }\n\n /**\n * Creates a function that produces an instance of `Ctor` regardless of\n * whether it was invoked as part of a `new` expression or by `call` or `apply`.\n *\n * @private\n * @param {Function} Ctor The constructor to wrap.\n * @returns {Function} Returns the new wrapped function.\n */\n function createCtor(Ctor) {\n return function() {\n // Use a `switch` statement to work with class constructors. See\n // http://ecma-international.org/ecma-262/7.0/#sec-ecmascript-function-objects-call-thisargument-argumentslist\n // for more details.\n var args = arguments;\n switch (args.length) {\n case 0: return new Ctor;\n case 1: return new Ctor(args[0]);\n case 2: return new Ctor(args[0], args[1]);\n case 3: return new Ctor(args[0], args[1], args[2]);\n case 4: return new Ctor(args[0], args[1], args[2], args[3]);\n case 5: return new Ctor(args[0], args[1], args[2], args[3], args[4]);\n case 6: return new Ctor(args[0], args[1], args[2], args[3], args[4], args[5]);\n case 7: return new Ctor(args[0], args[1], args[2], args[3], args[4], args[5], args[6]);\n }\n var thisBinding = baseCreate(Ctor.prototype),\n result = Ctor.apply(thisBinding, args);\n\n // Mimic the constructor's `return` behavior.\n // See https://es5.github.io/#x13.2.2 for more details.\n return isObject(result) ? result : thisBinding;\n };\n }\n\n /**\n * Creates a function that wraps `func` to enable currying.\n *\n * @private\n * @param {Function} func The function to wrap.\n * @param {number} bitmask The bitmask flags. See `createWrap` for more details.\n * @param {number} arity The arity of `func`.\n * @returns {Function} Returns the new wrapped function.\n */\n function createCurry(func, bitmask, arity) {\n var Ctor = createCtor(func);\n\n function wrapper() {\n var length = arguments.length,\n args = Array(length),\n index = length,\n placeholder = getHolder(wrapper);\n\n while (index--) {\n args[index] = arguments[index];\n }\n var holders = (length < 3 && args[0] !== placeholder && args[length - 1] !== placeholder)\n ? []\n : replaceHolders(args, placeholder);\n\n length -= holders.length;\n if (length < arity) {\n return createRecurry(\n func, bitmask, createHybrid, wrapper.placeholder, undefined,\n args, holders, undefined, undefined, arity - length);\n }\n var fn = (this && this !== root && this instanceof wrapper) ? Ctor : func;\n return apply(fn, this, args);\n }\n return wrapper;\n }\n\n /**\n * Creates a `_.find` or `_.findLast` function.\n *\n * @private\n * @param {Function} findIndexFunc The function to find the collection index.\n * @returns {Function} Returns the new find function.\n */\n function createFind(findIndexFunc) {\n return function(collection, predicate, fromIndex) {\n var iterable = Object(collection);\n if (!isArrayLike(collection)) {\n var iteratee = getIteratee(predicate, 3);\n collection = keys(collection);\n predicate = function(key) { return iteratee(iterable[key], key, iterable); };\n }\n var index = findIndexFunc(collection, predicate, fromIndex);\n return index > -1 ? iterable[iteratee ? collection[index] : index] : undefined;\n };\n }\n\n /**\n * Creates a `_.flow` or `_.flowRight` function.\n *\n * @private\n * @param {boolean} [fromRight] Specify iterating from right to left.\n * @returns {Function} Returns the new flow function.\n */\n function createFlow(fromRight) {\n return flatRest(function(funcs) {\n var length = funcs.length,\n index = length,\n prereq = LodashWrapper.prototype.thru;\n\n if (fromRight) {\n funcs.reverse();\n }\n while (index--) {\n var func = funcs[index];\n if (typeof func != 'function') {\n throw new TypeError(FUNC_ERROR_TEXT);\n }\n if (prereq && !wrapper && getFuncName(func) == 'wrapper') {\n var wrapper = new LodashWrapper([], true);\n }\n }\n index = wrapper ? index : length;\n while (++index < length) {\n func = funcs[index];\n\n var funcName = getFuncName(func),\n data = funcName == 'wrapper' ? getData(func) : undefined;\n\n if (data && isLaziable(data[0]) &&\n data[1] == (WRAP_ARY_FLAG | WRAP_CURRY_FLAG | WRAP_PARTIAL_FLAG | WRAP_REARG_FLAG) &&\n !data[4].length && data[9] == 1\n ) {\n wrapper = wrapper[getFuncName(data[0])].apply(wrapper, data[3]);\n } else {\n wrapper = (func.length == 1 && isLaziable(func))\n ? wrapper[funcName]()\n : wrapper.thru(func);\n }\n }\n return function() {\n var args = arguments,\n value = args[0];\n\n if (wrapper && args.length == 1 && isArray(value)) {\n return wrapper.plant(value).value();\n }\n var index = 0,\n result = length ? funcs[index].apply(this, args) : value;\n\n while (++index < length) {\n result = funcs[index].call(this, result);\n }\n return result;\n };\n });\n }\n\n /**\n * Creates a function that wraps `func` to invoke it with optional `this`\n * binding of `thisArg`, partial application, and currying.\n *\n * @private\n * @param {Function|string} func The function or method name to wrap.\n * @param {number} bitmask The bitmask flags. See `createWrap` for more details.\n * @param {*} [thisArg] The `this` binding of `func`.\n * @param {Array} [partials] The arguments to prepend to those provided to\n * the new function.\n * @param {Array} [holders] The `partials` placeholder indexes.\n * @param {Array} [partialsRight] The arguments to append to those provided\n * to the new function.\n * @param {Array} [holdersRight] The `partialsRight` placeholder indexes.\n * @param {Array} [argPos] The argument positions of the new function.\n * @param {number} [ary] The arity cap of `func`.\n * @param {number} [arity] The arity of `func`.\n * @returns {Function} Returns the new wrapped function.\n */\n function createHybrid(func, bitmask, thisArg, partials, holders, partialsRight, holdersRight, argPos, ary, arity) {\n var isAry = bitmask & WRAP_ARY_FLAG,\n isBind = bitmask & WRAP_BIND_FLAG,\n isBindKey = bitmask & WRAP_BIND_KEY_FLAG,\n isCurried = bitmask & (WRAP_CURRY_FLAG | WRAP_CURRY_RIGHT_FLAG),\n isFlip = bitmask & WRAP_FLIP_FLAG,\n Ctor = isBindKey ? undefined : createCtor(func);\n\n function wrapper() {\n var length = arguments.length,\n args = Array(length),\n index = length;\n\n while (index--) {\n args[index] = arguments[index];\n }\n if (isCurried) {\n var placeholder = getHolder(wrapper),\n holdersCount = countHolders(args, placeholder);\n }\n if (partials) {\n args = composeArgs(args, partials, holders, isCurried);\n }\n if (partialsRight) {\n args = composeArgsRight(args, partialsRight, holdersRight, isCurried);\n }\n length -= holdersCount;\n if (isCurried && length < arity) {\n var newHolders = replaceHolders(args, placeholder);\n return createRecurry(\n func, bitmask, createHybrid, wrapper.placeholder, thisArg,\n args, newHolders, argPos, ary, arity - length\n );\n }\n var thisBinding = isBind ? thisArg : this,\n fn = isBindKey ? thisBinding[func] : func;\n\n length = args.length;\n if (argPos) {\n args = reorder(args, argPos);\n } else if (isFlip && length > 1) {\n args.reverse();\n }\n if (isAry && ary < length) {\n args.length = ary;\n }\n if (this && this !== root && this instanceof wrapper) {\n fn = Ctor || createCtor(fn);\n }\n return fn.apply(thisBinding, args);\n }\n return wrapper;\n }\n\n /**\n * Creates a function like `_.invertBy`.\n *\n * @private\n * @param {Function} setter The function to set accumulator values.\n * @param {Function} toIteratee The function to resolve iteratees.\n * @returns {Function} Returns the new inverter function.\n */\n function createInverter(setter, toIteratee) {\n return function(object, iteratee) {\n return baseInverter(object, setter, toIteratee(iteratee), {});\n };\n }\n\n /**\n * Creates a function that performs a mathematical operation on two values.\n *\n * @private\n * @param {Function} operator The function to perform the operation.\n * @param {number} [defaultValue] The value used for `undefined` arguments.\n * @returns {Function} Returns the new mathematical operation function.\n */\n function createMathOperation(operator, defaultValue) {\n return function(value, other) {\n var result;\n if (value === undefined && other === undefined) {\n return defaultValue;\n }\n if (value !== undefined) {\n result = value;\n }\n if (other !== undefined) {\n if (result === undefined) {\n return other;\n }\n if (typeof value == 'string' || typeof other == 'string') {\n value = baseToString(value);\n other = baseToString(other);\n } else {\n value = baseToNumber(value);\n other = baseToNumber(other);\n }\n result = operator(value, other);\n }\n return result;\n };\n }\n\n /**\n * Creates a function like `_.over`.\n *\n * @private\n * @param {Function} arrayFunc The function to iterate over iteratees.\n * @returns {Function} Returns the new over function.\n */\n function createOver(arrayFunc) {\n return flatRest(function(iteratees) {\n iteratees = arrayMap(iteratees, baseUnary(getIteratee()));\n return baseRest(function(args) {\n var thisArg = this;\n return arrayFunc(iteratees, function(iteratee) {\n return apply(iteratee, thisArg, args);\n });\n });\n });\n }\n\n /**\n * Creates the padding for `string` based on `length`. The `chars` string\n * is truncated if the number of characters exceeds `length`.\n *\n * @private\n * @param {number} length The padding length.\n * @param {string} [chars=' '] The string used as padding.\n * @returns {string} Returns the padding for `string`.\n */\n function createPadding(length, chars) {\n chars = chars === undefined ? ' ' : baseToString(chars);\n\n var charsLength = chars.length;\n if (charsLength < 2) {\n return charsLength ? baseRepeat(chars, length) : chars;\n }\n var result = baseRepeat(chars, nativeCeil(length / stringSize(chars)));\n return hasUnicode(chars)\n ? castSlice(stringToArray(result), 0, length).join('')\n : result.slice(0, length);\n }\n\n /**\n * Creates a function that wraps `func` to invoke it with the `this` binding\n * of `thisArg` and `partials` prepended to the arguments it receives.\n *\n * @private\n * @param {Function} func The function to wrap.\n * @param {number} bitmask The bitmask flags. See `createWrap` for more details.\n * @param {*} thisArg The `this` binding of `func`.\n * @param {Array} partials The arguments to prepend to those provided to\n * the new function.\n * @returns {Function} Returns the new wrapped function.\n */\n function createPartial(func, bitmask, thisArg, partials) {\n var isBind = bitmask & WRAP_BIND_FLAG,\n Ctor = createCtor(func);\n\n function wrapper() {\n var argsIndex = -1,\n argsLength = arguments.length,\n leftIndex = -1,\n leftLength = partials.length,\n args = Array(leftLength + argsLength),\n fn = (this && this !== root && this instanceof wrapper) ? Ctor : func;\n\n while (++leftIndex < leftLength) {\n args[leftIndex] = partials[leftIndex];\n }\n while (argsLength--) {\n args[leftIndex++] = arguments[++argsIndex];\n }\n return apply(fn, isBind ? thisArg : this, args);\n }\n return wrapper;\n }\n\n /**\n * Creates a `_.range` or `_.rangeRight` function.\n *\n * @private\n * @param {boolean} [fromRight] Specify iterating from right to left.\n * @returns {Function} Returns the new range function.\n */\n function createRange(fromRight) {\n return function(start, end, step) {\n if (step && typeof step != 'number' && isIterateeCall(start, end, step)) {\n end = step = undefined;\n }\n // Ensure the sign of `-0` is preserved.\n start = toFinite(start);\n if (end === undefined) {\n end = start;\n start = 0;\n } else {\n end = toFinite(end);\n }\n step = step === undefined ? (start < end ? 1 : -1) : toFinite(step);\n return baseRange(start, end, step, fromRight);\n };\n }\n\n /**\n * Creates a function that performs a relational operation on two values.\n *\n * @private\n * @param {Function} operator The function to perform the operation.\n * @returns {Function} Returns the new relational operation function.\n */\n function createRelationalOperation(operator) {\n return function(value, other) {\n if (!(typeof value == 'string' && typeof other == 'string')) {\n value = toNumber(value);\n other = toNumber(other);\n }\n return operator(value, other);\n };\n }\n\n /**\n * Creates a function that wraps `func` to continue currying.\n *\n * @private\n * @param {Function} func The function to wrap.\n * @param {number} bitmask The bitmask flags. See `createWrap` for more details.\n * @param {Function} wrapFunc The function to create the `func` wrapper.\n * @param {*} placeholder The placeholder value.\n * @param {*} [thisArg] The `this` binding of `func`.\n * @param {Array} [partials] The arguments to prepend to those provided to\n * the new function.\n * @param {Array} [holders] The `partials` placeholder indexes.\n * @param {Array} [argPos] The argument positions of the new function.\n * @param {number} [ary] The arity cap of `func`.\n * @param {number} [arity] The arity of `func`.\n * @returns {Function} Returns the new wrapped function.\n */\n function createRecurry(func, bitmask, wrapFunc, placeholder, thisArg, partials, holders, argPos, ary, arity) {\n var isCurry = bitmask & WRAP_CURRY_FLAG,\n newHolders = isCurry ? holders : undefined,\n newHoldersRight = isCurry ? undefined : holders,\n newPartials = isCurry ? partials : undefined,\n newPartialsRight = isCurry ? undefined : partials;\n\n bitmask |= (isCurry ? WRAP_PARTIAL_FLAG : WRAP_PARTIAL_RIGHT_FLAG);\n bitmask &= ~(isCurry ? WRAP_PARTIAL_RIGHT_FLAG : WRAP_PARTIAL_FLAG);\n\n if (!(bitmask & WRAP_CURRY_BOUND_FLAG)) {\n bitmask &= ~(WRAP_BIND_FLAG | WRAP_BIND_KEY_FLAG);\n }\n var newData = [\n func, bitmask, thisArg, newPartials, newHolders, newPartialsRight,\n newHoldersRight, argPos, ary, arity\n ];\n\n var result = wrapFunc.apply(undefined, newData);\n if (isLaziable(func)) {\n setData(result, newData);\n }\n result.placeholder = placeholder;\n return setWrapToString(result, func, bitmask);\n }\n\n /**\n * Creates a function like `_.round`.\n *\n * @private\n * @param {string} methodName The name of the `Math` method to use when rounding.\n * @returns {Function} Returns the new round function.\n */\n function createRound(methodName) {\n var func = Math[methodName];\n return function(number, precision) {\n number = toNumber(number);\n precision = precision == null ? 0 : nativeMin(toInteger(precision), 292);\n if (precision) {\n // Shift with exponential notation to avoid floating-point issues.\n // See [MDN](https://mdn.io/round#Examples) for more details.\n var pair = (toString(number) + 'e').split('e'),\n value = func(pair[0] + 'e' + (+pair[1] + precision));\n\n pair = (toString(value) + 'e').split('e');\n return +(pair[0] + 'e' + (+pair[1] - precision));\n }\n return func(number);\n };\n }\n\n /**\n * Creates a set object of `values`.\n *\n * @private\n * @param {Array} values The values to add to the set.\n * @returns {Object} Returns the new set.\n */\n var createSet = !(Set && (1 / setToArray(new Set([,-0]))[1]) == INFINITY) ? noop : function(values) {\n return new Set(values);\n };\n\n /**\n * Creates a `_.toPairs` or `_.toPairsIn` function.\n *\n * @private\n * @param {Function} keysFunc The function to get the keys of a given object.\n * @returns {Function} Returns the new pairs function.\n */\n function createToPairs(keysFunc) {\n return function(object) {\n var tag = getTag(object);\n if (tag == mapTag) {\n return mapToArray(object);\n }\n if (tag == setTag) {\n return setToPairs(object);\n }\n return baseToPairs(object, keysFunc(object));\n };\n }\n\n /**\n * Creates a function that either curries or invokes `func` with optional\n * `this` binding and partially applied arguments.\n *\n * @private\n * @param {Function|string} func The function or method name to wrap.\n * @param {number} bitmask The bitmask flags.\n * 1 - `_.bind`\n * 2 - `_.bindKey`\n * 4 - `_.curry` or `_.curryRight` of a bound function\n * 8 - `_.curry`\n * 16 - `_.curryRight`\n * 32 - `_.partial`\n * 64 - `_.partialRight`\n * 128 - `_.rearg`\n * 256 - `_.ary`\n * 512 - `_.flip`\n * @param {*} [thisArg] The `this` binding of `func`.\n * @param {Array} [partials] The arguments to be partially applied.\n * @param {Array} [holders] The `partials` placeholder indexes.\n * @param {Array} [argPos] The argument positions of the new function.\n * @param {number} [ary] The arity cap of `func`.\n * @param {number} [arity] The arity of `func`.\n * @returns {Function} Returns the new wrapped function.\n */\n function createWrap(func, bitmask, thisArg, partials, holders, argPos, ary, arity) {\n var isBindKey = bitmask & WRAP_BIND_KEY_FLAG;\n if (!isBindKey && typeof func != 'function') {\n throw new TypeError(FUNC_ERROR_TEXT);\n }\n var length = partials ? partials.length : 0;\n if (!length) {\n bitmask &= ~(WRAP_PARTIAL_FLAG | WRAP_PARTIAL_RIGHT_FLAG);\n partials = holders = undefined;\n }\n ary = ary === undefined ? ary : nativeMax(toInteger(ary), 0);\n arity = arity === undefined ? arity : toInteger(arity);\n length -= holders ? holders.length : 0;\n\n if (bitmask & WRAP_PARTIAL_RIGHT_FLAG) {\n var partialsRight = partials,\n holdersRight = holders;\n\n partials = holders = undefined;\n }\n var data = isBindKey ? undefined : getData(func);\n\n var newData = [\n func, bitmask, thisArg, partials, holders, partialsRight, holdersRight,\n argPos, ary, arity\n ];\n\n if (data) {\n mergeData(newData, data);\n }\n func = newData[0];\n bitmask = newData[1];\n thisArg = newData[2];\n partials = newData[3];\n holders = newData[4];\n arity = newData[9] = newData[9] === undefined\n ? (isBindKey ? 0 : func.length)\n : nativeMax(newData[9] - length, 0);\n\n if (!arity && bitmask & (WRAP_CURRY_FLAG | WRAP_CURRY_RIGHT_FLAG)) {\n bitmask &= ~(WRAP_CURRY_FLAG | WRAP_CURRY_RIGHT_FLAG);\n }\n if (!bitmask || bitmask == WRAP_BIND_FLAG) {\n var result = createBind(func, bitmask, thisArg);\n } else if (bitmask == WRAP_CURRY_FLAG || bitmask == WRAP_CURRY_RIGHT_FLAG) {\n result = createCurry(func, bitmask, arity);\n } else if ((bitmask == WRAP_PARTIAL_FLAG || bitmask == (WRAP_BIND_FLAG | WRAP_PARTIAL_FLAG)) && !holders.length) {\n result = createPartial(func, bitmask, thisArg, partials);\n } else {\n result = createHybrid.apply(undefined, newData);\n }\n var setter = data ? baseSetData : setData;\n return setWrapToString(setter(result, newData), func, bitmask);\n }\n\n /**\n * Used by `_.defaults` to customize its `_.assignIn` use to assign properties\n * of source objects to the destination object for all destination properties\n * that resolve to `undefined`.\n *\n * @private\n * @param {*} objValue The destination value.\n * @param {*} srcValue The source value.\n * @param {string} key The key of the property to assign.\n * @param {Object} object The parent object of `objValue`.\n * @returns {*} Returns the value to assign.\n */\n function customDefaultsAssignIn(objValue, srcValue, key, object) {\n if (objValue === undefined ||\n (eq(objValue, objectProto[key]) && !hasOwnProperty.call(object, key))) {\n return srcValue;\n }\n return objValue;\n }\n\n /**\n * Used by `_.defaultsDeep` to customize its `_.merge` use to merge source\n * objects into destination objects that are passed thru.\n *\n * @private\n * @param {*} objValue The destination value.\n * @param {*} srcValue The source value.\n * @param {string} key The key of the property to merge.\n * @param {Object} object The parent object of `objValue`.\n * @param {Object} source The parent object of `srcValue`.\n * @param {Object} [stack] Tracks traversed source values and their merged\n * counterparts.\n * @returns {*} Returns the value to assign.\n */\n function customDefaultsMerge(objValue, srcValue, key, object, source, stack) {\n if (isObject(objValue) && isObject(srcValue)) {\n // Recursively merge objects and arrays (susceptible to call stack limits).\n stack.set(srcValue, objValue);\n baseMerge(objValue, srcValue, undefined, customDefaultsMerge, stack);\n stack['delete'](srcValue);\n }\n return objValue;\n }\n\n /**\n * Used by `_.omit` to customize its `_.cloneDeep` use to only clone plain\n * objects.\n *\n * @private\n * @param {*} value The value to inspect.\n * @param {string} key The key of the property to inspect.\n * @returns {*} Returns the uncloned value or `undefined` to defer cloning to `_.cloneDeep`.\n */\n function customOmitClone(value) {\n return isPlainObject(value) ? undefined : value;\n }\n\n /**\n * A specialized version of `baseIsEqualDeep` for arrays with support for\n * partial deep comparisons.\n *\n * @private\n * @param {Array} array The array to compare.\n * @param {Array} other The other array to compare.\n * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.\n * @param {Function} customizer The function to customize comparisons.\n * @param {Function} equalFunc The function to determine equivalents of values.\n * @param {Object} stack Tracks traversed `array` and `other` objects.\n * @returns {boolean} Returns `true` if the arrays are equivalent, else `false`.\n */\n function equalArrays(array, other, bitmask, customizer, equalFunc, stack) {\n var isPartial = bitmask & COMPARE_PARTIAL_FLAG,\n arrLength = array.length,\n othLength = other.length;\n\n if (arrLength != othLength && !(isPartial && othLength > arrLength)) {\n return false;\n }\n // Assume cyclic values are equal.\n var stacked = stack.get(array);\n if (stacked && stack.get(other)) {\n return stacked == other;\n }\n var index = -1,\n result = true,\n seen = (bitmask & COMPARE_UNORDERED_FLAG) ? new SetCache : undefined;\n\n stack.set(array, other);\n stack.set(other, array);\n\n // Ignore non-index properties.\n while (++index < arrLength) {\n var arrValue = array[index],\n othValue = other[index];\n\n if (customizer) {\n var compared = isPartial\n ? customizer(othValue, arrValue, index, other, array, stack)\n : customizer(arrValue, othValue, index, array, other, stack);\n }\n if (compared !== undefined) {\n if (compared) {\n continue;\n }\n result = false;\n break;\n }\n // Recursively compare arrays (susceptible to call stack limits).\n if (seen) {\n if (!arraySome(other, function(othValue, othIndex) {\n if (!cacheHas(seen, othIndex) &&\n (arrValue === othValue || equalFunc(arrValue, othValue, bitmask, customizer, stack))) {\n return seen.push(othIndex);\n }\n })) {\n result = false;\n break;\n }\n } else if (!(\n arrValue === othValue ||\n equalFunc(arrValue, othValue, bitmask, customizer, stack)\n )) {\n result = false;\n break;\n }\n }\n stack['delete'](array);\n stack['delete'](other);\n return result;\n }\n\n /**\n * A specialized version of `baseIsEqualDeep` for comparing objects of\n * the same `toStringTag`.\n *\n * **Note:** This function only supports comparing values with tags of\n * `Boolean`, `Date`, `Error`, `Number`, `RegExp`, or `String`.\n *\n * @private\n * @param {Object} object The object to compare.\n * @param {Object} other The other object to compare.\n * @param {string} tag The `toStringTag` of the objects to compare.\n * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.\n * @param {Function} customizer The function to customize comparisons.\n * @param {Function} equalFunc The function to determine equivalents of values.\n * @param {Object} stack Tracks traversed `object` and `other` objects.\n * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.\n */\n function equalByTag(object, other, tag, bitmask, customizer, equalFunc, stack) {\n switch (tag) {\n case dataViewTag:\n if ((object.byteLength != other.byteLength) ||\n (object.byteOffset != other.byteOffset)) {\n return false;\n }\n object = object.buffer;\n other = other.buffer;\n\n case arrayBufferTag:\n if ((object.byteLength != other.byteLength) ||\n !equalFunc(new Uint8Array(object), new Uint8Array(other))) {\n return false;\n }\n return true;\n\n case boolTag:\n case dateTag:\n case numberTag:\n // Coerce booleans to `1` or `0` and dates to milliseconds.\n // Invalid dates are coerced to `NaN`.\n return eq(+object, +other);\n\n case errorTag:\n return object.name == other.name && object.message == other.message;\n\n case regexpTag:\n case stringTag:\n // Coerce regexes to strings and treat strings, primitives and objects,\n // as equal. See http://www.ecma-international.org/ecma-262/7.0/#sec-regexp.prototype.tostring\n // for more details.\n return object == (other + '');\n\n case mapTag:\n var convert = mapToArray;\n\n case setTag:\n var isPartial = bitmask & COMPARE_PARTIAL_FLAG;\n convert || (convert = setToArray);\n\n if (object.size != other.size && !isPartial) {\n return false;\n }\n // Assume cyclic values are equal.\n var stacked = stack.get(object);\n if (stacked) {\n return stacked == other;\n }\n bitmask |= COMPARE_UNORDERED_FLAG;\n\n // Recursively compare objects (susceptible to call stack limits).\n stack.set(object, other);\n var result = equalArrays(convert(object), convert(other), bitmask, customizer, equalFunc, stack);\n stack['delete'](object);\n return result;\n\n case symbolTag:\n if (symbolValueOf) {\n return symbolValueOf.call(object) == symbolValueOf.call(other);\n }\n }\n return false;\n }\n\n /**\n * A specialized version of `baseIsEqualDeep` for objects with support for\n * partial deep comparisons.\n *\n * @private\n * @param {Object} object The object to compare.\n * @param {Object} other The other object to compare.\n * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.\n * @param {Function} customizer The function to customize comparisons.\n * @param {Function} equalFunc The function to determine equivalents of values.\n * @param {Object} stack Tracks traversed `object` and `other` objects.\n * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.\n */\n function equalObjects(object, other, bitmask, customizer, equalFunc, stack) {\n var isPartial = bitmask & COMPARE_PARTIAL_FLAG,\n objProps = getAllKeys(object),\n objLength = objProps.length,\n othProps = getAllKeys(other),\n othLength = othProps.length;\n\n if (objLength != othLength && !isPartial) {\n return false;\n }\n var index = objLength;\n while (index--) {\n var key = objProps[index];\n if (!(isPartial ? key in other : hasOwnProperty.call(other, key))) {\n return false;\n }\n }\n // Assume cyclic values are equal.\n var stacked = stack.get(object);\n if (stacked && stack.get(other)) {\n return stacked == other;\n }\n var result = true;\n stack.set(object, other);\n stack.set(other, object);\n\n var skipCtor = isPartial;\n while (++index < objLength) {\n key = objProps[index];\n var objValue = object[key],\n othValue = other[key];\n\n if (customizer) {\n var compared = isPartial\n ? customizer(othValue, objValue, key, other, object, stack)\n : customizer(objValue, othValue, key, object, other, stack);\n }\n // Recursively compare objects (susceptible to call stack limits).\n if (!(compared === undefined\n ? (objValue === othValue || equalFunc(objValue, othValue, bitmask, customizer, stack))\n : compared\n )) {\n result = false;\n break;\n }\n skipCtor || (skipCtor = key == 'constructor');\n }\n if (result && !skipCtor) {\n var objCtor = object.constructor,\n othCtor = other.constructor;\n\n // Non `Object` object instances with different constructors are not equal.\n if (objCtor != othCtor &&\n ('constructor' in object && 'constructor' in other) &&\n !(typeof objCtor == 'function' && objCtor instanceof objCtor &&\n typeof othCtor == 'function' && othCtor instanceof othCtor)) {\n result = false;\n }\n }\n stack['delete'](object);\n stack['delete'](other);\n return result;\n }\n\n /**\n * A specialized version of `baseRest` which flattens the rest array.\n *\n * @private\n * @param {Function} func The function to apply a rest parameter to.\n * @returns {Function} Returns the new function.\n */\n function flatRest(func) {\n return setToString(overRest(func, undefined, flatten), func + '');\n }\n\n /**\n * Creates an array of own enumerable property names and symbols of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property names and symbols.\n */\n function getAllKeys(object) {\n return baseGetAllKeys(object, keys, getSymbols);\n }\n\n /**\n * Creates an array of own and inherited enumerable property names and\n * symbols of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property names and symbols.\n */\n function getAllKeysIn(object) {\n return baseGetAllKeys(object, keysIn, getSymbolsIn);\n }\n\n /**\n * Gets metadata for `func`.\n *\n * @private\n * @param {Function} func The function to query.\n * @returns {*} Returns the metadata for `func`.\n */\n var getData = !metaMap ? noop : function(func) {\n return metaMap.get(func);\n };\n\n /**\n * Gets the name of `func`.\n *\n * @private\n * @param {Function} func The function to query.\n * @returns {string} Returns the function name.\n */\n function getFuncName(func) {\n var result = (func.name + ''),\n array = realNames[result],\n length = hasOwnProperty.call(realNames, result) ? array.length : 0;\n\n while (length--) {\n var data = array[length],\n otherFunc = data.func;\n if (otherFunc == null || otherFunc == func) {\n return data.name;\n }\n }\n return result;\n }\n\n /**\n * Gets the argument placeholder value for `func`.\n *\n * @private\n * @param {Function} func The function to inspect.\n * @returns {*} Returns the placeholder value.\n */\n function getHolder(func) {\n var object = hasOwnProperty.call(lodash, 'placeholder') ? lodash : func;\n return object.placeholder;\n }\n\n /**\n * Gets the appropriate \"iteratee\" function. If `_.iteratee` is customized,\n * this function returns the custom method, otherwise it returns `baseIteratee`.\n * If arguments are provided, the chosen function is invoked with them and\n * its result is returned.\n *\n * @private\n * @param {*} [value] The value to convert to an iteratee.\n * @param {number} [arity] The arity of the created iteratee.\n * @returns {Function} Returns the chosen function or its result.\n */\n function getIteratee() {\n var result = lodash.iteratee || iteratee;\n result = result === iteratee ? baseIteratee : result;\n return arguments.length ? result(arguments[0], arguments[1]) : result;\n }\n\n /**\n * Gets the data for `map`.\n *\n * @private\n * @param {Object} map The map to query.\n * @param {string} key The reference key.\n * @returns {*} Returns the map data.\n */\n function getMapData(map, key) {\n var data = map.__data__;\n return isKeyable(key)\n ? data[typeof key == 'string' ? 'string' : 'hash']\n : data.map;\n }\n\n /**\n * Gets the property names, values, and compare flags of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the match data of `object`.\n */\n function getMatchData(object) {\n var result = keys(object),\n length = result.length;\n\n while (length--) {\n var key = result[length],\n value = object[key];\n\n result[length] = [key, value, isStrictComparable(value)];\n }\n return result;\n }\n\n /**\n * Gets the native function at `key` of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @param {string} key The key of the method to get.\n * @returns {*} Returns the function if it's native, else `undefined`.\n */\n function getNative(object, key) {\n var value = getValue(object, key);\n return baseIsNative(value) ? value : undefined;\n }\n\n /**\n * A specialized version of `baseGetTag` which ignores `Symbol.toStringTag` values.\n *\n * @private\n * @param {*} value The value to query.\n * @returns {string} Returns the raw `toStringTag`.\n */\n function getRawTag(value) {\n var isOwn = hasOwnProperty.call(value, symToStringTag),\n tag = value[symToStringTag];\n\n try {\n value[symToStringTag] = undefined;\n var unmasked = true;\n } catch (e) {}\n\n var result = nativeObjectToString.call(value);\n if (unmasked) {\n if (isOwn) {\n value[symToStringTag] = tag;\n } else {\n delete value[symToStringTag];\n }\n }\n return result;\n }\n\n /**\n * Creates an array of the own enumerable symbols of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of symbols.\n */\n var getSymbols = !nativeGetSymbols ? stubArray : function(object) {\n if (object == null) {\n return [];\n }\n object = Object(object);\n return arrayFilter(nativeGetSymbols(object), function(symbol) {\n return propertyIsEnumerable.call(object, symbol);\n });\n };\n\n /**\n * Creates an array of the own and inherited enumerable symbols of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of symbols.\n */\n var getSymbolsIn = !nativeGetSymbols ? stubArray : function(object) {\n var result = [];\n while (object) {\n arrayPush(result, getSymbols(object));\n object = getPrototype(object);\n }\n return result;\n };\n\n /**\n * Gets the `toStringTag` of `value`.\n *\n * @private\n * @param {*} value The value to query.\n * @returns {string} Returns the `toStringTag`.\n */\n var getTag = baseGetTag;\n\n // Fallback for data views, maps, sets, and weak maps in IE 11 and promises in Node.js < 6.\n if ((DataView && getTag(new DataView(new ArrayBuffer(1))) != dataViewTag) ||\n (Map && getTag(new Map) != mapTag) ||\n (Promise && getTag(Promise.resolve()) != promiseTag) ||\n (Set && getTag(new Set) != setTag) ||\n (WeakMap && getTag(new WeakMap) != weakMapTag)) {\n getTag = function(value) {\n var result = baseGetTag(value),\n Ctor = result == objectTag ? value.constructor : undefined,\n ctorString = Ctor ? toSource(Ctor) : '';\n\n if (ctorString) {\n switch (ctorString) {\n case dataViewCtorString: return dataViewTag;\n case mapCtorString: return mapTag;\n case promiseCtorString: return promiseTag;\n case setCtorString: return setTag;\n case weakMapCtorString: return weakMapTag;\n }\n }\n return result;\n };\n }\n\n /**\n * Gets the view, applying any `transforms` to the `start` and `end` positions.\n *\n * @private\n * @param {number} start The start of the view.\n * @param {number} end The end of the view.\n * @param {Array} transforms The transformations to apply to the view.\n * @returns {Object} Returns an object containing the `start` and `end`\n * positions of the view.\n */\n function getView(start, end, transforms) {\n var index = -1,\n length = transforms.length;\n\n while (++index < length) {\n var data = transforms[index],\n size = data.size;\n\n switch (data.type) {\n case 'drop': start += size; break;\n case 'dropRight': end -= size; break;\n case 'take': end = nativeMin(end, start + size); break;\n case 'takeRight': start = nativeMax(start, end - size); break;\n }\n }\n return { 'start': start, 'end': end };\n }\n\n /**\n * Extracts wrapper details from the `source` body comment.\n *\n * @private\n * @param {string} source The source to inspect.\n * @returns {Array} Returns the wrapper details.\n */\n function getWrapDetails(source) {\n var match = source.match(reWrapDetails);\n return match ? match[1].split(reSplitDetails) : [];\n }\n\n /**\n * Checks if `path` exists on `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @param {Array|string} path The path to check.\n * @param {Function} hasFunc The function to check properties.\n * @returns {boolean} Returns `true` if `path` exists, else `false`.\n */\n function hasPath(object, path, hasFunc) {\n path = castPath(path, object);\n\n var index = -1,\n length = path.length,\n result = false;\n\n while (++index < length) {\n var key = toKey(path[index]);\n if (!(result = object != null && hasFunc(object, key))) {\n break;\n }\n object = object[key];\n }\n if (result || ++index != length) {\n return result;\n }\n length = object == null ? 0 : object.length;\n return !!length && isLength(length) && isIndex(key, length) &&\n (isArray(object) || isArguments(object));\n }\n\n /**\n * Initializes an array clone.\n *\n * @private\n * @param {Array} array The array to clone.\n * @returns {Array} Returns the initialized clone.\n */\n function initCloneArray(array) {\n var length = array.length,\n result = new array.constructor(length);\n\n // Add properties assigned by `RegExp#exec`.\n if (length && typeof array[0] == 'string' && hasOwnProperty.call(array, 'index')) {\n result.index = array.index;\n result.input = array.input;\n }\n return result;\n }\n\n /**\n * Initializes an object clone.\n *\n * @private\n * @param {Object} object The object to clone.\n * @returns {Object} Returns the initialized clone.\n */\n function initCloneObject(object) {\n return (typeof object.constructor == 'function' && !isPrototype(object))\n ? baseCreate(getPrototype(object))\n : {};\n }\n\n /**\n * Initializes an object clone based on its `toStringTag`.\n *\n * **Note:** This function only supports cloning values with tags of\n * `Boolean`, `Date`, `Error`, `Map`, `Number`, `RegExp`, `Set`, or `String`.\n *\n * @private\n * @param {Object} object The object to clone.\n * @param {string} tag The `toStringTag` of the object to clone.\n * @param {boolean} [isDeep] Specify a deep clone.\n * @returns {Object} Returns the initialized clone.\n */\n function initCloneByTag(object, tag, isDeep) {\n var Ctor = object.constructor;\n switch (tag) {\n case arrayBufferTag:\n return cloneArrayBuffer(object);\n\n case boolTag:\n case dateTag:\n return new Ctor(+object);\n\n case dataViewTag:\n return cloneDataView(object, isDeep);\n\n case float32Tag: case float64Tag:\n case int8Tag: case int16Tag: case int32Tag:\n case uint8Tag: case uint8ClampedTag: case uint16Tag: case uint32Tag:\n return cloneTypedArray(object, isDeep);\n\n case mapTag:\n return new Ctor;\n\n case numberTag:\n case stringTag:\n return new Ctor(object);\n\n case regexpTag:\n return cloneRegExp(object);\n\n case setTag:\n return new Ctor;\n\n case symbolTag:\n return cloneSymbol(object);\n }\n }\n\n /**\n * Inserts wrapper `details` in a comment at the top of the `source` body.\n *\n * @private\n * @param {string} source The source to modify.\n * @returns {Array} details The details to insert.\n * @returns {string} Returns the modified source.\n */\n function insertWrapDetails(source, details) {\n var length = details.length;\n if (!length) {\n return source;\n }\n var lastIndex = length - 1;\n details[lastIndex] = (length > 1 ? '& ' : '') + details[lastIndex];\n details = details.join(length > 2 ? ', ' : ' ');\n return source.replace(reWrapComment, '{\\n/* [wrapped with ' + details + '] */\\n');\n }\n\n /**\n * Checks if `value` is a flattenable `arguments` object or array.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is flattenable, else `false`.\n */\n function isFlattenable(value) {\n return isArray(value) || isArguments(value) ||\n !!(spreadableSymbol && value && value[spreadableSymbol]);\n }\n\n /**\n * Checks if `value` is a valid array-like index.\n *\n * @private\n * @param {*} value The value to check.\n * @param {number} [length=MAX_SAFE_INTEGER] The upper bounds of a valid index.\n * @returns {boolean} Returns `true` if `value` is a valid index, else `false`.\n */\n function isIndex(value, length) {\n var type = typeof value;\n length = length == null ? MAX_SAFE_INTEGER : length;\n\n return !!length &&\n (type == 'number' ||\n (type != 'symbol' && reIsUint.test(value))) &&\n (value > -1 && value % 1 == 0 && value < length);\n }\n\n /**\n * Checks if the given arguments are from an iteratee call.\n *\n * @private\n * @param {*} value The potential iteratee value argument.\n * @param {*} index The potential iteratee index or key argument.\n * @param {*} object The potential iteratee object argument.\n * @returns {boolean} Returns `true` if the arguments are from an iteratee call,\n * else `false`.\n */\n function isIterateeCall(value, index, object) {\n if (!isObject(object)) {\n return false;\n }\n var type = typeof index;\n if (type == 'number'\n ? (isArrayLike(object) && isIndex(index, object.length))\n : (type == 'string' && index in object)\n ) {\n return eq(object[index], value);\n }\n return false;\n }\n\n /**\n * Checks if `value` is a property name and not a property path.\n *\n * @private\n * @param {*} value The value to check.\n * @param {Object} [object] The object to query keys on.\n * @returns {boolean} Returns `true` if `value` is a property name, else `false`.\n */\n function isKey(value, object) {\n if (isArray(value)) {\n return false;\n }\n var type = typeof value;\n if (type == 'number' || type == 'symbol' || type == 'boolean' ||\n value == null || isSymbol(value)) {\n return true;\n }\n return reIsPlainProp.test(value) || !reIsDeepProp.test(value) ||\n (object != null && value in Object(object));\n }\n\n /**\n * Checks if `value` is suitable for use as unique object key.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is suitable, else `false`.\n */\n function isKeyable(value) {\n var type = typeof value;\n return (type == 'string' || type == 'number' || type == 'symbol' || type == 'boolean')\n ? (value !== '__proto__')\n : (value === null);\n }\n\n /**\n * Checks if `func` has a lazy counterpart.\n *\n * @private\n * @param {Function} func The function to check.\n * @returns {boolean} Returns `true` if `func` has a lazy counterpart,\n * else `false`.\n */\n function isLaziable(func) {\n var funcName = getFuncName(func),\n other = lodash[funcName];\n\n if (typeof other != 'function' || !(funcName in LazyWrapper.prototype)) {\n return false;\n }\n if (func === other) {\n return true;\n }\n var data = getData(other);\n return !!data && func === data[0];\n }\n\n /**\n * Checks if `func` has its source masked.\n *\n * @private\n * @param {Function} func The function to check.\n * @returns {boolean} Returns `true` if `func` is masked, else `false`.\n */\n function isMasked(func) {\n return !!maskSrcKey && (maskSrcKey in func);\n }\n\n /**\n * Checks if `func` is capable of being masked.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `func` is maskable, else `false`.\n */\n var isMaskable = coreJsData ? isFunction : stubFalse;\n\n /**\n * Checks if `value` is likely a prototype object.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a prototype, else `false`.\n */\n function isPrototype(value) {\n var Ctor = value && value.constructor,\n proto = (typeof Ctor == 'function' && Ctor.prototype) || objectProto;\n\n return value === proto;\n }\n\n /**\n * Checks if `value` is suitable for strict equality comparisons, i.e. `===`.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` if suitable for strict\n * equality comparisons, else `false`.\n */\n function isStrictComparable(value) {\n return value === value && !isObject(value);\n }\n\n /**\n * A specialized version of `matchesProperty` for source values suitable\n * for strict equality comparisons, i.e. `===`.\n *\n * @private\n * @param {string} key The key of the property to get.\n * @param {*} srcValue The value to match.\n * @returns {Function} Returns the new spec function.\n */\n function matchesStrictComparable(key, srcValue) {\n return function(object) {\n if (object == null) {\n return false;\n }\n return object[key] === srcValue &&\n (srcValue !== undefined || (key in Object(object)));\n };\n }\n\n /**\n * A specialized version of `_.memoize` which clears the memoized function's\n * cache when it exceeds `MAX_MEMOIZE_SIZE`.\n *\n * @private\n * @param {Function} func The function to have its output memoized.\n * @returns {Function} Returns the new memoized function.\n */\n function memoizeCapped(func) {\n var result = memoize(func, function(key) {\n if (cache.size === MAX_MEMOIZE_SIZE) {\n cache.clear();\n }\n return key;\n });\n\n var cache = result.cache;\n return result;\n }\n\n /**\n * Merges the function metadata of `source` into `data`.\n *\n * Merging metadata reduces the number of wrappers used to invoke a function.\n * This is possible because methods like `_.bind`, `_.curry`, and `_.partial`\n * may be applied regardless of execution order. Methods like `_.ary` and\n * `_.rearg` modify function arguments, making the order in which they are\n * executed important, preventing the merging of metadata. However, we make\n * an exception for a safe combined case where curried functions have `_.ary`\n * and or `_.rearg` applied.\n *\n * @private\n * @param {Array} data The destination metadata.\n * @param {Array} source The source metadata.\n * @returns {Array} Returns `data`.\n */\n function mergeData(data, source) {\n var bitmask = data[1],\n srcBitmask = source[1],\n newBitmask = bitmask | srcBitmask,\n isCommon = newBitmask < (WRAP_BIND_FLAG | WRAP_BIND_KEY_FLAG | WRAP_ARY_FLAG);\n\n var isCombo =\n ((srcBitmask == WRAP_ARY_FLAG) && (bitmask == WRAP_CURRY_FLAG)) ||\n ((srcBitmask == WRAP_ARY_FLAG) && (bitmask == WRAP_REARG_FLAG) && (data[7].length <= source[8])) ||\n ((srcBitmask == (WRAP_ARY_FLAG | WRAP_REARG_FLAG)) && (source[7].length <= source[8]) && (bitmask == WRAP_CURRY_FLAG));\n\n // Exit early if metadata can't be merged.\n if (!(isCommon || isCombo)) {\n return data;\n }\n // Use source `thisArg` if available.\n if (srcBitmask & WRAP_BIND_FLAG) {\n data[2] = source[2];\n // Set when currying a bound function.\n newBitmask |= bitmask & WRAP_BIND_FLAG ? 0 : WRAP_CURRY_BOUND_FLAG;\n }\n // Compose partial arguments.\n var value = source[3];\n if (value) {\n var partials = data[3];\n data[3] = partials ? composeArgs(partials, value, source[4]) : value;\n data[4] = partials ? replaceHolders(data[3], PLACEHOLDER) : source[4];\n }\n // Compose partial right arguments.\n value = source[5];\n if (value) {\n partials = data[5];\n data[5] = partials ? composeArgsRight(partials, value, source[6]) : value;\n data[6] = partials ? replaceHolders(data[5], PLACEHOLDER) : source[6];\n }\n // Use source `argPos` if available.\n value = source[7];\n if (value) {\n data[7] = value;\n }\n // Use source `ary` if it's smaller.\n if (srcBitmask & WRAP_ARY_FLAG) {\n data[8] = data[8] == null ? source[8] : nativeMin(data[8], source[8]);\n }\n // Use source `arity` if one is not provided.\n if (data[9] == null) {\n data[9] = source[9];\n }\n // Use source `func` and merge bitmasks.\n data[0] = source[0];\n data[1] = newBitmask;\n\n return data;\n }\n\n /**\n * This function is like\n * [`Object.keys`](http://ecma-international.org/ecma-262/7.0/#sec-object.keys)\n * except that it includes inherited enumerable properties.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property names.\n */\n function nativeKeysIn(object) {\n var result = [];\n if (object != null) {\n for (var key in Object(object)) {\n result.push(key);\n }\n }\n return result;\n }\n\n /**\n * Converts `value` to a string using `Object.prototype.toString`.\n *\n * @private\n * @param {*} value The value to convert.\n * @returns {string} Returns the converted string.\n */\n function objectToString(value) {\n return nativeObjectToString.call(value);\n }\n\n /**\n * A specialized version of `baseRest` which transforms the rest array.\n *\n * @private\n * @param {Function} func The function to apply a rest parameter to.\n * @param {number} [start=func.length-1] The start position of the rest parameter.\n * @param {Function} transform The rest array transform.\n * @returns {Function} Returns the new function.\n */\n function overRest(func, start, transform) {\n start = nativeMax(start === undefined ? (func.length - 1) : start, 0);\n return function() {\n var args = arguments,\n index = -1,\n length = nativeMax(args.length - start, 0),\n array = Array(length);\n\n while (++index < length) {\n array[index] = args[start + index];\n }\n index = -1;\n var otherArgs = Array(start + 1);\n while (++index < start) {\n otherArgs[index] = args[index];\n }\n otherArgs[start] = transform(array);\n return apply(func, this, otherArgs);\n };\n }\n\n /**\n * Gets the parent value at `path` of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @param {Array} path The path to get the parent value of.\n * @returns {*} Returns the parent value.\n */\n function parent(object, path) {\n return path.length < 2 ? object : baseGet(object, baseSlice(path, 0, -1));\n }\n\n /**\n * Reorder `array` according to the specified indexes where the element at\n * the first index is assigned as the first element, the element at\n * the second index is assigned as the second element, and so on.\n *\n * @private\n * @param {Array} array The array to reorder.\n * @param {Array} indexes The arranged array indexes.\n * @returns {Array} Returns `array`.\n */\n function reorder(array, indexes) {\n var arrLength = array.length,\n length = nativeMin(indexes.length, arrLength),\n oldArray = copyArray(array);\n\n while (length--) {\n var index = indexes[length];\n array[length] = isIndex(index, arrLength) ? oldArray[index] : undefined;\n }\n return array;\n }\n\n /**\n * Gets the value at `key`, unless `key` is \"__proto__\".\n *\n * @private\n * @param {Object} object The object to query.\n * @param {string} key The key of the property to get.\n * @returns {*} Returns the property value.\n */\n function safeGet(object, key) {\n if (key == '__proto__') {\n return;\n }\n\n return object[key];\n }\n\n /**\n * Sets metadata for `func`.\n *\n * **Note:** If this function becomes hot, i.e. is invoked a lot in a short\n * period of time, it will trip its breaker and transition to an identity\n * function to avoid garbage collection pauses in V8. See\n * [V8 issue 2070](https://bugs.chromium.org/p/v8/issues/detail?id=2070)\n * for more details.\n *\n * @private\n * @param {Function} func The function to associate metadata with.\n * @param {*} data The metadata.\n * @returns {Function} Returns `func`.\n */\n var setData = shortOut(baseSetData);\n\n /**\n * A simple wrapper around the global [`setTimeout`](https://mdn.io/setTimeout).\n *\n * @private\n * @param {Function} func The function to delay.\n * @param {number} wait The number of milliseconds to delay invocation.\n * @returns {number|Object} Returns the timer id or timeout object.\n */\n var setTimeout = ctxSetTimeout || function(func, wait) {\n return root.setTimeout(func, wait);\n };\n\n /**\n * Sets the `toString` method of `func` to return `string`.\n *\n * @private\n * @param {Function} func The function to modify.\n * @param {Function} string The `toString` result.\n * @returns {Function} Returns `func`.\n */\n var setToString = shortOut(baseSetToString);\n\n /**\n * Sets the `toString` method of `wrapper` to mimic the source of `reference`\n * with wrapper details in a comment at the top of the source body.\n *\n * @private\n * @param {Function} wrapper The function to modify.\n * @param {Function} reference The reference function.\n * @param {number} bitmask The bitmask flags. See `createWrap` for more details.\n * @returns {Function} Returns `wrapper`.\n */\n function setWrapToString(wrapper, reference, bitmask) {\n var source = (reference + '');\n return setToString(wrapper, insertWrapDetails(source, updateWrapDetails(getWrapDetails(source), bitmask)));\n }\n\n /**\n * Creates a function that'll short out and invoke `identity` instead\n * of `func` when it's called `HOT_COUNT` or more times in `HOT_SPAN`\n * milliseconds.\n *\n * @private\n * @param {Function} func The function to restrict.\n * @returns {Function} Returns the new shortable function.\n */\n function shortOut(func) {\n var count = 0,\n lastCalled = 0;\n\n return function() {\n var stamp = nativeNow(),\n remaining = HOT_SPAN - (stamp - lastCalled);\n\n lastCalled = stamp;\n if (remaining > 0) {\n if (++count >= HOT_COUNT) {\n return arguments[0];\n }\n } else {\n count = 0;\n }\n return func.apply(undefined, arguments);\n };\n }\n\n /**\n * A specialized version of `_.shuffle` which mutates and sets the size of `array`.\n *\n * @private\n * @param {Array} array The array to shuffle.\n * @param {number} [size=array.length] The size of `array`.\n * @returns {Array} Returns `array`.\n */\n function shuffleSelf(array, size) {\n var index = -1,\n length = array.length,\n lastIndex = length - 1;\n\n size = size === undefined ? length : size;\n while (++index < size) {\n var rand = baseRandom(index, lastIndex),\n value = array[rand];\n\n array[rand] = array[index];\n array[index] = value;\n }\n array.length = size;\n return array;\n }\n\n /**\n * Converts `string` to a property path array.\n *\n * @private\n * @param {string} string The string to convert.\n * @returns {Array} Returns the property path array.\n */\n var stringToPath = memoizeCapped(function(string) {\n var result = [];\n if (string.charCodeAt(0) === 46 /* . */) {\n result.push('');\n }\n string.replace(rePropName, function(match, number, quote, subString) {\n result.push(quote ? subString.replace(reEscapeChar, '$1') : (number || match));\n });\n return result;\n });\n\n /**\n * Converts `value` to a string key if it's not a string or symbol.\n *\n * @private\n * @param {*} value The value to inspect.\n * @returns {string|symbol} Returns the key.\n */\n function toKey(value) {\n if (typeof value == 'string' || isSymbol(value)) {\n return value;\n }\n var result = (value + '');\n return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result;\n }\n\n /**\n * Converts `func` to its source code.\n *\n * @private\n * @param {Function} func The function to convert.\n * @returns {string} Returns the source code.\n */\n function toSource(func) {\n if (func != null) {\n try {\n return funcToString.call(func);\n } catch (e) {}\n try {\n return (func + '');\n } catch (e) {}\n }\n return '';\n }\n\n /**\n * Updates wrapper `details` based on `bitmask` flags.\n *\n * @private\n * @returns {Array} details The details to modify.\n * @param {number} bitmask The bitmask flags. See `createWrap` for more details.\n * @returns {Array} Returns `details`.\n */\n function updateWrapDetails(details, bitmask) {\n arrayEach(wrapFlags, function(pair) {\n var value = '_.' + pair[0];\n if ((bitmask & pair[1]) && !arrayIncludes(details, value)) {\n details.push(value);\n }\n });\n return details.sort();\n }\n\n /**\n * Creates a clone of `wrapper`.\n *\n * @private\n * @param {Object} wrapper The wrapper to clone.\n * @returns {Object} Returns the cloned wrapper.\n */\n function wrapperClone(wrapper) {\n if (wrapper instanceof LazyWrapper) {\n return wrapper.clone();\n }\n var result = new LodashWrapper(wrapper.__wrapped__, wrapper.__chain__);\n result.__actions__ = copyArray(wrapper.__actions__);\n result.__index__ = wrapper.__index__;\n result.__values__ = wrapper.__values__;\n return result;\n }\n\n /*------------------------------------------------------------------------*/\n\n /**\n * Creates an array of elements split into groups the length of `size`.\n * If `array` can't be split evenly, the final chunk will be the remaining\n * elements.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Array\n * @param {Array} array The array to process.\n * @param {number} [size=1] The length of each chunk\n * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.\n * @returns {Array} Returns the new array of chunks.\n * @example\n *\n * _.chunk(['a', 'b', 'c', 'd'], 2);\n * // => [['a', 'b'], ['c', 'd']]\n *\n * _.chunk(['a', 'b', 'c', 'd'], 3);\n * // => [['a', 'b', 'c'], ['d']]\n */\n function chunk(array, size, guard) {\n if ((guard ? isIterateeCall(array, size, guard) : size === undefined)) {\n size = 1;\n } else {\n size = nativeMax(toInteger(size), 0);\n }\n var length = array == null ? 0 : array.length;\n if (!length || size < 1) {\n return [];\n }\n var index = 0,\n resIndex = 0,\n result = Array(nativeCeil(length / size));\n\n while (index < length) {\n result[resIndex++] = baseSlice(array, index, (index += size));\n }\n return result;\n }\n\n /**\n * Creates an array with all falsey values removed. The values `false`, `null`,\n * `0`, `\"\"`, `undefined`, and `NaN` are falsey.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Array\n * @param {Array} array The array to compact.\n * @returns {Array} Returns the new array of filtered values.\n * @example\n *\n * _.compact([0, 1, false, 2, '', 3]);\n * // => [1, 2, 3]\n */\n function compact(array) {\n var index = -1,\n length = array == null ? 0 : array.length,\n resIndex = 0,\n result = [];\n\n while (++index < length) {\n var value = array[index];\n if (value) {\n result[resIndex++] = value;\n }\n }\n return result;\n }\n\n /**\n * Creates a new array concatenating `array` with any additional arrays\n * and/or values.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Array\n * @param {Array} array The array to concatenate.\n * @param {...*} [values] The values to concatenate.\n * @returns {Array} Returns the new concatenated array.\n * @example\n *\n * var array = [1];\n * var other = _.concat(array, 2, [3], [[4]]);\n *\n * console.log(other);\n * // => [1, 2, 3, [4]]\n *\n * console.log(array);\n * // => [1]\n */\n function concat() {\n var length = arguments.length;\n if (!length) {\n return [];\n }\n var args = Array(length - 1),\n array = arguments[0],\n index = length;\n\n while (index--) {\n args[index - 1] = arguments[index];\n }\n return arrayPush(isArray(array) ? copyArray(array) : [array], baseFlatten(args, 1));\n }\n\n /**\n * Creates an array of `array` values not included in the other given arrays\n * using [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)\n * for equality comparisons. The order and references of result values are\n * determined by the first array.\n *\n * **Note:** Unlike `_.pullAll`, this method returns a new array.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Array\n * @param {Array} array The array to inspect.\n * @param {...Array} [values] The values to exclude.\n * @returns {Array} Returns the new array of filtered values.\n * @see _.without, _.xor\n * @example\n *\n * _.difference([2, 1], [2, 3]);\n * // => [1]\n */\n var difference = baseRest(function(array, values) {\n return isArrayLikeObject(array)\n ? baseDifference(array, baseFlatten(values, 1, isArrayLikeObject, true))\n : [];\n });\n\n /**\n * This method is like `_.difference` except that it accepts `iteratee` which\n * is invoked for each element of `array` and `values` to generate the criterion\n * by which they're compared. The order and references of result values are\n * determined by the first array. The iteratee is invoked with one argument:\n * (value).\n *\n * **Note:** Unlike `_.pullAllBy`, this method returns a new array.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Array\n * @param {Array} array The array to inspect.\n * @param {...Array} [values] The values to exclude.\n * @param {Function} [iteratee=_.identity] The iteratee invoked per element.\n * @returns {Array} Returns the new array of filtered values.\n * @example\n *\n * _.differenceBy([2.1, 1.2], [2.3, 3.4], Math.floor);\n * // => [1.2]\n *\n * // The `_.property` iteratee shorthand.\n * _.differenceBy([{ 'x': 2 }, { 'x': 1 }], [{ 'x': 1 }], 'x');\n * // => [{ 'x': 2 }]\n */\n var differenceBy = baseRest(function(array, values) {\n var iteratee = last(values);\n if (isArrayLikeObject(iteratee)) {\n iteratee = undefined;\n }\n return isArrayLikeObject(array)\n ? baseDifference(array, baseFlatten(values, 1, isArrayLikeObject, true), getIteratee(iteratee, 2))\n : [];\n });\n\n /**\n * This method is like `_.difference` except that it accepts `comparator`\n * which is invoked to compare elements of `array` to `values`. The order and\n * references of result values are determined by the first array. The comparator\n * is invoked with two arguments: (arrVal, othVal).\n *\n * **Note:** Unlike `_.pullAllWith`, this method returns a new array.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Array\n * @param {Array} array The array to inspect.\n * @param {...Array} [values] The values to exclude.\n * @param {Function} [comparator] The comparator invoked per element.\n * @returns {Array} Returns the new array of filtered values.\n * @example\n *\n * var objects = [{ 'x': 1, 'y': 2 }, { 'x': 2, 'y': 1 }];\n *\n * _.differenceWith(objects, [{ 'x': 1, 'y': 2 }], _.isEqual);\n * // => [{ 'x': 2, 'y': 1 }]\n */\n var differenceWith = baseRest(function(array, values) {\n var comparator = last(values);\n if (isArrayLikeObject(comparator)) {\n comparator = undefined;\n }\n return isArrayLikeObject(array)\n ? baseDifference(array, baseFlatten(values, 1, isArrayLikeObject, true), undefined, comparator)\n : [];\n });\n\n /**\n * Creates a slice of `array` with `n` elements dropped from the beginning.\n *\n * @static\n * @memberOf _\n * @since 0.5.0\n * @category Array\n * @param {Array} array The array to query.\n * @param {number} [n=1] The number of elements to drop.\n * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.\n * @returns {Array} Returns the slice of `array`.\n * @example\n *\n * _.drop([1, 2, 3]);\n * // => [2, 3]\n *\n * _.drop([1, 2, 3], 2);\n * // => [3]\n *\n * _.drop([1, 2, 3], 5);\n * // => []\n *\n * _.drop([1, 2, 3], 0);\n * // => [1, 2, 3]\n */\n function drop(array, n, guard) {\n var length = array == null ? 0 : array.length;\n if (!length) {\n return [];\n }\n n = (guard || n === undefined) ? 1 : toInteger(n);\n return baseSlice(array, n < 0 ? 0 : n, length);\n }\n\n /**\n * Creates a slice of `array` with `n` elements dropped from the end.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Array\n * @param {Array} array The array to query.\n * @param {number} [n=1] The number of elements to drop.\n * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.\n * @returns {Array} Returns the slice of `array`.\n * @example\n *\n * _.dropRight([1, 2, 3]);\n * // => [1, 2]\n *\n * _.dropRight([1, 2, 3], 2);\n * // => [1]\n *\n * _.dropRight([1, 2, 3], 5);\n * // => []\n *\n * _.dropRight([1, 2, 3], 0);\n * // => [1, 2, 3]\n */\n function dropRight(array, n, guard) {\n var length = array == null ? 0 : array.length;\n if (!length) {\n return [];\n }\n n = (guard || n === undefined) ? 1 : toInteger(n);\n n = length - n;\n return baseSlice(array, 0, n < 0 ? 0 : n);\n }\n\n /**\n * Creates a slice of `array` excluding elements dropped from the end.\n * Elements are dropped until `predicate` returns falsey. The predicate is\n * invoked with three arguments: (value, index, array).\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Array\n * @param {Array} array The array to query.\n * @param {Function} [predicate=_.identity] The function invoked per iteration.\n * @returns {Array} Returns the slice of `array`.\n * @example\n *\n * var users = [\n * { 'user': 'barney', 'active': true },\n * { 'user': 'fred', 'active': false },\n * { 'user': 'pebbles', 'active': false }\n * ];\n *\n * _.dropRightWhile(users, function(o) { return !o.active; });\n * // => objects for ['barney']\n *\n * // The `_.matches` iteratee shorthand.\n * _.dropRightWhile(users, { 'user': 'pebbles', 'active': false });\n * // => objects for ['barney', 'fred']\n *\n * // The `_.matchesProperty` iteratee shorthand.\n * _.dropRightWhile(users, ['active', false]);\n * // => objects for ['barney']\n *\n * // The `_.property` iteratee shorthand.\n * _.dropRightWhile(users, 'active');\n * // => objects for ['barney', 'fred', 'pebbles']\n */\n function dropRightWhile(array, predicate) {\n return (array && array.length)\n ? baseWhile(array, getIteratee(predicate, 3), true, true)\n : [];\n }\n\n /**\n * Creates a slice of `array` excluding elements dropped from the beginning.\n * Elements are dropped until `predicate` returns falsey. The predicate is\n * invoked with three arguments: (value, index, array).\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Array\n * @param {Array} array The array to query.\n * @param {Function} [predicate=_.identity] The function invoked per iteration.\n * @returns {Array} Returns the slice of `array`.\n * @example\n *\n * var users = [\n * { 'user': 'barney', 'active': false },\n * { 'user': 'fred', 'active': false },\n * { 'user': 'pebbles', 'active': true }\n * ];\n *\n * _.dropWhile(users, function(o) { return !o.active; });\n * // => objects for ['pebbles']\n *\n * // The `_.matches` iteratee shorthand.\n * _.dropWhile(users, { 'user': 'barney', 'active': false });\n * // => objects for ['fred', 'pebbles']\n *\n * // The `_.matchesProperty` iteratee shorthand.\n * _.dropWhile(users, ['active', false]);\n * // => objects for ['pebbles']\n *\n * // The `_.property` iteratee shorthand.\n * _.dropWhile(users, 'active');\n * // => objects for ['barney', 'fred', 'pebbles']\n */\n function dropWhile(array, predicate) {\n return (array && array.length)\n ? baseWhile(array, getIteratee(predicate, 3), true)\n : [];\n }\n\n /**\n * Fills elements of `array` with `value` from `start` up to, but not\n * including, `end`.\n *\n * **Note:** This method mutates `array`.\n *\n * @static\n * @memberOf _\n * @since 3.2.0\n * @category Array\n * @param {Array} array The array to fill.\n * @param {*} value The value to fill `array` with.\n * @param {number} [start=0] The start position.\n * @param {number} [end=array.length] The end position.\n * @returns {Array} Returns `array`.\n * @example\n *\n * var array = [1, 2, 3];\n *\n * _.fill(array, 'a');\n * console.log(array);\n * // => ['a', 'a', 'a']\n *\n * _.fill(Array(3), 2);\n * // => [2, 2, 2]\n *\n * _.fill([4, 6, 8, 10], '*', 1, 3);\n * // => [4, '*', '*', 10]\n */\n function fill(array, value, start, end) {\n var length = array == null ? 0 : array.length;\n if (!length) {\n return [];\n }\n if (start && typeof start != 'number' && isIterateeCall(array, value, start)) {\n start = 0;\n end = length;\n }\n return baseFill(array, value, start, end);\n }\n\n /**\n * This method is like `_.find` except that it returns the index of the first\n * element `predicate` returns truthy for instead of the element itself.\n *\n * @static\n * @memberOf _\n * @since 1.1.0\n * @category Array\n * @param {Array} array The array to inspect.\n * @param {Function} [predicate=_.identity] The function invoked per iteration.\n * @param {number} [fromIndex=0] The index to search from.\n * @returns {number} Returns the index of the found element, else `-1`.\n * @example\n *\n * var users = [\n * { 'user': 'barney', 'active': false },\n * { 'user': 'fred', 'active': false },\n * { 'user': 'pebbles', 'active': true }\n * ];\n *\n * _.findIndex(users, function(o) { return o.user == 'barney'; });\n * // => 0\n *\n * // The `_.matches` iteratee shorthand.\n * _.findIndex(users, { 'user': 'fred', 'active': false });\n * // => 1\n *\n * // The `_.matchesProperty` iteratee shorthand.\n * _.findIndex(users, ['active', false]);\n * // => 0\n *\n * // The `_.property` iteratee shorthand.\n * _.findIndex(users, 'active');\n * // => 2\n */\n function findIndex(array, predicate, fromIndex) {\n var length = array == null ? 0 : array.length;\n if (!length) {\n return -1;\n }\n var index = fromIndex == null ? 0 : toInteger(fromIndex);\n if (index < 0) {\n index = nativeMax(length + index, 0);\n }\n return baseFindIndex(array, getIteratee(predicate, 3), index);\n }\n\n /**\n * This method is like `_.findIndex` except that it iterates over elements\n * of `collection` from right to left.\n *\n * @static\n * @memberOf _\n * @since 2.0.0\n * @category Array\n * @param {Array} array The array to inspect.\n * @param {Function} [predicate=_.identity] The function invoked per iteration.\n * @param {number} [fromIndex=array.length-1] The index to search from.\n * @returns {number} Returns the index of the found element, else `-1`.\n * @example\n *\n * var users = [\n * { 'user': 'barney', 'active': true },\n * { 'user': 'fred', 'active': false },\n * { 'user': 'pebbles', 'active': false }\n * ];\n *\n * _.findLastIndex(users, function(o) { return o.user == 'pebbles'; });\n * // => 2\n *\n * // The `_.matches` iteratee shorthand.\n * _.findLastIndex(users, { 'user': 'barney', 'active': true });\n * // => 0\n *\n * // The `_.matchesProperty` iteratee shorthand.\n * _.findLastIndex(users, ['active', false]);\n * // => 2\n *\n * // The `_.property` iteratee shorthand.\n * _.findLastIndex(users, 'active');\n * // => 0\n */\n function findLastIndex(array, predicate, fromIndex) {\n var length = array == null ? 0 : array.length;\n if (!length) {\n return -1;\n }\n var index = length - 1;\n if (fromIndex !== undefined) {\n index = toInteger(fromIndex);\n index = fromIndex < 0\n ? nativeMax(length + index, 0)\n : nativeMin(index, length - 1);\n }\n return baseFindIndex(array, getIteratee(predicate, 3), index, true);\n }\n\n /**\n * Flattens `array` a single level deep.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Array\n * @param {Array} array The array to flatten.\n * @returns {Array} Returns the new flattened array.\n * @example\n *\n * _.flatten([1, [2, [3, [4]], 5]]);\n * // => [1, 2, [3, [4]], 5]\n */\n function flatten(array) {\n var length = array == null ? 0 : array.length;\n return length ? baseFlatten(array, 1) : [];\n }\n\n /**\n * Recursively flattens `array`.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Array\n * @param {Array} array The array to flatten.\n * @returns {Array} Returns the new flattened array.\n * @example\n *\n * _.flattenDeep([1, [2, [3, [4]], 5]]);\n * // => [1, 2, 3, 4, 5]\n */\n function flattenDeep(array) {\n var length = array == null ? 0 : array.length;\n return length ? baseFlatten(array, INFINITY) : [];\n }\n\n /**\n * Recursively flatten `array` up to `depth` times.\n *\n * @static\n * @memberOf _\n * @since 4.4.0\n * @category Array\n * @param {Array} array The array to flatten.\n * @param {number} [depth=1] The maximum recursion depth.\n * @returns {Array} Returns the new flattened array.\n * @example\n *\n * var array = [1, [2, [3, [4]], 5]];\n *\n * _.flattenDepth(array, 1);\n * // => [1, 2, [3, [4]], 5]\n *\n * _.flattenDepth(array, 2);\n * // => [1, 2, 3, [4], 5]\n */\n function flattenDepth(array, depth) {\n var length = array == null ? 0 : array.length;\n if (!length) {\n return [];\n }\n depth = depth === undefined ? 1 : toInteger(depth);\n return baseFlatten(array, depth);\n }\n\n /**\n * The inverse of `_.toPairs`; this method returns an object composed\n * from key-value `pairs`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Array\n * @param {Array} pairs The key-value pairs.\n * @returns {Object} Returns the new object.\n * @example\n *\n * _.fromPairs([['a', 1], ['b', 2]]);\n * // => { 'a': 1, 'b': 2 }\n */\n function fromPairs(pairs) {\n var index = -1,\n length = pairs == null ? 0 : pairs.length,\n result = {};\n\n while (++index < length) {\n var pair = pairs[index];\n result[pair[0]] = pair[1];\n }\n return result;\n }\n\n /**\n * Gets the first element of `array`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @alias first\n * @category Array\n * @param {Array} array The array to query.\n * @returns {*} Returns the first element of `array`.\n * @example\n *\n * _.head([1, 2, 3]);\n * // => 1\n *\n * _.head([]);\n * // => undefined\n */\n function head(array) {\n return (array && array.length) ? array[0] : undefined;\n }\n\n /**\n * Gets the index at which the first occurrence of `value` is found in `array`\n * using [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)\n * for equality comparisons. If `fromIndex` is negative, it's used as the\n * offset from the end of `array`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Array\n * @param {Array} array The array to inspect.\n * @param {*} value The value to search for.\n * @param {number} [fromIndex=0] The index to search from.\n * @returns {number} Returns the index of the matched value, else `-1`.\n * @example\n *\n * _.indexOf([1, 2, 1, 2], 2);\n * // => 1\n *\n * // Search from the `fromIndex`.\n * _.indexOf([1, 2, 1, 2], 2, 2);\n * // => 3\n */\n function indexOf(array, value, fromIndex) {\n var length = array == null ? 0 : array.length;\n if (!length) {\n return -1;\n }\n var index = fromIndex == null ? 0 : toInteger(fromIndex);\n if (index < 0) {\n index = nativeMax(length + index, 0);\n }\n return baseIndexOf(array, value, index);\n }\n\n /**\n * Gets all but the last element of `array`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Array\n * @param {Array} array The array to query.\n * @returns {Array} Returns the slice of `array`.\n * @example\n *\n * _.initial([1, 2, 3]);\n * // => [1, 2]\n */\n function initial(array) {\n var length = array == null ? 0 : array.length;\n return length ? baseSlice(array, 0, -1) : [];\n }\n\n /**\n * Creates an array of unique values that are included in all given arrays\n * using [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)\n * for equality comparisons. The order and references of result values are\n * determined by the first array.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Array\n * @param {...Array} [arrays] The arrays to inspect.\n * @returns {Array} Returns the new array of intersecting values.\n * @example\n *\n * _.intersection([2, 1], [2, 3]);\n * // => [2]\n */\n var intersection = baseRest(function(arrays) {\n var mapped = arrayMap(arrays, castArrayLikeObject);\n return (mapped.length && mapped[0] === arrays[0])\n ? baseIntersection(mapped)\n : [];\n });\n\n /**\n * This method is like `_.intersection` except that it accepts `iteratee`\n * which is invoked for each element of each `arrays` to generate the criterion\n * by which they're compared. The order and references of result values are\n * determined by the first array. The iteratee is invoked with one argument:\n * (value).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Array\n * @param {...Array} [arrays] The arrays to inspect.\n * @param {Function} [iteratee=_.identity] The iteratee invoked per element.\n * @returns {Array} Returns the new array of intersecting values.\n * @example\n *\n * _.intersectionBy([2.1, 1.2], [2.3, 3.4], Math.floor);\n * // => [2.1]\n *\n * // The `_.property` iteratee shorthand.\n * _.intersectionBy([{ 'x': 1 }], [{ 'x': 2 }, { 'x': 1 }], 'x');\n * // => [{ 'x': 1 }]\n */\n var intersectionBy = baseRest(function(arrays) {\n var iteratee = last(arrays),\n mapped = arrayMap(arrays, castArrayLikeObject);\n\n if (iteratee === last(mapped)) {\n iteratee = undefined;\n } else {\n mapped.pop();\n }\n return (mapped.length && mapped[0] === arrays[0])\n ? baseIntersection(mapped, getIteratee(iteratee, 2))\n : [];\n });\n\n /**\n * This method is like `_.intersection` except that it accepts `comparator`\n * which is invoked to compare elements of `arrays`. The order and references\n * of result values are determined by the first array. The comparator is\n * invoked with two arguments: (arrVal, othVal).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Array\n * @param {...Array} [arrays] The arrays to inspect.\n * @param {Function} [comparator] The comparator invoked per element.\n * @returns {Array} Returns the new array of intersecting values.\n * @example\n *\n * var objects = [{ 'x': 1, 'y': 2 }, { 'x': 2, 'y': 1 }];\n * var others = [{ 'x': 1, 'y': 1 }, { 'x': 1, 'y': 2 }];\n *\n * _.intersectionWith(objects, others, _.isEqual);\n * // => [{ 'x': 1, 'y': 2 }]\n */\n var intersectionWith = baseRest(function(arrays) {\n var comparator = last(arrays),\n mapped = arrayMap(arrays, castArrayLikeObject);\n\n comparator = typeof comparator == 'function' ? comparator : undefined;\n if (comparator) {\n mapped.pop();\n }\n return (mapped.length && mapped[0] === arrays[0])\n ? baseIntersection(mapped, undefined, comparator)\n : [];\n });\n\n /**\n * Converts all elements in `array` into a string separated by `separator`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Array\n * @param {Array} array The array to convert.\n * @param {string} [separator=','] The element separator.\n * @returns {string} Returns the joined string.\n * @example\n *\n * _.join(['a', 'b', 'c'], '~');\n * // => 'a~b~c'\n */\n function join(array, separator) {\n return array == null ? '' : nativeJoin.call(array, separator);\n }\n\n /**\n * Gets the last element of `array`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Array\n * @param {Array} array The array to query.\n * @returns {*} Returns the last element of `array`.\n * @example\n *\n * _.last([1, 2, 3]);\n * // => 3\n */\n function last(array) {\n var length = array == null ? 0 : array.length;\n return length ? array[length - 1] : undefined;\n }\n\n /**\n * This method is like `_.indexOf` except that it iterates over elements of\n * `array` from right to left.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Array\n * @param {Array} array The array to inspect.\n * @param {*} value The value to search for.\n * @param {number} [fromIndex=array.length-1] The index to search from.\n * @returns {number} Returns the index of the matched value, else `-1`.\n * @example\n *\n * _.lastIndexOf([1, 2, 1, 2], 2);\n * // => 3\n *\n * // Search from the `fromIndex`.\n * _.lastIndexOf([1, 2, 1, 2], 2, 2);\n * // => 1\n */\n function lastIndexOf(array, value, fromIndex) {\n var length = array == null ? 0 : array.length;\n if (!length) {\n return -1;\n }\n var index = length;\n if (fromIndex !== undefined) {\n index = toInteger(fromIndex);\n index = index < 0 ? nativeMax(length + index, 0) : nativeMin(index, length - 1);\n }\n return value === value\n ? strictLastIndexOf(array, value, index)\n : baseFindIndex(array, baseIsNaN, index, true);\n }\n\n /**\n * Gets the element at index `n` of `array`. If `n` is negative, the nth\n * element from the end is returned.\n *\n * @static\n * @memberOf _\n * @since 4.11.0\n * @category Array\n * @param {Array} array The array to query.\n * @param {number} [n=0] The index of the element to return.\n * @returns {*} Returns the nth element of `array`.\n * @example\n *\n * var array = ['a', 'b', 'c', 'd'];\n *\n * _.nth(array, 1);\n * // => 'b'\n *\n * _.nth(array, -2);\n * // => 'c';\n */\n function nth(array, n) {\n return (array && array.length) ? baseNth(array, toInteger(n)) : undefined;\n }\n\n /**\n * Removes all given values from `array` using\n * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)\n * for equality comparisons.\n *\n * **Note:** Unlike `_.without`, this method mutates `array`. Use `_.remove`\n * to remove elements from an array by predicate.\n *\n * @static\n * @memberOf _\n * @since 2.0.0\n * @category Array\n * @param {Array} array The array to modify.\n * @param {...*} [values] The values to remove.\n * @returns {Array} Returns `array`.\n * @example\n *\n * var array = ['a', 'b', 'c', 'a', 'b', 'c'];\n *\n * _.pull(array, 'a', 'c');\n * console.log(array);\n * // => ['b', 'b']\n */\n var pull = baseRest(pullAll);\n\n /**\n * This method is like `_.pull` except that it accepts an array of values to remove.\n *\n * **Note:** Unlike `_.difference`, this method mutates `array`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Array\n * @param {Array} array The array to modify.\n * @param {Array} values The values to remove.\n * @returns {Array} Returns `array`.\n * @example\n *\n * var array = ['a', 'b', 'c', 'a', 'b', 'c'];\n *\n * _.pullAll(array, ['a', 'c']);\n * console.log(array);\n * // => ['b', 'b']\n */\n function pullAll(array, values) {\n return (array && array.length && values && values.length)\n ? basePullAll(array, values)\n : array;\n }\n\n /**\n * This method is like `_.pullAll` except that it accepts `iteratee` which is\n * invoked for each element of `array` and `values` to generate the criterion\n * by which they're compared. The iteratee is invoked with one argument: (value).\n *\n * **Note:** Unlike `_.differenceBy`, this method mutates `array`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Array\n * @param {Array} array The array to modify.\n * @param {Array} values The values to remove.\n * @param {Function} [iteratee=_.identity] The iteratee invoked per element.\n * @returns {Array} Returns `array`.\n * @example\n *\n * var array = [{ 'x': 1 }, { 'x': 2 }, { 'x': 3 }, { 'x': 1 }];\n *\n * _.pullAllBy(array, [{ 'x': 1 }, { 'x': 3 }], 'x');\n * console.log(array);\n * // => [{ 'x': 2 }]\n */\n function pullAllBy(array, values, iteratee) {\n return (array && array.length && values && values.length)\n ? basePullAll(array, values, getIteratee(iteratee, 2))\n : array;\n }\n\n /**\n * This method is like `_.pullAll` except that it accepts `comparator` which\n * is invoked to compare elements of `array` to `values`. The comparator is\n * invoked with two arguments: (arrVal, othVal).\n *\n * **Note:** Unlike `_.differenceWith`, this method mutates `array`.\n *\n * @static\n * @memberOf _\n * @since 4.6.0\n * @category Array\n * @param {Array} array The array to modify.\n * @param {Array} values The values to remove.\n * @param {Function} [comparator] The comparator invoked per element.\n * @returns {Array} Returns `array`.\n * @example\n *\n * var array = [{ 'x': 1, 'y': 2 }, { 'x': 3, 'y': 4 }, { 'x': 5, 'y': 6 }];\n *\n * _.pullAllWith(array, [{ 'x': 3, 'y': 4 }], _.isEqual);\n * console.log(array);\n * // => [{ 'x': 1, 'y': 2 }, { 'x': 5, 'y': 6 }]\n */\n function pullAllWith(array, values, comparator) {\n return (array && array.length && values && values.length)\n ? basePullAll(array, values, undefined, comparator)\n : array;\n }\n\n /**\n * Removes elements from `array` corresponding to `indexes` and returns an\n * array of removed elements.\n *\n * **Note:** Unlike `_.at`, this method mutates `array`.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Array\n * @param {Array} array The array to modify.\n * @param {...(number|number[])} [indexes] The indexes of elements to remove.\n * @returns {Array} Returns the new array of removed elements.\n * @example\n *\n * var array = ['a', 'b', 'c', 'd'];\n * var pulled = _.pullAt(array, [1, 3]);\n *\n * console.log(array);\n * // => ['a', 'c']\n *\n * console.log(pulled);\n * // => ['b', 'd']\n */\n var pullAt = flatRest(function(array, indexes) {\n var length = array == null ? 0 : array.length,\n result = baseAt(array, indexes);\n\n basePullAt(array, arrayMap(indexes, function(index) {\n return isIndex(index, length) ? +index : index;\n }).sort(compareAscending));\n\n return result;\n });\n\n /**\n * Removes all elements from `array` that `predicate` returns truthy for\n * and returns an array of the removed elements. The predicate is invoked\n * with three arguments: (value, index, array).\n *\n * **Note:** Unlike `_.filter`, this method mutates `array`. Use `_.pull`\n * to pull elements from an array by value.\n *\n * @static\n * @memberOf _\n * @since 2.0.0\n * @category Array\n * @param {Array} array The array to modify.\n * @param {Function} [predicate=_.identity] The function invoked per iteration.\n * @returns {Array} Returns the new array of removed elements.\n * @example\n *\n * var array = [1, 2, 3, 4];\n * var evens = _.remove(array, function(n) {\n * return n % 2 == 0;\n * });\n *\n * console.log(array);\n * // => [1, 3]\n *\n * console.log(evens);\n * // => [2, 4]\n */\n function remove(array, predicate) {\n var result = [];\n if (!(array && array.length)) {\n return result;\n }\n var index = -1,\n indexes = [],\n length = array.length;\n\n predicate = getIteratee(predicate, 3);\n while (++index < length) {\n var value = array[index];\n if (predicate(value, index, array)) {\n result.push(value);\n indexes.push(index);\n }\n }\n basePullAt(array, indexes);\n return result;\n }\n\n /**\n * Reverses `array` so that the first element becomes the last, the second\n * element becomes the second to last, and so on.\n *\n * **Note:** This method mutates `array` and is based on\n * [`Array#reverse`](https://mdn.io/Array/reverse).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Array\n * @param {Array} array The array to modify.\n * @returns {Array} Returns `array`.\n * @example\n *\n * var array = [1, 2, 3];\n *\n * _.reverse(array);\n * // => [3, 2, 1]\n *\n * console.log(array);\n * // => [3, 2, 1]\n */\n function reverse(array) {\n return array == null ? array : nativeReverse.call(array);\n }\n\n /**\n * Creates a slice of `array` from `start` up to, but not including, `end`.\n *\n * **Note:** This method is used instead of\n * [`Array#slice`](https://mdn.io/Array/slice) to ensure dense arrays are\n * returned.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Array\n * @param {Array} array The array to slice.\n * @param {number} [start=0] The start position.\n * @param {number} [end=array.length] The end position.\n * @returns {Array} Returns the slice of `array`.\n */\n function slice(array, start, end) {\n var length = array == null ? 0 : array.length;\n if (!length) {\n return [];\n }\n if (end && typeof end != 'number' && isIterateeCall(array, start, end)) {\n start = 0;\n end = length;\n }\n else {\n start = start == null ? 0 : toInteger(start);\n end = end === undefined ? length : toInteger(end);\n }\n return baseSlice(array, start, end);\n }\n\n /**\n * Uses a binary search to determine the lowest index at which `value`\n * should be inserted into `array` in order to maintain its sort order.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Array\n * @param {Array} array The sorted array to inspect.\n * @param {*} value The value to evaluate.\n * @returns {number} Returns the index at which `value` should be inserted\n * into `array`.\n * @example\n *\n * _.sortedIndex([30, 50], 40);\n * // => 1\n */\n function sortedIndex(array, value) {\n return baseSortedIndex(array, value);\n }\n\n /**\n * This method is like `_.sortedIndex` except that it accepts `iteratee`\n * which is invoked for `value` and each element of `array` to compute their\n * sort ranking. The iteratee is invoked with one argument: (value).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Array\n * @param {Array} array The sorted array to inspect.\n * @param {*} value The value to evaluate.\n * @param {Function} [iteratee=_.identity] The iteratee invoked per element.\n * @returns {number} Returns the index at which `value` should be inserted\n * into `array`.\n * @example\n *\n * var objects = [{ 'x': 4 }, { 'x': 5 }];\n *\n * _.sortedIndexBy(objects, { 'x': 4 }, function(o) { return o.x; });\n * // => 0\n *\n * // The `_.property` iteratee shorthand.\n * _.sortedIndexBy(objects, { 'x': 4 }, 'x');\n * // => 0\n */\n function sortedIndexBy(array, value, iteratee) {\n return baseSortedIndexBy(array, value, getIteratee(iteratee, 2));\n }\n\n /**\n * This method is like `_.indexOf` except that it performs a binary\n * search on a sorted `array`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Array\n * @param {Array} array The array to inspect.\n * @param {*} value The value to search for.\n * @returns {number} Returns the index of the matched value, else `-1`.\n * @example\n *\n * _.sortedIndexOf([4, 5, 5, 5, 6], 5);\n * // => 1\n */\n function sortedIndexOf(array, value) {\n var length = array == null ? 0 : array.length;\n if (length) {\n var index = baseSortedIndex(array, value);\n if (index < length && eq(array[index], value)) {\n return index;\n }\n }\n return -1;\n }\n\n /**\n * This method is like `_.sortedIndex` except that it returns the highest\n * index at which `value` should be inserted into `array` in order to\n * maintain its sort order.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Array\n * @param {Array} array The sorted array to inspect.\n * @param {*} value The value to evaluate.\n * @returns {number} Returns the index at which `value` should be inserted\n * into `array`.\n * @example\n *\n * _.sortedLastIndex([4, 5, 5, 5, 6], 5);\n * // => 4\n */\n function sortedLastIndex(array, value) {\n return baseSortedIndex(array, value, true);\n }\n\n /**\n * This method is like `_.sortedLastIndex` except that it accepts `iteratee`\n * which is invoked for `value` and each element of `array` to compute their\n * sort ranking. The iteratee is invoked with one argument: (value).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Array\n * @param {Array} array The sorted array to inspect.\n * @param {*} value The value to evaluate.\n * @param {Function} [iteratee=_.identity] The iteratee invoked per element.\n * @returns {number} Returns the index at which `value` should be inserted\n * into `array`.\n * @example\n *\n * var objects = [{ 'x': 4 }, { 'x': 5 }];\n *\n * _.sortedLastIndexBy(objects, { 'x': 4 }, function(o) { return o.x; });\n * // => 1\n *\n * // The `_.property` iteratee shorthand.\n * _.sortedLastIndexBy(objects, { 'x': 4 }, 'x');\n * // => 1\n */\n function sortedLastIndexBy(array, value, iteratee) {\n return baseSortedIndexBy(array, value, getIteratee(iteratee, 2), true);\n }\n\n /**\n * This method is like `_.lastIndexOf` except that it performs a binary\n * search on a sorted `array`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Array\n * @param {Array} array The array to inspect.\n * @param {*} value The value to search for.\n * @returns {number} Returns the index of the matched value, else `-1`.\n * @example\n *\n * _.sortedLastIndexOf([4, 5, 5, 5, 6], 5);\n * // => 3\n */\n function sortedLastIndexOf(array, value) {\n var length = array == null ? 0 : array.length;\n if (length) {\n var index = baseSortedIndex(array, value, true) - 1;\n if (eq(array[index], value)) {\n return index;\n }\n }\n return -1;\n }\n\n /**\n * This method is like `_.uniq` except that it's designed and optimized\n * for sorted arrays.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Array\n * @param {Array} array The array to inspect.\n * @returns {Array} Returns the new duplicate free array.\n * @example\n *\n * _.sortedUniq([1, 1, 2]);\n * // => [1, 2]\n */\n function sortedUniq(array) {\n return (array && array.length)\n ? baseSortedUniq(array)\n : [];\n }\n\n /**\n * This method is like `_.uniqBy` except that it's designed and optimized\n * for sorted arrays.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Array\n * @param {Array} array The array to inspect.\n * @param {Function} [iteratee] The iteratee invoked per element.\n * @returns {Array} Returns the new duplicate free array.\n * @example\n *\n * _.sortedUniqBy([1.1, 1.2, 2.3, 2.4], Math.floor);\n * // => [1.1, 2.3]\n */\n function sortedUniqBy(array, iteratee) {\n return (array && array.length)\n ? baseSortedUniq(array, getIteratee(iteratee, 2))\n : [];\n }\n\n /**\n * Gets all but the first element of `array`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Array\n * @param {Array} array The array to query.\n * @returns {Array} Returns the slice of `array`.\n * @example\n *\n * _.tail([1, 2, 3]);\n * // => [2, 3]\n */\n function tail(array) {\n var length = array == null ? 0 : array.length;\n return length ? baseSlice(array, 1, length) : [];\n }\n\n /**\n * Creates a slice of `array` with `n` elements taken from the beginning.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Array\n * @param {Array} array The array to query.\n * @param {number} [n=1] The number of elements to take.\n * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.\n * @returns {Array} Returns the slice of `array`.\n * @example\n *\n * _.take([1, 2, 3]);\n * // => [1]\n *\n * _.take([1, 2, 3], 2);\n * // => [1, 2]\n *\n * _.take([1, 2, 3], 5);\n * // => [1, 2, 3]\n *\n * _.take([1, 2, 3], 0);\n * // => []\n */\n function take(array, n, guard) {\n if (!(array && array.length)) {\n return [];\n }\n n = (guard || n === undefined) ? 1 : toInteger(n);\n return baseSlice(array, 0, n < 0 ? 0 : n);\n }\n\n /**\n * Creates a slice of `array` with `n` elements taken from the end.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Array\n * @param {Array} array The array to query.\n * @param {number} [n=1] The number of elements to take.\n * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.\n * @returns {Array} Returns the slice of `array`.\n * @example\n *\n * _.takeRight([1, 2, 3]);\n * // => [3]\n *\n * _.takeRight([1, 2, 3], 2);\n * // => [2, 3]\n *\n * _.takeRight([1, 2, 3], 5);\n * // => [1, 2, 3]\n *\n * _.takeRight([1, 2, 3], 0);\n * // => []\n */\n function takeRight(array, n, guard) {\n var length = array == null ? 0 : array.length;\n if (!length) {\n return [];\n }\n n = (guard || n === undefined) ? 1 : toInteger(n);\n n = length - n;\n return baseSlice(array, n < 0 ? 0 : n, length);\n }\n\n /**\n * Creates a slice of `array` with elements taken from the end. Elements are\n * taken until `predicate` returns falsey. The predicate is invoked with\n * three arguments: (value, index, array).\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Array\n * @param {Array} array The array to query.\n * @param {Function} [predicate=_.identity] The function invoked per iteration.\n * @returns {Array} Returns the slice of `array`.\n * @example\n *\n * var users = [\n * { 'user': 'barney', 'active': true },\n * { 'user': 'fred', 'active': false },\n * { 'user': 'pebbles', 'active': false }\n * ];\n *\n * _.takeRightWhile(users, function(o) { return !o.active; });\n * // => objects for ['fred', 'pebbles']\n *\n * // The `_.matches` iteratee shorthand.\n * _.takeRightWhile(users, { 'user': 'pebbles', 'active': false });\n * // => objects for ['pebbles']\n *\n * // The `_.matchesProperty` iteratee shorthand.\n * _.takeRightWhile(users, ['active', false]);\n * // => objects for ['fred', 'pebbles']\n *\n * // The `_.property` iteratee shorthand.\n * _.takeRightWhile(users, 'active');\n * // => []\n */\n function takeRightWhile(array, predicate) {\n return (array && array.length)\n ? baseWhile(array, getIteratee(predicate, 3), false, true)\n : [];\n }\n\n /**\n * Creates a slice of `array` with elements taken from the beginning. Elements\n * are taken until `predicate` returns falsey. The predicate is invoked with\n * three arguments: (value, index, array).\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Array\n * @param {Array} array The array to query.\n * @param {Function} [predicate=_.identity] The function invoked per iteration.\n * @returns {Array} Returns the slice of `array`.\n * @example\n *\n * var users = [\n * { 'user': 'barney', 'active': false },\n * { 'user': 'fred', 'active': false },\n * { 'user': 'pebbles', 'active': true }\n * ];\n *\n * _.takeWhile(users, function(o) { return !o.active; });\n * // => objects for ['barney', 'fred']\n *\n * // The `_.matches` iteratee shorthand.\n * _.takeWhile(users, { 'user': 'barney', 'active': false });\n * // => objects for ['barney']\n *\n * // The `_.matchesProperty` iteratee shorthand.\n * _.takeWhile(users, ['active', false]);\n * // => objects for ['barney', 'fred']\n *\n * // The `_.property` iteratee shorthand.\n * _.takeWhile(users, 'active');\n * // => []\n */\n function takeWhile(array, predicate) {\n return (array && array.length)\n ? baseWhile(array, getIteratee(predicate, 3))\n : [];\n }\n\n /**\n * Creates an array of unique values, in order, from all given arrays using\n * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)\n * for equality comparisons.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Array\n * @param {...Array} [arrays] The arrays to inspect.\n * @returns {Array} Returns the new array of combined values.\n * @example\n *\n * _.union([2], [1, 2]);\n * // => [2, 1]\n */\n var union = baseRest(function(arrays) {\n return baseUniq(baseFlatten(arrays, 1, isArrayLikeObject, true));\n });\n\n /**\n * This method is like `_.union` except that it accepts `iteratee` which is\n * invoked for each element of each `arrays` to generate the criterion by\n * which uniqueness is computed. Result values are chosen from the first\n * array in which the value occurs. The iteratee is invoked with one argument:\n * (value).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Array\n * @param {...Array} [arrays] The arrays to inspect.\n * @param {Function} [iteratee=_.identity] The iteratee invoked per element.\n * @returns {Array} Returns the new array of combined values.\n * @example\n *\n * _.unionBy([2.1], [1.2, 2.3], Math.floor);\n * // => [2.1, 1.2]\n *\n * // The `_.property` iteratee shorthand.\n * _.unionBy([{ 'x': 1 }], [{ 'x': 2 }, { 'x': 1 }], 'x');\n * // => [{ 'x': 1 }, { 'x': 2 }]\n */\n var unionBy = baseRest(function(arrays) {\n var iteratee = last(arrays);\n if (isArrayLikeObject(iteratee)) {\n iteratee = undefined;\n }\n return baseUniq(baseFlatten(arrays, 1, isArrayLikeObject, true), getIteratee(iteratee, 2));\n });\n\n /**\n * This method is like `_.union` except that it accepts `comparator` which\n * is invoked to compare elements of `arrays`. Result values are chosen from\n * the first array in which the value occurs. The comparator is invoked\n * with two arguments: (arrVal, othVal).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Array\n * @param {...Array} [arrays] The arrays to inspect.\n * @param {Function} [comparator] The comparator invoked per element.\n * @returns {Array} Returns the new array of combined values.\n * @example\n *\n * var objects = [{ 'x': 1, 'y': 2 }, { 'x': 2, 'y': 1 }];\n * var others = [{ 'x': 1, 'y': 1 }, { 'x': 1, 'y': 2 }];\n *\n * _.unionWith(objects, others, _.isEqual);\n * // => [{ 'x': 1, 'y': 2 }, { 'x': 2, 'y': 1 }, { 'x': 1, 'y': 1 }]\n */\n var unionWith = baseRest(function(arrays) {\n var comparator = last(arrays);\n comparator = typeof comparator == 'function' ? comparator : undefined;\n return baseUniq(baseFlatten(arrays, 1, isArrayLikeObject, true), undefined, comparator);\n });\n\n /**\n * Creates a duplicate-free version of an array, using\n * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)\n * for equality comparisons, in which only the first occurrence of each element\n * is kept. The order of result values is determined by the order they occur\n * in the array.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Array\n * @param {Array} array The array to inspect.\n * @returns {Array} Returns the new duplicate free array.\n * @example\n *\n * _.uniq([2, 1, 2]);\n * // => [2, 1]\n */\n function uniq(array) {\n return (array && array.length) ? baseUniq(array) : [];\n }\n\n /**\n * This method is like `_.uniq` except that it accepts `iteratee` which is\n * invoked for each element in `array` to generate the criterion by which\n * uniqueness is computed. The order of result values is determined by the\n * order they occur in the array. The iteratee is invoked with one argument:\n * (value).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Array\n * @param {Array} array The array to inspect.\n * @param {Function} [iteratee=_.identity] The iteratee invoked per element.\n * @returns {Array} Returns the new duplicate free array.\n * @example\n *\n * _.uniqBy([2.1, 1.2, 2.3], Math.floor);\n * // => [2.1, 1.2]\n *\n * // The `_.property` iteratee shorthand.\n * _.uniqBy([{ 'x': 1 }, { 'x': 2 }, { 'x': 1 }], 'x');\n * // => [{ 'x': 1 }, { 'x': 2 }]\n */\n function uniqBy(array, iteratee) {\n return (array && array.length) ? baseUniq(array, getIteratee(iteratee, 2)) : [];\n }\n\n /**\n * This method is like `_.uniq` except that it accepts `comparator` which\n * is invoked to compare elements of `array`. The order of result values is\n * determined by the order they occur in the array.The comparator is invoked\n * with two arguments: (arrVal, othVal).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Array\n * @param {Array} array The array to inspect.\n * @param {Function} [comparator] The comparator invoked per element.\n * @returns {Array} Returns the new duplicate free array.\n * @example\n *\n * var objects = [{ 'x': 1, 'y': 2 }, { 'x': 2, 'y': 1 }, { 'x': 1, 'y': 2 }];\n *\n * _.uniqWith(objects, _.isEqual);\n * // => [{ 'x': 1, 'y': 2 }, { 'x': 2, 'y': 1 }]\n */\n function uniqWith(array, comparator) {\n comparator = typeof comparator == 'function' ? comparator : undefined;\n return (array && array.length) ? baseUniq(array, undefined, comparator) : [];\n }\n\n /**\n * This method is like `_.zip` except that it accepts an array of grouped\n * elements and creates an array regrouping the elements to their pre-zip\n * configuration.\n *\n * @static\n * @memberOf _\n * @since 1.2.0\n * @category Array\n * @param {Array} array The array of grouped elements to process.\n * @returns {Array} Returns the new array of regrouped elements.\n * @example\n *\n * var zipped = _.zip(['a', 'b'], [1, 2], [true, false]);\n * // => [['a', 1, true], ['b', 2, false]]\n *\n * _.unzip(zipped);\n * // => [['a', 'b'], [1, 2], [true, false]]\n */\n function unzip(array) {\n if (!(array && array.length)) {\n return [];\n }\n var length = 0;\n array = arrayFilter(array, function(group) {\n if (isArrayLikeObject(group)) {\n length = nativeMax(group.length, length);\n return true;\n }\n });\n return baseTimes(length, function(index) {\n return arrayMap(array, baseProperty(index));\n });\n }\n\n /**\n * This method is like `_.unzip` except that it accepts `iteratee` to specify\n * how regrouped values should be combined. The iteratee is invoked with the\n * elements of each group: (...group).\n *\n * @static\n * @memberOf _\n * @since 3.8.0\n * @category Array\n * @param {Array} array The array of grouped elements to process.\n * @param {Function} [iteratee=_.identity] The function to combine\n * regrouped values.\n * @returns {Array} Returns the new array of regrouped elements.\n * @example\n *\n * var zipped = _.zip([1, 2], [10, 20], [100, 200]);\n * // => [[1, 10, 100], [2, 20, 200]]\n *\n * _.unzipWith(zipped, _.add);\n * // => [3, 30, 300]\n */\n function unzipWith(array, iteratee) {\n if (!(array && array.length)) {\n return [];\n }\n var result = unzip(array);\n if (iteratee == null) {\n return result;\n }\n return arrayMap(result, function(group) {\n return apply(iteratee, undefined, group);\n });\n }\n\n /**\n * Creates an array excluding all given values using\n * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)\n * for equality comparisons.\n *\n * **Note:** Unlike `_.pull`, this method returns a new array.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Array\n * @param {Array} array The array to inspect.\n * @param {...*} [values] The values to exclude.\n * @returns {Array} Returns the new array of filtered values.\n * @see _.difference, _.xor\n * @example\n *\n * _.without([2, 1, 2, 3], 1, 2);\n * // => [3]\n */\n var without = baseRest(function(array, values) {\n return isArrayLikeObject(array)\n ? baseDifference(array, values)\n : [];\n });\n\n /**\n * Creates an array of unique values that is the\n * [symmetric difference](https://en.wikipedia.org/wiki/Symmetric_difference)\n * of the given arrays. The order of result values is determined by the order\n * they occur in the arrays.\n *\n * @static\n * @memberOf _\n * @since 2.4.0\n * @category Array\n * @param {...Array} [arrays] The arrays to inspect.\n * @returns {Array} Returns the new array of filtered values.\n * @see _.difference, _.without\n * @example\n *\n * _.xor([2, 1], [2, 3]);\n * // => [1, 3]\n */\n var xor = baseRest(function(arrays) {\n return baseXor(arrayFilter(arrays, isArrayLikeObject));\n });\n\n /**\n * This method is like `_.xor` except that it accepts `iteratee` which is\n * invoked for each element of each `arrays` to generate the criterion by\n * which by which they're compared. The order of result values is determined\n * by the order they occur in the arrays. The iteratee is invoked with one\n * argument: (value).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Array\n * @param {...Array} [arrays] The arrays to inspect.\n * @param {Function} [iteratee=_.identity] The iteratee invoked per element.\n * @returns {Array} Returns the new array of filtered values.\n * @example\n *\n * _.xorBy([2.1, 1.2], [2.3, 3.4], Math.floor);\n * // => [1.2, 3.4]\n *\n * // The `_.property` iteratee shorthand.\n * _.xorBy([{ 'x': 1 }], [{ 'x': 2 }, { 'x': 1 }], 'x');\n * // => [{ 'x': 2 }]\n */\n var xorBy = baseRest(function(arrays) {\n var iteratee = last(arrays);\n if (isArrayLikeObject(iteratee)) {\n iteratee = undefined;\n }\n return baseXor(arrayFilter(arrays, isArrayLikeObject), getIteratee(iteratee, 2));\n });\n\n /**\n * This method is like `_.xor` except that it accepts `comparator` which is\n * invoked to compare elements of `arrays`. The order of result values is\n * determined by the order they occur in the arrays. The comparator is invoked\n * with two arguments: (arrVal, othVal).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Array\n * @param {...Array} [arrays] The arrays to inspect.\n * @param {Function} [comparator] The comparator invoked per element.\n * @returns {Array} Returns the new array of filtered values.\n * @example\n *\n * var objects = [{ 'x': 1, 'y': 2 }, { 'x': 2, 'y': 1 }];\n * var others = [{ 'x': 1, 'y': 1 }, { 'x': 1, 'y': 2 }];\n *\n * _.xorWith(objects, others, _.isEqual);\n * // => [{ 'x': 2, 'y': 1 }, { 'x': 1, 'y': 1 }]\n */\n var xorWith = baseRest(function(arrays) {\n var comparator = last(arrays);\n comparator = typeof comparator == 'function' ? comparator : undefined;\n return baseXor(arrayFilter(arrays, isArrayLikeObject), undefined, comparator);\n });\n\n /**\n * Creates an array of grouped elements, the first of which contains the\n * first elements of the given arrays, the second of which contains the\n * second elements of the given arrays, and so on.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Array\n * @param {...Array} [arrays] The arrays to process.\n * @returns {Array} Returns the new array of grouped elements.\n * @example\n *\n * _.zip(['a', 'b'], [1, 2], [true, false]);\n * // => [['a', 1, true], ['b', 2, false]]\n */\n var zip = baseRest(unzip);\n\n /**\n * This method is like `_.fromPairs` except that it accepts two arrays,\n * one of property identifiers and one of corresponding values.\n *\n * @static\n * @memberOf _\n * @since 0.4.0\n * @category Array\n * @param {Array} [props=[]] The property identifiers.\n * @param {Array} [values=[]] The property values.\n * @returns {Object} Returns the new object.\n * @example\n *\n * _.zipObject(['a', 'b'], [1, 2]);\n * // => { 'a': 1, 'b': 2 }\n */\n function zipObject(props, values) {\n return baseZipObject(props || [], values || [], assignValue);\n }\n\n /**\n * This method is like `_.zipObject` except that it supports property paths.\n *\n * @static\n * @memberOf _\n * @since 4.1.0\n * @category Array\n * @param {Array} [props=[]] The property identifiers.\n * @param {Array} [values=[]] The property values.\n * @returns {Object} Returns the new object.\n * @example\n *\n * _.zipObjectDeep(['a.b[0].c', 'a.b[1].d'], [1, 2]);\n * // => { 'a': { 'b': [{ 'c': 1 }, { 'd': 2 }] } }\n */\n function zipObjectDeep(props, values) {\n return baseZipObject(props || [], values || [], baseSet);\n }\n\n /**\n * This method is like `_.zip` except that it accepts `iteratee` to specify\n * how grouped values should be combined. The iteratee is invoked with the\n * elements of each group: (...group).\n *\n * @static\n * @memberOf _\n * @since 3.8.0\n * @category Array\n * @param {...Array} [arrays] The arrays to process.\n * @param {Function} [iteratee=_.identity] The function to combine\n * grouped values.\n * @returns {Array} Returns the new array of grouped elements.\n * @example\n *\n * _.zipWith([1, 2], [10, 20], [100, 200], function(a, b, c) {\n * return a + b + c;\n * });\n * // => [111, 222]\n */\n var zipWith = baseRest(function(arrays) {\n var length = arrays.length,\n iteratee = length > 1 ? arrays[length - 1] : undefined;\n\n iteratee = typeof iteratee == 'function' ? (arrays.pop(), iteratee) : undefined;\n return unzipWith(arrays, iteratee);\n });\n\n /*------------------------------------------------------------------------*/\n\n /**\n * Creates a `lodash` wrapper instance that wraps `value` with explicit method\n * chain sequences enabled. The result of such sequences must be unwrapped\n * with `_#value`.\n *\n * @static\n * @memberOf _\n * @since 1.3.0\n * @category Seq\n * @param {*} value The value to wrap.\n * @returns {Object} Returns the new `lodash` wrapper instance.\n * @example\n *\n * var users = [\n * { 'user': 'barney', 'age': 36 },\n * { 'user': 'fred', 'age': 40 },\n * { 'user': 'pebbles', 'age': 1 }\n * ];\n *\n * var youngest = _\n * .chain(users)\n * .sortBy('age')\n * .map(function(o) {\n * return o.user + ' is ' + o.age;\n * })\n * .head()\n * .value();\n * // => 'pebbles is 1'\n */\n function chain(value) {\n var result = lodash(value);\n result.__chain__ = true;\n return result;\n }\n\n /**\n * This method invokes `interceptor` and returns `value`. The interceptor\n * is invoked with one argument; (value). The purpose of this method is to\n * \"tap into\" a method chain sequence in order to modify intermediate results.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Seq\n * @param {*} value The value to provide to `interceptor`.\n * @param {Function} interceptor The function to invoke.\n * @returns {*} Returns `value`.\n * @example\n *\n * _([1, 2, 3])\n * .tap(function(array) {\n * // Mutate input array.\n * array.pop();\n * })\n * .reverse()\n * .value();\n * // => [2, 1]\n */\n function tap(value, interceptor) {\n interceptor(value);\n return value;\n }\n\n /**\n * This method is like `_.tap` except that it returns the result of `interceptor`.\n * The purpose of this method is to \"pass thru\" values replacing intermediate\n * results in a method chain sequence.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Seq\n * @param {*} value The value to provide to `interceptor`.\n * @param {Function} interceptor The function to invoke.\n * @returns {*} Returns the result of `interceptor`.\n * @example\n *\n * _(' abc ')\n * .chain()\n * .trim()\n * .thru(function(value) {\n * return [value];\n * })\n * .value();\n * // => ['abc']\n */\n function thru(value, interceptor) {\n return interceptor(value);\n }\n\n /**\n * This method is the wrapper version of `_.at`.\n *\n * @name at\n * @memberOf _\n * @since 1.0.0\n * @category Seq\n * @param {...(string|string[])} [paths] The property paths to pick.\n * @returns {Object} Returns the new `lodash` wrapper instance.\n * @example\n *\n * var object = { 'a': [{ 'b': { 'c': 3 } }, 4] };\n *\n * _(object).at(['a[0].b.c', 'a[1]']).value();\n * // => [3, 4]\n */\n var wrapperAt = flatRest(function(paths) {\n var length = paths.length,\n start = length ? paths[0] : 0,\n value = this.__wrapped__,\n interceptor = function(object) { return baseAt(object, paths); };\n\n if (length > 1 || this.__actions__.length ||\n !(value instanceof LazyWrapper) || !isIndex(start)) {\n return this.thru(interceptor);\n }\n value = value.slice(start, +start + (length ? 1 : 0));\n value.__actions__.push({\n 'func': thru,\n 'args': [interceptor],\n 'thisArg': undefined\n });\n return new LodashWrapper(value, this.__chain__).thru(function(array) {\n if (length && !array.length) {\n array.push(undefined);\n }\n return array;\n });\n });\n\n /**\n * Creates a `lodash` wrapper instance with explicit method chain sequences enabled.\n *\n * @name chain\n * @memberOf _\n * @since 0.1.0\n * @category Seq\n * @returns {Object} Returns the new `lodash` wrapper instance.\n * @example\n *\n * var users = [\n * { 'user': 'barney', 'age': 36 },\n * { 'user': 'fred', 'age': 40 }\n * ];\n *\n * // A sequence without explicit chaining.\n * _(users).head();\n * // => { 'user': 'barney', 'age': 36 }\n *\n * // A sequence with explicit chaining.\n * _(users)\n * .chain()\n * .head()\n * .pick('user')\n * .value();\n * // => { 'user': 'barney' }\n */\n function wrapperChain() {\n return chain(this);\n }\n\n /**\n * Executes the chain sequence and returns the wrapped result.\n *\n * @name commit\n * @memberOf _\n * @since 3.2.0\n * @category Seq\n * @returns {Object} Returns the new `lodash` wrapper instance.\n * @example\n *\n * var array = [1, 2];\n * var wrapped = _(array).push(3);\n *\n * console.log(array);\n * // => [1, 2]\n *\n * wrapped = wrapped.commit();\n * console.log(array);\n * // => [1, 2, 3]\n *\n * wrapped.last();\n * // => 3\n *\n * console.log(array);\n * // => [1, 2, 3]\n */\n function wrapperCommit() {\n return new LodashWrapper(this.value(), this.__chain__);\n }\n\n /**\n * Gets the next value on a wrapped object following the\n * [iterator protocol](https://mdn.io/iteration_protocols#iterator).\n *\n * @name next\n * @memberOf _\n * @since 4.0.0\n * @category Seq\n * @returns {Object} Returns the next iterator value.\n * @example\n *\n * var wrapped = _([1, 2]);\n *\n * wrapped.next();\n * // => { 'done': false, 'value': 1 }\n *\n * wrapped.next();\n * // => { 'done': false, 'value': 2 }\n *\n * wrapped.next();\n * // => { 'done': true, 'value': undefined }\n */\n function wrapperNext() {\n if (this.__values__ === undefined) {\n this.__values__ = toArray(this.value());\n }\n var done = this.__index__ >= this.__values__.length,\n value = done ? undefined : this.__values__[this.__index__++];\n\n return { 'done': done, 'value': value };\n }\n\n /**\n * Enables the wrapper to be iterable.\n *\n * @name Symbol.iterator\n * @memberOf _\n * @since 4.0.0\n * @category Seq\n * @returns {Object} Returns the wrapper object.\n * @example\n *\n * var wrapped = _([1, 2]);\n *\n * wrapped[Symbol.iterator]() === wrapped;\n * // => true\n *\n * Array.from(wrapped);\n * // => [1, 2]\n */\n function wrapperToIterator() {\n return this;\n }\n\n /**\n * Creates a clone of the chain sequence planting `value` as the wrapped value.\n *\n * @name plant\n * @memberOf _\n * @since 3.2.0\n * @category Seq\n * @param {*} value The value to plant.\n * @returns {Object} Returns the new `lodash` wrapper instance.\n * @example\n *\n * function square(n) {\n * return n * n;\n * }\n *\n * var wrapped = _([1, 2]).map(square);\n * var other = wrapped.plant([3, 4]);\n *\n * other.value();\n * // => [9, 16]\n *\n * wrapped.value();\n * // => [1, 4]\n */\n function wrapperPlant(value) {\n var result,\n parent = this;\n\n while (parent instanceof baseLodash) {\n var clone = wrapperClone(parent);\n clone.__index__ = 0;\n clone.__values__ = undefined;\n if (result) {\n previous.__wrapped__ = clone;\n } else {\n result = clone;\n }\n var previous = clone;\n parent = parent.__wrapped__;\n }\n previous.__wrapped__ = value;\n return result;\n }\n\n /**\n * This method is the wrapper version of `_.reverse`.\n *\n * **Note:** This method mutates the wrapped array.\n *\n * @name reverse\n * @memberOf _\n * @since 0.1.0\n * @category Seq\n * @returns {Object} Returns the new `lodash` wrapper instance.\n * @example\n *\n * var array = [1, 2, 3];\n *\n * _(array).reverse().value()\n * // => [3, 2, 1]\n *\n * console.log(array);\n * // => [3, 2, 1]\n */\n function wrapperReverse() {\n var value = this.__wrapped__;\n if (value instanceof LazyWrapper) {\n var wrapped = value;\n if (this.__actions__.length) {\n wrapped = new LazyWrapper(this);\n }\n wrapped = wrapped.reverse();\n wrapped.__actions__.push({\n 'func': thru,\n 'args': [reverse],\n 'thisArg': undefined\n });\n return new LodashWrapper(wrapped, this.__chain__);\n }\n return this.thru(reverse);\n }\n\n /**\n * Executes the chain sequence to resolve the unwrapped value.\n *\n * @name value\n * @memberOf _\n * @since 0.1.0\n * @alias toJSON, valueOf\n * @category Seq\n * @returns {*} Returns the resolved unwrapped value.\n * @example\n *\n * _([1, 2, 3]).value();\n * // => [1, 2, 3]\n */\n function wrapperValue() {\n return baseWrapperValue(this.__wrapped__, this.__actions__);\n }\n\n /*------------------------------------------------------------------------*/\n\n /**\n * Creates an object composed of keys generated from the results of running\n * each element of `collection` thru `iteratee`. The corresponding value of\n * each key is the number of times the key was returned by `iteratee`. The\n * iteratee is invoked with one argument: (value).\n *\n * @static\n * @memberOf _\n * @since 0.5.0\n * @category Collection\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} [iteratee=_.identity] The iteratee to transform keys.\n * @returns {Object} Returns the composed aggregate object.\n * @example\n *\n * _.countBy([6.1, 4.2, 6.3], Math.floor);\n * // => { '4': 1, '6': 2 }\n *\n * // The `_.property` iteratee shorthand.\n * _.countBy(['one', 'two', 'three'], 'length');\n * // => { '3': 2, '5': 1 }\n */\n var countBy = createAggregator(function(result, value, key) {\n if (hasOwnProperty.call(result, key)) {\n ++result[key];\n } else {\n baseAssignValue(result, key, 1);\n }\n });\n\n /**\n * Checks if `predicate` returns truthy for **all** elements of `collection`.\n * Iteration is stopped once `predicate` returns falsey. The predicate is\n * invoked with three arguments: (value, index|key, collection).\n *\n * **Note:** This method returns `true` for\n * [empty collections](https://en.wikipedia.org/wiki/Empty_set) because\n * [everything is true](https://en.wikipedia.org/wiki/Vacuous_truth) of\n * elements of empty collections.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Collection\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} [predicate=_.identity] The function invoked per iteration.\n * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.\n * @returns {boolean} Returns `true` if all elements pass the predicate check,\n * else `false`.\n * @example\n *\n * _.every([true, 1, null, 'yes'], Boolean);\n * // => false\n *\n * var users = [\n * { 'user': 'barney', 'age': 36, 'active': false },\n * { 'user': 'fred', 'age': 40, 'active': false }\n * ];\n *\n * // The `_.matches` iteratee shorthand.\n * _.every(users, { 'user': 'barney', 'active': false });\n * // => false\n *\n * // The `_.matchesProperty` iteratee shorthand.\n * _.every(users, ['active', false]);\n * // => true\n *\n * // The `_.property` iteratee shorthand.\n * _.every(users, 'active');\n * // => false\n */\n function every(collection, predicate, guard) {\n var func = isArray(collection) ? arrayEvery : baseEvery;\n if (guard && isIterateeCall(collection, predicate, guard)) {\n predicate = undefined;\n }\n return func(collection, getIteratee(predicate, 3));\n }\n\n /**\n * Iterates over elements of `collection`, returning an array of all elements\n * `predicate` returns truthy for. The predicate is invoked with three\n * arguments: (value, index|key, collection).\n *\n * **Note:** Unlike `_.remove`, this method returns a new array.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Collection\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} [predicate=_.identity] The function invoked per iteration.\n * @returns {Array} Returns the new filtered array.\n * @see _.reject\n * @example\n *\n * var users = [\n * { 'user': 'barney', 'age': 36, 'active': true },\n * { 'user': 'fred', 'age': 40, 'active': false }\n * ];\n *\n * _.filter(users, function(o) { return !o.active; });\n * // => objects for ['fred']\n *\n * // The `_.matches` iteratee shorthand.\n * _.filter(users, { 'age': 36, 'active': true });\n * // => objects for ['barney']\n *\n * // The `_.matchesProperty` iteratee shorthand.\n * _.filter(users, ['active', false]);\n * // => objects for ['fred']\n *\n * // The `_.property` iteratee shorthand.\n * _.filter(users, 'active');\n * // => objects for ['barney']\n */\n function filter(collection, predicate) {\n var func = isArray(collection) ? arrayFilter : baseFilter;\n return func(collection, getIteratee(predicate, 3));\n }\n\n /**\n * Iterates over elements of `collection`, returning the first element\n * `predicate` returns truthy for. The predicate is invoked with three\n * arguments: (value, index|key, collection).\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Collection\n * @param {Array|Object} collection The collection to inspect.\n * @param {Function} [predicate=_.identity] The function invoked per iteration.\n * @param {number} [fromIndex=0] The index to search from.\n * @returns {*} Returns the matched element, else `undefined`.\n * @example\n *\n * var users = [\n * { 'user': 'barney', 'age': 36, 'active': true },\n * { 'user': 'fred', 'age': 40, 'active': false },\n * { 'user': 'pebbles', 'age': 1, 'active': true }\n * ];\n *\n * _.find(users, function(o) { return o.age < 40; });\n * // => object for 'barney'\n *\n * // The `_.matches` iteratee shorthand.\n * _.find(users, { 'age': 1, 'active': true });\n * // => object for 'pebbles'\n *\n * // The `_.matchesProperty` iteratee shorthand.\n * _.find(users, ['active', false]);\n * // => object for 'fred'\n *\n * // The `_.property` iteratee shorthand.\n * _.find(users, 'active');\n * // => object for 'barney'\n */\n var find = createFind(findIndex);\n\n /**\n * This method is like `_.find` except that it iterates over elements of\n * `collection` from right to left.\n *\n * @static\n * @memberOf _\n * @since 2.0.0\n * @category Collection\n * @param {Array|Object} collection The collection to inspect.\n * @param {Function} [predicate=_.identity] The function invoked per iteration.\n * @param {number} [fromIndex=collection.length-1] The index to search from.\n * @returns {*} Returns the matched element, else `undefined`.\n * @example\n *\n * _.findLast([1, 2, 3, 4], function(n) {\n * return n % 2 == 1;\n * });\n * // => 3\n */\n var findLast = createFind(findLastIndex);\n\n /**\n * Creates a flattened array of values by running each element in `collection`\n * thru `iteratee` and flattening the mapped results. The iteratee is invoked\n * with three arguments: (value, index|key, collection).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Collection\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} [iteratee=_.identity] The function invoked per iteration.\n * @returns {Array} Returns the new flattened array.\n * @example\n *\n * function duplicate(n) {\n * return [n, n];\n * }\n *\n * _.flatMap([1, 2], duplicate);\n * // => [1, 1, 2, 2]\n */\n function flatMap(collection, iteratee) {\n return baseFlatten(map(collection, iteratee), 1);\n }\n\n /**\n * This method is like `_.flatMap` except that it recursively flattens the\n * mapped results.\n *\n * @static\n * @memberOf _\n * @since 4.7.0\n * @category Collection\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} [iteratee=_.identity] The function invoked per iteration.\n * @returns {Array} Returns the new flattened array.\n * @example\n *\n * function duplicate(n) {\n * return [[[n, n]]];\n * }\n *\n * _.flatMapDeep([1, 2], duplicate);\n * // => [1, 1, 2, 2]\n */\n function flatMapDeep(collection, iteratee) {\n return baseFlatten(map(collection, iteratee), INFINITY);\n }\n\n /**\n * This method is like `_.flatMap` except that it recursively flattens the\n * mapped results up to `depth` times.\n *\n * @static\n * @memberOf _\n * @since 4.7.0\n * @category Collection\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} [iteratee=_.identity] The function invoked per iteration.\n * @param {number} [depth=1] The maximum recursion depth.\n * @returns {Array} Returns the new flattened array.\n * @example\n *\n * function duplicate(n) {\n * return [[[n, n]]];\n * }\n *\n * _.flatMapDepth([1, 2], duplicate, 2);\n * // => [[1, 1], [2, 2]]\n */\n function flatMapDepth(collection, iteratee, depth) {\n depth = depth === undefined ? 1 : toInteger(depth);\n return baseFlatten(map(collection, iteratee), depth);\n }\n\n /**\n * Iterates over elements of `collection` and invokes `iteratee` for each element.\n * The iteratee is invoked with three arguments: (value, index|key, collection).\n * Iteratee functions may exit iteration early by explicitly returning `false`.\n *\n * **Note:** As with other \"Collections\" methods, objects with a \"length\"\n * property are iterated like arrays. To avoid this behavior use `_.forIn`\n * or `_.forOwn` for object iteration.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @alias each\n * @category Collection\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} [iteratee=_.identity] The function invoked per iteration.\n * @returns {Array|Object} Returns `collection`.\n * @see _.forEachRight\n * @example\n *\n * _.forEach([1, 2], function(value) {\n * console.log(value);\n * });\n * // => Logs `1` then `2`.\n *\n * _.forEach({ 'a': 1, 'b': 2 }, function(value, key) {\n * console.log(key);\n * });\n * // => Logs 'a' then 'b' (iteration order is not guaranteed).\n */\n function forEach(collection, iteratee) {\n var func = isArray(collection) ? arrayEach : baseEach;\n return func(collection, getIteratee(iteratee, 3));\n }\n\n /**\n * This method is like `_.forEach` except that it iterates over elements of\n * `collection` from right to left.\n *\n * @static\n * @memberOf _\n * @since 2.0.0\n * @alias eachRight\n * @category Collection\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} [iteratee=_.identity] The function invoked per iteration.\n * @returns {Array|Object} Returns `collection`.\n * @see _.forEach\n * @example\n *\n * _.forEachRight([1, 2], function(value) {\n * console.log(value);\n * });\n * // => Logs `2` then `1`.\n */\n function forEachRight(collection, iteratee) {\n var func = isArray(collection) ? arrayEachRight : baseEachRight;\n return func(collection, getIteratee(iteratee, 3));\n }\n\n /**\n * Creates an object composed of keys generated from the results of running\n * each element of `collection` thru `iteratee`. The order of grouped values\n * is determined by the order they occur in `collection`. The corresponding\n * value of each key is an array of elements responsible for generating the\n * key. The iteratee is invoked with one argument: (value).\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Collection\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} [iteratee=_.identity] The iteratee to transform keys.\n * @returns {Object} Returns the composed aggregate object.\n * @example\n *\n * _.groupBy([6.1, 4.2, 6.3], Math.floor);\n * // => { '4': [4.2], '6': [6.1, 6.3] }\n *\n * // The `_.property` iteratee shorthand.\n * _.groupBy(['one', 'two', 'three'], 'length');\n * // => { '3': ['one', 'two'], '5': ['three'] }\n */\n var groupBy = createAggregator(function(result, value, key) {\n if (hasOwnProperty.call(result, key)) {\n result[key].push(value);\n } else {\n baseAssignValue(result, key, [value]);\n }\n });\n\n /**\n * Checks if `value` is in `collection`. If `collection` is a string, it's\n * checked for a substring of `value`, otherwise\n * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)\n * is used for equality comparisons. If `fromIndex` is negative, it's used as\n * the offset from the end of `collection`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Collection\n * @param {Array|Object|string} collection The collection to inspect.\n * @param {*} value The value to search for.\n * @param {number} [fromIndex=0] The index to search from.\n * @param- {Object} [guard] Enables use as an iteratee for methods like `_.reduce`.\n * @returns {boolean} Returns `true` if `value` is found, else `false`.\n * @example\n *\n * _.includes([1, 2, 3], 1);\n * // => true\n *\n * _.includes([1, 2, 3], 1, 2);\n * // => false\n *\n * _.includes({ 'a': 1, 'b': 2 }, 1);\n * // => true\n *\n * _.includes('abcd', 'bc');\n * // => true\n */\n function includes(collection, value, fromIndex, guard) {\n collection = isArrayLike(collection) ? collection : values(collection);\n fromIndex = (fromIndex && !guard) ? toInteger(fromIndex) : 0;\n\n var length = collection.length;\n if (fromIndex < 0) {\n fromIndex = nativeMax(length + fromIndex, 0);\n }\n return isString(collection)\n ? (fromIndex <= length && collection.indexOf(value, fromIndex) > -1)\n : (!!length && baseIndexOf(collection, value, fromIndex) > -1);\n }\n\n /**\n * Invokes the method at `path` of each element in `collection`, returning\n * an array of the results of each invoked method. Any additional arguments\n * are provided to each invoked method. If `path` is a function, it's invoked\n * for, and `this` bound to, each element in `collection`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Collection\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Array|Function|string} path The path of the method to invoke or\n * the function invoked per iteration.\n * @param {...*} [args] The arguments to invoke each method with.\n * @returns {Array} Returns the array of results.\n * @example\n *\n * _.invokeMap([[5, 1, 7], [3, 2, 1]], 'sort');\n * // => [[1, 5, 7], [1, 2, 3]]\n *\n * _.invokeMap([123, 456], String.prototype.split, '');\n * // => [['1', '2', '3'], ['4', '5', '6']]\n */\n var invokeMap = baseRest(function(collection, path, args) {\n var index = -1,\n isFunc = typeof path == 'function',\n result = isArrayLike(collection) ? Array(collection.length) : [];\n\n baseEach(collection, function(value) {\n result[++index] = isFunc ? apply(path, value, args) : baseInvoke(value, path, args);\n });\n return result;\n });\n\n /**\n * Creates an object composed of keys generated from the results of running\n * each element of `collection` thru `iteratee`. The corresponding value of\n * each key is the last element responsible for generating the key. The\n * iteratee is invoked with one argument: (value).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Collection\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} [iteratee=_.identity] The iteratee to transform keys.\n * @returns {Object} Returns the composed aggregate object.\n * @example\n *\n * var array = [\n * { 'dir': 'left', 'code': 97 },\n * { 'dir': 'right', 'code': 100 }\n * ];\n *\n * _.keyBy(array, function(o) {\n * return String.fromCharCode(o.code);\n * });\n * // => { 'a': { 'dir': 'left', 'code': 97 }, 'd': { 'dir': 'right', 'code': 100 } }\n *\n * _.keyBy(array, 'dir');\n * // => { 'left': { 'dir': 'left', 'code': 97 }, 'right': { 'dir': 'right', 'code': 100 } }\n */\n var keyBy = createAggregator(function(result, value, key) {\n baseAssignValue(result, key, value);\n });\n\n /**\n * Creates an array of values by running each element in `collection` thru\n * `iteratee`. The iteratee is invoked with three arguments:\n * (value, index|key, collection).\n *\n * Many lodash methods are guarded to work as iteratees for methods like\n * `_.every`, `_.filter`, `_.map`, `_.mapValues`, `_.reject`, and `_.some`.\n *\n * The guarded methods are:\n * `ary`, `chunk`, `curry`, `curryRight`, `drop`, `dropRight`, `every`,\n * `fill`, `invert`, `parseInt`, `random`, `range`, `rangeRight`, `repeat`,\n * `sampleSize`, `slice`, `some`, `sortBy`, `split`, `take`, `takeRight`,\n * `template`, `trim`, `trimEnd`, `trimStart`, and `words`\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Collection\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} [iteratee=_.identity] The function invoked per iteration.\n * @returns {Array} Returns the new mapped array.\n * @example\n *\n * function square(n) {\n * return n * n;\n * }\n *\n * _.map([4, 8], square);\n * // => [16, 64]\n *\n * _.map({ 'a': 4, 'b': 8 }, square);\n * // => [16, 64] (iteration order is not guaranteed)\n *\n * var users = [\n * { 'user': 'barney' },\n * { 'user': 'fred' }\n * ];\n *\n * // The `_.property` iteratee shorthand.\n * _.map(users, 'user');\n * // => ['barney', 'fred']\n */\n function map(collection, iteratee) {\n var func = isArray(collection) ? arrayMap : baseMap;\n return func(collection, getIteratee(iteratee, 3));\n }\n\n /**\n * This method is like `_.sortBy` except that it allows specifying the sort\n * orders of the iteratees to sort by. If `orders` is unspecified, all values\n * are sorted in ascending order. Otherwise, specify an order of \"desc\" for\n * descending or \"asc\" for ascending sort order of corresponding values.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Collection\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Array[]|Function[]|Object[]|string[]} [iteratees=[_.identity]]\n * The iteratees to sort by.\n * @param {string[]} [orders] The sort orders of `iteratees`.\n * @param- {Object} [guard] Enables use as an iteratee for methods like `_.reduce`.\n * @returns {Array} Returns the new sorted array.\n * @example\n *\n * var users = [\n * { 'user': 'fred', 'age': 48 },\n * { 'user': 'barney', 'age': 34 },\n * { 'user': 'fred', 'age': 40 },\n * { 'user': 'barney', 'age': 36 }\n * ];\n *\n * // Sort by `user` in ascending order and by `age` in descending order.\n * _.orderBy(users, ['user', 'age'], ['asc', 'desc']);\n * // => objects for [['barney', 36], ['barney', 34], ['fred', 48], ['fred', 40]]\n */\n function orderBy(collection, iteratees, orders, guard) {\n if (collection == null) {\n return [];\n }\n if (!isArray(iteratees)) {\n iteratees = iteratees == null ? [] : [iteratees];\n }\n orders = guard ? undefined : orders;\n if (!isArray(orders)) {\n orders = orders == null ? [] : [orders];\n }\n return baseOrderBy(collection, iteratees, orders);\n }\n\n /**\n * Creates an array of elements split into two groups, the first of which\n * contains elements `predicate` returns truthy for, the second of which\n * contains elements `predicate` returns falsey for. The predicate is\n * invoked with one argument: (value).\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Collection\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} [predicate=_.identity] The function invoked per iteration.\n * @returns {Array} Returns the array of grouped elements.\n * @example\n *\n * var users = [\n * { 'user': 'barney', 'age': 36, 'active': false },\n * { 'user': 'fred', 'age': 40, 'active': true },\n * { 'user': 'pebbles', 'age': 1, 'active': false }\n * ];\n *\n * _.partition(users, function(o) { return o.active; });\n * // => objects for [['fred'], ['barney', 'pebbles']]\n *\n * // The `_.matches` iteratee shorthand.\n * _.partition(users, { 'age': 1, 'active': false });\n * // => objects for [['pebbles'], ['barney', 'fred']]\n *\n * // The `_.matchesProperty` iteratee shorthand.\n * _.partition(users, ['active', false]);\n * // => objects for [['barney', 'pebbles'], ['fred']]\n *\n * // The `_.property` iteratee shorthand.\n * _.partition(users, 'active');\n * // => objects for [['fred'], ['barney', 'pebbles']]\n */\n var partition = createAggregator(function(result, value, key) {\n result[key ? 0 : 1].push(value);\n }, function() { return [[], []]; });\n\n /**\n * Reduces `collection` to a value which is the accumulated result of running\n * each element in `collection` thru `iteratee`, where each successive\n * invocation is supplied the return value of the previous. If `accumulator`\n * is not given, the first element of `collection` is used as the initial\n * value. The iteratee is invoked with four arguments:\n * (accumulator, value, index|key, collection).\n *\n * Many lodash methods are guarded to work as iteratees for methods like\n * `_.reduce`, `_.reduceRight`, and `_.transform`.\n *\n * The guarded methods are:\n * `assign`, `defaults`, `defaultsDeep`, `includes`, `merge`, `orderBy`,\n * and `sortBy`\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Collection\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} [iteratee=_.identity] The function invoked per iteration.\n * @param {*} [accumulator] The initial value.\n * @returns {*} Returns the accumulated value.\n * @see _.reduceRight\n * @example\n *\n * _.reduce([1, 2], function(sum, n) {\n * return sum + n;\n * }, 0);\n * // => 3\n *\n * _.reduce({ 'a': 1, 'b': 2, 'c': 1 }, function(result, value, key) {\n * (result[value] || (result[value] = [])).push(key);\n * return result;\n * }, {});\n * // => { '1': ['a', 'c'], '2': ['b'] } (iteration order is not guaranteed)\n */\n function reduce(collection, iteratee, accumulator) {\n var func = isArray(collection) ? arrayReduce : baseReduce,\n initAccum = arguments.length < 3;\n\n return func(collection, getIteratee(iteratee, 4), accumulator, initAccum, baseEach);\n }\n\n /**\n * This method is like `_.reduce` except that it iterates over elements of\n * `collection` from right to left.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Collection\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} [iteratee=_.identity] The function invoked per iteration.\n * @param {*} [accumulator] The initial value.\n * @returns {*} Returns the accumulated value.\n * @see _.reduce\n * @example\n *\n * var array = [[0, 1], [2, 3], [4, 5]];\n *\n * _.reduceRight(array, function(flattened, other) {\n * return flattened.concat(other);\n * }, []);\n * // => [4, 5, 2, 3, 0, 1]\n */\n function reduceRight(collection, iteratee, accumulator) {\n var func = isArray(collection) ? arrayReduceRight : baseReduce,\n initAccum = arguments.length < 3;\n\n return func(collection, getIteratee(iteratee, 4), accumulator, initAccum, baseEachRight);\n }\n\n /**\n * The opposite of `_.filter`; this method returns the elements of `collection`\n * that `predicate` does **not** return truthy for.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Collection\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} [predicate=_.identity] The function invoked per iteration.\n * @returns {Array} Returns the new filtered array.\n * @see _.filter\n * @example\n *\n * var users = [\n * { 'user': 'barney', 'age': 36, 'active': false },\n * { 'user': 'fred', 'age': 40, 'active': true }\n * ];\n *\n * _.reject(users, function(o) { return !o.active; });\n * // => objects for ['fred']\n *\n * // The `_.matches` iteratee shorthand.\n * _.reject(users, { 'age': 40, 'active': true });\n * // => objects for ['barney']\n *\n * // The `_.matchesProperty` iteratee shorthand.\n * _.reject(users, ['active', false]);\n * // => objects for ['fred']\n *\n * // The `_.property` iteratee shorthand.\n * _.reject(users, 'active');\n * // => objects for ['barney']\n */\n function reject(collection, predicate) {\n var func = isArray(collection) ? arrayFilter : baseFilter;\n return func(collection, negate(getIteratee(predicate, 3)));\n }\n\n /**\n * Gets a random element from `collection`.\n *\n * @static\n * @memberOf _\n * @since 2.0.0\n * @category Collection\n * @param {Array|Object} collection The collection to sample.\n * @returns {*} Returns the random element.\n * @example\n *\n * _.sample([1, 2, 3, 4]);\n * // => 2\n */\n function sample(collection) {\n var func = isArray(collection) ? arraySample : baseSample;\n return func(collection);\n }\n\n /**\n * Gets `n` random elements at unique keys from `collection` up to the\n * size of `collection`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Collection\n * @param {Array|Object} collection The collection to sample.\n * @param {number} [n=1] The number of elements to sample.\n * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.\n * @returns {Array} Returns the random elements.\n * @example\n *\n * _.sampleSize([1, 2, 3], 2);\n * // => [3, 1]\n *\n * _.sampleSize([1, 2, 3], 4);\n * // => [2, 3, 1]\n */\n function sampleSize(collection, n, guard) {\n if ((guard ? isIterateeCall(collection, n, guard) : n === undefined)) {\n n = 1;\n } else {\n n = toInteger(n);\n }\n var func = isArray(collection) ? arraySampleSize : baseSampleSize;\n return func(collection, n);\n }\n\n /**\n * Creates an array of shuffled values, using a version of the\n * [Fisher-Yates shuffle](https://en.wikipedia.org/wiki/Fisher-Yates_shuffle).\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Collection\n * @param {Array|Object} collection The collection to shuffle.\n * @returns {Array} Returns the new shuffled array.\n * @example\n *\n * _.shuffle([1, 2, 3, 4]);\n * // => [4, 1, 3, 2]\n */\n function shuffle(collection) {\n var func = isArray(collection) ? arrayShuffle : baseShuffle;\n return func(collection);\n }\n\n /**\n * Gets the size of `collection` by returning its length for array-like\n * values or the number of own enumerable string keyed properties for objects.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Collection\n * @param {Array|Object|string} collection The collection to inspect.\n * @returns {number} Returns the collection size.\n * @example\n *\n * _.size([1, 2, 3]);\n * // => 3\n *\n * _.size({ 'a': 1, 'b': 2 });\n * // => 2\n *\n * _.size('pebbles');\n * // => 7\n */\n function size(collection) {\n if (collection == null) {\n return 0;\n }\n if (isArrayLike(collection)) {\n return isString(collection) ? stringSize(collection) : collection.length;\n }\n var tag = getTag(collection);\n if (tag == mapTag || tag == setTag) {\n return collection.size;\n }\n return baseKeys(collection).length;\n }\n\n /**\n * Checks if `predicate` returns truthy for **any** element of `collection`.\n * Iteration is stopped once `predicate` returns truthy. The predicate is\n * invoked with three arguments: (value, index|key, collection).\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Collection\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} [predicate=_.identity] The function invoked per iteration.\n * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.\n * @returns {boolean} Returns `true` if any element passes the predicate check,\n * else `false`.\n * @example\n *\n * _.some([null, 0, 'yes', false], Boolean);\n * // => true\n *\n * var users = [\n * { 'user': 'barney', 'active': true },\n * { 'user': 'fred', 'active': false }\n * ];\n *\n * // The `_.matches` iteratee shorthand.\n * _.some(users, { 'user': 'barney', 'active': false });\n * // => false\n *\n * // The `_.matchesProperty` iteratee shorthand.\n * _.some(users, ['active', false]);\n * // => true\n *\n * // The `_.property` iteratee shorthand.\n * _.some(users, 'active');\n * // => true\n */\n function some(collection, predicate, guard) {\n var func = isArray(collection) ? arraySome : baseSome;\n if (guard && isIterateeCall(collection, predicate, guard)) {\n predicate = undefined;\n }\n return func(collection, getIteratee(predicate, 3));\n }\n\n /**\n * Creates an array of elements, sorted in ascending order by the results of\n * running each element in a collection thru each iteratee. This method\n * performs a stable sort, that is, it preserves the original sort order of\n * equal elements. The iteratees are invoked with one argument: (value).\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Collection\n * @param {Array|Object} collection The collection to iterate over.\n * @param {...(Function|Function[])} [iteratees=[_.identity]]\n * The iteratees to sort by.\n * @returns {Array} Returns the new sorted array.\n * @example\n *\n * var users = [\n * { 'user': 'fred', 'age': 48 },\n * { 'user': 'barney', 'age': 36 },\n * { 'user': 'fred', 'age': 40 },\n * { 'user': 'barney', 'age': 34 }\n * ];\n *\n * _.sortBy(users, [function(o) { return o.user; }]);\n * // => objects for [['barney', 36], ['barney', 34], ['fred', 48], ['fred', 40]]\n *\n * _.sortBy(users, ['user', 'age']);\n * // => objects for [['barney', 34], ['barney', 36], ['fred', 40], ['fred', 48]]\n */\n var sortBy = baseRest(function(collection, iteratees) {\n if (collection == null) {\n return [];\n }\n var length = iteratees.length;\n if (length > 1 && isIterateeCall(collection, iteratees[0], iteratees[1])) {\n iteratees = [];\n } else if (length > 2 && isIterateeCall(iteratees[0], iteratees[1], iteratees[2])) {\n iteratees = [iteratees[0]];\n }\n return baseOrderBy(collection, baseFlatten(iteratees, 1), []);\n });\n\n /*------------------------------------------------------------------------*/\n\n /**\n * Gets the timestamp of the number of milliseconds that have elapsed since\n * the Unix epoch (1 January 1970 00:00:00 UTC).\n *\n * @static\n * @memberOf _\n * @since 2.4.0\n * @category Date\n * @returns {number} Returns the timestamp.\n * @example\n *\n * _.defer(function(stamp) {\n * console.log(_.now() - stamp);\n * }, _.now());\n * // => Logs the number of milliseconds it took for the deferred invocation.\n */\n var now = ctxNow || function() {\n return root.Date.now();\n };\n\n /*------------------------------------------------------------------------*/\n\n /**\n * The opposite of `_.before`; this method creates a function that invokes\n * `func` once it's called `n` or more times.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Function\n * @param {number} n The number of calls before `func` is invoked.\n * @param {Function} func The function to restrict.\n * @returns {Function} Returns the new restricted function.\n * @example\n *\n * var saves = ['profile', 'settings'];\n *\n * var done = _.after(saves.length, function() {\n * console.log('done saving!');\n * });\n *\n * _.forEach(saves, function(type) {\n * asyncSave({ 'type': type, 'complete': done });\n * });\n * // => Logs 'done saving!' after the two async saves have completed.\n */\n function after(n, func) {\n if (typeof func != 'function') {\n throw new TypeError(FUNC_ERROR_TEXT);\n }\n n = toInteger(n);\n return function() {\n if (--n < 1) {\n return func.apply(this, arguments);\n }\n };\n }\n\n /**\n * Creates a function that invokes `func`, with up to `n` arguments,\n * ignoring any additional arguments.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Function\n * @param {Function} func The function to cap arguments for.\n * @param {number} [n=func.length] The arity cap.\n * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.\n * @returns {Function} Returns the new capped function.\n * @example\n *\n * _.map(['6', '8', '10'], _.ary(parseInt, 1));\n * // => [6, 8, 10]\n */\n function ary(func, n, guard) {\n n = guard ? undefined : n;\n n = (func && n == null) ? func.length : n;\n return createWrap(func, WRAP_ARY_FLAG, undefined, undefined, undefined, undefined, n);\n }\n\n /**\n * Creates a function that invokes `func`, with the `this` binding and arguments\n * of the created function, while it's called less than `n` times. Subsequent\n * calls to the created function return the result of the last `func` invocation.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Function\n * @param {number} n The number of calls at which `func` is no longer invoked.\n * @param {Function} func The function to restrict.\n * @returns {Function} Returns the new restricted function.\n * @example\n *\n * jQuery(element).on('click', _.before(5, addContactToList));\n * // => Allows adding up to 4 contacts to the list.\n */\n function before(n, func) {\n var result;\n if (typeof func != 'function') {\n throw new TypeError(FUNC_ERROR_TEXT);\n }\n n = toInteger(n);\n return function() {\n if (--n > 0) {\n result = func.apply(this, arguments);\n }\n if (n <= 1) {\n func = undefined;\n }\n return result;\n };\n }\n\n /**\n * Creates a function that invokes `func` with the `this` binding of `thisArg`\n * and `partials` prepended to the arguments it receives.\n *\n * The `_.bind.placeholder` value, which defaults to `_` in monolithic builds,\n * may be used as a placeholder for partially applied arguments.\n *\n * **Note:** Unlike native `Function#bind`, this method doesn't set the \"length\"\n * property of bound functions.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Function\n * @param {Function} func The function to bind.\n * @param {*} thisArg The `this` binding of `func`.\n * @param {...*} [partials] The arguments to be partially applied.\n * @returns {Function} Returns the new bound function.\n * @example\n *\n * function greet(greeting, punctuation) {\n * return greeting + ' ' + this.user + punctuation;\n * }\n *\n * var object = { 'user': 'fred' };\n *\n * var bound = _.bind(greet, object, 'hi');\n * bound('!');\n * // => 'hi fred!'\n *\n * // Bound with placeholders.\n * var bound = _.bind(greet, object, _, '!');\n * bound('hi');\n * // => 'hi fred!'\n */\n var bind = baseRest(function(func, thisArg, partials) {\n var bitmask = WRAP_BIND_FLAG;\n if (partials.length) {\n var holders = replaceHolders(partials, getHolder(bind));\n bitmask |= WRAP_PARTIAL_FLAG;\n }\n return createWrap(func, bitmask, thisArg, partials, holders);\n });\n\n /**\n * Creates a function that invokes the method at `object[key]` with `partials`\n * prepended to the arguments it receives.\n *\n * This method differs from `_.bind` by allowing bound functions to reference\n * methods that may be redefined or don't yet exist. See\n * [Peter Michaux's article](http://peter.michaux.ca/articles/lazy-function-definition-pattern)\n * for more details.\n *\n * The `_.bindKey.placeholder` value, which defaults to `_` in monolithic\n * builds, may be used as a placeholder for partially applied arguments.\n *\n * @static\n * @memberOf _\n * @since 0.10.0\n * @category Function\n * @param {Object} object The object to invoke the method on.\n * @param {string} key The key of the method.\n * @param {...*} [partials] The arguments to be partially applied.\n * @returns {Function} Returns the new bound function.\n * @example\n *\n * var object = {\n * 'user': 'fred',\n * 'greet': function(greeting, punctuation) {\n * return greeting + ' ' + this.user + punctuation;\n * }\n * };\n *\n * var bound = _.bindKey(object, 'greet', 'hi');\n * bound('!');\n * // => 'hi fred!'\n *\n * object.greet = function(greeting, punctuation) {\n * return greeting + 'ya ' + this.user + punctuation;\n * };\n *\n * bound('!');\n * // => 'hiya fred!'\n *\n * // Bound with placeholders.\n * var bound = _.bindKey(object, 'greet', _, '!');\n * bound('hi');\n * // => 'hiya fred!'\n */\n var bindKey = baseRest(function(object, key, partials) {\n var bitmask = WRAP_BIND_FLAG | WRAP_BIND_KEY_FLAG;\n if (partials.length) {\n var holders = replaceHolders(partials, getHolder(bindKey));\n bitmask |= WRAP_PARTIAL_FLAG;\n }\n return createWrap(key, bitmask, object, partials, holders);\n });\n\n /**\n * Creates a function that accepts arguments of `func` and either invokes\n * `func` returning its result, if at least `arity` number of arguments have\n * been provided, or returns a function that accepts the remaining `func`\n * arguments, and so on. The arity of `func` may be specified if `func.length`\n * is not sufficient.\n *\n * The `_.curry.placeholder` value, which defaults to `_` in monolithic builds,\n * may be used as a placeholder for provided arguments.\n *\n * **Note:** This method doesn't set the \"length\" property of curried functions.\n *\n * @static\n * @memberOf _\n * @since 2.0.0\n * @category Function\n * @param {Function} func The function to curry.\n * @param {number} [arity=func.length] The arity of `func`.\n * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.\n * @returns {Function} Returns the new curried function.\n * @example\n *\n * var abc = function(a, b, c) {\n * return [a, b, c];\n * };\n *\n * var curried = _.curry(abc);\n *\n * curried(1)(2)(3);\n * // => [1, 2, 3]\n *\n * curried(1, 2)(3);\n * // => [1, 2, 3]\n *\n * curried(1, 2, 3);\n * // => [1, 2, 3]\n *\n * // Curried with placeholders.\n * curried(1)(_, 3)(2);\n * // => [1, 2, 3]\n */\n function curry(func, arity, guard) {\n arity = guard ? undefined : arity;\n var result = createWrap(func, WRAP_CURRY_FLAG, undefined, undefined, undefined, undefined, undefined, arity);\n result.placeholder = curry.placeholder;\n return result;\n }\n\n /**\n * This method is like `_.curry` except that arguments are applied to `func`\n * in the manner of `_.partialRight` instead of `_.partial`.\n *\n * The `_.curryRight.placeholder` value, which defaults to `_` in monolithic\n * builds, may be used as a placeholder for provided arguments.\n *\n * **Note:** This method doesn't set the \"length\" property of curried functions.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Function\n * @param {Function} func The function to curry.\n * @param {number} [arity=func.length] The arity of `func`.\n * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.\n * @returns {Function} Returns the new curried function.\n * @example\n *\n * var abc = function(a, b, c) {\n * return [a, b, c];\n * };\n *\n * var curried = _.curryRight(abc);\n *\n * curried(3)(2)(1);\n * // => [1, 2, 3]\n *\n * curried(2, 3)(1);\n * // => [1, 2, 3]\n *\n * curried(1, 2, 3);\n * // => [1, 2, 3]\n *\n * // Curried with placeholders.\n * curried(3)(1, _)(2);\n * // => [1, 2, 3]\n */\n function curryRight(func, arity, guard) {\n arity = guard ? undefined : arity;\n var result = createWrap(func, WRAP_CURRY_RIGHT_FLAG, undefined, undefined, undefined, undefined, undefined, arity);\n result.placeholder = curryRight.placeholder;\n return result;\n }\n\n /**\n * Creates a debounced function that delays invoking `func` until after `wait`\n * milliseconds have elapsed since the last time the debounced function was\n * invoked. The debounced function comes with a `cancel` method to cancel\n * delayed `func` invocations and a `flush` method to immediately invoke them.\n * Provide `options` to indicate whether `func` should be invoked on the\n * leading and/or trailing edge of the `wait` timeout. The `func` is invoked\n * with the last arguments provided to the debounced function. Subsequent\n * calls to the debounced function return the result of the last `func`\n * invocation.\n *\n * **Note:** If `leading` and `trailing` options are `true`, `func` is\n * invoked on the trailing edge of the timeout only if the debounced function\n * is invoked more than once during the `wait` timeout.\n *\n * If `wait` is `0` and `leading` is `false`, `func` invocation is deferred\n * until to the next tick, similar to `setTimeout` with a timeout of `0`.\n *\n * See [David Corbacho's article](https://css-tricks.com/debouncing-throttling-explained-examples/)\n * for details over the differences between `_.debounce` and `_.throttle`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Function\n * @param {Function} func The function to debounce.\n * @param {number} [wait=0] The number of milliseconds to delay.\n * @param {Object} [options={}] The options object.\n * @param {boolean} [options.leading=false]\n * Specify invoking on the leading edge of the timeout.\n * @param {number} [options.maxWait]\n * The maximum time `func` is allowed to be delayed before it's invoked.\n * @param {boolean} [options.trailing=true]\n * Specify invoking on the trailing edge of the timeout.\n * @returns {Function} Returns the new debounced function.\n * @example\n *\n * // Avoid costly calculations while the window size is in flux.\n * jQuery(window).on('resize', _.debounce(calculateLayout, 150));\n *\n * // Invoke `sendMail` when clicked, debouncing subsequent calls.\n * jQuery(element).on('click', _.debounce(sendMail, 300, {\n * 'leading': true,\n * 'trailing': false\n * }));\n *\n * // Ensure `batchLog` is invoked once after 1 second of debounced calls.\n * var debounced = _.debounce(batchLog, 250, { 'maxWait': 1000 });\n * var source = new EventSource('/stream');\n * jQuery(source).on('message', debounced);\n *\n * // Cancel the trailing debounced invocation.\n * jQuery(window).on('popstate', debounced.cancel);\n */\n function debounce(func, wait, options) {\n var lastArgs,\n lastThis,\n maxWait,\n result,\n timerId,\n lastCallTime,\n lastInvokeTime = 0,\n leading = false,\n maxing = false,\n trailing = true;\n\n if (typeof func != 'function') {\n throw new TypeError(FUNC_ERROR_TEXT);\n }\n wait = toNumber(wait) || 0;\n if (isObject(options)) {\n leading = !!options.leading;\n maxing = 'maxWait' in options;\n maxWait = maxing ? nativeMax(toNumber(options.maxWait) || 0, wait) : maxWait;\n trailing = 'trailing' in options ? !!options.trailing : trailing;\n }\n\n function invokeFunc(time) {\n var args = lastArgs,\n thisArg = lastThis;\n\n lastArgs = lastThis = undefined;\n lastInvokeTime = time;\n result = func.apply(thisArg, args);\n return result;\n }\n\n function leadingEdge(time) {\n // Reset any `maxWait` timer.\n lastInvokeTime = time;\n // Start the timer for the trailing edge.\n timerId = setTimeout(timerExpired, wait);\n // Invoke the leading edge.\n return leading ? invokeFunc(time) : result;\n }\n\n function remainingWait(time) {\n var timeSinceLastCall = time - lastCallTime,\n timeSinceLastInvoke = time - lastInvokeTime,\n timeWaiting = wait - timeSinceLastCall;\n\n return maxing\n ? nativeMin(timeWaiting, maxWait - timeSinceLastInvoke)\n : timeWaiting;\n }\n\n function shouldInvoke(time) {\n var timeSinceLastCall = time - lastCallTime,\n timeSinceLastInvoke = time - lastInvokeTime;\n\n // Either this is the first call, activity has stopped and we're at the\n // trailing edge, the system time has gone backwards and we're treating\n // it as the trailing edge, or we've hit the `maxWait` limit.\n return (lastCallTime === undefined || (timeSinceLastCall >= wait) ||\n (timeSinceLastCall < 0) || (maxing && timeSinceLastInvoke >= maxWait));\n }\n\n function timerExpired() {\n var time = now();\n if (shouldInvoke(time)) {\n return trailingEdge(time);\n }\n // Restart the timer.\n timerId = setTimeout(timerExpired, remainingWait(time));\n }\n\n function trailingEdge(time) {\n timerId = undefined;\n\n // Only invoke if we have `lastArgs` which means `func` has been\n // debounced at least once.\n if (trailing && lastArgs) {\n return invokeFunc(time);\n }\n lastArgs = lastThis = undefined;\n return result;\n }\n\n function cancel() {\n if (timerId !== undefined) {\n clearTimeout(timerId);\n }\n lastInvokeTime = 0;\n lastArgs = lastCallTime = lastThis = timerId = undefined;\n }\n\n function flush() {\n return timerId === undefined ? result : trailingEdge(now());\n }\n\n function debounced() {\n var time = now(),\n isInvoking = shouldInvoke(time);\n\n lastArgs = arguments;\n lastThis = this;\n lastCallTime = time;\n\n if (isInvoking) {\n if (timerId === undefined) {\n return leadingEdge(lastCallTime);\n }\n if (maxing) {\n // Handle invocations in a tight loop.\n timerId = setTimeout(timerExpired, wait);\n return invokeFunc(lastCallTime);\n }\n }\n if (timerId === undefined) {\n timerId = setTimeout(timerExpired, wait);\n }\n return result;\n }\n debounced.cancel = cancel;\n debounced.flush = flush;\n return debounced;\n }\n\n /**\n * Defers invoking the `func` until the current call stack has cleared. Any\n * additional arguments are provided to `func` when it's invoked.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Function\n * @param {Function} func The function to defer.\n * @param {...*} [args] The arguments to invoke `func` with.\n * @returns {number} Returns the timer id.\n * @example\n *\n * _.defer(function(text) {\n * console.log(text);\n * }, 'deferred');\n * // => Logs 'deferred' after one millisecond.\n */\n var defer = baseRest(function(func, args) {\n return baseDelay(func, 1, args);\n });\n\n /**\n * Invokes `func` after `wait` milliseconds. Any additional arguments are\n * provided to `func` when it's invoked.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Function\n * @param {Function} func The function to delay.\n * @param {number} wait The number of milliseconds to delay invocation.\n * @param {...*} [args] The arguments to invoke `func` with.\n * @returns {number} Returns the timer id.\n * @example\n *\n * _.delay(function(text) {\n * console.log(text);\n * }, 1000, 'later');\n * // => Logs 'later' after one second.\n */\n var delay = baseRest(function(func, wait, args) {\n return baseDelay(func, toNumber(wait) || 0, args);\n });\n\n /**\n * Creates a function that invokes `func` with arguments reversed.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Function\n * @param {Function} func The function to flip arguments for.\n * @returns {Function} Returns the new flipped function.\n * @example\n *\n * var flipped = _.flip(function() {\n * return _.toArray(arguments);\n * });\n *\n * flipped('a', 'b', 'c', 'd');\n * // => ['d', 'c', 'b', 'a']\n */\n function flip(func) {\n return createWrap(func, WRAP_FLIP_FLAG);\n }\n\n /**\n * Creates a function that memoizes the result of `func`. If `resolver` is\n * provided, it determines the cache key for storing the result based on the\n * arguments provided to the memoized function. By default, the first argument\n * provided to the memoized function is used as the map cache key. The `func`\n * is invoked with the `this` binding of the memoized function.\n *\n * **Note:** The cache is exposed as the `cache` property on the memoized\n * function. Its creation may be customized by replacing the `_.memoize.Cache`\n * constructor with one whose instances implement the\n * [`Map`](http://ecma-international.org/ecma-262/7.0/#sec-properties-of-the-map-prototype-object)\n * method interface of `clear`, `delete`, `get`, `has`, and `set`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Function\n * @param {Function} func The function to have its output memoized.\n * @param {Function} [resolver] The function to resolve the cache key.\n * @returns {Function} Returns the new memoized function.\n * @example\n *\n * var object = { 'a': 1, 'b': 2 };\n * var other = { 'c': 3, 'd': 4 };\n *\n * var values = _.memoize(_.values);\n * values(object);\n * // => [1, 2]\n *\n * values(other);\n * // => [3, 4]\n *\n * object.a = 2;\n * values(object);\n * // => [1, 2]\n *\n * // Modify the result cache.\n * values.cache.set(object, ['a', 'b']);\n * values(object);\n * // => ['a', 'b']\n *\n * // Replace `_.memoize.Cache`.\n * _.memoize.Cache = WeakMap;\n */\n function memoize(func, resolver) {\n if (typeof func != 'function' || (resolver != null && typeof resolver != 'function')) {\n throw new TypeError(FUNC_ERROR_TEXT);\n }\n var memoized = function() {\n var args = arguments,\n key = resolver ? resolver.apply(this, args) : args[0],\n cache = memoized.cache;\n\n if (cache.has(key)) {\n return cache.get(key);\n }\n var result = func.apply(this, args);\n memoized.cache = cache.set(key, result) || cache;\n return result;\n };\n memoized.cache = new (memoize.Cache || MapCache);\n return memoized;\n }\n\n // Expose `MapCache`.\n memoize.Cache = MapCache;\n\n /**\n * Creates a function that negates the result of the predicate `func`. The\n * `func` predicate is invoked with the `this` binding and arguments of the\n * created function.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Function\n * @param {Function} predicate The predicate to negate.\n * @returns {Function} Returns the new negated function.\n * @example\n *\n * function isEven(n) {\n * return n % 2 == 0;\n * }\n *\n * _.filter([1, 2, 3, 4, 5, 6], _.negate(isEven));\n * // => [1, 3, 5]\n */\n function negate(predicate) {\n if (typeof predicate != 'function') {\n throw new TypeError(FUNC_ERROR_TEXT);\n }\n return function() {\n var args = arguments;\n switch (args.length) {\n case 0: return !predicate.call(this);\n case 1: return !predicate.call(this, args[0]);\n case 2: return !predicate.call(this, args[0], args[1]);\n case 3: return !predicate.call(this, args[0], args[1], args[2]);\n }\n return !predicate.apply(this, args);\n };\n }\n\n /**\n * Creates a function that is restricted to invoking `func` once. Repeat calls\n * to the function return the value of the first invocation. The `func` is\n * invoked with the `this` binding and arguments of the created function.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Function\n * @param {Function} func The function to restrict.\n * @returns {Function} Returns the new restricted function.\n * @example\n *\n * var initialize = _.once(createApplication);\n * initialize();\n * initialize();\n * // => `createApplication` is invoked once\n */\n function once(func) {\n return before(2, func);\n }\n\n /**\n * Creates a function that invokes `func` with its arguments transformed.\n *\n * @static\n * @since 4.0.0\n * @memberOf _\n * @category Function\n * @param {Function} func The function to wrap.\n * @param {...(Function|Function[])} [transforms=[_.identity]]\n * The argument transforms.\n * @returns {Function} Returns the new function.\n * @example\n *\n * function doubled(n) {\n * return n * 2;\n * }\n *\n * function square(n) {\n * return n * n;\n * }\n *\n * var func = _.overArgs(function(x, y) {\n * return [x, y];\n * }, [square, doubled]);\n *\n * func(9, 3);\n * // => [81, 6]\n *\n * func(10, 5);\n * // => [100, 10]\n */\n var overArgs = castRest(function(func, transforms) {\n transforms = (transforms.length == 1 && isArray(transforms[0]))\n ? arrayMap(transforms[0], baseUnary(getIteratee()))\n : arrayMap(baseFlatten(transforms, 1), baseUnary(getIteratee()));\n\n var funcsLength = transforms.length;\n return baseRest(function(args) {\n var index = -1,\n length = nativeMin(args.length, funcsLength);\n\n while (++index < length) {\n args[index] = transforms[index].call(this, args[index]);\n }\n return apply(func, this, args);\n });\n });\n\n /**\n * Creates a function that invokes `func` with `partials` prepended to the\n * arguments it receives. This method is like `_.bind` except it does **not**\n * alter the `this` binding.\n *\n * The `_.partial.placeholder` value, which defaults to `_` in monolithic\n * builds, may be used as a placeholder for partially applied arguments.\n *\n * **Note:** This method doesn't set the \"length\" property of partially\n * applied functions.\n *\n * @static\n * @memberOf _\n * @since 0.2.0\n * @category Function\n * @param {Function} func The function to partially apply arguments to.\n * @param {...*} [partials] The arguments to be partially applied.\n * @returns {Function} Returns the new partially applied function.\n * @example\n *\n * function greet(greeting, name) {\n * return greeting + ' ' + name;\n * }\n *\n * var sayHelloTo = _.partial(greet, 'hello');\n * sayHelloTo('fred');\n * // => 'hello fred'\n *\n * // Partially applied with placeholders.\n * var greetFred = _.partial(greet, _, 'fred');\n * greetFred('hi');\n * // => 'hi fred'\n */\n var partial = baseRest(function(func, partials) {\n var holders = replaceHolders(partials, getHolder(partial));\n return createWrap(func, WRAP_PARTIAL_FLAG, undefined, partials, holders);\n });\n\n /**\n * This method is like `_.partial` except that partially applied arguments\n * are appended to the arguments it receives.\n *\n * The `_.partialRight.placeholder` value, which defaults to `_` in monolithic\n * builds, may be used as a placeholder for partially applied arguments.\n *\n * **Note:** This method doesn't set the \"length\" property of partially\n * applied functions.\n *\n * @static\n * @memberOf _\n * @since 1.0.0\n * @category Function\n * @param {Function} func The function to partially apply arguments to.\n * @param {...*} [partials] The arguments to be partially applied.\n * @returns {Function} Returns the new partially applied function.\n * @example\n *\n * function greet(greeting, name) {\n * return greeting + ' ' + name;\n * }\n *\n * var greetFred = _.partialRight(greet, 'fred');\n * greetFred('hi');\n * // => 'hi fred'\n *\n * // Partially applied with placeholders.\n * var sayHelloTo = _.partialRight(greet, 'hello', _);\n * sayHelloTo('fred');\n * // => 'hello fred'\n */\n var partialRight = baseRest(function(func, partials) {\n var holders = replaceHolders(partials, getHolder(partialRight));\n return createWrap(func, WRAP_PARTIAL_RIGHT_FLAG, undefined, partials, holders);\n });\n\n /**\n * Creates a function that invokes `func` with arguments arranged according\n * to the specified `indexes` where the argument value at the first index is\n * provided as the first argument, the argument value at the second index is\n * provided as the second argument, and so on.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Function\n * @param {Function} func The function to rearrange arguments for.\n * @param {...(number|number[])} indexes The arranged argument indexes.\n * @returns {Function} Returns the new function.\n * @example\n *\n * var rearged = _.rearg(function(a, b, c) {\n * return [a, b, c];\n * }, [2, 0, 1]);\n *\n * rearged('b', 'c', 'a')\n * // => ['a', 'b', 'c']\n */\n var rearg = flatRest(function(func, indexes) {\n return createWrap(func, WRAP_REARG_FLAG, undefined, undefined, undefined, indexes);\n });\n\n /**\n * Creates a function that invokes `func` with the `this` binding of the\n * created function and arguments from `start` and beyond provided as\n * an array.\n *\n * **Note:** This method is based on the\n * [rest parameter](https://mdn.io/rest_parameters).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Function\n * @param {Function} func The function to apply a rest parameter to.\n * @param {number} [start=func.length-1] The start position of the rest parameter.\n * @returns {Function} Returns the new function.\n * @example\n *\n * var say = _.rest(function(what, names) {\n * return what + ' ' + _.initial(names).join(', ') +\n * (_.size(names) > 1 ? ', & ' : '') + _.last(names);\n * });\n *\n * say('hello', 'fred', 'barney', 'pebbles');\n * // => 'hello fred, barney, & pebbles'\n */\n function rest(func, start) {\n if (typeof func != 'function') {\n throw new TypeError(FUNC_ERROR_TEXT);\n }\n start = start === undefined ? start : toInteger(start);\n return baseRest(func, start);\n }\n\n /**\n * Creates a function that invokes `func` with the `this` binding of the\n * create function and an array of arguments much like\n * [`Function#apply`](http://www.ecma-international.org/ecma-262/7.0/#sec-function.prototype.apply).\n *\n * **Note:** This method is based on the\n * [spread operator](https://mdn.io/spread_operator).\n *\n * @static\n * @memberOf _\n * @since 3.2.0\n * @category Function\n * @param {Function} func The function to spread arguments over.\n * @param {number} [start=0] The start position of the spread.\n * @returns {Function} Returns the new function.\n * @example\n *\n * var say = _.spread(function(who, what) {\n * return who + ' says ' + what;\n * });\n *\n * say(['fred', 'hello']);\n * // => 'fred says hello'\n *\n * var numbers = Promise.all([\n * Promise.resolve(40),\n * Promise.resolve(36)\n * ]);\n *\n * numbers.then(_.spread(function(x, y) {\n * return x + y;\n * }));\n * // => a Promise of 76\n */\n function spread(func, start) {\n if (typeof func != 'function') {\n throw new TypeError(FUNC_ERROR_TEXT);\n }\n start = start == null ? 0 : nativeMax(toInteger(start), 0);\n return baseRest(function(args) {\n var array = args[start],\n otherArgs = castSlice(args, 0, start);\n\n if (array) {\n arrayPush(otherArgs, array);\n }\n return apply(func, this, otherArgs);\n });\n }\n\n /**\n * Creates a throttled function that only invokes `func` at most once per\n * every `wait` milliseconds. The throttled function comes with a `cancel`\n * method to cancel delayed `func` invocations and a `flush` method to\n * immediately invoke them. Provide `options` to indicate whether `func`\n * should be invoked on the leading and/or trailing edge of the `wait`\n * timeout. The `func` is invoked with the last arguments provided to the\n * throttled function. Subsequent calls to the throttled function return the\n * result of the last `func` invocation.\n *\n * **Note:** If `leading` and `trailing` options are `true`, `func` is\n * invoked on the trailing edge of the timeout only if the throttled function\n * is invoked more than once during the `wait` timeout.\n *\n * If `wait` is `0` and `leading` is `false`, `func` invocation is deferred\n * until to the next tick, similar to `setTimeout` with a timeout of `0`.\n *\n * See [David Corbacho's article](https://css-tricks.com/debouncing-throttling-explained-examples/)\n * for details over the differences between `_.throttle` and `_.debounce`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Function\n * @param {Function} func The function to throttle.\n * @param {number} [wait=0] The number of milliseconds to throttle invocations to.\n * @param {Object} [options={}] The options object.\n * @param {boolean} [options.leading=true]\n * Specify invoking on the leading edge of the timeout.\n * @param {boolean} [options.trailing=true]\n * Specify invoking on the trailing edge of the timeout.\n * @returns {Function} Returns the new throttled function.\n * @example\n *\n * // Avoid excessively updating the position while scrolling.\n * jQuery(window).on('scroll', _.throttle(updatePosition, 100));\n *\n * // Invoke `renewToken` when the click event is fired, but not more than once every 5 minutes.\n * var throttled = _.throttle(renewToken, 300000, { 'trailing': false });\n * jQuery(element).on('click', throttled);\n *\n * // Cancel the trailing throttled invocation.\n * jQuery(window).on('popstate', throttled.cancel);\n */\n function throttle(func, wait, options) {\n var leading = true,\n trailing = true;\n\n if (typeof func != 'function') {\n throw new TypeError(FUNC_ERROR_TEXT);\n }\n if (isObject(options)) {\n leading = 'leading' in options ? !!options.leading : leading;\n trailing = 'trailing' in options ? !!options.trailing : trailing;\n }\n return debounce(func, wait, {\n 'leading': leading,\n 'maxWait': wait,\n 'trailing': trailing\n });\n }\n\n /**\n * Creates a function that accepts up to one argument, ignoring any\n * additional arguments.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Function\n * @param {Function} func The function to cap arguments for.\n * @returns {Function} Returns the new capped function.\n * @example\n *\n * _.map(['6', '8', '10'], _.unary(parseInt));\n * // => [6, 8, 10]\n */\n function unary(func) {\n return ary(func, 1);\n }\n\n /**\n * Creates a function that provides `value` to `wrapper` as its first\n * argument. Any additional arguments provided to the function are appended\n * to those provided to the `wrapper`. The wrapper is invoked with the `this`\n * binding of the created function.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Function\n * @param {*} value The value to wrap.\n * @param {Function} [wrapper=identity] The wrapper function.\n * @returns {Function} Returns the new function.\n * @example\n *\n * var p = _.wrap(_.escape, function(func, text) {\n * return '

' + func(text) + '

';\n * });\n *\n * p('fred, barney, & pebbles');\n * // => '

fred, barney, & pebbles

'\n */\n function wrap(value, wrapper) {\n return partial(castFunction(wrapper), value);\n }\n\n /*------------------------------------------------------------------------*/\n\n /**\n * Casts `value` as an array if it's not one.\n *\n * @static\n * @memberOf _\n * @since 4.4.0\n * @category Lang\n * @param {*} value The value to inspect.\n * @returns {Array} Returns the cast array.\n * @example\n *\n * _.castArray(1);\n * // => [1]\n *\n * _.castArray({ 'a': 1 });\n * // => [{ 'a': 1 }]\n *\n * _.castArray('abc');\n * // => ['abc']\n *\n * _.castArray(null);\n * // => [null]\n *\n * _.castArray(undefined);\n * // => [undefined]\n *\n * _.castArray();\n * // => []\n *\n * var array = [1, 2, 3];\n * console.log(_.castArray(array) === array);\n * // => true\n */\n function castArray() {\n if (!arguments.length) {\n return [];\n }\n var value = arguments[0];\n return isArray(value) ? value : [value];\n }\n\n /**\n * Creates a shallow clone of `value`.\n *\n * **Note:** This method is loosely based on the\n * [structured clone algorithm](https://mdn.io/Structured_clone_algorithm)\n * and supports cloning arrays, array buffers, booleans, date objects, maps,\n * numbers, `Object` objects, regexes, sets, strings, symbols, and typed\n * arrays. The own enumerable properties of `arguments` objects are cloned\n * as plain objects. An empty object is returned for uncloneable values such\n * as error objects, functions, DOM nodes, and WeakMaps.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to clone.\n * @returns {*} Returns the cloned value.\n * @see _.cloneDeep\n * @example\n *\n * var objects = [{ 'a': 1 }, { 'b': 2 }];\n *\n * var shallow = _.clone(objects);\n * console.log(shallow[0] === objects[0]);\n * // => true\n */\n function clone(value) {\n return baseClone(value, CLONE_SYMBOLS_FLAG);\n }\n\n /**\n * This method is like `_.clone` except that it accepts `customizer` which\n * is invoked to produce the cloned value. If `customizer` returns `undefined`,\n * cloning is handled by the method instead. The `customizer` is invoked with\n * up to four arguments; (value [, index|key, object, stack]).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to clone.\n * @param {Function} [customizer] The function to customize cloning.\n * @returns {*} Returns the cloned value.\n * @see _.cloneDeepWith\n * @example\n *\n * function customizer(value) {\n * if (_.isElement(value)) {\n * return value.cloneNode(false);\n * }\n * }\n *\n * var el = _.cloneWith(document.body, customizer);\n *\n * console.log(el === document.body);\n * // => false\n * console.log(el.nodeName);\n * // => 'BODY'\n * console.log(el.childNodes.length);\n * // => 0\n */\n function cloneWith(value, customizer) {\n customizer = typeof customizer == 'function' ? customizer : undefined;\n return baseClone(value, CLONE_SYMBOLS_FLAG, customizer);\n }\n\n /**\n * This method is like `_.clone` except that it recursively clones `value`.\n *\n * @static\n * @memberOf _\n * @since 1.0.0\n * @category Lang\n * @param {*} value The value to recursively clone.\n * @returns {*} Returns the deep cloned value.\n * @see _.clone\n * @example\n *\n * var objects = [{ 'a': 1 }, { 'b': 2 }];\n *\n * var deep = _.cloneDeep(objects);\n * console.log(deep[0] === objects[0]);\n * // => false\n */\n function cloneDeep(value) {\n return baseClone(value, CLONE_DEEP_FLAG | CLONE_SYMBOLS_FLAG);\n }\n\n /**\n * This method is like `_.cloneWith` except that it recursively clones `value`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to recursively clone.\n * @param {Function} [customizer] The function to customize cloning.\n * @returns {*} Returns the deep cloned value.\n * @see _.cloneWith\n * @example\n *\n * function customizer(value) {\n * if (_.isElement(value)) {\n * return value.cloneNode(true);\n * }\n * }\n *\n * var el = _.cloneDeepWith(document.body, customizer);\n *\n * console.log(el === document.body);\n * // => false\n * console.log(el.nodeName);\n * // => 'BODY'\n * console.log(el.childNodes.length);\n * // => 20\n */\n function cloneDeepWith(value, customizer) {\n customizer = typeof customizer == 'function' ? customizer : undefined;\n return baseClone(value, CLONE_DEEP_FLAG | CLONE_SYMBOLS_FLAG, customizer);\n }\n\n /**\n * Checks if `object` conforms to `source` by invoking the predicate\n * properties of `source` with the corresponding property values of `object`.\n *\n * **Note:** This method is equivalent to `_.conforms` when `source` is\n * partially applied.\n *\n * @static\n * @memberOf _\n * @since 4.14.0\n * @category Lang\n * @param {Object} object The object to inspect.\n * @param {Object} source The object of property predicates to conform to.\n * @returns {boolean} Returns `true` if `object` conforms, else `false`.\n * @example\n *\n * var object = { 'a': 1, 'b': 2 };\n *\n * _.conformsTo(object, { 'b': function(n) { return n > 1; } });\n * // => true\n *\n * _.conformsTo(object, { 'b': function(n) { return n > 2; } });\n * // => false\n */\n function conformsTo(object, source) {\n return source == null || baseConformsTo(object, source, keys(source));\n }\n\n /**\n * Performs a\n * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)\n * comparison between two values to determine if they are equivalent.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to compare.\n * @param {*} other The other value to compare.\n * @returns {boolean} Returns `true` if the values are equivalent, else `false`.\n * @example\n *\n * var object = { 'a': 1 };\n * var other = { 'a': 1 };\n *\n * _.eq(object, object);\n * // => true\n *\n * _.eq(object, other);\n * // => false\n *\n * _.eq('a', 'a');\n * // => true\n *\n * _.eq('a', Object('a'));\n * // => false\n *\n * _.eq(NaN, NaN);\n * // => true\n */\n function eq(value, other) {\n return value === other || (value !== value && other !== other);\n }\n\n /**\n * Checks if `value` is greater than `other`.\n *\n * @static\n * @memberOf _\n * @since 3.9.0\n * @category Lang\n * @param {*} value The value to compare.\n * @param {*} other The other value to compare.\n * @returns {boolean} Returns `true` if `value` is greater than `other`,\n * else `false`.\n * @see _.lt\n * @example\n *\n * _.gt(3, 1);\n * // => true\n *\n * _.gt(3, 3);\n * // => false\n *\n * _.gt(1, 3);\n * // => false\n */\n var gt = createRelationalOperation(baseGt);\n\n /**\n * Checks if `value` is greater than or equal to `other`.\n *\n * @static\n * @memberOf _\n * @since 3.9.0\n * @category Lang\n * @param {*} value The value to compare.\n * @param {*} other The other value to compare.\n * @returns {boolean} Returns `true` if `value` is greater than or equal to\n * `other`, else `false`.\n * @see _.lte\n * @example\n *\n * _.gte(3, 1);\n * // => true\n *\n * _.gte(3, 3);\n * // => true\n *\n * _.gte(1, 3);\n * // => false\n */\n var gte = createRelationalOperation(function(value, other) {\n return value >= other;\n });\n\n /**\n * Checks if `value` is likely an `arguments` object.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an `arguments` object,\n * else `false`.\n * @example\n *\n * _.isArguments(function() { return arguments; }());\n * // => true\n *\n * _.isArguments([1, 2, 3]);\n * // => false\n */\n var isArguments = baseIsArguments(function() { return arguments; }()) ? baseIsArguments : function(value) {\n return isObjectLike(value) && hasOwnProperty.call(value, 'callee') &&\n !propertyIsEnumerable.call(value, 'callee');\n };\n\n /**\n * Checks if `value` is classified as an `Array` object.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an array, else `false`.\n * @example\n *\n * _.isArray([1, 2, 3]);\n * // => true\n *\n * _.isArray(document.body.children);\n * // => false\n *\n * _.isArray('abc');\n * // => false\n *\n * _.isArray(_.noop);\n * // => false\n */\n var isArray = Array.isArray;\n\n /**\n * Checks if `value` is classified as an `ArrayBuffer` object.\n *\n * @static\n * @memberOf _\n * @since 4.3.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an array buffer, else `false`.\n * @example\n *\n * _.isArrayBuffer(new ArrayBuffer(2));\n * // => true\n *\n * _.isArrayBuffer(new Array(2));\n * // => false\n */\n var isArrayBuffer = nodeIsArrayBuffer ? baseUnary(nodeIsArrayBuffer) : baseIsArrayBuffer;\n\n /**\n * Checks if `value` is array-like. A value is considered array-like if it's\n * not a function and has a `value.length` that's an integer greater than or\n * equal to `0` and less than or equal to `Number.MAX_SAFE_INTEGER`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is array-like, else `false`.\n * @example\n *\n * _.isArrayLike([1, 2, 3]);\n * // => true\n *\n * _.isArrayLike(document.body.children);\n * // => true\n *\n * _.isArrayLike('abc');\n * // => true\n *\n * _.isArrayLike(_.noop);\n * // => false\n */\n function isArrayLike(value) {\n return value != null && isLength(value.length) && !isFunction(value);\n }\n\n /**\n * This method is like `_.isArrayLike` except that it also checks if `value`\n * is an object.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an array-like object,\n * else `false`.\n * @example\n *\n * _.isArrayLikeObject([1, 2, 3]);\n * // => true\n *\n * _.isArrayLikeObject(document.body.children);\n * // => true\n *\n * _.isArrayLikeObject('abc');\n * // => false\n *\n * _.isArrayLikeObject(_.noop);\n * // => false\n */\n function isArrayLikeObject(value) {\n return isObjectLike(value) && isArrayLike(value);\n }\n\n /**\n * Checks if `value` is classified as a boolean primitive or object.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a boolean, else `false`.\n * @example\n *\n * _.isBoolean(false);\n * // => true\n *\n * _.isBoolean(null);\n * // => false\n */\n function isBoolean(value) {\n return value === true || value === false ||\n (isObjectLike(value) && baseGetTag(value) == boolTag);\n }\n\n /**\n * Checks if `value` is a buffer.\n *\n * @static\n * @memberOf _\n * @since 4.3.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a buffer, else `false`.\n * @example\n *\n * _.isBuffer(new Buffer(2));\n * // => true\n *\n * _.isBuffer(new Uint8Array(2));\n * // => false\n */\n var isBuffer = nativeIsBuffer || stubFalse;\n\n /**\n * Checks if `value` is classified as a `Date` object.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a date object, else `false`.\n * @example\n *\n * _.isDate(new Date);\n * // => true\n *\n * _.isDate('Mon April 23 2012');\n * // => false\n */\n var isDate = nodeIsDate ? baseUnary(nodeIsDate) : baseIsDate;\n\n /**\n * Checks if `value` is likely a DOM element.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a DOM element, else `false`.\n * @example\n *\n * _.isElement(document.body);\n * // => true\n *\n * _.isElement('');\n * // => false\n */\n function isElement(value) {\n return isObjectLike(value) && value.nodeType === 1 && !isPlainObject(value);\n }\n\n /**\n * Checks if `value` is an empty object, collection, map, or set.\n *\n * Objects are considered empty if they have no own enumerable string keyed\n * properties.\n *\n * Array-like values such as `arguments` objects, arrays, buffers, strings, or\n * jQuery-like collections are considered empty if they have a `length` of `0`.\n * Similarly, maps and sets are considered empty if they have a `size` of `0`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is empty, else `false`.\n * @example\n *\n * _.isEmpty(null);\n * // => true\n *\n * _.isEmpty(true);\n * // => true\n *\n * _.isEmpty(1);\n * // => true\n *\n * _.isEmpty([1, 2, 3]);\n * // => false\n *\n * _.isEmpty({ 'a': 1 });\n * // => false\n */\n function isEmpty(value) {\n if (value == null) {\n return true;\n }\n if (isArrayLike(value) &&\n (isArray(value) || typeof value == 'string' || typeof value.splice == 'function' ||\n isBuffer(value) || isTypedArray(value) || isArguments(value))) {\n return !value.length;\n }\n var tag = getTag(value);\n if (tag == mapTag || tag == setTag) {\n return !value.size;\n }\n if (isPrototype(value)) {\n return !baseKeys(value).length;\n }\n for (var key in value) {\n if (hasOwnProperty.call(value, key)) {\n return false;\n }\n }\n return true;\n }\n\n /**\n * Performs a deep comparison between two values to determine if they are\n * equivalent.\n *\n * **Note:** This method supports comparing arrays, array buffers, booleans,\n * date objects, error objects, maps, numbers, `Object` objects, regexes,\n * sets, strings, symbols, and typed arrays. `Object` objects are compared\n * by their own, not inherited, enumerable properties. Functions and DOM\n * nodes are compared by strict equality, i.e. `===`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to compare.\n * @param {*} other The other value to compare.\n * @returns {boolean} Returns `true` if the values are equivalent, else `false`.\n * @example\n *\n * var object = { 'a': 1 };\n * var other = { 'a': 1 };\n *\n * _.isEqual(object, other);\n * // => true\n *\n * object === other;\n * // => false\n */\n function isEqual(value, other) {\n return baseIsEqual(value, other);\n }\n\n /**\n * This method is like `_.isEqual` except that it accepts `customizer` which\n * is invoked to compare values. If `customizer` returns `undefined`, comparisons\n * are handled by the method instead. The `customizer` is invoked with up to\n * six arguments: (objValue, othValue [, index|key, object, other, stack]).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to compare.\n * @param {*} other The other value to compare.\n * @param {Function} [customizer] The function to customize comparisons.\n * @returns {boolean} Returns `true` if the values are equivalent, else `false`.\n * @example\n *\n * function isGreeting(value) {\n * return /^h(?:i|ello)$/.test(value);\n * }\n *\n * function customizer(objValue, othValue) {\n * if (isGreeting(objValue) && isGreeting(othValue)) {\n * return true;\n * }\n * }\n *\n * var array = ['hello', 'goodbye'];\n * var other = ['hi', 'goodbye'];\n *\n * _.isEqualWith(array, other, customizer);\n * // => true\n */\n function isEqualWith(value, other, customizer) {\n customizer = typeof customizer == 'function' ? customizer : undefined;\n var result = customizer ? customizer(value, other) : undefined;\n return result === undefined ? baseIsEqual(value, other, undefined, customizer) : !!result;\n }\n\n /**\n * Checks if `value` is an `Error`, `EvalError`, `RangeError`, `ReferenceError`,\n * `SyntaxError`, `TypeError`, or `URIError` object.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an error object, else `false`.\n * @example\n *\n * _.isError(new Error);\n * // => true\n *\n * _.isError(Error);\n * // => false\n */\n function isError(value) {\n if (!isObjectLike(value)) {\n return false;\n }\n var tag = baseGetTag(value);\n return tag == errorTag || tag == domExcTag ||\n (typeof value.message == 'string' && typeof value.name == 'string' && !isPlainObject(value));\n }\n\n /**\n * Checks if `value` is a finite primitive number.\n *\n * **Note:** This method is based on\n * [`Number.isFinite`](https://mdn.io/Number/isFinite).\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a finite number, else `false`.\n * @example\n *\n * _.isFinite(3);\n * // => true\n *\n * _.isFinite(Number.MIN_VALUE);\n * // => true\n *\n * _.isFinite(Infinity);\n * // => false\n *\n * _.isFinite('3');\n * // => false\n */\n function isFinite(value) {\n return typeof value == 'number' && nativeIsFinite(value);\n }\n\n /**\n * Checks if `value` is classified as a `Function` object.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a function, else `false`.\n * @example\n *\n * _.isFunction(_);\n * // => true\n *\n * _.isFunction(/abc/);\n * // => false\n */\n function isFunction(value) {\n if (!isObject(value)) {\n return false;\n }\n // The use of `Object#toString` avoids issues with the `typeof` operator\n // in Safari 9 which returns 'object' for typed arrays and other constructors.\n var tag = baseGetTag(value);\n return tag == funcTag || tag == genTag || tag == asyncTag || tag == proxyTag;\n }\n\n /**\n * Checks if `value` is an integer.\n *\n * **Note:** This method is based on\n * [`Number.isInteger`](https://mdn.io/Number/isInteger).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an integer, else `false`.\n * @example\n *\n * _.isInteger(3);\n * // => true\n *\n * _.isInteger(Number.MIN_VALUE);\n * // => false\n *\n * _.isInteger(Infinity);\n * // => false\n *\n * _.isInteger('3');\n * // => false\n */\n function isInteger(value) {\n return typeof value == 'number' && value == toInteger(value);\n }\n\n /**\n * Checks if `value` is a valid array-like length.\n *\n * **Note:** This method is loosely based on\n * [`ToLength`](http://ecma-international.org/ecma-262/7.0/#sec-tolength).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a valid length, else `false`.\n * @example\n *\n * _.isLength(3);\n * // => true\n *\n * _.isLength(Number.MIN_VALUE);\n * // => false\n *\n * _.isLength(Infinity);\n * // => false\n *\n * _.isLength('3');\n * // => false\n */\n function isLength(value) {\n return typeof value == 'number' &&\n value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER;\n }\n\n /**\n * Checks if `value` is the\n * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)\n * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an object, else `false`.\n * @example\n *\n * _.isObject({});\n * // => true\n *\n * _.isObject([1, 2, 3]);\n * // => true\n *\n * _.isObject(_.noop);\n * // => true\n *\n * _.isObject(null);\n * // => false\n */\n function isObject(value) {\n var type = typeof value;\n return value != null && (type == 'object' || type == 'function');\n }\n\n /**\n * Checks if `value` is object-like. A value is object-like if it's not `null`\n * and has a `typeof` result of \"object\".\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is object-like, else `false`.\n * @example\n *\n * _.isObjectLike({});\n * // => true\n *\n * _.isObjectLike([1, 2, 3]);\n * // => true\n *\n * _.isObjectLike(_.noop);\n * // => false\n *\n * _.isObjectLike(null);\n * // => false\n */\n function isObjectLike(value) {\n return value != null && typeof value == 'object';\n }\n\n /**\n * Checks if `value` is classified as a `Map` object.\n *\n * @static\n * @memberOf _\n * @since 4.3.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a map, else `false`.\n * @example\n *\n * _.isMap(new Map);\n * // => true\n *\n * _.isMap(new WeakMap);\n * // => false\n */\n var isMap = nodeIsMap ? baseUnary(nodeIsMap) : baseIsMap;\n\n /**\n * Performs a partial deep comparison between `object` and `source` to\n * determine if `object` contains equivalent property values.\n *\n * **Note:** This method is equivalent to `_.matches` when `source` is\n * partially applied.\n *\n * Partial comparisons will match empty array and empty object `source`\n * values against any array or object value, respectively. See `_.isEqual`\n * for a list of supported value comparisons.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Lang\n * @param {Object} object The object to inspect.\n * @param {Object} source The object of property values to match.\n * @returns {boolean} Returns `true` if `object` is a match, else `false`.\n * @example\n *\n * var object = { 'a': 1, 'b': 2 };\n *\n * _.isMatch(object, { 'b': 2 });\n * // => true\n *\n * _.isMatch(object, { 'b': 1 });\n * // => false\n */\n function isMatch(object, source) {\n return object === source || baseIsMatch(object, source, getMatchData(source));\n }\n\n /**\n * This method is like `_.isMatch` except that it accepts `customizer` which\n * is invoked to compare values. If `customizer` returns `undefined`, comparisons\n * are handled by the method instead. The `customizer` is invoked with five\n * arguments: (objValue, srcValue, index|key, object, source).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {Object} object The object to inspect.\n * @param {Object} source The object of property values to match.\n * @param {Function} [customizer] The function to customize comparisons.\n * @returns {boolean} Returns `true` if `object` is a match, else `false`.\n * @example\n *\n * function isGreeting(value) {\n * return /^h(?:i|ello)$/.test(value);\n * }\n *\n * function customizer(objValue, srcValue) {\n * if (isGreeting(objValue) && isGreeting(srcValue)) {\n * return true;\n * }\n * }\n *\n * var object = { 'greeting': 'hello' };\n * var source = { 'greeting': 'hi' };\n *\n * _.isMatchWith(object, source, customizer);\n * // => true\n */\n function isMatchWith(object, source, customizer) {\n customizer = typeof customizer == 'function' ? customizer : undefined;\n return baseIsMatch(object, source, getMatchData(source), customizer);\n }\n\n /**\n * Checks if `value` is `NaN`.\n *\n * **Note:** This method is based on\n * [`Number.isNaN`](https://mdn.io/Number/isNaN) and is not the same as\n * global [`isNaN`](https://mdn.io/isNaN) which returns `true` for\n * `undefined` and other non-number values.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is `NaN`, else `false`.\n * @example\n *\n * _.isNaN(NaN);\n * // => true\n *\n * _.isNaN(new Number(NaN));\n * // => true\n *\n * isNaN(undefined);\n * // => true\n *\n * _.isNaN(undefined);\n * // => false\n */\n function isNaN(value) {\n // An `NaN` primitive is the only value that is not equal to itself.\n // Perform the `toStringTag` check first to avoid errors with some\n // ActiveX objects in IE.\n return isNumber(value) && value != +value;\n }\n\n /**\n * Checks if `value` is a pristine native function.\n *\n * **Note:** This method can't reliably detect native functions in the presence\n * of the core-js package because core-js circumvents this kind of detection.\n * Despite multiple requests, the core-js maintainer has made it clear: any\n * attempt to fix the detection will be obstructed. As a result, we're left\n * with little choice but to throw an error. Unfortunately, this also affects\n * packages, like [babel-polyfill](https://www.npmjs.com/package/babel-polyfill),\n * which rely on core-js.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a native function,\n * else `false`.\n * @example\n *\n * _.isNative(Array.prototype.push);\n * // => true\n *\n * _.isNative(_);\n * // => false\n */\n function isNative(value) {\n if (isMaskable(value)) {\n throw new Error(CORE_ERROR_TEXT);\n }\n return baseIsNative(value);\n }\n\n /**\n * Checks if `value` is `null`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is `null`, else `false`.\n * @example\n *\n * _.isNull(null);\n * // => true\n *\n * _.isNull(void 0);\n * // => false\n */\n function isNull(value) {\n return value === null;\n }\n\n /**\n * Checks if `value` is `null` or `undefined`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is nullish, else `false`.\n * @example\n *\n * _.isNil(null);\n * // => true\n *\n * _.isNil(void 0);\n * // => true\n *\n * _.isNil(NaN);\n * // => false\n */\n function isNil(value) {\n return value == null;\n }\n\n /**\n * Checks if `value` is classified as a `Number` primitive or object.\n *\n * **Note:** To exclude `Infinity`, `-Infinity`, and `NaN`, which are\n * classified as numbers, use the `_.isFinite` method.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a number, else `false`.\n * @example\n *\n * _.isNumber(3);\n * // => true\n *\n * _.isNumber(Number.MIN_VALUE);\n * // => true\n *\n * _.isNumber(Infinity);\n * // => true\n *\n * _.isNumber('3');\n * // => false\n */\n function isNumber(value) {\n return typeof value == 'number' ||\n (isObjectLike(value) && baseGetTag(value) == numberTag);\n }\n\n /**\n * Checks if `value` is a plain object, that is, an object created by the\n * `Object` constructor or one with a `[[Prototype]]` of `null`.\n *\n * @static\n * @memberOf _\n * @since 0.8.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a plain object, else `false`.\n * @example\n *\n * function Foo() {\n * this.a = 1;\n * }\n *\n * _.isPlainObject(new Foo);\n * // => false\n *\n * _.isPlainObject([1, 2, 3]);\n * // => false\n *\n * _.isPlainObject({ 'x': 0, 'y': 0 });\n * // => true\n *\n * _.isPlainObject(Object.create(null));\n * // => true\n */\n function isPlainObject(value) {\n if (!isObjectLike(value) || baseGetTag(value) != objectTag) {\n return false;\n }\n var proto = getPrototype(value);\n if (proto === null) {\n return true;\n }\n var Ctor = hasOwnProperty.call(proto, 'constructor') && proto.constructor;\n return typeof Ctor == 'function' && Ctor instanceof Ctor &&\n funcToString.call(Ctor) == objectCtorString;\n }\n\n /**\n * Checks if `value` is classified as a `RegExp` object.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a regexp, else `false`.\n * @example\n *\n * _.isRegExp(/abc/);\n * // => true\n *\n * _.isRegExp('/abc/');\n * // => false\n */\n var isRegExp = nodeIsRegExp ? baseUnary(nodeIsRegExp) : baseIsRegExp;\n\n /**\n * Checks if `value` is a safe integer. An integer is safe if it's an IEEE-754\n * double precision number which isn't the result of a rounded unsafe integer.\n *\n * **Note:** This method is based on\n * [`Number.isSafeInteger`](https://mdn.io/Number/isSafeInteger).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a safe integer, else `false`.\n * @example\n *\n * _.isSafeInteger(3);\n * // => true\n *\n * _.isSafeInteger(Number.MIN_VALUE);\n * // => false\n *\n * _.isSafeInteger(Infinity);\n * // => false\n *\n * _.isSafeInteger('3');\n * // => false\n */\n function isSafeInteger(value) {\n return isInteger(value) && value >= -MAX_SAFE_INTEGER && value <= MAX_SAFE_INTEGER;\n }\n\n /**\n * Checks if `value` is classified as a `Set` object.\n *\n * @static\n * @memberOf _\n * @since 4.3.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a set, else `false`.\n * @example\n *\n * _.isSet(new Set);\n * // => true\n *\n * _.isSet(new WeakSet);\n * // => false\n */\n var isSet = nodeIsSet ? baseUnary(nodeIsSet) : baseIsSet;\n\n /**\n * Checks if `value` is classified as a `String` primitive or object.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a string, else `false`.\n * @example\n *\n * _.isString('abc');\n * // => true\n *\n * _.isString(1);\n * // => false\n */\n function isString(value) {\n return typeof value == 'string' ||\n (!isArray(value) && isObjectLike(value) && baseGetTag(value) == stringTag);\n }\n\n /**\n * Checks if `value` is classified as a `Symbol` primitive or object.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a symbol, else `false`.\n * @example\n *\n * _.isSymbol(Symbol.iterator);\n * // => true\n *\n * _.isSymbol('abc');\n * // => false\n */\n function isSymbol(value) {\n return typeof value == 'symbol' ||\n (isObjectLike(value) && baseGetTag(value) == symbolTag);\n }\n\n /**\n * Checks if `value` is classified as a typed array.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a typed array, else `false`.\n * @example\n *\n * _.isTypedArray(new Uint8Array);\n * // => true\n *\n * _.isTypedArray([]);\n * // => false\n */\n var isTypedArray = nodeIsTypedArray ? baseUnary(nodeIsTypedArray) : baseIsTypedArray;\n\n /**\n * Checks if `value` is `undefined`.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is `undefined`, else `false`.\n * @example\n *\n * _.isUndefined(void 0);\n * // => true\n *\n * _.isUndefined(null);\n * // => false\n */\n function isUndefined(value) {\n return value === undefined;\n }\n\n /**\n * Checks if `value` is classified as a `WeakMap` object.\n *\n * @static\n * @memberOf _\n * @since 4.3.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a weak map, else `false`.\n * @example\n *\n * _.isWeakMap(new WeakMap);\n * // => true\n *\n * _.isWeakMap(new Map);\n * // => false\n */\n function isWeakMap(value) {\n return isObjectLike(value) && getTag(value) == weakMapTag;\n }\n\n /**\n * Checks if `value` is classified as a `WeakSet` object.\n *\n * @static\n * @memberOf _\n * @since 4.3.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a weak set, else `false`.\n * @example\n *\n * _.isWeakSet(new WeakSet);\n * // => true\n *\n * _.isWeakSet(new Set);\n * // => false\n */\n function isWeakSet(value) {\n return isObjectLike(value) && baseGetTag(value) == weakSetTag;\n }\n\n /**\n * Checks if `value` is less than `other`.\n *\n * @static\n * @memberOf _\n * @since 3.9.0\n * @category Lang\n * @param {*} value The value to compare.\n * @param {*} other The other value to compare.\n * @returns {boolean} Returns `true` if `value` is less than `other`,\n * else `false`.\n * @see _.gt\n * @example\n *\n * _.lt(1, 3);\n * // => true\n *\n * _.lt(3, 3);\n * // => false\n *\n * _.lt(3, 1);\n * // => false\n */\n var lt = createRelationalOperation(baseLt);\n\n /**\n * Checks if `value` is less than or equal to `other`.\n *\n * @static\n * @memberOf _\n * @since 3.9.0\n * @category Lang\n * @param {*} value The value to compare.\n * @param {*} other The other value to compare.\n * @returns {boolean} Returns `true` if `value` is less than or equal to\n * `other`, else `false`.\n * @see _.gte\n * @example\n *\n * _.lte(1, 3);\n * // => true\n *\n * _.lte(3, 3);\n * // => true\n *\n * _.lte(3, 1);\n * // => false\n */\n var lte = createRelationalOperation(function(value, other) {\n return value <= other;\n });\n\n /**\n * Converts `value` to an array.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Lang\n * @param {*} value The value to convert.\n * @returns {Array} Returns the converted array.\n * @example\n *\n * _.toArray({ 'a': 1, 'b': 2 });\n * // => [1, 2]\n *\n * _.toArray('abc');\n * // => ['a', 'b', 'c']\n *\n * _.toArray(1);\n * // => []\n *\n * _.toArray(null);\n * // => []\n */\n function toArray(value) {\n if (!value) {\n return [];\n }\n if (isArrayLike(value)) {\n return isString(value) ? stringToArray(value) : copyArray(value);\n }\n if (symIterator && value[symIterator]) {\n return iteratorToArray(value[symIterator]());\n }\n var tag = getTag(value),\n func = tag == mapTag ? mapToArray : (tag == setTag ? setToArray : values);\n\n return func(value);\n }\n\n /**\n * Converts `value` to a finite number.\n *\n * @static\n * @memberOf _\n * @since 4.12.0\n * @category Lang\n * @param {*} value The value to convert.\n * @returns {number} Returns the converted number.\n * @example\n *\n * _.toFinite(3.2);\n * // => 3.2\n *\n * _.toFinite(Number.MIN_VALUE);\n * // => 5e-324\n *\n * _.toFinite(Infinity);\n * // => 1.7976931348623157e+308\n *\n * _.toFinite('3.2');\n * // => 3.2\n */\n function toFinite(value) {\n if (!value) {\n return value === 0 ? value : 0;\n }\n value = toNumber(value);\n if (value === INFINITY || value === -INFINITY) {\n var sign = (value < 0 ? -1 : 1);\n return sign * MAX_INTEGER;\n }\n return value === value ? value : 0;\n }\n\n /**\n * Converts `value` to an integer.\n *\n * **Note:** This method is loosely based on\n * [`ToInteger`](http://www.ecma-international.org/ecma-262/7.0/#sec-tointeger).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to convert.\n * @returns {number} Returns the converted integer.\n * @example\n *\n * _.toInteger(3.2);\n * // => 3\n *\n * _.toInteger(Number.MIN_VALUE);\n * // => 0\n *\n * _.toInteger(Infinity);\n * // => 1.7976931348623157e+308\n *\n * _.toInteger('3.2');\n * // => 3\n */\n function toInteger(value) {\n var result = toFinite(value),\n remainder = result % 1;\n\n return result === result ? (remainder ? result - remainder : result) : 0;\n }\n\n /**\n * Converts `value` to an integer suitable for use as the length of an\n * array-like object.\n *\n * **Note:** This method is based on\n * [`ToLength`](http://ecma-international.org/ecma-262/7.0/#sec-tolength).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to convert.\n * @returns {number} Returns the converted integer.\n * @example\n *\n * _.toLength(3.2);\n * // => 3\n *\n * _.toLength(Number.MIN_VALUE);\n * // => 0\n *\n * _.toLength(Infinity);\n * // => 4294967295\n *\n * _.toLength('3.2');\n * // => 3\n */\n function toLength(value) {\n return value ? baseClamp(toInteger(value), 0, MAX_ARRAY_LENGTH) : 0;\n }\n\n /**\n * Converts `value` to a number.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to process.\n * @returns {number} Returns the number.\n * @example\n *\n * _.toNumber(3.2);\n * // => 3.2\n *\n * _.toNumber(Number.MIN_VALUE);\n * // => 5e-324\n *\n * _.toNumber(Infinity);\n * // => Infinity\n *\n * _.toNumber('3.2');\n * // => 3.2\n */\n function toNumber(value) {\n if (typeof value == 'number') {\n return value;\n }\n if (isSymbol(value)) {\n return NAN;\n }\n if (isObject(value)) {\n var other = typeof value.valueOf == 'function' ? value.valueOf() : value;\n value = isObject(other) ? (other + '') : other;\n }\n if (typeof value != 'string') {\n return value === 0 ? value : +value;\n }\n value = value.replace(reTrim, '');\n var isBinary = reIsBinary.test(value);\n return (isBinary || reIsOctal.test(value))\n ? freeParseInt(value.slice(2), isBinary ? 2 : 8)\n : (reIsBadHex.test(value) ? NAN : +value);\n }\n\n /**\n * Converts `value` to a plain object flattening inherited enumerable string\n * keyed properties of `value` to own properties of the plain object.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Lang\n * @param {*} value The value to convert.\n * @returns {Object} Returns the converted plain object.\n * @example\n *\n * function Foo() {\n * this.b = 2;\n * }\n *\n * Foo.prototype.c = 3;\n *\n * _.assign({ 'a': 1 }, new Foo);\n * // => { 'a': 1, 'b': 2 }\n *\n * _.assign({ 'a': 1 }, _.toPlainObject(new Foo));\n * // => { 'a': 1, 'b': 2, 'c': 3 }\n */\n function toPlainObject(value) {\n return copyObject(value, keysIn(value));\n }\n\n /**\n * Converts `value` to a safe integer. A safe integer can be compared and\n * represented correctly.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to convert.\n * @returns {number} Returns the converted integer.\n * @example\n *\n * _.toSafeInteger(3.2);\n * // => 3\n *\n * _.toSafeInteger(Number.MIN_VALUE);\n * // => 0\n *\n * _.toSafeInteger(Infinity);\n * // => 9007199254740991\n *\n * _.toSafeInteger('3.2');\n * // => 3\n */\n function toSafeInteger(value) {\n return value\n ? baseClamp(toInteger(value), -MAX_SAFE_INTEGER, MAX_SAFE_INTEGER)\n : (value === 0 ? value : 0);\n }\n\n /**\n * Converts `value` to a string. An empty string is returned for `null`\n * and `undefined` values. The sign of `-0` is preserved.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to convert.\n * @returns {string} Returns the converted string.\n * @example\n *\n * _.toString(null);\n * // => ''\n *\n * _.toString(-0);\n * // => '-0'\n *\n * _.toString([1, 2, 3]);\n * // => '1,2,3'\n */\n function toString(value) {\n return value == null ? '' : baseToString(value);\n }\n\n /*------------------------------------------------------------------------*/\n\n /**\n * Assigns own enumerable string keyed properties of source objects to the\n * destination object. Source objects are applied from left to right.\n * Subsequent sources overwrite property assignments of previous sources.\n *\n * **Note:** This method mutates `object` and is loosely based on\n * [`Object.assign`](https://mdn.io/Object/assign).\n *\n * @static\n * @memberOf _\n * @since 0.10.0\n * @category Object\n * @param {Object} object The destination object.\n * @param {...Object} [sources] The source objects.\n * @returns {Object} Returns `object`.\n * @see _.assignIn\n * @example\n *\n * function Foo() {\n * this.a = 1;\n * }\n *\n * function Bar() {\n * this.c = 3;\n * }\n *\n * Foo.prototype.b = 2;\n * Bar.prototype.d = 4;\n *\n * _.assign({ 'a': 0 }, new Foo, new Bar);\n * // => { 'a': 1, 'c': 3 }\n */\n var assign = createAssigner(function(object, source) {\n if (isPrototype(source) || isArrayLike(source)) {\n copyObject(source, keys(source), object);\n return;\n }\n for (var key in source) {\n if (hasOwnProperty.call(source, key)) {\n assignValue(object, key, source[key]);\n }\n }\n });\n\n /**\n * This method is like `_.assign` except that it iterates over own and\n * inherited source properties.\n *\n * **Note:** This method mutates `object`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @alias extend\n * @category Object\n * @param {Object} object The destination object.\n * @param {...Object} [sources] The source objects.\n * @returns {Object} Returns `object`.\n * @see _.assign\n * @example\n *\n * function Foo() {\n * this.a = 1;\n * }\n *\n * function Bar() {\n * this.c = 3;\n * }\n *\n * Foo.prototype.b = 2;\n * Bar.prototype.d = 4;\n *\n * _.assignIn({ 'a': 0 }, new Foo, new Bar);\n * // => { 'a': 1, 'b': 2, 'c': 3, 'd': 4 }\n */\n var assignIn = createAssigner(function(object, source) {\n copyObject(source, keysIn(source), object);\n });\n\n /**\n * This method is like `_.assignIn` except that it accepts `customizer`\n * which is invoked to produce the assigned values. If `customizer` returns\n * `undefined`, assignment is handled by the method instead. The `customizer`\n * is invoked with five arguments: (objValue, srcValue, key, object, source).\n *\n * **Note:** This method mutates `object`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @alias extendWith\n * @category Object\n * @param {Object} object The destination object.\n * @param {...Object} sources The source objects.\n * @param {Function} [customizer] The function to customize assigned values.\n * @returns {Object} Returns `object`.\n * @see _.assignWith\n * @example\n *\n * function customizer(objValue, srcValue) {\n * return _.isUndefined(objValue) ? srcValue : objValue;\n * }\n *\n * var defaults = _.partialRight(_.assignInWith, customizer);\n *\n * defaults({ 'a': 1 }, { 'b': 2 }, { 'a': 3 });\n * // => { 'a': 1, 'b': 2 }\n */\n var assignInWith = createAssigner(function(object, source, srcIndex, customizer) {\n copyObject(source, keysIn(source), object, customizer);\n });\n\n /**\n * This method is like `_.assign` except that it accepts `customizer`\n * which is invoked to produce the assigned values. If `customizer` returns\n * `undefined`, assignment is handled by the method instead. The `customizer`\n * is invoked with five arguments: (objValue, srcValue, key, object, source).\n *\n * **Note:** This method mutates `object`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Object\n * @param {Object} object The destination object.\n * @param {...Object} sources The source objects.\n * @param {Function} [customizer] The function to customize assigned values.\n * @returns {Object} Returns `object`.\n * @see _.assignInWith\n * @example\n *\n * function customizer(objValue, srcValue) {\n * return _.isUndefined(objValue) ? srcValue : objValue;\n * }\n *\n * var defaults = _.partialRight(_.assignWith, customizer);\n *\n * defaults({ 'a': 1 }, { 'b': 2 }, { 'a': 3 });\n * // => { 'a': 1, 'b': 2 }\n */\n var assignWith = createAssigner(function(object, source, srcIndex, customizer) {\n copyObject(source, keys(source), object, customizer);\n });\n\n /**\n * Creates an array of values corresponding to `paths` of `object`.\n *\n * @static\n * @memberOf _\n * @since 1.0.0\n * @category Object\n * @param {Object} object The object to iterate over.\n * @param {...(string|string[])} [paths] The property paths to pick.\n * @returns {Array} Returns the picked values.\n * @example\n *\n * var object = { 'a': [{ 'b': { 'c': 3 } }, 4] };\n *\n * _.at(object, ['a[0].b.c', 'a[1]']);\n * // => [3, 4]\n */\n var at = flatRest(baseAt);\n\n /**\n * Creates an object that inherits from the `prototype` object. If a\n * `properties` object is given, its own enumerable string keyed properties\n * are assigned to the created object.\n *\n * @static\n * @memberOf _\n * @since 2.3.0\n * @category Object\n * @param {Object} prototype The object to inherit from.\n * @param {Object} [properties] The properties to assign to the object.\n * @returns {Object} Returns the new object.\n * @example\n *\n * function Shape() {\n * this.x = 0;\n * this.y = 0;\n * }\n *\n * function Circle() {\n * Shape.call(this);\n * }\n *\n * Circle.prototype = _.create(Shape.prototype, {\n * 'constructor': Circle\n * });\n *\n * var circle = new Circle;\n * circle instanceof Circle;\n * // => true\n *\n * circle instanceof Shape;\n * // => true\n */\n function create(prototype, properties) {\n var result = baseCreate(prototype);\n return properties == null ? result : baseAssign(result, properties);\n }\n\n /**\n * Assigns own and inherited enumerable string keyed properties of source\n * objects to the destination object for all destination properties that\n * resolve to `undefined`. Source objects are applied from left to right.\n * Once a property is set, additional values of the same property are ignored.\n *\n * **Note:** This method mutates `object`.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Object\n * @param {Object} object The destination object.\n * @param {...Object} [sources] The source objects.\n * @returns {Object} Returns `object`.\n * @see _.defaultsDeep\n * @example\n *\n * _.defaults({ 'a': 1 }, { 'b': 2 }, { 'a': 3 });\n * // => { 'a': 1, 'b': 2 }\n */\n var defaults = baseRest(function(object, sources) {\n object = Object(object);\n\n var index = -1;\n var length = sources.length;\n var guard = length > 2 ? sources[2] : undefined;\n\n if (guard && isIterateeCall(sources[0], sources[1], guard)) {\n length = 1;\n }\n\n while (++index < length) {\n var source = sources[index];\n var props = keysIn(source);\n var propsIndex = -1;\n var propsLength = props.length;\n\n while (++propsIndex < propsLength) {\n var key = props[propsIndex];\n var value = object[key];\n\n if (value === undefined ||\n (eq(value, objectProto[key]) && !hasOwnProperty.call(object, key))) {\n object[key] = source[key];\n }\n }\n }\n\n return object;\n });\n\n /**\n * This method is like `_.defaults` except that it recursively assigns\n * default properties.\n *\n * **Note:** This method mutates `object`.\n *\n * @static\n * @memberOf _\n * @since 3.10.0\n * @category Object\n * @param {Object} object The destination object.\n * @param {...Object} [sources] The source objects.\n * @returns {Object} Returns `object`.\n * @see _.defaults\n * @example\n *\n * _.defaultsDeep({ 'a': { 'b': 2 } }, { 'a': { 'b': 1, 'c': 3 } });\n * // => { 'a': { 'b': 2, 'c': 3 } }\n */\n var defaultsDeep = baseRest(function(args) {\n args.push(undefined, customDefaultsMerge);\n return apply(mergeWith, undefined, args);\n });\n\n /**\n * This method is like `_.find` except that it returns the key of the first\n * element `predicate` returns truthy for instead of the element itself.\n *\n * @static\n * @memberOf _\n * @since 1.1.0\n * @category Object\n * @param {Object} object The object to inspect.\n * @param {Function} [predicate=_.identity] The function invoked per iteration.\n * @returns {string|undefined} Returns the key of the matched element,\n * else `undefined`.\n * @example\n *\n * var users = {\n * 'barney': { 'age': 36, 'active': true },\n * 'fred': { 'age': 40, 'active': false },\n * 'pebbles': { 'age': 1, 'active': true }\n * };\n *\n * _.findKey(users, function(o) { return o.age < 40; });\n * // => 'barney' (iteration order is not guaranteed)\n *\n * // The `_.matches` iteratee shorthand.\n * _.findKey(users, { 'age': 1, 'active': true });\n * // => 'pebbles'\n *\n * // The `_.matchesProperty` iteratee shorthand.\n * _.findKey(users, ['active', false]);\n * // => 'fred'\n *\n * // The `_.property` iteratee shorthand.\n * _.findKey(users, 'active');\n * // => 'barney'\n */\n function findKey(object, predicate) {\n return baseFindKey(object, getIteratee(predicate, 3), baseForOwn);\n }\n\n /**\n * This method is like `_.findKey` except that it iterates over elements of\n * a collection in the opposite order.\n *\n * @static\n * @memberOf _\n * @since 2.0.0\n * @category Object\n * @param {Object} object The object to inspect.\n * @param {Function} [predicate=_.identity] The function invoked per iteration.\n * @returns {string|undefined} Returns the key of the matched element,\n * else `undefined`.\n * @example\n *\n * var users = {\n * 'barney': { 'age': 36, 'active': true },\n * 'fred': { 'age': 40, 'active': false },\n * 'pebbles': { 'age': 1, 'active': true }\n * };\n *\n * _.findLastKey(users, function(o) { return o.age < 40; });\n * // => returns 'pebbles' assuming `_.findKey` returns 'barney'\n *\n * // The `_.matches` iteratee shorthand.\n * _.findLastKey(users, { 'age': 36, 'active': true });\n * // => 'barney'\n *\n * // The `_.matchesProperty` iteratee shorthand.\n * _.findLastKey(users, ['active', false]);\n * // => 'fred'\n *\n * // The `_.property` iteratee shorthand.\n * _.findLastKey(users, 'active');\n * // => 'pebbles'\n */\n function findLastKey(object, predicate) {\n return baseFindKey(object, getIteratee(predicate, 3), baseForOwnRight);\n }\n\n /**\n * Iterates over own and inherited enumerable string keyed properties of an\n * object and invokes `iteratee` for each property. The iteratee is invoked\n * with three arguments: (value, key, object). Iteratee functions may exit\n * iteration early by explicitly returning `false`.\n *\n * @static\n * @memberOf _\n * @since 0.3.0\n * @category Object\n * @param {Object} object The object to iterate over.\n * @param {Function} [iteratee=_.identity] The function invoked per iteration.\n * @returns {Object} Returns `object`.\n * @see _.forInRight\n * @example\n *\n * function Foo() {\n * this.a = 1;\n * this.b = 2;\n * }\n *\n * Foo.prototype.c = 3;\n *\n * _.forIn(new Foo, function(value, key) {\n * console.log(key);\n * });\n * // => Logs 'a', 'b', then 'c' (iteration order is not guaranteed).\n */\n function forIn(object, iteratee) {\n return object == null\n ? object\n : baseFor(object, getIteratee(iteratee, 3), keysIn);\n }\n\n /**\n * This method is like `_.forIn` except that it iterates over properties of\n * `object` in the opposite order.\n *\n * @static\n * @memberOf _\n * @since 2.0.0\n * @category Object\n * @param {Object} object The object to iterate over.\n * @param {Function} [iteratee=_.identity] The function invoked per iteration.\n * @returns {Object} Returns `object`.\n * @see _.forIn\n * @example\n *\n * function Foo() {\n * this.a = 1;\n * this.b = 2;\n * }\n *\n * Foo.prototype.c = 3;\n *\n * _.forInRight(new Foo, function(value, key) {\n * console.log(key);\n * });\n * // => Logs 'c', 'b', then 'a' assuming `_.forIn` logs 'a', 'b', then 'c'.\n */\n function forInRight(object, iteratee) {\n return object == null\n ? object\n : baseForRight(object, getIteratee(iteratee, 3), keysIn);\n }\n\n /**\n * Iterates over own enumerable string keyed properties of an object and\n * invokes `iteratee` for each property. The iteratee is invoked with three\n * arguments: (value, key, object). Iteratee functions may exit iteration\n * early by explicitly returning `false`.\n *\n * @static\n * @memberOf _\n * @since 0.3.0\n * @category Object\n * @param {Object} object The object to iterate over.\n * @param {Function} [iteratee=_.identity] The function invoked per iteration.\n * @returns {Object} Returns `object`.\n * @see _.forOwnRight\n * @example\n *\n * function Foo() {\n * this.a = 1;\n * this.b = 2;\n * }\n *\n * Foo.prototype.c = 3;\n *\n * _.forOwn(new Foo, function(value, key) {\n * console.log(key);\n * });\n * // => Logs 'a' then 'b' (iteration order is not guaranteed).\n */\n function forOwn(object, iteratee) {\n return object && baseForOwn(object, getIteratee(iteratee, 3));\n }\n\n /**\n * This method is like `_.forOwn` except that it iterates over properties of\n * `object` in the opposite order.\n *\n * @static\n * @memberOf _\n * @since 2.0.0\n * @category Object\n * @param {Object} object The object to iterate over.\n * @param {Function} [iteratee=_.identity] The function invoked per iteration.\n * @returns {Object} Returns `object`.\n * @see _.forOwn\n * @example\n *\n * function Foo() {\n * this.a = 1;\n * this.b = 2;\n * }\n *\n * Foo.prototype.c = 3;\n *\n * _.forOwnRight(new Foo, function(value, key) {\n * console.log(key);\n * });\n * // => Logs 'b' then 'a' assuming `_.forOwn` logs 'a' then 'b'.\n */\n function forOwnRight(object, iteratee) {\n return object && baseForOwnRight(object, getIteratee(iteratee, 3));\n }\n\n /**\n * Creates an array of function property names from own enumerable properties\n * of `object`.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Object\n * @param {Object} object The object to inspect.\n * @returns {Array} Returns the function names.\n * @see _.functionsIn\n * @example\n *\n * function Foo() {\n * this.a = _.constant('a');\n * this.b = _.constant('b');\n * }\n *\n * Foo.prototype.c = _.constant('c');\n *\n * _.functions(new Foo);\n * // => ['a', 'b']\n */\n function functions(object) {\n return object == null ? [] : baseFunctions(object, keys(object));\n }\n\n /**\n * Creates an array of function property names from own and inherited\n * enumerable properties of `object`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Object\n * @param {Object} object The object to inspect.\n * @returns {Array} Returns the function names.\n * @see _.functions\n * @example\n *\n * function Foo() {\n * this.a = _.constant('a');\n * this.b = _.constant('b');\n * }\n *\n * Foo.prototype.c = _.constant('c');\n *\n * _.functionsIn(new Foo);\n * // => ['a', 'b', 'c']\n */\n function functionsIn(object) {\n return object == null ? [] : baseFunctions(object, keysIn(object));\n }\n\n /**\n * Gets the value at `path` of `object`. If the resolved value is\n * `undefined`, the `defaultValue` is returned in its place.\n *\n * @static\n * @memberOf _\n * @since 3.7.0\n * @category Object\n * @param {Object} object The object to query.\n * @param {Array|string} path The path of the property to get.\n * @param {*} [defaultValue] The value returned for `undefined` resolved values.\n * @returns {*} Returns the resolved value.\n * @example\n *\n * var object = { 'a': [{ 'b': { 'c': 3 } }] };\n *\n * _.get(object, 'a[0].b.c');\n * // => 3\n *\n * _.get(object, ['a', '0', 'b', 'c']);\n * // => 3\n *\n * _.get(object, 'a.b.c', 'default');\n * // => 'default'\n */\n function get(object, path, defaultValue) {\n var result = object == null ? undefined : baseGet(object, path);\n return result === undefined ? defaultValue : result;\n }\n\n /**\n * Checks if `path` is a direct property of `object`.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Object\n * @param {Object} object The object to query.\n * @param {Array|string} path The path to check.\n * @returns {boolean} Returns `true` if `path` exists, else `false`.\n * @example\n *\n * var object = { 'a': { 'b': 2 } };\n * var other = _.create({ 'a': _.create({ 'b': 2 }) });\n *\n * _.has(object, 'a');\n * // => true\n *\n * _.has(object, 'a.b');\n * // => true\n *\n * _.has(object, ['a', 'b']);\n * // => true\n *\n * _.has(other, 'a');\n * // => false\n */\n function has(object, path) {\n return object != null && hasPath(object, path, baseHas);\n }\n\n /**\n * Checks if `path` is a direct or inherited property of `object`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Object\n * @param {Object} object The object to query.\n * @param {Array|string} path The path to check.\n * @returns {boolean} Returns `true` if `path` exists, else `false`.\n * @example\n *\n * var object = _.create({ 'a': _.create({ 'b': 2 }) });\n *\n * _.hasIn(object, 'a');\n * // => true\n *\n * _.hasIn(object, 'a.b');\n * // => true\n *\n * _.hasIn(object, ['a', 'b']);\n * // => true\n *\n * _.hasIn(object, 'b');\n * // => false\n */\n function hasIn(object, path) {\n return object != null && hasPath(object, path, baseHasIn);\n }\n\n /**\n * Creates an object composed of the inverted keys and values of `object`.\n * If `object` contains duplicate values, subsequent values overwrite\n * property assignments of previous values.\n *\n * @static\n * @memberOf _\n * @since 0.7.0\n * @category Object\n * @param {Object} object The object to invert.\n * @returns {Object} Returns the new inverted object.\n * @example\n *\n * var object = { 'a': 1, 'b': 2, 'c': 1 };\n *\n * _.invert(object);\n * // => { '1': 'c', '2': 'b' }\n */\n var invert = createInverter(function(result, value, key) {\n if (value != null &&\n typeof value.toString != 'function') {\n value = nativeObjectToString.call(value);\n }\n\n result[value] = key;\n }, constant(identity));\n\n /**\n * This method is like `_.invert` except that the inverted object is generated\n * from the results of running each element of `object` thru `iteratee`. The\n * corresponding inverted value of each inverted key is an array of keys\n * responsible for generating the inverted value. The iteratee is invoked\n * with one argument: (value).\n *\n * @static\n * @memberOf _\n * @since 4.1.0\n * @category Object\n * @param {Object} object The object to invert.\n * @param {Function} [iteratee=_.identity] The iteratee invoked per element.\n * @returns {Object} Returns the new inverted object.\n * @example\n *\n * var object = { 'a': 1, 'b': 2, 'c': 1 };\n *\n * _.invertBy(object);\n * // => { '1': ['a', 'c'], '2': ['b'] }\n *\n * _.invertBy(object, function(value) {\n * return 'group' + value;\n * });\n * // => { 'group1': ['a', 'c'], 'group2': ['b'] }\n */\n var invertBy = createInverter(function(result, value, key) {\n if (value != null &&\n typeof value.toString != 'function') {\n value = nativeObjectToString.call(value);\n }\n\n if (hasOwnProperty.call(result, value)) {\n result[value].push(key);\n } else {\n result[value] = [key];\n }\n }, getIteratee);\n\n /**\n * Invokes the method at `path` of `object`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Object\n * @param {Object} object The object to query.\n * @param {Array|string} path The path of the method to invoke.\n * @param {...*} [args] The arguments to invoke the method with.\n * @returns {*} Returns the result of the invoked method.\n * @example\n *\n * var object = { 'a': [{ 'b': { 'c': [1, 2, 3, 4] } }] };\n *\n * _.invoke(object, 'a[0].b.c.slice', 1, 3);\n * // => [2, 3]\n */\n var invoke = baseRest(baseInvoke);\n\n /**\n * Creates an array of the own enumerable property names of `object`.\n *\n * **Note:** Non-object values are coerced to objects. See the\n * [ES spec](http://ecma-international.org/ecma-262/7.0/#sec-object.keys)\n * for more details.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Object\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property names.\n * @example\n *\n * function Foo() {\n * this.a = 1;\n * this.b = 2;\n * }\n *\n * Foo.prototype.c = 3;\n *\n * _.keys(new Foo);\n * // => ['a', 'b'] (iteration order is not guaranteed)\n *\n * _.keys('hi');\n * // => ['0', '1']\n */\n function keys(object) {\n return isArrayLike(object) ? arrayLikeKeys(object) : baseKeys(object);\n }\n\n /**\n * Creates an array of the own and inherited enumerable property names of `object`.\n *\n * **Note:** Non-object values are coerced to objects.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Object\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property names.\n * @example\n *\n * function Foo() {\n * this.a = 1;\n * this.b = 2;\n * }\n *\n * Foo.prototype.c = 3;\n *\n * _.keysIn(new Foo);\n * // => ['a', 'b', 'c'] (iteration order is not guaranteed)\n */\n function keysIn(object) {\n return isArrayLike(object) ? arrayLikeKeys(object, true) : baseKeysIn(object);\n }\n\n /**\n * The opposite of `_.mapValues`; this method creates an object with the\n * same values as `object` and keys generated by running each own enumerable\n * string keyed property of `object` thru `iteratee`. The iteratee is invoked\n * with three arguments: (value, key, object).\n *\n * @static\n * @memberOf _\n * @since 3.8.0\n * @category Object\n * @param {Object} object The object to iterate over.\n * @param {Function} [iteratee=_.identity] The function invoked per iteration.\n * @returns {Object} Returns the new mapped object.\n * @see _.mapValues\n * @example\n *\n * _.mapKeys({ 'a': 1, 'b': 2 }, function(value, key) {\n * return key + value;\n * });\n * // => { 'a1': 1, 'b2': 2 }\n */\n function mapKeys(object, iteratee) {\n var result = {};\n iteratee = getIteratee(iteratee, 3);\n\n baseForOwn(object, function(value, key, object) {\n baseAssignValue(result, iteratee(value, key, object), value);\n });\n return result;\n }\n\n /**\n * Creates an object with the same keys as `object` and values generated\n * by running each own enumerable string keyed property of `object` thru\n * `iteratee`. The iteratee is invoked with three arguments:\n * (value, key, object).\n *\n * @static\n * @memberOf _\n * @since 2.4.0\n * @category Object\n * @param {Object} object The object to iterate over.\n * @param {Function} [iteratee=_.identity] The function invoked per iteration.\n * @returns {Object} Returns the new mapped object.\n * @see _.mapKeys\n * @example\n *\n * var users = {\n * 'fred': { 'user': 'fred', 'age': 40 },\n * 'pebbles': { 'user': 'pebbles', 'age': 1 }\n * };\n *\n * _.mapValues(users, function(o) { return o.age; });\n * // => { 'fred': 40, 'pebbles': 1 } (iteration order is not guaranteed)\n *\n * // The `_.property` iteratee shorthand.\n * _.mapValues(users, 'age');\n * // => { 'fred': 40, 'pebbles': 1 } (iteration order is not guaranteed)\n */\n function mapValues(object, iteratee) {\n var result = {};\n iteratee = getIteratee(iteratee, 3);\n\n baseForOwn(object, function(value, key, object) {\n baseAssignValue(result, key, iteratee(value, key, object));\n });\n return result;\n }\n\n /**\n * This method is like `_.assign` except that it recursively merges own and\n * inherited enumerable string keyed properties of source objects into the\n * destination object. Source properties that resolve to `undefined` are\n * skipped if a destination value exists. Array and plain object properties\n * are merged recursively. Other objects and value types are overridden by\n * assignment. Source objects are applied from left to right. Subsequent\n * sources overwrite property assignments of previous sources.\n *\n * **Note:** This method mutates `object`.\n *\n * @static\n * @memberOf _\n * @since 0.5.0\n * @category Object\n * @param {Object} object The destination object.\n * @param {...Object} [sources] The source objects.\n * @returns {Object} Returns `object`.\n * @example\n *\n * var object = {\n * 'a': [{ 'b': 2 }, { 'd': 4 }]\n * };\n *\n * var other = {\n * 'a': [{ 'c': 3 }, { 'e': 5 }]\n * };\n *\n * _.merge(object, other);\n * // => { 'a': [{ 'b': 2, 'c': 3 }, { 'd': 4, 'e': 5 }] }\n */\n var merge = createAssigner(function(object, source, srcIndex) {\n baseMerge(object, source, srcIndex);\n });\n\n /**\n * This method is like `_.merge` except that it accepts `customizer` which\n * is invoked to produce the merged values of the destination and source\n * properties. If `customizer` returns `undefined`, merging is handled by the\n * method instead. The `customizer` is invoked with six arguments:\n * (objValue, srcValue, key, object, source, stack).\n *\n * **Note:** This method mutates `object`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Object\n * @param {Object} object The destination object.\n * @param {...Object} sources The source objects.\n * @param {Function} customizer The function to customize assigned values.\n * @returns {Object} Returns `object`.\n * @example\n *\n * function customizer(objValue, srcValue) {\n * if (_.isArray(objValue)) {\n * return objValue.concat(srcValue);\n * }\n * }\n *\n * var object = { 'a': [1], 'b': [2] };\n * var other = { 'a': [3], 'b': [4] };\n *\n * _.mergeWith(object, other, customizer);\n * // => { 'a': [1, 3], 'b': [2, 4] }\n */\n var mergeWith = createAssigner(function(object, source, srcIndex, customizer) {\n baseMerge(object, source, srcIndex, customizer);\n });\n\n /**\n * The opposite of `_.pick`; this method creates an object composed of the\n * own and inherited enumerable property paths of `object` that are not omitted.\n *\n * **Note:** This method is considerably slower than `_.pick`.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Object\n * @param {Object} object The source object.\n * @param {...(string|string[])} [paths] The property paths to omit.\n * @returns {Object} Returns the new object.\n * @example\n *\n * var object = { 'a': 1, 'b': '2', 'c': 3 };\n *\n * _.omit(object, ['a', 'c']);\n * // => { 'b': '2' }\n */\n var omit = flatRest(function(object, paths) {\n var result = {};\n if (object == null) {\n return result;\n }\n var isDeep = false;\n paths = arrayMap(paths, function(path) {\n path = castPath(path, object);\n isDeep || (isDeep = path.length > 1);\n return path;\n });\n copyObject(object, getAllKeysIn(object), result);\n if (isDeep) {\n result = baseClone(result, CLONE_DEEP_FLAG | CLONE_FLAT_FLAG | CLONE_SYMBOLS_FLAG, customOmitClone);\n }\n var length = paths.length;\n while (length--) {\n baseUnset(result, paths[length]);\n }\n return result;\n });\n\n /**\n * The opposite of `_.pickBy`; this method creates an object composed of\n * the own and inherited enumerable string keyed properties of `object` that\n * `predicate` doesn't return truthy for. The predicate is invoked with two\n * arguments: (value, key).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Object\n * @param {Object} object The source object.\n * @param {Function} [predicate=_.identity] The function invoked per property.\n * @returns {Object} Returns the new object.\n * @example\n *\n * var object = { 'a': 1, 'b': '2', 'c': 3 };\n *\n * _.omitBy(object, _.isNumber);\n * // => { 'b': '2' }\n */\n function omitBy(object, predicate) {\n return pickBy(object, negate(getIteratee(predicate)));\n }\n\n /**\n * Creates an object composed of the picked `object` properties.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Object\n * @param {Object} object The source object.\n * @param {...(string|string[])} [paths] The property paths to pick.\n * @returns {Object} Returns the new object.\n * @example\n *\n * var object = { 'a': 1, 'b': '2', 'c': 3 };\n *\n * _.pick(object, ['a', 'c']);\n * // => { 'a': 1, 'c': 3 }\n */\n var pick = flatRest(function(object, paths) {\n return object == null ? {} : basePick(object, paths);\n });\n\n /**\n * Creates an object composed of the `object` properties `predicate` returns\n * truthy for. The predicate is invoked with two arguments: (value, key).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Object\n * @param {Object} object The source object.\n * @param {Function} [predicate=_.identity] The function invoked per property.\n * @returns {Object} Returns the new object.\n * @example\n *\n * var object = { 'a': 1, 'b': '2', 'c': 3 };\n *\n * _.pickBy(object, _.isNumber);\n * // => { 'a': 1, 'c': 3 }\n */\n function pickBy(object, predicate) {\n if (object == null) {\n return {};\n }\n var props = arrayMap(getAllKeysIn(object), function(prop) {\n return [prop];\n });\n predicate = getIteratee(predicate);\n return basePickBy(object, props, function(value, path) {\n return predicate(value, path[0]);\n });\n }\n\n /**\n * This method is like `_.get` except that if the resolved value is a\n * function it's invoked with the `this` binding of its parent object and\n * its result is returned.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Object\n * @param {Object} object The object to query.\n * @param {Array|string} path The path of the property to resolve.\n * @param {*} [defaultValue] The value returned for `undefined` resolved values.\n * @returns {*} Returns the resolved value.\n * @example\n *\n * var object = { 'a': [{ 'b': { 'c1': 3, 'c2': _.constant(4) } }] };\n *\n * _.result(object, 'a[0].b.c1');\n * // => 3\n *\n * _.result(object, 'a[0].b.c2');\n * // => 4\n *\n * _.result(object, 'a[0].b.c3', 'default');\n * // => 'default'\n *\n * _.result(object, 'a[0].b.c3', _.constant('default'));\n * // => 'default'\n */\n function result(object, path, defaultValue) {\n path = castPath(path, object);\n\n var index = -1,\n length = path.length;\n\n // Ensure the loop is entered when path is empty.\n if (!length) {\n length = 1;\n object = undefined;\n }\n while (++index < length) {\n var value = object == null ? undefined : object[toKey(path[index])];\n if (value === undefined) {\n index = length;\n value = defaultValue;\n }\n object = isFunction(value) ? value.call(object) : value;\n }\n return object;\n }\n\n /**\n * Sets the value at `path` of `object`. If a portion of `path` doesn't exist,\n * it's created. Arrays are created for missing index properties while objects\n * are created for all other missing properties. Use `_.setWith` to customize\n * `path` creation.\n *\n * **Note:** This method mutates `object`.\n *\n * @static\n * @memberOf _\n * @since 3.7.0\n * @category Object\n * @param {Object} object The object to modify.\n * @param {Array|string} path The path of the property to set.\n * @param {*} value The value to set.\n * @returns {Object} Returns `object`.\n * @example\n *\n * var object = { 'a': [{ 'b': { 'c': 3 } }] };\n *\n * _.set(object, 'a[0].b.c', 4);\n * console.log(object.a[0].b.c);\n * // => 4\n *\n * _.set(object, ['x', '0', 'y', 'z'], 5);\n * console.log(object.x[0].y.z);\n * // => 5\n */\n function set(object, path, value) {\n return object == null ? object : baseSet(object, path, value);\n }\n\n /**\n * This method is like `_.set` except that it accepts `customizer` which is\n * invoked to produce the objects of `path`. If `customizer` returns `undefined`\n * path creation is handled by the method instead. The `customizer` is invoked\n * with three arguments: (nsValue, key, nsObject).\n *\n * **Note:** This method mutates `object`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Object\n * @param {Object} object The object to modify.\n * @param {Array|string} path The path of the property to set.\n * @param {*} value The value to set.\n * @param {Function} [customizer] The function to customize assigned values.\n * @returns {Object} Returns `object`.\n * @example\n *\n * var object = {};\n *\n * _.setWith(object, '[0][1]', 'a', Object);\n * // => { '0': { '1': 'a' } }\n */\n function setWith(object, path, value, customizer) {\n customizer = typeof customizer == 'function' ? customizer : undefined;\n return object == null ? object : baseSet(object, path, value, customizer);\n }\n\n /**\n * Creates an array of own enumerable string keyed-value pairs for `object`\n * which can be consumed by `_.fromPairs`. If `object` is a map or set, its\n * entries are returned.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @alias entries\n * @category Object\n * @param {Object} object The object to query.\n * @returns {Array} Returns the key-value pairs.\n * @example\n *\n * function Foo() {\n * this.a = 1;\n * this.b = 2;\n * }\n *\n * Foo.prototype.c = 3;\n *\n * _.toPairs(new Foo);\n * // => [['a', 1], ['b', 2]] (iteration order is not guaranteed)\n */\n var toPairs = createToPairs(keys);\n\n /**\n * Creates an array of own and inherited enumerable string keyed-value pairs\n * for `object` which can be consumed by `_.fromPairs`. If `object` is a map\n * or set, its entries are returned.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @alias entriesIn\n * @category Object\n * @param {Object} object The object to query.\n * @returns {Array} Returns the key-value pairs.\n * @example\n *\n * function Foo() {\n * this.a = 1;\n * this.b = 2;\n * }\n *\n * Foo.prototype.c = 3;\n *\n * _.toPairsIn(new Foo);\n * // => [['a', 1], ['b', 2], ['c', 3]] (iteration order is not guaranteed)\n */\n var toPairsIn = createToPairs(keysIn);\n\n /**\n * An alternative to `_.reduce`; this method transforms `object` to a new\n * `accumulator` object which is the result of running each of its own\n * enumerable string keyed properties thru `iteratee`, with each invocation\n * potentially mutating the `accumulator` object. If `accumulator` is not\n * provided, a new object with the same `[[Prototype]]` will be used. The\n * iteratee is invoked with four arguments: (accumulator, value, key, object).\n * Iteratee functions may exit iteration early by explicitly returning `false`.\n *\n * @static\n * @memberOf _\n * @since 1.3.0\n * @category Object\n * @param {Object} object The object to iterate over.\n * @param {Function} [iteratee=_.identity] The function invoked per iteration.\n * @param {*} [accumulator] The custom accumulator value.\n * @returns {*} Returns the accumulated value.\n * @example\n *\n * _.transform([2, 3, 4], function(result, n) {\n * result.push(n *= n);\n * return n % 2 == 0;\n * }, []);\n * // => [4, 9]\n *\n * _.transform({ 'a': 1, 'b': 2, 'c': 1 }, function(result, value, key) {\n * (result[value] || (result[value] = [])).push(key);\n * }, {});\n * // => { '1': ['a', 'c'], '2': ['b'] }\n */\n function transform(object, iteratee, accumulator) {\n var isArr = isArray(object),\n isArrLike = isArr || isBuffer(object) || isTypedArray(object);\n\n iteratee = getIteratee(iteratee, 4);\n if (accumulator == null) {\n var Ctor = object && object.constructor;\n if (isArrLike) {\n accumulator = isArr ? new Ctor : [];\n }\n else if (isObject(object)) {\n accumulator = isFunction(Ctor) ? baseCreate(getPrototype(object)) : {};\n }\n else {\n accumulator = {};\n }\n }\n (isArrLike ? arrayEach : baseForOwn)(object, function(value, index, object) {\n return iteratee(accumulator, value, index, object);\n });\n return accumulator;\n }\n\n /**\n * Removes the property at `path` of `object`.\n *\n * **Note:** This method mutates `object`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Object\n * @param {Object} object The object to modify.\n * @param {Array|string} path The path of the property to unset.\n * @returns {boolean} Returns `true` if the property is deleted, else `false`.\n * @example\n *\n * var object = { 'a': [{ 'b': { 'c': 7 } }] };\n * _.unset(object, 'a[0].b.c');\n * // => true\n *\n * console.log(object);\n * // => { 'a': [{ 'b': {} }] };\n *\n * _.unset(object, ['a', '0', 'b', 'c']);\n * // => true\n *\n * console.log(object);\n * // => { 'a': [{ 'b': {} }] };\n */\n function unset(object, path) {\n return object == null ? true : baseUnset(object, path);\n }\n\n /**\n * This method is like `_.set` except that accepts `updater` to produce the\n * value to set. Use `_.updateWith` to customize `path` creation. The `updater`\n * is invoked with one argument: (value).\n *\n * **Note:** This method mutates `object`.\n *\n * @static\n * @memberOf _\n * @since 4.6.0\n * @category Object\n * @param {Object} object The object to modify.\n * @param {Array|string} path The path of the property to set.\n * @param {Function} updater The function to produce the updated value.\n * @returns {Object} Returns `object`.\n * @example\n *\n * var object = { 'a': [{ 'b': { 'c': 3 } }] };\n *\n * _.update(object, 'a[0].b.c', function(n) { return n * n; });\n * console.log(object.a[0].b.c);\n * // => 9\n *\n * _.update(object, 'x[0].y.z', function(n) { return n ? n + 1 : 0; });\n * console.log(object.x[0].y.z);\n * // => 0\n */\n function update(object, path, updater) {\n return object == null ? object : baseUpdate(object, path, castFunction(updater));\n }\n\n /**\n * This method is like `_.update` except that it accepts `customizer` which is\n * invoked to produce the objects of `path`. If `customizer` returns `undefined`\n * path creation is handled by the method instead. The `customizer` is invoked\n * with three arguments: (nsValue, key, nsObject).\n *\n * **Note:** This method mutates `object`.\n *\n * @static\n * @memberOf _\n * @since 4.6.0\n * @category Object\n * @param {Object} object The object to modify.\n * @param {Array|string} path The path of the property to set.\n * @param {Function} updater The function to produce the updated value.\n * @param {Function} [customizer] The function to customize assigned values.\n * @returns {Object} Returns `object`.\n * @example\n *\n * var object = {};\n *\n * _.updateWith(object, '[0][1]', _.constant('a'), Object);\n * // => { '0': { '1': 'a' } }\n */\n function updateWith(object, path, updater, customizer) {\n customizer = typeof customizer == 'function' ? customizer : undefined;\n return object == null ? object : baseUpdate(object, path, castFunction(updater), customizer);\n }\n\n /**\n * Creates an array of the own enumerable string keyed property values of `object`.\n *\n * **Note:** Non-object values are coerced to objects.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Object\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property values.\n * @example\n *\n * function Foo() {\n * this.a = 1;\n * this.b = 2;\n * }\n *\n * Foo.prototype.c = 3;\n *\n * _.values(new Foo);\n * // => [1, 2] (iteration order is not guaranteed)\n *\n * _.values('hi');\n * // => ['h', 'i']\n */\n function values(object) {\n return object == null ? [] : baseValues(object, keys(object));\n }\n\n /**\n * Creates an array of the own and inherited enumerable string keyed property\n * values of `object`.\n *\n * **Note:** Non-object values are coerced to objects.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Object\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property values.\n * @example\n *\n * function Foo() {\n * this.a = 1;\n * this.b = 2;\n * }\n *\n * Foo.prototype.c = 3;\n *\n * _.valuesIn(new Foo);\n * // => [1, 2, 3] (iteration order is not guaranteed)\n */\n function valuesIn(object) {\n return object == null ? [] : baseValues(object, keysIn(object));\n }\n\n /*------------------------------------------------------------------------*/\n\n /**\n * Clamps `number` within the inclusive `lower` and `upper` bounds.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Number\n * @param {number} number The number to clamp.\n * @param {number} [lower] The lower bound.\n * @param {number} upper The upper bound.\n * @returns {number} Returns the clamped number.\n * @example\n *\n * _.clamp(-10, -5, 5);\n * // => -5\n *\n * _.clamp(10, -5, 5);\n * // => 5\n */\n function clamp(number, lower, upper) {\n if (upper === undefined) {\n upper = lower;\n lower = undefined;\n }\n if (upper !== undefined) {\n upper = toNumber(upper);\n upper = upper === upper ? upper : 0;\n }\n if (lower !== undefined) {\n lower = toNumber(lower);\n lower = lower === lower ? lower : 0;\n }\n return baseClamp(toNumber(number), lower, upper);\n }\n\n /**\n * Checks if `n` is between `start` and up to, but not including, `end`. If\n * `end` is not specified, it's set to `start` with `start` then set to `0`.\n * If `start` is greater than `end` the params are swapped to support\n * negative ranges.\n *\n * @static\n * @memberOf _\n * @since 3.3.0\n * @category Number\n * @param {number} number The number to check.\n * @param {number} [start=0] The start of the range.\n * @param {number} end The end of the range.\n * @returns {boolean} Returns `true` if `number` is in the range, else `false`.\n * @see _.range, _.rangeRight\n * @example\n *\n * _.inRange(3, 2, 4);\n * // => true\n *\n * _.inRange(4, 8);\n * // => true\n *\n * _.inRange(4, 2);\n * // => false\n *\n * _.inRange(2, 2);\n * // => false\n *\n * _.inRange(1.2, 2);\n * // => true\n *\n * _.inRange(5.2, 4);\n * // => false\n *\n * _.inRange(-3, -2, -6);\n * // => true\n */\n function inRange(number, start, end) {\n start = toFinite(start);\n if (end === undefined) {\n end = start;\n start = 0;\n } else {\n end = toFinite(end);\n }\n number = toNumber(number);\n return baseInRange(number, start, end);\n }\n\n /**\n * Produces a random number between the inclusive `lower` and `upper` bounds.\n * If only one argument is provided a number between `0` and the given number\n * is returned. If `floating` is `true`, or either `lower` or `upper` are\n * floats, a floating-point number is returned instead of an integer.\n *\n * **Note:** JavaScript follows the IEEE-754 standard for resolving\n * floating-point values which can produce unexpected results.\n *\n * @static\n * @memberOf _\n * @since 0.7.0\n * @category Number\n * @param {number} [lower=0] The lower bound.\n * @param {number} [upper=1] The upper bound.\n * @param {boolean} [floating] Specify returning a floating-point number.\n * @returns {number} Returns the random number.\n * @example\n *\n * _.random(0, 5);\n * // => an integer between 0 and 5\n *\n * _.random(5);\n * // => also an integer between 0 and 5\n *\n * _.random(5, true);\n * // => a floating-point number between 0 and 5\n *\n * _.random(1.2, 5.2);\n * // => a floating-point number between 1.2 and 5.2\n */\n function random(lower, upper, floating) {\n if (floating && typeof floating != 'boolean' && isIterateeCall(lower, upper, floating)) {\n upper = floating = undefined;\n }\n if (floating === undefined) {\n if (typeof upper == 'boolean') {\n floating = upper;\n upper = undefined;\n }\n else if (typeof lower == 'boolean') {\n floating = lower;\n lower = undefined;\n }\n }\n if (lower === undefined && upper === undefined) {\n lower = 0;\n upper = 1;\n }\n else {\n lower = toFinite(lower);\n if (upper === undefined) {\n upper = lower;\n lower = 0;\n } else {\n upper = toFinite(upper);\n }\n }\n if (lower > upper) {\n var temp = lower;\n lower = upper;\n upper = temp;\n }\n if (floating || lower % 1 || upper % 1) {\n var rand = nativeRandom();\n return nativeMin(lower + (rand * (upper - lower + freeParseFloat('1e-' + ((rand + '').length - 1)))), upper);\n }\n return baseRandom(lower, upper);\n }\n\n /*------------------------------------------------------------------------*/\n\n /**\n * Converts `string` to [camel case](https://en.wikipedia.org/wiki/CamelCase).\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category String\n * @param {string} [string=''] The string to convert.\n * @returns {string} Returns the camel cased string.\n * @example\n *\n * _.camelCase('Foo Bar');\n * // => 'fooBar'\n *\n * _.camelCase('--foo-bar--');\n * // => 'fooBar'\n *\n * _.camelCase('__FOO_BAR__');\n * // => 'fooBar'\n */\n var camelCase = createCompounder(function(result, word, index) {\n word = word.toLowerCase();\n return result + (index ? capitalize(word) : word);\n });\n\n /**\n * Converts the first character of `string` to upper case and the remaining\n * to lower case.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category String\n * @param {string} [string=''] The string to capitalize.\n * @returns {string} Returns the capitalized string.\n * @example\n *\n * _.capitalize('FRED');\n * // => 'Fred'\n */\n function capitalize(string) {\n return upperFirst(toString(string).toLowerCase());\n }\n\n /**\n * Deburrs `string` by converting\n * [Latin-1 Supplement](https://en.wikipedia.org/wiki/Latin-1_Supplement_(Unicode_block)#Character_table)\n * and [Latin Extended-A](https://en.wikipedia.org/wiki/Latin_Extended-A)\n * letters to basic Latin letters and removing\n * [combining diacritical marks](https://en.wikipedia.org/wiki/Combining_Diacritical_Marks).\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category String\n * @param {string} [string=''] The string to deburr.\n * @returns {string} Returns the deburred string.\n * @example\n *\n * _.deburr('déjà vu');\n * // => 'deja vu'\n */\n function deburr(string) {\n string = toString(string);\n return string && string.replace(reLatin, deburrLetter).replace(reComboMark, '');\n }\n\n /**\n * Checks if `string` ends with the given target string.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category String\n * @param {string} [string=''] The string to inspect.\n * @param {string} [target] The string to search for.\n * @param {number} [position=string.length] The position to search up to.\n * @returns {boolean} Returns `true` if `string` ends with `target`,\n * else `false`.\n * @example\n *\n * _.endsWith('abc', 'c');\n * // => true\n *\n * _.endsWith('abc', 'b');\n * // => false\n *\n * _.endsWith('abc', 'b', 2);\n * // => true\n */\n function endsWith(string, target, position) {\n string = toString(string);\n target = baseToString(target);\n\n var length = string.length;\n position = position === undefined\n ? length\n : baseClamp(toInteger(position), 0, length);\n\n var end = position;\n position -= target.length;\n return position >= 0 && string.slice(position, end) == target;\n }\n\n /**\n * Converts the characters \"&\", \"<\", \">\", '\"', and \"'\" in `string` to their\n * corresponding HTML entities.\n *\n * **Note:** No other characters are escaped. To escape additional\n * characters use a third-party library like [_he_](https://mths.be/he).\n *\n * Though the \">\" character is escaped for symmetry, characters like\n * \">\" and \"/\" don't need escaping in HTML and have no special meaning\n * unless they're part of a tag or unquoted attribute value. See\n * [Mathias Bynens's article](https://mathiasbynens.be/notes/ambiguous-ampersands)\n * (under \"semi-related fun fact\") for more details.\n *\n * When working with HTML you should always\n * [quote attribute values](http://wonko.com/post/html-escaping) to reduce\n * XSS vectors.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category String\n * @param {string} [string=''] The string to escape.\n * @returns {string} Returns the escaped string.\n * @example\n *\n * _.escape('fred, barney, & pebbles');\n * // => 'fred, barney, & pebbles'\n */\n function escape(string) {\n string = toString(string);\n return (string && reHasUnescapedHtml.test(string))\n ? string.replace(reUnescapedHtml, escapeHtmlChar)\n : string;\n }\n\n /**\n * Escapes the `RegExp` special characters \"^\", \"$\", \"\\\", \".\", \"*\", \"+\",\n * \"?\", \"(\", \")\", \"[\", \"]\", \"{\", \"}\", and \"|\" in `string`.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category String\n * @param {string} [string=''] The string to escape.\n * @returns {string} Returns the escaped string.\n * @example\n *\n * _.escapeRegExp('[lodash](https://lodash.com/)');\n * // => '\\[lodash\\]\\(https://lodash\\.com/\\)'\n */\n function escapeRegExp(string) {\n string = toString(string);\n return (string && reHasRegExpChar.test(string))\n ? string.replace(reRegExpChar, '\\\\$&')\n : string;\n }\n\n /**\n * Converts `string` to\n * [kebab case](https://en.wikipedia.org/wiki/Letter_case#Special_case_styles).\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category String\n * @param {string} [string=''] The string to convert.\n * @returns {string} Returns the kebab cased string.\n * @example\n *\n * _.kebabCase('Foo Bar');\n * // => 'foo-bar'\n *\n * _.kebabCase('fooBar');\n * // => 'foo-bar'\n *\n * _.kebabCase('__FOO_BAR__');\n * // => 'foo-bar'\n */\n var kebabCase = createCompounder(function(result, word, index) {\n return result + (index ? '-' : '') + word.toLowerCase();\n });\n\n /**\n * Converts `string`, as space separated words, to lower case.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category String\n * @param {string} [string=''] The string to convert.\n * @returns {string} Returns the lower cased string.\n * @example\n *\n * _.lowerCase('--Foo-Bar--');\n * // => 'foo bar'\n *\n * _.lowerCase('fooBar');\n * // => 'foo bar'\n *\n * _.lowerCase('__FOO_BAR__');\n * // => 'foo bar'\n */\n var lowerCase = createCompounder(function(result, word, index) {\n return result + (index ? ' ' : '') + word.toLowerCase();\n });\n\n /**\n * Converts the first character of `string` to lower case.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category String\n * @param {string} [string=''] The string to convert.\n * @returns {string} Returns the converted string.\n * @example\n *\n * _.lowerFirst('Fred');\n * // => 'fred'\n *\n * _.lowerFirst('FRED');\n * // => 'fRED'\n */\n var lowerFirst = createCaseFirst('toLowerCase');\n\n /**\n * Pads `string` on the left and right sides if it's shorter than `length`.\n * Padding characters are truncated if they can't be evenly divided by `length`.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category String\n * @param {string} [string=''] The string to pad.\n * @param {number} [length=0] The padding length.\n * @param {string} [chars=' '] The string used as padding.\n * @returns {string} Returns the padded string.\n * @example\n *\n * _.pad('abc', 8);\n * // => ' abc '\n *\n * _.pad('abc', 8, '_-');\n * // => '_-abc_-_'\n *\n * _.pad('abc', 3);\n * // => 'abc'\n */\n function pad(string, length, chars) {\n string = toString(string);\n length = toInteger(length);\n\n var strLength = length ? stringSize(string) : 0;\n if (!length || strLength >= length) {\n return string;\n }\n var mid = (length - strLength) / 2;\n return (\n createPadding(nativeFloor(mid), chars) +\n string +\n createPadding(nativeCeil(mid), chars)\n );\n }\n\n /**\n * Pads `string` on the right side if it's shorter than `length`. Padding\n * characters are truncated if they exceed `length`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category String\n * @param {string} [string=''] The string to pad.\n * @param {number} [length=0] The padding length.\n * @param {string} [chars=' '] The string used as padding.\n * @returns {string} Returns the padded string.\n * @example\n *\n * _.padEnd('abc', 6);\n * // => 'abc '\n *\n * _.padEnd('abc', 6, '_-');\n * // => 'abc_-_'\n *\n * _.padEnd('abc', 3);\n * // => 'abc'\n */\n function padEnd(string, length, chars) {\n string = toString(string);\n length = toInteger(length);\n\n var strLength = length ? stringSize(string) : 0;\n return (length && strLength < length)\n ? (string + createPadding(length - strLength, chars))\n : string;\n }\n\n /**\n * Pads `string` on the left side if it's shorter than `length`. Padding\n * characters are truncated if they exceed `length`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category String\n * @param {string} [string=''] The string to pad.\n * @param {number} [length=0] The padding length.\n * @param {string} [chars=' '] The string used as padding.\n * @returns {string} Returns the padded string.\n * @example\n *\n * _.padStart('abc', 6);\n * // => ' abc'\n *\n * _.padStart('abc', 6, '_-');\n * // => '_-_abc'\n *\n * _.padStart('abc', 3);\n * // => 'abc'\n */\n function padStart(string, length, chars) {\n string = toString(string);\n length = toInteger(length);\n\n var strLength = length ? stringSize(string) : 0;\n return (length && strLength < length)\n ? (createPadding(length - strLength, chars) + string)\n : string;\n }\n\n /**\n * Converts `string` to an integer of the specified radix. If `radix` is\n * `undefined` or `0`, a `radix` of `10` is used unless `value` is a\n * hexadecimal, in which case a `radix` of `16` is used.\n *\n * **Note:** This method aligns with the\n * [ES5 implementation](https://es5.github.io/#x15.1.2.2) of `parseInt`.\n *\n * @static\n * @memberOf _\n * @since 1.1.0\n * @category String\n * @param {string} string The string to convert.\n * @param {number} [radix=10] The radix to interpret `value` by.\n * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.\n * @returns {number} Returns the converted integer.\n * @example\n *\n * _.parseInt('08');\n * // => 8\n *\n * _.map(['6', '08', '10'], _.parseInt);\n * // => [6, 8, 10]\n */\n function parseInt(string, radix, guard) {\n if (guard || radix == null) {\n radix = 0;\n } else if (radix) {\n radix = +radix;\n }\n return nativeParseInt(toString(string).replace(reTrimStart, ''), radix || 0);\n }\n\n /**\n * Repeats the given string `n` times.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category String\n * @param {string} [string=''] The string to repeat.\n * @param {number} [n=1] The number of times to repeat the string.\n * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.\n * @returns {string} Returns the repeated string.\n * @example\n *\n * _.repeat('*', 3);\n * // => '***'\n *\n * _.repeat('abc', 2);\n * // => 'abcabc'\n *\n * _.repeat('abc', 0);\n * // => ''\n */\n function repeat(string, n, guard) {\n if ((guard ? isIterateeCall(string, n, guard) : n === undefined)) {\n n = 1;\n } else {\n n = toInteger(n);\n }\n return baseRepeat(toString(string), n);\n }\n\n /**\n * Replaces matches for `pattern` in `string` with `replacement`.\n *\n * **Note:** This method is based on\n * [`String#replace`](https://mdn.io/String/replace).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category String\n * @param {string} [string=''] The string to modify.\n * @param {RegExp|string} pattern The pattern to replace.\n * @param {Function|string} replacement The match replacement.\n * @returns {string} Returns the modified string.\n * @example\n *\n * _.replace('Hi Fred', 'Fred', 'Barney');\n * // => 'Hi Barney'\n */\n function replace() {\n var args = arguments,\n string = toString(args[0]);\n\n return args.length < 3 ? string : string.replace(args[1], args[2]);\n }\n\n /**\n * Converts `string` to\n * [snake case](https://en.wikipedia.org/wiki/Snake_case).\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category String\n * @param {string} [string=''] The string to convert.\n * @returns {string} Returns the snake cased string.\n * @example\n *\n * _.snakeCase('Foo Bar');\n * // => 'foo_bar'\n *\n * _.snakeCase('fooBar');\n * // => 'foo_bar'\n *\n * _.snakeCase('--FOO-BAR--');\n * // => 'foo_bar'\n */\n var snakeCase = createCompounder(function(result, word, index) {\n return result + (index ? '_' : '') + word.toLowerCase();\n });\n\n /**\n * Splits `string` by `separator`.\n *\n * **Note:** This method is based on\n * [`String#split`](https://mdn.io/String/split).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category String\n * @param {string} [string=''] The string to split.\n * @param {RegExp|string} separator The separator pattern to split by.\n * @param {number} [limit] The length to truncate results to.\n * @returns {Array} Returns the string segments.\n * @example\n *\n * _.split('a-b-c', '-', 2);\n * // => ['a', 'b']\n */\n function split(string, separator, limit) {\n if (limit && typeof limit != 'number' && isIterateeCall(string, separator, limit)) {\n separator = limit = undefined;\n }\n limit = limit === undefined ? MAX_ARRAY_LENGTH : limit >>> 0;\n if (!limit) {\n return [];\n }\n string = toString(string);\n if (string && (\n typeof separator == 'string' ||\n (separator != null && !isRegExp(separator))\n )) {\n separator = baseToString(separator);\n if (!separator && hasUnicode(string)) {\n return castSlice(stringToArray(string), 0, limit);\n }\n }\n return string.split(separator, limit);\n }\n\n /**\n * Converts `string` to\n * [start case](https://en.wikipedia.org/wiki/Letter_case#Stylistic_or_specialised_usage).\n *\n * @static\n * @memberOf _\n * @since 3.1.0\n * @category String\n * @param {string} [string=''] The string to convert.\n * @returns {string} Returns the start cased string.\n * @example\n *\n * _.startCase('--foo-bar--');\n * // => 'Foo Bar'\n *\n * _.startCase('fooBar');\n * // => 'Foo Bar'\n *\n * _.startCase('__FOO_BAR__');\n * // => 'FOO BAR'\n */\n var startCase = createCompounder(function(result, word, index) {\n return result + (index ? ' ' : '') + upperFirst(word);\n });\n\n /**\n * Checks if `string` starts with the given target string.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category String\n * @param {string} [string=''] The string to inspect.\n * @param {string} [target] The string to search for.\n * @param {number} [position=0] The position to search from.\n * @returns {boolean} Returns `true` if `string` starts with `target`,\n * else `false`.\n * @example\n *\n * _.startsWith('abc', 'a');\n * // => true\n *\n * _.startsWith('abc', 'b');\n * // => false\n *\n * _.startsWith('abc', 'b', 1);\n * // => true\n */\n function startsWith(string, target, position) {\n string = toString(string);\n position = position == null\n ? 0\n : baseClamp(toInteger(position), 0, string.length);\n\n target = baseToString(target);\n return string.slice(position, position + target.length) == target;\n }\n\n /**\n * Creates a compiled template function that can interpolate data properties\n * in \"interpolate\" delimiters, HTML-escape interpolated data properties in\n * \"escape\" delimiters, and execute JavaScript in \"evaluate\" delimiters. Data\n * properties may be accessed as free variables in the template. If a setting\n * object is given, it takes precedence over `_.templateSettings` values.\n *\n * **Note:** In the development build `_.template` utilizes\n * [sourceURLs](http://www.html5rocks.com/en/tutorials/developertools/sourcemaps/#toc-sourceurl)\n * for easier debugging.\n *\n * For more information on precompiling templates see\n * [lodash's custom builds documentation](https://lodash.com/custom-builds).\n *\n * For more information on Chrome extension sandboxes see\n * [Chrome's extensions documentation](https://developer.chrome.com/extensions/sandboxingEval).\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category String\n * @param {string} [string=''] The template string.\n * @param {Object} [options={}] The options object.\n * @param {RegExp} [options.escape=_.templateSettings.escape]\n * The HTML \"escape\" delimiter.\n * @param {RegExp} [options.evaluate=_.templateSettings.evaluate]\n * The \"evaluate\" delimiter.\n * @param {Object} [options.imports=_.templateSettings.imports]\n * An object to import into the template as free variables.\n * @param {RegExp} [options.interpolate=_.templateSettings.interpolate]\n * The \"interpolate\" delimiter.\n * @param {string} [options.sourceURL='lodash.templateSources[n]']\n * The sourceURL of the compiled template.\n * @param {string} [options.variable='obj']\n * The data object variable name.\n * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.\n * @returns {Function} Returns the compiled template function.\n * @example\n *\n * // Use the \"interpolate\" delimiter to create a compiled template.\n * var compiled = _.template('hello <%= user %>!');\n * compiled({ 'user': 'fred' });\n * // => 'hello fred!'\n *\n * // Use the HTML \"escape\" delimiter to escape data property values.\n * var compiled = _.template('<%- value %>');\n * compiled({ 'value': '