react-relay 16.0.0 → 16.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (40) hide show
  1. package/ReactRelayContext.js +1 -1
  2. package/hooks.js +1 -1
  3. package/index.js +1 -1
  4. package/legacy.js +1 -1
  5. package/lib/relay-hooks/HooksImplementation.js +1 -1
  6. package/lib/relay-hooks/{react-cache/readFragmentInternal_REACT_CACHE.js → experimental/readFragmentInternal_EXPERIMENTAL.js} +2 -2
  7. package/lib/relay-hooks/{react-cache/useFragmentInternal_REACT_CACHE.js → experimental/useFragmentInternal_EXPERIMENTAL.js} +2 -2
  8. package/lib/relay-hooks/{react-cache/useFragment_REACT_CACHE.js → experimental/useFragment_EXPERIMENTAL.js} +1 -1
  9. package/lib/relay-hooks/{react-cache/usePaginationFragment_REACT_CACHE.js → experimental/usePaginationFragment_EXPERIMENTAL.js} +1 -1
  10. package/lib/relay-hooks/{react-cache/useRefetchableFragmentInternal_REACT_CACHE.js → experimental/useRefetchableFragmentInternal_EXPERIMENTAL.js} +2 -2
  11. package/lib/relay-hooks/{react-cache/useRefetchableFragment_REACT_CACHE.js → experimental/useRefetchableFragment_EXPERIMENTAL.js} +1 -1
  12. package/lib/relay-hooks/useLazyLoadQueryNode.js +12 -2
  13. package/package.json +2 -2
  14. package/react-relay-hooks.js +2 -2
  15. package/react-relay-hooks.min.js +2 -2
  16. package/react-relay-legacy.js +2 -2
  17. package/react-relay-legacy.min.js +2 -2
  18. package/react-relay.js +2 -2
  19. package/react-relay.min.js +2 -2
  20. package/relay-hooks/EntryPointTypes.flow.js.flow +17 -19
  21. package/relay-hooks/HooksImplementation.js.flow +3 -1
  22. package/relay-hooks/{react-cache/readFragmentInternal_REACT_CACHE.js.flow → experimental/readFragmentInternal_EXPERIMENTAL.js.flow} +2 -2
  23. package/relay-hooks/{react-cache/useFragmentInternal_REACT_CACHE.js.flow → experimental/useFragmentInternal_EXPERIMENTAL.js.flow} +4 -4
  24. package/relay-hooks/{react-cache/useFragment_REACT_CACHE.js.flow → experimental/useFragment_EXPERIMENTAL.js.flow} +1 -1
  25. package/relay-hooks/{react-cache/usePaginationFragment_REACT_CACHE.js.flow → experimental/usePaginationFragment_EXPERIMENTAL.js.flow} +2 -2
  26. package/relay-hooks/{react-cache/useRefetchableFragmentInternal_REACT_CACHE.js.flow → experimental/useRefetchableFragmentInternal_EXPERIMENTAL.js.flow} +11 -11
  27. package/relay-hooks/{react-cache/useRefetchableFragment_REACT_CACHE.js.flow → experimental/useRefetchableFragment_EXPERIMENTAL.js.flow} +1 -1
  28. package/relay-hooks/useBlockingPaginationFragment.js.flow +9 -14
  29. package/relay-hooks/useLazyLoadQueryNode.js.flow +17 -1
  30. package/relay-hooks/usePaginationFragment.js.flow +5 -7
  31. package/relay-hooks/useRefetchableFragment.js.flow +13 -16
  32. package/relay-hooks/useRefetchableFragmentNode.js.flow +5 -7
  33. package/lib/relay-hooks/react-cache/RelayReactCache.js +0 -20
  34. package/lib/relay-hooks/react-cache/getQueryResultOrFetchQuery_REACT_CACHE.js +0 -255
  35. package/lib/relay-hooks/react-cache/useLazyLoadQuery_REACT_CACHE.js +0 -33
  36. package/lib/relay-hooks/react-cache/usePreloadedQuery_REACT_CACHE.js +0 -81
  37. package/relay-hooks/react-cache/RelayReactCache.js.flow +0 -40
  38. package/relay-hooks/react-cache/getQueryResultOrFetchQuery_REACT_CACHE.js.flow +0 -430
  39. package/relay-hooks/react-cache/useLazyLoadQuery_REACT_CACHE.js.flow +0 -70
  40. package/relay-hooks/react-cache/usePreloadedQuery_REACT_CACHE.js.flow +0 -150
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Relay v16.0.0
2
+ * Relay v16.1.0
3
3
  *
4
4
  * Copyright (c) Meta Platforms, Inc. and affiliates.
5
5
  *
package/hooks.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Relay v16.0.0
2
+ * Relay v16.1.0
3
3
  *
4
4
  * Copyright (c) Meta Platforms, Inc. and affiliates.
5
5
  *
package/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Relay v16.0.0
2
+ * Relay v16.1.0
3
3
  *
4
4
  * Copyright (c) Meta Platforms, Inc. and affiliates.
5
5
  *
package/legacy.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Relay v16.0.0
2
+ * Relay v16.1.0
3
3
  *
4
4
  * Copyright (c) Meta Platforms, Inc. and affiliates.
5
5
  *
@@ -3,7 +3,7 @@
3
3
  var warning = require("fbjs/lib/warning");
4
4
  var implementation = null;
5
5
  function inject(impl) {
6
- process.env.NODE_ENV !== "production" ? warning(implementation !== null, 'Relay HooksImplementation was injected twice.') : void 0;
6
+ process.env.NODE_ENV !== "production" ? warning(implementation === null, 'Relay HooksImplementation was injected twice.') : void 0;
7
7
  implementation = impl;
8
8
  }
9
9
  function get() {
@@ -118,7 +118,7 @@ function getFragmentState(environment, fragmentSelector) {
118
118
  };
119
119
  }
120
120
  }
121
- function readFragmentInternal_REACT_CACHE(environment, fragmentNode, fragmentRef, hookDisplayName, queryOptions, fragmentKey) {
121
+ function readFragmentInternal_EXPERIMENTAL(environment, fragmentNode, fragmentRef, hookDisplayName, queryOptions, fragmentKey) {
122
122
  var _fragmentNode$metadat, _fragmentNode$metadat2;
123
123
  var fragmentSelector = getSelector(fragmentNode, fragmentRef);
124
124
  var isPlural = (fragmentNode === null || fragmentNode === void 0 ? void 0 : (_fragmentNode$metadat = fragmentNode.metadata) === null || _fragmentNode$metadat === void 0 ? void 0 : _fragmentNode$metadat.plural) === true;
@@ -179,4 +179,4 @@ function readFragmentInternal_REACT_CACHE(environment, fragmentNode, fragmentRef
179
179
  clientEdgeQueries: clientEdgeQueries
180
180
  };
181
181
  }
182
- module.exports = readFragmentInternal_REACT_CACHE;
182
+ module.exports = readFragmentInternal_EXPERIMENTAL;
@@ -291,7 +291,7 @@ function getFragmentState(environment, fragmentSelector) {
291
291
  };
292
292
  }
293
293
  }
294
- function useFragmentInternal_REACT_CACHE(fragmentNode, fragmentRef, hookDisplayName, queryOptions) {
294
+ function useFragmentInternal_EXPERIMENTAL(fragmentNode, fragmentRef, hookDisplayName, queryOptions) {
295
295
  var _fragmentNode$metadat, _fragmentNode$metadat2;
296
296
  var fragmentSelector = useMemo(function () {
297
297
  return getSelector(fragmentNode, fragmentRef);
@@ -452,4 +452,4 @@ function useFragmentInternal_REACT_CACHE(fragmentNode, fragmentRef, hookDisplayN
452
452
  }
453
453
  return data;
454
454
  }
455
- module.exports = useFragmentInternal_REACT_CACHE;
455
+ module.exports = useFragmentInternal_EXPERIMENTAL;
@@ -3,7 +3,7 @@
3
3
  var _require = require('../loadQuery'),
4
4
  useTrackLoadQueryInRender = _require.useTrackLoadQueryInRender;
5
5
  var useStaticFragmentNodeWarning = require('../useStaticFragmentNodeWarning');
6
- var useFragmentInternal = require('./useFragmentInternal_REACT_CACHE');
6
+ var useFragmentInternal = require('./useFragmentInternal_EXPERIMENTAL');
7
7
  var _require2 = require('react'),
8
8
  useDebugValue = _require2.useDebugValue;
9
9
  var _require3 = require('relay-runtime'),
@@ -5,7 +5,7 @@ var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/obje
5
5
  var useLoadMoreFunction = require('../useLoadMoreFunction');
6
6
  var useRelayEnvironment = require('../useRelayEnvironment');
7
7
  var useStaticFragmentNodeWarning = require('../useStaticFragmentNodeWarning');
8
- var useRefetchableFragmentInternal = require('./useRefetchableFragmentInternal_REACT_CACHE');
8
+ var useRefetchableFragmentInternal = require('./useRefetchableFragmentInternal_EXPERIMENTAL');
9
9
  var _require = require('react'),
10
10
  useCallback = _require.useCallback,
11
11
  useDebugValue = _require.useDebugValue,
@@ -8,8 +8,8 @@ var _require = require('../QueryResource'),
8
8
  var useIsMountedRef = require('../useIsMountedRef');
9
9
  var useQueryLoader = require('../useQueryLoader');
10
10
  var useRelayEnvironment = require('../useRelayEnvironment');
11
- var readFragmentInternal = require('./readFragmentInternal_REACT_CACHE');
12
- var useFragmentInternal = require('./useFragmentInternal_REACT_CACHE');
11
+ var readFragmentInternal = require('./readFragmentInternal_EXPERIMENTAL');
12
+ var useFragmentInternal = require('./useFragmentInternal_EXPERIMENTAL');
13
13
  var invariant = require('invariant');
14
14
  var _require2 = require('react'),
15
15
  useCallback = _require2.useCallback,
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
3
  var useStaticFragmentNodeWarning = require('../useStaticFragmentNodeWarning');
4
- var useRefetchableFragmentInternal = require('./useRefetchableFragmentInternal_REACT_CACHE');
4
+ var useRefetchableFragmentInternal = require('./useRefetchableFragmentInternal_EXPERIMENTAL');
5
5
  var _require = require('react'),
6
6
  useDebugValue = _require.useDebugValue;
7
7
  var _require2 = require('relay-runtime'),
@@ -1,5 +1,6 @@
1
1
  'use strict';
2
2
 
3
+ var HooksImplementation = require('./HooksImplementation');
3
4
  var ProfilerContext = require('./ProfilerContext');
4
5
  var _require = require('./QueryResource'),
5
6
  getQueryCacheIdentifier = _require.getQueryCacheIdentifier,
@@ -61,8 +62,17 @@ function useLazyLoadQueryNode(_ref) {
61
62
  });
62
63
  var fragmentNode = preparedQueryResult.fragmentNode,
63
64
  fragmentRef = preparedQueryResult.fragmentRef;
64
- var _useFragmentNode = useFragmentNode(fragmentNode, fragmentRef, componentDisplayName),
65
- data = _useFragmentNode.data;
65
+ var data = useFragmentNodeImpl(fragmentNode, fragmentRef, componentDisplayName);
66
66
  return data;
67
67
  }
68
+ function useFragmentNodeImpl(fragment, key, componentDisplayName) {
69
+ var impl = HooksImplementation.get();
70
+ if (impl && impl.useFragment__internal) {
71
+ return impl.useFragment__internal(fragment, key, componentDisplayName);
72
+ } else {
73
+ var _useFragmentNode = useFragmentNode(fragment, key, componentDisplayName),
74
+ data = _useFragmentNode.data;
75
+ return data;
76
+ }
77
+ }
68
78
  module.exports = useLazyLoadQueryNode;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "react-relay",
3
3
  "description": "A framework for building GraphQL-driven React applications.",
4
- "version": "16.0.0",
4
+ "version": "16.1.0",
5
5
  "keywords": [
6
6
  "graphql",
7
7
  "relay",
@@ -20,7 +20,7 @@
20
20
  "fbjs": "^3.0.2",
21
21
  "invariant": "^2.2.4",
22
22
  "nullthrows": "^1.1.1",
23
- "relay-runtime": "16.0.0"
23
+ "relay-runtime": "16.1.0"
24
24
  },
25
25
  "peerDependencies": {
26
26
  "react": "^16.9.0 || ^17 || ^18"
@@ -1,4 +1,4 @@
1
1
  /**
2
- * Relay v16.0.0
2
+ * Relay v16.1.0
3
3
  */
4
- !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react"),require("relay-runtime"),require("invariant"),require("@babel/runtime/helpers/interopRequireDefault"),require("fbjs/lib/warning"),require("@babel/runtime/helpers/objectSpread2"),require("@babel/runtime/helpers/defineProperty"),require("@babel/runtime/helpers/createForOfIteratorHelper"),require("@babel/runtime/helpers/toConsumableArray"),require("fbjs/lib/areEqual")):"function"==typeof define&&define.amd?define(["react","relay-runtime","invariant","@babel/runtime/helpers/interopRequireDefault","fbjs/lib/warning","@babel/runtime/helpers/objectSpread2","@babel/runtime/helpers/defineProperty","@babel/runtime/helpers/createForOfIteratorHelper","@babel/runtime/helpers/toConsumableArray","fbjs/lib/areEqual"],t):"object"==typeof exports?exports.ReactRelayHooks=t(require("react"),require("relay-runtime"),require("invariant"),require("@babel/runtime/helpers/interopRequireDefault"),require("fbjs/lib/warning"),require("@babel/runtime/helpers/objectSpread2"),require("@babel/runtime/helpers/defineProperty"),require("@babel/runtime/helpers/createForOfIteratorHelper"),require("@babel/runtime/helpers/toConsumableArray"),require("fbjs/lib/areEqual")):e.ReactRelayHooks=t(e.react,e["relay-runtime"],e.invariant,e["@babel/runtime/helpers/interopRequireDefault"],e["fbjs/lib/warning"],e["@babel/runtime/helpers/objectSpread2"],e["@babel/runtime/helpers/defineProperty"],e["@babel/runtime/helpers/createForOfIteratorHelper"],e["@babel/runtime/helpers/toConsumableArray"],e["fbjs/lib/areEqual"])}(window,(function(e,t,r,n,a,i,o,u,s,l){return function(e){var t={};function r(n){if(t[n])return t[n].exports;var a=t[n]={i:n,l:!1,exports:{}};return e[n].call(a.exports,a,a.exports,r),a.l=!0,a.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var a in e)r.d(n,a,function(t){return e[t]}.bind(null,a));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=27)}([function(t,r){t.exports=e},function(e,r){e.exports=t},function(e,t,r){"use strict";var n=r(16),a=r(3),i=r(0).useContext;e.exports=function(){var e=i(n);return null==e&&a(!1,"useRelayEnvironment: Expected to have found a Relay environment provided by a `RelayEnvironmentProvider` component. This usually means that useRelayEnvironment was used in a component that is not a descendant of a `RelayEnvironmentProvider`. Please make sure a `RelayEnvironmentProvider` has been rendered somewhere as a parent or ancestor of your component."),e.environment}},function(e,t){e.exports=r},function(e,t){e.exports=n},function(e,t){e.exports=a},function(e,t,r){"use strict";var n=(0,r(4).default)(r(7)),a=r(3),i=r(0),o=r(1),u=o.__internal.fetchQueryDeduped,s=o.Observable,l=o.PreloadableQueryRegistry,c=o.RelayFeatureFlags,f=o.ReplaySubject,d=o.createOperationDescriptor,p=o.getRequest,h=o.getRequestIdentifier,v=r(5),m=null,y=100001;e.exports={loadQuery:function(e,t,r,o,g){var b,_,E,R,P=null===(b=i.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)||void 0===b||null===(_=b.ReactCurrentDispatcher)||void 0===_?void 0:_.current;v(null==m||P!==m,"Relay: `%s` should not be called inside a React render function.",null!==(E=null==o?void 0:o.__nameForWarning)&&void 0!==E?E:"loadQuery"),y++;var k,S,C,x,w,I,D=null!==(R=null==o?void 0:o.fetchPolicy)&&void 0!==R?R:"store-or-network",q=(0,n.default)((0,n.default)({},null==o?void 0:o.networkCacheConfig),{},{force:!0}),A=!1,N=function(t,r){return A=!0,e.executeWithSource({operation:t,source:r})},F=new f,O=s.create((function(e){return F.subscribe(e)})),Q=null,T=!1,L=function(t){var n;T=!0;var a=new f;if(!0===c.ENABLE_LOAD_QUERY_REQUEST_DEDUPING){var i="raw-network-request-"+h(t,r);n=u(e,i,(function(){return e.getNetwork().execute(t,r,q)}))}else{n=e.getNetwork().execute(t,r,q)}var o=n.subscribe({error:function(e){Q=e,a.error(e)},next:function(e){a.next(e)},complete:function(){a.complete()}}).unsubscribe;return S=o,s.create((function(e){var t=a.subscribe(e);return function(){t.unsubscribe(),S()}}))},M=function(t,r){!0===c.ENABLE_LOAD_QUERY_REQUEST_DEDUPING&&(T=!0);var n=u(e,t.request.identifier,r).subscribe({error:function(e){F.error(e)},next:function(e){F.next(e)},complete:function(){F.complete()}});C=n.unsubscribe},U=function(t){var n=d(t,r,q);(k=e.retain(n),"store-only"!==D)&&(("store-or-network"!==D||"available"!==e.check(n).status)&&M(n,(function(){var e=L(t.params);return N(n,e)})))};if("PreloadableConcreteRequest"===t.kind){null===(I=(x=t.params).id)&&a(!1,"Relay: `loadQuery` requires that preloadable query `%s` has a persisted query id",x.name);var j=l.get(I);if(null!=j)U(j);else{var B="store-only"===D?null:L(x),K=l.onLoad(I,(function(t){w();var n=d(t,r,q);k=e.retain(n),null!=B&&M(n,(function(){return N(n,B)}))}));w=K.dispose}}else{var W=p(t);I=null!=(x=W.params).cacheID?x.cacheID:x.id,U(W)}var V=!1,H=!1,Y=!1,G=function(){H||(k&&k.dispose(),H=!0)},z=function(){Y||(A?C&&C():S&&S(),w&&w(),Y=!0)};return{kind:"PreloadedQuery",environment:e,environmentProviderOptions:g,dispose:function(){V||(G(),z(),V=!0)},releaseQuery:G,cancelNetworkRequest:z,fetchKey:y,id:I,get isDisposed(){return V||H},get networkError(){return Q},name:x.name,networkCacheConfig:q,fetchPolicy:D,source:T?O:void 0,variables:r}},useTrackLoadQueryInRender:function(){var e,t;null===m&&(m=null===(e=i.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)||void 0===e||null===(t=e.ReactCurrentDispatcher)||void 0===t?void 0:t.current)}}},function(e,t){e.exports=i},function(e,t,r){"use strict";var n=r(0),a=n.useEffect,i=n.useRef;e.exports=function(){var e=i(!0);return a((function(){return e.current=!0,function(){e.current=!1}}),[]),e}},function(e,t,r){"use strict";var n=r(0).createContext({wrapPrepareQueryResource:function(e){return e()}});e.exports=n},function(e,t,r){"use strict";var n=r(5),a=null;e.exports={inject:function(e){n(null!==a,"Relay HooksImplementation was injected twice."),a=e},get:function(){return a}}},function(e,t,r){"use strict";var n=r(19).getFragmentResourceForEnvironment,a=r(2),i=r(14),o=r(0),u=o.useEffect,s=o.useState,l=r(1),c=l.RelayFeatureFlags,f=l.getFragmentIdentifier,d=r(5);e.exports=function(e,t,r){var o=a(),l=n(o),p=i(!1),h=s(0)[1],v=f(e,t),m=l.readWithIdentifier(e,t,v,r),y=i(!0);function g(){!1!==p.current&&!1!==y.current&&h((function(e){return e+1}))}return u((function(){p.current=!0;var e=l.subscribe(m,g);return function(){p.current=!1,e.dispose()}}),[o,v]),c.LOG_MISSING_RECORDS_IN_PROD,null!=t&&(void 0===m.data||Array.isArray(m.data)&&m.data.length>0&&m.data.every((function(e){return void 0===e})))&&d(!1,"Relay: Expected to have been able to read non-null data for fragment `%s` declared in `%s`, since fragment reference was non-null. Make sure that that `%s`'s parent isn't holding on to and/or passing a fragment reference for data that has been deleted.",e.name,r,r),{data:m.data,disableStoreUpdates:function(){y.current=!1},enableStoreUpdates:function(){y.current=!0,l.checkMissedUpdates(m)[0]&&g()}}}},function(e,t){e.exports=o},function(e,t,r){"use strict";var n=r(4).default,a=n(r(7)),i=n(r(12)),o=r(20),u=r(21),s=r(3),l=r(1).isPromise,c=r(5),f="function"==typeof WeakMap;function d(e){return void 0!==e.request.node.params.metadata.live}function p(e,t,r,n,a){var i=null!=r?r:d(t)?"store-and-network":"store-or-network",o=null!=n?n:e.UNSTABLE_getDefaultRenderPolicy(),u="".concat(i,"-").concat(o,"-").concat(t.request.identifier);return null!=a?"".concat(u,"-").concat(a):u}function h(e,t){var r={__id:e.fragment.dataID,__fragments:(0,i.default)({},e.fragment.node.name,e.request.variables),__fragmentOwner:e.request};return{cacheIdentifier:t,fragmentNode:e.request.node.fragment,fragmentRef:r,operation:e}}var v=2e5;function m(e,t,r,n,a,i){var o=d(t),s=n,l=a,c=new u((function(e){var r=e.retain(t);return{dispose:function(){o&&null!=l&&l.unsubscribe(),r.dispose(),i(f)}}})),f={cacheIdentifier:e,id:v++,processedPayloadsCount:0,operationAvailability:r,getValue:function(){return s},setValue:function(e){s=e},setNetworkSubscription:function(e){o&&null!=l&&l.unsubscribe(),l=e},temporaryRetain:function(e){return c.temporaryRetain(e)},permanentRetain:function(e){return c.permanentRetain(e)},releaseTemporaryRetain:function(){c.releaseTemporaryRetain()}};return f}var y=function(){function e(e){var t=this;(0,i.default)(this,"_clearCacheEntry",(function(e){t._cache.delete(e.cacheIdentifier)})),this._environment=e,this._cache=o.create(1e3)}var t=e.prototype;return t.prepare=function(e,t,r,n,a,i,o){var u=p(this._environment,e,r,n,i);return this.prepareWithIdentifier(u,e,t,r,n,a,o)},t.prepareWithIdentifier=function(e,t,r,n,i,o,u){var s=this._environment,c=null!=n?n:d(t)?"store-and-network":"store-or-network",f=null!=i?i:s.UNSTABLE_getDefaultRenderPolicy(),p=this._cache.get(e),h=null,v=null!=p;null==p&&(p=this._fetchAndSaveQuery(e,t,r,c,f,u,(0,a.default)((0,a.default)({},o),{},{unsubscribe:function(e){null!=h&&h.dispose();var t=null==o?void 0:o.unsubscribe;t&&t(e)}}))),h=p.temporaryRetain(s);var m=p.getValue();if(l(m))throw s.__log({name:"suspense.query",fetchPolicy:c,isPromiseCached:v,operation:t,queryAvailability:p.operationAvailability,renderPolicy:f}),m;if(m instanceof Error)throw m;return m},t.retain=function(e,t){var r=this._environment,n=e.cacheIdentifier,a=e.operation,i=this._getOrCreateCacheEntry(n,a,null,e,null),o=i.permanentRetain(r);return r.__log({name:"queryresource.retain",profilerContext:t,resourceID:i.id}),{dispose:function(){o.dispose()}}},t.releaseTemporaryRetain=function(e){var t=this._cache.get(e.cacheIdentifier);null!=t&&t.releaseTemporaryRetain()},t.TESTS_ONLY__getCacheEntry=function(e,t,r,n){var a=p(this._environment,e,t,r,n);return this._cache.get(a)},t._getOrCreateCacheEntry=function(e,t,r,n,a){var i=this._cache.get(e);return null==i&&(i=m(e,t,r,n,a,this._clearCacheEntry),this._cache.set(e,i)),i},t._fetchAndSaveQuery=function(e,t,r,n,i,o,u){var l,f,p=this,v=this._environment,y=v.check(t),g=y.status,b="available"===g,_=b||"partial"===i&&"stale"!==g,E=function(){};switch(n){case"store-only":l=!1,f=!0;break;case"store-or-network":l=!b,f=_;break;case"store-and-network":l=!0,f=_;break;case"network-only":default:l=!0,f=!1}if(f){var R=h(t,e),P=m(e,t,y,R,null,this._clearCacheEntry);this._cache.set(e,P)}if(l){var k,S=h(t,e);r.subscribe({start:function(r){k=r;var n=p._cache.get(e);n&&n.setNetworkSubscription(k);var i=null==u?void 0:u.start;i&&i((0,a.default)((0,a.default)({},r),{},{unsubscribe:function(){d(t)&&r.unsubscribe()}}))},next:function(){var r=p._getOrCreateCacheEntry(e,t,y,S,k);r.processedPayloadsCount+=1,r.setValue(S),E();var n=null==u?void 0:u.next;null!=n&&n(v.lookup(t.fragment))},error:function(r){var n=p._getOrCreateCacheEntry(e,t,y,r,k);0===n.processedPayloadsCount?n.setValue(r):c(!1,"QueryResource: An incremental payload for query `%s` returned an error: `%s`.",t.fragment.node.name,String(r.message)),E(),k=null,n.setNetworkSubscription(null);var a=null==u?void 0:u.error;a&&a(r)},complete:function(){E(),k=null;var t=p._cache.get(e);t&&t.setNetworkSubscription(null);var r=null==u?void 0:u.complete;r&&r()},unsubscribe:null==u?void 0:u.unsubscribe});var C=this._cache.get(e);if(!C){var x=new Promise((function(e){E=e}));x.displayName="Relay("+t.fragment.node.name+")",C=m(e,t,y,x,k,this._clearCacheEntry),this._cache.set(e,C)}}else{var w=null==u?void 0:u.complete;w&&w()}var I=this._cache.get(e);return null==I&&s(!1,"Relay: Expected to have cached a result when attempting to fetch query.If you're seeing this, this is likely a bug in Relay."),v.__log({name:"queryresource.fetch",resourceID:I.id,operation:t,profilerContext:o,fetchPolicy:n,renderPolicy:i,queryAvailability:y,shouldFetch:l}),I},e}();function g(e){return new y(e)}var b=f?new WeakMap:new Map;e.exports={createQueryResource:g,getQueryResourceForEnvironment:function(e){var t=b.get(e);if(t)return t;var r=g(e);return b.set(e,r),r},getQueryCacheIdentifier:p}},function(e,t,r){"use strict";var n=r(0).useMemo;e.exports=function(e){return n((function(){return{current:e}}),[])}},function(e,t,r){"use strict";var n=r(14),a=r(5);e.exports=function(e,t){var r=n(e.name);a(r.current===e.name,"Relay: The %s has to remain the same over the lifetime of a component. Changing it is not supported and will result in unexpected behavior.",t)}},function(e,t,r){"use strict";var n=r(0),a=r(1).__internal.createRelayContext;e.exports=a(n)},function(e,t,r){"use strict";var n=r(6).loadQuery;e.exports=function e(t,r,a){var i=null;null==r.root.getModuleIfRequired()&&(i=r.root.load());var o=r.getPreloadProps(a),u=o.queries,s=o.entryPoints,l=o.extraProps,c={},f={};null!=u&&Object.keys(u).forEach((function(e){var r=u[e],a=r.environmentProviderOptions,i=r.options,o=r.parameters,s=r.variables,l=t.getEnvironment(a);c[e]=n(l,o,s,{fetchPolicy:null==i?void 0:i.fetchPolicy,networkCacheConfig:null==i?void 0:i.networkCacheConfig,__nameForWarning:"loadEntryPoint"},a)})),null!=s&&Object.keys(s).forEach((function(r){var n=s[r];if(null!=n){var a=n.entryPoint,i=n.entryPointParams;f[r]=e(t,a,i)}}));var d=!1;return{dispose:function(){d||(null!=c&&Object.values(c).forEach((function(e){(0,e.dispose)()})),null!=f&&Object.values(f).forEach((function(e){(0,e.dispose)()})),d=!0)},entryPoints:f,extraProps:null!=l?l:null,getComponent:function(){var e,t=r.root.getModuleIfRequired();if(null==t)throw i=null!==(e=i)&&void 0!==e?e:r.root.load();return null!=t.default?t.default:t},get isDisposed(){return d},queries:c,rootModuleID:r.root.getModuleId()}}},function(e,t){e.exports=u},function(e,t,r){"use strict";var n=r(4).default,a=n(r(7)),i=n(r(12)),o=n(r(32)),u=r(20),s=r(13).getQueryResourceForEnvironment,l=r(21),c=r(3),f=r(1),d=f.__internal,p=d.fetchQuery,h=d.getPromiseForActiveRequest,v=f.RelayFeatureFlags,m=f.createOperationDescriptor,y=f.getFragmentIdentifier,g=f.getPendingOperationsForFragment,b=f.getSelector,_=f.getVariablesFromFragment,E=f.handlePotentialSnapshotErrors,R=f.isPromise,P=f.recycleNodesInto,k="function"==typeof WeakMap,S=Object.freeze([]);function C(e){return Array.isArray(e)?e.some((function(e){return e.isMissingData})):e.isMissingData}function x(e){return Array.isArray(e)?e.map((function(e){return e.missingLiveResolverFields})).filter(Boolean).flat():e.missingLiveResolverFields}function w(e,t,r){return Array.isArray(t)?{cacheKey:e,snapshot:t,data:t.map((function(e){return e.data})),isMissingData:C(t),storeEpoch:r}:{cacheKey:e,snapshot:t,data:t.data,isMissingData:C(t),storeEpoch:r}}var I=function(){function e(e){(0,i.default)(this,"_cache",new Map),(0,i.default)(this,"_retainCounts",new Map),this._environment=e}var t=e.prototype;return t.get=function(e){var t,r;return null!==(t=null===(r=this._cache.get(e))||void 0===r?void 0:r[0])&&void 0!==t?t:void 0},t.recordQueryResults=function(e,t){var r=this,n=this._cache.get(e);if(n){var a=n[0],i=n[1];t.forEach((function(e){a.push(e)})),i.temporaryRetain(this._environment)}else{var o=new l((function(){return r._retain(e)}));this._cache.set(e,[t,o]),o.temporaryRetain(this._environment)}},t._retain=function(e){var t,r=this,n=(null!==(t=this._retainCounts.get(e))&&void 0!==t?t:0)+1;return this._retainCounts.set(e,n),{dispose:function(){var t,n=(null!==(t=r._retainCounts.get(e))&&void 0!==t?t:0)-1;n>0?r._retainCounts.set(e,n):(r._retainCounts.delete(e),r._cache.delete(e))}}},e}(),D=function(){function e(e){this._environment=e,this._cache=u.create(1e6),v.ENABLE_CLIENT_EDGES&&(this._clientEdgeQueryResultsCache=new I(e))}var t=e.prototype;return t.read=function(e,t,r,n){return this.readWithIdentifier(e,t,y(e,t),r,n)},t.readWithIdentifier=function(e,t,r,n,a){var i,u,l,f,d=this,p=this._environment;if(null==t)return{cacheKey:r,data:null,isMissingData:!1,snapshot:null,storeEpoch:0};var m=p.getStore().getEpoch();if(!0===(null==e||null===(i=e.metadata)||void 0===i?void 0:i.plural)&&(Array.isArray(t)||c(!1,"Relay: Expected fragment pointer%s for fragment `%s` to be an array, instead got `%s`. Remove `@relay(plural: true)` from fragment `%s` to allow the prop to be an object.",null!=a?" for key `".concat(a,"`"):"",e.name,typeof t,e.name),0===t.length))return{cacheKey:r,data:S,isMissingData:!1,snapshot:S,storeEpoch:m};var y=this._cache.get(r);if(null!=y){var g;if("pending"===y.kind&&R(y.promise))throw p.__log({name:"suspense.fragment",data:y.result.data,fragment:e,isRelayHooks:!0,isMissingData:y.result.isMissingData,isPromiseCached:!0,pendingOperations:y.pendingOperations}),y.promise;if("done"===y.kind&&y.result.snapshot&&(null===(g=x(y.result.snapshot))||void 0===g||!g.length))return this._throwOrLogErrorsInSnapshot(y.result.snapshot),y.result.isMissingData&&p.__log({name:"fragmentresource.missing_data",data:y.result.data,fragment:e,isRelayHooks:!0,cached:!0}),y.result}var _=b(e,t);null==_&&c(!1,"Relay: Expected to receive an object where `...%s` was spread, but the fragment reference was not found`. This is most likely the result of:\n- Forgetting to spread `%s` in `%s`'s parent's fragment.\n- Conditionally fetching `%s` but unconditionally passing %s prop to `%s`. If the parent fragment only fetches the fragment conditionally - with e.g. `@include`, `@skip`, or inside a `... on SomeType { }` spread - then the fragment reference will not exist. In this case, pass `null` if the conditions for evaluating the fragment are not met (e.g. if the `@include(if)` value is false.)",e.name,e.name,n,e.name,null==a?"a fragment reference":"the `".concat(a,"`"),n);var E=null,P=null;if(v.ENABLE_RELAY_OPERATION_TRACKER_SUSPENSE&&null!=y&&"missing"===y.kind?(E=y.result,P=y.snapshot):E=w(r,P="PluralReaderSelector"===_.kind?_.selectors.map((function(e){return p.lookup(e)})):p.lookup(_),m),!E.isMissingData)return this._throwOrLogErrorsInSnapshot(P),this._cache.set(r,{kind:"done",result:E}),E;var k=null;if(v.ENABLE_CLIENT_EDGES&&!0===(null===(u=e.metadata)||void 0===u?void 0:u.hasClientEdges)&&function(e){var t,r;return Array.isArray(e)?e.some((function(e){var t,r;return(null!==(t=null===(r=e.missingClientEdges)||void 0===r?void 0:r.length)&&void 0!==t?t:0)>0})):(null!==(t=null===(r=e.missingClientEdges)||void 0===r?void 0:r.length)&&void 0!==t?t:0)>0}(P)){k=[];var C=s(this._environment),I=[];!function(e,t){Array.isArray(e)?e.forEach(t):t(e)}(P,(function(r){var n;null===(n=r.missingClientEdges)||void 0===n||n.forEach((function(r){var n,a=r.request,i=r.clientEdgeDestinationID,o=d._performClientEdgeQuery(C,e,t,a,i),u=o.queryResult,s=o.requestDescriptor;I.push(u),null===(n=k)||void 0===n||n.push(s)}))})),null==this._clientEdgeQueryResultsCache&&c(!1,"Client edge query result cache should exist when ENABLE_CLIENT_EDGES is on."),this._clientEdgeQueryResultsCache.recordQueryResults(r,I)}var D=[];v.ENABLE_CLIENT_EDGES&&k&&(D=k.map((function(e){return h(d._environment,e)})).filter(Boolean));var q="PluralReaderSelector"===_.kind?_.selectors[0].owner:_.owner,A=this._getAndSavePromiseForFragmentRequestInFlight(r,e,q,E),N=null==A?void 0:A.promise,F=null!==(l=null===(f=x(P))||void 0===f?void 0:f.map((function(e){var t=e.liveStateID;return p.getStore().getLiveResolverPromise(t)})))&&void 0!==l?l:[];if(D.length||F.length||R(N)){var O,Q;p.__log({name:"suspense.fragment",data:E.data,fragment:e,isRelayHooks:!0,isPromiseCached:!1,isMissingData:E.isMissingData,pendingOperations:[].concat((0,o.default)(null!==(O=null==A?void 0:A.pendingOperations)&&void 0!==O?O:[]),(0,o.default)(null!==(Q=k)&&void 0!==Q?Q:[]))});var T=[];if(D.length>0&&(T=T.concat(D)),F.length>0&&(T=T.concat(F)),T.length>0)throw N&&T.push(N),Promise.all(T);if(N)throw N}return v.ENABLE_RELAY_OPERATION_TRACKER_SUSPENSE&&E.isMissingData&&this._cache.set(r,{kind:"done",result:E}),this._throwOrLogErrorsInSnapshot(P),p.__log({name:"fragmentresource.missing_data",data:E.data,fragment:e,isRelayHooks:!0,cached:!1}),w(r,P,m)},t._performClientEdgeQuery=function(e,t,r,n,i){var o=_(t,r),u=(0,a.default)((0,a.default)({},o),{},{id:i}),s=m(n,u,{}),l=p(this._environment,s),c=e.prepare(s,l);return{requestDescriptor:s.request,queryResult:c}},t._throwOrLogErrorsInSnapshot=function(e){var t=this;Array.isArray(e)?e.forEach((function(e){E(t._environment,e.missingRequiredFields,e.relayResolverErrors)})):E(this._environment,e.missingRequiredFields,e.relayResolverErrors)},t.readSpec=function(e,t,r){var n={};for(var a in e)n[a]=this.read(e[a],t[a],r,a);return n},t.subscribe=function(e,t){var r=this,n=this._environment,a=e.cacheKey,i=e.snapshot;if(!i)return{dispose:function(){}};var o=this.checkMissedUpdates(e),u=o[0],l=o[1];u&&t();var f=[];if(Array.isArray(i)?(Array.isArray(l)||c(!1,"Relay: Expected snapshots to be plural. If you're seeing this, this is likely a bug in Relay."),l.forEach((function(e,i){f.push(n.subscribe(e,(function(e){var o=n.getStore().getEpoch();r._updatePluralSnapshot(a,l,e,i,o),t()})))}))):((null==l||Array.isArray(l))&&c(!1,"Relay: Expected snapshot to be singular. If you're seeing this, this is likely a bug in Relay."),f.push(n.subscribe(l,(function(e){var i=n.getStore().getEpoch(),o=w(a,e,i);v.ENABLE_RELAY_OPERATION_TRACKER_SUSPENSE&&o.isMissingData?r._cache.set(a,{kind:"missing",result:o,snapshot:e}):r._cache.set(a,{kind:"done",result:w(a,e,i)}),t()})))),v.ENABLE_CLIENT_EDGES){var d,p,h=null!==(d=null===(p=this._clientEdgeQueryResultsCache)||void 0===p?void 0:p.get(a))&&void 0!==d?d:void 0;if(null!=h&&h.length){var m=s(this._environment);h.forEach((function(e){f.push(m.retain(e))}))}}return{dispose:function(){f.forEach((function(e){return e.dispose()})),r._cache.delete(a)}}},t.subscribeSpec=function(e,t){var r=this,n=Object.keys(e).map((function(n){return r.subscribe(e[n],t)}));return{dispose:function(){n.forEach((function(e){e.dispose()}))}}},t.checkMissedUpdates=function(e){var t=this._environment,r=e.snapshot;if(!r)return[!1,null];var n;if(n=t.getStore().getEpoch(),e.storeEpoch===n)return[!1,e.snapshot];var i=e.cacheKey;if(Array.isArray(r)){var o=!1,u=[];if(r.forEach((function(e,r){var n=t.lookup(e.selector),i=e.data,s=n.data,l=P(i,s);l!==i&&(n=(0,a.default)((0,a.default)({},n),{},{data:l}),o=!0),u[r]=n})),o){var s=w(i,u,n);v.ENABLE_RELAY_OPERATION_TRACKER_SUSPENSE&&s.isMissingData?this._cache.set(i,{kind:"missing",result:s,snapshot:u}):this._cache.set(i,{kind:"done",result:s})}return[o,u]}var l=t.lookup(r.selector),c=r.data,f=l.data,d=P(c,f),p={data:d,isMissingData:l.isMissingData,missingClientEdges:l.missingClientEdges,missingLiveResolverFields:l.missingLiveResolverFields,seenRecords:l.seenRecords,selector:l.selector,missingRequiredFields:l.missingRequiredFields,relayResolverErrors:l.relayResolverErrors};if(d!==c){var h=w(i,p,n);v.ENABLE_RELAY_OPERATION_TRACKER_SUSPENSE&&h.isMissingData?this._cache.set(i,{kind:"missing",result:h,snapshot:p}):this._cache.set(i,{kind:"done",result:h})}return[d!==c,p]},t.checkMissedUpdatesSpec=function(e){var t=this;return Object.keys(e).some((function(r){return t.checkMissedUpdates(e[r])[0]}))},t._getAndSavePromiseForFragmentRequestInFlight=function(e,t,r,n){var a=this,i=g(this._environment,t,r);if(null==i)return null;var o=i.promise,u=i.pendingOperations,s=o.then((function(){a._cache.delete(e)})).catch((function(t){a._cache.delete(e)}));return s.displayName=o.displayName,this._cache.set(e,{kind:"pending",pendingOperations:u,promise:s,result:n}),{promise:s,pendingOperations:u}},t._updatePluralSnapshot=function(e,t,r,n,a){var i,u=this._cache.get(e);if(R(u))q(r.selector.node.name);else{var s=null==u||null===(i=u.result)||void 0===i?void 0:i.snapshot;if(!s||Array.isArray(s)){var l=s?(0,o.default)(s):(0,o.default)(t);l[n]=r;var c=w(e,l,a);v.ENABLE_RELAY_OPERATION_TRACKER_SUSPENSE&&c.isMissingData?this._cache.set(e,{kind:"missing",result:c,snapshot:l}):this._cache.set(e,{kind:"done",result:c})}else q(r.selector.node.name)}},e}();function q(e){c(!1,"Relay: Expected to find cached data for plural fragment `%s` when receiving a subscription. If you're seeing this, this is likely a bug in Relay.",e)}function A(e){return new D(e)}var N=k?new WeakMap:new Map;e.exports={createFragmentResource:A,getFragmentResourceForEnvironment:function(e){var t=N.get(e);if(t)return t;var r=A(e);return N.set(e,r),r}}},function(e,t,r){"use strict";var n=r(3),a=function(){function e(e){this._capacity=e,this._capacity>0||n(!1,"LRUCache: Unable to create instance of cache with zero or negative capacity."),this._map=new Map}var t=e.prototype;return t.set=function(e,t){if(this._map.delete(e),this._map.set(e,t),this._map.size>this._capacity){var r=this._map.keys().next();r.done||this._map.delete(r.value)}},t.get=function(e){var t=this._map.get(e);return null!=t&&(this._map.delete(e),this._map.set(e,t)),t},t.has=function(e){return this._map.has(e)},t.delete=function(e){this._map.delete(e)},t.size=function(){return this._map.size},t.capacity=function(){return this._capacity-this._map.size},t.clear=function(){this._map.clear()},e}();e.exports={create:function(e){return new a(e)}}},function(e,t,r){"use strict";var n=(0,r(4).default)(r(12)),a=r(3),i=function(){function e(e){var t=this;(0,n.default)(this,"_retainCount",0),(0,n.default)(this,"_retainDisposable",null),(0,n.default)(this,"_releaseTemporaryRetain",null),this._retain=function(r){return t._retainCount++,1===t._retainCount&&(t._retainDisposable=e(r)),{dispose:function(){t._retainCount=Math.max(0,t._retainCount-1),0===t._retainCount&&(null==t._retainDisposable&&a(!1,"Relay: Expected disposable to release query to be defined.If you're seeing this, this is likely a bug in Relay."),t._retainDisposable.dispose(),t._retainDisposable=null)}}}}var t=e.prototype;return t.temporaryRetain=function(e){var t,r=this;if(e.isServer())return{dispose:function(){}};var n=this._retain(e),a=null,i=function(){clearTimeout(a),a=null,r._releaseTemporaryRetain=null,n.dispose()};return a=setTimeout(i,3e5),null===(t=this._releaseTemporaryRetain)||void 0===t||t.call(this),this._releaseTemporaryRetain=i,{dispose:function(){var e;null===(e=r._releaseTemporaryRetain)||void 0===e||e.call(r)}}},t.permanentRetain=function(e){var t=this._retain(e);return this.releaseTemporaryRetain(),t},t.releaseTemporaryRetain=function(){var e;null===(e=this._releaseTemporaryRetain)||void 0===e||e.call(this),this._releaseTemporaryRetain=null},t.getRetainCount=function(){return this._retainCount},e}();e.exports=i},function(e,t,r){"use strict";var n=r(9),a=r(13),i=a.getQueryCacheIdentifier,o=a.getQueryResourceForEnvironment,u=r(23),s=r(11),l=r(2),c=r(0),f=c.useContext,d=c.useEffect,p=c.useState,h=c.useRef;e.exports=function(e){var t=e.query,r=e.componentDisplayName,a=e.fetchObservable,c=e.fetchPolicy,v=e.fetchKey,m=e.renderPolicy,y=l(),g=f(n),b=o(y),_=p(0),E=_[0],R=_[1],P=u(),k=P.startFetch,S=P.completeFetch,C="".concat(E,"-").concat(null!=v?v:""),x=i(y,t,c,m,C),w=g.wrapPrepareQueryResource((function(){return b.prepareWithIdentifier(x,t,a,c,m,{start:k,complete:S,error:S},g)})),I=h(!1);d((function(){return function(){I.current=!0}}),[]),d((function(){if(!0===I.current)return I.current=!1,void R((function(e){return e+1}));var e=b.retain(w,g);return function(){e.dispose()}}),[y,x]),d((function(){b.releaseTemporaryRetain(w)}));var D=w.fragmentNode,q=w.fragmentRef;return s(D,q,r).data}},function(e,t,r){"use strict";var n=r(14),a=r(0),i=a.useCallback,o=a.useEffect;e.exports=function(){var e=n(null),t=n(!1),r=i((function(){null!=e.current&&(e.current.unsubscribe(),e.current=null),t.current=!1}),[]),a=i((function(r){e.current=r,t.current=!0}),[]),u=i((function(){e.current=null,t.current=!1}),[]);return o((function(){return r}),[r]),{isFetchingRef:t,startFetch:a,disposeFetch:r,completeFetch:u}}},function(e,t,r){"use strict";var n=r(34),a=r(0),i=r(1),o=i.createOperationDescriptor,u=i.getRequest,s=a.useMemo;e.exports=function(e,t,r){var a=n(t),i=n(r||{});return s((function(){return o(u(e),a,i)}),[e,a,i])}},function(e,t,r){"use strict";var n,a=(0,r(4).default)(r(7)),i=r(19).getFragmentResourceForEnvironment,o=r(9),u=r(13).getQueryResourceForEnvironment,s=r(11),l=r(8),c=r(26),f=r(2),d=r(3),p=r(0),h=p.useCallback,v=p.useContext,m=p.useReducer,y=r(1),g=y.__internal.fetchQuery,b=y.createOperationDescriptor,_=y.getFragmentIdentifier,E=y.getRefetchMetadata,R=y.getSelector,P=y.getValueAtPath,k=r(5);function S(e,t){switch(t.type){case"refetch":var r;return(0,a.default)((0,a.default)({},e),{},{fetchPolicy:t.fetchPolicy,mirroredEnvironment:null!==(r=t.refetchEnvironment)&&void 0!==r?r:e.mirroredEnvironment,onComplete:t.onComplete,refetchEnvironment:t.refetchEnvironment,refetchQuery:t.refetchQuery,renderPolicy:t.renderPolicy});case"reset":return{fetchPolicy:void 0,mirroredEnvironment:t.environment,mirroredFragmentIdentifier:t.fragmentIdentifier,onComplete:void 0,refetchQuery:null,renderPolicy:void 0};default:throw t.type,new Error("useRefetchableFragmentNode: Unexpected action type")}}n={getInitialIDAndType:function(e,t,n,a){var i=r(1).Record,o=null==e?void 0:e[null!=n?n:"id"];if(1!==t.length||"node"!==t[0]||null==o)return null;var u=a.getStore().getSource().get(o),s=null==u?null:i.getType(u);return null==s?null:{id:o,typename:s}},checkSameTypeAfterRefetch:function(e,t,n,a){var i=r(1).Record;if(e){var o=t.getStore().getSource().get(e.id),u=o&&i.getType(o);u!==e.typename&&k(!1,"Relay: Call to `refetch` returned data with a different __typename: was `%s`, now `%s`, on `%s` in `%s`. Please make sure the server correctly implementsunique id requirement.",e.typename,u,n.name,a)}},checkSameIDAfterRefetch:function(e,t,n,a){if(null!=e){var i=t[r(1).ID_KEY];null!=i&&i!==e.id&&k(!1,"Relay: Call to `refetch` returned a different id, expected `%s`, got `%s`, on `%s` in `%s`. Please make sure the server correctly implements unique id requirement.",i,e.id,n.name,a)}}},e.exports=function(e,t,r){var p=f(),y=E(e,r),C=y.refetchableRequest,x=y.fragmentRefPathInResponse,w=_(e,t),I=m(S,{fetchPolicy:void 0,mirroredEnvironment:p,mirroredFragmentIdentifier:w,onComplete:void 0,refetchEnvironment:null,refetchQuery:null,renderPolicy:void 0}),D=I[0],q=I[1],A=D.fetchPolicy,N=D.mirroredEnvironment,F=D.mirroredFragmentIdentifier,O=D.onComplete,Q=D.refetchEnvironment,T=D.refetchQuery,L=D.renderPolicy,M=null!=Q?Q:p,U=u(M),j=i(M),B=v(o),K=M!==N||w!==F,W=c(C),V=W[0],H=W[1],Y=W[2],G=t,z=E(e,r).identifierInfo;if(K)q({type:"reset",environment:M,fragmentIdentifier:w}),Y();else if(null!=T&&null!=V){var X;X=n.getInitialIDAndType(T.request.variables,x,null==z?void 0:z.identifierQueryVariableName,M);var J=function(e){O&&O(null!=e?e:null)},Z=null!=V.source?V.source:g(M,T),$=B.wrapPrepareQueryResource((function(){return U.prepare(T,Z,A,L,{error:J,complete:function(){n.checkSameTypeAfterRefetch(X,M,e,r),J()}},V.fetchKey,B)})),ee=j.read($.fragmentNode,$.fragmentRef,r).data;null==ee&&d(!1,"Relay: Expected to be able to read refetch query response. If you're seeing this, this is likely a bug in Relay."),G=P(ee,x),n.checkSameIDAfterRefetch(X,G,e,r)}var te=s(e,G,r),re=te.data,ne=te.disableStoreUpdates,ae=te.enableStoreUpdates;return{fragmentData:re,fragmentRef:G,refetch:function(e,t,r,n,i,o,u,s,c,f,d){var p=l(),v=null!=(null==s?void 0:s.identifierField)&&null!=n&&"object"==typeof n?n[s.identifierField]:null;return h((function(n,i){if(!0!==p.current)return k(!1,"Relay: Unexpected call to `refetch` on unmounted component for fragment `%s` in `%s`. It looks like some instances of your component are still trying to fetch data but they already unmounted. Please make sure you clear all timers, intervals, async calls, etc that may trigger a fetch.",o.name,e),{dispose:function(){}};null==f&&k(!1,"Relay: Unexpected call to `refetch` while using a null fragment ref for fragment `%s` in `%s`. When calling `refetch`, we expect initial fragment data to be non-null. Please make sure you're passing a valid fragment ref to `%s` before calling `refetch`, or make sure you pass all required variables to `refetch`.",o.name,e,e);var u,l,h=null==i?void 0:i.__environment,m=null==i?void 0:i.fetchPolicy,y=null==i?void 0:i.UNSTABLE_renderPolicy,g=null==i?void 0:i.onComplete,_=R(o,f);if(null==_)u={},l={};else if("PluralReaderSelector"===_.kind){var E,P,S,C;u=null!==(E=null===(P=_.selectors[0])||void 0===P?void 0:P.owner.variables)&&void 0!==E?E:{},l=null!==(S=null===(C=_.selectors[0])||void 0===C?void 0:C.variables)&&void 0!==S?S:{}}else u=_.owner.variables,l=_.variables;var x=(0,a.default)((0,a.default)((0,a.default)({},u),l),n);null==s||n.hasOwnProperty(s.identifierQueryVariableName)||("string"!=typeof v&&k(!1,"Relay: Expected result to have a string `%s` in order to refetch, got `%s`.",s.identifierField,v),x[s.identifierQueryVariableName]=v);var w=b(d,x,{force:!0});return c(w.request.variables,{fetchPolicy:m,__environment:h,__nameForWarning:"refetch"}),t({type:"refetch",fetchPolicy:m,onComplete:g,refetchEnvironment:h,refetchQuery:w,renderPolicy:y}),{dispose:r}}),[i,t,r,v,c])}(r,q,Y,re,w,e,0,z,H,t,C),disableStoreUpdates:ne,enableStoreUpdates:ae}}},function(e,t,r){"use strict";var n=(0,r(4).default)(r(18)),a=r(6),i=a.loadQuery,o=a.useTrackLoadQueryInRender,u=r(8),s=r(2),l=r(0),c=l.useCallback,f=l.useEffect,d=l.useRef,p=l.useState,h=r(1).getRequest,v={kind:"NullQueryReference"};function m(e){return"PreloadableConcreteRequest"===e.kind?void 0!==e.params.metadata.live:void 0!==h(e).params.metadata.live}e.exports=function(e,t){var r=null!=t?t:v,a=s();o();var l=u(),h=d(new Set([r])),y=p((function(){return r})),g=y[0],b=y[1],_=p((function(){return r})),E=_[0],R=_[1];r!==E&&(h.current.add(r),R(r),b(r));var P=c((function(){l.current&&(h.current.add(v),b(v))}),[l]),k=c((function(t,r){var n=null!=r&&r.hasOwnProperty("__environment")?{fetchPolicy:r.fetchPolicy,networkCacheConfig:r.networkCacheConfig,__nameForWarning:r.__nameForWarning}:r;if(l.current){var o,u=i(null!==(o=null==r?void 0:r.__environment)&&void 0!==o?o:a,e,t,n);h.current.add(u),b(u)}}),[a,e,b,l]),S=d(!1);return f((function(){return function(){S.current=!0}}),[]),f((function(){if(!0===S.current)return S.current=!1,void("NullQueryReference"!==g.kind&&k(g.variables,{fetchPolicy:g.fetchPolicy,networkCacheConfig:g.networkCacheConfig}));var t=h.current;if(l.current){var r,a=(0,n.default)(t);try{for(a.s();!(r=a.n()).done;){var i=r.value;if(i===g)break;t.delete(i),"NullQueryReference"!==i.kind&&(m(e)?i.dispose&&i.dispose():i.releaseQuery&&i.releaseQuery())}}catch(e){a.e(e)}finally{a.f()}}}),[g,l,k,e]),f((function(){return function(){var t,r=(0,n.default)(h.current);try{for(r.s();!(t=r.n()).done;){var a=t.value;"NullQueryReference"!==a.kind&&(m(e)?a.dispose&&a.dispose():a.releaseQuery&&a.releaseQuery())}}catch(e){r.e(e)}finally{r.f()}}}),[e]),["NullQueryReference"===g.kind?null:g,k,P]}},function(e,t,r){"use strict";var n=r(28),a=r(17),i=r(6).loadQuery,o=r(9),u=r(29),s=r(30),l=r(31),c=r(33),f=r(36),d=r(37),p=r(40),h=r(26),v=r(41),m=r(2),y=r(42),g=r(43),b=r(1);e.exports={ConnectionHandler:b.ConnectionHandler,applyOptimisticMutation:b.applyOptimisticMutation,commitLocalUpdate:b.commitLocalUpdate,commitMutation:b.commitMutation,graphql:b.graphql,readInlineData:b.readInlineData,requestSubscription:b.requestSubscription,EntryPointContainer:n,RelayEnvironmentProvider:u,ProfilerContext:o,fetchQuery:b.fetchQuery,loadQuery:i,loadEntryPoint:a,useFragment:l,useLazyLoadQuery:c,useEntryPointLoader:s,useQueryLoader:h,useMutation:f,usePaginationFragment:d,usePreloadedQuery:p,useRefetchableFragment:v,useRelayEnvironment:m,useSubscribeToInvalidationState:y,useSubscription:g}},function(e,t,r){"use strict";var n=r(9),a=r(2),i=r(0),o=r(0),u=o.useContext,s=o.useEffect,l=r(5);e.exports=function(e){var t=e.entryPointReference,r=e.props;l(!1===t.isDisposed,"<EntryPointContainer>: Expected entryPointReference to not be disposed yet. This is because disposing the entrypoint marks it for future garbage collection, and as such may no longer be present in the Relay store. In the future, this will become a hard error.");var o=t.getComponent,c=t.queries,f=t.entryPoints,d=t.extraProps,p=t.rootModuleID,h=o(),v=u(n),m=a();return s((function(){m.__log({name:"entrypoint.root.consume",profilerContext:v,rootModuleID:p})}),[m,v,p]),i.createElement(h,{entryPoints:f,extraProps:d,props:r,queries:c})}},function(e,t,r){"use strict";var n=r(16),a=r(0),i=a.useMemo;e.exports=function(e){var t=e.children,r=e.environment,o=e.getEnvironmentForActor,u=i((function(){return{environment:r,getEnvironmentForActor:o}}),[r,o]);return a.createElement(n.Provider,{value:u},t)}},function(e,t,r){"use strict";var n=(0,r(4).default)(r(18)),a=r(17),i=r(6).useTrackLoadQueryInRender,o=r(8),u=r(0),s=u.useCallback,l=u.useEffect,c=u.useRef,f=u.useState,d={kind:"NullEntryPointReference"};e.exports=function(e,t,r){var u,p,h,v;i();var m=null!==(u=null==r||null===(p=r.TEST_ONLY__initialEntryPointData)||void 0===p?void 0:p.entryPointReference)&&void 0!==u?u:d,y=null!==(h=null==r||null===(v=r.TEST_ONLY__initialEntryPointData)||void 0===v?void 0:v.entryPointParams)&&void 0!==h?h:null,g=o(),b=c(new Set([m])),_=f(m),E=_[0],R=_[1],P=f(y),k=P[0],S=P[1],C=s((function(){if(g.current){var e={kind:"NullEntryPointReference"};b.current.add(e),R(e)}}),[R,g]),x=s((function(r){if(g.current){var n=a(e,t,r);b.current.add(n),R(n),S(r)}}),[e,t,R,g]),w=c(!1);return l((function(){return function(){w.current=!0}}),[]),l((function(){if(!0===w.current)return w.current=!1,void("NullEntryPointReference"!==E.kind&&null!=k&&x(k));var e=b.current;if(g.current){var t,r=(0,n.default)(e);try{for(r.s();!(t=r.n()).done;){var a=t.value;if(a===E)break;e.delete(a),"NullEntryPointReference"!==a.kind&&a.dispose()}}catch(e){r.e(e)}finally{r.f()}}}),[E,k,x,g]),l((function(){return function(){var e,t=(0,n.default)(b.current);try{for(t.s();!(e=t.n()).done;){var r=e.value;"NullEntryPointReference"!==r.kind&&r.dispose()}}catch(e){t.e(e)}finally{t.f()}}}),[]),["NullEntryPointReference"===E.kind?null:E,x,C]}},function(e,t,r){"use strict";var n=r(10),a=r(6).useTrackLoadQueryInRender,i=r(11),o=r(15),u=r(0).useDebugValue,s=r(1).getFragment;e.exports=function(e,t){var r=n.get();return r?r.useFragment(e,t):function(e,t){a();var r=s(e);o(r,"first argument of useFragment()");var n=i(r,t,"useFragment()").data;return u({fragment:r.name,data:n}),n}(e,t)}},function(e,t){e.exports=s},function(e,t,r){"use strict";var n=r(6).useTrackLoadQueryInRender,a=r(22),i=r(24),o=r(2),u=r(1).__internal.fetchQuery;e.exports=function(e,t,r){n();var s=o(),l=i(e,t,r&&r.networkCacheConfig?r.networkCacheConfig:{force:!0});return a({componentDisplayName:"useLazyLoadQuery()",fetchKey:null==r?void 0:r.fetchKey,fetchObservable:u(s,l),fetchPolicy:null==r?void 0:r.fetchPolicy,query:l,renderPolicy:null==r?void 0:r.UNSTABLE_renderPolicy})}},function(e,t,r){"use strict";var n=r(35),a=r(0).useState;e.exports=function(e){var t=a(e),r=t[0],i=t[1];return n(e,r)?r:(i(e),e)}},function(e,t){e.exports=l},function(e,t,r){"use strict";var n=(0,r(4).default)(r(7)),a=r(8),i=r(2),o=r(0),u=r(1).commitMutation,s=o.useState,l=o.useEffect,c=o.useRef,f=o.useCallback;e.exports=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:u,r=i(),o=a(),d=c(r),p=c(e),h=c(new Set),v=s(!1),m=v[0],y=v[1],g=f((function(t){d.current===r&&p.current===e&&(h.current.delete(t),o.current&&y(h.current.size>0))}),[r,o,e]);l((function(){d.current===r&&p.current===e||(h.current=new Set,o.current&&y(!1),d.current=r,p.current=e)}),[r,o,e]);var b=f((function(a){o.current&&y(!0);var i=t(r,(0,n.default)((0,n.default)({},a),{},{mutation:e,onCompleted:function(e,t){var r;g(i),null===(r=a.onCompleted)||void 0===r||r.call(a,e,t)},onError:function(e){var t;g(i),null===(t=a.onError)||void 0===t||t.call(a,e)},onUnsubscribe:function(){var e;g(i),null===(e=a.onUnsubscribe)||void 0===e||e.call(a)},onNext:function(){var e;null===(e=a.onNext)||void 0===e||e.call(a)}}));return h.current.add(i),i}),[g,t,r,o,e]);return[b,m]}},function(e,t,r){"use strict";var n=(0,r(4).default)(r(7)),a=r(10),i=r(38),o=r(25),u=r(15),s=r(0),l=s.useCallback,c=s.useDebugValue,f=s.useState,d=r(1),p=d.getFragment,h=d.getFragmentIdentifier,v=d.getPaginationMetadata;function m(e){var t=f(!1),r=t[0],a=t[1],o={start:function(){return a(!0)},complete:function(){return a(!1)},error:function(){return a(!1)}},u=i((0,n.default)((0,n.default)({},e),{},{observer:o,onReset:function(){return a(!1)}}));return[u[0],u[1],r,u[2]]}e.exports=function(e,t){var r=a.get();return r?r.usePaginationFragment(e,t):function(e,t){var r=p(e);u(r,"first argument of usePaginationFragment()");var a=v(r,"usePaginationFragment()"),i=a.connectionPathInFragmentData,s=a.paginationRequest,f=a.paginationMetadata,d=o(r,t,"usePaginationFragment()"),y=d.fragmentData,g=d.fragmentRef,b=d.refetch,_=h(r,g),E=m({componentDisplayName:"usePaginationFragment()",connectionPathInFragmentData:i,direction:"backward",fragmentData:y,fragmentIdentifier:_,fragmentNode:r,fragmentRef:g,paginationMetadata:f,paginationRequest:s}),R=E[0],P=E[1],k=E[2],S=E[3],C=m({componentDisplayName:"usePaginationFragment()",connectionPathInFragmentData:i,direction:"forward",fragmentData:y,fragmentIdentifier:_,fragmentNode:r,fragmentRef:g,paginationMetadata:f,paginationRequest:s}),x=C[0],w=C[1],I=C[2],D=C[3],q=l((function(e,t){return D(),S(),b(e,(0,n.default)((0,n.default)({},t),{},{__environment:void 0}))}),[D,S,b]);return c({fragment:r.name,data:y,hasNext:w,isLoadingNext:I,hasPrevious:P,isLoadingPrevious:k}),{data:y,loadNext:x,loadPrevious:R,hasNext:w,hasPrevious:P,isLoadingNext:I,isLoadingPrevious:k,refetch:q}}(e,t)}},function(e,t,r){"use strict";var n=(0,r(4).default)(r(7)),a=r(23),i=r(8),o=r(39),u=r(2),s=r(3),l=r(0),c=l.useCallback,f=l.useEffect,d=l.useState,p=r(1),h=p.__internal.fetchQuery,v=p.ConnectionInterface,m=p.createOperationDescriptor,y=p.getPaginationVariables,g=p.getRefetchMetadata,b=p.getSelector,_=p.getValueAtPath,E=r(5);e.exports=function(e){var t=e.direction,r=e.fragmentNode,l=e.fragmentRef,p=e.fragmentIdentifier,R=e.fragmentData,P=e.connectionPathInFragmentData,k=e.paginationRequest,S=e.paginationMetadata,C=e.componentDisplayName,x=e.observer,w=e.onReset,I=u(),D=a(),q=D.isFetchingRef,A=D.startFetch,N=D.disposeFetch,F=D.completeFetch,O=g(r,C).identifierInfo,Q=null!=(null==O?void 0:O.identifierField)&&null!=R&&"object"==typeof R?R[O.identifierField]:null,T=i(),L=d(I),M=L[0],U=L[1],j=d(p),B=j[0],K=j[1],W=o(r,l);(I!==M||p!==B)&&(N(),w(),U(I),K(p));var V=function(e,t,r,n){var a,i,o=v.get(),u=o.EDGES,l=o.PAGE_INFO,c=o.HAS_NEXT_PAGE,f=o.HAS_PREV_PAGE,d=o.END_CURSOR,p=o.START_CURSOR,h=_(r,n);if(null==h)return{cursor:null,hasMore:!1};"object"!=typeof h&&s(!1,"Relay: Expected connection in fragment `%s` to have been `null`, or a plain object with %s and %s properties. Instead got `%s`.",t.name,u,l,h);var m=h[u],y=h[l];if(null==m||null==y)return{cursor:null,hasMore:!1};Array.isArray(m)||s(!1,"Relay: Expected connection in fragment `%s` to have a plural `%s` field. Instead got `%s`.",t.name,u,m),"object"!=typeof y&&s(!1,"Relay: Expected connection in fragment `%s` to have a `%s` field. Instead got `%s`.",t.name,l,y);var g,b="forward"===e?null!==(a=y[d])&&void 0!==a?a:null:null!==(i=y[p])&&void 0!==i?i:null;null!==b&&"string"!=typeof b&&s(!1,"Relay: Expected page info for connection in fragment `%s` to have a valid `%s`. Instead got `%s`.",t.name,p,b),g="forward"===e?null!=b&&!0===y[c]:null!=b&&!0===y[f];return{cursor:b,hasMore:g}}(t,r,R,P),H=V.cursor,Y=V.hasMore;return f((function(){return function(){N()}}),[N]),[c((function(e,a){var i=null==a?void 0:a.onComplete;if(!0!==T.current)return E(!1,"Relay: Unexpected fetch on unmounted component for fragment `%s` in `%s`. It looks like some instances of your component are still trying to fetch data but they already unmounted. Please make sure you clear all timers, intervals, async calls, etc that may trigger a fetch.",r.name,C),{dispose:function(){}};var o=b(r,l);if(!0===q.current||null==R||W)return null==o&&E(!1,"Relay: Unexpected fetch while using a null fragment ref for fragment `%s` in `%s`. When fetching more items, we expect initial fragment data to be non-null. Please make sure you're passing a valid fragment ref to `%s` before paginating.",r.name,C,C),i&&i(null),{dispose:function(){}};(null==o||"PluralReaderSelector"===o.kind)&&s(!1,"Relay: Expected to be able to find a non-plural fragment owner for fragment `%s` when using `%s`. If you're seeing this, this is likely a bug in Relay.",r.name,C);var u=o.owner.variables,c=o.variables,f=null==a?void 0:a.UNSTABLE_extraVariables,d=(0,n.default)((0,n.default)({},u),c),p=y(t,e,H,d,(0,n.default)({},f),S);null!=O&&("string"!=typeof Q&&E(!1,"Relay: Expected result to have a string `%s` in order to refetch, got `%s`.",O.identifierField,Q),p[O.identifierQueryVariableName]=Q);var v=m(k,p,{force:!0});return h(I,v).subscribe((0,n.default)((0,n.default)({},x),{},{start:function(e){A(e),x.start&&x.start(e)},complete:function(){F(),x.complete&&x.complete(),i&&i(null)},error:function(e){F(),x.error&&x.error(e),i&&i(e)}})),{dispose:N}}),[I,Q,t,H,A,N,F,q,W,R,r.name,l,C]),Y,N]}},function(e,t,r){"use strict";var n=r(2),a=r(3),i=r(0),o=r(1),u=o.__internal.getObservableForActiveRequest,s=o.getSelector,l=i.useEffect,c=i.useState,f=i.useMemo;e.exports=function(e,t){var r=n(),i=f((function(){var n=s(e,t);return null==n?null:("SingularReaderSelector"!==n.kind&&a(!1,"useIsOperationNodeActive: Plural fragments are not supported."),u(r,n.owner))}),[r,e,t]),o=c(null!=i),d=o[0],p=o[1];return l((function(){var e;if(p(null!=i),null!=i){var t=function(){p(!1)};e=i.subscribe({complete:t,error:t})}return function(){e&&e.unsubscribe()}}),[i]),d}},function(e,t,r){"use strict";var n=r(6).useTrackLoadQueryInRender,a=r(22),i=r(24),o=r(2),u=r(3),s=r(0).useDebugValue,l=r(1).__internal,c=l.fetchQueryDeduped,f=l.fetchQuery,d=r(5);e.exports=function(e,t,r){n();var l,p=o(),h=t.fetchKey,v=t.fetchPolicy,m=t.source,y=t.variables,g=t.networkCacheConfig,b=i(e,y,g);if("PreloadedQuery_DEPRECATED"===t.kind)b.request.node.params.name!==t.name&&u(!1,"usePreloadedQuery(): Expected data to be prefetched for query `%s`, got prefetch results for query `%s`.",b.request.node.params.name,t.name),l={componentDisplayName:"usePreloadedQuery()",fetchKey:h,fetchObservable:c(p,b.request.identifier,(function(){return p===t.environment&&null!=m?p.executeWithSource({operation:b,source:m}):p.execute({operation:b})})),fetchPolicy:v,query:b,renderPolicy:null==r?void 0:r.UNSTABLE_renderPolicy};else{d(!1===t.isDisposed,"usePreloadedQuery(): Expected preloadedQuery to not be disposed yet. This is because disposing the query marks it for future garbage collection, and as such query results may no longer be present in the Relay store. In the future, this will become a hard error.");var _,E=f(p,b);null!=m&&p===t.environment?_=m.ifEmpty(E):p!==t.environment?(d(!1,"usePreloadedQuery(): usePreloadedQuery was passed a preloaded query that was created with a different environment than the one that is currently in context. In the future, this will become a hard error."),_=E):_=E,l={componentDisplayName:"usePreloadedQuery()",fetchObservable:_,fetchKey:h,fetchPolicy:v,query:b,renderPolicy:null==r?void 0:r.UNSTABLE_renderPolicy}}var R=a(l);return s({query:t.name,variables:t.variables,data:R,fetchKey:h,fetchPolicy:v,renderPolicy:null==r?void 0:r.UNSTABLE_renderPolicy}),R}},function(e,t,r){"use strict";var n=r(10),a=r(25),i=r(15),o=r(0).useDebugValue,u=r(1).getFragment;e.exports=function(e,t){var r=n.get();return r?r.useRefetchableFragment(e,t):function(e,t){var r=u(e);i(r,"first argument of useRefetchableFragment()");var n=a(r,t,"useRefetchableFragment()"),s=n.fragmentData,l=n.refetch;return o({fragment:r.name,data:s}),[s,l]}(e,t)}},function(e,t,r){"use strict";var n=r(2),a=r(0),i=a.useEffect,o=a.useRef;e.exports=function(e,t){var r=n(),a=o(null),u=Array.from(e).sort().join("");return i((function(){var n=r.getStore(),i=n.lookupInvalidationState(e),o=n.subscribeToInvalidationState(i,t);return a.current=o,function(){return o.dispose()}}),[u,t,r]),{dispose:function(){null!=a.current&&a.current.dispose()}}}},function(e,t,r){"use strict";var n=r(2),a=r(0).useEffect,i=r(1).requestSubscription;e.exports=function(e,t){var r=null!=t?t:i,o=n();a((function(){return r(o,e).dispose}),[o,e,r])}}])}));
4
+ !function(e,r){"object"==typeof exports&&"object"==typeof module?module.exports=r(require("@babel/runtime/helpers/createForOfIteratorHelper"),require("@babel/runtime/helpers/defineProperty"),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"),require("react"),require("relay-runtime")):"function"==typeof define&&define.amd?define(["@babel/runtime/helpers/createForOfIteratorHelper","@babel/runtime/helpers/defineProperty","@babel/runtime/helpers/interopRequireDefault","@babel/runtime/helpers/objectSpread2","@babel/runtime/helpers/toConsumableArray","fbjs/lib/areEqual","fbjs/lib/warning","invariant","react","relay-runtime"],r):"object"==typeof exports?exports.ReactRelayHooks=r(require("@babel/runtime/helpers/createForOfIteratorHelper"),require("@babel/runtime/helpers/defineProperty"),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"),require("react"),require("relay-runtime")):e.ReactRelayHooks=r(e["@babel/runtime/helpers/createForOfIteratorHelper"],e["@babel/runtime/helpers/defineProperty"],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,e.react,e["relay-runtime"])}(self,((e,r,t,n,a,i,o,u,s,l)=>(()=>{"use strict";var c={888:(e,r,t)=>{var n=t(156),a=t(658).__internal.createRelayContext;e.exports=a(n)},651:(e,r,t)=>{var n=t(158),a=t(828),i=t(428).loadQuery,o=t(187),u=t(696),s=t(529),l=t(242),c=t(899),f=t(115),d=t(951),p=t(617),h=t(876),v=t(874),m=t(750),y=t(50),g=t(746),_=t(658);e.exports={ConnectionHandler:_.ConnectionHandler,applyOptimisticMutation:_.applyOptimisticMutation,commitLocalUpdate:_.commitLocalUpdate,commitMutation:_.commitMutation,graphql:_.graphql,readInlineData:_.readInlineData,requestSubscription:_.requestSubscription,EntryPointContainer:n,RelayEnvironmentProvider:u,ProfilerContext:o,fetchQuery:_.fetchQuery,loadQuery:i,loadEntryPoint:a,useFragment:l,useLazyLoadQuery:c,useEntryPointLoader:s,useQueryLoader:h,useMutation:f,usePaginationFragment:d,usePreloadedQuery:p,useRefetchableFragment:v,useRelayEnvironment:m,useSubscribeToInvalidationState:y,useSubscription:g}},158:(e,r,t)=>{var n=t(187),a=t(750),i=t(156),o=t(156),u=o.useContext,s=o.useEffect,l=t(446);e.exports=function(e){var r=e.entryPointReference,t=e.props;l(!1===r.isDisposed,"<EntryPointContainer>: Expected entryPointReference to not be disposed yet. This is because disposing the entrypoint marks it for future garbage collection, and as such may no longer be present in the Relay store. In the future, this will become a hard error.");var o=r.getComponent,c=r.queries,f=r.entryPoints,d=r.extraProps,p=r.rootModuleID,h=o(),v=u(n),m=a();return s((function(){m.__log({name:"entrypoint.root.consume",profilerContext:v,rootModuleID:p})}),[m,v,p]),i.createElement(h,{entryPoints:f,extraProps:d,props:t,queries:c})}},985:(e,r,t)=>{var n=t(275).default,a=n(t(175)),i=n(t(311)),o=n(t(642)),u=t(93),s=t(269).getQueryResourceForEnvironment,l=t(637),c=t(56),f=t(658),d=f.__internal,p=d.fetchQuery,h=d.getPromiseForActiveRequest,v=f.RelayFeatureFlags,m=f.createOperationDescriptor,y=f.getFragmentIdentifier,g=f.getPendingOperationsForFragment,_=f.getSelector,b=f.getVariablesFromFragment,E=f.handlePotentialSnapshotErrors,R=f.isPromise,P=f.recycleNodesInto,k="function"==typeof WeakMap,C=Object.freeze([]);function S(e){return Array.isArray(e)?e.some((function(e){return e.isMissingData})):e.isMissingData}function x(e){return Array.isArray(e)?e.map((function(e){return e.missingLiveResolverFields})).filter(Boolean).flat():e.missingLiveResolverFields}function I(e,r,t){return Array.isArray(r)?{cacheKey:e,snapshot:r,data:r.map((function(e){return e.data})),isMissingData:S(r),storeEpoch:t}:{cacheKey:e,snapshot:r,data:r.data,isMissingData:S(r),storeEpoch:t}}var w=function(){function e(e){(0,i.default)(this,"_cache",new Map),(0,i.default)(this,"_retainCounts",new Map),this._environment=e}var r=e.prototype;return r.get=function(e){var r,t;return null!==(r=null===(t=this._cache.get(e))||void 0===t?void 0:t[0])&&void 0!==r?r:void 0},r.recordQueryResults=function(e,r){var t=this,n=this._cache.get(e);if(n){var a=n[0],i=n[1];r.forEach((function(e){a.push(e)})),i.temporaryRetain(this._environment)}else{var o=new l((function(){return t._retain(e)}));this._cache.set(e,[r,o]),o.temporaryRetain(this._environment)}},r._retain=function(e){var r,t=this,n=(null!==(r=this._retainCounts.get(e))&&void 0!==r?r:0)+1;return this._retainCounts.set(e,n),{dispose:function(){var r,n=(null!==(r=t._retainCounts.get(e))&&void 0!==r?r:0)-1;n>0?t._retainCounts.set(e,n):(t._retainCounts.delete(e),t._cache.delete(e))}}},e}(),D=function(){function e(e){this._environment=e,this._cache=u.create(1e6),v.ENABLE_CLIENT_EDGES&&(this._clientEdgeQueryResultsCache=new w(e))}var r=e.prototype;return r.read=function(e,r,t,n){return this.readWithIdentifier(e,r,y(e,r),t,n)},r.readWithIdentifier=function(e,r,t,n,a){var i,u,l,f,d=this,p=this._environment;if(null==r)return{cacheKey:t,data:null,isMissingData:!1,snapshot:null,storeEpoch:0};var m=p.getStore().getEpoch();if(!0===(null==e||null===(i=e.metadata)||void 0===i?void 0:i.plural)&&(Array.isArray(r)||c(!1,"Relay: Expected fragment pointer%s for fragment `%s` to be an array, instead got `%s`. Remove `@relay(plural: true)` from fragment `%s` to allow the prop to be an object.",null!=a?" for key `".concat(a,"`"):"",e.name,typeof r,e.name),0===r.length))return{cacheKey:t,data:C,isMissingData:!1,snapshot:C,storeEpoch:m};var y=this._cache.get(t);if(null!=y){var g;if("pending"===y.kind&&R(y.promise))throw p.__log({name:"suspense.fragment",data:y.result.data,fragment:e,isRelayHooks:!0,isMissingData:y.result.isMissingData,isPromiseCached:!0,pendingOperations:y.pendingOperations}),y.promise;if("done"===y.kind&&y.result.snapshot&&(null===(g=x(y.result.snapshot))||void 0===g||!g.length))return this._throwOrLogErrorsInSnapshot(y.result.snapshot),y.result.isMissingData&&p.__log({name:"fragmentresource.missing_data",data:y.result.data,fragment:e,isRelayHooks:!0,cached:!0}),y.result}var b=_(e,r);null==b&&c(!1,"Relay: Expected to receive an object where `...%s` was spread, but the fragment reference was not found`. This is most likely the result of:\n- Forgetting to spread `%s` in `%s`'s parent's fragment.\n- Conditionally fetching `%s` but unconditionally passing %s prop to `%s`. If the parent fragment only fetches the fragment conditionally - with e.g. `@include`, `@skip`, or inside a `... on SomeType { }` spread - then the fragment reference will not exist. In this case, pass `null` if the conditions for evaluating the fragment are not met (e.g. if the `@include(if)` value is false.)",e.name,e.name,n,e.name,null==a?"a fragment reference":"the `".concat(a,"`"),n);var E=null,P=null;if(v.ENABLE_RELAY_OPERATION_TRACKER_SUSPENSE&&null!=y&&"missing"===y.kind?(E=y.result,P=y.snapshot):E=I(t,P="PluralReaderSelector"===b.kind?b.selectors.map((function(e){return p.lookup(e)})):p.lookup(b),m),!E.isMissingData)return this._throwOrLogErrorsInSnapshot(P),this._cache.set(t,{kind:"done",result:E}),E;var k=null;if(v.ENABLE_CLIENT_EDGES&&!0===(null===(u=e.metadata)||void 0===u?void 0:u.hasClientEdges)&&function(e){var r,t;return Array.isArray(e)?e.some((function(e){var r,t;return(null!==(r=null===(t=e.missingClientEdges)||void 0===t?void 0:t.length)&&void 0!==r?r:0)>0})):(null!==(r=null===(t=e.missingClientEdges)||void 0===t?void 0:t.length)&&void 0!==r?r:0)>0}(P)){k=[];var S=s(this._environment),w=[];!function(e,r){Array.isArray(e)?e.forEach(r):r(e)}(P,(function(t){var n;null===(n=t.missingClientEdges)||void 0===n||n.forEach((function(t){var n,a=t.request,i=t.clientEdgeDestinationID,o=d._performClientEdgeQuery(S,e,r,a,i),u=o.queryResult,s=o.requestDescriptor;w.push(u),null===(n=k)||void 0===n||n.push(s)}))})),null==this._clientEdgeQueryResultsCache&&c(!1,"Client edge query result cache should exist when ENABLE_CLIENT_EDGES is on."),this._clientEdgeQueryResultsCache.recordQueryResults(t,w)}var D=[];v.ENABLE_CLIENT_EDGES&&k&&(D=k.map((function(e){return h(d._environment,e)})).filter(Boolean));var q="PluralReaderSelector"===b.kind?b.selectors[0].owner:b.owner,A=this._getAndSavePromiseForFragmentRequestInFlight(t,e,q,E),N=null==A?void 0:A.promise,F=null!==(l=null===(f=x(P))||void 0===f?void 0:f.map((function(e){var r=e.liveStateID;return p.getStore().getLiveResolverPromise(r)})))&&void 0!==l?l:[];if(D.length||F.length||R(N)){var Q,T;p.__log({name:"suspense.fragment",data:E.data,fragment:e,isRelayHooks:!0,isPromiseCached:!1,isMissingData:E.isMissingData,pendingOperations:[].concat((0,o.default)(null!==(Q=null==A?void 0:A.pendingOperations)&&void 0!==Q?Q:[]),(0,o.default)(null!==(T=k)&&void 0!==T?T:[]))});var O=[];if(D.length>0&&(O=O.concat(D)),F.length>0&&(O=O.concat(F)),O.length>0)throw N&&O.push(N),Promise.all(O);if(N)throw N}return v.ENABLE_RELAY_OPERATION_TRACKER_SUSPENSE&&E.isMissingData&&this._cache.set(t,{kind:"done",result:E}),this._throwOrLogErrorsInSnapshot(P),p.__log({name:"fragmentresource.missing_data",data:E.data,fragment:e,isRelayHooks:!0,cached:!1}),I(t,P,m)},r._performClientEdgeQuery=function(e,r,t,n,i){var o=b(r,t),u=(0,a.default)((0,a.default)({},o),{},{id:i}),s=m(n,u,{}),l=p(this._environment,s),c=e.prepare(s,l);return{requestDescriptor:s.request,queryResult:c}},r._throwOrLogErrorsInSnapshot=function(e){var r=this;Array.isArray(e)?e.forEach((function(e){E(r._environment,e.missingRequiredFields,e.relayResolverErrors)})):E(this._environment,e.missingRequiredFields,e.relayResolverErrors)},r.readSpec=function(e,r,t){var n={};for(var a in e)n[a]=this.read(e[a],r[a],t,a);return n},r.subscribe=function(e,r){var t=this,n=this._environment,a=e.cacheKey,i=e.snapshot;if(!i)return{dispose:function(){}};var o=this.checkMissedUpdates(e),u=o[0],l=o[1];u&&r();var f=[];if(Array.isArray(i)?(Array.isArray(l)||c(!1,"Relay: Expected snapshots to be plural. If you're seeing this, this is likely a bug in Relay."),l.forEach((function(e,i){f.push(n.subscribe(e,(function(e){var o=n.getStore().getEpoch();t._updatePluralSnapshot(a,l,e,i,o),r()})))}))):((null==l||Array.isArray(l))&&c(!1,"Relay: Expected snapshot to be singular. If you're seeing this, this is likely a bug in Relay."),f.push(n.subscribe(l,(function(e){var i=n.getStore().getEpoch(),o=I(a,e,i);v.ENABLE_RELAY_OPERATION_TRACKER_SUSPENSE&&o.isMissingData?t._cache.set(a,{kind:"missing",result:o,snapshot:e}):t._cache.set(a,{kind:"done",result:I(a,e,i)}),r()})))),v.ENABLE_CLIENT_EDGES){var d,p,h=null!==(d=null===(p=this._clientEdgeQueryResultsCache)||void 0===p?void 0:p.get(a))&&void 0!==d?d:void 0;if(null!=h&&h.length){var m=s(this._environment);h.forEach((function(e){f.push(m.retain(e))}))}}return{dispose:function(){f.forEach((function(e){return e.dispose()})),t._cache.delete(a)}}},r.subscribeSpec=function(e,r){var t=this,n=Object.keys(e).map((function(n){return t.subscribe(e[n],r)}));return{dispose:function(){n.forEach((function(e){e.dispose()}))}}},r.checkMissedUpdates=function(e){var r,t=this._environment,n=e.snapshot;if(!n)return[!1,null];if(r=t.getStore().getEpoch(),e.storeEpoch===r)return[!1,e.snapshot];var i=e.cacheKey;if(Array.isArray(n)){var o=!1,u=[];if(n.forEach((function(e,r){var n=t.lookup(e.selector),i=e.data,s=n.data,l=P(i,s);l!==i&&(n=(0,a.default)((0,a.default)({},n),{},{data:l}),o=!0),u[r]=n})),o){var s=I(i,u,r);v.ENABLE_RELAY_OPERATION_TRACKER_SUSPENSE&&s.isMissingData?this._cache.set(i,{kind:"missing",result:s,snapshot:u}):this._cache.set(i,{kind:"done",result:s})}return[o,u]}var l=t.lookup(n.selector),c=n.data,f=l.data,d=P(c,f),p={data:d,isMissingData:l.isMissingData,missingClientEdges:l.missingClientEdges,missingLiveResolverFields:l.missingLiveResolverFields,seenRecords:l.seenRecords,selector:l.selector,missingRequiredFields:l.missingRequiredFields,relayResolverErrors:l.relayResolverErrors};if(d!==c){var h=I(i,p,r);v.ENABLE_RELAY_OPERATION_TRACKER_SUSPENSE&&h.isMissingData?this._cache.set(i,{kind:"missing",result:h,snapshot:p}):this._cache.set(i,{kind:"done",result:h})}return[d!==c,p]},r.checkMissedUpdatesSpec=function(e){var r=this;return Object.keys(e).some((function(t){return r.checkMissedUpdates(e[t])[0]}))},r._getAndSavePromiseForFragmentRequestInFlight=function(e,r,t,n){var a=this,i=g(this._environment,r,t);if(null==i)return null;var o=i.promise,u=i.pendingOperations,s=o.then((function(){a._cache.delete(e)})).catch((function(r){a._cache.delete(e)}));return s.displayName=o.displayName,this._cache.set(e,{kind:"pending",pendingOperations:u,promise:s,result:n}),{promise:s,pendingOperations:u}},r._updatePluralSnapshot=function(e,r,t,n,a){var i,u=this._cache.get(e);if(R(u))q(t.selector.node.name);else{var s=null==u||null===(i=u.result)||void 0===i?void 0:i.snapshot;if(!s||Array.isArray(s)){var l=s?(0,o.default)(s):(0,o.default)(r);l[n]=t;var c=I(e,l,a);v.ENABLE_RELAY_OPERATION_TRACKER_SUSPENSE&&c.isMissingData?this._cache.set(e,{kind:"missing",result:c,snapshot:l}):this._cache.set(e,{kind:"done",result:c})}else q(t.selector.node.name)}},e}();function q(e){c(!1,"Relay: Expected to find cached data for plural fragment `%s` when receiving a subscription. If you're seeing this, this is likely a bug in Relay.",e)}function A(e){return new D(e)}var N=k?new WeakMap:new Map;e.exports={createFragmentResource:A,getFragmentResourceForEnvironment:function(e){var r=N.get(e);if(r)return r;var t=A(e);return N.set(e,t),t}}},914:(e,r,t)=>{var n=t(446),a=null;e.exports={inject:function(e){n(null===a,"Relay HooksImplementation was injected twice."),a=e},get:function(){return a}}},93:(e,r,t)=>{var n=t(56),a=function(){function e(e){this._capacity=e,this._capacity>0||n(!1,"LRUCache: Unable to create instance of cache with zero or negative capacity."),this._map=new Map}var r=e.prototype;return r.set=function(e,r){if(this._map.delete(e),this._map.set(e,r),this._map.size>this._capacity){var t=this._map.keys().next();t.done||this._map.delete(t.value)}},r.get=function(e){var r=this._map.get(e);return null!=r&&(this._map.delete(e),this._map.set(e,r)),r},r.has=function(e){return this._map.has(e)},r.delete=function(e){this._map.delete(e)},r.size=function(){return this._map.size},r.capacity=function(){return this._capacity-this._map.size},r.clear=function(){this._map.clear()},e}();e.exports={create:function(e){return new a(e)}}},187:(e,r,t)=>{var n=t(156).createContext({wrapPrepareQueryResource:function(e){return e()}});e.exports=n},269:(e,r,t)=>{var n=t(275).default,a=n(t(175)),i=n(t(311)),o=t(93),u=t(637),s=t(56),l=t(658).isPromise,c=t(446),f="store-or-network",d="store-and-network",p="function"==typeof WeakMap;function h(e){return void 0!==e.request.node.params.metadata.live}function v(e,r,t,n,a){var i=null!=t?t:h(r)?d:f,o=null!=n?n:e.UNSTABLE_getDefaultRenderPolicy(),u="".concat(i,"-").concat(o,"-").concat(r.request.identifier);return null!=a?"".concat(u,"-").concat(a):u}function m(e,r){var t={__id:e.fragment.dataID,__fragments:(0,i.default)({},e.fragment.node.name,e.request.variables),__fragmentOwner:e.request};return{cacheIdentifier:r,fragmentNode:e.request.node.fragment,fragmentRef:t,operation:e}}var y=2e5;function g(e,r,t,n,a,i){var o=h(r),s=n,l=a,c=new u((function(e){var t=e.retain(r);return{dispose:function(){o&&null!=l&&l.unsubscribe(),t.dispose(),i(f)}}})),f={cacheIdentifier:e,id:y++,processedPayloadsCount:0,operationAvailability:t,getValue:function(){return s},setValue:function(e){s=e},setNetworkSubscription:function(e){o&&null!=l&&l.unsubscribe(),l=e},temporaryRetain:function(e){return c.temporaryRetain(e)},permanentRetain:function(e){return c.permanentRetain(e)},releaseTemporaryRetain:function(){c.releaseTemporaryRetain()}};return f}var _=function(){function e(e){var r=this;(0,i.default)(this,"_clearCacheEntry",(function(e){r._cache.delete(e.cacheIdentifier)})),this._environment=e,this._cache=o.create(1e3)}var r=e.prototype;return r.prepare=function(e,r,t,n,a,i,o){var u=v(this._environment,e,t,n,i);return this.prepareWithIdentifier(u,e,r,t,n,a,o)},r.prepareWithIdentifier=function(e,r,t,n,i,o,u){var s=this._environment,c=null!=n?n:h(r)?d:f,p=null!=i?i:s.UNSTABLE_getDefaultRenderPolicy(),v=this._cache.get(e),m=null,y=null!=v;null==v&&(v=this._fetchAndSaveQuery(e,r,t,c,p,u,(0,a.default)((0,a.default)({},o),{},{unsubscribe:function(e){null!=m&&m.dispose();var r=null==o?void 0:o.unsubscribe;r&&r(e)}}))),m=v.temporaryRetain(s);var g=v.getValue();if(l(g))throw s.__log({name:"suspense.query",fetchPolicy:c,isPromiseCached:y,operation:r,queryAvailability:v.operationAvailability,renderPolicy:p}),g;if(g instanceof Error)throw g;return g},r.retain=function(e,r){var t=this._environment,n=e.cacheIdentifier,a=e.operation,i=this._getOrCreateCacheEntry(n,a,null,e,null),o=i.permanentRetain(t);return t.__log({name:"queryresource.retain",profilerContext:r,resourceID:i.id}),{dispose:function(){o.dispose()}}},r.releaseTemporaryRetain=function(e){var r=this._cache.get(e.cacheIdentifier);null!=r&&r.releaseTemporaryRetain()},r.TESTS_ONLY__getCacheEntry=function(e,r,t,n){var a=v(this._environment,e,r,t,n);return this._cache.get(a)},r._getOrCreateCacheEntry=function(e,r,t,n,a){var i=this._cache.get(e);return null==i&&(i=g(e,r,t,n,a,this._clearCacheEntry),this._cache.set(e,i)),i},r._fetchAndSaveQuery=function(e,r,t,n,i,o,u){var l,f,d=this,p=this._environment,v=p.check(r),y=v.status,_="available"===y,b=_||"partial"===i&&"stale"!==y,E=function(){};switch(n){case"store-only":l=!1,f=!0;break;case"store-or-network":l=!_,f=b;break;case"store-and-network":l=!0,f=b;break;default:l=!0,f=!1}if(f){var R=m(r,e),P=g(e,r,v,R,null,this._clearCacheEntry);this._cache.set(e,P)}if(l){var k,C=m(r,e);t.subscribe({start:function(t){k=t;var n=d._cache.get(e);n&&n.setNetworkSubscription(k);var i=null==u?void 0:u.start;i&&i((0,a.default)((0,a.default)({},t),{},{unsubscribe:function(){h(r)&&t.unsubscribe()}}))},next:function(){var t=d._getOrCreateCacheEntry(e,r,v,C,k);t.processedPayloadsCount+=1,t.setValue(C),E();var n=null==u?void 0:u.next;null!=n&&n(p.lookup(r.fragment))},error:function(t){var n=d._getOrCreateCacheEntry(e,r,v,t,k);0===n.processedPayloadsCount?n.setValue(t):c(!1,"QueryResource: An incremental payload for query `%s` returned an error: `%s`.",r.fragment.node.name,String(t.message)),E(),k=null,n.setNetworkSubscription(null);var a=null==u?void 0:u.error;a&&a(t)},complete:function(){E(),k=null;var r=d._cache.get(e);r&&r.setNetworkSubscription(null);var t=null==u?void 0:u.complete;t&&t()},unsubscribe:null==u?void 0:u.unsubscribe});var S=this._cache.get(e);if(!S){var x=new Promise((function(e){E=e}));x.displayName="Relay("+r.fragment.node.name+")",S=g(e,r,v,x,k,this._clearCacheEntry),this._cache.set(e,S)}}else{var I=null==u?void 0:u.complete;I&&I()}var w=this._cache.get(e);return null==w&&s(!1,"Relay: Expected to have cached a result when attempting to fetch query.If you're seeing this, this is likely a bug in Relay."),p.__log({name:"queryresource.fetch",resourceID:w.id,operation:r,profilerContext:o,fetchPolicy:n,renderPolicy:i,queryAvailability:v,shouldFetch:l}),w},e}();function b(e){return new _(e)}var E=p?new WeakMap:new Map;e.exports={createQueryResource:b,getQueryResourceForEnvironment:function(e){var r=E.get(e);if(r)return r;var t=b(e);return E.set(e,t),t},getQueryCacheIdentifier:v}},696:(e,r,t)=>{var n=t(888),a=t(156),i=a.useMemo;e.exports=function(e){var r=e.children,t=e.environment,o=e.getEnvironmentForActor,u=i((function(){return{environment:t,getEnvironmentForActor:o}}),[t,o]);return a.createElement(n.Provider,{value:u},r)}},637:(e,r,t)=>{var n=(0,t(275).default)(t(311)),a=t(56),i=function(){function e(e){var r=this;(0,n.default)(this,"_retainCount",0),(0,n.default)(this,"_retainDisposable",null),(0,n.default)(this,"_releaseTemporaryRetain",null),this._retain=function(t){return r._retainCount++,1===r._retainCount&&(r._retainDisposable=e(t)),{dispose:function(){r._retainCount=Math.max(0,r._retainCount-1),0===r._retainCount&&(null==r._retainDisposable&&a(!1,"Relay: Expected disposable to release query to be defined.If you're seeing this, this is likely a bug in Relay."),r._retainDisposable.dispose(),r._retainDisposable=null)}}}}var r=e.prototype;return r.temporaryRetain=function(e){var r,t=this;if(e.isServer())return{dispose:function(){}};var n=this._retain(e),a=null,i=function(){clearTimeout(a),a=null,t._releaseTemporaryRetain=null,n.dispose()};return a=setTimeout(i,3e5),null===(r=this._releaseTemporaryRetain)||void 0===r||r.call(this),this._releaseTemporaryRetain=i,{dispose:function(){var e;null===(e=t._releaseTemporaryRetain)||void 0===e||e.call(t)}}},r.permanentRetain=function(e){var r=this._retain(e);return this.releaseTemporaryRetain(),r},r.releaseTemporaryRetain=function(){var e;null===(e=this._releaseTemporaryRetain)||void 0===e||e.call(this),this._releaseTemporaryRetain=null},r.getRetainCount=function(){return this._retainCount},e}();e.exports=i},828:(e,r,t)=>{var n=t(428).loadQuery;e.exports=function e(r,t,a){var i=null;null==t.root.getModuleIfRequired()&&(i=t.root.load());var o=t.getPreloadProps(a),u=o.queries,s=o.entryPoints,l=o.extraProps,c={},f={};null!=u&&Object.keys(u).forEach((function(e){var t=u[e],a=t.environmentProviderOptions,i=t.options,o=t.parameters,s=t.variables,l=r.getEnvironment(a);c[e]=n(l,o,s,{fetchPolicy:null==i?void 0:i.fetchPolicy,networkCacheConfig:null==i?void 0:i.networkCacheConfig,__nameForWarning:"loadEntryPoint"},a)})),null!=s&&Object.keys(s).forEach((function(t){var n=s[t];if(null!=n){var a=n.entryPoint,i=n.entryPointParams;f[t]=e(r,a,i)}}));var d=!1;return{dispose:function(){d||(null!=c&&Object.values(c).forEach((function(e){(0,e.dispose)()})),null!=f&&Object.values(f).forEach((function(e){(0,e.dispose)()})),d=!0)},entryPoints:f,extraProps:null!=l?l:null,getComponent:function(){var e,r=t.root.getModuleIfRequired();if(null==r)throw i=null!==(e=i)&&void 0!==e?e:t.root.load();return null!=r.default?r.default:r},get isDisposed(){return d},queries:c,rootModuleID:t.root.getModuleId()}}},428:(e,r,t)=>{var n=(0,t(275).default)(t(175)),a=t(56),i=t(156),o=t(658),u=o.__internal.fetchQueryDeduped,s=o.Observable,l=o.PreloadableQueryRegistry,c=o.RelayFeatureFlags,f=o.ReplaySubject,d=o.createOperationDescriptor,p=o.getRequest,h=o.getRequestIdentifier,v=t(446),m=null,y=100001;e.exports={loadQuery:function(e,r,t,o,g){var _,b,E,R,P=null===(_=i.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)||void 0===_||null===(b=_.ReactCurrentDispatcher)||void 0===b?void 0:b.current;v(null==m||P!==m,"Relay: `%s` should not be called inside a React render function.",null!==(E=null==o?void 0:o.__nameForWarning)&&void 0!==E?E:"loadQuery"),y++;var k,C,S,x,I,w,D=null!==(R=null==o?void 0:o.fetchPolicy)&&void 0!==R?R:"store-or-network",q=(0,n.default)((0,n.default)({},null==o?void 0:o.networkCacheConfig),{},{force:!0}),A=!1,N=function(r,t){return A=!0,e.executeWithSource({operation:r,source:t})},F=new f,Q=s.create((function(e){return F.subscribe(e)})),T=null,O=!1,L=function(r){var n;O=!0;var a=new f;if(!0===c.ENABLE_LOAD_QUERY_REQUEST_DEDUPING){var i="raw-network-request-"+h(r,t);n=u(e,i,(function(){return e.getNetwork().execute(r,t,q)}))}else n=e.getNetwork().execute(r,t,q);var o=n.subscribe({error:function(e){T=e,a.error(e)},next:function(e){a.next(e)},complete:function(){a.complete()}}).unsubscribe;return C=o,s.create((function(e){var r=a.subscribe(e);return function(){r.unsubscribe(),C()}}))},M=function(r,t){!0===c.ENABLE_LOAD_QUERY_REQUEST_DEDUPING&&(O=!0);var n=u(e,r.request.identifier,t).subscribe({error:function(e){F.error(e)},next:function(e){F.next(e)},complete:function(){F.complete()}});S=n.unsubscribe},U=function(r){var n=d(r,t,q);k=e.retain(n),"store-only"!==D&&("store-or-network"!==D||"available"!==e.check(n).status)&&M(n,(function(){var e=L(r.params);return N(n,e)}))};if("PreloadableConcreteRequest"===r.kind){null===(w=(x=r.params).id)&&a(!1,"Relay: `loadQuery` requires that preloadable query `%s` has a persisted query id",x.name);var j=l.get(w);if(null!=j)U(j);else{var B="store-only"===D?null:L(x),K=l.onLoad(w,(function(r){I();var n=d(r,t,q);k=e.retain(n),null!=B&&M(n,(function(){return N(n,B)}))}));I=K.dispose}}else{var W=p(r);w=null!=(x=W.params).cacheID?x.cacheID:x.id,U(W)}var V=!1,H=!1,Y=!1,G=function(){H||(k&&k.dispose(),H=!0)},z=function(){Y||(A?S&&S():C&&C(),I&&I(),Y=!0)};return{kind:"PreloadedQuery",environment:e,environmentProviderOptions:g,dispose:function(){V||(G(),z(),V=!0)},releaseQuery:G,cancelNetworkRequest:z,fetchKey:y,id:w,get isDisposed(){return V||H},get networkError(){return T},name:x.name,networkCacheConfig:q,fetchPolicy:D,source:O?Q:void 0,variables:t}},useTrackLoadQueryInRender:function(){var e,r;null===m&&(m=null===(e=i.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)||void 0===e||null===(r=e.ReactCurrentDispatcher)||void 0===r?void 0:r.current)}}},529:(e,r,t)=>{var n=(0,t(275).default)(t(765)),a=t(828),i=t(428).useTrackLoadQueryInRender,o=t(743),u=t(156),s=u.useCallback,l=u.useEffect,c=u.useRef,f=u.useState,d={kind:"NullEntryPointReference"};e.exports=function(e,r,t){var u,p,h,v;i();var m=null!==(u=null==t||null===(p=t.TEST_ONLY__initialEntryPointData)||void 0===p?void 0:p.entryPointReference)&&void 0!==u?u:d,y=null!==(h=null==t||null===(v=t.TEST_ONLY__initialEntryPointData)||void 0===v?void 0:v.entryPointParams)&&void 0!==h?h:null,g=o(),_=c(new Set([m])),b=f(m),E=b[0],R=b[1],P=f(y),k=P[0],C=P[1],S=s((function(){if(g.current){var e={kind:"NullEntryPointReference"};_.current.add(e),R(e)}}),[R,g]),x=s((function(t){if(g.current){var n=a(e,r,t);_.current.add(n),R(n),C(t)}}),[e,r,R,g]),I=c(!1);return l((function(){return function(){I.current=!0}}),[]),l((function(){if(!0===I.current)return I.current=!1,void("NullEntryPointReference"!==E.kind&&null!=k&&x(k));var e=_.current;if(g.current){var r,t=(0,n.default)(e);try{for(t.s();!(r=t.n()).done;){var a=r.value;if(a===E)break;e.delete(a),"NullEntryPointReference"!==a.kind&&a.dispose()}}catch(e){t.e(e)}finally{t.f()}}}),[E,k,x,g]),l((function(){return function(){var e,r=(0,n.default)(_.current);try{for(r.s();!(e=r.n()).done;){var t=e.value;"NullEntryPointReference"!==t.kind&&t.dispose()}}catch(e){r.e(e)}finally{r.f()}}}),[]),["NullEntryPointReference"===E.kind?null:E,x,S]}},863:(e,r,t)=>{var n=t(813),a=t(156),i=a.useCallback,o=a.useEffect;e.exports=function(){var e=n(null),r=n(!1),t=i((function(){null!=e.current&&(e.current.unsubscribe(),e.current=null),r.current=!1}),[]),a=i((function(t){e.current=t,r.current=!0}),[]),u=i((function(){e.current=null,r.current=!1}),[]);return o((function(){return t}),[t]),{isFetchingRef:r,startFetch:a,disposeFetch:t,completeFetch:u}}},242:(e,r,t)=>{var n=t(914),a=t(428).useTrackLoadQueryInRender,i=t(77),o=t(224),u=t(156).useDebugValue,s=t(658).getFragment;e.exports=function(e,r){var t=n.get();return t?t.useFragment(e,r):function(e,r){a();var t=s(e);o(t,"first argument of useFragment()");var n=i(t,r,"useFragment()").data;return u({fragment:t.name,data:n}),n}(e,r)}},77:(e,r,t)=>{var n=t(985).getFragmentResourceForEnvironment,a=t(750),i=t(813),o=t(156),u=o.useEffect,s=o.useState,l=t(658),c=l.RelayFeatureFlags,f=l.getFragmentIdentifier,d=t(446);e.exports=function(e,r,t){var o=a(),l=n(o),p=i(!1),h=s(0)[1],v=f(e,r),m=l.readWithIdentifier(e,r,v,t),y=i(!0);function g(){!1!==p.current&&!1!==y.current&&h((function(e){return e+1}))}return u((function(){p.current=!0;var e=l.subscribe(m,g);return function(){p.current=!1,e.dispose()}}),[o,v]),c.LOG_MISSING_RECORDS_IN_PROD,null!=r&&(void 0===m.data||Array.isArray(m.data)&&m.data.length>0&&m.data.every((function(e){return void 0===e})))&&d(!1,"Relay: Expected to have been able to read non-null data for fragment `%s` declared in `%s`, since fragment reference was non-null. Make sure that that `%s`'s parent isn't holding on to and/or passing a fragment reference for data that has been deleted.",e.name,t,t),{data:m.data,disableStoreUpdates:function(){y.current=!1},enableStoreUpdates:function(){y.current=!0,l.checkMissedUpdates(m)[0]&&g()}}}},743:(e,r,t)=>{var n=t(156),a=n.useEffect,i=n.useRef;e.exports=function(){var e=i(!0);return a((function(){return e.current=!0,function(){e.current=!1}}),[]),e}},233:(e,r,t)=>{var n=t(750),a=t(56),i=t(156),o=t(658),u=o.__internal.getObservableForActiveRequest,s=o.getSelector,l=i.useEffect,c=i.useState,f=i.useMemo;e.exports=function(e,r){var t=n(),i=f((function(){var n=s(e,r);return null==n?null:("SingularReaderSelector"!==n.kind&&a(!1,"useIsOperationNodeActive: Plural fragments are not supported."),u(t,n.owner))}),[t,e,r]),o=c(null!=i),d=o[0],p=o[1];return l((function(){var e;if(p(null!=i),null!=i){var r=function(){p(!1)};e=i.subscribe({complete:r,error:r})}return function(){e&&e.unsubscribe()}}),[i]),d}},899:(e,r,t)=>{var n=t(428).useTrackLoadQueryInRender,a=t(734),i=t(61),o=t(750),u=t(658).__internal.fetchQuery;e.exports=function(e,r,t){n();var s=o(),l=i(e,r,t&&t.networkCacheConfig?t.networkCacheConfig:{force:!0});return a({componentDisplayName:"useLazyLoadQuery()",fetchKey:null==t?void 0:t.fetchKey,fetchObservable:u(s,l),fetchPolicy:null==t?void 0:t.fetchPolicy,query:l,renderPolicy:null==t?void 0:t.UNSTABLE_renderPolicy})}},734:(e,r,t)=>{var n=t(914),a=t(187),i=t(269),o=i.getQueryCacheIdentifier,u=i.getQueryResourceForEnvironment,s=t(863),l=t(77),c=t(750),f=t(156),d=f.useContext,p=f.useEffect,h=f.useState,v=f.useRef;e.exports=function(e){var r=e.query,t=e.componentDisplayName,i=e.fetchObservable,f=e.fetchPolicy,m=e.fetchKey,y=e.renderPolicy,g=c(),_=d(a),b=u(g),E=h(0),R=E[0],P=E[1],k=s(),C=k.startFetch,S=k.completeFetch,x="".concat(R,"-").concat(null!=m?m:""),I=o(g,r,f,y,x),w=_.wrapPrepareQueryResource((function(){return b.prepareWithIdentifier(I,r,i,f,y,{start:C,complete:S,error:S},_)})),D=v(!1);return p((function(){return function(){D.current=!0}}),[]),p((function(){if(!0===D.current)return D.current=!1,void P((function(e){return e+1}));var e=b.retain(w,_);return function(){e.dispose()}}),[g,I]),p((function(){b.releaseTemporaryRetain(w)})),function(e,r,t){var a=n.get();return a&&a.useFragment__internal?a.useFragment__internal(e,r,t):l(e,r,t).data}(w.fragmentNode,w.fragmentRef,t)}},601:(e,r,t)=>{var n=(0,t(275).default)(t(175)),a=t(863),i=t(743),o=t(233),u=t(750),s=t(56),l=t(156),c=l.useCallback,f=l.useEffect,d=l.useState,p=t(658),h=p.__internal.fetchQuery,v=p.ConnectionInterface,m=p.createOperationDescriptor,y=p.getPaginationVariables,g=p.getRefetchMetadata,_=p.getSelector,b=p.getValueAtPath,E=t(446);e.exports=function(e){var r=e.direction,t=e.fragmentNode,l=e.fragmentRef,p=e.fragmentIdentifier,R=e.fragmentData,P=e.connectionPathInFragmentData,k=e.paginationRequest,C=e.paginationMetadata,S=e.componentDisplayName,x=e.observer,I=e.onReset,w=u(),D=a(),q=D.isFetchingRef,A=D.startFetch,N=D.disposeFetch,F=D.completeFetch,Q=g(t,S).identifierInfo,T=null!=(null==Q?void 0:Q.identifierField)&&null!=R&&"object"==typeof R?R[Q.identifierField]:null,O=i(),L=d(w),M=L[0],U=L[1],j=d(p),B=j[0],K=j[1],W=o(t,l);(w!==M||p!==B)&&(N(),I(),U(w),K(p));var V=function(e,r,t,n){var a,i,o=v.get(),u=o.EDGES,l=o.PAGE_INFO,c=o.HAS_NEXT_PAGE,f=o.HAS_PREV_PAGE,d=o.END_CURSOR,p=o.START_CURSOR,h=b(t,n);if(null==h)return{cursor:null,hasMore:!1};"object"!=typeof h&&s(!1,"Relay: Expected connection in fragment `%s` to have been `null`, or a plain object with %s and %s properties. Instead got `%s`.",r.name,u,l,h);var m=h[u],y=h[l];if(null==m||null==y)return{cursor:null,hasMore:!1};Array.isArray(m)||s(!1,"Relay: Expected connection in fragment `%s` to have a plural `%s` field. Instead got `%s`.",r.name,u,m),"object"!=typeof y&&s(!1,"Relay: Expected connection in fragment `%s` to have a `%s` field. Instead got `%s`.",r.name,l,y);var g="forward"===e?null!==(a=y[d])&&void 0!==a?a:null:null!==(i=y[p])&&void 0!==i?i:null;return null!==g&&"string"!=typeof g&&s(!1,"Relay: Expected page info for connection in fragment `%s` to have a valid `%s`. Instead got `%s`.",r.name,p,g),{cursor:g,hasMore:"forward"===e?null!=g&&!0===y[c]:null!=g&&!0===y[f]}}(r,t,R,P),H=V.cursor,Y=V.hasMore;return f((function(){return function(){N()}}),[N]),[c((function(e,a){var i=null==a?void 0:a.onComplete;if(!0!==O.current)return E(!1,"Relay: Unexpected fetch on unmounted component for fragment `%s` in `%s`. It looks like some instances of your component are still trying to fetch data but they already unmounted. Please make sure you clear all timers, intervals, async calls, etc that may trigger a fetch.",t.name,S),{dispose:function(){}};var o=_(t,l);if(!0===q.current||null==R||W)return null==o&&E(!1,"Relay: Unexpected fetch while using a null fragment ref for fragment `%s` in `%s`. When fetching more items, we expect initial fragment data to be non-null. Please make sure you're passing a valid fragment ref to `%s` before paginating.",t.name,S,S),i&&i(null),{dispose:function(){}};(null==o||"PluralReaderSelector"===o.kind)&&s(!1,"Relay: Expected to be able to find a non-plural fragment owner for fragment `%s` when using `%s`. If you're seeing this, this is likely a bug in Relay.",t.name,S);var u=o.owner.variables,c=o.variables,f=null==a?void 0:a.UNSTABLE_extraVariables,d=(0,n.default)((0,n.default)({},u),c),p=y(r,e,H,d,(0,n.default)({},f),C);null!=Q&&("string"!=typeof T&&E(!1,"Relay: Expected result to have a string `%s` in order to refetch, got `%s`.",Q.identifierField,T),p[Q.identifierQueryVariableName]=T);var v=m(k,p,{force:!0});return h(w,v).subscribe((0,n.default)((0,n.default)({},x),{},{start:function(e){A(e),x.start&&x.start(e)},complete:function(){F(),x.complete&&x.complete(),i&&i(null)},error:function(e){F(),x.error&&x.error(e),i&&i(e)}})),{dispose:N}}),[w,T,r,H,A,N,F,q,W,R,t.name,l,S]),Y,N]}},61:(e,r,t)=>{var n=t(925),a=t(156),i=t(658),o=i.createOperationDescriptor,u=i.getRequest,s=a.useMemo;e.exports=function(e,r,t){var a=n(r),i=n(t||{});return s((function(){return o(u(e),a,i)}),[e,a,i])}},925:(e,r,t)=>{var n=t(125),a=t(156).useState;e.exports=function(e){var r=a(e),t=r[0],i=r[1];return n(e,t)?t:(i(e),e)}},115:(e,r,t)=>{var n=(0,t(275).default)(t(175)),a=t(743),i=t(750),o=t(156),u=t(658).commitMutation,s=o.useState,l=o.useEffect,c=o.useRef,f=o.useCallback;e.exports=function(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:u,t=i(),o=a(),d=c(t),p=c(e),h=c(new Set),v=s(!1),m=v[0],y=v[1],g=f((function(r){d.current===t&&p.current===e&&(h.current.delete(r),o.current&&y(h.current.size>0))}),[t,o,e]);return l((function(){d.current===t&&p.current===e||(h.current=new Set,o.current&&y(!1),d.current=t,p.current=e)}),[t,o,e]),[f((function(a){o.current&&y(!0);var i=r(t,(0,n.default)((0,n.default)({},a),{},{mutation:e,onCompleted:function(e,r){var t;g(i),null===(t=a.onCompleted)||void 0===t||t.call(a,e,r)},onError:function(e){var r;g(i),null===(r=a.onError)||void 0===r||r.call(a,e)},onUnsubscribe:function(){var e;g(i),null===(e=a.onUnsubscribe)||void 0===e||e.call(a)},onNext:function(){var e;null===(e=a.onNext)||void 0===e||e.call(a)}}));return h.current.add(i),i}),[g,r,t,o,e]),m]}},951:(e,r,t)=>{var n=(0,t(275).default)(t(175)),a=t(914),i=t(601),o=t(691),u=t(224),s=t(156),l=s.useCallback,c=s.useDebugValue,f=s.useState,d=t(658),p=d.getFragment,h=d.getFragmentIdentifier,v=d.getPaginationMetadata;function m(e){var r=f(!1),t=r[0],a=r[1],o={start:function(){return a(!0)},complete:function(){return a(!1)},error:function(){return a(!1)}},u=i((0,n.default)((0,n.default)({},e),{},{observer:o,onReset:function(){return a(!1)}}));return[u[0],u[1],t,u[2]]}e.exports=function(e,r){var t=a.get();return t?t.usePaginationFragment(e,r):function(e,r){var t=p(e);u(t,"first argument of usePaginationFragment()");var a="usePaginationFragment()",i=v(t,a),s=i.connectionPathInFragmentData,f=i.paginationRequest,d=i.paginationMetadata,y=o(t,r,a),g=y.fragmentData,_=y.fragmentRef,b=y.refetch,E=h(t,_),R=m({componentDisplayName:a,connectionPathInFragmentData:s,direction:"backward",fragmentData:g,fragmentIdentifier:E,fragmentNode:t,fragmentRef:_,paginationMetadata:d,paginationRequest:f}),P=R[0],k=R[1],C=R[2],S=R[3],x=m({componentDisplayName:a,connectionPathInFragmentData:s,direction:"forward",fragmentData:g,fragmentIdentifier:E,fragmentNode:t,fragmentRef:_,paginationMetadata:d,paginationRequest:f}),I=x[0],w=x[1],D=x[2],q=x[3],A=l((function(e,r){return q(),S(),b(e,(0,n.default)((0,n.default)({},r),{},{__environment:void 0}))}),[q,S,b]);return c({fragment:t.name,data:g,hasNext:w,isLoadingNext:D,hasPrevious:k,isLoadingPrevious:C}),{data:g,loadNext:I,loadPrevious:P,hasNext:w,hasPrevious:k,isLoadingNext:D,isLoadingPrevious:C,refetch:A}}(e,r)}},617:(e,r,t)=>{var n=t(428).useTrackLoadQueryInRender,a=t(734),i=t(61),o=t(750),u=t(56),s=t(156).useDebugValue,l=t(658).__internal,c=l.fetchQueryDeduped,f=l.fetchQuery,d=t(446);e.exports=function(e,r,t){n();var l,p=o(),h=r.fetchKey,v=r.fetchPolicy,m=r.source,y=r.variables,g=r.networkCacheConfig,_=i(e,y,g);if("PreloadedQuery_DEPRECATED"===r.kind)_.request.node.params.name!==r.name&&u(!1,"usePreloadedQuery(): Expected data to be prefetched for query `%s`, got prefetch results for query `%s`.",_.request.node.params.name,r.name),l={componentDisplayName:"usePreloadedQuery()",fetchKey:h,fetchObservable:c(p,_.request.identifier,(function(){return p===r.environment&&null!=m?p.executeWithSource({operation:_,source:m}):p.execute({operation:_})})),fetchPolicy:v,query:_,renderPolicy:null==t?void 0:t.UNSTABLE_renderPolicy};else{d(!1===r.isDisposed,"usePreloadedQuery(): Expected preloadedQuery to not be disposed yet. This is because disposing the query marks it for future garbage collection, and as such query results may no longer be present in the Relay store. In the future, this will become a hard error.");var b,E=f(p,_);null!=m&&p===r.environment?b=m.ifEmpty(E):p!==r.environment?(d(!1,"usePreloadedQuery(): usePreloadedQuery was passed a preloaded query that was created with a different environment than the one that is currently in context. In the future, this will become a hard error."),b=E):b=E,l={componentDisplayName:"usePreloadedQuery()",fetchObservable:b,fetchKey:h,fetchPolicy:v,query:_,renderPolicy:null==t?void 0:t.UNSTABLE_renderPolicy}}var R=a(l);return s({query:r.name,variables:r.variables,data:R,fetchKey:h,fetchPolicy:v,renderPolicy:null==t?void 0:t.UNSTABLE_renderPolicy}),R}},876:(e,r,t)=>{var n=(0,t(275).default)(t(765)),a=t(428),i=a.loadQuery,o=a.useTrackLoadQueryInRender,u=t(743),s=t(750),l=t(156),c=l.useCallback,f=l.useEffect,d=l.useRef,p=l.useState,h=t(658).getRequest,v={kind:"NullQueryReference"};function m(e){return"PreloadableConcreteRequest"===e.kind?void 0!==e.params.metadata.live:void 0!==h(e).params.metadata.live}e.exports=function(e,r){var t=null!=r?r:v,a=s();o();var l=u(),h=d(new Set([t])),y=p((function(){return t})),g=y[0],_=y[1],b=p((function(){return t})),E=b[0],R=b[1];t!==E&&(h.current.add(t),R(t),_(t));var P=c((function(){l.current&&(h.current.add(v),_(v))}),[l]),k=c((function(r,t){var n=null!=t&&t.hasOwnProperty("__environment")?{fetchPolicy:t.fetchPolicy,networkCacheConfig:t.networkCacheConfig,__nameForWarning:t.__nameForWarning}:t;if(l.current){var o,u=i(null!==(o=null==t?void 0:t.__environment)&&void 0!==o?o:a,e,r,n);h.current.add(u),_(u)}}),[a,e,_,l]),C=d(!1);return f((function(){return function(){C.current=!0}}),[]),f((function(){if(!0===C.current)return C.current=!1,void("NullQueryReference"!==g.kind&&k(g.variables,{fetchPolicy:g.fetchPolicy,networkCacheConfig:g.networkCacheConfig}));var r=h.current;if(l.current){var t,a=(0,n.default)(r);try{for(a.s();!(t=a.n()).done;){var i=t.value;if(i===g)break;r.delete(i),"NullQueryReference"!==i.kind&&(m(e)?i.dispose&&i.dispose():i.releaseQuery&&i.releaseQuery())}}catch(e){a.e(e)}finally{a.f()}}}),[g,l,k,e]),f((function(){return function(){var r,t=(0,n.default)(h.current);try{for(t.s();!(r=t.n()).done;){var a=r.value;"NullQueryReference"!==a.kind&&(m(e)?a.dispose&&a.dispose():a.releaseQuery&&a.releaseQuery())}}catch(e){t.e(e)}finally{t.f()}}}),[e]),["NullQueryReference"===g.kind?null:g,k,P]}},874:(e,r,t)=>{var n=t(914),a=t(691),i=t(224),o=t(156).useDebugValue,u=t(658).getFragment;e.exports=function(e,r){var t=n.get();return t?t.useRefetchableFragment(e,r):function(e,r){var t=u(e);i(t,"first argument of useRefetchableFragment()");var n=a(t,r,"useRefetchableFragment()"),s=n.fragmentData,l=n.refetch;return o({fragment:t.name,data:s}),[s,l]}(e,r)}},691:(e,r,t)=>{var n,a=(0,t(275).default)(t(175)),i=t(985).getFragmentResourceForEnvironment,o=t(187),u=t(269).getQueryResourceForEnvironment,s=t(77),l=t(743),c=t(876),f=t(750),d=t(56),p=t(156),h=p.useCallback,v=p.useContext,m=p.useReducer,y=t(658),g=y.__internal.fetchQuery,_=y.createOperationDescriptor,b=y.getFragmentIdentifier,E=y.getRefetchMetadata,R=y.getSelector,P=y.getValueAtPath,k=t(446);function C(e,r){switch(r.type){case"refetch":var t;return(0,a.default)((0,a.default)({},e),{},{fetchPolicy:r.fetchPolicy,mirroredEnvironment:null!==(t=r.refetchEnvironment)&&void 0!==t?t:e.mirroredEnvironment,onComplete:r.onComplete,refetchEnvironment:r.refetchEnvironment,refetchQuery:r.refetchQuery,renderPolicy:r.renderPolicy});case"reset":return{fetchPolicy:void 0,mirroredEnvironment:r.environment,mirroredFragmentIdentifier:r.fragmentIdentifier,onComplete:void 0,refetchQuery:null,renderPolicy:void 0};default:throw r.type,new Error("useRefetchableFragmentNode: Unexpected action type")}}n={getInitialIDAndType:function(e,r,n,a){var i=t(658).Record,o=null==e?void 0:e[null!=n?n:"id"];if(1!==r.length||"node"!==r[0]||null==o)return null;var u=a.getStore().getSource().get(o),s=null==u?null:i.getType(u);return null==s?null:{id:o,typename:s}},checkSameTypeAfterRefetch:function(e,r,n,a){var i=t(658).Record;if(e){var o=r.getStore().getSource().get(e.id),u=o&&i.getType(o);u!==e.typename&&k(!1,"Relay: Call to `refetch` returned data with a different __typename: was `%s`, now `%s`, on `%s` in `%s`. Please make sure the server correctly implementsunique id requirement.",e.typename,u,n.name,a)}},checkSameIDAfterRefetch:function(e,r,n,a){if(null!=e){var i=r[t(658).ID_KEY];null!=i&&i!==e.id&&k(!1,"Relay: Call to `refetch` returned a different id, expected `%s`, got `%s`, on `%s` in `%s`. Please make sure the server correctly implements unique id requirement.",i,e.id,n.name,a)}}},e.exports=function(e,r,t){var p=f(),y=E(e,t),S=y.refetchableRequest,x=y.fragmentRefPathInResponse,I=b(e,r),w=m(C,{fetchPolicy:void 0,mirroredEnvironment:p,mirroredFragmentIdentifier:I,onComplete:void 0,refetchEnvironment:null,refetchQuery:null,renderPolicy:void 0}),D=w[0],q=w[1],A=D.fetchPolicy,N=D.mirroredEnvironment,F=D.mirroredFragmentIdentifier,Q=D.onComplete,T=D.refetchEnvironment,O=D.refetchQuery,L=D.renderPolicy,M=null!=T?T:p,U=u(M),j=i(M),B=v(o),K=M!==N||I!==F,W=c(S),V=W[0],H=W[1],Y=W[2],G=r,z=E(e,t).identifierInfo;if(K)q({type:"reset",environment:M,fragmentIdentifier:I}),Y();else if(null!=O&&null!=V){var X;X=n.getInitialIDAndType(O.request.variables,x,null==z?void 0:z.identifierQueryVariableName,M);var J=function(e){Q&&Q(null!=e?e:null)},Z=null!=V.source?V.source:g(M,O),$=B.wrapPrepareQueryResource((function(){return U.prepare(O,Z,A,L,{error:J,complete:function(){n.checkSameTypeAfterRefetch(X,M,e,t),J()}},V.fetchKey,B)})),ee=j.read($.fragmentNode,$.fragmentRef,t).data;null==ee&&d(!1,"Relay: Expected to be able to read refetch query response. If you're seeing this, this is likely a bug in Relay."),G=P(ee,x),n.checkSameIDAfterRefetch(X,G,e,t)}var re=s(e,G,t),te=re.data,ne=re.disableStoreUpdates,ae=re.enableStoreUpdates,ie=function(e,r,t,n,i,o,u,s,c,f,d){var p=l(),v=null!=(null==s?void 0:s.identifierField)&&null!=n&&"object"==typeof n?n[s.identifierField]:null;return h((function(n,i){if(!0!==p.current)return k(!1,"Relay: Unexpected call to `refetch` on unmounted component for fragment `%s` in `%s`. It looks like some instances of your component are still trying to fetch data but they already unmounted. Please make sure you clear all timers, intervals, async calls, etc that may trigger a fetch.",o.name,e),{dispose:function(){}};null==f&&k(!1,"Relay: Unexpected call to `refetch` while using a null fragment ref for fragment `%s` in `%s`. When calling `refetch`, we expect initial fragment data to be non-null. Please make sure you're passing a valid fragment ref to `%s` before calling `refetch`, or make sure you pass all required variables to `refetch`.",o.name,e,e);var u,l,h=null==i?void 0:i.__environment,m=null==i?void 0:i.fetchPolicy,y=null==i?void 0:i.UNSTABLE_renderPolicy,g=null==i?void 0:i.onComplete,b=R(o,f);if(null==b)u={},l={};else if("PluralReaderSelector"===b.kind){var E,P,C,S;u=null!==(E=null===(P=b.selectors[0])||void 0===P?void 0:P.owner.variables)&&void 0!==E?E:{},l=null!==(C=null===(S=b.selectors[0])||void 0===S?void 0:S.variables)&&void 0!==C?C:{}}else u=b.owner.variables,l=b.variables;var x=(0,a.default)((0,a.default)((0,a.default)({},u),l),n);null==s||n.hasOwnProperty(s.identifierQueryVariableName)||("string"!=typeof v&&k(!1,"Relay: Expected result to have a string `%s` in order to refetch, got `%s`.",s.identifierField,v),x[s.identifierQueryVariableName]=v);var I=_(d,x,{force:!0});return c(I.request.variables,{fetchPolicy:m,__environment:h,__nameForWarning:"refetch"}),r({type:"refetch",fetchPolicy:m,onComplete:g,refetchEnvironment:h,refetchQuery:I,renderPolicy:y}),{dispose:t}}),[i,r,t,v,c])}(t,q,Y,te,I,e,0,z,H,r,S);return{fragmentData:te,fragmentRef:G,refetch:ie,disableStoreUpdates:ne,enableStoreUpdates:ae}}},750:(e,r,t)=>{var n=t(888),a=t(56),i=t(156).useContext;e.exports=function(){var e=i(n);return null==e&&a(!1,"useRelayEnvironment: Expected to have found a Relay environment provided by a `RelayEnvironmentProvider` component. This usually means that useRelayEnvironment was used in a component that is not a descendant of a `RelayEnvironmentProvider`. Please make sure a `RelayEnvironmentProvider` has been rendered somewhere as a parent or ancestor of your component."),e.environment}},224:(e,r,t)=>{var n=t(813),a=t(446);e.exports=function(e,r){var t=n(e.name);a(t.current===e.name,"Relay: The %s has to remain the same over the lifetime of a component. Changing it is not supported and will result in unexpected behavior.",r)}},50:(e,r,t)=>{var n=t(750),a=t(156),i=a.useEffect,o=a.useRef;e.exports=function(e,r){var t=n(),a=o(null),u=Array.from(e).sort().join("");return i((function(){var n=t.getStore(),i=n.lookupInvalidationState(e),o=n.subscribeToInvalidationState(i,r);return a.current=o,function(){return o.dispose()}}),[u,r,t]),{dispose:function(){null!=a.current&&a.current.dispose()}}}},746:(e,r,t)=>{var n=t(750),a=t(156).useEffect,i=t(658).requestSubscription;e.exports=function(e,r){var t=null!=r?r:i,o=n();a((function(){return t(o,e).dispose}),[o,e,t])}},813:(e,r,t)=>{var n=t(156).useMemo;e.exports=function(e){return n((function(){return{current:e}}),[])}},765:r=>{r.exports=e},311:e=>{e.exports=r},275:e=>{e.exports=t},175:e=>{e.exports=n},642:e=>{e.exports=a},125:e=>{e.exports=i},446:e=>{e.exports=o},56:e=>{e.exports=u},156:e=>{e.exports=s},658:e=>{e.exports=l}},f={};return function e(r){var t=f[r];if(void 0!==t)return t.exports;var n=f[r]={exports:{}};return c[r](n,n.exports,e),n.exports}(651)})()));