relay-runtime 10.1.3 → 11.0.2
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.
- package/handlers/connection/ConnectionHandler.js.flow +60 -0
- package/handlers/connection/MutationHandlers.js.flow +28 -0
- package/index.js +1 -1
- package/index.js.flow +9 -3
- package/lib/handlers/RelayDefaultHandlerProvider.js +1 -1
- package/lib/handlers/connection/ConnectionHandler.js +68 -6
- package/lib/handlers/connection/MutationHandlers.js +67 -8
- package/lib/index.js +3 -0
- package/lib/multi-actor-environment/ActorIdentifier.js +23 -0
- package/lib/multi-actor-environment/ActorSpecificEnvironment.js +108 -0
- package/lib/multi-actor-environment/MultiActorEnvironment.js +156 -0
- package/lib/multi-actor-environment/MultiActorEnvironmentTypes.js +11 -0
- package/lib/multi-actor-environment/index.js +17 -0
- package/lib/mutations/RelayRecordProxy.js +1 -1
- package/lib/mutations/RelayRecordSourceMutator.js +1 -1
- package/lib/mutations/RelayRecordSourceProxy.js +1 -1
- package/lib/mutations/RelayRecordSourceSelectorProxy.js +1 -1
- package/lib/mutations/applyOptimisticMutation.js +1 -1
- package/lib/mutations/commitMutation.js +1 -1
- package/lib/mutations/validateMutation.js +36 -15
- package/lib/network/RelayNetwork.js +1 -1
- package/lib/network/RelayQueryResponseCache.js +3 -2
- package/lib/query/GraphQLTag.js +1 -1
- package/lib/query/fetchQuery.js +129 -13
- package/lib/query/fetchQueryInternal.js +3 -4
- package/lib/query/fetchQuery_DEPRECATED.js +39 -0
- package/lib/store/DataChecker.js +26 -14
- package/lib/store/{RelayModernQueryExecutor.js → OperationExecutor.js} +117 -47
- package/lib/store/RelayConcreteVariables.js +8 -4
- package/lib/store/RelayModernEnvironment.js +105 -136
- package/lib/store/RelayModernFragmentSpecResolver.js +16 -9
- package/lib/store/RelayModernRecord.js +1 -1
- package/lib/store/RelayModernSelector.js +1 -1
- package/lib/store/RelayModernStore.js +19 -20
- package/lib/store/RelayOperationTracker.js +55 -49
- package/lib/store/RelayPublishQueue.js +9 -5
- package/lib/store/RelayReader.js +68 -14
- package/lib/store/RelayReferenceMarker.js +28 -14
- package/lib/store/RelayResponseNormalizer.js +109 -15
- package/lib/store/RelayStoreReactFlightUtils.js +6 -4
- package/lib/store/RelayStoreSubscriptions.js +18 -8
- package/lib/store/RelayStoreSubscriptionsUsingMapByID.js +90 -30
- package/lib/store/RelayStoreUtils.js +3 -2
- package/lib/store/ResolverFragments.js +57 -0
- package/lib/store/cloneRelayHandleSourceField.js +1 -1
- package/lib/store/cloneRelayScalarHandleSourceField.js +1 -1
- package/lib/store/createFragmentSpecResolver.js +2 -2
- package/lib/store/createRelayContext.js +1 -1
- package/lib/store/defaultGetDataID.js +3 -1
- package/lib/store/hasOverlappingIDs.js +11 -3
- package/lib/store/readInlineData.js +1 -1
- package/lib/subscription/requestSubscription.js +33 -5
- package/lib/util/RelayConcreteNode.js +2 -0
- package/lib/util/RelayFeatureFlags.js +8 -3
- package/lib/util/RelayProfiler.js +17 -187
- package/lib/util/RelayReplaySubject.js +1 -1
- package/lib/util/deepFreeze.js +1 -0
- package/lib/util/getRelayHandleKey.js +1 -1
- package/lib/util/getRequestIdentifier.js +1 -1
- package/multi-actor-environment/ActorIdentifier.js.flow +27 -0
- package/multi-actor-environment/ActorSpecificEnvironment.js.flow +189 -0
- package/multi-actor-environment/MultiActorEnvironment.js.flow +233 -0
- package/multi-actor-environment/MultiActorEnvironmentTypes.js.flow +196 -0
- package/multi-actor-environment/index.js.flow +24 -0
- package/mutations/RelayRecordSourceProxy.js.flow +3 -2
- package/mutations/commitMutation.js.flow +1 -1
- package/mutations/validateMutation.js.flow +40 -15
- package/network/RelayNetworkTypes.js.flow +31 -11
- package/network/RelayQueryResponseCache.js.flow +2 -1
- package/package.json +3 -2
- package/query/fetchQuery.js.flow +147 -20
- package/query/fetchQueryInternal.js.flow +2 -3
- package/query/fetchQuery_DEPRECATED.js.flow +47 -0
- package/relay-runtime.js +2 -2
- package/relay-runtime.min.js +2 -2
- package/store/DataChecker.js.flow +23 -15
- package/store/{RelayModernQueryExecutor.js.flow → OperationExecutor.js.flow} +128 -40
- package/store/RelayConcreteVariables.js.flow +5 -0
- package/store/RelayModernEnvironment.js.flow +100 -130
- package/store/RelayModernFragmentSpecResolver.js.flow +30 -8
- package/store/RelayModernStore.js.flow +28 -24
- package/store/RelayOperationTracker.js.flow +69 -56
- package/store/RelayPublishQueue.js.flow +7 -4
- package/store/RelayReader.js.flow +63 -11
- package/store/RelayRecordSource.js.flow +3 -3
- package/store/RelayRecordSourceMapImpl.js.flow +6 -2
- package/store/RelayReferenceMarker.js.flow +28 -18
- package/store/RelayResponseNormalizer.js.flow +134 -23
- package/store/RelayStoreReactFlightUtils.js.flow +9 -4
- package/store/RelayStoreSubscriptions.js.flow +22 -7
- package/store/RelayStoreSubscriptionsUsingMapByID.js.flow +36 -12
- package/store/RelayStoreTypes.js.flow +51 -22
- package/store/RelayStoreUtils.js.flow +2 -1
- package/store/ResolverFragments.js.flow +125 -0
- package/store/createFragmentSpecResolver.js.flow +2 -0
- package/store/defaultGetDataID.js.flow +3 -1
- package/store/hasOverlappingIDs.js.flow +11 -9
- package/subscription/requestSubscription.js.flow +25 -2
- package/util/NormalizationNode.js.flow +13 -0
- package/util/ReaderNode.js.flow +14 -1
- package/util/RelayConcreteNode.js.flow +2 -0
- package/util/RelayFeatureFlags.js.flow +12 -2
- package/util/RelayProfiler.js.flow +22 -194
- package/util/RelayRuntimeTypes.js.flow +4 -5
- package/util/deepFreeze.js.flow +2 -1
- package/util/isEmptyObject.js.flow +1 -1
package/relay-runtime.min.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Relay
|
|
2
|
+
* Relay v11.0.2
|
|
3
3
|
*
|
|
4
4
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
5
5
|
*
|
|
6
6
|
* This source code is licensed under the MIT license found in the
|
|
7
7
|
* LICENSE file in the root directory of this source tree.
|
|
8
8
|
*/
|
|
9
|
-
!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/createForOfIteratorHelper"),require("@babel/runtime/helpers/objectSpread2"),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/createForOfIteratorHelper","@babel/runtime/helpers/objectSpread2","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/createForOfIteratorHelper"),require("@babel/runtime/helpers/objectSpread2"),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/createForOfIteratorHelper"],e["@babel/runtime/helpers/objectSpread2"],e["fbjs/lib/areEqual"],e["@babel/runtime/helpers/toConsumableArray"],e["@babel/runtime/helpers/defineProperty"],e["fbjs/lib/ErrorUtils"])}(window,(function(e,t,r,i,n,s,a,o,l){return function(e){var t={};function r(i){if(t[i])return t[i].exports;var n=t[i]={i:i,l:!1,exports:{}};return e[i].call(n.exports,n,n.exports,r),n.l=!0,n.exports}return r.m=e,r.c=t,r.d=function(e,t,i){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},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 i=Object.create(null);if(r.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var n in e)r.d(i,n,function(t){return e[t]}.bind(null,n));return i},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=50)}([function(t,r){t.exports=e},function(e,r){e.exports=t},function(e,t,r){"use strict";var i=r(1)(r(21)),n=r(4),s=r(25),a=r(0),o=r(13),l=n.VARIABLE,u=n.LITERAL,c=n.OBJECT_VALUE,d=n.LIST_VALUE;function h(e,t){if(e.kind===l)return function(e,t){return t.hasOwnProperty(e)||a(!1),o(t[e])}(e.variableName,t);if(e.kind===u)return e.value;if(e.kind===c){var r={};return e.fields.forEach((function(e){r[e.name]=h(e,t)})),r}if(e.kind===d){var i=[];return e.items.forEach((function(e){null!=e&&i.push(h(e,t))})),i}}function f(e,t){var r={};return e.forEach((function(e){r[e.name]=h(e,t)})),r}function p(e,t){if(!t)return e;var r=[];for(var i in t)if(t.hasOwnProperty(i)){var n,s=t[i];if(null!=s)r.push(i+":"+(null!==(n=JSON.stringify(s))&&void 0!==n?n:"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:h,getArgumentValues:f,getHandleStorageKey:function(e,t){var r=e.dynamicKey,n=e.handle,a=e.key,o=e.name,l=e.args,u=e.filters,c=s(n,a,o),d=null;return l&&u&&0!==l.length&&0!==u.length&&(d=l.filter((function(e){return u.indexOf(e.name)>-1}))),r&&(d=null!=d?[r].concat((0,i.default)(d)):[r]),null===d?c:p(c,f(d,t))},getStorageKey:function(e,t){if(e.storageKey)return e.storageKey;var r=e.args,i=e.name;return r&&0!==r.length?p(i,f(r,t)):i},getStableStorageKey:function(e,t){return p(e,o(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,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,r){"use strict";var i=r(1)(r(8)),n=r(11),s=r(12),a=r(0),o=(r(3),r(6).isClientID,r(2)),l=o.ID_KEY,u=o.REF_KEY,c=o.REFS_KEY,d=o.TYPENAME_KEY,h=o.INVALIDATED_AT_KEY;o.ROOT_ID;e.exports={clone:function(e){return(0,i.default)({},e)},copyFields:function(e,t){for(var r in e)e.hasOwnProperty(r)&&r!==l&&r!==d&&(t[r]=e[r])},create:function(e,t){var r={};return r[l]=e,r[d]=t,r},freeze:function(e){s(e)},getDataID:function(e){return e[l]},getInvalidationEpoch:function(e){if(null==e)return null;var t=e[h];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[u]||a(!1),r[u])},getLinkedRecordIDs:function(e,t){var r=e[t];return null==r?r:("object"==typeof r&&Array.isArray(r[c])||a(!1),r[c])},getType:function(e){return e[d]},getValue:function(e,t){var r=e[t];return r&&"object"==typeof r&&(r.hasOwnProperty(u)||r.hasOwnProperty(c))&&a(!1),r},merge:function(e,t){return Object.assign({},e,t)},setValue:function(e,t,r){e[t]=r},setLinkedRecordID:function(e,t,r){var i={};i[u]=r,e[t]=i},setLinkedRecordIDs:function(e,t,r){var i={};i[c]=r,e[t]=i},update:function(e,t){for(var r=null,s=Object.keys(t),a=0;a<s.length;a++){var o=s[a];!r&&n(e[o],t[o])||((r=null!==r?r:(0,i.default)({},e))[o]=t[o])}return null!==r?r:e}}},function(e,t,r){"use strict";var i=0;e.exports={generateClientID:function(e,t,r){var i=e+":"+t;return null!=r&&(i+=":"+r),0!==i.indexOf("client:")&&(i="client:"+i),i},generateUniqueClientID:function(){return"".concat("client:","local:").concat(i++)},isClientID:function(e){return 0===e.indexOf("client:")}}},function(e,t){e.exports=i},function(e,t){e.exports=n},function(e,t,r){"use strict";e.exports={ENABLE_VARIABLE_CONNECTION_KEY:!1,ENABLE_PARTIAL_RENDERING_DEFAULT:!1,ENABLE_RELAY_CONTAINERS_SUSPENSE:!1,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}},function(e,t,r){"use strict";var i=r(4),n=r(0);r(3);function s(e){var t=e;return"function"==typeof t?t=t():t.default&&(t=t.default),t}function a(e){var t=s(e);return"object"==typeof t&&null!==t&&t.kind===i.FRAGMENT}function o(e){var t=s(e);return"object"==typeof t&&null!==t&&t.kind===i.REQUEST}function l(e){var t=s(e);return"object"==typeof t&&null!==t&&t.kind===i.INLINE_DATA_FRAGMENT}function u(e){var t=s(e);return a(t)||n(!1),t}e.exports={getFragment:u,getNode:s,getPaginationFragment:function(e){var t,r=u(e),i=null===(t=r.metadata)||void 0===t?void 0:t.refetch,n=null==i?void 0:i.connection;return null===i||"object"!=typeof i||null===n||"object"!=typeof n?null:r},getRefetchableFragment:function(e){var t,r=u(e),i=null===(t=r.metadata)||void 0===t?void 0:t.refetch;return null===i||"object"!=typeof i?null:r},getRequest:function(e){var t=s(e);return o(t)||n(!1),t},getInlineDataFragment:function(e){var t=s(e);return l(t)||n(!1),t},graphql:function(e){n(!1)},isFragment:a,isRequest:o,isInlineDataFragment:l}},function(e,t){e.exports=s},function(e,t,r){"use strict";e.exports=function e(t){return Object.freeze(t),Object.getOwnPropertyNames(t).forEach((function(r){var i=t[r];i&&"object"==typeof i&&!Object.isFrozen(i)&&e(i)})),t}},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(),i={},n=0;n<r.length;n++)i[r[n]]=e(t[r[n]]);return i}},function(e,t,r){"use strict";var i=r(37),n=function(e,t){},s=function(){function e(e){this._source=e}e.create=function(t){return new e(t)},e.onUnhandledError=function(e){n=e},e.from=function(e){return function(e){return"object"==typeof e&&null!==e&&"function"==typeof e.subscribe}(e)?a(e):i(e)?o(e):l(e)};var t=e.prototype;return t.catch=function(t){var r=this;return e.create((function(e){var i;return r.subscribe({start:function(e){i=e},next:e.next,complete:e.complete,error:function(r){try{t(r).subscribe({start:function(e){i=e},next:e.next,complete:e.complete,error:e.error})}catch(t){e.error(t,!0)}}}),function(){return i.unsubscribe()}}))},t.concat=function(t){var r=this;return e.create((function(e){var i;return r.subscribe({start:function(e){i=e},next:e.next,error:e.error,complete:function(){i=t.subscribe(e)}}),function(){i&&i.unsubscribe()}}))},t.do=function(t){var r=this;return e.create((function(e){var i=function(r){return function(){try{t[r]&&t[r].apply(t,arguments)}catch(e){n(e,!0)}e[r]&&e[r].apply(e,arguments)}};return r.subscribe({start:i("start"),next:i("next"),error:i("error"),complete:i("complete"),unsubscribe:i("unsubscribe")})}))},t.finally=function(t){var r=this;return e.create((function(e){var i=r.subscribe(e);return function(){i.unsubscribe(),t()}}))},t.ifEmpty=function(t){var r=this;return e.create((function(e){var i=!1,n=r.subscribe({next:function(t){i=!0,e.next(t)},error:e.error,complete:function(){i?e.complete():n=t.subscribe(e)}});return function(){n.unsubscribe()}}))},t.subscribe=function(e){return function(e,t){var r,i=!1,s=function(e){return Object.defineProperty(e,"closed",{get:function(){return i}})};function a(){if(r){if(r.unsubscribe)r.unsubscribe();else try{r()}catch(e){n(e,!0)}r=void 0}}var o=s({unsubscribe:function(){if(!i){i=!0;try{t.unsubscribe&&t.unsubscribe(o)}catch(e){n(e,!0)}finally{a()}}}});try{t.start&&t.start(o)}catch(e){n(e,!0)}if(i)return o;var l=s({next:function(e){if(!i&&t.next)try{t.next(e)}catch(e){n(e,!0)}},error:function(e,r){if(i||!t.error)i=!0,n(e,r||!1),a();else{i=!0;try{t.error(e)}catch(e){n(e,!0)}finally{a()}}},complete:function(){if(!i){i=!0;try{t.complete&&t.complete()}catch(e){n(e,!0)}finally{a()}}}});try{r=e(l)}catch(e){l.error(e,!0)}0;i&&a();return o}(this._source,e)},t.map=function(t){var r=this;return e.create((function(e){var i=r.subscribe({complete:e.complete,error:e.error,next:function(r){try{var i=t(r);e.next(i)}catch(t){e.error(t,!0)}}});return function(){i.unsubscribe()}}))},t.mergeMap=function(t){var r=this;return e.create((function(i){var n=[];function s(e){this._sub=e,n.push(e)}function a(){n.splice(n.indexOf(this._sub),1),0===n.length&&i.complete()}return r.subscribe({start:s,next:function(r){try{i.closed||e.from(t(r)).subscribe({start:s,next:i.next,error:i.error,complete:a})}catch(e){i.error(e,!0)}},error:i.error,complete:a}),function(){n.forEach((function(e){return e.unsubscribe()})),n.length=0}}))},t.poll=function(t){var r=this;return e.create((function(e){var i,n;return function s(){i=r.subscribe({next:e.next,error:e.error,complete:function(){n=setTimeout(s,t)}})}(),function(){clearTimeout(n),i.unsubscribe()}}))},t.toPromise=function(){var e=this;return new Promise((function(t,r){var i=!1;e.subscribe({next:function(e){i||(i=!0,t(e))},error:r,complete:t})}))},e}();function a(e){return e instanceof s?e:s.create((function(t){return e.subscribe(t)}))}function o(e){return s.create((function(t){e.then((function(e){t.next(e),t.complete()}),t.error)}))}function l(e){return s.create((function(t){t.next(e),t.complete()}))}e.exports=s},function(e,t,r){"use strict";var i=r(11),n=r(0),s=(r(3),r(26).getFragmentVariables),a=r(2),o=a.FRAGMENT_OWNER_KEY,l=a.FRAGMENTS_KEY,u=a.ID_KEY,c=a.IS_WITHIN_UNMATCHED_TYPE_REFINEMENT;function d(e,t){("object"!=typeof t||null===t||Array.isArray(t))&&n(!1);var r=t[u],i=t[l],a=t[o],d=!0===t[c];if("string"==typeof r&&"object"==typeof i&&null!==i&&"object"==typeof i[e.name]&&null!==i[e.name]&&"object"==typeof a&&null!==a){var h=a,f=i[e.name];return b(e,r,s(e,h.variables,f),h,d)}return null}function h(e,t){var r=null;return t.forEach((function(t,i){var n=null!=t?d(e,t):null;null!=n&&(r=r||[]).push(n)})),null==r?null:{kind:"PluralReaderSelector",selectors:r}}function f(e,t){return null==t?t:e.metadata&&!0===e.metadata.plural?(Array.isArray(t)||n(!1),h(e,t)):(Array.isArray(t)&&n(!1),d(e,t))}function p(e,t){return null==t?t:e.metadata&&!0===e.metadata.plural?(Array.isArray(t)||n(!1),function(e,t){var r=null;return t.forEach((function(t){var i=null!=t?_(e,t):null;null!=i&&(r=r||[]).push(i)})),r}(e,t)):(Array.isArray(t)&&n(!1),_(e,t))}function _(e,t){("object"!=typeof t||null===t||Array.isArray(t))&&n(!1);var r=t[u];return"string"==typeof r?r:null}function v(e,t){var r;return null==t?{}:!0===(null===(r=e.metadata)||void 0===r?void 0:r.plural)?(Array.isArray(t)||n(!1),m(e,t)):(Array.isArray(t)&&n(!1),g(e,t)||{})}function g(e,t){var r=d(e,t);return r?r.variables:null}function m(e,t){var r={};return t.forEach((function(t,i){if(null!=t){var n=g(e,t);null!=n&&Object.assign(r,n)}})),r}function b(e,t,r,i){var n=arguments.length>4&&void 0!==arguments[4]&&arguments[4];return{kind:"SingularReaderSelector",dataID:t,isWithinUnmatchedTypeRefinement:n,node:e,variables:r,owner:i}}e.exports={areEqualSelectors:function(e,t){return e.owner===t.owner&&e.dataID===t.dataID&&e.node===t.node&&i(e.variables,t.variables)},createReaderSelector:b,createNormalizationSelector:function(e,t,r){return{dataID:t,node:e,variables:r}},getDataIDsFromFragment:p,getDataIDsFromObject:function(e,t){var r={};for(var i in e)if(e.hasOwnProperty(i)){var n=e[i],s=t[i];r[i]=p(n,s)}return r},getSingularSelector:d,getPluralSelector:h,getSelector:f,getSelectorsFromObject:function(e,t){var r={};for(var i in e)if(e.hasOwnProperty(i)){var n=e[i],s=t[i];r[i]=f(n,s)}return r},getVariablesFromSingularFragment:g,getVariablesFromPluralFragment:m,getVariablesFromFragment:v,getVariablesFromObject:function(e,t){var r={};for(var i in e)if(e.hasOwnProperty(i)){var n=v(e[i],t[i]);Object.assign(r,n)}return r}}},function(e,t,r){"use strict";r(12);var i=r(43),n=r(26).getOperationVariables,s=r(15),a=s.createNormalizationSelector,o=s.createReaderSelector,l=r(2).ROOT_ID;function u(e,t,r){return{identifier:i(e.params,t),node:e,variables:t,cacheConfig:r}}e.exports={createOperationDescriptor:function(e,t,r){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:l,s=e.operation,c=n(s,t),d=u(e,c,r),h={fragment:o(e.fragment,i,c,d),request:d,root:a(s,i,c)};return h},createRequestDescriptor:u}},function(e,t,r){"use strict";var i=r(55),n=function(){function e(t){return e.create(t)}return e.create=function(e){return new i(e)},e}();e.exports=n},function(e,t,r){"use strict";var i=r(0),n=r(5).getType;e.exports={REACT_FLIGHT_QUERIES_STORAGE_KEY:"queries",REACT_FLIGHT_TREE_STORAGE_KEY:"tree",REACT_FLIGHT_TYPE_NAME:"ReactFlightComponent",getReactFlightClientResponse:function(e){"ReactFlightComponent"!==n(e)&&i(!1);var t=e.tree;return null!=t?t:null},refineToReactFlightPayloadData:function(e){return null!=e&&"object"==typeof e&&Array.isArray(e.tree)&&Array.isArray(e.queries)?e:null}}},function(e,t,r){"use strict";var i=r(32),n=r(25),s=r(0),a=(r(3),r(6).generateClientID);function o(e,t,r){if(null==r)return r;var n=i.get().EDGES,o=t.getValue("__connection_next_edge_index");"number"!=typeof o&&s(!1);var l=a(t.getDataID(),n,o),u=e.create(l,r.getType());return u.copyFieldsFrom(r),t.setValue(o+1,"__connection_next_edge_index"),u}function l(e,t,r){for(var n=i.get().NODE,s=0;s<e.length;s++){var a=e[s];if(a){var o=a.getLinkedRecord(n),l=o&&o.getDataID();if(l){if(r.has(l))continue;r.add(l)}t.push(a)}}}e.exports={buildConnectionEdge:o,createEdge:function(e,t,r,n){var s=i.get().NODE,o=a(t.getDataID(),r.getDataID()),l=e.get(o);return l||(l=e.create(o,n)),l.setLinkedRecord(r,s),l},deleteNode:function(e,t){var r=i.get(),n=r.EDGES,s=r.NODE,a=e.getLinkedRecords(n);if(a){for(var o,l=0;l<a.length;l++){var u=a[l],c=u&&u.getLinkedRecord(s);null!=c&&c.getDataID()===t?void 0===o&&(o=a.slice(0,l)):void 0!==o&&o.push(u)}void 0!==o&&e.setLinkedRecords(o,n)}},getConnection:function(e,t,r){var i=n("connection",t,null);return e.getLinkedRecord(i,r)},insertEdgeAfter:function(e,t,r){var n=i.get(),s=n.CURSOR,a=n.EDGES,o=e.getLinkedRecords(a);if(o){var l;if(null==r)l=o.concat(t);else{l=[];for(var u=!1,c=0;c<o.length;c++){var d=o[c];if(l.push(d),null!=d)r===d.getValue(s)&&(l.push(t),u=!0)}u||l.push(t)}e.setLinkedRecords(l,a)}else e.setLinkedRecords([t],a)},insertEdgeBefore:function(e,t,r){var n=i.get(),s=n.CURSOR,a=n.EDGES,o=e.getLinkedRecords(a);if(o){var l;if(null==r)l=[t].concat(o);else{l=[];for(var u=!1,c=0;c<o.length;c++){var d=o[c];if(null!=d)r===d.getValue(s)&&(l.push(t),u=!0);l.push(d)}u||l.unshift(t)}e.setLinkedRecords(l,a)}else e.setLinkedRecords([t],a)},update:function(e,t){var r=e.get(t.dataID);if(r){var n=i.get(),s=n.EDGES,u=n.END_CURSOR,c=n.HAS_NEXT_PAGE,d=n.HAS_PREV_PAGE,h=n.PAGE_INFO,f=n.PAGE_INFO_TYPE,p=n.START_CURSOR,_=r.getLinkedRecord(t.fieldKey),v=_&&_.getLinkedRecord(h);if(_){var g=a(r.getDataID(),t.handleKey),m=r.getLinkedRecord(t.handleKey),b=null!=m?m:e.get(g),E=b&&b.getLinkedRecord(h);if(b){null==m&&r.setLinkedRecord(b,t.handleKey);var y=b,R=_.getLinkedRecords(s);R&&(R=R.map((function(t){return o(e,y,t)})));var I=y.getLinkedRecords(s),D=y.getLinkedRecord(h);y.copyFieldsFrom(_),I&&y.setLinkedRecords(I,s),D&&y.setLinkedRecord(D,h);var S=[],k=t.args;if(I&&R)if(null!=k.after){if(!E||k.after!==E.getValue(u))return;var T=new Set;l(I,S,T),l(R,S,T)}else if(null!=k.before){if(!E||k.before!==E.getValue(p))return;var F=new Set;l(R,S,F),l(I,S,F)}else S=R;else S=R||I;if(null!=S&&S!==I&&y.setLinkedRecords(S,s),E&&v)if(null==k.after&&null==k.before)E.copyFieldsFrom(v);else if(null!=k.before||null==k.after&&k.last){E.setValue(!!v.getValue(d),d);var N=v.getValue(p);"string"==typeof N&&E.setValue(N,p)}else if(null!=k.after||null==k.before&&k.first){E.setValue(!!v.getValue(c),c);var O=v.getValue(u);"string"==typeof O&&E.setValue(O,u)}}else{var A=e.create(g,_.getType());A.setValue(0,"__connection_next_edge_index"),A.copyFieldsFrom(_);var P=_.getLinkedRecords(s);P&&(P=P.map((function(t){return o(e,A,t)})),A.setLinkedRecords(P,s)),r.setLinkedRecord(A,t.handleKey),(E=e.create(a(A.getDataID(),h),f)).setValue(!1,c),E.setValue(!1,d),E.setValue(null,u),E.setValue(null,p),v&&E.copyFieldsFrom(v),A.setLinkedRecord(E,h)}}else r.setValue(null,t.handleKey)}}}},function(e,t,r){"use strict";var i=r(1)(r(7)),n=r(19),s=(r(3),Object.freeze({RANGE_ADD:"RANGE_ADD",RANGE_DELETE:"RANGE_DELETE",NODE_DELETE:"NODE_DELETE"})),a=Object.freeze({APPEND:"append",PREPEND:"prepend"});function o(e){return e.fragment.selections&&e.fragment.selections.length>0&&"LinkedField"===e.fragment.selections[0].kind?e.fragment.selections[0].name:null}e.exports={MutationTypes:s,RangeOperations:a,convert:function(e,t,r,s){var a=r?[r]:[],l=s?[s]:[];return e.forEach((function(e){switch(e.type){case"NODE_DELETE":var r=function(e,t){var r=e.deletedIDFieldName,i=o(t);if(!i)return null;return function(e,t){var n=e.getRootField(i);if(n){var s=n.getValue(r);(Array.isArray(s)?s:[s]).forEach((function(t){t&&"string"==typeof t&&e.delete(t)}))}}}(e,t);r&&(a.push(r),l.push(r));break;case"RANGE_ADD":var s=function(e,t){var r=e.parentID,s=e.connectionInfo,a=e.edgeName;if(!r)return null;var l=o(t);if(!s||!l)return null;return function(e,t){var o=e.get(r);if(o){var u=e.getRootField(l);if(u){var c,d=u.getLinkedRecord(a),h=(0,i.default)(s);try{for(h.s();!(c=h.n()).done;){var f=c.value;if(d){var p=n.getConnection(o,f.key,f.filters);if(p){var _=n.buildConnectionEdge(e,p,d);if(_)switch(f.rangeBehavior){case"append":n.insertEdgeAfter(p,_);break;case"prepend":n.insertEdgeBefore(p,_)}}}}}catch(e){h.e(e)}finally{h.f()}}}}}(e,t);s&&(a.push(s),l.push(s));break;case"RANGE_DELETE":var u=function(e,t){var r=e.parentID,s=e.connectionKeys,a=e.pathToConnection,l=e.deletedIDFieldName;if(!r)return null;var u=o(t);if(!u)return null;return function(e,t){if(t){var o=[],c=t[u];if(c&&Array.isArray(l)){var d,h=(0,i.default)(l);try{for(h.s();!(d=h.n()).done;){var f=d.value;c&&"object"==typeof c&&(c=c[f])}}catch(e){h.e(e)}finally{h.f()}Array.isArray(c)?c.forEach((function(e){e&&e.id&&"object"==typeof e&&"string"==typeof e.id&&o.push(e.id)})):c&&c.id&&"string"==typeof c.id&&o.push(c.id)}else c&&"string"==typeof l&&"object"==typeof c&&("string"==typeof(c=c[l])?o.push(c):Array.isArray(c)&&c.forEach((function(e){"string"==typeof e&&o.push(e)})));!function(e,t,r,s,a){var o=s.get(e);if(!o)return;if(r.length<2)return;for(var l=o,u=1;u<r.length-1;u++)l&&(l=l.getLinkedRecord(r[u]));if(!t||!l)return;var c,d=(0,i.default)(t);try{var h=function(){var e=c.value,t=n.getConnection(l,e.key,e.filters);t&&a.forEach((function(e){n.deleteNode(t,e)}))};for(d.s();!(c=d.n()).done;)h()}catch(e){d.e(e)}finally{d.f()}}(r,s,a,e,o)}}}(e,t);u&&(a.push(u),l.push(u))}})),{optimisticUpdater:function(e,t){a.forEach((function(r){r(e,t)}))},updater:function(e,t){l.forEach((function(r){r(e,t)}))}}}}},function(e,t){e.exports=a},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 i=r(9),n=r(5),s=r(0),a=r(4),o=a.CLIENT_EXTENSION,l=a.CONDITION,u=a.DEFER,c=a.FLIGHT_FIELD,d=a.FRAGMENT_SPREAD,h=a.INLINE_DATA_FRAGMENT_SPREAD,f=a.INLINE_FRAGMENT,p=a.LINKED_FIELD,_=a.MODULE_IMPORT,v=a.REQUIRED_FIELD,g=a.SCALAR_FIELD,m=a.STREAM,b=r(18).getReactFlightClientResponse,E=r(2),y=E.FRAGMENTS_KEY,R=E.FRAGMENT_OWNER_KEY,I=E.FRAGMENT_PROP_NAME_KEY,D=E.ID_KEY,S=E.IS_WITHIN_UNMATCHED_TYPE_REFINEMENT,k=E.MODULE_COMPONENT_KEY,T=E.ROOT_ID,F=E.getArgumentValues,N=E.getStorageKey,O=E.getModuleComponentKey,A=r(23).generateTypeID;var P=function(){function e(e,t){this._isMissingData=!1,this._isWithinUnmatchedTypeRefinement=!1,this._missingRequiredFields=null,this._owner=t.owner,this._recordSource=e,this._seenRecords={},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,s=e.isWithinUnmatchedTypeRefinement,a=t.abstractKey,o=this._recordSource.get(r),l=!s;l&&null==a&&null!=o&&(n.getType(o)!==t.type&&r!==T&&(l=!1));if(l&&null!=a&&null!=o&&i.ENABLE_PRECISE_TYPE_REFINEMENT){var u=n.getType(o),c=A(u),d=this._recordSource.get(c),h=null!=d?n.getValue(d,a):null;!1===h?l=!1:null==h&&(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 i=this._recordSource.get(t);if(this._seenRecords[t]=i,null==i)return void 0===i&&(this._isMissingData=!0),i;var n=r||{};return this._traverseSelections(e.selections,i,n)?n:null},t._getVariableValue=function(e){return this._variables.hasOwnProperty(e)||s(!1),this._variables[e]},t._maybeReportUnexpectedNull=function(e,t,r){var i;if("THROW"!==(null===(i=this._missingRequiredFields)||void 0===i?void 0:i.action)){var n=this._selector.node.name;switch(t){case"THROW":return void(this._missingRequiredFields={action:t,field:{path:e,owner:n}});case"LOG":return null==this._missingRequiredFields&&(this._missingRequiredFields={action:t,fields:[]}),void this._missingRequiredFields.fields.push({path:e,owner:n})}}},t._traverseSelections=function(e,t,r){for(var a=0;a<e.length;a++){var b=e[a];switch(b.kind){case v:if(i.ENABLE_REQUIRED_DIRECTIVES||s(!1),null==this._readRequiredField(b,t,r)){var E=b.action;return"NONE"!==E&&this._maybeReportUnexpectedNull(b.path,E,t),!1}break;case g:this._readScalar(b,t,r);break;case p:b.plural?this._readPluralLink(b,t,r):this._readLink(b,t,r);break;case l:if(this._getVariableValue(b.condition)===b.passingValue)if(!this._traverseSelections(b.selections,t,r))return!1;break;case f:var y=b.abstractKey;if(null==y){var R=n.getType(t);if(null!=R&&R===b.type)if(!this._traverseSelections(b.selections,t,r))return!1}else if(i.ENABLE_PRECISE_TYPE_REFINEMENT){var I=this._isMissingData,D=this._isWithinUnmatchedTypeRefinement,S=n.getType(t),k=A(S),T=this._recordSource.get(k),F=null!=T?n.getValue(T,y):null;this._isWithinUnmatchedTypeRefinement=D||!1===F,this._traverseSelections(b.selections,t,r),this._isWithinUnmatchedTypeRefinement=D,!1===F?this._isMissingData=I:null==F&&(this._isMissingData=!0)}else this._traverseSelections(b.selections,t,r);break;case d:this._createFragmentPointer(b,t,r);break;case _:this._readModuleImport(b,t,r);break;case h:this._createInlineDataFragmentPointer(b,t,r);break;case u:case o:var N=this._isMissingData,O=this._traverseSelections(b.selections,t,r);if(this._isMissingData=N,!O)return!1;break;case m:if(!this._traverseSelections(b.selections,t,r))return!1;break;case c:if(!i.ENABLE_REACT_FLIGHT_COMPONENT_FIELD)throw new Error("Flight fields are not yet supported.");this._readFlightField(b,t,r);break;default:s(!1)}}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,s(!1)}},t._readFlightField=function(e,t,r){var i,s=null!==(i=e.alias)&&void 0!==i?i:e.name,a=N(e,this._variables),o=n.getLinkedRecordID(t,a);if(null==o)return r[s]=o,void 0===o&&(this._isMissingData=!0),o;var l=this._recordSource.get(o);if(this._seenRecords[o]=l,null==l)return r[s]=l,void 0===l&&(this._isMissingData=!0),l;var u=b(l);return r[s]=u,u},t._readScalar=function(e,t,r){var i,s=null!==(i=e.alias)&&void 0!==i?i:e.name,a=N(e,this._variables),o=n.getValue(t,a);return void 0===o&&(this._isMissingData=!0),r[s]=o,o},t._readLink=function(e,t,r){var i,a=null!==(i=e.alias)&&void 0!==i?i:e.name,o=N(e,this._variables),l=n.getLinkedRecordID(t,o);if(null==l)return r[a]=l,void 0===l&&(this._isMissingData=!0),l;var u=r[a];null!=u&&"object"!=typeof u&&s(!1);var c=this._traverse(e,l,u);return r[a]=c,c},t._readPluralLink=function(e,t,r){var i,a=this,o=null!==(i=e.alias)&&void 0!==i?i:e.name,l=N(e,this._variables),u=n.getLinkedRecordIDs(t,l);if(null==u)return r[o]=u,void 0===u&&(this._isMissingData=!0),u;var c=r[o];null==c||Array.isArray(c)||s(!1);var d=c||[];return u.forEach((function(t,r){if(null==t)return void 0===t&&(a._isMissingData=!0),void(d[r]=t);var i=d[r];null!=i&&"object"!=typeof i&&s(!1),d[r]=a._traverse(e,t,i)})),r[o]=d,d},t._readModuleImport=function(e,t,r){var i=O(e.documentName),s=n.getValue(t,i);null!=s?(this._createFragmentPointer({kind:"FragmentSpread",name:e.fragmentName,args:null},t,r),r[I]=e.fragmentPropName,r[k]=s):void 0===s&&(this._isMissingData=!0)},t._createFragmentPointer=function(e,t,r){var a=r[y];null==a&&(a=r[y]={}),("object"!=typeof a||null==a)&&s(!1),null==r[D]&&(r[D]=n.getDataID(t)),a[e.name]=e.args?F(e.args,this._variables):{},r[R]=this._owner,i.ENABLE_PRECISE_TYPE_REFINEMENT&&(r[S]=this._isWithinUnmatchedTypeRefinement)},t._createInlineDataFragmentPointer=function(e,t,r){var i=r[y];null==i&&(i=r[y]={}),("object"!=typeof i||null==i)&&s(!1),null==r[D]&&(r[D]=n.getDataID(t));var a={};this._traverseSelections(e.selections,t,a),i[e.name]=a},e}();e.exports={read:function(e,t){return new P(e,t).read()}}},function(e,t,r){"use strict";var i=r(0),n=r(33).DEFAULT_HANDLE_KEY;e.exports=function(e,t,r){return t&&t!==n?"__".concat(t,"_").concat(e):(null==r&&i(!1),"__".concat(r,"_").concat(e))}},function(e,t,r){"use strict";var i=r(1)(r(8)),n=r(0);e.exports={getFragmentVariables:function(e,t,r){var s;return e.argumentDefinitions.forEach((function(e){if(!r.hasOwnProperty(e.name))switch(s=s||(0,i.default)({},r),e.kind){case"LocalArgument":s[e.name]=e.defaultValue;break;case"RootArgument":if(!t.hasOwnProperty(e.name)){s[e.name]=void 0;break}s[e.name]=t[e.name];break;default:n(!1)}})),s||r},getOperationVariables:function(e,t){var r={};return e.argumentDefinitions.forEach((function(e){var i=e.defaultValue;null!=t[e.name]&&(i=t[e.name]),r[e.name]=i})),r}}},function(e,t,r){"use strict";function i(){}var n={"*":[]},s={"*":[]},a={},o={stop:i},l=function(e){return"@"!==e.charAt(0)},u={instrumentMethods:function(e,t){for(var r in t)t.hasOwnProperty(r)&&"function"==typeof e[r]&&(e[r]=u.instrument(t[r],e[r]))},instrument:function(e,t){if(!l(e))return t.attachHandler=i,t.detachHandler=i,t;n.hasOwnProperty(e)||(n[e]=[]);var r=n["*"],s=n[e],o=[],u=[],d=function i(){var n=u[u.length-1];n[0]?(n[0]--,r[n[0]](e,i)):n[1]?(n[1]--,s[n[1]](e,i)):n[2]?(n[2]--,o[n[2]](e,i)):n[5]=t.apply(n[3],n[4])},h=function(){var e;if(0===s.length&&0===o.length&&0===r.length)e=t.apply(this,arguments);else{u.push([r.length,s.length,o.length,this,arguments,a]),d();var i=u.pop();if((e=i[5])===a)throw new Error("RelayProfiler: Handler did not invoke original function.")}return e};return h.attachHandler=function(e){o.push(e)},h.detachHandler=function(e){c(o,e)},h.displayName="(instrumented "+e+")",h},attachAggregateHandler:function(e,t){l(e)&&(n.hasOwnProperty(e)||(n[e]=[]),n[e].push(t))},detachAggregateHandler:function(e,t){l(e)&&n.hasOwnProperty(e)&&c(n[e],t)},profile:function(e,t){var r=s["*"].length>0,i=s.hasOwnProperty(e);if(i||r){for(var n,a=i&&r?s[e].concat(s["*"]):i?s[e]:s["*"],l=a.length-1;l>=0;l--){var u=(0,a[l])(e,t);(n=n||[]).unshift(u)}return{stop:function(e){n&&n.forEach((function(t){return t(e)}))}}}return o},attachProfileHandler:function(e,t){l(e)&&(s.hasOwnProperty(e)||(s[e]=[]),s[e].push(t))},detachProfileHandler:function(e,t){l(e)&&s.hasOwnProperty(e)&&c(s[e],t)}};function c(e,t){var r=e.indexOf(t);-1!==r&&e.splice(r,1)}e.exports=u},function(e,t,r){"use strict";var i=r(4),n=i.REQUEST,s=i.SPLIT_OPERATION;e.exports=function(e){switch(e.kind){case n:return e.operation;case s:default:return e}}},function(e,t){e.exports=o},function(e,t,r){"use strict";var i="undefined"!=typeof WeakSet,n="undefined"!=typeof WeakMap;e.exports=function e(t,r){if(t===r||"object"!=typeof t||t instanceof Set||t instanceof Map||i&&t instanceof WeakSet||n&&t instanceof WeakMap||!t||"object"!=typeof r||r instanceof Set||r instanceof Map||i&&r instanceof WeakSet||n&&r instanceof WeakMap||!r)return r;var s=!1,a=Array.isArray(t)?t:null,o=Array.isArray(r)?r:null;if(a&&o)s=o.reduce((function(t,r,i){var n=e(a[i],r);return n!==o[i]&&(o[i]=n),t&&n===a[i]}),!0)&&a.length===o.length;else if(!a&&!o){var l=t,u=r,c=Object.keys(l),d=Object.keys(u);s=d.reduce((function(t,r){var i=e(l[r],u[r]);return i!==u[r]&&(u[r]=i),t&&i===l[r]}),!0)&&c.length===d.length}return s?t:r}},function(e,t,r){"use strict";e.exports=function(e){return Boolean(e&&e["@@RelayModernEnvironment"])}},function(e,t,r){"use strict";var i={after:!0,before:!0,find:!0,first:!0,last:!0,surrounds:!0},n={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"},s={inject:function(e){n=e},get:function(){return n},isConnectionCall:function(e){return i.hasOwnProperty(e.name)}};e.exports=s},function(e,t,r){"use strict";e.exports={DEFAULT_HANDLE_KEY:""}},function(e,t,r){"use strict";var i=r(1)(r(7)),n=r(19),s=r(0),a=(r(3),{update:function(e,t){var r=e.get(t.dataID);if(null!=r){var i=r.getValue(t.fieldKey);"string"==typeof i?e.delete(i):Array.isArray(i)&&i.forEach((function(t){"string"==typeof t&&e.delete(t)}))}}}),o={update:function(e,t){var r=e.get(t.dataID);if(null!=r){var a=t.handleArgs.connections;null==a&&s(!1);var o=r.getValue(t.fieldKey);(Array.isArray(o)?o:[o]).forEach((function(t){if("string"==typeof t){var r,s=(0,i.default)(a);try{for(s.s();!(r=s.n()).done;){var o=r.value,l=e.get(o);null!=l&&n.deleteNode(l,t)}}catch(e){s.e(e)}finally{s.f()}}}))}}},l={update:h(n.insertEdgeAfter)},u={update:h(n.insertEdgeBefore)},c={update:f(n.insertEdgeAfter)},d={update:f(n.insertEdgeBefore)};function h(e){return function(t,r){var a,o=t.get(r.dataID);if(null!=o){var l,u,c=r.handleArgs.connections;null==c&&s(!1);try{l=o.getLinkedRecord(r.fieldKey,r.args)}catch(e){}if(!l)try{u=o.getLinkedRecords(r.fieldKey,r.args)}catch(e){}if(null!=l||null!=u){var d,h=null!==(a=u)&&void 0!==a?a:[l],f=(0,i.default)(h);try{for(f.s();!(d=f.n()).done;){var p=d.value;if(null!=p){var _,v=(0,i.default)(c);try{for(v.s();!(_=v.n()).done;){var g=_.value,m=t.get(g);if(null!=m){var b=n.buildConnectionEdge(t,m,p);null==b&&s(!1),e(m,b)}}}catch(e){v.e(e)}finally{v.f()}}}}catch(e){f.e(e)}finally{f.f()}}}}}function f(e){return function(t,r){var a,o=t.get(r.dataID);if(null!=o){var l,u,c=r.handleArgs,d=c.connections,h=c.edgeTypeName;null==d&&s(!1),null==h&&s(!1);try{l=o.getLinkedRecord(r.fieldKey,r.args)}catch(e){}if(!l)try{u=o.getLinkedRecords(r.fieldKey,r.args)}catch(e){}if(null!=l||null!=u){var f,p=null!==(a=u)&&void 0!==a?a:[l],_=(0,i.default)(p);try{for(_.s();!(f=_.n()).done;){var v=f.value;if(null!=v){var g,m=(0,i.default)(d);try{for(m.s();!(g=m.n()).done;){var b=g.value,E=t.get(b);if(null!=E){var y=n.createEdge(t,E,v,h);null==y&&s(!1),e(E,y)}}}catch(e){m.e(e)}finally{m.f()}}}}catch(e){_.e(e)}finally{_.f()}}}}}e.exports={AppendEdgeHandler:l,DeleteRecordHandler:a,PrependEdgeHandler:u,AppendNodeHandler:c,PrependNodeHandler:d,DeleteEdgeHandler:o}},function(e,t,r){"use strict";var i=r(19),n=r(34),s=r(0);e.exports=function(e){switch(e){case"connection":return i;case"deleteRecord":return n.DeleteRecordHandler;case"deleteEdge":return n.DeleteEdgeHandler;case"appendEdge":return n.AppendEdgeHandler;case"prependEdge":return n.PrependEdgeHandler;case"appendNode":return n.AppendNodeHandler;case"prependNode":return n.PrependNodeHandler}s(!1)}},function(e,t,r){"use strict";function i(e,t,r){for(var i=arguments.length,n=new Array(i>3?i-3:0),s=3;s<i;s++)n[s-3]=arguments[s];var a=0,o=r.replace(/%s/g,(function(){return String(n[a++])})),l=new Error(o),u=Object.assign(l,{name:t,messageFormat:r,messageParams:n,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,n=new Array(r>2?r-2:0),s=2;s<r;s++)n[s-2]=arguments[s];return i.apply(void 0,["error",e,t].concat(n))},createWarning:function(e,t){for(var r=arguments.length,n=new Array(r>2?r-2:0),s=2;s<r;s++)n[s-2]=arguments[s];return i.apply(void 0,["warn",e,t].concat(n))}}},function(e,t,r){"use strict";e.exports=function(e){return!!e&&"function"==typeof e.then}},function(e,t,r){"use strict";var i=r(1)(r(7)),n=r(0),s=function(){function e(){this._ownersToPendingOperations=new Map,this._pendingOperationsToOwners=new Map,this._ownersToPromise=new Map}var t=e.prototype;return t.update=function(e,t){if(0!==t.size){var r,n=new Set,s=(0,i.default)(t);try{for(s.s();!(r=s.n()).done;){var a=r.value,o=this._ownersToPendingOperations.get(a);null!=o?o.has(e)||(o.add(e),n.add(a)):(this._ownersToPendingOperations.set(a,new Set([e])),n.add(a))}}catch(e){s.e(e)}finally{s.f()}if(0!==n.size){var l,u=this._pendingOperationsToOwners.get(e)||new Set,c=(0,i.default)(n);try{for(c.s();!(l=c.n()).done;){var d=l.value;this._resolveOwnerResolvers(d),u.add(d)}}catch(e){c.e(e)}finally{c.f()}this._pendingOperationsToOwners.set(e,u)}}},t.complete=function(e){var t=this._pendingOperationsToOwners.get(e);if(null!=t){var r,n=new Set,s=new Set,a=(0,i.default)(t);try{for(a.s();!(r=a.n()).done;){var o=r.value,l=this._ownersToPendingOperations.get(o);l&&(l.delete(e),l.size>0?s.add(o):n.add(o))}}catch(e){a.e(e)}finally{a.f()}var u,c=(0,i.default)(n);try{for(c.s();!(u=c.n()).done;){var d=u.value;this._resolveOwnerResolvers(d),this._ownersToPendingOperations.delete(d)}}catch(e){c.e(e)}finally{c.f()}var h,f=(0,i.default)(s);try{for(f.s();!(h=f.n()).done;){var p=h.value;this._resolveOwnerResolvers(p)}}catch(e){f.e(e)}finally{f.f()}this._pendingOperationsToOwners.delete(e)}},t._resolveOwnerResolvers=function(e){var t=this._ownersToPromise.get(e);null!=t&&t.resolve(),this._ownersToPromise.delete(e)},t.getPromiseForPendingOperationsAffectingOwner=function(e){if(!this._ownersToPendingOperations.has(e))return null;var t,r=this._ownersToPromise.get(e);if(null!=r)return r.promise;var i=new Promise((function(e){t=e}));return null==t&&n(!1),this._ownersToPromise.set(e,{promise:i,resolve:t}),i},e}();e.exports=s},function(e,t,r){"use strict";var i=r(5),n=r(0),s=r(22).EXISTENT,a=function(){function e(e,t){this.__sources=[t,e],this._base=e,this._sink=t}var t=e.prototype;return t.unstable_getRawRecordWithChanges=function(e){var t=this._base.get(e),r=this._sink.get(e);return void 0===r?null==t?t:i.clone(t):null===r?null:null!=t?i.update(t,r):i.clone(r)},t._getSinkRecord=function(e){var t=this._sink.get(e);if(!t){var r=this._base.get(e);r||n(!1),t=i.create(e,i.getType(r)),this._sink.set(e,t)}return t},t.copyFields=function(e,t){var r=this._sink.get(e),s=this._base.get(e);r||s||n(!1);var a=this._getSinkRecord(t);s&&i.copyFields(s,a),r&&i.copyFields(r,a)},t.copyFieldsFromRecord=function(e,t){var r=this._getSinkRecord(t);i.copyFields(e,r)},t.create=function(e,t){(this._base.getStatus(e)===s||this._sink.getStatus(e)===s)&&n(!1);var r=i.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 i.getType(r);if(null===r)return null}},t.getValue=function(e,t){for(var r=0;r<this.__sources.length;r++){var n=this.__sources[r].get(e);if(n){var s=i.getValue(n,t);if(void 0!==s)return s}else if(null===n)return null}},t.setValue=function(e,t,r){var n=this._getSinkRecord(e);i.setValue(n,t,r)},t.getLinkedRecordID=function(e,t){for(var r=0;r<this.__sources.length;r++){var n=this.__sources[r].get(e);if(n){var s=i.getLinkedRecordID(n,t);if(void 0!==s)return s}else if(null===n)return null}},t.setLinkedRecordID=function(e,t,r){var n=this._getSinkRecord(e);i.setLinkedRecordID(n,t,r)},t.getLinkedRecordIDs=function(e,t){for(var r=0;r<this.__sources.length;r++){var n=this.__sources[r].get(e);if(n){var s=i.getLinkedRecordIDs(n,t);if(void 0!==s)return s}else if(null===n)return null}},t.setLinkedRecordIDs=function(e,t,r){var n=this._getSinkRecord(e);i.setLinkedRecordIDs(n,t,r)},e}();e.exports=a},function(e,t,r){"use strict";var i=r(5),n=r(59),s=r(0),a=r(22),o=a.EXISTENT,l=a.NONEXISTENT,u=r(2),c=u.ROOT_ID,d=u.ROOT_TYPE,h=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 n=e.getStatus(t);if(n===o){var s=e.get(t);s&&(r.__mutator.getStatus(t)!==o&&r.create(t,i.getType(s)),r.__mutator.copyFieldsFromRecord(s,t))}else n===l&&r.delete(t)})),t&&t.length&&t.forEach((function(e){var t=r._handlerProvider&&r._handlerProvider(e.handle);t||s(!1),t.update(r,e)}))},t.create=function(e,t){this.__mutator.create(e,t),delete this._proxies[e];var r=this.get(e);return r||s(!1),r},t.delete=function(e){e===c&&s(!1),delete this._proxies[e],this.__mutator.delete(e)},t.get=function(e){if(!this._proxies.hasOwnProperty(e)){var t=this.__mutator.getStatus(e);this._proxies[e]=t===o?new n(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||s(!1),e},t.invalidateStore=function(){this._invalidatedStore=!0},t.isStoreMarkedForInvalidation=function(){return this._invalidatedStore},t.markIDForInvalidation=function(e){this._idsMarkedForInvalidation.add(e)},t.getIDsMarkedForInvalidation=function(){return this._idsMarkedForInvalidation},e}();e.exports=h},function(e,t,r){"use strict";var i=r(42),n=i.VIEWER_ID,s=i.VIEWER_TYPE;e.exports=function(e,t){return t===s&&null==e.id?n:e.id}},function(e,t,r){"use strict";var i=(0,r(6).generateClientID)(r(2).ROOT_ID,"viewer");e.exports={VIEWER_ID:i,VIEWER_TYPE:"Viewer"}},function(e,t,r){"use strict";var i=r(0),n=r(13);e.exports=function(e,t){var r=null!=e.cacheID?e.cacheID:e.id;return null==r&&i(!1),r+JSON.stringify(n(t))}},function(e,t,r){"use strict";var i=r(11),n=r(0),s=r(4).LINKED_FIELD,a=r(2).getHandleStorageKey;e.exports=function(e,t,r){var o=t.find((function(t){return t.kind===s&&t.name===e.name&&t.alias===e.alias&&i(t.args,e.args)}));o&&o.kind===s||n(!1);var l=a(e,r);return{kind:"LinkedField",alias:o.alias,name:l,storageKey:l,args:null,concreteType:o.concreteType,plural:o.plural,selections:o.selections}}},function(e,t,r){"use strict";var i=Object.prototype.hasOwnProperty;e.exports=function(e){for(var t in e)if(i.call(e,t))return!1;return!0}},function(e,t,r){"use strict";var i=r(1)(r(29)),n=r(14),s=r(0),a=function(){function e(){var e=this;(0,i.default)(this,"_complete",!1),(0,i.default)(this,"_events",[]),(0,i.default)(this,"_sinks",new Set),(0,i.default)(this,"_subscription",null),this._observable=n.create((function(t){e._sinks.add(t);for(var r=e._events,i=0;i<r.length&&!t.closed;i++){var n=r[i];switch(n.kind){case"complete":t.complete();break;case"error":t.error(n.error);break;case"next":t.next(n.data);break;default:n.kind,s(!1)}}return function(){e._sinks.delete(t)}}))}var t=e.prototype;return t.complete=function(){!0!==this._complete&&(this._complete=!0,this._events.push({kind:"complete"}),this._sinks.forEach((function(e){return e.complete()})))},t.error=function(e){!0!==this._complete&&(this._complete=!0,this._events.push({kind:"error",error:e}),this._sinks.forEach((function(t){return t.error(e)})))},t.next=function(e){!0!==this._complete&&(this._events.push({kind:"next",data:e}),this._sinks.forEach((function(t){return t.next(e)})))},t.subscribe=function(e){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=a},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";e.exports=function(e,t){switch(t.action){case"THROW":var r=t.field,i=r.path,n=r.owner;throw e.requiredFieldLogger({kind:"missing_field.throw",owner:n,fieldPath:i}),new Error("Relay: Missing @required value at path '".concat(i,"' in '").concat(n,"'."));case"LOG":t.fields.forEach((function(t){var r=t.path,i=t.owner;e.requiredFieldLogger({kind:"missing_field.log",owner:i,fieldPath:r})}));break;default:t.action}}},function(e,t,r){"use strict";var i=r(14),n=r(46),s=r(0),a="function"==typeof WeakMap?new WeakMap:new Map;function o(e,t,r){return i.create((function(a){var o=u(e),l=o.get(t);return l||r().finally((function(){return o.delete(t)})).subscribe({start:function(e){l={identifier:t,subject:new n,subjectForInFlightStatus:new n,subscription:e},o.set(t,l)},next:function(e){var r=c(o,t);r.subject.next(e),r.subjectForInFlightStatus.next(e)},error:function(e){var r=c(o,t);r.subject.error(e),r.subjectForInFlightStatus.error(e)},complete:function(){var e=c(o,t);e.subject.complete(),e.subjectForInFlightStatus.complete()},unsubscribe:function(e){var r=c(o,t);r.subject.unsubscribe(),r.subjectForInFlightStatus.unsubscribe()}}),null==l&&s(!1),function(e,t){return i.create((function(r){var i=t.subject.subscribe(r);return function(){i.unsubscribe();var r=e.get(t.identifier);if(r){var n=r.subscription;null!=n&&0===r.subject.getObserverCount()&&(n.unsubscribe(),e.delete(t.identifier))}}}))}(o,l).subscribe(a)}))}function l(e,t,r){return i.create((function(t){var i=r.subjectForInFlightStatus.subscribe({error:t.error,next:function(i){e.isRequestActive(r.identifier)?t.next():t.complete()},complete:t.complete,unsubscribe:t.complete});return function(){i.unsubscribe()}}))}function u(e){var t=a.get(e);if(null!=t)return t;var r=new Map;return a.set(e,r),r}function c(e,t){var r=e.get(t);return null==r&&s(!1),r}e.exports={fetchQuery:function(e,t){return o(e,t.request.identifier,(function(){return e.execute({operation:t})}))},fetchQueryDeduped:o,getPromiseForActiveRequest:function(e,t){var r=u(e),i=r.get(t.identifier);return i&&e.isRequestActive(i.identifier)?new Promise((function(t,r){var n=!1;l(e,0,i).subscribe({complete:t,error:r,next:function(e){n&&t(e)}}),n=!0})):null},getObservableForActiveRequest:function(e,t){var r=u(e),i=r.get(t.identifier);return i&&e.isRequestActive(i.identifier)?l(e,0,i):null}}},function(e,t,r){"use strict";var i=r(19),n=r(32),s=r(10),a=r(34),o=r(51),l=r(4),u=r(26),c=r(20),d=r(33),h=r(35),f=r(36),p=r(9),_=r(52),v=r(16),g=r(5),m=r(15),b=r(63),E=r(72),y=r(14),R=r(38),I=r(27),D=r(74),S=r(17),k=r(46),T=r(2),F=r(42),N=r(75),O=r(76),A=r(77),P=r(79),L=r(81),M=r(82),w=r(12),x=r(83),C=r(49),U=r(84),V=r(25),q=r(43),K=r(37),j=r(31),H=r(47),G=r(85),Y=r(30),z=r(48),B=r(86),Q=r(13),W=r(6),X=W.generateClientID,J=W.generateUniqueClientID,Z=W.isClientID;e.exports={Environment:_,Network:E,Observable:y,QueryResponseCache:D,RecordSource:S,Record:g,ReplaySubject:k,Store:b,areEqualSelectors:m.areEqualSelectors,createFragmentSpecResolver:P,createNormalizationSelector:m.createNormalizationSelector,createOperationDescriptor:v.createOperationDescriptor,createReaderSelector:m.createReaderSelector,createRequestDescriptor:v.createRequestDescriptor,getDataIDsFromFragment:m.getDataIDsFromFragment,getDataIDsFromObject:m.getDataIDsFromObject,getNode:s.getNode,getFragment:s.getFragment,getInlineDataFragment:s.getInlineDataFragment,getModuleComponentKey:T.getModuleComponentKey,getModuleOperationKey:T.getModuleOperationKey,getPaginationFragment:s.getPaginationFragment,getPluralSelector:m.getPluralSelector,getRefetchableFragment:s.getRefetchableFragment,getRequest:s.getRequest,getRequestIdentifier:q,getSelector:m.getSelector,getSelectorsFromObject:m.getSelectorsFromObject,getSingularSelector:m.getSingularSelector,getStorageKey:T.getStorageKey,getVariablesFromFragment:m.getVariablesFromFragment,getVariablesFromObject:m.getVariablesFromObject,getVariablesFromPluralFragment:m.getVariablesFromPluralFragment,getVariablesFromSingularFragment:m.getVariablesFromSingularFragment,reportMissingRequiredFields:z,graphql:s.graphql,isFragment:s.isFragment,isInlineDataFragment:s.isInlineDataFragment,isRequest:s.isRequest,readInlineData:G,MutationTypes:c.MutationTypes,RangeOperations:c.RangeOperations,DefaultHandlerProvider:h,ConnectionHandler:i,MutationHandlers:a,VIEWER_ID:F.VIEWER_ID,VIEWER_TYPE:F.VIEWER_TYPE,applyOptimisticMutation:N,commitLocalUpdate:O,commitMutation:A,fetchQuery:x,isRelayModernEnvironment:j,requestSubscription:B,ConnectionInterface:n,PreloadableQueryRegistry:o,RelayProfiler:I,createPayloadFor3DField:L,RelayConcreteNode:l,RelayError:f,RelayFeatureFlags:p,DEFAULT_HANDLE_KEY:d.DEFAULT_HANDLE_KEY,FRAGMENTS_KEY:T.FRAGMENTS_KEY,FRAGMENT_OWNER_KEY:T.FRAGMENT_OWNER_KEY,ID_KEY:T.ID_KEY,REF_KEY:T.REF_KEY,REFS_KEY:T.REFS_KEY,ROOT_ID:T.ROOT_ID,ROOT_TYPE:T.ROOT_TYPE,TYPENAME_KEY:T.TYPENAME_KEY,deepFreeze:w,generateClientID:X,generateUniqueClientID:J,getRelayHandleKey:V,isClientID:Z,isPromise:K,isScalarAndEqual:H,recycleNodesInto:Y,stableCopy:Q,getFragmentIdentifier:U,__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 i=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,i=null!==(r=this._callbacks.get(e))&&void 0!==r?r:new Set;i.add(t);return this._callbacks.set(e,i),{dispose:function(){i.delete(t)}}},t.clear=function(){this._preloadableQueries.clear()},e}());e.exports=i},function(e,t,r){"use strict";(function(t){var i=r(1)(r(8)),n=r(35),s=r(9),a=r(54),o=r(14),l=r(38),u=r(57),c=r(17),d=r(41),h=r(61),f=r(62),p=(r(0),function(){function e(e){var r,i,a,o,c,f,p,v=this;this.configName=e.configName;var g=e.handlerProvider?e.handlerProvider:n;this._treatMissingFieldsAsNull=!0===e.treatMissingFieldsAsNull;var m=e.operationLoader,b=e.reactFlightPayloadDeserializer;this.__log=null!==(r=e.log)&&void 0!==r?r:_,this.requiredFieldLogger=null!==(i=e.requiredFieldLogger)&&void 0!==i?i:h,this._defaultRenderPolicy=(null!==(a=e.UNSTABLE_defaultRenderPolicy)&&void 0!==a?a:!0===s.ENABLE_PARTIAL_RENDERING_DEFAULT)?"partial":"full",this._operationLoader=m,this._operationExecutions=new Map,this._network=this.__wrapNetworkWithLogObserver(e.network),this._getDataID=null!==(o=e.UNSTABLE_DO_NOT_USE_getDataID)&&void 0!==o?o:d,this._publishQueue=new u(e.store,g,this._getDataID),this._scheduler=null!==(c=e.scheduler)&&void 0!==c?c:null,this._store=e.store,this.options=e.options,this._isServer=null!==(f=e.isServer)&&void 0!==f&&f,this.__setNet=function(e){return v._network=v.__wrapNetworkWithLogObserver(e)};var E=void 0!==t?t:"undefined"!=typeof window?window:void 0,y=E&&E.__RELAY_DEVTOOLS_HOOK__;y&&y.registerEnvironment(this),this._missingFieldHandlers=e.missingFieldHandlers,this._operationTracker=null!==(p=e.operationTracker)&&void 0!==p?p:new l,this._reactFlightPayloadDeserializer=b}var r=e.prototype;return r.getStore=function(){return this._store},r.getNetwork=function(){return this._network},r.getOperationTracker=function(){return this._operationTracker},r.isRequestActive=function(e){return"active"===this._operationExecutions.get(e)},r.UNSTABLE_getDefaultRenderPolicy=function(){return this._defaultRenderPolicy},r.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()}))}}},r.revertUpdate=function(e){var t=this;this._scheduleUpdates((function(){t._publishQueue.revertUpdate(e),t._publishQueue.run()}))},r.replaceUpdate=function(e,t){var r=this;this._scheduleUpdates((function(){r._publishQueue.revertUpdate(e),r._publishQueue.applyUpdate(t),r._publishQueue.run()}))},r.applyMutation=function(e){var t=this,r=o.create((function(r){var i=o.create((function(e){})),n=a.execute({operation:e.operation,operationExecutions:t._operationExecutions,operationLoader:t._operationLoader,optimisticConfig:e,publishQueue:t._publishQueue,reactFlightPayloadDeserializer:t._reactFlightPayloadDeserializer,scheduler:t._scheduler,sink:r,source:i,store:t._store,updater:null,operationTracker:t._operationTracker,getDataID:t._getDataID,treatMissingFieldsAsNull:t._treatMissingFieldsAsNull});return function(){return n.cancel()}})).subscribe({});return{dispose:function(){return r.unsubscribe()}}},r.check=function(e){return null==this._missingFieldHandlers||0===this._missingFieldHandlers.length?this._store.check(e):this._checkSelectorAndHandleMissingFields(e,this._missingFieldHandlers)},r.commitPayload=function(e,t){var r=this;o.create((function(i){var n=a.execute({operation:e,operationExecutions:r._operationExecutions,operationLoader:r._operationLoader,optimisticConfig:null,publishQueue:r._publishQueue,reactFlightPayloadDeserializer:r._reactFlightPayloadDeserializer,scheduler:r._scheduler,sink:i,source:o.from({data:t}),store:r._store,updater:null,operationTracker:r._operationTracker,getDataID:r._getDataID,isClientPayload:!0,treatMissingFieldsAsNull:r._treatMissingFieldsAsNull});return function(){return n.cancel()}})).subscribe({})},r.commitUpdate=function(e){var t=this;this._scheduleUpdates((function(){t._publishQueue.commitUpdate(e),t._publishQueue.run()}))},r.lookup=function(e){return this._store.lookup(e)},r.subscribe=function(e,t){return this._store.subscribe(e,t)},r.retain=function(e){return this._store.retain(e)},r.isServer=function(){return this._isServer},r._checkSelectorAndHandleMissingFields=function(e,t){var r=this,i=c.create(),n=this._store.check(e,{target:i,handlers:t});return i.size()>0&&this._scheduleUpdates((function(){r._publishQueue.commitSource(i),r._publishQueue.run()})),n},r._scheduleUpdates=function(e){var t=this._scheduler;null!=t?t.schedule(e):e()},r.execute=function(e){var t=this,r=e.operation,i=e.updater;return o.create((function(e){var n=t._network.execute(r.request.node.params,r.request.variables,r.request.cacheConfig||{},null),s=a.execute({operation:r,operationExecutions:t._operationExecutions,operationLoader:t._operationLoader,optimisticConfig:null,publishQueue:t._publishQueue,reactFlightPayloadDeserializer:t._reactFlightPayloadDeserializer,scheduler:t._scheduler,sink:e,source:n,store:t._store,updater:i,operationTracker:t._operationTracker,getDataID:t._getDataID,treatMissingFieldsAsNull:t._treatMissingFieldsAsNull});return function(){return s.cancel()}}))},r.executeMutation=function(e){var t=this,r=e.operation,n=e.optimisticResponse,s=e.optimisticUpdater,l=e.updater,u=e.uploadables;return o.create((function(e){var o;(n||s)&&(o={operation:r,response:n,updater:s});var c=t._network.execute(r.request.node.params,r.request.variables,(0,i.default)((0,i.default)({},r.request.cacheConfig),{},{force:!0}),u),d=a.execute({operation:r,operationExecutions:t._operationExecutions,operationLoader:t._operationLoader,optimisticConfig:o,publishQueue:t._publishQueue,reactFlightPayloadDeserializer:t._reactFlightPayloadDeserializer,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()}}))},r.executeWithSource=function(e){var t=this,r=e.operation,i=e.source;return o.create((function(e){var n=a.execute({operation:r,operationExecutions:t._operationExecutions,operationLoader:t._operationLoader,operationTracker:t._operationTracker,optimisticConfig:null,publishQueue:t._publishQueue,reactFlightPayloadDeserializer:t._reactFlightPayloadDeserializer,scheduler:t._scheduler,sink:e,source:i,store:t._store,getDataID:t._getDataID,treatMissingFieldsAsNull:t._treatMissingFieldsAsNull});return function(){return n.cancel()}}))},r.toJSON=function(){var e;return"RelayModernEnvironment(".concat(null!==(e=this.configName)&&void 0!==e?e:"",")")},r.__wrapNetworkWithLogObserver=function(e){var t=this;return{execute:function(r,i,n,s){var a=f(),o=t.__log,l={start:function(e){o({name:"network.start",transactionID:a,params:r,variables:i})},next:function(e){o({name:"network.next",transactionID:a,response:e})},error:function(e){o({name:"network.error",transactionID:a,error:e})},complete:function(){o({name:"network.complete",transactionID:a})},unsubscribe:function(){o({name:"network.unsubscribe",transactionID:a})}};return e.execute(r,i,n,s,(function(e){o({name:"network.info",transactionID:a,info:e})})).do(l)}}},e}());function _(){}p.prototype["@@RelayModernEnvironment"]=!0,e.exports=p}).call(this,r(53))},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 i=r(1),n=i(r(8)),s=i(r(7)),a=i(r(21)),o=r(36),l=r(5),u=r(14),c=r(17),d=r(56),h=r(28),f=r(0),p=r(13),_=(r(3),r(6).generateClientID),v=r(15).createNormalizationSelector,g=r(2),m=g.ROOT_TYPE,b=g.TYPENAME_KEY,E=g.getStorageKey;var y=function(){function e(e){var t=this,r=e.operation,i=e.operationExecutions,n=e.operationLoader,s=e.optimisticConfig,a=e.publishQueue,o=e.scheduler,l=e.sink,u=e.source,c=e.store,d=e.updater,h=e.operationTracker,f=e.treatMissingFieldsAsNull,p=e.getDataID,_=e.isClientPayload,v=e.reactFlightPayloadDeserializer;this._getDataID=p,this._treatMissingFieldsAsNull=f,this._incrementalPayloadsPending=!1,this._incrementalResults=new Map,this._nextSubscriptionId=0,this._operation=r,this._operationExecutions=i,this._operationLoader=n,this._operationTracker=h,this._operationUpdateEpochs=new Map,this._optimisticUpdates=null,this._pendingModulePayloadsCount=0,this._publishQueue=a,this._scheduler=o,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;var g=this._nextSubscriptionId++;u.subscribe({complete:function(){return t._complete(g)},error:function(e){return t._error(e)},next:function(e){try{t._next(g,e)}catch(e){l.error(e)}},start:function(e){return t._start(g,e)}}),null!=s&&this._processOptimisticResponse(null!=s.response?{data:s.response}:null,s.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,f(!1)}this._operationExecutions.set(this._operation.request.identifier,e)},t._schedule=function(e){var t=this,r=this._scheduler;if(null!=r){var i=this._nextSubscriptionId++;u.create((function(t){var i=r.schedule((function(){try{e(),t.complete()}catch(e){t.error(e)}}));return function(){return r.cancel(i)}})).subscribe({complete:function(){return t._complete(i)},error:function(e){return t._error(e)},start:function(e){return t._start(i,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 i=e.hasOwnProperty("errors")&&null!=e.errors?e.errors:null,n=i?i.map((function(e){return e.message})).join("\n"):"(No errors)",s=o.create("RelayNetwork","No data returned for operation `"+t._operation.request.node.params.name+"`, got error(s):\n"+n+"\n\nSee the error `source` property for more information.");throw s.source={errors:i,operation:t._operation.request.node,variables:t._operation.request.variables},s.stack,s}var a=e;r.push(a)}})),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)}))&&f(!1),!1;var r=e[0],i=!0===(null===(t=r.extensions)||void 0===t?void 0:t.isOptimistic);return i&&"started"!==this._state&&f(!1),!!i&&(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 i=function(e){var t=[],r=[];return e.forEach((function(e){if(null!=e.path||null!=e.label){var i=e.label,n=e.path;null!=i&&null!=n||f(!1),r.push({label:i,path:n,response:e})}else t.push(e)})),[t,r]}(r),n=i[0],s=i[1];if(n.length>0){var a=this._processResponses(n),o=this._publishQueue.run(this._operation);this._updateOperationTracker(o),this._processPayloadFollowups(a),this._incrementalPayloadsPending&&!this._retainDisposable&&(this._retainDisposable=this._store.retain(this._operation))}if(s.length>0){var l=this._processIncrementalResponses(s),u=this._publishQueue.run();this._updateOperationTracker(u),this._processPayloadFollowups(l)}this._sink.next(e)}}},t._processOptimisticResponse=function(e,t,r){var i=this;if(null!==this._optimisticUpdates&&f(!1),null!=e||null!=t){var n=[];if(e){var s=R(e,this._operation.root,m,{getDataID:this._getDataID,path:[],reactFlightPayloadDeserializer:this._reactFlightPayloadDeserializer,treatMissingFieldsAsNull:r});I(s),n.push({operation:this._operation,payload:s,updater:t}),this._processOptimisticFollowups(s,n)}else t&&n.push({operation:this._operation,payload:{errors:null,fieldPayloads:null,incrementalPlaceholders:null,moduleImportPayloads:null,source:c.create(),isFinal:!1},updater:t});this._optimisticUpdates=n,n.forEach((function(e){return i._publishQueue.applyUpdate(e)})),this._publishQueue.run()}},t._processOptimisticFollowups=function(e,t){if(e.moduleImportPayloads&&e.moduleImportPayloads.length){var r=e.moduleImportPayloads,i=this._operationLoader;i||f(!1);var n,o=(0,s.default)(r);try{for(o.s();!(n=o.n()).done;){var l=n.value,u=i.get(l.operationReference);if(null==u)this._processAsyncOptimisticModuleImport(i,l);else{var c=this._processOptimisticModuleImport(u,l);t.push.apply(t,(0,a.default)(c))}}}catch(e){o.e(e)}finally{o.f()}}},t._normalizeModuleImport=function(e,t){var r=v(t,e.dataID,e.variables);return R({data:e.data},r,e.typeName,{getDataID:this._getDataID,path:e.path,reactFlightPayloadDeserializer:this._reactFlightPayloadDeserializer,treatMissingFieldsAsNull:this._treatMissingFieldsAsNull})},t._processOptimisticModuleImport=function(e,t){var r=h(e),i=[],n=this._normalizeModuleImport(t,r);return I(n),i.push({operation:this._operation,payload:n,updater:null}),this._processOptimisticFollowups(n,i),i},t._processAsyncOptimisticModuleImport=function(e,t){var r=this;e.load(t.operationReference).then((function(e){if(null!=e&&"started"===r._state){var i,n=r._processOptimisticModuleImport(e,t);if(n.forEach((function(e){return r._publishQueue.applyUpdate(e)})),null==r._optimisticUpdates);else(i=r._optimisticUpdates).push.apply(i,(0,a.default)(n)),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=R(e,t._operation.root,m,{getDataID:t._getDataID,path:[],reactFlightPayloadDeserializer:t._reactFlightPayloadDeserializer,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,i=e.moduleImportPayloads,n=e.isFinal;if(t._state=n?"loading_final":"loading_incremental",t._updateActiveState(),n&&(t._incrementalPayloadsPending=!1),i&&0!==i.length){var s=t._operationLoader;s||f(!1),i.forEach((function(e){t._processModuleImportPayload(e,s)}))}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)){var a=[];if(r.forEach((function(e){"defer"===e.kind&&a.push(t._processDeferResponse(e.label,e.path,e,{data:e.data}))})),a.length>0){var o=t._publishQueue.run();t._updateOperationTracker(o),t._processPayloadFollowups(a)}}}))},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,i=t.get(e.operationReference);if(null!=i){var n=h(i);this._handleModuleImportPayload(e,n),this._maybeCompleteSubscriptionOperationTracking()}else{var s=this._nextSubscriptionId++;this._pendingModulePayloadsCount++;var a=function(){r._pendingModulePayloadsCount--,r._maybeCompleteSubscriptionOperationTracking()};u.from(new Promise((function(r,i){t.load(e.operationReference).then(r,i)}))).map((function(t){null!=t&&r._schedule((function(){r._handleModuleImportPayload(e,h(t))}))})).subscribe({complete:function(){r._complete(s),a()},error:function(e){r._error(e),a()},start:function(e){return r._start(s,e)}})}},t._handleModuleImportPayload=function(e,t){var r=this._normalizeModuleImport(e,t);this._publishQueue.commitPayload(this._operation,r);var i=this._publishQueue.run();this._updateOperationTracker(i),this._processPayloadFollowups([r])},t._processIncrementalPlaceholder=function(e,t){var r,i=t.label,n=t.path.map(String).join("."),s=this._incrementalResults.get(i);null==s&&(s=new Map,this._incrementalResults.set(i,s));var a,o=s.get(n),u=null!=o&&"response"===o.kind?o.responses:null;s.set(n,{kind:"placeholder",placeholder:t}),"stream"===t.kind?a=t.parentID:"defer"===t.kind?a=t.selector.dataID:f(!1);var c,d,h=e.source.get(a),v=(null!==(r=e.fieldPayloads)&&void 0!==r?r:[]).filter((function(e){var t=_(e.dataID,e.fieldKey);return e.dataID===a||t===a}));null==h&&f(!1);var g=this._source.get(a);if(null!=g){c=l.update(g.record,h);var m=new Map,b=function(e){var t,r,i=(t=e,null!==(r=JSON.stringify(p(t)))&&void 0!==r?r:"");m.set(i,e)};g.fieldPayloads.forEach(b),v.forEach(b),d=Array.from(m.values())}else c=h,d=v;if(this._source.set(a,{record:c,fieldPayloads:d}),null!=u){var E=this._processIncrementalResponses(u),y=this._publishQueue.run();this._updateOperationTracker(y),this._processPayloadFollowups(E)}},t._processIncrementalResponses=function(e){var t=this,r=[];return e.forEach((function(e){var i=e.label,n=e.path,s=e.response,a=t._incrementalResults.get(i);if(null==a&&(a=new Map,t._incrementalResults.set(i,a)),-1!==i.indexOf("$defer$")){var o=n.map(String).join("."),l=a.get(o);if(null==l)return l={kind:"response",responses:[e]},void a.set(o,l);if("response"===l.kind)return void l.responses.push(e);var u=l.placeholder;"defer"!==u.kind&&f(!1),r.push(t._processDeferResponse(i,n,u,s))}else{var c=n.slice(0,-2).map(String).join("."),d=a.get(c);if(null==d)return d={kind:"response",responses:[e]},void a.set(c,d);if("response"===d.kind)return void d.responses.push(e);var h=d.placeholder;"stream"!==h.kind&&f(!1),r.push(t._processStreamResponse(i,n,h,s))}})),r},t._processDeferResponse=function(e,t,r,i){var n=r.selector.dataID,s=R(i,r.selector,r.typeName,{getDataID:this._getDataID,path:r.path,reactFlightPayloadDeserializer:this._reactFlightPayloadDeserializer,treatMissingFieldsAsNull:this._treatMissingFieldsAsNull});this._publishQueue.commitPayload(this._operation,s);var a=this._source.get(n);null==a&&f(!1);var o=a.fieldPayloads;if(0!==o.length){var l,u={errors:null,fieldPayloads:o,incrementalPlaceholders:null,moduleImportPayloads:null,source:c.create(),isFinal:!0===(null===(l=i.extensions)||void 0===l?void 0:l.is_final)};this._publishQueue.commitPayload(this._operation,u)}return s},t._processStreamResponse=function(e,t,r,i){var n=r.parentID,s=r.node,o=r.variables,l=s.selections[0];(null==l||"LinkedField"!==l.kind||!0!==l.plural)&&f(!1);var u=this._normalizeStreamItem(i,n,l,o,t,r.path),d=u.fieldPayloads,h=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(n);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 i=(0,a.default)(r);i[p]=e.get(h),t.setLinkedRecords(i,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,i,n,s){var o,u,c,d=e.data;"object"!=typeof d&&f(!1);var h=null!==(o=r.alias)&&void 0!==o?o:r.name,p=E(r,i),g=this._source.get(t);null==g&&f(!1);var m=g.record,y=g.fieldPayloads,I=l.getLinkedRecordIDs(m,p);null==I&&f(!1);var D=n[n.length-1],S=parseInt(D,10);S===D&&S>=0||f(!1);var k=null!==(u=r.concreteType)&&void 0!==u?u:d[b];"string"!=typeof k&&f(!1);var T=(null!==(c=this._getDataID(d,k))&&void 0!==c?c:I&&I[S])||_(t,p,S);"string"!=typeof T&&f(!1);var F=v(r,T,i),N=l.clone(m),O=(0,a.default)(I);return O[S]=T,l.setLinkedRecordIDs(N,p,O),this._source.set(t,{record:N,fieldPayloads:y}),{fieldPayloads:y,itemID:T,itemIndex:S,prevIDs:I,relayPayload:R(e,F,k,{getDataID:this._getDataID,path:[].concat((0,a.default)(s),[h,String(S)]),reactFlightPayloadDeserializer:this._reactFlightPayloadDeserializer,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 R(e,t,r,i){var s,a=e.data,o=e.errors,u=c.create(),h=l.create(t.dataID,r);u.set(t.dataID,h);var f=d.normalize(u,t,a,i);return(0,n.default)((0,n.default)({},f),{},{errors:o,isFinal:!0===(null===(s=e.extensions)||void 0===s?void 0:s.is_final)})}function I(e){var t=e.incrementalPlaceholders;null!=t&&0!==t.length&&f(!1)}e.exports={execute:function(e){return new y(e)}}},function(e,t,r){"use strict";var i=r(1)(r(7)),n=r(22),s=n.EXISTENT,a=n.NONEXISTENT,o=n.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)?a:s:o},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,i.default)(this._records);try{for(r.s();!(e=r.n()).done;){var n=e.value,s=n[0],a=n[1];t[s]=a}}catch(e){r.e(e)}finally{r.f()}return t},e}();e.exports=l},function(e,t,r){"use strict";var i=r(1),n=i(r(7)),s=i(r(21)),a=r(9),o=r(5),l=r(27),u=(r(11),r(0)),c=(r(3),r(4)),d=c.CONDITION,h=c.CLIENT_EXTENSION,f=c.DEFER,p=c.FLIGHT_FIELD,_=c.INLINE_FRAGMENT,v=c.LINKED_FIELD,g=c.LINKED_HANDLE,m=c.MODULE_IMPORT,b=c.SCALAR_FIELD,E=c.SCALAR_HANDLE,y=c.STREAM,R=c.TYPE_DISCRIMINATOR,I=r(6),D=I.generateClientID,S=(I.isClientID,r(15).createNormalizationSelector),k=r(18),T=k.refineToReactFlightPayloadData,F=k.REACT_FLIGHT_QUERIES_STORAGE_KEY,N=k.REACT_FLIGHT_TREE_STORAGE_KEY,O=k.REACT_FLIGHT_TYPE_NAME,A=r(2),P=A.getArgumentValues,L=A.getHandleStorageKey,M=A.getModuleComponentKey,w=A.getModuleOperationKey,x=A.getStorageKey,C=A.TYPENAME_KEY,U=A.ROOT_ID,V=A.ROOT_TYPE,q=r(23),K=q.generateTypeID,j=q.TYPE_SCHEMA_TYPE;var H=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,s.default)(r.path):[],this._recordSource=e,this._variables=t,this._reactFlightPayloadDeserializer=r.reactFlightPayloadDeserializer}var t=e.prototype;return t.normalizeResponse=function(e,t,r){var i=this._recordSource.get(t);return i||u(!1),this._traverseSelections(e,i,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)||u(!1),this._variables[e]},t._getRecordType=function(e){var t=e[C];return null==t&&u(!1),t},t._traverseSelections=function(e,t,r){for(var i=0;i<e.selections.length;i++){var n=e.selections[i];switch(n.kind){case b:case v:this._normalizeField(e,n,t,r);break;case d:this._getVariableValue(n.condition)===n.passingValue&&this._traverseSelections(n,t,r);break;case _:var s=n.abstractKey;if(null==s)o.getType(t)===n.type&&this._traverseSelections(n,t,r);else if(a.ENABLE_PRECISE_TYPE_REFINEMENT){var l=r.hasOwnProperty(s),c=o.getType(t),I=K(c),D=this._recordSource.get(I);null==D&&(D=o.create(I,j),this._recordSource.set(I,D)),o.setValue(D,s,l),l&&this._traverseSelections(n,t,r)}else{var S=r.hasOwnProperty(s),k=this._isUnmatchedAbstractType;this._isUnmatchedAbstractType=this._isUnmatchedAbstractType||!S,this._traverseSelections(n,t,r),this._isUnmatchedAbstractType=k}break;case R:if(a.ENABLE_PRECISE_TYPE_REFINEMENT){var T=n.abstractKey,F=r.hasOwnProperty(T),N=o.getType(t),O=K(N),A=this._recordSource.get(O);null==A&&(A=o.create(O,j),this._recordSource.set(O,A)),o.setValue(A,T,F)}break;case g:case E:var M=n.args?P(n.args,this._variables):{},w=x(n,this._variables),C=L(n,this._variables);this._handleFieldPayloads.push({args:M,dataID:o.getDataID(t),fieldKey:w,handle:n.handle,handleKey:C,handleArgs:n.handleArgs?P(n.handleArgs,this._variables):{}});break;case m:this._normalizeModuleImport(e,n,t,r);break;case f:this._normalizeDefer(n,t,r);break;case y:this._normalizeStream(n,t,r);break;case h:var U=this._isClientExtension;this._isClientExtension=!0,this._traverseSelections(n,t,r),this._isClientExtension=U;break;case p:if(!a.ENABLE_REACT_FLIGHT_COMPONENT_FIELD)throw new Error("Flight fields are not yet supported.");this._normalizeFlightField(e,n,t,r);break;default:u(!1)}}},t._normalizeDefer=function(e,t,r){!1===(null===e.if||this._getVariableValue(e.if))?this._traverseSelections(e,t,r):this._incrementalPlaceholders.push({kind:"defer",data:r,label:e.label,path:(0,s.default)(this._path),selector:S(e,o.getDataID(t),this._variables),typeName:o.getType(t)})},t._normalizeStream=function(e,t,r){this._traverseSelections(e,t,r),!0===(null===e.if||this._getVariableValue(e.if))&&this._incrementalPlaceholders.push({kind:"stream",label:e.label,path:(0,s.default)(this._path),parentID:o.getDataID(t),node:e,variables:this._variables})},t._normalizeModuleImport=function(e,t,r,i){"object"==typeof i&&i||u(!1);var n=o.getType(r),a=M(t.documentName),l=i[a];o.setValue(r,a,null!=l?l:null);var c=w(t.documentName),d=i[c];o.setValue(r,c,null!=d?d:null),null!=d&&this._moduleImportPayloads.push({data:i,dataID:o.getDataID(r),operationReference:d,path:(0,s.default)(this._path),typeName:n,variables:this._variables})},t._normalizeField=function(e,t,r,i){"object"==typeof i&&i||u(!1);var n=t.alias||t.name,s=x(t,this._variables),a=i[n];if(null!=a)t.kind===b?o.setValue(r,s,a):t.kind===v?(this._path.push(n),t.plural?this._normalizePluralLink(t,r,s,a):this._normalizeLink(t,r,s,a),this._path.pop()):u(!1);else{if(void 0===a){if(this._isClientExtension||this._isUnmatchedAbstractType)return;if(!this._treatMissingFieldsAsNull)return void 0}o.setValue(r,s,null)}},t._normalizeFlightField=function(e,t,r,i){var s=t.alias||t.name,a=x(t,this._variables),l=i[s];if(null!=l){var c=T(l);null==c&&u(!1),"function"!=typeof this._reactFlightPayloadDeserializer&&u(!1);var d=this._reactFlightPayloadDeserializer(c.tree),h=D(o.getDataID(r),x(t,this._variables)),f=this._recordSource.get(h);null==f&&(f=o.create(h,O),this._recordSource.set(h,f)),o.setValue(f,N,d);var p,_=[],v=(0,n.default)(c.queries);try{for(v.s();!(p=v.n()).done;){var g=p.value;null!=g.response.data&&this._moduleImportPayloads.push({data:g.response.data,dataID:U,operationReference:g.module,path:[],typeName:V,variables:g.variables}),_.push({module:g.module,variables:g.variables})}}catch(e){v.e(e)}finally{v.f()}o.setValue(f,F,_),o.setLinkedRecordID(r,a,h)}else o.setValue(r,a,null)},t._normalizeLink=function(e,t,r,i){var n;"object"==typeof i&&i||u(!1);var s=this._getDataId(i,null!==(n=e.concreteType)&&void 0!==n?n:this._getRecordType(i))||o.getLinkedRecordID(t,r)||D(o.getDataID(t),r);"string"!=typeof s&&u(!1),o.setLinkedRecordID(t,r,s);var a=this._recordSource.get(s);if(a)0;else{var l=e.concreteType||this._getRecordType(i);a=o.create(s,l),this._recordSource.set(s,a)}this._traverseSelections(e,a,i)},t._normalizePluralLink=function(e,t,r,i){var n=this;Array.isArray(i)||u(!1);var s=o.getLinkedRecordIDs(t,r),a=[];i.forEach((function(i,l){var c;if(null!=i){n._path.push(String(l)),"object"!=typeof i&&u(!1);var d=n._getDataId(i,null!==(c=e.concreteType)&&void 0!==c?c:n._getRecordType(i))||s&&s[l]||D(o.getDataID(t),r,l);"string"!=typeof d&&u(!1),a.push(d);var h=n._recordSource.get(d);if(h)0;else{var f=e.concreteType||n._getRecordType(i);h=o.create(d,f),n._recordSource.set(d,h)}0,n._traverseSelections(e,h,i),n._path.pop()}else a.push(i)})),o.setLinkedRecordIDs(t,r,a)},t._validateRecordType=function(e,t,r){var i;null!==(i=t.concreteType)&&void 0!==i||this._getRecordType(r),o.getDataID(e)},t._validateConflictingFieldsWithIdenticalId=function(e,t,r){},t._validateConflictingLinkedFieldsWithIdenticalId=function(e,t,r,i){0},e}(),G=l.instrument("RelayResponseNormalizer.normalize",(function(e,t,r,i){var n=t.dataID,s=t.node,a=t.variables;return new H(e,a,i).normalizeResponse(s,n,r)}));e.exports={normalize:G}},function(e,t,r){"use strict";var i=r(58),n=r(24),s=r(17),a=r(39),o=r(40),l=r(60),u=r(0),c=(r(3),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),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){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._store.notify(e,t)},t._publishSourceFromPayload=function(e){var t=this,r=e.payload,i=e.operation,n=e.updater,s=r.source,c=r.fieldPayloads,h=new a(this._store.getSource(),s),f=new o(h,this._getDataID);if(c&&c.length&&c.forEach((function(e){var r=t._handlerProvider&&t._handlerProvider(e.handle);r||u(!1),r.update(f,e)})),n){var p=i.fragment;null==p&&u(!1),n(new l(h,f,p),d(s,p))}var _=f.getIDsMarkedForInvalidation();return this._store.publish(s,_),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 l=r.source;e._store.publish(l)}else{var u=r.updater,c=s.create(),d=new a(e._store.getSource(),c),h=new o(d,e._getDataID);i.applyWithGuard(u,null,[h],null,"RelayPublishQueue:commitData"),t=t||h.isStoreMarkedForInvalidation();var f=h.getIDsMarkedForInvalidation();e._store.publish(c,f)}})),this._pendingData.clear(),t},t._applyUpdates=function(){var e=this,t=s.create(),r=new a(this._store.getSource(),t),n=new o(r,this._getDataID,this._handlerProvider),u=function(e){if(e.storeUpdater){var t=e.storeUpdater;i.applyWithGuard(t,null,[n],null,"RelayPublishQueue:applyUpdates")}else{var s,a=e.operation,o=e.payload,u=e.updater,c=o.source,h=o.fieldPayloads,f=new l(r,n,a.fragment);c&&(n.publishSource(c,h),s=d(c,a.fragment)),u&&i.applyWithGuard(u,null,[f,s],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 d(e,t){return n.read(e,t).data}e.exports=c},function(e,t){e.exports=l},function(e,t,r){"use strict";var i=r(0),n=r(6).generateClientID,s=r(2).getStableStorageKey,a=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&&i(!1),e},t.getValue=function(e,t){var r=s(e,t);return this._mutator.getValue(this._dataID,r)},t.setValue=function(e,t,r){o(e)||i(!1);var n=s(t,r);return this._mutator.setValue(this._dataID,n,e),this},t.getLinkedRecord=function(e,t){var r=s(e,t),i=this._mutator.getLinkedRecordID(this._dataID,r);return null!=i?this._source.get(i):i},t.setLinkedRecord=function(t,r,n){t instanceof e||i(!1);var a=s(r,n),o=t.getDataID();return this._mutator.setLinkedRecordID(this._dataID,a,o),this},t.getOrCreateLinkedRecord=function(e,t,r){var i=this.getLinkedRecord(e,r);if(!i){var a,o=s(e,r),l=n(this.getDataID(),o);i=null!==(a=this._source.get(l))&&void 0!==a?a:this._source.create(l,t),this.setLinkedRecord(i,e,r)}return i},t.getLinkedRecords=function(e,t){var r=this,i=s(e,t),n=this._mutator.getLinkedRecordIDs(this._dataID,i);return null==n?n:n.map((function(e){return null!=e?r._source.get(e):e}))},t.setLinkedRecords=function(e,t,r){Array.isArray(e)||i(!1);var n=s(t,r),a=e.map((function(e){return e&&e.getDataID()}));return this._mutator.setLinkedRecordIDs(this._dataID,n,a),this},t.invalidateRecord=function(){this._source.markIDForInvalidation(this._dataID)},e}();function o(e){return null==e||"object"!=typeof e||Array.isArray(e)&&e.every(o)}e.exports=a},function(e,t,r){"use strict";var i=r(0),n=r(2),s=n.getStorageKey,a=n.ROOT_TYPE,o=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,a)),e},t._getRootField=function(e,t,r){var n=e.node.selections.find((function(e){return"LinkedField"===e.kind&&e.name===t}));return n&&"LinkedField"===n.kind||i(!1),n.plural!==r&&i(!1),n},t.getRootField=function(e){var t=this._getRootField(this._readSelector,e,!1),r=s(t,this._readSelector.variables);return this.getOperationRoot().getLinkedRecord(r)},t.getPluralRootField=function(e){var t=this._getRootField(this._readSelector,e,!0),r=s(t,this._readSelector.variables);return this.getOperationRoot().getLinkedRecords(r)},t.invalidateStore=function(){this.__recordSource.invalidateStore()},e}();e.exports=o},function(e,t,r){"use strict";e.exports=function(e){0}},function(e,t,r){"use strict";var i=1e5;e.exports=function(){return i++}},function(e,t,r){"use strict";var i=r(1),n=i(r(7)),s=i(r(29)),a=r(64),o=r(9),l=r(5),u=r(66),c=r(27),d=r(24),h=r(67),f=r(18),p=r(68),_=r(70),v=r(2),g=(r(12),r(41)),m=r(0),b=r(71),E=r(2),y=E.ROOT_ID,R=E.ROOT_TYPE,I=function(){function e(e,t){var r,i,n,a,u,c=this;(0,s.default)(this,"_gcStep",(function(){c._gcRun&&(c._gcRun.next().done?c._gcRun=null:c._gcScheduler(c._gcStep))})),this._currentWriteEpoch=0,this._gcHoldCounter=0,this._gcReleaseBufferSize=null!==(r=null==t?void 0:t.gcReleaseBufferSize)&&void 0!==r?r:0,this._gcRun=null,this._gcScheduler=null!==(i=null==t?void 0:t.gcScheduler)&&void 0!==i?i:b,this._getDataID=null!==(n=null==t?void 0:t.UNSTABLE_DO_NOT_USE_getDataID)&&void 0!==n?n:g,this._globalInvalidationEpoch=null,this._invalidationSubscriptions=new Set,this._invalidatedRecordIDs=new Set,this.__log=null!==(a=null==t?void 0:t.log)&&void 0!==a?a: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===o.ENABLE_STORE_SUBSCRIPTIONS_REFACTOR?new _:new p,this._updatedRecordIDs={},function(e){if(!e.has(y)){var t=l.create(y,R);e.set(y,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,i,n,s=e.root,o=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!==(i=null==t?void 0:t.target)&&void 0!==i?i:o,h=null!==(n=null==t?void 0:t.handlers)&&void 0!==n?n:[];return function(e,t,r,i){var n=e.mostRecentlyInvalidatedAt,s=e.status;if("number"==typeof n&&(null==t||n>t))return{status:"stale"};if("missing"===s)return{status:"missing"};if(null!=r&&null!=i){if(r<=Date.now()-i)return{status:"stale"}}return{status:"available",fetchTime:null!=r?r:null}}(a.check(o,d,s,h,this._operationLoader,this._getDataID),c,null==u?void 0:u.fetchTime,this._queryCacheExpirationTime)},t.retain=function(e){var t=this,r=e.request.identifier,i=!1,n=this._roots.get(r);return null!=n?(0===n.refCount&&(this._releaseBuffer=this._releaseBuffer.filter((function(e){return e!==r}))),n.refCount+=1):this._roots.set(r,{operation:e,refCount:1,epoch:null,fetchTime:null}),{dispose:function(){if(!i){i=!0;var e=t._roots.get(r);if(null!=e&&(e.refCount--,0===e.refCount)){var n=t._queryCacheExpirationTime;if(null!=e.fetchTime&&null!=n&&e.fetchTime<=Date.now()-n)t._roots.delete(r),t.scheduleGC();else if(t._releaseBuffer.push(r),t._releaseBuffer.length>t._gcReleaseBufferSize){var s=t._releaseBuffer.shift();t._roots.delete(s),t.scheduleGC()}}}}}},t.lookup=function(e){var t=this.getSource();return d.read(t,e)},t.notify=function(e,t){var r=this,i=this.__log;null!=i&&i({name:"store.notify.start"}),this._currentWriteEpoch++,!0===t&&(this._globalInvalidationEpoch=this._currentWriteEpoch);var n=this.getSource(),s=[];if(this._storeSubscriptions.updateSubscriptions(n,this._updatedRecordIDs,s),this._invalidationSubscriptions.forEach((function(e){r._updateInvalidationSubscription(e,!0===t)})),null!=i&&i({name:"store.notify.complete",updatedRecordIDs:this._updatedRecordIDs,invalidatedRecordIDs:this._invalidatedRecordIDs}),this._updatedRecordIDs={},this._invalidatedRecordIDs.clear(),null!=e){var a=e.request.identifier,o=this._roots.get(a);if(null!=o)o.epoch=this._currentWriteEpoch,o.fetchTime=Date.now();else if("query"===e.request.node.params.operationKind&&this._gcReleaseBufferSize>0&&this._releaseBuffer.length<this._gcReleaseBufferSize){var l={operation:e,refCount:0,epoch:this._currentWriteEpoch,fetchTime:Date.now()};this._releaseBuffer.push(a),this._roots.set(a,l)}}return s},t.publish=function(e,t){var r,i=null!==(r=this._optimisticSource)&&void 0!==r?r:this._recordSource;!function(e,t,r,i,n,s){i&&i.forEach((function(i){var n,a=e.get(i),o=t.get(i);null!==o&&((n=null!=a?l.clone(a):null!=o?l.clone(o):null)&&(l.setValue(n,v.INVALIDATED_AT_KEY,r),s.add(i),e.set(i,n)))}));for(var a=t.getRecordIDs(),o=0;o<a.length;o++){var u=a[o],c=t.get(u),d=e.get(u);if(c&&d){var h=l.getType(d)===f.REACT_FLIGHT_TYPE_NAME?c:l.update(d,c);h!==d&&(n[u]=!0,e.set(u,h))}else null===c?(e.delete(u),null!==d&&(n[u]=!0)):c&&(e.set(u,c),n[u]=!0)}}(i,e,this._currentWriteEpoch+1,t,this._updatedRecordIDs,this._invalidatedRecordIDs);var n=this.__log;null!=n&&n({name:"store.publish",source:e,optimistic:i===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 i,n=t.getSource().get(e);r.set(e,null!==(i=l.getInvalidationEpoch(n))&&void 0!==i?i: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 i,s=(0,n.default)(e.dataIDs);try{for(s.s();!(i=s.n()).done;){var a=i.value;if(t.get(a)!==r.get(a))return!0}}catch(e){s.e(e)}finally{s.f()}return!1},t.subscribeToInvalidationState=function(e,t){var r=this,i={callback:t,invalidationState:e};return this._invalidationSubscriptions.add(i),{dispose:function(){r._invalidationSubscriptions.delete(i)}}},t._updateInvalidationSubscription=function(e,t){var r=this,i=e.callback,n=e.invalidationState.dataIDs;(t||n.some((function(e){return r._invalidatedRecordIDs.has(e)})))&&i()},t.snapshot=function(){null!=this._optimisticSource&&m(!1);var e=this.__log;null!=e&&e({name:"store.snapshot"}),this._storeSubscriptions.snapshotSubscriptions(this.getSource()),this._gcRun&&(this._gcRun=null,this._shouldScheduleGC=!0),this._optimisticSource=u.create(this.getSource())},t.restore=function(){null==this._optimisticSource&&m(!1);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,i=(0,n.default)(this._roots.values());try{for(i.s();!(e=i.n()).done;){var s=e.value.operation.root;if(h.mark(this._recordSource,s,r,this._operationLoader),yield,t!==this._currentWriteEpoch)continue e}}catch(e){i.e(e)}finally{i.f()}var a=this.__log;if(null!=a&&a({name:"store.gc",references:r}),0===r.size)this._recordSource.clear();else for(var o=this._recordSource.getRecordIDs(),l=0;l<o.length;l++){var u=o[l];r.has(u)||this._recordSource.remove(u)}return}},e}();c.instrumentMethods(I.prototype,{lookup:"RelayModernStore.prototype.lookup"}),e.exports=I},function(e,t,r){"use strict";var i=r(1)(r(7)),n=r(4),s=r(9),a=r(5),o=r(39),l=r(40),u=r(18),c=r(2),d=r(44),h=r(65),f=r(28),p=r(0),_=r(6).isClientID,v=r(22),g=v.EXISTENT,m=v.UNKNOWN,b=r(23).generateTypeID,E=n.CONDITION,y=n.CLIENT_EXTENSION,R=n.DEFER,I=n.FLIGHT_FIELD,D=n.FRAGMENT_SPREAD,S=n.INLINE_FRAGMENT,k=n.LINKED_FIELD,T=n.LINKED_HANDLE,F=n.MODULE_IMPORT,N=n.SCALAR_FIELD,O=n.SCALAR_HANDLE,A=n.STREAM,P=n.TYPE_DISCRIMINATOR,L=c.ROOT_ID,M=c.getModuleOperationKey,w=c.getStorageKey,x=c.getArgumentValues;var C=function(){function e(e,t,r,i,n,s){var a=new o(e,t);this._mostRecentlyInvalidatedAt=null,this._handlers=i,this._mutator=a,this._operationLoader=null!=n?n:null,this._recordSourceProxy=new l(a,s),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),this._variables[e]},t._handleMissing=function(){this._recordWasMissing=!0},t._getDataForHandlers=function(e,t){return{args:e.args?x(e.args,this._variables):{},record:this._source.get(t)}},t._handleMissingScalarField=function(e,t){if("id"!==e.name||null!=e.alias||!_(t)){var r,n=this._getDataForHandlers(e,t),s=n.args,a=n.record,o=(0,i.default)(this._handlers);try{for(o.s();!(r=o.n()).done;){var l=r.value;if("scalar"===l.kind){var u=l.handle(e,a,s,this._recordSourceProxy);if(void 0!==u)return u}}}catch(e){o.e(e)}finally{o.f()}this._handleMissing()}},t._handleMissingLinkField=function(e,t){var r,n=this._getDataForHandlers(e,t),s=n.args,a=n.record,o=(0,i.default)(this._handlers);try{for(o.s();!(r=o.n()).done;){var l=r.value;if("linked"===l.kind){var u=l.handle(e,a,s,this._recordSourceProxy);if(void 0!==u&&(null===u||this._mutator.getStatus(u)===g))return u}}}catch(e){o.e(e)}finally{o.f()}this._handleMissing()},t._handleMissingPluralLinkField=function(e,t){var r,n=this,s=this._getDataForHandlers(e,t),a=s.args,o=s.record,l=(0,i.default)(this._handlers);try{for(l.s();!(r=l.n()).done;){var u=r.value;if("pluralLinked"===u.kind){var c=u.handle(e,o,a,this._recordSourceProxy);if(null!=c){if(c.every((function(e){return null!=e&&n._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 i=this._source.get(t),n=a.getInvalidationEpoch(i);null!=n&&(this._mostRecentlyInvalidatedAt=null!=this._mostRecentlyInvalidatedAt?Math.max(this._mostRecentlyInvalidatedAt,n):n),this._traverseSelections(e.selections,t)}},t._traverseSelections=function(e,t){var r=this;e.forEach((function(i){switch(i.kind){case N:r._checkScalar(i,t);break;case k:i.plural?r._checkPluralLink(i,t):r._checkLink(i,t);break;case E:r._getVariableValue(i.condition)===i.passingValue&&r._traverseSelections(i.selections,t);break;case S:var n=i.abstractKey;if(null==n)r._mutator.getType(t)===i.type&&r._traverseSelections(i.selections,t);else if(s.ENABLE_PRECISE_TYPE_REFINEMENT){var a=r._mutator.getType(t);null==a&&p(!1);var o=b(a),l=r._mutator.getValue(o,n);!0===l?r._traverseSelections(i.selections,t):null==l&&r._handleMissing()}else r._traverseSelections(i.selections,t);break;case T:var u=d(i,e,r._variables);u.plural?r._checkPluralLink(u,t):r._checkLink(u,t);break;case O:var c=h(i,e,r._variables);r._checkScalar(c,t);break;case F:r._checkModuleImport(i,t);break;case R:case A:r._traverseSelections(i.selections,t);break;case D:p(!1);break;case y:var f=r._recordWasMissing;r._traverseSelections(i.selections,t),r._recordWasMissing=f;break;case P:if(s.ENABLE_PRECISE_TYPE_REFINEMENT){var _=i.abstractKey,v=r._mutator.getType(t);null==v&&p(!1);var g=b(v);null==r._mutator.getValue(g,_)&&r._handleMissing()}break;case I:if(!s.ENABLE_REACT_FLIGHT_COMPONENT_FIELD)throw new Error("Flight fields are not yet supported.");r._checkFlightField(i,t);break;default:p(!1)}}))},t._checkModuleImport=function(e,t){var r=this._operationLoader;null===r&&p(!1);var i=M(e.documentName),n=this._mutator.getValue(t,i);if(null!=n){var s=r.get(n);if(null!=s){var a=f(s);this._traverse(a,t)}else this._handleMissing()}else void 0===n&&this._handleMissing()},t._checkScalar=function(e,t){var r=w(e,this._variables),i=this._mutator.getValue(t,r);void 0===i&&void 0!==(i=this._handleMissingScalarField(e,t))&&this._mutator.setValue(t,r,i)},t._checkLink=function(e,t){var r=w(e,this._variables),i=this._mutator.getLinkedRecordID(t,r);void 0===i&&(null!=(i=this._handleMissingLinkField(e,t))?this._mutator.setLinkedRecordID(t,r,i):null===i&&this._mutator.setValue(t,r,null)),null!=i&&this._traverse(e,i)},t._checkPluralLink=function(e,t){var r=this,i=w(e,this._variables),n=this._mutator.getLinkedRecordIDs(t,i);void 0===n&&(null!=(n=this._handleMissingPluralLinkField(e,t))?this._mutator.setLinkedRecordIDs(t,i,n):null===n&&this._mutator.setValue(t,i,null)),n&&n.forEach((function(t){null!=t&&r._traverse(e,t)}))},t._checkFlightField=function(e,t){var r=w(e,this._variables),n=this._mutator.getLinkedRecordID(t,r);if(null==n)return void 0===n?void this._handleMissing():void 0;var s=this._mutator.getValue(n,u.REACT_FLIGHT_TREE_STORAGE_KEY),a=this._mutator.getValue(n,u.REACT_FLIGHT_QUERIES_STORAGE_KEY);if(null!=s&&Array.isArray(a)){var o=this._operationLoader;null===o&&p(!1);var l,c=this._variables,d=(0,i.default)(a);try{for(d.s();!(l=d.n()).done;){var h=l.value;this._variables=h.variables;var _=o.get(h.module);if(null!=_){var v=f(_);this._traverseSelections(v.selections,L)}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,i,n,s){var a=r.dataID,o=r.node,l=r.variables;return new C(e,t,l,i,n,s).check(o,a)}}},function(e,t,r){"use strict";var i=r(11),n=r(0),s=r(4).SCALAR_FIELD,a=r(2).getHandleStorageKey;e.exports=function(e,t,r){var o=t.find((function(t){return t.kind===s&&t.name===e.name&&t.alias===e.alias&&i(t.args,e.args)}));o&&o.kind===s||n(!1);var l=a(e,r);return{kind:"ScalarField",alias:o.alias,name:l,storageKey:l,args:null}}},function(e,t,r){"use strict";var i=r(1)(r(8)),n=r(17),s=Object.freeze({__UNPUBLISH_RECORD_SENTINEL:!0}),a=function(){function e(e){this._base=e,this._sink=n.create()}var t=e.prototype;return t.has=function(e){return this._sink.has(e)?this._sink.get(e)!==s:this._base.has(e)},t.get=function(e){if(this._sink.has(e)){var t=this._sink.get(e);return t===s?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=n.create(),this._sink.clear()},t.delete=function(e){this._sink.delete(e)},t.remove=function(e){this._sink.set(e,s)},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,i.default)({},this._base.toJSON());return this._sink.getRecordIDs().forEach((function(r){var i=e.get(r);void 0===i?delete t[r]:t[r]=i})),t},e}();e.exports={create:function(e){return new a(e)}}},function(e,t,r){"use strict";var i=r(1)(r(7)),n=r(4),s=r(9),a=r(5),o=r(18),l=r(2),u=r(44),c=r(28),d=r(0),h=r(23).generateTypeID,f=n.CONDITION,p=n.CLIENT_EXTENSION,_=n.DEFER,v=n.FLIGHT_FIELD,g=n.FRAGMENT_SPREAD,m=n.INLINE_FRAGMENT,b=n.LINKED_FIELD,E=n.MODULE_IMPORT,y=n.LINKED_HANDLE,R=n.SCALAR_FIELD,I=n.SCALAR_HANDLE,D=n.STREAM,S=n.TYPE_DISCRIMINATOR,k=l.ROOT_ID,T=l.getStorageKey,F=l.getModuleOperationKey;var N=function(){function e(e,t,r,i){this._operationLoader=null!=i?i: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),this._variables[e]},t._traverseSelections=function(e,t){var r=this;e.forEach((function(i){switch(i.kind){case b:i.plural?r._traversePluralLink(i,t):r._traverseLink(i,t);break;case f:r._getVariableValue(i.condition)===i.passingValue&&r._traverseSelections(i.selections,t);break;case m:if(null==i.abstractKey){var n=a.getType(t);null!=n&&n===i.type&&r._traverseSelections(i.selections,t)}else if(s.ENABLE_PRECISE_TYPE_REFINEMENT){var o=a.getType(t),l=h(o);r._references.add(l),r._traverseSelections(i.selections,t)}else r._traverseSelections(i.selections,t);break;case g:d(!1);case y:var c=u(i,e,r._variables);c.plural?r._traversePluralLink(c,t):r._traverseLink(c,t);break;case _:case D:r._traverseSelections(i.selections,t);break;case R:case I:break;case S:if(s.ENABLE_PRECISE_TYPE_REFINEMENT){var k=a.getType(t),T=h(k);r._references.add(T)}break;case E:r._traverseModuleImport(i,t);break;case p:r._traverseSelections(i.selections,t);break;case v:if(!s.ENABLE_REACT_FLIGHT_COMPONENT_FIELD)throw new Error("Flight fields are not yet supported.");r._traverseFlightField(i,t);break;default:d(!1)}}))},t._traverseModuleImport=function(e,t){var r=this._operationLoader;null===r&&d(!1);var i=F(e.documentName),n=a.getValue(t,i);if(null!=n){var s=r.get(n);if(null!=s){var o=c(s).selections;this._traverseSelections(o,t)}}},t._traverseLink=function(e,t){var r=T(e,this._variables),i=a.getLinkedRecordID(t,r);null!=i&&this._traverse(e,i)},t._traversePluralLink=function(e,t){var r=this,i=T(e,this._variables),n=a.getLinkedRecordIDs(t,i);null!=n&&n.forEach((function(t){null!=t&&r._traverse(e,t)}))},t._traverseFlightField=function(e,t){var r=T(e,this._variables),n=a.getLinkedRecordID(t,r);if(null!=n){this._references.add(n);var s=this._recordSource.get(n);if(null!=s){var l=a.getValue(s,o.REACT_FLIGHT_QUERIES_STORAGE_KEY);if(Array.isArray(l)){var u=this._operationLoader;null===u&&d(!1);var h,f=this._variables,p=(0,i.default)(l);try{for(p.s();!(h=p.n()).done;){var _=h.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=f}}}},e}();e.exports={mark:function(e,t,r,i){var n=t.dataID,s=t.node,a=t.variables;new N(e,a,r,i).mark(s,n)}}},function(e,t,r){"use strict";var i=r(24),n=(r(12),r(69)),s=r(45),a=r(30),o=function(){function e(){this._subscriptions=new Set}var t=e.prototype;return t.subscribe=function(e,t){var r=this,i={backup:null,callback:t,snapshot:e,stale:!1};return this._subscriptions.add(i),{dispose:function(){r._subscriptions.delete(i)}}},t.snapshotSubscriptions=function(e){this._subscriptions.forEach((function(t){if(t.stale){var r=t.snapshot,n=i.read(e,r.selector),s=a(r.data,n.data);n.data=s,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){var i=this,n=!s(t);this._subscriptions.forEach((function(s){var a=i._updateSubscription(e,s,t,n);null!=a&&r.push(a)}))},t._updateSubscription=function(e,t,r,s){var o=t.backup,l=t.callback,u=t.snapshot,c=t.stale,d=s&&n(u.seenRecords,r);if(c||d){var h=d||!o?i.read(e,u.selector):o;return h={data:a(u.data,h.data),isMissingData:h.isMissingData,seenRecords:h.seenRecords,selector:h.selector,missingRequiredFields:h.missingRequiredFields},t.snapshot=h,t.stale=!1,h.data!==u.data?(l(h),u.selector.owner):void 0}},e}();e.exports=o},function(e,t,r){"use strict";var i=Object.prototype.hasOwnProperty;e.exports=function(e,t){for(var r in e)if(i.call(e,r)&&i.call(t,r))return!0;return!1}},function(e,t,r){"use strict";var i=r(24),n=(r(12),r(30)),s=function(){function e(){this._notifiedRevision=0,this._snapshotRevision=0,this._subscriptionsByDataId=new Map,this._staleSubscriptions=new Set}var t=e.prototype;return t.subscribe=function(e,t){var r=this,i={backup:null,callback:t,notifiedRevision:this._notifiedRevision,snapshotRevision:this._snapshotRevision,snapshot:e};for(var n in e.seenRecords){var s=this._subscriptionsByDataId.get(n);null!=s?s.add(i):this._subscriptionsByDataId.set(n,new Set([i]))}return{dispose:function(){for(var t in e.seenRecords){var n=r._subscriptionsByDataId.get(t);null!=n&&(n.delete(i),0===n.size&&r._subscriptionsByDataId.delete(t))}}}},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 s=r.snapshot,a=i.read(e,s.selector),o=n(s.data,a.data);a.data=o,r.backup=a}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 i=t.snapshot.seenRecords;t.snapshot={data:t.snapshot.data,isMissingData:r.isMissingData,seenRecords:r.seenRecords,selector:r.selector,missingRequiredFields:r.missingRequiredFields},e._updateSubscriptionsMap(t,i)}else e._staleSubscriptions.add(t)}}))}))},t.updateSubscriptions=function(e,t,r){var i=this;this._notifiedRevision++,Object.keys(t).forEach((function(t){var n=i._subscriptionsByDataId.get(t);null!=n&&n.forEach((function(t){if(t.notifiedRevision!==i._notifiedRevision){var n=i._updateSubscription(e,t,!1);null!=n&&r.push(n)}}))})),this._staleSubscriptions.forEach((function(t){if(t.notifiedRevision!==i._notifiedRevision){var n=i._updateSubscription(e,t,!0);null!=n&&r.push(n)}})),this._staleSubscriptions.clear()},t._updateSubscription=function(e,t,r){var s=t.backup,a=t.callback,o=t.snapshot,l=r&&null!=s?s:i.read(e,o.selector);l={data:n(o.data,l.data),isMissingData:l.isMissingData,seenRecords:l.seenRecords,selector:l.selector,missingRequiredFields:l.missingRequiredFields};var u=t.snapshot.seenRecords;if(t.snapshot=l,t.notifiedRevision=this._notifiedRevision,this._updateSubscriptionsMap(t,u),l.data!==o.data)return a(l),o.selector.owner},t._updateSubscriptionsMap=function(e,t){for(var r in t){var i=this._subscriptionsByDataId.get(r);null!=i&&(i.delete(e),0===i.size&&this._subscriptionsByDataId.delete(r))}for(var n in e.snapshot.seenRecords){var s=this._subscriptionsByDataId.get(n);null!=s?s.add(e):this._subscriptionsByDataId.set(n,new Set([e]))}},e}();e.exports=s},function(e,t,r){"use strict";var i=Promise.resolve();function n(e){setTimeout((function(){throw e}),0)}e.exports=function(e){i.then(e).catch(n)}},function(e,t,r){"use strict";var i=r(0),n=r(73).convertFetch;e.exports={create:function(e,t){var r=n(e);return{execute:function(e,n,s,a,o){if("subscription"===e.operationKind)return t||i(!1),a&&i(!1),t(e,n,s);var l=s.poll;return null!=l?(a&&i(!1),r(e,n,{force:!0}).poll(l)):r(e,n,s,a,o)}}}}},function(e,t,r){"use strict";var i=r(14);e.exports={convertFetch:function(e){return function(t,r,n,s,a){var o=e(t,r,n,s,a);return o instanceof Error?i.create((function(e){return e.error(o)})):i.from(o)}}}},function(e,t,r){"use strict";var i=r(1)(r(8)),n=r(0),s=r(13),a=function(){function e(e){var t=e.size,r=e.ttl;t>0||n(!1),r>0||n(!1),this._responses=new Map,this._size=t,this._ttl=r}var t=e.prototype;return t.clear=function(){this._responses.clear()},t.get=function(e,t){var r=this,n=o(e,t);this._responses.forEach((function(e,t){var i,n;i=e.fetchTime,n=r._ttl,i+n>=Date.now()||r._responses.delete(t)}));var s=this._responses.get(n);return null!=s?(0,i.default)((0,i.default)({},s.payload),{},{extensions:(0,i.default)((0,i.default)({},s.payload.extensions),{},{cacheTimestamp:s.fetchTime})}):null},t.set=function(e,t,r){var i=Date.now(),n=o(e,t);if(this._responses.delete(n),this._responses.set(n,{fetchTime:i,payload:r}),this._responses.size>this._size){var s=this._responses.keys().next();s.done||this._responses.delete(s.value)}},e}();function o(e,t){return JSON.stringify(s({queryID:e,variables:t}))}e.exports=a},function(e,t,r){"use strict";var i=r(20),n=r(0),s=r(31),a=r(10).getRequest,o=r(16).createOperationDescriptor;e.exports=function(e,t){s(e)||n(!1);var r=a(t.mutation);if("mutation"!==r.params.operationKind)throw new Error("commitMutation: Expected mutation operation");var l=t.optimisticUpdater,u=t.configs,c=t.optimisticResponse,d=t.variables,h=o(r,d);return u&&(l=i.convert(u,r,l).optimisticUpdater),e.applyMutation({operation:h,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 i=r(1)(r(21)),n=r(20),s=r(0),a=r(31),o=(r(78),r(3),r(10).getRequest),l=r(6).generateUniqueClientID,u=r(16).createOperationDescriptor;e.exports=function(e,t){a(e)||s(!1);var r=o(t.mutation);if("mutation"!==r.params.operationKind)throw new Error("commitMutation: Expected mutation operation");if("Request"!==r.kind)throw new Error("commitMutation: Expected mutation to be of type request");var c=t.optimisticResponse,d=t.optimisticUpdater,h=t.updater,f=t.configs,p=t.cacheConfig,_=t.onError,v=t.onUnsubscribe,g=t.variables,m=t.uploadables,b=u(r,g,p,l());if("function"==typeof c&&(c=c()),f){var E=n.convert(f,r,d,h);d=E.optimisticUpdater,h=E.updater}var y=[];return{dispose:e.executeMutation({operation:b,optimisticResponse:c,optimisticUpdater:d,updater:h,uploadables:m}).subscribe({next:function(e){Array.isArray(e)?e.forEach((function(e){e.errors&&y.push.apply(y,(0,i.default)(e.errors))})):e.errors&&y.push.apply(y,(0,i.default)(e.errors))},complete:function(){var r=t.onCompleted;r&&r(e.lookup(b.fragment).data,0!==y.length?y:null)},error:_,unsubscribe:v}).unsubscribe}}},function(e,t,r){"use strict";r(1)(r(8)),r(3),Object.prototype.hasOwnProperty;e.exports=function(){}},function(e,t,r){"use strict";var i=r(80);r(3);e.exports=function(e,t,r,n,s){return new i(e,r,n,s)}},function(e,t,r){"use strict";var i=r(1),n=i(r(8)),s=i(r(29)),a=r(9),o=r(11),l=r(0),u=r(47),c=r(48),d=(r(3),r(49).getPromiseForActiveRequest),h=r(16).createRequestDescriptor,f=r(15),p=f.areEqualSelectors,_=f.createReaderSelector,v=f.getSelectorsFromObject,g=function(){function e(e,t,r,i){var n=this;(0,s.default)(this,"_onChange",(function(){n._stale=!0,"function"==typeof n._callback&&n._callback()})),this._callback=i,this._context=e,this._data={},this._fragments=t,this._props={},this._resolvers={},this._stale=!1,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 i=this._resolvers[r],s=t[r];if(i){var a=i.resolve();(e||a!==s)&&((e=e||(0,n.default)({},t))[r]=a)}else{var o=this._props[r],l=void 0!==o?o:null;!e&&u(l,s)||((e=e||(0,n.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=v(this._fragments,e);for(var r in this._props={},t)if(t.hasOwnProperty(r)){var i=t[r],n=this._resolvers[r];null==i?(null!=n&&n.dispose(),n=null):"PluralReaderSelector"===i.kind?null==n?n=new b(this._context.environment,i,this._onChange):(n instanceof b||l(!1),n.setSelector(i)):null==n?n=new m(this._context.environment,i,this._onChange):(n instanceof m||l(!1),n.setSelector(i)),this._props[r]=e[r],this._resolvers[r]=n}this._stale=!0},t.setVariables=function(e,t){for(var r in this._resolvers)if(this._resolvers.hasOwnProperty(r)){var i=this._resolvers[r];i&&i.setVariables(e,t)}this._stale=!0},e}(),m=function(){function e(e,t,r){var i=this;(0,s.default)(this,"_onChange",(function(e){i._data=e.data,i._isMissingData=e.isMissingData,i._missingRequiredFields=e.missingRequiredFields,i._callback()}));var n=e.lookup(t);this._callback=r,this._data=n.data,this._isMissingData=n.isMissingData,this._missingRequiredFields=n.missingRequiredFields,this._environment=e,this._selector=t,this._subscription=e.subscribe(n,this._onChange)}var t=e.prototype;return t.dispose=function(){this._subscription&&(this._subscription.dispose(),this._subscription=null)},t.resolve=function(){if(!0===a.ENABLE_RELAY_CONTAINERS_SUSPENSE&&!0===this._isMissingData){var e,t=null!==(e=d(this._environment,this._selector.owner))&&void 0!==e?e:this._environment.getOperationTracker().getPromiseForPendingOperationsAffectingOwner(this._selector.owner);if(null!=t)throw t}return null!=this._missingRequiredFields&&c(this._environment,this._missingRequiredFields),this._data},t.setSelector=function(e){if(null==this._subscription||!p(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(!o(e,this._selector.variables)){var r=h(t,e),i=_(this._selector.node,this._selector.dataID,e,r);this.setSelector(i)}},e}(),b=function(){function e(e,t,r){var i=this;(0,s.default)(this,"_onChange",(function(e){i._stale=!0,i._callback()})),this._callback=r,this._data=[],this._environment=e,this._resolvers=[],this._stale=!0,this.setSelector(t)}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 i=t[r],n=this._resolvers[r].resolve();(e||n!==i)&&(e=e||t.slice(0,r)).push(n)}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 m(this._environment,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=g},function(e,t,r){"use strict";var i=r(1)(r(8)),n=r(2),s=n.getModuleComponentKey,a=n.getModuleOperationKey;e.exports=function(e,t,r,n){var o=(0,i.default)({},n);return o[s(e)]=r,o[a(e)]=t,o}},function(e,t,r){"use strict";var i,n,s=r(0);e.exports=function(e){return i||(i=e.createContext(null),n=e),e!==n&&s(!1),i}},function(e,t,r){"use strict";var i=r(16).createOperationDescriptor,n=r(10).getRequest;e.exports=function(e,t,r,s){var a=n(t);if("query"!==a.params.operationKind)throw new Error("fetchQuery: Expected query operation");var o=i(a,r,s);return e.execute({operation:o}).map((function(){return e.lookup(o.fragment).data})).toPromise()}},function(e,t,r){"use strict";var i=r(9),n=r(45),s=r(13),a=r(15),o=a.getDataIDsFromFragment,l=a.getVariablesFromFragment,u=a.getSelector;e.exports=function(e,t){var r,a=u(e,t),c=null==a?"null":"SingularReaderSelector"===a.kind?a.owner.identifier:"["+a.selectors.map((function(e){return e.owner.identifier})).join(",")+"]",d=l(e,t),h=o(e,t);return i.ENABLE_GETFRAGMENTIDENTIFIER_OPTIMIZATION?c+"/"+e.name+"/"+(null==d||n(d)?"{}":JSON.stringify(s(d)))+"/"+(void 0===h?"missing":null==h?"null":Array.isArray(h)?"["+h.join(",")+"]":h):c+"/"+e.name+"/"+JSON.stringify(s(d))+"/"+(null!==(r=JSON.stringify(h))&&void 0!==r?r:"missing")}},function(e,t,r){"use strict";var i=r(0),n=r(10).getInlineDataFragment,s=r(2).FRAGMENTS_KEY;e.exports=function(e,t){var r,a=n(e);if(null==t)return t;"object"!=typeof t&&i(!1);var o=null===(r=t[s])||void 0===r?void 0:r[a.name];return null==o&&i(!1),o}},function(e,t,r){"use strict";var i=r(20),n=(r(3),r(10).getRequest),s=r(16).createOperationDescriptor;e.exports=function(e,t){var r=n(t.subscription);if("subscription"!==r.params.operationKind)throw new Error("requestSubscription: Must use Subscription operation");var a=t.configs,o=t.onCompleted,l=t.onError,u=t.onNext,c=t.variables,d=t.cacheConfig,h=s(r,c,d),f=(a?i.convert(a,r,null,t.updater):t).updater;return{dispose:e.execute({operation:h,updater:f}).map((function(){return e.lookup(h.fragment).data})).subscribe({next:u,error:l,complete:o}).unsubscribe}}}])}));
|
|
9
|
+
!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("fbjs/lib/areEqual"),require("@babel/runtime/helpers/toConsumableArray"),require("@babel/runtime/helpers/defineProperty")):"function"==typeof define&&define.amd?define(["invariant","@babel/runtime/helpers/interopRequireDefault","fbjs/lib/warning","@babel/runtime/helpers/createForOfIteratorHelper","@babel/runtime/helpers/objectSpread2","fbjs/lib/areEqual","@babel/runtime/helpers/toConsumableArray","@babel/runtime/helpers/defineProperty"],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("fbjs/lib/areEqual"),require("@babel/runtime/helpers/toConsumableArray"),require("@babel/runtime/helpers/defineProperty")):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["fbjs/lib/areEqual"],e["@babel/runtime/helpers/toConsumableArray"],e["@babel/runtime/helpers/defineProperty"])}(window,(function(e,t,r,n,i,s,a,o){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(20)),i=r(5),s=r(27),a=r(0),o=r(14),l=i.VARIABLE,u=i.LITERAL,c=i.OBJECT_VALUE,d=i.LIST_VALUE;function h(e,t){if(e.kind===l)return function(e,t){return t.hasOwnProperty(e)||a(!1),o(t[e])}(e.variableName,t);if(e.kind===u)return e.value;if(e.kind===c){var r={};return e.fields.forEach((function(e){r[e.name]=h(e,t)})),r}if(e.kind===d){var n=[];return e.items.forEach((function(e){null!=e&&n.push(h(e,t))})),n}}function _(e,t){var r={};return e.forEach((function(e){r[e.name]=h(e,t)})),r}function f(e,t){if(!t)return e;var r=[];for(var n in t)if(t.hasOwnProperty(n)){var i,s=t[n];if(null!=s)r.push(n+":"+(null!==(i=JSON.stringify(s))&&void 0!==i?i:"undefined"))}return 0===r.length?e:e+"(".concat(r.join(","),")")}var p={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:f,getArgumentValue:h,getArgumentValues:_,getHandleStorageKey:function(e,t){var r=e.dynamicKey,i=e.handle,a=e.key,o=e.name,l=e.args,u=e.filters,c=s(i,a,o),d=null;return l&&u&&0!==l.length&&0!==u.length&&(d=l.filter((function(e){return u.indexOf(e.name)>-1}))),r&&(d=null!=d?[r].concat((0,n.default)(d)):[r]),null===d?c:f(c,_(d,t))},getStorageKey:function(e,t){if(e.storageKey)return e.storageKey;var r=e.args,n=e.name;return r&&0!==r.length?f(n,_(r,t)):n},getStableStorageKey:function(e,t){return f(e,o(t))},getModuleComponentKey:function(e){return"".concat("__module_component_").concat(e)},getModuleOperationKey:function(e){return"".concat("__module_operation_").concat(e)}};e.exports=p},function(e,t){e.exports=r},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_RELAY_RESOLVERS:!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,ENABLE_UNIQUE_SUBSCRIPTION_ROOT:!1,ENABLE_BATCHED_STORE_UPDATES:!1}},function(e,t,r){"use strict";e.exports={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=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){e.exports=n},function(e,t){e.exports=i},function(e,t,r){"use strict";var n=r(1)(r(8)),i=r(15),s=r(16),a=r(0),o=(r(3),r(6).isClientID,r(2)),l=o.ID_KEY,u=o.REF_KEY,c=o.REFS_KEY,d=o.TYPENAME_KEY,h=o.INVALIDATED_AT_KEY;o.ROOT_ID;e.exports={clone:function(e){return(0,n.default)({},e)},copyFields:function(e,t){for(var r in e)e.hasOwnProperty(r)&&r!==l&&r!==d&&(t[r]=e[r])},create:function(e,t){var r={};return r[l]=e,r[d]=t,r},freeze:function(e){s(e)},getDataID:function(e){return e[l]},getInvalidationEpoch:function(e){if(null==e)return null;var t=e[h];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[u]||a(!1),r[u])},getLinkedRecordIDs:function(e,t){var r=e[t];return null==r?r:("object"==typeof r&&Array.isArray(r[c])||a(!1),r[c])},getType:function(e){return e[d]},getValue:function(e,t){var r=e[t];return r&&"object"==typeof r&&(r.hasOwnProperty(u)||r.hasOwnProperty(c))&&a(!1),r},merge:function(e,t){return Object.assign({},e,t)},setValue:function(e,t,r){e[t]=r},setLinkedRecordID:function(e,t,r){var n={};n[u]=r,e[t]=n},setLinkedRecordIDs:function(e,t,r){var n={};n[c]=r,e[t]=n},update:function(e,t){for(var r=null,s=Object.keys(t),a=0;a<s.length;a++){var o=s[a];!r&&i(e[o],t[o])||((r=null!==r?r:(0,n.default)({},e))[o]=t[o])}return null!==r?r:e}}},function(e,t,r){"use strict";var n=r(5),i=r(0);r(3);function s(e){var t=e;return"function"==typeof t?t=t():t.default&&(t=t.default),t}function a(e){var t=s(e);return"object"==typeof t&&null!==t&&t.kind===n.FRAGMENT}function o(e){var t=s(e);return"object"==typeof t&&null!==t&&t.kind===n.REQUEST}function l(e){var t=s(e);return"object"==typeof t&&null!==t&&t.kind===n.INLINE_DATA_FRAGMENT}function u(e){var t=s(e);return a(t)||i(!1),t}e.exports={getFragment:u,getNode:s,getPaginationFragment:function(e){var t,r=u(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=u(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=s(e);return o(t)||i(!1),t},getInlineDataFragment:function(e){var t=s(e);return l(t)||i(!1),t},graphql:function(e){i(!1)},isFragment:a,isRequest:o,isInlineDataFragment:l}},function(e,t,r){"use strict";var n=r(15),i=r(0),s=(r(3),r(28).getFragmentVariables),a=r(2),o=a.FRAGMENT_OWNER_KEY,l=a.FRAGMENTS_KEY,u=a.ID_KEY,c=a.IS_WITHIN_UNMATCHED_TYPE_REFINEMENT;function d(e,t){("object"!=typeof t||null===t||Array.isArray(t))&&i(!1);var r=t[u],n=t[l],a=t[o],d=!0===t[c];if("string"==typeof r&&"object"==typeof n&&null!==n&&"object"==typeof n[e.name]&&null!==n[e.name]&&"object"==typeof a&&null!==a){var h=a,_=n[e.name];return m(e,r,s(e,h.variables,_),h,d)}return null}function h(e,t){var r=null;return t.forEach((function(t,n){var i=null!=t?d(e,t):null;null!=i&&(r=r||[]).push(i)})),null==r?null:{kind:"PluralReaderSelector",selectors:r}}function _(e,t){return null==t?t:e.metadata&&!0===e.metadata.plural?(Array.isArray(t)||i(!1),h(e,t)):(Array.isArray(t)&&i(!1),d(e,t))}function f(e,t){return null==t?t:e.metadata&&!0===e.metadata.plural?(Array.isArray(t)||i(!1),function(e,t){var r=null;return t.forEach((function(t){var n=null!=t?p(e,t):null;null!=n&&(r=r||[]).push(n)})),r}(e,t)):(Array.isArray(t)&&i(!1),p(e,t))}function p(e,t){("object"!=typeof t||null===t||Array.isArray(t))&&i(!1);var r=t[u];return"string"==typeof r?r:null}function v(e,t){var r;return null==t?{}:!0===(null===(r=e.metadata)||void 0===r?void 0:r.plural)?(Array.isArray(t)||i(!1),E(e,t)):(Array.isArray(t)&&i(!1),g(e,t)||{})}function g(e,t){var r=d(e,t);return r?r.variables:null}function E(e,t){var r={};return t.forEach((function(t,n){if(null!=t){var i=g(e,t);null!=i&&Object.assign(r,i)}})),r}function m(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:m,createNormalizationSelector:function(e,t,r){return{dataID:t,node:e,variables:r}},getDataIDsFromFragment:f,getDataIDsFromObject:function(e,t){var r={};for(var n in e)if(e.hasOwnProperty(n)){var i=e[n],s=t[n];r[n]=f(i,s)}return r},getSingularSelector:d,getPluralSelector:h,getSelector:_,getSelectorsFromObject:function(e,t){var r={};for(var n in e)if(e.hasOwnProperty(n)){var i=e[n],s=t[n];r[n]=_(i,s)}return r},getVariablesFromSingularFragment:g,getVariablesFromPluralFragment:E,getVariablesFromFragment:v,getVariablesFromObject:function(e,t){var r={};for(var n in e)if(e.hasOwnProperty(n)){var i=v(e[n],t[n]);Object.assign(r,i)}return r}}},function(e,t,r){"use strict";var n=r(39),i=function(e,t){},s=function(){function e(e){this._source=e}e.create=function(t){return new e(t)},e.onUnhandledError=function(e){i=e},e.from=function(e){return function(e){return"object"==typeof e&&null!==e&&"function"==typeof e.subscribe}(e)?a(e):n(e)?o(e):l(e)};var t=e.prototype;return t.catch=function(t){var r=this;return e.create((function(e){var n;return r.subscribe({start:function(e){n=e},next:e.next,complete:e.complete,error:function(r){try{t(r).subscribe({start:function(e){n=e},next:e.next,complete:e.complete,error:e.error})}catch(t){e.error(t,!0)}}}),function(){return n.unsubscribe()}}))},t.concat=function(t){var r=this;return e.create((function(e){var n;return r.subscribe({start:function(e){n=e},next:e.next,error:e.error,complete:function(){n=t.subscribe(e)}}),function(){n&&n.unsubscribe()}}))},t.do=function(t){var r=this;return e.create((function(e){var n=function(r){return function(){try{t[r]&&t[r].apply(t,arguments)}catch(e){i(e,!0)}e[r]&&e[r].apply(e,arguments)}};return r.subscribe({start:n("start"),next:n("next"),error:n("error"),complete:n("complete"),unsubscribe:n("unsubscribe")})}))},t.finally=function(t){var r=this;return e.create((function(e){var n=r.subscribe(e);return function(){n.unsubscribe(),t()}}))},t.ifEmpty=function(t){var r=this;return e.create((function(e){var n=!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){return function(e,t){var r,n=!1,s=function(e){return Object.defineProperty(e,"closed",{get:function(){return n}})};function a(){if(r){if(r.unsubscribe)r.unsubscribe();else try{r()}catch(e){i(e,!0)}r=void 0}}var o=s({unsubscribe:function(){if(!n){n=!0;try{t.unsubscribe&&t.unsubscribe(o)}catch(e){i(e,!0)}finally{a()}}}});try{t.start&&t.start(o)}catch(e){i(e,!0)}if(n)return o;var l=s({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),a();else{n=!0;try{t.error(e)}catch(e){i(e,!0)}finally{a()}}},complete:function(){if(!n){n=!0;try{t.complete&&t.complete()}catch(e){i(e,!0)}finally{a()}}}});try{r=e(l)}catch(e){l.error(e,!0)}0;n&&a();return o}(this._source,e)},t.map=function(t){var r=this;return e.create((function(e){var n=r.subscribe({complete:e.complete,error:e.error,next:function(r){try{var n=t(r);e.next(n)}catch(t){e.error(t,!0)}}});return function(){n.unsubscribe()}}))},t.mergeMap=function(t){var r=this;return e.create((function(n){var i=[];function s(e){this._sub=e,i.push(e)}function a(){i.splice(i.indexOf(this._sub),1),0===i.length&&n.complete()}return r.subscribe({start:s,next:function(r){try{n.closed||e.from(t(r)).subscribe({start:s,next:n.next,error:n.error,complete:a})}catch(e){n.error(e,!0)}},error:n.error,complete:a}),function(){i.forEach((function(e){return e.unsubscribe()})),i.length=0}}))},t.poll=function(t){var r=this;return e.create((function(e){var n,i;return function s(){n=r.subscribe({next:e.next,error:e.error,complete:function(){i=setTimeout(s,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 a(e){return e instanceof s?e:s.create((function(t){return e.subscribe(t)}))}function o(e){return s.create((function(t){e.then((function(e){t.next(e),t.complete()}),t.error)}))}function l(e){return s.create((function(t){t.next(e),t.complete()}))}e.exports=s},function(e,t,r){"use strict";r(16);var n=r(45),i=r(28).getOperationVariables,s=r(11),a=s.createNormalizationSelector,o=s.createReaderSelector,l=r(2).ROOT_ID;function u(e,t,r){return{identifier:n(e.params,t),node:e,variables:t,cacheConfig:r}}e.exports={createOperationDescriptor:function(e,t,r){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:l,s=e.operation,c=i(s,t),d=u(e,c,r),h={fragment:o(e.fragment,n,c,d),request:d,root:a(s,n,c)};return h},createRequestDescriptor:u}},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=s},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(53),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(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){"ReactFlightComponent"!==i(e)&&n(!1);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.fragments)&&Array.isArray(e.errors)?e:null}}},function(e,t,r){"use strict";var n=r(26),i=r(27),s=r(0),a=(r(3),r(6).generateClientID),o=r(2).getStableStorageKey;function l(e,t,r){if(null==r)return r;var i=n.get().EDGES,o=t.getValue("__connection_next_edge_index");"number"!=typeof o&&s(!1);var l=a(t.getDataID(),i,o),u=e.create(l,r.getType());return u.copyFieldsFrom(r),null==u.getValue("cursor")&&u.setValue(null,"cursor"),t.setValue(o+1,"__connection_next_edge_index"),u}function u(e,t,r){for(var i=n.get().NODE,s=0;s<e.length;s++){var a=e[s];if(a){var o=a.getLinkedRecord(i),l=o&&o.getDataID();if(l){if(r.has(l))continue;r.add(l)}t.push(a)}}}e.exports={buildConnectionEdge:l,createEdge:function(e,t,r,i){var s=n.get().NODE,o=a(t.getDataID(),r.getDataID()),l=e.get(o);return l||(l=e.create(o,i)),l.setLinkedRecord(r,s),null==l.getValue("cursor")&&l.setValue(null,"cursor"),l},deleteNode:function(e,t){var r=n.get(),i=r.EDGES,s=r.NODE,a=e.getLinkedRecords(i);if(a){for(var o,l=0;l<a.length;l++){var u=a[l],c=u&&u.getLinkedRecord(s);null!=c&&c.getDataID()===t?void 0===o&&(o=a.slice(0,l)):void 0!==o&&o.push(u)}void 0!==o&&e.setLinkedRecords(o,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),s=o(n,r);return a(e,s)},insertEdgeAfter:function(e,t,r){var i=n.get(),s=i.CURSOR,a=i.EDGES,o=e.getLinkedRecords(a);if(o){var l;if(null==r)l=o.concat(t);else{l=[];for(var u=!1,c=0;c<o.length;c++){var d=o[c];if(l.push(d),null!=d)r===d.getValue(s)&&(l.push(t),u=!0)}u||l.push(t)}e.setLinkedRecords(l,a)}else e.setLinkedRecords([t],a)},insertEdgeBefore:function(e,t,r){var i=n.get(),s=i.CURSOR,a=i.EDGES,o=e.getLinkedRecords(a);if(o){var l;if(null==r)l=[t].concat(o);else{l=[];for(var u=!1,c=0;c<o.length;c++){var d=o[c];if(null!=d)r===d.getValue(s)&&(l.push(t),u=!0);l.push(d)}u||l.unshift(t)}e.setLinkedRecords(l,a)}else e.setLinkedRecords([t],a)},update:function(e,t){var r=e.get(t.dataID);if(r){var i=n.get(),s=i.EDGES,o=i.END_CURSOR,c=i.HAS_NEXT_PAGE,d=i.HAS_PREV_PAGE,h=i.PAGE_INFO,_=i.PAGE_INFO_TYPE,f=i.START_CURSOR,p=r.getLinkedRecord(t.fieldKey),v=p&&p.getLinkedRecord(h);if(p){var g=a(r.getDataID(),t.handleKey),E=r.getLinkedRecord(t.handleKey),m=null!=E?E:e.get(g),b=m&&m.getLinkedRecord(h);if(m){null==E&&r.setLinkedRecord(m,t.handleKey);var y=m,R=p.getLinkedRecords(s);R&&(R=R.map((function(t){return l(e,y,t)})));var I=y.getLinkedRecords(s),D=y.getLinkedRecord(h);y.copyFieldsFrom(p),I&&y.setLinkedRecords(I,s),D&&y.setLinkedRecord(D,h);var S=[],T=t.args;if(I&&R)if(null!=T.after){if(!b||T.after!==b.getValue(o))return;var N=new Set;u(I,S,N),u(R,S,N)}else if(null!=T.before){if(!b||T.before!==b.getValue(f))return;var F=new Set;u(R,S,F),u(I,S,F)}else S=R;else S=R||I;if(null!=S&&S!==I&&y.setLinkedRecords(S,s),b&&v)if(null==T.after&&null==T.before)b.copyFieldsFrom(v);else if(null!=T.before||null==T.after&&T.last){b.setValue(!!v.getValue(d),d);var k=v.getValue(f);"string"==typeof k&&b.setValue(k,f)}else if(null!=T.after||null==T.before&&T.first){b.setValue(!!v.getValue(c),c);var O=v.getValue(o);"string"==typeof O&&b.setValue(O,o)}}else{var A=e.create(g,p.getType());A.setValue(0,"__connection_next_edge_index"),A.copyFieldsFrom(p);var P=p.getLinkedRecords(s);P&&(P=P.map((function(t){return l(e,A,t)})),A.setLinkedRecords(P,s)),r.setLinkedRecord(A,t.handleKey),(b=e.create(a(A.getDataID(),h),_)).setValue(!1,c),b.setValue(!1,d),b.setValue(null,o),b.setValue(null,f),v&&b.copyFieldsFrom(v),A.setLinkedRecord(b,h)}}else r.setValue(null,t.handleKey)}}}},function(e,t){e.exports=a},function(e,t,r){"use strict";var n=r(1)(r(7)),i=r(19),s=(r(3),Object.freeze({RANGE_ADD:"RANGE_ADD",RANGE_DELETE:"RANGE_DELETE",NODE_DELETE:"NODE_DELETE"})),a=Object.freeze({APPEND:"append",PREPEND:"prepend"});function o(e){return e.fragment.selections&&e.fragment.selections.length>0&&"LinkedField"===e.fragment.selections[0].kind?e.fragment.selections[0].name:null}e.exports={MutationTypes:s,RangeOperations:a,convert:function(e,t,r,s){var a=r?[r]:[],l=s?[s]:[];return e.forEach((function(e){switch(e.type){case"NODE_DELETE":var r=function(e,t){var r=e.deletedIDFieldName,n=o(t);if(!n)return null;return function(e,t){var i=e.getRootField(n);if(i){var s=i.getValue(r);(Array.isArray(s)?s:[s]).forEach((function(t){t&&"string"==typeof t&&e.delete(t)}))}}}(e,t);r&&(a.push(r),l.push(r));break;case"RANGE_ADD":var s=function(e,t){var r=e.parentID,s=e.connectionInfo,a=e.edgeName;if(!r)return null;var l=o(t);if(!s||!l)return null;return function(e,t){var o=e.get(r);if(o){var u=e.getRootField(l);if(u){var c,d=u.getLinkedRecord(a),h=(0,n.default)(s);try{for(h.s();!(c=h.n()).done;){var _=c.value;if(d){var f=i.getConnection(o,_.key,_.filters);if(f){var p=i.buildConnectionEdge(e,f,d);if(p)switch(_.rangeBehavior){case"append":i.insertEdgeAfter(f,p);break;case"prepend":i.insertEdgeBefore(f,p)}}}}}catch(e){h.e(e)}finally{h.f()}}}}}(e,t);s&&(a.push(s),l.push(s));break;case"RANGE_DELETE":var u=function(e,t){var r=e.parentID,s=e.connectionKeys,a=e.pathToConnection,l=e.deletedIDFieldName;if(!r)return null;var u=o(t);if(!u)return null;return function(e,t){if(t){var o=[],c=t[u];if(c&&Array.isArray(l)){var d,h=(0,n.default)(l);try{for(h.s();!(d=h.n()).done;){var _=d.value;c&&"object"==typeof c&&(c=c[_])}}catch(e){h.e(e)}finally{h.f()}Array.isArray(c)?c.forEach((function(e){e&&e.id&&"object"==typeof e&&"string"==typeof e.id&&o.push(e.id)})):c&&c.id&&"string"==typeof c.id&&o.push(c.id)}else c&&"string"==typeof l&&"object"==typeof c&&("string"==typeof(c=c[l])?o.push(c):Array.isArray(c)&&c.forEach((function(e){"string"==typeof e&&o.push(e)})));!function(e,t,r,s,a){var o=s.get(e);if(!o)return;if(r.length<2)return;for(var l=o,u=1;u<r.length-1;u++)l&&(l=l.getLinkedRecord(r[u]));if(!t||!l)return;var c,d=(0,n.default)(t);try{var h=function(){var e=c.value,t=i.getConnection(l,e.key,e.filters);t&&a.forEach((function(e){i.deleteNode(t,e)}))};for(d.s();!(c=d.n()).done;)h()}catch(e){d.e(e)}finally{d.f()}}(r,s,a,e,o)}}}(e,t);u&&(a.push(u),l.push(u))}})),{optimisticUpdater:function(e,t){a.forEach((function(r){r(e,t)}))},updater:function(e,t){l.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(1)(r(25)),i=r(4),s=r(9),a=r(0),o=r(5),l=o.CLIENT_EXTENSION,u=o.CONDITION,c=o.DEFER,d=o.FLIGHT_FIELD,h=o.FRAGMENT_SPREAD,_=o.INLINE_DATA_FRAGMENT_SPREAD,f=o.INLINE_FRAGMENT,p=o.LINKED_FIELD,v=o.MODULE_IMPORT,g=o.REQUIRED_FIELD,E=o.RELAY_RESOLVER,m=o.SCALAR_FIELD,b=o.STREAM,y=r(18).getReactFlightClientResponse,R=r(2),I=R.FRAGMENTS_KEY,D=R.FRAGMENT_OWNER_KEY,S=R.FRAGMENT_PROP_NAME_KEY,T=R.ID_KEY,N=R.IS_WITHIN_UNMATCHED_TYPE_REFINEMENT,F=R.MODULE_COMPONENT_KEY,k=R.ROOT_ID,O=R.getArgumentValues,A=R.getStorageKey,P=R.getModuleComponentKey,L=r(56).withResolverContext,C=r(23).generateTypeID;var M=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,n=e.isWithinUnmatchedTypeRefinement,a=t.abstractKey,o=this._recordSource.get(r),l=!n;l&&null==a&&null!=o&&(s.getType(o)!==t.type&&r!==k&&(l=!1));if(l&&null!=a&&null!=o&&i.ENABLE_PRECISE_TYPE_REFINEMENT){var u=s.getType(o),c=C(u),d=this._recordSource.get(c),h=null!=d?s.getValue(d,a):null;!1===h?l=!1:null==h&&(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),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 o=e[n];switch(o.kind){case g:if(i.ENABLE_REQUIRED_DIRECTIVES||a(!1),null==this._readRequiredField(o,t,r)){var y=o.action;return"NONE"!==y&&this._maybeReportUnexpectedNull(o.path,y,t),!1}break;case m:this._readScalar(o,t,r);break;case p:o.plural?this._readPluralLink(o,t,r):this._readLink(o,t,r);break;case u:if(this._getVariableValue(o.condition)===o.passingValue)if(!this._traverseSelections(o.selections,t,r))return!1;break;case f:var R=o.abstractKey;if(null==R){var I=s.getType(t);if(null!=I&&I===o.type)if(!this._traverseSelections(o.selections,t,r))return!1}else if(i.ENABLE_PRECISE_TYPE_REFINEMENT){var D=this._isMissingData,S=this._isWithinUnmatchedTypeRefinement,T=s.getType(t),N=C(T),F=this._recordSource.get(N),k=null!=F?s.getValue(F,R):null;this._isWithinUnmatchedTypeRefinement=S||!1===k,this._traverseSelections(o.selections,t,r),this._isWithinUnmatchedTypeRefinement=S,!1===k?this._isMissingData=D:null==k&&(this._isMissingData=!0)}else this._traverseSelections(o.selections,t,r);break;case E:if(!i.ENABLE_RELAY_RESOLVERS)throw new Error("Relay Resolver fields are not yet supported.");this._readResolverField(o,t,r);break;case h:this._createFragmentPointer(o,t,r);break;case v:this._readModuleImport(o,t,r);break;case _:this._createInlineDataOrResolverFragmentPointer(o,t,r);break;case c:case l:var O=this._isMissingData,A=this._traverseSelections(o.selections,t,r);if(this._isMissingData=O,!A)return!1;break;case b:if(!this._traverseSelections(o.selections,t,r))return!1;break;case d:if(!i.ENABLE_REACT_FLIGHT_COMPONENT_FIELD)throw new Error("Flight fields are not yet supported.");this._readFlightField(o,t,r);break;default:a(!1)}}return!0},t._readRequiredField=function(e,t,r){switch(e.field.kind){case m: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)}},t._readResolverField=function(e,t,r){var i=this,o=e.name,l=e.alias,u=e.resolverModule,c=e.fragment,d={__id:s.getDataID(t),__fragmentOwner:this._owner,__fragments:(0,n.default)({},c.name,{})},h=L({getDataForResolverFragment:function(e){var r,n={};i._createInlineDataOrResolverFragmentPointer(e.node,t,n);var s=null===(r=n[I])||void 0===r?void 0:r[c.name];return("object"!=typeof s||null===s)&&a(!1),s}},(function(){return u(d)}));return r[null!=l?l:o]=h,h},t._readFlightField=function(e,t,r){var n,i=null!==(n=e.alias)&&void 0!==n?n:e.name,a=A(e,this._variables),o=s.getLinkedRecordID(t,a);if(null==o)return r[i]=o,void 0===o&&(this._isMissingData=!0),o;var l=this._recordSource.get(o);if(this._seenRecords.add(o),null==l)return r[i]=l,void 0===l&&(this._isMissingData=!0),l;var u=y(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=A(e,this._variables),o=s.getValue(t,a);return void 0===o&&(this._isMissingData=!0),r[i]=o,o},t._readLink=function(e,t,r){var n,i=null!==(n=e.alias)&&void 0!==n?n:e.name,o=A(e,this._variables),l=s.getLinkedRecordID(t,o);if(null==l)return r[i]=l,void 0===l&&(this._isMissingData=!0),l;var u=r[i];null!=u&&"object"!=typeof u&&a(!1);var c=this._traverse(e,l,u);return r[i]=c,c},t._readPluralLink=function(e,t,r){var n,i=this,o=null!==(n=e.alias)&&void 0!==n?n:e.name,l=A(e,this._variables),u=s.getLinkedRecordIDs(t,l);if(null==u)return r[o]=u,void 0===u&&(this._isMissingData=!0),u;var c=r[o];null==c||Array.isArray(c)||a(!1);var d=c||[];return u.forEach((function(t,r){if(null==t)return void 0===t&&(i._isMissingData=!0),void(d[r]=t);var n=d[r];null!=n&&"object"!=typeof n&&a(!1),d[r]=i._traverse(e,t,n)})),r[o]=d,d},t._readModuleImport=function(e,t,r){var n=P(e.documentName),i=s.getValue(t,n);null!=i?(this._createFragmentPointer({kind:"FragmentSpread",name:e.fragmentName,args:null},t,r),r[S]=e.fragmentPropName,r[F]=i):void 0===i&&(this._isMissingData=!0)},t._createFragmentPointer=function(e,t,r){var n=r[I];null==n&&(n=r[I]={}),("object"!=typeof n||null==n)&&a(!1),null==r[T]&&(r[T]=s.getDataID(t)),n[e.name]=e.args?O(e.args,this._variables):{},r[D]=this._owner,i.ENABLE_PRECISE_TYPE_REFINEMENT&&(r[N]=this._isWithinUnmatchedTypeRefinement)},t._createInlineDataOrResolverFragmentPointer=function(e,t,r){var n=r[I];null==n&&(n=r[I]={}),("object"!=typeof n||null==n)&&a(!1),null==r[T]&&(r[T]=s.getDataID(t));var i={};this._traverseSelections(e.selections,t,i),n[e.name]=i},e}();e.exports={read:function(e,t){return new M(e,t).read()}}},function(e,t){e.exports=o},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"},s={inject:function(e){i=e},get:function(){return i},isConnectionCall:function(e){return n.hasOwnProperty(e.name)}};e.exports=s},function(e,t,r){"use strict";var n=r(0),i=r(34).DEFAULT_HANDLE_KEY;e.exports=function(e,t,r){return t&&t!==i?"__".concat(t,"_").concat(e):(null==r&&n(!1),"__".concat(r,"_").concat(e))}},function(e,t,r){"use strict";var n=r(1)(r(8)),i=r(0);e.exports={getFragmentVariables:function(e,t,r){var s;return e.argumentDefinitions.forEach((function(e){if(!r.hasOwnProperty(e.name))switch(s=s||(0,n.default)({},r),e.kind){case"LocalArgument":s[e.name]=e.defaultValue;break;case"RootArgument":if(!t.hasOwnProperty(e.name)){s[e.name]=void 0;break}s[e.name]=t[e.name];break;default:i(!1)}})),s||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(5),i=n.REQUEST,s=n.SPLIT_OPERATION;e.exports=function(e){switch(e.kind){case i:return e.operation;case s:default:return e}}},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 s=!1,a=Array.isArray(t)?t:null,o=Array.isArray(r)?r:null;if(a&&o)s=o.reduce((function(t,r,n){var i=e(a[n],r);return i!==o[n]&&(o[n]=i),t&&i===a[n]}),!0)&&a.length===o.length;else if(!a&&!o){var l=t,u=r,c=Object.keys(l),d=Object.keys(u);s=d.reduce((function(t,r){var n=e(l[r],u[r]);return n!==u[r]&&(u[r]=n),t&&n===l[r]}),!0)&&c.length===d.length}return s?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),s=r(0),a="function"==typeof WeakMap?new WeakMap:new Map;function o(e,t,r){return n.create((function(a){var o=u(e),l=o.get(t);return l||r().finally((function(){return o.delete(t)})).subscribe({start:function(e){l={identifier:t,subject:new i,subjectForInFlightStatus:new i,subscription:e},o.set(t,l)},next:function(e){var r=c(o,t);r.subject.next(e),r.subjectForInFlightStatus.next(e)},error:function(e){var r=c(o,t);r.subject.error(e),r.subjectForInFlightStatus.error(e)},complete:function(){var e=c(o,t);e.subject.complete(),e.subjectForInFlightStatus.complete()},unsubscribe:function(e){var r=c(o,t);r.subject.unsubscribe(),r.subjectForInFlightStatus.unsubscribe()}}),null==l&&s(!1),function(e,t){return n.create((function(r){var n=t.subject.subscribe(r);return function(){n.unsubscribe();var r=e.get(t.identifier);if(r){var i=r.subscription;null!=i&&0===r.subject.getObserverCount()&&(i.unsubscribe(),e.delete(t.identifier))}}}))}(o,l).subscribe(a)}))}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=a.get(e);if(null!=t)return t;var r=new Map;return a.set(e,r),r}function c(e,t){var r=e.get(t);return null==r&&s(!1),r}e.exports={fetchQuery:function(e,t){return o(e,t.request.identifier,(function(){return e.execute({operation:t})}))},fetchQueryDeduped:o,getPromiseForActiveRequest:function(e,t){var r=u(e),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={DEFAULT_HANDLE_KEY:""}},function(e,t,r){"use strict";var n=r(1)(r(7)),i=r(19),s=r(26),a=r(0),o=(r(3),{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);var o=r.getValue(t.fieldKey);(Array.isArray(o)?o:[o]).forEach((function(t){if("string"==typeof t){var r,a=(0,n.default)(s);try{for(a.s();!(r=a.n()).done;){var o=r.value,l=e.get(o);null!=l&&i.deleteNode(l,t)}}catch(e){a.e(e)}finally{a.f()}}}))}}},u={update:_(i.insertEdgeAfter)},c={update:_(i.insertEdgeBefore)},d={update:f(i.insertEdgeAfter)},h={update:f(i.insertEdgeBefore)};function _(e){return function(t,r){var o,l=t.get(r.dataID);if(null!=l){var u,c,d=r.handleArgs.connections;null==d&&a(!1);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 h,_=s.get(),f=_.NODE,p=_.EDGES,v=null!==(o=c)&&void 0!==o?o:[u],g=(0,n.default)(v);try{var E=function(){var r=h.value;if(null==r)return"continue";var s=r.getLinkedRecord("node");if(!s)return"continue";var o,l=s.getDataID(),u=(0,n.default)(d);try{for(u.s();!(o=u.n()).done;){var c=o.value,_=t.get(c);if(null!=_)if(!(null===(m=_.getLinkedRecords(p))||void 0===m?void 0:m.some((function(e){var t;return(null==e||null===(t=e.getLinkedRecord(f))||void 0===t?void 0:t.getDataID())===l})))){var v=i.buildConnectionEdge(t,_,r);null==v&&a(!1),e(_,v)}}}catch(e){u.e(e)}finally{u.f()}};for(g.s();!(h=g.n()).done;){var m;E()}}catch(e){g.e(e)}finally{g.f()}}}}}function f(e){return function(t,r){var o,l=t.get(r.dataID);if(null!=l){var u,c,d=r.handleArgs,h=d.connections,_=d.edgeTypeName;null==h&&a(!1),null==_&&a(!1);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,p=s.get(),v=p.NODE,g=p.EDGES,E=null!==(o=c)&&void 0!==o?o:[u],m=(0,n.default)(E);try{var b=function(){var r=f.value;if(null==r)return"continue";var s,o=r.getDataID(),l=(0,n.default)(h);try{for(l.s();!(s=l.n()).done;){var u=s.value,c=t.get(u);if(null!=c)if(!(null===(y=c.getLinkedRecords(g))||void 0===y?void 0:y.some((function(e){var t;return(null==e||null===(t=e.getLinkedRecord(v))||void 0===t?void 0:t.getDataID())===o})))){var d=i.createEdge(t,c,r,_);null==d&&a(!1),e(c,d)}}}catch(e){l.e(e)}finally{l.f()}};for(m.s();!(f=m.n()).done;){var y;b()}}catch(e){m.e(e)}finally{m.f()}}}}}e.exports={AppendEdgeHandler:u,DeleteRecordHandler:o,PrependEdgeHandler:c,AppendNodeHandler:d,PrependNodeHandler:h,DeleteEdgeHandler:l}},function(e,t,r){"use strict";var n=r(19),i=r(35),s=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}s(!1)}},function(e,t,r){"use strict";function n(e,t,r){for(var n=arguments.length,i=new Array(n>3?n-3:0),s=3;s<n;s++)i[s-3]=arguments[s];var a=0,o=r.replace(/%s/g,(function(){return String(i[a++])})),l=new Error(o),u=Object.assign(l,{name:t,messageFormat:r,messageParams:i,type:e,taalOpcodes:[2,2]});if(void 0===u.stack)try{throw u}catch(e){}return u}e.exports={create:function(e,t){for(var r=arguments.length,i=new Array(r>2?r-2:0),s=2;s<r;s++)i[s-2]=arguments[s];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),s=2;s<r;s++)i[s-2]=arguments[s];return n.apply(void 0,["warn",e,t].concat(i))}}},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";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),s=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,s=new Set,a=(0,n.default)(t);try{for(a.s();!(r=a.n()).done;){var o=r.value.identifier,l=this._ownersToPendingOperationsIdentifier.get(o);null!=l?l.has(i)||(l.add(i),s.add(o)):(this._ownersToPendingOperationsIdentifier.set(o,new Set([i])),s.add(o))}}catch(e){a.e(e)}finally{a.f()}if(0!==s.size){var u,c=this._pendingOperationsToOwnersIdentifier.get(i)||new Set,d=(0,n.default)(s);try{for(d.s();!(u=d.n()).done;){var h=u.value;this._resolveOwnerResolvers(h),c.add(h)}}catch(e){d.e(e)}finally{d.f()}this._pendingOperationsToOwnersIdentifier.set(i,c)}}},t.complete=function(e){var t=e.identifier,r=this._pendingOperationsToOwnersIdentifier.get(t);if(null!=r){var i,s=new Set,a=new Set,o=(0,n.default)(r);try{for(o.s();!(i=o.n()).done;){var l=i.value,u=this._ownersToPendingOperationsIdentifier.get(l);u&&(u.delete(t),u.size>0?a.add(l):s.add(l))}}catch(e){o.e(e)}finally{o.f()}var c,d=(0,n.default)(s);try{for(d.s();!(c=d.n()).done;){var h=c.value;this._resolveOwnerResolvers(h),this._ownersToPendingOperationsIdentifier.delete(h)}}catch(e){d.e(e)}finally{d.f()}var _,f=(0,n.default)(a);try{for(f.s();!(_=f.n()).done;){var p=_.value;this._resolveOwnerResolvers(p)}}catch(e){f.e(e)}finally{f.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 s=new Promise((function(e){r=e}));return null==r&&i(!1),this._ownersIdentifierToPromise.set(t,{promise:s,resolve:r}),s},e}();e.exports=s},function(e,t,r){"use strict";var n=r(9),i=r(0),s=r(22).EXISTENT,a=function(){function e(e,t){this.__sources=[t,e],this._base=e,this._sink=t}var t=e.prototype;return t.unstable_getRawRecordWithChanges=function(e){var t=this._base.get(e),r=this._sink.get(e);return void 0===r?null==t?t:n.clone(t):null===r?null:null!=t?n.update(t,r):n.clone(r)},t._getSinkRecord=function(e){var t=this._sink.get(e);if(!t){var r=this._base.get(e);r||i(!1),t=n.create(e,n.getType(r)),this._sink.set(e,t)}return t},t.copyFields=function(e,t){var r=this._sink.get(e),s=this._base.get(e);r||s||i(!1);var a=this._getSinkRecord(t);s&&n.copyFields(s,a),r&&n.copyFields(r,a)},t.copyFieldsFromRecord=function(e,t){var r=this._getSinkRecord(t);n.copyFields(e,r)},t.create=function(e,t){(this._base.getStatus(e)===s||this._sink.getStatus(e)===s)&&i(!1);var r=n.create(e,t);this._sink.set(e,r)},t.delete=function(e){this._sink.delete(e)},t.getStatus=function(e){return this._sink.has(e)?this._sink.getStatus(e):this._base.getStatus(e)},t.getType=function(e){for(var t=0;t<this.__sources.length;t++){var r=this.__sources[t].get(e);if(r)return n.getType(r);if(null===r)return null}},t.getValue=function(e,t){for(var r=0;r<this.__sources.length;r++){var i=this.__sources[r].get(e);if(i){var s=n.getValue(i,t);if(void 0!==s)return s}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 s=n.getLinkedRecordID(i,t);if(void 0!==s)return s}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 s=n.getLinkedRecordIDs(i,t);if(void 0!==s)return s}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=a},function(e,t,r){"use strict";var n=r(9),i=r(57),s=r(0),a=r(22),o=a.EXISTENT,l=a.NONEXISTENT,u=r(2),c=u.ROOT_ID,d=u.ROOT_TYPE,h=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===o){var s=e.get(t);s&&(r.__mutator.getStatus(t)!==o&&r.create(t,n.getType(s)),r.__mutator.copyFieldsFromRecord(s,t))}else i===l&&r.delete(t)})),t&&t.length&&t.forEach((function(e){var t=r._handlerProvider&&r._handlerProvider(e.handle);t||s(!1),t.update(r,e)}))},t.create=function(e,t){this.__mutator.create(e,t),delete this._proxies[e];var r=this.get(e);return r||s(!1),r},t.delete=function(e){e===c&&s(!1),delete this._proxies[e],this.__mutator.delete(e)},t.get=function(e){if(!this._proxies.hasOwnProperty(e)){var t=this.__mutator.getStatus(e);this._proxies[e]=t===o?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||s(!1),e},t.invalidateStore=function(){this._invalidatedStore=!0},t.isStoreMarkedForInvalidation=function(){return this._invalidatedStore},t.markIDForInvalidation=function(e){this._idsMarkedForInvalidation.add(e)},t.getIDsMarkedForInvalidation=function(){return this._idsMarkedForInvalidation},e}();e.exports=h},function(e,t,r){"use strict";var n=r(44),i=n.VIEWER_ID,s=n.VIEWER_TYPE;e.exports=function(e,t){return t===s&&null==e.id?i:e.id}},function(e,t,r){"use strict";var n=(0,r(6).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),r+JSON.stringify(i(t))}},function(e,t,r){"use strict";var n=r(15),i=r(0),s=r(5).LINKED_FIELD,a=r(2).getHandleStorageKey;e.exports=function(e,t,r){var o=t.find((function(t){return t.kind===s&&t.name===e.name&&t.alias===e.alias&&n(t.args,e.args)}));o&&o.kind===s||i(!1);var l=a(e,r);return{kind:"LinkedField",alias:o.alias,name:l,storageKey:l,args:null,concreteType:o.concreteType,plural:o.plural,selections:o.selections}}},function(e,t,r){"use strict";var n=r(1)(r(25)),i=r(12),s=r(0),a=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,s(!1)}}return function(){e._sinks.delete(t)}}))}var t=e.prototype;return t.complete=function(){!0!==this._complete&&(this._complete=!0,this._events.push({kind:"complete"}),this._sinks.forEach((function(e){return e.complete()})))},t.error=function(e){!0!==this._complete&&(this._complete=!0,this._events.push({kind:"error",error:e}),this._sinks.forEach((function(t){return t.error(e)})))},t.next=function(e){!0!==this._complete&&(this._events.push({kind:"next",data:e}),this._sinks.forEach((function(t){return t.next(e)})))},t.subscribe=function(e){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=a},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(19),i=r(26),s=r(10),a=r(35),o=r(50),l=r(5),u=r(28),c=r(21),d=r(34),h=r(36),_=r(37),f=r(4),p=r(51),v=r(13),g=r(9),E=r(11),m=r(61),b=r(70),y=r(12),R=r(40),I=r(72),D=r(73),S=r(17),T=r(47),N=r(2),F=r(44),k=r(74),O=r(75),A=r(76),P=r(78),L=r(80),C=r(81),M=r(16),w=r(82),x=r(33),U=r(83),V=r(84),q=r(27),K=r(45),H=r(39),B=r(31),j=r(48),Y=r(86),G=r(30),z=r(32),Q=r(87),W=r(14),X=r(6),J=X.generateClientID,Z=X.generateUniqueClientID,$=X.isClientID;e.exports={Environment:p,Network:b,Observable:y,QueryResponseCache:D,RecordSource:S,Record:g,ReplaySubject:T,Store:m,areEqualSelectors:E.areEqualSelectors,createFragmentSpecResolver:P,createNormalizationSelector:E.createNormalizationSelector,createOperationDescriptor:v.createOperationDescriptor,createReaderSelector:E.createReaderSelector,createRequestDescriptor:v.createRequestDescriptor,getDataIDsFromFragment:E.getDataIDsFromFragment,getDataIDsFromObject:E.getDataIDsFromObject,getNode:s.getNode,getFragment:s.getFragment,getInlineDataFragment:s.getInlineDataFragment,getModuleComponentKey:N.getModuleComponentKey,getModuleOperationKey:N.getModuleOperationKey,getPaginationFragment:s.getPaginationFragment,getPluralSelector:E.getPluralSelector,getRefetchableFragment:s.getRefetchableFragment,getRequest:s.getRequest,getRequestIdentifier:K,getSelector:E.getSelector,getSelectorsFromObject:E.getSelectorsFromObject,getSingularSelector:E.getSingularSelector,getStorageKey:N.getStorageKey,getVariablesFromFragment:E.getVariablesFromFragment,getVariablesFromObject:E.getVariablesFromObject,getVariablesFromPluralFragment:E.getVariablesFromPluralFragment,getVariablesFromSingularFragment:E.getVariablesFromSingularFragment,reportMissingRequiredFields:z,graphql:s.graphql,isFragment:s.isFragment,isInlineDataFragment:s.isInlineDataFragment,isRequest:s.isRequest,readInlineData:Y,MutationTypes:c.MutationTypes,RangeOperations:c.RangeOperations,DefaultHandlerProvider:h,ConnectionHandler:n,MutationHandlers:a,VIEWER_ID:F.VIEWER_ID,VIEWER_TYPE:F.VIEWER_TYPE,applyOptimisticMutation:k,commitLocalUpdate:O,commitMutation:A,fetchQuery:w,fetchQuery_DEPRECATED:U,isRelayModernEnvironment:B,requestSubscription:Q,ConnectionInterface:i,PreloadableQueryRegistry:o,RelayProfiler:I,createPayloadFor3DField:L,RelayConcreteNode:l,RelayError:_,RelayFeatureFlags:f,DEFAULT_HANDLE_KEY:d.DEFAULT_HANDLE_KEY,FRAGMENTS_KEY:N.FRAGMENTS_KEY,FRAGMENT_OWNER_KEY:N.FRAGMENT_OWNER_KEY,ID_KEY:N.ID_KEY,REF_KEY:N.REF_KEY,REFS_KEY:N.REFS_KEY,ROOT_ID:N.ROOT_ID,ROOT_TYPE:N.ROOT_TYPE,TYPENAME_KEY:N.TYPENAME_KEY,deepFreeze:M,generateClientID:J,generateUniqueClientID:Z,getRelayHandleKey:q,isClientID:$,isPromise:H,isScalarAndEqual:j,recycleNodesInto:G,stableCopy:W,getFragmentIdentifier:V,__internal:{OperationTracker:R,createRelayContext:C,getOperationVariables:u.getOperationVariables,fetchQuery:x.fetchQuery,fetchQueryDeduped:x.fetchQueryDeduped,getPromiseForActiveRequest:x.getPromiseForActiveRequest,getObservableForActiveRequest:x.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(8)),i=r(52),s=r(36),a=r(4),o=r(12),l=r(40),u=r(55),c=r(17),d=r(43),h=r(59),_=r(60),f=(r(0),function(){function e(e){var r,n,i,o,c,_,f,v,g=this;this.configName=e.configName,this._treatMissingFieldsAsNull=!0===e.treatMissingFieldsAsNull;var E=e.operationLoader,m=e.reactFlightPayloadDeserializer,b=e.reactFlightServerErrorHandler;this.__log=null!==(r=e.log)&&void 0!==r?r:p,this.requiredFieldLogger=null!==(n=e.requiredFieldLogger)&&void 0!==n?n:h,this._defaultRenderPolicy=(null!==(i=e.UNSTABLE_defaultRenderPolicy)&&void 0!==i?i:!0===a.ENABLE_PARTIAL_RENDERING_DEFAULT)?"partial":"full",this._operationLoader=E,this._operationExecutions=new Map,this._network=this.__wrapNetworkWithLogObserver(e.network),this._getDataID=null!==(o=e.getDataID)&&void 0!==o?o:d,this._publishQueue=new u(e.store,null!==(c=e.handlerProvider)&&void 0!==c?c:s,this._getDataID),this._scheduler=null!==(_=e.scheduler)&&void 0!==_?_:null,this._store=e.store,this.options=e.options,this._isServer=null!==(f=e.isServer)&&void 0!==f&&f,this.__setNet=function(e){return g._network=g.__wrapNetworkWithLogObserver(e)};var y=void 0!==t?t:"undefined"!=typeof window?window:void 0,R=y&&y.__RELAY_DEVTOOLS_HOOK__;R&&R.registerEnvironment(this),this._missingFieldHandlers=e.missingFieldHandlers,this._operationTracker=null!==(v=e.operationTracker)&&void 0!==v?v:new l,this._reactFlightPayloadDeserializer=m,this._reactFlightServerErrorHandler=b,this._shouldProcessClientComponents=e.shouldProcessClientComponents}var r=e.prototype;return r.getStore=function(){return this._store},r.getNetwork=function(){return this._network},r.getOperationTracker=function(){return this._operationTracker},r.isRequestActive=function(e){return"active"===this._operationExecutions.get(e)},r.UNSTABLE_getDefaultRenderPolicy=function(){return this._defaultRenderPolicy},r.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()}))}}},r.revertUpdate=function(e){var t=this;this._scheduleUpdates((function(){t._publishQueue.revertUpdate(e),t._publishQueue.run()}))},r.replaceUpdate=function(e,t){var r=this;this._scheduleUpdates((function(){r._publishQueue.revertUpdate(e),r._publishQueue.applyUpdate(t),r._publishQueue.run()}))},r.applyMutation=function(e){var t=this._execute({createSource:function(){return o.create((function(e){}))},isClientPayload:!1,operation:e.operation,optimisticConfig:e,updater:null}).subscribe({});return{dispose:function(){return t.unsubscribe()}}},r.check=function(e){return null==this._missingFieldHandlers||0===this._missingFieldHandlers.length?this._store.check(e):this._checkSelectorAndHandleMissingFields(e,this._missingFieldHandlers)},r.commitPayload=function(e,t){this._execute({createSource:function(){return o.from({data:t})},isClientPayload:!0,operation:e,optimisticConfig:null,updater:null}).subscribe({})},r.commitUpdate=function(e){var t=this;this._scheduleUpdates((function(){t._publishQueue.commitUpdate(e),t._publishQueue.run()}))},r.lookup=function(e){return this._store.lookup(e)},r.subscribe=function(e,t){return this._store.subscribe(e,t)},r.retain=function(e){return this._store.retain(e)},r.isServer=function(){return this._isServer},r._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},r._scheduleUpdates=function(e){var t=this._scheduler;null!=t?t.schedule(e):e()},r.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})},r.executeMutation=function(e){var t,r=this,i=e.operation,s=e.optimisticResponse,a=e.optimisticUpdater,o=e.updater,l=e.uploadables;return(s||a)&&(t={operation:i,response:s,updater:a}),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:o})},r.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})},r.toJSON=function(){var e;return"RelayModernEnvironment(".concat(null!==(e=this.configName)&&void 0!==e?e:"",")")},r._execute=function(e){var t=this,r=e.createSource,n=e.isClientPayload,s=e.operation,a=e.optimisticConfig,l=e.updater;return o.create((function(e){var o=i.execute({getDataID:t._getDataID,isClientPayload:n,operation:s,operationExecutions:t._operationExecutions,operationLoader:t._operationLoader,operationTracker:t._operationTracker,optimisticConfig:a,publishQueue:t._publishQueue,reactFlightPayloadDeserializer:t._reactFlightPayloadDeserializer,reactFlightServerErrorHandler:t._reactFlightServerErrorHandler,scheduler:t._scheduler,shouldProcessClientComponents:t._shouldProcessClientComponents,sink:e,source:r(),store:t._store,treatMissingFieldsAsNull:t._treatMissingFieldsAsNull,updater:l});return function(){return o.cancel()}}))},r.__wrapNetworkWithLogObserver=function(e){var t=this;return{execute:function(r,n,i,s){var a=_(),o=t.__log,l={start:function(e){o({name:"network.start",transactionID:a,params:r,variables:n,cacheConfig:i})},next:function(e){o({name:"network.next",transactionID:a,response:e})},error:function(e){o({name:"network.error",transactionID:a,error:e})},complete:function(){o({name:"network.complete",transactionID:a})},unsubscribe:function(){o({name:"network.unsubscribe",transactionID:a})}};return e.execute(r,n,i,s,(function(e){o({name:"network.info",transactionID:a,info:e})})).do(l)}}},e}());function p(){}f.prototype["@@RelayModernEnvironment"]=!0,e.exports=f}).call(this,r(38))},function(e,t,r){"use strict";var n=r(1),i=n(r(8)),s=n(r(7)),a=n(r(20)),o=r(37),l=r(4),u=r(9),c=r(12),d=r(17),h=r(54),_=r(29),f=r(0),p=r(14),v=(r(3),r(6)),g=v.generateClientID,E=v.generateUniqueClientID,m=r(11),b=m.createNormalizationSelector,y=m.createReaderSelector,R=r(2),I=R.ROOT_TYPE,D=R.TYPENAME_KEY,S=R.getStorageKey;var T=function(){function e(e){var t=this,r=e.operation,n=e.operationExecutions,i=e.operationLoader,s=e.optimisticConfig,a=e.publishQueue,o=e.scheduler,l=e.sink,u=e.source,c=e.store,d=e.updater,h=e.operationTracker,_=e.treatMissingFieldsAsNull,f=e.getDataID,p=e.isClientPayload,v=e.reactFlightPayloadDeserializer,g=e.reactFlightServerErrorHandler,E=e.shouldProcessClientComponents;this._getDataID=f,this._treatMissingFieldsAsNull=_,this._incrementalPayloadsPending=!1,this._incrementalResults=new Map,this._nextSubscriptionId=0,this._operation=r,this._operationExecutions=n,this._operationLoader=i,this._operationTracker=h,this._operationUpdateEpochs=new Map,this._optimisticUpdates=null,this._pendingModulePayloadsCount=0,this._publishQueue=a,this._scheduler=o,this._sink=l,this._source=new Map,this._state="started",this._store=c,this._subscriptions=new Map,this._updater=d,this._isClientPayload=!0===p,this._reactFlightPayloadDeserializer=v,this._reactFlightServerErrorHandler=g,this._isSubscriptionOperation="subscription"===this._operation.request.node.params.operationKind,this._shouldProcessClientComponents=E;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!=s&&this._processOptimisticResponse(null!=s.response?{data:s.response}:null,s.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,f(!1)}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++;c.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)",s=o.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 s.source={errors:n,operation:t._operation.request.node,variables:t._operation.request.variables},s.stack,s}var a=e;r.push(a)}})),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)}))&&f(!1),!1;var r=e[0],n=!0===(null===(t=r.extensions)||void 0===t?void 0:t.isOptimistic);return n&&"started"!==this._state&&f(!1),!!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||f(!1),r.push({label:n,path:i,response:e})}else t.push(e)})),[t,r]}(r),i=n[0],s=n[1],a=i.length>0;if(a){var o=this._processResponses(i);if(!l.ENABLE_BATCHED_STORE_UPDATES){var u=this._publishQueue.run(this._operation);this._updateOperationTracker(u)}this._processPayloadFollowups(o),l.ENABLE_BATCHED_STORE_UPDATES||this._incrementalPayloadsPending&&!this._retainDisposable&&(this._retainDisposable=this._store.retain(this._operation))}if(s.length>0){var c=this._processIncrementalResponses(s);if(!l.ENABLE_BATCHED_STORE_UPDATES){var d=this._publishQueue.run();this._updateOperationTracker(d)}this._processPayloadFollowups(c)}if(this._isSubscriptionOperation&&l.ENABLE_UNIQUE_SUBSCRIPTION_ROOT&&(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),l.ENABLE_BATCHED_STORE_UPDATES){var h=this._publishQueue.run(a?this._operation:void 0);a&&this._incrementalPayloadsPending&&!this._retainDisposable&&(this._retainDisposable=this._store.retain(this._operation)),this._updateOperationTracker(h)}this._sink.next(e)}}},t._processOptimisticResponse=function(e,t,r){var n=this;if(null!==this._optimisticUpdates&&f(!1),null!=e||null!=t){var i=[];if(e){var s=N(e,this._operation.root,I,{getDataID:this._getDataID,path:[],reactFlightPayloadDeserializer:this._reactFlightPayloadDeserializer,reactFlightServerErrorHandler:this._reactFlightServerErrorHandler,shouldProcessClientComponents:this._shouldProcessClientComponents,treatMissingFieldsAsNull:r});F(s),i.push({operation:this._operation,payload:s,updater:t}),this._processOptimisticFollowups(s,i)}else t&&i.push({operation:this._operation,payload:{errors:null,fieldPayloads:null,incrementalPlaceholders:null,moduleImportPayloads:null,source:d.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||f(!1);var i,o=(0,s.default)(r);try{for(o.s();!(i=o.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,a.default)(c))}}}catch(e){o.e(e)}finally{o.f()}}},t._normalizeModuleImport=function(e,t){var r=b(t,e.dataID,e.variables);return N({data:e.data},r,e.typeName,{getDataID:this._getDataID,path:e.path,reactFlightPayloadDeserializer:this._reactFlightPayloadDeserializer,reactFlightServerErrorHandler:this._reactFlightServerErrorHandler,treatMissingFieldsAsNull:this._treatMissingFieldsAsNull,shouldProcessClientComponents:this._shouldProcessClientComponents})},t._processOptimisticModuleImport=function(e,t){var r=_(e),n=[],i=this._normalizeModuleImport(t,r);return F(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);else(n=r._optimisticUpdates).push.apply(n,(0,a.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=N(e,t._operation.root,I,{getDataID:t._getDataID,path:[],reactFlightPayloadDeserializer:t._reactFlightPayloadDeserializer,reactFlightServerErrorHandler:t._reactFlightServerErrorHandler,treatMissingFieldsAsNull:t._treatMissingFieldsAsNull,shouldProcessClientComponents:t._shouldProcessClientComponents});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 s=t._operationLoader;s||f(!1),n.forEach((function(e){t._processModuleImportPayload(e,s)}))}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)){var a=[];if(r.forEach((function(e){"defer"===e.kind&&a.push(t._processDeferResponse(e.label,e.path,e,{data:e.data}))})),a.length>0){if(!l.ENABLE_BATCHED_STORE_UPDATES){var o=t._publishQueue.run();t._updateOperationTracker(o)}t._processPayloadFollowups(a)}}}))},t._maybeCompleteSubscriptionOperationTracking=function(){if(this._isSubscriptionOperation&&(0===this._pendingModulePayloadsCount&&!1===this._incrementalPayloadsPending&&this._completeOperationTracker(),l.ENABLE_UNIQUE_SUBSCRIPTION_ROOT)){var e=E();this._operation={request:this._operation.request,fragment:y(this._operation.fragment.node,e,this._operation.fragment.variables,this._operation.fragment.owner),root:b(this._operation.root.node,e,this._operation.root.variables)}}},t._processModuleImportPayload=function(e,t){var r=this,n=t.get(e.operationReference);if(null!=n){var i=_(n);this._handleModuleImportPayload(e,i),this._maybeCompleteSubscriptionOperationTracking()}else{var s=this._nextSubscriptionId++;this._pendingModulePayloadsCount++;var a=function(){r._pendingModulePayloadsCount--,r._maybeCompleteSubscriptionOperationTracking()};c.from(new Promise((function(r,n){t.load(e.operationReference).then(r,n)}))).map((function(t){null!=t&&r._schedule((function(){r._handleModuleImportPayload(e,_(t));var n=r._publishQueue.run();r._updateOperationTracker(n)}))})).subscribe({complete:function(){r._complete(s),a()},error:function(e){r._error(e),a()},start:function(e){return r._start(s,e)}})}},t._handleModuleImportPayload=function(e,t){var r=this._normalizeModuleImport(e,t);if(this._publishQueue.commitPayload(this._operation,r),!l.ENABLE_BATCHED_STORE_UPDATES){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("."),s=this._incrementalResults.get(n);null==s&&(s=new Map,this._incrementalResults.set(n,s));var a,o=s.get(i),c=null!=o&&"response"===o.kind?o.responses:null;s.set(i,{kind:"placeholder",placeholder:t}),"stream"===t.kind?a=t.parentID:"defer"===t.kind?a=t.selector.dataID:f(!1);var d,h,_=e.source.get(a),v=(null!==(r=e.fieldPayloads)&&void 0!==r?r:[]).filter((function(e){var t=g(e.dataID,e.fieldKey);return e.dataID===a||t===a}));null==_&&f(!1);var E=this._source.get(a);if(null!=E){d=u.update(E.record,_);var m=new Map,b=function(e){var t,r,n=(t=e,null!==(r=JSON.stringify(p(t)))&&void 0!==r?r:"");m.set(n,e)};E.fieldPayloads.forEach(b),v.forEach(b),h=Array.from(m.values())}else d=_,h=v;if(this._source.set(a,{record:d,fieldPayloads:h}),null!=c){var y=this._processIncrementalResponses(c);if(!l.ENABLE_BATCHED_STORE_UPDATES){var R=this._publishQueue.run();this._updateOperationTracker(R)}this._processPayloadFollowups(y)}},t._processIncrementalResponses=function(e){var t=this,r=[];return e.forEach((function(e){var n=e.label,i=e.path,s=e.response,a=t._incrementalResults.get(n);if(null==a&&(a=new Map,t._incrementalResults.set(n,a)),-1!==n.indexOf("$defer$")){var o=i.map(String).join("."),l=a.get(o);if(null==l)return l={kind:"response",responses:[e]},void a.set(o,l);if("response"===l.kind)return void l.responses.push(e);var u=l.placeholder;"defer"!==u.kind&&f(!1),r.push(t._processDeferResponse(n,i,u,s))}else{var c=i.slice(0,-2).map(String).join("."),d=a.get(c);if(null==d)return d={kind:"response",responses:[e]},void a.set(c,d);if("response"===d.kind)return void d.responses.push(e);var h=d.placeholder;"stream"!==h.kind&&f(!1),r.push(t._processStreamResponse(n,i,h,s))}})),r},t._processDeferResponse=function(e,t,r,n){var i=r.selector.dataID,s=N(n,r.selector,r.typeName,{getDataID:this._getDataID,path:r.path,reactFlightPayloadDeserializer:this._reactFlightPayloadDeserializer,reactFlightServerErrorHandler:this._reactFlightServerErrorHandler,treatMissingFieldsAsNull:this._treatMissingFieldsAsNull,shouldProcessClientComponents:this._shouldProcessClientComponents});this._publishQueue.commitPayload(this._operation,s);var a=this._source.get(i);null==a&&f(!1);var o=a.fieldPayloads;if(0!==o.length){var l,u={errors:null,fieldPayloads:o,incrementalPlaceholders:null,moduleImportPayloads:null,source:d.create(),isFinal:!0===(null===(l=n.extensions)||void 0===l?void 0:l.is_final)};this._publishQueue.commitPayload(this._operation,u)}return s},t._processStreamResponse=function(e,t,r,n){var i=r.parentID,s=r.node,o=r.variables,l=s.selections[0];(null==l||"LinkedField"!==l.kind||!0!==l.plural)&&f(!1);var u=this._normalizeStreamItem(n,i,l,o,t,r.path),c=u.fieldPayloads,h=u.itemID,_=u.itemIndex,p=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===p.length&&!r.some((function(e,t){return p[t]!==(e&&e.getDataID())}))){var n=(0,a.default)(r);n[_]=e.get(h),t.setLinkedRecords(n,g)}}})),0!==c.length){var E={errors:null,fieldPayloads:c,incrementalPlaceholders:null,moduleImportPayloads:null,source:d.create(),isFinal:!1};this._publishQueue.commitPayload(this._operation,E)}return v},t._normalizeStreamItem=function(e,t,r,n,i,s){var o,l,c,d=e.data;"object"!=typeof d&&f(!1);var h=null!==(o=r.alias)&&void 0!==o?o:r.name,_=S(r,n),p=this._source.get(t);null==p&&f(!1);var v=p.record,E=p.fieldPayloads,m=u.getLinkedRecordIDs(v,_);null==m&&f(!1);var y=i[i.length-1],R=parseInt(y,10);R===y&&R>=0||f(!1);var I=null!==(l=r.concreteType)&&void 0!==l?l:d[D];"string"!=typeof I&&f(!1);var T=(null!==(c=this._getDataID(d,I))&&void 0!==c?c:m&&m[R])||g(t,_,R);"string"!=typeof T&&f(!1);var F=b(r,T,n),k=u.clone(v),O=(0,a.default)(m);return O[R]=T,u.setLinkedRecordIDs(k,_,O),this._source.set(t,{record:k,fieldPayloads:E}),{fieldPayloads:E,itemID:T,itemIndex:R,prevIDs:m,relayPayload:N(e,F,I,{getDataID:this._getDataID,path:[].concat((0,a.default)(s),[h,String(R)]),reactFlightPayloadDeserializer:this._reactFlightPayloadDeserializer,reactFlightServerErrorHandler:this._reactFlightServerErrorHandler,treatMissingFieldsAsNull:this._treatMissingFieldsAsNull,shouldProcessClientComponents:this._shouldProcessClientComponents}),storageKey:_}},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)},e}();function N(e,t,r,n){var s,a=e.data,o=e.errors,l=d.create(),c=u.create(t.dataID,r);l.set(t.dataID,c);var _=h.normalize(l,t,a,n);return(0,i.default)((0,i.default)({},_),{},{errors:o,isFinal:!0===(null===(s=e.extensions)||void 0===s?void 0:s.is_final)})}function F(e){var t=e.incrementalPlaceholders;null!=t&&0!==t.length&&f(!1)}e.exports={execute:function(e){return new T(e)}}},function(e,t,r){"use strict";var n=r(1)(r(7)),i=r(22),s=i.EXISTENT,a=i.NONEXISTENT,o=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)?a:s:o},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,s=i[0],a=i[1];t[s]=a}}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)),s=n(r(20)),a=r(4),o=r(9),l=(r(15),r(0)),u=(r(3),r(5)),c=u.CONDITION,d=u.CLIENT_COMPONENT,h=u.CLIENT_EXTENSION,_=u.DEFER,f=u.FLIGHT_FIELD,p=u.FRAGMENT_SPREAD,v=u.INLINE_FRAGMENT,g=u.LINKED_FIELD,E=u.LINKED_HANDLE,m=u.MODULE_IMPORT,b=u.SCALAR_FIELD,y=u.SCALAR_HANDLE,R=u.STREAM,I=u.TYPE_DISCRIMINATOR,D=r(6),S=D.generateClientID,T=(D.isClientID,r(11).createNormalizationSelector),N=r(18),F=N.refineToReactFlightPayloadData,k=N.REACT_FLIGHT_EXECUTABLE_DEFINITIONS_STORAGE_KEY,O=N.REACT_FLIGHT_TREE_STORAGE_KEY,A=N.REACT_FLIGHT_TYPE_NAME,P=r(2),L=P.getArgumentValues,C=P.getHandleStorageKey,M=P.getModuleComponentKey,w=P.getModuleOperationKey,x=P.getStorageKey,U=P.TYPENAME_KEY,V=P.ROOT_ID,q=P.ROOT_TYPE,K=r(23),H=K.generateTypeID,B=K.TYPE_SCHEMA_TYPE;var j=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,s.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||l(!1),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)||l(!1),this._variables[e]},t._getRecordType=function(e){var t=e[U];return null==t&&l(!1),t},t._traverseSelections=function(e,t,r){for(var n=0;n<e.selections.length;n++){var i=e.selections[n];switch(i.kind){case b:case g:this._normalizeField(e,i,t,r);break;case c:this._getVariableValue(i.condition)===i.passingValue&&this._traverseSelections(i,t,r);break;case p:this._traverseSelections(i.fragment,t,r);break;case v:var s=i.abstractKey;if(null==s)o.getType(t)===i.type&&this._traverseSelections(i,t,r);else if(a.ENABLE_PRECISE_TYPE_REFINEMENT){var u=r.hasOwnProperty(s),D=o.getType(t),S=H(D),T=this._recordSource.get(S);null==T&&(T=o.create(S,B),this._recordSource.set(S,T)),o.setValue(T,s,u),u&&this._traverseSelections(i,t,r)}else{var N=r.hasOwnProperty(s),F=this._isUnmatchedAbstractType;this._isUnmatchedAbstractType=this._isUnmatchedAbstractType||!N,this._traverseSelections(i,t,r),this._isUnmatchedAbstractType=F}break;case I:if(a.ENABLE_PRECISE_TYPE_REFINEMENT){var k=i.abstractKey,O=r.hasOwnProperty(k),A=o.getType(t),P=H(A),M=this._recordSource.get(P);null==M&&(M=o.create(P,B),this._recordSource.set(P,M)),o.setValue(M,k,O)}break;case E:case y:var w=i.args?L(i.args,this._variables):{},U=x(i,this._variables),V=C(i,this._variables);this._handleFieldPayloads.push({args:w,dataID:o.getDataID(t),fieldKey:U,handle:i.handle,handleKey:V,handleArgs:i.handleArgs?L(i.handleArgs,this._variables):{}});break;case m:this._normalizeModuleImport(e,i,t,r);break;case _:this._normalizeDefer(i,t,r);break;case R:this._normalizeStream(i,t,r);break;case h:var q=this._isClientExtension;this._isClientExtension=!0,this._traverseSelections(i,t,r),this._isClientExtension=q;break;case d:if(!1===this._shouldProcessClientComponents)break;this._traverseSelections(i.fragment,t,r);break;case f:if(!a.ENABLE_REACT_FLIGHT_COMPONENT_FIELD)throw new Error("Flight fields are not yet supported.");this._normalizeFlightField(e,i,t,r);break;default:l(!1)}}},t._normalizeDefer=function(e,t,r){!1===(null===e.if||this._getVariableValue(e.if))?this._traverseSelections(e,t,r):this._incrementalPlaceholders.push({kind:"defer",data:r,label:e.label,path:(0,s.default)(this._path),selector:T(e,o.getDataID(t),this._variables),typeName:o.getType(t)})},t._normalizeStream=function(e,t,r){this._traverseSelections(e,t,r),!0===(null===e.if||this._getVariableValue(e.if))&&this._incrementalPlaceholders.push({kind:"stream",label:e.label,path:(0,s.default)(this._path),parentID:o.getDataID(t),node:e,variables:this._variables})},t._normalizeModuleImport=function(e,t,r,n){"object"==typeof n&&n||l(!1);var i=o.getType(r),a=M(t.documentName),u=n[a];o.setValue(r,a,null!=u?u:null);var c=w(t.documentName),d=n[c];o.setValue(r,c,null!=d?d:null),null!=d&&this._moduleImportPayloads.push({data:n,dataID:o.getDataID(r),operationReference:d,path:(0,s.default)(this._path),typeName:i,variables:this._variables})},t._normalizeField=function(e,t,r,n){"object"==typeof n&&n||l(!1);var i=t.alias||t.name,s=x(t,this._variables),a=n[i];if(null!=a)t.kind===b?o.setValue(r,s,a):t.kind===g?(this._path.push(i),t.plural?this._normalizePluralLink(t,r,s,a):this._normalizeLink(t,r,s,a),this._path.pop()):l(!1);else{if(void 0===a){if(this._isClientExtension||this._isUnmatchedAbstractType)return;if(!this._treatMissingFieldsAsNull)return void 0}o.setValue(r,s,null)}},t._normalizeFlightField=function(e,t,r,n){var s=t.alias||t.name,a=x(t,this._variables),u=n[s];if(null!=u){var c=F(u),d=this._reactFlightPayloadDeserializer;null==c&&l(!1),"function"!=typeof d&&l(!1),c.errors.length>0&&"function"==typeof this._reactFlightServerErrorHandler&&this._reactFlightServerErrorHandler(c.status,c.errors);var h=S(o.getDataID(r),x(t,this._variables)),_=this._recordSource.get(h);if(null==_&&(_=o.create(h,A),this._recordSource.set(h,_)),null==c.tree)return o.setValue(_,O,null),o.setValue(_,k,[]),void o.setLinkedRecordID(r,a,h);var f=d(c.tree);o.setValue(_,O,f);var p,v=[],g=(0,i.default)(c.queries);try{for(g.s();!(p=g.n()).done;){var E=p.value;null!=E.response.data&&this._moduleImportPayloads.push({data:E.response.data,dataID:V,operationReference:E.module,path:[],typeName:q,variables:E.variables}),v.push({module:E.module,variables:E.variables})}}catch(e){g.e(e)}finally{g.f()}var m,b=(0,i.default)(c.fragments);try{for(b.s();!(m=b.n()).done;){var y=m.value;null!=y.response.data&&this._moduleImportPayloads.push({data:y.response.data,dataID:y.__id,operationReference:y.module,path:[],typeName:y.__typename,variables:y.variables}),v.push({module:y.module,variables:y.variables})}}catch(e){b.e(e)}finally{b.f()}o.setValue(_,k,v),o.setLinkedRecordID(r,a,h)}else{if(void 0===u){if(this._isUnmatchedAbstractType)return;if(!this._treatMissingFieldsAsNull)return void 0}o.setValue(r,a,null)}},t._normalizeLink=function(e,t,r,n){var i;"object"==typeof n&&n||l(!1);var s=this._getDataId(n,null!==(i=e.concreteType)&&void 0!==i?i:this._getRecordType(n))||o.getLinkedRecordID(t,r)||S(o.getDataID(t),r);"string"!=typeof s&&l(!1),o.setLinkedRecordID(t,r,s);var a=this._recordSource.get(s);if(a)0;else{var u=e.concreteType||this._getRecordType(n);a=o.create(s,u),this._recordSource.set(s,a)}this._traverseSelections(e,a,n)},t._normalizePluralLink=function(e,t,r,n){var i=this;Array.isArray(n)||l(!1);var s=o.getLinkedRecordIDs(t,r),a=[];n.forEach((function(n,u){var c;if(null!=n){i._path.push(String(u)),"object"!=typeof n&&l(!1);var d=i._getDataId(n,null!==(c=e.concreteType)&&void 0!==c?c:i._getRecordType(n))||s&&s[u]||S(o.getDataID(t),r,u);"string"!=typeof d&&l(!1),a.push(d);var h=i._recordSource.get(d);if(h)0;else{var _=e.concreteType||i._getRecordType(n);h=o.create(d,_),i._recordSource.set(d,h)}0,i._traverseSelections(e,h,n),i._path.pop()}else a.push(n)})),o.setLinkedRecordIDs(t,r,a)},t._validateRecordType=function(e,t,r){var n;null!==(n=t.concreteType)&&void 0!==n||this._getRecordType(r),o.getDataID(e)},t._validateConflictingFieldsWithIdenticalId=function(e,t,r){},t._validateConflictingLinkedFieldsWithIdenticalId=function(e,t,r,n){0},e}();e.exports={normalize:function(e,t,r,n){var i=t.dataID,s=t.node,a=t.variables;return new j(e,a,n).normalizeResponse(s,i,r)}}},function(e,t,r){"use strict";(function(t){var n,i,s=r(24),a=r(17),o=r(41),l=r(42),u=r(58),c=r(0),d=(r(3),null!==(n=null===(i=t.ErrorUtils)||void 0===i?void 0:i.applyWithGuard)&&void 0!==n?n:function(e,t,r,n,i){return e.apply(t,r)}),h=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))&&c(!1),this._pendingOptimisticUpdates.add(e)},t.revertUpdate=function(e){this._pendingOptimisticUpdates.has(e)?this._pendingOptimisticUpdates.delete(e):this._appliedOptimisticUpdates.has(e)&&(this._pendingBackupRebase=!0,this._appliedOptimisticUpdates.delete(e))},t.revertAll=function(){this._pendingBackupRebase=!0,this._pendingOptimisticUpdates.clear(),this._appliedOptimisticUpdates.clear()},t.commitPayload=function(e,t,r){this._pendingBackupRebase=!0,this._pendingData.add({kind:"payload",operation:e,payload:t,updater:r})},t.commitUpdate=function(e){this._pendingBackupRebase=!0,this._pendingData.add({kind:"updater",updater:e})},t.commitSource=function(e){this._pendingBackupRebase=!0,this._pendingData.add({kind:"source",source:e})},t.run=function(e){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._store.notify(e,t)},t._publishSourceFromPayload=function(e){var t=this,r=e.payload,n=e.operation,i=e.updater,s=r.source,a=r.fieldPayloads,d=new o(this._store.getSource(),s),h=new l(d,this._getDataID);if(a&&a.length&&a.forEach((function(e){var r=t._handlerProvider&&t._handlerProvider(e.handle);r||c(!1),r.update(h,e)})),i){var f=n.fragment;null==f&&c(!1),i(new u(d,h,f),_(s,f))}var p=h.getIDsMarkedForInvalidation();return this._store.publish(s,p),h.isStoreMarkedForInvalidation()},t._commitData=function(){var e=this;if(!this._pendingData.size)return!1;var t=!1;return this._pendingData.forEach((function(r){if("payload"===r.kind){var n=e._publishSourceFromPayload(r);t=t||n}else if("source"===r.kind){var i=r.source;e._store.publish(i)}else{var s=r.updater,u=a.create(),c=new o(e._store.getSource(),u),h=new l(c,e._getDataID);d(s,null,[h],null,"RelayPublishQueue:commitData"),t=t||h.isStoreMarkedForInvalidation();var _=h.getIDsMarkedForInvalidation();e._store.publish(u,_)}})),this._pendingData.clear(),t},t._applyUpdates=function(){var e=this,t=a.create(),r=new o(this._store.getSource(),t),n=new l(r,this._getDataID,this._handlerProvider),i=function(e){if(e.storeUpdater){var t=e.storeUpdater;d(t,null,[n],null,"RelayPublishQueue:applyUpdates")}else{var i,s=e.operation,a=e.payload,o=e.updater,l=a.source,c=a.fieldPayloads,h=new u(r,n,s.fragment);l&&(n.publishSource(l,c),i=_(l,s.fragment)),o&&d(o,null,[h,i],null,"RelayPublishQueue:applyUpdates")}};this._pendingBackupRebase&&this._appliedOptimisticUpdates.size&&this._appliedOptimisticUpdates.forEach(i),this._pendingOptimisticUpdates.size&&(this._pendingOptimisticUpdates.forEach((function(t){i(t),e._appliedOptimisticUpdates.add(t)})),this._pendingOptimisticUpdates.clear()),this._store.publish(t)},e}();function _(e,t){return s.read(e,t).data}e.exports=h}).call(this,r(38))},function(e,t,r){"use strict";var n=r(0),i=r(10).getFragment,s=r(11).getSelector,a=[];e.exports={readFragment:function(e,t){if(!a.length)throw new Error("readFragment should be called only from within a Relay Resolver function.");var r=a[a.length-1],o=i(e),l=s(o,t);return null==l&&n(!1),"SingularReaderSelector"!==l.kind&&n(!1),r.getDataForResolverFragment(l)},withResolverContext:function(e,t){a.push(e);try{return t()}finally{a.pop()}}}},function(e,t,r){"use strict";var n=r(0),i=r(6).generateClientID,s=r(2).getStableStorageKey,a=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),e},t.getValue=function(e,t){var r=s(e,t);return this._mutator.getValue(this._dataID,r)},t.setValue=function(e,t,r){o(e)||n(!1);var i=s(t,r);return this._mutator.setValue(this._dataID,i,e),this},t.getLinkedRecord=function(e,t){var r=s(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);var a=s(r,i),o=t.getDataID();return this._mutator.setLinkedRecordID(this._dataID,a,o),this},t.getOrCreateLinkedRecord=function(e,t,r){var n=this.getLinkedRecord(e,r);if(!n){var a,o=s(e,r),l=i(this.getDataID(),o);n=null!==(a=this._source.get(l))&&void 0!==a?a:this._source.create(l,t),this.setLinkedRecord(n,e,r)}return n},t.getLinkedRecords=function(e,t){var r=this,n=s(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);var i=s(t,r),a=e.map((function(e){return e&&e.getDataID()}));return this._mutator.setLinkedRecordIDs(this._dataID,i,a),this},t.invalidateRecord=function(){this._source.markIDForInvalidation(this._dataID)},e}();function o(e){return null==e||"object"!=typeof e||Array.isArray(e)&&e.every(o)}e.exports=a},function(e,t,r){"use strict";var n=r(0),i=r(2),s=i.getStorageKey,a=i.ROOT_TYPE,o=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,a)),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),i.plural!==r&&n(!1),i},t.getRootField=function(e){var t=this._getRootField(this._readSelector,e,!1),r=s(t,this._readSelector.variables);return this.getOperationRoot().getLinkedRecord(r)},t.getPluralRootField=function(e){var t=this._getRootField(this._readSelector,e,!0),r=s(t,this._readSelector.variables);return this.getOperationRoot().getLinkedRecords(r)},t.invalidateStore=function(){this.__recordSource.invalidateStore()},e}();e.exports=o},function(e,t,r){"use strict";e.exports=function(e){0}},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(7)),s=n(r(25)),a=r(62),o=r(4),l=r(9),u=r(64),c=r(24),d=r(65),h=r(18),_=r(66),f=r(68),p=r(2),v=(r(16),r(43)),g=r(0),E=r(69),m=r(2),b=m.ROOT_ID,y=m.ROOT_TYPE,R=function(){function e(e,t){var r,n,i,a,u,c=this;(0,s.default)(this,"_gcStep",(function(){c._gcRun&&(c._gcRun.next().done?c._gcRun=null:c._gcScheduler(c._gcStep))})),this._currentWriteEpoch=0,this._gcHoldCounter=0,this._gcReleaseBufferSize=null!==(r=null==t?void 0:t.gcReleaseBufferSize)&&void 0!==r?r:10,this._gcRun=null,this._gcScheduler=null!==(n=null==t?void 0:t.gcScheduler)&&void 0!==n?n:E,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!==(a=null==t?void 0:t.log)&&void 0!==a?a: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===o.ENABLE_STORE_SUBSCRIPTIONS_REFACTOR?new f(null==t?void 0:t.log):new _(null==t?void 0:t.log),this._updatedRecordIDs=new Set,this._shouldProcessClientComponents=null==t?void 0:t.shouldProcessClientComponents,function(e){if(!e.has(b)){var t=l.create(b,y);e.set(b,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,s=e.root,o=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:o,h=null!==(i=null==t?void 0:t.handlers)&&void 0!==i?i:[];return function(e,t,r,n){var i=e.mostRecentlyInvalidatedAt,s=e.status;if("number"==typeof i&&(null==t||i>t))return{status:"stale"};if("missing"===s)return{status:"missing"};if(null!=r&&null!=n){if(r<=Date.now()-n)return{status:"stale"}}return{status:"available",fetchTime:null!=r?r:null}}(a.check(o,d,s,h,this._operationLoader,this._getDataID,this._shouldProcessClientComponents),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 s=t._releaseBuffer.shift();t._roots.delete(s),t.scheduleGC()}}}}}},t.lookup=function(e){var t=this.getSource();return c.read(t,e)},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(),s=[];if(this._storeSubscriptions.updateSubscriptions(i,this._updatedRecordIDs,s,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 a=e.request.identifier,o=this._roots.get(a);if(null!=o)o.epoch=this._currentWriteEpoch,o.fetchTime=Date.now();else if("query"===e.request.node.params.operationKind&&this._gcReleaseBufferSize>0&&this._releaseBuffer.length<this._gcReleaseBufferSize){var l={operation:e,refCount:0,epoch:this._currentWriteEpoch,fetchTime:Date.now()};this._releaseBuffer.push(a),this._roots.set(a,l)}}return s},t.publish=function(e,t){var r,n=null!==(r=this._optimisticSource)&&void 0!==r?r:this._recordSource;!function(e,t,r,n,i,s){n&&n.forEach((function(n){var i,a=e.get(n),o=t.get(n);null!==o&&((i=null!=a?l.clone(a):null!=o?l.clone(o):null)&&(l.setValue(i,p.INVALIDATED_AT_KEY,r),s.add(n),e.set(n,i)))}));for(var a=t.getRecordIDs(),o=0;o<a.length;o++){var u=a[o],c=t.get(u),d=e.get(u);if(c&&d){var _=l.getType(d)===h.REACT_FLIGHT_TYPE_NAME?c:l.update(d,c);_!==d&&(i.add(u),e.set(u,_))}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,s=(0,i.default)(e.dataIDs);try{for(s.s();!(n=s.n()).done;){var a=n.value;if(t.get(a)!==r.get(a))return!0}}catch(e){s.e(e)}finally{s.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);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);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 s=e.value.operation.root;if(d.mark(this._recordSource,s,r,this._operationLoader,this._shouldProcessClientComponents),yield,t!==this._currentWriteEpoch)continue e}}catch(e){n.e(e)}finally{n.f()}var a=this.__log;if(null!=a&&a({name:"store.gc",references:r}),0===r.size)this._recordSource.clear();else for(var o=this._recordSource.getRecordIDs(),l=0;l<o.length;l++){var u=o[l];r.has(u)||this._recordSource.remove(u)}return}},e}();e.exports=R},function(e,t,r){"use strict";var n=r(1)(r(7)),i=r(5),s=r(4),a=r(9),o=r(41),l=r(42),u=r(18),c=r(2),d=r(46),h=r(63),_=r(29),f=r(0),p=r(6).isClientID,v=r(22),g=v.EXISTENT,E=v.UNKNOWN,m=r(23).generateTypeID,b=i.CONDITION,y=i.CLIENT_COMPONENT,R=i.CLIENT_EXTENSION,I=i.DEFER,D=i.FLIGHT_FIELD,S=i.FRAGMENT_SPREAD,T=i.INLINE_FRAGMENT,N=i.LINKED_FIELD,F=i.LINKED_HANDLE,k=i.MODULE_IMPORT,O=i.SCALAR_FIELD,A=i.SCALAR_HANDLE,P=i.STREAM,L=i.TYPE_DISCRIMINATOR,C=c.ROOT_ID,M=c.getModuleOperationKey,w=c.getStorageKey,x=c.getArgumentValues;var U=function(){function e(e,t,r,n,i,s,a){var u=new o(e,t);this._mostRecentlyInvalidatedAt=null,this._handlers=n,this._mutator=u,this._operationLoader=null!=i?i:null,this._recordSourceProxy=new l(u,s),this._recordWasMissing=!1,this._source=e,this._variables=r,this._shouldProcessClientComponents=a}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)||f(!1),this._variables[e]},t._handleMissing=function(){this._recordWasMissing=!0},t._getDataForHandlers=function(e,t){return{args:e.args?x(e.args,this._variables):{},record:this._source.get(t)}},t._handleMissingScalarField=function(e,t){if("id"!==e.name||null!=e.alias||!p(t)){var r,i=this._getDataForHandlers(e,t),s=i.args,a=i.record,o=(0,n.default)(this._handlers);try{for(o.s();!(r=o.n()).done;){var l=r.value;if("scalar"===l.kind){var u=l.handle(e,a,s,this._recordSourceProxy);if(void 0!==u)return u}}}catch(e){o.e(e)}finally{o.f()}this._handleMissing()}},t._handleMissingLinkField=function(e,t){var r,i=this._getDataForHandlers(e,t),s=i.args,a=i.record,o=(0,n.default)(this._handlers);try{for(o.s();!(r=o.n()).done;){var l=r.value;if("linked"===l.kind){var u=l.handle(e,a,s,this._recordSourceProxy);if(void 0!==u&&(null===u||this._mutator.getStatus(u)===g))return u}}}catch(e){o.e(e)}finally{o.f()}this._handleMissing()},t._handleMissingPluralLinkField=function(e,t){var r,i=this,s=this._getDataForHandlers(e,t),a=s.args,o=s.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,o,a,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===E&&this._handleMissing(),r===g){var n=this._source.get(t),i=a.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 O:r._checkScalar(n,t);break;case N: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 T:var i=n.abstractKey;if(null==i)r._mutator.getType(t)===n.type&&r._traverseSelections(n.selections,t);else if(s.ENABLE_PRECISE_TYPE_REFINEMENT){var a=r._mutator.getType(t);null==a&&f(!1);var o=m(a),l=r._mutator.getValue(o,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 A:var c=h(n,e,r._variables);r._checkScalar(c,t);break;case k:r._checkModuleImport(n,t);break;case I:case P:r._traverseSelections(n.selections,t);break;case S:r._traverseSelections(n.fragment.selections,t);break;case R:var _=r._recordWasMissing;r._traverseSelections(n.selections,t),r._recordWasMissing=_;break;case L:if(s.ENABLE_PRECISE_TYPE_REFINEMENT){var p=n.abstractKey,v=r._mutator.getType(t);null==v&&f(!1);var g=m(v);null==r._mutator.getValue(g,p)&&r._handleMissing()}break;case D:if(!s.ENABLE_REACT_FLIGHT_COMPONENT_FIELD)throw new Error("Flight fields are not yet supported.");r._checkFlightField(n,t);break;case y:if(!1===r._shouldProcessClientComponents)break;r._traverseSelections(n.fragment.selections,t);break;default:f(!1)}}))},t._checkModuleImport=function(e,t){var r=this._operationLoader;null===r&&f(!1);var n=M(e.documentName),i=this._mutator.getValue(t,n);if(null!=i){var s=r.get(i);if(null!=s){var a=_(s);this._traverse(a,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 s=this._mutator.getValue(i,u.REACT_FLIGHT_TREE_STORAGE_KEY),a=this._mutator.getValue(i,u.REACT_FLIGHT_EXECUTABLE_DEFINITIONS_STORAGE_KEY);if(null!=s&&Array.isArray(a)){var o=this._operationLoader;null===o&&f(!1);var l,c=this._variables,d=(0,n.default)(a);try{for(d.s();!(l=d.n()).done;){var h=l.value;this._variables=h.variables;var p=o.get(h.module);if(null!=p){var v=_(p);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,s,a){var o=r.dataID,l=r.node,u=r.variables;return new U(e,t,u,n,i,s,a).check(l,o)}}},function(e,t,r){"use strict";var n=r(15),i=r(0),s=r(5).SCALAR_FIELD,a=r(2).getHandleStorageKey;e.exports=function(e,t,r){var o=t.find((function(t){return t.kind===s&&t.name===e.name&&t.alias===e.alias&&n(t.args,e.args)}));o&&o.kind===s||i(!1);var l=a(e,r);return{kind:"ScalarField",alias:o.alias,name:l,storageKey:l,args:null}}},function(e,t,r){"use strict";var n=r(1)(r(8)),i=r(17),s=Object.freeze({__UNPUBLISH_RECORD_SENTINEL:!0}),a=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)!==s:this._base.has(e)},t.get=function(e){if(this._sink.has(e)){var t=this._sink.get(e);return t===s?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,s)},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 a(e)}}},function(e,t,r){"use strict";var n=r(1)(r(7)),i=r(5),s=r(4),a=r(9),o=r(18),l=r(2),u=r(46),c=r(29),d=r(0),h=r(23).generateTypeID,_=i.CONDITION,f=i.CLIENT_COMPONENT,p=i.CLIENT_EXTENSION,v=i.DEFER,g=i.FLIGHT_FIELD,E=i.FRAGMENT_SPREAD,m=i.INLINE_FRAGMENT,b=i.LINKED_FIELD,y=i.MODULE_IMPORT,R=i.LINKED_HANDLE,I=i.SCALAR_FIELD,D=i.SCALAR_HANDLE,S=i.STREAM,T=i.TYPE_DISCRIMINATOR,N=l.ROOT_ID,F=l.getStorageKey,k=l.getModuleOperationKey;var O=function(){function e(e,t,r,n,i){this._operationLoader=null!=n?n:null,this._operationName=null,this._recordSource=e,this._references=r,this._variables=t,this._shouldProcessClientComponents=i}var t=e.prototype;return t.mark=function(e,t){"Operation"!==e.kind&&"SplitOperation"!==e.kind||(this._operationName=e.name),this._traverse(e,t)},t._traverse=function(e,t){this._references.add(t);var r=this._recordSource.get(t);null!=r&&this._traverseSelections(e.selections,r)},t._getVariableValue=function(e){return this._variables.hasOwnProperty(e)||d(!1),this._variables[e]},t._traverseSelections=function(e,t){var r=this;e.forEach((function(n){switch(n.kind){case b:n.plural?r._traversePluralLink(n,t):r._traverseLink(n,t);break;case _:r._getVariableValue(n.condition)===n.passingValue&&r._traverseSelections(n.selections,t);break;case m:if(null==n.abstractKey){var i=a.getType(t);null!=i&&i===n.type&&r._traverseSelections(n.selections,t)}else if(s.ENABLE_PRECISE_TYPE_REFINEMENT){var o=a.getType(t),l=h(o);r._references.add(l),r._traverseSelections(n.selections,t)}else r._traverseSelections(n.selections,t);break;case E:r._traverseSelections(n.fragment.selections,t);break;case R:var c=u(n,e,r._variables);c.plural?r._traversePluralLink(c,t):r._traverseLink(c,t);break;case v:case S:r._traverseSelections(n.selections,t);break;case I:case D:break;case T:if(s.ENABLE_PRECISE_TYPE_REFINEMENT){var N=a.getType(t),F=h(N);r._references.add(F)}break;case y:r._traverseModuleImport(n,t);break;case p:r._traverseSelections(n.selections,t);break;case g:if(!s.ENABLE_REACT_FLIGHT_COMPONENT_FIELD)throw new Error("Flight fields are not yet supported.");r._traverseFlightField(n,t);break;case f:if(!1===r._shouldProcessClientComponents)break;r._traverseSelections(n.fragment.selections,t);break;default:d(!1)}}))},t._traverseModuleImport=function(e,t){var r=this._operationLoader;null===r&&d(!1);var n=k(e.documentName),i=a.getValue(t,n);if(null!=i){var s=r.get(i);if(null!=s){var o=c(s).selections;this._traverseSelections(o,t)}}},t._traverseLink=function(e,t){var r=F(e,this._variables),n=a.getLinkedRecordID(t,r);null!=n&&this._traverse(e,n)},t._traversePluralLink=function(e,t){var r=this,n=F(e,this._variables),i=a.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=a.getLinkedRecordID(t,r);if(null!=i){this._references.add(i);var s=this._recordSource.get(i);if(null!=s){var l=a.getValue(s,o.REACT_FLIGHT_EXECUTABLE_DEFINITIONS_STORAGE_KEY);if(Array.isArray(l)){var u=this._operationLoader;null===u&&d(!1);var h,_=this._variables,f=(0,n.default)(l);try{for(f.s();!(h=f.n()).done;){var p=h.value;this._variables=p.variables;var v=p.module,g=u.get(v);if(null!=g){var E=c(g);this._traverse(E,N)}}}catch(e){f.e(e)}finally{f.f()}this._variables=_}}}},e}();e.exports={mark:function(e,t,r,n,i){var s=t.dataID,a=t.node,o=t.variables;new O(e,o,r,n,i).mark(a,s)}}},function(e,t,r){"use strict";var n=r(4),i=r(24),s=(r(16),r(67)),a=r(30),o=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),s=a(r.data,n.data);n.data=s,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,s=0!==t.size;this._subscriptions.forEach((function(a){var o=i._updateSubscription(e,a,t,s,n);null!=o&&r.push(o)}))},t._updateSubscription=function(e,t,r,o,l){var u=t.backup,c=t.callback,d=t.snapshot,h=t.stale,_=o&&s(d.seenRecords,r);if(h||_){var f=_||!u?i.read(e,d.selector):u;return f={data:a(d.data,f.data),isMissingData:f.isMissingData,seenRecords:f.seenRecords,selector:f.selector,missingRequiredFields:f.missingRequiredFields},t.snapshot=f,t.stale=!1,f.data!==d.data?(this.__log&&n.ENABLE_NOTIFY_SUBSCRIPTION&&this.__log({name:"store.notify.subscription",sourceOperation:l,snapshot:d,nextSnapshot:f}),c(f),d.selector.owner):void 0}},e}();e.exports=o},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 s=i.value;if(t.has(s))return!0;i=r.next()}return!1}},function(e,t,r){"use strict";var n=r(1)(r(7)),i=r(4),s=r(24),a=(r(16),r(30)),o=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,s={backup:null,callback:t,notifiedRevision:this._notifiedRevision,snapshotRevision:this._snapshotRevision,snapshot:e},a=(0,n.default)(e.seenRecords);try{for(a.s();!(r=a.n()).done;){var o=r.value,l=this._subscriptionsByDataId.get(o);null!=l?l.add(s):this._subscriptionsByDataId.set(o,new Set([s]))}}catch(e){a.e(e)}finally{a.f()}return{dispose:function(){var t,r=(0,n.default)(e.seenRecords);try{for(r.s();!(t=r.n()).done;){var a=t.value,o=i._subscriptionsByDataId.get(a);null!=o&&(o.delete(s),0===o.size&&i._subscriptionsByDataId.delete(a))}}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=s.read(e,n.selector),o=a(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 s=i._subscriptionsByDataId.get(t);null!=s&&s.forEach((function(t){if(t.notifiedRevision!==i._notifiedRevision){var s=i._updateSubscription(e,t,!1,n);null!=s&&r.push(s)}}))})),this._staleSubscriptions.forEach((function(t){if(t.notifiedRevision!==i._notifiedRevision){var s=i._updateSubscription(e,t,!0,n);null!=s&&r.push(s)}})),this._staleSubscriptions.clear()},t._updateSubscription=function(e,t,r,n){var o=t.backup,l=t.callback,u=t.snapshot,c=r&&null!=o?o:s.read(e,u.selector);c={data:a(u.data,c.data),isMissingData:c.isMissingData,seenRecords:c.seenRecords,selector:c.selector,missingRequiredFields:c.missingRequiredFields};var d=t.snapshot.seenRecords;if(t.snapshot=c,t.notifiedRevision=this._notifiedRevision,this._updateSubscriptionsMap(t,d),c.data!==u.data)return this.__log&&i.ENABLE_NOTIFY_SUBSCRIPTION&&this.__log({name:"store.notify.subscription",sourceOperation:n,snapshot:u,nextSnapshot:c}),l(c),u.selector.owner},t._updateSubscriptionsMap=function(e,t){var r,i=(0,n.default)(t);try{for(i.s();!(r=i.n()).done;){var s=r.value,a=this._subscriptionsByDataId.get(s);null!=a&&(a.delete(e),0===a.size&&this._subscriptionsByDataId.delete(s))}}catch(e){i.e(e)}finally{i.f()}var o,l=(0,n.default)(e.snapshot.seenRecords);try{for(l.s();!(o=l.n()).done;){var u=o.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=o},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(71).convertFetch;e.exports={create:function(e,t){var r=i(e);return{execute:function(e,i,s,a,o){if("subscription"===e.operationKind)return t||n(!1),a&&n(!1),t(e,i,s);var l=s.poll;return null!=l?(a&&n(!1),r(e,i,{force:!0}).poll(l)):r(e,i,s,a,o)}}}}},function(e,t,r){"use strict";var n=r(12);e.exports={convertFetch:function(e){return function(t,r,i,s,a){var o=e(t,r,i,s,a);return o instanceof Error?n.create((function(e){return e.error(o)})):n.from(o)}}}},function(e,t,r){"use strict";var n={},i={stop:function(){}},s={profile:function(e,t){var r=n[e];if(r&&r.length>0){for(var s=[],a=r.length-1;a>=0;a--){var o=r[a](e,t);s.unshift(o)}return{stop:function(e){s.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,s;n.hasOwnProperty(e)&&(r=n[e],i=t,-1!==(s=r.indexOf(i))&&r.splice(s,1))}};e.exports=s},function(e,t,r){"use strict";var n=r(1)(r(8)),i=r(0),s=r(14),a=function(){function e(e){var t=e.size,r=e.ttl;t>0||i(!1),r>0||i(!1),this._responses=new Map,this._size=t,this._ttl=r}var t=e.prototype;return t.clear=function(){this._responses.clear()},t.get=function(e,t){var r=this,i=o(e,t);this._responses.forEach((function(e,t){var n,i;n=e.fetchTime,i=r._ttl,n+i>=Date.now()||r._responses.delete(t)}));var s=this._responses.get(i);return null!=s?(0,n.default)((0,n.default)({},s.payload),{},{extensions:(0,n.default)((0,n.default)({},s.payload.extensions),{},{cacheTimestamp:s.fetchTime})}):null},t.set=function(e,t,r){var n=Date.now(),i=o(e,t);if(this._responses.delete(i),this._responses.set(i,{fetchTime:n,payload:r}),this._responses.size>this._size){var s=this._responses.keys().next();s.done||this._responses.delete(s.value)}},e}();function o(e,t){return JSON.stringify(s({queryID:e,variables:t}))}e.exports=a},function(e,t,r){"use strict";var n=r(21),i=r(0),s=r(31),a=r(10).getRequest,o=r(13).createOperationDescriptor;e.exports=function(e,t){s(e)||i(!1);var r=a(t.mutation);if("mutation"!==r.params.operationKind)throw new Error("commitMutation: Expected mutation operation");var l=t.optimisticUpdater,u=t.configs,c=t.optimisticResponse,d=t.variables,h=o(r,d);return u&&(l=n.convert(u,r,l).optimisticUpdater),e.applyMutation({operation:h,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(20)),i=r(21),s=r(0),a=r(31),o=(r(77),r(3),r(10).getRequest),l=r(6).generateUniqueClientID,u=r(13).createOperationDescriptor;e.exports=function(e,t){a(e)||s(!1);var r=o(t.mutation);if("mutation"!==r.params.operationKind)throw new Error("commitMutation: Expected mutation operation");if("Request"!==r.kind)throw new Error("commitMutation: Expected mutation to be of type request");var c=t.optimisticResponse,d=t.optimisticUpdater,h=t.updater,_=t.configs,f=t.cacheConfig,p=t.onError,v=t.onUnsubscribe,g=t.variables,E=t.uploadables,m=u(r,g,f,l());if("function"==typeof c&&(c=c()),_){var b=i.convert(_,r,d,h);d=b.optimisticUpdater,h=b.updater}var y=[];return{dispose:e.executeMutation({operation:m,optimisticResponse:c,optimisticUpdater:d,updater:h,uploadables:E}).subscribe({next:function(e){Array.isArray(e)?e.forEach((function(e){e.errors&&y.push.apply(y,(0,n.default)(e.errors))})):e.errors&&y.push.apply(y,(0,n.default)(e.errors))},complete:function(){var r=t.onCompleted;r&&r(e.lookup(m.fragment).data,0!==y.length?y:null)},error:p,unsubscribe:v}).unsubscribe}}},function(e,t,r){"use strict";r(1)(r(8)),r(3),Object.prototype.hasOwnProperty;var n=r(5);n.CONDITION,n.CLIENT_COMPONENT,n.CLIENT_EXTENSION,n.DEFER,n.FLIGHT_FIELD,n.FRAGMENT_SPREAD,n.INLINE_FRAGMENT,n.LINKED_FIELD,n.LINKED_HANDLE,n.MODULE_IMPORT,n.SCALAR_FIELD,n.SCALAR_HANDLE,n.STREAM,n.TYPE_DISCRIMINATOR;e.exports=function(){}},function(e,t,r){"use strict";var n=r(79);r(3);e.exports=function(e,t,r,i,s,a){return new n(e,r,i,a,s)}},function(e,t,r){"use strict";var n=r(1),i=n(r(8)),s=n(r(25)),a=r(4),o=r(15),l=r(0),u=r(48),c=r(32),d=(r(3),r(33).getPromiseForActiveRequest),h=r(13).createRequestDescriptor,_=r(11),f=_.areEqualSelectors,p=_.createReaderSelector,v=_.getSelectorsFromObject,g=function(){function e(e,t,r,n,i){var a=this;(0,s.default)(this,"_onChange",(function(){a._stale=!0,"function"==typeof a._callback&&a._callback()})),this._callback=n,this._context=e,this._data={},this._fragments=t,this._props={},this._resolvers={},this._stale=!1,this._rootIsQueryRenderer=i,this.setProps(r)}var t=e.prototype;return t.dispose=function(){for(var e in this._resolvers)this._resolvers.hasOwnProperty(e)&&b(this._resolvers[e])},t.resolve=function(){if(this._stale){var e,t=this._data;for(var r in this._resolvers)if(this._resolvers.hasOwnProperty(r)){var n=this._resolvers[r],s=t[r];if(n){var a=n.resolve();(e||a!==s)&&((e=e||(0,i.default)({},t))[r]=a)}else{var o=this._props[r],l=void 0!==o?o:null;!e&&u(l,s)||((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=v(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 m(this._context.environment,this._rootIsQueryRenderer,n,this._onChange):(i instanceof m||l(!1),i.setSelector(n)):null==i?i=new E(this._context.environment,this._rootIsQueryRenderer,n,this._onChange):(i instanceof E||l(!1),i.setSelector(n)),this._props[r]=e[r],this._resolvers[r]=i}this._stale=!0},t.setVariables=function(e,t){for(var r in this._resolvers)if(this._resolvers.hasOwnProperty(r)){var n=this._resolvers[r];n&&n.setVariables(e,t)}this._stale=!0},e}(),E=function(){function e(e,t,r,n){var i=this;(0,s.default)(this,"_onChange",(function(e){i._data=e.data,i._isMissingData=e.isMissingData,i._missingRequiredFields=e.missingRequiredFields,i._callback()}));var a=e.lookup(r);this._callback=n,this._data=a.data,this._isMissingData=a.isMissingData,this._missingRequiredFields=a.missingRequiredFields,this._environment=e,this._rootIsQueryRenderer=t,this._selector=r,this._subscription=e.subscribe(a,this._onChange)}var t=e.prototype;return t.dispose=function(){this._subscription&&(this._subscription.dispose(),this._subscription=null)},t.resolve=function(){if(!0===a.ENABLE_RELAY_CONTAINERS_SUSPENSE&&!0===this._isMissingData){var e,t=null!==(e=d(this._environment,this._selector.owner))&&void 0!==e?e:this._environment.getOperationTracker().getPromiseForPendingOperationsAffectingOwner(this._selector.owner);if(null!=t&&!this._rootIsQueryRenderer)throw t}return null!=this._missingRequiredFields&&c(this._environment,this._missingRequiredFields),this._data},t.setSelector=function(e){if(null==this._subscription||!f(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(!o(e,this._selector.variables)){var r=h(t,e),n=p(this._selector.node,this._selector.dataID,e,r);this.setSelector(n)}},e}(),m=function(){function e(e,t,r,n){var i=this;(0,s.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(b)},t.resolve=function(){if(this._stale){for(var e,t=this._data,r=0;r<this._resolvers.length;r++){var n=t[r],i=this._resolvers[r].resolve();(e||i!==n)&&(e=e||t.slice(0,r)).push(i)}e||this._resolvers.length===t.length||(e=t.slice(0,this._resolvers.length)),this._data=e||t,this._stale=!1}return this._data},t.setSelector=function(e){for(var t=e.selectors;this._resolvers.length>t.length;){this._resolvers.pop().dispose()}for(var r=0;r<t.length;r++)r<this._resolvers.length?this._resolvers[r].setSelector(t[r]):this._resolvers[r]=new E(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 b(e){e&&e.dispose()}e.exports=g},function(e,t,r){"use strict";var n=r(1)(r(8)),i=r(2),s=i.getModuleComponentKey,a=i.getModuleOperationKey;e.exports=function(e,t,r,i){var o=(0,n.default)({},i);return o[s(e)]=r,o[a(e)]=t,o}},function(e,t,r){"use strict";var n,i,s=r(0);e.exports=function(e){return n||(n=e.createContext(null),i=e),e!==i&&s(!1),n}},function(e,t,r){"use strict";var n=r(1)(r(8)),i=r(12),s=r(33),a=r(0),o=r(32),l=r(13).createOperationDescriptor,u=r(10).getRequest;function c(e,t){return s.fetchQuery(e,t).map((function(){return e.lookup(t.fragment)}))}e.exports=function(e,t,r,s){var d,h=u(t);"query"!==h.params.operationKind&&a(!1);var _=(0,n.default)({force:!0},null==s?void 0:s.networkCacheConfig),f=l(h,r,_),p=null!==(d=null==s?void 0:s.fetchPolicy)&&void 0!==d?d:"network-only";function v(t){return null!=t.missingRequiredFields&&o(e,t.missingRequiredFields),t.data}switch(p){case"network-only":return c(e,f).map(v);case"store-or-network":return"available"===e.check(f).status?i.from(e.lookup(f.fragment)).map(v):c(e,f).map(v);default:throw new Error("fetchQuery: Invalid fetchPolicy "+p)}}},function(e,t,r){"use strict";var n=r(13).createOperationDescriptor,i=r(10).getRequest;e.exports=function(e,t,r,s){var a=i(t);if("query"!==a.params.operationKind)throw new Error("fetchQuery: Expected query operation");var o=n(a,r,s);return e.execute({operation:o}).map((function(){return e.lookup(o.fragment).data})).toPromise()}},function(e,t,r){"use strict";var n=r(4),i=r(85),s=r(14),a=r(11),o=a.getDataIDsFromFragment,l=a.getVariablesFromFragment,u=a.getSelector;e.exports=function(e,t){var r,a=u(e,t),c=null==a?"null":"SingularReaderSelector"===a.kind?a.owner.identifier:"["+a.selectors.map((function(e){return e.owner.identifier})).join(",")+"]",d=l(e,t),h=o(e,t);return n.ENABLE_GETFRAGMENTIDENTIFIER_OPTIMIZATION?c+"/"+e.name+"/"+(null==d||i(d)?"{}":JSON.stringify(s(d)))+"/"+(void 0===h?"missing":null==h?"null":Array.isArray(h)?"["+h.join(",")+"]":h):c+"/"+e.name+"/"+JSON.stringify(s(d))+"/"+(null!==(r=JSON.stringify(h))&&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,s=r(2).FRAGMENTS_KEY;e.exports=function(e,t){var r,a=i(e);if(null==t)return t;"object"!=typeof t&&n(!1);var o=null===(r=t[s])||void 0===r?void 0:r[a.name];return null==o&&n(!1),o}},function(e,t,r){"use strict";var n=r(21),i=r(4),s=(r(3),r(10).getRequest),a=r(6).generateUniqueClientID,o=r(13).createOperationDescriptor,l=r(11).createReaderSelector;e.exports=function(e,t){var r=s(t.subscription);if("subscription"!==r.params.operationKind)throw new Error("requestSubscription: Must use Subscription operation");var u=t.configs,c=t.onCompleted,d=t.onError,h=t.onNext,_=t.variables,f=t.cacheConfig,p=o(r,_,f,i.ENABLE_UNIQUE_SUBSCRIPTION_ROOT?a():void 0),v=(u?n.convert(u,r,null,t.updater):t).updater;return{dispose:e.execute({operation:p,updater:v}).map((function(t){var r=p.fragment;if(i.ENABLE_UNIQUE_SUBSCRIPTION_ROOT){var n,s,a,o;if(Array.isArray(t))n=null===(s=t[0])||void 0===s||null===(a=s.extensions)||void 0===a?void 0:a.__relay_subscription_root_id;else n=null===(o=t.extensions)||void 0===o?void 0:o.__relay_subscription_root_id;"string"==typeof n&&(r=l(r.node,n,r.variables,r.owner))}return e.lookup(r).data})).subscribe({next:h,error:d,complete:c}).unsubscribe}}}])}));
|