react-relay 16.0.0 → 16.2.0

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