react-relay 17.0.0 → 18.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (49) hide show
  1. package/ReactRelayContainerUtils.js.flow +2 -2
  2. package/ReactRelayContext.js +1 -1
  3. package/ReactRelayContext.js.flow +1 -1
  4. package/ReactRelayFragmentContainer.js.flow +2 -2
  5. package/ReactRelayPaginationContainer.js.flow +2 -2
  6. package/ReactRelayQueryRenderer.js.flow +1 -1
  7. package/ReactRelayQueryRendererContext.js.flow +1 -1
  8. package/ReactRelayRefetchContainer.js.flow +2 -2
  9. package/ReactRelayTypes.js.flow +45 -18
  10. package/__flowtests__/ReactRelayFragmentContainer-flowtest.js.flow +2 -2
  11. package/buildReactRelayContainer.js.flow +5 -5
  12. package/hooks.js +1 -1
  13. package/index.js +1 -1
  14. package/legacy.js +1 -1
  15. package/lib/relay-hooks/loadEntryPoint.js +8 -5
  16. package/lib/relay-hooks/loadQuery.js +2 -14
  17. package/lib/relay-hooks/useEntryPointLoader.js +5 -8
  18. package/lib/relay-hooks/useFragment.js +4 -7
  19. package/lib/relay-hooks/useFragmentInternal.js +6 -484
  20. package/lib/relay-hooks/useFragmentInternal_CURRENT.js +483 -0
  21. package/lib/relay-hooks/useFragmentInternal_EXPERIMENTAL.js +520 -0
  22. package/lib/relay-hooks/useLazyLoadQuery.js +2 -5
  23. package/lib/relay-hooks/usePreloadedQuery.js +6 -9
  24. package/lib/relay-hooks/useQueryLoader.js +1 -3
  25. package/multi-actor/ActorChange.js.flow +1 -1
  26. package/package.json +3 -3
  27. package/react-relay-hooks.js +2 -2
  28. package/react-relay-hooks.min.js +2 -2
  29. package/react-relay-legacy.js +1 -1
  30. package/react-relay-legacy.min.js +1 -1
  31. package/react-relay.js +2 -2
  32. package/react-relay.min.js +2 -2
  33. package/relay-hooks/EntryPointTypes.flow.js.flow +35 -12
  34. package/relay-hooks/LazyLoadEntryPointContainer_DEPRECATED.react.js.flow +8 -4
  35. package/relay-hooks/MatchContainer.js.flow +1 -1
  36. package/relay-hooks/ProfilerContext.js.flow +1 -1
  37. package/relay-hooks/__flowtests__/EntryPointTypes/ExtractQueryTypes-flowtest.js.flow +43 -0
  38. package/relay-hooks/loadEntryPoint.js.flow +10 -4
  39. package/relay-hooks/loadQuery.js.flow +4 -28
  40. package/relay-hooks/prepareEntryPoint_DEPRECATED.js.flow +4 -1
  41. package/relay-hooks/useEntryPointLoader.js.flow +3 -4
  42. package/relay-hooks/useFragment.js.flow +0 -5
  43. package/relay-hooks/useFragmentInternal.js.flow +19 -643
  44. package/relay-hooks/useFragmentInternal_CURRENT.js.flow +669 -0
  45. package/relay-hooks/useFragmentInternal_EXPERIMENTAL.js.flow +764 -0
  46. package/relay-hooks/useLazyLoadQuery.js.flow +0 -5
  47. package/relay-hooks/usePaginationFragment.js.flow +1 -1
  48. package/relay-hooks/usePreloadedQuery.js.flow +0 -5
  49. package/relay-hooks/useQueryLoader.js.flow +1 -2
package/react-relay.js CHANGED
@@ -1,4 +1,4 @@
1
1
  /**
2
- * Relay v17.0.0
2
+ * Relay v18.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,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)})()));
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,p)=>(()=>{"use strict";var h={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,p=r(9125),h=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||!p(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 h.createElement(e,(0,a.default)({},n,this.state.data,{ref:r,relay:this.state.relayProp}))},c}(h.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,p=i.useRef,h=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),_=h((function(){var e=c(m);return l(e,b)}),[m,b]),R=h((function(){return{environment:s}}),[s]),C=p(null),E=d(null)[1],P=p(null),x=h((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,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,_]);return f((function(){var e=P.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"],p=r(3089),h=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),E=r(8156),P=r(6658),x=P.ConnectionInterface,F=P.Observable,S=P.RelayFeatureFlags,k=P.createFragmentSpecResolver,q=P.createOperationDescriptor,D=P.getDataIDsFromObject,w=P.getRequest,I=P.getVariablesFromObject,A=P.isScalarAndEqual,O=r(4446),N="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 p(e,t,(function(e,t){return function(e,t,r){var n,p=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,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}}(P),M=r.direction||P.direction;M||C(!1,"ReactRelayPaginationContainer: Unable to infer direction of the connection, possibly because both first and last are provided.");var U=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))}}(P);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 F.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;O(null!=c&&""!==c,"ReactRelayPaginationContainer: Cannot `loadMore` without valid `%s` (got `%s`)",M===N?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===S.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===S.ENABLE_CONTAINERS_SUBSCRIBE_ON_COMMIT&&this._subscribeToNewResolverAndRerenderIfStoreHasChanged()},y.componentDidUpdate=function(e,t){!0===S.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=h(t,this.props),u=h(t,e);a.environment===this.state.prevContext.environment&&R(l,u)&&R(i,s)?this._hasFetched||this._resolver.setProps(e):(this._cleanup(),!0===S.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)&&!A(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,h=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`.",p,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`.",p,i,v),"object"!=typeof m&&C(!1,"ReactRelayPaginationContainer: Expected `getConnectionFromProps()` in `%s`to return an object with %s: Object, got `%s`.",p,s,m);var y=M===N?m[l]:m[f],g=M===N?m[d]:m[h];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,p,M===N?l:f,y,M===N?d:h,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||(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,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=h(t,d);i=I(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,p),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=w(r.query),E=q(b,y,g),P=null;this._refetchSubscription&&this._refetchSubscription.unsubscribe(),this._hasFetched=!0;var x=function(){s._refetchSubscription===P&&(s._refetchSubscription=null,s._isARequestInFlight=!1)};return this._isARequestInFlight=!0,P=this._getQueryFetcher().execute({environment:l,operation:E,preservePreviousReferences:!0}).mergeMap((function(t){return F.create((function(t){!function(t,r){var n=s._resolver.resolve();s._resolver.setVariables(U(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:x,complete:x,unsubscribe:x}).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,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),p=r(6658),h=p.createOperationDescriptor,v=p.deepFreeze,m=p.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},E(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},E(e,r,t.retryCallbacks))}function E(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=h(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 p=t.lookupInStore(l,c,e.fetchPolicy),v=t.fetch({environment:l,onDataChange:null,operation:c})||p;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),p=r(7426).getContainerName,h=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,E=b.getDataIDsFromObject,P=b.getRequest,x=b.getVariablesFromObject,F=b.isScalarAndEqual,S=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=p(e);return n=function(n){function p(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 S(!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 p=n?(0,i.default)((0,i.default)({},c),n):c,h=s?{force:!!s.force}:void 0;null!=h&&null!=(null==s?void 0:s.metadata)&&(h.metadata=null==s?void 0:s.metadata);var v,y="function"==typeof a?{next:a,error:a}:a||{},g=P(r),b=C(g,c,h);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(p,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(p,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 p=R(l,f,t,e,c);return o.state={data:p.resolve(),localVariables:null,prevProps:e,prevPropsContext:l,contextForChildren:l,relayProp:k(l.environment,o._refetch),resolver:p},o._isUnmounted=!1,o}(0,l.default)(p,n);var b=p.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()},p.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),l=E(t,e),u=d(t,a),c=d(t,e),p=r.resolver;if(r.prevPropsContext.environment!==o.environment||!y(u,c)||!y(s,l))return{data:(p=R(o,f,t,e,i)).resolve(),localVariables:null,prevProps:e,prevPropsContext:o,contextForChildren:o,relayProp:k(o.environment,r.relayProp.refetch),resolver:p};r.localVariables||p.setProps(e);var h=p.resolve();return h!==r.data?{data:h,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)&&!F(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(h.Provider,{value:l},g.createElement(e,(0,a.default)({},n,this.state.data,{ref:r,relay:s})))},p}(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,p=f.useContext;e.exports=function(e,t,r){var o=s(e);a(i(e),t);var h={};for(var v in t)h[v]=d(t[v]);var m=r(e,h);function y(e,t){var r,a=p(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=p(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),p=r(9696),h=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),E=r(2750),P=r(8050),x=r(5746),F=r(6658);e.exports={ConnectionHandler:F.ConnectionHandler,QueryRenderer:s,LocalQueryRenderer:o,MutationTypes:F.MutationTypes,RangeOperations:F.RangeOperations,ReactRelayContext:n,applyOptimisticMutation:F.applyOptimisticMutation,commitLocalUpdate:F.commitLocalUpdate,commitMutation:F.commitMutation,createFragmentContainer:a.createContainer,createPaginationContainer:i.createContainer,createRefetchContainer:l.createContainer,fetchQuery_DEPRECATED:F.fetchQuery_DEPRECATED,graphql:F.graphql,readInlineData:F.readInlineData,requestSubscription:F.requestSubscription,EntryPointContainer:u,RelayEnvironmentProvider:p,ProfilerContext:d,fetchQuery:F.fetchQuery,loadQuery:f,loadEntryPoint:c,useClientQuery:h,useFragment:m,useLazyLoadQuery:y,useEntryPointLoader:v,useQueryLoader:R,useMutation:g,usePaginationFragment:b,usePreloadedQuery:_,useRefetchableFragment:C,useRelayEnvironment:E,useSubscribeToInvalidationState:P,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,p=t.rootModuleID,h=i(),v=s(n),m=a();return l((function(){m.__log({name:"entrypoint.root.consume",profilerContext:v,rootModuleID:p})}),[m,v,p]),o.createElement(h,{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",p="function"==typeof WeakMap;function h(e){return void 0!==e.request.node.params.metadata.live}function v(e,t,r,n,a){var o=null!=r?r:h(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=h(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:h(t)?d:f,p=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,p,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:p}),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,p=this._environment,v=p.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),E=g(e,t,v,C,null,this._clearCacheEntry);this._cache.set(e,E)}if(u){var P,x=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(){h(t)&&r.unsubscribe()}}))},next:function(){var r=d._getOrCreateCacheEntry(e,t,v,x,P);r.processedPayloadsCount+=1,r.setValue(x),R();var n=null==s?void 0:s.next;null!=n&&n(p.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 F=this._cache.get(e);if(!F){var S=new Promise((function(e){R=e}));S.displayName="Relay("+t.fragment.node.name+")",F=g(e,t,v,S,P,this._clearCacheEntry),this._cache.set(e,F)}}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."),p.__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=p?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];if(null!=r){var 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(6658),i=o.__internal.fetchQueryDeduped,s=o.Observable,l=o.PreloadableQueryRegistry,u=o.RelayFeatureFlags,c=o.ReplaySubject,f=o.createOperationDescriptor,d=o.getRequest,p=o.getRequestIdentifier,h=100001;e.exports={loadQuery:function(e,t,r,o,v){var m;h++;var y,g,b,_,R,C,E=null!==(m=null==o?void 0:o.fetchPolicy)&&void 0!==m?m:"store-or-network",P=(0,n.default)((0,n.default)({},null==o?void 0:o.networkCacheConfig),{},{force:!0}),x=!1,F=function(t,r){return x=!0,e.executeWithSource({operation:t,source:r})},S=new c,k=s.create((function(e){return S.subscribe(e)})),q=null,D=!1,w=function(t){var n;D=!0;var a=new c;if(!0===u.ENABLE_LOAD_QUERY_REQUEST_DEDUPING){var o="raw-network-request-"+p(t,r);n=i(e,o,(function(){return e.getNetwork().execute(t,r,P)}))}else n=e.getNetwork().execute(t,r,P);var l=n.subscribe({error:function(e){q=e,a.error(e)},next:function(e){a.next(e)},complete:function(){a.complete()}}).unsubscribe;return g=l,s.create((function(e){var t=a.subscribe(e);return function(){t.unsubscribe(),g()}}))},I=function(t,r){!0===u.ENABLE_LOAD_QUERY_REQUEST_DEDUPING&&(D=!0);var n=i(e,t.request.identifier,r).subscribe({error:function(e){S.error(e)},next:function(e){S.next(e)},complete:function(){S.complete()}});b=n.unsubscribe},A=function(t){var n=f(t,r,P);y=e.retain(n),"store-only"!==E&&("store-or-network"!==E||"available"!==e.check(n).status)&&I(n,(function(){var e=w(t.params);return F(n,e)}))};if("PreloadableConcreteRequest"===t.kind){null===(C=(_=t.params).id)&&a(!1,"Relay: `loadQuery` requires that preloadable query `%s` has a persisted query id",_.name);var O=l.get(C);if(null!=O)A(O);else{var N="store-only"===E?null:w(_),Q=l.onLoad(C,(function(t){R();var n=f(t,r,P);y=e.retain(n),null!=N&&I(n,(function(){return F(n,N)}))}));R=Q.dispose}}else{var T=d(t);C=null!=(_=T.params).cacheID?_.cacheID:_.id,A(T)}var M=!1,U=!1,L=!1,j=function(){U||(y&&y.dispose(),U=!0)},V=function(){L||(x?b&&b():g&&g(),R&&R(),L=!0)};return{kind:"PreloadedQuery",environment:e,environmentProviderOptions:v,dispose:function(){M||(j(),V(),M=!0)},releaseQuery:j,cancelNetworkRequest:V,fetchKey:h,id:C,get isDisposed(){return M||U},get networkError(){return q},name:_.name,networkCacheConfig:P,fetchPolicy:E,source:D?k:void 0,variables:r}}}},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,p=l.getSelector,h=l.getVariablesFromFragment,v=l.handlePotentialSnapshotErrors,m=r(4446);function y(e,t,r,n,o){var s=h(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=p(t,r),h=!0===(null==t||null===(l=t.metadata)||void 0===l?void 0:l.plural);h?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||h&&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,E=(0,o.default)(R);try{for(E.s();!(C=E.n()).done;){var P=C.value;_.push(y(e,t,r,P,a))}}catch(e){E.e(e)}finally{E.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,F=d(e,t,x);if(F)throw F.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?h?[]: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(1743),i=r(8156),s=i.useCallback,l=i.useEffect,u=i.useRef,c=i.useState,f={kind:"NullEntryPointReference"};e.exports=function(e,t,r){var i,d,p,h,v=null!==(i=null==r||null===(d=r.TEST_ONLY__initialEntryPointData)||void 0===d?void 0:d.entryPointReference)&&void 0!==i?i:f,m=null!==(p=null==r||null===(h=r.TEST_ONLY__initialEntryPointData)||void 0===h?void 0:h.entryPointParams)&&void 0!==p?p:null,y=o(),g=u(new Set([v])),b=c(v),_=b[0],R=b[1],C=c(m),E=C[0],P=C[1],x=s((function(){if(y.current){var e={kind:"NullEntryPointReference"};g.current.add(e),R(e)}}),[R,y]),F=s((function(r){if(y.current){var n=a(e,t,r);g.current.add(n),R(n),P(r)}}),[e,t,R,y]),S=u(!1);return l((function(){return function(){S.current=!0}}),[]),l((function(){if(!0===S.current)return S.current=!1,void("NullEntryPointReference"!==_.kind&&null!=E&&F(E));var e=g.current;if(y.current){var t,r=(0,n.default)(e);try{for(r.s();!(t=r.n()).done;){var a=t.value;if(a===_)break;e.delete(a),"NullEntryPointReference"!==a.kind&&a.dispose()}}catch(e){r.e(e)}finally{r.f()}}}),[_,E,F,y]),l((function(){return function(){var e,t=(0,n.default)(g.current);try{for(t.s();!(e=t.n()).done;){var r=e.value;"NullEntryPointReference"!==r.kind&&r.dispose()}}catch(e){t.e(e)}finally{t.f()}}}),[]),["NullEntryPointReference"===_.kind?null:_,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(6337),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 useFragment()");var s=n(r,t,"useFragment()");return o({fragment:r.name,data:s}),s}},6337:(e,t,r)=>{var n=r(5275).default,a=n(r(1179)),o=n(r(5931)),i=r(6658);e.exports=function(e,t,r,n){return i.RelayFeatureFlags.ENABLE_USE_FRAGMENT_EXPERIMENTAL?(0,o.default)(e,t,r,n):(0,a.default)(e,t,r,n)}},1179:(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,p=c.useMemo,h=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,E=m.getPendingOperationsForFragment,P=m.getSelector,x=m.getVariablesFromFragment,F=m.handlePotentialSnapshotErrors,S=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=S(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=S(c.data,f.data),p={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(p)}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 w(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=p((function(){return P(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 w(g,m)})),C=b[0],x=b[1],S=C,I=v(S),A=I[0],O=I[1],N=A,Q=v(m),T=Q[0],M=Q[1],U=v(g),L=U[0],j=U[1];if(!R(m,T)||g!==L){M(m),j(g);var V=w(g,m);x(V),O(V),S=V,N=V}var H=h(!1);if(d((function(){H.current=m}),[m]),!0===(null===(c=e.metadata)||void 0===c?void 0:c.hasClientEdges)){var B=p((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}(S),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]}),[S,g,e,t,n]),K=B[0],G=B[1];if(G.length)throw Promise.all(G);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(){for(var e=0,t=r;e<t.length;e++)t[e].dispose()}}}),[g,K])}if(function(e){return"bailout"!==e.kind&&("singular"===e.kind?e.snapshot.isMissingData:e.snapshots.some((function(e){return e.isMissingData})))}(S)){var W=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}(S);if(null!=W&&W.length>0)throw Promise.all(W.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=E(g,e,z);if(Y)throw Y.promise}}!function(e,t){var r,n;if("singular"===t.kind)F(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;F(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,S);var X,J=h(!1);if(d((function(){var e=N,t=q(g,N);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,N]),J.current){var Z=q(g,S);if(null!=Z){var $=Z[0],ee=Z[1];$&&(x(ee),S=ee)}J.current=!1}if(y){var te=null==t;X=p((function(){return"bailout"===S.kind?te?null:[]:("plural"!==S.kind&&u(!1,"Expected state to be plural because fragment is plural"),S.snapshots.map((function(e){return e.data})))}),[S,te])}else"bailout"===S.kind?X=null:("singular"!==S.kind&&u(!1,"Expected state to be singular because fragment is singular"),X=S.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}},5931:(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,p=c.useMemo,h=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,E=m.getPendingOperationsForFragment,P=m.getSelector,x=m.getVariablesFromFragment,F=m.handlePotentialSnapshotErrors,S=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=S(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,selector:t.selector,environment:t.environment}]}for(var i=!1,s=[],l=0;l<t.snapshots.length;l++){var c=t.snapshots[l],f=e.lookup(c.selector),d=S(c.data,f.data),p={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(p)}return s.length!==t.snapshots.length&&u(!1,"Expected same number of snapshots"),[i,{kind:"plural",snapshots:s,epoch:r,selector:t.selector,environment:t.environment}]}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 w(e,t,r,n){if("bailout"===t.kind)return function(){};if("singular"===t.kind){var a=e.subscribe(t.snapshot,(function(a){r((function(r){var o=null;if("singular"!==r.kind||r.snapshot.selector!==a.selector||r.environment!==e){var i=q(r.environment,r);if(null!=i){var s=i[0],l=i[1];e.__log({name:"useFragment.subscription.missedUpdates",hasDataChanges:s}),o=s?l:r}else o=r}else o={kind:"singular",snapshot:a,epoch:e.getStore().getEpoch(),selector:t.selector,environment:t.environment};return n.current="singular"===o.kind?o.epoch:null,o}))}));return function(){a.dispose()}}var s=t.snapshots.map((function(a,o){return e.subscribe(a,(function(a){r((function(r){var s,l=null;if("plural"!==r.kind||(null===(s=r.snapshots[o])||void 0===s?void 0:s.selector)!==a.selector||r.environment!==e){var u=q(r.environment,r);if(null!=u){var c=u[0],f=u[1];e.__log({name:"useFragment.subscription.missedUpdates",hasDataChanges:c}),l=c?f:r}else l=r}else{var d=(0,i.default)(r.snapshots);d[o]=a,l={kind:"plural",snapshots:d,epoch:e.getStore().getEpoch(),selector:t.selector,environment:t.environment}}return n.current="plural"===l.kind?l.epoch:null,l}))}))}));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()}}}function I(e,t){return null==t?{kind:"bailout",environment:e}:"PluralReaderSelector"===t.kind?{kind:"plural",snapshots:t.selectors.map((function(t){return e.lookup(t)})),epoch:e.getStore().getEpoch(),selector:t,environment:e}:{kind:"singular",snapshot:e.lookup(t),epoch:e.getStore().getEpoch(),selector:t,environment:e}}e.exports=function(e,t,r,n){var a,i,c=p((function(){return P(e,t)}),[e,t]),m=!0===(null==e||null===(a=e.metadata)||void 0===a?void 0:a.plural);m?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||m&&Array.isArray(t)&&0===t.length||null!=c||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 y=l(),g=v((function(){return I(y,c)})),b=g[0],C=g[1],x=b,S=x.environment;if(!R(c,x.selector)||y!==x.environment){var A=I(y,c);C(A),x=A}var O=h(!1);if(d((function(){O.current=c}),[c]),!0===(null===(i=e.metadata)||void 0===i?void 0:i.hasClientEdges)){var N=p((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}(x),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(y,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]}),[x,y,e,t,n]),Q=N[0],T=N[1];if(T.length)throw Promise.all(T);d((function(){var e=s(y);if(null!=Q&&Q.length){var t,r=[],n=(0,o.default)(Q);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(){for(var e=0,t=r;e<t.length;e++)t[e].dispose()}}}),[y,Q])}if(function(e){return"bailout"!==e.kind&&("singular"===e.kind?e.snapshot.isMissingData:e.snapshots.some((function(e){return e.isMissingData})))}(x)){var M=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}(x);if(null!=M&&M.length>0)throw Promise.all(M.map((function(e){var t=e.liveStateID;return y.getStore().getLiveResolverPromise(t)})));if(_.ENABLE_RELAY_OPERATION_TRACKER_SUSPENSE||y!==S||!O.current||!R(O.current,c)){null==c&&u(!1,"refinement, see invariants above");var U="PluralReaderSelector"===c.kind?c.selectors[0].owner:c.owner,L=E(y,e,U);if(L)throw L.promise}}!function(e,t){var r,n;if("singular"===t.kind)F(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;F(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()}}}(y,x);var j,V=h(null),H=h(null);if(d((function(){var e=H.current;if(null!=e){if(x.environment===e.environment&&x.selector===e.selector)return;e.dispose()}if("bailout"!==x.kind){var t=x,r=q(x.environment,x);if(null!==r){var n=r[0],a=r[1];if(n)return void C(a);t=a}var o=w(x.environment,t,C,V);H.current={dispose:o,selector:x.selector,environment:x.environment}}}),[x]),d((function(){if(null==H.current&&"bailout"!==x.kind){var e=w(x.environment,x,C,V);H.current={dispose:e,selector:x.selector,environment:x.environment}}return function(){var e;null===(e=H.current)||void 0===e||e.dispose(),H.current=null}}),[]),null!==V.current&&V.current!==x.epoch){var B=q(y,x);if(null!=B){var K=B[0],G=B[1];K&&(C(G),x=G)}}if(V.current=null,m){var W=null==t;j=p((function(){return"bailout"===x.kind?W?null:[]:("plural"!==x.kind&&u(!1,"Expected state to be plural because fragment is plural"),x.snapshots.map((function(e){return e.data})))}),[x,W])}else"bailout"===x.kind?j=null:("singular"!==x.kind&&u(!1,"Expected state to be singular because fragment is singular"),j=x.snapshot.data);return _.LOG_MISSING_RECORDS_IN_PROD,null!=t&&(void 0===j||Array.isArray(j)&&j.length>0&&j.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:j}),j}},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],p=i[1];return u((function(){var e;if(p(null!=o),null!=o){var t=function(){p(!1)};e=o.subscribe({complete:t,error:t})}return function(){e&&e.unsubscribe()}}),[o]),d}},3899:(e,t,r)=>{var n=r(4734),a=r(1061),o=r(2750),i=r(6658).__internal.fetchQuery;e.exports=function(e,t,r){var s=o(),l=a(e,t,r&&r.networkCacheConfig?r.networkCacheConfig:{force:!0});return n({componentDisplayName:"useLazyLoadQuery()",fetchKey:null==r?void 0:r.fetchKey,fetchObservable:i(s,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(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,p=c.useState,h=c.useRef;e.exports=function(e){var t=e.query,r=e.componentDisplayName,a=e.fetchObservable,c=e.fetchPolicy,v=e.fetchKey,m=e.renderPolicy,y=u(),g=f(n),b=i(y),_=p(0),R=_[0],C=_[1],E=s(),P=E.startFetch,x=E.completeFetch,F="".concat(R,"-").concat(null!=v?v:""),S=o(y,t,c,m,F),k=g.wrapPrepareQueryResource((function(){return b.prepareWithIdentifier(S,t,a,c,m,{start:P,complete:x,error:x},g)})),q=h(!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,S]),d((function(){b.releaseTemporaryRetain(k)}));var D=k.fragmentNode,w=k.fragmentRef;return l(D,w,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,p=r(6658),h=p.__internal.fetchQuery,v=p.ConnectionInterface,m=p.createOperationDescriptor,y=p.getPaginationVariables,g=p.getRefetchMetadata,b=p.getSelector,_=p.getValueAtPath,R=r(4446);e.exports=function(e){var t=e.direction,r=e.fragmentNode,u=e.fragmentRef,p=e.fragmentIdentifier,C=e.fragmentData,E=e.connectionPathInFragmentData,P=e.paginationRequest,x=e.paginationMetadata,F=e.componentDisplayName,S=e.observer,k=e.onReset,q=s(),D=a(),w=D.isFetchingRef,I=D.startFetch,A=D.disposeFetch,O=D.completeFetch,N=g(r,F).identifierInfo,Q=null!=(null==N?void 0:N.identifierField)&&null!=C&&"object"==typeof C?C[N.identifierField]:null,T=o(),M=d(q),U=M[0],L=M[1],j=d(p),V=j[0],H=j[1],B=i(r,u);(q!==U||p!==V)&&(A(),k(),L(q),H(p));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,p=i.START_CURSOR,h=_(r,n);if(null==h)return{cursor:null,hasMore:!1};"object"!=typeof h&&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,h);var m=h[s],y=h[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[p])&&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,p,g),{cursor:g,hasMore:"forward"===e?null!=g&&!0===y[c]:null!=g&&!0===y[f]}}(t,r,C,E),G=K.cursor,W=K.hasMore;return f((function(){return function(){A()}}),[A]),[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,F),{dispose:function(){}};var i=b(r,u);if(!0===w.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,F,F),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,F);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),p=y(t,e,G,d,(0,n.default)({},f),x);null!=N&&("string"!=typeof Q&&R(!1,"Relay: Expected result to have a string `%s` in order to refetch, got `%s`.",N.identifierField,Q),p[N.identifierQueryVariableName]=Q);var v=m(P,p,{force:!0});return h(q,v).subscribe((0,n.default)((0,n.default)({},S),{},{start:function(e){I(e),S.start&&S.start(e)},complete:function(){O(),S.complete&&S.complete(),o&&o(null)},error:function(e){O(),S.error&&S.error(e),o&&o(e)}})),{dispose:A}}),[q,Q,t,G,I,A,O,w,B,C,r.name,u,F]),W,A]}},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),p=c(e),h=c(new Set),v=l(!1),m=v[0],y=v[1],g=f((function(t){d.current===r&&p.current===e&&(h.current.delete(t),i.current&&y(h.current.size>0))}),[r,i,e]);return u((function(){d.current===r&&p.current===e||(h.current=new Set,i.current&&y(!1),d.current=r,p.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 h.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),p=d.getFragment,h=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=p(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=h(r,b),C=m({componentDisplayName:a,connectionPathInFragmentData:l,direction:"backward",fragmentData:g,fragmentIdentifier:R,fragmentNode:r,fragmentRef:b,paginationMetadata:d,paginationRequest:f}),E=C[0],P=C[1],x=C[2],F=C[3],S=m({componentDisplayName:a,connectionPathInFragmentData:l,direction:"forward",fragmentData:g,fragmentIdentifier:R,fragmentNode:r,fragmentRef:b,paginationMetadata:d,paginationRequest:f}),k=S[0],q=S[1],D=S[2],w=S[3],I=u((function(e,t){return w(),F(),_(e,(0,n.default)((0,n.default)({},t),{},{__environment:void 0}))}),[w,F,_]);return c({fragment:r.name,data:g,hasNext:q,isLoadingNext:D,hasPrevious:P,isLoadingPrevious:x}),{data:g,loadNext:k,loadPrevious:E,hasNext:q,hasPrevious:P,isLoadingNext:D,isLoadingPrevious:x,refetch:I}}},4617:(e,t,r)=>{var n=r(4734),a=r(1061),o=r(2750),i=r(5056),s=r(8156).useDebugValue,l=r(6658).__internal,u=l.fetchQueryDeduped,c=l.fetchQuery,f=r(4446);e.exports=function(e,t,r){var l,d=o(),p=t.fetchKey,h=t.fetchPolicy,v=t.source,m=t.variables,y=t.networkCacheConfig,g=a(e,m,y);if("PreloadedQuery_DEPRECATED"===t.kind)g.request.node.params.name!==t.name&&i(!1,"usePreloadedQuery(): Expected data to be prefetched for query `%s`, got prefetch results for query `%s`.",g.request.node.params.name,t.name),l={componentDisplayName:"usePreloadedQuery()",fetchKey:p,fetchObservable:u(d,g.request.identifier,(function(){return d===t.environment&&null!=v?d.executeWithSource({operation:g,source:v}):d.execute({operation:g})})),fetchPolicy:h,query:g,renderPolicy:null==r?void 0:r.UNSTABLE_renderPolicy};else{f(!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,_=c(d,g);null!=v&&d===t.environment?b=v.ifEmpty(_):d!==t.environment?(f(!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=_):b=_,l={componentDisplayName:"usePreloadedQuery()",fetchObservable:b,fetchKey:p,fetchPolicy:h,query:g,renderPolicy:null==r?void 0:r.UNSTABLE_renderPolicy}}var R=n(l);return s({query:t.name,variables:t.variables,data:R,fetchKey:p,fetchPolicy:h,renderPolicy:null==r?void 0:r.UNSTABLE_renderPolicy}),R}},8876:(e,t,r)=>{var n=(0,r(5275).default)(r(5765)),a=r(428).loadQuery,o=r(1743),i=r(2750),s=r(8156),l=s.useCallback,u=s.useEffect,c=s.useRef,f=s.useState,d=r(6658).getRequest,p={kind:"NullQueryReference"};function h(e){return"PreloadableConcreteRequest"===e.kind?void 0!==e.params.metadata.live:void 0!==d(e).params.metadata.live}e.exports=function(e,t){var r=null!=t?t:p,s=i(),d=o(),v=c(new Set([r])),m=f((function(){return r})),y=m[0],g=m[1],b=f((function(){return r})),_=b[0],R=b[1];r!==_&&(v.current.add(r),R(r),g(r));var C=l((function(){d.current&&(v.current.add(p),g(p))}),[d]),E=l((function(t,r){var n=null!=r&&r.hasOwnProperty("__environment")?{fetchPolicy:r.fetchPolicy,networkCacheConfig:r.networkCacheConfig,__nameForWarning:r.__nameForWarning}:r;if(d.current){var o,i=a(null!==(o=null==r?void 0:r.__environment)&&void 0!==o?o:s,e,t,n);v.current.add(i),g(i)}}),[s,e,g,d]),P=c(!1);return u((function(){return function(){P.current=!0}}),[]),u((function(){if(!0===P.current)return P.current=!1,void("NullQueryReference"!==y.kind&&E(y.variables,{fetchPolicy:y.fetchPolicy,networkCacheConfig:y.networkCacheConfig}));var t=v.current;if(d.current){var r,a=(0,n.default)(t);try{for(a.s();!(r=a.n()).done;){var o=r.value;if(o===y)break;t.delete(o),"NullQueryReference"!==o.kind&&(h(e)?o.dispose&&o.dispose():o.releaseQuery&&o.releaseQuery())}}catch(e){a.e(e)}finally{a.f()}}}),[y,d,E,e]),u((function(){return function(){var t,r=(0,n.default)(v.current);try{for(r.s();!(t=r.n()).done;){var a=t.value;"NullQueryReference"!==a.kind&&(h(e)?a.dispose&&a.dispose():a.releaseQuery&&a.releaseQuery())}}catch(e){r.e(e)}finally{r.f()}}}),[e]),["NullQueryReference"===y.kind?null:y,E,C]}},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),p=r(8156),h=p.useCallback,v=p.useContext,m=p.useReducer,y=r(6658),g=y.__internal.fetchQuery,b=y.createOperationDescriptor,_=y.getFragmentIdentifier,R=y.getRefetchMetadata,C=y.getSelector,E=y.getValueAtPath,P=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&&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 p=f(),y=R(e,r),F=y.refetchableRequest,S=y.fragmentRefPathInResponse,k=y.identifierInfo,q=_(e,t),D=m(x,{fetchPolicy:void 0,mirroredEnvironment:p,mirroredFragmentIdentifier:q,onComplete:void 0,refetchEnvironment:null,refetchQuery:null,renderPolicy:void 0}),w=D[0],I=D[1],A=w.fetchPolicy,O=w.mirroredEnvironment,N=w.mirroredFragmentIdentifier,Q=w.onComplete,T=w.refetchEnvironment,M=w.refetchQuery,U=w.renderPolicy,L=null!=T?T:p,j=i(L),V=v(o),H=L!==O||q!==N,B=c(F),K=B[0],G=B[1],W=B[2],z=t;if(H)I({type:"reset",environment:L,fragmentIdentifier:q}),W();else if(null!=M&&null!=K){var Y;Y=n.getInitialIDAndType(M.request.variables,S,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,M),Z=V.wrapPrepareQueryResource((function(){return j.prepare(M,J,A,U,{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=E($,S),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 p=u(),v=null!=(null==l?void 0:l.identifierField)&&null!=n&&"object"==typeof n?n[l.identifierField]:null;return h((function(n,o){if(!0!==p.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,u,h=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,E,x,F;s=null!==(R=null===(E=_.selectors[0])||void 0===E?void 0:E.owner.variables)&&void 0!==R?R:{},u=null!==(x=null===(F=_.selectors[0])||void 0===F?void 0:F.variables)&&void 0!==x?x:{}}else s=_.owner.variables,u=_.variables;var S=(0,a.default)((0,a.default)((0,a.default)({},s),u),n);null==l||n.hasOwnProperty(l.identifierQueryVariableName)||("string"!=typeof v&&P(!1,"Relay: Expected result to have a string `%s` in order to refetch, got `%s`.",l.identifierField,v),S[l.identifierQueryVariableName]=v);var k=b(d,S,{force:!0});return c(k.request.variables,{fetchPolicy:m,__environment:h,__nameForWarning:"refetch"}),t({type:"refetch",fetchPolicy:m,onComplete:g,refetchEnvironment:h,refetchQuery:k,renderPolicy:y}),{dispose:r}}),[o,t,r,v,c])}(r,I,W,ee,q,e,0,k,G,t,F);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=p}},v={};return function e(t){var r=v[t];if(void 0!==r)return r.exports;var n=v[t]={exports:{}};return h[t](n,n.exports,e),n.exports}(5265)})()));