relay-runtime 0.0.0-main-e95a5ae4 → 0.0.0-main-c631ffd2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/experimental.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Relay v0.0.0-main-e95a5ae4
2
+ * Relay v0.0.0-main-c631ffd2
3
3
  *
4
4
  * Copyright (c) Meta Platforms, Inc. and affiliates.
5
5
  *
@@ -11,9 +11,12 @@
11
11
 
12
12
  'use strict';
13
13
 
14
+ export type {FragmentState} from './store/observeFragmentExperimental';
14
15
  import type {DataID} from './util/RelayRuntimeTypes';
15
16
 
16
17
  const resolverDataInjector = require('./store/experimental-live-resolvers/resolverDataInjector');
18
+ const {observeFragment} = require('./store/observeFragmentExperimental');
19
+ const {waitForFragmentData} = require('./store/waitForFragmentExperimental');
17
20
 
18
21
  // Annotates a strong object return type, where `A` is the GraphQL typename and `Typename` is the
19
22
  // `__typename` field for returning an interface
@@ -56,4 +59,6 @@ module.exports = {
56
59
  resolverDataInjector,
57
60
  isValueResult,
58
61
  isErrorResult,
62
+ observeFragment,
63
+ waitForFragmentData,
59
64
  };
package/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Relay v0.0.0-main-e95a5ae4
2
+ * Relay v0.0.0-main-c631ffd2
3
3
  *
4
4
  * Copyright (c) Meta Platforms, Inc. and affiliates.
5
5
  *
@@ -1,6 +1,10 @@
1
1
  'use strict';
2
2
 
3
3
  var resolverDataInjector = require('./store/experimental-live-resolvers/resolverDataInjector');
4
+ var _require = require('./store/observeFragmentExperimental'),
5
+ observeFragment = _require.observeFragment;
6
+ var _require2 = require('./store/waitForFragmentExperimental'),
7
+ waitForFragmentData = _require2.waitForFragmentData;
4
8
  function isValueResult(input) {
5
9
  return input.ok === true;
6
10
  }
@@ -10,5 +14,7 @@ function isErrorResult(input) {
10
14
  module.exports = {
11
15
  resolverDataInjector: resolverDataInjector,
12
16
  isValueResult: isValueResult,
13
- isErrorResult: isErrorResult
17
+ isErrorResult: isErrorResult,
18
+ observeFragment: observeFragment,
19
+ waitForFragmentData: waitForFragmentData
14
20
  };
@@ -0,0 +1,103 @@
1
+ "use strict";
2
+
3
+ var _asyncToGenerator = require("@babel/runtime/helpers/asyncToGenerator").default;
4
+ var Observable = require('../network/RelayObservable');
5
+ var _require = require('../query/GraphQLTag'),
6
+ getFragment = _require.getFragment;
7
+ var getPendingOperationsForFragment = require('../util/getPendingOperationsForFragment');
8
+ var handlePotentialSnapshotErrors = require('../util/handlePotentialSnapshotErrors');
9
+ var _require2 = require('./RelayModernSelector'),
10
+ getSelector = _require2.getSelector;
11
+ var invariant = require('invariant');
12
+ function waitForFragmentData(_x, _x2, _x3) {
13
+ return _waitForFragmentData.apply(this, arguments);
14
+ }
15
+ function _waitForFragmentData() {
16
+ _waitForFragmentData = _asyncToGenerator(function* (environment, fragment, fragmentRef) {
17
+ var subscription;
18
+ try {
19
+ var _subscription;
20
+ var data = yield new Promise(function (resolve, reject) {
21
+ subscription = observeFragment(environment, fragment, fragmentRef).subscribe({
22
+ next: function next(val) {
23
+ if (val.state === 'ok') {
24
+ resolve(val.value);
25
+ } else if (val.state === 'error') {
26
+ reject(val.error);
27
+ }
28
+ }
29
+ });
30
+ });
31
+ (_subscription = subscription) === null || _subscription === void 0 ? void 0 : _subscription.unsubscribe();
32
+ return data;
33
+ } catch (e) {
34
+ var _subscription2;
35
+ (_subscription2 = subscription) === null || _subscription2 === void 0 ? void 0 : _subscription2.unsubscribe();
36
+ throw e;
37
+ }
38
+ });
39
+ return _waitForFragmentData.apply(this, arguments);
40
+ }
41
+ function observeFragment(environment, fragment, fragmentRef) {
42
+ var _fragmentNode$metadat;
43
+ var fragmentNode = getFragment(fragment);
44
+ var fragmentSelector = getSelector(fragmentNode, fragmentRef);
45
+ !(((_fragmentNode$metadat = fragmentNode.metadata) === null || _fragmentNode$metadat === void 0 ? void 0 : _fragmentNode$metadat.hasClientEdges) == null) ? process.env.NODE_ENV !== "production" ? invariant(false, "Client edges aren't supported yet.") : invariant(false) : void 0;
46
+ !(fragmentSelector != null) ? process.env.NODE_ENV !== "production" ? invariant(false, 'Expected a selector, got null.') : invariant(false) : void 0;
47
+ switch (fragmentSelector.kind) {
48
+ case 'SingularReaderSelector':
49
+ return observeSelector(environment, fragment, fragmentSelector);
50
+ case 'PluralReaderSelector':
51
+ {
52
+ !false ? process.env.NODE_ENV !== "production" ? invariant(false, 'Plural fragments are not supported') : invariant(false) : void 0;
53
+ }
54
+ }
55
+ !false ? process.env.NODE_ENV !== "production" ? invariant(false, 'Unsupported fragment selector kind') : invariant(false) : void 0;
56
+ }
57
+ function observeSelector(environment, fragmentNode, fragmentSelector) {
58
+ var snapshot = environment.lookup(fragmentSelector);
59
+ return Observable.create(function (sink) {
60
+ sink.next(snapshotToFragmentState(environment, fragmentNode, fragmentSelector.owner, snapshot));
61
+ var subscription = environment.subscribe(snapshot, function (nextSnapshot) {
62
+ sink.next(snapshotToFragmentState(environment, fragmentNode, fragmentSelector.owner, nextSnapshot));
63
+ });
64
+ return function () {
65
+ return subscription.dispose();
66
+ };
67
+ });
68
+ }
69
+ function snapshotToFragmentState(environment, fragmentNode, owner, snapshot) {
70
+ var missingLiveResolverFields = snapshot.missingLiveResolverFields != null && snapshot.missingLiveResolverFields.length > 0;
71
+ var missingClientEdges = snapshot.missingClientEdges != null && snapshot.missingClientEdges.length > 0;
72
+ if (missingLiveResolverFields || missingClientEdges) {
73
+ return {
74
+ state: 'loading'
75
+ };
76
+ }
77
+ if (snapshot.isMissingData) {
78
+ var pendingOperations = getPendingOperationsForFragment(environment, fragmentNode, owner);
79
+ if (pendingOperations != null) {
80
+ return {
81
+ state: 'loading'
82
+ };
83
+ }
84
+ }
85
+ try {
86
+ var _snapshot$selector$no, _snapshot$selector$no2;
87
+ handlePotentialSnapshotErrors(environment, snapshot.missingRequiredFields, snapshot.relayResolverErrors, snapshot.errorResponseFields, (_snapshot$selector$no = (_snapshot$selector$no2 = snapshot.selector.node.metadata) === null || _snapshot$selector$no2 === void 0 ? void 0 : _snapshot$selector$no2.throwOnFieldError) !== null && _snapshot$selector$no !== void 0 ? _snapshot$selector$no : false);
88
+ } catch (error) {
89
+ return {
90
+ error: error,
91
+ state: 'error'
92
+ };
93
+ }
94
+ !(snapshot.data != null) ? process.env.NODE_ENV !== "production" ? invariant(false, 'Expected data to be non-null.') : invariant(false) : void 0;
95
+ return {
96
+ state: 'ok',
97
+ value: snapshot.data
98
+ };
99
+ }
100
+ module.exports = {
101
+ observeFragment: observeFragment,
102
+ waitForFragmentData: waitForFragmentData
103
+ };
@@ -0,0 +1,37 @@
1
+ "use strict";
2
+
3
+ var _asyncToGenerator = require("@babel/runtime/helpers/asyncToGenerator").default;
4
+ var _require = require('./observeFragmentExperimental'),
5
+ observeFragment = _require.observeFragment;
6
+ function waitForFragmentData(_x, _x2, _x3) {
7
+ return _waitForFragmentData.apply(this, arguments);
8
+ }
9
+ function _waitForFragmentData() {
10
+ _waitForFragmentData = _asyncToGenerator(function* (environment, fragment, fragmentRef) {
11
+ var subscription;
12
+ try {
13
+ var _subscription;
14
+ var data = yield new Promise(function (resolve, reject) {
15
+ subscription = observeFragment(environment, fragment, fragmentRef).subscribe({
16
+ next: function next(val) {
17
+ if (val.state === 'ok') {
18
+ resolve(val.value);
19
+ } else if (val.state === 'error') {
20
+ reject(val.error);
21
+ }
22
+ }
23
+ });
24
+ });
25
+ (_subscription = subscription) === null || _subscription === void 0 ? void 0 : _subscription.unsubscribe();
26
+ return data;
27
+ } catch (e) {
28
+ var _subscription2;
29
+ (_subscription2 = subscription) === null || _subscription2 === void 0 ? void 0 : _subscription2.unsubscribe();
30
+ throw e;
31
+ }
32
+ });
33
+ return _waitForFragmentData.apply(this, arguments);
34
+ }
35
+ module.exports = {
36
+ waitForFragmentData: waitForFragmentData
37
+ };
@@ -10,7 +10,8 @@ function getPendingOperationsForFragment(environment, fragmentNode, fragmentOwne
10
10
  pendingOperations = [fragmentOwner];
11
11
  } else {
12
12
  var _result$pendingOperat, _result$promise;
13
- var result = environment.getOperationTracker().getPendingOperationsAffectingOwner(fragmentOwner);
13
+ var operationTracker = environment.getOperationTracker();
14
+ var result = operationTracker.getPendingOperationsAffectingOwner(fragmentOwner);
14
15
  pendingOperations = (_result$pendingOperat = result === null || result === void 0 ? void 0 : result.pendingOperations) !== null && _result$pendingOperat !== void 0 ? _result$pendingOperat : [];
15
16
  promise = (_result$promise = result === null || result === void 0 ? void 0 : result.promise) !== null && _result$promise !== void 0 ? _result$promise : null;
16
17
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "relay-runtime",
3
3
  "description": "A core runtime for building GraphQL-driven applications.",
4
- "version": "0.0.0-main-e95a5ae4",
4
+ "version": "0.0.0-main-c631ffd2",
5
5
  "keywords": [
6
6
  "graphql",
7
7
  "relay"
@@ -1,4 +1,4 @@
1
1
  /**
2
- * Relay v0.0.0-main-e95a5ae4
2
+ * Relay v0.0.0-main-c631ffd2
3
3
  */
4
- !function(e,r){"object"==typeof exports&&"object"==typeof module?module.exports=r(require("@babel/runtime/helpers/interopRequireDefault"),require("@babel/runtime/helpers/objectSpread2"),require("@babel/runtime/helpers/toConsumableArray"),require("fbjs/lib/areEqual"),require("fbjs/lib/warning"),require("invariant")):"function"==typeof define&&define.amd?define(["@babel/runtime/helpers/interopRequireDefault","@babel/runtime/helpers/objectSpread2","@babel/runtime/helpers/toConsumableArray","fbjs/lib/areEqual","fbjs/lib/warning","invariant"],r):"object"==typeof exports?exports.ReactRelayExperimental=r(require("@babel/runtime/helpers/interopRequireDefault"),require("@babel/runtime/helpers/objectSpread2"),require("@babel/runtime/helpers/toConsumableArray"),require("fbjs/lib/areEqual"),require("fbjs/lib/warning"),require("invariant")):e.ReactRelayExperimental=r(e["@babel/runtime/helpers/interopRequireDefault"],e["@babel/runtime/helpers/objectSpread2"],e["@babel/runtime/helpers/toConsumableArray"],e["fbjs/lib/areEqual"],e["fbjs/lib/warning"],e.invariant)}(self,((e,r,t,n,a,o)=>(()=>{"use strict";var l={649:(e,r,t)=>{var n=t(222);e.exports={resolverDataInjector:n,isValueResult:function(e){return!0===e.ok},isErrorResult:function(e){return!1===e.ok}}},634:(e,r,t)=>{var n=t(775),a=t(56),o=t(446);function l(e){var r=e;return"function"==typeof r?(r=r(),o(!1,"RelayGraphQLTag: node `%s` unexpectedly wrapped in a function.","Fragment"===r.kind?r.name:r.operation.name)):r.default&&(r=r.default),r}function i(e){var r=l(e);return"object"==typeof r&&null!==r&&r.kind===n.FRAGMENT}function u(e){var r=l(e);return"object"==typeof r&&null!==r&&r.kind===n.REQUEST}function s(e){var r=l(e);return"object"==typeof r&&null!==r&&r.kind===n.UPDATABLE_QUERY}function f(e){var r=l(e);return"object"==typeof r&&null!==r&&r.kind===n.INLINE_DATA_FRAGMENT}function c(e){var r=l(e);return i(r)||a(!1,"GraphQLTag: Expected a fragment, got `%s`.",JSON.stringify(r)),r}e.exports={getFragment:c,getNode:l,getPaginationFragment:function(e){var r,t=c(e),n=null===(r=t.metadata)||void 0===r?void 0:r.refetch,a=null==n?void 0:n.connection;return null===n||"object"!=typeof n||null===a||"object"!=typeof a?null:t},getRefetchableFragment:function(e){var r,t=c(e),n=null===(r=t.metadata)||void 0===r?void 0:r.refetch;return null===n||"object"!=typeof n?null:t},getRequest:function(e){var r=l(e);return u(r)||a(!1,"GraphQLTag: Expected a request, got `%s`.",JSON.stringify(r)),r},getUpdatableQuery:function(e){var r=l(e);return s(r)||a(!1,"GraphQLTag: Expected a request, got `%s`.",JSON.stringify(r)),r},getInlineDataFragment:function(e){var r=l(e);return f(r)||a(!1,"GraphQLTag: Expected an inline data fragment, got `%s`.",JSON.stringify(r)),r},graphql:function(e){a(!1,"graphql: Unexpected invocation at runtime. Either the Babel transform was not set up, or it failed to identify this call site. Make sure it is being used verbatim as `graphql`. Note also that there cannot be a space between graphql and the backtick that follows.")},isFragment:i,isRequest:u,isUpdatableQuery:s,isInlineDataFragment:f}},129:(e,r,t)=>{var n=(0,t(275).default)(t(175)),a=t(165).getArgumentValues,o=t(56);e.exports={getLocalVariables:function(e,r,t){if(null==r)return e;var o=(0,n.default)({},e),l=t?a(t,e):{};return r.forEach((function(e){var r,t=null!==(r=l[e.name])&&void 0!==r?r:e.defaultValue;o[e.name]=t})),o},getFragmentVariables:function(e,r,t){return null==e.argumentDefinitions?t:(e.argumentDefinitions.forEach((function(l){if(!t.hasOwnProperty(l.name))switch(a=a||(0,n.default)({},t),l.kind){case"LocalArgument":a[l.name]=l.defaultValue;break;case"RootArgument":if(!r.hasOwnProperty(l.name)){a[l.name]=void 0;break}a[l.name]=r[l.name];break;default:o(!1,"RelayConcreteVariables: Unexpected node kind `%s` in fragment `%s`.",l.kind,e.name)}})),a||t);var a},getOperationVariables:function(e,r,t){var n={};return e.argumentDefinitions.forEach((function(e){var r=e.defaultValue;null!=t[e.name]&&(r=t[e.name]),n[e.name]=r})),null!=r&&Object.keys(r).forEach((function(e){n[e]=r[e].get()})),n}}},256:(e,r,t)=>{var n=t(129).getFragmentVariables,a=t(165),o=a.CLIENT_EDGE_TRAVERSAL_PATH,l=a.FRAGMENT_OWNER_KEY,i=a.FRAGMENT_POINTER_IS_WITHIN_UNMATCHED_TYPE_REFINEMENT,u=a.FRAGMENTS_KEY,s=a.ID_KEY,f=t(125),c=t(56),E=t(446);function d(e,r){("object"!=typeof r||null===r||Array.isArray(r))&&c(!1,"RelayModernSelector: Expected value for fragment `%s` to be an object, got `%s`.",e.name,JSON.stringify(r));var t=r[s],a=r[u],f=r[l],d=r[o];if("string"==typeof t&&"object"==typeof a&&null!==a&&"object"==typeof a[e.name]&&null!==a[e.name]&&"object"==typeof f&&null!==f&&(null==d||Array.isArray(d))){var g=f,m=d,p=a[e.name];return A(e,t,n(e,g.variables,p),g,!0===p[i],m)}var _=JSON.stringify(r);return _.length>499&&(_=_.substr(0,498)+"…"),E(!1,"RelayModernSelector: Expected object to contain data for fragment `%s`, got `%s`. Make sure that the parent operation/fragment included fragment `...%s` without `@relay(mask: false)`.",e.name,_,e.name),null}function g(e,r){var t=null;return r.forEach((function(r,n){var a=null!=r?d(e,r):null;null!=a&&(t=t||[]).push(a)})),null==t?null:{kind:"PluralReaderSelector",selectors:t}}function m(e,r){return null==r?r:e.metadata&&!0===e.metadata.plural?(Array.isArray(r)||c(!1,"RelayModernSelector: Expected value for fragment `%s` to be an array, got `%s`. Remove `@relay(plural: true)` from fragment `%s` to allow the prop to be an object.",e.name,JSON.stringify(r),e.name),g(e,r)):(Array.isArray(r)&&c(!1,"RelayModernSelector: Expected value for fragment `%s` to be an object, got `%s`. Add `@relay(plural: true)` to fragment `%s` to allow the prop to be an array of items.",e.name,JSON.stringify(r),e.name),d(e,r))}function p(e,r){return null==r?r:e.metadata&&!0===e.metadata.plural?(Array.isArray(r)||c(!1,"RelayModernSelector: Expected value for fragment `%s` to be an array, got `%s`. Remove `@relay(plural: true)` from fragment `%s` to allow the prop to be an object.",e.name,JSON.stringify(r),e.name),function(e,r){var t=null;return r.forEach((function(r){var n=null!=r?_(e,r):null;null!=n&&(t=t||[]).push(n)})),t}(e,r)):(Array.isArray(r)&&c(!1,"RelayModernFragmentSpecResolver: Expected value for fragment `%s` to be an object, got `%s`. Add `@relay(plural: true)` to fragment `%s` to allow the prop to be an array of items.",e.name,JSON.stringify(r),e.name),_(e,r))}function _(e,r){("object"!=typeof r||null===r||Array.isArray(r))&&c(!1,"RelayModernSelector: Expected value for fragment `%s` to be an object, got `%s`.",e.name,JSON.stringify(r));var t=r[s];return"string"==typeof t?t:(E(!1,"RelayModernSelector: Expected object to contain data for fragment `%s`, got `%s`. Make sure that the parent operation/fragment included fragment `...%s` without `@relay(mask: false)`, or `null` is passed as the fragment reference for `%s` if it's conditonally included and the condition isn't met.",e.name,JSON.stringify(r),e.name,e.name),null)}function R(e,r){var t;return null==r?{}:!0===(null===(t=e.metadata)||void 0===t?void 0:t.plural)?(Array.isArray(r)||c(!1,"RelayModernSelector: Expected value for fragment `%s` to be an array, got `%s`. Remove `@relay(plural: true)` from fragment `%s` to allow the prop to be an object.",e.name,JSON.stringify(r),e.name),b(e,r)):(Array.isArray(r)&&c(!1,"RelayModernFragmentSpecResolver: Expected value for fragment `%s` to be an object, got `%s`. Add `@relay(plural: true)` to fragment `%s` to allow the prop to be an array of items.",e.name,JSON.stringify(r),e.name),v(e,r)||{})}function v(e,r){var t=d(e,r);return t?t.variables:null}function b(e,r){var t={};return r.forEach((function(r,n){if(null!=r){var a=v(e,r);null!=a&&Object.assign(t,a)}})),t}function y(e,r){return e.dataID===r.dataID&&e.node===r.node&&f(e.variables,r.variables)&&((t=e.owner)===(n=r.owner)||t.identifier===n.identifier&&f(t.cacheConfig,n.cacheConfig))&&e.isWithinUnmatchedTypeRefinement===r.isWithinUnmatchedTypeRefinement&&function(e,r){if(e===r)return!0;if(null==e||null==r||e.length!==r.length)return!1;for(var t=e.length;t--;){var n=e[t],a=r[t];if(n!==a&&(null==n||null==a||n.clientEdgeDestinationID!==a.clientEdgeDestinationID||n.readerClientEdge!==a.readerClientEdge))return!1}return!0}(e.clientEdgeTraversalPath,r.clientEdgeTraversalPath);var t,n}function A(e,r,t,n){var a=arguments.length>5?arguments[5]:void 0;return{kind:"SingularReaderSelector",dataID:r,isWithinUnmatchedTypeRefinement:arguments.length>4&&void 0!==arguments[4]&&arguments[4],clientEdgeTraversalPath:null!=a?a:null,node:e,variables:t,owner:n}}e.exports={areEqualSelectors:function(e,r){return e===r||(null==e?null==r:null==r?null==e:"SingularReaderSelector"===e.kind&&"SingularReaderSelector"===r.kind?y(e,r):"PluralReaderSelector"===e.kind&&"PluralReaderSelector"===r.kind&&e.selectors.length===r.selectors.length&&e.selectors.every((function(e,t){return y(e,r.selectors[t])})))},createReaderSelector:A,createNormalizationSelector:function(e,r,t){return{dataID:r,node:e,variables:t}},getDataIDsFromFragment:p,getDataIDsFromObject:function(e,r){var t={};for(var n in e)if(e.hasOwnProperty(n)){var a=e[n],o=r[n];t[n]=p(a,o)}return t},getSingularSelector:d,getPluralSelector:g,getSelector:m,getSelectorsFromObject:function(e,r){var t={};for(var n in e)if(e.hasOwnProperty(n)){var a=e[n],o=r[n];t[n]=m(a,o)}return t},getVariablesFromSingularFragment:v,getVariablesFromPluralFragment:b,getVariablesFromFragment:R,getVariablesFromObject:function(e,r){var t={};for(var n in e)if(e.hasOwnProperty(n)){var a=R(e[n],r[n]);Object.assign(t,a)}return t}}},165:(e,r,t)=>{var n=(0,t(275).default)(t(642)),a=t(330),o=t(775),l=t(94).stableCopy,i=t(56),u=o.VARIABLE,s=o.LITERAL,f=o.OBJECT_VALUE,c=o.LIST_VALUE;function E(e,r){if(e.kind===u)return function(e,r){return r.hasOwnProperty(e)||i(!1,"getVariableValue(): Undefined variable `%s`.",e),l(r[e])}(e.variableName,r);if(e.kind===s)return e.value;if(e.kind===f){var t={};return e.fields.forEach((function(e){t[e.name]=E(e,r)})),t}if(e.kind===c){var n=[];return e.items.forEach((function(e){null!=e&&n.push(E(e,r))})),n}}function d(e,r,t){var n={};return t&&(n[m.FRAGMENT_POINTER_IS_WITHIN_UNMATCHED_TYPE_REFINEMENT]=!0),e&&e.forEach((function(e){n[e.name]=E(e,r)})),n}function g(e,r){if(!r)return e;var t=[];for(var n in r)if(r.hasOwnProperty(n)){var a,o=r[n];null!=o&&t.push(n+":"+(null!==(a=JSON.stringify(o))&&void 0!==a?a:"undefined"))}return 0===t.length?e:e+"(".concat(t.join(","),")")}var m={ACTOR_IDENTIFIER_KEY:"__actorIdentifier",CLIENT_EDGE_TRAVERSAL_PATH:"__clientEdgeTraversalPath",FRAGMENTS_KEY:"__fragments",FRAGMENT_OWNER_KEY:"__fragmentOwner",FRAGMENT_POINTER_IS_WITHIN_UNMATCHED_TYPE_REFINEMENT:"$isWithinUnmatchedTypeRefinement",FRAGMENT_PROP_NAME_KEY:"__fragmentPropName",MODULE_COMPONENT_KEY:"__module_component",ERRORS_KEY:"__errors",ID_KEY:"__id",REF_KEY:"__ref",REFS_KEY:"__refs",ROOT_ID:"client:root",ROOT_TYPE:"__Root",TYPENAME_KEY:"__typename",INVALIDATED_AT_KEY:"__invalidated_at",RELAY_RESOLVER_VALUE_KEY:"__resolverValue",RELAY_RESOLVER_INVALIDATION_KEY:"__resolverValueMayBeInvalid",RELAY_RESOLVER_SNAPSHOT_KEY:"__resolverSnapshot",RELAY_RESOLVER_ERROR_KEY:"__resolverError",RELAY_RESOLVER_OUTPUT_TYPE_RECORD_IDS:"__resolverOutputTypeRecordIDs",formatStorageKey:g,getArgumentValue:E,getArgumentValues:d,getHandleStorageKey:function(e,r){var t=e.dynamicKey,o=e.handle,l=e.key,i=e.name,u=e.args,s=e.filters,f=a(o,l,i),c=null;return u&&s&&0!==u.length&&0!==s.length&&(c=u.filter((function(e){return s.indexOf(e.name)>-1}))),t&&(c=null!=c?[t].concat((0,n.default)(c)):[t]),null===c?f:g(f,d(c,r))},getStorageKey:function(e,r){if(e.storageKey)return e.storageKey;var t=function(e){var r,t;return"RelayResolver"===e.kind||"RelayLiveResolver"===e.kind?null==e.args?null===(t=e.fragment)||void 0===t?void 0:t.args:null==(null===(r=e.fragment)||void 0===r?void 0:r.args)?e.args:e.args.concat(e.fragment.args):void 0===e.args?void 0:e.args}(e),n=e.name;return t&&0!==t.length?g(n,d(t,r)):n},getStableStorageKey:function(e,r){return g(e,l(r))},getModuleComponentKey:function(e){return"".concat("__module_component_").concat(e)},getModuleOperationKey:function(e){return"".concat("__module_operation_").concat(e)}};e.exports=m},890:(e,r,t)=>{var n=t(634).getFragment,a=t(256).getSelector,o=t(56),l=[],i={};e.exports={readFragment:function(e,r){if(!l.length)throw new Error("readFragment should be called only from within a Relay Resolver function.");var t=l[l.length-1],u=n(e),s=a(u,r);null==s&&o(!1,"Expected a selector for the fragment of the resolver ".concat(u.name,", but got null.")),"SingularReaderSelector"!==s.kind&&o(!1,"Expected a singular reader selector for the fragment of the resolver ".concat(u.name,", but it was plural."));var f=t.getDataForResolverFragment(s,r),c=f.data,E=f.isMissingData,d=f.missingRequiredFields;if(E||null!=d&&"THROW"===d.action)throw i;return c},withResolverContext:function(e,r){l.push(e);try{return r()}finally{l.pop()}},RESOLVER_FRAGMENT_ERRORED_SENTINEL:i}},222:(e,r,t)=>{var n=t(890).readFragment,a=t(56);e.exports=function(e,r,t,o){var l=r;return function(r,i){var u=n(e,r);if(null==t)return l(u,i);if(null==u){if(!0!==o)return l(null,i);a(!1,"Expected required resolver field `%s` in fragment `%s` to be present. But resolvers fragment data is null/undefined.",t,e.name)}if(t in u)return!0===o&&null==u[t]&&a(!1,"Expected required resolver field `%s` in fragment `%s` to be non-null.",t,e.name),l(u[t],i);a(!1,"Missing field `%s` in fragment `%s` in resolver response.",t,e.name)}}},775:e=>{e.exports={ACTOR_CHANGE:"ActorChange",CATCH_FIELD:"CatchField",CONDITION:"Condition",CLIENT_COMPONENT:"ClientComponent",CLIENT_EDGE_TO_SERVER_OBJECT:"ClientEdgeToServerObject",CLIENT_EDGE_TO_CLIENT_OBJECT:"ClientEdgeToClientObject",CLIENT_EXTENSION:"ClientExtension",DEFER:"Defer",CONNECTION:"Connection",FRAGMENT:"Fragment",FRAGMENT_SPREAD:"FragmentSpread",INLINE_DATA_FRAGMENT_SPREAD:"InlineDataFragmentSpread",INLINE_DATA_FRAGMENT:"InlineDataFragment",INLINE_FRAGMENT:"InlineFragment",LINKED_FIELD:"LinkedField",LINKED_HANDLE:"LinkedHandle",LITERAL:"Literal",LIST_VALUE:"ListValue",LOCAL_ARGUMENT:"LocalArgument",MODULE_IMPORT:"ModuleImport",ALIASED_FRAGMENT_SPREAD:"AliasedFragmentSpread",ALIASED_INLINE_FRAGMENT_SPREAD:"AliasedInlineFragmentSpread",RELAY_RESOLVER:"RelayResolver",RELAY_LIVE_RESOLVER:"RelayLiveResolver",REQUIRED_FIELD:"RequiredField",OBJECT_VALUE:"ObjectValue",OPERATION:"Operation",REQUEST:"Request",ROOT_ARGUMENT:"RootArgument",SCALAR_FIELD:"ScalarField",SCALAR_HANDLE:"ScalarHandle",SPLIT_OPERATION:"SplitOperation",STREAM:"Stream",TYPE_DISCRIMINATOR:"TypeDiscriminator",UPDATABLE_QUERY:"UpdatableQuery",VARIABLE:"Variable"}},204:e=>{e.exports={DEFAULT_HANDLE_KEY:""}},330:(e,r,t)=>{var n=t(204).DEFAULT_HANDLE_KEY,a=t(56);e.exports=function(e,r,t){return r&&r!==n?"__".concat(r,"_").concat(e):(null==t&&a(!1,"getRelayHandleKey: Expected either `fieldName` or `key` in `handle` to be provided"),"__".concat(t,"_").concat(e))}},94:e=>{e.exports={stableCopy:function e(r){if(!r||"object"!=typeof r)return r;if(Array.isArray(r))return r.map(e);for(var t=Object.keys(r).sort(),n={},a=0;a<t.length;a++)n[t[a]]=e(r[t[a]]);return n},hasCycle:function e(r){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Set;if(!r||"object"!=typeof r)return!1;if(t.has(r))return!0;var n=new Set(t);return n.add(r),(Array.isArray(r)?r:Object.values(r)).some((function(r){return e(r,n)}))}}},275:r=>{r.exports=e},175:e=>{e.exports=r},642:e=>{e.exports=t},125:e=>{e.exports=n},446:e=>{e.exports=a},56:e=>{e.exports=o}},i={};return function e(r){var t=i[r];if(void 0!==t)return t.exports;var n=i[r]={exports:{}};return l[r](n,n.exports,e),n.exports}(649)})()));
4
+ !function(e,r){"object"==typeof exports&&"object"==typeof module?module.exports=r(require("@babel/runtime/helpers/asyncToGenerator"),require("@babel/runtime/helpers/createForOfIteratorHelper"),require("@babel/runtime/helpers/defineProperty"),require("@babel/runtime/helpers/inheritsLoose"),require("@babel/runtime/helpers/interopRequireDefault"),require("@babel/runtime/helpers/objectSpread2"),require("@babel/runtime/helpers/objectWithoutPropertiesLoose"),require("@babel/runtime/helpers/toConsumableArray"),require("@babel/runtime/helpers/wrapNativeSuper"),require("fbjs/lib/areEqual"),require("fbjs/lib/warning"),require("invariant")):"function"==typeof define&&define.amd?define(["@babel/runtime/helpers/asyncToGenerator","@babel/runtime/helpers/createForOfIteratorHelper","@babel/runtime/helpers/defineProperty","@babel/runtime/helpers/inheritsLoose","@babel/runtime/helpers/interopRequireDefault","@babel/runtime/helpers/objectSpread2","@babel/runtime/helpers/objectWithoutPropertiesLoose","@babel/runtime/helpers/toConsumableArray","@babel/runtime/helpers/wrapNativeSuper","fbjs/lib/areEqual","fbjs/lib/warning","invariant"],r):"object"==typeof exports?exports.ReactRelayExperimental=r(require("@babel/runtime/helpers/asyncToGenerator"),require("@babel/runtime/helpers/createForOfIteratorHelper"),require("@babel/runtime/helpers/defineProperty"),require("@babel/runtime/helpers/inheritsLoose"),require("@babel/runtime/helpers/interopRequireDefault"),require("@babel/runtime/helpers/objectSpread2"),require("@babel/runtime/helpers/objectWithoutPropertiesLoose"),require("@babel/runtime/helpers/toConsumableArray"),require("@babel/runtime/helpers/wrapNativeSuper"),require("fbjs/lib/areEqual"),require("fbjs/lib/warning"),require("invariant")):e.ReactRelayExperimental=r(e["@babel/runtime/helpers/asyncToGenerator"],e["@babel/runtime/helpers/createForOfIteratorHelper"],e["@babel/runtime/helpers/defineProperty"],e["@babel/runtime/helpers/inheritsLoose"],e["@babel/runtime/helpers/interopRequireDefault"],e["@babel/runtime/helpers/objectSpread2"],e["@babel/runtime/helpers/objectWithoutPropertiesLoose"],e["@babel/runtime/helpers/toConsumableArray"],e["@babel/runtime/helpers/wrapNativeSuper"],e["fbjs/lib/areEqual"],e["fbjs/lib/warning"],e.invariant)}(self,((e,r,t,n,a,o,i,u,l,s,c,f)=>(()=>{"use strict";var d={649:(e,r,t)=>{var n=t(222),a=t(696).observeFragment,o=t(461).waitForFragmentData;e.exports={resolverDataInjector:n,isValueResult:function(e){return!0===e.ok},isErrorResult:function(e){return!1===e.ok},observeFragment:a,waitForFragmentData:o}},60:(e,r,t)=>{var n=t(571),a=function(e,r){},o=function(){function e(e){if(!e||"function"!=typeof e)throw new Error("Source must be a Function: "+String(e));this._source=e}e.create=function(r){return new e(r)},e.onUnhandledError=function(e){a=e},e.from=function(e){return function(e){return"object"==typeof e&&null!==e&&"function"==typeof e.subscribe}(e)?i(e):n(e)?u(e):l(e)};var r=e.prototype;return r.catch=function(r){var t=this;return e.create((function(e){var n;return t.subscribe({start:function(e){n=e},next:e.next,complete:e.complete,error:function(t){try{r(t).subscribe({start:function(e){n=e},next:e.next,complete:e.complete,error:e.error})}catch(r){e.error(r,!0)}}}),function(){return n.unsubscribe()}}))},r.concat=function(r){var t=this;return e.create((function(e){var n;return t.subscribe({start:function(e){n=e},next:e.next,error:e.error,complete:function(){n=r.subscribe(e)}}),function(){n&&n.unsubscribe()}}))},r.do=function(r){var t=this;return e.create((function(e){var n=function(t){return function(){try{r[t]&&r[t].apply(r,arguments)}catch(e){a(e,!0)}e[t]&&e[t].apply(e,arguments)}};return t.subscribe({start:n("start"),next:n("next"),error:n("error"),complete:n("complete"),unsubscribe:n("unsubscribe")})}))},r.finally=function(r){var t=this;return e.create((function(e){var n=t.subscribe(e);return function(){n.unsubscribe(),r()}}))},r.ifEmpty=function(r){var t=this;return e.create((function(e){var n,a=!1;return n=t.subscribe({next:function(r){a=!0,e.next(r)},error:e.error,complete:function(){a?e.complete():n=r.subscribe(e)}}),function(){n&&n.unsubscribe()}}))},r.subscribe=function(e){if(!e||"object"!=typeof e)throw new Error("Observer must be an Object with callbacks: "+String(e));return function(e,r){var t,n=!1,o=function(e){return Object.defineProperty(e,"closed",{get:function(){return n}})};function i(){if(t){if(t.unsubscribe)t.unsubscribe();else try{t()}catch(e){a(e,!0)}t=void 0}}var u=o({unsubscribe:function(){if(!n){n=!0;try{r.unsubscribe&&r.unsubscribe(u)}catch(e){a(e,!0)}finally{i()}}}});try{r.start&&r.start(u)}catch(e){a(e,!0)}if(n)return u;var l=o({next:function(e){if(!n&&r.next)try{r.next(e)}catch(e){a(e,!0)}},error:function(e,t){if(n||!r.error)n=!0,a(e,t||!1),i();else{n=!0;try{r.error(e)}catch(e){a(e,!0)}finally{i()}}},complete:function(){if(!n){n=!0;try{r.complete&&r.complete()}catch(e){a(e,!0)}finally{i()}}}});try{t=e(l)}catch(e){l.error(e,!0)}if(void 0!==t&&"function"!=typeof t&&(!t||"function"!=typeof t.unsubscribe))throw new Error("Returned cleanup function which cannot be called: "+String(t));return n&&i(),u}(this._source,e)},r.map=function(r){var t=this;return e.create((function(e){var n=t.subscribe({complete:e.complete,error:e.error,next:function(t){try{var n=r(t);e.next(n)}catch(r){e.error(r,!0)}}});return function(){n.unsubscribe()}}))},r.mergeMap=function(r){var t=this;return e.create((function(n){var a=[];function o(e){this._sub=e,a.push(e)}function i(){a.splice(a.indexOf(this._sub),1),0===a.length&&n.complete()}return t.subscribe({start:o,next:function(t){try{n.closed||e.from(r(t)).subscribe({start:o,next:n.next,error:n.error,complete:i})}catch(e){n.error(e,!0)}},error:n.error,complete:i}),function(){a.forEach((function(e){return e.unsubscribe()})),a.length=0}}))},r.poll=function(r){var t=this;if("number"!=typeof r||r<=0)throw new Error("RelayObservable: Expected pollInterval to be positive, got: "+r);return e.create((function(e){var n,a;return function o(){n=t.subscribe({next:e.next,error:e.error,complete:function(){a=setTimeout(o,r)}})}(),function(){clearTimeout(a),n.unsubscribe()}}))},r.toPromise=function(){var e=this;return new Promise((function(r,t){var n=!1;e.subscribe({next:function(e){n||(n=!0,r(e))},error:t,complete:r})}))},e}();function i(e){return e instanceof o?e:o.create((function(r){return e.subscribe(r)}))}function u(e){return o.create((function(r){e.then((function(e){r.next(e),r.complete()}),r.error)}))}function l(e){return o.create((function(r){r.next(e),r.complete()}))}o.onUnhandledError((function(e,r){"function"==typeof fail?fail(String(e)):r?setTimeout((function(){throw e})):"undefined"!=typeof console&&console.error("RelayObservable: Unhandled Error",e)})),e.exports=o},634:(e,r,t)=>{var n=t(775),a=t(56),o=t(446);function i(e){var r=e;return"function"==typeof r?(r=r(),o(!1,"RelayGraphQLTag: node `%s` unexpectedly wrapped in a function.","Fragment"===r.kind?r.name:r.operation.name)):r.default&&(r=r.default),r}function u(e){var r=i(e);return"object"==typeof r&&null!==r&&r.kind===n.FRAGMENT}function l(e){var r=i(e);return"object"==typeof r&&null!==r&&r.kind===n.REQUEST}function s(e){var r=i(e);return"object"==typeof r&&null!==r&&r.kind===n.UPDATABLE_QUERY}function c(e){var r=i(e);return"object"==typeof r&&null!==r&&r.kind===n.INLINE_DATA_FRAGMENT}function f(e){var r=i(e);return u(r)||a(!1,"GraphQLTag: Expected a fragment, got `%s`.",JSON.stringify(r)),r}e.exports={getFragment:f,getNode:i,getPaginationFragment:function(e){var r,t=f(e),n=null===(r=t.metadata)||void 0===r?void 0:r.refetch,a=null==n?void 0:n.connection;return null===n||"object"!=typeof n||null===a||"object"!=typeof a?null:t},getRefetchableFragment:function(e){var r,t=f(e),n=null===(r=t.metadata)||void 0===r?void 0:r.refetch;return null===n||"object"!=typeof n?null:t},getRequest:function(e){var r=i(e);return l(r)||a(!1,"GraphQLTag: Expected a request, got `%s`.",JSON.stringify(r)),r},getUpdatableQuery:function(e){var r=i(e);return s(r)||a(!1,"GraphQLTag: Expected a request, got `%s`.",JSON.stringify(r)),r},getInlineDataFragment:function(e){var r=i(e);return c(r)||a(!1,"GraphQLTag: Expected an inline data fragment, got `%s`.",JSON.stringify(r)),r},graphql:function(e){a(!1,"graphql: Unexpected invocation at runtime. Either the Babel transform was not set up, or it failed to identify this call site. Make sure it is being used verbatim as `graphql`. Note also that there cannot be a space between graphql and the backtick that follows.")},isFragment:u,isRequest:l,isUpdatableQuery:s,isInlineDataFragment:c}},367:(e,r,t)=>{var n=t(60),a=t(153),o=t(56),i="function"==typeof WeakMap?new WeakMap:new Map;function u(e,r,t){return n.create((function(i){var u=s(e),l=u.get(r);return l||t().finally((function(){return u.delete(r)})).subscribe({start:function(e){l={identifier:r,subject:new a,subjectForInFlightStatus:new a,subscription:e,promise:null},u.set(r,l)},next:function(e){var t=c(u,r);t.subject.next(e),t.subjectForInFlightStatus.next(e)},error:function(e){var t=c(u,r);t.subject.error(e),t.subjectForInFlightStatus.error(e)},complete:function(){var e=c(u,r);e.subject.complete(),e.subjectForInFlightStatus.complete()},unsubscribe:function(e){var t=c(u,r);t.subject.unsubscribe(),t.subjectForInFlightStatus.unsubscribe()}}),null==l&&o(!1,"[fetchQueryInternal] fetchQueryDeduped: Expected `start` to be called synchronously"),function(e,r){return n.create((function(t){var n=r.subject.subscribe(t);return function(){n.unsubscribe();var t=e.get(r.identifier);if(t){var a=t.subscription;null!=a&&0===t.subject.getObserverCount()&&(a.unsubscribe(),e.delete(r.identifier))}}}))}(u,l).subscribe(i)}))}function l(e,r,t){return n.create((function(r){var n=t.subjectForInFlightStatus.subscribe({error:r.error,next:function(n){e.isRequestActive(t.identifier)?r.next():r.complete()},complete:r.complete,unsubscribe:r.complete});return function(){n.unsubscribe()}}))}function s(e){var r=i.get(e);if(null!=r)return r;var t=new Map;return i.set(e,t),t}function c(e,r){var t=e.get(r);return null==t&&o(!1,"[fetchQueryInternal] getCachedRequest: Expected request to be cached"),t}e.exports={fetchQuery:function(e,r){return u(e,r.request.identifier,(function(){return e.execute({operation:r})}))},fetchQueryDeduped:u,getPromiseForActiveRequest:function(e,r){var t=s(e).get(r.identifier);return t&&e.isRequestActive(t.identifier)?new Promise((function(r,n){var a=!1;l(e,0,t).subscribe({complete:r,error:n,next:function(e){a&&r(e)}}),a=!0})):null},getObservableForActiveRequest:function(e,r){var t=s(e).get(r.identifier);return t&&e.isRequestActive(t.identifier)?l(e,0,t):null}}},129:(e,r,t)=>{var n=(0,t(275).default)(t(175)),a=t(165).getArgumentValues,o=t(56);e.exports={getLocalVariables:function(e,r,t){if(null==r)return e;var o=(0,n.default)({},e),i=t?a(t,e):{};return r.forEach((function(e){var r,t=null!==(r=i[e.name])&&void 0!==r?r:e.defaultValue;o[e.name]=t})),o},getFragmentVariables:function(e,r,t){return null==e.argumentDefinitions?t:(e.argumentDefinitions.forEach((function(i){if(!t.hasOwnProperty(i.name))switch(a=a||(0,n.default)({},t),i.kind){case"LocalArgument":a[i.name]=i.defaultValue;break;case"RootArgument":if(!r.hasOwnProperty(i.name)){a[i.name]=void 0;break}a[i.name]=r[i.name];break;default:o(!1,"RelayConcreteVariables: Unexpected node kind `%s` in fragment `%s`.",i.kind,e.name)}})),a||t);var a},getOperationVariables:function(e,r,t){var n={};return e.argumentDefinitions.forEach((function(e){var r=e.defaultValue;null!=t[e.name]&&(r=t[e.name]),n[e.name]=r})),null!=r&&Object.keys(r).forEach((function(e){n[e]=r[e].get()})),n}}},288:(e,r,t)=>{var n=t(275).default,a=n(t(175)),o=n(t(264)),i=n(t(765)),u=n(t(296)),l=n(t(757)),s=n(t(642)),c=["path","locations"],f=Symbol("$SELF"),d=function(e){function r(r){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return(t=e.call(this,r)||this).name="RelayFieldError",t.message=r,t.errors=n,t}return(0,u.default)(r,e),r}((0,l.default)(Error));function p(e,r){var t,n=(0,i.default)(e);try{for(n.s();!(t=n.n()).done;){var o=t.value,u=o[0],l=o[1],c=r.length;if(Array.isArray(l)?r.push.apply(r,(0,s.default)(l)):p(l,r),u!==f)for(var d=r.length,b=c;b<d;b++){var E=r[b];null==E.path?r[b]=(0,a.default)((0,a.default)({},E),{},{path:[u]}):E.path.unshift(u)}}}catch(e){n.e(e)}finally{n.f()}}e.exports={SELF:f,buildErrorTrie:function(e){if(null==e)return null;var r,t=new Map,n=(0,i.default)(e);try{for(n.s();!(r=n.n()).done;){var a=r.value,u=a.path,l=(a.locations,(0,o.default)(a,c));if(null!=u){var s=u.length;if(0!==s){for(var d=s-1,p=t,b=0;b<d;b++){var E=u[b],m=p.get(E);if(m instanceof Map)p=m;else{var g=new Map;Array.isArray(m)&&g.set(f,m),p.set(E,g),p=g}}var v=u[d],_=p.get(v);_ instanceof Map&&(_=(p=_).get(v),v=f),Array.isArray(_)?_.push(l):p.set(v,[l])}}}}catch(e){n.e(e)}finally{n.f()}return t},getNestedErrorTrieByKey:function(e,r){var t=e.get(r);return t instanceof Map?t:null},getErrorsByKey:function(e,r){var t=e.get(r);if(null==t)return null;if(Array.isArray(t))return t;var n=[];return p(t,n),n},RelayFieldError:d}},256:(e,r,t)=>{var n=t(129).getFragmentVariables,a=t(165),o=a.CLIENT_EDGE_TRAVERSAL_PATH,i=a.FRAGMENT_OWNER_KEY,u=a.FRAGMENT_POINTER_IS_WITHIN_UNMATCHED_TYPE_REFINEMENT,l=a.FRAGMENTS_KEY,s=a.ID_KEY,c=t(125),f=t(56),d=t(446);function p(e,r){("object"!=typeof r||null===r||Array.isArray(r))&&f(!1,"RelayModernSelector: Expected value for fragment `%s` to be an object, got `%s`.",e.name,JSON.stringify(r));var t=r[s],a=r[l],c=r[i],p=r[o];if("string"==typeof t&&"object"==typeof a&&null!==a&&"object"==typeof a[e.name]&&null!==a[e.name]&&"object"==typeof c&&null!==c&&(null==p||Array.isArray(p))){var b=c,E=p,m=a[e.name];return R(e,t,n(e,b.variables,m),b,!0===m[u],E)}var g=JSON.stringify(r);return g.length>499&&(g=g.substr(0,498)+"…"),d(!1,"RelayModernSelector: Expected object to contain data for fragment `%s`, got `%s`. Make sure that the parent operation/fragment included fragment `...%s` without `@relay(mask: false)`.",e.name,g,e.name),null}function b(e,r){var t=null;return r.forEach((function(r,n){var a=null!=r?p(e,r):null;null!=a&&(t=t||[]).push(a)})),null==t?null:{kind:"PluralReaderSelector",selectors:t}}function E(e,r){return null==r?r:e.metadata&&!0===e.metadata.plural?(Array.isArray(r)||f(!1,"RelayModernSelector: Expected value for fragment `%s` to be an array, got `%s`. Remove `@relay(plural: true)` from fragment `%s` to allow the prop to be an object.",e.name,JSON.stringify(r),e.name),b(e,r)):(Array.isArray(r)&&f(!1,"RelayModernSelector: Expected value for fragment `%s` to be an object, got `%s`. Add `@relay(plural: true)` to fragment `%s` to allow the prop to be an array of items.",e.name,JSON.stringify(r),e.name),p(e,r))}function m(e,r){return null==r?r:e.metadata&&!0===e.metadata.plural?(Array.isArray(r)||f(!1,"RelayModernSelector: Expected value for fragment `%s` to be an array, got `%s`. Remove `@relay(plural: true)` from fragment `%s` to allow the prop to be an object.",e.name,JSON.stringify(r),e.name),function(e,r){var t=null;return r.forEach((function(r){var n=null!=r?g(e,r):null;null!=n&&(t=t||[]).push(n)})),t}(e,r)):(Array.isArray(r)&&f(!1,"RelayModernFragmentSpecResolver: Expected value for fragment `%s` to be an object, got `%s`. Add `@relay(plural: true)` to fragment `%s` to allow the prop to be an array of items.",e.name,JSON.stringify(r),e.name),g(e,r))}function g(e,r){("object"!=typeof r||null===r||Array.isArray(r))&&f(!1,"RelayModernSelector: Expected value for fragment `%s` to be an object, got `%s`.",e.name,JSON.stringify(r));var t=r[s];return"string"==typeof t?t:(d(!1,"RelayModernSelector: Expected object to contain data for fragment `%s`, got `%s`. Make sure that the parent operation/fragment included fragment `...%s` without `@relay(mask: false)`, or `null` is passed as the fragment reference for `%s` if it's conditonally included and the condition isn't met.",e.name,JSON.stringify(r),e.name,e.name),null)}function v(e,r){var t;return null==r?{}:!0===(null===(t=e.metadata)||void 0===t?void 0:t.plural)?(Array.isArray(r)||f(!1,"RelayModernSelector: Expected value for fragment `%s` to be an array, got `%s`. Remove `@relay(plural: true)` from fragment `%s` to allow the prop to be an object.",e.name,JSON.stringify(r),e.name),h(e,r)):(Array.isArray(r)&&f(!1,"RelayModernFragmentSpecResolver: Expected value for fragment `%s` to be an object, got `%s`. Add `@relay(plural: true)` to fragment `%s` to allow the prop to be an array of items.",e.name,JSON.stringify(r),e.name),_(e,r)||{})}function _(e,r){var t=p(e,r);return t?t.variables:null}function h(e,r){var t={};return r.forEach((function(r,n){if(null!=r){var a=_(e,r);null!=a&&Object.assign(t,a)}})),t}function y(e,r){return e.dataID===r.dataID&&e.node===r.node&&c(e.variables,r.variables)&&((t=e.owner)===(n=r.owner)||t.identifier===n.identifier&&c(t.cacheConfig,n.cacheConfig))&&e.isWithinUnmatchedTypeRefinement===r.isWithinUnmatchedTypeRefinement&&function(e,r){if(e===r)return!0;if(null==e||null==r||e.length!==r.length)return!1;for(var t=e.length;t--;){var n=e[t],a=r[t];if(n!==a&&(null==n||null==a||n.clientEdgeDestinationID!==a.clientEdgeDestinationID||n.readerClientEdge!==a.readerClientEdge))return!1}return!0}(e.clientEdgeTraversalPath,r.clientEdgeTraversalPath);var t,n}function R(e,r,t,n){var a=arguments.length>5?arguments[5]:void 0;return{kind:"SingularReaderSelector",dataID:r,isWithinUnmatchedTypeRefinement:arguments.length>4&&void 0!==arguments[4]&&arguments[4],clientEdgeTraversalPath:null!=a?a:null,node:e,variables:t,owner:n}}e.exports={areEqualSelectors:function(e,r){return e===r||(null==e?null==r:null==r?null==e:"SingularReaderSelector"===e.kind&&"SingularReaderSelector"===r.kind?y(e,r):"PluralReaderSelector"===e.kind&&"PluralReaderSelector"===r.kind&&e.selectors.length===r.selectors.length&&e.selectors.every((function(e,t){return y(e,r.selectors[t])})))},createReaderSelector:R,createNormalizationSelector:function(e,r,t){return{dataID:r,node:e,variables:t}},getDataIDsFromFragment:m,getDataIDsFromObject:function(e,r){var t={};for(var n in e)if(e.hasOwnProperty(n)){var a=e[n],o=r[n];t[n]=m(a,o)}return t},getSingularSelector:p,getPluralSelector:b,getSelector:E,getSelectorsFromObject:function(e,r){var t={};for(var n in e)if(e.hasOwnProperty(n)){var a=e[n],o=r[n];t[n]=E(a,o)}return t},getVariablesFromSingularFragment:_,getVariablesFromPluralFragment:h,getVariablesFromFragment:v,getVariablesFromObject:function(e,r){var t={};for(var n in e)if(e.hasOwnProperty(n)){var a=v(e[n],r[n]);Object.assign(t,a)}return t}}},165:(e,r,t)=>{var n=(0,t(275).default)(t(642)),a=t(330),o=t(775),i=t(94).stableCopy,u=t(56),l=o.VARIABLE,s=o.LITERAL,c=o.OBJECT_VALUE,f=o.LIST_VALUE;function d(e,r){if(e.kind===l)return function(e,r){return r.hasOwnProperty(e)||u(!1,"getVariableValue(): Undefined variable `%s`.",e),i(r[e])}(e.variableName,r);if(e.kind===s)return e.value;if(e.kind===c){var t={};return e.fields.forEach((function(e){t[e.name]=d(e,r)})),t}if(e.kind===f){var n=[];return e.items.forEach((function(e){null!=e&&n.push(d(e,r))})),n}}function p(e,r,t){var n={};return t&&(n[E.FRAGMENT_POINTER_IS_WITHIN_UNMATCHED_TYPE_REFINEMENT]=!0),e&&e.forEach((function(e){n[e.name]=d(e,r)})),n}function b(e,r){if(!r)return e;var t=[];for(var n in r)if(r.hasOwnProperty(n)){var a,o=r[n];null!=o&&t.push(n+":"+(null!==(a=JSON.stringify(o))&&void 0!==a?a:"undefined"))}return 0===t.length?e:e+"(".concat(t.join(","),")")}var E={ACTOR_IDENTIFIER_KEY:"__actorIdentifier",CLIENT_EDGE_TRAVERSAL_PATH:"__clientEdgeTraversalPath",FRAGMENTS_KEY:"__fragments",FRAGMENT_OWNER_KEY:"__fragmentOwner",FRAGMENT_POINTER_IS_WITHIN_UNMATCHED_TYPE_REFINEMENT:"$isWithinUnmatchedTypeRefinement",FRAGMENT_PROP_NAME_KEY:"__fragmentPropName",MODULE_COMPONENT_KEY:"__module_component",ERRORS_KEY:"__errors",ID_KEY:"__id",REF_KEY:"__ref",REFS_KEY:"__refs",ROOT_ID:"client:root",ROOT_TYPE:"__Root",TYPENAME_KEY:"__typename",INVALIDATED_AT_KEY:"__invalidated_at",RELAY_RESOLVER_VALUE_KEY:"__resolverValue",RELAY_RESOLVER_INVALIDATION_KEY:"__resolverValueMayBeInvalid",RELAY_RESOLVER_SNAPSHOT_KEY:"__resolverSnapshot",RELAY_RESOLVER_ERROR_KEY:"__resolverError",RELAY_RESOLVER_OUTPUT_TYPE_RECORD_IDS:"__resolverOutputTypeRecordIDs",formatStorageKey:b,getArgumentValue:d,getArgumentValues:p,getHandleStorageKey:function(e,r){var t=e.dynamicKey,o=e.handle,i=e.key,u=e.name,l=e.args,s=e.filters,c=a(o,i,u),f=null;return l&&s&&0!==l.length&&0!==s.length&&(f=l.filter((function(e){return s.indexOf(e.name)>-1}))),t&&(f=null!=f?[t].concat((0,n.default)(f)):[t]),null===f?c:b(c,p(f,r))},getStorageKey:function(e,r){if(e.storageKey)return e.storageKey;var t=function(e){var r,t;return"RelayResolver"===e.kind||"RelayLiveResolver"===e.kind?null==e.args?null===(t=e.fragment)||void 0===t?void 0:t.args:null==(null===(r=e.fragment)||void 0===r?void 0:r.args)?e.args:e.args.concat(e.fragment.args):void 0===e.args?void 0:e.args}(e),n=e.name;return t&&0!==t.length?b(n,p(t,r)):n},getStableStorageKey:function(e,r){return b(e,i(r))},getModuleComponentKey:function(e){return"".concat("__module_component_").concat(e)},getModuleOperationKey:function(e){return"".concat("__module_operation_").concat(e)}};e.exports=E},890:(e,r,t)=>{var n=t(634).getFragment,a=t(256).getSelector,o=t(56),i=[],u={};e.exports={readFragment:function(e,r){if(!i.length)throw new Error("readFragment should be called only from within a Relay Resolver function.");var t=i[i.length-1],l=n(e),s=a(l,r);null==s&&o(!1,"Expected a selector for the fragment of the resolver ".concat(l.name,", but got null.")),"SingularReaderSelector"!==s.kind&&o(!1,"Expected a singular reader selector for the fragment of the resolver ".concat(l.name,", but it was plural."));var c=t.getDataForResolverFragment(s,r),f=c.data,d=c.isMissingData,p=c.missingRequiredFields;if(d||null!=p&&"THROW"===p.action)throw u;return f},withResolverContext:function(e,r){i.push(e);try{return r()}finally{i.pop()}},RESOLVER_FRAGMENT_ERRORED_SENTINEL:u}},222:(e,r,t)=>{var n=t(890).readFragment,a=t(56);e.exports=function(e,r,t,o){var i=r;return function(r,u){var l=n(e,r);if(null==t)return i(l,u);if(null==l){if(!0!==o)return i(null,u);a(!1,"Expected required resolver field `%s` in fragment `%s` to be present. But resolvers fragment data is null/undefined.",t,e.name)}if(t in l)return!0===o&&null==l[t]&&a(!1,"Expected required resolver field `%s` in fragment `%s` to be non-null.",t,e.name),i(l[t],u);a(!1,"Missing field `%s` in fragment `%s` in resolver response.",t,e.name)}}},696:(e,r,t)=>{var n=t(314).default,a=t(60),o=t(634).getFragment,i=t(250),u=t(541),l=t(256).getSelector,s=t(56);function c(){return(c=n((function*(e,r,t){var n;try{var a,o=yield new Promise((function(a,o){n=f(e,r,t).subscribe({next:function(e){"ok"===e.state?a(e.value):"error"===e.state&&o(e.error)}})}));return null===(a=n)||void 0===a||a.unsubscribe(),o}catch(e){var i;throw null===(i=n)||void 0===i||i.unsubscribe(),e}}))).apply(this,arguments)}function f(e,r,t){var n,i=o(r),u=l(i,t);switch(null!=(null===(n=i.metadata)||void 0===n?void 0:n.hasClientEdges)&&s(!1,"Client edges aren't supported yet."),null==u&&s(!1,"Expected a selector, got null."),u.kind){case"SingularReaderSelector":return function(e,r,t){var n=e.lookup(t);return a.create((function(a){a.next(d(e,r,t.owner,n));var o=e.subscribe(n,(function(n){a.next(d(e,r,t.owner,n))}));return function(){return o.dispose()}}))}(e,r,u);case"PluralReaderSelector":s(!1,"Plural fragments are not supported")}s(!1,"Unsupported fragment selector kind")}function d(e,r,t,n){var a=null!=n.missingLiveResolverFields&&n.missingLiveResolverFields.length>0,o=null!=n.missingClientEdges&&n.missingClientEdges.length>0;if(a||o)return{state:"loading"};if(n.isMissingData&&null!=i(e,r,t))return{state:"loading"};try{var l,c;u(e,n.missingRequiredFields,n.relayResolverErrors,n.errorResponseFields,null!==(l=null===(c=n.selector.node.metadata)||void 0===c?void 0:c.throwOnFieldError)&&void 0!==l&&l)}catch(e){return{error:e,state:"error"}}return null==n.data&&s(!1,"Expected data to be non-null."),{state:"ok",value:n.data}}e.exports={observeFragment:f,waitForFragmentData:function(e,r,t){return c.apply(this,arguments)}}},461:(e,r,t)=>{var n=t(314).default,a=t(696).observeFragment;function o(){return(o=n((function*(e,r,t){var n;try{var o,i=yield new Promise((function(o,i){n=a(e,r,t).subscribe({next:function(e){"ok"===e.state?o(e.value):"error"===e.state&&i(e.error)}})}));return null===(o=n)||void 0===o||o.unsubscribe(),i}catch(e){var u;throw null===(u=n)||void 0===u||u.unsubscribe(),e}}))).apply(this,arguments)}e.exports={waitForFragmentData:function(e,r,t){return o.apply(this,arguments)}}},775:e=>{e.exports={ACTOR_CHANGE:"ActorChange",CATCH_FIELD:"CatchField",CONDITION:"Condition",CLIENT_COMPONENT:"ClientComponent",CLIENT_EDGE_TO_SERVER_OBJECT:"ClientEdgeToServerObject",CLIENT_EDGE_TO_CLIENT_OBJECT:"ClientEdgeToClientObject",CLIENT_EXTENSION:"ClientExtension",DEFER:"Defer",CONNECTION:"Connection",FRAGMENT:"Fragment",FRAGMENT_SPREAD:"FragmentSpread",INLINE_DATA_FRAGMENT_SPREAD:"InlineDataFragmentSpread",INLINE_DATA_FRAGMENT:"InlineDataFragment",INLINE_FRAGMENT:"InlineFragment",LINKED_FIELD:"LinkedField",LINKED_HANDLE:"LinkedHandle",LITERAL:"Literal",LIST_VALUE:"ListValue",LOCAL_ARGUMENT:"LocalArgument",MODULE_IMPORT:"ModuleImport",ALIASED_FRAGMENT_SPREAD:"AliasedFragmentSpread",ALIASED_INLINE_FRAGMENT_SPREAD:"AliasedInlineFragmentSpread",RELAY_RESOLVER:"RelayResolver",RELAY_LIVE_RESOLVER:"RelayLiveResolver",REQUIRED_FIELD:"RequiredField",OBJECT_VALUE:"ObjectValue",OPERATION:"Operation",REQUEST:"Request",ROOT_ARGUMENT:"RootArgument",SCALAR_FIELD:"ScalarField",SCALAR_HANDLE:"ScalarHandle",SPLIT_OPERATION:"SplitOperation",STREAM:"Stream",TYPE_DISCRIMINATOR:"TypeDiscriminator",UPDATABLE_QUERY:"UpdatableQuery",VARIABLE:"Variable"}},204:e=>{e.exports={DEFAULT_HANDLE_KEY:""}},770:e=>{e.exports={ENABLE_VARIABLE_CONNECTION_KEY:!1,ENABLE_RELAY_RESOLVERS:!1,ENABLE_GETFRAGMENTIDENTIFIER_OPTIMIZATION:!1,ENABLE_FRIENDLY_QUERY_NAME_GQL_URL:!1,ENABLE_LOAD_QUERY_REQUEST_DEDUPING:!0,ENABLE_DO_NOT_WRAP_LIVE_QUERY:!1,ENABLE_NOTIFY_SUBSCRIPTION:!1,BATCH_ASYNC_MODULE_UPDATES_FN:null,ENABLE_CONTAINERS_SUBSCRIBE_ON_COMMIT:!1,MAX_DATA_ID_LENGTH:null,STRING_INTERN_LEVEL:0,LOG_MISSING_RECORDS_IN_PROD:!1,ENABLE_LOOSE_SUBSCRIPTION_ATTRIBUTION:!1,ENABLE_OPERATION_TRACKER_OPTIMISTIC_UPDATES:!1,ENABLE_RELAY_OPERATION_TRACKER_SUSPENSE:!1,ENABLE_FIELD_ERROR_HANDLING_THROW_BY_DEFAULT:!1,PROCESS_OPTIMISTIC_UPDATE_BEFORE_SUBSCRIPTION:!1,MARK_RESOLVER_VALUES_AS_CLEAN_AFTER_FRAGMENT_REREAD:!1,ENABLE_CYLE_DETECTION_IN_VARIABLES:!1,ENABLE_ACTIVITY_COMPATIBILITY:!1,AVOID_CYCLES_IN_RESOLVER_NOTIFICATION:!1}},153:(e,r,t)=>{var n=t(275).default,a=n(t(765)),o=n(t(311)),i=t(60),u=t(56),l=function(){function e(){var e=this;(0,o.default)(this,"_complete",!1),(0,o.default)(this,"_events",[]),(0,o.default)(this,"_sinks",new Set),(0,o.default)(this,"_subscription",[]),this._observable=i.create((function(r){e._sinks.add(r);for(var t=e._events,n=0;n<t.length&&!r.closed;n++){var a=t[n];switch(a.kind){case"complete":r.complete();break;case"error":r.error(a.error);break;case"next":r.next(a.data);break;default:a.kind,u(!1,"RelayReplaySubject: Unknown event kind `%s`.",a.kind)}}return function(){e._sinks.delete(r)}}))}var r=e.prototype;return r.complete=function(){!0!==this._complete&&(this._complete=!0,this._events.push({kind:"complete"}),this._sinks.forEach((function(e){return e.complete()})))},r.error=function(e){!0!==this._complete&&(this._complete=!0,this._events.push({kind:"error",error:e}),this._sinks.forEach((function(r){return r.error(e)})))},r.next=function(e){!0!==this._complete&&(this._events.push({kind:"next",data:e}),this._sinks.forEach((function(r){return r.next(e)})))},r.subscribe=function(e){var r=this._observable.subscribe(e);return this._subscription.push(r),r},r.unsubscribe=function(){var e,r=(0,a.default)(this._subscription);try{for(r.s();!(e=r.n()).done;)e.value.unsubscribe()}catch(e){r.e(e)}finally{r.f()}this._subscription=[]},r.getObserverCount=function(){return this._sinks.size},e}();e.exports=l},250:(e,r,t)=>{var n=t(367).getPromiseForActiveRequest;e.exports=function(e,r,t){var a,o,i=[],u=n(e,t);if(null!=u)i=[t];else{var l,s,c=e.getOperationTracker().getPendingOperationsAffectingOwner(t);i=null!==(l=null==c?void 0:c.pendingOperations)&&void 0!==l?l:[],u=null!==(s=null==c?void 0:c.promise)&&void 0!==s?s:null}if(!u)return null;var f=null!==(a=null===(o=i)||void 0===o?void 0:o.map((function(e){return e.node.params.name})).join(","))&&void 0!==a?a:null;null!=f&&0!==f.length||(f="Unknown pending operation");var d=r.name,p=f===d?"Relay(".concat(f,")"):"Relay(".concat(f,":").concat(d,")");return u.displayName=p,e.__log({name:"pendingoperation.found",fragment:r,fragmentOwner:t,pendingOperations:i}),{promise:u,pendingOperations:i}}},330:(e,r,t)=>{var n=t(204).DEFAULT_HANDLE_KEY,a=t(56);e.exports=function(e,r,t){return r&&r!==n?"__".concat(r,"_").concat(e):(null==t&&a(!1,"getRelayHandleKey: Expected either `fieldName` or `key` in `handle` to be provided"),"__".concat(t,"_").concat(e))}},541:(e,r,t)=>{var n=(0,t(275).default)(t(765)),a=t(288).RelayFieldError,o=t(770);e.exports=function(e,r,t,i,u){t.length>0&&function(e,r,t){var i,u=(0,n.default)(r);try{for(u.s();!(i=u.n()).done;){var l=i.value;e.relayFieldLogger(l)}}catch(e){u.e(e)}finally{u.f()}if(o.ENABLE_FIELD_ERROR_HANDLING_THROW_BY_DEFAULT||t)throw new a("Relay: Unexpected resolver exception",r.map((function(e){return{message:e.error.message}})))}(e,t,u),null!=r&&function(e,r){switch(r.action){case"THROW":var t=r.field,n=t.path,a=t.owner;throw e.relayFieldLogger({kind:"missing_required_field.throw",owner:a,fieldPath:n}),new Error("Relay: Missing @required value at path '".concat(n,"' in '").concat(a,"'."));case"LOG":r.fields.forEach((function(r){var t=r.path,n=r.owner;e.relayFieldLogger({kind:"missing_required_field.log",owner:n,fieldPath:t})}));break;default:r.action}}(e,r),null!=i&&function(e,r,t){var o,i=(0,n.default)(r);try{for(i.s();!(o=i.n()).done;){var u=o.value;e.relayFieldLogger(u)}}catch(e){i.e(e)}finally{i.f()}if(t)throw new a("Relay: Unexpected response payload - this object includes an errors property in which you can access the underlying errors",r.map((function(e){switch(e.kind){case"relay_field_payload.error":return e.error;case"missing_expected_data.throw":case"missing_expected_data.log":return{message:"Missing expected data"};default:throw e.kind,new Error("Relay: Unexpected event kind")}})))}(e,i,u)}},571:e=>{e.exports=function(e){return null!=e&&"object"==typeof e&&"function"==typeof e.then}},94:e=>{e.exports={stableCopy:function e(r){if(!r||"object"!=typeof r)return r;if(Array.isArray(r))return r.map(e);for(var t=Object.keys(r).sort(),n={},a=0;a<t.length;a++)n[t[a]]=e(r[t[a]]);return n},hasCycle:function e(r){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Set;if(!r||"object"!=typeof r)return!1;if(t.has(r))return!0;var n=new Set(t);return n.add(r),(Array.isArray(r)?r:Object.values(r)).some((function(r){return e(r,n)}))}}},314:r=>{r.exports=e},765:e=>{e.exports=r},311:e=>{e.exports=t},296:e=>{e.exports=n},275:e=>{e.exports=a},175:e=>{e.exports=o},264:e=>{e.exports=i},642:e=>{e.exports=u},757:e=>{e.exports=l},125:e=>{e.exports=s},446:e=>{e.exports=c},56:e=>{e.exports=f}},p={};return function e(r){var t=p[r];if(void 0!==t)return t.exports;var n=p[r]={exports:{}};return d[r](n,n.exports,e),n.exports}(649)})()));
@@ -1,9 +1,9 @@
1
1
  /**
2
- * Relay v0.0.0-main-e95a5ae4
2
+ * Relay v0.0.0-main-c631ffd2
3
3
  *
4
4
  * Copyright (c) Meta Platforms, Inc. and affiliates.
5
5
  *
6
6
  * This source code is licensed under the MIT license found in the
7
7
  * LICENSE file in the root directory of this source tree.
8
8
  */
9
- !function(e,r){"object"==typeof exports&&"object"==typeof module?module.exports=r(require("@babel/runtime/helpers/interopRequireDefault"),require("@babel/runtime/helpers/objectSpread2"),require("@babel/runtime/helpers/toConsumableArray"),require("fbjs/lib/areEqual"),require("fbjs/lib/warning"),require("invariant")):"function"==typeof define&&define.amd?define(["@babel/runtime/helpers/interopRequireDefault","@babel/runtime/helpers/objectSpread2","@babel/runtime/helpers/toConsumableArray","fbjs/lib/areEqual","fbjs/lib/warning","invariant"],r):"object"==typeof exports?exports.ReactRelayExperimental=r(require("@babel/runtime/helpers/interopRequireDefault"),require("@babel/runtime/helpers/objectSpread2"),require("@babel/runtime/helpers/toConsumableArray"),require("fbjs/lib/areEqual"),require("fbjs/lib/warning"),require("invariant")):e.ReactRelayExperimental=r(e["@babel/runtime/helpers/interopRequireDefault"],e["@babel/runtime/helpers/objectSpread2"],e["@babel/runtime/helpers/toConsumableArray"],e["fbjs/lib/areEqual"],e["fbjs/lib/warning"],e.invariant)}(self,((e,r,n,t,a,l)=>(()=>{"use strict";var i={649:(e,r,n)=>{var t=n(222);e.exports={resolverDataInjector:t,isValueResult:function(e){return!0===e.ok},isErrorResult:function(e){return!1===e.ok}}},634:(e,r,n)=>{var t=n(775),a=n(56);function l(e){var r=e;return"function"==typeof r?r=r():r.default&&(r=r.default),r}function i(e){var r=l(e);return"object"==typeof r&&null!==r&&r.kind===t.FRAGMENT}function o(e){var r=l(e);return"object"==typeof r&&null!==r&&r.kind===t.REQUEST}function u(e){var r=l(e);return"object"==typeof r&&null!==r&&r.kind===t.UPDATABLE_QUERY}function E(e){var r=l(e);return"object"==typeof r&&null!==r&&r.kind===t.INLINE_DATA_FRAGMENT}function c(e){var r=l(e);return i(r)||a(!1),r}n(446),e.exports={getFragment:c,getNode:l,getPaginationFragment:function(e){var r,n=c(e),t=null===(r=n.metadata)||void 0===r?void 0:r.refetch,a=null==t?void 0:t.connection;return null===t||"object"!=typeof t||null===a||"object"!=typeof a?null:n},getRefetchableFragment:function(e){var r,n=c(e),t=null===(r=n.metadata)||void 0===r?void 0:r.refetch;return null===t||"object"!=typeof t?null:n},getRequest:function(e){var r=l(e);return o(r)||a(!1),r},getUpdatableQuery:function(e){var r=l(e);return u(r)||a(!1),r},getInlineDataFragment:function(e){var r=l(e);return E(r)||a(!1),r},graphql:function(e){a(!1)},isFragment:i,isRequest:o,isUpdatableQuery:u,isInlineDataFragment:E}},129:(e,r,n)=>{var t=(0,n(275).default)(n(175)),a=n(165).getArgumentValues,l=n(56);e.exports={getLocalVariables:function(e,r,n){if(null==r)return e;var l=(0,t.default)({},e),i=n?a(n,e):{};return r.forEach((function(e){var r,n=null!==(r=i[e.name])&&void 0!==r?r:e.defaultValue;l[e.name]=n})),l},getFragmentVariables:function(e,r,n){return null==e.argumentDefinitions?n:(e.argumentDefinitions.forEach((function(e){if(!n.hasOwnProperty(e.name))switch(a=a||(0,t.default)({},n),e.kind){case"LocalArgument":a[e.name]=e.defaultValue;break;case"RootArgument":if(!r.hasOwnProperty(e.name)){a[e.name]=void 0;break}a[e.name]=r[e.name];break;default:l(!1)}})),a||n);var a},getOperationVariables:function(e,r,n){var t={};return e.argumentDefinitions.forEach((function(e){var r=e.defaultValue;null!=n[e.name]&&(r=n[e.name]),t[e.name]=r})),null!=r&&Object.keys(r).forEach((function(e){t[e]=r[e].get()})),t}}},256:(e,r,n)=>{var t=n(129).getFragmentVariables,a=n(165),l=a.CLIENT_EDGE_TRAVERSAL_PATH,i=a.FRAGMENT_OWNER_KEY,o=a.FRAGMENT_POINTER_IS_WITHIN_UNMATCHED_TYPE_REFINEMENT,u=a.FRAGMENTS_KEY,E=a.ID_KEY,c=n(125),f=n(56);function s(e,r){("object"!=typeof r||null===r||Array.isArray(r))&&f(!1);var n=r[E],a=r[u],c=r[i],s=r[l];if("string"==typeof n&&"object"==typeof a&&null!==a&&"object"==typeof a[e.name]&&null!==a[e.name]&&"object"==typeof c&&null!==c&&(null==s||Array.isArray(s))){var _=c,d=s,R=a[e.name];return T(e,n,t(e,_.variables,R),_,!0===R[o],d)}return null}function _(e,r){var n=null;return r.forEach((function(r,t){var a=null!=r?s(e,r):null;null!=a&&(n=n||[]).push(a)})),null==n?null:{kind:"PluralReaderSelector",selectors:n}}function d(e,r){return null==r?r:e.metadata&&!0===e.metadata.plural?(Array.isArray(r)||f(!1),_(e,r)):(Array.isArray(r)&&f(!1),s(e,r))}function R(e,r){return null==r?r:e.metadata&&!0===e.metadata.plural?(Array.isArray(r)||f(!1),n=null,r.forEach((function(e){var r=null!=e?g(0,e):null;null!=r&&(n=n||[]).push(r)})),n):(Array.isArray(r)&&f(!1),g(0,r));var n}function g(e,r){("object"!=typeof r||null===r||Array.isArray(r))&&f(!1);var n=r[E];return"string"==typeof n?n:null}function A(e,r){var n;return null==r?{}:!0===(null===(n=e.metadata)||void 0===n?void 0:n.plural)?(Array.isArray(r)||f(!1),m(e,r)):(Array.isArray(r)&&f(!1),v(e,r)||{})}function v(e,r){var n=s(e,r);return n?n.variables:null}function m(e,r){var n={};return r.forEach((function(r,t){if(null!=r){var a=v(e,r);null!=a&&Object.assign(n,a)}})),n}function p(e,r){return e.dataID===r.dataID&&e.node===r.node&&c(e.variables,r.variables)&&((n=e.owner)===(t=r.owner)||n.identifier===t.identifier&&c(n.cacheConfig,t.cacheConfig))&&e.isWithinUnmatchedTypeRefinement===r.isWithinUnmatchedTypeRefinement&&function(e,r){if(e===r)return!0;if(null==e||null==r||e.length!==r.length)return!1;for(var n=e.length;n--;){var t=e[n],a=r[n];if(t!==a&&(null==t||null==a||t.clientEdgeDestinationID!==a.clientEdgeDestinationID||t.readerClientEdge!==a.readerClientEdge))return!1}return!0}(e.clientEdgeTraversalPath,r.clientEdgeTraversalPath);var n,t}function T(e,r,n,t){var a=arguments.length>5?arguments[5]:void 0;return{kind:"SingularReaderSelector",dataID:r,isWithinUnmatchedTypeRefinement:arguments.length>4&&void 0!==arguments[4]&&arguments[4],clientEdgeTraversalPath:null!=a?a:null,node:e,variables:n,owner:t}}n(446),e.exports={areEqualSelectors:function(e,r){return e===r||(null==e?null==r:null==r?null==e:"SingularReaderSelector"===e.kind&&"SingularReaderSelector"===r.kind?p(e,r):"PluralReaderSelector"===e.kind&&"PluralReaderSelector"===r.kind&&e.selectors.length===r.selectors.length&&e.selectors.every((function(e,n){return p(e,r.selectors[n])})))},createReaderSelector:T,createNormalizationSelector:function(e,r,n){return{dataID:r,node:e,variables:n}},getDataIDsFromFragment:R,getDataIDsFromObject:function(e,r){var n={};for(var t in e)if(e.hasOwnProperty(t)){var a=e[t],l=r[t];n[t]=R(a,l)}return n},getSingularSelector:s,getPluralSelector:_,getSelector:d,getSelectorsFromObject:function(e,r){var n={};for(var t in e)if(e.hasOwnProperty(t)){var a=e[t],l=r[t];n[t]=d(a,l)}return n},getVariablesFromSingularFragment:v,getVariablesFromPluralFragment:m,getVariablesFromFragment:A,getVariablesFromObject:function(e,r){var n={};for(var t in e)if(e.hasOwnProperty(t)){var a=A(e[t],r[t]);Object.assign(n,a)}return n}}},165:(e,r,n)=>{var t=(0,n(275).default)(n(642)),a=n(330),l=n(775),i=n(94).stableCopy,o=n(56),u=l.VARIABLE,E=l.LITERAL,c=l.OBJECT_VALUE,f=l.LIST_VALUE;function s(e,r){if(e.kind===u)return function(e,r){return r.hasOwnProperty(e)||o(!1),i(r[e])}(e.variableName,r);if(e.kind===E)return e.value;if(e.kind===c){var n={};return e.fields.forEach((function(e){n[e.name]=s(e,r)})),n}if(e.kind===f){var t=[];return e.items.forEach((function(e){null!=e&&t.push(s(e,r))})),t}}function _(e,r,n){var t={};return n&&(t[R.FRAGMENT_POINTER_IS_WITHIN_UNMATCHED_TYPE_REFINEMENT]=!0),e&&e.forEach((function(e){t[e.name]=s(e,r)})),t}function d(e,r){if(!r)return e;var n=[];for(var t in r)if(r.hasOwnProperty(t)){var a,l=r[t];null!=l&&n.push(t+":"+(null!==(a=JSON.stringify(l))&&void 0!==a?a:"undefined"))}return 0===n.length?e:e+"(".concat(n.join(","),")")}var R={ACTOR_IDENTIFIER_KEY:"__actorIdentifier",CLIENT_EDGE_TRAVERSAL_PATH:"__clientEdgeTraversalPath",FRAGMENTS_KEY:"__fragments",FRAGMENT_OWNER_KEY:"__fragmentOwner",FRAGMENT_POINTER_IS_WITHIN_UNMATCHED_TYPE_REFINEMENT:"$isWithinUnmatchedTypeRefinement",FRAGMENT_PROP_NAME_KEY:"__fragmentPropName",MODULE_COMPONENT_KEY:"__module_component",ERRORS_KEY:"__errors",ID_KEY:"__id",REF_KEY:"__ref",REFS_KEY:"__refs",ROOT_ID:"client:root",ROOT_TYPE:"__Root",TYPENAME_KEY:"__typename",INVALIDATED_AT_KEY:"__invalidated_at",RELAY_RESOLVER_VALUE_KEY:"__resolverValue",RELAY_RESOLVER_INVALIDATION_KEY:"__resolverValueMayBeInvalid",RELAY_RESOLVER_SNAPSHOT_KEY:"__resolverSnapshot",RELAY_RESOLVER_ERROR_KEY:"__resolverError",RELAY_RESOLVER_OUTPUT_TYPE_RECORD_IDS:"__resolverOutputTypeRecordIDs",formatStorageKey:d,getArgumentValue:s,getArgumentValues:_,getHandleStorageKey:function(e,r){var n=e.dynamicKey,l=e.handle,i=e.key,o=e.name,u=e.args,E=e.filters,c=a(l,i,o),f=null;return u&&E&&0!==u.length&&0!==E.length&&(f=u.filter((function(e){return E.indexOf(e.name)>-1}))),n&&(f=null!=f?[n].concat((0,t.default)(f)):[n]),null===f?c:d(c,_(f,r))},getStorageKey:function(e,r){if(e.storageKey)return e.storageKey;var n=function(e){var r,n;return"RelayResolver"===e.kind||"RelayLiveResolver"===e.kind?null==e.args?null===(n=e.fragment)||void 0===n?void 0:n.args:null==(null===(r=e.fragment)||void 0===r?void 0:r.args)?e.args:e.args.concat(e.fragment.args):void 0===e.args?void 0:e.args}(e),t=e.name;return n&&0!==n.length?d(t,_(n,r)):t},getStableStorageKey:function(e,r){return d(e,i(r))},getModuleComponentKey:function(e){return"".concat("__module_component_").concat(e)},getModuleOperationKey:function(e){return"".concat("__module_operation_").concat(e)}};e.exports=R},890:(e,r,n)=>{var t=n(634).getFragment,a=n(256).getSelector,l=n(56),i=[],o={};e.exports={readFragment:function(e,r){if(!i.length)throw new Error("readFragment should be called only from within a Relay Resolver function.");var n=i[i.length-1],u=t(e),E=a(u,r);null==E&&l(!1),"SingularReaderSelector"!==E.kind&&l(!1);var c=n.getDataForResolverFragment(E,r),f=c.data,s=c.isMissingData,_=c.missingRequiredFields;if(s||null!=_&&"THROW"===_.action)throw o;return f},withResolverContext:function(e,r){i.push(e);try{return r()}finally{i.pop()}},RESOLVER_FRAGMENT_ERRORED_SENTINEL:o}},222:(e,r,n)=>{var t=n(890).readFragment,a=n(56);e.exports=function(e,r,n,l){var i=r;return function(r,o){var u=t(e,r);if(null==n)return i(u,o);if(null==u){if(!0!==l)return i(null,o);a(!1)}if(n in u)return!0===l&&null==u[n]&&a(!1),i(u[n],o);a(!1)}}},775:e=>{e.exports={ACTOR_CHANGE:"ActorChange",CATCH_FIELD:"CatchField",CONDITION:"Condition",CLIENT_COMPONENT:"ClientComponent",CLIENT_EDGE_TO_SERVER_OBJECT:"ClientEdgeToServerObject",CLIENT_EDGE_TO_CLIENT_OBJECT:"ClientEdgeToClientObject",CLIENT_EXTENSION:"ClientExtension",DEFER:"Defer",CONNECTION:"Connection",FRAGMENT:"Fragment",FRAGMENT_SPREAD:"FragmentSpread",INLINE_DATA_FRAGMENT_SPREAD:"InlineDataFragmentSpread",INLINE_DATA_FRAGMENT:"InlineDataFragment",INLINE_FRAGMENT:"InlineFragment",LINKED_FIELD:"LinkedField",LINKED_HANDLE:"LinkedHandle",LITERAL:"Literal",LIST_VALUE:"ListValue",LOCAL_ARGUMENT:"LocalArgument",MODULE_IMPORT:"ModuleImport",ALIASED_FRAGMENT_SPREAD:"AliasedFragmentSpread",ALIASED_INLINE_FRAGMENT_SPREAD:"AliasedInlineFragmentSpread",RELAY_RESOLVER:"RelayResolver",RELAY_LIVE_RESOLVER:"RelayLiveResolver",REQUIRED_FIELD:"RequiredField",OBJECT_VALUE:"ObjectValue",OPERATION:"Operation",REQUEST:"Request",ROOT_ARGUMENT:"RootArgument",SCALAR_FIELD:"ScalarField",SCALAR_HANDLE:"ScalarHandle",SPLIT_OPERATION:"SplitOperation",STREAM:"Stream",TYPE_DISCRIMINATOR:"TypeDiscriminator",UPDATABLE_QUERY:"UpdatableQuery",VARIABLE:"Variable"}},204:e=>{e.exports={DEFAULT_HANDLE_KEY:""}},330:(e,r,n)=>{var t=n(204).DEFAULT_HANDLE_KEY,a=n(56);e.exports=function(e,r,n){return r&&r!==t?"__".concat(r,"_").concat(e):(null==n&&a(!1),"__".concat(n,"_").concat(e))}},94:e=>{e.exports={stableCopy:function e(r){if(!r||"object"!=typeof r)return r;if(Array.isArray(r))return r.map(e);for(var n=Object.keys(r).sort(),t={},a=0;a<n.length;a++)t[n[a]]=e(r[n[a]]);return t},hasCycle:function e(r){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Set;if(!r||"object"!=typeof r)return!1;if(n.has(r))return!0;var t=new Set(n);return t.add(r),(Array.isArray(r)?r:Object.values(r)).some((function(r){return e(r,t)}))}}},275:r=>{r.exports=e},175:e=>{e.exports=r},642:e=>{e.exports=n},125:e=>{e.exports=t},446:e=>{e.exports=a},56:e=>{e.exports=l}},o={};return function e(r){var n=o[r];if(void 0!==n)return n.exports;var t=o[r]={exports:{}};return i[r](t,t.exports,e),t.exports}(649)})()));
9
+ !function(e,r){"object"==typeof exports&&"object"==typeof module?module.exports=r(require("@babel/runtime/helpers/asyncToGenerator"),require("@babel/runtime/helpers/createForOfIteratorHelper"),require("@babel/runtime/helpers/defineProperty"),require("@babel/runtime/helpers/inheritsLoose"),require("@babel/runtime/helpers/interopRequireDefault"),require("@babel/runtime/helpers/objectSpread2"),require("@babel/runtime/helpers/objectWithoutPropertiesLoose"),require("@babel/runtime/helpers/toConsumableArray"),require("@babel/runtime/helpers/wrapNativeSuper"),require("fbjs/lib/areEqual"),require("fbjs/lib/warning"),require("invariant")):"function"==typeof define&&define.amd?define(["@babel/runtime/helpers/asyncToGenerator","@babel/runtime/helpers/createForOfIteratorHelper","@babel/runtime/helpers/defineProperty","@babel/runtime/helpers/inheritsLoose","@babel/runtime/helpers/interopRequireDefault","@babel/runtime/helpers/objectSpread2","@babel/runtime/helpers/objectWithoutPropertiesLoose","@babel/runtime/helpers/toConsumableArray","@babel/runtime/helpers/wrapNativeSuper","fbjs/lib/areEqual","fbjs/lib/warning","invariant"],r):"object"==typeof exports?exports.ReactRelayExperimental=r(require("@babel/runtime/helpers/asyncToGenerator"),require("@babel/runtime/helpers/createForOfIteratorHelper"),require("@babel/runtime/helpers/defineProperty"),require("@babel/runtime/helpers/inheritsLoose"),require("@babel/runtime/helpers/interopRequireDefault"),require("@babel/runtime/helpers/objectSpread2"),require("@babel/runtime/helpers/objectWithoutPropertiesLoose"),require("@babel/runtime/helpers/toConsumableArray"),require("@babel/runtime/helpers/wrapNativeSuper"),require("fbjs/lib/areEqual"),require("fbjs/lib/warning"),require("invariant")):e.ReactRelayExperimental=r(e["@babel/runtime/helpers/asyncToGenerator"],e["@babel/runtime/helpers/createForOfIteratorHelper"],e["@babel/runtime/helpers/defineProperty"],e["@babel/runtime/helpers/inheritsLoose"],e["@babel/runtime/helpers/interopRequireDefault"],e["@babel/runtime/helpers/objectSpread2"],e["@babel/runtime/helpers/objectWithoutPropertiesLoose"],e["@babel/runtime/helpers/toConsumableArray"],e["@babel/runtime/helpers/wrapNativeSuper"],e["fbjs/lib/areEqual"],e["fbjs/lib/warning"],e.invariant)}(self,((e,r,t,n,i,a,o,u,l,s,c,f)=>(()=>{"use strict";var E={649:(e,r,t)=>{var n=t(222),i=t(696).observeFragment,a=t(461).waitForFragmentData;e.exports={resolverDataInjector:n,isValueResult:function(e){return!0===e.ok},isErrorResult:function(e){return!1===e.ok},observeFragment:i,waitForFragmentData:a}},60:(e,r,t)=>{var n=t(571),i=function(e,r){},a=function(){function e(e){this._source=e}e.create=function(r){return new e(r)},e.onUnhandledError=function(e){i=e},e.from=function(e){return function(e){return"object"==typeof e&&null!==e&&"function"==typeof e.subscribe}(e)?o(e):n(e)?u(e):l(e)};var r=e.prototype;return r.catch=function(r){var t=this;return e.create((function(e){var n;return t.subscribe({start:function(e){n=e},next:e.next,complete:e.complete,error:function(t){try{r(t).subscribe({start:function(e){n=e},next:e.next,complete:e.complete,error:e.error})}catch(r){e.error(r,!0)}}}),function(){return n.unsubscribe()}}))},r.concat=function(r){var t=this;return e.create((function(e){var n;return t.subscribe({start:function(e){n=e},next:e.next,error:e.error,complete:function(){n=r.subscribe(e)}}),function(){n&&n.unsubscribe()}}))},r.do=function(r){var t=this;return e.create((function(e){var n=function(t){return function(){try{r[t]&&r[t].apply(r,arguments)}catch(e){i(e,!0)}e[t]&&e[t].apply(e,arguments)}};return t.subscribe({start:n("start"),next:n("next"),error:n("error"),complete:n("complete"),unsubscribe:n("unsubscribe")})}))},r.finally=function(r){var t=this;return e.create((function(e){var n=t.subscribe(e);return function(){n.unsubscribe(),r()}}))},r.ifEmpty=function(r){var t=this;return e.create((function(e){var n,i=!1;return n=t.subscribe({next:function(r){i=!0,e.next(r)},error:e.error,complete:function(){i?e.complete():n=r.subscribe(e)}}),function(){n&&n.unsubscribe()}}))},r.subscribe=function(e){return function(e,r){var t,n=!1,a=function(e){return Object.defineProperty(e,"closed",{get:function(){return n}})};function o(){if(t){if(t.unsubscribe)t.unsubscribe();else try{t()}catch(e){i(e,!0)}t=void 0}}var u=a({unsubscribe:function(){if(!n){n=!0;try{r.unsubscribe&&r.unsubscribe(u)}catch(e){i(e,!0)}finally{o()}}}});try{r.start&&r.start(u)}catch(e){i(e,!0)}if(n)return u;var l=a({next:function(e){if(!n&&r.next)try{r.next(e)}catch(e){i(e,!0)}},error:function(e,t){if(n||!r.error)n=!0,i(e,t||!1),o();else{n=!0;try{r.error(e)}catch(e){i(e,!0)}finally{o()}}},complete:function(){if(!n){n=!0;try{r.complete&&r.complete()}catch(e){i(e,!0)}finally{o()}}}});try{t=e(l)}catch(e){l.error(e,!0)}return n&&o(),u}(this._source,e)},r.map=function(r){var t=this;return e.create((function(e){var n=t.subscribe({complete:e.complete,error:e.error,next:function(t){try{var n=r(t);e.next(n)}catch(r){e.error(r,!0)}}});return function(){n.unsubscribe()}}))},r.mergeMap=function(r){var t=this;return e.create((function(n){var i=[];function a(e){this._sub=e,i.push(e)}function o(){i.splice(i.indexOf(this._sub),1),0===i.length&&n.complete()}return t.subscribe({start:a,next:function(t){try{n.closed||e.from(r(t)).subscribe({start:a,next:n.next,error:n.error,complete:o})}catch(e){n.error(e,!0)}},error:n.error,complete:o}),function(){i.forEach((function(e){return e.unsubscribe()})),i.length=0}}))},r.poll=function(r){var t=this;return e.create((function(e){var n,i;return function a(){n=t.subscribe({next:e.next,error:e.error,complete:function(){i=setTimeout(a,r)}})}(),function(){clearTimeout(i),n.unsubscribe()}}))},r.toPromise=function(){var e=this;return new Promise((function(r,t){var n=!1;e.subscribe({next:function(e){n||(n=!0,r(e))},error:t,complete:r})}))},e}();function o(e){return e instanceof a?e:a.create((function(r){return e.subscribe(r)}))}function u(e){return a.create((function(r){e.then((function(e){r.next(e),r.complete()}),r.error)}))}function l(e){return a.create((function(r){r.next(e),r.complete()}))}e.exports=a},634:(e,r,t)=>{var n=t(775),i=t(56);function a(e){var r=e;return"function"==typeof r?r=r():r.default&&(r=r.default),r}function o(e){var r=a(e);return"object"==typeof r&&null!==r&&r.kind===n.FRAGMENT}function u(e){var r=a(e);return"object"==typeof r&&null!==r&&r.kind===n.REQUEST}function l(e){var r=a(e);return"object"==typeof r&&null!==r&&r.kind===n.UPDATABLE_QUERY}function s(e){var r=a(e);return"object"==typeof r&&null!==r&&r.kind===n.INLINE_DATA_FRAGMENT}function c(e){var r=a(e);return o(r)||i(!1),r}t(446),e.exports={getFragment:c,getNode:a,getPaginationFragment:function(e){var r,t=c(e),n=null===(r=t.metadata)||void 0===r?void 0:r.refetch,i=null==n?void 0:n.connection;return null===n||"object"!=typeof n||null===i||"object"!=typeof i?null:t},getRefetchableFragment:function(e){var r,t=c(e),n=null===(r=t.metadata)||void 0===r?void 0:r.refetch;return null===n||"object"!=typeof n?null:t},getRequest:function(e){var r=a(e);return u(r)||i(!1),r},getUpdatableQuery:function(e){var r=a(e);return l(r)||i(!1),r},getInlineDataFragment:function(e){var r=a(e);return s(r)||i(!1),r},graphql:function(e){i(!1)},isFragment:o,isRequest:u,isUpdatableQuery:l,isInlineDataFragment:s}},367:(e,r,t)=>{var n=t(60),i=t(153),a=t(56),o="function"==typeof WeakMap?new WeakMap:new Map;function u(e,r,t){return n.create((function(o){var u=s(e),l=u.get(r);return l||t().finally((function(){return u.delete(r)})).subscribe({start:function(e){l={identifier:r,subject:new i,subjectForInFlightStatus:new i,subscription:e,promise:null},u.set(r,l)},next:function(e){var t=c(u,r);t.subject.next(e),t.subjectForInFlightStatus.next(e)},error:function(e){var t=c(u,r);t.subject.error(e),t.subjectForInFlightStatus.error(e)},complete:function(){var e=c(u,r);e.subject.complete(),e.subjectForInFlightStatus.complete()},unsubscribe:function(e){var t=c(u,r);t.subject.unsubscribe(),t.subjectForInFlightStatus.unsubscribe()}}),null==l&&a(!1),function(e,r){return n.create((function(t){var n=r.subject.subscribe(t);return function(){n.unsubscribe();var t=e.get(r.identifier);if(t){var i=t.subscription;null!=i&&0===t.subject.getObserverCount()&&(i.unsubscribe(),e.delete(r.identifier))}}}))}(u,l).subscribe(o)}))}function l(e,r,t){return n.create((function(r){var n=t.subjectForInFlightStatus.subscribe({error:r.error,next:function(n){e.isRequestActive(t.identifier)?r.next():r.complete()},complete:r.complete,unsubscribe:r.complete});return function(){n.unsubscribe()}}))}function s(e){var r=o.get(e);if(null!=r)return r;var t=new Map;return o.set(e,t),t}function c(e,r){var t=e.get(r);return null==t&&a(!1),t}e.exports={fetchQuery:function(e,r){return u(e,r.request.identifier,(function(){return e.execute({operation:r})}))},fetchQueryDeduped:u,getPromiseForActiveRequest:function(e,r){var t=s(e).get(r.identifier);return t&&e.isRequestActive(t.identifier)?new Promise((function(r,n){var i=!1;l(e,0,t).subscribe({complete:r,error:n,next:function(e){i&&r(e)}}),i=!0})):null},getObservableForActiveRequest:function(e,r){var t=s(e).get(r.identifier);return t&&e.isRequestActive(t.identifier)?l(e,0,t):null}}},129:(e,r,t)=>{var n=(0,t(275).default)(t(175)),i=t(165).getArgumentValues,a=t(56);e.exports={getLocalVariables:function(e,r,t){if(null==r)return e;var a=(0,n.default)({},e),o=t?i(t,e):{};return r.forEach((function(e){var r,t=null!==(r=o[e.name])&&void 0!==r?r:e.defaultValue;a[e.name]=t})),a},getFragmentVariables:function(e,r,t){return null==e.argumentDefinitions?t:(e.argumentDefinitions.forEach((function(e){if(!t.hasOwnProperty(e.name))switch(i=i||(0,n.default)({},t),e.kind){case"LocalArgument":i[e.name]=e.defaultValue;break;case"RootArgument":if(!r.hasOwnProperty(e.name)){i[e.name]=void 0;break}i[e.name]=r[e.name];break;default:a(!1)}})),i||t);var i},getOperationVariables:function(e,r,t){var n={};return e.argumentDefinitions.forEach((function(e){var r=e.defaultValue;null!=t[e.name]&&(r=t[e.name]),n[e.name]=r})),null!=r&&Object.keys(r).forEach((function(e){n[e]=r[e].get()})),n}}},288:(e,r,t)=>{var n=t(275).default,i=n(t(175)),a=n(t(264)),o=n(t(765)),u=n(t(296)),l=n(t(757)),s=n(t(642)),c=["path","locations"],f=Symbol("$SELF"),E=function(e){function r(r){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return(t=e.call(this,r)||this).name="RelayFieldError",t.message=r,t.errors=n,t}return(0,u.default)(r,e),r}((0,l.default)(Error));function p(e,r){var t,n=(0,o.default)(e);try{for(n.s();!(t=n.n()).done;){var a=t.value,u=a[0],l=a[1],c=r.length;if(Array.isArray(l)?r.push.apply(r,(0,s.default)(l)):p(l,r),u!==f)for(var E=r.length,b=c;b<E;b++){var d=r[b];null==d.path?r[b]=(0,i.default)((0,i.default)({},d),{},{path:[u]}):d.path.unshift(u)}}}catch(e){n.e(e)}finally{n.f()}}e.exports={SELF:f,buildErrorTrie:function(e){if(null==e)return null;var r,t=new Map,n=(0,o.default)(e);try{for(n.s();!(r=n.n()).done;){var i=r.value,u=i.path,l=(i.locations,(0,a.default)(i,c));if(null!=u){var s=u.length;if(0!==s){for(var E=s-1,p=t,b=0;b<E;b++){var d=u[b],_=p.get(d);if(_ instanceof Map)p=_;else{var v=new Map;Array.isArray(_)&&v.set(f,_),p.set(d,v),p=v}}var m=u[E],h=p.get(m);h instanceof Map&&(h=(p=h).get(m),m=f),Array.isArray(h)?h.push(l):p.set(m,[l])}}}}catch(e){n.e(e)}finally{n.f()}return t},getNestedErrorTrieByKey:function(e,r){var t=e.get(r);return t instanceof Map?t:null},getErrorsByKey:function(e,r){var t=e.get(r);if(null==t)return null;if(Array.isArray(t))return t;var n=[];return p(t,n),n},RelayFieldError:E}},256:(e,r,t)=>{var n=t(129).getFragmentVariables,i=t(165),a=i.CLIENT_EDGE_TRAVERSAL_PATH,o=i.FRAGMENT_OWNER_KEY,u=i.FRAGMENT_POINTER_IS_WITHIN_UNMATCHED_TYPE_REFINEMENT,l=i.FRAGMENTS_KEY,s=i.ID_KEY,c=t(125),f=t(56);function E(e,r){("object"!=typeof r||null===r||Array.isArray(r))&&f(!1);var t=r[s],i=r[l],c=r[o],E=r[a];if("string"==typeof t&&"object"==typeof i&&null!==i&&"object"==typeof i[e.name]&&null!==i[e.name]&&"object"==typeof c&&null!==c&&(null==E||Array.isArray(E))){var p=c,b=E,d=i[e.name];return R(e,t,n(e,p.variables,d),p,!0===d[u],b)}return null}function p(e,r){var t=null;return r.forEach((function(r,n){var i=null!=r?E(e,r):null;null!=i&&(t=t||[]).push(i)})),null==t?null:{kind:"PluralReaderSelector",selectors:t}}function b(e,r){return null==r?r:e.metadata&&!0===e.metadata.plural?(Array.isArray(r)||f(!1),p(e,r)):(Array.isArray(r)&&f(!1),E(e,r))}function d(e,r){return null==r?r:e.metadata&&!0===e.metadata.plural?(Array.isArray(r)||f(!1),t=null,r.forEach((function(e){var r=null!=e?_(0,e):null;null!=r&&(t=t||[]).push(r)})),t):(Array.isArray(r)&&f(!1),_(0,r));var t}function _(e,r){("object"!=typeof r||null===r||Array.isArray(r))&&f(!1);var t=r[s];return"string"==typeof t?t:null}function v(e,r){var t;return null==r?{}:!0===(null===(t=e.metadata)||void 0===t?void 0:t.plural)?(Array.isArray(r)||f(!1),h(e,r)):(Array.isArray(r)&&f(!1),m(e,r)||{})}function m(e,r){var t=E(e,r);return t?t.variables:null}function h(e,r){var t={};return r.forEach((function(r,n){if(null!=r){var i=m(e,r);null!=i&&Object.assign(t,i)}})),t}function g(e,r){return e.dataID===r.dataID&&e.node===r.node&&c(e.variables,r.variables)&&((t=e.owner)===(n=r.owner)||t.identifier===n.identifier&&c(t.cacheConfig,n.cacheConfig))&&e.isWithinUnmatchedTypeRefinement===r.isWithinUnmatchedTypeRefinement&&function(e,r){if(e===r)return!0;if(null==e||null==r||e.length!==r.length)return!1;for(var t=e.length;t--;){var n=e[t],i=r[t];if(n!==i&&(null==n||null==i||n.clientEdgeDestinationID!==i.clientEdgeDestinationID||n.readerClientEdge!==i.readerClientEdge))return!1}return!0}(e.clientEdgeTraversalPath,r.clientEdgeTraversalPath);var t,n}function R(e,r,t,n){var i=arguments.length>5?arguments[5]:void 0;return{kind:"SingularReaderSelector",dataID:r,isWithinUnmatchedTypeRefinement:arguments.length>4&&void 0!==arguments[4]&&arguments[4],clientEdgeTraversalPath:null!=i?i:null,node:e,variables:t,owner:n}}t(446),e.exports={areEqualSelectors:function(e,r){return e===r||(null==e?null==r:null==r?null==e:"SingularReaderSelector"===e.kind&&"SingularReaderSelector"===r.kind?g(e,r):"PluralReaderSelector"===e.kind&&"PluralReaderSelector"===r.kind&&e.selectors.length===r.selectors.length&&e.selectors.every((function(e,t){return g(e,r.selectors[t])})))},createReaderSelector:R,createNormalizationSelector:function(e,r,t){return{dataID:r,node:e,variables:t}},getDataIDsFromFragment:d,getDataIDsFromObject:function(e,r){var t={};for(var n in e)if(e.hasOwnProperty(n)){var i=e[n],a=r[n];t[n]=d(i,a)}return t},getSingularSelector:E,getPluralSelector:p,getSelector:b,getSelectorsFromObject:function(e,r){var t={};for(var n in e)if(e.hasOwnProperty(n)){var i=e[n],a=r[n];t[n]=b(i,a)}return t},getVariablesFromSingularFragment:m,getVariablesFromPluralFragment:h,getVariablesFromFragment:v,getVariablesFromObject:function(e,r){var t={};for(var n in e)if(e.hasOwnProperty(n)){var i=v(e[n],r[n]);Object.assign(t,i)}return t}}},165:(e,r,t)=>{var n=(0,t(275).default)(t(642)),i=t(330),a=t(775),o=t(94).stableCopy,u=t(56),l=a.VARIABLE,s=a.LITERAL,c=a.OBJECT_VALUE,f=a.LIST_VALUE;function E(e,r){if(e.kind===l)return function(e,r){return r.hasOwnProperty(e)||u(!1),o(r[e])}(e.variableName,r);if(e.kind===s)return e.value;if(e.kind===c){var t={};return e.fields.forEach((function(e){t[e.name]=E(e,r)})),t}if(e.kind===f){var n=[];return e.items.forEach((function(e){null!=e&&n.push(E(e,r))})),n}}function p(e,r,t){var n={};return t&&(n[d.FRAGMENT_POINTER_IS_WITHIN_UNMATCHED_TYPE_REFINEMENT]=!0),e&&e.forEach((function(e){n[e.name]=E(e,r)})),n}function b(e,r){if(!r)return e;var t=[];for(var n in r)if(r.hasOwnProperty(n)){var i,a=r[n];null!=a&&t.push(n+":"+(null!==(i=JSON.stringify(a))&&void 0!==i?i:"undefined"))}return 0===t.length?e:e+"(".concat(t.join(","),")")}var d={ACTOR_IDENTIFIER_KEY:"__actorIdentifier",CLIENT_EDGE_TRAVERSAL_PATH:"__clientEdgeTraversalPath",FRAGMENTS_KEY:"__fragments",FRAGMENT_OWNER_KEY:"__fragmentOwner",FRAGMENT_POINTER_IS_WITHIN_UNMATCHED_TYPE_REFINEMENT:"$isWithinUnmatchedTypeRefinement",FRAGMENT_PROP_NAME_KEY:"__fragmentPropName",MODULE_COMPONENT_KEY:"__module_component",ERRORS_KEY:"__errors",ID_KEY:"__id",REF_KEY:"__ref",REFS_KEY:"__refs",ROOT_ID:"client:root",ROOT_TYPE:"__Root",TYPENAME_KEY:"__typename",INVALIDATED_AT_KEY:"__invalidated_at",RELAY_RESOLVER_VALUE_KEY:"__resolverValue",RELAY_RESOLVER_INVALIDATION_KEY:"__resolverValueMayBeInvalid",RELAY_RESOLVER_SNAPSHOT_KEY:"__resolverSnapshot",RELAY_RESOLVER_ERROR_KEY:"__resolverError",RELAY_RESOLVER_OUTPUT_TYPE_RECORD_IDS:"__resolverOutputTypeRecordIDs",formatStorageKey:b,getArgumentValue:E,getArgumentValues:p,getHandleStorageKey:function(e,r){var t=e.dynamicKey,a=e.handle,o=e.key,u=e.name,l=e.args,s=e.filters,c=i(a,o,u),f=null;return l&&s&&0!==l.length&&0!==s.length&&(f=l.filter((function(e){return s.indexOf(e.name)>-1}))),t&&(f=null!=f?[t].concat((0,n.default)(f)):[t]),null===f?c:b(c,p(f,r))},getStorageKey:function(e,r){if(e.storageKey)return e.storageKey;var t=function(e){var r,t;return"RelayResolver"===e.kind||"RelayLiveResolver"===e.kind?null==e.args?null===(t=e.fragment)||void 0===t?void 0:t.args:null==(null===(r=e.fragment)||void 0===r?void 0:r.args)?e.args:e.args.concat(e.fragment.args):void 0===e.args?void 0:e.args}(e),n=e.name;return t&&0!==t.length?b(n,p(t,r)):n},getStableStorageKey:function(e,r){return b(e,o(r))},getModuleComponentKey:function(e){return"".concat("__module_component_").concat(e)},getModuleOperationKey:function(e){return"".concat("__module_operation_").concat(e)}};e.exports=d},890:(e,r,t)=>{var n=t(634).getFragment,i=t(256).getSelector,a=t(56),o=[],u={};e.exports={readFragment:function(e,r){if(!o.length)throw new Error("readFragment should be called only from within a Relay Resolver function.");var t=o[o.length-1],l=n(e),s=i(l,r);null==s&&a(!1),"SingularReaderSelector"!==s.kind&&a(!1);var c=t.getDataForResolverFragment(s,r),f=c.data,E=c.isMissingData,p=c.missingRequiredFields;if(E||null!=p&&"THROW"===p.action)throw u;return f},withResolverContext:function(e,r){o.push(e);try{return r()}finally{o.pop()}},RESOLVER_FRAGMENT_ERRORED_SENTINEL:u}},222:(e,r,t)=>{var n=t(890).readFragment,i=t(56);e.exports=function(e,r,t,a){var o=r;return function(r,u){var l=n(e,r);if(null==t)return o(l,u);if(null==l){if(!0!==a)return o(null,u);i(!1)}if(t in l)return!0===a&&null==l[t]&&i(!1),o(l[t],u);i(!1)}}},696:(e,r,t)=>{var n=t(314).default,i=t(60),a=t(634).getFragment,o=t(250),u=t(541),l=t(256).getSelector,s=t(56);function c(){return(c=n((function*(e,r,t){var n;try{var i,a=yield new Promise((function(i,a){n=f(e,r,t).subscribe({next:function(e){"ok"===e.state?i(e.value):"error"===e.state&&a(e.error)}})}));return null===(i=n)||void 0===i||i.unsubscribe(),a}catch(e){var o;throw null===(o=n)||void 0===o||o.unsubscribe(),e}}))).apply(this,arguments)}function f(e,r,t){var n,o=a(r),u=l(o,t);switch(null!=(null===(n=o.metadata)||void 0===n?void 0:n.hasClientEdges)&&s(!1),null==u&&s(!1),u.kind){case"SingularReaderSelector":return function(e,r,t){var n=e.lookup(t);return i.create((function(i){i.next(E(e,r,t.owner,n));var a=e.subscribe(n,(function(n){i.next(E(e,r,t.owner,n))}));return function(){return a.dispose()}}))}(e,r,u);case"PluralReaderSelector":s(!1)}s(!1)}function E(e,r,t,n){var i=null!=n.missingLiveResolverFields&&n.missingLiveResolverFields.length>0,a=null!=n.missingClientEdges&&n.missingClientEdges.length>0;if(i||a)return{state:"loading"};if(n.isMissingData&&null!=o(e,r,t))return{state:"loading"};try{var l,c;u(e,n.missingRequiredFields,n.relayResolverErrors,n.errorResponseFields,null!==(l=null===(c=n.selector.node.metadata)||void 0===c?void 0:c.throwOnFieldError)&&void 0!==l&&l)}catch(e){return{error:e,state:"error"}}return null==n.data&&s(!1),{state:"ok",value:n.data}}e.exports={observeFragment:f,waitForFragmentData:function(e,r,t){return c.apply(this,arguments)}}},461:(e,r,t)=>{var n=t(314).default,i=t(696).observeFragment;function a(){return(a=n((function*(e,r,t){var n;try{var a,o=yield new Promise((function(a,o){n=i(e,r,t).subscribe({next:function(e){"ok"===e.state?a(e.value):"error"===e.state&&o(e.error)}})}));return null===(a=n)||void 0===a||a.unsubscribe(),o}catch(e){var u;throw null===(u=n)||void 0===u||u.unsubscribe(),e}}))).apply(this,arguments)}e.exports={waitForFragmentData:function(e,r,t){return a.apply(this,arguments)}}},775:e=>{e.exports={ACTOR_CHANGE:"ActorChange",CATCH_FIELD:"CatchField",CONDITION:"Condition",CLIENT_COMPONENT:"ClientComponent",CLIENT_EDGE_TO_SERVER_OBJECT:"ClientEdgeToServerObject",CLIENT_EDGE_TO_CLIENT_OBJECT:"ClientEdgeToClientObject",CLIENT_EXTENSION:"ClientExtension",DEFER:"Defer",CONNECTION:"Connection",FRAGMENT:"Fragment",FRAGMENT_SPREAD:"FragmentSpread",INLINE_DATA_FRAGMENT_SPREAD:"InlineDataFragmentSpread",INLINE_DATA_FRAGMENT:"InlineDataFragment",INLINE_FRAGMENT:"InlineFragment",LINKED_FIELD:"LinkedField",LINKED_HANDLE:"LinkedHandle",LITERAL:"Literal",LIST_VALUE:"ListValue",LOCAL_ARGUMENT:"LocalArgument",MODULE_IMPORT:"ModuleImport",ALIASED_FRAGMENT_SPREAD:"AliasedFragmentSpread",ALIASED_INLINE_FRAGMENT_SPREAD:"AliasedInlineFragmentSpread",RELAY_RESOLVER:"RelayResolver",RELAY_LIVE_RESOLVER:"RelayLiveResolver",REQUIRED_FIELD:"RequiredField",OBJECT_VALUE:"ObjectValue",OPERATION:"Operation",REQUEST:"Request",ROOT_ARGUMENT:"RootArgument",SCALAR_FIELD:"ScalarField",SCALAR_HANDLE:"ScalarHandle",SPLIT_OPERATION:"SplitOperation",STREAM:"Stream",TYPE_DISCRIMINATOR:"TypeDiscriminator",UPDATABLE_QUERY:"UpdatableQuery",VARIABLE:"Variable"}},204:e=>{e.exports={DEFAULT_HANDLE_KEY:""}},770:e=>{e.exports={ENABLE_VARIABLE_CONNECTION_KEY:!1,ENABLE_RELAY_RESOLVERS:!1,ENABLE_GETFRAGMENTIDENTIFIER_OPTIMIZATION:!1,ENABLE_FRIENDLY_QUERY_NAME_GQL_URL:!1,ENABLE_LOAD_QUERY_REQUEST_DEDUPING:!0,ENABLE_DO_NOT_WRAP_LIVE_QUERY:!1,ENABLE_NOTIFY_SUBSCRIPTION:!1,BATCH_ASYNC_MODULE_UPDATES_FN:null,ENABLE_CONTAINERS_SUBSCRIBE_ON_COMMIT:!1,MAX_DATA_ID_LENGTH:null,STRING_INTERN_LEVEL:0,LOG_MISSING_RECORDS_IN_PROD:!1,ENABLE_LOOSE_SUBSCRIPTION_ATTRIBUTION:!1,ENABLE_OPERATION_TRACKER_OPTIMISTIC_UPDATES:!1,ENABLE_RELAY_OPERATION_TRACKER_SUSPENSE:!1,ENABLE_FIELD_ERROR_HANDLING_THROW_BY_DEFAULT:!1,PROCESS_OPTIMISTIC_UPDATE_BEFORE_SUBSCRIPTION:!1,MARK_RESOLVER_VALUES_AS_CLEAN_AFTER_FRAGMENT_REREAD:!1,ENABLE_CYLE_DETECTION_IN_VARIABLES:!1,ENABLE_ACTIVITY_COMPATIBILITY:!1,AVOID_CYCLES_IN_RESOLVER_NOTIFICATION:!1}},153:(e,r,t)=>{var n=t(275).default,i=n(t(765)),a=n(t(311)),o=t(60),u=t(56),l=function(){function e(){var e=this;(0,a.default)(this,"_complete",!1),(0,a.default)(this,"_events",[]),(0,a.default)(this,"_sinks",new Set),(0,a.default)(this,"_subscription",[]),this._observable=o.create((function(r){e._sinks.add(r);for(var t=e._events,n=0;n<t.length&&!r.closed;n++){var i=t[n];switch(i.kind){case"complete":r.complete();break;case"error":r.error(i.error);break;case"next":r.next(i.data);break;default:i.kind,u(!1)}}return function(){e._sinks.delete(r)}}))}var r=e.prototype;return r.complete=function(){!0!==this._complete&&(this._complete=!0,this._events.push({kind:"complete"}),this._sinks.forEach((function(e){return e.complete()})))},r.error=function(e){!0!==this._complete&&(this._complete=!0,this._events.push({kind:"error",error:e}),this._sinks.forEach((function(r){return r.error(e)})))},r.next=function(e){!0!==this._complete&&(this._events.push({kind:"next",data:e}),this._sinks.forEach((function(r){return r.next(e)})))},r.subscribe=function(e){var r=this._observable.subscribe(e);return this._subscription.push(r),r},r.unsubscribe=function(){var e,r=(0,i.default)(this._subscription);try{for(r.s();!(e=r.n()).done;)e.value.unsubscribe()}catch(e){r.e(e)}finally{r.f()}this._subscription=[]},r.getObserverCount=function(){return this._sinks.size},e}();e.exports=l},250:(e,r,t)=>{var n=t(367).getPromiseForActiveRequest;e.exports=function(e,r,t){var i,a,o=[],u=n(e,t);if(null!=u)o=[t];else{var l,s,c=e.getOperationTracker().getPendingOperationsAffectingOwner(t);o=null!==(l=null==c?void 0:c.pendingOperations)&&void 0!==l?l:[],u=null!==(s=null==c?void 0:c.promise)&&void 0!==s?s:null}if(!u)return null;var f=null!==(i=null===(a=o)||void 0===a?void 0:a.map((function(e){return e.node.params.name})).join(","))&&void 0!==i?i:null;null!=f&&0!==f.length||(f="Unknown pending operation");var E=r.name,p=f===E?"Relay(".concat(f,")"):"Relay(".concat(f,":").concat(E,")");return u.displayName=p,e.__log({name:"pendingoperation.found",fragment:r,fragmentOwner:t,pendingOperations:o}),{promise:u,pendingOperations:o}}},330:(e,r,t)=>{var n=t(204).DEFAULT_HANDLE_KEY,i=t(56);e.exports=function(e,r,t){return r&&r!==n?"__".concat(r,"_").concat(e):(null==t&&i(!1),"__".concat(t,"_").concat(e))}},541:(e,r,t)=>{var n=(0,t(275).default)(t(765)),i=t(288).RelayFieldError,a=t(770);e.exports=function(e,r,t,o,u){t.length>0&&function(e,r,t){var o,u=(0,n.default)(r);try{for(u.s();!(o=u.n()).done;){var l=o.value;e.relayFieldLogger(l)}}catch(e){u.e(e)}finally{u.f()}if(a.ENABLE_FIELD_ERROR_HANDLING_THROW_BY_DEFAULT||t)throw new i("Relay: Unexpected resolver exception",r.map((function(e){return{message:e.error.message}})))}(e,t,u),null!=r&&function(e,r){switch(r.action){case"THROW":var t=r.field,n=t.path,i=t.owner;throw e.relayFieldLogger({kind:"missing_required_field.throw",owner:i,fieldPath:n}),new Error("Relay: Missing @required value at path '".concat(n,"' in '").concat(i,"'."));case"LOG":r.fields.forEach((function(r){var t=r.path,n=r.owner;e.relayFieldLogger({kind:"missing_required_field.log",owner:n,fieldPath:t})}));break;default:r.action}}(e,r),null!=o&&function(e,r,t){var a,o=(0,n.default)(r);try{for(o.s();!(a=o.n()).done;){var u=a.value;e.relayFieldLogger(u)}}catch(e){o.e(e)}finally{o.f()}if(t)throw new i("Relay: Unexpected response payload - this object includes an errors property in which you can access the underlying errors",r.map((function(e){switch(e.kind){case"relay_field_payload.error":return e.error;case"missing_expected_data.throw":case"missing_expected_data.log":return{message:"Missing expected data"};default:throw e.kind,new Error("Relay: Unexpected event kind")}})))}(e,o,u)}},571:e=>{e.exports=function(e){return null!=e&&"object"==typeof e&&"function"==typeof e.then}},94:e=>{e.exports={stableCopy:function e(r){if(!r||"object"!=typeof r)return r;if(Array.isArray(r))return r.map(e);for(var t=Object.keys(r).sort(),n={},i=0;i<t.length;i++)n[t[i]]=e(r[t[i]]);return n},hasCycle:function e(r){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Set;if(!r||"object"!=typeof r)return!1;if(t.has(r))return!0;var n=new Set(t);return n.add(r),(Array.isArray(r)?r:Object.values(r)).some((function(r){return e(r,n)}))}}},314:r=>{r.exports=e},765:e=>{e.exports=r},311:e=>{e.exports=t},296:e=>{e.exports=n},275:e=>{e.exports=i},175:e=>{e.exports=a},264:e=>{e.exports=o},642:e=>{e.exports=u},757:e=>{e.exports=l},125:e=>{e.exports=s},446:e=>{e.exports=c},56:e=>{e.exports=f}},p={};return function e(r){var t=p[r];if(void 0!==t)return t.exports;var n=p[r]={exports:{}};return E[r](n,n.exports,e),n.exports}(649)})()));