text: "use strict";var e=require("./1cc90026.min.js"),r=require("@urql/core"),n={__typename:"PageInfo",endCursor:null,startCursor:null,hasNextPage:!1,hasPreviousPage:!1},t=function(e){return"string"==typeof e?e:null},a=function(e,r,n){for(var t=new Set,a=0,s=r.length;a<s;a++){var o=e.resolve(r[a],"node");"string"==typeof o&&t.add(o)}for(r=r.slice(),a=0,s=n.length;a<s;a++){var i=e.resolve(o=n[a],"node");"string"!=typeof i||t.has(i)||(t.add(i),r.push(o))}return r},s=function(e,r){for(var n=new Set,t=0,a=e.length;t<a;t++){var s=e[t];"string"==typeof s&&n.add(s)}for(e=e.slice(),t=0,a=r.length;t<a;t++)"string"!=typeof(s=r[t])||n.has(s)||(n.add(s),e.push(s));return e},o=function(e,n){for(var t in n)if("first"!==t&&"last"!==t&&"after"!==t&&"before"!==t){if(!(t in e))return!1;var a=e[t],s=n[t];if(typeof a!=typeof s||"object"!=typeof a?a!==s:r.stringifyVariables(a)!==r.stringifyVariables(s))return!1}for(var o in e)if("first"!==o&&"last"!==o&&"after"!==o&&"before"!==o&&!(o in n))return!1;return!0},i=function(e,r,a){var s=t(e.resolve(r,a));if(!s)return null;a=e.resolve(s,"__typename"),r=e.resolve(s,"edges")||[];var o=e.resolve(s,"nodes")||[];if("string"!=typeof a)return null;a={__typename:a,edges:r,nodes:o,pageInfo:n};var i=e.resolve(s,"pageInfo");if("string"==typeof i){s=t(e.resolve(i,"__typename")),o=t(e.resolve(i,"endCursor"));var f=t(e.resolve(i,"startCursor")),u=e.resolve(i,"hasNextPage");i=e.resolve(i,"hasPreviousPage"),null===(s=a.pageInfo={__typename:"string"==typeof s?s:"PageInfo",hasNextPage:"boolean"==typeof u?u:!!o,hasPreviousPage:"boolean"==typeof i?i:!!f,endCursor:o,startCursor:f}).endCursor&&(o=r[r.length-1])&&(o=e.resolve(o,"cursor"),s.endCursor=t(o)),null===s.startCursor&&(r=r[0])&&(e=e.resolve(r,"cursor"),s.startCursor=t(e))}return a};exports.relayPagination=function(r){void 0===r&&(r={});var f=r.mergeMode||"inwards";return function(r,u,l,g){var p=g.fieldName,d=l.inspectFields(r=g.parentKey).filter((function(e){return e.fieldName===p})),v=d.length;if(0!==v){for(var y=null,c=[],m=[],h=[],_=[],P=e._extends({},n),C=0;C<v;C++){var b=d[C],I=b.fieldKey;if(null!==(b=b.arguments)&&o(u,b)&&null!==(I=i(l,r,I))){if("inwards"===f&&"number"==typeof b.last&&"number"==typeof b.first){P=I.edges.slice(0,b.first+1);var N=I.edges.slice(-b.last),x=I.nodes.slice(0,b.first+1);b=I.nodes.slice(-b.last),c=a(l,c,P),m=a(l,N,m),h=s(h,x),_=s(b,_),P=I.pageInfo}else b.after?(c=a(l,c,I.edges),h=s(h,I.nodes),P.endCursor=I.pageInfo.endCursor,P.hasNextPage=I.pageInfo.hasNextPage):b.before?(m=a(l,I.edges,m),_=s(I.nodes,_),P.startCursor=I.pageInfo.startCursor,P.hasPreviousPage=I.pageInfo.hasPreviousPage):("number"==typeof b.last?(m=a(l,I.edges,m),_=s(I.nodes,_)):(c=a(l,c,I.edges),h=s(h,I.nodes)),P=I.pageInfo);I.pageInfo.__typename!==P.__typename&&(P.__typename=I.pageInfo.__typename),y!==I.__typename&&(y=I.__typename)}}if("string"==typeof y){if(!t(l.resolve(r,p,u))){if(!g.store.schema)return;g.partial=!0}return{__typename:y,edges:"inwards"===f?a(l,c,m):a(l,m,c),nodes:"inwards"===f?s(h,_):s(_,h),pageInfo:{__typename:P.__typename,endCursor:P.endCursor,startCursor:P.startCursor,hasNextPage:P.hasNextPage,hasPreviousPage:P.hasPreviousPage}}}}}},exports.simplePagination=function(e){void 0===e&&(e={});var n=e.offsetArgument;void 0===n&&(n="skip");var t=e.limitArgument;void 0===t&&(t="limit");var a=e.mergeMode;void 0===a&&(a="after");var s=function(e,a){for(var s in a)if(s!==n&&s!==t){if(!(s in e))return!1;var o=e[s],i=a[s];if(typeof o!=typeof i||"object"!=typeof o?o!==i:r.stringifyVariables(o)!==r.stringifyVariables(i))return!1}for(var f in e)if(f!==n&&f!==t&&!(f in a))return!1;return!0};return function(e,r,t,o){var i=o.fieldName,f=t.inspectFields(e=o.parentKey).filter((function(e){return e.fieldName===i})),u=f.length;if(0!==u){for(var l=new Set,g=[],p=null,d=0;d<u;d++){var v=f[d],y=v.fieldKey;if(null!==(v=v.arguments)&&s(r,v)&&(y=t.resolve(e,y),v=v[n],null!==y&&0!==y.length&&"number"==typeof v)){for(var c=[],m=0;m<y.length;m++){var h=y[m];l.has(h)||(c.push(h),l.add(h))}g=(!p||v>p)==("after"===a)?g.concat(c):c.concat(g),p=v}}if(t.resolve(e,i,r))return g;if(o.store.schema)return o.partial=!0,g}}};
  //# sourceMappingURL=urql-exchange-graphcache-extras.min.js.map
  