relay-runtime 11.0.0-rc.0 → 12.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 (128) hide show
  1. package/handlers/connection/ConnectionHandler.js.flow +7 -0
  2. package/handlers/connection/MutationHandlers.js.flow +28 -0
  3. package/index.js +1 -1
  4. package/index.js.flow +20 -3
  5. package/lib/handlers/RelayDefaultHandlerProvider.js +1 -1
  6. package/lib/handlers/connection/ConnectionHandler.js +12 -6
  7. package/lib/handlers/connection/MutationHandlers.js +67 -8
  8. package/lib/index.js +15 -0
  9. package/lib/multi-actor-environment/ActorIdentifier.js +33 -0
  10. package/lib/multi-actor-environment/ActorSpecificEnvironment.js +148 -0
  11. package/lib/multi-actor-environment/ActorUtils.js +27 -0
  12. package/lib/multi-actor-environment/MultiActorEnvironment.js +406 -0
  13. package/lib/multi-actor-environment/MultiActorEnvironmentTypes.js +11 -0
  14. package/lib/multi-actor-environment/index.js +21 -0
  15. package/lib/mutations/RelayRecordProxy.js +1 -1
  16. package/lib/mutations/RelayRecordSourceMutator.js +1 -1
  17. package/lib/mutations/RelayRecordSourceProxy.js +1 -1
  18. package/lib/mutations/RelayRecordSourceSelectorProxy.js +7 -2
  19. package/lib/mutations/applyOptimisticMutation.js +1 -1
  20. package/lib/mutations/commitMutation.js +5 -2
  21. package/lib/mutations/validateMutation.js +39 -17
  22. package/lib/network/RelayNetwork.js +1 -1
  23. package/lib/network/RelayObservable.js +3 -1
  24. package/lib/network/RelayQueryResponseCache.js +20 -3
  25. package/lib/network/wrapNetworkWithLogObserver.js +78 -0
  26. package/lib/query/GraphQLTag.js +1 -1
  27. package/lib/query/fetchQuery.js +1 -1
  28. package/lib/query/fetchQueryInternal.js +1 -1
  29. package/lib/store/DataChecker.js +132 -50
  30. package/lib/store/{RelayModernQueryExecutor.js → OperationExecutor.js} +524 -187
  31. package/lib/store/RelayConcreteVariables.js +29 -4
  32. package/lib/store/RelayModernEnvironment.js +137 -220
  33. package/lib/store/RelayModernFragmentSpecResolver.js +49 -23
  34. package/lib/store/RelayModernRecord.js +36 -2
  35. package/lib/store/RelayModernSelector.js +1 -1
  36. package/lib/store/RelayModernStore.js +53 -22
  37. package/lib/store/RelayOperationTracker.js +34 -24
  38. package/lib/store/RelayPublishQueue.js +30 -8
  39. package/lib/store/RelayReader.js +177 -29
  40. package/lib/store/RelayRecordSource.js +87 -3
  41. package/lib/store/RelayReferenceMarker.js +53 -28
  42. package/lib/store/RelayResponseNormalizer.js +247 -108
  43. package/lib/store/RelayStoreReactFlightUtils.js +7 -11
  44. package/lib/store/RelayStoreSubscriptions.js +8 -5
  45. package/lib/store/RelayStoreUtils.js +10 -4
  46. package/lib/store/ResolverCache.js +213 -0
  47. package/lib/store/ResolverFragments.js +57 -0
  48. package/lib/store/cloneRelayHandleSourceField.js +1 -1
  49. package/lib/store/cloneRelayScalarHandleSourceField.js +1 -1
  50. package/lib/store/createRelayContext.js +2 -2
  51. package/lib/store/defaultGetDataID.js +3 -1
  52. package/lib/store/readInlineData.js +1 -1
  53. package/lib/subscription/requestSubscription.js +32 -6
  54. package/lib/util/RelayConcreteNode.js +3 -0
  55. package/lib/util/RelayFeatureFlags.js +5 -4
  56. package/lib/util/RelayProfiler.js +17 -187
  57. package/lib/util/RelayReplaySubject.js +22 -7
  58. package/lib/util/deepFreeze.js +1 -0
  59. package/lib/util/getPaginationMetadata.js +41 -0
  60. package/lib/util/getPaginationVariables.js +67 -0
  61. package/lib/util/getPendingOperationsForFragment.js +55 -0
  62. package/lib/util/getRefetchMetadata.js +36 -0
  63. package/lib/util/getRelayHandleKey.js +1 -1
  64. package/lib/util/getRequestIdentifier.js +1 -1
  65. package/lib/util/getValueAtPath.js +51 -0
  66. package/lib/util/isEmptyObject.js +1 -1
  67. package/lib/util/registerEnvironmentWithDevTools.js +26 -0
  68. package/lib/util/withDuration.js +31 -0
  69. package/multi-actor-environment/ActorIdentifier.js.flow +43 -0
  70. package/multi-actor-environment/ActorSpecificEnvironment.js.flow +217 -0
  71. package/multi-actor-environment/ActorUtils.js.flow +33 -0
  72. package/multi-actor-environment/MultiActorEnvironment.js.flow +485 -0
  73. package/multi-actor-environment/MultiActorEnvironmentTypes.js.flow +245 -0
  74. package/multi-actor-environment/index.js.flow +27 -0
  75. package/mutations/RelayRecordSourceSelectorProxy.js.flow +7 -2
  76. package/mutations/commitMutation.js.flow +3 -1
  77. package/mutations/validateMutation.js.flow +42 -16
  78. package/network/RelayNetworkTypes.js.flow +17 -8
  79. package/network/RelayObservable.js.flow +2 -0
  80. package/network/RelayQueryResponseCache.js.flow +31 -17
  81. package/network/wrapNetworkWithLogObserver.js.flow +99 -0
  82. package/package.json +3 -2
  83. package/relay-runtime.js +2 -2
  84. package/relay-runtime.min.js +2 -2
  85. package/store/ClientID.js.flow +5 -1
  86. package/store/DataChecker.js.flow +148 -44
  87. package/store/{RelayModernQueryExecutor.js.flow → OperationExecutor.js.flow} +578 -237
  88. package/store/RelayConcreteVariables.js.flow +31 -1
  89. package/store/RelayModernEnvironment.js.flow +132 -220
  90. package/store/RelayModernFragmentSpecResolver.js.flow +40 -14
  91. package/store/RelayModernOperationDescriptor.js.flow +9 -3
  92. package/store/RelayModernRecord.js.flow +49 -0
  93. package/store/RelayModernStore.js.flow +57 -17
  94. package/store/RelayOperationTracker.js.flow +56 -34
  95. package/store/RelayPublishQueue.js.flow +37 -11
  96. package/store/RelayReader.js.flow +186 -27
  97. package/store/RelayRecordSource.js.flow +72 -6
  98. package/store/RelayReferenceMarker.js.flow +51 -21
  99. package/store/RelayResponseNormalizer.js.flow +251 -67
  100. package/store/RelayStoreReactFlightUtils.js.flow +6 -9
  101. package/store/RelayStoreSubscriptions.js.flow +10 -3
  102. package/store/RelayStoreTypes.js.flow +144 -21
  103. package/store/RelayStoreUtils.js.flow +19 -4
  104. package/store/ResolverCache.js.flow +247 -0
  105. package/store/ResolverFragments.js.flow +128 -0
  106. package/store/createRelayContext.js.flow +1 -1
  107. package/store/defaultGetDataID.js.flow +3 -1
  108. package/subscription/requestSubscription.js.flow +43 -8
  109. package/util/NormalizationNode.js.flow +16 -3
  110. package/util/ReaderNode.js.flow +29 -2
  111. package/util/RelayConcreteNode.js.flow +3 -0
  112. package/util/RelayFeatureFlags.js.flow +10 -6
  113. package/util/RelayProfiler.js.flow +22 -194
  114. package/util/RelayReplaySubject.js.flow +7 -6
  115. package/util/RelayRuntimeTypes.js.flow +4 -2
  116. package/util/deepFreeze.js.flow +2 -1
  117. package/util/getPaginationMetadata.js.flow +74 -0
  118. package/util/getPaginationVariables.js.flow +112 -0
  119. package/util/getPendingOperationsForFragment.js.flow +62 -0
  120. package/util/getRefetchMetadata.js.flow +80 -0
  121. package/util/getValueAtPath.js.flow +46 -0
  122. package/util/isEmptyObject.js.flow +2 -1
  123. package/util/registerEnvironmentWithDevTools.js.flow +33 -0
  124. package/util/withDuration.js.flow +32 -0
  125. package/lib/store/RelayRecordSourceMapImpl.js +0 -107
  126. package/lib/store/RelayStoreSubscriptionsUsingMapByID.js +0 -318
  127. package/store/RelayRecordSourceMapImpl.js.flow +0 -91
  128. package/store/RelayStoreSubscriptionsUsingMapByID.js.flow +0 -283
package/relay-runtime.js CHANGED
@@ -1,4 +1,4 @@
1
1
  /**
2
- * Relay v11.0.0-rc.0
2
+ * Relay v12.0.0
3
3
  */
4
- !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("fbjs/lib/invariant"),require("@babel/runtime/helpers/interopRequireDefault"),require("fbjs/lib/warning"),require("@babel/runtime/helpers/objectSpread2"),require("@babel/runtime/helpers/createForOfIteratorHelper"),require("fbjs/lib/areEqual"),require("@babel/runtime/helpers/toConsumableArray"),require("@babel/runtime/helpers/defineProperty"),require("fbjs/lib/ErrorUtils")):"function"==typeof define&&define.amd?define(["fbjs/lib/invariant","@babel/runtime/helpers/interopRequireDefault","fbjs/lib/warning","@babel/runtime/helpers/objectSpread2","@babel/runtime/helpers/createForOfIteratorHelper","fbjs/lib/areEqual","@babel/runtime/helpers/toConsumableArray","@babel/runtime/helpers/defineProperty","fbjs/lib/ErrorUtils"],t):"object"==typeof exports?exports.RelayRuntime=t(require("fbjs/lib/invariant"),require("@babel/runtime/helpers/interopRequireDefault"),require("fbjs/lib/warning"),require("@babel/runtime/helpers/objectSpread2"),require("@babel/runtime/helpers/createForOfIteratorHelper"),require("fbjs/lib/areEqual"),require("@babel/runtime/helpers/toConsumableArray"),require("@babel/runtime/helpers/defineProperty"),require("fbjs/lib/ErrorUtils")):e.RelayRuntime=t(e["fbjs/lib/invariant"],e["@babel/runtime/helpers/interopRequireDefault"],e["fbjs/lib/warning"],e["@babel/runtime/helpers/objectSpread2"],e["@babel/runtime/helpers/createForOfIteratorHelper"],e["fbjs/lib/areEqual"],e["@babel/runtime/helpers/toConsumableArray"],e["@babel/runtime/helpers/defineProperty"],e["fbjs/lib/ErrorUtils"])}(window,(function(e,t,r,n,i,a,o,s,l){return function(e){var t={};function r(n){if(t[n])return t[n].exports;var i=t[n]={i:n,l:!1,exports:{}};return e[n].call(i.exports,i,i.exports,r),i.l=!0,i.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)r.d(n,i,function(t){return e[t]}.bind(null,i));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=49)}([function(t,r){t.exports=e},function(e,r){e.exports=t},function(e,t,r){"use strict";var n=r(1)(r(17)),i=r(6),a=r(25),o=r(0),s=r(14),l=i.VARIABLE,u=i.LITERAL,c=i.OBJECT_VALUE,d=i.LIST_VALUE;function f(e,t){if(e.kind===l)return function(e,t){return t.hasOwnProperty(e)||o(!1,"getVariableValue(): Undefined variable `%s`.",e),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]=f(e,t)})),r}if(e.kind===d){var n=[];return e.items.forEach((function(e){null!=e&&n.push(f(e,t))})),n}}function h(e,t){var r={};return e.forEach((function(e){r[e.name]=f(e,t)})),r}function p(e,t){if(!t)return e;var r=[];for(var n in t)if(t.hasOwnProperty(n)){var i,a=t[n];if(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 _={FRAGMENTS_KEY:"__fragments",FRAGMENT_OWNER_KEY:"__fragmentOwner",FRAGMENT_PROP_NAME_KEY:"__fragmentPropName",MODULE_COMPONENT_KEY:"__module_component",ID_KEY:"__id",REF_KEY:"__ref",REFS_KEY:"__refs",ROOT_ID:"client:root",ROOT_TYPE:"__Root",TYPENAME_KEY:"__typename",INVALIDATED_AT_KEY:"__invalidated_at",IS_WITHIN_UNMATCHED_TYPE_REFINEMENT:"__isWithinUnmatchedTypeRefinement",formatStorageKey:p,getArgumentValue:f,getArgumentValues:h,getHandleStorageKey:function(e,t){var r=e.dynamicKey,i=e.handle,o=e.key,s=e.name,l=e.args,u=e.filters,c=a(i,o,s),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:p(c,h(d,t))},getStorageKey:function(e,t){if(e.storageKey)return e.storageKey;var r=e.args,n=e.name;return r&&0!==r.length?p(n,h(r,t)):n},getStableStorageKey:function(e,t){return p(e,s(t))},getModuleComponentKey:function(e){return"".concat("__module_component_").concat(e)},getModuleOperationKey:function(e){return"".concat("__module_operation_").concat(e)}};e.exports=_},function(e,t){e.exports=r},function(e,t){e.exports=n},function(e,t,r){"use strict";e.exports={ENABLE_VARIABLE_CONNECTION_KEY:!1,ENABLE_PARTIAL_RENDERING_DEFAULT:!0,ENABLE_RELAY_CONTAINERS_SUSPENSE:!0,ENABLE_PRECISE_TYPE_REFINEMENT:!1,ENABLE_REACT_FLIGHT_COMPONENT_FIELD:!1,ENABLE_REQUIRED_DIRECTIVES:!1,ENABLE_GETFRAGMENTIDENTIFIER_OPTIMIZATION:!1,ENABLE_FRIENDLY_QUERY_NAME_GQL_URL:!1,ENABLE_STORE_SUBSCRIPTIONS_REFACTOR:!1,ENABLE_LOAD_QUERY_REQUEST_DEDUPING:!0,ENABLE_DO_NOT_WRAP_LIVE_QUERY:!1,ENABLE_NOTIFY_SUBSCRIPTION:!1}},function(e,t,r){"use strict";e.exports={CONDITION:"Condition",CLIENT_EXTENSION:"ClientExtension",DEFER:"Defer",CONNECTION:"Connection",FLIGHT_FIELD:"FlightField",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",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",VARIABLE:"Variable"}},function(e,t){e.exports=i},function(e,t,r){"use strict";var n=r(1)(r(4)),i=r(15),a=r(11),o=r(0),s=r(3),l=r(9).isClientID,u=r(2),c=u.ID_KEY,d=u.REF_KEY,f=u.REFS_KEY,h=u.TYPENAME_KEY,p=u.INVALIDATED_AT_KEY,_=u.ROOT_ID;function v(e){return e[c]}function g(e){return e[h]}e.exports={clone:function(e){return(0,n.default)({},e)},copyFields:function(e,t){for(var r in e)e.hasOwnProperty(r)&&r!==c&&r!==h&&(t[r]=e[r])},create:function(e,t){var r={};return r[c]=e,r[h]=t,r},freeze:function(e){a(e)},getDataID:v,getInvalidationEpoch:function(e){if(null==e)return null;var t=e[p];return"number"!=typeof t?null:t},getLinkedRecordID:function(e,t){var r=e[t];return null==r?r:("object"==typeof r&&r&&"string"==typeof r[d]||o(!1,"RelayModernRecord.getLinkedRecordID(): Expected `%s.%s` to be a linked ID, was `%s`.",e[c],t,JSON.stringify(r)),r[d])},getLinkedRecordIDs:function(e,t){var r=e[t];return null==r?r:("object"==typeof r&&Array.isArray(r[f])||o(!1,"RelayModernRecord.getLinkedRecordIDs(): Expected `%s.%s` to contain an array of linked IDs, got `%s`.",e[c],t,JSON.stringify(r)),r[f])},getType:g,getValue:function(e,t){var r=e[t];return r&&"object"==typeof r&&(r.hasOwnProperty(d)||r.hasOwnProperty(f))&&o(!1,"RelayModernRecord.getValue(): Expected a scalar (non-link) value for `%s.%s` but found %s.",e[c],t,r.hasOwnProperty(d)?"a linked record":"plural linked records"),r},merge:function(e,t){var r,n,i=v(e),a=v(t);s(i===a,"RelayModernRecord: Invalid record merge, expected both versions of the record to have the same id, got `%s` and `%s`.",i,a);var o=null!==(r=g(e))&&void 0!==r?r:null,u=null!==(n=g(t))&&void 0!==n?n:null;return s(l(a)&&a!==_||o===u,"RelayModernRecord: Invalid record merge, expected both versions of record `%s` to have the same `%s` but got conflicting types `%s` and `%s`. The GraphQL server likely violated the globally unique id requirement by returning the same id for different objects.",i,h,o,u),Object.assign({},e,t)},setValue:function(e,t,r){var n=v(e);if(t===c)s(n===r,"RelayModernRecord: Invalid field update, expected both versions of the record to have the same id, got `%s` and `%s`.",n,r);else if(t===h){var i,a=null!==(i=g(e))&&void 0!==i?i:null,o=null!=r?r:null;s(l(v(e))&&v(e)!==_||a===o,"RelayModernRecord: Invalid field update, expected both versions of record `%s` to have the same `%s` but got conflicting types `%s` and `%s`. The GraphQL server likely violated the globally unique id requirement by returning the same id for different objects.",n,h,a,o)}e[t]=r},setLinkedRecordID:function(e,t,r){var n={};n[d]=r,e[t]=n},setLinkedRecordIDs:function(e,t,r){var n={};n[f]=r,e[t]=n},update:function(e,t){var r,a,o=v(e),u=v(t);s(o===u,"RelayModernRecord: Invalid record update, expected both versions of the record to have the same id, got `%s` and `%s`.",o,u);var c=null!==(r=g(e))&&void 0!==r?r:null,d=null!==(a=g(t))&&void 0!==a?a:null;s(l(u)&&u!==_||c===d,"RelayModernRecord: Invalid record update, expected both versions of record `%s` to have the same `%s` but got conflicting types `%s` and `%s`. The GraphQL server likely violated the globally unique id requirement by returning the same id for different objects.",o,h,c,d);for(var f=null,p=Object.keys(t),m=0;m<p.length;m++){var y=p[m];!f&&i(e[y],t[y])||((f=null!==f?f:(0,n.default)({},e))[y]=t[y])}return null!==f?f:e}}},function(e,t,r){"use strict";var n=0;e.exports={generateClientID:function(e,t,r){var n=e+":"+t;return null!=r&&(n+=":"+r),0!==n.indexOf("client:")&&(n="client:"+n),n},generateUniqueClientID:function(){return"".concat("client:","local:").concat(n++)},isClientID:function(e){return 0===e.indexOf("client:")}}},function(e,t,r){"use strict";var n=r(6),i=r(0),a=r(3);function o(e){var t=e;return"function"==typeof t?(t=t(),a(!1,"RelayGraphQLTag: node `%s` unexpectedly wrapped in a function.","Fragment"===t.kind?t.name:t.operation.name)):t.default&&(t=t.default),t}function s(e){var t=o(e);return"object"==typeof t&&null!==t&&t.kind===n.FRAGMENT}function l(e){var t=o(e);return"object"==typeof t&&null!==t&&t.kind===n.REQUEST}function u(e){var t=o(e);return"object"==typeof t&&null!==t&&t.kind===n.INLINE_DATA_FRAGMENT}function c(e){var t=o(e);return s(t)||i(!1,"GraphQLTag: Expected a fragment, got `%s`.",JSON.stringify(t)),t}e.exports={getFragment:c,getNode:o,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=o(e);return l(t)||i(!1,"GraphQLTag: Expected a request, got `%s`.",JSON.stringify(t)),t},getInlineDataFragment:function(e){var t=o(e);return u(t)||i(!1,"GraphQLTag: Expected an inline data fragment, got `%s`.",JSON.stringify(t)),t},graphql:function(e){i(!1,"graphql: Unexpected invocation at runtime. Either the Babel transform was not set up, or it failed to identify this call site. Make sure it is being used verbatim as `graphql`. Note also that there cannot be a space between graphql and the backtick that follows.")},isFragment:s,isRequest:l,isInlineDataFragment:u}},function(e,t,r){"use strict";e.exports=function e(t){return Object.freeze(t),Object.getOwnPropertyNames(t).forEach((function(r){var n=t[r];n&&"object"==typeof n&&!Object.isFrozen(n)&&e(n)})),t}},function(e,t,r){"use strict";var n=r(39),i=function(e,t){},a=function(){function e(e){if(!e||"function"!=typeof e)throw new Error("Source must be a Function: "+String(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)?o(e):n(e)?s(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=!1,i=r.subscribe({next:function(t){n=!0,e.next(t)},error:e.error,complete:function(){n?e.complete():i=t.subscribe(e)}});return function(){i.unsubscribe()}}))},t.subscribe=function(e){if(!e||"object"!=typeof e)throw new Error("Observer must be an Object with callbacks: "+String(e));return function(e,t){var r,n=!1,a=function(e){return Object.defineProperty(e,"closed",{get:function(){return n}})};function o(){if(r){if(r.unsubscribe)r.unsubscribe();else try{r()}catch(e){i(e,!0)}r=void 0}}var s=a({unsubscribe:function(){if(!n){n=!0;try{t.unsubscribe&&t.unsubscribe(s)}catch(e){i(e,!0)}finally{o()}}}});try{t.start&&t.start(s)}catch(e){i(e,!0)}if(n)return s;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),o();else{n=!0;try{t.error(e)}catch(e){i(e,!0)}finally{o()}}},complete:function(){if(!n){n=!0;try{t.complete&&t.complete()}catch(e){i(e,!0)}finally{o()}}}});try{r=e(l)}catch(e){l.error(e,!0)}if(void 0!==r&&"function"!=typeof r&&(!r||"function"!=typeof r.unsubscribe))throw new Error("Returned cleanup function which cannot be called: "+String(r));n&&o();return s}(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 o(){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:o})}catch(e){n.error(e,!0)}},error:n.error,complete:o}),function(){i.forEach((function(e){return e.unsubscribe()})),i.length=0}}))},t.poll=function(t){var r=this;if("number"!=typeof t||t<=0)throw new Error("RelayObservable: Expected pollInterval to be positive, got: "+t);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 o(e){return e instanceof a?e:a.create((function(t){return e.subscribe(t)}))}function s(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()}))}a.onUnhandledError((function(e,t){"function"==typeof fail?fail(String(e)):t?setTimeout((function(){throw e})):"undefined"!=typeof console&&console.error("RelayObservable: Unhandled Error",e)})),e.exports=a},function(e,t,r){"use strict";var n=r(11),i=r(45),a=r(26).getOperationVariables,o=r(16),s=o.createNormalizationSelector,l=o.createReaderSelector,u=r(2).ROOT_ID;function c(e,t,r){var a={identifier:i(e.params,t),node:e,variables:t,cacheConfig:r};return n(t),Object.freeze(e),Object.freeze(a),a}e.exports={createOperationDescriptor:function(e,t,r){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:u,i=e.operation,o=a(i,t),d=c(e,o,r),f={fragment:l(e.fragment,n,o,d),request:d,root:s(i,n,o)};return Object.freeze(f.fragment),Object.freeze(f.root),Object.freeze(f),f},createRequestDescriptor:c}},function(e,t,r){"use strict";e.exports=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}},function(e,t){e.exports=a},function(e,t,r){"use strict";var n=r(15),i=r(0),a=r(3),o=r(26).getFragmentVariables,s=r(2),l=s.FRAGMENT_OWNER_KEY,u=s.FRAGMENTS_KEY,c=s.ID_KEY,d=s.IS_WITHIN_UNMATCHED_TYPE_REFINEMENT;function f(e,t){("object"!=typeof t||null===t||Array.isArray(t))&&i(!1,"RelayModernSelector: Expected value for fragment `%s` to be an object, got `%s`.",e.name,JSON.stringify(t));var r=t[c],n=t[u],s=t[l],f=!0===t[d];if("string"==typeof r&&"object"==typeof n&&null!==n&&"object"==typeof n[e.name]&&null!==n[e.name]&&"object"==typeof s&&null!==s){var h=s,p=n[e.name];return b(e,r,o(e,h.variables,p),h,f)}var _=JSON.stringify(t);return _.length>499&&(_=_.substr(0,498)+"…"),a(!1,"RelayModernSelector: Expected object to contain data for fragment `%s`, got `%s`. Make sure that the parent operation/fragment included fragment `...%s` without `@relay(mask: false)`.",e.name,_,e.name),null}function h(e,t){var r=null;return t.forEach((function(t,n){var i=null!=t?f(e,t):null;null!=i&&(r=r||[]).push(i)})),null==r?null:{kind:"PluralReaderSelector",selectors:r}}function p(e,t){return null==t?t:e.metadata&&!0===e.metadata.plural?(Array.isArray(t)||i(!1,"RelayModernSelector: Expected value for fragment `%s` to be an array, got `%s`. Remove `@relay(plural: true)` from fragment `%s` to allow the prop to be an object.",e.name,JSON.stringify(t),e.name),h(e,t)):(Array.isArray(t)&&i(!1,"RelayModernSelector: Expected value for fragment `%s` to be an object, got `%s`. Add `@relay(plural: true)` to fragment `%s` to allow the prop to be an array of items.",e.name,JSON.stringify(t),e.name),f(e,t))}function _(e,t){return null==t?t:e.metadata&&!0===e.metadata.plural?(Array.isArray(t)||i(!1,"RelayModernSelector: Expected value for fragment `%s` to be an array, got `%s`. Remove `@relay(plural: true)` from fragment `%s` to allow the prop to be an object.",e.name,JSON.stringify(t),e.name),function(e,t){var r=null;return t.forEach((function(t){var n=null!=t?v(e,t):null;null!=n&&(r=r||[]).push(n)})),r}(e,t)):(Array.isArray(t)&&i(!1,"RelayModernFragmentSpecResolver: Expected value for fragment `%s` to be an object, got `%s`. Add `@relay(plural: true)` to fragment `%s` to allow the prop to be an array of items.",e.name,JSON.stringify(t),e.name),v(e,t))}function v(e,t){("object"!=typeof t||null===t||Array.isArray(t))&&i(!1,"RelayModernSelector: Expected value for fragment `%s` to be an object, got `%s`.",e.name,JSON.stringify(t));var r=t[c];return"string"==typeof r?r:(a(!1,"RelayModernSelector: Expected object to contain data for fragment `%s`, got `%s`. Make sure that the parent operation/fragment included fragment `...%s` without `@relay(mask: false)`, or `null` is passed as the fragment reference for `%s` if it's conditonally included and the condition isn't met.",e.name,JSON.stringify(t),e.name,e.name),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)||i(!1,"RelayModernSelector: Expected value for fragment `%s` to be an array, got `%s`. Remove `@relay(plural: true)` from fragment `%s` to allow the prop to be an object.",e.name,JSON.stringify(t),e.name),y(e,t)):(Array.isArray(t)&&i(!1,"RelayModernFragmentSpecResolver: Expected value for fragment `%s` to be an object, got `%s`. Add `@relay(plural: true)` to fragment `%s` to allow the prop to be an array of items.",e.name,JSON.stringify(t),e.name),m(e,t)||{})}function m(e,t){var r=f(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 b(e,t,r,n){var i=arguments.length>4&&void 0!==arguments[4]&&arguments[4];return{kind:"SingularReaderSelector",dataID:t,isWithinUnmatchedTypeRefinement:i,node:e,variables:r,owner:n}}e.exports={areEqualSelectors:function(e,t){return e.owner===t.owner&&e.dataID===t.dataID&&e.node===t.node&&n(e.variables,t.variables)},createReaderSelector:b,createNormalizationSelector:function(e,t,r){return{dataID:t,node:e,variables:r}},getDataIDsFromFragment:_,getDataIDsFromObject: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},getSingularSelector:f,getPluralSelector:h,getSelector:p,getSelectorsFromObject: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},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}}},function(e,t){e.exports=o},function(e,t,r){"use strict";var n=r(54),i=function(){function e(t){return e.create(t)}return e.create=function(e){return new n(e)},e}();e.exports=i},function(e,t,r){"use strict";var n=r(0),i=r(8).getType;e.exports={REACT_FLIGHT_QUERIES_STORAGE_KEY:"queries",REACT_FLIGHT_TREE_STORAGE_KEY:"tree",REACT_FLIGHT_TYPE_NAME:"ReactFlightComponent",getReactFlightClientResponse:function(e){"ReactFlightComponent"!==i(e)&&n(!1,"getReactFlightClientResponse(): Expected a ReactFlightComponentRecord, got %s.",e);var t=e.tree;return null!=t?t:null},refineToReactFlightPayloadData:function(e){return null!=e&&"object"==typeof e&&"string"==typeof e.status&&(Array.isArray(e.tree)||null===e.tree)&&Array.isArray(e.queries)&&Array.isArray(e.errors)?e:null}}},function(e,t,r){"use strict";var n=r(34),i=r(25),a=r(0),o=r(3),s=r(9).generateClientID,l=r(2).getStableStorageKey,u="__connection_next_edge_index";function c(e,t,r){if(null==r)return r;var i=n.get().EDGES,o=t.getValue(u);"number"!=typeof o&&a(!1,"ConnectionHandler: Expected %s to be a number, got `%s`.",u,o);var l=s(t.getDataID(),i,o),c=e.create(l,r.getType());return c.copyFieldsFrom(r),null==c.getValue("cursor")&&c.setValue(null,"cursor"),t.setValue(o+1,u),c}function d(e,t,r){for(var i=n.get().NODE,a=0;a<e.length;a++){var o=e[a];if(o){var s=o.getLinkedRecord(i),l=s&&s.getDataID();if(l){if(r.has(l))continue;r.add(l)}t.push(o)}}}e.exports={buildConnectionEdge:c,createEdge:function(e,t,r,i){var a=n.get().NODE,o=s(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=n.get(),i=r.EDGES,a=r.NODE,o=e.getLinkedRecords(i);if(o){for(var s,l=0;l<o.length;l++){var u=o[l],c=u&&u.getLinkedRecord(a);null!=c&&c.getDataID()===t?void 0===s&&(s=o.slice(0,l)):void 0!==s&&s.push(u)}void 0!==s&&e.setLinkedRecords(s,i)}},getConnection:function(e,t,r){var n=i("connection",t,null);return e.getLinkedRecord(n,r)},getConnectionID:function(e,t,r){var n=i("connection",t,null),a=l(n,r);return s(e,a)},insertEdgeAfter:function(e,t,r){var i=n.get(),a=i.CURSOR,o=i.EDGES,s=e.getLinkedRecords(o);if(s){var l;if(null==r)l=s.concat(t);else{l=[];for(var u=!1,c=0;c<s.length;c++){var d=s[c];if(l.push(d),null!=d)r===d.getValue(a)&&(l.push(t),u=!0)}u||l.push(t)}e.setLinkedRecords(l,o)}else e.setLinkedRecords([t],o)},insertEdgeBefore:function(e,t,r){var i=n.get(),a=i.CURSOR,o=i.EDGES,s=e.getLinkedRecords(o);if(s){var l;if(null==r)l=[t].concat(s);else{l=[];for(var u=!1,c=0;c<s.length;c++){var d=s[c];if(null!=d)r===d.getValue(a)&&(l.push(t),u=!0);l.push(d)}u||l.unshift(t)}e.setLinkedRecords(l,o)}else e.setLinkedRecords([t],o)},update:function(e,t){var r=e.get(t.dataID);if(r){var i=n.get(),a=i.EDGES,l=i.END_CURSOR,f=i.HAS_NEXT_PAGE,h=i.HAS_PREV_PAGE,p=i.PAGE_INFO,_=i.PAGE_INFO_TYPE,v=i.START_CURSOR,g=r.getLinkedRecord(t.fieldKey),m=g&&g.getLinkedRecord(p);if(g){var y=s(r.getDataID(),t.handleKey),b=r.getLinkedRecord(t.handleKey),E=null!=b?b:e.get(y),R=E&&E.getLinkedRecord(p);if(E){null==b&&r.setLinkedRecord(E,t.handleKey);var I=E,D=g.getLinkedRecords(a);D&&(D=D.map((function(t){return c(e,I,t)})));var S=I.getLinkedRecords(a),k=I.getLinkedRecord(p);I.copyFieldsFrom(g),S&&I.setLinkedRecords(S,a),k&&I.setLinkedRecord(k,p);var F=[],T=t.args;if(S&&D)if(null!=T.after){if(!R||T.after!==R.getValue(l))return void o(!1,"Relay: Unexpected after cursor `%s`, edges must be fetched from the end of the list (`%s`).",T.after,R&&R.getValue(l));var N=new Set;d(S,F,N),d(D,F,N)}else if(null!=T.before){if(!R||T.before!==R.getValue(v))return void o(!1,"Relay: Unexpected before cursor `%s`, edges must be fetched from the beginning of the list (`%s`).",T.before,R&&R.getValue(v));var O=new Set;d(D,F,O),d(S,F,O)}else F=D;else F=D||S;if(null!=F&&F!==S&&I.setLinkedRecords(F,a),R&&m)if(null==T.after&&null==T.before)R.copyFieldsFrom(m);else if(null!=T.before||null==T.after&&T.last){R.setValue(!!m.getValue(h),h);var A=m.getValue(v);"string"==typeof A&&R.setValue(A,v)}else if(null!=T.after||null==T.before&&T.first){R.setValue(!!m.getValue(f),f);var x=m.getValue(l);"string"==typeof x&&R.setValue(x,l)}}else{var P=e.create(y,g.getType());P.setValue(0,u),P.copyFieldsFrom(g);var M=g.getLinkedRecords(a);M&&(M=M.map((function(t){return c(e,P,t)})),P.setLinkedRecords(M,a)),r.setLinkedRecord(P,t.handleKey),(R=e.create(s(P.getDataID(),p),_)).setValue(!1,f),R.setValue(!1,h),R.setValue(null,l),R.setValue(null,v),m&&R.copyFieldsFrom(m),P.setLinkedRecord(R,p)}}else r.setValue(null,t.handleKey)}}}},function(e,t,r){"use strict";var n=r(1)(r(7)),i=r(20),a=r(3),o=Object.freeze({RANGE_ADD:"RANGE_ADD",RANGE_DELETE:"RANGE_DELETE",NODE_DELETE:"NODE_DELETE"}),s=Object.freeze({APPEND:"append",PREPEND:"prepend"});function l(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:o,RangeOperations:s,convert:function(e,t,r,o){var s=r?[r]:[],u=o?[o]:[];return e.forEach((function(e){switch(e.type){case"NODE_DELETE":var r=function(e,t){var r=e.deletedIDFieldName,n=l(t);if(!n)return null;return 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)}))}}}(e,t);r&&(s.push(r),u.push(r));break;case"RANGE_ADD":var o=function(e,t){var r=e.parentID,o=e.connectionInfo,s=e.edgeName;if(!r)return a(!1,"RelayDeclarativeMutationConfig: For mutation config RANGE_ADD to work you must include a parentID"),null;var u=l(t);if(!o||!u)return null;return function(e,t){var l=e.get(r);if(l){var c=e.getRootField(u);if(c){var d,f=c.getLinkedRecord(s),h=(0,n.default)(o);try{for(h.s();!(d=h.n()).done;){var p=d.value;if(f){var _=i.getConnection(l,p.key,p.filters);if(_){var v=i.buildConnectionEdge(e,_,f);if(v)switch(p.rangeBehavior){case"append":i.insertEdgeAfter(_,v);break;case"prepend":i.insertEdgeBefore(_,v);break;default:a(!1,"RelayDeclarativeMutationConfig: RANGE_ADD range behavior `%s` will not work as expected in RelayModern, supported range behaviors are 'append', 'prepend'.",p.rangeBehavior)}}}}}catch(e){h.e(e)}finally{h.f()}}}}}(e,t);o&&(s.push(o),u.push(o));break;case"RANGE_DELETE":var c=function(e,t){var r=e.parentID,o=e.connectionKeys,s=e.pathToConnection,u=e.deletedIDFieldName;if(!r)return a(!1,"RelayDeclarativeMutationConfig: For mutation config RANGE_DELETE to work you must include a parentID"),null;var c=l(t);if(!c)return null;return function(e,t){if(t){var l=[],d=t[c];if(d&&Array.isArray(u)){var f,h=(0,n.default)(u);try{for(h.s();!(f=h.n()).done;){var p=f.value;d&&"object"==typeof d&&(d=d[p])}}catch(e){h.e(e)}finally{h.f()}Array.isArray(d)?d.forEach((function(e){e&&e.id&&"object"==typeof e&&"string"==typeof e.id&&l.push(e.id)})):d&&d.id&&"string"==typeof d.id&&l.push(d.id)}else d&&"string"==typeof u&&"object"==typeof d&&("string"==typeof(d=d[u])?l.push(d):Array.isArray(d)&&d.forEach((function(e){"string"==typeof e&&l.push(e)})));!function(e,t,r,o,s){a(null!=t,"RelayDeclarativeMutationConfig: RANGE_DELETE must provide a connectionKeys");var l=o.get(e);if(!l)return;if(r.length<2)return void a(!1,"RelayDeclarativeMutationConfig: RANGE_DELETE pathToConnection must include at least parent and connection");for(var u=l,c=1;c<r.length-1;c++)u&&(u=u.getLinkedRecord(r[c]));if(!t||!u)return void a(!1,"RelayDeclarativeMutationConfig: RANGE_DELETE pathToConnection is incorrect. Unable to find connection with parentID: %s and path: %s",e,r.toString());var d,f=(0,n.default)(t);try{var h=function(){var e=d.value,t=i.getConnection(u,e.key,e.filters);t&&s.forEach((function(e){i.deleteNode(t,e)}))};for(f.s();!(d=f.n()).done;)h()}catch(e){f.e(e)}finally{f.f()}}(r,o,s,e,l)}}}(e,t);c&&(s.push(c),u.push(c))}})),{optimisticUpdater:function(e,t){s.forEach((function(r){r(e,t)}))},updater:function(e,t){u.forEach((function(r){r(e,t)}))}}}}},function(e,t,r){"use strict";e.exports={EXISTENT:"EXISTENT",NONEXISTENT:"NONEXISTENT",UNKNOWN:"UNKNOWN"}},function(e,t,r){"use strict";e.exports={generateTypeID:function(e){return"client:__type:"+e},isTypeID:function(e){return 0===e.indexOf("client:__type:")},TYPE_SCHEMA_TYPE:"__TypeSchema"}},function(e,t,r){"use strict";var n=r(5),i=r(8),a=r(0),o=r(6),s=o.CLIENT_EXTENSION,l=o.CONDITION,u=o.DEFER,c=o.FLIGHT_FIELD,d=o.FRAGMENT_SPREAD,f=o.INLINE_DATA_FRAGMENT_SPREAD,h=o.INLINE_FRAGMENT,p=o.LINKED_FIELD,_=o.MODULE_IMPORT,v=o.REQUIRED_FIELD,g=o.SCALAR_FIELD,m=o.STREAM,y=r(19).getReactFlightClientResponse,b=r(2),E=b.FRAGMENTS_KEY,R=b.FRAGMENT_OWNER_KEY,I=b.FRAGMENT_PROP_NAME_KEY,D=b.ID_KEY,S=b.IS_WITHIN_UNMATCHED_TYPE_REFINEMENT,k=b.MODULE_COMPONENT_KEY,F=b.ROOT_ID,T=b.getArgumentValues,N=b.getStorageKey,O=b.getModuleComponentKey,A=r(23).generateTypeID;var x=function(){function e(e,t){this._isMissingData=!1,this._isWithinUnmatchedTypeRefinement=!1,this._missingRequiredFields=null,this._owner=t.owner,this._recordSource=e,this._seenRecords=new Set,this._selector=t,this._variables=t.variables}var t=e.prototype;return t.read=function(){var e=this._selector,t=e.node,r=e.dataID,a=e.isWithinUnmatchedTypeRefinement,o=t.abstractKey,s=this._recordSource.get(r),l=!a;l&&null==o&&null!=s&&(i.getType(s)!==t.type&&r!==F&&(l=!1));if(l&&null!=o&&null!=s&&n.ENABLE_PRECISE_TYPE_REFINEMENT){var u=i.getType(s),c=A(u),d=this._recordSource.get(c),f=null!=d?i.getValue(d,o):null;!1===f?l=!1:null==f&&(this._isMissingData=!0)}return this._isWithinUnmatchedTypeRefinement=!l,{data:this._traverse(t,r,null),isMissingData:this._isMissingData&&l,seenRecords:this._seenRecords,selector:this._selector,missingRequiredFields:this._missingRequiredFields}},t._traverse=function(e,t,r){var n=this._recordSource.get(t);if(this._seenRecords.add(t),null==n)return void 0===n&&(this._isMissingData=!0),n;var i=r||{};return this._traverseSelections(e.selections,n,i)?i:null},t._getVariableValue=function(e){return this._variables.hasOwnProperty(e)||a(!1,"RelayReader(): Undefined variable `%s`.",e),this._variables[e]},t._maybeReportUnexpectedNull=function(e,t,r){var n;if("THROW"!==(null===(n=this._missingRequiredFields)||void 0===n?void 0:n.action)){var i=this._selector.node.name;switch(t){case"THROW":return void(this._missingRequiredFields={action:t,field:{path:e,owner:i}});case"LOG":return null==this._missingRequiredFields&&(this._missingRequiredFields={action:t,fields:[]}),void this._missingRequiredFields.fields.push({path:e,owner:i})}}},t._traverseSelections=function(e,t,r){for(var o=0;o<e.length;o++){var y=e[o];switch(y.kind){case v:if(n.ENABLE_REQUIRED_DIRECTIVES||a(!1,'RelayReader(): Encountered a `@required` directive at path "%s" in `%s` without the `ENABLE_REQUIRED_DIRECTIVES` feature flag enabled.',y.path,this._selector.node.name),null==this._readRequiredField(y,t,r)){var b=y.action;return"NONE"!==b&&this._maybeReportUnexpectedNull(y.path,b,t),!1}break;case g:this._readScalar(y,t,r);break;case p:y.plural?this._readPluralLink(y,t,r):this._readLink(y,t,r);break;case l:if(this._getVariableValue(y.condition)===y.passingValue)if(!this._traverseSelections(y.selections,t,r))return!1;break;case h:var E=y.abstractKey;if(null==E){var R=i.getType(t);if(null!=R&&R===y.type)if(!this._traverseSelections(y.selections,t,r))return!1}else if(n.ENABLE_PRECISE_TYPE_REFINEMENT){var I=this._isMissingData,D=this._isWithinUnmatchedTypeRefinement,S=i.getType(t),k=A(S),F=this._recordSource.get(k),T=null!=F?i.getValue(F,E):null;this._isWithinUnmatchedTypeRefinement=D||!1===T,this._traverseSelections(y.selections,t,r),this._isWithinUnmatchedTypeRefinement=D,!1===T?this._isMissingData=I:null==T&&(this._isMissingData=!0)}else this._traverseSelections(y.selections,t,r);break;case d:this._createFragmentPointer(y,t,r);break;case _:this._readModuleImport(y,t,r);break;case f:this._createInlineDataFragmentPointer(y,t,r);break;case u:case s:var N=this._isMissingData,O=this._traverseSelections(y.selections,t,r);if(this._isMissingData=N,!O)return!1;break;case m:if(!this._traverseSelections(y.selections,t,r))return!1;break;case c:if(!n.ENABLE_REACT_FLIGHT_COMPONENT_FIELD)throw new Error("Flight fields are not yet supported.");this._readFlightField(y,t,r);break;default:a(!1,"RelayReader(): Unexpected ast kind `%s`.",y.kind)}}return!0},t._readRequiredField=function(e,t,r){switch(e.field.kind){case g:return this._readScalar(e.field,t,r);case p:return e.field.plural?this._readPluralLink(e.field,t,r):this._readLink(e.field,t,r);default:e.field.kind,a(!1,"RelayReader(): Unexpected ast kind `%s`.",e.kind)}},t._readFlightField=function(e,t,r){var n,a=null!==(n=e.alias)&&void 0!==n?n:e.name,o=N(e,this._variables),s=i.getLinkedRecordID(t,o);if(null==s)return r[a]=s,void 0===s&&(this._isMissingData=!0),s;var l=this._recordSource.get(s);if(this._seenRecords.add(s),null==l)return r[a]=l,void 0===l&&(this._isMissingData=!0),l;var u=y(l);return r[a]=u,u},t._readScalar=function(e,t,r){var n,a=null!==(n=e.alias)&&void 0!==n?n:e.name,o=N(e,this._variables),s=i.getValue(t,o);return void 0===s&&(this._isMissingData=!0),r[a]=s,s},t._readLink=function(e,t,r){var n,o=null!==(n=e.alias)&&void 0!==n?n:e.name,s=N(e,this._variables),l=i.getLinkedRecordID(t,s);if(null==l)return r[o]=l,void 0===l&&(this._isMissingData=!0),l;var u=r[o];null!=u&&"object"!=typeof u&&a(!1,"RelayReader(): Expected data for field `%s` on record `%s` to be an object, got `%s`.",o,i.getDataID(t),u);var c=this._traverse(e,l,u);return r[o]=c,c},t._readPluralLink=function(e,t,r){var n,o=this,s=null!==(n=e.alias)&&void 0!==n?n:e.name,l=N(e,this._variables),u=i.getLinkedRecordIDs(t,l);if(null==u)return r[s]=u,void 0===u&&(this._isMissingData=!0),u;var c=r[s];null==c||Array.isArray(c)||a(!1,"RelayReader(): Expected data for field `%s` on record `%s` to be an array, got `%s`.",s,i.getDataID(t),c);var d=c||[];return u.forEach((function(r,n){if(null==r)return void 0===r&&(o._isMissingData=!0),void(d[n]=r);var l=d[n];null!=l&&"object"!=typeof l&&a(!1,"RelayReader(): Expected data for field `%s` on record `%s` to be an object, got `%s`.",s,i.getDataID(t),l),d[n]=o._traverse(e,r,l)})),r[s]=d,d},t._readModuleImport=function(e,t,r){var n=O(e.documentName),a=i.getValue(t,n);null!=a?(this._createFragmentPointer({kind:"FragmentSpread",name:e.fragmentName,args:null},t,r),r[I]=e.fragmentPropName,r[k]=a):void 0===a&&(this._isMissingData=!0)},t._createFragmentPointer=function(e,t,r){var o=r[E];null==o&&(o=r[E]={}),("object"!=typeof o||null==o)&&a(!1,"RelayReader: Expected fragment spread data to be an object, got `%s`.",o),null==r[D]&&(r[D]=i.getDataID(t)),o[e.name]=e.args?T(e.args,this._variables):{},r[R]=this._owner,n.ENABLE_PRECISE_TYPE_REFINEMENT&&(r[S]=this._isWithinUnmatchedTypeRefinement)},t._createInlineDataFragmentPointer=function(e,t,r){var n=r[E];null==n&&(n=r[E]={}),("object"!=typeof n||null==n)&&a(!1,"RelayReader: Expected fragment spread data to be an object, got `%s`.",n),null==r[D]&&(r[D]=i.getDataID(t));var o={};this._traverseSelections(e.selections,t,o),n[e.name]=o},e}();e.exports={read:function(e,t){return new x(e,t).read()}}},function(e,t,r){"use strict";var n=r(0),i=r(35).DEFAULT_HANDLE_KEY;e.exports=function(e,t,r){return t&&t!==i?"__".concat(t,"_").concat(e):(null==r&&n(!1,"getRelayHandleKey: Expected either `fieldName` or `key` in `handle` to be provided"),"__".concat(r,"_").concat(e))}},function(e,t,r){"use strict";var n=r(1)(r(4)),i=r(0);e.exports={getFragmentVariables:function(e,t,r){var a;return e.argumentDefinitions.forEach((function(o){if(!r.hasOwnProperty(o.name))switch(a=a||(0,n.default)({},r),o.kind){case"LocalArgument":a[o.name]=o.defaultValue;break;case"RootArgument":if(!t.hasOwnProperty(o.name)){a[o.name]=void 0;break}a[o.name]=t[o.name];break;default:i(!1,"RelayConcreteVariables: Unexpected node kind `%s` in fragment `%s`.",o.kind,e.name)}})),a||r},getOperationVariables:function(e,t){var r={};return e.argumentDefinitions.forEach((function(e){var n=e.defaultValue;null!=t[e.name]&&(n=t[e.name]),r[e.name]=n})),r}}},function(e,t,r){"use strict";function n(){}var i={"*":[]},a={"*":[]},o={},s={stop:n},l={instrumentMethods:function(e,t){for(var r in t)t.hasOwnProperty(r)&&"function"==typeof e[r]&&(e[r]=l.instrument(t[r],e[r]))},instrument:function(e,t){i.hasOwnProperty(e)||(i[e]=[]);var r=i["*"],n=i[e],a=[],s=[],l=function i(){var o=s[s.length-1];o[0]?(o[0]--,r[o[0]](e,i)):o[1]?(o[1]--,n[o[1]](e,i)):o[2]?(o[2]--,a[o[2]](e,i)):o[5]=t.apply(o[3],o[4])},c=function(){var e;if(0===n.length&&0===a.length&&0===r.length)e=t.apply(this,arguments);else{s.push([r.length,n.length,a.length,this,arguments,o]),l();var i=s.pop();if((e=i[5])===o)throw new Error("RelayProfiler: Handler did not invoke original function.")}return e};return c.attachHandler=function(e){a.push(e)},c.detachHandler=function(e){u(a,e)},c.displayName="(instrumented "+e+")",c},attachAggregateHandler:function(e,t){i.hasOwnProperty(e)||(i[e]=[]),i[e].push(t)},detachAggregateHandler:function(e,t){i.hasOwnProperty(e)&&u(i[e],t)},profile:function(e,t){var r=a["*"].length>0,n=a.hasOwnProperty(e);if(n||r){for(var i,o=n&&r?a[e].concat(a["*"]):n?a[e]:a["*"],l=o.length-1;l>=0;l--){var u=(0,o[l])(e,t);(i=i||[]).unshift(u)}return{stop:function(e){i&&i.forEach((function(t){return t(e)}))}}}return s},attachProfileHandler:function(e,t){a.hasOwnProperty(e)||(a[e]=[]),a[e].push(t)},detachProfileHandler:function(e,t){a.hasOwnProperty(e)&&u(a[e],t)}};function u(e,t){var r=e.indexOf(t);-1!==r&&e.splice(r,1)}e.exports=l},function(e,t,r){"use strict";var n=r(6),i=n.REQUEST,a=n.SPLIT_OPERATION;e.exports=function(e){switch(e.kind){case i:return e.operation;case a:default:return e}}},function(e,t){e.exports=s},function(e,t,r){"use strict";var n="undefined"!=typeof WeakSet,i="undefined"!=typeof WeakMap;e.exports=function e(t,r){if(t===r||"object"!=typeof t||t instanceof Set||t instanceof Map||n&&t instanceof WeakSet||i&&t instanceof WeakMap||!t||"object"!=typeof r||r instanceof Set||r instanceof Map||n&&r instanceof WeakSet||i&&r instanceof WeakMap||!r)return r;var a=!1,o=Array.isArray(t)?t:null,s=Array.isArray(r)?r:null;if(o&&s)a=s.reduce((function(t,r,n){var i=e(o[n],r);return i!==s[n]&&(Object.isFrozen(s)||(s[n]=i)),t&&i===o[n]}),!0)&&o.length===s.length;else if(!o&&!s){var l=t,u=r,c=Object.keys(l),d=Object.keys(u);a=d.reduce((function(t,r){var n=e(l[r],u[r]);return n!==u[r]&&(Object.isFrozen(u)||(u[r]=n)),t&&n===l[r]}),!0)&&c.length===d.length}return a?t:r}},function(e,t,r){"use strict";e.exports=function(e){return Boolean(e&&e["@@RelayModernEnvironment"])}},function(e,t,r){"use strict";e.exports=function(e,t){switch(t.action){case"THROW":var r=t.field,n=r.path,i=r.owner;throw e.requiredFieldLogger({kind:"missing_field.throw",owner:i,fieldPath:n}),new Error("Relay: Missing @required value at path '".concat(n,"' in '").concat(i,"'."));case"LOG":t.fields.forEach((function(t){var r=t.path,n=t.owner;e.requiredFieldLogger({kind:"missing_field.log",owner:n,fieldPath:r})}));break;default:t.action}}},function(e,t,r){"use strict";var n=r(12),i=r(47),a=r(0),o="function"==typeof WeakMap?new WeakMap:new Map;function s(e,t,r){return n.create((function(o){var s=u(e),l=s.get(t);return l||r().finally((function(){return s.delete(t)})).subscribe({start:function(e){l={identifier:t,subject:new i,subjectForInFlightStatus:new i,subscription:e},s.set(t,l)},next:function(e){var r=c(s,t);r.subject.next(e),r.subjectForInFlightStatus.next(e)},error:function(e){var r=c(s,t);r.subject.error(e),r.subjectForInFlightStatus.error(e)},complete:function(){var e=c(s,t);e.subject.complete(),e.subjectForInFlightStatus.complete()},unsubscribe:function(e){var r=c(s,t);r.subject.unsubscribe(),r.subjectForInFlightStatus.unsubscribe()}}),null==l&&a(!1,"[fetchQueryInternal] fetchQueryDeduped: Expected `start` to be called synchronously"),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))}}}))}(s,l).subscribe(o)}))}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=o.get(e);if(null!=t)return t;var r=new Map;return o.set(e,r),r}function c(e,t){var r=e.get(t);return null==r&&a(!1,"[fetchQueryInternal] getCachedRequest: Expected request to be cached"),r}e.exports={fetchQuery:function(e,t){return s(e,t.request.identifier,(function(){return e.execute({operation:t})}))},fetchQueryDeduped:s,getPromiseForActiveRequest:function(e,t){var r=u(e),n=r.get(t.identifier);return n&&e.isRequestActive(n.identifier)?new Promise((function(t,r){var i=!1;l(e,0,n).subscribe({complete:t,error:r,next:function(e){i&&t(e)}}),i=!0})):null},getObservableForActiveRequest:function(e,t){var r=u(e),n=r.get(t.identifier);return n&&e.isRequestActive(n.identifier)?l(e,0,n):null}}},function(e,t,r){"use strict";var n={after:!0,before:!0,find:!0,first:!0,last:!0,surrounds:!0},i={CLIENT_MUTATION_ID:"clientMutationId",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"},a={inject:function(e){i=e},get:function(){return i},isConnectionCall:function(e){return n.hasOwnProperty(e.name)}};e.exports=a},function(e,t,r){"use strict";e.exports={DEFAULT_HANDLE_KEY:""}},function(e,t,r){"use strict";var n=r(1)(r(7)),i=r(20),a=r(0),o=r(3),s={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 s=t.handleArgs.connections;null==s&&a(!1,"MutationHandlers: Expected connection IDs to be specified.");var l=r.getValue(t.fieldKey);(Array.isArray(l)?l:[l]).forEach((function(t){if("string"==typeof t){var r,a=(0,n.default)(s);try{for(a.s();!(r=a.n()).done;){var l=r.value,u=e.get(l);null!=u?i.deleteNode(u,t):o(!1,"[Relay][Mutation] The connection with id '".concat(l,"' doesn't exist."))}}catch(e){a.e(e)}finally{a.f()}}}))}}},u={update:h(i.insertEdgeAfter)},c={update:h(i.insertEdgeBefore)},d={update:p(i.insertEdgeAfter)},f={update:p(i.insertEdgeBefore)};function h(e){return function(t,r){var s,l=t.get(r.dataID);if(null!=l){var u,c,d=r.handleArgs.connections;null==d&&a(!1,"MutationHandlers: Expected connection IDs to be specified.");try{u=l.getLinkedRecord(r.fieldKey,r.args)}catch(e){}if(!u)try{c=l.getLinkedRecords(r.fieldKey,r.args)}catch(e){}if(null!=u||null!=c){var f,h=null!==(s=c)&&void 0!==s?s:[u],p=(0,n.default)(h);try{for(p.s();!(f=p.n()).done;){var _=f.value;if(null!=_){var v,g=(0,n.default)(d);try{for(g.s();!(v=g.n()).done;){var m=v.value,y=t.get(m);if(null!=y){var b=i.buildConnectionEdge(t,y,_);null==b&&a(!1,"MutationHandlers: Failed to build the edge."),e(y,b)}else o(!1,"[Relay][Mutation] The connection with id '".concat(m,"' doesn't exist."))}}catch(e){g.e(e)}finally{g.f()}}}}catch(e){p.e(e)}finally{p.f()}}else o(!1,"MutationHandlers: Expected the server edge to be non-null.")}}}function p(e){return function(t,r){var s,l=t.get(r.dataID);if(null!=l){var u,c,d=r.handleArgs,f=d.connections,h=d.edgeTypeName;null==f&&a(!1,"MutationHandlers: Expected connection IDs to be specified."),null==h&&a(!1,"MutationHandlers: Expected edge typename to be specified.");try{u=l.getLinkedRecord(r.fieldKey,r.args)}catch(e){}if(!u)try{c=l.getLinkedRecords(r.fieldKey,r.args)}catch(e){}if(null!=u||null!=c){var p,_=null!==(s=c)&&void 0!==s?s:[u],v=(0,n.default)(_);try{for(v.s();!(p=v.n()).done;){var g=p.value;if(null!=g){var m,y=(0,n.default)(f);try{for(y.s();!(m=y.n()).done;){var b=m.value,E=t.get(b);if(null!=E){var R=i.createEdge(t,E,g,h);null==R&&a(!1,"MutationHandlers: Failed to build the edge."),e(E,R)}else o(!1,"[Relay][Mutation] The connection with id '".concat(b,"' doesn't exist."))}}catch(e){y.e(e)}finally{y.f()}}}}catch(e){v.e(e)}finally{v.f()}}else o(!1,"MutationHandlers: Expected target node to exist.")}}}e.exports={AppendEdgeHandler:u,DeleteRecordHandler:s,PrependEdgeHandler:c,AppendNodeHandler:d,PrependNodeHandler:f,DeleteEdgeHandler:l}},function(e,t,r){"use strict";var n=r(20),i=r(36),a=r(0);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,"RelayDefaultHandlerProvider: No handler provided for `%s`.",e)}},function(e,t,r){"use strict";function n(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 o=0,s=r.replace(/%s/g,(function(){return String(i[o++])})),l=new Error(s),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,t){for(var r=arguments.length,i=new Array(r>2?r-2:0),a=2;a<r;a++)i[a-2]=arguments[a];return n.apply(void 0,["error",e,t].concat(i))},createWarning:function(e,t){for(var r=arguments.length,i=new Array(r>2?r-2:0),a=2;a<r;a++)i[a-2]=arguments[a];return n.apply(void 0,["warn",e,t].concat(i))}}},function(e,t,r){"use strict";e.exports=function(e){return!!e&&"function"==typeof e.then}},function(e,t,r){"use strict";var n=r(1)(r(7)),i=r(0),a=function(){function e(){this._ownersToPendingOperationsIdentifier=new Map,this._pendingOperationsToOwnersIdentifier=new Map,this._ownersIdentifierToPromise=new Map}var t=e.prototype;return t.update=function(e,t){if(0!==t.size){var r,i=e.identifier,a=new Set,o=(0,n.default)(t);try{for(o.s();!(r=o.n()).done;){var s=r.value.identifier,l=this._ownersToPendingOperationsIdentifier.get(s);null!=l?l.has(i)||(l.add(i),a.add(s)):(this._ownersToPendingOperationsIdentifier.set(s,new Set([i])),a.add(s))}}catch(e){o.e(e)}finally{o.f()}if(0!==a.size){var u,c=this._pendingOperationsToOwnersIdentifier.get(i)||new Set,d=(0,n.default)(a);try{for(d.s();!(u=d.n()).done;){var f=u.value;this._resolveOwnerResolvers(f),c.add(f)}}catch(e){d.e(e)}finally{d.f()}this._pendingOperationsToOwnersIdentifier.set(i,c)}}},t.complete=function(e){var t=e.identifier,r=this._pendingOperationsToOwnersIdentifier.get(t);if(null!=r){var i,a=new Set,o=new Set,s=(0,n.default)(r);try{for(s.s();!(i=s.n()).done;){var l=i.value,u=this._ownersToPendingOperationsIdentifier.get(l);u&&(u.delete(t),u.size>0?o.add(l):a.add(l))}}catch(e){s.e(e)}finally{s.f()}var c,d=(0,n.default)(a);try{for(d.s();!(c=d.n()).done;){var f=c.value;this._resolveOwnerResolvers(f),this._ownersToPendingOperationsIdentifier.delete(f)}}catch(e){d.e(e)}finally{d.f()}var h,p=(0,n.default)(o);try{for(p.s();!(h=p.n()).done;){var _=h.value;this._resolveOwnerResolvers(_)}}catch(e){p.e(e)}finally{p.f()}this._pendingOperationsToOwnersIdentifier.delete(t)}},t._resolveOwnerResolvers=function(e){var t=this._ownersIdentifierToPromise.get(e);null!=t&&t.resolve(),this._ownersIdentifierToPromise.delete(e)},t.getPromiseForPendingOperationsAffectingOwner=function(e){var t=e.identifier;if(!this._ownersToPendingOperationsIdentifier.has(t))return null;var r,n=this._ownersIdentifierToPromise.get(t);if(null!=n)return n.promise;var a=new Promise((function(e){r=e}));return null==r&&i(!1,"RelayOperationTracker: Expected resolver to be defined. If youare seeing this, it is likely a bug in Relay."),this._ownersIdentifierToPromise.set(t,{promise:a,resolve:r}),a},e}();e.exports=a},function(e,t,r){"use strict";var n=r(8),i=r(0),a=r(22).EXISTENT,o=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);if(void 0===r){if(null==t)return t;var i=n.clone(t);return n.freeze(i),i}if(null===r)return null;if(null!=t){var a=n.update(t,r);return a!==t&&n.freeze(a),a}var o=n.clone(r);return n.freeze(o),o},t._getSinkRecord=function(e){var t=this._sink.get(e);if(!t){var r=this._base.get(e);r||i(!1,"RelayRecordSourceMutator: Cannot modify non-existent record `%s`.",e),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),a=this._base.get(e);r||a||i(!1,"RelayRecordSourceMutator#copyFields(): Cannot copy fields from non-existent record `%s`.",e);var o=this._getSinkRecord(t);a&&n.copyFields(a,o),r&&n.copyFields(r,o)},t.copyFieldsFromRecord=function(e,t){var r=this._getSinkRecord(t);n.copyFields(e,r)},t.create=function(e,t){(this._base.getStatus(e)===a||this._sink.getStatus(e)===a)&&i(!1,"RelayRecordSourceMutator#create(): Cannot create a record with id `%s`, this record already exists.",e);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.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=o},function(e,t,r){"use strict";var n=r(8),i=r(58),a=r(0),o=r(22),s=o.EXISTENT,l=o.NONEXISTENT,u=r(2),c=u.ROOT_ID,d=u.ROOT_TYPE,f=function(){function e(e,t,r){this.__mutator=e,this._handlerProvider=r||null,this._proxies={},this._getDataID=t,this._invalidatedStore=!1,this._idsMarkedForInvalidation=new Set}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===s){var a=e.get(t);a&&(r.__mutator.getStatus(t)!==s&&r.create(t,n.getType(a)),r.__mutator.copyFieldsFromRecord(a,t))}else i===l&&r.delete(t)})),t&&t.length&&t.forEach((function(e){var t=r._handlerProvider&&r._handlerProvider(e.handle);t||a(!1,"RelayModernEnvironment: Expected a handler to be provided for handle `%s`.",e.handle),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||a(!1,"RelayRecordSourceProxy#create(): Expected the created record to exist."),r},t.delete=function(e){e===c&&a(!1,"RelayRecordSourceProxy#delete(): Cannot delete the root record."),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===s?new i(this,this.__mutator,e):t===l?null:void 0}return this._proxies[e]},t.getRoot=function(){var e=this.get(c);return e||(e=this.create(c,d)),e&&e.getType()===d||a(!1,"RelayRecordSourceProxy#getRoot(): Expected the source to contain a root record, %s.",null==e?"no root record found":"found a root record of type `".concat(e.getType(),"`")),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},e}();e.exports=f},function(e,t,r){"use strict";var n=r(44),i=n.VIEWER_ID,a=n.VIEWER_TYPE;e.exports=function(e,t){return t===a&&null==e.id?i:e.id}},function(e,t,r){"use strict";var n=(0,r(9).generateClientID)(r(2).ROOT_ID,"viewer");e.exports={VIEWER_ID:n,VIEWER_TYPE:"Viewer"}},function(e,t,r){"use strict";var n=r(0),i=r(14);e.exports=function(e,t){var r=null!=e.cacheID?e.cacheID:e.id;return null==r&&n(!1,"getRequestIdentifier: Expected request `%s` to have either a valid `id` or `cacheID` property",e.name),r+JSON.stringify(i(t))}},function(e,t,r){"use strict";var n=r(15),i=r(0),a=r(6).LINKED_FIELD,o=r(2).getHandleStorageKey;e.exports=function(e,t,r){var s=t.find((function(t){return t.kind===a&&t.name===e.name&&t.alias===e.alias&&n(t.args,e.args)}));s&&s.kind===a||i(!1,"cloneRelayHandleSourceField: Expected a corresponding source field for handle `%s`.",e.handle);var l=o(e,r);return{kind:"LinkedField",alias:s.alias,name:l,storageKey:l,args:null,concreteType:s.concreteType,plural:s.plural,selections:s.selections}}},function(e,t,r){"use strict";var n=r(1)(r(29)),i=r(12),a=r(0),o=function(){function e(){var e=this;(0,n.default)(this,"_complete",!1),(0,n.default)(this,"_events",[]),(0,n.default)(this,"_sinks",new Set),(0,n.default)(this,"_subscription",null),this._observable=i.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,a(!1,"RelayReplaySubject: Unknown event kind `%s`.",i.kind)}}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){return this._subscription=this._observable.subscribe(e),this._subscription},t.unsubscribe=function(){this._subscription&&(this._subscription.unsubscribe(),this._subscription=null)},t.getObserverCount=function(){return this._sinks.size},e}();e.exports=o},function(e,t,r){"use strict";e.exports=function(e,t){return e===t&&(null===e||"object"!=typeof e)}},function(e,t,r){"use strict";var n=r(20),i=r(34),a=r(10),o=r(36),s=r(50),l=r(6),u=r(26),c=r(21),d=r(35),f=r(37),h=r(38),p=r(5),_=r(51),v=r(13),g=r(8),m=r(16),y=r(63),b=r(72),E=r(12),R=r(40),I=r(27),D=r(74),S=r(18),k=r(47),F=r(2),T=r(44),N=r(75),O=r(76),A=r(77),x=r(79),P=r(81),M=r(82),w=r(11),L=r(83),C=r(33),U=r(84),j=r(85),q=r(25),V=r(45),H=r(39),K=r(31),z=r(48),G=r(87),Q=r(30),Y=r(32),B=r(88),W=r(14),J=r(9),X=J.generateClientID,Z=J.generateUniqueClientID,$=J.isClientID,ee="function"!=typeof Map?"Map":null,te="function"!=typeof Set?"Set":null,re="function"!=typeof Promise?"Promise":null,ne="function"!=typeof Object.assign?"Object.assign":null;if(ee||te||re||ne)throw new Error("relay-runtime requires ".concat([ee,te,re,ne].filter(Boolean).join(", and ")," to exist. ")+"Use a polyfill to provide these for older browsers.");e.exports={Environment:_,Network:b,Observable:E,QueryResponseCache:D,RecordSource:S,Record:g,ReplaySubject:k,Store:y,areEqualSelectors:m.areEqualSelectors,createFragmentSpecResolver:x,createNormalizationSelector:m.createNormalizationSelector,createOperationDescriptor:v.createOperationDescriptor,createReaderSelector:m.createReaderSelector,createRequestDescriptor:v.createRequestDescriptor,getDataIDsFromFragment:m.getDataIDsFromFragment,getDataIDsFromObject:m.getDataIDsFromObject,getNode:a.getNode,getFragment:a.getFragment,getInlineDataFragment:a.getInlineDataFragment,getModuleComponentKey:F.getModuleComponentKey,getModuleOperationKey:F.getModuleOperationKey,getPaginationFragment:a.getPaginationFragment,getPluralSelector:m.getPluralSelector,getRefetchableFragment:a.getRefetchableFragment,getRequest:a.getRequest,getRequestIdentifier:V,getSelector:m.getSelector,getSelectorsFromObject:m.getSelectorsFromObject,getSingularSelector:m.getSingularSelector,getStorageKey:F.getStorageKey,getVariablesFromFragment:m.getVariablesFromFragment,getVariablesFromObject:m.getVariablesFromObject,getVariablesFromPluralFragment:m.getVariablesFromPluralFragment,getVariablesFromSingularFragment:m.getVariablesFromSingularFragment,reportMissingRequiredFields:Y,graphql:a.graphql,isFragment:a.isFragment,isInlineDataFragment:a.isInlineDataFragment,isRequest:a.isRequest,readInlineData:G,MutationTypes:c.MutationTypes,RangeOperations:c.RangeOperations,DefaultHandlerProvider:f,ConnectionHandler:n,MutationHandlers:o,VIEWER_ID:T.VIEWER_ID,VIEWER_TYPE:T.VIEWER_TYPE,applyOptimisticMutation:N,commitLocalUpdate:O,commitMutation:A,fetchQuery:L,fetchQuery_DEPRECATED:U,isRelayModernEnvironment:K,requestSubscription:B,ConnectionInterface:i,PreloadableQueryRegistry:s,RelayProfiler:I,createPayloadFor3DField:P,RelayConcreteNode:l,RelayError:h,RelayFeatureFlags:p,DEFAULT_HANDLE_KEY:d.DEFAULT_HANDLE_KEY,FRAGMENTS_KEY:F.FRAGMENTS_KEY,FRAGMENT_OWNER_KEY:F.FRAGMENT_OWNER_KEY,ID_KEY:F.ID_KEY,REF_KEY:F.REF_KEY,REFS_KEY:F.REFS_KEY,ROOT_ID:F.ROOT_ID,ROOT_TYPE:F.ROOT_TYPE,TYPENAME_KEY:F.TYPENAME_KEY,deepFreeze:w,generateClientID:X,generateUniqueClientID:Z,getRelayHandleKey:q,isClientID:$,isPromise:H,isScalarAndEqual:z,recycleNodesInto:Q,stableCopy:W,getFragmentIdentifier:j,__internal:{OperationTracker:R,createRelayContext:M,getOperationVariables:u.getOperationVariables,fetchQuery:C.fetchQuery,fetchQueryDeduped:C.fetchQueryDeduped,getPromiseForActiveRequest:C.getPromiseForActiveRequest,getObservableForActiveRequest:C.getObservableForActiveRequest}}},function(e,t,r){"use strict";var n=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;n.add(t);return this._callbacks.set(e,n),{dispose:function(){n.delete(t)}}},t.clear=function(){this._preloadableQueries.clear()},e}());e.exports=n},function(e,t,r){"use strict";(function(t){var n=r(1)(r(4)),i=r(37),a=r(5),o=r(53),s=r(12),l=r(40),u=r(56),c=r(18),d=r(43),f=r(60),h=r(61),p=r(0),_=function(){function e(e){var n,o,s,c,h,_,g,m=this;this.configName=e.configName;var y=e.handlerProvider?e.handlerProvider:i;this._treatMissingFieldsAsNull=!0===e.treatMissingFieldsAsNull;var b=e.operationLoader,E=e.reactFlightPayloadDeserializer,R=e.reactFlightServerErrorHandler;null!=b&&("object"!=typeof b||"function"!=typeof b.get||"function"!=typeof b.load)&&p(!1,"RelayModernEnvironment: Expected `operationLoader` to be an object with get() and load() functions, got `%s`.",b),null!=E&&"function"!=typeof E&&p(!1,"RelayModernEnvironment: Expected `reactFlightPayloadDeserializer` to be a function, got `%s`.",E),this.__log=null!==(n=e.log)&&void 0!==n?n:v,this.requiredFieldLogger=null!==(o=e.requiredFieldLogger)&&void 0!==o?o:f,this._defaultRenderPolicy=(null!==(s=e.UNSTABLE_defaultRenderPolicy)&&void 0!==s?s:!0===a.ENABLE_PARTIAL_RENDERING_DEFAULT)?"partial":"full",this._operationLoader=b,this._operationExecutions=new Map,this._network=this.__wrapNetworkWithLogObserver(e.network),this._getDataID=null!==(c=e.getDataID)&&void 0!==c?c:d,this._publishQueue=new u(e.store,y,this._getDataID),this._scheduler=null!==(h=e.scheduler)&&void 0!==h?h:null,this._store=e.store,this.options=e.options,this._isServer=null!==(_=e.isServer)&&void 0!==_&&_,this.__setNet=function(e){return m._network=m.__wrapNetworkWithLogObserver(e)};var I=r(62).inspect;this.DEBUG_inspect=function(e){return I(m,e)};var D=void 0!==t?t:"undefined"!=typeof window?window:void 0,S=D&&D.__RELAY_DEVTOOLS_HOOK__;S&&S.registerEnvironment(this),this._missingFieldHandlers=e.missingFieldHandlers,this._operationTracker=null!==(g=e.operationTracker)&&void 0!==g?g:new l,this._reactFlightPayloadDeserializer=E,this._reactFlightServerErrorHandler=R}var _=e.prototype;return _.getStore=function(){return this._store},_.getNetwork=function(){return this._network},_.getOperationTracker=function(){return this._operationTracker},_.isRequestActive=function(e){return"active"===this._operationExecutions.get(e)},_.UNSTABLE_getDefaultRenderPolicy=function(){return this._defaultRenderPolicy},_.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()}))}}},_.revertUpdate=function(e){var t=this;this._scheduleUpdates((function(){t._publishQueue.revertUpdate(e),t._publishQueue.run()}))},_.replaceUpdate=function(e,t){var r=this;this._scheduleUpdates((function(){r._publishQueue.revertUpdate(e),r._publishQueue.applyUpdate(t),r._publishQueue.run()}))},_.applyMutation=function(e){var t=this,r=s.create((function(r){var n=s.create((function(e){})),i=o.execute({operation:e.operation,operationExecutions:t._operationExecutions,operationLoader:t._operationLoader,optimisticConfig:e,publishQueue:t._publishQueue,reactFlightPayloadDeserializer:t._reactFlightPayloadDeserializer,reactFlightServerErrorHandler:t._reactFlightServerErrorHandler,scheduler:t._scheduler,sink:r,source:n,store:t._store,updater:null,operationTracker:t._operationTracker,getDataID:t._getDataID,treatMissingFieldsAsNull:t._treatMissingFieldsAsNull});return function(){return i.cancel()}})).subscribe({});return{dispose:function(){return r.unsubscribe()}}},_.check=function(e){return null==this._missingFieldHandlers||0===this._missingFieldHandlers.length?this._store.check(e):this._checkSelectorAndHandleMissingFields(e,this._missingFieldHandlers)},_.commitPayload=function(e,t){var r=this;s.create((function(n){var i=o.execute({operation:e,operationExecutions:r._operationExecutions,operationLoader:r._operationLoader,optimisticConfig:null,publishQueue:r._publishQueue,reactFlightPayloadDeserializer:r._reactFlightPayloadDeserializer,reactFlightServerErrorHandler:r._reactFlightServerErrorHandler,scheduler:r._scheduler,sink:n,source:s.from({data:t}),store:r._store,updater:null,operationTracker:r._operationTracker,getDataID:r._getDataID,isClientPayload:!0,treatMissingFieldsAsNull:r._treatMissingFieldsAsNull});return function(){return i.cancel()}})).subscribe({})},_.commitUpdate=function(e){var t=this;this._scheduleUpdates((function(){t._publishQueue.commitUpdate(e),t._publishQueue.run()}))},_.lookup=function(e){return this._store.lookup(e)},_.subscribe=function(e,t){return this._store.subscribe(e,t)},_.retain=function(e){return this._store.retain(e)},_.isServer=function(){return this._isServer},_._checkSelectorAndHandleMissingFields=function(e,t){var r=this,n=c.create(),i=this._store.check(e,{target:n,handlers:t});return n.size()>0&&this._scheduleUpdates((function(){r._publishQueue.commitSource(n),r._publishQueue.run()})),i},_._scheduleUpdates=function(e){var t=this._scheduler;null!=t?t.schedule(e):e()},_.execute=function(e){var t=this,r=e.operation,n=e.updater;return s.create((function(e){var i=t._network.execute(r.request.node.params,r.request.variables,r.request.cacheConfig||{},null),a=o.execute({operation:r,operationExecutions:t._operationExecutions,operationLoader:t._operationLoader,optimisticConfig:null,publishQueue:t._publishQueue,reactFlightPayloadDeserializer:t._reactFlightPayloadDeserializer,reactFlightServerErrorHandler:t._reactFlightServerErrorHandler,scheduler:t._scheduler,sink:e,source:i,store:t._store,updater:n,operationTracker:t._operationTracker,getDataID:t._getDataID,treatMissingFieldsAsNull:t._treatMissingFieldsAsNull});return function(){return a.cancel()}}))},_.executeMutation=function(e){var t=this,r=e.operation,i=e.optimisticResponse,a=e.optimisticUpdater,l=e.updater,u=e.uploadables;return s.create((function(e){var s;(i||a)&&(s={operation:r,response:i,updater:a});var c=t._network.execute(r.request.node.params,r.request.variables,(0,n.default)((0,n.default)({},r.request.cacheConfig),{},{force:!0}),u),d=o.execute({operation:r,operationExecutions:t._operationExecutions,operationLoader:t._operationLoader,optimisticConfig:s,publishQueue:t._publishQueue,reactFlightPayloadDeserializer:t._reactFlightPayloadDeserializer,reactFlightServerErrorHandler:t._reactFlightServerErrorHandler,scheduler:t._scheduler,sink:e,source:c,store:t._store,updater:l,operationTracker:t._operationTracker,getDataID:t._getDataID,treatMissingFieldsAsNull:t._treatMissingFieldsAsNull});return function(){return d.cancel()}}))},_.executeWithSource=function(e){var t=this,r=e.operation,n=e.source;return s.create((function(e){var i=o.execute({operation:r,operationExecutions:t._operationExecutions,operationLoader:t._operationLoader,operationTracker:t._operationTracker,optimisticConfig:null,publishQueue:t._publishQueue,reactFlightPayloadDeserializer:t._reactFlightPayloadDeserializer,reactFlightServerErrorHandler:t._reactFlightServerErrorHandler,scheduler:t._scheduler,sink:e,source:n,store:t._store,getDataID:t._getDataID,treatMissingFieldsAsNull:t._treatMissingFieldsAsNull});return function(){return i.cancel()}}))},_.toJSON=function(){var e;return"RelayModernEnvironment(".concat(null!==(e=this.configName)&&void 0!==e?e:"",")")},_.__wrapNetworkWithLogObserver=function(e){var t=this;return{execute:function(r,n,i,a){var o=h(),s=t.__log,l={start:function(e){s({name:"network.start",transactionID:o,params:r,variables:n,cacheConfig:i})},next:function(e){s({name:"network.next",transactionID:o,response:e})},error:function(e){s({name:"network.error",transactionID:o,error:e})},complete:function(){s({name:"network.complete",transactionID:o})},unsubscribe:function(){s({name:"network.unsubscribe",transactionID:o})}};return e.execute(r,n,i,a,(function(e){s({name:"network.info",transactionID:o,info:e})})).do(l)}}},e}();function v(){}_.prototype["@@RelayModernEnvironment"]=!0,e.exports=_}).call(this,r(52))},function(e,t){var r;r=function(){return this}();try{r=r||new Function("return this")()}catch(e){"object"==typeof window&&(r=window)}e.exports=r},function(e,t,r){"use strict";var n=r(1),i=n(r(4)),a=n(r(7)),o=n(r(17)),s=r(38),l=r(8),u=r(12),c=r(18),d=r(55),f=r(28),h=r(0),p=r(14),_=r(3),v=r(9).generateClientID,g=r(16).createNormalizationSelector,m=r(2),y=m.ROOT_TYPE,b=m.TYPENAME_KEY,E=m.getStorageKey;var R=function(){function e(e){var t=this,r=e.operation,n=e.operationExecutions,i=e.operationLoader,a=e.optimisticConfig,o=e.publishQueue,s=e.scheduler,l=e.sink,u=e.source,c=e.store,d=e.updater,f=e.operationTracker,h=e.treatMissingFieldsAsNull,p=e.getDataID,_=e.isClientPayload,v=e.reactFlightPayloadDeserializer,g=e.reactFlightServerErrorHandler;this._getDataID=p,this._treatMissingFieldsAsNull=h,this._incrementalPayloadsPending=!1,this._incrementalResults=new Map,this._nextSubscriptionId=0,this._operation=r,this._operationExecutions=n,this._operationLoader=i,this._operationTracker=f,this._operationUpdateEpochs=new Map,this._optimisticUpdates=null,this._pendingModulePayloadsCount=0,this._publishQueue=o,this._scheduler=s,this._sink=l,this._source=new Map,this._state="started",this._store=c,this._subscriptions=new Map,this._updater=d,this._isClientPayload=!0===_,this._reactFlightPayloadDeserializer=v,this._reactFlightServerErrorHandler=g;var m=this._nextSubscriptionId++;u.subscribe({complete:function(){return t._complete(m)},error:function(e){return t._error(e)},next:function(e){try{t._next(m,e)}catch(e){l.error(e)}},start:function(e){return t._start(m,e)}}),null!=a&&this._processOptimisticResponse(null!=a.response?{data:a.response}:null,a.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._publishQueue.revertUpdate(t)})),this._publishQueue.run()),this._incrementalResults.clear(),this._completeOperationTracker(),this._retainDisposable&&(this._retainDisposable.dispose(),this._retainDisposable=null)}},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,h(!1,"RelayModernQueryExecutor: invalid executor state.")}this._operationExecutions.set(this._operation.request.identifier,e)},t._schedule=function(e){var t=this,r=this._scheduler;if(null!=r){var n=this._nextSubscriptionId++;u.create((function(t){var n=r.schedule((function(){try{e(),t.complete()}catch(e){t.error(e)}}));return function(){return r.cancel(n)}})).subscribe({complete:function(){return t._complete(n)},error:function(e){return t._error(e)},start:function(e){return t._start(n,e)}})}else e()},t._complete=function(e){this._subscriptions.delete(e),0===this._subscriptions.size&&(this.cancel(),this._sink.complete())},t._error=function(e){this.cancel(),this._sink.error(e)},t._start=function(e,t){this._subscriptions.set(e,t),this._updateActiveState()},t._next=function(e,t){var r=this;this._schedule((function(){r._handleNext(t),r._maybeCompleteSubscriptionOperationTracking()}))},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=s.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 o=e;r.push(o)}})),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)}))&&h(!1,"Optimistic responses cannot be batched."),!1;var r=e[0],n=!0===(null===(t=r.extensions)||void 0===t?void 0:t.isOptimistic);return n&&"started"!==this._state&&h(!1,"RelayModernQueryExecutor: optimistic payload received after server payload."),!!n&&(this._processOptimisticResponse(r,null,this._treatMissingFieldsAsNull),this._sink.next(r),!0)},t._handleNext=function(e){if("completed"!==this._state){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||h(!1,"RelayModernQueryExecutor: invalid incremental payload, expected `path` and `label` to either both be null/undefined, or `path` to be an `Array<string | number>` and `label` to be a `string`."),r.push({label:n,path:i,response:e})}else t.push(e)})),[t,r]}(r),i=n[0],a=n[1];if(i.length>0){var o=this._processResponses(i),s=this._publishQueue.run(this._operation);this._updateOperationTracker(s),this._processPayloadFollowups(o),this._incrementalPayloadsPending&&!this._retainDisposable&&(this._retainDisposable=this._store.retain(this._operation))}if(a.length>0){var l=this._processIncrementalResponses(a),u=this._publishQueue.run();this._updateOperationTracker(u),this._processPayloadFollowups(l)}this._sink.next(e)}}},t._processOptimisticResponse=function(e,t,r){var n=this;if(null!==this._optimisticUpdates&&h(!1,"environment.execute: only support one optimistic response per execute."),null!=e||null!=t){var i=[];if(e){var a=I(e,this._operation.root,y,{getDataID:this._getDataID,path:[],reactFlightPayloadDeserializer:this._reactFlightPayloadDeserializer,reactFlightServerErrorHandler:this._reactFlightServerErrorHandler,treatMissingFieldsAsNull:r});D(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,moduleImportPayloads:null,source:c.create(),isFinal:!1},updater:t});this._optimisticUpdates=i,i.forEach((function(e){return n._publishQueue.applyUpdate(e)})),this._publishQueue.run()}},t._processOptimisticFollowups=function(e,t){if(e.moduleImportPayloads&&e.moduleImportPayloads.length){var r=e.moduleImportPayloads,n=this._operationLoader;n||h(!1,"RelayModernEnvironment: Expected an operationLoader to be configured when using `@match`.");var i,s=(0,a.default)(r);try{for(s.s();!(i=s.n()).done;){var l=i.value,u=n.get(l.operationReference);if(null==u)this._processAsyncOptimisticModuleImport(n,l);else{var c=this._processOptimisticModuleImport(u,l);t.push.apply(t,(0,o.default)(c))}}}catch(e){s.e(e)}finally{s.f()}}},t._normalizeModuleImport=function(e,t){var r=g(t,e.dataID,e.variables);return I({data:e.data},r,e.typeName,{getDataID:this._getDataID,path:e.path,reactFlightPayloadDeserializer:this._reactFlightPayloadDeserializer,reactFlightServerErrorHandler:this._reactFlightServerErrorHandler,treatMissingFieldsAsNull:this._treatMissingFieldsAsNull})},t._processOptimisticModuleImport=function(e,t){var r=f(e),n=[],i=this._normalizeModuleImport(t,r);return D(i),n.push({operation:this._operation,payload:i,updater:null}),this._processOptimisticFollowups(i,n),n},t._processAsyncOptimisticModuleImport=function(e,t){var r=this;e.load(t.operationReference).then((function(e){if(null!=e&&"started"===r._state){var n,i=r._processOptimisticModuleImport(e,t);if(i.forEach((function(e){return r._publishQueue.applyUpdate(e)})),null==r._optimisticUpdates)_(!1,"RelayModernQueryExecutor: Unexpected ModuleImport optimistic update in operation %s."+r._operation.request.node.params.name);else(n=r._optimisticUpdates).push.apply(n,(0,o.default)(i)),r._publishQueue.run()}}))},t._processResponses=function(e){var t=this;return null!==this._optimisticUpdates&&(this._optimisticUpdates.forEach((function(e){return t._publishQueue.revertUpdate(e)})),this._optimisticUpdates=null),this._incrementalPayloadsPending=!1,this._incrementalResults.clear(),this._source.clear(),e.map((function(e){var r=I(e,t._operation.root,y,{getDataID:t._getDataID,path:[],reactFlightPayloadDeserializer:t._reactFlightPayloadDeserializer,reactFlightServerErrorHandler:t._reactFlightServerErrorHandler,treatMissingFieldsAsNull:t._treatMissingFieldsAsNull});return t._publishQueue.commitPayload(t._operation,r,t._updater),r}))},t._processPayloadFollowups=function(e){var t=this;"completed"!==this._state&&e.forEach((function(e){var r=e.incrementalPlaceholders,n=e.moduleImportPayloads,i=e.isFinal;if(t._state=i?"loading_final":"loading_incremental",t._updateActiveState(),i&&(t._incrementalPayloadsPending=!1),n&&0!==n.length){var a=t._operationLoader;a||h(!1,"RelayModernEnvironment: Expected an operationLoader to be configured when using `@match`."),n.forEach((function(e){t._processModuleImportPayload(e,a)}))}if(r&&0!==r.length&&(t._incrementalPayloadsPending="loading_final"!==t._state,r.forEach((function(r){t._processIncrementalPlaceholder(e,r)})),t._isClientPayload||"loading_final"===t._state)){_(t._isClientPayload,"RelayModernEnvironment: Operation `%s` contains @defer/@stream directives but was executed in non-streaming mode. See https://fburl.com/relay-incremental-delivery-non-streaming-warning.",t._operation.request.node.params.name);var o=[];if(r.forEach((function(e){"defer"===e.kind&&o.push(t._processDeferResponse(e.label,e.path,e,{data:e.data}))})),o.length>0){var s=t._publishQueue.run();t._updateOperationTracker(s),t._processPayloadFollowups(o)}}}))},t._maybeCompleteSubscriptionOperationTracking=function(){"subscription"===this._operation.request.node.params.operationKind&&0===this._pendingModulePayloadsCount&&!1===this._incrementalPayloadsPending&&this._completeOperationTracker()},t._processModuleImportPayload=function(e,t){var r=this,n=t.get(e.operationReference);if(null!=n){var i=f(n);this._handleModuleImportPayload(e,i),this._maybeCompleteSubscriptionOperationTracking()}else{var a=this._nextSubscriptionId++;this._pendingModulePayloadsCount++;var o=function(){r._pendingModulePayloadsCount--,r._maybeCompleteSubscriptionOperationTracking()};u.from(new Promise((function(r,n){t.load(e.operationReference).then(r,n)}))).map((function(t){null!=t&&r._schedule((function(){r._handleModuleImportPayload(e,f(t))}))})).subscribe({complete:function(){r._complete(a),o()},error:function(e){r._error(e),o()},start:function(e){return r._start(a,e)}})}},t._handleModuleImportPayload=function(e,t){var r=this._normalizeModuleImport(e,t);this._publishQueue.commitPayload(this._operation,r);var n=this._publishQueue.run();this._updateOperationTracker(n),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 o,s=a.get(i),u=null!=s&&"response"===s.kind?s.responses:null;a.set(i,{kind:"placeholder",placeholder:t}),"stream"===t.kind?o=t.parentID:"defer"===t.kind?o=t.selector.dataID:h(!1,"Unsupported incremental placeholder kind `%s`.",t.kind);var c,d,f=e.source.get(o),_=(null!==(r=e.fieldPayloads)&&void 0!==r?r:[]).filter((function(e){var t=v(e.dataID,e.fieldKey);return e.dataID===o||t===o}));null==f&&h(!1,"RelayModernEnvironment: Expected record `%s` to exist.",o);var g=this._source.get(o);if(null!=g){c=l.update(g.record,f);var m=new Map,y=function(e){var t,r,n=(t=e,null!==(r=JSON.stringify(p(t)))&&void 0!==r?r:"");m.set(n,e)};g.fieldPayloads.forEach(y),_.forEach(y),d=Array.from(m.values())}else c=f,d=_;if(this._source.set(o,{record:c,fieldPayloads:d}),null!=u){var b=this._processIncrementalResponses(u),E=this._publishQueue.run();this._updateOperationTracker(E),this._processPayloadFollowups(b)}},t._processIncrementalResponses=function(e){var t=this,r=[];return e.forEach((function(e){var n=e.label,i=e.path,a=e.response,o=t._incrementalResults.get(n);if(null==o&&(o=new Map,t._incrementalResults.set(n,o)),-1!==n.indexOf("$defer$")){var s=i.map(String).join("."),l=o.get(s);if(null==l)return l={kind:"response",responses:[e]},void o.set(s,l);if("response"===l.kind)return void l.responses.push(e);var u=l.placeholder;"defer"!==u.kind&&h(!1,"RelayModernEnvironment: Expected data for path `%s` for label `%s` to be data for @defer, was `@%s`.",s,n,u.kind),r.push(t._processDeferResponse(n,i,u,a))}else{var c=i.slice(0,-2).map(String).join("."),d=o.get(c);if(null==d)return d={kind:"response",responses:[e]},void o.set(c,d);if("response"===d.kind)return void d.responses.push(e);var f=d.placeholder;"stream"!==f.kind&&h(!1,"RelayModernEnvironment: Expected data for path `%s` for label `%s` to be data for @stream, was `@%s`.",c,n,f.kind),r.push(t._processStreamResponse(n,i,f,a))}})),r},t._processDeferResponse=function(e,t,r,n){var i=r.selector.dataID,a=I(n,r.selector,r.typeName,{getDataID:this._getDataID,path:r.path,reactFlightPayloadDeserializer:this._reactFlightPayloadDeserializer,reactFlightServerErrorHandler:this._reactFlightServerErrorHandler,treatMissingFieldsAsNull:this._treatMissingFieldsAsNull});this._publishQueue.commitPayload(this._operation,a);var o=this._source.get(i);null==o&&h(!1,"RelayModernEnvironment: Expected the parent record `%s` for @defer data to exist.",i);var s=o.fieldPayloads;if(0!==s.length){var l,u={errors:null,fieldPayloads:s,incrementalPlaceholders:null,moduleImportPayloads:null,source:c.create(),isFinal:!0===(null===(l=n.extensions)||void 0===l?void 0:l.is_final)};this._publishQueue.commitPayload(this._operation,u)}return a},t._processStreamResponse=function(e,t,r,n){var i=r.parentID,a=r.node,s=r.variables,l=a.selections[0];(null==l||"LinkedField"!==l.kind||!0!==l.plural)&&h(!1,"RelayModernEnvironment: Expected @stream to be used on a plural field.");var u=this._normalizeStreamItem(n,i,l,s,t,r.path),d=u.fieldPayloads,f=u.itemID,p=u.itemIndex,_=u.prevIDs,v=u.relayPayload,g=u.storageKey;if(this._publishQueue.commitPayload(this._operation,v,(function(e){var t=e.get(i);if(null!=t){var r=t.getLinkedRecords(g);if(null!=r&&r.length===_.length&&!r.some((function(e,t){return _[t]!==(e&&e.getDataID())}))){var n=(0,o.default)(r);n[p]=e.get(f),t.setLinkedRecords(n,g)}}})),0!==d.length){var m={errors:null,fieldPayloads:d,incrementalPlaceholders:null,moduleImportPayloads:null,source:c.create(),isFinal:!1};this._publishQueue.commitPayload(this._operation,m)}return v},t._normalizeStreamItem=function(e,t,r,n,i,a){var s,u,c,d=e.data;"object"!=typeof d&&h(!1,"RelayModernEnvironment: Expected the GraphQL @stream payload `data` value to be an object.");var f=null!==(s=r.alias)&&void 0!==s?s:r.name,p=E(r,n),_=this._source.get(t);null==_&&h(!1,"RelayModernEnvironment: Expected the parent record `%s` for @stream data to exist.",t);var m=_.record,y=_.fieldPayloads,R=l.getLinkedRecordIDs(m,p);null==R&&h(!1,"RelayModernEnvironment: Expected record `%s` to have fetched field `%s` with @stream.",t,r.name);var D=i[i.length-1],S=parseInt(D,10);S===D&&S>=0||h(!1,"RelayModernEnvironment: Expected path for @stream to end in a positive integer index, got `%s`",D);var k=null!==(u=r.concreteType)&&void 0!==u?u:d[b];"string"!=typeof k&&h(!1,"RelayModernEnvironment: Expected @stream field `%s` to have a __typename.",r.name);var F=(null!==(c=this._getDataID(d,k))&&void 0!==c?c:R&&R[S])||v(t,p,S);"string"!=typeof F&&h(!1,"RelayModernEnvironment: Expected id of elements of field `%s` to be strings.",p);var T=g(r,F,n),N=l.clone(m),O=(0,o.default)(R);return O[S]=F,l.setLinkedRecordIDs(N,p,O),this._source.set(t,{record:N,fieldPayloads:y}),{fieldPayloads:y,itemID:F,itemIndex:S,prevIDs:R,relayPayload:I(e,T,k,{getDataID:this._getDataID,path:[].concat((0,o.default)(a),[f,String(S)]),reactFlightPayloadDeserializer:this._reactFlightPayloadDeserializer,reactFlightServerErrorHandler:this._reactFlightServerErrorHandler,treatMissingFieldsAsNull:this._treatMissingFieldsAsNull}),storageKey:p}},t._updateOperationTracker=function(e){null!=this._operationTracker&&null!=e&&e.length>0&&this._operationTracker.update(this._operation.request,new Set(e))},t._completeOperationTracker=function(){null!=this._operationTracker&&this._operationTracker.complete(this._operation.request)},e}();function I(e,t,r,n){var a,o=e.data,s=e.errors,u=c.create(),f=l.create(t.dataID,r);u.set(t.dataID,f);var h=d.normalize(u,t,o,n);return(0,i.default)((0,i.default)({},h),{},{errors:s,isFinal:!0===(null===(a=e.extensions)||void 0===a?void 0:a.is_final)})}function D(e){var t=e.incrementalPlaceholders;null!=t&&0!==t.length&&h(!1,"RelayModernQueryExecutor: optimistic responses cannot be returned for operations that use incremental data delivery (@defer, @stream, and @stream_connection).")}e.exports={execute:function(e){return new R(e)}}},function(e,t,r){"use strict";var n=r(1)(r(7)),i=r(22),a=i.EXISTENT,o=i.NONEXISTENT,s=i.UNKNOWN,l=function(){function e(e){var t=this;this._records=new Map,null!=e&&Object.keys(e).forEach((function(r){t._records.set(r,e[r])}))}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:a:s},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 i=e.value,a=i[0],o=i[1];t[a]=o}}catch(e){r.e(e)}finally{r.f()}return t},e}();e.exports=l},function(e,t,r){"use strict";var n=r(1),i=n(r(7)),a=n(r(17)),o=r(5),s=r(8),l=r(27),u=r(15),c=r(0),d=r(3),f=r(6),h=f.CONDITION,p=f.CLIENT_EXTENSION,_=f.DEFER,v=f.FLIGHT_FIELD,g=f.FRAGMENT_SPREAD,m=f.INLINE_FRAGMENT,y=f.LINKED_FIELD,b=f.LINKED_HANDLE,E=f.MODULE_IMPORT,R=f.SCALAR_FIELD,I=f.SCALAR_HANDLE,D=f.STREAM,S=f.TYPE_DISCRIMINATOR,k=r(9),F=k.generateClientID,T=k.isClientID,N=r(16).createNormalizationSelector,O=r(19),A=O.refineToReactFlightPayloadData,x=O.REACT_FLIGHT_QUERIES_STORAGE_KEY,P=O.REACT_FLIGHT_TREE_STORAGE_KEY,M=O.REACT_FLIGHT_TYPE_NAME,w=r(2),L=w.getArgumentValues,C=w.getHandleStorageKey,U=w.getModuleComponentKey,j=w.getModuleOperationKey,q=w.getStorageKey,V=w.TYPENAME_KEY,H=w.ROOT_ID,K=w.ROOT_TYPE,z=r(23),G=z.generateTypeID,Q=z.TYPE_SCHEMA_TYPE;var Y=function(){function e(e,t,r){this._getDataId=r.getDataID,this._handleFieldPayloads=[],this._treatMissingFieldsAsNull=r.treatMissingFieldsAsNull,this._incrementalPlaceholders=[],this._isClientExtension=!1,this._isUnmatchedAbstractType=!1,this._moduleImportPayloads=[],this._path=r.path?(0,a.default)(r.path):[],this._recordSource=e,this._variables=t,this._reactFlightPayloadDeserializer=r.reactFlightPayloadDeserializer,this._reactFlightServerErrorHandler=r.reactFlightServerErrorHandler}var t=e.prototype;return t.normalizeResponse=function(e,t,r){var n=this._recordSource.get(t);return n||c(!1,"RelayResponseNormalizer(): Expected root record `%s` to exist.",t),this._traverseSelections(e,n,r),{errors:null,fieldPayloads:this._handleFieldPayloads,incrementalPlaceholders:this._incrementalPlaceholders,moduleImportPayloads:this._moduleImportPayloads,source:this._recordSource,isFinal:!1}},t._getVariableValue=function(e){return this._variables.hasOwnProperty(e)||c(!1,"RelayResponseNormalizer(): Undefined variable `%s`.",e),this._variables[e]},t._getRecordType=function(e){var t=e[V];return null==t&&c(!1,"RelayResponseNormalizer(): Expected a typename for record `%s`.",JSON.stringify(e,null,2)),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 R:case y:this._normalizeField(e,i,t,r);break;case h:this._getVariableValue(i.condition)===i.passingValue&&this._traverseSelections(i,t,r);break;case g:this._traverseSelections(i.fragment,t,r);break;case m:var a=i.abstractKey;if(null==a)s.getType(t)===i.type&&this._traverseSelections(i,t,r);else if(o.ENABLE_PRECISE_TYPE_REFINEMENT){var l=r.hasOwnProperty(a),u=s.getType(t),d=G(u),f=this._recordSource.get(d);null==f&&(f=s.create(d,Q),this._recordSource.set(d,f)),s.setValue(f,a,l),l&&this._traverseSelections(i,t,r)}else{var k=r.hasOwnProperty(a),F=this._isUnmatchedAbstractType;this._isUnmatchedAbstractType=this._isUnmatchedAbstractType||!k,this._traverseSelections(i,t,r),this._isUnmatchedAbstractType=F}break;case S:if(o.ENABLE_PRECISE_TYPE_REFINEMENT){var T=i.abstractKey,N=r.hasOwnProperty(T),O=s.getType(t),A=G(O),x=this._recordSource.get(A);null==x&&(x=s.create(A,Q),this._recordSource.set(A,x)),s.setValue(x,T,N)}break;case b:case I:var P=i.args?L(i.args,this._variables):{},M=q(i,this._variables),w=C(i,this._variables);this._handleFieldPayloads.push({args:P,dataID:s.getDataID(t),fieldKey:M,handle:i.handle,handleKey:w,handleArgs:i.handleArgs?L(i.handleArgs,this._variables):{}});break;case E:this._normalizeModuleImport(e,i,t,r);break;case _:this._normalizeDefer(i,t,r);break;case D:this._normalizeStream(i,t,r);break;case p:var U=this._isClientExtension;this._isClientExtension=!0,this._traverseSelections(i,t,r),this._isClientExtension=U;break;case v:if(!o.ENABLE_REACT_FLIGHT_COMPONENT_FIELD)throw new Error("Flight fields are not yet supported.");this._normalizeFlightField(e,i,t,r);break;default:c(!1,"RelayResponseNormalizer(): Unexpected ast kind `%s`.",i.kind)}}},t._normalizeDefer=function(e,t,r){var n=null===e.if||this._getVariableValue(e.if);d("boolean"==typeof n,"RelayResponseNormalizer: Expected value for @defer `if` argument to be a boolean, got `%s`.",n),!1===n?this._traverseSelections(e,t,r):this._incrementalPlaceholders.push({kind:"defer",data:r,label:e.label,path:(0,a.default)(this._path),selector:N(e,s.getDataID(t),this._variables),typeName:s.getType(t)})},t._normalizeStream=function(e,t,r){this._traverseSelections(e,t,r);var n=null===e.if||this._getVariableValue(e.if);d("boolean"==typeof n,"RelayResponseNormalizer: Expected value for @stream `if` argument to be a boolean, got `%s`.",n),!0===n&&this._incrementalPlaceholders.push({kind:"stream",label:e.label,path:(0,a.default)(this._path),parentID:s.getDataID(t),node:e,variables:this._variables})},t._normalizeModuleImport=function(e,t,r,n){"object"==typeof n&&n||c(!1,"RelayResponseNormalizer: Expected data for @module to be an object.");var i=s.getType(r),o=U(t.documentName),l=n[o];s.setValue(r,o,null!=l?l:null);var u=j(t.documentName),d=n[u];s.setValue(r,u,null!=d?d:null),null!=d&&this._moduleImportPayloads.push({data:n,dataID:s.getDataID(r),operationReference:d,path:(0,a.default)(this._path),typeName:i,variables:this._variables})},t._normalizeField=function(e,t,r,n){"object"==typeof n&&n||c(!1,"writeField(): Expected data for field `%s` to be an object.",t.name);var i=t.alias||t.name,a=q(t,this._variables),o=n[i];if(null==o){if(void 0===o){if(this._isClientExtension||this._isUnmatchedAbstractType)return;if(!this._treatMissingFieldsAsNull)return void d(!1,"RelayResponseNormalizer: Payload did not contain a value for field `%s: %s`. Check that you are parsing with the same query that was used to fetch the payload.",i,a)}return t.kind===R&&this._validateConflictingFieldsWithIdenticalId(r,a,o),void s.setValue(r,a,null)}t.kind===R?(this._validateConflictingFieldsWithIdenticalId(r,a,o),s.setValue(r,a,o)):t.kind===y?(this._path.push(i),t.plural?this._normalizePluralLink(t,r,a,o):this._normalizeLink(t,r,a,o),this._path.pop()):c(!1,"RelayResponseNormalizer(): Unexpected ast kind `%s` during normalization.",t.kind)},t._normalizeFlightField=function(e,t,r,n){var a=t.alias||t.name,o=q(t,this._variables),l=n[a];if(null!=l){var u=A(l);if(null==u&&c(!1,"RelayResponseNormalizer: Expected React Flight payload data to be an object with `status`, tree`, `queries` and `errors` properties, got `%s`.",l),"function"!=typeof this._reactFlightPayloadDeserializer&&c(!1,"RelayResponseNormalizer: Expected reactFlightPayloadDeserializer to be a function, got `%s`.",this._reactFlightPayloadDeserializer),u.errors.length>0&&("function"==typeof this._reactFlightServerErrorHandler?this._reactFlightServerErrorHandler(u.status,u.errors):d(!1,"RelayResponseNormalizer: Received server errors for field `%s`.\n\n%s\n%s",a,u.errors[0].message,u.errors[0].stack)),null!=u.tree){var f=this._reactFlightPayloadDeserializer(u.tree),h=F(s.getDataID(r),q(t,this._variables)),p=this._recordSource.get(h);null==p&&(p=s.create(h,M),this._recordSource.set(h,p)),s.setValue(p,P,f);var _,v=[],g=(0,i.default)(u.queries);try{for(g.s();!(_=g.n()).done;){var m=_.value;null!=m.response.data&&this._moduleImportPayloads.push({data:m.response.data,dataID:H,operationReference:m.module,path:[],typeName:K,variables:m.variables}),v.push({module:m.module,variables:m.variables})}}catch(e){g.e(e)}finally{g.f()}s.setValue(p,x,v),s.setLinkedRecordID(r,o,h)}else d(!1,"RelayResponseNormalizer: Expected `tree` not to be null. This typically indicates that a fatal server error prevented any Server Component rows from being written.")}else s.setValue(r,o,null)},t._normalizeLink=function(e,t,r,n){var i;"object"==typeof n&&n||c(!1,"RelayResponseNormalizer: Expected data for field `%s` to be an object.",r);var a=this._getDataId(n,null!==(i=e.concreteType)&&void 0!==i?i:this._getRecordType(n))||s.getLinkedRecordID(t,r)||F(s.getDataID(t),r);"string"!=typeof a&&c(!1,"RelayResponseNormalizer: Expected id on field `%s` to be a string.",r),this._validateConflictingLinkedFieldsWithIdenticalId(t,s.getLinkedRecordID(t,r),a,r),s.setLinkedRecordID(t,r,a);var o=this._recordSource.get(a);if(o)this._validateRecordType(o,e,n);else{var l=e.concreteType||this._getRecordType(n);o=s.create(a,l),this._recordSource.set(a,o)}this._traverseSelections(e,o,n)},t._normalizePluralLink=function(e,t,r,n){var i=this;Array.isArray(n)||c(!1,"RelayResponseNormalizer: Expected data for field `%s` to be an array of objects.",r);var a=s.getLinkedRecordIDs(t,r),o=[];n.forEach((function(n,l){var u;if(null!=n){i._path.push(String(l)),"object"!=typeof n&&c(!1,"RelayResponseNormalizer: Expected elements for field `%s` to be objects.",r);var d=i._getDataId(n,null!==(u=e.concreteType)&&void 0!==u?u:i._getRecordType(n))||a&&a[l]||F(s.getDataID(t),r,l);"string"!=typeof d&&c(!1,"RelayResponseNormalizer: Expected id of elements of field `%s` to be strings.",r),o.push(d);var f=i._recordSource.get(d);if(f)i._validateRecordType(f,e,n);else{var h=e.concreteType||i._getRecordType(n);f=s.create(d,h),i._recordSource.set(d,f)}a&&i._validateConflictingLinkedFieldsWithIdenticalId(t,a[l],d,r),i._traverseSelections(e,f,n),i._path.pop()}else o.push(n)})),s.setLinkedRecordIDs(t,r,o)},t._validateRecordType=function(e,t,r){var n,i=null!==(n=t.concreteType)&&void 0!==n?n:this._getRecordType(r),a=s.getDataID(e);d(T(a)&&a!==H||s.getType(e)===i,"RelayResponseNormalizer: Invalid record `%s`. Expected %s to be consistent, but the record was assigned conflicting types `%s` and `%s`. The GraphQL server likely violated the globally unique id requirement by returning the same id for different objects.",a,V,s.getType(e),i)},t._validateConflictingFieldsWithIdenticalId=function(e,t,r){var n=s.getDataID(e),i=s.getValue(e,t);d(t===V||void 0===i||u(i,r),"RelayResponseNormalizer: Invalid record. The record contains two instances of the same id: `%s` with conflicting field, %s and its values: %s and %s. If two fields are different but share the same id, one field will overwrite the other.",n,t,i,r)},t._validateConflictingLinkedFieldsWithIdenticalId=function(e,t,r,n){d(void 0===t||t===r,"RelayResponseNormalizer: Invalid record. The record contains references to the conflicting field, %s and its id values: %s and %s. We need to make sure that the record the field points to remains consistent or one field will overwrite the other.",n,t,r)},e}(),B=l.instrument("RelayResponseNormalizer.normalize",(function(e,t,r,n){var i=t.dataID,a=t.node,o=t.variables;return new Y(e,o,n).normalizeResponse(a,i,r)}));e.exports={normalize:B}},function(e,t,r){"use strict";var n=r(57),i=r(24),a=r(18),o=r(41),s=r(42),l=r(59),u=r(0),c=r(3),d=function(){function e(e,t,r){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}var t=e.prototype;return t.applyUpdate=function(e){(this._appliedOptimisticUpdates.has(e)||this._pendingOptimisticUpdates.has(e))&&u(!1,"RelayPublishQueue: Cannot apply the same update function more than once concurrently."),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){c(!0!==this._isRunning,"A store update was detected within another store update. Please make sure new store updates aren't being executed within an updater function for a different update."),this._isRunning=!0,this._pendingBackupRebase&&this._hasStoreSnapshot&&(this._store.restore(),this._hasStoreSnapshot=!1);var t=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._isRunning=!1,this._store.notify(e,t)},t._publishSourceFromPayload=function(e){var t=this,r=e.payload,n=e.operation,i=e.updater,a=r.source,c=r.fieldPayloads,d=new o(this._store.getSource(),a),h=new s(d,this._getDataID);if(c&&c.length&&c.forEach((function(e){var r=t._handlerProvider&&t._handlerProvider(e.handle);r||u(!1,"RelayModernEnvironment: Expected a handler to be provided for handle `%s`.",e.handle),r.update(h,e)})),i){var p=n.fragment;null==p&&u(!1,"RelayModernEnvironment: Expected a selector to be provided with updater function."),i(new l(d,h,p),f(a,p))}var _=h.getIDsMarkedForInvalidation();return this._store.publish(a,_),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 i=e._publishSourceFromPayload(r);t=t||i}else if("source"===r.kind){var l=r.source;e._store.publish(l)}else{var u=r.updater,c=a.create(),d=new o(e._store.getSource(),c),f=new s(d,e._getDataID);n.applyWithGuard(u,null,[f],null,"RelayPublishQueue:commitData"),t=t||f.isStoreMarkedForInvalidation();var h=f.getIDsMarkedForInvalidation();e._store.publish(c,h)}})),this._pendingData.clear(),t},t._applyUpdates=function(){var e=this,t=a.create(),r=new o(this._store.getSource(),t),i=new s(r,this._getDataID,this._handlerProvider),u=function(e){if(e.storeUpdater){var t=e.storeUpdater;n.applyWithGuard(t,null,[i],null,"RelayPublishQueue:applyUpdates")}else{var a,o=e.operation,s=e.payload,u=e.updater,c=s.source,d=s.fieldPayloads,h=new l(r,i,o.fragment);c&&(i.publishSource(c,d),a=f(c,o.fragment)),u&&n.applyWithGuard(u,null,[h,a],null,"RelayPublishQueue:applyUpdates")}};this._pendingBackupRebase&&this._appliedOptimisticUpdates.size&&this._appliedOptimisticUpdates.forEach(u),this._pendingOptimisticUpdates.size&&(this._pendingOptimisticUpdates.forEach((function(t){u(t),e._appliedOptimisticUpdates.add(t)})),this._pendingOptimisticUpdates.clear()),this._store.publish(t)},e}();function f(e,t){var n=i.read(e,t).data,a=r(11);return n&&a(n),n}e.exports=d},function(e,t){e.exports=l},function(e,t,r){"use strict";var n=r(0),i=r(9).generateClientID,a=r(2).getStableStorageKey,o=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&&n(!1,"RelayRecordProxy: Cannot get the type of deleted record `%s`.",this._dataID),e},t.getValue=function(e,t){var r=a(e,t);return this._mutator.getValue(this._dataID,r)},t.setValue=function(e,t,r){s(e)||n(!1,"RelayRecordProxy#setValue(): Expected a scalar or array of scalars, got `%s`.",JSON.stringify(e));var i=a(t,r);return this._mutator.setValue(this._dataID,i,e),this},t.getLinkedRecord=function(e,t){var r=a(e,t),n=this._mutator.getLinkedRecordID(this._dataID,r);return null!=n?this._source.get(n):n},t.setLinkedRecord=function(t,r,i){t instanceof e||n(!1,"RelayRecordProxy#setLinkedRecord(): Expected a record, got `%s`.",t);var o=a(r,i),s=t.getDataID();return this._mutator.setLinkedRecordID(this._dataID,o,s),this},t.getOrCreateLinkedRecord=function(e,t,r){var n=this.getLinkedRecord(e,r);if(!n){var o,s=a(e,r),l=i(this.getDataID(),s);n=null!==(o=this._source.get(l))&&void 0!==o?o:this._source.create(l,t),this.setLinkedRecord(n,e,r)}return n},t.getLinkedRecords=function(e,t){var r=this,n=a(e,t),i=this._mutator.getLinkedRecordIDs(this._dataID,n);return null==i?i:i.map((function(e){return null!=e?r._source.get(e):e}))},t.setLinkedRecords=function(e,t,r){Array.isArray(e)||n(!1,"RelayRecordProxy#setLinkedRecords(): Expected records to be an array, got `%s`.",e);var i=a(t,r),o=e.map((function(e){return e&&e.getDataID()}));return this._mutator.setLinkedRecordIDs(this._dataID,i,o),this},t.invalidateRecord=function(){this._source.markIDForInvalidation(this._dataID)},e}();function s(e){return null==e||"object"!=typeof e||Array.isArray(e)&&e.every(s)}e.exports=o},function(e,t,r){"use strict";var n=r(0),i=r(2),a=i.getStorageKey,o=i.ROOT_TYPE,s=function(){function e(e,t,r){this.__mutator=e,this.__recordSource=t,this._readSelector=r}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,o)),e},t._getRootField=function(e,t,r){var i=e.node.selections.find((function(e){return"LinkedField"===e.kind&&e.name===t}));return i&&"LinkedField"===i.kind||n(!1,"RelayRecordSourceSelectorProxy#getRootField(): Cannot find root field `%s`, no such field is defined on GraphQL document `%s`.",t,e.node.name),i.plural!==r&&n(!1,"RelayRecordSourceSelectorProxy#getRootField(): Expected root field `%s` to be %s.",t,r?"plural":"singular"),i},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()},e}();e.exports=s},function(e,t,r){"use strict";e.exports=function(e){if("missing_field.log"===e.kind)throw new Error("Relay Environment Configuration Error (dev only): `@required(action: LOG)` requires that the Relay Environment be configured with a `requiredFieldLogger`.")}},function(e,t,r){"use strict";var n=1e5;e.exports=function(){return n++}},function(e,t,r){"use strict";var n=r(1),i=n(r(4)),a=n(r(17)),o=function(){},s=!1,l=function(){var e={style:"list-style-type: none; padding: 0; margin: 0 0 0 12px; font-style: normal"},t={style:"rgb(136, 19, 145)"},r={style:"color: #777"},n=function(e){return["span",{style:"font-style: italic"},e.__typename,["span",r,' {id: "',e.__id,'", …}']]},i=function(e){return null!=e&&"string"==typeof e.__id},o=function(e,t){this.key=e,this.value=t},s=function(t){var r=Object.keys(t).map((function(e){return["li",{},["object",{object:new o(e,t[e])}]]}));return["ol",e].concat((0,a.default)(r))};return[{header:function(e){return i(e)?n(e):null},hasBody:function(e){return!0},body:function(e){return s(e)}},{header:function(e){if(e instanceof o){var a=i(e.value)?n(e.value):null==(s=e.value)?["span",r,"undefined"]:["object",{object:s,config:l}];return["span",t,e.key,": ",a]}var s,l;return null},hasBody:function(e){return i(e.value)},body:function(e){return s(e.value)}}]};o=function(e,t){var r;return s||(s=!0,null==window.devtoolsFormatters&&(window.devtoolsFormatters=[]),Array.isArray(window.devtoolsFormatters)&&(console.info('Make sure to select "Enable custom formatters" in the Chrome Developer Tools settings, tab "Preferences" under the "Console" section.'),(r=window.devtoolsFormatters).push.apply(r,(0,a.default)(l())))),function e(t,r){var n=t.get(r);return null==n?n:new Proxy((0,i.default)({},n),{get:function(r,n){var i=r[n];if(null==i)return i;if("object"==typeof i){if("string"==typeof i.__ref)return e(t,i.__ref);if(Array.isArray(i.__refs))return i.__refs.map((function(r){return e(t,r)}))}return i}})}(e.getStore().getSource(),null!=t?t:"client:root")},e.exports={inspect:o}},function(e,t,r){"use strict";var n=r(1),i=n(r(7)),a=n(r(29)),o=r(64),s=r(5),l=r(8),u=r(66),c=r(27),d=r(24),f=r(67),h=r(19),p=r(68),_=r(70),v=r(2),g=r(11),m=r(43),y=r(0),b=r(71),E=r(2),R=E.ROOT_ID,I=E.ROOT_TYPE,D=function(){function e(e,t){var r,n,i,o,u,c=this;(0,a.default)(this,"_gcStep",(function(){c._gcRun&&(c._gcRun.next().done?c._gcRun=null:c._gcScheduler(c._gcStep))}));for(var d=e.getRecordIDs(),f=0;f<d.length;f++){var h=e.get(d[f]);h&&l.freeze(h)}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:b,this._getDataID=null!==(i=null==t?void 0:t.getDataID)&&void 0!==i?i:m,this._globalInvalidationEpoch=null,this._invalidationSubscriptions=new Set,this._invalidatedRecordIDs=new Set,this.__log=null!==(o=null==t?void 0:t.log)&&void 0!==o?o:null,this._queryCacheExpirationTime=null==t?void 0:t.queryCacheExpirationTime,this._operationLoader=null!==(u=null==t?void 0:t.operationLoader)&&void 0!==u?u:null,this._optimisticSource=null,this._recordSource=e,this._releaseBuffer=[],this._roots=new Map,this._shouldScheduleGC=!1,this._storeSubscriptions=!0===s.ENABLE_STORE_SUBSCRIPTIONS_REFACTOR?new _(null==t?void 0:t.log):new p(null==t?void 0:t.log),this._updatedRecordIDs=new Set,function(e){if(!e.has(R)){var t=l.create(R,I);e.set(R,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.check=function(e,t){var r,n,i,a=e.root,s=null!==(r=this._optimisticSource)&&void 0!==r?r:this._recordSource,l=this._globalInvalidationEpoch,u=this._roots.get(e.request.identifier),c=null!=u?u.epoch:null;if(null!=l&&(null==c||c<=l))return{status:"stale"};var d=null!==(n=null==t?void 0:t.target)&&void 0!==n?n:s,f=null!==(i=null==t?void 0:t.handlers)&&void 0!==i?i:[];return function(e,t,r,n){var i=e.mostRecentlyInvalidatedAt,a=e.status;if("number"==typeof i&&(null==t||i>t))return{status:"stale"};if("missing"===a)return{status:"missing"};if(null!=r&&null!=n){if(r<=Date.now()-n)return{status:"stale"}}return{status:"available",fetchTime:null!=r?r:null}}(o.check(s,d,a,f,this._operationLoader,this._getDataID),c,null==u?void 0:u.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.getSource(),r=d.read(t,e);return g(r),r},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);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!=n&&n({name:"store.notify.complete",sourceOperation:e,updatedRecordIDs:this._updatedRecordIDs,invalidatedRecordIDs:this._invalidatedRecordIDs}),this._updatedRecordIDs.clear(),this._invalidatedRecordIDs.clear(),null!=e){var o=e.request.identifier,s=this._roots.get(o);if(null!=s)s.epoch=this._currentWriteEpoch,s.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(o),this._roots.set(o,l)}}return a},t.publish=function(e,t){var r,n=null!==(r=this._optimisticSource)&&void 0!==r?r:this._recordSource;!function(e,t,r,n,i,a){n&&n.forEach((function(n){var i,o=e.get(n),s=t.get(n);null!==s&&((i=null!=o?l.clone(o):null!=s?l.clone(s):null)&&(l.setValue(i,v.INVALIDATED_AT_KEY,r),a.add(n),e.set(n,i)))}));for(var o=t.getRecordIDs(),s=0;s<o.length;s++){var u=o[s],c=t.get(u),d=e.get(u);if(c&&l.freeze(c),c&&d){var f=l.getType(d)===h.REACT_FLIGHT_TYPE_NAME?c:l.update(d,c);f!==d&&(l.freeze(f),i.add(u),e.set(u,f))}else null===c?(e.delete(u),null!==d&&i.add(u)):c&&(e.set(u,c),i.add(u))}}(n,e,this._currentWriteEpoch+1,t,this._updatedRecordIDs,this._invalidatedRecordIDs);var i=this.__log;null!=i&&i({name:"store.publish",source:e,optimistic:n===this._optimisticSource})},t.subscribe=function(e,t){return this._storeSubscriptions.subscribe(e,t)},t.holdGC=function(){var e=this;this._gcRun&&(this._gcRun=null,this._shouldScheduleGC=!0),this._gcHoldCounter++;return{dispose:function(){e._gcHoldCounter>0&&(e._gcHoldCounter--,0===e._gcHoldCounter&&e._shouldScheduleGC&&(e.scheduleGC(),e._shouldScheduleGC=!1))}}},t.toJSON=function(){return"RelayModernStore()"},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=l.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 o=n.value;if(t.get(o)!==r.get(o))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&&y(!1,"RelayModernStore: Unexpected call to snapshot() while a previous snapshot exists.");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=u.create(this.getSource())},t.restore=function(){null==this._optimisticSource&&y(!1,"RelayModernStore: Unexpected call to restore(), expected a snapshot to exist (make sure to call snapshot()).");var e=this.__log;null!=e&&e({name:"store.restore"}),this._optimisticSource=null,this._shouldScheduleGC&&this.scheduleGC(),this._storeSubscriptions.restoreSubscriptions()},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*(){e:for(;;){var e,t=this._currentWriteEpoch,r=new Set,n=(0,i.default)(this._roots.values());try{for(n.s();!(e=n.n()).done;){var a=e.value.operation.root;if(f.mark(this._recordSource,a,r,this._operationLoader),yield,t!==this._currentWriteEpoch)continue e}}catch(e){n.e(e)}finally{n.f()}var o=this.__log;if(null!=o&&o({name:"store.gc",references:r}),0===r.size)this._recordSource.clear();else for(var s=this._recordSource.getRecordIDs(),l=0;l<s.length;l++){var u=s[l];r.has(u)||this._recordSource.remove(u)}return}},e}();c.instrumentMethods(D.prototype,{lookup:"RelayModernStore.prototype.lookup"}),e.exports=D},function(e,t,r){"use strict";var n=r(1)(r(7)),i=r(6),a=r(5),o=r(8),s=r(41),l=r(42),u=r(19),c=r(2),d=r(46),f=r(65),h=r(28),p=r(0),_=r(9).isClientID,v=r(22),g=v.EXISTENT,m=v.UNKNOWN,y=r(23).generateTypeID,b=i.CONDITION,E=i.CLIENT_EXTENSION,R=i.DEFER,I=i.FLIGHT_FIELD,D=i.FRAGMENT_SPREAD,S=i.INLINE_FRAGMENT,k=i.LINKED_FIELD,F=i.LINKED_HANDLE,T=i.MODULE_IMPORT,N=i.SCALAR_FIELD,O=i.SCALAR_HANDLE,A=i.STREAM,x=i.TYPE_DISCRIMINATOR,P=c.ROOT_ID,M=c.getModuleOperationKey,w=c.getStorageKey,L=c.getArgumentValues;var C=function(){function e(e,t,r,n,i,a){var o=new s(e,t);this._mostRecentlyInvalidatedAt=null,this._handlers=n,this._mutator=o,this._operationLoader=null!=i?i:null,this._recordSourceProxy=new l(o,a),this._recordWasMissing=!1,this._source=e,this._variables=r}var t=e.prototype;return t.check=function(e,t){return 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)||p(!1,"RelayAsyncLoader(): Undefined variable `%s`.",e),this._variables[e]},t._handleMissing=function(){this._recordWasMissing=!0},t._getDataForHandlers=function(e,t){return{args:e.args?L(e.args,this._variables):{},record:this._source.get(t)}},t._handleMissingScalarField=function(e,t){if("id"!==e.name||null!=e.alias||!_(t)){var r,i=this._getDataForHandlers(e,t),a=i.args,o=i.record,s=(0,n.default)(this._handlers);try{for(s.s();!(r=s.n()).done;){var l=r.value;if("scalar"===l.kind){var u=l.handle(e,o,a,this._recordSourceProxy);if(void 0!==u)return u}}}catch(e){s.e(e)}finally{s.f()}this._handleMissing()}},t._handleMissingLinkField=function(e,t){var r,i=this._getDataForHandlers(e,t),a=i.args,o=i.record,s=(0,n.default)(this._handlers);try{for(s.s();!(r=s.n()).done;){var l=r.value;if("linked"===l.kind){var u=l.handle(e,o,a,this._recordSourceProxy);if(void 0!==u&&(null===u||this._mutator.getStatus(u)===g))return u}}}catch(e){s.e(e)}finally{s.f()}this._handleMissing()},t._handleMissingPluralLinkField=function(e,t){var r,i=this,a=this._getDataForHandlers(e,t),o=a.args,s=a.record,l=(0,n.default)(this._handlers);try{for(l.s();!(r=l.n()).done;){var u=r.value;if("pluralLinked"===u.kind){var c=u.handle(e,s,o,this._recordSourceProxy);if(null!=c){if(c.every((function(e){return null!=e&&i._mutator.getStatus(e)===g})))return c}else if(null===c)return null}}}catch(e){l.e(e)}finally{l.f()}this._handleMissing()},t._traverse=function(e,t){var r=this._mutator.getStatus(t);if(r===m&&this._handleMissing(),r===g){var n=this._source.get(t),i=o.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 N:r._checkScalar(n,t);break;case k:n.plural?r._checkPluralLink(n,t):r._checkLink(n,t);break;case b:r._getVariableValue(n.condition)===n.passingValue&&r._traverseSelections(n.selections,t);break;case S:var i=n.abstractKey;if(null==i)r._mutator.getType(t)===n.type&&r._traverseSelections(n.selections,t);else if(a.ENABLE_PRECISE_TYPE_REFINEMENT){var o=r._mutator.getType(t);null==o&&p(!1,"DataChecker: Expected record `%s` to have a known type",t);var s=y(o),l=r._mutator.getValue(s,i);!0===l?r._traverseSelections(n.selections,t):null==l&&r._handleMissing()}else r._traverseSelections(n.selections,t);break;case F:var u=d(n,e,r._variables);u.plural?r._checkPluralLink(u,t):r._checkLink(u,t);break;case O:var c=f(n,e,r._variables);r._checkScalar(c,t);break;case T:r._checkModuleImport(n,t);break;case R:case A:r._traverseSelections(n.selections,t);break;case D:r._traverseSelections(n.fragment.selections,t);break;case E:var h=r._recordWasMissing;r._traverseSelections(n.selections,t),r._recordWasMissing=h;break;case x:if(a.ENABLE_PRECISE_TYPE_REFINEMENT){var _=n.abstractKey,v=r._mutator.getType(t);null==v&&p(!1,"DataChecker: Expected record `%s` to have a known type",t);var g=y(v);null==r._mutator.getValue(g,_)&&r._handleMissing()}break;case I:if(!a.ENABLE_REACT_FLIGHT_COMPONENT_FIELD)throw new Error("Flight fields are not yet supported.");r._checkFlightField(n,t);break;default:p(!1,"RelayAsyncLoader(): Unexpected ast kind `%s`.",n.kind)}}))},t._checkModuleImport=function(e,t){var r=this._operationLoader;null===r&&p(!1,"DataChecker: Expected an operationLoader to be configured when using `@module`.");var n=M(e.documentName),i=this._mutator.getValue(t,n);if(null!=i){var a=r.get(i);if(null!=a){var o=h(a);this._traverse(o,t)}else this._handleMissing()}else void 0===i&&this._handleMissing()},t._checkScalar=function(e,t){var r=w(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=w(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=w(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._checkFlightField=function(e,t){var r=w(e,this._variables),i=this._mutator.getLinkedRecordID(t,r);if(null==i)return void 0===i?void this._handleMissing():void 0;var a=this._mutator.getValue(i,u.REACT_FLIGHT_TREE_STORAGE_KEY),o=this._mutator.getValue(i,u.REACT_FLIGHT_QUERIES_STORAGE_KEY);if(null!=a&&Array.isArray(o)){var s=this._operationLoader;null===s&&p(!1,"DataChecker: Expected an operationLoader to be configured when using React Flight.");var l,c=this._variables,d=(0,n.default)(o);try{for(d.s();!(l=d.n()).done;){var f=l.value;this._variables=f.variables;var _=s.get(f.module);if(null!=_){var v=h(_);this._traverseSelections(v.selections,P)}else this._handleMissing()}}catch(e){d.e(e)}finally{d.f()}this._variables=c}else this._handleMissing()},e}();e.exports={check:function(e,t,r,n,i,a){var o=r.dataID,s=r.node,l=r.variables;return new C(e,t,l,n,i,a).check(s,o)}}},function(e,t,r){"use strict";var n=r(15),i=r(0),a=r(6).SCALAR_FIELD,o=r(2).getHandleStorageKey;e.exports=function(e,t,r){var s=t.find((function(t){return t.kind===a&&t.name===e.name&&t.alias===e.alias&&n(t.args,e.args)}));s&&s.kind===a||i(!1,"cloneRelayScalarHandleSourceField: Expected a corresponding source field for handle `%s`.",e.handle);var l=o(e,r);return{kind:"ScalarField",alias:s.alias,name:l,storageKey:l,args:null}}},function(e,t,r){"use strict";var n=r(1)(r(4)),i=r(18),a=Object.freeze({__UNPUBLISH_RECORD_SENTINEL:!0}),o=function(){function e(e){this._base=e,this._sink=i.create()}var t=e.prototype;return t.has=function(e){return this._sink.has(e)?this._sink.get(e)!==a:this._base.has(e)},t.get=function(e){if(this._sink.has(e)){var t=this._sink.get(e);return t===a?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=i.create(),this._sink.clear()},t.delete=function(e){this._sink.delete(e)},t.remove=function(e){this._sink.set(e,a)},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]=n})),t},e}();e.exports={create:function(e){return new o(e)}}},function(e,t,r){"use strict";var n=r(1)(r(7)),i=r(6),a=r(5),o=r(8),s=r(19),l=r(2),u=r(46),c=r(28),d=r(0),f=r(23).generateTypeID,h=i.CONDITION,p=i.CLIENT_EXTENSION,_=i.DEFER,v=i.FLIGHT_FIELD,g=i.FRAGMENT_SPREAD,m=i.INLINE_FRAGMENT,y=i.LINKED_FIELD,b=i.MODULE_IMPORT,E=i.LINKED_HANDLE,R=i.SCALAR_FIELD,I=i.SCALAR_HANDLE,D=i.STREAM,S=i.TYPE_DISCRIMINATOR,k=l.ROOT_ID,F=l.getStorageKey,T=l.getModuleOperationKey;var N=function(){function e(e,t,r,n){this._operationLoader=null!=n?n:null,this._operationName=null,this._recordSource=e,this._references=r,this._variables=t}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,"RelayReferenceMarker(): Undefined variable `%s`.",e),this._variables[e]},t._traverseSelections=function(e,t){var r=this;e.forEach((function(n){switch(n.kind){case y:n.plural?r._traversePluralLink(n,t):r._traverseLink(n,t);break;case h:r._getVariableValue(n.condition)===n.passingValue&&r._traverseSelections(n.selections,t);break;case m:if(null==n.abstractKey){var i=o.getType(t);null!=i&&i===n.type&&r._traverseSelections(n.selections,t)}else if(a.ENABLE_PRECISE_TYPE_REFINEMENT){var s=o.getType(t),l=f(s);r._references.add(l),r._traverseSelections(n.selections,t)}else r._traverseSelections(n.selections,t);break;case g:r._traverseSelections(n.fragment.selections,t);break;case E:var c=u(n,e,r._variables);c.plural?r._traversePluralLink(c,t):r._traverseLink(c,t);break;case _:case D:r._traverseSelections(n.selections,t);break;case R:case I:break;case S:if(a.ENABLE_PRECISE_TYPE_REFINEMENT){var k=o.getType(t),F=f(k);r._references.add(F)}break;case b:r._traverseModuleImport(n,t);break;case p:r._traverseSelections(n.selections,t);break;case v:if(!a.ENABLE_REACT_FLIGHT_COMPONENT_FIELD)throw new Error("Flight fields are not yet supported.");r._traverseFlightField(n,t);break;default:d(!1,"RelayReferenceMarker: Unknown AST node `%s`.",n)}}))},t._traverseModuleImport=function(e,t){var r,n=this._operationLoader;null===n&&d(!1,"RelayReferenceMarker: Expected an operationLoader to be configured when using `@module`. Could not load fragment `%s` in operation `%s`.",e.fragmentName,null!==(r=this._operationName)&&void 0!==r?r:"(unknown)");var i=T(e.documentName),a=o.getValue(t,i);if(null!=a){var s=n.get(a);if(null!=s){var l=c(s).selections;this._traverseSelections(l,t)}}},t._traverseLink=function(e,t){var r=F(e,this._variables),n=o.getLinkedRecordID(t,r);null!=n&&this._traverse(e,n)},t._traversePluralLink=function(e,t){var r=this,n=F(e,this._variables),i=o.getLinkedRecordIDs(t,n);null!=i&&i.forEach((function(t){null!=t&&r._traverse(e,t)}))},t._traverseFlightField=function(e,t){var r=F(e,this._variables),i=o.getLinkedRecordID(t,r);if(null!=i){this._references.add(i);var a=this._recordSource.get(i);if(null!=a){var l=o.getValue(a,s.REACT_FLIGHT_QUERIES_STORAGE_KEY);if(Array.isArray(l)){var u=this._operationLoader;null===u&&d(!1,"DataChecker: Expected an operationLoader to be configured when using React Flight");var f,h=this._variables,p=(0,n.default)(l);try{for(p.s();!(f=p.n()).done;){var _=f.value;this._variables=_.variables;var v=_.module,g=u.get(v);if(null!=g){var m=c(g);this._traverse(m,k)}}}catch(e){p.e(e)}finally{p.f()}this._variables=h}}}},e}();e.exports={mark:function(e,t,r,n){var i=t.dataID,a=t.node,o=t.variables;new N(e,o,r,n).mark(a,i)}}},function(e,t,r){"use strict";var n=r(5),i=r(24),a=r(11),o=r(69),s=r(30),l=function(){function e(e){this._subscriptions=new Set,this.__log=e}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){this._subscriptions.forEach((function(t){if(t.stale){var r=t.snapshot,n=i.read(e,r.selector),a=s(r.data,n.data);n.data=a,t.backup=n}else t.backup=t.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,seenRecords:t.seenRecords,selector:t.selector,missingRequiredFields:t.missingRequiredFields}):e.stale=!0}))},t.updateSubscriptions=function(e,t,r,n){var i=this,a=0!==t.size;this._subscriptions.forEach((function(o){var s=i._updateSubscription(e,o,t,a,n);null!=s&&r.push(s)}))},t._updateSubscription=function(e,t,r,l,u){var c=t.backup,d=t.callback,f=t.snapshot,h=t.stale,p=l&&o(f.seenRecords,r);if(h||p){var _=p||!c?i.read(e,f.selector):c;return _={data:s(f.data,_.data),isMissingData:_.isMissingData,seenRecords:_.seenRecords,selector:_.selector,missingRequiredFields:_.missingRequiredFields},a(_),t.snapshot=_,t.stale=!1,_.data!==f.data?(this.__log&&n.ENABLE_NOTIFY_SUBSCRIPTION&&this.__log({name:"store.notify.subscription",sourceOperation:u,snapshot:f,nextSnapshot:_}),d(_),f.selector.owner):void 0}},e}();e.exports=l},function(e,t,r){"use strict";var n=Symbol.iterator;e.exports=function(e,t){for(var r=e[n](),i=r.next();!i.done;){var a=i.value;if(t.has(a))return!0;i=r.next()}return!1}},function(e,t,r){"use strict";var n=r(1)(r(7)),i=r(5),a=r(24),o=r(11),s=r(30),l=function(){function e(e){this._notifiedRevision=0,this._snapshotRevision=0,this._subscriptionsByDataId=new Map,this._staleSubscriptions=new Set,this.__log=e}var t=e.prototype;return t.subscribe=function(e,t){var r,i=this,a={backup:null,callback:t,notifiedRevision:this._notifiedRevision,snapshotRevision:this._snapshotRevision,snapshot:e},o=(0,n.default)(e.seenRecords);try{for(o.s();!(r=o.n()).done;){var s=r.value,l=this._subscriptionsByDataId.get(s);null!=l?l.add(a):this._subscriptionsByDataId.set(s,new Set([a]))}}catch(e){o.e(e)}finally{o.f()}return{dispose:function(){var t,r=(0,n.default)(e.seenRecords);try{for(r.s();!(t=r.n()).done;){var o=t.value,s=i._subscriptionsByDataId.get(o);null!=s&&(s.delete(a),0===s.size&&i._subscriptionsByDataId.delete(o))}}catch(e){r.e(e)}finally{r.f()}}}},t.snapshotSubscriptions=function(e){var t=this;this._snapshotRevision++,this._subscriptionsByDataId.forEach((function(r){r.forEach((function(r){if(r.snapshotRevision!==t._snapshotRevision)if(r.snapshotRevision=t._snapshotRevision,t._staleSubscriptions.has(r)){var n=r.snapshot,i=a.read(e,n.selector),o=s(n.data,i.data);i.data=o,r.backup=i}else r.backup=r.snapshot}))}))},t.restoreSubscriptions=function(){var e=this;this._snapshotRevision++,this._subscriptionsByDataId.forEach((function(t){t.forEach((function(t){if(t.snapshotRevision!==e._snapshotRevision){t.snapshotRevision=e._snapshotRevision;var r=t.backup;if(t.backup=null,r){r.data!==t.snapshot.data&&e._staleSubscriptions.add(t);var n=t.snapshot.seenRecords;t.snapshot={data:t.snapshot.data,isMissingData:r.isMissingData,seenRecords:r.seenRecords,selector:r.selector,missingRequiredFields:r.missingRequiredFields},e._updateSubscriptionsMap(t,n)}else e._staleSubscriptions.add(t)}}))}))},t.updateSubscriptions=function(e,t,r,n){var i=this;this._notifiedRevision++,t.forEach((function(t){var a=i._subscriptionsByDataId.get(t);null!=a&&a.forEach((function(t){if(t.notifiedRevision!==i._notifiedRevision){var a=i._updateSubscription(e,t,!1,n);null!=a&&r.push(a)}}))})),this._staleSubscriptions.forEach((function(t){if(t.notifiedRevision!==i._notifiedRevision){var a=i._updateSubscription(e,t,!0,n);null!=a&&r.push(a)}})),this._staleSubscriptions.clear()},t._updateSubscription=function(e,t,r,n){var l=t.backup,u=t.callback,c=t.snapshot,d=r&&null!=l?l:a.read(e,c.selector);d={data:s(c.data,d.data),isMissingData:d.isMissingData,seenRecords:d.seenRecords,selector:d.selector,missingRequiredFields:d.missingRequiredFields},o(d);var f=t.snapshot.seenRecords;if(t.snapshot=d,t.notifiedRevision=this._notifiedRevision,this._updateSubscriptionsMap(t,f),d.data!==c.data)return this.__log&&i.ENABLE_NOTIFY_SUBSCRIPTION&&this.__log({name:"store.notify.subscription",sourceOperation:n,snapshot:c,nextSnapshot:d}),u(d),c.selector.owner},t._updateSubscriptionsMap=function(e,t){var r,i=(0,n.default)(t);try{for(i.s();!(r=i.n()).done;){var a=r.value,o=this._subscriptionsByDataId.get(a);null!=o&&(o.delete(e),0===o.size&&this._subscriptionsByDataId.delete(a))}}catch(e){i.e(e)}finally{i.f()}var s,l=(0,n.default)(e.snapshot.seenRecords);try{for(l.s();!(s=l.n()).done;){var u=s.value,c=this._subscriptionsByDataId.get(u);null!=c?c.add(e):this._subscriptionsByDataId.set(u,new Set([e]))}}catch(e){l.e(e)}finally{l.f()}},e}();e.exports=l},function(e,t,r){"use strict";var n=Promise.resolve();function i(e){setTimeout((function(){throw e}),0)}e.exports=function(e){n.then(e).catch(i)}},function(e,t,r){"use strict";var n=r(0),i=r(73).convertFetch;e.exports={create:function(e,t){var r=i(e);return{execute:function(e,i,a,o,s){if("subscription"===e.operationKind)return t||n(!1,"RelayNetwork: This network layer does not support Subscriptions. To use Subscriptions, provide a custom network layer."),o&&n(!1,"RelayNetwork: Cannot provide uploadables while subscribing."),t(e,i,a);var l=a.poll;return null!=l?(o&&n(!1,"RelayNetwork: Cannot provide uploadables while polling."),r(e,i,{force:!0}).poll(l)):r(e,i,a,o,s)}}}}},function(e,t,r){"use strict";var n=r(12);e.exports={convertFetch:function(e){return function(t,r,i,a,o){var s=e(t,r,i,a,o);return s instanceof Error?n.create((function(e){return e.error(s)})):n.from(s)}}}},function(e,t,r){"use strict";var n=r(1)(r(4)),i=r(0),a=r(14),o=function(){function e(e){var t=e.size,r=e.ttl;t>0||i(!1,"RelayQueryResponseCache: Expected the max cache size to be > 0, got `%s`.",t),r>0||i(!1,"RelayQueryResponseCache: Expected the max ttl to be > 0, got `%s`.",r),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=s(e,t);this._responses.forEach((function(e,t){var n,i;n=e.fetchTime,i=r._ttl,n+i>=Date.now()||r._responses.delete(t)}));var a=this._responses.get(i);return null!=a?(0,n.default)((0,n.default)({},a.payload),{},{extensions:(0,n.default)((0,n.default)({},a.payload.extensions),{},{cacheTimestamp:a.fetchTime})}):null},t.set=function(e,t,r){var n=Date.now(),i=s(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 s(e,t){return JSON.stringify(a({queryID:e,variables:t}))}e.exports=o},function(e,t,r){"use strict";var n=r(21),i=r(0),a=r(31),o=r(10).getRequest,s=r(13).createOperationDescriptor;e.exports=function(e,t){a(e)||i(!1,"commitMutation: expected `environment` to be an instance of `RelayModernEnvironment`.");var r=o(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,f=s(r,d);return u&&(l=n.convert(u,r,l).optimisticUpdater),e.applyMutation({operation:f,response:c,updater:l})}},function(e,t,r){"use strict";e.exports=function(e,t){e.commitUpdate(t)}},function(e,t,r){"use strict";var n=r(1)(r(17)),i=r(21),a=r(0),o=r(31),s=r(78),l=r(3),u=r(10).getRequest,c=r(9).generateUniqueClientID,d=r(13).createOperationDescriptor;e.exports=function(e,t){o(e)||a(!1,"commitMutation: expected `environment` to be an instance of `RelayModernEnvironment`.");var r=u(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 f=t.optimisticResponse,h=t.optimisticUpdater,p=t.updater,_=t.configs,v=t.cacheConfig,g=t.onError,m=t.onUnsubscribe,y=t.variables,b=t.uploadables,E=d(r,y,v,c());if("function"==typeof f&&(f=f(),l(!1,"commitMutation: Expected `optimisticResponse` to be an object, received a function.")),f instanceof Object&&s(f,r,y),_){var R=i.convert(_,r,h,p);h=R.optimisticUpdater,p=R.updater}var I=[];return{dispose:e.executeMutation({operation:E,optimisticResponse:f,optimisticUpdater:h,updater:p,uploadables:b}).subscribe({next:function(e){Array.isArray(e)?e.forEach((function(e){e.errors&&I.push.apply(I,(0,n.default)(e.errors))})):e.errors&&I.push.apply(I,(0,n.default)(e.errors))},complete:function(){var r=t.onCompleted;r&&r(e.lookup(E.fragment).data,0!==I.length?I:null)},error:g,unsubscribe:m}).unsubscribe}}},function(e,t,r){"use strict";var n=r(1)(r(4)),i=r(3),a=Object.prototype.hasOwnProperty,o=function(){},s=function(e,t,r){var n=t;e.split(".").forEach((function(e,t,i){null==n[e]&&(n[e]={}),r&&t===i.length-1&&(n[e]="<scalar>"),n=n[e]}))};o=function(e,t,r){var n=t.operation.name,a={path:"ROOT",visitedPaths:new Set,variables:r||{},missingDiff:{},extraDiff:{},moduleImportPaths:new Set};l(e,t.operation.selections,a),f(e,a),i(null==a.missingDiff.ROOT,"Expected `optimisticResponse` to match structure of server response for mutation `%s`, please define fields for all of\n%s",n,JSON.stringify(a.missingDiff.ROOT,null,2)),i(null==a.extraDiff.ROOT,"Expected `optimisticResponse` to match structure of server response for mutation `%s`, please remove all fields of\n%s",n,JSON.stringify(a.extraDiff.ROOT,null,2))};var l=function(e,t,r){t.forEach((function(t){return u(e,t,r)}))},u=function e(t,r,n){switch(r.kind){case"Condition":return void l(t,r.selections,n);case"FragmentSpread":return void l(t,r.fragment.selections,n);case"ScalarField":case"LinkedField":case"FlightField":return d(t,r,n);case"InlineFragment":var i=r.type,a=null==r.abstractKey;return void r.selections.forEach((function(r){a&&t.__typename!==i||e(t,r,n)}));case"ClientExtension":return void r.selections.forEach((function(r){e(t,r,n)}));case"ModuleImport":return c(n);case"LinkedHandle":case"ScalarHandle":case"Defer":case"Stream":case"TypeDiscriminator":default:return}},c=function(e){e.moduleImportPaths.add(e.path)},d=function(e,t,r){var i=t.alias||t.name,o="".concat(r.path,".").concat(i);switch(r.visitedPaths.add(o),t.kind){case"ScalarField":return void(!1===a.call(e,i)&&s(o,r.missingDiff,!0));case"LinkedField":var u=t.selections;if(null===e[i]||a.call(e,i)&&void 0===e[i])return;return t.plural?Array.isArray(e[i])?void e[i].forEach((function(e){null!==e&&l(e,u,(0,n.default)((0,n.default)({},r),{},{path:o}))})):void s(o,r.missingDiff):e[i]instanceof Object?void l(e[i],u,(0,n.default)((0,n.default)({},r),{},{path:o})):void s(o,r.missingDiff);case"FlightField":if(null===e[i]||a.call(e,i)&&void 0===e[i])return;throw new Error("validateMutation: Flight fields are not compatible with optimistic updates, as React does not have the component code necessary to process new data on the client. Instead, you should update your code to require a full refetch of the Flight field so your UI can be updated.")}},f=function e(t,r){Array.isArray(t)?t.forEach((function(t){t instanceof Object&&e(t,r)})):Object.keys(t).forEach((function(i){var a=t[i],o="".concat(r.path,".").concat(i);r.moduleImportPaths.has(o)||(r.visitedPaths.has(o)?a instanceof Object&&e(a,(0,n.default)((0,n.default)({},r),{},{path:o})):s(o,r.extraDiff))}))};e.exports=o},function(e,t,r){"use strict";var n=r(80),i=r(3);e.exports=function(e,t,r,a,o,s){return Object.keys(r).forEach((function(e){var r=a[e];i(void 0!==r,"createFragmentSpecResolver: Expected prop `%s` to be supplied to `%s`, but got `undefined`. Pass an explicit `null` if this is intentional.",e,t)})),new n(e,r,a,s,o)}},function(e,t,r){"use strict";var n=r(1),i=n(r(4)),a=n(r(29)),o=r(5),s=r(15),l=r(0),u=r(48),c=r(32),d=r(3),f=r(33).getPromiseForActiveRequest,h=r(13).createRequestDescriptor,p=r(16),_=p.areEqualSelectors,v=p.createReaderSelector,g=p.getSelectorsFromObject,m=function(){function e(e,t,r,n,i){var o=this;(0,a.default)(this,"_onChange",(function(){o._stale=!0,"function"==typeof o._callback&&o._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)&&E(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 o=n.resolve();(e||o!==a)&&((e=e||(0,i.default)({},t))[r]=o)}else{var s=this._props[r],l=void 0!==s?s:null;!e&&u(l,a)||((e=e||(0,i.default)({},t))[r]=l)}}this._data=e||t,this._stale=!1}return this._data},t.setCallback=function(e){this._callback=e},t.setProps=function(e){var t=g(this._fragments,e);for(var r in this._props={},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 b(this._context.environment,this._rootIsQueryRenderer,n,this._onChange):(i instanceof b||l(!1,"RelayModernFragmentSpecResolver: Expected prop `%s` to always be an array.",r),i.setSelector(n)):null==i?i=new y(this._context.environment,this._rootIsQueryRenderer,n,this._onChange):(i instanceof y||l(!1,"RelayModernFragmentSpecResolver: Expected prop `%s` to always be an object.",r),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){var i=this;(0,a.default)(this,"_onChange",(function(e){i._data=e.data,i._isMissingData=e.isMissingData,i._missingRequiredFields=e.missingRequiredFields,i._callback()}));var o=e.lookup(r);this._callback=n,this._data=o.data,this._isMissingData=o.isMissingData,this._missingRequiredFields=o.missingRequiredFields,this._environment=e,this._rootIsQueryRenderer=t,this._selector=r,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===o.ENABLE_RELAY_CONTAINERS_SUSPENSE&&!0===this._isMissingData){var e,t=null!==(e=f(this._environment,this._selector.owner))&&void 0!==e?e:this._environment.getOperationTracker().getPromiseForPendingOperationsAffectingOwner(this._selector.owner);if(null!=t){if(!this._rootIsQueryRenderer)throw d(!1,"Relay: Relay Container for fragment `%s` suspended. When using features such as @defer or @module, use `useFragment` instead of a Relay Container.",this._selector.node.name),t;d(!1,"Relay: Relay Container for fragment `%s` has missing data and would suspend. When using features such as @defer or @module, use `useFragment` instead of a Relay Container.",this._selector.node.name)}}return null!=this._missingRequiredFields&&c(this._environment,this._missingRequiredFields),this._data},t.setSelector=function(e){if(null==this._subscription||!_(e,this._selector)){this.dispose();var t=this._environment.lookup(e);this._data=t.data,this._isMissingData=t.isMissingData,this._missingRequiredFields=t.missingRequiredFields,this._selector=e,this._subscription=this._environment.subscribe(t,this._onChange)}},t.setVariables=function(e,t){if(!s(e,this._selector.variables)){var r=h(t,e),n=v(this._selector.node,this._selector.dataID,e,r);this.setSelector(n)}},e}(),b=function(){function e(e,t,r,n){var i=this;(0,a.default)(this,"_onChange",(function(e){i._stale=!0,i._callback()})),this._callback=n,this._data=[],this._environment=e,this._resolvers=[],this._stale=!0,this._rootIsQueryRenderer=t,this.setSelector(r)}var t=e.prototype;return t.dispose=function(){this._resolvers.forEach(E)},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._onChange);this._stale=!0},t.setVariables=function(e,t){this._resolvers.forEach((function(r){return r.setVariables(e,t)})),this._stale=!0},e}();function E(e){e&&e.dispose()}e.exports=m},function(e,t,r){"use strict";var n=r(1)(r(4)),i=r(2),a=i.getModuleComponentKey,o=i.getModuleOperationKey;e.exports=function(e,t,r,i){var s=(0,n.default)({},i);return s[a(e)]=r,s[o(e)]=t,s}},function(e,t,r){"use strict";var n,i,a=r(0);e.exports=function(e){return n||((n=e.createContext(null)).displayName="RelayContext",i=e),e!==i&&a(!1,"[createRelayContext]: You passing a different instance of React",e.version),n}},function(e,t,r){"use strict";var n=r(1)(r(4)),i=r(12),a=r(33),o=r(0),s=r(32),l=r(13).createOperationDescriptor,u=r(10).getRequest;function c(e,t){return a.fetchQuery(e,t).map((function(){return e.lookup(t.fragment)}))}e.exports=function(e,t,r,a){var d,f=u(t);"query"!==f.params.operationKind&&o(!1,"fetchQuery: Expected query operation");var h=(0,n.default)({force:!0},null==a?void 0:a.networkCacheConfig),p=l(f,r,h),_=null!==(d=null==a?void 0:a.fetchPolicy)&&void 0!==d?d:"network-only";function v(t){return null!=t.missingRequiredFields&&s(e,t.missingRequiredFields),t.data}switch(_){case"network-only":return c(e,p).map(v);case"store-or-network":return"available"===e.check(p).status?i.from(e.lookup(p.fragment)).map(v):c(e,p).map(v);default:throw new Error("fetchQuery: Invalid fetchPolicy "+_)}}},function(e,t,r){"use strict";var n=r(13).createOperationDescriptor,i=r(10).getRequest;e.exports=function(e,t,r,a){var o=i(t);if("query"!==o.params.operationKind)throw new Error("fetchQuery: Expected query operation");var s=n(o,r,a);return e.execute({operation:s}).map((function(){return e.lookup(s.fragment).data})).toPromise()}},function(e,t,r){"use strict";var n=r(5),i=r(86),a=r(14),o=r(16),s=o.getDataIDsFromFragment,l=o.getVariablesFromFragment,u=o.getSelector;e.exports=function(e,t){var r,o=u(e,t),c=null==o?"null":"SingularReaderSelector"===o.kind?o.owner.identifier:"["+o.selectors.map((function(e){return e.owner.identifier})).join(",")+"]",d=l(e,t),f=s(e,t);return n.ENABLE_GETFRAGMENTIDENTIFIER_OPTIMIZATION?c+"/"+e.name+"/"+(null==d||i(d)?"{}":JSON.stringify(a(d)))+"/"+(void 0===f?"missing":null==f?"null":Array.isArray(f)?"["+f.join(",")+"]":f):c+"/"+e.name+"/"+JSON.stringify(a(d))+"/"+(null!==(r=JSON.stringify(f))&&void 0!==r?r:"missing")}},function(e,t,r){"use strict";var n=Object.prototype.hasOwnProperty;e.exports=function(e){for(var t in e)if(n.call(e,t))return!1;return!0}},function(e,t,r){"use strict";var n=r(0),i=r(10).getInlineDataFragment,a=r(2).FRAGMENTS_KEY;e.exports=function(e,t){var r,o=i(e);if(null==t)return t;"object"!=typeof t&&n(!1,"readInlineData(): Expected an object, got `%s`.",typeof t);var s=null===(r=t[a])||void 0===r?void 0:r[o.name];return null==s&&n(!1,"readInlineData(): Expected fragment `%s` to be spread in the parent fragment.",o.name),s}},function(e,t,r){"use strict";var n=r(21),i=r(3),a=r(10).getRequest,o=r(13).createOperationDescriptor;e.exports=function(e,t){var r=a(t.subscription);if("subscription"!==r.params.operationKind)throw new Error("requestSubscription: Must use Subscription operation");var s=t.configs,l=t.onCompleted,u=t.onError,c=t.onNext,d=t.variables,f=t.cacheConfig,h=o(r,d,f);i(!(t.updater&&s),"requestSubscription: Expected only one of `updater` and `configs` to be provided");var p=(s?n.convert(s,r,null,t.updater):t).updater;return{dispose:e.execute({operation:h,updater:p}).map((function(){return e.lookup(h.fragment).data})).subscribe({next:c,error:u,complete:l}).unsubscribe}}}])}));
4
+ !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("invariant"),require("@babel/runtime/helpers/interopRequireDefault"),require("fbjs/lib/warning"),require("@babel/runtime/helpers/createForOfIteratorHelper"),require("@babel/runtime/helpers/objectSpread2"),require("@babel/runtime/helpers/defineProperty"),require("fbjs/lib/areEqual"),require("@babel/runtime/helpers/toConsumableArray")):"function"==typeof define&&define.amd?define(["invariant","@babel/runtime/helpers/interopRequireDefault","fbjs/lib/warning","@babel/runtime/helpers/createForOfIteratorHelper","@babel/runtime/helpers/objectSpread2","@babel/runtime/helpers/defineProperty","fbjs/lib/areEqual","@babel/runtime/helpers/toConsumableArray"],t):"object"==typeof exports?exports.RelayRuntime=t(require("invariant"),require("@babel/runtime/helpers/interopRequireDefault"),require("fbjs/lib/warning"),require("@babel/runtime/helpers/createForOfIteratorHelper"),require("@babel/runtime/helpers/objectSpread2"),require("@babel/runtime/helpers/defineProperty"),require("fbjs/lib/areEqual"),require("@babel/runtime/helpers/toConsumableArray")):e.RelayRuntime=t(e.invariant,e["@babel/runtime/helpers/interopRequireDefault"],e["fbjs/lib/warning"],e["@babel/runtime/helpers/createForOfIteratorHelper"],e["@babel/runtime/helpers/objectSpread2"],e["@babel/runtime/helpers/defineProperty"],e["fbjs/lib/areEqual"],e["@babel/runtime/helpers/toConsumableArray"])}(window,(function(e,t,r,n,i,a,o,s){return function(e){var t={};function r(n){if(t[n])return t[n].exports;var i=t[n]={i:n,l:!1,exports:{}};return e[n].call(i.exports,i,i.exports,r),i.l=!0,i.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)r.d(n,i,function(t){return e[t]}.bind(null,i));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=54)}([function(t,r){t.exports=e},function(e,r){e.exports=t},function(e,t,r){"use strict";var n=r(1)(r(19)),i=r(8),a=r(28),o=r(0),s=r(15),l=i.VARIABLE,u=i.LITERAL,c=i.OBJECT_VALUE,d=i.LIST_VALUE;function f(e,t){if(e.kind===l)return function(e,t){return t.hasOwnProperty(e)||o(!1,"getVariableValue(): Undefined variable `%s`.",e),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]=f(e,t)})),r}if(e.kind===d){var n=[];return e.items.forEach((function(e){null!=e&&n.push(f(e,t))})),n}}function h(e,t){var r={};return e.forEach((function(e){r[e.name]=f(e,t)})),r}function p(e,t){if(!t)return e;var r=[];for(var n in t)if(t.hasOwnProperty(n)){var i,a=t[n];if(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 _={ACTOR_IDENTIFIER_KEY:"__actorIdentifier",FRAGMENTS_KEY:"__fragments",FRAGMENT_OWNER_KEY:"__fragmentOwner",FRAGMENT_PROP_NAME_KEY:"__fragmentPropName",MODULE_COMPONENT_KEY:"__module_component",ID_KEY:"__id",REF_KEY:"__ref",REFS_KEY:"__refs",ROOT_ID:"client:root",ROOT_TYPE:"__Root",TYPENAME_KEY:"__typename",INVALIDATED_AT_KEY:"__invalidated_at",IS_WITHIN_UNMATCHED_TYPE_REFINEMENT:"__isWithinUnmatchedTypeRefinement",RELAY_RESOLVER_VALUE_KEY:"__resolverValue",RELAY_RESOLVER_INVALIDATION_KEY:"__resolverValueMayBeInvalid",RELAY_RESOLVER_INPUTS_KEY:"__resolverInputValues",RELAY_RESOLVER_READER_SELECTOR_KEY:"__resolverReaderSelector",formatStorageKey:p,getArgumentValue:f,getArgumentValues:h,getHandleStorageKey:function(e,t){var r=e.dynamicKey,i=e.handle,o=e.key,s=e.name,l=e.args,u=e.filters,c=a(i,o,s),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:p(c,h(d,t))},getStorageKey:function(e,t){if(e.storageKey)return e.storageKey;var r=void 0===e.args?void 0:e.args,n=e.name;return r&&0!==r.length?p(n,h(r,t)):n},getStableStorageKey:function(e,t){return p(e,s(t))},getModuleComponentKey:function(e){return"".concat("__module_component_").concat(e)},getModuleOperationKey:function(e){return"".concat("__module_operation_").concat(e)}};e.exports=_},function(e,t){e.exports=r},function(e,t){e.exports=n},function(e,t){e.exports=i},function(e,t,r){"use strict";e.exports={ENABLE_VARIABLE_CONNECTION_KEY:!1,ENABLE_PARTIAL_RENDERING_DEFAULT:!0,ENABLE_REACT_FLIGHT_COMPONENT_FIELD:!1,ENABLE_REQUIRED_DIRECTIVES:!1,ENABLE_RELAY_RESOLVERS:!1,ENABLE_GETFRAGMENTIDENTIFIER_OPTIMIZATION:!1,ENABLE_FRIENDLY_QUERY_NAME_GQL_URL:!1,ENABLE_LOAD_QUERY_REQUEST_DEDUPING:!0,ENABLE_DO_NOT_WRAP_LIVE_QUERY:!1,ENABLE_NOTIFY_SUBSCRIPTION:!1,BATCH_ASYNC_MODULE_UPDATES_FN:null,ENABLE_CONTAINERS_SUBSCRIBE_ON_COMMIT:!1,ENABLE_QUERY_RENDERER_OFFSCREEN_SUPPORT:!1}},function(e,t,r){"use strict";var n=0;e.exports={generateClientID:function(e,t,r){var n=e+":"+t;return null!=r&&(n+=":"+r),0!==n.indexOf("client:")&&(n="client:"+n),n},generateUniqueClientID:function(){return"".concat("client:","local:").concat(n++)},isClientID:function(e){return 0===e.indexOf("client:")}}},function(e,t,r){"use strict";e.exports={ACTOR_CHANGE:"ActorChange",CONDITION:"Condition",CLIENT_COMPONENT:"ClientComponent",CLIENT_EXTENSION:"ClientExtension",DEFER:"Defer",CONNECTION:"Connection",FLIGHT_FIELD:"FlightField",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",RELAY_RESOLVER:"RelayResolver",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",VARIABLE:"Variable"}},function(e,t,r){"use strict";var n=r(1)(r(5)),i=r(17),a=r(18),o=r(0),s=r(3),l=r(7).isClientID,u=r(2),c=u.ACTOR_IDENTIFIER_KEY,d=u.ID_KEY,f=u.REF_KEY,h=u.REFS_KEY,p=u.TYPENAME_KEY,_=u.INVALIDATED_AT_KEY,v=u.ROOT_ID;function g(e){return e[d]}function m(e){return e[p]}e.exports={clone:function(e){return(0,n.default)({},e)},copyFields:function(e,t){for(var r in e)e.hasOwnProperty(r)&&r!==d&&r!==p&&(t[r]=e[r])},create:function(e,t){var r={};return r[d]=e,r[p]=t,r},freeze:function(e){a(e)},getDataID:g,getInvalidationEpoch:function(e){if(null==e)return null;var t=e[_];return"number"!=typeof t?null:t},getLinkedRecordID:function(e,t){var r=e[t];return null==r?r:("object"==typeof r&&r&&"string"==typeof r[f]||o(!1,"RelayModernRecord.getLinkedRecordID(): Expected `%s.%s` to be a linked ID, was `%s`.",e[d],t,JSON.stringify(r)),r[f])},getLinkedRecordIDs:function(e,t){var r=e[t];return null==r?r:("object"==typeof r&&Array.isArray(r[h])||o(!1,"RelayModernRecord.getLinkedRecordIDs(): Expected `%s.%s` to contain an array of linked IDs, got `%s`.",e[d],t,JSON.stringify(r)),r[h])},getType:m,getValue:function(e,t){var r=e[t];return r&&"object"==typeof r&&(r.hasOwnProperty(f)||r.hasOwnProperty(h))&&o(!1,"RelayModernRecord.getValue(): Expected a scalar (non-link) value for `%s.%s` but found %s.",e[d],t,r.hasOwnProperty(f)?"a linked record":"plural linked records"),r},merge:function(e,t){var r,n,i=g(e),a=g(t);s(i===a,"RelayModernRecord: Invalid record merge, expected both versions of the record to have the same id, got `%s` and `%s`.",i,a);var o=null!==(r=m(e))&&void 0!==r?r:null,u=null!==(n=m(t))&&void 0!==n?n:null;return s(l(a)&&a!==v||o===u,"RelayModernRecord: Invalid record merge, expected both versions of record `%s` to have the same `%s` but got conflicting types `%s` and `%s`. The GraphQL server likely violated the globally unique id requirement by returning the same id for different objects.",i,p,o,u),Object.assign({},e,t)},setValue:function(e,t,r){var n=g(e);if(t===d)s(n===r,"RelayModernRecord: Invalid field update, expected both versions of the record to have the same id, got `%s` and `%s`.",n,r);else if(t===p){var i,a=null!==(i=m(e))&&void 0!==i?i:null,o=null!=r?r:null;s(l(g(e))&&g(e)!==v||a===o,"RelayModernRecord: Invalid field update, expected both versions of record `%s` to have the same `%s` but got conflicting types `%s` and `%s`. The GraphQL server likely violated the globally unique id requirement by returning the same id for different objects.",n,p,a,o)}e[t]=r},setLinkedRecordID:function(e,t,r){var n={};n[f]=r,e[t]=n},setLinkedRecordIDs:function(e,t,r){var n={};n[h]=r,e[t]=n},update:function(e,t){var r,a,o=g(e),u=g(t);s(o===u,"RelayModernRecord: Invalid record update, expected both versions of the record to have the same id, got `%s` and `%s`.",o,u);var c=null!==(r=m(e))&&void 0!==r?r:null,d=null!==(a=m(t))&&void 0!==a?a:null;s(l(u)&&u!==v||c===d,"RelayModernRecord: Invalid record update, expected both versions of record `%s` to have the same `%s` but got conflicting types `%s` and `%s`. The GraphQL server likely violated the globally unique id requirement by returning the same id for different objects.",o,p,c,d);for(var f=null,h=Object.keys(t),_=0;_<h.length;_++){var y=h[_];!f&&i(e[y],t[y])||((f=null!==f?f:(0,n.default)({},e))[y]=t[y])}return null!==f?f:e},getActorLinkedRecordID:function(e,t){var r=e[t];return null==r?r:(("object"!=typeof r||"string"!=typeof r[f]||null==r[c])&&o(!1,"RelayModernRecord.getActorLinkedRecordID(): Expected `%s.%s` to be an actor specific linked ID, was `%s`.",e[d],t,JSON.stringify(r)),[r[c],r[f]])},setActorLinkedRecordID:function(e,t,r,n){var i={};i[f]=n,i[c]=r,e[t]=i}}},function(e,t,r){"use strict";var n=r(8),i=r(0),a=r(3);function o(e){var t=e;return"function"==typeof t?(t=t(),a(!1,"RelayGraphQLTag: node `%s` unexpectedly wrapped in a function.","Fragment"===t.kind?t.name:t.operation.name)):t.default&&(t=t.default),t}function s(e){var t=o(e);return"object"==typeof t&&null!==t&&t.kind===n.FRAGMENT}function l(e){var t=o(e);return"object"==typeof t&&null!==t&&t.kind===n.REQUEST}function u(e){var t=o(e);return"object"==typeof t&&null!==t&&t.kind===n.INLINE_DATA_FRAGMENT}function c(e){var t=o(e);return s(t)||i(!1,"GraphQLTag: Expected a fragment, got `%s`.",JSON.stringify(t)),t}e.exports={getFragment:c,getNode:o,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=o(e);return l(t)||i(!1,"GraphQLTag: Expected a request, got `%s`.",JSON.stringify(t)),t},getInlineDataFragment:function(e){var t=o(e);return u(t)||i(!1,"GraphQLTag: Expected an inline data fragment, got `%s`.",JSON.stringify(t)),t},graphql:function(e){i(!1,"graphql: Unexpected invocation at runtime. Either the Babel transform was not set up, or it failed to identify this call site. Make sure it is being used verbatim as `graphql`. Note also that there cannot be a space between graphql and the backtick that follows.")},isFragment:s,isRequest:l,isInlineDataFragment:u}},function(e,t,r){"use strict";var n=r(17),i=r(0),a=r(3),o=r(12).getFragmentVariables,s=r(2),l=s.FRAGMENT_OWNER_KEY,u=s.FRAGMENTS_KEY,c=s.ID_KEY,d=s.IS_WITHIN_UNMATCHED_TYPE_REFINEMENT;function f(e,t){("object"!=typeof t||null===t||Array.isArray(t))&&i(!1,"RelayModernSelector: Expected value for fragment `%s` to be an object, got `%s`.",e.name,JSON.stringify(t));var r=t[c],n=t[u],s=t[l],f=!0===t[d];if("string"==typeof r&&"object"==typeof n&&null!==n&&"object"==typeof n[e.name]&&null!==n[e.name]&&"object"==typeof s&&null!==s){var h=s,p=n[e.name];return b(e,r,o(e,h.variables,p),h,f)}var _=JSON.stringify(t);return _.length>499&&(_=_.substr(0,498)+"…"),a(!1,"RelayModernSelector: Expected object to contain data for fragment `%s`, got `%s`. Make sure that the parent operation/fragment included fragment `...%s` without `@relay(mask: false)`.",e.name,_,e.name),null}function h(e,t){var r=null;return t.forEach((function(t,n){var i=null!=t?f(e,t):null;null!=i&&(r=r||[]).push(i)})),null==r?null:{kind:"PluralReaderSelector",selectors:r}}function p(e,t){return null==t?t:e.metadata&&!0===e.metadata.plural?(Array.isArray(t)||i(!1,"RelayModernSelector: Expected value for fragment `%s` to be an array, got `%s`. Remove `@relay(plural: true)` from fragment `%s` to allow the prop to be an object.",e.name,JSON.stringify(t),e.name),h(e,t)):(Array.isArray(t)&&i(!1,"RelayModernSelector: Expected value for fragment `%s` to be an object, got `%s`. Add `@relay(plural: true)` to fragment `%s` to allow the prop to be an array of items.",e.name,JSON.stringify(t),e.name),f(e,t))}function _(e,t){return null==t?t:e.metadata&&!0===e.metadata.plural?(Array.isArray(t)||i(!1,"RelayModernSelector: Expected value for fragment `%s` to be an array, got `%s`. Remove `@relay(plural: true)` from fragment `%s` to allow the prop to be an object.",e.name,JSON.stringify(t),e.name),function(e,t){var r=null;return t.forEach((function(t){var n=null!=t?v(e,t):null;null!=n&&(r=r||[]).push(n)})),r}(e,t)):(Array.isArray(t)&&i(!1,"RelayModernFragmentSpecResolver: Expected value for fragment `%s` to be an object, got `%s`. Add `@relay(plural: true)` to fragment `%s` to allow the prop to be an array of items.",e.name,JSON.stringify(t),e.name),v(e,t))}function v(e,t){("object"!=typeof t||null===t||Array.isArray(t))&&i(!1,"RelayModernSelector: Expected value for fragment `%s` to be an object, got `%s`.",e.name,JSON.stringify(t));var r=t[c];return"string"==typeof r?r:(a(!1,"RelayModernSelector: Expected object to contain data for fragment `%s`, got `%s`. Make sure that the parent operation/fragment included fragment `...%s` without `@relay(mask: false)`, or `null` is passed as the fragment reference for `%s` if it's conditonally included and the condition isn't met.",e.name,JSON.stringify(t),e.name,e.name),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)||i(!1,"RelayModernSelector: Expected value for fragment `%s` to be an array, got `%s`. Remove `@relay(plural: true)` from fragment `%s` to allow the prop to be an object.",e.name,JSON.stringify(t),e.name),y(e,t)):(Array.isArray(t)&&i(!1,"RelayModernFragmentSpecResolver: Expected value for fragment `%s` to be an object, got `%s`. Add `@relay(plural: true)` to fragment `%s` to allow the prop to be an array of items.",e.name,JSON.stringify(t),e.name),m(e,t)||{})}function m(e,t){var r=f(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 b(e,t,r,n){var i=arguments.length>4&&void 0!==arguments[4]&&arguments[4];return{kind:"SingularReaderSelector",dataID:t,isWithinUnmatchedTypeRefinement:i,node:e,variables:r,owner:n}}e.exports={areEqualSelectors:function(e,t){return e.owner===t.owner&&e.dataID===t.dataID&&e.node===t.node&&n(e.variables,t.variables)},createReaderSelector:b,createNormalizationSelector:function(e,t,r){return{dataID:t,node:e,variables:r}},getDataIDsFromFragment:_,getDataIDsFromObject: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},getSingularSelector:f,getPluralSelector:h,getSelector:p,getSelectorsFromObject: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},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}}},function(e,t,r){"use strict";var n=r(1)(r(5)),i=r(0),a=r(2).getArgumentValues;e.exports={getLocalVariables:function(e,t,r){if(null==t)return e;var i=(0,n.default)({},e),o=r?a(r,e):{};return t.forEach((function(e){var t,r=null!==(t=o[e.name])&&void 0!==t?t:e.defaultValue;i[e.name]=r})),i},getFragmentVariables:function(e,t,r){var a;return e.argumentDefinitions.forEach((function(o){if(!r.hasOwnProperty(o.name))switch(a=a||(0,n.default)({},r),o.kind){case"LocalArgument":a[o.name]=o.defaultValue;break;case"RootArgument":if(!t.hasOwnProperty(o.name)){a[o.name]=void 0;break}a[o.name]=t[o.name];break;default:i(!1,"RelayConcreteVariables: Unexpected node kind `%s` in fragment `%s`.",o.kind,e.name)}})),a||r},getOperationVariables:function(e,t){var r={};return e.argumentDefinitions.forEach((function(e){var n=e.defaultValue;null!=t[e.name]&&(n=t[e.name]),r[e.name]=n})),r}}},function(e,t,r){"use strict";var n=r(39),i=function(e,t){},a=function(){function e(e){if(!e||"function"!=typeof e)throw new Error("Source must be a Function: "+String(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)?o(e):n(e)?s(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=!1,i=r.subscribe({next:function(t){n=!0,e.next(t)},error:e.error,complete:function(){n?e.complete():i=t.subscribe(e)}});return function(){i.unsubscribe()}}))},t.subscribe=function(e){if(!e||"object"!=typeof e)throw new Error("Observer must be an Object with callbacks: "+String(e));return function(e,t){var r,n=!1,a=function(e){return Object.defineProperty(e,"closed",{get:function(){return n}})};function o(){if(r){if(r.unsubscribe)r.unsubscribe();else try{r()}catch(e){i(e,!0)}r=void 0}}var s=a({unsubscribe:function(){if(!n){n=!0;try{t.unsubscribe&&t.unsubscribe(s)}catch(e){i(e,!0)}finally{o()}}}});try{t.start&&t.start(s)}catch(e){i(e,!0)}if(n)return s;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),o();else{n=!0;try{t.error(e)}catch(e){i(e,!0)}finally{o()}}},complete:function(){if(!n){n=!0;try{t.complete&&t.complete()}catch(e){i(e,!0)}finally{o()}}}});try{r=e(l)}catch(e){l.error(e,!0)}if(void 0!==r&&"function"!=typeof r&&(!r||"function"!=typeof r.unsubscribe))throw new Error("Returned cleanup function which cannot be called: "+String(r));n&&o();return s}(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 o(){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:o})}catch(e){n.error(e,!0)}},error:n.error,complete:o}),function(){i.forEach((function(e){return e.unsubscribe()})),i.length=0}}))},t.poll=function(t){var r=this;if("number"!=typeof t||t<=0)throw new Error("RelayObservable: Expected pollInterval to be positive, got: "+t);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 o(e){return e instanceof a?e:a.create((function(t){return e.subscribe(t)}))}function s(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()}))}a.onUnhandledError((function(e,t){"function"==typeof fail?fail(String(e)):t?setTimeout((function(){throw e})):"undefined"!=typeof console&&console.error("RelayObservable: Unhandled Error",e)})),e.exports=a},function(e,t,r){"use strict";var n=r(18),i=r(48),a=r(12).getOperationVariables,o=r(11),s=o.createNormalizationSelector,l=o.createReaderSelector,u=r(2).ROOT_ID;function c(e,t,r){var a={identifier:i(e.params,t),node:e,variables:t,cacheConfig:r};return n(t),Object.freeze(e),Object.freeze(a),a}e.exports={createOperationDescriptor:function(e,t,r){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:u,i=e.operation,o=a(i,t),d=c(e,o,r),f={fragment:l(e.fragment,n,o,d),request:d,root:s(i,n,o)};return Object.freeze(f.fragment),Object.freeze(f.root),Object.freeze(f),f},createRequestDescriptor:c}},function(e,t,r){"use strict";e.exports=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}},function(e,t){e.exports=a},function(e,t){e.exports=o},function(e,t,r){"use strict";e.exports=function e(t){return Object.freeze(t),Object.getOwnPropertyNames(t).forEach((function(r){var n=t[r];n&&"object"==typeof n&&!Object.isFrozen(n)&&e(n)})),t}},function(e,t){e.exports=s},function(e,t,r){"use strict";var n=r(1)(r(4)),i=r(24),a=i.EXISTENT,o=i.NONEXISTENT,s=i.UNKNOWN,l=function(){function e(e){var t=this;this._records=new Map,null!=e&&Object.keys(e).forEach((function(r){t._records.set(r,e[r])}))}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:a:s},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 i=e.value,a=i[0],o=i[1];t[a]=o}}catch(e){r.e(e)}finally{r.f()}return t},e}();e.exports=l},function(e,t,r){"use strict";var n=r(0),i=r(9).getType;e.exports={REACT_FLIGHT_EXECUTABLE_DEFINITIONS_STORAGE_KEY:"executableDefinitions",REACT_FLIGHT_TREE_STORAGE_KEY:"tree",REACT_FLIGHT_TYPE_NAME:"ReactFlightComponent",getReactFlightClientResponse:function(e){return"ReactFlightComponent"!==i(e)&&n(!1,"getReactFlightClientResponse(): Expected a ReactFlightComponentRecord, got %s.",e),e.tree},refineToReactFlightPayloadData:function(e){return null!=e&&"object"==typeof e&&"string"==typeof e.status&&(Array.isArray(e.tree)||null===e.tree)&&Array.isArray(e.queries)&&Array.isArray(e.fragments)&&Array.isArray(e.errors)?e:null}}},function(e,t,r){"use strict";var n=r(27),i=r(28),a=r(0),o=r(3),s=r(7).generateClientID,l=r(2).getStableStorageKey,u="__connection_next_edge_index";function c(e,t,r){if(null==r)return r;var i=n.get().EDGES,o=t.getValue(u);"number"!=typeof o&&a(!1,"ConnectionHandler: Expected %s to be a number, got `%s`.",u,o);var l=s(t.getDataID(),i,o),c=e.create(l,r.getType());return c.copyFieldsFrom(r),null==c.getValue("cursor")&&c.setValue(null,"cursor"),t.setValue(o+1,u),c}function d(e,t,r){for(var i=n.get().NODE,a=0;a<e.length;a++){var o=e[a];if(o){var s=o.getLinkedRecord(i),l=s&&s.getDataID();if(l){if(r.has(l))continue;r.add(l)}t.push(o)}}}e.exports={buildConnectionEdge:c,createEdge:function(e,t,r,i){var a=n.get().NODE,o=s(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=n.get(),i=r.EDGES,a=r.NODE,o=e.getLinkedRecords(i);if(o){for(var s,l=0;l<o.length;l++){var u=o[l],c=u&&u.getLinkedRecord(a);null!=c&&c.getDataID()===t?void 0===s&&(s=o.slice(0,l)):void 0!==s&&s.push(u)}void 0!==s&&e.setLinkedRecords(s,i)}},getConnection:function(e,t,r){var n=i("connection",t,null);return e.getLinkedRecord(n,r)},getConnectionID:function(e,t,r){var n=i("connection",t,null),a=l(n,r);return s(e,a)},insertEdgeAfter:function(e,t,r){var i=n.get(),a=i.CURSOR,o=i.EDGES,s=e.getLinkedRecords(o);if(s){var l;if(null==r)l=s.concat(t);else{l=[];for(var u=!1,c=0;c<s.length;c++){var d=s[c];if(l.push(d),null!=d)r===d.getValue(a)&&(l.push(t),u=!0)}u||l.push(t)}e.setLinkedRecords(l,o)}else e.setLinkedRecords([t],o)},insertEdgeBefore:function(e,t,r){var i=n.get(),a=i.CURSOR,o=i.EDGES,s=e.getLinkedRecords(o);if(s){var l;if(null==r)l=[t].concat(s);else{l=[];for(var u=!1,c=0;c<s.length;c++){var d=s[c];if(null!=d)r===d.getValue(a)&&(l.push(t),u=!0);l.push(d)}u||l.unshift(t)}e.setLinkedRecords(l,o)}else e.setLinkedRecords([t],o)},update:function(e,t){var r=e.get(t.dataID);if(r){var i=n.get(),a=i.EDGES,l=i.END_CURSOR,f=i.HAS_NEXT_PAGE,h=i.HAS_PREV_PAGE,p=i.PAGE_INFO,_=i.PAGE_INFO_TYPE,v=i.START_CURSOR,g=r.getLinkedRecord(t.fieldKey),m=g&&g.getLinkedRecord(p);if(g){var y=s(r.getDataID(),t.handleKey),b=r.getLinkedRecord(t.handleKey),E=null!=b?b:e.get(y),R=E&&E.getLinkedRecord(p);if(E){null==b&&r.setLinkedRecord(E,t.handleKey);var I=E,D=g.getLinkedRecords(a);D&&(D=D.map((function(t){return c(e,I,t)})));var S=I.getLinkedRecords(a),k=I.getLinkedRecord(p);I.copyFieldsFrom(g),S&&I.setLinkedRecords(S,a),k&&I.setLinkedRecord(k,p);var A=[],O=t.args;if(S&&D)if(null!=O.after){if(!R||O.after!==R.getValue(l))return void o(!1,"Relay: Unexpected after cursor `%s`, edges must be fetched from the end of the list (`%s`).",O.after,R&&R.getValue(l));var F=new Set;d(S,A,F),d(D,A,F)}else if(null!=O.before){if(!R||O.before!==R.getValue(v))return void o(!1,"Relay: Unexpected before cursor `%s`, edges must be fetched from the beginning of the list (`%s`).",O.before,R&&R.getValue(v));var T=new Set;d(D,A,T),d(S,A,T)}else A=D;else A=D||S;if(null!=A&&A!==S&&I.setLinkedRecords(A,a),R&&m)if(null==O.after&&null==O.before)R.copyFieldsFrom(m);else if(null!=O.before||null==O.after&&O.last){R.setValue(!!m.getValue(h),h);var N=m.getValue(v);"string"==typeof N&&R.setValue(N,v)}else if(null!=O.after||null==O.before&&O.first){R.setValue(!!m.getValue(f),f);var x=m.getValue(l);"string"==typeof x&&R.setValue(x,l)}}else{var P=e.create(y,g.getType());P.setValue(0,u),P.copyFieldsFrom(g);var w=g.getLinkedRecords(a);w&&(w=w.map((function(t){return c(e,P,t)})),P.setLinkedRecords(w,a)),r.setLinkedRecord(P,t.handleKey),(R=e.create(s(P.getDataID(),p),_)).setValue(!1,f),R.setValue(!1,h),R.setValue(null,l),R.setValue(null,v),m&&R.copyFieldsFrom(m),P.setLinkedRecord(R,p)}}else r.setValue(null,t.handleKey)}}}},function(e,t,r){"use strict";var n=r(1)(r(4)),i=r(22),a=r(3),o=Object.freeze({RANGE_ADD:"RANGE_ADD",RANGE_DELETE:"RANGE_DELETE",NODE_DELETE:"NODE_DELETE"}),s=Object.freeze({APPEND:"append",PREPEND:"prepend"});function l(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:o,RangeOperations:s,convert:function(e,t,r,o){var s=r?[r]:[],u=o?[o]:[];return e.forEach((function(e){switch(e.type){case"NODE_DELETE":var r=function(e,t){var r=e.deletedIDFieldName,n=l(t);if(!n)return null;return 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)}))}}}(e,t);r&&(s.push(r),u.push(r));break;case"RANGE_ADD":var o=function(e,t){var r=e.parentID,o=e.connectionInfo,s=e.edgeName;if(!r)return a(!1,"RelayDeclarativeMutationConfig: For mutation config RANGE_ADD to work you must include a parentID"),null;var u=l(t);if(!o||!u)return null;return function(e,t){var l=e.get(r);if(l){var c=e.getRootField(u);if(c){var d,f=c.getLinkedRecord(s),h=(0,n.default)(o);try{for(h.s();!(d=h.n()).done;){var p=d.value;if(f){var _=i.getConnection(l,p.key,p.filters);if(_){var v=i.buildConnectionEdge(e,_,f);if(v)switch(p.rangeBehavior){case"append":i.insertEdgeAfter(_,v);break;case"prepend":i.insertEdgeBefore(_,v);break;default:a(!1,"RelayDeclarativeMutationConfig: RANGE_ADD range behavior `%s` will not work as expected in RelayModern, supported range behaviors are 'append', 'prepend'.",p.rangeBehavior)}}}}}catch(e){h.e(e)}finally{h.f()}}}}}(e,t);o&&(s.push(o),u.push(o));break;case"RANGE_DELETE":var c=function(e,t){var r=e.parentID,o=e.connectionKeys,s=e.pathToConnection,u=e.deletedIDFieldName;if(!r)return a(!1,"RelayDeclarativeMutationConfig: For mutation config RANGE_DELETE to work you must include a parentID"),null;var c=l(t);if(!c)return null;return function(e,t){if(t){var l=[],d=t[c];if(d&&Array.isArray(u)){var f,h=(0,n.default)(u);try{for(h.s();!(f=h.n()).done;){var p=f.value;d&&"object"==typeof d&&(d=d[p])}}catch(e){h.e(e)}finally{h.f()}Array.isArray(d)?d.forEach((function(e){e&&e.id&&"object"==typeof e&&"string"==typeof e.id&&l.push(e.id)})):d&&d.id&&"string"==typeof d.id&&l.push(d.id)}else d&&"string"==typeof u&&"object"==typeof d&&("string"==typeof(d=d[u])?l.push(d):Array.isArray(d)&&d.forEach((function(e){"string"==typeof e&&l.push(e)})));!function(e,t,r,o,s){a(null!=t,"RelayDeclarativeMutationConfig: RANGE_DELETE must provide a connectionKeys");var l=o.get(e);if(!l)return;if(r.length<2)return void a(!1,"RelayDeclarativeMutationConfig: RANGE_DELETE pathToConnection must include at least parent and connection");for(var u=l,c=1;c<r.length-1;c++)u&&(u=u.getLinkedRecord(r[c]));if(!t||!u)return void a(!1,"RelayDeclarativeMutationConfig: RANGE_DELETE pathToConnection is incorrect. Unable to find connection with parentID: %s and path: %s",e,r.toString());var d,f=(0,n.default)(t);try{var h=function(){var e=d.value,t=i.getConnection(u,e.key,e.filters);t&&s.forEach((function(e){i.deleteNode(t,e)}))};for(f.s();!(d=f.n()).done;)h()}catch(e){f.e(e)}finally{f.f()}}(r,o,s,e,l)}}}(e,t);c&&(s.push(c),u.push(c))}})),{optimisticUpdater:function(e,t){s.forEach((function(r){r(e,t)}))},updater:function(e,t){u.forEach((function(r){r(e,t)}))}}}}},function(e,t,r){"use strict";e.exports={EXISTENT:"EXISTENT",NONEXISTENT:"NONEXISTENT",UNKNOWN:"UNKNOWN"}},function(e,t,r){"use strict";e.exports={generateTypeID:function(e){return"client:__type:"+e},isTypeID:function(e){return 0===e.indexOf("client:__type:")},TYPE_SCHEMA_TYPE:"__TypeSchema"}},function(e,t,r){"use strict";var n="undefined"!=typeof WeakSet,i="undefined"!=typeof WeakMap;e.exports=function e(t,r){if(t===r||"object"!=typeof t||t instanceof Set||t instanceof Map||n&&t instanceof WeakSet||i&&t instanceof WeakMap||!t||"object"!=typeof r||r instanceof Set||r instanceof Map||n&&r instanceof WeakSet||i&&r instanceof WeakMap||!r)return r;var a=!1,o=Array.isArray(t)?t:null,s=Array.isArray(r)?r:null;if(o&&s)a=s.reduce((function(t,r,n){var i=e(o[n],r);return i!==s[n]&&(Object.isFrozen(s)||(s[n]=i)),t&&i===o[n]}),!0)&&o.length===s.length;else if(!o&&!s){var l=t,u=r,c=Object.keys(l),d=Object.keys(u);a=d.reduce((function(t,r){var n=e(l[r],u[r]);return n!==u[r]&&(Object.isFrozen(u)||(u[r]=n)),t&&n===l[r]}),!0)&&c.length===d.length}return a?t:r}},function(e,t,r){"use strict";var n={after:!0,before:!0,find:!0,first:!0,last:!0,surrounds:!0},i={CLIENT_MUTATION_ID:"clientMutationId",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"},a={inject:function(e){i=e},get:function(){return i},isConnectionCall:function(e){return n.hasOwnProperty(e.name)}};e.exports=a},function(e,t,r){"use strict";var n=r(0),i=r(35).DEFAULT_HANDLE_KEY;e.exports=function(e,t,r){return t&&t!==i?"__".concat(t,"_").concat(e):(null==r&&n(!1,"getRelayHandleKey: Expected either `fieldName` or `key` in `handle` to be provided"),"__".concat(r,"_").concat(e))}},function(e,t,r){"use strict";var n=r(0);e.exports={assertInternalActorIndentifier:function(e){"INTERNAL_ACTOR_IDENTIFIER_DO_NOT_USE"!==e&&n(!1,'Expected to use only internal version of the `actorIdentifier`. "%s" was provided.',e)},getActorIdentifier:function(e){return e},getDefaultActorIdentifier:function(){throw new Error("Not Implemented")},INTERNAL_ACTOR_IDENTIFIER_DO_NOT_USE:"INTERNAL_ACTOR_IDENTIFIER_DO_NOT_USE"}},function(e,t,r){"use strict";var n=r(8),i=n.REQUEST,a=n.SPLIT_OPERATION;e.exports=function(e){switch(e.kind){case i:return e.operation;case a:default:return e}}},function(e,t,r){"use strict";var n=r(1)(r(16)),i=r(7),a=r(6),o=r(9),s=r(0),l=r(8),u=l.ACTOR_CHANGE,c=l.CLIENT_EXTENSION,d=l.CONDITION,f=l.DEFER,h=l.FLIGHT_FIELD,p=l.FRAGMENT_SPREAD,_=l.INLINE_DATA_FRAGMENT_SPREAD,v=l.INLINE_FRAGMENT,g=l.LINKED_FIELD,m=l.MODULE_IMPORT,y=l.REQUIRED_FIELD,b=l.RELAY_RESOLVER,E=l.SCALAR_FIELD,R=l.STREAM,I=r(21).getReactFlightClientResponse,D=r(2),S=D.FRAGMENTS_KEY,k=D.FRAGMENT_OWNER_KEY,A=D.FRAGMENT_PROP_NAME_KEY,O=D.ID_KEY,F=D.IS_WITHIN_UNMATCHED_TYPE_REFINEMENT,T=D.MODULE_COMPONENT_KEY,N=D.ROOT_ID,x=D.getArgumentValues,P=D.getStorageKey,w=D.getModuleComponentKey,L=r(43).NoopResolverCache,C=r(62).withResolverContext,M=r(25).generateTypeID;var U=function(){function e(e,t,r){this._isMissingData=!1,this._isWithinUnmatchedTypeRefinement=!1,this._missingRequiredFields=null,this._owner=t.owner,this._recordSource=e,this._seenRecords=new Set,this._selector=t,this._variables=t.variables,this._resolverCache=r}var t=e.prototype;return t.read=function(){var e=this._selector,t=e.node,r=e.dataID,n=e.isWithinUnmatchedTypeRefinement,i=t.abstractKey,a=this._recordSource.get(r),s=!n;s&&null==i&&null!=a&&(o.getType(a)!==t.type&&r!==N&&(s=!1));if(s&&null!=i&&null!=a){var l=o.getType(a),u=M(l),c=this._recordSource.get(u),d=null!=c?o.getValue(c,i):null;!1===d?s=!1:null==d&&(this._isMissingData=!0)}return this._isWithinUnmatchedTypeRefinement=!s,{data:this._traverse(t,r,null),isMissingData:this._isMissingData&&s,seenRecords:this._seenRecords,selector:this._selector,missingRequiredFields:this._missingRequiredFields}},t._traverse=function(e,t,r){var n=this._recordSource.get(t);if(this._seenRecords.add(t),null==n)return void 0===n&&(this._isMissingData=!0),n;var i=r||{};return this._traverseSelections(e.selections,n,i)?i:null},t._getVariableValue=function(e){return this._variables.hasOwnProperty(e)||s(!1,"RelayReader(): Undefined variable `%s`.",e),this._variables[e]},t._maybeReportUnexpectedNull=function(e,t,r){var n;if("THROW"!==(null===(n=this._missingRequiredFields)||void 0===n?void 0:n.action)){var i=this._selector.node.name;switch(t){case"THROW":return void(this._missingRequiredFields={action:t,field:{path:e,owner:i}});case"LOG":return null==this._missingRequiredFields&&(this._missingRequiredFields={action:t,fields:[]}),void this._missingRequiredFields.fields.push({path:e,owner:i})}}},t._traverseSelections=function(e,t,r){for(var n=0;n<e.length;n++){var i=e[n];switch(i.kind){case y:if(a.ENABLE_REQUIRED_DIRECTIVES||s(!1,'RelayReader(): Encountered a `@required` directive at path "%s" in `%s` without the `ENABLE_REQUIRED_DIRECTIVES` feature flag enabled.',i.path,this._selector.node.name),null==this._readRequiredField(i,t,r)){var l=i.action;return"NONE"!==l&&this._maybeReportUnexpectedNull(i.path,l,t),!1}break;case E:this._readScalar(i,t,r);break;case g:i.plural?this._readPluralLink(i,t,r):this._readLink(i,t,r);break;case d:if(Boolean(this._getVariableValue(i.condition))===i.passingValue)if(!this._traverseSelections(i.selections,t,r))return!1;break;case v:var I=i.abstractKey;if(null==I){var D=o.getType(t);if(null!=D&&D===i.type)if(!this._traverseSelections(i.selections,t,r))return!1}else{var S=this._isMissingData,k=this._isWithinUnmatchedTypeRefinement,A=o.getType(t),O=M(A),F=this._recordSource.get(O),T=null!=F?o.getValue(F,I):null;this._isWithinUnmatchedTypeRefinement=k||!1===T,this._traverseSelections(i.selections,t,r),this._isWithinUnmatchedTypeRefinement=k,!1===T?this._isMissingData=S:null==T&&(this._isMissingData=!0)}break;case b:if(!a.ENABLE_RELAY_RESOLVERS)throw new Error("Relay Resolver fields are not yet supported.");this._readResolverField(i,t,r);break;case p:this._createFragmentPointer(i,t,r);break;case m:this._readModuleImport(i,t,r);break;case _:this._createInlineDataOrResolverFragmentPointer(i,t,r);break;case f:case c:var N=this._isMissingData,x=this._traverseSelections(i.selections,t,r);if(this._isMissingData=N,!x)return!1;break;case R:if(!this._traverseSelections(i.selections,t,r))return!1;break;case h:if(!a.ENABLE_REACT_FLIGHT_COMPONENT_FIELD)throw new Error("Flight fields are not yet supported.");this._readFlightField(i,t,r);break;case u:this._readActorChange(i,t,r);break;default:s(!1,"RelayReader(): Unexpected ast kind `%s`.",i.kind)}}return!0},t._readRequiredField=function(e,t,r){switch(e.field.kind){case E:return this._readScalar(e.field,t,r);case g:return e.field.plural?this._readPluralLink(e.field,t,r):this._readLink(e.field,t,r);case b:if(!a.ENABLE_RELAY_RESOLVERS)throw new Error("Relay Resolver fields are not yet supported.");this._readResolverField(e.field,t,r);break;default:e.field.kind,s(!1,"RelayReader(): Unexpected ast kind `%s`.",e.kind)}},t._readResolverField=function(e,t,r){var a,l,u=this,c=e.resolverModule,d=e.fragment,f=P(e,this._variables),h=i.generateClientID(o.getDataID(t),f),p=new Set,_=function(e){if(null!=a)return a;l=e;var r=u._seenRecords;try{var n;u._seenRecords=p;var i={};return u._createInlineDataOrResolverFragmentPointer(e.node,t,i),("object"!=typeof(a=null===(n=i[S])||void 0===n?void 0:n[d.name])||null===a)&&s(!1,"Expected reader data to contain a __fragments property with a property for the fragment named ".concat(d.name,", but it is missing.")),a}finally{u._seenRecords=r}},v={getDataForResolverFragment:_},g=this._resolverCache.readFromCacheOrEvaluate(t,e,this._variables,(function(){var e={__id:o.getDataID(t),__fragmentOwner:u._owner,__fragments:(0,n.default)({},d.name,{})};return C(v,(function(){return{resolverResult:c(e),fragmentValue:a,resolverID:h,seenRecordIDs:p,readerSelector:l}}))}),_),m=g[0],y=g[1];return null!=y&&this._seenRecords.add(y),r[f]=m,m},t._readFlightField=function(e,t,r){var n,i=null!==(n=e.alias)&&void 0!==n?n:e.name,a=P(e,this._variables),s=o.getLinkedRecordID(t,a);if(null==s)return r[i]=s,void 0===s&&(this._isMissingData=!0),s;var l=this._recordSource.get(s);if(this._seenRecords.add(s),null==l)return r[i]=l,void 0===l&&(this._isMissingData=!0),l;var u=I(l);return r[i]=u,u},t._readScalar=function(e,t,r){var n,i=null!==(n=e.alias)&&void 0!==n?n:e.name,a=P(e,this._variables),s=o.getValue(t,a);return void 0===s&&(this._isMissingData=!0),r[i]=s,s},t._readLink=function(e,t,r){var n,i=null!==(n=e.alias)&&void 0!==n?n:e.name,a=P(e,this._variables),l=o.getLinkedRecordID(t,a);if(null==l)return r[i]=l,void 0===l&&(this._isMissingData=!0),l;var u=r[i];null!=u&&"object"!=typeof u&&s(!1,"RelayReader(): Expected data for field `%s` on record `%s` to be an object, got `%s`.",i,o.getDataID(t),u);var c=this._traverse(e,l,u);return r[i]=c,c},t._readActorChange=function(e,t,r){var n,i=null!==(n=e.alias)&&void 0!==n?n:e.name,a=P(e,this._variables),s=o.getActorLinkedRecordID(t,a);if(null==s)return r[i]=s,void 0===s&&(this._isMissingData=!0),r[i];var l=s[0],u=s[1],c={};return this._createFragmentPointer(e.fragmentSpread,{__id:u},c),r[i]={__fragmentRef:c,__viewer:l},r[i]},t._readPluralLink=function(e,t,r){var n,i=this,a=null!==(n=e.alias)&&void 0!==n?n:e.name,l=P(e,this._variables),u=o.getLinkedRecordIDs(t,l);if(null==u)return r[a]=u,void 0===u&&(this._isMissingData=!0),u;var c=r[a];null==c||Array.isArray(c)||s(!1,"RelayReader(): Expected data for field `%s` on record `%s` to be an array, got `%s`.",a,o.getDataID(t),c);var d=c||[];return u.forEach((function(r,n){if(null==r)return void 0===r&&(i._isMissingData=!0),void(d[n]=r);var l=d[n];null!=l&&"object"!=typeof l&&s(!1,"RelayReader(): Expected data for field `%s` on record `%s` to be an object, got `%s`.",a,o.getDataID(t),l),d[n]=i._traverse(e,r,l)})),r[a]=d,d},t._readModuleImport=function(e,t,r){var n=w(e.documentName),i=o.getValue(t,n);null!=i?(this._createFragmentPointer({kind:"FragmentSpread",name:e.fragmentName,args:e.args},t,r),r[A]=e.fragmentPropName,r[T]=i):void 0===i&&(this._isMissingData=!0)},t._createFragmentPointer=function(e,t,r){var n=r[S];null==n&&(n=r[S]={}),("object"!=typeof n||null==n)&&s(!1,"RelayReader: Expected fragment spread data to be an object, got `%s`.",n),null==r[O]&&(r[O]=o.getDataID(t)),n[e.name]=e.args?x(e.args,this._variables):{},r[k]=this._owner,r[F]=this._isWithinUnmatchedTypeRefinement},t._createInlineDataOrResolverFragmentPointer=function(e,t,r){var n=r[S];null==n&&(n=r[S]={}),("object"!=typeof n||null==n)&&s(!1,"RelayReader: Expected fragment spread data to be an object, got `%s`.",n),null==r[O]&&(r[O]=o.getDataID(t));var i={};this._traverseSelections(e.selections,t,i),n[e.name]=i},e}();e.exports={read:function(e,t,r){return new U(e,t,null!=r?r:new L).read()}}},function(e,t,r){"use strict";e.exports=function(e){return Boolean(e&&e["@@RelayModernEnvironment"])}},function(e,t,r){"use strict";var n=r(13),i=r(50),a=r(0),o="function"==typeof WeakMap?new WeakMap:new Map;function s(e,t,r){return n.create((function(o){var s=u(e),l=s.get(t);return l||r().finally((function(){return s.delete(t)})).subscribe({start:function(e){l={identifier:t,subject:new i,subjectForInFlightStatus:new i,subscription:e},s.set(t,l)},next:function(e){var r=c(s,t);r.subject.next(e),r.subjectForInFlightStatus.next(e)},error:function(e){var r=c(s,t);r.subject.error(e),r.subjectForInFlightStatus.error(e)},complete:function(){var e=c(s,t);e.subject.complete(),e.subjectForInFlightStatus.complete()},unsubscribe:function(e){var r=c(s,t);r.subject.unsubscribe(),r.subjectForInFlightStatus.unsubscribe()}}),null==l&&a(!1,"[fetchQueryInternal] fetchQueryDeduped: Expected `start` to be called synchronously"),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))}}}))}(s,l).subscribe(o)}))}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=o.get(e);if(null!=t)return t;var r=new Map;return o.set(e,r),r}function c(e,t){var r=e.get(t);return null==r&&a(!1,"[fetchQueryInternal] getCachedRequest: Expected request to be cached"),r}e.exports={fetchQuery:function(e,t){return s(e,t.request.identifier,(function(){return e.execute({operation:t})}))},fetchQueryDeduped:s,getPromiseForActiveRequest:function(e,t){var r=u(e),n=r.get(t.identifier);return n&&e.isRequestActive(n.identifier)?new Promise((function(t,r){var i=!1;l(e,0,n).subscribe({complete:t,error:r,next:function(e){i&&t(e)}}),i=!0})):null},getObservableForActiveRequest:function(e,t){var r=u(e),n=r.get(t.identifier);return n&&e.isRequestActive(n.identifier)?l(e,0,n):null}}},function(e,t,r){"use strict";e.exports=function(e,t){switch(t.action){case"THROW":var r=t.field,n=r.path,i=r.owner;throw e.requiredFieldLogger({kind:"missing_field.throw",owner:i,fieldPath:n}),new Error("Relay: Missing @required value at path '".concat(n,"' in '").concat(i,"'."));case"LOG":t.fields.forEach((function(t){var r=t.path,n=t.owner;e.requiredFieldLogger({kind:"missing_field.log",owner:n,fieldPath:r})}));break;default:t.action}}},function(e,t,r){"use strict";e.exports={DEFAULT_HANDLE_KEY:""}},function(e,t,r){"use strict";var n=r(1)(r(4)),i=r(22),a=r(27),o=r(0),s=r(3),l={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)}))}}},u={update:function(e,t){var r=e.get(t.dataID);if(null!=r){var a=t.handleArgs.connections;null==a&&o(!1,"MutationHandlers: Expected connection IDs to be specified.");var l=r.getValue(t.fieldKey);(Array.isArray(l)?l:[l]).forEach((function(t){if("string"==typeof t){var r,o=(0,n.default)(a);try{for(o.s();!(r=o.n()).done;){var l=r.value,u=e.get(l);null!=u?i.deleteNode(u,t):s(!1,"[Relay][Mutation] The connection with id '".concat(l,"' doesn't exist."))}}catch(e){o.e(e)}finally{o.f()}}}))}}},c={update:p(i.insertEdgeAfter)},d={update:p(i.insertEdgeBefore)},f={update:_(i.insertEdgeAfter)},h={update:_(i.insertEdgeBefore)};function p(e){return function(t,r){var l,u=t.get(r.dataID);if(null!=u){var c,d,f=r.handleArgs.connections;null==f&&o(!1,"MutationHandlers: Expected connection IDs to be specified.");try{c=u.getLinkedRecord(r.fieldKey,r.args)}catch(e){}if(!c)try{d=u.getLinkedRecords(r.fieldKey,r.args)}catch(e){}if(null!=c||null!=d){var h,p=a.get(),_=p.NODE,v=p.EDGES,g=null!==(l=d)&&void 0!==l?l:[c],m=(0,n.default)(g);try{var y=function(){var r=h.value;if(null==r)return"continue";var a=r.getLinkedRecord("node");if(!a)return"continue";var l,u=a.getDataID(),c=(0,n.default)(f);try{for(c.s();!(l=c.n()).done;){var d=l.value,p=t.get(d);if(null!=p){if(!(null===(b=p.getLinkedRecords(v))||void 0===b?void 0:b.some((function(e){var t;return(null==e||null===(t=e.getLinkedRecord(_))||void 0===t?void 0:t.getDataID())===u})))){var g=i.buildConnectionEdge(t,p,r);null==g&&o(!1,"MutationHandlers: Failed to build the edge."),e(p,g)}}else s(!1,"[Relay][Mutation] The connection with id '".concat(d,"' doesn't exist."))}}catch(e){c.e(e)}finally{c.f()}};for(m.s();!(h=m.n()).done;){var b;y()}}catch(e){m.e(e)}finally{m.f()}}else s(!1,"MutationHandlers: Expected the server edge to be non-null.")}}}function _(e){return function(t,r){var l,u=t.get(r.dataID);if(null!=u){var c,d,f=r.handleArgs,h=f.connections,p=f.edgeTypeName;null==h&&o(!1,"MutationHandlers: Expected connection IDs to be specified."),null==p&&o(!1,"MutationHandlers: Expected edge typename to be specified.");try{c=u.getLinkedRecord(r.fieldKey,r.args)}catch(e){}if(!c)try{d=u.getLinkedRecords(r.fieldKey,r.args)}catch(e){}if(null!=c||null!=d){var _,v=a.get(),g=v.NODE,m=v.EDGES,y=null!==(l=d)&&void 0!==l?l:[c],b=(0,n.default)(y);try{var E=function(){var r=_.value;if(null==r)return"continue";var a,l=r.getDataID(),u=(0,n.default)(h);try{for(u.s();!(a=u.n()).done;){var c=a.value,d=t.get(c);if(null!=d){if(!(null===(R=d.getLinkedRecords(m))||void 0===R?void 0:R.some((function(e){var t;return(null==e||null===(t=e.getLinkedRecord(g))||void 0===t?void 0:t.getDataID())===l})))){var f=i.createEdge(t,d,r,p);null==f&&o(!1,"MutationHandlers: Failed to build the edge."),e(d,f)}}else s(!1,"[Relay][Mutation] The connection with id '".concat(c,"' doesn't exist."))}}catch(e){u.e(e)}finally{u.f()}};for(b.s();!(_=b.n()).done;){var R;E()}}catch(e){b.e(e)}finally{b.f()}}else s(!1,"MutationHandlers: Expected target node to exist.")}}}e.exports={AppendEdgeHandler:c,DeleteRecordHandler:l,PrependEdgeHandler:d,AppendNodeHandler:f,PrependNodeHandler:h,DeleteEdgeHandler:u}},function(e,t,r){"use strict";var n=r(22),i=r(36),a=r(0);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,"RelayDefaultHandlerProvider: No handler provided for `%s`.",e)}},function(e,t,r){"use strict";function n(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 o=0,s=r.replace(/%s/g,(function(){return String(i[o++])})),l=new Error(s),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,t){for(var r=arguments.length,i=new Array(r>2?r-2:0),a=2;a<r;a++)i[a-2]=arguments[a];return n.apply(void 0,["error",e,t].concat(i))},createWarning:function(e,t){for(var r=arguments.length,i=new Array(r>2?r-2:0),a=2;a<r;a++)i[a-2]=arguments[a];return n.apply(void 0,["warn",e,t].concat(i))}}},function(e,t,r){"use strict";e.exports=function(e){return!!e&&"function"==typeof e.then}},function(e,t,r){"use strict";var n=1e5;e.exports=function(){return n++}},function(e,t,r){"use strict";var n=r(1)(r(4)),i=r(0),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,o=(0,n.default)(t);try{for(o.s();!(r=o.n()).done;){var s=r.value.identifier,l=this._ownersToPendingOperations.get(s);null!=l?l.has(i)||(l.set(i,e),a.add(s)):(this._ownersToPendingOperations.set(s,new Map([[i,e]])),a.add(s))}}catch(e){o.e(e)}finally{o.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 f=u.value;this._resolveOwnerResolvers(f),c.add(f)}}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,o=new Set,s=(0,n.default)(r);try{for(s.s();!(i=s.n()).done;){var l=i.value,u=this._ownersToPendingOperations.get(l);u&&(u.delete(t),u.size>0?o.add(l):a.add(l))}}catch(e){s.e(e)}finally{s.f()}var c,d=(0,n.default)(a);try{for(d.s();!(c=d.n()).done;){var f=c.value;this._resolveOwnerResolvers(f),this._ownersToPendingOperations.delete(f)}}catch(e){d.e(e)}finally{d.f()}var h,p=(0,n.default)(o);try{for(p.s();!(h=p.n()).done;){var _=h.value;this._resolveOwnerResolvers(_)}}catch(e){p.e(e)}finally{p.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 o=new Promise((function(e){n=e}));null==n&&i(!1,"RelayOperationTracker: Expected resolver to be defined. If youare seeing this, it is likely a bug in Relay.");var s=Array.from(r.values());return this._ownersToPendingPromise.set(t,{promise:o,resolve:n,pendingOperations:s}),{promise:o,pendingOperations:s}},e}();e.exports=a},function(e,t){var r;r=function(){return this}();try{r=r||new Function("return this")()}catch(e){"object"==typeof window&&(r=window)}e.exports=r},function(e,t,r){"use strict";var n=r(1)(r(4)),i=r(9),a=r(26),o=r(3),s=r(7).generateClientID,l=r(2),u=l.RELAY_RESOLVER_VALUE_KEY,c=l.RELAY_RESOLVER_INVALIDATION_KEY,d=l.RELAY_RESOLVER_INPUTS_KEY,f=l.RELAY_RESOLVER_READER_SELECTOR_KEY,h=l.getStorageKey,p=new Set,_=function(){function e(){}var t=e.prototype;return t.readFromCacheOrEvaluate=function(e,t,r,n,i){return[n().resolverResult,void 0]},t.invalidateDataIDs=function(e){},e}();function v(e,t,r){var n=e.get(t);n||(n=new Set,e.set(t,n)),n.add(r)}var g=function(){function e(e){this._resolverIDToRecordIDs=new Map,this._recordIDToResolverIDs=new Map,this._getRecordSource=e}var t=e.prototype;return t.readFromCacheOrEvaluate=function(e,t,r,a,o){var l=this._getRecordSource(),c=i.getDataID(e),p=h(t,r),_=i.getLinkedRecordID(e,p),g=null==_?null:l.get(_);if(null==g||this._isInvalid(g,o)){var m;_=null!==(m=_)&&void 0!==m?m:s(c,p),g=i.create(_,"__RELAY_RESOLVER__");var y=a();i.setValue(g,u,y.resolverResult),i.setValue(g,d,y.fragmentValue),i.setValue(g,f,y.readerSelector),l.set(_,g);var b=i.clone(e);i.setLinkedRecordID(b,p,_),l.set(i.getDataID(b),b);var E=y.resolverID;v(this._resolverIDToRecordIDs,E,_),v(this._recordIDToResolverIDs,c,E);var R,I=(0,n.default)(y.seenRecordIDs);try{for(I.s();!(R=I.n()).done;){var D=R.value;v(this._recordIDToResolverIDs,D,E)}}catch(e){I.e(e)}finally{I.f()}}return[g[u],_]},t.invalidateDataIDs=function(e){for(var t=this._getRecordSource(),r=new Set,i=Array.from(e);i.length;){var a=i.pop();e.add(a);var o,s=(0,n.default)(null!==(l=this._recordIDToResolverIDs.get(a))&&void 0!==l?l:p);try{for(s.s();!(o=s.n()).done;){var l,u=o.value;if(!r.has(u)){var c,d=(0,n.default)(null!==(f=this._resolverIDToRecordIDs.get(u))&&void 0!==f?f:p);try{for(d.s();!(c=d.n()).done;){var f,h=c.value;this._markInvalidatedResolverRecord(h,t,e),r.has(h)||i.push(h)}}catch(e){d.e(e)}finally{d.f()}}}}catch(e){s.e(e)}finally{s.f()}}},t._markInvalidatedResolverRecord=function(e,t,r){var n=t.get(e);if(n){var a=i.clone(n);i.setValue(a,c,!0),t.set(e,a)}else o(!1,"Expected a resolver record with ID %s, but it was missing.",e)},t._isInvalid=function(e,t){if(!i.getValue(e,c))return!1;var r=i.getValue(e,d),n=i.getValue(e,f);if(null==r||null==n)return o(!1,"Expected previous inputs and reader selector on resolver record with ID %s, but they were missing.",i.getDataID(e)),!0;var s=t(n);return a(r,s)!==r},e}();e.exports={NoopResolverCache:_,RecordResolverCache:g}},function(e,t,r){"use strict";var n=r(9),i=r(0),a=r(24).EXISTENT,o=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);if(void 0===r){if(null==t)return t;var i=n.clone(t);return n.freeze(i),i}if(null===r)return null;if(null!=t){var a=n.update(t,r);return a!==t&&n.freeze(a),a}var o=n.clone(r);return n.freeze(o),o},t._getSinkRecord=function(e){var t=this._sink.get(e);if(!t){var r=this._base.get(e);r||i(!1,"RelayRecordSourceMutator: Cannot modify non-existent record `%s`.",e),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),a=this._base.get(e);r||a||i(!1,"RelayRecordSourceMutator#copyFields(): Cannot copy fields from non-existent record `%s`.",e);var o=this._getSinkRecord(t);a&&n.copyFields(a,o),r&&n.copyFields(r,o)},t.copyFieldsFromRecord=function(e,t){var r=this._getSinkRecord(t);n.copyFields(e,r)},t.create=function(e,t){(this._base.getStatus(e)===a||this._sink.getStatus(e)===a)&&i(!1,"RelayRecordSourceMutator#create(): Cannot create a record with id `%s`, this record already exists.",e);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.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=o},function(e,t,r){"use strict";var n=r(9),i=r(63),a=r(0),o=r(24),s=o.EXISTENT,l=o.NONEXISTENT,u=r(2),c=u.ROOT_ID,d=u.ROOT_TYPE,f=function(){function e(e,t,r){this.__mutator=e,this._handlerProvider=r||null,this._proxies={},this._getDataID=t,this._invalidatedStore=!1,this._idsMarkedForInvalidation=new Set}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===s){var a=e.get(t);a&&(r.__mutator.getStatus(t)!==s&&r.create(t,n.getType(a)),r.__mutator.copyFieldsFromRecord(a,t))}else i===l&&r.delete(t)})),t&&t.length&&t.forEach((function(e){var t=r._handlerProvider&&r._handlerProvider(e.handle);t||a(!1,"RelayModernEnvironment: Expected a handler to be provided for handle `%s`.",e.handle),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||a(!1,"RelayRecordSourceProxy#create(): Expected the created record to exist."),r},t.delete=function(e){e===c&&a(!1,"RelayRecordSourceProxy#delete(): Cannot delete the root record."),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===s?new i(this,this.__mutator,e):t===l?null:void 0}return this._proxies[e]},t.getRoot=function(){var e=this.get(c);return e||(e=this.create(c,d)),e&&e.getType()===d||a(!1,"RelayRecordSourceProxy#getRoot(): Expected the source to contain a root record, %s.",null==e?"no root record found":"found a root record of type `".concat(e.getType(),"`")),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},e}();e.exports=f},function(e,t,r){"use strict";var n=r(47),i=n.VIEWER_ID,a=n.VIEWER_TYPE;e.exports=function(e,t){return t===a&&null==e.id?i:e.id}},function(e,t,r){"use strict";var n=(0,r(7).generateClientID)(r(2).ROOT_ID,"viewer");e.exports={VIEWER_ID:n,VIEWER_TYPE:"Viewer"}},function(e,t,r){"use strict";var n=r(0),i=r(15);e.exports=function(e,t){var r=null!=e.cacheID?e.cacheID:e.id;return null==r&&n(!1,"getRequestIdentifier: Expected request `%s` to have either a valid `id` or `cacheID` property",e.name),r+JSON.stringify(i(t))}},function(e,t,r){"use strict";var n=r(17),i=r(0),a=r(8).LINKED_FIELD,o=r(2).getHandleStorageKey;e.exports=function(e,t,r){var s=t.find((function(t){return t.kind===a&&t.name===e.name&&t.alias===e.alias&&n(t.args,e.args)}));s&&s.kind===a||i(!1,"cloneRelayHandleSourceField: Expected a corresponding source field for handle `%s`.",e.handle);var l=o(e,r);return{kind:"LinkedField",alias:s.alias,name:l,storageKey:l,args:null,concreteType:s.concreteType,plural:s.plural,selections:s.selections}}},function(e,t,r){"use strict";var n=r(1),i=n(r(4)),a=n(r(16)),o=r(13),s=r(0),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=o.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,s(!1,"RelayReplaySubject: Unknown event kind `%s`.",i.kind)}}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},function(e,t,r){"use strict";var n=r(33).getPromiseForActiveRequest;e.exports=function(e,t,r){var i,a,o=[],s=n(e,r);if(null!=s)o=[r];else{var l,u,c=e.getOperationTracker().getPendingOperationsAffectingOwner(r);o=null!==(l=null==c?void 0:c.pendingOperations)&&void 0!==l?l:[],s=null!==(u=null==c?void 0:c.promise)&&void 0!==u?u:null}if(!s)return null;var d=null!==(i=null===(a=o)||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 f=t.name,h=d===f?"Relay(".concat(d,")"):"Relay(".concat(d,":").concat(f,")");return s.displayName=h,{promise:s,pendingOperations:o}}},function(e,t,r){"use strict";e.exports=function(e,t){return e===t&&(null===e||"object"!=typeof e)}},function(e,t,r){"use strict";var n=r(0);e.exports=function(e,t){var r,i;!0===(null===(r=e.metadata)||void 0===r?void 0:r.plural)&&n(!1,"Relay: getRefetchMetadata(): Expected fragment `%s` not to be plural when using `%s`. Remove `@relay(plural: true)` from fragment `%s` in order to use it with `%s`.",e.name,t,e.name,t);var a=null===(i=e.metadata)||void 0===i?void 0:i.refetch;null==a&&n(!1,"Relay: getRefetchMetadata(): Expected fragment `%s` to be refetchable when using `%s`. Did you forget to add a @refetchable directive to the fragment?",t,e.name);var o=a.operation.default?a.operation.default:a.operation,s=a.fragmentPathInResult;"string"==typeof o&&n(!1,"Relay: getRefetchMetadata(): Expected refetch query to be an operation and not a string when using `%s`. If you're seeing this, this is likely a bug in Relay.",t);var l=a.identifierField;return null!=l&&"string"!=typeof l&&n(!1,"Relay: getRefetchMetadata(): Expected `identifierField` to be a string."),{fragmentRefPathInResponse:s,identifierField:l,refetchableRequest:o,refetchMetadata:a}}},function(e,t,r){"use strict";var n=r(22),i=r(27),a=r(10),o=r(36),s=r(55),l=r(8),u=r(12),c=r(23),d=r(35),f=r(37),h=r(38),p=r(6),_=r(56),v=r(14),g=r(9),m=r(11),y=r(69),b=r(77),E=r(13),R=r(41),I=r(79),D=r(80),S=r(20),k=r(50),A=r(2),O=r(47),F=r(81),T=r(82),N=r(83),x=r(85),P=r(87),w=r(88),L=r(18),C=r(89),M=r(33),U=r(90),V=r(91),q=r(93),j=r(94),K=r(51),H=r(53),z=r(28),G=r(48),Y=r(95),Q=r(39),B=r(32),W=r(52),J=r(96),X=r(26),Z=r(34),$=r(97),ee=r(15),te=r(7),re=te.generateClientID,ne=te.generateUniqueClientID,ie=te.isClientID,ae="function"!=typeof Map?"Map":null,oe="function"!=typeof Set?"Set":null,se="function"!=typeof Promise?"Promise":null,le="function"!=typeof Object.assign?"Object.assign":null;if(ae||oe||se||le)throw new Error("relay-runtime requires ".concat([ae,oe,se,le].filter(Boolean).join(", and ")," to exist. ")+"Use a polyfill to provide these for older browsers.");e.exports={Environment:_,Network:b,Observable:E,QueryResponseCache:D,RecordSource:S,Record:g,ReplaySubject:k,Store:y,areEqualSelectors:m.areEqualSelectors,createFragmentSpecResolver:x,createNormalizationSelector:m.createNormalizationSelector,createOperationDescriptor:v.createOperationDescriptor,createReaderSelector:m.createReaderSelector,createRequestDescriptor:v.createRequestDescriptor,getDataIDsFromFragment:m.getDataIDsFromFragment,getDataIDsFromObject:m.getDataIDsFromObject,getNode:a.getNode,getFragment:a.getFragment,getInlineDataFragment:a.getInlineDataFragment,getModuleComponentKey:A.getModuleComponentKey,getModuleOperationKey:A.getModuleOperationKey,getPaginationFragment:a.getPaginationFragment,getPluralSelector:m.getPluralSelector,getRefetchableFragment:a.getRefetchableFragment,getRequest:a.getRequest,getRequestIdentifier:G,getSelector:m.getSelector,getSelectorsFromObject:m.getSelectorsFromObject,getSingularSelector:m.getSingularSelector,getStorageKey:A.getStorageKey,getVariablesFromFragment:m.getVariablesFromFragment,getVariablesFromObject:m.getVariablesFromObject,getVariablesFromPluralFragment:m.getVariablesFromPluralFragment,getVariablesFromSingularFragment:m.getVariablesFromSingularFragment,reportMissingRequiredFields:Z,graphql:a.graphql,isFragment:a.isFragment,isInlineDataFragment:a.isInlineDataFragment,isRequest:a.isRequest,readInlineData:J,MutationTypes:c.MutationTypes,RangeOperations:c.RangeOperations,DefaultHandlerProvider:f,ConnectionHandler:n,MutationHandlers:o,VIEWER_ID:O.VIEWER_ID,VIEWER_TYPE:O.VIEWER_TYPE,applyOptimisticMutation:F,commitLocalUpdate:T,commitMutation:N,fetchQuery:C,fetchQuery_DEPRECATED:U,isRelayModernEnvironment:B,requestSubscription:$,ConnectionInterface:i,PreloadableQueryRegistry:s,RelayProfiler:I,createPayloadFor3DField:P,RelayConcreteNode:l,RelayError:h,RelayFeatureFlags:p,DEFAULT_HANDLE_KEY:d.DEFAULT_HANDLE_KEY,FRAGMENTS_KEY:A.FRAGMENTS_KEY,FRAGMENT_OWNER_KEY:A.FRAGMENT_OWNER_KEY,ID_KEY:A.ID_KEY,REF_KEY:A.REF_KEY,REFS_KEY:A.REFS_KEY,ROOT_ID:A.ROOT_ID,ROOT_TYPE:A.ROOT_TYPE,TYPENAME_KEY:A.TYPENAME_KEY,deepFreeze:L,generateClientID:re,generateUniqueClientID:ne,getRelayHandleKey:z,isClientID:ie,isPromise:Q,isScalarAndEqual:W,recycleNodesInto:X,stableCopy:ee,getFragmentIdentifier:V,getRefetchMetadata:H,getPaginationMetadata:q,getPaginationVariables:j,getPendingOperationsForFragment:K,getValueAtPath:Y,__internal:{OperationTracker:R,createRelayContext:w,getOperationVariables:u.getOperationVariables,fetchQuery:M.fetchQuery,fetchQueryDeduped:M.fetchQueryDeduped,getPromiseForActiveRequest:M.getPromiseForActiveRequest,getObservableForActiveRequest:M.getObservableForActiveRequest}}},function(e,t,r){"use strict";var n=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;n.add(t);return this._callbacks.set(e,n),{dispose:function(){n.delete(t)}}},t.clear=function(){this._preloadableQueries.clear()},e}());e.exports=n},function(e,t,r){"use strict";var n=r(1)(r(5)),i=r(57),a=r(37),o=r(6),s=r(13),l=r(41),u=r(61),c=r(20),d=r(46),f=r(65),h=r(0),p=r(66),_=r(67),v=r(29),g=v.INTERNAL_ACTOR_IDENTIFIER_DO_NOT_USE,m=v.assertInternalActorIndentifier,y=function(){function e(e){var t,n,i,s,c,v,g,m,y=this;this.configName=e.configName,this._treatMissingFieldsAsNull=!0===e.treatMissingFieldsAsNull;var E=e.operationLoader,R=e.reactFlightPayloadDeserializer,I=e.reactFlightServerErrorHandler;null!=E&&("object"!=typeof E||"function"!=typeof E.get||"function"!=typeof E.load)&&h(!1,"RelayModernEnvironment: Expected `operationLoader` to be an object with get() and load() functions, got `%s`.",E),null!=R&&"function"!=typeof R&&h(!1,"RelayModernEnvironment: Expected `reactFlightPayloadDeserializer` to be a function, got `%s`.",R),this.__log=null!==(t=e.log)&&void 0!==t?t:b,this.requiredFieldLogger=null!==(n=e.requiredFieldLogger)&&void 0!==n?n:f,this._defaultRenderPolicy=(null!==(i=e.UNSTABLE_defaultRenderPolicy)&&void 0!==i?i:!0===o.ENABLE_PARTIAL_RENDERING_DEFAULT)?"partial":"full",this._operationLoader=E,this._operationExecutions=new Map,this._network=_(this,e.network),this._getDataID=null!==(s=e.getDataID)&&void 0!==s?s:d,this._publishQueue=new u(e.store,null!==(c=e.handlerProvider)&&void 0!==c?c:a,this._getDataID),this._scheduler=null!==(v=e.scheduler)&&void 0!==v?v:null,this._store=e.store,this.options=e.options,this._isServer=null!==(g=e.isServer)&&void 0!==g&&g,this.__setNet=function(e){return y._network=_(y,e)};var D=r(68).inspect;this.DEBUG_inspect=function(e){return D(y,e)},this._missingFieldHandlers=e.missingFieldHandlers,this._operationTracker=null!==(m=e.operationTracker)&&void 0!==m?m:new l,this._reactFlightPayloadDeserializer=R,this._reactFlightServerErrorHandler=I,this._shouldProcessClientComponents=e.shouldProcessClientComponents,p(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.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 s.create((function(e){}))},isClientPayload:!1,operation:e.operation,optimisticConfig:e,updater:null}).subscribe({});return{dispose:function(){return t.unsubscribe()}}},t.check=function(e){return null==this._missingFieldHandlers||0===this._missingFieldHandlers.length?this._store.check(e):this._checkSelectorAndHandleMissingFields(e,this._missingFieldHandlers)},t.commitPayload=function(e,t){this._execute({createSource:function(){return s.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=c.create(),i=this._store.getSource(),a=this._store.check(e,{handlers:t,defaultActorIdentifier:g,getSourceForActor:function(e){return m(e),i},getTargetForActor:function(e){return m(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,n=e.updater;return this._execute({createSource:function(){return t._network.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,o=e.optimisticUpdater,s=e.updater,l=e.uploadables;return(a||o)&&(t={operation:i,response:a,updater:o}),this._execute({createSource:function(){return r._network.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:s})},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,a=e.operation,o=e.optimisticConfig,l=e.updater,u=this._publishQueue,c=this._store;return s.create((function(e){var s=i.execute({actorIdentifier:g,getDataID:t._getDataID,isClientPayload:n,log:t.__log,operation:a,operationExecutions:t._operationExecutions,operationLoader:t._operationLoader,operationTracker:t._operationTracker,optimisticConfig:o,getPublishQueue:function(e){return m(e),u},reactFlightPayloadDeserializer:t._reactFlightPayloadDeserializer,reactFlightServerErrorHandler:t._reactFlightServerErrorHandler,scheduler:t._scheduler,shouldProcessClientComponents:t._shouldProcessClientComponents,sink:e,source:r(),getStore:function(e){return m(e),c},treatMissingFieldsAsNull:t._treatMissingFieldsAsNull,updater:l});return function(){return s.cancel()}}))},e}();function b(){}y.prototype["@@RelayModernEnvironment"]=!0,e.exports=y},function(e,t,r){"use strict";var n=r(1),i=n(r(5)),a=n(r(4)),o=n(r(16)),s=n(r(19)),l=r(38),u=r(6),c=r(9),d=r(13),f=r(20),h=r(58),p=r(40),_=r(30),v=r(0),g=r(15),m=r(3),y=r(60),b=r(7),E=b.generateClientID,R=b.generateUniqueClientID,I=r(12).getLocalVariables,D=r(11),S=D.createNormalizationSelector,k=D.createReaderSelector,A=r(2),O=A.ROOT_TYPE,F=A.TYPENAME_KEY,T=A.getStorageKey;var N=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,c=e.operationLoader,d=e.operationTracker,f=e.optimisticConfig,h=e.reactFlightPayloadDeserializer,_=e.reactFlightServerErrorHandler,g=e.scheduler,m=e.shouldProcessClientComponents,b=e.sink,E=e.source,R=e.treatMissingFieldsAsNull,I=e.updater,D=e.log;(0,o.default)(this,"_deserializeReactFlightPayloadWithLogging",(function(e){var r=t._reactFlightPayloadDeserializer;"function"!=typeof r&&v(!1,"OperationExecutor: Expected reactFlightPayloadDeserializer to be available when calling _deserializeReactFlightPayloadWithLogging.");var n=y((function(){return r(e)})),i=n[0],a=n[1];return t._log({name:"execute.flight.payload_deserialize",executeId:t._executeId,operationName:t._operation.request.node.params.name,duration:i}),a})),this._actorIdentifier=r,this._getDataID=n,this._treatMissingFieldsAsNull=R,this._incrementalPayloadsPending=!1,this._incrementalResults=new Map,this._log=D,this._executeId=p(),this._nextSubscriptionId=0,this._operation=l,this._operationExecutions=u,this._operationLoader=c,this._operationTracker=d,this._operationUpdateEpochs=new Map,this._optimisticUpdates=null,this._pendingModulePayloadsCount=0,this._getPublishQueue=i,this._scheduler=g,this._sink=b,this._source=new Map,this._state="started",this._getStore=a,this._subscriptions=new Map,this._updater=I,this._isClientPayload=!0===s,this._reactFlightPayloadDeserializer=h,this._reactFlightServerErrorHandler=_,this._isSubscriptionOperation="subscription"===this._operation.request.node.params.operationKind,this._shouldProcessClientComponents=m,this._retainDisposables=new Map,this._seenActors=new Set,this._completeFns=[];var S=this._nextSubscriptionId++;E.subscribe({complete:function(){return t._complete(S)},error:function(e){return t._error(e)},next:function(e){try{t._next(S,e)}catch(e){b.error(e)}},start:function(e){var r;t._start(S,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:{}})}}),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,v(!1,"OperationExecutor: invalid executor state.")}this._operationExecutions.set(this._operation.request.identifier,e)},t._schedule=function(e){var t=this,r=this._scheduler;if(null!=r){var n=this._nextSubscriptionId++;d.create((function(t){var n=r.schedule((function(){try{e(),t.complete()}catch(e){t.error(e)}}));return function(){return r.cancel(n)}})).subscribe({complete:function(){return t._complete(n)},error:function(e){return t._error(e)},start:function(e){return t._start(n,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;this._schedule((function(){var e=y((function(){r._handleNext(t),r._maybeCompleteSubscriptionOperationTracking()}))[0];r._log({name:"execute.next",executeId:r._executeId,response:t,duration:e})}))},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=l.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 o=e;r.push(o)}})),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)}))&&v(!1,"OperationExecutor: Optimistic responses cannot be batched."),!1;var r=e[0],n=!0===(null===(t=r.extensions)||void 0===t?void 0:t.isOptimistic);return n&&"started"!==this._state&&v(!1,"OperationExecutor: optimistic payload received after server payload."),!!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||v(!1,"OperationExecutor: invalid incremental payload, expected `path` and `label` to either both be null/undefined, or `path` to be an `Array<string | number>` and `label` to be a `string`."),r.push({label:n,path:i,response:e})}else t.push(e)})),[t,r]}(r),i=n[0],a=n[1],o=i.length>0;if(o){if(this._isSubscriptionOperation){var s=R();this._operation={request:this._operation.request,fragment:k(this._operation.fragment.node,s,this._operation.fragment.variables,this._operation.fragment.owner),root:S(this._operation.root.node,s,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(o?this._operation:void 0);o&&this._incrementalPayloadsPending&&this._retainData(),this._updateOperationTracker(c),this._sink.next(e)}}},t._processOptimisticResponse=function(e,t,r){var n=this;if(null!==this._optimisticUpdates&&v(!1,"OperationExecutor: environment.execute: only support one optimistic response per execute."),null!=e||null!=t){var i=[];if(e){var a=x(e,this._operation.root,O,{actorIdentifier:this._actorIdentifier,getDataID:this._getDataID,path:[],reactFlightPayloadDeserializer:null!=this._reactFlightPayloadDeserializer?this._deserializeReactFlightPayloadWithLogging:null,reactFlightServerErrorHandler:this._reactFlightServerErrorHandler,shouldProcessClientComponents:this._shouldProcessClientComponents,treatMissingFieldsAsNull:r});P(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:f.create(),isFinal:!1},updater:t});this._optimisticUpdates=i,i.forEach((function(e){return n._getPublishQueueAndSaveActor().applyUpdate(e)})),this._runPublishQueue()}},t._processOptimisticFollowups=function(e,t){if(e.followupPayloads&&e.followupPayloads.length){var r,n=e.followupPayloads,i=(0,a.default)(n);try{for(i.s();!(r=i.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,s.default)(u))}break;case"ActorPayload":m(!1,"OperationExecutor: Unexpected optimistic ActorPayload. These updates are not supported.");break;default:v(!1,"OperationExecutor: Unexpected followup kind `%s`. when processing optimistic updates.",o.kind)}}}catch(e){i.e(e)}finally{i.f()}}},t._normalizeFollowupPayload=function(e,t){var r;r="SplitOperation"===t.kind&&"ModuleImportPayload"===e.kind?I(e.variables,t.argumentDefinitions,e.args):e.variables;var n=S(t,e.dataID,r);return x({data:e.data},n,e.typeName,{actorIdentifier:this._actorIdentifier,getDataID:this._getDataID,path:e.path,reactFlightPayloadDeserializer:null!=this._reactFlightPayloadDeserializer?this._deserializeReactFlightPayloadWithLogging:null,reactFlightServerErrorHandler:this._reactFlightServerErrorHandler,treatMissingFieldsAsNull:this._treatMissingFieldsAsNull,shouldProcessClientComponents:this._shouldProcessClientComponents})},t._processOptimisticModuleImport=function(e,t){var r=_(e),n=[],i=this._normalizeFollowupPayload(t,r);return P(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);if(i.forEach((function(e){return t._getPublishQueueAndSaveActor().applyUpdate(e)})),null==t._optimisticUpdates)m(!1,"OperationExecutor: Unexpected ModuleImport optimistic update in operation %s."+t._operation.request.node.params.name);else(n=t._optimisticUpdates).push.apply(n,(0,s.default)(i)),t._runPublishQueue()}}))},t._processResponses=function(e){var t=this;return 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=x(e,t._operation.root,O,{actorIdentifier:t._actorIdentifier,getDataID:t._getDataID,path:[],reactFlightPayloadDeserializer:null!=t._reactFlightPayloadDeserializer?t._deserializeReactFlightPayloadWithLogging:null,reactFlightServerErrorHandler:t._reactFlightServerErrorHandler,treatMissingFieldsAsNull:t._treatMissingFieldsAsNull,shouldProcessClientComponents:t._shouldProcessClientComponents});return t._getPublishQueueAndSaveActor().commitPayload(t._operation,r,t._updater),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)){m(t._isClientPayload,"RelayModernEnvironment: Operation `%s` contains @defer/@stream directives but was executed in non-streaming mode. See https://fburl.com/relay-incremental-delivery-non-streaming-warning.",t._operation.request.node.params.name);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,_(n));else{var i=this._nextSubscriptionId++;this._pendingModulePayloadsCount++;var a=function(){t._pendingModulePayloadsCount--,t._maybeCompleteSubscriptionOperationTracking()},o=d.from(new Promise((function(t,n){r.load(e.operationReference).then(t,n)})));d.create((function(r){var n,i=o.subscribe({next:function(i){if(null!=i){var a=function(){try{var n=_(i),a=u.BATCH_ASYNC_MODULE_UPDATES_FN,o=null!=a&&t._pendingModulePayloadsCount>1,s=y((function(){if(t._handleFollowupPayload(e,n),o)t._scheduleAsyncStoreUpdate(a,r.complete);else{var i=t._runPublishQueue();t._updateOperationTracker(i)}}))[0];t._log({name:"execute.async.module",executeId:t._executeId,operationName:n.name,duration:s}),o||r.complete()}catch(e){r.error(e)}},o=t._scheduler;null==o?a():n=o.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:v(!1,"OperationExecutor: Unexpected followup kind `%s`.",e.kind)}},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 o,s=a.get(i),l=null!=s&&"response"===s.kind?s.responses:null;a.set(i,{kind:"placeholder",placeholder:t}),"stream"===t.kind?o=t.parentID:"defer"===t.kind?o=t.selector.dataID:v(!1,"OperationExecutor: Unsupported incremental placeholder kind `%s`.",t.kind);var u,d,f=e.source.get(o),h=(null!==(r=e.fieldPayloads)&&void 0!==r?r:[]).filter((function(e){var t=E(e.dataID,e.fieldKey);return e.dataID===o||t===o}));null==f&&v(!1,"OperationExecutor: Expected record `%s` to exist.",o);var p=this._source.get(o);if(null!=p){u=c.update(p.record,f);var _=new Map,m=function(e){var t,r,n=(t=e,null!==(r=JSON.stringify(g(t)))&&void 0!==r?r:"");_.set(n,e)};p.fieldPayloads.forEach(m),h.forEach(m),d=Array.from(_.values())}else u=f,d=h;if(this._source.set(o,{record:u,fieldPayloads:d}),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,o=t._incrementalResults.get(n);if(null==o&&(o=new Map,t._incrementalResults.set(n,o)),-1!==n.indexOf("$defer$")){var s=i.map(String).join("."),l=o.get(s);if(null==l)return l={kind:"response",responses:[e]},void o.set(s,l);if("response"===l.kind)return void l.responses.push(e);var u=l.placeholder;"defer"!==u.kind&&v(!1,"OperationExecutor: Expected data for path `%s` for label `%s` to be data for @defer, was `@%s`.",s,n,u.kind),r.push(t._processDeferResponse(n,i,u,a))}else{var c=i.slice(0,-2).map(String).join("."),d=o.get(c);if(null==d)return d={kind:"response",responses:[e]},void o.set(c,d);if("response"===d.kind)return void d.responses.push(e);var f=d.placeholder;"stream"!==f.kind&&v(!1,"OperationExecutor: Expected data for path `%s` for label `%s` to be data for @stream, was `@%s`.",c,n,f.kind),r.push(t._processStreamResponse(n,i,f,a))}})),r},t._processDeferResponse=function(e,t,r,n){var i,a=r.selector.dataID,o=this._actorIdentifier;this._actorIdentifier=null!==(i=r.actorIdentifier)&&void 0!==i?i:this._actorIdentifier;var s=x(n,r.selector,r.typeName,{actorIdentifier:this._actorIdentifier,getDataID:this._getDataID,path:r.path,reactFlightPayloadDeserializer:null!=this._reactFlightPayloadDeserializer?this._deserializeReactFlightPayloadWithLogging:null,reactFlightServerErrorHandler:this._reactFlightServerErrorHandler,treatMissingFieldsAsNull:this._treatMissingFieldsAsNull,shouldProcessClientComponents:this._shouldProcessClientComponents});this._getPublishQueueAndSaveActor().commitPayload(this._operation,s);var l=this._source.get(a);null==l&&v(!1,"OperationExecutor: Expected the parent record `%s` for @defer data to exist.",a);var u=l.fieldPayloads;if(0!==u.length){var c,d={errors:null,fieldPayloads:u,incrementalPlaceholders:null,followupPayloads:null,source:f.create(),isFinal:!0===(null===(c=n.extensions)||void 0===c?void 0:c.is_final)};this._getPublishQueueAndSaveActor().commitPayload(this._operation,d)}return this._actorIdentifier=o,s},t._processStreamResponse=function(e,t,r,n){var i=r.parentID,a=r.node,o=r.variables,l=r.actorIdentifier,u=this._actorIdentifier;this._actorIdentifier=null!=l?l:this._actorIdentifier;var c=a.selections[0];(null==c||"LinkedField"!==c.kind||!0!==c.plural)&&v(!1,"OperationExecutor: Expected @stream to be used on a plural field.");var d=this._normalizeStreamItem(n,i,c,o,t,r.path),h=d.fieldPayloads,p=d.itemID,_=d.itemIndex,g=d.prevIDs,m=d.relayPayload,y=d.storageKey;if(this._getPublishQueueAndSaveActor().commitPayload(this._operation,m,(function(e){var t=e.get(i);if(null!=t){var r=t.getLinkedRecords(y);if(null!=r&&r.length===g.length&&!r.some((function(e,t){return g[t]!==(e&&e.getDataID())}))){var n=(0,s.default)(r);n[_]=e.get(p),t.setLinkedRecords(n,y)}}})),0!==h.length){var b={errors:null,fieldPayloads:h,incrementalPlaceholders:null,followupPayloads:null,source:f.create(),isFinal:!1};this._getPublishQueueAndSaveActor().commitPayload(this._operation,b)}return this._actorIdentifier=u,m},t._normalizeStreamItem=function(e,t,r,n,i,a){var o,l,u,d=e.data;"object"!=typeof d&&v(!1,"OperationExecutor: Expected the GraphQL @stream payload `data` value to be an object.");var f=null!==(o=r.alias)&&void 0!==o?o:r.name,h=T(r,n),p=this._source.get(t);null==p&&v(!1,"OperationExecutor: Expected the parent record `%s` for @stream data to exist.",t);var _=p.record,g=p.fieldPayloads,m=c.getLinkedRecordIDs(_,h);null==m&&v(!1,"OperationExecutor: Expected record `%s` to have fetched field `%s` with @stream.",t,r.name);var y=i[i.length-1],b=parseInt(y,10);b===y&&b>=0||v(!1,"OperationExecutor: Expected path for @stream to end in a positive integer index, got `%s`",y);var R=null!==(l=r.concreteType)&&void 0!==l?l:d[F];"string"!=typeof R&&v(!1,"OperationExecutor: Expected @stream field `%s` to have a __typename.",r.name);var I=(null!==(u=this._getDataID(d,R))&&void 0!==u?u:m&&m[b])||E(t,h,b);"string"!=typeof I&&v(!1,"OperationExecutor: Expected id of elements of field `%s` to be strings.",h);var D=S(r,I,n),k=c.clone(_),A=(0,s.default)(m);return A[b]=I,c.setLinkedRecordIDs(k,h,A),this._source.set(t,{record:k,fieldPayloads:g}),{fieldPayloads:g,itemID:I,itemIndex:b,prevIDs:m,relayPayload:x(e,D,R,{actorIdentifier:this._actorIdentifier,getDataID:this._getDataID,path:[].concat((0,s.default)(a),[f,String(b)]),reactFlightPayloadDeserializer:null!=this._reactFlightPayloadDeserializer?this._deserializeReactFlightPayloadWithLogging:null,reactFlightServerErrorHandler:this._reactFlightServerErrorHandler,treatMissingFieldsAsNull:this._treatMissingFieldsAsNull,shouldProcessClientComponents:this._shouldProcessClientComponents}),storageKey:h}},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,a.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,a.default)(this._getActorsToVisit());try{for(n.s();!(t=n.n()).done;){var i=t.value;this._getPublishQueue(i).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,a.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,a.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||v(!1,"OperationExecutor: Expected an operationLoader to be configured when using `@match`."),e},e}();function x(e,t,r,n){var a,o=e.data,s=e.errors,l=f.create(),u=c.create(t.dataID,r);l.set(t.dataID,u);var d=h.normalize(l,t,o,n);return(0,i.default)((0,i.default)({},d),{},{errors:s,isFinal:!0===(null===(a=e.extensions)||void 0===a?void 0:a.is_final)})}function P(e){var t=e.incrementalPlaceholders;null!=t&&0!==t.length&&v(!1,"OperationExecutor: optimistic responses cannot be returned for operations that use incremental data delivery (@defer, @stream, and @stream_connection).")}e.exports={execute:function(e){return new N(e)}}},function(e,t,r){"use strict";var n=r(1),i=n(r(4)),a=n(r(19)),o=r(6),s=r(9),l=r(17),u=r(0),c=r(3),d=r(59),f=d.ACTOR_IDENTIFIER_FIELD_NAME,h=d.getActorIdentifierFromPayload,p=r(8),_=p.ACTOR_CHANGE,v=p.CONDITION,g=p.CLIENT_COMPONENT,m=p.CLIENT_EXTENSION,y=p.DEFER,b=p.FLIGHT_FIELD,E=p.FRAGMENT_SPREAD,R=p.INLINE_FRAGMENT,I=p.LINKED_FIELD,D=p.LINKED_HANDLE,S=p.MODULE_IMPORT,k=p.SCALAR_FIELD,A=p.SCALAR_HANDLE,O=p.STREAM,F=p.TYPE_DISCRIMINATOR,T=r(7),N=T.generateClientID,x=T.isClientID,P=r(12).getLocalVariables,w=r(11).createNormalizationSelector,L=r(21),C=L.refineToReactFlightPayloadData,M=L.REACT_FLIGHT_EXECUTABLE_DEFINITIONS_STORAGE_KEY,U=L.REACT_FLIGHT_TREE_STORAGE_KEY,V=L.REACT_FLIGHT_TYPE_NAME,q=r(2),j=q.getArgumentValues,K=q.getHandleStorageKey,H=q.getModuleComponentKey,z=q.getModuleOperationKey,G=q.getStorageKey,Y=q.TYPENAME_KEY,Q=q.ROOT_ID,B=q.ROOT_TYPE,W=r(25),J=W.generateTypeID,X=W.TYPE_SCHEMA_TYPE;var Z=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._reactFlightPayloadDeserializer=r.reactFlightPayloadDeserializer,this._reactFlightServerErrorHandler=r.reactFlightServerErrorHandler,this._shouldProcessClientComponents=r.shouldProcessClientComponents}var t=e.prototype;return t.normalizeResponse=function(e,t,r){var n=this._recordSource.get(t);return n||u(!1,"RelayResponseNormalizer(): Expected root record `%s` to exist.",t),this._traverseSelections(e,n,r),{errors:null,fieldPayloads:this._handleFieldPayloads,incrementalPlaceholders:this._incrementalPlaceholders,followupPayloads:this._followupPayloads,source:this._recordSource,isFinal:!1}},t._getVariableValue=function(e){return this._variables.hasOwnProperty(e)||u(!1,"RelayResponseNormalizer(): Undefined variable `%s`.",e),this._variables[e]},t._getRecordType=function(e){var t=e[Y];return null==t&&u(!1,"RelayResponseNormalizer(): Expected a typename for record `%s`.",JSON.stringify(e,null,2)),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 k:case I:this._normalizeField(e,i,t,r);break;case v:Boolean(this._getVariableValue(i.condition))===i.passingValue&&this._traverseSelections(i,t,r);break;case E:var a=this._variables;this._variables=P(this._variables,i.fragment.argumentDefinitions,i.args),this._traverseSelections(i.fragment,t,r),this._variables=a;break;case R:var l=i.abstractKey;if(null==l){s.getType(t)===i.type&&this._traverseSelections(i,t,r)}else{var c=r.hasOwnProperty(l),d=s.getType(t),f=J(d),h=this._recordSource.get(f);null==h&&(h=s.create(f,X),this._recordSource.set(f,h)),s.setValue(h,l,c),c&&this._traverseSelections(i,t,r)}break;case F:var p=i.abstractKey,T=r.hasOwnProperty(p),N=s.getType(t),x=J(N),w=this._recordSource.get(x);null==w&&(w=s.create(x,X),this._recordSource.set(x,w)),s.setValue(w,p,T);break;case D:case A:var L=i.args?j(i.args,this._variables):{},C=G(i,this._variables),M=K(i,this._variables);this._handleFieldPayloads.push({args:L,dataID:s.getDataID(t),fieldKey:C,handle:i.handle,handleKey:M,handleArgs:i.handleArgs?j(i.handleArgs,this._variables):{}});break;case S:this._normalizeModuleImport(e,i,t,r);break;case y:this._normalizeDefer(i,t,r);break;case O:this._normalizeStream(i,t,r);break;case m:var U=this._isClientExtension;this._isClientExtension=!0,this._traverseSelections(i,t,r),this._isClientExtension=U;break;case g:if(!1===this._shouldProcessClientComponents)break;this._traverseSelections(i.fragment,t,r);break;case b:if(!o.ENABLE_REACT_FLIGHT_COMPONENT_FIELD)throw new Error("Flight fields are not yet supported.");this._normalizeFlightField(e,i,t,r);break;case _:this._normalizeActorChange(e,i,t,r);break;default:u(!1,"RelayResponseNormalizer(): Unexpected ast kind `%s`.",i.kind)}}},t._normalizeDefer=function(e,t,r){var n=null===e.if||this._getVariableValue(e.if);c("boolean"==typeof n,"RelayResponseNormalizer: Expected value for @defer `if` argument to be a boolean, got `%s`.",n),!1===n?this._traverseSelections(e,t,r):this._incrementalPlaceholders.push({kind:"defer",data:r,label:e.label,path:(0,a.default)(this._path),selector:w(e,s.getDataID(t),this._variables),typeName:s.getType(t),actorIdentifier:this._actorIdentifier})},t._normalizeStream=function(e,t,r){this._traverseSelections(e,t,r);var n=null===e.if||this._getVariableValue(e.if);c("boolean"==typeof n,"RelayResponseNormalizer: Expected value for @stream `if` argument to be a boolean, got `%s`.",n),!0===n&&this._incrementalPlaceholders.push({kind:"stream",label:e.label,path:(0,a.default)(this._path),parentID:s.getDataID(t),node:e,variables:this._variables,actorIdentifier:this._actorIdentifier})},t._normalizeModuleImport=function(e,t,r,n){"object"==typeof n&&n||u(!1,"RelayResponseNormalizer: Expected data for @module to be an object.");var i=s.getType(r),o=H(t.documentName),l=n[o];s.setValue(r,o,null!=l?l:null);var c=z(t.documentName),d=n[c];s.setValue(r,c,null!=d?d:null),null!=d&&this._followupPayloads.push({kind:"ModuleImportPayload",args:t.args,data:n,dataID:s.getDataID(r),operationReference:d,path:(0,a.default)(this._path),typeName:i,variables:this._variables,actorIdentifier:this._actorIdentifier})},t._normalizeField=function(e,t,r,n){"object"==typeof n&&n||u(!1,"writeField(): Expected data for field `%s` to be an object.",t.name);var i=t.alias||t.name,a=G(t,this._variables),o=n[i];if(null==o){if(void 0===o){if(this._isClientExtension||this._isUnmatchedAbstractType)return;if(!this._treatMissingFieldsAsNull)return void c(!1,"RelayResponseNormalizer: Payload did not contain a value for field `%s: %s`. Check that you are parsing with the same query that was used to fetch the payload.",i,a)}return t.kind===k&&this._validateConflictingFieldsWithIdenticalId(r,a,o),void s.setValue(r,a,null)}t.kind===k?(this._validateConflictingFieldsWithIdenticalId(r,a,o),s.setValue(r,a,o)):t.kind===I?(this._path.push(i),t.plural?this._normalizePluralLink(t,r,a,o):this._normalizeLink(t,r,a,o),this._path.pop()):u(!1,"RelayResponseNormalizer(): Unexpected ast kind `%s` during normalization.",t.kind)},t._normalizeActorChange=function(e,t,r,n){var i,o=t.linkedField;"object"==typeof n&&n||u(!1,"_normalizeActorChange(): Expected data for field `%s` to be an object.",o.name);var l=o.alias||o.name,d=G(o,this._variables),p=n[l];if(null!=p){var _=h(p);if(null==_)return c(!1,"RelayResponseNormalizer: Payload did not contain a value for field `%s`. Check that you are parsing with the same query that was used to fetch the payload. Payload is `%s`.",f,JSON.stringify(p,null,2)),void s.setValue(r,d,null);var v=null!==(i=o.concreteType)&&void 0!==i?i:this._getRecordType(p),g=this._getDataId(p,v)||s.getLinkedRecordID(r,d)||N(s.getDataID(r),d);"string"!=typeof g&&u(!1,"RelayResponseNormalizer: Expected id on field `%s` to be a string.",d),s.setActorLinkedRecordID(r,d,_,g),this._followupPayloads.push({kind:"ActorPayload",data:p,dataID:g,path:[].concat((0,a.default)(this._path),[l]),typeName:v,variables:this._variables,node:o,actorIdentifier:_})}else{if(void 0===p){if(this._isClientExtension||this._isUnmatchedAbstractType)return;if(!this._treatMissingFieldsAsNull)return void c(!1,"RelayResponseNormalizer: Payload did not contain a value for field `%s: %s`. Check that you are parsing with the same query that was used to fetch the payload.",l,d)}s.setValue(r,d,null)}},t._normalizeFlightField=function(e,t,r,n){var a=t.alias||t.name,o=G(t,this._variables),l=n[a];if(null!=l){var d=C(l),f=this._reactFlightPayloadDeserializer;null==d&&u(!1,"RelayResponseNormalizer: Expected React Flight payload data to be an object with `status`, tree`, `queries` and `errors` properties, got `%s`.",l),"function"!=typeof f&&u(!1,"RelayResponseNormalizer: Expected reactFlightPayloadDeserializer to be a function, got `%s`.",f),d.errors.length>0&&("function"==typeof this._reactFlightServerErrorHandler?this._reactFlightServerErrorHandler(d.status,d.errors):c(!1,"RelayResponseNormalizer: Received server errors for field `%s`.\n\n%s\n%s",a,d.errors[0].message,d.errors[0].stack));var h=N(s.getDataID(r),G(t,this._variables)),p=this._recordSource.get(h);if(null==p&&(p=s.create(h,V),this._recordSource.set(h,p)),null==d.tree)return c(!1,"RelayResponseNormalizer: Expected `tree` not to be null. This typically indicates that a fatal server error prevented any Server Component rows from being written."),s.setValue(p,U,null),s.setValue(p,M,[]),void s.setLinkedRecordID(r,o,h);var _=f(d.tree);s.setValue(p,U,_);var v,g=[],m=(0,i.default)(d.queries);try{for(m.s();!(v=m.n()).done;){var y=v.value;null!=y.response.data&&this._followupPayloads.push({kind:"ModuleImportPayload",args:null,data:y.response.data,dataID:Q,operationReference:y.module,path:[],typeName:B,variables:y.variables,actorIdentifier:this._actorIdentifier}),g.push({module:y.module,variables:y.variables})}}catch(e){m.e(e)}finally{m.f()}var b,E=(0,i.default)(d.fragments);try{for(E.s();!(b=E.n()).done;){var R=b.value;null!=R.response.data&&this._followupPayloads.push({kind:"ModuleImportPayload",args:null,data:R.response.data,dataID:R.__id,operationReference:R.module,path:[],typeName:R.__typename,variables:R.variables,actorIdentifier:this._actorIdentifier}),g.push({module:R.module,variables:R.variables})}}catch(e){E.e(e)}finally{E.f()}s.setValue(p,M,g),s.setLinkedRecordID(r,o,h)}else{if(void 0===l){if(this._isUnmatchedAbstractType)return;this._treatMissingFieldsAsNull||u(!1,"RelayResponseNormalizer: Payload did not contain a value for field `%s: %s`. Check that you are parsing with the same query that was used to fetch the payload.",a,o)}s.setValue(r,o,null)}},t._normalizeLink=function(e,t,r,n){var i;"object"==typeof n&&n||u(!1,"RelayResponseNormalizer: Expected data for field `%s` to be an object.",r);var a=this._getDataId(n,null!==(i=e.concreteType)&&void 0!==i?i:this._getRecordType(n))||s.getLinkedRecordID(t,r)||N(s.getDataID(t),r);"string"!=typeof a&&u(!1,"RelayResponseNormalizer: Expected id on field `%s` to be a string.",r),this._validateConflictingLinkedFieldsWithIdenticalId(t,s.getLinkedRecordID(t,r),a,r),s.setLinkedRecordID(t,r,a);var o=this._recordSource.get(a);if(o)this._validateRecordType(o,e,n);else{var l=e.concreteType||this._getRecordType(n);o=s.create(a,l),this._recordSource.set(a,o)}this._traverseSelections(e,o,n)},t._normalizePluralLink=function(e,t,r,n){var i=this;Array.isArray(n)||u(!1,"RelayResponseNormalizer: Expected data for field `%s` to be an array of objects.",r);var a=s.getLinkedRecordIDs(t,r),o=[];n.forEach((function(n,l){var c;if(null!=n){i._path.push(String(l)),"object"!=typeof n&&u(!1,"RelayResponseNormalizer: Expected elements for field `%s` to be objects.",r);var d=i._getDataId(n,null!==(c=e.concreteType)&&void 0!==c?c:i._getRecordType(n))||a&&a[l]||N(s.getDataID(t),r,l);"string"!=typeof d&&u(!1,"RelayResponseNormalizer: Expected id of elements of field `%s` to be strings.",r),o.push(d);var f=i._recordSource.get(d);if(f)i._validateRecordType(f,e,n);else{var h=e.concreteType||i._getRecordType(n);f=s.create(d,h),i._recordSource.set(d,f)}a&&i._validateConflictingLinkedFieldsWithIdenticalId(t,a[l],d,r),i._traverseSelections(e,f,n),i._path.pop()}else o.push(n)})),s.setLinkedRecordIDs(t,r,o)},t._validateRecordType=function(e,t,r){var n,i=null!==(n=t.concreteType)&&void 0!==n?n:this._getRecordType(r),a=s.getDataID(e);c(x(a)&&a!==Q||s.getType(e)===i,"RelayResponseNormalizer: Invalid record `%s`. Expected %s to be consistent, but the record was assigned conflicting types `%s` and `%s`. The GraphQL server likely violated the globally unique id requirement by returning the same id for different objects.",a,Y,s.getType(e),i)},t._validateConflictingFieldsWithIdenticalId=function(e,t,r){var n=s.getDataID(e),i=s.getValue(e,t);c(t===Y||void 0===i||l(i,r),"RelayResponseNormalizer: Invalid record. The record contains two instances of the same id: `%s` with conflicting field, %s and its values: %s and %s. If two fields are different but share the same id, one field will overwrite the other.",n,t,i,r)},t._validateConflictingLinkedFieldsWithIdenticalId=function(e,t,r,n){c(void 0===t||t===r,"RelayResponseNormalizer: Invalid record. The record contains references to the conflicting field, %s and its id values: %s and %s. We need to make sure that the record the field points to remains consistent or one field will overwrite the other.",n,t,r)},e}();e.exports={normalize:function(e,t,r,n){var i=t.dataID,a=t.node,o=t.variables;return new Z(e,o,n).normalizeResponse(a,i,r)}}},function(e,t,r){"use strict";var n=r(29).getActorIdentifier;e.exports={ACTOR_IDENTIFIER_FIELD_NAME:"actor_key",getActorIdentifierFromPayload:function(e){if(null!=e&&"object"==typeof e&&"string"==typeof e.actor_key)return n(e.actor_key)}}},function(e,t,r){"use strict";var n,i,a="undefined"!=typeof window&&"function"==typeof(null===(n=window)||void 0===n||null===(i=n.performance)||void 0===i?void 0:i.now);function o(){return a?window.performance.now():Date.now()}e.exports=function(e){var t=o(),r=e();return[o()-t,r]}},function(e,t,r){"use strict";(function(t){var n,i,a,o=r(31),s=r(20),l=r(44),u=r(45),c=r(64),d=r(0),f=r(3),h=null!==(n=null===(i=t)||void 0===i||null===(a=i.ErrorUtils)||void 0===a?void 0:a.applyWithGuard)&&void 0!==n?n:function(e,t,r,n,i){return e.apply(t,r)},p=function(){function e(e,t,r){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}var t=e.prototype;return t.applyUpdate=function(e){(this._appliedOptimisticUpdates.has(e)||this._pendingOptimisticUpdates.has(e))&&d(!1,"RelayPublishQueue: Cannot apply the same update function more than once concurrently."),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,r=!this._pendingBackupRebase&&0===this._pendingOptimisticUpdates.size&&!t;if(f(!r,"RelayPublishQueue.run was called, but the call would have been a noop."),f(!0!==this._isRunning,"A store update was detected within another store update. Please make sure new store updates aren't being executed within an updater function for a different update."),this._isRunning=!0,r)return this._isRunning=!1,[];this._pendingBackupRebase&&this._hasStoreSnapshot&&(this._store.restore(),this._hasStoreSnapshot=!1);var n=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._isRunning=!1,this._store.notify(e,n)},t._publishSourceFromPayload=function(e){var t=this,r=e.payload,n=e.operation,i=e.updater,a=r.source,o=r.fieldPayloads,s=new l(this._store.getSource(),a),f=new u(s,this._getDataID);if(o&&o.length&&o.forEach((function(e){var r=t._handlerProvider&&t._handlerProvider(e.handle);r||d(!1,"RelayModernEnvironment: Expected a handler to be provided for handle `%s`.",e.handle),r.update(f,e)})),i){var h=n.fragment;null==h&&d(!1,"RelayModernEnvironment: Expected a selector to be provided with updater function."),i(new c(s,f,h),_(a,h))}var p=f.getIDsMarkedForInvalidation();return this._store.publish(a,p),f.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 a=r.updater,o=s.create(),c=new l(e._store.getSource(),o),d=new u(c,e._getDataID);h(a,null,[d],null,"RelayPublishQueue:commitData"),t=t||d.isStoreMarkedForInvalidation();var f=d.getIDsMarkedForInvalidation();e._store.publish(o,f)}})),this._pendingData.clear(),t},t._applyUpdates=function(){var e=this,t=s.create(),r=new l(this._store.getSource(),t),n=new u(r,this._getDataID,this._handlerProvider),i=function(e){if(e.storeUpdater){var t=e.storeUpdater;h(t,null,[n],null,"RelayPublishQueue:applyUpdates")}else{var i=e.operation,a=e.payload,o=e.updater,s=a.source,l=a.fieldPayloads;if(s&&n.publishSource(s,l),o){var u;s&&(u=_(s,i.fragment));var d=new c(r,n,i.fragment);h(o,null,[d,u],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){var n=o.read(e,t).data,i=r(18);return n&&i(n),n}e.exports=p}).call(this,r(42))},function(e,t,r){"use strict";var n=r(0),i=r(10).getFragment,a=r(11).getSelector,o=[];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],s=i(e),l=a(s,t);return null==l&&n(!1,"Expected a selector for the fragment of the resolver ".concat(s.name,", but got null.")),"SingularReaderSelector"!==l.kind&&n(!1,"Expected a singular reader selector for the fragment of the resolver ".concat(s.name,", but it was plural.")),r.getDataForResolverFragment(l,t)},withResolverContext:function(e,t){o.push(e);try{return t()}finally{o.pop()}}}},function(e,t,r){"use strict";var n=r(0),i=r(7).generateClientID,a=r(2).getStableStorageKey,o=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&&n(!1,"RelayRecordProxy: Cannot get the type of deleted record `%s`.",this._dataID),e},t.getValue=function(e,t){var r=a(e,t);return this._mutator.getValue(this._dataID,r)},t.setValue=function(e,t,r){s(e)||n(!1,"RelayRecordProxy#setValue(): Expected a scalar or array of scalars, got `%s`.",JSON.stringify(e));var i=a(t,r);return this._mutator.setValue(this._dataID,i,e),this},t.getLinkedRecord=function(e,t){var r=a(e,t),n=this._mutator.getLinkedRecordID(this._dataID,r);return null!=n?this._source.get(n):n},t.setLinkedRecord=function(t,r,i){t instanceof e||n(!1,"RelayRecordProxy#setLinkedRecord(): Expected a record, got `%s`.",t);var o=a(r,i),s=t.getDataID();return this._mutator.setLinkedRecordID(this._dataID,o,s),this},t.getOrCreateLinkedRecord=function(e,t,r){var n=this.getLinkedRecord(e,r);if(!n){var o,s=a(e,r),l=i(this.getDataID(),s);n=null!==(o=this._source.get(l))&&void 0!==o?o:this._source.create(l,t),this.setLinkedRecord(n,e,r)}return n},t.getLinkedRecords=function(e,t){var r=this,n=a(e,t),i=this._mutator.getLinkedRecordIDs(this._dataID,n);return null==i?i:i.map((function(e){return null!=e?r._source.get(e):e}))},t.setLinkedRecords=function(e,t,r){Array.isArray(e)||n(!1,"RelayRecordProxy#setLinkedRecords(): Expected records to be an array, got `%s`.",e);var i=a(t,r),o=e.map((function(e){return e&&e.getDataID()}));return this._mutator.setLinkedRecordIDs(this._dataID,i,o),this},t.invalidateRecord=function(){this._source.markIDForInvalidation(this._dataID)},e}();function s(e){return null==e||"object"!=typeof e||Array.isArray(e)&&e.every(s)}e.exports=o},function(e,t,r){"use strict";var n=r(0),i=r(2),a=i.getStorageKey,o=i.ROOT_TYPE,s=function(){function e(e,t,r){this.__mutator=e,this.__recordSource=t,this._readSelector=r}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,o)),e},t._getRootField=function(e,t,r){var i=e.node.selections.find((function(e){return"LinkedField"===e.kind&&e.name===t||"RequiredField"===e.kind&&e.field.name===t}));return i&&"RequiredField"===i.kind&&(i=i.field),i&&"LinkedField"===i.kind||n(!1,"RelayRecordSourceSelectorProxy#getRootField(): Cannot find root field `%s`, no such field is defined on GraphQL document `%s`.",t,e.node.name),i.plural!==r&&n(!1,"RelayRecordSourceSelectorProxy#getRootField(): Expected root field `%s` to be %s.",t,r?"plural":"singular"),i},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()},e}();e.exports=s},function(e,t,r){"use strict";e.exports=function(e){if("missing_field.log"===e.kind)throw new Error("Relay Environment Configuration Error (dev only): `@required(action: LOG)` requires that the Relay Environment be configured with a `requiredFieldLogger`.")}},function(e,t,r){"use strict";(function(t){e.exports=function(e){var r=void 0!==t?t:"undefined"!=typeof window?window:void 0,n=r&&r.__RELAY_DEVTOOLS_HOOK__;n&&n.registerEnvironment(e)}}).call(this,r(42))},function(e,t,r){"use strict";var n=r(40);e.exports=function(e,t){return{execute:function(r,i,a,o){var s=n(),l={start:function(t){e.__log({name:"network.start",networkRequestId:s,params:r,variables:i,cacheConfig:a})},next:function(t){e.__log({name:"network.next",networkRequestId:s,response:t})},error:function(t){e.__log({name:"network.error",networkRequestId:s,error:t})},complete:function(){e.__log({name:"network.complete",networkRequestId:s})},unsubscribe:function(){e.__log({name:"network.unsubscribe",networkRequestId:s})}};return t.execute(r,i,a,o,(function(t){e.__log({name:"network.info",networkRequestId:s,info:t})})).do(l)}}}},function(e,t,r){"use strict";var n=r(1),i=n(r(5)),a=n(r(19)),o=function(){},s=!1,l=function(){var e={style:"list-style-type: none; padding: 0; margin: 0 0 0 12px; font-style: normal"},t={style:"rgb(136, 19, 145)"},r={style:"color: #777"},n=function(e){return["span",{style:"font-style: italic"},e.__typename,["span",r,' {id: "',e.__id,'", …}']]},i=function(e){return null!=e&&"string"==typeof e.__id},o=function(e,t){this.key=e,this.value=t},s=function(t){var r=Object.keys(t).map((function(e){return["li",{},["object",{object:new o(e,t[e])}]]}));return["ol",e].concat((0,a.default)(r))};return[{header:function(e){return i(e)?n(e):null},hasBody:function(e){return!0},body:function(e){return s(e)}},{header:function(e){if(e instanceof o){var a=i(e.value)?n(e.value):null==(s=e.value)?["span",r,"undefined"]:["object",{object:s,config:l}];return["span",t,e.key,": ",a]}var s,l;return null},hasBody:function(e){return i(e.value)},body:function(e){return s(e.value)}}]};o=function(e,t){var r;return s||(s=!0,null==window.devtoolsFormatters&&(window.devtoolsFormatters=[]),Array.isArray(window.devtoolsFormatters)&&(console.info('Make sure to select "Enable custom formatters" in the Chrome Developer Tools settings, tab "Preferences" under the "Console" section.'),(r=window.devtoolsFormatters).push.apply(r,(0,a.default)(l())))),function e(t,r){var n=t.get(r);return null==n?n:new Proxy((0,i.default)({},n),{get:function(r,n){var i=r[n];if(null==i)return i;if("object"==typeof i){if("string"==typeof i.__ref)return e(t,i.__ref);if(Array.isArray(i.__refs))return i.__refs.map((function(r){return e(t,r)}))}return i}})}(e.getStore().getSource(),null!=t?t:"client:root")},e.exports={inspect:o}},function(e,t,r){"use strict";var n=r(1),i=n(r(4)),a=n(r(16)),o=r(70),s=r(6),l=r(9),u=r(72),c=r(31),d=r(73),f=r(21),h=r(74),p=r(2),_=r(18),v=r(46),g=r(0),m=r(76),y=r(29),b=y.INTERNAL_ACTOR_IDENTIFIER_DO_NOT_USE,E=y.assertInternalActorIndentifier,R=r(2),I=R.ROOT_ID,D=R.ROOT_TYPE,S=r(43).RecordResolverCache,k=function(){function e(e,t){var r,n,i,o,s,u=this;(0,a.default)(this,"_gcStep",(function(){u._gcRun&&(u._gcRun.next().done?u._gcRun=null:u._gcScheduler(u._gcStep))}));for(var c=e.getRecordIDs(),d=0;d<c.length;d++){var f=e.get(c[d]);f&&l.freeze(f)}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:m,this._getDataID=null!==(i=null==t?void 0:t.getDataID)&&void 0!==i?i:v,this._globalInvalidationEpoch=null,this._invalidationSubscriptions=new Set,this._invalidatedRecordIDs=new Set,this.__log=null!==(o=null==t?void 0:t.log)&&void 0!==o?o:null,this._queryCacheExpirationTime=null==t?void 0:t.queryCacheExpirationTime,this._operationLoader=null!==(s=null==t?void 0:t.operationLoader)&&void 0!==s?s:null,this._optimisticSource=null,this._recordSource=e,this._releaseBuffer=[],this._roots=new Map,this._shouldScheduleGC=!1,this._resolverCache=new S((function(){return u._getMutableRecordSource()})),this._storeSubscriptions=new h(null==t?void 0:t.log,this._resolverCache),this._updatedRecordIDs=new Set,this._shouldProcessClientComponents=null==t?void 0:t.shouldProcessClientComponents,function(e){if(!e.has(I)){var t=l.create(I,D);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._getMutableRecordSource=function(){var e;return null!==(e=this._optimisticSource)&&void 0!==e?e:this._recordSource},t.check=function(e,t){var r,n,i,a,s=e.root,l=this._getMutableRecordSource(),u=this._globalInvalidationEpoch,c=this._roots.get(e.request.identifier),d=null!=c?c.epoch:null;if(null!=u&&(null==d||d<=u))return{status:"stale"};var f=null!==(r=null==t?void 0:t.handlers)&&void 0!==r?r:[],h=null!==(n=null==t?void 0:t.getSourceForActor)&&void 0!==n?n:function(e){return E(e),l},p=null!==(i=null==t?void 0:t.getTargetForActor)&&void 0!==i?i:function(e){return E(e),l};return function(e,t,r,n){var i=e.mostRecentlyInvalidatedAt,a=e.status;if("number"==typeof i&&(null==t||i>t))return{status:"stale"};if("missing"===a)return{status:"missing"};if(null!=r&&null!=n){if(r<=Date.now()-n)return{status:"stale"}}return{status:"available",fetchTime:null!=r?r:null}}(o.check(h,p,null!==(a=null==t?void 0:t.defaultActorIdentifier)&&void 0!==a?a:b,s,f,this._operationLoader,this._getDataID,this._shouldProcessClientComponents),d,null==c?void 0:c.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.getSource(),r=c.read(t,e,this._resolverCache);return _(r),r},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),s.ENABLE_RELAY_RESOLVERS&&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!=n&&n({name:"store.notify.complete",sourceOperation:e,updatedRecordIDs:this._updatedRecordIDs,invalidatedRecordIDs:this._invalidatedRecordIDs}),this._updatedRecordIDs.clear(),this._invalidatedRecordIDs.clear(),null!=e){var o=e.request.identifier,l=this._roots.get(o);if(null!=l)l.epoch=this._currentWriteEpoch,l.fetchTime=Date.now();else if("query"===e.request.node.params.operationKind&&this._gcReleaseBufferSize>0&&this._releaseBuffer.length<this._gcReleaseBufferSize){var u={operation:e,refCount:0,epoch:this._currentWriteEpoch,fetchTime:Date.now()};this._releaseBuffer.push(o),this._roots.set(o,u)}}return a},t.publish=function(e,t){var r=this._getMutableRecordSource();!function(e,t,r,n,i,a){n&&n.forEach((function(n){var i,o=e.get(n),s=t.get(n);null!==s&&((i=null!=o?l.clone(o):null!=s?l.clone(s):null)&&(l.setValue(i,p.INVALIDATED_AT_KEY,r),a.add(n),e.set(n,i)))}));for(var o=t.getRecordIDs(),s=0;s<o.length;s++){var u=o[s],c=t.get(u),d=e.get(u);if(c&&l.freeze(c),c&&d){var h=l.getType(d)===f.REACT_FLIGHT_TYPE_NAME?c:l.update(d,c);h!==d&&(l.freeze(h),i.add(u),e.set(u,h))}else null===c?(e.delete(u),null!==d&&i.add(u)):c&&(e.set(u,c),i.add(u))}}(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;this._gcRun&&(this._gcRun=null,this._shouldScheduleGC=!0),this._gcHoldCounter++;return{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=l.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 o=n.value;if(t.get(o)!==r.get(o))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&&g(!1,"RelayModernStore: Unexpected call to snapshot() while a previous snapshot exists.");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=u.create(this.getSource())},t.restore=function(){null==this._optimisticSource&&g(!1,"RelayModernStore: Unexpected call to restore(), expected a snapshot to exist (make sure to call snapshot()).");var e=this.__log;null!=e&&e({name:"store.restore"}),this._optimisticSource=null,this._shouldScheduleGC&&this.scheduleGC(),this._storeSubscriptions.restoreSubscriptions()},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*(){e:for(;;){var e,t=this._currentWriteEpoch,r=new Set,n=(0,i.default)(this._roots.values());try{for(n.s();!(e=n.n()).done;){var a=e.value.operation.root;if(d.mark(this._recordSource,a,r,this._operationLoader,this._shouldProcessClientComponents),yield,t!==this._currentWriteEpoch)continue e}}catch(e){n.e(e)}finally{n.f()}var o=this.__log;if(null!=o&&o({name:"store.gc",references:r}),0===r.size)this._recordSource.clear();else for(var s=this._recordSource.getRecordIDs(),l=0;l<s.length;l++){var u=s[l];r.has(u)||this._recordSource.remove(u)}return}},e}();e.exports=k},function(e,t,r){"use strict";var n=r(1)(r(4)),i=r(8),a=r(6),o=r(9),s=r(44),l=r(45),u=r(21),c=r(2),d=r(49),f=r(71),h=r(30),p=r(0),_=r(7).isClientID,v=r(12).getLocalVariables,g=r(24),m=g.EXISTENT,y=g.UNKNOWN,b=r(25).generateTypeID,E=i.ACTOR_CHANGE,R=i.CONDITION,I=i.CLIENT_COMPONENT,D=i.CLIENT_EXTENSION,S=i.DEFER,k=i.FLIGHT_FIELD,A=i.FRAGMENT_SPREAD,O=i.INLINE_FRAGMENT,F=i.LINKED_FIELD,T=i.LINKED_HANDLE,N=i.MODULE_IMPORT,x=i.SCALAR_FIELD,P=i.SCALAR_HANDLE,w=i.STREAM,L=i.TYPE_DISCRIMINATOR,C=c.ROOT_ID,M=c.getModuleOperationKey,U=c.getStorageKey,V=c.getArgumentValues;var q=function(){function e(e,t,r,n,i,a,o,s){this._getSourceForActor=e,this._getTargetForActor=t,this._getDataID=o,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=s}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 s(this._getSourceForActor(e),r);t=[n,new l(n,this._getDataID)],this._mutatorRecordSourceProxyCache.set(e,t)}return t},t.check=function(e,t){return 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)||p(!1,"RelayAsyncLoader(): Undefined variable `%s`.",e),this._variables[e]},t._handleMissing=function(){this._recordWasMissing=!0},t._getDataForHandlers=function(e,t){return{args:e.args?V(e.args,this._variables):{},record:this._source.get(t)}},t._handleMissingScalarField=function(e,t){if("id"!==e.name||null!=e.alias||!_(t)){var r,i=this._getDataForHandlers(e,t),a=i.args,o=i.record,s=(0,n.default)(this._handlers);try{for(s.s();!(r=s.n()).done;){var l=r.value;if("scalar"===l.kind){var u=l.handle(e,o,a,this._recordSourceProxy);if(void 0!==u)return u}}}catch(e){s.e(e)}finally{s.f()}this._handleMissing()}},t._handleMissingLinkField=function(e,t){var r,i=this._getDataForHandlers(e,t),a=i.args,o=i.record,s=(0,n.default)(this._handlers);try{for(s.s();!(r=s.n()).done;){var l=r.value;if("linked"===l.kind){var u=l.handle(e,o,a,this._recordSourceProxy);if(void 0!==u&&(null===u||this._mutator.getStatus(u)===m))return u}}}catch(e){s.e(e)}finally{s.f()}this._handleMissing()},t._handleMissingPluralLinkField=function(e,t){var r,i=this,a=this._getDataForHandlers(e,t),o=a.args,s=a.record,l=(0,n.default)(this._handlers);try{for(l.s();!(r=l.n()).done;){var u=r.value;if("pluralLinked"===u.kind){var c=u.handle(e,s,o,this._recordSourceProxy);if(null!=c){if(c.every((function(e){return null!=e&&i._mutator.getStatus(e)===m})))return c}else if(null===c)return null}}}catch(e){l.e(e)}finally{l.f()}this._handleMissing()},t._traverse=function(e,t){var r=this._mutator.getStatus(t);if(r===y&&this._handleMissing(),r===m){var n=this._source.get(t),i=o.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 x:r._checkScalar(n,t);break;case F:n.plural?r._checkPluralLink(n,t):r._checkLink(n,t);break;case E:r._checkActorChange(n.linkedField,t);break;case R:Boolean(r._getVariableValue(n.condition))===n.passingValue&&r._traverseSelections(n.selections,t);break;case O:var i=n.abstractKey;if(null==i){r._mutator.getType(t)===n.type&&r._traverseSelections(n.selections,t)}else{var o=r._mutator.getType(t);null==o&&p(!1,"DataChecker: Expected record `%s` to have a known type",t);var s=b(o),l=r._mutator.getValue(s,i);!0===l?r._traverseSelections(n.selections,t):null==l&&r._handleMissing()}break;case T:var u=d(n,e,r._variables);u.plural?r._checkPluralLink(u,t):r._checkLink(u,t);break;case P:var c=f(n,e,r._variables);r._checkScalar(c,t);break;case N:r._checkModuleImport(n,t);break;case S:case w:r._traverseSelections(n.selections,t);break;case A:var h=r._variables;r._variables=v(r._variables,n.fragment.argumentDefinitions,n.args),r._traverseSelections(n.fragment.selections,t),r._variables=h;break;case D:var _=r._recordWasMissing;r._traverseSelections(n.selections,t),r._recordWasMissing=_;break;case L:var g=n.abstractKey,m=r._mutator.getType(t);null==m&&p(!1,"DataChecker: Expected record `%s` to have a known type",t);var y=b(m);null==r._mutator.getValue(y,g)&&r._handleMissing();break;case k:if(!a.ENABLE_REACT_FLIGHT_COMPONENT_FIELD)throw new Error("Flight fields are not yet supported.");r._checkFlightField(n,t);break;case I:if(!1===r._shouldProcessClientComponents)break;r._traverseSelections(n.fragment.selections,t);break;default:p(!1,"RelayAsyncLoader(): Unexpected ast kind `%s`.",n.kind)}}))},t._checkModuleImport=function(e,t){var r=this._operationLoader;null===r&&p(!1,"DataChecker: Expected an operationLoader to be configured when using `@module`.");var n=M(e.documentName),i=this._mutator.getValue(t,n);if(null!=i){var a=r.get(i);if(null!=a){var o=h(a),s=this._variables;this._variables=v(this._variables,o.argumentDefinitions,e.args),this._traverse(o,t),this._variables=s}else this._handleMissing()}else void 0===i&&this._handleMissing()},t._checkScalar=function(e,t){var r=U(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=U(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=U(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=U(e,this._variables),n=this._source.get(t),i=null!=n?o.getActorLinkedRecordID(n,r):n;if(null==i)void 0===i&&this._handleMissing();else{var a=i[0],s=i[1],l=this._source,u=this._mutator,c=this._recordSourceProxy,d=this._getMutatorAndRecordProxyForActor(a),f=d[0],h=d[1];this._source=this._getSourceForActor(a),this._mutator=f,this._recordSourceProxy=h,this._traverse(e,s),this._source=l,this._mutator=u,this._recordSourceProxy=c}},t._checkFlightField=function(e,t){var r=U(e,this._variables),i=this._mutator.getLinkedRecordID(t,r);if(null==i)return void 0===i?void this._handleMissing():void 0;var a=this._mutator.getValue(i,u.REACT_FLIGHT_TREE_STORAGE_KEY),o=this._mutator.getValue(i,u.REACT_FLIGHT_EXECUTABLE_DEFINITIONS_STORAGE_KEY);if(null!=a&&Array.isArray(o)){var s=this._operationLoader;null===s&&p(!1,"DataChecker: Expected an operationLoader to be configured when using React Flight.");var l,c=this._variables,d=(0,n.default)(o);try{for(d.s();!(l=d.n()).done;){var f=l.value;this._variables=f.variables;var _=s.get(f.module);if(null!=_){var v=h(_);this._traverseSelections(v.selections,C)}else this._handleMissing()}}catch(e){d.e(e)}finally{d.f()}this._variables=c}else this._handleMissing()},e}();e.exports={check:function(e,t,r,n,i,a,o,s){var l=n.dataID,u=n.node,c=n.variables;return new q(e,t,r,c,i,a,o,s).check(u,l)}}},function(e,t,r){"use strict";var n=r(17),i=r(0),a=r(8).SCALAR_FIELD,o=r(2).getHandleStorageKey;e.exports=function(e,t,r){var s=t.find((function(t){return t.kind===a&&t.name===e.name&&t.alias===e.alias&&n(t.args,e.args)}));s&&s.kind===a||i(!1,"cloneRelayScalarHandleSourceField: Expected a corresponding source field for handle `%s`.",e.handle);var l=o(e,r);return{kind:"ScalarField",alias:s.alias,name:l,storageKey:l,args:null}}},function(e,t,r){"use strict";var n=r(1)(r(5)),i=r(20),a=Object.freeze({__UNPUBLISH_RECORD_SENTINEL:!0}),o=function(){function e(e){this._base=e,this._sink=i.create()}var t=e.prototype;return t.has=function(e){return this._sink.has(e)?this._sink.get(e)!==a:this._base.has(e)},t.get=function(e){if(this._sink.has(e)){var t=this._sink.get(e);return t===a?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=i.create(),this._sink.clear()},t.delete=function(e){this._sink.delete(e)},t.remove=function(e){this._sink.set(e,a)},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]=n})),t},e}();e.exports={create:function(e){return new o(e)}}},function(e,t,r){"use strict";var n=r(1)(r(4)),i=r(8),a=r(6),o=r(9),s=r(21),l=r(2),u=r(49),c=r(30),d=r(0),f=r(12).getLocalVariables,h=r(25).generateTypeID,p=i.ACTOR_CHANGE,_=i.CONDITION,v=i.CLIENT_COMPONENT,g=i.CLIENT_EXTENSION,m=i.DEFER,y=i.FLIGHT_FIELD,b=i.FRAGMENT_SPREAD,E=i.INLINE_FRAGMENT,R=i.LINKED_FIELD,I=i.MODULE_IMPORT,D=i.LINKED_HANDLE,S=i.SCALAR_FIELD,k=i.SCALAR_HANDLE,A=i.STREAM,O=i.TYPE_DISCRIMINATOR,F=l.ROOT_ID,T=l.getStorageKey,N=l.getModuleOperationKey;var x=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,"RelayReferenceMarker(): Undefined variable `%s`.",e),this._variables[e]},t._traverseSelections=function(e,t){var r=this;e.forEach((function(n){switch(n.kind){case p:r._traverseLink(n.linkedField,t);break;case R:n.plural?r._traversePluralLink(n,t):r._traverseLink(n,t);break;case _:Boolean(r._getVariableValue(n.condition))===n.passingValue&&r._traverseSelections(n.selections,t);break;case E:if(null==n.abstractKey){var i=o.getType(t);null!=i&&i===n.type&&r._traverseSelections(n.selections,t)}else{var s=o.getType(t),l=h(s);r._references.add(l),r._traverseSelections(n.selections,t)}break;case b:var c=r._variables;r._variables=f(r._variables,n.fragment.argumentDefinitions,n.args),r._traverseSelections(n.fragment.selections,t),r._variables=c;break;case D:var F=u(n,e,r._variables);F.plural?r._traversePluralLink(F,t):r._traverseLink(F,t);break;case m:case A:r._traverseSelections(n.selections,t);break;case S:case k:break;case O:var T=o.getType(t),N=h(T);r._references.add(N);break;case I:r._traverseModuleImport(n,t);break;case g:r._traverseSelections(n.selections,t);break;case y:if(!a.ENABLE_REACT_FLIGHT_COMPONENT_FIELD)throw new Error("Flight fields are not yet supported.");r._traverseFlightField(n,t);break;case v:if(!1===r._shouldProcessClientComponents)break;r._traverseSelections(n.fragment.selections,t);break;default:d(!1,"RelayReferenceMarker: Unknown AST node `%s`.",n)}}))},t._traverseModuleImport=function(e,t){var r,n=this._operationLoader;null===n&&d(!1,"RelayReferenceMarker: Expected an operationLoader to be configured when using `@module`. Could not load fragment `%s` in operation `%s`.",e.fragmentName,null!==(r=this._operationName)&&void 0!==r?r:"(unknown)");var i=N(e.documentName),a=o.getValue(t,i);if(null!=a){var s=n.get(a);if(null!=s){var l=c(s),u=this._variables;this._variables=f(this._variables,l.argumentDefinitions,e.args),this._traverseSelections(l.selections,t),this._variables=u}}},t._traverseLink=function(e,t){var r=T(e,this._variables),n=o.getLinkedRecordID(t,r);null!=n&&this._traverse(e,n)},t._traversePluralLink=function(e,t){var r=this,n=T(e,this._variables),i=o.getLinkedRecordIDs(t,n);null!=i&&i.forEach((function(t){null!=t&&r._traverse(e,t)}))},t._traverseFlightField=function(e,t){var r=T(e,this._variables),i=o.getLinkedRecordID(t,r);if(null!=i){this._references.add(i);var a=this._recordSource.get(i);if(null!=a){var l=o.getValue(a,s.REACT_FLIGHT_EXECUTABLE_DEFINITIONS_STORAGE_KEY);if(Array.isArray(l)){var u=this._operationLoader;null===u&&d(!1,"DataChecker: Expected an operationLoader to be configured when using React Flight");var f,h=this._variables,p=(0,n.default)(l);try{for(p.s();!(f=p.n()).done;){var _=f.value;this._variables=_.variables;var v=_.module,g=u.get(v);if(null!=g){var m=c(g);this._traverse(m,F)}}}catch(e){p.e(e)}finally{p.f()}this._variables=h}}}},e}();e.exports={mark:function(e,t,r,n,i){var a=t.dataID,o=t.node,s=t.variables;new x(e,s,r,n,i).mark(o,a)}}},function(e,t,r){"use strict";var n=r(6),i=r(31),a=r(18),o=r(75),s=r(26),l=function(){function e(e,t){this._subscriptions=new Set,this.__log=e,this._resolverCache=t}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 n=r.snapshot,a=i.read(e,n.selector,t._resolverCache),o=s(n.data,a.data);a.data=o,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,seenRecords:t.seenRecords,selector:t.selector,missingRequiredFields:t.missingRequiredFields}):e.stale=!0}))},t.updateSubscriptions=function(e,t,r,n){var i=this,a=0!==t.size;this._subscriptions.forEach((function(o){var s=i._updateSubscription(e,o,t,a,n);null!=s&&r.push(s)}))},t._updateSubscription=function(e,t,r,l,u){var c=t.backup,d=t.callback,f=t.snapshot,h=t.stale,p=l&&o(f.seenRecords,r);if(h||p){var _=p||!c?i.read(e,f.selector,this._resolverCache):c;return _={data:s(f.data,_.data),isMissingData:_.isMissingData,seenRecords:_.seenRecords,selector:_.selector,missingRequiredFields:_.missingRequiredFields},a(_),t.snapshot=_,t.stale=!1,_.data!==f.data?(this.__log&&n.ENABLE_NOTIFY_SUBSCRIPTION&&this.__log({name:"store.notify.subscription",sourceOperation:u,snapshot:f,nextSnapshot:_}),d(_),f.selector.owner):void 0}},e}();e.exports=l},function(e,t,r){"use strict";var n=Symbol.iterator;e.exports=function(e,t){for(var r=e[n](),i=r.next();!i.done;){var a=i.value;if(t.has(a))return!0;i=r.next()}return!1}},function(e,t,r){"use strict";var n=Promise.resolve();function i(e){setTimeout((function(){throw e}),0)}e.exports=function(e){n.then(e).catch(i)}},function(e,t,r){"use strict";var n=r(0),i=r(78).convertFetch;e.exports={create:function(e,t){var r=i(e);return{execute:function(e,i,a,o,s){if("subscription"===e.operationKind)return t||n(!1,"RelayNetwork: This network layer does not support Subscriptions. To use Subscriptions, provide a custom network layer."),o&&n(!1,"RelayNetwork: Cannot provide uploadables while subscribing."),t(e,i,a);var l=a.poll;return null!=l?(o&&n(!1,"RelayNetwork: Cannot provide uploadables while polling."),r(e,i,{force:!0}).poll(l)):r(e,i,a,o,s)}}}}},function(e,t,r){"use strict";var n=r(13);e.exports={convertFetch:function(e){return function(t,r,i,a,o){var s=e(t,r,i,a,o);return s instanceof Error?n.create((function(e){return e.error(s)})):n.from(s)}}}},function(e,t,r){"use strict";var n={},i={stop:function(){}},a={profile:function(e,t){var r=n[e];if(r&&r.length>0){for(var a=[],o=r.length-1;o>=0;o--){var s=r[o](e,t);a.unshift(s)}return{stop:function(e){a.forEach((function(t){return t(e)}))}}}return i},attachProfileHandler:function(e,t){n.hasOwnProperty(e)||(n[e]=[]),n[e].push(t)},detachProfileHandler:function(e,t){var r,i,a;n.hasOwnProperty(e)&&(r=n[e],i=t,-1!==(a=r.indexOf(i))&&r.splice(a,1))}};e.exports=a},function(e,t,r){"use strict";var n=r(1)(r(5)),i=r(0),a=r(15),o=function(){function e(e){var t=e.size,r=e.ttl;t>0||i(!1,"RelayQueryResponseCache: Expected the max cache size to be > 0, got `%s`.",t),r>0||i(!1,"RelayQueryResponseCache: Expected the max ttl to be > 0, got `%s`.",r),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=s(e,t);this._responses.forEach((function(e,t){var n,i;n=e.fetchTime,i=r._ttl,n+i>=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=s(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 s(e,t){return JSON.stringify(a({queryID:e,variables:t}))}e.exports=o},function(e,t,r){"use strict";var n=r(23),i=r(0),a=r(32),o=r(10).getRequest,s=r(14).createOperationDescriptor;e.exports=function(e,t){a(e)||i(!1,"commitMutation: expected `environment` to be an instance of `RelayModernEnvironment`.");var r=o(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,f=s(r,d);return u&&(l=n.convert(u,r,l).optimisticUpdater),e.applyMutation({operation:f,response:c,updater:l})}},function(e,t,r){"use strict";e.exports=function(e,t){e.commitUpdate(t)}},function(e,t,r){"use strict";var n=r(1)(r(19)),i=r(23),a=r(0),o=r(32),s=r(84),l=r(3),u=r(10).getRequest,c=r(7).generateUniqueClientID,d=r(14).createOperationDescriptor;e.exports=function(e,t){o(e)||a(!1,"commitMutation: expected `environment` to be an instance of `RelayModernEnvironment`.");var r=u(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 f=t.optimisticResponse,h=t.optimisticUpdater,p=t.updater,_=t.configs,v=t.cacheConfig,g=t.onError,m=t.onUnsubscribe,y=t.variables,b=t.uploadables,E=d(r,y,v,c());if("function"==typeof f&&(f=f(),l(!1,"commitMutation: Expected `optimisticResponse` to be an object, received a function.")),f instanceof Object&&s(f,r,y),_){var R=i.convert(_,r,h,p);h=R.optimisticUpdater,p=R.updater}var I=[];return{dispose:e.executeMutation({operation:E,optimisticResponse:f,optimisticUpdater:h,updater:p,uploadables:b}).subscribe({next:function(e){Array.isArray(e)?e.forEach((function(e){e.errors&&I.push.apply(I,(0,n.default)(e.errors))})):e.errors&&I.push.apply(I,(0,n.default)(e.errors))},complete:function(){var r=t.onCompleted;r&&r(e.lookup(E.fragment).data,0!==I.length?I:null)},error:g,unsubscribe:m}).unsubscribe}}},function(e,t,r){"use strict";var n=r(1)(r(5)),i=r(3),a=Object.prototype.hasOwnProperty,o=r(8),s=o.ACTOR_CHANGE,l=o.CONDITION,u=o.CLIENT_COMPONENT,c=o.CLIENT_EXTENSION,d=o.DEFER,f=o.FLIGHT_FIELD,h=o.FRAGMENT_SPREAD,p=o.INLINE_FRAGMENT,_=o.LINKED_FIELD,v=o.LINKED_HANDLE,g=o.MODULE_IMPORT,m=o.SCALAR_FIELD,y=o.SCALAR_HANDLE,b=o.STREAM,E=o.TYPE_DISCRIMINATOR,R=function(){},I=function(e,t,r){var n=t;e.split(".").forEach((function(e,t,i){null==n[e]&&(n[e]={}),r&&t===i.length-1&&(n[e]="<scalar>"),n=n[e]}))};R=function(e,t,r){var n=t.operation.name,a={path:"ROOT",visitedPaths:new Set,variables:r||{},missingDiff:{},extraDiff:{},moduleImportPaths:new Set};D(e,t.operation.selections,a),O(e,a),i(null==a.missingDiff.ROOT,"Expected `optimisticResponse` to match structure of server response for mutation `%s`, please define fields for all of\n%s",n,JSON.stringify(a.missingDiff.ROOT,null,2)),i(null==a.extraDiff.ROOT,"Expected `optimisticResponse` to match structure of server response for mutation `%s`, please remove all fields of\n%s",n,JSON.stringify(a.extraDiff.ROOT,null,2))};var D=function(e,t,r){t.forEach((function(t){return S(e,t,r)}))},S=function e(t,r,n){switch(r.kind){case l:return void D(t,r.selections,n);case u:case h:return void D(t,r.fragment.selections,n);case m:case _:case f:return A(t,r,n);case s:return A(t,r.linkedField,n);case p:var i=r.type,a=null==r.abstractKey;return void r.selections.forEach((function(r){a&&t.__typename!==i||e(t,r,n)}));case c:return void r.selections.forEach((function(r){e(t,r,n)}));case g:return k(n);case v:case y:case d:case b:case E:default:return}},k=function(e){e.moduleImportPaths.add(e.path)},A=function(e,t,r){var i=t.alias||t.name,o="".concat(r.path,".").concat(i);switch(r.visitedPaths.add(o),t.kind){case m:return void(!1===a.call(e,i)&&I(o,r.missingDiff,!0));case _:var s=t.selections;if(null===e[i]||a.call(e,i)&&void 0===e[i])return;return t.plural?Array.isArray(e[i])?void e[i].forEach((function(e){null!==e&&D(e,s,(0,n.default)((0,n.default)({},r),{},{path:o}))})):void I(o,r.missingDiff):e[i]instanceof Object?void D(e[i],s,(0,n.default)((0,n.default)({},r),{},{path:o})):void I(o,r.missingDiff);case f:if(null===e[i]||a.call(e,i)&&void 0===e[i])return;throw new Error("validateMutation: Flight fields are not compatible with optimistic updates, as React does not have the component code necessary to process new data on the client. Instead, you should update your code to require a full refetch of the Flight field so your UI can be updated.")}},O=function e(t,r){Array.isArray(t)?t.forEach((function(t){t instanceof Object&&e(t,r)})):Object.keys(t).forEach((function(i){var a=t[i],o="".concat(r.path,".").concat(i);r.moduleImportPaths.has(o)||(r.visitedPaths.has(o)?a instanceof Object&&e(a,(0,n.default)((0,n.default)({},r),{},{path:o})):I(o,r.extraDiff))}))};e.exports=R},function(e,t,r){"use strict";var n=r(86),i=r(3);e.exports=function(e,t,r,a,o,s){return Object.keys(r).forEach((function(e){var r=a[e];i(void 0!==r,"createFragmentSpecResolver: Expected prop `%s` to be supplied to `%s`, but got `undefined`. Pass an explicit `null` if this is intentional.",e,t)})),new n(e,r,a,s,o)}},function(e,t,r){"use strict";var n=r(1),i=n(r(5)),a=n(r(16)),o=r(6),s=r(17),l=r(51),u=r(0),c=r(52),d=r(26),f=r(34),h=r(3),p=r(14).createRequestDescriptor,_=r(11),v=_.areEqualSelectors,g=_.createReaderSelector,m=_.getSelectorsFromObject,y=function(){function e(e,t,r,n,i){var o=this;(0,a.default)(this,"_onChange",(function(){o._stale=!0,"function"==typeof o._callback&&o._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)&&R(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 o=n.resolve();(e||o!==a)&&((e=e||(0,i.default)({},t))[r]=o)}else{var s=this._props[r],l=void 0!==s?s:null;!e&&c(l,a)||((e=e||(0,i.default)({},t))[r]=l)}}this._data=e||t,this._stale=!1}return this._data},t.setCallback=function(e,t){this._callback=t,!0===o.ENABLE_CONTAINERS_SUBSCRIBE_ON_COMMIT&&this.setProps(e)},t.setProps=function(e){this._props={};var t=m(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 E(this._context.environment,this._rootIsQueryRenderer,n,null!=this._callback,this._onChange):(i instanceof E||u(!1,"RelayModernFragmentSpecResolver: Expected prop `%s` to always be an array.",r),i.setSelector(n)):null==i?i=new b(this._context.environment,this._rootIsQueryRenderer,n,null!=this._callback,this._onChange):(i instanceof b||u(!1,"RelayModernFragmentSpecResolver: Expected prop `%s` to always be an object.",r),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}(),b=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._missingRequiredFields=e.missingRequiredFields,s._callback()}));var l=e.lookup(r);this._callback=i,this._data=l.data,this._isMissingData=l.isMissingData,this._missingRequiredFields=l.missingRequiredFields,this._environment=e,this._rootIsQueryRenderer=t,this._selector=r,!0===o.ENABLE_CONTAINERS_SUBSCRIBE_ON_COMMIT?n&&(this._subscription=e.subscribe(l,this._onChange)):this._subscription=e.subscribe(l,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=l(this._environment,this._selector.node,this._selector.owner),t=null==e?void 0:e.promise;if(null!=t){if(!this._rootIsQueryRenderer){var r,n=null!==(r=null==e?void 0:e.pendingOperations)&&void 0!==r?r:[];throw h(!1,"Relay: Relay Container for fragment `%s` suspended. When using features such as @defer or @module, use `useFragment` instead of a Relay Container.",this._selector.node.name),this._environment.__log({name:"suspense.fragment",data:this._data,fragment:this._selector.node,isRelayHooks:!1,isMissingData:this._isMissingData,isPromiseCached:!1,pendingOperations:n}),t}h(!1,"Relay: Relay Container for fragment `%s` has missing data and would suspend. When using features such as @defer or @module, use `useFragment` instead of a Relay Container.",this._selector.node.name)}}return null!=this._missingRequiredFields&&f(this._environment,this._missingRequiredFields),this._data},t.setSelector=function(e){if(null==this._subscription||!v(e,this._selector)){this.dispose();var t=this._environment.lookup(e);this._data=d(this._data,t.data),this._isMissingData=t.isMissingData,this._missingRequiredFields=t.missingRequiredFields,this._selector=e,this._subscription=this._environment.subscribe(t,this._onChange)}},t.setVariables=function(e,t){if(!s(e,this._selector.variables)){var r=p(t,e),n=g(this._selector.node,this._selector.dataID,e,r);this.setSelector(n)}},e}(),E=function(){function e(e,t,r,n,i){var o=this;(0,a.default)(this,"_onChange",(function(e){o._stale=!0,o._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(R)},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 b(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 R(e){e&&e.dispose()}e.exports=y},function(e,t,r){"use strict";var n=r(1)(r(5)),i=r(2),a=i.getModuleComponentKey,o=i.getModuleOperationKey;e.exports=function(e,t,r,i){var s=(0,n.default)({},i);return s[a(e)]=r,s[o(e)]=t,s}},function(e,t,r){"use strict";var n,i,a=r(0);e.exports=function(e){return n||((n=e.createContext(null)).displayName="RelayContext",i=e),e!==i&&a(!1,"[createRelayContext]: You are passing a different instance of React",e.version),n}},function(e,t,r){"use strict";var n=r(1)(r(5)),i=r(13),a=r(33),o=r(0),s=r(34),l=r(14).createOperationDescriptor,u=r(10).getRequest;function c(e,t){return a.fetchQuery(e,t).map((function(){return e.lookup(t.fragment)}))}e.exports=function(e,t,r,a){var d,f=u(t);"query"!==f.params.operationKind&&o(!1,"fetchQuery: Expected query operation");var h=(0,n.default)({force:!0},null==a?void 0:a.networkCacheConfig),p=l(f,r,h),_=null!==(d=null==a?void 0:a.fetchPolicy)&&void 0!==d?d:"network-only";function v(t){return null!=t.missingRequiredFields&&s(e,t.missingRequiredFields),t.data}switch(_){case"network-only":return c(e,p).map(v);case"store-or-network":return"available"===e.check(p).status?i.from(e.lookup(p.fragment)).map(v):c(e,p).map(v);default:throw new Error("fetchQuery: Invalid fetchPolicy "+_)}}},function(e,t,r){"use strict";var n=r(14).createOperationDescriptor,i=r(10).getRequest;e.exports=function(e,t,r,a){var o=i(t);if("query"!==o.params.operationKind)throw new Error("fetchQuery: Expected query operation");var s=n(o,r,a);return e.execute({operation:s}).map((function(){return e.lookup(s.fragment).data})).toPromise()}},function(e,t,r){"use strict";var n=r(6),i=r(92),a=r(15),o=r(11),s=o.getDataIDsFromFragment,l=o.getVariablesFromFragment,u=o.getSelector;e.exports=function(e,t){var r,o=u(e,t),c=null==o?"null":"SingularReaderSelector"===o.kind?o.owner.identifier:"["+o.selectors.map((function(e){return e.owner.identifier})).join(",")+"]",d=l(e,t),f=s(e,t);return n.ENABLE_GETFRAGMENTIDENTIFIER_OPTIMIZATION?c+"/"+e.name+"/"+(null==d||i(d)?"{}":JSON.stringify(a(d)))+"/"+(void 0===f?"missing":null==f?"null":Array.isArray(f)?"["+f.join(",")+"]":f):c+"/"+e.name+"/"+JSON.stringify(a(d))+"/"+(null!==(r=JSON.stringify(f))&&void 0!==r?r:"missing")}},function(e,t,r){"use strict";var n=Object.prototype.hasOwnProperty;e.exports=function(e){for(var t in e)if(n.call(e,t))return!1;return!0}},function(e,t,r){"use strict";var n=r(53),i=r(0);e.exports=function(e,t){var r,a,o=n(e,t),s=o.refetchableRequest,l=o.refetchMetadata,u=l.connection;null==u&&i(!1,"Relay: getPaginationMetadata(): Expected fragment `%s` to include a connection when using `%s`. Did you forget to add a @connection directive to the connection field in the fragment?",t,e.name);var c=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,"Relay: getPaginationMetadata(): Expected fragment `%s` to include a connection when using `%s`. Did you forget to add a @connection directive to the connection field in the fragment?",t,e.name);var f=l.identifierField;return null!=f&&"string"!=typeof f&&i(!1,"Relay: getRefetchMetadata(): Expected `identifierField` to be a string."),{connectionPathInFragmentData:c,identifierField:f,paginationRequest:s,paginationMetadata:u,stream:!0===d.stream}}},function(e,t,r){"use strict";var n=r(1),i=n(r(16)),a=n(r(5)),o=r(0),s=r(3);e.exports=function(e,t,r,n,l,u){var c,d=u.backward,f=u.forward;if("backward"===e){var h;(null==d||null==d.count||null==d.cursor)&&o(!1,"Relay: Expected backward pagination metadata to be available. If you're seeing this, this is likely a bug in Relay."),s(!l.hasOwnProperty(d.cursor),"Relay: `UNSTABLE_extraVariables` provided by caller should not contain cursor variable `%s`. This variable is automatically determined by Relay.",d.cursor),s(!l.hasOwnProperty(d.count),"Relay: `UNSTABLE_extraVariables` provided by caller should not contain count variable `%s`. This variable is automatically determined by Relay.",d.count);var p=(0,a.default)((0,a.default)((0,a.default)({},n),l),{},(h={},(0,i.default)(h,d.cursor,r),(0,i.default)(h,d.count,t),h));return f&&f.cursor&&(p[f.cursor]=null),f&&f.count&&(p[f.count]=null),p}(null==f||null==f.count||null==f.cursor)&&o(!1,"Relay: Expected forward pagination metadata to be available. If you're seeing this, this is likely a bug in Relay."),s(!l.hasOwnProperty(f.cursor),"Relay: `UNSTABLE_extraVariables` provided by caller should not contain cursor variable `%s`. This variable is automatically determined by Relay.",f.cursor),s(!l.hasOwnProperty(f.count),"Relay: `UNSTABLE_extraVariables` provided by caller should not contain count variable `%s`. This variable is automatically determined by Relay.",f.count);var _=(0,a.default)((0,a.default)((0,a.default)({},n),l),{},(c={},(0,i.default)(c,f.cursor,r),(0,i.default)(c,f.count,t),c));return d&&d.cursor&&(_[d.cursor]=null),d&&d.count&&(_[d.count]=null),_}},function(e,t,r){"use strict";var n=r(1)(r(4)),i=r(0);e.exports=function(e,t){var r,a=e,o=(0,n.default)(t);try{for(o.s();!(r=o.n()).done;){var s=r.value;if(null==a)return null;"number"==typeof s?(Array.isArray(a)||i(!1,"Relay: Expected an array when extracting value at path. If you're seeing this, this is likely a bug in Relay."),a=a[s]):(("object"!=typeof a||Array.isArray(a))&&i(!1,"Relay: Expected an object when extracting value at path. If you're seeing this, this is likely a bug in Relay."),a=a[s])}}catch(e){o.e(e)}finally{o.f()}return a}},function(e,t,r){"use strict";var n=r(0),i=r(10).getInlineDataFragment,a=r(2).FRAGMENTS_KEY;e.exports=function(e,t){var r,o=i(e);if(null==t)return t;"object"!=typeof t&&n(!1,"readInlineData(): Expected an object, got `%s`.",typeof t);var s=null===(r=t[a])||void 0===r?void 0:r[o.name];return null==s&&n(!1,"readInlineData(): Expected fragment `%s` to be spread in the parent fragment.",o.name),s}},function(e,t,r){"use strict";var n=r(23),i=(r(6),r(3)),a=r(10).getRequest,o=r(14).createOperationDescriptor,s=r(11).createReaderSelector;e.exports=function(e,t){var r=a(t.subscription);if("subscription"!==r.params.operationKind)throw new Error("requestSubscription: Must use Subscription operation");var l=t.configs,u=t.onCompleted,c=t.onError,d=t.onNext,f=t.variables,h=t.cacheConfig,p=o(r,f,h);i(!(t.updater&&l),"requestSubscription: Expected only one of `updater` and `configs` to be provided");var _=(l?n.convert(l,r,null,t.updater):t).updater;return{dispose:e.execute({operation:p,updater:_}).subscribe({next:function(t){if(null!=d){var r,n,i,a,o=p.fragment;if(Array.isArray(t))r=null===(n=t[0])||void 0===n||null===(i=n.extensions)||void 0===i?void 0:i.__relay_subscription_root_id;else r=null===(a=t.extensions)||void 0===a?void 0:a.__relay_subscription_root_id;"string"==typeof r&&(o=s(o.node,r,o.variables,o.owner));var l=e.lookup(o).data;d(l)}},error:c,complete:u}).unsubscribe}}}])}));