react-relay 11.0.0 → 13.0.0-rc.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (149) hide show
  1. package/ReactRelayContext.js +1 -1
  2. package/ReactRelayContext.js.flow +2 -3
  3. package/ReactRelayFragmentContainer.js.flow +24 -24
  4. package/ReactRelayFragmentMockRenderer.js.flow +1 -1
  5. package/ReactRelayLocalQueryRenderer.js.flow +7 -8
  6. package/ReactRelayPaginationContainer.js.flow +111 -54
  7. package/ReactRelayQueryFetcher.js.flow +9 -10
  8. package/ReactRelayQueryRenderer.js.flow +115 -81
  9. package/ReactRelayRefetchContainer.js.flow +40 -35
  10. package/ReactRelayTestMocker.js.flow +16 -12
  11. package/ReactRelayTypes.js.flow +10 -10
  12. package/RelayContext.js.flow +3 -3
  13. package/__flowtests__/ReactRelayFragmentContainer-flowtest.js.flow +1 -2
  14. package/__flowtests__/ReactRelayPaginationContainer-flowtest.js.flow +12 -7
  15. package/__flowtests__/ReactRelayRefetchContainer-flowtest.js.flow +10 -6
  16. package/__flowtests__/RelayModern-flowtest.js.flow +78 -46
  17. package/__flowtests__/RelayModernFlowtest_badref.graphql.js.flow +5 -4
  18. package/__flowtests__/RelayModernFlowtest_notref.graphql.js.flow +5 -4
  19. package/__flowtests__/RelayModernFlowtest_user.graphql.js.flow +4 -3
  20. package/__flowtests__/RelayModernFlowtest_users.graphql.js.flow +4 -3
  21. package/__flowtests__/__generated__/ReactRelayFragmentContainerFlowtest_viewer.graphql.js.flow +72 -0
  22. package/__flowtests__/__generated__/ReactRelayFragmentContainerFlowtest_viewer2.graphql.js.flow +72 -0
  23. package/__flowtests__/__generated__/ReactRelayPaginationContainerFlowtestQuery.graphql.js.flow +227 -0
  24. package/__flowtests__/__generated__/ReactRelayPaginationContainerFlowtest_viewer.graphql.js.flow +164 -0
  25. package/__flowtests__/__generated__/ReactRelayRefetchContainerFlowtestQuery.graphql.js.flow +227 -0
  26. package/__flowtests__/__generated__/ReactRelayRefetchContainerFlowtest_viewer.graphql.js.flow +164 -0
  27. package/__flowtests__/__generated__/RelayModernFlowtest_badref.graphql.js.flow +66 -0
  28. package/__flowtests__/__generated__/RelayModernFlowtest_notref.graphql.js.flow +66 -0
  29. package/__flowtests__/__generated__/RelayModernFlowtest_user.graphql.js.flow +59 -0
  30. package/__flowtests__/__generated__/RelayModernFlowtest_users.graphql.js.flow +61 -0
  31. package/assertFragmentMap.js.flow +2 -2
  32. package/buildReactRelayContainer.js.flow +15 -12
  33. package/getRootVariablesForFragments.js.flow +2 -3
  34. package/hooks.js +1 -1
  35. package/hooks.js.flow +5 -6
  36. package/index.js +1 -1
  37. package/index.js.flow +6 -7
  38. package/jest-react/enqueueTask.js.flow +56 -0
  39. package/jest-react/index.js.flow +12 -0
  40. package/jest-react/internalAct.js.flow +139 -0
  41. package/legacy.js +1 -1
  42. package/lib/ReactRelayFragmentContainer.js +21 -15
  43. package/lib/ReactRelayFragmentMockRenderer.js +2 -2
  44. package/lib/ReactRelayLocalQueryRenderer.js +7 -8
  45. package/lib/ReactRelayPaginationContainer.js +92 -30
  46. package/lib/ReactRelayQueryFetcher.js +3 -3
  47. package/lib/ReactRelayQueryRenderer.js +86 -53
  48. package/lib/ReactRelayRefetchContainer.js +36 -21
  49. package/lib/ReactRelayTestMocker.js +7 -6
  50. package/lib/RelayContext.js +3 -2
  51. package/lib/assertFragmentMap.js +3 -2
  52. package/lib/buildReactRelayContainer.js +14 -11
  53. package/lib/hooks.js +5 -5
  54. package/lib/index.js +7 -7
  55. package/lib/jest-react/enqueueTask.js +53 -0
  56. package/lib/jest-react/index.js +13 -0
  57. package/lib/jest-react/internalAct.js +116 -0
  58. package/lib/multi-actor/ActorChange.js +30 -0
  59. package/lib/multi-actor/index.js +11 -0
  60. package/lib/multi-actor/useRelayActorEnvironment.js +29 -0
  61. package/lib/relay-hooks/EntryPointContainer.react.js +3 -3
  62. package/lib/relay-hooks/FragmentResource.js +351 -94
  63. package/lib/relay-hooks/LRUCache.js +1 -1
  64. package/lib/relay-hooks/LazyLoadEntryPointContainer_DEPRECATED.react.js +4 -4
  65. package/lib/relay-hooks/MatchContainer.js +1 -1
  66. package/lib/relay-hooks/QueryResource.js +172 -29
  67. package/lib/relay-hooks/RelayEnvironmentProvider.js +5 -3
  68. package/lib/relay-hooks/SuspenseResource.js +130 -0
  69. package/lib/relay-hooks/loadQuery.js +42 -20
  70. package/lib/relay-hooks/preloadQuery_DEPRECATED.js +24 -15
  71. package/lib/relay-hooks/useBlockingPaginationFragment.js +4 -5
  72. package/lib/relay-hooks/useEntryPointLoader.js +2 -2
  73. package/lib/relay-hooks/useFetchTrackingRef.js +2 -1
  74. package/lib/relay-hooks/useFragment.js +8 -7
  75. package/lib/relay-hooks/useFragmentNode.js +4 -4
  76. package/lib/relay-hooks/useIsOperationNodeActive.js +3 -3
  77. package/lib/relay-hooks/useLazyLoadQuery.js +3 -3
  78. package/lib/relay-hooks/useLazyLoadQueryNode.js +10 -4
  79. package/lib/relay-hooks/useLoadMoreFunction.js +6 -8
  80. package/lib/relay-hooks/useMemoOperationDescriptor.js +2 -2
  81. package/lib/relay-hooks/useMemoVariables.js +2 -2
  82. package/lib/relay-hooks/useMutation.js +17 -6
  83. package/lib/relay-hooks/usePaginationFragment.js +2 -3
  84. package/lib/relay-hooks/usePreloadedQuery.js +8 -7
  85. package/lib/relay-hooks/useQueryLoader.js +30 -10
  86. package/lib/relay-hooks/useRefetchableFragmentNode.js +12 -14
  87. package/lib/relay-hooks/useRelayEnvironment.js +3 -3
  88. package/lib/relay-hooks/useStaticFragmentNodeWarning.js +2 -2
  89. package/lib/relay-hooks/useSubscribeToInvalidationState.js +2 -1
  90. package/lib/relay-hooks/useSubscription.js +10 -7
  91. package/multi-actor/ActorChange.js.flow +58 -0
  92. package/multi-actor/index.js.flow +14 -0
  93. package/multi-actor/useRelayActorEnvironment.js.flow +49 -0
  94. package/package.json +3 -2
  95. package/react-relay-hooks.js +2 -2
  96. package/react-relay-hooks.min.js +2 -2
  97. package/react-relay-legacy.js +2 -2
  98. package/react-relay-legacy.min.js +2 -2
  99. package/react-relay.js +2 -2
  100. package/react-relay.min.js +2 -2
  101. package/relay-hooks/EntryPointContainer.react.js.flow +8 -15
  102. package/relay-hooks/EntryPointTypes.flow.js.flow +24 -25
  103. package/relay-hooks/FragmentResource.js.flow +376 -95
  104. package/relay-hooks/LazyLoadEntryPointContainer_DEPRECATED.react.js.flow +32 -46
  105. package/relay-hooks/MatchContainer.js.flow +3 -2
  106. package/relay-hooks/QueryResource.js.flow +216 -25
  107. package/relay-hooks/RelayEnvironmentProvider.js.flow +14 -4
  108. package/relay-hooks/SuspenseResource.js.flow +115 -0
  109. package/relay-hooks/__flowtests__/EntryPointTypes/EntryPointElementConfig-flowtest.js.flow +4 -3
  110. package/relay-hooks/__flowtests__/EntryPointTypes/NestedEntrypoints-flowtest.js.flow +1 -1
  111. package/relay-hooks/__flowtests__/useBlockingPaginationFragment-flowtest.js.flow +10 -9
  112. package/relay-hooks/__flowtests__/useFragment-flowtest.js.flow +8 -7
  113. package/relay-hooks/__flowtests__/usePaginationFragment-flowtest.js.flow +10 -9
  114. package/relay-hooks/__flowtests__/useRefetchableFragment-flowtest.js.flow +10 -9
  115. package/relay-hooks/__flowtests__/utils.js.flow +8 -12
  116. package/relay-hooks/loadEntryPoint.js.flow +6 -12
  117. package/relay-hooks/loadQuery.js.flow +49 -31
  118. package/relay-hooks/preloadQuery_DEPRECATED.js.flow +30 -21
  119. package/relay-hooks/prepareEntryPoint_DEPRECATED.js.flow +6 -12
  120. package/relay-hooks/useBlockingPaginationFragment.js.flow +13 -11
  121. package/relay-hooks/useEntryPointLoader.js.flow +7 -10
  122. package/relay-hooks/useFetchTrackingRef.js.flow +2 -2
  123. package/relay-hooks/useFragment.js.flow +26 -46
  124. package/relay-hooks/useFragmentNode.js.flow +5 -7
  125. package/relay-hooks/useIsOperationNodeActive.js.flow +3 -5
  126. package/relay-hooks/useIsParentQueryActive.js.flow +3 -4
  127. package/relay-hooks/useLazyLoadQuery.js.flow +9 -10
  128. package/relay-hooks/useLazyLoadQueryNode.js.flow +19 -13
  129. package/relay-hooks/useLoadMoreFunction.js.flow +20 -27
  130. package/relay-hooks/useMemoOperationDescriptor.js.flow +5 -7
  131. package/relay-hooks/useMemoVariables.js.flow +6 -6
  132. package/relay-hooks/useMutation.js.flow +26 -26
  133. package/relay-hooks/usePaginationFragment.js.flow +38 -44
  134. package/relay-hooks/usePreloadedQuery.js.flow +18 -14
  135. package/relay-hooks/useQueryLoader.js.flow +41 -22
  136. package/relay-hooks/useRefetchableFragment.js.flow +7 -8
  137. package/relay-hooks/useRefetchableFragmentNode.js.flow +24 -30
  138. package/relay-hooks/useRelayEnvironment.js.flow +2 -4
  139. package/relay-hooks/useStaticFragmentNodeWarning.js.flow +2 -3
  140. package/relay-hooks/useSubscribeToInvalidationState.js.flow +3 -6
  141. package/relay-hooks/useSubscription.js.flow +20 -10
  142. package/lib/relay-hooks/getPaginationMetadata.js +0 -41
  143. package/lib/relay-hooks/getPaginationVariables.js +0 -66
  144. package/lib/relay-hooks/getRefetchMetadata.js +0 -36
  145. package/lib/relay-hooks/getValueAtPath.js +0 -51
  146. package/relay-hooks/getPaginationMetadata.js.flow +0 -74
  147. package/relay-hooks/getPaginationVariables.js.flow +0 -108
  148. package/relay-hooks/getRefetchMetadata.js.flow +0 -80
  149. package/relay-hooks/getValueAtPath.js.flow +0 -46
@@ -10,12 +10,13 @@
10
10
  // flowlint ambiguous-object-type:error
11
11
  'use strict';
12
12
 
13
- var React = require('react');
14
-
15
13
  var useRelayEnvironment = require('./useRelayEnvironment');
16
14
 
17
- var _require = require('relay-runtime'),
18
- requestSubscription = _require.requestSubscription;
15
+ var _require = require('react'),
16
+ useEffect = _require.useEffect;
17
+
18
+ var _require2 = require('relay-runtime'),
19
+ requestSubscription = _require2.requestSubscription;
19
20
 
20
21
  function useSubscription(config, requestSubscriptionFn) {
21
22
  // N.B. this will re-subscribe every render if config or requestSubscriptionFn
@@ -23,9 +24,11 @@ function useSubscription(config, requestSubscriptionFn) {
23
24
  // Please do not pass an object defined in-line.
24
25
  var actualRequestSubscription = requestSubscriptionFn !== null && requestSubscriptionFn !== void 0 ? requestSubscriptionFn : requestSubscription;
25
26
  var environment = useRelayEnvironment();
26
- React.useEffect(function () {
27
- var _requestSubscription = requestSubscription(environment, config),
28
- dispose = _requestSubscription.dispose;
27
+ useEffect(function () {
28
+ // $FlowFixMe[method-unbinding] added when improving typing for this parameters
29
+ var _actualRequestSubscri = actualRequestSubscription(environment, config),
30
+ dispose = _actualRequestSubscri.dispose; // $FlowFixMe[incompatible-call]
31
+
29
32
 
30
33
  return dispose;
31
34
  }, [environment, config, actualRequestSubscription]);
@@ -0,0 +1,58 @@
1
+ /**
2
+ * Copyright (c) Facebook, Inc. and its affiliates.
3
+ *
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ *
7
+ * @flow strict-local
8
+ * @emails oncall+relay
9
+ * @format
10
+ */
11
+
12
+ 'use strict';
13
+
14
+ import type {ActorIdentifier} from 'relay-runtime/multi-actor-environment';
15
+
16
+ const RelayEnvironmentProvider = require('../relay-hooks/RelayEnvironmentProvider');
17
+ const useRelayActorEnvironment = require('./useRelayActorEnvironment');
18
+ const React = require('react');
19
+
20
+ export opaque type ActorChangePoint<TFragmentRef> = $ReadOnly<{
21
+ __fragmentRef: TFragmentRef,
22
+ __viewer: ActorIdentifier,
23
+ }>;
24
+
25
+ type ActorChangeProps<TFragmentRef> = {
26
+ actorChangePoint: ActorChangePoint<TFragmentRef>,
27
+ children: (
28
+ fragmentRef: TFragmentRef,
29
+ actorIdentifier: ActorIdentifier,
30
+ ) => React.MixedElement,
31
+ };
32
+
33
+ function ActorChange<TFragmentRef>(
34
+ props: ActorChangeProps<TFragmentRef>,
35
+ ): React.Element<typeof RelayEnvironmentProvider> {
36
+ const actorEnvironment = useRelayActorEnvironment(
37
+ props.actorChangePoint.__viewer,
38
+ );
39
+ const getEnvironmentForActor = React.useCallback(
40
+ (actorIdentifier: ActorIdentifier) => {
41
+ return actorEnvironment.multiActorEnvironment.forActor(actorIdentifier);
42
+ },
43
+ [actorEnvironment],
44
+ );
45
+
46
+ return (
47
+ <RelayEnvironmentProvider
48
+ environment={actorEnvironment}
49
+ getEnvironmentForActor={getEnvironmentForActor}>
50
+ {props.children(
51
+ props.actorChangePoint.__fragmentRef,
52
+ props.actorChangePoint.__viewer,
53
+ )}
54
+ </RelayEnvironmentProvider>
55
+ );
56
+ }
57
+
58
+ module.exports = ActorChange;
@@ -0,0 +1,14 @@
1
+ /**
2
+ * Copyright (c) Facebook, Inc. and its affiliates.
3
+ *
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ *
7
+ * @flow strict-local
8
+ * @emails oncall+relay
9
+ * @format
10
+ */
11
+
12
+ 'use strict';
13
+
14
+ export type {ActorChangePoint} from './ActorChange';
@@ -0,0 +1,49 @@
1
+ /**
2
+ * Copyright (c) Facebook, Inc. and its affiliates.
3
+ *
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ *
7
+ * @emails oncall+relay
8
+ * @flow strict-local
9
+ * @format
10
+ */
11
+
12
+ // flowlint ambiguous-object-type:error
13
+
14
+ 'use strict';
15
+
16
+ import type {
17
+ ActorIdentifier,
18
+ IActorEnvironment,
19
+ } from 'relay-runtime/multi-actor-environment';
20
+
21
+ const invariant = require('invariant');
22
+ const {useContext} = require('react');
23
+ const ReactRelayContext = require('react-relay/ReactRelayContext');
24
+
25
+ function useRelayActorEnvironment(
26
+ actorIdentifier: ActorIdentifier,
27
+ ): IActorEnvironment {
28
+ const context = useContext(ReactRelayContext);
29
+ invariant(
30
+ context != null,
31
+ 'useRelayActorEnvironment: Expected to have found a Relay environment provided by ' +
32
+ 'a `RelayEnvironmentProvider` component. ' +
33
+ 'This usually means that useRelayActorEnvironment was used in a ' +
34
+ 'component that is not a descendant of a `RelayEnvironmentProvider`. ' +
35
+ 'Please make sure a `RelayEnvironmentProvider` has been rendered somewhere ' +
36
+ 'as a parent or ancestor of your component.',
37
+ );
38
+ const getEnvironmentForActor = context.getEnvironmentForActor;
39
+ invariant(
40
+ getEnvironmentForActor != null,
41
+ 'useRelayActorEnvironment: Expected to have a function `getEnvironmentForActor`.' +
42
+ 'This usually means that `RelayEnvironmentProvider`. was not properly set up for use in the ' +
43
+ 'multi actor application. Please make sure the provider has defined a `getEnvironmentForActor`.',
44
+ );
45
+
46
+ return getEnvironmentForActor(actorIdentifier);
47
+ }
48
+
49
+ module.exports = useRelayActorEnvironment;
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": "11.0.0",
4
+ "version": "13.0.0-rc.0",
5
5
  "keywords": [
6
6
  "graphql",
7
7
  "relay",
@@ -14,8 +14,9 @@
14
14
  "dependencies": {
15
15
  "@babel/runtime": "^7.0.0",
16
16
  "fbjs": "^3.0.0",
17
+ "invariant": "^2.2.4",
17
18
  "nullthrows": "^1.1.1",
18
- "relay-runtime": "11.0.0"
19
+ "relay-runtime": "13.0.0-rc.0"
19
20
  },
20
21
  "peerDependencies": {
21
22
  "react": "^16.9.0 || ^17"
@@ -1,4 +1,4 @@
1
1
  /**
2
- * Relay v11.0.0
2
+ * Relay v13.0.0-rc.0
3
3
  */
4
- !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react"),require("relay-runtime"),require("fbjs/lib/invariant"),require("@babel/runtime/helpers/interopRequireDefault"),require("fbjs/lib/warning"),require("@babel/runtime/helpers/objectSpread2"),require("@babel/runtime/helpers/createForOfIteratorHelper"),require("react-relay/ReactRelayContext"),require("@babel/runtime/helpers/defineProperty"),require("@babel/runtime/helpers/toConsumableArray"),require("fbjs/lib/mapObject"),require("fbjs/lib/areEqual")):"function"==typeof define&&define.amd?define(["react","relay-runtime","fbjs/lib/invariant","@babel/runtime/helpers/interopRequireDefault","fbjs/lib/warning","@babel/runtime/helpers/objectSpread2","@babel/runtime/helpers/createForOfIteratorHelper","react-relay/ReactRelayContext","@babel/runtime/helpers/defineProperty","@babel/runtime/helpers/toConsumableArray","fbjs/lib/mapObject","fbjs/lib/areEqual"],t):"object"==typeof exports?exports.ReactRelayHooks=t(require("react"),require("relay-runtime"),require("fbjs/lib/invariant"),require("@babel/runtime/helpers/interopRequireDefault"),require("fbjs/lib/warning"),require("@babel/runtime/helpers/objectSpread2"),require("@babel/runtime/helpers/createForOfIteratorHelper"),require("react-relay/ReactRelayContext"),require("@babel/runtime/helpers/defineProperty"),require("@babel/runtime/helpers/toConsumableArray"),require("fbjs/lib/mapObject"),require("fbjs/lib/areEqual")):e.ReactRelayHooks=t(e.react,e["relay-runtime"],e["fbjs/lib/invariant"],e["@babel/runtime/helpers/interopRequireDefault"],e["fbjs/lib/warning"],e["@babel/runtime/helpers/objectSpread2"],e["@babel/runtime/helpers/createForOfIteratorHelper"],e["react-relay/ReactRelayContext"],e["@babel/runtime/helpers/defineProperty"],e["@babel/runtime/helpers/toConsumableArray"],e["fbjs/lib/mapObject"],e["fbjs/lib/areEqual"])}(window,(function(e,t,r,n,a,i,o,u,s,l,c,f){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=26)}([function(t,r){t.exports=e},function(e,r){e.exports=t},function(e,t,r){"use strict";var n=r(13),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){e.exports=i},function(e,t,r){"use strict";var n=r(4)(r(6)),a=r(0),i=r(3),o=r(5),u=r(1),s=u.PreloadableQueryRegistry,l=u.ReplaySubject,c=u.createOperationDescriptor,f=u.getRequest,d=u.getRequestIdentifier,p=u.Observable,h=u.RelayFeatureFlags,v=u.__internal.fetchQueryDeduped,m=null,y=100001;e.exports={loadQuery:function(e,t,r,u,g){var b,R,_,E,P=null===(b=a.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)||void 0===b||null===(R=b.ReactCurrentDispatcher)||void 0===R?void 0:R.current;o(null==m||P!==m,"Relay: `%s` should not be called inside a React render function.",null!==(_=null==u?void 0:u.__nameForWarning)&&void 0!==_?_:"loadQuery"),y++;var x,k,w,S,I,q,F=null!==(E=null==u?void 0:u.fetchPolicy)&&void 0!==E?E:"store-or-network",C=(0,n.default)((0,n.default)({},null==u?void 0:u.networkCacheConfig),{},{force:!0}),D=!1,A=function(t,r){return D=!0,e.executeWithSource({operation:t,source:r})},N=new l,O=p.create((function(e){return N.subscribe(e)})),M=null,Q=!1,T=function(t){var n;Q=!0;var a=new l;if(!0===h.ENABLE_LOAD_QUERY_REQUEST_DEDUPING){var i="raw-network-request-"+d(t,r);n=v(e,i,(function(){return e.getNetwork().execute(t,r,C)}))}else{n=e.getNetwork().execute(t,r,C)}var o=n.subscribe({error:function(e){M=e,a.error(e)},next:function(e){a.next(e)},complete:function(){a.complete()}}).unsubscribe;return k=o,p.create((function(e){var t=a.subscribe(e);return function(){t.unsubscribe(),k()}}))},j=function(t,r){!0===h.ENABLE_LOAD_QUERY_REQUEST_DEDUPING&&(Q=!0);var n=v(e,t.request.identifier,r).subscribe({error:function(e){N.error(e)},next:function(e){N.next(e)},complete:function(){N.complete()}});w=n.unsubscribe},U=function(t){var n=c(t,r,C);(x=e.retain(n),"store-only"!==F)&&(("store-or-network"!==F||"available"!==e.check(n).status)&&j(n,(function(){var e=T(t.params);return A(n,e)})))};if("PreloadableConcreteRequest"===t.kind){null===(q=(S=t.params).id)&&i(!1,"Relay: `loadQuery` requires that preloadable query `%s` has a persisted query id",S.name);var L=s.get(q);if(null!=L)U(L);else{var W="store-only"===F?null:T(S),B=s.onLoad(q,(function(t){I();var n=c(t,r,C);x=e.retain(n),null!=W&&j(n,(function(){return A(n,W)}))}));I=B.dispose}}else{var K=f(t);q=null!=(S=K.params).cacheID?S.cacheID:S.id,U(K)}var V=!1;return{kind:"PreloadedQuery",environment:e,environmentProviderOptions:g,dispose:function(){V||(D?w&&w():k&&k(),x&&x.dispose(),I&&I(),V=!0)},fetchKey:y,id:q,get isDisposed(){return V},get networkError(){return M},name:S.name,networkCacheConfig:C,fetchPolicy:F,source:Q?O:void 0,variables:r}},useTrackLoadQueryInRender:function(){var e,t;null===m&&(m=null===(e=a.__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,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){e.exports=o},function(e,t,r){"use strict";var n=r(2),a=r(5),i=r(15).getFragmentResourceForEnvironment,o=r(0),u=o.useEffect,s=o.useRef,l=o.useState,c=r(1).getFragmentIdentifier;e.exports=function(e,t,r){var o=n(),f=i(o),d=s(!1),p=l(0)[1],h=c(e,t),v=f.readWithIdentifier(e,t,h,r),m=s(!0);function y(){!1!==d.current&&!1!==m.current&&p((function(e){return e+1}))}return u((function(){d.current=!0;var e=f.subscribe(v,y);return function(){d.current=!1,e.dispose()}}),[o,h]),null!=t&&(void 0===v.data||Array.isArray(v.data)&&v.data.length>0&&v.data.every((function(e){return void 0===e})))&&a(!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:v.data,disableStoreUpdates:function(){m.current=!1},enableStoreUpdates:function(){m.current=!0,f.checkMissedUpdates(v)[0]&&y()}}}},function(e,t,r){"use strict";var n=r(5),a=r(0).useRef;e.exports=function(e,t){var r=a(e.name);n(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){e.exports=u},function(e,t,r){"use strict";var n=r(7).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 t},get isDisposed(){return d},queries:c,rootModuleID:r.root.getModuleId()}}},function(e,t,r){"use strict";var n=r(4),a=n(r(6)),i=n(r(31)),o=r(16),u=r(3),s=r(32),l=r(1),c=l.__internal.getPromiseForActiveRequest,f=l.getFragmentIdentifier,d=l.getSelector,p=l.isPromise,h=l.recycleNodesInto,v=l.reportMissingRequiredFields,m="function"==typeof WeakMap;function y(e,t){return Array.isArray(t)?{cacheKey:e,snapshot:t,data:t.map((function(e){return e.data}))}:{cacheKey:e,snapshot:t,data:t.data}}var g=function(){function e(e){this._environment=e,this._cache=o.create(1e6)}var t=e.prototype;return t.read=function(e,t,r,n){return this.readWithIdentifier(e,t,f(e,t),r,n)},t.readWithIdentifier=function(e,t,r,n,a){var i,o=this._environment;if(null==t)return{cacheKey:r,data:null,snapshot:null};if(!0===(null==e||null===(i=e.metadata)||void 0===i?void 0:i.plural)&&(Array.isArray(t)||u(!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:[],snapshot:[]};var s=this._cache.get(r);if(null!=s){if(p(s))throw s;if(s.snapshot)return this._reportMissingRequiredFieldsInSnapshot(s.snapshot),s}var l=d(e,t);null==l&&u(!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 c="PluralReaderSelector"===l.kind?l.selectors.map((function(e){return o.lookup(e)})):o.lookup(l),f="PluralReaderSelector"===l.kind?l.selectors[0].owner:l.owner;if(!function(e){return Array.isArray(e)?e.some((function(e){return e.isMissingData})):e.isMissingData}(c)){this._reportMissingRequiredFieldsInSnapshot(c);var h=y(r,c);return this._cache.set(r,h),h}var v=this._getAndSavePromiseForFragmentRequestInFlight(r,f);if(null!=v)throw v;return this._reportMissingRequiredFieldsInSnapshot(c),y(r,c)},t._reportMissingRequiredFieldsInSnapshot=function(e){var t=this;Array.isArray(e)?e.forEach((function(e){null!=e.missingRequiredFields&&v(t._environment,e.missingRequiredFields)})):null!=e.missingRequiredFields&&v(this._environment,e.missingRequiredFields)},t.readSpec=function(e,t,r){var n=this;return s(e,(function(e,a){var i=t[a];return n.read(e,i,r,a)}))},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),s=o[0],l=o[1];s&&t();var c=[];return Array.isArray(i)?(Array.isArray(l)||u(!1,"Relay: Expected snapshots to be plural. If you're seeing this, this is likely a bug in Relay."),l.forEach((function(e,i){c.push(n.subscribe(e,(function(e){r._updatePluralSnapshot(a,l,e,i),t()})))}))):((null==l||Array.isArray(l))&&u(!1,"Relay: Expected snapshot to be singular. If you're seeing this, this is likely a bug in Relay."),c.push(n.subscribe(l,(function(e){r._cache.set(a,y(a,e)),t()})))),{dispose:function(){c.map((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.cacheKey,n=e.snapshot;if(!n)return[!1,null];var i=!1;if(Array.isArray(n)){var o=[];return n.forEach((function(e,r){var n=t.lookup(e.selector),u=e.data,s=n.data,l=h(u,s);l!==u&&(n=(0,a.default)((0,a.default)({},n),{},{data:l}),i=!0),o[r]=n})),i&&this._cache.set(r,y(r,o)),[i,o]}var u=t.lookup(n.selector),s=n.data,l=u.data,c=h(s,l);return u={data:c,isMissingData:u.isMissingData,seenRecords:u.seenRecords,selector:u.selector,missingRequiredFields:u.missingRequiredFields},c!==s&&(this._cache.set(r,y(r,u)),i=!0),[i,u]},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){var r,n=this,a=this._environment,i=null!==(r=c(a,t))&&void 0!==r?r:function(e,t){return e.getOperationTracker().getPromiseForPendingOperationsAffectingOwner(t)}(a,t);if(!i)return null;var o=i.then((function(){n._cache.delete(e)})).catch((function(t){n._cache.delete(e)}));return this._cache.set(e,o),o.displayName="Relay("+t.node.params.name+")",o},t._updatePluralSnapshot=function(e,t,r,n){var a=this._cache.get(e);if(p(a))b(r.selector.node.name);else{var o=null==a?void 0:a.snapshot;if(!o||Array.isArray(o)){var u=o?(0,i.default)(o):(0,i.default)(t);u[n]=r,this._cache.set(e,y(e,u))}else b(r.selector.node.name)}},e}();function b(e){u(!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 R(e){return new g(e)}var _=m?new WeakMap:new Map;e.exports={createFragmentResource:R,getFragmentResourceForEnvironment:function(e){var t=_.get(e);if(t)return t;var r=R(e);return _.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=r(9),a=r(0),i=r(18),o=r(11),u=r(2),s=r(19),l=s.getQueryResourceForEnvironment,c=s.getQueryCacheIdentifier,f=a.useContext,d=a.useEffect,p=a.useState,h=a.useRef;e.exports=function(e){var t=e.query,r=e.componentDisplayName,a=e.fetchObservable,s=e.fetchPolicy,v=e.fetchKey,m=e.renderPolicy,y=u(),g=f(n),b=l(y),R=p(0),_=R[0],E=R[1],P=i(),x=P.startFetch,k=P.completeFetch,w="".concat(_,"-").concat(null!=v?v:""),S=c(y,t,s,m,w),I=g.wrapPrepareQueryResource((function(){return b.prepareWithIdentifier(S,t,a,s,m,{start:x,complete:k,error:k},g)})),q=h(!1);d((function(){return function(){q.current=!0}}),[]),d((function(){if(!0===q.current)return q.current=!1,void E((function(e){return e+1}));var e=b.retain(I,g);return function(){e.dispose()}}),[y,S]);var F=I.fragmentNode,C=I.fragmentRef;return o(F,C,r).data}},function(e,t,r){"use strict";var n=r(0),a=n.useCallback,i=n.useEffect,o=n.useRef;e.exports=function(){var e=o(null),t=o(!1),r=a((function(){null!=e.current&&(e.current.unsubscribe(),e.current=null),t.current=!1}),[]),n=a((function(r){e.current=r,t.current=!0}),[]),u=a((function(){e.current=null,t.current=!1}),[]);return i((function(){return r}),[r]),{isFetchingRef:t,startFetch:n,disposeFetch:r,completeFetch:u}}},function(e,t,r){"use strict";var n=r(4),a=n(r(6)),i=n(r(20)),o=r(16),u=r(3),s=r(1).isPromise,l="function"==typeof WeakMap;function c(e,t,r,n,a){var i=null!=r?r:"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 f(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 d=2e5;function p(e,t,r,n,a){var i=r,o=0,s=null,l=null,c=n,f=function(e){return 1===++o&&(s=e.retain(t)),{dispose:function(){0===(o=Math.max(0,o-1))&&(null==s&&u(!1,"Relay: Expected disposable to release query to be defined.If you're seeing this, this is likely a bug in Relay."),s.dispose(),s=null),a(p)}}},p={cacheIdentifier:e,id:d++,getValue:function(){return i},setValue:function(e){i=e},getRetainCount:function(){return o},getNetworkSubscription:function(){return c},setNetworkSubscription:function(e){null!=c&&c.unsubscribe(),c=e},temporaryRetain:function(e){if(e.isServer())return{dispose:function(){}};var t=f(e),r=null,n=function(){clearTimeout(r),r=null,l=null,t.dispose(),o<=0&&null!=c&&c.unsubscribe()};return r=setTimeout(n,3e5),null!=l&&l(),l=n,{dispose:function(){l&&l()}}},permanentRetain:function(e){var t=f(e);return null!=l&&(l(),l=null),{dispose:function(){t.dispose(),o<=0&&null!=c&&c.unsubscribe()}}}};return p}var h=function(){function e(e){var t=this;(0,i.default)(this,"_clearCacheEntry",(function(e){e.getRetainCount()<=0&&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=c(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 l=this._environment,c=null!=n?n:"store-or-network",f=null!=i?i:l.UNSTABLE_getDefaultRenderPolicy(),d=this._cache.get(e),p=null;null==d&&(d=this._fetchAndSaveQuery(e,t,r,c,f,u,(0,a.default)((0,a.default)({},o),{},{unsubscribe:function(e){null!=p&&p.dispose();var t=null==o?void 0:o.unsubscribe;t&&t(e)}}))),p=d.temporaryRetain(l);var h=d.getValue();if(s(h)||h instanceof Error)throw h;return h},t.retain=function(e,t){var r=this._environment,n=e.cacheIdentifier,a=e.operation,i=this._getOrCreateCacheEntry(n,a,e,null),o=i.permanentRetain(r);return r.__log({name:"queryresource.retain",profilerContext:t,resourceID:i.id}),{dispose:function(){o.dispose()}}},t.TESTS_ONLY__getCacheEntry=function(e,t,r,n){var a=c(this._environment,e,t,r,n);return this._cache.get(a)},t._getOrCreateCacheEntry=function(e,t,r,n){var a=this._cache.get(e);return null==a&&(a=p(e,t,r,n,this._clearCacheEntry),this._cache.set(e,a)),a},t._fetchAndSaveQuery=function(e,t,r,n,a,i,o){var s,l,c=this,d=this._environment,h=d.check(t),v=h.status,m="available"===v,y=m||"partial"===a&&"stale"!==v,g=function(){};switch(n){case"store-only":s=!1,l=!0;break;case"store-or-network":s=!m,l=y;break;case"store-and-network":s=!0,l=y;break;case"network-only":default:s=!0,l=!1}if(l){var b=f(t,e),R=p(e,t,b,null,this._clearCacheEntry);this._cache.set(e,R)}if(s){var _,E=f(t,e);r.subscribe({start:function(t){_=t;var r=c._cache.get(e);r&&r.setNetworkSubscription(_);var n=null==o?void 0:o.start;n&&n(t)},next:function(){var r=d.lookup(t.fragment);c._getOrCreateCacheEntry(e,t,E,_).setValue(E),g();var n=null==o?void 0:o.next;n&&n(r)},error:function(r){var n=c._getOrCreateCacheEntry(e,t,r,_);n.setValue(r),g(),_=null,n.setNetworkSubscription(null);var a=null==o?void 0:o.error;a&&a(r)},complete:function(){g(),_=null;var t=c._cache.get(e);t&&t.setNetworkSubscription(null);var r=null==o?void 0:o.complete;r&&r()},unsubscribe:null==o?void 0:o.unsubscribe});var P=this._cache.get(e);if(!P){var x=new Promise((function(e){g=e}));x.displayName="Relay("+t.fragment.node.name+")",P=p(e,t,x,_,this._clearCacheEntry),this._cache.set(e,P)}}else{var k=null==o?void 0:o.complete;k&&k()}var w=this._cache.get(e);return null==w&&u(!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."),d.__log({name:"queryresource.fetch",resourceID:w.id,operation:t,profilerContext:i,fetchPolicy:n,renderPolicy:a,queryAvailability:h,shouldFetch:s}),w},e}();function v(e){return new h(e)}var m=l?new WeakMap:new Map;e.exports={createQueryResource:v,getQueryResourceForEnvironment:function(e){var t=m.get(e);if(t)return t;var r=v(e);return m.set(e,r),r},getQueryCacheIdentifier:c}},function(e,t){e.exports=s},function(e,t,r){"use strict";var n=r(0),a=r(34),i=r(1),o=i.createOperationDescriptor,u=i.getRequest,s=n.useMemo;e.exports=function(e,t,r){var n=a(t)[0],i=a(r||{})[0];return s((function(){return o(u(e),n,i)}),[e,n,i])}},function(e,t,r){"use strict";var n=r(3);e.exports=function(e,t){var r,a;!0===(null===(r=e.metadata)||void 0===r?void 0:r.plural)&&n(!1,"Relay: getRefetchMetadata(): Expected fragment `%s` not to be plural when using `%s`. Remove `@relay(plural: true)` from fragment `%s` in order to use it with `%s`.",e.name,t,e.name,t);var i=null===(a=e.metadata)||void 0===a?void 0:a.refetch;null==i&&n(!1,"Relay: getRefetchMetadata(): Expected fragment `%s` to be refetchable when using `%s`. Did you forget to add a @refetchable directive to the fragment?",t,e.name);var o=i.operation.default?i.operation.default:i.operation,u=i.fragmentPathInResult;"string"==typeof o&&n(!1,"Relay: getRefetchMetadata(): Expected refetch query to be an operation and not a string when using `%s`. If you're seeing this, this is likely a bug in Relay.",t);var s=i.identifierField;return null!=s&&"string"!=typeof s&&n(!1,"Relay: getRefetchMetadata(): Expected `identifierField` to be a string."),{fragmentRefPathInResponse:u,identifierField:s,refetchableRequest:o,refetchMetadata:i}}},function(e,t,r){"use strict";var n=r(4)(r(10)),a=r(3);e.exports=function(e,t){var r,i=e,o=(0,n.default)(t);try{for(o.s();!(r=o.n()).done;){var u=r.value;if(null==i)return null;"number"==typeof u?(Array.isArray(i)||a(!1,"Relay: Expected an array when extracting value at path. If you're seeing this, this is likely a bug in Relay."),i=i[u]):(("object"!=typeof i||Array.isArray(i))&&a(!1,"Relay: Expected an object when extracting value at path. If you're seeing this, this is likely a bug in Relay."),i=i[u])}}catch(e){o.e(e)}finally{o.f()}return i}},function(e,t,r){"use strict";var n,a=r(4)(r(6)),i=r(9),o=r(22),u=r(23),s=r(3),l=r(11),c=r(8),f=r(25),d=r(2),p=r(5),h=r(15).getFragmentResourceForEnvironment,v=r(19).getQueryResourceForEnvironment,m=r(0),y=m.useCallback,g=m.useContext,b=m.useReducer,R=r(1),_=R.__internal.fetchQuery,E=R.createOperationDescriptor,P=R.getFragmentIdentifier,x=R.getSelector;function k(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){var a=r(1).Record,i=null==e?void 0:e.id;if(1!==t.length||"node"!==t[0]||null==i)return null;var o=n.getStore().getSource().get(i),u=o&&a.getType(o);return null==u?null:{id:i,typename:u}},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&&p(!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&&p(!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 m=d(),R=o(e,r),w=R.refetchableRequest,S=R.fragmentRefPathInResponse,I=R.identifierField,q=P(e,t),F=b(k,{fetchPolicy:void 0,mirroredEnvironment:m,mirroredFragmentIdentifier:q,onComplete:void 0,refetchEnvironment:null,refetchQuery:null,renderPolicy:void 0}),C=F[0],D=F[1],A=C.fetchPolicy,N=C.mirroredEnvironment,O=C.mirroredFragmentIdentifier,M=C.onComplete,Q=C.refetchEnvironment,T=C.refetchQuery,j=C.renderPolicy,U=null!=Q?Q:m,L=v(U),W=h(U),B=g(i),K=U!==N||q!==O,V=f(w),H=V[0],z=V[1],Y=V[2],G=t;if(K)D({type:"reset",environment:U,fragmentIdentifier:q}),Y();else if(null!=T&&null!=H){var X;X=n.getInitialIDAndType(T.request.variables,S,U);var J=function(e){M&&M(null!=e?e:null)},Z=null!=H.source?H.source:_(U,T),$=B.wrapPrepareQueryResource((function(){return L.prepare(T,Z,A,j,{error:J,complete:function(){n.checkSameTypeAfterRefetch(X,U,e,r),J()}},H.fetchKey,B)})),ee=W.read($.fragmentNode,$.fragmentRef,r).data;null==ee&&s(!1,"Relay: Expected to be able to read refetch query response. If you're seeing this, this is likely a bug in Relay."),G=u(ee,S),n.checkSameIDAfterRefetch(X,G,e,r)}var te=l(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,l,f,d){var h=c(),v=null!=s&&null!=n&&"object"==typeof n?n[s]:null;return y((function(n,i){if(!0!==h.current)return p(!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&&p(!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,c,m=null==i?void 0:i.__environment,y=null==i?void 0:i.fetchPolicy,g=null==i?void 0:i.UNSTABLE_renderPolicy,b=null==i?void 0:i.onComplete,R=x(o,f);if(null==R)u={},c={};else if("PluralReaderSelector"===R.kind){var _,P,k,w;u=null!==(_=null===(P=R.selectors[0])||void 0===P?void 0:P.owner.variables)&&void 0!==_?_:{},c=null!==(k=null===(w=R.selectors[0])||void 0===w?void 0:w.variables)&&void 0!==k?k:{}}else u=R.owner.variables,c=R.variables;var S=(0,a.default)((0,a.default)((0,a.default)({},u),c),n);null==s||n.hasOwnProperty("id")||("string"!=typeof v&&p(!1,"Relay: Expected result to have a string `%s` in order to refetch, got `%s`.",s,v),S.id=v);var I=E(d,S,{force:!0});return l(I.request.variables,{fetchPolicy:y,__environment:m,__nameForWarning:"refetch"}),t({type:"refetch",fetchPolicy:y,onComplete:b,refetchEnvironment:m,refetchQuery:I,renderPolicy:g}),{dispose:r}}),[i,t,r,v])}(r,D,Y,re,q,e,0,I,z,t,w),disableStoreUpdates:ne,enableStoreUpdates:ae}}},function(e,t,r){"use strict";var n=r(4)(r(10)),a=r(8),i=r(2),o=r(7),u=o.loadQuery,s=o.useTrackLoadQueryInRender,l=r(0),c=l.useCallback,f=l.useEffect,d=l.useRef,p=l.useState,h={kind:"NullQueryReference"};e.exports=function(e,t){var r=null!=t?t:h,o=i();s();var l=a(),v=d(new Set([r])),m=p((function(){return r})),y=m[0],g=m[1],b=p((function(){return r})),R=b[0],_=b[1];r!==R&&(v.current.add(r),_(r),g(r));var E=c((function(){l.current&&(v.current.add(h),g(h))}),[l]),P=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 a,i=u(null!==(a=null==r?void 0:r.__environment)&&void 0!==a?a:o,e,t,n);v.current.add(i),g(i)}}),[o,e,g,l]),x=d(!1);return f((function(){return function(){x.current=!0}}),[]),f((function(){if(!0===x.current)return x.current=!1,void("NullQueryReference"!==y.kind&&P(y.variables,{fetchPolicy:y.fetchPolicy,networkCacheConfig:y.networkCacheConfig}));var e=v.current;if(l.current){var t,r=(0,n.default)(e);try{for(r.s();!(t=r.n()).done;){var a=t.value;if(a===y)break;e.delete(a),"NullQueryReference"!==a.kind&&a.dispose&&a.dispose()}}catch(e){r.e(e)}finally{r.f()}}}),[y,l,P]),f((function(){return function(){var e,t=(0,n.default)(v.current);try{for(t.s();!(e=t.n()).done;){var r=e.value;"NullQueryReference"!==r.kind&&r.dispose&&r.dispose()}}catch(e){t.e(e)}finally{t.f()}}}),[]),["NullQueryReference"===y.kind?null:y,P,E]}},function(e,t,r){"use strict";var n=r(27),a=r(28),i=r(1),o=r(14),u=r(29),s=r(30),l=r(33),c=r(36),f=r(37),d=r(42),p=r(25),h=r(43),v=r(2),m=r(44),y=r(45),g=r(7).loadQuery;e.exports={ConnectionHandler:i.ConnectionHandler,applyOptimisticMutation:i.applyOptimisticMutation,commitLocalUpdate:i.commitLocalUpdate,commitMutation:i.commitMutation,graphql:i.graphql,readInlineData:i.readInlineData,requestSubscription:i.requestSubscription,EntryPointContainer:n,RelayEnvironmentProvider:a,fetchQuery:i.fetchQuery,loadQuery:g,loadEntryPoint:o,useFragment:s,useLazyLoadQuery:l,useEntryPointLoader:u,useQueryLoader:p,useMutation:c,usePaginationFragment:f,usePreloadedQuery:d,useRefetchableFragment:h,useRelayEnvironment:v,useSubscribeToInvalidationState:m,useSubscription:y}},function(e,t,r){"use strict";var n=r(9),a=r(0),i=r(2),o=r(5),u=r(0),s=u.useContext,l=u.useEffect;e.exports=function(e){var t=e.entryPointReference,r=e.props;o(!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 u=t.getComponent,c=t.queries,f=t.entryPoints,d=t.extraProps,p=t.rootModuleID,h=u(),v=s(n),m=i();return l((function(){m.__log({name:"entrypoint.root.consume",profilerContext:v,rootModuleID:p})}),[m,v,p]),a.createElement(h,{entryPoints:f,extraProps:d,props:r,queries:c})}},function(e,t,r){"use strict";var n=r(0),a=r(13),i=n.useMemo;e.exports=function(e){var t=e.children,r=e.environment,o=i((function(){return{environment:r}}),[r]);return n.createElement(a.Provider,{value:o},t)}},function(e,t,r){"use strict";var n=r(4)(r(10)),a=r(14),i=r(8),o=r(7).useTrackLoadQueryInRender,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;o();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=i(),b=c(new Set([m])),R=f(m),_=R[0],E=R[1],P=f(y),x=P[0],k=P[1],w=s((function(){if(g.current){var e={kind:"NullEntryPointReference"};b.current.add(e),E(e)}}),[E,g]),S=s((function(r){if(g.current){var n=a(e,t,r);b.current.add(n),E(n),k(r)}}),[e,t,E,g]),I=c(!1);return l((function(){return function(){I.current=!0}}),[]),l((function(){if(!0===I.current)return I.current=!1,void("NullEntryPointReference"!==_.kind&&null!=x&&S(x));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===_)break;e.delete(a),"NullEntryPointReference"!==a.kind&&a.dispose()}}catch(e){r.e(e)}finally{r.f()}}}),[_,x,S,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"===_.kind?null:_,S,w]}},function(e,t,r){"use strict";var n=r(11),a=r(12),i=r(7).useTrackLoadQueryInRender,o=r(0).useDebugValue,u=r(1).getFragment;e.exports=function(e,t){i();var r=u(e);a(r,"first argument of useFragment()");var s=n(r,t,"useFragment()").data;return o({fragment:r.name,data:s}),s}},function(e,t){e.exports=l},function(e,t){e.exports=c},function(e,t,r){"use strict";var n=r(17),a=r(21),i=r(2),o=r(7).useTrackLoadQueryInRender,u=r(1).__internal.fetchQuery;e.exports=function(e,t,r){o();var s=i(),l=a(e,t,r&&r.networkCacheConfig?r.networkCacheConfig:{force:!0});return n({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(0),a=r(35),i=n.useMemo,o=n.useRef,u=n.useState;e.exports=function(e){var t,r,n=o(0),s=u(e),l=s[0],c=s[1];return a(e,l)||(n.current=(null!==(r=n.current)&&void 0!==r?r:0)+1,c(e)),[i((function(){return e}),[n.current]),null!==(t=n.current)&&void 0!==t?t:0]}},function(e,t){e.exports=f},function(e,t,r){"use strict";var n=r(4)(r(6)),a=r(0),i=r(2),o=r(1).commitMutation,u=a.useState,s=a.useEffect,l=a.useRef,c=a.useCallback,f=r(8);e.exports=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o,r=i(),a=f(),d=l(r),p=l(e),h=l(new Set),v=u(!1),m=v[0],y=v[1],g=c((function(t){d.current===r&&p.current===e&&(h.current.delete(t),a.current&&y(h.current.size>0))}),[r,a,e]);s((function(){d.current===r&&p.current===e||(h.current=new Set,a.current&&y(!1),d.current=r,p.current=e)}),[r,a,e]);var b=c((function(i){var o=t(r,(0,n.default)((0,n.default)({},i),{},{mutation:e,onCompleted:function(e,t){g(o),i.onCompleted&&i.onCompleted(e,t)},onError:function(e){g(o),i.onError&&i.onError(e)},onUnsubscribe:function(){g(o),i.onUnsubscribe&&i.onUnsubscribe()}}));return h.current.add(o),a.current&&y(!0),o}),[g,t,r,a,e]);return[b,m]}},function(e,t,r){"use strict";var n=r(4)(r(6)),a=r(38),i=r(39),o=r(24),u=r(12),s=r(0),l=s.useCallback,c=s.useDebugValue,f=s.useState,d=r(1),p=d.getFragment,h=d.getFragmentIdentifier;function v(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=p(e);u(r,"first argument of usePaginationFragment()");var i=a(r,"usePaginationFragment()"),s=i.connectionPathInFragmentData,f=i.paginationRequest,d=i.paginationMetadata,m=i.identifierField,y=o(r,t,"usePaginationFragment()"),g=y.fragmentData,b=y.fragmentRef,R=y.refetch,_=h(r,b),E=v({componentDisplayName:"usePaginationFragment()",connectionPathInFragmentData:s,direction:"backward",fragmentData:g,fragmentIdentifier:_,fragmentNode:r,fragmentRef:b,identifierField:m,paginationMetadata:d,paginationRequest:f}),P=E[0],x=E[1],k=E[2],w=E[3],S=v({componentDisplayName:"usePaginationFragment()",connectionPathInFragmentData:s,direction:"forward",fragmentData:g,fragmentIdentifier:_,fragmentNode:r,fragmentRef:b,identifierField:m,paginationMetadata:d,paginationRequest:f}),I=S[0],q=S[1],F=S[2],C=S[3],D=l((function(e,t){return C(),w(),R(e,(0,n.default)((0,n.default)({},t),{},{__environment:void 0}))}),[C,w,R]);return c({fragment:r.name,data:g,hasNext:q,isLoadingNext:F,hasPrevious:x,isLoadingPrevious:k}),{data:g,loadNext:I,loadPrevious:P,hasNext:q,hasPrevious:x,isLoadingNext:F,isLoadingPrevious:k,refetch:D}}},function(e,t,r){"use strict";var n=r(22),a=r(3);e.exports=function(e,t){var r,i,o=n(e,t),u=o.refetchableRequest,s=o.refetchMetadata,l=s.connection;null==l&&a(!1,"Relay: getPaginationMetadata(): Expected fragment `%s` to include a connection when using `%s`. Did you forget to add a @connection directive to the connection field in the fragment?",t,e.name);var c=l.path,f=(null!==(r=null===(i=e.metadata)||void 0===i?void 0:i.connection)&&void 0!==r?r:[])[0];null==f&&a(!1,"Relay: getPaginationMetadata(): Expected fragment `%s` to include a connection when using `%s`. Did you forget to add a @connection directive to the connection field in the fragment?",t,e.name);var d=s.identifierField;return null!=d&&"string"!=typeof d&&a(!1,"Relay: getRefetchMetadata(): Expected `identifierField` to be a string."),{connectionPathInFragmentData:c,identifierField:d,paginationRequest:u,paginationMetadata:l,stream:!0===f.stream}}},function(e,t,r){"use strict";var n=r(4)(r(6)),a=r(40),i=r(23),o=r(3),u=r(18),s=r(8),l=r(41),c=r(2),f=r(5),d=r(0),p=d.useCallback,h=d.useEffect,v=d.useState,m=r(1),y=m.ConnectionInterface,g=m.__internal.fetchQuery,b=m.createOperationDescriptor,R=m.getSelector;e.exports=function(e){var t=e.direction,r=e.fragmentNode,d=e.fragmentRef,m=e.fragmentIdentifier,_=e.fragmentData,E=e.connectionPathInFragmentData,P=e.paginationRequest,x=e.paginationMetadata,k=e.componentDisplayName,w=e.observer,S=e.onReset,I=e.identifierField,q=c(),F=u(),C=F.isFetchingRef,D=F.startFetch,A=F.disposeFetch,N=F.completeFetch,O=null!=I&&null!=_&&"object"==typeof _?_[I]:null,M=s(),Q=v(q),T=Q[0],j=Q[1],U=v(m),L=U[0],W=U[1],B=l(r,d);(q!==T||m!==L)&&(A(),S(),j(q),W(m));var K=function(e,t,r,n){var a,u,s=y.get(),l=s.EDGES,c=s.PAGE_INFO,f=s.HAS_NEXT_PAGE,d=s.HAS_PREV_PAGE,p=s.END_CURSOR,h=s.START_CURSOR,v=i(r,n);if(null==v)return{cursor:null,hasMore:!1};"object"!=typeof v&&o(!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,l,c,v);var m=v[l],g=v[c];if(null==m||null==g)return{cursor:null,hasMore:!1};Array.isArray(m)||o(!1,"Relay: Expected connection in fragment `%s` to have a plural `%s` field. Instead got `%s`.",t.name,l,m),"object"!=typeof g&&o(!1,"Relay: Expected connection in fragment `%s` to have a `%s` field. Instead got `%s`.",t.name,c,g);var b,R="forward"===e?null!==(a=g[p])&&void 0!==a?a:null:null!==(u=g[h])&&void 0!==u?u:null;null!==R&&"string"!=typeof R&&o(!1,"Relay: Expected page info for connection in fragment `%s` to have a valid `%s`. Instead got `%s`.",t.name,h,R),b="forward"===e?null!=R&&!0===g[f]:null!=R&&!0===g[d];return{cursor:R,hasMore:b}}(t,r,_,E),V=K.cursor,H=K.hasMore;return h((function(){return function(){A()}}),[A]),[p((function(e,i){var u=null==i?void 0:i.onComplete;if(!0!==M.current)return f(!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,k),{dispose:function(){}};var s=R(r,d);if(!0===C.current||null==_||B)return null==s&&f(!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,k,k),u&&u(null),{dispose:function(){}};(null==s||"PluralReaderSelector"===s.kind)&&o(!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,k);var l=s.owner.variables,c=s.variables,p=null==i?void 0:i.UNSTABLE_extraVariables,h=(0,n.default)((0,n.default)({},l),c),v=a(t,e,V,h,(0,n.default)({},p),x);null!=I&&("string"!=typeof O&&f(!1,"Relay: Expected result to have a string `%s` in order to refetch, got `%s`.",I,O),v.id=O);var m=b(P,v,{force:!0});return g(q,m).subscribe((0,n.default)((0,n.default)({},w),{},{start:function(e){D(e),w.start&&w.start(e)},complete:function(){N(),w.complete&&w.complete(),u&&u(null)},error:function(e){N(),w.error&&w.error(e),u&&u(e)}})),{dispose:A}}),[q,O,t,V,D,A,N,C,B,_,r.name,d,k]),H,A]}},function(e,t,r){"use strict";var n=r(4),a=n(r(20)),i=n(r(6)),o=r(3),u=r(5);e.exports=function(e,t,r,n,s,l){var c,f=l.backward,d=l.forward;if("backward"===e){var p;(null==f||null==f.count||null==f.cursor)&&o(!1,"Relay: Expected backward pagination metadata to be available. If you're seeing this, this is likely a bug in Relay."),u(!s.hasOwnProperty(f.cursor),"Relay: `UNSTABLE_extraVariables` provided by caller should not contain cursor variable `%s`. This variable is automatically determined by Relay.",f.cursor),u(!s.hasOwnProperty(f.count),"Relay: `UNSTABLE_extraVariables` provided by caller should not contain count variable `%s`. This variable is automatically determined by Relay.",f.count);var h=(0,i.default)((0,i.default)((0,i.default)({},n),s),{},(p={},(0,a.default)(p,f.cursor,r),(0,a.default)(p,f.count,t),p));return d&&d.cursor&&(h[d.cursor]=null),d&&d.count&&(h[d.count]=null),h}(null==d||null==d.count||null==d.cursor)&&o(!1,"Relay: Expected forward pagination metadata to be available. If you're seeing this, this is likely a bug in Relay."),u(!s.hasOwnProperty(d.cursor),"Relay: `UNSTABLE_extraVariables` provided by caller should not contain cursor variable `%s`. This variable is automatically determined by Relay.",d.cursor),u(!s.hasOwnProperty(d.count),"Relay: `UNSTABLE_extraVariables` provided by caller should not contain count variable `%s`. This variable is automatically determined by Relay.",d.count);var v=(0,i.default)((0,i.default)((0,i.default)({},n),s),{},(c={},(0,a.default)(c,d.cursor,r),(0,a.default)(c,d.count,t),c));return f&&f.cursor&&(v[f.cursor]=null),f&&f.count&&(v[f.count]=null),v}},function(e,t,r){"use strict";var n=r(0),a=r(3),i=r(2),o=r(1),u=o.__internal.getObservableForActiveRequest,s=o.getSelector,l=n.useEffect,c=n.useState,f=n.useMemo;e.exports=function(e,t){var r=i(),n=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!=n),d=o[0],p=o[1];return l((function(){var e;if(p(null!=n),null!=n){var t=function(){p(!1)};e=n.subscribe({complete:t,error:t})}return function(){e&&e.unsubscribe()}}),[n]),d}},function(e,t,r){"use strict";var n=r(3),a=r(17),i=r(21),o=r(2),u=r(5),s=r(7).useTrackLoadQueryInRender,l=r(0).useDebugValue,c=r(1).__internal,f=c.fetchQueryDeduped,d=c.fetchQuery;e.exports=function(e,t,r){s();var c,p=o(),h=t.fetchKey,v=t.fetchPolicy,m=t.source,y=t.variables,g=i(e,y);if("PreloadedQuery_DEPRECATED"===t.kind)g.request.node.params.name!==t.name&&n(!1,"usePreloadedQuery(): Expected data to be prefetched for query `%s`, got prefetch results for query `%s`.",g.request.node.params.name,t.name),c={componentDisplayName:"usePreloadedQuery()",fetchKey:h,fetchObservable:f(p,g.request.identifier,(function(){return p===t.environment&&null!=m?p.executeWithSource({operation:g,source:m}):p.execute({operation:g})})),fetchPolicy:v,query:g,renderPolicy:null==r?void 0:r.UNSTABLE_renderPolicy};else{u(!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 b,R=d(p,g);null!=m&&p===t.environment?b=m.ifEmpty(R):p!==t.environment?(u(!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=R):b=R,c={componentDisplayName:"usePreloadedQuery()",fetchObservable:b,fetchKey:h,fetchPolicy:v,query:g,renderPolicy:null==r?void 0:r.UNSTABLE_renderPolicy}}var _=a(c);return l({query:t.name,variables:t.variables,data:_,fetchKey:h,fetchPolicy:v,renderPolicy:null==r?void 0:r.UNSTABLE_renderPolicy}),_}},function(e,t,r){"use strict";var n=r(24),a=r(12),i=r(0).useDebugValue,o=r(1).getFragment;e.exports=function(e,t){var r=o(e);a(r,"first argument of useRefetchableFragment()");var u=n(r,t,"useRefetchableFragment()"),s=u.fragmentData,l=u.refetch;return i({fragment:r.name,data:s}),[s,l]}},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(0),a=r(2),i=r(1).requestSubscription;e.exports=function(e,t){var r=null!=t?t:i,o=a();n.useEffect((function(){return i(o,e).dispose}),[o,e,r])}}])}));
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("react-relay/ReactRelayContext"),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","react-relay/ReactRelayContext","@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("react-relay/ReactRelayContext"),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["react-relay/ReactRelayContext"],e["@babel/runtime/helpers/createForOfIteratorHelper"],e["@babel/runtime/helpers/toConsumableArray"],e["fbjs/lib/areEqual"])}(window,(function(e,t,n,r,i,a,o,u,s,l,c){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=25)}([function(t,n){t.exports=e},function(e,n){e.exports=t},function(e,t,n){"use strict";var r=n(3),i=n(0).useContext,a=n(14);e.exports=function(){var e=i(a);return null==e&&r(!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=n},function(e,t){e.exports=r},function(e,t){e.exports=i},function(e,t,n){"use strict";var r=n(4)(n(7)),i=n(3),a=n(0),o=n(1),u=o.Observable,s=o.PreloadableQueryRegistry,l=o.RelayFeatureFlags,c=o.ReplaySubject,f=o.__internal.fetchQueryDeduped,d=o.createOperationDescriptor,p=o.getRequest,h=o.getRequestIdentifier,v=n(5),m=null,y=100001;e.exports={loadQuery:function(e,t,n,o,g){var b,_,R,E,P=null===(b=a.__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!==(R=null==o?void 0:o.__nameForWarning)&&void 0!==R?R:"loadQuery"),y++;var C,k,S,x,q,w,I=null!==(E=null==o?void 0:o.fetchPolicy)&&void 0!==E?E:"store-or-network",F=(0,r.default)((0,r.default)({},null==o?void 0:o.networkCacheConfig),{},{force:!0}),D=!1,N=function(t,n){return D=!0,e.executeWithSource({operation:t,source:n})},A=new c,Q=u.create((function(e){return A.subscribe(e)})),T=null,O=!1,M=function(t){var r;O=!0;var i=new c;if(!0===l.ENABLE_LOAD_QUERY_REQUEST_DEDUPING){var a="raw-network-request-"+h(t,n);r=f(e,a,(function(){return e.getNetwork().execute(t,n,F)}))}else{r=e.getNetwork().execute(t,n,F)}var o=r.subscribe({error:function(e){T=e,i.error(e)},next:function(e){i.next(e)},complete:function(){i.complete()}}).unsubscribe;return k=o,u.create((function(e){var t=i.subscribe(e);return function(){t.unsubscribe(),k()}}))},L=function(t,n){!0===l.ENABLE_LOAD_QUERY_REQUEST_DEDUPING&&(O=!0);var r=f(e,t.request.identifier,n).subscribe({error:function(e){A.error(e)},next:function(e){A.next(e)},complete:function(){A.complete()}});S=r.unsubscribe},U=function(t){var r=d(t,n,F);(C=e.retain(r),"store-only"!==I)&&(("store-or-network"!==I||"available"!==e.check(r).status)&&L(r,(function(){var e=M(t.params);return N(r,e)})))};if("PreloadableConcreteRequest"===t.kind){null===(w=(x=t.params).id)&&i(!1,"Relay: `loadQuery` requires that preloadable query `%s` has a persisted query id",x.name);var j=s.get(w);if(null!=j)U(j);else{var W="store-only"===I?null:M(x),B=s.onLoad(w,(function(t){q();var r=d(t,n,F);C=e.retain(r),null!=W&&L(r,(function(){return N(r,W)}))}));q=B.dispose}}else{var V=p(t);w=null!=(x=V.params).cacheID?x.cacheID:x.id,U(V)}var K=!1,H=!1,G=!1,z=function(){H||(C&&C.dispose(),H=!0)},Y=function(){G||(D?S&&S():k&&k(),q&&q(),G=!0)};return{kind:"PreloadedQuery",environment:e,environmentProviderOptions:g,dispose:function(){K||(z(),Y(),K=!0)},releaseQuery:z,cancelNetworkRequest:Y,fetchKey:y,id:w,get isDisposed(){return K||H},get networkError(){return T},name:x.name,networkCacheConfig:F,fetchPolicy:I,source:O?Q:void 0,variables:n}},useTrackLoadQueryInRender:function(){var e,t;null===m&&(m=null===(e=a.__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=a},function(e,t,n){"use strict";var r=n(0),i=r.useEffect,a=r.useRef;e.exports=function(){var e=a(!0);return i((function(){return e.current=!0,function(){e.current=!1}}),[]),e}},function(e,t,n){"use strict";var r=n(0).createContext({wrapPrepareQueryResource:function(e){return e()}});e.exports=r},function(e,t,n){"use strict";var r=n(17).getFragmentResourceForEnvironment,i=n(2),a=n(0),o=a.useEffect,u=a.useRef,s=a.useState,l=n(1).getFragmentIdentifier,c=n(5);e.exports=function(e,t,n){var a=i(),f=r(a),d=u(!1),p=s(0)[1],h=l(e,t),v=f.readWithIdentifier(e,t,h,n),m=u(!0);function y(){!1!==d.current&&!1!==m.current&&p((function(e){return e+1}))}return o((function(){d.current=!0;var e=f.subscribe(v,y);return function(){d.current=!1,e.dispose()}}),[a,h]),null!=t&&(void 0===v.data||Array.isArray(v.data)&&v.data.length>0&&v.data.every((function(e){return void 0===e})))&&c(!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,n,n),{data:v.data,disableStoreUpdates:function(){m.current=!1},enableStoreUpdates:function(){m.current=!0,f.checkMissedUpdates(v)[0]&&y()}}}},function(e,t){e.exports=o},function(e,t,n){"use strict";var r=n(4),i=r(n(7)),a=r(n(11)),o=n(18),u=n(19),s=n(3),l=n(1),c=l.RelayFeatureFlags,f=l.isPromise,d=n(5),p="function"==typeof WeakMap;function h(e){return void 0!==e.request.node.params.metadata.live}function v(e,t,n,r,i){var a=null!=n?n:"store-or-network",o=null!=r?r:e.UNSTABLE_getDefaultRenderPolicy(),u="".concat(a,"-").concat(o,"-").concat(t.request.identifier);return null!=i?"".concat(u,"-").concat(i):u}function m(e,t){var n={__id:e.fragment.dataID,__fragments:(0,a.default)({},e.fragment.node.name,e.request.variables),__fragmentOwner:e.request};return{cacheIdentifier:t,fragmentNode:e.request.node.fragment,fragmentRef:n,operation:e}}var y=2e5;function g(e,t,n,r,i,a){return c.REFACTOR_SUSPENSE_RESOURCE?function(e,t,n,r,i,a){var o=h(t),s=r,l=i,c=new u((function(e){var n=e.retain(t);return{dispose:function(){o&&null!=l&&l.unsubscribe(),n.dispose(),a(f)}}})),f={cacheIdentifier:e,id:y++,processedPayloadsCount:0,operationAvailability:n,getValue:function(){return s},setValue:function(e){s=e},getRetainCount:function(){return c.getRetainCount()},getNetworkSubscription:function(){return l},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}(e,t,n,r,i,a):function(e,t,n,r,i,a){var o=h(t),u=r,l=0,c=null,f=null,d=i,p=function(e){return 1===++l&&(c=e.retain(t)),{dispose:function(){0===(l=Math.max(0,l-1))&&(null==c&&s(!1,"Relay: Expected disposable to release query to be defined.If you're seeing this, this is likely a bug in Relay."),c.dispose(),c=null),a(v)}}},v={cacheIdentifier:e,id:y++,processedPayloadsCount:0,operationAvailability:n,getValue:function(){return u},setValue:function(e){u=e},getRetainCount:function(){return l},getNetworkSubscription:function(){return d},setNetworkSubscription:function(e){o&&null!=d&&d.unsubscribe(),d=e},temporaryRetain:function(e){if(e.isServer())return{dispose:function(){}};var t=p(e),n=null,r=function(){clearTimeout(n),n=null,f=null,t.dispose(),o&&l<=0&&null!=d&&d.unsubscribe()};return n=setTimeout(r,3e5),null!=f&&f(),f=r,{dispose:function(){f&&f()}}},permanentRetain:function(e){var t=p(e);return null!=f&&(f(),f=null),{dispose:function(){t.dispose(),o&&l<=0&&null!=d&&d.unsubscribe()}}},releaseTemporaryRetain:function(){null!=f&&(f(),f=null)}};return v}(e,t,n,r,i,a)}var b=function(){function e(e){var t=this;(0,a.default)(this,"_clearCacheEntry",(function(e){(c.REFACTOR_SUSPENSE_RESOURCE||e.getRetainCount()<=0)&&t._cache.delete(e.cacheIdentifier)})),this._environment=e,this._cache=o.create(1e3)}var t=e.prototype;return t.prepare=function(e,t,n,r,i,a,o){var u=v(this._environment,e,n,r,a);return this.prepareWithIdentifier(u,e,t,n,r,i,o)},t.prepareWithIdentifier=function(e,t,n,r,a,o,u){var s=this._environment,l=null!=r?r:"store-or-network",c=null!=a?a:s.UNSTABLE_getDefaultRenderPolicy(),d=this._cache.get(e),p=null,h=null!=d;null==d&&(d=this._fetchAndSaveQuery(e,t,n,l,c,u,(0,i.default)((0,i.default)({},o),{},{unsubscribe:function(e){null!=p&&p.dispose();var t=null==o?void 0:o.unsubscribe;t&&t(e)}}))),p=d.temporaryRetain(s);var v=d.getValue();if(f(v))throw s.__log({name:"suspense.query",fetchPolicy:l,isPromiseCached:h,operation:t,queryAvailability:d.operationAvailability,renderPolicy:c}),v;if(v instanceof Error)throw v;return v},t.retain=function(e,t){var n=this._environment,r=e.cacheIdentifier,i=e.operation,a=this._getOrCreateCacheEntry(r,i,null,e,null),o=a.permanentRetain(n);return n.__log({name:"queryresource.retain",profilerContext:t,resourceID:a.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,n,r){var i=v(this._environment,e,t,n,r);return this._cache.get(i)},t._getOrCreateCacheEntry=function(e,t,n,r,i){var a=this._cache.get(e);return null==a&&(a=g(e,t,n,r,i,this._clearCacheEntry),this._cache.set(e,a)),a},t._fetchAndSaveQuery=function(e,t,n,r,a,o,u){var l,c,f=this,p=this._environment,v=p.check(t),y=v.status,b="available"===y,_=b||"partial"===a&&"stale"!==y,R=function(){};switch(r){case"store-only":l=!1,c=!0;break;case"store-or-network":l=!b,c=_;break;case"store-and-network":l=!0,c=_;break;case"network-only":default:l=!0,c=!1}if(c){var E=m(t,e),P=g(e,t,v,E,null,this._clearCacheEntry);this._cache.set(e,P)}if(l){var C,k=m(t,e);n.subscribe({start:function(n){C=n;var r=f._cache.get(e);r&&r.setNetworkSubscription(C);var a=null==u?void 0:u.start;a&&a((0,i.default)((0,i.default)({},n),{},{unsubscribe:function(){h(t)&&n.unsubscribe()}}))},next:function(){var n=f._getOrCreateCacheEntry(e,t,v,k,C);n.processedPayloadsCount+=1,n.setValue(k),R();var r=null==u?void 0:u.next;null!=r&&r(p.lookup(t.fragment))},error:function(n){var r=f._getOrCreateCacheEntry(e,t,v,n,C);0===r.processedPayloadsCount?r.setValue(n):d(!1,"QueryResource: An incremental payload for query `%` returned an error: `%`:`%`.",t.fragment.node.name,n.message,n.stack),R(),C=null,r.setNetworkSubscription(null);var i=null==u?void 0:u.error;i&&i(n)},complete:function(){R(),C=null;var t=f._cache.get(e);t&&t.setNetworkSubscription(null);var n=null==u?void 0:u.complete;n&&n()},unsubscribe:null==u?void 0:u.unsubscribe});var S=this._cache.get(e);if(!S){var x=new Promise((function(e){R=e}));x.displayName="Relay("+t.fragment.node.name+")",S=g(e,t,v,x,C,this._clearCacheEntry),this._cache.set(e,S)}}else{var q=null==u?void 0:u.complete;q&&q()}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:t,profilerContext:o,fetchPolicy:r,renderPolicy:a,queryAvailability:v,shouldFetch:l}),w},e}();function _(e){return new b(e)}var R=p?new WeakMap:new Map;e.exports={createQueryResource:_,getQueryResourceForEnvironment:function(e){var t=R.get(e);if(t)return t;var n=_(e);return R.set(e,n),n},getQueryCacheIdentifier:v}},function(e,t,n){"use strict";var r=n(0).useRef,i=n(5);e.exports=function(e,t){var n=r(e.name);i(n.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){e.exports=u},function(e,t,n){"use strict";var r=n(6).loadQuery;e.exports=function e(t,n,i){var a=null;null==n.root.getModuleIfRequired()&&(a=n.root.load());var o=n.getPreloadProps(i),u=o.queries,s=o.entryPoints,l=o.extraProps,c={},f={};null!=u&&Object.keys(u).forEach((function(e){var n=u[e],i=n.environmentProviderOptions,a=n.options,o=n.parameters,s=n.variables,l=t.getEnvironment(i);c[e]=r(l,o,s,{fetchPolicy:null==a?void 0:a.fetchPolicy,networkCacheConfig:null==a?void 0:a.networkCacheConfig,__nameForWarning:"loadEntryPoint"},i)})),null!=s&&Object.keys(s).forEach((function(n){var r=s[n];if(null!=r){var i=r.entryPoint,a=r.entryPointParams;f[n]=e(t,i,a)}}));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=n.root.getModuleIfRequired();if(null==t)throw a=null!==(e=a)&&void 0!==e?e:n.root.load();return t},get isDisposed(){return d},queries:c,rootModuleID:n.root.getModuleId()}}},function(e,t){e.exports=s},function(e,t,n){"use strict";var r=n(4),i=r(n(7)),a=r(n(11)),o=r(n(30)),u=n(18),s=n(12).getQueryResourceForEnvironment,l=n(19),c=n(3),f=n(1),d=f.RelayFeatureFlags,p=f.__internal,h=p.fetchQuery,v=p.getPromiseForActiveRequest,m=f.createOperationDescriptor,y=f.getFragmentIdentifier,g=f.getPendingOperationsForFragment,b=f.getSelector,_=f.getVariablesFromFragment,R=f.isPromise,E=f.recycleNodesInto,P=f.reportMissingRequiredFields,C="function"==typeof WeakMap,k=Object.freeze([]);function S(e){return Array.isArray(e)?e.some((function(e){return e.isMissingData})):e.isMissingData}function x(e,t,n){return Array.isArray(t)?{cacheKey:e,snapshot:t,data:t.map((function(e){return e.data})),isMissingData:S(t),storeEpoch:n}:{cacheKey:e,snapshot:t,data:t.data,isMissingData:S(t),storeEpoch:n}}var q=function(){function e(e){(0,a.default)(this,"_cache",new Map),(0,a.default)(this,"_retainCounts",new Map),this._environment=e}var t=e.prototype;return t.get=function(e){var t,n;return null!==(t=null===(n=this._cache.get(e))||void 0===n?void 0:n[0])&&void 0!==t?t:void 0},t.recordQueryResults=function(e,t){var n=this,r=this._cache.get(e);if(r){var i=r[0],a=r[1];t.forEach((function(e){i.push(e)})),a.temporaryRetain(this._environment)}else{var o=new l((function(){return n._retain(e)}));this._cache.set(e,[t,o]),o.temporaryRetain(this._environment)}},t._retain=function(e){var t,n=this,r=(null!==(t=this._retainCounts.get(e))&&void 0!==t?t:0)+1;return this._retainCounts.set(e,r),{dispose:function(){var t,r=(null!==(t=n._retainCounts.get(e))&&void 0!==t?t:0)-1;r>0?n._retainCounts.set(e,r):(n._retainCounts.delete(e),n._cache.delete(e))}}},e}(),w=function(){function e(e){this._environment=e,this._cache=u.create(1e6),d.ENABLE_CLIENT_EDGES&&(this._clientEdgeQueryResultsCache=new q(e))}var t=e.prototype;return t.read=function(e,t,n,r){return this.readWithIdentifier(e,t,y(e,t),n,r)},t.readWithIdentifier=function(e,t,n,r,i){var a,u,l=this,f=this._environment;if(null==t)return{cacheKey:n,data:null,isMissingData:!1,snapshot:null,storeEpoch:0};var p=f.getStore().getEpoch();if(!0===(null==e||null===(a=e.metadata)||void 0===a?void 0:a.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!=i?" for key `".concat(i,"`"):"",e.name,typeof t,e.name),0===t.length))return{cacheKey:n,data:k,isMissingData:!1,snapshot:k,storeEpoch:p};var h=this._cache.get(n);if(null!=h){if("pending"===h.kind&&R(h.promise))throw f.__log({name:"suspense.fragment",data:h.result.data,fragment:e,isRelayHooks:!0,isMissingData:h.result.isMissingData,isPromiseCached:!0,pendingOperations:h.pendingOperations}),h.promise;if("done"===h.kind&&h.result.snapshot)return this._reportMissingRequiredFieldsInSnapshot(h.result.snapshot),h.result}var m=b(e,t);null==m&&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,r,e.name,null==i?"a fragment reference":"the `".concat(i,"`"),r);var y="PluralReaderSelector"===m.kind?m.selectors.map((function(e){return f.lookup(e)})):f.lookup(m),g=x(n,y,p);if(!g.isMissingData)return this._reportMissingRequiredFieldsInSnapshot(y),this._cache.set(n,{kind:"done",result:g}),g;var _=null;if(d.ENABLE_CLIENT_EDGES&&function(e){var t,n;return Array.isArray(e)?e.some((function(e){var t,n;return(null!==(t=null===(n=e.missingClientEdges)||void 0===n?void 0:n.length)&&void 0!==t?t:0)>0})):(null!==(t=null===(n=e.missingClientEdges)||void 0===n?void 0:n.length)&&void 0!==t?t:0)>0}(y)){_=[];var E=s(this._environment),P=[];!function(e,t){Array.isArray(e)?e.forEach(t):t(e)}(y,(function(n){var r;null===(r=n.missingClientEdges)||void 0===r||r.forEach((function(n){var r,i=n.request,a=n.clientEdgeDestinationID,o=l._performClientEdgeQuery(E,e,t,i,a),u=o.queryResult,s=o.requestDescriptor;P.push(u),null===(r=_)||void 0===r||r.push(s)}))})),null==this._clientEdgeQueryResultsCache&&c(!1,"Client edge query result cache should exist when ENABLE_CLIENT_EDGES is on."),this._clientEdgeQueryResultsCache.recordQueryResults(n,P)}var C=null;d.ENABLE_CLIENT_EDGES&&_&&(C=_.map((function(e){return v(l._environment,e)})).filter((function(e){return null!=e})));var S,q,w,I="PluralReaderSelector"===m.kind?m.selectors[0].owner:m.owner,F=this._getAndSavePromiseForFragmentRequestInFlight(n,e,I,g),D=null==F?void 0:F.promise;if((null===(u=C)||void 0===u?void 0:u.length)||R(D))throw f.__log({name:"suspense.fragment",data:g.data,fragment:e,isRelayHooks:!0,isPromiseCached:!1,isMissingData:g.isMissingData,pendingOperations:[].concat((0,o.default)(null!==(S=null==F?void 0:F.pendingOperations)&&void 0!==S?S:[]),(0,o.default)(null!==(q=_)&&void 0!==q?q:[]))}),(null===(w=C)||void 0===w?void 0:w.length)?Promise.all([D].concat((0,o.default)(C))):D;return this._reportMissingRequiredFieldsInSnapshot(y),x(n,y,p)},t._performClientEdgeQuery=function(e,t,n,r,a){var o=_(t,n),u=(0,i.default)((0,i.default)({},o),{},{id:a}),s=m(r,u,{}),l=h(this._environment,s),c=e.prepare(s,l);return{requestDescriptor:s.request,queryResult:c}},t._reportMissingRequiredFieldsInSnapshot=function(e){var t=this;Array.isArray(e)?e.forEach((function(e){null!=e.missingRequiredFields&&P(t._environment,e.missingRequiredFields)})):null!=e.missingRequiredFields&&P(this._environment,e.missingRequiredFields)},t.readSpec=function(e,t,n){var r={};for(var i in e)r[i]=this.read(e[i],t[i],n,i);return r},t.subscribe=function(e,t){var n=this,r=this._environment,i=e.cacheKey,a=e.snapshot;if(!a)return{dispose:function(){}};var o=this.checkMissedUpdates(e),u=o[0],l=o[1];u&&t();var f=[];if(Array.isArray(a)?(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,a){f.push(r.subscribe(e,(function(e){var o=r.getStore().getEpoch();n._updatePluralSnapshot(i,l,e,a,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(r.subscribe(l,(function(e){var a=r.getStore().getEpoch();n._cache.set(i,{kind:"done",result:x(i,e,a)}),t()})))),d.ENABLE_CLIENT_EDGES){var p,h,v=null!==(p=null===(h=this._clientEdgeQueryResultsCache)||void 0===h?void 0:h.get(i))&&void 0!==p?p:void 0;if(null==v?void 0:v.length){var m=s(this._environment);v.forEach((function(e){f.push(m.retain(e))}))}}return{dispose:function(){f.forEach((function(e){return e.dispose()})),n._cache.delete(i)}}},t.subscribeSpec=function(e,t){var n=this,r=Object.keys(e).map((function(r){return n.subscribe(e[r],t)}));return{dispose:function(){r.forEach((function(e){e.dispose()}))}}},t.checkMissedUpdates=function(e){var t=this._environment,n=e.snapshot;if(!n)return[!1,null];var r;if(r=t.getStore().getEpoch(),e.storeEpoch===r)return[!1,e.snapshot];var a=e.cacheKey;if(Array.isArray(n)){var o=!1,u=[];return n.forEach((function(e,n){var r=t.lookup(e.selector),a=e.data,s=r.data,l=E(a,s);l!==a&&(r=(0,i.default)((0,i.default)({},r),{},{data:l}),o=!0),u[n]=r})),o&&this._cache.set(a,{kind:"done",result:x(a,u,r)}),[o,u]}var s=t.lookup(n.selector),l=n.data,c=s.data,f=E(l,c),d={data:f,isMissingData:s.isMissingData,missingClientEdges:s.missingClientEdges,seenRecords:s.seenRecords,selector:s.selector,missingRequiredFields:s.missingRequiredFields};return f!==l&&this._cache.set(a,{kind:"done",result:x(a,d,r)}),[f!==l,d]},t.checkMissedUpdatesSpec=function(e){var t=this;return Object.keys(e).some((function(n){return t.checkMissedUpdates(e[n])[0]}))},t._getAndSavePromiseForFragmentRequestInFlight=function(e,t,n,r){var i=this,a=g(this._environment,t,n);if(null==a)return null;var o=a.promise,u=a.pendingOperations,s=o.then((function(){i._cache.delete(e)})).catch((function(t){i._cache.delete(e)}));return s.displayName=o.displayName,this._cache.set(e,{kind:"pending",pendingOperations:u,promise:s,result:r}),{promise:s,pendingOperations:u}},t._updatePluralSnapshot=function(e,t,n,r,i){var a,u=this._cache.get(e);if(R(u))I(n.selector.node.name);else{var s=null==u||null===(a=u.result)||void 0===a?void 0:a.snapshot;if(!s||Array.isArray(s)){var l=s?(0,o.default)(s):(0,o.default)(t);l[r]=n,this._cache.set(e,{kind:"done",result:x(e,l,i)})}else I(n.selector.node.name)}},e}();function I(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 F(e){return new w(e)}var D=C?new WeakMap:new Map;e.exports={createFragmentResource:F,getFragmentResourceForEnvironment:function(e){var t=D.get(e);if(t)return t;var n=F(e);return D.set(e,n),n}}},function(e,t,n){"use strict";var r=n(3),i=function(){function e(e){this._capacity=e,this._capacity>0||r(!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 n=this._map.keys().next();n.done||this._map.delete(n.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 i(e)}}},function(e,t,n){"use strict";var r=n(4)(n(11)),i=n(3),a=function(){function e(e){var t=this;(0,r.default)(this,"_retainCount",0),(0,r.default)(this,"_retainDisposable",null),(0,r.default)(this,"_releaseTemporaryRetain",null),this._retain=function(n){return t._retainCount++,1===t._retainCount&&(t._retainDisposable=e(n)),{dispose:function(){t._retainCount=Math.max(0,t._retainCount-1),0===t._retainCount&&(null==t._retainDisposable&&i(!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,n=this;if(e.isServer())return{dispose:function(){}};var r=this._retain(e),i=null,a=function(){clearTimeout(i),i=null,n._releaseTemporaryRetain=null,r.dispose()};return i=setTimeout(a,3e5),null===(t=this._releaseTemporaryRetain)||void 0===t||t.call(this),this._releaseTemporaryRetain=a,{dispose:function(){var e;null===(e=n._releaseTemporaryRetain)||void 0===e||e.call(n)}}},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=a},function(e,t,n){"use strict";var r=n(9),i=n(12),a=i.getQueryCacheIdentifier,o=i.getQueryResourceForEnvironment,u=n(21),s=n(10),l=n(2),c=n(0),f=c.useContext,d=c.useEffect,p=c.useState,h=c.useRef;e.exports=function(e){var t=e.query,n=e.componentDisplayName,i=e.fetchObservable,c=e.fetchPolicy,v=e.fetchKey,m=e.renderPolicy,y=l(),g=f(r),b=o(y),_=p(0),R=_[0],E=_[1],P=u(),C=P.startFetch,k=P.completeFetch,S="".concat(R,"-").concat(null!=v?v:""),x=a(y,t,c,m,S),q=g.wrapPrepareQueryResource((function(){return b.prepareWithIdentifier(x,t,i,c,m,{start:C,complete:k,error:k},g)})),w=h(!1);d((function(){return function(){w.current=!0}}),[]),d((function(){if(!0===w.current)return w.current=!1,void E((function(e){return e+1}));var e=b.retain(q,g);return function(){e.dispose()}}),[y,x]),d((function(){b.releaseTemporaryRetain(q)}));var I=q.fragmentNode,F=q.fragmentRef;return s(I,F,n).data}},function(e,t,n){"use strict";var r=n(0),i=r.useCallback,a=r.useEffect,o=r.useRef;e.exports=function(){var e=o(null),t=o(!1),n=i((function(){null!=e.current&&(e.current.unsubscribe(),e.current=null),t.current=!1}),[]),r=i((function(n){e.current=n,t.current=!0}),[]),u=i((function(){e.current=null,t.current=!1}),[]);return a((function(){return n}),[n]),{isFetchingRef:t,startFetch:r,disposeFetch:n,completeFetch:u}}},function(e,t,n){"use strict";var r=n(32),i=n(0),a=n(1),o=a.createOperationDescriptor,u=a.getRequest,s=i.useMemo;e.exports=function(e,t,n){var i=r(t)[0],a=r(n||{})[0];return s((function(){return o(u(e),i,a)}),[e,i,a])}},function(e,t,n){"use strict";var r,i=n(4)(n(7)),a=n(17).getFragmentResourceForEnvironment,o=n(9),u=n(12).getQueryResourceForEnvironment,s=n(10),l=n(8),c=n(24),f=n(2),d=n(3),p=n(0),h=p.useCallback,v=p.useContext,m=p.useReducer,y=n(1),g=y.__internal.fetchQuery,b=y.createOperationDescriptor,_=y.getFragmentIdentifier,R=y.getRefetchMetadata,E=y.getSelector,P=y.getValueAtPath,C=n(5);function k(e,t){switch(t.type){case"refetch":var n;return(0,i.default)((0,i.default)({},e),{},{fetchPolicy:t.fetchPolicy,mirroredEnvironment:null!==(n=t.refetchEnvironment)&&void 0!==n?n: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")}}r={getInitialIDAndType:function(e,t,r){var i=n(1).Record,a=null==e?void 0:e.id;if(1!==t.length||"node"!==t[0]||null==a)return null;var o=r.getStore().getSource().get(a),u=o&&i.getType(o);return null==u?null:{id:a,typename:u}},checkSameTypeAfterRefetch:function(e,t,r,i){var a=n(1).Record;if(e){var o=t.getStore().getSource().get(e.id),u=o&&a.getType(o);u!==e.typename&&C(!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,r.name,i)}},checkSameIDAfterRefetch:function(e,t,r,i){if(null!=e){var a=t[n(1).ID_KEY];null!=a&&a!==e.id&&C(!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.",a,e.id,r.name,i)}}},e.exports=function(e,t,n){var p=f(),y=R(e,n),S=y.refetchableRequest,x=y.fragmentRefPathInResponse,q=y.identifierField,w=_(e,t),I=m(k,{fetchPolicy:void 0,mirroredEnvironment:p,mirroredFragmentIdentifier:w,onComplete:void 0,refetchEnvironment:null,refetchQuery:null,renderPolicy:void 0}),F=I[0],D=I[1],N=F.fetchPolicy,A=F.mirroredEnvironment,Q=F.mirroredFragmentIdentifier,T=F.onComplete,O=F.refetchEnvironment,M=F.refetchQuery,L=F.renderPolicy,U=null!=O?O:p,j=u(U),W=a(U),B=v(o),V=U!==A||w!==Q,K=c(S),H=K[0],G=K[1],z=K[2],Y=t;if(V)D({type:"reset",environment:U,fragmentIdentifier:w}),z();else if(null!=M&&null!=H){var X;X=r.getInitialIDAndType(M.request.variables,x,U);var J=function(e){T&&T(null!=e?e:null)},Z=null!=H.source?H.source:g(U,M),$=B.wrapPrepareQueryResource((function(){return j.prepare(M,Z,N,L,{error:J,complete:function(){r.checkSameTypeAfterRefetch(X,U,e,n),J()}},H.fetchKey,B)})),ee=W.read($.fragmentNode,$.fragmentRef,n).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."),Y=P(ee,x),r.checkSameIDAfterRefetch(X,Y,e,n)}var te=s(e,Y,n),ne=te.data,re=te.disableStoreUpdates,ie=te.enableStoreUpdates;return{fragmentData:ne,fragmentRef:Y,refetch:function(e,t,n,r,a,o,u,s,c,f,d){var p=l(),v=null!=s&&null!=r&&"object"==typeof r?r[s]:null;return h((function(r,a){if(!0!==p.current)return C(!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&&C(!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==a?void 0:a.__environment,m=null==a?void 0:a.fetchPolicy,y=null==a?void 0:a.UNSTABLE_renderPolicy,g=null==a?void 0:a.onComplete,_=E(o,f);if(null==_)u={},l={};else if("PluralReaderSelector"===_.kind){var R,P,k,S;u=null!==(R=null===(P=_.selectors[0])||void 0===P?void 0:P.owner.variables)&&void 0!==R?R:{},l=null!==(k=null===(S=_.selectors[0])||void 0===S?void 0:S.variables)&&void 0!==k?k:{}}else u=_.owner.variables,l=_.variables;var x=(0,i.default)((0,i.default)((0,i.default)({},u),l),r);null==s||r.hasOwnProperty("id")||("string"!=typeof v&&C(!1,"Relay: Expected result to have a string `%s` in order to refetch, got `%s`.",s,v),x.id=v);var q=b(d,x,{force:!0});return c(q.request.variables,{fetchPolicy:m,__environment:h,__nameForWarning:"refetch"}),t({type:"refetch",fetchPolicy:m,onComplete:g,refetchEnvironment:h,refetchQuery:q,renderPolicy:y}),{dispose:n}}),[a,t,n,v,c])}(n,D,z,ne,w,e,0,q,G,t,S),disableStoreUpdates:re,enableStoreUpdates:ie}}},function(e,t,n){"use strict";var r=n(4)(n(16)),i=n(6),a=i.loadQuery,o=i.useTrackLoadQueryInRender,u=n(8),s=n(2),l=n(0),c=l.useCallback,f=l.useEffect,d=l.useRef,p=l.useState,h=n(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 n=null!=t?t:v,i=s();o();var l=u(),h=d(new Set([n])),y=p((function(){return n})),g=y[0],b=y[1],_=p((function(){return n})),R=_[0],E=_[1];n!==R&&(h.current.add(n),E(n),b(n));var P=c((function(){l.current&&(h.current.add(v),b(v))}),[l]),C=c((function(t,n){var r=null!=n&&n.hasOwnProperty("__environment")?{fetchPolicy:n.fetchPolicy,networkCacheConfig:n.networkCacheConfig,__nameForWarning:n.__nameForWarning}:n;if(l.current){var o,u=a(null!==(o=null==n?void 0:n.__environment)&&void 0!==o?o:i,e,t,r);h.current.add(u),b(u)}}),[i,e,b,l]),k=d(!1);return f((function(){return function(){k.current=!0}}),[]),f((function(){if(!0===k.current)return k.current=!1,void("NullQueryReference"!==g.kind&&C(g.variables,{fetchPolicy:g.fetchPolicy,networkCacheConfig:g.networkCacheConfig}));var t=h.current;if(l.current){var n,i=(0,r.default)(t);try{for(i.s();!(n=i.n()).done;){var a=n.value;if(a===g)break;t.delete(a),"NullQueryReference"!==a.kind&&(m(e)?a.dispose&&a.dispose():a.releaseQuery&&a.releaseQuery())}}catch(e){i.e(e)}finally{i.f()}}}),[g,l,C,e]),f((function(){return function(){var t,n=(0,r.default)(h.current);try{for(n.s();!(t=n.n()).done;){var i=t.value;"NullQueryReference"!==i.kind&&(m(e)?i.dispose&&i.dispose():i.releaseQuery&&i.releaseQuery())}}catch(e){n.e(e)}finally{n.f()}}}),[e]),["NullQueryReference"===g.kind?null:g,C,P]}},function(e,t,n){"use strict";var r=n(26),i=n(15),a=n(6).loadQuery,o=n(27),u=n(28),s=n(29),l=n(31),c=n(34),f=n(35),d=n(38),p=n(24),h=n(39),v=n(2),m=n(40),y=n(41),g=n(1);e.exports={ConnectionHandler:g.ConnectionHandler,applyOptimisticMutation:g.applyOptimisticMutation,commitLocalUpdate:g.commitLocalUpdate,commitMutation:g.commitMutation,graphql:g.graphql,readInlineData:g.readInlineData,requestSubscription:g.requestSubscription,EntryPointContainer:r,RelayEnvironmentProvider:o,fetchQuery:g.fetchQuery,loadQuery:a,loadEntryPoint:i,useFragment:s,useLazyLoadQuery:l,useEntryPointLoader:u,useQueryLoader:p,useMutation:c,usePaginationFragment:f,usePreloadedQuery:d,useRefetchableFragment:h,useRelayEnvironment:v,useSubscribeToInvalidationState:m,useSubscription:y}},function(e,t,n){"use strict";var r=n(9),i=n(2),a=n(0),o=n(0),u=o.useContext,s=o.useEffect,l=n(5);e.exports=function(e){var t=e.entryPointReference,n=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(r),m=i();return s((function(){m.__log({name:"entrypoint.root.consume",profilerContext:v,rootModuleID:p})}),[m,v,p]),a.createElement(h,{entryPoints:f,extraProps:d,props:n,queries:c})}},function(e,t,n){"use strict";var r=n(0),i=n(14),a=r.useMemo;e.exports=function(e){var t=e.children,n=e.environment,o=e.getEnvironmentForActor,u=a((function(){return{environment:n,getEnvironmentForActor:o}}),[n,o]);return r.createElement(i.Provider,{value:u},t)}},function(e,t,n){"use strict";var r=n(4)(n(16)),i=n(15),a=n(6).useTrackLoadQueryInRender,o=n(8),u=n(0),s=u.useCallback,l=u.useEffect,c=u.useRef,f=u.useState,d={kind:"NullEntryPointReference"};e.exports=function(e,t,n){var u,p,h,v;a();var m=null!==(u=null==n||null===(p=n.TEST_ONLY__initialEntryPointData)||void 0===p?void 0:p.entryPointReference)&&void 0!==u?u:d,y=null!==(h=null==n||null===(v=n.TEST_ONLY__initialEntryPointData)||void 0===v?void 0:v.entryPointParams)&&void 0!==h?h:null,g=o(),b=c(new Set([m])),_=f(m),R=_[0],E=_[1],P=f(y),C=P[0],k=P[1],S=s((function(){if(g.current){var e={kind:"NullEntryPointReference"};b.current.add(e),E(e)}}),[E,g]),x=s((function(n){if(g.current){var r=i(e,t,n);b.current.add(r),E(r),k(n)}}),[e,t,E,g]),q=c(!1);return l((function(){return function(){q.current=!0}}),[]),l((function(){if(!0===q.current)return q.current=!1,void("NullEntryPointReference"!==R.kind&&null!=C&&x(C));var e=b.current;if(g.current){var t,n=(0,r.default)(e);try{for(n.s();!(t=n.n()).done;){var i=t.value;if(i===R)break;e.delete(i),"NullEntryPointReference"!==i.kind&&i.dispose()}}catch(e){n.e(e)}finally{n.f()}}}),[R,C,x,g]),l((function(){return function(){var e,t=(0,r.default)(b.current);try{for(t.s();!(e=t.n()).done;){var n=e.value;"NullEntryPointReference"!==n.kind&&n.dispose()}}catch(e){t.e(e)}finally{t.f()}}}),[]),["NullEntryPointReference"===R.kind?null:R,x,S]}},function(e,t,n){"use strict";var r=n(6).useTrackLoadQueryInRender,i=n(10),a=n(13),o=n(0).useDebugValue,u=n(1).getFragment;e.exports=function(e,t){r();var n=u(e);a(n,"first argument of useFragment()");var s=i(n,t,"useFragment()").data;return o({fragment:n.name,data:s}),s}},function(e,t){e.exports=l},function(e,t,n){"use strict";var r=n(6).useTrackLoadQueryInRender,i=n(20),a=n(22),o=n(2),u=n(1).__internal.fetchQuery;e.exports=function(e,t,n){r();var s=o(),l=a(e,t,n&&n.networkCacheConfig?n.networkCacheConfig:{force:!0});return i({componentDisplayName:"useLazyLoadQuery()",fetchKey:null==n?void 0:n.fetchKey,fetchObservable:u(s,l),fetchPolicy:null==n?void 0:n.fetchPolicy,query:l,renderPolicy:null==n?void 0:n.UNSTABLE_renderPolicy})}},function(e,t,n){"use strict";var r=n(33),i=n(0),a=i.useMemo,o=i.useRef,u=i.useState;e.exports=function(e){var t,n,i=o(0),s=u(e),l=s[0],c=s[1];return r(e,l)||(i.current=(null!==(n=i.current)&&void 0!==n?n:0)+1,c(e)),[a((function(){return e}),[i.current]),null!==(t=i.current)&&void 0!==t?t:0]}},function(e,t){e.exports=c},function(e,t,n){"use strict";var r=n(4)(n(7)),i=n(8),a=n(2),o=n(0),u=n(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,n=a(),o=i(),d=c(n),p=c(e),h=c(new Set),v=s(!1),m=v[0],y=v[1],g=f((function(t){d.current===n&&p.current===e&&(h.current.delete(t),o.current&&y(h.current.size>0))}),[n,o,e]);l((function(){d.current===n&&p.current===e||(h.current=new Set,o.current&&y(!1),d.current=n,p.current=e)}),[n,o,e]);var b=f((function(i){var a=t(n,(0,r.default)((0,r.default)({},i),{},{mutation:e,onCompleted:function(e,t){var n;g(a),null===(n=i.onCompleted)||void 0===n||n.call(i,e,t)},onError:function(e){var t;g(a),null===(t=i.onError)||void 0===t||t.call(i,e)},onUnsubscribe:function(){var e;g(a),null===(e=i.onUnsubscribe)||void 0===e||e.call(i)},onNext:function(){var e;null===(e=i.onNext)||void 0===e||e.call(i)}}));return h.current.add(a),o.current&&y(!0),a}),[g,t,n,o,e]);return[b,m]}},function(e,t,n){"use strict";var r=n(4)(n(7)),i=n(36),a=n(23),o=n(13),u=n(0),s=u.useCallback,l=u.useDebugValue,c=u.useState,f=n(1),d=f.getFragment,p=f.getFragmentIdentifier,h=f.getPaginationMetadata;function v(e){var t=c(!1),n=t[0],a=t[1],o={start:function(){return a(!0)},complete:function(){return a(!1)},error:function(){return a(!1)}},u=i((0,r.default)((0,r.default)({},e),{},{observer:o,onReset:function(){return a(!1)}}));return[u[0],u[1],n,u[2]]}e.exports=function(e,t){var n=d(e);o(n,"first argument of usePaginationFragment()");var i=h(n,"usePaginationFragment()"),u=i.connectionPathInFragmentData,c=i.paginationRequest,f=i.paginationMetadata,m=i.identifierField,y=a(n,t,"usePaginationFragment()"),g=y.fragmentData,b=y.fragmentRef,_=y.refetch,R=p(n,b),E=v({componentDisplayName:"usePaginationFragment()",connectionPathInFragmentData:u,direction:"backward",fragmentData:g,fragmentIdentifier:R,fragmentNode:n,fragmentRef:b,identifierField:m,paginationMetadata:f,paginationRequest:c}),P=E[0],C=E[1],k=E[2],S=E[3],x=v({componentDisplayName:"usePaginationFragment()",connectionPathInFragmentData:u,direction:"forward",fragmentData:g,fragmentIdentifier:R,fragmentNode:n,fragmentRef:b,identifierField:m,paginationMetadata:f,paginationRequest:c}),q=x[0],w=x[1],I=x[2],F=x[3],D=s((function(e,t){return F(),S(),_(e,(0,r.default)((0,r.default)({},t),{},{__environment:void 0}))}),[F,S,_]);return l({fragment:n.name,data:g,hasNext:w,isLoadingNext:I,hasPrevious:C,isLoadingPrevious:k}),{data:g,loadNext:q,loadPrevious:P,hasNext:w,hasPrevious:C,isLoadingNext:I,isLoadingPrevious:k,refetch:D}}},function(e,t,n){"use strict";var r=n(4)(n(7)),i=n(21),a=n(8),o=n(37),u=n(2),s=n(3),l=n(0),c=l.useCallback,f=l.useEffect,d=l.useState,p=n(1),h=p.ConnectionInterface,v=p.__internal.fetchQuery,m=p.createOperationDescriptor,y=p.getPaginationVariables,g=p.getSelector,b=p.getValueAtPath,_=n(5);e.exports=function(e){var t=e.direction,n=e.fragmentNode,l=e.fragmentRef,p=e.fragmentIdentifier,R=e.fragmentData,E=e.connectionPathInFragmentData,P=e.paginationRequest,C=e.paginationMetadata,k=e.componentDisplayName,S=e.observer,x=e.onReset,q=e.identifierField,w=u(),I=i(),F=I.isFetchingRef,D=I.startFetch,N=I.disposeFetch,A=I.completeFetch,Q=null!=q&&null!=R&&"object"==typeof R?R[q]:null,T=a(),O=d(w),M=O[0],L=O[1],U=d(p),j=U[0],W=U[1],B=o(n,l);(w!==M||p!==j)&&(N(),x(),L(w),W(p));var V=function(e,t,n,r){var i,a,o=h.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,v=b(n,r);if(null==v)return{cursor:null,hasMore:!1};"object"!=typeof v&&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,v);var m=v[u],y=v[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,_="forward"===e?null!==(i=y[d])&&void 0!==i?i:null:null!==(a=y[p])&&void 0!==a?a:null;null!==_&&"string"!=typeof _&&s(!1,"Relay: Expected page info for connection in fragment `%s` to have a valid `%s`. Instead got `%s`.",t.name,p,_),g="forward"===e?null!=_&&!0===y[c]:null!=_&&!0===y[f];return{cursor:_,hasMore:g}}(t,n,R,E),K=V.cursor,H=V.hasMore;return f((function(){return function(){N()}}),[N]),[c((function(e,i){var a=null==i?void 0:i.onComplete;if(!0!==T.current)return _(!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.",n.name,k),{dispose:function(){}};var o=g(n,l);if(!0===F.current||null==R||B)return null==o&&_(!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.",n.name,k,k),a&&a(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.",n.name,k);var u=o.owner.variables,c=o.variables,f=null==i?void 0:i.UNSTABLE_extraVariables,d=(0,r.default)((0,r.default)({},u),c),p=y(t,e,K,d,(0,r.default)({},f),C);null!=q&&("string"!=typeof Q&&_(!1,"Relay: Expected result to have a string `%s` in order to refetch, got `%s`.",q,Q),p.id=Q);var h=m(P,p,{force:!0});return v(w,h).subscribe((0,r.default)((0,r.default)({},S),{},{start:function(e){D(e),S.start&&S.start(e)},complete:function(){A(),S.complete&&S.complete(),a&&a(null)},error:function(e){A(),S.error&&S.error(e),a&&a(e)}})),{dispose:N}}),[w,Q,t,K,D,N,A,F,B,R,n.name,l,k]),H,N]}},function(e,t,n){"use strict";var r=n(2),i=n(3),a=n(0),o=n(1),u=o.__internal.getObservableForActiveRequest,s=o.getSelector,l=a.useEffect,c=a.useState,f=a.useMemo;e.exports=function(e,t){var n=r(),a=f((function(){var r=s(e,t);return null==r?null:("SingularReaderSelector"!==r.kind&&i(!1,"useIsOperationNodeActive: Plural fragments are not supported."),u(n,r.owner))}),[n,e,t]),o=c(null!=a),d=o[0],p=o[1];return l((function(){var e;if(p(null!=a),null!=a){var t=function(){p(!1)};e=a.subscribe({complete:t,error:t})}return function(){e&&e.unsubscribe()}}),[a]),d}},function(e,t,n){"use strict";var r=n(6).useTrackLoadQueryInRender,i=n(20),a=n(22),o=n(2),u=n(3),s=n(0).useDebugValue,l=n(1).__internal,c=l.fetchQueryDeduped,f=l.fetchQuery,d=n(5);e.exports=function(e,t,n){r();var l,p=o(),h=t.fetchKey,v=t.fetchPolicy,m=t.source,y=t.variables,g=t.networkCacheConfig,b=a(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==n?void 0:n.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 _,R=f(p,b);null!=m&&p===t.environment?_=m.ifEmpty(R):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."),_=R):_=R,l={componentDisplayName:"usePreloadedQuery()",fetchObservable:_,fetchKey:h,fetchPolicy:v,query:b,renderPolicy:null==n?void 0:n.UNSTABLE_renderPolicy}}var E=i(l);return s({query:t.name,variables:t.variables,data:E,fetchKey:h,fetchPolicy:v,renderPolicy:null==n?void 0:n.UNSTABLE_renderPolicy}),E}},function(e,t,n){"use strict";var r=n(23),i=n(13),a=n(0).useDebugValue,o=n(1).getFragment;e.exports=function(e,t){var n=o(e);i(n,"first argument of useRefetchableFragment()");var u=r(n,t,"useRefetchableFragment()"),s=u.fragmentData,l=u.refetch;return a({fragment:n.name,data:s}),[s,l]}},function(e,t,n){"use strict";var r=n(2),i=n(0),a=i.useEffect,o=i.useRef;e.exports=function(e,t){var n=r(),i=o(null),u=Array.from(e).sort().join("");return a((function(){var r=n.getStore(),a=r.lookupInvalidationState(e),o=r.subscribeToInvalidationState(a,t);return i.current=o,function(){return o.dispose()}}),[u,t,n]),{dispose:function(){null!=i.current&&i.current.dispose()}}}},function(e,t,n){"use strict";var r=n(2),i=n(0).useEffect,a=n(1).requestSubscription;e.exports=function(e,t){var n=null!=t?t:a,o=r();i((function(){return n(o,e).dispose}),[o,e,n])}}])}));
@@ -1,9 +1,9 @@
1
1
  /**
2
- * Relay v11.0.0
2
+ * Relay v13.0.0-rc.0
3
3
  *
4
4
  * Copyright (c) Facebook, Inc. and its affiliates.
5
5
  *
6
6
  * This source code is licensed under the MIT license found in the
7
7
  * LICENSE file in the root directory of this source tree.
8
8
  */
9
- !function(e,r){"object"==typeof exports&&"object"==typeof module?module.exports=r(require("react"),require("relay-runtime"),require("fbjs/lib/invariant"),require("@babel/runtime/helpers/interopRequireDefault"),require("fbjs/lib/warning"),require("@babel/runtime/helpers/objectSpread2"),require("@babel/runtime/helpers/createForOfIteratorHelper"),require("react-relay/ReactRelayContext"),require("@babel/runtime/helpers/defineProperty"),require("@babel/runtime/helpers/toConsumableArray"),require("fbjs/lib/mapObject"),require("fbjs/lib/areEqual")):"function"==typeof define&&define.amd?define(["react","relay-runtime","fbjs/lib/invariant","@babel/runtime/helpers/interopRequireDefault","fbjs/lib/warning","@babel/runtime/helpers/objectSpread2","@babel/runtime/helpers/createForOfIteratorHelper","react-relay/ReactRelayContext","@babel/runtime/helpers/defineProperty","@babel/runtime/helpers/toConsumableArray","fbjs/lib/mapObject","fbjs/lib/areEqual"],r):"object"==typeof exports?exports.ReactRelayHooks=r(require("react"),require("relay-runtime"),require("fbjs/lib/invariant"),require("@babel/runtime/helpers/interopRequireDefault"),require("fbjs/lib/warning"),require("@babel/runtime/helpers/objectSpread2"),require("@babel/runtime/helpers/createForOfIteratorHelper"),require("react-relay/ReactRelayContext"),require("@babel/runtime/helpers/defineProperty"),require("@babel/runtime/helpers/toConsumableArray"),require("fbjs/lib/mapObject"),require("fbjs/lib/areEqual")):e.ReactRelayHooks=r(e.react,e["relay-runtime"],e["fbjs/lib/invariant"],e["@babel/runtime/helpers/interopRequireDefault"],e["fbjs/lib/warning"],e["@babel/runtime/helpers/objectSpread2"],e["@babel/runtime/helpers/createForOfIteratorHelper"],e["react-relay/ReactRelayContext"],e["@babel/runtime/helpers/defineProperty"],e["@babel/runtime/helpers/toConsumableArray"],e["fbjs/lib/mapObject"],e["fbjs/lib/areEqual"])}(window,(function(e,r,t,n,i,u,o,a,c,l,s,f){return function(e){var r={};function t(n){if(r[n])return r[n].exports;var i=r[n]={i:n,l:!1,exports:{}};return e[n].call(i.exports,i,i.exports,t),i.l=!0,i.exports}return t.m=e,t.c=r,t.d=function(e,r,n){t.o(e,r)||Object.defineProperty(e,r,{enumerable:!0,get:n})},t.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},t.t=function(e,r){if(1&r&&(e=t(e)),8&r)return e;if(4&r&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(t.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&r&&"string"!=typeof e)for(var i in e)t.d(n,i,function(r){return e[r]}.bind(null,i));return n},t.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(r,"a",r),r},t.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},t.p="",t(t.s=26)}([function(r,t){r.exports=e},function(e,t){e.exports=r},function(e,r,t){"use strict";var n=t(13),i=t(3),u=t(0).useContext;e.exports=function(){var e=u(n);return null==e&&i(!1),e.environment}},function(e,r){e.exports=t},function(e,r){e.exports=n},function(e,r){e.exports=i},function(e,r){e.exports=u},function(e,r,t){"use strict";var n=t(4)(t(6)),i=t(0),u=t(3),o=(t(5),t(1)),a=o.PreloadableQueryRegistry,c=o.ReplaySubject,l=o.createOperationDescriptor,s=o.getRequest,f=o.getRequestIdentifier,d=o.Observable,p=o.RelayFeatureFlags,v=o.__internal.fetchQueryDeduped,h=null,m=100001;e.exports={loadQuery:function(e,r,t,o,h){var y,b,g;null===(y=i.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)||void 0===y||null===(b=y.ReactCurrentDispatcher)||void 0===b||b.current,m++;var _,R,P,E,S,k,F=null!==(g=null==o?void 0:o.fetchPolicy)&&void 0!==g?g:"store-or-network",x=(0,n.default)((0,n.default)({},null==o?void 0:o.networkCacheConfig),{},{force:!0}),q=!1,C=function(r,t){return q=!0,e.executeWithSource({operation:r,source:t})},w=new c,I=d.create((function(e){return w.subscribe(e)})),D=null,N=!1,O=function(r){var n;N=!0;var i=new c;if(!0===p.ENABLE_LOAD_QUERY_REQUEST_DEDUPING){var u="raw-network-request-"+f(r,t);n=v(e,u,(function(){return e.getNetwork().execute(r,t,x)}))}else{n=e.getNetwork().execute(r,t,x)}var o=n.subscribe({error:function(e){D=e,i.error(e)},next:function(e){i.next(e)},complete:function(){i.complete()}}).unsubscribe;return R=o,d.create((function(e){var r=i.subscribe(e);return function(){r.unsubscribe(),R()}}))},A=function(r,t){!0===p.ENABLE_LOAD_QUERY_REQUEST_DEDUPING&&(N=!0);var n=v(e,r.request.identifier,t).subscribe({error:function(e){w.error(e)},next:function(e){w.next(e)},complete:function(){w.complete()}});P=n.unsubscribe},Q=function(r){var n=l(r,t,x);(_=e.retain(n),"store-only"!==F)&&(("store-or-network"!==F||"available"!==e.check(n).status)&&A(n,(function(){var e=O(r.params);return C(n,e)})))};if("PreloadableConcreteRequest"===r.kind){null===(k=(E=r.params).id)&&u(!1);var M=a.get(k);if(null!=M)Q(M);else{var j="store-only"===F?null:O(E),T=a.onLoad(k,(function(r){S();var n=l(r,t,x);_=e.retain(n),null!=j&&A(n,(function(){return C(n,j)}))}));S=T.dispose}}else{var L=s(r);k=null!=(E=L.params).cacheID?E.cacheID:E.id,Q(L)}var U=!1;return{kind:"PreloadedQuery",environment:e,environmentProviderOptions:h,dispose:function(){U||(q?P&&P():R&&R(),_&&_.dispose(),S&&S(),U=!0)},fetchKey:m,id:k,get isDisposed(){return U},get networkError(){return D},name:E.name,networkCacheConfig:x,fetchPolicy:F,source:N?I:void 0,variables:t}},useTrackLoadQueryInRender:function(){var e,r;null===h&&(h=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)}}},function(e,r,t){"use strict";var n=t(0),i=n.useEffect,u=n.useRef;e.exports=function(){var e=u(!0);return i((function(){return e.current=!0,function(){e.current=!1}}),[]),e}},function(e,r,t){"use strict";var n=t(0).createContext({wrapPrepareQueryResource:function(e){return e()}});e.exports=n},function(e,r){e.exports=o},function(e,r,t){"use strict";var n=t(2),i=(t(5),t(15).getFragmentResourceForEnvironment),u=t(0),o=u.useEffect,a=u.useRef,c=u.useState,l=t(1).getFragmentIdentifier;e.exports=function(e,r,t){var u=n(),s=i(u),f=a(!1),d=c(0)[1],p=l(e,r),v=s.readWithIdentifier(e,r,p,t),h=a(!0);function m(){!1!==f.current&&!1!==h.current&&d((function(e){return e+1}))}return o((function(){f.current=!0;var e=s.subscribe(v,m);return function(){f.current=!1,e.dispose()}}),[u,p]),{data:v.data,disableStoreUpdates:function(){h.current=!1},enableStoreUpdates:function(){h.current=!0,s.checkMissedUpdates(v)[0]&&m()}}}},function(e,r,t){"use strict";t(5),t(0).useRef;e.exports=function(e,r){}},function(e,r){e.exports=a},function(e,r,t){"use strict";var n=t(7).loadQuery;e.exports=function e(r,t,i){var u=null;null==t.root.getModuleIfRequired()&&(u=t.root.load());var o=t.getPreloadProps(i),a=o.queries,c=o.entryPoints,l=o.extraProps,s={},f={};null!=a&&Object.keys(a).forEach((function(e){var t=a[e],i=t.environmentProviderOptions,u=t.options,o=t.parameters,c=t.variables,l=r.getEnvironment(i);s[e]=n(l,o,c,{fetchPolicy:null==u?void 0:u.fetchPolicy,networkCacheConfig:null==u?void 0:u.networkCacheConfig,__nameForWarning:"loadEntryPoint"},i)})),null!=c&&Object.keys(c).forEach((function(t){var n=c[t];if(null!=n){var i=n.entryPoint,u=n.entryPointParams;f[t]=e(r,i,u)}}));var d=!1;return{dispose:function(){d||(null!=s&&Object.values(s).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 u=null!==(e=u)&&void 0!==e?e:t.root.load();return r},get isDisposed(){return d},queries:s,rootModuleID:t.root.getModuleId()}}},function(e,r,t){"use strict";var n=t(4),i=n(t(6)),u=n(t(31)),o=t(16),a=t(3),c=t(32),l=t(1),s=l.__internal.getPromiseForActiveRequest,f=l.getFragmentIdentifier,d=l.getSelector,p=l.isPromise,v=l.recycleNodesInto,h=l.reportMissingRequiredFields,m="function"==typeof WeakMap;function y(e,r){return Array.isArray(r)?{cacheKey:e,snapshot:r,data:r.map((function(e){return e.data}))}:{cacheKey:e,snapshot:r,data:r.data}}var b=function(){function e(e){this._environment=e,this._cache=o.create(1e6)}var r=e.prototype;return r.read=function(e,r,t,n){return this.readWithIdentifier(e,r,f(e,r),t,n)},r.readWithIdentifier=function(e,r,t,n,i){var u,o=this._environment;if(null==r)return{cacheKey:t,data:null,snapshot:null};if(!0===(null==e||null===(u=e.metadata)||void 0===u?void 0:u.plural)&&(Array.isArray(r)||a(!1),0===r.length))return{cacheKey:t,data:[],snapshot:[]};var c=this._cache.get(t);if(null!=c){if(p(c))throw c;if(c.snapshot)return this._reportMissingRequiredFieldsInSnapshot(c.snapshot),c}var l=d(e,r);null==l&&a(!1);var s="PluralReaderSelector"===l.kind?l.selectors.map((function(e){return o.lookup(e)})):o.lookup(l),f="PluralReaderSelector"===l.kind?l.selectors[0].owner:l.owner;if(!function(e){return Array.isArray(e)?e.some((function(e){return e.isMissingData})):e.isMissingData}(s)){this._reportMissingRequiredFieldsInSnapshot(s);var v=y(t,s);return this._cache.set(t,v),v}var h=this._getAndSavePromiseForFragmentRequestInFlight(t,f);if(null!=h)throw h;return this._reportMissingRequiredFieldsInSnapshot(s),y(t,s)},r._reportMissingRequiredFieldsInSnapshot=function(e){var r=this;Array.isArray(e)?e.forEach((function(e){null!=e.missingRequiredFields&&h(r._environment,e.missingRequiredFields)})):null!=e.missingRequiredFields&&h(this._environment,e.missingRequiredFields)},r.readSpec=function(e,r,t){var n=this;return c(e,(function(e,i){var u=r[i];return n.read(e,u,t,i)}))},r.subscribe=function(e,r){var t=this,n=this._environment,i=e.cacheKey,u=e.snapshot;if(!u)return{dispose:function(){}};var o=this.checkMissedUpdates(e),c=o[0],l=o[1];c&&r();var s=[];return Array.isArray(u)?(Array.isArray(l)||a(!1),l.forEach((function(e,u){s.push(n.subscribe(e,(function(e){t._updatePluralSnapshot(i,l,e,u),r()})))}))):((null==l||Array.isArray(l))&&a(!1),s.push(n.subscribe(l,(function(e){t._cache.set(i,y(i,e)),r()})))),{dispose:function(){s.map((function(e){return e.dispose()})),t._cache.delete(i)}}},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=this._environment,t=e.cacheKey,n=e.snapshot;if(!n)return[!1,null];var u=!1;if(Array.isArray(n)){var o=[];return n.forEach((function(e,t){var n=r.lookup(e.selector),a=e.data,c=n.data,l=v(a,c);l!==a&&(n=(0,i.default)((0,i.default)({},n),{},{data:l}),u=!0),o[t]=n})),u&&this._cache.set(t,y(t,o)),[u,o]}var a=r.lookup(n.selector),c=n.data,l=a.data,s=v(c,l);return a={data:s,isMissingData:a.isMissingData,seenRecords:a.seenRecords,selector:a.selector,missingRequiredFields:a.missingRequiredFields},s!==c&&(this._cache.set(t,y(t,a)),u=!0),[u,a]},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){var t,n=this,i=this._environment,u=null!==(t=s(i,r))&&void 0!==t?t:function(e,r){return e.getOperationTracker().getPromiseForPendingOperationsAffectingOwner(r)}(i,r);if(!u)return null;var o=u.then((function(){n._cache.delete(e)})).catch((function(r){n._cache.delete(e)}));return this._cache.set(e,o),o.displayName="Relay("+r.node.params.name+")",o},r._updatePluralSnapshot=function(e,r,t,n){var i=this._cache.get(e);if(p(i))g(t.selector.node.name);else{var o=null==i?void 0:i.snapshot;if(!o||Array.isArray(o)){var a=o?(0,u.default)(o):(0,u.default)(r);a[n]=t,this._cache.set(e,y(e,a))}else g(t.selector.node.name)}},e}();function g(e){a(!1)}function _(e){return new b(e)}var R=m?new WeakMap:new Map;e.exports={createFragmentResource:_,getFragmentResourceForEnvironment:function(e){var r=R.get(e);if(r)return r;var t=_(e);return R.set(e,t),t}}},function(e,r,t){"use strict";var n=t(3),i=function(){function e(e){this._capacity=e,this._capacity>0||n(!1),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 i(e)}}},function(e,r,t){"use strict";var n=t(9),i=t(0),u=t(18),o=t(11),a=t(2),c=t(19),l=c.getQueryResourceForEnvironment,s=c.getQueryCacheIdentifier,f=i.useContext,d=i.useEffect,p=i.useState,v=i.useRef;e.exports=function(e){var r=e.query,t=e.componentDisplayName,i=e.fetchObservable,c=e.fetchPolicy,h=e.fetchKey,m=e.renderPolicy,y=a(),b=f(n),g=l(y),_=p(0),R=_[0],P=_[1],E=u(),S=E.startFetch,k=E.completeFetch,F="".concat(R,"-").concat(null!=h?h:""),x=s(y,r,c,m,F),q=b.wrapPrepareQueryResource((function(){return g.prepareWithIdentifier(x,r,i,c,m,{start:S,complete:k,error:k},b)})),C=v(!1);d((function(){return function(){C.current=!0}}),[]),d((function(){if(!0===C.current)return C.current=!1,void P((function(e){return e+1}));var e=g.retain(q,b);return function(){e.dispose()}}),[y,x]);var w=q.fragmentNode,I=q.fragmentRef;return o(w,I,t).data}},function(e,r,t){"use strict";var n=t(0),i=n.useCallback,u=n.useEffect,o=n.useRef;e.exports=function(){var e=o(null),r=o(!1),t=i((function(){null!=e.current&&(e.current.unsubscribe(),e.current=null),r.current=!1}),[]),n=i((function(t){e.current=t,r.current=!0}),[]),a=i((function(){e.current=null,r.current=!1}),[]);return u((function(){return t}),[t]),{isFetchingRef:r,startFetch:n,disposeFetch:t,completeFetch:a}}},function(e,r,t){"use strict";var n=t(4),i=n(t(6)),u=n(t(20)),o=t(16),a=t(3),c=t(1).isPromise,l="function"==typeof WeakMap;function s(e,r,t,n,i){var u=null!=t?t:"store-or-network",o=null!=n?n:e.UNSTABLE_getDefaultRenderPolicy(),a="".concat(u,"-").concat(o,"-").concat(r.request.identifier);return null!=i?"".concat(a,"-").concat(i):a}function f(e,r){var t={__id:e.fragment.dataID,__fragments:(0,u.default)({},e.fragment.node.name,e.request.variables),__fragmentOwner:e.request};return{cacheIdentifier:r,fragmentNode:e.request.node.fragment,fragmentRef:t,operation:e}}var d=2e5;function p(e,r,t,n,i){var u=t,o=0,c=null,l=null,s=n,f=function(e){return 1===++o&&(c=e.retain(r)),{dispose:function(){0===(o=Math.max(0,o-1))&&(null==c&&a(!1),c.dispose(),c=null),i(p)}}},p={cacheIdentifier:e,id:d++,getValue:function(){return u},setValue:function(e){u=e},getRetainCount:function(){return o},getNetworkSubscription:function(){return s},setNetworkSubscription:function(e){null!=s&&s.unsubscribe(),s=e},temporaryRetain:function(e){if(e.isServer())return{dispose:function(){}};var r=f(e),t=null,n=function(){clearTimeout(t),t=null,l=null,r.dispose(),o<=0&&null!=s&&s.unsubscribe()};return t=setTimeout(n,3e5),null!=l&&l(),l=n,{dispose:function(){l&&l()}}},permanentRetain:function(e){var r=f(e);return null!=l&&(l(),l=null),{dispose:function(){r.dispose(),o<=0&&null!=s&&s.unsubscribe()}}}};return p}var v=function(){function e(e){var r=this;(0,u.default)(this,"_clearCacheEntry",(function(e){e.getRetainCount()<=0&&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,i,u,o){var a=s(this._environment,e,t,n,u);return this.prepareWithIdentifier(a,e,r,t,n,i,o)},r.prepareWithIdentifier=function(e,r,t,n,u,o,a){var l=this._environment,s=null!=n?n:"store-or-network",f=null!=u?u:l.UNSTABLE_getDefaultRenderPolicy(),d=this._cache.get(e),p=null;null==d&&(d=this._fetchAndSaveQuery(e,r,t,s,f,a,(0,i.default)((0,i.default)({},o),{},{unsubscribe:function(e){null!=p&&p.dispose();var r=null==o?void 0:o.unsubscribe;r&&r(e)}}))),p=d.temporaryRetain(l);var v=d.getValue();if(c(v)||v instanceof Error)throw v;return v},r.retain=function(e,r){var t=this._environment,n=e.cacheIdentifier,i=e.operation,u=this._getOrCreateCacheEntry(n,i,e,null),o=u.permanentRetain(t);return t.__log({name:"queryresource.retain",profilerContext:r,resourceID:u.id}),{dispose:function(){o.dispose()}}},r.TESTS_ONLY__getCacheEntry=function(e,r,t,n){var i=s(this._environment,e,r,t,n);return this._cache.get(i)},r._getOrCreateCacheEntry=function(e,r,t,n){var i=this._cache.get(e);return null==i&&(i=p(e,r,t,n,this._clearCacheEntry),this._cache.set(e,i)),i},r._fetchAndSaveQuery=function(e,r,t,n,i,u,o){var c,l,s=this,d=this._environment,v=d.check(r),h=v.status,m="available"===h,y=m||"partial"===i&&"stale"!==h,b=function(){};switch(n){case"store-only":c=!1,l=!0;break;case"store-or-network":c=!m,l=y;break;case"store-and-network":c=!0,l=y;break;case"network-only":default:c=!0,l=!1}if(l){var g=f(r,e),_=p(e,r,g,null,this._clearCacheEntry);this._cache.set(e,_)}if(c){var R,P=f(r,e);t.subscribe({start:function(r){R=r;var t=s._cache.get(e);t&&t.setNetworkSubscription(R);var n=null==o?void 0:o.start;n&&n(r)},next:function(){var t=d.lookup(r.fragment);s._getOrCreateCacheEntry(e,r,P,R).setValue(P),b();var n=null==o?void 0:o.next;n&&n(t)},error:function(t){var n=s._getOrCreateCacheEntry(e,r,t,R);n.setValue(t),b(),R=null,n.setNetworkSubscription(null);var i=null==o?void 0:o.error;i&&i(t)},complete:function(){b(),R=null;var r=s._cache.get(e);r&&r.setNetworkSubscription(null);var t=null==o?void 0:o.complete;t&&t()},unsubscribe:null==o?void 0:o.unsubscribe});var E=this._cache.get(e);if(!E){var S=new Promise((function(e){b=e}));S.displayName="Relay("+r.fragment.node.name+")",E=p(e,r,S,R,this._clearCacheEntry),this._cache.set(e,E)}}else{var k=null==o?void 0:o.complete;k&&k()}var F=this._cache.get(e);return null==F&&a(!1),d.__log({name:"queryresource.fetch",resourceID:F.id,operation:r,profilerContext:u,fetchPolicy:n,renderPolicy:i,queryAvailability:v,shouldFetch:c}),F},e}();function h(e){return new v(e)}var m=l?new WeakMap:new Map;e.exports={createQueryResource:h,getQueryResourceForEnvironment:function(e){var r=m.get(e);if(r)return r;var t=h(e);return m.set(e,t),t},getQueryCacheIdentifier:s}},function(e,r){e.exports=c},function(e,r,t){"use strict";var n=t(0),i=t(34),u=t(1),o=u.createOperationDescriptor,a=u.getRequest,c=n.useMemo;e.exports=function(e,r,t){var n=i(r)[0],u=i(t||{})[0];return c((function(){return o(a(e),n,u)}),[e,n,u])}},function(e,r,t){"use strict";var n=t(3);e.exports=function(e,r){var t,i;!0===(null===(t=e.metadata)||void 0===t?void 0:t.plural)&&n(!1);var u=null===(i=e.metadata)||void 0===i?void 0:i.refetch;null==u&&n(!1);var o=u.operation.default?u.operation.default:u.operation,a=u.fragmentPathInResult;"string"==typeof o&&n(!1);var c=u.identifierField;return null!=c&&"string"!=typeof c&&n(!1),{fragmentRefPathInResponse:a,identifierField:c,refetchableRequest:o,refetchMetadata:u}}},function(e,r,t){"use strict";var n=t(4)(t(10)),i=t(3);e.exports=function(e,r){var t,u=e,o=(0,n.default)(r);try{for(o.s();!(t=o.n()).done;){var a=t.value;if(null==u)return null;"number"==typeof a?(Array.isArray(u)||i(!1),u=u[a]):(("object"!=typeof u||Array.isArray(u))&&i(!1),u=u[a])}}catch(e){o.e(e)}finally{o.f()}return u}},function(e,r,t){"use strict";var n=t(4)(t(6)),i=t(9),u=t(22),o=t(23),a=t(3),c=t(11),l=t(8),s=t(25),f=t(2),d=(t(5),t(15).getFragmentResourceForEnvironment),p=t(19).getQueryResourceForEnvironment,v=t(0),h=v.useCallback,m=v.useContext,y=v.useReducer,b=t(1),g=b.__internal.fetchQuery,_=b.createOperationDescriptor,R=b.getFragmentIdentifier,P=b.getSelector;function E(e,r){switch(r.type){case"refetch":var t;return(0,n.default)((0,n.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")}}e.exports=function(e,r,t){var v=f(),b=u(e,t),S=b.refetchableRequest,k=b.fragmentRefPathInResponse,F=b.identifierField,x=R(e,r),q=y(E,{fetchPolicy:void 0,mirroredEnvironment:v,mirroredFragmentIdentifier:x,onComplete:void 0,refetchEnvironment:null,refetchQuery:null,renderPolicy:void 0}),C=q[0],w=q[1],I=C.fetchPolicy,D=C.mirroredEnvironment,N=C.mirroredFragmentIdentifier,O=C.onComplete,A=C.refetchEnvironment,Q=C.refetchQuery,M=C.renderPolicy,j=null!=A?A:v,T=p(j),L=d(j),U=m(i),W=j!==D||x!==N,K=s(S),B=K[0],V=K[1],H=K[2],z=r;if(W)w({type:"reset",environment:j,fragmentIdentifier:x}),H();else if(null!=Q&&null!=B){0;var Y=function(e){O&&O(null!=e?e:null)},G=null!=B.source?B.source:g(j,Q),X=U.wrapPrepareQueryResource((function(){return T.prepare(Q,G,I,M,{error:Y,complete:function(){Y()}},B.fetchKey,U)})),J=L.read(X.fragmentNode,X.fragmentRef,t).data;null==J&&a(!1),z=o(J,k)}var Z=c(e,z,t),$=Z.data,ee=Z.disableStoreUpdates,re=Z.enableStoreUpdates;return{fragmentData:$,fragmentRef:z,refetch:function(e,r,t,i,u,o,a,c,s,f,d){var p=l(),v=null!=c&&null!=i&&"object"==typeof i?i[c]:null;return h((function(e,i){if(!0!==p.current)return{dispose:function(){}};var u,a,l=null==i?void 0:i.__environment,h=null==i?void 0:i.fetchPolicy,m=null==i?void 0:i.UNSTABLE_renderPolicy,y=null==i?void 0:i.onComplete,b=P(o,f);if(null==b)u={},a={};else if("PluralReaderSelector"===b.kind){var g,R,E,S;u=null!==(g=null===(R=b.selectors[0])||void 0===R?void 0:R.owner.variables)&&void 0!==g?g:{},a=null!==(E=null===(S=b.selectors[0])||void 0===S?void 0:S.variables)&&void 0!==E?E:{}}else u=b.owner.variables,a=b.variables;var k=(0,n.default)((0,n.default)((0,n.default)({},u),a),e);null==c||e.hasOwnProperty("id")||(k.id=v);var F=_(d,k,{force:!0});return s(F.request.variables,{fetchPolicy:h,__environment:l,__nameForWarning:"refetch"}),r({type:"refetch",fetchPolicy:h,onComplete:y,refetchEnvironment:l,refetchQuery:F,renderPolicy:m}),{dispose:t}}),[u,r,t,v])}(0,w,H,$,x,e,0,F,V,r,S),disableStoreUpdates:ee,enableStoreUpdates:re}}},function(e,r,t){"use strict";var n=t(4)(t(10)),i=t(8),u=t(2),o=t(7),a=o.loadQuery,c=o.useTrackLoadQueryInRender,l=t(0),s=l.useCallback,f=l.useEffect,d=l.useRef,p=l.useState,v={kind:"NullQueryReference"};e.exports=function(e,r){var t=null!=r?r:v,o=u();c();var l=i(),h=d(new Set([t])),m=p((function(){return t})),y=m[0],b=m[1],g=p((function(){return t})),_=g[0],R=g[1];t!==_&&(h.current.add(t),R(t),b(t));var P=s((function(){l.current&&(h.current.add(v),b(v))}),[l]),E=s((function(r,t){var n=null!=t&&t.hasOwnProperty("__environment")?{fetchPolicy:t.fetchPolicy,networkCacheConfig:t.networkCacheConfig,__nameForWarning:t.__nameForWarning}:t;if(l.current){var i,u=a(null!==(i=null==t?void 0:t.__environment)&&void 0!==i?i:o,e,r,n);h.current.add(u),b(u)}}),[o,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"!==y.kind&&E(y.variables,{fetchPolicy:y.fetchPolicy,networkCacheConfig:y.networkCacheConfig}));var e=h.current;if(l.current){var r,t=(0,n.default)(e);try{for(t.s();!(r=t.n()).done;){var i=r.value;if(i===y)break;e.delete(i),"NullQueryReference"!==i.kind&&i.dispose&&i.dispose()}}catch(e){t.e(e)}finally{t.f()}}}),[y,l,E]),f((function(){return function(){var e,r=(0,n.default)(h.current);try{for(r.s();!(e=r.n()).done;){var t=e.value;"NullQueryReference"!==t.kind&&t.dispose&&t.dispose()}}catch(e){r.e(e)}finally{r.f()}}}),[]),["NullQueryReference"===y.kind?null:y,E,P]}},function(e,r,t){"use strict";var n=t(27),i=t(28),u=t(1),o=t(14),a=t(29),c=t(30),l=t(33),s=t(36),f=t(37),d=t(42),p=t(25),v=t(43),h=t(2),m=t(44),y=t(45),b=t(7).loadQuery;e.exports={ConnectionHandler:u.ConnectionHandler,applyOptimisticMutation:u.applyOptimisticMutation,commitLocalUpdate:u.commitLocalUpdate,commitMutation:u.commitMutation,graphql:u.graphql,readInlineData:u.readInlineData,requestSubscription:u.requestSubscription,EntryPointContainer:n,RelayEnvironmentProvider:i,fetchQuery:u.fetchQuery,loadQuery:b,loadEntryPoint:o,useFragment:c,useLazyLoadQuery:l,useEntryPointLoader:a,useQueryLoader:p,useMutation:s,usePaginationFragment:f,usePreloadedQuery:d,useRefetchableFragment:v,useRelayEnvironment:h,useSubscribeToInvalidationState:m,useSubscription:y}},function(e,r,t){"use strict";var n=t(9),i=t(0),u=t(2),o=(t(5),t(0)),a=o.useContext,c=o.useEffect;e.exports=function(e){var r=e.entryPointReference,t=e.props,o=r.getComponent,l=r.queries,s=r.entryPoints,f=r.extraProps,d=r.rootModuleID,p=o(),v=a(n),h=u();return c((function(){h.__log({name:"entrypoint.root.consume",profilerContext:v,rootModuleID:d})}),[h,v,d]),i.createElement(p,{entryPoints:s,extraProps:f,props:t,queries:l})}},function(e,r,t){"use strict";var n=t(0),i=t(13),u=n.useMemo;e.exports=function(e){var r=e.children,t=e.environment,o=u((function(){return{environment:t}}),[t]);return n.createElement(i.Provider,{value:o},r)}},function(e,r,t){"use strict";var n=t(4)(t(10)),i=t(14),u=t(8),o=t(7).useTrackLoadQueryInRender,a=t(0),c=a.useCallback,l=a.useEffect,s=a.useRef,f=a.useState,d={kind:"NullEntryPointReference"};e.exports=function(e,r,t){var a,p,v,h;o();var m=null!==(a=null==t||null===(p=t.TEST_ONLY__initialEntryPointData)||void 0===p?void 0:p.entryPointReference)&&void 0!==a?a:d,y=null!==(v=null==t||null===(h=t.TEST_ONLY__initialEntryPointData)||void 0===h?void 0:h.entryPointParams)&&void 0!==v?v:null,b=u(),g=s(new Set([m])),_=f(m),R=_[0],P=_[1],E=f(y),S=E[0],k=E[1],F=c((function(){if(b.current){var e={kind:"NullEntryPointReference"};g.current.add(e),P(e)}}),[P,b]),x=c((function(t){if(b.current){var n=i(e,r,t);g.current.add(n),P(n),k(t)}}),[e,r,P,b]),q=s(!1);return l((function(){return function(){q.current=!0}}),[]),l((function(){if(!0===q.current)return q.current=!1,void("NullEntryPointReference"!==R.kind&&null!=S&&x(S));var e=g.current;if(b.current){var r,t=(0,n.default)(e);try{for(t.s();!(r=t.n()).done;){var i=r.value;if(i===R)break;e.delete(i),"NullEntryPointReference"!==i.kind&&i.dispose()}}catch(e){t.e(e)}finally{t.f()}}}),[R,S,x,b]),l((function(){return function(){var e,r=(0,n.default)(g.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"===R.kind?null:R,x,F]}},function(e,r,t){"use strict";var n=t(11),i=t(12),u=t(7).useTrackLoadQueryInRender,o=(t(0).useDebugValue,t(1).getFragment);e.exports=function(e,r){u();var t=o(e);return i(t,"first argument of useFragment()"),n(t,r,"useFragment()").data}},function(e,r){e.exports=l},function(e,r){e.exports=s},function(e,r,t){"use strict";var n=t(17),i=t(21),u=t(2),o=t(7).useTrackLoadQueryInRender,a=t(1).__internal.fetchQuery;e.exports=function(e,r,t){o();var c=u(),l=i(e,r,t&&t.networkCacheConfig?t.networkCacheConfig:{force:!0});return n({componentDisplayName:"useLazyLoadQuery()",fetchKey:null==t?void 0:t.fetchKey,fetchObservable:a(c,l),fetchPolicy:null==t?void 0:t.fetchPolicy,query:l,renderPolicy:null==t?void 0:t.UNSTABLE_renderPolicy})}},function(e,r,t){"use strict";var n=t(0),i=t(35),u=n.useMemo,o=n.useRef,a=n.useState;e.exports=function(e){var r,t,n=o(0),c=a(e),l=c[0],s=c[1];return i(e,l)||(n.current=(null!==(t=n.current)&&void 0!==t?t:0)+1,s(e)),[u((function(){return e}),[n.current]),null!==(r=n.current)&&void 0!==r?r:0]}},function(e,r){e.exports=f},function(e,r,t){"use strict";var n=t(4)(t(6)),i=t(0),u=t(2),o=t(1).commitMutation,a=i.useState,c=i.useEffect,l=i.useRef,s=i.useCallback,f=t(8);e.exports=function(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o,t=u(),i=f(),d=l(t),p=l(e),v=l(new Set),h=a(!1),m=h[0],y=h[1],b=s((function(r){d.current===t&&p.current===e&&(v.current.delete(r),i.current&&y(v.current.size>0))}),[t,i,e]);c((function(){d.current===t&&p.current===e||(v.current=new Set,i.current&&y(!1),d.current=t,p.current=e)}),[t,i,e]);var g=s((function(u){var o=r(t,(0,n.default)((0,n.default)({},u),{},{mutation:e,onCompleted:function(e,r){b(o),u.onCompleted&&u.onCompleted(e,r)},onError:function(e){b(o),u.onError&&u.onError(e)},onUnsubscribe:function(){b(o),u.onUnsubscribe&&u.onUnsubscribe()}}));return v.current.add(o),i.current&&y(!0),o}),[b,r,t,i,e]);return[g,m]}},function(e,r,t){"use strict";var n=t(4)(t(6)),i=t(38),u=t(39),o=t(24),a=t(12),c=t(0),l=c.useCallback,s=(c.useDebugValue,c.useState),f=t(1),d=f.getFragment,p=f.getFragmentIdentifier;function v(e){var r=s(!1),t=r[0],i=r[1],o={start:function(){return i(!0)},complete:function(){return i(!1)},error:function(){return i(!1)}},a=u((0,n.default)((0,n.default)({},e),{},{observer:o,onReset:function(){return i(!1)}}));return[a[0],a[1],t,a[2]]}e.exports=function(e,r){var t=d(e);a(t,"first argument of usePaginationFragment()");var u=i(t,"usePaginationFragment()"),c=u.connectionPathInFragmentData,s=u.paginationRequest,f=u.paginationMetadata,h=u.identifierField,m=o(t,r,"usePaginationFragment()"),y=m.fragmentData,b=m.fragmentRef,g=m.refetch,_=p(t,b),R=v({componentDisplayName:"usePaginationFragment()",connectionPathInFragmentData:c,direction:"backward",fragmentData:y,fragmentIdentifier:_,fragmentNode:t,fragmentRef:b,identifierField:h,paginationMetadata:f,paginationRequest:s}),P=R[0],E=R[1],S=R[2],k=R[3],F=v({componentDisplayName:"usePaginationFragment()",connectionPathInFragmentData:c,direction:"forward",fragmentData:y,fragmentIdentifier:_,fragmentNode:t,fragmentRef:b,identifierField:h,paginationMetadata:f,paginationRequest:s}),x=F[0],q=F[1],C=F[2],w=F[3];return{data:y,loadNext:x,loadPrevious:P,hasNext:q,hasPrevious:E,isLoadingNext:C,isLoadingPrevious:S,refetch:l((function(e,r){return w(),k(),g(e,(0,n.default)((0,n.default)({},r),{},{__environment:void 0}))}),[w,k,g])}}},function(e,r,t){"use strict";var n=t(22),i=t(3);e.exports=function(e,r){var t,u,o=n(e,r),a=o.refetchableRequest,c=o.refetchMetadata,l=c.connection;null==l&&i(!1);var s=l.path,f=(null!==(t=null===(u=e.metadata)||void 0===u?void 0:u.connection)&&void 0!==t?t:[])[0];null==f&&i(!1);var d=c.identifierField;return null!=d&&"string"!=typeof d&&i(!1),{connectionPathInFragmentData:s,identifierField:d,paginationRequest:a,paginationMetadata:l,stream:!0===f.stream}}},function(e,r,t){"use strict";var n=t(4)(t(6)),i=t(40),u=t(23),o=t(3),a=t(18),c=t(8),l=t(41),s=t(2),f=(t(5),t(0)),d=f.useCallback,p=f.useEffect,v=f.useState,h=t(1),m=h.ConnectionInterface,y=h.__internal.fetchQuery,b=h.createOperationDescriptor,g=h.getSelector;e.exports=function(e){var r=e.direction,t=e.fragmentNode,f=e.fragmentRef,h=e.fragmentIdentifier,_=e.fragmentData,R=e.connectionPathInFragmentData,P=e.paginationRequest,E=e.paginationMetadata,S=e.componentDisplayName,k=e.observer,F=e.onReset,x=e.identifierField,q=s(),C=a(),w=C.isFetchingRef,I=C.startFetch,D=C.disposeFetch,N=C.completeFetch,O=null!=x&&null!=_&&"object"==typeof _?_[x]:null,A=c(),Q=v(q),M=Q[0],j=Q[1],T=v(h),L=T[0],U=T[1],W=l(t,f);(q!==M||h!==L)&&(D(),F(),j(q),U(h));var K=function(e,r,t,n){var i,a,c=m.get(),l=c.EDGES,s=c.PAGE_INFO,f=c.HAS_NEXT_PAGE,d=c.HAS_PREV_PAGE,p=c.END_CURSOR,v=c.START_CURSOR,h=u(t,n);if(null==h)return{cursor:null,hasMore:!1};"object"!=typeof h&&o(!1);var y=h[l],b=h[s];if(null==y||null==b)return{cursor:null,hasMore:!1};Array.isArray(y)||o(!1),"object"!=typeof b&&o(!1);var g,_="forward"===e?null!==(i=b[p])&&void 0!==i?i:null:null!==(a=b[v])&&void 0!==a?a:null;null!==_&&"string"!=typeof _&&o(!1),g="forward"===e?null!=_&&!0===b[f]:null!=_&&!0===b[d];return{cursor:_,hasMore:g}}(r,0,_,R),B=K.cursor,V=K.hasMore;return p((function(){return function(){D()}}),[D]),[d((function(e,u){var a=null==u?void 0:u.onComplete;if(!0!==A.current)return{dispose:function(){}};var c=g(t,f);if(!0===w.current||null==_||W)return a&&a(null),{dispose:function(){}};(null==c||"PluralReaderSelector"===c.kind)&&o(!1);var l=c.owner.variables,s=c.variables,d=null==u?void 0:u.UNSTABLE_extraVariables,p=(0,n.default)((0,n.default)({},l),s),v=i(r,e,B,p,(0,n.default)({},d),E);null!=x&&(v.id=O);var h=b(P,v,{force:!0});return y(q,h).subscribe((0,n.default)((0,n.default)({},k),{},{start:function(e){I(e),k.start&&k.start(e)},complete:function(){N(),k.complete&&k.complete(),a&&a(null)},error:function(e){N(),k.error&&k.error(e),a&&a(e)}})),{dispose:D}}),[q,O,r,B,I,D,N,w,W,_,t.name,f,S]),V,D]}},function(e,r,t){"use strict";var n=t(4),i=n(t(20)),u=n(t(6)),o=t(3);t(5);e.exports=function(e,r,t,n,a,c){var l,s=c.backward,f=c.forward;if("backward"===e){var d;(null==s||null==s.count||null==s.cursor)&&o(!1);var p=(0,u.default)((0,u.default)((0,u.default)({},n),a),{},(d={},(0,i.default)(d,s.cursor,t),(0,i.default)(d,s.count,r),d));return f&&f.cursor&&(p[f.cursor]=null),f&&f.count&&(p[f.count]=null),p}(null==f||null==f.count||null==f.cursor)&&o(!1);var v=(0,u.default)((0,u.default)((0,u.default)({},n),a),{},(l={},(0,i.default)(l,f.cursor,t),(0,i.default)(l,f.count,r),l));return s&&s.cursor&&(v[s.cursor]=null),s&&s.count&&(v[s.count]=null),v}},function(e,r,t){"use strict";var n=t(0),i=t(3),u=t(2),o=t(1),a=o.__internal.getObservableForActiveRequest,c=o.getSelector,l=n.useEffect,s=n.useState,f=n.useMemo;e.exports=function(e,r){var t=u(),n=f((function(){var n=c(e,r);return null==n?null:("SingularReaderSelector"!==n.kind&&i(!1),a(t,n.owner))}),[t,e,r]),o=s(null!=n),d=o[0],p=o[1];return l((function(){var e;if(p(null!=n),null!=n){var r=function(){p(!1)};e=n.subscribe({complete:r,error:r})}return function(){e&&e.unsubscribe()}}),[n]),d}},function(e,r,t){"use strict";var n=t(3),i=t(17),u=t(21),o=t(2),a=(t(5),t(7).useTrackLoadQueryInRender),c=(t(0).useDebugValue,t(1).__internal),l=c.fetchQueryDeduped,s=c.fetchQuery;e.exports=function(e,r,t){a();var c,f=o(),d=r.fetchKey,p=r.fetchPolicy,v=r.source,h=r.variables,m=u(e,h);if("PreloadedQuery_DEPRECATED"===r.kind)m.request.node.params.name!==r.name&&n(!1),c={componentDisplayName:"usePreloadedQuery()",fetchKey:d,fetchObservable:l(f,m.request.identifier,(function(){return f===r.environment&&null!=v?f.executeWithSource({operation:m,source:v}):f.execute({operation:m})})),fetchPolicy:p,query:m,renderPolicy:null==t?void 0:t.UNSTABLE_renderPolicy};else{var y=s(f,m);c={componentDisplayName:"usePreloadedQuery()",fetchObservable:null!=v&&f===r.environment?v.ifEmpty(y):(r.environment,y),fetchKey:d,fetchPolicy:p,query:m,renderPolicy:null==t?void 0:t.UNSTABLE_renderPolicy}}return i(c)}},function(e,r,t){"use strict";var n=t(24),i=t(12),u=(t(0).useDebugValue,t(1).getFragment);e.exports=function(e,r){var t=u(e);i(t,"first argument of useRefetchableFragment()");var o=n(t,r,"useRefetchableFragment()");return[o.fragmentData,o.refetch]}},function(e,r,t){"use strict";var n=t(2),i=t(0),u=i.useEffect,o=i.useRef;e.exports=function(e,r){var t=n(),i=o(null),a=Array.from(e).sort().join("");return u((function(){var n=t.getStore(),u=n.lookupInvalidationState(e),o=n.subscribeToInvalidationState(u,r);return i.current=o,function(){return o.dispose()}}),[a,r,t]),{dispose:function(){null!=i.current&&i.current.dispose()}}}},function(e,r,t){"use strict";var n=t(0),i=t(2),u=t(1).requestSubscription;e.exports=function(e,r){var t=null!=r?r:u,o=i();n.useEffect((function(){return u(o,e).dispose}),[o,e,t])}}])}));
9
+ !function(e,r){"object"==typeof exports&&"object"==typeof module?module.exports=r(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("react-relay/ReactRelayContext"),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","react-relay/ReactRelayContext","@babel/runtime/helpers/createForOfIteratorHelper","@babel/runtime/helpers/toConsumableArray","fbjs/lib/areEqual"],r):"object"==typeof exports?exports.ReactRelayHooks=r(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("react-relay/ReactRelayContext"),require("@babel/runtime/helpers/createForOfIteratorHelper"),require("@babel/runtime/helpers/toConsumableArray"),require("fbjs/lib/areEqual")):e.ReactRelayHooks=r(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["react-relay/ReactRelayContext"],e["@babel/runtime/helpers/createForOfIteratorHelper"],e["@babel/runtime/helpers/toConsumableArray"],e["fbjs/lib/areEqual"])}(window,(function(e,r,t,n,i,o,a,u,s,c,l){return function(e){var r={};function t(n){if(r[n])return r[n].exports;var i=r[n]={i:n,l:!1,exports:{}};return e[n].call(i.exports,i,i.exports,t),i.l=!0,i.exports}return t.m=e,t.c=r,t.d=function(e,r,n){t.o(e,r)||Object.defineProperty(e,r,{enumerable:!0,get:n})},t.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},t.t=function(e,r){if(1&r&&(e=t(e)),8&r)return e;if(4&r&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(t.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&r&&"string"!=typeof e)for(var i in e)t.d(n,i,function(r){return e[r]}.bind(null,i));return n},t.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(r,"a",r),r},t.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},t.p="",t(t.s=25)}([function(r,t){r.exports=e},function(e,t){e.exports=r},function(e,r,t){"use strict";var n=t(3),i=t(0).useContext,o=t(14);e.exports=function(){var e=i(o);return null==e&&n(!1),e.environment}},function(e,r){e.exports=t},function(e,r){e.exports=n},function(e,r){e.exports=i},function(e,r,t){"use strict";var n=t(4)(t(7)),i=t(3),o=t(0),a=t(1),u=a.Observable,s=a.PreloadableQueryRegistry,c=a.RelayFeatureFlags,l=a.ReplaySubject,f=a.__internal.fetchQueryDeduped,d=a.createOperationDescriptor,p=a.getRequest,v=a.getRequestIdentifier,h=(t(5),null),m=100001;e.exports={loadQuery:function(e,r,t,a,h){var y,g,_;null===(y=o.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)||void 0===y||null===(g=y.ReactCurrentDispatcher)||void 0===g||g.current,m++;var b,R,E,P,C,S,k=null!==(_=null==a?void 0:a.fetchPolicy)&&void 0!==_?_:"store-or-network",F=(0,n.default)((0,n.default)({},null==a?void 0:a.networkCacheConfig),{},{force:!0}),q=!1,D=function(r,t){return q=!0,e.executeWithSource({operation:r,source:t})},x=new l,w=u.create((function(e){return x.subscribe(e)})),I=null,N=!1,A=function(r){var n;N=!0;var i=new l;if(!0===c.ENABLE_LOAD_QUERY_REQUEST_DEDUPING){var o="raw-network-request-"+v(r,t);n=f(e,o,(function(){return e.getNetwork().execute(r,t,F)}))}else{n=e.getNetwork().execute(r,t,F)}var a=n.subscribe({error:function(e){I=e,i.error(e)},next:function(e){i.next(e)},complete:function(){i.complete()}}).unsubscribe;return R=a,u.create((function(e){var r=i.subscribe(e);return function(){r.unsubscribe(),R()}}))},Q=function(r,t){!0===c.ENABLE_LOAD_QUERY_REQUEST_DEDUPING&&(N=!0);var n=f(e,r.request.identifier,t).subscribe({error:function(e){x.error(e)},next:function(e){x.next(e)},complete:function(){x.complete()}});E=n.unsubscribe},O=function(r){var n=d(r,t,F);(b=e.retain(n),"store-only"!==k)&&(("store-or-network"!==k||"available"!==e.check(n).status)&&Q(n,(function(){var e=A(r.params);return D(n,e)})))};if("PreloadableConcreteRequest"===r.kind){null===(S=(P=r.params).id)&&i(!1);var M=s.get(S);if(null!=M)O(M);else{var T="store-only"===k?null:A(P),L=s.onLoad(S,(function(r){C();var n=d(r,t,F);b=e.retain(n),null!=T&&Q(n,(function(){return D(n,T)}))}));C=L.dispose}}else{var U=p(r);S=null!=(P=U.params).cacheID?P.cacheID:P.id,O(U)}var j=!1,W=!1,V=!1,B=function(){W||(b&&b.dispose(),W=!0)},K=function(){V||(q?E&&E():R&&R(),C&&C(),V=!0)};return{kind:"PreloadedQuery",environment:e,environmentProviderOptions:h,dispose:function(){j||(B(),K(),j=!0)},releaseQuery:B,cancelNetworkRequest:K,fetchKey:m,id:S,get isDisposed(){return j||W},get networkError(){return I},name:P.name,networkCacheConfig:F,fetchPolicy:k,source:N?w:void 0,variables:t}},useTrackLoadQueryInRender:function(){var e,r;null===h&&(h=null===(e=o.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)||void 0===e||null===(r=e.ReactCurrentDispatcher)||void 0===r?void 0:r.current)}}},function(e,r){e.exports=o},function(e,r,t){"use strict";var n=t(0),i=n.useEffect,o=n.useRef;e.exports=function(){var e=o(!0);return i((function(){return e.current=!0,function(){e.current=!1}}),[]),e}},function(e,r,t){"use strict";var n=t(0).createContext({wrapPrepareQueryResource:function(e){return e()}});e.exports=n},function(e,r,t){"use strict";var n=t(17).getFragmentResourceForEnvironment,i=t(2),o=t(0),a=o.useEffect,u=o.useRef,s=o.useState,c=t(1).getFragmentIdentifier;t(5);e.exports=function(e,r,t){var o=i(),l=n(o),f=u(!1),d=s(0)[1],p=c(e,r),v=l.readWithIdentifier(e,r,p,t),h=u(!0);function m(){!1!==f.current&&!1!==h.current&&d((function(e){return e+1}))}return a((function(){f.current=!0;var e=l.subscribe(v,m);return function(){f.current=!1,e.dispose()}}),[o,p]),{data:v.data,disableStoreUpdates:function(){h.current=!1},enableStoreUpdates:function(){h.current=!0,l.checkMissedUpdates(v)[0]&&m()}}}},function(e,r){e.exports=a},function(e,r,t){"use strict";var n=t(4),i=n(t(7)),o=n(t(11)),a=t(18),u=t(19),s=t(3),c=t(1),l=c.RelayFeatureFlags,f=c.isPromise,d=(t(5),"function"==typeof WeakMap);function p(e){return void 0!==e.request.node.params.metadata.live}function v(e,r,t,n,i){var o=null!=t?t:"store-or-network",a=null!=n?n:e.UNSTABLE_getDefaultRenderPolicy(),u="".concat(o,"-").concat(a,"-").concat(r.request.identifier);return null!=i?"".concat(u,"-").concat(i):u}function h(e,r){var t={__id:e.fragment.dataID,__fragments:(0,o.default)({},e.fragment.node.name,e.request.variables),__fragmentOwner:e.request};return{cacheIdentifier:r,fragmentNode:e.request.node.fragment,fragmentRef:t,operation:e}}var m=2e5;function y(e,r,t,n,i,o){return l.REFACTOR_SUSPENSE_RESOURCE?function(e,r,t,n,i,o){var a=p(r),s=n,c=i,l=new u((function(e){var t=e.retain(r);return{dispose:function(){a&&null!=c&&c.unsubscribe(),t.dispose(),o(f)}}})),f={cacheIdentifier:e,id:m++,processedPayloadsCount:0,operationAvailability:t,getValue:function(){return s},setValue:function(e){s=e},getRetainCount:function(){return l.getRetainCount()},getNetworkSubscription:function(){return c},setNetworkSubscription:function(e){a&&null!=c&&c.unsubscribe(),c=e},temporaryRetain:function(e){return l.temporaryRetain(e)},permanentRetain:function(e){return l.permanentRetain(e)},releaseTemporaryRetain:function(){l.releaseTemporaryRetain()}};return f}(e,r,t,n,i,o):function(e,r,t,n,i,o){var a=p(r),u=n,c=0,l=null,f=null,d=i,v=function(e){return 1===++c&&(l=e.retain(r)),{dispose:function(){0===(c=Math.max(0,c-1))&&(null==l&&s(!1),l.dispose(),l=null),o(h)}}},h={cacheIdentifier:e,id:m++,processedPayloadsCount:0,operationAvailability:t,getValue:function(){return u},setValue:function(e){u=e},getRetainCount:function(){return c},getNetworkSubscription:function(){return d},setNetworkSubscription:function(e){a&&null!=d&&d.unsubscribe(),d=e},temporaryRetain:function(e){if(e.isServer())return{dispose:function(){}};var r=v(e),t=null,n=function(){clearTimeout(t),t=null,f=null,r.dispose(),a&&c<=0&&null!=d&&d.unsubscribe()};return t=setTimeout(n,3e5),null!=f&&f(),f=n,{dispose:function(){f&&f()}}},permanentRetain:function(e){var r=v(e);return null!=f&&(f(),f=null),{dispose:function(){r.dispose(),a&&c<=0&&null!=d&&d.unsubscribe()}}},releaseTemporaryRetain:function(){null!=f&&(f(),f=null)}};return h}(e,r,t,n,i,o)}var g=function(){function e(e){var r=this;(0,o.default)(this,"_clearCacheEntry",(function(e){(l.REFACTOR_SUSPENSE_RESOURCE||e.getRetainCount()<=0)&&r._cache.delete(e.cacheIdentifier)})),this._environment=e,this._cache=a.create(1e3)}var r=e.prototype;return r.prepare=function(e,r,t,n,i,o,a){var u=v(this._environment,e,t,n,o);return this.prepareWithIdentifier(u,e,r,t,n,i,a)},r.prepareWithIdentifier=function(e,r,t,n,o,a,u){var s=this._environment,c=null!=n?n:"store-or-network",l=null!=o?o:s.UNSTABLE_getDefaultRenderPolicy(),d=this._cache.get(e),p=null,v=null!=d;null==d&&(d=this._fetchAndSaveQuery(e,r,t,c,l,u,(0,i.default)((0,i.default)({},a),{},{unsubscribe:function(e){null!=p&&p.dispose();var r=null==a?void 0:a.unsubscribe;r&&r(e)}}))),p=d.temporaryRetain(s);var h=d.getValue();if(f(h))throw s.__log({name:"suspense.query",fetchPolicy:c,isPromiseCached:v,operation:r,queryAvailability:d.operationAvailability,renderPolicy:l}),h;if(h instanceof Error)throw h;return h},r.retain=function(e,r){var t=this._environment,n=e.cacheIdentifier,i=e.operation,o=this._getOrCreateCacheEntry(n,i,null,e,null),a=o.permanentRetain(t);return t.__log({name:"queryresource.retain",profilerContext:r,resourceID:o.id}),{dispose:function(){a.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 i=v(this._environment,e,r,t,n);return this._cache.get(i)},r._getOrCreateCacheEntry=function(e,r,t,n,i){var o=this._cache.get(e);return null==o&&(o=y(e,r,t,n,i,this._clearCacheEntry),this._cache.set(e,o)),o},r._fetchAndSaveQuery=function(e,r,t,n,o,a,u){var c,l,f=this,d=this._environment,v=d.check(r),m=v.status,g="available"===m,_=g||"partial"===o&&"stale"!==m,b=function(){};switch(n){case"store-only":c=!1,l=!0;break;case"store-or-network":c=!g,l=_;break;case"store-and-network":c=!0,l=_;break;case"network-only":default:c=!0,l=!1}if(l){var R=h(r,e),E=y(e,r,v,R,null,this._clearCacheEntry);this._cache.set(e,E)}if(c){var P,C=h(r,e);t.subscribe({start:function(t){P=t;var n=f._cache.get(e);n&&n.setNetworkSubscription(P);var o=null==u?void 0:u.start;o&&o((0,i.default)((0,i.default)({},t),{},{unsubscribe:function(){p(r)&&t.unsubscribe()}}))},next:function(){var t=f._getOrCreateCacheEntry(e,r,v,C,P);t.processedPayloadsCount+=1,t.setValue(C),b();var n=null==u?void 0:u.next;null!=n&&n(d.lookup(r.fragment))},error:function(t){var n=f._getOrCreateCacheEntry(e,r,v,t,P);0===n.processedPayloadsCount&&n.setValue(t),b(),P=null,n.setNetworkSubscription(null);var i=null==u?void 0:u.error;i&&i(t)},complete:function(){b(),P=null;var r=f._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 k=new Promise((function(e){b=e}));k.displayName="Relay("+r.fragment.node.name+")",S=y(e,r,v,k,P,this._clearCacheEntry),this._cache.set(e,S)}}else{var F=null==u?void 0:u.complete;F&&F()}var q=this._cache.get(e);return null==q&&s(!1),d.__log({name:"queryresource.fetch",resourceID:q.id,operation:r,profilerContext:a,fetchPolicy:n,renderPolicy:o,queryAvailability:v,shouldFetch:c}),q},e}();function _(e){return new g(e)}var b=d?new WeakMap:new Map;e.exports={createQueryResource:_,getQueryResourceForEnvironment:function(e){var r=b.get(e);if(r)return r;var t=_(e);return b.set(e,t),t},getQueryCacheIdentifier:v}},function(e,r,t){"use strict";t(0).useRef,t(5);e.exports=function(e,r){}},function(e,r){e.exports=u},function(e,r,t){"use strict";var n=t(6).loadQuery;e.exports=function e(r,t,i){var o=null;null==t.root.getModuleIfRequired()&&(o=t.root.load());var a=t.getPreloadProps(i),u=a.queries,s=a.entryPoints,c=a.extraProps,l={},f={};null!=u&&Object.keys(u).forEach((function(e){var t=u[e],i=t.environmentProviderOptions,o=t.options,a=t.parameters,s=t.variables,c=r.getEnvironment(i);l[e]=n(c,a,s,{fetchPolicy:null==o?void 0:o.fetchPolicy,networkCacheConfig:null==o?void 0:o.networkCacheConfig,__nameForWarning:"loadEntryPoint"},i)})),null!=s&&Object.keys(s).forEach((function(t){var n=s[t];if(null!=n){var i=n.entryPoint,o=n.entryPointParams;f[t]=e(r,i,o)}}));var d=!1;return{dispose:function(){d||(null!=l&&Object.values(l).forEach((function(e){(0,e.dispose)()})),null!=f&&Object.values(f).forEach((function(e){(0,e.dispose)()})),d=!0)},entryPoints:f,extraProps:null!=c?c:null,getComponent:function(){var e,r=t.root.getModuleIfRequired();if(null==r)throw o=null!==(e=o)&&void 0!==e?e:t.root.load();return r},get isDisposed(){return d},queries:l,rootModuleID:t.root.getModuleId()}}},function(e,r){e.exports=s},function(e,r,t){"use strict";var n=t(4),i=n(t(7)),o=n(t(11)),a=n(t(30)),u=t(18),s=t(12).getQueryResourceForEnvironment,c=t(19),l=t(3),f=t(1),d=f.RelayFeatureFlags,p=f.__internal,v=p.fetchQuery,h=p.getPromiseForActiveRequest,m=f.createOperationDescriptor,y=f.getFragmentIdentifier,g=f.getPendingOperationsForFragment,_=f.getSelector,b=f.getVariablesFromFragment,R=f.isPromise,E=f.recycleNodesInto,P=f.reportMissingRequiredFields,C="function"==typeof WeakMap,S=Object.freeze([]);function k(e){return Array.isArray(e)?e.some((function(e){return e.isMissingData})):e.isMissingData}function F(e,r,t){return Array.isArray(r)?{cacheKey:e,snapshot:r,data:r.map((function(e){return e.data})),isMissingData:k(r),storeEpoch:t}:{cacheKey:e,snapshot:r,data:r.data,isMissingData:k(r),storeEpoch:t}}var q=function(){function e(e){(0,o.default)(this,"_cache",new Map),(0,o.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 i=n[0],o=n[1];r.forEach((function(e){i.push(e)})),o.temporaryRetain(this._environment)}else{var a=new c((function(){return t._retain(e)}));this._cache.set(e,[r,a]),a.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),d.ENABLE_CLIENT_EDGES&&(this._clientEdgeQueryResultsCache=new q(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,i){var o,u,c=this,f=this._environment;if(null==r)return{cacheKey:t,data:null,isMissingData:!1,snapshot:null,storeEpoch:0};var p=f.getStore().getEpoch();if(!0===(null==e||null===(o=e.metadata)||void 0===o?void 0:o.plural)&&(Array.isArray(r)||l(!1),0===r.length))return{cacheKey:t,data:S,isMissingData:!1,snapshot:S,storeEpoch:p};var v=this._cache.get(t);if(null!=v){if("pending"===v.kind&&R(v.promise))throw f.__log({name:"suspense.fragment",data:v.result.data,fragment:e,isRelayHooks:!0,isMissingData:v.result.isMissingData,isPromiseCached:!0,pendingOperations:v.pendingOperations}),v.promise;if("done"===v.kind&&v.result.snapshot)return this._reportMissingRequiredFieldsInSnapshot(v.result.snapshot),v.result}var m=_(e,r);null==m&&l(!1);var y="PluralReaderSelector"===m.kind?m.selectors.map((function(e){return f.lookup(e)})):f.lookup(m),g=F(t,y,p);if(!g.isMissingData)return this._reportMissingRequiredFieldsInSnapshot(y),this._cache.set(t,{kind:"done",result:g}),g;var b=null;if(d.ENABLE_CLIENT_EDGES&&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}(y)){b=[];var E=s(this._environment),P=[];!function(e,r){Array.isArray(e)?e.forEach(r):r(e)}(y,(function(t){var n;null===(n=t.missingClientEdges)||void 0===n||n.forEach((function(t){var n,i=t.request,o=t.clientEdgeDestinationID,a=c._performClientEdgeQuery(E,e,r,i,o),u=a.queryResult,s=a.requestDescriptor;P.push(u),null===(n=b)||void 0===n||n.push(s)}))})),null==this._clientEdgeQueryResultsCache&&l(!1),this._clientEdgeQueryResultsCache.recordQueryResults(t,P)}var C=null;d.ENABLE_CLIENT_EDGES&&b&&(C=b.map((function(e){return h(c._environment,e)})).filter((function(e){return null!=e})));var k,q,D,x="PluralReaderSelector"===m.kind?m.selectors[0].owner:m.owner,w=this._getAndSavePromiseForFragmentRequestInFlight(t,e,x,g),I=null==w?void 0:w.promise;if((null===(u=C)||void 0===u?void 0:u.length)||R(I))throw f.__log({name:"suspense.fragment",data:g.data,fragment:e,isRelayHooks:!0,isPromiseCached:!1,isMissingData:g.isMissingData,pendingOperations:[].concat((0,a.default)(null!==(k=null==w?void 0:w.pendingOperations)&&void 0!==k?k:[]),(0,a.default)(null!==(q=b)&&void 0!==q?q:[]))}),(null===(D=C)||void 0===D?void 0:D.length)?Promise.all([I].concat((0,a.default)(C))):I;return this._reportMissingRequiredFieldsInSnapshot(y),F(t,y,p)},r._performClientEdgeQuery=function(e,r,t,n,o){var a=b(r,t),u=(0,i.default)((0,i.default)({},a),{},{id:o}),s=m(n,u,{}),c=v(this._environment,s),l=e.prepare(s,c);return{requestDescriptor:s.request,queryResult:l}},r._reportMissingRequiredFieldsInSnapshot=function(e){var r=this;Array.isArray(e)?e.forEach((function(e){null!=e.missingRequiredFields&&P(r._environment,e.missingRequiredFields)})):null!=e.missingRequiredFields&&P(this._environment,e.missingRequiredFields)},r.readSpec=function(e,r,t){var n={};for(var i in e)n[i]=this.read(e[i],r[i],t,i);return n},r.subscribe=function(e,r){var t=this,n=this._environment,i=e.cacheKey,o=e.snapshot;if(!o)return{dispose:function(){}};var a=this.checkMissedUpdates(e),u=a[0],c=a[1];u&&r();var f=[];if(Array.isArray(o)?(Array.isArray(c)||l(!1),c.forEach((function(e,o){f.push(n.subscribe(e,(function(e){var a=n.getStore().getEpoch();t._updatePluralSnapshot(i,c,e,o,a),r()})))}))):((null==c||Array.isArray(c))&&l(!1),f.push(n.subscribe(c,(function(e){var o=n.getStore().getEpoch();t._cache.set(i,{kind:"done",result:F(i,e,o)}),r()})))),d.ENABLE_CLIENT_EDGES){var p,v,h=null!==(p=null===(v=this._clientEdgeQueryResultsCache)||void 0===v?void 0:v.get(i))&&void 0!==p?p:void 0;if(null==h?void 0: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(i)}}},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=this._environment,t=e.snapshot;if(!t)return[!1,null];var n;if(n=r.getStore().getEpoch(),e.storeEpoch===n)return[!1,e.snapshot];var o=e.cacheKey;if(Array.isArray(t)){var a=!1,u=[];return t.forEach((function(e,t){var n=r.lookup(e.selector),o=e.data,s=n.data,c=E(o,s);c!==o&&(n=(0,i.default)((0,i.default)({},n),{},{data:c}),a=!0),u[t]=n})),a&&this._cache.set(o,{kind:"done",result:F(o,u,n)}),[a,u]}var s=r.lookup(t.selector),c=t.data,l=s.data,f=E(c,l),d={data:f,isMissingData:s.isMissingData,missingClientEdges:s.missingClientEdges,seenRecords:s.seenRecords,selector:s.selector,missingRequiredFields:s.missingRequiredFields};return f!==c&&this._cache.set(o,{kind:"done",result:F(o,d,n)}),[f!==c,d]},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 i=this,o=g(this._environment,r,t);if(null==o)return null;var a=o.promise,u=o.pendingOperations,s=a.then((function(){i._cache.delete(e)})).catch((function(r){i._cache.delete(e)}));return s.displayName=a.displayName,this._cache.set(e,{kind:"pending",pendingOperations:u,promise:s,result:n}),{promise:s,pendingOperations:u}},r._updatePluralSnapshot=function(e,r,t,n,i){var o,u=this._cache.get(e);if(R(u))x(t.selector.node.name);else{var s=null==u||null===(o=u.result)||void 0===o?void 0:o.snapshot;if(!s||Array.isArray(s)){var c=s?(0,a.default)(s):(0,a.default)(r);c[n]=t,this._cache.set(e,{kind:"done",result:F(e,c,i)})}else x(t.selector.node.name)}},e}();function x(e){l(!1)}function w(e){return new D(e)}var I=C?new WeakMap:new Map;e.exports={createFragmentResource:w,getFragmentResourceForEnvironment:function(e){var r=I.get(e);if(r)return r;var t=w(e);return I.set(e,t),t}}},function(e,r,t){"use strict";var n=t(3),i=function(){function e(e){this._capacity=e,this._capacity>0||n(!1),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 i(e)}}},function(e,r,t){"use strict";var n=t(4)(t(11)),i=t(3),o=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&&i(!1),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),i=null,o=function(){clearTimeout(i),i=null,t._releaseTemporaryRetain=null,n.dispose()};return i=setTimeout(o,3e5),null===(r=this._releaseTemporaryRetain)||void 0===r||r.call(this),this._releaseTemporaryRetain=o,{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=o},function(e,r,t){"use strict";var n=t(9),i=t(12),o=i.getQueryCacheIdentifier,a=i.getQueryResourceForEnvironment,u=t(21),s=t(10),c=t(2),l=t(0),f=l.useContext,d=l.useEffect,p=l.useState,v=l.useRef;e.exports=function(e){var r=e.query,t=e.componentDisplayName,i=e.fetchObservable,l=e.fetchPolicy,h=e.fetchKey,m=e.renderPolicy,y=c(),g=f(n),_=a(y),b=p(0),R=b[0],E=b[1],P=u(),C=P.startFetch,S=P.completeFetch,k="".concat(R,"-").concat(null!=h?h:""),F=o(y,r,l,m,k),q=g.wrapPrepareQueryResource((function(){return _.prepareWithIdentifier(F,r,i,l,m,{start:C,complete:S,error:S},g)})),D=v(!1);d((function(){return function(){D.current=!0}}),[]),d((function(){if(!0===D.current)return D.current=!1,void E((function(e){return e+1}));var e=_.retain(q,g);return function(){e.dispose()}}),[y,F]),d((function(){_.releaseTemporaryRetain(q)}));var x=q.fragmentNode,w=q.fragmentRef;return s(x,w,t).data}},function(e,r,t){"use strict";var n=t(0),i=n.useCallback,o=n.useEffect,a=n.useRef;e.exports=function(){var e=a(null),r=a(!1),t=i((function(){null!=e.current&&(e.current.unsubscribe(),e.current=null),r.current=!1}),[]),n=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:n,disposeFetch:t,completeFetch:u}}},function(e,r,t){"use strict";var n=t(32),i=t(0),o=t(1),a=o.createOperationDescriptor,u=o.getRequest,s=i.useMemo;e.exports=function(e,r,t){var i=n(r)[0],o=n(t||{})[0];return s((function(){return a(u(e),i,o)}),[e,i,o])}},function(e,r,t){"use strict";var n=t(4)(t(7)),i=t(17).getFragmentResourceForEnvironment,o=t(9),a=t(12).getQueryResourceForEnvironment,u=t(10),s=t(8),c=t(24),l=t(2),f=t(3),d=t(0),p=d.useCallback,v=d.useContext,h=d.useReducer,m=t(1),y=m.__internal.fetchQuery,g=m.createOperationDescriptor,_=m.getFragmentIdentifier,b=m.getRefetchMetadata,R=m.getSelector,E=m.getValueAtPath;t(5);function P(e,r){switch(r.type){case"refetch":var t;return(0,n.default)((0,n.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")}}e.exports=function(e,r,t){var d=l(),m=b(e,t),C=m.refetchableRequest,S=m.fragmentRefPathInResponse,k=m.identifierField,F=_(e,r),q=h(P,{fetchPolicy:void 0,mirroredEnvironment:d,mirroredFragmentIdentifier:F,onComplete:void 0,refetchEnvironment:null,refetchQuery:null,renderPolicy:void 0}),D=q[0],x=q[1],w=D.fetchPolicy,I=D.mirroredEnvironment,N=D.mirroredFragmentIdentifier,A=D.onComplete,Q=D.refetchEnvironment,O=D.refetchQuery,M=D.renderPolicy,T=null!=Q?Q:d,L=a(T),U=i(T),j=v(o),W=T!==I||F!==N,V=c(C),B=V[0],K=V[1],H=V[2],G=r;if(W)x({type:"reset",environment:T,fragmentIdentifier:F}),H();else if(null!=O&&null!=B){0;var z=function(e){A&&A(null!=e?e:null)},Y=null!=B.source?B.source:y(T,O),X=j.wrapPrepareQueryResource((function(){return L.prepare(O,Y,w,M,{error:z,complete:function(){z()}},B.fetchKey,j)})),J=U.read(X.fragmentNode,X.fragmentRef,t).data;null==J&&f(!1),G=E(J,S)}var Z=u(e,G,t),$=Z.data,ee=Z.disableStoreUpdates,re=Z.enableStoreUpdates;return{fragmentData:$,fragmentRef:G,refetch:function(e,r,t,i,o,a,u,c,l,f,d){var v=s(),h=null!=c&&null!=i&&"object"==typeof i?i[c]:null;return p((function(e,i){if(!0!==v.current)return{dispose:function(){}};var o,u,s=null==i?void 0:i.__environment,p=null==i?void 0:i.fetchPolicy,m=null==i?void 0:i.UNSTABLE_renderPolicy,y=null==i?void 0:i.onComplete,_=R(a,f);if(null==_)o={},u={};else if("PluralReaderSelector"===_.kind){var b,E,P,C;o=null!==(b=null===(E=_.selectors[0])||void 0===E?void 0:E.owner.variables)&&void 0!==b?b:{},u=null!==(P=null===(C=_.selectors[0])||void 0===C?void 0:C.variables)&&void 0!==P?P:{}}else o=_.owner.variables,u=_.variables;var S=(0,n.default)((0,n.default)((0,n.default)({},o),u),e);null==c||e.hasOwnProperty("id")||(S.id=h);var k=g(d,S,{force:!0});return l(k.request.variables,{fetchPolicy:p,__environment:s,__nameForWarning:"refetch"}),r({type:"refetch",fetchPolicy:p,onComplete:y,refetchEnvironment:s,refetchQuery:k,renderPolicy:m}),{dispose:t}}),[o,r,t,h,l])}(0,x,H,$,F,e,0,k,K,r,C),disableStoreUpdates:ee,enableStoreUpdates:re}}},function(e,r,t){"use strict";var n=t(4)(t(16)),i=t(6),o=i.loadQuery,a=i.useTrackLoadQueryInRender,u=t(8),s=t(2),c=t(0),l=c.useCallback,f=c.useEffect,d=c.useRef,p=c.useState,v=t(1).getRequest,h={kind:"NullQueryReference"};function m(e){return"PreloadableConcreteRequest"===e.kind?void 0!==e.params.metadata.live:void 0!==v(e).params.metadata.live}e.exports=function(e,r){var t=null!=r?r:h,i=s();a();var c=u(),v=d(new Set([t])),y=p((function(){return t})),g=y[0],_=y[1],b=p((function(){return t})),R=b[0],E=b[1];t!==R&&(v.current.add(t),E(t),_(t));var P=l((function(){c.current&&(v.current.add(h),_(h))}),[c]),C=l((function(r,t){var n=null!=t&&t.hasOwnProperty("__environment")?{fetchPolicy:t.fetchPolicy,networkCacheConfig:t.networkCacheConfig,__nameForWarning:t.__nameForWarning}:t;if(c.current){var a,u=o(null!==(a=null==t?void 0:t.__environment)&&void 0!==a?a:i,e,r,n);v.current.add(u),_(u)}}),[i,e,_,c]),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&&C(g.variables,{fetchPolicy:g.fetchPolicy,networkCacheConfig:g.networkCacheConfig}));var r=v.current;if(c.current){var t,i=(0,n.default)(r);try{for(i.s();!(t=i.n()).done;){var o=t.value;if(o===g)break;r.delete(o),"NullQueryReference"!==o.kind&&(m(e)?o.dispose&&o.dispose():o.releaseQuery&&o.releaseQuery())}}catch(e){i.e(e)}finally{i.f()}}}),[g,c,C,e]),f((function(){return function(){var r,t=(0,n.default)(v.current);try{for(t.s();!(r=t.n()).done;){var i=r.value;"NullQueryReference"!==i.kind&&(m(e)?i.dispose&&i.dispose():i.releaseQuery&&i.releaseQuery())}}catch(e){t.e(e)}finally{t.f()}}}),[e]),["NullQueryReference"===g.kind?null:g,C,P]}},function(e,r,t){"use strict";var n=t(26),i=t(15),o=t(6).loadQuery,a=t(27),u=t(28),s=t(29),c=t(31),l=t(34),f=t(35),d=t(38),p=t(24),v=t(39),h=t(2),m=t(40),y=t(41),g=t(1);e.exports={ConnectionHandler:g.ConnectionHandler,applyOptimisticMutation:g.applyOptimisticMutation,commitLocalUpdate:g.commitLocalUpdate,commitMutation:g.commitMutation,graphql:g.graphql,readInlineData:g.readInlineData,requestSubscription:g.requestSubscription,EntryPointContainer:n,RelayEnvironmentProvider:a,fetchQuery:g.fetchQuery,loadQuery:o,loadEntryPoint:i,useFragment:s,useLazyLoadQuery:c,useEntryPointLoader:u,useQueryLoader:p,useMutation:l,usePaginationFragment:f,usePreloadedQuery:d,useRefetchableFragment:v,useRelayEnvironment:h,useSubscribeToInvalidationState:m,useSubscription:y}},function(e,r,t){"use strict";var n=t(9),i=t(2),o=t(0),a=t(0),u=a.useContext,s=a.useEffect;t(5);e.exports=function(e){var r=e.entryPointReference,t=e.props,a=r.getComponent,c=r.queries,l=r.entryPoints,f=r.extraProps,d=r.rootModuleID,p=a(),v=u(n),h=i();return s((function(){h.__log({name:"entrypoint.root.consume",profilerContext:v,rootModuleID:d})}),[h,v,d]),o.createElement(p,{entryPoints:l,extraProps:f,props:t,queries:c})}},function(e,r,t){"use strict";var n=t(0),i=t(14),o=n.useMemo;e.exports=function(e){var r=e.children,t=e.environment,a=e.getEnvironmentForActor,u=o((function(){return{environment:t,getEnvironmentForActor:a}}),[t,a]);return n.createElement(i.Provider,{value:u},r)}},function(e,r,t){"use strict";var n=t(4)(t(16)),i=t(15),o=t(6).useTrackLoadQueryInRender,a=t(8),u=t(0),s=u.useCallback,c=u.useEffect,l=u.useRef,f=u.useState,d={kind:"NullEntryPointReference"};e.exports=function(e,r,t){var u,p,v,h;o();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!==(v=null==t||null===(h=t.TEST_ONLY__initialEntryPointData)||void 0===h?void 0:h.entryPointParams)&&void 0!==v?v:null,g=a(),_=l(new Set([m])),b=f(m),R=b[0],E=b[1],P=f(y),C=P[0],S=P[1],k=s((function(){if(g.current){var e={kind:"NullEntryPointReference"};_.current.add(e),E(e)}}),[E,g]),F=s((function(t){if(g.current){var n=i(e,r,t);_.current.add(n),E(n),S(t)}}),[e,r,E,g]),q=l(!1);return c((function(){return function(){q.current=!0}}),[]),c((function(){if(!0===q.current)return q.current=!1,void("NullEntryPointReference"!==R.kind&&null!=C&&F(C));var e=_.current;if(g.current){var r,t=(0,n.default)(e);try{for(t.s();!(r=t.n()).done;){var i=r.value;if(i===R)break;e.delete(i),"NullEntryPointReference"!==i.kind&&i.dispose()}}catch(e){t.e(e)}finally{t.f()}}}),[R,C,F,g]),c((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"===R.kind?null:R,F,k]}},function(e,r,t){"use strict";var n=t(6).useTrackLoadQueryInRender,i=t(10),o=t(13),a=(t(0).useDebugValue,t(1).getFragment);e.exports=function(e,r){n();var t=a(e);return o(t,"first argument of useFragment()"),i(t,r,"useFragment()").data}},function(e,r){e.exports=c},function(e,r,t){"use strict";var n=t(6).useTrackLoadQueryInRender,i=t(20),o=t(22),a=t(2),u=t(1).__internal.fetchQuery;e.exports=function(e,r,t){n();var s=a(),c=o(e,r,t&&t.networkCacheConfig?t.networkCacheConfig:{force:!0});return i({componentDisplayName:"useLazyLoadQuery()",fetchKey:null==t?void 0:t.fetchKey,fetchObservable:u(s,c),fetchPolicy:null==t?void 0:t.fetchPolicy,query:c,renderPolicy:null==t?void 0:t.UNSTABLE_renderPolicy})}},function(e,r,t){"use strict";var n=t(33),i=t(0),o=i.useMemo,a=i.useRef,u=i.useState;e.exports=function(e){var r,t,i=a(0),s=u(e),c=s[0],l=s[1];return n(e,c)||(i.current=(null!==(t=i.current)&&void 0!==t?t:0)+1,l(e)),[o((function(){return e}),[i.current]),null!==(r=i.current)&&void 0!==r?r:0]}},function(e,r){e.exports=l},function(e,r,t){"use strict";var n=t(4)(t(7)),i=t(8),o=t(2),a=t(0),u=t(1).commitMutation,s=a.useState,c=a.useEffect,l=a.useRef,f=a.useCallback;e.exports=function(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:u,t=o(),a=i(),d=l(t),p=l(e),v=l(new Set),h=s(!1),m=h[0],y=h[1],g=f((function(r){d.current===t&&p.current===e&&(v.current.delete(r),a.current&&y(v.current.size>0))}),[t,a,e]);c((function(){d.current===t&&p.current===e||(v.current=new Set,a.current&&y(!1),d.current=t,p.current=e)}),[t,a,e]);var _=f((function(i){var o=r(t,(0,n.default)((0,n.default)({},i),{},{mutation:e,onCompleted:function(e,r){var t;g(o),null===(t=i.onCompleted)||void 0===t||t.call(i,e,r)},onError:function(e){var r;g(o),null===(r=i.onError)||void 0===r||r.call(i,e)},onUnsubscribe:function(){var e;g(o),null===(e=i.onUnsubscribe)||void 0===e||e.call(i)},onNext:function(){var e;null===(e=i.onNext)||void 0===e||e.call(i)}}));return v.current.add(o),a.current&&y(!0),o}),[g,r,t,a,e]);return[_,m]}},function(e,r,t){"use strict";var n=t(4)(t(7)),i=t(36),o=t(23),a=t(13),u=t(0),s=u.useCallback,c=(u.useDebugValue,u.useState),l=t(1),f=l.getFragment,d=l.getFragmentIdentifier,p=l.getPaginationMetadata;function v(e){var r=c(!1),t=r[0],o=r[1],a={start:function(){return o(!0)},complete:function(){return o(!1)},error:function(){return o(!1)}},u=i((0,n.default)((0,n.default)({},e),{},{observer:a,onReset:function(){return o(!1)}}));return[u[0],u[1],t,u[2]]}e.exports=function(e,r){var t=f(e);a(t,"first argument of usePaginationFragment()");var i=p(t,"usePaginationFragment()"),u=i.connectionPathInFragmentData,c=i.paginationRequest,l=i.paginationMetadata,h=i.identifierField,m=o(t,r,"usePaginationFragment()"),y=m.fragmentData,g=m.fragmentRef,_=m.refetch,b=d(t,g),R=v({componentDisplayName:"usePaginationFragment()",connectionPathInFragmentData:u,direction:"backward",fragmentData:y,fragmentIdentifier:b,fragmentNode:t,fragmentRef:g,identifierField:h,paginationMetadata:l,paginationRequest:c}),E=R[0],P=R[1],C=R[2],S=R[3],k=v({componentDisplayName:"usePaginationFragment()",connectionPathInFragmentData:u,direction:"forward",fragmentData:y,fragmentIdentifier:b,fragmentNode:t,fragmentRef:g,identifierField:h,paginationMetadata:l,paginationRequest:c}),F=k[0],q=k[1],D=k[2],x=k[3];return{data:y,loadNext:F,loadPrevious:E,hasNext:q,hasPrevious:P,isLoadingNext:D,isLoadingPrevious:C,refetch:s((function(e,r){return x(),S(),_(e,(0,n.default)((0,n.default)({},r),{},{__environment:void 0}))}),[x,S,_])}}},function(e,r,t){"use strict";var n=t(4)(t(7)),i=t(21),o=t(8),a=t(37),u=t(2),s=t(3),c=t(0),l=c.useCallback,f=c.useEffect,d=c.useState,p=t(1),v=p.ConnectionInterface,h=p.__internal.fetchQuery,m=p.createOperationDescriptor,y=p.getPaginationVariables,g=p.getSelector,_=p.getValueAtPath;t(5);e.exports=function(e){var r=e.direction,t=e.fragmentNode,c=e.fragmentRef,p=e.fragmentIdentifier,b=e.fragmentData,R=e.connectionPathInFragmentData,E=e.paginationRequest,P=e.paginationMetadata,C=e.componentDisplayName,S=e.observer,k=e.onReset,F=e.identifierField,q=u(),D=i(),x=D.isFetchingRef,w=D.startFetch,I=D.disposeFetch,N=D.completeFetch,A=null!=F&&null!=b&&"object"==typeof b?b[F]:null,Q=o(),O=d(q),M=O[0],T=O[1],L=d(p),U=L[0],j=L[1],W=a(t,c);(q!==M||p!==U)&&(I(),k(),T(q),j(p));var V=function(e,r,t,n){var i,o,a=v.get(),u=a.EDGES,c=a.PAGE_INFO,l=a.HAS_NEXT_PAGE,f=a.HAS_PREV_PAGE,d=a.END_CURSOR,p=a.START_CURSOR,h=_(t,n);if(null==h)return{cursor:null,hasMore:!1};"object"!=typeof h&&s(!1);var m=h[u],y=h[c];if(null==m||null==y)return{cursor:null,hasMore:!1};Array.isArray(m)||s(!1),"object"!=typeof y&&s(!1);var g,b="forward"===e?null!==(i=y[d])&&void 0!==i?i:null:null!==(o=y[p])&&void 0!==o?o:null;null!==b&&"string"!=typeof b&&s(!1),g="forward"===e?null!=b&&!0===y[l]:null!=b&&!0===y[f];return{cursor:b,hasMore:g}}(r,0,b,R),B=V.cursor,K=V.hasMore;return f((function(){return function(){I()}}),[I]),[l((function(e,i){var o=null==i?void 0:i.onComplete;if(!0!==Q.current)return{dispose:function(){}};var a=g(t,c);if(!0===x.current||null==b||W)return o&&o(null),{dispose:function(){}};(null==a||"PluralReaderSelector"===a.kind)&&s(!1);var u=a.owner.variables,l=a.variables,f=null==i?void 0:i.UNSTABLE_extraVariables,d=(0,n.default)((0,n.default)({},u),l),p=y(r,e,B,d,(0,n.default)({},f),P);null!=F&&(p.id=A);var v=m(E,p,{force:!0});return h(q,v).subscribe((0,n.default)((0,n.default)({},S),{},{start:function(e){w(e),S.start&&S.start(e)},complete:function(){N(),S.complete&&S.complete(),o&&o(null)},error:function(e){N(),S.error&&S.error(e),o&&o(e)}})),{dispose:I}}),[q,A,r,B,w,I,N,x,W,b,t.name,c,C]),K,I]}},function(e,r,t){"use strict";var n=t(2),i=t(3),o=t(0),a=t(1),u=a.__internal.getObservableForActiveRequest,s=a.getSelector,c=o.useEffect,l=o.useState,f=o.useMemo;e.exports=function(e,r){var t=n(),o=f((function(){var n=s(e,r);return null==n?null:("SingularReaderSelector"!==n.kind&&i(!1),u(t,n.owner))}),[t,e,r]),a=l(null!=o),d=a[0],p=a[1];return c((function(){var e;if(p(null!=o),null!=o){var r=function(){p(!1)};e=o.subscribe({complete:r,error:r})}return function(){e&&e.unsubscribe()}}),[o]),d}},function(e,r,t){"use strict";var n=t(6).useTrackLoadQueryInRender,i=t(20),o=t(22),a=t(2),u=t(3),s=(t(0).useDebugValue,t(1).__internal),c=s.fetchQueryDeduped,l=s.fetchQuery;t(5);e.exports=function(e,r,t){n();var s,f=a(),d=r.fetchKey,p=r.fetchPolicy,v=r.source,h=r.variables,m=r.networkCacheConfig,y=o(e,h,m);if("PreloadedQuery_DEPRECATED"===r.kind)y.request.node.params.name!==r.name&&u(!1),s={componentDisplayName:"usePreloadedQuery()",fetchKey:d,fetchObservable:c(f,y.request.identifier,(function(){return f===r.environment&&null!=v?f.executeWithSource({operation:y,source:v}):f.execute({operation:y})})),fetchPolicy:p,query:y,renderPolicy:null==t?void 0:t.UNSTABLE_renderPolicy};else{var g=l(f,y);s={componentDisplayName:"usePreloadedQuery()",fetchObservable:null!=v&&f===r.environment?v.ifEmpty(g):(r.environment,g),fetchKey:d,fetchPolicy:p,query:y,renderPolicy:null==t?void 0:t.UNSTABLE_renderPolicy}}return i(s)}},function(e,r,t){"use strict";var n=t(23),i=t(13),o=(t(0).useDebugValue,t(1).getFragment);e.exports=function(e,r){var t=o(e);i(t,"first argument of useRefetchableFragment()");var a=n(t,r,"useRefetchableFragment()");return[a.fragmentData,a.refetch]}},function(e,r,t){"use strict";var n=t(2),i=t(0),o=i.useEffect,a=i.useRef;e.exports=function(e,r){var t=n(),i=a(null),u=Array.from(e).sort().join("");return o((function(){var n=t.getStore(),o=n.lookupInvalidationState(e),a=n.subscribeToInvalidationState(o,r);return i.current=a,function(){return a.dispose()}}),[u,r,t]),{dispose:function(){null!=i.current&&i.current.dispose()}}}},function(e,r,t){"use strict";var n=t(2),i=t(0).useEffect,o=t(1).requestSubscription;e.exports=function(e,r){var t=null!=r?r:o,a=n();i((function(){return t(a,e).dispose}),[a,e,t])}}])}));