relay-runtime 18.2.0 → 20.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (83) hide show
  1. package/experimental.js +1 -1
  2. package/experimental.js.flow +8 -6
  3. package/index.js +1 -1
  4. package/index.js.flow +3 -0
  5. package/lib/experimental.js +5 -2
  6. package/lib/index.js +3 -0
  7. package/lib/multi-actor-environment/ActorSpecificEnvironment.js +1 -1
  8. package/lib/mutations/RelayRecordSourceProxy.js +2 -1
  9. package/lib/mutations/createUpdatableProxy.js +1 -1
  10. package/lib/mutations/validateMutation.js +2 -2
  11. package/lib/network/RelayObservable.js +1 -3
  12. package/lib/network/wrapNetworkWithLogObserver.js +2 -2
  13. package/lib/query/fetchQuery.js +1 -1
  14. package/lib/store/DataChecker.js +12 -8
  15. package/lib/store/OperationExecutor.js +93 -43
  16. package/lib/store/RelayModernEnvironment.js +13 -4
  17. package/lib/store/RelayModernFragmentSpecResolver.js +4 -4
  18. package/lib/store/RelayModernStore.js +49 -24
  19. package/lib/store/RelayPublishQueue.js +11 -15
  20. package/lib/store/RelayReader.js +134 -151
  21. package/lib/store/RelayReferenceMarker.js +14 -7
  22. package/lib/store/RelayResponseNormalizer.js +57 -31
  23. package/lib/store/RelayStoreSubscriptions.js +2 -2
  24. package/lib/store/RelayStoreUtils.js +8 -0
  25. package/lib/store/ResolverFragments.js +2 -2
  26. package/lib/store/createRelayLoggingContext.js +17 -0
  27. package/lib/store/generateTypenamePrefixedDataID.js +9 -0
  28. package/lib/store/live-resolvers/LiveResolverCache.js +4 -2
  29. package/lib/store/live-resolvers/resolverDataInjector.js +4 -4
  30. package/lib/store/normalizeResponse.js +2 -2
  31. package/lib/store/observeFragmentExperimental.js +60 -13
  32. package/lib/store/observeQueryExperimental.js +21 -0
  33. package/lib/util/RelayFeatureFlags.js +7 -1
  34. package/lib/util/handlePotentialSnapshotErrors.js +11 -8
  35. package/multi-actor-environment/ActorSpecificEnvironment.js.flow +1 -0
  36. package/mutations/RelayRecordSourceProxy.js.flow +4 -0
  37. package/mutations/createUpdatableProxy.js.flow +1 -1
  38. package/mutations/validateMutation.js.flow +3 -3
  39. package/network/RelayNetworkTypes.js.flow +3 -0
  40. package/network/RelayObservable.js.flow +1 -5
  41. package/network/wrapNetworkWithLogObserver.js.flow +19 -1
  42. package/package.json +1 -1
  43. package/query/fetchQuery.js.flow +1 -1
  44. package/store/DataChecker.js.flow +16 -4
  45. package/store/OperationExecutor.js.flow +101 -15
  46. package/store/RelayExperimentalGraphResponseTransform.js.flow +4 -4
  47. package/store/RelayModernEnvironment.js.flow +22 -6
  48. package/store/RelayModernFragmentSpecResolver.js.flow +6 -6
  49. package/store/RelayModernSelector.js.flow +2 -0
  50. package/store/RelayModernStore.js.flow +86 -27
  51. package/store/RelayPublishQueue.js.flow +32 -21
  52. package/store/RelayReader.js.flow +168 -97
  53. package/store/RelayReferenceMarker.js.flow +15 -5
  54. package/store/RelayResponseNormalizer.js.flow +104 -69
  55. package/store/RelayStoreSubscriptions.js.flow +2 -2
  56. package/store/RelayStoreTypes.js.flow +34 -4
  57. package/store/RelayStoreUtils.js.flow +29 -0
  58. package/store/ResolverCache.js.flow +2 -2
  59. package/store/ResolverFragments.js.flow +5 -3
  60. package/store/StoreInspector.js.flow +5 -0
  61. package/store/createRelayContext.js.flow +3 -2
  62. package/store/createRelayLoggingContext.js.flow +46 -0
  63. package/store/generateTypenamePrefixedDataID.js.flow +25 -0
  64. package/store/live-resolvers/LiveResolverCache.js.flow +7 -2
  65. package/store/live-resolvers/resolverDataInjector.js.flow +10 -6
  66. package/store/normalizeResponse.js.flow +2 -0
  67. package/store/observeFragmentExperimental.js.flow +82 -28
  68. package/store/observeQueryExperimental.js.flow +61 -0
  69. package/store/waitForFragmentExperimental.js.flow +4 -3
  70. package/util/NormalizationNode.js.flow +2 -1
  71. package/util/RelayConcreteNode.js.flow +2 -0
  72. package/util/RelayError.js.flow +1 -0
  73. package/util/RelayFeatureFlags.js.flow +28 -0
  74. package/util/RelayRuntimeTypes.js.flow +6 -3
  75. package/util/getPaginationVariables.js.flow +2 -0
  76. package/util/handlePotentialSnapshotErrors.js.flow +23 -11
  77. package/util/registerEnvironmentWithDevTools.js.flow +4 -2
  78. package/util/withProvidedVariables.js.flow +1 -0
  79. package/util/withStartAndDuration.js.flow +3 -0
  80. package/relay-runtime-experimental.js +0 -4
  81. package/relay-runtime-experimental.min.js +0 -9
  82. package/relay-runtime.js +0 -4
  83. package/relay-runtime.min.js +0 -9
@@ -1,9 +0,0 @@
1
- /**
2
- * Relay v18.2.0
3
- *
4
- * Copyright (c) Meta Platforms, Inc. and affiliates.
5
- *
6
- * This source code is licensed under the MIT license found in the
7
- * LICENSE file in the root directory of this source tree.
8
- */
9
- !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("invariant"),require("fbjs/lib/warning"),require("@babel/runtime/helpers/interopRequireDefault"),require("@babel/runtime/helpers/createForOfIteratorHelper"),require("@babel/runtime/helpers/objectSpread2"),require("@babel/runtime/helpers/toConsumableArray"),require("fbjs/lib/areEqual"),require("@babel/runtime/helpers/asyncToGenerator"),require("@babel/runtime/helpers/defineProperty"),require("@babel/runtime/helpers/objectWithoutPropertiesLoose"),require("@babel/runtime/helpers/toPropertyKey")):"function"==typeof define&&define.amd?define(["invariant","fbjs/lib/warning","@babel/runtime/helpers/interopRequireDefault","@babel/runtime/helpers/createForOfIteratorHelper","@babel/runtime/helpers/objectSpread2","@babel/runtime/helpers/toConsumableArray","fbjs/lib/areEqual","@babel/runtime/helpers/asyncToGenerator","@babel/runtime/helpers/defineProperty","@babel/runtime/helpers/objectWithoutPropertiesLoose","@babel/runtime/helpers/toPropertyKey"],t):"object"==typeof exports?exports.RelayRuntime=t(require("invariant"),require("fbjs/lib/warning"),require("@babel/runtime/helpers/interopRequireDefault"),require("@babel/runtime/helpers/createForOfIteratorHelper"),require("@babel/runtime/helpers/objectSpread2"),require("@babel/runtime/helpers/toConsumableArray"),require("fbjs/lib/areEqual"),require("@babel/runtime/helpers/asyncToGenerator"),require("@babel/runtime/helpers/defineProperty"),require("@babel/runtime/helpers/objectWithoutPropertiesLoose"),require("@babel/runtime/helpers/toPropertyKey")):e.RelayRuntime=t(e.invariant,e["fbjs/lib/warning"],e["@babel/runtime/helpers/interopRequireDefault"],e["@babel/runtime/helpers/createForOfIteratorHelper"],e["@babel/runtime/helpers/objectSpread2"],e["@babel/runtime/helpers/toConsumableArray"],e["fbjs/lib/areEqual"],e["@babel/runtime/helpers/asyncToGenerator"],e["@babel/runtime/helpers/defineProperty"],e["@babel/runtime/helpers/objectWithoutPropertiesLoose"],e["@babel/runtime/helpers/toPropertyKey"])}(self,((e,t,r,n,i,a,s,o,l,u,c)=>(()=>{"use strict";var d={7649:(e,t,r)=>{var n=r(1662),i=r(6696).observeFragment,a=r(8461).waitForFragmentData;e.exports={resolverDataInjector:n,isValueResult:function(e){return!0===e.ok},isErrorResult:function(e){return!1===e.ok},observeFragment:i,waitForFragmentData:a}},778:(e,t,r)=>{var n=r(9381),i=r(8159),a=r(5056);e.exports=function(e){switch(e){case"connection":return n;case"deleteRecord":return i.DeleteRecordHandler;case"deleteEdge":return i.DeleteEdgeHandler;case"appendEdge":return i.AppendEdgeHandler;case"prependEdge":return i.PrependEdgeHandler;case"appendNode":return i.AppendNodeHandler;case"prependNode":return i.PrependNodeHandler}a(!1)}},9381:(e,t,r)=>{var n=r(2997).generateClientID,i=r(5165).getStableStorageKey,a=r(6330),s=r(9776),o=r(5056),l=(r(4446),"connection"),u="__connection_next_edge_index";function c(e,t,r){if(null==r)return r;var i=s.get().EDGES,a=t.getValue(u);"number"!=typeof a&&o(!1);var l=n(t.getDataID(),i,a),c=e.create(l,r.getType());return c.copyFieldsFrom(r),null==c.getValue("cursor")&&c.setValue(null,"cursor"),t.setValue(a+1,u),c}function d(e,t,r){for(var n=s.get().NODE,i=0;i<e.length;i++){var a=e[i];if(a){var o=a.getLinkedRecord(n),l=o&&o.getDataID();if(l){if(r.has(l))continue;r.add(l)}t.push(a)}}}e.exports={buildConnectionEdge:c,createEdge:function(e,t,r,i){var a=s.get().NODE,o=n(t.getDataID(),r.getDataID()),l=e.get(o);return l||(l=e.create(o,i)),l.setLinkedRecord(r,a),null==l.getValue("cursor")&&l.setValue(null,"cursor"),l},deleteNode:function(e,t){var r=s.get(),n=r.EDGES,i=r.NODE,a=e.getLinkedRecords(n);if(a){for(var o,l=0;l<a.length;l++){var u=a[l],c=u&&u.getLinkedRecord(i);null!=c&&c.getDataID()===t?void 0===o&&(o=a.slice(0,l)):void 0!==o&&o.push(u)}void 0!==o&&e.setLinkedRecords(o,n)}},getConnection:function(e,t,r){var n=a(l,t,null);return e.getLinkedRecord(n,r)},getConnectionID:function(e,t,r){var s=a(l,t,null),o=i(s,r);return n(e,o)},insertEdgeAfter:function(e,t,r){var n=s.get(),i=n.CURSOR,a=n.EDGES,o=e.getLinkedRecords(a);if(o){var l;if(null==r)l=o.concat(t);else{l=[];for(var u=!1,c=0;c<o.length;c++){var d=o[c];l.push(d),null!=d&&r===d.getValue(i)&&(l.push(t),u=!0)}u||l.push(t)}e.setLinkedRecords(l,a)}else e.setLinkedRecords([t],a)},insertEdgeBefore:function(e,t,r){var n=s.get(),i=n.CURSOR,a=n.EDGES,o=e.getLinkedRecords(a);if(o){var l;if(null==r)l=[t].concat(o);else{l=[];for(var u=!1,c=0;c<o.length;c++){var d=o[c];null!=d&&r===d.getValue(i)&&(l.push(t),u=!0),l.push(d)}u||l.unshift(t)}e.setLinkedRecords(l,a)}else e.setLinkedRecords([t],a)},update:function(e,t){var r=e.get(t.dataID);if(r){var i=s.get(),a=i.EDGES,o=i.END_CURSOR,l=i.HAS_NEXT_PAGE,h=i.HAS_PREV_PAGE,f=i.PAGE_INFO,_=i.PAGE_INFO_TYPE,p=i.START_CURSOR,v=r.getLinkedRecord(t.fieldKey),g=v&&v.getLinkedRecord(f);if(v){var m=n(r.getDataID(),t.handleKey),y=r.getLinkedRecord(t.handleKey),R=null!=y?y:e.get(m),b=R&&R.getLinkedRecord(f);if(R){null==y&&r.setLinkedRecord(R,t.handleKey);var E=R,I=v.getLinkedRecords(a);I&&(I=I.map((function(t){return c(e,E,t)})));var S=E.getLinkedRecords(a),D=E.getLinkedRecord(f);E.copyFieldsFrom(v),S&&E.setLinkedRecords(S,a),D&&E.setLinkedRecord(D,f);var k=[],A=t.args;if(S&&I)if(null!=A.after){var F,T=null===(F=b)||void 0===F?void 0:F.getValue(o),O=null==g?void 0:g.getValue(o);if(!(b&&A.after===T||b&&T===O))return;var P=new Set;d(S,k,P),d(I,k,P)}else if(null!=A.before){if(!b||A.before!==b.getValue(p))return;var C=new Set;d(I,k,C),d(S,k,C)}else k=I;else k=I||S;if(null!=k&&k!==S&&E.setLinkedRecords(k,a),b&&g)if(null==A.after&&null==A.before)b.copyFieldsFrom(g);else if(null!=A.before||null==A.after&&A.last){b.setValue(!!g.getValue(h),h);var L=g.getValue(p);"string"==typeof L&&b.setValue(L,p)}else if(null!=A.after||null==A.before&&A.first){b.setValue(!!g.getValue(l),l);var N=g.getValue(o);"string"==typeof N&&b.setValue(N,o)}}else{var w=e.create(m,v.getType());w.setValue(0,u),w.copyFieldsFrom(v);var x=v.getLinkedRecords(a);x&&(x=x.map((function(t){return c(e,w,t)})),w.setLinkedRecords(x,a)),r.setLinkedRecord(w,t.handleKey),(b=e.create(n(w.getDataID(),f),_)).setValue(!1,l),b.setValue(!1,h),b.setValue(null,o),b.setValue(null,p),g&&b.copyFieldsFrom(g),w.setLinkedRecord(b,f)}}else r.setValue(null,t.handleKey,void 0,r.getErrors(t.fieldKey))}}}},9776:e=>{var t={after:!0,before:!0,find:!0,first:!0,last:!0,surrounds:!0},r={CURSOR:"cursor",EDGES:"edges",END_CURSOR:"endCursor",HAS_NEXT_PAGE:"hasNextPage",HAS_PREV_PAGE:"hasPreviousPage",NODE:"node",PAGE_INFO_TYPE:"PageInfo",PAGE_INFO:"pageInfo",START_CURSOR:"startCursor"},n={inject:function(e){r=e},get:function(){return r},isConnectionCall:function(e){return t.hasOwnProperty(e.name)}};e.exports=n},8159:(e,t,r)=>{var n=(0,r(5275).default)(r(5765)),i=r(9381),a=r(9776),s=r(5056),o=(r(4446),{update:function(e,t){var r=e.get(t.dataID);if(null!=r){var n=r.getValue(t.fieldKey);"string"==typeof n?e.delete(n):Array.isArray(n)&&n.forEach((function(t){"string"==typeof t&&e.delete(t)}))}}}),l={update:function(e,t){var r=e.get(t.dataID);if(null!=r){var a=t.handleArgs.connections;null==a&&s(!1);var o=r.getValue(t.fieldKey);(Array.isArray(o)?o:[o]).forEach((function(t){if("string"==typeof t){var r,s=(0,n.default)(a);try{for(s.s();!(r=s.n()).done;){var o=r.value,l=e.get(o);null!=l&&i.deleteNode(l,t)}}catch(e){s.e(e)}finally{s.f()}}}))}}},u={update:f(i.insertEdgeAfter)},c={update:f(i.insertEdgeBefore)},d={update:_(i.insertEdgeAfter)},h={update:_(i.insertEdgeBefore)};function f(e){return function(t,r){var o,l=t.get(r.dataID);if(null!=l){var u,c,d=r.handleArgs.connections;null==d&&s(!1);try{u=l.getLinkedRecord(r.fieldKey)}catch(e){}if(!u)try{c=l.getLinkedRecords(r.fieldKey)}catch(e){}if(null!=u||null!=c){var h,f=a.get(),_=f.NODE,p=f.EDGES,v=null!==(o=c)&&void 0!==o?o:[u],g=(0,n.default)(v);try{var m=function(){var r=h.value;if(null==r)return"continue";var a=r.getLinkedRecord("node");if(!a)return"continue";var o,l=a.getDataID(),u=(0,n.default)(d);try{for(u.s();!(o=u.n()).done;){var c=o.value,f=t.get(c);if(null!=f&&!(null===(y=f.getLinkedRecords(p))||void 0===y?void 0:y.some((function(e){var t;return(null==e||null===(t=e.getLinkedRecord(_))||void 0===t?void 0:t.getDataID())===l})))){var v=i.buildConnectionEdge(t,f,r);null==v&&s(!1),e(f,v)}}}catch(e){u.e(e)}finally{u.f()}};for(g.s();!(h=g.n()).done;){var y;m()}}catch(e){g.e(e)}finally{g.f()}}}}}function _(e){return function(t,r){var o,l=t.get(r.dataID);if(null!=l){var u,c,d=r.handleArgs,h=d.connections,f=d.edgeTypeName;null==h&&s(!1),null==f&&s(!1);try{u=l.getLinkedRecord(r.fieldKey)}catch(e){}if(!u)try{c=l.getLinkedRecords(r.fieldKey)}catch(e){}if(null!=u||null!=c){var _,p=a.get(),v=p.NODE,g=p.EDGES,m=null!==(o=c)&&void 0!==o?o:[u],y=(0,n.default)(m);try{var R=function(){var r=_.value;if(null==r)return"continue";var a,o=r.getDataID(),l=(0,n.default)(h);try{for(l.s();!(a=l.n()).done;){var u=a.value,c=t.get(u);if(null!=c&&!(null===(b=c.getLinkedRecords(g))||void 0===b?void 0:b.some((function(e){var t;return(null==e||null===(t=e.getLinkedRecord(v))||void 0===t?void 0:t.getDataID())===o})))){var d=i.createEdge(t,c,r,f);null==d&&s(!1),e(c,d)}}}catch(e){l.e(e)}finally{l.f()}};for(y.s();!(_=y.n()).done;){var b;R()}}catch(e){y.e(e)}finally{y.f()}}}}}e.exports={AppendEdgeHandler:u,DeleteRecordHandler:o,PrependEdgeHandler:c,AppendNodeHandler:d,PrependNodeHandler:h,DeleteEdgeHandler:l}},7128:(e,t,r)=>{var n=r(7649),i=n.isErrorResult,a=n.isValueResult,s=r(9381),o=r(9776),l=r(8159),u=r(778),c=r(4414),d=r(5182),h=r(1908),f=r(6626),_=r(7983),p=r(1060),v=r(534),g=r(1273),m=r(5622),y=r(7367),R=r(1634),b=r(4530),E=r(2997),I=E.generateClientID,S=E.generateUniqueClientID,D=E.isClientID,k=r(4819),A=r(4051),F=r(54),T=r(8941),O=T.isSuspenseSentinel,P=T.suspenseSentinel,C=r(5131),L=r(1596),N=r(129),w=r(8541),x=r(7258),M=r(7105),V=r(6256),U=r(4945),j=r(371),K=r(6938),q=r(5165),Y=r(890),B=r(9942),z=r(2924),H=r(4096),G=r(2729),Q=r(7858),W=r(8208),J=r(2279),X=r(5250),$=r(9514),Z=r(6330),ee=r(6900),te=r(3257),re=r(9222).handlePotentialSnapshotErrors,ne=r(1571),ie=r(2081),ae=r(5748),se=r(3775),oe=r(3204),le=r(4539),ue=r(6770),ce=r(8986),de=r(4153),he=r(1094),fe=he.hasCycle,_e=he.stableCopy,pe=r(489);e.exports={Environment:w,Network:_,Observable:p,QueryResponseCache:v,RecordSource:K,Record:M,ReplaySubject:de,Store:U,areEqualSelectors:V.areEqualSelectors,createFragmentSpecResolver:k,createNormalizationSelector:V.createNormalizationSelector,createOperationDescriptor:x.createOperationDescriptor,createReaderSelector:V.createReaderSelector,createRequestDescriptor:x.createRequestDescriptor,getArgumentValues:q.getArgumentValues,getDataIDsFromFragment:V.getDataIDsFromFragment,getDataIDsFromObject:V.getDataIDsFromObject,getNode:R.getNode,getFragment:R.getFragment,getInlineDataFragment:R.getInlineDataFragment,getModuleComponentKey:q.getModuleComponentKey,getModuleOperationKey:q.getModuleOperationKey,getPaginationFragment:R.getPaginationFragment,getPluralSelector:V.getPluralSelector,getRefetchableFragment:R.getRefetchableFragment,getRequest:R.getRequest,getRequestIdentifier:ee,getSelector:V.getSelector,getSelectorsFromObject:V.getSelectorsFromObject,getSingularSelector:V.getSingularSelector,getStorageKey:q.getStorageKey,getVariablesFromFragment:V.getVariablesFromFragment,getVariablesFromObject:V.getVariablesFromObject,getVariablesFromPluralFragment:V.getVariablesFromPluralFragment,getVariablesFromSingularFragment:V.getVariablesFromSingularFragment,handlePotentialSnapshotErrors:re,graphql:R.graphql,isErrorResult:i,isValueResult:a,isFragment:R.isFragment,isInlineDataFragment:R.isInlineDataFragment,isSuspenseSentinel:O,suspenseSentinel:P,isRequest:R.isRequest,readInlineData:L,MutationTypes:f.MutationTypes,RangeOperations:f.RangeOperations,DefaultHandlerProvider:u,ConnectionHandler:s,MutationHandlers:l,VIEWER_ID:B.VIEWER_ID,VIEWER_TYPE:B.VIEWER_TYPE,applyOptimisticMutation:c,commitLocalUpdate:d,commitMutation:h,fetchQuery:g,fetchQuery_DEPRECATED:m,isRelayModernEnvironment:F,requestSubscription:z,ConnectionInterface:o,PreloadableQueryRegistry:b,RelayProfiler:ce,createPayloadFor3DField:H,RelayConcreteNode:se,RelayError:le,RelayFeatureFlags:ue,DEFAULT_HANDLE_KEY:oe.DEFAULT_HANDLE_KEY,FRAGMENTS_KEY:q.FRAGMENTS_KEY,FRAGMENT_OWNER_KEY:q.FRAGMENT_OWNER_KEY,ID_KEY:q.ID_KEY,REF_KEY:q.REF_KEY,REFS_KEY:q.REFS_KEY,ROOT_ID:q.ROOT_ID,ROOT_TYPE:q.ROOT_TYPE,TYPENAME_KEY:q.TYPENAME_KEY,deepFreeze:G,generateClientID:I,generateUniqueClientID:S,getRelayHandleKey:Z,isClientID:D,isPromise:ne,isScalarAndEqual:ie,recycleNodesInto:ae,stableCopy:_e,hasCycle:fe,getFragmentIdentifier:Q,getRefetchMetadata:$,getPaginationMetadata:W,getPaginationVariables:J,getPendingOperationsForFragment:X,getValueAtPath:te,__internal:{ResolverFragments:Y,OperationTracker:j,createRelayContext:A,getOperationVariables:N.getOperationVariables,getLocalVariables:N.getLocalVariables,fetchQuery:y.fetchQuery,fetchQueryDeduped:y.fetchQueryDeduped,getPromiseForActiveRequest:y.getPromiseForActiveRequest,getObservableForActiveRequest:y.getObservableForActiveRequest,normalizeResponse:C,withProvidedVariables:pe}}},5568:(e,t,r)=>{var n=r(5056),i="INTERNAL_ACTOR_IDENTIFIER_DO_NOT_USE";e.exports={assertInternalActorIdentifier:function(e){e!==i&&n(!1)},getActorIdentifier:function(e){return e},getDefaultActorIdentifier:function(){throw new Error("Not Implemented")},INTERNAL_ACTOR_IDENTIFIER_DO_NOT_USE:i}},9336:(e,t,r)=>{var n="actor_key",i=r(5568).getActorIdentifier;e.exports={ACTOR_IDENTIFIER_FIELD_NAME:n,getActorIdentifierFromPayload:function(e){if(null!=e&&"object"==typeof e&&"string"==typeof e[n])return i(e[n])}}},6626:(e,t,r)=>{var n=(0,r(5275).default)(r(5765)),i=r(9381),a=(r(4446),Object.freeze({RANGE_ADD:"RANGE_ADD",RANGE_DELETE:"RANGE_DELETE",NODE_DELETE:"NODE_DELETE"})),s=Object.freeze({APPEND:"append",PREPEND:"prepend"});function o(e){return e.fragment.selections&&e.fragment.selections.length>0&&"LinkedField"===e.fragment.selections[0].kind?e.fragment.selections[0].name:null}e.exports={MutationTypes:a,RangeOperations:s,convert:function(e,t,r,a){var s=r?[r]:[],l=a?[a]:[];return e.forEach((function(e){switch(e.type){case"NODE_DELETE":var r=function(e,t){var r=e.deletedIDFieldName,n=o(t);return n?function(e,t){var i=e.getRootField(n);if(i){var a=i.getValue(r);(Array.isArray(a)?a:[a]).forEach((function(t){t&&"string"==typeof t&&e.delete(t)}))}}:null}(e,t);r&&(s.push(r),l.push(r));break;case"RANGE_ADD":var a=function(e,t){var r=e.parentID,a=e.connectionInfo,s=e.edgeName;if(!r)return null;var l=o(t);return a&&l?function(e,t){var o=e.get(r);if(o){var u=e.getRootField(l);if(u){var c,d=u.getLinkedRecord(s),h=(0,n.default)(a);try{for(h.s();!(c=h.n()).done;){var f=c.value;if(d){var _=i.getConnection(o,f.key,f.filters);if(_){var p=i.buildConnectionEdge(e,_,d);if(p)switch(f.rangeBehavior){case"append":i.insertEdgeAfter(_,p);break;case"prepend":i.insertEdgeBefore(_,p)}}}}}catch(e){h.e(e)}finally{h.f()}}}}:null}(e,t);a&&(s.push(a),l.push(a));break;case"RANGE_DELETE":var u=function(e,t){var r=e.parentID,a=e.connectionKeys,s=e.pathToConnection,l=e.deletedIDFieldName;if(!r)return null;var u=o(t);return u?function(e,t){if(t){var o=[],c=t[u];if(c&&Array.isArray(l)){var d,h=(0,n.default)(l);try{for(h.s();!(d=h.n()).done;){var f=d.value;c&&"object"==typeof c&&(c=c[f])}}catch(e){h.e(e)}finally{h.f()}Array.isArray(c)?c.forEach((function(e){e&&e.id&&"object"==typeof e&&"string"==typeof e.id&&o.push(e.id)})):c&&c.id&&"string"==typeof c.id&&o.push(c.id)}else c&&"string"==typeof l&&"object"==typeof c&&("string"==typeof(c=c[l])?o.push(c):Array.isArray(c)&&c.forEach((function(e){"string"==typeof e&&o.push(e)})));!function(e,t,r,a,s){var o=a.get(e);if(o&&!(r.length<2)){for(var l=o,u=1;u<r.length-1;u++)l&&(l=l.getLinkedRecord(r[u]));if(t&&l){var c,d=(0,n.default)(t);try{var h=function(){var e=c.value,t=i.getConnection(l,e.key,e.filters);t&&s.forEach((function(e){i.deleteNode(t,e)}))};for(d.s();!(c=d.n()).done;)h()}catch(e){d.e(e)}finally{d.f()}}}}(r,a,s,e,o)}}:null}(e,t);u&&(s.push(u),l.push(u))}})),{optimisticUpdater:function(e,t){s.forEach((function(r){r(e,t)}))},updater:function(e,t){l.forEach((function(r){r(e,t)}))}}}}},7494:(e,t,r)=>{var n=r(2997).generateClientID,i=r(5165).getStableStorageKey,a=r(5056),s=function(){function e(e,t,r){this._dataID=r,this._mutator=t,this._source=e}var t=e.prototype;return t.copyFieldsFrom=function(e){this._mutator.copyFields(e.getDataID(),this._dataID)},t.getDataID=function(){return this._dataID},t.getType=function(){var e=this._mutator.getType(this._dataID);return null==e&&a(!1),e},t.getValue=function(e,t){var r=i(e,t);return this._mutator.getValue(this._dataID,r)},t.setValue=function(e,t,r,n){return o(e)||a(!1),this.setValue__UNSAFE(e,t,r,n)},t.getErrors=function(e,t){var r=i(e,t);return this._mutator.getErrors(this._dataID,r)},t.setValue__UNSAFE=function(e,t,r,n){var a=i(t,r);return this._mutator.setValue(this._dataID,a,e),null!=n&&(0===n.length?this._mutator.setErrors(this._dataID,a):this._mutator.setErrors(this._dataID,a,n)),this},t.getLinkedRecord=function(e,t){var r=i(e,t),n=this._mutator.getLinkedRecordID(this._dataID,r);return null!=n?this._source.get(n):n},t.setLinkedRecord=function(t,r,n){t instanceof e||a(!1);var s=i(r,n),o=t.getDataID();return this._mutator.setLinkedRecordID(this._dataID,s,o),this},t.getOrCreateLinkedRecord=function(e,t,r){var a=this.getLinkedRecord(e,r);if(!a){var s,o=i(e,r),l=n(this.getDataID(),o);a=null!==(s=this._source.get(l))&&void 0!==s?s:this._source.create(l,t),this.setLinkedRecord(a,e,r)}return a},t.getLinkedRecords=function(e,t){var r=this,n=i(e,t),a=this._mutator.getLinkedRecordIDs(this._dataID,n);return null==a?a:a.map((function(e){return null!=e?r._source.get(e):e}))},t.setLinkedRecords=function(e,t,r){Array.isArray(e)||a(!1);var n=i(t,r),s=e.map((function(e){return e&&e.getDataID()}));return this._mutator.setLinkedRecordIDs(this._dataID,n,s),this},t.invalidateRecord=function(){this._source.markIDForInvalidation(this._dataID)},e}();function o(e){return null==e||"object"!=typeof e||Array.isArray(e)&&e.every(o)}e.exports=s},4503:(e,t,r)=>{var n=r(7105),i=r(7148).EXISTENT,a=r(5056),s=function(){function e(e,t){this.__sources=[t,e],this._base=e,this._sink=t}var t=e.prototype;return t.unstable_getRawRecordWithChanges=function(e){var t=this._base.get(e),r=this._sink.get(e);return void 0===r?null==t?t:n.clone(t):null===r?null:null!=t?n.update(t,r):n.clone(r)},t._getSinkRecord=function(e){var t=this._sink.get(e);if(!t){var r=this._base.get(e);r||a(!1),t=n.create(e,n.getType(r)),this._sink.set(e,t)}return t},t.copyFields=function(e,t){var r=this._sink.get(e),i=this._base.get(e);r||i||a(!1);var s=this._getSinkRecord(t);i&&n.copyFields(i,s),r&&n.copyFields(r,s)},t.copyFieldsFromRecord=function(e,t){var r=this._getSinkRecord(t);n.copyFields(e,r)},t.create=function(e,t){(this._base.getStatus(e)===i||this._sink.getStatus(e)===i)&&a(!1);var r=n.create(e,t);this._sink.set(e,r)},t.delete=function(e){this._sink.delete(e)},t.getStatus=function(e){return this._sink.has(e)?this._sink.getStatus(e):this._base.getStatus(e)},t.getType=function(e){for(var t=0;t<this.__sources.length;t++){var r=this.__sources[t].get(e);if(r)return n.getType(r);if(null===r)return null}},t.getValue=function(e,t){for(var r=0;r<this.__sources.length;r++){var i=this.__sources[r].get(e);if(i){var a=n.getValue(i,t);if(void 0!==a)return a}else if(null===i)return null}},t.setValue=function(e,t,r){var i=this._getSinkRecord(e);n.setValue(i,t,r)},t.getErrors=function(e,t){for(var r=0;r<this.__sources.length;r++){var i=this.__sources[r].get(e);if(i){var a=n.getErrors(i,t);if(void 0!==a)return a}else if(null===i)return null}},t.setErrors=function(e,t,r){var i=this._getSinkRecord(e);n.setErrors(i,t,r)},t.getLinkedRecordID=function(e,t){for(var r=0;r<this.__sources.length;r++){var i=this.__sources[r].get(e);if(i){var a=n.getLinkedRecordID(i,t);if(void 0!==a)return a}else if(null===i)return null}},t.setLinkedRecordID=function(e,t,r){var i=this._getSinkRecord(e);n.setLinkedRecordID(i,t,r)},t.getLinkedRecordIDs=function(e,t){for(var r=0;r<this.__sources.length;r++){var i=this.__sources[r].get(e);if(i){var a=n.getLinkedRecordIDs(i,t);if(void 0!==a)return a}else if(null===i)return null}},t.setLinkedRecordIDs=function(e,t,r){var i=this._getSinkRecord(e);n.setLinkedRecordIDs(i,t,r)},e}();e.exports=s},3838:(e,t,r)=>{var n=r(7105),i=r(7148),a=i.EXISTENT,s=i.NONEXISTENT,o=r(5165),l=o.ROOT_ID,u=o.ROOT_TYPE,c=r(7122).readUpdatableFragment,d=r(2402).readUpdatableQuery,h=r(7494),f=r(5056),_=function(){function e(e,t,r,n){this.__mutator=e,this._handlerProvider=r||null,this._proxies={},this._getDataID=t,this._invalidatedStore=!1,this._idsMarkedForInvalidation=new Set,this._missingFieldHandlers=n}var t=e.prototype;return t.publishSource=function(e,t){var r=this;e.getRecordIDs().forEach((function(t){var i=e.getStatus(t);if(i===a){var o=e.get(t);o&&(r.__mutator.getStatus(t)!==a&&r.create(t,n.getType(o)),r.__mutator.copyFieldsFromRecord(o,t))}else i===s&&r.delete(t)})),t&&t.length&&t.forEach((function(e){var t=r._handlerProvider&&r._handlerProvider(e.handle);t||f(!1),t.update(r,e)}))},t.create=function(e,t){this.__mutator.create(e,t),delete this._proxies[e];var r=this.get(e);return r||f(!1),r},t.delete=function(e){e===l&&f(!1),delete this._proxies[e],this.__mutator.delete(e)},t.get=function(e){if(!this._proxies.hasOwnProperty(e)){var t=this.__mutator.getStatus(e);this._proxies[e]=t===a?new h(this,this.__mutator,e):t===s?null:void 0}return this._proxies[e]},t.getRoot=function(){var e=this.get(l);return e||(e=this.create(l,u)),e&&e.getType()===u||f(!1),e},t.invalidateStore=function(){this._invalidatedStore=!0},t.isStoreMarkedForInvalidation=function(){return this._invalidatedStore},t.markIDForInvalidation=function(e){this._idsMarkedForInvalidation.add(e)},t.getIDsMarkedForInvalidation=function(){return this._idsMarkedForInvalidation},t.readUpdatableQuery=function(e,t){return d(e,t,this,this._missingFieldHandlers)},t.readUpdatableFragment=function(e,t){return c(e,t,this,this._missingFieldHandlers)},e}();e.exports=_},6959:(e,t,r)=>{var n=r(5165),i=n.ROOT_TYPE,a=n.getStorageKey,s=r(7122).readUpdatableFragment,o=r(2402).readUpdatableQuery,l=r(5056),u=function(){function e(e,t,r,n){this.__mutator=e,this.__recordSource=t,this._readSelector=r,this._missingFieldHandlers=n}var t=e.prototype;return t.create=function(e,t){return this.__recordSource.create(e,t)},t.delete=function(e){this.__recordSource.delete(e)},t.get=function(e){return this.__recordSource.get(e)},t.getRoot=function(){return this.__recordSource.getRoot()},t.getOperationRoot=function(){var e=this.__recordSource.get(this._readSelector.dataID);return e||(e=this.__recordSource.create(this._readSelector.dataID,i)),e},t._getRootField=function(e,t,r){var n=e.node.selections.find((function(e){return"LinkedField"===e.kind&&e.name===t||"RequiredField"===e.kind&&e.field.name===t}));return n&&"RequiredField"===n.kind&&(n=n.field),n&&"LinkedField"===n.kind||l(!1),n.plural!==r&&l(!1),n},t.getRootField=function(e){var t=this._getRootField(this._readSelector,e,!1),r=a(t,this._readSelector.variables);return this.getOperationRoot().getLinkedRecord(r)},t.getPluralRootField=function(e){var t=this._getRootField(this._readSelector,e,!0),r=a(t,this._readSelector.variables);return this.getOperationRoot().getLinkedRecords(r)},t.invalidateStore=function(){this.__recordSource.invalidateStore()},t.readUpdatableQuery=function(e,t){return o(e,t,this,this._missingFieldHandlers)},t.readUpdatableFragment=function(e,t){return s(e,t,this,this._missingFieldHandlers)},e}();e.exports=u},4414:(e,t,r)=>{var n=r(1634).getRequest,i=r(54),a=r(7258).createOperationDescriptor,s=r(6626),o=r(5056);e.exports=function(e,t){i(e)||o(!1);var r=n(t.mutation);if("mutation"!==r.params.operationKind)throw new Error("commitMutation: Expected mutation operation");var l=t.optimisticUpdater,u=t.configs,c=t.optimisticResponse,d=t.variables,h=a(r,d);return u&&(l=s.convert(u,r,l).optimisticUpdater),e.applyMutation({operation:h,response:c,updater:l})}},5182:e=>{e.exports=function(e,t){e.commitUpdate(t)}},1908:(e,t,r)=>{var n=(0,r(5275).default)(r(642)),i=r(1634).getRequest,a=r(2997).generateUniqueClientID,s=r(54),o=r(7258).createOperationDescriptor,l=r(6626),u=(r(1740),r(5056));r(4446),e.exports=function(e,t){s(e)||u(!1);var r=i(t.mutation);if("mutation"!==r.params.operationKind)throw new Error("commitMutation: Expected mutation operation");if("Request"!==r.kind)throw new Error("commitMutation: Expected mutation to be of type request");var c=t.optimisticResponse,d=t.optimisticUpdater,h=t.updater,f=t.configs,_=t.cacheConfig,p=t.onError,v=t.onUnsubscribe,g=t.variables,m=t.uploadables,y=o(r,g,_,a());if("function"==typeof c&&(c=c()),f){var R=l.convert(f,r,d,h);d=R.optimisticUpdater,h=R.updater}var b=[];return{dispose:e.executeMutation({operation:y,optimisticResponse:c,optimisticUpdater:d,updater:h,uploadables:m}).subscribe({next:function(e){var r;Array.isArray(e)?e.forEach((function(e){e.errors&&b.push.apply(b,(0,n.default)(e.errors))})):e.errors&&b.push.apply(b,(0,n.default)(e.errors)),null===(r=t.onNext)||void 0===r||r.call(t)},complete:function(){var r=t.onCompleted;r&&r(e.lookup(y.fragment).data,0!==b.length?b:null)},error:p,unsubscribe:v}).unsubscribe}}},9176:(e,t,r)=>{var n=(0,r(5275).default)(r(5765)),i=r(5165).getArgumentValues,a=["id","__id","__typename","js"];function s(e,t,r,d,h,f){var _,p,v=(0,n.default)(d);try{var g=function(){var d=p.value;switch(d.kind){case"LinkedField":d.plural?Object.defineProperty(e,null!==(m=d.alias)&&void 0!==m?m:d.name,{get:u(d,r,t,h,f),set:o(d,r,t,h)}):Object.defineProperty(e,null!==(y=d.alias)&&void 0!==y?y:d.name,{get:c(d,r,t,h,f),set:l(d,r,t,h)});break;case"ScalarField":var v=null!==(_=d.alias)&&void 0!==_?_:d.name;Object.defineProperty(e,v,{get:function(){var e,a=i(null!==(e=d.args)&&void 0!==e?e:[],r),s=t.getValue(d.name,a);return null==s&&(s=function(e,t,r,i,a){var s,o=(0,n.default)(a);try{for(o.s();!(s=o.n()).done;){var l=s.value;if("scalar"===l.kind){var u=l.handle(e,r,t,i);if(void 0!==u)return u}}}catch(e){o.e(e)}finally{o.f()}}(d,a,t,h,f)),s},set:a.includes(d.name)?void 0:function(e){var n,a=i(null!==(n=d.args)&&void 0!==n?n:[],r);t.setValue__UNSAFE(e,d.name,a)}});break;case"InlineFragment":t.getType()===d.type&&s(e,t,r,d.selections,h,f);break;case"ClientExtension":s(e,t,r,d.selections,h,f);break;case"FragmentSpread":break;case"Condition":case"ActorChange":case"InlineDataFragmentSpread":case"AliasedInlineFragmentSpread":case"ClientEdgeToClientObject":case"ClientEdgeToServerObject":case"Defer":case"ModuleImport":case"RelayLiveResolver":case"RequiredField":case"CatchField":case"Stream":case"RelayResolver":throw new Error("Encountered an unexpected ReaderSelection variant in RelayRecordSourceProxy. This indicates a bug in Relay.");default:throw d.kind,new Error("Encountered an unexpected ReaderSelection variant in RelayRecordSourceProxy. This indicates a bug in Relay.")}};for(v.s();!(p=v.n()).done;){var m,y;g()}}catch(e){v.e(e)}finally{v.f()}}function o(e,t,r,n){return function(a){var s,o=i(null!==(s=e.args)&&void 0!==s?s:[],t);if(null==a)throw new Error("Do not assign null to plural linked fields; assign an empty array instead.");var l=a.map((function(e){if(null==e)throw new Error("When assigning an array of items, none of the items should be null or undefined.");var t=e.__id;if(null==t)throw new Error("The __id field must be present on each item passed to the setter. This indicates a bug in Relay.");var r=n.get(t);if(null==r)throw new Error("Did not find item with data id ".concat(t," in the store."));return r}));r.setLinkedRecords(l,e.name,o)}}function l(e,t,r,n){return function(a){var s,o=i(null!==(s=e.args)&&void 0!==s?s:[],t);if(null==a)r.setValue(a,e.name,o);else{var l=a.__id;if(null==l)throw new Error("The __id field must be present on the argument. This indicates a bug in Relay.");var u=n.get(l);if(null==u)throw new Error("Did not find item with data id ".concat(l," in the store."));r.setLinkedRecord(u,e.name,o)}}}function u(e,t,r,a,o){return function(){var l,u=i(null!==(l=e.args)&&void 0!==l?l:[],t),c=r.getLinkedRecords(e.name,u);return void 0===c&&(c=function(e,t,r,i,a){var s,o=(0,n.default)(a);try{for(o.s();!(s=o.n()).done;){var l=s.value;if("pluralLinked"===l.kind){var u=l.handle(e,r,t,i);if(null!=u)return u.map((function(e){if(null!=e)return i.get(e)}))}}}catch(e){o.e(e)}finally{o.f()}}(e,u,r,a,o)),null!=c?c.map((function(r){if(null!=r){var n={};return s(n,r,t,e.selections,a,o),n}return r})):c}}function c(e,t,r,a,o){return function(){var l,u=i(null!==(l=e.args)&&void 0!==l?l:[],t),c=r.getLinkedRecord(e.name,u);if(void 0===c&&(c=function(e,t,r,i,a){var s,o=(0,n.default)(a);try{for(o.s();!(s=o.n()).done;){var l=s.value;if("linked"===l.kind){var u=l.handle(e,r,t,i);if(null!=u)return i.get(u)}}}catch(e){o.e(e)}finally{o.f()}}(e,u,r,a,o)),null!=c){var d={};return s(d,c,t,e.selections,a,o),d}return c}}e.exports={createUpdatableProxy:function(e,t,r,n,i){var a={};return s(a,e,t,r,n,i),a}}},7122:(e,t,r)=>{var n=r(1634).getFragment,i=r(6256).getVariablesFromFragment,a=r(5165).ID_KEY,s=r(9176).createUpdatableProxy,o=r(5056);e.exports={readUpdatableFragment:function(e,t,r,l){var u=n(e),c=i(u,t),d=t[a],h=r.get(d);return null==h&&o(!1),{updatableData:s(h,c,u.selections,r,l)}}}},2402:(e,t,r)=>{var n=r(1634).getUpdatableQuery,i=r(9176).createUpdatableProxy;e.exports={readUpdatableQuery:function(e,t,r,a){var s=n(e);return{updatableData:i(r.getRoot(),t,s.fragment.selections,r,a)}}}},1740:(e,t,r)=>{(0,r(5275).default)(r(6175)),r(4446),Object.prototype.hasOwnProperty,e.exports=function(){}},5320:(e,t,r)=>{var n=r(1060);e.exports={convertFetch:function(e){return function(t,r,i,a,s){var o=e(t,r,i,a,s);return o instanceof Error?n.create((function(e){return e.error(o)})):n.from(o)}}}},7983:(e,t,r)=>{var n=r(489),i=r(5320).convertFetch,a=r(5056);e.exports={create:function(e,t){var r=i(e);return{execute:function(e,i,s,o,l){var u=n(i,e.providedVariables);if("subscription"===e.operationKind)return t||a(!1),o&&a(!1),t(e,u,s);var c=s.poll;return null!=c?(o&&a(!1),r(e,u,{force:!0}).poll(c)):r(e,u,s,o,l)}}}}},1060:(e,t,r)=>{var n=r(1571),i=function(e,t){},a=function(){function e(e){this._source=e}e.create=function(t){return new e(t)},e.onUnhandledError=function(e){i=e},e.from=function(e){return function(e){return"object"==typeof e&&null!==e&&"function"==typeof e.subscribe}(e)?s(e):n(e)?o(e):l(e)};var t=e.prototype;return t.catch=function(t){var r=this;return e.create((function(e){var n;return r.subscribe({start:function(e){n=e},next:e.next,complete:e.complete,error:function(r){try{t(r).subscribe({start:function(e){n=e},next:e.next,complete:e.complete,error:e.error})}catch(t){e.error(t,!0)}}}),function(){return n.unsubscribe()}}))},t.concat=function(t){var r=this;return e.create((function(e){var n;return r.subscribe({start:function(e){n=e},next:e.next,error:e.error,complete:function(){n=t.subscribe(e)}}),function(){n&&n.unsubscribe()}}))},t.do=function(t){var r=this;return e.create((function(e){var n=function(r){return function(){try{t[r]&&t[r].apply(t,arguments)}catch(e){i(e,!0)}e[r]&&e[r].apply(e,arguments)}};return r.subscribe({start:n("start"),next:n("next"),error:n("error"),complete:n("complete"),unsubscribe:n("unsubscribe")})}))},t.finally=function(t){var r=this;return e.create((function(e){var n=r.subscribe(e);return function(){n.unsubscribe(),t()}}))},t.ifEmpty=function(t){var r=this;return e.create((function(e){var n,i=!1;return n=r.subscribe({next:function(t){i=!0,e.next(t)},error:e.error,complete:function(){i?e.complete():n=t.subscribe(e)}}),function(){n&&n.unsubscribe()}}))},t.subscribe=function(e){return function(e,t){var r,n=!1,a=function(e){return Object.defineProperty(e,"closed",{get:function(){return n}})};function s(){if(r){if(r.unsubscribe)r.unsubscribe();else try{r()}catch(e){i(e,!0)}r=void 0}}var o=a({unsubscribe:function(){if(!n){n=!0;try{t.unsubscribe&&t.unsubscribe(o)}catch(e){i(e,!0)}finally{s()}}}});try{t.start&&t.start(o)}catch(e){i(e,!0)}if(n)return o;var l=a({next:function(e){if(!n&&t.next)try{t.next(e)}catch(e){i(e,!0)}},error:function(e,r){if(n||!t.error)n=!0,i(e,r||!1),s();else{n=!0;try{t.error(e)}catch(e){i(e,!0)}finally{s()}}},complete:function(){if(!n){n=!0;try{t.complete&&t.complete()}catch(e){i(e,!0)}finally{s()}}}});try{r=e(l)}catch(e){l.error(e,!0)}return n&&s(),o}(this._source,e)},t.map=function(t){var r=this;return e.create((function(e){var n=r.subscribe({complete:e.complete,error:e.error,next:function(r){try{var n=t(r);e.next(n)}catch(t){e.error(t,!0)}}});return function(){n.unsubscribe()}}))},t.mergeMap=function(t){var r=this;return e.create((function(n){var i=[];function a(e){this._sub=e,i.push(e)}function s(){i.splice(i.indexOf(this._sub),1),0===i.length&&n.complete()}return r.subscribe({start:a,next:function(r){try{n.closed||e.from(t(r)).subscribe({start:a,next:n.next,error:n.error,complete:s})}catch(e){n.error(e,!0)}},error:n.error,complete:s}),function(){i.forEach((function(e){return e.unsubscribe()})),i.length=0}}))},t.poll=function(t){var r=this;return e.create((function(e){var n,i;return function a(){n=r.subscribe({next:e.next,error:e.error,complete:function(){i=setTimeout(a,t)}})}(),function(){clearTimeout(i),n.unsubscribe()}}))},t.toPromise=function(){var e=this;return new Promise((function(t,r){var n=!1;e.subscribe({next:function(e){n||(n=!0,t(e))},error:r,complete:t})}))},e}();function s(e){return e instanceof a?e:a.create((function(t){return e.subscribe(t)}))}function o(e){return a.create((function(t){e.then((function(e){t.next(e),t.complete()}),t.error)}))}function l(e){return a.create((function(t){t.next(e),t.complete()}))}e.exports=a},534:(e,t,r)=>{var n=(0,r(5275).default)(r(6175)),i=r(1094).stableCopy,a=r(5056),s=function(){function e(e){var t=e.size,r=e.ttl;t>0||a(!1),r>0||a(!1),this._responses=new Map,this._size=t,this._ttl=r}var t=e.prototype;return t.clear=function(){this._responses.clear()},t.get=function(e,t){var r=this,i=o(e,t);this._responses.forEach((function(e,t){e.fetchTime+r._ttl>=Date.now()||r._responses.delete(t)}));var a=this._responses.get(i);return null==a?null:Array.isArray(a.payload)?a.payload.map((function(e){return(0,n.default)((0,n.default)({},e),{},{extensions:(0,n.default)((0,n.default)({},e.extensions),{},{cacheTimestamp:a.fetchTime})})})):(0,n.default)((0,n.default)({},a.payload),{},{extensions:(0,n.default)((0,n.default)({},a.payload.extensions),{},{cacheTimestamp:a.fetchTime})})},t.set=function(e,t,r){var n=Date.now(),i=o(e,t);if(this._responses.delete(i),this._responses.set(i,{fetchTime:n,payload:r}),this._responses.size>this._size){var a=this._responses.keys().next();a.done||this._responses.delete(a.value)}},e}();function o(e,t){return JSON.stringify(i({queryID:e,variables:t}))}e.exports=s},1373:(e,t,r)=>{var n=r(1264);e.exports=function(e,t){return{execute:function(r,i,a,s){var o=n(),l={start:function(t){e.__log({name:"network.start",networkRequestId:o,params:r,variables:i,cacheConfig:a})},next:function(t){e.__log({name:"network.next",networkRequestId:o,response:t})},error:function(t){e.__log({name:"network.error",networkRequestId:o,error:t})},complete:function(){e.__log({name:"network.complete",networkRequestId:o})},unsubscribe:function(){e.__log({name:"network.unsubscribe",networkRequestId:o})}};return t.execute(r,i,a,s,(function(t){e.__log({name:"network.info",networkRequestId:o,info:t})})).do(l)}}}},1634:(e,t,r)=>{var n=r(3775),i=r(5056);function a(e){var t=e;return"function"==typeof t?t=t():t.default&&(t=t.default),t}function s(e){var t=a(e);return"object"==typeof t&&null!==t&&t.kind===n.FRAGMENT}function o(e){var t=a(e);return"object"==typeof t&&null!==t&&t.kind===n.REQUEST}function l(e){var t=a(e);return"object"==typeof t&&null!==t&&t.kind===n.UPDATABLE_QUERY}function u(e){var t=a(e);return"object"==typeof t&&null!==t&&t.kind===n.INLINE_DATA_FRAGMENT}function c(e){var t=a(e);return s(t)||i(!1),t}r(4446),e.exports={getFragment:c,getNode:a,getPaginationFragment:function(e){var t,r=c(e),n=null===(t=r.metadata)||void 0===t?void 0:t.refetch,i=null==n?void 0:n.connection;return null===n||"object"!=typeof n||null===i||"object"!=typeof i?null:r},getRefetchableFragment:function(e){var t,r=c(e),n=null===(t=r.metadata)||void 0===t?void 0:t.refetch;return null===n||"object"!=typeof n?null:r},getRequest:function(e){var t=a(e);return o(t)||i(!1),t},getUpdatableQuery:function(e){var t=a(e);return l(t)||i(!1),t},getInlineDataFragment:function(e){var t=a(e);return u(t)||i(!1),t},graphql:function(e){i(!1)},isFragment:s,isRequest:o,isUpdatableQuery:l,isInlineDataFragment:u}},4530:e=>{var t=new(function(){function e(){this._preloadableQueries=new Map,this._callbacks=new Map}var t=e.prototype;return t.set=function(e,t){this._preloadableQueries.set(e,t);var r=this._callbacks.get(e);null!=r&&r.forEach((function(e){try{e(t)}catch(e){setTimeout((function(){throw e}),0)}}))},t.get=function(e){return this._preloadableQueries.get(e)},t.onLoad=function(e,t){var r,n=null!==(r=this._callbacks.get(e))&&void 0!==r?r:new Set;return n.add(t),this._callbacks.set(e,n),{dispose:function(){n.delete(t)}}},t.clear=function(){this._preloadableQueries.clear()},e}());e.exports=t},1273:(e,t,r)=>{var n=(0,r(5275).default)(r(6175)),i=r(1060),a=r(7258).createOperationDescriptor,s=r(9222).handlePotentialSnapshotErrors,o=r(7367),l=r(1634).getRequest,u=r(5056);function c(e,t){return o.fetchQuery(e,t).map((function(){return e.lookup(t.fragment)}))}e.exports=function(e,t,r,o){var d,h=l(t);"query"!==h.params.operationKind&&u(!1);var f=(0,n.default)({force:!0},null==o?void 0:o.networkCacheConfig),_=a(h,r,f),p=null!==(d=null==o?void 0:o.fetchPolicy)&&void 0!==d?d:"network-only";function v(t){return s(e,t.errorResponseFields),t.data}switch(p){case"network-only":return c(e,_).map(v);case"store-or-network":return"available"===e.check(_).status?i.from(e.lookup(_.fragment)).map(v):c(e,_).map(v);default:throw new Error("fetchQuery: Invalid fetchPolicy "+p)}}},7367:(e,t,r)=>{var n=r(1060),i=r(4153),a=r(5056),s="function"==typeof WeakMap?new WeakMap:new Map;function o(e,t,r){return n.create((function(s){var o=u(e),l=o.get(t);return l||r().finally((function(){return o.delete(t)})).subscribe({start:function(e){l={identifier:t,subject:new i,subjectForInFlightStatus:new i,subscription:e,promise:null},o.set(t,l)},next:function(e){var r=c(o,t);r.subject.next(e),r.subjectForInFlightStatus.next(e)},error:function(e){var r=c(o,t);r.subject.error(e),r.subjectForInFlightStatus.error(e)},complete:function(){var e=c(o,t);e.subject.complete(),e.subjectForInFlightStatus.complete()},unsubscribe:function(e){var r=c(o,t);r.subject.unsubscribe(),r.subjectForInFlightStatus.unsubscribe()}}),null==l&&a(!1),function(e,t){return n.create((function(r){var n=t.subject.subscribe(r);return function(){n.unsubscribe();var r=e.get(t.identifier);if(r){var i=r.subscription;null!=i&&0===r.subject.getObserverCount()&&(i.unsubscribe(),e.delete(t.identifier))}}}))}(o,l).subscribe(s)}))}function l(e,t,r){return n.create((function(t){var n=r.subjectForInFlightStatus.subscribe({error:t.error,next:function(n){e.isRequestActive(r.identifier)?t.next():t.complete()},complete:t.complete,unsubscribe:t.complete});return function(){n.unsubscribe()}}))}function u(e){var t=s.get(e);if(null!=t)return t;var r=new Map;return s.set(e,r),r}function c(e,t){var r=e.get(t);return null==r&&a(!1),r}e.exports={fetchQuery:function(e,t){return o(e,t.request.identifier,(function(){return e.execute({operation:t})}))},fetchQueryDeduped:o,getPromiseForActiveRequest:function(e,t){var r=u(e).get(t.identifier);return r&&e.isRequestActive(r.identifier)?new Promise((function(t,n){var i=!1;l(e,0,r).subscribe({complete:t,error:n,next:function(e){i&&t(e)}}),i=!0})):null},getObservableForActiveRequest:function(e,t){var r=u(e).get(t.identifier);return r&&e.isRequestActive(r.identifier)?l(e,0,r):null}}},5622:(e,t,r)=>{var n=r(7258).createOperationDescriptor,i=r(1634).getRequest;e.exports=function(e,t,r,a){var s=i(t);if("query"!==s.params.operationKind)throw new Error("fetchQuery: Expected query operation");var o=n(s,r,a);return e.execute({operation:o}).map((function(){return e.lookup(o.fragment).data})).toPromise()}},2997:(e,t,r)=>{var n=r(6770),i=r(6982).intern,a="client:",s=0;e.exports={generateClientID:function(e,t,r){var s=(n.STRING_INTERN_LEVEL<=0?e:i(e,n.MAX_DATA_ID_LENGTH))+":"+t;return null!=r&&(s+=":"+r),0!==s.indexOf(a)&&(s=a+s),s},generateClientObjectClientID:function(e,t,r){var n="".concat(a).concat(e,":").concat(t);return null!=r&&(n+=":"+r),n},generateUniqueClientID:function(){return"".concat(a,"local:").concat(s++)},isClientID:function(e){return 0===e.indexOf(a)}}},847:(e,t,r)=>{var n=(0,r(5275).default)(r(5765)),i=r(4503),a=r(3838),s=r(2881),o=r(2997).isClientID,l=r(4293),u=r(6159),c=r(129).getLocalVariables,d=r(7105),h=r(7148),f=h.EXISTENT,_=h.UNKNOWN,p=r(5165),v=r(975),g=v.TYPE_SCHEMA_TYPE,m=v.generateTypeID,y=r(5056),R=p.getModuleOperationKey,b=p.getStorageKey,E=p.getArgumentValues,I=function(){function e(e,t,r,n,i,a,s,o){this._getSourceForActor=e,this._getTargetForActor=t,this._getDataID=s,this._source=e(r),this._mutatorRecordSourceProxyCache=new Map;var l=this._getMutatorAndRecordProxyForActor(r),u=l[0],c=l[1];this._mostRecentlyInvalidatedAt=null,this._handlers=i,this._mutator=u,this._operationLoader=null!=a?a:null,this._recordSourceProxy=c,this._recordWasMissing=!1,this._variables=n,this._shouldProcessClientComponents=o}var t=e.prototype;return t._getMutatorAndRecordProxyForActor=function(e){var t=this._mutatorRecordSourceProxyCache.get(e);if(null==t){var r=this._getTargetForActor(e),n=new i(this._getSourceForActor(e),r);t=[n,new a(n,this._getDataID,void 0,this._handlers)],this._mutatorRecordSourceProxyCache.set(e,t)}return t},t.check=function(e,t){return this._assignClientAbstractTypes(e),this._traverse(e,t),!0===this._recordWasMissing?{status:"missing",mostRecentlyInvalidatedAt:this._mostRecentlyInvalidatedAt}:{status:"available",mostRecentlyInvalidatedAt:this._mostRecentlyInvalidatedAt}},t._getVariableValue=function(e){return this._variables.hasOwnProperty(e)||y(!1),this._variables[e]},t._handleMissing=function(){this._recordWasMissing=!0},t._handleMissingScalarField=function(e,t){if("id"!==e.name||null!=e.alias||!o(t)){var r,i=null!=e.args?E(e.args,this._variables):{},a=(0,n.default)(this._handlers);try{for(a.s();!(r=a.n()).done;){var s=r.value;if("scalar"===s.kind){var l=s.handle(e,this._recordSourceProxy.get(t),i,this._recordSourceProxy);if(void 0!==l)return l}}}catch(e){a.e(e)}finally{a.f()}this._handleMissing()}},t._handleMissingLinkField=function(e,t){var r,i=null!=e.args?E(e.args,this._variables):{},a=(0,n.default)(this._handlers);try{for(a.s();!(r=a.n()).done;){var s=r.value;if("linked"===s.kind){var o=s.handle(e,this._recordSourceProxy.get(t),i,this._recordSourceProxy);if(void 0!==o&&(null===o||this._mutator.getStatus(o)===f))return o}}}catch(e){a.e(e)}finally{a.f()}this._handleMissing()},t._handleMissingPluralLinkField=function(e,t){var r,i=this,a=null!=e.args?E(e.args,this._variables):{},s=(0,n.default)(this._handlers);try{for(s.s();!(r=s.n()).done;){var o=r.value;if("pluralLinked"===o.kind){var l=o.handle(e,this._recordSourceProxy.get(t),a,this._recordSourceProxy);if(null!=l){if(l.every((function(e){return null!=e&&i._mutator.getStatus(e)===f})))return l}else if(null===l)return null}}}catch(e){s.e(e)}finally{s.f()}this._handleMissing()},t._traverse=function(e,t){var r=this._mutator.getStatus(t);if(r===_&&this._handleMissing(),r===f){var n=this._source.get(t),i=d.getInvalidationEpoch(n);null!=i&&(this._mostRecentlyInvalidatedAt=null!=this._mostRecentlyInvalidatedAt?Math.max(this._mostRecentlyInvalidatedAt,i):i),this._traverseSelections(e.selections,t)}},t._traverseSelections=function(e,t){var r=this;e.forEach((function(n){switch(n.kind){case"ScalarField":r._checkScalar(n,t);break;case"LinkedField":n.plural?r._checkPluralLink(n,t):r._checkLink(n,t);break;case"ActorChange":r._checkActorChange(n.linkedField,t);break;case"Condition":Boolean(r._getVariableValue(n.condition))===n.passingValue&&r._traverseSelections(n.selections,t);break;case"InlineFragment":var i=n.abstractKey;if(null==i)r._mutator.getType(t)===n.type&&r._traverseSelections(n.selections,t);else{var a=r._mutator.getType(t);null==a&&y(!1);var s=m(a),o=r._mutator.getValue(s,i);!0===o?r._traverseSelections(n.selections,t):null==o&&r._handleMissing()}break;case"LinkedHandle":var d=l(n,e,r._variables);d.plural?r._checkPluralLink(d,t):r._checkLink(d,t);break;case"ScalarHandle":var h=u(n,e,r._variables);r._checkScalar(h,t);break;case"ModuleImport":r._checkModuleImport(n,t);break;case"Defer":case"Stream":r._traverseSelections(n.selections,t);break;case"FragmentSpread":var f=r._variables;r._variables=c(r._variables,n.fragment.argumentDefinitions,n.args),r._traverseSelections(n.fragment.selections,t),r._variables=f;break;case"ClientExtension":var _=r._recordWasMissing;r._traverseSelections(n.selections,t),r._recordWasMissing=_;break;case"TypeDiscriminator":var p=n.abstractKey,v=r._mutator.getType(t);null==v&&y(!1);var g=m(v);null==r._mutator.getValue(g,p)&&r._handleMissing();break;case"ClientComponent":if(!1===r._shouldProcessClientComponents)break;r._traverseSelections(n.fragment.selections,t);break;case"RelayResolver":case"RelayLiveResolver":r._checkResolver(n,t);break;case"ClientEdgeToClientObject":r._checkResolver(n.backingField,t);break;default:y(!1)}}))},t._checkResolver=function(e,t){e.fragment&&this._traverseSelections([e.fragment],t)},t._checkModuleImport=function(e,t){var r=this._operationLoader;null===r&&y(!1);var n=R(e.documentName),i=this._mutator.getValue(t,n);if(null!=i){var a=r.get(i);if(null!=a){var o=s(a),l=this._variables;this._variables=c(this._variables,o.argumentDefinitions,e.args),this._traverse(o,t),this._variables=l}else this._handleMissing()}else void 0===i&&this._handleMissing()},t._checkScalar=function(e,t){var r=b(e,this._variables),n=this._mutator.getValue(t,r);void 0===n&&void 0!==(n=this._handleMissingScalarField(e,t))&&this._mutator.setValue(t,r,n)},t._checkLink=function(e,t){var r=b(e,this._variables),n=this._mutator.getLinkedRecordID(t,r);void 0===n&&(null!=(n=this._handleMissingLinkField(e,t))?this._mutator.setLinkedRecordID(t,r,n):null===n&&this._mutator.setValue(t,r,null)),null!=n&&this._traverse(e,n)},t._checkPluralLink=function(e,t){var r=this,n=b(e,this._variables),i=this._mutator.getLinkedRecordIDs(t,n);void 0===i&&(null!=(i=this._handleMissingPluralLinkField(e,t))?this._mutator.setLinkedRecordIDs(t,n,i):null===i&&this._mutator.setValue(t,n,null)),i&&i.forEach((function(t){null!=t&&r._traverse(e,t)}))},t._checkActorChange=function(e,t){var r=b(e,this._variables),n=this._source.get(t),i=null!=n?d.getActorLinkedRecordID(n,r):n;if(null==i)void 0===i&&this._handleMissing();else{var a=i[0],s=i[1],o=this._source,l=this._mutator,u=this._recordSourceProxy,c=this._getMutatorAndRecordProxyForActor(a),h=c[0],f=c[1];this._source=this._getSourceForActor(a),this._mutator=h,this._recordSourceProxy=f,this._assignClientAbstractTypes(e),this._traverse(e,s),this._source=o,this._mutator=l,this._recordSourceProxy=u}},t._assignClientAbstractTypes=function(e){var t=e.clientAbstractTypes;if(null!=t)for(var r=0,i=Object.keys(t);r<i.length;r++){var a,s=i[r],o=(0,n.default)(t[s]);try{for(o.s();!(a=o.n()).done;){var l=a.value,u=m(l);null==this._source.get(u)&&this._mutator.create(u,g),null==this._mutator.getValue(u,s)&&this._mutator.setValue(u,s,!0)}}catch(e){o.e(e)}finally{o.f()}}},e}();e.exports={check:function(e,t,r,n,i,a,s,o,l){null!=l&&l({name:"store.datachecker.start",selector:n});var u=n.dataID,c=n.node,d=n.variables,h=new I(e,t,r,d,i,a,s,o).check(c,u);return null!=l&&l({name:"store.datachecker.end",selector:n}),h}}},7206:(e,t,r)=>{var n=r(5275).default,i=n(r(5765)),a=n(r(642)),s=r(1060),o=r(1264),l=r(2881),u=r(4539),c=r(6770),d=r(1094).stableCopy,h=r(6326),f=r(2997),_=f.generateClientID,p=f.generateUniqueClientID,v=r(129).getLocalVariables,g=r(7105),m=r(6256),y=m.createNormalizationSelector,R=m.createReaderSelector,b=r(6938),E=r(5165),I=E.ROOT_TYPE,S=E.TYPENAME_KEY,D=E.getStorageKey,k=r(5056);r(4446);var A=function(){function e(e){var t=this,r=e.actorIdentifier,n=e.getDataID,i=e.getPublishQueue,a=e.getStore,s=e.isClientPayload,l=e.operation,u=e.operationExecutions,d=e.operationLoader,h=e.operationTracker,f=e.optimisticConfig,_=e.scheduler,p=e.shouldProcessClientComponents,v=e.sink,g=e.source,m=e.treatMissingFieldsAsNull,y=e.updater,R=e.log,b=e.normalizeResponse;this._actorIdentifier=r,this._getDataID=n,this._treatMissingFieldsAsNull=m,this._incrementalPayloadsPending=!1,this._incrementalResults=new Map,this._log=R,this._executeId=o(),this._nextSubscriptionId=0,this._operation=l,this._operationExecutions=u,this._operationLoader=d,this._operationTracker=h,this._operationUpdateEpochs=new Map,this._optimisticUpdates=null,this._pendingModulePayloadsCount=0,this._getPublishQueue=i,this._scheduler=_,this._sink=v,this._source=new Map,this._state="started",this._getStore=a,this._subscriptions=new Map,this._updater=y,this._isClientPayload=!0===s,this._isSubscriptionOperation="subscription"===this._operation.request.node.params.operationKind,this._shouldProcessClientComponents=p,this._retainDisposables=new Map,this._seenActors=new Set,this._completeFns=[],this._normalizeResponse=b;var E=this._nextSubscriptionId++;c.PROCESS_OPTIMISTIC_UPDATE_BEFORE_SUBSCRIPTION&&null!=f&&this._processOptimisticResponse(null!=f.response?{data:f.response}:null,f.updater,!1),g.subscribe({complete:function(){return t._complete(E)},error:function(e){return t._error(e)},next:function(e){try{t._next(E,e)}catch(e){v.error(e)}},start:function(e){var r;t._start(E,e),t._log({name:"execute.start",executeId:t._executeId,params:t._operation.request.node.params,variables:t._operation.request.variables,cacheConfig:null!==(r=t._operation.request.cacheConfig)&&void 0!==r?r:{}})}}),c.PROCESS_OPTIMISTIC_UPDATE_BEFORE_SUBSCRIPTION||null==f||this._processOptimisticResponse(null!=f.response?{data:f.response}:null,f.updater,!1)}var t=e.prototype;return t.cancel=function(){var e=this;if("completed"!==this._state){this._state="completed",this._operationExecutions.delete(this._operation.request.identifier),0!==this._subscriptions.size&&(this._subscriptions.forEach((function(e){return e.unsubscribe()})),this._subscriptions.clear());var t=this._optimisticUpdates;null!==t&&(this._optimisticUpdates=null,t.forEach((function(t){return e._getPublishQueueAndSaveActor().revertUpdate(t)})),this._runPublishQueue()),this._incrementalResults.clear(),null!=this._asyncStoreUpdateDisposable&&(this._asyncStoreUpdateDisposable.dispose(),this._asyncStoreUpdateDisposable=null),this._completeFns=[],this._completeOperationTracker(),this._disposeRetainedData()}},t._updateActiveState=function(){var e;switch(this._state){case"started":case"loading_incremental":e="active";break;case"completed":e="inactive";break;case"loading_final":e=this._pendingModulePayloadsCount>0?"active":"inactive";break;default:this._state,k(!1)}this._operationExecutions.set(this._operation.request.identifier,e)},t._schedule=function(e,t){var r=this,n=this._scheduler;if(null!=n){var i=this._nextSubscriptionId++;s.create((function(r){var i=n.schedule((function(){try{e(),r.complete()}catch(e){r.error(e)}}),t);return function(){return n.cancel(i)}})).subscribe({complete:function(){return r._complete(i)},error:function(e){return r._error(e)},start:function(e){return r._start(i,e)}})}else e()},t._complete=function(e){this._subscriptions.delete(e),0===this._subscriptions.size&&(this.cancel(),this._sink.complete(),this._log({name:"execute.complete",executeId:this._executeId}))},t._error=function(e){this.cancel(),this._sink.error(e),this._log({name:"execute.error",executeId:this._executeId,error:e})},t._start=function(e,t){this._subscriptions.set(e,t),this._updateActiveState()},t._next=function(e,t){var r=this,n="loading_incremental"===this._state?"low":"default";this._schedule((function(){r._log({name:"execute.next.start",executeId:r._executeId,response:t,operation:r._operation}),r._handleNext(t),r._maybeCompleteSubscriptionOperationTracking(),r._log({name:"execute.next.end",executeId:r._executeId,response:t,operation:r._operation})}),n)},t._handleErrorResponse=function(e){var t=this,r=[];return e.forEach((function(e){if(null!==e.data||null==e.extensions||e.hasOwnProperty("errors")){if(null==e.data){var n=e.hasOwnProperty("errors")&&null!=e.errors?e.errors:null,i=n?n.map((function(e){return e.message})).join("\n"):"(No errors)",a=u.create("RelayNetwork","No data returned for operation `"+t._operation.request.node.params.name+"`, got error(s):\n"+i+"\n\nSee the error `source` property for more information.");throw a.source={errors:n,operation:t._operation.request.node,variables:t._operation.request.variables},a.stack,a}var s=e;r.push(s)}})),r},t._handleOptimisticResponses=function(e){var t;if(e.length>1)return e.some((function(e){var t;return!0===(null===(t=e.extensions)||void 0===t?void 0:t.isOptimistic)}))&&k(!1),!1;var r=e[0],n=!0===(null===(t=r.extensions)||void 0===t?void 0:t.isOptimistic);return n&&"started"!==this._state&&k(!1),!!n&&(this._processOptimisticResponse(r,null,this._treatMissingFieldsAsNull),this._sink.next(r),!0)},t._handleNext=function(e){if("completed"!==this._state){this._seenActors.clear();var t=Array.isArray(e)?e:[e],r=this._handleErrorResponse(t);if(0===r.length)return t.some((function(e){var t;return!0===(null===(t=e.extensions)||void 0===t?void 0:t.is_final)}))&&(this._state="loading_final",this._updateActiveState(),this._incrementalPayloadsPending=!1),void this._sink.next(e);if(!this._handleOptimisticResponses(r)){var n=function(e){var t=[],r=[];return e.forEach((function(e){if(null!=e.path||null!=e.label){var n=e.label,i=e.path;null!=n&&null!=i||k(!1),r.push({label:n,path:i,response:e})}else t.push(e)})),[t,r]}(r),i=n[0],a=n[1],s=i.length>0;if(s){if(this._isSubscriptionOperation){var o=p();this._operation={request:this._operation.request,fragment:R(this._operation.fragment.node,o,this._operation.fragment.variables,this._operation.fragment.owner),root:y(this._operation.root.node,o,this._operation.root.variables)}}var l=this._processResponses(i);this._processPayloadFollowups(l)}if(a.length>0){var u=this._processIncrementalResponses(a);this._processPayloadFollowups(u)}this._isSubscriptionOperation&&(null==r[0].extensions?r[0].extensions={__relay_subscription_root_id:this._operation.fragment.dataID}:r[0].extensions.__relay_subscription_root_id=this._operation.fragment.dataID);var c=this._runPublishQueue(s?this._operation:void 0);s&&this._incrementalPayloadsPending&&this._retainData(),this._updateOperationTracker(c),this._sink.next(e)}}},t._processOptimisticResponse=function(e,t,r){var n=this;if(null!==this._optimisticUpdates&&k(!1),null!=e||null!=t){var i=[];if(e){var a=this._normalizeResponse(e,this._operation.root,I,{actorIdentifier:this._actorIdentifier,getDataID:this._getDataID,path:[],shouldProcessClientComponents:this._shouldProcessClientComponents,treatMissingFieldsAsNull:r});F(a),i.push({operation:this._operation,payload:a,updater:t}),this._processOptimisticFollowups(a,i)}else t&&i.push({operation:this._operation,payload:{errors:null,fieldPayloads:null,incrementalPlaceholders:null,followupPayloads:null,source:b.create(),isFinal:!1},updater:t});this._optimisticUpdates=i,i.forEach((function(e){return n._getPublishQueueAndSaveActor().applyUpdate(e)}));var s=this._runPublishQueue();c.ENABLE_OPERATION_TRACKER_OPTIMISTIC_UPDATES&&this._updateOperationTracker(s)}},t._processOptimisticFollowups=function(e,t){if(e.followupPayloads&&e.followupPayloads.length){var r,n=e.followupPayloads,s=(0,i.default)(n);try{for(s.s();!(r=s.n()).done;){var o=r.value;switch(o.kind){case"ModuleImportPayload":var l=this._expectOperationLoader().get(o.operationReference);if(null==l)this._processAsyncOptimisticModuleImport(o);else{var u=this._processOptimisticModuleImport(l,o);t.push.apply(t,(0,a.default)(u))}break;case"ActorPayload":break;default:k(!1)}}}catch(e){s.e(e)}finally{s.f()}}},t._normalizeFollowupPayload=function(e,t){var r;r="SplitOperation"===t.kind&&"ModuleImportPayload"===e.kind?v(e.variables,t.argumentDefinitions,e.args):e.variables;var n=y(t,e.dataID,r);return this._normalizeResponse({data:e.data},n,e.typeName,{actorIdentifier:this._actorIdentifier,getDataID:this._getDataID,path:e.path,treatMissingFieldsAsNull:this._treatMissingFieldsAsNull,shouldProcessClientComponents:this._shouldProcessClientComponents})},t._processOptimisticModuleImport=function(e,t){var r=l(e),n=[],i=this._normalizeFollowupPayload(t,r);return F(i),n.push({operation:this._operation,payload:i,updater:null}),this._processOptimisticFollowups(i,n),n},t._processAsyncOptimisticModuleImport=function(e){var t=this;this._expectOperationLoader().load(e.operationReference).then((function(r){if(null!=r&&"started"===t._state){var n,i=t._processOptimisticModuleImport(r,e);i.forEach((function(e){return t._getPublishQueueAndSaveActor().applyUpdate(e)})),null==t._optimisticUpdates||((n=t._optimisticUpdates).push.apply(n,(0,a.default)(i)),t._runPublishQueue())}}))},t._processResponses=function(e){var t=this;return this._log({name:"execute.normalize.start",operation:this._operation}),null!==this._optimisticUpdates&&(this._optimisticUpdates.forEach((function(e){t._getPublishQueueAndSaveActor().revertUpdate(e)})),this._optimisticUpdates=null),this._incrementalPayloadsPending=!1,this._incrementalResults.clear(),this._source.clear(),e.map((function(e){var r=t._normalizeResponse(e,t._operation.root,I,{actorIdentifier:t._actorIdentifier,getDataID:t._getDataID,path:[],treatMissingFieldsAsNull:t._treatMissingFieldsAsNull,shouldProcessClientComponents:t._shouldProcessClientComponents});return t._getPublishQueueAndSaveActor().commitPayload(t._operation,r,t._updater),t._log({name:"execute.normalize.end",operation:t._operation}),r}))},t._processPayloadFollowups=function(e){var t=this;"completed"!==this._state&&e.forEach((function(e){var r=e.incrementalPlaceholders,n=e.followupPayloads,i=e.isFinal;if(t._state=i?"loading_final":"loading_incremental",t._updateActiveState(),i&&(t._incrementalPayloadsPending=!1),n&&0!==n.length&&n.forEach((function(e){var r,n=t._actorIdentifier;t._actorIdentifier=null!==(r=e.actorIdentifier)&&void 0!==r?r:t._actorIdentifier,t._processFollowupPayload(e),t._actorIdentifier=n})),r&&0!==r.length&&(t._incrementalPayloadsPending="loading_final"!==t._state,r.forEach((function(r){var n,i=t._actorIdentifier;t._actorIdentifier=null!==(n=r.actorIdentifier)&&void 0!==n?n:t._actorIdentifier,t._processIncrementalPlaceholder(e,r),t._actorIdentifier=i})),t._isClientPayload||"loading_final"===t._state)){var a=[];r.forEach((function(e){"defer"===e.kind&&a.push(t._processDeferResponse(e.label,e.path,e,{data:e.data}))})),a.length>0&&t._processPayloadFollowups(a)}}))},t._maybeCompleteSubscriptionOperationTracking=function(){this._isSubscriptionOperation&&0===this._pendingModulePayloadsCount&&!1===this._incrementalPayloadsPending&&this._completeOperationTracker()},t._processFollowupPayload=function(e){var t=this;switch(e.kind){case"ModuleImportPayload":var r=this._expectOperationLoader(),n=r.get(e.operationReference);if(null!=n)this._processFollowupPayloadWithNormalizationNode(e,l(n));else{var i=this._nextSubscriptionId++;this._pendingModulePayloadsCount++;var a=function(){t._pendingModulePayloadsCount--,t._maybeCompleteSubscriptionOperationTracking()},o=s.from(new Promise((function(t,n){r.load(e.operationReference).then(t,n)})));s.create((function(r){var n,i=o.subscribe({next:function(i){if(null!=i){var a=function(){try{var n=l(i),a=c.BATCH_ASYNC_MODULE_UPDATES_FN,s=null!=a&&t._pendingModulePayloadsCount>1,o=h((function(){if(t._handleFollowupPayload(e,n),s)t._scheduleAsyncStoreUpdate(a,r.complete);else{var i=t._runPublishQueue();t._updateOperationTracker(i)}})),u=(o[0],o[1]);t._log({name:"execute.async.module",executeId:t._executeId,operationName:n.name,duration:u}),s||r.complete()}catch(e){r.error(e)}},s=t._scheduler;null==s?a():n=s.schedule(a)}else r.complete()},error:r.error});return function(){i.unsubscribe(),null!=t._scheduler&&null!=n&&t._scheduler.cancel(n)}})).subscribe({complete:function(){t._complete(i),a()},error:function(e){t._error(e),a()},start:function(e){return t._start(i,e)}})}break;case"ActorPayload":this._processFollowupPayloadWithNormalizationNode(e,e.node);break;default:k(!1)}},t._processFollowupPayloadWithNormalizationNode=function(e,t){this._handleFollowupPayload(e,t),this._maybeCompleteSubscriptionOperationTracking()},t._handleFollowupPayload=function(e,t){var r=this._normalizeFollowupPayload(e,t);this._getPublishQueueAndSaveActor().commitPayload(this._operation,r),this._processPayloadFollowups([r])},t._processIncrementalPlaceholder=function(e,t){var r,n=t.label,i=t.path.map(String).join("."),a=this._incrementalResults.get(n);null==a&&(a=new Map,this._incrementalResults.set(n,a));var s,o=a.get(i),l=null!=o&&"response"===o.kind?o.responses:null;a.set(i,{kind:"placeholder",placeholder:t}),"stream"===t.kind?s=t.parentID:"defer"===t.kind?s=t.selector.dataID:k(!1);var u,c,h=e.source.get(s),f=(null!==(r=e.fieldPayloads)&&void 0!==r?r:[]).filter((function(e){var t=_(e.dataID,e.fieldKey);return e.dataID===s||t===s}));null==h&&k(!1);var p=this._source.get(s);if(null!=p){u=g.update(p.record,h);var v=new Map,m=function(e){var t,r,n=(t=e,null!==(r=JSON.stringify(d(t)))&&void 0!==r?r:"");v.set(n,e)};p.fieldPayloads.forEach(m),f.forEach(m),c=Array.from(v.values())}else u=h,c=f;if(this._source.set(s,{record:u,fieldPayloads:c}),null!=l){var y=this._processIncrementalResponses(l);this._processPayloadFollowups(y)}},t._processIncrementalResponses=function(e){var t=this,r=[];return e.forEach((function(e){var n=e.label,i=e.path,a=e.response,s=t._incrementalResults.get(n);if(null==s&&(s=new Map,t._incrementalResults.set(n,s)),-1!==n.indexOf("$defer$")){var o=i.map(String).join("."),l=s.get(o);if(null==l)return l={kind:"response",responses:[e]},void s.set(o,l);if("response"===l.kind)return void l.responses.push(e);var u=l.placeholder;"defer"!==u.kind&&k(!1),r.push(t._processDeferResponse(n,i,u,a))}else{var c=i.slice(0,-2).map(String).join("."),d=s.get(c);if(null==d)return d={kind:"response",responses:[e]},void s.set(c,d);if("response"===d.kind)return void d.responses.push(e);var h=d.placeholder;"stream"!==h.kind&&k(!1),r.push(t._processStreamResponse(n,i,h,a))}})),r},t._processDeferResponse=function(e,t,r,n){var i,a=r.selector.dataID,s=this._actorIdentifier;this._actorIdentifier=null!==(i=r.actorIdentifier)&&void 0!==i?i:this._actorIdentifier;var o=this._normalizeResponse(n,r.selector,r.typeName,{actorIdentifier:this._actorIdentifier,getDataID:this._getDataID,path:r.path,treatMissingFieldsAsNull:this._treatMissingFieldsAsNull,shouldProcessClientComponents:this._shouldProcessClientComponents});this._getPublishQueueAndSaveActor().commitPayload(this._operation,o);var l=this._source.get(a);null==l&&k(!1);var u=l.fieldPayloads;if(0!==u.length){var c,d={errors:null,fieldPayloads:u,incrementalPlaceholders:null,followupPayloads:null,source:b.create(),isFinal:!0===(null===(c=n.extensions)||void 0===c?void 0:c.is_final)};this._getPublishQueueAndSaveActor().commitPayload(this._operation,d)}return this._actorIdentifier=s,o},t._processStreamResponse=function(e,t,r,n){var i=r.parentID,s=r.node,o=r.variables,l=r.actorIdentifier,u=this._actorIdentifier;this._actorIdentifier=null!=l?l:this._actorIdentifier;var c=s.selections[0];(null==c||"LinkedField"!==c.kind||!0!==c.plural)&&k(!1);var d=this._normalizeStreamItem(n,i,c,o,t,r.path),h=d.fieldPayloads,f=d.itemID,_=d.itemIndex,p=d.prevIDs,v=d.relayPayload,g=d.storageKey;if(this._getPublishQueueAndSaveActor().commitPayload(this._operation,v,(function(e){var t=e.get(i);if(null!=t){var r=t.getLinkedRecords(g);if(null!=r&&r.length===p.length&&!r.some((function(e,t){return p[t]!==(e&&e.getDataID())}))){var n=(0,a.default)(r);n[_]=e.get(f),t.setLinkedRecords(n,g)}}})),0!==h.length){var m={errors:null,fieldPayloads:h,incrementalPlaceholders:null,followupPayloads:null,source:b.create(),isFinal:!1};this._getPublishQueueAndSaveActor().commitPayload(this._operation,m)}return this._actorIdentifier=u,v},t._normalizeStreamItem=function(e,t,r,n,i,s){var o,l,u,c,d=e.data;"object"!=typeof d&&k(!1);var h=null!==(o=r.alias)&&void 0!==o?o:r.name,f=D(r,n),p=this._source.get(t);null==p&&k(!1);var v=p.record,m=p.fieldPayloads,R=g.getLinkedRecordIDs(v,f);null==R&&k(!1);var b=i[i.length-1],E=parseInt(b,10);E===b&&E>=0||k(!1);var I=null!==(l=r.concreteType)&&void 0!==l?l:d[S];"string"!=typeof I&&k(!1);var A=null!==(u=null!==(c=this._getDataID(d,I))&&void 0!==c?c:null==R?void 0:R[E])&&void 0!==u?u:_(t,f,E);"string"!=typeof A&&k(!1);var F=y(r,A,n),T=g.clone(v),O=(0,a.default)(R);return O[E]=A,g.setLinkedRecordIDs(T,f,O),this._source.set(t,{record:T,fieldPayloads:m}),{fieldPayloads:m,itemID:A,itemIndex:E,prevIDs:R,relayPayload:this._normalizeResponse(e,F,I,{actorIdentifier:this._actorIdentifier,getDataID:this._getDataID,path:[].concat((0,a.default)(s),[h,String(E)]),treatMissingFieldsAsNull:this._treatMissingFieldsAsNull,shouldProcessClientComponents:this._shouldProcessClientComponents}),storageKey:f}},t._scheduleAsyncStoreUpdate=function(e,t){var r=this;this._completeFns.push(t),null==this._asyncStoreUpdateDisposable&&(this._asyncStoreUpdateDisposable=e((function(){r._asyncStoreUpdateDisposable=null;var e=r._runPublishQueue();r._updateOperationTracker(e);var t,n=(0,i.default)(r._completeFns);try{for(n.s();!(t=n.n()).done;)(0,t.value)()}catch(e){n.e(e)}finally{n.f()}r._completeFns=[]})))},t._updateOperationTracker=function(e){null!=e&&e.length>0&&this._operationTracker.update(this._operation.request,new Set(e))},t._completeOperationTracker=function(){this._operationTracker.complete(this._operation.request)},t._getPublishQueueAndSaveActor=function(){return this._seenActors.add(this._actorIdentifier),this._getPublishQueue(this._actorIdentifier)},t._getActorsToVisit=function(){return 0===this._seenActors.size?new Set([this._actorIdentifier]):this._seenActors},t._runPublishQueue=function(e){var t,r=new Set,n=(0,i.default)(this._getActorsToVisit());try{for(n.s();!(t=n.n()).done;){var a=t.value;this._getPublishQueue(a).run(e).forEach((function(e){return r.add(e)}))}}catch(e){n.e(e)}finally{n.f()}return Array.from(r)},t._retainData=function(){var e,t=(0,i.default)(this._getActorsToVisit());try{for(t.s();!(e=t.n()).done;){var r=e.value;this._retainDisposables.has(r)||this._retainDisposables.set(r,this._getStore(r).retain(this._operation))}}catch(e){t.e(e)}finally{t.f()}},t._disposeRetainedData=function(){var e,t=(0,i.default)(this._retainDisposables.values());try{for(t.s();!(e=t.n()).done;)e.value.dispose()}catch(e){t.e(e)}finally{t.f()}this._retainDisposables.clear()},t._expectOperationLoader=function(){var e=this._operationLoader;return e||k(!1),e},e}();function F(e){var t=e.incrementalPlaceholders;null!=t&&0!==t.length&&k(!1)}e.exports={execute:function(e){return new A(e)}}},129:(e,t,r)=>{var n=(0,r(5275).default)(r(6175)),i=r(5165).getArgumentValues,a=r(5056);e.exports={getLocalVariables:function(e,t,r){if(null==t)return e;var a=(0,n.default)({},e),s=r?i(r,e):{};return t.forEach((function(e){var t,r=null!==(t=s[e.name])&&void 0!==t?t:e.defaultValue;a[e.name]=r})),a},getFragmentVariables:function(e,t,r){return null==e.argumentDefinitions?r:(e.argumentDefinitions.forEach((function(e){if(!r.hasOwnProperty(e.name))switch(i=i||(0,n.default)({},r),e.kind){case"LocalArgument":i[e.name]=e.defaultValue;break;case"RootArgument":if(!t.hasOwnProperty(e.name)){i[e.name]=void 0;break}i[e.name]=t[e.name];break;default:a(!1)}})),i||r);var i},getOperationVariables:function(e,t,r){var n={};return e.argumentDefinitions.forEach((function(e){var t=e.defaultValue;null!=r[e.name]&&(t=r[e.name]),n[e.name]=t})),null!=t&&Object.keys(t).forEach((function(e){n[e]=t[e].get()})),n}}},7288:(e,t,r)=>{var n=r(5275).default,i=n(r(6175)),a=n(r(5264)),s=n(r(5765)),o=n(r(642)),l=["path","locations"],u=Symbol("$SELF");function c(e,t){var r,n=(0,s.default)(e);try{for(n.s();!(r=n.n()).done;){var a=r.value,l=a[0],d=a[1],h=t.length;if(Array.isArray(d)?t.push.apply(t,(0,o.default)(d)):c(d,t),l!==u)for(var f=t.length,_=h;_<f;_++){var p=t[_];null==p.path?t[_]=(0,i.default)((0,i.default)({},p),{},{path:[l]}):p.path.unshift(l)}}}catch(e){n.e(e)}finally{n.f()}}e.exports={SELF:u,buildErrorTrie:function(e){if(null==e)return null;var t,r=new Map,n=(0,s.default)(e);try{for(n.s();!(t=n.n()).done;){var i=t.value,o=i.path,c=(i.locations,(0,a.default)(i,l));if(null!=o){var d=o.length;if(0!==d){for(var h=d-1,f=r,_=0;_<h;_++){var p=o[_],v=f.get(p);if(v instanceof Map)f=v;else{var g=new Map;Array.isArray(v)&&g.set(u,v),f.set(p,g),f=g}}var m=o[h],y=f.get(m);y instanceof Map&&(y=(f=y).get(m),m=u),Array.isArray(y)?y.push(c):f.set(m,[c])}}}}catch(e){n.e(e)}finally{n.f()}return r},getNestedErrorTrieByKey:function(e,t){var r=e.get(t);return r instanceof Map?r:null},getErrorsByKey:function(e,t){var r=e.get(t);if(null==r)return null;if(Array.isArray(r))return r;var n=[];return c(r,n),n}}},8541:(e,t,r)=>{var n=(0,r(5275).default)(r(6175)),i=r(778),a=r(5568),s=a.INTERNAL_ACTOR_IDENTIFIER_DO_NOT_USE,o=a.assertInternalActorIdentifier,l=r(1060),u=r(1373),c=r(371),d=r(6859),h=r(5053),f=r(7097),_=r(5131),p=r(7206),v=r(1215),g=r(6938),m=(r(5056),function(){function e(e){var t,r,n,a,s,o,l,p,g,m,R=this;this.configName=e.configName,this._treatMissingFieldsAsNull=!0===e.treatMissingFieldsAsNull;var b=e.operationLoader;this.__log=null!==(t=e.log)&&void 0!==t?t:y,this.relayFieldLogger=null!==(r=e.relayFieldLogger)&&void 0!==r?r:f,this._defaultRenderPolicy=null!==(n=e.UNSTABLE_defaultRenderPolicy)&&void 0!==n?n:"partial",this._operationLoader=b,this._operationExecutions=new Map,this._network=u(this,e.network),this._getDataID=null!==(a=e.getDataID)&&void 0!==a?a:h,this._missingFieldHandlers=null!==(s=e.missingFieldHandlers)&&void 0!==s?s:[],this._publishQueue=new v(e.store,null!==(o=e.handlerProvider)&&void 0!==o?o:i,this._getDataID,this._missingFieldHandlers),this._scheduler=null!==(l=e.scheduler)&&void 0!==l?l:null,this._store=e.store,this.options=e.options,this._isServer=null!==(p=e.isServer)&&void 0!==p&&p,this._normalizeResponse=null!==(g=e.normalizeResponse)&&void 0!==g?g:_,this.__setNet=function(e){return R._network=u(R,e)},this._operationTracker=null!==(m=e.operationTracker)&&void 0!==m?m:new c,this._shouldProcessClientComponents=e.shouldProcessClientComponents,d(this)}var t=e.prototype;return t.getStore=function(){return this._store},t.getNetwork=function(){return this._network},t.getOperationTracker=function(){return this._operationTracker},t.getScheduler=function(){return this._scheduler},t.isRequestActive=function(e){return"active"===this._operationExecutions.get(e)},t.UNSTABLE_getDefaultRenderPolicy=function(){return this._defaultRenderPolicy},t.applyUpdate=function(e){var t=this;return this._scheduleUpdates((function(){t._publishQueue.applyUpdate(e),t._publishQueue.run()})),{dispose:function(){t._scheduleUpdates((function(){t._publishQueue.revertUpdate(e),t._publishQueue.run()}))}}},t.revertUpdate=function(e){var t=this;this._scheduleUpdates((function(){t._publishQueue.revertUpdate(e),t._publishQueue.run()}))},t.replaceUpdate=function(e,t){var r=this;this._scheduleUpdates((function(){r._publishQueue.revertUpdate(e),r._publishQueue.applyUpdate(t),r._publishQueue.run()}))},t.applyMutation=function(e){var t=this._execute({createSource:function(){return l.create((function(e){}))},isClientPayload:!1,operation:e.operation,optimisticConfig:e,updater:null}).subscribe({});return{dispose:function(){return t.unsubscribe()}}},t.check=function(e){return 0!==this._missingFieldHandlers.length||function(e){return"Operation"===e.root.node.kind&&null!=e.root.node.clientAbstractTypes}(e)?this._checkSelectorAndHandleMissingFields(e,this._missingFieldHandlers):this._store.check(e)},t.commitPayload=function(e,t){this._execute({createSource:function(){return l.from({data:t})},isClientPayload:!0,operation:e,optimisticConfig:null,updater:null}).subscribe({})},t.commitUpdate=function(e){var t=this;this._scheduleUpdates((function(){t._publishQueue.commitUpdate(e),t._publishQueue.run()}))},t.lookup=function(e){return this._store.lookup(e)},t.subscribe=function(e,t){return this._store.subscribe(e,t)},t.retain=function(e){return this._store.retain(e)},t.isServer=function(){return this._isServer},t._checkSelectorAndHandleMissingFields=function(e,t){var r=this,n=g.create(),i=this._store.getSource(),a=this._store.check(e,{handlers:t,defaultActorIdentifier:s,getSourceForActor:function(e){return o(e),i},getTargetForActor:function(e){return o(e),n}});return n.size()>0&&this._scheduleUpdates((function(){r._publishQueue.commitSource(n),r._publishQueue.run()})),a},t._scheduleUpdates=function(e){var t=this._scheduler;null!=t?t.schedule(e):e()},t.execute=function(e){var t=this,r=e.operation;return this._execute({createSource:function(){return t.getNetwork().execute(r.request.node.params,r.request.variables,r.request.cacheConfig||{},null)},isClientPayload:!1,operation:r,optimisticConfig:null,updater:null})},t.executeSubscription=function(e){var t=this,r=e.operation,n=e.updater;return this._execute({createSource:function(){return t.getNetwork().execute(r.request.node.params,r.request.variables,r.request.cacheConfig||{},null)},isClientPayload:!1,operation:r,optimisticConfig:null,updater:n})},t.executeMutation=function(e){var t,r=this,i=e.operation,a=e.optimisticResponse,s=e.optimisticUpdater,o=e.updater,l=e.uploadables;return(a||s)&&(t={operation:i,response:a,updater:s}),this._execute({createSource:function(){return r.getNetwork().execute(i.request.node.params,i.request.variables,(0,n.default)((0,n.default)({},i.request.cacheConfig),{},{force:!0}),l)},isClientPayload:!1,operation:i,optimisticConfig:t,updater:o})},t.executeWithSource=function(e){var t=e.operation,r=e.source;return this._execute({createSource:function(){return r},isClientPayload:!1,operation:t,optimisticConfig:null,updater:null})},t.toJSON=function(){var e;return"RelayModernEnvironment(".concat(null!==(e=this.configName)&&void 0!==e?e:"",")")},t._execute=function(e){var t=this,r=e.createSource,n=e.isClientPayload,i=e.operation,a=e.optimisticConfig,u=e.updater,c=this._publishQueue,d=this._store;return l.create((function(e){var l=p.execute({actorIdentifier:s,getDataID:t._getDataID,isClientPayload:n,log:t.__log,operation:i,operationExecutions:t._operationExecutions,operationLoader:t._operationLoader,operationTracker:t._operationTracker,optimisticConfig:a,getPublishQueue:function(e){return o(e),c},scheduler:t._scheduler,shouldProcessClientComponents:t._shouldProcessClientComponents,sink:e,source:r(),getStore:function(e){return o(e),d},treatMissingFieldsAsNull:t._treatMissingFieldsAsNull,updater:u,normalizeResponse:t._normalizeResponse});return function(){return l.cancel()}}))},e}());function y(){}m.prototype["@@RelayModernEnvironment"]=!0,e.exports=m},5457:(e,t,r)=>{var n=r(5275).default,i=n(r(6175)),a=n(r(311)),s=r(5250),o=r(9222).handlePotentialSnapshotErrors,l=r(2081),u=r(5748),c=r(6770),d=r(7258).createRequestDescriptor,h=r(6256),f=h.areEqualSelectors,_=h.createReaderSelector,p=h.getSelectorsFromObject,v=r(9125),g=r(5056),m=(r(4446),function(){function e(e,t,r,n,i){var s=this;(0,a.default)(this,"_onChange",(function(){s._stale=!0,"function"==typeof s._callback&&s._callback()})),this._callback=n,this._context=e,this._data={},this._fragments=t,this._props={},this._resolvers={},this._stale=!1,this._rootIsQueryRenderer=i,this.setProps(r)}var t=e.prototype;return t.dispose=function(){for(var e in this._resolvers)this._resolvers.hasOwnProperty(e)&&b(this._resolvers[e])},t.resolve=function(){if(this._stale){var e,t=this._data;for(var r in this._resolvers)if(this._resolvers.hasOwnProperty(r)){var n=this._resolvers[r],a=t[r];if(n){var s=n.resolve();(e||s!==a)&&((e=e||(0,i.default)({},t))[r]=s)}else{var o=this._props[r],u=void 0!==o?o:null;!e&&l(u,a)||((e=e||(0,i.default)({},t))[r]=u)}}this._data=e||t,this._stale=!1}return this._data},t.setCallback=function(e,t){this._callback=t,!0===c.ENABLE_CONTAINERS_SUBSCRIBE_ON_COMMIT&&this.setProps(e)},t.setProps=function(e){this._props={};var t=p(this._fragments,e);for(var r in t)if(t.hasOwnProperty(r)){var n=t[r],i=this._resolvers[r];null==n?(null!=i&&i.dispose(),i=null):"PluralReaderSelector"===n.kind?null==i?i=new R(this._context.environment,this._rootIsQueryRenderer,n,null!=this._callback,this._onChange):(i instanceof R||g(!1),i.setSelector(n)):null==i?i=new y(this._context.environment,this._rootIsQueryRenderer,n,null!=this._callback,this._onChange):(i instanceof y||g(!1),i.setSelector(n)),this._props[r]=e[r],this._resolvers[r]=i}this._stale=!0},t.setVariables=function(e,t){for(var r in this._resolvers)if(this._resolvers.hasOwnProperty(r)){var n=this._resolvers[r];n&&n.setVariables(e,t)}this._stale=!0},e}()),y=function(){function e(e,t,r,n,i){var s=this;(0,a.default)(this,"_onChange",(function(e){s._data=e.data,s._isMissingData=e.isMissingData,s._errorResponseFields=e.errorResponseFields,s._callback()}));var o=e.lookup(r);this._callback=i,this._data=o.data,this._isMissingData=o.isMissingData,this._errorResponseFields=o.errorResponseFields,this._environment=e,this._rootIsQueryRenderer=t,this._selector=r,!0===c.ENABLE_CONTAINERS_SUBSCRIBE_ON_COMMIT?n&&(this._subscription=e.subscribe(o,this._onChange)):this._subscription=e.subscribe(o,this._onChange)}var t=e.prototype;return t.dispose=function(){this._subscription&&(this._subscription.dispose(),this._subscription=null)},t.resolve=function(){if(!0===this._isMissingData){var e=s(this._environment,this._selector.node,this._selector.owner),t=null==e?void 0:e.promise;if(null!=t&&!this._rootIsQueryRenderer){var r,n=null!==(r=null==e?void 0:e.pendingOperations)&&void 0!==r?r:[];throw this._environment.__log({name:"suspense.fragment",data:this._data,fragment:this._selector.node,isRelayHooks:!1,isMissingData:this._isMissingData,isPromiseCached:!1,pendingOperations:n}),t}}return o(this._environment,this._errorResponseFields),this._data},t.setSelector=function(e){if(null==this._subscription||!f(e,this._selector)){this.dispose();var t=this._environment.lookup(e);this._data=u(this._data,t.data),this._isMissingData=t.isMissingData,this._errorResponseFields=t.errorResponseFields,this._selector=e,this._subscription=this._environment.subscribe(t,this._onChange)}},t.setVariables=function(e,t){if(!v(e,this._selector.variables)){var r=d(t,e),n=_(this._selector.node,this._selector.dataID,e,r);this.setSelector(n)}},e}(),R=function(){function e(e,t,r,n,i){var s=this;(0,a.default)(this,"_onChange",(function(e){s._stale=!0,s._callback()})),this._callback=i,this._data=[],this._environment=e,this._resolvers=[],this._stale=!0,this._rootIsQueryRenderer=t,this._subscribeOnConstruction=n,this.setSelector(r)}var t=e.prototype;return t.dispose=function(){this._resolvers.forEach(b)},t.resolve=function(){if(this._stale){for(var e,t=this._data,r=0;r<this._resolvers.length;r++){var n=t[r],i=this._resolvers[r].resolve();(e||i!==n)&&(e=e||t.slice(0,r)).push(i)}e||this._resolvers.length===t.length||(e=t.slice(0,this._resolvers.length)),this._data=e||t,this._stale=!1}return this._data},t.setSelector=function(e){for(var t=e.selectors;this._resolvers.length>t.length;)this._resolvers.pop().dispose();for(var r=0;r<t.length;r++)r<this._resolvers.length?this._resolvers[r].setSelector(t[r]):this._resolvers[r]=new y(this._environment,this._rootIsQueryRenderer,t[r],this._subscribeOnConstruction,this._onChange);this._stale=!0},t.setVariables=function(e,t){this._resolvers.forEach((function(r){return r.setVariables(e,t)})),this._stale=!0},e}();function b(e){e&&e.dispose()}e.exports=m},7258:(e,t,r)=>{r(2729);var n=r(6900),i=r(6770),a=r(1094).hasCycle,s=r(129).getOperationVariables,o=r(6256),l=o.createNormalizationSelector,u=o.createReaderSelector,c=r(5165).ROOT_ID,d=r(5056);function h(e,t,r){return{identifier:n(e.params,t),node:e,variables:t,cacheConfig:r}}e.exports={createOperationDescriptor:function(e,t,r){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:c,o=e.operation,f=s(o,e.params.providedVariables,t);i.ENABLE_CYLE_DETECTION_IN_VARIABLES&&a(f)&&d(!1);var _=h(e,f,r);return{fragment:u(e.fragment,n,f,_),request:_,root:l(o,n,f)}},createRequestDescriptor:h}},7105:(e,t,r)=>{var n=r(5275).default,i=n(r(311)),a=n(r(5264)),s=n(r(9998)),o=n(r(6175)),l=r(2729),u=r(2997),c=u.generateClientObjectClientID,d=(u.isClientID,r(8941).isSuspenseSentinel),h=r(5165),f=h.ACTOR_IDENTIFIER_KEY,_=h.ERRORS_KEY,p=h.ID_KEY,v=h.INVALIDATED_AT_KEY,g=h.REF_KEY,m=h.REFS_KEY,y=h.RELAY_RESOLVER_VALUE_KEY,R=(h.ROOT_ID,h.TYPENAME_KEY),b=r(9125),E=r(5056);function I(e,t){var r=e[t];return r&&"object"==typeof r&&(r.hasOwnProperty(g)||r.hasOwnProperty(m))&&E(!1),r}function S(e,t,r){var n=e[_];if(null!=r&&r.length>0)null==n?e[_]=(0,i.default)({},t,r):n[t]=r;else if(null!=n&&delete n[t]){for(var a in n)if(n.hasOwnProperty(a))return;delete e[_]}}function D(e,t,r){e[t]=r}r(4446),e.exports={clone:function(e){return(0,o.default)({},e)},copyFields:function(e,t){for(var r in e)e.hasOwnProperty(r)&&r!==p&&r!==R&&(t[r]=e[r])},create:function(e,t){var r={};return r[p]=e,r[R]=t,r},freeze:function(e){l(e)},fromObject:function(e){return e},getDataID:function(e){return e[p]},getErrors:function(e,t){var r;return null===(r=e[_])||void 0===r?void 0:r[t]},getFields:function(e){return _ in e?Object.keys(e).filter((function(e){return e!==_})):Object.keys(e)},getInvalidationEpoch:function(e){if(null==e)return null;var t=e[v];return"number"!=typeof t?null:t},getLinkedRecordID:function(e,t){var r=e[t];if(null==r)return r;var n=r;return"object"==typeof n&&n&&"string"==typeof n[g]||E(!1),n[g]},getLinkedRecordIDs:function(e,t){var r=e[t];return null==r?r:("object"==typeof r&&Array.isArray(r[m])||E(!1),r[m])},getType:function(e){return e[R]},getValue:I,hasValue:function(e,t){return t in e},hasLinkedRecordID:function(e,t){var r=e[t];return null!=r&&"object"==typeof r&&r&&"string"==typeof r[g]},hasLinkedRecordIDs:function(e,t){var r=e[t];return null!=r&&"object"==typeof r&&Array.isArray(r[m])&&r[m].every((function(e){return"string"==typeof e}))},merge:function(e,t){if(_ in e||_ in t){var r=e[_],n=(0,a.default)(e,[_].map(s.default)),i=t[_],l=(0,a.default)(t,[_].map(s.default)),u=(0,o.default)((0,o.default)({},n),l);if(null==r&&null==i)return u;var c={};for(var d in r)l.hasOwnProperty(d)||(c[d]=r[d]);for(var h in i)c[h]=i[h];for(var f in c){u[_]=c;break}return u}return(0,o.default)((0,o.default)({},e),t)},setErrors:S,setValue:D,setLinkedRecordID:function(e,t,r){var n={};n[g]=r,e[t]=n},setLinkedRecordIDs:function(e,t,r){var n={};n[m]=r,e[t]=n},update:function(e,t){var r,n=e[_],i=t[_],a=null;if(null==n&&null==i){var s;for(var l in t)!a&&b(e[l],t[l])||((a=null!==a?a:(0,o.default)({},e))[l]=t[l]);return null!==(s=a)&&void 0!==s?s:e}for(var u in t)if(u!==_){var c=t[u],d=null==i?void 0:i[u];if(null==a){var h=e[u],f=null==n?void 0:n[u];if(b(h,c)&&b(f,d))continue;a=(0,o.default)({},e),null!=n&&(a[_]=(0,o.default)({},n))}D(a,u,c),S(a,u,d)}return null!==(r=a)&&void 0!==r?r:e},getActorLinkedRecordID:function(e,t){var r=e[t];return null==r?r:(("object"!=typeof r||"string"!=typeof r[g]||null==r[f])&&E(!1),[r[f],r[g]])},setActorLinkedRecordID:function(e,t,r,n){var i={};i[g]=n,i[f]=r,e[t]=i},getResolverLinkedRecordID:function(e,t){var r=I(e,y);return null==r||d(r)?null:("object"==typeof r&&(r=r.id),"string"!=typeof r&&E(!1),c(t,r))},getResolverLinkedRecordIDs:function(e,t){var r=I(e,y);return null==r||d(r)?null:(Array.isArray(r)||E(!1),r.map((function(e){return null==e?null:("object"==typeof e&&(e=e.id),"string"!=typeof e&&E(!1),c(t,e))})))},toJSON:function(e){return e}}},6256:(e,t,r)=>{var n=r(129).getFragmentVariables,i=r(5165),a=i.CLIENT_EDGE_TRAVERSAL_PATH,s=i.FRAGMENT_OWNER_KEY,o=i.FRAGMENT_POINTER_IS_WITHIN_UNMATCHED_TYPE_REFINEMENT,l=i.FRAGMENTS_KEY,u=i.ID_KEY,c=r(9125),d=r(5056);function h(e,t){("object"!=typeof t||null===t||Array.isArray(t))&&d(!1);var r=t[u],i=t[l],c=t[s],h=t[a];if("string"==typeof r&&"object"==typeof i&&null!==i&&"object"==typeof i[e.name]&&null!==i[e.name]&&"object"==typeof c&&null!==c&&(null==h||Array.isArray(h))){var f=c,_=h,p=i[e.name];return b(e,r,n(e,f.variables,p),f,!0===p[o],_)}return null}function f(e,t){var r=null;return t.forEach((function(t,n){var i=null!=t?h(e,t):null;null!=i&&(r=r||[]).push(i)})),null==r?null:{kind:"PluralReaderSelector",selectors:r}}function _(e,t){return null==t?t:e.metadata&&!0===e.metadata.plural?(Array.isArray(t)||d(!1),f(e,t)):(Array.isArray(t)&&d(!1),h(e,t))}function p(e,t){return null==t?t:e.metadata&&!0===e.metadata.plural?(Array.isArray(t)||d(!1),r=null,t.forEach((function(e){var t=null!=e?v(0,e):null;null!=t&&(r=r||[]).push(t)})),r):(Array.isArray(t)&&d(!1),v(0,t));var r}function v(e,t){("object"!=typeof t||null===t||Array.isArray(t))&&d(!1);var r=t[u];return"string"==typeof r?r:null}function g(e,t){var r;return null==t?{}:!0===(null===(r=e.metadata)||void 0===r?void 0:r.plural)?(Array.isArray(t)||d(!1),y(e,t)):(Array.isArray(t)&&d(!1),m(e,t)||{})}function m(e,t){var r=h(e,t);return r?r.variables:null}function y(e,t){var r={};return t.forEach((function(t,n){if(null!=t){var i=m(e,t);null!=i&&Object.assign(r,i)}})),r}function R(e,t){return e.dataID===t.dataID&&e.node===t.node&&c(e.variables,t.variables)&&((r=e.owner)===(n=t.owner)||r.identifier===n.identifier&&c(r.cacheConfig,n.cacheConfig))&&e.isWithinUnmatchedTypeRefinement===t.isWithinUnmatchedTypeRefinement&&function(e,t){if(e===t)return!0;if(null==e||null==t||e.length!==t.length)return!1;for(var r=e.length;r--;){var n=e[r],i=t[r];if(n!==i&&(null==n||null==i||n.clientEdgeDestinationID!==i.clientEdgeDestinationID||n.readerClientEdge!==i.readerClientEdge))return!1}return!0}(e.clientEdgeTraversalPath,t.clientEdgeTraversalPath);var r,n}function b(e,t,r,n){var i=arguments.length>5?arguments[5]:void 0;return{kind:"SingularReaderSelector",dataID:t,isWithinUnmatchedTypeRefinement:arguments.length>4&&void 0!==arguments[4]&&arguments[4],clientEdgeTraversalPath:null!=i?i:null,node:e,variables:r,owner:n}}r(4446),e.exports={areEqualSelectors:function(e,t){return e===t||(null==e?null==t:null==t?null==e:"SingularReaderSelector"===e.kind&&"SingularReaderSelector"===t.kind?R(e,t):"PluralReaderSelector"===e.kind&&"PluralReaderSelector"===t.kind&&e.selectors.length===t.selectors.length&&e.selectors.every((function(e,r){return R(e,t.selectors[r])})))},createReaderSelector:b,createNormalizationSelector:function(e,t,r){return{dataID:t,node:e,variables:r}},getDataIDsFromFragment:p,getDataIDsFromObject:function(e,t){var r={};for(var n in e)if(e.hasOwnProperty(n)){var i=e[n],a=t[n];r[n]=p(i,a)}return r},getSingularSelector:h,getPluralSelector:f,getSelector:_,getSelectorsFromObject:function(e,t){var r={};for(var n in e)if(e.hasOwnProperty(n)){var i=e[n],a=t[n];r[n]=_(i,a)}return r},getVariablesFromSingularFragment:m,getVariablesFromPluralFragment:y,getVariablesFromFragment:g,getVariablesFromObject:function(e,t){var r={};for(var n in e)if(e.hasOwnProperty(n)){var i=g(e[n],t[n]);Object.assign(r,i)}return r}}},4945:(e,t,r)=>{var n=r(5275).default,i=n(r(5765)),a=n(r(311)),s=r(5568),o=s.INTERNAL_ACTOR_IDENTIFIER_DO_NOT_USE,l=s.assertInternalActorIdentifier,u=(r(2729),r(3641)),c=r(847),d=r(5053),h=r(2511),f=h.LiveResolverCache,_=h.RELAY_RESOLVER_LIVE_STATE_SUBSCRIPTION_KEY,p=h.getUpdatedDataIDs,v=r(7105),g=r(9853),m=r(6973),y=r(1563),R=r(4731),b=r(5165),E=r(5165),I=E.ROOT_ID,S=E.ROOT_TYPE,D=r(5056),k=function(){function e(e,t){var r,n,i,s,o,l,c,h=this;(0,a.default)(this,"_gcStep",(function(){h._gcRun&&(h._gcRun.next().done?h._gcRun=null:h._gcScheduler(h._gcStep))})),this._currentWriteEpoch=0,this._gcHoldCounter=0,this._gcReleaseBufferSize=null!==(r=null==t?void 0:t.gcReleaseBufferSize)&&void 0!==r?r:10,this._gcRun=null,this._gcScheduler=null!==(n=null==t?void 0:t.gcScheduler)&&void 0!==n?n:u,this._getDataID=null!==(i=null==t?void 0:t.getDataID)&&void 0!==i?i:d,this._globalInvalidationEpoch=null,this._invalidationSubscriptions=new Set,this._invalidatedRecordIDs=new Set,this.__log=null!==(s=null==t?void 0:t.log)&&void 0!==s?s:null,this._queryCacheExpirationTime=null==t?void 0:t.queryCacheExpirationTime,this._operationLoader=null!==(o=null==t?void 0:t.operationLoader)&&void 0!==o?o:null,this._optimisticSource=null,this._recordSource=e,this._releaseBuffer=[],this._roots=new Map,this._shouldScheduleGC=!1,this._resolverCache=new f((function(){return h._getMutableRecordSource()}),this),this._storeSubscriptions=new R(null==t?void 0:t.log,this._resolverCache),this._updatedRecordIDs=new Set,this._shouldProcessClientComponents=null!==(l=null==t?void 0:t.shouldProcessClientComponents)&&void 0!==l&&l,this._resolverContext=null==t?void 0:t.resolverContext,this._treatMissingFieldsAsNull=null!==(c=null==t?void 0:t.treatMissingFieldsAsNull)&&void 0!==c&&c,this._actorIdentifier=null==t?void 0:t.actorIdentifier,function(e){if(!e.has(I)){var t=v.create(I,S);e.set(I,t)}}(this._recordSource)}var t=e.prototype;return t.getSource=function(){var e;return null!==(e=this._optimisticSource)&&void 0!==e?e:this._recordSource},t.getOperationLoader=function(){return this._operationLoader},t._getMutableRecordSource=function(){var e;return null!==(e=this._optimisticSource)&&void 0!==e?e:this._recordSource},t.getLiveResolverPromise=function(e){return this._resolverCache.getLiveResolverPromise(e)},t.batchLiveStateUpdates=function(e){null!=this.__log&&this.__log({name:"liveresolver.batch.start"});try{this._resolverCache.batchLiveStateUpdates(e)}finally{null!=this.__log&&this.__log({name:"liveresolver.batch.end"})}},t.check=function(e,t){var r,n,i,a,s=e.root,u=this._getMutableRecordSource(),d=this._globalInvalidationEpoch,h=this._roots.get(e.request.identifier),f=null!=h?h.epoch:null;if(null!=d&&(null==f||f<=d))return{status:"stale"};var _=null!==(r=null==t?void 0:t.handlers)&&void 0!==r?r:[],p=null!==(n=null==t?void 0:t.getSourceForActor)&&void 0!==n?n:function(e){return l(e),u},v=null!==(i=null==t?void 0:t.getTargetForActor)&&void 0!==i?i:function(e){return l(e),u};return function(e,t,r,n){var i=e.mostRecentlyInvalidatedAt,a=e.status;return"number"==typeof i&&(null==t||i>t)?{status:"stale"}:"missing"===a?{status:"missing"}:null!=r&&null!=n&&r<=Date.now()-n?{status:"stale"}:{status:"available",fetchTime:null!=r?r:null}}(c.check(p,v,null!==(a=null==t?void 0:t.defaultActorIdentifier)&&void 0!==a?a:o,s,_,this._operationLoader,this._getDataID,this._shouldProcessClientComponents,this.__log),f,null==h?void 0:h.fetchTime,this._queryCacheExpirationTime)},t.retain=function(e){var t=this,r=e.request.identifier,n=!1,i=this._roots.get(r);return null!=i?(0===i.refCount&&(this._releaseBuffer=this._releaseBuffer.filter((function(e){return e!==r}))),i.refCount+=1):this._roots.set(r,{operation:e,refCount:1,epoch:null,fetchTime:null}),{dispose:function(){if(!n){n=!0;var e=t._roots.get(r);if(null!=e&&(e.refCount--,0===e.refCount)){var i=t._queryCacheExpirationTime;if(null!=e.fetchTime&&null!=i&&e.fetchTime<=Date.now()-i)t._roots.delete(r),t.scheduleGC();else if(t._releaseBuffer.push(r),t._releaseBuffer.length>t._gcReleaseBufferSize){var a=t._releaseBuffer.shift();t._roots.delete(a),t.scheduleGC()}}}}}},t.lookup=function(e){var t=this.__log;null!=t&&t({name:"store.lookup.start",selector:e});var r=this.getSource(),n=m.read(r,e,this._resolverCache,this._resolverContext);return null!=t&&t({name:"store.lookup.end",selector:e}),n},t.notify=function(e,t){var r=this,n=this.__log;null!=n&&n({name:"store.notify.start",sourceOperation:e}),this._currentWriteEpoch++,!0===t&&(this._globalInvalidationEpoch=this._currentWriteEpoch),this._resolverCache.invalidateDataIDs(this._updatedRecordIDs);var i=this.getSource(),a=[];if(this._storeSubscriptions.updateSubscriptions(i,this._updatedRecordIDs,a,e),this._invalidationSubscriptions.forEach((function(e){r._updateInvalidationSubscription(e,!0===t)})),null!=e){var s=e.request.identifier,o=this._roots.get(s);if(null!=o)o.epoch=this._currentWriteEpoch,o.fetchTime=Date.now();else if("query"===e.request.node.params.operationKind&&this._gcReleaseBufferSize>0&&this._releaseBuffer.length<this._gcReleaseBufferSize){var l={operation:e,refCount:0,epoch:this._currentWriteEpoch,fetchTime:Date.now()};this._releaseBuffer.push(s),this._roots.set(s,l)}}return null!=n&&n({name:"store.notify.complete",sourceOperation:e,updatedRecordIDs:this._updatedRecordIDs,invalidatedRecordIDs:this._invalidatedRecordIDs,subscriptionsSize:this._storeSubscriptions.size(),updatedOwners:a}),this._updatedRecordIDs.clear(),this._invalidatedRecordIDs.clear(),a},t.publish=function(e,t){var r=this._getMutableRecordSource();!function(e,t,r,n,i,a){n&&n.forEach((function(n){var i,s=e.get(n),o=t.get(n);null!==o&&(i=null!=s?v.clone(s):null!=o?v.clone(o):null)&&(v.setValue(i,b.INVALIDATED_AT_KEY,r),a.add(n),e.set(n,i))}));for(var s=t.getRecordIDs(),o=0;o<s.length;o++){var l=s[o],u=t.get(l),c=e.get(l);if(u&&c){var d=v.update(c,u);d!==c&&(i.add(l),e.set(l,d))}else null===u?(e.delete(l),null!==c&&i.add(l)):u&&(e.set(l,u),i.add(l))}}(r,e,this._currentWriteEpoch+1,t,this._updatedRecordIDs,this._invalidatedRecordIDs);var n=this.__log;null!=n&&n({name:"store.publish",source:e,optimistic:r===this._optimisticSource})},t.subscribe=function(e,t){return this._storeSubscriptions.subscribe(e,t)},t.holdGC=function(){var e=this;return this._gcRun&&(this._gcRun=null,this._shouldScheduleGC=!0),this._gcHoldCounter++,{dispose:function(){e._gcHoldCounter>0&&(e._gcHoldCounter--,0===e._gcHoldCounter&&e._shouldScheduleGC&&(e.scheduleGC(),e._shouldScheduleGC=!1))}}},t.toJSON=function(){return"RelayModernStore()"},t.getEpoch=function(){return this._currentWriteEpoch},t.__getUpdatedRecordIDs=function(){return this._updatedRecordIDs},t.lookupInvalidationState=function(e){var t=this,r=new Map;return e.forEach((function(e){var n,i=t.getSource().get(e);r.set(e,null!==(n=v.getInvalidationEpoch(i))&&void 0!==n?n:null)})),r.set("global",this._globalInvalidationEpoch),{dataIDs:e,invalidations:r}},t.checkInvalidationState=function(e){var t=this.lookupInvalidationState(e.dataIDs).invalidations,r=e.invalidations;if(t.get("global")!==r.get("global"))return!0;var n,a=(0,i.default)(e.dataIDs);try{for(a.s();!(n=a.n()).done;){var s=n.value;if(t.get(s)!==r.get(s))return!0}}catch(e){a.e(e)}finally{a.f()}return!1},t.subscribeToInvalidationState=function(e,t){var r=this,n={callback:t,invalidationState:e};return this._invalidationSubscriptions.add(n),{dispose:function(){r._invalidationSubscriptions.delete(n)}}},t._updateInvalidationSubscription=function(e,t){var r=this,n=e.callback,i=e.invalidationState.dataIDs;(t||i.some((function(e){return r._invalidatedRecordIDs.has(e)})))&&n()},t.snapshot=function(){null!=this._optimisticSource&&D(!1);var e=this.__log;null!=e&&e({name:"store.snapshot"}),this._storeSubscriptions.snapshotSubscriptions(this.getSource()),this._gcRun&&(this._gcRun=null,this._shouldScheduleGC=!0),this._optimisticSource=g.create(this.getSource())},t.restore=function(){var e=this._optimisticSource;e||D(!1);var t=this.__log;null!=t&&t({name:"store.restore"});var r=g.getOptimisticRecordIDs(e);this._resolverCache.unsubscribeFromLiveResolverRecords(r),this._optimisticSource=null,this._shouldScheduleGC&&this.scheduleGC(),this._storeSubscriptions.restoreSubscriptions(),this._resolverCache.invalidateResolverRecords(r)},t.scheduleGC=function(){this._gcHoldCounter>0?this._shouldScheduleGC=!0:this._gcRun||(this._gcRun=this._collect(),this._gcScheduler(this._gcStep))},t.__gc=function(){if(null==this._optimisticSource)for(var e=this._collect();!e.next().done;);},t._collect=function*(){var e=this.__log;e:for(;;){null!=e&&e({name:"store.gc.start"});var t,r=this._currentWriteEpoch,n=new Set,a=(0,i.default)(this._roots.values());try{for(a.s();!(t=a.n()).done;){var s=t.value.operation.root;if(y.mark(this._recordSource,s,n,this._operationLoader,this._shouldProcessClientComponents),yield,r!==this._currentWriteEpoch){null!=e&&e({name:"store.gc.interrupted"});continue e}}}catch(e){a.e(e)}finally{a.f()}if(0===n.size)this._recordSource.clear();else for(var o=this._recordSource.getRecordIDs(),l=0;l<o.length;l++){var u=o[l];if(!n.has(u)){var c=this._recordSource.get(u);if(null!=c){var d=v.getValue(c,_);null!=d&&d()}this._recordSource.remove(u)}}return void(null!=e&&e({name:"store.gc.end",references:n}))}},t.__getNormalizationOptions=function(e){return{path:e,getDataID:this._getDataID,treatMissingFieldsAsNull:this._treatMissingFieldsAsNull,shouldProcessClientComponents:this._shouldProcessClientComponents,actorIdentifier:this._actorIdentifier}},t.__notifyUpdatedSubscribers=function(e){var t=p(e),r=this._updatedRecordIDs;this._updatedRecordIDs=t,this.notify(),this._updatedRecordIDs=r},e}();e.exports=k},371:(e,t,r)=>{var n=(0,r(5275).default)(r(5765)),i=r(5056),a=function(){function e(){this._ownersToPendingOperations=new Map,this._pendingOperationsToOwners=new Map,this._ownersToPendingPromise=new Map}var t=e.prototype;return t.update=function(e,t){if(0!==t.size){var r,i=e.identifier,a=new Set,s=(0,n.default)(t);try{for(s.s();!(r=s.n()).done;){var o=r.value.identifier,l=this._ownersToPendingOperations.get(o);null!=l?l.has(i)||(l.set(i,e),a.add(o)):(this._ownersToPendingOperations.set(o,new Map([[i,e]])),a.add(o))}}catch(e){s.e(e)}finally{s.f()}if(0!==a.size){var u,c=this._pendingOperationsToOwners.get(i)||new Set,d=(0,n.default)(a);try{for(d.s();!(u=d.n()).done;){var h=u.value;this._resolveOwnerResolvers(h),c.add(h)}}catch(e){d.e(e)}finally{d.f()}this._pendingOperationsToOwners.set(i,c)}}},t.complete=function(e){var t=e.identifier,r=this._pendingOperationsToOwners.get(t);if(null!=r){var i,a=new Set,s=new Set,o=(0,n.default)(r);try{for(o.s();!(i=o.n()).done;){var l=i.value,u=this._ownersToPendingOperations.get(l);u&&(u.delete(t),u.size>0?s.add(l):a.add(l))}}catch(e){o.e(e)}finally{o.f()}var c,d=(0,n.default)(a);try{for(d.s();!(c=d.n()).done;){var h=c.value;this._resolveOwnerResolvers(h),this._ownersToPendingOperations.delete(h)}}catch(e){d.e(e)}finally{d.f()}var f,_=(0,n.default)(s);try{for(_.s();!(f=_.n()).done;){var p=f.value;this._resolveOwnerResolvers(p)}}catch(e){_.e(e)}finally{_.f()}this._pendingOperationsToOwners.delete(t)}},t._resolveOwnerResolvers=function(e){var t=this._ownersToPendingPromise.get(e);null!=t&&t.resolve(),this._ownersToPendingPromise.delete(e)},t.getPendingOperationsAffectingOwner=function(e){var t=e.identifier,r=this._ownersToPendingOperations.get(t);if(null==r||0===r.size)return null;var n,a=this._ownersToPendingPromise.get(t);if(null!=a)return{promise:a.promise,pendingOperations:a.pendingOperations};var s=new Promise((function(e){n=e}));null==n&&i(!1);var o=Array.from(r.values());return this._ownersToPendingPromise.set(t,{promise:s,resolve:n,pendingOperations:o}),{promise:s,pendingOperations:o}},e}();e.exports=a},9853:(e,t,r)=>{var n=(0,r(5275).default)(r(6175)),i=r(7105),a=r(6938),s=r(5056),o=i.fromObject(Object.freeze({__UNPUBLISH_RECORD_SENTINEL:!0})),l=function(){function e(e){this._base=e,this._sink=a.create()}var t=e.prototype;return t.has=function(e){return this._sink.has(e)?this._sink.get(e)!==o:this._base.has(e)},t.get=function(e){if(this._sink.has(e)){var t=this._sink.get(e);return t===o?void 0:t}return this._base.get(e)},t.getStatus=function(e){var t=this.get(e);return void 0===t?"UNKNOWN":null===t?"NONEXISTENT":"EXISTENT"},t.clear=function(){this._base=a.create(),this._sink.clear()},t.delete=function(e){this._sink.delete(e)},t.remove=function(e){this._sink.set(e,o)},t.set=function(e,t){this._sink.set(e,t)},t.getRecordIDs=function(){return Object.keys(this.toJSON())},t.size=function(){return Object.keys(this.toJSON()).length},t.toJSON=function(){var e=this,t=(0,n.default)({},this._base.toJSON());return this._sink.getRecordIDs().forEach((function(r){var n=e.get(r);void 0===n?delete t[r]:t[r]=i.toJSON(n)})),t},t.getOptimisticRecordIDs=function(){return new Set(this._sink.getRecordIDs())},e}();e.exports={create:function(e){return new l(e)},getOptimisticRecordIDs:function(e){return e instanceof l||s(!1),e.getOptimisticRecordIDs()}}},1215:(e,t,r)=>{var n,i,a=r(4503),s=r(3838),o=r(6959),l=r(6973),u=r(6938),c=r(5056),d=(r(4446),void 0!==r.g?r.g:"undefined"!=typeof window?window:void 0),h=null!==(n=null==d||null===(i=d.ErrorUtils)||void 0===i?void 0:i.applyWithGuard)&&void 0!==n?n:function(e,t,r,n,i){return e.apply(t,r)},f=function(){function e(e,t,r,n){this._hasStoreSnapshot=!1,this._handlerProvider=t||null,this._pendingBackupRebase=!1,this._pendingData=new Set,this._pendingOptimisticUpdates=new Set,this._store=e,this._appliedOptimisticUpdates=new Set,this._gcHold=null,this._getDataID=r,this._missingFieldHandlers=n}var t=e.prototype;return t.applyUpdate=function(e){(this._appliedOptimisticUpdates.has(e)||this._pendingOptimisticUpdates.has(e))&&c(!1),this._pendingOptimisticUpdates.add(e)},t.revertUpdate=function(e){this._pendingOptimisticUpdates.has(e)?this._pendingOptimisticUpdates.delete(e):this._appliedOptimisticUpdates.has(e)&&(this._pendingBackupRebase=!0,this._appliedOptimisticUpdates.delete(e))},t.revertAll=function(){this._pendingBackupRebase=!0,this._pendingOptimisticUpdates.clear(),this._appliedOptimisticUpdates.clear()},t.commitPayload=function(e,t,r){this._pendingBackupRebase=!0,this._pendingData.add({kind:"payload",operation:e,payload:t,updater:r})},t.commitUpdate=function(e){this._pendingBackupRebase=!0,this._pendingData.add({kind:"updater",updater:e})},t.commitSource=function(e){this._pendingBackupRebase=!0,this._pendingData.add({kind:"source",source:e})},t.run=function(e){var t=0===this._appliedOptimisticUpdates&&!!this._gcHold;if(!this._pendingBackupRebase&&0===this._pendingOptimisticUpdates.size&&!t)return[];this._pendingBackupRebase&&this._hasStoreSnapshot&&(this._store.restore(),this._hasStoreSnapshot=!1);var r=this._commitData();return(this._pendingOptimisticUpdates.size||this._pendingBackupRebase&&this._appliedOptimisticUpdates.size)&&(this._hasStoreSnapshot||(this._store.snapshot(),this._hasStoreSnapshot=!0),this._applyUpdates()),this._pendingBackupRebase=!1,this._appliedOptimisticUpdates.size>0?this._gcHold||(this._gcHold=this._store.holdGC()):this._gcHold&&(this._gcHold.dispose(),this._gcHold=null),this._store.notify(e,r)},t._publishSourceFromPayload=function(e){var t=this,r=e.payload,n=e.operation,i=e.updater,l=r.source,u=r.fieldPayloads,d=new a(this._store.getSource(),l),h=new s(d,this._getDataID,this._handlerProvider,this._missingFieldHandlers);if(u&&u.length&&u.forEach((function(e){var r=t._handlerProvider&&t._handlerProvider(e.handle);r||c(!1),r.update(h,e)})),i){var f=n.fragment;null==f&&c(!1),i(new o(d,h,f,this._missingFieldHandlers),_(l,f))}var p=h.getIDsMarkedForInvalidation();return this._store.publish(l,p),h.isStoreMarkedForInvalidation()},t._commitData=function(){var e=this;if(!this._pendingData.size)return!1;var t=!1;return this._pendingData.forEach((function(r){if("payload"===r.kind){var n=e._publishSourceFromPayload(r);t=t||n}else if("source"===r.kind){var i=r.source;e._store.publish(i)}else{var o=r.updater,l=u.create(),c=new a(e._store.getSource(),l),d=new s(c,e._getDataID,e._handlerProvider,e._missingFieldHandlers);h(o,null,[d],null,"RelayPublishQueue:commitData"),t=t||d.isStoreMarkedForInvalidation();var f=d.getIDsMarkedForInvalidation();e._store.publish(l,f)}})),this._pendingData.clear(),t},t._applyUpdates=function(){var e=this,t=u.create(),r=new a(this._store.getSource(),t),n=new s(r,this._getDataID,this._handlerProvider,this._missingFieldHandlers),i=function(t){if(t.storeUpdater){var i=t.storeUpdater;h(i,null,[n],null,"RelayPublishQueue:applyUpdates")}else{var a=t.operation,s=t.payload,l=t.updater,u=s.source,c=s.fieldPayloads;if(u&&n.publishSource(u,c),l){var d;u&&(d=_(u,a.fragment));var f=new o(r,n,a.fragment,e._missingFieldHandlers);h(l,null,[f,d],null,"RelayPublishQueue:applyUpdates")}}};this._pendingBackupRebase&&this._appliedOptimisticUpdates.size&&this._appliedOptimisticUpdates.forEach(i),this._pendingOptimisticUpdates.size&&(this._pendingOptimisticUpdates.forEach((function(t){i(t),e._appliedOptimisticUpdates.add(t)})),this._pendingOptimisticUpdates.clear()),this._store.publish(t)},e}();function _(e,t){return l.read(e,t).data}e.exports=f},6973:(e,t,r)=>{var n=r(5275).default,i=n(r(6175)),a=n(r(311)),s=n(r(5264)),o=n(r(5765)),l=n(r(642)),u=["message"],c=r(8941).isSuspenseSentinel,d=r(129),h=r(7105),f=r(5165),_=f.CLIENT_EDGE_TRAVERSAL_PATH,p=f.FRAGMENT_OWNER_KEY,v=f.FRAGMENT_PROP_NAME_KEY,g=f.FRAGMENTS_KEY,m=f.ID_KEY,y=f.MODULE_COMPONENT_KEY,R=f.ROOT_ID,b=f.getArgumentValues,E=f.getModuleComponentKey,I=f.getStorageKey,S=r(4537).NoopResolverCache,D=r(890),k=D.RESOLVER_FRAGMENT_ERRORED_SENTINEL,A=D.withResolverContext,F=r(975).generateTypeID,T=r(5056);function O(e,t,r,n){return new P(e,t,null!=r?r:new S,n).read()}var P=function(){function e(e,t,r,n){var i,a;this._clientEdgeTraversalPath=null!==(i=t.clientEdgeTraversalPath)&&void 0!==i&&i.length?(0,l.default)(t.clientEdgeTraversalPath):[],this._missingClientEdges=[],this._missingLiveResolverFields=[],this._isMissingData=!1,this._isWithinUnmatchedTypeRefinement=!1,this._errorResponseFields=null,this._owner=t.owner,this._useExecTimeResolvers=null!==(a=this._owner.node.operation.use_exec_time_resolvers)&&void 0!==a&&a,this._recordSource=e,this._seenRecords=new Set,this._selector=t,this._variables=t.variables,this._resolverCache=r,this._fragmentName=t.node.name,this._updatedDataIDs=new Set,this._resolverContext=n}var t=e.prototype;return t.read=function(){var e,t=this._selector,r=t.node,n=t.dataID,i=t.isWithinUnmatchedTypeRefinement,a=r.abstractKey,s=this._recordSource.get(n),o=!i;o&&null==a&&null!=s&&(this._recordMatchesTypeCondition(s,r.type)||(o=!1)),o&&null!=a&&null!=s&&!1===this._implementsInterface(s,a)&&(o=!1),this._isWithinUnmatchedTypeRefinement=!o;var l=this._traverse(r,n,null),u=null===(e=this._selector.node.metadata)||void 0===e?void 0:e.catchTo;return null!=u&&(l=this._catchErrors(l,u,null)),this._updatedDataIDs.size>0&&(this._resolverCache.notifyUpdatedSubscribers(this._updatedDataIDs),this._updatedDataIDs.clear()),{data:l,isMissingData:this._isMissingData&&o,missingClientEdges:this._missingClientEdges.length?this._missingClientEdges:null,missingLiveResolverFields:this._missingLiveResolverFields,seenRecords:this._seenRecords,selector:this._selector,errorResponseFields:this._errorResponseFields}},t._maybeAddErrorResponseFields=function(e,t){var r=h.getErrors(e,t);if(null!=r){var n=this._fragmentName;null==this._errorResponseFields&&(this._errorResponseFields=[]);var i,a=(0,o.default)(r);try{for(a.s();!(i=a.n()).done;){var s,l,u,c=i.value;this._errorResponseFields.push({kind:"relay_field_payload.error",owner:n,fieldPath:(null!==(s=c.path)&&void 0!==s?s:[]).join("."),error:c,shouldThrow:null!==(l=null===(u=this._selector.node.metadata)||void 0===u?void 0:u.throwOnFieldError)&&void 0!==l&&l,handled:!1})}}catch(e){a.e(e)}finally{a.f()}}},t._markDataAsMissing=function(e){var t,r;if(!this._isWithinUnmatchedTypeRefinement){null==this._errorResponseFields&&(this._errorResponseFields=[]);var n=this._fragmentName;if(this._errorResponseFields.push(null!==(t=null===(r=this._selector.node.metadata)||void 0===r?void 0:r.throwOnFieldError)&&void 0!==t&&t?{kind:"missing_expected_data.throw",owner:n,fieldPath:e,handled:!1}:{kind:"missing_expected_data.log",owner:n,fieldPath:e}),this._isMissingData=!0,this._clientEdgeTraversalPath.length){var i=this._clientEdgeTraversalPath[this._clientEdgeTraversalPath.length-1];null!==i&&this._missingClientEdges.push({request:i.readerClientEdge.operation,clientEdgeDestinationID:i.clientEdgeDestinationID})}}},t._traverse=function(e,t,r){var n=this._recordSource.get(t);if(this._seenRecords.add(t),null==n)return void 0===n&&this._markDataAsMissing("<record>"),n;var i=r||{};return this._traverseSelections(e.selections,n,i)?i:null},t._getVariableValue=function(e){return this._variables.hasOwnProperty(e)||T(!1),this._variables[e]},t._maybeReportUnexpectedNull=function(e){if("NONE"!==e.action){var t,r,n,i=this._fragmentName;switch(null==this._errorResponseFields&&(this._errorResponseFields=[]),t=null!=e.field.linkedField?null!==(r=e.field.linkedField.alias)&&void 0!==r?r:e.field.linkedField.name:null!==(n=e.field.alias)&&void 0!==n?n:e.field.name,e.action){case"THROW":return void this._errorResponseFields.push({kind:"missing_required_field.throw",fieldPath:t,owner:i,handled:!1});case"LOG":return void this._errorResponseFields.push({kind:"missing_required_field.log",fieldPath:t,owner:i});default:e.action}}},t._handleRequiredFieldValue=function(e,t){return null!=t||(this._maybeReportUnexpectedNull(e),!1)},t._catchErrors=function(e,t,r){var n=e;switch(t){case"RESULT":n=this._asResult(e);break;case"NULL":null!=this._errorResponseFields&&this._errorResponseFields.length>0&&(n=null)}var i=this._errorResponseFields;if(this._errorResponseFields=r,null!=i){null==this._errorResponseFields&&(this._errorResponseFields=[]);for(var a=0;a<i.length;a++)this._errorResponseFields.push(C(i[a]))}return n},t._asResult=function(e){return null==this._errorResponseFields||0===this._errorResponseFields.length?{ok:!0,value:e}:{ok:!1,errors:this._errorResponseFields.map((function(e){switch(e.kind){case"relay_field_payload.error":var t=e.error;return t.message,(0,s.default)(t,u);case"missing_expected_data.throw":case"missing_expected_data.log":return{path:e.fieldPath.split(".")};case"relay_resolver.error":return{message:"Relay: Error in resolver for field at ".concat(e.fieldPath," in ").concat(e.owner)};case"missing_required_field.throw":return{message:"Relay: Missing @required value at path '".concat(e.fieldPath,"' in '").concat(e.owner,"'.")};case"missing_required_field.log":return null;default:e.kind,T(!1)}})).filter(Boolean)}},t._traverseSelections=function(e,t,r){for(var n=0;n<e.length;n++){var i=e[n];switch(i.kind){case"RequiredField":var a=this._readClientSideDirectiveField(i,t,r);if(!this._handleRequiredFieldValue(i,a))return!1;break;case"CatchField":var s,o,l,u=this._errorResponseFields;this._errorResponseFields=null;var c=this._readClientSideDirectiveField(i,t,r),d=null!==(s=null===(o=i.field)||void 0===o?void 0:o.backingField)&&void 0!==s?s:i.field,h=null!==(l=null==d?void 0:d.alias)&&void 0!==l?l:null==d?void 0:d.name;null==h&&T(!1),r[h]=this._catchErrors(c,i.to,u);break;case"ScalarField":this._readScalar(i,t,r);break;case"LinkedField":i.plural?this._readPluralLink(i,t,r):this._readLink(i,t,r);break;case"Condition":if(Boolean(this._getVariableValue(i.condition))===i.passingValue&&!this._traverseSelections(i.selections,t,r))return!1;break;case"InlineFragment":if(!1===this._readInlineFragment(i,t,r,!1))return!1;break;case"RelayLiveResolver":case"RelayResolver":this._useExecTimeResolvers?this._readScalar(i,t,r):this._readResolverField(i,t,r);break;case"FragmentSpread":this._createFragmentPointer(i,t,r);break;case"AliasedInlineFragmentSpread":this._readAliasedInlineFragment(i,t,r);break;case"ModuleImport":this._readModuleImport(i,t,r);break;case"InlineDataFragmentSpread":this._createInlineDataOrResolverFragmentPointer(i,t,r);break;case"Defer":case"ClientExtension":var f=this._isMissingData,_=this._missingClientEdges.length;this._clientEdgeTraversalPath.push(null);var p=this._traverseSelections(i.selections,t,r);if(this._isMissingData=f||this._missingClientEdges.length>_||this._missingLiveResolverFields.length>0,this._clientEdgeTraversalPath.pop(),!p)return!1;break;case"Stream":if(!this._traverseSelections(i.selections,t,r))return!1;break;case"ActorChange":this._readActorChange(i,t,r);break;case"ClientEdgeToClientObject":case"ClientEdgeToServerObject":if(!this._useExecTimeResolvers||"RelayResolver"!==i.backingField.kind&&"RelayLiveResolver"!==i.backingField.kind)this._readClientEdge(i,t,r);else{var v=i.linkedField;v.plural?this._readPluralLink(v,t,r):this._readLink(v,t,r)}break;default:T(!1)}}return!0},t._readClientSideDirectiveField=function(e,t,r){switch(e.field.kind){case"ScalarField":return this._readScalar(e.field,t,r);case"LinkedField":return e.field.plural?this._readPluralLink(e.field,t,r):this._readLink(e.field,t,r);case"RelayResolver":case"RelayLiveResolver":return this._readResolverField(e.field,t,r);case"ClientEdgeToClientObject":case"ClientEdgeToServerObject":return this._readClientEdge(e.field,t,r);case"AliasedInlineFragmentSpread":return this._readAliasedInlineFragment(e.field,t,r);default:e.field.kind,T(!1)}},t._readResolverField=function(e,t,r){var n,i=h.getDataID(t),a=this._errorResponseFields;this._errorResponseFields=null;var s=this._readResolverFieldImpl(e,i),o=null!==(n=e.alias)&&void 0!==n?n:e.name;return this._prependPreviousErrors(a,o),r[o]=s,s},t._readResolverFieldImpl=function(e,t){var r,n=this,i=e.fragment,s=function(e){return null!=r?{data:r.data,isMissingData:r.isMissingData,errorResponseFields:r.errorResponseFields}:{data:(r=O(n._recordSource,e,n._resolverCache)).data,isMissingData:r.isMissingData,errorResponseFields:r.errorResponseFields}},o=this._resolverCache.readFromCacheOrEvaluate(t,e,this._variables,(function(){if(null!=i){var o={__id:t,__fragmentOwner:n._owner,__fragments:(0,a.default)({},i.name,i.args?b(i.args,n._variables):{})};return A({getDataForResolverFragment:s},(function(){var t=L(e,n._variables,o,n._resolverContext),i=t[0],a=t[1];return{resolverResult:i,snapshot:r,error:a}}))}var l=L(e,n._variables,null,n._resolverContext);return{resolverResult:l[0],snapshot:void 0,error:l[1]}}),s),l=o[0],u=o[1],c=o[2],d=o[3],h=o[4],f=o[5];return this._propagateResolverMetadata(e.path,d,c,u,h,f),l},t._propagateResolverMetadata=function(e,t,r,n,i,a){if(null!=t){if(null!=t.missingClientEdges){var s,l=(0,o.default)(t.missingClientEdges);try{for(l.s();!(s=l.n()).done;){var u=s.value;this._missingClientEdges.push(u)}}catch(e){l.e(e)}finally{l.f()}}if(null!=t.missingLiveResolverFields){this._isMissingData=this._isMissingData||t.missingLiveResolverFields.length>0;var c,d=(0,o.default)(t.missingLiveResolverFields);try{for(d.s();!(c=d.n()).done;){var h=c.value;this._missingLiveResolverFields.push(h)}}catch(e){d.e(e)}finally{d.f()}}if(null!=t.errorResponseFields){null==this._errorResponseFields&&(this._errorResponseFields=[]);var f,_=(0,o.default)(t.errorResponseFields);try{for(_.s();!(f=_.n()).done;){var p,v=f.value;!0===(null===(p=this._selector.node.metadata)||void 0===p?void 0:p.throwOnFieldError)?this._errorResponseFields.push(v):this._errorResponseFields.push(C(v))}}catch(e){_.e(e)}finally{_.f()}}this._isMissingData=this._isMissingData||t.isMissingData}if(r){var g,m,y={kind:"relay_resolver.error",fieldPath:e,owner:this._fragmentName,error:r,shouldThrow:null!==(g=null===(m=this._selector.node.metadata)||void 0===m?void 0:m.throwOnFieldError)&&void 0!==g&&g,handled:!1};null==this._errorResponseFields?this._errorResponseFields=[y]:this._errorResponseFields.push(y)}if(null!=n&&this._seenRecords.add(n),null!=i&&(this._isMissingData=!0,this._missingLiveResolverFields.push(i)),null!=a){var R,b=(0,o.default)(a);try{for(b.s();!(R=b.n()).done;){var E=R.value;this._updatedDataIDs.add(E)}}catch(e){b.e(e)}finally{b.f()}}},t._readClientEdge=function(e,t,r){var n,i=this,a=e.backingField;"ClientExtension"===a.kind&&T(!1);var s=null!==(n=a.alias)&&void 0!==n?n:a.name,o={};this._traverseSelections([a],t,o);var l=o[s];if(null==l||c(l))return r[s]=l,l;if(e.linkedField.plural){var u;Array.isArray(l)||T(!1),"ClientEdgeToClientObject"!==e.kind&&T(!1),u=null==e.backingField.normalizationInfo?l.map((function(t){var r,n=null!==(r=e.concreteType)&&void 0!==r?r:t.__typename;"string"!=typeof n&&T(!1);var s=N(t,a.path,i._owner.identifier),o=i._resolverCache.ensureClientRecord(s,n),l=e.modelResolvers;if(null!=l){var u=l[n];return void 0===u&&T(!1),null!=i._readResolverFieldImpl(u,o)?o:null}return o})):l.map((function(e){return N(e,a.path,i._owner.identifier)})),this._clientEdgeTraversalPath.push(null);var d=this._readLinkedIds(e.linkedField,u,t,r);return this._clientEdgeTraversalPath.pop(),r[s]=d,d}var h,f,_,p=N(l,a.path,this._owner.identifier),v=null!==(h=e.concreteType)&&void 0!==h?h:l.__typename;"ClientEdgeToClientObject"===e.kind?null==e.backingField.normalizationInfo?("string"!=typeof v&&T(!1),f=this._resolverCache.ensureClientRecord(p,v),_=null):(f=p,_=null):(f=p,_={readerClientEdge:e,clientEdgeDestinationID:p});var g=e.modelResolvers;if(null!=g){"string"!=typeof v&&T(!1);var m=g[v];if(void 0===m&&T(!1),null==this._readResolverFieldImpl(m,f))return r[s]=null,null}this._clientEdgeTraversalPath.push(_);var y=r[s];null!=y&&"object"!=typeof y&&T(!1);var R=this._errorResponseFields;this._errorResponseFields=null;var b=this._traverse(e.linkedField,f,y);return this._prependPreviousErrors(R,s),this._clientEdgeTraversalPath.pop(),r[s]=b,b},t._readScalar=function(e,t,r){var n,i=null!==(n=e.alias)&&void 0!==n?n:e.name,a=I(e,this._variables),s=h.getValue(t,a);return null===s?this._maybeAddErrorResponseFields(t,a):void 0===s&&this._markDataAsMissing(i),r[i]=s,s},t._readLink=function(e,t,r){var n,i=null!==(n=e.alias)&&void 0!==n?n:e.name,a=I(e,this._variables),s=h.getLinkedRecordID(t,a);if(null==s)return r[i]=s,null===s?this._maybeAddErrorResponseFields(t,a):void 0===s&&this._markDataAsMissing(i),s;var o=r[i];null!=o&&"object"!=typeof o&&T(!1);var l=this._errorResponseFields;this._errorResponseFields=null;var u=this._traverse(e,s,o);return this._prependPreviousErrors(l,i),r[i]=u,u},t._prependPreviousErrors=function(e,t){if(null!=this._errorResponseFields){for(var r=0;r<this._errorResponseFields.length;r++){var n=this._errorResponseFields[r];n.owner!==this._fragmentName||"missing_expected_data.throw"!==n.kind&&"missing_expected_data.log"!==n.kind&&"missing_required_field.throw"!==n.kind&&"missing_required_field.log"!==n.kind||(n.fieldPath="".concat(t,".").concat(n.fieldPath))}if(null!=e){for(var i=this._errorResponseFields.length-1;i>=0;i--)e.push(this._errorResponseFields[i]);this._errorResponseFields=e}}else this._errorResponseFields=e},t._readActorChange=function(e,t,r){var n,i=null!==(n=e.alias)&&void 0!==n?n:e.name,a=I(e,this._variables),s=h.getActorLinkedRecordID(t,a);if(null==s)return r[i]=s,void 0===s?this._markDataAsMissing(i):null===s&&this._maybeAddErrorResponseFields(t,a),r[i];var o=s[0],l=s[1],u={};return this._createFragmentPointer(e.fragmentSpread,h.fromObject({__id:l}),u),r[i]={__fragmentRef:u,__viewer:o},r[i]},t._readPluralLink=function(e,t,r){var n=I(e,this._variables),i=h.getLinkedRecordIDs(t,n);return null===i&&this._maybeAddErrorResponseFields(t,n),this._readLinkedIds(e,i,t,r)},t._readLinkedIds=function(e,t,r,n){var i,a=this,s=null!==(i=e.alias)&&void 0!==i?i:e.name;if(null==t)return n[s]=t,void 0===t&&this._markDataAsMissing(s),t;var o=n[s];null==o||Array.isArray(o)||T(!1);var l=this._errorResponseFields;this._errorResponseFields=null;var u=o||[];return t.forEach((function(t,r){if(null==t)return void 0===t&&a._markDataAsMissing(String(r)),void(u[r]=t);var n=u[r];null!=n&&"object"!=typeof n&&T(!1);var i=a._errorResponseFields;a._errorResponseFields=null,u[r]=a._traverse(e,t,n),a._prependPreviousErrors(i,r)})),this._prependPreviousErrors(l,s),n[s]=u,u},t._readModuleImport=function(e,t,r){var n,i=E(e.documentName),a=null!==(n=e.componentModuleProvider)&&void 0!==n?n:h.getValue(t,i);null!=a?(this._createFragmentPointer({kind:"FragmentSpread",name:e.fragmentName,args:e.args},t,r),r[v]=e.fragmentPropName,r[y]=a):void 0===a&&this._markDataAsMissing("<module-import>")},t._readAliasedInlineFragment=function(e,t,r){var n=this._errorResponseFields;this._errorResponseFields=null;var i=this._readInlineFragment(e.fragment,t,{},!0);this._prependPreviousErrors(n,e.name),!1===i&&(i=null),r[e.name]=i},t._readInlineFragment=function(e,t,r,n){if(null==e.type)return!1!==this._traverseSelections(e.selections,t,r)&&r;var i=e.abstractKey;if(null==i){if(!this._recordMatchesTypeCondition(t,e.type))return null;if(!this._traverseSelections(e.selections,t,r))return!1}else{var a=this._implementsInterface(t,i);if(!1===a&&n)return null;var s=this._isMissingData,o=this._isWithinUnmatchedTypeRefinement;this._isWithinUnmatchedTypeRefinement=o||!1===a;var l=this._traverseSelections(e.selections,t,r);if(this._isWithinUnmatchedTypeRefinement=o,!1===a)return this._isMissingData=s,null;if(null==a)return;if(!1===l)return!1}return r},t._recordMatchesTypeCondition=function(e,t){var r=h.getType(e);return null!=r&&r===t||h.getDataID(e)===R},t._createFragmentPointer=function(e,t,r){var n=r[g];null==n&&(n=r[g]={}),("object"!=typeof n||null==n)&&T(!1),null==r[m]&&(r[m]=h.getDataID(t)),n[e.name]=b(e.args,this._variables,this._isWithinUnmatchedTypeRefinement),r[p]=this._owner,this._clientEdgeTraversalPath.length>0&&null!==this._clientEdgeTraversalPath[this._clientEdgeTraversalPath.length-1]&&(r[_]=(0,l.default)(this._clientEdgeTraversalPath))},t._createInlineDataOrResolverFragmentPointer=function(e,t,r){var n=r[g];null==n&&(n=r[g]={}),("object"!=typeof n||null==n)&&T(!1),null==r[m]&&(r[m]=h.getDataID(t));var i={},a=this._fragmentName;this._fragmentName=e.name;var s=this._variables,o=e.args?b(e.args,this._variables):{};this._variables=d.getFragmentVariables(e,this._owner.variables,o),this._traverseSelections(e.selections,t,i),this._variables=s,this._fragmentName=a,n[e.name]=i},t._implementsInterface=function(e,t){var r=h.getType(e),n=this._recordSource.get(F(r)),i=null!=n?h.getValue(n,t):null;return null==i&&this._markDataAsMissing("<abstract-type-hint>"),i},e}();function C(e){switch(e.kind){case"missing_expected_data.throw":case"missing_required_field.throw":case"relay_field_payload.error":case"relay_resolver.error":return(0,i.default)((0,i.default)({},e),{},{handled:!0});case"missing_expected_data.log":case"missing_required_field.log":return e;default:e.kind,T(!1)}}function L(e,t,r,n){var i="function"==typeof e.resolverModule?e.resolverModule:e.resolverModule.default,a=null,s=null;try{var o=[];null!=e.fragment&&o.push(r);var l=e.args?b(e.args,t):void 0;o.push(l),o.push(n),a=i.apply(null,o)}catch(e){a=null,e!==k&&(s=e)}return[a,s]}function N(e,t,r){return"string"==typeof e?e:"object"==typeof e&&null!=e&&"string"==typeof e.id?e.id:void T(!1)}e.exports={read:O}},6938:(e,t,r)=>{var n=(0,r(5275).default)(r(5765)),i=r(7105),a=r(7148),s=a.EXISTENT,o=a.NONEXISTENT,l=a.UNKNOWN,u=function(){function e(e){var t=this;this._records=new Map,null!=e&&Object.keys(e).forEach((function(r){var n=e[r],a=i.fromObject(n);t._records.set(r,a)}))}e.create=function(t){return new e(t)};var t=e.prototype;return t.clear=function(){this._records=new Map},t.delete=function(e){this._records.set(e,null)},t.get=function(e){return this._records.get(e)},t.getRecordIDs=function(){return Array.from(this._records.keys())},t.getStatus=function(e){return this._records.has(e)?null==this._records.get(e)?o:s:l},t.has=function(e){return this._records.has(e)},t.remove=function(e){this._records.delete(e)},t.set=function(e,t){this._records.set(e,t)},t.size=function(){return this._records.size},t.toJSON=function(){var e,t={},r=(0,n.default)(this._records);try{for(r.s();!(e=r.n()).done;){var a=e.value,s=a[0],o=a[1];t[s]=i.toJSON(o)}}catch(e){r.e(e)}finally{r.f()}return t},e}();e.exports=u},7148:e=>{e.exports={EXISTENT:"EXISTENT",NONEXISTENT:"NONEXISTENT",UNKNOWN:"UNKNOWN"}},1563:(e,t,r)=>{var n=(0,r(5275).default)(r(5765)),i=r(2881),a=r(4293),s=r(2120),o=r(129).getLocalVariables,l=r(7105),u=r(5165),c=r(975).generateTypeID,d=r(5056),h=u.getStorageKey,f=u.getModuleOperationKey,_=function(){function e(e,t,r,n,i){this._operationLoader=null!=n?n:null,this._operationName=null,this._recordSource=e,this._references=r,this._variables=t,this._shouldProcessClientComponents=i}var t=e.prototype;return t.mark=function(e,t){"Operation"!==e.kind&&"SplitOperation"!==e.kind||(this._operationName=e.name),this._traverse(e,t)},t._traverse=function(e,t){this._references.add(t);var r=this._recordSource.get(t);null!=r&&this._traverseSelections(e.selections,r)},t._getVariableValue=function(e){return this._variables.hasOwnProperty(e)||d(!1),this._variables[e]},t._traverseSelections=function(e,t){var r=this;e.forEach((function(n){switch(n.kind){case"ActorChange":r._traverseLink(n.linkedField,t);break;case"LinkedField":n.plural?r._traversePluralLink(n,t):r._traverseLink(n,t);break;case"Condition":Boolean(r._getVariableValue(n.condition))===n.passingValue&&r._traverseSelections(n.selections,t);break;case"InlineFragment":if(null==n.abstractKey){var i=l.getType(t);(null!=i&&i===n.type||i===u.ROOT_TYPE)&&r._traverseSelections(n.selections,t)}else{var s=l.getType(t),h=c(s);r._references.add(h),r._traverseSelections(n.selections,t)}break;case"FragmentSpread":var f=r._variables;r._variables=o(r._variables,n.fragment.argumentDefinitions,n.args),r._traverseSelections(n.fragment.selections,t),r._variables=f;break;case"LinkedHandle":var _=a(n,e,r._variables);_.plural?r._traversePluralLink(_,t):r._traverseLink(_,t);break;case"Defer":case"Stream":case"ClientExtension":r._traverseSelections(n.selections,t);break;case"ScalarField":case"ScalarHandle":break;case"TypeDiscriminator":var p=l.getType(t),v=c(p);r._references.add(v);break;case"ModuleImport":r._traverseModuleImport(n,t);break;case"ClientComponent":if(!1===r._shouldProcessClientComponents)break;r._traverseSelections(n.fragment.selections,t);break;case"RelayResolver":case"RelayLiveResolver":r._traverseResolverField(n,t);break;case"ClientEdgeToClientObject":r._traverseClientEdgeToClientObject(n,t);break;default:d(!1)}}))},t._traverseClientEdgeToClientObject=function(e,t){var r=this._traverseResolverField(e.backingField,t);if(null!=r){var i=this._recordSource.get(r);if(null!=i)if(e.backingField.isOutputType){var a=s(i);if(null!=a){var o,u=(0,n.default)(a);try{for(u.s();!(o=u.n()).done;){var c=o.value;this._references.add(c)}}catch(e){u.e(e)}finally{u.f()}}}else{var d=e.linkedField,h=d.concreteType;if(null==h)return;if(d.plural){var f=l.getResolverLinkedRecordIDs(i,h);if(null!=f){var _,p=(0,n.default)(f);try{for(p.s();!(_=p.n()).done;){var v=_.value;null!=v&&this._traverse(d,v)}}catch(e){p.e(e)}finally{p.f()}}}else{var g=l.getResolverLinkedRecordID(i,h);null!=g&&this._traverse(d,g)}}}},t._traverseResolverField=function(e,t){var r=h(e,this._variables),n=l.getLinkedRecordID(t,r);null!=n&&this._references.add(n);var i=e.fragment;return null!=i&&this._traverseSelections([i],t),n},t._traverseModuleImport=function(e,t){var r=this._operationLoader;null===r&&d(!1);var n=f(e.documentName),a=l.getValue(t,n);if(null!=a){var s=r.get(a);if(null!=s){var u=i(s),c=this._variables;this._variables=o(this._variables,u.argumentDefinitions,e.args),this._traverseSelections(u.selections,t),this._variables=c}}},t._traverseLink=function(e,t){var r=h(e,this._variables),n=l.getLinkedRecordID(t,r);null!=n&&this._traverse(e,n)},t._traversePluralLink=function(e,t){var r=this,n=h(e,this._variables),i=l.getLinkedRecordIDs(t,n);null!=i&&i.forEach((function(t){null!=t&&r._traverse(e,t)}))},e}();e.exports={mark:function(e,t,r,n,i){var a=t.dataID,s=t.node,o=t.variables;new _(e,o,r,n,i).mark(s,a)}}},5549:(e,t,r)=>{var n=r(5275).default,i=n(r(5765)),a=n(r(642)),s=r(9336),o=(s.ACTOR_IDENTIFIER_FIELD_NAME,s.getActorIdentifierFromPayload),l=r(6770),u=r(2997),c=u.generateClientID,d=(u.isClientID,r(129).getLocalVariables),h=r(7288),f=h.buildErrorTrie,_=h.getErrorsByKey,p=h.getNestedErrorTrieByKey,v=r(7105),g=r(6256).createNormalizationSelector,m=r(5165),y=(m.ROOT_ID,m.TYPENAME_KEY),R=m.getArgumentValues,b=m.getHandleStorageKey,E=m.getModuleComponentKey,I=m.getModuleOperationKey,S=m.getStorageKey,D=r(975),k=D.TYPE_SCHEMA_TYPE,A=D.generateTypeID,F=(r(9125),r(5056));r(4446);var T=function(){function e(e,t,r){this._actorIdentifier=r.actorIdentifier,this._getDataId=r.getDataID,this._handleFieldPayloads=[],this._treatMissingFieldsAsNull=r.treatMissingFieldsAsNull,this._incrementalPlaceholders=[],this._isClientExtension=!1,this._isUnmatchedAbstractType=!1,this._followupPayloads=[],this._path=r.path?(0,a.default)(r.path):[],this._recordSource=e,this._variables=t,this._shouldProcessClientComponents=r.shouldProcessClientComponents}var t=e.prototype;return t.normalizeResponse=function(e,t,r,n){var i=this._recordSource.get(t);return i||F(!1),this._assignClientAbstractTypes(e),this._errorTrie=f(n),this._traverseSelections(e,i,r),{errors:n,fieldPayloads:this._handleFieldPayloads,incrementalPlaceholders:this._incrementalPlaceholders,followupPayloads:this._followupPayloads,source:this._recordSource,isFinal:!1}},t._assignClientAbstractTypes=function(e){var t=e.clientAbstractTypes;if(null!=t)for(var r=0,n=Object.keys(t);r<n.length;r++){var a,s=n[r],o=(0,i.default)(t[s]);try{for(o.s();!(a=o.n()).done;){var l=a.value,u=A(l),c=this._recordSource.get(u);null==c&&(c=v.create(u,k),this._recordSource.set(u,c)),v.setValue(c,s,!0)}}catch(e){o.e(e)}finally{o.f()}}},t._getVariableValue=function(e){return this._variables.hasOwnProperty(e)||F(!1),this._variables[e]},t._getRecordType=function(e){var t=e[y];return null==t&&F(!1),t},t._traverseSelections=function(e,t,r){for(var n=0;n<e.selections.length;n++){var i=e.selections[n];switch(i.kind){case"ScalarField":case"LinkedField":this._normalizeField(i,t,r);break;case"Condition":Boolean(this._getVariableValue(i.condition))===i.passingValue&&this._traverseSelections(i,t,r);break;case"FragmentSpread":var a=this._variables;this._variables=d(this._variables,i.fragment.argumentDefinitions,i.args),this._traverseSelections(i.fragment,t,r),this._variables=a;break;case"InlineFragment":var s=i.abstractKey;if(null==s)v.getType(t)===i.type&&this._traverseSelections(i,t,r);else{var o=r.hasOwnProperty(s),l=v.getType(t),u=A(l),c=this._recordSource.get(u);null==c&&(c=v.create(u,k),this._recordSource.set(u,c)),v.setValue(c,s,o),o&&this._traverseSelections(i,t,r)}break;case"TypeDiscriminator":var h=i.abstractKey,f=r.hasOwnProperty(h),_=v.getType(t),p=A(_),g=this._recordSource.get(p);null==g&&(g=v.create(p,k),this._recordSource.set(p,g)),v.setValue(g,h,f);break;case"LinkedHandle":case"ScalarHandle":var m=i.args?R(i.args,this._variables):{},y=S(i,this._variables),E=b(i,this._variables);this._handleFieldPayloads.push({args:m,dataID:v.getDataID(t),fieldKey:y,handle:i.handle,handleKey:E,handleArgs:i.handleArgs?R(i.handleArgs,this._variables):{}});break;case"ModuleImport":this._normalizeModuleImport(i,t,r);break;case"Defer":this._normalizeDefer(i,t,r);break;case"Stream":this._normalizeStream(i,t,r);break;case"ClientExtension":var I=this._isClientExtension;this._isClientExtension=!0,this._traverseSelections(i,t,r),this._isClientExtension=I;break;case"ClientComponent":if(!1===this._shouldProcessClientComponents)break;this._traverseSelections(i.fragment,t,r);break;case"ActorChange":this._normalizeActorChange(i,t,r);break;case"RelayResolver":case"RelayLiveResolver":this._normalizeResolver(i,t,r);break;case"ClientEdgeToClientObject":this._normalizeResolver(i.backingField,t,r);break;default:F(!1)}}},t._normalizeResolver=function(e,t,r){null!=e.fragment&&this._traverseSelections(e.fragment,t,r)},t._normalizeDefer=function(e,t,r){!1===(null===e.if||this._getVariableValue(e.if))?this._traverseSelections(e,t,r):this._incrementalPlaceholders.push({kind:"defer",data:r,label:e.label,path:(0,a.default)(this._path),selector:g(e,v.getDataID(t),this._variables),typeName:v.getType(t),actorIdentifier:this._actorIdentifier})},t._normalizeStream=function(e,t,r){this._traverseSelections(e,t,r),!0===(null===e.if||this._getVariableValue(e.if))&&this._incrementalPlaceholders.push({kind:"stream",label:e.label,path:(0,a.default)(this._path),parentID:v.getDataID(t),node:e,variables:this._variables,actorIdentifier:this._actorIdentifier})},t._normalizeModuleImport=function(e,t,r){"object"==typeof r&&r||F(!1);var n=v.getType(t),i=E(e.documentName),s=e.componentModuleProvider||r[i];v.setValue(t,i,null!=s?s:null);var o=I(e.documentName),l=e.operationModuleProvider||r[o];v.setValue(t,o,null!=l?l:null),null!=l&&this._followupPayloads.push({kind:"ModuleImportPayload",args:e.args,data:r,dataID:v.getDataID(t),operationReference:l,path:(0,a.default)(this._path),typeName:n,variables:this._variables,actorIdentifier:this._actorIdentifier})},t._normalizeField=function(e,t,r){"object"==typeof r&&r||F(!1);var n=e.alias||e.name,i=S(e,this._variables),a=r[n];if(null==a||l.ENABLE_NONCOMPLIANT_ERROR_HANDLING_ON_LISTS&&Array.isArray(a)&&0===a.length){if(void 0===a){if(this._isClientExtension||this._isUnmatchedAbstractType)return;if(!this._treatMissingFieldsAsNull)return}v.setValue(t,i,null);var s=this._errorTrie;if(null!=s){var o=_(s,n);null!=o&&v.setErrors(t,i,o)}}else if("ScalarField"===e.kind)v.setValue(t,i,a);else if("LinkedField"===e.kind){this._path.push(n);var u=this._errorTrie;this._errorTrie=null==u?null:p(u,n),e.plural?this._normalizePluralLink(e,t,i,a):this._normalizeLink(e,t,i,a),this._errorTrie=u,this._path.pop()}else F(!1)},t._normalizeActorChange=function(e,t,r){var n,i=e.linkedField;"object"==typeof r&&r||F(!1);var s=i.alias||i.name,l=S(i,this._variables),u=r[s];if(null!=u){var d=o(u);if(null!=d){var h=null!==(n=i.concreteType)&&void 0!==n?n:this._getRecordType(u),f=this._getDataId(u,h)||v.getLinkedRecordID(t,l)||c(v.getDataID(t),l);"string"!=typeof f&&F(!1),v.setActorLinkedRecordID(t,l,d,f),this._followupPayloads.push({kind:"ActorPayload",data:u,dataID:f,path:[].concat((0,a.default)(this._path),[s]),typeName:h,variables:this._variables,node:i,actorIdentifier:d})}else v.setValue(t,l,null)}else{if(void 0===u){if(this._isClientExtension||this._isUnmatchedAbstractType)return;if(!this._treatMissingFieldsAsNull)return}v.setValue(t,l,null)}},t._normalizeLink=function(e,t,r,n){var i;"object"==typeof n&&n||F(!1);var a=this._getDataId(n,null!==(i=e.concreteType)&&void 0!==i?i:this._getRecordType(n))||v.getLinkedRecordID(t,r)||c(v.getDataID(t),r);"string"!=typeof a&&F(!1),v.setLinkedRecordID(t,r,a);var s=this._recordSource.get(a);if(s);else{var o=e.concreteType||this._getRecordType(n);s=v.create(a,o),this._recordSource.set(a,s)}this._traverseSelections(e,s,n)},t._normalizePluralLink=function(e,t,r,n){var i=this;Array.isArray(n)||F(!1);var a=v.getLinkedRecordIDs(t,r),s=[];n.forEach((function(n,o){var l;if(null!=n){i._path.push(String(o));var u=i._errorTrie;i._errorTrie=null==u?null:p(u,o),"object"!=typeof n&&F(!1);var d=i._getDataId(n,null!==(l=e.concreteType)&&void 0!==l?l:i._getRecordType(n))||a&&a[o]||c(v.getDataID(t),r,o);"string"!=typeof d&&F(!1),s.push(d);var h=i._recordSource.get(d);if(h);else{var f=e.concreteType||i._getRecordType(n);h=v.create(d,f),i._recordSource.set(d,h)}i._traverseSelections(e,h,n),i._errorTrie=u,i._path.pop()}else s.push(n)})),v.setLinkedRecordIDs(t,r,s)},t._validateRecordType=function(e,t,r){var n;null!==(n=t.concreteType)&&void 0!==n||this._getRecordType(r),v.getDataID(e)},t._validateConflictingFieldsWithIdenticalId=function(e,t,r){},t._validateConflictingLinkedFieldsWithIdenticalId=function(e,t,r){},e}();e.exports={normalize:function(e,t,r,n,i){var a=t.dataID,s=t.node,o=t.variables;return new T(e,o,n).normalizeResponse(s,a,r,i)}}},4731:(e,t,r)=>{r(2729);var n=r(5748),i=r(6770),a=r(7629),s=r(8994),o=r(6973),l=function(){function e(e,t,r){this._subscriptions=new Set,this.__log=e,this._resolverCache=t,this._resolverContext=r}var t=e.prototype;return t.subscribe=function(e,t){var r=this,n={backup:null,callback:t,snapshot:e,stale:!1};return this._subscriptions.add(n),{dispose:function(){r._subscriptions.delete(n)}}},t.snapshotSubscriptions=function(e){var t=this;this._subscriptions.forEach((function(r){if(r.stale){var i=r.snapshot,a=o.read(e,i.selector,t._resolverCache,t._resolverContext),s=n(i.data,a.data);a.data=s,r.backup=a}else r.backup=r.snapshot}))},t.restoreSubscriptions=function(){this._subscriptions.forEach((function(e){var t=e.backup;e.backup=null,t?(t.data!==e.snapshot.data&&(e.stale=!0),e.snapshot={data:e.snapshot.data,isMissingData:t.isMissingData,missingClientEdges:t.missingClientEdges,missingLiveResolverFields:t.missingLiveResolverFields,seenRecords:t.seenRecords,selector:t.selector,errorResponseFields:t.errorResponseFields}):e.stale=!0}))},t.updateSubscriptions=function(e,t,r,n){var i=this,a=0!==t.size;this._subscriptions.forEach((function(s){var o=i._updateSubscription(e,s,t,a,n);null!=o&&r.push(o)}))},t._updateSubscription=function(e,t,r,l,u){var c=t.backup,d=t.callback,h=t.snapshot,f=t.stale,_=l&&a(h.seenRecords,r);if(f||_){var p=_||!c?o.read(e,h.selector,this._resolverCache,this._resolverContext):c;return p={data:n(h.data,p.data),isMissingData:p.isMissingData,missingClientEdges:p.missingClientEdges,missingLiveResolverFields:p.missingLiveResolverFields,seenRecords:p.seenRecords,selector:p.selector,errorResponseFields:p.errorResponseFields},t.snapshot=p,t.stale=!1,p.data!==h.data?(this.__log&&i.ENABLE_NOTIFY_SUBSCRIPTION&&this.__log({name:"store.notify.subscription",sourceOperation:u,snapshot:h,nextSnapshot:p}),d(p),h.selector.owner):i.ENABLE_LOOSE_SUBSCRIPTION_ATTRIBUTION&&(f||s(h.seenRecords,r))?h.selector.owner:void 0}},t.size=function(){return this._subscriptions.size},e}();e.exports=l},5165:(e,t,r)=>{var n=(0,r(5275).default)(r(642)),i=r(6330),a=r(3775),s=r(1094).stableCopy,o=r(5056),l=a.VARIABLE,u=a.LITERAL,c=a.OBJECT_VALUE,d=a.LIST_VALUE;function h(e,t){if(e.kind===l)return function(e,t){return t.hasOwnProperty(e)||o(!1),s(t[e])}(e.variableName,t);if(e.kind===u)return e.value;if(e.kind===c){var r={};return e.fields.forEach((function(e){r[e.name]=h(e,t)})),r}if(e.kind===d){var n=[];return e.items.forEach((function(e){null!=e&&n.push(h(e,t))})),n}}function f(e,t,r){var n={};return r&&(n[p.FRAGMENT_POINTER_IS_WITHIN_UNMATCHED_TYPE_REFINEMENT]=!0),e&&e.forEach((function(e){n[e.name]=h(e,t)})),n}function _(e,t){if(!t)return e;var r=[];for(var n in t)if(t.hasOwnProperty(n)){var i,a=t[n];null!=a&&r.push(n+":"+(null!==(i=JSON.stringify(a))&&void 0!==i?i:"undefined"))}return 0===r.length?e:e+"(".concat(r.join(","),")")}var p={ACTOR_IDENTIFIER_KEY:"__actorIdentifier",CLIENT_EDGE_TRAVERSAL_PATH:"__clientEdgeTraversalPath",FRAGMENTS_KEY:"__fragments",FRAGMENT_OWNER_KEY:"__fragmentOwner",FRAGMENT_POINTER_IS_WITHIN_UNMATCHED_TYPE_REFINEMENT:"$isWithinUnmatchedTypeRefinement",FRAGMENT_PROP_NAME_KEY:"__fragmentPropName",MODULE_COMPONENT_KEY:"__module_component",ERRORS_KEY:"__errors",ID_KEY:"__id",REF_KEY:"__ref",REFS_KEY:"__refs",ROOT_ID:"client:root",ROOT_TYPE:"__Root",TYPENAME_KEY:"__typename",INVALIDATED_AT_KEY:"__invalidated_at",RELAY_RESOLVER_VALUE_KEY:"__resolverValue",RELAY_RESOLVER_INVALIDATION_KEY:"__resolverValueMayBeInvalid",RELAY_RESOLVER_SNAPSHOT_KEY:"__resolverSnapshot",RELAY_RESOLVER_ERROR_KEY:"__resolverError",RELAY_RESOLVER_OUTPUT_TYPE_RECORD_IDS:"__resolverOutputTypeRecordIDs",formatStorageKey:_,getArgumentValue:h,getArgumentValues:f,getHandleStorageKey:function(e,t){var r=e.dynamicKey,a=e.handle,s=e.key,o=e.name,l=e.args,u=e.filters,c=i(a,s,o),d=null;return l&&u&&0!==l.length&&0!==u.length&&(d=l.filter((function(e){return u.indexOf(e.name)>-1}))),r&&(d=null!=d?[r].concat((0,n.default)(d)):[r]),null===d?c:_(c,f(d,t))},getStorageKey:function(e,t){if(e.storageKey)return e.storageKey;var r=function(e){var t,r;return"RelayResolver"===e.kind||"RelayLiveResolver"===e.kind?null==e.args?null===(r=e.fragment)||void 0===r?void 0:r.args:null==(null===(t=e.fragment)||void 0===t?void 0:t.args)?e.args:e.args.concat(e.fragment.args):void 0===e.args?void 0:e.args}(e),n=e.name;return r&&0!==r.length?_(n,f(r,t)):n},getStableStorageKey:function(e,t){return _(e,s(t))},getModuleComponentKey:function(e){return"".concat("__module_component_").concat(e)},getModuleOperationKey:function(e){return"".concat("__module_operation_").concat(e)}};e.exports=p},4537:(e,t,r)=>{var n=r(3775).RELAY_LIVE_RESOLVER,i=r(5056),a=function(){function e(){}var t=e.prototype;return t.readFromCacheOrEvaluate=function(e,t,r,a,s){t.kind===n&&i(!1);var o=a(),l=o.resolverResult,u=o.snapshot;return[l,void 0,o.error,u,void 0,void 0]},t.invalidateDataIDs=function(e){},t.ensureClientRecord=function(e,t){i(!1)},t.notifyUpdatedSubscribers=function(e){},e}();e.exports={NoopResolverCache:a}},890:(e,t,r)=>{var n=r(1634).getFragment,i=r(9222).eventShouldThrow,a=r(6256).getSelector,s=r(5056),o=[],l={};e.exports={readFragment:function(e,t){if(!o.length)throw new Error("readFragment should be called only from within a Relay Resolver function.");var r=o[o.length-1],u=n(e),c=a(u,t);null==c&&s(!1),"SingularReaderSelector"!==c.kind&&s(!1);var d=r.getDataForResolverFragment(c,t),h=d.data,f=d.isMissingData,_=d.errorResponseFields;if(f||null!=_&&_.some(i))throw l;return h},withResolverContext:function(e,t){o.push(e);try{return t()}finally{o.pop()}},RESOLVER_FRAGMENT_ERRORED_SENTINEL:l}},975:e=>{var t="client:__type:";e.exports={generateTypeID:function(e){return t+e},isTypeID:function(e){return 0===e.indexOf(t)},TYPE_SCHEMA_TYPE:"__TypeSchema"}},9942:(e,t,r)=>{var n=(0,r(2997).generateClientID)(r(5165).ROOT_ID,"viewer");e.exports={VIEWER_ID:n,VIEWER_TYPE:"Viewer"}},4293:(e,t,r)=>{var n=r(3775).LINKED_FIELD,i=r(5165).getHandleStorageKey,a=r(9125),s=r(5056);e.exports=function(e,t,r){var o=t.find((function(t){return t.kind===n&&t.name===e.name&&t.alias===e.alias&&a(t.args,e.args)}));o&&o.kind===n||s(!1);var l=i(e,r);return{kind:"LinkedField",alias:o.alias,name:l,storageKey:l,args:null,concreteType:o.concreteType,plural:o.plural,selections:o.selections}}},6159:(e,t,r)=>{var n=r(3775).SCALAR_FIELD,i=r(5165).getHandleStorageKey,a=r(9125),s=r(5056);e.exports=function(e,t,r){var o=t.find((function(t){return t.kind===n&&t.name===e.name&&t.alias===e.alias&&a(t.args,e.args)}));o&&o.kind===n||s(!1);var l=i(e,r);return{kind:"ScalarField",alias:o.alias,name:l,storageKey:l,args:null}}},4819:(e,t,r)=>{var n=r(5457);r(4446),e.exports=function(e,t,r,i,a,s){return new n(e,r,i,s,a)}},4051:(e,t,r)=>{var n,i,a=r(5056);e.exports=function(e){return n||(n=e.createContext(null),i=e),e!==i&&a(!1),n}},5053:(e,t,r)=>{var n=r(9942),i=n.VIEWER_ID,a=n.VIEWER_TYPE;e.exports=function(e,t){return t===a&&null==e.id?i:e.id}},7097:e=>{e.exports=function(e){}},7629:e=>{var t=Symbol.iterator;e.exports=function(e,r){for(var n=e[t](),i=n.next();!i.done;){var a=i.value;if(r.has(a))return!0;i=n.next()}return!1}},8994:(e,t,r)=>{var n=r(5165).ROOT_ID,i=r(9942).VIEWER_ID,a=Symbol.iterator;e.exports=function(e,t){for(var r=e[a](),s=r.next();!s.done;){var o=s.value;if(t.has(o)&&o!==n&&o!==i)return!0;s=r.next()}return!1}},54:e=>{e.exports=function(e){return Boolean(e&&e["@@RelayModernEnvironment"])}},2511:(e,t,r)=>{var n=(0,r(5275).default)(r(5765)),i=r(5748),a=r(3775).RELAY_LIVE_RESOLVER,s=r(6770),o=r(5068),l=r(2997),u=l.generateClientID,c=l.generateClientObjectClientID,d=r(7105),h=r(6256).createNormalizationSelector,f=r(6938),_=r(5549).normalize,p=r(5165),v=p.RELAY_RESOLVER_ERROR_KEY,g=p.RELAY_RESOLVER_INVALIDATION_KEY,m=p.RELAY_RESOLVER_OUTPUT_TYPE_RECORD_IDS,y=p.RELAY_RESOLVER_SNAPSHOT_KEY,R=p.RELAY_RESOLVER_VALUE_KEY,b=p.getStorageKey,E=r(2120),I=r(7623),S=r(8941).isSuspenseSentinel,D=r(5056),k=(r(4446),"__resolverLiveStateSubscription"),A="__resolverLiveStateValue",F="__resolverLiveStateDirty",T="__RELAY_RESOLVER__";function O(e,t,r){var n=e.get(t);n||(n=new Set,e.set(t,n)),n.add(r)}var P=function(){function e(e,t){this._resolverIDToRecordIDs=new Map,this._recordIDToResolverIDs=new Map,this._getRecordSource=e,this._store=t,this._handlingBatch=!1,this._liveResolverBatchRecordSource=null}var t=e.prototype;return t.readFromCacheOrEvaluate=function(e,t,r,i,s){var o,l=this._getRecordSource(),c=M(l,e),h=b(t,r),f=d.getLinkedRecordID(c,h),_=null==f?null:l.get(f);if(null==_||this._isInvalid(_,s)){var p;null!=_&&x(_),f=null!==(p=f)&&void 0!==p?p:u(e,h),_=d.create(f,T);var g=i();if(d.setValue(_,y,g.snapshot),d.setValue(_,v,g.error),t.kind===a){if(null!=g.resolverResult){null!=g.error&&D(!1);var m=g.resolverResult;o=this._setLiveStateValue(_,f,m,t,r)}}else o=this._setResolverValue(_,g.resolverResult,t,r);l.set(f,_);var R=M(l,e),E=d.clone(R);if(d.setLinkedRecordID(E,h,f),l.set(e,E),null!=t.fragment){var k,P=b(t.fragment,r),C=u(e,P);O(this._resolverIDToRecordIDs,C,f),O(this._recordIDToResolverIDs,e,C);var L=null===(k=g.snapshot)||void 0===k?void 0:k.seenRecords;if(null!=L){var N,w=(0,n.default)(L);try{for(w.s();!(N=w.n()).done;){var V=N.value;O(this._recordIDToResolverIDs,V,C)}}catch(e){w.e(e)}finally{w.f()}}}}else if(t.kind===a&&d.getValue(_,F)){var U;f=null!==(U=f)&&void 0!==U?U:u(e,h),_=d.clone(_);var j=d.getValue(_,A);I(j)||D(!1),o=this._setLiveResolverValue(_,j,t,r),d.setValue(_,F,!1),l.set(f,_)}var K,q=this._getResolverValue(_),Y=d.getValue(_,y),B=d.getValue(_,v),z=null;return S(q)&&(z=null!==(K=f)&&void 0!==K?K:u(e,h)),[q,f,B,Y,z,o]},t.getLiveResolverPromise=function(e){var t=this._getRecordSource().get(e);null==t&&D(!1);var r=d.getValue(t,A);return new Promise((function(e){var t=r.subscribe((function(){t(),e()}))}))},t._setLiveStateValue=function(e,t,r,n,i){var a=this._makeLiveStateHandler(t),s=r.subscribe(a);d.setValue(e,A,r);var o=this._setLiveResolverValue(e,r,n,i);return d.setValue(e,F,!1),d.setValue(e,k,s),o},t._makeLiveStateHandler=function(e){var t=this;return function(){var r=t._getRecordSource().get(e);if(r&&d.hasValue(r,A)){var n=d.clone(r);d.setValue(n,F,!0),t._setLiveResolverUpdate(e,n)}}},t._setLiveResolverUpdate=function(e,t){if(this._handlingBatch)null==this._liveResolverBatchRecordSource&&(this._liveResolverBatchRecordSource=f.create()),this._liveResolverBatchRecordSource.set(e,t);else{var r=f.create();r.set(e,t),this._store.publish(r),this._store.notify()}},t.batchLiveStateUpdates=function(e){this._handlingBatch&&D(!1),this._handlingBatch=!0;try{e()}finally{null!=this._liveResolverBatchRecordSource&&(this._store.publish(this._liveResolverBatchRecordSource),this._store.notify()),this._liveResolverBatchRecordSource=null,this._handlingBatch=!1}},t._setLiveResolverValue=function(e,t,r,n){var i=null,a=null;try{i=t.read()}catch(e){a=e}return d.setValue(e,v,a),this._setResolverValue(e,i,r,n)},t._setResolverValue=function(e,t,r,i){var a=r.normalizationInfo,s=null;if(null==t||null==a||S(t))o(t),d.setValue(e,R,t);else{var l,u=E(e),h=new Set,_=this._getRecordSource();if(a.plural){Array.isArray(t)||D(!1),l=[];for(var p=f.create(),v=0;v<t.length;v++){var g=t[v];if(null!=g){"object"!=typeof g&&D(!1);var y,b=V(a,g),I=c(b,d.getDataID(e),v),k=this._normalizeOutputTypeValue(I,g,i,a,[r.path,String(v)],b),A=(0,n.default)(k.getRecordIDs());try{for(A.s();!(y=A.n()).done;){var F=y.value;p.set(F,M(k,F)),h.add(F)}}catch(e){A.e(e)}finally{A.f()}l.push(I)}}s=C(_,p,u)}else{"object"!=typeof t&&D(!1);var T,O=V(a,t),P=c(O,d.getDataID(e)),L=this._normalizeOutputTypeValue(P,t,i,a,[r.path],O),N=(0,n.default)(L.getRecordIDs());try{for(N.s();!(T=N.n()).done;){var w=T.value;h.add(w)}}catch(e){N.e(e)}finally{N.f()}l=P,s=C(_,L,u)}d.setValue(e,m,h),o(l),d.setValue(e,R,l)}return s},t.notifyUpdatedSubscribers=function(e){this._store.__notifyUpdatedSubscribers(e)},t._getResolverValue=function(e){return d.getValue(e,R)},t.invalidateDataIDs=function(e){for(var t=this._getRecordSource(),r=new Set,i=Array.from(e);i.length;){var a=i.pop();r.add(a),e.add(a);var s=this._recordIDToResolverIDs.get(a);if(null!=s){var o,l=(0,n.default)(s);try{for(l.s();!(o=l.n()).done;){var u=o.value;if(!r.has(u)){r.add(u);var c=this._resolverIDToRecordIDs.get(u);if(null==c)continue;var d,h=(0,n.default)(c);try{for(h.s();!(d=h.n()).done;){var f=d.value;L(f,t),r.has(f)||(r.add(f),i.push(f))}}catch(e){h.e(e)}finally{h.f()}}}}catch(e){l.e(e)}finally{l.f()}}}},t._isInvalid=function(e,t){if(!d.getValue(e,g))return!1;var r=d.getValue(e,y),n=null==r?void 0:r.data,a=null==r?void 0:r.selector;if(null==n||null==a)return!0;var o=t(a).data;if(i(n,o)!==n)return!0;if(s.MARK_RESOLVER_VALUES_AS_CLEAN_AFTER_FRAGMENT_REREAD){var l=d.clone(e);d.setValue(l,g,!1),this._getRecordSource().set(d.getDataID(e),l)}return!1},t._normalizeOutputTypeValue=function(e,t,r,n,i,a){var s=f.create();switch(n.kind){case"OutputType":var o=d.create(e,a);s.set(e,o);var l=h(n.normalizationNode,e,r),u=this._store.__getNormalizationOptions(i);return _(s,l,t,u).source;case"WeakModel":var c=d.create(e,a);return d.setValue(c,"__relay_model_instance",t),s.set(e,c),s;default:n.kind,D(!1)}},t.ensureClientRecord=function(e,t){var r=c(t,e),n=this._getRecordSource();if(!n.has(r)){var i=d.create(r,t);d.setValue(i,"id",e),n.set(r,i)}return r},t.unsubscribeFromLiveResolverRecords=function(e){return function(e,t){if(0!==t.size){var r,i=(0,n.default)(t);try{for(i.s();!(r=i.n()).done;){var a=r.value,s=e.get(a);null!=s&&w(s)&&x(s)}}catch(e){i.e(e)}finally{i.f()}}}(this._getRecordSource(),e)},t.invalidateResolverRecords=function(e){if(0!==e.size){var t,r=(0,n.default)(e);try{for(r.s();!(t=r.n()).done;){var i=t.value,a=this._getRecordSource().get(i);null!=a&&w(a)&&this._getRecordSource().delete(i)}}catch(e){r.e(e)}finally{r.f()}}},e}();function C(e,t,r){var i=new Set;if(null!=r){var a,s=(0,n.default)(r);try{for(s.s();!(a=s.n()).done;){var o=a.value;t.has(o)||(i.add(o),e.remove(o))}}catch(e){s.e(e)}finally{s.f()}}var l,u=(0,n.default)(t.getRecordIDs());try{for(u.s();!(l=u.n()).done;){var c=l.value,h=M(t,c);if(e.has(c)){var f=M(e,c),_=d.update(f,h);_!==f&&(i.add(c),e.set(c,_),N(f,e))}else e.set(c,h)}}catch(e){u.e(e)}finally{u.f()}return i}function L(e,t){var r=t.get(e);if(r){var n=d.clone(r);d.setValue(n,g,!0),t.set(e,n)}}function N(e,t){var r,i=function(e){var t=new Set;return d.getFields(e).forEach((function(r){if(d.hasLinkedRecordID(e,r)){var n=d.getLinkedRecordID(e,r);null!=n&&t.add(n)}else if(d.hasLinkedRecordIDs(e,r)){var i;null===(i=d.getLinkedRecordIDs(e,r))||void 0===i||i.forEach((function(e){null!=e&&t.add(e)}))}})),t}(e),a=(0,n.default)(i);try{for(a.s();!(r=a.n()).done;){var s=r.value,o=t.get(s);null!=o&&w(o)&&L(s,t)}}catch(e){a.e(e)}finally{a.f()}}function w(e){return d.getType(e)===T}function x(e){var t=d.getValue(e,k);null!=t&&t()}function M(e,t){var r=e.get(t);return null==r&&D(!1),r}function V(e,t){var r,n=null!==(r=e.concreteType)&&void 0!==r?r:t.__typename;return null==n&&D(!1),n}e.exports={LiveResolverCache:P,getUpdatedDataIDs:function(e){return e},RELAY_RESOLVER_LIVE_STATE_SUBSCRIPTION_KEY:k}},8941:e=>{var t=Object.freeze({__LIVE_RESOLVER_SUSPENSE_SENTINEL:!0});e.exports={isSuspenseSentinel:function(e){return e===t},suspenseSentinel:function(){return t}}},2120:(e,t,r)=>{var n=r(7105),i=r(5165).RELAY_RESOLVER_OUTPUT_TYPE_RECORD_IDS,a=r(5056);e.exports=function(e){var t=n.getValue(e,i);return null==t?null:(t instanceof Set||a(!1),t)}},7623:e=>{e.exports=function(e){return null!=e&&"object"==typeof e&&"function"==typeof e.read&&"function"==typeof e.subscribe}},1662:(e,t,r)=>{var n=r(890).readFragment,i=r(5056);e.exports=function(e,t,r,a){var s=t;return function(t,o){var l=n(e,t);if(null==r)return s(l,o);if(null==l){if(!0!==a)return s(null,o);i(!1)}if(r in l)return!0===a&&null==l[r]&&i(!1),s(l[r],o);i(!1)}}},5131:(e,t,r)=>{var n=r(5275).default,i=n(r(6175)),a=n(r(7105)),s=n(r(6938)),o=n(r(5549));e.exports=function(e,t,r,n){var l,u=e.data,c=e.errors,d=s.default.create(),h=a.default.create(t.dataID,r);d.set(t.dataID,h);var f=o.default.normalize(d,t,u,n,c);return(0,i.default)((0,i.default)({},f),{},{isFinal:!0===(null===(l=e.extensions)||void 0===l?void 0:l.is_final)})}},6696:(e,t,r)=>{var n=r(314).default,i=r(1060),a=r(1634).getFragment,s=r(5250),o=r(9222).handlePotentialSnapshotErrors,l=r(6256).getSelector,u=r(5056);function c(){return(c=n((function*(e,t,r){var n;try{var i,a=yield new Promise((function(i,a){n=d(e,t,r).subscribe({next:function(e){"ok"===e.state?i(e.value):"error"===e.state&&a(e.error)}})}));return null===(i=n)||void 0===i||i.unsubscribe(),a}catch(e){var s;throw null===(s=n)||void 0===s||s.unsubscribe(),e}}))).apply(this,arguments)}function d(e,t,r){var n,s=a(t),o=l(s,r);switch(null!=(null===(n=s.metadata)||void 0===n?void 0:n.hasClientEdges)&&u(!1),null==o&&u(!1),o.kind){case"SingularReaderSelector":return function(e,t,r){var n=e.lookup(r);return i.create((function(i){i.next(h(e,t,r.owner,n));var a=e.subscribe(n,(function(n){i.next(h(e,t,r.owner,n))}));return function(){return a.dispose()}}))}(e,t,o);case"PluralReaderSelector":u(!1)}u(!1)}function h(e,t,r,n){var i=null!=n.missingLiveResolverFields&&n.missingLiveResolverFields.length>0,a=null!=n.missingClientEdges&&n.missingClientEdges.length>0;if(i||a)return{state:"loading"};if(n.isMissingData&&null!=s(e,t,r))return{state:"loading"};try{o(e,n.errorResponseFields)}catch(e){return{error:e,state:"error"}}return null==n.data&&u(!1),{state:"ok",value:n.data}}e.exports={observeFragment:d,waitForFragmentData:function(e,t,r){return c.apply(this,arguments)}}},1596:(e,t,r)=>{var n=r(1634).getInlineDataFragment,i=r(5165).FRAGMENTS_KEY,a=r(5056);e.exports=function(e,t){var r,s=n(e);if(null==t)return t;"object"!=typeof t&&a(!1);var o=null===(r=t[i])||void 0===r?void 0:r[s.name];return null==o&&a(!1),o}},8461:(e,t,r)=>{var n=r(314).default,i=r(6696).observeFragment;function a(){return(a=n((function*(e,t,r){var n;try{var a,s=yield new Promise((function(a,s){n=i(e,t,r).subscribe({next:function(e){"ok"===e.state?a(e.value):"error"===e.state&&s(e.error)}})}));return null===(a=n)||void 0===a||a.unsubscribe(),s}catch(e){var o;throw null===(o=n)||void 0===o||o.unsubscribe(),e}}))).apply(this,arguments)}e.exports={waitForFragmentData:function(e,t,r){return a.apply(this,arguments)}}},2924:(e,t,r)=>{var n=r(6626),i=r(1634).getRequest,a=r(7258).createOperationDescriptor,s=r(6256).createReaderSelector;r(4446),e.exports=function(e,t){var r=i(t.subscription);if("subscription"!==r.params.operationKind)throw new Error("requestSubscription: Must use Subscription operation");var o=t.configs,l=t.onCompleted,u=t.onError,c=t.onNext,d=t.variables,h=t.cacheConfig,f=a(r,d,h),_=(o?n.convert(o,r,null,t.updater):t).updater;return{dispose:e.executeSubscription({operation:f,updater:_}).subscribe({next:function(t){if(null!=c){var r,n,i,a,o=f.fragment;"string"==typeof(r=Array.isArray(t)?null===(n=t[0])||void 0===n||null===(i=n.extensions)||void 0===i?void 0:i.__relay_subscription_root_id:null===(a=t.extensions)||void 0===a?void 0:a.__relay_subscription_root_id)&&(o=s(o.node,r,o.variables,o.owner));var l=e.lookup(o).data;c(l)}},error:u,complete:l}).unsubscribe}}},3775:e=>{e.exports={ACTOR_CHANGE:"ActorChange",CATCH_FIELD:"CatchField",CONDITION:"Condition",CLIENT_COMPONENT:"ClientComponent",CLIENT_EDGE_TO_SERVER_OBJECT:"ClientEdgeToServerObject",CLIENT_EDGE_TO_CLIENT_OBJECT:"ClientEdgeToClientObject",CLIENT_EXTENSION:"ClientExtension",DEFER:"Defer",CONNECTION:"Connection",FRAGMENT:"Fragment",FRAGMENT_SPREAD:"FragmentSpread",INLINE_DATA_FRAGMENT_SPREAD:"InlineDataFragmentSpread",INLINE_DATA_FRAGMENT:"InlineDataFragment",INLINE_FRAGMENT:"InlineFragment",LINKED_FIELD:"LinkedField",LINKED_HANDLE:"LinkedHandle",LITERAL:"Literal",LIST_VALUE:"ListValue",LOCAL_ARGUMENT:"LocalArgument",MODULE_IMPORT:"ModuleImport",ALIASED_FRAGMENT_SPREAD:"AliasedFragmentSpread",ALIASED_INLINE_FRAGMENT_SPREAD:"AliasedInlineFragmentSpread",RELAY_RESOLVER:"RelayResolver",RELAY_LIVE_RESOLVER:"RelayLiveResolver",REQUIRED_FIELD:"RequiredField",OBJECT_VALUE:"ObjectValue",OPERATION:"Operation",REQUEST:"Request",ROOT_ARGUMENT:"RootArgument",SCALAR_FIELD:"ScalarField",SCALAR_HANDLE:"ScalarHandle",SPLIT_OPERATION:"SplitOperation",STREAM:"Stream",TYPE_DISCRIMINATOR:"TypeDiscriminator",UPDATABLE_QUERY:"UpdatableQuery",VARIABLE:"Variable"}},3204:e=>{e.exports={DEFAULT_HANDLE_KEY:""}},4539:e=>{function t(e,t,r){for(var n=arguments.length,i=new Array(n>3?n-3:0),a=3;a<n;a++)i[a-3]=arguments[a];var s=0,o=r.replace(/%s/g,(function(){return String(i[s++])})),l=new Error(o),u=Object.assign(l,{name:t,messageFormat:r,messageParams:i,type:e,taalOpcodes:[2,2]});if(void 0===u.stack)try{throw u}catch(e){}return u}e.exports={create:function(e,r){for(var n=arguments.length,i=new Array(n>2?n-2:0),a=2;a<n;a++)i[a-2]=arguments[a];return t.apply(void 0,["error",e,r].concat(i))},createWarning:function(e,r){for(var n=arguments.length,i=new Array(n>2?n-2:0),a=2;a<n;a++)i[a-2]=arguments[a];return t.apply(void 0,["warn",e,r].concat(i))}}},6770:e=>{e.exports={ENABLE_VARIABLE_CONNECTION_KEY:!1,ENABLE_RELAY_RESOLVERS:!1,ENABLE_GETFRAGMENTIDENTIFIER_OPTIMIZATION:!1,ENABLE_FRIENDLY_QUERY_NAME_GQL_URL:!1,ENABLE_DO_NOT_WRAP_LIVE_QUERY:!1,ENABLE_NOTIFY_SUBSCRIPTION:!1,BATCH_ASYNC_MODULE_UPDATES_FN:null,ENABLE_CONTAINERS_SUBSCRIBE_ON_COMMIT:!1,MAX_DATA_ID_LENGTH:null,STRING_INTERN_LEVEL:0,LOG_MISSING_RECORDS_IN_PROD:!1,ENABLE_NONCOMPLIANT_ERROR_HANDLING_ON_LISTS:!1,ENABLE_LOOSE_SUBSCRIPTION_ATTRIBUTION:!1,ENABLE_OPERATION_TRACKER_OPTIMISTIC_UPDATES:!1,ENABLE_RELAY_OPERATION_TRACKER_SUSPENSE:!1,PROCESS_OPTIMISTIC_UPDATE_BEFORE_SUBSCRIPTION:!1,MARK_RESOLVER_VALUES_AS_CLEAN_AFTER_FRAGMENT_REREAD:!1,ENABLE_CYLE_DETECTION_IN_VARIABLES:!1,ENABLE_ACTIVITY_COMPATIBILITY:!1,ENABLE_READ_TIME_RESOLVER_STORAGE_KEY_PREFIX:!0}},8986:e=>{var t={},r={stop:function(){}},n={profile:function(e,n){var i=t[e];if(i&&i.length>0){for(var a=[],s=i.length-1;s>=0;s--){var o=i[s](e,n);a.unshift(o)}return{stop:function(e){a.forEach((function(t){return t(e)}))}}}return r},attachProfileHandler:function(e,r){t.hasOwnProperty(e)||(t[e]=[]),t[e].push(r)},detachProfileHandler:function(e,r){var n,i,a;t.hasOwnProperty(e)&&(i=r,-1!==(a=(n=t[e]).indexOf(i))&&n.splice(a,1))}};e.exports=n},4153:(e,t,r)=>{var n=r(5275).default,i=n(r(5765)),a=n(r(311)),s=r(1060),o=r(5056),l=function(){function e(){var e=this;(0,a.default)(this,"_complete",!1),(0,a.default)(this,"_events",[]),(0,a.default)(this,"_sinks",new Set),(0,a.default)(this,"_subscription",[]),this._observable=s.create((function(t){e._sinks.add(t);for(var r=e._events,n=0;n<r.length&&!t.closed;n++){var i=r[n];switch(i.kind){case"complete":t.complete();break;case"error":t.error(i.error);break;case"next":t.next(i.data);break;default:i.kind,o(!1)}}return function(){e._sinks.delete(t)}}))}var t=e.prototype;return t.complete=function(){!0!==this._complete&&(this._complete=!0,this._events.push({kind:"complete"}),this._sinks.forEach((function(e){return e.complete()})))},t.error=function(e){!0!==this._complete&&(this._complete=!0,this._events.push({kind:"error",error:e}),this._sinks.forEach((function(t){return t.error(e)})))},t.next=function(e){!0!==this._complete&&(this._events.push({kind:"next",data:e}),this._sinks.forEach((function(t){return t.next(e)})))},t.subscribe=function(e){var t=this._observable.subscribe(e);return this._subscription.push(t),t},t.unsubscribe=function(){var e,t=(0,i.default)(this._subscription);try{for(t.s();!(e=t.n()).done;)e.value.unsubscribe()}catch(e){t.e(e)}finally{t.f()}this._subscription=[]},t.getObserverCount=function(){return this._sinks.size},e}();e.exports=l},6982:e=>{var t=new Map,r=1,n=function(){for(var e=new Set,t=0;t<10;++t)e.add(t.toString());return e}();e.exports={intern:function(e,i){if(null==i||e.length<i)return function(e){return"\t"===e[0]&&n.has(e[1])||"\v"===e[0]?"\v"+e:e}(e);var a=t.get(e);return null!=a||(a="\t"+r++,t.set(e,a)),a}}},4096:(e,t,r)=>{var n=(0,r(5275).default)(r(6175)),i=r(5165),a=i.getModuleComponentKey,s=i.getModuleOperationKey;e.exports=function(e,t,r,i){var o=(0,n.default)({},i);return o[a(e)]=r,o[s(e)]=t,o}},2729:e=>{e.exports=function e(t){return null!=(r=t)&&(Array.isArray(r)||"object"==typeof r&&r.constructor===Object)?(Object.freeze(t),Object.getOwnPropertyNames(t).forEach((function(r){var n=t[r];n&&"object"==typeof n&&!Object.isFrozen(n)&&e(n)})),t):t;var r}},1264:e=>{var t=1e5;e.exports=function(){return t++}},7858:(e,t,r)=>{var n=r(6256),i=n.getDataIDsFromFragment,a=n.getSelector,s=n.getVariablesFromFragment,o=r(5535),l=r(6770),u=r(1094).stableCopy,c=r(6982).intern;e.exports=function(e,t){var r=a(e,t),n=null==r?"null":"SingularReaderSelector"===r.kind?r.owner.identifier:"["+r.selectors.map((function(e){return e.owner.identifier})).join(",")+"]",d=s(e,t),h=i(e,t);if(l.ENABLE_GETFRAGMENTIDENTIFIER_OPTIMIZATION){var f=void 0===h?"missing":null==h?"null":Array.isArray(h)?"["+h.join(",")+"]":h;return f=l.STRING_INTERN_LEVEL<=1?f:c(f,l.MAX_DATA_ID_LENGTH),n+"/"+e.name+"/"+(null==d||o(d)?"{}":JSON.stringify(u(d)))+"/"+f}var _,p=null!==(_=JSON.stringify(h))&&void 0!==_?_:"missing";return p=l.STRING_INTERN_LEVEL<=1?p:c(p,l.MAX_DATA_ID_LENGTH),n+"/"+e.name+"/"+JSON.stringify(u(d))+"/"+p}},2881:(e,t,r)=>{var n=r(3775),i=n.REQUEST;n.SPLIT_OPERATION,e.exports=function(e){return e.kind===i?e.operation:e}},8208:(e,t,r)=>{var n=r(9514),i=r(5056);e.exports=function(e,t){var r,a,s=n(e,t),o=s.refetchableRequest,l=s.refetchMetadata,u=l.connection;null==u&&i(!1);var c=u.path,d=(null!==(r=null===(a=e.metadata)||void 0===a?void 0:a.connection)&&void 0!==r?r:[])[0];null==d&&i(!1);var h=l.identifierInfo;return null!=(null==h?void 0:h.identifierField)&&"string"!=typeof h.identifierField&&i(!1),{connectionPathInFragmentData:c,identifierField:null==h?void 0:h.identifierField,paginationRequest:o,paginationMetadata:u,stream:!0===d.stream}}},2279:(e,t,r)=>{var n=r(5275).default,i=n(r(311)),a=n(r(6175)),s=r(5056);r(4446),e.exports=function(e,t,r,n,o,l){var u,c=l.backward,d=l.forward;if("backward"===e){var h;(null==c||null==c.count||null==c.cursor)&&s(!1);var f=(0,a.default)((0,a.default)((0,a.default)({},n),o),{},(h={},(0,i.default)(h,c.cursor,r),(0,i.default)(h,c.count,t),h));return d&&d.cursor&&(f[d.cursor]=null),d&&d.count&&(f[d.count]=null),f}(null==d||null==d.count||null==d.cursor)&&s(!1);var _=(0,a.default)((0,a.default)((0,a.default)({},n),o),{},(u={},(0,i.default)(u,d.cursor,r),(0,i.default)(u,d.count,t),u));return c&&c.cursor&&(_[c.cursor]=null),c&&c.count&&(_[c.count]=null),_}},5250:(e,t,r)=>{var n=r(7367).getPromiseForActiveRequest;e.exports=function(e,t,r){var i,a,s=[],o=n(e,r);if(null!=o)s=[r];else{var l,u,c=e.getOperationTracker().getPendingOperationsAffectingOwner(r);s=null!==(l=null==c?void 0:c.pendingOperations)&&void 0!==l?l:[],o=null!==(u=null==c?void 0:c.promise)&&void 0!==u?u:null}if(!o)return null;var d=null!==(i=null===(a=s)||void 0===a?void 0:a.map((function(e){return e.node.params.name})).join(","))&&void 0!==i?i:null;null!=d&&0!==d.length||(d="Unknown pending operation");var h=t.name,f=d===h?"Relay(".concat(d,")"):"Relay(".concat(d,":").concat(h,")");return o.displayName=f,e.__log({name:"pendingoperation.found",fragment:t,fragmentOwner:r,pendingOperations:s}),{promise:o,pendingOperations:s}}},9514:(e,t,r)=>{var n=r(5056);e.exports=function(e,t){var r,i;!0===(null===(r=e.metadata)||void 0===r?void 0:r.plural)&&n(!1);var a=null===(i=e.metadata)||void 0===i?void 0:i.refetch;null==a&&n(!1);var s=a.operation.default?a.operation.default:a.operation,o=a.fragmentPathInResult;"string"==typeof s&&n(!1);var l=a.identifierInfo;return null!=l&&(null!=l.identifierField&&"string"!=typeof l.identifierField&&n(!1),null!=l.identifierQueryVariableName&&"string"!=typeof l.identifierQueryVariableName&&n(!1)),{fragmentRefPathInResponse:o,identifierInfo:l,refetchableRequest:s,refetchMetadata:a}}},6330:(e,t,r)=>{var n=r(3204).DEFAULT_HANDLE_KEY,i=r(5056);e.exports=function(e,t,r){return t&&t!==n?"__".concat(t,"_").concat(e):(null==r&&i(!1),"__".concat(r,"_").concat(e))}},6900:(e,t,r)=>{var n=r(1094).stableCopy,i=r(5056);e.exports=function(e,t){var r=null!=e.cacheID?e.cacheID:e.id;return null==r&&i(!1),r+JSON.stringify(n(t))}},3257:(e,t,r)=>{var n=(0,r(5275).default)(r(5765)),i=r(5056);e.exports=function(e,t){var r,a=e,s=(0,n.default)(t);try{for(s.s();!(r=s.n()).done;){var o=r.value;if(null==a)return null;"number"==typeof o?(Array.isArray(a)||i(!1),a=a[o]):(("object"!=typeof a||Array.isArray(a))&&i(!1),a=a[o])}}catch(e){s.e(e)}finally{s.f()}return a}},9222:(e,t,r)=>{var n=(0,r(5275).default)(r(5765)),i=r(5056);function a(e){switch(e.kind){case"relay_resolver.error":case"relay_field_payload.error":return e.shouldThrow&&!e.handled;case"missing_expected_data.throw":case"missing_required_field.throw":return!e.handled;case"missing_required_field.log":case"missing_expected_data.log":return!1;default:throw e.kind,new Error("Relay: Unexpected event kind")}}e.exports={handlePotentialSnapshotErrors:function(e,t){null!=t&&function(e,t){var r,s=(0,n.default)(t);try{for(s.s();!(r=s.n()).done;){var o=r.value;e.relayFieldLogger(o)}}catch(e){s.e(e)}finally{s.f()}var l,u=(0,n.default)(t);try{for(u.s();!(l=u.n()).done;){var c=l.value;if(a(c))switch(c.kind){case"relay_resolver.error":throw new Error("Relay: Resolver error at path '".concat(c.fieldPath,"' in '").concat(c.owner,"'."));case"relay_field_payload.error":throw new Error("Relay: Unexpected response payload - check server logs for details.");case"missing_expected_data.throw":throw new Error("Relay: Missing expected data at path '".concat(c.fieldPath,"' in '").concat(c.owner,"'."));case"missing_required_field.throw":throw new Error("Relay: Missing @required value at path '".concat(c.fieldPath,"' in '").concat(c.owner,"'."));case"missing_required_field.log":case"missing_expected_data.log":break;default:c.kind,i(!1)}}}catch(e){u.e(e)}finally{u.f()}}(e,t)},eventShouldThrow:a}},5535:e=>{var t=Object.prototype.hasOwnProperty;e.exports=function(e){for(var r in e)if(t.call(e,r))return!1;return!0}},1571:e=>{e.exports=function(e){return null!=e&&"object"==typeof e&&"function"==typeof e.then}},2081:e=>{e.exports=function(e,t){return e===t&&(null===e||"object"!=typeof e)}},5748:e=>{function t(e,r,n){if(e===r||"object"!=typeof e||!e||e.constructor!==Object&&!Array.isArray(e)||"object"!=typeof r||!r||r.constructor!==Object&&!Array.isArray(r))return r;var i=!1,a=Array.isArray(e)?e:null,s=Array.isArray(r)?r:null;if(a&&s){var o=n&&!Object.isFrozen(s);i=s.reduce((function(e,r,n){var i=t(a[n],r,o);return i!==s[n]&&o&&(s[n]=i),e&&i===a[n]}),!0)&&a.length===s.length}else if(!a&&!s){var l=e,u=r,c=Object.keys(l),d=Object.keys(u),h=n&&!Object.isFrozen(u);i=d.reduce((function(e,r){var n=t(l[r],u[r],h);return n!==u[r]&&h&&(u[r]=n),e&&n===l[r]}),!0)&&c.length===d.length}return i?e:r}e.exports=function(e,r){return t(e,r,!0)}},6859:(e,t,r)=>{e.exports=function(e){var t=void 0!==r.g?r.g:"undefined"!=typeof window?window:void 0,n=t&&t.__RELAY_DEVTOOLS_HOOK__;n&&n.registerEnvironment(e)}},3641:e=>{var t=Promise.resolve();function r(e){setTimeout((function(){throw e}),0)}e.exports=function(e){t.then(e).catch(r)}},5068:e=>{e.exports=function(e){"object"!=typeof e||null==e||!Array.isArray(e)&&e.constructor!==Object||Object.freeze(e)}},1094:e=>{e.exports={stableCopy:function e(t){if(!t||"object"!=typeof t)return t;if(Array.isArray(t))return t.map(e);for(var r=Object.keys(t).sort(),n={},i=0;i<r.length;i++)n[r[i]]=e(t[r[i]]);return n},hasCycle:function e(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Set;if(!t||"object"!=typeof t)return!1;if(r.has(t))return!0;var n=new Set(r);return n.add(t),(Array.isArray(t)?t:Object.values(t)).some((function(t){return e(t,n)}))}}},489:(e,t,r)=>{r(9125),r(4446);var n="function"==typeof WeakMap?new WeakMap:new Map;function i(e,t){if(null!=t){var r={};return Object.assign(r,e),Object.keys(t).forEach((function(e){var i=t[e].get,a=i();if(n.has(i)){var s=n.get(i);r[e]=s}else n.set(i,a),r[e]=a})),r}return e}i.tests_only_resetDebugCache=void 0,e.exports=i},6326:e=>{var t,r,n="undefined"!=typeof window&&"function"==typeof(null===(t=window)||void 0===t||null===(r=t.performance)||void 0===r?void 0:r.now);function i(){return n?window.performance.now():Date.now()}e.exports=function(e){var t=i(),r=e();return[t,i()-t,r]}},314:e=>{e.exports=o},5765:e=>{e.exports=n},311:e=>{e.exports=l},5275:e=>{e.exports=r},6175:e=>{e.exports=i},5264:e=>{e.exports=u},642:e=>{e.exports=a},9998:e=>{e.exports=c},9125:e=>{e.exports=s},4446:e=>{e.exports=t},5056:t=>{t.exports=e}},h={};function f(e){var t=h[e];if(void 0!==t)return t.exports;var r=h[e]={exports:{}};return d[e](r,r.exports,f),r.exports}return f.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),f(7128)})()));