@teambit/node 1.0.429 → 1.0.430

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.
@@ -1,4 +1,4 @@
1
- (self.__loadChunks_EnvTemplate=self.__loadChunks_EnvTemplate||[]).push([[314],{40653:function(__unused_webpack_module,exports,__webpack_require__){(function(global2,factory){factory(exports,__webpack_require__(78750),__webpack_require__(12697),__webpack_require__(2634))})(this,function(exports2,setArray,sourcemapCodec,traceMapping){"use strict";class GenMapping{constructor({file,sourceRoot}={}){this._names=new setArray.SetArray,this._sources=new setArray.SetArray,this._sourcesContent=[],this._mappings=[],this.file=file,this.sourceRoot=sourceRoot,this._ignoreList=new setArray.SetArray}}function cast(map){return map}function addSegment(map,genLine,genColumn,source,sourceLine,sourceColumn,name,content){return addSegmentInternal(!1,map,genLine,genColumn,source,sourceLine,sourceColumn,name,content)}function addMapping(map,mapping){return addMappingInternal(!1,map,mapping)}const maybeAddSegment=(map,genLine,genColumn,source,sourceLine,sourceColumn,name,content)=>addSegmentInternal(!0,map,genLine,genColumn,source,sourceLine,sourceColumn,name,content),maybeAddMapping=(map,mapping)=>addMappingInternal(!0,map,mapping);function setSourceContent(map,source,content){const{_sources:sources,_sourcesContent:sourcesContent}=map,index=setArray.put(sources,source);sourcesContent[index]=content}function setIgnore(map,source,ignore=!0){const{_sources:sources,_sourcesContent:sourcesContent,_ignoreList:ignoreList}=map,index=setArray.put(sources,source);index===sourcesContent.length&&(sourcesContent[index]=null),ignore?setArray.put(ignoreList,index):setArray.remove(ignoreList,index)}function toDecodedMap(map){const{_mappings:mappings,_sources:sources,_sourcesContent:sourcesContent,_names:names,_ignoreList:ignoreList}=map;return removeEmptyFinalLines(mappings),{version:3,file:map.file||void 0,names:names.array,sourceRoot:map.sourceRoot||void 0,sources:sources.array,sourcesContent,mappings,ignoreList:ignoreList.array}}function toEncodedMap(map){const decoded=toDecodedMap(map);return Object.assign(Object.assign({},decoded),{mappings:sourcemapCodec.encode(decoded.mappings)})}function fromMap(input){const map=new traceMapping.TraceMap(input),gen=new GenMapping({file:map.file,sourceRoot:map.sourceRoot});return putAll(gen._names,map.names),putAll(gen._sources,map.sources),gen._sourcesContent=map.sourcesContent||map.sources.map(()=>null),gen._mappings=traceMapping.decodedMappings(map),map.ignoreList&&putAll(gen._ignoreList,map.ignoreList),gen}function allMappings(map){const out=[],{_mappings:mappings,_sources:sources,_names:names}=map;for(let i=0;i<mappings.length;i++){const line=mappings[i];for(let j=0;j<line.length;j++){const seg=line[j],generated={line:i+1,column:seg[0]};let source,original,name;seg.length!==1&&(source=sources.array[seg[1]],original={line:seg[2]+1,column:seg[3]},seg.length===5&&(name=names.array[seg[4]])),out.push({generated,source,original,name})}}return out}function addSegmentInternal(skipable,map,genLine,genColumn,source,sourceLine,sourceColumn,name,content){const{_mappings:mappings,_sources:sources,_sourcesContent:sourcesContent,_names:names}=map,line=getLine(mappings,genLine),index=getColumnIndex(line,genColumn);if(!source)return skipable&&skipSourceless(line,index)?void 0:insert(line,index,[genColumn]);const sourcesIndex=setArray.put(sources,source),namesIndex=name?setArray.put(names,name):-1;if(sourcesIndex===sourcesContent.length&&(sourcesContent[sourcesIndex]=content??null),!(skipable&&skipSource(line,index,sourcesIndex,sourceLine,sourceColumn,namesIndex)))return insert(line,index,name?[genColumn,sourcesIndex,sourceLine,sourceColumn,namesIndex]:[genColumn,sourcesIndex,sourceLine,sourceColumn])}function getLine(mappings,index){for(let i=mappings.length;i<=index;i++)mappings[i]=[];return mappings[index]}function getColumnIndex(line,genColumn){let index=line.length;for(let i=index-1;i>=0;index=i--){const current=line[i];if(genColumn>=current[0])break}return index}function insert(array,index,value){for(let i=array.length;i>index;i--)array[i]=array[i-1];array[index]=value}function removeEmptyFinalLines(mappings){const{length}=mappings;let len=length;for(let i=len-1;i>=0&&!(mappings[i].length>0);len=i,i--);len<length&&(mappings.length=len)}function putAll(setarr,array){for(let i=0;i<array.length;i++)setArray.put(setarr,array[i])}function skipSourceless(line,index){return index===0?!0:line[index-1].length===1}function skipSource(line,index,sourcesIndex,sourceLine,sourceColumn,namesIndex){if(index===0)return!1;const prev=line[index-1];return prev.length===1?!1:sourcesIndex===prev[1]&&sourceLine===prev[2]&&sourceColumn===prev[3]&&namesIndex===(prev.length===5?prev[4]:-1)}function addMappingInternal(skipable,map,mapping){const{generated,source,original,name,content}=mapping;return source?addSegmentInternal(skipable,map,generated.line-1,generated.column,source,original.line-1,original.column,name,content):addSegmentInternal(skipable,map,generated.line-1,generated.column,null,null,null,null,null)}exports2.GenMapping=GenMapping,exports2.addMapping=addMapping,exports2.addSegment=addSegment,exports2.allMappings=allMappings,exports2.fromMap=fromMap,exports2.maybeAddMapping=maybeAddMapping,exports2.maybeAddSegment=maybeAddSegment,exports2.setIgnore=setIgnore,exports2.setSourceContent=setSourceContent,exports2.toDecodedMap=toDecodedMap,exports2.toEncodedMap=toEncodedMap,Object.defineProperty(exports2,"__esModule",{value:!0})})},54498:function(module){(function(global2,factory){module.exports=factory()})(this,function(){"use strict";const schemeRegex=/^[\w+.-]+:\/\//,urlRegex=/^([\w+.-]+:)\/\/([^@/#?]*@)?([^:/#?]*)(:\d+)?(\/[^#?]*)?(\?[^#]*)?(#.*)?/,fileRegex=/^file:(?:\/\/((?![a-z]:)[^/#?]*)?)?(\/?[^#?]*)(\?[^#]*)?(#.*)?/i;function isAbsoluteUrl(input){return schemeRegex.test(input)}function isSchemeRelativeUrl(input){return input.startsWith("//")}function isAbsolutePath(input){return input.startsWith("/")}function isFileUrl(input){return input.startsWith("file:")}function isRelative(input){return/^[.?#]/.test(input)}function parseAbsoluteUrl(input){const match=urlRegex.exec(input);return makeUrl(match[1],match[2]||"",match[3],match[4]||"",match[5]||"/",match[6]||"",match[7]||"")}function parseFileUrl(input){const match=fileRegex.exec(input),path=match[2];return makeUrl("file:","",match[1]||"","",isAbsolutePath(path)?path:"/"+path,match[3]||"",match[4]||"")}function makeUrl(scheme,user,host,port,path,query,hash){return{scheme,user,host,port,path,query,hash,type:7}}function parseUrl(input){if(isSchemeRelativeUrl(input)){const url2=parseAbsoluteUrl("http:"+input);return url2.scheme="",url2.type=6,url2}if(isAbsolutePath(input)){const url2=parseAbsoluteUrl("http://foo.com"+input);return url2.scheme="",url2.host="",url2.type=5,url2}if(isFileUrl(input))return parseFileUrl(input);if(isAbsoluteUrl(input))return parseAbsoluteUrl(input);const url=parseAbsoluteUrl("http://foo.com/"+input);return url.scheme="",url.host="",url.type=input?input.startsWith("?")?3:input.startsWith("#")?2:4:1,url}function stripPathFilename(path){if(path.endsWith("/.."))return path;const index=path.lastIndexOf("/");return path.slice(0,index+1)}function mergePaths(url,base){normalizePath(base,base.type),url.path==="/"?url.path=base.path:url.path=stripPathFilename(base.path)+url.path}function normalizePath(url,type){const rel=type<=4,pieces=url.path.split("/");let pointer=1,positive=0,addTrailingSlash=!1;for(let i=1;i<pieces.length;i++){const piece=pieces[i];if(!piece){addTrailingSlash=!0;continue}if(addTrailingSlash=!1,piece!=="."){if(piece===".."){positive?(addTrailingSlash=!0,positive--,pointer--):rel&&(pieces[pointer++]=piece);continue}pieces[pointer++]=piece,positive++}}let path="";for(let i=1;i<pointer;i++)path+="/"+pieces[i];(!path||addTrailingSlash&&!path.endsWith("/.."))&&(path+="/"),url.path=path}function resolve(input,base){if(!input&&!base)return"";const url=parseUrl(input);let inputType=url.type;if(base&&inputType!==7){const baseUrl=parseUrl(base),baseType=baseUrl.type;switch(inputType){case 1:url.hash=baseUrl.hash;case 2:url.query=baseUrl.query;case 3:case 4:mergePaths(url,baseUrl);case 5:url.user=baseUrl.user,url.host=baseUrl.host,url.port=baseUrl.port;case 6:url.scheme=baseUrl.scheme}baseType>inputType&&(inputType=baseType)}normalizePath(url,inputType);const queryHash=url.query+url.hash;switch(inputType){case 2:case 3:return queryHash;case 4:{const path=url.path.slice(1);return path?isRelative(base||input)&&!isRelative(path)?"./"+path+queryHash:path+queryHash:queryHash||"."}case 5:return url.path+queryHash;default:return url.scheme+"//"+url.user+url.host+url.port+url.path+queryHash}}return resolve})},78750:function(__unused_webpack_module,exports){(function(global2,factory){factory(exports)})(this,function(exports2){"use strict";class SetArray{constructor(){this._indexes={__proto__:null},this.array=[]}}function cast(set){return set}function get(setarr,key){return setarr._indexes[key]}function put(setarr,key){const index=get(setarr,key);if(index!==void 0)return index;const{array,_indexes:indexes}=setarr,length=array.push(key);return indexes[key]=length-1}function pop(setarr){const{array,_indexes:indexes}=setarr;if(array.length===0)return;const last=array.pop();indexes[last]=void 0}function remove(setarr,key){const index=get(setarr,key);if(index===void 0)return;const{array,_indexes:indexes}=setarr;for(let i=index+1;i<array.length;i++){const k=array[i];array[i-1]=k,indexes[k]--}indexes[key]=void 0,array.pop()}exports2.SetArray=SetArray,exports2.get=get,exports2.pop=pop,exports2.put=put,exports2.remove=remove,Object.defineProperty(exports2,"__esModule",{value:!0})})},12697:function(__unused_webpack_module,exports,__webpack_require__){var Buffer=__webpack_require__(55872).Buffer;(function(global2,factory){factory(exports)})(this,function(exports2){"use strict";const comma=",".charCodeAt(0),semicolon=";".charCodeAt(0),chars="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",intToChar=new Uint8Array(64),charToInt=new Uint8Array(128);for(let i=0;i<chars.length;i++){const c=chars.charCodeAt(i);intToChar[i]=c,charToInt[c]=i}function decodeInteger(reader,relative){let value=0,shift=0,integer=0;do{const c=reader.next();integer=charToInt[c],value|=(integer&31)<<shift,shift+=5}while(integer&32);const shouldNegate=value&1;return value>>>=1,shouldNegate&&(value=-2147483648|-value),relative+value}function encodeInteger(builder,num,relative){let delta=num-relative;delta=delta<0?-delta<<1|1:delta<<1;do{let clamped=delta&31;delta>>>=5,delta>0&&(clamped|=32),builder.write(intToChar[clamped])}while(delta>0);return num}function hasMoreVlq(reader,max){return reader.pos>=max?!1:reader.peek()!==comma}const bufLength=1024*16,td=typeof TextDecoder<"u"?new TextDecoder:typeof Buffer<"u"?{decode(buf){return Buffer.from(buf.buffer,buf.byteOffset,buf.byteLength).toString()}}:{decode(buf){let out="";for(let i=0;i<buf.length;i++)out+=String.fromCharCode(buf[i]);return out}};class StringWriter{constructor(){this.pos=0,this.out="",this.buffer=new Uint8Array(bufLength)}write(v){const{buffer}=this;buffer[this.pos++]=v,this.pos===bufLength&&(this.out+=td.decode(buffer),this.pos=0)}flush(){const{buffer,out,pos}=this;return pos>0?out+td.decode(buffer.subarray(0,pos)):out}}class StringReader{constructor(buffer){this.pos=0,this.buffer=buffer}next(){return this.buffer.charCodeAt(this.pos++)}peek(){return this.buffer.charCodeAt(this.pos)}indexOf(char){const{buffer,pos}=this,idx=buffer.indexOf(char,pos);return idx===-1?buffer.length:idx}}const EMPTY=[];function decodeOriginalScopes(input){const{length}=input,reader=new StringReader(input),scopes=[],stack=[];let line=0;for(;reader.pos<length;reader.pos++){line=decodeInteger(reader,line);const column=decodeInteger(reader,0);if(!hasMoreVlq(reader,length)){const last=stack.pop();last[2]=line,last[3]=column;continue}const kind=decodeInteger(reader,0),scope=decodeInteger(reader,0)&1?[line,column,0,0,kind,decodeInteger(reader,0)]:[line,column,0,0,kind];let vars=EMPTY;if(hasMoreVlq(reader,length)){vars=[];do{const varsIndex=decodeInteger(reader,0);vars.push(varsIndex)}while(hasMoreVlq(reader,length))}scope.vars=vars,scopes.push(scope),stack.push(scope)}return scopes}function encodeOriginalScopes(scopes){const writer=new StringWriter;for(let i=0;i<scopes.length;)i=_encodeOriginalScopes(scopes,i,writer,[0]);return writer.flush()}function _encodeOriginalScopes(scopes,index,writer,state){const scope=scopes[index],{0:startLine,1:startColumn,2:endLine,3:endColumn,4:kind,vars}=scope;index>0&&writer.write(comma),state[0]=encodeInteger(writer,startLine,state[0]),encodeInteger(writer,startColumn,0),encodeInteger(writer,kind,0);const fields=scope.length===6?1:0;encodeInteger(writer,fields,0),scope.length===6&&encodeInteger(writer,scope[5],0);for(const v of vars)encodeInteger(writer,v,0);for(index++;index<scopes.length;){const next=scopes[index],{0:l,1:c}=next;if(l>endLine||l===endLine&&c>=endColumn)break;index=_encodeOriginalScopes(scopes,index,writer,state)}return writer.write(comma),state[0]=encodeInteger(writer,endLine,state[0]),encodeInteger(writer,endColumn,0),index}function decodeGeneratedRanges(input){const{length}=input,reader=new StringReader(input),ranges=[],stack=[];let genLine=0,definitionSourcesIndex=0,definitionScopeIndex=0,callsiteSourcesIndex=0,callsiteLine=0,callsiteColumn=0,bindingLine=0,bindingColumn=0;do{const semi=reader.indexOf(";");let genColumn=0;for(;reader.pos<semi;reader.pos++){if(genColumn=decodeInteger(reader,genColumn),!hasMoreVlq(reader,semi)){const last=stack.pop();last[2]=genLine,last[3]=genColumn;continue}const fields=decodeInteger(reader,0),hasDefinition=fields&1,hasCallsite=fields&2,hasScope=fields&4;let callsite=null,bindings=EMPTY,range;if(hasDefinition){const defSourcesIndex=decodeInteger(reader,definitionSourcesIndex);definitionScopeIndex=decodeInteger(reader,definitionSourcesIndex===defSourcesIndex?definitionScopeIndex:0),definitionSourcesIndex=defSourcesIndex,range=[genLine,genColumn,0,0,defSourcesIndex,definitionScopeIndex]}else range=[genLine,genColumn,0,0];if(range.isScope=!!hasScope,hasCallsite){const prevCsi=callsiteSourcesIndex,prevLine=callsiteLine;callsiteSourcesIndex=decodeInteger(reader,callsiteSourcesIndex);const sameSource=prevCsi===callsiteSourcesIndex;callsiteLine=decodeInteger(reader,sameSource?callsiteLine:0),callsiteColumn=decodeInteger(reader,sameSource&&prevLine===callsiteLine?callsiteColumn:0),callsite=[callsiteSourcesIndex,callsiteLine,callsiteColumn]}if(range.callsite=callsite,hasMoreVlq(reader,semi)){bindings=[];do{bindingLine=genLine,bindingColumn=genColumn;const expressionsCount=decodeInteger(reader,0);let expressionRanges;if(expressionsCount<-1){expressionRanges=[[decodeInteger(reader,0)]];for(let i=-1;i>expressionsCount;i--){const prevBl=bindingLine;bindingLine=decodeInteger(reader,bindingLine),bindingColumn=decodeInteger(reader,bindingLine===prevBl?bindingColumn:0);const expression=decodeInteger(reader,0);expressionRanges.push([expression,bindingLine,bindingColumn])}}else expressionRanges=[[expressionsCount]];bindings.push(expressionRanges)}while(hasMoreVlq(reader,semi))}range.bindings=bindings,ranges.push(range),stack.push(range)}genLine++,reader.pos=semi+1}while(reader.pos<length);return ranges}function encodeGeneratedRanges(ranges){if(ranges.length===0)return"";const writer=new StringWriter;for(let i=0;i<ranges.length;)i=_encodeGeneratedRanges(ranges,i,writer,[0,0,0,0,0,0,0]);return writer.flush()}function _encodeGeneratedRanges(ranges,index,writer,state){const range=ranges[index],{0:startLine,1:startColumn,2:endLine,3:endColumn,isScope,callsite,bindings}=range;state[0]<startLine?(catchupLine(writer,state[0],startLine),state[0]=startLine,state[1]=0):index>0&&writer.write(comma),state[1]=encodeInteger(writer,range[1],state[1]);const fields=(range.length===6?1:0)|(callsite?2:0)|(isScope?4:0);if(encodeInteger(writer,fields,0),range.length===6){const{4:sourcesIndex,5:scopesIndex}=range;sourcesIndex!==state[2]&&(state[3]=0),state[2]=encodeInteger(writer,sourcesIndex,state[2]),state[3]=encodeInteger(writer,scopesIndex,state[3])}if(callsite){const{0:sourcesIndex,1:callLine,2:callColumn}=range.callsite;sourcesIndex!==state[4]?(state[5]=0,state[6]=0):callLine!==state[5]&&(state[6]=0),state[4]=encodeInteger(writer,sourcesIndex,state[4]),state[5]=encodeInteger(writer,callLine,state[5]),state[6]=encodeInteger(writer,callColumn,state[6])}if(bindings)for(const binding of bindings){binding.length>1&&encodeInteger(writer,-binding.length,0);const expression=binding[0][0];encodeInteger(writer,expression,0);let bindingStartLine=startLine,bindingStartColumn=startColumn;for(let i=1;i<binding.length;i++){const expRange=binding[i];bindingStartLine=encodeInteger(writer,expRange[1],bindingStartLine),bindingStartColumn=encodeInteger(writer,expRange[2],bindingStartColumn),encodeInteger(writer,expRange[0],0)}}for(index++;index<ranges.length;){const next=ranges[index],{0:l,1:c}=next;if(l>endLine||l===endLine&&c>=endColumn)break;index=_encodeGeneratedRanges(ranges,index,writer,state)}return state[0]<endLine?(catchupLine(writer,state[0],endLine),state[0]=endLine,state[1]=0):writer.write(comma),state[1]=encodeInteger(writer,endColumn,state[1]),index}function catchupLine(writer,lastLine,line){do writer.write(semicolon);while(++lastLine<line)}function decode(mappings){const{length}=mappings,reader=new StringReader(mappings),decoded=[];let genColumn=0,sourcesIndex=0,sourceLine=0,sourceColumn=0,namesIndex=0;do{const semi=reader.indexOf(";"),line=[];let sorted=!0,lastCol=0;for(genColumn=0;reader.pos<semi;){let seg;genColumn=decodeInteger(reader,genColumn),genColumn<lastCol&&(sorted=!1),lastCol=genColumn,hasMoreVlq(reader,semi)?(sourcesIndex=decodeInteger(reader,sourcesIndex),sourceLine=decodeInteger(reader,sourceLine),sourceColumn=decodeInteger(reader,sourceColumn),hasMoreVlq(reader,semi)?(namesIndex=decodeInteger(reader,namesIndex),seg=[genColumn,sourcesIndex,sourceLine,sourceColumn,namesIndex]):seg=[genColumn,sourcesIndex,sourceLine,sourceColumn]):seg=[genColumn],line.push(seg),reader.pos++}sorted||sort(line),decoded.push(line),reader.pos=semi+1}while(reader.pos<=length);return decoded}function sort(line){line.sort(sortComparator)}function sortComparator(a,b){return a[0]-b[0]}function encode(decoded){const writer=new StringWriter;let sourcesIndex=0,sourceLine=0,sourceColumn=0,namesIndex=0;for(let i=0;i<decoded.length;i++){const line=decoded[i];if(i>0&&writer.write(semicolon),line.length===0)continue;let genColumn=0;for(let j=0;j<line.length;j++){const segment=line[j];j>0&&writer.write(comma),genColumn=encodeInteger(writer,segment[0],genColumn),segment.length!==1&&(sourcesIndex=encodeInteger(writer,segment[1],sourcesIndex),sourceLine=encodeInteger(writer,segment[2],sourceLine),sourceColumn=encodeInteger(writer,segment[3],sourceColumn),segment.length!==4&&(namesIndex=encodeInteger(writer,segment[4],namesIndex)))}}return writer.flush()}exports2.decode=decode,exports2.decodeGeneratedRanges=decodeGeneratedRanges,exports2.decodeOriginalScopes=decodeOriginalScopes,exports2.encode=encode,exports2.encodeGeneratedRanges=encodeGeneratedRanges,exports2.encodeOriginalScopes=encodeOriginalScopes,Object.defineProperty(exports2,"__esModule",{value:!0})})},2634:function(__unused_webpack_module,exports,__webpack_require__){(function(global2,factory){factory(exports,__webpack_require__(12697),__webpack_require__(54498))})(this,function(exports2,sourcemapCodec,resolveUri){"use strict";function resolve(input,base){return base&&!base.endsWith("/")&&(base+="/"),resolveUri(input,base)}function stripFilename(path){if(!path)return"";const index=path.lastIndexOf("/");return path.slice(0,index+1)}const COLUMN=0,SOURCES_INDEX=1,SOURCE_LINE=2,SOURCE_COLUMN=3,NAMES_INDEX=4,REV_GENERATED_LINE=1,REV_GENERATED_COLUMN=2;function maybeSort(mappings,owned){const unsortedIndex=nextUnsortedSegmentLine(mappings,0);if(unsortedIndex===mappings.length)return mappings;owned||(mappings=mappings.slice());for(let i=unsortedIndex;i<mappings.length;i=nextUnsortedSegmentLine(mappings,i+1))mappings[i]=sortSegments(mappings[i],owned);return mappings}function nextUnsortedSegmentLine(mappings,start){for(let i=start;i<mappings.length;i++)if(!isSorted(mappings[i]))return i;return mappings.length}function isSorted(line){for(let j=1;j<line.length;j++)if(line[j][COLUMN]<line[j-1][COLUMN])return!1;return!0}function sortSegments(line,owned){return owned||(line=line.slice()),line.sort(sortComparator)}function sortComparator(a,b){return a[COLUMN]-b[COLUMN]}let found=!1;function binarySearch(haystack,needle,low,high){for(;low<=high;){const mid=low+(high-low>>1),cmp=haystack[mid][COLUMN]-needle;if(cmp===0)return found=!0,mid;cmp<0?low=mid+1:high=mid-1}return found=!1,low-1}function upperBound(haystack,needle,index){for(let i=index+1;i<haystack.length&&haystack[i][COLUMN]===needle;index=i++);return index}function lowerBound(haystack,needle,index){for(let i=index-1;i>=0&&haystack[i][COLUMN]===needle;index=i--);return index}function memoizedState(){return{lastKey:-1,lastNeedle:-1,lastIndex:-1}}function memoizedBinarySearch(haystack,needle,state,key){const{lastKey,lastNeedle,lastIndex}=state;let low=0,high=haystack.length-1;if(key===lastKey){if(needle===lastNeedle)return found=lastIndex!==-1&&haystack[lastIndex][COLUMN]===needle,lastIndex;needle>=lastNeedle?low=lastIndex===-1?0:lastIndex:high=lastIndex}return state.lastKey=key,state.lastNeedle=needle,state.lastIndex=binarySearch(haystack,needle,low,high)}function buildBySources(decoded,memos){const sources=memos.map(buildNullArray);for(let i=0;i<decoded.length;i++){const line=decoded[i];for(let j=0;j<line.length;j++){const seg=line[j];if(seg.length===1)continue;const sourceIndex2=seg[SOURCES_INDEX],sourceLine=seg[SOURCE_LINE],sourceColumn=seg[SOURCE_COLUMN],originalSource=sources[sourceIndex2],originalLine=originalSource[sourceLine]||(originalSource[sourceLine]=[]),memo=memos[sourceIndex2];let index=upperBound(originalLine,sourceColumn,memoizedBinarySearch(originalLine,sourceColumn,memo,sourceLine));memo.lastIndex=++index,insert(originalLine,index,[sourceColumn,i,seg[COLUMN]])}}return sources}function insert(array,index,value){for(let i=array.length;i>index;i--)array[i]=array[i-1];array[index]=value}function buildNullArray(){return{__proto__:null}}const AnyMap=function(map,mapUrl){const parsed=parse(map);if(!("sections"in parsed))return new TraceMap(parsed,mapUrl);const mappings=[],sources=[],sourcesContent=[],names=[],ignoreList=[];recurse(parsed,mapUrl,mappings,sources,sourcesContent,names,ignoreList,0,0,1/0,1/0);const joined={version:3,file:parsed.file,names,sources,sourcesContent,mappings,ignoreList};return presortedDecodedMap(joined)};function parse(map){return typeof map=="string"?JSON.parse(map):map}function recurse(input,mapUrl,mappings,sources,sourcesContent,names,ignoreList,lineOffset,columnOffset,stopLine,stopColumn){const{sections}=input;for(let i=0;i<sections.length;i++){const{map,offset}=sections[i];let sl=stopLine,sc=stopColumn;if(i+1<sections.length){const nextOffset=sections[i+1].offset;sl=Math.min(stopLine,lineOffset+nextOffset.line),sl===stopLine?sc=Math.min(stopColumn,columnOffset+nextOffset.column):sl<stopLine&&(sc=columnOffset+nextOffset.column)}addSection(map,mapUrl,mappings,sources,sourcesContent,names,ignoreList,lineOffset+offset.line,columnOffset+offset.column,sl,sc)}}function addSection(input,mapUrl,mappings,sources,sourcesContent,names,ignoreList,lineOffset,columnOffset,stopLine,stopColumn){const parsed=parse(input);if("sections"in parsed)return recurse(...arguments);const map=new TraceMap(parsed,mapUrl),sourcesOffset=sources.length,namesOffset=names.length,decoded=decodedMappings(map),{resolvedSources,sourcesContent:contents,ignoreList:ignores}=map;if(append(sources,resolvedSources),append(names,map.names),contents)append(sourcesContent,contents);else for(let i=0;i<resolvedSources.length;i++)sourcesContent.push(null);if(ignores)for(let i=0;i<ignores.length;i++)ignoreList.push(ignores[i]+sourcesOffset);for(let i=0;i<decoded.length;i++){const lineI=lineOffset+i;if(lineI>stopLine)return;const out=getLine(mappings,lineI),cOffset=i===0?columnOffset:0,line=decoded[i];for(let j=0;j<line.length;j++){const seg=line[j],column=cOffset+seg[COLUMN];if(lineI===stopLine&&column>=stopColumn)return;if(seg.length===1){out.push([column]);continue}const sourcesIndex=sourcesOffset+seg[SOURCES_INDEX],sourceLine=seg[SOURCE_LINE],sourceColumn=seg[SOURCE_COLUMN];out.push(seg.length===4?[column,sourcesIndex,sourceLine,sourceColumn]:[column,sourcesIndex,sourceLine,sourceColumn,namesOffset+seg[NAMES_INDEX]])}}}function append(arr,other){for(let i=0;i<other.length;i++)arr.push(other[i])}function getLine(arr,index){for(let i=arr.length;i<=index;i++)arr[i]=[];return arr[index]}const LINE_GTR_ZERO="`line` must be greater than 0 (lines start at line 1)",COL_GTR_EQ_ZERO="`column` must be greater than or equal to 0 (columns start at column 0)",LEAST_UPPER_BOUND=-1,GREATEST_LOWER_BOUND=1;class TraceMap{constructor(map,mapUrl){const isString=typeof map=="string";if(!isString&&map._decodedMemo)return map;const parsed=isString?JSON.parse(map):map,{version,file,names,sourceRoot,sources,sourcesContent}=parsed;this.version=version,this.file=file,this.names=names||[],this.sourceRoot=sourceRoot,this.sources=sources,this.sourcesContent=sourcesContent,this.ignoreList=parsed.ignoreList||parsed.x_google_ignoreList||void 0;const from=resolve(sourceRoot||"",stripFilename(mapUrl));this.resolvedSources=sources.map(s=>resolve(s||"",from));const{mappings}=parsed;typeof mappings=="string"?(this._encoded=mappings,this._decoded=void 0):(this._encoded=void 0,this._decoded=maybeSort(mappings,isString)),this._decodedMemo=memoizedState(),this._bySources=void 0,this._bySourceMemos=void 0}}function cast(map){return map}function encodedMappings(map){var _a,_b;return(_a=(_b=map)._encoded)!==null&&_a!==void 0?_a:_b._encoded=sourcemapCodec.encode(map._decoded)}function decodedMappings(map){var _a;return(_a=map)._decoded||(_a._decoded=sourcemapCodec.decode(map._encoded))}function traceSegment(map,line,column){const decoded=decodedMappings(map);if(line>=decoded.length)return null;const segments=decoded[line],index=traceSegmentInternal(segments,map._decodedMemo,line,column,GREATEST_LOWER_BOUND);return index===-1?null:segments[index]}function originalPositionFor(map,needle){let{line,column,bias}=needle;if(line--,line<0)throw new Error(LINE_GTR_ZERO);if(column<0)throw new Error(COL_GTR_EQ_ZERO);const decoded=decodedMappings(map);if(line>=decoded.length)return OMapping(null,null,null,null);const segments=decoded[line],index=traceSegmentInternal(segments,map._decodedMemo,line,column,bias||GREATEST_LOWER_BOUND);if(index===-1)return OMapping(null,null,null,null);const segment=segments[index];if(segment.length===1)return OMapping(null,null,null,null);const{names,resolvedSources}=map;return OMapping(resolvedSources[segment[SOURCES_INDEX]],segment[SOURCE_LINE]+1,segment[SOURCE_COLUMN],segment.length===5?names[segment[NAMES_INDEX]]:null)}function generatedPositionFor(map,needle){const{source,line,column,bias}=needle;return generatedPosition(map,source,line,column,bias||GREATEST_LOWER_BOUND,!1)}function allGeneratedPositionsFor(map,needle){const{source,line,column,bias}=needle;return generatedPosition(map,source,line,column,bias||LEAST_UPPER_BOUND,!0)}function eachMapping(map,cb){const decoded=decodedMappings(map),{names,resolvedSources}=map;for(let i=0;i<decoded.length;i++){const line=decoded[i];for(let j=0;j<line.length;j++){const seg=line[j],generatedLine=i+1,generatedColumn=seg[0];let source=null,originalLine=null,originalColumn=null,name=null;seg.length!==1&&(source=resolvedSources[seg[1]],originalLine=seg[2]+1,originalColumn=seg[3]),seg.length===5&&(name=names[seg[4]]),cb({generatedLine,generatedColumn,source,originalLine,originalColumn,name})}}}function sourceIndex(map,source){const{sources,resolvedSources}=map;let index=sources.indexOf(source);return index===-1&&(index=resolvedSources.indexOf(source)),index}function sourceContentFor(map,source){const{sourcesContent}=map;if(sourcesContent==null)return null;const index=sourceIndex(map,source);return index===-1?null:sourcesContent[index]}function isIgnored(map,source){const{ignoreList}=map;if(ignoreList==null)return!1;const index=sourceIndex(map,source);return index===-1?!1:ignoreList.includes(index)}function presortedDecodedMap(map,mapUrl){const tracer=new TraceMap(clone(map,[]),mapUrl);return tracer._decoded=map.mappings,tracer}function decodedMap(map){return clone(map,decodedMappings(map))}function encodedMap(map){return clone(map,encodedMappings(map))}function clone(map,mappings){return{version:map.version,file:map.file,names:map.names,sourceRoot:map.sourceRoot,sources:map.sources,sourcesContent:map.sourcesContent,mappings,ignoreList:map.ignoreList||map.x_google_ignoreList}}function OMapping(source,line,column,name){return{source,line,column,name}}function GMapping(line,column){return{line,column}}function traceSegmentInternal(segments,memo,line,column,bias){let index=memoizedBinarySearch(segments,column,memo,line);return found?index=(bias===LEAST_UPPER_BOUND?upperBound:lowerBound)(segments,column,index):bias===LEAST_UPPER_BOUND&&index++,index===-1||index===segments.length?-1:index}function sliceGeneratedPositions(segments,memo,line,column,bias){let min=traceSegmentInternal(segments,memo,line,column,GREATEST_LOWER_BOUND);if(!found&&bias===LEAST_UPPER_BOUND&&min++,min===-1||min===segments.length)return[];const matchedColumn=found?column:segments[min][COLUMN];found||(min=lowerBound(segments,matchedColumn,min));const max=upperBound(segments,matchedColumn,min),result=[];for(;min<=max;min++){const segment=segments[min];result.push(GMapping(segment[REV_GENERATED_LINE]+1,segment[REV_GENERATED_COLUMN]))}return result}function generatedPosition(map,source,line,column,bias,all){var _a;if(line--,line<0)throw new Error(LINE_GTR_ZERO);if(column<0)throw new Error(COL_GTR_EQ_ZERO);const{sources,resolvedSources}=map;let sourceIndex2=sources.indexOf(source);if(sourceIndex2===-1&&(sourceIndex2=resolvedSources.indexOf(source)),sourceIndex2===-1)return all?[]:GMapping(null,null);const segments=((_a=map)._bySources||(_a._bySources=buildBySources(decodedMappings(map),map._bySourceMemos=sources.map(memoizedState))))[sourceIndex2][line];if(segments==null)return all?[]:GMapping(null,null);const memo=map._bySourceMemos[sourceIndex2];if(all)return sliceGeneratedPositions(segments,memo,line,column,bias);const index=traceSegmentInternal(segments,memo,line,column,bias);if(index===-1)return GMapping(null,null);const segment=segments[index];return GMapping(segment[REV_GENERATED_LINE]+1,segment[REV_GENERATED_COLUMN])}exports2.AnyMap=AnyMap,exports2.GREATEST_LOWER_BOUND=GREATEST_LOWER_BOUND,exports2.LEAST_UPPER_BOUND=LEAST_UPPER_BOUND,exports2.TraceMap=TraceMap,exports2.allGeneratedPositionsFor=allGeneratedPositionsFor,exports2.decodedMap=decodedMap,exports2.decodedMappings=decodedMappings,exports2.eachMapping=eachMapping,exports2.encodedMap=encodedMap,exports2.encodedMappings=encodedMappings,exports2.generatedPositionFor=generatedPositionFor,exports2.isIgnored=isIgnored,exports2.originalPositionFor=originalPositionFor,exports2.presortedDecodedMap=presortedDecodedMap,exports2.sourceContentFor=sourceContentFor,exports2.traceSegment=traceSegment})},56895:(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{AV:()=>json,Cd:()=>decodePath,Ep:()=>createPath,Gn:()=>generatePath,J0:()=>invariant,LX:()=>matchPath,OF:()=>ErrorResponseImpl,PP:()=>createMemoryHistory,PQ:()=>defer,RQ:()=>joinPaths,WK:()=>isRouteErrorResponse,WS:()=>convertRouteMatchToUiMatch,X3:()=>AbortedDeferredError,Zn:()=>stripBasename,aU:()=>Action,cP:()=>parsePath,cm:()=>getResolveToMatches,fZ:()=>redirectDocument,fp:()=>matchRoutes,gx:()=>replace,i3:()=>resolvePath,lX:()=>createBrowserHistory,ov:()=>IDLE_FETCHER,p7:()=>createRouter,pC:()=>resolveTo,q_:()=>createHashHistory,qp:()=>IDLE_BLOCKER,uX:()=>redirect});/**
1
+ (self.__loadChunks_EnvTemplate=self.__loadChunks_EnvTemplate||[]).push([[8],{40653:function(__unused_webpack_module,exports,__webpack_require__){(function(global2,factory){factory(exports,__webpack_require__(78750),__webpack_require__(12697),__webpack_require__(2634))})(this,function(exports2,setArray,sourcemapCodec,traceMapping){"use strict";class GenMapping{constructor({file,sourceRoot}={}){this._names=new setArray.SetArray,this._sources=new setArray.SetArray,this._sourcesContent=[],this._mappings=[],this.file=file,this.sourceRoot=sourceRoot,this._ignoreList=new setArray.SetArray}}function cast(map){return map}function addSegment(map,genLine,genColumn,source,sourceLine,sourceColumn,name,content){return addSegmentInternal(!1,map,genLine,genColumn,source,sourceLine,sourceColumn,name,content)}function addMapping(map,mapping){return addMappingInternal(!1,map,mapping)}const maybeAddSegment=(map,genLine,genColumn,source,sourceLine,sourceColumn,name,content)=>addSegmentInternal(!0,map,genLine,genColumn,source,sourceLine,sourceColumn,name,content),maybeAddMapping=(map,mapping)=>addMappingInternal(!0,map,mapping);function setSourceContent(map,source,content){const{_sources:sources,_sourcesContent:sourcesContent}=map,index=setArray.put(sources,source);sourcesContent[index]=content}function setIgnore(map,source,ignore=!0){const{_sources:sources,_sourcesContent:sourcesContent,_ignoreList:ignoreList}=map,index=setArray.put(sources,source);index===sourcesContent.length&&(sourcesContent[index]=null),ignore?setArray.put(ignoreList,index):setArray.remove(ignoreList,index)}function toDecodedMap(map){const{_mappings:mappings,_sources:sources,_sourcesContent:sourcesContent,_names:names,_ignoreList:ignoreList}=map;return removeEmptyFinalLines(mappings),{version:3,file:map.file||void 0,names:names.array,sourceRoot:map.sourceRoot||void 0,sources:sources.array,sourcesContent,mappings,ignoreList:ignoreList.array}}function toEncodedMap(map){const decoded=toDecodedMap(map);return Object.assign(Object.assign({},decoded),{mappings:sourcemapCodec.encode(decoded.mappings)})}function fromMap(input){const map=new traceMapping.TraceMap(input),gen=new GenMapping({file:map.file,sourceRoot:map.sourceRoot});return putAll(gen._names,map.names),putAll(gen._sources,map.sources),gen._sourcesContent=map.sourcesContent||map.sources.map(()=>null),gen._mappings=traceMapping.decodedMappings(map),map.ignoreList&&putAll(gen._ignoreList,map.ignoreList),gen}function allMappings(map){const out=[],{_mappings:mappings,_sources:sources,_names:names}=map;for(let i=0;i<mappings.length;i++){const line=mappings[i];for(let j=0;j<line.length;j++){const seg=line[j],generated={line:i+1,column:seg[0]};let source,original,name;seg.length!==1&&(source=sources.array[seg[1]],original={line:seg[2]+1,column:seg[3]},seg.length===5&&(name=names.array[seg[4]])),out.push({generated,source,original,name})}}return out}function addSegmentInternal(skipable,map,genLine,genColumn,source,sourceLine,sourceColumn,name,content){const{_mappings:mappings,_sources:sources,_sourcesContent:sourcesContent,_names:names}=map,line=getLine(mappings,genLine),index=getColumnIndex(line,genColumn);if(!source)return skipable&&skipSourceless(line,index)?void 0:insert(line,index,[genColumn]);const sourcesIndex=setArray.put(sources,source),namesIndex=name?setArray.put(names,name):-1;if(sourcesIndex===sourcesContent.length&&(sourcesContent[sourcesIndex]=content??null),!(skipable&&skipSource(line,index,sourcesIndex,sourceLine,sourceColumn,namesIndex)))return insert(line,index,name?[genColumn,sourcesIndex,sourceLine,sourceColumn,namesIndex]:[genColumn,sourcesIndex,sourceLine,sourceColumn])}function getLine(mappings,index){for(let i=mappings.length;i<=index;i++)mappings[i]=[];return mappings[index]}function getColumnIndex(line,genColumn){let index=line.length;for(let i=index-1;i>=0;index=i--){const current=line[i];if(genColumn>=current[0])break}return index}function insert(array,index,value){for(let i=array.length;i>index;i--)array[i]=array[i-1];array[index]=value}function removeEmptyFinalLines(mappings){const{length}=mappings;let len=length;for(let i=len-1;i>=0&&!(mappings[i].length>0);len=i,i--);len<length&&(mappings.length=len)}function putAll(setarr,array){for(let i=0;i<array.length;i++)setArray.put(setarr,array[i])}function skipSourceless(line,index){return index===0?!0:line[index-1].length===1}function skipSource(line,index,sourcesIndex,sourceLine,sourceColumn,namesIndex){if(index===0)return!1;const prev=line[index-1];return prev.length===1?!1:sourcesIndex===prev[1]&&sourceLine===prev[2]&&sourceColumn===prev[3]&&namesIndex===(prev.length===5?prev[4]:-1)}function addMappingInternal(skipable,map,mapping){const{generated,source,original,name,content}=mapping;return source?addSegmentInternal(skipable,map,generated.line-1,generated.column,source,original.line-1,original.column,name,content):addSegmentInternal(skipable,map,generated.line-1,generated.column,null,null,null,null,null)}exports2.GenMapping=GenMapping,exports2.addMapping=addMapping,exports2.addSegment=addSegment,exports2.allMappings=allMappings,exports2.fromMap=fromMap,exports2.maybeAddMapping=maybeAddMapping,exports2.maybeAddSegment=maybeAddSegment,exports2.setIgnore=setIgnore,exports2.setSourceContent=setSourceContent,exports2.toDecodedMap=toDecodedMap,exports2.toEncodedMap=toEncodedMap,Object.defineProperty(exports2,"__esModule",{value:!0})})},54498:function(module){(function(global2,factory){module.exports=factory()})(this,function(){"use strict";const schemeRegex=/^[\w+.-]+:\/\//,urlRegex=/^([\w+.-]+:)\/\/([^@/#?]*@)?([^:/#?]*)(:\d+)?(\/[^#?]*)?(\?[^#]*)?(#.*)?/,fileRegex=/^file:(?:\/\/((?![a-z]:)[^/#?]*)?)?(\/?[^#?]*)(\?[^#]*)?(#.*)?/i;function isAbsoluteUrl(input){return schemeRegex.test(input)}function isSchemeRelativeUrl(input){return input.startsWith("//")}function isAbsolutePath(input){return input.startsWith("/")}function isFileUrl(input){return input.startsWith("file:")}function isRelative(input){return/^[.?#]/.test(input)}function parseAbsoluteUrl(input){const match=urlRegex.exec(input);return makeUrl(match[1],match[2]||"",match[3],match[4]||"",match[5]||"/",match[6]||"",match[7]||"")}function parseFileUrl(input){const match=fileRegex.exec(input),path=match[2];return makeUrl("file:","",match[1]||"","",isAbsolutePath(path)?path:"/"+path,match[3]||"",match[4]||"")}function makeUrl(scheme,user,host,port,path,query,hash){return{scheme,user,host,port,path,query,hash,type:7}}function parseUrl(input){if(isSchemeRelativeUrl(input)){const url2=parseAbsoluteUrl("http:"+input);return url2.scheme="",url2.type=6,url2}if(isAbsolutePath(input)){const url2=parseAbsoluteUrl("http://foo.com"+input);return url2.scheme="",url2.host="",url2.type=5,url2}if(isFileUrl(input))return parseFileUrl(input);if(isAbsoluteUrl(input))return parseAbsoluteUrl(input);const url=parseAbsoluteUrl("http://foo.com/"+input);return url.scheme="",url.host="",url.type=input?input.startsWith("?")?3:input.startsWith("#")?2:4:1,url}function stripPathFilename(path){if(path.endsWith("/.."))return path;const index=path.lastIndexOf("/");return path.slice(0,index+1)}function mergePaths(url,base){normalizePath(base,base.type),url.path==="/"?url.path=base.path:url.path=stripPathFilename(base.path)+url.path}function normalizePath(url,type){const rel=type<=4,pieces=url.path.split("/");let pointer=1,positive=0,addTrailingSlash=!1;for(let i=1;i<pieces.length;i++){const piece=pieces[i];if(!piece){addTrailingSlash=!0;continue}if(addTrailingSlash=!1,piece!=="."){if(piece===".."){positive?(addTrailingSlash=!0,positive--,pointer--):rel&&(pieces[pointer++]=piece);continue}pieces[pointer++]=piece,positive++}}let path="";for(let i=1;i<pointer;i++)path+="/"+pieces[i];(!path||addTrailingSlash&&!path.endsWith("/.."))&&(path+="/"),url.path=path}function resolve(input,base){if(!input&&!base)return"";const url=parseUrl(input);let inputType=url.type;if(base&&inputType!==7){const baseUrl=parseUrl(base),baseType=baseUrl.type;switch(inputType){case 1:url.hash=baseUrl.hash;case 2:url.query=baseUrl.query;case 3:case 4:mergePaths(url,baseUrl);case 5:url.user=baseUrl.user,url.host=baseUrl.host,url.port=baseUrl.port;case 6:url.scheme=baseUrl.scheme}baseType>inputType&&(inputType=baseType)}normalizePath(url,inputType);const queryHash=url.query+url.hash;switch(inputType){case 2:case 3:return queryHash;case 4:{const path=url.path.slice(1);return path?isRelative(base||input)&&!isRelative(path)?"./"+path+queryHash:path+queryHash:queryHash||"."}case 5:return url.path+queryHash;default:return url.scheme+"//"+url.user+url.host+url.port+url.path+queryHash}}return resolve})},78750:function(__unused_webpack_module,exports){(function(global2,factory){factory(exports)})(this,function(exports2){"use strict";class SetArray{constructor(){this._indexes={__proto__:null},this.array=[]}}function cast(set){return set}function get(setarr,key){return setarr._indexes[key]}function put(setarr,key){const index=get(setarr,key);if(index!==void 0)return index;const{array,_indexes:indexes}=setarr,length=array.push(key);return indexes[key]=length-1}function pop(setarr){const{array,_indexes:indexes}=setarr;if(array.length===0)return;const last=array.pop();indexes[last]=void 0}function remove(setarr,key){const index=get(setarr,key);if(index===void 0)return;const{array,_indexes:indexes}=setarr;for(let i=index+1;i<array.length;i++){const k=array[i];array[i-1]=k,indexes[k]--}indexes[key]=void 0,array.pop()}exports2.SetArray=SetArray,exports2.get=get,exports2.pop=pop,exports2.put=put,exports2.remove=remove,Object.defineProperty(exports2,"__esModule",{value:!0})})},12697:function(__unused_webpack_module,exports,__webpack_require__){var Buffer=__webpack_require__(55872).Buffer;(function(global2,factory){factory(exports)})(this,function(exports2){"use strict";const comma=",".charCodeAt(0),semicolon=";".charCodeAt(0),chars="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",intToChar=new Uint8Array(64),charToInt=new Uint8Array(128);for(let i=0;i<chars.length;i++){const c=chars.charCodeAt(i);intToChar[i]=c,charToInt[c]=i}function decodeInteger(reader,relative){let value=0,shift=0,integer=0;do{const c=reader.next();integer=charToInt[c],value|=(integer&31)<<shift,shift+=5}while(integer&32);const shouldNegate=value&1;return value>>>=1,shouldNegate&&(value=-2147483648|-value),relative+value}function encodeInteger(builder,num,relative){let delta=num-relative;delta=delta<0?-delta<<1|1:delta<<1;do{let clamped=delta&31;delta>>>=5,delta>0&&(clamped|=32),builder.write(intToChar[clamped])}while(delta>0);return num}function hasMoreVlq(reader,max){return reader.pos>=max?!1:reader.peek()!==comma}const bufLength=1024*16,td=typeof TextDecoder<"u"?new TextDecoder:typeof Buffer<"u"?{decode(buf){return Buffer.from(buf.buffer,buf.byteOffset,buf.byteLength).toString()}}:{decode(buf){let out="";for(let i=0;i<buf.length;i++)out+=String.fromCharCode(buf[i]);return out}};class StringWriter{constructor(){this.pos=0,this.out="",this.buffer=new Uint8Array(bufLength)}write(v){const{buffer}=this;buffer[this.pos++]=v,this.pos===bufLength&&(this.out+=td.decode(buffer),this.pos=0)}flush(){const{buffer,out,pos}=this;return pos>0?out+td.decode(buffer.subarray(0,pos)):out}}class StringReader{constructor(buffer){this.pos=0,this.buffer=buffer}next(){return this.buffer.charCodeAt(this.pos++)}peek(){return this.buffer.charCodeAt(this.pos)}indexOf(char){const{buffer,pos}=this,idx=buffer.indexOf(char,pos);return idx===-1?buffer.length:idx}}const EMPTY=[];function decodeOriginalScopes(input){const{length}=input,reader=new StringReader(input),scopes=[],stack=[];let line=0;for(;reader.pos<length;reader.pos++){line=decodeInteger(reader,line);const column=decodeInteger(reader,0);if(!hasMoreVlq(reader,length)){const last=stack.pop();last[2]=line,last[3]=column;continue}const kind=decodeInteger(reader,0),scope=decodeInteger(reader,0)&1?[line,column,0,0,kind,decodeInteger(reader,0)]:[line,column,0,0,kind];let vars=EMPTY;if(hasMoreVlq(reader,length)){vars=[];do{const varsIndex=decodeInteger(reader,0);vars.push(varsIndex)}while(hasMoreVlq(reader,length))}scope.vars=vars,scopes.push(scope),stack.push(scope)}return scopes}function encodeOriginalScopes(scopes){const writer=new StringWriter;for(let i=0;i<scopes.length;)i=_encodeOriginalScopes(scopes,i,writer,[0]);return writer.flush()}function _encodeOriginalScopes(scopes,index,writer,state){const scope=scopes[index],{0:startLine,1:startColumn,2:endLine,3:endColumn,4:kind,vars}=scope;index>0&&writer.write(comma),state[0]=encodeInteger(writer,startLine,state[0]),encodeInteger(writer,startColumn,0),encodeInteger(writer,kind,0);const fields=scope.length===6?1:0;encodeInteger(writer,fields,0),scope.length===6&&encodeInteger(writer,scope[5],0);for(const v of vars)encodeInteger(writer,v,0);for(index++;index<scopes.length;){const next=scopes[index],{0:l,1:c}=next;if(l>endLine||l===endLine&&c>=endColumn)break;index=_encodeOriginalScopes(scopes,index,writer,state)}return writer.write(comma),state[0]=encodeInteger(writer,endLine,state[0]),encodeInteger(writer,endColumn,0),index}function decodeGeneratedRanges(input){const{length}=input,reader=new StringReader(input),ranges=[],stack=[];let genLine=0,definitionSourcesIndex=0,definitionScopeIndex=0,callsiteSourcesIndex=0,callsiteLine=0,callsiteColumn=0,bindingLine=0,bindingColumn=0;do{const semi=reader.indexOf(";");let genColumn=0;for(;reader.pos<semi;reader.pos++){if(genColumn=decodeInteger(reader,genColumn),!hasMoreVlq(reader,semi)){const last=stack.pop();last[2]=genLine,last[3]=genColumn;continue}const fields=decodeInteger(reader,0),hasDefinition=fields&1,hasCallsite=fields&2,hasScope=fields&4;let callsite=null,bindings=EMPTY,range;if(hasDefinition){const defSourcesIndex=decodeInteger(reader,definitionSourcesIndex);definitionScopeIndex=decodeInteger(reader,definitionSourcesIndex===defSourcesIndex?definitionScopeIndex:0),definitionSourcesIndex=defSourcesIndex,range=[genLine,genColumn,0,0,defSourcesIndex,definitionScopeIndex]}else range=[genLine,genColumn,0,0];if(range.isScope=!!hasScope,hasCallsite){const prevCsi=callsiteSourcesIndex,prevLine=callsiteLine;callsiteSourcesIndex=decodeInteger(reader,callsiteSourcesIndex);const sameSource=prevCsi===callsiteSourcesIndex;callsiteLine=decodeInteger(reader,sameSource?callsiteLine:0),callsiteColumn=decodeInteger(reader,sameSource&&prevLine===callsiteLine?callsiteColumn:0),callsite=[callsiteSourcesIndex,callsiteLine,callsiteColumn]}if(range.callsite=callsite,hasMoreVlq(reader,semi)){bindings=[];do{bindingLine=genLine,bindingColumn=genColumn;const expressionsCount=decodeInteger(reader,0);let expressionRanges;if(expressionsCount<-1){expressionRanges=[[decodeInteger(reader,0)]];for(let i=-1;i>expressionsCount;i--){const prevBl=bindingLine;bindingLine=decodeInteger(reader,bindingLine),bindingColumn=decodeInteger(reader,bindingLine===prevBl?bindingColumn:0);const expression=decodeInteger(reader,0);expressionRanges.push([expression,bindingLine,bindingColumn])}}else expressionRanges=[[expressionsCount]];bindings.push(expressionRanges)}while(hasMoreVlq(reader,semi))}range.bindings=bindings,ranges.push(range),stack.push(range)}genLine++,reader.pos=semi+1}while(reader.pos<length);return ranges}function encodeGeneratedRanges(ranges){if(ranges.length===0)return"";const writer=new StringWriter;for(let i=0;i<ranges.length;)i=_encodeGeneratedRanges(ranges,i,writer,[0,0,0,0,0,0,0]);return writer.flush()}function _encodeGeneratedRanges(ranges,index,writer,state){const range=ranges[index],{0:startLine,1:startColumn,2:endLine,3:endColumn,isScope,callsite,bindings}=range;state[0]<startLine?(catchupLine(writer,state[0],startLine),state[0]=startLine,state[1]=0):index>0&&writer.write(comma),state[1]=encodeInteger(writer,range[1],state[1]);const fields=(range.length===6?1:0)|(callsite?2:0)|(isScope?4:0);if(encodeInteger(writer,fields,0),range.length===6){const{4:sourcesIndex,5:scopesIndex}=range;sourcesIndex!==state[2]&&(state[3]=0),state[2]=encodeInteger(writer,sourcesIndex,state[2]),state[3]=encodeInteger(writer,scopesIndex,state[3])}if(callsite){const{0:sourcesIndex,1:callLine,2:callColumn}=range.callsite;sourcesIndex!==state[4]?(state[5]=0,state[6]=0):callLine!==state[5]&&(state[6]=0),state[4]=encodeInteger(writer,sourcesIndex,state[4]),state[5]=encodeInteger(writer,callLine,state[5]),state[6]=encodeInteger(writer,callColumn,state[6])}if(bindings)for(const binding of bindings){binding.length>1&&encodeInteger(writer,-binding.length,0);const expression=binding[0][0];encodeInteger(writer,expression,0);let bindingStartLine=startLine,bindingStartColumn=startColumn;for(let i=1;i<binding.length;i++){const expRange=binding[i];bindingStartLine=encodeInteger(writer,expRange[1],bindingStartLine),bindingStartColumn=encodeInteger(writer,expRange[2],bindingStartColumn),encodeInteger(writer,expRange[0],0)}}for(index++;index<ranges.length;){const next=ranges[index],{0:l,1:c}=next;if(l>endLine||l===endLine&&c>=endColumn)break;index=_encodeGeneratedRanges(ranges,index,writer,state)}return state[0]<endLine?(catchupLine(writer,state[0],endLine),state[0]=endLine,state[1]=0):writer.write(comma),state[1]=encodeInteger(writer,endColumn,state[1]),index}function catchupLine(writer,lastLine,line){do writer.write(semicolon);while(++lastLine<line)}function decode(mappings){const{length}=mappings,reader=new StringReader(mappings),decoded=[];let genColumn=0,sourcesIndex=0,sourceLine=0,sourceColumn=0,namesIndex=0;do{const semi=reader.indexOf(";"),line=[];let sorted=!0,lastCol=0;for(genColumn=0;reader.pos<semi;){let seg;genColumn=decodeInteger(reader,genColumn),genColumn<lastCol&&(sorted=!1),lastCol=genColumn,hasMoreVlq(reader,semi)?(sourcesIndex=decodeInteger(reader,sourcesIndex),sourceLine=decodeInteger(reader,sourceLine),sourceColumn=decodeInteger(reader,sourceColumn),hasMoreVlq(reader,semi)?(namesIndex=decodeInteger(reader,namesIndex),seg=[genColumn,sourcesIndex,sourceLine,sourceColumn,namesIndex]):seg=[genColumn,sourcesIndex,sourceLine,sourceColumn]):seg=[genColumn],line.push(seg),reader.pos++}sorted||sort(line),decoded.push(line),reader.pos=semi+1}while(reader.pos<=length);return decoded}function sort(line){line.sort(sortComparator)}function sortComparator(a,b){return a[0]-b[0]}function encode(decoded){const writer=new StringWriter;let sourcesIndex=0,sourceLine=0,sourceColumn=0,namesIndex=0;for(let i=0;i<decoded.length;i++){const line=decoded[i];if(i>0&&writer.write(semicolon),line.length===0)continue;let genColumn=0;for(let j=0;j<line.length;j++){const segment=line[j];j>0&&writer.write(comma),genColumn=encodeInteger(writer,segment[0],genColumn),segment.length!==1&&(sourcesIndex=encodeInteger(writer,segment[1],sourcesIndex),sourceLine=encodeInteger(writer,segment[2],sourceLine),sourceColumn=encodeInteger(writer,segment[3],sourceColumn),segment.length!==4&&(namesIndex=encodeInteger(writer,segment[4],namesIndex)))}}return writer.flush()}exports2.decode=decode,exports2.decodeGeneratedRanges=decodeGeneratedRanges,exports2.decodeOriginalScopes=decodeOriginalScopes,exports2.encode=encode,exports2.encodeGeneratedRanges=encodeGeneratedRanges,exports2.encodeOriginalScopes=encodeOriginalScopes,Object.defineProperty(exports2,"__esModule",{value:!0})})},2634:function(__unused_webpack_module,exports,__webpack_require__){(function(global2,factory){factory(exports,__webpack_require__(12697),__webpack_require__(54498))})(this,function(exports2,sourcemapCodec,resolveUri){"use strict";function resolve(input,base){return base&&!base.endsWith("/")&&(base+="/"),resolveUri(input,base)}function stripFilename(path){if(!path)return"";const index=path.lastIndexOf("/");return path.slice(0,index+1)}const COLUMN=0,SOURCES_INDEX=1,SOURCE_LINE=2,SOURCE_COLUMN=3,NAMES_INDEX=4,REV_GENERATED_LINE=1,REV_GENERATED_COLUMN=2;function maybeSort(mappings,owned){const unsortedIndex=nextUnsortedSegmentLine(mappings,0);if(unsortedIndex===mappings.length)return mappings;owned||(mappings=mappings.slice());for(let i=unsortedIndex;i<mappings.length;i=nextUnsortedSegmentLine(mappings,i+1))mappings[i]=sortSegments(mappings[i],owned);return mappings}function nextUnsortedSegmentLine(mappings,start){for(let i=start;i<mappings.length;i++)if(!isSorted(mappings[i]))return i;return mappings.length}function isSorted(line){for(let j=1;j<line.length;j++)if(line[j][COLUMN]<line[j-1][COLUMN])return!1;return!0}function sortSegments(line,owned){return owned||(line=line.slice()),line.sort(sortComparator)}function sortComparator(a,b){return a[COLUMN]-b[COLUMN]}let found=!1;function binarySearch(haystack,needle,low,high){for(;low<=high;){const mid=low+(high-low>>1),cmp=haystack[mid][COLUMN]-needle;if(cmp===0)return found=!0,mid;cmp<0?low=mid+1:high=mid-1}return found=!1,low-1}function upperBound(haystack,needle,index){for(let i=index+1;i<haystack.length&&haystack[i][COLUMN]===needle;index=i++);return index}function lowerBound(haystack,needle,index){for(let i=index-1;i>=0&&haystack[i][COLUMN]===needle;index=i--);return index}function memoizedState(){return{lastKey:-1,lastNeedle:-1,lastIndex:-1}}function memoizedBinarySearch(haystack,needle,state,key){const{lastKey,lastNeedle,lastIndex}=state;let low=0,high=haystack.length-1;if(key===lastKey){if(needle===lastNeedle)return found=lastIndex!==-1&&haystack[lastIndex][COLUMN]===needle,lastIndex;needle>=lastNeedle?low=lastIndex===-1?0:lastIndex:high=lastIndex}return state.lastKey=key,state.lastNeedle=needle,state.lastIndex=binarySearch(haystack,needle,low,high)}function buildBySources(decoded,memos){const sources=memos.map(buildNullArray);for(let i=0;i<decoded.length;i++){const line=decoded[i];for(let j=0;j<line.length;j++){const seg=line[j];if(seg.length===1)continue;const sourceIndex2=seg[SOURCES_INDEX],sourceLine=seg[SOURCE_LINE],sourceColumn=seg[SOURCE_COLUMN],originalSource=sources[sourceIndex2],originalLine=originalSource[sourceLine]||(originalSource[sourceLine]=[]),memo=memos[sourceIndex2];let index=upperBound(originalLine,sourceColumn,memoizedBinarySearch(originalLine,sourceColumn,memo,sourceLine));memo.lastIndex=++index,insert(originalLine,index,[sourceColumn,i,seg[COLUMN]])}}return sources}function insert(array,index,value){for(let i=array.length;i>index;i--)array[i]=array[i-1];array[index]=value}function buildNullArray(){return{__proto__:null}}const AnyMap=function(map,mapUrl){const parsed=parse(map);if(!("sections"in parsed))return new TraceMap(parsed,mapUrl);const mappings=[],sources=[],sourcesContent=[],names=[],ignoreList=[];recurse(parsed,mapUrl,mappings,sources,sourcesContent,names,ignoreList,0,0,1/0,1/0);const joined={version:3,file:parsed.file,names,sources,sourcesContent,mappings,ignoreList};return presortedDecodedMap(joined)};function parse(map){return typeof map=="string"?JSON.parse(map):map}function recurse(input,mapUrl,mappings,sources,sourcesContent,names,ignoreList,lineOffset,columnOffset,stopLine,stopColumn){const{sections}=input;for(let i=0;i<sections.length;i++){const{map,offset}=sections[i];let sl=stopLine,sc=stopColumn;if(i+1<sections.length){const nextOffset=sections[i+1].offset;sl=Math.min(stopLine,lineOffset+nextOffset.line),sl===stopLine?sc=Math.min(stopColumn,columnOffset+nextOffset.column):sl<stopLine&&(sc=columnOffset+nextOffset.column)}addSection(map,mapUrl,mappings,sources,sourcesContent,names,ignoreList,lineOffset+offset.line,columnOffset+offset.column,sl,sc)}}function addSection(input,mapUrl,mappings,sources,sourcesContent,names,ignoreList,lineOffset,columnOffset,stopLine,stopColumn){const parsed=parse(input);if("sections"in parsed)return recurse(...arguments);const map=new TraceMap(parsed,mapUrl),sourcesOffset=sources.length,namesOffset=names.length,decoded=decodedMappings(map),{resolvedSources,sourcesContent:contents,ignoreList:ignores}=map;if(append(sources,resolvedSources),append(names,map.names),contents)append(sourcesContent,contents);else for(let i=0;i<resolvedSources.length;i++)sourcesContent.push(null);if(ignores)for(let i=0;i<ignores.length;i++)ignoreList.push(ignores[i]+sourcesOffset);for(let i=0;i<decoded.length;i++){const lineI=lineOffset+i;if(lineI>stopLine)return;const out=getLine(mappings,lineI),cOffset=i===0?columnOffset:0,line=decoded[i];for(let j=0;j<line.length;j++){const seg=line[j],column=cOffset+seg[COLUMN];if(lineI===stopLine&&column>=stopColumn)return;if(seg.length===1){out.push([column]);continue}const sourcesIndex=sourcesOffset+seg[SOURCES_INDEX],sourceLine=seg[SOURCE_LINE],sourceColumn=seg[SOURCE_COLUMN];out.push(seg.length===4?[column,sourcesIndex,sourceLine,sourceColumn]:[column,sourcesIndex,sourceLine,sourceColumn,namesOffset+seg[NAMES_INDEX]])}}}function append(arr,other){for(let i=0;i<other.length;i++)arr.push(other[i])}function getLine(arr,index){for(let i=arr.length;i<=index;i++)arr[i]=[];return arr[index]}const LINE_GTR_ZERO="`line` must be greater than 0 (lines start at line 1)",COL_GTR_EQ_ZERO="`column` must be greater than or equal to 0 (columns start at column 0)",LEAST_UPPER_BOUND=-1,GREATEST_LOWER_BOUND=1;class TraceMap{constructor(map,mapUrl){const isString=typeof map=="string";if(!isString&&map._decodedMemo)return map;const parsed=isString?JSON.parse(map):map,{version,file,names,sourceRoot,sources,sourcesContent}=parsed;this.version=version,this.file=file,this.names=names||[],this.sourceRoot=sourceRoot,this.sources=sources,this.sourcesContent=sourcesContent,this.ignoreList=parsed.ignoreList||parsed.x_google_ignoreList||void 0;const from=resolve(sourceRoot||"",stripFilename(mapUrl));this.resolvedSources=sources.map(s=>resolve(s||"",from));const{mappings}=parsed;typeof mappings=="string"?(this._encoded=mappings,this._decoded=void 0):(this._encoded=void 0,this._decoded=maybeSort(mappings,isString)),this._decodedMemo=memoizedState(),this._bySources=void 0,this._bySourceMemos=void 0}}function cast(map){return map}function encodedMappings(map){var _a,_b;return(_a=(_b=map)._encoded)!==null&&_a!==void 0?_a:_b._encoded=sourcemapCodec.encode(map._decoded)}function decodedMappings(map){var _a;return(_a=map)._decoded||(_a._decoded=sourcemapCodec.decode(map._encoded))}function traceSegment(map,line,column){const decoded=decodedMappings(map);if(line>=decoded.length)return null;const segments=decoded[line],index=traceSegmentInternal(segments,map._decodedMemo,line,column,GREATEST_LOWER_BOUND);return index===-1?null:segments[index]}function originalPositionFor(map,needle){let{line,column,bias}=needle;if(line--,line<0)throw new Error(LINE_GTR_ZERO);if(column<0)throw new Error(COL_GTR_EQ_ZERO);const decoded=decodedMappings(map);if(line>=decoded.length)return OMapping(null,null,null,null);const segments=decoded[line],index=traceSegmentInternal(segments,map._decodedMemo,line,column,bias||GREATEST_LOWER_BOUND);if(index===-1)return OMapping(null,null,null,null);const segment=segments[index];if(segment.length===1)return OMapping(null,null,null,null);const{names,resolvedSources}=map;return OMapping(resolvedSources[segment[SOURCES_INDEX]],segment[SOURCE_LINE]+1,segment[SOURCE_COLUMN],segment.length===5?names[segment[NAMES_INDEX]]:null)}function generatedPositionFor(map,needle){const{source,line,column,bias}=needle;return generatedPosition(map,source,line,column,bias||GREATEST_LOWER_BOUND,!1)}function allGeneratedPositionsFor(map,needle){const{source,line,column,bias}=needle;return generatedPosition(map,source,line,column,bias||LEAST_UPPER_BOUND,!0)}function eachMapping(map,cb){const decoded=decodedMappings(map),{names,resolvedSources}=map;for(let i=0;i<decoded.length;i++){const line=decoded[i];for(let j=0;j<line.length;j++){const seg=line[j],generatedLine=i+1,generatedColumn=seg[0];let source=null,originalLine=null,originalColumn=null,name=null;seg.length!==1&&(source=resolvedSources[seg[1]],originalLine=seg[2]+1,originalColumn=seg[3]),seg.length===5&&(name=names[seg[4]]),cb({generatedLine,generatedColumn,source,originalLine,originalColumn,name})}}}function sourceIndex(map,source){const{sources,resolvedSources}=map;let index=sources.indexOf(source);return index===-1&&(index=resolvedSources.indexOf(source)),index}function sourceContentFor(map,source){const{sourcesContent}=map;if(sourcesContent==null)return null;const index=sourceIndex(map,source);return index===-1?null:sourcesContent[index]}function isIgnored(map,source){const{ignoreList}=map;if(ignoreList==null)return!1;const index=sourceIndex(map,source);return index===-1?!1:ignoreList.includes(index)}function presortedDecodedMap(map,mapUrl){const tracer=new TraceMap(clone(map,[]),mapUrl);return tracer._decoded=map.mappings,tracer}function decodedMap(map){return clone(map,decodedMappings(map))}function encodedMap(map){return clone(map,encodedMappings(map))}function clone(map,mappings){return{version:map.version,file:map.file,names:map.names,sourceRoot:map.sourceRoot,sources:map.sources,sourcesContent:map.sourcesContent,mappings,ignoreList:map.ignoreList||map.x_google_ignoreList}}function OMapping(source,line,column,name){return{source,line,column,name}}function GMapping(line,column){return{line,column}}function traceSegmentInternal(segments,memo,line,column,bias){let index=memoizedBinarySearch(segments,column,memo,line);return found?index=(bias===LEAST_UPPER_BOUND?upperBound:lowerBound)(segments,column,index):bias===LEAST_UPPER_BOUND&&index++,index===-1||index===segments.length?-1:index}function sliceGeneratedPositions(segments,memo,line,column,bias){let min=traceSegmentInternal(segments,memo,line,column,GREATEST_LOWER_BOUND);if(!found&&bias===LEAST_UPPER_BOUND&&min++,min===-1||min===segments.length)return[];const matchedColumn=found?column:segments[min][COLUMN];found||(min=lowerBound(segments,matchedColumn,min));const max=upperBound(segments,matchedColumn,min),result=[];for(;min<=max;min++){const segment=segments[min];result.push(GMapping(segment[REV_GENERATED_LINE]+1,segment[REV_GENERATED_COLUMN]))}return result}function generatedPosition(map,source,line,column,bias,all){var _a;if(line--,line<0)throw new Error(LINE_GTR_ZERO);if(column<0)throw new Error(COL_GTR_EQ_ZERO);const{sources,resolvedSources}=map;let sourceIndex2=sources.indexOf(source);if(sourceIndex2===-1&&(sourceIndex2=resolvedSources.indexOf(source)),sourceIndex2===-1)return all?[]:GMapping(null,null);const segments=((_a=map)._bySources||(_a._bySources=buildBySources(decodedMappings(map),map._bySourceMemos=sources.map(memoizedState))))[sourceIndex2][line];if(segments==null)return all?[]:GMapping(null,null);const memo=map._bySourceMemos[sourceIndex2];if(all)return sliceGeneratedPositions(segments,memo,line,column,bias);const index=traceSegmentInternal(segments,memo,line,column,bias);if(index===-1)return GMapping(null,null);const segment=segments[index];return GMapping(segment[REV_GENERATED_LINE]+1,segment[REV_GENERATED_COLUMN])}exports2.AnyMap=AnyMap,exports2.GREATEST_LOWER_BOUND=GREATEST_LOWER_BOUND,exports2.LEAST_UPPER_BOUND=LEAST_UPPER_BOUND,exports2.TraceMap=TraceMap,exports2.allGeneratedPositionsFor=allGeneratedPositionsFor,exports2.decodedMap=decodedMap,exports2.decodedMappings=decodedMappings,exports2.eachMapping=eachMapping,exports2.encodedMap=encodedMap,exports2.encodedMappings=encodedMappings,exports2.generatedPositionFor=generatedPositionFor,exports2.isIgnored=isIgnored,exports2.originalPositionFor=originalPositionFor,exports2.presortedDecodedMap=presortedDecodedMap,exports2.sourceContentFor=sourceContentFor,exports2.traceSegment=traceSegment})},56895:(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{AV:()=>json,Cd:()=>decodePath,Ep:()=>createPath,Gn:()=>generatePath,J0:()=>invariant,LX:()=>matchPath,OF:()=>ErrorResponseImpl,PP:()=>createMemoryHistory,PQ:()=>defer,RQ:()=>joinPaths,WK:()=>isRouteErrorResponse,WS:()=>convertRouteMatchToUiMatch,X3:()=>AbortedDeferredError,Zn:()=>stripBasename,aU:()=>Action,cP:()=>parsePath,cm:()=>getResolveToMatches,fZ:()=>redirectDocument,fp:()=>matchRoutes,gx:()=>replace,i3:()=>resolvePath,lX:()=>createBrowserHistory,ov:()=>IDLE_FETCHER,p7:()=>createRouter,pC:()=>resolveTo,q_:()=>createHashHistory,qp:()=>IDLE_BLOCKER,uX:()=>redirect});/**
2
2
  * @remix-run/router v1.19.2
3
3
  *
4
4
  * Copyright (c) Remix Software Inc.
@@ -687,4 +687,4 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
687
687
  `),headers=parseHeaders(message.slice(0,i)),contentType_1=headers["content-type"],contentType_1&&contentType_1.toLowerCase().indexOf("application/json")===-1)throw new Error("Unsupported patch content type: application/json is required.");if(body=message.slice(i),body){if(result=parseJsonBody(response,body),Object.keys(result).length>1||"data"in result||"incremental"in result||"errors"in result||"payload"in result)if(isApolloPayloadResult(result)){if(next={},"payload"in result){if(Object.keys(result).length===1&&result.payload===null)return[2];next=tslib_es6_assign({},result.payload)}"errors"in result&&(next=tslib_es6_assign(tslib_es6_assign({},next),{extensions:tslib_es6_assign(tslib_es6_assign({},"extensions"in next?next.extensions:null),(_c={},_c[PROTOCOL_ERRORS_SYMBOL]=result.errors,_c))})),nextValue(next)}else nextValue(result);else if(Object.keys(result).length===1&&"hasNext"in result&&!result.hasNext)return[2]}bi=buffer.indexOf(boundary)}return[3,1];case 3:return[2]}})})}function parseHeaders(headerText){var headersInit={};return headerText.split(`
688
688
  `).forEach(function(line){var i=line.indexOf(":");if(i>-1){var name_1=line.slice(0,i).trim().toLowerCase(),value=line.slice(i+1).trim();headersInit[name_1]=value}}),headersInit}function parseJsonBody(response,bodyText){if(response.status>=300){var getResult=function(){try{return JSON.parse(bodyText)}catch{return bodyText}};throwServerError(response,getResult(),"Response not successful: Received status code ".concat(response.status))}try{return JSON.parse(bodyText)}catch(err){var parseError=err;throw parseError.name="ServerParseError",parseError.response=response,parseError.statusCode=response.status,parseError.bodyText=bodyText,parseError}}function handleError(err,observer){err.result&&err.result.errors&&err.result.data&&observer.next(err.result),observer.error(err)}function parseAndCheckHttpResponse(operations){return function(response){return response.text().then(function(bodyText){return parseJsonBody(response,bodyText)}).then(function(result){return!Array.isArray(result)&&!parseAndCheckHttpResponse_hasOwnProperty.call(result,"data")&&!parseAndCheckHttpResponse_hasOwnProperty.call(result,"errors")&&throwServerError(response,result,"Server response was missing for query '".concat(Array.isArray(operations)?operations.map(function(op){return op.operationName}):operations.operationName,"'.")),result})}}var checkFetcher=function(fetcher){if(!fetcher&&typeof fetch>"u")throw newInvariantError(38)},printer=__webpack_require__(69377),printCache,print=Object.assign(function(ast){var result=printCache.get(ast);return result||(result=(0,printer.print)(ast),printCache.set(ast,result)),result},{reset:function(){printCache=new AutoCleanedWeakCache(cacheSizes.print||2e3)}});print.reset(),globalThis.__DEV__!==!1&&registerGlobalCache("print",function(){return printCache?printCache.size:0});var defaultHttpOptions={includeQuery:!0,includeExtensions:!1,preserveHeaderCase:!1},defaultHeaders={accept:"*/*","content-type":"application/json"},defaultOptions={method:"POST"},fallbackHttpConfig={http:defaultHttpOptions,headers:defaultHeaders,options:defaultOptions},defaultPrinter=function(ast,printer2){return printer2(ast)};function selectHttpOptionsAndBody(operation,fallbackConfig){for(var configs=[],_i=2;_i<arguments.length;_i++)configs[_i-2]=arguments[_i];return configs.unshift(fallbackConfig),selectHttpOptionsAndBodyInternal.apply(void 0,__spreadArray([operation,defaultPrinter],configs,!1))}function selectHttpOptionsAndBodyInternal(operation,printer2){for(var configs=[],_i=2;_i<arguments.length;_i++)configs[_i-2]=arguments[_i];var options={},http={};configs.forEach(function(config){options=tslib_es6_assign(tslib_es6_assign(tslib_es6_assign({},options),config.options),{headers:tslib_es6_assign(tslib_es6_assign({},options.headers),config.headers)}),config.credentials&&(options.credentials=config.credentials),http=tslib_es6_assign(tslib_es6_assign({},http),config.http)}),options.headers&&(options.headers=removeDuplicateHeaders(options.headers,http.preserveHeaderCase));var operationName2=operation.operationName,extensions=operation.extensions,variables=operation.variables,query=operation.query,body={operationName:operationName2,variables};return http.includeExtensions&&(body.extensions=extensions),http.includeQuery&&(body.query=printer2(query,print)),{options,body}}function removeDuplicateHeaders(headers,preserveHeaderCase){if(!preserveHeaderCase){var normalizedHeaders_1={};return Object.keys(Object(headers)).forEach(function(name){normalizedHeaders_1[name.toLowerCase()]=headers[name]}),normalizedHeaders_1}var headerData={};Object.keys(Object(headers)).forEach(function(name){headerData[name.toLowerCase()]={originalName:name,value:headers[name]}});var normalizedHeaders={};return Object.keys(headerData).forEach(function(name){normalizedHeaders[headerData[name].originalName]=headerData[name].value}),normalizedHeaders}function rewriteURIForGET(chosenURI,body){var queryParams=[],addQueryParam=function(key,value){queryParams.push("".concat(key,"=").concat(encodeURIComponent(value)))};if("query"in body&&addQueryParam("query",body.query),body.operationName&&addQueryParam("operationName",body.operationName),body.variables){var serializedVariables=void 0;try{serializedVariables=serializeFetchParameter(body.variables,"Variables map")}catch(parseError){return{parseError}}addQueryParam("variables",serializedVariables)}if(body.extensions){var serializedExtensions=void 0;try{serializedExtensions=serializeFetchParameter(body.extensions,"Extensions map")}catch(parseError){return{parseError}}addQueryParam("extensions",serializedExtensions)}var fragment="",preFragment=chosenURI,fragmentStart=chosenURI.indexOf("#");fragmentStart!==-1&&(fragment=chosenURI.substr(fragmentStart),preFragment=chosenURI.substr(0,fragmentStart));var queryParamsPrefix=preFragment.indexOf("?")===-1?"?":"&",newURI=preFragment+queryParamsPrefix+queryParams.join("&")+fragment;return{newURI}}function fromError(errorValue){return new Observable(function(observer){observer.error(errorValue)})}function filterOperationVariables(variables,query){var result=tslib_es6_assign({},variables),unusedNames=new Set(Object.keys(variables));return(0,visitor.Vn)(query,{Variable:function(node,_key,parent){parent&&parent.kind!=="VariableDefinition"&&unusedNames.delete(node.name.value)}}),unusedNames.forEach(function(name){delete result[name]}),result}var kinds=__webpack_require__(47336),TYPENAME_FIELD={kind:kinds.h.FIELD,name:{kind:kinds.h.NAME,value:"__typename"}};function isEmpty(op,fragmentMap){return!op||op.selectionSet.selections.every(function(selection){return selection.kind===kinds.h.FRAGMENT_SPREAD&&isEmpty(fragmentMap[selection.name.value],fragmentMap)})}function nullIfDocIsEmpty(doc){return isEmpty(getOperationDefinition(doc)||getFragmentDefinition(doc),createFragmentMap(getFragmentDefinitions(doc)))?null:doc}function getDirectiveMatcher(configs){var names=new Map,tests=new Map;return configs.forEach(function(directive){directive&&(directive.name?names.set(directive.name,directive):directive.test&&tests.set(directive.test,directive))}),function(directive){var config=names.get(directive.name.value);return!config&&tests.size&&tests.forEach(function(testConfig,test){test(directive)&&(config=testConfig)}),config}}function makeInUseGetterFunction(defaultKey){var map=new Map;return function(key){key===void 0&&(key=defaultKey);var inUse=map.get(key);return inUse||map.set(key,inUse={variables:new Set,fragmentSpreads:new Set}),inUse}}function removeDirectivesFromDocument(directives,doc){getFromAST_checkDocument(doc);for(var getInUseByOperationName=makeInUseGetterFunction(""),getInUseByFragmentName=makeInUseGetterFunction(""),getInUse=function(ancestors){for(var p=0,ancestor=void 0;p<ancestors.length&&(ancestor=ancestors[p]);++p)if(!isArray(ancestor)){if(ancestor.kind===kinds.h.OPERATION_DEFINITION)return getInUseByOperationName(ancestor.name&&ancestor.name.value);if(ancestor.kind===kinds.h.FRAGMENT_DEFINITION)return getInUseByFragmentName(ancestor.name.value)}return globalThis.__DEV__!==!1&&invariantWrappers_invariant.error(86),null},operationCount=0,i=doc.definitions.length-1;i>=0;--i)doc.definitions[i].kind===kinds.h.OPERATION_DEFINITION&&++operationCount;var directiveMatcher=getDirectiveMatcher(directives),shouldRemoveField=function(nodeDirectives){return isNonEmptyArray(nodeDirectives)&&nodeDirectives.map(directiveMatcher).some(function(config){return config&&config.remove})},originalFragmentDefsByPath=new Map,firstVisitMadeChanges=!1,fieldOrInlineFragmentVisitor={enter:function(node){if(shouldRemoveField(node.directives))return firstVisitMadeChanges=!0,null}},docWithoutDirectiveSubtrees=(0,visitor.Vn)(doc,{Field:fieldOrInlineFragmentVisitor,InlineFragment:fieldOrInlineFragmentVisitor,VariableDefinition:{enter:function(){return!1}},Variable:{enter:function(node,_key,_parent,_path,ancestors){var inUse=getInUse(ancestors);inUse&&inUse.variables.add(node.name.value)}},FragmentSpread:{enter:function(node,_key,_parent,_path,ancestors){if(shouldRemoveField(node.directives))return firstVisitMadeChanges=!0,null;var inUse=getInUse(ancestors);inUse&&inUse.fragmentSpreads.add(node.name.value)}},FragmentDefinition:{enter:function(node,_key,_parent,path){originalFragmentDefsByPath.set(JSON.stringify(path),node)},leave:function(node,_key,_parent,path){var originalNode=originalFragmentDefsByPath.get(JSON.stringify(path));if(node===originalNode)return node;if(operationCount>0&&node.selectionSet.selections.every(function(selection){return selection.kind===kinds.h.FIELD&&selection.name.value==="__typename"}))return getInUseByFragmentName(node.name.value).removed=!0,firstVisitMadeChanges=!0,null}},Directive:{leave:function(node){if(directiveMatcher(node))return firstVisitMadeChanges=!0,null}}});if(!firstVisitMadeChanges)return doc;var populateTransitiveVars=function(inUse){return inUse.transitiveVars||(inUse.transitiveVars=new Set(inUse.variables),inUse.removed||inUse.fragmentSpreads.forEach(function(childFragmentName){populateTransitiveVars(getInUseByFragmentName(childFragmentName)).transitiveVars.forEach(function(varName){inUse.transitiveVars.add(varName)})})),inUse},allFragmentNamesUsed=new Set;docWithoutDirectiveSubtrees.definitions.forEach(function(def){def.kind===kinds.h.OPERATION_DEFINITION?populateTransitiveVars(getInUseByOperationName(def.name&&def.name.value)).fragmentSpreads.forEach(function(childFragmentName){allFragmentNamesUsed.add(childFragmentName)}):def.kind===kinds.h.FRAGMENT_DEFINITION&&operationCount===0&&!getInUseByFragmentName(def.name.value).removed&&allFragmentNamesUsed.add(def.name.value)}),allFragmentNamesUsed.forEach(function(fragmentName){populateTransitiveVars(getInUseByFragmentName(fragmentName)).fragmentSpreads.forEach(function(childFragmentName){allFragmentNamesUsed.add(childFragmentName)})});var fragmentWillBeRemoved=function(fragmentName){return!!(!allFragmentNamesUsed.has(fragmentName)||getInUseByFragmentName(fragmentName).removed)},enterVisitor={enter:function(node){if(fragmentWillBeRemoved(node.name.value))return null}};return nullIfDocIsEmpty((0,visitor.Vn)(docWithoutDirectiveSubtrees,{FragmentSpread:enterVisitor,FragmentDefinition:enterVisitor,OperationDefinition:{leave:function(node){if(node.variableDefinitions){var usedVariableNames_1=populateTransitiveVars(getInUseByOperationName(node.name&&node.name.value)).transitiveVars;if(usedVariableNames_1.size<node.variableDefinitions.length)return tslib_es6_assign(tslib_es6_assign({},node),{variableDefinitions:node.variableDefinitions.filter(function(varDef){return usedVariableNames_1.has(varDef.variable.name.value)})})}}}}))}var addTypenameToDocument=Object.assign(function(doc){return(0,visitor.Vn)(doc,{SelectionSet:{enter:function(node,_key,parent){if(!(parent&&parent.kind===kinds.h.OPERATION_DEFINITION)){var selections=node.selections;if(!!selections){var skip=selections.some(function(selection){return storeUtils_isField(selection)&&(selection.name.value==="__typename"||selection.name.value.lastIndexOf("__",0)===0)});if(!skip){var field=parent;if(!(storeUtils_isField(field)&&field.directives&&field.directives.some(function(d){return d.name.value==="export"})))return tslib_es6_assign(tslib_es6_assign({},node),{selections:__spreadArray(__spreadArray([],selections,!0),[TYPENAME_FIELD],!1)})}}}}}})},{added:function(field){return field===TYPENAME_FIELD}}),connectionRemoveConfig={test:function(directive){var willRemove=directive.name.value==="connection";return willRemove&&(!directive.arguments||!directive.arguments.some(function(arg){return arg.name.value==="key"}))&&globalThis.__DEV__!==!1&&invariantWrappers_invariant.warn(87),willRemove}};function removeConnectionDirectiveFromDocument(doc){return removeDirectivesFromDocument([connectionRemoveConfig],checkDocument(doc))}function hasDirectivesInSelectionSet(directives,selectionSet,nestedCheck){return nestedCheck===void 0&&(nestedCheck=!0),!!selectionSet&&selectionSet.selections&&selectionSet.selections.some(function(selection){return hasDirectivesInSelection(directives,selection,nestedCheck)})}function hasDirectivesInSelection(directives,selection,nestedCheck){return nestedCheck===void 0&&(nestedCheck=!0),isField(selection)?selection.directives?selection.directives.some(getDirectiveMatcher(directives))||nestedCheck&&hasDirectivesInSelectionSet(directives,selection.selectionSet,nestedCheck):!1:!0}function getArgumentMatcher(config){return function(argument){return config.some(function(aConfig){return argument.value&&argument.value.kind===Kind.VARIABLE&&argument.value.name&&(aConfig.name===argument.value.name.value||aConfig.test&&aConfig.test(argument))})}}function removeArgumentsFromDocument(config,doc){var argMatcher=getArgumentMatcher(config);return nullIfDocIsEmpty(visit(doc,{OperationDefinition:{enter:function(node){return __assign(__assign({},node),{variableDefinitions:node.variableDefinitions?node.variableDefinitions.filter(function(varDef){return!config.some(function(arg){return arg.name===varDef.variable.name.value})}):[]})}},Field:{enter:function(node){var shouldRemoveField=config.some(function(argConfig){return argConfig.remove});if(shouldRemoveField){var argMatchCount_1=0;if(node.arguments&&node.arguments.forEach(function(arg){argMatcher(arg)&&(argMatchCount_1+=1)}),argMatchCount_1===1)return null}}},Argument:{enter:function(node){if(argMatcher(node))return null}}}))}function removeFragmentSpreadFromDocument(config,doc){function enter(node){if(config.some(function(def){return def.name===node.name.value}))return null}return nullIfDocIsEmpty(visit(doc,{FragmentSpread:{enter},FragmentDefinition:{enter}}))}function buildQueryFromSelectionSet(document2){var definition=getMainDefinition(document2),definitionOperation=definition.operation;if(definitionOperation==="query")return document2;var modifiedDoc=(0,visitor.Vn)(document2,{OperationDefinition:{enter:function(node){return tslib_es6_assign(tslib_es6_assign({},node),{operation:"query"})}}});return modifiedDoc}function removeClientSetsFromDocument(document2){getFromAST_checkDocument(document2);var modifiedDoc=removeDirectivesFromDocument([{test:function(directive){return directive.name.value==="client"},remove:!0}],document2);return modifiedDoc}var backupFetch=maybe(function(){return fetch}),createHttpLink=function(linkOptions){linkOptions===void 0&&(linkOptions={});var _a2=linkOptions.uri,uri=_a2===void 0?"/graphql":_a2,preferredFetch=linkOptions.fetch,_b=linkOptions.print,print2=_b===void 0?defaultPrinter:_b,includeExtensions=linkOptions.includeExtensions,preserveHeaderCase=linkOptions.preserveHeaderCase,useGETForQueries=linkOptions.useGETForQueries,_c=linkOptions.includeUnusedVariables,includeUnusedVariables=_c===void 0?!1:_c,requestOptions=__rest(linkOptions,["uri","fetch","print","includeExtensions","preserveHeaderCase","useGETForQueries","includeUnusedVariables"]);globalThis.__DEV__!==!1&&checkFetcher(preferredFetch||backupFetch);var linkConfig={http:{includeExtensions,preserveHeaderCase},options:requestOptions.fetchOptions,credentials:requestOptions.credentials,headers:requestOptions.headers};return new ApolloLink(function(operation){var chosenURI=selectURI(operation,uri),context=operation.getContext(),clientAwarenessHeaders={};if(context.clientAwareness){var _a3=context.clientAwareness,name_1=_a3.name,version2=_a3.version;name_1&&(clientAwarenessHeaders["apollographql-client-name"]=name_1),version2&&(clientAwarenessHeaders["apollographql-client-version"]=version2)}var contextHeaders=tslib_es6_assign(tslib_es6_assign({},clientAwarenessHeaders),context.headers),contextConfig={http:context.http,options:context.fetchOptions,credentials:context.credentials,headers:contextHeaders};if(hasDirectives(["client"],operation.query)){var transformedQuery=removeClientSetsFromDocument(operation.query);if(!transformedQuery)return fromError(new Error("HttpLink: Trying to send a client-only query to the server. To send to the server, ensure a non-client field is added to the query or set the `transformOptions.removeClientFields` option to `true`."));operation.query=transformedQuery}var _b2=selectHttpOptionsAndBodyInternal(operation,print2,fallbackHttpConfig,linkConfig,contextConfig),options=_b2.options,body=_b2.body;body.variables&&!includeUnusedVariables&&(body.variables=filterOperationVariables(body.variables,operation.query));var controller;!options.signal&&typeof AbortController<"u"&&(controller=new AbortController,options.signal=controller.signal);var definitionIsMutation=function(d){return d.kind==="OperationDefinition"&&d.operation==="mutation"},definitionIsSubscription=function(d){return d.kind==="OperationDefinition"&&d.operation==="subscription"},isSubscription=definitionIsSubscription(getMainDefinition(operation.query)),hasDefer=hasDirectives(["defer"],operation.query);if(useGETForQueries&&!operation.query.definitions.some(definitionIsMutation)&&(options.method="GET"),hasDefer||isSubscription){options.headers=options.headers||{};var acceptHeader="multipart/mixed;";isSubscription&&hasDefer&&globalThis.__DEV__!==!1&&invariantWrappers_invariant.warn(39),isSubscription?acceptHeader+="boundary=graphql;subscriptionSpec=1.0,application/json":hasDefer&&(acceptHeader+="deferSpec=20220824,application/json"),options.headers.accept=acceptHeader}if(options.method==="GET"){var _c2=rewriteURIForGET(chosenURI,body),newURI=_c2.newURI,parseError=_c2.parseError;if(parseError)return fromError(parseError);chosenURI=newURI}else try{options.body=serializeFetchParameter(body,"Payload")}catch(parseError2){return fromError(parseError2)}return new Observable(function(observer){var currentFetch=preferredFetch||maybe(function(){return fetch})||backupFetch,observerNext=observer.next.bind(observer);return currentFetch(chosenURI,options).then(function(response){var _a4;operation.setContext({response});var ctype=(_a4=response.headers)===null||_a4===void 0?void 0:_a4.get("content-type");return ctype!==null&&/^multipart\/mixed/i.test(ctype)?readMultipartBody(response,observerNext):parseAndCheckHttpResponse(operation)(response).then(observerNext)}).then(function(){controller=void 0,observer.complete()}).catch(function(err){controller=void 0,handleError(err,observer)}),function(){controller&&controller.abort()}})})},HttpLink=function(_super){__extends(HttpLink2,_super);function HttpLink2(options){options===void 0&&(options={});var _this=_super.call(this,createHttpLink(options).request)||this;return _this.options=options,_this}return HttpLink2}(ApolloLink);const{toString:lib_toString,hasOwnProperty:lib_hasOwnProperty}=Object.prototype,fnToStr=Function.prototype.toString,previousComparisons=new Map;function equal(a,b){try{return check(a,b)}finally{previousComparisons.clear()}}const lib=equal;function check(a,b){if(a===b)return!0;const aTag=lib_toString.call(a),bTag=lib_toString.call(b);if(aTag!==bTag)return!1;switch(aTag){case"[object Array]":if(a.length!==b.length)return!1;case"[object Object]":{if(previouslyCompared(a,b))return!0;const aKeys=definedKeys(a),bKeys=definedKeys(b),keyCount=aKeys.length;if(keyCount!==bKeys.length)return!1;for(let k=0;k<keyCount;++k)if(!lib_hasOwnProperty.call(b,aKeys[k]))return!1;for(let k=0;k<keyCount;++k){const key=aKeys[k];if(!check(a[key],b[key]))return!1}return!0}case"[object Error]":return a.name===b.name&&a.message===b.message;case"[object Number]":if(a!==a)return b!==b;case"[object Boolean]":case"[object Date]":return+a==+b;case"[object RegExp]":case"[object String]":return a==`${b}`;case"[object Map]":case"[object Set]":{if(a.size!==b.size)return!1;if(previouslyCompared(a,b))return!0;const aIterator=a.entries(),isMap=aTag==="[object Map]";for(;;){const info=aIterator.next();if(info.done)break;const[aKey,aValue]=info.value;if(!b.has(aKey)||isMap&&!check(aValue,b.get(aKey)))return!1}return!0}case"[object Uint16Array]":case"[object Uint8Array]":case"[object Uint32Array]":case"[object Int32Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object ArrayBuffer]":a=new Uint8Array(a),b=new Uint8Array(b);case"[object DataView]":{let len=a.byteLength;if(len===b.byteLength)for(;len--&&a[len]===b[len];);return len===-1}case"[object AsyncFunction]":case"[object GeneratorFunction]":case"[object AsyncGeneratorFunction]":case"[object Function]":{const aCode=fnToStr.call(a);return aCode!==fnToStr.call(b)?!1:!endsWith(aCode,nativeCodeSuffix)}}return!1}function definedKeys(obj){return Object.keys(obj).filter(isDefinedKey,obj)}function isDefinedKey(key){return this[key]!==void 0}const nativeCodeSuffix="{ [native code] }";function endsWith(full,suffix){const fromIndex=full.length-suffix.length;return fromIndex>=0&&full.indexOf(suffix,fromIndex)===fromIndex}function previouslyCompared(a,b){let bSet=previousComparisons.get(a);if(bSet){if(bSet.has(b))return!0}else previousComparisons.set(a,bSet=new Set);return bSet.add(b),!1}const defaultMakeData=()=>Object.create(null),{forEach,slice}=Array.prototype,{hasOwnProperty:trie_lib_hasOwnProperty}=Object.prototype;class Trie{constructor(weakness=!0,makeData=defaultMakeData){this.weakness=weakness,this.makeData=makeData}lookup(){return this.lookupArray(arguments)}lookupArray(array){let node=this;return forEach.call(array,key=>node=node.getChildTrie(key)),trie_lib_hasOwnProperty.call(node,"data")?node.data:node.data=this.makeData(slice.call(array))}peek(){return this.peekArray(arguments)}peekArray(array){let node=this;for(let i=0,len=array.length;node&&i<len;++i){const map=node.mapFor(array[i],!1);node=map&&map.get(array[i])}return node&&node.data}remove(){return this.removeArray(arguments)}removeArray(array){let data;if(array.length){const head=array[0],map=this.mapFor(head,!1),child=map&&map.get(head);child&&(data=child.removeArray(slice.call(array,1)),!child.data&&!child.weak&&!(child.strong&&child.strong.size)&&map.delete(head))}else data=this.data,delete this.data;return data}getChildTrie(key){const map=this.mapFor(key,!0);let child=map.get(key);return child||map.set(key,child=new Trie(this.weakness,this.makeData)),child}mapFor(key,create){return this.weakness&&isObjRef(key)?this.weak||(create?this.weak=new WeakMap:void 0):this.strong||(create?this.strong=new Map:void 0)}}function isObjRef(value){switch(typeof value){case"object":if(value===null)break;case"function":return!0}return!1}const lib_defaultMakeData=()=>Object.create(null),{forEach:lib_forEach,slice:lib_slice}=Array.prototype,{hasOwnProperty:_wry_trie_lib_hasOwnProperty}=Object.prototype;class lib_Trie{constructor(weakness=!0,makeData=lib_defaultMakeData){this.weakness=weakness,this.makeData=makeData}lookup(...array){return this.lookupArray(array)}lookupArray(array){let node=this;return lib_forEach.call(array,key=>node=node.getChildTrie(key)),_wry_trie_lib_hasOwnProperty.call(node,"data")?node.data:node.data=this.makeData(lib_slice.call(array))}peek(...array){return this.peekArray(array)}peekArray(array){let node=this;for(let i=0,len=array.length;node&&i<len;++i){const map=this.weakness&&lib_isObjRef(array[i])?node.weak:node.strong;node=map&&map.get(array[i])}return node&&node.data}getChildTrie(key){const map=this.weakness&&lib_isObjRef(key)?this.weak||(this.weak=new WeakMap):this.strong||(this.strong=new Map);let child=map.get(key);return child||map.set(key,child=new lib_Trie(this.weakness,this.makeData)),child}}function lib_isObjRef(value){switch(typeof value){case"object":if(value===null)break;case"function":return!0}return!1}let currentContext=null;const MISSING_VALUE={};let idCounter=1;const makeSlotClass=()=>class{constructor(){this.id=["slot",idCounter++,Date.now(),Math.random().toString(36).slice(2)].join(":")}hasValue(){for(let context=currentContext;context;context=context.parent)if(this.id in context.slots){const value=context.slots[this.id];if(value===MISSING_VALUE)break;return context!==currentContext&&(currentContext.slots[this.id]=value),!0}return currentContext&&(currentContext.slots[this.id]=MISSING_VALUE),!1}getValue(){if(this.hasValue())return currentContext.slots[this.id]}withValue(value,callback,args,thisArg){const slots={__proto__:null,[this.id]:value},parent=currentContext;currentContext={parent,slots};try{return callback.apply(thisArg,args)}finally{currentContext=parent}}static bind(callback){const context=currentContext;return function(){const saved=currentContext;try{return currentContext=context,callback.apply(this,arguments)}finally{currentContext=saved}}}static noContext(callback,args,thisArg){if(currentContext){const saved=currentContext;try{return currentContext=null,callback.apply(thisArg,args)}finally{currentContext=saved}}else return callback.apply(thisArg,args)}};function slot_maybe(fn){try{return fn()}catch{}}const globalKey="@wry/context:Slot",globalHost=slot_maybe(()=>globalThis)||slot_maybe(()=>global)||Object.create(null),Slot=globalHost[globalKey]||Array[globalKey]||function(Slot2){try{Object.defineProperty(globalHost,globalKey,{value:Slot2,enumerable:!1,writable:!1,configurable:!0})}finally{return Slot2}}(makeSlotClass()),{bind,noContext}=Slot;function setTimeoutWithContext(callback,delay){return setTimeout(bind(callback),delay)}function asyncFromGen(genFn){return function(){const gen=genFn.apply(this,arguments),boundNext=bind(gen.next),boundThrow=bind(gen.throw);return new Promise((resolve,reject)=>{function invoke(method,argument){try{var result=method.call(gen,argument)}catch(error){return reject(error)}const next=result.done?resolve:invokeNext;isPromiseLike(result.value)?result.value.then(next,result.done?reject:invokeThrow):next(result.value)}const invokeNext=value=>invoke(boundNext,value),invokeThrow=error=>invoke(boundThrow,error);invokeNext()})}}function isPromiseLike(value){return value&&typeof value.then=="function"}const wrappedFibers=null;function wrapYieldingFiberMethods(Fiber){if(wrappedFibers.indexOf(Fiber)<0){const wrap2=(obj,method)=>{const fn=obj[method];obj[method]=function(){return noContext(fn,arguments,this)}};wrap2(Fiber,"yield"),wrap2(Fiber.prototype,"run"),wrap2(Fiber.prototype,"throwInto"),wrappedFibers.push(Fiber)}return Fiber}const parentEntrySlot=new Slot;function nonReactive(fn){return parentEntrySlot.withValue(void 0,fn)}const{hasOwnProperty:helpers_hasOwnProperty}=Object.prototype,arrayFromSet=Array.from||function(set){const array=[];return set.forEach(item=>array.push(item)),array};function maybeUnsubscribe(entryOrDep){const{unsubscribe}=entryOrDep;typeof unsubscribe=="function"&&(entryOrDep.unsubscribe=void 0,unsubscribe())}const emptySetPool=[],POOL_TARGET_SIZE=100;function assert(condition,optionalMessage){if(!condition)throw new Error(optionalMessage||"assertion failure")}function valueIs(a,b){const len=a.length;return len>0&&len===b.length&&a[len-1]===b[len-1]}function valueGet(value){switch(value.length){case 0:throw new Error("unknown value");case 1:return value[0];case 2:throw value[1]}}function valueCopy(value){return value.slice(0)}class Entry{constructor(fn){this.fn=fn,this.parents=new Set,this.childValues=new Map,this.dirtyChildren=null,this.dirty=!0,this.recomputing=!1,this.value=[],this.deps=null,++Entry.count}peek(){if(this.value.length===1&&!mightBeDirty(this))return rememberParent(this),this.value[0]}recompute(args){return assert(!this.recomputing,"already recomputing"),rememberParent(this),mightBeDirty(this)?reallyRecompute(this,args):valueGet(this.value)}setDirty(){this.dirty||(this.dirty=!0,reportDirty(this),maybeUnsubscribe(this))}dispose(){this.setDirty(),forgetChildren(this),eachParent(this,(parent,child)=>{parent.setDirty(),forgetChild(parent,this)})}forget(){this.dispose()}dependOn(dep2){dep2.add(this),this.deps||(this.deps=emptySetPool.pop()||new Set),this.deps.add(dep2)}forgetDeps(){this.deps&&(arrayFromSet(this.deps).forEach(dep2=>dep2.delete(this)),this.deps.clear(),emptySetPool.push(this.deps),this.deps=null)}}Entry.count=0;function rememberParent(child){const parent=parentEntrySlot.getValue();if(parent)return child.parents.add(parent),parent.childValues.has(child)||parent.childValues.set(child,[]),mightBeDirty(child)?reportDirtyChild(parent,child):reportCleanChild(parent,child),parent}function reallyRecompute(entry,args){return forgetChildren(entry),parentEntrySlot.withValue(entry,recomputeNewValue,[entry,args]),maybeSubscribe(entry,args)&&setClean(entry),valueGet(entry.value)}function recomputeNewValue(entry,args){entry.recomputing=!0;const{normalizeResult}=entry;let oldValueCopy;normalizeResult&&entry.value.length===1&&(oldValueCopy=valueCopy(entry.value)),entry.value.length=0;try{if(entry.value[0]=entry.fn.apply(null,args),normalizeResult&&oldValueCopy&&!valueIs(oldValueCopy,entry.value))try{entry.value[0]=normalizeResult(entry.value[0],oldValueCopy[0])}catch{}}catch(e){entry.value[1]=e}entry.recomputing=!1}function mightBeDirty(entry){return entry.dirty||!!(entry.dirtyChildren&&entry.dirtyChildren.size)}function setClean(entry){entry.dirty=!1,!mightBeDirty(entry)&&reportClean(entry)}function reportDirty(child){eachParent(child,reportDirtyChild)}function reportClean(child){eachParent(child,reportCleanChild)}function eachParent(child,callback){const parentCount=child.parents.size;if(parentCount){const parents=arrayFromSet(child.parents);for(let i=0;i<parentCount;++i)callback(parents[i],child)}}function reportDirtyChild(parent,child){assert(parent.childValues.has(child)),assert(mightBeDirty(child));const parentWasClean=!mightBeDirty(parent);if(!parent.dirtyChildren)parent.dirtyChildren=emptySetPool.pop()||new Set;else if(parent.dirtyChildren.has(child))return;parent.dirtyChildren.add(child),parentWasClean&&reportDirty(parent)}function reportCleanChild(parent,child){assert(parent.childValues.has(child)),assert(!mightBeDirty(child));const childValue=parent.childValues.get(child);childValue.length===0?parent.childValues.set(child,valueCopy(child.value)):valueIs(childValue,child.value)||parent.setDirty(),removeDirtyChild(parent,child),!mightBeDirty(parent)&&reportClean(parent)}function removeDirtyChild(parent,child){const dc=parent.dirtyChildren;dc&&(dc.delete(child),dc.size===0&&(emptySetPool.length<POOL_TARGET_SIZE&&emptySetPool.push(dc),parent.dirtyChildren=null))}function forgetChildren(parent){parent.childValues.size>0&&parent.childValues.forEach((_value,child)=>{forgetChild(parent,child)}),parent.forgetDeps(),assert(parent.dirtyChildren===null)}function forgetChild(parent,child){child.parents.delete(parent),parent.childValues.delete(child),removeDirtyChild(parent,child)}function maybeSubscribe(entry,args){if(typeof entry.subscribe=="function")try{maybeUnsubscribe(entry),entry.unsubscribe=entry.subscribe.apply(null,args)}catch{return entry.setDirty(),!1}return!0}const EntryMethods={setDirty:!0,dispose:!0,forget:!0};function dep(options){const depsByKey=new Map,subscribe=options&&options.subscribe;function depend(key){const parent=parentEntrySlot.getValue();if(parent){let dep2=depsByKey.get(key);dep2||depsByKey.set(key,dep2=new Set),parent.dependOn(dep2),typeof subscribe=="function"&&(maybeUnsubscribe(dep2),dep2.unsubscribe=subscribe(key))}}return depend.dirty=function(key,entryMethodName){const dep2=depsByKey.get(key);if(dep2){const m=entryMethodName&&helpers_hasOwnProperty.call(EntryMethods,entryMethodName)?entryMethodName:"setDirty";arrayFromSet(dep2).forEach(entry=>entry[m]()),depsByKey.delete(key),maybeUnsubscribe(dep2)}},depend}let defaultKeyTrie;function defaultMakeCacheKey(...args){return(defaultKeyTrie||(defaultKeyTrie=new lib_Trie(typeof WeakMap=="function"))).lookupArray(args)}const caches=new Set;function lib_wrap(originalFunction,{max=Math.pow(2,16),keyArgs,makeCacheKey=defaultMakeCacheKey,normalizeResult,subscribe,cache:cacheOption=StrongCache}=Object.create(null)){const cache2=typeof cacheOption=="function"?new cacheOption(max,entry=>entry.dispose()):cacheOption,optimistic=function(){const key=makeCacheKey.apply(null,keyArgs?keyArgs.apply(null,arguments):arguments);if(key===void 0)return originalFunction.apply(null,arguments);let entry=cache2.get(key);entry||(cache2.set(key,entry=new Entry(originalFunction)),entry.normalizeResult=normalizeResult,entry.subscribe=subscribe,entry.forget=()=>cache2.delete(key));const value=entry.recompute(Array.prototype.slice.call(arguments));return cache2.set(key,entry),caches.add(cache2),parentEntrySlot.hasValue()||(caches.forEach(cache3=>cache3.clean()),caches.clear()),value};Object.defineProperty(optimistic,"size",{get:()=>cache2.size,configurable:!1,enumerable:!1}),Object.freeze(optimistic.options={max,keyArgs,makeCacheKey,normalizeResult,subscribe,cache:cache2});function dirtyKey(key){const entry=key&&cache2.get(key);entry&&entry.setDirty()}optimistic.dirtyKey=dirtyKey,optimistic.dirty=function(){dirtyKey(makeCacheKey.apply(null,arguments))};function peekKey(key){const entry=key&&cache2.get(key);if(entry)return entry.peek()}optimistic.peekKey=peekKey,optimistic.peek=function(){return peekKey(makeCacheKey.apply(null,arguments))};function forgetKey(key){return key?cache2.delete(key):!1}return optimistic.forgetKey=forgetKey,optimistic.forget=function(){return forgetKey(makeCacheKey.apply(null,arguments))},optimistic.makeCacheKey=makeCacheKey,optimistic.getKey=keyArgs?function(){return makeCacheKey.apply(null,keyArgs.apply(null,arguments))}:makeCacheKey,Object.freeze(optimistic)}function identity(document2){return document2}var DocumentTransform=function(){function DocumentTransform2(transform,options){options===void 0&&(options=Object.create(null)),this.resultCache=canUseWeakSet?new WeakSet:new Set,this.transform=transform,options.getCacheKey&&(this.getCacheKey=options.getCacheKey),this.cached=options.cache!==!1,this.resetCache()}return DocumentTransform2.prototype.getCacheKey=function(document2){return[document2]},DocumentTransform2.identity=function(){return new DocumentTransform2(identity,{cache:!1})},DocumentTransform2.split=function(predicate,left,right){return right===void 0&&(right=DocumentTransform2.identity()),Object.assign(new DocumentTransform2(function(document2){var documentTransform=predicate(document2)?left:right;return documentTransform.transformDocument(document2)},{cache:!1}),{left,right})},DocumentTransform2.prototype.resetCache=function(){var _this=this;if(this.cached){var stableCacheKeys_1=new Trie(canUseWeakMap);this.performWork=lib_wrap(DocumentTransform2.prototype.performWork.bind(this),{makeCacheKey:function(document2){var cacheKeys=_this.getCacheKey(document2);if(cacheKeys)return invariantWrappers_invariant(Array.isArray(cacheKeys),69),stableCacheKeys_1.lookupArray(cacheKeys)},max:cacheSizes["documentTransform.cache"],cache:WeakCache})}},DocumentTransform2.prototype.performWork=function(document2){return getFromAST_checkDocument(document2),this.transform(document2)},DocumentTransform2.prototype.transformDocument=function(document2){if(this.resultCache.has(document2))return document2;var transformedDocument=this.performWork(document2);return this.resultCache.add(transformedDocument),transformedDocument},DocumentTransform2.prototype.concat=function(otherTransform){var _this=this;return Object.assign(new DocumentTransform2(function(document2){return otherTransform.transformDocument(_this.transformDocument(document2))},{cache:!1}),{left:this,right:otherTransform})},DocumentTransform2}();function asyncMap(observable,mapFn,catchFn){return new Observable(function(observer){var promiseQueue={then:function(callback){return new Promise(function(resolve){return resolve(callback())})}};function makeCallback(examiner,key){return function(arg){if(examiner){var both=function(){return observer.closed?0:examiner(arg)};promiseQueue=promiseQueue.then(both,both).then(function(result){return observer.next(result)},function(error){return observer.error(error)})}else observer[key](arg)}}var handler={next:makeCallback(mapFn,"next"),error:makeCallback(catchFn,"error"),complete:function(){promiseQueue.then(function(){return observer.complete()})}},sub=observable.subscribe(handler);return function(){return sub.unsubscribe()}})}function graphQLResultHasError(result){var errors=getGraphQLErrorsFromResult(result);return isNonEmptyArray(errors)}function getGraphQLErrorsFromResult(result){var graphQLErrors=isNonEmptyArray(result.errors)?result.errors.slice(0):[];return isExecutionPatchIncrementalResult(result)&&isNonEmptyArray(result.incremental)&&result.incremental.forEach(function(incrementalResult){incrementalResult.errors&&graphQLErrors.push.apply(graphQLErrors,incrementalResult.errors)}),graphQLErrors}function iterateObserversSafely(observers,method,argument){var observersWithMethod=[];observers.forEach(function(obs){return obs[method]&&observersWithMethod.push(obs)}),observersWithMethod.forEach(function(obs){return obs[method](argument)})}function fixObservableSubclass(subclass){function set(key){Object.defineProperty(subclass,key,{value:Observable})}return canUseSymbol&&Symbol.species&&set(Symbol.species),set("@@species"),subclass}function Concast_isPromiseLike(value){return value&&typeof value.then=="function"}var Concast=function(_super){__extends(Concast2,_super);function Concast2(sources){var _this=_super.call(this,function(observer){return _this.addObserver(observer),function(){return _this.removeObserver(observer)}})||this;return _this.observers=new Set,_this.promise=new Promise(function(resolve,reject){_this.resolve=resolve,_this.reject=reject}),_this.handlers={next:function(result){_this.sub!==null&&(_this.latest=["next",result],_this.notify("next",result),iterateObserversSafely(_this.observers,"next",result))},error:function(error){var sub=_this.sub;sub!==null&&(sub&&setTimeout(function(){return sub.unsubscribe()}),_this.sub=null,_this.latest=["error",error],_this.reject(error),_this.notify("error",error),iterateObserversSafely(_this.observers,"error",error))},complete:function(){var _a2=_this,sub=_a2.sub,_b=_a2.sources,sources2=_b===void 0?[]:_b;if(sub!==null){var value=sources2.shift();value?Concast_isPromiseLike(value)?value.then(function(obs){return _this.sub=obs.subscribe(_this.handlers)},_this.handlers.error):_this.sub=value.subscribe(_this.handlers):(sub&&setTimeout(function(){return sub.unsubscribe()}),_this.sub=null,_this.latest&&_this.latest[0]==="next"?_this.resolve(_this.latest[1]):_this.resolve(),_this.notify("complete"),iterateObserversSafely(_this.observers,"complete"))}}},_this.nextResultListeners=new Set,_this.cancel=function(reason){_this.reject(reason),_this.sources=[],_this.handlers.error(reason)},_this.promise.catch(function(_){}),typeof sources=="function"&&(sources=[new Observable(sources)]),Concast_isPromiseLike(sources)?sources.then(function(iterable){return _this.start(iterable)},_this.handlers.error):_this.start(sources),_this}return Concast2.prototype.start=function(sources){this.sub===void 0&&(this.sources=Array.from(sources),this.handlers.complete())},Concast2.prototype.deliverLastMessage=function(observer){if(this.latest){var nextOrError=this.latest[0],method=observer[nextOrError];method&&method.call(observer,this.latest[1]),this.sub===null&&nextOrError==="next"&&observer.complete&&observer.complete()}},Concast2.prototype.addObserver=function(observer){this.observers.has(observer)||(this.deliverLastMessage(observer),this.observers.add(observer))},Concast2.prototype.removeObserver=function(observer){this.observers.delete(observer)&&this.observers.size<1&&this.handlers.complete()},Concast2.prototype.notify=function(method,arg){var nextResultListeners=this.nextResultListeners;nextResultListeners.size&&(this.nextResultListeners=new Set,nextResultListeners.forEach(function(listener){return listener(method,arg)}))},Concast2.prototype.beforeNext=function(callback){var called=!1;this.nextResultListeners.add(function(method,arg){called||(called=!0,callback(method,arg))})},Concast2}(Observable);fixObservableSubclass(Concast);var NetworkStatus;(function(NetworkStatus2){NetworkStatus2[NetworkStatus2.loading=1]="loading",NetworkStatus2[NetworkStatus2.setVariables=2]="setVariables",NetworkStatus2[NetworkStatus2.fetchMore=3]="fetchMore",NetworkStatus2[NetworkStatus2.refetch=4]="refetch",NetworkStatus2[NetworkStatus2.poll=6]="poll",NetworkStatus2[NetworkStatus2.ready=7]="ready",NetworkStatus2[NetworkStatus2.error=8]="error"})(NetworkStatus||(NetworkStatus={}));function isNetworkRequestInFlight(networkStatus){return networkStatus?networkStatus<7:!1}function isNetworkRequestSettled(networkStatus){return networkStatus===7||networkStatus===8}function compact(){for(var objects=[],_i=0;_i<arguments.length;_i++)objects[_i]=arguments[_i];var result=Object.create(null);return objects.forEach(function(obj){!obj||Object.keys(obj).forEach(function(key){var value=obj[key];value!==void 0&&(result[key]=value)})}),result}var cloneDeep_toString=Object.prototype.toString;function cloneDeep(value){return cloneDeepHelper(value)}function cloneDeepHelper(val,seen){switch(cloneDeep_toString.call(val)){case"[object Array]":{if(seen=seen||new Map,seen.has(val))return seen.get(val);var copy_1=val.slice(0);return seen.set(val,copy_1),copy_1.forEach(function(child,i){copy_1[i]=cloneDeepHelper(child,seen)}),copy_1}case"[object Object]":{if(seen=seen||new Map,seen.has(val))return seen.get(val);var copy_2=Object.create(Object.getPrototypeOf(val));return seen.set(val,copy_2),Object.keys(val).forEach(function(key){copy_2[key]=cloneDeepHelper(val[key],seen)}),copy_2}default:return val}}function equalByQuery(query,_a2,_b,variables){var aData=_a2.data,aRest=__rest(_a2,["data"]),bData=_b.data,bRest=__rest(_b,["data"]);return lib(aRest,bRest)&&equalBySelectionSet(getMainDefinition(query).selectionSet,aData,bData,{fragmentMap:createFragmentMap(getFragmentDefinitions(query)),variables})}function equalBySelectionSet(selectionSet,aResult,bResult,context){if(aResult===bResult)return!0;var seenSelections=new Set;return selectionSet.selections.every(function(selection){if(seenSelections.has(selection)||(seenSelections.add(selection),!shouldInclude(selection,context.variables))||selectionHasNonreactiveDirective(selection))return!0;if(storeUtils_isField(selection)){var resultKey=resultKeyNameFromField(selection),aResultChild=aResult&&aResult[resultKey],bResultChild=bResult&&bResult[resultKey],childSelectionSet=selection.selectionSet;if(!childSelectionSet)return lib(aResultChild,bResultChild);var aChildIsArray=Array.isArray(aResultChild),bChildIsArray=Array.isArray(bResultChild);if(aChildIsArray!==bChildIsArray)return!1;if(aChildIsArray&&bChildIsArray){var length_1=aResultChild.length;if(bResultChild.length!==length_1)return!1;for(var i=0;i<length_1;++i)if(!equalBySelectionSet(childSelectionSet,aResultChild[i],bResultChild[i],context))return!1;return!0}return equalBySelectionSet(childSelectionSet,aResultChild,bResultChild,context)}else{var fragment=getFragmentFromSelection(selection,context.fragmentMap);if(fragment)return selectionHasNonreactiveDirective(fragment)?!0:equalBySelectionSet(fragment.selectionSet,aResult,bResult,context)}})}function selectionHasNonreactiveDirective(selection){return!!selection.directives&&selection.directives.some(directiveIsNonreactive)}function directiveIsNonreactive(dir){return dir.name.value==="nonreactive"}var ObservableQuery_assign=Object.assign,ObservableQuery_hasOwnProperty=Object.hasOwnProperty,ObservableQuery=function(_super){__extends(ObservableQuery2,_super);function ObservableQuery2(_a2){var queryManager=_a2.queryManager,queryInfo=_a2.queryInfo,options=_a2.options,_this=_super.call(this,function(observer){try{var subObserver=observer._subscription._observer;subObserver&&!subObserver.error&&(subObserver.error=defaultSubscriptionObserverErrorCallback)}catch{}var first=!_this.observers.size;_this.observers.add(observer);var last=_this.last;return last&&last.error?observer.error&&observer.error(last.error):last&&last.result&&observer.next&&observer.next(last.result),first&&_this.reobserve().catch(function(){}),function(){_this.observers.delete(observer)&&!_this.observers.size&&_this.tearDownQuery()}})||this;_this.observers=new Set,_this.subscriptions=new Set,_this.queryInfo=queryInfo,_this.queryManager=queryManager,_this.waitForOwnResult=skipCacheDataFor(options.fetchPolicy),_this.isTornDown=!1,_this.subscribeToMore=_this.subscribeToMore.bind(_this);var _b=queryManager.defaultOptions.watchQuery,_c=_b===void 0?{}:_b,_d=_c.fetchPolicy,defaultFetchPolicy=_d===void 0?"cache-first":_d,_e=options.fetchPolicy,fetchPolicy=_e===void 0?defaultFetchPolicy:_e,_f=options.initialFetchPolicy,initialFetchPolicy=_f===void 0?fetchPolicy==="standby"?defaultFetchPolicy:fetchPolicy:_f;_this.options=tslib_es6_assign(tslib_es6_assign({},options),{initialFetchPolicy,fetchPolicy}),_this.queryId=queryInfo.queryId||queryManager.generateQueryId();var opDef=getOperationDefinition(_this.query);return _this.queryName=opDef&&opDef.name&&opDef.name.value,_this}return Object.defineProperty(ObservableQuery2.prototype,"query",{get:function(){return this.lastQuery||this.options.query},enumerable:!1,configurable:!0}),Object.defineProperty(ObservableQuery2.prototype,"variables",{get:function(){return this.options.variables},enumerable:!1,configurable:!0}),ObservableQuery2.prototype.result=function(){var _this=this;return new Promise(function(resolve,reject){var observer={next:function(result){resolve(result),_this.observers.delete(observer),_this.observers.size||_this.queryManager.removeQuery(_this.queryId),setTimeout(function(){subscription.unsubscribe()},0)},error:reject},subscription=_this.subscribe(observer)})},ObservableQuery2.prototype.resetDiff=function(){this.queryInfo.resetDiff()},ObservableQuery2.prototype.getCurrentResult=function(saveAsLastResult){saveAsLastResult===void 0&&(saveAsLastResult=!0);var lastResult=this.getLastResult(!0),networkStatus=this.queryInfo.networkStatus||lastResult&&lastResult.networkStatus||NetworkStatus.ready,result=tslib_es6_assign(tslib_es6_assign({},lastResult),{loading:isNetworkRequestInFlight(networkStatus),networkStatus}),_a2=this.options.fetchPolicy,fetchPolicy=_a2===void 0?"cache-first":_a2;if(!(skipCacheDataFor(fetchPolicy)||this.queryManager.getDocumentInfo(this.query).hasForcedResolvers))if(this.waitForOwnResult)this.queryInfo.updateWatch();else{var diff=this.queryInfo.getDiff();(diff.complete||this.options.returnPartialData)&&(result.data=diff.result),equal(result.data,{})&&(result.data=void 0),diff.complete?(delete result.partial,diff.complete&&result.networkStatus===NetworkStatus.loading&&(fetchPolicy==="cache-first"||fetchPolicy==="cache-only")&&(result.networkStatus=NetworkStatus.ready,result.loading=!1)):result.partial=!0,globalThis.__DEV__!==!1&&!diff.complete&&!this.options.partialRefetch&&!result.loading&&!result.data&&!result.error&&logMissingFieldErrors(diff.missing)}return saveAsLastResult&&this.updateLastResult(result),result},ObservableQuery2.prototype.isDifferentFromLastResult=function(newResult,variables){if(!this.last)return!0;var resultIsDifferent=this.queryManager.getDocumentInfo(this.query).hasNonreactiveDirective?!equalByQuery(this.query,this.last.result,newResult,this.variables):!equal(this.last.result,newResult);return resultIsDifferent||variables&&!equal(this.last.variables,variables)},ObservableQuery2.prototype.getLast=function(key,variablesMustMatch){var last=this.last;if(last&&last[key]&&(!variablesMustMatch||equal(last.variables,this.variables)))return last[key]},ObservableQuery2.prototype.getLastResult=function(variablesMustMatch){return this.getLast("result",variablesMustMatch)},ObservableQuery2.prototype.getLastError=function(variablesMustMatch){return this.getLast("error",variablesMustMatch)},ObservableQuery2.prototype.resetLastResults=function(){delete this.last,this.isTornDown=!1},ObservableQuery2.prototype.resetQueryStoreErrors=function(){this.queryManager.resetErrors(this.queryId)},ObservableQuery2.prototype.refetch=function(variables){var _a2,reobserveOptions={pollInterval:0},fetchPolicy=this.options.fetchPolicy;if(fetchPolicy==="cache-and-network"?reobserveOptions.fetchPolicy=fetchPolicy:fetchPolicy==="no-cache"?reobserveOptions.fetchPolicy="no-cache":reobserveOptions.fetchPolicy="network-only",globalThis.__DEV__!==!1&&variables&&ObservableQuery_hasOwnProperty.call(variables,"variables")){var queryDef=getQueryDefinition(this.query),vars=queryDef.variableDefinitions;(!vars||!vars.some(function(v){return v.variable.name.value==="variables"}))&&globalThis.__DEV__!==!1&&invariantWrappers_invariant.warn(20,variables,((_a2=queryDef.name)===null||_a2===void 0?void 0:_a2.value)||queryDef)}return variables&&!equal(this.options.variables,variables)&&(reobserveOptions.variables=this.options.variables=tslib_es6_assign(tslib_es6_assign({},this.options.variables),variables)),this.queryInfo.resetLastWrite(),this.reobserve(reobserveOptions,NetworkStatus.refetch)},ObservableQuery2.prototype.fetchMore=function(fetchMoreOptions){var _this=this,combinedOptions=tslib_es6_assign(tslib_es6_assign({},fetchMoreOptions.query?fetchMoreOptions:tslib_es6_assign(tslib_es6_assign(tslib_es6_assign(tslib_es6_assign({},this.options),{query:this.options.query}),fetchMoreOptions),{variables:tslib_es6_assign(tslib_es6_assign({},this.options.variables),fetchMoreOptions.variables)})),{fetchPolicy:"no-cache"});combinedOptions.query=this.transformDocument(combinedOptions.query);var qid=this.queryManager.generateQueryId();this.lastQuery=fetchMoreOptions.query?this.transformDocument(this.options.query):combinedOptions.query;var queryInfo=this.queryInfo,originalNetworkStatus=queryInfo.networkStatus;queryInfo.networkStatus=NetworkStatus.fetchMore,combinedOptions.notifyOnNetworkStatusChange&&this.observe();var updatedQuerySet=new Set,updateQuery=fetchMoreOptions?.updateQuery,isCached=this.options.fetchPolicy!=="no-cache";return isCached||invariantWrappers_invariant(updateQuery,21),this.queryManager.fetchQuery(qid,combinedOptions,NetworkStatus.fetchMore).then(function(fetchMoreResult){if(_this.queryManager.removeQuery(qid),queryInfo.networkStatus===NetworkStatus.fetchMore&&(queryInfo.networkStatus=originalNetworkStatus),isCached)_this.queryManager.cache.batch({update:function(cache2){var updateQuery2=fetchMoreOptions.updateQuery;updateQuery2?cache2.updateQuery({query:_this.query,variables:_this.variables,returnPartialData:!0,optimistic:!1},function(previous){return updateQuery2(previous,{fetchMoreResult:fetchMoreResult.data,variables:combinedOptions.variables})}):cache2.writeQuery({query:combinedOptions.query,variables:combinedOptions.variables,data:fetchMoreResult.data})},onWatchUpdated:function(watch){updatedQuerySet.add(watch.query)}});else{var lastResult=_this.getLast("result"),data=updateQuery(lastResult.data,{fetchMoreResult:fetchMoreResult.data,variables:combinedOptions.variables});_this.reportResult(tslib_es6_assign(tslib_es6_assign({},lastResult),{data}),_this.variables)}return fetchMoreResult}).finally(function(){isCached&&!updatedQuerySet.has(_this.query)&&reobserveCacheFirst(_this)})},ObservableQuery2.prototype.subscribeToMore=function(options){var _this=this,subscription=this.queryManager.startGraphQLSubscription({query:options.document,variables:options.variables,context:options.context}).subscribe({next:function(subscriptionData){var updateQuery=options.updateQuery;updateQuery&&_this.updateQuery(function(previous,_a2){var variables=_a2.variables;return updateQuery(previous,{subscriptionData,variables})})},error:function(err){if(options.onError){options.onError(err);return}globalThis.__DEV__!==!1&&invariantWrappers_invariant.error(22,err)}});return this.subscriptions.add(subscription),function(){_this.subscriptions.delete(subscription)&&subscription.unsubscribe()}},ObservableQuery2.prototype.setOptions=function(newOptions){return this.reobserve(newOptions)},ObservableQuery2.prototype.silentSetOptions=function(newOptions){var mergedOptions=compact(this.options,newOptions||{});ObservableQuery_assign(this.options,mergedOptions)},ObservableQuery2.prototype.setVariables=function(variables){return equal(this.variables,variables)?this.observers.size?this.result():Promise.resolve():(this.options.variables=variables,this.observers.size?this.reobserve({fetchPolicy:this.options.initialFetchPolicy,variables},NetworkStatus.setVariables):Promise.resolve())},ObservableQuery2.prototype.updateQuery=function(mapFn){var queryManager=this.queryManager,result=queryManager.cache.diff({query:this.options.query,variables:this.variables,returnPartialData:!0,optimistic:!1}).result,newResult=mapFn(result,{variables:this.variables});newResult&&(queryManager.cache.writeQuery({query:this.options.query,data:newResult,variables:this.variables}),queryManager.broadcastQueries())},ObservableQuery2.prototype.startPolling=function(pollInterval){this.options.pollInterval=pollInterval,this.updatePolling()},ObservableQuery2.prototype.stopPolling=function(){this.options.pollInterval=0,this.updatePolling()},ObservableQuery2.prototype.applyNextFetchPolicy=function(reason,options){if(options.nextFetchPolicy){var _a2=options.fetchPolicy,fetchPolicy=_a2===void 0?"cache-first":_a2,_b=options.initialFetchPolicy,initialFetchPolicy=_b===void 0?fetchPolicy:_b;fetchPolicy==="standby"||(typeof options.nextFetchPolicy=="function"?options.fetchPolicy=options.nextFetchPolicy(fetchPolicy,{reason,options,observable:this,initialFetchPolicy}):reason==="variables-changed"?options.fetchPolicy=initialFetchPolicy:options.fetchPolicy=options.nextFetchPolicy)}return options.fetchPolicy},ObservableQuery2.prototype.fetch=function(options,newNetworkStatus,query){return this.queryManager.setObservableQuery(this),this.queryManager.fetchConcastWithInfo(this.queryId,options,newNetworkStatus,query)},ObservableQuery2.prototype.updatePolling=function(){var _this=this;if(!this.queryManager.ssrMode){var _a2=this,pollingInfo=_a2.pollingInfo,pollInterval=_a2.options.pollInterval;if(!pollInterval||!this.hasObservers()){pollingInfo&&(clearTimeout(pollingInfo.timeout),delete this.pollingInfo);return}if(!(pollingInfo&&pollingInfo.interval===pollInterval)){invariantWrappers_invariant(pollInterval,23);var info=pollingInfo||(this.pollingInfo={});info.interval=pollInterval;var maybeFetch=function(){var _a3,_b;_this.pollingInfo&&(!isNetworkRequestInFlight(_this.queryInfo.networkStatus)&&!(!((_b=(_a3=_this.options).skipPollAttempt)===null||_b===void 0)&&_b.call(_a3))?_this.reobserve({fetchPolicy:_this.options.initialFetchPolicy==="no-cache"?"no-cache":"network-only"},NetworkStatus.poll).then(poll,poll):poll())},poll=function(){var info2=_this.pollingInfo;info2&&(clearTimeout(info2.timeout),info2.timeout=setTimeout(maybeFetch,info2.interval))};poll()}}},ObservableQuery2.prototype.updateLastResult=function(newResult,variables){variables===void 0&&(variables=this.variables);var error=this.getLastError();return error&&this.last&&!equal(variables,this.last.variables)&&(error=void 0),this.last=tslib_es6_assign({result:this.queryManager.assumeImmutableResults?newResult:cloneDeep(newResult),variables},error?{error}:null)},ObservableQuery2.prototype.reobserveAsConcast=function(newOptions,newNetworkStatus){var _this=this;this.isTornDown=!1;var useDisposableConcast=newNetworkStatus===NetworkStatus.refetch||newNetworkStatus===NetworkStatus.fetchMore||newNetworkStatus===NetworkStatus.poll,oldVariables=this.options.variables,oldFetchPolicy=this.options.fetchPolicy,mergedOptions=compact(this.options,newOptions||{}),options=useDisposableConcast?mergedOptions:ObservableQuery_assign(this.options,mergedOptions),query=this.transformDocument(options.query);this.lastQuery=query,useDisposableConcast||(this.updatePolling(),newOptions&&newOptions.variables&&!equal(newOptions.variables,oldVariables)&&options.fetchPolicy!=="standby"&&(options.fetchPolicy===oldFetchPolicy||typeof options.nextFetchPolicy=="function")&&(this.applyNextFetchPolicy("variables-changed",options),newNetworkStatus===void 0&&(newNetworkStatus=NetworkStatus.setVariables))),this.waitForOwnResult&&(this.waitForOwnResult=skipCacheDataFor(options.fetchPolicy));var finishWaitingForOwnResult=function(){_this.concast===concast&&(_this.waitForOwnResult=!1)},variables=options.variables&&tslib_es6_assign({},options.variables),_a2=this.fetch(options,newNetworkStatus,query),concast=_a2.concast,fromLink=_a2.fromLink,observer={next:function(result){equal(_this.variables,variables)&&(finishWaitingForOwnResult(),_this.reportResult(result,variables))},error:function(error){equal(_this.variables,variables)&&(isApolloError(error)||(error=new ApolloError({networkError:error})),finishWaitingForOwnResult(),_this.reportError(error,variables))}};return!useDisposableConcast&&(fromLink||!this.concast)&&(this.concast&&this.observer&&this.concast.removeObserver(this.observer),this.concast=concast,this.observer=observer),concast.addObserver(observer),concast},ObservableQuery2.prototype.reobserve=function(newOptions,newNetworkStatus){return this.reobserveAsConcast(newOptions,newNetworkStatus).promise},ObservableQuery2.prototype.resubscribeAfterError=function(){for(var args=[],_i=0;_i<arguments.length;_i++)args[_i]=arguments[_i];var last=this.last;this.resetLastResults();var subscription=this.subscribe.apply(this,args);return this.last=last,subscription},ObservableQuery2.prototype.observe=function(){this.reportResult(this.getCurrentResult(!1),this.variables)},ObservableQuery2.prototype.reportResult=function(result,variables){var lastError=this.getLastError(),isDifferent=this.isDifferentFromLastResult(result,variables);(lastError||!result.partial||this.options.returnPartialData)&&this.updateLastResult(result,variables),(lastError||isDifferent)&&iterateObserversSafely(this.observers,"next",result)},ObservableQuery2.prototype.reportError=function(error,variables){var errorResult=tslib_es6_assign(tslib_es6_assign({},this.getLastResult()),{error,errors:error.graphQLErrors,networkStatus:NetworkStatus.error,loading:!1});this.updateLastResult(errorResult,variables),iterateObserversSafely(this.observers,"error",this.last.error=error)},ObservableQuery2.prototype.hasObservers=function(){return this.observers.size>0},ObservableQuery2.prototype.tearDownQuery=function(){this.isTornDown||(this.concast&&this.observer&&(this.concast.removeObserver(this.observer),delete this.concast,delete this.observer),this.stopPolling(),this.subscriptions.forEach(function(sub){return sub.unsubscribe()}),this.subscriptions.clear(),this.queryManager.stopQuery(this.queryId),this.observers.clear(),this.isTornDown=!0)},ObservableQuery2.prototype.transformDocument=function(document2){return this.queryManager.transform(document2)},ObservableQuery2}(Observable);fixObservableSubclass(ObservableQuery);function reobserveCacheFirst(obsQuery){var _a2=obsQuery.options,fetchPolicy=_a2.fetchPolicy,nextFetchPolicy=_a2.nextFetchPolicy;return fetchPolicy==="cache-and-network"||fetchPolicy==="network-only"?obsQuery.reobserve({fetchPolicy:"cache-first",nextFetchPolicy:function(currentFetchPolicy,context){return this.nextFetchPolicy=nextFetchPolicy,typeof this.nextFetchPolicy=="function"?this.nextFetchPolicy(currentFetchPolicy,context):fetchPolicy}}):obsQuery.reobserve()}function defaultSubscriptionObserverErrorCallback(error){globalThis.__DEV__!==!1&&invariantWrappers_invariant.error(24,error.message,error.stack)}function logMissingFieldErrors(missing){globalThis.__DEV__!==!1&&missing&&globalThis.__DEV__!==!1&&invariantWrappers_invariant.debug(25,missing)}function skipCacheDataFor(fetchPolicy){return fetchPolicy==="network-only"||fetchPolicy==="no-cache"||fetchPolicy==="standby"}var destructiveMethodCounts=new(canUseWeakMap?WeakMap:Map);function wrapDestructiveCacheMethod(cache2,methodName){var original=cache2[methodName];typeof original=="function"&&(cache2[methodName]=function(){return destructiveMethodCounts.set(cache2,(destructiveMethodCounts.get(cache2)+1)%1e15),original.apply(this,arguments)})}function cancelNotifyTimeout(info){info.notifyTimeout&&(clearTimeout(info.notifyTimeout),info.notifyTimeout=void 0)}var QueryInfo=function(){function QueryInfo2(queryManager,queryId){queryId===void 0&&(queryId=queryManager.generateQueryId()),this.queryId=queryId,this.listeners=new Set,this.document=null,this.lastRequestId=1,this.stopped=!1,this.dirty=!1,this.observableQuery=null;var cache2=this.cache=queryManager.cache;destructiveMethodCounts.has(cache2)||(destructiveMethodCounts.set(cache2,0),wrapDestructiveCacheMethod(cache2,"evict"),wrapDestructiveCacheMethod(cache2,"modify"),wrapDestructiveCacheMethod(cache2,"reset"))}return QueryInfo2.prototype.init=function(query){var networkStatus=query.networkStatus||NetworkStatus.loading;return this.variables&&this.networkStatus!==NetworkStatus.loading&&!equal(this.variables,query.variables)&&(networkStatus=NetworkStatus.setVariables),equal(query.variables,this.variables)||(this.lastDiff=void 0),Object.assign(this,{document:query.document,variables:query.variables,networkError:null,graphQLErrors:this.graphQLErrors||[],networkStatus}),query.observableQuery&&this.setObservableQuery(query.observableQuery),query.lastRequestId&&(this.lastRequestId=query.lastRequestId),this},QueryInfo2.prototype.reset=function(){cancelNotifyTimeout(this),this.dirty=!1},QueryInfo2.prototype.resetDiff=function(){this.lastDiff=void 0},QueryInfo2.prototype.getDiff=function(){var options=this.getDiffOptions();if(this.lastDiff&&equal(options,this.lastDiff.options))return this.lastDiff.diff;this.updateWatch(this.variables);var oq=this.observableQuery;if(oq&&oq.options.fetchPolicy==="no-cache")return{complete:!1};var diff=this.cache.diff(options);return this.updateLastDiff(diff,options),diff},QueryInfo2.prototype.updateLastDiff=function(diff,options){this.lastDiff=diff?{diff,options:options||this.getDiffOptions()}:void 0},QueryInfo2.prototype.getDiffOptions=function(variables){var _a2;return variables===void 0&&(variables=this.variables),{query:this.document,variables,returnPartialData:!0,optimistic:!0,canonizeResults:(_a2=this.observableQuery)===null||_a2===void 0?void 0:_a2.options.canonizeResults}},QueryInfo2.prototype.setDiff=function(diff){var _this=this,_a2,oldDiff=this.lastDiff&&this.lastDiff.diff;diff&&!diff.complete&&((_a2=this.observableQuery)===null||_a2===void 0?void 0:_a2.getLastError())||(this.updateLastDiff(diff),!this.dirty&&!equal(oldDiff&&oldDiff.result,diff&&diff.result)&&(this.dirty=!0,this.notifyTimeout||(this.notifyTimeout=setTimeout(function(){return _this.notify()},0))))},QueryInfo2.prototype.setObservableQuery=function(oq){var _this=this;oq!==this.observableQuery&&(this.oqListener&&this.listeners.delete(this.oqListener),this.observableQuery=oq,oq?(oq.queryInfo=this,this.listeners.add(this.oqListener=function(){var diff=_this.getDiff();diff.fromOptimisticTransaction?oq.observe():reobserveCacheFirst(oq)})):delete this.oqListener)},QueryInfo2.prototype.notify=function(){var _this=this;cancelNotifyTimeout(this),this.shouldNotify()&&this.listeners.forEach(function(listener){return listener(_this)}),this.dirty=!1},QueryInfo2.prototype.shouldNotify=function(){if(!this.dirty||!this.listeners.size)return!1;if(isNetworkRequestInFlight(this.networkStatus)&&this.observableQuery){var fetchPolicy=this.observableQuery.options.fetchPolicy;if(fetchPolicy!=="cache-only"&&fetchPolicy!=="cache-and-network")return!1}return!0},QueryInfo2.prototype.stop=function(){if(!this.stopped){this.stopped=!0,this.reset(),this.cancel(),this.cancel=QueryInfo2.prototype.cancel;var oq=this.observableQuery;oq&&oq.stopPolling()}},QueryInfo2.prototype.cancel=function(){},QueryInfo2.prototype.updateWatch=function(variables){var _this=this;variables===void 0&&(variables=this.variables);var oq=this.observableQuery;if(!(oq&&oq.options.fetchPolicy==="no-cache")){var watchOptions=tslib_es6_assign(tslib_es6_assign({},this.getDiffOptions(variables)),{watcher:this,callback:function(diff){return _this.setDiff(diff)}});(!this.lastWatch||!equal(watchOptions,this.lastWatch))&&(this.cancel(),this.cancel=this.cache.watch(this.lastWatch=watchOptions))}},QueryInfo2.prototype.resetLastWrite=function(){this.lastWrite=void 0},QueryInfo2.prototype.shouldWrite=function(result,variables){var lastWrite=this.lastWrite;return!(lastWrite&&lastWrite.dmCount===destructiveMethodCounts.get(this.cache)&&equal(variables,lastWrite.variables)&&equal(result.data,lastWrite.result.data))},QueryInfo2.prototype.markResult=function(result,document2,options,cacheWriteBehavior){var _this=this,merger=new DeepMerger,graphQLErrors=isNonEmptyArray(result.errors)?result.errors.slice(0):[];if(this.reset(),"incremental"in result&&isNonEmptyArray(result.incremental)){var mergedData=mergeIncrementalData(this.getDiff().result,result);result.data=mergedData}else if("hasNext"in result&&result.hasNext){var diff=this.getDiff();result.data=merger.merge(diff.result,result.data)}this.graphQLErrors=graphQLErrors,options.fetchPolicy==="no-cache"?this.updateLastDiff({result:result.data,complete:!0},this.getDiffOptions(options.variables)):cacheWriteBehavior!==0&&(shouldWriteResult(result,options.errorPolicy)?this.cache.performTransaction(function(cache2){if(_this.shouldWrite(result,options.variables))cache2.writeQuery({query:document2,data:result.data,variables:options.variables,overwrite:cacheWriteBehavior===1}),_this.lastWrite={result,variables:options.variables,dmCount:destructiveMethodCounts.get(_this.cache)};else if(_this.lastDiff&&_this.lastDiff.diff.complete){result.data=_this.lastDiff.diff.result;return}var diffOptions=_this.getDiffOptions(options.variables),diff2=cache2.diff(diffOptions);!_this.stopped&&equal(_this.variables,options.variables)&&_this.updateWatch(options.variables),_this.updateLastDiff(diff2,diffOptions),diff2.complete&&(result.data=diff2.result)}):this.lastWrite=void 0)},QueryInfo2.prototype.markReady=function(){return this.networkError=null,this.networkStatus=NetworkStatus.ready},QueryInfo2.prototype.markError=function(error){return this.networkStatus=NetworkStatus.error,this.lastWrite=void 0,this.reset(),error.graphQLErrors&&(this.graphQLErrors=error.graphQLErrors),error.networkError&&(this.networkError=error.networkError),error},QueryInfo2}();function shouldWriteResult(result,errorPolicy){errorPolicy===void 0&&(errorPolicy="none");var ignoreErrors=errorPolicy==="ignore"||errorPolicy==="all",writeWithErrors=!graphQLResultHasError(result);return!writeWithErrors&&ignoreErrors&&result.data&&(writeWithErrors=!0),writeWithErrors}var QueryManager_hasOwnProperty=Object.prototype.hasOwnProperty,IGNORE=Object.create(null),QueryManager=function(){function QueryManager2(options){var _this=this;this.clientAwareness={},this.queries=new Map,this.fetchCancelFns=new Map,this.transformCache=new AutoCleanedWeakCache(cacheSizes["queryManager.getDocumentInfo"]||2e3),this.queryIdCounter=1,this.requestIdCounter=1,this.mutationIdCounter=1,this.inFlightLinkObservables=new Trie(!1);var defaultDocumentTransform=new DocumentTransform(function(document2){return _this.cache.transformDocument(document2)},{cache:!1});this.cache=options.cache,this.link=options.link,this.defaultOptions=options.defaultOptions,this.queryDeduplication=options.queryDeduplication,this.clientAwareness=options.clientAwareness,this.localState=options.localState,this.ssrMode=options.ssrMode,this.assumeImmutableResults=options.assumeImmutableResults;var documentTransform=options.documentTransform;this.documentTransform=documentTransform?defaultDocumentTransform.concat(documentTransform).concat(defaultDocumentTransform):defaultDocumentTransform,this.defaultContext=options.defaultContext||Object.create(null),(this.onBroadcast=options.onBroadcast)&&(this.mutationStore=Object.create(null))}return QueryManager2.prototype.stop=function(){var _this=this;this.queries.forEach(function(_info,queryId){_this.stopQueryNoBroadcast(queryId)}),this.cancelPendingFetches(newInvariantError(26))},QueryManager2.prototype.cancelPendingFetches=function(error){this.fetchCancelFns.forEach(function(cancel){return cancel(error)}),this.fetchCancelFns.clear()},QueryManager2.prototype.mutate=function(_a2){return __awaiter(this,arguments,void 0,function(_b){var mutationId,hasClientExports2,mutationStoreValue,isOptimistic,self2,_c,_d,mutation=_b.mutation,variables=_b.variables,optimisticResponse=_b.optimisticResponse,updateQueries=_b.updateQueries,_e=_b.refetchQueries,refetchQueries=_e===void 0?[]:_e,_f=_b.awaitRefetchQueries,awaitRefetchQueries=_f===void 0?!1:_f,updateWithProxyFn=_b.update,onQueryUpdated=_b.onQueryUpdated,_g=_b.fetchPolicy,fetchPolicy=_g===void 0?((_c=this.defaultOptions.mutate)===null||_c===void 0?void 0:_c.fetchPolicy)||"network-only":_g,_h=_b.errorPolicy,errorPolicy=_h===void 0?((_d=this.defaultOptions.mutate)===null||_d===void 0?void 0:_d.errorPolicy)||"none":_h,keepRootFields=_b.keepRootFields,context=_b.context;return __generator(this,function(_j){switch(_j.label){case 0:return invariantWrappers_invariant(mutation,27),invariantWrappers_invariant(fetchPolicy==="network-only"||fetchPolicy==="no-cache",28),mutationId=this.generateMutationId(),mutation=this.cache.transformForLink(this.transform(mutation)),hasClientExports2=this.getDocumentInfo(mutation).hasClientExports,variables=this.getVariables(mutation,variables),hasClientExports2?[4,this.localState.addExportedVariables(mutation,variables,context)]:[3,2];case 1:variables=_j.sent(),_j.label=2;case 2:return mutationStoreValue=this.mutationStore&&(this.mutationStore[mutationId]={mutation,variables,loading:!0,error:null}),isOptimistic=optimisticResponse&&this.markMutationOptimistic(optimisticResponse,{mutationId,document:mutation,variables,fetchPolicy,errorPolicy,context,updateQueries,update:updateWithProxyFn,keepRootFields}),this.broadcastQueries(),self2=this,[2,new Promise(function(resolve,reject){return asyncMap(self2.getObservableFromLink(mutation,tslib_es6_assign(tslib_es6_assign({},context),{optimisticResponse:isOptimistic?optimisticResponse:void 0}),variables,{},!1),function(result){if(graphQLResultHasError(result)&&errorPolicy==="none")throw new ApolloError({graphQLErrors:getGraphQLErrorsFromResult(result)});mutationStoreValue&&(mutationStoreValue.loading=!1,mutationStoreValue.error=null);var storeResult=tslib_es6_assign({},result);return typeof refetchQueries=="function"&&(refetchQueries=refetchQueries(storeResult)),errorPolicy==="ignore"&&graphQLResultHasError(storeResult)&&delete storeResult.errors,self2.markMutationResult({mutationId,result:storeResult,document:mutation,variables,fetchPolicy,errorPolicy,context,update:updateWithProxyFn,updateQueries,awaitRefetchQueries,refetchQueries,removeOptimistic:isOptimistic?mutationId:void 0,onQueryUpdated,keepRootFields})}).subscribe({next:function(storeResult){self2.broadcastQueries(),(!("hasNext"in storeResult)||storeResult.hasNext===!1)&&resolve(storeResult)},error:function(err){mutationStoreValue&&(mutationStoreValue.loading=!1,mutationStoreValue.error=err),isOptimistic&&self2.cache.removeOptimistic(mutationId),self2.broadcastQueries(),reject(err instanceof ApolloError?err:new ApolloError({networkError:err}))}})})]}})})},QueryManager2.prototype.markMutationResult=function(mutation,cache2){var _this=this;cache2===void 0&&(cache2=this.cache);var result=mutation.result,cacheWrites=[],skipCache=mutation.fetchPolicy==="no-cache";if(!skipCache&&shouldWriteResult(result,mutation.errorPolicy)){if(isExecutionPatchIncrementalResult(result)||cacheWrites.push({result:result.data,dataId:"ROOT_MUTATION",query:mutation.document,variables:mutation.variables}),isExecutionPatchIncrementalResult(result)&&isNonEmptyArray(result.incremental)){var diff=cache2.diff({id:"ROOT_MUTATION",query:this.getDocumentInfo(mutation.document).asQuery,variables:mutation.variables,optimistic:!1,returnPartialData:!0}),mergedData=void 0;diff.result&&(mergedData=mergeIncrementalData(diff.result,result)),typeof mergedData<"u"&&(result.data=mergedData,cacheWrites.push({result:mergedData,dataId:"ROOT_MUTATION",query:mutation.document,variables:mutation.variables}))}var updateQueries_1=mutation.updateQueries;updateQueries_1&&this.queries.forEach(function(_a2,queryId){var observableQuery=_a2.observableQuery,queryName=observableQuery&&observableQuery.queryName;if(!(!queryName||!QueryManager_hasOwnProperty.call(updateQueries_1,queryName))){var updater=updateQueries_1[queryName],_b=_this.queries.get(queryId),document2=_b.document,variables=_b.variables,_c=cache2.diff({query:document2,variables,returnPartialData:!0,optimistic:!1}),currentQueryResult=_c.result,complete=_c.complete;if(complete&&currentQueryResult){var nextQueryResult=updater(currentQueryResult,{mutationResult:result,queryName:document2&&getOperationName(document2)||void 0,queryVariables:variables});nextQueryResult&&cacheWrites.push({result:nextQueryResult,dataId:"ROOT_QUERY",query:document2,variables})}}})}if(cacheWrites.length>0||(mutation.refetchQueries||"").length>0||mutation.update||mutation.onQueryUpdated||mutation.removeOptimistic){var results_1=[];if(this.refetchQueries({updateCache:function(cache3){skipCache||cacheWrites.forEach(function(write){return cache3.write(write)});var update=mutation.update,isFinalResult=!isExecutionPatchResult(result)||isExecutionPatchIncrementalResult(result)&&!result.hasNext;if(update){if(!skipCache){var diff2=cache3.diff({id:"ROOT_MUTATION",query:_this.getDocumentInfo(mutation.document).asQuery,variables:mutation.variables,optimistic:!1,returnPartialData:!0});diff2.complete&&(result=tslib_es6_assign(tslib_es6_assign({},result),{data:diff2.result}),"incremental"in result&&delete result.incremental,"hasNext"in result&&delete result.hasNext)}isFinalResult&&update(cache3,result,{context:mutation.context,variables:mutation.variables})}!skipCache&&!mutation.keepRootFields&&isFinalResult&&cache3.modify({id:"ROOT_MUTATION",fields:function(value,_a2){var fieldName=_a2.fieldName,DELETE2=_a2.DELETE;return fieldName==="__typename"?value:DELETE2}})},include:mutation.refetchQueries,optimistic:!1,removeOptimistic:mutation.removeOptimistic,onQueryUpdated:mutation.onQueryUpdated||null}).forEach(function(result2){return results_1.push(result2)}),mutation.awaitRefetchQueries||mutation.onQueryUpdated)return Promise.all(results_1).then(function(){return result})}return Promise.resolve(result)},QueryManager2.prototype.markMutationOptimistic=function(optimisticResponse,mutation){var _this=this,data=typeof optimisticResponse=="function"?optimisticResponse(mutation.variables,{IGNORE}):optimisticResponse;return data===IGNORE?!1:(this.cache.recordOptimisticTransaction(function(cache2){try{_this.markMutationResult(tslib_es6_assign(tslib_es6_assign({},mutation),{result:{data}}),cache2)}catch(error){globalThis.__DEV__!==!1&&invariantWrappers_invariant.error(error)}},mutation.mutationId),!0)},QueryManager2.prototype.fetchQuery=function(queryId,options,networkStatus){return this.fetchConcastWithInfo(queryId,options,networkStatus).concast.promise},QueryManager2.prototype.getQueryStore=function(){var store=Object.create(null);return this.queries.forEach(function(info,queryId){store[queryId]={variables:info.variables,networkStatus:info.networkStatus,networkError:info.networkError,graphQLErrors:info.graphQLErrors}}),store},QueryManager2.prototype.resetErrors=function(queryId){var queryInfo=this.queries.get(queryId);queryInfo&&(queryInfo.networkError=void 0,queryInfo.graphQLErrors=[])},QueryManager2.prototype.transform=function(document2){return this.documentTransform.transformDocument(document2)},QueryManager2.prototype.getDocumentInfo=function(document2){var transformCache=this.transformCache;if(!transformCache.has(document2)){var cacheEntry={hasClientExports:hasClientExports(document2),hasForcedResolvers:this.localState.shouldForceResolvers(document2),hasNonreactiveDirective:hasDirectives(["nonreactive"],document2),clientQuery:this.localState.clientQuery(document2),serverQuery:removeDirectivesFromDocument([{name:"client",remove:!0},{name:"connection"},{name:"nonreactive"}],document2),defaultVars:getDefaultValues(getOperationDefinition(document2)),asQuery:tslib_es6_assign(tslib_es6_assign({},document2),{definitions:document2.definitions.map(function(def){return def.kind==="OperationDefinition"&&def.operation!=="query"?tslib_es6_assign(tslib_es6_assign({},def),{operation:"query"}):def})})};transformCache.set(document2,cacheEntry)}return transformCache.get(document2)},QueryManager2.prototype.getVariables=function(document2,variables){return tslib_es6_assign(tslib_es6_assign({},this.getDocumentInfo(document2).defaultVars),variables)},QueryManager2.prototype.watchQuery=function(options){var query=this.transform(options.query);options=tslib_es6_assign(tslib_es6_assign({},options),{variables:this.getVariables(query,options.variables)}),typeof options.notifyOnNetworkStatusChange>"u"&&(options.notifyOnNetworkStatusChange=!1);var queryInfo=new QueryInfo(this),observable=new ObservableQuery({queryManager:this,queryInfo,options});return observable.lastQuery=query,this.queries.set(observable.queryId,queryInfo),queryInfo.init({document:query,observableQuery:observable,variables:observable.variables}),observable},QueryManager2.prototype.query=function(options,queryId){var _this=this;return queryId===void 0&&(queryId=this.generateQueryId()),invariantWrappers_invariant(options.query,29),invariantWrappers_invariant(options.query.kind==="Document",30),invariantWrappers_invariant(!options.returnPartialData,31),invariantWrappers_invariant(!options.pollInterval,32),this.fetchQuery(queryId,tslib_es6_assign(tslib_es6_assign({},options),{query:this.transform(options.query)})).finally(function(){return _this.stopQuery(queryId)})},QueryManager2.prototype.generateQueryId=function(){return String(this.queryIdCounter++)},QueryManager2.prototype.generateRequestId=function(){return this.requestIdCounter++},QueryManager2.prototype.generateMutationId=function(){return String(this.mutationIdCounter++)},QueryManager2.prototype.stopQueryInStore=function(queryId){this.stopQueryInStoreNoBroadcast(queryId),this.broadcastQueries()},QueryManager2.prototype.stopQueryInStoreNoBroadcast=function(queryId){var queryInfo=this.queries.get(queryId);queryInfo&&queryInfo.stop()},QueryManager2.prototype.clearStore=function(options){return options===void 0&&(options={discardWatches:!0}),this.cancelPendingFetches(newInvariantError(33)),this.queries.forEach(function(queryInfo){queryInfo.observableQuery?queryInfo.networkStatus=NetworkStatus.loading:queryInfo.stop()}),this.mutationStore&&(this.mutationStore=Object.create(null)),this.cache.reset(options)},QueryManager2.prototype.getObservableQueries=function(include){var _this=this;include===void 0&&(include="active");var queries=new Map,queryNamesAndDocs=new Map,legacyQueryOptions=new Set;return Array.isArray(include)&&include.forEach(function(desc){typeof desc=="string"?queryNamesAndDocs.set(desc,!1):isDocumentNode(desc)?queryNamesAndDocs.set(_this.transform(desc),!1):isNonNullObject(desc)&&desc.query&&legacyQueryOptions.add(desc)}),this.queries.forEach(function(_a2,queryId){var oq=_a2.observableQuery,document2=_a2.document;if(oq){if(include==="all"){queries.set(queryId,oq);return}var queryName=oq.queryName,fetchPolicy=oq.options.fetchPolicy;if(fetchPolicy==="standby"||include==="active"&&!oq.hasObservers())return;(include==="active"||queryName&&queryNamesAndDocs.has(queryName)||document2&&queryNamesAndDocs.has(document2))&&(queries.set(queryId,oq),queryName&&queryNamesAndDocs.set(queryName,!0),document2&&queryNamesAndDocs.set(document2,!0))}}),legacyQueryOptions.size&&legacyQueryOptions.forEach(function(options){var queryId=makeUniqueId("legacyOneTimeQuery"),queryInfo=_this.getQuery(queryId).init({document:options.query,variables:options.variables}),oq=new ObservableQuery({queryManager:_this,queryInfo,options:tslib_es6_assign(tslib_es6_assign({},options),{fetchPolicy:"network-only"})});invariantWrappers_invariant(oq.queryId===queryId),queryInfo.setObservableQuery(oq),queries.set(queryId,oq)}),globalThis.__DEV__!==!1&&queryNamesAndDocs.size&&queryNamesAndDocs.forEach(function(included,nameOrDoc){included||globalThis.__DEV__!==!1&&invariantWrappers_invariant.warn(typeof nameOrDoc=="string"?34:35,nameOrDoc)}),queries},QueryManager2.prototype.reFetchObservableQueries=function(includeStandby){var _this=this;includeStandby===void 0&&(includeStandby=!1);var observableQueryPromises=[];return this.getObservableQueries(includeStandby?"all":"active").forEach(function(observableQuery,queryId){var fetchPolicy=observableQuery.options.fetchPolicy;observableQuery.resetLastResults(),(includeStandby||fetchPolicy!=="standby"&&fetchPolicy!=="cache-only")&&observableQueryPromises.push(observableQuery.refetch()),_this.getQuery(queryId).setDiff(null)}),this.broadcastQueries(),Promise.all(observableQueryPromises)},QueryManager2.prototype.setObservableQuery=function(observableQuery){this.getQuery(observableQuery.queryId).setObservableQuery(observableQuery)},QueryManager2.prototype.startGraphQLSubscription=function(_a2){var _this=this,query=_a2.query,fetchPolicy=_a2.fetchPolicy,_b=_a2.errorPolicy,errorPolicy=_b===void 0?"none":_b,variables=_a2.variables,_c=_a2.context,context=_c===void 0?{}:_c,_d=_a2.extensions,extensions=_d===void 0?{}:_d;query=this.transform(query),variables=this.getVariables(query,variables);var makeObservable=function(variables2){return _this.getObservableFromLink(query,context,variables2,extensions).map(function(result){fetchPolicy!=="no-cache"&&(shouldWriteResult(result,errorPolicy)&&_this.cache.write({query,result:result.data,dataId:"ROOT_SUBSCRIPTION",variables:variables2}),_this.broadcastQueries());var hasErrors=graphQLResultHasError(result),hasProtocolErrors=graphQLResultHasProtocolErrors(result);if(hasErrors||hasProtocolErrors){var errors={};if(hasErrors&&(errors.graphQLErrors=result.errors),hasProtocolErrors&&(errors.protocolErrors=result.extensions[PROTOCOL_ERRORS_SYMBOL]),errorPolicy==="none"||hasProtocolErrors)throw new ApolloError(errors)}return errorPolicy==="ignore"&&delete result.errors,result})};if(this.getDocumentInfo(query).hasClientExports){var observablePromise_1=this.localState.addExportedVariables(query,variables,context).then(makeObservable);return new Observable(function(observer){var sub=null;return observablePromise_1.then(function(observable){return sub=observable.subscribe(observer)},observer.error),function(){return sub&&sub.unsubscribe()}})}return makeObservable(variables)},QueryManager2.prototype.stopQuery=function(queryId){this.stopQueryNoBroadcast(queryId),this.broadcastQueries()},QueryManager2.prototype.stopQueryNoBroadcast=function(queryId){this.stopQueryInStoreNoBroadcast(queryId),this.removeQuery(queryId)},QueryManager2.prototype.removeQuery=function(queryId){this.fetchCancelFns.delete(queryId),this.queries.has(queryId)&&(this.getQuery(queryId).stop(),this.queries.delete(queryId))},QueryManager2.prototype.broadcastQueries=function(){this.onBroadcast&&this.onBroadcast(),this.queries.forEach(function(info){return info.notify()})},QueryManager2.prototype.getLocalState=function(){return this.localState},QueryManager2.prototype.getObservableFromLink=function(query,context,variables,extensions,deduplication){var _this=this,_a2;deduplication===void 0&&(deduplication=(_a2=context?.queryDeduplication)!==null&&_a2!==void 0?_a2:this.queryDeduplication);var observable,_b=this.getDocumentInfo(query),serverQuery=_b.serverQuery,clientQuery=_b.clientQuery;if(serverQuery){var _c=this,inFlightLinkObservables_1=_c.inFlightLinkObservables,link=_c.link,operation={query:serverQuery,variables,operationName:getOperationName(serverQuery)||void 0,context:this.prepareContext(tslib_es6_assign(tslib_es6_assign({},context),{forceFetch:!deduplication})),extensions};if(context=operation.context,deduplication){var printedServerQuery_1=print(serverQuery),varJson_1=canonicalStringify(variables),entry=inFlightLinkObservables_1.lookup(printedServerQuery_1,varJson_1);if(observable=entry.observable,!observable){var concast=new Concast([execute(link,operation)]);observable=entry.observable=concast,concast.beforeNext(function(){inFlightLinkObservables_1.remove(printedServerQuery_1,varJson_1)})}}else observable=new Concast([execute(link,operation)])}else observable=new Concast([Observable.of({data:{}})]),context=this.prepareContext(context);return clientQuery&&(observable=asyncMap(observable,function(result){return _this.localState.runResolvers({document:clientQuery,remoteResult:result,context,variables})})),observable},QueryManager2.prototype.getResultsFromLink=function(queryInfo,cacheWriteBehavior,options){var requestId=queryInfo.lastRequestId=this.generateRequestId(),linkDocument=this.cache.transformForLink(options.query);return asyncMap(this.getObservableFromLink(linkDocument,options.context,options.variables),function(result){var graphQLErrors=getGraphQLErrorsFromResult(result),hasErrors=graphQLErrors.length>0,errorPolicy=options.errorPolicy;if(requestId>=queryInfo.lastRequestId){if(hasErrors&&errorPolicy==="none")throw queryInfo.markError(new ApolloError({graphQLErrors}));queryInfo.markResult(result,linkDocument,options,cacheWriteBehavior),queryInfo.markReady()}var aqr={data:result.data,loading:!1,networkStatus:NetworkStatus.ready};return hasErrors&&errorPolicy==="none"&&(aqr.data=void 0),hasErrors&&errorPolicy!=="ignore"&&(aqr.errors=graphQLErrors,aqr.networkStatus=NetworkStatus.error),aqr},function(networkError){var error=isApolloError(networkError)?networkError:new ApolloError({networkError});throw requestId>=queryInfo.lastRequestId&&queryInfo.markError(error),error})},QueryManager2.prototype.fetchConcastWithInfo=function(queryId,options,networkStatus,query){var _this=this;networkStatus===void 0&&(networkStatus=NetworkStatus.loading),query===void 0&&(query=options.query);var variables=this.getVariables(query,options.variables),queryInfo=this.getQuery(queryId),defaults=this.defaultOptions.watchQuery,_a2=options.fetchPolicy,fetchPolicy=_a2===void 0?defaults&&defaults.fetchPolicy||"cache-first":_a2,_b=options.errorPolicy,errorPolicy=_b===void 0?defaults&&defaults.errorPolicy||"none":_b,_c=options.returnPartialData,returnPartialData=_c===void 0?!1:_c,_d=options.notifyOnNetworkStatusChange,notifyOnNetworkStatusChange=_d===void 0?!1:_d,_e=options.context,context=_e===void 0?{}:_e,normalized=Object.assign({},options,{query,variables,fetchPolicy,errorPolicy,returnPartialData,notifyOnNetworkStatusChange,context}),fromVariables=function(variables2){normalized.variables=variables2;var sourcesWithInfo2=_this.fetchQueryByPolicy(queryInfo,normalized,networkStatus);return normalized.fetchPolicy!=="standby"&&sourcesWithInfo2.sources.length>0&&queryInfo.observableQuery&&queryInfo.observableQuery.applyNextFetchPolicy("after-fetch",options),sourcesWithInfo2},cleanupCancelFn=function(){return _this.fetchCancelFns.delete(queryId)};this.fetchCancelFns.set(queryId,function(reason){cleanupCancelFn(),setTimeout(function(){return concast.cancel(reason)})});var concast,containsDataFromLink;if(this.getDocumentInfo(normalized.query).hasClientExports)concast=new Concast(this.localState.addExportedVariables(normalized.query,normalized.variables,normalized.context).then(fromVariables).then(function(sourcesWithInfo2){return sourcesWithInfo2.sources})),containsDataFromLink=!0;else{var sourcesWithInfo=fromVariables(normalized.variables);containsDataFromLink=sourcesWithInfo.fromLink,concast=new Concast(sourcesWithInfo.sources)}return concast.promise.then(cleanupCancelFn,cleanupCancelFn),{concast,fromLink:containsDataFromLink}},QueryManager2.prototype.refetchQueries=function(_a2){var _this=this,updateCache=_a2.updateCache,include=_a2.include,_b=_a2.optimistic,optimistic=_b===void 0?!1:_b,_c=_a2.removeOptimistic,removeOptimistic=_c===void 0?optimistic?makeUniqueId("refetchQueries"):void 0:_c,onQueryUpdated=_a2.onQueryUpdated,includedQueriesById=new Map;include&&this.getObservableQueries(include).forEach(function(oq,queryId){includedQueriesById.set(queryId,{oq,lastDiff:_this.getQuery(queryId).getDiff()})});var results=new Map;return updateCache&&this.cache.batch({update:updateCache,optimistic:optimistic&&removeOptimistic||!1,removeOptimistic,onWatchUpdated:function(watch,diff,lastDiff){var oq=watch.watcher instanceof QueryInfo&&watch.watcher.observableQuery;if(oq){if(onQueryUpdated){includedQueriesById.delete(oq.queryId);var result=onQueryUpdated(oq,diff,lastDiff);return result===!0&&(result=oq.refetch()),result!==!1&&results.set(oq,result),result}onQueryUpdated!==null&&includedQueriesById.set(oq.queryId,{oq,lastDiff,diff})}}}),includedQueriesById.size&&includedQueriesById.forEach(function(_a3,queryId){var oq=_a3.oq,lastDiff=_a3.lastDiff,diff=_a3.diff,result;if(onQueryUpdated){if(!diff){var info=oq.queryInfo;info.reset(),diff=info.getDiff()}result=onQueryUpdated(oq,diff,lastDiff)}(!onQueryUpdated||result===!0)&&(result=oq.refetch()),result!==!1&&results.set(oq,result),queryId.indexOf("legacyOneTimeQuery")>=0&&_this.stopQueryNoBroadcast(queryId)}),removeOptimistic&&this.cache.removeOptimistic(removeOptimistic),results},QueryManager2.prototype.fetchQueryByPolicy=function(queryInfo,_a2,networkStatus){var _this=this,query=_a2.query,variables=_a2.variables,fetchPolicy=_a2.fetchPolicy,refetchWritePolicy=_a2.refetchWritePolicy,errorPolicy=_a2.errorPolicy,returnPartialData=_a2.returnPartialData,context=_a2.context,notifyOnNetworkStatusChange=_a2.notifyOnNetworkStatusChange,oldNetworkStatus=queryInfo.networkStatus;queryInfo.init({document:query,variables,networkStatus});var readCache=function(){return queryInfo.getDiff()},resultsFromCache=function(diff2,networkStatus2){networkStatus2===void 0&&(networkStatus2=queryInfo.networkStatus||NetworkStatus.loading);var data=diff2.result;globalThis.__DEV__!==!1&&!returnPartialData&&!equal(data,{})&&logMissingFieldErrors(diff2.missing);var fromData=function(data2){return Observable.of(tslib_es6_assign({data:data2,loading:isNetworkRequestInFlight(networkStatus2),networkStatus:networkStatus2},diff2.complete?null:{partial:!0}))};return data&&_this.getDocumentInfo(query).hasForcedResolvers?_this.localState.runResolvers({document:query,remoteResult:{data},context,variables,onlyRunForcedResolvers:!0}).then(function(resolved){return fromData(resolved.data||void 0)}):errorPolicy==="none"&&networkStatus2===NetworkStatus.refetch&&Array.isArray(diff2.missing)?fromData(void 0):fromData(data)},cacheWriteBehavior=fetchPolicy==="no-cache"?0:networkStatus===NetworkStatus.refetch&&refetchWritePolicy!=="merge"?1:2,resultsFromLink=function(){return _this.getResultsFromLink(queryInfo,cacheWriteBehavior,{query,variables,context,fetchPolicy,errorPolicy})},shouldNotify=notifyOnNetworkStatusChange&&typeof oldNetworkStatus=="number"&&oldNetworkStatus!==networkStatus&&isNetworkRequestInFlight(networkStatus);switch(fetchPolicy){default:case"cache-first":{var diff=readCache();return diff.complete?{fromLink:!1,sources:[resultsFromCache(diff,queryInfo.markReady())]}:returnPartialData||shouldNotify?{fromLink:!0,sources:[resultsFromCache(diff),resultsFromLink()]}:{fromLink:!0,sources:[resultsFromLink()]}}case"cache-and-network":{var diff=readCache();return diff.complete||returnPartialData||shouldNotify?{fromLink:!0,sources:[resultsFromCache(diff),resultsFromLink()]}:{fromLink:!0,sources:[resultsFromLink()]}}case"cache-only":return{fromLink:!1,sources:[resultsFromCache(readCache(),queryInfo.markReady())]};case"network-only":return shouldNotify?{fromLink:!0,sources:[resultsFromCache(readCache()),resultsFromLink()]}:{fromLink:!0,sources:[resultsFromLink()]};case"no-cache":return shouldNotify?{fromLink:!0,sources:[resultsFromCache(queryInfo.getDiff()),resultsFromLink()]}:{fromLink:!0,sources:[resultsFromLink()]};case"standby":return{fromLink:!1,sources:[]}}},QueryManager2.prototype.getQuery=function(queryId){return queryId&&!this.queries.has(queryId)&&this.queries.set(queryId,new QueryInfo(this,queryId)),this.queries.get(queryId)},QueryManager2.prototype.prepareContext=function(context){context===void 0&&(context={});var newContext=this.localState.prepareContext(context);return tslib_es6_assign(tslib_es6_assign(tslib_es6_assign({},this.defaultContext),newContext),{clientAwareness:this.clientAwareness})},QueryManager2}(),predicates=__webpack_require__(69050),cacheSlot=new Slot,cacheInfoMap=new WeakMap;function getCacheInfo(cache2){var info=cacheInfoMap.get(cache2);return info||cacheInfoMap.set(cache2,info={vars:new Set,dep:dep()}),info}function forgetCache(cache2){getCacheInfo(cache2).vars.forEach(function(rv){return rv.forgetCache(cache2)})}function recallCache(cache2){getCacheInfo(cache2).vars.forEach(function(rv){return rv.attachCache(cache2)})}function makeVar(value){var caches2=new Set,listeners=new Set,rv=function(newValue){if(arguments.length>0){if(value!==newValue){value=newValue,caches2.forEach(function(cache3){getCacheInfo(cache3).dep.dirty(rv),broadcast(cache3)});var oldListeners=Array.from(listeners);listeners.clear(),oldListeners.forEach(function(listener){return listener(value)})}}else{var cache2=cacheSlot.getValue();cache2&&(attach(cache2),getCacheInfo(cache2).dep(rv))}return value};rv.onNextChange=function(listener){return listeners.add(listener),function(){listeners.delete(listener)}};var attach=rv.attachCache=function(cache2){return caches2.add(cache2),getCacheInfo(cache2).vars.add(rv),rv};return rv.forgetCache=function(cache2){return caches2.delete(cache2)},rv}function broadcast(cache2){cache2.broadcastWatches&&cache2.broadcastWatches()}var LocalState=function(){function LocalState2(_a2){var cache2=_a2.cache,client=_a2.client,resolvers=_a2.resolvers,fragmentMatcher=_a2.fragmentMatcher;this.selectionsToResolveCache=new WeakMap,this.cache=cache2,client&&(this.client=client),resolvers&&this.addResolvers(resolvers),fragmentMatcher&&this.setFragmentMatcher(fragmentMatcher)}return LocalState2.prototype.addResolvers=function(resolvers){var _this=this;this.resolvers=this.resolvers||{},Array.isArray(resolvers)?resolvers.forEach(function(resolverGroup){_this.resolvers=mergeDeep(_this.resolvers,resolverGroup)}):this.resolvers=mergeDeep(this.resolvers,resolvers)},LocalState2.prototype.setResolvers=function(resolvers){this.resolvers={},this.addResolvers(resolvers)},LocalState2.prototype.getResolvers=function(){return this.resolvers||{}},LocalState2.prototype.runResolvers=function(_a2){return __awaiter(this,arguments,void 0,function(_b){var document2=_b.document,remoteResult=_b.remoteResult,context=_b.context,variables=_b.variables,_c=_b.onlyRunForcedResolvers,onlyRunForcedResolvers=_c===void 0?!1:_c;return __generator(this,function(_d){return document2?[2,this.resolveDocument(document2,remoteResult.data,context,variables,this.fragmentMatcher,onlyRunForcedResolvers).then(function(localResult){return tslib_es6_assign(tslib_es6_assign({},remoteResult),{data:localResult.result})})]:[2,remoteResult]})})},LocalState2.prototype.setFragmentMatcher=function(fragmentMatcher){this.fragmentMatcher=fragmentMatcher},LocalState2.prototype.getFragmentMatcher=function(){return this.fragmentMatcher},LocalState2.prototype.clientQuery=function(document2){return hasDirectives(["client"],document2)&&this.resolvers?document2:null},LocalState2.prototype.serverQuery=function(document2){return removeClientSetsFromDocument(document2)},LocalState2.prototype.prepareContext=function(context){var cache2=this.cache;return tslib_es6_assign(tslib_es6_assign({},context),{cache:cache2,getCacheKey:function(obj){return cache2.identify(obj)}})},LocalState2.prototype.addExportedVariables=function(document_1){return __awaiter(this,arguments,void 0,function(document2,variables,context){return variables===void 0&&(variables={}),context===void 0&&(context={}),__generator(this,function(_a2){return document2?[2,this.resolveDocument(document2,this.buildRootValueFromCache(document2,variables)||{},this.prepareContext(context),variables).then(function(data){return tslib_es6_assign(tslib_es6_assign({},variables),data.exportedVariables)})]:[2,tslib_es6_assign({},variables)]})})},LocalState2.prototype.shouldForceResolvers=function(document2){var forceResolvers=!1;return(0,visitor.Vn)(document2,{Directive:{enter:function(node){if(node.name.value==="client"&&node.arguments&&(forceResolvers=node.arguments.some(function(arg){return arg.name.value==="always"&&arg.value.kind==="BooleanValue"&&arg.value.value===!0}),forceResolvers))return visitor.$_}}}),forceResolvers},LocalState2.prototype.buildRootValueFromCache=function(document2,variables){return this.cache.diff({query:buildQueryFromSelectionSet(document2),variables,returnPartialData:!0,optimistic:!1}).result},LocalState2.prototype.resolveDocument=function(document_1,rootValue_1){return __awaiter(this,arguments,void 0,function(document2,rootValue,context,variables,fragmentMatcher,onlyRunForcedResolvers){var mainDefinition,fragments,fragmentMap,selectionsToResolve,definitionOperation,defaultOperationType,_a2,cache2,client,execContext,isClientFieldDescendant;return context===void 0&&(context={}),variables===void 0&&(variables={}),fragmentMatcher===void 0&&(fragmentMatcher=function(){return!0}),onlyRunForcedResolvers===void 0&&(onlyRunForcedResolvers=!1),__generator(this,function(_b){return mainDefinition=getMainDefinition(document2),fragments=getFragmentDefinitions(document2),fragmentMap=createFragmentMap(fragments),selectionsToResolve=this.collectSelectionsToResolve(mainDefinition,fragmentMap),definitionOperation=mainDefinition.operation,defaultOperationType=definitionOperation?definitionOperation.charAt(0).toUpperCase()+definitionOperation.slice(1):"Query",_a2=this,cache2=_a2.cache,client=_a2.client,execContext={fragmentMap,context:tslib_es6_assign(tslib_es6_assign({},context),{cache:cache2,client}),variables,fragmentMatcher,defaultOperationType,exportedVariables:{},selectionsToResolve,onlyRunForcedResolvers},isClientFieldDescendant=!1,[2,this.resolveSelectionSet(mainDefinition.selectionSet,isClientFieldDescendant,rootValue,execContext).then(function(result){return{result,exportedVariables:execContext.exportedVariables}})]})})},LocalState2.prototype.resolveSelectionSet=function(selectionSet,isClientFieldDescendant,rootValue,execContext){return __awaiter(this,void 0,void 0,function(){var fragmentMap,context,variables,resultsToMerge,execute2,_this=this;return __generator(this,function(_a2){return fragmentMap=execContext.fragmentMap,context=execContext.context,variables=execContext.variables,resultsToMerge=[rootValue],execute2=function(selection){return __awaiter(_this,void 0,void 0,function(){var fragment,typeCondition;return __generator(this,function(_a3){return!isClientFieldDescendant&&!execContext.selectionsToResolve.has(selection)?[2]:shouldInclude(selection,variables)?storeUtils_isField(selection)?[2,this.resolveField(selection,isClientFieldDescendant,rootValue,execContext).then(function(fieldResult){var _a4;typeof fieldResult<"u"&&resultsToMerge.push((_a4={},_a4[resultKeyNameFromField(selection)]=fieldResult,_a4))})]:(isInlineFragment(selection)?fragment=selection:(fragment=fragmentMap[selection.name.value],invariantWrappers_invariant(fragment,18,selection.name.value)),fragment&&fragment.typeCondition&&(typeCondition=fragment.typeCondition.name.value,execContext.fragmentMatcher(rootValue,typeCondition,context))?[2,this.resolveSelectionSet(fragment.selectionSet,isClientFieldDescendant,rootValue,execContext).then(function(fragmentResult){resultsToMerge.push(fragmentResult)})]:[2]):[2]})})},[2,Promise.all(selectionSet.selections.map(execute2)).then(function(){return mergeDeepArray(resultsToMerge)})]})})},LocalState2.prototype.resolveField=function(field,isClientFieldDescendant,rootValue,execContext){return __awaiter(this,void 0,void 0,function(){var variables,fieldName,aliasedFieldName,aliasUsed,defaultResult,resultPromise,resolverType,resolverMap,resolve,_this=this;return __generator(this,function(_a2){return rootValue?(variables=execContext.variables,fieldName=field.name.value,aliasedFieldName=resultKeyNameFromField(field),aliasUsed=fieldName!==aliasedFieldName,defaultResult=rootValue[aliasedFieldName]||rootValue[fieldName],resultPromise=Promise.resolve(defaultResult),(!execContext.onlyRunForcedResolvers||this.shouldForceResolvers(field))&&(resolverType=rootValue.__typename||execContext.defaultOperationType,resolverMap=this.resolvers&&this.resolvers[resolverType],resolverMap&&(resolve=resolverMap[aliasUsed?fieldName:aliasedFieldName],resolve&&(resultPromise=Promise.resolve(cacheSlot.withValue(this.cache,resolve,[rootValue,argumentsObjectFromField(field,variables),execContext.context,{field,fragmentMap:execContext.fragmentMap}]))))),[2,resultPromise.then(function(result){var _a3,_b;if(result===void 0&&(result=defaultResult),field.directives&&field.directives.forEach(function(directive){directive.name.value==="export"&&directive.arguments&&directive.arguments.forEach(function(arg){arg.name.value==="as"&&arg.value.kind==="StringValue"&&(execContext.exportedVariables[arg.value.value]=result)})}),!field.selectionSet||result==null)return result;var isClientField=(_b=(_a3=field.directives)===null||_a3===void 0?void 0:_a3.some(function(d){return d.name.value==="client"}))!==null&&_b!==void 0?_b:!1;if(Array.isArray(result))return _this.resolveSubSelectedArray(field,isClientFieldDescendant||isClientField,result,execContext);if(field.selectionSet)return _this.resolveSelectionSet(field.selectionSet,isClientFieldDescendant||isClientField,result,execContext)})]):[2,null]})})},LocalState2.prototype.resolveSubSelectedArray=function(field,isClientFieldDescendant,result,execContext){var _this=this;return Promise.all(result.map(function(item){if(item===null)return null;if(Array.isArray(item))return _this.resolveSubSelectedArray(field,isClientFieldDescendant,item,execContext);if(field.selectionSet)return _this.resolveSelectionSet(field.selectionSet,isClientFieldDescendant,item,execContext)}))},LocalState2.prototype.collectSelectionsToResolve=function(mainDefinition,fragmentMap){var isSingleASTNode=function(node){return!Array.isArray(node)},selectionsToResolveCache=this.selectionsToResolveCache;function collectByDefinition(definitionNode){if(!selectionsToResolveCache.has(definitionNode)){var matches_1=new Set;selectionsToResolveCache.set(definitionNode,matches_1),(0,visitor.Vn)(definitionNode,{Directive:function(node,_,__,___,ancestors){node.name.value==="client"&&ancestors.forEach(function(node2){isSingleASTNode(node2)&&(0,predicates.pO)(node2)&&matches_1.add(node2)})},FragmentSpread:function(spread,_,__,___,ancestors){var fragment=fragmentMap[spread.name.value];invariantWrappers_invariant(fragment,19,spread.name.value);var fragmentSelections=collectByDefinition(fragment);fragmentSelections.size>0&&(ancestors.forEach(function(node){isSingleASTNode(node)&&(0,predicates.pO)(node)&&matches_1.add(node)}),matches_1.add(spread),fragmentSelections.forEach(function(selection){matches_1.add(selection)}))}})}return selectionsToResolveCache.get(definitionNode)}return collectByDefinition(mainDefinition)},LocalState2}();function mergeOptions(defaults,options){return compact(defaults,options,options.variables&&{variables:compact(tslib_es6_assign(tslib_es6_assign({},defaults&&defaults.variables),options.variables))})}var hasSuggestedDevtools=!1,ApolloClient=function(){function ApolloClient2(options){var _this=this;if(this.resetStoreCallbacks=[],this.clearStoreCallbacks=[],!options.cache)throw newInvariantError(15);var uri=options.uri,credentials=options.credentials,headers=options.headers,cache2=options.cache,documentTransform=options.documentTransform,_a2=options.ssrMode,ssrMode=_a2===void 0?!1:_a2,_b=options.ssrForceFetchDelay,ssrForceFetchDelay=_b===void 0?0:_b,connectToDevTools=options.connectToDevTools,_c=options.queryDeduplication,queryDeduplication=_c===void 0?!0:_c,defaultOptions2=options.defaultOptions,defaultContext=options.defaultContext,_d=options.assumeImmutableResults,assumeImmutableResults=_d===void 0?cache2.assumeImmutableResults:_d,resolvers=options.resolvers,typeDefs=options.typeDefs,fragmentMatcher=options.fragmentMatcher,clientAwarenessName=options.name,clientAwarenessVersion=options.version,devtools=options.devtools,link=options.link;link||(link=uri?new HttpLink({uri,credentials,headers}):ApolloLink.empty()),this.link=link,this.cache=cache2,this.disableNetworkFetches=ssrMode||ssrForceFetchDelay>0,this.queryDeduplication=queryDeduplication,this.defaultOptions=defaultOptions2||Object.create(null),this.typeDefs=typeDefs,this.devtoolsConfig=tslib_es6_assign(tslib_es6_assign({},devtools),{enabled:devtools?.enabled||connectToDevTools}),this.devtoolsConfig.enabled===void 0&&(this.devtoolsConfig.enabled=globalThis.__DEV__!==!1),ssrForceFetchDelay&&setTimeout(function(){return _this.disableNetworkFetches=!1},ssrForceFetchDelay),this.watchQuery=this.watchQuery.bind(this),this.query=this.query.bind(this),this.mutate=this.mutate.bind(this),this.watchFragment=this.watchFragment.bind(this),this.resetStore=this.resetStore.bind(this),this.reFetchObservableQueries=this.reFetchObservableQueries.bind(this),this.version=version,this.localState=new LocalState({cache:cache2,client:this,resolvers,fragmentMatcher}),this.queryManager=new QueryManager({cache:this.cache,link:this.link,defaultOptions:this.defaultOptions,defaultContext,documentTransform,queryDeduplication,ssrMode,clientAwareness:{name:clientAwarenessName,version:clientAwarenessVersion},localState:this.localState,assumeImmutableResults,onBroadcast:this.devtoolsConfig.enabled?function(){_this.devToolsHookCb&&_this.devToolsHookCb({action:{},state:{queries:_this.queryManager.getQueryStore(),mutations:_this.queryManager.mutationStore||{}},dataWithOptimisticResults:_this.cache.extract(!0)})}:void 0}),this.devtoolsConfig.enabled&&this.connectToDevTools()}return ApolloClient2.prototype.connectToDevTools=function(){if(!(typeof window>"u")){var windowWithDevTools=window,devtoolsSymbol=Symbol.for("apollo.devtools");(windowWithDevTools[devtoolsSymbol]=windowWithDevTools[devtoolsSymbol]||[]).push(this),windowWithDevTools.__APOLLO_CLIENT__=this,!hasSuggestedDevtools&&globalThis.__DEV__!==!1&&(hasSuggestedDevtools=!0,window.document&&window.top===window.self&&/^(https?|file):$/.test(window.location.protocol)&&setTimeout(function(){if(!window.__APOLLO_DEVTOOLS_GLOBAL_HOOK__){var nav=window.navigator,ua=nav&&nav.userAgent,url=void 0;typeof ua=="string"&&(ua.indexOf("Chrome/")>-1?url="https://chrome.google.com/webstore/detail/apollo-client-developer-t/jdkknkkbebbapilgoeccciglkfbmbnfm":ua.indexOf("Firefox/")>-1&&(url="https://addons.mozilla.org/en-US/firefox/addon/apollo-developer-tools/")),url&&globalThis.__DEV__!==!1&&invariantWrappers_invariant.log("Download the Apollo DevTools for a better development experience: %s",url)}},1e4))}},Object.defineProperty(ApolloClient2.prototype,"documentTransform",{get:function(){return this.queryManager.documentTransform},enumerable:!1,configurable:!0}),ApolloClient2.prototype.stop=function(){this.queryManager.stop()},ApolloClient2.prototype.watchQuery=function(options){return this.defaultOptions.watchQuery&&(options=mergeOptions(this.defaultOptions.watchQuery,options)),this.disableNetworkFetches&&(options.fetchPolicy==="network-only"||options.fetchPolicy==="cache-and-network")&&(options=tslib_es6_assign(tslib_es6_assign({},options),{fetchPolicy:"cache-first"})),this.queryManager.watchQuery(options)},ApolloClient2.prototype.query=function(options){return this.defaultOptions.query&&(options=mergeOptions(this.defaultOptions.query,options)),invariantWrappers_invariant(options.fetchPolicy!=="cache-and-network",16),this.disableNetworkFetches&&options.fetchPolicy==="network-only"&&(options=tslib_es6_assign(tslib_es6_assign({},options),{fetchPolicy:"cache-first"})),this.queryManager.query(options)},ApolloClient2.prototype.mutate=function(options){return this.defaultOptions.mutate&&(options=mergeOptions(this.defaultOptions.mutate,options)),this.queryManager.mutate(options)},ApolloClient2.prototype.subscribe=function(options){return this.queryManager.startGraphQLSubscription(options)},ApolloClient2.prototype.readQuery=function(options,optimistic){return optimistic===void 0&&(optimistic=!1),this.cache.readQuery(options,optimistic)},ApolloClient2.prototype.watchFragment=function(options){return this.cache.watchFragment(options)},ApolloClient2.prototype.readFragment=function(options,optimistic){return optimistic===void 0&&(optimistic=!1),this.cache.readFragment(options,optimistic)},ApolloClient2.prototype.writeQuery=function(options){var ref=this.cache.writeQuery(options);return options.broadcast!==!1&&this.queryManager.broadcastQueries(),ref},ApolloClient2.prototype.writeFragment=function(options){var ref=this.cache.writeFragment(options);return options.broadcast!==!1&&this.queryManager.broadcastQueries(),ref},ApolloClient2.prototype.__actionHookForDevTools=function(cb){this.devToolsHookCb=cb},ApolloClient2.prototype.__requestRaw=function(payload){return execute(this.link,payload)},ApolloClient2.prototype.resetStore=function(){var _this=this;return Promise.resolve().then(function(){return _this.queryManager.clearStore({discardWatches:!1})}).then(function(){return Promise.all(_this.resetStoreCallbacks.map(function(fn){return fn()}))}).then(function(){return _this.reFetchObservableQueries()})},ApolloClient2.prototype.clearStore=function(){var _this=this;return Promise.resolve().then(function(){return _this.queryManager.clearStore({discardWatches:!0})}).then(function(){return Promise.all(_this.clearStoreCallbacks.map(function(fn){return fn()}))})},ApolloClient2.prototype.onResetStore=function(cb){var _this=this;return this.resetStoreCallbacks.push(cb),function(){_this.resetStoreCallbacks=_this.resetStoreCallbacks.filter(function(c){return c!==cb})}},ApolloClient2.prototype.onClearStore=function(cb){var _this=this;return this.clearStoreCallbacks.push(cb),function(){_this.clearStoreCallbacks=_this.clearStoreCallbacks.filter(function(c){return c!==cb})}},ApolloClient2.prototype.reFetchObservableQueries=function(includeStandby){return this.queryManager.reFetchObservableQueries(includeStandby)},ApolloClient2.prototype.refetchQueries=function(options){var map=this.queryManager.refetchQueries(options),queries=[],results=[];map.forEach(function(result2,obsQuery){queries.push(obsQuery),results.push(result2)});var result=Promise.all(results);return result.queries=queries,result.results=results,result.catch(function(error){globalThis.__DEV__!==!1&&invariantWrappers_invariant.debug(17,error)}),result},ApolloClient2.prototype.getObservableQueries=function(include){return include===void 0&&(include="active"),this.queryManager.getObservableQueries(include)},ApolloClient2.prototype.extract=function(optimistic){return this.cache.extract(optimistic)},ApolloClient2.prototype.restore=function(serializedState){return this.cache.restore(serializedState)},ApolloClient2.prototype.addResolvers=function(resolvers){this.localState.addResolvers(resolvers)},ApolloClient2.prototype.setResolvers=function(resolvers){this.localState.setResolvers(resolvers)},ApolloClient2.prototype.getResolvers=function(){return this.localState.getResolvers()},ApolloClient2.prototype.setLocalStateFragmentMatcher=function(fragmentMatcher){this.localState.setFragmentMatcher(fragmentMatcher)},ApolloClient2.prototype.setLink=function(newLink){this.link=this.queryManager.link=newLink},Object.defineProperty(ApolloClient2.prototype,"defaultContext",{get:function(){return this.queryManager.defaultContext},enumerable:!1,configurable:!0}),ApolloClient2}();globalThis.__DEV__!==!1&&(ApolloClient.prototype.getMemoryInternals=getApolloClientMemoryInternals);var Cache;(function(Cache2){})(Cache||(Cache={}));var ApolloCache=function(){function ApolloCache2(){this.assumeImmutableResults=!1,this.getFragmentDoc=lib_wrap(getFragmentQueryDocument,{max:cacheSizes["cache.fragmentQueryDocuments"]||1e3,cache:WeakCache})}return ApolloCache2.prototype.batch=function(options){var _this=this,optimisticId=typeof options.optimistic=="string"?options.optimistic:options.optimistic===!1?null:void 0,updateResult;return this.performTransaction(function(){return updateResult=options.update(_this)},optimisticId),updateResult},ApolloCache2.prototype.recordOptimisticTransaction=function(transaction,optimisticId){this.performTransaction(transaction,optimisticId)},ApolloCache2.prototype.transformDocument=function(document2){return document2},ApolloCache2.prototype.transformForLink=function(document2){return document2},ApolloCache2.prototype.identify=function(object){},ApolloCache2.prototype.gc=function(){return[]},ApolloCache2.prototype.modify=function(options){return!1},ApolloCache2.prototype.readQuery=function(options,optimistic){return optimistic===void 0&&(optimistic=!!options.optimistic),this.read(tslib_es6_assign(tslib_es6_assign({},options),{rootId:options.id||"ROOT_QUERY",optimistic}))},ApolloCache2.prototype.watchFragment=function(options){var _this=this,fragment=options.fragment,fragmentName=options.fragmentName,from2=options.from,_a2=options.optimistic,optimistic=_a2===void 0?!0:_a2,otherOptions=__rest(options,["fragment","fragmentName","from","optimistic"]),query=this.getFragmentDoc(fragment,fragmentName),diffOptions=tslib_es6_assign(tslib_es6_assign({},otherOptions),{returnPartialData:!0,id:typeof from2>"u"||typeof from2=="string"?from2:this.identify(from2),query,optimistic}),latestDiff;return new Observable(function(observer){return _this.watch(tslib_es6_assign(tslib_es6_assign({},diffOptions),{immediate:!0,callback:function(diff){if(!(latestDiff&&equalByQuery(query,{data:latestDiff?.result},{data:diff.result}))){var result={data:diff.result,complete:!!diff.complete};diff.missing&&(result.missing=mergeDeepArray(diff.missing.map(function(error){return error.missing}))),latestDiff=diff,observer.next(result)}}}))})},ApolloCache2.prototype.readFragment=function(options,optimistic){return optimistic===void 0&&(optimistic=!!options.optimistic),this.read(tslib_es6_assign(tslib_es6_assign({},options),{query:this.getFragmentDoc(options.fragment,options.fragmentName),rootId:options.id,optimistic}))},ApolloCache2.prototype.writeQuery=function(_a2){var id=_a2.id,data=_a2.data,options=__rest(_a2,["id","data"]);return this.write(Object.assign(options,{dataId:id||"ROOT_QUERY",result:data}))},ApolloCache2.prototype.writeFragment=function(_a2){var id=_a2.id,data=_a2.data,fragment=_a2.fragment,fragmentName=_a2.fragmentName,options=__rest(_a2,["id","data","fragment","fragmentName"]);return this.write(Object.assign(options,{query:this.getFragmentDoc(fragment,fragmentName),dataId:id,result:data}))},ApolloCache2.prototype.updateQuery=function(options,update){return this.batch({update:function(cache2){var value=cache2.readQuery(options),data=update(value);return data==null?value:(cache2.writeQuery(tslib_es6_assign(tslib_es6_assign({},options),{data})),data)}})},ApolloCache2.prototype.updateFragment=function(options,update){return this.batch({update:function(cache2){var value=cache2.readFragment(options),data=update(value);return data==null?value:(cache2.writeFragment(tslib_es6_assign(tslib_es6_assign({},options),{data})),data)}})},ApolloCache2}();globalThis.__DEV__!==!1&&(ApolloCache.prototype.getMemoryInternals=getApolloCacheMemoryInternals);var MissingFieldError=function(_super){__extends(MissingFieldError2,_super);function MissingFieldError2(message,path,query,variables){var _a2,_this=_super.call(this,message)||this;if(_this.message=message,_this.path=path,_this.query=query,_this.variables=variables,Array.isArray(_this.path)){_this.missing=_this.message;for(var i=_this.path.length-1;i>=0;--i)_this.missing=(_a2={},_a2[_this.path[i]]=_this.missing,_a2)}else _this.missing=_this.path;return _this.__proto__=MissingFieldError2.prototype,_this}return MissingFieldError2}(Error);function deepFreeze(value){var workSet=new Set([value]);return workSet.forEach(function(obj){isNonNullObject(obj)&&shallowFreeze(obj)===obj&&Object.getOwnPropertyNames(obj).forEach(function(name){isNonNullObject(obj[name])&&workSet.add(obj[name])})}),value}function shallowFreeze(obj){if(globalThis.__DEV__!==!1&&!Object.isFrozen(obj))try{Object.freeze(obj)}catch(e){if(e instanceof TypeError)return null;throw e}return obj}function maybeDeepFreeze(obj){return globalThis.__DEV__!==!1&&deepFreeze(obj),obj}var hasOwn=Object.prototype.hasOwnProperty;function isNullish(value){return value==null}function defaultDataIdFromObject(_a2,context){var __typename=_a2.__typename,id=_a2.id,_id=_a2._id;if(typeof __typename=="string"&&(context&&(context.keyObject=isNullish(id)?isNullish(_id)?void 0:{_id}:{id}),isNullish(id)&&!isNullish(_id)&&(id=_id),!isNullish(id)))return"".concat(__typename,":").concat(typeof id=="number"||typeof id=="string"?id:JSON.stringify(id))}var defaultConfig={dataIdFromObject:defaultDataIdFromObject,addTypename:!0,resultCaching:!0,canonizeResults:!1};function normalizeConfig(config){return compact(defaultConfig,config)}function shouldCanonizeResults(config){var value=config.canonizeResults;return value===void 0?defaultConfig.canonizeResults:value}function getTypenameFromStoreObject(store,objectOrReference){return isReference(objectOrReference)?store.get(objectOrReference.__ref,"__typename"):objectOrReference&&objectOrReference.__typename}var TypeOrFieldNameRegExp=/^[_a-z][_0-9a-z]*/i;function fieldNameFromStoreName(storeFieldName){var match=storeFieldName.match(TypeOrFieldNameRegExp);return match?match[0]:storeFieldName}function selectionSetMatchesResult(selectionSet,result,variables){return isNonNullObject(result)?isArray(result)?result.every(function(item){return selectionSetMatchesResult(selectionSet,item,variables)}):selectionSet.selections.every(function(field){if(storeUtils_isField(field)&&shouldInclude(field,variables)){var key=resultKeyNameFromField(field);return hasOwn.call(result,key)&&(!field.selectionSet||selectionSetMatchesResult(field.selectionSet,result[key],variables))}return!0}):!1}function storeValueIsStoreObject(value){return isNonNullObject(value)&&!isReference(value)&&!isArray(value)}function makeProcessedFieldsMerger(){return new DeepMerger}function extractFragmentContext(document2,fragments){var fragmentMap=createFragmentMap(getFragmentDefinitions(document2));return{fragmentMap,lookupFragment:function(name){var def=fragmentMap[name];return!def&&fragments&&(def=fragments.lookup(name)),def||null}}}var DELETE=Object.create(null),delModifier=function(){return DELETE},INVALIDATE=Object.create(null),EntityStore=function(){function EntityStore2(policies,group){var _this=this;this.policies=policies,this.group=group,this.data=Object.create(null),this.rootIds=Object.create(null),this.refs=Object.create(null),this.getFieldValue=function(objectOrReference,storeFieldName){return maybeDeepFreeze(isReference(objectOrReference)?_this.get(objectOrReference.__ref,storeFieldName):objectOrReference&&objectOrReference[storeFieldName])},this.canRead=function(objOrRef){return isReference(objOrRef)?_this.has(objOrRef.__ref):typeof objOrRef=="object"},this.toReference=function(objOrIdOrRef,mergeIntoStore){if(typeof objOrIdOrRef=="string")return makeReference(objOrIdOrRef);if(isReference(objOrIdOrRef))return objOrIdOrRef;var id=_this.policies.identify(objOrIdOrRef)[0];if(id){var ref=makeReference(id);return mergeIntoStore&&_this.merge(id,objOrIdOrRef),ref}}}return EntityStore2.prototype.toObject=function(){return tslib_es6_assign({},this.data)},EntityStore2.prototype.has=function(dataId){return this.lookup(dataId,!0)!==void 0},EntityStore2.prototype.get=function(dataId,fieldName){if(this.group.depend(dataId,fieldName),hasOwn.call(this.data,dataId)){var storeObject=this.data[dataId];if(storeObject&&hasOwn.call(storeObject,fieldName))return storeObject[fieldName]}if(fieldName==="__typename"&&hasOwn.call(this.policies.rootTypenamesById,dataId))return this.policies.rootTypenamesById[dataId];if(this instanceof Layer)return this.parent.get(dataId,fieldName)},EntityStore2.prototype.lookup=function(dataId,dependOnExistence){if(dependOnExistence&&this.group.depend(dataId,"__exists"),hasOwn.call(this.data,dataId))return this.data[dataId];if(this instanceof Layer)return this.parent.lookup(dataId,dependOnExistence);if(this.policies.rootTypenamesById[dataId])return Object.create(null)},EntityStore2.prototype.merge=function(older,newer){var _this=this,dataId;isReference(older)&&(older=older.__ref),isReference(newer)&&(newer=newer.__ref);var existing=typeof older=="string"?this.lookup(dataId=older):older,incoming=typeof newer=="string"?this.lookup(dataId=newer):newer;if(!!incoming){invariantWrappers_invariant(typeof dataId=="string",1);var merged=new DeepMerger(storeObjectReconciler).merge(existing,incoming);if(this.data[dataId]=merged,merged!==existing&&(delete this.refs[dataId],this.group.caching)){var fieldsToDirty_1=Object.create(null);existing||(fieldsToDirty_1.__exists=1),Object.keys(incoming).forEach(function(storeFieldName){if(!existing||existing[storeFieldName]!==merged[storeFieldName]){fieldsToDirty_1[storeFieldName]=1;var fieldName=fieldNameFromStoreName(storeFieldName);fieldName!==storeFieldName&&!_this.policies.hasKeyArgs(merged.__typename,fieldName)&&(fieldsToDirty_1[fieldName]=1),merged[storeFieldName]===void 0&&!(_this instanceof Layer)&&delete merged[storeFieldName]}}),fieldsToDirty_1.__typename&&!(existing&&existing.__typename)&&this.policies.rootTypenamesById[dataId]===merged.__typename&&delete fieldsToDirty_1.__typename,Object.keys(fieldsToDirty_1).forEach(function(fieldName){return _this.group.dirty(dataId,fieldName)})}}},EntityStore2.prototype.modify=function(dataId,fields){var _this=this,storeObject=this.lookup(dataId);if(storeObject){var changedFields_1=Object.create(null),needToMerge_1=!1,allDeleted_1=!0,sharedDetails_1={DELETE,INVALIDATE,isReference,toReference:this.toReference,canRead:this.canRead,readField:function(fieldNameOrOptions,from2){return _this.policies.readField(typeof fieldNameOrOptions=="string"?{fieldName:fieldNameOrOptions,from:from2||makeReference(dataId)}:fieldNameOrOptions,{store:_this})}};if(Object.keys(storeObject).forEach(function(storeFieldName){var fieldName=fieldNameFromStoreName(storeFieldName),fieldValue=storeObject[storeFieldName];if(fieldValue!==void 0){var modify=typeof fields=="function"?fields:fields[storeFieldName]||fields[fieldName];if(modify){var newValue=modify===delModifier?DELETE:modify(maybeDeepFreeze(fieldValue),tslib_es6_assign(tslib_es6_assign({},sharedDetails_1),{fieldName,storeFieldName,storage:_this.getStorage(dataId,storeFieldName)}));if(newValue===INVALIDATE)_this.group.dirty(dataId,storeFieldName);else if(newValue===DELETE&&(newValue=void 0),newValue!==fieldValue&&(changedFields_1[storeFieldName]=newValue,needToMerge_1=!0,fieldValue=newValue,globalThis.__DEV__!==!1)){var checkReference=function(ref){if(_this.lookup(ref.__ref)===void 0)return globalThis.__DEV__!==!1&&invariantWrappers_invariant.warn(2,ref),!0};if(isReference(newValue))checkReference(newValue);else if(Array.isArray(newValue))for(var seenReference=!1,someNonReference=void 0,_i=0,newValue_1=newValue;_i<newValue_1.length;_i++){var value=newValue_1[_i];if(isReference(value)){if(seenReference=!0,checkReference(value))break}else if(typeof value=="object"&&!!value){var id=_this.policies.identify(value)[0];id&&(someNonReference=value)}if(seenReference&&someNonReference!==void 0){globalThis.__DEV__!==!1&&invariantWrappers_invariant.warn(3,someNonReference);break}}}}fieldValue!==void 0&&(allDeleted_1=!1)}}),needToMerge_1)return this.merge(dataId,changedFields_1),allDeleted_1&&(this instanceof Layer?this.data[dataId]=void 0:delete this.data[dataId],this.group.dirty(dataId,"__exists")),!0}return!1},EntityStore2.prototype.delete=function(dataId,fieldName,args){var _a2,storeObject=this.lookup(dataId);if(storeObject){var typename=this.getFieldValue(storeObject,"__typename"),storeFieldName=fieldName&&args?this.policies.getStoreFieldName({typename,fieldName,args}):fieldName;return this.modify(dataId,storeFieldName?(_a2={},_a2[storeFieldName]=delModifier,_a2):delModifier)}return!1},EntityStore2.prototype.evict=function(options,limit){var evicted=!1;return options.id&&(hasOwn.call(this.data,options.id)&&(evicted=this.delete(options.id,options.fieldName,options.args)),this instanceof Layer&&this!==limit&&(evicted=this.parent.evict(options,limit)||evicted),(options.fieldName||evicted)&&this.group.dirty(options.id,options.fieldName||"__exists")),evicted},EntityStore2.prototype.clear=function(){this.replace(null)},EntityStore2.prototype.extract=function(){var _this=this,obj=this.toObject(),extraRootIds=[];return this.getRootIdSet().forEach(function(id){hasOwn.call(_this.policies.rootTypenamesById,id)||extraRootIds.push(id)}),extraRootIds.length&&(obj.__META={extraRootIds:extraRootIds.sort()}),obj},EntityStore2.prototype.replace=function(newData){var _this=this;if(Object.keys(this.data).forEach(function(dataId){newData&&hasOwn.call(newData,dataId)||_this.delete(dataId)}),newData){var __META=newData.__META,rest_1=__rest(newData,["__META"]);Object.keys(rest_1).forEach(function(dataId){_this.merge(dataId,rest_1[dataId])}),__META&&__META.extraRootIds.forEach(this.retain,this)}},EntityStore2.prototype.retain=function(rootId){return this.rootIds[rootId]=(this.rootIds[rootId]||0)+1},EntityStore2.prototype.release=function(rootId){if(this.rootIds[rootId]>0){var count=--this.rootIds[rootId];return count||delete this.rootIds[rootId],count}return 0},EntityStore2.prototype.getRootIdSet=function(ids){return ids===void 0&&(ids=new Set),Object.keys(this.rootIds).forEach(ids.add,ids),this instanceof Layer?this.parent.getRootIdSet(ids):Object.keys(this.policies.rootTypenamesById).forEach(ids.add,ids),ids},EntityStore2.prototype.gc=function(){var _this=this,ids=this.getRootIdSet(),snapshot=this.toObject();ids.forEach(function(id){hasOwn.call(snapshot,id)&&(Object.keys(_this.findChildRefIds(id)).forEach(ids.add,ids),delete snapshot[id])});var idsToRemove=Object.keys(snapshot);if(idsToRemove.length){for(var root_1=this;root_1 instanceof Layer;)root_1=root_1.parent;idsToRemove.forEach(function(id){return root_1.delete(id)})}return idsToRemove},EntityStore2.prototype.findChildRefIds=function(dataId){if(!hasOwn.call(this.refs,dataId)){var found_1=this.refs[dataId]=Object.create(null),root=this.data[dataId];if(!root)return found_1;var workSet_1=new Set([root]);workSet_1.forEach(function(obj){isReference(obj)&&(found_1[obj.__ref]=!0),isNonNullObject(obj)&&Object.keys(obj).forEach(function(key){var child=obj[key];isNonNullObject(child)&&workSet_1.add(child)})})}return this.refs[dataId]},EntityStore2.prototype.makeCacheKey=function(){return this.group.keyMaker.lookupArray(arguments)},EntityStore2}(),CacheGroup=function(){function CacheGroup2(caching,parent){parent===void 0&&(parent=null),this.caching=caching,this.parent=parent,this.d=null,this.resetCaching()}return CacheGroup2.prototype.resetCaching=function(){this.d=this.caching?dep():null,this.keyMaker=new Trie(canUseWeakMap)},CacheGroup2.prototype.depend=function(dataId,storeFieldName){if(this.d){this.d(makeDepKey(dataId,storeFieldName));var fieldName=fieldNameFromStoreName(storeFieldName);fieldName!==storeFieldName&&this.d(makeDepKey(dataId,fieldName)),this.parent&&this.parent.depend(dataId,storeFieldName)}},CacheGroup2.prototype.dirty=function(dataId,storeFieldName){this.d&&this.d.dirty(makeDepKey(dataId,storeFieldName),storeFieldName==="__exists"?"forget":"setDirty")},CacheGroup2}();function makeDepKey(dataId,storeFieldName){return storeFieldName+"#"+dataId}function maybeDependOnExistenceOfEntity(store,entityId){supportsResultCaching(store)&&store.group.depend(entityId,"__exists")}(function(EntityStore2){var Root=function(_super){__extends(Root2,_super);function Root2(_a2){var policies=_a2.policies,_b=_a2.resultCaching,resultCaching=_b===void 0?!0:_b,seed=_a2.seed,_this=_super.call(this,policies,new CacheGroup(resultCaching))||this;return _this.stump=new Stump(_this),_this.storageTrie=new Trie(canUseWeakMap),seed&&_this.replace(seed),_this}return Root2.prototype.addLayer=function(layerId,replay){return this.stump.addLayer(layerId,replay)},Root2.prototype.removeLayer=function(){return this},Root2.prototype.getStorage=function(){return this.storageTrie.lookupArray(arguments)},Root2}(EntityStore2);EntityStore2.Root=Root})(EntityStore||(EntityStore={}));var Layer=function(_super){__extends(Layer2,_super);function Layer2(id,parent,replay,group){var _this=_super.call(this,parent.policies,group)||this;return _this.id=id,_this.parent=parent,_this.replay=replay,_this.group=group,replay(_this),_this}return Layer2.prototype.addLayer=function(layerId,replay){return new Layer2(layerId,this,replay,this.group)},Layer2.prototype.removeLayer=function(layerId){var _this=this,parent=this.parent.removeLayer(layerId);return layerId===this.id?(this.group.caching&&Object.keys(this.data).forEach(function(dataId){var ownStoreObject=_this.data[dataId],parentStoreObject=parent.lookup(dataId);parentStoreObject?ownStoreObject?ownStoreObject!==parentStoreObject&&Object.keys(ownStoreObject).forEach(function(storeFieldName){equal(ownStoreObject[storeFieldName],parentStoreObject[storeFieldName])||_this.group.dirty(dataId,storeFieldName)}):(_this.group.dirty(dataId,"__exists"),Object.keys(parentStoreObject).forEach(function(storeFieldName){_this.group.dirty(dataId,storeFieldName)})):_this.delete(dataId)}),parent):parent===this.parent?this:parent.addLayer(this.id,this.replay)},Layer2.prototype.toObject=function(){return tslib_es6_assign(tslib_es6_assign({},this.parent.toObject()),this.data)},Layer2.prototype.findChildRefIds=function(dataId){var fromParent=this.parent.findChildRefIds(dataId);return hasOwn.call(this.data,dataId)?tslib_es6_assign(tslib_es6_assign({},fromParent),_super.prototype.findChildRefIds.call(this,dataId)):fromParent},Layer2.prototype.getStorage=function(){for(var p=this.parent;p.parent;)p=p.parent;return p.getStorage.apply(p,arguments)},Layer2}(EntityStore),Stump=function(_super){__extends(Stump2,_super);function Stump2(root){return _super.call(this,"EntityStore.Stump",root,function(){},new CacheGroup(root.group.caching,root.group))||this}return Stump2.prototype.removeLayer=function(){return this},Stump2.prototype.merge=function(older,newer){return this.parent.merge(older,newer)},Stump2}(Layer);function storeObjectReconciler(existingObject,incomingObject,property){var existingValue=existingObject[property],incomingValue=incomingObject[property];return equal(existingValue,incomingValue)?existingValue:incomingValue}function supportsResultCaching(store){return!!(store instanceof EntityStore&&store.group.caching)}function shallowCopy(value){return isNonNullObject(value)?isArray(value)?value.slice(0):tslib_es6_assign({__proto__:Object.getPrototypeOf(value)},value):value}var ObjectCanon=function(){function ObjectCanon2(){this.known=new(canUseWeakSet?WeakSet:Set),this.pool=new Trie(canUseWeakMap),this.passes=new WeakMap,this.keysByJSON=new Map,this.empty=this.admit({})}return ObjectCanon2.prototype.isKnown=function(value){return isNonNullObject(value)&&this.known.has(value)},ObjectCanon2.prototype.pass=function(value){if(isNonNullObject(value)){var copy=shallowCopy(value);return this.passes.set(copy,value),copy}return value},ObjectCanon2.prototype.admit=function(value){var _this=this;if(isNonNullObject(value)){var original=this.passes.get(value);if(original)return original;var proto=Object.getPrototypeOf(value);switch(proto){case Array.prototype:{if(this.known.has(value))return value;var array=value.map(this.admit,this),node=this.pool.lookupArray(array);return node.array||(this.known.add(node.array=array),globalThis.__DEV__!==!1&&Object.freeze(array)),node.array}case null:case Object.prototype:{if(this.known.has(value))return value;var proto_1=Object.getPrototypeOf(value),array_1=[proto_1],keys=this.sortedKeys(value);array_1.push(keys.json);var firstValueIndex_1=array_1.length;keys.sorted.forEach(function(key){array_1.push(_this.admit(value[key]))});var node=this.pool.lookupArray(array_1);if(!node.object){var obj_1=node.object=Object.create(proto_1);this.known.add(obj_1),keys.sorted.forEach(function(key,i){obj_1[key]=array_1[firstValueIndex_1+i]}),globalThis.__DEV__!==!1&&Object.freeze(obj_1)}return node.object}}}return value},ObjectCanon2.prototype.sortedKeys=function(obj){var keys=Object.keys(obj),node=this.pool.lookupArray(keys);if(!node.keys){keys.sort();var json=JSON.stringify(keys);(node.keys=this.keysByJSON.get(json))||this.keysByJSON.set(json,node.keys={sorted:keys,json})}return node.keys},ObjectCanon2}();function execSelectionSetKeyArgs(options){return[options.selectionSet,options.objectOrReference,options.context,options.context.canonizeResults]}var StoreReader=function(){function StoreReader2(config){var _this=this;this.knownResults=new(canUseWeakMap?WeakMap:Map),this.config=compact(config,{addTypename:config.addTypename!==!1,canonizeResults:shouldCanonizeResults(config)}),this.canon=config.canon||new ObjectCanon,this.executeSelectionSet=lib_wrap(function(options){var _a2,canonizeResults=options.context.canonizeResults,peekArgs=execSelectionSetKeyArgs(options);peekArgs[3]=!canonizeResults;var other=(_a2=_this.executeSelectionSet).peek.apply(_a2,peekArgs);return other?canonizeResults?tslib_es6_assign(tslib_es6_assign({},other),{result:_this.canon.admit(other.result)}):other:(maybeDependOnExistenceOfEntity(options.context.store,options.enclosingRef.__ref),_this.execSelectionSetImpl(options))},{max:this.config.resultCacheMaxSize||cacheSizes["inMemoryCache.executeSelectionSet"]||5e4,keyArgs:execSelectionSetKeyArgs,makeCacheKey:function(selectionSet,parent,context,canonizeResults){if(supportsResultCaching(context.store))return context.store.makeCacheKey(selectionSet,isReference(parent)?parent.__ref:parent,context.varString,canonizeResults)}}),this.executeSubSelectedArray=lib_wrap(function(options){return maybeDependOnExistenceOfEntity(options.context.store,options.enclosingRef.__ref),_this.execSubSelectedArrayImpl(options)},{max:this.config.resultCacheMaxSize||cacheSizes["inMemoryCache.executeSubSelectedArray"]||1e4,makeCacheKey:function(_a2){var field=_a2.field,array=_a2.array,context=_a2.context;if(supportsResultCaching(context.store))return context.store.makeCacheKey(field,array,context.varString)}})}return StoreReader2.prototype.resetCanon=function(){this.canon=new ObjectCanon},StoreReader2.prototype.diffQueryAgainstStore=function(_a2){var store=_a2.store,query=_a2.query,_b=_a2.rootId,rootId=_b===void 0?"ROOT_QUERY":_b,variables=_a2.variables,_c=_a2.returnPartialData,returnPartialData=_c===void 0?!0:_c,_d=_a2.canonizeResults,canonizeResults=_d===void 0?this.config.canonizeResults:_d,policies=this.config.cache.policies;variables=tslib_es6_assign(tslib_es6_assign({},getDefaultValues(getQueryDefinition(query))),variables);var rootRef=makeReference(rootId),execResult=this.executeSelectionSet({selectionSet:getMainDefinition(query).selectionSet,objectOrReference:rootRef,enclosingRef:rootRef,context:tslib_es6_assign({store,query,policies,variables,varString:canonicalStringify(variables),canonizeResults},extractFragmentContext(query,this.config.fragments))}),missing;if(execResult.missing&&(missing=[new MissingFieldError(firstMissing(execResult.missing),execResult.missing,query,variables)],!returnPartialData))throw missing[0];return{result:execResult.result,complete:!missing,missing}},StoreReader2.prototype.isFresh=function(result,parent,selectionSet,context){if(supportsResultCaching(context.store)&&this.knownResults.get(result)===selectionSet){var latest=this.executeSelectionSet.peek(selectionSet,parent,context,this.canon.isKnown(result));if(latest&&result===latest.result)return!0}return!1},StoreReader2.prototype.execSelectionSetImpl=function(_a2){var _this=this,selectionSet=_a2.selectionSet,objectOrReference=_a2.objectOrReference,enclosingRef=_a2.enclosingRef,context=_a2.context;if(isReference(objectOrReference)&&!context.policies.rootTypenamesById[objectOrReference.__ref]&&!context.store.has(objectOrReference.__ref))return{result:this.canon.empty,missing:"Dangling reference to missing ".concat(objectOrReference.__ref," object")};var variables=context.variables,policies=context.policies,store=context.store,typename=store.getFieldValue(objectOrReference,"__typename"),objectsToMerge=[],missing,missingMerger=new DeepMerger;this.config.addTypename&&typeof typename=="string"&&!policies.rootIdsByTypename[typename]&&objectsToMerge.push({__typename:typename});function handleMissing(result2,resultName){var _a3;return result2.missing&&(missing=missingMerger.merge(missing,(_a3={},_a3[resultName]=result2.missing,_a3))),result2.result}var workSet=new Set(selectionSet.selections);workSet.forEach(function(selection){var _a3,_b;if(!!shouldInclude(selection,variables))if(storeUtils_isField(selection)){var fieldValue=policies.readField({fieldName:selection.name.value,field:selection,variables:context.variables,from:objectOrReference},context),resultName=resultKeyNameFromField(selection);fieldValue===void 0?addTypenameToDocument.added(selection)||(missing=missingMerger.merge(missing,(_a3={},_a3[resultName]="Can't find field '".concat(selection.name.value,"' on ").concat(isReference(objectOrReference)?objectOrReference.__ref+" object":"object "+JSON.stringify(objectOrReference,null,2)),_a3))):isArray(fieldValue)?fieldValue.length>0&&(fieldValue=handleMissing(_this.executeSubSelectedArray({field:selection,array:fieldValue,enclosingRef,context}),resultName)):selection.selectionSet?fieldValue!=null&&(fieldValue=handleMissing(_this.executeSelectionSet({selectionSet:selection.selectionSet,objectOrReference:fieldValue,enclosingRef:isReference(fieldValue)?fieldValue:enclosingRef,context}),resultName)):context.canonizeResults&&(fieldValue=_this.canon.pass(fieldValue)),fieldValue!==void 0&&objectsToMerge.push((_b={},_b[resultName]=fieldValue,_b))}else{var fragment=getFragmentFromSelection(selection,context.lookupFragment);if(!fragment&&selection.kind===kinds.h.FRAGMENT_SPREAD)throw newInvariantError(9,selection.name.value);fragment&&policies.fragmentMatches(fragment,typename)&&fragment.selectionSet.selections.forEach(workSet.add,workSet)}});var result=mergeDeepArray(objectsToMerge),finalResult={result,missing},frozen=context.canonizeResults?this.canon.admit(finalResult):maybeDeepFreeze(finalResult);return frozen.result&&this.knownResults.set(frozen.result,selectionSet),frozen},StoreReader2.prototype.execSubSelectedArrayImpl=function(_a2){var _this=this,field=_a2.field,array=_a2.array,enclosingRef=_a2.enclosingRef,context=_a2.context,missing,missingMerger=new DeepMerger;function handleMissing(childResult,i){var _a3;return childResult.missing&&(missing=missingMerger.merge(missing,(_a3={},_a3[i]=childResult.missing,_a3))),childResult.result}return field.selectionSet&&(array=array.filter(context.store.canRead)),array=array.map(function(item,i){return item===null?null:isArray(item)?handleMissing(_this.executeSubSelectedArray({field,array:item,enclosingRef,context}),i):field.selectionSet?handleMissing(_this.executeSelectionSet({selectionSet:field.selectionSet,objectOrReference:item,enclosingRef:isReference(item)?item:enclosingRef,context}),i):(globalThis.__DEV__!==!1&&assertSelectionSetForIdValue(context.store,field,item),item)}),{result:context.canonizeResults?this.canon.admit(array):array,missing}},StoreReader2}();function firstMissing(tree){try{JSON.stringify(tree,function(_,value){if(typeof value=="string")throw value;return value})}catch(result){return result}}function assertSelectionSetForIdValue(store,field,fieldValue){if(!field.selectionSet){var workSet_1=new Set([fieldValue]);workSet_1.forEach(function(value){isNonNullObject(value)&&(invariantWrappers_invariant(!isReference(value),10,getTypenameFromStoreObject(store,value),field.name.value),Object.values(value).forEach(workSet_1.add,workSet_1))})}}var specifierInfoCache=Object.create(null);function lookupSpecifierInfo(spec){var cacheKey=JSON.stringify(spec);return specifierInfoCache[cacheKey]||(specifierInfoCache[cacheKey]=Object.create(null))}function keyFieldsFnFromSpecifier(specifier){var info=lookupSpecifierInfo(specifier);return info.keyFieldsFn||(info.keyFieldsFn=function(object,context){var extract=function(from2,key){return context.readField(key,from2)},keyObject=context.keyObject=collectSpecifierPaths(specifier,function(schemaKeyPath){var extracted=extractKeyPath(context.storeObject,schemaKeyPath,extract);return extracted===void 0&&object!==context.storeObject&&hasOwn.call(object,schemaKeyPath[0])&&(extracted=extractKeyPath(object,schemaKeyPath,extractKey)),invariantWrappers_invariant(extracted!==void 0,4,schemaKeyPath.join("."),object),extracted});return"".concat(context.typename,":").concat(JSON.stringify(keyObject))})}function keyArgsFnFromSpecifier(specifier){var info=lookupSpecifierInfo(specifier);return info.keyArgsFn||(info.keyArgsFn=function(args,_a2){var field=_a2.field,variables=_a2.variables,fieldName=_a2.fieldName,collected=collectSpecifierPaths(specifier,function(keyPath){var firstKey=keyPath[0],firstChar=firstKey.charAt(0);if(firstChar==="@"){if(field&&isNonEmptyArray(field.directives)){var directiveName_1=firstKey.slice(1),d=field.directives.find(function(d2){return d2.name.value===directiveName_1}),directiveArgs=d&&argumentsObjectFromField(d,variables);return directiveArgs&&extractKeyPath(directiveArgs,keyPath.slice(1))}return}if(firstChar==="$"){var variableName=firstKey.slice(1);if(variables&&hasOwn.call(variables,variableName)){var varKeyPath=keyPath.slice(0);return varKeyPath[0]=variableName,extractKeyPath(variables,varKeyPath)}return}if(args)return extractKeyPath(args,keyPath)}),suffix=JSON.stringify(collected);return(args||suffix!=="{}")&&(fieldName+=":"+suffix),fieldName})}function collectSpecifierPaths(specifier,extractor){var merger=new DeepMerger;return getSpecifierPaths(specifier).reduce(function(collected,path){var _a2,toMerge=extractor(path);if(toMerge!==void 0){for(var i=path.length-1;i>=0;--i)toMerge=(_a2={},_a2[path[i]]=toMerge,_a2);collected=merger.merge(collected,toMerge)}return collected},Object.create(null))}function getSpecifierPaths(spec){var info=lookupSpecifierInfo(spec);if(!info.paths){var paths_1=info.paths=[],currentPath_1=[];spec.forEach(function(s,i){isArray(s)?(getSpecifierPaths(s).forEach(function(p){return paths_1.push(currentPath_1.concat(p))}),currentPath_1.length=0):(currentPath_1.push(s),isArray(spec[i+1])||(paths_1.push(currentPath_1.slice(0)),currentPath_1.length=0))})}return info.paths}function extractKey(object,key){return object[key]}function extractKeyPath(object,path,extract){return extract=extract||extractKey,normalize(path.reduce(function reducer(obj,key){return isArray(obj)?obj.map(function(child){return reducer(child,key)}):obj&&extract(obj,key)},object))}function normalize(value){return isNonNullObject(value)?isArray(value)?value.map(normalize):collectSpecifierPaths(Object.keys(value).sort(),function(path){return extractKeyPath(value,path)}):value}function argsFromFieldSpecifier(spec){return spec.args!==void 0?spec.args:spec.field?argumentsObjectFromField(spec.field,spec.variables):null}var nullKeyFieldsFn=function(){},simpleKeyArgsFn=function(_args,context){return context.fieldName},mergeTrueFn=function(existing,incoming,_a2){var mergeObjects=_a2.mergeObjects;return mergeObjects(existing,incoming)},mergeFalseFn=function(_,incoming){return incoming},Policies=function(){function Policies2(config){this.config=config,this.typePolicies=Object.create(null),this.toBeAdded=Object.create(null),this.supertypeMap=new Map,this.fuzzySubtypes=new Map,this.rootIdsByTypename=Object.create(null),this.rootTypenamesById=Object.create(null),this.usingPossibleTypes=!1,this.config=tslib_es6_assign({dataIdFromObject:defaultDataIdFromObject},config),this.cache=this.config.cache,this.setRootTypename("Query"),this.setRootTypename("Mutation"),this.setRootTypename("Subscription"),config.possibleTypes&&this.addPossibleTypes(config.possibleTypes),config.typePolicies&&this.addTypePolicies(config.typePolicies)}return Policies2.prototype.identify=function(object,partialContext){var _a2,policies=this,typename=partialContext&&(partialContext.typename||((_a2=partialContext.storeObject)===null||_a2===void 0?void 0:_a2.__typename))||object.__typename;if(typename===this.rootTypenamesById.ROOT_QUERY)return["ROOT_QUERY"];for(var storeObject=partialContext&&partialContext.storeObject||object,context=tslib_es6_assign(tslib_es6_assign({},partialContext),{typename,storeObject,readField:partialContext&&partialContext.readField||function(){var options=normalizeReadFieldOptions(arguments,storeObject);return policies.readField(options,{store:policies.cache.data,variables:options.variables})}}),id,policy=typename&&this.getTypePolicy(typename),keyFn=policy&&policy.keyFn||this.config.dataIdFromObject;keyFn;){var specifierOrId=keyFn(tslib_es6_assign(tslib_es6_assign({},object),storeObject),context);if(isArray(specifierOrId))keyFn=keyFieldsFnFromSpecifier(specifierOrId);else{id=specifierOrId;break}}return id=id?String(id):void 0,context.keyObject?[id,context.keyObject]:[id]},Policies2.prototype.addTypePolicies=function(typePolicies){var _this=this;Object.keys(typePolicies).forEach(function(typename){var _a2=typePolicies[typename],queryType=_a2.queryType,mutationType=_a2.mutationType,subscriptionType=_a2.subscriptionType,incoming=__rest(_a2,["queryType","mutationType","subscriptionType"]);queryType&&_this.setRootTypename("Query",typename),mutationType&&_this.setRootTypename("Mutation",typename),subscriptionType&&_this.setRootTypename("Subscription",typename),hasOwn.call(_this.toBeAdded,typename)?_this.toBeAdded[typename].push(incoming):_this.toBeAdded[typename]=[incoming]})},Policies2.prototype.updateTypePolicy=function(typename,incoming){var _this=this,existing=this.getTypePolicy(typename),keyFields=incoming.keyFields,fields=incoming.fields;function setMerge(existing2,merge){existing2.merge=typeof merge=="function"?merge:merge===!0?mergeTrueFn:merge===!1?mergeFalseFn:existing2.merge}setMerge(existing,incoming.merge),existing.keyFn=keyFields===!1?nullKeyFieldsFn:isArray(keyFields)?keyFieldsFnFromSpecifier(keyFields):typeof keyFields=="function"?keyFields:existing.keyFn,fields&&Object.keys(fields).forEach(function(fieldName){var existing2=_this.getFieldPolicy(typename,fieldName,!0),incoming2=fields[fieldName];if(typeof incoming2=="function")existing2.read=incoming2;else{var keyArgs=incoming2.keyArgs,read=incoming2.read,merge=incoming2.merge;existing2.keyFn=keyArgs===!1?simpleKeyArgsFn:isArray(keyArgs)?keyArgsFnFromSpecifier(keyArgs):typeof keyArgs=="function"?keyArgs:existing2.keyFn,typeof read=="function"&&(existing2.read=read),setMerge(existing2,merge)}existing2.read&&existing2.merge&&(existing2.keyFn=existing2.keyFn||simpleKeyArgsFn)})},Policies2.prototype.setRootTypename=function(which,typename){typename===void 0&&(typename=which);var rootId="ROOT_"+which.toUpperCase(),old=this.rootTypenamesById[rootId];typename!==old&&(invariantWrappers_invariant(!old||old===which,5,which),old&&delete this.rootIdsByTypename[old],this.rootIdsByTypename[typename]=rootId,this.rootTypenamesById[rootId]=typename)},Policies2.prototype.addPossibleTypes=function(possibleTypes){var _this=this;this.usingPossibleTypes=!0,Object.keys(possibleTypes).forEach(function(supertype){_this.getSupertypeSet(supertype,!0),possibleTypes[supertype].forEach(function(subtype){_this.getSupertypeSet(subtype,!0).add(supertype);var match=subtype.match(TypeOrFieldNameRegExp);(!match||match[0]!==subtype)&&_this.fuzzySubtypes.set(subtype,new RegExp(subtype))})})},Policies2.prototype.getTypePolicy=function(typename){var _this=this;if(!hasOwn.call(this.typePolicies,typename)){var policy_1=this.typePolicies[typename]=Object.create(null);policy_1.fields=Object.create(null);var supertypes_1=this.supertypeMap.get(typename);!supertypes_1&&this.fuzzySubtypes.size&&(supertypes_1=this.getSupertypeSet(typename,!0),this.fuzzySubtypes.forEach(function(regExp,fuzzy){if(regExp.test(typename)){var fuzzySupertypes=_this.supertypeMap.get(fuzzy);fuzzySupertypes&&fuzzySupertypes.forEach(function(supertype){return supertypes_1.add(supertype)})}})),supertypes_1&&supertypes_1.size&&supertypes_1.forEach(function(supertype){var _a2=_this.getTypePolicy(supertype),fields=_a2.fields,rest=__rest(_a2,["fields"]);Object.assign(policy_1,rest),Object.assign(policy_1.fields,fields)})}var inbox=this.toBeAdded[typename];return inbox&&inbox.length&&inbox.splice(0).forEach(function(policy){_this.updateTypePolicy(typename,policy)}),this.typePolicies[typename]},Policies2.prototype.getFieldPolicy=function(typename,fieldName,createIfMissing){if(typename){var fieldPolicies=this.getTypePolicy(typename).fields;return fieldPolicies[fieldName]||createIfMissing&&(fieldPolicies[fieldName]=Object.create(null))}},Policies2.prototype.getSupertypeSet=function(subtype,createIfMissing){var supertypeSet=this.supertypeMap.get(subtype);return!supertypeSet&&createIfMissing&&this.supertypeMap.set(subtype,supertypeSet=new Set),supertypeSet},Policies2.prototype.fragmentMatches=function(fragment,typename,result,variables){var _this=this;if(!fragment.typeCondition)return!0;if(!typename)return!1;var supertype=fragment.typeCondition.name.value;if(typename===supertype)return!0;if(this.usingPossibleTypes&&this.supertypeMap.has(supertype))for(var typenameSupertypeSet=this.getSupertypeSet(typename,!0),workQueue_1=[typenameSupertypeSet],maybeEnqueue_1=function(subtype){var supertypeSet2=_this.getSupertypeSet(subtype,!1);supertypeSet2&&supertypeSet2.size&&workQueue_1.indexOf(supertypeSet2)<0&&workQueue_1.push(supertypeSet2)},needToCheckFuzzySubtypes=!!(result&&this.fuzzySubtypes.size),checkingFuzzySubtypes=!1,i=0;i<workQueue_1.length;++i){var supertypeSet=workQueue_1[i];if(supertypeSet.has(supertype))return typenameSupertypeSet.has(supertype)||(checkingFuzzySubtypes&&globalThis.__DEV__!==!1&&invariantWrappers_invariant.warn(6,typename,supertype),typenameSupertypeSet.add(supertype)),!0;supertypeSet.forEach(maybeEnqueue_1),needToCheckFuzzySubtypes&&i===workQueue_1.length-1&&selectionSetMatchesResult(fragment.selectionSet,result,variables)&&(needToCheckFuzzySubtypes=!1,checkingFuzzySubtypes=!0,this.fuzzySubtypes.forEach(function(regExp,fuzzyString){var match=typename.match(regExp);match&&match[0]===typename&&maybeEnqueue_1(fuzzyString)}))}return!1},Policies2.prototype.hasKeyArgs=function(typename,fieldName){var policy=this.getFieldPolicy(typename,fieldName,!1);return!!(policy&&policy.keyFn)},Policies2.prototype.getStoreFieldName=function(fieldSpec){var typename=fieldSpec.typename,fieldName=fieldSpec.fieldName,policy=this.getFieldPolicy(typename,fieldName,!1),storeFieldName,keyFn=policy&&policy.keyFn;if(keyFn&&typename)for(var context={typename,fieldName,field:fieldSpec.field||null,variables:fieldSpec.variables},args=argsFromFieldSpecifier(fieldSpec);keyFn;){var specifierOrString=keyFn(args,context);if(isArray(specifierOrString))keyFn=keyArgsFnFromSpecifier(specifierOrString);else{storeFieldName=specifierOrString||fieldName;break}}return storeFieldName===void 0&&(storeFieldName=fieldSpec.field?storeKeyNameFromField(fieldSpec.field,fieldSpec.variables):getStoreKeyName(fieldName,argsFromFieldSpecifier(fieldSpec))),storeFieldName===!1?fieldName:fieldName===fieldNameFromStoreName(storeFieldName)?storeFieldName:fieldName+":"+storeFieldName},Policies2.prototype.readField=function(options,context){var objectOrReference=options.from;if(!!objectOrReference){var nameOrField=options.field||options.fieldName;if(!!nameOrField){if(options.typename===void 0){var typename=context.store.getFieldValue(objectOrReference,"__typename");typename&&(options.typename=typename)}var storeFieldName=this.getStoreFieldName(options),fieldName=fieldNameFromStoreName(storeFieldName),existing=context.store.getFieldValue(objectOrReference,storeFieldName),policy=this.getFieldPolicy(options.typename,fieldName,!1),read=policy&&policy.read;if(read){var readOptions=makeFieldFunctionOptions(this,objectOrReference,options,context,context.store.getStorage(isReference(objectOrReference)?objectOrReference.__ref:objectOrReference,storeFieldName));return cacheSlot.withValue(this.cache,read,[existing,readOptions])}return existing}}},Policies2.prototype.getReadFunction=function(typename,fieldName){var policy=this.getFieldPolicy(typename,fieldName,!1);return policy&&policy.read},Policies2.prototype.getMergeFunction=function(parentTypename,fieldName,childTypename){var policy=this.getFieldPolicy(parentTypename,fieldName,!1),merge=policy&&policy.merge;return!merge&&childTypename&&(policy=this.getTypePolicy(childTypename),merge=policy&&policy.merge),merge},Policies2.prototype.runMergeFunction=function(existing,incoming,_a2,context,storage){var field=_a2.field,typename=_a2.typename,merge=_a2.merge;return merge===mergeTrueFn?makeMergeObjectsFunction(context.store)(existing,incoming):merge===mergeFalseFn?incoming:(context.overwrite&&(existing=void 0),merge(existing,incoming,makeFieldFunctionOptions(this,void 0,{typename,fieldName:field.name.value,field,variables:context.variables},context,storage||Object.create(null))))},Policies2}();function makeFieldFunctionOptions(policies,objectOrReference,fieldSpec,context,storage){var storeFieldName=policies.getStoreFieldName(fieldSpec),fieldName=fieldNameFromStoreName(storeFieldName),variables=fieldSpec.variables||context.variables,_a2=context.store,toReference=_a2.toReference,canRead=_a2.canRead;return{args:argsFromFieldSpecifier(fieldSpec),field:fieldSpec.field||null,fieldName,storeFieldName,variables,isReference,toReference,storage,cache:policies.cache,canRead,readField:function(){return policies.readField(normalizeReadFieldOptions(arguments,objectOrReference,variables),context)},mergeObjects:makeMergeObjectsFunction(context.store)}}function normalizeReadFieldOptions(readFieldArgs,objectOrReference,variables){var fieldNameOrOptions=readFieldArgs[0],from2=readFieldArgs[1],argc=readFieldArgs.length,options;return typeof fieldNameOrOptions=="string"?options={fieldName:fieldNameOrOptions,from:argc>1?from2:objectOrReference}:(options=tslib_es6_assign({},fieldNameOrOptions),hasOwn.call(options,"from")||(options.from=objectOrReference)),globalThis.__DEV__!==!1&&options.from===void 0&&globalThis.__DEV__!==!1&&invariantWrappers_invariant.warn(7,stringifyForDisplay(Array.from(readFieldArgs))),options.variables===void 0&&(options.variables=variables),options}function makeMergeObjectsFunction(store){return function(existing,incoming){if(isArray(existing)||isArray(incoming))throw newInvariantError(8);if(isNonNullObject(existing)&&isNonNullObject(incoming)){var eType=store.getFieldValue(existing,"__typename"),iType=store.getFieldValue(incoming,"__typename"),typesDiffer=eType&&iType&&eType!==iType;if(typesDiffer)return incoming;if(isReference(existing)&&storeValueIsStoreObject(incoming))return store.merge(existing.__ref,incoming),existing;if(storeValueIsStoreObject(existing)&&isReference(incoming))return store.merge(existing,incoming.__ref),incoming;if(storeValueIsStoreObject(existing)&&storeValueIsStoreObject(incoming))return tslib_es6_assign(tslib_es6_assign({},existing),incoming)}return incoming}}function getContextFlavor(context,clientOnly,deferred){var key="".concat(clientOnly).concat(deferred),flavored=context.flavors.get(key);return flavored||context.flavors.set(key,flavored=context.clientOnly===clientOnly&&context.deferred===deferred?context:tslib_es6_assign(tslib_es6_assign({},context),{clientOnly,deferred})),flavored}var StoreWriter=function(){function StoreWriter2(cache2,reader,fragments){this.cache=cache2,this.reader=reader,this.fragments=fragments}return StoreWriter2.prototype.writeToStore=function(store,_a2){var _this=this,query=_a2.query,result=_a2.result,dataId=_a2.dataId,variables=_a2.variables,overwrite=_a2.overwrite,operationDefinition=getOperationDefinition(query),merger=makeProcessedFieldsMerger();variables=tslib_es6_assign(tslib_es6_assign({},getDefaultValues(operationDefinition)),variables);var context=tslib_es6_assign(tslib_es6_assign({store,written:Object.create(null),merge:function(existing,incoming){return merger.merge(existing,incoming)},variables,varString:canonicalStringify(variables)},extractFragmentContext(query,this.fragments)),{overwrite:!!overwrite,incomingById:new Map,clientOnly:!1,deferred:!1,flavors:new Map}),ref=this.processSelectionSet({result:result||Object.create(null),dataId,selectionSet:operationDefinition.selectionSet,mergeTree:{map:new Map},context});if(!isReference(ref))throw newInvariantError(11,result);return context.incomingById.forEach(function(_a3,dataId2){var storeObject=_a3.storeObject,mergeTree=_a3.mergeTree,fieldNodeSet=_a3.fieldNodeSet,entityRef=makeReference(dataId2);if(mergeTree&&mergeTree.map.size){var applied=_this.applyMerges(mergeTree,entityRef,storeObject,context);if(isReference(applied))return;storeObject=applied}if(globalThis.__DEV__!==!1&&!context.overwrite){var fieldsWithSelectionSets_1=Object.create(null);fieldNodeSet.forEach(function(field){field.selectionSet&&(fieldsWithSelectionSets_1[field.name.value]=!0)});var hasSelectionSet_1=function(storeFieldName){return fieldsWithSelectionSets_1[fieldNameFromStoreName(storeFieldName)]===!0},hasMergeFunction_1=function(storeFieldName){var childTree=mergeTree&&mergeTree.map.get(storeFieldName);return Boolean(childTree&&childTree.info&&childTree.info.merge)};Object.keys(storeObject).forEach(function(storeFieldName){hasSelectionSet_1(storeFieldName)&&!hasMergeFunction_1(storeFieldName)&&warnAboutDataLoss(entityRef,storeObject,storeFieldName,context.store)})}store.merge(dataId2,storeObject)}),store.retain(ref.__ref),ref},StoreWriter2.prototype.processSelectionSet=function(_a2){var _this=this,dataId=_a2.dataId,result=_a2.result,selectionSet=_a2.selectionSet,context=_a2.context,mergeTree=_a2.mergeTree,policies=this.cache.policies,incoming=Object.create(null),typename=dataId&&policies.rootTypenamesById[dataId]||getTypenameFromResult(result,selectionSet,context.fragmentMap)||dataId&&context.store.get(dataId,"__typename");typeof typename=="string"&&(incoming.__typename=typename);var readField=function(){var options=normalizeReadFieldOptions(arguments,incoming,context.variables);if(isReference(options.from)){var info=context.incomingById.get(options.from.__ref);if(info){var result_1=policies.readField(tslib_es6_assign(tslib_es6_assign({},options),{from:info.storeObject}),context);if(result_1!==void 0)return result_1}}return policies.readField(options,context)},fieldNodeSet=new Set;this.flattenFields(selectionSet,result,context,typename).forEach(function(context2,field){var _a3,resultFieldKey=resultKeyNameFromField(field),value=result[resultFieldKey];if(fieldNodeSet.add(field),value!==void 0){var storeFieldName=policies.getStoreFieldName({typename,fieldName:field.name.value,field,variables:context2.variables}),childTree=getChildMergeTree(mergeTree,storeFieldName),incomingValue=_this.processFieldValue(value,field,field.selectionSet?getContextFlavor(context2,!1,!1):context2,childTree),childTypename=void 0;field.selectionSet&&(isReference(incomingValue)||storeValueIsStoreObject(incomingValue))&&(childTypename=readField("__typename",incomingValue));var merge=policies.getMergeFunction(typename,field.name.value,childTypename);merge?childTree.info={field,typename,merge}:maybeRecycleChildMergeTree(mergeTree,storeFieldName),incoming=context2.merge(incoming,(_a3={},_a3[storeFieldName]=incomingValue,_a3))}else globalThis.__DEV__!==!1&&!context2.clientOnly&&!context2.deferred&&!addTypenameToDocument.added(field)&&!policies.getReadFunction(typename,field.name.value)&&globalThis.__DEV__!==!1&&invariantWrappers_invariant.error(12,resultKeyNameFromField(field),result)});try{var _b=policies.identify(result,{typename,selectionSet,fragmentMap:context.fragmentMap,storeObject:incoming,readField}),id=_b[0],keyObject=_b[1];dataId=dataId||id,keyObject&&(incoming=context.merge(incoming,keyObject))}catch(e){if(!dataId)throw e}if(typeof dataId=="string"){var dataRef=makeReference(dataId),sets=context.written[dataId]||(context.written[dataId]=[]);if(sets.indexOf(selectionSet)>=0||(sets.push(selectionSet),this.reader&&this.reader.isFresh(result,dataRef,selectionSet,context)))return dataRef;var previous_1=context.incomingById.get(dataId);return previous_1?(previous_1.storeObject=context.merge(previous_1.storeObject,incoming),previous_1.mergeTree=mergeMergeTrees(previous_1.mergeTree,mergeTree),fieldNodeSet.forEach(function(field){return previous_1.fieldNodeSet.add(field)})):context.incomingById.set(dataId,{storeObject:incoming,mergeTree:mergeTreeIsEmpty(mergeTree)?void 0:mergeTree,fieldNodeSet}),dataRef}return incoming},StoreWriter2.prototype.processFieldValue=function(value,field,context,mergeTree){var _this=this;return!field.selectionSet||value===null?globalThis.__DEV__!==!1?cloneDeep(value):value:isArray(value)?value.map(function(item,i){var value2=_this.processFieldValue(item,field,context,getChildMergeTree(mergeTree,i));return maybeRecycleChildMergeTree(mergeTree,i),value2}):this.processSelectionSet({result:value,selectionSet:field.selectionSet,context,mergeTree})},StoreWriter2.prototype.flattenFields=function(selectionSet,result,context,typename){typename===void 0&&(typename=getTypenameFromResult(result,selectionSet,context.fragmentMap));var fieldMap=new Map,policies=this.cache.policies,limitingTrie=new Trie(!1);return function flatten(selectionSet2,inheritedContext){var visitedNode=limitingTrie.lookup(selectionSet2,inheritedContext.clientOnly,inheritedContext.deferred);visitedNode.visited||(visitedNode.visited=!0,selectionSet2.selections.forEach(function(selection){if(!!shouldInclude(selection,context.variables)){var clientOnly=inheritedContext.clientOnly,deferred=inheritedContext.deferred;if(!(clientOnly&&deferred)&&isNonEmptyArray(selection.directives)&&selection.directives.forEach(function(dir){var name=dir.name.value;if(name==="client"&&(clientOnly=!0),name==="defer"){var args=argumentsObjectFromField(dir,context.variables);(!args||args.if!==!1)&&(deferred=!0)}}),storeUtils_isField(selection)){var existing=fieldMap.get(selection);existing&&(clientOnly=clientOnly&&existing.clientOnly,deferred=deferred&&existing.deferred),fieldMap.set(selection,getContextFlavor(context,clientOnly,deferred))}else{var fragment=getFragmentFromSelection(selection,context.lookupFragment);if(!fragment&&selection.kind===kinds.h.FRAGMENT_SPREAD)throw newInvariantError(13,selection.name.value);fragment&&policies.fragmentMatches(fragment,typename,result,context.variables)&&flatten(fragment.selectionSet,getContextFlavor(context,clientOnly,deferred))}}}))}(selectionSet,context),fieldMap},StoreWriter2.prototype.applyMerges=function(mergeTree,existing,incoming,context,getStorageArgs){var _a2,_this=this;if(mergeTree.map.size&&!isReference(incoming)){var e_1=!isArray(incoming)&&(isReference(existing)||storeValueIsStoreObject(existing))?existing:void 0,i_1=incoming;e_1&&!getStorageArgs&&(getStorageArgs=[isReference(e_1)?e_1.__ref:e_1]);var changedFields_1,getValue_1=function(from2,name){return isArray(from2)?typeof name=="number"?from2[name]:void 0:context.store.getFieldValue(from2,String(name))};mergeTree.map.forEach(function(childTree,storeFieldName){var eVal=getValue_1(e_1,storeFieldName),iVal=getValue_1(i_1,storeFieldName);if(iVal!==void 0){getStorageArgs&&getStorageArgs.push(storeFieldName);var aVal=_this.applyMerges(childTree,eVal,iVal,context,getStorageArgs);aVal!==iVal&&(changedFields_1=changedFields_1||new Map,changedFields_1.set(storeFieldName,aVal)),getStorageArgs&&invariantWrappers_invariant(getStorageArgs.pop()===storeFieldName)}}),changedFields_1&&(incoming=isArray(i_1)?i_1.slice(0):tslib_es6_assign({},i_1),changedFields_1.forEach(function(value,name){incoming[name]=value}))}return mergeTree.info?this.cache.policies.runMergeFunction(existing,incoming,mergeTree.info,context,getStorageArgs&&(_a2=context.store).getStorage.apply(_a2,getStorageArgs)):incoming},StoreWriter2}(),emptyMergeTreePool=[];function getChildMergeTree(_a2,name){var map=_a2.map;return map.has(name)||map.set(name,emptyMergeTreePool.pop()||{map:new Map}),map.get(name)}function mergeMergeTrees(left,right){if(left===right||!right||mergeTreeIsEmpty(right))return left;if(!left||mergeTreeIsEmpty(left))return right;var info=left.info&&right.info?tslib_es6_assign(tslib_es6_assign({},left.info),right.info):left.info||right.info,needToMergeMaps=left.map.size&&right.map.size,map=needToMergeMaps?new Map:left.map.size?left.map:right.map,merged={info,map};if(needToMergeMaps){var remainingRightKeys_1=new Set(right.map.keys());left.map.forEach(function(leftTree,key){merged.map.set(key,mergeMergeTrees(leftTree,right.map.get(key))),remainingRightKeys_1.delete(key)}),remainingRightKeys_1.forEach(function(key){merged.map.set(key,mergeMergeTrees(right.map.get(key),left.map.get(key)))})}return merged}function mergeTreeIsEmpty(tree){return!tree||!(tree.info||tree.map.size)}function maybeRecycleChildMergeTree(_a2,name){var map=_a2.map,childTree=map.get(name);childTree&&mergeTreeIsEmpty(childTree)&&(emptyMergeTreePool.push(childTree),map.delete(name))}var warnings=new Set;function warnAboutDataLoss(existingRef,incomingObj,storeFieldName,store){var getChild=function(objOrRef){var child=store.getFieldValue(objOrRef,storeFieldName);return typeof child=="object"&&child},existing=getChild(existingRef);if(!!existing){var incoming=getChild(incomingObj);if(!!incoming&&!isReference(existing)&&!equal(existing,incoming)&&!Object.keys(existing).every(function(key){return store.getFieldValue(incoming,key)!==void 0})){var parentType=store.getFieldValue(existingRef,"__typename")||store.getFieldValue(incomingObj,"__typename"),fieldName=fieldNameFromStoreName(storeFieldName),typeDotName="".concat(parentType,".").concat(fieldName);if(!warnings.has(typeDotName)){warnings.add(typeDotName);var childTypenames=[];!isArray(existing)&&!isArray(incoming)&&[existing,incoming].forEach(function(child){var typename=store.getFieldValue(child,"__typename");typeof typename=="string"&&!childTypenames.includes(typename)&&childTypenames.push(typename)}),globalThis.__DEV__!==!1&&invariantWrappers_invariant.warn(14,fieldName,parentType,childTypenames.length?"either ensure all objects of type "+childTypenames.join(" and ")+" have an ID or a custom merge function, or ":"",typeDotName,tslib_es6_assign({},existing),tslib_es6_assign({},incoming))}}}}var InMemoryCache=function(_super){__extends(InMemoryCache2,_super);function InMemoryCache2(config){config===void 0&&(config={});var _this=_super.call(this)||this;return _this.watches=new Set,_this.addTypenameTransform=new DocumentTransform(addTypenameToDocument),_this.assumeImmutableResults=!0,_this.makeVar=makeVar,_this.txCount=0,_this.config=normalizeConfig(config),_this.addTypename=!!_this.config.addTypename,_this.policies=new Policies({cache:_this,dataIdFromObject:_this.config.dataIdFromObject,possibleTypes:_this.config.possibleTypes,typePolicies:_this.config.typePolicies}),_this.init(),_this}return InMemoryCache2.prototype.init=function(){var rootStore=this.data=new EntityStore.Root({policies:this.policies,resultCaching:this.config.resultCaching});this.optimisticData=rootStore.stump,this.resetResultCache()},InMemoryCache2.prototype.resetResultCache=function(resetResultIdentities){var _this=this,previousReader=this.storeReader,fragments=this.config.fragments;this.storeWriter=new StoreWriter(this,this.storeReader=new StoreReader({cache:this,addTypename:this.addTypename,resultCacheMaxSize:this.config.resultCacheMaxSize,canonizeResults:shouldCanonizeResults(this.config),canon:resetResultIdentities?void 0:previousReader&&previousReader.canon,fragments}),fragments),this.maybeBroadcastWatch=lib_wrap(function(c,options){return _this.broadcastWatch(c,options)},{max:this.config.resultCacheMaxSize||cacheSizes["inMemoryCache.maybeBroadcastWatch"]||5e3,makeCacheKey:function(c){var store=c.optimistic?_this.optimisticData:_this.data;if(supportsResultCaching(store)){var optimistic=c.optimistic,id=c.id,variables=c.variables;return store.makeCacheKey(c.query,c.callback,canonicalStringify({optimistic,id,variables}))}}}),new Set([this.data.group,this.optimisticData.group]).forEach(function(group){return group.resetCaching()})},InMemoryCache2.prototype.restore=function(data){return this.init(),data&&this.data.replace(data),this},InMemoryCache2.prototype.extract=function(optimistic){return optimistic===void 0&&(optimistic=!1),(optimistic?this.optimisticData:this.data).extract()},InMemoryCache2.prototype.read=function(options){var _a2=options.returnPartialData,returnPartialData=_a2===void 0?!1:_a2;try{return this.storeReader.diffQueryAgainstStore(tslib_es6_assign(tslib_es6_assign({},options),{store:options.optimistic?this.optimisticData:this.data,config:this.config,returnPartialData})).result||null}catch(e){if(e instanceof MissingFieldError)return null;throw e}},InMemoryCache2.prototype.write=function(options){try{return++this.txCount,this.storeWriter.writeToStore(this.data,options)}finally{!--this.txCount&&options.broadcast!==!1&&this.broadcastWatches()}},InMemoryCache2.prototype.modify=function(options){if(hasOwn.call(options,"id")&&!options.id)return!1;var store=options.optimistic?this.optimisticData:this.data;try{return++this.txCount,store.modify(options.id||"ROOT_QUERY",options.fields)}finally{!--this.txCount&&options.broadcast!==!1&&this.broadcastWatches()}},InMemoryCache2.prototype.diff=function(options){return this.storeReader.diffQueryAgainstStore(tslib_es6_assign(tslib_es6_assign({},options),{store:options.optimistic?this.optimisticData:this.data,rootId:options.id||"ROOT_QUERY",config:this.config}))},InMemoryCache2.prototype.watch=function(watch){var _this=this;return this.watches.size||recallCache(this),this.watches.add(watch),watch.immediate&&this.maybeBroadcastWatch(watch),function(){_this.watches.delete(watch)&&!_this.watches.size&&forgetCache(_this),_this.maybeBroadcastWatch.forget(watch)}},InMemoryCache2.prototype.gc=function(options){var _a2;canonicalStringify.reset(),print.reset(),this.addTypenameTransform.resetCache(),(_a2=this.config.fragments)===null||_a2===void 0||_a2.resetCaches();var ids=this.optimisticData.gc();return options&&!this.txCount&&(options.resetResultCache?this.resetResultCache(options.resetResultIdentities):options.resetResultIdentities&&this.storeReader.resetCanon()),ids},InMemoryCache2.prototype.retain=function(rootId,optimistic){return(optimistic?this.optimisticData:this.data).retain(rootId)},InMemoryCache2.prototype.release=function(rootId,optimistic){return(optimistic?this.optimisticData:this.data).release(rootId)},InMemoryCache2.prototype.identify=function(object){if(isReference(object))return object.__ref;try{return this.policies.identify(object)[0]}catch(e){globalThis.__DEV__!==!1&&invariantWrappers_invariant.warn(e)}},InMemoryCache2.prototype.evict=function(options){if(!options.id){if(hasOwn.call(options,"id"))return!1;options=tslib_es6_assign(tslib_es6_assign({},options),{id:"ROOT_QUERY"})}try{return++this.txCount,this.optimisticData.evict(options,this.data)}finally{!--this.txCount&&options.broadcast!==!1&&this.broadcastWatches()}},InMemoryCache2.prototype.reset=function(options){var _this=this;return this.init(),canonicalStringify.reset(),options&&options.discardWatches?(this.watches.forEach(function(watch){return _this.maybeBroadcastWatch.forget(watch)}),this.watches.clear(),forgetCache(this)):this.broadcastWatches(),Promise.resolve()},InMemoryCache2.prototype.removeOptimistic=function(idToRemove){var newOptimisticData=this.optimisticData.removeLayer(idToRemove);newOptimisticData!==this.optimisticData&&(this.optimisticData=newOptimisticData,this.broadcastWatches())},InMemoryCache2.prototype.batch=function(options){var _this=this,update=options.update,_a2=options.optimistic,optimistic=_a2===void 0?!0:_a2,removeOptimistic=options.removeOptimistic,onWatchUpdated=options.onWatchUpdated,updateResult,perform=function(layer){var _a3=_this,data=_a3.data,optimisticData=_a3.optimisticData;++_this.txCount,layer&&(_this.data=_this.optimisticData=layer);try{return updateResult=update(_this)}finally{--_this.txCount,_this.data=data,_this.optimisticData=optimisticData}},alreadyDirty=new Set;return onWatchUpdated&&!this.txCount&&this.broadcastWatches(tslib_es6_assign(tslib_es6_assign({},options),{onWatchUpdated:function(watch){return alreadyDirty.add(watch),!1}})),typeof optimistic=="string"?this.optimisticData=this.optimisticData.addLayer(optimistic,perform):optimistic===!1?perform(this.data):perform(),typeof removeOptimistic=="string"&&(this.optimisticData=this.optimisticData.removeLayer(removeOptimistic)),onWatchUpdated&&alreadyDirty.size?(this.broadcastWatches(tslib_es6_assign(tslib_es6_assign({},options),{onWatchUpdated:function(watch,diff){var result=onWatchUpdated.call(this,watch,diff);return result!==!1&&alreadyDirty.delete(watch),result}})),alreadyDirty.size&&alreadyDirty.forEach(function(watch){return _this.maybeBroadcastWatch.dirty(watch)})):this.broadcastWatches(options),updateResult},InMemoryCache2.prototype.performTransaction=function(update,optimisticId){return this.batch({update,optimistic:optimisticId||optimisticId!==null})},InMemoryCache2.prototype.transformDocument=function(document2){return this.addTypenameToDocument(this.addFragmentsToDocument(document2))},InMemoryCache2.prototype.broadcastWatches=function(options){var _this=this;this.txCount||this.watches.forEach(function(c){return _this.maybeBroadcastWatch(c,options)})},InMemoryCache2.prototype.addFragmentsToDocument=function(document2){var fragments=this.config.fragments;return fragments?fragments.transform(document2):document2},InMemoryCache2.prototype.addTypenameToDocument=function(document2){return this.addTypename?this.addTypenameTransform.transformDocument(document2):document2},InMemoryCache2.prototype.broadcastWatch=function(c,options){var lastDiff=c.lastDiff,diff=this.diff(c);options&&(c.optimistic&&typeof options.optimistic=="string"&&(diff.fromOptimisticTransaction=!0),options.onWatchUpdated&&options.onWatchUpdated.call(this,c,diff,lastDiff)===!1)||(!lastDiff||!equal(lastDiff.result,diff.result))&&c.callback(c.lastDiff=diff,lastDiff)},InMemoryCache2}(ApolloCache);globalThis.__DEV__!==!1&&(InMemoryCache.prototype.getMemoryInternals=getInMemoryCacheMemoryInternals);var empty=ApolloLink.empty,from=ApolloLink.from,split=ApolloLink.split,concat=ApolloLink.concat,createSignalIfSupported=function(){if(typeof AbortController>"u")return{controller:!1,signal:!1};var controller=new AbortController,signal=controller.signal;return{controller,signal}};function toPromise(observable){var completed=!1;return new Promise(function(resolve,reject){observable.subscribe({next:function(data){completed?globalThis.__DEV__!==!1&&invariantWrappers_invariant.warn(43):(completed=!0,resolve(data))},error:reject})})}function fromPromise(promise){return new Observable(function(observer){promise.then(function(value){observer.next(value),observer.complete()}).catch(observer.error.bind(observer))})}var parser=__webpack_require__(64929),docCache=new Map,fragmentSourceMap=new Map,printFragmentWarnings=!0,experimentalFragmentVariables=!1;function lib_normalize(string){return string.replace(/[\s,]+/g," ").trim()}function cacheKeyFromLoc(loc){return lib_normalize(loc.source.body.substring(loc.start,loc.end))}function processFragments(ast){var seenKeys=new Set,definitions=[];return ast.definitions.forEach(function(fragmentDefinition){if(fragmentDefinition.kind==="FragmentDefinition"){var fragmentName=fragmentDefinition.name.value,sourceKey=cacheKeyFromLoc(fragmentDefinition.loc),sourceKeySet=fragmentSourceMap.get(fragmentName);sourceKeySet&&!sourceKeySet.has(sourceKey)?printFragmentWarnings&&console.warn("Warning: fragment with name "+fragmentName+` already exists.
689
689
  graphql-tag enforces all fragment names across your application to be unique; read more about
690
- this in the docs: http://dev.apollodata.com/core/fragments.html#unique-names`):sourceKeySet||fragmentSourceMap.set(fragmentName,sourceKeySet=new Set),sourceKeySet.add(sourceKey),seenKeys.has(sourceKey)||(seenKeys.add(sourceKey),definitions.push(fragmentDefinition))}else definitions.push(fragmentDefinition)}),tslib_es6_assign(tslib_es6_assign({},ast),{definitions})}function stripLoc(doc){var workSet=new Set(doc.definitions);workSet.forEach(function(node){node.loc&&delete node.loc,Object.keys(node).forEach(function(key){var value=node[key];value&&typeof value=="object"&&workSet.add(value)})});var loc=doc.loc;return loc&&(delete loc.startToken,delete loc.endToken),doc}function parseDocument(source){var cacheKey=lib_normalize(source);if(!docCache.has(cacheKey)){var parsed=(0,parser.parse)(source,{experimentalFragmentVariables,allowLegacyFragmentVariables:experimentalFragmentVariables});if(!parsed||parsed.kind!=="Document")throw new Error("Not a valid GraphQL document.");docCache.set(cacheKey,stripLoc(processFragments(parsed)))}return docCache.get(cacheKey)}function gql(literals){for(var args=[],_i=1;_i<arguments.length;_i++)args[_i-1]=arguments[_i];typeof literals=="string"&&(literals=[literals]);var result=literals[0];return args.forEach(function(arg,i){arg&&arg.kind==="Document"?result+=arg.loc.source.body:result+=arg,result+=literals[i+1]}),parseDocument(result)}function resetCaches(){docCache.clear(),fragmentSourceMap.clear()}function disableFragmentWarnings(){printFragmentWarnings=!1}function enableExperimentalFragmentVariables(){experimentalFragmentVariables=!0}function disableExperimentalFragmentVariables(){experimentalFragmentVariables=!1}var extras={gql,resetCaches,disableFragmentWarnings,enableExperimentalFragmentVariables,disableExperimentalFragmentVariables};(function(gql_1){gql_1.gql=extras.gql,gql_1.resetCaches=extras.resetCaches,gql_1.disableFragmentWarnings=extras.disableFragmentWarnings,gql_1.enableExperimentalFragmentVariables=extras.enableExperimentalFragmentVariables,gql_1.disableExperimentalFragmentVariables=extras.disableExperimentalFragmentVariables})(gql||(gql={})),gql.default=gql;const graphql_tag_lib=null;setVerbosity(globalThis.__DEV__!==!1?"log":"silent");var rehackt=__webpack_require__(93226),rehackt_namespaceObject=__webpack_require__.t(rehackt,2),contextKey=canUseSymbol?Symbol.for("__APOLLO_CONTEXT__"):"__APOLLO_CONTEXT__";function getApolloContext(){invariantWrappers_invariant("createContext"in rehackt_namespaceObject,46);var context=rehackt.createContext[contextKey];return context||(Object.defineProperty(rehackt.createContext,contextKey,{value:context=rehackt.createContext({}),enumerable:!1,writable:!1,configurable:!0}),context.displayName="ApolloContext"),context}var resetApolloContext=getApolloContext,ApolloProvider=function(_a2){var client=_a2.client,children=_a2.children,ApolloContext=getApolloContext(),parentContext=rehackt.useContext(ApolloContext),context=rehackt.useMemo(function(){return tslib_es6_assign(tslib_es6_assign({},parentContext),{client:client||parentContext.client})},[parentContext,client]);return invariantWrappers_invariant(context.client,47),rehackt.createElement(ApolloContext.Provider,{value:context},children)},ApolloConsumer=function(props){var ApolloContext=getApolloContext();return rehackt.createElement(ApolloContext.Consumer,null,function(context){return invariantWrappers_invariant(context&&context.client,45),props.children(context.client)})};function useApolloClient(override){var context=rehackt.useContext(getApolloContext()),client=override||context.client;return invariantWrappers_invariant(!!client,50),client}var didWarnUncachedGetSnapshot=!1,uSESKey="useSyncExternalStore",realHook=rehackt_namespaceObject[uSESKey],useSyncExternalStore=realHook||function(subscribe,getSnapshot,getServerSnapshot){var value=getSnapshot();globalThis.__DEV__!==!1&&!didWarnUncachedGetSnapshot&&value!==getSnapshot()&&(didWarnUncachedGetSnapshot=!0,globalThis.__DEV__!==!1&&invariantWrappers_invariant.error(60));var _a2=rehackt.useState({inst:{value,getSnapshot}}),inst=_a2[0].inst,forceUpdate=_a2[1];return canUseLayoutEffect?rehackt.useLayoutEffect(function(){Object.assign(inst,{value,getSnapshot}),checkIfSnapshotChanged(inst)&&forceUpdate({inst})},[subscribe,value,getSnapshot]):Object.assign(inst,{value,getSnapshot}),rehackt.useEffect(function(){return checkIfSnapshotChanged(inst)&&forceUpdate({inst}),subscribe(function(){checkIfSnapshotChanged(inst)&&forceUpdate({inst})})},[subscribe]),value};function checkIfSnapshotChanged(_a2){var value=_a2.value,getSnapshot=_a2.getSnapshot;try{return value!==getSnapshot()}catch{return!0}}var DocumentType;(function(DocumentType2){DocumentType2[DocumentType2.Query=0]="Query",DocumentType2[DocumentType2.Mutation=1]="Mutation",DocumentType2[DocumentType2.Subscription=2]="Subscription"})(DocumentType||(DocumentType={}));var cache;function operationName(type){var name;switch(type){case DocumentType.Query:name="Query";break;case DocumentType.Mutation:name="Mutation";break;case DocumentType.Subscription:name="Subscription";break}return name}function parser_parser(document2){cache||(cache=new AutoCleanedWeakCache(cacheSizes.parser||1e3));var cached=cache.get(document2);if(cached)return cached;var variables,type,name;invariantWrappers_invariant(!!document2&&!!document2.kind,62,document2);for(var fragments=[],queries=[],mutations=[],subscriptions=[],_i=0,_a2=document2.definitions;_i<_a2.length;_i++){var x=_a2[_i];if(x.kind==="FragmentDefinition"){fragments.push(x);continue}if(x.kind==="OperationDefinition")switch(x.operation){case"query":queries.push(x);break;case"mutation":mutations.push(x);break;case"subscription":subscriptions.push(x);break}}invariantWrappers_invariant(!fragments.length||queries.length||mutations.length||subscriptions.length,63),invariantWrappers_invariant(queries.length+mutations.length+subscriptions.length<=1,64,document2,queries.length,subscriptions.length,mutations.length),type=queries.length?DocumentType.Query:DocumentType.Mutation,!queries.length&&!mutations.length&&(type=DocumentType.Subscription);var definitions=queries.length?queries:mutations.length?mutations:subscriptions;invariantWrappers_invariant(definitions.length===1,65,document2,definitions.length);var definition=definitions[0];variables=definition.variableDefinitions||[],definition.name&&definition.name.kind==="Name"?name=definition.name.value:name="data";var payload={name,type,variables};return cache.set(document2,payload),payload}parser_parser.resetCache=function(){cache=void 0},globalThis.__DEV__!==!1&&registerGlobalCache("parser",function(){return cache?cache.size:0});function verifyDocumentType(document2,type){var operation=parser_parser(document2),requiredOperationName=operationName(type),usedOperationName=operationName(operation.type);invariantWrappers_invariant(operation.type===type,66,requiredOperationName,requiredOperationName,usedOperationName)}var wrapperSymbol=Symbol.for("apollo.hook.wrappers");function wrapHook(hookName,useHook,clientOrObsQuery){var queryManager=clientOrObsQuery.queryManager,wrappers=queryManager&&queryManager[wrapperSymbol],wrapper=wrappers&&wrappers[hookName];return wrapper?wrapper(useHook):useHook}var useQuery_hasOwnProperty=Object.prototype.hasOwnProperty;function useQuery_noop(){}var lastWatchOptions=Symbol();function useQuery(query,options){return options===void 0&&(options=Object.create(null)),wrapHook("useQuery",_useQuery,useApolloClient(options&&options.client))(query,options)}function _useQuery(query,options){var _a2=useQueryInternals(query,options),result=_a2.result,obsQueryFields=_a2.obsQueryFields;return rehackt.useMemo(function(){return tslib_es6_assign(tslib_es6_assign({},result),obsQueryFields)},[result,obsQueryFields])}function useInternalState(client,query,options,renderPromises,makeWatchQueryOptions){function createInternalState(previous){var _a3;verifyDocumentType(query,DocumentType.Query);var internalState2={client,query,observable:renderPromises&&renderPromises.getSSRObservable(makeWatchQueryOptions())||client.watchQuery(getObsQueryOptions(void 0,client,options,makeWatchQueryOptions())),resultData:{previousData:(_a3=previous?.resultData.current)===null||_a3===void 0?void 0:_a3.data}};return internalState2}var _a2=rehackt.useState(createInternalState),internalState=_a2[0],updateInternalState=_a2[1];function onQueryExecuted(watchQueryOptions){var _a3,_b;Object.assign(internalState.observable,(_a3={},_a3[lastWatchOptions]=watchQueryOptions,_a3));var resultData=internalState.resultData;updateInternalState(tslib_es6_assign(tslib_es6_assign({},internalState),{query:watchQueryOptions.query,resultData:Object.assign(resultData,{previousData:((_b=resultData.current)===null||_b===void 0?void 0:_b.data)||resultData.previousData,current:void 0})}))}if(client!==internalState.client||query!==internalState.query){var newInternalState=createInternalState(internalState);return updateInternalState(newInternalState),[newInternalState,onQueryExecuted]}return[internalState,onQueryExecuted]}function useQueryInternals(query,options){var client=useApolloClient(options.client),renderPromises=rehackt.useContext(getApolloContext()).renderPromises,isSyncSSR=!!renderPromises,disableNetworkFetches=client.disableNetworkFetches,ssrAllowed=options.ssr!==!1&&!options.skip,partialRefetch=options.partialRefetch,makeWatchQueryOptions=createMakeWatchQueryOptions(client,query,options,isSyncSSR),_a2=useInternalState(client,query,options,renderPromises,makeWatchQueryOptions),_b=_a2[0],observable=_b.observable,resultData=_b.resultData,onQueryExecuted=_a2[1],watchQueryOptions=makeWatchQueryOptions(observable);useResubscribeIfNecessary(resultData,observable,client,options,watchQueryOptions);var obsQueryFields=rehackt.useMemo(function(){return bindObservableMethods(observable)},[observable]);useRegisterSSRObservable(observable,renderPromises,ssrAllowed);var result=useObservableSubscriptionResult(resultData,observable,client,options,watchQueryOptions,disableNetworkFetches,partialRefetch,isSyncSSR,{onCompleted:options.onCompleted||useQuery_noop,onError:options.onError||useQuery_noop});return{result,obsQueryFields,observable,resultData,client,onQueryExecuted}}function useObservableSubscriptionResult(resultData,observable,client,options,watchQueryOptions,disableNetworkFetches,partialRefetch,isSyncSSR,callbacks){var callbackRef=rehackt.useRef(callbacks);rehackt.useEffect(function(){callbackRef.current=callbacks});var resultOverride=(isSyncSSR||disableNetworkFetches)&&options.ssr===!1&&!options.skip?ssrDisabledResult:options.skip||watchQueryOptions.fetchPolicy==="standby"?skipStandbyResult:void 0,previousData=resultData.previousData,currentResultOverride=rehackt.useMemo(function(){return resultOverride&&toQueryResult(resultOverride,previousData,observable,client)},[client,observable,resultOverride,previousData]);return useSyncExternalStore(rehackt.useCallback(function(handleStoreChange){if(isSyncSSR)return function(){};var onNext=function(){var previousResult=resultData.current,result=observable.getCurrentResult();previousResult&&previousResult.loading===result.loading&&previousResult.networkStatus===result.networkStatus&&equal(previousResult.data,result.data)||setResult(result,resultData,observable,client,partialRefetch,handleStoreChange,callbackRef.current)},onError=function(error){if(subscription.current.unsubscribe(),subscription.current=observable.resubscribeAfterError(onNext,onError),!useQuery_hasOwnProperty.call(error,"graphQLErrors"))throw error;var previousResult=resultData.current;(!previousResult||previousResult&&previousResult.loading||!equal(error,previousResult.error))&&setResult({data:previousResult&&previousResult.data,error,loading:!1,networkStatus:NetworkStatus.error},resultData,observable,client,partialRefetch,handleStoreChange,callbackRef.current)},subscription={current:observable.subscribe(onNext,onError)};return function(){setTimeout(function(){return subscription.current.unsubscribe()})}},[disableNetworkFetches,isSyncSSR,observable,resultData,partialRefetch,client]),function(){return currentResultOverride||getCurrentResult(resultData,observable,callbackRef.current,partialRefetch,client)},function(){return currentResultOverride||getCurrentResult(resultData,observable,callbackRef.current,partialRefetch,client)})}function useRegisterSSRObservable(observable,renderPromises,ssrAllowed){renderPromises&&ssrAllowed&&(renderPromises.registerSSRObservable(observable),observable.getCurrentResult().loading&&renderPromises.addObservableQueryPromise(observable))}function useResubscribeIfNecessary(resultData,observable,client,options,watchQueryOptions){var _a2;observable[lastWatchOptions]&&!equal(observable[lastWatchOptions],watchQueryOptions)&&(observable.reobserve(getObsQueryOptions(observable,client,options,watchQueryOptions)),resultData.previousData=((_a2=resultData.current)===null||_a2===void 0?void 0:_a2.data)||resultData.previousData,resultData.current=void 0),observable[lastWatchOptions]=watchQueryOptions}function createMakeWatchQueryOptions(client,query,_a2,isSyncSSR){_a2===void 0&&(_a2={});var skip=_a2.skip,ssr=_a2.ssr,onCompleted=_a2.onCompleted,onError=_a2.onError,defaultOptions2=_a2.defaultOptions,otherOptions=__rest(_a2,["skip","ssr","onCompleted","onError","defaultOptions"]);return function(observable){var watchQueryOptions=Object.assign(otherOptions,{query});return isSyncSSR&&(watchQueryOptions.fetchPolicy==="network-only"||watchQueryOptions.fetchPolicy==="cache-and-network")&&(watchQueryOptions.fetchPolicy="cache-first"),watchQueryOptions.variables||(watchQueryOptions.variables={}),skip?(watchQueryOptions.initialFetchPolicy=watchQueryOptions.initialFetchPolicy||watchQueryOptions.fetchPolicy||getDefaultFetchPolicy(defaultOptions2,client.defaultOptions),watchQueryOptions.fetchPolicy="standby"):watchQueryOptions.fetchPolicy||(watchQueryOptions.fetchPolicy=observable?.options.initialFetchPolicy||getDefaultFetchPolicy(defaultOptions2,client.defaultOptions)),watchQueryOptions}}function getObsQueryOptions(observable,client,queryHookOptions,watchQueryOptions){var toMerge=[],globalDefaults=client.defaultOptions.watchQuery;return globalDefaults&&toMerge.push(globalDefaults),queryHookOptions.defaultOptions&&toMerge.push(queryHookOptions.defaultOptions),toMerge.push(compact(observable&&observable.options,watchQueryOptions)),toMerge.reduce(mergeOptions)}function setResult(nextResult,resultData,observable,client,partialRefetch,forceUpdate,callbacks){var previousResult=resultData.current;previousResult&&previousResult.data&&(resultData.previousData=previousResult.data),!nextResult.error&&isNonEmptyArray(nextResult.errors)&&(nextResult.error=new ApolloError({graphQLErrors:nextResult.errors})),resultData.current=toQueryResult(unsafeHandlePartialRefetch(nextResult,observable,partialRefetch),resultData.previousData,observable,client),forceUpdate(),handleErrorOrCompleted(nextResult,previousResult?.networkStatus,callbacks)}function handleErrorOrCompleted(result,previousNetworkStatus,callbacks){if(!result.loading){var error_1=toApolloError(result);Promise.resolve().then(function(){error_1?callbacks.onError(error_1):result.data&&previousNetworkStatus!==result.networkStatus&&result.networkStatus===NetworkStatus.ready&&callbacks.onCompleted(result.data)}).catch(function(error){globalThis.__DEV__!==!1&&invariantWrappers_invariant.warn(error)})}}function getCurrentResult(resultData,observable,callbacks,partialRefetch,client){return resultData.current||setResult(observable.getCurrentResult(),resultData,observable,client,partialRefetch,function(){},callbacks),resultData.current}function getDefaultFetchPolicy(queryHookDefaultOptions,clientDefaultOptions){var _a2;return queryHookDefaultOptions?.fetchPolicy||((_a2=clientDefaultOptions?.watchQuery)===null||_a2===void 0?void 0:_a2.fetchPolicy)||"cache-first"}function toApolloError(result){return isNonEmptyArray(result.errors)?new ApolloError({graphQLErrors:result.errors}):result.error}function toQueryResult(result,previousData,observable,client){var data=result.data,partial=result.partial,resultWithoutPartial=__rest(result,["data","partial"]),queryResult=tslib_es6_assign(tslib_es6_assign({data},resultWithoutPartial),{client,observable,variables:observable.variables,called:result!==ssrDisabledResult&&result!==skipStandbyResult,previousData});return queryResult}function unsafeHandlePartialRefetch(result,observable,partialRefetch){return result.partial&&partialRefetch&&!result.loading&&(!result.data||Object.keys(result.data).length===0)&&observable.options.fetchPolicy!=="cache-only"?(observable.refetch(),tslib_es6_assign(tslib_es6_assign({},result),{loading:!0,networkStatus:NetworkStatus.refetch})):result}var ssrDisabledResult=maybeDeepFreeze({loading:!0,data:void 0,error:void 0,networkStatus:NetworkStatus.loading}),skipStandbyResult=maybeDeepFreeze({loading:!1,data:void 0,error:void 0,networkStatus:NetworkStatus.ready});function bindObservableMethods(observable){return{refetch:observable.refetch.bind(observable),reobserve:observable.reobserve.bind(observable),fetchMore:observable.fetchMore.bind(observable),updateQuery:observable.updateQuery.bind(observable),startPolling:observable.startPolling.bind(observable),stopPolling:observable.stopPolling.bind(observable),subscribeToMore:observable.subscribeToMore.bind(observable)}}var useIsomorphicLayoutEffect=canUseDOM?rehackt.useLayoutEffect:rehackt.useEffect,EAGER_METHODS=["refetch","reobserve","fetchMore","updateQuery","startPolling","stopPolling","subscribeToMore"];function useLazyQuery(query,options){var _a2,execOptionsRef=rehackt.useRef(),optionsRef=rehackt.useRef(),queryRef=rehackt.useRef(),merged=mergeOptions(options,execOptionsRef.current||{}),document2=(_a2=merged?.query)!==null&&_a2!==void 0?_a2:query;optionsRef.current=options,queryRef.current=document2;var queryHookOptions=tslib_es6_assign(tslib_es6_assign({},merged),{skip:!execOptionsRef.current}),_b=useQueryInternals(document2,queryHookOptions),obsQueryFields=_b.obsQueryFields,useQueryResult=_b.result,client=_b.client,resultData=_b.resultData,observable=_b.observable,onQueryExecuted=_b.onQueryExecuted,initialFetchPolicy=observable.options.initialFetchPolicy||getDefaultFetchPolicy(queryHookOptions.defaultOptions,client.defaultOptions),forceUpdateState=rehackt.useReducer(function(tick){return tick+1},0)[1],eagerMethods=rehackt.useMemo(function(){for(var eagerMethods2={},_loop_1=function(key2){var method=obsQueryFields[key2];eagerMethods2[key2]=function(){return execOptionsRef.current||(execOptionsRef.current=Object.create(null),forceUpdateState()),method.apply(this,arguments)}},_i=0,EAGER_METHODS_1=EAGER_METHODS;_i<EAGER_METHODS_1.length;_i++){var key=EAGER_METHODS_1[_i];_loop_1(key)}return eagerMethods2},[forceUpdateState,obsQueryFields]),called=!!execOptionsRef.current,result=rehackt.useMemo(function(){return tslib_es6_assign(tslib_es6_assign(tslib_es6_assign({},useQueryResult),eagerMethods),{called})},[useQueryResult,eagerMethods,called]),execute2=rehackt.useCallback(function(executeOptions){execOptionsRef.current=executeOptions?tslib_es6_assign(tslib_es6_assign({},executeOptions),{fetchPolicy:executeOptions.fetchPolicy||initialFetchPolicy}):{fetchPolicy:initialFetchPolicy};var options2=mergeOptions(optionsRef.current,tslib_es6_assign({query:queryRef.current},execOptionsRef.current)),promise=executeQuery(resultData,observable,client,document2,tslib_es6_assign(tslib_es6_assign({},options2),{skip:!1}),onQueryExecuted).then(function(queryResult){return Object.assign(queryResult,eagerMethods)});return promise.catch(function(){}),promise},[client,document2,eagerMethods,initialFetchPolicy,observable,resultData,onQueryExecuted]),executeRef=rehackt.useRef(execute2);useIsomorphicLayoutEffect(function(){executeRef.current=execute2});var stableExecute=rehackt.useCallback(function(){for(var args=[],_i=0;_i<arguments.length;_i++)args[_i]=arguments[_i];return executeRef.current.apply(executeRef,args)},[]);return[stableExecute,result]}function executeQuery(resultData,observable,client,currentQuery,options,onQueryExecuted){var query=options.query||currentQuery,watchQueryOptions=createMakeWatchQueryOptions(client,query,options,!1)(observable),concast=observable.reobserveAsConcast(getObsQueryOptions(observable,client,options,watchQueryOptions));return onQueryExecuted(watchQueryOptions),new Promise(function(resolve){var result;concast.subscribe({next:function(value){result=value},error:function(){resolve(toQueryResult(observable.getCurrentResult(),resultData.previousData,observable,client))},complete:function(){resolve(toQueryResult(result,resultData.previousData,observable,client))}})})}function useMutation(mutation,options){var client=useApolloClient(options?.client);verifyDocumentType(mutation,DocumentType.Mutation);var _a2=rehackt.useState({called:!1,loading:!1,client}),result=_a2[0],setResult2=_a2[1],ref=rehackt.useRef({result,mutationId:0,isMounted:!0,client,mutation,options});useIsomorphicLayoutEffect(function(){Object.assign(ref.current,{client,options,mutation})});var execute2=rehackt.useCallback(function(executeOptions){executeOptions===void 0&&(executeOptions={});var _a3=ref.current,options2=_a3.options,mutation2=_a3.mutation,baseOptions=tslib_es6_assign(tslib_es6_assign({},options2),{mutation:mutation2}),client2=executeOptions.client||ref.current.client;!ref.current.result.loading&&!baseOptions.ignoreResults&&ref.current.isMounted&&setResult2(ref.current.result={loading:!0,error:void 0,data:void 0,called:!0,client:client2});var mutationId=++ref.current.mutationId,clientOptions=mergeOptions(baseOptions,executeOptions);return client2.mutate(clientOptions).then(function(response){var _a4,_b,data=response.data,errors=response.errors,error=errors&&errors.length>0?new ApolloError({graphQLErrors:errors}):void 0,onError=executeOptions.onError||((_a4=ref.current.options)===null||_a4===void 0?void 0:_a4.onError);if(error&&onError&&onError(error,clientOptions),mutationId===ref.current.mutationId&&!clientOptions.ignoreResults){var result_1={called:!0,loading:!1,data,error,client:client2};ref.current.isMounted&&!equal(ref.current.result,result_1)&&setResult2(ref.current.result=result_1)}var onCompleted=executeOptions.onCompleted||((_b=ref.current.options)===null||_b===void 0?void 0:_b.onCompleted);return error||onCompleted?.(response.data,clientOptions),response}).catch(function(error){var _a4;if(mutationId===ref.current.mutationId&&ref.current.isMounted){var result_2={loading:!1,error,data:void 0,called:!0,client:client2};equal(ref.current.result,result_2)||setResult2(ref.current.result=result_2)}var onError=executeOptions.onError||((_a4=ref.current.options)===null||_a4===void 0?void 0:_a4.onError);if(onError)return onError(error,clientOptions),{data:void 0,errors:error};throw error})},[]),reset=rehackt.useCallback(function(){if(ref.current.isMounted){var result_3={called:!1,loading:!1,client:ref.current.client};Object.assign(ref.current,{mutationId:0,result:result_3}),setResult2(result_3)}},[]);return rehackt.useEffect(function(){var current=ref.current;return current.isMounted=!0,function(){current.isMounted=!1}},[]),[execute2,tslib_es6_assign({reset},result)]}function useDeepMemo(memoFn,deps){var ref=rehackt.useRef();return(!ref.current||!equal(ref.current.deps,deps))&&(ref.current={value:memoFn(),deps}),ref.current.value}function useSubscription(subscription,options){options===void 0&&(options=Object.create(null));var hasIssuedDeprecationWarningRef=rehackt.useRef(!1),client=useApolloClient(options.client);verifyDocumentType(subscription,DocumentType.Subscription),hasIssuedDeprecationWarningRef.current||(hasIssuedDeprecationWarningRef.current=!0,options.onSubscriptionData&&globalThis.__DEV__!==!1&&invariantWrappers_invariant.warn(options.onData?53:54),options.onSubscriptionComplete&&globalThis.__DEV__!==!1&&invariantWrappers_invariant.warn(options.onComplete?55:56));var skip=options.skip,fetchPolicy=options.fetchPolicy,errorPolicy=options.errorPolicy,shouldResubscribe=options.shouldResubscribe,context=options.context,extensions=options.extensions,ignoreResults=options.ignoreResults,variables=useDeepMemo(function(){return options.variables},[options.variables]),recreate=function(){return createSubscription(client,subscription,variables,fetchPolicy,errorPolicy,context,extensions)},_a2=rehackt.useState(options.skip?null:recreate),observable=_a2[0],setObservable=_a2[1],recreateRef=rehackt.useRef(recreate);useIsomorphicLayoutEffect(function(){recreateRef.current=recreate}),skip?observable&&setObservable(observable=null):(!observable||(client!==observable.__.client||subscription!==observable.__.query||fetchPolicy!==observable.__.fetchPolicy||errorPolicy!==observable.__.errorPolicy||!equal(variables,observable.__.variables))&&(typeof shouldResubscribe=="function"?!!shouldResubscribe(options):shouldResubscribe)!==!1)&&setObservable(observable=recreate());var optionsRef=rehackt.useRef(options);rehackt.useEffect(function(){optionsRef.current=options});var fallbackLoading=!skip&&!ignoreResults,fallbackResult=rehackt.useMemo(function(){return{loading:fallbackLoading,error:void 0,data:void 0,variables}},[fallbackLoading,variables]),ignoreResultsRef=rehackt.useRef(ignoreResults);useIsomorphicLayoutEffect(function(){ignoreResultsRef.current=ignoreResults});var ret=useSyncExternalStore(rehackt.useCallback(function(update){if(!observable)return function(){};var subscriptionStopped=!1,variables2=observable.__.variables,client2=observable.__.client,subscription2=observable.subscribe({next:function(fetchResult){var _a3,_b;if(!subscriptionStopped){var result={loading:!1,data:fetchResult.data,error:toApolloError(fetchResult),variables:variables2};observable.__.setResult(result),ignoreResultsRef.current||update(),result.error?(_b=(_a3=optionsRef.current).onError)===null||_b===void 0||_b.call(_a3,result.error):optionsRef.current.onData?optionsRef.current.onData({client:client2,data:result}):optionsRef.current.onSubscriptionData&&optionsRef.current.onSubscriptionData({client:client2,subscriptionData:result})}},error:function(error){var _a3,_b;error=error instanceof ApolloError?error:new ApolloError({protocolErrors:[error]}),subscriptionStopped||(observable.__.setResult({loading:!1,data:void 0,error,variables:variables2}),ignoreResultsRef.current||update(),(_b=(_a3=optionsRef.current).onError)===null||_b===void 0||_b.call(_a3,error))},complete:function(){subscriptionStopped||(optionsRef.current.onComplete?optionsRef.current.onComplete():optionsRef.current.onSubscriptionComplete&&optionsRef.current.onSubscriptionComplete())}});return function(){subscriptionStopped=!0,setTimeout(function(){subscription2.unsubscribe()})}},[observable]),function(){return observable&&!skip&&!ignoreResults?observable.__.result:fallbackResult},function(){return fallbackResult}),restart=rehackt.useCallback(function(){invariantWrappers_invariant(!optionsRef.current.skip,57),setObservable(recreateRef.current())},[optionsRef,recreateRef]);return rehackt.useMemo(function(){return tslib_es6_assign(tslib_es6_assign({},ret),{restart})},[ret,restart])}function createSubscription(client,query,variables,fetchPolicy,errorPolicy,context,extensions){var options={query,variables,fetchPolicy,errorPolicy,context,extensions},__=tslib_es6_assign(tslib_es6_assign({},options),{client,result:{loading:!0,data:void 0,error:void 0,variables},setResult:function(result){__.result=result}}),observable=null;return Object.assign(new Observable(function(observer){observable||(observable=client.subscribe(options));var sub=observable.subscribe(observer);return function(){return sub.unsubscribe()}}),{__})}function useReactiveVar(rv){return useSyncExternalStore(rehackt.useCallback(function(update){return rv.onNextChange(function onNext(){update(),rv.onNextChange(onNext)})},[rv]),rv,rv)}function useFragment(options){return wrapHook("useFragment",_useFragment,useApolloClient(options.client))(options)}function _useFragment(options){var cache2=useApolloClient(options.client).cache,from2=options.from,rest=__rest(options,["from"]),id=rehackt.useMemo(function(){return typeof from2=="string"?from2:cache2.identify(from2)},[cache2,from2]),stableOptions=useDeepMemo(function(){return tslib_es6_assign(tslib_es6_assign({},rest),{from:id})},[rest,id]),diff=rehackt.useMemo(function(){var fragment=stableOptions.fragment,fragmentName=stableOptions.fragmentName,from3=stableOptions.from,_a2=stableOptions.optimistic,optimistic=_a2===void 0?!0:_a2;return{result:diffToResult(cache2.diff(tslib_es6_assign(tslib_es6_assign({},stableOptions),{returnPartialData:!0,id:from3,query:cache2.getFragmentDoc(fragment,fragmentName),optimistic})))}},[stableOptions,cache2]),getSnapshot=rehackt.useCallback(function(){return diff.result},[diff]);return useSyncExternalStore(rehackt.useCallback(function(forceUpdate){var lastTimeout=0,subscription=cache2.watchFragment(stableOptions).subscribe({next:function(result){lib(result,diff.result)||(diff.result=result,clearTimeout(lastTimeout),lastTimeout=setTimeout(forceUpdate))}});return function(){subscription.unsubscribe(),clearTimeout(lastTimeout)}},[cache2,stableOptions,diff]),getSnapshot,getSnapshot)}function diffToResult(diff){var result={data:diff.result,complete:!!diff.complete};return diff.missing&&(result.missing=mergeDeepArray(diff.missing.map(function(error){return error.missing}))),result}function createFulfilledPromise(value){var promise=Promise.resolve(value);return promise.status="fulfilled",promise.value=value,promise}function createRejectedPromise(reason){var promise=Promise.reject(reason);return promise.catch(function(){}),promise.status="rejected",promise.reason=reason,promise}function isStatefulPromise(promise){return"status"in promise}function wrapPromiseWithState(promise){if(isStatefulPromise(promise))return promise;var pendingPromise=promise;return pendingPromise.status="pending",pendingPromise.then(function(value){if(pendingPromise.status==="pending"){var fulfilledPromise=pendingPromise;fulfilledPromise.status="fulfilled",fulfilledPromise.value=value}},function(reason){if(pendingPromise.status==="pending"){var rejectedPromise=pendingPromise;rejectedPromise.status="rejected",rejectedPromise.reason=reason}}),promise}var useKey="use",_use_realHook=rehackt_namespaceObject[useKey],__use=_use_realHook||function(promise){var statefulPromise=wrapPromiseWithState(promise);switch(statefulPromise.status){case"pending":throw statefulPromise;case"rejected":throw statefulPromise.reason;case"fulfilled":return statefulPromise.value}},QUERY_REFERENCE_SYMBOL=Symbol(),PROMISE_SYMBOL=Symbol();function wrapQueryRef(internalQueryRef){var _a2,ref=(_a2={toPromise:function(){return getWrappedPromise(ref).then(function(){return ref})}},_a2[QUERY_REFERENCE_SYMBOL]=internalQueryRef,_a2[PROMISE_SYMBOL]=internalQueryRef.promise,_a2);return ref}function assertWrappedQueryRef(queryRef){invariantWrappers_invariant(!queryRef||QUERY_REFERENCE_SYMBOL in queryRef,61)}function getWrappedPromise(queryRef){var internalQueryRef=unwrapQueryRef(queryRef);return internalQueryRef.promise.status==="fulfilled"?internalQueryRef.promise:queryRef[PROMISE_SYMBOL]}function unwrapQueryRef(queryRef){return queryRef[QUERY_REFERENCE_SYMBOL]}function updateWrappedQueryRef(queryRef,promise){queryRef[PROMISE_SYMBOL]=promise}var OBSERVED_CHANGED_OPTIONS=["canonizeResults","context","errorPolicy","fetchPolicy","refetchWritePolicy","returnPartialData"],InternalQueryReference=function(){function InternalQueryReference2(observable,options){var _this=this;this.key={},this.listeners=new Set,this.references=0,this.softReferences=0,this.handleNext=this.handleNext.bind(this),this.handleError=this.handleError.bind(this),this.dispose=this.dispose.bind(this),this.observable=observable,options.onDispose&&(this.onDispose=options.onDispose),this.setResult(),this.subscribeToQuery();var startDisposeTimer=function(){var _a2;_this.references||(_this.autoDisposeTimeoutId=setTimeout(_this.dispose,(_a2=options.autoDisposeTimeoutMs)!==null&&_a2!==void 0?_a2:3e4))};this.promise.then(startDisposeTimer,startDisposeTimer)}return Object.defineProperty(InternalQueryReference2.prototype,"disposed",{get:function(){return this.subscription.closed},enumerable:!1,configurable:!0}),Object.defineProperty(InternalQueryReference2.prototype,"watchQueryOptions",{get:function(){return this.observable.options},enumerable:!1,configurable:!0}),InternalQueryReference2.prototype.reinitialize=function(){var observable=this.observable,originalFetchPolicy=this.watchQueryOptions.fetchPolicy,avoidNetworkRequests=originalFetchPolicy==="no-cache"||originalFetchPolicy==="standby";try{if(avoidNetworkRequests?observable.silentSetOptions({fetchPolicy:"standby"}):(observable.resetLastResults(),observable.silentSetOptions({fetchPolicy:"cache-first"})),this.subscribeToQuery(),avoidNetworkRequests)return;observable.resetDiff(),this.setResult()}finally{observable.silentSetOptions({fetchPolicy:originalFetchPolicy})}},InternalQueryReference2.prototype.retain=function(){var _this=this;this.references++,clearTimeout(this.autoDisposeTimeoutId);var disposed=!1;return function(){disposed||(disposed=!0,_this.references--,setTimeout(function(){_this.references||_this.dispose()}))}},InternalQueryReference2.prototype.softRetain=function(){var _this=this;this.softReferences++;var disposed=!1;return function(){disposed||(disposed=!0,_this.softReferences--,setTimeout(function(){!_this.softReferences&&!_this.references&&_this.dispose()}))}},InternalQueryReference2.prototype.didChangeOptions=function(watchQueryOptions){var _this=this;return OBSERVED_CHANGED_OPTIONS.some(function(option){return option in watchQueryOptions&&!equal(_this.watchQueryOptions[option],watchQueryOptions[option])})},InternalQueryReference2.prototype.applyOptions=function(watchQueryOptions){var _a2=this.watchQueryOptions,currentFetchPolicy=_a2.fetchPolicy,currentCanonizeResults=_a2.canonizeResults;return currentFetchPolicy==="standby"&&currentFetchPolicy!==watchQueryOptions.fetchPolicy?this.initiateFetch(this.observable.reobserve(watchQueryOptions)):(this.observable.silentSetOptions(watchQueryOptions),currentCanonizeResults!==watchQueryOptions.canonizeResults&&(this.result=tslib_es6_assign(tslib_es6_assign({},this.result),this.observable.getCurrentResult()),this.promise=createFulfilledPromise(this.result))),this.promise},InternalQueryReference2.prototype.listen=function(listener){var _this=this;return this.listeners.add(listener),function(){_this.listeners.delete(listener)}},InternalQueryReference2.prototype.refetch=function(variables){return this.initiateFetch(this.observable.refetch(variables))},InternalQueryReference2.prototype.fetchMore=function(options){return this.initiateFetch(this.observable.fetchMore(options))},InternalQueryReference2.prototype.dispose=function(){this.subscription.unsubscribe(),this.onDispose()},InternalQueryReference2.prototype.onDispose=function(){},InternalQueryReference2.prototype.handleNext=function(result){var _a2;switch(this.promise.status){case"pending":{result.data===void 0&&(result.data=this.result.data),this.result=result,(_a2=this.resolve)===null||_a2===void 0||_a2.call(this,result);break}default:{if(result.data===this.result.data&&result.networkStatus===this.result.networkStatus)return;result.data===void 0&&(result.data=this.result.data),this.result=result,this.promise=createFulfilledPromise(result),this.deliver(this.promise);break}}},InternalQueryReference2.prototype.handleError=function(error){var _a2;switch(this.subscription.unsubscribe(),this.subscription=this.observable.resubscribeAfterError(this.handleNext,this.handleError),this.promise.status){case"pending":{(_a2=this.reject)===null||_a2===void 0||_a2.call(this,error);break}default:this.promise=createRejectedPromise(error),this.deliver(this.promise)}},InternalQueryReference2.prototype.deliver=function(promise){this.listeners.forEach(function(listener){return listener(promise)})},InternalQueryReference2.prototype.initiateFetch=function(returnedPromise){var _this=this;return this.promise=this.createPendingPromise(),this.promise.catch(function(){}),returnedPromise.then(function(){setTimeout(function(){var _a2;_this.promise.status==="pending"&&(_this.result=_this.observable.getCurrentResult(),(_a2=_this.resolve)===null||_a2===void 0||_a2.call(_this,_this.result))})}).catch(function(){}),returnedPromise},InternalQueryReference2.prototype.subscribeToQuery=function(){var _this=this;this.subscription=this.observable.filter(function(result){return!equal(result.data,{})&&!equal(result,_this.result)}).subscribe(this.handleNext,this.handleError)},InternalQueryReference2.prototype.setResult=function(){var result=this.observable.getCurrentResult(!1);equal(result,this.result)||(this.result=result,this.promise=result.data&&(!result.partial||this.watchQueryOptions.returnPartialData)?createFulfilledPromise(result):this.createPendingPromise())},InternalQueryReference2.prototype.createPendingPromise=function(){var _this=this;return wrapPromiseWithState(new Promise(function(resolve,reject){_this.resolve=resolve,_this.reject=reject}))},InternalQueryReference2}(),SuspenseCache=function(){function SuspenseCache2(options){options===void 0&&(options=Object.create(null)),this.queryRefs=new Trie(canUseWeakMap),this.options=options}return SuspenseCache2.prototype.getQueryRef=function(cacheKey,createObservable){var ref=this.queryRefs.lookupArray(cacheKey);return ref.current||(ref.current=new InternalQueryReference(createObservable(),{autoDisposeTimeoutMs:this.options.autoDisposeTimeoutMs,onDispose:function(){delete ref.current}})),ref.current},SuspenseCache2.prototype.add=function(cacheKey,queryRef){var ref=this.queryRefs.lookupArray(cacheKey);ref.current=queryRef},SuspenseCache2}(),suspenseCacheSymbol=Symbol.for("apollo.suspenseCache");function getSuspenseCache(client){var _a2;return client[suspenseCacheSymbol]||(client[suspenseCacheSymbol]=new SuspenseCache((_a2=client.defaultOptions.react)===null||_a2===void 0?void 0:_a2.suspense)),client[suspenseCacheSymbol]}var skipToken=Symbol.for("apollo.skipToken");function useSuspenseQuery(query,options){return options===void 0&&(options=Object.create(null)),wrapHook("useSuspenseQuery",_useSuspenseQuery,useApolloClient(typeof options=="object"?options.client:void 0))(query,options)}function _useSuspenseQuery(query,options){var client=useApolloClient(options.client),suspenseCache=getSuspenseCache(client),watchQueryOptions=useWatchQueryOptions({client,query,options}),fetchPolicy=watchQueryOptions.fetchPolicy,variables=watchQueryOptions.variables,_a2=options.queryKey,queryKey=_a2===void 0?[]:_a2,cacheKey=__spreadArray([query,canonicalStringify(variables)],[].concat(queryKey),!0),queryRef=suspenseCache.getQueryRef(cacheKey,function(){return client.watchQuery(watchQueryOptions)}),_b=rehackt.useState([queryRef.key,queryRef.promise]),current=_b[0],setPromise=_b[1];current[0]!==queryRef.key&&(current[0]=queryRef.key,current[1]=queryRef.promise);var promise=current[1];queryRef.didChangeOptions(watchQueryOptions)&&(current[1]=promise=queryRef.applyOptions(watchQueryOptions)),rehackt.useEffect(function(){var dispose=queryRef.retain(),removeListener=queryRef.listen(function(promise2){setPromise([queryRef.key,promise2])});return function(){removeListener(),dispose()}},[queryRef]);var skipResult=rehackt.useMemo(function(){var error=useSuspenseQuery_toApolloError(queryRef.result);return{loading:!1,data:queryRef.result.data,networkStatus:error?NetworkStatus.error:NetworkStatus.ready,error}},[queryRef.result]),result=fetchPolicy==="standby"?skipResult:__use(promise),fetchMore=rehackt.useCallback(function(options2){var promise2=queryRef.fetchMore(options2);return setPromise([queryRef.key,queryRef.promise]),promise2},[queryRef]),refetch=rehackt.useCallback(function(variables2){var promise2=queryRef.refetch(variables2);return setPromise([queryRef.key,queryRef.promise]),promise2},[queryRef]),subscribeToMore=queryRef.observable.subscribeToMore;return rehackt.useMemo(function(){return{client,data:result.data,error:useSuspenseQuery_toApolloError(result),networkStatus:result.networkStatus,fetchMore,refetch,subscribeToMore}},[client,fetchMore,refetch,result,subscribeToMore])}function validateOptions(options){var query=options.query,fetchPolicy=options.fetchPolicy,returnPartialData=options.returnPartialData;verifyDocumentType(query,DocumentType.Query),validateFetchPolicy(fetchPolicy),validatePartialDataReturn(fetchPolicy,returnPartialData)}function validateFetchPolicy(fetchPolicy){fetchPolicy===void 0&&(fetchPolicy="cache-first");var supportedFetchPolicies=["cache-first","network-only","no-cache","cache-and-network"];invariantWrappers_invariant(supportedFetchPolicies.includes(fetchPolicy),58,fetchPolicy)}function validatePartialDataReturn(fetchPolicy,returnPartialData){fetchPolicy==="no-cache"&&returnPartialData&&globalThis.__DEV__!==!1&&invariantWrappers_invariant.warn(59)}function useSuspenseQuery_toApolloError(result){return isNonEmptyArray(result.errors)?new ApolloError({graphQLErrors:result.errors}):result.error}function useWatchQueryOptions(_a2){var client=_a2.client,query=_a2.query,options=_a2.options;return useDeepMemo(function(){var _a3;if(options===skipToken)return{query,fetchPolicy:"standby"};var fetchPolicy=options.fetchPolicy||((_a3=client.defaultOptions.watchQuery)===null||_a3===void 0?void 0:_a3.fetchPolicy)||"cache-first",watchQueryOptions=tslib_es6_assign(tslib_es6_assign({},options),{fetchPolicy,query,notifyOnNetworkStatusChange:!1,nextFetchPolicy:void 0});return globalThis.__DEV__!==!1&&validateOptions(watchQueryOptions),options.skip&&(watchQueryOptions.fetchPolicy="standby"),watchQueryOptions},[client,options,query])}function useBackgroundQuery(query,options){return options===void 0&&(options=Object.create(null)),wrapHook("useBackgroundQuery",_useBackgroundQuery,useApolloClient(typeof options=="object"?options.client:void 0))(query,options)}function _useBackgroundQuery(query,options){var client=useApolloClient(options.client),suspenseCache=getSuspenseCache(client),watchQueryOptions=useWatchQueryOptions({client,query,options}),fetchPolicy=watchQueryOptions.fetchPolicy,variables=watchQueryOptions.variables,_a2=options.queryKey,queryKey=_a2===void 0?[]:_a2,didFetchResult=rehackt.useRef(fetchPolicy!=="standby");didFetchResult.current||(didFetchResult.current=fetchPolicy!=="standby");var cacheKey=__spreadArray([query,canonicalStringify(variables)],[].concat(queryKey),!0),queryRef=suspenseCache.getQueryRef(cacheKey,function(){return client.watchQuery(watchQueryOptions)}),_b=rehackt.useState(wrapQueryRef(queryRef)),wrappedQueryRef=_b[0],setWrappedQueryRef=_b[1];if(unwrapQueryRef(wrappedQueryRef)!==queryRef&&setWrappedQueryRef(wrapQueryRef(queryRef)),queryRef.didChangeOptions(watchQueryOptions)){var promise=queryRef.applyOptions(watchQueryOptions);updateWrappedQueryRef(wrappedQueryRef,promise)}rehackt.useEffect(function(){var id=setTimeout(function(){queryRef.disposed&&suspenseCache.add(cacheKey,queryRef)});return function(){return clearTimeout(id)}});var fetchMore=rehackt.useCallback(function(options2){var promise2=queryRef.fetchMore(options2);return setWrappedQueryRef(wrapQueryRef(queryRef)),promise2},[queryRef]),refetch=rehackt.useCallback(function(variables2){var promise2=queryRef.refetch(variables2);return setWrappedQueryRef(wrapQueryRef(queryRef)),promise2},[queryRef]);return rehackt.useEffect(function(){return queryRef.softRetain()},[queryRef]),[didFetchResult.current?wrappedQueryRef:void 0,{fetchMore,refetch,subscribeToMore:queryRef.observable.subscribeToMore}]}var Ctx;function useRenderGuard_noop(){}function useRenderGuard(){return Ctx||(Ctx=rehackt.createContext(null)),rehackt.useCallback(function(){var orig=console.error;try{return console.error=useRenderGuard_noop,rehackt.useContext(Ctx),!0}catch{return!1}finally{console.error=orig}},[])}function useLoadableQuery(query,options){options===void 0&&(options=Object.create(null));var client=useApolloClient(options.client),suspenseCache=getSuspenseCache(client),watchQueryOptions=useWatchQueryOptions({client,query,options}),_a2=options.queryKey,queryKey=_a2===void 0?[]:_a2,_b=rehackt.useState(null),queryRef=_b[0],setQueryRef=_b[1];assertWrappedQueryRef(queryRef);var internalQueryRef=queryRef&&unwrapQueryRef(queryRef);if(queryRef&&internalQueryRef?.didChangeOptions(watchQueryOptions)){var promise=internalQueryRef.applyOptions(watchQueryOptions);updateWrappedQueryRef(queryRef,promise)}var calledDuringRender=useRenderGuard(),fetchMore=rehackt.useCallback(function(options2){if(!internalQueryRef)throw new Error("The query has not been loaded. Please load the query.");var promise2=internalQueryRef.fetchMore(options2);return setQueryRef(wrapQueryRef(internalQueryRef)),promise2},[internalQueryRef]),refetch=rehackt.useCallback(function(options2){if(!internalQueryRef)throw new Error("The query has not been loaded. Please load the query.");var promise2=internalQueryRef.refetch(options2);return setQueryRef(wrapQueryRef(internalQueryRef)),promise2},[internalQueryRef]),loadQuery=rehackt.useCallback(function(){for(var args=[],_i=0;_i<arguments.length;_i++)args[_i]=arguments[_i];invariantWrappers_invariant(!calledDuringRender(),51);var variables=args[0],cacheKey=__spreadArray([query,canonicalStringify(variables)],[].concat(queryKey),!0),queryRef2=suspenseCache.getQueryRef(cacheKey,function(){return client.watchQuery(tslib_es6_assign(tslib_es6_assign({},watchQueryOptions),{variables}))});setQueryRef(wrapQueryRef(queryRef2))},[query,queryKey,suspenseCache,watchQueryOptions,calledDuringRender,client]),subscribeToMore=rehackt.useCallback(function(options2){return invariantWrappers_invariant(internalQueryRef,52),internalQueryRef.observable.subscribeToMore(options2)},[internalQueryRef]),reset=rehackt.useCallback(function(){setQueryRef(null)},[]);return[loadQuery,queryRef,{fetchMore,refetch,reset,subscribeToMore}]}function useQueryRefHandlers(queryRef){var unwrapped=unwrapQueryRef(queryRef);return wrapHook("useQueryRefHandlers",_useQueryRefHandlers,unwrapped?unwrapped.observable:useApolloClient())(queryRef)}function _useQueryRefHandlers(queryRef){assertWrappedQueryRef(queryRef);var _a2=rehackt.useState(queryRef),previousQueryRef=_a2[0],setPreviousQueryRef=_a2[1],_b=rehackt.useState(queryRef),wrappedQueryRef=_b[0],setWrappedQueryRef=_b[1],internalQueryRef=unwrapQueryRef(queryRef);previousQueryRef!==queryRef?(setPreviousQueryRef(queryRef),setWrappedQueryRef(queryRef)):updateWrappedQueryRef(queryRef,getWrappedPromise(wrappedQueryRef));var refetch=rehackt.useCallback(function(variables){var promise=internalQueryRef.refetch(variables);return setWrappedQueryRef(wrapQueryRef(internalQueryRef)),promise},[internalQueryRef]),fetchMore=rehackt.useCallback(function(options){var promise=internalQueryRef.fetchMore(options);return setWrappedQueryRef(wrapQueryRef(internalQueryRef)),promise},[internalQueryRef]);return{refetch,fetchMore,subscribeToMore:internalQueryRef.observable.subscribeToMore}}function useReadQuery(queryRef){var unwrapped=unwrapQueryRef(queryRef);return wrapHook("useReadQuery",_useReadQuery,unwrapped?unwrapped.observable:useApolloClient())(queryRef)}function _useReadQuery(queryRef){assertWrappedQueryRef(queryRef);var internalQueryRef=rehackt.useMemo(function(){return unwrapQueryRef(queryRef)},[queryRef]),getPromise=rehackt.useCallback(function(){return getWrappedPromise(queryRef)},[queryRef]);internalQueryRef.disposed&&(internalQueryRef.reinitialize(),updateWrappedQueryRef(queryRef,internalQueryRef.promise)),rehackt.useEffect(function(){return internalQueryRef.retain()},[internalQueryRef]);var promise=useSyncExternalStore(rehackt.useCallback(function(forceUpdate){return internalQueryRef.listen(function(promise2){updateWrappedQueryRef(queryRef,promise2),forceUpdate()})},[internalQueryRef,queryRef]),getPromise,getPromise),result=__use(promise);return rehackt.useMemo(function(){return{data:result.data,networkStatus:result.networkStatus,error:useSuspenseQuery_toApolloError(result)}},[result])}function createQueryPreloader(client){return wrapHook("createQueryPreloader",_createQueryPreloader,client)(client)}var _createQueryPreloader=function(client){return function(query,options){var _a2,_b;options===void 0&&(options=Object.create(null));var queryRef=new InternalQueryReference(client.watchQuery(tslib_es6_assign(tslib_es6_assign({},options),{query})),{autoDisposeTimeoutMs:(_b=(_a2=client.defaultOptions.react)===null||_a2===void 0?void 0:_a2.suspense)===null||_b===void 0?void 0:_b.autoDisposeTimeoutMs});return wrapQueryRef(queryRef)}}},97605:(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{Z:()=>_extends});function _extends(){return _extends=Object.assign?Object.assign.bind():function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source)Object.prototype.hasOwnProperty.call(source,key)&&(target[key]=source[key])}return target},_extends.apply(this,arguments)}},76004:(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{Z:()=>_objectSpread});function _typeof(o){return _typeof=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(o2){return typeof o2}:function(o2){return o2&&typeof Symbol=="function"&&o2.constructor===Symbol&&o2!==Symbol.prototype?"symbol":typeof o2},_typeof(o)}function _toPrimitive(input,hint){if(_typeof(input)!=="object"||input===null)return input;var prim=input[Symbol.toPrimitive];if(prim!==void 0){var res=prim.call(input,hint||"default");if(_typeof(res)!=="object")return res;throw new TypeError("@@toPrimitive must return a primitive value.")}return(hint==="string"?String:Number)(input)}function _toPropertyKey(arg){var key=_toPrimitive(arg,"string");return _typeof(key)==="symbol"?key:String(key)}function _defineProperty(obj,key,value){return key=_toPropertyKey(key),key in obj?Object.defineProperty(obj,key,{value,enumerable:!0,configurable:!0,writable:!0}):obj[key]=value,obj}function _objectSpread(target){for(var i=1;i<arguments.length;i++){var source=arguments[i]!=null?Object(arguments[i]):{},ownKeys=Object.keys(source);typeof Object.getOwnPropertySymbols=="function"&&ownKeys.push.apply(ownKeys,Object.getOwnPropertySymbols(source).filter(function(sym){return Object.getOwnPropertyDescriptor(source,sym).enumerable})),ownKeys.forEach(function(key){_defineProperty(target,key,source[key])})}return target}},2141:(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{Z:()=>_objectWithoutProperties});function _objectWithoutPropertiesLoose(source,excluded){if(source==null)return{};var target={},sourceKeys=Object.keys(source),key,i;for(i=0;i<sourceKeys.length;i++)key=sourceKeys[i],!(excluded.indexOf(key)>=0)&&(target[key]=source[key]);return target}function _objectWithoutProperties(source,excluded){if(source==null)return{};var target=_objectWithoutPropertiesLoose(source,excluded),key,i;if(Object.getOwnPropertySymbols){var sourceSymbolKeys=Object.getOwnPropertySymbols(source);for(i=0;i<sourceSymbolKeys.length;i++)key=sourceSymbolKeys[i],!(excluded.indexOf(key)>=0)&&(!Object.prototype.propertyIsEnumerable.call(source,key)||(target[key]=source[key]))}return target}},90314:(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__)=>{"use strict";var _home_circleci_bit_bit_node_modules_teambit_react_ui_docs_app_dist_index_js__WEBPACK_IMPORTED_MODULE_0___namespace_cache;__webpack_require__.d(__webpack_exports__,{Y:()=>_home_circleci_bit_bit_node_modules_teambit_react_ui_docs_app_dist_index_js__WEBPACK_IMPORTED_MODULE_0___namespace_cache||(_home_circleci_bit_bit_node_modules_teambit_react_ui_docs_app_dist_index_js__WEBPACK_IMPORTED_MODULE_0___namespace_cache=__webpack_require__.t(_home_circleci_bit_bit_node_modules_teambit_react_ui_docs_app_dist_index_js__WEBPACK_IMPORTED_MODULE_0__,2))});var _home_circleci_bit_bit_node_modules_teambit_react_ui_docs_app_dist_index_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(79022)},27102:module=>{"use strict";module.exports=JSON.parse('{"AElig":"\xC6","AMP":"&","Aacute":"\xC1","Acirc":"\xC2","Agrave":"\xC0","Aring":"\xC5","Atilde":"\xC3","Auml":"\xC4","COPY":"\xA9","Ccedil":"\xC7","ETH":"\xD0","Eacute":"\xC9","Ecirc":"\xCA","Egrave":"\xC8","Euml":"\xCB","GT":">","Iacute":"\xCD","Icirc":"\xCE","Igrave":"\xCC","Iuml":"\xCF","LT":"<","Ntilde":"\xD1","Oacute":"\xD3","Ocirc":"\xD4","Ograve":"\xD2","Oslash":"\xD8","Otilde":"\xD5","Ouml":"\xD6","QUOT":"\\"","REG":"\xAE","THORN":"\xDE","Uacute":"\xDA","Ucirc":"\xDB","Ugrave":"\xD9","Uuml":"\xDC","Yacute":"\xDD","aacute":"\xE1","acirc":"\xE2","acute":"\xB4","aelig":"\xE6","agrave":"\xE0","amp":"&","aring":"\xE5","atilde":"\xE3","auml":"\xE4","brvbar":"\xA6","ccedil":"\xE7","cedil":"\xB8","cent":"\xA2","copy":"\xA9","curren":"\xA4","deg":"\xB0","divide":"\xF7","eacute":"\xE9","ecirc":"\xEA","egrave":"\xE8","eth":"\xF0","euml":"\xEB","frac12":"\xBD","frac14":"\xBC","frac34":"\xBE","gt":">","iacute":"\xED","icirc":"\xEE","iexcl":"\xA1","igrave":"\xEC","iquest":"\xBF","iuml":"\xEF","laquo":"\xAB","lt":"<","macr":"\xAF","micro":"\xB5","middot":"\xB7","nbsp":"\xA0","not":"\xAC","ntilde":"\xF1","oacute":"\xF3","ocirc":"\xF4","ograve":"\xF2","ordf":"\xAA","ordm":"\xBA","oslash":"\xF8","otilde":"\xF5","ouml":"\xF6","para":"\xB6","plusmn":"\xB1","pound":"\xA3","quot":"\\"","raquo":"\xBB","reg":"\xAE","sect":"\xA7","shy":"\xAD","sup1":"\xB9","sup2":"\xB2","sup3":"\xB3","szlig":"\xDF","thorn":"\xFE","times":"\xD7","uacute":"\xFA","ucirc":"\xFB","ugrave":"\xF9","uml":"\xA8","uuml":"\xFC","yacute":"\xFD","yen":"\xA5","yuml":"\xFF"}')},71701:module=>{"use strict";module.exports=JSON.parse('{"0":"\uFFFD","128":"\u20AC","130":"\u201A","131":"\u0192","132":"\u201E","133":"\u2026","134":"\u2020","135":"\u2021","136":"\u02C6","137":"\u2030","138":"\u0160","139":"\u2039","140":"\u0152","142":"\u017D","145":"\u2018","146":"\u2019","147":"\u201C","148":"\u201D","149":"\u2022","150":"\u2013","151":"\u2014","152":"\u02DC","153":"\u2122","154":"\u0161","155":"\u203A","156":"\u0153","158":"\u017E","159":"\u0178"}')},20433:module=>{"use strict";module.exports=JSON.parse('{"year":{"previous":"last year","current":"this year","next":"next year","past":{"one":"a year ago","other":"{0} years ago"},"future":{"one":"in a year","other":"in {0} years"}},"quarter":{"previous":"last quarter","current":"this quarter","next":"next quarter","past":{"one":"a quarter ago","other":"{0} quarters ago"},"future":{"one":"in a quarter","other":"in {0} quarters"}},"month":{"previous":"last month","current":"this month","next":"next month","past":{"one":"a month ago","other":"{0} months ago"},"future":{"one":"in a month","other":"in {0} months"}},"week":{"previous":"last week","current":"this week","next":"next week","past":{"one":"a week ago","other":"{0} weeks ago"},"future":{"one":"in a week","other":"in {0} weeks"}},"day":{"previous":"yesterday","current":"today","next":"tomorrow","past":{"one":"a day ago","other":"{0} days ago"},"future":{"one":"in a day","other":"in {0} days"}},"hour":{"current":"this hour","past":{"one":"an hour ago","other":"{0} hours ago"},"future":{"one":"in an hour","other":"in {0} hours"}},"minute":{"current":"this minute","past":{"one":"a minute ago","other":"{0} minutes ago"},"future":{"one":"in a minute","other":"in {0} minutes"}},"second":{"current":"now","past":{"one":"a second ago","other":"{0} seconds ago"},"future":{"one":"in a second","other":"in {0} seconds"}},"now":{"future":"in a moment","past":"just now"}}')},94609:module=>{"use strict";module.exports=JSON.parse('{"year":{"one":"{0} year","other":"{0} years"},"month":{"one":"{0} month","other":"{0} months"},"week":{"one":"{0} week","other":"{0} weeks"},"day":{"one":"{0} day","other":"{0} days"},"hour":{"one":"{0} hour","other":"{0} hours"},"minute":{"one":"{0} minute","other":"{0} minutes"},"second":{"one":"{0} second","other":"{0} seconds"},"now":{"future":"in a moment","past":"just now"}}')},25873:module=>{"use strict";module.exports=JSON.parse('{"year":{"previous":"last yr.","current":"this yr.","next":"next yr.","past":"{0} yr. ago","future":"in {0} yr."},"quarter":{"previous":"last qtr.","current":"this qtr.","next":"next qtr.","past":{"one":"{0} qtr. ago","other":"{0} qtrs. ago"},"future":{"one":"in {0} qtr.","other":"in {0} qtrs."}},"month":{"previous":"last mo.","current":"this mo.","next":"next mo.","past":"{0} mo. ago","future":"in {0} mo."},"week":{"previous":"last wk.","current":"this wk.","next":"next wk.","past":"{0} wk. ago","future":"in {0} wk."},"day":{"previous":"yesterday","current":"today","next":"tomorrow","past":{"one":"{0} day ago","other":"{0} days ago"},"future":{"one":"in {0} day","other":"in {0} days"}},"hour":{"current":"this hour","past":"{0} hr. ago","future":"in {0} hr."},"minute":{"current":"this minute","past":"{0} min. ago","future":"in {0} min."},"second":{"current":"now","past":"{0} sec. ago","future":"in {0} sec."},"now":{"future":"in a moment","past":"just now"}}')},14640:module=>{"use strict";module.exports=JSON.parse('{"year":"{0} yr.","month":"{0} mo.","week":"{0} wk.","day":{"one":"{0} day","other":"{0} days"},"hour":"{0} hr.","minute":"{0} min.","second":"{0} sec.","now":"now"}')},27218:module=>{"use strict";module.exports=JSON.parse('{"year":"{0}yr","month":"{0}mo","week":"{0}wk","day":"{0}d","hour":"{0}h","minute":"{0}m","second":"{0}s","now":"now"}')},45641:module=>{"use strict";module.exports=JSON.parse('{"year":{"previous":"last year","current":"this year","next":"next year","past":{"one":"{0} year ago","other":"{0} years ago"},"future":{"one":"in {0} year","other":"in {0} years"}},"quarter":{"previous":"last quarter","current":"this quarter","next":"next quarter","past":{"one":"{0} quarter ago","other":"{0} quarters ago"},"future":{"one":"in {0} quarter","other":"in {0} quarters"}},"month":{"previous":"last month","current":"this month","next":"next month","past":{"one":"{0} month ago","other":"{0} months ago"},"future":{"one":"in {0} month","other":"in {0} months"}},"week":{"previous":"last week","current":"this week","next":"next week","past":{"one":"{0} week ago","other":"{0} weeks ago"},"future":{"one":"in {0} week","other":"in {0} weeks"}},"day":{"previous":"yesterday","current":"today","next":"tomorrow","past":{"one":"{0} day ago","other":"{0} days ago"},"future":{"one":"in {0} day","other":"in {0} days"}},"hour":{"current":"this hour","past":{"one":"{0} hour ago","other":"{0} hours ago"},"future":{"one":"in {0} hour","other":"in {0} hours"}},"minute":{"current":"this minute","past":{"one":"{0} minute ago","other":"{0} minutes ago"},"future":{"one":"in {0} minute","other":"in {0} minutes"}},"second":{"current":"now","past":{"one":"{0} second ago","other":"{0} seconds ago"},"future":{"one":"in {0} second","other":"in {0} seconds"}}}')},97009:module=>{"use strict";module.exports=JSON.parse('{"year":{"previous":"last yr.","current":"this yr.","next":"next yr.","past":"{0} yr. ago","future":"in {0} yr."},"quarter":{"previous":"last qtr.","current":"this qtr.","next":"next qtr.","past":{"one":"{0} qtr. ago","other":"{0} qtrs. ago"},"future":{"one":"in {0} qtr.","other":"in {0} qtrs."}},"month":{"previous":"last mo.","current":"this mo.","next":"next mo.","past":"{0} mo. ago","future":"in {0} mo."},"week":{"previous":"last wk.","current":"this wk.","next":"next wk.","past":"{0} wk. ago","future":"in {0} wk."},"day":{"previous":"yesterday","current":"today","next":"tomorrow","past":{"one":"{0} day ago","other":"{0} days ago"},"future":{"one":"in {0} day","other":"in {0} days"}},"hour":{"current":"this hour","past":"{0} hr. ago","future":"in {0} hr."},"minute":{"current":"this minute","past":"{0} min. ago","future":"in {0} min."},"second":{"current":"now","past":"{0} sec. ago","future":"in {0} sec."}}')},30963:module=>{"use strict";module.exports=JSON.parse('{"year":{"previous":"last yr.","current":"this yr.","next":"next yr.","past":"{0} yr. ago","future":"in {0} yr."},"quarter":{"previous":"last qtr.","current":"this qtr.","next":"next qtr.","past":{"one":"{0} qtr. ago","other":"{0} qtrs. ago"},"future":{"one":"in {0} qtr.","other":"in {0} qtrs."}},"month":{"previous":"last mo.","current":"this mo.","next":"next mo.","past":"{0} mo. ago","future":"in {0} mo."},"week":{"previous":"last wk.","current":"this wk.","next":"next wk.","past":"{0} wk. ago","future":"in {0} wk."},"day":{"previous":"yesterday","current":"today","next":"tomorrow","past":{"one":"{0} day ago","other":"{0} days ago"},"future":{"one":"in {0} day","other":"in {0} days"}},"hour":{"current":"this hour","past":"{0} hr. ago","future":"in {0} hr."},"minute":{"current":"this minute","past":"{0} min. ago","future":"in {0} min."},"second":{"current":"now","past":"{0} sec. ago","future":"in {0} sec."}}')}}]);
690
+ this in the docs: http://dev.apollodata.com/core/fragments.html#unique-names`):sourceKeySet||fragmentSourceMap.set(fragmentName,sourceKeySet=new Set),sourceKeySet.add(sourceKey),seenKeys.has(sourceKey)||(seenKeys.add(sourceKey),definitions.push(fragmentDefinition))}else definitions.push(fragmentDefinition)}),tslib_es6_assign(tslib_es6_assign({},ast),{definitions})}function stripLoc(doc){var workSet=new Set(doc.definitions);workSet.forEach(function(node){node.loc&&delete node.loc,Object.keys(node).forEach(function(key){var value=node[key];value&&typeof value=="object"&&workSet.add(value)})});var loc=doc.loc;return loc&&(delete loc.startToken,delete loc.endToken),doc}function parseDocument(source){var cacheKey=lib_normalize(source);if(!docCache.has(cacheKey)){var parsed=(0,parser.parse)(source,{experimentalFragmentVariables,allowLegacyFragmentVariables:experimentalFragmentVariables});if(!parsed||parsed.kind!=="Document")throw new Error("Not a valid GraphQL document.");docCache.set(cacheKey,stripLoc(processFragments(parsed)))}return docCache.get(cacheKey)}function gql(literals){for(var args=[],_i=1;_i<arguments.length;_i++)args[_i-1]=arguments[_i];typeof literals=="string"&&(literals=[literals]);var result=literals[0];return args.forEach(function(arg,i){arg&&arg.kind==="Document"?result+=arg.loc.source.body:result+=arg,result+=literals[i+1]}),parseDocument(result)}function resetCaches(){docCache.clear(),fragmentSourceMap.clear()}function disableFragmentWarnings(){printFragmentWarnings=!1}function enableExperimentalFragmentVariables(){experimentalFragmentVariables=!0}function disableExperimentalFragmentVariables(){experimentalFragmentVariables=!1}var extras={gql,resetCaches,disableFragmentWarnings,enableExperimentalFragmentVariables,disableExperimentalFragmentVariables};(function(gql_1){gql_1.gql=extras.gql,gql_1.resetCaches=extras.resetCaches,gql_1.disableFragmentWarnings=extras.disableFragmentWarnings,gql_1.enableExperimentalFragmentVariables=extras.enableExperimentalFragmentVariables,gql_1.disableExperimentalFragmentVariables=extras.disableExperimentalFragmentVariables})(gql||(gql={})),gql.default=gql;const graphql_tag_lib=null;setVerbosity(globalThis.__DEV__!==!1?"log":"silent");var rehackt=__webpack_require__(93226),rehackt_namespaceObject=__webpack_require__.t(rehackt,2),contextKey=canUseSymbol?Symbol.for("__APOLLO_CONTEXT__"):"__APOLLO_CONTEXT__";function getApolloContext(){invariantWrappers_invariant("createContext"in rehackt_namespaceObject,46);var context=rehackt.createContext[contextKey];return context||(Object.defineProperty(rehackt.createContext,contextKey,{value:context=rehackt.createContext({}),enumerable:!1,writable:!1,configurable:!0}),context.displayName="ApolloContext"),context}var resetApolloContext=getApolloContext,ApolloProvider=function(_a2){var client=_a2.client,children=_a2.children,ApolloContext=getApolloContext(),parentContext=rehackt.useContext(ApolloContext),context=rehackt.useMemo(function(){return tslib_es6_assign(tslib_es6_assign({},parentContext),{client:client||parentContext.client})},[parentContext,client]);return invariantWrappers_invariant(context.client,47),rehackt.createElement(ApolloContext.Provider,{value:context},children)},ApolloConsumer=function(props){var ApolloContext=getApolloContext();return rehackt.createElement(ApolloContext.Consumer,null,function(context){return invariantWrappers_invariant(context&&context.client,45),props.children(context.client)})};function useApolloClient(override){var context=rehackt.useContext(getApolloContext()),client=override||context.client;return invariantWrappers_invariant(!!client,50),client}var didWarnUncachedGetSnapshot=!1,uSESKey="useSyncExternalStore",realHook=rehackt_namespaceObject[uSESKey],useSyncExternalStore=realHook||function(subscribe,getSnapshot,getServerSnapshot){var value=getSnapshot();globalThis.__DEV__!==!1&&!didWarnUncachedGetSnapshot&&value!==getSnapshot()&&(didWarnUncachedGetSnapshot=!0,globalThis.__DEV__!==!1&&invariantWrappers_invariant.error(60));var _a2=rehackt.useState({inst:{value,getSnapshot}}),inst=_a2[0].inst,forceUpdate=_a2[1];return canUseLayoutEffect?rehackt.useLayoutEffect(function(){Object.assign(inst,{value,getSnapshot}),checkIfSnapshotChanged(inst)&&forceUpdate({inst})},[subscribe,value,getSnapshot]):Object.assign(inst,{value,getSnapshot}),rehackt.useEffect(function(){return checkIfSnapshotChanged(inst)&&forceUpdate({inst}),subscribe(function(){checkIfSnapshotChanged(inst)&&forceUpdate({inst})})},[subscribe]),value};function checkIfSnapshotChanged(_a2){var value=_a2.value,getSnapshot=_a2.getSnapshot;try{return value!==getSnapshot()}catch{return!0}}var DocumentType;(function(DocumentType2){DocumentType2[DocumentType2.Query=0]="Query",DocumentType2[DocumentType2.Mutation=1]="Mutation",DocumentType2[DocumentType2.Subscription=2]="Subscription"})(DocumentType||(DocumentType={}));var cache;function operationName(type){var name;switch(type){case DocumentType.Query:name="Query";break;case DocumentType.Mutation:name="Mutation";break;case DocumentType.Subscription:name="Subscription";break}return name}function parser_parser(document2){cache||(cache=new AutoCleanedWeakCache(cacheSizes.parser||1e3));var cached=cache.get(document2);if(cached)return cached;var variables,type,name;invariantWrappers_invariant(!!document2&&!!document2.kind,62,document2);for(var fragments=[],queries=[],mutations=[],subscriptions=[],_i=0,_a2=document2.definitions;_i<_a2.length;_i++){var x=_a2[_i];if(x.kind==="FragmentDefinition"){fragments.push(x);continue}if(x.kind==="OperationDefinition")switch(x.operation){case"query":queries.push(x);break;case"mutation":mutations.push(x);break;case"subscription":subscriptions.push(x);break}}invariantWrappers_invariant(!fragments.length||queries.length||mutations.length||subscriptions.length,63),invariantWrappers_invariant(queries.length+mutations.length+subscriptions.length<=1,64,document2,queries.length,subscriptions.length,mutations.length),type=queries.length?DocumentType.Query:DocumentType.Mutation,!queries.length&&!mutations.length&&(type=DocumentType.Subscription);var definitions=queries.length?queries:mutations.length?mutations:subscriptions;invariantWrappers_invariant(definitions.length===1,65,document2,definitions.length);var definition=definitions[0];variables=definition.variableDefinitions||[],definition.name&&definition.name.kind==="Name"?name=definition.name.value:name="data";var payload={name,type,variables};return cache.set(document2,payload),payload}parser_parser.resetCache=function(){cache=void 0},globalThis.__DEV__!==!1&&registerGlobalCache("parser",function(){return cache?cache.size:0});function verifyDocumentType(document2,type){var operation=parser_parser(document2),requiredOperationName=operationName(type),usedOperationName=operationName(operation.type);invariantWrappers_invariant(operation.type===type,66,requiredOperationName,requiredOperationName,usedOperationName)}var wrapperSymbol=Symbol.for("apollo.hook.wrappers");function wrapHook(hookName,useHook,clientOrObsQuery){var queryManager=clientOrObsQuery.queryManager,wrappers=queryManager&&queryManager[wrapperSymbol],wrapper=wrappers&&wrappers[hookName];return wrapper?wrapper(useHook):useHook}var useQuery_hasOwnProperty=Object.prototype.hasOwnProperty;function useQuery_noop(){}var lastWatchOptions=Symbol();function useQuery(query,options){return options===void 0&&(options=Object.create(null)),wrapHook("useQuery",_useQuery,useApolloClient(options&&options.client))(query,options)}function _useQuery(query,options){var _a2=useQueryInternals(query,options),result=_a2.result,obsQueryFields=_a2.obsQueryFields;return rehackt.useMemo(function(){return tslib_es6_assign(tslib_es6_assign({},result),obsQueryFields)},[result,obsQueryFields])}function useInternalState(client,query,options,renderPromises,makeWatchQueryOptions){function createInternalState(previous){var _a3;verifyDocumentType(query,DocumentType.Query);var internalState2={client,query,observable:renderPromises&&renderPromises.getSSRObservable(makeWatchQueryOptions())||client.watchQuery(getObsQueryOptions(void 0,client,options,makeWatchQueryOptions())),resultData:{previousData:(_a3=previous?.resultData.current)===null||_a3===void 0?void 0:_a3.data}};return internalState2}var _a2=rehackt.useState(createInternalState),internalState=_a2[0],updateInternalState=_a2[1];function onQueryExecuted(watchQueryOptions){var _a3,_b;Object.assign(internalState.observable,(_a3={},_a3[lastWatchOptions]=watchQueryOptions,_a3));var resultData=internalState.resultData;updateInternalState(tslib_es6_assign(tslib_es6_assign({},internalState),{query:watchQueryOptions.query,resultData:Object.assign(resultData,{previousData:((_b=resultData.current)===null||_b===void 0?void 0:_b.data)||resultData.previousData,current:void 0})}))}if(client!==internalState.client||query!==internalState.query){var newInternalState=createInternalState(internalState);return updateInternalState(newInternalState),[newInternalState,onQueryExecuted]}return[internalState,onQueryExecuted]}function useQueryInternals(query,options){var client=useApolloClient(options.client),renderPromises=rehackt.useContext(getApolloContext()).renderPromises,isSyncSSR=!!renderPromises,disableNetworkFetches=client.disableNetworkFetches,ssrAllowed=options.ssr!==!1&&!options.skip,partialRefetch=options.partialRefetch,makeWatchQueryOptions=createMakeWatchQueryOptions(client,query,options,isSyncSSR),_a2=useInternalState(client,query,options,renderPromises,makeWatchQueryOptions),_b=_a2[0],observable=_b.observable,resultData=_b.resultData,onQueryExecuted=_a2[1],watchQueryOptions=makeWatchQueryOptions(observable);useResubscribeIfNecessary(resultData,observable,client,options,watchQueryOptions);var obsQueryFields=rehackt.useMemo(function(){return bindObservableMethods(observable)},[observable]);useRegisterSSRObservable(observable,renderPromises,ssrAllowed);var result=useObservableSubscriptionResult(resultData,observable,client,options,watchQueryOptions,disableNetworkFetches,partialRefetch,isSyncSSR,{onCompleted:options.onCompleted||useQuery_noop,onError:options.onError||useQuery_noop});return{result,obsQueryFields,observable,resultData,client,onQueryExecuted}}function useObservableSubscriptionResult(resultData,observable,client,options,watchQueryOptions,disableNetworkFetches,partialRefetch,isSyncSSR,callbacks){var callbackRef=rehackt.useRef(callbacks);rehackt.useEffect(function(){callbackRef.current=callbacks});var resultOverride=(isSyncSSR||disableNetworkFetches)&&options.ssr===!1&&!options.skip?ssrDisabledResult:options.skip||watchQueryOptions.fetchPolicy==="standby"?skipStandbyResult:void 0,previousData=resultData.previousData,currentResultOverride=rehackt.useMemo(function(){return resultOverride&&toQueryResult(resultOverride,previousData,observable,client)},[client,observable,resultOverride,previousData]);return useSyncExternalStore(rehackt.useCallback(function(handleStoreChange){if(isSyncSSR)return function(){};var onNext=function(){var previousResult=resultData.current,result=observable.getCurrentResult();previousResult&&previousResult.loading===result.loading&&previousResult.networkStatus===result.networkStatus&&equal(previousResult.data,result.data)||setResult(result,resultData,observable,client,partialRefetch,handleStoreChange,callbackRef.current)},onError=function(error){if(subscription.current.unsubscribe(),subscription.current=observable.resubscribeAfterError(onNext,onError),!useQuery_hasOwnProperty.call(error,"graphQLErrors"))throw error;var previousResult=resultData.current;(!previousResult||previousResult&&previousResult.loading||!equal(error,previousResult.error))&&setResult({data:previousResult&&previousResult.data,error,loading:!1,networkStatus:NetworkStatus.error},resultData,observable,client,partialRefetch,handleStoreChange,callbackRef.current)},subscription={current:observable.subscribe(onNext,onError)};return function(){setTimeout(function(){return subscription.current.unsubscribe()})}},[disableNetworkFetches,isSyncSSR,observable,resultData,partialRefetch,client]),function(){return currentResultOverride||getCurrentResult(resultData,observable,callbackRef.current,partialRefetch,client)},function(){return currentResultOverride||getCurrentResult(resultData,observable,callbackRef.current,partialRefetch,client)})}function useRegisterSSRObservable(observable,renderPromises,ssrAllowed){renderPromises&&ssrAllowed&&(renderPromises.registerSSRObservable(observable),observable.getCurrentResult().loading&&renderPromises.addObservableQueryPromise(observable))}function useResubscribeIfNecessary(resultData,observable,client,options,watchQueryOptions){var _a2;observable[lastWatchOptions]&&!equal(observable[lastWatchOptions],watchQueryOptions)&&(observable.reobserve(getObsQueryOptions(observable,client,options,watchQueryOptions)),resultData.previousData=((_a2=resultData.current)===null||_a2===void 0?void 0:_a2.data)||resultData.previousData,resultData.current=void 0),observable[lastWatchOptions]=watchQueryOptions}function createMakeWatchQueryOptions(client,query,_a2,isSyncSSR){_a2===void 0&&(_a2={});var skip=_a2.skip,ssr=_a2.ssr,onCompleted=_a2.onCompleted,onError=_a2.onError,defaultOptions2=_a2.defaultOptions,otherOptions=__rest(_a2,["skip","ssr","onCompleted","onError","defaultOptions"]);return function(observable){var watchQueryOptions=Object.assign(otherOptions,{query});return isSyncSSR&&(watchQueryOptions.fetchPolicy==="network-only"||watchQueryOptions.fetchPolicy==="cache-and-network")&&(watchQueryOptions.fetchPolicy="cache-first"),watchQueryOptions.variables||(watchQueryOptions.variables={}),skip?(watchQueryOptions.initialFetchPolicy=watchQueryOptions.initialFetchPolicy||watchQueryOptions.fetchPolicy||getDefaultFetchPolicy(defaultOptions2,client.defaultOptions),watchQueryOptions.fetchPolicy="standby"):watchQueryOptions.fetchPolicy||(watchQueryOptions.fetchPolicy=observable?.options.initialFetchPolicy||getDefaultFetchPolicy(defaultOptions2,client.defaultOptions)),watchQueryOptions}}function getObsQueryOptions(observable,client,queryHookOptions,watchQueryOptions){var toMerge=[],globalDefaults=client.defaultOptions.watchQuery;return globalDefaults&&toMerge.push(globalDefaults),queryHookOptions.defaultOptions&&toMerge.push(queryHookOptions.defaultOptions),toMerge.push(compact(observable&&observable.options,watchQueryOptions)),toMerge.reduce(mergeOptions)}function setResult(nextResult,resultData,observable,client,partialRefetch,forceUpdate,callbacks){var previousResult=resultData.current;previousResult&&previousResult.data&&(resultData.previousData=previousResult.data),!nextResult.error&&isNonEmptyArray(nextResult.errors)&&(nextResult.error=new ApolloError({graphQLErrors:nextResult.errors})),resultData.current=toQueryResult(unsafeHandlePartialRefetch(nextResult,observable,partialRefetch),resultData.previousData,observable,client),forceUpdate(),handleErrorOrCompleted(nextResult,previousResult?.networkStatus,callbacks)}function handleErrorOrCompleted(result,previousNetworkStatus,callbacks){if(!result.loading){var error_1=toApolloError(result);Promise.resolve().then(function(){error_1?callbacks.onError(error_1):result.data&&previousNetworkStatus!==result.networkStatus&&result.networkStatus===NetworkStatus.ready&&callbacks.onCompleted(result.data)}).catch(function(error){globalThis.__DEV__!==!1&&invariantWrappers_invariant.warn(error)})}}function getCurrentResult(resultData,observable,callbacks,partialRefetch,client){return resultData.current||setResult(observable.getCurrentResult(),resultData,observable,client,partialRefetch,function(){},callbacks),resultData.current}function getDefaultFetchPolicy(queryHookDefaultOptions,clientDefaultOptions){var _a2;return queryHookDefaultOptions?.fetchPolicy||((_a2=clientDefaultOptions?.watchQuery)===null||_a2===void 0?void 0:_a2.fetchPolicy)||"cache-first"}function toApolloError(result){return isNonEmptyArray(result.errors)?new ApolloError({graphQLErrors:result.errors}):result.error}function toQueryResult(result,previousData,observable,client){var data=result.data,partial=result.partial,resultWithoutPartial=__rest(result,["data","partial"]),queryResult=tslib_es6_assign(tslib_es6_assign({data},resultWithoutPartial),{client,observable,variables:observable.variables,called:result!==ssrDisabledResult&&result!==skipStandbyResult,previousData});return queryResult}function unsafeHandlePartialRefetch(result,observable,partialRefetch){return result.partial&&partialRefetch&&!result.loading&&(!result.data||Object.keys(result.data).length===0)&&observable.options.fetchPolicy!=="cache-only"?(observable.refetch(),tslib_es6_assign(tslib_es6_assign({},result),{loading:!0,networkStatus:NetworkStatus.refetch})):result}var ssrDisabledResult=maybeDeepFreeze({loading:!0,data:void 0,error:void 0,networkStatus:NetworkStatus.loading}),skipStandbyResult=maybeDeepFreeze({loading:!1,data:void 0,error:void 0,networkStatus:NetworkStatus.ready});function bindObservableMethods(observable){return{refetch:observable.refetch.bind(observable),reobserve:observable.reobserve.bind(observable),fetchMore:observable.fetchMore.bind(observable),updateQuery:observable.updateQuery.bind(observable),startPolling:observable.startPolling.bind(observable),stopPolling:observable.stopPolling.bind(observable),subscribeToMore:observable.subscribeToMore.bind(observable)}}var useIsomorphicLayoutEffect=canUseDOM?rehackt.useLayoutEffect:rehackt.useEffect,EAGER_METHODS=["refetch","reobserve","fetchMore","updateQuery","startPolling","stopPolling","subscribeToMore"];function useLazyQuery(query,options){var _a2,execOptionsRef=rehackt.useRef(),optionsRef=rehackt.useRef(),queryRef=rehackt.useRef(),merged=mergeOptions(options,execOptionsRef.current||{}),document2=(_a2=merged?.query)!==null&&_a2!==void 0?_a2:query;optionsRef.current=options,queryRef.current=document2;var queryHookOptions=tslib_es6_assign(tslib_es6_assign({},merged),{skip:!execOptionsRef.current}),_b=useQueryInternals(document2,queryHookOptions),obsQueryFields=_b.obsQueryFields,useQueryResult=_b.result,client=_b.client,resultData=_b.resultData,observable=_b.observable,onQueryExecuted=_b.onQueryExecuted,initialFetchPolicy=observable.options.initialFetchPolicy||getDefaultFetchPolicy(queryHookOptions.defaultOptions,client.defaultOptions),forceUpdateState=rehackt.useReducer(function(tick){return tick+1},0)[1],eagerMethods=rehackt.useMemo(function(){for(var eagerMethods2={},_loop_1=function(key2){var method=obsQueryFields[key2];eagerMethods2[key2]=function(){return execOptionsRef.current||(execOptionsRef.current=Object.create(null),forceUpdateState()),method.apply(this,arguments)}},_i=0,EAGER_METHODS_1=EAGER_METHODS;_i<EAGER_METHODS_1.length;_i++){var key=EAGER_METHODS_1[_i];_loop_1(key)}return eagerMethods2},[forceUpdateState,obsQueryFields]),called=!!execOptionsRef.current,result=rehackt.useMemo(function(){return tslib_es6_assign(tslib_es6_assign(tslib_es6_assign({},useQueryResult),eagerMethods),{called})},[useQueryResult,eagerMethods,called]),execute2=rehackt.useCallback(function(executeOptions){execOptionsRef.current=executeOptions?tslib_es6_assign(tslib_es6_assign({},executeOptions),{fetchPolicy:executeOptions.fetchPolicy||initialFetchPolicy}):{fetchPolicy:initialFetchPolicy};var options2=mergeOptions(optionsRef.current,tslib_es6_assign({query:queryRef.current},execOptionsRef.current)),promise=executeQuery(resultData,observable,client,document2,tslib_es6_assign(tslib_es6_assign({},options2),{skip:!1}),onQueryExecuted).then(function(queryResult){return Object.assign(queryResult,eagerMethods)});return promise.catch(function(){}),promise},[client,document2,eagerMethods,initialFetchPolicy,observable,resultData,onQueryExecuted]),executeRef=rehackt.useRef(execute2);useIsomorphicLayoutEffect(function(){executeRef.current=execute2});var stableExecute=rehackt.useCallback(function(){for(var args=[],_i=0;_i<arguments.length;_i++)args[_i]=arguments[_i];return executeRef.current.apply(executeRef,args)},[]);return[stableExecute,result]}function executeQuery(resultData,observable,client,currentQuery,options,onQueryExecuted){var query=options.query||currentQuery,watchQueryOptions=createMakeWatchQueryOptions(client,query,options,!1)(observable),concast=observable.reobserveAsConcast(getObsQueryOptions(observable,client,options,watchQueryOptions));return onQueryExecuted(watchQueryOptions),new Promise(function(resolve){var result;concast.subscribe({next:function(value){result=value},error:function(){resolve(toQueryResult(observable.getCurrentResult(),resultData.previousData,observable,client))},complete:function(){resolve(toQueryResult(result,resultData.previousData,observable,client))}})})}function useMutation(mutation,options){var client=useApolloClient(options?.client);verifyDocumentType(mutation,DocumentType.Mutation);var _a2=rehackt.useState({called:!1,loading:!1,client}),result=_a2[0],setResult2=_a2[1],ref=rehackt.useRef({result,mutationId:0,isMounted:!0,client,mutation,options});useIsomorphicLayoutEffect(function(){Object.assign(ref.current,{client,options,mutation})});var execute2=rehackt.useCallback(function(executeOptions){executeOptions===void 0&&(executeOptions={});var _a3=ref.current,options2=_a3.options,mutation2=_a3.mutation,baseOptions=tslib_es6_assign(tslib_es6_assign({},options2),{mutation:mutation2}),client2=executeOptions.client||ref.current.client;!ref.current.result.loading&&!baseOptions.ignoreResults&&ref.current.isMounted&&setResult2(ref.current.result={loading:!0,error:void 0,data:void 0,called:!0,client:client2});var mutationId=++ref.current.mutationId,clientOptions=mergeOptions(baseOptions,executeOptions);return client2.mutate(clientOptions).then(function(response){var _a4,_b,data=response.data,errors=response.errors,error=errors&&errors.length>0?new ApolloError({graphQLErrors:errors}):void 0,onError=executeOptions.onError||((_a4=ref.current.options)===null||_a4===void 0?void 0:_a4.onError);if(error&&onError&&onError(error,clientOptions),mutationId===ref.current.mutationId&&!clientOptions.ignoreResults){var result_1={called:!0,loading:!1,data,error,client:client2};ref.current.isMounted&&!equal(ref.current.result,result_1)&&setResult2(ref.current.result=result_1)}var onCompleted=executeOptions.onCompleted||((_b=ref.current.options)===null||_b===void 0?void 0:_b.onCompleted);return error||onCompleted?.(response.data,clientOptions),response}).catch(function(error){var _a4;if(mutationId===ref.current.mutationId&&ref.current.isMounted){var result_2={loading:!1,error,data:void 0,called:!0,client:client2};equal(ref.current.result,result_2)||setResult2(ref.current.result=result_2)}var onError=executeOptions.onError||((_a4=ref.current.options)===null||_a4===void 0?void 0:_a4.onError);if(onError)return onError(error,clientOptions),{data:void 0,errors:error};throw error})},[]),reset=rehackt.useCallback(function(){if(ref.current.isMounted){var result_3={called:!1,loading:!1,client:ref.current.client};Object.assign(ref.current,{mutationId:0,result:result_3}),setResult2(result_3)}},[]);return rehackt.useEffect(function(){var current=ref.current;return current.isMounted=!0,function(){current.isMounted=!1}},[]),[execute2,tslib_es6_assign({reset},result)]}function useDeepMemo(memoFn,deps){var ref=rehackt.useRef();return(!ref.current||!equal(ref.current.deps,deps))&&(ref.current={value:memoFn(),deps}),ref.current.value}function useSubscription(subscription,options){options===void 0&&(options=Object.create(null));var hasIssuedDeprecationWarningRef=rehackt.useRef(!1),client=useApolloClient(options.client);verifyDocumentType(subscription,DocumentType.Subscription),hasIssuedDeprecationWarningRef.current||(hasIssuedDeprecationWarningRef.current=!0,options.onSubscriptionData&&globalThis.__DEV__!==!1&&invariantWrappers_invariant.warn(options.onData?53:54),options.onSubscriptionComplete&&globalThis.__DEV__!==!1&&invariantWrappers_invariant.warn(options.onComplete?55:56));var skip=options.skip,fetchPolicy=options.fetchPolicy,errorPolicy=options.errorPolicy,shouldResubscribe=options.shouldResubscribe,context=options.context,extensions=options.extensions,ignoreResults=options.ignoreResults,variables=useDeepMemo(function(){return options.variables},[options.variables]),recreate=function(){return createSubscription(client,subscription,variables,fetchPolicy,errorPolicy,context,extensions)},_a2=rehackt.useState(options.skip?null:recreate),observable=_a2[0],setObservable=_a2[1],recreateRef=rehackt.useRef(recreate);useIsomorphicLayoutEffect(function(){recreateRef.current=recreate}),skip?observable&&setObservable(observable=null):(!observable||(client!==observable.__.client||subscription!==observable.__.query||fetchPolicy!==observable.__.fetchPolicy||errorPolicy!==observable.__.errorPolicy||!equal(variables,observable.__.variables))&&(typeof shouldResubscribe=="function"?!!shouldResubscribe(options):shouldResubscribe)!==!1)&&setObservable(observable=recreate());var optionsRef=rehackt.useRef(options);rehackt.useEffect(function(){optionsRef.current=options});var fallbackLoading=!skip&&!ignoreResults,fallbackResult=rehackt.useMemo(function(){return{loading:fallbackLoading,error:void 0,data:void 0,variables}},[fallbackLoading,variables]),ignoreResultsRef=rehackt.useRef(ignoreResults);useIsomorphicLayoutEffect(function(){ignoreResultsRef.current=ignoreResults});var ret=useSyncExternalStore(rehackt.useCallback(function(update){if(!observable)return function(){};var subscriptionStopped=!1,variables2=observable.__.variables,client2=observable.__.client,subscription2=observable.subscribe({next:function(fetchResult){var _a3,_b;if(!subscriptionStopped){var result={loading:!1,data:fetchResult.data,error:toApolloError(fetchResult),variables:variables2};observable.__.setResult(result),ignoreResultsRef.current||update(),result.error?(_b=(_a3=optionsRef.current).onError)===null||_b===void 0||_b.call(_a3,result.error):optionsRef.current.onData?optionsRef.current.onData({client:client2,data:result}):optionsRef.current.onSubscriptionData&&optionsRef.current.onSubscriptionData({client:client2,subscriptionData:result})}},error:function(error){var _a3,_b;error=error instanceof ApolloError?error:new ApolloError({protocolErrors:[error]}),subscriptionStopped||(observable.__.setResult({loading:!1,data:void 0,error,variables:variables2}),ignoreResultsRef.current||update(),(_b=(_a3=optionsRef.current).onError)===null||_b===void 0||_b.call(_a3,error))},complete:function(){subscriptionStopped||(optionsRef.current.onComplete?optionsRef.current.onComplete():optionsRef.current.onSubscriptionComplete&&optionsRef.current.onSubscriptionComplete())}});return function(){subscriptionStopped=!0,setTimeout(function(){subscription2.unsubscribe()})}},[observable]),function(){return observable&&!skip&&!ignoreResults?observable.__.result:fallbackResult},function(){return fallbackResult}),restart=rehackt.useCallback(function(){invariantWrappers_invariant(!optionsRef.current.skip,57),setObservable(recreateRef.current())},[optionsRef,recreateRef]);return rehackt.useMemo(function(){return tslib_es6_assign(tslib_es6_assign({},ret),{restart})},[ret,restart])}function createSubscription(client,query,variables,fetchPolicy,errorPolicy,context,extensions){var options={query,variables,fetchPolicy,errorPolicy,context,extensions},__=tslib_es6_assign(tslib_es6_assign({},options),{client,result:{loading:!0,data:void 0,error:void 0,variables},setResult:function(result){__.result=result}}),observable=null;return Object.assign(new Observable(function(observer){observable||(observable=client.subscribe(options));var sub=observable.subscribe(observer);return function(){return sub.unsubscribe()}}),{__})}function useReactiveVar(rv){return useSyncExternalStore(rehackt.useCallback(function(update){return rv.onNextChange(function onNext(){update(),rv.onNextChange(onNext)})},[rv]),rv,rv)}function useFragment(options){return wrapHook("useFragment",_useFragment,useApolloClient(options.client))(options)}function _useFragment(options){var cache2=useApolloClient(options.client).cache,from2=options.from,rest=__rest(options,["from"]),id=rehackt.useMemo(function(){return typeof from2=="string"?from2:cache2.identify(from2)},[cache2,from2]),stableOptions=useDeepMemo(function(){return tslib_es6_assign(tslib_es6_assign({},rest),{from:id})},[rest,id]),diff=rehackt.useMemo(function(){var fragment=stableOptions.fragment,fragmentName=stableOptions.fragmentName,from3=stableOptions.from,_a2=stableOptions.optimistic,optimistic=_a2===void 0?!0:_a2;return{result:diffToResult(cache2.diff(tslib_es6_assign(tslib_es6_assign({},stableOptions),{returnPartialData:!0,id:from3,query:cache2.getFragmentDoc(fragment,fragmentName),optimistic})))}},[stableOptions,cache2]),getSnapshot=rehackt.useCallback(function(){return diff.result},[diff]);return useSyncExternalStore(rehackt.useCallback(function(forceUpdate){var lastTimeout=0,subscription=cache2.watchFragment(stableOptions).subscribe({next:function(result){lib(result,diff.result)||(diff.result=result,clearTimeout(lastTimeout),lastTimeout=setTimeout(forceUpdate))}});return function(){subscription.unsubscribe(),clearTimeout(lastTimeout)}},[cache2,stableOptions,diff]),getSnapshot,getSnapshot)}function diffToResult(diff){var result={data:diff.result,complete:!!diff.complete};return diff.missing&&(result.missing=mergeDeepArray(diff.missing.map(function(error){return error.missing}))),result}function createFulfilledPromise(value){var promise=Promise.resolve(value);return promise.status="fulfilled",promise.value=value,promise}function createRejectedPromise(reason){var promise=Promise.reject(reason);return promise.catch(function(){}),promise.status="rejected",promise.reason=reason,promise}function isStatefulPromise(promise){return"status"in promise}function wrapPromiseWithState(promise){if(isStatefulPromise(promise))return promise;var pendingPromise=promise;return pendingPromise.status="pending",pendingPromise.then(function(value){if(pendingPromise.status==="pending"){var fulfilledPromise=pendingPromise;fulfilledPromise.status="fulfilled",fulfilledPromise.value=value}},function(reason){if(pendingPromise.status==="pending"){var rejectedPromise=pendingPromise;rejectedPromise.status="rejected",rejectedPromise.reason=reason}}),promise}var useKey="use",_use_realHook=rehackt_namespaceObject[useKey],__use=_use_realHook||function(promise){var statefulPromise=wrapPromiseWithState(promise);switch(statefulPromise.status){case"pending":throw statefulPromise;case"rejected":throw statefulPromise.reason;case"fulfilled":return statefulPromise.value}},QUERY_REFERENCE_SYMBOL=Symbol(),PROMISE_SYMBOL=Symbol();function wrapQueryRef(internalQueryRef){var _a2,ref=(_a2={toPromise:function(){return getWrappedPromise(ref).then(function(){return ref})}},_a2[QUERY_REFERENCE_SYMBOL]=internalQueryRef,_a2[PROMISE_SYMBOL]=internalQueryRef.promise,_a2);return ref}function assertWrappedQueryRef(queryRef){invariantWrappers_invariant(!queryRef||QUERY_REFERENCE_SYMBOL in queryRef,61)}function getWrappedPromise(queryRef){var internalQueryRef=unwrapQueryRef(queryRef);return internalQueryRef.promise.status==="fulfilled"?internalQueryRef.promise:queryRef[PROMISE_SYMBOL]}function unwrapQueryRef(queryRef){return queryRef[QUERY_REFERENCE_SYMBOL]}function updateWrappedQueryRef(queryRef,promise){queryRef[PROMISE_SYMBOL]=promise}var OBSERVED_CHANGED_OPTIONS=["canonizeResults","context","errorPolicy","fetchPolicy","refetchWritePolicy","returnPartialData"],InternalQueryReference=function(){function InternalQueryReference2(observable,options){var _this=this;this.key={},this.listeners=new Set,this.references=0,this.softReferences=0,this.handleNext=this.handleNext.bind(this),this.handleError=this.handleError.bind(this),this.dispose=this.dispose.bind(this),this.observable=observable,options.onDispose&&(this.onDispose=options.onDispose),this.setResult(),this.subscribeToQuery();var startDisposeTimer=function(){var _a2;_this.references||(_this.autoDisposeTimeoutId=setTimeout(_this.dispose,(_a2=options.autoDisposeTimeoutMs)!==null&&_a2!==void 0?_a2:3e4))};this.promise.then(startDisposeTimer,startDisposeTimer)}return Object.defineProperty(InternalQueryReference2.prototype,"disposed",{get:function(){return this.subscription.closed},enumerable:!1,configurable:!0}),Object.defineProperty(InternalQueryReference2.prototype,"watchQueryOptions",{get:function(){return this.observable.options},enumerable:!1,configurable:!0}),InternalQueryReference2.prototype.reinitialize=function(){var observable=this.observable,originalFetchPolicy=this.watchQueryOptions.fetchPolicy,avoidNetworkRequests=originalFetchPolicy==="no-cache"||originalFetchPolicy==="standby";try{if(avoidNetworkRequests?observable.silentSetOptions({fetchPolicy:"standby"}):(observable.resetLastResults(),observable.silentSetOptions({fetchPolicy:"cache-first"})),this.subscribeToQuery(),avoidNetworkRequests)return;observable.resetDiff(),this.setResult()}finally{observable.silentSetOptions({fetchPolicy:originalFetchPolicy})}},InternalQueryReference2.prototype.retain=function(){var _this=this;this.references++,clearTimeout(this.autoDisposeTimeoutId);var disposed=!1;return function(){disposed||(disposed=!0,_this.references--,setTimeout(function(){_this.references||_this.dispose()}))}},InternalQueryReference2.prototype.softRetain=function(){var _this=this;this.softReferences++;var disposed=!1;return function(){disposed||(disposed=!0,_this.softReferences--,setTimeout(function(){!_this.softReferences&&!_this.references&&_this.dispose()}))}},InternalQueryReference2.prototype.didChangeOptions=function(watchQueryOptions){var _this=this;return OBSERVED_CHANGED_OPTIONS.some(function(option){return option in watchQueryOptions&&!equal(_this.watchQueryOptions[option],watchQueryOptions[option])})},InternalQueryReference2.prototype.applyOptions=function(watchQueryOptions){var _a2=this.watchQueryOptions,currentFetchPolicy=_a2.fetchPolicy,currentCanonizeResults=_a2.canonizeResults;return currentFetchPolicy==="standby"&&currentFetchPolicy!==watchQueryOptions.fetchPolicy?this.initiateFetch(this.observable.reobserve(watchQueryOptions)):(this.observable.silentSetOptions(watchQueryOptions),currentCanonizeResults!==watchQueryOptions.canonizeResults&&(this.result=tslib_es6_assign(tslib_es6_assign({},this.result),this.observable.getCurrentResult()),this.promise=createFulfilledPromise(this.result))),this.promise},InternalQueryReference2.prototype.listen=function(listener){var _this=this;return this.listeners.add(listener),function(){_this.listeners.delete(listener)}},InternalQueryReference2.prototype.refetch=function(variables){return this.initiateFetch(this.observable.refetch(variables))},InternalQueryReference2.prototype.fetchMore=function(options){return this.initiateFetch(this.observable.fetchMore(options))},InternalQueryReference2.prototype.dispose=function(){this.subscription.unsubscribe(),this.onDispose()},InternalQueryReference2.prototype.onDispose=function(){},InternalQueryReference2.prototype.handleNext=function(result){var _a2;switch(this.promise.status){case"pending":{result.data===void 0&&(result.data=this.result.data),this.result=result,(_a2=this.resolve)===null||_a2===void 0||_a2.call(this,result);break}default:{if(result.data===this.result.data&&result.networkStatus===this.result.networkStatus)return;result.data===void 0&&(result.data=this.result.data),this.result=result,this.promise=createFulfilledPromise(result),this.deliver(this.promise);break}}},InternalQueryReference2.prototype.handleError=function(error){var _a2;switch(this.subscription.unsubscribe(),this.subscription=this.observable.resubscribeAfterError(this.handleNext,this.handleError),this.promise.status){case"pending":{(_a2=this.reject)===null||_a2===void 0||_a2.call(this,error);break}default:this.promise=createRejectedPromise(error),this.deliver(this.promise)}},InternalQueryReference2.prototype.deliver=function(promise){this.listeners.forEach(function(listener){return listener(promise)})},InternalQueryReference2.prototype.initiateFetch=function(returnedPromise){var _this=this;return this.promise=this.createPendingPromise(),this.promise.catch(function(){}),returnedPromise.then(function(){setTimeout(function(){var _a2;_this.promise.status==="pending"&&(_this.result=_this.observable.getCurrentResult(),(_a2=_this.resolve)===null||_a2===void 0||_a2.call(_this,_this.result))})}).catch(function(){}),returnedPromise},InternalQueryReference2.prototype.subscribeToQuery=function(){var _this=this;this.subscription=this.observable.filter(function(result){return!equal(result.data,{})&&!equal(result,_this.result)}).subscribe(this.handleNext,this.handleError)},InternalQueryReference2.prototype.setResult=function(){var result=this.observable.getCurrentResult(!1);equal(result,this.result)||(this.result=result,this.promise=result.data&&(!result.partial||this.watchQueryOptions.returnPartialData)?createFulfilledPromise(result):this.createPendingPromise())},InternalQueryReference2.prototype.createPendingPromise=function(){var _this=this;return wrapPromiseWithState(new Promise(function(resolve,reject){_this.resolve=resolve,_this.reject=reject}))},InternalQueryReference2}(),SuspenseCache=function(){function SuspenseCache2(options){options===void 0&&(options=Object.create(null)),this.queryRefs=new Trie(canUseWeakMap),this.options=options}return SuspenseCache2.prototype.getQueryRef=function(cacheKey,createObservable){var ref=this.queryRefs.lookupArray(cacheKey);return ref.current||(ref.current=new InternalQueryReference(createObservable(),{autoDisposeTimeoutMs:this.options.autoDisposeTimeoutMs,onDispose:function(){delete ref.current}})),ref.current},SuspenseCache2.prototype.add=function(cacheKey,queryRef){var ref=this.queryRefs.lookupArray(cacheKey);ref.current=queryRef},SuspenseCache2}(),suspenseCacheSymbol=Symbol.for("apollo.suspenseCache");function getSuspenseCache(client){var _a2;return client[suspenseCacheSymbol]||(client[suspenseCacheSymbol]=new SuspenseCache((_a2=client.defaultOptions.react)===null||_a2===void 0?void 0:_a2.suspense)),client[suspenseCacheSymbol]}var skipToken=Symbol.for("apollo.skipToken");function useSuspenseQuery(query,options){return options===void 0&&(options=Object.create(null)),wrapHook("useSuspenseQuery",_useSuspenseQuery,useApolloClient(typeof options=="object"?options.client:void 0))(query,options)}function _useSuspenseQuery(query,options){var client=useApolloClient(options.client),suspenseCache=getSuspenseCache(client),watchQueryOptions=useWatchQueryOptions({client,query,options}),fetchPolicy=watchQueryOptions.fetchPolicy,variables=watchQueryOptions.variables,_a2=options.queryKey,queryKey=_a2===void 0?[]:_a2,cacheKey=__spreadArray([query,canonicalStringify(variables)],[].concat(queryKey),!0),queryRef=suspenseCache.getQueryRef(cacheKey,function(){return client.watchQuery(watchQueryOptions)}),_b=rehackt.useState([queryRef.key,queryRef.promise]),current=_b[0],setPromise=_b[1];current[0]!==queryRef.key&&(current[0]=queryRef.key,current[1]=queryRef.promise);var promise=current[1];queryRef.didChangeOptions(watchQueryOptions)&&(current[1]=promise=queryRef.applyOptions(watchQueryOptions)),rehackt.useEffect(function(){var dispose=queryRef.retain(),removeListener=queryRef.listen(function(promise2){setPromise([queryRef.key,promise2])});return function(){removeListener(),dispose()}},[queryRef]);var skipResult=rehackt.useMemo(function(){var error=useSuspenseQuery_toApolloError(queryRef.result);return{loading:!1,data:queryRef.result.data,networkStatus:error?NetworkStatus.error:NetworkStatus.ready,error}},[queryRef.result]),result=fetchPolicy==="standby"?skipResult:__use(promise),fetchMore=rehackt.useCallback(function(options2){var promise2=queryRef.fetchMore(options2);return setPromise([queryRef.key,queryRef.promise]),promise2},[queryRef]),refetch=rehackt.useCallback(function(variables2){var promise2=queryRef.refetch(variables2);return setPromise([queryRef.key,queryRef.promise]),promise2},[queryRef]),subscribeToMore=queryRef.observable.subscribeToMore;return rehackt.useMemo(function(){return{client,data:result.data,error:useSuspenseQuery_toApolloError(result),networkStatus:result.networkStatus,fetchMore,refetch,subscribeToMore}},[client,fetchMore,refetch,result,subscribeToMore])}function validateOptions(options){var query=options.query,fetchPolicy=options.fetchPolicy,returnPartialData=options.returnPartialData;verifyDocumentType(query,DocumentType.Query),validateFetchPolicy(fetchPolicy),validatePartialDataReturn(fetchPolicy,returnPartialData)}function validateFetchPolicy(fetchPolicy){fetchPolicy===void 0&&(fetchPolicy="cache-first");var supportedFetchPolicies=["cache-first","network-only","no-cache","cache-and-network"];invariantWrappers_invariant(supportedFetchPolicies.includes(fetchPolicy),58,fetchPolicy)}function validatePartialDataReturn(fetchPolicy,returnPartialData){fetchPolicy==="no-cache"&&returnPartialData&&globalThis.__DEV__!==!1&&invariantWrappers_invariant.warn(59)}function useSuspenseQuery_toApolloError(result){return isNonEmptyArray(result.errors)?new ApolloError({graphQLErrors:result.errors}):result.error}function useWatchQueryOptions(_a2){var client=_a2.client,query=_a2.query,options=_a2.options;return useDeepMemo(function(){var _a3;if(options===skipToken)return{query,fetchPolicy:"standby"};var fetchPolicy=options.fetchPolicy||((_a3=client.defaultOptions.watchQuery)===null||_a3===void 0?void 0:_a3.fetchPolicy)||"cache-first",watchQueryOptions=tslib_es6_assign(tslib_es6_assign({},options),{fetchPolicy,query,notifyOnNetworkStatusChange:!1,nextFetchPolicy:void 0});return globalThis.__DEV__!==!1&&validateOptions(watchQueryOptions),options.skip&&(watchQueryOptions.fetchPolicy="standby"),watchQueryOptions},[client,options,query])}function useBackgroundQuery(query,options){return options===void 0&&(options=Object.create(null)),wrapHook("useBackgroundQuery",_useBackgroundQuery,useApolloClient(typeof options=="object"?options.client:void 0))(query,options)}function _useBackgroundQuery(query,options){var client=useApolloClient(options.client),suspenseCache=getSuspenseCache(client),watchQueryOptions=useWatchQueryOptions({client,query,options}),fetchPolicy=watchQueryOptions.fetchPolicy,variables=watchQueryOptions.variables,_a2=options.queryKey,queryKey=_a2===void 0?[]:_a2,didFetchResult=rehackt.useRef(fetchPolicy!=="standby");didFetchResult.current||(didFetchResult.current=fetchPolicy!=="standby");var cacheKey=__spreadArray([query,canonicalStringify(variables)],[].concat(queryKey),!0),queryRef=suspenseCache.getQueryRef(cacheKey,function(){return client.watchQuery(watchQueryOptions)}),_b=rehackt.useState(wrapQueryRef(queryRef)),wrappedQueryRef=_b[0],setWrappedQueryRef=_b[1];if(unwrapQueryRef(wrappedQueryRef)!==queryRef&&setWrappedQueryRef(wrapQueryRef(queryRef)),queryRef.didChangeOptions(watchQueryOptions)){var promise=queryRef.applyOptions(watchQueryOptions);updateWrappedQueryRef(wrappedQueryRef,promise)}rehackt.useEffect(function(){var id=setTimeout(function(){queryRef.disposed&&suspenseCache.add(cacheKey,queryRef)});return function(){return clearTimeout(id)}});var fetchMore=rehackt.useCallback(function(options2){var promise2=queryRef.fetchMore(options2);return setWrappedQueryRef(wrapQueryRef(queryRef)),promise2},[queryRef]),refetch=rehackt.useCallback(function(variables2){var promise2=queryRef.refetch(variables2);return setWrappedQueryRef(wrapQueryRef(queryRef)),promise2},[queryRef]);return rehackt.useEffect(function(){return queryRef.softRetain()},[queryRef]),[didFetchResult.current?wrappedQueryRef:void 0,{fetchMore,refetch,subscribeToMore:queryRef.observable.subscribeToMore}]}var Ctx;function useRenderGuard_noop(){}function useRenderGuard(){return Ctx||(Ctx=rehackt.createContext(null)),rehackt.useCallback(function(){var orig=console.error;try{return console.error=useRenderGuard_noop,rehackt.useContext(Ctx),!0}catch{return!1}finally{console.error=orig}},[])}function useLoadableQuery(query,options){options===void 0&&(options=Object.create(null));var client=useApolloClient(options.client),suspenseCache=getSuspenseCache(client),watchQueryOptions=useWatchQueryOptions({client,query,options}),_a2=options.queryKey,queryKey=_a2===void 0?[]:_a2,_b=rehackt.useState(null),queryRef=_b[0],setQueryRef=_b[1];assertWrappedQueryRef(queryRef);var internalQueryRef=queryRef&&unwrapQueryRef(queryRef);if(queryRef&&internalQueryRef?.didChangeOptions(watchQueryOptions)){var promise=internalQueryRef.applyOptions(watchQueryOptions);updateWrappedQueryRef(queryRef,promise)}var calledDuringRender=useRenderGuard(),fetchMore=rehackt.useCallback(function(options2){if(!internalQueryRef)throw new Error("The query has not been loaded. Please load the query.");var promise2=internalQueryRef.fetchMore(options2);return setQueryRef(wrapQueryRef(internalQueryRef)),promise2},[internalQueryRef]),refetch=rehackt.useCallback(function(options2){if(!internalQueryRef)throw new Error("The query has not been loaded. Please load the query.");var promise2=internalQueryRef.refetch(options2);return setQueryRef(wrapQueryRef(internalQueryRef)),promise2},[internalQueryRef]),loadQuery=rehackt.useCallback(function(){for(var args=[],_i=0;_i<arguments.length;_i++)args[_i]=arguments[_i];invariantWrappers_invariant(!calledDuringRender(),51);var variables=args[0],cacheKey=__spreadArray([query,canonicalStringify(variables)],[].concat(queryKey),!0),queryRef2=suspenseCache.getQueryRef(cacheKey,function(){return client.watchQuery(tslib_es6_assign(tslib_es6_assign({},watchQueryOptions),{variables}))});setQueryRef(wrapQueryRef(queryRef2))},[query,queryKey,suspenseCache,watchQueryOptions,calledDuringRender,client]),subscribeToMore=rehackt.useCallback(function(options2){return invariantWrappers_invariant(internalQueryRef,52),internalQueryRef.observable.subscribeToMore(options2)},[internalQueryRef]),reset=rehackt.useCallback(function(){setQueryRef(null)},[]);return[loadQuery,queryRef,{fetchMore,refetch,reset,subscribeToMore}]}function useQueryRefHandlers(queryRef){var unwrapped=unwrapQueryRef(queryRef);return wrapHook("useQueryRefHandlers",_useQueryRefHandlers,unwrapped?unwrapped.observable:useApolloClient())(queryRef)}function _useQueryRefHandlers(queryRef){assertWrappedQueryRef(queryRef);var _a2=rehackt.useState(queryRef),previousQueryRef=_a2[0],setPreviousQueryRef=_a2[1],_b=rehackt.useState(queryRef),wrappedQueryRef=_b[0],setWrappedQueryRef=_b[1],internalQueryRef=unwrapQueryRef(queryRef);previousQueryRef!==queryRef?(setPreviousQueryRef(queryRef),setWrappedQueryRef(queryRef)):updateWrappedQueryRef(queryRef,getWrappedPromise(wrappedQueryRef));var refetch=rehackt.useCallback(function(variables){var promise=internalQueryRef.refetch(variables);return setWrappedQueryRef(wrapQueryRef(internalQueryRef)),promise},[internalQueryRef]),fetchMore=rehackt.useCallback(function(options){var promise=internalQueryRef.fetchMore(options);return setWrappedQueryRef(wrapQueryRef(internalQueryRef)),promise},[internalQueryRef]);return{refetch,fetchMore,subscribeToMore:internalQueryRef.observable.subscribeToMore}}function useReadQuery(queryRef){var unwrapped=unwrapQueryRef(queryRef);return wrapHook("useReadQuery",_useReadQuery,unwrapped?unwrapped.observable:useApolloClient())(queryRef)}function _useReadQuery(queryRef){assertWrappedQueryRef(queryRef);var internalQueryRef=rehackt.useMemo(function(){return unwrapQueryRef(queryRef)},[queryRef]),getPromise=rehackt.useCallback(function(){return getWrappedPromise(queryRef)},[queryRef]);internalQueryRef.disposed&&(internalQueryRef.reinitialize(),updateWrappedQueryRef(queryRef,internalQueryRef.promise)),rehackt.useEffect(function(){return internalQueryRef.retain()},[internalQueryRef]);var promise=useSyncExternalStore(rehackt.useCallback(function(forceUpdate){return internalQueryRef.listen(function(promise2){updateWrappedQueryRef(queryRef,promise2),forceUpdate()})},[internalQueryRef,queryRef]),getPromise,getPromise),result=__use(promise);return rehackt.useMemo(function(){return{data:result.data,networkStatus:result.networkStatus,error:useSuspenseQuery_toApolloError(result)}},[result])}function createQueryPreloader(client){return wrapHook("createQueryPreloader",_createQueryPreloader,client)(client)}var _createQueryPreloader=function(client){return function(query,options){var _a2,_b;options===void 0&&(options=Object.create(null));var queryRef=new InternalQueryReference(client.watchQuery(tslib_es6_assign(tslib_es6_assign({},options),{query})),{autoDisposeTimeoutMs:(_b=(_a2=client.defaultOptions.react)===null||_a2===void 0?void 0:_a2.suspense)===null||_b===void 0?void 0:_b.autoDisposeTimeoutMs});return wrapQueryRef(queryRef)}}},97605:(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{Z:()=>_extends});function _extends(){return _extends=Object.assign?Object.assign.bind():function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source)Object.prototype.hasOwnProperty.call(source,key)&&(target[key]=source[key])}return target},_extends.apply(this,arguments)}},76004:(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{Z:()=>_objectSpread});function _typeof(o){return _typeof=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(o2){return typeof o2}:function(o2){return o2&&typeof Symbol=="function"&&o2.constructor===Symbol&&o2!==Symbol.prototype?"symbol":typeof o2},_typeof(o)}function _toPrimitive(input,hint){if(_typeof(input)!=="object"||input===null)return input;var prim=input[Symbol.toPrimitive];if(prim!==void 0){var res=prim.call(input,hint||"default");if(_typeof(res)!=="object")return res;throw new TypeError("@@toPrimitive must return a primitive value.")}return(hint==="string"?String:Number)(input)}function _toPropertyKey(arg){var key=_toPrimitive(arg,"string");return _typeof(key)==="symbol"?key:String(key)}function _defineProperty(obj,key,value){return key=_toPropertyKey(key),key in obj?Object.defineProperty(obj,key,{value,enumerable:!0,configurable:!0,writable:!0}):obj[key]=value,obj}function _objectSpread(target){for(var i=1;i<arguments.length;i++){var source=arguments[i]!=null?Object(arguments[i]):{},ownKeys=Object.keys(source);typeof Object.getOwnPropertySymbols=="function"&&ownKeys.push.apply(ownKeys,Object.getOwnPropertySymbols(source).filter(function(sym){return Object.getOwnPropertyDescriptor(source,sym).enumerable})),ownKeys.forEach(function(key){_defineProperty(target,key,source[key])})}return target}},2141:(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{Z:()=>_objectWithoutProperties});function _objectWithoutPropertiesLoose(source,excluded){if(source==null)return{};var target={},sourceKeys=Object.keys(source),key,i;for(i=0;i<sourceKeys.length;i++)key=sourceKeys[i],!(excluded.indexOf(key)>=0)&&(target[key]=source[key]);return target}function _objectWithoutProperties(source,excluded){if(source==null)return{};var target=_objectWithoutPropertiesLoose(source,excluded),key,i;if(Object.getOwnPropertySymbols){var sourceSymbolKeys=Object.getOwnPropertySymbols(source);for(i=0;i<sourceSymbolKeys.length;i++)key=sourceSymbolKeys[i],!(excluded.indexOf(key)>=0)&&(!Object.prototype.propertyIsEnumerable.call(source,key)||(target[key]=source[key]))}return target}},38008:(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__)=>{"use strict";var _home_circleci_bit_bit_node_modules_teambit_react_ui_docs_app_dist_index_js__WEBPACK_IMPORTED_MODULE_0___namespace_cache;__webpack_require__.d(__webpack_exports__,{Y:()=>_home_circleci_bit_bit_node_modules_teambit_react_ui_docs_app_dist_index_js__WEBPACK_IMPORTED_MODULE_0___namespace_cache||(_home_circleci_bit_bit_node_modules_teambit_react_ui_docs_app_dist_index_js__WEBPACK_IMPORTED_MODULE_0___namespace_cache=__webpack_require__.t(_home_circleci_bit_bit_node_modules_teambit_react_ui_docs_app_dist_index_js__WEBPACK_IMPORTED_MODULE_0__,2))});var _home_circleci_bit_bit_node_modules_teambit_react_ui_docs_app_dist_index_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(79022)},27102:module=>{"use strict";module.exports=JSON.parse('{"AElig":"\xC6","AMP":"&","Aacute":"\xC1","Acirc":"\xC2","Agrave":"\xC0","Aring":"\xC5","Atilde":"\xC3","Auml":"\xC4","COPY":"\xA9","Ccedil":"\xC7","ETH":"\xD0","Eacute":"\xC9","Ecirc":"\xCA","Egrave":"\xC8","Euml":"\xCB","GT":">","Iacute":"\xCD","Icirc":"\xCE","Igrave":"\xCC","Iuml":"\xCF","LT":"<","Ntilde":"\xD1","Oacute":"\xD3","Ocirc":"\xD4","Ograve":"\xD2","Oslash":"\xD8","Otilde":"\xD5","Ouml":"\xD6","QUOT":"\\"","REG":"\xAE","THORN":"\xDE","Uacute":"\xDA","Ucirc":"\xDB","Ugrave":"\xD9","Uuml":"\xDC","Yacute":"\xDD","aacute":"\xE1","acirc":"\xE2","acute":"\xB4","aelig":"\xE6","agrave":"\xE0","amp":"&","aring":"\xE5","atilde":"\xE3","auml":"\xE4","brvbar":"\xA6","ccedil":"\xE7","cedil":"\xB8","cent":"\xA2","copy":"\xA9","curren":"\xA4","deg":"\xB0","divide":"\xF7","eacute":"\xE9","ecirc":"\xEA","egrave":"\xE8","eth":"\xF0","euml":"\xEB","frac12":"\xBD","frac14":"\xBC","frac34":"\xBE","gt":">","iacute":"\xED","icirc":"\xEE","iexcl":"\xA1","igrave":"\xEC","iquest":"\xBF","iuml":"\xEF","laquo":"\xAB","lt":"<","macr":"\xAF","micro":"\xB5","middot":"\xB7","nbsp":"\xA0","not":"\xAC","ntilde":"\xF1","oacute":"\xF3","ocirc":"\xF4","ograve":"\xF2","ordf":"\xAA","ordm":"\xBA","oslash":"\xF8","otilde":"\xF5","ouml":"\xF6","para":"\xB6","plusmn":"\xB1","pound":"\xA3","quot":"\\"","raquo":"\xBB","reg":"\xAE","sect":"\xA7","shy":"\xAD","sup1":"\xB9","sup2":"\xB2","sup3":"\xB3","szlig":"\xDF","thorn":"\xFE","times":"\xD7","uacute":"\xFA","ucirc":"\xFB","ugrave":"\xF9","uml":"\xA8","uuml":"\xFC","yacute":"\xFD","yen":"\xA5","yuml":"\xFF"}')},71701:module=>{"use strict";module.exports=JSON.parse('{"0":"\uFFFD","128":"\u20AC","130":"\u201A","131":"\u0192","132":"\u201E","133":"\u2026","134":"\u2020","135":"\u2021","136":"\u02C6","137":"\u2030","138":"\u0160","139":"\u2039","140":"\u0152","142":"\u017D","145":"\u2018","146":"\u2019","147":"\u201C","148":"\u201D","149":"\u2022","150":"\u2013","151":"\u2014","152":"\u02DC","153":"\u2122","154":"\u0161","155":"\u203A","156":"\u0153","158":"\u017E","159":"\u0178"}')},20433:module=>{"use strict";module.exports=JSON.parse('{"year":{"previous":"last year","current":"this year","next":"next year","past":{"one":"a year ago","other":"{0} years ago"},"future":{"one":"in a year","other":"in {0} years"}},"quarter":{"previous":"last quarter","current":"this quarter","next":"next quarter","past":{"one":"a quarter ago","other":"{0} quarters ago"},"future":{"one":"in a quarter","other":"in {0} quarters"}},"month":{"previous":"last month","current":"this month","next":"next month","past":{"one":"a month ago","other":"{0} months ago"},"future":{"one":"in a month","other":"in {0} months"}},"week":{"previous":"last week","current":"this week","next":"next week","past":{"one":"a week ago","other":"{0} weeks ago"},"future":{"one":"in a week","other":"in {0} weeks"}},"day":{"previous":"yesterday","current":"today","next":"tomorrow","past":{"one":"a day ago","other":"{0} days ago"},"future":{"one":"in a day","other":"in {0} days"}},"hour":{"current":"this hour","past":{"one":"an hour ago","other":"{0} hours ago"},"future":{"one":"in an hour","other":"in {0} hours"}},"minute":{"current":"this minute","past":{"one":"a minute ago","other":"{0} minutes ago"},"future":{"one":"in a minute","other":"in {0} minutes"}},"second":{"current":"now","past":{"one":"a second ago","other":"{0} seconds ago"},"future":{"one":"in a second","other":"in {0} seconds"}},"now":{"future":"in a moment","past":"just now"}}')},94609:module=>{"use strict";module.exports=JSON.parse('{"year":{"one":"{0} year","other":"{0} years"},"month":{"one":"{0} month","other":"{0} months"},"week":{"one":"{0} week","other":"{0} weeks"},"day":{"one":"{0} day","other":"{0} days"},"hour":{"one":"{0} hour","other":"{0} hours"},"minute":{"one":"{0} minute","other":"{0} minutes"},"second":{"one":"{0} second","other":"{0} seconds"},"now":{"future":"in a moment","past":"just now"}}')},25873:module=>{"use strict";module.exports=JSON.parse('{"year":{"previous":"last yr.","current":"this yr.","next":"next yr.","past":"{0} yr. ago","future":"in {0} yr."},"quarter":{"previous":"last qtr.","current":"this qtr.","next":"next qtr.","past":{"one":"{0} qtr. ago","other":"{0} qtrs. ago"},"future":{"one":"in {0} qtr.","other":"in {0} qtrs."}},"month":{"previous":"last mo.","current":"this mo.","next":"next mo.","past":"{0} mo. ago","future":"in {0} mo."},"week":{"previous":"last wk.","current":"this wk.","next":"next wk.","past":"{0} wk. ago","future":"in {0} wk."},"day":{"previous":"yesterday","current":"today","next":"tomorrow","past":{"one":"{0} day ago","other":"{0} days ago"},"future":{"one":"in {0} day","other":"in {0} days"}},"hour":{"current":"this hour","past":"{0} hr. ago","future":"in {0} hr."},"minute":{"current":"this minute","past":"{0} min. ago","future":"in {0} min."},"second":{"current":"now","past":"{0} sec. ago","future":"in {0} sec."},"now":{"future":"in a moment","past":"just now"}}')},14640:module=>{"use strict";module.exports=JSON.parse('{"year":"{0} yr.","month":"{0} mo.","week":"{0} wk.","day":{"one":"{0} day","other":"{0} days"},"hour":"{0} hr.","minute":"{0} min.","second":"{0} sec.","now":"now"}')},27218:module=>{"use strict";module.exports=JSON.parse('{"year":"{0}yr","month":"{0}mo","week":"{0}wk","day":"{0}d","hour":"{0}h","minute":"{0}m","second":"{0}s","now":"now"}')},45641:module=>{"use strict";module.exports=JSON.parse('{"year":{"previous":"last year","current":"this year","next":"next year","past":{"one":"{0} year ago","other":"{0} years ago"},"future":{"one":"in {0} year","other":"in {0} years"}},"quarter":{"previous":"last quarter","current":"this quarter","next":"next quarter","past":{"one":"{0} quarter ago","other":"{0} quarters ago"},"future":{"one":"in {0} quarter","other":"in {0} quarters"}},"month":{"previous":"last month","current":"this month","next":"next month","past":{"one":"{0} month ago","other":"{0} months ago"},"future":{"one":"in {0} month","other":"in {0} months"}},"week":{"previous":"last week","current":"this week","next":"next week","past":{"one":"{0} week ago","other":"{0} weeks ago"},"future":{"one":"in {0} week","other":"in {0} weeks"}},"day":{"previous":"yesterday","current":"today","next":"tomorrow","past":{"one":"{0} day ago","other":"{0} days ago"},"future":{"one":"in {0} day","other":"in {0} days"}},"hour":{"current":"this hour","past":{"one":"{0} hour ago","other":"{0} hours ago"},"future":{"one":"in {0} hour","other":"in {0} hours"}},"minute":{"current":"this minute","past":{"one":"{0} minute ago","other":"{0} minutes ago"},"future":{"one":"in {0} minute","other":"in {0} minutes"}},"second":{"current":"now","past":{"one":"{0} second ago","other":"{0} seconds ago"},"future":{"one":"in {0} second","other":"in {0} seconds"}}}')},97009:module=>{"use strict";module.exports=JSON.parse('{"year":{"previous":"last yr.","current":"this yr.","next":"next yr.","past":"{0} yr. ago","future":"in {0} yr."},"quarter":{"previous":"last qtr.","current":"this qtr.","next":"next qtr.","past":{"one":"{0} qtr. ago","other":"{0} qtrs. ago"},"future":{"one":"in {0} qtr.","other":"in {0} qtrs."}},"month":{"previous":"last mo.","current":"this mo.","next":"next mo.","past":"{0} mo. ago","future":"in {0} mo."},"week":{"previous":"last wk.","current":"this wk.","next":"next wk.","past":"{0} wk. ago","future":"in {0} wk."},"day":{"previous":"yesterday","current":"today","next":"tomorrow","past":{"one":"{0} day ago","other":"{0} days ago"},"future":{"one":"in {0} day","other":"in {0} days"}},"hour":{"current":"this hour","past":"{0} hr. ago","future":"in {0} hr."},"minute":{"current":"this minute","past":"{0} min. ago","future":"in {0} min."},"second":{"current":"now","past":"{0} sec. ago","future":"in {0} sec."}}')},30963:module=>{"use strict";module.exports=JSON.parse('{"year":{"previous":"last yr.","current":"this yr.","next":"next yr.","past":"{0} yr. ago","future":"in {0} yr."},"quarter":{"previous":"last qtr.","current":"this qtr.","next":"next qtr.","past":{"one":"{0} qtr. ago","other":"{0} qtrs. ago"},"future":{"one":"in {0} qtr.","other":"in {0} qtrs."}},"month":{"previous":"last mo.","current":"this mo.","next":"next mo.","past":"{0} mo. ago","future":"in {0} mo."},"week":{"previous":"last wk.","current":"this wk.","next":"next wk.","past":"{0} wk. ago","future":"in {0} wk."},"day":{"previous":"yesterday","current":"today","next":"tomorrow","past":{"one":"{0} day ago","other":"{0} days ago"},"future":{"one":"in {0} day","other":"in {0} days"}},"hour":{"current":"this hour","past":"{0} hr. ago","future":"in {0} hr."},"minute":{"current":"this minute","past":"{0} min. ago","future":"in {0} min."},"second":{"current":"now","past":"{0} sec. ago","future":"in {0} sec."}}')}}]);