react-relay
Version:
A framework for building data-driven React applications.
13 lines • 196 kB
JavaScript
/**
* Relay v0.2.0
*
* Copyright 2013-2015, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
*/
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("React")):"function"==typeof define&&define.amd?define(["React"],e):"object"==typeof exports?exports.Relay=e(require("React")):t.Relay=e(t.React)}(this,function(t){return function(t){function e(n){if(r[n])return r[n].exports;var i=r[n]={exports:{},id:n,loaded:!1};return t[n].call(i.exports,i,i.exports,e),i.loaded=!0,i.exports}var r={};return e.m=t,e.c=r,e.p="",e(0)}(function(t){for(var e in t)if(Object.prototype.hasOwnProperty.call(t,e))switch(typeof t[e]){case"function":break;case"object":t[e]=function(e){var r=e.slice(1),n=t[e[0]];return function(t,e,i){n.apply(this,[t,e,i].concat(r))}}(t[e]);break;default:t[e]=t[t[e]]}return t}([function(t,e,r){"use strict";var n=r(10).default,i=r(139),o=r(147);o.injectNetworkLayer(new i("/graphql")),t.exports=n({},o,{DefaultNetworkLayer:i})},function(t,e,r){"use strict";var n=function(t,e,r,n,i,o,a,s){var u,c,l;if(!t)throw void 0===e?u=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings."):(c=[r,n,i,o,a,s],l=0,u=new Error("Invariant Violation: "+e.replace(/%s/g,function(){return c[l++]}))),u.framesToPop=1,u};t.exports=n},function(t,e){"use strict";e.default=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},e.__esModule=!0},function(t,e,r){"use strict";function n(t,e,r){var n,o,a,s,u,c,d,h=!0;t:for(;h;){if(n=t,o=e,a=r,s=u=c=d=void 0,h=!1,s=T,l.isField(n))s=L;else if(l.isFragment(n))s=k;else if(l.isQuery(n))s=P;else if(l.isQueryWithValues(n))n=n.query,s=P;else if(l.isMutation(n))s=A;else if(l.isSubscription(n))s=Q;else{if(n instanceof p){if(u=n.getFragmentForRoute(o)){t=u,e=o,r=a,h=!0;continue t}return null}if(n instanceof f)return c=n.getFragment(a),d=n.getVariables(o,a),c?(l.isFragment(c)?void 0:D(!1),i(c,o,d,{isDeferred:n.isDeferred(),isReferenceFragment:!0,isTypeConditional:n.isTypeConditional()})):null;D(!1)}return new s(n,o,a)}}function i(t,e,r,n){var i=e.name+":"+C(r)+":"+C(n),o=t.__cachedFragment__,a=t.__cacheKey__;return o&&a===i||(o=new k(t,e,r,n),t.__cachedFragment__=o,t.__cacheKey__=i),o}function o(t,e){var r,n,i=[],o=!0,a=0;for(r=0;r<e.length;r++)n=e[r],n&&(i.push(n),o=o&&n===t[a++]);return o&&i.length===t.length?t:i}function a(t,e){if(t instanceof k&&t.isDeferred()){var r=t.getFragmentID();return void(e[r]=r)}t.getChildren().forEach(function(t){return a(t,e)})}var s=r(2).default,u=r(7).default,c=r(10).default,l=r(17),d=r(9),f=r(38),h=r(26),p=r(82),_=r(109),g=r(58),y=r(83),v=r(162),m=r(89),D=r(1),I=r(42),b=r(72),C=r(94),R="if",E="unless",S="true",N="false",F="q",x="ref_",w=0,O={isDeferred:!1,isReferenceFragment:!1,isTypeConditional:!1},T=function(){function t(e,r,n){s(this,t),"RelayQueryNode"===this.constructor.name?D(!1):void 0,this.__concreteNode__=e,this.__route__=r,this.__variables__=n,this.__calls__=null,this.__children__=null,this.__fieldMap__=null,this.__hasDeferredDescendant__=null,this.__hasValidatedConnectionCalls__=null,this.__serializationKey__=null,this.__storageKey__=null,this.__isConcreteNodeCached__=!1}return t.create=function(e,r,i){var o=n(e,r,i);return o instanceof t?void 0:D(!1),o},t.buildRoot=function(t,e,r,n,i){var o=r?r.filter(function(t){return!!t}):[],a=new l.Query(t,e||null,null,null,n,i),s=new P(a,h.get("$RelayQuery"),{});return s.__children__=o,s},t.buildFragment=function(t,e,r,n){var i=r?r.filter(function(t){return!!t}):[],o=new l.QueryFragment(t,e,null,null,n),a=new k(o,h.get("$RelayQuery"),{},{isDeferred:!(!n||!n.isDeferred),isReferenceFragment:!(!n||!n.isReferenceFragment),isTypeConditional:!(!n||!n.isTypeConditional)});return a.__children__=i,a},t.buildField=function(t,e,r,n,i){var o=r?r.filter(function(t){return!!t}):[],a=new l.Field(t,null,null,e?y(e):null,i,null,n),s=new L(a,h.get("$RelayQuery"),{});return s.__children__=o,s},t.buildMutation=function(t,e,r,n,i,o){var a=i?i.filter(function(t){return!!t}):[],s=new l.Mutation(t,e,new l.Callv(r,new l.CallVariable("input")),null,null,o),u=new A(s,h.get("$RelayQuery"),{input:n||""});return u.__children__=a,u},t.createFragment=function(t,e,r,n){return l.isFragment(t)?void 0:D(!1),i(t,e,r,n||O)},t.createQuery=function(t,e,r){return l.isQuery(t)?void 0:D(!1),new P(t,e,r)},t.prototype.isGenerated=function(){return!1},t.prototype.isRefQueryDependency=function(){return!1},t.prototype.isScalar=function(){return!1},t.prototype.clone=function e(r){var n,i,e;return this.isScalar()?(0!==r.length?D(!1):void 0,this):(n=this.getChildren(),i=o(n,r),i.length?i===n?this:(e=t.create(this.__concreteNode__,this.__route__,this.__variables__),e.__children__=i,e.__calls__=this.__calls__,e.__serializationKey__=this.__serializationKey__,e.__storageKey__=this.__storageKey__,e):null)},t.prototype.getChildren=function(){var t,e=this,r=this.__children__;return r||(t=[],this.__concreteNode__.children.forEach(function(r){var i=n(r,e.__route__,e.__variables__);i&&t.push(i)}),this.__children__=t,r=t),r},t.prototype.getField=function(t){return this.getFieldByStorageKey(t.getStorageKey())},t.prototype.getFieldByStorageKey=function(t){var e,r,n,i=this.__fieldMap__;if(!i){for(i={},r=this.getChildren(),n=0;n<r.length;n++)e=r[n],e instanceof L&&(i[e.getStorageKey()]=e);this.__fieldMap__=i}return i[t]},t.prototype.getRoute=function(){return this.__route__},t.prototype.getVariables=function(){return this.__variables__},t.prototype.hasDeferredDescendant=function r(){var r=this.__hasDeferredDescendant__;return null==r&&(r=!this.isScalar()&&this.getChildren().some(function(t){return t.hasDeferredDescendant()}),this.__hasDeferredDescendant__=r),r},t.prototype.isRequisite=function(){return!1},t.prototype.equals=function(t){var e=this.getChildren(),r=t.getChildren();return e===r||e.length===r.length&&e.every(function(t,e){return t.equals(r[e])})},t.prototype.isEquivalent=function(t){return this.__concreteNode__===t.__concreteNode__&&this.__route__===t.__route__&&b(this.__variables__,t.__variables__)},t.prototype.createNode=function(e){return t.create(e,this.__route__,this.__variables__)},t.prototype.getConcreteQueryNode=function(t){return this.__isConcreteNodeCached__||(this.__concreteNode__=t(),this.__isConcreteNodeCached__=!0),this.__concreteNode__},t}(),P=function(t){function e(r,n,i){s(this,e),t.call(this,r,n,i),this.__batchCall__=void 0,this.__deferredFragmentNames__=void 0,this.__id__=void 0,this.getID()}return u(e,t),e.prototype.getName=function(){var t=this.__concreteNode__.name;return t||(t=this.getID(),this.__concreteNode__.name=t),t},e.prototype.getID=function(){var t=this.__id__;return null==t&&(t=F+w++,this.__id__=t),t},e.prototype.getBatchCall=function(){var t,e,r=this.__batchCall__;return void 0===r&&(t=this.__concreteNode__.calls,e=t[0].value,r=l.isBatchCallVariable(e)?{refParamName:x+e.sourceQueryID,sourceQueryID:e.sourceQueryID,sourceQueryPath:e.jsonPath}:null,this.__batchCall__=r),r},e.prototype.getRootCall=function(){var t,e=this.__calls__;return e||(t=this.__concreteNode__.calls,e=g(t,this.__variables__),this.__calls__=e),e[0]},e.prototype.getCallType=function(){return this.__concreteNode__.calls.length>0?this.__concreteNode__.metadata.rootCallType:void 0},e.prototype.getRootCallArgument=function(){return this.__concreteNode__.metadata.rootArg},e.prototype.hasDeferredDescendant=function(){return this.isDeferred()||t.prototype.hasDeferredDescendant.call(this)},e.prototype.isDeferred=function(){return this.__concreteNode__.isDeferred},e.prototype.getDeferredFragmentNames=function(){var t=this.__deferredFragmentNames__;return t||(t={},a(this,t),this.__deferredFragmentNames__=t),t},e.prototype.equals=function(r){return this===r?!0:r instanceof e&&_(this.getRootCall(),r.getRootCall())&&_(this.getBatchCall(),r.getBatchCall())?this.getRootCallArgument()!==r.getRootCallArgument()?!1:t.prototype.equals.call(this,r):!1},e}(T),M=function(t){function e(r,n,i){s(this,e),t.call(this,r,n,i),"RelayQueryOperation"===this.constructor.name?D(!1):void 0}return u(e,t),e.prototype.getName=function(){return this.__concreteNode__.name},e.prototype.getResponseType=function(){return this.__concreteNode__.responseType},e.prototype.getInputType=function(){var t=this.__concreteNode__.metadata.inputType;return t?void 0:D(!1),t},e.prototype.getCall=function(){var t,e=this.__calls__;return e||(t=this.__concreteNode__.calls,e=g(t,this.__variables__),this.__calls__=e),e[0]},e.prototype.getCallVariableName=function(){var t,e;return this.__callVariableName__||(t=this.__concreteNode__.calls,e=t[0].value,l.isCallVariable(e)?void 0:D(!1),this.__callVariableName__=e.callVariableName),this.__callVariableName__},e}(T),A=function(t){function e(){s(this,e),t.apply(this,arguments)}return u(e,t),e.prototype.equals=function(r){return this===r?!0:r instanceof e&&_(this.getResponseType(),r.getResponseType())&&_(this.getCall(),r.getCall())?t.prototype.equals.call(this,r):!1},e}(M),Q=function(t){function e(){s(this,e),t.apply(this,arguments)}return u(e,t),e.prototype.getPublishedPayloadType=function(){return this.getResponseType()},e.prototype.equals=function(r){return this===r?!0:r instanceof e&&_(this.getPublishedPayloadType(),r.getPublishedPayloadType())&&_(this.getCall(),r.getCall())?t.prototype.equals.call(this,r):!1},e}(M),k=function(t){function e(r,n,i,o){s(this,e),t.call(this,r,n,i),this.__fragmentID__=null,this.__metadata__=o||O}return u(e,t),e.prototype.getDebugName=function(){return this.__concreteNode__.name},e.prototype.getConcreteFragmentID=function(){return m(this.__concreteNode__)},e.prototype.getFragmentID=function(){var t=this.__fragmentID__;return t||(t=v(this.getConcreteFragmentID()+"."+this.__route__.name+"."+C(this.__variables__)),this.__fragmentID__=t),t},e.prototype.getType=function(){return this.__concreteNode__.type},e.prototype.isDeferred=function(){return this.__metadata__.isDeferred},e.prototype.isPlural=function(){return!(!this.__concreteNode__.isPlural&&!this.__concreteNode__.metadata.plural)},e.prototype.isReferenceFragment=function(){return this.__metadata__.isReferenceFragment},e.prototype.isTypeConditional=function(){return this.__metadata__.isTypeConditional},e.prototype.hasDeferredDescendant=function(){return this.isDeferred()||t.prototype.hasDeferredDescendant.call(this)},e.prototype.clone=function r(n){var r=t.prototype.clone.call(this,n);return r instanceof e&&(r.__metadata__=c({},this.__metadata__)),r},e.prototype.equals=function(r){return this===r?!0:r instanceof e?this.getType()!==r.getType()?!1:t.prototype.equals.call(this,r):!1},e}(T),L=function(t){function e(r,n,i){s(this,e),t.call(this,r,n,i),this.__isRefQueryDependency__=!1}return u(e,t),e.prototype.isRequisite=function(){return this.__concreteNode__.metadata.isRequisite},e.prototype.isFindable=function(){return this.__concreteNode__.metadata.isFindable},e.prototype.isGenerated=function(){return this.__concreteNode__.metadata.isGenerated},e.prototype.isConnection=function(){return this.__concreteNode__.metadata.isConnection},e.prototype.isPlural=function(){return this.__concreteNode__.metadata.isPlural},e.prototype.isRefQueryDependency=function(){return this.__isRefQueryDependency__},e.prototype.isScalar=function(){return(!this.__children__||0===this.__children__.length)&&0===this.__concreteNode__.children.length},e.prototype.isUnionOrInterface=function(){return this.__concreteNode__.metadata.isUnionOrInterface},e.prototype.getParentType=function(){var t=this.__concreteNode__.metadata.parentType;return t?void 0:D(!1),t},e.prototype.getSchemaName=function(){return this.__concreteNode__.fieldName},e.prototype.getSerializationKey=function(){var t,e,r=this.__serializationKey__;if(!r){for(r=this.getSchemaName(),t=this.getCallsWithValues(),e=0;e<t.length;e++)r+=I(t[e]);r=v(r),this.__serializationKey__=r}return r},e.prototype.getStorageKey=function(){var t,e,r,n,i=this.__storageKey__;if(!i){for(t=this.isConnection(),i=this.getSchemaName(),e=this.getCallsWithValues(),r=0;r<e.length;r++)n=e[r],t&&d.isConnectionCall(n)||n.name===R&&String(n.value)===S||n.name===E&&String(n.value)===N||(i+=I(n));this.__storageKey__=i}return i},e.prototype.getApplicationName=function(){return this.__concreteNode__.alias||this.__concreteNode__.fieldName},e.prototype.getInferredRootCallName=function(){return this.__concreteNode__.metadata.inferredRootCallName},e.prototype.getInferredPrimaryKey=function(){return this.__concreteNode__.metadata.inferredPrimaryKey},e.prototype.getCallsWithValues=function(){var t,e=this.__calls__;return e||(t=this.__concreteNode__.calls,e=g(t,this.__variables__),this.__calls__=e),e},e.prototype.getCallType=function(t){var e=this.__concreteNode__.calls.filter(function(e){return e.name===t})[0];return e?e.metadata.type:void 0},e.prototype.equals=function(r){return this===r?!0:r instanceof e&&this.getSchemaName()===r.getSchemaName()&&this.getApplicationName()===r.getApplicationName()&&_(this.getCallsWithValues(),r.getCallsWithValues())?t.prototype.equals.call(this,r):!1},e.prototype.cloneAsRefQueryDependency=function(){var t=new e(this.__concreteNode__,this.__route__,this.__variables__);return t.__children__=[],t.__isRefQueryDependency__=!0,t},e.prototype.cloneFieldWithCalls=function(t,r){var n,i,a;return this.isScalar()&&(0!==t.length?D(!1):void 0),_(this.getCallsWithValues(),r)?n=this.clone(t):(i=o(this.getChildren(),t),i.length?(a=new e(this.__concreteNode__,this.__route__,this.__variables__),a.__children__=i,a.__calls__=r,a):null)},e}(T);t.exports={Field:L,Fragment:k,Mutation:A,Node:T,Operation:M,Root:P,Subscription:Q}},function(t,e,r){"use strict";var n=r(31),i=r(6),o=r(222),a={},s={stop:n},u=!1,c={setEnableProfile:function(t){u=t},instrumentMethods:function(t,e){i(e,function(e,r){t[r]=c.instrument(e,t[r])})},instrument:function(t,e){return e.attachHandler=n,e.detachHandler=n,e},attachAggregateHandler:function(t,e){},detachAggregateHandler:function(t,e){},profile:function(t,e){var r,n,i;if(u&&a.hasOwnProperty(t)){for(r=a[t],n=r.length-1;n>=0;n--)i=r[n],i.onStart&&i.onStart(t,e);return{stop:function(){a[t].forEach(function(r){r.onStop&&r.onStop(t,e)})}}}return s},attachProfileHandler:function(t,e){u&&(a.hasOwnProperty(t)||(a[t]=[]),a[t].push(e))},detachProfileHandler:function(t,e){u&&a.hasOwnProperty(t)&&o(a[t],e)}};t.exports=c},function(t,e,r){"use strict";t.exports={"default":r(187),__esModule:!0}},function(t,e){"use strict";function r(t,e,r){for(var i in t)n.call(t,i)&&e.call(r,t[i],i,t)}var n=Object.prototype.hasOwnProperty;t.exports=r},function(t,e,r){"use strict";var n=r(177).default,i=r(179).default;e.default=function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=n(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(i?i(t,e):t.__proto__=e)},e.__esModule=!0},function(t,e){"use strict";var r={__dataID__:!0,__range__:!0,__status__:!0},n={getID:function(t){return t.__dataID__},createPointerWithID:function(t){return{__dataID__:t}},isClientID:function(t){return"client:"===t.substring(0,7)},isMetadataKey:function(t){return r[t]||!1}};t.exports=n},function(t,e){"use strict";var r={after:!0,before:!0,find:!0,first:!0,last:!0,surrounds:!0},n={find:!0,first:!0,last:!0},i={CLIENT_MUTATION_ID:"clientMutationId",CURSOR:"cursor",EDGES:"edges",END_CURSOR:"endCursor",HAS_NEXT_PAGE:"hasNextPage",HAS_PREV_PAGE:"hasPreviousPage",NODE:"node",PAGE_INFO:"pageInfo",START_CURSOR:"startCursor",EDGES_HAVE_SOURCE_FIELD:!1,isConnectionCall:function(t){return r.hasOwnProperty(t.name)},hasRangeCalls:function(t){return t.some(function(t){return n.hasOwnProperty(t.name)})},getDefaultPageInfo:function(){var t={};return t[i.START_CURSOR]=void 0,t[i.END_CURSOR]=void 0,t[i.HAS_NEXT_PAGE]=!1,t[i.HAS_PREV_PAGE]=!1,t}};t.exports=i},function(t,e,r){"use strict";var n=r(43).default;e.default=n||function(t){var e,r,n;for(e=1;e<arguments.length;e++){r=arguments[e];for(n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},e.__esModule=!0},function(t,e,r){"use strict";var n=r(31),i=n;t.exports=i},function(t,e,r){"use strict";var n,i=r(2).default,o=r(5).default,a=r(35),s=r(8),u=r(135),c=r(9),l=r(14),d=r(4),f=r(3),h=r(150),p=r(151),_=r(152),g=r(156),y=r(6),v=r(1),m=r(87),D=r(93),I=r(19),b=(r(11),r(172)),C=r(173),R=c.CLIENT_MUTATION_ID,E=function(){function t(){var e,r,n,o,a,s;i(this,t),e={},r={},n={},o={},a={},s={},this._cacheManager=null,this._cachePopulated=!0,this._cachedRecords=e,this._cachedRootCalls=r,this._nodeRangeMap=s,this._records=o,this._queuedRecords=n,this._queuedStore=new _({cachedRecords:e,queuedRecords:n,records:o},{cachedRootCallMap:r,rootCallMap:a},s),this._recordStore=new _({records:o},{rootCallMap:a},s),this._queryTracker=new h,this._rootCalls=a}return t.getDefaultInstance=function(){return n||(n=new t),n},t.prototype.initializeGarbageCollector=function(){this._garbageCollector?v(!1):void 0;var t=this._isStoreDataEmpty();t&&(this._garbageCollector=new g(this))},t.prototype.injectCacheManager=function(t){var e=this._cachedRecords,r=this._cachedRootCalls,n=this._rootCalls,i=this._queuedRecords,o=this._records;this._cacheManager=t,this._cachePopulated=!1,this._queuedStore=new _({cachedRecords:e,queuedRecords:i,records:o},{cachedRootCallMap:r,rootCallMap:n},this._nodeRangeMap,t),this._recordStore=new _({records:o},{rootCallMap:n},this._nodeRangeMap,t)},t.prototype.runWithDiskCache=function(t){var e=this;this._cachePopulated||!this._cacheManager?I(t):this._cacheManager.readAllData(this._cachedRecords,this._cachedRootCalls,function(){e._cachePopulated=!0,t()})},t.prototype.handleQueryPayload=function(t,e,r){var n=new u,i=new p(this._recordStore,this._queryTracker,n,{forceIndex:r,updateTrackedQueries:!0});b(i,t,e),this._handleChangedAndNewDataIDs(n.getChangeSet())},t.prototype.handleUpdatePayload=function(t,e,r){var n=r.configs,i=r.isOptimisticUpdate,o=new u,a=i?this.getRecordStoreForOptimisticMutation(e[R]):this._recordStore,s=new p(a,this._queryTracker,o,{forceIndex:m(),updateTrackedQueries:!1});C(s,t,e,{configs:n,isOptimisticUpdate:i}),this._handleChangedAndNewDataIDs(o.getChangeSet())},t.prototype.buildFragmentQueryForDataID=function(t,e){var r,n;return s.isClientID(e)?(r=this._queuedStore.getPathToRecord(e),r?void 0:v(!1),n=D(r.getQuery(t)),n?void 0:v(!1),n):f.Node.buildRoot(l.NODE,e,[t],{rootArg:l.ID},t.getDebugName()||"UnknownQuery")},t.prototype.getNodeData=function(){return this._records},t.prototype.getQueuedData=function(){return this._queuedRecords},t.prototype.clearQueuedData=function(){var t=this;y(this._queuedRecords,function(e,r){delete t._queuedRecords[r],a.broadcastChangeForID(r)})},t.prototype.getCachedData=function(){return this._cachedRecords},t.prototype.getGarbageCollector=function(){return this._garbageCollector},t.prototype.getQueuedStore=function(){return this._queuedStore},t.prototype.getRecordStore=function(){return this._recordStore},t.prototype.getQueryTracker=function(){return this._queryTracker},t.prototype.getRootCallData=function(){return this._rootCalls},t.prototype._isStoreDataEmpty=function(){return 0===o(this._records).length&&0===o(this._queuedRecords).length&&0===o(this._cachedRecords).length},t.prototype._handleChangedAndNewDataIDs=function(t){var e,r,n=o(t.updated);n.forEach(a.broadcastChangeForID),this._garbageCollector&&(e=o(t.created),r=this._garbageCollector,e.forEach(function(t){return r.register(t)}))},t.prototype.getRecordStoreForOptimisticMutation=function(t){var e=this._cachedRecords,r=this._cachedRootCalls,n=this._rootCalls,i=this._queuedRecords,o=this._records;return new _({cachedRecords:e,queuedRecords:i,records:o},{cachedRootCallMap:r,rootCallMap:n},this._nodeRangeMap,this._cacheManager,t)},t}();d.instrumentMethods(E.prototype,{handleQueryPayload:"RelayStoreData.prototype.handleQueryPayload"}),t.exports=E},function(t,e){"use strict";var r=t.exports={};"number"==typeof __e&&(__e=r)},function(t,e,r){"use strict";function n(t,e){var r=e[t.getRootCall().name];return Array.isArray(r)?r:[r]}var i=r(28),o=r(60),a=r(1),s={ID:"id",NODE:"node",NODE_TYPE:"Node",NODES:"nodes",isNodeRootCall:function(t){return t===s.NODE||t===s.NODES},getResultsFromPayload:function(t,e,r){var u,c,l=[],d=e.getBatchCall();return d?n(e,r).forEach(function(t){if("object"==typeof t&&t){var e=t[s.ID];null==e?a(!1):void 0,l.push({dataID:e,result:t})}}):(u=n(e,r),c=0,i(e,function(e,r){var n,i,a=u[c++];null!=a&&(n=t.getRootCallID(r,e),null==n&&(i="object"==typeof a&&a?a[s.ID]:null,n=null!=i?i:null==e?"client:"+r:o(),t.putRootCallID(r,e,n)),l.push({dataID:n,result:a}))})),l}};t.exports=s},[274,201,66,206],function(t,e,r){"use strict";t.exports=r(247)},function(t,e,r){"use strict";function n(t){return!!t}function i(t,e){return null==t?t:Array.isArray(t)?t.map(e):e(t)}function o(t){return t instanceof P||t instanceof A||t instanceof M?t:null==t?new A("__null__"):new P(t)}function a(t){var e,r=-1;for(e=t.length-1;e>=0;e--)if(null!==t[e]){r=e;break}return t.length=r+1,t}function s(t){return Array.isArray(t)&&Array.isArray(t[0])?t.map(u):t?u(t):t}function u(t){var e=t[0];switch(e){case w.CALL_VALUE:return P.fromJSON(t);case w.CALL_VARIABLE:return A.fromJSON(t);case w.BATCH_VARIABLE:return M.fromJSON(t);default:z(!1)}}function c(t,e){return"object"==typeof t&&null!==t&&t.kind===e}function l(t){return c(t,I)}function d(t){return c(t,b)}function f(t){return c(t,C)}function h(t){return c(t,D)}function p(t){return c(t,R)}function _(t){return c(t,E)}function g(t){return c(t,N)}function y(t){return c(t,F)}function v(t){return c(t,S)}function m(t){return c(t,x)}var D,I,b,C,R,E,S,N,F,x,w,O,T,P,M,A,Q,k,L,q,j,V,U,G,B=r(2).default,K=r(7).default,W=r(10).default,J=r(22).default,H=(r(62).default,r(14)),z=r(1),X={},$=[];D="BatchCallVariable",I="Call",b="CallValue",C="CallVariable",R="Field",E="Fragment",S="Mutation",N="Query",F="QueryWithValues",x="Subscription",w={QUERY:1,FRAGMENT:2,FIELD:3,CALL:4,CALL_VALUE:5,CALL_VARIABLE:6,BATCH_VARIABLE:7,MUTATION:8,QUERY_WITH_VALUES:9,SUBSCRIPTION:10},O=function Y(t,e){B(this,Y),this.fields=t||$,this.fragments=e&&e.length>0?e.filter(n):$,this.children=this.fields.concat(this.fragments)},T=function(){function t(e,r,n){B(this,t),this.kind=I,this.value=i(r,o)||null,this.name=e,this.metadata=n||X}return t.fromJSON=function(e){var r=J(e,4),n=r[0],i=r[1],o=r[2],a=r[3];return n!==w.CALL?z(!1):void 0,new t(i,s(o),a)},t.prototype.toJSON=function(){return a([w.CALL,this.name,this.value,this.metadata===X?null:this.metadata])},t}(),P=function(){function t(e){B(this,t),this.kind=b,this.callValue=e}return t.fromJSON=function(e){var r=J(e,2),n=r[0],i=r[1];return n!==w.CALL_VALUE?z(!1):void 0,new t(i)},t.prototype.toJSON=function(){return[w.CALL_VALUE,this.callValue]},t}(),M=function(){function t(e,r){B(this,t),this.kind=D,this.sourceQueryID=e,this.jsonPath=r}return t.fromJSON=function(e){var r=J(e,3),n=r[0],i=r[1],o=r[2];return n!==w.BATCH_VARIABLE?z(!1):void 0,new t(i,o)},t.prototype.toJSON=function(){return[w.BATCH_VARIABLE,this.sourceQueryID,this.jsonPath]},t}(),A=function(){function t(e){B(this,t),this.kind=C,this.callVariableName=e}return t.fromJSON=function(e){var r=J(e,2),n=r[0],i=r[1];return n!==w.CALL_VARIABLE?z(!1):void 0,new t(i)},t.prototype.toJSON=function(){return[w.CALL_VARIABLE,this.callVariableName]},t}(),Q=function(t){function e(r,n,i,o,a,s,u){B(this,e),t.call(this,n,i),this.kind=R,this.fieldName=r,this.calls=o||$,this.alias=a||null,this.condition=s||null,u=u||X,this.__metadata__=u,this.metadata={edgesID:u.edgesID,inferredRootCallName:u.rootCall,inferredPrimaryKey:u.pk,isConnection:!!u.connection,isFindable:!!u.connection&&!u.nonFindable,isGenerated:!!u.generated,isPlural:!!u.plural,isRequisite:!!u.requisite,isUnionOrInterface:!!u.dynamic,parentType:u.parentType}}return K(e,t),e.fromJSON=function(t){var r=J(t,8),n=r[0],i=r[1],o=r[2],a=r[3],s=r[4],u=r[5],c=r[6],l=r[7];return n!==w.FIELD?z(!1):void 0,new e(i,o?o.map(e.fromJSON):null,a?a.map(k.fromJSON):null,s?s.map(T.fromJSON):null,u,c,l)},e.prototype.toJSON=function(){return a([w.FIELD,this.fieldName,this.fields.length?this.fields:null,this.fragments.length?this.fragments:null,this.calls.length?this._calls:null,this.alias,this.condition,this.__metadata__===X?null:this.__metadata__])},e}(O),k=function(t){function e(r,n,i,o,a){B(this,e),t.call(this,i,o),this.kind=E,this.name=r,this.type=n,this.metadata=this.__metadata__=a||X,this.isPlural=!!this.metadata.isPlural}return K(e,t),e.fromJSON=function(t){var r,n=J(t,6),i=n[0],o=n[1],a=n[2],s=n[3],u=n[4],c=n[5];return i!==w.FRAGMENT?z(!1):void 0,r=new e(o,a,s?s.map(Q.fromJSON):null,u?u.map(e.fromJSON):null,c)},e.prototype.toJSON=function(){return a([w.FRAGMENT,this.name,this.type,this.fields.length?this.fields:null,this.fragments.length?this.fragments:null,this.metadata])},e}(O),L=function(t){function e(r,n,i,o,a,s){var u,c;B(this,e),t.call(this,i,o),this.__metadata__=a||X,u=this.__metadata__.rootArg,null==u&&H.isNodeRootCall(r)&&(u=H.ID),this.kind=N,this.metadata=W({},this.__metadata__,{rootArg:u}),this.name=s,this.fieldName=r,this.isDeferred=!!this.__metadata__.isDeferred,c=this.__metadata__.varargs?{varargs:this.__metadata__.varargs}:null,this.calls=[new T(r,n,c)]}return K(e,t),e.fromJSON=function(t){var r=J(t,7),n=r[0],i=r[1],o=r[2],a=r[3],u=r[4],c=r[5],l=r[6];return n!==w.QUERY?z(!1):void 0,new e(i,s(o),a?a.map(Q.fromJSON):null,u?u.map(k.fromJSON):null,c,l)},e.prototype.toJSON=function(){return a([w.QUERY,this.fieldName,this.calls[0].value,this.fields.length?this.fields:null,this.fragments.length?this.fragments:null,this.__metadata__!==X?this.__metadata__:null,this.name||null])},e}(O),q=function(){function t(e,r){B(this,t),this.kind=F,this.query=e,this.values=r}return t.prototype.getQuery=function(){return this.query},t.fromJSON=function(e){var r=J(e,3),n=r[0],i=r[1],o=r[2];return n!==w.QUERY_WITH_VALUES?z(!1):void 0,new t(L.fromJSON(i),o)},t.prototype.toJSON=function(){return a([w.QUERY_WITH_VALUES,this.query,this.values])},t}(),j=function(t){function e(r,n,i,o,a,s){B(this,e),t.call(this,o,a),this.name=r,this.responseType=n,this.calls=[i],this.metadata=s||X}return K(e,t),e.prototype.toJSON=function(){return a([this.getJSONType(),this.name,this.responseType,this.calls[0],this.fields.length?this.fields:null,this.fragments.length?this.fragments:null,this.metadata===X?null:this.metadata])},e}(O),V=function(t){function e(){B(this,e);for(var r=arguments.length,n=Array(r),i=0;r>i;i++)n[i]=arguments[i];t.call.apply(t,[this].concat(n)),this.kind=S}return K(e,t),e.fromJSON=function(t){var r=J(t,7),n=r[0],i=r[1],o=r[2],a=r[3],s=r[4],u=r[5],c=r[6];return n!==w.MUTATION?z(!1):void 0,new e(i,o,T.fromJSON(a),s?s.map(Q.fromJSON):null,u?u.map(k.fromJSON):null,c)},e.prototype.getJSONType=function(){return w.MUTATION},e}(j),U=function(t){function e(){B(this,e);for(var r=arguments.length,n=Array(r),i=0;r>i;i++)n[i]=arguments[i];t.call.apply(t,[this].concat(n)),this.kind=x}return K(e,t),e.fromJSON=function(t){var r=J(t,7),n=r[0],i=r[1],o=r[2],a=r[3],s=r[4],u=r[5],c=r[6];return n!==w.SUBSCRIPTION?z(!1):void 0,new e(i,o,T.fromJSON(a),s?s.map(Q.fromJSON):null,u?u.map(k.fromJSON):null,c)},e.prototype.getJSONType=function(){return w.SUBSCRIPTION},e}(j),G={BatchCallVariable:M,Callv:T,CallValue:P,CallVariable:A,Field:Q,Mutation:V,Query:L,QueryFragment:k,QueryWithValues:q,Subscription:U,isBatchCallVariable:h,isCall:l,isCallValue:d,isCallVariable:f,isField:p,isFragment:_,isMutation:v,isQuery:g,isQueryWithValues:y,isSubscription:m},t.exports=G},function(t,e){"use strict";var r=Object;t.exports={create:r.create,getProto:r.getPrototypeOf,isEnum:{}.propertyIsEnumerable,getDesc:r.getOwnPropertyDescriptor,setDesc:r.defineProperty,setDescs:r.defineProperties,getKeys:r.keys,getNames:r.getOwnPropertyNames,getSymbols:r.getOwnPropertySymbols,each:[].forEach}},function(t,e,r){"use strict";function n(t){a.then(t).catch(i)}function i(t){setTimeout(function(){throw t},0)}var o=r(16),a=o.resolve();t.exports=n},[274,235,49,128],function(t,e,r){"use strict";var n=r(2).default,i=r(3),o=function(){function t(){n(this,t)}return t.prototype.visit=function(t,e){return t instanceof i.Field?this.visitField(t,e):t instanceof i.Fragment?this.visitFragment(t,e):t instanceof i.Root?this.visitRoot(t,e):void 0},t.prototype.traverse=function(t,e){var r=this;return t.isScalar()||t.getChildren().forEach(function(t){return r.visit(t,e)}),t},t.prototype.visitField=function(t,e){return this.traverse(t,e)},t.prototype.visitFragment=function(t,e){return this.traverse(t,e)},t.prototype.visitRoot=function(t,e){return this.traverse(t,e)},t}();t.exports=o},function(t,e,r){"use strict";var n=r(175).default,i=r(176).default;e.default=function(){function t(t,e){var r,i,o=[],a=!0,s=!1,u=void 0;try{for(r=n(t);!(a=(i=r.next()).done)&&(o.push(i.value),!e||o.length!==e);a=!0);}catch(c){s=!0,u=c}finally{try{!a&&r.return&&r.return()}finally{if(s)throw u}}return o}return function(e,r){if(Array.isArray(e))return e;if(i(Object(e)))return t(e,r);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),e.__esModule=!0},function(t,e){"use strict";t.exports={}},[261,25,124,50],18,function(t,e,r){"use strict";var n=r(2).default,i=function(){function t(e){n(this,t),Object.defineProperty(this,"name",{enumerable:!0,value:e,writable:!1})}return t.get=function(e){return o[e]||(o[e]=new t(e))},t}(),o={};t.exports=i},function(t,e,r){"use strict";function n(){return i?void 0:a(!1),i}var i,o=r(16),a=r(1),s={injectNetworkLayer:function(t){i=t},sendMutation:function(t){var e=n(),r=e.sendMutation(t);r&&o.resolve(r).done()},sendQueries:function(t){var e=n(),r=e.sendQueries(t);r&&o.resolve(r).done()},supports:function(){var t=n();return t.supports.apply(t,arguments)}};t.exports=s},function(t,e,r){"use strict";function n(t,e){function r(t,e){Array.isArray(t)?t.forEach(function(t){return r(t,e)}):null==t?e(t,o):("string"!=typeof t&&"number"!=typeof t?i(!1):void 0,e(""+t,o))}var n,o,a;t.getBatchCall()?i(!1):void 0,n=t.getRootCall(),o=n.name,a=n.value,r(a,e)}var i=r(1);t.exports=n},function(t,e,r){"use strict";var n=r(174).default;e.default=function(t){if(Array.isArray(t)){for(var e=0,r=Array(t.length);e<t.length;e++)r[e]=t[e];return r}return n(t)},e.__esModule=!0},[260,66,13],function(t,e){"use strict";function r(t){return function(){return t}}function n(){}n.thatReturns=r,n.thatReturnsFalse=r(!1),n.thatReturnsTrue=r(!0),n.thatReturnsNull=r(null),n.thatReturnsThis=function(){return this},n.thatReturnsArgument=function(t){return t},t.exports=n},23,function(t,e,r){"use strict";function n(){}function i(t){try{return t.then}catch(e){return g=e,y}}function o(t,e){try{return t(e)}catch(r){return g=r,y}}function a(t,e,r){try{t(e,r)}catch(n){return g=n,y}}function s(t){if("object"!=typeof this)throw new TypeError("Promises must be constructed via new");if("function"!=typeof t)throw new TypeError("not a function");this._37=0,this._12=null,this._59=[],t!==n&&p(t,this)}function u(t,e,r){return new t.constructor(function(i,o){var a=new s(n);a.then(i,o),c(t,new h(e,r,a))})}function c(t,e){for(;3===t._37;)t=t._12;return 0===t._37?void t._59.push(e):void _(function(){var r,n=1===t._37?e.onFulfilled:e.onRejected;return null===n?void(1===t._37?l(e.promise,t._12):d(e.promise,t._12)):(r=o(n,t._12),void(r===y?d(e.promise,g):l(e.promise,r)))})}function l(t,e){if(e===t)return d(t,new TypeError("A promise cannot be resolved with itself."));if(e&&("object"==typeof e||"function"==typeof e)){var r=i(e);if(r===y)return d(t,g);if(r===t.then&&e instanceof s)return t._37=3,t._12=e,void f(t);if("function"==typeof r)return void p(r.bind(e),t)}t._37=1,t._12=e,f(t)}function d(t,e){t._37=2,t._12=e,f(t)}function f(t){for(var e=0;e<t._59.length;e++)c(t,t._59[e]);t._59=null}function h(t,e,r){this.onFulfilled="function"==typeof t?t:null,this.onRejected="function"==typeof e?e:null,this.promise=r}function p(t,e){var r=!1,n=a(t,function(t){r||(r=!0,l(e,t))},function(t){r||(r=!0,d(e,t))});r||n!==y||(r=!0,d(e,g))}var _=r(129),g=null,y={};t.exports=s,s._99=n,s.prototype.then=function(t,e){if(this.constructor!==s)return u(this,t,e);
var r=new s(n);return c(this,new h(t,e,r)),r}},function(t,e,r){"use strict";function n(t){var e,r=t.getBatchCall();return r&&s(!1),t.getChildren().forEach(function(t){t instanceof a.Fragment?(e?s(!1):void 0,e=t):t instanceof a.Field&&(t.isGenerated()?void 0:s(!1))}),e}var i=r(2).default,o=r(8),a=r(3),s=r(1),u=r(72),c=function(){function t(e,r){var n,o;i(this,t),n=Array.isArray(e),o=r.isPlural(),n!==o?s(!1):void 0,this._dataIDOrIDs=e,this._fragment=r}return t.createForRoot=function(e,r){var i,a,u,c,l,d,f,h,p=n(r);return p?(i=p.getConcreteFragmentID(),a=r.getRootCall(),u=a.name,c=a.value,Array.isArray(c)?(l=p,c.map(function(r){var n,a=e.getRootCallID(u,r);return a?(n=o.createPointerWithID(a),n[i]=new t([a],l),n):null})):("string"!=typeof c&&null!=c?s(!1):void 0,(d=e.getRootCallID(u,c))?(f={},h=new t(d,p),f[i]=h,f):null)):null},t.prototype.getDataID=function(){return Array.isArray(this._dataIDOrIDs)?s(!1):void 0,this._dataIDOrIDs},t.prototype.getDataIDs=function(){return Array.isArray(this._dataIDOrIDs)?void 0:s(!1),this._dataIDOrIDs},t.prototype.getFragment=function(){return this._fragment},t.prototype.equals=function(t){return u(this._dataIDOrIDs,t._dataIDOrIDs)&&this._fragment.isEquivalent(t._fragment)},t.prototype.toString=function(){return"GraphQLFragmentPointer(ids: "+JSON.stringify(this._dataIDOrIDs)+", fragment: `"+this.getFragment().getDebugName()+", params: "+JSON.stringify(this._fragment.getVariables())+")"},t}();t.exports=c},function(t,e,r){"use strict";function n(){p&&(h=p,p=null,d(i))}function i(){f.forEach(o)}function o(t,e){var r,n,i=t.subscribedIDs,o=t.callback;for(r in h)if(h.hasOwnProperty(r)){if(n=h[r],e>n)break;if(i.indexOf(r)>=0){s.applyWithGuard(o,null,null,null,"GraphQLStoreChangeEmitter");break}}}function a(t){return u.getCanonicalClientID(t)}var s,u,c,l,d,f,h,p,_;Object.defineProperty(e,"__esModule",{value:!0}),s=r(46),u=r(36),c=r(4),l=r(19),d=function(t){return t()},f=[],h={},p=null,_={addListenerForIDs:function(t,e){var r=t.map(a),n=f.length;return f.push({subscribedIDs:r,callback:e}),{remove:function(){delete f[n]}}},broadcastChangeForID:function(t){null===p&&(l(n),p={}),p[a(t)]=f.length-1},injectBatchingStrategy:function(t){d=t},_processSubscribers:i},c.instrumentMethods(_,{addListenerForIDs:"GraphQLStoreChangeEmitter.addListenerForIDs",broadcastChangeForID:"GraphQLStoreChangeEmitter.broadcastChangeForID",_processSubscribers:"GraphQLStoreChangeEmitter.processSubscribers"}),t.exports=_},function(t,e,r){"use strict";var n=r(58),i=r(42),o={},a={getClientIDForRangeWithID:function(t,e,r){var a=n(t,e).map(function(t){return i(t).substring(1)}).join(","),s=r+"_"+a,u=o[s];return u||(o[s]={dataID:r,calls:t,callValues:e}),s},parseRangeClientID:function(t){return o[t]||null},getCanonicalClientID:function(t){return o[t]?o[t].dataID:t}};t.exports=a},function(t,e,r){"use strict";var n=r(54),i=r(6),o=r(1),a=r(70),s=(r(11),{warn:function(t){t.was,t.now;return void 0},createWarning:function(t){var e=t.was,r=t.now,n=t.adapter;return function(){return function(){return s.warn({was:e,now:r}),n.apply(this,arguments)}}()},upgradeContainerSpec:function(t){var e,r=["queries","queryParams","processQueryParams"].filter(function(e){return t.hasOwnProperty(e)}),s=["fragments","initialVariables","prepareVariables"].filter(function(e){return t.hasOwnProperty(e)});return s.length?(0!==r.length?o(!1):void 0,t):(e={},i(t,function(t,r){switch(r){case"queries":e.fragments=a(t,function(t,e){return function(e){return t(void 0,n,e)}});break;case"queryParams":e.initialVariables=t;break;case"processQueryParams":e.prepareVariables=function(e,r){return t(r,e)}}}),e)},getMutationInitialVariables:function(t){var e=t.queryParams;return e&&!t.initialVariables&&(s.warn({was:t.name+".queryParams",now:t.name+".initialVariables"}),t.initialVariables=e),t.initialVariables},getMutationFragments:function(t){var e=t.queries;return e&&!t.fragments&&(s.warn({was:t.name+".queries",now:t.name+".fragments"}),t.fragments=e),t.fragments}});t.exports=s},function(t,e,r){"use strict";var n=r(2).default,i=r(10).default,o=r(17),a=r(6),s=r(89),u=r(1),c=function(){function t(e,r,i,o){n(this,t),this._initialVariables=r||{},this._fragment=void 0,this._fragmentGetter=e,this._isDeferred=!1,this._isTypeConditional=!1,this._variableMapping=i,this._prepareVariables=o}return t.prototype.defer=function(){return this._isDeferred=!0,this},t.prototype.conditionOnType=function(){return this._isTypeConditional=!0,this},t.prototype.if=function(t){return o.isCallVariable(t)?void 0:u(!1),this._addCondition(function(e){return!!e[t.callVariableName]}),this},t.prototype.unless=function(t){return o.isCallVariable(t)?void 0:u(!1),this._addCondition(function(e){return!e[t.callVariableName]}),this},t.prototype._getFragment=function(){return null==this._fragment&&(this._fragment=this._fragmentGetter()),this._fragment},t.prototype.getFragment=function(t){var e=this._conditions;return e&&!e.every(function(e){return e(t)})?null:this._getFragment()},t.prototype.getVariables=function(t,e){var r,n=i({},this._initialVariables),s=this._variableMapping;return s&&a(s,function(t,r){o.isCallVariable(t)&&(t=e[t.callVariableName]),void 0!==t&&(n[r]=t)}),r=this._prepareVariables,r&&(n=r(n,t)),n},t.prototype.getFragmentName=function(){return s(this._getFragment())},t.prototype.isTypeConditional=function(){return this._isTypeConditional},t.prototype.isDeferred=function(){return this._isDeferred},t.prototype._addCondition=function(t){var e=this._conditions;e||(e=[],this._conditions=e),e.push(t)},t}();t.exports=c},function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r={EXISTENT:"EXISTENT",NONEXISTENT:"NONEXISTENT",UNKNOWN:"UNKNOWN"};t.exports=r},function(t,e,r){"use strict";var n=r(130),i=r(79),o=r(12),a=r(28),s=r(165),u=r(91),c=r(61),l=o.getDefaultInstance().getQueuedStore(),d={primeCache:function(t,e){return n.run(t,e)},forceFetch:function(t,e){return n.forceFetch(t,e)},read:function(t,e,r){return c(l,t,e,r).data},readAll:function(t,e,r){return e.map(function(e){return c(l,t,e,r).data})},readQuery:function(t,e){var r=[];return a(t,function(n,i){var o,a=l.getRootCallID(i,n);null!=a&&(o=d.read(t,a,e)),r.push(o)}),r},observe:function(t,e,r){return u(l,t,e,r)},observeAll:function(t,e,r){return s(l,t,e,r)},update:function(t,e){var r=new i(t);r.commit(e)}};t.exports=d},function(t,e,r){"use strict";function n(){if(!l)if(c.length){l=!0;var t=i(c.shift());a?a(t):t()}else l=!1}function i(t){var e=!1;return function(){e?u(!1):void 0,e=!0,o(t),l=!1,n()}}function o(t){var e=c;c=[];try{t()}finally{Array.prototype.unshift.apply(e,c),c=e}}var a,s=r(16),u=r(1),c=[],l=!1,d={injectScheduler:function(t){a=t},await:function(){var t,e,r,i;for(t=arguments.length,e=Array(t),r=0;t>r;r++)e[r]=arguments[r];return i=new s(function(t,r){function n(a){return o?void r(o):void(i>=e.length?t(a):c.push(function(){n(function(){var t=e[i++];try{a=t(a)}catch(r){o=r,a=void 0}return a}())}))}var i=0,o=null;n(void 0)}),n(),i}};t.exports=d},function(t,e,r){"use strict";function n(t){var e,r=t.value;return e=Array.isArray(r)?o(r).map(i).join(","):null!=r?i(r):"","."+t.name+"("+e+")"}function i(t){return null==t?"":("string"!=typeof t&&(t=JSON.stringify(t)),t=t.replace(/[)(}{><,.\\]/g,"\\$&"),/ $/.test(t)&&(t+=" "),t.replace(/^( *)(.*?)( *)$/,function(t,e,r,n){return"\\ ".repeat(e.length)+r+"\\ ".repeat(n.length)}))}var o=r(218);t.exports=n},function(t,e,r){"use strict";t.exports={"default":r(183),__esModule:!0}},[261,18,103,203],function(t,e,r){"use strict";function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var i=r(16),o=function(){function t(){var e=this;n(this,t),this._settled=!1,this._promise=new i(function(t,r){e._resolve=t,e._reject=r})}return t.prototype.getPromise=function(){return this._promise},t.prototype.resolve=function(t){this._settled=!0,this._resolve(t)},t.prototype.reject=function(t){this._settled=!0,this._reject(t)},t.prototype.then=function(){return i.prototype.then.apply(this._promise,arguments)},t.prototype.done=function(){i.prototype.done.apply(this._promise,arguments)},t.prototype.isSettled=function(){return this._settled},t}();t.exports=o},function(t,e){"use strict";var r={applyWithGuard:function(t,e,r,n,i){return t.apply(e,r)},guard:function(t,e){return t}};t.exports=r},function(t,e,r){"use strict";t.exports=r(224)},13,function(t,e){"use strict";var r="undefined",n=t.exports=typeof window!=r&&window.Math==Math?window:typeof self!=r&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},[270,229],function(e,r){e.exports=t},function(t,e){"use strict";var r={APPEND:"append",PREPEND:"prepend",REMOVE:"remove",NODE_DELETE_HANDLER:"node_delete",RANGE_ADD_HANDLER:"range_add",RANGE_DELETE_HANDLER:"range_delete",HANDLER_TYPES:{},OPTIMISTIC_UPDATE:"optimistic",SERVER_UPDATE:"server",POLLER_UPDATE:"poller",UPDATE_TYPES:{},RANGE_OPERATIONS:{}};r.HANDLER_TYPES[r.NODE_DELETE_HANDLER]=!0,r.HANDLER_TYPES[r.RANGE_ADD_HANDLER]=!0,r.HANDLER_TYPES[r.RANGE_DELETE_HANDLER]=!0,r.UPDATE_TYPES[r.OPTIMISTIC_UPDATE]=!0,r.UPDATE_TYPES[r.SERVER_UPDATE]=!0,r.UPDATE_TYPES[r.POLLER_UPDATE]=!0,r.RANGE_OPERATIONS[r.APPEND]=!0,r.RANGE_OPERATIONS[r.PREPEND]=!0,r.RANGE_OPERATIONS[r.REMOVE]=!0,t.exports=r},function(t,e,r){"use strict";var n=r(51),i=n.PropTypes,o=r(90),a={Container:function(t,e){var r=t[e];return null==r?new Error("Required prop `Component` was not specified in `RelayRootContainer`."):o(r)?null:new Error("Invalid prop `Component` supplied to `RelayRootContainer`, expected a RelayContainer.")},QueryConfig:i.shape({name:i.string.isRequired,params:i.object.isRequired,queries:i.object.isRequired,uri:i.object})};t.exports=a},function(t,e,r){"use strict";function n(t){s(!1)}var i,o,a,s,u,c=r(43).default;Object.defineProperty(e,"__esModule",{value:!0}),i=r(17),o=r(38),a=r(82),s=r(1),u=r(11),c(n,{__GraphQL:i,__frag:function(t){return"function"==typeof t?new a(t):(null!=t&&(t instanceof o||i.isFragment(t)?void 0:s(!1)),t)},__var:function(t){return void 0===t?t=null:!i.isCallVariable(t),t}}),t.exports=n},function(t,e,r){"use strict";function n(t){var e,r;return t instanceof u.Field?(e=t.getInferredPrimaryKey(),r=e&&t.getFieldByStorageKey(e),t.clone([r||d])):t.clone([t.getFieldByStorageKey("id")||d])}var i=r(2).default,o=r(10).default,a=r(14),s=r(8),u=r(3),c=r(149),l=r(1),d=u.Node.buildFragment("$RelayQueryPath","Node"),f=function(){function t(e,r){i(this,t),e instanceof u.Root?(r?l(!1):void 0,this._name=e.getName()):(r?void 0:l(!1),this._name=r.getName()),this._node=e,this._parent=r}return t.prototype.isRootPath=function(){return!this._parent},t.prototype.getParent=function(){var t=this._parent;return t?void 0:l(!1),t},t.prototype.getName=function(){return this._name},t.prototype.getPath=function(e,r){if(s.isClientID(r))return new t(e,this);var n=u.Node.buildRoot(a.NODE,r,[u.Node.buildField("id")],{rootArg:a.ID},this.getName());return new t(n)},t.prototype.getQuery=function(t){for(var e,r,n=this._node,i=this,a=t;n instanceof u.Field;)e=n.getInferredPrimaryKey(),a=e?n.clone([a,n.getFieldByStorageKey(e)]):n.clone([a]),i=i._parent,i?void 0:l(!1),n=i._node;return a?void 0:l(!1),n instanceof u.Root?void 0:l(!1),r=n.getRootCall(),u.Node.buildRoot(r.name,r.value,[a,n.getFieldByStorageKey("id")],o({},n.__concreteNode__.metatada,{rootArg:n.getRootCallArgument()}),this.getName())},t.prototype.toJSON=function(){for(var t=[],e=this;e;)t.unshift(c.toJSON(n(e._node))),e=e._parent;return t},t.fromJSON=function(e){var r,n,i,o;for(Array.isArray(e)&&e.length>0?void 0:l(!1),r=c.fromJSON(e[0]),r instanceof u.Root?void 0:l(!1),n=new t(r),i=1;i<e.length;i++)o=c.fromJSON(e[i]),o instanceof u.Field?void 0:l(!1),n=new t(o,n);return n},t}();t.exports=f},function(t,e,r){"use strict";var n=r(7).default,i=r(2).default,o=r(21),a=function(t){function e(){i(this,e),t.apply(this,arguments)}return n(e,t),e.prototype.traverse=function(t,e){var r,n,i,o,a;if(t.isScalar())return t;for(n=t.getChildren(),i=0;i<n.length;i++)o=n[i],a=this.visit(o,e),a!==o&&(r=r||n.slice(0,i)),r&&a&&r.push(a);return r?r.length?t.clone(r):null:t},e}(o);t.exports=a},function(t,e,r){"use strict";function n(t,e){var r=t.length;return r>e}function i(t){var e={};return t.forEach(function(t){e[t]=new o.CallVariable(t)}),e}var o,a,s,u,c,l;Object.defineProperty(e,"__esModule",{value:!0}),o=r(17),a=r(47),s=r(54),u=new a,c=new a,l={Fragment:function(t,e){var r,a=u.get(t);return a||(r=i(e),a=n(t,1)?t(void 0,s,r):t(r),u.set(t,a)),o.isFragment(a)?a:void 0},Query:function(t){function e(e,r,n){return t.apply(this,arguments)}return e.toString=function(){return t.toString()},e}(function(t,e,r){var u,l,d=c.get(t);return d?u=d.get(e):(d=new a,c.set(t,d)),u||(l=i(r),u=n(t,2)?t(e,l,s):t(e,l),d.set(e,u)),u?o.isQuery(u)?u:void 0:null})},t.exports=l},function(t,e,r){"use strict";function n(t,e){var r,n,a,s,u=[];for(r=0;r<t.length;r++)n=t[r],a=n.name,s=n.value,o.isBatchCallVariable(s)||Array.isArray(s)&&s.some(o.isBatchCallVariable)?s=null:Array.isArray(s)?s=s.map(function(t){return i(t,e)}):null!=s&&(s=i(s,e)),u.push({name:a,value:s});return u}function i(t,e){if(o.isCallVariable(t)){var r=t.callVariableName;return e.hasOwnProperty(r)?void 0:a(!1),e[r]}return o.isCallValue(t)?void 0:a(!1),t.callValue}var o=r(17),a=r(1);t.exports=n},function(t,e,r){"use strict";function n(t,e){var r=t?i(t):[],n=e?i(e):[];return 0===r.length||0===n.length?[r,n]:[r.filter(function(t){return!o.call(e,t)}),n.filter(function(e){return!o.call(t,e)})]}var i=r(5).default,o=Object.prototype.hasOwnProperty;t.exports=n},function(t,e,r){"use strict";function n(){return s+a++}var i=r(110),o=r(221),a=1,s="client:"+i(""+o());t.exports=n},function(t,e,r){"use strict";function n(t,e,r,n){var i=new C(t,n),o=i.retrieveData(e,r);return D(e,n),o}function i(t){if(!t.__hasValidatedConnectionCalls__){var e=t.getCallsWithValues();f.hasRangeCalls(e)||E.traverse(t,t),t.__hasValidatedConnectionCalls__=!0}}function o(t,e){var r=t.getCallsWithValues();return f.hasRangeCalls(r)?d.getClientIDForRangeWithID(v(r),{},e):e}function a(t){return null!=t.componentDataID?t.componentDataID:t.storeDataID}function s(t){var e,r=t.data;return r||(e=c.createPointerWithID(a(t)),r=t.data=e),r instanceof Object?void 0:m(!1),r}function u(t,e){var r=s(t);return r[e]}var c,l,d,f,h,p,_,g,y,v,m,D,I,b,C,R,E,S,N=r(7).default,F=r(2).default;Object.defineProperty(e,"__esModule",{value:!0}),c=r(8),l=r(34),d=r(36),f=r(9),h=r(4),p=r(3),_=r(21),g=r(39),y=r(58),v=r(83),m=r(1),D=r(171),I=f.EDGES,b=f.PAGE_INFO,C=function(t){function e(r,n){F(this,e),t.call(this),this._recordStore=r,this._traverseFragmentReferences=n&&n.traverseFragmentReferences||!1,this._traverseGeneratedFields=n&&n.traverseGeneratedFields||!1}return N(e,t),e.prototype.retrieveData=function(t,e){var r,n={data:void 0,dataIDs:{}},i=d.parseRangeClientID(e),o=this._recordStore.getRecordStatus(i?i.dataID:e);return o===g.EXISTENT?(r={componentDataID:null,data:void 0,parent:null,rangeInfo:null,seenDataIDs:n.dataIDs,storeDataID:e},this.visit(t,r),n.data=r.data):o===g.NONEXISTENT&&(n.data=null),n},e.prototype.visitField=function(t,e){if(this._handleRangeInfo(t,e),(!t.isScalar()||t.isGenerated())&&s(e),!t.isGenerated()||this._traverseGeneratedFields){var r=e.rangeInfo;r&&t.getSchemaName()===I?this._readEdges(t,r,e):r&&t.getSchemaName()===b?this._readPageInfo(t,r,e):t.isScalar()?this._readScalar(t,e):t.isPlural()?this._readPlural(t,e):t.isConnection()?this._readConnection(t,e):this._readLinkedField(t,e),e.seenDataIDs[e.storeDataID]=!0}},e.prototype.visitFragment=function(t,e){var r,n;t.isReferenceFragment()&&!this._traverseFragmentReferences?(r=a(e),n=new l(t.isPlural()?[r]:r,t),this._setDataValue(e,n.getFragment().getConcreteFragmentID(),n)):this.traverse(t,e)},e.prototype._readScalar=function(t,e){var r=t.getStorageKey(),n=this._recordStore.getField(e.storeDataID,r);void 0!==n&&(null!==n||e.data?this._setDataValue(e,t.getApplicationName(),Array.isArray(n)?n.slice():n):e.data=null)},e.prototype._readPlural=function(t,e){var r,n,i,o=this,a=t.getStorageKey(),s=this._recordStore.getLinkedRecordIDs(e.storeDataID,a);s&&(r=t.getApplicationName(),n=u(e,r),i=s.map(function(r,i){var a,s;return n instanceof Object&&(a=n[i]),s={componentDataID:null,data:a,parent:t,rangeInfo:null,seenDataIDs:e.seenDataIDs,storeDataID:r},t.getChildren().forEach(function(t){return o.visit(t,s)}),s.data}),this._setDataValue(e,r,i))},e.prototype._readConnection=function(t,e){var r,n,a=t.getApplicationName(),s=t.getStorageKey(),c=t.getCallsWithValues(),l=this._recordStore.getLinkedRecordID(e.storeDataID,s);l&&(i(t),r=this._recordStore.getRangeMetadata(l,c),n={componentDataID:o(t,l),data:u(e,a),parent:t,rangeInfo:r&&c.length?r:null,seenDataIDs:e.seenDataIDs,storeDataID:l},this.traverse(t,n),this._setDataValue(e,a,n.data))},e.prototype._readEdges=function(t,e,r){var n=this,i=u(r,I),o=e.requestedEdges.map(function(e,o){var a,s;return i instanceof Object&&(a=i[o]),s={componentDataID:null,data:a,parent:t,rangeInfo:null,seenDataIDs:r.seenDataIDs,storeDataID:e.edgeID},n.traverse(t,s),s.data});this._setDataValue(r,I,o)},e.prototype._readPageInfo=function(t,e,r){var n,i,o,s=this,u=e.pageInfo;u?void 0:m(!1),n=u,o=function c(t){var e,o,u;t instanceof p.Fragment?t.isReferenceFragment()&&!s._traverseFragmentReferences?(e=new l(a(r),t),i=i||{},o=e.getFragment().getConcreteFragmentID(),i[o]=e):t.getChildren().forEach(c):(u=t,(!u.isGenerated()||s._traverseGeneratedFields)&&(i=i||{},i[u.getApplicationName()]=n[u.getStorageKey()]))},t.getChildren().forEach(o),this._setDataValue(r,b,i)},e.prototype._readLinkedField=function(t,e){var r,n,i=t.getStorageKey(),o=t.getApplicationName(),a=this._recor