relay-runtime 2.0.0-rc.2 → 5.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (77) hide show
  1. package/index.js +1 -1
  2. package/lib/{generateRelayClientID.js → ClientID.js} +10 -3
  3. package/lib/ConvertToExecuteFunction.js +6 -4
  4. package/lib/DataChecker.js +88 -69
  5. package/lib/NormalizationNode.js +1 -1
  6. package/lib/ReaderNode.js +1 -1
  7. package/lib/RelayCombinedEnvironmentTypes.js +1 -1
  8. package/lib/RelayConcreteNode.js +5 -2
  9. package/lib/RelayConcreteVariables.js +15 -9
  10. package/lib/RelayConnectionHandler.js +27 -20
  11. package/lib/RelayConnectionInterface.js +4 -2
  12. package/lib/RelayCore.js +48 -15
  13. package/lib/RelayDeclarativeMutationConfig.js +16 -15
  14. package/lib/RelayDefaultHandleKey.js +1 -1
  15. package/lib/RelayDefaultHandlerProvider.js +7 -6
  16. package/lib/RelayDefaultMissingFieldHandlers.js +26 -0
  17. package/lib/RelayError.js +7 -2
  18. package/lib/RelayFeatureFlags.js +16 -0
  19. package/lib/RelayInMemoryRecordSource.js +8 -2
  20. package/lib/RelayModernEnvironment.js +159 -237
  21. package/lib/RelayModernFragmentOwner.js +72 -0
  22. package/lib/RelayModernFragmentSpecResolver.js +66 -15
  23. package/lib/RelayModernGraphQLTag.js +9 -5
  24. package/lib/RelayModernOperationDescriptor.js +9 -6
  25. package/lib/RelayModernQueryExecutor.js +791 -0
  26. package/lib/RelayModernRecord.js +44 -24
  27. package/lib/RelayModernSelector.js +208 -82
  28. package/lib/RelayModernStore.js +66 -34
  29. package/lib/RelayNetwork.js +14 -7
  30. package/lib/RelayNetworkLogger.js +6 -2
  31. package/lib/RelayNetworkLoggerTransaction.js +8 -4
  32. package/lib/RelayNetworkTypes.js +1 -1
  33. package/lib/RelayObservable.js +72 -41
  34. package/lib/RelayOperationTracker.js +265 -0
  35. package/lib/RelayProfiler.js +10 -6
  36. package/lib/RelayPublishQueue.js +66 -47
  37. package/lib/RelayQueryResponseCache.js +11 -5
  38. package/lib/RelayReader.js +135 -126
  39. package/lib/RelayRecordProxy.js +24 -20
  40. package/lib/RelayRecordSourceMutator.js +88 -25
  41. package/lib/RelayRecordSourceProxy.js +38 -19
  42. package/lib/RelayRecordSourceSelectorProxy.js +10 -7
  43. package/lib/RelayRecordState.js +1 -1
  44. package/lib/RelayReferenceMarker.js +66 -55
  45. package/lib/RelayReplaySubject.js +134 -0
  46. package/lib/RelayResponseNormalizer.js +245 -134
  47. package/lib/RelayRuntimeTypes.js +1 -1
  48. package/lib/RelayStoreUtils.js +55 -16
  49. package/lib/RelayViewerHandler.js +8 -50
  50. package/lib/StoreInspector.js +171 -0
  51. package/lib/applyRelayModernOptimisticMutation.js +8 -2
  52. package/lib/cloneRelayHandleSourceField.js +17 -7
  53. package/lib/commitLocalUpdate.js +1 -1
  54. package/lib/commitRelayModernMutation.js +33 -13
  55. package/lib/createRelayContext.js +27 -0
  56. package/lib/createRelayNetworkLogger.js +8 -2
  57. package/lib/deepFreeze.js +1 -1
  58. package/lib/defaultGetDataID.js +24 -0
  59. package/lib/fetchQueryInternal.js +232 -0
  60. package/lib/fetchRelayModernQuery.js +5 -3
  61. package/lib/getFragmentIdentifier.js +52 -0
  62. package/lib/getFragmentSpecIdentifier.js +26 -0
  63. package/lib/getRelayHandleKey.js +8 -2
  64. package/lib/getRequestParametersIdentifier.js +26 -0
  65. package/lib/hasOverlappingIDs.js +1 -1
  66. package/lib/index.js +155 -53
  67. package/lib/isPromise.js +1 -1
  68. package/lib/isScalarAndEqual.js +1 -1
  69. package/lib/normalizeRelayPayload.js +19 -10
  70. package/lib/recycleNodesInto.js +23 -5
  71. package/lib/requestRelaySubscription.js +9 -3
  72. package/lib/validateMutation.js +13 -6
  73. package/package.json +2 -2
  74. package/relay-runtime.js +2 -2
  75. package/relay-runtime.min.js +2 -2
  76. package/lib/normalizePayload.js +0 -37
  77. package/lib/simpleClone.js +0 -27
@@ -1,9 +1,9 @@
1
1
  /**
2
- * Relay v2.0.0-rc.2
2
+ * Relay v5.0.0
3
3
  *
4
4
  * Copyright (c) 2013-present, Facebook, Inc.
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("fbjs/lib/ErrorUtils"),require("fbjs/lib/areEqual"),require("fbjs/lib/emptyFunction"),require("fbjs/lib/removeFromArray"),require("fbjs/lib/sprintf"),require("fbjs/lib/resolveImmediate"),require("fbjs/lib/mapObject")):"function"==typeof define&&define.amd?define(["fbjs/lib/invariant","fbjs/lib/ErrorUtils","fbjs/lib/areEqual","fbjs/lib/emptyFunction","fbjs/lib/removeFromArray","fbjs/lib/sprintf","fbjs/lib/resolveImmediate","fbjs/lib/mapObject"],t):"object"==typeof exports?exports.RelayRuntime=t(require("fbjs/lib/invariant"),require("fbjs/lib/ErrorUtils"),require("fbjs/lib/areEqual"),require("fbjs/lib/emptyFunction"),require("fbjs/lib/removeFromArray"),require("fbjs/lib/sprintf"),require("fbjs/lib/resolveImmediate"),require("fbjs/lib/mapObject")):e.RelayRuntime=t(e["fbjs/lib/invariant"],e["fbjs/lib/ErrorUtils"],e["fbjs/lib/areEqual"],e["fbjs/lib/emptyFunction"],e["fbjs/lib/removeFromArray"],e["fbjs/lib/sprintf"],e["fbjs/lib/resolveImmediate"],e["fbjs/lib/mapObject"])}(window,function(e,t,r,n,i,o,a,s){return function(e){var t={};function r(n){if(t[n])return t[n].exports;var i=t[n]={i:n,l:!1,exports:{}};return e[n].call(i.exports,i,i.exports,r),i.l=!0,i.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)r.d(n,i,function(t){return e[t]}.bind(null,i));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=44)}([function(e,t,r){"use strict";function n(e,t){var n={};return e.forEach(function(e){e.kind===r(3).VARIABLE?n[e.name]=function(e,t){return t.hasOwnProperty(e)||r(1)(!1),r(19)(t[e])}(e.variableName,t):n[e.name]=e.value}),n}function i(e,t){if(!t)return e;var r=[];for(var n in t)if(t.hasOwnProperty(n)){var i=t[n];null!=i&&r.push(n+":"+JSON.stringify(i))}return 0===r.length?e:e+"(".concat(r.join(","),")")}var o={FRAGMENTS_KEY:"__fragments",FRAGMENT_OWNER_KEY:"__fragmentOwner",FRAGMENT_PROP_NAME_KEY:"__fragmentPropName",MATCH_COMPONENT_KEY:"__match_component",MATCH_FRAGMENT_KEY:"__match_fragment",ID_KEY:"__id",MODULE_KEY:"__module",REF_KEY:"__ref",REFS_KEY:"__refs",ROOT_ID:"client:root",ROOT_TYPE:"__Root",TYPENAME_KEY:"__typename",UNPUBLISH_RECORD_SENTINEL:Object.freeze({__UNPUBLISH_RECORD_SENTINEL:!0}),UNPUBLISH_FIELD_SENTINEL:Object.freeze({__UNPUBLISH_FIELD_SENTINEL:!0}),getArgumentValues:n,getHandleStorageKey:function(e,t){var o=e.handle,a=e.key,s=e.name,u=e.args,c=e.filters,l=r(24)(o,a,s);return u&&c&&0!==u.length&&0!==c.length?i(l,n(u.filter(function(e){return c.indexOf(e.name)>-1}),t)):l},getStorageKey:function(e,t){if(e.storageKey)return e.storageKey;var r=e.args,o=e.name;return r&&0!==r.length?i(o,n(r,t)):o},getStableStorageKey:function(e,t){return i(e,r(19)(t))}};e.exports=o},function(t,r){t.exports=e},function(e,t,r){"use strict";var n=r(5)(r(13));e.exports={clone:function(e){return(0,n.default)({},e)},copyFields:function(e,t){for(var n in e)e.hasOwnProperty(n)&&n!==r(0).ID_KEY&&n!==r(0).TYPENAME_KEY&&(t[n]=e[n])},create:function(e,t){var n={};return n[r(0).ID_KEY]=e,n[r(0).TYPENAME_KEY]=t,n},freeze:function(e){r(35)(e)},getDataID:function(e){return e[r(0).ID_KEY]},getLinkedRecordID:function(e,t){var n=e[t];return null==n?n:("object"==typeof n&&n&&"string"==typeof n[r(0).REF_KEY]||r(1)(!1),n[r(0).REF_KEY])},getLinkedRecordIDs:function(e,t){var n=e[t];return null==n?n:("object"==typeof n&&Array.isArray(n[r(0).REFS_KEY])||r(1)(!1),n[r(0).REFS_KEY])},getType:function(e){return e[r(0).TYPENAME_KEY]},getValue:function(e,t){var n=e[t];return n&&"object"==typeof n&&(n.hasOwnProperty(r(0).REF_KEY)||n.hasOwnProperty(r(0).REFS_KEY))&&r(1)(!1),n},merge:function(e,t){return Object.assign({},e,t)},setValue:function(e,t,r){e[t]=r},setLinkedRecordID:function(e,t,n){var i={};i[r(0).REF_KEY]=n,e[t]=i},setLinkedRecordIDs:function(e,t,n){var i={};i[r(0).REFS_KEY]=n,e[t]=i},update:function(e,t){for(var i=null,o=Object.keys(t),a=0;a<o.length;a++){var s=o[a];!i&&r(25)(e[s],t[s])||(i=null!==i?i:(0,n.default)({},e),t[s]!==r(0).UNPUBLISH_FIELD_SENTINEL?i[s]=t[s]:delete i[s])}return null!==i?i:e}}},function(e,t,r){"use strict";e.exports={CONDITION:"Condition",FRAGMENT:"Fragment",FRAGMENT_SPREAD:"FragmentSpread",INLINE_FRAGMENT:"InlineFragment",LINKED_FIELD:"LinkedField",LINKED_HANDLE:"LinkedHandle",LITERAL:"Literal",LOCAL_ARGUMENT:"LocalArgument",MATCH_FIELD:"MatchField",OPERATION:"Operation",REQUEST:"Request",ROOT_ARGUMENT:"RootArgument",SCALAR_FIELD:"ScalarField",SCALAR_HANDLE:"ScalarHandle",SPLIT_OPERATION:"SplitOperation",VARIABLE:"Variable"}},function(e,t,r){"use strict";e.exports={EXISTENT:"EXISTENT",NONEXISTENT:"NONEXISTENT",UNKNOWN:"UNKNOWN"}},function(e,t){e.exports=function(e){return e&&e.__esModule?e:{default:e}}},function(e,t,r){"use strict";function n(e){var t="function"==typeof e?e:"function"==typeof e.modern?e.modern:null;if(null===t)return e;var r=t();return r.default?r.default:r}function i(e){var t=n(e);return"object"==typeof t&&null!==t&&t.kind===r(3).FRAGMENT}function o(e){var t=n(e);return"object"==typeof t&&null!==t&&t.kind===r(3).REQUEST}function a(e){var t=n(e);return i(t)||r(1)(!1),t}e.exports={getFragment:a,getPaginationFragment:function(e){var t,r=a(e),n=null===(t=r.metadata)||void 0===t?void 0:t.refetch,i=null===n||void 0===n?void 0:n.connection;return null===n||"object"!=typeof n||null===i||"object"!=typeof i?null:r},getRefetchableFragment:function(e){var t,r=a(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=n(e);return o(t)||r(1)(!1),t},graphql:function(e){r(1)(!1)},isFragment:i,isRequest:o}},function(e,t,r){"use strict";var n="client:";e.exports=function(e,t,r){var i=e+":"+t;return null!=r&&(i+=":"+r),0!==i.indexOf(n)&&(i=n+i),i}},function(e,t,r){"use strict";e.exports={areEqualSelectors:r(12).areEqualSelectors,createFragmentSpecResolver:function(e,t,n,i,o){return new(r(49))(e,n,i,o)},createOperationDescriptor:r(50).createOperationDescriptor,getDataIDsFromObject:r(12).getDataIDsFromObject,getFragment:r(6).getFragment,getPaginationFragment:r(6).getPaginationFragment,getRefetchableFragment:r(6).getRefetchableFragment,getRequest:r(6).getRequest,getSelector:r(12).getSelector,getSelectorList:r(12).getSelectorList,getSelectorsFromObject:r(12).getSelectorsFromObject,getVariablesFromObject:r(12).getVariablesFromObject,isFragment:r(6).isFragment,isRequest:r(6).isRequest}},function(e,t,r){"use strict";var n="connection",i="__connection_next_edge_index";function o(e,t,n){if(null==n)return n;var o=r(10).get().EDGES,a=t.getValue(i);"number"!=typeof a&&r(1)(!1);var s=r(7)(t.getDataID(),o,a),u=e.create(s,n.getType());return u.copyFieldsFrom(n),t.setValue(a+1,i),u}function a(e,t,n){for(var i=r(10).get().NODE,o=0;o<e.length;o++){var a=e[o];if(a){var s=a.getLinkedRecord(i),u=s&&s.getValue("id");if(u){if(n.has(u))continue;n.add(u)}t.push(a)}}}e.exports={buildConnectionEdge:o,createEdge:function(e,t,n,i){var o=r(10).get().NODE,a=r(7)(t.getDataID(),n.getDataID()),s=e.get(a);return s||(s=e.create(a,i)),s.setLinkedRecord(n,o),s},deleteNode:function(e,t){var n=r(10).get(),i=n.EDGES,o=n.NODE,a=e.getLinkedRecords(i);if(a){for(var s,u=0;u<a.length;u++){var c=a[u],l=c&&c.getLinkedRecord(o);null!=l&&l.getDataID()===t?void 0===s&&(s=a.slice(0,u)):void 0!==s&&s.push(c)}void 0!==s&&e.setLinkedRecords(s,i)}},getConnection:function(e,t,i){var o=r(24)(n,t,null);return e.getLinkedRecord(o,i)},insertEdgeAfter:function(e,t,n){var i=r(10).get(),o=i.CURSOR,a=i.EDGES,s=e.getLinkedRecords(a);if(s){var u;if(null==n)u=s.concat(t);else{u=[];for(var c=!1,l=0;l<s.length;l++){var d=s[l];u.push(d),null!=d&&n===d.getValue(o)&&(u.push(t),c=!0)}c||u.push(t)}e.setLinkedRecords(u,a)}else e.setLinkedRecords([t],a)},insertEdgeBefore:function(e,t,n){var i=r(10).get(),o=i.CURSOR,a=i.EDGES,s=e.getLinkedRecords(a);if(s){var u;if(null==n)u=[t].concat(s);else{u=[];for(var c=!1,l=0;l<s.length;l++){var d=s[l];null!=d&&n===d.getValue(o)&&(u.push(t),c=!0),u.push(d)}c||u.unshift(t)}e.setLinkedRecords(u,a)}else e.setLinkedRecords([t],a)},update:function(e,t){var n=e.get(t.dataID);if(n){var s=r(10).get(),u=s.EDGES,c=s.END_CURSOR,l=s.HAS_NEXT_PAGE,d=s.HAS_PREV_PAGE,f=s.PAGE_INFO,h=s.PAGE_INFO_TYPE,p=s.START_CURSOR,_=n.getLinkedRecord(t.fieldKey),g=_&&_.getLinkedRecord(f);if(_){var v=n.getLinkedRecord(t.handleKey),b=v&&v.getLinkedRecord(f);if(v){var y=v,m=_.getLinkedRecords(u);m&&(m=m.map(function(t){return o(e,y,t)}));var E=y.getLinkedRecords(u),R=y.getLinkedRecord(f);y.copyFieldsFrom(_),E&&y.setLinkedRecords(E,u),R&&y.setLinkedRecord(R,f);var S=[],D=t.args;if(E&&m)if(null!=D.after){if(!b||D.after!==b.getValue(c))return;var k=new Set;a(E,S,k),a(m,S,k)}else if(null!=D.before){if(!b||D.before!==b.getValue(p))return;var L=new Set;a(m,S,L),a(E,S,L)}else S=m;else S=m||E;if(null!=S&&S!==E&&y.setLinkedRecords(S,u),b&&g)if(null==D.after&&null==D.before)b.copyFieldsFrom(g);else if(null!=D.before||null==D.after&&D.last){b.setValue(!!g.getValue(d),d);var I=g.getValue(p);"string"==typeof I&&b.setValue(I,p)}else if(null!=D.after||null==D.before&&D.first){b.setValue(!!g.getValue(l),l);var N=g.getValue(c);"string"==typeof N&&b.setValue(N,c)}}else{var O=e.create(r(7)(n.getDataID(),t.handleKey),_.getType());O.setValue(0,i),O.copyFieldsFrom(_);var F=_.getLinkedRecords(u);F&&(F=F.map(function(t){return o(e,O,t)}),O.setLinkedRecords(F,u)),n.setLinkedRecord(O,t.handleKey),(b=e.create(r(7)(O.getDataID(),f),h)).setValue(!1,l),b.setValue(!1,d),b.setValue(null,c),b.setValue(null,p),g&&b.copyFieldsFrom(g),O.setLinkedRecord(b,f)}}else n.setValue(null,t.handleKey)}}}},function(e,t,r){"use strict";var n=r(5)(r(18)),i={after:!0,before:!0,find:!0,first:!0,last:!0,surrounds:!0},o={find:!0,first:!0,last:!0},a={CLIENT_MUTATION_ID:"clientMutationId",CURSOR:"cursor",EDGES_HAVE_SOURCE_FIELD:!1,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){a=e},get:function(){return a},isConnectionCall:function(e){return i.hasOwnProperty(e.name)},hasRangeCalls:function(e){return e.some(function(e){return o.hasOwnProperty(e.name)})},getDefaultPageInfo:function(){var e;return e={},(0,n.default)(e,a.END_CURSOR,null),(0,n.default)(e,a.HAS_NEXT_PAGE,!1),(0,n.default)(e,a.HAS_PREV_PAGE,!1),(0,n.default)(e,a.START_CURSOR,null),e}};e.exports=s},function(e,t,r){"use strict";var n=function(){function e(e){this._records=e||{}}var t=e.prototype;return t.clear=function(){this._records={}},t.delete=function(e){this._records[e]=null},t.get=function(e){return this._records[e]},t.getRecordIDs=function(){return Object.keys(this._records)},t.getStatus=function(e){return this._records.hasOwnProperty(e)?null==this._records[e]?r(4).NONEXISTENT:r(4).EXISTENT:r(4).UNKNOWN},t.has=function(e){return this._records.hasOwnProperty(e)},t.load=function(e,t){t(null,this.get(e))},t.remove=function(e){delete this._records[e]},t.set=function(e,t){this._records[e]=t},t.size=function(){return Object.keys(this._records).length},t.toJSON=function(){return this._records},e}();e.exports=n},function(e,t,r){"use strict";function n(e,t,n){("object"!=typeof n||null===n||Array.isArray(n))&&r(1)(!1);var i=n[r(0).ID_KEY],o=n[r(0).FRAGMENTS_KEY],a=n[r(0).FRAGMENT_OWNER_KEY];if("string"==typeof i&&"object"==typeof o&&null!==o&&"object"==typeof o[t.name]&&null!==o[t.name]){var s=o[t.name];if(null!=a&&"object"==typeof a){var u=a,c=u.variables;return{owner:u,selector:{dataID:i,node:t,variables:r(22).getFragmentVariables(t,c,s)}}}return{owner:null,selector:{dataID:i,node:t,variables:r(22).getFragmentVariables(t,e,s)}}}return null}function i(e,t,r){var i=null;return r.forEach(function(r){var o=null!=r?n(e,t,r):null;null!=o&&(i=i||[]).push(o)}),i}function o(e,t){var r;return t.forEach(function(t){var n=null!=t?a(e,t):null;null!=n&&(r=r||[]).push(n)}),r||null}function a(e,t){("object"!=typeof t||null===t||Array.isArray(t))&&r(1)(!1);var n=t[r(0).ID_KEY];return"string"==typeof n?n:null}function s(e,t,r){var i=n(e,t,r);return i?i.selector.variables:null}e.exports={areEqualSelectors:function(e,t){return e.selector.dataID===t.selector.dataID&&e.selector.node===t.selector.node&&r(25)(e.selector.variables,t.selector.variables)},getDataIDsFromObject:function(e,t){var n={};for(var i in e)if(e.hasOwnProperty(i)){var s=e[i],u=t[i];null==u?n[i]=u:s.metadata&&!0===s.metadata.plural?(Array.isArray(u)||r(1)(!1),n[i]=o(s,u)):(Array.isArray(u)&&r(1)(!1),n[i]=a(0,u))}return n},getSelector:n,getSelectorList:i,getSelectorsFromObject:function(e,t,o){var a={};for(var s in t)if(t.hasOwnProperty(s)){var u=t[s],c=o[s];null==c?a[s]=c:u.metadata&&!0===u.metadata.plural?(Array.isArray(c)||r(1)(!1),a[s]=i(e,u,c)):(Array.isArray(c)&&r(1)(!1),a[s]=n(e,u,c))}return a},getVariablesFromObject:function(e,t,n){var i={};for(var o in t)!t.hasOwnProperty(o)||function(){var a=t[o],u=n[o];if(null==u)return"continue";if(a.metadata&&!0===a.metadata.plural)Array.isArray(u)||r(1)(!1),u.forEach(function(t){if(null!=t){var r=s(e,a,t);r&&Object.assign(i,r)}});else{Array.isArray(u)&&r(1)(!1);var c=s(e,a,u);c&&Object.assign(i,c)}}();return i}}},function(e,t,r){var n=r(18);e.exports=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},i=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(i=i.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),i.forEach(function(t){n(e,t,r[t])})}return e}},function(e,t,r){"use strict";var n=function(e,t){},i=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 o(e)?a(e):r(51)(e)?s(e):u(e)},e.fromLegacy=function(t){return e.create(function(e){var r=t({onNext:e.next,onError:e.error,onCompleted:e.complete});return o(r)?r.subscribe(e):function(){return r.dispose()}})};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.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 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,i=!1,o=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 s=o({unsubscribe:function(){if(!i){i=!0;try{t.unsubscribe&&t.unsubscribe(s)}catch(e){n(e,!0)}finally{a()}}}});try{t.start&&t.start(s)}catch(e){n(e,!0)}if(i)return s;var u=o({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(u)}catch(e){u.error(e,!0)}0;i&&a();return s}(this._source,e)},t.subscribeLegacy=function(e){return{dispose:this.subscribe({next:e.onNext,error:e.onError,complete:e.onCompleted}).unsubscribe}},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 o(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:o,next:function(r){try{n.closed||e.from(t(r)).subscribe({start:o,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 o(){n=r.subscribe({next:e.next,error:e.error,complete:function(){i=setTimeout(o,t)}})}(),function(){clearTimeout(i),n.unsubscribe()}})},t.toPromise=function(){var e=this;return new Promise(function(t,r){var n;e.subscribe({start:function(e){n=e},next:function(e){t(e),n.unsubscribe()},error:r,complete:t})})},e}();function o(e){return"object"==typeof e&&null!==e&&"function"==typeof e.subscribe}function a(e){return e instanceof i?e:i.create(function(t){return e.subscribe(t)})}function s(e){return i.create(function(t){e.then(function(e){t.next(e),t.complete()},t.error)})}function u(e){return i.create(function(t){t.next(e),t.complete()})}e.exports=i},function(e,t,r){"use strict";e.exports=function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{handleStrippedNulls:!1},o=new(r(11));o.set(r(0).ROOT_ID,r(2).create(r(0).ROOT_ID,r(0).ROOT_TYPE));var a=r(36).normalize(o,e,t,i);return{errors:n,fieldPayloads:a.fieldPayloads,matchPayloads:a.matchPayloads,source:o}}},function(e,r){e.exports=t},function(e,t,r){"use strict";var n=Object.freeze({RANGE_ADD:"RANGE_ADD",RANGE_DELETE:"RANGE_DELETE",NODE_DELETE:"NODE_DELETE",FIELDS_CHANGE:"FIELDS_CHANGE",REQUIRED_CHILDREN:"REQUIRED_CHILDREN"}),i=Object.freeze({APPEND:"append",IGNORE:"ignore",PREPEND:"prepend",REFETCH:"refetch",REMOVE:"remove"});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:n,RangeOperations:i,convert:function(e,t,n,i){var a=n?[n]:[],s=i?[i]:[];return e.forEach(function(e){switch(e.type){case"NODE_DELETE":var n=function(e,t){var r=e.deletedIDFieldName,n=o(t);return n?function(e,t){var i=e.getRootField(n);if(i){var o=i.getValue(r),a=Array.isArray(o)?o:[o];a.forEach(function(t){t&&"string"==typeof t&&e.delete(t)})}}:null}(e,t);n&&(a.push(n),s.push(n));break;case"RANGE_ADD":var i=function(e,t){var n=e.parentID,i=e.connectionInfo,a=e.edgeName;if(!n)return null;var s=o(t);return i&&s?function(e,t){var o=e.get(n);if(o){var u=e.getRootField(s);if(u){var c=u.getLinkedRecord(a),l=!0,d=!1,f=void 0;try{for(var h,p=i[Symbol.iterator]();!(l=(h=p.next()).done);l=!0){var _=h.value;if(c){var g=r(9).getConnection(o,_.key,_.filters);if(g){var v=r(9).buildConnectionEdge(e,g,c);if(v)switch(_.rangeBehavior){case"append":r(9).insertEdgeAfter(g,v);break;case"ignore":break;case"prepend":r(9).insertEdgeBefore(g,v)}}}}}catch(e){d=!0,f=e}finally{try{l||null==p.return||p.return()}finally{if(d)throw f}}}}}:null}(e,t);i&&(a.push(i),s.push(i));break;case"RANGE_DELETE":var u=function(e,t){var n=e.parentID,i=e.connectionKeys,a=e.pathToConnection,s=e.deletedIDFieldName;if(!n)return null;var u=o(t);return u?function(e,t){if(t){var o=[],c=t[u];if(c&&Array.isArray(s)){var l=!0,d=!1,f=void 0;try{for(var h,p=s[Symbol.iterator]();!(l=(h=p.next()).done);l=!0){var _=h.value;c&&"object"==typeof c&&(c=c[_])}}catch(e){d=!0,f=e}finally{try{l||null==p.return||p.return()}finally{if(d)throw 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 s&&"object"==typeof c&&("string"==typeof(c=c[s])?o.push(c):Array.isArray(c)&&c.forEach(function(e){"string"==typeof e&&o.push(e)}));!function(e,t,n,i,o){var a=i.get(e);if(a&&!(n.length<2)){for(var s=a,u=1;u<n.length-1;u++)s&&(s=s.getLinkedRecord(n[u]));if(t&&s){var c=!0,l=!1,d=void 0;try{for(var f,h=function(){var e=f.value,t=r(9).getConnection(s,e.key,e.filters);t&&o.forEach(function(e){r(9).deleteNode(t,e)})},p=t[Symbol.iterator]();!(c=(f=p.next()).done);c=!0)h()}catch(e){l=!0,d=e}finally{try{c||null==p.return||p.return()}finally{if(l)throw d}}}}}(n,i,a,e,o)}}:null}(e,t);u&&(a.push(u),s.push(u))}}),{optimisticUpdater:function(e,t){a.forEach(function(r){r(e,t)})},updater:function(e,t){s.forEach(function(r){r(e,t)})}}}}},function(e,t){e.exports=function(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}},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,r){"use strict";var n=r(5)(r(13)),i=function(){function e(e,t,r){this._backup=r,this._base=e,this._sink=t,this.__sources=[t,e]}var t=e.prototype;return t._createBackupRecord=function(e){var t=this._backup;if(t&&!t.has(e)){var r=this._base.get(e);null!=r?t.set(e,r):null===r&&t.delete(e)}},t._setSentinelFieldsInBackupRecord=function(e,t){var i=this._backup;if(i){var o=i.get(e);if(o&&o!==r(0).UNPUBLISH_RECORD_SENTINEL){var a=null;for(var s in t)t.hasOwnProperty(s)&&(s in o||((a=a||(0,n.default)({},o))[s]=r(0).UNPUBLISH_FIELD_SENTINEL));i.set(e,a||o)}}},t._setSentinelFieldInBackupRecord=function(e,t){var i=this._backup;if(i){var o=i.get(e);if(o&&o!==r(0).UNPUBLISH_RECORD_SENTINEL&&!(t in o)){var a=(0,n.default)({},o);r(2).setValue(a,t,r(0).UNPUBLISH_FIELD_SENTINEL),i.set(e,a)}}},t._getSinkRecord=function(e){var t=this._sink.get(e);if(!t){var n=this._base.get(e);n||r(1)(!1),t=r(2).create(e,r(2).getType(n)),this._sink.set(e,t)}return t},t.copyFields=function(e,t){var n=this._sink.get(e),i=this._base.get(e);n||i||r(1)(!1),this._createBackupRecord(t);var o=this._getSinkRecord(t);i&&r(2).copyFields(i,o),n&&r(2).copyFields(n,o),this._setSentinelFieldsInBackupRecord(t,o)},t.copyFieldsFromRecord=function(e,t){this.copyFields(r(2).getDataID(e),t);var n=this._getSinkRecord(t);r(2).copyFields(e,n),this._setSentinelFieldsInBackupRecord(t,n)},t.create=function(e,t){(this._base.getStatus(e)===r(4).EXISTENT||this._sink.getStatus(e)===r(4).EXISTENT)&&r(1)(!1),this._backup&&this._backup.set(e,r(0).UNPUBLISH_RECORD_SENTINEL);var n=r(2).create(e,t);this._sink.set(e,n)},t.delete=function(e){this._createBackupRecord(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 n=this.__sources[t].get(e);if(n)return r(2).getType(n);if(null===n)return null}},t.getValue=function(e,t){for(var n=0;n<this.__sources.length;n++){var i=this.__sources[n].get(e);if(i){var o=r(2).getValue(i,t);if(void 0!==o)return o}else if(null===i)return null}},t.setValue=function(e,t,n){this._createBackupRecord(e);var i=this._getSinkRecord(e);r(2).setValue(i,t,n),this._setSentinelFieldInBackupRecord(e,t)},t.getLinkedRecordID=function(e,t){for(var n=0;n<this.__sources.length;n++){var i=this.__sources[n].get(e);if(i){var o=r(2).getLinkedRecordID(i,t);if(void 0!==o)return o}else if(null===i)return null}},t.setLinkedRecordID=function(e,t,n){this._createBackupRecord(e);var i=this._getSinkRecord(e);r(2).setLinkedRecordID(i,t,n),this._setSentinelFieldInBackupRecord(e,t)},t.getLinkedRecordIDs=function(e,t){for(var n=0;n<this.__sources.length;n++){var i=this.__sources[n].get(e);if(i){var o=r(2).getLinkedRecordIDs(i,t);if(void 0!==o)return o}else if(null===i)return null}},t.setLinkedRecordIDs=function(e,t,n){this._createBackupRecord(e);var i=this._getSinkRecord(e);r(2).setLinkedRecordIDs(i,t,n),this._setSentinelFieldInBackupRecord(e,t)},e}();e.exports=i},function(e,t,r){"use strict";var n=function(){function e(e,t){this.__mutator=e,this._handlerProvider=t||null,this._proxies={}}var t=e.prototype;return t.publishSource=function(e,t){var n=this;e.getRecordIDs().forEach(function(t){var i=e.getStatus(t);if(i===r(4).EXISTENT){var o=e.get(t);o&&(n.__mutator.getStatus(t)!==r(4).EXISTENT&&n.create(t,r(2).getType(o)),n.__mutator.copyFieldsFromRecord(o,t),delete n._proxies[t])}else i===r(4).NONEXISTENT&&n.delete(t)}),t&&t.length&&t.forEach(function(e){var t=n._handlerProvider&&n._handlerProvider(e.handle);t||r(1)(!1),t.update(n,e)})},t.commitPayload=function(e,t){if(!t)return new(r(26))(this,e.fragment);var n=r(15)(e.root,t),i=n.source,o=n.fieldPayloads;return this.publishSource(i,o),new(r(26))(this,e.fragment)},t.create=function(e,t){this.__mutator.create(e,t),delete this._proxies[e];var n=this.get(e);return n||r(1)(!1),n},t.delete=function(e){e===r(0).ROOT_ID&&r(1)(!1),delete this._proxies[e],this.__mutator.delete(e)},t.get=function(e){if(!this._proxies.hasOwnProperty(e)){var t=this.__mutator.getStatus(e);t===r(4).EXISTENT?this._proxies[e]=new(r(48))(this,this.__mutator,e):this._proxies[e]=t===r(4).NONEXISTENT?null:void 0}return this._proxies[e]},t.getRoot=function(){var e=this.get(r(0).ROOT_ID);return e||(e=this.create(r(0).ROOT_ID,r(0).ROOT_TYPE)),e&&e.getType()===r(0).ROOT_TYPE||r(1)(!1),e},e}();e.exports=n},function(e,t,r){"use strict";var n=r(5)(r(13));e.exports={getFragmentVariables:function(e,t,i){var o;return e.argumentDefinitions.forEach(function(e){if(!i.hasOwnProperty(e.name))switch(o=o||(0,n.default)({},i),e.kind){case"LocalArgument":o[e.name]=e.defaultValue;break;case"RootArgument":if(!t.hasOwnProperty(e.name))break;o[e.name]=t[e.name];break;default:r(1)(!1)}}),o||i},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";e.exports={convertFetch:function(e){return function(t,n,i,o){var a=e(t,n,i,o);return a instanceof Error?r(14).create(function(e){return e.error(a)}):r(14).from(a)}},convertSubscribe:function(e){return function(t,n,i){return r(14).fromLegacy(function(r){return e(t,n,i,r)})}}}},function(e,t,r){"use strict";e.exports=function(e,t,n){return t&&t!==r(33).DEFAULT_HANDLE_KEY?"__".concat(t,"_").concat(e):(null==n&&r(1)(!1),"__".concat(n,"_").concat(e))}},function(e,t){e.exports=r},function(e,t,r){"use strict";var n=function(){function e(e,t){this.__recordSource=e,this._readSelector=t}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._getRootField=function(e,t,n){var i=e.node.selections.find(function(e){return"LinkedField"===e.kind&&e.name===t});return i&&"LinkedField"===i.kind||r(1)(!1),i.plural!==n&&r(1)(!1),i},t.getRootField=function(e){var t=this._getRootField(this._readSelector,e,!1),n=r(0).getStorageKey(t,this._readSelector.variables);return this.getRoot().getLinkedRecord(n)},t.getPluralRootField=function(e){var t=this._getRootField(this._readSelector,e,!0),n=r(0).getStorageKey(t,this._readSelector.variables);return this.getRoot().getLinkedRecords(n)},e}();e.exports=n},function(e,t,r){"use strict";var n={"*":[]},i={"*":[]},o={},a={stop:r(28)},s=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(!s(e))return t.attachHandler=r(28),t.detachHandler=r(28),t;n.hasOwnProperty(e)||(n[e]=[]);var i=n["*"],a=n[e],u=[],c=[],l=function(){var r;if(0===a.length&&0===u.length&&0===i.length)r=t.apply(this,arguments);else if(c.push([i.length,a.length,u.length,this,arguments,o]),function r(){var n=c[c.length-1];n[0]?(n[0]--,i[n[0]](e,r)):n[1]?(n[1]--,a[n[1]](e,r)):n[2]?(n[2]--,u[n[2]](e,r)):n[5]=t.apply(n[3],n[4])}(),(r=c.pop()[5])===o)throw new Error("RelayProfiler: Handler did not invoke original function.");return r};return l.attachHandler=function(e){u.push(e)},l.detachHandler=function(e){r(29)(u,e)},l.displayName="(instrumented "+e+")",l},attachAggregateHandler:function(e,t){s(e)&&(n.hasOwnProperty(e)||(n[e]=[]),n[e].push(t))},detachAggregateHandler:function(e,t){s(e)&&n.hasOwnProperty(e)&&r(29)(n[e],t)},profile:function(e,t){var r=i["*"].length>0,n=i.hasOwnProperty(e);if(n||r){for(var o,s=n&&r?i[e].concat(i["*"]):n?i[e]:i["*"],u=s.length-1;u>=0;u--){var c=(0,s[u])(e,t);(o=o||[]).unshift(c)}return{stop:function(e){o&&o.forEach(function(t){return t(e)})}}}return a},attachProfileHandler:function(e,t){s(e)&&(i.hasOwnProperty(e)||(i[e]=[]),i[e].push(t))},detachProfileHandler:function(e,t){s(e)&&i.hasOwnProperty(e)&&r(29)(i[e],t)}};e.exports=u},function(e,t){e.exports=n},function(e,t){e.exports=i},function(e,t,r){"use strict";var n=function(){function e(e,t,r){this._recordSource=e,this._seenRecords={},this._isMissingData=!1,this._variables=t,this._owner=r}var t=e.prototype;return t.read=function(e,t){return{data:this._traverse(e,t,null),dataID:t,node:e,seenRecords:this._seenRecords,variables:this._variables,isMissingData:this._isMissingData}},t._traverse=function(e,t,r){var n=this._recordSource.get(t);if(this._seenRecords[t]=n,null==n)return void 0===n&&(this._isMissingData=!0),n;var i=r||{};return this._traverseSelections(e.selections,n,i),i},t._getVariableValue=function(e){return this._variables.hasOwnProperty(e)||r(1)(!1),this._variables[e]},t._traverseSelections=function(e,t,n){var i=this;e.forEach(function(e){if(e.kind===r(3).SCALAR_FIELD)i._readScalar(e,t,n);else if(e.kind===r(3).LINKED_FIELD)e.plural?i._readPluralLink(e,t,n):i._readLink(e,t,n);else if(e.kind===r(3).CONDITION){i._getVariableValue(e.condition)===e.passingValue&&i._traverseSelections(e.selections,t,n)}else if(e.kind===r(3).INLINE_FRAGMENT){var o=r(2).getType(t);null!=o&&o===e.type&&i._traverseSelections(e.selections,t,n)}else e.kind===r(3).FRAGMENT_SPREAD?i._createFragmentPointer(e,t,n,i._variables):e.kind===r(3).MATCH_FIELD?i._readMatchField(e,t,n):r(1)(!1)})},t._readScalar=function(e,t,n){var i,o=null!==(i=e.alias)&&void 0!==i?i:e.name,a=r(0).getStorageKey(e,this._variables),s=r(2).getValue(t,a);void 0===s&&(this._isMissingData=!0),n[o]=s},t._readLink=function(e,t,n){var i,o=null!==(i=e.alias)&&void 0!==i?i:e.name,a=r(0).getStorageKey(e,this._variables),s=r(2).getLinkedRecordID(t,a);if(null==s)return n[o]=s,void(void 0===s&&(this._isMissingData=!0));var u=n[o];null!=u&&"object"!=typeof u&&r(1)(!1),n[o]=this._traverse(e,s,u)},t._readPluralLink=function(e,t,n){var i,o=this,a=null!==(i=e.alias)&&void 0!==i?i:e.name,s=r(0).getStorageKey(e,this._variables),u=r(2).getLinkedRecordIDs(t,s);if(null==u)return n[a]=u,void(void 0===u&&(this._isMissingData=!0));var c=n[a];null==c||Array.isArray(c)||r(1)(!1);var l=c||[];u.forEach(function(t,n){if(null==t)return void 0===t&&(o._isMissingData=!0),void(l[n]=t);var i=l[n];null!=i&&"object"!=typeof i&&r(1)(!1),l[n]=o._traverse(e,t,i)}),n[a]=l},t._readMatchField=function(e,t,n){var i,o=null!==(i=e.alias)&&void 0!==i?i:e.name,a=r(0).getStorageKey(e,this._variables),s=r(2).getLinkedRecordID(t,a);if(null==s)return n[o]=s,void(void 0===s&&(this._isMissingData=!0));var u=n[o];null!=u&&"object"!=typeof u&&r(1)(!1);var c=this._recordSource.get(s);if(this._seenRecords[s]=c,null==c)return void 0===c&&(this._isMissingData=!0),void(n[o]=c);var l=r(2).getType(c);"string"!=typeof l&&r(1)(!1);var d=e.matchesByType[l];if(null!=d){var f=r(2).getValue(c,r(0).MATCH_COMPONENT_KEY);if(null==f)return void 0===f&&(this._isMissingData=!0),void(n[o]=null);var h={};this._createFragmentPointer({kind:"FragmentSpread",name:d.fragmentName,args:null},c,h,this._variables),h[r(0).FRAGMENT_PROP_NAME_KEY]=d.fragmentPropName,h[r(0).MODULE_KEY]=f,n[o]=h}else n[o]=null},t._createFragmentPointer=function(e,t,n,i){var o,a=n[r(0).FRAGMENTS_KEY];null==a&&(a=n[r(0).FRAGMENTS_KEY]={}),"object"==typeof a&&a||r(1)(!1),n[r(0).ID_KEY]=null!==(o=n[r(0).ID_KEY])&&void 0!==o?o:r(2).getDataID(t),a[e.name]=e.args?r(0).getArgumentValues(e.args,i):{},n[r(0).FRAGMENT_OWNER_KEY]=this._owner},e}();e.exports={read:function(e,t,r){var i,o=t.dataID,a=t.node,s=t.variables;return new n(e,s,null!==(i=r)&&void 0!==i?i:null).read(a,o)}}},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){switch(e){case"connection":return r(9);case"viewer":return r(34)}r(1)(!1)}},function(e,t,r){"use strict";e.exports={DEFAULT_HANDLE_KEY:""}},function(e,t,r){"use strict";var n=r(7)(r(0).ROOT_ID,"viewer"),i="Viewer";e.exports={VIEWER_ID:n,update:function(e,t){var r=e.get(t.dataID);if(r){var o=r.getLinkedRecord(t.fieldKey);if(o){if(o.getDataID()===n)return r.setValue(null,t.fieldKey),void r.setLinkedRecord(o,t.handleKey);var a=e.get(n)||e.create(n,i);a.copyFieldsFrom(o),r.setValue(null,t.fieldKey),r.setLinkedRecord(a,t.handleKey),e.getRoot().setLinkedRecord(a,t.handleKey)}}}}},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";function n(e,t,r){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{handleStrippedNulls:!1},o=t.dataID,a=t.node,s=t.variables;return new i(e,s,n).normalizeResponse(a,o,r)}var i=function(){function e(e,t,r){this._handleFieldPayloads=[],this._handleStrippedNulls=r.handleStrippedNulls,this._matchFieldPayloads=[],this._recordSource=e,this._variables=t}var t=e.prototype;return t.normalizeResponse=function(e,t,n){var i=this._recordSource.get(t);return i||r(1)(!1),this._traverseSelections(e,i,n),{fieldPayloads:this._handleFieldPayloads,matchPayloads:this._matchFieldPayloads}},t._getVariableValue=function(e){return this._variables.hasOwnProperty(e)||r(1)(!1),this._variables[e]},t._getRecordType=function(e){var t=e[r(0).TYPENAME_KEY];return null==t&&r(1)(!1),t},t._traverseSelections=function(e,t,n){var i=this;e.selections.forEach(function(o){if(o.kind===r(3).SCALAR_FIELD||o.kind===r(3).LINKED_FIELD)i._normalizeField(e,o,t,n);else if(o.kind===r(3).CONDITION){i._getVariableValue(o.condition)===o.passingValue&&i._traverseSelections(o,t,n)}else if(o.kind===r(3).INLINE_FRAGMENT){r(2).getType(t)===o.type&&i._traverseSelections(o,t,n)}else if(o.kind===r(3).LINKED_HANDLE||o.kind===r(3).SCALAR_HANDLE){var a=o.args?r(0).getArgumentValues(o.args,i._variables):{},s=r(0).getStorageKey(o,i._variables),u=r(0).getHandleStorageKey(o,i._variables);i._handleFieldPayloads.push({args:a,dataID:r(2).getDataID(t),fieldKey:s,handle:o.handle,handleKey:u})}else o.kind===r(3).MATCH_FIELD?i._normalizeMatchField(e,o,t,n):(o.kind===r(3).FRAGMENT||(o.kind,r(3).FRAGMENT_SPREAD),r(1)(!1))})},t._normalizeMatchField=function(e,t,n,i){"object"==typeof i&&i||r(1)(!1);var o=t.alias||t.name,a=r(0).getStorageKey(t,this._variables),s=i[o];if(null!=s){"object"==typeof s&&s||r(1)(!1);var u=this._getRecordType(s);if(null!=t.matchesByType[u]){var c=s.id||r(2).getLinkedRecordID(n,a)||r(7)(r(2).getDataID(n),a);"string"!=typeof c&&r(1)(!1),r(2).setLinkedRecordID(n,a,c);var l=this._recordSource.get(c);l||(l=r(2).create(c,u),this._recordSource.set(c,l));var d=s[r(0).MATCH_FRAGMENT_KEY];null!=d&&this._matchFieldPayloads.push({operationReference:d,dataID:c,data:s,typeName:u,variables:this._variables})}else r(2).setValue(n,a,null)}else{if(void 0===s&&!this._handleStrippedNulls)return;r(2).setValue(n,a,null)}},t._normalizeField=function(e,t,n,i){"object"==typeof i&&i||r(1)(!1);var o=t.alias||t.name,a=r(0).getStorageKey(t,this._variables),s=i[o];if(null!=s)t.kind===r(3).SCALAR_FIELD?r(2).setValue(n,a,s):t.kind===r(3).LINKED_FIELD?t.plural?this._normalizePluralLink(t,n,a,s):this._normalizeLink(t,n,a,s):(t.kind,r(3).MATCH_FIELD,r(1)(!1));else{if(void 0===s&&!this._handleStrippedNulls)return;r(2).setValue(n,a,null)}},t._normalizeLink=function(e,t,n,i){"object"==typeof i&&i||r(1)(!1);var o=i.id||r(2).getLinkedRecordID(t,n)||r(7)(r(2).getDataID(t),n);"string"!=typeof o&&r(1)(!1),r(2).setLinkedRecordID(t,n,o);var a=this._recordSource.get(o);if(a)0;else{var s=e.concreteType||this._getRecordType(i);a=r(2).create(o,s),this._recordSource.set(o,a)}this._traverseSelections(e,a,i)},t._normalizePluralLink=function(e,t,n,i){var o=this;Array.isArray(i)||r(1)(!1);var a=r(2).getLinkedRecordIDs(t,n),s=[];i.forEach(function(i,u){if(null!=i){"object"!=typeof i&&r(1)(!1);var c=i.id||a&&a[u]||r(7)(r(2).getDataID(t),n,u);"string"!=typeof c&&r(1)(!1),s.push(c);var l=o._recordSource.get(c);if(l)0;else{var d=e.concreteType||o._getRecordType(i);l=r(2).create(c,d),o._recordSource.set(c,l)}o._traverseSelections(e,l,i)}else s.push(i)}),r(2).setLinkedRecordIDs(t,n,s)},t._validateRecordType=function(e,t,r){"LinkedField"===t.kind&&t.concreteType||this._getRecordType(r)},e}();n=r(27).instrument("RelayResponseNormalizer.normalize",n),e.exports={normalize:n}},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=function(){function e(e,t,n,i,o){var a;this._operationLoader=null!==(a=o)&&void 0!==a?a:null,this._handlers=i,this._mutator=new(r(20))(e,t),this._recordWasMissing=!1,this._source=e,this._variables=n,this._recordSourceProxy=new(r(21))(this._mutator)}var t=e.prototype;return t.check=function(e,t){return this._traverse(e,t),!this._recordWasMissing},t._getVariableValue=function(e){return this._variables.hasOwnProperty(e)||r(1)(!1),this._variables[e]},t._handleMissing=function(){this._recordWasMissing=!0},t._getDataForHandlers=function(e,t){return{args:e.args?r(0).getArgumentValues(e.args,this._variables):{},record:this._source.get(t)}},t._handleMissingScalarField=function(e,t){var r=this._getDataForHandlers(e,t),n=r.args,i=r.record,o=!0,a=!1,s=void 0;try{for(var u,c=this._handlers[Symbol.iterator]();!(o=(u=c.next()).done);o=!0){var l=u.value;if("scalar"===l.kind){var d=l.handle(e,i,n,this._recordSourceProxy);if(void 0!==d)return d}}}catch(e){a=!0,s=e}finally{try{o||null==c.return||c.return()}finally{if(a)throw s}}this._handleMissing()},t._handleMissingLinkField=function(e,t){var n=this._getDataForHandlers(e,t),i=n.args,o=n.record,a=!0,s=!1,u=void 0;try{for(var c,l=this._handlers[Symbol.iterator]();!(a=(c=l.next()).done);a=!0){var d=c.value;if("linked"===d.kind){var f=d.handle(e,o,i,this._recordSourceProxy);if(null!=f&&this._mutator.getStatus(f)===r(4).EXISTENT)return f}}}catch(e){s=!0,u=e}finally{try{a||null==l.return||l.return()}finally{if(s)throw u}}this._handleMissing()},t._handleMissingPluralLinkField=function(e,t){var n=this,i=this._getDataForHandlers(e,t),o=i.args,a=i.record,s=!0,u=!1,c=void 0;try{for(var l,d=this._handlers[Symbol.iterator]();!(s=(l=d.next()).done);s=!0){var f=l.value;if("pluralLinked"===f.kind){var h=f.handle(e,a,o,this._recordSourceProxy);if(null!=h)return h.filter(function(e){return null!=e&&n._mutator.getStatus(e)===r(4).EXISTENT})}}}catch(e){u=!0,c=e}finally{try{s||null==d.return||d.return()}finally{if(u)throw c}}this._handleMissing()},t._traverse=function(e,t){var n=this._mutator.getStatus(t);n===r(4).UNKNOWN&&this._handleMissing(),n===r(4).EXISTENT&&this._traverseSelections(e.selections,t)},t._traverseSelections=function(e,t){var n=this;e.forEach(function(i){switch(i.kind){case r(3).SCALAR_FIELD:n._checkScalar(i,t);break;case r(3).LINKED_FIELD:i.plural?n._checkPluralLink(i,t):n._checkLink(i,t);break;case r(3).CONDITION:n._getVariableValue(i.condition)===i.passingValue&&n._traverseSelections(i.selections,t);break;case r(3).INLINE_FRAGMENT:var o=n._mutator.getType(t);null!=o&&o===i.type&&n._traverseSelections(i.selections,t);break;case r(3).LINKED_HANDLE:var a=r(39)(i,e,n._variables);a.plural?n._checkPluralLink(a,t):n._checkLink(a,t);break;case r(3).MATCH_FIELD:n._checkMatch(i,t);break;case r(3).SCALAR_HANDLE:case r(3).FRAGMENT_SPREAD:r(1)(!1);break;default:r(1)(!1)}})},t._checkMatch=function(e,t){var n=r(0).getStorageKey(e,this._variables),i=this._mutator.getLinkedRecordID(t,n);if(void 0===i)this._handleMissing();else if(null!==i){var o=this._mutator.getStatus(i);if(o===r(4).UNKNOWN)return void this._handleMissing();if(o!==r(4).EXISTENT)return;var a=this._mutator.getType(i);if(null!=(null!=a?e.matchesByType[a]:null)){var s=this._operationLoader;null===s&&r(1)(!1);var u=this._mutator.getValue(i,r(0).MATCH_FRAGMENT_KEY);if(void 0===u)return void this._handleMissing();if(null===u)return;var c=s.get(u);null!=c?this._traverse(c,i):this._handleMissing()}}},t._checkScalar=function(e,t){var n=r(0).getStorageKey(e,this._variables),i=this._mutator.getValue(t,n);void 0===i&&void 0!==(i=this._handleMissingScalarField(e,t))&&this._mutator.setValue(t,n,i)},t._checkLink=function(e,t){var n=r(0).getStorageKey(e,this._variables),i=this._mutator.getLinkedRecordID(t,n);void 0===i&&null!=(i=this._handleMissingLinkField(e,t))&&this._mutator.setLinkedRecordID(t,n,i),null!=i&&this._traverse(e,i)},t._checkPluralLink=function(e,t){var n=this,i=r(0).getStorageKey(e,this._variables),o=this._mutator.getLinkedRecordIDs(t,i);void 0===o&&null!=(o=this._handleMissingPluralLinkField(e,t))&&this._mutator.setLinkedRecordIDs(t,i,o),o&&o.forEach(function(t){null!=t&&n._traverse(e,t)})},e}();e.exports={check:function(e,t,r,i,o){var a=r.dataID,s=r.node,u=r.variables;return new n(e,t,u,i,o).check(s,a)}}},function(e,t,r){"use strict";var n=r(5)(r(13));e.exports=function(e,t,i){var o=t.find(function(t){return t.kind===r(3).LINKED_FIELD&&t.name===e.name&&t.alias===e.alias&&r(25)(t.args,e.args)});o&&o.kind===r(3).LINKED_FIELD||r(1)(!1);var a=r(0).getHandleStorageKey(e,i);return(0,n.default)({},o,{args:null,name:a,storageKey:a})}},function(e,t,r){"use strict";e.exports=function(e,t){var n=t.data,i=t.errors;if(null!=n)return r(15)(e.root,n,i,{handleStrippedNulls:!0});var o=e.node,a=r(41).create("RelayNetwork","No data returned for operation `%s`, got error(s):\n%s\n\nSee the error `source` property for more information.",o.params?o.params.name:o.name,i?i.map(function(e){return e.message}).join("\n"):"(No errors)");throw a.source={errors:i,operation:e.node,variables:e.variables},a}},function(e,t,r){"use strict";var n=r(5)(r(42)),i={create:function(e,t){for(var r=arguments.length,n=new Array(r>2?r-2:0),i=2;i<r;i++)n[i-2]=arguments[i];return o("mustfix",e,t,n)},createWarning:function(e,t){for(var r=arguments.length,n=new Array(r>2?r-2:0),i=2;i<r;i++)n[i-2]=arguments[i];return o("warn",e,t,n)}};function o(e,t,i,o){var a=new Error(r(55).apply(void 0,[i].concat((0,n.default)(o))));return a.name=t,a.type=e,a.framesToPop=2,a}e.exports=i},function(e,t,r){var n=r(52),i=r(53),o=r(54);e.exports=function(e){return n(e)||i(e)||o()}},function(e,t,r){"use strict";e.exports=function e(t,r){if(t===r||"object"!=typeof t||!t||"object"!=typeof r||!r)return r;var n=!1,i=Array.isArray(t)?t:null,o=Array.isArray(r)?r:null;if(i&&o)n=o.reduce(function(t,r,n){var a=e(i[n],r);return a!==o[n]&&(o[n]=a),t&&o[n]===i[n]},!0)&&i.length===o.length;else if(!i&&!o){var a=t,s=r,u=Object.keys(a),c=Object.keys(s);n=c.reduce(function(t,r){var n=e(a[r],s[r]);return n!==s[r]&&(s[r]=n),t&&s[r]===a[r]},!0)&&u.length===c.length}return n?t:r}},function(e,t,r){"use strict";e.exports={Environment:r(45),Network:r(56),Observable:r(14),QueryResponseCache:r(57),RecordSource:r(11),Store:r(58),areEqualSelectors:r(8).areEqualSelectors,createFragmentSpecResolver:r(8).createFragmentSpecResolver,createOperationDescriptor:r(8).createOperationDescriptor,getDataIDsFromObject:r(8).getDataIDsFromObject,getFragment:r(6).getFragment,getPaginationFragment:r(6).getPaginationFragment,getRefetchableFragment:r(6).getRefetchableFragment,getRequest:r(6).getRequest,getSelector:r(8).getSelector,getSelectorList:r(8).getSelectorList,getSelectorsFromObject:r(8).getSelectorsFromObject,getStorageKey:r(0).getStorageKey,getVariablesFromObject:r(8).getVariablesFromObject,graphql:r(6).graphql,MutationTypes:r(17).MutationTypes,RangeOperations:r(17).RangeOperations,DefaultHandlerProvider:r(32),ConnectionHandler:r(9),ViewerHandler:r(34),applyOptimisticMutation:r(62),commitLocalUpdate:r(63),commitMutation:r(64),fetchQuery:r(65),isRelayModernEnvironment:r(31),requestSubscription:r(66),ConnectionInterface:r(10),RelayProfiler:r(27),RelayConcreteNode:r(3),RelayError:r(41),RelayNetworkLoggerTransaction:r(67),DEFAULT_HANDLE_KEY:r(33).DEFAULT_HANDLE_KEY,FRAGMENTS_KEY:r(0).FRAGMENTS_KEY,FRAGMENT_OWNER_KEY:r(0).FRAGMENT_OWNER_KEY,ID_KEY:r(0).ID_KEY,REF_KEY:r(0).REF_KEY,REFS_KEY:r(0).REFS_KEY,ROOT_ID:r(0).ROOT_ID,ROOT_TYPE:r(0).ROOT_TYPE,createRelayNetworkLogger:r(68),deepFreeze:r(35),generateClientID:r(7),getRelayHandleKey:r(24),isScalarAndEqual:r(37),recycleNodesInto:r(43),simpleClone:r(69),stableCopy:r(19),__internal:{getModernOperationVariables:r(22).getOperationVariables}}},function(e,t,r){"use strict";(function(t){var n=function(){function e(e){var n=this;this.configName=e.configName;var i=e.handlerProvider?e.handlerProvider:r(32),o=e.operationLoader;this._operationLoader=o,this._network=e.network,this._publishQueue=new(r(47))(e.store,i),this._store=e.store,this.unstable_internal=r(8),this.__setNet=function(e){return n._network=e};var a=void 0!==t?t:"undefined"!=typeof window?window:void 0,s=a&&a.__RELAY_DEVTOOLS_HOOK__;s&&s.registerEnvironment(this),null!=e.missingFieldHandlers&&(this._missingFieldHandlers=e.missingFieldHandlers)}var n=e.prototype;return n.getStore=function(){return this._store},n.getNetwork=function(){return this._network},n.applyUpdate=function(e){var t=this;return this._publishQueue.applyUpdate(e),this._publishQueue.run(),{dispose:function(){t._publishQueue.revertUpdate(e),t._publishQueue.run()}}},n.revertUpdate=function(e){this._publishQueue.revertUpdate(e),this._publishQueue.run()},n.replaceUpdate=function(e,t){this._publishQueue.revertUpdate(e),this._publishQueue.applyUpdate(t),this._publishQueue.run()},n.applyMutation=function(e){var t=e.operation,r=e.optimisticResponse,n=e.optimisticUpdater;return this.applyUpdate({operation:t,selectorStoreUpdater:n,response:r||null})},n.check=function(e){return null==this._missingFieldHandlers?this._store.check(e):this._checkSelectorAndHandleMissingFields(e,this._missingFieldHandlers)},n.commitPayload=function(e,t){var n=r(15)(e.root,t);this._publishQueue.commitPayload(e,n),this._publishQueue.run()},n.commitUpdate=function(e){this._publishQueue.commitUpdate(e),this._publishQueue.run()},n.lookup=function(e,t){return this._store.lookup(e,t)},n.subscribe=function(e,t){return this._store.subscribe(e,t)},n.retain=function(e){return this._store.retain(e)},n._checkSelectorAndHandleMissingFields=function(e,t){var n=new(r(11)),i=r(38).check(this._store.getSource(),n,e,t,this._operationLoader);return n.size()>0&&(this._publishQueue.commitSource(n),this._publishQueue.run()),i},n.execute=function(e){var t=this,n=e.operation,i=e.cacheConfig,o=e.updater;return r(14).create(function(e){var a=null,s=new Set;function u(e){this._subscription=e,s.add(e)}function c(){s.delete(this._subscription),0===s.size&&e.complete()}var l=function n(i){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,l=arguments.length>3&&void 0!==arguments[3]&&arguments[3],d=i.matchPayloads;if(d&&d.length){var f=t._operationLoader;f||r(1)(!1),d.forEach(function(t){(function(e,t,n){return r(14).from(new Promise(function(e,r){t.load(n.operationReference).then(e,r)})).map(function(t){if(null!=t){var i={dataID:n.dataID,variables:n.variables,node:t},o=new(r(11)),a=r(2).create(n.dataID,n.typeName);o.set(n.dataID,a);var s=r(36).normalize(o,i,n.data),u={errors:null,fieldPayloads:s.fieldPayloads,matchPayloads:s.matchPayloads,source:o};e(u)}})})(n,f,t).subscribe({complete:c,error:e.error,start:u})})}l?(null!==a&&r(1)(!1),a={source:i.source,fieldPayloads:i.fieldPayloads},t._publishQueue.applyUpdate(a),t._publishQueue.run()):(null!==a&&(t._publishQueue.revertUpdate(a),a=null),o&&s?t._publishQueue.commitPayload(o,i,s):t._publishQueue.commitRelayPayload(i),t._publishQueue.run())},d=n.node;return t._network.execute(d.params,n.variables,i||{}).subscribe({complete:c,next:function(t){var i,a=r(40)(n,t),s=!0===(null===(i=t.extensions)||void 0===i?void 0:i.isOptimistic);l(a,n,o,s),e.next(t)},error:e.error,start:u}),function(){0!==s.size&&(s.forEach(function(e){return e.unsubscribe()}),s.clear()),null!==a&&(t._publishQueue.revertUpdate(a),a=null,t._publishQueue.run())}})},n.executeMutation=function(e){var t,n=this,i=e.operation,o=e.optimisticResponse,a=e.optimisticUpdater,s=e.updater,u=e.uploadables;(o||a)&&(t={operation:i,selectorStoreUpdater:a,response:o||null});var c=i.node;return this._network.execute(c.params,i.variables,{force:!0},u).do({start:function(){t&&(n._publishQueue.applyUpdate(t),n._publishQueue.run())},next:function(e){t&&(n._publishQueue.revertUpdate(t),t=void 0),n._publishQueue.commitPayload(i,r(40)(i,e),s),n._publishQueue.run()},error:function(e){function t(t){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}(function(e){t&&(n._publishQueue.revertUpdate(t),t=void 0,n._publishQueue.run())}),unsubscribe:function(){t&&(n._publishQueue.revertUpdate(t),t=void 0,n._publishQueue.run())}})},n.sendQuery=function(e){var t=e.cacheConfig,r=e.onCompleted,n=e.onError,i=e.onNext,o=e.operation;return this.execute({operation:o,cacheConfig:t}).subscribeLegacy({onNext:i,onError:n,onCompleted:r})},n.sendMutation=function(e){var t=e.onCompleted,r=e.onError,n=e.operation,i=e.optimisticResponse,o=e.optimisticUpdater,a=e.updater,s=e.uploadables;return this.executeMutation({operation:n,optimisticResponse:i,optimisticUpdater:o,updater:a,uploadables:s}).subscribeLegacy({onNext:function(e){t&&t(e.errors)},onError:r,onCompleted:t})},n.toJSON=function(){var e;return"RelayModernEnvironment(".concat(null!==(e=this.configName)&&void 0!==e?e:"",")")},e}();n.prototype["@@RelayModernEnvironment"]=!0,e.exports=n}).call(this,r(46))},function(e,t){var r;r=function(){return this}();try{r=r||Function("return this")()||(0,eval)("this")}catch(e){"object"==typeof window&&(r=window)}e.exports=r},function(e,t,r){"use strict";var n=function(){function e(e,t){this._backup=new(r(11)),this._handlerProvider=t||null,this._pendingBackupRebase=!1,this._pendingUpdaters=new Set,this._pendingData=new Set,this._pendingOptimisticUpdates=new Set,this._store=e,this._appliedOptimisticUpdates=new Set,this._gcHold=null}var t=e.prototype;return t.applyUpdate=function(e){(this._appliedOptimisticUpdates.has(e)||this._pendingOptimisticUpdates.has(e))&&r(1)(!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){var n=t.fieldPayloads,i=t.source;this._pendingBackupRebase=!0,this._pendingData.add({kind:"payload",payload:{fieldPayloads:n,selector:e.fragment,source:i,updater:r}})},t.commitRelayPayload=function(e){var t=e.fieldPayloads,r=e.source;this._pendingBackupRebase=!0,this._pendingData.add({kind:"payload",payload:{fieldPayloads:t,selector:null,source:r,updater:null}})},t.commitUpdate=function(e){this._pendingBackupRebase=!0,this._pendingUpdaters.add(e)},t.commitSource=function(e){this._pendingBackupRebase=!0,this._pendingData.add({kind:"source",source:e})},t.run=function(){this._pendingBackupRebase&&this._backup.size()&&(this._store.publish(this._backup),this._backup=new(r(11))),this._commitData(),this._commitUpdaters(),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()},t._getSourceFromPayload=function(e){var t=this,n=e.fieldPayloads,o=e.selector,a=e.source,s=e.updater,u=new(r(20))(this._store.getSource(),a),c=new(r(21))(u);(n&&n.length&&n.forEach(function(e){var n=t._handlerProvider&&t._handlerProvider(e.handle);n||r(1)(!1),n.update(c,e)}),s)&&(null==o&&r(1)(!1),s(new(r(26))(c,o),i(a,o)));return a},t._commitData=function(){var e=this;this._pendingData.size&&(this._pendingData.forEach(function(t){var r;r="payload"===t.kind?e._getSourceFromPayload(t.payload):t.source,e._store.publish(r)}),this._pendingData.clear())},t._commitUpdaters=function(){var e=this;if(this._pendingUpdaters.size){var t=new(r(11));this._pendingUpdaters.forEach(function(n){var i=new(r(20))(e._store.getSource(),t),o=new(r(21))(i);r(16).applyWithGuard(n,null,[o],null,"RelayPublishQueue:commitUpdaters")}),this._store.publish(t),this._pendingUpdaters.clear()}},t._applyUpdates=function(){var e=this;if(this._pendingOptimisticUpdates.size||this._pendingBackupRebase&&this._appliedOptimisticUpdates.size){var t=new(r(11)),n=new(r(20))(this._store.getSource(),t,this._backup),o=new(r(21))(n,this._handlerProvider);this._pendingBackupRebase&&this._appliedOptimisticUpdates.size&&this._appliedOptimisticUpdates.forEach(function(e){if(e.operation){var t,n=e.selectorStoreUpdater,a=e.operation,s=e.response,u=o.commitPayload(a,s);if(s)t=i(r(15)(a.root,s).source,a.fragment);n&&r(16).applyWithGuard(n,null,[u,t],null,"RelayPublishQueue:applyUpdates")}else if(e.storeUpdater){var c=e.storeUpdater;r(16).applyWithGuard(c,null,[o],null,"RelayPublishQueue:applyUpdates")}else{var l=e.source,d=e.fieldPayloads;o.publishSource(l,d)}}),this._pendingOptimisticUpdates.size&&(this._pendingOptimisticUpdates.forEach(function(t){if(t.operation){var n,a=t.selectorStoreUpdater,s=t.operation,u=t.response,c=o.commitPayload(s,u);if(u)n=i(r(15)(s.root,u).source,s.fragment);a&&r(16).applyWithGuard(a,null,[c,n],null,"RelayPublishQueue:applyUpdates")}else if(t.storeUpdater){var l=t.storeUpdater;r(16).applyWithGuard(l,null,[o],null,"RelayPublishQueue:applyUpdates")}else{var d=t.source,f=t.fieldPayloads;o.publishSource(d,f)}e._appliedOptimisticUpdates.add(t)}),this._pendingOptimisticUpdates.clear()),this._store.publish(t)}},e}();function i(e,t){return r(30).read(e,t).data}e.exports=n},function(e,t,r){"use strict";var n=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&&r(1)(!1),e},t.getValue=function(e,t){var n=r(0).getStableStorageKey(e,t);return this._mutator.getValue(this._dataID,n)},t.setValue=function(e,t,n){i(e)||r(1)(!1);var o=r(0).getStableStorageKey(t,n);return this._mutator.setValue(this._dataID,o,e),this},t.getLinkedRecord=function(e,t){var n=r(0).getStableStorageKey(e,t),i=this._mutator.getLinkedRecordID(this._dataID,n);return null!=i?this._source.get(i):i},t.setLinkedRecord=function(t,n,i){t instanceof e||r(1)(!1);var o=r(0).getStableStorageKey(n,i),a=t.getDataID();return this._mutator.setLinkedRecordID(this._dataID,o,a),this},t.getOrCreateLinkedRecord=function(e,t,n){var i=this.getLinkedRecord(e,n);if(!i){var o=r(0).getStableStorageKey(e,n),a=r(7)(this.getDataID(),o);i=this._source.create(a,t),this.setLinkedRecord(i,e,n)}return i},t.getLinkedRecords=function(e,t){var n=this,i=r(0).getStableStorageKey(e,t),o=this._mutator.getLinkedRecordIDs(this._dataID,i);return null==o?o:o.map(function(e){return null!=e?n._source.get(e):e})},t.setLinkedRecords=function(e,t,n){Array.isArray(e)||r(1)(!1);var i=r(0).getStableStorageKey(t,n),o=e.map(function(e){return e&&e.getDataID()});return this._mutator.setLinkedRecordIDs(this._dataID,i,o),this},e}();function i(e){return null==e||"object"!=typeof e||Array.isArray(e)&&e.every(i)}e.exports=n},function(e,t,r){"use strict";var n=r(5)(r(13)),i=r(5)(r(18)),o=function(){function e(e,t,r,n){var o=this;(0,i.default)(this,"_onChange",function(){o._stale=!0,"function"==typeof o._callback&&o._callback()}),this._callback=n,this._context=e,this._data={},this._fragments=t,this._props=r,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)&&u(this._resolvers[e])},t.resolve=function(){if(this._stale){var e,t=this._data;for(var i in this._resolvers)if(this._resolvers.hasOwnProperty(i)){var o=this._resolvers[i],a=t[i];if(o){var s=o.resolve();(e||s!==a)&&((e=e||(0,n.default)({},t))[i]=s)}else{var u=this._props[i],c=void 0!==u?u:null;!e&&r(37)(c,a)||((e=e||(0,n.default)({},t))[i]=c)}}this._data=e||t,this._stale=!1}return this._data},t.setCallback=function(e){this._callback=e},t.setProps=function(e){var t=r(12).getSelectorsFromObject(this._context.variables,this._fragments,e);for(var n in t)if(t.hasOwnProperty(n)){var i=t[n],o=this._resolvers[n];null==i?(null!=o&&o.dispose(),o=null):Array.isArray(i)?null==o?o=new s(this._context.environment,i,this._onChange):(o instanceof s||r(1)(!1),o.setSelectors(i)):null==o?o=new a(this._context.environment,i,this._onChange):(o instanceof a||r(1)(!1),o.setSelector(i)),this._resolvers[n]=o}this._props=e,this._stale=!0},t.setVariables=function(e){for(var t in this._resolvers)if(this._resolvers.hasOwnProperty(t)){var r=this._resolvers[t];r&&r.setVariables(e)}this._stale=!0},e}(),a=function(){function e(e,t,r){var n=this;(0,i.default)(this,"_onChange",function(e){n._data=e.data,n._callback()});var o=e.lookup(t.selector);this._callback=r,this._data=o.data,this._environment=e,this._ownedSelector=t,this._subscription=e.subscribe(o,this._onChange)}var t=e.prototype;return t.dispose=function(){this._subscription&&(this._subscription.dispose(),this._subscription=null)},t.resolve=function(){return this._data},t.setSelector=function(e){if(null==this._subscription||!r(12).areEqualSelectors(e,this._ownedSelector)){this.dispose();var t=this._environment.lookup(e.selector);this._data=t.data,this._ownedSelector=e,this._subscription=this._environment.subscribe(t,this._onChange)}},t.setVariables=function(e){var t={owner:null,selector:(0,n.default)({},this._ownedSelector.selector,{variables:e})};this.setSelector(t)},e}(),s=function(){function e(e,t,r){var n=this;(0,i.default)(this,"_onChange",function(e){n._stale=!0,n._callback()}),this._callback=r,this._data=[],this._environment=e,this._resolvers=[],this._stale=!0,this.setSelectors(t)}var t=e.prototype;return t.dispose=function(){this._resolvers.forEach(u)},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.setSelectors=function(e){for(;this._resolvers.length>e.length;){this._resolvers.pop().dispose()}for(var t=0;t<e.length;t++)t<this._resolvers.length?this._resolvers[t].setSelector(e[t]):this._resolvers[t]=new a(this._environment,e[t],this._onChange);this._stale=!0},t.setVariables=function(e){this._resolvers.forEach(function(t){return t.setVariables(e)}),this._stale=!0},e}();function u(e){e&&e.dispose()}e.exports=o},function(e,t,r){"use strict";e.exports={createOperationDescriptor:function(e,t){var n=e.operation,i=r(22).getOperationVariables(n,t),o=r(0).ROOT_ID;return{fragment:{dataID:o,node:e.fragment,variables:i},node:e,root:{dataID:o,node:n,variables:i},variables:i}}}},function(e,t,r){"use strict";e.exports=function(e){return!!e&&"function"==typeof e.then}},function(e,t){e.exports=function(e){if(Array.isArray(e)){for(var t=0,r=new Array(e.length);t<e.length;t++)r[t]=e[t];return r}}},function(e,t){e.exports=function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}},function(e,t){e.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}},function(e,t){e.exports=o},function(e,t,r){"use strict";e.exports={create:function(e,t){var n=r(23).convertFetch(e),i=t?r(23).convertSubscribe(t):void 0;return{execute:function(e,t,o,a){if("subscription"===e.operationKind)return i||r(1)(!1),a&&r(1)(!1),i(e,t,o);var s=o.poll;return null!=s?(a&&r(1)(!1),n(e,t,{force:!0}).poll(s)):n(e,t,o,a)}}}}},function(e,t,r){"use strict";var n=r(5)(r(13)),i=function(){function e(e){var t=e.size,n=e.ttl;t>0||r(1)(!1),n>0||r(1)(!1),this._responses=new Map,this._size=t,this._ttl=n}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){(function(e,t){return e+t>=Date.now()})(e.fetchTime,r._ttl)||r._responses.delete(t)});var a=this._responses.get(i);return null!=a?(0,n.default)({},a.payload,{extensions:(0,n.default)({},a.payload.extensions,{cacheTimestamp:a.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 a=this._responses.keys().next();a.done||this._responses.delete(a.value)}},e}();function o(e,t){return JSON.stringify(r(19)({queryID:e,variables:t}))}e.exports=i},function(e,t,r){"use strict";var n=r(5)(r(13)),i=function(){function e(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:r(59),n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;this._gcScheduler=t,this._hasScheduledGC=!1,this._index=0,this._operationLoader=n,this._recordSource=e,this._roots=new Map,this._subscriptions=new Set,this._updatedRecordIDs={},this._gcHoldCounter=0,this._shouldScheduleGC=!1}var t=e.prototype;return t.getSource=function(){return this._recordSource},t.check=function(e){return r(38).check(this._recordSource,this._recordSource,e,[],this._operationLoader)},t.retain=function(e){var t=this,r=this._index++;return this._roots.set(r,e),{dispose:function(){t._roots.delete(r),t._scheduleGC()}}},t.lookup=function(e,t){return r(30).read(this._recordSource,e,t)},t.notify=function(){var e=this;this._subscriptions.forEach(function(t){e._updateSubscription(t)}),this._updatedRecordIDs={}},t.publish=function(e){!function(e,t,n){for(var i=t.getRecordIDs(),o=0;o<i.length;o++){var a=i[o],s=t.get(a),u=e.get(a);if(s===r(0).UNPUBLISH_RECORD_SENTINEL)e.remove(a),n[a]=!0;else if(s&&u){var c=r(2).update(u,s);c!==u&&(n[a]=!0,e.set(a,c))}else null===s?(e.delete(a),null!==u&&(n[a]=!0)):s&&(e.set(a,s),n[a]=!0)}}(this._recordSource,e,this._updatedRecordIDs)},t.subscribe=function(e,t){var r=this,n={callback:t,snapshot:e};return this._subscriptions.add(n),{dispose:function(){r._subscriptions.delete(n)}}},t.holdGC=function(){var e=this;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._updateSubscription=function(e){var t=e.callback,i=e.snapshot;if(r(60)(i,this._updatedRecordIDs)){var o=r(30).read(this._recordSource,i),a=o.data,s=o.seenRecords,u=r(43)(i.data,a),c=(0,n.default)({},i,{data:u,seenRecords:s});0,e.snapshot=c,c.data!==i.data&&t(c)}},t._scheduleGC=function(){var e=this;this._gcHoldCounter>0?this._shouldScheduleGC=!0:this._hasScheduledGC||(this._hasScheduledGC=!0,this._gcScheduler(function(){e.__gc(),e._hasScheduledGC=!1}))},t.__gc=function(){var e=this,t=new Set;if(this._roots.forEach(function(n){r(61).mark(e._recordSource,n,t,e._operationLoader)}),t.size)for(var n=this._recordSource.getRecordIDs(),i=0;i<n.length;i++){var o=n[i];t.has(o)||this._recordSource.remove(o)}else this._recordSource.clear()},e}();r(27).instrumentMethods(i.prototype,{lookup:"RelayModernStore.prototype.lookup",notify:"RelayModernStore.prototype.notify",publish:"RelayModernStore.prototype.publish",retain:"RelayModernStore.prototype.retain",subscribe:"RelayModernStore.prototype.subscribe",__gc:"RelayModernStore.prototype.__gc",holdGC:"RelayModernStore.prototype.holdGC"}),e.exports=i},function(e,t){e.exports=a},function(e,t,r){"use strict";e.exports=function(e,t){for(var r=Object.keys(e.seenRecords),n=0;n<r.length;n++)if(t.hasOwnProperty(r[n]))return!0;return!1}},function(e,t,r){"use strict";var n=function(){function e(e,t,r,n){var i;this._operationLoader=null!==(i=n)&&void 0!==i?i:null,this._references=r,this._recordSource=e,this._variables=t}var t=e.prototype;return t.mark=function(e,t){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)||r(1)(!1),this._variables[e]},t._traverseSelections=function(e,t){var n=this;e.forEach(function(i){switch(i.kind){case r(3).LINKED_FIELD:i.plural?n._traversePluralLink(i,t):n._traverseLink(i,t);break;case r(3).CONDITION:n._getVariableValue(i.condition)===i.passingValue&&n._traverseSelections(i.selections,t);break;case r(3).INLINE_FRAGMENT:var o=r(2).getType(t);null!=o&&o===i.type&&n._traverseSelections(i.selections,t);break;case r(3).FRAGMENT_SPREAD:r(1)(!1);case r(3).LINKED_HANDLE:var a=r(39)(i,e,n._variables);a.plural?n._traversePluralLink(a,t):n._traverseLink(a,t);break;case r(3).SCALAR_FIELD:case r(3).SCALAR_HANDLE:break;case r(3).MATCH_FIELD:n._traverseMatch(i,t);break;default:r(1)(!1)}})},t._traverseMatch=function(e,t){var n=r(0).getStorageKey(e,this._variables),i=r(2).getLinkedRecordID(t,n);if(null!=i){this._references.add(i);var o=this._recordSource.get(i);if(null!=o){var a=r(2).getType(o);if(null!=e.matchesByType[a]){var s=this._operationLoader;null===s&&r(1)(!1);var u=r(2).getValue(o,r(0).MATCH_FRAGMENT_KEY);if(null==u)return;var c=s.get(u);null!=c&&this._traverseSelections(c.selections,o)}}}},t._traverseLink=function(e,t){var n=r(0).getStorageKey(e,this._variables),i=r(2).getLinkedRecordID(t,n);null!=i&&this._traverse(e,i)},t._traversePluralLink=function(e,t){var n=this,i=r(0).getStorageKey(e,this._variables),o=r(2).getLinkedRecordIDs(t,i);null!=o&&o.forEach(function(t){null!=t&&n._traverse(e,t)})},e}();e.exports={mark:function(e,t,r,i){var o=t.dataID,a=t.node,s=t.variables;new n(e,s,r,i).mark(a,o)}}},function(e,t,r){"use strict";e.exports=function(e,t){r(31)(e)||r(1)(!1);var n=e.unstable_internal,i=n.createOperationDescriptor,o=(0,n.getRequest)(t.mutation);if("mutation"!==o.params.operationKind)throw new Error("commitRelayModernMutation: Expected mutation operation");var a=t.optimisticUpdater,s=t.configs,u=t.optimisticResponse,c=i(o,t.variables);return s&&(a=r(17).convert(s,o,a).optimisticUpdater),e.applyUpdate({operation:c,selectorStoreUpdater:a,response:u})}},function(e,t,r){"use strict";e.exports=function(e,t){e.commitUpdate(t)}},function(e,t,r){"use strict";e.exports=function(e,t){r(31)(e)||r(1)(!1);var n=e.unstable_internal,i=n.createOperationDescriptor,o=(0,n.getRequest)(t.mutation);if("mutation"!==o.params.operationKind)throw new Error("commitRelayModernMutation: Expected mutation operation");if("Request"!==o.kind)throw new Error("commitRelayModernMutation: Expected mutation to be of type request");var a=t.optimisticResponse,s=t.optimisticUpdater,u=t.updater,c=t.configs,l=t.onError,d=t.variables,f=t.uploadables,h=i(o,d);if("function"==typeof a&&(a=a()),c){var p=r(17).convert(c,o,s,u);s=p.optimisticUpdater,u=p.updater}return e.executeMutation({operation:h,optimisticResponse:a,optimisticUpdater:s,updater:u,uploadables:f}).subscribeLegacy({onNext:function(r){var n=t.onCompleted;n&&n(e.lookup(h.fragment).data,r.errors)},onError:l})}},function(e,t,r){"use strict";e.exports=function(e,t,n,i){e.unstable_internal||r(1)(!1);var o=e.unstable_internal,a=o.createOperationDescriptor,s=(0,o.getRequest)(t);if("query"!==s.params.operationKind)throw new Error("fetchRelayModernQuery: Expected query operation");var u=a(s,n);return e.execute({operation:u,cacheConfig:i}).map(function(){return e.lookup(u.fragment).data}).toPromise()}},function(e,t,r){"use strict";e.exports=function(e,t){var n=e.unstable_internal,i=n.createOperationDescriptor,o=(0,n.getRequest)(t.subscription);if("subscription"!==o.params.operationKind)throw new Error("requestRelaySubscription: Must use Subscription operation");var a=t.configs,s=t.onCompleted,u=t.onError,c=t.onNext,l=i(o,t.variables),d=(a?r(17).convert(a,o,null,t.updater):t).updater;return e.execute({operation:l,updater:d,cacheConfig:{force:!0}}).map(function(){return e.lookup(l.fragment).data}).subscribeLegacy({onNext:c,onError:u,onCompleted:s})}},function(e,t,r){"use strict";var n=r(5)(r(18)),i=r(5)(r(42)),o=1,a=function(){function e(e){var t=e.request,r=e.variables,i=e.cacheConfig,a=e.uploadables;(0,n.default)(this,"_hasCommittedLogs",!1),(0,n.default)(this,"_logs",[]),this._cacheConfig=i,this._id=o++,this._request=t,this._uploadables=a,this._variables=r}var t=e.prototype;return t.addLog=function(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];this._logs.push({label:e,values:r})},t.clearLogs=function(){this._logs=[]},t.printLogs=function(e,t,r){var n=this.getIdentifier();console.groupCollapsed&&console.groupCollapsed("%c".concat(n),e?"color:red":""),console.timeEnd&&console.timeEnd(n),this.getLogsToPrint(e,t,r).forEach(function(e){var t,r=e.label,n=e.values;(t=console).log.apply(t,["".concat(r,":")].concat((0,i.default)(n)))}),console.groupEnd&&console.groupEnd()},t.commitLogs=function(e,t,n){!1!==this._hasCommittedLogs&&r(1)(!1),this.printLogs(e,t,n),this.markCommitted()},t.markCommitted=function(){this._hasCommittedLogs=!0},t.flushLogs=function(e,t,n){!1!==this._hasCommittedLogs&&r(1)(!1),this.printLogs(e,t,n),this.clearLogs()},t.getCacheConfig=function(){return this._cacheConfig},t.getIdentifier=function(){return"[".concat(this._id,"] Relay Modern: ").concat(this._request.name)},t.getLogsToPrint=function(e,t,r){return this._logs},t.getRequest=function(){return this._request},t.getUploadables=function(){return this._uploadables},t.getVariables=function(){return this._variables},e}();e.exports=a},function(e,t,r){"use strict";function n(e,t,r){return function(n,i,o,a){var s;function u(e,t,a){r&&s.addLog("GraphiQL",r(n,i)),s.addLog("Cache Config",o),s.addLog("Variables",JSON.stringify(i,null,2)),a&&s.addLog("Status",a),e&&s.addLog("Error",e),t&&s.addLog("Response",t)}function c(e,t,r){u(e,t,r),s.flushLogs(e,t,r)}function l(e,t,r){u(e,t,r),s.commitLogs(e,t,r)}var d=e(n,i,o,a),f="subscription"===n.operationKind;return d.do({start:function(){s=new t({request:n,variables:i,cacheConfig:o,uploadables:a}),console.time&&console.time(s.getIdentifier()),f&&c(null,null,"subscription is sent.")},next:function(e){c(null,e),console.time&&console.time(s.getIdentifier())},error:function(e){return l(e,null,null)},complete:function(){f?l(null,null,"subscription was closed."):s.markCommitted()},unsubscribe:function(){return l(null,null,f?"subscription is unsubscribed.":"execution is unsubscribed.")}})}}e.exports=function(e){return{wrapFetch:function(t,i){return function(o,a,s,u){return n(r(23).convertFetch(t),e,i)(o,a,s,u)}},wrapSubscribe:function(t,i){return function(o,a,s){return n(r(23).convertSubscribe(t),e,i)(o,a,s)}}}}},function(e,t,r){"use strict";e.exports=function e(t){return Array.isArray(t)?t.map(e):t&&"object"==typeof t?r(70)(t,e):t}},function(e,t){e.exports=s}])});
9
+ !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("fbjs/lib/invariant"),require("fbjs/lib/warning"),require("fbjs/lib/areEqual"),require("fbjs/lib/mapObject"),require("fbjs/lib/sprintf"),require("fbjs/lib/emptyFunction"),require("fbjs/lib/removeFromArray"),require("fbjs/lib/ErrorUtils"),require("fbjs/lib/resolveImmediate")):"function"==typeof define&&define.amd?define(["fbjs/lib/invariant","fbjs/lib/warning","fbjs/lib/areEqual","fbjs/lib/mapObject","fbjs/lib/sprintf","fbjs/lib/emptyFunction","fbjs/lib/removeFromArray","fbjs/lib/ErrorUtils","fbjs/lib/resolveImmediate"],t):"object"==typeof exports?exports.RelayRuntime=t(require("fbjs/lib/invariant"),require("fbjs/lib/warning"),require("fbjs/lib/areEqual"),require("fbjs/lib/mapObject"),require("fbjs/lib/sprintf"),require("fbjs/lib/emptyFunction"),require("fbjs/lib/removeFromArray"),require("fbjs/lib/ErrorUtils"),require("fbjs/lib/resolveImmediate")):e.RelayRuntime=t(e["fbjs/lib/invariant"],e["fbjs/lib/warning"],e["fbjs/lib/areEqual"],e["fbjs/lib/mapObject"],e["fbjs/lib/sprintf"],e["fbjs/lib/emptyFunction"],e["fbjs/lib/removeFromArray"],e["fbjs/lib/ErrorUtils"],e["fbjs/lib/resolveImmediate"])}(window,function(e,t,r,n,i,a,o,s,u){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=47)}([function(t,r){t.exports=e},function(e,t,r){"use strict";var n=r(2)(r(10)),i=r(4),a=r(18),o=r(0),s=r(8),u=i.VARIABLE,l="__module_component_",c="__module_operation_";function d(e,t){var r={};return e.forEach(function(e){e.kind===u?r[e.name]=function(e,t){return t.hasOwnProperty(e)||o(!1),s(t[e])}(e.variableName,t):r[e.name]=e.value}),r}function f(e,t){if(!t)return e;var r=[];for(var n in t)if(t.hasOwnProperty(n)){var i=t[n];null!=i&&r.push(n+":"+JSON.stringify(i))}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",UNPUBLISH_RECORD_SENTINEL:Object.freeze({__UNPUBLISH_RECORD_SENTINEL:!0}),UNPUBLISH_FIELD_SENTINEL:Object.freeze({__UNPUBLISH_FIELD_SENTINEL:!0}),getArgumentValues:d,getHandleStorageKey:function(e,t){var r=e.dynamicKey,i=e.handle,o=e.key,s=e.name,u=e.args,l=e.filters,c=a(i,o,s),p=null;return u&&l&&0!==u.length&&0!==l.length&&(p=u.filter(function(e){return l.indexOf(e.name)>-1})),r&&(p=null!=p?[r].concat((0,n.default)(p)):[r]),null===p?c:f(c,d(p,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,d(r,t)):n},getStableStorageKey:function(e,t){return f(e,s(t))},getModuleComponentKey:function(e){return"".concat(l).concat(e)},getModuleOperationKey:function(e){return"".concat(c).concat(e)}};e.exports=p},function(e,t){e.exports=function(e){return e&&e.__esModule?e:{default:e}}},function(e,r){e.exports=t},function(e,t,r){"use strict";e.exports={CONDITION:"Condition",CLIENT_EXTENSION:"ClientExtension",DEFER:"Defer",FRAGMENT:"Fragment",FRAGMENT_SPREAD:"FragmentSpread",INLINE_FRAGMENT:"InlineFragment",LINKED_FIELD:"LinkedField",LINKED_HANDLE:"LinkedHandle",LITERAL:"Literal",LOCAL_ARGUMENT:"LocalArgument",MODULE_IMPORT:"ModuleImport",OPERATION:"Operation",REQUEST:"Request",ROOT_ARGUMENT:"RootArgument",SCALAR_FIELD:"ScalarField",SCALAR_HANDLE:"ScalarHandle",SPLIT_OPERATION:"SplitOperation",STREAM:"Stream",VARIABLE:"Variable"}},function(e,t,r){var n=r(11);e.exports=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},i=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(i=i.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),i.forEach(function(t){n(e,t,r[t])})}return e}},function(e,t,r){"use strict";var n=r(2)(r(5)),i=r(13),a=r(22),o=r(0),s=(r(3),r(7).isClientID,r(1)),u=s.ID_KEY,l=s.REF_KEY,c=s.REFS_KEY,d=s.TYPENAME_KEY,f=s.UNPUBLISH_FIELD_SENTINEL;e.exports={clone:function(e){return(0,n.default)({},e)},copyFields:function(e,t){for(var r in e)e.hasOwnProperty(r)&&r!==u&&r!==d&&(t[r]=e[r])},create:function(e,t){var r={};return r[u]=e,r[d]=t,r},freeze:function(e){a(e)},getDataID:function(e){return e[u]},getLinkedRecordID:function(e,t){var r=e[t];return null==r?r:("object"==typeof r&&r&&"string"==typeof r[l]||o(!1),r[l])},getLinkedRecordIDs:function(e,t){var r=e[t];return null==r?r:("object"==typeof r&&Array.isArray(r[c])||o(!1),r[c])},getType:function(e){return e[d]},getValue:function(e,t){var r=e[t];return r&&"object"==typeof r&&(r.hasOwnProperty(l)||r.hasOwnProperty(c))&&o(!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[l]=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,a=Object.keys(t),o=0;o<a.length;o++){var s=a[o];!r&&i(e[s],t[s])||(r=null!==r?r:(0,n.default)({},e),t[s]!==f?r[s]=t[s]:delete r[s])}return null!==r?r:e}}},function(e,t,r){"use strict";var n="client:";e.exports={generateClientID:function(e,t,r){var i=e+":"+t;return null!=r&&(i+=":"+r),0!==i.indexOf(n)&&(i=n+i),i},isClientID:function(e){return 0===e.indexOf(n)}}},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,r){"use strict";var n=r(61),i=function(e,t){},a=function(){function e(e){this._source=e}e.create=function(t){return new e(t)},e.onUnhandledError=function(e){i=e},e.from=function(e){return o(e)?s(e):n(e)?u(e):l(e)},e.fromLegacy=function(t){return e.create(function(e){var r=t({onNext:e.next,onError:e.error,onCompleted:e.complete});return o(r)?r.subscribe(e):function(){return r.dispose()}})};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,a=function(e){return Object.defineProperty(e,"closed",{get:function(){return n}})};function o(){if(r){if(r.unsubscribe)r.unsubscribe();else try{r()}catch(e){i(e,!0)}r=void 0}}var s=a({unsubscribe:function(){if(!n){n=!0;try{t.unsubscribe&&t.unsubscribe(s)}catch(e){i(e,!0)}finally{o()}}}});try{t.start&&t.start(s)}catch(e){i(e,!0)}if(n)return s;var u=a({next:function(e){if(!n&&t.next)try{t.next(e)}catch(e){i(e,!0)}},error:function(e,r){if(n||!t.error)n=!0,i(e,r||!1),o();else{n=!0;try{t.error(e)}catch(e){i(e,!0)}finally{o()}}},complete:function(){if(!n){n=!0;try{t.complete&&t.complete()}catch(e){i(e,!0)}finally{o()}}}});try{r=e(u)}catch(e){u.error(e,!0)}0;n&&o();return s}(this._source,e)},t.subscribeLegacy=function(e){return{dispose:this.subscribe({next:e.onNext,error:e.onError,complete:e.onCompleted}).unsubscribe}},t.map=function(t){var r=this;return e.create(function(e){var n=r.subscribe({complete:e.complete,error:e.error,next:function(r){try{var n=t(r);e.next(n)}catch(t){e.error(t,!0)}}});return function(){n.unsubscribe()}})},t.mergeMap=function(t){var r=this;return e.create(function(n){var i=[];function a(e){this._sub=e,i.push(e)}function o(){i.splice(i.indexOf(this._sub),1),0===i.length&&n.complete()}return r.subscribe({start:a,next:function(r){try{n.closed||e.from(t(r)).subscribe({start:a,next:n.next,error:n.error,complete:o})}catch(e){n.error(e,!0)}},error:n.error,complete:o}),function(){i.forEach(function(e){return e.unsubscribe()}),i.length=0}})},t.poll=function(t){var r=this;return e.create(function(e){var n,i;return function a(){n=r.subscribe({next:e.next,error:e.error,complete:function(){i=setTimeout(a,t)}})}(),function(){clearTimeout(i),n.unsubscribe()}})},t.toPromise=function(){var e=this;return new Promise(function(t,r){var n;e.subscribe({start:function(e){n=e},next:function(e){t(e),n.unsubscribe()},error:r,complete:t})})},e}();function o(e){return"object"==typeof e&&null!==e&&"function"==typeof e.subscribe}function s(e){return e instanceof a?e:a.create(function(t){return e.subscribe(t)})}function u(e){return a.create(function(t){e.then(function(e){t.next(e),t.complete()},t.error)})}function l(e){return a.create(function(t){t.next(e),t.complete()})}e.exports=a},function(e,t,r){var n=r(49),i=r(50),a=r(51);e.exports=function(e){return n(e)||i(e)||a()}},function(e,t){e.exports=function(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}},function(e,t,r){"use strict";var n=r(15),i=n.EXISTENT,a=n.NONEXISTENT,o=n.UNKNOWN,s=function(){function e(e){this._records=e||{}}var t=e.prototype;return t.clear=function(){this._records={}},t.delete=function(e){this._records[e]=null},t.get=function(e){return this._records[e]},t.getRecordIDs=function(){return Object.keys(this._records)},t.getStatus=function(e){return this._records.hasOwnProperty(e)?null==this._records[e]?a:i:o},t.has=function(e){return this._records.hasOwnProperty(e)},t.load=function(e,t){t(null,this.get(e))},t.remove=function(e){delete this._records[e]},t.set=function(e,t){this._records[e]=t},t.size=function(){return Object.keys(this._records).length},t.toJSON=function(){return this._records},e}();e.exports=s},function(e,t){e.exports=r},function(e,t,r){"use strict";var n=r(17),i=(r(3),Object.freeze({RANGE_ADD:"RANGE_ADD",RANGE_DELETE:"RANGE_DELETE",NODE_DELETE:"NODE_DELETE",FIELDS_CHANGE:"FIELDS_CHANGE",REQUIRED_CHILDREN:"REQUIRED_CHILDREN"})),a=Object.freeze({APPEND:"append",IGNORE:"ignore",PREPEND:"prepend",REFETCH:"refetch",REMOVE:"remove"});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:i,RangeOperations:a,convert:function(e,t,r,i){var a=r?[r]:[],s=i?[i]:[];return e.forEach(function(e){switch(e.type){case"NODE_DELETE":var r=function(e,t){var r=e.deletedIDFieldName,n=o(t);return n?function(e,t){var i=e.getRootField(n);if(i){var a=i.getValue(r),o=Array.isArray(a)?a:[a];o.forEach(function(t){t&&"string"==typeof t&&e.delete(t)})}}:null}(e,t);r&&(a.push(r),s.push(r));break;case"RANGE_ADD":var i=function(e,t){var r=e.parentID,i=e.connectionInfo,a=e.edgeName;if(!r)return null;var s=o(t);return i&&s?function(e,t){var o=e.get(r);if(o){var u=e.getRootField(s);if(u){var l=u.getLinkedRecord(a),c=!0,d=!1,f=void 0;try{for(var p,h=i[Symbol.iterator]();!(c=(p=h.next()).done);c=!0){var _=p.value;if(l){var g=n.getConnection(o,_.key,_.filters);if(g){var v=n.buildConnectionEdge(e,g,l);if(v)switch(_.rangeBehavior){case"append":n.insertEdgeAfter(g,v);break;case"ignore":break;case"prepend":n.insertEdgeBefore(g,v)}}}}}catch(e){d=!0,f=e}finally{try{c||null==h.return||h.return()}finally{if(d)throw f}}}}}:null}(e,t);i&&(a.push(i),s.push(i));break;case"RANGE_DELETE":var u=function(e,t){var r=e.parentID,i=e.connectionKeys,a=e.pathToConnection,s=e.deletedIDFieldName;if(!r)return null;var u=o(t);return u?function(e,t){if(t){var o=[],l=t[u];if(l&&Array.isArray(s)){var c=!0,d=!1,f=void 0;try{for(var p,h=s[Symbol.iterator]();!(c=(p=h.next()).done);c=!0){var _=p.value;l&&"object"==typeof l&&(l=l[_])}}catch(e){d=!0,f=e}finally{try{c||null==h.return||h.return()}finally{if(d)throw f}}Array.isArray(l)?l.forEach(function(e){e&&e.id&&"object"==typeof e&&"string"==typeof e.id&&o.push(e.id)}):l&&l.id&&"string"==typeof l.id&&o.push(l.id)}else l&&"string"==typeof s&&"object"==typeof l&&("string"==typeof(l=l[s])?o.push(l):Array.isArray(l)&&l.forEach(function(e){"string"==typeof e&&o.push(e)}));!function(e,t,r,i,a){var o=i.get(e);if(o&&!(r.length<2)){for(var s=o,u=1;u<r.length-1;u++)s&&(s=s.getLinkedRecord(r[u]));if(t&&s){var l=!0,c=!1,d=void 0;try{for(var f,p=function(){var e=f.value,t=n.getConnection(s,e.key,e.filters);t&&a.forEach(function(e){n.deleteNode(t,e)})},h=t[Symbol.iterator]();!(l=(f=h.next()).done);l=!0)p()}catch(e){c=!0,d=e}finally{try{l||null==h.return||h.return()}finally{if(c)throw d}}}}}(r,i,a,e,o)}}:null}(e,t);u&&(a.push(u),s.push(u))}}),{optimisticUpdater:function(e,t){a.forEach(function(r){r(e,t)})},updater:function(e,t){s.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";var n=r(2)(r(5)),i=r(0);e.exports={getFragmentVariables:function(e,t,r){var a;return e.argumentDefinitions.forEach(function(e){if(!r.hasOwnProperty(e.name))switch(a=a||(0,n.default)({},r),e.kind){case"LocalArgument":a[e.name]=e.defaultValue;break;case"RootArgument":if(!t.hasOwnProperty(e.name)){a[e.name]=void 0;break}a[e.name]=t[e.name];break;default:i(!1)}}),a||r},getOperationVariables:function(e,t){var r={};return e.argumentDefinitions.forEach(function(e){var n=e.defaultValue;null!=t[e.name]&&(n=t[e.name]),r[e.name]=n}),r}}},function(e,t,r){"use strict";var n=r(26),i=r(18),a=r(0),o=(r(3),r(7).generateClientID),s="connection",u="__connection_next_edge_index";function l(e,t,r){if(null==r)return r;var i=n.get().EDGES,s=t.getValue(u);"number"!=typeof s&&a(!1);var l=o(t.getDataID(),i,s),c=e.create(l,r.getType());return c.copyFieldsFrom(r),t.setValue(s+1,u),c}function c(e,t,r){for(var i=n.get().NODE,a=0;a<e.length;a++){var o=e[a];if(o){var s=o.getLinkedRecord(i),u=s&&s.getDataID();if(u){if(r.has(u))continue;r.add(u)}t.push(o)}}}e.exports={buildConnectionEdge:l,createEdge:function(e,t,r,i){var a=n.get().NODE,s=o(t.getDataID(),r.getDataID()),u=e.get(s);return u||(u=e.create(s,i)),u.setLinkedRecord(r,a),u},deleteNode:function(e,t){var r=n.get(),i=r.EDGES,a=r.NODE,o=e.getLinkedRecords(i);if(o){for(var s,u=0;u<o.length;u++){var l=o[u],c=l&&l.getLinkedRecord(a);null!=c&&c.getDataID()===t?void 0===s&&(s=o.slice(0,u)):void 0!==s&&s.push(l)}void 0!==s&&e.setLinkedRecords(s,i)}},getConnection:function(e,t,r){var n=i(s,t,null);return e.getLinkedRecord(n,r)},insertEdgeAfter:function(e,t,r){var i=n.get(),a=i.CURSOR,o=i.EDGES,s=e.getLinkedRecords(o);if(s){var u;if(null==r)u=s.concat(t);else{u=[];for(var l=!1,c=0;c<s.length;c++){var d=s[c];u.push(d),null!=d&&r===d.getValue(a)&&(u.push(t),l=!0)}l||u.push(t)}e.setLinkedRecords(u,o)}else e.setLinkedRecords([t],o)},insertEdgeBefore:function(e,t,r){var i=n.get(),a=i.CURSOR,o=i.EDGES,s=e.getLinkedRecords(o);if(s){var u;if(null==r)u=[t].concat(s);else{u=[];for(var l=!1,c=0;c<s.length;c++){var d=s[c];null!=d&&r===d.getValue(a)&&(u.push(t),l=!0),u.push(d)}l||u.unshift(t)}e.setLinkedRecords(u,o)}else e.setLinkedRecords([t],o)},update:function(e,t){var r=e.get(t.dataID);if(r){var i=n.get(),a=i.EDGES,s=i.END_CURSOR,d=i.HAS_NEXT_PAGE,f=i.HAS_PREV_PAGE,p=i.PAGE_INFO,h=i.PAGE_INFO_TYPE,_=i.START_CURSOR,g=r.getLinkedRecord(t.fieldKey),v=g&&g.getLinkedRecord(p);if(g){var m=r.getLinkedRecord(t.handleKey),b=m&&m.getLinkedRecord(p);if(m){var y=m,E=g.getLinkedRecords(a);E&&(E=E.map(function(t){return l(e,y,t)}));var D=y.getLinkedRecords(a),R=y.getLinkedRecord(p);y.copyFieldsFrom(g),D&&y.setLinkedRecords(D,a),R&&y.setLinkedRecord(R,p);var I=[],S=t.args;if(D&&E)if(null!=S.after){if(!b||S.after!==b.getValue(s))return;var k=new Set;c(D,I,k),c(E,I,k)}else if(null!=S.before){if(!b||S.before!==b.getValue(_))return;var O=new Set;c(E,I,O),c(D,I,O)}else I=E;else I=E||D;if(null!=I&&I!==D&&y.setLinkedRecords(I,a),b&&v)if(null==S.after&&null==S.before)b.copyFieldsFrom(v);else if(null!=S.before||null==S.after&&S.last){b.setValue(!!v.getValue(f),f);var F=v.getValue(_);"string"==typeof F&&b.setValue(F,_)}else if(null!=S.after||null==S.before&&S.first){b.setValue(!!v.getValue(d),d);var L=v.getValue(s);"string"==typeof L&&b.setValue(L,s)}}else{var P=e.create(o(r.getDataID(),t.handleKey),g.getType());P.setValue(0,u),P.copyFieldsFrom(g);var N=g.getLinkedRecords(a);N&&(N=N.map(function(t){return l(e,P,t)}),P.setLinkedRecords(N,a)),r.setLinkedRecord(P,t.handleKey),(b=e.create(o(P.getDataID(),p),h)).setValue(!1,d),b.setValue(!1,f),b.setValue(null,s),b.setValue(null,_),v&&b.copyFieldsFrom(v),P.setLinkedRecord(b,p)}}else r.setValue(null,t.handleKey)}}}},function(e,t,r){"use strict";var n=r(0),i=r(27).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(48),i=(r(3),r(31)),a=i.getFragment,o=i.getPaginationFragment,s=i.getRefetchableFragment,u=i.getRequest,l=i.isFragment,c=i.isRequest,d=r(52).createOperationDescriptor,f=r(30),p=f.areEqualSelectors,h=f.getDataIDsFromFragment,_=f.getDataIDsFromObject,g=f.getSingularSelector,v=f.getPluralSelector,m=f.getSelector,b=f.getSelectorsFromObject,y=f.getVariablesFromSingularFragment,E=f.getVariablesFromPluralFragment,D=f.getVariablesFromFragment,R=f.getVariablesFromObject;e.exports={areEqualSelectors:p,createFragmentSpecResolver:function(e,t,r,i,a){return new n(e,r,i,a)},createOperationDescriptor:d,getDataIDsFromFragment:h,getDataIDsFromObject:_,getFragment:a,getPaginationFragment:o,getRefetchableFragment:s,getRequest:u,getSingularSelector:g,getPluralSelector:v,getSelector:m,getSelectorsFromObject:b,getVariablesFromSingularFragment:y,getVariablesFromPluralFragment:E,getVariablesFromFragment:D,getVariablesFromObject:R,isFragment:l,isRequest:c}},function(e,t,r){"use strict";var n=r(0),i=r(29),a=r(1).FRAGMENT_OWNER_KEY;function o(e,t){var r;return null==t?null:("object"!=typeof t&&n(!1),null!==(r=t[a])&&void 0!==r?r:null)}function s(e,t){return Array.isArray(t)?function(e,t){return t.map(function(e){return o(0,e)})}(0,t):o(0,t)}e.exports={getFragmentOwner:s,getFragmentOwners:function(e,t){return i(e,function(e,r){return s(0,t[r])})}}},function(e,t,r){"use strict";var n=(0,r(7).generateClientID)(r(1).ROOT_ID,"viewer");e.exports={VIEWER_ID:n,VIEWER_TYPE:"Viewer"}},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(12),i=r(6),a=r(39),o=r(1),s=o.ROOT_ID,u=o.ROOT_TYPE;e.exports=function(e,t,r,o){var l=new n;l.set(s,i.create(s,u));var c=a.normalize(l,e,t,o);return{errors:r,fieldPayloads:c.fieldPayloads,incrementalPlaceholders:c.incrementalPlaceholders,moduleImportPayloads:c.moduleImportPayloads,source:l}}},function(e,t,r){"use strict";var n=r(58),i=r(59),a={"*":[]},o={"*":[]},s={},u={stop:n},l=function(e){return"@"!==e.charAt(0)},c={instrumentMethods:function(e,t){for(var r in t)t.hasOwnProperty(r)&&"function"==typeof e[r]&&(e[r]=c.instrument(t[r],e[r]))},instrument:function(e,t){if(!l(e))return t.attachHandler=n,t.detachHandler=n,t;a.hasOwnProperty(e)||(a[e]=[]);var r=a["*"],o=a[e],u=[],c=[],d=function(){var n;if(0===o.length&&0===u.length&&0===r.length)n=t.apply(this,arguments);else if(c.push([r.length,o.length,u.length,this,arguments,s]),function n(){var i=c[c.length-1];i[0]?(i[0]--,r[i[0]](e,n)):i[1]?(i[1]--,o[i[1]](e,n)):i[2]?(i[2]--,u[i[2]](e,n)):i[5]=t.apply(i[3],i[4])}(),(n=c.pop()[5])===s)throw new Error("RelayProfiler: Handler did not invoke original function.");return n};return d.attachHandler=function(e){u.push(e)},d.detachHandler=function(e){i(u,e)},d.displayName="(instrumented "+e+")",d},attachAggregateHandler:function(e,t){l(e)&&(a.hasOwnProperty(e)||(a[e]=[]),a[e].push(t))},detachAggregateHandler:function(e,t){l(e)&&a.hasOwnProperty(e)&&i(a[e],t)},profile:function(e,t){var r=o["*"].length>0,n=o.hasOwnProperty(e);if(n||r){for(var i,a=n&&r?o[e].concat(o["*"]):n?o[e]:o["*"],s=a.length-1;s>=0;s--){var l=(0,a[s])(e,t);(i=i||[]).unshift(l)}return{stop:function(e){i&&i.forEach(function(t){return t(e)})}}}return u},attachProfileHandler:function(e,t){l(e)&&(o.hasOwnProperty(e)||(o[e]=[]),o[e].push(t))},detachProfileHandler:function(e,t){l(e)&&o.hasOwnProperty(e)&&i(o[e],t)}};e.exports=c},function(e,t,r){"use strict";e.exports=function(e){return Boolean(e&&e["@@RelayModernEnvironment"])}},function(e,t,r){"use strict";var n=r(2)(r(11)),i={after:!0,before:!0,find:!0,first:!0,last:!0,surrounds:!0},a={find:!0,first:!0,last:!0},o={CLIENT_MUTATION_ID:"clientMutationId",CURSOR:"cursor",EDGES_HAVE_SOURCE_FIELD:!1,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){o=e},get:function(){return o},isConnectionCall:function(e){return i.hasOwnProperty(e.name)},hasRangeCalls:function(e){return e.some(function(e){return a.hasOwnProperty(e.name)})},getDefaultPageInfo:function(){var e;return e={},(0,n.default)(e,o.END_CURSOR,null),(0,n.default)(e,o.HAS_NEXT_PAGE,!1),(0,n.default)(e,o.HAS_PREV_PAGE,!1),(0,n.default)(e,o.START_CURSOR,null),e}};e.exports=s},function(e,t,r){"use strict";e.exports={DEFAULT_HANDLE_KEY:""}},function(e,t,r){"use strict";e.exports=function(e,t){return e===t&&(null===e||"object"!=typeof e)}},function(e,t){e.exports=n},function(e,t,r){"use strict";var n=r(13),i=r(0),a=(r(3),r(16).getFragmentVariables),o=r(1),s=o.FRAGMENT_OWNER_KEY,u=o.FRAGMENTS_KEY,l=o.ID_KEY;function c(e,t,r,n){("object"!=typeof r||null===r||Array.isArray(r))&&i(!1);var o=r[l],c=r[u];if("string"==typeof o&&"object"==typeof c&&null!==c&&"object"==typeof c[t.name]&&null!==c[t.name]){var d,f,p=c[t.name];if(null!=n&&"object"==typeof n){var h=n.variables;return{owner:n,selector:{dataID:o,node:t,variables:a(t,h,p)}}}return{owner:null!==(d=null!==(f=n)&&void 0!==f?f:r[s])&&void 0!==d?d:null,selector:{dataID:o,node:t,variables:a(t,e,p)}}}return null}function d(e,t,r,n){var i=null;return r.forEach(function(r,a){var o=null!=n?n[a]:null,s=null!=r?c(e,t,r,o):null;null!=s&&(i=i||[]).push(s)}),i}function f(e,t,r,n){var a;return null==r?a=r:t.metadata&&!0===t.metadata.plural?(Array.isArray(r)||i(!1),void 0!==n?(Array.isArray(n)||i(!1),a=d(e,t,r,n)):a=d(e,t,r)):(Array.isArray(r)&&i(!1),null!=n?(Array.isArray(n)&&i(!1),a=c(e,t,r,n)):a=c(e,t,r)),a}function p(e,t){var r;return null==t?r=t:e.metadata&&!0===e.metadata.plural?(Array.isArray(t)||i(!1),r=function(e,t){var r;return t.forEach(function(t){var n=null!=t?h(e,t):null;null!=n&&(r=r||[]).push(n)}),r||null}(e,t)):(Array.isArray(t)&&i(!1),r=h(e,t)),r}function h(e,t){("object"!=typeof t||null===t||Array.isArray(t))&&i(!1);var r=t[l];return"string"==typeof r?r:null}function _(e,t,r,n){var a;return null==r?{}:!0===(null===(a=t.metadata)||void 0===a?void 0:a.plural)?(Array.isArray(r)||i(!1),void 0!==n?(Array.isArray(n)||i(!1),v(e,t,r,n)):v(e,t,r)):(Array.isArray(r)&&i(!1),void 0!==n?(Array.isArray(n)&&i(!1),g(e,t,r,n)||{}):g(e,t,r)||{})}function g(e,t,r,n){var i=c(e,t,r,n);return i?i.selector.variables:null}function v(e,t,r,n){var i={};return r.forEach(function(r,a){if(null!=r){var o=null!=n?n[a]:null,s=g(e,t,r,o);s&&Object.assign(i,s)}}),i}e.exports={areEqualSelectors:function(e,t){var r=n(e.selector.variables,t.selector.variables);return e.selector.dataID===t.selector.dataID&&e.selector.node===t.selector.node&&r&&e.owner===t.owner},getDataIDsFromFragment:p,getDataIDsFromObject:function(e,t){var r={};for(var n in e)if(e.hasOwnProperty(n)){var i=e[n],a=t[n];r[n]=p(i,a)}return r},getSingularSelector:c,getPluralSelector:d,getSelector:f,getSelectorsFromObject:function(e,t,r,n){var a={};for(var o in t)if(t.hasOwnProperty(o)){var s=t[o],u=r[o];if(null!=n){n.hasOwnProperty(o)||i(!1);var l=n[o];a[o]=f(e,s,u,l)}else a[o]=f(e,s,u)}return a},getVariablesFromSingularFragment:g,getVariablesFromPluralFragment:v,getVariablesFromFragment:_,getVariablesFromObject:function(e,t,r,n){var a={};for(var o in t)if(t.hasOwnProperty(o)){var s=t[o],u=r[o];if(null!=n){n.hasOwnProperty(o)||i(!1);var l=_(e,s,u,n[o]);Object.assign(a,l)}else{var c=_(e,s,u);Object.assign(a,c)}}return a}}},function(e,t,r){"use strict";var n=r(4),i=r(0);function a(e){var t="function"==typeof e?e:"function"==typeof e.modern?e.modern:null;if(null===t)return e;var r=t();return r.default?r.default:r}function o(e){var t=a(e);return"object"==typeof t&&null!==t&&t.kind===n.FRAGMENT}function s(e){var t=a(e);return"object"==typeof t&&null!==t&&t.kind===n.REQUEST}function u(e){var t=a(e);return o(t)||i(!1),t}e.exports={getFragment:u,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=a(e);return s(t)||i(!1),t},graphql:function(e){i(!1)},isFragment:o,isRequest:s}},function(e,t,r){"use strict";var n=r(17),i=r(0);e.exports=function(e){switch(e){case"connection":return n}i(!1)}},function(e,t,r){"use strict";var n=r(1).ROOT_TYPE,i=r(21).VIEWER_ID,a={kind:"linked",handle:function(e,t,r){if(null!=t&&t.__typename===n&&"viewer"===e.name)return i}};e.exports=[a]},function(e,t,r){"use strict";var n=r(2)(r(10)),i=r(53),a={create:function(e,t){for(var r=arguments.length,n=new Array(r>2?r-2:0),i=2;i<r;i++)n[i-2]=arguments[i];return o("mustfix",e,t,n)},createWarning:function(e,t){for(var r=arguments.length,n=new Array(r>2?r-2:0),i=2;i<r;i++)n[i-2]=arguments[i];return o("warn",e,t,n)}};function o(e,t,r,a){var o=new Error(i.apply(void 0,[r].concat((0,n.default)(a))));return o.name=t,o.type=e,o.framesToPop=2,o}e.exports=a},function(e,t,r){"use strict";var n=r(4),i=r(36),a=r(37),o=r(1),s=r(40),u=r(0),l=r(15),c=l.EXISTENT,d=l.UNKNOWN,f=n.CONDITION,p=n.CLIENT_EXTENSION,h=n.DEFER,_=n.FRAGMENT_SPREAD,g=n.INLINE_FRAGMENT,v=n.LINKED_FIELD,m=n.LINKED_HANDLE,b=n.MODULE_IMPORT,y=n.SCALAR_FIELD,E=n.SCALAR_HANDLE,D=n.STREAM,R=o.getModuleOperationKey,I=o.getStorageKey,S=o.getArgumentValues;var k=function(){function e(e,t,r,n,o,s){var u;this._operationLoader=null!==(u=o)&&void 0!==u?u:null,this._handlers=n,this._mutator=new i(e,t),this._recordWasMissing=!1,this._source=e,this._variables=r,this._recordSourceProxy=new a(this._mutator,s)}var t=e.prototype;return t.check=function(e,t){return this._traverse(e,t),!this._recordWasMissing},t._getVariableValue=function(e){return this._variables.hasOwnProperty(e)||u(!1),this._variables[e]},t._handleMissing=function(){this._recordWasMissing=!0},t._getDataForHandlers=function(e,t){return{args:e.args?S(e.args,this._variables):{},record:this._source.get(t)}},t._handleMissingScalarField=function(e,t){var r=this._getDataForHandlers(e,t),n=r.args,i=r.record,a=!0,o=!1,s=void 0;try{for(var u,l=this._handlers[Symbol.iterator]();!(a=(u=l.next()).done);a=!0){var c=u.value;if("scalar"===c.kind){var d=c.handle(e,i,n,this._recordSourceProxy);if(void 0!==d)return d}}}catch(e){o=!0,s=e}finally{try{a||null==l.return||l.return()}finally{if(o)throw s}}this._handleMissing()},t._handleMissingLinkField=function(e,t){var r=this._getDataForHandlers(e,t),n=r.args,i=r.record,a=!0,o=!1,s=void 0;try{for(var u,l=this._handlers[Symbol.iterator]();!(a=(u=l.next()).done);a=!0){var d=u.value;if("linked"===d.kind){var f=d.handle(e,i,n,this._recordSourceProxy);if(null!=f&&this._mutator.getStatus(f)===c)return f}}}catch(e){o=!0,s=e}finally{try{a||null==l.return||l.return()}finally{if(o)throw s}}this._handleMissing()},t._handleMissingPluralLinkField=function(e,t){var r=this,n=this._getDataForHandlers(e,t),i=n.args,a=n.record,o=!0,s=!1,u=void 0;try{for(var l,d=this._handlers[Symbol.iterator]();!(o=(l=d.next()).done);o=!0){var f=l.value;if("pluralLinked"===f.kind){var p=f.handle(e,a,i,this._recordSourceProxy);if(null!=p)return p.filter(function(e){return null!=e&&r._mutator.getStatus(e)===c})}}}catch(e){s=!0,u=e}finally{try{o||null==d.return||d.return()}finally{if(s)throw u}}this._handleMissing()},t._traverse=function(e,t){var r=this._mutator.getStatus(t);r===d&&this._handleMissing(),r===c&&this._traverseSelections(e.selections,t)},t._traverseSelections=function(e,t){var r=this;e.forEach(function(n){switch(n.kind){case y:r._checkScalar(n,t);break;case v:n.plural?r._checkPluralLink(n,t):r._checkLink(n,t);break;case f:r._getVariableValue(n.condition)===n.passingValue&&r._traverseSelections(n.selections,t);break;case g:var i=r._mutator.getType(t);null!=i&&i===n.type&&r._traverseSelections(n.selections,t);break;case m:var a=s(n,e,r._variables);a.plural?r._checkPluralLink(a,t):r._checkLink(a,t);break;case b:r._checkModuleImport(n,t);break;case h:case D:r._traverseSelections(n.selections,t);break;case E:case _:u(!1);break;case p:var o=r._recordWasMissing;r._traverseSelections(n.selections,t),r._recordWasMissing=o;break;default:u(!1)}})},t._checkModuleImport=function(e,t){var r=this._operationLoader;null===r&&u(!1);var n=R(e.documentName),i=this._mutator.getValue(t,n);if(null!=i){var a=r.get(i);null!=a?this._traverse(a,t):this._handleMissing()}else void 0===i&&this._handleMissing()},t._checkScalar=function(e,t){var r=I(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=I(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._traverse(e,n)},t._checkPluralLink=function(e,t){var r=this,n=I(e,this._variables),i=this._mutator.getLinkedRecordIDs(t,n);void 0===i&&null!=(i=this._handleMissingPluralLinkField(e,t))&&this._mutator.setLinkedRecordIDs(t,n,i),i&&i.forEach(function(t){null!=t&&r._traverse(e,t)})},e}();e.exports={check:function(e,t,r,n,i,a){var o=r.dataID,s=r.node,u=r.variables;return new k(e,t,u,n,i,a).check(s,o)}}},function(e,t,r){"use strict";var n=r(2)(r(5)),i=r(6),a=r(0),o=r(15).EXISTENT,s=r(1),u=s.UNPUBLISH_FIELD_SENTINEL,l=s.UNPUBLISH_RECORD_SENTINEL,c=function(){function e(e,t,r){this._backup=r,this._base=e,this._sink=t,this.__sources=[t,e]}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:r!==l?null!=t?i.update(t,r):i.clone(r):void 0},t._createBackupRecord=function(e){var t=this._backup;if(t&&!t.has(e)){var r=this._base.get(e);null!=r?t.set(e,r):null===r&&t.delete(e)}},t._setSentinelFieldsInBackupRecord=function(e,t){var r=this._backup;if(r){var i=r.get(e);if(i&&i!==l){var a=null;for(var o in t)t.hasOwnProperty(o)&&(o in i||((a=a||(0,n.default)({},i))[o]=u));r.set(e,a||i)}}},t._setSentinelFieldInBackupRecord=function(e,t){var r=this._backup;if(r){var a=r.get(e);if(a&&a!==l&&!(t in a)){var o=(0,n.default)({},a);i.setValue(o,t,u),r.set(e,o)}}},t._getSinkRecord=function(e){var t=this._sink.get(e);if(!t){var r=this._base.get(e);r||a(!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),n=this._base.get(e);r||n||a(!1),this._createBackupRecord(t);var o=this._getSinkRecord(t);n&&i.copyFields(n,o),r&&i.copyFields(r,o),this._setSentinelFieldsInBackupRecord(t,o)},t.copyFieldsFromRecord=function(e,t){this._createBackupRecord(t);var r=this._getSinkRecord(t);i.copyFields(e,r),this._setSentinelFieldsInBackupRecord(t,r)},t.create=function(e,t){(this._base.getStatus(e)===o||this._sink.getStatus(e)===o)&&a(!1),this._backup&&this._backup.set(e,l);var r=i.create(e,t);this._sink.set(e,r)},t.delete=function(e){this._createBackupRecord(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 a=i.getValue(n,t);if(void 0!==a)return a}else if(null===n)return null}},t.setValue=function(e,t,r){this._createBackupRecord(e);var n=this._getSinkRecord(e);i.setValue(n,t,r),this._setSentinelFieldInBackupRecord(e,t)},t.getLinkedRecordID=function(e,t){for(var r=0;r<this.__sources.length;r++){var n=this.__sources[r].get(e);if(n){var a=i.getLinkedRecordID(n,t);if(void 0!==a)return a}else if(null===n)return null}},t.setLinkedRecordID=function(e,t,r){this._createBackupRecord(e);var n=this._getSinkRecord(e);i.setLinkedRecordID(n,t,r),this._setSentinelFieldInBackupRecord(e,t)},t.getLinkedRecordIDs=function(e,t){for(var r=0;r<this.__sources.length;r++){var n=this.__sources[r].get(e);if(n){var a=i.getLinkedRecordIDs(n,t);if(void 0!==a)return a}else if(null===n)return null}},t.setLinkedRecordIDs=function(e,t,r){this._createBackupRecord(e);var n=this._getSinkRecord(e);i.setLinkedRecordIDs(n,t,r),this._setSentinelFieldInBackupRecord(e,t)},e}();e.exports=c},function(e,t,r){"use strict";var n=r(6),i=r(57),a=r(38),o=r(0),s=r(23),u=r(15),l=u.EXISTENT,c=u.NONEXISTENT,d=r(1),f=d.ROOT_ID,p=d.ROOT_TYPE,h=function(){function e(e,t,r){this.__mutator=e,this._handlerProvider=r||null,this._proxies={},this._getDataID=t}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===l){var a=e.get(t);a&&(r.__mutator.getStatus(t)!==l&&r.create(t,n.getType(a)),r.__mutator.copyFieldsFromRecord(a,t))}else i===c&&r.delete(t)}),t&&t.length&&t.forEach(function(e){var t=r._handlerProvider&&r._handlerProvider(e.handle);t||o(!1),t.update(r,e)})},t.commitPayload=function(e,t){if(!t)return new a(this,e.fragment);var r=s(e.root,t,null,{getDataID:this._getDataID}),n=r.source,i=r.fieldPayloads;return this.publishSource(n,i),new a(this,e.fragment)},t.create=function(e,t){this.__mutator.create(e,t),delete this._proxies[e];var r=this.get(e);return r||o(!1),r},t.delete=function(e){e===f&&o(!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===l?new i(this,this.__mutator,e):t===c?null:void 0}return this._proxies[e]},t.getRoot=function(){var e=this.get(f);return e||(e=this.create(f,p)),e&&e.getType()===p||o(!1),e},e}();e.exports=h},function(e,t,r){"use strict";var n=r(0),i=r(1).getStorageKey,a=function(){function e(e,t){this.__recordSource=e,this._readSelector=t}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._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=i(t,this._readSelector.variables);return this.getRoot().getLinkedRecord(r)},t.getPluralRootField=function(e){var t=this._getRootField(this._readSelector,e,!0),r=i(t,this._readSelector.variables);return this.getRoot().getLinkedRecords(r)},e}();e.exports=a},function(e,t,r){"use strict";var n=r(2)(r(10)),i=r(6),a=r(24),o=r(0),s=(r(3),r(4)),u=s.CONDITION,l=s.CLIENT_EXTENSION,c=s.DEFER,d=s.INLINE_FRAGMENT,f=s.LINKED_FIELD,p=s.LINKED_HANDLE,h=s.MODULE_IMPORT,_=s.SCALAR_FIELD,g=s.SCALAR_HANDLE,v=s.STREAM,m=r(7),b=m.generateClientID,y=(m.isClientID,r(1)),E=y.getArgumentValues,D=y.getHandleStorageKey,R=y.getModuleComponentKey,I=y.getModuleOperationKey,S=y.getStorageKey,k=y.TYPENAME_KEY;function O(e,t,r,n){var i=t.dataID,a=t.node,o=t.variables;return new F(e,o,n).normalizeResponse(a,i,r)}var F=function(){function e(e,t,r){this._getDataId=r.getDataID,this._handleFieldPayloads=[],this._handleStrippedNulls=!0===r.handleStrippedNulls,this._incrementalPlaceholders=[],this._moduleImportPayloads=[],this._path=r.path?(0,n.default)(r.path):[],this._recordSource=e,this._variables=t}var t=e.prototype;return t.normalizeResponse=function(e,t,r){var n=this._recordSource.get(t);return n||o(!1),this._traverseSelections(e,n,r),{incrementalPlaceholders:this._incrementalPlaceholders,fieldPayloads:this._handleFieldPayloads,moduleImportPayloads:this._moduleImportPayloads}},t._getVariableValue=function(e){return this._variables.hasOwnProperty(e)||o(!1),this._variables[e]},t._getRecordType=function(e){var t=e[k];return null==t&&o(!1),t},t._traverseSelections=function(e,t,r){for(var n=0;n<e.selections.length;n++){var a=e.selections[n];switch(a.kind){case _:case f:this._normalizeField(e,a,t,r);break;case u:this._getVariableValue(a.condition)===a.passingValue&&this._traverseSelections(a,t,r);break;case d:i.getType(t)===a.type&&this._traverseSelections(a,t,r);break;case p:case g:var s=a.args?E(a.args,this._variables):{},m=S(a,this._variables),b=D(a,this._variables);this._handleFieldPayloads.push({args:s,dataID:i.getDataID(t),fieldKey:m,handle:a.handle,handleKey:b});break;case h:this._normalizeModuleImport(e,a,t,r);break;case c:this._normalizeDefer(a,t,r);break;case v:this._normalizeStream(a,t,r);break;case l:var y=this._handleStrippedNulls;this._handleStrippedNulls=!1,this._traverseSelections(a,t,r),this._handleStrippedNulls=y;break;default:o(!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",label:e.label,path:(0,n.default)(this._path),selector:{dataID:i.getDataID(t),node:e,variables:this._variables},typeName:i.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,n.default)(this._path),parentID:i.getDataID(t),node:e,variables:this._variables})},t._normalizeModuleImport=function(e,t,r,a){var s,u;"object"==typeof a&&a||o(!1);var l=i.getType(r),c=R(t.documentName),d=a[c];i.setValue(r,c,null!==(s=d)&&void 0!==s?s:null);var f=I(t.documentName),p=a[f];i.setValue(r,f,null!==(u=p)&&void 0!==u?u:null),null!=p&&this._moduleImportPayloads.push({data:a,dataID:i.getDataID(r),operationReference:p,path:(0,n.default)(this._path),typeName:l,variables:this._variables})},t._normalizeField=function(e,t,r,n){"object"==typeof n&&n||o(!1);var a=t.alias||t.name,s=S(t,this._variables),u=n[a];if(null!=u)t.kind===_?i.setValue(r,s,u):t.kind===f?(this._path.push(a),t.plural?this._normalizePluralLink(t,r,s,u):this._normalizeLink(t,r,s,u),this._path.pop()):o(!1);else{if(void 0===u&&!this._handleStrippedNulls)return;i.setValue(r,s,null)}},t._normalizeLink=function(e,t,r,n){var a;"object"==typeof n&&n||o(!1);var s=this._getDataId(n,null!==(a=e.concreteType)&&void 0!==a?a:this._getRecordType(n))||i.getLinkedRecordID(t,r)||b(i.getDataID(t),r);"string"!=typeof s&&o(!1),i.setLinkedRecordID(t,r,s);var u=this._recordSource.get(s);if(u)0;else{var l=e.concreteType||this._getRecordType(n);u=i.create(s,l),this._recordSource.set(s,u)}this._traverseSelections(e,u,n)},t._normalizePluralLink=function(e,t,r,n){var a=this;Array.isArray(n)||o(!1);var s=i.getLinkedRecordIDs(t,r),u=[];n.forEach(function(n,l){var c;if(null!=n){a._path.push(String(l)),"object"!=typeof n&&o(!1);var d=a._getDataId(n,null!==(c=e.concreteType)&&void 0!==c?c:a._getRecordType(n))||s&&s[l]||b(i.getDataID(t),r,l);"string"!=typeof d&&o(!1),u.push(d);var f=a._recordSource.get(d);if(f)0;else{var p=e.concreteType||a._getRecordType(n);f=i.create(d,p),a._recordSource.set(d,f)}a._traverseSelections(e,f,n),a._path.pop()}else u.push(n)}),i.setLinkedRecordIDs(t,r,u)},t._validateRecordType=function(e,t,r){"LinkedField"===t.kind&&t.concreteType||this._getRecordType(r)},e}();O=a.instrument("RelayResponseNormalizer.normalize",O),e.exports={normalize:O}},function(e,t,r){"use strict";var n=r(2)(r(5)),i=r(13),a=r(0),o=r(4).LINKED_FIELD,s=r(1).getHandleStorageKey;e.exports=function(e,t,r){var u=t.find(function(t){return t.kind===o&&t.name===e.name&&t.alias===e.alias&&i(t.args,e.args)});u&&u.kind===o||a(!1);var l=s(e,r);return(0,n.default)({},u,{args:null,name:l,storageKey:l})}},function(e,t,r){"use strict";var n=r(6),i=r(0),a=r(4),o=a.CONDITION,s=a.CLIENT_EXTENSION,u=a.FRAGMENT_SPREAD,l=a.INLINE_FRAGMENT,c=a.LINKED_FIELD,d=a.MODULE_IMPORT,f=a.SCALAR_FIELD,p=r(1),h=p.FRAGMENTS_KEY,_=p.FRAGMENT_OWNER_KEY,g=p.FRAGMENT_PROP_NAME_KEY,v=p.ID_KEY,m=p.MODULE_COMPONENT_KEY,b=p.getArgumentValues,y=p.getStorageKey,E=p.getModuleComponentKey;var D=function(){function e(e,t,r){this._recordSource=e,this._seenRecords={},this._isMissingData=!1,this._variables=t,this._owner=r}var t=e.prototype;return t.read=function(e,t){return{data:this._traverse(e,t,null),dataID:t,node:e,seenRecords:this._seenRecords,variables:this._variables,isMissingData:this._isMissingData,owner:this._owner}},t._traverse=function(e,t,r){var n=this._recordSource.get(t);if(this._seenRecords[t]=n,null==n)return void 0===n&&(this._isMissingData=!0),n;var i=r||{};return this._traverseSelections(e.selections,n,i),i},t._getVariableValue=function(e){return this._variables.hasOwnProperty(e)||i(!1),this._variables[e]},t._traverseSelections=function(e,t,r){for(var a=0;a<e.length;a++){var p=e[a];switch(p.kind){case f:this._readScalar(p,t,r);break;case c:p.plural?this._readPluralLink(p,t,r):this._readLink(p,t,r);break;case o:this._getVariableValue(p.condition)===p.passingValue&&this._traverseSelections(p.selections,t,r);break;case l:var h=n.getType(t);null!=h&&h===p.type&&this._traverseSelections(p.selections,t,r);break;case u:this._createFragmentPointer(p,t,r);break;case d:this._readModuleImport(p,t,r);break;case s:var _=this._isMissingData;this._traverseSelections(p.selections,t,r),this._isMissingData=_;break;default:i(!1)}}},t._readScalar=function(e,t,r){var i,a=null!==(i=e.alias)&&void 0!==i?i:e.name,o=y(e,this._variables),s=n.getValue(t,o);void 0===s&&(this._isMissingData=!0),r[a]=s},t._readLink=function(e,t,r){var a,o=null!==(a=e.alias)&&void 0!==a?a:e.name,s=y(e,this._variables),u=n.getLinkedRecordID(t,s);if(null==u)return r[o]=u,void(void 0===u&&(this._isMissingData=!0));var l=r[o];null!=l&&"object"!=typeof l&&i(!1),r[o]=this._traverse(e,u,l)},t._readPluralLink=function(e,t,r){var a,o=this,s=null!==(a=e.alias)&&void 0!==a?a:e.name,u=y(e,this._variables),l=n.getLinkedRecordIDs(t,u);if(null==l)return r[s]=l,void(void 0===l&&(this._isMissingData=!0));var c=r[s];null==c||Array.isArray(c)||i(!1);var d=c||[];l.forEach(function(t,r){if(null==t)return void 0===t&&(o._isMissingData=!0),void(d[r]=t);var n=d[r];null!=n&&"object"!=typeof n&&i(!1),d[r]=o._traverse(e,t,n)}),r[s]=d},t._readModuleImport=function(e,t,r){var i=E(e.documentName),a=n.getValue(t,i);null!=a?(this._createFragmentPointer({kind:"FragmentSpread",name:e.fragmentName,args:null},t,r),r[g]=e.fragmentPropName,r[m]=a):void 0===a&&(this._isMissingData=!0)},t._createFragmentPointer=function(e,t,r){var a=r[h];null==a&&(a=r[h]={}),"object"==typeof a&&a||i(!1),null==r[v]&&(r[v]=n.getDataID(t)),a[e.name]=e.args?b(e.args,this._variables):{},r[_]=this._owner},e}();e.exports={read:function(e,t,r){var n,i=t.dataID,a=t.node,o=t.variables;return new D(e,o,null!==(n=r)&&void 0!==n?n:null).read(a,i)}}},function(e,t,r){"use strict";var n=r(21),i=n.VIEWER_ID,a=n.VIEWER_TYPE;e.exports=function(e,t){return t===a&&null==e.id?i:e.id}},function(e,t,r){"use strict";e.exports=function e(t,r){if(t===r||"object"!=typeof t||!t||"object"!=typeof r||!r)return r;var n=!1,i=Array.isArray(t)?t:null,a=Array.isArray(r)?r:null;if(i&&a)n=a.reduce(function(t,r,n){var o=e(i[n],r);return o!==a[n]&&(a[n]=o),t&&o===i[n]},!0)&&i.length===a.length;else if(!i&&!a){var o=t,s=r,u=Object.keys(o),l=Object.keys(s);n=l.reduce(function(t,r){var n=e(o[r],s[r]);return n!==s[r]&&(s[r]=n),t&&n===o[r]},!0)&&u.length===l.length}return n?t:r}},function(e,t,r){"use strict";var n=r(9);e.exports={convertFetch:function(e){return function(t,r,i,a){var o=e(t,r,i,a);return o instanceof Error?n.create(function(e){return e.error(o)}):n.from(o)}},convertSubscribe:function(e){return function(t,r,i){return n.fromLegacy(function(n){return e(t,r,i,n)})}}}},function(e,t,r){"use strict";var n=r(0),i=r(8);e.exports=function(e,t){var r=null!=e.id?e.id:e.text;return null==r&&n(!1),r+JSON.stringify(i(t))}},function(e,t,r){"use strict";var n=r(19),i=n.getDataIDsFromFragment,a=n.getVariablesFromFragment,o=r(20).getFragmentOwner,s=r(8);e.exports=function(e,t){var r,n,u,l=o(e,t),c=a({},e,t,l),d=i(e,t),f=Array.isArray(l)?l.map(function(e){var t,r;return null!==(t=null!==(r=null==e?void 0:e.node.params.id)&&void 0!==r?r:null==e?void 0:e.node.params.name)&&void 0!==t?t:""}):null!==(r=null!==(n=null==l?void 0:l.node.params.id)&&void 0!==n?n:null==l?void 0:l.node.params.name)&&void 0!==r?r:"",p=Array.isArray(l)?l.map(function(e){var t;return null!==(t=null==e?void 0:e.variables)&&void 0!==t?t:null}):null!==(u=null==l?void 0:l.variables)&&void 0!==u?u:null;return"".concat(e.name,"-").concat(JSON.stringify(s({dataIDs:d,fragmentVariables:c,fragmentOwnerID:f,fragmentOwnerVariables:p})))}},function(e,t,r){"use strict";var n=r(4),i=r(16),a=r(17),o=r(26),s=r(19),u=r(14),l=r(27),c=r(32),d=r(33),f=r(34),p=r(54),h=r(12),_=r(55),g=r(20),v=r(31),m=r(64),b=r(68),y=r(69),E=r(9),D=r(24),R=r(70),I=r(1),S=r(21),k=r(71),O=r(72),F=r(73),L=r(75),P=r(76),N=r(22),T=r(77),A=r(79),w=r(46),x=r(80),M=r(18),C=r(45),U=r(25),j=r(28),V=r(43),K=r(81),H=r(8),G=r(7).generateClientID;e.exports={Environment:_,Network:b,Observable:E,QueryResponseCache:R,RecordSource:h,Store:m,areEqualSelectors:s.areEqualSelectors,createFragmentSpecResolver:s.createFragmentSpecResolver,createOperationDescriptor:s.createOperationDescriptor,getDataIDsFromFragment:s.getDataIDsFromFragment,getDataIDsFromObject:s.getDataIDsFromObject,getFragment:v.getFragment,getFragmentOwner:g.getFragmentOwner,getFragmentOwners:g.getFragmentOwners,getPaginationFragment:v.getPaginationFragment,getModuleComponentKey:I.getModuleComponentKey,getModuleOperationKey:I.getModuleOperationKey,getRefetchableFragment:v.getRefetchableFragment,getRequest:v.getRequest,getSingularSelector:s.getSingularSelector,getPluralSelector:s.getPluralSelector,getSelector:s.getSelector,getSelectorsFromObject:s.getSelectorsFromObject,getStorageKey:I.getStorageKey,getVariablesFromSingularFragment:s.getVariablesFromSingularFragment,getVariablesFromPluralFragment:s.getVariablesFromPluralFragment,getVariablesFromFragment:s.getVariablesFromFragment,getVariablesFromObject:s.getVariablesFromObject,graphql:v.graphql,MutationTypes:u.MutationTypes,RangeOperations:u.RangeOperations,DefaultHandlerProvider:c,DefaultMissingFieldHandlers:d,ConnectionHandler:a,ViewerHandler:S,applyOptimisticMutation:k,commitLocalUpdate:O,commitMutation:F,fetchQuery:A,isRelayModernEnvironment:U,requestSubscription:K,ConnectionInterface:o,RelayProfiler:D,RelayConcreteNode:n,RelayError:f,RelayFeatureFlags:p,RelayNetworkLoggerTransaction:y,DEFAULT_HANDLE_KEY:l.DEFAULT_HANDLE_KEY,FRAGMENTS_KEY:I.FRAGMENTS_KEY,FRAGMENT_OWNER_KEY:I.FRAGMENT_OWNER_KEY,ID_KEY:I.ID_KEY,REF_KEY:I.REF_KEY,REFS_KEY:I.REFS_KEY,ROOT_ID:I.ROOT_ID,ROOT_TYPE:I.ROOT_TYPE,TYPENAME_KEY:I.TYPENAME_KEY,createRelayNetworkLogger:P,deepFreeze:N,generateClientID:G,getRelayHandleKey:M,isScalarAndEqual:j,recycleNodesInto:V,stableCopy:H,getFragmentIdentifier:w,getFragmentSpecIdentifier:x,getRequestParametersIdentifier:C,__internal:{createRelayContext:L,getModernOperationVariables:i.getOperationVariables,fetchQuery:T.fetchQuery,fetchQueryDeduped:T.fetchQueryDeduped,getPromiseForRequestInFlight:T.getPromiseForRequestInFlight,getObservableForRequestInFlight:T.getObservableForRequestInFlight}}},function(e,t,r){"use strict";var n=r(2),i=n(r(5)),a=n(r(11)),o=r(13),s=r(0),u=r(28),l=r(20).getFragmentOwners,c=r(30),d=c.areEqualSelectors,f=c.getSelectorsFromObject,p=r(1).ROOT_ID,h=function(){function e(e,t,r,n){var i=this;(0,a.default)(this,"_onChange",function(){i._stale=!0,"function"==typeof i._callback&&i._callback()}),this._callback=n,this._context=e,this._data={},this._fragments=t,this._props=r,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)&&v(this._resolvers[e])},t.resolve=function(){if(this._stale){var e,t=this._data;for(var r in this._resolvers)if(this._resolvers.hasOwnProperty(r)){var n=this._resolvers[r],a=t[r];if(n){var o=n.resolve();(e||o!==a)&&((e=e||(0,i.default)({},t))[r]=o)}else{var s=this._props[r],l=void 0!==s?s:null;!e&&u(l,a)||((e=e||(0,i.default)({},t))[r]=l)}}this._data=e||t,this._stale=!1}return this._data},t.setCallback=function(e){this._callback=e},t.setProps=function(e){var t=f({},this._fragments,e,l(this._fragments,e));for(var r in t)if(t.hasOwnProperty(r)){var n=t[r],i=this._resolvers[r];null==n?(null!=i&&i.dispose(),i=null):Array.isArray(n)?null==i?i=new g(this._context.environment,n,this._onChange):(i instanceof g||s(!1),i.setSelectors(n)):null==i?i=new _(this._context.environment,n,this._onChange):(i instanceof _||s(!1),i.setSelector(n)),this._resolvers[r]=i}this._props=e,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}(),_=function(){function e(e,t,r){var n=this;(0,a.default)(this,"_onChange",function(e){n._data=e.data,n._callback()});var i=e.lookup(t.selector,t.owner);this._callback=r,this._data=i.data,this._environment=e,this._ownedSelector=t,this._subscription=e.subscribe(i,this._onChange)}var t=e.prototype;return t.dispose=function(){this._subscription&&(this._subscription.dispose(),this._subscription=null)},t.resolve=function(){return this._data},t.setSelector=function(e){if(null==this._subscription||!d(e,this._ownedSelector)){this.dispose();var t=this._environment.lookup(e.selector,e.owner);this._data=t.data,this._ownedSelector=e,this._subscription=this._environment.subscribe(t,this._onChange)}},t.setVariables=function(e,t){if(!o(e,this._ownedSelector.selector.variables)){var r={owner:t?{fragment:{dataID:p,node:t.fragment,variables:e},node:t,root:{dataID:p,node:t.operation,variables:e},variables:e}:null,selector:(0,i.default)({},this._ownedSelector.selector,{variables:e})};this.setSelector(r)}},e}(),g=function(){function e(e,t,r){var n=this;(0,a.default)(this,"_onChange",function(e){n._stale=!0,n._callback()}),this._callback=r,this._data=[],this._environment=e,this._resolvers=[],this._stale=!0,this.setSelectors(t)}var t=e.prototype;return t.dispose=function(){this._resolvers.forEach(v)},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.setSelectors=function(e){for(;this._resolvers.length>e.length;){this._resolvers.pop().dispose()}for(var t=0;t<e.length;t++)t<this._resolvers.length?this._resolvers[t].setSelector(e[t]):this._resolvers[t]=new _(this._environment,e[t],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 v(e){e&&e.dispose()}e.exports=h},function(e,t){e.exports=function(e){if(Array.isArray(e)){for(var t=0,r=new Array(e.length);t<e.length;t++)r[t]=e[t];return r}}},function(e,t){e.exports=function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}},function(e,t){e.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}},function(e,t,r){"use strict";var n=r(16).getOperationVariables,i=r(1).ROOT_ID;e.exports={createOperationDescriptor:function(e,t){var r=e.operation,a=n(r,t),o=i;return{fragment:{dataID:o,node:e.fragment,variables:a},node:e,root:{dataID:o,node:r,variables:a},variables:a}}}},function(e,t){e.exports=i},function(e,t,r){"use strict";e.exports={ENABLE_VARIABLE_CONNECTION_KEY:!1}},function(e,t,r){"use strict";(function(t){var n=r(2)(r(5)),i=r(35),a=r(19),o=r(32),s=r(33),u=r(12),l=r(60),c=r(9),d=r(62),f=r(42),p=(r(0),r(23)),h=(r(3),function(){function e(e){var r,i,u,l,c=this;this.configName=e.configName;var p=e.handlerProvider?e.handlerProvider:o,h=e.operationLoader;this._operationLoader=h,this._network=e.network,this._getDataID=null!==(r=e.UNSTABLE_DO_NOT_USE_getDataID)&&void 0!==r?r:f,this._publishQueue=null!==(i=e.publishQueue)&&void 0!==i?i:new d(e.store,p,this._getDataID),this._scheduler=null!==(u=e.scheduler)&&void 0!==u?u:null,this._store=e.store,this.unstable_internal=(0,n.default)({},a,{getOperationTracker:function(){return c._operationTracker}}),this.__setNet=function(e){return c._network=e};var _=void 0!==t?t:"undefined"!=typeof window?window:void 0,g=_&&_.__RELAY_DEVTOOLS_HOOK__;g&&g.registerEnvironment(this),this._missingFieldHandlers=null!==(l=e.missingFieldHandlers)&&void 0!==l?l:s,null!=e.operationTracker&&(this._operationTracker=e.operationTracker)}var r=e.prototype;return r.getStore=function(){return this._store},r.getNetwork=function(){return this._network},r.applyUpdate=function(e){var t=this;return this._publishQueue.applyUpdate(e),this._publishQueue.run(),{dispose:function(){t._publishQueue.revertUpdate(e),t._publishQueue.run()}}},r.revertUpdate=function(e){this._publishQueue.revertUpdate(e),this._publishQueue.run()},r.replaceUpdate=function(e,t){this._publishQueue.revertUpdate(e),this._publishQueue.applyUpdate(t),this._publishQueue.run()},r.applyMutation=function(e){var t=e.operation,r=e.optimisticResponse,n=e.optimisticUpdater;return this.applyUpdate({operation:t,selectorStoreUpdater:n,response:r||null})},r.check=function(e){return null==this._missingFieldHandlers?this._store.check(e):this._checkSelectorAndHandleMissingFields(e,this._missingFieldHandlers)},r.commitPayload=function(e,t){var r=p(e.root,t,null,{getDataID:this._getDataID});this._publishQueue.commitPayload(e,r),this._publishQueue.run()},r.commitUpdate=function(e){this._publishQueue.commitUpdate(e),this._publishQueue.run()},r.lookup=function(e,t){return this._store.lookup(e,t)},r.subscribe=function(e,t){return this._store.subscribe(e,t)},r.retain=function(e){return this._store.retain(e)},r._checkSelectorAndHandleMissingFields=function(e,t){var r=new u,n=i.check(this._store.getSource(),r,e,t,this._operationLoader,this._getDataID);return r.size()>0&&(this._publishQueue.commitSource(r),this._publishQueue.run()),n},r.execute=function(e){var t=this,r=e.operation,n=e.cacheConfig,i=e.updater;return c.create(function(e){var a=t._network.execute(r.node.params,r.variables,n||{}),o=l.execute({operation:r,operationLoader:t._operationLoader,optimisticUpdate:null,publishQueue:t._publishQueue,scheduler:t._scheduler,sink:e,source:a,updater:i,operationTracker:t._operationTracker,getDataID:t._getDataID});return function(){return o.cancel()}})},r.executeMutation=function(e){var t=this,r=e.operation,n=e.optimisticResponse,i=e.optimisticUpdater,a=e.updater,o=e.uploadables;return c.create(function(e){var s,u;(n||i)&&(s={operation:r,selectorStoreUpdater:i,response:null!==(u=n)&&void 0!==u?u:null});var c=t._network.execute(r.node.params,r.variables,{force:!0},o),d=l.execute({operation:r,operationLoader:t._operationLoader,optimisticUpdate:s,publishQueue:t._publishQueue,scheduler:t._scheduler,sink:e,source:c,updater:a,operationTracker:t._operationTracker,getDataID:t._getDataID});return function(){return d.cancel()}})},r.executeWithSource=function(e){var t=this,r=e.operation,n=e.source;return c.create(function(e){var i=l.execute({operation:r,operationLoader:t._operationLoader,optimisticUpdate:null,publishQueue:t._publishQueue,scheduler:t._scheduler,sink:e,source:n,getDataID:t._getDataID});return function(){return i.cancel()}})},r.sendQuery=function(e){var t=e.cacheConfig,r=e.onCompleted,n=e.onError,i=e.onNext,a=e.operation;return this.execute({operation:a,cacheConfig:t}).subscribeLegacy({onNext:i,onError:n,onCompleted:r})},r.sendMutation=function(e){var t=e.onCompleted,r=e.onError,n=e.operation,i=e.optimisticResponse,a=e.optimisticUpdater,o=e.updater,s=e.uploadables;return this.executeMutation({operation:n,optimisticResponse:i,optimisticUpdater:a,updater:o,uploadables:s}).subscribeLegacy({onNext:function(e){t&&t(e.errors)},onError:r,onCompleted:t})},r.toJSON=function(){var e;return"RelayModernEnvironment(".concat(null!==(e=this.configName)&&void 0!==e?e:"",")")},e}());h.prototype["@@RelayModernEnvironment"]=!0,e.exports=h}).call(this,r(56))},function(e,t){var r;r=function(){return this}();try{r=r||new Function("return this")()}catch(e){"object"==typeof window&&(r=window)}e.exports=r},function(e,t,r){"use strict";var n=r(0),i=r(7).generateClientID,a=r(1).getStableStorageKey,o=function(){function e(e,t,r){this._dataID=r,this._mutator=t,this._source=e}var t=e.prototype;return t.copyFieldsFrom=function(e){this._mutator.copyFields(e.getDataID(),this._dataID)},t.getDataID=function(){return this._dataID},t.getType=function(){var e=this._mutator.getType(this._dataID);return null==e&&n(!1),e},t.getValue=function(e,t){var r=a(e,t);return this._mutator.getValue(this._dataID,r)},t.setValue=function(e,t,r){s(e)||n(!1);var i=a(t,r);return this._mutator.setValue(this._dataID,i,e),this},t.getLinkedRecord=function(e,t){var r=a(e,t),n=this._mutator.getLinkedRecordID(this._dataID,r);return null!=n?this._source.get(n):n},t.setLinkedRecord=function(t,r,i){t instanceof e||n(!1);var o=a(r,i),s=t.getDataID();return this._mutator.setLinkedRecordID(this._dataID,o,s),this},t.getOrCreateLinkedRecord=function(e,t,r){var n=this.getLinkedRecord(e,r);if(!n){var o,s=a(e,r),u=i(this.getDataID(),s);n=null!==(o=this._source.get(u))&&void 0!==o?o:this._source.create(u,t),this.setLinkedRecord(n,e,r)}return n},t.getLinkedRecords=function(e,t){var r=this,n=a(e,t),i=this._mutator.getLinkedRecordIDs(this._dataID,n);return null==i?i:i.map(function(e){return null!=e?r._source.get(e):e})},t.setLinkedRecords=function(e,t,r){Array.isArray(e)||n(!1);var i=a(t,r),o=e.map(function(e){return e&&e.getDataID()});return this._mutator.setLinkedRecordIDs(this._dataID,i,o),this},e}();function s(e){return null==e||"object"!=typeof e||Array.isArray(e)&&e.every(s)}e.exports=o},function(e,t){e.exports=a},function(e,t){e.exports=o},function(e,t,r){"use strict";var n=r(2)(r(10)),i=r(34),a=r(12),o=r(6),s=r(9),u=r(39),l=r(0),c=r(8),d=(r(3),r(7).generateClientID),f=r(1),p=f.ROOT_TYPE,h=f.TYPENAME_KEY,_=f.getStorageKey;var g=function(){function e(e){var t,r=this,n=e.operation,i=e.operationLoader,a=e.optimisticUpdate,o=e.publishQueue,s=e.scheduler,u=e.sink,l=e.source,c=e.updater,d=e.operationTracker,f=e.getDataID;this._incrementalResults=new Map,this._nextSubscriptionId=0,this._operation=n,this._operationLoader=i,this._optimisticUpdate=null!==(t=a)&&void 0!==t?t:null,this._publishQueue=o,this._scheduler=s,this._sink=u,this._source=new Map,this._state="started",this._updater=c,this._subscriptions=new Map,this._operationTracker=d,this._getDataID=f;var p=this._nextSubscriptionId++;if(l.subscribe({complete:function(){return r._complete(p)},error:function(e){return r._error(e)},next:function(e){try{r._next(p,e)}catch(e){u.error(e)}},start:function(e){return r._start(p,e)}}),null!=a){o.applyUpdate(a);var h=this._publishQueue.run();this._updateOperationTracker(h)}}var t=e.prototype;return t.cancel=function(){if("completed"!==this._state){this._state="completed",0!==this._subscriptions.size&&(this._subscriptions.forEach(function(e){return e.unsubscribe()}),this._subscriptions.clear());var e=this._optimisticUpdate;null!==e&&(this._optimisticUpdate=null,this._publishQueue.revertUpdate(e),this._publishQueue.run()),this._incrementalResults.clear(),this._completeOperationTracker()}},t._schedule=function(e){var t=this,r=this._scheduler;if(null!=r){var n=this._nextSubscriptionId++;s.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)},t._next=function(e,t){var r=this;this._schedule(function(){r._handleNext(t)})},t._handleNext=function(e){var t;if("completed"!==this._state){if(null==e.data){var r=e.errors,n=i.create("RelayNetwork","No data returned for operation `%s`, got error(s):\n%s\n\nSee the error `source` property for more information.",this._operation.node.params.name,r?r.map(function(e){return e.message}).join("\n"):"(No errors)");throw n.source={errors:r,operation:this._operation.node,variables:this._operation.variables},n}var a=e,o=!0===(null===(t=e.extensions)||void 0===t?void 0:t.isOptimistic);if(o&&"started"!==this._state&&l(!1),this._state="loading",o)this._processOptimisticResponse(a);else{var s=e.path,u=e.label;null!=s||null!=u?"string"==typeof u&&Array.isArray(s)?this._processIncrementalResponse({path:s,label:u,response:a}):l(!1):this._processResponse(a)}this._sink.next(e)}},t._processOptimisticResponse=function(e){null!==this._optimisticUpdate&&l(!1);var t=v(e,this._operation.root,p,[],this._getDataID),r=t.incrementalPlaceholders,n=t.moduleImportPayloads;(null!=r&&0!==r.length||null!=n&&0!==n.length)&&l(!1),this._optimisticUpdate={source:t.source,fieldPayloads:t.fieldPayloads},this._publishQueue.applyUpdate(this._optimisticUpdate);var i=this._publishQueue.run();this._updateOperationTracker(i)},t._processResponse=function(e){var t;null!==this._optimisticUpdate&&(this._publishQueue.revertUpdate(this._optimisticUpdate),this._optimisticUpdate=null);var r=v(e,this._operation.root,p,[],this._getDataID);this._incrementalResults.clear(),this._source.clear(),this._processPayloadFollowups(r),this._publishQueue.commitPayload(this._operation,r,this._updater);var n=this._publishQueue.run();this._updateOperationTracker(n),r.incrementalPlaceholders&&0!==r.incrementalPlaceholders.length&&(null===(t=e.extensions)||void 0===t||t.is_final)},t._processPayloadFollowups=function(e){var t=this,r=e.incrementalPlaceholders,n=e.moduleImportPayloads;if(n&&0!==n.length){var i=this._operationLoader;i||l(!1),n.forEach(function(e){t._processModuleImportPayload(e,i)})}r&&0!==r.length&&r.forEach(function(r){t._processIncrementalPlaceholder(e,r)})},t._processModuleImportPayload=function(e,t){var r=this,n=t.get(e.operationReference);if(null!=n)this._schedule(function(){r._handleModuleImportPayload(e,n)});else{var i=this._nextSubscriptionId++;s.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)})}).subscribe({complete:function(){return r._complete(i)},error:function(e){return r._error(e)},start:function(e){return r._start(i,e)}})}},t._handleModuleImportPayload=function(e,t){var r={dataID:e.dataID,variables:e.variables,node:t},n=v({data:e.data},r,e.typeName,e.path,this._getDataID);this._processPayloadFollowups(n),this._publishQueue.commitRelayPayload(n);var i=this._publishQueue.run();this._updateOperationTracker(i)},t._processIncrementalPlaceholder=function(e,t){var r,n=this,i=t.label,a=t.path.map(String).join("."),s=this._incrementalResults.get(i);null==s&&(s=new Map,this._incrementalResults.set(i,s));var u,f=s.get(a),p=null!=f&&"response"===f.kind?f.responses:null;s.set(a,{kind:"placeholder",placeholder:t}),u="stream"===t.kind?t.parentID:t.selector.dataID;var h,_,g=e.source.get(u),v=(null!==(r=e.fieldPayloads)&&void 0!==r?r:[]).filter(function(e){var t=d(e.dataID,e.fieldKey);return e.dataID===u||t===u});null==g&&l(!1);var m=this._source.get(u);if(null!=m){h=o.update(m.record,g);var b=new Map,y=function(e){var t,r,n=(t=e,null!==(r=JSON.stringify(c(t)))&&void 0!==r?r:"");b.set(n,e)};m.fieldPayloads.forEach(y),v.forEach(y),_=Array.from(b.values())}else h=g,_=v;this._source.set(u,{record:h,fieldPayloads:_}),null!=p&&p.forEach(function(e){n._schedule(function(){n._processIncrementalResponse(e)})})},t._processIncrementalResponse=function(e){var t=e.label,r=e.path,n=e.response,i=this._incrementalResults.get(t);if(null==i&&(i=new Map,this._incrementalResults.set(t,i)),-1!==t.indexOf("$defer$")){var a=r.map(String).join("."),o=i.get(a);if(null==o)return o={kind:"response",responses:[e]},void i.set(a,o);if("response"===o.kind)return void o.responses.push(e);var s=o.placeholder;"defer"!==s.kind&&l(!1),this._processDeferResponse(t,r,s,n)}else{var u=r.slice(0,-2).map(String).join("."),c=i.get(u);if(null==c)return c={kind:"response",responses:[e]},void i.set(u,c);if("response"===c.kind)return void c.responses.push(e);var d=c.placeholder;"stream"!==d.kind&&l(!1),this._processStreamResponse(t,r,d,n)}},t._processDeferResponse=function(e,t,r,n){var i=r.selector.dataID,o=v(n,r.selector,r.typeName,r.path,this._getDataID);this._processPayloadFollowups(o),this._publishQueue.commitRelayPayload(o);var s=this._source.get(i);null==s&&l(!1);var u=s.fieldPayloads;if(0!==u.length){var c={errors:null,fieldPayloads:u,incrementalPlaceholders:null,moduleImportPayloads:null,source:new a};this._publishQueue.commitRelayPayload(c)}var d=this._publishQueue.run();this._updateOperationTracker(d)},t._processStreamResponse=function(e,t,r,i){var s,u,c,f=r.parentID,p=r.node,g=r.variables,m=i.data;"object"!=typeof m&&l(!1);var b=p.selections[0];(null==b||"LinkedField"!==b.kind||!0!==b.plural)&&l(!1);var y=null!==(s=b.alias)&&void 0!==s?s:b.name,E=_(b,g),D=this._source.get(f);null==D&&l(!1);var R=D.record,I=D.fieldPayloads,S=o.getLinkedRecordIDs(R,E);null==S&&l(!1);var k=t[t.length-1],O=parseInt(k,10);O===k&&O>=0||l(!1);var F=null!==(u=b.concreteType)&&void 0!==u?u:m[h];"string"!=typeof F&&l(!1);var L=(null!==(c=this._getDataID(m,F))&&void 0!==c?c:S&&S[O])||d(f,E,O);"string"!=typeof L&&l(!1);var P={dataID:L,node:b,variables:g},N=o.clone(R),T=(0,n.default)(S);T[O]=L,o.setLinkedRecordIDs(N,E,T),this._source.set(f,{record:N,fieldPayloads:I});var A=v(i,P,F,[].concat((0,n.default)(r.path),[y,String(O)]),this._getDataID);if(this._processPayloadFollowups(A),this._publishQueue.commitPayload(this._operation,A,function(e){var t=e.get(f);if(null!=t){var r=t.getLinkedRecords(E);if(null!=r&&r.length===S.length&&!r.some(function(e,t){return S[t]!==(e&&e.getDataID())})){var i=(0,n.default)(r);i[O]=e.get(L),t.setLinkedRecords(i,E)}}}),0!==I.length){var w={errors:null,fieldPayloads:I,incrementalPlaceholders:null,moduleImportPayloads:null,source:new a};this._publishQueue.commitRelayPayload(w)}var x=this._publishQueue.run();this._updateOperationTracker(x)},t._updateOperationTracker=function(e){null!=this._operationTracker&&null!=e&&e.length>0&&this._operationTracker.update(this._operation,new Set(e))},t._completeOperationTracker=function(){null!=this._operationTracker&&this._operationTracker.complete(this._operation)},e}();function v(e,t,r,n,i){var s=e.data,l=e.errors,c=new a,d=o.create(t.dataID,r);c.set(t.dataID,d);var f=u.normalize(c,t,s,{handleStrippedNulls:!0,path:n,getDataID:i});return{errors:l,incrementalPlaceholders:f.incrementalPlaceholders,fieldPayloads:f.fieldPayloads,moduleImportPayloads:f.moduleImportPayloads,source:c}}e.exports={execute:function(e){return new g(e)}}},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(63),i=r(12),a=r(41),o=r(36),s=r(37),u=r(38),l=r(0),c=r(23),d=function(){function e(e,t,r){this._backup=new i,this._handlerProvider=t||null,this._pendingBackupRebase=!1,this._pendingUpdaters=new Set,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))&&l(!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){var n=t.fieldPayloads,i=t.source;this._pendingBackupRebase=!0,this._pendingData.add({kind:"payload",payload:{fieldPayloads:n,operation:e,source:i,updater:r}})},t.commitRelayPayload=function(e){var t=e.fieldPayloads,r=e.source;this._pendingBackupRebase=!0,this._pendingData.add({kind:"payload",payload:{fieldPayloads:t,operation:null,source:r,updater:null}})},t.commitUpdate=function(e){this._pendingBackupRebase=!0,this._pendingUpdaters.add(e)},t.commitSource=function(e){this._pendingBackupRebase=!0,this._pendingData.add({kind:"source",source:e})},t.run=function(){return this._pendingBackupRebase&&this._backup.size()&&(this._store.publish(this._backup),this._backup=new i),this._commitData(),this._commitUpdaters(),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()},t._getSourceFromPayload=function(e){var t=this,r=e.fieldPayloads,n=e.operation,i=e.source,a=e.updater,c=new o(this._store.getSource(),i),d=new s(c,this._getDataID);if(r&&r.length&&r.forEach(function(e){var r=t._handlerProvider&&t._handlerProvider(e.handle);r||l(!1),r.update(d,e)}),a){var p=null==n?void 0:n.fragment;null==p&&l(!1),a(new u(d,p),f(i,p,n))}return i},t._commitData=function(){var e=this;this._pendingData.size&&(this._pendingData.forEach(function(t){var r;r="payload"===t.kind?e._getSourceFromPayload(t.payload):t.source,e._store.publish(r)}),this._pendingData.clear())},t._commitUpdaters=function(){var e=this;if(this._pendingUpdaters.size){var t=new i;this._pendingUpdaters.forEach(function(r){var i=new o(e._store.getSource(),t),a=new s(i,e._getDataID);n.applyWithGuard(r,null,[a],null,"RelayPublishQueue:commitUpdaters")}),this._store.publish(t),this._pendingUpdaters.clear()}},t._applyUpdates=function(){var e=this;if(this._pendingOptimisticUpdates.size||this._pendingBackupRebase&&this._appliedOptimisticUpdates.size){var t=new i,r=new o(this._store.getSource(),t,this._backup),a=new s(r,this._getDataID,this._handlerProvider);this._pendingBackupRebase&&this._appliedOptimisticUpdates.size&&this._appliedOptimisticUpdates.forEach(function(t){if(t.operation){var r,i=t.selectorStoreUpdater,o=t.operation,s=t.response,u=a.commitPayload(o,s);if(s)r=f(c(o.root,s,null,{getDataID:e._getDataID}).source,o.fragment,o);i&&n.applyWithGuard(i,null,[u,r],null,"RelayPublishQueue:applyUpdates")}else if(t.storeUpdater){var l=t.storeUpdater;n.applyWithGuard(l,null,[a],null,"RelayPublishQueue:applyUpdates")}else{var d=t.source,p=t.fieldPayloads;a.publishSource(d,p)}}),this._pendingOptimisticUpdates.size&&(this._pendingOptimisticUpdates.forEach(function(t){if(t.operation){var r,i=t.selectorStoreUpdater,o=t.operation,s=t.response,u=a.commitPayload(o,s);if(s)r=f(c(o.root,s,null,{getDataID:e._getDataID}).source,o.fragment,o);i&&n.applyWithGuard(i,null,[u,r],null,"RelayPublishQueue:applyUpdates")}else if(t.storeUpdater){var l=t.storeUpdater;n.applyWithGuard(l,null,[a],null,"RelayPublishQueue:applyUpdates")}else{var d=t.source,p=t.fieldPayloads;a.publishSource(d,p)}e._appliedOptimisticUpdates.add(t)}),this._pendingOptimisticUpdates.clear()),this._store.publish(t)}},e}();function f(e,t,r){return a.read(e,t,r).data}e.exports=d},function(e,t){e.exports=s},function(e,t,r){"use strict";var n=r(2)(r(5)),i=r(35),a=r(6),o=r(24),s=r(41),u=r(65),l=(r(22),r(42)),c=r(66),d=r(43),f=r(67),p=r(1).UNPUBLISH_RECORD_SENTINEL,h=function(){function e(e){var t,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:f,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=arguments.length>3?arguments[3]:void 0;this._gcScheduler=r,this._hasScheduledGC=!1,this._index=0,this._operationLoader=n,this._recordSource=e,this._roots=new Map,this._subscriptions=new Set,this._updatedRecordIDs={},this._gcHoldCounter=0,this._shouldScheduleGC=!1,this._getDataID=null!==(t=i)&&void 0!==t?t:l}var t=e.prototype;return t.getSource=function(){return this._recordSource},t.check=function(e){return i.check(this._recordSource,this._recordSource,e,[],this._operationLoader,this._getDataID)},t.retain=function(e){var t=this,r=this._index++;return this._roots.set(r,e),{dispose:function(){t._roots.delete(r),t._scheduleGC()}}},t.lookup=function(e,t){return s.read(this._recordSource,e,t)},t.notify=function(){var e=this,t=[];return this._subscriptions.forEach(function(r){var n=e._updateSubscription(r);null!=n&&t.push(n)}),this._updatedRecordIDs={},t},t.publish=function(e){!function(e,t,r){for(var n=t.getRecordIDs(),i=0;i<n.length;i++){var o=n[i],s=t.get(o),u=e.get(o);if(s===p)e.remove(o),r[o]=!0;else if(s&&u){var l=a.update(u,s);l!==u&&(r[o]=!0,e.set(o,l))}else null===s?(e.delete(o),null!==u&&(r[o]=!0)):s&&(e.set(o,s),r[o]=!0)}}(this._recordSource,e,this._updatedRecordIDs)},t.subscribe=function(e,t){var r=this,n={callback:t,snapshot:e};return this._subscriptions.add(n),{dispose:function(){r._subscriptions.delete(n)}}},t.holdGC=function(){var e=this;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._updateSubscription=function(e){var t=e.callback,r=e.snapshot;if(c(r,this._updatedRecordIDs)){var i=s.read(this._recordSource,r,r.owner),a=d(r.data,i.data);return i=(0,n.default)({},i,{data:a}),e.snapshot=i,i.data!==r.data?(t(i),r.owner):void 0}},t._scheduleGC=function(){var e=this;this._gcHoldCounter>0?this._shouldScheduleGC=!0:this._hasScheduledGC||(this._hasScheduledGC=!0,this._gcScheduler(function(){e.__gc(),e._hasScheduledGC=!1}))},t.__gc=function(){var e=this,t=new Set;if(this._roots.forEach(function(r){u.mark(e._recordSource,r,t,e._operationLoader)}),t.size)for(var r=this._recordSource.getRecordIDs(),n=0;n<r.length;n++){var i=r[n];t.has(i)||this._recordSource.remove(i)}else this._recordSource.clear()},e}();o.instrumentMethods(h.prototype,{lookup:"RelayModernStore.prototype.lookup",notify:"RelayModernStore.prototype.notify",publish:"RelayModernStore.prototype.publish",__gc:"RelayModernStore.prototype.__gc"}),e.exports=h},function(e,t,r){"use strict";var n=r(4),i=r(6),a=r(1),o=r(40),s=r(0),u=n.CONDITION,l=n.CLIENT_EXTENSION,c=n.DEFER,d=n.FRAGMENT_SPREAD,f=n.INLINE_FRAGMENT,p=n.LINKED_FIELD,h=n.MODULE_IMPORT,_=n.LINKED_HANDLE,g=n.SCALAR_FIELD,v=n.SCALAR_HANDLE,m=n.STREAM,b=a.getStorageKey,y=a.getModuleOperationKey;var E=function(){function e(e,t,r,n){var i;this._operationLoader=null!==(i=n)&&void 0!==i?i:null,this._references=r,this._recordSource=e,this._variables=t}var t=e.prototype;return t.mark=function(e,t){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)||s(!1),this._variables[e]},t._traverseSelections=function(e,t){var r=this;e.forEach(function(n){switch(n.kind){case p:n.plural?r._traversePluralLink(n,t):r._traverseLink(n,t);break;case u:r._getVariableValue(n.condition)===n.passingValue&&r._traverseSelections(n.selections,t);break;case f:var a=i.getType(t);null!=a&&a===n.type&&r._traverseSelections(n.selections,t);break;case d:s(!1);case _:var b=o(n,e,r._variables);b.plural?r._traversePluralLink(b,t):r._traverseLink(b,t);break;case c:case m:r._traverseSelections(n.selections,t);break;case g:case v:break;case h:r._traverseModuleImport(n,t);break;case l:r._traverseSelections(n.selections,t);break;default:s(!1)}})},t._traverseModuleImport=function(e,t){var r=this._operationLoader;null===r&&s(!1);var n=y(e.documentName),a=i.getValue(t,n);if(null!=a){var o=r.get(a);null!=o&&this._traverseSelections(o.selections,t)}},t._traverseLink=function(e,t){var r=b(e,this._variables),n=i.getLinkedRecordID(t,r);null!=n&&this._traverse(e,n)},t._traversePluralLink=function(e,t){var r=this,n=b(e,this._variables),a=i.getLinkedRecordIDs(t,n);null!=a&&a.forEach(function(t){null!=t&&r._traverse(e,t)})},e}();e.exports={mark:function(e,t,r,n){var i=t.dataID,a=t.node,o=t.variables;new E(e,o,r,n).mark(a,i)}}},function(e,t,r){"use strict";e.exports=function(e,t){for(var r=Object.keys(e.seenRecords),n=0;n<r.length;n++)if(t.hasOwnProperty(r[n]))return!0;return!1}},function(e,t){e.exports=u},function(e,t,r){"use strict";r(9);var n=r(0),i=r(44),a=i.convertFetch,o=i.convertSubscribe;e.exports={create:function(e,t){var r=a(e),i=t?o(t):void 0;return{execute:function(e,t,a,o){if("subscription"===e.operationKind)return i||n(!1),o&&n(!1),i(e,t,a);var s=a.poll;return null!=s?(o&&n(!1),r(e,t,{force:!0}).poll(s)):r(e,t,a,o)}}}}},function(e,t,r){"use strict";var n=r(2),i=n(r(11)),a=n(r(10)),o=r(0),s=1,u=function(){function e(e){var t=e.request,r=e.variables,n=e.cacheConfig,a=e.uploadables;(0,i.default)(this,"_hasCommittedLogs",!1),(0,i.default)(this,"_logs",[]),this._cacheConfig=n,this._id=s++,this._request=t,this._uploadables=a,this._variables=r}var t=e.prototype;return t.addLog=function(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];this._logs.push({label:e,values:r})},t.clearLogs=function(){this._logs=[]},t.printLogs=function(e,t,r){var n=this.getIdentifier();console.groupCollapsed&&console.groupCollapsed("%c".concat(n),e?"color:red":""),console.timeEnd&&console.timeEnd(n),this.getLogsToPrint(e,t,r).forEach(function(e){var t,r=e.label,n=e.values;(t=console).log.apply(t,["".concat(r,":")].concat((0,a.default)(n)))}),console.groupEnd&&console.groupEnd()},t.commitLogs=function(e,t,r){!1!==this._hasCommittedLogs&&o(!1),this.printLogs(e,t,r),this.markCommitted()},t.markCommitted=function(){this._hasCommittedLogs=!0},t.flushLogs=function(e,t,r){!1!==this._hasCommittedLogs&&o(!1),this.printLogs(e,t,r),this.clearLogs()},t.getCacheConfig=function(){return this._cacheConfig},t.getIdentifier=function(){return"[".concat(this._id,"] Relay Modern: ").concat(this._request.name)},t.getLogsToPrint=function(e,t,r){return this._logs},t.getRequest=function(){return this._request},t.getUploadables=function(){return this._uploadables},t.getVariables=function(){return this._variables},e}();e.exports=u},function(e,t,r){"use strict";var n=r(2)(r(5)),i=r(0),a=r(8),o=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=s(e,t);this._responses.forEach(function(e,t){var n,i;n=e.fetchTime,i=r._ttl,n+i>=Date.now()||r._responses.delete(t)});var a=this._responses.get(i);return null!=a?(0,n.default)({},a.payload,{extensions:(0,n.default)({},a.payload.extensions,{cacheTimestamp:a.fetchTime})}):null},t.set=function(e,t,r){var n=Date.now(),i=s(e,t);if(this._responses.delete(i),this._responses.set(i,{fetchTime:n,payload:r}),this._responses.size>this._size){var a=this._responses.keys().next();a.done||this._responses.delete(a.value)}},e}();function s(e,t){return JSON.stringify(a({queryID:e,variables:t}))}e.exports=o},function(e,t,r){"use strict";var n=r(14),i=r(0),a=r(25);e.exports=function(e,t){a(e)||i(!1);var r=e.unstable_internal,o=r.createOperationDescriptor,s=(0,r.getRequest)(t.mutation);if("mutation"!==s.params.operationKind)throw new Error("commitRelayModernMutation: Expected mutation operation");var u=t.optimisticUpdater,l=t.configs,c=t.optimisticResponse,d=o(s,t.variables);return l&&(u=n.convert(l,s,u).optimisticUpdater),e.applyUpdate({operation:d,selectorStoreUpdater:u,response:c})}},function(e,t,r){"use strict";e.exports=function(e,t){e.commitUpdate(t)}},function(e,t,r){"use strict";var n=r(2)(r(10)),i=r(14),a=r(0),o=r(25);r(74),r(3);e.exports=function(e,t){o(e)||a(!1);var r=e.unstable_internal,s=r.createOperationDescriptor,u=(0,r.getRequest)(t.mutation);if("mutation"!==u.params.operationKind)throw new Error("commitRelayModernMutation: Expected mutation operation");if("Request"!==u.kind)throw new Error("commitRelayModernMutation: Expected mutation to be of type request");var l=t.optimisticResponse,c=t.optimisticUpdater,d=t.updater,f=t.configs,p=t.onError,h=t.variables,_=t.uploadables,g=s(u,h);if("function"==typeof l&&(l=l()),f){var v=i.convert(f,u,c,d);c=v.optimisticUpdater,d=v.updater}var m=[];return{dispose:e.executeMutation({operation:g,optimisticResponse:l,optimisticUpdater:c,updater:d,uploadables:_}).subscribe({next:function(e){e.errors&&m.push.apply(m,(0,n.default)(e.errors))},complete:function(){var r=t.onCompleted;r&&r(e.lookup(g.fragment,g).data,0!==m.length?m:null)},error:p}).unsubscribe}}},function(e,t,r){"use strict";r(2)(r(5)),r(3);e.exports=function(){}},function(e,t,r){"use strict";var n,i,a=r(0);e.exports=function(e){return n||(n=e.createContext(null),i=e),e!==i&&a(!1),n}},function(e,t,r){"use strict";r(4);var n=r(44),i=n.convertFetch,a=n.convertSubscribe;function o(e,t,r){return function(n,i,a,o){var s;function u(e,t,o){r&&s.addLog("GraphiQL",r(n,i)),s.addLog("Cache Config",a),s.addLog("Variables",JSON.stringify(i,null,2)),o&&s.addLog("Status",o),e&&s.addLog("Error",e),t&&s.addLog("Response",t)}function l(e,t,r){u(e,t,r),s.flushLogs(e,t,r)}function c(e,t,r){u(e,t,r),s.commitLogs(e,t,r)}var d=e(n,i,a,o),f="subscription"===n.operationKind;return d.do({start:function(){s=new t({request:n,variables:i,cacheConfig:a,uploadables:o}),console.time&&console.time(s.getIdentifier()),f&&l(null,null,"subscription is sent.")},next:function(e){l(null,e),console.time&&console.time(s.getIdentifier())},error:function(e){return c(e,null,null)},complete:function(){f?c(null,null,"subscription was closed."):s.markCommitted()},unsubscribe:function(){return c(null,null,f?"subscription is unsubscribed.":"execution is unsubscribed.")}})}}e.exports=function(e){return{wrapFetch:function(t,r){return function(n,a,s,u){return o(i(t),e,r)(n,a,s,u)}},wrapSubscribe:function(t,r){return function(n,i,s){return o(a(t),e,r)(n,i,s)}}}}},function(e,t,r){"use strict";var n=r(9),i=r(78),a=r(45),o=r(0),s=new Map;function u(e,t,r){return l(e,t.node.params,t.variables,function(){return e.execute({operation:t,cacheConfig:null==r?void 0:r.networkCacheConfig})})}function l(e,t,r,s){return n.create(function(n){var u=c(e),l=a(t,r),f=u.get(l);f||s().finally(function(){return u.delete(l)}).subscribe({start:function(e){f={subject:new i,subscription:e},u.set(l,f)},next:function(e){d(u,l).subject.next(e)},error:function(e){d(u,l).subject.error(e)},complete:function(){d(u,l).subject.complete()}}),null==f&&o(!1);var p=f.subject.subscribe(n);return function(){p.unsubscribe();var e=u.get(l);if(e){var t=e.subscription;null!=t&&0===e.subject.getObserverCount()&&(t.unsubscribe(),u.delete(l))}}})}function c(e){var t=s.get(e);if(null!=t)return t;var r=new Map;return s.set(e,r),r}function d(e,t){var r=e.get(t);return null==r&&o(!1),r}e.exports={fetchQuery:u,getPromiseForRequestInFlight:function(e,t){var r=c(e),n=a(t.node.params,t.variables);return r.get(n)?new Promise(function(r,n){var i=!1;u(e,t).subscribe({complete:r,error:n,next:function(e){i&&r(e)}}),i=!0}):null},getObservableForRequestInFlight:function(e,t){var r=c(e),n=a(t.node.params,t.variables);return r.get(n)?u(e,t):null},fetchQueryDeduped:l}},function(e,t,r){"use strict";var n=r(2)(r(11)),i=r(9),a=r(0),o=function(){function e(){var e=this;(0,n.default)(this,"_complete",!1),(0,n.default)(this,"_events",[]),(0,n.default)(this,"_sinks",new Set),this._observable=i.create(function(t){e._sinks.add(t);for(var r=e._events,n=0;n<r.length&&!t.closed;n++){var i=r[n];switch(i.kind){case"complete":t.complete();break;case"error":t.error(i.error);break;case"next":t.next(i.data);break;default:i.kind,a(!1)}}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._observable.subscribe(e)},t.getObserverCount=function(){return this._sinks.size},e}();e.exports=o},function(e,t,r){"use strict";var n=r(0);e.exports=function(e,t,r,i){e.unstable_internal||n(!1);var a=e.unstable_internal,o=a.createOperationDescriptor,s=(0,a.getRequest)(t);if("query"!==s.params.operationKind)throw new Error("fetchRelayModernQuery: Expected query operation");var u=o(s,r);return e.execute({operation:u,cacheConfig:i}).map(function(){return e.lookup(u.fragment,u).data}).toPromise()}},function(e,t,r){"use strict";var n=r(46),i=r(29),a=r(8);e.exports=function(e,t){return JSON.stringify(a(i(e,function(e,r){var i=t[r];return n(e,i)})))}},function(e,t,r){"use strict";var n=r(14);r(3);e.exports=function(e,t){var r=e.unstable_internal,i=r.createOperationDescriptor,a=(0,r.getRequest)(t.subscription);if("subscription"!==a.params.operationKind)throw new Error("requestRelaySubscription: Must use Subscription operation");var o=t.configs,s=t.onCompleted,u=t.onError,l=t.onNext,c=i(a,t.variables),d=(o?n.convert(o,a,null,t.updater):t).updater;return e.execute({operation:c,updater:d,cacheConfig:{force:!0}}).map(function(){return e.lookup(c.fragment,c).data}).subscribeLegacy({onNext:l,onError:u,onCompleted:s})}}])});
@@ -1,37 +0,0 @@
1
- /**
2
- * Copyright (c) Facebook, Inc. and its affiliates.
3
- *
4
- * This source code is licensed under the MIT license found in the
5
- * LICENSE file in the root directory of this source tree.
6
- *
7
- *
8
- * @format
9
- */
10
- 'use strict';
11
-
12
- function normalizePayload(operation, payload) {
13
- var data = payload.data,
14
- errors = payload.errors;
15
-
16
- if (data != null) {
17
- return require("./normalizeRelayPayload")(operation.root, data, errors, {
18
- handleStrippedNulls: true
19
- });
20
- }
21
-
22
- var node = operation.node;
23
-
24
- var error = require("./RelayError").create('RelayNetwork', 'No data returned for operation `%s`, got error(s):\n%s\n\nSee the error ' + '`source` property for more information.', node.params ? node.params.name : node.name, errors ? errors.map(function (_ref) {
25
- var message = _ref.message;
26
- return message;
27
- }).join('\n') : '(No errors)');
28
-
29
- error.source = {
30
- errors: errors,
31
- operation: operation.node,
32
- variables: operation.variables
33
- };
34
- throw error;
35
- }
36
-
37
- module.exports = normalizePayload;
@@ -1,27 +0,0 @@
1
- /**
2
- * Copyright (c) Facebook, Inc. and its affiliates.
3
- *
4
- * This source code is licensed under the MIT license found in the
5
- * LICENSE file in the root directory of this source tree.
6
- *
7
- *
8
- * @format
9
- */
10
- 'use strict';
11
-
12
- /**
13
- * A helper to create a deep clone of a value, plain Object, or array of such.
14
- *
15
- * Does not support RegExp, Date, other classes, or self-referential values.
16
- */
17
- function simpleClone(value) {
18
- if (Array.isArray(value)) {
19
- return value.map(simpleClone);
20
- } else if (value && typeof value === 'object') {
21
- return require("fbjs/lib/mapObject")(value, simpleClone);
22
- } else {
23
- return value;
24
- }
25
- }
26
-
27
- module.exports = simpleClone;