react-relay 16.1.0 → 17.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (80) hide show
  1. package/ReactRelayContext.js +1 -1
  2. package/ReactRelayFragmentContainer.js.flow +8 -6
  3. package/ReactRelayLocalQueryRenderer.js.flow +4 -1
  4. package/ReactRelayPaginationContainer.js.flow +2 -0
  5. package/ReactRelayQueryRenderer.js.flow +1 -1
  6. package/ReactRelayTypes.js.flow +1 -0
  7. package/buildReactRelayContainer.js.flow +5 -3
  8. package/getRootVariablesForFragments.js.flow +1 -0
  9. package/hooks.js +1 -1
  10. package/hooks.js.flow +1 -1
  11. package/index.js +1 -1
  12. package/index.js.flow +1 -1
  13. package/legacy.js +1 -1
  14. package/lib/ReactRelayFragmentContainer.js +2 -2
  15. package/lib/buildReactRelayContainer.js +3 -3
  16. package/lib/relay-hooks/SuspenseResource.js +7 -4
  17. package/lib/relay-hooks/{FragmentResource.js → legacy/FragmentResource.js} +19 -20
  18. package/lib/relay-hooks/{useBlockingPaginationFragment.js → legacy/useBlockingPaginationFragment.js} +2 -2
  19. package/lib/relay-hooks/{useFragmentNode.js → legacy/useFragmentNode.js} +2 -2
  20. package/lib/relay-hooks/{useRefetchableFragmentNode.js → legacy/useRefetchableFragmentNode.js} +8 -8
  21. package/lib/relay-hooks/{experimental/readFragmentInternal_EXPERIMENTAL.js → readFragmentInternal.js} +7 -5
  22. package/lib/relay-hooks/useFragment.js +3 -13
  23. package/lib/relay-hooks/{experimental/useFragmentInternal_EXPERIMENTAL.js → useFragmentInternal.js} +67 -31
  24. package/lib/relay-hooks/useLazyLoadQueryNode.js +2 -13
  25. package/lib/relay-hooks/usePaginationFragment.js +17 -13
  26. package/lib/relay-hooks/useRefetchableFragment.js +3 -12
  27. package/lib/relay-hooks/{experimental/useRefetchableFragmentInternal_EXPERIMENTAL.js → useRefetchableFragmentInternal.js} +7 -7
  28. package/multi-actor/useRelayActorEnvironment.js.flow +1 -1
  29. package/package.json +2 -2
  30. package/react-relay-hooks.js +2 -2
  31. package/react-relay-hooks.min.js +2 -2
  32. package/react-relay-legacy.js +2 -2
  33. package/react-relay-legacy.min.js +2 -2
  34. package/react-relay.js +2 -2
  35. package/react-relay.min.js +2 -2
  36. package/relay-hooks/EntryPointTypes.flow.js.flow +22 -27
  37. package/relay-hooks/LazyLoadEntryPointContainer_DEPRECATED.react.js.flow +14 -1
  38. package/relay-hooks/NestedRelayEntryPointBuilderUtils.js.flow +5 -11
  39. package/relay-hooks/SuspenseResource.js.flow +11 -8
  40. package/relay-hooks/__flowtests__/useBlockingPaginationFragment-flowtest.js.flow +22 -1
  41. package/relay-hooks/__flowtests__/usePaginationFragment-flowtest.js.flow +19 -0
  42. package/relay-hooks/__flowtests__/useRefetchableFragment-flowtest.js.flow +22 -0
  43. package/relay-hooks/{FragmentResource.js.flow → legacy/FragmentResource.js.flow} +21 -21
  44. package/relay-hooks/{useBlockingPaginationFragment.js.flow → legacy/useBlockingPaginationFragment.js.flow} +6 -6
  45. package/relay-hooks/{useFragmentNode.js.flow → legacy/useFragmentNode.js.flow} +3 -3
  46. package/relay-hooks/{useRefetchableFragmentNode.js.flow → legacy/useRefetchableFragmentNode.js.flow} +9 -9
  47. package/relay-hooks/loadQuery.js.flow +9 -8
  48. package/relay-hooks/{experimental/readFragmentInternal_EXPERIMENTAL.js.flow → readFragmentInternal.js.flow} +8 -4
  49. package/relay-hooks/useClientQuery.js.flow +1 -1
  50. package/relay-hooks/useEntryPointLoader.js.flow +1 -1
  51. package/relay-hooks/useFetchTrackingRef.js.flow +1 -1
  52. package/relay-hooks/useFragment.js.flow +16 -22
  53. package/relay-hooks/{experimental/useFragmentInternal_EXPERIMENTAL.js.flow → useFragmentInternal.js.flow} +71 -19
  54. package/relay-hooks/useIsMountedRef.js.flow +1 -1
  55. package/relay-hooks/useIsOperationNodeActive.js.flow +1 -1
  56. package/relay-hooks/useIsParentQueryActive.js.flow +5 -2
  57. package/relay-hooks/useLazyLoadQuery.js.flow +3 -2
  58. package/relay-hooks/useLazyLoadQueryNode.js.flow +3 -19
  59. package/relay-hooks/useLoadMoreFunction.js.flow +1 -1
  60. package/relay-hooks/useMemoOperationDescriptor.js.flow +1 -1
  61. package/relay-hooks/useMemoVariables.js.flow +1 -1
  62. package/relay-hooks/useMutation.js.flow +1 -1
  63. package/relay-hooks/usePaginationFragment.js.flow +62 -50
  64. package/relay-hooks/usePreloadedQuery.js.flow +2 -1
  65. package/relay-hooks/useQueryLoader.js.flow +2 -5
  66. package/relay-hooks/useRefetchableFragment.js.flow +7 -37
  67. package/relay-hooks/{experimental/useRefetchableFragmentInternal_EXPERIMENTAL.js.flow → useRefetchableFragmentInternal.js.flow} +11 -11
  68. package/relay-hooks/useRelayEnvironment.js.flow +1 -1
  69. package/relay-hooks/useStaticFragmentNodeWarning.js.flow +3 -1
  70. package/relay-hooks/useSubscribeToInvalidationState.js.flow +1 -1
  71. package/relay-hooks/useSubscription.js.flow +1 -1
  72. package/relay-hooks/useUnsafeRef_DEPRECATED.js.flow +1 -1
  73. package/lib/relay-hooks/HooksImplementation.js +0 -15
  74. package/lib/relay-hooks/experimental/useFragment_EXPERIMENTAL.js +0 -26
  75. package/lib/relay-hooks/experimental/usePaginationFragment_EXPERIMENTAL.js +0 -127
  76. package/lib/relay-hooks/experimental/useRefetchableFragment_EXPERIMENTAL.js +0 -23
  77. package/relay-hooks/HooksImplementation.js.flow +0 -45
  78. package/relay-hooks/experimental/useFragment_EXPERIMENTAL.js.flow +0 -66
  79. package/relay-hooks/experimental/usePaginationFragment_EXPERIMENTAL.js.flow +0 -161
  80. package/relay-hooks/experimental/useRefetchableFragment_EXPERIMENTAL.js.flow +0 -49
package/react-relay.js CHANGED
@@ -1,4 +1,4 @@
1
1
  /**
2
- * Relay v16.1.0
2
+ * Relay v17.0.0
3
3
  */
4
- !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("@babel/runtime/helpers/assertThisInitialized"),require("@babel/runtime/helpers/createForOfIteratorHelper"),require("@babel/runtime/helpers/defineProperty"),require("@babel/runtime/helpers/extends"),require("@babel/runtime/helpers/inheritsLoose"),require("@babel/runtime/helpers/interopRequireDefault"),require("@babel/runtime/helpers/objectSpread2"),require("@babel/runtime/helpers/objectWithoutPropertiesLoose"),require("@babel/runtime/helpers/toConsumableArray"),require("fbjs/lib/areEqual"),require("fbjs/lib/warning"),require("invariant"),require("react"),require("relay-runtime")):"function"==typeof define&&define.amd?define(["@babel/runtime/helpers/assertThisInitialized","@babel/runtime/helpers/createForOfIteratorHelper","@babel/runtime/helpers/defineProperty","@babel/runtime/helpers/extends","@babel/runtime/helpers/inheritsLoose","@babel/runtime/helpers/interopRequireDefault","@babel/runtime/helpers/objectSpread2","@babel/runtime/helpers/objectWithoutPropertiesLoose","@babel/runtime/helpers/toConsumableArray","fbjs/lib/areEqual","fbjs/lib/warning","invariant","react","relay-runtime"],t):"object"==typeof exports?exports.ReactRelay=t(require("@babel/runtime/helpers/assertThisInitialized"),require("@babel/runtime/helpers/createForOfIteratorHelper"),require("@babel/runtime/helpers/defineProperty"),require("@babel/runtime/helpers/extends"),require("@babel/runtime/helpers/inheritsLoose"),require("@babel/runtime/helpers/interopRequireDefault"),require("@babel/runtime/helpers/objectSpread2"),require("@babel/runtime/helpers/objectWithoutPropertiesLoose"),require("@babel/runtime/helpers/toConsumableArray"),require("fbjs/lib/areEqual"),require("fbjs/lib/warning"),require("invariant"),require("react"),require("relay-runtime")):e.ReactRelay=t(e["@babel/runtime/helpers/assertThisInitialized"],e["@babel/runtime/helpers/createForOfIteratorHelper"],e["@babel/runtime/helpers/defineProperty"],e["@babel/runtime/helpers/extends"],e["@babel/runtime/helpers/inheritsLoose"],e["@babel/runtime/helpers/interopRequireDefault"],e["@babel/runtime/helpers/objectSpread2"],e["@babel/runtime/helpers/objectWithoutPropertiesLoose"],e["@babel/runtime/helpers/toConsumableArray"],e["fbjs/lib/areEqual"],e["fbjs/lib/warning"],e.invariant,e.react,e["relay-runtime"])}(self,((e,t,r,n,a,o,i,s,u,l,c,f,d,h)=>(()=>{"use strict";var p={7426:e=>{function t(e){return e.displayName||e.name||"Component"}e.exports={getComponentName:t,getContainerName:function(e){return"Relay("+t(e)+")"}}},9888:(e,t,r)=>{var n=r(8156),a=r(6658).__internal.createRelayContext;e.exports=a(n)},7362:(e,t,r)=>{var n=r(5275).default,a=n(r(6175)),o=n(r(5264)),i=n(r(5383)),s=n(r(8296)),u=n(r(311)),l=["componentRef","__relayContext","__rootIsQueryRenderer"],c=r(3089),f=r(7426).getContainerName,d=r(8827).assertRelayContext,h=r(9125),p=r(8156),v=r(6658),m=v.createFragmentSpecResolver,y=v.getDataIDsFromObject,g=v.isScalarAndEqual;function _(e,t){var r,n=f(e);return r=function(r){function c(e){var a,o;o=r.call(this,e)||this,(0,u.default)((0,i.default)(o),"_handleFragmentDataUpdate",(function(){var e=o.state.resolver;o.setState((function(t){return e===t.resolver?{data:t.resolver.resolve(),relayProp:b(t.relayProp.environment)}:null}))}));var s=d(e.__relayContext),l=null!==(a=e.__rootIsQueryRenderer)&&void 0!==a&&a,c=m(s,n,t,e,l);return o.state={data:c.resolve(),prevProps:e,prevPropsContext:s,relayProp:b(s.environment),resolver:c},o}(0,s.default)(c,r),c.getDerivedStateFromProps=function(e,r){var a,o=r.prevProps,i=d(e.__relayContext),s=null!==(a=e.__rootIsQueryRenderer)&&void 0!==a&&a,u=y(t,o),l=y(t,e),c=r.resolver;if(r.prevPropsContext.environment!==i.environment||!h(u,l))return{data:(c=m(i,n,t,e,s)).resolve(),prevPropsContext:i,prevProps:e,relayProp:b(i.environment),resolver:c};c.setProps(e);var f=c.resolve();return f!==r.data?{data:f,prevProps:e,prevPropsContext:i,relayProp:b(i.environment)}:null};var f=c.prototype;return f.componentDidMount=function(){this._subscribeToNewResolverAndRerenderIfStoreHasChanged()},f.componentDidUpdate=function(e,t){this.state.resolver!==t.resolver?(t.resolver.dispose(),this._subscribeToNewResolverAndRerenderIfStoreHasChanged()):this._rerenderIfStoreHasChanged()},f.componentWillUnmount=function(){this.state.resolver.dispose()},f.shouldComponentUpdate=function(e,r){if(r.data!==this.state.data)return!0;for(var n=Object.keys(e),a=0;a<n.length;a++){var o=n[a];if("__relayContext"===o){if(r.prevPropsContext.environment!==this.state.prevPropsContext.environment)return!0}else if(!t.hasOwnProperty(o)&&!g(e[o],this.props[o]))return!0}return!1},f._rerenderIfStoreHasChanged=function(){var e=this.state,t=e.data,r=e.resolver.resolve();t!==r&&this.setState({data:r})},f._subscribeToNewResolverAndRerenderIfStoreHasChanged=function(){var e=this.state,t=e.data,r=e.resolver,n=r.resolve();r.setCallback(this.props,this._handleFragmentDataUpdate),t!==n&&this.setState({data:n})},f.render=function(){var t=this.props,r=t.componentRef,n=(t.__relayContext,t.__rootIsQueryRenderer,(0,o.default)(t,l));return p.createElement(e,(0,a.default)((0,a.default)((0,a.default)({},n),this.state.data),{},{ref:r,relay:this.state.relayProp}))},c}(p.Component),(0,u.default)(r,"displayName",n),r}function b(e){return{environment:e}}e.exports={createContainer:function(e,t){return c(e,t,_)}}},1428:(e,t,r)=>{var n=r(9888),a=r(7239),o=r(9125),i=r(8156),s=r(6658),u=s.createOperationDescriptor,l=s.deepFreeze,c=s.getRequest,f=i.useLayoutEffect,d=i.useState,h=i.useRef,p=i.useMemo,v={rootIsQueryRenderer:!0};e.exports=function(e){var t,r,s=e.environment,m=e.query,y=e.variables,g=e.render,_=(t=y,r=i.useRef(t),o(r.current,t)||(l(t),r.current=t),r.current),b=p((function(){var e=c(m);return u(e,_)}),[m,_]),R=p((function(){return{environment:s}}),[s]),C=h(null),E=d(null)[1],P=h(null),S=p((function(){s.check(b);var e=s.lookup(b.fragment);C.current=e.data;var t=s.retain(b),r=s.subscribe(e,(function(e){C.current=e.data,E(C.current)})),n=!1;return P.current&&P.current(),P.current=function(){n||(n=!0,P.current=null,t.dispose(),r.dispose())},e}),[s,b]);return f((function(){var e=P.current;return function(){e&&e()}}),[S]),i.createElement(n.Provider,{value:R},i.createElement(a.Provider,{value:v},g({props:C.current})))}},3540:(e,t,r)=>{var n=r(5275).default,a=n(r(4924)),o=n(r(5264)),i=n(r(5383)),s=n(r(8296)),u=n(r(311)),l=n(r(6175)),c=["componentRef"],f=["componentRef","__relayContext","__rootIsQueryRenderer"],d=["componentRef","__relayContext","__rootIsQueryRenderer"],h=r(3089),p=r(8416),v=r(7426),m=v.getComponentName,y=v.getContainerName,g=r(9888),_=r(733),b=r(8827).assertRelayContext,R=r(9125),C=r(5056),E=r(8156),P=r(6658),S=P.ConnectionInterface,x=P.Observable,F=P.RelayFeatureFlags,q=P.createFragmentSpecResolver,I=P.createOperationDescriptor,D=P.getDataIDsFromObject,k=P.getRequest,A=P.getVariablesFromObject,N=P.isScalarAndEqual,O=r(4446),w="forward";function Q(e){return"function"==typeof e?{error:e,complete:e,unsubscribe:function(t){"function"==typeof e&&e()}}:e||{}}e.exports={createContainer:function(e,t,r){return h(e,t,(function(e,t){return function(e,t,r){var n,h=m(e),v=y(e),P=function(e){var t=null,r=!1;for(var n in e){var a=e[n],o=a.metadata&&a.metadata.connection;void 0!==a.metadata&&(r=!0),o&&(1!==o.length&&C(!1,"ReactRelayPaginationContainer: Only a single @connection is supported, `%s` has %s.",n,o.length),t&&C(!1,"ReactRelayPaginationContainer: Only a single fragment with @connection is supported."),t=(0,l.default)((0,l.default)({},o[0]),{},{fragmentName:n}))}return r&&null===t&&C(!1,"ReactRelayPaginationContainer: A @connection directive must be present."),t||{}}(t),T=r.getConnectionFromProps||function(e){var t=e.path;return t||C(!1,"ReactRelayPaginationContainer: Unable to synthesize a getConnectionFromProps function."),function(r){for(var n=r[e.fragmentName],a=0;a<t.length;a++){if(!n||"object"!=typeof n)return null;n=n[t[a]]}return n}}(P),L=r.direction||P.direction;L||C(!1,"ReactRelayPaginationContainer: Unable to infer direction of the connection, possibly because both first and last are provided.");var M=r.getFragmentVariables||function(e){var t=e.count;return t||C(!1,"ReactRelayPaginationContainer: Unable to synthesize a getFragmentVariables function."),function(e,r){return(0,l.default)((0,l.default)({},e),{},(0,u.default)({},t,r))}}(P);return n=function(n){function m(e){var r,a;a=n.call(this,e)||this,(0,u.default)((0,i.default)(a),"_handleFragmentDataUpdate",(function(){a.setState({data:a._resolver.resolve()})})),(0,u.default)((0,i.default)(a),"_hasMore",(function(){var e=a._getConnectionData();return!!(e&&e.hasMore&&e.cursor)})),(0,u.default)((0,i.default)(a),"_isLoading",(function(){return!!a._refetchSubscription})),(0,u.default)((0,i.default)(a),"_refetchConnection",(function(e,t,r){if(!a._canFetchPage("refetchConnection"))return{dispose:function(){}};a._refetchVariables=r;var n={count:e,cursor:null,totalCount:e};return{dispose:a._fetchPage(n,Q(t),{force:!0}).unsubscribe}})),(0,u.default)((0,i.default)(a),"_loadMore",(function(e,t,r){if(!a._canFetchPage("loadMore"))return{dispose:function(){}};var n=Q(t),o=a._getConnectionData();if(!o)return x.create((function(e){return e.complete()})).subscribe(n),null;var i=o.edgeCount+e;if(r&&r.force)return a._refetchConnection(i,t);var s=S.get(),u=s.END_CURSOR,l=s.START_CURSOR,c=o.cursor;O(null!=c&&""!==c,"ReactRelayPaginationContainer: Cannot `loadMore` without valid `%s` (got `%s`)",L===w?u:l,c);var f={count:e,cursor:c,totalCount:i};return{dispose:a._fetchPage(f,n,r).unsubscribe}}));var o=b(e.__relayContext),s=null!==(r=e.__rootIsQueryRenderer)&&void 0!==r&&r;return a._isARequestInFlight=!1,a._refetchSubscription=null,a._refetchVariables=null,!0===F.ENABLE_CONTAINERS_SUBSCRIBE_ON_COMMIT?a._resolver=q(o,v,t,e,s):a._resolver=q(o,v,t,e,s,a._handleFragmentDataUpdate),a.state={data:a._resolver.resolve(),prevContext:o,contextForChildren:o,relayProp:a._buildRelayProp(o),resolverGeneration:0},a._isUnmounted=!1,a._hasFetched=!1,a}(0,s.default)(m,n);var y=m.prototype;return y.componentDidMount=function(){this._isUnmounted=!1,!0===F.ENABLE_CONTAINERS_SUBSCRIBE_ON_COMMIT&&this._subscribeToNewResolverAndRerenderIfStoreHasChanged()},y.componentDidUpdate=function(e,t){!0===F.ENABLE_CONTAINERS_SUBSCRIBE_ON_COMMIT&&(t.resolverGeneration!==this.state.resolverGeneration?this._subscribeToNewResolverAndRerenderIfStoreHasChanged():this._rerenderIfStoreHasChanged())},y.UNSAFE_componentWillReceiveProps=function(e){var r,n=this,a=b(e.__relayContext),o=null!==(r=e.__rootIsQueryRenderer)&&void 0!==r&&r,i=D(t,this.props),s=D(t,e),u=p(t,this.props),l=p(t,e);a.environment===this.state.prevContext.environment&&R(u,l)&&R(i,s)?this._hasFetched||this._resolver.setProps(e):(this._cleanup(),!0===F.ENABLE_CONTAINERS_SUBSCRIBE_ON_COMMIT?this._resolver=q(a,v,t,e,o):this._resolver=q(a,v,t,e,o,this._handleFragmentDataUpdate),this.setState((function(e){return{prevContext:a,contextForChildren:a,relayProp:n._buildRelayProp(a),resolverGeneration:e.resolverGeneration+1}})));var c=this._resolver.resolve();c!==this.state.data&&this.setState({data:c})},y.componentWillUnmount=function(){this._isUnmounted=!0,this._cleanup()},y.shouldComponentUpdate=function(e,r){if(r.data!==this.state.data||r.relayProp!==this.state.relayProp||r.resolverGeneration!==this.state.resolverGeneration)return!0;for(var n=Object.keys(e),a=0;a<n.length;a++){var o=n[a];if("__relayContext"===o){if(r.prevContext.environment!==this.state.prevContext.environment)return!0}else if(!t.hasOwnProperty(o)&&!N(e[o],this.props[o]))return!0}return!1},y._buildRelayProp=function(e){return{hasMore:this._hasMore,isLoading:this._isLoading,loadMore:this._loadMore,refetchConnection:this._refetchConnection,environment:e.environment}},y._rerenderIfStoreHasChanged=function(){var e=this.state.data,t=this._resolver.resolve();e!==t&&this.setState({data:t})},y._subscribeToNewResolverAndRerenderIfStoreHasChanged=function(){var e=this.state.data,t=this._resolver.resolve();this._resolver.setCallback(this.props,this._handleFragmentDataUpdate),e!==t&&this.setState({data:t})},y._getConnectionData=function(){var e=this.props,t=(e.componentRef,(0,o.default)(e,c)),r=(0,l.default)((0,l.default)({},t),this.state.data),n=T(r);if(null==n)return null;var a=S.get(),i=a.EDGES,s=a.PAGE_INFO,u=a.HAS_NEXT_PAGE,f=a.HAS_PREV_PAGE,d=a.END_CURSOR,p=a.START_CURSOR;"object"!=typeof n&&C(!1,"ReactRelayPaginationContainer: Expected `getConnectionFromProps()` in `%s`to return `null` or a plain object with %s and %s properties, got `%s`.",h,i,s,n);var v=n[i],m=n[s];if(null==v||null==m)return null;Array.isArray(v)||C(!1,"ReactRelayPaginationContainer: Expected `getConnectionFromProps()` in `%s`to return an object with %s: Array, got `%s`.",h,i,v),"object"!=typeof m&&C(!1,"ReactRelayPaginationContainer: Expected `getConnectionFromProps()` in `%s`to return an object with %s: Object, got `%s`.",h,s,m);var y=L===w?m[u]:m[f],g=L===w?m[d]:m[p];return"boolean"!=typeof y||0!==v.length&&void 0===g?(O(!1,"ReactRelayPaginationContainer: Cannot paginate without %s fields in `%s`. Be sure to fetch %s (got `%s`) and %s (got `%s`).",s,h,L===w?u:f,y,L===w?d:p,g),null):{cursor:g,edgeCount:v.length,hasMore:y}},y._getQueryFetcher=function(){return this._queryFetcher||(this._queryFetcher=new _),this._queryFetcher},y._canFetchPage=function(e){return!this._isUnmounted||(O(!1,"ReactRelayPaginationContainer: Unexpected call of `%s` on unmounted container `%s`. It looks like some instances of your container still trying to fetch data but they already unmounted. Please make sure you clear all timers, intervals, async calls, etc that may trigger `%s` call.",e,v,e),!1)},y._fetchPage=function(e,n,a){var i,s=this,u=b(this.props.__relayContext).environment,c=this.props,d=(c.componentRef,c.__relayContext,c.__rootIsQueryRenderer,(0,o.default)(c,f)),v=(0,l.default)((0,l.default)({},d),this.state.data),m=p(t,d);i=A(t,d),i=(0,l.default)((0,l.default)((0,l.default)({},m),i),this._refetchVariables);var y=r.getVariables(v,{count:e.count,cursor:e.cursor},i);("object"!=typeof y||null===y)&&C(!1,"ReactRelayPaginationContainer: Expected `getVariables()` to return an object, got `%s` in `%s`.",y,h),y=(0,l.default)((0,l.default)({},y),this._refetchVariables),i=(0,l.default)((0,l.default)({},y),i);var g=a?{force:!!a.force}:void 0;null!=g&&null!=(null==a?void 0:a.metadata)&&(g.metadata=null==a?void 0:a.metadata);var _=k(r.query),E=I(_,y,g),P=null;this._refetchSubscription&&this._refetchSubscription.unsubscribe(),this._hasFetched=!0;var S=function(){s._refetchSubscription===P&&(s._refetchSubscription=null,s._isARequestInFlight=!1)};return this._isARequestInFlight=!0,P=this._getQueryFetcher().execute({environment:u,operation:E,preservePreviousReferences:!0}).mergeMap((function(t){return x.create((function(t){!function(t,r){var n=s._resolver.resolve();s._resolver.setVariables(M(i,e.totalCount),E.request.node);var a=s._resolver.resolve();R(n,a)?r():s.setState({data:a,contextForChildren:{environment:s.props.__relayContext.environment}},r)}(0,(function(){t.next(),t.complete()}))}))})).do({error:S,complete:S,unsubscribe:S}).subscribe(n||{}),this._refetchSubscription=this._isARequestInFlight?P:null,P},y._cleanup=function(){this._resolver.dispose(),this._refetchVariables=null,this._hasFetched=!1,this._refetchSubscription&&(this._refetchSubscription.unsubscribe(),this._refetchSubscription=null,this._isARequestInFlight=!1),this._queryFetcher&&this._queryFetcher.dispose()},y.render=function(){var t=this.props,r=t.componentRef,n=(t.__relayContext,t.__rootIsQueryRenderer,(0,o.default)(t,d));return E.createElement(g.Provider,{value:this.state.contextForChildren},E.createElement(e,(0,a.default)({},n,this.state.data,{ref:r,relay:this.state.relayProp})))},m}(E.Component),(0,u.default)(n,"displayName",v),n}(e,t,r)}))}}},733:(e,t,r)=>{var n=(0,r(5275).default)(r(311)),a=r(5056),o=r(6658),i=o.__internal.fetchQuery,s=o.createOperationDescriptor,u=o.isRelayModernEnvironment,l=function(){function e(e){(0,n.default)(this,"_selectionReferences",[]),(0,n.default)(this,"_didFetchFinish",!1),null!=e&&(this._cacheSelectionReference=e.cacheSelectionReference,this._selectionReferences=e.selectionReferences)}var t=e.prototype;return t.getSelectionReferences=function(){return{cacheSelectionReference:this._cacheSelectionReference,selectionReferences:this._selectionReferences}},t.lookupInStore=function(e,t,r){return"store-and-network"!==r&&"store-or-network"!==r||"available"!==e.check(t).status?null:(this._retainCachedOperation(e,t),e.lookup(t.fragment))},t.getFetchResult=function(){return this._didFetchFinish?null!=this._error?{error:this._error}:null!=this._snapshot?{snapshot:this._snapshot}:void 0:null},t.execute=function(e){var t=this,r=e.environment,n=e.operation,a=e.preservePreviousReferences,o=void 0!==a&&a,s=r.retain(n),l=function(){t._selectionReferences=t._selectionReferences.concat(s)},c=function(){o||t.disposeSelectionReferences(),t._selectionReferences=t._selectionReferences.concat(s)},f=function(){t._selectionReferences=t._selectionReferences.concat(s)};return u(r)?i(r,n).do({error:l,complete:c,unsubscribe:f}):r.execute({operation:n}).do({error:l,complete:c,unsubscribe:f})},t.setOnDataChange=function(e){this._fetchOptions||a(!1,"ReactRelayQueryFetcher: `setOnDataChange` should have been called after having called `fetch`"),"function"==typeof e&&(this._fetchOptions.onDataChangeCallbacks=this._fetchOptions.onDataChangeCallbacks||[],this._fetchOptions.onDataChangeCallbacks.push(e),this._didFetchFinish&&(null!=this._error?e({error:this._error}):null!=this._snapshot&&e({snapshot:this._snapshot})))},t.fetch=function(e,t){var r,n=this,a=e.environment,o=e.operation,i=e.onDataChange,u=!1;this.disposeRequest();var l=this._fetchOptions&&this._fetchOptions.onDataChangeCallbacks;this._fetchOptions={environment:a,onDataChangeCallbacks:l||[],operation:o},i&&-1===this._fetchOptions.onDataChangeCallbacks.indexOf(i)&&this._fetchOptions.onDataChangeCallbacks.push(i);var c=t?s(o.request.node,o.request.variables,t):o,f=this.execute({environment:a,operation:c}).finally((function(){n._pendingRequest=null})).subscribe({next:function(){n._didFetchFinish=!0,n._error=null,n._onQueryDataAvailable({notifyFirstResult:u})},error:function(e){n._didFetchFinish=!0,n._error=e,n._snapshot=null;var t=n._fetchOptions&&n._fetchOptions.onDataChangeCallbacks;u?t&&t.forEach((function(t){t({error:e})})):r=e}});if(this._pendingRequest={dispose:function(){f.unsubscribe()}},u=!0,r)throw r;return this._snapshot},t.retry=function(e){return this._fetchOptions||a(!1,"ReactRelayQueryFetcher: `retry` should be called after having called `fetch`"),this.fetch({environment:this._fetchOptions.environment,operation:this._fetchOptions.operation,onDataChange:null},e)},t.dispose=function(){this.disposeRequest(),this.disposeSelectionReferences()},t.disposeRequest=function(){this._error=null,this._snapshot=null,this._pendingRequest&&this._pendingRequest.dispose(),this._rootSubscription&&(this._rootSubscription.dispose(),this._rootSubscription=null)},t._retainCachedOperation=function(e,t){this._disposeCacheSelectionReference(),this._cacheSelectionReference=e.retain(t)},t._disposeCacheSelectionReference=function(){this._cacheSelectionReference&&this._cacheSelectionReference.dispose(),this._cacheSelectionReference=null},t.disposeSelectionReferences=function(){this._disposeCacheSelectionReference(),this._selectionReferences.forEach((function(e){return e.dispose()})),this._selectionReferences=[]},t._onQueryDataAvailable=function(e){var t=this,r=e.notifyFirstResult;this._fetchOptions||a(!1,"ReactRelayQueryFetcher: `_onQueryDataAvailable` should have been called after having called `fetch`");var n=this._fetchOptions,o=n.environment,i=n.onDataChangeCallbacks,s=n.operation;if(!this._snapshot&&(this._snapshot=o.lookup(s.fragment),this._rootSubscription=o.subscribe(this._snapshot,(function(e){if(null!=t._fetchOptions){var r=t._fetchOptions.onDataChangeCallbacks;Array.isArray(r)&&r.forEach((function(t){return t({snapshot:e})}))}})),this._snapshot&&r&&Array.isArray(i))){var u=this._snapshot;i.forEach((function(e){return e({snapshot:u})}))}},e}();e.exports=l},3701:(e,t,r)=>{var n=r(5275).default,a=n(r(6175)),o=n(r(5383)),i=n(r(8296)),s=n(r(311)),u=r(9888),l=r(733),c=r(7239),f=r(9125),d=r(8156),h=r(6658),p=h.createOperationDescriptor,v=h.deepFreeze,m=h.getRequest,y={},g={rootIsQueryRenderer:!0},_=function(e){function t(t){var r;r=e.call(this,t)||this,(0,s.default)((0,o.default)(r),"_handleDataChange",(function(e){var t=null==e.error?null:e.error,n=null==e.snapshot?null:e.snapshot;r.setState((function(e){var r=e.requestCacheKey;return r&&delete y[r],n===e.snapshot&&t===e.error?null:{renderProps:b(t,n,e.queryFetcher,e.retryCallbacks),snapshot:n,requestCacheKey:null}}))}));var n,i,u={handleDataChange:null,handleRetryAfterError:null};if(t.query){var c=t.query;i=R(m(c).params,t.variables),n=y[i]?y[i].queryFetcher:new l}else n=new l;return r._maybeHiddenOrFastRefresh=!1,r.state=(0,a.default)({prevPropsEnvironment:t.environment,prevPropsVariables:t.variables,prevQuery:t.query,queryFetcher:n,retryCallbacks:u},E(t,n,u,i)),r}(0,i.default)(t,e),t.getDerivedStateFromProps=function(e,t){return t.prevQuery===e.query&&t.prevPropsEnvironment===e.environment&&f(t.prevPropsVariables,e.variables)?null:C(e,t)};var r=t.prototype;return r.componentDidMount=function(){var e=this;if(!0===this._maybeHiddenOrFastRefresh)return this._maybeHiddenOrFastRefresh=!1,void this.setState((function(t){var r=C(e.props,t),n=r.requestCacheKey,a=r.queryFetcher;return null!=n&&null!=y[n]&&a.setOnDataChange(e._handleDataChange),r}));var t=this.state,r=t.retryCallbacks,n=t.queryFetcher,a=t.requestCacheKey;a&&delete y[a],r.handleDataChange=this._handleDataChange,r.handleRetryAfterError=function(t){return e.setState((function(e){var t=e.requestCacheKey;return t&&delete y[t],{renderProps:{error:null,props:null,retry:null},requestCacheKey:null}}))},this.props.query&&n.setOnDataChange(this._handleDataChange)},r.componentDidUpdate=function(e,t){var r=this.state,n=r.queryFetcher,a=r.requestCacheKey;a&&(delete y[a],delete this.state.requestCacheKey),this.props.query&&n!==t.queryFetcher&&n.setOnDataChange(this._handleDataChange)},r.componentWillUnmount=function(){this.state.queryFetcher.dispose(),this._maybeHiddenOrFastRefresh=!0},r.shouldComponentUpdate=function(e,t){return e.render!==this.props.render||t.renderProps!==this.state.renderProps},r.render=function(){var e=this.state,t=e.renderProps,r=e.relayContext;return v(t),d.createElement(u.Provider,{value:r},d.createElement(c.Provider,{value:g},this.props.render(t)))},t}(d.Component);function b(e,t,r,n){return{error:e||null,props:t?t.data:null,retry:function(t){var a=r.retry(t);a&&"function"==typeof n.handleDataChange?n.handleDataChange({snapshot:a}):e&&"function"==typeof n.handleRetryAfterError&&n.handleRetryAfterError(e)}}}function R(e,t){return JSON.stringify({id:e.cacheID?e.cacheID:e.id,variables:t})}function C(e,t){var r,n=e.query,o=t.queryFetcher.getSelectionReferences();if(t.queryFetcher.disposeRequest(),n){var i=R(m(n).params,e.variables);r=y[i]?y[i].queryFetcher:new l(o)}else r=new l(o);return(0,a.default)({prevQuery:e.query,prevPropsEnvironment:e.environment,prevPropsVariables:e.variables,queryFetcher:r},E(e,r,t.retryCallbacks))}function E(e,t,r,n){var a=e.environment,o=e.query,i=e.variables,s=e.cacheConfig,u=a;if(!o)return t.dispose(),{error:null,relayContext:{environment:u},renderProps:{error:null,props:{},retry:null},requestCacheKey:null};var l=m(o),c=p(l,i,s),f={environment:u};if("string"==typeof n&&y[n]){var d=y[n].snapshot;return d?{error:null,relayContext:f,renderProps:b(null,d,t,r),snapshot:d,requestCacheKey:n}:{error:null,relayContext:f,renderProps:{error:null,props:null,retry:null},snapshot:null,requestCacheKey:n}}try{var h=t.lookupInStore(u,c,e.fetchPolicy),v=t.fetch({environment:u,onDataChange:null,operation:c})||h;return n=n||R(l.params,e.variables),y[n]={queryFetcher:t,snapshot:v},v?{error:null,relayContext:f,renderProps:b(null,v,t,r),snapshot:v,requestCacheKey:n}:{error:null,relayContext:f,renderProps:{error:null,props:null,retry:null},snapshot:null,requestCacheKey:n}}catch(e){return{error:e,relayContext:f,renderProps:b(e,null,t,r),snapshot:null,requestCacheKey:n}}}e.exports=_},7239:(e,t,r)=>{var n=r(8156);e.exports=n.createContext({rootIsQueryRenderer:!1})},2427:(e,t,r)=>{var n=r(5275).default,a=n(r(4924)),o=n(r(5264)),i=n(r(6175)),s=n(r(5383)),u=n(r(8296)),l=n(r(311)),c=["componentRef","__relayContext","__rootIsQueryRenderer"],f=r(3089),d=r(8416),h=r(7426).getContainerName,p=r(9888),v=r(733),m=r(8827).assertRelayContext,y=r(9125),g=r(8156),_=r(6658),b=_.Observable,R=_.createFragmentSpecResolver,C=_.createOperationDescriptor,E=_.getDataIDsFromObject,P=_.getRequest,S=_.getVariablesFromObject,x=_.isScalarAndEqual,F=r(4446);function q(e,t){return{environment:e,refetch:t}}e.exports={createContainer:function(e,t,r){return f(e,t,(function(e,t){return function(e,t,r){var n,f=h(e);return n=function(n){function h(e){var a,o;o=n.call(this,e)||this,(0,l.default)((0,s.default)(o),"_handleFragmentDataUpdate",(function(){var e=o.state.resolver;o.setState((function(t){return e===t.resolver?{data:t.resolver.resolve()}:null}))})),(0,l.default)((0,s.default)(o),"_refetch",(function(e,n,a,s){if(o._isUnmounted)return F(!1,"ReactRelayRefetchContainer: Unexpected call of `refetch` on unmounted container `%s`. It looks like some instances of your container still trying to refetch the data but they already unmounted. Please make sure you clear all timers, intervals, async calls, etc that may trigger `refetch`.",f),{dispose:function(){}};var u=m(o.props.__relayContext).environment,l=d(t,o.props),c="function"==typeof e?e(o._getFragmentVariables()):e;c=(0,i.default)((0,i.default)({},l),c);var h=n?(0,i.default)((0,i.default)({},c),n):c,p=s?{force:!!s.force}:void 0;null!=p&&null!=(null==s?void 0:s.metadata)&&(p.metadata=null==s?void 0:s.metadata);var v,y="function"==typeof a?{next:a,error:a}:a||{},g=P(r),_=C(g,c,p);return o.state.localVariables=c,o._refetchSubscription&&o._refetchSubscription.unsubscribe(),null!=o._getQueryFetcher().lookupInStore(u,_,null==s?void 0:s.fetchPolicy)?(o.state.resolver.setVariables(h,_.request.node),o.setState((function(e){return{data:e.resolver.resolve(),contextForChildren:{environment:o.props.__relayContext.environment}}}),(function(){y.next&&y.next(),y.complete&&y.complete()})),{dispose:function(){}}):(o._getQueryFetcher().execute({environment:u,operation:_,preservePreviousReferences:!0}).mergeMap((function(e){return o.state.resolver.setVariables(h,_.request.node),b.create((function(e){return o.setState((function(e){return{data:e.resolver.resolve(),contextForChildren:{environment:o.props.__relayContext.environment}}}),(function(){e.next(),e.complete()}))}))})).finally((function(){o._refetchSubscription===v&&(o._refetchSubscription=null)})).subscribe((0,i.default)((0,i.default)({},y),{},{start:function(e){o._refetchSubscription=v=e,y.start&&y.start(e)}})),{dispose:function(){v&&v.unsubscribe()}})}));var u=m(e.__relayContext),c=null!==(a=e.__rootIsQueryRenderer)&&void 0!==a&&a;o._refetchSubscription=null;var h=R(u,f,t,e,c);return o.state={data:h.resolve(),localVariables:null,prevProps:e,prevPropsContext:u,contextForChildren:u,relayProp:q(u.environment,o._refetch),resolver:h},o._isUnmounted=!1,o}(0,u.default)(h,n);var _=h.prototype;return _.componentDidMount=function(){this._isUnmounted=!1,this._subscribeToNewResolverAndRerenderIfStoreHasChanged()},_.componentDidUpdate=function(e,t){this.state.resolver!==t.resolver?(t.resolver.dispose(),this._queryFetcher&&this._queryFetcher.dispose(),this._refetchSubscription&&this._refetchSubscription.unsubscribe(),this._subscribeToNewResolverAndRerenderIfStoreHasChanged()):this._rerenderIfStoreHasChanged()},h.getDerivedStateFromProps=function(e,r){var n,a=r.prevProps,o=m(e.__relayContext),i=null!==(n=e.__rootIsQueryRenderer)&&void 0!==n&&n,s=E(t,a),u=E(t,e),l=d(t,a),c=d(t,e),h=r.resolver;if(r.prevPropsContext.environment!==o.environment||!y(l,c)||!y(s,u))return{data:(h=R(o,f,t,e,i)).resolve(),localVariables:null,prevProps:e,prevPropsContext:o,contextForChildren:o,relayProp:q(o.environment,r.relayProp.refetch),resolver:h};r.localVariables||h.setProps(e);var p=h.resolve();return p!==r.data?{data:p,prevProps:e}:null},_.componentWillUnmount=function(){this._isUnmounted=!0,this.state.resolver.dispose(),this._queryFetcher&&this._queryFetcher.dispose(),this._refetchSubscription&&this._refetchSubscription.unsubscribe()},_.shouldComponentUpdate=function(e,r){if(r.data!==this.state.data||r.relayProp!==this.state.relayProp)return!0;for(var n=Object.keys(e),a=0;a<n.length;a++){var o=n[a];if("__relayContext"===o){if(this.state.prevPropsContext.environment!==r.prevPropsContext.environment)return!0}else if(!t.hasOwnProperty(o)&&!x(e[o],this.props[o]))return!0}return!1},_._rerenderIfStoreHasChanged=function(){var e=this.state,t=e.data,r=e.resolver.resolve();t!==r&&this.setState({data:r})},_._subscribeToNewResolverAndRerenderIfStoreHasChanged=function(){var e=this.state,t=e.data,r=e.resolver,n=r.resolve();r.setCallback(this.props,this._handleFragmentDataUpdate),t!==n&&this.setState({data:n})},_._getFragmentVariables=function(){return S(t,this.props)},_._getQueryFetcher=function(){return this._queryFetcher||(this._queryFetcher=new v),this._queryFetcher},_.render=function(){var t=this.props,r=t.componentRef,n=(t.__relayContext,t.__rootIsQueryRenderer,(0,o.default)(t,c)),i=this.state,s=i.relayProp,u=i.contextForChildren;return g.createElement(p.Provider,{value:u},g.createElement(e,(0,a.default)({},n,this.state.data,{ref:r,relay:s})))},h}(g.Component),(0,l.default)(n,"displayName",f),n}(e,t,r)}))}}},8827:(e,t,r)=>{var n=r(645),a=r(5056);function o(e){return"object"==typeof e&&null!==e&&!Array.isArray(e)&&n(e.environment)}e.exports={assertRelayContext:function(e){return o(e)||a(!1,"RelayContext: Expected `context.relay` to be an object conforming to the `RelayContext` interface, got `%s`.",e),e},isRelayContext:o}},7074:(e,t,r)=>{var n=r(5056);e.exports=function(e,t){for(var r in t&&"object"==typeof t||n(!1,"Could not create Relay Container for `%s`. Expected a set of GraphQL fragments, got `%s` instead.",e,t),t)if(t.hasOwnProperty(r)){var a=t[r];(!a||"object"!=typeof a&&"function"!=typeof a)&&n(!1,"Could not create Relay Container for `%s`. The value of fragment `%s` was expected to be a fragment, got `%s` instead.",e,r,a)}}},3089:(e,t,r)=>{var n=(0,r(5275).default)(r(4924)),a=r(7074),o=r(7426),i=o.getComponentName,s=o.getContainerName,u=r(9888),l=r(7239),c=r(5056),f=r(8156),d=r(6658).getFragment,h=f.useContext;e.exports=function(e,t,r){var o=s(e);a(i(e),t);var p={};for(var v in t)p[v]=d(t[v]);var m=r(e,p);function y(e,t){var r,a=h(u);null==a&&c(!1,"`%s` tried to render a context that was not valid this means that `%s` was rendered outside of a query renderer.",o,o);var i=h(l);return f.createElement(m,(0,n.default)({},e,{__relayContext:a,__rootIsQueryRenderer:null!==(r=null==i?void 0:i.rootIsQueryRenderer)&&void 0!==r&&r,componentRef:e.componentRef||t}))}m.displayName=o,y.displayName=o;var g=f.forwardRef(y);return g.__ComponentClass=e,g.displayName=o,g}},8416:(e,t,r)=>{var n=(0,r(5275).default)(r(6175)),a=r(6658).getSelector;e.exports=function(e,t){var r={};return Object.keys(e).forEach((function(o){var i,s,u,l=e[o],c=t[o],f=a(l,c),d=null!=f&&"PluralReaderSelector"===f.kind?null!==(i=null===(s=f.selectors[0])||void 0===s?void 0:s.owner.variables)&&void 0!==i?i:{}:null!==(u=null==f?void 0:f.owner.variables)&&void 0!==u?u:{};r=(0,n.default)((0,n.default)({},r),d)})),r}},5265:(e,t,r)=>{var n=r(9888),a=r(7362),o=r(1428),i=r(3540),s=r(3701),u=r(2427),l=r(3158),c=r(9828),f=r(428).loadQuery,d=r(3187),h=r(9696),p=r(5083),v=r(529),m=r(6242),y=r(3899),g=r(3115),_=r(951),b=r(4617),R=r(8876),C=r(8874),E=r(2750),P=r(8050),S=r(5746),x=r(6658);e.exports={ConnectionHandler:x.ConnectionHandler,QueryRenderer:s,LocalQueryRenderer:o,MutationTypes:x.MutationTypes,RangeOperations:x.RangeOperations,ReactRelayContext:n,applyOptimisticMutation:x.applyOptimisticMutation,commitLocalUpdate:x.commitLocalUpdate,commitMutation:x.commitMutation,createFragmentContainer:a.createContainer,createPaginationContainer:i.createContainer,createRefetchContainer:u.createContainer,fetchQuery_DEPRECATED:x.fetchQuery_DEPRECATED,graphql:x.graphql,readInlineData:x.readInlineData,requestSubscription:x.requestSubscription,EntryPointContainer:l,RelayEnvironmentProvider:h,ProfilerContext:d,fetchQuery:x.fetchQuery,loadQuery:f,loadEntryPoint:c,useClientQuery:p,useFragment:m,useLazyLoadQuery:y,useEntryPointLoader:v,useQueryLoader:R,useMutation:g,usePaginationFragment:_,usePreloadedQuery:b,useRefetchableFragment:C,useRelayEnvironment:E,useSubscribeToInvalidationState:P,useSubscription:S}},645:e=>{e.exports=function(e){return"object"==typeof e&&null!==e&&"function"==typeof e.check&&"function"==typeof e.lookup&&"function"==typeof e.retain&&"function"==typeof e.execute&&"function"==typeof e.subscribe}},3158:(e,t,r)=>{var n=r(3187),a=r(2750),o=r(8156),i=r(8156),s=i.useContext,u=i.useEffect,l=r(4446);e.exports=function(e){var t=e.entryPointReference,r=e.props;l(!1===t.isDisposed,"<EntryPointContainer>: Expected entryPointReference to not be disposed yet. This is because disposing the entrypoint marks it for future garbage collection, and as such may no longer be present in the Relay store. In the future, this will become a hard error.");var i=t.getComponent,c=t.queries,f=t.entryPoints,d=t.extraProps,h=t.rootModuleID,p=i(),v=s(n),m=a();return u((function(){m.__log({name:"entrypoint.root.consume",profilerContext:v,rootModuleID:h})}),[m,v,h]),o.createElement(p,{entryPoints:f,extraProps:d,props:r,queries:c})}},5985:(e,t,r)=>{var n=r(5275).default,a=n(r(6175)),o=n(r(311)),i=n(r(642)),s=r(5093),u=r(1269).getQueryResourceForEnvironment,l=r(1637),c=r(5056),f=r(6658),d=f.__internal,h=d.fetchQuery,p=d.getPromiseForActiveRequest,v=f.RelayFeatureFlags,m=f.createOperationDescriptor,y=f.getFragmentIdentifier,g=f.getPendingOperationsForFragment,_=f.getSelector,b=f.getVariablesFromFragment,R=f.handlePotentialSnapshotErrors,C=f.isPromise,E=f.recycleNodesInto,P="function"==typeof WeakMap,S=Object.freeze([]);function x(e){return Array.isArray(e)?e.some((function(e){return e.isMissingData})):e.isMissingData}function F(e){return Array.isArray(e)?e.map((function(e){return e.missingLiveResolverFields})).filter(Boolean).flat():e.missingLiveResolverFields}function q(e,t,r){return Array.isArray(t)?{cacheKey:e,snapshot:t,data:t.map((function(e){return e.data})),isMissingData:x(t),storeEpoch:r}:{cacheKey:e,snapshot:t,data:t.data,isMissingData:x(t),storeEpoch:r}}var I=function(){function e(e){(0,o.default)(this,"_cache",new Map),(0,o.default)(this,"_retainCounts",new Map),this._environment=e}var t=e.prototype;return t.get=function(e){var t,r;return null!==(t=null===(r=this._cache.get(e))||void 0===r?void 0:r[0])&&void 0!==t?t:void 0},t.recordQueryResults=function(e,t){var r=this,n=this._cache.get(e);if(n){var a=n[0],o=n[1];t.forEach((function(e){a.push(e)})),o.temporaryRetain(this._environment)}else{var i=new l((function(){return r._retain(e)}));this._cache.set(e,[t,i]),i.temporaryRetain(this._environment)}},t._retain=function(e){var t,r=this,n=(null!==(t=this._retainCounts.get(e))&&void 0!==t?t:0)+1;return this._retainCounts.set(e,n),{dispose:function(){var t,n=(null!==(t=r._retainCounts.get(e))&&void 0!==t?t:0)-1;n>0?r._retainCounts.set(e,n):(r._retainCounts.delete(e),r._cache.delete(e))}}},e}(),D=function(){function e(e){this._environment=e,this._cache=s.create(1e6),v.ENABLE_CLIENT_EDGES&&(this._clientEdgeQueryResultsCache=new I(e))}var t=e.prototype;return t.read=function(e,t,r,n){return this.readWithIdentifier(e,t,y(e,t),r,n)},t.readWithIdentifier=function(e,t,r,n,a){var o,s,l,f,d=this,h=this._environment;if(null==t)return{cacheKey:r,data:null,isMissingData:!1,snapshot:null,storeEpoch:0};var m=h.getStore().getEpoch();if(!0===(null==e||null===(o=e.metadata)||void 0===o?void 0:o.plural)&&(Array.isArray(t)||c(!1,"Relay: Expected fragment pointer%s for fragment `%s` to be an array, instead got `%s`. Remove `@relay(plural: true)` from fragment `%s` to allow the prop to be an object.",null!=a?" for key `".concat(a,"`"):"",e.name,typeof t,e.name),0===t.length))return{cacheKey:r,data:S,isMissingData:!1,snapshot:S,storeEpoch:m};var y=this._cache.get(r);if(null!=y){var g;if("pending"===y.kind&&C(y.promise))throw h.__log({name:"suspense.fragment",data:y.result.data,fragment:e,isRelayHooks:!0,isMissingData:y.result.isMissingData,isPromiseCached:!0,pendingOperations:y.pendingOperations}),y.promise;if("done"===y.kind&&y.result.snapshot&&(null===(g=F(y.result.snapshot))||void 0===g||!g.length))return this._throwOrLogErrorsInSnapshot(y.result.snapshot),y.result.isMissingData&&h.__log({name:"fragmentresource.missing_data",data:y.result.data,fragment:e,isRelayHooks:!0,cached:!0}),y.result}var b=_(e,t);null==b&&c(!1,"Relay: Expected to receive an object where `...%s` was spread, but the fragment reference was not found`. This is most likely the result of:\n- Forgetting to spread `%s` in `%s`'s parent's fragment.\n- Conditionally fetching `%s` but unconditionally passing %s prop to `%s`. If the parent fragment only fetches the fragment conditionally - with e.g. `@include`, `@skip`, or inside a `... on SomeType { }` spread - then the fragment reference will not exist. In this case, pass `null` if the conditions for evaluating the fragment are not met (e.g. if the `@include(if)` value is false.)",e.name,e.name,n,e.name,null==a?"a fragment reference":"the `".concat(a,"`"),n);var R=null,E=null;if(v.ENABLE_RELAY_OPERATION_TRACKER_SUSPENSE&&null!=y&&"missing"===y.kind?(R=y.result,E=y.snapshot):R=q(r,E="PluralReaderSelector"===b.kind?b.selectors.map((function(e){return h.lookup(e)})):h.lookup(b),m),!R.isMissingData)return this._throwOrLogErrorsInSnapshot(E),this._cache.set(r,{kind:"done",result:R}),R;var P=null;if(v.ENABLE_CLIENT_EDGES&&!0===(null===(s=e.metadata)||void 0===s?void 0:s.hasClientEdges)&&function(e){var t,r;return Array.isArray(e)?e.some((function(e){var t,r;return(null!==(t=null===(r=e.missingClientEdges)||void 0===r?void 0:r.length)&&void 0!==t?t:0)>0})):(null!==(t=null===(r=e.missingClientEdges)||void 0===r?void 0:r.length)&&void 0!==t?t:0)>0}(E)){P=[];var x=u(this._environment),I=[];!function(e,t){Array.isArray(e)?e.forEach(t):t(e)}(E,(function(r){var n;null===(n=r.missingClientEdges)||void 0===n||n.forEach((function(r){var n,a=r.request,o=r.clientEdgeDestinationID,i=d._performClientEdgeQuery(x,e,t,a,o),s=i.queryResult,u=i.requestDescriptor;I.push(s),null===(n=P)||void 0===n||n.push(u)}))})),null==this._clientEdgeQueryResultsCache&&c(!1,"Client edge query result cache should exist when ENABLE_CLIENT_EDGES is on."),this._clientEdgeQueryResultsCache.recordQueryResults(r,I)}var D=[];v.ENABLE_CLIENT_EDGES&&P&&(D=P.map((function(e){return p(d._environment,e)})).filter(Boolean));var k="PluralReaderSelector"===b.kind?b.selectors[0].owner:b.owner,A=this._getAndSavePromiseForFragmentRequestInFlight(r,e,k,R),N=null==A?void 0:A.promise,O=null!==(l=null===(f=F(E))||void 0===f?void 0:f.map((function(e){var t=e.liveStateID;return h.getStore().getLiveResolverPromise(t)})))&&void 0!==l?l:[];if(D.length||O.length||C(N)){var w,Q;h.__log({name:"suspense.fragment",data:R.data,fragment:e,isRelayHooks:!0,isPromiseCached:!1,isMissingData:R.isMissingData,pendingOperations:[].concat((0,i.default)(null!==(w=null==A?void 0:A.pendingOperations)&&void 0!==w?w:[]),(0,i.default)(null!==(Q=P)&&void 0!==Q?Q:[]))});var T=[];if(D.length>0&&(T=T.concat(D)),O.length>0&&(T=T.concat(O)),T.length>0)throw N&&T.push(N),Promise.all(T);if(N)throw N}return v.ENABLE_RELAY_OPERATION_TRACKER_SUSPENSE&&R.isMissingData&&this._cache.set(r,{kind:"done",result:R}),this._throwOrLogErrorsInSnapshot(E),h.__log({name:"fragmentresource.missing_data",data:R.data,fragment:e,isRelayHooks:!0,cached:!1}),q(r,E,m)},t._performClientEdgeQuery=function(e,t,r,n,o){var i=b(t,r),s=(0,a.default)((0,a.default)({},i),{},{id:o}),u=m(n,s,{}),l=h(this._environment,u),c=e.prepare(u,l);return{requestDescriptor:u.request,queryResult:c}},t._throwOrLogErrorsInSnapshot=function(e){var t=this;Array.isArray(e)?e.forEach((function(e){R(t._environment,e.missingRequiredFields,e.relayResolverErrors)})):R(this._environment,e.missingRequiredFields,e.relayResolverErrors)},t.readSpec=function(e,t,r){var n={};for(var a in e)n[a]=this.read(e[a],t[a],r,a);return n},t.subscribe=function(e,t){var r=this,n=this._environment,a=e.cacheKey,o=e.snapshot;if(!o)return{dispose:function(){}};var i=this.checkMissedUpdates(e),s=i[0],l=i[1];s&&t();var f=[];if(Array.isArray(o)?(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,o){f.push(n.subscribe(e,(function(e){var i=n.getStore().getEpoch();r._updatePluralSnapshot(a,l,e,o,i),t()})))}))):((null==l||Array.isArray(l))&&c(!1,"Relay: Expected snapshot to be singular. If you're seeing this, this is likely a bug in Relay."),f.push(n.subscribe(l,(function(e){var o=n.getStore().getEpoch(),i=q(a,e,o);v.ENABLE_RELAY_OPERATION_TRACKER_SUSPENSE&&i.isMissingData?r._cache.set(a,{kind:"missing",result:i,snapshot:e}):r._cache.set(a,{kind:"done",result:q(a,e,o)}),t()})))),v.ENABLE_CLIENT_EDGES){var d,h,p=null!==(d=null===(h=this._clientEdgeQueryResultsCache)||void 0===h?void 0:h.get(a))&&void 0!==d?d:void 0;if(null!=p&&p.length){var m=u(this._environment);p.forEach((function(e){f.push(m.retain(e))}))}}return{dispose:function(){f.forEach((function(e){return e.dispose()})),r._cache.delete(a)}}},t.subscribeSpec=function(e,t){var r=this,n=Object.keys(e).map((function(n){return r.subscribe(e[n],t)}));return{dispose:function(){n.forEach((function(e){e.dispose()}))}}},t.checkMissedUpdates=function(e){var t,r=this._environment,n=e.snapshot;if(!n)return[!1,null];if(t=r.getStore().getEpoch(),e.storeEpoch===t)return[!1,e.snapshot];var o=e.cacheKey;if(Array.isArray(n)){var i=!1,s=[];if(n.forEach((function(e,t){var n=r.lookup(e.selector),o=e.data,u=n.data,l=E(o,u);l!==o&&(n=(0,a.default)((0,a.default)({},n),{},{data:l}),i=!0),s[t]=n})),i){var u=q(o,s,t);v.ENABLE_RELAY_OPERATION_TRACKER_SUSPENSE&&u.isMissingData?this._cache.set(o,{kind:"missing",result:u,snapshot:s}):this._cache.set(o,{kind:"done",result:u})}return[i,s]}var l=r.lookup(n.selector),c=n.data,f=l.data,d=E(c,f),h={data:d,isMissingData:l.isMissingData,missingClientEdges:l.missingClientEdges,missingLiveResolverFields:l.missingLiveResolverFields,seenRecords:l.seenRecords,selector:l.selector,missingRequiredFields:l.missingRequiredFields,relayResolverErrors:l.relayResolverErrors};if(d!==c){var p=q(o,h,t);v.ENABLE_RELAY_OPERATION_TRACKER_SUSPENSE&&p.isMissingData?this._cache.set(o,{kind:"missing",result:p,snapshot:h}):this._cache.set(o,{kind:"done",result:p})}return[d!==c,h]},t.checkMissedUpdatesSpec=function(e){var t=this;return Object.keys(e).some((function(r){return t.checkMissedUpdates(e[r])[0]}))},t._getAndSavePromiseForFragmentRequestInFlight=function(e,t,r,n){var a=this,o=g(this._environment,t,r);if(null==o)return null;var i=o.promise,s=o.pendingOperations,u=i.then((function(){a._cache.delete(e)})).catch((function(t){a._cache.delete(e)}));return u.displayName=i.displayName,this._cache.set(e,{kind:"pending",pendingOperations:s,promise:u,result:n}),{promise:u,pendingOperations:s}},t._updatePluralSnapshot=function(e,t,r,n,a){var o,s=this._cache.get(e);if(C(s))k(r.selector.node.name);else{var u=null==s||null===(o=s.result)||void 0===o?void 0:o.snapshot;if(!u||Array.isArray(u)){var l=u?(0,i.default)(u):(0,i.default)(t);l[n]=r;var c=q(e,l,a);v.ENABLE_RELAY_OPERATION_TRACKER_SUSPENSE&&c.isMissingData?this._cache.set(e,{kind:"missing",result:c,snapshot:l}):this._cache.set(e,{kind:"done",result:c})}else k(r.selector.node.name)}},e}();function k(e){c(!1,"Relay: Expected to find cached data for plural fragment `%s` when receiving a subscription. If you're seeing this, this is likely a bug in Relay.",e)}function A(e){return new D(e)}var N=P?new WeakMap:new Map;e.exports={createFragmentResource:A,getFragmentResourceForEnvironment:function(e){var t=N.get(e);if(t)return t;var r=A(e);return N.set(e,r),r}}},5914:(e,t,r)=>{var n=r(4446),a=null;e.exports={inject:function(e){n(null===a,"Relay HooksImplementation was injected twice."),a=e},get:function(){return a}}},5093:(e,t,r)=>{var n=r(5056),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)}}},3187:(e,t,r)=>{var n=r(8156).createContext({wrapPrepareQueryResource:function(e){return e()}});e.exports=n},1269:(e,t,r)=>{var n=r(5275).default,a=n(r(6175)),o=n(r(311)),i=r(5093),s=r(1637),u=r(5056),l=r(6658).isPromise,c=r(4446),f="store-or-network",d="store-and-network",h="function"==typeof WeakMap;function p(e){return void 0!==e.request.node.params.metadata.live}function v(e,t,r,n,a){var o=null!=r?r:p(t)?d:f,i=null!=n?n:e.UNSTABLE_getDefaultRenderPolicy(),s="".concat(o,"-").concat(i,"-").concat(t.request.identifier);return null!=a?"".concat(s,"-").concat(a):s}function m(e,t){var r={__id:e.fragment.dataID,__fragments:(0,o.default)({},e.fragment.node.name,e.request.variables),__fragmentOwner:e.request};return{cacheIdentifier:t,fragmentNode:e.request.node.fragment,fragmentRef:r,operation:e}}var y=2e5;function g(e,t,r,n,a,o){var i=p(t),u=n,l=a,c=new s((function(e){var r=e.retain(t);return{dispose:function(){i&&null!=l&&l.unsubscribe(),r.dispose(),o(f)}}})),f={cacheIdentifier:e,id:y++,processedPayloadsCount:0,operationAvailability:r,getValue:function(){return u},setValue:function(e){u=e},setNetworkSubscription:function(e){i&&null!=l&&l.unsubscribe(),l=e},temporaryRetain:function(e){return c.temporaryRetain(e)},permanentRetain:function(e){return c.permanentRetain(e)},releaseTemporaryRetain:function(){c.releaseTemporaryRetain()}};return f}var _=function(){function e(e){var t=this;(0,o.default)(this,"_clearCacheEntry",(function(e){t._cache.delete(e.cacheIdentifier)})),this._environment=e,this._cache=i.create(1e3)}var t=e.prototype;return t.prepare=function(e,t,r,n,a,o,i){var s=v(this._environment,e,r,n,o);return this.prepareWithIdentifier(s,e,t,r,n,a,i)},t.prepareWithIdentifier=function(e,t,r,n,o,i,s){var u=this._environment,c=null!=n?n:p(t)?d:f,h=null!=o?o:u.UNSTABLE_getDefaultRenderPolicy(),v=this._cache.get(e),m=null,y=null!=v;null==v&&(v=this._fetchAndSaveQuery(e,t,r,c,h,s,(0,a.default)((0,a.default)({},i),{},{unsubscribe:function(e){null!=m&&m.dispose();var t=null==i?void 0:i.unsubscribe;t&&t(e)}}))),m=v.temporaryRetain(u);var g=v.getValue();if(l(g))throw u.__log({name:"suspense.query",fetchPolicy:c,isPromiseCached:y,operation:t,queryAvailability:v.operationAvailability,renderPolicy:h}),g;if(g instanceof Error)throw g;return g},t.retain=function(e,t){var r=this._environment,n=e.cacheIdentifier,a=e.operation,o=this._getOrCreateCacheEntry(n,a,null,e,null),i=o.permanentRetain(r);return r.__log({name:"queryresource.retain",profilerContext:t,resourceID:o.id}),{dispose:function(){i.dispose()}}},t.releaseTemporaryRetain=function(e){var t=this._cache.get(e.cacheIdentifier);null!=t&&t.releaseTemporaryRetain()},t.TESTS_ONLY__getCacheEntry=function(e,t,r,n){var a=v(this._environment,e,t,r,n);return this._cache.get(a)},t._getOrCreateCacheEntry=function(e,t,r,n,a){var o=this._cache.get(e);return null==o&&(o=g(e,t,r,n,a,this._clearCacheEntry),this._cache.set(e,o)),o},t._fetchAndSaveQuery=function(e,t,r,n,o,i,s){var l,f,d=this,h=this._environment,v=h.check(t),y=v.status,_="available"===y,b=_||"partial"===o&&"stale"!==y,R=function(){};switch(n){case"store-only":l=!1,f=!0;break;case"store-or-network":l=!_,f=b;break;case"store-and-network":l=!0,f=b;break;default:l=!0,f=!1}if(f){var C=m(t,e),E=g(e,t,v,C,null,this._clearCacheEntry);this._cache.set(e,E)}if(l){var P,S=m(t,e);r.subscribe({start:function(r){P=r;var n=d._cache.get(e);n&&n.setNetworkSubscription(P);var o=null==s?void 0:s.start;o&&o((0,a.default)((0,a.default)({},r),{},{unsubscribe:function(){p(t)&&r.unsubscribe()}}))},next:function(){var r=d._getOrCreateCacheEntry(e,t,v,S,P);r.processedPayloadsCount+=1,r.setValue(S),R();var n=null==s?void 0:s.next;null!=n&&n(h.lookup(t.fragment))},error:function(r){var n=d._getOrCreateCacheEntry(e,t,v,r,P);0===n.processedPayloadsCount?n.setValue(r):c(!1,"QueryResource: An incremental payload for query `%s` returned an error: `%s`.",t.fragment.node.name,String(r.message)),R(),P=null,n.setNetworkSubscription(null);var a=null==s?void 0:s.error;a&&a(r)},complete:function(){R(),P=null;var t=d._cache.get(e);t&&t.setNetworkSubscription(null);var r=null==s?void 0:s.complete;r&&r()},unsubscribe:null==s?void 0:s.unsubscribe});var x=this._cache.get(e);if(!x){var F=new Promise((function(e){R=e}));F.displayName="Relay("+t.fragment.node.name+")",x=g(e,t,v,F,P,this._clearCacheEntry),this._cache.set(e,x)}}else{var q=null==s?void 0:s.complete;q&&q()}var I=this._cache.get(e);return null==I&&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."),h.__log({name:"queryresource.fetch",resourceID:I.id,operation:t,profilerContext:i,fetchPolicy:n,renderPolicy:o,queryAvailability:v,shouldFetch:l}),I},e}();function b(e){return new _(e)}var R=h?new WeakMap:new Map;e.exports={createQueryResource:b,getQueryResourceForEnvironment:function(e){var t=R.get(e);if(t)return t;var r=b(e);return R.set(e,r),r},getQueryCacheIdentifier:v}},9696:(e,t,r)=>{var n=r(9888),a=r(8156),o=a.useMemo;e.exports=function(e){var t=e.children,r=e.environment,i=e.getEnvironmentForActor,s=o((function(){return{environment:r,getEnvironmentForActor:i}}),[r,i]);return a.createElement(n.Provider,{value:s},t)}},1637:(e,t,r)=>{var n=(0,r(5275).default)(r(311)),a=r(5056),o=function(){function e(e){var t=this;(0,n.default)(this,"_retainCount",0),(0,n.default)(this,"_retainDisposable",null),(0,n.default)(this,"_releaseTemporaryRetain",null),this._retain=function(r){return t._retainCount++,1===t._retainCount&&(t._retainDisposable=e(r)),{dispose:function(){t._retainCount=Math.max(0,t._retainCount-1),0===t._retainCount&&(null==t._retainDisposable&&a(!1,"Relay: Expected disposable to release query to be defined.If you're seeing this, this is likely a bug in Relay."),t._retainDisposable.dispose(),t._retainDisposable=null)}}}}var t=e.prototype;return t.temporaryRetain=function(e){var t,r=this;if(e.isServer())return{dispose:function(){}};var n=this._retain(e),a=null,o=function(){clearTimeout(a),a=null,r._releaseTemporaryRetain=null,n.dispose()};return a=setTimeout(o,3e5),null===(t=this._releaseTemporaryRetain)||void 0===t||t.call(this),this._releaseTemporaryRetain=o,{dispose:function(){var e;null===(e=r._releaseTemporaryRetain)||void 0===e||e.call(r)}}},t.permanentRetain=function(e){var t=this._retain(e);return this.releaseTemporaryRetain(),t},t.releaseTemporaryRetain=function(){var e;null===(e=this._releaseTemporaryRetain)||void 0===e||e.call(this),this._releaseTemporaryRetain=null},t.getRetainCount=function(){return this._retainCount},e}();e.exports=o},9828:(e,t,r)=>{var n=r(428).loadQuery;e.exports=function e(t,r,a){var o=null;null==r.root.getModuleIfRequired()&&(o=r.root.load());var i=r.getPreloadProps(a),s=i.queries,u=i.entryPoints,l=i.extraProps,c={},f={};null!=s&&Object.keys(s).forEach((function(e){var r=s[e],a=r.environmentProviderOptions,o=r.options,i=r.parameters,u=r.variables,l=t.getEnvironment(a);c[e]=n(l,i,u,{fetchPolicy:null==o?void 0:o.fetchPolicy,networkCacheConfig:null==o?void 0:o.networkCacheConfig,__nameForWarning:"loadEntryPoint"},a)})),null!=u&&Object.keys(u).forEach((function(r){var n=u[r];if(null!=n){var a=n.entryPoint,o=n.entryPointParams;f[r]=e(t,a,o)}}));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 o=null!==(e=o)&&void 0!==e?e:r.root.load();return null!=t.default?t.default:t},get isDisposed(){return d},queries:c,rootModuleID:r.root.getModuleId()}}},428:(e,t,r)=>{var n=(0,r(5275).default)(r(6175)),a=r(5056),o=r(8156),i=r(6658),s=i.__internal.fetchQueryDeduped,u=i.Observable,l=i.PreloadableQueryRegistry,c=i.RelayFeatureFlags,f=i.ReplaySubject,d=i.createOperationDescriptor,h=i.getRequest,p=i.getRequestIdentifier,v=r(4446),m=null,y=100001;e.exports={loadQuery:function(e,t,r,i,g){var _,b,R,C,E=null===(_=o.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)||void 0===_||null===(b=_.ReactCurrentDispatcher)||void 0===b?void 0:b.current;v(null==m||E!==m,"Relay: `%s` should not be called inside a React render function.",null!==(R=null==i?void 0:i.__nameForWarning)&&void 0!==R?R:"loadQuery"),y++;var P,S,x,F,q,I,D=null!==(C=null==i?void 0:i.fetchPolicy)&&void 0!==C?C:"store-or-network",k=(0,n.default)((0,n.default)({},null==i?void 0:i.networkCacheConfig),{},{force:!0}),A=!1,N=function(t,r){return A=!0,e.executeWithSource({operation:t,source:r})},O=new f,w=u.create((function(e){return O.subscribe(e)})),Q=null,T=!1,L=function(t){var n;T=!0;var a=new f;if(!0===c.ENABLE_LOAD_QUERY_REQUEST_DEDUPING){var o="raw-network-request-"+p(t,r);n=s(e,o,(function(){return e.getNetwork().execute(t,r,k)}))}else n=e.getNetwork().execute(t,r,k);var i=n.subscribe({error:function(e){Q=e,a.error(e)},next:function(e){a.next(e)},complete:function(){a.complete()}}).unsubscribe;return S=i,u.create((function(e){var t=a.subscribe(e);return function(){t.unsubscribe(),S()}}))},M=function(t,r){!0===c.ENABLE_LOAD_QUERY_REQUEST_DEDUPING&&(T=!0);var n=s(e,t.request.identifier,r).subscribe({error:function(e){O.error(e)},next:function(e){O.next(e)},complete:function(){O.complete()}});x=n.unsubscribe},U=function(t){var n=d(t,r,k);P=e.retain(n),"store-only"!==D&&("store-or-network"!==D||"available"!==e.check(n).status)&&M(n,(function(){var e=L(t.params);return N(n,e)}))};if("PreloadableConcreteRequest"===t.kind){null===(I=(F=t.params).id)&&a(!1,"Relay: `loadQuery` requires that preloadable query `%s` has a persisted query id",F.name);var j=l.get(I);if(null!=j)U(j);else{var V="store-only"===D?null:L(F),B=l.onLoad(I,(function(t){q();var n=d(t,r,k);P=e.retain(n),null!=V&&M(n,(function(){return N(n,V)}))}));q=B.dispose}}else{var K=h(t);I=null!=(F=K.params).cacheID?F.cacheID:F.id,U(K)}var H=!1,W=!1,G=!1,z=function(){W||(P&&P.dispose(),W=!0)},Y=function(){G||(A?x&&x():S&&S(),q&&q(),G=!0)};return{kind:"PreloadedQuery",environment:e,environmentProviderOptions:g,dispose:function(){H||(z(),Y(),H=!0)},releaseQuery:z,cancelNetworkRequest:Y,fetchKey:y,id:I,get isDisposed(){return H||W},get networkError(){return Q},name:F.name,networkCacheConfig:k,fetchPolicy:D,source:T?w:void 0,variables:r}},useTrackLoadQueryInRender:function(){var e,t;null===m&&(m=null===(e=o.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)||void 0===e||null===(t=e.ReactCurrentDispatcher)||void 0===t?void 0:t.current)}}},5083:(e,t,r)=>{var n=(0,r(5275).default)(r(6175)),a=r(3899);e.exports=function(e,t,r){return a(e,t,(0,n.default)((0,n.default)({},r),{},{fetchPolicy:"store-only"}))}},529:(e,t,r)=>{var n=(0,r(5275).default)(r(5765)),a=r(9828),o=r(428).useTrackLoadQueryInRender,i=r(1743),s=r(8156),u=s.useCallback,l=s.useEffect,c=s.useRef,f=s.useState,d={kind:"NullEntryPointReference"};e.exports=function(e,t,r){var s,h,p,v;o();var m=null!==(s=null==r||null===(h=r.TEST_ONLY__initialEntryPointData)||void 0===h?void 0:h.entryPointReference)&&void 0!==s?s:d,y=null!==(p=null==r||null===(v=r.TEST_ONLY__initialEntryPointData)||void 0===v?void 0:v.entryPointParams)&&void 0!==p?p:null,g=i(),_=c(new Set([m])),b=f(m),R=b[0],C=b[1],E=f(y),P=E[0],S=E[1],x=u((function(){if(g.current){var e={kind:"NullEntryPointReference"};_.current.add(e),C(e)}}),[C,g]),F=u((function(r){if(g.current){var n=a(e,t,r);_.current.add(n),C(n),S(r)}}),[e,t,C,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!=P&&F(P));var e=_.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===R)break;e.delete(a),"NullEntryPointReference"!==a.kind&&a.dispose()}}catch(e){r.e(e)}finally{r.f()}}}),[R,P,F,g]),l((function(){return function(){var e,t=(0,n.default)(_.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"===R.kind?null:R,F,x]}},7863:(e,t,r)=>{var n=r(5813),a=r(8156),o=a.useCallback,i=a.useEffect;e.exports=function(){var e=n(null),t=n(!1),r=o((function(){null!=e.current&&(e.current.unsubscribe(),e.current=null),t.current=!1}),[]),a=o((function(r){e.current=r,t.current=!0}),[]),s=o((function(){e.current=null,t.current=!1}),[]);return i((function(){return r}),[r]),{isFetchingRef:t,startFetch:a,disposeFetch:r,completeFetch:s}}},6242:(e,t,r)=>{var n=r(5914),a=r(428).useTrackLoadQueryInRender,o=r(3077),i=r(275),s=r(8156).useDebugValue,u=r(6658).getFragment;e.exports=function(e,t){var r=n.get();return r?r.useFragment(e,t):function(e,t){a();var r=u(e);i(r,"first argument of useFragment()");var n=o(r,t,"useFragment()").data;return s({fragment:r.name,data:n}),n}(e,t)}},3077:(e,t,r)=>{var n=r(5985).getFragmentResourceForEnvironment,a=r(2750),o=r(5813),i=r(8156),s=i.useEffect,u=i.useState,l=r(6658),c=l.RelayFeatureFlags,f=l.getFragmentIdentifier,d=r(4446);e.exports=function(e,t,r){var i=a(),l=n(i),h=o(!1),p=u(0)[1],v=f(e,t),m=l.readWithIdentifier(e,t,v,r),y=o(!0);function g(){!1!==h.current&&!1!==y.current&&p((function(e){return e+1}))}return s((function(){h.current=!0;var e=l.subscribe(m,g);return function(){h.current=!1,e.dispose()}}),[i,v]),c.LOG_MISSING_RECORDS_IN_PROD,null!=t&&(void 0===m.data||Array.isArray(m.data)&&m.data.length>0&&m.data.every((function(e){return void 0===e})))&&d(!1,"Relay: Expected to have been able to read non-null data for fragment `%s` declared in `%s`, since fragment reference was non-null. Make sure that that `%s`'s parent isn't holding on to and/or passing a fragment reference for data that has been deleted.",e.name,r,r),{data:m.data,disableStoreUpdates:function(){y.current=!1},enableStoreUpdates:function(){y.current=!0,l.checkMissedUpdates(m)[0]&&g()}}}},1743:(e,t,r)=>{var n=r(8156),a=n.useEffect,o=n.useRef;e.exports=function(){var e=o(!0);return a((function(){return e.current=!0,function(){e.current=!1}}),[]),e}},5233:(e,t,r)=>{var n=r(2750),a=r(5056),o=r(8156),i=r(6658),s=i.__internal.getObservableForActiveRequest,u=i.getSelector,l=o.useEffect,c=o.useState,f=o.useMemo;e.exports=function(e,t){var r=n(),o=f((function(){var n=u(e,t);return null==n?null:("SingularReaderSelector"!==n.kind&&a(!1,"useIsOperationNodeActive: Plural fragments are not supported."),s(r,n.owner))}),[r,e,t]),i=c(null!=o),d=i[0],h=i[1];return l((function(){var e;if(h(null!=o),null!=o){var t=function(){h(!1)};e=o.subscribe({complete:t,error:t})}return function(){e&&e.unsubscribe()}}),[o]),d}},3899:(e,t,r)=>{var n=r(428).useTrackLoadQueryInRender,a=r(4734),o=r(1061),i=r(2750),s=r(6658).__internal.fetchQuery;e.exports=function(e,t,r){n();var u=i(),l=o(e,t,r&&r.networkCacheConfig?r.networkCacheConfig:{force:!0});return a({componentDisplayName:"useLazyLoadQuery()",fetchKey:null==r?void 0:r.fetchKey,fetchObservable:s(u,l),fetchPolicy:null==r?void 0:r.fetchPolicy,query:l,renderPolicy:null==r?void 0:r.UNSTABLE_renderPolicy})}},4734:(e,t,r)=>{var n=r(5914),a=r(3187),o=r(1269),i=o.getQueryCacheIdentifier,s=o.getQueryResourceForEnvironment,u=r(7863),l=r(3077),c=r(2750),f=r(8156),d=f.useContext,h=f.useEffect,p=f.useState,v=f.useRef;e.exports=function(e){var t=e.query,r=e.componentDisplayName,o=e.fetchObservable,f=e.fetchPolicy,m=e.fetchKey,y=e.renderPolicy,g=c(),_=d(a),b=s(g),R=p(0),C=R[0],E=R[1],P=u(),S=P.startFetch,x=P.completeFetch,F="".concat(C,"-").concat(null!=m?m:""),q=i(g,t,f,y,F),I=_.wrapPrepareQueryResource((function(){return b.prepareWithIdentifier(q,t,o,f,y,{start:S,complete:x,error:x},_)})),D=v(!1);return h((function(){return function(){D.current=!0}}),[]),h((function(){if(!0===D.current)return D.current=!1,void E((function(e){return e+1}));var e=b.retain(I,_);return function(){e.dispose()}}),[g,q]),h((function(){b.releaseTemporaryRetain(I)})),function(e,t,r){var a=n.get();return a&&a.useFragment__internal?a.useFragment__internal(e,t,r):l(e,t,r).data}(I.fragmentNode,I.fragmentRef,r)}},9601:(e,t,r)=>{var n=(0,r(5275).default)(r(6175)),a=r(7863),o=r(1743),i=r(5233),s=r(2750),u=r(5056),l=r(8156),c=l.useCallback,f=l.useEffect,d=l.useState,h=r(6658),p=h.__internal.fetchQuery,v=h.ConnectionInterface,m=h.createOperationDescriptor,y=h.getPaginationVariables,g=h.getRefetchMetadata,_=h.getSelector,b=h.getValueAtPath,R=r(4446);e.exports=function(e){var t=e.direction,r=e.fragmentNode,l=e.fragmentRef,h=e.fragmentIdentifier,C=e.fragmentData,E=e.connectionPathInFragmentData,P=e.paginationRequest,S=e.paginationMetadata,x=e.componentDisplayName,F=e.observer,q=e.onReset,I=s(),D=a(),k=D.isFetchingRef,A=D.startFetch,N=D.disposeFetch,O=D.completeFetch,w=g(r,x).identifierInfo,Q=null!=(null==w?void 0:w.identifierField)&&null!=C&&"object"==typeof C?C[w.identifierField]:null,T=o(),L=d(I),M=L[0],U=L[1],j=d(h),V=j[0],B=j[1],K=i(r,l);(I!==M||h!==V)&&(N(),q(),U(I),B(h));var H=function(e,t,r,n){var a,o,i=v.get(),s=i.EDGES,l=i.PAGE_INFO,c=i.HAS_NEXT_PAGE,f=i.HAS_PREV_PAGE,d=i.END_CURSOR,h=i.START_CURSOR,p=b(r,n);if(null==p)return{cursor:null,hasMore:!1};"object"!=typeof p&&u(!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,s,l,p);var m=p[s],y=p[l];if(null==m||null==y)return{cursor:null,hasMore:!1};Array.isArray(m)||u(!1,"Relay: Expected connection in fragment `%s` to have a plural `%s` field. Instead got `%s`.",t.name,s,m),"object"!=typeof y&&u(!1,"Relay: Expected connection in fragment `%s` to have a `%s` field. Instead got `%s`.",t.name,l,y);var g="forward"===e?null!==(a=y[d])&&void 0!==a?a:null:null!==(o=y[h])&&void 0!==o?o:null;return null!==g&&"string"!=typeof g&&u(!1,"Relay: Expected page info for connection in fragment `%s` to have a valid `%s`. Instead got `%s`.",t.name,h,g),{cursor:g,hasMore:"forward"===e?null!=g&&!0===y[c]:null!=g&&!0===y[f]}}(t,r,C,E),W=H.cursor,G=H.hasMore;return f((function(){return function(){N()}}),[N]),[c((function(e,a){var o=null==a?void 0:a.onComplete;if(!0!==T.current)return R(!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,x),{dispose:function(){}};var i=_(r,l);if(!0===k.current||null==C||K)return null==i&&R(!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,x,x),o&&o(null),{dispose:function(){}};(null==i||"PluralReaderSelector"===i.kind)&&u(!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,x);var s=i.owner.variables,c=i.variables,f=null==a?void 0:a.UNSTABLE_extraVariables,d=(0,n.default)((0,n.default)({},s),c),h=y(t,e,W,d,(0,n.default)({},f),S);null!=w&&("string"!=typeof Q&&R(!1,"Relay: Expected result to have a string `%s` in order to refetch, got `%s`.",w.identifierField,Q),h[w.identifierQueryVariableName]=Q);var v=m(P,h,{force:!0});return p(I,v).subscribe((0,n.default)((0,n.default)({},F),{},{start:function(e){A(e),F.start&&F.start(e)},complete:function(){O(),F.complete&&F.complete(),o&&o(null)},error:function(e){O(),F.error&&F.error(e),o&&o(e)}})),{dispose:N}}),[I,Q,t,W,A,N,O,k,K,C,r.name,l,x]),G,N]}},1061:(e,t,r)=>{var n=r(6925),a=r(8156),o=r(6658),i=o.createOperationDescriptor,s=o.getRequest,u=a.useMemo;e.exports=function(e,t,r){var a=n(t),o=n(r||{});return u((function(){return i(s(e),a,o)}),[e,a,o])}},6925:(e,t,r)=>{var n=r(9125),a=r(8156).useState;e.exports=function(e){var t=a(e),r=t[0],o=t[1];return n(e,r)?r:(o(e),e)}},3115:(e,t,r)=>{var n=(0,r(5275).default)(r(6175)),a=r(1743),o=r(2750),i=r(8156),s=r(6658).commitMutation,u=i.useState,l=i.useEffect,c=i.useRef,f=i.useCallback;e.exports=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:s,r=o(),i=a(),d=c(r),h=c(e),p=c(new Set),v=u(!1),m=v[0],y=v[1],g=f((function(t){d.current===r&&h.current===e&&(p.current.delete(t),i.current&&y(p.current.size>0))}),[r,i,e]);return l((function(){d.current===r&&h.current===e||(p.current=new Set,i.current&&y(!1),d.current=r,h.current=e)}),[r,i,e]),[f((function(a){i.current&&y(!0);var o=t(r,(0,n.default)((0,n.default)({},a),{},{mutation:e,onCompleted:function(e,t){var r;g(o),null===(r=a.onCompleted)||void 0===r||r.call(a,e,t)},onError:function(e){var t;g(o),null===(t=a.onError)||void 0===t||t.call(a,e)},onUnsubscribe:function(){var e;g(o),null===(e=a.onUnsubscribe)||void 0===e||e.call(a)},onNext:function(){var e;null===(e=a.onNext)||void 0===e||e.call(a)}}));return p.current.add(o),o}),[g,t,r,i,e]),m]}},951:(e,t,r)=>{var n=(0,r(5275).default)(r(6175)),a=r(5914),o=r(9601),i=r(1691),s=r(275),u=r(8156),l=u.useCallback,c=u.useDebugValue,f=u.useState,d=r(6658),h=d.getFragment,p=d.getFragmentIdentifier,v=d.getPaginationMetadata;function m(e){var t=f(!1),r=t[0],a=t[1],i={start:function(){return a(!0)},complete:function(){return a(!1)},error:function(){return a(!1)}},s=o((0,n.default)((0,n.default)({},e),{},{observer:i,onReset:function(){return a(!1)}}));return[s[0],s[1],r,s[2]]}e.exports=function(e,t){var r=a.get();return r?r.usePaginationFragment(e,t):function(e,t){var r=h(e);s(r,"first argument of usePaginationFragment()");var a="usePaginationFragment()",o=v(r,a),u=o.connectionPathInFragmentData,f=o.paginationRequest,d=o.paginationMetadata,y=i(r,t,a),g=y.fragmentData,_=y.fragmentRef,b=y.refetch,R=p(r,_),C=m({componentDisplayName:a,connectionPathInFragmentData:u,direction:"backward",fragmentData:g,fragmentIdentifier:R,fragmentNode:r,fragmentRef:_,paginationMetadata:d,paginationRequest:f}),E=C[0],P=C[1],S=C[2],x=C[3],F=m({componentDisplayName:a,connectionPathInFragmentData:u,direction:"forward",fragmentData:g,fragmentIdentifier:R,fragmentNode:r,fragmentRef:_,paginationMetadata:d,paginationRequest:f}),q=F[0],I=F[1],D=F[2],k=F[3],A=l((function(e,t){return k(),x(),b(e,(0,n.default)((0,n.default)({},t),{},{__environment:void 0}))}),[k,x,b]);return c({fragment:r.name,data:g,hasNext:I,isLoadingNext:D,hasPrevious:P,isLoadingPrevious:S}),{data:g,loadNext:q,loadPrevious:E,hasNext:I,hasPrevious:P,isLoadingNext:D,isLoadingPrevious:S,refetch:A}}(e,t)}},4617:(e,t,r)=>{var n=r(428).useTrackLoadQueryInRender,a=r(4734),o=r(1061),i=r(2750),s=r(5056),u=r(8156).useDebugValue,l=r(6658).__internal,c=l.fetchQueryDeduped,f=l.fetchQuery,d=r(4446);e.exports=function(e,t,r){n();var l,h=i(),p=t.fetchKey,v=t.fetchPolicy,m=t.source,y=t.variables,g=t.networkCacheConfig,_=o(e,y,g);if("PreloadedQuery_DEPRECATED"===t.kind)_.request.node.params.name!==t.name&&s(!1,"usePreloadedQuery(): Expected data to be prefetched for query `%s`, got prefetch results for query `%s`.",_.request.node.params.name,t.name),l={componentDisplayName:"usePreloadedQuery()",fetchKey:p,fetchObservable:c(h,_.request.identifier,(function(){return h===t.environment&&null!=m?h.executeWithSource({operation:_,source:m}):h.execute({operation:_})})),fetchPolicy:v,query:_,renderPolicy:null==r?void 0:r.UNSTABLE_renderPolicy};else{d(!1===t.isDisposed,"usePreloadedQuery(): Expected preloadedQuery to not be disposed yet. This is because disposing the query marks it for future garbage collection, and as such query results may no longer be present in the Relay store. In the future, this will become a hard error.");var b,R=f(h,_);null!=m&&h===t.environment?b=m.ifEmpty(R):h!==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."),b=R):b=R,l={componentDisplayName:"usePreloadedQuery()",fetchObservable:b,fetchKey:p,fetchPolicy:v,query:_,renderPolicy:null==r?void 0:r.UNSTABLE_renderPolicy}}var C=a(l);return u({query:t.name,variables:t.variables,data:C,fetchKey:p,fetchPolicy:v,renderPolicy:null==r?void 0:r.UNSTABLE_renderPolicy}),C}},8876:(e,t,r)=>{var n=(0,r(5275).default)(r(5765)),a=r(428),o=a.loadQuery,i=a.useTrackLoadQueryInRender,s=r(1743),u=r(2750),l=r(8156),c=l.useCallback,f=l.useEffect,d=l.useRef,h=l.useState,p=r(6658).getRequest,v={kind:"NullQueryReference"};function m(e){return"PreloadableConcreteRequest"===e.kind?void 0!==e.params.metadata.live:void 0!==p(e).params.metadata.live}e.exports=function(e,t){var r=null!=t?t:v,a=u();i();var l=s(),p=d(new Set([r])),y=h((function(){return r})),g=y[0],_=y[1],b=h((function(){return r})),R=b[0],C=b[1];r!==R&&(p.current.add(r),C(r),_(r));var E=c((function(){l.current&&(p.current.add(v),_(v))}),[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 i,s=o(null!==(i=null==r?void 0:r.__environment)&&void 0!==i?i:a,e,t,n);p.current.add(s),_(s)}}),[a,e,_,l]),S=d(!1);return f((function(){return function(){S.current=!0}}),[]),f((function(){if(!0===S.current)return S.current=!1,void("NullQueryReference"!==g.kind&&P(g.variables,{fetchPolicy:g.fetchPolicy,networkCacheConfig:g.networkCacheConfig}));var t=p.current;if(l.current){var r,a=(0,n.default)(t);try{for(a.s();!(r=a.n()).done;){var o=r.value;if(o===g)break;t.delete(o),"NullQueryReference"!==o.kind&&(m(e)?o.dispose&&o.dispose():o.releaseQuery&&o.releaseQuery())}}catch(e){a.e(e)}finally{a.f()}}}),[g,l,P,e]),f((function(){return function(){var t,r=(0,n.default)(p.current);try{for(r.s();!(t=r.n()).done;){var a=t.value;"NullQueryReference"!==a.kind&&(m(e)?a.dispose&&a.dispose():a.releaseQuery&&a.releaseQuery())}}catch(e){r.e(e)}finally{r.f()}}}),[e]),["NullQueryReference"===g.kind?null:g,P,E]}},8874:(e,t,r)=>{var n=r(5914),a=r(1691),o=r(275),i=r(8156).useDebugValue,s=r(6658).getFragment;e.exports=function(e,t){var r=n.get();return r?r.useRefetchableFragment(e,t):function(e,t){var r=s(e);o(r,"first argument of useRefetchableFragment()");var n=a(r,t,"useRefetchableFragment()"),u=n.fragmentData,l=n.refetch;return i({fragment:r.name,data:u}),[u,l]}(e,t)}},1691:(e,t,r)=>{var n,a=(0,r(5275).default)(r(6175)),o=r(5985).getFragmentResourceForEnvironment,i=r(3187),s=r(1269).getQueryResourceForEnvironment,u=r(3077),l=r(1743),c=r(8876),f=r(2750),d=r(5056),h=r(8156),p=h.useCallback,v=h.useContext,m=h.useReducer,y=r(6658),g=y.__internal.fetchQuery,_=y.createOperationDescriptor,b=y.getFragmentIdentifier,R=y.getRefetchMetadata,C=y.getSelector,E=y.getValueAtPath,P=r(4446);function S(e,t){switch(t.type){case"refetch":var r;return(0,a.default)((0,a.default)({},e),{},{fetchPolicy:t.fetchPolicy,mirroredEnvironment:null!==(r=t.refetchEnvironment)&&void 0!==r?r:e.mirroredEnvironment,onComplete:t.onComplete,refetchEnvironment:t.refetchEnvironment,refetchQuery:t.refetchQuery,renderPolicy:t.renderPolicy});case"reset":return{fetchPolicy:void 0,mirroredEnvironment:t.environment,mirroredFragmentIdentifier:t.fragmentIdentifier,onComplete:void 0,refetchQuery:null,renderPolicy:void 0};default:throw t.type,new Error("useRefetchableFragmentNode: Unexpected action type")}}n={getInitialIDAndType:function(e,t,n,a){var o=r(6658).Record,i=null==e?void 0:e[null!=n?n:"id"];if(1!==t.length||"node"!==t[0]||null==i)return null;var s=a.getStore().getSource().get(i),u=null==s?null:o.getType(s);return null==u?null:{id:i,typename:u}},checkSameTypeAfterRefetch:function(e,t,n,a){var o=r(6658).Record;if(e){var i=t.getStore().getSource().get(e.id),s=i&&o.getType(i);s!==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,s,n.name,a)}},checkSameIDAfterRefetch:function(e,t,n,a){if(null!=e){var o=t[r(6658).ID_KEY];null!=o&&o!==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.",o,e.id,n.name,a)}}},e.exports=function(e,t,r){var h=f(),y=R(e,r),x=y.refetchableRequest,F=y.fragmentRefPathInResponse,q=b(e,t),I=m(S,{fetchPolicy:void 0,mirroredEnvironment:h,mirroredFragmentIdentifier:q,onComplete:void 0,refetchEnvironment:null,refetchQuery:null,renderPolicy:void 0}),D=I[0],k=I[1],A=D.fetchPolicy,N=D.mirroredEnvironment,O=D.mirroredFragmentIdentifier,w=D.onComplete,Q=D.refetchEnvironment,T=D.refetchQuery,L=D.renderPolicy,M=null!=Q?Q:h,U=s(M),j=o(M),V=v(i),B=M!==N||q!==O,K=c(x),H=K[0],W=K[1],G=K[2],z=t,Y=R(e,r).identifierInfo;if(B)k({type:"reset",environment:M,fragmentIdentifier:q}),G();else if(null!=T&&null!=H){var X;X=n.getInitialIDAndType(T.request.variables,F,null==Y?void 0:Y.identifierQueryVariableName,M);var J=function(e){w&&w(null!=e?e:null)},Z=null!=H.source?H.source:g(M,T),$=V.wrapPrepareQueryResource((function(){return U.prepare(T,Z,A,L,{error:J,complete:function(){n.checkSameTypeAfterRefetch(X,M,e,r),J()}},H.fetchKey,V)})),ee=j.read($.fragmentNode,$.fragmentRef,r).data;null==ee&&d(!1,"Relay: Expected to be able to read refetch query response. If you're seeing this, this is likely a bug in Relay."),z=E(ee,F),n.checkSameIDAfterRefetch(X,z,e,r)}var te=u(e,z,r),re=te.data,ne=te.disableStoreUpdates,ae=te.enableStoreUpdates,oe=function(e,t,r,n,o,i,s,u,c,f,d){var h=l(),v=null!=(null==u?void 0:u.identifierField)&&null!=n&&"object"==typeof n?n[u.identifierField]:null;return p((function(n,o){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.",i.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`.",i.name,e,e);var s,l,p=null==o?void 0:o.__environment,m=null==o?void 0:o.fetchPolicy,y=null==o?void 0:o.UNSTABLE_renderPolicy,g=null==o?void 0:o.onComplete,b=C(i,f);if(null==b)s={},l={};else if("PluralReaderSelector"===b.kind){var R,E,S,x;s=null!==(R=null===(E=b.selectors[0])||void 0===E?void 0:E.owner.variables)&&void 0!==R?R:{},l=null!==(S=null===(x=b.selectors[0])||void 0===x?void 0:x.variables)&&void 0!==S?S:{}}else s=b.owner.variables,l=b.variables;var F=(0,a.default)((0,a.default)((0,a.default)({},s),l),n);null==u||n.hasOwnProperty(u.identifierQueryVariableName)||("string"!=typeof v&&P(!1,"Relay: Expected result to have a string `%s` in order to refetch, got `%s`.",u.identifierField,v),F[u.identifierQueryVariableName]=v);var q=_(d,F,{force:!0});return c(q.request.variables,{fetchPolicy:m,__environment:p,__nameForWarning:"refetch"}),t({type:"refetch",fetchPolicy:m,onComplete:g,refetchEnvironment:p,refetchQuery:q,renderPolicy:y}),{dispose:r}}),[o,t,r,v,c])}(r,k,G,re,q,e,0,Y,W,t,x);return{fragmentData:re,fragmentRef:z,refetch:oe,disableStoreUpdates:ne,enableStoreUpdates:ae}}},2750:(e,t,r)=>{var n=r(9888),a=r(5056),o=r(8156).useContext;e.exports=function(){var e=o(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}},275:(e,t,r)=>{var n=r(5813),a=r(4446);e.exports=function(e,t){var r=n(e.name);a(r.current===e.name,"Relay: The %s has to remain the same over the lifetime of a component. Changing it is not supported and will result in unexpected behavior.",t)}},8050:(e,t,r)=>{var n=r(2750),a=r(8156),o=a.useEffect,i=a.useRef;e.exports=function(e,t){var r=n(),a=i(null),s=Array.from(e).sort().join("");return o((function(){var n=r.getStore(),o=n.lookupInvalidationState(e),i=n.subscribeToInvalidationState(o,t);return a.current=i,function(){return i.dispose()}}),[s,t,r]),{dispose:function(){null!=a.current&&a.current.dispose()}}}},5746:(e,t,r)=>{var n=r(2750),a=r(8156).useEffect,o=r(6658).requestSubscription;e.exports=function(e,t){var r=null!=t?t:o,i=n();a((function(){return r(i,e).dispose}),[i,e,r])}},5813:(e,t,r)=>{var n=r(8156).useMemo;e.exports=function(e){return n((function(){return{current:e}}),[])}},5383:t=>{t.exports=e},5765:e=>{e.exports=t},311:e=>{e.exports=r},4924:e=>{e.exports=n},8296:e=>{e.exports=a},5275:e=>{e.exports=o},6175:e=>{e.exports=i},5264:e=>{e.exports=s},642:e=>{e.exports=u},9125:e=>{e.exports=l},4446:e=>{e.exports=c},5056:e=>{e.exports=f},8156:e=>{e.exports=d},6658:e=>{e.exports=h}},v={};return function e(t){var r=v[t];if(void 0!==r)return r.exports;var n=v[t]={exports:{}};return p[t](n,n.exports,e),n.exports}(5265)})()));
4
+ !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("@babel/runtime/helpers/assertThisInitialized"),require("@babel/runtime/helpers/createForOfIteratorHelper"),require("@babel/runtime/helpers/defineProperty"),require("@babel/runtime/helpers/extends"),require("@babel/runtime/helpers/inheritsLoose"),require("@babel/runtime/helpers/interopRequireDefault"),require("@babel/runtime/helpers/objectSpread2"),require("@babel/runtime/helpers/objectWithoutPropertiesLoose"),require("@babel/runtime/helpers/toConsumableArray"),require("fbjs/lib/areEqual"),require("fbjs/lib/warning"),require("invariant"),require("react"),require("relay-runtime")):"function"==typeof define&&define.amd?define(["@babel/runtime/helpers/assertThisInitialized","@babel/runtime/helpers/createForOfIteratorHelper","@babel/runtime/helpers/defineProperty","@babel/runtime/helpers/extends","@babel/runtime/helpers/inheritsLoose","@babel/runtime/helpers/interopRequireDefault","@babel/runtime/helpers/objectSpread2","@babel/runtime/helpers/objectWithoutPropertiesLoose","@babel/runtime/helpers/toConsumableArray","fbjs/lib/areEqual","fbjs/lib/warning","invariant","react","relay-runtime"],t):"object"==typeof exports?exports.ReactRelay=t(require("@babel/runtime/helpers/assertThisInitialized"),require("@babel/runtime/helpers/createForOfIteratorHelper"),require("@babel/runtime/helpers/defineProperty"),require("@babel/runtime/helpers/extends"),require("@babel/runtime/helpers/inheritsLoose"),require("@babel/runtime/helpers/interopRequireDefault"),require("@babel/runtime/helpers/objectSpread2"),require("@babel/runtime/helpers/objectWithoutPropertiesLoose"),require("@babel/runtime/helpers/toConsumableArray"),require("fbjs/lib/areEqual"),require("fbjs/lib/warning"),require("invariant"),require("react"),require("relay-runtime")):e.ReactRelay=t(e["@babel/runtime/helpers/assertThisInitialized"],e["@babel/runtime/helpers/createForOfIteratorHelper"],e["@babel/runtime/helpers/defineProperty"],e["@babel/runtime/helpers/extends"],e["@babel/runtime/helpers/inheritsLoose"],e["@babel/runtime/helpers/interopRequireDefault"],e["@babel/runtime/helpers/objectSpread2"],e["@babel/runtime/helpers/objectWithoutPropertiesLoose"],e["@babel/runtime/helpers/toConsumableArray"],e["fbjs/lib/areEqual"],e["fbjs/lib/warning"],e.invariant,e.react,e["relay-runtime"])}(self,((e,t,r,n,a,o,i,s,l,u,c,f,d,h)=>(()=>{"use strict";var p={7426:e=>{function t(e){return e.displayName||e.name||"Component"}e.exports={getComponentName:t,getContainerName:function(e){return"Relay("+t(e)+")"}}},9888:(e,t,r)=>{var n=r(8156),a=r(6658).__internal.createRelayContext;e.exports=a(n)},7362:(e,t,r)=>{var n=r(5275).default,a=n(r(4924)),o=n(r(5264)),i=n(r(5383)),s=n(r(8296)),l=n(r(311)),u=["componentRef","__relayContext","__rootIsQueryRenderer"],c=r(3089),f=r(7426).getContainerName,d=r(8827).assertRelayContext,h=r(9125),p=r(8156),v=r(6658),m=v.createFragmentSpecResolver,y=v.getDataIDsFromObject,g=v.isScalarAndEqual;function b(e,t){var r,n=f(e);return r=function(r){function c(e){var a,o;o=r.call(this,e)||this,(0,l.default)((0,i.default)(o),"_handleFragmentDataUpdate",(function(){var e=o.state.resolver;o.setState((function(t){return e===t.resolver?{data:t.resolver.resolve(),relayProp:_(t.relayProp.environment)}:null}))}));var s=d(e.__relayContext),u=null!==(a=e.__rootIsQueryRenderer)&&void 0!==a&&a,c=m(s,n,t,e,u);return o.state={data:c.resolve(),prevProps:e,prevPropsContext:s,relayProp:_(s.environment),resolver:c},o}(0,s.default)(c,r),c.getDerivedStateFromProps=function(e,r){var a,o=r.prevProps,i=d(e.__relayContext),s=null!==(a=e.__rootIsQueryRenderer)&&void 0!==a&&a,l=y(t,o),u=y(t,e),c=r.resolver;if(r.prevPropsContext.environment!==i.environment||!h(l,u))return{data:(c=m(i,n,t,e,s)).resolve(),prevPropsContext:i,prevProps:e,relayProp:_(i.environment),resolver:c};c.setProps(e);var f=c.resolve();return f!==r.data?{data:f,prevProps:e,prevPropsContext:i,relayProp:_(i.environment)}:null};var f=c.prototype;return f.componentDidMount=function(){this._subscribeToNewResolverAndRerenderIfStoreHasChanged()},f.componentDidUpdate=function(e,t){this.state.resolver!==t.resolver?(t.resolver.dispose(),this._subscribeToNewResolverAndRerenderIfStoreHasChanged()):this._rerenderIfStoreHasChanged()},f.componentWillUnmount=function(){this.state.resolver.dispose()},f.shouldComponentUpdate=function(e,r){if(r.data!==this.state.data)return!0;for(var n=Object.keys(e),a=0;a<n.length;a++){var o=n[a];if("__relayContext"===o){if(r.prevPropsContext.environment!==this.state.prevPropsContext.environment)return!0}else if(!t.hasOwnProperty(o)&&!g(e[o],this.props[o]))return!0}return!1},f._rerenderIfStoreHasChanged=function(){var e=this.state,t=e.data,r=e.resolver.resolve();t!==r&&this.setState({data:r})},f._subscribeToNewResolverAndRerenderIfStoreHasChanged=function(){var e=this.state,t=e.data,r=e.resolver,n=r.resolve();r.setCallback(this.props,this._handleFragmentDataUpdate),t!==n&&this.setState({data:n})},f.render=function(){var t=this.props,r=t.componentRef,n=(t.__relayContext,t.__rootIsQueryRenderer,(0,o.default)(t,u));return p.createElement(e,(0,a.default)({},n,this.state.data,{ref:r,relay:this.state.relayProp}))},c}(p.Component),(0,l.default)(r,"displayName",n),r}function _(e){return{environment:e}}e.exports={createContainer:function(e,t){return c(e,t,b)}}},1428:(e,t,r)=>{var n=r(9888),a=r(7239),o=r(9125),i=r(8156),s=r(6658),l=s.createOperationDescriptor,u=s.deepFreeze,c=s.getRequest,f=i.useLayoutEffect,d=i.useState,h=i.useRef,p=i.useMemo,v={rootIsQueryRenderer:!0};e.exports=function(e){var t,r,s=e.environment,m=e.query,y=e.variables,g=e.render,b=(t=y,r=i.useRef(t),o(r.current,t)||(u(t),r.current=t),r.current),_=p((function(){var e=c(m);return l(e,b)}),[m,b]),R=p((function(){return{environment:s}}),[s]),C=h(null),P=d(null)[1],E=h(null),x=p((function(){s.check(_);var e=s.lookup(_.fragment);C.current=e.data;var t=s.retain(_),r=s.subscribe(e,(function(e){C.current=e.data,P(C.current)})),n=!1;return E.current&&E.current(),E.current=function(){n||(n=!0,E.current=null,t.dispose(),r.dispose())},e}),[s,_]);return f((function(){var e=E.current;return function(){e&&e()}}),[x]),i.createElement(n.Provider,{value:R},i.createElement(a.Provider,{value:v},g({props:C.current})))}},3540:(e,t,r)=>{var n=r(5275).default,a=n(r(4924)),o=n(r(5264)),i=n(r(5383)),s=n(r(8296)),l=n(r(311)),u=n(r(6175)),c=["componentRef"],f=["componentRef","__relayContext","__rootIsQueryRenderer"],d=["componentRef","__relayContext","__rootIsQueryRenderer"],h=r(3089),p=r(8416),v=r(7426),m=v.getComponentName,y=v.getContainerName,g=r(9888),b=r(733),_=r(8827).assertRelayContext,R=r(9125),C=r(5056),P=r(8156),E=r(6658),x=E.ConnectionInterface,S=E.Observable,F=E.RelayFeatureFlags,k=E.createFragmentSpecResolver,q=E.createOperationDescriptor,D=E.getDataIDsFromObject,I=E.getRequest,w=E.getVariablesFromObject,O=E.isScalarAndEqual,N=r(4446),A="forward";function Q(e){return"function"==typeof e?{error:e,complete:e,unsubscribe:function(t){"function"==typeof e&&e()}}:e||{}}e.exports={createContainer:function(e,t,r){return h(e,t,(function(e,t){return function(e,t,r){var n,h=m(e),v=y(e),E=function(e){var t=null,r=!1;for(var n in e){var a=e[n],o=a.metadata&&a.metadata.connection;void 0!==a.metadata&&(r=!0),o&&(1!==o.length&&C(!1,"ReactRelayPaginationContainer: Only a single @connection is supported, `%s` has %s.",n,o.length),t&&C(!1,"ReactRelayPaginationContainer: Only a single fragment with @connection is supported."),t=(0,u.default)((0,u.default)({},o[0]),{},{fragmentName:n}))}return r&&null===t&&C(!1,"ReactRelayPaginationContainer: A @connection directive must be present."),t||{}}(t),T=r.getConnectionFromProps||function(e){var t=e.path;return t||C(!1,"ReactRelayPaginationContainer: Unable to synthesize a getConnectionFromProps function."),function(r){for(var n=r[e.fragmentName],a=0;a<t.length;a++){if(!n||"object"!=typeof n)return null;n=n[t[a]]}return n}}(E),U=r.direction||E.direction;U||C(!1,"ReactRelayPaginationContainer: Unable to infer direction of the connection, possibly because both first and last are provided.");var M=r.getFragmentVariables||function(e){var t=e.count;return t||C(!1,"ReactRelayPaginationContainer: Unable to synthesize a getFragmentVariables function."),function(e,r){return(0,u.default)((0,u.default)({},e),{},(0,l.default)({},t,r))}}(E);return n=function(n){function m(e){var r,a;a=n.call(this,e)||this,(0,l.default)((0,i.default)(a),"_handleFragmentDataUpdate",(function(){a.setState({data:a._resolver.resolve()})})),(0,l.default)((0,i.default)(a),"_hasMore",(function(){var e=a._getConnectionData();return!!(e&&e.hasMore&&e.cursor)})),(0,l.default)((0,i.default)(a),"_isLoading",(function(){return!!a._refetchSubscription})),(0,l.default)((0,i.default)(a),"_refetchConnection",(function(e,t,r){if(!a._canFetchPage("refetchConnection"))return{dispose:function(){}};a._refetchVariables=r;var n={count:e,cursor:null,totalCount:e};return{dispose:a._fetchPage(n,Q(t),{force:!0}).unsubscribe}})),(0,l.default)((0,i.default)(a),"_loadMore",(function(e,t,r){if(!a._canFetchPage("loadMore"))return{dispose:function(){}};var n=Q(t),o=a._getConnectionData();if(!o)return S.create((function(e){return e.complete()})).subscribe(n),null;var i=o.edgeCount+e;if(r&&r.force)return a._refetchConnection(i,t);var s=x.get(),l=s.END_CURSOR,u=s.START_CURSOR,c=o.cursor;N(null!=c&&""!==c,"ReactRelayPaginationContainer: Cannot `loadMore` without valid `%s` (got `%s`)",U===A?l:u,c);var f={count:e,cursor:c,totalCount:i};return{dispose:a._fetchPage(f,n,r).unsubscribe}}));var o=_(e.__relayContext),s=null!==(r=e.__rootIsQueryRenderer)&&void 0!==r&&r;return a._isARequestInFlight=!1,a._refetchSubscription=null,a._refetchVariables=null,!0===F.ENABLE_CONTAINERS_SUBSCRIBE_ON_COMMIT?a._resolver=k(o,v,t,e,s):a._resolver=k(o,v,t,e,s,a._handleFragmentDataUpdate),a.state={data:a._resolver.resolve(),prevContext:o,contextForChildren:o,relayProp:a._buildRelayProp(o),resolverGeneration:0},a._isUnmounted=!1,a._hasFetched=!1,a}(0,s.default)(m,n);var y=m.prototype;return y.componentDidMount=function(){this._isUnmounted=!1,!0===F.ENABLE_CONTAINERS_SUBSCRIBE_ON_COMMIT&&this._subscribeToNewResolverAndRerenderIfStoreHasChanged()},y.componentDidUpdate=function(e,t){!0===F.ENABLE_CONTAINERS_SUBSCRIBE_ON_COMMIT&&(t.resolverGeneration!==this.state.resolverGeneration?this._subscribeToNewResolverAndRerenderIfStoreHasChanged():this._rerenderIfStoreHasChanged())},y.UNSAFE_componentWillReceiveProps=function(e){var r,n=this,a=_(e.__relayContext),o=null!==(r=e.__rootIsQueryRenderer)&&void 0!==r&&r,i=D(t,this.props),s=D(t,e),l=p(t,this.props),u=p(t,e);a.environment===this.state.prevContext.environment&&R(l,u)&&R(i,s)?this._hasFetched||this._resolver.setProps(e):(this._cleanup(),!0===F.ENABLE_CONTAINERS_SUBSCRIBE_ON_COMMIT?this._resolver=k(a,v,t,e,o):this._resolver=k(a,v,t,e,o,this._handleFragmentDataUpdate),this.setState((function(e){return{prevContext:a,contextForChildren:a,relayProp:n._buildRelayProp(a),resolverGeneration:e.resolverGeneration+1}})));var c=this._resolver.resolve();c!==this.state.data&&this.setState({data:c})},y.componentWillUnmount=function(){this._isUnmounted=!0,this._cleanup()},y.shouldComponentUpdate=function(e,r){if(r.data!==this.state.data||r.relayProp!==this.state.relayProp||r.resolverGeneration!==this.state.resolverGeneration)return!0;for(var n=Object.keys(e),a=0;a<n.length;a++){var o=n[a];if("__relayContext"===o){if(r.prevContext.environment!==this.state.prevContext.environment)return!0}else if(!t.hasOwnProperty(o)&&!O(e[o],this.props[o]))return!0}return!1},y._buildRelayProp=function(e){return{hasMore:this._hasMore,isLoading:this._isLoading,loadMore:this._loadMore,refetchConnection:this._refetchConnection,environment:e.environment}},y._rerenderIfStoreHasChanged=function(){var e=this.state.data,t=this._resolver.resolve();e!==t&&this.setState({data:t})},y._subscribeToNewResolverAndRerenderIfStoreHasChanged=function(){var e=this.state.data,t=this._resolver.resolve();this._resolver.setCallback(this.props,this._handleFragmentDataUpdate),e!==t&&this.setState({data:t})},y._getConnectionData=function(){var e=this.props,t=(e.componentRef,(0,o.default)(e,c)),r=(0,u.default)((0,u.default)({},t),this.state.data),n=T(r);if(null==n)return null;var a=x.get(),i=a.EDGES,s=a.PAGE_INFO,l=a.HAS_NEXT_PAGE,f=a.HAS_PREV_PAGE,d=a.END_CURSOR,p=a.START_CURSOR;"object"!=typeof n&&C(!1,"ReactRelayPaginationContainer: Expected `getConnectionFromProps()` in `%s`to return `null` or a plain object with %s and %s properties, got `%s`.",h,i,s,n);var v=n[i],m=n[s];if(null==v||null==m)return null;Array.isArray(v)||C(!1,"ReactRelayPaginationContainer: Expected `getConnectionFromProps()` in `%s`to return an object with %s: Array, got `%s`.",h,i,v),"object"!=typeof m&&C(!1,"ReactRelayPaginationContainer: Expected `getConnectionFromProps()` in `%s`to return an object with %s: Object, got `%s`.",h,s,m);var y=U===A?m[l]:m[f],g=U===A?m[d]:m[p];return"boolean"!=typeof y||0!==v.length&&void 0===g?(N(!1,"ReactRelayPaginationContainer: Cannot paginate without %s fields in `%s`. Be sure to fetch %s (got `%s`) and %s (got `%s`).",s,h,U===A?l:f,y,U===A?d:p,g),null):{cursor:g,edgeCount:v.length,hasMore:y}},y._getQueryFetcher=function(){return this._queryFetcher||(this._queryFetcher=new b),this._queryFetcher},y._canFetchPage=function(e){return!this._isUnmounted||(N(!1,"ReactRelayPaginationContainer: Unexpected call of `%s` on unmounted container `%s`. It looks like some instances of your container still trying to fetch data but they already unmounted. Please make sure you clear all timers, intervals, async calls, etc that may trigger `%s` call.",e,v,e),!1)},y._fetchPage=function(e,n,a){var i,s=this,l=_(this.props.__relayContext).environment,c=this.props,d=(c.componentRef,c.__relayContext,c.__rootIsQueryRenderer,(0,o.default)(c,f)),v=(0,u.default)((0,u.default)({},d),this.state.data),m=p(t,d);i=w(t,d),i=(0,u.default)((0,u.default)((0,u.default)({},m),i),this._refetchVariables);var y=r.getVariables(v,{count:e.count,cursor:e.cursor},i);("object"!=typeof y||null===y)&&C(!1,"ReactRelayPaginationContainer: Expected `getVariables()` to return an object, got `%s` in `%s`.",y,h),y=(0,u.default)((0,u.default)({},y),this._refetchVariables),i=(0,u.default)((0,u.default)({},y),i);var g=a?{force:!!a.force}:void 0;null!=g&&null!=(null==a?void 0:a.metadata)&&(g.metadata=null==a?void 0:a.metadata);var b=I(r.query),P=q(b,y,g),E=null;this._refetchSubscription&&this._refetchSubscription.unsubscribe(),this._hasFetched=!0;var x=function(){s._refetchSubscription===E&&(s._refetchSubscription=null,s._isARequestInFlight=!1)};return this._isARequestInFlight=!0,E=this._getQueryFetcher().execute({environment:l,operation:P,preservePreviousReferences:!0}).mergeMap((function(t){return S.create((function(t){!function(t,r){var n=s._resolver.resolve();s._resolver.setVariables(M(i,e.totalCount),P.request.node);var a=s._resolver.resolve();R(n,a)?r():s.setState({data:a,contextForChildren:{environment:s.props.__relayContext.environment}},r)}(0,(function(){t.next(),t.complete()}))}))})).do({error:x,complete:x,unsubscribe:x}).subscribe(n||{}),this._refetchSubscription=this._isARequestInFlight?E:null,E},y._cleanup=function(){this._resolver.dispose(),this._refetchVariables=null,this._hasFetched=!1,this._refetchSubscription&&(this._refetchSubscription.unsubscribe(),this._refetchSubscription=null,this._isARequestInFlight=!1),this._queryFetcher&&this._queryFetcher.dispose()},y.render=function(){var t=this.props,r=t.componentRef,n=(t.__relayContext,t.__rootIsQueryRenderer,(0,o.default)(t,d));return P.createElement(g.Provider,{value:this.state.contextForChildren},P.createElement(e,(0,a.default)({},n,this.state.data,{ref:r,relay:this.state.relayProp})))},m}(P.Component),(0,l.default)(n,"displayName",v),n}(e,t,r)}))}}},733:(e,t,r)=>{var n=(0,r(5275).default)(r(311)),a=r(5056),o=r(6658),i=o.__internal.fetchQuery,s=o.createOperationDescriptor,l=o.isRelayModernEnvironment,u=function(){function e(e){(0,n.default)(this,"_selectionReferences",[]),(0,n.default)(this,"_didFetchFinish",!1),null!=e&&(this._cacheSelectionReference=e.cacheSelectionReference,this._selectionReferences=e.selectionReferences)}var t=e.prototype;return t.getSelectionReferences=function(){return{cacheSelectionReference:this._cacheSelectionReference,selectionReferences:this._selectionReferences}},t.lookupInStore=function(e,t,r){return"store-and-network"!==r&&"store-or-network"!==r||"available"!==e.check(t).status?null:(this._retainCachedOperation(e,t),e.lookup(t.fragment))},t.getFetchResult=function(){return this._didFetchFinish?null!=this._error?{error:this._error}:null!=this._snapshot?{snapshot:this._snapshot}:void 0:null},t.execute=function(e){var t=this,r=e.environment,n=e.operation,a=e.preservePreviousReferences,o=void 0!==a&&a,s=r.retain(n),u=function(){t._selectionReferences=t._selectionReferences.concat(s)},c=function(){o||t.disposeSelectionReferences(),t._selectionReferences=t._selectionReferences.concat(s)},f=function(){t._selectionReferences=t._selectionReferences.concat(s)};return l(r)?i(r,n).do({error:u,complete:c,unsubscribe:f}):r.execute({operation:n}).do({error:u,complete:c,unsubscribe:f})},t.setOnDataChange=function(e){this._fetchOptions||a(!1,"ReactRelayQueryFetcher: `setOnDataChange` should have been called after having called `fetch`"),"function"==typeof e&&(this._fetchOptions.onDataChangeCallbacks=this._fetchOptions.onDataChangeCallbacks||[],this._fetchOptions.onDataChangeCallbacks.push(e),this._didFetchFinish&&(null!=this._error?e({error:this._error}):null!=this._snapshot&&e({snapshot:this._snapshot})))},t.fetch=function(e,t){var r,n=this,a=e.environment,o=e.operation,i=e.onDataChange,l=!1;this.disposeRequest();var u=this._fetchOptions&&this._fetchOptions.onDataChangeCallbacks;this._fetchOptions={environment:a,onDataChangeCallbacks:u||[],operation:o},i&&-1===this._fetchOptions.onDataChangeCallbacks.indexOf(i)&&this._fetchOptions.onDataChangeCallbacks.push(i);var c=t?s(o.request.node,o.request.variables,t):o,f=this.execute({environment:a,operation:c}).finally((function(){n._pendingRequest=null})).subscribe({next:function(){n._didFetchFinish=!0,n._error=null,n._onQueryDataAvailable({notifyFirstResult:l})},error:function(e){n._didFetchFinish=!0,n._error=e,n._snapshot=null;var t=n._fetchOptions&&n._fetchOptions.onDataChangeCallbacks;l?t&&t.forEach((function(t){t({error:e})})):r=e}});if(this._pendingRequest={dispose:function(){f.unsubscribe()}},l=!0,r)throw r;return this._snapshot},t.retry=function(e){return this._fetchOptions||a(!1,"ReactRelayQueryFetcher: `retry` should be called after having called `fetch`"),this.fetch({environment:this._fetchOptions.environment,operation:this._fetchOptions.operation,onDataChange:null},e)},t.dispose=function(){this.disposeRequest(),this.disposeSelectionReferences()},t.disposeRequest=function(){this._error=null,this._snapshot=null,this._pendingRequest&&this._pendingRequest.dispose(),this._rootSubscription&&(this._rootSubscription.dispose(),this._rootSubscription=null)},t._retainCachedOperation=function(e,t){this._disposeCacheSelectionReference(),this._cacheSelectionReference=e.retain(t)},t._disposeCacheSelectionReference=function(){this._cacheSelectionReference&&this._cacheSelectionReference.dispose(),this._cacheSelectionReference=null},t.disposeSelectionReferences=function(){this._disposeCacheSelectionReference(),this._selectionReferences.forEach((function(e){return e.dispose()})),this._selectionReferences=[]},t._onQueryDataAvailable=function(e){var t=this,r=e.notifyFirstResult;this._fetchOptions||a(!1,"ReactRelayQueryFetcher: `_onQueryDataAvailable` should have been called after having called `fetch`");var n=this._fetchOptions,o=n.environment,i=n.onDataChangeCallbacks,s=n.operation;if(!this._snapshot&&(this._snapshot=o.lookup(s.fragment),this._rootSubscription=o.subscribe(this._snapshot,(function(e){if(null!=t._fetchOptions){var r=t._fetchOptions.onDataChangeCallbacks;Array.isArray(r)&&r.forEach((function(t){return t({snapshot:e})}))}})),this._snapshot&&r&&Array.isArray(i))){var l=this._snapshot;i.forEach((function(e){return e({snapshot:l})}))}},e}();e.exports=u},3701:(e,t,r)=>{var n=r(5275).default,a=n(r(6175)),o=n(r(5383)),i=n(r(8296)),s=n(r(311)),l=r(9888),u=r(733),c=r(7239),f=r(9125),d=r(8156),h=r(6658),p=h.createOperationDescriptor,v=h.deepFreeze,m=h.getRequest,y={},g={rootIsQueryRenderer:!0},b=function(e){function t(t){var r;r=e.call(this,t)||this,(0,s.default)((0,o.default)(r),"_handleDataChange",(function(e){var t=null==e.error?null:e.error,n=null==e.snapshot?null:e.snapshot;r.setState((function(e){var r=e.requestCacheKey;return r&&delete y[r],n===e.snapshot&&t===e.error?null:{renderProps:_(t,n,e.queryFetcher,e.retryCallbacks),snapshot:n,requestCacheKey:null}}))}));var n,i,l={handleDataChange:null,handleRetryAfterError:null};if(t.query){var c=t.query;i=R(m(c).params,t.variables),n=y[i]?y[i].queryFetcher:new u}else n=new u;return r._maybeHiddenOrFastRefresh=!1,r.state=(0,a.default)({prevPropsEnvironment:t.environment,prevPropsVariables:t.variables,prevQuery:t.query,queryFetcher:n,retryCallbacks:l},P(t,n,l,i)),r}(0,i.default)(t,e),t.getDerivedStateFromProps=function(e,t){return t.prevQuery===e.query&&t.prevPropsEnvironment===e.environment&&f(t.prevPropsVariables,e.variables)?null:C(e,t)};var r=t.prototype;return r.componentDidMount=function(){var e=this;if(!0===this._maybeHiddenOrFastRefresh)return this._maybeHiddenOrFastRefresh=!1,void this.setState((function(t){var r=C(e.props,t),n=r.requestCacheKey,a=r.queryFetcher;return null!=n&&null!=y[n]&&a.setOnDataChange(e._handleDataChange),r}));var t=this.state,r=t.retryCallbacks,n=t.queryFetcher,a=t.requestCacheKey;a&&delete y[a],r.handleDataChange=this._handleDataChange,r.handleRetryAfterError=function(t){return e.setState((function(e){var t=e.requestCacheKey;return t&&delete y[t],{renderProps:{error:null,props:null,retry:null},requestCacheKey:null}}))},this.props.query&&n.setOnDataChange(this._handleDataChange)},r.componentDidUpdate=function(e,t){var r=this.state,n=r.queryFetcher,a=r.requestCacheKey;a&&(delete y[a],delete this.state.requestCacheKey),this.props.query&&n!==t.queryFetcher&&n.setOnDataChange(this._handleDataChange)},r.componentWillUnmount=function(){this.state.queryFetcher.dispose(),this._maybeHiddenOrFastRefresh=!0},r.shouldComponentUpdate=function(e,t){return e.render!==this.props.render||t.renderProps!==this.state.renderProps},r.render=function(){var e=this.state,t=e.renderProps,r=e.relayContext;return v(t),d.createElement(l.Provider,{value:r},d.createElement(c.Provider,{value:g},this.props.render(t)))},t}(d.Component);function _(e,t,r,n){return{error:e||null,props:t?t.data:null,retry:function(t){var a=r.retry(t);a&&"function"==typeof n.handleDataChange?n.handleDataChange({snapshot:a}):e&&"function"==typeof n.handleRetryAfterError&&n.handleRetryAfterError(e)}}}function R(e,t){return JSON.stringify({id:e.cacheID?e.cacheID:e.id,variables:t})}function C(e,t){var r,n=e.query,o=t.queryFetcher.getSelectionReferences();if(t.queryFetcher.disposeRequest(),n){var i=R(m(n).params,e.variables);r=y[i]?y[i].queryFetcher:new u(o)}else r=new u(o);return(0,a.default)({prevQuery:e.query,prevPropsEnvironment:e.environment,prevPropsVariables:e.variables,queryFetcher:r},P(e,r,t.retryCallbacks))}function P(e,t,r,n){var a=e.environment,o=e.query,i=e.variables,s=e.cacheConfig,l=a;if(!o)return t.dispose(),{error:null,relayContext:{environment:l},renderProps:{error:null,props:{},retry:null},requestCacheKey:null};var u=m(o),c=p(u,i,s),f={environment:l};if("string"==typeof n&&y[n]){var d=y[n].snapshot;return d?{error:null,relayContext:f,renderProps:_(null,d,t,r),snapshot:d,requestCacheKey:n}:{error:null,relayContext:f,renderProps:{error:null,props:null,retry:null},snapshot:null,requestCacheKey:n}}try{var h=t.lookupInStore(l,c,e.fetchPolicy),v=t.fetch({environment:l,onDataChange:null,operation:c})||h;return n=n||R(u.params,e.variables),y[n]={queryFetcher:t,snapshot:v},v?{error:null,relayContext:f,renderProps:_(null,v,t,r),snapshot:v,requestCacheKey:n}:{error:null,relayContext:f,renderProps:{error:null,props:null,retry:null},snapshot:null,requestCacheKey:n}}catch(e){return{error:e,relayContext:f,renderProps:_(e,null,t,r),snapshot:null,requestCacheKey:n}}}e.exports=b},7239:(e,t,r)=>{var n=r(8156);e.exports=n.createContext({rootIsQueryRenderer:!1})},2427:(e,t,r)=>{var n=r(5275).default,a=n(r(4924)),o=n(r(5264)),i=n(r(6175)),s=n(r(5383)),l=n(r(8296)),u=n(r(311)),c=["componentRef","__relayContext","__rootIsQueryRenderer"],f=r(3089),d=r(8416),h=r(7426).getContainerName,p=r(9888),v=r(733),m=r(8827).assertRelayContext,y=r(9125),g=r(8156),b=r(6658),_=b.Observable,R=b.createFragmentSpecResolver,C=b.createOperationDescriptor,P=b.getDataIDsFromObject,E=b.getRequest,x=b.getVariablesFromObject,S=b.isScalarAndEqual,F=r(4446);function k(e,t){return{environment:e,refetch:t}}e.exports={createContainer:function(e,t,r){return f(e,t,(function(e,t){return function(e,t,r){var n,f=h(e);return n=function(n){function h(e){var a,o;o=n.call(this,e)||this,(0,u.default)((0,s.default)(o),"_handleFragmentDataUpdate",(function(){var e=o.state.resolver;o.setState((function(t){return e===t.resolver?{data:t.resolver.resolve()}:null}))})),(0,u.default)((0,s.default)(o),"_refetch",(function(e,n,a,s){if(o._isUnmounted)return F(!1,"ReactRelayRefetchContainer: Unexpected call of `refetch` on unmounted container `%s`. It looks like some instances of your container still trying to refetch the data but they already unmounted. Please make sure you clear all timers, intervals, async calls, etc that may trigger `refetch`.",f),{dispose:function(){}};var l=m(o.props.__relayContext).environment,u=d(t,o.props),c="function"==typeof e?e(o._getFragmentVariables()):e;c=(0,i.default)((0,i.default)({},u),c);var h=n?(0,i.default)((0,i.default)({},c),n):c,p=s?{force:!!s.force}:void 0;null!=p&&null!=(null==s?void 0:s.metadata)&&(p.metadata=null==s?void 0:s.metadata);var v,y="function"==typeof a?{next:a,error:a}:a||{},g=E(r),b=C(g,c,p);return o.state.localVariables=c,o._refetchSubscription&&o._refetchSubscription.unsubscribe(),null!=o._getQueryFetcher().lookupInStore(l,b,null==s?void 0:s.fetchPolicy)?(o.state.resolver.setVariables(h,b.request.node),o.setState((function(e){return{data:e.resolver.resolve(),contextForChildren:{environment:o.props.__relayContext.environment}}}),(function(){y.next&&y.next(),y.complete&&y.complete()})),{dispose:function(){}}):(o._getQueryFetcher().execute({environment:l,operation:b,preservePreviousReferences:!0}).mergeMap((function(e){return o.state.resolver.setVariables(h,b.request.node),_.create((function(e){return o.setState((function(e){return{data:e.resolver.resolve(),contextForChildren:{environment:o.props.__relayContext.environment}}}),(function(){e.next(),e.complete()}))}))})).finally((function(){o._refetchSubscription===v&&(o._refetchSubscription=null)})).subscribe((0,i.default)((0,i.default)({},y),{},{start:function(e){o._refetchSubscription=v=e,y.start&&y.start(e)}})),{dispose:function(){v&&v.unsubscribe()}})}));var l=m(e.__relayContext),c=null!==(a=e.__rootIsQueryRenderer)&&void 0!==a&&a;o._refetchSubscription=null;var h=R(l,f,t,e,c);return o.state={data:h.resolve(),localVariables:null,prevProps:e,prevPropsContext:l,contextForChildren:l,relayProp:k(l.environment,o._refetch),resolver:h},o._isUnmounted=!1,o}(0,l.default)(h,n);var b=h.prototype;return b.componentDidMount=function(){this._isUnmounted=!1,this._subscribeToNewResolverAndRerenderIfStoreHasChanged()},b.componentDidUpdate=function(e,t){this.state.resolver!==t.resolver?(t.resolver.dispose(),this._queryFetcher&&this._queryFetcher.dispose(),this._refetchSubscription&&this._refetchSubscription.unsubscribe(),this._subscribeToNewResolverAndRerenderIfStoreHasChanged()):this._rerenderIfStoreHasChanged()},h.getDerivedStateFromProps=function(e,r){var n,a=r.prevProps,o=m(e.__relayContext),i=null!==(n=e.__rootIsQueryRenderer)&&void 0!==n&&n,s=P(t,a),l=P(t,e),u=d(t,a),c=d(t,e),h=r.resolver;if(r.prevPropsContext.environment!==o.environment||!y(u,c)||!y(s,l))return{data:(h=R(o,f,t,e,i)).resolve(),localVariables:null,prevProps:e,prevPropsContext:o,contextForChildren:o,relayProp:k(o.environment,r.relayProp.refetch),resolver:h};r.localVariables||h.setProps(e);var p=h.resolve();return p!==r.data?{data:p,prevProps:e}:null},b.componentWillUnmount=function(){this._isUnmounted=!0,this.state.resolver.dispose(),this._queryFetcher&&this._queryFetcher.dispose(),this._refetchSubscription&&this._refetchSubscription.unsubscribe()},b.shouldComponentUpdate=function(e,r){if(r.data!==this.state.data||r.relayProp!==this.state.relayProp)return!0;for(var n=Object.keys(e),a=0;a<n.length;a++){var o=n[a];if("__relayContext"===o){if(this.state.prevPropsContext.environment!==r.prevPropsContext.environment)return!0}else if(!t.hasOwnProperty(o)&&!S(e[o],this.props[o]))return!0}return!1},b._rerenderIfStoreHasChanged=function(){var e=this.state,t=e.data,r=e.resolver.resolve();t!==r&&this.setState({data:r})},b._subscribeToNewResolverAndRerenderIfStoreHasChanged=function(){var e=this.state,t=e.data,r=e.resolver,n=r.resolve();r.setCallback(this.props,this._handleFragmentDataUpdate),t!==n&&this.setState({data:n})},b._getFragmentVariables=function(){return x(t,this.props)},b._getQueryFetcher=function(){return this._queryFetcher||(this._queryFetcher=new v),this._queryFetcher},b.render=function(){var t=this.props,r=t.componentRef,n=(t.__relayContext,t.__rootIsQueryRenderer,(0,o.default)(t,c)),i=this.state,s=i.relayProp,l=i.contextForChildren;return g.createElement(p.Provider,{value:l},g.createElement(e,(0,a.default)({},n,this.state.data,{ref:r,relay:s})))},h}(g.Component),(0,u.default)(n,"displayName",f),n}(e,t,r)}))}}},8827:(e,t,r)=>{var n=r(645),a=r(5056);function o(e){return"object"==typeof e&&null!==e&&!Array.isArray(e)&&n(e.environment)}e.exports={assertRelayContext:function(e){return o(e)||a(!1,"RelayContext: Expected `context.relay` to be an object conforming to the `RelayContext` interface, got `%s`.",e),e},isRelayContext:o}},7074:(e,t,r)=>{var n=r(5056);e.exports=function(e,t){for(var r in t&&"object"==typeof t||n(!1,"Could not create Relay Container for `%s`. Expected a set of GraphQL fragments, got `%s` instead.",e,t),t)if(t.hasOwnProperty(r)){var a=t[r];(!a||"object"!=typeof a&&"function"!=typeof a)&&n(!1,"Could not create Relay Container for `%s`. The value of fragment `%s` was expected to be a fragment, got `%s` instead.",e,r,a)}}},3089:(e,t,r)=>{var n=(0,r(5275).default)(r(4924)),a=r(7074),o=r(7426),i=o.getComponentName,s=o.getContainerName,l=r(9888),u=r(7239),c=r(5056),f=r(8156),d=r(6658).getFragment,h=f.useContext;e.exports=function(e,t,r){var o=s(e);a(i(e),t);var p={};for(var v in t)p[v]=d(t[v]);var m=r(e,p);function y(e,t){var r,a=h(l);null==a&&c(!1,"`%s` tried to render a context that was not valid this means that `%s` was rendered outside of a query renderer.",o,o);var i=h(u);return f.createElement(m,(0,n.default)({},e,{__relayContext:a,__rootIsQueryRenderer:null!==(r=null==i?void 0:i.rootIsQueryRenderer)&&void 0!==r&&r,componentRef:e.componentRef||t}))}m.displayName=o,y.displayName=o;var g=f.forwardRef(y);return g.__ComponentClass=e,g.displayName=o,g}},8416:(e,t,r)=>{var n=(0,r(5275).default)(r(6175)),a=r(6658).getSelector;e.exports=function(e,t){var r={};return Object.keys(e).forEach((function(o){var i,s,l,u=e[o],c=t[o],f=a(u,c),d=null!=f&&"PluralReaderSelector"===f.kind?null!==(i=null===(s=f.selectors[0])||void 0===s?void 0:s.owner.variables)&&void 0!==i?i:{}:null!==(l=null==f?void 0:f.owner.variables)&&void 0!==l?l:{};r=(0,n.default)((0,n.default)({},r),d)})),r}},5265:(e,t,r)=>{var n=r(9888),a=r(7362),o=r(1428),i=r(3540),s=r(3701),l=r(2427),u=r(3158),c=r(9828),f=r(428).loadQuery,d=r(3187),h=r(9696),p=r(5083),v=r(529),m=r(6242),y=r(3899),g=r(3115),b=r(951),_=r(4617),R=r(8876),C=r(8874),P=r(2750),E=r(8050),x=r(5746),S=r(6658);e.exports={ConnectionHandler:S.ConnectionHandler,QueryRenderer:s,LocalQueryRenderer:o,MutationTypes:S.MutationTypes,RangeOperations:S.RangeOperations,ReactRelayContext:n,applyOptimisticMutation:S.applyOptimisticMutation,commitLocalUpdate:S.commitLocalUpdate,commitMutation:S.commitMutation,createFragmentContainer:a.createContainer,createPaginationContainer:i.createContainer,createRefetchContainer:l.createContainer,fetchQuery_DEPRECATED:S.fetchQuery_DEPRECATED,graphql:S.graphql,readInlineData:S.readInlineData,requestSubscription:S.requestSubscription,EntryPointContainer:u,RelayEnvironmentProvider:h,ProfilerContext:d,fetchQuery:S.fetchQuery,loadQuery:f,loadEntryPoint:c,useClientQuery:p,useFragment:m,useLazyLoadQuery:y,useEntryPointLoader:v,useQueryLoader:R,useMutation:g,usePaginationFragment:b,usePreloadedQuery:_,useRefetchableFragment:C,useRelayEnvironment:P,useSubscribeToInvalidationState:E,useSubscription:x}},645:e=>{e.exports=function(e){return"object"==typeof e&&null!==e&&"function"==typeof e.check&&"function"==typeof e.lookup&&"function"==typeof e.retain&&"function"==typeof e.execute&&"function"==typeof e.subscribe}},3158:(e,t,r)=>{var n=r(3187),a=r(2750),o=r(8156),i=r(8156),s=i.useContext,l=i.useEffect,u=r(4446);e.exports=function(e){var t=e.entryPointReference,r=e.props;u(!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 i=t.getComponent,c=t.queries,f=t.entryPoints,d=t.extraProps,h=t.rootModuleID,p=i(),v=s(n),m=a();return l((function(){m.__log({name:"entrypoint.root.consume",profilerContext:v,rootModuleID:h})}),[m,v,h]),o.createElement(p,{entryPoints:f,extraProps:d,props:r,queries:c})}},5093:(e,t,r)=>{var n=r(5056),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)}}},3187:(e,t,r)=>{var n=r(8156).createContext({wrapPrepareQueryResource:function(e){return e()}});e.exports=n},1269:(e,t,r)=>{var n=r(5275).default,a=n(r(6175)),o=n(r(311)),i=r(5093),s=r(1637),l=r(5056),u=r(6658).isPromise,c=r(4446),f="store-or-network",d="store-and-network",h="function"==typeof WeakMap;function p(e){return void 0!==e.request.node.params.metadata.live}function v(e,t,r,n,a){var o=null!=r?r:p(t)?d:f,i=null!=n?n:e.UNSTABLE_getDefaultRenderPolicy(),s="".concat(o,"-").concat(i,"-").concat(t.request.identifier);return null!=a?"".concat(s,"-").concat(a):s}function m(e,t){var r={__id:e.fragment.dataID,__fragments:(0,o.default)({},e.fragment.node.name,e.request.variables),__fragmentOwner:e.request};return{cacheIdentifier:t,fragmentNode:e.request.node.fragment,fragmentRef:r,operation:e}}var y=2e5;function g(e,t,r,n,a,o){var i=p(t),l=n,u=a,c=new s((function(e){var r=e.retain(t);return{dispose:function(){i&&null!=u&&u.unsubscribe(),r.dispose(),o(f)}}})),f={cacheIdentifier:e,id:y++,processedPayloadsCount:0,operationAvailability:r,getValue:function(){return l},setValue:function(e){l=e},setNetworkSubscription:function(e){i&&null!=u&&u.unsubscribe(),u=e},temporaryRetain:function(e){return c.temporaryRetain(e)},permanentRetain:function(e){return c.permanentRetain(e)},releaseTemporaryRetain:function(){c.releaseTemporaryRetain()}};return f}var b=function(){function e(e){var t=this;(0,o.default)(this,"_clearCacheEntry",(function(e){t._cache.delete(e.cacheIdentifier)})),this._environment=e,this._cache=i.create(1e3)}var t=e.prototype;return t.prepare=function(e,t,r,n,a,o,i){var s=v(this._environment,e,r,n,o);return this.prepareWithIdentifier(s,e,t,r,n,a,i)},t.prepareWithIdentifier=function(e,t,r,n,o,i,s){var l=this._environment,c=null!=n?n:p(t)?d:f,h=null!=o?o:l.UNSTABLE_getDefaultRenderPolicy(),v=this._cache.get(e),m=null,y=null!=v;null==v&&(v=this._fetchAndSaveQuery(e,t,r,c,h,s,(0,a.default)((0,a.default)({},i),{},{unsubscribe:function(e){null!=m&&m.dispose();var t=null==i?void 0:i.unsubscribe;t&&t(e)}}))),m=v.temporaryRetain(l);var g=v.getValue();if(u(g))throw l.__log({name:"suspense.query",fetchPolicy:c,isPromiseCached:y,operation:t,queryAvailability:v.operationAvailability,renderPolicy:h}),g;if(g instanceof Error)throw g;return g},t.retain=function(e,t){var r=this._environment,n=e.cacheIdentifier,a=e.operation,o=this._getOrCreateCacheEntry(n,a,null,e,null),i=o.permanentRetain(r);return r.__log({name:"queryresource.retain",profilerContext:t,resourceID:o.id}),{dispose:function(){i.dispose()}}},t.releaseTemporaryRetain=function(e){var t=this._cache.get(e.cacheIdentifier);null!=t&&t.releaseTemporaryRetain()},t.TESTS_ONLY__getCacheEntry=function(e,t,r,n){var a=v(this._environment,e,t,r,n);return this._cache.get(a)},t._getOrCreateCacheEntry=function(e,t,r,n,a){var o=this._cache.get(e);return null==o&&(o=g(e,t,r,n,a,this._clearCacheEntry),this._cache.set(e,o)),o},t._fetchAndSaveQuery=function(e,t,r,n,o,i,s){var u,f,d=this,h=this._environment,v=h.check(t),y=v.status,b="available"===y,_=b||"partial"===o&&"stale"!==y,R=function(){};switch(n){case"store-only":u=!1,f=!0;break;case"store-or-network":u=!b,f=_;break;case"store-and-network":u=!0,f=_;break;default:u=!0,f=!1}if(f){var C=m(t,e),P=g(e,t,v,C,null,this._clearCacheEntry);this._cache.set(e,P)}if(u){var E,x=m(t,e);r.subscribe({start:function(r){E=r;var n=d._cache.get(e);n&&n.setNetworkSubscription(E);var o=null==s?void 0:s.start;o&&o((0,a.default)((0,a.default)({},r),{},{unsubscribe:function(){p(t)&&r.unsubscribe()}}))},next:function(){var r=d._getOrCreateCacheEntry(e,t,v,x,E);r.processedPayloadsCount+=1,r.setValue(x),R();var n=null==s?void 0:s.next;null!=n&&n(h.lookup(t.fragment))},error:function(r){var n=d._getOrCreateCacheEntry(e,t,v,r,E);0===n.processedPayloadsCount?n.setValue(r):c(!1,"QueryResource: An incremental payload for query `%s` returned an error: `%s`.",t.fragment.node.name,String(r.message)),R(),E=null,n.setNetworkSubscription(null);var a=null==s?void 0:s.error;a&&a(r)},complete:function(){R(),E=null;var t=d._cache.get(e);t&&t.setNetworkSubscription(null);var r=null==s?void 0:s.complete;r&&r()},unsubscribe:null==s?void 0:s.unsubscribe});var S=this._cache.get(e);if(!S){var F=new Promise((function(e){R=e}));F.displayName="Relay("+t.fragment.node.name+")",S=g(e,t,v,F,E,this._clearCacheEntry),this._cache.set(e,S)}}else{var k=null==s?void 0:s.complete;k&&k()}var q=this._cache.get(e);return null==q&&l(!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."),h.__log({name:"queryresource.fetch",resourceID:q.id,operation:t,profilerContext:i,fetchPolicy:n,renderPolicy:o,queryAvailability:v,shouldFetch:u}),q},e}();function _(e){return new b(e)}var R=h?new WeakMap:new Map;e.exports={createQueryResource:_,getQueryResourceForEnvironment:function(e){var t=R.get(e);if(t)return t;var r=_(e);return R.set(e,r),r},getQueryCacheIdentifier:v}},9696:(e,t,r)=>{var n=r(9888),a=r(8156),o=a.useMemo;e.exports=function(e){var t=e.children,r=e.environment,i=e.getEnvironmentForActor,s=o((function(){return{environment:r,getEnvironmentForActor:i}}),[r,i]);return a.createElement(n.Provider,{value:s},t)}},1637:(e,t,r)=>{var n=(0,r(5275).default)(r(311)),a=r(4446),o=function(){function e(e){var t=this;(0,n.default)(this,"_retainCount",0),(0,n.default)(this,"_retainDisposable",null),(0,n.default)(this,"_releaseTemporaryRetain",null),this._retain=function(r){return t._retainCount++,1===t._retainCount&&(t._retainDisposable=e(r)),{dispose:function(){t._retainCount=Math.max(0,t._retainCount-1),0===t._retainCount&&(null!=t._retainDisposable?(t._retainDisposable.dispose(),t._retainDisposable=null):a(!1,"Relay: Expected disposable to release query to be defined.If you're seeing this, this is likely a bug in Relay."))}}}}var t=e.prototype;return t.temporaryRetain=function(e){var t,r=this;if(e.isServer())return{dispose:function(){}};var n=this._retain(e),a=null,o=function(){clearTimeout(a),a=null,r._releaseTemporaryRetain=null,n.dispose()};return a=setTimeout(o,3e5),null===(t=this._releaseTemporaryRetain)||void 0===t||t.call(this),this._releaseTemporaryRetain=o,{dispose:function(){var e;null===(e=r._releaseTemporaryRetain)||void 0===e||e.call(r)}}},t.permanentRetain=function(e){var t=this._retain(e);return this.releaseTemporaryRetain(),t},t.releaseTemporaryRetain=function(){var e;null===(e=this._releaseTemporaryRetain)||void 0===e||e.call(this),this._releaseTemporaryRetain=null},t.getRetainCount=function(){return this._retainCount},e}();e.exports=o},9828:(e,t,r)=>{var n=r(428).loadQuery;e.exports=function e(t,r,a){var o=null;null==r.root.getModuleIfRequired()&&(o=r.root.load());var i=r.getPreloadProps(a),s=i.queries,l=i.entryPoints,u=i.extraProps,c={},f={};null!=s&&Object.keys(s).forEach((function(e){var r=s[e],a=r.environmentProviderOptions,o=r.options,i=r.parameters,l=r.variables,u=t.getEnvironment(a);c[e]=n(u,i,l,{fetchPolicy:null==o?void 0:o.fetchPolicy,networkCacheConfig:null==o?void 0:o.networkCacheConfig,__nameForWarning:"loadEntryPoint"},a)})),null!=l&&Object.keys(l).forEach((function(r){var n=l[r];if(null!=n){var a=n.entryPoint,o=n.entryPointParams;f[r]=e(t,a,o)}}));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!=u?u:null,getComponent:function(){var e,t=r.root.getModuleIfRequired();if(null==t)throw o=null!==(e=o)&&void 0!==e?e:r.root.load();return null!=t.default?t.default:t},get isDisposed(){return d},queries:c,rootModuleID:r.root.getModuleId()}}},428:(e,t,r)=>{var n=(0,r(5275).default)(r(6175)),a=r(5056),o=r(8156),i=r(6658),s=i.__internal.fetchQueryDeduped,l=i.Observable,u=i.PreloadableQueryRegistry,c=i.RelayFeatureFlags,f=i.ReplaySubject,d=i.createOperationDescriptor,h=i.getRequest,p=i.getRequestIdentifier,v=r(4446),m=null,y=100001;e.exports={loadQuery:function(e,t,r,i,g){var b,_,R,C,P=null===(b=o.__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==i?void 0:i.__nameForWarning)&&void 0!==R?R:"loadQuery"),y++;var E,x,S,F,k,q,D=null!==(C=null==i?void 0:i.fetchPolicy)&&void 0!==C?C:"store-or-network",I=(0,n.default)((0,n.default)({},null==i?void 0:i.networkCacheConfig),{},{force:!0}),w=!1,O=function(t,r){return w=!0,e.executeWithSource({operation:t,source:r})},N=new f,A=l.create((function(e){return N.subscribe(e)})),Q=null,T=!1,U=function(t){var n;T=!0;var a=new f;if(!0===c.ENABLE_LOAD_QUERY_REQUEST_DEDUPING){var o="raw-network-request-"+p(t,r);n=s(e,o,(function(){return e.getNetwork().execute(t,r,I)}))}else n=e.getNetwork().execute(t,r,I);var i=n.subscribe({error:function(e){Q=e,a.error(e)},next:function(e){a.next(e)},complete:function(){a.complete()}}).unsubscribe;return x=i,l.create((function(e){var t=a.subscribe(e);return function(){t.unsubscribe(),x()}}))},M=function(t,r){!0===c.ENABLE_LOAD_QUERY_REQUEST_DEDUPING&&(T=!0);var n=s(e,t.request.identifier,r).subscribe({error:function(e){N.error(e)},next:function(e){N.next(e)},complete:function(){N.complete()}});S=n.unsubscribe},L=function(t){var n=d(t,r,I);E=e.retain(n),"store-only"!==D&&("store-or-network"!==D||"available"!==e.check(n).status)&&M(n,(function(){var e=U(t.params);return O(n,e)}))};if("PreloadableConcreteRequest"===t.kind){null===(q=(F=t.params).id)&&a(!1,"Relay: `loadQuery` requires that preloadable query `%s` has a persisted query id",F.name);var j=u.get(q);if(null!=j)L(j);else{var V="store-only"===D?null:U(F),H=u.onLoad(q,(function(t){k();var n=d(t,r,I);E=e.retain(n),null!=V&&M(n,(function(){return O(n,V)}))}));k=H.dispose}}else{var B=h(t);q=null!=(F=B.params).cacheID?F.cacheID:F.id,L(B)}var K=!1,W=!1,G=!1,z=function(){W||(E&&E.dispose(),W=!0)},Y=function(){G||(w?S&&S():x&&x(),k&&k(),G=!0)};return{kind:"PreloadedQuery",environment:e,environmentProviderOptions:g,dispose:function(){K||(z(),Y(),K=!0)},releaseQuery:z,cancelNetworkRequest:Y,fetchKey:y,id:q,get isDisposed(){return K||W},get networkError(){return Q},name:F.name,networkCacheConfig:I,fetchPolicy:D,source:T?A:void 0,variables:r}},useTrackLoadQueryInRender:function(){var e,t;null===m&&(m=null===(e=o.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)||void 0===e||null===(t=e.ReactCurrentDispatcher)||void 0===t?void 0:t.current)}}},9175:(e,t,r)=>{var n=r(5275).default,a=n(r(6175)),o=n(r(5765)),i=r(1269).getQueryResourceForEnvironment,s=r(5056),l=r(6658),u=l.__internal.fetchQuery,c=l.RelayFeatureFlags,f=l.createOperationDescriptor,d=l.getPendingOperationsForFragment,h=l.getSelector,p=l.getVariablesFromFragment,v=l.handlePotentialSnapshotErrors,m=r(4446);function y(e,t,r,n,o){var s=p(t,r),l=(0,a.default)((0,a.default)({},s),{},{id:n.clientEdgeDestinationID}),c=f(n.request,l,null==o?void 0:o.networkCacheConfig);return i(e).prepare(c,u(e,c),null==o?void 0:o.fetchPolicy)}e.exports=function(e,t,r,n,a,i){var l,u,f=h(t,r),p=!0===(null==t||null===(l=t.metadata)||void 0===l?void 0:l.plural);p?null==r||Array.isArray(r)||s(!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,"`"):"",t.name,typeof r,t.name):Array.isArray(r)&&s(!1,"Relay: Expected fragment pointer%s for fragment `%s` not to be an array, instead got `%s`. Add `@relay(plural: true)` to fragment `%s` to allow the prop to be an array.",null!=i?" for key `".concat(i,"`"):"",t.name,typeof r,t.name),null==r||p&&Array.isArray(r)&&0===r.length||null!=f||s(!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.)",t.name,t.name,n,t.name,null==i?"a fragment reference":"the `".concat(i,"`"),n);var g,b=function(e,t){return null==t?{kind:"bailout"}:"PluralReaderSelector"===t.kind?0===t.selectors.length?{kind:"bailout"}:{kind:"plural",snapshots:t.selectors.map((function(t){return e.lookup(t)})),epoch:e.getStore().getEpoch()}:{kind:"singular",snapshot:e.lookup(t),epoch:e.getStore().getEpoch()}}(e,f),_=null;if(!0===(null===(u=t.metadata)||void 0===u?void 0:u.hasClientEdges)){var R=function(e){if("bailout"===e.kind)return null;var t;if("singular"===e.kind)return null!==(t=e.snapshot.missingClientEdges)&&void 0!==t?t:null;var r,n=null,a=(0,o.default)(e.snapshots);try{for(a.s();!(r=a.n()).done;){var i=r.value;if(i.missingClientEdges){var s;n=null!==(s=n)&&void 0!==s?s:[];var l,u=(0,o.default)(i.missingClientEdges);try{for(u.s();!(l=u.n()).done;){var c=l.value;n.push(c)}}catch(e){u.e(e)}finally{u.f()}}}}catch(e){a.e(e)}finally{a.f()}return n}(b);if(null!=R&&R.length){_=[];var C,P=(0,o.default)(R);try{for(P.s();!(C=P.n()).done;){var E=C.value;_.push(y(e,t,r,E,a))}}catch(e){P.e(e)}finally{P.f()}}}if(function(e){return"bailout"!==e.kind&&("singular"===e.kind?e.snapshot.isMissingData:e.snapshots.some((function(e){return e.isMissingData})))}(b)){null==f&&s(!1,"refinement, see invariants above");var x="PluralReaderSelector"===f.kind?f.selectors[0].owner:f.owner,S=d(e,t,x);if(S)throw S.promise;!function(e,t){var r,n;if("singular"===t.kind)v(e,t.snapshot.missingRequiredFields,t.snapshot.relayResolverErrors,t.snapshot.errorResponseFields,null!==(r=null===(n=t.snapshot.selector.node.metadata)||void 0===n?void 0:n.throwOnFieldError)&&void 0!==r&&r);else if("plural"===t.kind){var a,i=(0,o.default)(t.snapshots);try{for(i.s();!(a=i.n()).done;){var s,l,u=a.value;v(e,u.missingRequiredFields,u.relayResolverErrors,u.errorResponseFields,null!==(s=null===(l=u.selector.node.metadata)||void 0===l?void 0:l.throwOnFieldError)&&void 0!==s&&s)}}catch(e){i.e(e)}finally{i.f()}}}(e,b)}return g="bailout"===b.kind?p?[]:null:"singular"===b.kind?b.snapshot.data:b.snapshots.map((function(e){return e.data})),c.LOG_MISSING_RECORDS_IN_PROD,null!=r&&(void 0===g||Array.isArray(g)&&g.length>0&&g.every((function(e){return void 0===e})))&&m(!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.",t.name,n,n),{data:g,clientEdgeQueries:_}}},5083:(e,t,r)=>{var n=(0,r(5275).default)(r(6175)),a=r(3899);e.exports=function(e,t,r){return a(e,t,(0,n.default)((0,n.default)({},r),{},{fetchPolicy:"store-only"}))}},529:(e,t,r)=>{var n=(0,r(5275).default)(r(5765)),a=r(9828),o=r(428).useTrackLoadQueryInRender,i=r(1743),s=r(8156),l=s.useCallback,u=s.useEffect,c=s.useRef,f=s.useState,d={kind:"NullEntryPointReference"};e.exports=function(e,t,r){var s,h,p,v;o();var m=null!==(s=null==r||null===(h=r.TEST_ONLY__initialEntryPointData)||void 0===h?void 0:h.entryPointReference)&&void 0!==s?s:d,y=null!==(p=null==r||null===(v=r.TEST_ONLY__initialEntryPointData)||void 0===v?void 0:v.entryPointParams)&&void 0!==p?p:null,g=i(),b=c(new Set([m])),_=f(m),R=_[0],C=_[1],P=f(y),E=P[0],x=P[1],S=l((function(){if(g.current){var e={kind:"NullEntryPointReference"};b.current.add(e),C(e)}}),[C,g]),F=l((function(r){if(g.current){var n=a(e,t,r);b.current.add(n),C(n),x(r)}}),[e,t,C,g]),k=c(!1);return u((function(){return function(){k.current=!0}}),[]),u((function(){if(!0===k.current)return k.current=!1,void("NullEntryPointReference"!==R.kind&&null!=E&&F(E));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===R)break;e.delete(a),"NullEntryPointReference"!==a.kind&&a.dispose()}}catch(e){r.e(e)}finally{r.f()}}}),[R,E,F,g]),u((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"===R.kind?null:R,F,S]}},7863:(e,t,r)=>{var n=r(5813),a=r(8156),o=a.useCallback,i=a.useEffect;e.exports=function(){var e=n(null),t=n(!1),r=o((function(){null!=e.current&&(e.current.unsubscribe(),e.current=null),t.current=!1}),[]),a=o((function(r){e.current=r,t.current=!0}),[]),s=o((function(){e.current=null,t.current=!1}),[]);return i((function(){return r}),[r]),{isFetchingRef:t,startFetch:a,disposeFetch:r,completeFetch:s}}},6242:(e,t,r)=>{var n=r(428).useTrackLoadQueryInRender,a=r(6337),o=r(275),i=r(8156).useDebugValue,s=r(6658).getFragment;e.exports=function(e,t){n();var r=s(e);o(r,"first argument of useFragment()");var l=a(r,t,"useFragment()");return i({fragment:r.name,data:l}),l}},6337:(e,t,r)=>{var n=r(5275).default,a=n(r(6175)),o=n(r(5765)),i=n(r(642)),s=r(1269).getQueryResourceForEnvironment,l=r(2750),u=r(5056),c=r(8156),f=c.useDebugValue,d=c.useEffect,h=c.useMemo,p=c.useRef,v=c.useState,m=r(6658),y=m.__internal,g=y.fetchQuery,b=y.getPromiseForActiveRequest,_=m.RelayFeatureFlags,R=m.areEqualSelectors,C=m.createOperationDescriptor,P=m.getPendingOperationsForFragment,E=m.getSelector,x=m.getVariablesFromFragment,S=m.handlePotentialSnapshotErrors,F=m.recycleNodesInto,k=r(4446);function q(e,t){if("bailout"===t.kind)return null;var r=e.getStore().getEpoch();if(r===t.epoch)return null;if("singular"===t.kind){var n=e.lookup(t.snapshot.selector),a=F(t.snapshot.data,n.data),o={data:a,isMissingData:n.isMissingData,missingClientEdges:n.missingClientEdges,missingLiveResolverFields:n.missingLiveResolverFields,seenRecords:n.seenRecords,selector:n.selector,missingRequiredFields:n.missingRequiredFields,relayResolverErrors:n.relayResolverErrors,errorResponseFields:n.errorResponseFields};return[a!==t.snapshot.data,{kind:"singular",snapshot:o,epoch:r}]}for(var i=!1,s=[],l=0;l<t.snapshots.length;l++){var c=t.snapshots[l],f=e.lookup(c.selector),d=F(c.data,f.data),h={data:d,isMissingData:f.isMissingData,missingClientEdges:f.missingClientEdges,missingLiveResolverFields:f.missingLiveResolverFields,seenRecords:f.seenRecords,selector:f.selector,missingRequiredFields:f.missingRequiredFields,relayResolverErrors:f.relayResolverErrors,errorResponseFields:f.errorResponseFields};d!==c.data&&(i=!0),s.push(h)}return s.length!==t.snapshots.length&&u(!1,"Expected same number of snapshots"),[i,{kind:"plural",snapshots:s,epoch:r}]}function D(e,t,r,n,o){var i=x(t,r),l=(0,a.default)((0,a.default)({},i),{},{id:n.clientEdgeDestinationID}),u=C(n.request,l,null==o?void 0:o.networkCacheConfig);return[s(e).prepare(u,g(e,u),null==o?void 0:o.fetchPolicy),b(e,u.request)]}function I(e,t){return null==t?{kind:"bailout"}:"PluralReaderSelector"===t.kind?{kind:"plural",snapshots:t.selectors.map((function(t){return e.lookup(t)})),epoch:e.getStore().getEpoch()}:{kind:"singular",snapshot:e.lookup(t),epoch:e.getStore().getEpoch()}}e.exports=function(e,t,r,n){var a,c,m=h((function(){return E(e,t)}),[e,t]),y=!0===(null==e||null===(a=e.metadata)||void 0===a?void 0:a.plural);y?null==t||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.",e.name,typeof t,e.name):Array.isArray(t)&&u(!1,"Relay: Expected fragment pointer%s for fragment `%s` not to be an array, instead got `%s`. Add `@relay(plural: true)` to fragment `%s` to allow the prop to be an array.",e.name,typeof t,e.name),null==t||y&&Array.isArray(t)&&0===t.length||null!=m||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,r,e.name,r);var g=l(),b=v((function(){return I(g,m)})),C=b[0],x=b[1],F=C,w=v(F),O=w[0],N=w[1],A=O,Q=v(m),T=Q[0],U=Q[1],M=v(g),L=M[0],j=M[1];if(!R(m,T)||g!==L){U(m),j(g);var V=I(g,m);x(V),N(V),F=V,A=V}var H=p(!1);if(d((function(){H.current=m}),[m]),!0===(null===(c=e.metadata)||void 0===c?void 0:c.hasClientEdges)){var B=h((function(){var r,a=function(e){if("bailout"===e.kind)return null;var t;if("singular"===e.kind)return null!==(t=e.snapshot.missingClientEdges)&&void 0!==t?t:null;var r,n=null,a=(0,o.default)(e.snapshots);try{for(a.s();!(r=a.n()).done;){var i=r.value;if(i.missingClientEdges){var s;n=null!==(s=n)&&void 0!==s?s:[];var l,u=(0,o.default)(i.missingClientEdges);try{for(u.s();!(l=u.n()).done;){var c=l.value;n.push(c)}}catch(e){u.e(e)}finally{u.f()}}}}catch(e){a.e(e)}finally{a.f()}return n}(F),i=[];if(null!=a&&a.length){r=[];var s,l=(0,o.default)(a);try{for(l.s();!(s=l.n()).done;){var u=s.value,c=D(g,e,t,u,n),f=c[0],d=c[1];r.push(f),null!=d&&i.push(d)}}catch(e){l.e(e)}finally{l.f()}}return[r,i]}),[F,g,e,t,n]),K=B[0],W=B[1];if(W.length)throw Promise.all(W);d((function(){var e=s(g);if(null!=K&&K.length){var t,r=[],n=(0,o.default)(K);try{for(n.s();!(t=n.n()).done;){var a=t.value;r.push(e.retain(a))}}catch(e){n.e(e)}finally{n.f()}return function(){var e,t=(0,o.default)(r);try{for(t.s();!(e=t.n()).done;)e.value.dispose()}catch(e){t.e(e)}finally{t.f()}}}}),[g,K])}if(function(e){return"bailout"!==e.kind&&("singular"===e.kind?e.snapshot.isMissingData:e.snapshots.some((function(e){return e.isMissingData})))}(F)){var G=function(e){if("bailout"===e.kind)return null;var t;if("singular"===e.kind)return null!==(t=e.snapshot.missingLiveResolverFields)&&void 0!==t?t:null;var r,n=null,a=(0,o.default)(e.snapshots);try{for(a.s();!(r=a.n()).done;){var i=r.value;if(i.missingLiveResolverFields){var s;n=null!==(s=n)&&void 0!==s?s:[];var l,u=(0,o.default)(i.missingLiveResolverFields);try{for(u.s();!(l=u.n()).done;){var c=l.value;n.push(c)}}catch(e){u.e(e)}finally{u.f()}}}}catch(e){a.e(e)}finally{a.f()}return n}(F);if(null!=G&&G.length>0)throw Promise.all(G.map((function(e){var t=e.liveStateID;return g.getStore().getLiveResolverPromise(t)})));if(_.ENABLE_RELAY_OPERATION_TRACKER_SUSPENSE||g!==L||!H.current||!R(H.current,m)){null==m&&u(!1,"refinement, see invariants above");var z="PluralReaderSelector"===m.kind?m.selectors[0].owner:m.owner,Y=P(g,e,z);if(Y)throw Y.promise}}!function(e,t){var r,n;if("singular"===t.kind)S(e,t.snapshot.missingRequiredFields,t.snapshot.relayResolverErrors,t.snapshot.errorResponseFields,null!==(r=null===(n=t.snapshot.selector.node.metadata)||void 0===n?void 0:n.throwOnFieldError)&&void 0!==r&&r);else if("plural"===t.kind){var a,i=(0,o.default)(t.snapshots);try{for(i.s();!(a=i.n()).done;){var s,l,u=a.value;S(e,u.missingRequiredFields,u.relayResolverErrors,u.errorResponseFields,null!==(s=null===(l=u.selector.node.metadata)||void 0===l?void 0:l.throwOnFieldError)&&void 0!==s&&s)}}catch(e){i.e(e)}finally{i.f()}}}(g,F);var X,J=p(!1);if(d((function(){var e=A,t=q(g,A);if(null!==t){var r=t[0],n=t[1];r&&x(n),e=n}return function(e,t,r,n){if("bailout"===t.kind)return function(){};if("singular"===t.kind){var a=e.subscribe(t.snapshot,(function(t){r((function(r){if("singular"!==r.kind||r.snapshot.selector!==t.selector){var a=q(e,r);if(null!=a){var o=a[0],i=a[1];return e.__log({name:"useFragment.subscription.missedUpdates",hasDataChanges:o}),n.current=o,o?i:r}return r}return n.current=!0,{kind:"singular",snapshot:t,epoch:e.getStore().getEpoch()}}))}));return function(){a.dispose()}}var s=t.snapshots.map((function(t,a){return e.subscribe(t,(function(t){r((function(r){var o;if("plural"!==r.kind||(null===(o=r.snapshots[a])||void 0===o?void 0:o.selector)!==t.selector){var s=q(e,r);if(null!=s){var l=s[0],u=s[1];return e.__log({name:"useFragment.subscription.missedUpdates",hasDataChanges:l}),n.current=n.current||l,l?u:r}return r}var c=(0,i.default)(r.snapshots);return c[a]=t,n.current=!0,{kind:"plural",snapshots:c,epoch:e.getStore().getEpoch()}}))}))}));return function(){var e,t=(0,o.default)(s);try{for(t.s();!(e=t.n()).done;)e.value.dispose()}catch(e){t.e(e)}finally{t.f()}}}(g,e,x,J)}),[g,A]),J.current){var Z=q(g,F);if(null!=Z){var $=Z[0],ee=Z[1];$&&(x(ee),F=ee)}J.current=!1}if(y){var te=null==t;X=h((function(){return"bailout"===F.kind?te?null:[]:("plural"!==F.kind&&u(!1,"Expected state to be plural because fragment is plural"),F.snapshots.map((function(e){return e.data})))}),[F,te])}else"bailout"===F.kind?X=null:("singular"!==F.kind&&u(!1,"Expected state to be singular because fragment is singular"),X=F.snapshot.data);return _.LOG_MISSING_RECORDS_IN_PROD,null!=t&&(void 0===X||Array.isArray(X)&&X.length>0&&X.every((function(e){return void 0===e})))&&k(!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),f({fragment:e.name,data:X}),X}},1743:(e,t,r)=>{var n=r(8156),a=n.useEffect,o=n.useRef;e.exports=function(){var e=o(!0);return a((function(){return e.current=!0,function(){e.current=!1}}),[]),e}},5233:(e,t,r)=>{var n=r(2750),a=r(5056),o=r(8156),i=r(6658),s=i.__internal.getObservableForActiveRequest,l=i.getSelector,u=o.useEffect,c=o.useState,f=o.useMemo;e.exports=function(e,t){var r=n(),o=f((function(){var n=l(e,t);return null==n?null:("SingularReaderSelector"!==n.kind&&a(!1,"useIsOperationNodeActive: Plural fragments are not supported."),s(r,n.owner))}),[r,e,t]),i=c(null!=o),d=i[0],h=i[1];return u((function(){var e;if(h(null!=o),null!=o){var t=function(){h(!1)};e=o.subscribe({complete:t,error:t})}return function(){e&&e.unsubscribe()}}),[o]),d}},3899:(e,t,r)=>{var n=r(428).useTrackLoadQueryInRender,a=r(4734),o=r(1061),i=r(2750),s=r(6658).__internal.fetchQuery;e.exports=function(e,t,r){n();var l=i(),u=o(e,t,r&&r.networkCacheConfig?r.networkCacheConfig:{force:!0});return a({componentDisplayName:"useLazyLoadQuery()",fetchKey:null==r?void 0:r.fetchKey,fetchObservable:s(l,u),fetchPolicy:null==r?void 0:r.fetchPolicy,query:u,renderPolicy:null==r?void 0:r.UNSTABLE_renderPolicy})}},4734:(e,t,r)=>{var n=r(3187),a=r(1269),o=a.getQueryCacheIdentifier,i=a.getQueryResourceForEnvironment,s=r(7863),l=r(6337),u=r(2750),c=r(8156),f=c.useContext,d=c.useEffect,h=c.useState,p=c.useRef;e.exports=function(e){var t=e.query,r=e.componentDisplayName,a=e.fetchObservable,c=e.fetchPolicy,v=e.fetchKey,m=e.renderPolicy,y=u(),g=f(n),b=i(y),_=h(0),R=_[0],C=_[1],P=s(),E=P.startFetch,x=P.completeFetch,S="".concat(R,"-").concat(null!=v?v:""),F=o(y,t,c,m,S),k=g.wrapPrepareQueryResource((function(){return b.prepareWithIdentifier(F,t,a,c,m,{start:E,complete:x,error:x},g)})),q=p(!1);d((function(){return function(){q.current=!0}}),[]),d((function(){if(!0===q.current)return q.current=!1,void C((function(e){return e+1}));var e=b.retain(k,g);return function(){e.dispose()}}),[y,F]),d((function(){b.releaseTemporaryRetain(k)}));var D=k.fragmentNode,I=k.fragmentRef;return l(D,I,r)}},9601:(e,t,r)=>{var n=(0,r(5275).default)(r(6175)),a=r(7863),o=r(1743),i=r(5233),s=r(2750),l=r(5056),u=r(8156),c=u.useCallback,f=u.useEffect,d=u.useState,h=r(6658),p=h.__internal.fetchQuery,v=h.ConnectionInterface,m=h.createOperationDescriptor,y=h.getPaginationVariables,g=h.getRefetchMetadata,b=h.getSelector,_=h.getValueAtPath,R=r(4446);e.exports=function(e){var t=e.direction,r=e.fragmentNode,u=e.fragmentRef,h=e.fragmentIdentifier,C=e.fragmentData,P=e.connectionPathInFragmentData,E=e.paginationRequest,x=e.paginationMetadata,S=e.componentDisplayName,F=e.observer,k=e.onReset,q=s(),D=a(),I=D.isFetchingRef,w=D.startFetch,O=D.disposeFetch,N=D.completeFetch,A=g(r,S).identifierInfo,Q=null!=(null==A?void 0:A.identifierField)&&null!=C&&"object"==typeof C?C[A.identifierField]:null,T=o(),U=d(q),M=U[0],L=U[1],j=d(h),V=j[0],H=j[1],B=i(r,u);(q!==M||h!==V)&&(O(),k(),L(q),H(h));var K=function(e,t,r,n){var a,o,i=v.get(),s=i.EDGES,u=i.PAGE_INFO,c=i.HAS_NEXT_PAGE,f=i.HAS_PREV_PAGE,d=i.END_CURSOR,h=i.START_CURSOR,p=_(r,n);if(null==p)return{cursor:null,hasMore:!1};"object"!=typeof p&&l(!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,s,u,p);var m=p[s],y=p[u];if(null==m||null==y)return{cursor:null,hasMore:!1};Array.isArray(m)||l(!1,"Relay: Expected connection in fragment `%s` to have a plural `%s` field. Instead got `%s`.",t.name,s,m),"object"!=typeof y&&l(!1,"Relay: Expected connection in fragment `%s` to have a `%s` field. Instead got `%s`.",t.name,u,y);var g="forward"===e?null!==(a=y[d])&&void 0!==a?a:null:null!==(o=y[h])&&void 0!==o?o:null;return null!==g&&"string"!=typeof g&&l(!1,"Relay: Expected page info for connection in fragment `%s` to have a valid `%s`. Instead got `%s`.",t.name,h,g),{cursor:g,hasMore:"forward"===e?null!=g&&!0===y[c]:null!=g&&!0===y[f]}}(t,r,C,P),W=K.cursor,G=K.hasMore;return f((function(){return function(){O()}}),[O]),[c((function(e,a){var o=null==a?void 0:a.onComplete;if(!0!==T.current)return R(!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,S),{dispose:function(){}};var i=b(r,u);if(!0===I.current||null==C||B)return null==i&&R(!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,S,S),o&&o(null),{dispose:function(){}};(null==i||"PluralReaderSelector"===i.kind)&&l(!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,S);var s=i.owner.variables,c=i.variables,f=null==a?void 0:a.UNSTABLE_extraVariables,d=(0,n.default)((0,n.default)({},s),c),h=y(t,e,W,d,(0,n.default)({},f),x);null!=A&&("string"!=typeof Q&&R(!1,"Relay: Expected result to have a string `%s` in order to refetch, got `%s`.",A.identifierField,Q),h[A.identifierQueryVariableName]=Q);var v=m(E,h,{force:!0});return p(q,v).subscribe((0,n.default)((0,n.default)({},F),{},{start:function(e){w(e),F.start&&F.start(e)},complete:function(){N(),F.complete&&F.complete(),o&&o(null)},error:function(e){N(),F.error&&F.error(e),o&&o(e)}})),{dispose:O}}),[q,Q,t,W,w,O,N,I,B,C,r.name,u,S]),G,O]}},1061:(e,t,r)=>{var n=r(6925),a=r(8156),o=r(6658),i=o.createOperationDescriptor,s=o.getRequest,l=a.useMemo;e.exports=function(e,t,r){var a=n(t),o=n(r||{});return l((function(){return i(s(e),a,o)}),[e,a,o])}},6925:(e,t,r)=>{var n=r(9125),a=r(8156).useState;e.exports=function(e){var t=a(e),r=t[0],o=t[1];return n(e,r)?r:(o(e),e)}},3115:(e,t,r)=>{var n=(0,r(5275).default)(r(6175)),a=r(1743),o=r(2750),i=r(8156),s=r(6658).commitMutation,l=i.useState,u=i.useEffect,c=i.useRef,f=i.useCallback;e.exports=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:s,r=o(),i=a(),d=c(r),h=c(e),p=c(new Set),v=l(!1),m=v[0],y=v[1],g=f((function(t){d.current===r&&h.current===e&&(p.current.delete(t),i.current&&y(p.current.size>0))}),[r,i,e]);return u((function(){d.current===r&&h.current===e||(p.current=new Set,i.current&&y(!1),d.current=r,h.current=e)}),[r,i,e]),[f((function(a){i.current&&y(!0);var o=t(r,(0,n.default)((0,n.default)({},a),{},{mutation:e,onCompleted:function(e,t){var r;g(o),null===(r=a.onCompleted)||void 0===r||r.call(a,e,t)},onError:function(e){var t;g(o),null===(t=a.onError)||void 0===t||t.call(a,e)},onUnsubscribe:function(){var e;g(o),null===(e=a.onUnsubscribe)||void 0===e||e.call(a)},onNext:function(){var e;null===(e=a.onNext)||void 0===e||e.call(a)}}));return p.current.add(o),o}),[g,t,r,i,e]),m]}},951:(e,t,r)=>{var n=(0,r(5275).default)(r(6175)),a=r(9601),o=r(3915),i=r(2750),s=r(275),l=r(8156),u=l.useCallback,c=l.useDebugValue,f=l.useState,d=r(6658),h=d.getFragment,p=d.getFragmentIdentifier,v=d.getPaginationMetadata;function m(e){var t=i(),r=f(!1),o=r[0],s=r[1],l=function(e){var r,n=null===(r=t.getScheduler())||void 0===r?void 0:r.schedule;n?n((function(){s(e)})):s(e)},u={start:function(){return l(!0)},complete:function(){return l(!1)},error:function(){return l(!1)}},c=a((0,n.default)((0,n.default)({},e),{},{observer:u,onReset:function(){return l(!1)}}));return[c[0],c[1],o,c[2]]}e.exports=function(e,t){var r=h(e);s(r,"first argument of usePaginationFragment()");var a="usePaginationFragment()",i=v(r,a),l=i.connectionPathInFragmentData,f=i.paginationRequest,d=i.paginationMetadata,y=o(r,t,a),g=y.fragmentData,b=y.fragmentRef,_=y.refetch,R=p(r,b),C=m({componentDisplayName:a,connectionPathInFragmentData:l,direction:"backward",fragmentData:g,fragmentIdentifier:R,fragmentNode:r,fragmentRef:b,paginationMetadata:d,paginationRequest:f}),P=C[0],E=C[1],x=C[2],S=C[3],F=m({componentDisplayName:a,connectionPathInFragmentData:l,direction:"forward",fragmentData:g,fragmentIdentifier:R,fragmentNode:r,fragmentRef:b,paginationMetadata:d,paginationRequest:f}),k=F[0],q=F[1],D=F[2],I=F[3],w=u((function(e,t){return I(),S(),_(e,(0,n.default)((0,n.default)({},t),{},{__environment:void 0}))}),[I,S,_]);return c({fragment:r.name,data:g,hasNext:q,isLoadingNext:D,hasPrevious:E,isLoadingPrevious:x}),{data:g,loadNext:k,loadPrevious:P,hasNext:q,hasPrevious:E,isLoadingNext:D,isLoadingPrevious:x,refetch:w}}},4617:(e,t,r)=>{var n=r(428).useTrackLoadQueryInRender,a=r(4734),o=r(1061),i=r(2750),s=r(5056),l=r(8156).useDebugValue,u=r(6658).__internal,c=u.fetchQueryDeduped,f=u.fetchQuery,d=r(4446);e.exports=function(e,t,r){n();var u,h=i(),p=t.fetchKey,v=t.fetchPolicy,m=t.source,y=t.variables,g=t.networkCacheConfig,b=o(e,y,g);if("PreloadedQuery_DEPRECATED"===t.kind)b.request.node.params.name!==t.name&&s(!1,"usePreloadedQuery(): Expected data to be prefetched for query `%s`, got prefetch results for query `%s`.",b.request.node.params.name,t.name),u={componentDisplayName:"usePreloadedQuery()",fetchKey:p,fetchObservable:c(h,b.request.identifier,(function(){return h===t.environment&&null!=m?h.executeWithSource({operation:b,source:m}):h.execute({operation:b})})),fetchPolicy:v,query:b,renderPolicy:null==r?void 0:r.UNSTABLE_renderPolicy};else{d(!1===t.isDisposed,"usePreloadedQuery(): Expected preloadedQuery to not be disposed yet. This is because disposing the query marks it for future garbage collection, and as such query results may no longer be present in the Relay store. In the future, this will become a hard error.");var _,R=f(h,b);null!=m&&h===t.environment?_=m.ifEmpty(R):h!==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,u={componentDisplayName:"usePreloadedQuery()",fetchObservable:_,fetchKey:p,fetchPolicy:v,query:b,renderPolicy:null==r?void 0:r.UNSTABLE_renderPolicy}}var C=a(u);return l({query:t.name,variables:t.variables,data:C,fetchKey:p,fetchPolicy:v,renderPolicy:null==r?void 0:r.UNSTABLE_renderPolicy}),C}},8876:(e,t,r)=>{var n=(0,r(5275).default)(r(5765)),a=r(428),o=a.loadQuery,i=a.useTrackLoadQueryInRender,s=r(1743),l=r(2750),u=r(8156),c=u.useCallback,f=u.useEffect,d=u.useRef,h=u.useState,p=r(6658).getRequest,v={kind:"NullQueryReference"};function m(e){return"PreloadableConcreteRequest"===e.kind?void 0!==e.params.metadata.live:void 0!==p(e).params.metadata.live}e.exports=function(e,t){var r=null!=t?t:v,a=l();i();var u=s(),p=d(new Set([r])),y=h((function(){return r})),g=y[0],b=y[1],_=h((function(){return r})),R=_[0],C=_[1];r!==R&&(p.current.add(r),C(r),b(r));var P=c((function(){u.current&&(p.current.add(v),b(v))}),[u]),E=c((function(t,r){var n=null!=r&&r.hasOwnProperty("__environment")?{fetchPolicy:r.fetchPolicy,networkCacheConfig:r.networkCacheConfig,__nameForWarning:r.__nameForWarning}:r;if(u.current){var i,s=o(null!==(i=null==r?void 0:r.__environment)&&void 0!==i?i:a,e,t,n);p.current.add(s),b(s)}}),[a,e,b,u]),x=d(!1);return f((function(){return function(){x.current=!0}}),[]),f((function(){if(!0===x.current)return x.current=!1,void("NullQueryReference"!==g.kind&&E(g.variables,{fetchPolicy:g.fetchPolicy,networkCacheConfig:g.networkCacheConfig}));var t=p.current;if(u.current){var r,a=(0,n.default)(t);try{for(a.s();!(r=a.n()).done;){var o=r.value;if(o===g)break;t.delete(o),"NullQueryReference"!==o.kind&&(m(e)?o.dispose&&o.dispose():o.releaseQuery&&o.releaseQuery())}}catch(e){a.e(e)}finally{a.f()}}}),[g,u,E,e]),f((function(){return function(){var t,r=(0,n.default)(p.current);try{for(r.s();!(t=r.n()).done;){var a=t.value;"NullQueryReference"!==a.kind&&(m(e)?a.dispose&&a.dispose():a.releaseQuery&&a.releaseQuery())}}catch(e){r.e(e)}finally{r.f()}}}),[e]),["NullQueryReference"===g.kind?null:g,E,P]}},8874:(e,t,r)=>{var n=r(3915),a=r(275),o=r(8156).useDebugValue,i=r(6658).getFragment;e.exports=function(e,t){var r=i(e);a(r,"first argument of useRefetchableFragment()");var s=n(r,t,"useRefetchableFragment()"),l=s.fragmentData,u=s.refetch;return o({fragment:r.name,data:l}),[l,u]}},3915:(e,t,r)=>{var n,a=(0,r(5275).default)(r(6175)),o=r(3187),i=r(1269).getQueryResourceForEnvironment,s=r(9175),l=r(6337),u=r(1743),c=r(8876),f=r(2750),d=r(5056),h=r(8156),p=h.useCallback,v=h.useContext,m=h.useReducer,y=r(6658),g=y.__internal.fetchQuery,b=y.createOperationDescriptor,_=y.getFragmentIdentifier,R=y.getRefetchMetadata,C=y.getSelector,P=y.getValueAtPath,E=r(4446);function x(e,t){switch(t.type){case"refetch":var r;return(0,a.default)((0,a.default)({},e),{},{fetchPolicy:t.fetchPolicy,mirroredEnvironment:null!==(r=t.refetchEnvironment)&&void 0!==r?r:e.mirroredEnvironment,onComplete:t.onComplete,refetchEnvironment:t.refetchEnvironment,refetchQuery:t.refetchQuery,renderPolicy:t.renderPolicy});case"reset":return{fetchPolicy:void 0,mirroredEnvironment:t.environment,mirroredFragmentIdentifier:t.fragmentIdentifier,onComplete:void 0,refetchQuery:null,renderPolicy:void 0};default:throw t.type,new Error("useRefetchableFragmentNode: Unexpected action type")}}n={getInitialIDAndType:function(e,t,n,a){var o=r(6658).Record,i=null==e?void 0:e[null!=n?n:"id"];if(1!==t.length||"node"!==t[0]||null==i)return null;var s=a.getStore().getSource().get(i),l=null==s?null:o.getType(s);return null==l?null:{id:i,typename:l}},checkSameTypeAfterRefetch:function(e,t,n,a){var o=r(6658).Record;if(e){var i=t.getStore().getSource().get(e.id),s=i&&o.getType(i);s!==e.typename&&E(!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,s,n.name,a)}},checkSameIDAfterRefetch:function(e,t,n,a){if(null!=e){var o=t[r(6658).ID_KEY];null!=o&&o!==e.id&&E(!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.",o,e.id,n.name,a)}}},e.exports=function(e,t,r){var h=f(),y=R(e,r),S=y.refetchableRequest,F=y.fragmentRefPathInResponse,k=y.identifierInfo,q=_(e,t),D=m(x,{fetchPolicy:void 0,mirroredEnvironment:h,mirroredFragmentIdentifier:q,onComplete:void 0,refetchEnvironment:null,refetchQuery:null,renderPolicy:void 0}),I=D[0],w=D[1],O=I.fetchPolicy,N=I.mirroredEnvironment,A=I.mirroredFragmentIdentifier,Q=I.onComplete,T=I.refetchEnvironment,U=I.refetchQuery,M=I.renderPolicy,L=null!=T?T:h,j=i(L),V=v(o),H=L!==N||q!==A,B=c(S),K=B[0],W=B[1],G=B[2],z=t;if(H)w({type:"reset",environment:L,fragmentIdentifier:q}),G();else if(null!=U&&null!=K){var Y;Y=n.getInitialIDAndType(U.request.variables,F,null==k?void 0:k.identifierQueryVariableName,L);var X=function(e){Q&&Q(null!=e?e:null)},J=null!=K.source?K.source:g(L,U),Z=V.wrapPrepareQueryResource((function(){return j.prepare(U,J,O,M,{error:X,complete:function(){n.checkSameTypeAfterRefetch(Y,L,e,r),X()}},K.fetchKey,V)})),$=s(L,Z.fragmentNode,Z.fragmentRef,r).data;null==$&&d(!1,"Relay: Expected to be able to read refetch query response. If you're seeing this, this is likely a bug in Relay."),z=P($,F),n.checkSameIDAfterRefetch(Y,z,e,r)}var ee=l(e,z,r),te=function(e,t,r,n,o,i,s,l,c,f,d){var h=u(),v=null!=(null==l?void 0:l.identifierField)&&null!=n&&"object"==typeof n?n[l.identifierField]:null;return p((function(n,o){if(!0!==h.current)return E(!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.",i.name,e),{dispose:function(){}};null==f&&E(!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`.",i.name,e,e);var s,u,p=null==o?void 0:o.__environment,m=null==o?void 0:o.fetchPolicy,y=null==o?void 0:o.UNSTABLE_renderPolicy,g=null==o?void 0:o.onComplete,_=C(i,f);if(null==_)s={},u={};else if("PluralReaderSelector"===_.kind){var R,P,x,S;s=null!==(R=null===(P=_.selectors[0])||void 0===P?void 0:P.owner.variables)&&void 0!==R?R:{},u=null!==(x=null===(S=_.selectors[0])||void 0===S?void 0:S.variables)&&void 0!==x?x:{}}else s=_.owner.variables,u=_.variables;var F=(0,a.default)((0,a.default)((0,a.default)({},s),u),n);null==l||n.hasOwnProperty(l.identifierQueryVariableName)||("string"!=typeof v&&E(!1,"Relay: Expected result to have a string `%s` in order to refetch, got `%s`.",l.identifierField,v),F[l.identifierQueryVariableName]=v);var k=b(d,F,{force:!0});return c(k.request.variables,{fetchPolicy:m,__environment:p,__nameForWarning:"refetch"}),t({type:"refetch",fetchPolicy:m,onComplete:g,refetchEnvironment:p,refetchQuery:k,renderPolicy:y}),{dispose:r}}),[o,t,r,v,c])}(r,w,G,ee,q,e,0,k,W,t,S);return{fragmentData:ee,fragmentRef:z,refetch:te}}},2750:(e,t,r)=>{var n=r(9888),a=r(5056),o=r(8156).useContext;e.exports=function(){var e=o(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}},275:(e,t,r)=>{var n=r(5813),a=r(4446);e.exports=function(e,t){var r=n(e.name);a(r.current===e.name,"Relay: The %s has to remain the same over the lifetime of a component. Changing it is not supported and will result in unexpected behavior.",t)}},8050:(e,t,r)=>{var n=r(2750),a=r(8156),o=a.useEffect,i=a.useRef;e.exports=function(e,t){var r=n(),a=i(null),s=Array.from(e).sort().join("");return o((function(){var n=r.getStore(),o=n.lookupInvalidationState(e),i=n.subscribeToInvalidationState(o,t);return a.current=i,function(){return i.dispose()}}),[s,t,r]),{dispose:function(){null!=a.current&&a.current.dispose()}}}},5746:(e,t,r)=>{var n=r(2750),a=r(8156).useEffect,o=r(6658).requestSubscription;e.exports=function(e,t){var r=null!=t?t:o,i=n();a((function(){return r(i,e).dispose}),[i,e,r])}},5813:(e,t,r)=>{var n=r(8156).useMemo;e.exports=function(e){return n((function(){return{current:e}}),[])}},5383:t=>{t.exports=e},5765:e=>{e.exports=t},311:e=>{e.exports=r},4924:e=>{e.exports=n},8296:e=>{e.exports=a},5275:e=>{e.exports=o},6175:e=>{e.exports=i},5264:e=>{e.exports=s},642:e=>{e.exports=l},9125:e=>{e.exports=u},4446:e=>{e.exports=c},5056:e=>{e.exports=f},8156:e=>{e.exports=d},6658:e=>{e.exports=h}},v={};return function e(t){var r=v[t];if(void 0!==r)return r.exports;var n=v[t]={exports:{}};return p[t](n,n.exports,e),n.exports}(5265)})()));