Files
30-seconds-of-code/node_modules/relay-runtime/relay-runtime.min.js
2019-08-20 15:52:05 +02:00

9 lines
72 KiB
JavaScript

/**
* Relay v2.0.0
*
* Copyright (c) 2013-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
!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(36)(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",DEFER:"Defer",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",STREAM:"Stream",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(52))(e,n,i,o)},createOperationDescriptor:r(53).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),v=_&&_.getLinkedRecord(f);if(_){var g=n.getLinkedRecord(t.handleKey),b=g&&g.getLinkedRecord(f);if(g){var y=g,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&&v)if(null==D.after&&null==D.before)b.copyFieldsFrom(v);else if(null!=D.before||null==D.after&&D.last){b.setValue(!!v.getValue(d),d);var I=v.getValue(p);"string"==typeof I&&b.setValue(I,p)}else if(null!=D.after||null==D.before&&D.first){b.setValue(!!v.getValue(l),l);var N=v.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),v&&b.copyFieldsFrom(v),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(55)(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(37).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 v=r(9).getConnection(o,_.key,_.filters);if(v){var g=r(9).buildConnectionEdge(e,v,c);if(g)switch(_.rangeBehavior){case"append":r(9).insertEdgeAfter(v,g);break;case"ignore":break;case"prepend":r(9).insertEdgeBefore(v,g)}}}}}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(51))(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(34).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){var n=r(48),i=r(49),o=r(50);e.exports=function(e){return n(e)||i(e)||o()}},function(e,t,r){"use strict";var n={"*":[]},i={"*":[]},o={},a={stop:r(29)},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(29),t.detachHandler=r(29),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(30)(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(30)(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(30)(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,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)||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=n[r(0).FRAGMENTS_KEY];null==o&&(o=n[r(0).FRAGMENTS_KEY]={}),"object"==typeof o&&o||r(1)(!1),null==n[r(0).ID_KEY]&&(n[r(0).ID_KEY]=r(2).getDataID(t)),o[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(35)}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";var n=r(5)(r(27));function i(e,t,r){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{handleStrippedNulls:!1},i=t.dataID,a=t.node,s=t.variables;return new o(e,s,n).normalizeResponse(a,i,r)}var o=function(){function e(e,t,r){this._handleFieldPayloads=[],this._handleStrippedNulls=r.handleStrippedNulls,this._incrementalPayloads=[],this._matchFieldPayloads=[],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,n){var i=this._recordSource.get(t);return i||r(1)(!1),this._traverseSelections(e,i,n),{incrementalPayloads:this._incrementalPayloads,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).DEFER?i._normalizeDefer(o,t,n):o.kind===r(3).STREAM?i._normalizeStream(o,t,n):(o.kind===r(3).FRAGMENT||(o.kind,r(3).FRAGMENT_SPREAD),r(1)(!1))})},t._normalizeDefer=function(e,t,i){!1===(null===e.if||this._getVariableValue(e.if))?this._traverseSelections(e,t,i):this._incrementalPayloads.push({kind:"defer",label:e.label,path:(0,n.default)(this._path),selector:{dataID:r(2).getDataID(t),node:e,variables:this._variables}})},t._normalizeStream=function(e,t,i){this._traverseSelections(e,t,i),!0===(null===e.if||this._getVariableValue(e.if))&&this._incrementalPayloads.push({kind:"stream",label:e.label,path:(0,n.default)(this._path),selector:{dataID:r(2).getDataID(t),node:e,variables:this._variables}})},t._normalizeMatchField=function(e,t,i,o){"object"==typeof o&&o||r(1)(!1);var a=t.alias||t.name,s=r(0).getStorageKey(t,this._variables),u=o[a];if(null!=u){"object"==typeof u&&u||r(1)(!1);var c=this._getRecordType(u);if(null!=t.matchesByType[c]){var l=u.id||r(2).getLinkedRecordID(i,s)||r(7)(r(2).getDataID(i),s);"string"!=typeof l&&r(1)(!1),r(2).setLinkedRecordID(i,s,l);var d=this._recordSource.get(l);d||(d=r(2).create(l,c),this._recordSource.set(l,d));var f=u[r(0).MATCH_FRAGMENT_KEY];null!=f&&this._matchFieldPayloads.push({data:u,dataID:l,operationReference:f,path:(0,n.default)(this._path).concat([a]),typeName:c,variables:this._variables})}else r(2).setValue(i,s,null)}else{if(void 0===u&&!this._handleStrippedNulls)return;r(2).setValue(i,s,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?(this._path.push(o),t.plural?this._normalizePluralLink(t,n,a,s):this._normalizeLink(t,n,a,s),this._path.pop()):(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){o._path.push(String(u)),"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),o._path.pop()}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}();i=r(28).instrument("RelayResponseNormalizer.normalize",i),e.exports={normalize:i}},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(40)(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).DEFER:case r(3).STREAM:n._traverseSelections(i.selections,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(42).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(27)),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(56).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){"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&&a===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&&n===a[r]},!0)&&u.length===c.length}return n?t:r}},function(e,t,r){"use strict";e.exports={Environment:r(45),Network:r(57),Observable:r(14),QueryResponseCache:r(58),RecordSource:r(11),Store:r(59),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(33),ConnectionHandler:r(9),ViewerHandler:r(35),applyOptimisticMutation:r(63),commitLocalUpdate:r(64),commitMutation:r(65),fetchQuery:r(66),isRelayModernEnvironment:r(32),requestSubscription:r(67),ConnectionInterface:r(10),RelayProfiler:r(28),RelayConcreteNode:r(3),RelayError:r(42),RelayNetworkLoggerTransaction:r(68),DEFAULT_HANDLE_KEY:r(34).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(69),deepFreeze:r(36),generateClientID:r(7),getRelayHandleKey:r(24),isScalarAndEqual:r(38),recycleNodesInto:r(43),simpleClone:r(70),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(33),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(39).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=e.operation,n=e.cacheConfig,i=e.updater;return r(54).execute({operation:t,cacheConfig:n,updater:i,network:this._network,operationLoader:this._operationLoader,publishQueue:this._publishQueue})},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(41)(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,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(){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.operation,a=e.source,s=e.updater,u=new(r(20))(this._store.getSource(),a),c=new(r(21))(u);if(n&&n.length&&n.forEach(function(e){var n=t._handlerProvider&&t._handlerProvider(e.handle);n||r(1)(!1),n.update(c,e)}),s){var l=null===o||void 0===o?void 0:o.fragment;null==l&&r(1)(!1),s(new(r(26))(c,l),i(a,l,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,a);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,s);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,n){return r(31).read(e,t,n).data}e.exports=n},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=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(38)(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={execute:function(e){var t=e.network,n=e.publishQueue,i=e.operation,o=e.operationLoader,a=e.cacheConfig,s=e.updater;return r(14).create(function(e){var u=null,c=new Set;function l(e){this._subscription=e,c.add(e)}function d(){c.delete(this._subscription),0===c.size&&e.complete()}var f=function t(i){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,c=arguments.length>3&&void 0!==arguments[3]&&arguments[3],f=i.matchPayloads;f&&f.length&&(o||r(1)(!1),f.forEach(function(n){(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(37).normalize(o,i,n.data),u={errors:null,fieldPayloads:s.fieldPayloads,matchPayloads:s.matchPayloads,source:o};e(u)}})})(t,o,n).subscribe({complete:d,error:e.error,start:l})})),c?(null!==u&&r(1)(!1),u={source:i.source,fieldPayloads:i.fieldPayloads},n.applyUpdate(u),n.run()):(null!==u&&(n.revertUpdate(u),u=null),a&&s?n.commitPayload(a,i,s):n.commitRelayPayload(i),n.run())},h=i.node;return t.execute(h.params,i.variables,a||{}).subscribe({complete:d,next:function(t){var n,o=r(41)(i,t),a=!0===(null===(n=t.extensions)||void 0===n?void 0:n.isOptimistic);f(o,i,s,a),e.next(t)},error:e.error,start:l}),function(){0!==c.size&&(c.forEach(function(e){return e.unsubscribe()}),c.clear()),null!==u&&(n.revertUpdate(u),u=null,n.run())}})}}},function(e,t,r){"use strict";e.exports=function(e){return!!e&&"function"==typeof e.then}},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(60),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(39).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(31).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(61)(i,this._updatedRecordIDs)){var o=r(31).read(this._recordSource,i,i.owner),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(62).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(28).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(40)(i,e,n._variables);a.plural?n._traversePluralLink(a,t):n._traverseLink(a,t);break;case r(3).DEFER:case r(3).STREAM:n._traverseSelections(i.selections,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(32)(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(32)(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(27)),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(71)(t,e):t}},function(e,t){e.exports=s}])});