altair-static 7.2.4 → 7.3.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/build/dist/667.js CHANGED
@@ -1,5 +1,5 @@
1
1
 
2
- !function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},n=(new Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="1df962e9-494e-5fc2-bbce-d03dff2d1a15")}catch(e){}}();
3
- (self.webpackChunkaltair=self.webpackChunkaltair||[]).push([[667],{81993:(le,k,y)=>{"use strict";y.d(k,{R:()=>m});var a=y(95355),O=y(4789),m=function(){function r(){this.getFragmentDoc=(0,a.re)(O.Yk)}return r.prototype.recordOptimisticTransaction=function(n,o){this.performTransaction(n,o)},r.prototype.transformDocument=function(n){return n},r.prototype.identify=function(n){},r.prototype.gc=function(){return[]},r.prototype.modify=function(n){return!1},r.prototype.transformForLink=function(n){return n},r.prototype.readQuery=function(n,o){return void 0===o&&(o=!!n.optimistic),this.read({rootId:n.id||"ROOT_QUERY",query:n.query,variables:n.variables,returnPartialData:n.returnPartialData,optimistic:o})},r.prototype.readFragment=function(n,o){return void 0===o&&(o=!!n.optimistic),this.read({query:this.getFragmentDoc(n.fragment,n.fragmentName),variables:n.variables,rootId:n.id,returnPartialData:n.returnPartialData,optimistic:o})},r.prototype.writeQuery=function(n){return this.write({dataId:n.id||"ROOT_QUERY",result:n.data,query:n.query,variables:n.variables,broadcast:n.broadcast})},r.prototype.writeFragment=function(n){return this.write({dataId:n.id,result:n.data,variables:n.variables,query:this.getFragmentDoc(n.fragment,n.fragmentName),broadcast:n.broadcast})},r}()},61828:(le,k,y)=>{"use strict";var a;y.d(k,{C:()=>a}),a||(a={})},20377:(le,k,y)=>{"use strict";y.d(k,{y:()=>a});var a=function O(m,r,n,o,l){this.message=m,this.path=r,this.query=n,this.clientOnly=o,this.variables=l}},59451:(le,k,y)=>{"use strict";y.d(k,{$O:()=>o,E_:()=>l,RC:()=>e,RI:()=>r,ig:()=>h,j:()=>i});var a=y(53019),O=y(45e3),m=y(58856),r=Object.prototype.hasOwnProperty,o=/^[_a-z][_0-9a-z]*/i;function l(d){var g=d.match(o);return g?g[0]:d}function e(d,g,b){return!(!g||"object"!=typeof g)&&(Array.isArray(g)?g.every(function(T){return e(d,T,b)}):d.selections.every(function(T){if((0,a.My)(T)&&(0,O.LZ)(T,b)){var M=(0,a.u2)(T);return r.call(g,M)&&(!T.selectionSet||e(T.selectionSet,g[M],b))}return!0}))}function i(d){return null!==d&&"object"==typeof d&&!(0,a.Yk)(d)&&!Array.isArray(d)}function h(){return new m.w0}},56881:(le,k,y)=>{"use strict";y.d(k,{h:()=>oe});var ee,L,a=y(97378),O=y(95355),m=y(81993),r=y(20377),n=y(53019),o=y(12578),l=y(76456),e=y(15401),i=y(4789),h=y(45e3),d=y(58856),g=y(87788),R=y(30688),x=y(59451),P=Object.create(null),W=function(){return P},V=Object.create(null),Y=function(){function ee(L,S){var B=this;this.policies=L,this.group=S,this.data=Object.create(null),this.rootIds=Object.create(null),this.refs=Object.create(null),this.getFieldValue=function(G,U){return(0,n.Yk)(G)?B.get(G.__ref,U):G&&G[U]},this.canRead=function(G){return(0,n.Yk)(G)?B.has(G.__ref):"object"==typeof G},this.toReference=function(G,U){if("string"==typeof G)return(0,n.kQ)(G);if((0,n.Yk)(G))return G;var re=B.policies.identify(G)[0];if(re){var ce=(0,n.kQ)(re);return U&&B.merge(re,G),ce}}}return ee.prototype.toObject=function(){return(0,a.pi)({},this.data)},ee.prototype.has=function(L){return void 0!==this.lookup(L,!0)},ee.prototype.get=function(L,S){if(this.group.depend(L,S),x.RI.call(this.data,L)){var B=this.data[L];if(B&&x.RI.call(B,S))return B[S]}return"__typename"===S&&x.RI.call(this.policies.rootTypenamesById,L)?this.policies.rootTypenamesById[L]:this instanceof C?this.parent.get(L,S):void 0},ee.prototype.lookup=function(L,S){return S&&this.group.depend(L,"__exists"),x.RI.call(this.data,L)?this.data[L]:this instanceof C?this.parent.lookup(L,S):this.policies.rootTypenamesById[L]?Object.create(null):void 0},ee.prototype.merge=function(L,S){var B=this,G=this.lookup(L),U=new d.w0(p).merge(G,S);if(this.data[L]=U,U!==G&&(delete this.refs[L],this.group.caching)){var re=Object.create(null);G||(re.__exists=1),Object.keys(S).forEach(function(ce){if(!G||G[ce]!==U[ce]){re[ce]=1;var be=(0,x.E_)(ce);be!==ce&&!B.policies.hasKeyArgs(U.__typename,be)&&(re[be]=1),void 0===U[ce]&&!(B instanceof C)&&delete U[ce]}}),Object.keys(re).forEach(function(ce){return B.group.dirty(L,ce)})}},ee.prototype.modify=function(L,S){var B=this,G=this.lookup(L);if(G){var U=Object.create(null),re=!1,ce=!0,be={DELETE:P,INVALIDATE:V,isReference:n.Yk,toReference:this.toReference,canRead:this.canRead,readField:function(Z,de){return B.policies.readField("string"==typeof Z?{fieldName:Z,from:de||(0,n.kQ)(L)}:Z,{store:B})}};if(Object.keys(G).forEach(function(Z){var de=(0,x.E_)(Z),he=G[Z];if(void 0!==he){var Ee="function"==typeof S?S:S[Z]||S[de];if(Ee){var K=Ee===W?P:Ee(he,(0,a.pi)((0,a.pi)({},be),{fieldName:de,storeFieldName:Z,storage:B.getStorage(L,Z)}));K===V?B.group.dirty(L,Z):(K===P&&(K=void 0),K!==he&&(U[Z]=K,re=!0,he=K))}void 0!==he&&(ce=!1)}}),re)return this.merge(L,U),ce&&(this instanceof C?this.data[L]=void 0:delete this.data[L],this.group.dirty(L,"__exists")),!0}return!1},ee.prototype.delete=function(L,S,B){var G,U=this.lookup(L);if(U){var re=this.getFieldValue(U,"__typename"),ce=S&&B?this.policies.getStoreFieldName({typename:re,fieldName:S,args:B}):S;return this.modify(L,ce?((G={})[ce]=W,G):W)}return!1},ee.prototype.evict=function(L){var S=!1;return L.id&&(x.RI.call(this.data,L.id)&&(S=this.delete(L.id,L.fieldName,L.args)),this instanceof C&&(S=this.parent.evict(L)||S),(L.fieldName||S)&&this.group.dirty(L.id,L.fieldName||"__exists")),S},ee.prototype.clear=function(){this.replace(null)},ee.prototype.extract=function(){var L=this,S=this.toObject(),B=[];return this.getRootIdSet().forEach(function(G){x.RI.call(L.policies.rootTypenamesById,G)||B.push(G)}),B.length&&(S.__META={extraRootIds:B.sort()}),S},ee.prototype.replace=function(L){var S=this;if(Object.keys(this.data).forEach(function(U){L&&x.RI.call(L,U)||S.delete(U)}),L){var B=L.__META,G=(0,a._T)(L,["__META"]);Object.keys(G).forEach(function(U){S.merge(U,G[U])}),B&&B.extraRootIds.forEach(this.retain,this)}},ee.prototype.retain=function(L){return this.rootIds[L]=(this.rootIds[L]||0)+1},ee.prototype.release=function(L){if(this.rootIds[L]>0){var S=--this.rootIds[L];return S||delete this.rootIds[L],S}return 0},ee.prototype.getRootIdSet=function(L){return void 0===L&&(L=new Set),Object.keys(this.rootIds).forEach(L.add,L),this instanceof C?this.parent.getRootIdSet(L):Object.keys(this.policies.rootTypenamesById).forEach(L.add,L),L},ee.prototype.gc=function(){var L=this,S=this.getRootIdSet(),B=this.toObject();S.forEach(function(re){x.RI.call(B,re)&&(Object.keys(L.findChildRefIds(re)).forEach(S.add,S),delete B[re])});var G=Object.keys(B);if(G.length){for(var U=this;U instanceof C;)U=U.parent;G.forEach(function(re){return U.delete(re)})}return G},ee.prototype.findChildRefIds=function(L){if(!x.RI.call(this.refs,L)){var S=this.refs[L]=Object.create(null),B=new Set([this.data[L]]),G=function(U){return null!==U&&"object"==typeof U};B.forEach(function(U){(0,n.Yk)(U)?S[U.__ref]=!0:G(U)&&Object.values(U).filter(G).forEach(B.add,B)})}return this.refs[L]},ee.prototype.makeCacheKey=function(){for(var L=[],S=0;S<arguments.length;S++)L[S]=arguments[S];return this.group.keyMaker.lookupArray(L)},ee}(),j=function(){function ee(L){this.caching=L,this.d=null,this.keyMaker=new O.Gl(R.m),this.d=L?(0,O.dP)():null}return ee.prototype.depend=function(L,S){if(this.d){this.d(E(L,S));var B=(0,x.E_)(S);B!==S&&this.d(E(L,B))}},ee.prototype.dirty=function(L,S){this.d&&this.d.dirty(E(L,S))},ee}();function E(ee,L){return L+"#"+ee}L=function(S){function B(G){var re=G.resultCaching,ce=void 0===re||re,be=G.seed,Z=S.call(this,G.policies,new j(ce))||this;return Z.storageTrie=new O.Gl(R.m),Z.sharedLayerGroup=new j(ce),be&&Z.replace(be),Z}return(0,a.ZT)(B,S),B.prototype.addLayer=function(G,U){return new C(G,this,U,this.sharedLayerGroup)},B.prototype.removeLayer=function(){return this},B.prototype.getStorage=function(){return this.storageTrie.lookupArray(arguments)},B}(ee=Y||(Y={})),ee.Root=L;var C=function(ee){function L(S,B,G,U){var re=ee.call(this,B.policies,U)||this;return re.id=S,re.parent=B,re.replay=G,re.group=U,G(re),re}return(0,a.ZT)(L,ee),L.prototype.addLayer=function(S,B){return new L(S,this,B,this.group)},L.prototype.removeLayer=function(S){var B=this,G=this.parent.removeLayer(S);return S===this.id?(this.group.caching&&Object.keys(this.data).forEach(function(U){B.data[U]!==G.lookup(U)&&B.delete(U)}),G):G===this.parent?this:G.addLayer(this.id,this.replay)},L.prototype.toObject=function(){return(0,a.pi)((0,a.pi)({},this.parent.toObject()),this.data)},L.prototype.findChildRefIds=function(S){var B=this.parent.findChildRefIds(S);return x.RI.call(this.data,S)?(0,a.pi)((0,a.pi)({},B),ee.prototype.findChildRefIds.call(this,S)):B},L.prototype.getStorage=function(){for(var S=this.parent;S.parent;)S=S.parent;return S.getStorage.apply(S,arguments)},L}(Y);function p(ee,L,S){var B=ee[S],G=L[S];return(0,g.D)(B,G)?B:G}function _(ee){return!!(ee instanceof Y&&ee.group.caching)}function v(ee,L){return new r.y(ee.message,L.path.slice(),L.query,L.clientOnly,L.variables)}var F=function(){function ee(L){var S=this;this.config=L,this.executeSelectionSet=(0,O.re)(function(B){return S.execSelectionSetImpl(B)},{keyArgs:function(B){return[B.selectionSet,B.objectOrReference,B.context]},makeCacheKey:function(B,G,U){if(_(U.store))return U.store.makeCacheKey(B,(0,n.Yk)(G)?G.__ref:G,U.varString)}}),this.knownResults=new WeakMap,this.executeSubSelectedArray=(0,O.re)(function(B){return S.execSubSelectedArrayImpl(B)},{makeCacheKey:function(B){var G=B.field,U=B.array,re=B.context;if(_(re.store))return re.store.makeCacheKey(G,U,re.varString)}}),this.config=(0,a.pi)({addTypename:!0},L)}return ee.prototype.diffQueryAgainstStore=function(L){var S=L.store,B=L.query,G=L.rootId,U=void 0===G?"ROOT_QUERY":G,re=L.variables,ce=L.returnPartialData,be=void 0===ce||ce,Z=this.config.cache.policies;re=(0,a.pi)((0,a.pi)({},(0,e.O4)((0,e.iW)(B))),re);var de=this.executeSelectionSet({selectionSet:(0,e.p$)(B).selectionSet,objectOrReference:(0,n.kQ)(U),context:{store:S,query:B,policies:Z,variables:re,varString:JSON.stringify(re),fragmentMap:(0,i.F)((0,e.kU)(B)),path:[],clientOnly:!1}}),he=de.missing&&de.missing.length>0;if(he&&!be)throw de.missing[0];return{result:de.result,missing:de.missing,complete:!he}},ee.prototype.isFresh=function(L,S,B,G){if(_(G.store)&&this.knownResults.get(L)===B){var U=this.executeSelectionSet.peek(B,S,G);if(U&&L===U.result)return!0}return!1},ee.prototype.execSelectionSetImpl=function(L){var S=this,B=L.selectionSet,G=L.objectOrReference,U=L.context;if((0,n.Yk)(G)&&!U.policies.rootTypenamesById[G.__ref]&&!U.store.has(G.__ref))return{result:{},missing:[v(new l.ej(4),U)]};var re=U.variables,ce=U.policies,Z=[],de={result:null},he=U.store.getFieldValue(G,"__typename");function Ee(){return de.missing||(de.missing=[])}function K(f){var A;return f.missing&&(A=Ee()).push.apply(A,f.missing),f.result}this.config.addTypename&&"string"==typeof he&&!ce.rootIdsByTypename[he]&&Z.push({__typename:he});var w=new Set(B.selections);return w.forEach(function(f){var A;if((0,h.LZ)(f,re))if((0,n.My)(f)){var I=ce.readField({fieldName:f.name.value,field:f,variables:U.variables,from:G},U),ne=(0,n.u2)(f);U.path.push(ne);var me=U.clientOnly;U.clientOnly=me||!(!f.directives||!f.directives.some(function(Pe){return"client"===Pe.name.value})),void 0===I?o.Gw.added(f)||Ee().push(v(new l.ej(5),U)):Array.isArray(I)?I=K(S.executeSubSelectedArray({field:f,array:I,context:U})):f.selectionSet&&null!=I&&(I=K(S.executeSelectionSet({selectionSet:f.selectionSet,objectOrReference:I,context:U}))),void 0!==I&&Z.push(((A={})[ne]=I,A)),U.clientOnly=me,(0,l.kG)(U.path.pop()===ne)}else{var Re=(0,i.hi)(f,U.fragmentMap);Re&&ce.fragmentMatches(Re,he)&&Re.selectionSet.selections.forEach(w.add,w)}}),de.result=(0,d.bw)(Z),this.knownResults.set(de.result,B),de},ee.prototype.execSubSelectedArrayImpl=function(L){var re,S=this,B=L.field,G=L.array,U=L.context;function ce(be,Z){return be.missing&&(re=re||[]).push.apply(re,be.missing),(0,l.kG)(U.path.pop()===Z),be.result}return B.selectionSet&&(G=G.filter(U.store.canRead)),{result:G=G.map(function(be,Z){return null===be?null:(U.path.push(Z),Array.isArray(be)?ce(S.executeSubSelectedArray({field:B,array:be,context:U}),Z):B.selectionSet?ce(S.executeSelectionSet({selectionSet:B.selectionSet,objectOrReference:be,context:U}),Z):((0,l.kG)(U.path.pop()===Z),be))}),missing:re}},ee}(),Q=function(){function ee(L,S){this.cache=L,this.reader=S}return ee.prototype.writeToStore=function(L){var S=L.query,B=L.result,G=L.dataId,U=L.store,re=L.variables,ce=(0,e.$H)(S),be=(0,x.ig)();re=(0,a.pi)((0,a.pi)({},(0,e.O4)(ce)),re);var Z=this.processSelectionSet({result:B||Object.create(null),dataId:G,selectionSet:ce.selectionSet,mergeTree:{map:new Map},context:{store:U,written:Object.create(null),merge:function(de,he){return be.merge(de,he)},variables:re,varString:JSON.stringify(re),fragmentMap:(0,i.F)((0,e.kU)(S))}});if(!(0,n.Yk)(Z))throw new l.ej(7);return U.retain(Z.__ref),Z},ee.prototype.processSelectionSet=function(L){var S=this,B=L.dataId,G=L.result,U=L.selectionSet,re=L.context,ce=L.mergeTree,be=this.cache.policies,Z=be.identify(G,U,re.fragmentMap),he=Z[1];if("string"==typeof(B=B||Z[0])){var Ee=re.written[B]||(re.written[B]=[]),K=(0,n.kQ)(B);if(Ee.indexOf(U)>=0||(Ee.push(U),this.reader&&this.reader.isFresh(G,K,U,re)))return K}var w=Object.create(null);he&&(w=re.merge(w,he));var f=B&&be.rootTypenamesById[B]||(0,n.qw)(G,U,re.fragmentMap)||B&&re.store.get(B,"__typename");"string"==typeof f&&(w.__typename=f);var A=new Set(U.selections);if(A.forEach(function(Pe){var ae;if((0,h.LZ)(Pe,re.variables))if((0,n.My)(Pe)){var ye=(0,n.u2)(Pe),_e=G[ye];if(typeof _e<"u"){var Ie=be.getStoreFieldName({typename:f,fieldName:Pe.name.value,field:Pe,variables:re.variables}),Me=ie(ce,Ie),je=S.processFieldValue(_e,Pe,re,Me),Ke=Pe.selectionSet&&re.store.getFieldValue(je,"__typename")||void 0,qe=be.getMergeFunction(f,Pe.name.value,Ke);qe?Me.info={field:Pe,typename:f,merge:qe}:Se(ce,Ie),w=re.merge(w,((ae={})[Ie]=je,ae))}else if(be.usingPossibleTypes&&!(0,h.FS)(["defer","client"],Pe))throw new l.ej(8)}else{var at=(0,i.hi)(Pe,re.fragmentMap);at&&be.fragmentMatches(at,f,G,re.variables)&&at.selectionSet.selections.forEach(A.add,A)}}),"string"==typeof B){var I=(0,n.kQ)(B);return ce.map.size&&(w=this.applyMerges(ce,I,w,re)),re.store.merge(B,w),I}return w},ee.prototype.processFieldValue=function(L,S,B,G){var U=this;return S.selectionSet&&null!==L?Array.isArray(L)?L.map(function(re,ce){var be=U.processFieldValue(re,S,B,ie(G,ce));return Se(G,ce),be}):this.processSelectionSet({result:L,selectionSet:S.selectionSet,context:B,mergeTree:G}):L},ee.prototype.applyMerges=function(L,S,B,G,U){var re,ce=this;if(L.map.size&&!(0,n.Yk)(B)){var be=Array.isArray(B)||!(0,n.Yk)(S)&&!(0,x.j)(S)?void 0:S,Z=B;be&&!U&&(U=[(0,n.Yk)(be)?be.__ref:be]);var de,he=function(Ee,K){return Array.isArray(Ee)?"number"==typeof K?Ee[K]:void 0:G.store.getFieldValue(Ee,String(K))};L.map.forEach(function(Ee,K){U&&U.push(K);var w=he(be,K),f=he(Z,K),A=ce.applyMerges(Ee,w,f,G,U);A!==f&&(de=de||new Map).set(K,A),U&&(0,l.kG)(U.pop()===K)}),de&&(B=Array.isArray(Z)?Z.slice(0):(0,a.pi)({},Z),de.forEach(function(Ee,K){B[K]=Ee}))}return L.info?this.cache.policies.runMergeFunction(S,B,L.info,G,U&&(re=G.store).getStorage.apply(re,U)):B},ee}(),J=[];function ie(ee,L){var S=ee.map;return S.has(L)||S.set(L,J.pop()||{map:new Map}),S.get(L)}function Se(ee,L){var S=ee.map,B=S.get(L);B&&!B.info&&!B.map.size&&(J.push(B),S.delete(L))}var ue=y(97983),H=y(5770),$={dataIdFromObject:H.u,addTypename:!0,resultCaching:!0,typePolicies:{}},oe=function(ee){function L(S){void 0===S&&(S={});var B=ee.call(this)||this;return B.watches=new Set,B.typenameDocumentCache=new Map,B.makeVar=ue.QS,B.txCount=0,B.maybeBroadcastWatch=(0,O.re)(function(G,U){return B.broadcastWatch.call(B,G,!!U)},{makeCacheKey:function(G){var U=G.optimistic?B.optimisticData:B.data;if(_(U))return U.makeCacheKey(G.query,G.callback,JSON.stringify({optimistic:G.optimistic,rootId:G.rootId,variables:G.variables}))}}),B.watchDep=(0,O.dP)(),B.config=(0,a.pi)((0,a.pi)({},$),S),B.addTypename=!!B.config.addTypename,B.policies=new H.r({cache:B,dataIdFromObject:B.config.dataIdFromObject,possibleTypes:B.config.possibleTypes,typePolicies:B.config.typePolicies}),B.data=new Y.Root({policies:B.policies,resultCaching:B.config.resultCaching}),B.optimisticData=B.data,B.storeWriter=new Q(B,B.storeReader=new F({cache:B,addTypename:B.addTypename})),B}return(0,a.ZT)(L,ee),L.prototype.restore=function(S){return S&&this.data.replace(S),this},L.prototype.extract=function(S){return void 0===S&&(S=!1),(S?this.optimisticData:this.data).extract()},L.prototype.read=function(S){var B=S.returnPartialData,G=void 0!==B&&B;try{return this.storeReader.diffQueryAgainstStore({store:S.optimistic?this.optimisticData:this.data,query:S.query,variables:S.variables,rootId:S.rootId,config:this.config,returnPartialData:G}).result||null}catch(U){if(U instanceof r.y)return null;throw U}},L.prototype.write=function(S){try{return++this.txCount,this.storeWriter.writeToStore({store:this.data,query:S.query,result:S.result,dataId:S.dataId,variables:S.variables})}finally{! --this.txCount&&!1!==S.broadcast&&this.broadcastWatches()}},L.prototype.modify=function(S){if(x.RI.call(S,"id")&&!S.id)return!1;var B=S.optimistic?this.optimisticData:this.data;try{return++this.txCount,B.modify(S.id||"ROOT_QUERY",S.fields)}finally{! --this.txCount&&!1!==S.broadcast&&this.broadcastWatches()}},L.prototype.diff=function(S){return this.storeReader.diffQueryAgainstStore({store:S.optimistic?this.optimisticData:this.data,rootId:S.id||"ROOT_QUERY",query:S.query,variables:S.variables,returnPartialData:S.returnPartialData,config:this.config})},L.prototype.watch=function(S){var B=this;return this.watches.size||(0,ue._v)(this),this.watches.add(S),S.immediate&&this.maybeBroadcastWatch(S),function(){B.watches.delete(S)&&!B.watches.size&&(0,ue.li)(B),B.watchDep.dirty(S),B.maybeBroadcastWatch.forget(S)}},L.prototype.gc=function(){return this.optimisticData.gc()},L.prototype.retain=function(S,B){return(B?this.optimisticData:this.data).retain(S)},L.prototype.release=function(S,B){return(B?this.optimisticData:this.data).release(S)},L.prototype.identify=function(S){return(0,n.Yk)(S)?S.__ref:this.policies.identify(S)[0]},L.prototype.evict=function(S){if(!S.id){if(x.RI.call(S,"id"))return!1;S=(0,a.pi)((0,a.pi)({},S),{id:"ROOT_QUERY"})}try{return++this.txCount,this.optimisticData.evict(S)}finally{! --this.txCount&&!1!==S.broadcast&&this.broadcastWatches()}},L.prototype.reset=function(){return this.data.clear(),this.optimisticData=this.data,this.broadcastWatches(),Promise.resolve()},L.prototype.removeOptimistic=function(S){var B=this.optimisticData.removeLayer(S);B!==this.optimisticData&&(this.optimisticData=B,this.broadcastWatches())},L.prototype.performTransaction=function(S,B){var G=this,U=function(ce){var Z=G.data,de=G.optimisticData;++G.txCount,ce&&(G.data=G.optimisticData=ce);try{S(G)}finally{--G.txCount,G.data=Z,G.optimisticData=de}},re=!1;"string"==typeof B?(this.optimisticData=this.optimisticData.addLayer(B,U),re=!0):null===B?U(this.data):U(),this.broadcastWatches(re)},L.prototype.transformDocument=function(S){if(this.addTypename){var B=this.typenameDocumentCache.get(S);return B||(B=(0,o.Gw)(S),this.typenameDocumentCache.set(S,B),this.typenameDocumentCache.set(B,B)),B}return S},L.prototype.broadcastWatches=function(S){var B=this;this.txCount||this.watches.forEach(function(G){return B.maybeBroadcastWatch(G,S)})},L.prototype.broadcastWatch=function(S,B){this.watchDep.dirty(S),this.watchDep(S);var G=this.diff({query:S.query,variables:S.variables,optimistic:S.optimistic});S.optimistic&&B&&(G.fromOptimisticTransaction=!0),S.callback(G)},L}(m.R)},5770:(le,k,y)=>{"use strict";y.d(k,{r:()=>M,u:()=>h});var a=y(97378),O=y(95355),m=y(76456),r=y(53019),n=y(30688),o=y(4789),l=y(59451),e=y(97983);function i(j){return void 0!==j.args?j.args:j.field?(0,r.NC)(j.field,j.variables):null}var h=function(j,E){var C=j.__typename,p=j.id,_=j._id;if("string"==typeof C&&(E&&(E.keyObject=void 0!==p?{id:p}:void 0!==_?{_id:_}:void 0),void 0===p&&(p=_),void 0!==p))return C+":"+("number"==typeof p||"string"==typeof p?p:JSON.stringify(p))},d=function(){},g=function(j,E){return E.fieldName},b=function(j,E,C){return(0,C.mergeObjects)(j,E)},T=function(j,E){return E},M=function(){function j(E){this.config=E,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=(0,a.pi)({dataIdFromObject:h},E),this.cache=this.config.cache,this.setRootTypename("Query"),this.setRootTypename("Mutation"),this.setRootTypename("Subscription"),E.possibleTypes&&this.addPossibleTypes(E.possibleTypes),E.typePolicies&&this.addTypePolicies(E.typePolicies)}return j.prototype.identify=function(E,C,p){var _=C&&p?(0,r.qw)(E,C,p):E.__typename;if(_===this.rootTypenamesById.ROOT_QUERY)return["ROOT_QUERY"];for(var F,v={typename:_,selectionSet:C,fragmentMap:p},q=_&&this.getTypePolicy(_),Q=q&&q.keyFn||this.config.dataIdFromObject;Q;){var J=Q(E,v);if(!Array.isArray(J)){F=J;break}Q=W(J)}return F=F?String(F):void 0,v.keyObject?[F,v.keyObject]:[F]},j.prototype.addTypePolicies=function(E){var C=this;Object.keys(E).forEach(function(p){var _=E[p],v=_.queryType,F=_.mutationType,q=_.subscriptionType,Q=(0,a._T)(_,["queryType","mutationType","subscriptionType"]);v&&C.setRootTypename("Query",p),F&&C.setRootTypename("Mutation",p),q&&C.setRootTypename("Subscription",p),l.RI.call(C.toBeAdded,p)?C.toBeAdded[p].push(Q):C.toBeAdded[p]=[Q]})},j.prototype.updateTypePolicy=function(E,C){var p=this,_=this.getTypePolicy(E),v=C.keyFields,F=C.fields;function q(Q,J){Q.merge="function"==typeof J?J:!0===J?b:!1===J?T:Q.merge}q(_,C.merge),_.keyFn=!1===v?d:Array.isArray(v)?W(v):"function"==typeof v?v:_.keyFn,F&&Object.keys(F).forEach(function(Q){var J=p.getFieldPolicy(E,Q,!0),ie=F[Q];if("function"==typeof ie)J.read=ie;else{var Se=ie.keyArgs,te=ie.read,ge=ie.merge;J.keyFn=!1===Se?g:Array.isArray(Se)?P(Se):"function"==typeof Se?Se:J.keyFn,"function"==typeof te&&(J.read=te),q(J,ge)}J.read&&J.merge&&(J.keyFn=J.keyFn||g)})},j.prototype.setRootTypename=function(E,C){void 0===C&&(C=E);var p="ROOT_"+E.toUpperCase(),_=this.rootTypenamesById[p];C!==_&&((0,m.kG)(!_||_===E,1),_&&delete this.rootIdsByTypename[_],this.rootIdsByTypename[C]=p,this.rootTypenamesById[p]=C)},j.prototype.addPossibleTypes=function(E){var C=this;this.usingPossibleTypes=!0,Object.keys(E).forEach(function(p){C.getSupertypeSet(p,!0),E[p].forEach(function(_){C.getSupertypeSet(_,!0).add(p);var v=_.match(l.$O);(!v||v[0]!==_)&&C.fuzzySubtypes.set(_,new RegExp(_))})})},j.prototype.getTypePolicy=function(E){var C=this;if(!l.RI.call(this.typePolicies,E)){var p=this.typePolicies[E]=Object.create(null);p.fields=Object.create(null);var _=this.supertypeMap.get(E);_&&_.size&&_.forEach(function(F){var q=C.getTypePolicy(F),Q=q.fields,J=(0,a._T)(q,["fields"]);Object.assign(p,J),Object.assign(p.fields,Q)})}var v=this.toBeAdded[E];return v&&v.length&&v.splice(0).forEach(function(F){C.updateTypePolicy(E,F)}),this.typePolicies[E]},j.prototype.getFieldPolicy=function(E,C,p){if(E){var _=this.getTypePolicy(E).fields;return _[C]||p&&(_[C]=Object.create(null))}},j.prototype.getSupertypeSet=function(E,C){var p=this.supertypeMap.get(E);return!p&&C&&this.supertypeMap.set(E,p=new Set),p},j.prototype.fragmentMatches=function(E,C,p,_){var v=this;if(!E.typeCondition)return!0;if(!C)return!1;var F=E.typeCondition.name.value;if(C===F)return!0;if(this.usingPossibleTypes&&this.supertypeMap.has(F))for(var q=this.getSupertypeSet(C,!0),Q=[q],J=function(ue){var H=v.getSupertypeSet(ue,!1);H&&H.size&&Q.indexOf(H)<0&&Q.push(H)},ie=!(!p||!this.fuzzySubtypes.size),te=0;te<Q.length;++te){var ge=Q[te];if(ge.has(F))return q.has(F)||q.add(F),!0;ge.forEach(J),ie&&te===Q.length-1&&(0,l.RC)(E.selectionSet,p,_)&&(ie=!1,this.fuzzySubtypes.forEach(function(ue,H){var $=C.match(ue);$&&$[0]===C&&J(H)}))}return!1},j.prototype.hasKeyArgs=function(E,C){var p=this.getFieldPolicy(E,C,!1);return!(!p||!p.keyFn)},j.prototype.getStoreFieldName=function(E){var v,C=E.typename,p=E.fieldName,_=this.getFieldPolicy(C,p,!1),F=_&&_.keyFn;if(F&&C)for(var q={typename:C,fieldName:p,field:E.field||null,variables:E.variables},Q=i(E);F;){var J=F(Q,q);if(!Array.isArray(J)){v=J||p;break}F=P(J)}return void 0===v&&(v=E.field?(0,r.vf)(E.field,E.variables):(0,r.PT)(p,i(E))),!1===v?p:p===(0,l.E_)(v)?v:p+":"+v},j.prototype.readField=function(E,C){var p=E.from;if(p&&(E.field||E.fieldName)){if(void 0===E.typename){var v=C.store.getFieldValue(p,"__typename");v&&(E.typename=v)}var F=this.getStoreFieldName(E),q=(0,l.E_)(F),Q=C.store.getFieldValue(p,F),J=this.getFieldPolicy(E.typename,q,!1),ie=J&&J.read;if(ie){var Se=R(this,p,E,C,C.store.getStorage((0,r.Yk)(p)?p.__ref:p,F));return e.ab.withValue(this.cache,ie,[Q,Se])}return Q}},j.prototype.getMergeFunction=function(E,C,p){var _=this.getFieldPolicy(E,C,!1),v=_&&_.merge;return!v&&p&&(v=(_=this.getTypePolicy(p))&&_.merge),v},j.prototype.runMergeFunction=function(E,C,p,_,v){var F=p.field,q=p.typename,Q=p.merge;return Q===b?x(_.store.getFieldValue)(E,C):Q===T?C:Q(E,C,R(this,void 0,{typename:q,fieldName:F.name.value,field:F,variables:_.variables},_,v||Object.create(null)))},j}();function R(j,E,C,p,_){var v=j.getStoreFieldName(C),F=(0,l.E_)(v),q=C.variables||p.variables,Q=p.store,J=Q.getFieldValue,ie=Q.toReference,Se=Q.canRead;return{args:i(C),field:C.field||null,fieldName:F,storeFieldName:v,variables:q,isReference:r.Yk,toReference:ie,storage:_,cache:j.cache,canRead:Se,readField:function(te,ge){var ue="string"==typeof te?{fieldName:te,from:ge}:(0,a.pi)({},te);return void 0===ue.from&&(ue.from=E),void 0===ue.variables&&(ue.variables=q),j.readField(ue,p)},mergeObjects:x(J)}}function x(j){return function(C,p){if(Array.isArray(C)||Array.isArray(p))throw new m.ej(2);if(C&&"object"==typeof C&&p&&"object"==typeof p){var _=j(C,"__typename"),v=j(p,"__typename");return _&&v&&_!==v||!(0,l.j)(C)||!(0,l.j)(p)?p:(0,a.pi)((0,a.pi)({},C),p)}return p}}function P(j){return function(E,C){return E?C.fieldName+":"+JSON.stringify(Y(E,j,!1)):C.fieldName}}function W(j){var E=new O.Gl(n.m);return function(C,p){var _;if(p.selectionSet&&p.fragmentMap){var v=E.lookupArray([p.selectionSet,p.fragmentMap]);_=v.aliasMap||(v.aliasMap=V(p.selectionSet,p.fragmentMap))}var F=p.keyObject=Y(C,j,!0,_);return p.typename+":"+JSON.stringify(F)}}function V(j,E){var C=Object.create(null),p=new Set([j]);return p.forEach(function(_){_.selections.forEach(function(v){if((0,r.My)(v)){if(v.alias){var F=v.alias.value,q=v.name.value;q!==F&&((C.aliases||(C.aliases=Object.create(null)))[q]=F)}v.selectionSet&&((C.subsets||(C.subsets=Object.create(null)))[v.name.value]=V(v.selectionSet,E))}else{var ie=(0,o.hi)(v,E);ie&&p.add(ie.selectionSet)}})}),C}function Y(j,E,C,p){var v,_=Object.create(null);return E.forEach(function(F){if(Array.isArray(F)){if("string"==typeof v){var q=p&&p.subsets;_[v]=Y(j[v],F,C,q&&q[v])}}else{var J=p&&p.aliases,ie=J&&J[F]||F;l.RI.call(j,ie)?_[v=F]=j[ie]:((0,m.kG)(!C,3),v=void 0)}}),_}},97983:(le,k,y)=>{"use strict";y.d(k,{QS:()=>e,_v:()=>l,ab:()=>m,li:()=>o});var a=y(95355),m=new(y(83753).g7),r=new WeakMap;function n(h){var d=r.get(h);return d||r.set(h,d={vars:new Set,dep:(0,a.dP)()}),d}function o(h){n(h).vars.forEach(function(d){return d.forgetCache(h)})}function l(h){n(h).vars.forEach(function(d){return d.attachCache(h)})}function e(h){var d=new Set,g=new Set,b=function(M){if(arguments.length>0){if(h!==M){h=M,d.forEach(function(P){n(P).dep.dirty(b),function i(h){h.broadcastWatches&&h.broadcastWatches()}(P)});var R=Array.from(g);g.clear(),R.forEach(function(P){return P(h)})}}else{var x=m.getValue();x&&(T(x),n(x).dep(b))}return h};b.onNextChange=function(M){return g.add(M),function(){g.delete(M)}};var T=b.attachCache=function(M){return d.add(M),n(M).vars.add(b),b};return b.forgetCache=function(M){return d.delete(M)},b}},14367:()=>{},94308:(le,k,y)=>{"use strict";y.d(k,{f:()=>ee,J:()=>oe});var a=y(97378),O=y(76456),m=y(24925),r=y(22072),n=y(57303),l=y(19154),e=y(87788),i=y(30688);function h(L){return L.errors&&L.errors.length>0||!1}var d=y(92573),g=y(15401),b=y(12578),T=y(45e3),M=y(13216),R=y.n(M),x=y(14423),P=y(77325);function W(L){return L&&"function"==typeof L.then}var V=function(L){function S(B){var G=L.call(this,function(U){return G.addObserver(U),function(){return G.removeObserver(U)}})||this;return G.observers=new Set,G.addCount=0,G.promise=new Promise(function(U,re){G.resolve=U,G.reject=re}),G.handlers={next:function(U){null!==G.sub&&(G.latest=["next",U],(0,x.p)(G.observers,"next",U))},error:function(U){var re=G.sub;null!==re&&(re&&Promise.resolve().then(function(){return re.unsubscribe()}),G.sub=null,G.latest=["error",U],G.reject(U),(0,x.p)(G.observers,"error",U))},complete:function(){if(null!==G.sub){var U=G.sources.shift();U?W(U)?U.then(function(re){return G.sub=re.subscribe(G.handlers)}):G.sub=U.subscribe(G.handlers):(G.sub=null,G.latest&&"next"===G.latest[0]?G.resolve(G.latest[1]):G.resolve(),(0,x.p)(G.observers,"complete"))}}},G.cancel=function(U){G.reject(U),G.sources=[],G.handlers.complete()},G.promise.catch(function(U){}),"function"==typeof B&&(B=[new(R())(B)]),W(B)?B.then(function(U){return G.start(U)},G.handlers.error):G.start(B),G}return(0,a.ZT)(S,L),S.prototype.start=function(B){void 0===this.sub&&(this.sources=Array.from(B),this.handlers.complete())},S.prototype.deliverLastMessage=function(B){if(this.latest){var G=this.latest[0],U=B[G];U&&U.call(B,this.latest[1]),null===this.sub&&"next"===G&&B.complete&&B.complete()}},S.prototype.addObserver=function(B){this.observers.has(B)||(this.deliverLastMessage(B),this.observers.add(B),++this.addCount)},S.prototype.removeObserver=function(B,G){this.observers.delete(B)&&--this.addCount<1&&!G&&this.handlers.error(new Error("Observable cancelled prematurely"))},S.prototype.cleanup=function(B){var G=this,U=!1,re=function(){U||(U=!0,G.observers.delete(ce),B())},ce={next:re,error:re,complete:re},be=this.addCount;this.addObserver(ce),this.addCount=be},S}(R());function Y(L,S,B){return new(R())(function(G){var U=G.next,re=G.error,ce=G.complete,be=0,Z=!1,de={then:function(w){return new Promise(function(f){return f(w())})}};function he(w,f){return w?function(A){++be;var I=function(){return w(A)};de=de.then(I,I).then(function(ne){--be,U&&U.call(G,ne),Z&&Ee.complete()},function(ne){throw--be,ne}).catch(function(ne){re&&re.call(G,ne)})}:function(A){return f&&f.call(G,A)}}var Ee={next:he(S,U),error:he(B,re),complete:function(){Z=!0,be||ce&&ce.call(G)}},K=L.subscribe(Ee);return function(){return K.unsubscribe()}})}(0,P.D)(V);var j=y(81687),E=y(4193),C=y(46046),p=y(11194),_=y(58856),v=y(4789),F=y(53019),q=y(97983),Q=function(){function L(S){var G=S.client,U=S.resolvers,re=S.fragmentMatcher;this.cache=S.cache,G&&(this.client=G),U&&this.addResolvers(U),re&&this.setFragmentMatcher(re)}return L.prototype.addResolvers=function(S){var B=this;this.resolvers=this.resolvers||{},Array.isArray(S)?S.forEach(function(G){B.resolvers=(0,_.Ee)(B.resolvers,G)}):this.resolvers=(0,_.Ee)(this.resolvers,S)},L.prototype.setResolvers=function(S){this.resolvers={},this.addResolvers(S)},L.prototype.getResolvers=function(){return this.resolvers||{}},L.prototype.runResolvers=function(S){var B=S.document,G=S.remoteResult,U=S.context,re=S.variables,ce=S.onlyRunForcedResolvers,be=void 0!==ce&&ce;return(0,a.mG)(this,void 0,void 0,function(){return(0,a.Jh)(this,function(Z){return B?[2,this.resolveDocument(B,G.data,U,re,this.fragmentMatcher,be).then(function(de){return(0,a.pi)((0,a.pi)({},G),{data:de.result})})]:[2,G]})})},L.prototype.setFragmentMatcher=function(S){this.fragmentMatcher=S},L.prototype.getFragmentMatcher=function(){return this.fragmentMatcher},L.prototype.clientQuery=function(S){return(0,T.FS)(["client"],S)&&this.resolvers?S:null},L.prototype.serverQuery=function(S){return(0,b.ob)(S)},L.prototype.prepareContext=function(S){var B=this.cache;return(0,a.pi)((0,a.pi)({},S),{cache:B,getCacheKey:function(G){return B.identify(G)}})},L.prototype.addExportedVariables=function(S,B,G){return void 0===B&&(B={}),void 0===G&&(G={}),(0,a.mG)(this,void 0,void 0,function(){return(0,a.Jh)(this,function(U){return S?[2,this.resolveDocument(S,this.buildRootValueFromCache(S,B)||{},this.prepareContext(G),B).then(function(re){return(0,a.pi)((0,a.pi)({},B),re.exportedVariables)})]:[2,(0,a.pi)({},B)]})})},L.prototype.shouldForceResolvers=function(S){var B=!1;return(0,p.Vn)(S,{Directive:{enter:function(G){if("client"===G.name.value&&G.arguments&&(B=G.arguments.some(function(U){return"always"===U.name.value&&"BooleanValue"===U.value.kind&&!0===U.value.value})))return p.$_}}}),B},L.prototype.buildRootValueFromCache=function(S,B){return this.cache.diff({query:(0,b.aL)(S),variables:B,returnPartialData:!0,optimistic:!1}).result},L.prototype.resolveDocument=function(S,B,G,U,re,ce){return void 0===G&&(G={}),void 0===U&&(U={}),void 0===re&&(re=function(){return!0}),void 0===ce&&(ce=!1),(0,a.mG)(this,void 0,void 0,function(){var be,Z,de,he,Ee,K,w,f,A;return(0,a.Jh)(this,function(I){return be=(0,g.p$)(S),Z=(0,g.kU)(S),de=(0,v.F)(Z),Ee=(he=be.operation)?he.charAt(0).toUpperCase()+he.slice(1):"Query",w=(K=this).cache,f=K.client,A={fragmentMap:de,context:(0,a.pi)((0,a.pi)({},G),{cache:w,client:f}),variables:U,fragmentMatcher:re,defaultOperationType:Ee,exportedVariables:{},onlyRunForcedResolvers:ce},[2,this.resolveSelectionSet(be.selectionSet,B,A).then(function(ne){return{result:ne,exportedVariables:A.exportedVariables}})]})})},L.prototype.resolveSelectionSet=function(S,B,G){return(0,a.mG)(this,void 0,void 0,function(){var U,re,ce,be,de=this;return(0,a.Jh)(this,function(he){return U=G.fragmentMap,re=G.context,ce=G.variables,be=[B],[2,Promise.all(S.selections.map(function(Ee){return(0,a.mG)(de,void 0,void 0,function(){var K;return(0,a.Jh)(this,function(f){return(0,T.LZ)(Ee,ce)?(0,F.My)(Ee)?[2,this.resolveField(Ee,B,G).then(function(A){var I;typeof A<"u"&&be.push(((I={})[(0,F.u2)(Ee)]=A,I))})]:((0,F.Ao)(Ee)?K=Ee:(0,O.kG)(K=U[Ee.name.value],11),K&&K.typeCondition&&G.fragmentMatcher(B,K.typeCondition.name.value,re)?[2,this.resolveSelectionSet(K.selectionSet,B,G).then(function(A){be.push(A)})]:[2]):[2]})})})).then(function(){return(0,_.bw)(be)})]})})},L.prototype.resolveField=function(S,B,G){return(0,a.mG)(this,void 0,void 0,function(){var U,re,ce,be,Z,de,he,Ee,K,w=this;return(0,a.Jh)(this,function(f){return U=G.variables,re=S.name.value,ce=(0,F.u2)(S),be=re!==ce,Z=B[ce]||B[re],de=Promise.resolve(Z),(!G.onlyRunForcedResolvers||this.shouldForceResolvers(S))&&(he=B.__typename||G.defaultOperationType,(Ee=this.resolvers&&this.resolvers[he])&&(K=Ee[be?re:ce])&&(de=Promise.resolve(q.ab.withValue(this.cache,K,[B,(0,F.NC)(S,U),G.context,{field:S,fragmentMap:G.fragmentMap}])))),[2,de.then(function(A){return void 0===A&&(A=Z),S.directives&&S.directives.forEach(function(I){"export"===I.name.value&&I.arguments&&I.arguments.forEach(function(ne){"as"===ne.name.value&&"StringValue"===ne.value.kind&&(G.exportedVariables[ne.value.value]=A)})}),S.selectionSet&&null!=A?Array.isArray(A)?w.resolveSubSelectedArray(S,A,G):S.selectionSet?w.resolveSelectionSet(S.selectionSet,A,G):void 0:A})]})})},L.prototype.resolveSubSelectedArray=function(S,B,G){var U=this;return Promise.all(B.map(function(re){return null===re?null:Array.isArray(re)?U.resolveSubSelectedArray(S,re,G):S.selectionSet?U.resolveSelectionSet(S.selectionSet,re,G):void 0}))},L}(),J=new(i.m?WeakMap:Map);function ie(L,S){var B=L[S];"function"==typeof B&&(L[S]=function(){return J.set(L,(J.get(L)+1)%1e15),B.apply(this,arguments)})}function Se(L){L.notifyTimeout&&(clearTimeout(L.notifyTimeout),L.notifyTimeout=void 0)}var te=function(){function L(S){this.cache=S,this.listeners=new Set,this.document=null,this.lastRequestId=1,this.subscriptions=new Set,this.stopped=!1,this.dirty=!1,this.diff=null,this.observableQuery=null,J.has(S)||(J.set(S,0),ie(S,"evict"),ie(S,"modify"),ie(S,"reset"))}return L.prototype.init=function(S){var B=S.networkStatus||C.I.loading;return this.variables&&this.networkStatus!==C.I.loading&&!(0,e.D)(this.variables,S.variables)&&(B=C.I.setVariables),(0,e.D)(S.variables,this.variables)||(this.diff=null),Object.assign(this,{document:S.document,variables:S.variables,networkError:null,graphQLErrors:this.graphQLErrors||[],networkStatus:B}),S.observableQuery&&this.setObservableQuery(S.observableQuery),S.lastRequestId&&(this.lastRequestId=S.lastRequestId),this},L.prototype.reset=function(){Se(this),this.diff=null,this.dirty=!1},L.prototype.getDiff=function(S){return void 0===S&&(S=this.variables),this.diff&&(0,e.D)(S,this.variables)?this.diff:(this.updateWatch(this.variables=S),this.diff=this.cache.diff({query:this.document,variables:S,returnPartialData:!0,optimistic:!0}))},L.prototype.setDiff=function(S){var B=this,G=this.diff;this.diff=S,!this.dirty&&(S&&S.result)!==(G&&G.result)&&(this.dirty=!0,this.notifyTimeout||(this.notifyTimeout=setTimeout(function(){return B.notify()},0)))},L.prototype.setObservableQuery=function(S){var B=this;S!==this.observableQuery&&(this.oqListener&&this.listeners.delete(this.oqListener),this.observableQuery=S,S?(S.queryInfo=this,this.listeners.add(this.oqListener=function(){B.getDiff().fromOptimisticTransaction?S.observe():S.reobserve()})):delete this.oqListener)},L.prototype.notify=function(){var S=this;Se(this),this.shouldNotify()&&this.listeners.forEach(function(B){return B(S)}),this.dirty=!1},L.prototype.shouldNotify=function(){if(!this.dirty||!this.listeners.size)return!1;if((0,C.O)(this.networkStatus)&&this.observableQuery){var S=this.observableQuery.options.fetchPolicy;if("cache-only"!==S&&"cache-and-network"!==S)return!1}return!0},L.prototype.stop=function(){if(!this.stopped){this.stopped=!0,this.reset(),this.cancel(),delete this.cancel,this.subscriptions.forEach(function(B){return B.unsubscribe()});var S=this.observableQuery;S&&S.stopPolling()}},L.prototype.cancel=function(){},L.prototype.updateWatch=function(S){var B=this;void 0===S&&(S=this.variables);var G=this.observableQuery;G&&"no-cache"===G.options.fetchPolicy||(!this.lastWatch||this.lastWatch.query!==this.document||!(0,e.D)(S,this.lastWatch.variables))&&(this.cancel(),this.cancel=this.cache.watch(this.lastWatch={query:this.document,variables:S,optimistic:!0,callback:function(U){return B.setDiff(U)}}))},L.prototype.shouldWrite=function(S,B){var G=this.lastWrite;return!(G&&G.dmCount===J.get(this.cache)&&(0,e.D)(B,G.variables)&&(0,e.D)(S.data,G.result.data))},L.prototype.markResult=function(S,B,G){var U=this;this.graphQLErrors=(0,d.O)(S.errors)?S.errors:[],this.reset(),"no-cache"===B.fetchPolicy?this.diff={result:S.data,complete:!0}:!this.stopped&&G&&(ge(S,B.errorPolicy)?this.cache.performTransaction(function(re){if(U.shouldWrite(S,B.variables))re.writeQuery({query:U.document,data:S.data,variables:B.variables}),U.lastWrite={result:S,variables:B.variables,dmCount:J.get(U.cache)};else if(U.diff&&U.diff.complete)return void(S.data=U.diff.result);var ce=re.diff({query:U.document,variables:B.variables,returnPartialData:!0,optimistic:!0});U.stopped||U.updateWatch(B.variables),U.diff=ce,ce.complete&&(S.data=ce.result)}):this.lastWrite=void 0)},L.prototype.markReady=function(){return this.networkError=null,this.networkStatus=C.I.ready},L.prototype.markError=function(S){return this.networkStatus=C.I.error,this.lastWrite=void 0,this.reset(),S.graphQLErrors&&(this.graphQLErrors=S.graphQLErrors),S.networkError&&(this.networkError=S.networkError),S},L}();function ge(L,S){void 0===S&&(S="none");var B="ignore"===S||"all"===S,G=!h(L);return!G&&B&&L.data&&(G=!0),G}var ue=Object.prototype.hasOwnProperty,H=function(){function L(S){var B=S.cache,G=S.link,U=S.queryDeduplication,re=void 0!==U&&U,ce=S.onBroadcast,be=S.ssrMode,Z=void 0!==be&&be,de=S.clientAwareness,he=void 0===de?{}:de,Ee=S.localState,K=S.assumeImmutableResults;this.clientAwareness={},this.queries=new Map,this.fetchCancelFns=new Map,this.transformCache=new(i.m?WeakMap:Map),this.queryIdCounter=1,this.requestIdCounter=1,this.mutationIdCounter=1,this.inFlightLinkObservables=new Map,this.cache=B,this.link=G,this.queryDeduplication=re,this.clientAwareness=he,this.localState=Ee||new Q({cache:B}),this.ssrMode=Z,this.assumeImmutableResults=!!K,(this.onBroadcast=ce)&&(this.mutationStore=Object.create(null))}return L.prototype.stop=function(){var S=this;this.queries.forEach(function(B,G){S.stopQueryNoBroadcast(G)}),this.cancelPendingFetches(new O.ej(12))},L.prototype.cancelPendingFetches=function(S){this.fetchCancelFns.forEach(function(B){return B(S)}),this.fetchCancelFns.clear()},L.prototype.mutate=function(S){var B=S.mutation,G=S.variables,U=S.optimisticResponse,re=S.updateQueries,ce=S.refetchQueries,be=void 0===ce?[]:ce,Z=S.awaitRefetchQueries,de=void 0!==Z&&Z,he=S.update,Ee=S.errorPolicy,K=void 0===Ee?"none":Ee,w=S.fetchPolicy,f=S.context,A=void 0===f?{}:f;return(0,a.mG)(this,void 0,void 0,function(){var I,ne,me;return(0,a.Jh)(this,function(Re){switch(Re.label){case 0:return(0,O.kG)(B,13),(0,O.kG)(!w||"no-cache"===w,14),I=this.generateMutationId(),B=this.transform(B).document,G=this.getVariables(B,G),this.transform(B).hasClientExports?[4,this.localState.addExportedVariables(B,G,A)]:[3,2];case 1:G=Re.sent(),Re.label=2;case 2:return ne=this.mutationStore&&(this.mutationStore[I]={mutation:B,variables:G,loading:!0,error:null}),U&&this.markMutationOptimistic(U,{mutationId:I,document:B,variables:G,errorPolicy:K,updateQueries:re,update:he}),this.broadcastQueries(),me=this,[2,new Promise(function(Pe,ae){var ye,_e;me.getObservableFromLink(B,(0,a.pi)((0,a.pi)({},A),{optimisticResponse:U}),G,!1).subscribe({next:function(Ie){if(h(Ie)&&"none"===K)_e=new j.c({graphQLErrors:Ie.errors});else{if(ne&&(ne.loading=!1,ne.error=null),"no-cache"!==w)try{me.markMutationResult({mutationId:I,result:Ie,document:B,variables:G,errorPolicy:K,updateQueries:re,update:he})}catch(Me){return void(_e=new j.c({networkError:Me}))}ye=Ie}},error:function(Ie){ne&&(ne.loading=!1,ne.error=Ie),U&&me.cache.removeOptimistic(I),me.broadcastQueries(),ae(new j.c({networkError:Ie}))},complete:function(){if(_e&&ne&&(ne.loading=!1,ne.error=_e),U&&me.cache.removeOptimistic(I),me.broadcastQueries(),_e)ae(_e);else{"function"==typeof be&&(be=be(ye));var Ie=[];(0,d.O)(be)&&be.forEach(function(Me){if("string"==typeof Me)me.queries.forEach(function(Ke){var qe=Ke.observableQuery;qe&&qe.hasObservers()&&qe.queryName===Me&&Ie.push(qe.refetch())});else{var je={query:Me.query,variables:Me.variables,fetchPolicy:"network-only"};Me.context&&(je.context=Me.context),Ie.push(me.query(je))}}),Promise.all(de?Ie:[]).then(function(){"ignore"===K&&ye&&h(ye)&&delete ye.errors,Pe(ye)},ae)}}})})]}})})},L.prototype.markMutationResult=function(S,B){var G=this;if(void 0===B&&(B=this.cache),ge(S.result,S.errorPolicy)){var U=[{result:S.result.data,dataId:"ROOT_MUTATION",query:S.document,variables:S.variables}],re=S.updateQueries;re&&this.queries.forEach(function(ce,be){var Z=ce.observableQuery,de=Z&&Z.queryName;if(de&&ue.call(re,de)){var he=re[de],Ee=G.queries.get(be),K=Ee.document,w=Ee.variables,f=B.diff({query:K,variables:w,returnPartialData:!0,optimistic:!1}),A=f.result;if(f.complete&&A){var ne=he(A,{mutationResult:S.result,queryName:K&&(0,g.rY)(K)||void 0,queryVariables:w});ne&&U.push({result:ne,dataId:"ROOT_QUERY",query:K,variables:w})}}}),B.performTransaction(function(ce){U.forEach(function(Z){return ce.write(Z)});var be=S.update;be&&be(ce,S.result)},null)}},L.prototype.markMutationOptimistic=function(S,B){var G=this,U="function"==typeof S?S(B.variables):S;return this.cache.recordOptimisticTransaction(function(re){try{G.markMutationResult((0,a.pi)((0,a.pi)({},B),{result:{data:U}}),re)}catch{}},B.mutationId)},L.prototype.fetchQuery=function(S,B,G){return this.fetchQueryObservable(S,B,G).promise},L.prototype.getQueryStore=function(){var S=Object.create(null);return this.queries.forEach(function(B,G){S[G]={variables:B.variables,networkStatus:B.networkStatus,networkError:B.networkError,graphQLErrors:B.graphQLErrors}}),S},L.prototype.resetErrors=function(S){var B=this.queries.get(S);B&&(B.networkError=void 0,B.graphQLErrors=[])},L.prototype.transform=function(S){var B=this.transformCache;if(!B.has(S)){var G=this.cache.transformDocument(S),U=(0,b.Fo)(this.cache.transformForLink(G)),re=this.localState.clientQuery(G),ce=U&&this.localState.serverQuery(U),be={document:G,hasClientExports:(0,T.mj)(G),hasForcedResolvers:this.localState.shouldForceResolvers(G),clientQuery:re,serverQuery:ce,defaultVars:(0,g.O4)((0,g.$H)(G))},Z=function(de){de&&!B.has(de)&&B.set(de,be)};Z(S),Z(G),Z(re),Z(ce)}return B.get(S)},L.prototype.getVariables=function(S,B){return(0,a.pi)((0,a.pi)({},this.transform(S).defaultVars),B)},L.prototype.watchQuery=function(S){typeof(S=(0,a.pi)((0,a.pi)({},S),{variables:this.getVariables(S.query,S.variables)})).notifyOnNetworkStatusChange>"u"&&(S.notifyOnNetworkStatusChange=!1);var B=new te(this.cache),G=new E.u({queryManager:this,queryInfo:B,options:S});return this.queries.set(G.queryId,B),B.init({document:S.query,observableQuery:G,variables:S.variables}),G},L.prototype.query=function(S){var B=this;(0,O.kG)(S.query,15),(0,O.kG)("Document"===S.query.kind,16),(0,O.kG)(!S.returnPartialData,17),(0,O.kG)(!S.pollInterval,18);var G=this.generateQueryId();return this.fetchQuery(G,S).finally(function(){return B.stopQuery(G)})},L.prototype.generateQueryId=function(){return String(this.queryIdCounter++)},L.prototype.generateRequestId=function(){return this.requestIdCounter++},L.prototype.generateMutationId=function(){return String(this.mutationIdCounter++)},L.prototype.stopQueryInStore=function(S){this.stopQueryInStoreNoBroadcast(S),this.broadcastQueries()},L.prototype.stopQueryInStoreNoBroadcast=function(S){var B=this.queries.get(S);B&&B.stop()},L.prototype.clearStore=function(){return this.cancelPendingFetches(new O.ej(19)),this.queries.forEach(function(S){S.observableQuery?S.networkStatus=C.I.loading:S.stop()}),this.mutationStore&&(this.mutationStore=Object.create(null)),this.cache.reset()},L.prototype.resetStore=function(){var S=this;return this.clearStore().then(function(){return S.reFetchObservableQueries()})},L.prototype.reFetchObservableQueries=function(S){var B=this;void 0===S&&(S=!1);var G=[];return this.queries.forEach(function(U,re){var ce=U.observableQuery;if(ce&&ce.hasObservers()){var be=ce.options.fetchPolicy;ce.resetLastResults(),"cache-only"!==be&&(S||"standby"!==be)&&G.push(ce.refetch()),B.getQuery(re).setDiff(null)}}),this.broadcastQueries(),Promise.all(G)},L.prototype.setObservableQuery=function(S){this.getQuery(S.queryId).setObservableQuery(S)},L.prototype.startGraphQLSubscription=function(S){var B=this,G=S.query,U=S.fetchPolicy,re=S.errorPolicy,ce=S.variables,be=S.context,Z=void 0===be?{}:be;G=this.transform(G).document,ce=this.getVariables(G,ce);var de=function(Ee){return B.getObservableFromLink(G,Z,Ee,!1).map(function(K){if("no-cache"!==U&&(ge(K,re)&&B.cache.write({query:G,result:K.data,dataId:"ROOT_SUBSCRIPTION",variables:Ee}),B.broadcastQueries()),h(K))throw new j.c({graphQLErrors:K.errors});return K})};if(this.transform(G).hasClientExports){var he=this.localState.addExportedVariables(G,ce,Z).then(de);return new(R())(function(Ee){var K=null;return he.then(function(w){return K=w.subscribe(Ee)},Ee.error),function(){return K&&K.unsubscribe()}})}return de(ce)},L.prototype.stopQuery=function(S){this.stopQueryNoBroadcast(S),this.broadcastQueries()},L.prototype.stopQueryNoBroadcast=function(S){this.stopQueryInStoreNoBroadcast(S),this.removeQuery(S)},L.prototype.removeQuery=function(S){this.fetchCancelFns.delete(S),this.getQuery(S).stop(),this.queries.delete(S)},L.prototype.broadcastQueries=function(){this.onBroadcast&&this.onBroadcast(),this.queries.forEach(function(S){return S.notify()})},L.prototype.getLocalState=function(){return this.localState},L.prototype.getObservableFromLink=function(S,B,G,U){var ce,re=this;void 0===U&&(U=null!==(ce=B?.queryDeduplication)&&void 0!==ce?ce:this.queryDeduplication);var be,Z=this.transform(S).serverQuery;if(Z){var he=this.inFlightLinkObservables,Ee=this.link,K={query:Z,variables:G,operationName:(0,g.rY)(Z)||void 0,context:this.prepareContext((0,a.pi)((0,a.pi)({},B),{forceFetch:!U}))};if(B=K.context,U){var w=he.get(Z)||new Map;he.set(Z,w);var f=JSON.stringify(G);if(!(be=w.get(f))){var A=new V([(0,r.h)(Ee,K)]);w.set(f,be=A),A.cleanup(function(){w.delete(f)&&w.size<1&&he.delete(Z)})}}else be=new V([(0,r.h)(Ee,K)])}else be=new V([R().of({data:{}})]),B=this.prepareContext(B);var I=this.transform(S).clientQuery;return I&&(be=Y(be,function(ne){return re.localState.runResolvers({document:I,remoteResult:ne,context:B,variables:G})})),be},L.prototype.getResultsFromLink=function(S,B,G){var U=S.lastRequestId=this.generateRequestId();return Y(this.getObservableFromLink(S.document,G.context,G.variables),function(re){var ce=(0,d.O)(re.errors);if(U>=S.lastRequestId){if(ce&&"none"===G.errorPolicy)throw S.markError(new j.c({graphQLErrors:re.errors}));S.markResult(re,G,B),S.markReady()}var be={data:re.data,loading:!1,networkStatus:S.networkStatus||C.I.ready};return ce&&"ignore"!==G.errorPolicy&&(be.errors=re.errors),be},function(re){var ce=(0,j.M)(re)?re:new j.c({networkError:re});throw U>=S.lastRequestId&&S.markError(ce),ce})},L.prototype.fetchQueryObservable=function(S,B,G){var U=this;void 0===G&&(G=C.I.loading);var re=this.transform(B.query).document,ce=this.getVariables(re,B.variables),be=this.getQuery(S),Z=be.networkStatus,de=B.fetchPolicy,he=void 0===de?"cache-first":de,Ee=B.errorPolicy,K=void 0===Ee?"none":Ee,w=B.returnPartialData,f=void 0!==w&&w,A=B.notifyOnNetworkStatusChange,I=void 0!==A&&A,ne=B.context,me=void 0===ne?{}:ne;("cache-first"===he||"cache-and-network"===he||"network-only"===he||"no-cache"===he)&&I&&"number"==typeof Z&&Z!==G&&(0,C.O)(G)&&("cache-first"!==he&&(he="cache-and-network"),f=!0);var Pe=Object.assign({},B,{query:re,variables:ce,fetchPolicy:he,errorPolicy:K,returnPartialData:f,notifyOnNetworkStatusChange:I,context:me}),ae=function(_e){return Pe.variables=_e,U.fetchQueryByPolicy(be,Pe,G)};this.fetchCancelFns.set(S,function(_e){Promise.resolve().then(function(){return ye.cancel(_e)})});var ye=new V(this.transform(Pe.query).hasClientExports?this.localState.addExportedVariables(Pe.query,Pe.variables,Pe.context).then(ae):ae(Pe.variables));return ye.cleanup(function(){U.fetchCancelFns.delete(S);var _e=B.nextFetchPolicy;_e&&(B.nextFetchPolicy=void 0,B.fetchPolicy="function"==typeof _e?_e.call(B,B.fetchPolicy||"cache-first"):_e)}),ye},L.prototype.fetchQueryByPolicy=function(S,B,G){var U=this,re=B.query,ce=B.variables,be=B.fetchPolicy,Z=B.errorPolicy,de=B.returnPartialData,he=B.context;S.init({document:re,variables:ce,networkStatus:G});var Ee=function(){return S.getDiff(ce)},K=function(A,I){void 0===I&&(I=S.networkStatus||C.I.loading);var ne=A.result,me=function(Re){return R().of((0,a.pi)({data:Re,loading:(0,C.O)(I),networkStatus:I},A.complete?null:{partial:!0}))};return U.transform(re).hasForcedResolvers?U.localState.runResolvers({document:re,remoteResult:{data:ne},context:he,variables:ce,onlyRunForcedResolvers:!0}).then(function(Re){return me(Re.data)}):me(ne)},w=function(A){return U.getResultsFromLink(S,A,{variables:ce,context:he,fetchPolicy:be,errorPolicy:Z})};switch(be){default:case"cache-first":return(f=Ee()).complete?[K(f,S.markReady())]:de?[K(f),w(!0)]:[w(!0)];case"cache-and-network":var f;return(f=Ee()).complete||de?[K(f),w(!0)]:[w(!0)];case"cache-only":return[K(Ee(),S.markReady())];case"network-only":return[w(!0)];case"no-cache":return[w(!1)];case"standby":return[]}},L.prototype.getQuery=function(S){return S&&!this.queries.has(S)&&this.queries.set(S,new te(this.cache)),this.queries.get(S)},L.prototype.prepareContext=function(S){void 0===S&&(S={});var B=this.localState.prepareContext(S);return(0,a.pi)((0,a.pi)({},B),{clientAwareness:this.clientAwareness})},L}();function oe(L,S){return(0,n.o)(L,S,S.variables&&{variables:(0,a.pi)((0,a.pi)({},L.variables),S.variables)})}var ee=function(){function L(S){var B=this;this.defaultOptions={},this.resetStoreCallbacks=[],this.clearStoreCallbacks=[];var G=S.uri,ce=S.cache,be=S.ssrMode,Z=void 0!==be&&be,de=S.ssrForceFetchDelay,he=void 0===de?0:de,Ee=S.connectToDevTools,K=void 0===Ee?"object"==typeof window&&!window.__APOLLO_CLIENT__&&!1:Ee,w=S.queryDeduplication,f=void 0===w||w,A=S.defaultOptions,I=S.assumeImmutableResults,ne=void 0!==I&&I,me=S.resolvers,Re=S.typeDefs,Pe=S.fragmentMatcher,ae=S.name,ye=S.version,_e=S.link;if(_e||(_e=G?new l.u({uri:G,credentials:S.credentials,headers:S.headers}):m.i.empty()),!ce)throw new O.ej(9);this.link=_e,this.cache=ce,this.disableNetworkFetches=Z||he>0,this.queryDeduplication=f,this.defaultOptions=A||{},this.typeDefs=Re,he&&setTimeout(function(){return B.disableNetworkFetches=!1},he),this.watchQuery=this.watchQuery.bind(this),this.query=this.query.bind(this),this.mutate=this.mutate.bind(this),this.resetStore=this.resetStore.bind(this),this.reFetchObservableQueries=this.reFetchObservableQueries.bind(this),K&&"object"==typeof window&&(window.__APOLLO_CLIENT__=this),this.version="3.3.20",this.localState=new Q({cache:ce,client:this,resolvers:me,fragmentMatcher:Pe}),this.queryManager=new H({cache:this.cache,link:this.link,queryDeduplication:f,ssrMode:Z,clientAwareness:{name:ae,version:ye},localState:this.localState,assumeImmutableResults:ne,onBroadcast:K?function(){B.devToolsHookCb&&B.devToolsHookCb({action:{},state:{queries:B.queryManager.getQueryStore(),mutations:B.queryManager.mutationStore||{}},dataWithOptimisticResults:B.cache.extract(!0)})}:void 0})}return L.prototype.stop=function(){this.queryManager.stop()},L.prototype.watchQuery=function(S){return this.defaultOptions.watchQuery&&(S=oe(this.defaultOptions.watchQuery,S)),this.disableNetworkFetches&&("network-only"===S.fetchPolicy||"cache-and-network"===S.fetchPolicy)&&(S=(0,a.pi)((0,a.pi)({},S),{fetchPolicy:"cache-first"})),this.queryManager.watchQuery(S)},L.prototype.query=function(S){return this.defaultOptions.query&&(S=oe(this.defaultOptions.query,S)),(0,O.kG)("cache-and-network"!==S.fetchPolicy,10),this.disableNetworkFetches&&"network-only"===S.fetchPolicy&&(S=(0,a.pi)((0,a.pi)({},S),{fetchPolicy:"cache-first"})),this.queryManager.query(S)},L.prototype.mutate=function(S){return this.defaultOptions.mutate&&(S=oe(this.defaultOptions.mutate,S)),this.queryManager.mutate(S)},L.prototype.subscribe=function(S){return this.queryManager.startGraphQLSubscription(S)},L.prototype.readQuery=function(S,B){return void 0===B&&(B=!1),this.cache.readQuery(S,B)},L.prototype.readFragment=function(S,B){return void 0===B&&(B=!1),this.cache.readFragment(S,B)},L.prototype.writeQuery=function(S){this.cache.writeQuery(S),this.queryManager.broadcastQueries()},L.prototype.writeFragment=function(S){this.cache.writeFragment(S),this.queryManager.broadcastQueries()},L.prototype.__actionHookForDevTools=function(S){this.devToolsHookCb=S},L.prototype.__requestRaw=function(S){return(0,r.h)(this.link,S)},L.prototype.resetStore=function(){var S=this;return Promise.resolve().then(function(){return S.queryManager.clearStore()}).then(function(){return Promise.all(S.resetStoreCallbacks.map(function(B){return B()}))}).then(function(){return S.reFetchObservableQueries()})},L.prototype.clearStore=function(){var S=this;return Promise.resolve().then(function(){return S.queryManager.clearStore()}).then(function(){return Promise.all(S.clearStoreCallbacks.map(function(B){return B()}))})},L.prototype.onResetStore=function(S){var B=this;return this.resetStoreCallbacks.push(S),function(){B.resetStoreCallbacks=B.resetStoreCallbacks.filter(function(G){return G!==S})}},L.prototype.onClearStore=function(S){var B=this;return this.clearStoreCallbacks.push(S),function(){B.clearStoreCallbacks=B.clearStoreCallbacks.filter(function(G){return G!==S})}},L.prototype.reFetchObservableQueries=function(S){return this.queryManager.reFetchObservableQueries(S)},L.prototype.extract=function(S){return this.cache.extract(S)},L.prototype.restore=function(S){return this.cache.restore(S)},L.prototype.addResolvers=function(S){this.localState.addResolvers(S)},L.prototype.setResolvers=function(S){this.localState.setResolvers(S)},L.prototype.getResolvers=function(){return this.localState.getResolvers()},L.prototype.setLocalStateFragmentMatcher=function(S){this.localState.setFragmentMatcher(S)},L.prototype.setLink=function(S){this.link=this.queryManager.link=S},L}()},4193:(le,k,y)=>{"use strict";y.d(k,{u:()=>x});var a=y(97378),O=y(76456),m=y(87788),r=y(46046),n=y(14423),o=y(15401),l=Object.prototype.toString;function e(W){return i(W)}function i(W,V){switch(l.call(W)){case"[object Array]":if((V=V||new Map).has(W))return V.get(W);var Y=W.slice(0);return V.set(W,Y),Y.forEach(function(E,C){Y[C]=i(E,V)}),Y;case"[object Object]":if((V=V||new Map).has(W))return V.get(W);var j=Object.create(Object.getPrototypeOf(W));return V.set(W,j),Object.keys(W).forEach(function(E){j[E]=i(W[E],V)}),j;default:return W}}var h=y(92573),d=y(13216),g=y.n(d),b=y(77325),T=y(57303),M=function(){function W(V,Y,j,E){this.observer=V,this.options=Y,this.fetch=j,this.shouldFetch=E}return W.prototype.reobserve=function(V,Y){V?this.updateOptions(V):this.updatePolling();var j=this.fetch(this.options,Y);return this.concast&&this.concast.removeObserver(this.observer,!0),j.addObserver(this.observer),(this.concast=j).promise},W.prototype.updateOptions=function(V){return Object.assign(this.options,(0,T.o)(V)),this.updatePolling(),this},W.prototype.stop=function(){this.concast&&(this.concast.removeObserver(this.observer),delete this.concast),this.pollingInfo&&(clearTimeout(this.pollingInfo.timeout),this.options.pollInterval=0,this.updatePolling())},W.prototype.updatePolling=function(){var V=this,j=this.pollingInfo,E=this.options.pollInterval;if(E){if((!j||j.interval!==E)&&((0,O.kG)(E,20),!1!==this.shouldFetch)){(j||(this.pollingInfo={})).interval=E;var p=function(){V.pollingInfo&&(V.shouldFetch&&V.shouldFetch()?V.reobserve({fetchPolicy:"network-only",nextFetchPolicy:V.options.fetchPolicy||"cache-first"},r.I.poll).then(_,_):_())},_=function(){var v=V.pollingInfo;v&&(clearTimeout(v.timeout),v.timeout=setTimeout(p,v.interval))};_()}}else j&&(clearTimeout(j.timeout),delete this.pollingInfo)},W}(),x=function(W){function V(Y){var j=Y.queryManager,E=Y.queryInfo,C=Y.options,p=W.call(this,function(v){return p.onSubscribe(v)})||this;p.observers=new Set,p.subscriptions=new Set,p.observer={next:function(v){(p.lastError||p.isDifferentFromLastResult(v))&&(p.updateLastResult(v),(0,n.p)(p.observers,"next",v))},error:function(v){p.updateLastResult((0,a.pi)((0,a.pi)({},p.lastResult),{error:v,errors:v.graphQLErrors,networkStatus:r.I.error,loading:!1})),(0,n.p)(p.observers,"error",p.lastError=v)}},p.isTornDown=!1,p.options=C,p.queryId=j.generateQueryId();var _=(0,o.$H)(C.query);return p.queryName=_&&_.name&&_.name.value,p.queryManager=j,p.queryInfo=E,p}return(0,a.ZT)(V,W),Object.defineProperty(V.prototype,"variables",{get:function(){return this.options.variables},enumerable:!1,configurable:!0}),V.prototype.result=function(){var Y=this;return new Promise(function(j,E){var C={next:function(_){j(_),Y.observers.delete(C),Y.observers.size||Y.queryManager.removeQuery(Y.queryId),setTimeout(function(){p.unsubscribe()},0)},error:E},p=Y.subscribe(C)})},V.prototype.getCurrentResult=function(Y){void 0===Y&&(Y=!0);var j=this.lastResult,E=this.queryInfo.networkStatus||j&&j.networkStatus||r.I.ready,C=(0,a.pi)((0,a.pi)({},j),{loading:(0,r.O)(E),networkStatus:E});if(this.isTornDown)return C;var p=this.options.fetchPolicy,_=void 0===p?"cache-first":p;if("no-cache"===_||"network-only"===_)delete C.partial;else if(!C.data||!this.queryManager.transform(this.options.query).hasForcedResolvers){var v=this.queryInfo.getDiff();C.data=v.complete||this.options.returnPartialData?v.result:void 0,v.complete?(C.networkStatus===r.I.loading&&("cache-first"===_||"cache-only"===_)&&(C.networkStatus=r.I.ready,C.loading=!1),delete C.partial):C.partial=!0}return Y&&this.updateLastResult(C),C},V.prototype.isDifferentFromLastResult=function(Y){return!(0,m.D)(this.lastResultSnapshot,Y)},V.prototype.getLastResult=function(){return this.lastResult},V.prototype.getLastError=function(){return this.lastError},V.prototype.resetLastResults=function(){delete this.lastResult,delete this.lastResultSnapshot,delete this.lastError,this.isTornDown=!1},V.prototype.resetQueryStoreErrors=function(){this.queryManager.resetErrors(this.queryId)},V.prototype.refetch=function(Y){var j={pollInterval:0},E=this.options.fetchPolicy;return"no-cache"!==E&&"cache-and-network"!==E&&(j.fetchPolicy="network-only",j.nextFetchPolicy=E||"cache-first"),Y&&!(0,m.D)(this.options.variables,Y)&&(j.variables=this.options.variables=(0,a.pi)((0,a.pi)({},this.options.variables),Y)),this.newReobserver(!1).reobserve(j,r.I.refetch)},V.prototype.fetchMore=function(Y){var j=this,E=(0,a.pi)((0,a.pi)({},Y.query?Y:(0,a.pi)((0,a.pi)((0,a.pi)({},this.options),Y),{variables:(0,a.pi)((0,a.pi)({},this.options.variables),Y.variables)})),{fetchPolicy:"no-cache"}),C=this.queryManager.generateQueryId();return E.notifyOnNetworkStatusChange&&(this.queryInfo.networkStatus=r.I.fetchMore,this.observe()),this.queryManager.fetchQuery(C,E,r.I.fetchMore).then(function(p){var _=p.data,v=Y.updateQuery;return v?j.updateQuery(function(F){return v(F,{fetchMoreResult:_,variables:E.variables})}):j.queryManager.cache.writeQuery({query:E.query,variables:E.variables,data:_}),p}).finally(function(){j.queryManager.stopQuery(C),j.reobserve()})},V.prototype.subscribeToMore=function(Y){var j=this,E=this.queryManager.startGraphQLSubscription({query:Y.document,variables:Y.variables,context:Y.context}).subscribe({next:function(C){var p=Y.updateQuery;p&&j.updateQuery(function(_,v){return p(_,{subscriptionData:C,variables:v.variables})})},error:function(C){Y.onError&&Y.onError(C)}});return this.subscriptions.add(E),function(){j.subscriptions.delete(E)&&E.unsubscribe()}},V.prototype.setOptions=function(Y){return this.reobserve(Y)},V.prototype.setVariables=function(Y){if((0,m.D)(this.variables,Y))return this.observers.size?this.result():Promise.resolve();if(this.options.variables=Y,!this.observers.size)return Promise.resolve();var j=this.options.fetchPolicy,E=void 0===j?"cache-first":j,C={fetchPolicy:E,variables:Y};return"cache-first"!==E&&"no-cache"!==E&&"network-only"!==E&&(C.fetchPolicy="cache-and-network",C.nextFetchPolicy=E),this.reobserve(C,r.I.setVariables)},V.prototype.updateQuery=function(Y){var j,E=this.queryManager,p=Y(E.cache.diff({query:this.options.query,variables:this.variables,previousResult:null===(j=this.lastResult)||void 0===j?void 0:j.data,returnPartialData:!0,optimistic:!1}).result,{variables:this.variables});p&&(E.cache.writeQuery({query:this.options.query,data:p,variables:this.variables}),E.broadcastQueries())},V.prototype.startPolling=function(Y){this.getReobserver().updateOptions({pollInterval:Y})},V.prototype.stopPolling=function(){this.reobserver&&this.reobserver.updateOptions({pollInterval:0})},V.prototype.updateLastResult=function(Y){var j=this.lastResult;return this.lastResult=Y,this.lastResultSnapshot=this.queryManager.assumeImmutableResults?Y:e(Y),(0,h.O)(Y.errors)||delete this.lastError,j},V.prototype.onSubscribe=function(Y){var j=this;if(Y===this.observer)return function(){};try{var E=Y._subscription._observer;E&&!E.error&&(E.error=P)}catch{}var C=!this.observers.size;return this.observers.add(Y),this.lastError?Y.error&&Y.error(this.lastError):this.lastResult&&Y.next&&Y.next(this.lastResult),C&&this.reobserve().catch(function(p){}),function(){j.observers.delete(Y)&&!j.observers.size&&j.tearDownQuery()}},V.prototype.getReobserver=function(){return this.reobserver||(this.reobserver=this.newReobserver(!0))},V.prototype.newReobserver=function(Y){var j=this,C=this.queryManager,p=this.queryId;return C.setObservableQuery(this),new M(this.observer,Y?this.options:(0,a.pi)({},this.options),function(_,v){return C.setObservableQuery(j),C.fetchQueryObservable(p,_,v)},!C.ssrMode&&function(){return!(0,r.O)(j.queryInfo.networkStatus)})},V.prototype.reobserve=function(Y,j){return this.isTornDown=!1,this.getReobserver().reobserve(Y,j)},V.prototype.observe=function(){this.observer.next(this.getCurrentResult(!1))},V.prototype.hasObservers=function(){return this.observers.size>0},V.prototype.tearDownQuery=function(){this.isTornDown||(this.reobserver&&(this.reobserver.stop(),delete this.reobserver),this.subscriptions.forEach(function(Y){return Y.unsubscribe()}),this.subscriptions.clear(),this.queryManager.stopQuery(this.queryId),this.observers.clear(),this.isTornDown=!0)},V}(g());function P(W){}(0,b.D)(x)},10653:(le,k,y)=>{"use strict";y.r(k),y.d(k,{ApolloCache:()=>e.R,ApolloClient:()=>a.f,ApolloError:()=>o.c,Cache:()=>l.C,HttpLink:()=>x.uG,InMemoryCache:()=>i.h,MissingFieldError:()=>h.y,NetworkStatus:()=>m.I,Observable:()=>E.a,ObservableQuery:()=>O.u,checkFetcher:()=>x.U2,createHttpLink:()=>x.LQ,createSignalIfSupported:()=>x.$g,defaultDataIdFromObject:()=>d.u,disableExperimentalFragmentVariables:()=>_.J9,disableFragmentWarnings:()=>_._t,enableExperimentalFragmentVariables:()=>_.wO,fallbackHttpConfig:()=>x.SC,fromError:()=>P.Q,fromPromise:()=>V.p,gql:()=>_.ZP,isApolloError:()=>o.M,isReference:()=>C.Yk,makeReference:()=>C.kQ,makeVar:()=>g.QS,mergeOptions:()=>a.J,parseAndCheckHttpResponse:()=>x.dO,resetCaches:()=>_.HW,rewriteURIForGET:()=>x.Hg,selectHttpOptionsAndBody:()=>x.E4,selectURI:()=>x.rg,serializeFetchParameter:()=>x.gE,setLogVerbosity:()=>p.U6,throwServerError:()=>Y.P,toPromise:()=>W.V});var a=y(94308),O=y(4193),m=y(46046),r=y(61241),R={};for(const v in r)["default","ApolloClient","mergeOptions","ObservableQuery","NetworkStatus","isApolloError","ApolloError","Cache","ApolloCache","InMemoryCache","MissingFieldError","defaultDataIdFromObject","makeVar","fromError","toPromise","fromPromise","throwServerError","Observable","isReference","makeReference","setLogVerbosity","gql","resetCaches","disableFragmentWarnings","enableExperimentalFragmentVariables","disableExperimentalFragmentVariables"].indexOf(v)<0&&(R[v]=()=>r[v]);y.d(k,R);var o=y(81687),l=y(61828),e=y(81993),i=y(56881),h=y(20377),d=y(5770),g=y(97983),b=y(14367);R={};for(const v in b)["default","ApolloClient","mergeOptions","ObservableQuery","NetworkStatus","isApolloError","ApolloError","Cache","ApolloCache","InMemoryCache","MissingFieldError","defaultDataIdFromObject","makeVar","fromError","toPromise","fromPromise","throwServerError","Observable","isReference","makeReference","setLogVerbosity","gql","resetCaches","disableFragmentWarnings","enableExperimentalFragmentVariables","disableExperimentalFragmentVariables"].indexOf(v)<0&&(R[v]=()=>b[v]);y.d(k,R);var M=y(16576);R={};for(const v in M)["default","ApolloClient","mergeOptions","ObservableQuery","NetworkStatus","isApolloError","ApolloError","Cache","ApolloCache","InMemoryCache","MissingFieldError","defaultDataIdFromObject","makeVar","fromError","toPromise","fromPromise","throwServerError","Observable","isReference","makeReference","setLogVerbosity","gql","resetCaches","disableFragmentWarnings","enableExperimentalFragmentVariables","disableExperimentalFragmentVariables"].indexOf(v)<0&&(R[v]=()=>M[v]);y.d(k,R);var x=y(61168),P=y(691),W=y(18451),V=y(92986),Y=y(23883),j=y(13216),E=y.n(j),C=y(53019),p=y(76456),_=y(68290);(0,p.U6)("log")},46046:(le,k,y)=>{"use strict";y.d(k,{I:()=>a,O:()=>O});var a=function(m){return m[m.loading=1]="loading",m[m.setVariables=2]="setVariables",m[m.fetchMore=3]="fetchMore",m[m.refetch=4]="refetch",m[m.poll=6]="poll",m[m.ready=7]="ready",m[m.error=8]="error",m}(a||{});function O(m){return!!m&&m<7}},61241:()=>{},81687:(le,k,y)=>{"use strict";y.d(k,{M:()=>m,c:()=>n});var a=y(97378),O=y(92573);function m(o){return o.hasOwnProperty("graphQLErrors")}var n=function(o){function l(e){var i=e.graphQLErrors,h=e.networkError,d=e.errorMessage,g=e.extraInfo,b=o.call(this,d)||this;return b.graphQLErrors=i||[],b.networkError=h||null,b.message=d||function(o){var l="";return(0,O.O)(o.graphQLErrors)&&o.graphQLErrors.forEach(function(e){l+=(e?e.message:"Error message not found.")+"\n"}),o.networkError&&(l+=o.networkError.message+"\n"),l=l.replace(/\n$/,"")}(b),b.extraInfo=g,b.__proto__=l.prototype,b}return(0,a.ZT)(l,o),l}(Error)},92955:(le,k,y)=>{"use strict";y.r(k);var a=y(10653),m={};for(const r in a)"default"!==r&&(m[r]=()=>a[r]);y.d(k,m);var O=y(29198);m={};for(const r in O)["default","ApolloCache","ApolloClient","ApolloError","Cache","HttpLink","InMemoryCache","MissingFieldError","NetworkStatus","Observable","ObservableQuery","checkFetcher","createHttpLink","createSignalIfSupported","defaultDataIdFromObject","disableExperimentalFragmentVariables","disableFragmentWarnings","enableExperimentalFragmentVariables","fallbackHttpConfig","fromError","fromPromise","gql","isApolloError","isReference","makeReference","makeVar","mergeOptions","parseAndCheckHttpResponse","resetCaches","rewriteURIForGET","selectHttpOptionsAndBody","selectURI","serializeFetchParameter","setLogVerbosity","throwServerError","toPromise"].indexOf(r)<0&&(m[r]=()=>O[r]);y.d(k,m)},74699:(le,k,y)=>{"use strict";y.r(k),y.d(k,{setContext:()=>n});var a=y(97378),O=y(24925),m=y(13216),r=y.n(m);function n(o){return new O.i(function(l,e){var i=(0,a._T)(l,[]);return new(r())(function(h){var d;return Promise.resolve(i).then(function(g){return o(g,l.getContext())}).then(l.setContext).then(function(){d=e(l).subscribe({next:h.next.bind(h),error:h.error.bind(h),complete:h.complete.bind(h)})}).catch(h.error.bind(h)),function(){d&&d.unsubscribe()}})})}},24925:(le,k,y)=>{"use strict";y.d(k,{i:()=>b});var T,a=y(97378),O=y(76456),m=y(13216),r=y.n(m),o=y(15401);function i(T,M){return M?M(T):r().of()}function h(T){return"function"==typeof T?new b(T):T}function d(T){return T.request.length<=1}T=Error,(0,a.ZT)(function M(R,x){var P=T.call(this,R)||this;return P.link=x,P},T);var b=function(){function T(M){M&&(this.request=M)}return T.empty=function(){return new T(function(){return r().of()})},T.from=function(M){return 0===M.length?T.empty():M.map(h).reduce(function(R,x){return R.concat(x)})},T.split=function(M,R,x){var P=h(R),W=h(x||new T(i));return d(P)&&d(W)?new T(function(V){return M(V)?P.request(V)||r().of():W.request(V)||r().of()}):new T(function(V,Y){return M(V)?P.request(V,Y)||r().of():W.request(V,Y)||r().of()})},T.execute=function(M,R){return M.request(function n(T,M){var R=(0,a.pi)({},T);return Object.defineProperty(M,"setContext",{enumerable:!1,value:function(W){R=(0,a.pi)((0,a.pi)({},R),"function"==typeof W?W(R):W)}}),Object.defineProperty(M,"getContext",{enumerable:!1,value:function(){return(0,a.pi)({},R)}}),M}(R.context,function l(T){var M={variables:T.variables||{},extensions:T.extensions||{},operationName:T.operationName,query:T.query};return M.operationName||(M.operationName="string"!=typeof M.query?(0,o.rY)(M.query)||void 0:""),M}(function e(T){for(var M=["query","operationName","variables","extensions","context"],R=0,x=Object.keys(T);R<x.length;R++)if(M.indexOf(x[R])<0)throw new O.ej(26);return T}(R))))||r().of()},T.concat=function(M,R){var x=h(M);if(d(x))return x;var P=h(R);return d(P)?new T(function(W){return x.request(W,function(V){return P.request(V)||r().of()})||r().of()}):new T(function(W,V){return x.request(W,function(Y){return P.request(Y,V)||r().of()})||r().of()})},T.prototype.split=function(M,R,x){return this.concat(T.split(M,R,x||new T(i)))},T.prototype.concat=function(M){return T.concat(this,M)},T.prototype.request=function(M,R){throw new O.ej(21)},T.prototype.onError=function(M,R){if(R&&R.error)return R.error(M),!1;throw M},T.prototype.setOnError=function(M){return this.onError=M,this},T}()},14692:(le,k,y)=>{"use strict";y.d(k,{z:()=>O});var O=y(24925).i.concat},27930:(le,k,y)=>{"use strict";y.d(k,{c:()=>O});var O=y(24925).i.empty},22072:(le,k,y)=>{"use strict";y.d(k,{h:()=>O});var O=y(24925).i.execute},94778:(le,k,y)=>{"use strict";y.d(k,{D:()=>O});var O=y(24925).i.from},16576:(le,k,y)=>{"use strict";y.r(k),y.d(k,{ApolloLink:()=>o.i,concat:()=>r.z,empty:()=>a.c,execute:()=>n.h,from:()=>O.D,split:()=>m.V});var a=y(27930),O=y(94778),m=y(8117),r=y(14692),n=y(22072),o=y(24925),l=y(43399),i={};for(const h in l)["default","empty","from","split","concat","execute","ApolloLink"].indexOf(h)<0&&(i[h]=()=>l[h]);y.d(k,i)},8117:(le,k,y)=>{"use strict";y.d(k,{V:()=>O});var O=y(24925).i.split},43399:()=>{},19154:(le,k,y)=>{"use strict";y.d(k,{u:()=>r});var a=y(97378),O=y(24925),m=y(41309),r=function(n){function o(l){void 0===l&&(l={});var e=n.call(this,(0,m.L)(l).request)||this;return e.options=l,e}return(0,a.ZT)(o,n),o}(O.i)},51286:(le,k,y)=>{"use strict";y.d(k,{U:()=>O});var a=y(76456),O=function(m){if(!m&&typeof fetch>"u")throw new a.ej(22)}},41309:(le,k,y)=>{"use strict";y.d(k,{L:()=>T});var a=y(97378),O=y(11194),m=y(24925),r=y(13216),n=y.n(r),o=y(75646),l=y(3281),e=y(68503),i=y(51286),h=y(77949),d=y(72198),g=y(99398),b=y(691),T=function(M){void 0===M&&(M={});var R=M.uri,x=void 0===R?"/graphql":R,P=M.fetch,W=M.includeExtensions,V=M.useGETForQueries,Y=M.includeUnusedVariables,j=void 0!==Y&&Y,E=(0,a._T)(M,["uri","fetch","includeExtensions","useGETForQueries","includeUnusedVariables"]);(0,i.U)(P),P||(P=fetch);var C={http:{includeExtensions:W},options:E.fetchOptions,credentials:E.credentials,headers:E.headers};return new m.i(function(p){var _=(0,l.r)(p,x),v=p.getContext(),F={};if(v.clientAwareness){var q=v.clientAwareness,Q=q.name,J=q.version;Q&&(F["apollographql-client-name"]=Q),J&&(F["apollographql-client-version"]=J)}var $,ie=(0,a.pi)((0,a.pi)({},F),v.headers),te=(0,h.E)(p,h.S,C,{http:v.http,options:v.fetchOptions,credentials:v.credentials,headers:ie}),ge=te.options,ue=te.body;if(ue.variables&&!j){var H=new Set(Object.keys(ue.variables));(0,O.Vn)(p.query,{Variable:function(re,ce,be){be&&"VariableDefinition"!==be.kind&&H.delete(re.name.value)}}),H.size&&(ue.variables=(0,a.pi)({},ue.variables),H.forEach(function(re){delete ue.variables[re]}))}if(!ge.signal){var oe=(0,d.$)();($=oe.controller)&&(ge.signal=oe.signal)}if(V&&!p.query.definitions.some(function(re){return"OperationDefinition"===re.kind&&"mutation"===re.operation})&&(ge.method="GET"),"GET"===ge.method){var B=(0,g.H)(_,ue),G=B.newURI,U=B.parseError;if(U)return(0,b.Q)(U);_=G}else try{ge.body=(0,o.g)(ue,"Payload")}catch(re){return(0,b.Q)(re)}return new(n())(function(re){return P(_,ge).then(function(ce){return p.setContext({response:ce}),ce}).then((0,e.d)(p)).then(function(ce){return re.next(ce),re.complete(),ce}).catch(function(ce){"AbortError"!==ce.name&&(ce.result&&ce.result.errors&&ce.result.data&&re.next(ce.result),re.error(ce))}),function(){$&&$.abort()}})})}},72198:(le,k,y)=>{"use strict";y.d(k,{$:()=>a});var a=function(){if(typeof AbortController>"u")return{controller:!1,signal:!1};var O=new AbortController;return{controller:O,signal:O.signal}}},61168:(le,k,y)=>{"use strict";y.d(k,{$g:()=>n.$,E4:()=>m.E,Hg:()=>i.H,LQ:()=>l.L,SC:()=>m.S,U2:()=>r.U,dO:()=>a.d,gE:()=>O.g,rg:()=>o.r,uG:()=>e.u});var a=y(68503),O=y(75646),m=y(77949),r=y(51286),n=y(72198),o=y(3281),l=y(41309),e=y(19154),i=y(99398)},68503:(le,k,y)=>{"use strict";y.d(k,{d:()=>m});var a=y(23883),O=Object.prototype.hasOwnProperty;function m(r){return function(n){return n.text().then(function(o){try{return JSON.parse(o)}catch(e){var l=e;throw l.name="ServerParseError",l.response=n,l.statusCode=n.status,l.bodyText=o,l}}).then(function(o){return n.status>=300&&(0,a.P)(n,o,"Response not successful: Received status code "+n.status),!Array.isArray(o)&&!O.call(o,"data")&&!O.call(o,"errors")&&(0,a.P)(n,o,"Server response was missing for query '"+(Array.isArray(r)?r.map(function(l){return l.operationName}):r.operationName)+"'."),o})}}},99398:(le,k,y)=>{"use strict";y.d(k,{H:()=>O});var a=y(75646);function O(m,r){var n=[],o=function(T,M){n.push(T+"="+encodeURIComponent(M))};if("query"in r&&o("query",r.query),r.operationName&&o("operationName",r.operationName),r.variables){var l=void 0;try{l=(0,a.g)(r.variables,"Variables map")}catch(T){return{parseError:T}}o("variables",l)}if(r.extensions){var e=void 0;try{e=(0,a.g)(r.extensions,"Extensions map")}catch(T){return{parseError:T}}o("extensions",e)}var i="",h=m,d=m.indexOf("#");-1!==d&&(i=m.substr(d),h=m.substr(0,d));var g=-1===h.indexOf("?")?"?":"&";return{newURI:h+g+n.join("&")+i}}},77949:(le,k,y)=>{"use strict";y.d(k,{E:()=>l,S:()=>o});var a=y(97378),O=y(28133),o={http:{includeQuery:!0,includeExtensions:!1},headers:{accept:"*/*","content-type":"application/json"},options:{method:"POST"}},l=function(e,i){for(var h=[],d=2;d<arguments.length;d++)h[d-2]=arguments[d];var g=(0,a.pi)((0,a.pi)({},i.options),{headers:i.headers,credentials:i.credentials}),b=i.http||{};h.forEach(function(W){g=(0,a.pi)((0,a.pi)((0,a.pi)({},g),W.options),{headers:(0,a.pi)((0,a.pi)({},g.headers),W.headers)}),W.credentials&&(g.credentials=W.credentials),b=(0,a.pi)((0,a.pi)({},b),W.http)});var x=e.query,P={operationName:e.operationName,variables:e.variables};return b.includeExtensions&&(P.extensions=e.extensions),b.includeQuery&&(P.query=(0,O.print)(x)),{options:g,body:P}}},3281:(le,k,y)=>{"use strict";y.d(k,{r:()=>a});var a=function(O,m){return O.getContext().uri||("function"==typeof m?m(O):m||"/graphql")}},75646:(le,k,y)=>{"use strict";y.d(k,{g:()=>O});var a=y(76456),O=function(m,r){var n;try{n=JSON.stringify(m)}catch(l){var o=new a.ej(23);throw o.parseError=l,o}return n}},691:(le,k,y)=>{"use strict";y.d(k,{Q:()=>m});var a=y(13216),O=y.n(a);function m(r){return new(O())(function(n){n.error(r)})}},92986:(le,k,y)=>{"use strict";y.d(k,{p:()=>m});var a=y(13216),O=y.n(a);function m(r){return new(O())(function(n){r.then(function(o){n.next(o),n.complete()}).catch(n.error.bind(n))})}},23883:(le,k,y)=>{"use strict";y.d(k,{P:()=>a});var a=function(O,m,r){var n=new Error(r);throw n.name="ServerError",n.response=O,n.statusCode=O.status,n.result=m,n}},18451:(le,k,y)=>{"use strict";function O(m){var r=!1;return new Promise(function(n,o){m.subscribe({next:function(l){r||(r=!0,n(l))},error:o})})}y.d(k,{V:()=>O}),y(76456)},53152:(le,k,y)=>{"use strict";var a=y(58668),O=60103,m=60106;k.Fragment=60107,k.StrictMode=60108,k.Profiler=60114;var r=60109,n=60110,o=60112;k.Suspense=60113;var l=60115,e=60116;if("function"==typeof Symbol&&Symbol.for){var i=Symbol.for;O=i("react.element"),m=i("react.portal"),k.Fragment=i("react.fragment"),k.StrictMode=i("react.strict_mode"),k.Profiler=i("react.profiler"),r=i("react.provider"),n=i("react.context"),o=i("react.forward_ref"),k.Suspense=i("react.suspense"),l=i("react.memo"),e=i("react.lazy")}var h="function"==typeof Symbol&&Symbol.iterator;function g(te){for(var ge="https://reactjs.org/docs/error-decoder.html?invariant="+te,ue=1;ue<arguments.length;ue++)ge+="&args[]="+encodeURIComponent(arguments[ue]);return"Minified React error #"+te+"; visit "+ge+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var b={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},T={};function M(te,ge,ue){this.props=te,this.context=ge,this.refs=T,this.updater=ue||b}function R(){}function x(te,ge,ue){this.props=te,this.context=ge,this.refs=T,this.updater=ue||b}M.prototype.isReactComponent={},M.prototype.setState=function(te,ge){if("object"!=typeof te&&"function"!=typeof te&&null!=te)throw Error(g(85));this.updater.enqueueSetState(this,te,ge,"setState")},M.prototype.forceUpdate=function(te){this.updater.enqueueForceUpdate(this,te,"forceUpdate")},R.prototype=M.prototype;var P=x.prototype=new R;P.constructor=x,a(P,M.prototype),P.isPureReactComponent=!0;var W={current:null},V=Object.prototype.hasOwnProperty,Y={key:!0,ref:!0,__self:!0,__source:!0};function j(te,ge,ue){var H,$={},oe=null,ee=null;if(null!=ge)for(H in void 0!==ge.ref&&(ee=ge.ref),void 0!==ge.key&&(oe=""+ge.key),ge)V.call(ge,H)&&!Y.hasOwnProperty(H)&&($[H]=ge[H]);var L=arguments.length-2;if(1===L)$.children=ue;else if(1<L){for(var S=Array(L),B=0;B<L;B++)S[B]=arguments[B+2];$.children=S}if(te&&te.defaultProps)for(H in L=te.defaultProps)void 0===$[H]&&($[H]=L[H]);return{$$typeof:O,type:te,key:oe,ref:ee,props:$,_owner:W.current}}function C(te){return"object"==typeof te&&null!==te&&te.$$typeof===O}var _=/\/+/g;function v(te,ge){return"object"==typeof te&&null!==te&&null!=te.key?function p(te){var ge={"=":"=0",":":"=2"};return"$"+te.replace(/[=:]/g,function(ue){return ge[ue]})}(""+te.key):ge.toString(36)}function F(te,ge,ue,H,$){var oe=typeof te;("undefined"===oe||"boolean"===oe)&&(te=null);var ee=!1;if(null===te)ee=!0;else switch(oe){case"string":case"number":ee=!0;break;case"object":switch(te.$$typeof){case O:case m:ee=!0}}if(ee)return $=$(ee=te),te=""===H?"."+v(ee,0):H,Array.isArray($)?(ue="",null!=te&&(ue=te.replace(_,"$&/")+"/"),F($,ge,ue,"",function(B){return B})):null!=$&&(C($)&&($=function E(te,ge){return{$$typeof:O,type:te.type,key:ge,ref:te.ref,props:te.props,_owner:te._owner}}($,ue+(!$.key||ee&&ee.key===$.key?"":(""+$.key).replace(_,"$&/")+"/")+te)),ge.push($)),1;if(ee=0,H=""===H?".":H+":",Array.isArray(te))for(var L=0;L<te.length;L++){var S=H+v(oe=te[L],L);ee+=F(oe,ge,ue,S,$)}else if(S=function d(te){return null===te||"object"!=typeof te?null:"function"==typeof(te=h&&te[h]||te["@@iterator"])?te:null}(te),"function"==typeof S)for(te=S.call(te),L=0;!(oe=te.next()).done;)ee+=F(oe=oe.value,ge,ue,S=H+v(oe,L++),$);else if("object"===oe)throw ge=""+te,Error(g(31,"[object Object]"===ge?"object with keys {"+Object.keys(te).join(", ")+"}":ge));return ee}function q(te,ge,ue){if(null==te)return te;var H=[],$=0;return F(te,H,"","",function(oe){return ge.call(ue,oe,$++)}),H}function Q(te){if(-1===te._status){var ge=te._result;ge=ge(),te._status=0,te._result=ge,ge.then(function(ue){0===te._status&&(ue=ue.default,te._status=1,te._result=ue)},function(ue){0===te._status&&(te._status=2,te._result=ue)})}if(1===te._status)return te._result;throw te._result}var J={current:null};function ie(){var te=J.current;if(null===te)throw Error(g(321));return te}var Se={ReactCurrentDispatcher:J,ReactCurrentBatchConfig:{transition:0},ReactCurrentOwner:W,IsSomeRendererActing:{current:!1},assign:a};k.Children={map:q,forEach:function(te,ge,ue){q(te,function(){ge.apply(this,arguments)},ue)},count:function(te){var ge=0;return q(te,function(){ge++}),ge},toArray:function(te){return q(te,function(ge){return ge})||[]},only:function(te){if(!C(te))throw Error(g(143));return te}},k.Component=M,k.PureComponent=x,k.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Se,k.cloneElement=function(te,ge,ue){if(null==te)throw Error(g(267,te));var H=a({},te.props),$=te.key,oe=te.ref,ee=te._owner;if(null!=ge){if(void 0!==ge.ref&&(oe=ge.ref,ee=W.current),void 0!==ge.key&&($=""+ge.key),te.type&&te.type.defaultProps)var L=te.type.defaultProps;for(S in ge)V.call(ge,S)&&!Y.hasOwnProperty(S)&&(H[S]=void 0===ge[S]&&void 0!==L?L[S]:ge[S])}var S=arguments.length-2;if(1===S)H.children=ue;else if(1<S){L=Array(S);for(var B=0;B<S;B++)L[B]=arguments[B+2];H.children=L}return{$$typeof:O,type:te.type,key:$,ref:oe,props:H,_owner:ee}},k.createContext=function(te,ge){return void 0===ge&&(ge=null),(te={$$typeof:n,_calculateChangedBits:ge,_currentValue:te,_currentValue2:te,_threadCount:0,Provider:null,Consumer:null}).Provider={$$typeof:r,_context:te},te.Consumer=te},k.createElement=j,k.createFactory=function(te){var ge=j.bind(null,te);return ge.type=te,ge},k.createRef=function(){return{current:null}},k.forwardRef=function(te){return{$$typeof:o,render:te}},k.isValidElement=C,k.lazy=function(te){return{$$typeof:e,_payload:{_status:-1,_result:te},_init:Q}},k.memo=function(te,ge){return{$$typeof:l,type:te,compare:void 0===ge?null:ge}},k.useCallback=function(te,ge){return ie().useCallback(te,ge)},k.useContext=function(te,ge){return ie().useContext(te,ge)},k.useDebugValue=function(){},k.useEffect=function(te,ge){return ie().useEffect(te,ge)},k.useImperativeHandle=function(te,ge,ue){return ie().useImperativeHandle(te,ge,ue)},k.useLayoutEffect=function(te,ge){return ie().useLayoutEffect(te,ge)},k.useMemo=function(te,ge){return ie().useMemo(te,ge)},k.useReducer=function(te,ge,ue){return ie().useReducer(te,ge,ue)},k.useRef=function(te){return ie().useRef(te)},k.useState=function(te){return ie().useState(te)},k.version="17.0.2"},35497:(le,k,y)=>{"use strict";le.exports=y(53152)},76456:(le,k,y)=>{"use strict";y.d(k,{ej:()=>J,kG:()=>ie,U6:()=>ue});var a=function(ee,L){return(a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(S,B){S.__proto__=B}||function(S,B){for(var G in B)Object.prototype.hasOwnProperty.call(B,G)&&(S[G]=B[G])})(ee,L)},F="Invariant Violation",q=Object.setPrototypeOf,Q=void 0===q?function(ee,L){return ee.__proto__=L,ee}:q,J=function(ee){function L(S){void 0===S&&(S=F);var B=ee.call(this,"number"==typeof S?F+": "+S+" (see https://github.com/apollographql/invariant-packages)":S)||this;return B.framesToPop=1,B.name=F,Q(B,L.prototype),B}return function O(ee,L){if("function"!=typeof L&&null!==L)throw new TypeError("Class extends value "+String(L)+" is not a constructor or null");function S(){this.constructor=ee}a(ee,L),ee.prototype=null===L?Object.create(L):(S.prototype=L.prototype,new S)}(L,ee),L}(Error);function ie(ee,L){if(!ee)throw new J(L)}var ee,Se=["log","warn","error","silent"],te=Se.indexOf("log");function ge(ee){return function(){if(Se.indexOf(ee)>=te)return console[ee].apply(console,arguments)}}function ue(ee){var L=Se[te];return te=Math.max(0,Se.indexOf(ee)),L}(ee=ie||(ie={})).log=ge("log"),ee.warn=ge("warn"),ee.error=ge("error"),"object"==typeof process&&"object"==typeof process.env&&process},7416:(le,k,y)=>{"use strict";y.d(k,{a:()=>r});var a=y(35497),O=y(76456),m=y(48677),r=function(n){var o=(0,m.K)();return a.createElement(o.Consumer,null,function(l){return(0,O.kG)(l&&l.client,27),n.children(l.client)})}},48677:(le,k,y)=>{"use strict";y.d(k,{K:()=>r,Z:()=>r});var a=y(35497),m=new(y(30688).m?WeakMap:Map);function r(){var n=m.get(a.createContext);return n||((n=a.createContext({})).displayName="ApolloContext",m.set(a.createContext,n)),n}},68918:(le,k,y)=>{"use strict";y.d(k,{e:()=>r});var a=y(35497),O=y(76456),m=y(48677),r=function(n){var o=n.client,l=n.children,e=(0,m.K)();return a.createElement(e.Consumer,null,function(i){return void 0===i&&(i={}),o&&i.client!==o&&(i=Object.assign({},i,{client:o})),(0,O.kG)(i.client,28),a.createElement(e.Provider,{value:i},l)})}},43396:(le,k,y)=>{"use strict";y.d(k,{xJ:()=>r,td:()=>T,Db:()=>x,aM:()=>P,lY:()=>Y,mU:()=>V});var a=y(35497),O=y(76456),m=y(48677);function r(){var j=a.useContext((0,m.K)()).client;return(0,O.kG)(j,33),j}var n=y(97378),o=y(87788),l=y(81687),e=y(46046),i=y(69451),h=function(){function j(E,C){this.isMounted=!1,this.previousOptions={},this.context={},this.options={},this.options=E||{},this.context=C||{}}return j.prototype.getOptions=function(){return this.options},j.prototype.setOptions=function(E,C){void 0===C&&(C=!1),C&&!(0,o.D)(this.options,E)&&(this.previousOptions=this.options),this.options=E},j.prototype.unmount=function(){this.isMounted=!1},j.prototype.refreshClient=function(){var E=this.options&&this.options.client||this.context&&this.context.client;(0,O.kG)(!!E,29);var C=!1;return E!==this.client&&(C=!0,this.client=E,this.cleanup()),{client:this.client,isNew:C}},j.prototype.verifyDocumentType=function(E,C){var p=(0,i.E2)(E);(0,i.mw)(C),(0,i.mw)(p.type),(0,O.kG)(p.type===C,30)},j}(),d=function(j){function E(C){var v=C.onNewData,F=j.call(this,C.options,C.context)||this;return F.runLazy=!1,F.previous=Object.create(null),F.runLazyQuery=function(q){F.cleanup(),F.runLazy=!0,F.lazyOptions=q,F.onNewData()},F.getQueryResult=function(){var q=F.observableQueryFields(),Q=F.getOptions();if(Q.skip)q=(0,n.pi)((0,n.pi)({},q),{data:void 0,error:void 0,loading:!1,networkStatus:e.I.ready,called:!0});else if(F.currentObservable){var J=F.currentObservable.getCurrentResult(),ie=J.data,Se=J.loading,te=J.partial,ge=J.networkStatus,ue=J.errors,H=J.error;if(ue&&ue.length>0&&(H=new l.c({graphQLErrors:ue})),q=(0,n.pi)((0,n.pi)({},q),{data:ie,loading:Se,networkStatus:ge,error:H,called:!0}),!Se)if(H)Object.assign(q,{data:(F.currentObservable.getLastResult()||{}).data});else{var $=F.currentObservable.options.fetchPolicy;if(Q.partialRefetch&&te&&(!ie||0===Object.keys(ie).length)&&"cache-only"!==$)return Object.assign(q,{loading:!0,networkStatus:e.I.loading}),q.refetch(),q}}q.client=F.client,F.setOptions(Q,!0);var ee=F.previous.result;return F.previous.loading=ee&&ee.loading||!1,q.previousData=ee&&(ee.data||ee.previousData),F.previous.result=q,F.currentObservable&&F.currentObservable.resetQueryStoreErrors(),q},F.obsRefetch=function(q){var Q;return null===(Q=F.currentObservable)||void 0===Q?void 0:Q.refetch(q)},F.obsFetchMore=function(q){return F.currentObservable.fetchMore(q)},F.obsUpdateQuery=function(q){return F.currentObservable.updateQuery(q)},F.obsStartPolling=function(q){var Q;null===(Q=F.currentObservable)||void 0===Q||Q.startPolling(q)},F.obsStopPolling=function(){var q;null===(q=F.currentObservable)||void 0===q||q.stopPolling()},F.obsSubscribeToMore=function(q){return F.currentObservable.subscribeToMore(q)},F.onNewData=v,F}return(0,n.ZT)(E,j),E.prototype.execute=function(){this.refreshClient();var C=this.getOptions(),p=C.skip,_=C.query;return(p||_!==this.previous.query)&&(this.removeQuerySubscription(),this.removeObservable(!p),this.previous.query=_),this.updateObservableQuery(),this.isMounted&&this.startQuerySubscription(),this.getExecuteSsrResult()||this.getExecuteResult()},E.prototype.executeLazy=function(){return this.runLazy?[this.runLazyQuery,this.execute()]:[this.runLazyQuery,{loading:!1,networkStatus:e.I.ready,called:!1,data:void 0}]},E.prototype.fetchData=function(){var C=this,p=this.getOptions();return!p.skip&&!1!==p.ssr&&new Promise(function(_){return C.startQuerySubscription(_)})},E.prototype.afterExecute=function(C){var p=(void 0===C?{}:C).lazy,_=void 0!==p&&p;return this.isMounted=!0,(!_||this.runLazy)&&this.handleErrorOrCompleted(),this.previousOptions=this.getOptions(),this.unmount.bind(this)},E.prototype.cleanup=function(){this.removeQuerySubscription(),this.removeObservable(!0),delete this.previous.result},E.prototype.getOptions=function(){var C=j.prototype.getOptions.call(this);return this.lazyOptions&&(C.variables=(0,n.pi)((0,n.pi)({},C.variables),this.lazyOptions.variables),C.context=(0,n.pi)((0,n.pi)({},C.context),this.lazyOptions.context)),this.runLazy&&delete C.skip,C},E.prototype.ssrInitiated=function(){return this.context&&this.context.renderPromises},E.prototype.getExecuteResult=function(){var C=this.getQueryResult();return this.startQuerySubscription(),C},E.prototype.getExecuteSsrResult=function(){var C=this.getOptions(),_=C.skip,v=!1===C.ssr,F=this.refreshClient().client.disableNetworkFetches,q=(0,n.pi)({loading:!0,networkStatus:e.I.loading,called:!0,data:void 0,stale:!1,client:this.client},this.observableQueryFields());if(v&&(this.ssrInitiated()||F))return this.previous.result=q,q;if(this.ssrInitiated()){var Q=this.getQueryResult()||q;return Q.loading&&!_&&this.context.renderPromises.addQueryPromise(this,function(){return null}),Q}},E.prototype.prepareObservableQueryOptions=function(){var C=this.getOptions();this.verifyDocumentType(C.query,i.n_.Query);var p=C.displayName||"Query";return this.ssrInitiated()&&("network-only"===C.fetchPolicy||"cache-and-network"===C.fetchPolicy)&&(C.fetchPolicy="cache-first"),(0,n.pi)((0,n.pi)({},C),{displayName:p,context:C.context})},E.prototype.initializeObservableQuery=function(){if(this.ssrInitiated()&&(this.currentObservable=this.context.renderPromises.getSSRObservable(this.getOptions())),!this.currentObservable){var C=this.prepareObservableQueryOptions();this.previous.observableQueryOptions=(0,n.pi)((0,n.pi)({},C),{children:null}),this.currentObservable=this.refreshClient().client.watchQuery((0,n.pi)({},C)),this.ssrInitiated()&&this.context.renderPromises.registerSSRObservable(this.currentObservable,C)}},E.prototype.updateObservableQuery=function(){if(this.currentObservable){if(!this.getOptions().skip){var C=(0,n.pi)((0,n.pi)({},this.prepareObservableQueryOptions()),{children:null});(0,o.D)(C,this.previous.observableQueryOptions)||(this.previous.observableQueryOptions=C,this.currentObservable.setOptions(C).catch(function(){}))}}else this.initializeObservableQuery()},E.prototype.startQuerySubscription=function(C){var p=this;void 0===C&&(C=this.onNewData),!this.currentSubscription&&!this.getOptions().skip&&(this.currentSubscription=this.currentObservable.subscribe({next:function(_){var Q=p.previous.result;Q&&Q.loading===_.loading&&Q.networkStatus===_.networkStatus&&(0,o.D)(Q.data,_.data)||C()},error:function(_){if(p.resubscribeToQuery(),!_.hasOwnProperty("graphQLErrors"))throw _;var v=p.previous.result;(v&&v.loading||!(0,o.D)(_,p.previous.error))&&(p.previous.error=_,C())}}))},E.prototype.resubscribeToQuery=function(){this.removeQuerySubscription();var C=this.currentObservable;if(C){var p=C.getLastError(),_=C.getLastResult();C.resetLastResults(),this.startQuerySubscription(),Object.assign(C,{lastError:p,lastResult:_})}},E.prototype.handleErrorOrCompleted=function(){if(this.currentObservable&&this.previous.result){var C=this.previous.result,p=C.data,v=C.error;if(!C.loading){var F=this.getOptions(),Q=F.variables,J=F.onCompleted,ie=F.onError,Se=F.skip;if(this.previousOptions&&!this.previous.loading&&(0,o.D)(this.previousOptions.query,F.query)&&(0,o.D)(this.previousOptions.variables,Q))return;!J||v||Se?ie&&v&&ie(v):J(p)}}},E.prototype.removeQuerySubscription=function(){this.currentSubscription&&(this.currentSubscription.unsubscribe(),delete this.currentSubscription)},E.prototype.removeObservable=function(C){this.currentObservable&&(this.currentObservable.tearDownQuery(),C&&delete this.currentObservable)},E.prototype.observableQueryFields=function(){var C;return{variables:null===(C=this.currentObservable)||void 0===C?void 0:C.variables,refetch:this.obsRefetch,fetchMore:this.obsFetchMore,updateQuery:this.obsUpdateQuery,startPolling:this.obsStartPolling,stopPolling:this.obsStopPolling,subscribeToMore:this.obsSubscribeToMore}},E}(h);function b(j,E,C){void 0===C&&(C=!1);var p=(0,a.useContext)((0,m.K)()),_=(0,a.useReducer)(function(ge){return ge+1},0),v=_[0],F=_[1],q=E?(0,n.pi)((0,n.pi)({},E),{query:j}):{query:j},Q=(0,a.useRef)(),J=Q.current||(Q.current=new d({options:q,context:p,onNewData:function(){J.ssrInitiated()?F():Promise.resolve().then(function(){return Q.current&&F()})}}));J.setOptions(q),J.context=p;var Se=function g(j,E){var C=(0,a.useRef)();return(!C.current||!(0,o.D)(E,C.current.key))&&(C.current={key:E,value:j()}),C.current.value}(function(){return C?J.executeLazy():J.execute()},{options:(0,n.pi)((0,n.pi)({},q),{onError:void 0,onCompleted:void 0}),context:p,tick:v}),te=C?Se[1]:Se;return(0,a.useEffect)(function(){return function(){return J.cleanup()}},[]),(0,a.useEffect)(function(){return J.afterExecute({lazy:C})},[te.loading,te.networkStatus,te.error,te.data]),Se}function T(j,E){return b(j,E,!0)}var M=y(94308),R=function(j){function E(C){var p=C.options,v=C.result,F=C.setResult,q=j.call(this,p,C.context)||this;return q.runMutation=function(Q){void 0===Q&&(Q={}),q.onMutationStart();var J=q.generateNewMutationId();return q.mutate(Q).then(function(ie){return q.onMutationCompleted(ie,J),ie}).catch(function(ie){var Se=q.getOptions().onError;if(q.onMutationError(ie,J),Se)return Se(ie),{data:void 0,errors:ie};throw ie})},q.verifyDocumentType(p.mutation,i.n_.Mutation),q.result=v,q.setResult=F,q.mostRecentMutationId=0,q}return(0,n.ZT)(E,j),E.prototype.execute=function(C){return this.isMounted=!0,this.verifyDocumentType(this.getOptions().mutation,i.n_.Mutation),[this.runMutation,(0,n.pi)((0,n.pi)({},C),{client:this.refreshClient().client})]},E.prototype.afterExecute=function(){return this.isMounted=!0,this.unmount.bind(this)},E.prototype.cleanup=function(){},E.prototype.mutate=function(C){return this.refreshClient().client.mutate((0,M.J)(this.getOptions(),C))},E.prototype.onMutationStart=function(){!this.result.loading&&!this.getOptions().ignoreResults&&this.updateResult({loading:!0,error:void 0,data:void 0,called:!0})},E.prototype.onMutationCompleted=function(C,p){var _=this.getOptions(),v=_.onCompleted,F=_.ignoreResults,q=C.data,Q=C.errors,J=Q&&Q.length>0?new l.c({graphQLErrors:Q}):void 0;this.isMostRecentMutation(p)&&!F&&this.updateResult({called:!0,loading:!1,data:q,error:J}),v&&v(q)},E.prototype.onMutationError=function(C,p){this.isMostRecentMutation(p)&&this.updateResult({loading:!1,error:C,data:void 0,called:!0})},E.prototype.generateNewMutationId=function(){return++this.mostRecentMutationId},E.prototype.isMostRecentMutation=function(C){return this.mostRecentMutationId===C},E.prototype.updateResult=function(C){if(this.isMounted&&(!this.previousResult||!(0,o.D)(this.previousResult,C)))return this.setResult(C),this.previousResult=C,C},E}(h);function x(j,E){var C=(0,a.useContext)((0,m.K)()),p=(0,a.useState)({called:!1,loading:!1}),_=p[0],v=p[1],F=E?(0,n.pi)((0,n.pi)({},E),{mutation:j}):{mutation:j},q=(0,a.useRef)(),J=function Q(){return q.current||(q.current=new R({options:F,context:C,result:_,setResult:v})),q.current}();return J.setOptions(F),J.context=C,(0,a.useEffect)(function(){return J.afterExecute()}),J.execute(_)}function P(j,E){return b(j,E,!1)}var W=function(j){function E(C){var p=C.options,v=C.setResult,F=j.call(this,p,C.context)||this;return F.currentObservable={},F.setResult=v,F.initialize(p),F}return(0,n.ZT)(E,j),E.prototype.execute=function(C){if(!0===this.getOptions().skip)return this.cleanup(),{loading:!1,error:void 0,data:void 0,variables:this.getOptions().variables};var p=C;this.refreshClient().isNew&&(p=this.getLoadingResult());var _=this.getOptions().shouldResubscribe;return"function"==typeof _&&(_=!!_(this.getOptions())),!1!==_&&this.previousOptions&&Object.keys(this.previousOptions).length>0&&(this.previousOptions.subscription!==this.getOptions().subscription||!(0,o.D)(this.previousOptions.variables,this.getOptions().variables)||this.previousOptions.skip!==this.getOptions().skip)&&(this.cleanup(),p=this.getLoadingResult()),this.initialize(this.getOptions()),this.startSubscription(),this.previousOptions=this.getOptions(),(0,n.pi)((0,n.pi)({},p),{variables:this.getOptions().variables})},E.prototype.afterExecute=function(){this.isMounted=!0},E.prototype.cleanup=function(){this.endSubscription(),delete this.currentObservable.query},E.prototype.initialize=function(C){this.currentObservable.query||!0===this.getOptions().skip||(this.currentObservable.query=this.refreshClient().client.subscribe({query:C.subscription,variables:C.variables,fetchPolicy:C.fetchPolicy,context:C.context}))},E.prototype.startSubscription=function(){this.currentObservable.subscription||(this.currentObservable.subscription=this.currentObservable.query.subscribe({next:this.updateCurrentData.bind(this),error:this.updateError.bind(this),complete:this.completeSubscription.bind(this)}))},E.prototype.getLoadingResult=function(){return{loading:!0,error:void 0,data:void 0}},E.prototype.updateResult=function(C){this.isMounted&&this.setResult(C)},E.prototype.updateCurrentData=function(C){var p=this.getOptions().onSubscriptionData;this.updateResult({data:C.data,loading:!1,error:void 0}),p&&p({client:this.refreshClient().client,subscriptionData:C})},E.prototype.updateError=function(C){this.updateResult({error:C,loading:!1})},E.prototype.completeSubscription=function(){var C=this;Promise.resolve().then(function(){var p=C.getOptions().onSubscriptionComplete;p&&p(),C.endSubscription()})},E.prototype.endSubscription=function(){this.currentObservable.subscription&&(this.currentObservable.subscription.unsubscribe(),delete this.currentObservable.subscription)},E}(h);function V(j,E){var C=(0,a.useContext)((0,m.K)()),p=E?(0,n.pi)((0,n.pi)({},E),{subscription:j}):{subscription:j},_=(0,a.useState)({loading:!p.skip,error:void 0,data:void 0}),v=_[0],F=_[1],q=(0,a.useRef)(),J=function Q(){return q.current||(q.current=new W({options:p,context:C,setResult:F})),q.current}();return J.setOptions(p,!0),J.context=C,(0,a.useEffect)(function(){return J.afterExecute()}),(0,a.useEffect)(function(){return J.cleanup.bind(J)},[]),J.execute(v)}function Y(j){var E=j(),C=(0,a.useState)(E)[1];return(0,a.useEffect)(function(){var p=j();if(E===p)return j.onNextChange(C);C(p)},[E]),E}},29198:(le,k,y)=>{"use strict";y.r(k),y.d(k,{ApolloConsumer:()=>O.a,ApolloProvider:()=>a.e,DocumentType:()=>n.n_,getApolloContext:()=>m.K,operationName:()=>n.mw,parser:()=>n.E2,resetApolloContext:()=>m.Z,useApolloClient:()=>r.xJ,useLazyQuery:()=>r.td,useMutation:()=>r.Db,useQuery:()=>r.aM,useReactiveVar:()=>r.lY,useSubscription:()=>r.mU});var a=y(68918),O=y(7416),m=y(48677),r=y(43396),n=y(69451),o=y(35067),e={};for(const i in o)["default","ApolloProvider","ApolloConsumer","getApolloContext","resetApolloContext","DocumentType","operationName","parser","useApolloClient","useLazyQuery","useMutation","useQuery","useReactiveVar","useSubscription"].indexOf(i)<0&&(e[i]=()=>o[i]);y.d(k,e)},69451:(le,k,y)=>{"use strict";y.d(k,{E2:()=>n,mw:()=>r,n_:()=>O});var a=y(76456),O=function(o){return o[o.Query=0]="Query",o[o.Mutation=1]="Mutation",o[o.Subscription=2]="Subscription",o}(O||{}),m=new Map;function r(o){var l;switch(o){case O.Query:l="Query";break;case O.Mutation:l="Mutation";break;case O.Subscription:l="Subscription"}return l}function n(o){var i,l=m.get(o);if(l)return l;(0,a.kG)(!!o&&!!o.kind,34);var d=o.definitions.filter(function(P){return"FragmentDefinition"===P.kind}),g=o.definitions.filter(function(P){return"OperationDefinition"===P.kind&&"query"===P.operation}),b=o.definitions.filter(function(P){return"OperationDefinition"===P.kind&&"mutation"===P.operation}),T=o.definitions.filter(function(P){return"OperationDefinition"===P.kind&&"subscription"===P.operation});(0,a.kG)(!d.length||g.length||b.length||T.length,35),(0,a.kG)(g.length+b.length+T.length<=1,36),i=g.length?O.Query:O.Mutation,!g.length&&!b.length&&(i=O.Subscription);var M=g.length?g:b.length?b:T;(0,a.kG)(1===M.length,37);var R=M[0],x={name:R.name&&"Name"===R.name.kind?R.name.value:"data",type:i,variables:R.variableDefinitions||[]};return m.set(o,x),x}},35067:()=>{},92573:(le,k,y)=>{"use strict";function a(O){return Array.isArray(O)&&O.length>0}y.d(k,{O:()=>a})},30688:(le,k,y)=>{"use strict";y.d(k,{m:()=>a});var a="function"==typeof WeakMap&&!("object"==typeof navigator&&"ReactNative"===navigator.product)},57303:(le,k,y)=>{"use strict";function a(){for(var O=[],m=0;m<arguments.length;m++)O[m]=arguments[m];var r=Object.create(null);return O.forEach(function(n){n&&Object.keys(n).forEach(function(o){var l=n[o];void 0!==l&&(r[o]=l)})}),r}y.d(k,{o:()=>a})},58856:(le,k,y)=>{"use strict";y.d(k,{Ee:()=>m,bw:()=>r,w0:()=>l});var a=y(97378),O=Object.prototype.hasOwnProperty;function m(){for(var e=[],i=0;i<arguments.length;i++)e[i]=arguments[i];return r(e)}function r(e){var i=e[0]||{},h=e.length;if(h>1)for(var d=new l,g=1;g<h;++g)i=d.merge(i,e[g]);return i}function n(e){return null!==e&&"object"==typeof e}var o=function(e,i,h){return this.merge(e[h],i[h])},l=function(){function e(i){void 0===i&&(i=o),this.reconciler=i,this.isObject=n,this.pastCopies=new Set}return e.prototype.merge=function(i,h){for(var d=this,g=[],b=2;b<arguments.length;b++)g[b-2]=arguments[b];return n(h)&&n(i)?(Object.keys(h).forEach(function(T){if(O.call(i,T)){var M=i[T];if(h[T]!==M){var R=d.reconciler.apply(d,(0,a.pr)([i,h,T],g));R!==M&&((i=d.shallowCopyForMerge(i))[T]=R)}}else(i=d.shallowCopyForMerge(i))[T]=h[T]}),i):h},e.prototype.shallowCopyForMerge=function(i){return n(i)&&!this.pastCopies.has(i)&&(i=Array.isArray(i)?i.slice(0):(0,a.pi)({__proto__:Object.getPrototypeOf(i)},i),this.pastCopies.add(i)),i},e}()},45e3:(le,k,y)=>{"use strict";y.d(k,{FS:()=>n,LZ:()=>m,mj:()=>o});var a=y(11194),O=y(76456);function m(i,h){var d=i.directives;return!d||!d.length||function e(i){var h=[];return i&&i.length&&i.forEach(function(d){if(function l(i){var h=i.name.value;return"skip"===h||"include"===h}(d)){var g=d.arguments;(0,O.kG)(g&&1===g.length,39);var T=g[0];(0,O.kG)(T.name&&"if"===T.name.value,40);var M=T.value;(0,O.kG)(M&&("Variable"===M.kind||"BooleanValue"===M.kind),41),h.push({directive:d,ifArgument:T})}}),h}(d).every(function(g){var b=g.directive,T=g.ifArgument,M=!1;return"Variable"===T.value.kind?(0,O.kG)(void 0!==(M=h&&h[T.value.name.value]),38):M=T.value.value,"skip"===b.name.value?!M:M})}function n(i,h){return function r(i){var h=[];return(0,a.Vn)(i,{Directive:function(d){h.push(d.name.value)}}),h}(h).some(function(d){return i.indexOf(d)>-1})}function o(i){return i&&n(["client"],i)&&n(["export"],i)}},4789:(le,k,y)=>{"use strict";y.d(k,{F:()=>r,Yk:()=>m,hi:()=>n});var a=y(97378),O=y(76456);function m(o,l){var e=l,i=[];return o.definitions.forEach(function(d){if("OperationDefinition"===d.kind)throw new O.ej(42);"FragmentDefinition"===d.kind&&i.push(d)}),typeof e>"u"&&((0,O.kG)(1===i.length,43),e=i[0].name.value),(0,a.pi)((0,a.pi)({},o),{definitions:(0,a.pr)([{kind:"OperationDefinition",operation:"query",selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:e}}]}}],o.definitions)})}function r(o){void 0===o&&(o=[]);var l={};return o.forEach(function(e){l[e.name.value]=e}),l}function n(o,l){switch(o.kind){case"InlineFragment":return o;case"FragmentSpread":var e=l&&l[o.name.value];return(0,O.kG)(e,44),e;default:return null}}},15401:(le,k,y)=>{"use strict";y.d(k,{$H:()=>r,A$:()=>m,O4:()=>h,iW:()=>l,kU:()=>o,p$:()=>i,pD:()=>e,rY:()=>n});var a=y(76456),O=y(53019);function m(d){(0,a.kG)(d&&"Document"===d.kind,45);var g=d.definitions.filter(function(b){return"FragmentDefinition"!==b.kind}).map(function(b){if("OperationDefinition"!==b.kind)throw new a.ej(46);return b});return(0,a.kG)(g.length<=1,47),d}function r(d){return m(d),d.definitions.filter(function(g){return"OperationDefinition"===g.kind})[0]}function n(d){return d.definitions.filter(function(g){return"OperationDefinition"===g.kind&&g.name}).map(function(g){return g.name.value})[0]||null}function o(d){return d.definitions.filter(function(g){return"FragmentDefinition"===g.kind})}function l(d){var g=r(d);return(0,a.kG)(g&&"query"===g.operation,48),g}function e(d){(0,a.kG)("Document"===d.kind,49),(0,a.kG)(d.definitions.length<=1,50);var g=d.definitions[0];return(0,a.kG)("FragmentDefinition"===g.kind,51),g}function i(d){m(d);for(var g,b=0,T=d.definitions;b<T.length;b++){var M=T[b];if("OperationDefinition"===M.kind){var R=M.operation;if("query"===R||"mutation"===R||"subscription"===R)return M}"FragmentDefinition"===M.kind&&!g&&(g=M)}if(g)return g;throw new a.ej(52)}function h(d){var g=Object.create(null),b=d&&d.variableDefinitions;return b&&b.length&&b.forEach(function(T){T.defaultValue&&(0,O.vb)(g,T.variable.name,T.defaultValue)}),g}},53019:(le,k,y)=>{"use strict";y.d(k,{Ao:()=>C,My:()=>E,NC:()=>V,PT:()=>W,Yk:()=>o,kQ:()=>n,qw:()=>j,u2:()=>Y,vb:()=>R,vf:()=>x});var a=y(29278),O=y.n(a),m=y(76456),r=y(4789);function n(p){return{__ref:String(p)}}function o(p){return!(!p||"object"!=typeof p||"string"!=typeof p.__ref)}function R(p,_,v,F){if(function i(p){return"IntValue"===p.kind}(v)||function h(p){return"FloatValue"===p.kind}(v))p[_.value]=Number(v.value);else if(function e(p){return"BooleanValue"===p.kind}(v)||function l(p){return"StringValue"===p.kind}(v))p[_.value]=v.value;else if(function g(p){return"ObjectValue"===p.kind}(v)){var q={};v.fields.map(function(J){return R(q,J.name,J.value,F)}),p[_.value]=q}else if(function d(p){return"Variable"===p.kind}(v))p[_.value]=(F||{})[v.name.value];else if(function b(p){return"ListValue"===p.kind}(v))p[_.value]=v.values.map(function(J){var ie={};return R(ie,_,J,F),ie[_.value]});else if(function T(p){return"EnumValue"===p.kind}(v))p[_.value]=v.value;else{if(!function M(p){return"NullValue"===p.kind}(v))throw new m.ej(53);p[_.value]=null}}function x(p,_){var v=null;p.directives&&(v={},p.directives.forEach(function(q){v[q.name.value]={},q.arguments&&q.arguments.forEach(function(Q){return R(v[q.name.value],Q.name,Q.value,_)})}));var F=null;return p.arguments&&p.arguments.length&&(F={},p.arguments.forEach(function(q){return R(F,q.name,q.value,_)})),W(p.name.value,F,v)}var P=["connection","include","skip","client","rest","export"];function W(p,_,v){if(_&&v&&v.connection&&v.connection.key){if(v.connection.filter&&v.connection.filter.length>0){var F=v.connection.filter?v.connection.filter:[];F.sort();var q={};return F.forEach(function(ie){q[ie]=_[ie]}),v.connection.key+"("+JSON.stringify(q)+")"}return v.connection.key}var Q=p;if(_){var J=O()(_);Q+="("+J+")"}return v&&Object.keys(v).forEach(function(ie){-1===P.indexOf(ie)&&(v[ie]&&Object.keys(v[ie]).length?Q+="@"+ie+"("+JSON.stringify(v[ie])+")":Q+="@"+ie)}),Q}function V(p,_){if(p.arguments&&p.arguments.length){var v={};return p.arguments.forEach(function(F){return R(v,F.name,F.value,_)}),v}return null}function Y(p){return p.alias?p.alias.value:p.name.value}function j(p,_,v){if("string"==typeof p.__typename)return p.__typename;for(var F=0,q=_.selections;F<q.length;F++){var Q=q[F];if(E(Q)){if("__typename"===Q.name.value)return p[Y(Q)]}else{var J=j(p,(0,r.hi)(Q,v).selectionSet,v);if("string"==typeof J)return J}}}function E(p){return"Field"===p.kind}function C(p){return"InlineFragment"===p.kind}},12578:(le,k,y)=>{"use strict";y.d(k,{Gw:()=>b,aL:()=>j,ob:()=>E,Fo:()=>M});var a=y(97378),O=y(11194),r=(y(76456),y(15401));function n(C,p,_){var v=0;return C.forEach(function(F,q){p.call(this,F,q,C)&&(C[v++]=F)},_),C.length=v,C}var o=y(53019),l=y(4789),e={kind:"Field",name:{kind:"Name",value:"__typename"}};function i(C,p){return C.selectionSet.selections.every(function(_){return"FragmentSpread"===_.kind&&i(p[_.name.value],p)})}function h(C){return i((0,r.$H)(C)||(0,r.pD)(C),(0,l.F)((0,r.kU)(C)))?null:C}function d(C){return function(_){return C.some(function(v){return v.name&&v.name===_.name.value||v.test&&v.test(_)})}}function g(C,p){var _=Object.create(null),v=[],F=Object.create(null),q=[],Q=h((0,O.Vn)(p,{Variable:{enter:function(J,ie,Se){"VariableDefinition"!==Se.kind&&(_[J.name.value]=!0)}},Field:{enter:function(J){if(C&&J.directives&&C.some(function(Se){return Se.remove})&&J.directives&&J.directives.some(d(C)))return J.arguments&&J.arguments.forEach(function(Se){"Variable"===Se.value.kind&&v.push({name:Se.value.name.value})}),J.selectionSet&&Y(J.selectionSet).forEach(function(Se){q.push({name:Se.name.value})}),null}},FragmentSpread:{enter:function(J){F[J.name.value]=!0}},Directive:{enter:function(J){if(d(C)(J))return null}}}));return Q&&n(v,function(J){return!!J.name&&!_[J.name]}).length&&(Q=function W(C,p){var _=function P(C){return function(_){return C.some(function(v){return _.value&&"Variable"===_.value.kind&&_.value.name&&(v.name===_.value.name.value||v.test&&v.test(_))})}}(C);return h((0,O.Vn)(p,{OperationDefinition:{enter:function(v){return(0,a.pi)((0,a.pi)({},v),{variableDefinitions:v.variableDefinitions?v.variableDefinitions.filter(function(F){return!C.some(function(q){return q.name===F.variable.name.value})}):[]})}},Field:{enter:function(v){var F=C.some(function(Q){return Q.remove});if(F){var q=0;if(v.arguments&&v.arguments.forEach(function(Q){_(Q)&&(q+=1)}),1===q)return null}}},Argument:{enter:function(v){if(_(v))return null}}}))}(v,Q)),Q&&n(q,function(J){return!!J.name&&!F[J.name]}).length&&(Q=function V(C,p){function _(v){if(C.some(function(F){return F.name===v.name.value}))return null}return h((0,O.Vn)(p,{FragmentSpread:{enter:_},FragmentDefinition:{enter:_}}))}(q,Q)),Q}function b(C){return(0,O.Vn)((0,r.A$)(C),{SelectionSet:{enter:function(p,_,v){if(!v||"OperationDefinition"!==v.kind){var F=p.selections;if(F&&!F.some(function(J){return(0,o.My)(J)&&("__typename"===J.name.value||0===J.name.value.lastIndexOf("__",0))})){var Q=v;if(!((0,o.My)(Q)&&Q.directives&&Q.directives.some(function(J){return"export"===J.name.value})))return(0,a.pi)((0,a.pi)({},p),{selections:(0,a.pr)(F,[e])})}}}}})}b.added=function(C){return C===e};var T={test:function(C){var p="connection"===C.name.value;return p&&(!C.arguments||C.arguments.some(function(_){return"key"===_.name.value})),p}};function M(C){return g([T],(0,r.A$)(C))}function Y(C){var p=[];return C.selections.forEach(function(_){((0,o.My)(_)||(0,o.Ao)(_))&&_.selectionSet?Y(_.selectionSet).forEach(function(v){return p.push(v)}):"FragmentSpread"===_.kind&&p.push(_)}),p}function j(C){return"query"===(0,r.p$)(C).operation?C:(0,O.Vn)(C,{OperationDefinition:{enter:function(F){return(0,a.pi)((0,a.pi)({},F),{operation:"query"})}}})}function E(C){(0,r.A$)(C);var p=g([{test:function(_){return"client"===_.name.value},remove:!0}],C);return p&&(p=(0,O.Vn)(p,{FragmentDefinition:{enter:function(_){if(_.selectionSet&&_.selectionSet.selections.every(function(F){return(0,o.My)(F)&&"__typename"===F.name.value}))return null}}})),p}},14423:(le,k,y)=>{"use strict";function a(O,m,r){var n=[];O.forEach(function(o){return o[m]&&n.push(o)}),n.forEach(function(o){return o[m](r)})}y.d(k,{p:()=>a})},77325:(le,k,y)=>{"use strict";y.d(k,{D:()=>m});var a=y(13216),O=y.n(a);function m(r){function n(o){Object.defineProperty(r,o,{value:O()})}return"function"==typeof Symbol&&Symbol.species&&n(Symbol.species),n("@@species"),r}},47981:(le,k,y)=>{"use strict";y.d(k,{N:()=>o});for(var a={},O={},m=0;m<256;m++){var r=m.toString(16).toLowerCase();1===r.length&&(r="0".concat(r)),a[m]=r,O[r]=m}function o(l){for(var e="",i=0;i<l.byteLength;i++)e+=a[l[i]];return e}},29460:(le,k,y)=>{"use strict";y.r(k),y.d(k,{fromUtf8:()=>n,toUtf8:()=>o});var n=function(l){return"function"==typeof TextEncoder?function m(l){return(new TextEncoder).encode(l)}(l):function(l){for(var e=[],i=0,h=l.length;i<h;i++){var d=l.charCodeAt(i);if(d<128)e.push(d);else if(d<2048)e.push(d>>6|192,63&d|128);else if(i+1<l.length&&55296==(64512&d)&&56320==(64512&l.charCodeAt(i+1))){var g=65536+((1023&d)<<10)+(1023&l.charCodeAt(++i));e.push(g>>18|240,g>>12&63|128,g>>6&63|128,63&g|128)}else e.push(d>>12|224,d>>6&63|128,63&d|128)}return Uint8Array.from(e)}(l)},o=function(l){return"function"==typeof TextDecoder?function r(l){return new TextDecoder("utf-8").decode(l)}(l):function(l){for(var e="",i=0,h=l.length;i<h;i++){var d=l[i];if(d<128)e+=String.fromCharCode(d);else if(192<=d&&d<224){var g=l[++i];e+=String.fromCharCode((31&d)<<6|63&g)}else if(240<=d&&d<365){var T="%"+[d,l[++i],l[++i],l[++i]].map(function(M){return M.toString(16)}).join("%");e+=decodeURIComponent(T)}else e+=String.fromCharCode((15&d)<<12|(63&l[++i])<<6|63&l[++i])}return e}(l)}},83753:(le,k,y)=>{"use strict";y.d(k,{g7:()=>l});var a=null,O={},m=1,n="@wry/context:Slot",o=Array,l=o[n]||function(){var M=function(){function M(){this.id=["slot",m++,Date.now(),Math.random().toString(36).slice(2)].join(":")}return M.prototype.hasValue=function(){for(var R=a;R;R=R.parent)if(this.id in R.slots){var x=R.slots[this.id];if(x===O)break;return R!==a&&(a.slots[this.id]=x),!0}return a&&(a.slots[this.id]=O),!1},M.prototype.getValue=function(){if(this.hasValue())return a.slots[this.id]},M.prototype.withValue=function(R,x,P,W){var V,Y=((V={__proto__:null})[this.id]=R,V),j=a;a={parent:j,slots:Y};try{return x.apply(W,P)}finally{a=j}},M.bind=function(R){var x=a;return function(){var P=a;try{return a=x,R.apply(this,arguments)}finally{a=P}}},M.noContext=function(R,x,P){if(!a)return R.apply(P,x);var W=a;try{return a=null,R.apply(P,x)}finally{a=W}},M}();try{Object.defineProperty(o,n,{value:o[n]=M,enumerable:!1,writable:!1,configurable:!1})}finally{return M}}()},87788:(le,k,y)=>{"use strict";y.d(k,{D:()=>o});var a=Object.prototype,O=a.toString,m=a.hasOwnProperty,r=Function.prototype.toString,n=new Map;function o(b,T){try{return l(b,T)}finally{n.clear()}}function l(b,T){if(b===T)return!0;var M=O.call(b);if(M!==O.call(T))return!1;switch(M){case"[object Array]":if(b.length!==T.length)return!1;case"[object Object]":if(g(b,T))return!0;var x=e(b),P=e(T),W=x.length;if(W!==P.length)return!1;for(var V=0;V<W;++V)if(!m.call(T,x[V]))return!1;for(V=0;V<W;++V){var Y=x[V];if(!l(b[Y],T[Y]))return!1}return!0;case"[object Error]":return b.name===T.name&&b.message===T.message;case"[object Number]":if(b!=b)return T!=T;case"[object Boolean]":case"[object Date]":return+b==+T;case"[object RegExp]":case"[object String]":return b==""+T;case"[object Map]":case"[object Set]":if(b.size!==T.size)return!1;if(g(b,T))return!0;for(var j=b.entries(),E="[object Map]"===M;;){var C=j.next();if(C.done)break;var p=C.value,_=p[0],v=p[1];if(!T.has(_)||E&&!l(v,T.get(_)))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]":b=new Uint8Array(b),T=new Uint8Array(T);case"[object DataView]":var F=b.byteLength;if(F===T.byteLength)for(;F--&&b[F]===T[F];);return-1===F;case"[object AsyncFunction]":case"[object GeneratorFunction]":case"[object AsyncGeneratorFunction]":case"[object Function]":var q=r.call(b);return q===r.call(T)&&!function d(b,T){var M=b.length-T.length;return M>=0&&b.indexOf(T,M)===M}(q,h)}return!1}function e(b){return Object.keys(b).filter(i,b)}function i(b){return void 0!==this[b]}var h="{ [native code] }";function g(b,T){var M=n.get(b);if(M){if(M.has(T))return!0}else n.set(b,M=new Set);return M.add(T),!1}},15541:(le,k,y)=>{"use strict";y.d(k,{B:()=>n});var a=function(){return Object.create(null)},O=Array.prototype,m=O.forEach,r=O.slice,n=function(){function l(e,i){void 0===e&&(e=!0),void 0===i&&(i=a),this.weakness=e,this.makeData=i}return l.prototype.lookup=function(){for(var e=[],i=0;i<arguments.length;i++)e[i]=arguments[i];return this.lookupArray(e)},l.prototype.lookupArray=function(e){var i=this;return m.call(e,function(h){return i=i.getChildTrie(h)}),i.data||(i.data=this.makeData(r.call(e)))},l.prototype.getChildTrie=function(e){var i=this.weakness&&function o(l){switch(typeof l){case"object":if(null===l)break;case"function":return!0}return!1}(e)?this.weak||(this.weak=new WeakMap):this.strong||(this.strong=new Map),h=i.get(e);return h||i.set(e,h=new l(this.weakness,this.makeData)),h},l}()},56846:(le,k,y)=>{"use strict";y.r(k),y.d(k,{addTypenameToDocument:()=>fn,argumentsObjectFromField:()=>Bt,assign:()=>Er,buildQueryFromSelectionSet:()=>kt,canUseWeakMap:()=>At,checkDocument:()=>Rt,cloneDeep:()=>fr,createFragmentMap:()=>It,getDefaultValues:()=>et,getDirectiveInfoFromField:()=>ir,getDirectiveNames:()=>Nr,getDirectivesFromDocument:()=>pn,getEnv:()=>lr,getFragmentDefinition:()=>Ht,getFragmentDefinitions:()=>ot,getFragmentQueryDocument:()=>an,getInclusionDirectives:()=>or,getMainDefinition:()=>ur,getMutationDefinition:()=>_r,getOperationDefinition:()=>sr,getOperationDefinitionOrDie:()=>rt,getOperationName:()=>on,getQueryDefinition:()=>sn,getStoreKeyName:()=>pt,graphQLResultHasError:()=>dn,hasClientExports:()=>ar,hasDirectives:()=>Ct,isDevelopment:()=>Kr,isEnv:()=>Lt,isEqual:()=>ae,isField:()=>mt,isIdValue:()=>Pt,isInlineFragment:()=>xt,isJsonValue:()=>qt,isNumberValue:()=>je,isProduction:()=>xr,isScalarValue:()=>Me,isTest:()=>Yt,maybeDeepFreeze:()=>zr,mergeDeep:()=>hr,mergeDeepArray:()=>Hr,removeArgumentsFromDocument:()=>Vt,removeClientSetsFromDocument:()=>Ar,removeConnectionDirectiveFromDocument:()=>hn,removeDirectivesFromDocument:()=>Sr,removeFragmentSpreadFromDocument:()=>Wr,resultKeyNameFromField:()=>jt,shouldInclude:()=>zt,storeKeyNameFromField:()=>br,stripSymbols:()=>Gr,toIdValue:()=>Tt,tryFunctionOrLogError:()=>Tr,valueFromNode:()=>Dt,valueToObjectRepresentation:()=>Ot,variablesInOperation:()=>un,warnOnceInDevelopment:()=>pr});var X,a=y(11194),O=function(X,fe){return(O=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(pe,Oe){pe.__proto__=Oe}||function(pe,Oe){for(var Ce in Oe)Oe.hasOwnProperty(Ce)&&(pe[Ce]=Oe[Ce])})(X,fe)},_="Invariant Violation",v=Object.setPrototypeOf,F=void 0===v?function(X,fe){return X.__proto__=fe,X}:v,q=function(X){function fe(pe){void 0===pe&&(pe=_);var Oe=X.call(this,"number"==typeof pe?_+": "+pe+" (see https://github.com/apollographql/invariant-packages)":pe)||this;return Oe.framesToPop=1,Oe.name=_,F(Oe,fe.prototype),Oe}return function m(X,fe){function pe(){this.constructor=X}O(X,fe),X.prototype=null===fe?Object.create(fe):(pe.prototype=fe.prototype,new pe)}(fe,X),fe}(Error);function Q(X,fe){if(!X)throw new q(fe)}function J(X){return function(){return console[X].apply(console,arguments)}}(X=Q||(Q={})).warn=J("warn"),X.error=J("error");var ie={env:{}};if("object"==typeof process)ie=process;else try{Function("stub","process = stub")(ie)}catch{}var H=function(){return H=Object.assign||function(fe){for(var pe,Oe=1,Ce=arguments.length;Oe<Ce;Oe++)for(var xe in pe=arguments[Oe])Object.prototype.hasOwnProperty.call(pe,xe)&&(fe[xe]=pe[xe]);return fe},H.apply(this,arguments)};function be(){for(var X=0,fe=0,pe=arguments.length;fe<pe;fe++)X+=arguments[fe].length;var Oe=Array(X),Ce=0;for(fe=0;fe<pe;fe++)for(var xe=arguments[fe],Fe=0,Ue=xe.length;Fe<Ue;Fe++,Ce++)Oe[Ce]=xe[Fe];return Oe}var A=y(29278),I=y.n(A),ne=Object.prototype,me=ne.toString,Re=ne.hasOwnProperty,Pe=new Map;function ae(X,fe){try{return ye(X,fe)}finally{Pe.clear()}}function ye(X,fe){if(X===fe)return!0;var pe=me.call(X);if(pe!==me.call(fe))return!1;switch(pe){case"[object Array]":if(X.length!==fe.length)return!1;case"[object Object]":if(_e(X,fe))return!0;var Ce=Object.keys(X),xe=Object.keys(fe),Fe=Ce.length;if(Fe!==xe.length)return!1;for(var Ue=0;Ue<Fe;++Ue)if(!Re.call(fe,Ce[Ue]))return!1;for(Ue=0;Ue<Fe;++Ue){var Ge=Ce[Ue];if(!ye(X[Ge],fe[Ge]))return!1}return!0;case"[object Error]":return X.name===fe.name&&X.message===fe.message;case"[object Number]":if(X!=X)return fe!=fe;case"[object Boolean]":case"[object Date]":return+X==+fe;case"[object RegExp]":case"[object String]":return X==""+fe;case"[object Map]":case"[object Set]":if(X.size!==fe.size)return!1;if(_e(X,fe))return!0;for(var Ne=X.entries(),tt="[object Map]"===pe;;){var dt=Ne.next();if(dt.done)break;var Xe=dt.value,ft=Xe[0],St=Xe[1];if(!fe.has(ft)||tt&&!ye(St,fe.get(ft)))return!1}return!0}return!1}function _e(X,fe){var pe=Pe.get(X);if(pe){if(pe.has(fe))return!0}else Pe.set(X,pe=new Set);return pe.add(fe),!1}function Me(X){return["StringValue","BooleanValue","EnumValue"].indexOf(X.kind)>-1}function je(X){return["IntValue","FloatValue"].indexOf(X.kind)>-1}function Ot(X,fe,pe,Oe){if(function at(X){return"IntValue"===X.kind}(pe)||function yt(X){return"FloatValue"===X.kind}(pe))X[fe.value]=Number(pe.value);else if(function qe(X){return"BooleanValue"===X.kind}(pe)||function Ke(X){return"StringValue"===X.kind}(pe))X[fe.value]=pe.value;else if(function ze(X){return"ObjectValue"===X.kind}(pe)){var Ce={};pe.fields.map(function(Fe){return Ot(Ce,Fe.name,Fe.value,Oe)}),X[fe.value]=Ce}else if(function ut(X){return"Variable"===X.kind}(pe))X[fe.value]=(Oe||{})[pe.name.value];else if(function wt(X){return"ListValue"===X.kind}(pe))X[fe.value]=pe.values.map(function(Fe){var Ue={};return Ot(Ue,fe,Fe,Oe),Ue[fe.value]});else if(function Lr(X){return"EnumValue"===X.kind}(pe))X[fe.value]=pe.value;else{if(!function nr(X){return"NullValue"===X.kind}(pe))throw new q(17);X[fe.value]=null}}function br(X,fe){var pe=null;X.directives&&(pe={},X.directives.forEach(function(Ce){pe[Ce.name.value]={},Ce.arguments&&Ce.arguments.forEach(function(xe){return Ot(pe[Ce.name.value],xe.name,xe.value,fe)})}));var Oe=null;return X.arguments&&X.arguments.length&&(Oe={},X.arguments.forEach(function(Ce){return Ot(Oe,Ce.name,Ce.value,fe)})),pt(X.name.value,Oe,pe)}var Kt=["connection","include","skip","client","rest","export"];function pt(X,fe,pe){if(pe&&pe.connection&&pe.connection.key){if(pe.connection.filter&&pe.connection.filter.length>0){var Oe=pe.connection.filter?pe.connection.filter:[];Oe.sort();var Ce=fe,xe={};return Oe.forEach(function(Ge){xe[Ge]=Ce[Ge]}),pe.connection.key+"("+JSON.stringify(xe)+")"}return pe.connection.key}var Fe=X;if(fe){var Ue=I()(fe);Fe+="("+Ue+")"}return pe&&Object.keys(pe).forEach(function(Ge){-1===Kt.indexOf(Ge)&&(pe[Ge]&&Object.keys(pe[Ge]).length?Fe+="@"+Ge+"("+JSON.stringify(pe[Ge])+")":Fe+="@"+Ge)}),Fe}function Bt(X,fe){if(X.arguments&&X.arguments.length){var pe={};return X.arguments.forEach(function(Oe){return Ot(pe,Oe.name,Oe.value,fe)}),pe}return null}function jt(X){return X.alias?X.alias.value:X.name.value}function mt(X){return"Field"===X.kind}function xt(X){return"InlineFragment"===X.kind}function Pt(X){return X&&"id"===X.type&&"boolean"==typeof X.generated}function Tt(X,fe){return void 0===fe&&(fe=!1),H({type:"id",generated:fe},"string"==typeof X?{id:X,typename:void 0}:X)}function qt(X){return null!=X&&"object"==typeof X&&"json"===X.type}function Ut(X){throw new q(18)}function Dt(X,fe){switch(void 0===fe&&(fe=Ut),X.kind){case"Variable":return fe(X);case"NullValue":return null;case"IntValue":return parseInt(X.value,10);case"FloatValue":return parseFloat(X.value);case"ListValue":return X.values.map(function(Fe){return Dt(Fe,fe)});case"ObjectValue":for(var pe={},Oe=0,Ce=X.fields;Oe<Ce.length;Oe++){var xe=Ce[Oe];pe[xe.name.value]=Dt(xe.value,fe)}return pe;default:return X.value}}function ir(X,fe){if(X.directives&&X.directives.length){var pe={};return X.directives.forEach(function(Oe){pe[Oe.name.value]=Bt(Oe,fe)}),pe}return null}function zt(X,fe){return void 0===fe&&(fe={}),or(X.directives).every(function(pe){var Oe=pe.directive,Ce=pe.ifArgument,xe=!1;return"Variable"===Ce.value.kind?Q(void 0!==(xe=fe[Ce.value.name.value]),13):xe=Ce.value.value,"skip"===Oe.name.value?!xe:xe})}function Nr(X){var fe=[];return(0,a.Vn)(X,{Directive:function(pe){fe.push(pe.name.value)}}),fe}function Ct(X,fe){return Nr(fe).some(function(pe){return X.indexOf(pe)>-1})}function ar(X){return X&&Ct(["client"],X)&&Ct(["export"],X)}function Br(X){var fe=X.name.value;return"skip"===fe||"include"===fe}function or(X){return X?X.filter(Br).map(function(fe){var pe=fe.arguments;Q(pe&&1===pe.length,14);var Ce=pe[0];Q(Ce.name&&"if"===Ce.name.value,15);var xe=Ce.value;return Q(xe&&("Variable"===xe.kind||"BooleanValue"===xe.kind),16),{directive:fe,ifArgument:Ce}}):[]}function an(X,fe){var pe=fe,Oe=[];return X.definitions.forEach(function(xe){if("OperationDefinition"===xe.kind)throw new q(11);"FragmentDefinition"===xe.kind&&Oe.push(xe)}),typeof pe>"u"&&(Q(1===Oe.length,12),pe=Oe[0].name.value),H(H({},X),{definitions:be([{kind:"OperationDefinition",operation:"query",selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:pe}}]}}],X.definitions)})}function Er(X){for(var fe=[],pe=1;pe<arguments.length;pe++)fe[pe-1]=arguments[pe];return fe.forEach(function(Oe){typeof Oe>"u"||null===Oe||Object.keys(Oe).forEach(function(Ce){X[Ce]=Oe[Ce]})}),X}function _r(X){Rt(X);var fe=X.definitions.filter(function(pe){return"OperationDefinition"===pe.kind&&"mutation"===pe.operation})[0];return Q(fe,1),fe}function Rt(X){return Q(X&&"Document"===X.kind,2),Q(X.definitions.filter(function(pe){return"FragmentDefinition"!==pe.kind}).map(function(pe){if("OperationDefinition"!==pe.kind)throw new q(3);return pe}).length<=1,4),X}function sr(X){return Rt(X),X.definitions.filter(function(fe){return"OperationDefinition"===fe.kind})[0]}function rt(X){var fe=sr(X);return Q(fe,5),fe}function on(X){return X.definitions.filter(function(fe){return"OperationDefinition"===fe.kind&&fe.name}).map(function(fe){return fe.name.value})[0]||null}function ot(X){return X.definitions.filter(function(fe){return"FragmentDefinition"===fe.kind})}function sn(X){var fe=sr(X);return Q(fe&&"query"===fe.operation,6),fe}function Ht(X){Q("Document"===X.kind,7),Q(X.definitions.length<=1,8);var fe=X.definitions[0];return Q("FragmentDefinition"===fe.kind,9),fe}function ur(X){Rt(X);for(var fe,pe=0,Oe=X.definitions;pe<Oe.length;pe++){var Ce=Oe[pe];if("OperationDefinition"===Ce.kind){var xe=Ce.operation;if("query"===xe||"mutation"===xe||"subscription"===xe)return Ce}"FragmentDefinition"===Ce.kind&&!fe&&(fe=Ce)}if(fe)return fe;throw new q(10)}function It(X){void 0===X&&(X=[]);var fe={};return X.forEach(function(pe){fe[pe.name.value]=pe}),fe}function et(X){if(X&&X.variableDefinitions&&X.variableDefinitions.length){var fe=X.variableDefinitions.filter(function(pe){return pe.defaultValue}).map(function(pe){var xe={};return Ot(xe,pe.variable.name,pe.defaultValue),xe});return Er.apply(void 0,be([{}],fe))}return{}}function un(X){var fe=new Set;if(X.variableDefinitions)for(var pe=0,Oe=X.variableDefinitions;pe<Oe.length;pe++)fe.add(Oe[pe].variable.name.value);return fe}function jr(X,fe,pe){var Oe=0;return X.forEach(function(Ce,xe){fe.call(this,Ce,xe,X)&&(X[Oe++]=Ce)},pe),X.length=Oe,X}var cn={kind:"Field",name:{kind:"Name",value:"__typename"}};function Ur(X,fe){return X.selectionSet.selections.every(function(pe){return"FragmentSpread"===pe.kind&&Ur(fe[pe.name.value],fe)})}function cr(X){return Ur(sr(X)||Ht(X),It(ot(X)))?null:X}function wr(X){return function(pe){return X.some(function(Oe){return Oe.name&&Oe.name===pe.name.value||Oe.test&&Oe.test(pe)})}}function Sr(X,fe){var pe=Object.create(null),Oe=[],Ce=Object.create(null),xe=[],Fe=cr((0,a.Vn)(fe,{Variable:{enter:function(Ue,Ge,Ne){"VariableDefinition"!==Ne.kind&&(pe[Ue.name.value]=!0)}},Field:{enter:function(Ue){if(X&&Ue.directives&&X.some(function(Ne){return Ne.remove})&&Ue.directives&&Ue.directives.some(wr(X)))return Ue.arguments&&Ue.arguments.forEach(function(Ne){"Variable"===Ne.value.kind&&Oe.push({name:Ne.value.name.value})}),Ue.selectionSet&&Gt(Ue.selectionSet).forEach(function(Ne){xe.push({name:Ne.name.value})}),null}},FragmentSpread:{enter:function(Ue){Ce[Ue.name.value]=!0}},Directive:{enter:function(Ue){if(wr(X)(Ue))return null}}}));return Fe&&jr(Oe,function(Ue){return!pe[Ue.name]}).length&&(Fe=Vt(Oe,Fe)),Fe&&jr(xe,function(Ue){return!Ce[Ue.name]}).length&&(Fe=Wr(xe,Fe)),Fe}function fn(X){return(0,a.Vn)(Rt(X),{SelectionSet:{enter:function(fe,pe,Oe){if(!Oe||"OperationDefinition"!==Oe.kind){var Ce=fe.selections;if(Ce&&!Ce.some(function(Ue){return mt(Ue)&&("__typename"===Ue.name.value||0===Ue.name.value.lastIndexOf("__",0))})){var Fe=Oe;if(!(mt(Fe)&&Fe.directives&&Fe.directives.some(function(Ue){return"export"===Ue.name.value})))return H(H({},fe),{selections:be(Ce,[cn])})}}}}})}var ln={test:function(X){var fe="connection"===X.name.value;return fe&&(!X.arguments||X.arguments.some(function(pe){return"key"===pe.name.value})),fe}};function hn(X){return Sr([ln],Rt(X))}function Mt(X,fe,pe){return void 0===pe&&(pe=!0),fe&&fe.selections&&fe.selections.some(function(Oe){return Vr(X,Oe,pe)})}function Vr(X,fe,pe){return void 0===pe&&(pe=!0),!mt(fe)||!!fe.directives&&(fe.directives.some(wr(X))||pe&&Mt(X,fe.selectionSet,pe))}function pn(X,fe){var pe;return Rt(fe),cr((0,a.Vn)(fe,{SelectionSet:{enter:function(Oe,Ce,xe,Fe){var Ue=Fe.join("-");if(!pe||Ue===pe||!Ue.startsWith(pe)){if(Oe.selections){var Ge=Oe.selections.filter(function(Ne){return Vr(X,Ne)});return Mt(X,Oe,!1)&&(pe=Ue),H(H({},Oe),{selections:Ge})}return null}}}}))}function Vt(X,fe){var pe=function Or(X){return function(pe){return X.some(function(Oe){return pe.value&&"Variable"===pe.value.kind&&pe.value.name&&(Oe.name===pe.value.name.value||Oe.test&&Oe.test(pe))})}}(X);return cr((0,a.Vn)(fe,{OperationDefinition:{enter:function(Oe){return H(H({},Oe),{variableDefinitions:Oe.variableDefinitions.filter(function(Ce){return!X.some(function(xe){return xe.name===Ce.variable.name.value})})})}},Field:{enter:function(Oe){if(X.some(function(Fe){return Fe.remove})){var xe=0;if(Oe.arguments.forEach(function(Fe){pe(Fe)&&(xe+=1)}),1===xe)return null}}},Argument:{enter:function(Oe){if(pe(Oe))return null}}}))}function Wr(X,fe){function pe(Oe){if(X.some(function(Ce){return Ce.name===Oe.name.value}))return null}return cr((0,a.Vn)(fe,{FragmentSpread:{enter:pe},FragmentDefinition:{enter:pe}}))}function Gt(X){var fe=[];return X.selections.forEach(function(pe){(mt(pe)||xt(pe))&&pe.selectionSet?Gt(pe.selectionSet).forEach(function(Oe){return fe.push(Oe)}):"FragmentSpread"===pe.kind&&fe.push(pe)}),fe}function kt(X){return"query"===ur(X).operation?X:(0,a.Vn)(X,{OperationDefinition:{enter:function(Ce){return H(H({},Ce),{operation:"query"})}}})}function Ar(X){Rt(X);var fe=Sr([{test:function(pe){return"client"===pe.name.value},remove:!0}],X);return fe&&(fe=(0,a.Vn)(fe,{FragmentDefinition:{enter:function(pe){if(pe.selectionSet&&pe.selectionSet.selections.every(function(Ce){return mt(Ce)&&"__typename"===Ce.name.value}))return null}}})),fe}var At="function"==typeof WeakMap&&!("object"==typeof navigator&&"ReactNative"===navigator.product),Qr=Object.prototype.toString;function fr(X){return Ft(X,new Map)}function Ft(X,fe){switch(Qr.call(X)){case"[object Array]":if(fe.has(X))return fe.get(X);var pe=X.slice(0);return fe.set(X,pe),pe.forEach(function(Ce,xe){pe[xe]=Ft(Ce,fe)}),pe;case"[object Object]":if(fe.has(X))return fe.get(X);var Oe=Object.create(Object.getPrototypeOf(X));return fe.set(X,Oe),Object.keys(X).forEach(function(Ce){Oe[Ce]=Ft(X[Ce],fe)}),Oe;default:return X}}function lr(){return typeof process<"u"?"production":"development"}function Lt(X){return lr()===X}function xr(){return!0===Lt("production")}function Kr(){return!0===Lt("development")}function Yt(){return!0===Lt("test")}function Tr(X){try{return X()}catch(fe){console.error&&console.error(fe)}}function dn(X){return X.errors&&X.errors.length}function qr(X){return Object.freeze(X),Object.getOwnPropertyNames(X).forEach(function(fe){null!==X[fe]&&("object"==typeof X[fe]||"function"==typeof X[fe])&&!Object.isFrozen(X[fe])&&qr(X[fe])}),X}function zr(X){return!Kr()&&!Yt()||"function"==typeof Symbol&&"string"==typeof Symbol("")?X:qr(X)}var Jt=Object.prototype.hasOwnProperty;function hr(){for(var X=[],fe=0;fe<arguments.length;fe++)X[fe]=arguments[fe];return Hr(X)}function Hr(X){var fe=X[0]||{},pe=X.length;if(pe>1){var Oe=[];fe=Cr(fe,Oe);for(var Ce=1;Ce<pe;++Ce)fe=$t(fe,X[Ce],Oe)}return fe}function gt(X){return null!==X&&"object"==typeof X}function $t(X,fe,pe){return gt(fe)&&gt(X)?(Object.isExtensible&&!Object.isExtensible(X)&&(X=Cr(X,pe)),Object.keys(fe).forEach(function(Oe){var Ce=fe[Oe];if(Jt.call(X,Oe)){var xe=X[Oe];Ce!==xe&&(X[Oe]=$t(Cr(xe,pe),Ce,pe))}else X[Oe]=Ce}),X):fe}function Cr(X,fe){return null!==X&&"object"==typeof X&&fe.indexOf(X)<0&&(X=Array.isArray(X)?X.slice(0):H({__proto__:Object.getPrototypeOf(X)},X),fe.push(X)),X}var bt=Object.create({});function pr(X,fe){void 0===fe&&(fe="warn"),!xr()&&!bt[X]&&(Yt()||(bt[X]=!0),"error"===fe?console.error(X):console.warn(X))}function Gr(X){return JSON.parse(JSON.stringify(X))}},13427:function(le,k,y){"use strict";var P,a=this&&this.__extends||(P=function(W,V){return(P=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Y,j){Y.__proto__=j}||function(Y,j){for(var E in j)j.hasOwnProperty(E)&&(Y[E]=j[E])})(W,V)},function(W,V){function Y(){this.constructor=W}P(W,V),W.prototype=null===V?Object.create(V):(Y.prototype=V.prototype,new Y)}),O=this&&this.__assign||function(){return O=Object.assign||function(P){for(var W,V=1,Y=arguments.length;V<Y;V++)for(var j in W=arguments[V])Object.prototype.hasOwnProperty.call(W,j)&&(P[j]=W[j]);return P},O.apply(this,arguments)},m=this&&this.__awaiter||function(P,W,V,Y){return new(V||(V=Promise))(function(E,C){function p(F){try{v(Y.next(F))}catch(q){C(q)}}function _(F){try{v(Y.throw(F))}catch(q){C(q)}}function v(F){F.done?E(F.value):function j(E){return E instanceof V?E:new V(function(C){C(E)})}(F.value).then(p,_)}v((Y=Y.apply(P,W||[])).next())})},r=this&&this.__generator||function(P,W){var Y,j,E,C,V={label:0,sent:function(){if(1&E[0])throw E[1];return E[1]},trys:[],ops:[]};return C={next:p(0),throw:p(1),return:p(2)},"function"==typeof Symbol&&(C[Symbol.iterator]=function(){return this}),C;function p(v){return function(F){return function _(v){if(Y)throw new TypeError("Generator is already executing.");for(;V;)try{if(Y=1,j&&(E=2&v[0]?j.return:v[0]?j.throw||((E=j.return)&&E.call(j),0):j.next)&&!(E=E.call(j,v[1])).done)return E;switch(j=0,E&&(v=[2&v[0],E.value]),v[0]){case 0:case 1:E=v;break;case 4:return V.label++,{value:v[1],done:!1};case 5:V.label++,j=v[1],v=[0];continue;case 7:v=V.ops.pop(),V.trys.pop();continue;default:if(!(E=(E=V.trys).length>0&&E[E.length-1])&&(6===v[0]||2===v[0])){V=0;continue}if(3===v[0]&&(!E||v[1]>E[0]&&v[1]<E[3])){V.label=v[1];break}if(6===v[0]&&V.label<E[1]){V.label=E[1],E=v;break}if(E&&V.label<E[2]){V.label=E[2],V.ops.push(v);break}E[2]&&V.ops.pop(),V.trys.pop();continue}v=W.call(P,V)}catch(F){v=[6,F],j=0}finally{Y=E=0}if(5&v[0])throw v[1];return{value:v[0]?v[1]:void 0,done:!0}}([v,F])}}};Object.defineProperty(k,"__esModule",{value:!0});var g,n=y(24373),o=y(28133),l=y(35661),e=y(22016),i=y(35588),h=y(7535);k.USER_AGENT_HEADER="x-amz-user-agent",k.USER_AGENT="aws-amplify/"+h.version+(i.userAgent&&" ")+i.userAgent,function(P){P.NONE="NONE",P.API_KEY="API_KEY",P.AWS_IAM="AWS_IAM",P.AMAZON_COGNITO_USER_POOLS="AMAZON_COGNITO_USER_POOLS",P.OPENID_CONNECT="OPENID_CONNECT",P.AWS_LAMBDA="AWS_LAMBDA"}(g=k.AUTH_TYPE||(k.AUTH_TYPE={}));var b=function(P){function W(V){var Y=P.call(this)||this;return Y.link=k.authLink(V),Y}return a(W,P),W.prototype.request=function(V,Y){return this.link.request(V,Y)},W}(n.ApolloLink);k.AuthLink=b;var T=function(P,W,V){var Y=void 0===P?{header:"",value:""}:P,j=Y.header,E=Y.value;return m(void 0,void 0,void 0,function(){var C,p,v,F,q;return r(this,function(Q){switch(Q.label){case 0:return C=W.getContext(),p=O(O({},C.headers),((F={})[k.USER_AGENT_HEADER]=k.USER_AGENT,F)),j&&E?"function"!=typeof E?[3,2]:[4,E.call(void 0)]:[3,5];case 1:return v=Q.sent(),[3,4];case 2:return[4,E];case 3:v=Q.sent(),Q.label=4;case 4:p=O(((q={})[j]=v,q),p),Q.label=5;case 5:return W.setContext(O(O({},C),{headers:p})),[2,V(W)]}})})};k.authLink=function(P){var W=P.url,V=P.region,Y=P.auth,j=(void 0===Y?{}:Y).type,E=P.auth;return new n.ApolloLink(function(C,p){return new n.Observable(function(_){var v,F;switch(j){case g.NONE:F=T(void 0,C,p);break;case g.AWS_IAM:var q=E.credentials;F=function(P,W,V){var Y=P.credentials,j=P.region,E=P.url;return m(void 0,void 0,void 0,function(){var C,p,_,v,F,q,Q,J,ie,Se,te,ge,ue;return r(this,function(H){switch(H.label){case 0:return C="appsync",p=W.getContext(),(_="function"==typeof Y?Y.call():Y||{})&&"function"==typeof _.getPromise?[4,_.getPromise()]:[3,2];case 1:H.sent(),H.label=2;case 2:return[4,_];case 3:return v=H.sent(),F=v.accessKeyId,q=v.secretAccessKey,Q=v.sessionToken,J=e.parse(E),ie=J.host,Se=J.path,te=O(O({},R(W,{})),{service:C,region:j,url:E,host:ie,path:Se}),ge=l.Signer.sign(te,{access_key:F,secret_key:q,session_token:Q}).headers,W.setContext(O(O({},p),{headers:O(O(O({},p.headers),ge),(ue={},ue[k.USER_AGENT_HEADER]=k.USER_AGENT,ue))})),[2,V(W)]}})})}({credentials:void 0===q?{}:q,region:V,url:W},C,p);break;case g.API_KEY:var J=E.apiKey;F=T({header:"X-Api-Key",value:void 0===J?"":J},C,p);break;case g.AMAZON_COGNITO_USER_POOLS:case g.OPENID_CONNECT:var Se=E.jwtToken;F=T({header:"Authorization",value:void 0===Se?"":Se},C,p);break;case g.AWS_LAMBDA:var ge=E.token;F=T({header:"Authorization",value:void 0===ge?"":ge},C,p);break;default:throw new Error("Invalid AUTH_TYPE: "+E.type)}return F.then(function($){v=$.subscribe({next:_.next.bind(_),error:_.error.bind(_),complete:_.complete.bind(_)})}),function(){v&&v.unsubscribe()}})})};var R=function(P,W){var j=P.query,E={operationName:P.operationName,variables:x(P.variables),query:o.print(j)};return O(O({body:JSON.stringify(E),method:"POST"},W),{headers:O({accept:"*/*","content-type":"application/json; charset=UTF-8"},W.headers)})},x=function(P){return Object.keys(P).filter(function(W){return!W.startsWith("@@")}).reduce(function(W,V){return W[V]=P[V],W},{})}},50785:(le,k,y)=>{"use strict";Object.defineProperty(k,"__esModule",{value:!0});var a=y(13427);k.AuthLink=a.AuthLink,k.AUTH_TYPE=a.AUTH_TYPE,k.USER_AGENT_HEADER=a.USER_AGENT_HEADER,k.USER_AGENT=a.USER_AGENT,k.createAuthLink=function(m){return new a.AuthLink({url:m.url,region:m.region,auth:m.auth})};var O=y(35661);k.Signer=O.Signer},35588:(le,k)=>{"use strict";Object.defineProperty(k,"__esModule",{value:!0}),k.userAgent=""},35661:(le,k,y)=>{"use strict";Object.defineProperty(k,"__esModule",{value:!0}),function a(O){for(var m in O)k.hasOwnProperty(m)||(k[m]=O[m])}(y(8675))},8675:(le,k,y)=>{"use strict";Object.defineProperty(k,"__esModule",{value:!0}),global.Buffer=global.Buffer||y(26149).lW;var a=y(22016),O=y(53840).Sha256,m=y(47981).N,r=function(x,P,W){void 0===W&&(W="");var V=new O(x);V.update(P);var Y=V.digestSync();return"hex"===W?m(Y):Y},n=function(x){var P=x||"",W=new O;return W.update(P),m(W.digestSync())},o=function(x){return x&&0!==Object.keys(x).length?Object.keys(x).map(function(P){return{key:P.toLowerCase(),value:x[P]?x[P].trim().replace(/\s+/g," "):""}}).sort(function(P,W){return P.key<W.key?-1:1}).map(function(P){return P.key+":"+P.value}).join("\n")+"\n":""},l=function(x){return Object.keys(x).map(function(P){return P.toLowerCase()}).sort().join(";")},M=function(x,P,W){void 0===W&&(W=null),x.headers=x.headers||{};var Y=(new Date).toISOString().replace(/[:-]|\.\d{3}/g,""),j=Y.substr(0,8),E="AWS4-HMAC-SHA256",C=a.parse(x.url);x.headers.host=C.host,x.headers["x-amz-date"]=Y,P.session_token&&(x.headers["X-Amz-Security-Token"]=P.session_token);var p=function(x){var P=a.parse(x.url);return[x.method||"/",P.path,P.query,o(x.headers),l(x.headers),n(x.body)].join("\n")}(x);W=W||function(x){var Y=(a.parse(x.url).host.match(/([^.]+)\.(?:([^.]*)\.)?amazonaws\.com$/)||[]).slice(1,3);return"es"===Y[1]&&(Y=Y.reverse()),{service:x.service||Y[0],region:x.region||Y[1]}}(x);var _=function(x,P,W){return[x,P,W,"aws4_request"].join("/")}(j,W.region,W.service),v=function(x,P,W,V){return[x,W,V,n(P)].join("\n")}(E,p,Y,_),F=function(x,P,W){void 0===x&&(x="");var Y=r("AWS4"+x,P),j=r(Y,W.region),E=r(j,W.service);return r(E,"aws4_request")}(P.secret_key,j,W),q=function(x,P){return r(x,P,"hex")}(F,v),Q=function(x,P,W,V,Y){return void 0===P&&(P=""),[x+" Credential="+P+"/"+W,"SignedHeaders="+V,"Signature="+Y].join(", ")}(E,P.access_key,_,l(x.headers),q);return x.headers.Authorization=Q,x},R=function(){function x(){}return x.sign=M,x}();k.Signer=R,k.default=R},78624:(le,k,y)=>{"use strict";Object.defineProperty(k,"__esModule",{value:!0}),k.RawSha256=void 0;var a=y(17553),O=function(){function m(){this.state=Int32Array.from(a.INIT),this.temp=new Int32Array(64),this.buffer=new Uint8Array(64),this.bufferLength=0,this.bytesHashed=0,this.finished=!1}return m.prototype.update=function(r){if(this.finished)throw new Error("Attempted to update an already finished hash.");var n=0,o=r.byteLength;if(this.bytesHashed+=o,8*this.bytesHashed>a.MAX_HASHABLE_LENGTH)throw new Error("Cannot hash more than 2^53 - 1 bits");for(;o>0;)this.buffer[this.bufferLength++]=r[n++],o--,this.bufferLength===a.BLOCK_SIZE&&(this.hashBuffer(),this.bufferLength=0)},m.prototype.digest=function(){if(!this.finished){var r=8*this.bytesHashed,n=new DataView(this.buffer.buffer,this.buffer.byteOffset,this.buffer.byteLength),o=this.bufferLength;if(n.setUint8(this.bufferLength++,128),o%a.BLOCK_SIZE>=a.BLOCK_SIZE-8){for(var l=this.bufferLength;l<a.BLOCK_SIZE;l++)n.setUint8(l,0);this.hashBuffer(),this.bufferLength=0}for(l=this.bufferLength;l<a.BLOCK_SIZE-8;l++)n.setUint8(l,0);n.setUint32(a.BLOCK_SIZE-8,Math.floor(r/4294967296),!0),n.setUint32(a.BLOCK_SIZE-4,r),this.hashBuffer(),this.finished=!0}var e=new Uint8Array(a.DIGEST_LENGTH);for(l=0;l<8;l++)e[4*l]=this.state[l]>>>24&255,e[4*l+1]=this.state[l]>>>16&255,e[4*l+2]=this.state[l]>>>8&255,e[4*l+3]=this.state[l]>>>0&255;return e},m.prototype.hashBuffer=function(){for(var n=this.buffer,o=this.state,l=o[0],e=o[1],i=o[2],h=o[3],d=o[4],g=o[5],b=o[6],T=o[7],M=0;M<a.BLOCK_SIZE;M++){if(M<16)this.temp[M]=(255&n[4*M])<<24|(255&n[4*M+1])<<16|(255&n[4*M+2])<<8|255&n[4*M+3];else{var R=this.temp[M-2];this.temp[M]=(((R>>>17|R<<15)^(R>>>19|R<<13)^R>>>10)+this.temp[M-7]|0)+((((R=this.temp[M-15])>>>7|R<<25)^(R>>>18|R<<14)^R>>>3)+this.temp[M-16]|0)}var W=(((d>>>6|d<<26)^(d>>>11|d<<21)^(d>>>25|d<<7))+(d&g^~d&b)|0)+(T+(a.KEY[M]+this.temp[M]|0)|0)|0,V=((l>>>2|l<<30)^(l>>>13|l<<19)^(l>>>22|l<<10))+(l&e^l&i^e&i)|0;T=b,b=g,g=d,d=h+W|0,h=i,i=e,e=l,l=W+V|0}o[0]+=l,o[1]+=e,o[2]+=i,o[3]+=h,o[4]+=d,o[5]+=g,o[6]+=b,o[7]+=T},m}();k.RawSha256=O},17553:(le,k)=>{"use strict";Object.defineProperty(k,"__esModule",{value:!0}),k.MAX_HASHABLE_LENGTH=k.INIT=k.KEY=k.DIGEST_LENGTH=k.BLOCK_SIZE=void 0,k.BLOCK_SIZE=64,k.DIGEST_LENGTH=32,k.KEY=new Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),k.INIT=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],k.MAX_HASHABLE_LENGTH=Math.pow(2,53)-1},53840:(le,k,y)=>{"use strict";Object.defineProperty(k,"__esModule",{value:!0}),(0,y(32534).__exportStar)(y(32097),k)},32097:(le,k,y)=>{"use strict";Object.defineProperty(k,"__esModule",{value:!0}),k.Sha256=void 0;var a=y(32534),O=y(17553),m=y(78624),r=y(46677),n=function(){function l(e){if(this.hash=new m.RawSha256,e){this.outer=new m.RawSha256;var i=function o(l){var e=(0,r.convertToBuffer)(l);if(e.byteLength>O.BLOCK_SIZE){var i=new m.RawSha256;i.update(e),e=i.digest()}var h=new Uint8Array(O.BLOCK_SIZE);return h.set(e),h}(e),h=new Uint8Array(O.BLOCK_SIZE);h.set(i);for(var d=0;d<O.BLOCK_SIZE;d++)i[d]^=54,h[d]^=92;for(this.hash.update(i),this.outer.update(h),d=0;d<i.byteLength;d++)i[d]=0}}return l.prototype.update=function(e){if(!(0,r.isEmptyData)(e)&&!this.error)try{this.hash.update((0,r.convertToBuffer)(e))}catch(i){this.error=i}},l.prototype.digestSync=function(){if(this.error)throw this.error;return this.outer?(this.outer.finished||this.outer.update(this.hash.digest()),this.outer.digest()):this.hash.digest()},l.prototype.digest=function(){return(0,a.__awaiter)(this,void 0,void 0,function(){return(0,a.__generator)(this,function(e){return[2,this.digestSync()]})})},l}();k.Sha256=n},12929:(le,k,y)=>{"use strict";Object.defineProperty(k,"__esModule",{value:!0}),k.convertToBuffer=void 0;var a=y(29460),O=typeof Buffer<"u"&&Buffer.from?function(r){return Buffer.from(r,"utf8")}:a.fromUtf8;k.convertToBuffer=function m(r){return r instanceof Uint8Array?r:"string"==typeof r?O(r):ArrayBuffer.isView(r)?new Uint8Array(r.buffer,r.byteOffset,r.byteLength/Uint8Array.BYTES_PER_ELEMENT):new Uint8Array(r)}},46677:(le,k,y)=>{"use strict";Object.defineProperty(k,"__esModule",{value:!0}),k.uint32ArrayFrom=k.numToUint8=k.isEmptyData=k.convertToBuffer=void 0;var a=y(12929);Object.defineProperty(k,"convertToBuffer",{enumerable:!0,get:function(){return a.convertToBuffer}});var O=y(35791);Object.defineProperty(k,"isEmptyData",{enumerable:!0,get:function(){return O.isEmptyData}});var m=y(27350);Object.defineProperty(k,"numToUint8",{enumerable:!0,get:function(){return m.numToUint8}});var r=y(4605);Object.defineProperty(k,"uint32ArrayFrom",{enumerable:!0,get:function(){return r.uint32ArrayFrom}})},35791:(le,k)=>{"use strict";Object.defineProperty(k,"__esModule",{value:!0}),k.isEmptyData=void 0,k.isEmptyData=function y(a){return"string"==typeof a?0===a.length:0===a.byteLength}},27350:(le,k)=>{"use strict";Object.defineProperty(k,"__esModule",{value:!0}),k.numToUint8=void 0,k.numToUint8=function y(a){return new Uint8Array([(4278190080&a)>>24,(16711680&a)>>16,(65280&a)>>8,255&a])}},4605:(le,k)=>{"use strict";Object.defineProperty(k,"__esModule",{value:!0}),k.uint32ArrayFrom=void 0,k.uint32ArrayFrom=function y(a){if(!Array.from){for(var O=new Uint32Array(a.length);0<a.length;)O[0]=a[0];return O}return Uint32Array.from(a)}},4822:function(le,k,y){"use strict";var a=this&&this.__rest||function(e,i){var h={};for(var d in e)Object.prototype.hasOwnProperty.call(e,d)&&i.indexOf(d)<0&&(h[d]=e[d]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var g=0;for(d=Object.getOwnPropertySymbols(e);g<d.length;g++)i.indexOf(d[g])<0&&Object.prototype.propertyIsEnumerable.call(e,d[g])&&(h[d[g]]=e[d[g]])}return h};Object.defineProperty(k,"__esModule",{value:!0});var O=y(20399);k.CONTROL_EVENTS_KEY=O.CONTROL_EVENTS_KEY;var m=y(92955),r=y(56846),n=y(33708),o=y(58e3);k.createSubscriptionHandshakeLink=function l(e,i){var h,d;return"string"==typeof e?(h=i||m.createHttpLink({uri:e}),d=m.ApolloLink.from([new n.NonTerminatingLink("controlMessages",{link:new m.ApolloLink(function(b,T){return new m.Observable(function(M){var R,x=b.variables,P=O.CONTROL_EVENTS_KEY,W=x[P],V=a(x,["symbol"==typeof P?P:P+""]);return typeof W<"u"&&(b.variables=V),M.next(((R={})[O.CONTROL_EVENTS_KEY]=W,R)),function(){}})})}),new n.NonTerminatingLink("subsInfo",{link:h}),new O.SubscriptionHandshakeLink("subsInfo")])):(h=i||m.createHttpLink({uri:e.url}),d=new o.AppSyncRealTimeSubscriptionHandshakeLink(e)),m.ApolloLink.split(function(b){var M=r.getMainDefinition(b.query);return"OperationDefinition"===M.kind&&"subscription"===M.operation},d,h)}},33708:function(le,k,y){"use strict";var e,a=this&&this.__extends||(e=function(i,h){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,g){d.__proto__=g}||function(d,g){for(var b in g)g.hasOwnProperty(b)&&(d[b]=g[b])})(i,h)},function(i,h){function d(){this.constructor=i}e(i,h),i.prototype=null===h?Object.create(h):(d.prototype=h.prototype,new d)}),O=this&&this.__assign||function(){return O=Object.assign||function(e){for(var i,h=1,d=arguments.length;h<d;h++)for(var g in i=arguments[h])Object.prototype.hasOwnProperty.call(i,g)&&(e[g]=i[g]);return e},O.apply(this,arguments)},m=this&&this.__awaiter||function(e,i,h,d){return new(h||(h=Promise))(function(b,T){function M(P){try{x(d.next(P))}catch(W){T(W)}}function R(P){try{x(d.throw(P))}catch(W){T(W)}}function x(P){P.done?b(P.value):function g(b){return b instanceof h?b:new h(function(T){T(b)})}(P.value).then(M,R)}x((d=d.apply(e,i||[])).next())})},r=this&&this.__generator||function(e,i){var d,g,b,T,h={label:0,sent:function(){if(1&b[0])throw b[1];return b[1]},trys:[],ops:[]};return T={next:M(0),throw:M(1),return:M(2)},"function"==typeof Symbol&&(T[Symbol.iterator]=function(){return this}),T;function M(x){return function(P){return function R(x){if(d)throw new TypeError("Generator is already executing.");for(;h;)try{if(d=1,g&&(b=2&x[0]?g.return:x[0]?g.throw||((b=g.return)&&b.call(g),0):g.next)&&!(b=b.call(g,x[1])).done)return b;switch(g=0,b&&(x=[2&x[0],b.value]),x[0]){case 0:case 1:b=x;break;case 4:return h.label++,{value:x[1],done:!1};case 5:h.label++,g=x[1],x=[0];continue;case 7:x=h.ops.pop(),h.trys.pop();continue;default:if(!(b=(b=h.trys).length>0&&b[b.length-1])&&(6===x[0]||2===x[0])){h=0;continue}if(3===x[0]&&(!b||x[1]>b[0]&&x[1]<b[3])){h.label=x[1];break}if(6===x[0]&&h.label<b[1]){h.label=b[1],b=x;break}if(b&&h.label<b[2]){h.label=b[2],h.ops.push(x);break}b[2]&&h.ops.pop(),h.trys.pop();continue}x=i.call(e,h)}catch(P){x=[6,P],g=0}finally{d=b=0}if(5&x[0])throw x[1];return{value:x[0]?x[1]:void 0,done:!0}}([x,P])}}};Object.defineProperty(k,"__esModule",{value:!0});var n=y(92955),o=y(74699),l=function(e){function i(h,d){var g=d.link,b=e.call(this)||this;return b.contextKey=h,b.link=g,b}return a(i,e),i.prototype.request=function(h,d){var g=this;return o.setContext(function(b,T){return m(g,void 0,void 0,function(){var M,R,x=this;return r(this,function(P){switch(P.label){case 0:return[4,new Promise(function(W,V){x.link.request(h).subscribe({next:W,error:V})})];case 1:return M=P.sent(),[2,O(O({},T),(R={},R[this.contextKey]=M,R))]}})})}).request(h,d)},i}(n.ApolloLink);k.NonTerminatingLink=l},58e3:function(le,k,y){"use strict";var Y,a=this&&this.__extends||(Y=function(j,E){return(Y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(C,p){C.__proto__=p}||function(C,p){for(var _ in p)p.hasOwnProperty(_)&&(C[_]=p[_])})(j,E)},function(j,E){function C(){this.constructor=j}Y(j,E),j.prototype=null===E?Object.create(E):(C.prototype=E.prototype,new C)}),O=this&&this.__assign||function(){return O=Object.assign||function(Y){for(var j,E=1,C=arguments.length;E<C;E++)for(var p in j=arguments[E])Object.prototype.hasOwnProperty.call(j,p)&&(Y[p]=j[p]);return Y},O.apply(this,arguments)},m=this&&this.__awaiter||function(Y,j,E,C){return new(E||(E=Promise))(function(_,v){function F(J){try{Q(C.next(J))}catch(ie){v(ie)}}function q(J){try{Q(C.throw(J))}catch(ie){v(ie)}}function Q(J){J.done?_(J.value):function p(_){return _ instanceof E?_:new E(function(v){v(_)})}(J.value).then(F,q)}Q((C=C.apply(Y,j||[])).next())})},r=this&&this.__generator||function(Y,j){var C,p,_,v,E={label:0,sent:function(){if(1&_[0])throw _[1];return _[1]},trys:[],ops:[]};return v={next:F(0),throw:F(1),return:F(2)},"function"==typeof Symbol&&(v[Symbol.iterator]=function(){return this}),v;function F(Q){return function(J){return function q(Q){if(C)throw new TypeError("Generator is already executing.");for(;E;)try{if(C=1,p&&(_=2&Q[0]?p.return:Q[0]?p.throw||((_=p.return)&&_.call(p),0):p.next)&&!(_=_.call(p,Q[1])).done)return _;switch(p=0,_&&(Q=[2&Q[0],_.value]),Q[0]){case 0:case 1:_=Q;break;case 4:return E.label++,{value:Q[1],done:!1};case 5:E.label++,p=Q[1],Q=[0];continue;case 7:Q=E.ops.pop(),E.trys.pop();continue;default:if(!(_=(_=E.trys).length>0&&_[_.length-1])&&(6===Q[0]||2===Q[0])){E=0;continue}if(3===Q[0]&&(!_||Q[1]>_[0]&&Q[1]<_[3])){E.label=Q[1];break}if(6===Q[0]&&E.label<_[1]){E.label=_[1],_=Q;break}if(_&&E.label<_[2]){E.label=_[2],E.ops.push(Q);break}_[2]&&E.ops.pop(),E.trys.pop();continue}Q=j.call(Y,E)}catch(J){Q=[6,J],p=0}finally{C=_=0}if(5&Q[0])throw Q[1];return{value:Q[0]?Q[1]:void 0,done:!0}}([Q,J])}}};Object.defineProperty(k,"__esModule",{value:!0});var n=y(92955),o=y(13563),l=y(50785),e=y(47256),i=y(22016),h=y(48132),d=y(14328),g=y(32104),b=o.rootLogger.extend("subscriptions");k.CONTROL_EVENTS_KEY="@@controlEvents";var T=[400,401,403],R={accept:"application/json, text/javascript","content-encoding":"amz-1.0","content-type":"application/json; charset=UTF-8"},W=3e5,V=function(Y){function j(E){var C=E.url,p=E.region,_=E.auth,v=Y.call(this)||this;return v.socketStatus=d.SOCKET_STATUS.CLOSED,v.keepAliveTimeout=W,v.subscriptionObserverMap=new Map,v.promiseArray=[],v.url=C,v.region=p,v.auth=_,v}return a(j,Y),j.prototype.request=function(E){var C,p=this,_=E.query,v=E.variables,F=E.getContext(),q=F.controlMessages,Q=k.CONTROL_EVENTS_KEY,J=(void 0===q?(C={},C[k.CONTROL_EVENTS_KEY]=void 0,C):q)[Q],ie=F.headers;return new n.Observable(function(Se){if(p.url){var te=h.v4(),ge={appSyncGraphqlEndpoint:p.url,authenticationType:p.auth.type,query:e.print(_),region:p.region,graphql_headers:function(){return ie},variables:v,apiKey:p.auth.type===l.AUTH_TYPE.API_KEY?p.auth.apiKey:"",credentials:p.auth.type===l.AUTH_TYPE.AWS_IAM?p.auth.credentials:null,jwtToken:p.auth.type===l.AUTH_TYPE.AMAZON_COGNITO_USER_POOLS||p.auth.type===l.AUTH_TYPE.OPENID_CONNECT?p.auth.jwtToken:null};return p._startSubscriptionWithAWSAppSyncRealTime({options:ge,observer:Se,subscriptionId:te}),function(){return m(p,void 0,void 0,function(){return r(this,function(H){try{if(this._verifySubscriptionAlreadyStarted(te),this.subscriptionObserverMap.get(te).subscriptionState!==d.SUBSCRIPTION_STATUS.CONNECTED)throw new Error("Subscription has failed, starting to remove subscription.");this._sendUnsubscriptionMessage(te)}catch{return this._removeSubscriptionObserver(te),[2]}return[2]})})}}Se.error({errors:[O({},new e.GraphQLError("Subscribe only available for AWS AppSync endpoint"))]}),Se.complete()}).filter(function(Se){var te=Se.extensions,ge=(void 0===te?{}:te).controlMsgType;return!0===J||!(typeof(void 0===ge?void 0:ge)<"u")})},j.prototype._verifySubscriptionAlreadyStarted=function(E){return m(this,void 0,void 0,function(){var p=this;return r(this,function(_){return this.subscriptionObserverMap.get(E).subscriptionState===d.SUBSCRIPTION_STATUS.PENDING?[2,new Promise(function(v,F){var q=p.subscriptionObserverMap.get(E);p.subscriptionObserverMap.set(E,{observer:q.observer,subscriptionState:q.subscriptionState,variables:q.variables,query:q.query,subscriptionReadyCallback:v,subscriptionFailedCallback:F})})]:[2]})})},j.prototype._sendUnsubscriptionMessage=function(E){try{if(this.awsRealTimeSocket&&this.awsRealTimeSocket.readyState===WebSocket.OPEN&&this.socketStatus===d.SOCKET_STATUS.READY){var p=JSON.stringify({id:E,type:d.MESSAGE_TYPES.GQL_STOP});this.awsRealTimeSocket.send(p),this._removeSubscriptionObserver(E)}}catch(_){b({err:_})}},j.prototype._removeSubscriptionObserver=function(E){this.subscriptionObserverMap.delete(E),0===this.subscriptionObserverMap.size&&this._closeSocketWhenFlushed()},j.prototype._closeSocketWhenFlushed=function(){b("closing WebSocket..."),clearTimeout(this.keepAliveTimeoutId),this.awsRealTimeSocket?this.awsRealTimeSocket.bufferedAmount>0?setTimeout(this._closeSocketWhenFlushed.bind(this),1e3):(this.awsRealTimeSocket.close(1e3),this.awsRealTimeSocket=null,this.socketStatus=d.SOCKET_STATUS.CLOSED):this.socketStatus=d.SOCKET_STATUS.CLOSED},j.prototype._startSubscriptionWithAWSAppSyncRealTime=function(E){var C=E.options,p=E.observer,_=E.subscriptionId;return m(this,void 0,void 0,function(){var v,F,q,Q,J,ie,Se,te,ge,ue,H,$,oe,ee,L,S,B,G,U,re,be,Z,Ee,K=this;return r(this,function(w){switch(w.label){case 0:return v=C.appSyncGraphqlEndpoint,F=C.authenticationType,J=C.apiKey,ie=C.region,te=void 0===(Se=C.graphql_headers)?function(){return{}}:Se,ge=C.credentials,ue=C.jwtToken,$={query:q=C.query,variables:Q=C.variables},this.subscriptionObserverMap.set(_,{observer:p,query:q,variables:Q,subscriptionState:H=d.SUBSCRIPTION_STATUS.PENDING,startAckTimeoutId:null}),oe=JSON.stringify($),L=[{}],[4,this._awsRealTimeHeaderBasedAuth({apiKey:J,appSyncGraphqlEndpoint:v,authenticationType:F,payload:oe,canonicalUri:"",region:ie,credentials:ge,jwtToken:ue})];case 1:return S=[O.apply(void 0,L.concat([w.sent()]))],[4,te()];case 2:ee=O.apply(void 0,[O.apply(void 0,S.concat([w.sent()])),(Ee={},Ee[l.USER_AGENT_HEADER]=l.USER_AGENT,Ee)]),B={id:_,payload:{data:oe,extensions:{authorization:O({},ee)}},type:d.MESSAGE_TYPES.GQL_START},G=JSON.stringify(B),w.label=3;case 3:return w.trys.push([3,5,,6]),[4,this._initializeWebSocketConnection({apiKey:J,appSyncGraphqlEndpoint:v,authenticationType:F,region:ie,credentials:ge,jwtToken:ue})];case 4:return w.sent(),[3,6];case 5:return U=w.sent(),p.error({errors:[O({},new e.GraphQLError("Connection failed: "+(void 0===(re=U.message)?"":re)))]}),p.complete(),"function"==typeof(be=(this.subscriptionObserverMap.get(_)||{}).subscriptionFailedCallback)&&be(),[2];case 6:return Z=this.subscriptionObserverMap.get(_),this.subscriptionObserverMap.set(_,{observer:p,subscriptionState:H,variables:Q,query:q,subscriptionReadyCallback:Z.subscriptionReadyCallback,subscriptionFailedCallback:Z.subscriptionFailedCallback,startAckTimeoutId:setTimeout(function(){K._timeoutStartSubscriptionAck.call(K,_)},15e3)}),this.awsRealTimeSocket&&this.awsRealTimeSocket.send(G),[2]}})})},j.prototype._initializeWebSocketConnection=function(E){var C=this,p=E.appSyncGraphqlEndpoint,_=E.authenticationType,v=E.apiKey,F=E.region,q=E.credentials,Q=E.jwtToken;if(this.socketStatus!==d.SOCKET_STATUS.READY)return new Promise(function(J,ie){return m(C,void 0,void 0,function(){var Se,te,ge,ue,H,$,oe,L;return r(this,function(S){switch(S.label){case 0:if(this.promiseArray.push({res:J,rej:ie}),this.socketStatus!==d.SOCKET_STATUS.CLOSED)return[3,5];S.label=1;case 1:return S.trys.push([1,4,,5]),this.socketStatus=d.SOCKET_STATUS.CONNECTING,Se=j._discoverAppSyncRealTimeEndpoint(this.url),te="{}",H=(ue=JSON).stringify,[4,this._awsRealTimeHeaderBasedAuth({authenticationType:_,payload:te,canonicalUri:"/connect",apiKey:v,appSyncGraphqlEndpoint:p,region:F,credentials:q,jwtToken:Q})];case 2:return ge=H.apply(ue,[S.sent()]),$=Buffer.from(ge).toString("base64"),oe=Buffer.from(te).toString("base64"),[4,this._initializeRetryableHandshake({awsRealTimeUrl:Se+"?header="+$+"&payload="+oe})];case 3:return S.sent(),this.promiseArray.forEach(function(B){var G=B.res;b("Notifying connection successful"),G()}),this.socketStatus=d.SOCKET_STATUS.READY,this.promiseArray=[],[3,5];case 4:return L=S.sent(),this.promiseArray.forEach(function(B){return(0,B.rej)(L)}),this.promiseArray=[],this.awsRealTimeSocket&&this.awsRealTimeSocket.readyState===WebSocket.OPEN&&this.awsRealTimeSocket.close(3001),this.awsRealTimeSocket=null,this.socketStatus=d.SOCKET_STATUS.CLOSED,[3,5];case 5:return[2]}})})})},j.prototype._awsRealTimeHeaderBasedAuth=function(E){var C=E.authenticationType,p=E.payload,_=E.canonicalUri,v=E.appSyncGraphqlEndpoint,F=E.apiKey,q=E.region,Q=E.credentials,J=E.jwtToken;return m(this,void 0,void 0,function(){var ie,Se,te;return r(this,function(ue){switch(ue.label){case 0:return ie={API_KEY:this._awsRealTimeApiKeyHeader.bind(this),AWS_IAM:this._awsRealTimeIAMHeader.bind(this),OPENID_CONNECT:this._awsRealTimeOPENIDHeader.bind(this),AMAZON_COGNITO_USER_POOLS:this._awsRealTimeOPENIDHeader.bind(this)},"function"!=typeof(Se=ie[C])?(b("Authentication type "+C+" not supported"),[2,{}]):(te=i.parse(v).host,[4,Se({payload:p,canonicalUri:_,appSyncGraphqlEndpoint:v,apiKey:F,region:q,host:te,credentials:Q,jwtToken:J})]);case 1:return[2,ue.sent()]}})})},j.prototype._awsRealTimeOPENIDHeader=function(E){var C=E.host,p=E.jwtToken;return m(this,void 0,void 0,function(){var _,v;return r(this,function(F){switch(F.label){case 0:return _={},"function"!=typeof p?[3,2]:[4,p.call(void 0)];case 1:return v=F.sent(),[3,4];case 2:return[4,p];case 3:v=F.sent(),F.label=4;case 4:return[2,(_.Authorization=v,_.host=C,_)]}})})},j.prototype._awsRealTimeApiKeyHeader=function(E){var C=E.apiKey,p=E.host;return m(this,void 0,void 0,function(){var v;return r(this,function(F){return v=(new Date).toISOString().replace(/[:\-]|\.\d{3}/g,""),[2,{host:p,"x-amz-date":v,"x-api-key":C}]})})},j.prototype._awsRealTimeIAMHeader=function(E){var C=E.payload,p=E.canonicalUri,_=E.appSyncGraphqlEndpoint,v=E.region,F=E.credentials;return m(this,void 0,void 0,function(){var q,Q,J,ge,ue;return r(this,function($){switch($.label){case 0:return q={region:v,service:"appsync"},(Q="function"==typeof F?F.call():F||{})&&"function"==typeof Q.getPromise?[4,Q.getPromise()]:[3,2];case 1:$.sent(),$.label=2;case 2:if(!Q)throw new Error("No credentials");return[4,Q];case 3:return J=$.sent(),ge={access_key:J.accessKeyId,secret_key:J.secretAccessKey,session_token:J.sessionToken},ue={url:""+_+p,body:C,method:"POST",headers:O({},R)},[2,l.Signer.sign(ue,ge,q).headers]}})})},j.prototype._initializeRetryableHandshake=function(E){var C=E.awsRealTimeUrl;return m(this,void 0,void 0,function(){return r(this,function(p){switch(p.label){case 0:return b("Initializaling retryable Handshake"),[4,g.jitteredExponentialRetry(this._initializeHandshake.bind(this),[{awsRealTimeUrl:C}])];case 1:return p.sent(),[2]}})})},j.prototype._initializeHandshake=function(E){var C=E.awsRealTimeUrl;return m(this,void 0,void 0,function(){var p,_,F=this;return r(this,function(q){switch(q.label){case 0:b("Initializing handshake "+C),q.label=1;case 1:return q.trys.push([1,4,,5]),[4,new Promise(function(Q,J){var ie=j.createWebSocket(C,"graphql-ws");ie.onerror=function(){b("WebSocket connection error")},ie.onclose=function(){J(new Error("Connection handshake error"))},ie.onopen=function(){return F.awsRealTimeSocket=ie,Q()}})];case 2:return q.sent(),[4,new Promise(function(Q,J){var ie=!1;F.awsRealTimeSocket.onerror=function(ge){b("WebSocket closed "+JSON.stringify(ge))},F.awsRealTimeSocket.onclose=function(ge){b("WebSocket closed "+ge.reason),J(new Error(JSON.stringify(ge)))},F.awsRealTimeSocket.onmessage=function(ge){b("subscription message from AWS AppSyncRealTime: "+ge.data+" ");var ue=JSON.parse(ge.data),H=ue.type,$=ue.payload,oe=(void 0===$?{}:$).connectionTimeoutMs;if(H===d.MESSAGE_TYPES.GQL_CONNECTION_ACK)return ie=!0,F.keepAliveTimeout=void 0===oe?W:oe,F.awsRealTimeSocket.onmessage=F._handleIncomingSubscriptionMessage.bind(F),F.awsRealTimeSocket.onerror=function(Z){b(Z),F._errorDisconnect(d.CONTROL_MSG.CONNECTION_CLOSED)},F.awsRealTimeSocket.onclose=function(Z){b("WebSocket closed "+Z.reason),F._errorDisconnect(d.CONTROL_MSG.CONNECTION_CLOSED)},void Q("Cool, connected to AWS AppSyncRealTime");if(H===d.MESSAGE_TYPES.GQL_CONNECTION_ERROR){var L=ue.payload,S=(void 0===L?{}:L).errors,B=(void 0===S?[]:S)[0],G=void 0===B?{}:B,U=G.errorType,ce=G.errorCode;J({errorType:void 0===U?"":U,errorCode:void 0===ce?0:ce})}},F.awsRealTimeSocket.send(JSON.stringify({type:d.MESSAGE_TYPES.GQL_CONNECTION_INIT})),setTimeout(function te(){ie||J(new Error("Connection timeout: ack from AWSRealTime was not received on 15000 ms"))}.bind(F),15e3)})];case 3:return q.sent(),[3,5];case 4:throw p=q.sent(),_=p.errorType,T.indexOf(p.errorCode)>=0?new g.NonRetryableError(_):_?new Error(_):p;case 5:return[2]}})})},j.prototype._handleIncomingSubscriptionMessage=function(E){b("subscription message from AWS AppSync RealTime: "+E.data);var C=JSON.parse(E.data),p=C.id,_=void 0===p?"":p,v=C.payload,F=C.type,q=this.subscriptionObserverMap.get(_)||{},Q=q.observer,J=void 0===Q?null:Q,ie=q.query,Se=void 0===ie?"":ie,te=q.variables,ge=void 0===te?{}:te,ue=q.startAckTimeoutId,H=void 0===ue?0:ue,$=q.subscriptionReadyCallback,oe=void 0===$?null:$,ee=q.subscriptionFailedCallback,L=void 0===ee?null:ee;if(b({id:_,observer:J,query:Se,variables:ge}),F===d.MESSAGE_TYPES.GQL_DATA&&v&&v.data)J?J.next(v):b("observer not found for id: "+_);else{if(F===d.MESSAGE_TYPES.GQL_START_ACK)return b("subscription ready for "+JSON.stringify({query:Se,variables:ge})),"function"==typeof oe&&oe(),clearTimeout(H),J?J.next({data:v,extensions:{controlMsgType:"CONNECTED"}}):b("observer not found for id: "+_),void this.subscriptionObserverMap.set(_,{observer:J,query:Se,variables:ge,startAckTimeoutId:null,subscriptionState:d.SUBSCRIPTION_STATUS.CONNECTED,subscriptionReadyCallback:oe,subscriptionFailedCallback:L});if(F===d.MESSAGE_TYPES.GQL_CONNECTION_KEEP_ALIVE)return clearTimeout(this.keepAliveTimeoutId),void(this.keepAliveTimeoutId=setTimeout(this._errorDisconnect.bind(this,d.CONTROL_MSG.TIMEOUT_DISCONNECT),this.keepAliveTimeout));F===d.MESSAGE_TYPES.GQL_ERROR&&(this.subscriptionObserverMap.set(_,{observer:J,query:Se,variables:ge,startAckTimeoutId:H,subscriptionReadyCallback:oe,subscriptionFailedCallback:L,subscriptionState:d.SUBSCRIPTION_STATUS.FAILED}),J.error({errors:[O({},new e.GraphQLError("Connection failed: "+JSON.stringify(v)))]}),clearTimeout(H),J.complete(),"function"==typeof L&&L())}},j.prototype._errorDisconnect=function(E){b("Disconnect error: "+E),this.subscriptionObserverMap.forEach(function(C){var p=C.observer;p&&!p.closed&&p.error({errors:[O({},new e.GraphQLError(E))]})}),this.subscriptionObserverMap.clear(),this.awsRealTimeSocket&&this.awsRealTimeSocket.close(),this.socketStatus=d.SOCKET_STATUS.CLOSED},j.prototype._timeoutStartSubscriptionAck=function(E){var C=this.subscriptionObserverMap.get(E)||{},p=C.observer,_=C.query,v=C.variables;p&&(this.subscriptionObserverMap.set(E,{observer:p,query:_,variables:v,subscriptionState:d.SUBSCRIPTION_STATUS.FAILED}),p&&!p.closed&&(p.error({errors:[O({},new e.GraphQLError("Subscription timeout "+JSON.stringify({query:_,variables:v})))]}),p.complete()),b("timeoutStartSubscription",JSON.stringify({query:_,variables:v})))},j.createWebSocket=function(E,C){return new WebSocket(E,C)},j._discoverAppSyncRealTimeEndpoint=function(E){return E.replace("https://","wss://").replace("http://","ws://").replace("appsync-api","appsync-realtime-api").replace("gogi-beta","grt-beta")},j}(n.ApolloLink);k.AppSyncRealTimeSubscriptionHandshakeLink=V},20399:function(le,k,y){"use strict";var b,a=this&&this.__extends||(b=function(T,M){return(b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(R,x){R.__proto__=x}||function(R,x){for(var P in x)x.hasOwnProperty(P)&&(R[P]=x[P])})(T,M)},function(T,M){function R(){this.constructor=T}b(T,M),T.prototype=null===M?Object.create(M):(R.prototype=M.prototype,new R)}),O=this&&this.__assign||function(){return O=Object.assign||function(b){for(var T,M=1,R=arguments.length;M<R;M++)for(var x in T=arguments[M])Object.prototype.hasOwnProperty.call(T,x)&&(b[x]=T[x]);return b},O.apply(this,arguments)},m=this&&this.__awaiter||function(b,T,M,R){return new(M||(M=Promise))(function(P,W){function V(E){try{j(R.next(E))}catch(C){W(C)}}function Y(E){try{j(R.throw(E))}catch(C){W(C)}}function j(E){E.done?P(E.value):function x(P){return P instanceof M?P:new M(function(W){W(P)})}(E.value).then(V,Y)}j((R=R.apply(b,T||[])).next())})},r=this&&this.__generator||function(b,T){var R,x,P,W,M={label:0,sent:function(){if(1&P[0])throw P[1];return P[1]},trys:[],ops:[]};return W={next:V(0),throw:V(1),return:V(2)},"function"==typeof Symbol&&(W[Symbol.iterator]=function(){return this}),W;function V(j){return function(E){return function Y(j){if(R)throw new TypeError("Generator is already executing.");for(;M;)try{if(R=1,x&&(P=2&j[0]?x.return:j[0]?x.throw||((P=x.return)&&P.call(x),0):x.next)&&!(P=P.call(x,j[1])).done)return P;switch(x=0,P&&(j=[2&j[0],P.value]),j[0]){case 0:case 1:P=j;break;case 4:return M.label++,{value:j[1],done:!1};case 5:M.label++,x=j[1],j=[0];continue;case 7:j=M.ops.pop(),M.trys.pop();continue;default:if(!(P=(P=M.trys).length>0&&P[P.length-1])&&(6===j[0]||2===j[0])){M=0;continue}if(3===j[0]&&(!P||j[1]>P[0]&&j[1]<P[3])){M.label=j[1];break}if(6===j[0]&&M.label<P[1]){M.label=P[1],P=j;break}if(P&&M.label<P[2]){M.label=P[2],M.ops.push(j);break}P[2]&&M.ops.pop(),M.trys.pop();continue}j=T.call(b,M)}catch(E){j=[6,E],x=0}finally{R=P=0}if(5&j[0])throw j[1];return{value:j[0]?j[1]:void 0,done:!0}}([j,E])}}},n=this&&this.__rest||function(b,T){var M={};for(var R in b)Object.prototype.hasOwnProperty.call(b,R)&&T.indexOf(R)<0&&(M[R]=b[R]);if(null!=b&&"function"==typeof Object.getOwnPropertySymbols){var x=0;for(R=Object.getOwnPropertySymbols(b);x<R.length;x++)T.indexOf(R[x])<0&&Object.prototype.propertyIsEnumerable.call(b,R[x])&&(M[R[x]]=b[R[x]])}return M};Object.defineProperty(k,"__esModule",{value:!0});var o=y(92955),l=y(13563),e=y(76353),i=y(56846),h=l.rootLogger.extend("subscriptions"),d=h.extend("mqtt");k.CONTROL_EVENTS_KEY="@@controlEvents";var g=function(b){function T(M){var R=b.call(this)||this;return R.topicObservers=new Map,R.clientObservers=new Map,R.onMessage=function(x,P,W){var V=JSON.parse(P),Y=R.topicObservers.get(x),j=W.reduce(function(E,C){return E[C]=E[C]||null,E},V.data||{});h("Message received",{data:j,topic:x,observers:Y}),Y.forEach(function(E){try{E.next(O(O({},V),{data:j}))}catch(C){h(C)}})},R.subsInfoContextKey=M,R}return a(T,b),T.prototype.request=function(M){var R,x=this,P=M.getContext(),V=P[this.subsInfoContextKey],Y=P.controlMessages,j=k.CONTROL_EVENTS_KEY,E=(void 0===Y?(R={},R[k.CONTROL_EVENTS_KEY]=void 0,R):Y)[j],C=V.extensions,p=(void 0===C?{subscription:{newSubscriptions:{},mqttConnections:[]}}:C).subscription,_=p.newSubscriptions,v=p.mqttConnections,F=V.errors,q=void 0===F?[]:F;if(q&&q.length)return new o.Observable(function(Se){return Se.error(new o.ApolloError({errorMessage:"Error during subscription handshake",extraInfo:{errors:q},graphQLErrors:q})),function(){}});var Q=Object.keys(_).map(function(Se){return _[Se].topic}),J=new Set(Q.filter(function(Se){return x.topicObservers.has(Se)})),ie=new Set(Q.filter(function(Se){return!J.has(Se)}));return new o.Observable(function(Se){J.forEach(function(ge){x.topicObservers.get(ge).add(Se);var ue=Array.from(x.topicObservers.get(ge)).find(function(){return!0}),H=Array.from(x.clientObservers).find(function($){return $[1].observers.has(ue)})[0];x.clientObservers.get(H).observers.add(Se)});var te=v.filter(function(ge){return ge.topics.some(function(ue){return ie.has(ue)})}).map(function(ge){var ue=ge.topics,H=n(ge,["topics"]);return O(O({},H),{topics:ue.filter(function($){return ie.has($)})})});return x.connectNewClients(te,Se,M),function(){Array.from(x.clientObservers).filter(function(ue){return ue[1].observers.has(Se)}).forEach(function(ue){return x.clientObservers.get(ue[0]).observers.delete(Se)}),x.clientObservers.forEach(function(ue){var $=ue.client;0===ue.observers.size&&($.isConnected()&&$.disconnect(),x.clientObservers.delete($.clientId))}),x.clientObservers=new Map(Array.from(x.clientObservers).filter(function(ue){return ue[1].observers.size>0})),x.topicObservers.forEach(function(ue){return ue.delete(Se)}),x.topicObservers=new Map(Array.from(x.topicObservers).filter(function(ue){return ue[1].size>0}))}}).filter(function(Se){var te=Se.extensions,ge=(void 0===te?{}:te).controlMsgType;return!0===E||!(typeof(void 0===ge?void 0:ge)<"u")})},T.prototype.connectNewClients=function(M,R,x){return m(this,void 0,void 0,function(){var W,V,Y,j=this;return r(this,function(E){return W=i.getMainDefinition(x.query).selectionSet.selections.map(function(C){return C.name.value}),V=Promise.all(M.map(function(C){return j.connectNewClient(C,R,W)})),Y=W.reduce(function(C,p){return C[p]=C[p]||null,C},{}),R.next({data:Y,extensions:{controlMsgType:"CONNECTED",controlMsgInfo:{connectionInfo:M}}}),[2,V]})})},T.prototype.connectNewClient=function(M,R,x){return m(this,void 0,void 0,function(){var P,W,V,Y,j=this;return r(this,function(E){switch(E.label){case 0:return V=M.topics,(Y=new e.Client(W=M.url,P=M.client)).trace=d.bind(null,P),Y.onConnectionLost=function(C){var p=C.errorCode,_=n(C,["errorCode"]);0!==p&&V.forEach(function(v){j.topicObservers.has(v)&&j.topicObservers.get(v).forEach(function(F){return F.error(O(O({},_),{permanent:!0}))})}),V.forEach(function(v){return j.topicObservers.delete(v)})},Y.onMessageArrived=function(C){return j.onMessage(C.destinationName,C.payloadString,x)},[4,new Promise(function(C,p){Y.connect({useSSL:0===W.indexOf("wss://"),mqttVersion:3,onSuccess:function(){return C(Y)},onFailure:p})})];case 1:return E.sent(),[4,this.subscribeToTopics(Y,V,R)];case 2:return E.sent(),[2,Y]}})})},T.prototype.subscribeToTopics=function(M,R,x){var P=this;return Promise.all(R.map(function(W){return P.subscribeToTopic(M,W,x)}))},T.prototype.subscribeToTopic=function(M,R,x){var P=this;return new Promise(function(W,V){M.subscribe(R,{onSuccess:function(){P.topicObservers.has(R)||P.topicObservers.set(R,new Set),P.clientObservers.has(M.clientId)||P.clientObservers.set(M.clientId,{client:M,observers:new Set}),P.topicObservers.get(R).add(x),P.clientObservers.get(M.clientId).observers.add(x),W(R)},onFailure:V})})},T}(o.ApolloLink);k.SubscriptionHandshakeLink=g},14328:(le,k)=>{"use strict";var r;Object.defineProperty(k,"__esModule",{value:!0}),(r=k.SUBSCRIPTION_STATUS||(k.SUBSCRIPTION_STATUS={}))[r.PENDING=0]="PENDING",r[r.CONNECTED=1]="CONNECTED",r[r.FAILED=2]="FAILED",function(r){r[r.CLOSED=0]="CLOSED",r[r.READY=1]="READY",r[r.CONNECTING=2]="CONNECTING"}(k.SOCKET_STATUS||(k.SOCKET_STATUS={})),function(r){r.GQL_CONNECTION_INIT="connection_init",r.GQL_CONNECTION_ERROR="connection_error",r.GQL_CONNECTION_ACK="connection_ack",r.GQL_START="start",r.GQL_START_ACK="start_ack",r.GQL_DATA="data",r.GQL_CONNECTION_KEEP_ALIVE="ka",r.GQL_STOP="stop",r.GQL_COMPLETE="complete",r.GQL_ERROR="error"}(k.MESSAGE_TYPES||(k.MESSAGE_TYPES={})),function(r){r.CONNECTION_CLOSED="Connection closed",r.TIMEOUT_DISCONNECT="Timeout disconnect",r.SUBSCRIPTION_ACK="Subscription ack"}(k.CONTROL_MSG||(k.CONTROL_MSG={}))},13563:(le,k,y)=>{"use strict";Object.defineProperty(k,"__esModule",{value:!0});var a=y(76699);k.rootLogger=a.default},76699:function(le,k,y){"use strict";var a=this&&this.__spreadArrays||function(){for(var n=0,o=0,l=arguments.length;o<l;o++)n+=arguments[o].length;var e=Array(n),i=0;for(o=0;o<l;o++)for(var h=arguments[o],d=0,g=h.length;d<g;d++,i++)e[i]=h[d];return e};Object.defineProperty(k,"__esModule",{value:!0});var O=y(55354),m=O.default("aws-appsync"),r=function(n){void 0===n&&(n="");var o=n?a(this.namespace.split(":"),[n]).join(":"):this.namespace,l=O.default(o);return l.extend=r.bind(l),l};m.extend=r.bind(m),k.default=m},32104:function(le,k,y){"use strict";var d,a=this&&this.__extends||(d=function(g,b){return(d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(T,M){T.__proto__=M}||function(T,M){for(var R in M)M.hasOwnProperty(R)&&(T[R]=M[R])})(g,b)},function(g,b){function T(){this.constructor=g}d(g,b),g.prototype=null===b?Object.create(b):(T.prototype=b.prototype,new T)}),O=this&&this.__awaiter||function(d,g,b,T){return new(b||(b=Promise))(function(R,x){function P(Y){try{V(T.next(Y))}catch(j){x(j)}}function W(Y){try{V(T.throw(Y))}catch(j){x(j)}}function V(Y){Y.done?R(Y.value):function M(R){return R instanceof b?R:new b(function(x){x(R)})}(Y.value).then(P,W)}V((T=T.apply(d,g||[])).next())})},m=this&&this.__generator||function(d,g){var T,M,R,x,b={label:0,sent:function(){if(1&R[0])throw R[1];return R[1]},trys:[],ops:[]};return x={next:P(0),throw:P(1),return:P(2)},"function"==typeof Symbol&&(x[Symbol.iterator]=function(){return this}),x;function P(V){return function(Y){return function W(V){if(T)throw new TypeError("Generator is already executing.");for(;b;)try{if(T=1,M&&(R=2&V[0]?M.return:V[0]?M.throw||((R=M.return)&&R.call(M),0):M.next)&&!(R=R.call(M,V[1])).done)return R;switch(M=0,R&&(V=[2&V[0],R.value]),V[0]){case 0:case 1:R=V;break;case 4:return b.label++,{value:V[1],done:!1};case 5:b.label++,M=V[1],V=[0];continue;case 7:V=b.ops.pop(),b.trys.pop();continue;default:if(!(R=(R=b.trys).length>0&&R[R.length-1])&&(6===V[0]||2===V[0])){b=0;continue}if(3===V[0]&&(!R||V[1]>R[0]&&V[1]<R[3])){b.label=V[1];break}if(6===V[0]&&b.label<R[1]){b.label=R[1],R=V;break}if(R&&b.label<R[2]){b.label=R[2],b.ops.push(V);break}R[2]&&b.ops.pop(),b.trys.pop();continue}V=g.call(d,b)}catch(Y){V=[6,Y],M=0}finally{T=R=0}if(5&V[0])throw V[1];return{value:V[0]?V[1]:void 0,done:!0}}([V,Y])}}};Object.defineProperty(k,"__esModule",{value:!0});var n=y(13563).rootLogger.extend("retry"),l=function(d){function g(b){var T=d.call(this,b)||this;return T.nonRetryable=!0,T}return a(g,d),g}(Error);function i(d,g,b,T){return void 0===T&&(T=1),O(this,void 0,void 0,function(){var M,R;return m(this,function(x){switch(x.label){case 0:n("Attempt #"+T+" for this vars: "+JSON.stringify(g)),x.label=1;case 1:return x.trys.push([1,3,,8]),[4,d.apply(void 0,g)];case 2:return x.sent(),[3,8];case 3:if(M=x.sent(),n("error "+M),function(d){return d&&d.nonRetryable}(M))throw n("non retryable error"),M;return R=b(T,g,M),n("retryIn ",R),!1===R?[3,6]:[4,new Promise(function(P){return setTimeout(P,R)})];case 4:return x.sent(),[4,i(d,g,b,T+1)];case 5:return[2,x.sent()];case 6:throw M;case 7:return[3,8];case 8:return[2]}})})}k.NonRetryableError=l,k.retry=i,k.jitteredExponentialRetry=function(d,g,b){return void 0===b&&(b=5e3),i(d,g,function h(d){return function(T){var M=100*Math.pow(2,T)+100*Math.random();return!(M>d)&&M}}(b))}},76353:function(le){var y;le.exports=(y=function(a){var _,m=a.localStorage||(_={},{setItem:function(v,F){_[v]=F},getItem:function(v){return _[v]},removeItem:function(v){delete _[v]}}),r_CONNECT=1,r_CONNACK=2,r_PUBLISH=3,r_PUBACK=4,r_PUBREC=5,r_PUBREL=6,r_PUBCOMP=7,r_SUBSCRIBE=8,r_SUBACK=9,r_UNSUBSCRIBE=10,r_UNSUBACK=11,r_PINGREQ=12,r_PINGRESP=13,r_DISCONNECT=14,n=function(_,v){for(var F in _)if(_.hasOwnProperty(F)){if(!v.hasOwnProperty(F)){var q="Unknown property, "+F+". Valid properties are:";for(var Q in v)v.hasOwnProperty(Q)&&(q=q+" "+Q);throw new Error(q)}if(typeof _[F]!==v[F])throw new Error(i(l.INVALID_TYPE,[typeof _[F],F]))}},o=function(_,v){return function(){return _.apply(v,arguments)}},l={OK:{code:0,text:"AMQJSC0000I OK."},CONNECT_TIMEOUT:{code:1,text:"AMQJSC0001E Connect timed out."},SUBSCRIBE_TIMEOUT:{code:2,text:"AMQJS0002E Subscribe timed out."},UNSUBSCRIBE_TIMEOUT:{code:3,text:"AMQJS0003E Unsubscribe timed out."},PING_TIMEOUT:{code:4,text:"AMQJS0004E Ping timed out."},INTERNAL_ERROR:{code:5,text:"AMQJS0005E Internal error. Error Message: {0}, Stack trace: {1}"},CONNACK_RETURNCODE:{code:6,text:"AMQJS0006E Bad Connack return code:{0} {1}."},SOCKET_ERROR:{code:7,text:"AMQJS0007E Socket error:{0}."},SOCKET_CLOSE:{code:8,text:"AMQJS0008I Socket closed."},MALFORMED_UTF:{code:9,text:"AMQJS0009E Malformed UTF data:{0} {1} {2}."},UNSUPPORTED:{code:10,text:"AMQJS0010E {0} is not supported by this browser."},INVALID_STATE:{code:11,text:"AMQJS0011E Invalid state {0}."},INVALID_TYPE:{code:12,text:"AMQJS0012E Invalid type {0} for {1}."},INVALID_ARGUMENT:{code:13,text:"AMQJS0013E Invalid argument {0} for {1}."},UNSUPPORTED_OPERATION:{code:14,text:"AMQJS0014E Unsupported operation."},INVALID_STORED_DATA:{code:15,text:"AMQJS0015E Invalid data in local storage key={0} value={1}."},INVALID_MQTT_MESSAGE_TYPE:{code:16,text:"AMQJS0016E Invalid MQTT message type {0}."},MALFORMED_UNICODE:{code:17,text:"AMQJS0017E Malformed Unicode string:{0} {1}."},BUFFER_FULL:{code:18,text:"AMQJS0018E Message buffer is full, maximum buffer size: {0}."}},e={0:"Connection Accepted",1:"Connection Refused: unacceptable protocol version",2:"Connection Refused: identifier rejected",3:"Connection Refused: server unavailable",4:"Connection Refused: bad user name or password",5:"Connection Refused: not authorized"},i=function(_,v){var F=_.text;if(v)for(var q,Q,J=0;J<v.length;J++)if((Q=F.indexOf(q="{"+J+"}"))>0){var ie=F.substring(0,Q),Se=F.substring(Q+q.length);F=ie+v[J]+Se}return F},h=[0,6,77,81,73,115,100,112,3],d=[0,4,77,81,84,84,4],g=function(_,v){for(var F in this.type=_,v)v.hasOwnProperty(F)&&(this[F]=v[F])};function b(_,v){var F=v,q=_[v],Q=q>>4,J=q&=15;v+=1;var ie,Se=0,te=1;do{if(v==_.length)return[null,F];Se+=(127&(ie=_[v++]))*te,te*=128}while(128&ie);var ge=v+Se;if(ge>_.length)return[null,F];var ue=new g(Q);switch(Q){case r_CONNACK:1&_[v++]&&(ue.sessionPresent=!0),ue.returnCode=_[v++];break;case r_PUBLISH:var $=J>>1&3,oe=R(_,v),ee=V(_,v+=2,oe);v+=oe,$>0&&(ue.messageIdentifier=R(_,v),v+=2);var L=new y.Message(_.subarray(v,ge));1==(1&J)&&(L.retained=!0),8==(8&J)&&(L.duplicate=!0),L.qos=$,L.destinationName=ee,ue.payloadMessage=L;break;case r_PUBACK:case r_PUBREC:case r_PUBREL:case r_PUBCOMP:case r_UNSUBACK:ue.messageIdentifier=R(_,v);break;case r_SUBACK:ue.messageIdentifier=R(_,v),ue.returnCode=_.subarray(v+=2,ge)}return[ue,ge]}function T(_,v,F){return v[F++]=_>>8,v[F++]=_%256,F}function M(_,v,F,q){return W(_,F,q=T(v,F,q)),q+v}function R(_,v){return 256*_[v]+_[v+1]}function P(_){for(var v=0,F=0;F<_.length;F++){var q=_.charCodeAt(F);q>2047?(55296<=q&&q<=56319&&(F++,v++),v+=3):q>127?v+=2:v++}return v}function W(_,v,F){for(var q=F,Q=0;Q<_.length;Q++){var J=_.charCodeAt(Q);if(55296<=J&&J<=56319){var ie=_.charCodeAt(++Q);if(isNaN(ie))throw new Error(i(l.MALFORMED_UNICODE,[J,ie]));J=ie-56320+(J-55296<<10)+65536}J<=127?v[q++]=J:J<=2047?(v[q++]=J>>6&31|192,v[q++]=63&J|128):J<=65535?(v[q++]=J>>12&15|224,v[q++]=J>>6&63|128,v[q++]=63&J|128):(v[q++]=J>>18&7|240,v[q++]=J>>12&63|128,v[q++]=J>>6&63|128,v[q++]=63&J|128)}return v}function V(_,v,F){for(var Q,q="",J=v;J<v+F;){var ie=_[J++];if(ie<128)Q=ie;else{var Se=_[J++]-128;if(Se<0)throw new Error(i(l.MALFORMED_UTF,[ie.toString(16),Se.toString(16),""]));if(ie<224)Q=64*(ie-192)+Se;else{var te=_[J++]-128;if(te<0)throw new Error(i(l.MALFORMED_UTF,[ie.toString(16),Se.toString(16),te.toString(16)]));if(ie<240)Q=4096*(ie-224)+64*Se+te;else{var ge=_[J++]-128;if(ge<0)throw new Error(i(l.MALFORMED_UTF,[ie.toString(16),Se.toString(16),te.toString(16),ge.toString(16)]));if(!(ie<248))throw new Error(i(l.MALFORMED_UTF,[ie.toString(16),Se.toString(16),te.toString(16),ge.toString(16)]));Q=262144*(ie-240)+4096*Se+64*te+ge}}}Q>65535&&(Q-=65536,q+=String.fromCharCode(55296+(Q>>10)),Q=56320+(1023&Q)),q+=String.fromCharCode(Q)}return q}g.prototype.encode=function(){var Q,_=(15&this.type)<<4,v=0,F=[],q=0;switch(void 0!==this.messageIdentifier&&(v+=2),this.type){case r_CONNECT:switch(this.mqttVersion){case 3:v+=h.length+3;break;case 4:v+=d.length+3}v+=P(this.clientId)+2,void 0!==this.willMessage&&(v+=P(this.willMessage.destinationName)+2,(Q=this.willMessage.payloadBytes)instanceof Uint8Array||(Q=new Uint8Array(ie)),v+=Q.byteLength+2),void 0!==this.userName&&(v+=P(this.userName)+2),void 0!==this.password&&(v+=P(this.password)+2);break;case r_SUBSCRIBE:_|=2;for(var J=0;J<this.topics.length;J++)F[J]=P(this.topics[J]),v+=F[J]+2;v+=this.requestedQos.length;break;case r_UNSUBSCRIBE:for(_|=2,J=0;J<this.topics.length;J++)F[J]=P(this.topics[J]),v+=F[J]+2;break;case r_PUBREL:_|=2;break;case r_PUBLISH:this.payloadMessage.duplicate&&(_|=8),_=_|=this.payloadMessage.qos<<1,this.payloadMessage.retained&&(_|=1),v+=(q=P(this.payloadMessage.destinationName))+2;var ie=this.payloadMessage.payloadBytes;v+=ie.byteLength,ie instanceof ArrayBuffer?ie=new Uint8Array(ie):ie instanceof Uint8Array||(ie=new Uint8Array(ie.buffer))}var Se=function x(_){var v=new Array(1),F=0;do{var q=_%128;(_>>=7)>0&&(q|=128),v[F++]=q}while(_>0&&F<4);return v}(v),te=Se.length+1,ge=new ArrayBuffer(v+te),ue=new Uint8Array(ge);if(ue[0]=_,ue.set(Se,1),this.type==r_PUBLISH)te=M(this.payloadMessage.destinationName,q,ue,te);else if(this.type==r_CONNECT){switch(this.mqttVersion){case 3:ue.set(h,te),te+=h.length;break;case 4:ue.set(d,te),te+=d.length}var H=0;this.cleanSession&&(H=2),void 0!==this.willMessage&&(H|=4,H|=this.willMessage.qos<<3,this.willMessage.retained&&(H|=32)),void 0!==this.userName&&(H|=128),void 0!==this.password&&(H|=64),ue[te++]=H,te=T(this.keepAliveInterval,ue,te)}switch(void 0!==this.messageIdentifier&&(te=T(this.messageIdentifier,ue,te)),this.type){case r_CONNECT:te=M(this.clientId,P(this.clientId),ue,te),void 0!==this.willMessage&&(te=M(this.willMessage.destinationName,P(this.willMessage.destinationName),ue,te),te=T(Q.byteLength,ue,te),ue.set(Q,te),te+=Q.byteLength),void 0!==this.userName&&(te=M(this.userName,P(this.userName),ue,te)),void 0!==this.password&&(te=M(this.password,P(this.password),ue,te));break;case r_PUBLISH:ue.set(ie,te);break;case r_SUBSCRIBE:for(J=0;J<this.topics.length;J++)te=M(this.topics[J],F[J],ue,te),ue[te++]=this.requestedQos[J];break;case r_UNSUBSCRIBE:for(J=0;J<this.topics.length;J++)te=M(this.topics[J],F[J],ue,te)}return ge};var Y=function(_,v){this._client=_,this._keepAliveInterval=1e3*v,this.isReset=!1;var F=new g(r_PINGREQ).encode(),q=function(J){return function(){return Q.apply(J)}},Q=function(){this.isReset?(this.isReset=!1,this._client._trace("Pinger.doPing","send PINGREQ"),this._client.socket.send(F),this.timeout=setTimeout(q(this),this._keepAliveInterval)):(this._client._trace("Pinger.doPing","Timed out"),this._client._disconnected(l.PING_TIMEOUT.code,i(l.PING_TIMEOUT)))};this.reset=function(){this.isReset=!0,clearTimeout(this.timeout),this._keepAliveInterval>0&&(this.timeout=setTimeout(q(this),this._keepAliveInterval))},this.cancel=function(){clearTimeout(this.timeout)}},j=function(_,v,F,q){var J,ie,Se;v||(v=30),this.timeout=setTimeout((J=F,ie=_,Se=q,function(){return J.apply(ie,Se)}),1e3*v),this.cancel=function(){clearTimeout(this.timeout)}},E=function(_,v,F,q,Q){if(!("WebSocket"in a)||null===a.WebSocket)throw new Error(i(l.UNSUPPORTED,["WebSocket"]));if(!("ArrayBuffer"in a)||null===a.ArrayBuffer)throw new Error(i(l.UNSUPPORTED,["ArrayBuffer"]));for(var J in this._trace("Paho.Client",_,v,F,q,Q),this.host=v,this.port=F,this.path=q,this.uri=_,this.clientId=Q,this._wsuri=null,this._localKey=v+":"+F+("/mqtt"!=q?":"+q:"")+":"+Q+":",this._msg_queue=[],this._buffered_msg_queue=[],this._sentMessages={},this._receivedMessages={},this._notify_msg_sent={},this._message_identifier=1,this._sequence=0,m)(0===J.indexOf("Sent:"+this._localKey)||0===J.indexOf("Received:"+this._localKey))&&this.restore(J)};E.prototype.host=null,E.prototype.port=null,E.prototype.path=null,E.prototype.uri=null,E.prototype.clientId=null,E.prototype.socket=null,E.prototype.connected=!1,E.prototype.maxMessageIdentifier=65536,E.prototype.connectOptions=null,E.prototype.hostIndex=null,E.prototype.onConnected=null,E.prototype.onConnectionLost=null,E.prototype.onMessageDelivered=null,E.prototype.onMessageArrived=null,E.prototype.traceFunction=null,E.prototype._msg_queue=null,E.prototype._buffered_msg_queue=null,E.prototype._connectTimeout=null,E.prototype.sendPinger=null,E.prototype.receivePinger=null,E.prototype._reconnectInterval=1,E.prototype._reconnecting=!1,E.prototype._reconnectTimeout=null,E.prototype.disconnectedPublishing=!1,E.prototype.disconnectedBufferSize=5e3,E.prototype.receiveBuffer=null,E.prototype._traceBuffer=null,E.prototype._MAX_TRACE_ENTRIES=100,E.prototype.connect=function(_){var v=this._traceMask(_,"password");if(this._trace("Client.connect",v,this.socket,this.connected),this.connected)throw new Error(i(l.INVALID_STATE,["already connected"]));if(this.socket)throw new Error(i(l.INVALID_STATE,["already connected"]));this._reconnecting&&(this._reconnectTimeout.cancel(),this._reconnectTimeout=null,this._reconnecting=!1),this.connectOptions=_,this._reconnectInterval=1,this._reconnecting=!1,_.uris?(this.hostIndex=0,this._doConnect(_.uris[0])):this._doConnect(this.uri)},E.prototype.subscribe=function(_,v){if(this._trace("Client.subscribe",_,v),!this.connected)throw new Error(i(l.INVALID_STATE,["not connected"]));var F=new g(r_SUBSCRIBE);F.topics=[_],F.requestedQos=void 0!==v.qos?[v.qos]:[0],v.onSuccess&&(F.onSuccess=function(q){v.onSuccess({invocationContext:v.invocationContext,grantedQos:q})}),v.onFailure&&(F.onFailure=function(q){v.onFailure({invocationContext:v.invocationContext,errorCode:q,errorMessage:i(q)})}),v.timeout&&(F.timeOut=new j(this,v.timeout,v.onFailure,[{invocationContext:v.invocationContext,errorCode:l.SUBSCRIBE_TIMEOUT.code,errorMessage:i(l.SUBSCRIBE_TIMEOUT)}])),this._requires_ack(F),this._schedule_message(F)},E.prototype.unsubscribe=function(_,v){if(this._trace("Client.unsubscribe",_,v),!this.connected)throw new Error(i(l.INVALID_STATE,["not connected"]));var F=new g(r_UNSUBSCRIBE);F.topics=[_],v.onSuccess&&(F.callback=function(){v.onSuccess({invocationContext:v.invocationContext})}),v.timeout&&(F.timeOut=new j(this,v.timeout,v.onFailure,[{invocationContext:v.invocationContext,errorCode:l.UNSUBSCRIBE_TIMEOUT.code,errorMessage:i(l.UNSUBSCRIBE_TIMEOUT)}])),this._requires_ack(F),this._schedule_message(F)},E.prototype.send=function(_){this._trace("Client.send",_);var v=new g(r_PUBLISH);if(v.payloadMessage=_,this.connected)_.qos>0?this._requires_ack(v):this.onMessageDelivered&&(this._notify_msg_sent[v]=this.onMessageDelivered(v.payloadMessage)),this._schedule_message(v);else{if(!this._reconnecting||!this.disconnectedPublishing)throw new Error(i(l.INVALID_STATE,["not connected"]));if(Object.keys(this._sentMessages).length+this._buffered_msg_queue.length>this.disconnectedBufferSize)throw new Error(i(l.BUFFER_FULL,[this.disconnectedBufferSize]));_.qos>0?this._requires_ack(v):(v.sequence=++this._sequence,this._buffered_msg_queue.unshift(v))}},E.prototype.disconnect=function(){if(this._trace("Client.disconnect"),this._reconnecting&&(this._reconnectTimeout.cancel(),this._reconnectTimeout=null,this._reconnecting=!1),!this.socket)throw new Error(i(l.INVALID_STATE,["not connecting or connected"]));var _=new g(r_DISCONNECT);this._notify_msg_sent[_]=o(this._disconnected,this),this._schedule_message(_)},E.prototype.getTraceLog=function(){if(null!==this._traceBuffer){for(var _ in this._trace("Client.getTraceLog",new Date),this._trace("Client.getTraceLog in flight messages",this._sentMessages.length),this._sentMessages)this._trace("_sentMessages ",_,this._sentMessages[_]);for(var _ in this._receivedMessages)this._trace("_receivedMessages ",_,this._receivedMessages[_]);return this._traceBuffer}},E.prototype.startTrace=function(){null===this._traceBuffer&&(this._traceBuffer=[]),this._trace("Client.startTrace",new Date,"@VERSION@-@BUILDLEVEL@")},E.prototype.stopTrace=function(){delete this._traceBuffer},E.prototype._doConnect=function(_){if(this.connectOptions.useSSL){var v=_.split(":");v[0]="wss",_=v.join(":")}this._wsuri=_,this.connected=!1,this.socket=this.connectOptions.mqttVersion<4?new WebSocket(_,["mqttv3.1"]):new WebSocket(_,["mqtt"]),this.socket.binaryType="arraybuffer",this.socket.onopen=o(this._on_socket_open,this),this.socket.onmessage=o(this._on_socket_message,this),this.socket.onerror=o(this._on_socket_error,this),this.socket.onclose=o(this._on_socket_close,this),this.sendPinger=new Y(this,this.connectOptions.keepAliveInterval),this.receivePinger=new Y(this,this.connectOptions.keepAliveInterval),this._connectTimeout&&(this._connectTimeout.cancel(),this._connectTimeout=null),this._connectTimeout=new j(this,this.connectOptions.timeout,this._disconnected,[l.CONNECT_TIMEOUT.code,i(l.CONNECT_TIMEOUT)])},E.prototype._schedule_message=function(_){this._msg_queue.unshift(_),this.connected&&this._process_queue()},E.prototype.store=function(_,v){var F={type:v.type,messageIdentifier:v.messageIdentifier,version:1};if(v.type!==r_PUBLISH)throw Error(i(l.INVALID_STORED_DATA,[_+this._localKey+v.messageIdentifier,F]));v.pubRecReceived&&(F.pubRecReceived=!0),F.payloadMessage={};for(var q="",Q=v.payloadMessage.payloadBytes,J=0;J<Q.length;J++)Q[J]<=15?q=q+"0"+Q[J].toString(16):q+=Q[J].toString(16);F.payloadMessage.payloadHex=q,F.payloadMessage.qos=v.payloadMessage.qos,F.payloadMessage.destinationName=v.payloadMessage.destinationName,v.payloadMessage.duplicate&&(F.payloadMessage.duplicate=!0),v.payloadMessage.retained&&(F.payloadMessage.retained=!0),0===_.indexOf("Sent:")&&(void 0===v.sequence&&(v.sequence=++this._sequence),F.sequence=v.sequence),m.setItem(_+this._localKey+v.messageIdentifier,JSON.stringify(F))},E.prototype.restore=function(_){var v=m.getItem(_),F=JSON.parse(v),q=new g(F.type,F);if(F.type!==r_PUBLISH)throw Error(i(l.INVALID_STORED_DATA,[_,v]));for(var Q=F.payloadMessage.payloadHex,J=new ArrayBuffer(Q.length/2),ie=new Uint8Array(J),Se=0;Q.length>=2;){var te=parseInt(Q.substring(0,2),16);Q=Q.substring(2,Q.length),ie[Se++]=te}var ge=new y.Message(ie);ge.qos=F.payloadMessage.qos,ge.destinationName=F.payloadMessage.destinationName,F.payloadMessage.duplicate&&(ge.duplicate=!0),F.payloadMessage.retained&&(ge.retained=!0),q.payloadMessage=ge,0===_.indexOf("Sent:"+this._localKey)?(q.payloadMessage.duplicate=!0,this._sentMessages[q.messageIdentifier]=q):0===_.indexOf("Received:"+this._localKey)&&(this._receivedMessages[q.messageIdentifier]=q)},E.prototype._process_queue=function(){for(var _=null;_=this._msg_queue.pop();)this._socket_send(_),this._notify_msg_sent[_]&&(this._notify_msg_sent[_](),delete this._notify_msg_sent[_])},E.prototype._requires_ack=function(_){var v=Object.keys(this._sentMessages).length;if(v>this.maxMessageIdentifier)throw Error("Too many messages:"+v);for(;void 0!==this._sentMessages[this._message_identifier];)this._message_identifier++;_.messageIdentifier=this._message_identifier,this._sentMessages[_.messageIdentifier]=_,_.type===r_PUBLISH&&this.store("Sent:",_),this._message_identifier===this.maxMessageIdentifier&&(this._message_identifier=1)},E.prototype._on_socket_open=function(){var _=new g(r_CONNECT,this.connectOptions);_.clientId=this.clientId,this._socket_send(_)},E.prototype._on_socket_message=function(_){this._trace("Client._on_socket_message",_.data);for(var v=this._deframeMessages(_.data),F=0;F<v.length;F+=1)this._handleMessage(v[F])},E.prototype._deframeMessages=function(_){var v=new Uint8Array(_),F=[];if(this.receiveBuffer){var q=new Uint8Array(this.receiveBuffer.length+v.length);q.set(this.receiveBuffer),q.set(v,this.receiveBuffer.length),v=q,delete this.receiveBuffer}try{for(var Q=0;Q<v.length;){var J=b(v,Q),ie=J[0];if(Q=J[1],null===ie)break;F.push(ie)}Q<v.length&&(this.receiveBuffer=v.subarray(Q))}catch(te){var Se="undefined"==te.hasOwnProperty("stack")?te.stack.toString():"No Error Stack Available";return void this._disconnected(l.INTERNAL_ERROR.code,i(l.INTERNAL_ERROR,[te.message,Se]))}return F},E.prototype._handleMessage=function(_){this._trace("Client._handleMessage",_);try{switch(_.type){case r_CONNACK:if(this._connectTimeout.cancel(),this._reconnectTimeout&&this._reconnectTimeout.cancel(),this.connectOptions.cleanSession){for(var v in this._sentMessages)m.removeItem("Sent:"+this._localKey+(H=this._sentMessages[v]).messageIdentifier);for(var v in this._sentMessages={},this._receivedMessages)m.removeItem("Received:"+this._localKey+(ge=this._receivedMessages[v]).messageIdentifier);this._receivedMessages={}}if(0!==_.returnCode){this._disconnected(l.CONNACK_RETURNCODE.code,i(l.CONNACK_RETURNCODE,[_.returnCode,e[_.returnCode]]));break}this.connected=!0,this.connectOptions.uris&&(this.hostIndex=this.connectOptions.uris.length);var Q=[];for(var F in this._sentMessages)this._sentMessages.hasOwnProperty(F)&&Q.push(this._sentMessages[F]);if(this._buffered_msg_queue.length>0)for(var q=null;q=this._buffered_msg_queue.pop();)Q.push(q),this.onMessageDelivered&&(this._notify_msg_sent[q]=this.onMessageDelivered(q.payloadMessage));Q=Q.sort(function(oe,ee){return oe.sequence-ee.sequence});for(var J=0,ie=Q.length;J<ie;J++)if((H=Q[J]).type==r_PUBLISH&&H.pubRecReceived){var Se=new g(r_PUBREL,{messageIdentifier:H.messageIdentifier});this._schedule_message(Se)}else this._schedule_message(H);this.connectOptions.onSuccess&&this.connectOptions.onSuccess({invocationContext:this.connectOptions.invocationContext});var te=!1;this._reconnecting&&(te=!0,this._reconnectInterval=1,this._reconnecting=!1),this._connected(te,this._wsuri),this._process_queue();break;case r_PUBLISH:this._receivePublish(_);break;case r_PUBACK:(H=this._sentMessages[_.messageIdentifier])&&(delete this._sentMessages[_.messageIdentifier],m.removeItem("Sent:"+this._localKey+_.messageIdentifier),this.onMessageDelivered&&this.onMessageDelivered(H.payloadMessage));break;case r_PUBREC:(H=this._sentMessages[_.messageIdentifier])&&(H.pubRecReceived=!0,Se=new g(r_PUBREL,{messageIdentifier:_.messageIdentifier}),this.store("Sent:",H),this._schedule_message(Se));break;case r_PUBREL:var ge=this._receivedMessages[_.messageIdentifier];m.removeItem("Received:"+this._localKey+_.messageIdentifier),ge&&(this._receiveMessage(ge),delete this._receivedMessages[_.messageIdentifier]);var ue=new g(r_PUBCOMP,{messageIdentifier:_.messageIdentifier});this._schedule_message(ue);break;case r_PUBCOMP:var H=this._sentMessages[_.messageIdentifier];delete this._sentMessages[_.messageIdentifier],m.removeItem("Sent:"+this._localKey+_.messageIdentifier),this.onMessageDelivered&&this.onMessageDelivered(H.payloadMessage);break;case r_SUBACK:(H=this._sentMessages[_.messageIdentifier])&&(H.timeOut&&H.timeOut.cancel(),128===_.returnCode[0]?H.onFailure&&H.onFailure(_.returnCode):H.onSuccess&&H.onSuccess(_.returnCode),delete this._sentMessages[_.messageIdentifier]);break;case r_UNSUBACK:(H=this._sentMessages[_.messageIdentifier])&&(H.timeOut&&H.timeOut.cancel(),H.callback&&H.callback(),delete this._sentMessages[_.messageIdentifier]);break;case r_PINGRESP:this.sendPinger.reset();break;default:this._disconnected(l.INVALID_MQTT_MESSAGE_TYPE.code,i(l.INVALID_MQTT_MESSAGE_TYPE,[_.type]))}}catch(oe){var $="undefined"==oe.hasOwnProperty("stack")?oe.stack.toString():"No Error Stack Available";return void this._disconnected(l.INTERNAL_ERROR.code,i(l.INTERNAL_ERROR,[oe.message,$]))}},E.prototype._on_socket_error=function(_){this._reconnecting||this._disconnected(l.SOCKET_ERROR.code,i(l.SOCKET_ERROR,[_.data]))},E.prototype._on_socket_close=function(){this._reconnecting||this._disconnected(l.SOCKET_CLOSE.code,i(l.SOCKET_CLOSE))},E.prototype._socket_send=function(_){if(1==_.type){var v=this._traceMask(_,"password");this._trace("Client._socket_send",v)}else this._trace("Client._socket_send",_);this.socket.send(_.encode()),this.sendPinger.reset()},E.prototype._receivePublish=function(_){switch(_.payloadMessage.qos){case"undefined":case 0:this._receiveMessage(_);break;case 1:var v=new g(r_PUBACK,{messageIdentifier:_.messageIdentifier});this._schedule_message(v),this._receiveMessage(_);break;case 2:this._receivedMessages[_.messageIdentifier]=_,this.store("Received:",_);var F=new g(r_PUBREC,{messageIdentifier:_.messageIdentifier});this._schedule_message(F);break;default:throw Error("Invaild qos="+_.payloadMessage.qos)}},E.prototype._receiveMessage=function(_){this.onMessageArrived&&this.onMessageArrived(_.payloadMessage)},E.prototype._connected=function(_,v){this.onConnected&&this.onConnected(_,v)},E.prototype._reconnect=function(){this._trace("Client._reconnect"),this.connected||(this._reconnecting=!0,this.sendPinger.cancel(),this.receivePinger.cancel(),this._reconnectInterval<128&&(this._reconnectInterval=2*this._reconnectInterval),this.connectOptions.uris?(this.hostIndex=0,this._doConnect(this.connectOptions.uris[0])):this._doConnect(this.uri))},E.prototype._disconnected=function(_,v){if(this._trace("Client._disconnected",_,v),void 0!==_&&this._reconnecting)this._reconnectTimeout=new j(this,this._reconnectInterval,this._reconnect);else if(this.sendPinger.cancel(),this.receivePinger.cancel(),this._connectTimeout&&(this._connectTimeout.cancel(),this._connectTimeout=null),this._msg_queue=[],this._buffered_msg_queue=[],this._notify_msg_sent={},this.socket&&(this.socket.onopen=null,this.socket.onmessage=null,this.socket.onerror=null,this.socket.onclose=null,1===this.socket.readyState&&this.socket.close(),delete this.socket),this.connectOptions.uris&&this.hostIndex<this.connectOptions.uris.length-1)this.hostIndex++,this._doConnect(this.connectOptions.uris[this.hostIndex]);else if(void 0===_&&(_=l.OK.code,v=i(l.OK)),this.connected){if(this.connected=!1,this.onConnectionLost&&this.onConnectionLost({errorCode:_,errorMessage:v,reconnect:this.connectOptions.reconnect,uri:this._wsuri}),_!==l.OK.code&&this.connectOptions.reconnect)return this._reconnectInterval=1,void this._reconnect()}else 4===this.connectOptions.mqttVersion&&!1===this.connectOptions.mqttVersionExplicit?(this._trace("Failed to connect V4, dropping back to V3"),this.connectOptions.mqttVersion=3,this.connectOptions.uris?(this.hostIndex=0,this._doConnect(this.connectOptions.uris[0])):this._doConnect(this.uri)):this.connectOptions.onFailure&&this.connectOptions.onFailure({invocationContext:this.connectOptions.invocationContext,errorCode:_,errorMessage:v})},E.prototype._trace=function(){if(this.traceFunction){var _=Array.prototype.slice.call(arguments);for(var v in _)typeof _[v]<"u"&&_.splice(v,1,JSON.stringify(_[v]));var F=_.join("");this.traceFunction({severity:"Debug",message:F})}if(null!==this._traceBuffer){v=0;for(var q=arguments.length;v<q;v++)this._traceBuffer.length==this._MAX_TRACE_ENTRIES&&this._traceBuffer.shift(),this._traceBuffer.push(0===v||typeof arguments[v]>"u"?arguments[v]:" "+JSON.stringify(arguments[v]))}},E.prototype._traceMask=function(_,v){var F={};for(var q in _)_.hasOwnProperty(q)&&(F[q]=q==v?"******":_[q]);return F};var p=function(_){var v;if(!("string"==typeof _||_ instanceof ArrayBuffer||ArrayBuffer.isView(_)&&!(_ instanceof DataView)))throw i(l.INVALID_ARGUMENT,[_,"newPayload"]);v=_;var F,q=0,Q=!1,J=!1;Object.defineProperties(this,{payloadString:{enumerable:!0,get:function(){return"string"==typeof v?v:V(v,0,v.length)}},payloadBytes:{enumerable:!0,get:function(){if("string"==typeof v){var ie=new ArrayBuffer(P(v)),Se=new Uint8Array(ie);return W(v,Se,0),Se}return v}},destinationName:{enumerable:!0,get:function(){return F},set:function(ie){if("string"!=typeof ie)throw new Error(i(l.INVALID_ARGUMENT,[ie,"newDestinationName"]));F=ie}},qos:{enumerable:!0,get:function(){return q},set:function(ie){if(0!==ie&&1!==ie&&2!==ie)throw new Error("Invalid argument:"+ie);q=ie}},retained:{enumerable:!0,get:function(){return Q},set:function(ie){if("boolean"!=typeof ie)throw new Error(i(l.INVALID_ARGUMENT,[ie,"newRetained"]));Q=ie}},topic:{enumerable:!0,get:function(){return F},set:function(ie){F=ie}},duplicate:{enumerable:!0,get:function(){return J},set:function(ie){J=ie}}})};return{Client:function(_,v,F,q){var Q;if("string"!=typeof _)throw new Error(i(l.INVALID_TYPE,[typeof _,"host"]));if(2==arguments.length){q=v;var J=(Q=_).match(/^(wss?):\/\/((\[(.+)\])|([^\/]+?))(:(\d+))?(\/.*)$/);if(!J)throw new Error(i(l.INVALID_ARGUMENT,[_,"host"]));_=J[4]||J[2],v=parseInt(J[7]),F=J[8]}else{if(3==arguments.length&&(q=F,F="/mqtt"),"number"!=typeof v||v<0)throw new Error(i(l.INVALID_TYPE,[typeof v,"port"]));if("string"!=typeof F)throw new Error(i(l.INVALID_TYPE,[typeof F,"path"]));var ie=-1!==_.indexOf(":")&&"["!==_.slice(0,1)&&"]"!==_.slice(-1);Q="ws://"+(ie?"["+_+"]":_)+":"+v+F}for(var Se=0,te=0;te<q.length;te++){var ge=q.charCodeAt(te);55296<=ge&&ge<=56319&&te++,Se++}if("string"!=typeof q||Se>65535)throw new Error(i(l.INVALID_ARGUMENT,[q,"clientId"]));var ue=new E(Q,_,v,F,q);Object.defineProperties(this,{host:{get:function(){return _},set:function(){throw new Error(i(l.UNSUPPORTED_OPERATION))}},port:{get:function(){return v},set:function(){throw new Error(i(l.UNSUPPORTED_OPERATION))}},path:{get:function(){return F},set:function(){throw new Error(i(l.UNSUPPORTED_OPERATION))}},uri:{get:function(){return Q},set:function(){throw new Error(i(l.UNSUPPORTED_OPERATION))}},clientId:{get:function(){return ue.clientId},set:function(){throw new Error(i(l.UNSUPPORTED_OPERATION))}},onConnected:{get:function(){return ue.onConnected},set:function(H){if("function"!=typeof H)throw new Error(i(l.INVALID_TYPE,[typeof H,"onConnected"]));ue.onConnected=H}},disconnectedPublishing:{get:function(){return ue.disconnectedPublishing},set:function(H){ue.disconnectedPublishing=H}},disconnectedBufferSize:{get:function(){return ue.disconnectedBufferSize},set:function(H){ue.disconnectedBufferSize=H}},onConnectionLost:{get:function(){return ue.onConnectionLost},set:function(H){if("function"!=typeof H)throw new Error(i(l.INVALID_TYPE,[typeof H,"onConnectionLost"]));ue.onConnectionLost=H}},onMessageDelivered:{get:function(){return ue.onMessageDelivered},set:function(H){if("function"!=typeof H)throw new Error(i(l.INVALID_TYPE,[typeof H,"onMessageDelivered"]));ue.onMessageDelivered=H}},onMessageArrived:{get:function(){return ue.onMessageArrived},set:function(H){if("function"!=typeof H)throw new Error(i(l.INVALID_TYPE,[typeof H,"onMessageArrived"]));ue.onMessageArrived=H}},trace:{get:function(){return ue.traceFunction},set:function(H){if("function"!=typeof H)throw new Error(i(l.INVALID_TYPE,[typeof H,"onTrace"]));ue.traceFunction=H}}}),this.connect=function(H){if(n(H=H||{},{timeout:"number",userName:"string",password:"string",willMessage:"object",keepAliveInterval:"number",cleanSession:"boolean",useSSL:"boolean",invocationContext:"object",onSuccess:"function",onFailure:"function",hosts:"object",ports:"object",reconnect:"boolean",mqttVersion:"number",mqttVersionExplicit:"boolean",uris:"object"}),void 0===H.keepAliveInterval&&(H.keepAliveInterval=60),H.mqttVersion>4||H.mqttVersion<3)throw new Error(i(l.INVALID_ARGUMENT,[H.mqttVersion,"connectOptions.mqttVersion"]));if(void 0===H.mqttVersion?(H.mqttVersionExplicit=!1,H.mqttVersion=4):H.mqttVersionExplicit=!0,void 0!==H.password&&void 0===H.userName)throw new Error(i(l.INVALID_ARGUMENT,[H.password,"connectOptions.password"]));if(H.willMessage){if(!(H.willMessage instanceof p))throw new Error(i(l.INVALID_TYPE,[H.willMessage,"connectOptions.willMessage"]));if(H.willMessage.stringPayload=null,typeof H.willMessage.destinationName>"u")throw new Error(i(l.INVALID_TYPE,[typeof H.willMessage.destinationName,"connectOptions.willMessage.destinationName"]))}if(typeof H.cleanSession>"u"&&(H.cleanSession=!0),H.hosts){if(!(H.hosts instanceof Array))throw new Error(i(l.INVALID_ARGUMENT,[H.hosts,"connectOptions.hosts"]));if(H.hosts.length<1)throw new Error(i(l.INVALID_ARGUMENT,[H.hosts,"connectOptions.hosts"]));for(var $=!1,oe=0;oe<H.hosts.length;oe++){if("string"!=typeof H.hosts[oe])throw new Error(i(l.INVALID_TYPE,[typeof H.hosts[oe],"connectOptions.hosts["+oe+"]"]));if(/^(wss?):\/\/((\[(.+)\])|([^\/]+?))(:(\d+))?(\/.*)$/.test(H.hosts[oe])){if(0===oe)$=!0;else if(!$)throw new Error(i(l.INVALID_ARGUMENT,[H.hosts[oe],"connectOptions.hosts["+oe+"]"]))}else if($)throw new Error(i(l.INVALID_ARGUMENT,[H.hosts[oe],"connectOptions.hosts["+oe+"]"]))}if($)H.uris=H.hosts;else{if(!H.ports)throw new Error(i(l.INVALID_ARGUMENT,[H.ports,"connectOptions.ports"]));if(!(H.ports instanceof Array))throw new Error(i(l.INVALID_ARGUMENT,[H.ports,"connectOptions.ports"]));if(H.hosts.length!==H.ports.length)throw new Error(i(l.INVALID_ARGUMENT,[H.ports,"connectOptions.ports"]));for(H.uris=[],oe=0;oe<H.hosts.length;oe++){if("number"!=typeof H.ports[oe]||H.ports[oe]<0)throw new Error(i(l.INVALID_TYPE,[typeof H.ports[oe],"connectOptions.ports["+oe+"]"]));var ee=H.hosts[oe],L=H.ports[oe],S=-1!==ee.indexOf(":");H.uris.push(Q="ws://"+(S?"["+ee+"]":ee)+":"+L+F)}}}ue.connect(H)},this.subscribe=function(H,$){if("string"!=typeof H)throw new Error("Invalid argument:"+H);if(n($=$||{},{qos:"number",invocationContext:"object",onSuccess:"function",onFailure:"function",timeout:"number"}),$.timeout&&!$.onFailure)throw new Error("subscribeOptions.timeout specified with no onFailure callback.");if(typeof $.qos<"u"&&0!==$.qos&&1!==$.qos&&2!==$.qos)throw new Error(i(l.INVALID_ARGUMENT,[$.qos,"subscribeOptions.qos"]));ue.subscribe(H,$)},this.unsubscribe=function(H,$){if("string"!=typeof H)throw new Error("Invalid argument:"+H);if(n($=$||{},{invocationContext:"object",onSuccess:"function",onFailure:"function",timeout:"number"}),$.timeout&&!$.onFailure)throw new Error("unsubscribeOptions.timeout specified with no onFailure callback.");ue.unsubscribe(H,$)},this.send=function(H,$,oe,ee){var L;if(0===arguments.length)throw new Error("Invalid argument.length");if(1==arguments.length){if(!(H instanceof p)&&"string"!=typeof H)throw new Error("Invalid argument:"+typeof H);if(typeof(L=H).destinationName>"u")throw new Error(i(l.INVALID_ARGUMENT,[L.destinationName,"Message.destinationName"]));ue.send(L)}else(L=new p($)).destinationName=H,arguments.length>=3&&(L.qos=oe),arguments.length>=4&&(L.retained=ee),ue.send(L)},this.publish=function(H,$,oe,ee){var L;if(0===arguments.length)throw new Error("Invalid argument.length");if(1==arguments.length){if(!(H instanceof p)&&"string"!=typeof H)throw new Error("Invalid argument:"+typeof H);if(typeof(L=H).destinationName>"u")throw new Error(i(l.INVALID_ARGUMENT,[L.destinationName,"Message.destinationName"]));ue.send(L)}else(L=new p($)).destinationName=H,arguments.length>=3&&(L.qos=oe),arguments.length>=4&&(L.retained=ee),ue.send(L)},this.disconnect=function(){ue.disconnect()},this.getTraceLog=function(){return ue.getTraceLog()},this.startTrace=function(){ue.startTrace()},this.stopTrace=function(){ue.stopTrace()},this.isConnected=function(){return ue.connected}},Message:p}}(typeof global<"u"?global:typeof self<"u"?self:typeof window<"u"?window:{}),y)},55354:(le,k,y)=>{function n(){var l;try{l=k.storage.debug}catch{}return!l&&typeof process<"u"&&"env"in process&&(l=process.env.DEBUG),l}(k=le.exports=y(81326)).log=function m(){return"object"==typeof console&&console.log&&Function.prototype.apply.call(console.log,console,arguments)},k.formatArgs=function O(l){var e=this.useColors;if(l[0]=(e?"%c":"")+this.namespace+(e?" %c":" ")+l[0]+(e?"%c ":" ")+"+"+k.humanize(this.diff),e){var i="color: "+this.color;l.splice(1,0,i,"color: inherit");var h=0,d=0;l[0].replace(/%[a-zA-Z%]/g,function(g){"%%"!==g&&(h++,"%c"===g&&(d=h))}),l.splice(d,0,i)}},k.save=function r(l){try{null==l?k.storage.removeItem("debug"):k.storage.debug=l}catch{}},k.load=n,k.useColors=function a(){return!!(typeof window<"u"&&window.process&&"renderer"===window.process.type)||typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)},k.storage=typeof chrome<"u"&&typeof chrome.storage<"u"?chrome.storage.local:function o(){try{return window.localStorage}catch{}}(),k.colors=["lightseagreen","forestgreen","goldenrod","dodgerblue","darkorchid","crimson"],k.formatters.j=function(l){try{return JSON.stringify(l)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}},k.enable(n())},81326:(le,k,y)=>{var a;function m(e){function i(){if(i.enabled){var h=i,d=+new Date;h.diff=d-(a||d),h.prev=a,h.curr=d,a=d;for(var b=new Array(arguments.length),T=0;T<b.length;T++)b[T]=arguments[T];b[0]=k.coerce(b[0]),"string"!=typeof b[0]&&b.unshift("%O");var M=0;b[0]=b[0].replace(/%([a-zA-Z%])/g,function(x,P){if("%%"===x)return x;M++;var W=k.formatters[P];return"function"==typeof W&&(x=W.call(h,b[M]),b.splice(M,1),M--),x}),k.formatArgs.call(h,b),(i.log||k.log||console.log.bind(console)).apply(h,b)}}return i.namespace=e,i.enabled=k.enabled(e),i.useColors=k.useColors(),i.color=function O(e){var h,i=0;for(h in e)i=(i<<5)-i+e.charCodeAt(h),i|=0;return k.colors[Math.abs(i)%k.colors.length]}(e),"function"==typeof k.init&&k.init(i),i}(k=le.exports=m.debug=m.default=m).coerce=function l(e){return e instanceof Error?e.stack||e.message:e},k.disable=function n(){k.enable("")},k.enable=function r(e){k.save(e),k.names=[],k.skips=[];for(var i=("string"==typeof e?e:"").split(/[\s,]+/),h=i.length,d=0;d<h;d++)i[d]&&("-"===(e=i[d].replace(/\*/g,".*?"))[0]?k.skips.push(new RegExp("^"+e.substr(1)+"$")):k.names.push(new RegExp("^"+e+"$")))},k.enabled=function o(e){var i,h;for(i=0,h=k.skips.length;i<h;i++)if(k.skips[i].test(e))return!1;for(i=0,h=k.names.length;i<h;i++)if(k.names[i].test(e))return!0;return!1},k.humanize=y(88008),k.names=[],k.skips=[],k.formatters={}},88008:le=>{var k=1e3,y=60*k,a=60*y,O=24*a;function l(e,i,h){if(!(e<i))return e<1.5*i?Math.floor(e/i)+" "+h:Math.ceil(e/i)+" "+h+"s"}le.exports=function(e,i){i=i||{};var h=typeof e;if("string"===h&&e.length>0)return function r(e){if(!((e=String(e)).length>100)){var i=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(e);if(i){var h=parseFloat(i[1]);switch((i[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return 315576e5*h;case"days":case"day":case"d":return h*O;case"hours":case"hour":case"hrs":case"hr":case"h":return h*a;case"minutes":case"minute":case"mins":case"min":case"m":return h*y;case"seconds":case"second":case"secs":case"sec":case"s":return h*k;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return h;default:return}}}}(e);if("number"===h&&!1===isNaN(e))return i.long?function o(e){return l(e,O,"day")||l(e,a,"hour")||l(e,y,"minute")||l(e,k,"second")||e+" ms"}(e):function n(e){return e>=O?Math.round(e/O)+"d":e>=a?Math.round(e/a)+"h":e>=y?Math.round(e/y)+"m":e>=k?Math.round(e/k)+"s":e+"ms"}(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}},13566:(le,k,y)=>{y(22488);var a=y(86462);typeof window<"u"&&(window.AWS=a),le.exports=a,typeof self<"u"&&(self.AWS=a)},56549:(le,k,y)=>{y(22488);var a=y(86462),O=a.Service,m=a.apiLoader;m.services.cognitoidentity={},a.CognitoIdentity=O.defineService("cognitoidentity",["2014-06-30"]),Object.defineProperty(m.services.cognitoidentity,"2014-06-30",{get:function(){var n=y(79476);return n.paginators=y(85464).o,n},enumerable:!0,configurable:!0}),le.exports=a.CognitoIdentity},81999:(le,k,y)=>{y(22488);var a=y(86462),O=a.Service,m=a.apiLoader;m.services.sts={},a.STS=O.defineService("sts",["2011-06-15"]),y(73884),Object.defineProperty(m.services.sts,"2011-06-15",{get:function(){var n=y(3554);return n.paginators=y(31152).o,n},enumerable:!0,configurable:!0}),le.exports=a.STS},91151:le=>{function k(y,a){if(!k.services.hasOwnProperty(y))throw new Error("InvalidService: Failed to load api for "+y);return k.services[y][a]}k.services={},le.exports=k},79427:(le,k,y)=>{var a=y(11943),O=y(91777),m=y(47539),r=y(68469);le.exports={createHash:function(o){if("md5"===(o=o.toLowerCase()))return new O;if("sha256"===o)return new r;if("sha1"===o)return new m;throw new Error("Hash algorithm "+o+" is not supported in the browser SDK")},createHmac:function(o,l){if("md5"===(o=o.toLowerCase()))return new a(O,l);if("sha256"===o)return new a(r,l);if("sha1"===o)return new a(m,l);throw new Error("HMAC algorithm "+o+" is not supported in the browser SDK")},createSign:function(){throw new Error("createSign is not implemented in the browser")}}},42959:(le,k,y)=>{var a=y(81082).lW;typeof ArrayBuffer<"u"&&typeof ArrayBuffer.isView>"u"&&(ArrayBuffer.isView=function(n){return O.indexOf(Object.prototype.toString.call(n))>-1});var O=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]","[object DataView]"];le.exports={isEmptyData:function m(n){return"string"==typeof n?0===n.length:0===n.byteLength},convertToBuffer:function r(n){return"string"==typeof n&&(n=new a(n,"utf8")),ArrayBuffer.isView(n)?new Uint8Array(n.buffer,n.byteOffset,n.byteLength/Uint8Array.BYTES_PER_ELEMENT):new Uint8Array(n)}}},11943:(le,k,y)=>{var a=y(42959);function O(r,n){this.hash=new r,this.outer=new r;var o=function m(r,n){var o=a.convertToBuffer(n);if(o.byteLength>r.BLOCK_SIZE){var l=new r;l.update(o),o=l.digest()}var e=new Uint8Array(r.BLOCK_SIZE);return e.set(o),e}(r,n),l=new Uint8Array(r.BLOCK_SIZE);l.set(o);for(var e=0;e<r.BLOCK_SIZE;e++)o[e]^=54,l[e]^=92;for(this.hash.update(o),this.outer.update(l),e=0;e<o.byteLength;e++)o[e]=0}le.exports=O,O.prototype.update=function(r){if(a.isEmptyData(r)||this.error)return this;try{this.hash.update(a.convertToBuffer(r))}catch(n){this.error=n}return this},O.prototype.digest=function(r){return this.outer.finished||this.outer.update(this.hash.digest()),this.outer.digest(r)}},91777:(le,k,y)=>{var a=y(42959),O=y(81082).lW;function o(){this.state=[1732584193,4023233417,2562383102,271733878],this.buffer=new DataView(new ArrayBuffer(64)),this.bufferLength=0,this.bytesHashed=0,this.finished=!1}function l(g,b,T,M,R,x){return((b=(b+g&4294967295)+(M+x&4294967295)&4294967295)<<R|b>>>32-R)+T&4294967295}function e(g,b,T,M,R,x,P){return l(b&T|~b&M,g,b,R,x,P)}function i(g,b,T,M,R,x,P){return l(b&M|T&~M,g,b,R,x,P)}function h(g,b,T,M,R,x,P){return l(b^T^M,g,b,R,x,P)}function d(g,b,T,M,R,x,P){return l(T^(b|~M),g,b,R,x,P)}le.exports=o,o.BLOCK_SIZE=64,o.prototype.update=function(g){if(a.isEmptyData(g))return this;if(this.finished)throw new Error("Attempted to update an already finished hash.");var b=a.convertToBuffer(g),T=0,M=b.byteLength;for(this.bytesHashed+=M;M>0;)this.buffer.setUint8(this.bufferLength++,b[T++]),M--,64===this.bufferLength&&(this.hashBuffer(),this.bufferLength=0);return this},o.prototype.digest=function(g){if(!this.finished){var b=this,T=b.buffer,M=b.bufferLength,x=8*b.bytesHashed;if(T.setUint8(this.bufferLength++,128),M%64>=56){for(var P=this.bufferLength;P<64;P++)T.setUint8(P,0);this.hashBuffer(),this.bufferLength=0}for(P=this.bufferLength;P<56;P++)T.setUint8(P,0);T.setUint32(56,x>>>0,!0),T.setUint32(60,Math.floor(x/4294967296),!0),this.hashBuffer(),this.finished=!0}var W=new DataView(new ArrayBuffer(16));for(P=0;P<4;P++)W.setUint32(4*P,this.state[P],!0);var V=new O(W.buffer,W.byteOffset,W.byteLength);return g?V.toString(g):V},o.prototype.hashBuffer=function(){var b=this.buffer,T=this.state,M=T[0],R=T[1],x=T[2],P=T[3];M=e(M,R,x,P,b.getUint32(0,!0),7,3614090360),P=e(P,M,R,x,b.getUint32(4,!0),12,3905402710),x=e(x,P,M,R,b.getUint32(8,!0),17,606105819),R=e(R,x,P,M,b.getUint32(12,!0),22,3250441966),M=e(M,R,x,P,b.getUint32(16,!0),7,4118548399),P=e(P,M,R,x,b.getUint32(20,!0),12,1200080426),x=e(x,P,M,R,b.getUint32(24,!0),17,2821735955),R=e(R,x,P,M,b.getUint32(28,!0),22,4249261313),M=e(M,R,x,P,b.getUint32(32,!0),7,1770035416),P=e(P,M,R,x,b.getUint32(36,!0),12,2336552879),x=e(x,P,M,R,b.getUint32(40,!0),17,4294925233),R=e(R,x,P,M,b.getUint32(44,!0),22,2304563134),M=e(M,R,x,P,b.getUint32(48,!0),7,1804603682),P=e(P,M,R,x,b.getUint32(52,!0),12,4254626195),x=e(x,P,M,R,b.getUint32(56,!0),17,2792965006),M=i(M,R=e(R,x,P,M,b.getUint32(60,!0),22,1236535329),x,P,b.getUint32(4,!0),5,4129170786),P=i(P,M,R,x,b.getUint32(24,!0),9,3225465664),x=i(x,P,M,R,b.getUint32(44,!0),14,643717713),R=i(R,x,P,M,b.getUint32(0,!0),20,3921069994),M=i(M,R,x,P,b.getUint32(20,!0),5,3593408605),P=i(P,M,R,x,b.getUint32(40,!0),9,38016083),x=i(x,P,M,R,b.getUint32(60,!0),14,3634488961),R=i(R,x,P,M,b.getUint32(16,!0),20,3889429448),M=i(M,R,x,P,b.getUint32(36,!0),5,568446438),P=i(P,M,R,x,b.getUint32(56,!0),9,3275163606),x=i(x,P,M,R,b.getUint32(12,!0),14,4107603335),R=i(R,x,P,M,b.getUint32(32,!0),20,1163531501),M=i(M,R,x,P,b.getUint32(52,!0),5,2850285829),P=i(P,M,R,x,b.getUint32(8,!0),9,4243563512),x=i(x,P,M,R,b.getUint32(28,!0),14,1735328473),M=h(M,R=i(R,x,P,M,b.getUint32(48,!0),20,2368359562),x,P,b.getUint32(20,!0),4,4294588738),P=h(P,M,R,x,b.getUint32(32,!0),11,2272392833),x=h(x,P,M,R,b.getUint32(44,!0),16,1839030562),R=h(R,x,P,M,b.getUint32(56,!0),23,4259657740),M=h(M,R,x,P,b.getUint32(4,!0),4,2763975236),P=h(P,M,R,x,b.getUint32(16,!0),11,1272893353),x=h(x,P,M,R,b.getUint32(28,!0),16,4139469664),R=h(R,x,P,M,b.getUint32(40,!0),23,3200236656),M=h(M,R,x,P,b.getUint32(52,!0),4,681279174),P=h(P,M,R,x,b.getUint32(0,!0),11,3936430074),x=h(x,P,M,R,b.getUint32(12,!0),16,3572445317),R=h(R,x,P,M,b.getUint32(24,!0),23,76029189),M=h(M,R,x,P,b.getUint32(36,!0),4,3654602809),P=h(P,M,R,x,b.getUint32(48,!0),11,3873151461),x=h(x,P,M,R,b.getUint32(60,!0),16,530742520),M=d(M,R=h(R,x,P,M,b.getUint32(8,!0),23,3299628645),x,P,b.getUint32(0,!0),6,4096336452),P=d(P,M,R,x,b.getUint32(28,!0),10,1126891415),x=d(x,P,M,R,b.getUint32(56,!0),15,2878612391),R=d(R,x,P,M,b.getUint32(20,!0),21,4237533241),M=d(M,R,x,P,b.getUint32(48,!0),6,1700485571),P=d(P,M,R,x,b.getUint32(12,!0),10,2399980690),x=d(x,P,M,R,b.getUint32(40,!0),15,4293915773),R=d(R,x,P,M,b.getUint32(4,!0),21,2240044497),M=d(M,R,x,P,b.getUint32(32,!0),6,1873313359),P=d(P,M,R,x,b.getUint32(60,!0),10,4264355552),x=d(x,P,M,R,b.getUint32(24,!0),15,2734768916),R=d(R,x,P,M,b.getUint32(52,!0),21,1309151649),M=d(M,R,x,P,b.getUint32(16,!0),6,4149444226),P=d(P,M,R,x,b.getUint32(44,!0),10,3174756917),x=d(x,P,M,R,b.getUint32(8,!0),15,718787259),R=d(R,x,P,M,b.getUint32(36,!0),21,3951481745),T[0]=M+T[0]&4294967295,T[1]=R+T[1]&4294967295,T[2]=x+T[2]&4294967295,T[3]=P+T[3]&4294967295}},47539:(le,k,y)=>{var a=y(81082).lW,O=y(42959);function e(){this.h0=1732584193,this.h1=4023233417,this.h2=2562383102,this.h3=271733878,this.h4=3285377520,this.block=new Uint32Array(80),this.offset=0,this.shift=24,this.totalLength=0}new Uint32Array([1518500249,1859775393,-1894007588,-899497514]),Math.pow(2,53),le.exports=e,e.BLOCK_SIZE=64,e.prototype.update=function(i){if(this.finished)throw new Error("Attempted to update an already finished hash.");if(O.isEmptyData(i))return this;var h=(i=O.convertToBuffer(i)).length;this.totalLength+=8*h;for(var d=0;d<h;d++)this.write(i[d]);return this},e.prototype.write=function(h){this.block[this.offset]|=(255&h)<<this.shift,this.shift?this.shift-=8:(this.offset++,this.shift=24),16===this.offset&&this.processBlock()},e.prototype.digest=function(i){this.write(128),(this.offset>14||14===this.offset&&this.shift<24)&&this.processBlock(),this.offset=14,this.shift=24,this.write(0),this.write(0),this.write(this.totalLength>0xffffffffff?this.totalLength/1099511627776:0),this.write(this.totalLength>4294967295?this.totalLength/4294967296:0);for(var h=24;h>=0;h-=8)this.write(this.totalLength>>h);var d=new a(20),g=new DataView(d.buffer);return g.setUint32(0,this.h0,!1),g.setUint32(4,this.h1,!1),g.setUint32(8,this.h2,!1),g.setUint32(12,this.h3,!1),g.setUint32(16,this.h4,!1),i?d.toString(i):d},e.prototype.processBlock=function(){for(var h=16;h<80;h++){var d=this.block[h-3]^this.block[h-8]^this.block[h-14]^this.block[h-16];this.block[h]=d<<1|d>>>31}var x,P,g=this.h0,b=this.h1,T=this.h2,M=this.h3,R=this.h4;for(h=0;h<80;h++){h<20?(x=M^b&(T^M),P=1518500249):h<40?(x=b^T^M,P=1859775393):h<60?(x=b&T|M&(b|T),P=2400959708):(x=b^T^M,P=3395469782);var W=(g<<5|g>>>27)+x+R+P+(0|this.block[h]);R=M,M=T,T=b<<30|b>>>2,b=g,g=W}for(this.h0=this.h0+g|0,this.h1=this.h1+b|0,this.h2=this.h2+T|0,this.h3=this.h3+M|0,this.h4=this.h4+R|0,this.offset=0,h=0;h<16;h++)this.block[h]=0}},68469:(le,k,y)=>{var a=y(81082).lW,O=y(42959),n=new Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),l=Math.pow(2,53)-1;function e(){this.state=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.temp=new Int32Array(64),this.buffer=new Uint8Array(64),this.bufferLength=0,this.bytesHashed=0,this.finished=!1}le.exports=e,e.BLOCK_SIZE=64,e.prototype.update=function(i){if(this.finished)throw new Error("Attempted to update an already finished hash.");if(O.isEmptyData(i))return this;var h=0,d=(i=O.convertToBuffer(i)).byteLength;if(this.bytesHashed+=d,8*this.bytesHashed>l)throw new Error("Cannot hash more than 2^53 - 1 bits");for(;d>0;)this.buffer[this.bufferLength++]=i[h++],d--,64===this.bufferLength&&(this.hashBuffer(),this.bufferLength=0);return this},e.prototype.digest=function(i){if(!this.finished){var h=8*this.bytesHashed,d=new DataView(this.buffer.buffer,this.buffer.byteOffset,this.buffer.byteLength),g=this.bufferLength;if(d.setUint8(this.bufferLength++,128),g%64>=56){for(var b=this.bufferLength;b<64;b++)d.setUint8(b,0);this.hashBuffer(),this.bufferLength=0}for(b=this.bufferLength;b<56;b++)d.setUint8(b,0);d.setUint32(56,Math.floor(h/4294967296),!0),d.setUint32(60,h),this.hashBuffer(),this.finished=!0}var T=new a(32);for(b=0;b<8;b++)T[4*b]=this.state[b]>>>24&255,T[4*b+1]=this.state[b]>>>16&255,T[4*b+2]=this.state[b]>>>8&255,T[4*b+3]=this.state[b]>>>0&255;return i?T.toString(i):T},e.prototype.hashBuffer=function(){for(var h=this.buffer,d=this.state,g=d[0],b=d[1],T=d[2],M=d[3],R=d[4],x=d[5],P=d[6],W=d[7],V=0;V<64;V++){if(V<16)this.temp[V]=(255&h[4*V])<<24|(255&h[4*V+1])<<16|(255&h[4*V+2])<<8|255&h[4*V+3];else{var Y=this.temp[V-2];this.temp[V]=(((Y>>>17|Y<<15)^(Y>>>19|Y<<13)^Y>>>10)+this.temp[V-7]|0)+((((Y=this.temp[V-15])>>>7|Y<<25)^(Y>>>18|Y<<14)^Y>>>3)+this.temp[V-16]|0)}var C=(((R>>>6|R<<26)^(R>>>11|R<<21)^(R>>>25|R<<7))+(R&x^~R&P)|0)+(W+(n[V]+this.temp[V]|0)|0)|0,p=((g>>>2|g<<30)^(g>>>13|g<<19)^(g>>>22|g<<10))+(g&b^g&T^b&T)|0;W=P,P=x,x=R,R=M+C|0,M=T,T=b,b=g,g=C+p|0}d[0]+=g,d[1]+=b,d[2]+=T,d[3]+=M,d[4]+=R,d[5]+=x,d[6]+=P,d[7]+=W}},22488:(le,k,y)=>{var a=y(49229);a.crypto.lib=y(79427),a.Buffer=y(81082).lW,a.url=y(63570),a.querystring=y(19446),a.realClock=y(89559),a.environment="js",a.createEventStream=y(33474).createEventStream,a.isBrowser=function(){return!0},a.isNode=function(){return!1};var O=y(86462);if(le.exports=O,y(84301),y(37001),y(6881),y(30910),y(47113),y(91744),y(79530),O.XML.Parser=y(73972),y(99970),typeof m>"u")var m={browser:!0}},48797:(le,k,y)=>{var O,a=y(86462);y(84301),y(37001),a.Config=a.util.inherit({constructor:function(r){void 0===r&&(r={}),r=this.extractCredentials(r),a.util.each.call(this,this.keys,function(n,o){this.set(n,r[n],o)})},getCredentials:function(r){var n=this;function o(h){r(h,h?null:n.credentials)}function l(h,d){return new a.util.error(d||new Error,{code:"CredentialsError",message:h,name:"CredentialsError"})}n.credentials?"function"==typeof n.credentials.get?function e(){n.credentials.get(function(h){h&&(h=l("Could not load credentials from "+n.credentials.constructor.name,h)),o(h)})}():function i(){var h=null;(!n.credentials.accessKeyId||!n.credentials.secretAccessKey)&&(h=l("Missing credentials")),o(h)}():n.credentialProvider?n.credentialProvider.resolve(function(h,d){h&&(h=l("Could not load credentials from any providers",h)),n.credentials=d,o(h)}):o(l("No credentials to load"))},update:function(r,n){n=n||!1,r=this.extractCredentials(r),a.util.each.call(this,r,function(o,l){(n||Object.prototype.hasOwnProperty.call(this.keys,o)||a.Service.hasService(o))&&this.set(o,l)})},loadFromPath:function(r){this.clear();var n=JSON.parse(a.util.readFileSync(r)),o=new a.FileSystemCredentials(r),l=new a.CredentialProviderChain;return l.providers.unshift(o),l.resolve(function(e,i){if(e)throw e;n.credentials=i}),this.constructor(n),this},clear:function(){a.util.each.call(this,this.keys,function(r){delete this[r]}),this.set("credentials",void 0),this.set("credentialProvider",void 0)},set:function(r,n,o){void 0===n?(void 0===o&&(o=this.keys[r]),this[r]="function"==typeof o?o.call(this):o):this[r]="httpOptions"===r&&this[r]?a.util.merge(this[r],n):n},keys:{credentials:null,credentialProvider:null,region:null,logger:null,apiVersions:{},apiVersion:null,endpoint:void 0,httpOptions:{timeout:12e4},maxRetries:void 0,maxRedirects:10,paramValidation:!0,sslEnabled:!0,s3ForcePathStyle:!1,s3BucketEndpoint:!1,s3DisableBodySigning:!0,s3UsEast1RegionalEndpoint:"legacy",s3UseArnRegion:void 0,computeChecksums:!0,convertResponseTypes:!0,correctClockSkew:!1,customUserAgent:null,dynamoDbCrc32:!0,systemClockOffset:0,signatureVersion:null,signatureCache:!0,retryDelayOptions:{},useAccelerateEndpoint:!1,clientSideMonitoring:!1,endpointDiscoveryEnabled:void 0,endpointCacheSize:1e3,hostPrefixEnabled:!0,stsRegionalEndpoints:"legacy",useFipsEndpoint:!1,useDualstackEndpoint:!1},extractCredentials:function(r){return r.accessKeyId&&r.secretAccessKey&&((r=a.util.copy(r)).credentials=new a.Credentials(r)),r},setPromisesDependency:function(r){O=r,null===r&&"function"==typeof Promise&&(O=Promise);var n=[a.Request,a.Credentials,a.CredentialProviderChain];a.S3&&(n.push(a.S3),a.S3.ManagedUpload&&n.push(a.S3.ManagedUpload)),a.util.addPromises(n,O)},getPromisesDependency:function(){return O}}),a.config=new a.Config},46664:(le,k,y)=>{var a=y(86462);function O(r,n){if("string"==typeof r){if(["legacy","regional"].indexOf(r.toLowerCase())>=0)return r.toLowerCase();throw a.util.error(new Error,n)}}le.exports=function m(r,n){var o;if((r=r||{})[n.clientConfig]&&(o=O(r[n.clientConfig],{code:"InvalidConfiguration",message:'invalid "'+n.clientConfig+'" configuration. Expect "legacy" or "regional". Got "'+r[n.clientConfig]+'".'}))||!a.util.isNode())return o;if(Object.prototype.hasOwnProperty.call(process.env,n.env)&&(o=O(process.env[n.env],{code:"InvalidEnvironmentalVariable",message:"invalid "+n.env+' environmental variable. Expect "legacy" or "regional". Got "'+process.env[n.env]+'".'})))return o;var e={};try{e=a.util.getProfilesFromSharedConfig(a.util.iniLoader)[process.env.AWS_PROFILE||a.util.defaultProfile]}catch{}return e&&Object.prototype.hasOwnProperty.call(e,n.sharedConfig)&&(o=O(e[n.sharedConfig],{code:"InvalidConfiguration",message:"invalid "+n.sharedConfig+' profile config. Expect "legacy" or "regional". Got "'+e[n.sharedConfig]+'".'})),o}},86462:(le,k,y)=>{var a={util:y(49229)};({}).toString(),le.exports=a,a.util.update(a,{VERSION:"2.1189.0",Signers:{},Protocol:{Json:y(93240),Query:y(88694),Rest:y(12153),RestJson:y(34691),RestXml:y(49679)},XML:{Builder:y(31883),Parser:null},JSON:{Builder:y(50629),Parser:y(4413)},Model:{Api:y(24558),Operation:y(92556),Shape:y(65454),Paginator:y(80410),ResourceWaiter:y(53269)},apiLoader:y(91151),EndpointCache:y(14547).$}),y(86275),y(95241),y(48797),y(16939),y(26552),y(22091),y(5001),y(51272),y(91974),y(70988),a.events=new a.SequentialExecutor,a.util.memoizedProperty(a,"endpointCache",function(){return new a.EndpointCache(a.config.endpointCacheSize)},!0)},84301:(le,k,y)=>{var a=y(86462);a.Credentials=a.util.inherit({constructor:function(){if(a.util.hideProperties(this,["secretAccessKey"]),this.expired=!1,this.expireTime=null,this.refreshCallbacks=[],1===arguments.length&&"object"==typeof arguments[0]){var m=arguments[0].credentials||arguments[0];this.accessKeyId=m.accessKeyId,this.secretAccessKey=m.secretAccessKey,this.sessionToken=m.sessionToken}else this.accessKeyId=arguments[0],this.secretAccessKey=arguments[1],this.sessionToken=arguments[2]},expiryWindow:15,needsRefresh:function(){var m=a.util.date.getDate().getTime(),r=new Date(m+1e3*this.expiryWindow);return!!(this.expireTime&&r>this.expireTime)||this.expired||!this.accessKeyId||!this.secretAccessKey},get:function(m){var r=this;this.needsRefresh()?this.refresh(function(n){n||(r.expired=!1),m&&m(n)}):m&&m()},refresh:function(m){this.expired=!1,m()},coalesceRefresh:function(m,r){var n=this;1===n.refreshCallbacks.push(m)&&n.load(function(l){a.util.arrayEach(n.refreshCallbacks,function(e){r?e(l):a.util.defer(function(){e(l)})}),n.refreshCallbacks.length=0})},load:function(m){m()}}),a.Credentials.addPromisesToClass=function(m){this.prototype.getPromise=a.util.promisifyMethod("get",m),this.prototype.refreshPromise=a.util.promisifyMethod("refresh",m)},a.Credentials.deletePromisesFromClass=function(){delete this.prototype.getPromise,delete this.prototype.refreshPromise},a.util.addPromises(a.Credentials)},30910:(le,k,y)=>{var a=y(86462),O=y(81999);a.ChainableTemporaryCredentials=a.util.inherit(a.Credentials,{constructor:function(r){a.Credentials.call(this),r=r||{},this.errorCode="ChainableTemporaryCredentialsProviderFailure",this.expired=!0,this.tokenCodeFn=null;var n=a.util.copy(r.params)||{};if(n.RoleArn&&(n.RoleSessionName=n.RoleSessionName||"temporary-credentials"),n.SerialNumber){if(!r.tokenCodeFn||"function"!=typeof r.tokenCodeFn)throw new a.util.error(new Error("tokenCodeFn must be a function when params.SerialNumber is given"),{code:this.errorCode});this.tokenCodeFn=r.tokenCodeFn}var o=a.util.merge({params:n,credentials:r.masterCredentials||a.config.credentials},r.stsConfig||{});this.service=new O(o)},refresh:function(r){this.coalesceRefresh(r||a.util.fn.callback)},load:function(r){var n=this,o=n.service.config.params.RoleArn?"assumeRole":"getSessionToken";this.getTokenCode(function(l,e){var i={};l?r(l):(e&&(i.TokenCode=e),n.service[o](i,function(h,d){h||n.service.credentialsFrom(d,n),r(h)}))})},getTokenCode:function(r){var n=this;this.tokenCodeFn?this.tokenCodeFn(this.service.config.params.SerialNumber,function(o,l){if(o){var e=o;return o instanceof Error&&(e=o.message),void r(a.util.error(new Error("Error fetching MFA token: "+e),{code:n.errorCode}))}r(null,l)}):r(null)}})},91744:(le,k,y)=>{var a=y(86462),O=y(56549),m=y(81999);a.CognitoIdentityCredentials=a.util.inherit(a.Credentials,{localStorageKey:{id:"aws.cognito.identity-id.",providers:"aws.cognito.identity-providers."},constructor:function(n,o){a.Credentials.call(this),this.expired=!0,this.params=n,this.data=null,this._identityId=null,this._clientConfig=a.util.copy(o||{}),this.loadCachedId();var l=this;Object.defineProperty(this,"identityId",{get:function(){return l.loadCachedId(),l._identityId||l.params.IdentityId},set:function(e){l._identityId=e}})},refresh:function(n){this.coalesceRefresh(n||a.util.fn.callback)},load:function(n){var o=this;o.createClients(),o.data=null,o._identityId=null,o.getId(function(l){l?(o.clearIdOnNotAuthorized(l),n(l)):o.params.RoleArn?o.getCredentialsFromSTS(n):o.getCredentialsForIdentity(n)})},clearCachedId:function(){this._identityId=null,delete this.params.IdentityId;var n=this.params.IdentityPoolId,o=this.params.LoginId||"";delete this.storage[this.localStorageKey.id+n+o],delete this.storage[this.localStorageKey.providers+n+o]},clearIdOnNotAuthorized:function(n){"NotAuthorizedException"==n.code&&this.clearCachedId()},getId:function(n){var o=this;if("string"==typeof o.params.IdentityId)return n(null,o.params.IdentityId);o.cognito.getId(function(l,e){!l&&e.IdentityId?(o.params.IdentityId=e.IdentityId,n(null,e.IdentityId)):n(l)})},loadCredentials:function(n,o){!n||!o||(o.expired=!1,o.accessKeyId=n.Credentials.AccessKeyId,o.secretAccessKey=n.Credentials.SecretKey,o.sessionToken=n.Credentials.SessionToken,o.expireTime=n.Credentials.Expiration)},getCredentialsForIdentity:function(n){var o=this;o.cognito.getCredentialsForIdentity(function(l,e){l?o.clearIdOnNotAuthorized(l):(o.cacheId(e),o.data=e,o.loadCredentials(o.data,o)),n(l)})},getCredentialsFromSTS:function(n){var o=this;o.cognito.getOpenIdToken(function(l,e){l?(o.clearIdOnNotAuthorized(l),n(l)):(o.cacheId(e),o.params.WebIdentityToken=e.Token,o.webIdentityCredentials.refresh(function(i){i||(o.data=o.webIdentityCredentials.data,o.sts.credentialsFrom(o.data,o)),n(i)}))})},loadCachedId:function(){var n=this;if(a.util.isBrowser()&&!n.params.IdentityId){var o=n.getStorage("id");if(o&&n.params.Logins){var l=Object.keys(n.params.Logins);0!==(n.getStorage("providers")||"").split(",").filter(function(h){return-1!==l.indexOf(h)}).length&&(n.params.IdentityId=o)}else o&&(n.params.IdentityId=o)}},createClients:function(){var r=this._clientConfig;if(this.webIdentityCredentials=this.webIdentityCredentials||new a.WebIdentityCredentials(this.params,r),!this.cognito){var n=a.util.merge({},r);n.params=this.params,this.cognito=new O(n)}this.sts=this.sts||new m(r)},cacheId:function(n){this._identityId=n.IdentityId,this.params.IdentityId=this._identityId,a.util.isBrowser()&&(this.setStorage("id",n.IdentityId),this.params.Logins&&this.setStorage("providers",Object.keys(this.params.Logins).join(",")))},getStorage:function(n){return this.storage[this.localStorageKey[n]+this.params.IdentityPoolId+(this.params.LoginId||"")]},setStorage:function(n,o){try{this.storage[this.localStorageKey[n]+this.params.IdentityPoolId+(this.params.LoginId||"")]=o}catch{}},storage:function(){try{var r=a.util.isBrowser()&&null!==window.localStorage&&"object"==typeof window.localStorage?window.localStorage:{};return r["aws.test-storage"]="foobar",delete r["aws.test-storage"],r}catch{return{}}}()})},37001:(le,k,y)=>{var a=y(86462);a.CredentialProviderChain=a.util.inherit(a.Credentials,{constructor:function(m){this.providers=m||a.CredentialProviderChain.defaultProviders.slice(0),this.resolveCallbacks=[]},resolve:function(m){var r=this;if(0===r.providers.length)return m(new Error("No providers")),r;if(1===r.resolveCallbacks.push(m)){let e=function(i,h){if(!i&&h||n===o.length)return a.util.arrayEach(r.resolveCallbacks,function(g){g(i,h)}),void(r.resolveCallbacks.length=0);var d=o[n++];(h="function"==typeof d?d.call():d).get?h.get(function(g){e(g,g?null:h)}):e(null,h)};var n=0,o=r.providers.slice(0);e()}return r}}),a.CredentialProviderChain.defaultProviders=[],a.CredentialProviderChain.addPromisesToClass=function(m){this.prototype.resolvePromise=a.util.promisifyMethod("resolve",m)},a.CredentialProviderChain.deletePromisesFromClass=function(){delete this.prototype.resolvePromise},a.util.addPromises(a.CredentialProviderChain)},79530:(le,k,y)=>{var a=y(86462),O=y(81999);a.SAMLCredentials=a.util.inherit(a.Credentials,{constructor:function(r){a.Credentials.call(this),this.expired=!0,this.params=r},refresh:function(r){this.coalesceRefresh(r||a.util.fn.callback)},load:function(r){var n=this;n.createClients(),n.service.assumeRoleWithSAML(function(o,l){o||n.service.credentialsFrom(l,n),r(o)})},createClients:function(){this.service=this.service||new O({params:this.params})}})},6881:(le,k,y)=>{var a=y(86462),O=y(81999);a.TemporaryCredentials=a.util.inherit(a.Credentials,{constructor:function(r,n){a.Credentials.call(this),this.loadMasterCredentials(n),this.expired=!0,this.params=r||{},this.params.RoleArn&&(this.params.RoleSessionName=this.params.RoleSessionName||"temporary-credentials")},refresh:function(r){this.coalesceRefresh(r||a.util.fn.callback)},load:function(r){var n=this;n.createClients(),n.masterCredentials.get(function(){n.service.config.credentials=n.masterCredentials,(n.params.RoleArn?n.service.assumeRole:n.service.getSessionToken).call(n.service,function(l,e){l||n.service.credentialsFrom(e,n),r(l)})})},loadMasterCredentials:function(r){for(this.masterCredentials=r||a.config.credentials;this.masterCredentials.masterCredentials;)this.masterCredentials=this.masterCredentials.masterCredentials;"function"!=typeof this.masterCredentials.get&&(this.masterCredentials=new a.Credentials(this.masterCredentials))},createClients:function(){this.service=this.service||new O({params:this.params})}})},47113:(le,k,y)=>{var a=y(86462),O=y(81999);a.WebIdentityCredentials=a.util.inherit(a.Credentials,{constructor:function(r,n){a.Credentials.call(this),this.expired=!0,this.params=r,this.params.RoleSessionName=this.params.RoleSessionName||"web-identity",this.data=null,this._clientConfig=a.util.copy(n||{})},refresh:function(r){this.coalesceRefresh(r||a.util.fn.callback)},load:function(r){var n=this;n.createClients(),n.service.assumeRoleWithWebIdentity(function(o,l){n.data=null,o||(n.data=l,n.service.credentialsFrom(l,n)),r(o)})},createClients:function(){if(!this.service){var m=a.util.merge({},this._clientConfig);m.params=this.params,this.service=new O(m)}}})},36798:(le,k,y)=>{var a=y(86462),O=y(49229),m=["AWS_ENABLE_ENDPOINT_DISCOVERY","AWS_ENDPOINT_DISCOVERY_ENABLED"];function r(R){var x=R.service,P=x.api||{},V={};return x.config.region&&(V.region=x.config.region),P.serviceId&&(V.serviceId=P.serviceId),x.config.credentials.accessKeyId&&(V.accessKeyId=x.config.credentials.accessKeyId),V}function n(R,x,P){!P||null==x||"structure"===P.type&&P.required&&P.required.length>0&&O.arrayEach(P.required,function(W){var V=P.members[W];!0===V.endpointDiscoveryId?R[V.isLocationName?V.name:W]=String(x[W]):n(R,x[W],V)})}function o(R,x){var P={};return n(P,R.params,x),P}function l(R){var x=R.service,P=x.api,W=P.operations?P.operations[R.operation]:void 0,Y=o(R,W?W.input:void 0),j=r(R);Object.keys(Y).length>0&&(j=O.update(j,Y),W&&(j.operation=W.name));var E=a.endpointCache.get(j);if(!E||1!==E.length||""!==E[0].Address)if(E&&E.length>0)R.httpRequest.updateEndpoint(E[0].Address);else{var C=x.makeRequest(P.endpointOperation,{Operation:W.name,Identifiers:Y});h(C),C.removeListener("validate",a.EventListeners.Core.VALIDATE_PARAMETERS),C.removeListener("retry",a.EventListeners.Core.RETRY_CHECK),a.endpointCache.put(j,[{Address:"",CachePeriodInMinutes:1}]),C.send(function(p,_){_&&_.Endpoints?a.endpointCache.put(j,_.Endpoints):p&&a.endpointCache.put(j,[{Address:"",CachePeriodInMinutes:1}])})}}var e={};function i(R,x){var P=R.service,W=P.api,V=W.operations?W.operations[R.operation]:void 0,j=o(R,V?V.input:void 0),E=r(R);Object.keys(j).length>0&&(E=O.update(E,j),V&&(E.operation=V.name));var C=a.EndpointCache.getKeyString(E),p=a.endpointCache.get(C);if(p&&1===p.length&&""===p[0].Address)return e[C]||(e[C]=[]),void e[C].push({request:R,callback:x});if(p&&p.length>0)R.httpRequest.updateEndpoint(p[0].Address),x();else{var _=P.makeRequest(W.endpointOperation,{Operation:V.name,Identifiers:j});_.removeListener("validate",a.EventListeners.Core.VALIDATE_PARAMETERS),h(_),a.endpointCache.put(C,[{Address:"",CachePeriodInMinutes:60}]),_.send(function(v,F){v?(R.response.error=O.error(v,{retryable:!1}),a.endpointCache.remove(E),e[C]&&(O.arrayEach(e[C],function(Q){Q.request.response.error=O.error(v,{retryable:!1}),Q.callback()}),delete e[C])):F&&(a.endpointCache.put(C,F.Endpoints),R.httpRequest.updateEndpoint(F.Endpoints[0].Address),e[C])&&(O.arrayEach(e[C],function(J){J.request.httpRequest.updateEndpoint(F.Endpoints[0].Address),J.callback()}),delete e[C]),x()})}}function h(R){var P=R.service.api.apiVersion;P&&!R.httpRequest.headers["x-amz-api-version"]&&(R.httpRequest.headers["x-amz-api-version"]=P)}function d(R){var x=R.error;if(x&&("InvalidEndpointException"===x.code||421===R.httpResponse.statusCode)){var W=R.request,V=W.service.api.operations||{},j=o(W,V[W.operation]?V[W.operation].input:void 0),E=r(W);Object.keys(j).length>0&&(E=O.update(E,j),V[W.operation]&&(E.operation=V[W.operation].name)),a.endpointCache.remove(E)}}function b(R){return["false","0"].indexOf(R)>=0}le.exports={discoverEndpoint:function M(R,x){var P=R.service||{};if(function g(R){if(R._originalConfig&&R._originalConfig.endpoint&&!0===R._originalConfig.endpointDiscoveryEnabled)throw O.error(new Error,{code:"ConfigurationException",message:"Custom endpoint is supplied; endpointDiscoveryEnabled must not be true."});return!!(a.config.endpoint||(a.config[R.serviceIdentifier]||{}).endpoint||R._originalConfig&&R._originalConfig.endpoint)}(P)||R.isPresigned())return x();var V=(P.api.operations||{})[R.operation],Y=V?V.endpointDiscoveryRequired:"NULL",j=function T(R){var x=R.service||{};if(void 0!==x.config.endpointDiscoveryEnabled)return x.config.endpointDiscoveryEnabled;if(!O.isBrowser()){for(var P=0;P<m.length;P++){var W=m[P];if(Object.prototype.hasOwnProperty.call(process.env,W)){if(""===process.env[W]||void 0===process.env[W])throw O.error(new Error,{code:"ConfigurationException",message:"environmental variable "+W+" cannot be set to nothing"});return!b(process.env[W])}}var V={};try{V=a.util.iniLoader?a.util.iniLoader.loadFrom({isConfig:!0,filename:process.env[a.util.sharedConfigFileEnv]}):{}}catch{}var Y=V[process.env.AWS_PROFILE||a.util.defaultProfile]||{};if(Object.prototype.hasOwnProperty.call(Y,"endpoint_discovery_enabled")){if(void 0===Y.endpoint_discovery_enabled)throw O.error(new Error,{code:"ConfigurationException",message:"config file entry 'endpoint_discovery_enabled' cannot be set to nothing"});return!b(Y.endpoint_discovery_enabled)}}}(R),E=P.api.hasRequiredEndpointDiscovery;switch((j||E)&&R.httpRequest.appendToUserAgent("endpoint-discovery"),Y){case"OPTIONAL":(j||E)&&(l(R),R.addNamedListener("INVALIDATE_CACHED_ENDPOINTS","extractError",d)),x();break;case"REQUIRED":if(!1===j){R.response.error=O.error(new Error,{code:"ConfigurationException",message:"Endpoint Discovery is disabled but "+P.api.className+"."+R.operation+"() requires it. Please check your configurations."}),x();break}R.addNamedListener("INVALIDATE_CACHED_ENDPOINTS","extractError",d),i(R,x);break;default:x()}},requiredDiscoverEndpoint:i,optionalDiscoverEndpoint:l,marshallCustomIdentifiers:o,getCacheKey:r,invalidateCachedEndpoint:d}},33474:(le,k,y)=>{var a=y(49618).eventMessageChunker,O=y(27457).parseEvent;le.exports={createEventStream:function m(r,n,o){for(var l=a(r),e=[],i=0;i<l.length;i++)e.push(O(n,l[i],o));return e}}},49618:le=>{le.exports={eventMessageChunker:function k(y){for(var a=[],O=0;O<y.length;){var m=y.readInt32BE(O),r=y.slice(O,m+O);O+=m,a.push(r)}return a}}},96575:(le,k,y)=>{var a=y(86462).util,O=a.buffer.toBuffer;function m(n){if(8!==n.length)throw new Error("Int64 buffers must be exactly 8 bytes");a.Buffer.isBuffer(n)||(n=O(n)),this.bytes=n}function r(n){for(var o=0;o<8;o++)n[o]^=255;for(o=7;o>-1&&(n[o]++,0===n[o]);o--);}m.fromNumber=function(n){if(n>0x8000000000000000||n<-0x8000000000000000)throw new Error(n+" is too large (or, if negative, too small) to represent as an Int64");for(var o=new Uint8Array(8),l=7,e=Math.abs(Math.round(n));l>-1&&e>0;l--,e/=256)o[l]=e;return n<0&&r(o),new m(o)},m.prototype.valueOf=function(){var n=this.bytes.slice(0),o=128&n[0];return o&&r(n),parseInt(n.toString("hex"),16)*(o?-1:1)},m.prototype.toString=function(){return String(this.valueOf())},le.exports={Int64:m}},27457:(le,k,y)=>{var a=y(54602).parseMessage;le.exports={parseEvent:function O(r,n,o){var l=a(n),e=l.headers[":message-type"];if(e){if("error"===e.value)throw function m(r){var n=r.headers[":error-code"],o=r.headers[":error-message"],l=new Error(o.value||o);return l.code=l.name=n.value||n,l}(l);if("event"!==e.value)return}var i=l.headers[":event-type"],h=o.members[i.value];if(h){var d={},g=h.eventPayloadMemberName;if(g){var b=h.members[g];d[g]="binary"===b.type?l.body:r.parse(l.body.toString(),b)}for(var T=h.eventHeaderMemberNames,M=0;M<T.length;M++){var R=T[M];l.headers[R]&&(d[R]=h.members[R].toType(l.headers[R].value))}var x={};return x[i.value]=d,x}}}},54602:(le,k,y)=>{var a=y(96575).Int64,O=y(38648).splitMessage,m="boolean";function g(T){for(var M={},R=0;R<T.length;){var x=T.readUInt8(R++),P=T.slice(R,R+x).toString();switch(R+=x,T.readUInt8(R++)){case 0:M[P]={type:m,value:!0};break;case 1:M[P]={type:m,value:!1};break;case 2:M[P]={type:"byte",value:T.readInt8(R++)};break;case 3:M[P]={type:"short",value:T.readInt16BE(R)},R+=2;break;case 4:M[P]={type:"integer",value:T.readInt32BE(R)},R+=4;break;case 5:M[P]={type:"long",value:new a(T.slice(R,R+8))},R+=8;break;case 6:var W=T.readUInt16BE(R);M[P]={type:"binary",value:T.slice(R+=2,R+W)},R+=W;break;case 7:var V=T.readUInt16BE(R);M[P]={type:"string",value:T.slice(R+=2,R+V).toString()},R+=V;break;case 8:M[P]={type:"timestamp",value:new Date(new a(T.slice(R,R+8)).valueOf())},R+=8;break;case 9:var Y=T.slice(R,R+16).toString("hex");R+=16,M[P]={type:"uuid",value:Y.substr(0,8)+"-"+Y.substr(8,4)+"-"+Y.substr(12,4)+"-"+Y.substr(16,4)+"-"+Y.substr(20)};break;default:throw new Error("Unrecognized header type tag")}}return M}le.exports={parseMessage:function b(T){var M=O(T);return{headers:g(M.headers),body:M.body}}}},38648:(le,k,y)=>{var a=y(86462).util,O=a.buffer.toBuffer;le.exports={splitMessage:function l(e){if(a.Buffer.isBuffer(e)||(e=O(e)),e.length<16)throw new Error("Provided message too short to accommodate event stream message overhead");if(e.length!==e.readUInt32BE(0))throw new Error("Reported message length does not match received message length");var i=e.readUInt32BE(8);if(i!==a.crypto.crc32(e.slice(0,8)))throw new Error("The prelude checksum specified in the message ("+i+") does not match the calculated CRC32 checksum.");var h=e.readUInt32BE(e.length-4);if(h!==a.crypto.crc32(e.slice(0,e.length-4)))throw new Error("The message checksum did not match the expected value of "+h);var g=12+e.readUInt32BE(4);return{headers:e.slice(12,g),body:e.slice(g,e.length-4)}}}},26552:(le,k,y)=>{var a=y(86462),O=y(86275),m=y(36798).discoverEndpoint;a.EventListeners={Core:{}},a.EventListeners={Core:(new O).addNamedListeners(function(n,o){o("VALIDATE_CREDENTIALS","validate",function(i,h){if(!i.service.api.signatureVersion&&!i.service.config.signatureVersion)return h();i.service.config.getCredentials(function(d){d&&(i.response.error=a.util.error(d,{code:"CredentialsError",message:"Missing credentials in config, if using AWS_CONFIG_FILE, set AWS_SDK_LOAD_CONFIG=1"})),h()})}),n("VALIDATE_REGION","validate",function(i){if(!i.service.isGlobalEndpoint){var h=new RegExp(/^([a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9-]{0,61}[a-zA-Z0-9])$/);i.service.config.region?h.test(i.service.config.region)||(i.response.error=a.util.error(new Error,{code:"ConfigError",message:"Invalid region in config"})):i.response.error=a.util.error(new Error,{code:"ConfigError",message:"Missing region in config"})}}),n("BUILD_IDEMPOTENCY_TOKENS","validate",function(i){if(i.service.api.operations){var h=i.service.api.operations[i.operation];if(h){var d=h.idempotentMembers;if(d.length){for(var g=a.util.copy(i.params),b=0,T=d.length;b<T;b++)g[d[b]]||(g[d[b]]=a.util.uuid.v4());i.params=g}}}}),n("VALIDATE_PARAMETERS","validate",function(i){if(i.service.api.operations){var h=i.service.api.operations[i.operation].input;new a.ParamValidator(i.service.config.paramValidation).validate(h,i.params)}}),n("COMPUTE_CHECKSUM","afterBuild",function(i){if(i.service.api.operations){var h=i.service.api.operations[i.operation];if(h){var d=i.httpRequest.body,g=d&&(a.util.Buffer.isBuffer(d)||"string"==typeof d),b=i.httpRequest.headers;if(h.httpChecksumRequired&&i.service.config.computeChecksums&&g&&!b["Content-MD5"]){var T=a.util.crypto.md5(d,"base64");b["Content-MD5"]=T}}}}),o("COMPUTE_SHA256","afterBuild",function(i,h){if(i.haltHandlersOnError(),i.service.api.operations){var d=i.service.api.operations[i.operation],g=d?d.authtype:"";if(!i.service.api.signatureVersion&&!g&&!i.service.config.signatureVersion)return h();if(i.service.getSignerClass(i)===a.Signers.V4){var b=i.httpRequest.body||"";if(g.indexOf("unsigned-body")>=0)return i.httpRequest.headers["X-Amz-Content-Sha256"]="UNSIGNED-PAYLOAD",h();a.util.computeSha256(b,function(T,M){T?h(T):(i.httpRequest.headers["X-Amz-Content-Sha256"]=M,h())})}else h()}}),n("SET_CONTENT_LENGTH","afterBuild",function(i){var h=function r(n){if(!n.service.api.operations)return"";var o=n.service.api.operations[n.operation];return o?o.authtype:""}(i),d=a.util.getRequestPayloadShape(i);if(void 0===i.httpRequest.headers["Content-Length"])try{var g=a.util.string.byteLength(i.httpRequest.body);i.httpRequest.headers["Content-Length"]=g}catch(b){if(d&&d.isStreaming){if(d.requiresLength)throw b;if(h.indexOf("unsigned-body")>=0)return void(i.httpRequest.headers["Transfer-Encoding"]="chunked");throw b}throw b}}),n("SET_HTTP_HOST","afterBuild",function(i){i.httpRequest.headers.Host=i.httpRequest.endpoint.host}),n("SET_TRACE_ID","afterBuild",function(i){var h="X-Amzn-Trace-Id";if(a.util.isNode()&&!Object.hasOwnProperty.call(i.httpRequest.headers,h)){var b=process.env.AWS_LAMBDA_FUNCTION_NAME,T=process.env._X_AMZN_TRACE_ID;"string"==typeof b&&b.length>0&&"string"==typeof T&&T.length>0&&(i.httpRequest.headers[h]=T)}}),n("RESTART","restart",function(){var i=this.response.error;!i||!i.retryable||(this.httpRequest=new a.HttpRequest(this.service.endpoint,this.service.region),this.response.retryCount<this.service.config.maxRetries?this.response.retryCount++:this.response.error=null)}),o("DISCOVER_ENDPOINT","sign",m,!0),o("SIGN","sign",function(i,h){var d=i.service,b=(i.service.api.operations||{})[i.operation];if(!(d.api.signatureVersion||b&&b.authtype||d.config.signatureVersion))return h();d.config.getCredentials(function(M,R){if(M)return i.response.error=M,h();try{var x=d.getSkewCorrectedDate(),W=new(d.getSignerClass(i))(i.httpRequest,d.getSigningName(i),{signatureCache:d.config.signatureCache,operation:b,signatureVersion:d.api.signatureVersion});W.setServiceClientId(d._clientId),delete i.httpRequest.headers.Authorization,delete i.httpRequest.headers.Date,delete i.httpRequest.headers["X-Amz-Date"],W.addAuthorization(R,x),i.signedAt=x}catch(V){i.response.error=V}h()})}),n("VALIDATE_RESPONSE","validateResponse",function(i){this.service.successfulResponse(i,this)?(i.data={},i.error=null):(i.data=null,i.error=a.util.error(new Error,{code:"UnknownError",message:"An unknown error occurred."}))}),n("ERROR","error",function(i,h){var d=h.request.service.api.errorCodeMapping;if(d&&i&&i.code){var g=d[i.code];g&&(h.error.code=g.code)}},!0),o("SEND","send",function(i,h){function d(R){i.httpResponse.stream=R;var x=i.request.httpRequest.stream,P=i.request.service,Y=P.api.operations[i.request.operation]||{};R.on("headers",function(E,C,p){if(i.request.emit("httpHeaders",[E,C,i,p]),!i.httpResponse.streaming)if(2===a.HttpClient.streamsApiVersion){if(Y.hasEventOutput&&P.successfulResponse(i))return i.request.emit("httpDone"),void h();R.on("readable",function(){var v=R.read();null!==v&&i.request.emit("httpData",[v,i])})}else R.on("data",function(v){i.request.emit("httpData",[v,i])})}),R.on("end",function(){if(!x||!x.didCallback){if(2===a.HttpClient.streamsApiVersion&&Y.hasEventOutput&&P.successfulResponse(i))return;i.request.emit("httpDone"),h()}})}function b(R){"RequestAbortedError"!==R.code&&(R=a.util.error(R,{code:"TimeoutError"===R.code?R.code:"NetworkingError",region:i.request.httpRequest.region,hostname:i.request.httpRequest.endpoint.hostname,retryable:!0})),i.error=R,i.request.emit("httpError",[i.error,i],function(){h()})}function T(){var R=a.HttpClient.getInstance(),x=i.request.service.config.httpOptions||{};try{!function g(R){R.on("sendProgress",function(P){i.request.emit("httpUploadProgress",[P,i])}),R.on("receiveProgress",function(P){i.request.emit("httpDownloadProgress",[P,i])})}(R.handleRequest(i.request.httpRequest,x,d,b))}catch(W){b(W)}}i.httpResponse._abortCallback=h,i.error=null,i.data=null,(i.request.service.getSkewCorrectedDate()-this.signedAt)/1e3>=600?this.emit("sign",[this],function(R){R?h(R):T()}):T()}),n("HTTP_HEADERS","httpHeaders",function(i,h,d,g){d.httpResponse.statusCode=i,d.httpResponse.statusMessage=g,d.httpResponse.headers=h,d.httpResponse.body=a.util.buffer.toBuffer(""),d.httpResponse.buffers=[],d.httpResponse.numBytes=0;var b=h.date||h.Date,T=d.request.service;if(b){var M=Date.parse(b);T.config.correctClockSkew&&T.isClockSkewed(M)&&T.applyClockOffset(M)}}),n("HTTP_DATA","httpData",function(i,h){i&&(a.util.isNode()&&(h.httpResponse.numBytes+=i.length,h.request.emit("httpDownloadProgress",[{loaded:h.httpResponse.numBytes,total:h.httpResponse.headers["content-length"]},h])),h.httpResponse.buffers.push(a.util.buffer.toBuffer(i)))}),n("HTTP_DONE","httpDone",function(i){if(i.httpResponse.buffers&&i.httpResponse.buffers.length>0){var h=a.util.buffer.concat(i.httpResponse.buffers);i.httpResponse.body=h}delete i.httpResponse.numBytes,delete i.httpResponse.buffers}),n("FINALIZE_ERROR","retry",function(i){i.httpResponse.statusCode&&(i.error.statusCode=i.httpResponse.statusCode,void 0===i.error.retryable&&(i.error.retryable=this.service.retryableError(i.error,this)))}),n("INVALIDATE_CREDENTIALS","retry",function(i){if(i.error)switch(i.error.code){case"RequestExpired":case"ExpiredTokenException":case"ExpiredToken":i.error.retryable=!0,i.request.service.config.credentials.expired=!0}}),n("EXPIRED_SIGNATURE","retry",function(i){var h=i.error;h&&"string"==typeof h.code&&"string"==typeof h.message&&h.code.match(/Signature/)&&h.message.match(/expired/)&&(i.error.retryable=!0)}),n("CLOCK_SKEWED","retry",function(i){i.error&&this.service.clockSkewError(i.error)&&this.service.config.correctClockSkew&&(i.error.retryable=!0)}),n("REDIRECT","retry",function(i){i.error&&i.error.statusCode>=300&&i.error.statusCode<400&&i.httpResponse.headers.location&&(this.httpRequest.endpoint=new a.Endpoint(i.httpResponse.headers.location),this.httpRequest.headers.Host=this.httpRequest.endpoint.host,i.error.redirect=!0,i.error.retryable=!0)}),n("RETRY_CHECK","retry",function(i){i.error&&(i.error.redirect&&i.redirectCount<i.maxRedirects?i.error.retryDelay=0:i.retryCount<i.maxRetries&&(i.error.retryDelay=this.service.retryDelays(i.retryCount,i.error)||0))}),o("RESET_RETRY_STATE","afterRetry",function(i,h){var d,g=!1;i.error&&(d=i.error.retryDelay||0,i.error.retryable&&i.retryCount<i.maxRetries?(i.retryCount++,g=!0):i.error.redirect&&i.redirectCount<i.maxRedirects&&(i.redirectCount++,g=!0)),g&&d>=0?(i.error=null,setTimeout(h,d)):h()})}),CorePost:(new O).addNamedListeners(function(n){n("EXTRACT_REQUEST_ID","extractData",a.util.extractRequestId),n("EXTRACT_REQUEST_ID","extractError",a.util.extractRequestId),n("ENOTFOUND_ERROR","httpError",function(l){"NetworkingError"===l.code&&function e(h){return"ENOTFOUND"===h.errno||"number"==typeof h.errno&&"function"==typeof a.util.getSystemErrorName&&["EAI_NONAME","EAI_NODATA"].indexOf(a.util.getSystemErrorName(h.errno)>=0)}(l)&&(this.response.error=a.util.error(new Error("Inaccessible host: `"+l.hostname+"' at port `"+l.port+"'. This service may not be available in the `"+l.region+"' region."),{code:"UnknownEndpoint",region:l.region,hostname:l.hostname,retryable:!0,originalError:l}))})}),Logger:(new O).addNamedListeners(function(n){n("LOG_REQUEST","complete",function(l){var e=l.request,i=e.service.config.logger;if(i){var g=function d(){var T=(l.request.service.getSkewCorrectedDate().getTime()-e.startTime.getTime())/1e3,M=!!i.isTTY,R=l.httpResponse.statusCode,x=e.params;e.service.api.operations&&e.service.api.operations[e.operation]&&e.service.api.operations[e.operation].input&&(x=h(e.service.api.operations[e.operation].input,e.params));var W=y(20147).inspect(x,!0,null),V="";return M&&(V+="\x1b[33m"),V+="[AWS "+e.service.serviceIdentifier+" "+R,V+=" "+T.toString()+"s "+l.retryCount+" retries]",M&&(V+="\x1b[0;1m"),V+=" "+a.util.string.lowerFirst(e.operation),V+="("+W+")",M&&(V+="\x1b[0m"),V}();"function"==typeof i.log?i.log(g):"function"==typeof i.write&&i.write(g+"\n")}function h(b,T){if(!T)return T;if(b.isSensitive)return"***SensitiveInformation***";switch(b.type){case"structure":var M={};return a.util.each(T,function(P,W){M[P]=Object.prototype.hasOwnProperty.call(b.members,P)?h(b.members[P],W):W}),M;case"list":var R=[];return a.util.arrayEach(T,function(P,W){R.push(h(b.member,P))}),R;case"map":var x={};return a.util.each(T,function(P,W){x[P]=h(b.value,W)}),x;default:return T}}})}),Json:(new O).addNamedListeners(function(n){var o=y(93240);n("BUILD","build",o.buildRequest),n("EXTRACT_DATA","extractData",o.extractData),n("EXTRACT_ERROR","extractError",o.extractError)}),Rest:(new O).addNamedListeners(function(n){var o=y(12153);n("BUILD","build",o.buildRequest),n("EXTRACT_DATA","extractData",o.extractData),n("EXTRACT_ERROR","extractError",o.extractError)}),RestJson:(new O).addNamedListeners(function(n){var o=y(34691);n("BUILD","build",o.buildRequest),n("EXTRACT_DATA","extractData",o.extractData),n("EXTRACT_ERROR","extractError",o.extractError)}),RestXml:(new O).addNamedListeners(function(n){var o=y(49679);n("BUILD","build",o.buildRequest),n("EXTRACT_DATA","extractData",o.extractData),n("EXTRACT_ERROR","extractError",o.extractError)}),Query:(new O).addNamedListeners(function(n){var o=y(88694);n("BUILD","build",o.buildRequest),n("EXTRACT_DATA","extractData",o.extractData),n("EXTRACT_ERROR","extractError",o.extractError)})}},16939:(le,k,y)=>{var a=y(86462),O=a.util.inherit;a.Endpoint=O({constructor:function(r,n){if(a.util.hideProperties(this,["slashes","auth","hash","search","query"]),typeof r>"u"||null===r)throw new Error("Invalid endpoint: "+r);if("string"!=typeof r)return a.util.copy(r);r.match(/^http/)||(r=((n&&void 0!==n.sslEnabled?n.sslEnabled:a.config.sslEnabled)?"https":"http")+"://"+r),a.util.update(this,a.util.urlParse(r)),this.port=this.port?parseInt(this.port,10):"https:"===this.protocol?443:80}}),a.HttpRequest=O({constructor:function(r,n){r=new a.Endpoint(r),this.method="POST",this.path=r.path||"/",this.headers={},this.body="",this.endpoint=r,this.region=n,this._userAgent="",this.setUserAgent()},setUserAgent:function(){this._userAgent=this.headers[this.getUserAgentHeaderName()]=a.util.userAgent()},getUserAgentHeaderName:function(){return(a.util.isBrowser()?"X-Amz-":"")+"User-Agent"},appendToUserAgent:function(r){"string"==typeof r&&r&&(this._userAgent+=" "+r),this.headers[this.getUserAgentHeaderName()]=this._userAgent},getUserAgent:function(){return this._userAgent},pathname:function(){return this.path.split("?",1)[0]},search:function(){var r=this.path.split("?",2)[1];return r?(r=a.util.queryStringParse(r),a.util.queryParamsToString(r)):""},updateEndpoint:function(r){var n=new a.Endpoint(r);this.endpoint=n,this.path=n.path||"/",this.headers.Host&&(this.headers.Host=n.host)}}),a.HttpResponse=O({constructor:function(){this.statusCode=void 0,this.headers={},this.body=void 0,this.streaming=!1,this.stream=null},createUnbufferedStream:function(){return this.streaming=!0,this.stream}}),a.HttpClient=O({}),a.HttpClient.getInstance=function(){return void 0===this.singleton&&(this.singleton=new this),this.singleton}},99970:(le,k,y)=>{var a=y(86462),O=y(90599).EventEmitter;y(16939),a.XHRClient=a.util.inherit({handleRequest:function(r,n,o,l){var e=this,i=r.endpoint,h=new O,d=i.protocol+"//"+i.hostname;80!==i.port&&443!==i.port&&(d+=":"+i.port),d+=r.path;var g=new XMLHttpRequest,b=!1;r.stream=g,g.addEventListener("readystatechange",function(){try{if(0===g.status)return}catch{return}this.readyState>=this.HEADERS_RECEIVED&&!b&&(h.statusCode=g.status,h.headers=e.parseHeaders(g.getAllResponseHeaders()),h.emit("headers",h.statusCode,h.headers,g.statusText),b=!0),this.readyState===this.DONE&&e.finishRequest(g,h)},!1),g.upload.addEventListener("progress",function(T){h.emit("sendProgress",T)}),g.addEventListener("progress",function(T){h.emit("receiveProgress",T)},!1),g.addEventListener("timeout",function(){l(a.util.error(new Error("Timeout"),{code:"TimeoutError"}))},!1),g.addEventListener("error",function(){l(a.util.error(new Error("Network Failure"),{code:"NetworkingError"}))},!1),g.addEventListener("abort",function(){l(a.util.error(new Error("Request aborted"),{code:"RequestAbortedError"}))},!1),o(h),g.open(r.method,d,!1!==n.xhrAsync),a.util.each(r.headers,function(T,M){"Content-Length"!==T&&"User-Agent"!==T&&"Host"!==T&&g.setRequestHeader(T,M)}),n.timeout&&!1!==n.xhrAsync&&(g.timeout=n.timeout),n.xhrWithCredentials&&(g.withCredentials=!0);try{g.responseType="arraybuffer"}catch{}try{r.body?g.send(r.body):g.send()}catch(T){if(!r.body||"object"!=typeof r.body.buffer)throw T;g.send(r.body.buffer)}return h},parseHeaders:function(r){var n={};return a.util.arrayEach(r.split(/\r?\n/),function(o){var l=o.split(":",1)[0],e=o.substring(l.length+2);l.length>0&&(n[l.toLowerCase()]=e)}),n},finishRequest:function(r,n){var o;if("arraybuffer"===r.responseType&&r.response){var l=r.response;o=new a.util.Buffer(l.byteLength);for(var e=new Uint8Array(l),i=0;i<o.length;++i)o[i]=e[i]}try{!o&&"string"==typeof r.responseText&&(o=new a.util.Buffer(r.responseText))}catch{}o&&n.emit("data",o),n.emit("end")}}),a.HttpClient.prototype=a.XHRClient.prototype,a.HttpClient.streamsApiVersion=1},50629:(le,k,y)=>{var a=y(49229);function O(){}function m(e,i){if(i&&null!=e)switch(i.type){case"structure":return function r(e,i){if(i.isDocument)return e;var h={};return a.each(e,function(d,g){var b=i.members[d];if(b){if("body"!==b.location)return;var T=b.isLocationName?b.name:d,M=m(g,b);void 0!==M&&(h[T]=M)}}),h}(e,i);case"map":return function o(e,i){var h={};return a.each(e,function(d,g){var b=m(g,i.value);void 0!==b&&(h[d]=b)}),h}(e,i);case"list":return function n(e,i){var h=[];return a.arrayEach(e,function(d){var g=m(d,i.member);void 0!==g&&h.push(g)}),h}(e,i);default:return function l(e,i){return i.toWireFormat(e)}(e,i)}}O.prototype.build=function(e,i){return JSON.stringify(m(e,i))},le.exports=O},4413:(le,k,y)=>{var a=y(49229);function O(){}function m(e,i){if(i&&void 0!==e)switch(i.type){case"structure":return function r(e,i){if(null!=e){if(i.isDocument)return e;var h={};return a.each(i.members,function(g,b){var T=b.isLocationName?b.name:g;if(Object.prototype.hasOwnProperty.call(e,T)){var R=m(e[T],b);void 0!==R&&(h[g]=R)}}),h}}(e,i);case"map":return function o(e,i){if(null!=e){var h={};return a.each(e,function(d,g){var b=m(g,i.value);h[d]=void 0===b?null:b}),h}}(e,i);case"list":return function n(e,i){if(null!=e){var h=[];return a.arrayEach(e,function(d){var g=m(d,i.member);h.push(void 0===g?null:g)}),h}}(e,i);default:return function l(e,i){return i.toType(e)}(e,i)}}O.prototype.parse=function(e,i){return m(JSON.parse(e),i)},le.exports=O},24558:(le,k,y)=>{var a=y(13081),O=y(92556),m=y(65454),r=y(80410),n=y(53269),o=y(6839),l=y(49229),e=l.property,i=l.memoizedProperty;le.exports=function h(d,g){var b=this;d=d||{},(g=g||{}).api=this,d.metadata=d.metadata||{};var T=g.serviceIdentifier;delete g.serviceIdentifier,e(this,"isApi",!0,!1),e(this,"apiVersion",d.metadata.apiVersion),e(this,"endpointPrefix",d.metadata.endpointPrefix),e(this,"signingName",d.metadata.signingName),e(this,"globalEndpoint",d.metadata.globalEndpoint),e(this,"signatureVersion",d.metadata.signatureVersion),e(this,"jsonVersion",d.metadata.jsonVersion),e(this,"targetPrefix",d.metadata.targetPrefix),e(this,"protocol",d.metadata.protocol),e(this,"timestampFormat",d.metadata.timestampFormat),e(this,"xmlNamespaceUri",d.metadata.xmlNamespace),e(this,"abbreviation",d.metadata.serviceAbbreviation),e(this,"fullName",d.metadata.serviceFullName),e(this,"serviceId",d.metadata.serviceId),T&&o[T]&&e(this,"xmlNoDefaultLists",o[T].xmlNoDefaultLists,!1),i(this,"className",function(){var R=d.metadata.serviceAbbreviation||d.metadata.serviceFullName;return R?("ElasticLoadBalancing"===(R=R.replace(/^Amazon|AWS\s*|\(.*|\s+|\W+/g,""))&&(R="ELB"),R):null}),e(this,"operations",new a(d.operations,g,function(R,x){return new O(R,x,g)},l.string.lowerFirst,function M(R,x){!0===x.endpointoperation&&e(b,"endpointOperation",l.string.lowerFirst(R)),x.endpointdiscovery&&!b.hasRequiredEndpointDiscovery&&e(b,"hasRequiredEndpointDiscovery",!0===x.endpointdiscovery.required)})),e(this,"shapes",new a(d.shapes,g,function(R,x){return m.create(x,g)})),e(this,"paginators",new a(d.paginators,g,function(R,x){return new r(R,x,g)})),e(this,"waiters",new a(d.waiters,g,function(R,x){return new n(R,x,g)},l.string.lowerFirst)),g.documentation&&(e(this,"documentation",d.documentation),e(this,"documentationUrl",d.documentationUrl)),e(this,"errorCodeMapping",d.awsQueryCompatible)}},13081:(le,k,y)=>{var a=y(49229).memoizedProperty;function O(r,n,o,l){a(this,l(r),function(){return o(r,n)})}le.exports=function m(r,n,o,l,e){for(var h in l=l||String,r)Object.prototype.hasOwnProperty.call(r,h)&&(O.call(this,h,r[h],o,l),e&&e(h,r[h]))}},92556:(le,k,y)=>{var a=y(65454),O=y(49229),m=O.property,r=O.memoizedProperty;le.exports=function n(l,e,i){var h=this;i=i||{},m(this,"name",e.name||l),m(this,"api",i.api,!1),e.http=e.http||{},m(this,"endpoint",e.endpoint),m(this,"httpMethod",e.http.method||"POST"),m(this,"httpPath",e.http.requestUri||"/"),m(this,"authtype",e.authtype||""),m(this,"endpointDiscoveryRequired",e.endpointdiscovery?e.endpointdiscovery.required?"REQUIRED":"OPTIONAL":"NULL"),m(this,"httpChecksumRequired",e.httpChecksumRequired||e.httpChecksum&&e.httpChecksum.requestChecksumRequired,!1),r(this,"input",function(){return e.input?a.create(e.input,i):new a.create({type:"structure"},i)}),r(this,"output",function(){return e.output?a.create(e.output,i):new a.create({type:"structure"},i)}),r(this,"errors",function(){var g=[];if(!e.errors)return null;for(var b=0;b<e.errors.length;b++)g.push(a.create(e.errors[b],i));return g}),r(this,"paginator",function(){return i.api.paginators[l]}),i.documentation&&(m(this,"documentation",e.documentation),m(this,"documentationUrl",e.documentationUrl)),r(this,"idempotentMembers",function(){var g=[],b=h.input,T=b.members;if(!b.members)return g;for(var M in T)T.hasOwnProperty(M)&&!0===T[M].isIdempotent&&g.push(M);return g}),r(this,"hasEventOutput",function(){return function o(l){var e=l.members,i=l.payload;if(!l.members)return!1;if(i)return e[i].isEventStream;for(var d in e)if(!e.hasOwnProperty(d)&&!0===e[d].isEventStream)return!0;return!1}(h.output)})}},80410:(le,k,y)=>{var a=y(49229).property;le.exports=function O(m,r){a(this,"inputToken",r.input_token),a(this,"limitKey",r.limit_key),a(this,"moreResults",r.more_results),a(this,"outputToken",r.output_token),a(this,"resultKey",r.result_key)}},53269:(le,k,y)=>{var a=y(49229),O=a.property;le.exports=function m(r,n,o){o=o||{},O(this,"name",r),O(this,"api",o.api,!1),n.operation&&O(this,"operation",a.string.lowerFirst(n.operation));var l=this;["type","description","delay","maxAttempts","acceptors"].forEach(function(i){var h=n[i];h&&O(l,i,h)})}},65454:(le,k,y)=>{var a=y(13081),O=y(49229);function m(x,P,W){null!=W&&O.property.apply(this,arguments)}function r(x,P){x.constructor.prototype[P]||O.memoizedProperty.apply(this,arguments)}function n(x,P,W){P=P||{},m(this,"shape",x.shape),m(this,"api",P.api,!1),m(this,"type",x.type),m(this,"enum",x.enum),m(this,"min",x.min),m(this,"max",x.max),m(this,"pattern",x.pattern),m(this,"location",x.location||this.location||"body"),m(this,"name",this.name||x.xmlName||x.queryName||x.locationName||W),m(this,"isStreaming",x.streaming||this.isStreaming||!1),m(this,"requiresLength",x.requiresLength,!1),m(this,"isComposite",x.isComposite||!1),m(this,"isShape",!0,!1),m(this,"isQueryName",!!x.queryName,!1),m(this,"isLocationName",!!x.locationName,!1),m(this,"isIdempotent",!0===x.idempotencyToken),m(this,"isJsonValue",!0===x.jsonvalue),m(this,"isSensitive",!0===x.sensitive||x.prototype&&!0===x.prototype.sensitive),m(this,"isEventStream",!!x.eventstream,!1),m(this,"isEvent",!!x.event,!1),m(this,"isEventPayload",!!x.eventpayload,!1),m(this,"isEventHeader",!!x.eventheader,!1),m(this,"isTimestampFormatSet",!!x.timestampFormat||x.prototype&&!0===x.prototype.isTimestampFormatSet,!1),m(this,"endpointDiscoveryId",!!x.endpointdiscoveryid,!1),m(this,"hostLabel",!!x.hostLabel,!1),P.documentation&&(m(this,"documentation",x.documentation),m(this,"documentationUrl",x.documentationUrl)),x.xmlAttribute&&m(this,"isXmlAttribute",x.xmlAttribute||!1),m(this,"defaultValue",null),this.toWireFormat=function(V){return V??""},this.toType=function(V){return V}}function o(x){n.apply(this,arguments),m(this,"isComposite",!0),x.flattened&&m(this,"flattened",x.flattened||!1)}function l(x,P){var W=this,V=null,Y=!this.isShape;o.apply(this,arguments),Y&&(m(this,"defaultValue",function(){return{}}),m(this,"members",{}),m(this,"memberNames",[]),m(this,"required",[]),m(this,"isRequired",function(){return!1}),m(this,"isDocument",!!x.document)),x.members&&(m(this,"members",new a(x.members,P,function(j,E){return n.create(E,P,j)})),r(this,"memberNames",function(){return x.xmlOrder||Object.keys(x.members)}),x.event&&(r(this,"eventPayloadMemberName",function(){for(var j=W.members,E=W.memberNames,C=0,p=E.length;C<p;C++)if(j[E[C]].isEventPayload)return E[C]}),r(this,"eventHeaderMemberNames",function(){for(var j=W.members,E=W.memberNames,C=[],p=0,_=E.length;p<_;p++)j[E[p]].isEventHeader&&C.push(E[p]);return C}))),x.required&&(m(this,"required",x.required),m(this,"isRequired",function(j){if(!V){V={};for(var E=0;E<x.required.length;E++)V[x.required[E]]=!0}return V[j]},!1,!0)),m(this,"resultWrapper",x.resultWrapper||null),x.payload&&m(this,"payload",x.payload),"string"==typeof x.xmlNamespace?m(this,"xmlNamespaceUri",x.xmlNamespace):"object"==typeof x.xmlNamespace&&(m(this,"xmlNamespacePrefix",x.xmlNamespace.prefix),m(this,"xmlNamespaceUri",x.xmlNamespace.uri))}function e(x,P){var W=this,V=!this.isShape;if(o.apply(this,arguments),V&&m(this,"defaultValue",function(){return[]}),x.member&&r(this,"member",function(){return n.create(x.member,P)}),this.flattened){var Y=this.name;r(this,"name",function(){return W.member.name||Y})}}function i(x,P){var W=!this.isShape;o.apply(this,arguments),W&&(m(this,"defaultValue",function(){return{}}),m(this,"key",n.create({type:"string"},P)),m(this,"value",n.create({type:"string"},P))),x.key&&r(this,"key",function(){return n.create(x.key,P)}),x.value&&r(this,"value",function(){return n.create(x.value,P)})}function d(){n.apply(this,arguments);var x=["rest-xml","query","ec2"];this.toType=function(P){return P=this.api&&x.indexOf(this.api.protocol)>-1?P||"":P,this.isJsonValue?JSON.parse(P):P&&"function"==typeof P.toString?P.toString():P},this.toWireFormat=function(P){return this.isJsonValue?JSON.stringify(P):P}}function T(){n.apply(this,arguments),this.toType=function(x){var P=O.base64.decode(x);if(this.isSensitive&&O.isNode()&&"function"==typeof O.Buffer.alloc){var W=O.Buffer.alloc(P.length,P);P.fill(0),P=W}return P},this.toWireFormat=O.base64.encode}function M(){T.apply(this,arguments)}function R(){n.apply(this,arguments),this.toType=function(x){return"boolean"==typeof x?x:null==x?null:"true"===x}}n.normalizedTypes={character:"string",double:"float",long:"integer",short:"integer",biginteger:"integer",bigdecimal:"float",blob:"binary"},n.types={structure:l,list:e,map:i,boolean:R,timestamp:function h(x){var P=this;if(n.apply(this,arguments),x.timestampFormat)m(this,"timestampFormat",x.timestampFormat);else if(P.isTimestampFormatSet&&this.timestampFormat)m(this,"timestampFormat",this.timestampFormat);else if("header"===this.location)m(this,"timestampFormat","rfc822");else if("querystring"===this.location)m(this,"timestampFormat","iso8601");else if(this.api)switch(this.api.protocol){case"json":case"rest-json":m(this,"timestampFormat","unixTimestamp");break;case"rest-xml":case"query":case"ec2":m(this,"timestampFormat","iso8601")}this.toType=function(W){return null==W?null:"function"==typeof W.toUTCString?W:"string"==typeof W||"number"==typeof W?O.date.parseTimestamp(W):null},this.toWireFormat=function(W){return O.date.format(W,P.timestampFormat)}},float:function g(){n.apply(this,arguments),this.toType=function(x){return null==x?null:parseFloat(x)},this.toWireFormat=this.toType},integer:function b(){n.apply(this,arguments),this.toType=function(x){return null==x?null:parseInt(x,10)},this.toWireFormat=this.toType},string:d,base64:M,binary:T},n.resolve=function(P,W){if(P.shape){var V=W.api.shapes[P.shape];if(!V)throw new Error("Cannot find shape reference: "+P.shape);return V}return null},n.create=function(P,W,V){if(P.isShape)return P;var Y=n.resolve(P,W);if(Y){var j=Object.keys(P);W.documentation||(j=j.filter(function(p){return!p.match(/documentation/)}));var E=function(){Y.constructor.call(this,P,W,V)};return E.prototype=Y,new E}P.type||(P.type=P.members?"structure":P.member?"list":P.key?"map":"string");var C=P.type;if(n.normalizedTypes[P.type]&&(P.type=n.normalizedTypes[P.type]),n.types[P.type])return new n.types[P.type](P,W,V);throw new Error("Unrecognized shape type: "+C)},n.shapes={StructureShape:l,ListShape:e,MapShape:i,StringShape:d,BooleanShape:R,Base64Shape:M},le.exports=n},70988:(le,k,y)=>{var a=y(86462);a.ParamValidator=a.util.inherit({constructor:function(m){(!0===m||void 0===m)&&(m={min:!0}),this.validation=m},validate:function(m,r,n){if(this.errors=[],this.validateMember(m,r||{},n||"params"),this.errors.length>1){var o=this.errors.join("\n* ");throw o="There were "+this.errors.length+" validation errors:\n* "+o,a.util.error(new Error(o),{code:"MultipleValidationErrors",errors:this.errors})}if(1===this.errors.length)throw this.errors[0];return!0},fail:function(m,r){this.errors.push(a.util.error(new Error(r),{code:m}))},validateStructure:function(m,r,n){if(m.isDocument)return!0;this.validateType(r,n,["object"],"structure");for(var o,l=0;m.required&&l<m.required.length;l++)null==r[o=m.required[l]]&&this.fail("MissingRequiredParameter","Missing required key '"+o+"' in "+n);for(o in r)if(Object.prototype.hasOwnProperty.call(r,o)){var i=r[o],h=m.members[o];if(void 0!==h){var d=[n,o].join(".");this.validateMember(h,i,d)}else null!=i&&this.fail("UnexpectedParameter","Unexpected key '"+o+"' found in "+n)}return!0},validateMember:function(m,r,n){switch(m.type){case"structure":return this.validateStructure(m,r,n);case"list":return this.validateList(m,r,n);case"map":return this.validateMap(m,r,n);default:return this.validateScalar(m,r,n)}},validateList:function(m,r,n){if(this.validateType(r,n,[Array])){this.validateRange(m,r.length,n,"list member count");for(var o=0;o<r.length;o++)this.validateMember(m.member,r[o],n+"["+o+"]")}},validateMap:function(m,r,n){if(this.validateType(r,n,["object"],"map")){var o=0;for(var l in r)Object.prototype.hasOwnProperty.call(r,l)&&(this.validateMember(m.key,l,n+"[key='"+l+"']"),this.validateMember(m.value,r[l],n+"['"+l+"']"),o++);this.validateRange(m,o,n,"map member count")}},validateScalar:function(m,r,n){switch(m.type){case null:case void 0:case"string":return this.validateString(m,r,n);case"base64":case"binary":return this.validatePayload(r,n);case"integer":case"float":return this.validateNumber(m,r,n);case"boolean":return this.validateType(r,n,["boolean"]);case"timestamp":return this.validateType(r,n,[Date,/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d+)?Z$/,"number"],"Date object, ISO-8601 string, or a UNIX timestamp");default:return this.fail("UnkownType","Unhandled type "+m.type+" for "+n)}},validateString:function(m,r,n){var o=["string"];m.isJsonValue&&(o=o.concat(["number","object","boolean"])),null!==r&&this.validateType(r,n,o)&&(this.validateEnum(m,r,n),this.validateRange(m,r.length,n,"string length"),this.validatePattern(m,r,n),this.validateUri(m,r,n))},validateUri:function(m,r,n){"uri"===m.location&&0===r.length&&this.fail("UriParameterError",'Expected uri parameter to have length >= 1, but found "'+r+'" for '+n)},validatePattern:function(m,r,n){this.validation.pattern&&void 0!==m.pattern&&(new RegExp(m.pattern).test(r)||this.fail("PatternMatchError",'Provided value "'+r+'" does not match regex pattern /'+m.pattern+"/ for "+n))},validateRange:function(m,r,n,o){this.validation.min&&void 0!==m.min&&r<m.min&&this.fail("MinRangeError","Expected "+o+" >= "+m.min+", but found "+r+" for "+n),this.validation.max&&void 0!==m.max&&r>m.max&&this.fail("MaxRangeError","Expected "+o+" <= "+m.max+", but found "+r+" for "+n)},validateEnum:function(m,r,n){this.validation.enum&&void 0!==m.enum&&-1===m.enum.indexOf(r)&&this.fail("EnumError","Found string value of "+r+", but expected "+m.enum.join("|")+" for "+n)},validateType:function(m,r,n,o){if(null==m)return!1;for(var l=!1,e=0;e<n.length;e++){if("string"==typeof n[e]){if(typeof m===n[e])return!0}else if(n[e]instanceof RegExp){if((m||"").toString().match(n[e]))return!0}else{if(m instanceof n[e]||a.util.isType(m,n[e]))return!0;!o&&!l&&(n=n.slice()),n[e]=a.util.typeName(n[e])}l=!0}var i=o;i||(i=n.join(", ").replace(/,([^,]+)$/,", or$1"));var h=i.match(/^[aeiou]/i)?"n":"";return this.fail("InvalidParameterType","Expected "+r+" to be a"+h+" "+i),!1},validateNumber:function(m,r,n){if(null!=r){if("string"==typeof r){var o=parseFloat(r);o.toString()===r&&(r=o)}this.validateType(r,n,["number"])&&this.validateRange(m,r,n,"numeric value")}},validatePayload:function(m,r){if(null!=m&&"string"!=typeof m&&(!m||"number"!=typeof m.byteLength)){if(a.util.isNode()){var n=a.util.stream.Stream;if(a.util.Buffer.isBuffer(m)||m instanceof n)return}else if(void 0!==typeof Blob&&m instanceof Blob)return;var o=["Buffer","Stream","File","Blob","ArrayBuffer","DataView"];if(m)for(var l=0;l<o.length;l++)if(a.util.isType(m,o[l])||a.util.typeName(m.constructor)===o[l])return;this.fail("InvalidParameterType","Expected "+r+" to be a string, Buffer, Stream, Blob, or typed array object")}}})},96091:(le,k,y)=>{var a=y(49229),O=y(86462);le.exports={populateHostPrefix:function m(e){if(!e.service.config.hostPrefixEnabled)return e;var h=e.service.api.operations[e.operation];if(function r(e){var i=e.service.api,h=i.operations[e.operation],d=i.endpointOperation&&i.endpointOperation===a.string.lowerFirst(h.name);return"NULL"!==h.endpointDiscoveryRequired||!0===d}(e))return e;if(h.endpoint&&h.endpoint.hostPrefix){var g=function n(e,i,h){return a.each(h.members,function(d,g){if(!0===g.hostLabel){if("string"!=typeof i[d]||""===i[d])throw a.error(new Error,{message:"Parameter "+d+" should be a non-empty string.",code:"InvalidParameter"});var b=new RegExp("\\{"+d+"\\}","g");e=e.replace(b,i[d])}}),e}(h.endpoint.hostPrefix,e.params,h.input);(function o(e,i){e.host&&(e.host=i+e.host),e.hostname&&(e.hostname=i+e.hostname)})(e.httpRequest.endpoint,g),function l(e){var i=e.split("."),h=/^[a-zA-Z0-9]{1}$|^[a-zA-Z0-9][a-zA-Z0-9\-]*[a-zA-Z0-9]$/;a.arrayEach(i,function(d){if(!d.length||d.length<1||d.length>63)throw a.error(new Error,{code:"ValidationError",message:"Hostname label length should be between 1 to 63 characters, inclusive."});if(!h.test(d))throw O.util.error(new Error,{code:"ValidationError",message:d+" is not hostname compatible."})})}(e.httpRequest.endpoint.hostname)}return e}}},93240:(le,k,y)=>{var a=y(49229),O=y(50629),m=y(4413),r=y(96091).populateHostPrefix;le.exports={buildRequest:function n(e){var i=e.httpRequest,h=e.service.api,d=h.targetPrefix+"."+h.operations[e.operation].name,g=h.jsonVersion||"1.0",b=h.operations[e.operation].input,T=new O;1===g&&(g="1.0"),i.body=T.build(e.params||{},b),i.headers["Content-Type"]="application/x-amz-json-"+g,i.headers["X-Amz-Target"]=d,r(e)},extractError:function o(e){var i={},h=e.httpResponse;if(i.code=h.headers["x-amzn-errortype"]||"UnknownError","string"==typeof i.code&&(i.code=i.code.split(":")[0]),h.body.length>0)try{var d=JSON.parse(h.body.toString()),g=d.__type||d.code||d.Code;g&&(i.code=g.split("#").pop()),i.message="RequestEntityTooLarge"===i.code?"Request body must be less than 1 MB":d.message||d.Message||null}catch{i.statusCode=h.statusCode,i.message=h.statusMessage}else i.statusCode=h.statusCode,i.message=h.statusCode.toString();e.error=a.error(new Error,i)},extractData:function l(e){var i=e.httpResponse.body.toString()||"{}";if(!1===e.request.service.config.convertResponseTypes)e.data=JSON.parse(i);else{var d=e.request.service.api.operations[e.request.operation].output||{},g=new m;e.data=g.parse(i,d)}}}},88694:(le,k,y)=>{var a=y(86462),O=y(49229),m=y(39119),r=y(65454),n=y(96091).populateHostPrefix;le.exports={buildRequest:function o(i){var h=i.service.api.operations[i.operation],d=i.httpRequest;d.headers["Content-Type"]="application/x-www-form-urlencoded; charset=utf-8",d.params={Version:i.service.api.apiVersion,Action:h.name},(new m).serialize(i.params,h.input,function(b,T){d.params[b]=T}),d.body=O.queryParamsToString(d.params),n(i)},extractError:function l(i){var h,d=i.httpResponse.body.toString();if(d.match("<UnknownOperationException"))h={Code:"UnknownOperation",Message:"Unknown operation "+i.request.operation};else try{h=(new a.XML.Parser).parse(d)}catch{h={Code:i.httpResponse.statusCode,Message:i.httpResponse.statusMessage}}h.requestId&&!i.requestId&&(i.requestId=h.requestId),h.Errors&&(h=h.Errors),h.Error&&(h=h.Error),i.error=O.error(new Error,h.Code?{code:h.Code,message:h.Message}:{code:i.httpResponse.statusCode,message:null})},extractData:function e(i){var h=i.request,g=h.service.api.operations[h.operation].output||{},b=g;if(b.resultWrapper){var T=r.create({type:"structure"});T.members[b.resultWrapper]=g,T.memberNames=[b.resultWrapper],O.property(g,"name",g.resultWrapper),g=T}var M=new a.XML.Parser;if(g&&g.members&&!g.members._XAMZRequestId){var R=r.create({type:"string"},{api:{protocol:"query"}},"requestId");g.members._XAMZRequestId=R}var x=M.parse(i.httpResponse.body.toString(),g);i.requestId=x._XAMZRequestId||x.requestId,x._XAMZRequestId&&delete x._XAMZRequestId,b.resultWrapper&&x[b.resultWrapper]&&(O.update(x,x[b.resultWrapper]),delete x[b.resultWrapper]),i.data=x}}},12153:(le,k,y)=>{var a=y(49229),O=y(96091).populateHostPrefix;function r(h,d,g,b){var T=[h,d].join("/");T=T.replace(/\/+/g,"/");var M={},R=!1;if(a.each(g.members,function(P,W){var V=b[P];if(null!=V)if("uri"===W.location){var Y=new RegExp("\\{"+W.name+"(\\+)?\\}");T=T.replace(Y,function(j,E){return(E?a.uriEscapePath:a.uriEscape)(String(V))})}else"querystring"===W.location&&(R=!0,"list"===W.type?M[W.name]=V.map(function(j){return a.uriEscape(W.member.toWireFormat(j).toString())}):"map"===W.type?a.each(V,function(j,E){M[j]=Array.isArray(E)?E.map(function(C){return a.uriEscape(String(C))}):a.uriEscape(String(E))}):M[W.name]=a.uriEscape(W.toWireFormat(V).toString()))}),R){T+=T.indexOf("?")>=0?"&":"?";var x=[];a.arrayEach(Object.keys(M).sort(),function(P){Array.isArray(M[P])||(M[P]=[M[P]]);for(var W=0;W<M[P].length;W++)x.push(a.uriEscape(String(P))+"="+M[P][W])}),T+=x.join("&")}return T}le.exports={buildRequest:function l(h){(function m(h){h.httpRequest.method=h.service.api.operations[h.operation].httpMethod})(h),function n(h){var d=h.service.api.operations[h.operation],b=r(h.httpRequest.endpoint.path,d.httpPath,d.input,h.params);h.httpRequest.path=b}(h),function o(h){a.each(h.service.api.operations[h.operation].input.members,function(g,b){var T=h.params[g];null!=T&&("headers"===b.location&&"map"===b.type?a.each(T,function(M,R){h.httpRequest.headers[b.name+M]=R}):"header"===b.location&&(T=b.toWireFormat(T).toString(),b.isJsonValue&&(T=a.base64.encode(T)),h.httpRequest.headers[b.name]=T))})}(h),O(h)},extractError:function e(){},extractData:function i(h){var d=h.request,g={},b=h.httpResponse,M=d.service.api.operations[d.operation].output,R={};a.each(b.headers,function(x,P){R[x.toLowerCase()]=P}),a.each(M.members,function(x,P){var W=(P.name||x).toLowerCase();if("headers"===P.location&&"map"===P.type){g[x]={};var Y=new RegExp("^"+(P.isLocationName?P.name:"")+"(.+)","i");a.each(b.headers,function(E,C){var p=E.match(Y);null!==p&&(g[x][p[1]]=C)})}else if("header"===P.location){if(void 0!==R[W]){var j=P.isJsonValue?a.base64.decode(R[W]):R[W];g[x]=P.toType(j)}}else"statusCode"===P.location&&(g[x]=parseInt(b.statusCode,10))}),h.data=g},generateURI:r}},34691:(le,k,y)=>{var a=y(49229),O=y(12153),m=y(93240),r=y(50629),n=y(4413);function l(d,g){d.httpRequest.headers["Content-Type"]||(d.httpRequest.headers["Content-Type"]=g?"binary/octet-stream":"application/json")}le.exports={buildRequest:function e(d){O.buildRequest(d),["GET","HEAD","DELETE"].indexOf(d.httpRequest.method)<0&&function o(d){var g=new r,b=d.service.api.operations[d.operation].input;if(b.payload){var T,M=b.members[b.payload];T=d.params[b.payload],"structure"===M.type?(d.httpRequest.body=g.build(T||{},M),l(d)):void 0!==T&&(d.httpRequest.body=T,("binary"===M.type||M.isStreaming)&&l(d,!0))}else d.httpRequest.body=g.build(d.params,b),l(d)}(d)},extractError:function i(d){m.extractError(d)},extractData:function h(d){O.extractData(d);var g=d.request,T=g.service.api.operations[g.operation].output||{};if(T.payload){var x=T.members[T.payload],P=d.httpResponse.body;if(x.isEventStream)M=new n,d.data[payload]=a.createEventStream(2===AWS.HttpClient.streamsApiVersion?d.httpResponse.stream:P,M,x);else if("structure"===x.type||"list"===x.type){var M=new n;d.data[T.payload]=M.parse(P,x)}else d.data[T.payload]="binary"===x.type||x.isStreaming?P:x.toType(P)}else{var W=d.data;m.extractData(d),d.data=a.merge(W,d.data)}}}},49679:(le,k,y)=>{var a=y(86462),O=y(49229),m=y(12153);le.exports={buildRequest:function n(e){m.buildRequest(e),["GET","HEAD"].indexOf(e.httpRequest.method)<0&&function r(e){var i=e.service.api.operations[e.operation].input,h=new a.XML.Builder,d=e.params,g=i.payload;if(g){var b=i.members[g];if(void 0===(d=d[g]))return;e.httpRequest.body="structure"===b.type?h.toXML(d,b,b.name,!0):d}else e.httpRequest.body=h.toXML(d,i,i.name||i.shape||O.string.upperFirst(e.operation)+"Request")}(e)},extractError:function o(e){var i;m.extractError(e);try{i=(new a.XML.Parser).parse(e.httpResponse.body.toString())}catch{i={Code:e.httpResponse.statusCode,Message:e.httpResponse.statusMessage}}i.Errors&&(i=i.Errors),i.Error&&(i=i.Error),e.error=O.error(new Error,i.Code?{code:i.Code,message:i.Message}:{code:e.httpResponse.statusCode,message:null})},extractData:function l(e){m.extractData(e);var i,h=e.request,d=e.httpResponse.body,b=h.service.api.operations[h.operation].output,M=b.payload;if(M){var R=b.members[M];R.isEventStream?(i=new a.XML.Parser,e.data[M]=O.createEventStream(2===a.HttpClient.streamsApiVersion?e.httpResponse.stream:e.httpResponse.body,i,R)):"structure"===R.type?(i=new a.XML.Parser,e.data[M]=i.parse(d.toString(),R)):e.data[M]="binary"===R.type||R.isStreaming?d:R.toType(d)}else if(d.length>0){var x=(i=new a.XML.Parser).parse(d.toString(),b);O.update(e.data,x)}}}},39119:(le,k,y)=>{var a=y(49229);function O(){}function m(e){return e.isQueryName||"ec2"!==e.api.protocol?e.name:e.name[0].toUpperCase()+e.name.substr(1)}function r(e,i,h,d){a.each(h.members,function(g,b){var T=i[g];if(null!=T){var M=m(b);l(M=e?e+"."+M:M,T,b,d)}})}function l(e,i,h,d){null!=i&&("structure"===h.type?r(e,i,h,d):"list"===h.type?function o(e,i,h,d){var g=h.member||{};0!==i.length?a.arrayEach(i,function(b,T){var M="."+(T+1);if("ec2"===h.api.protocol)M+="";else if(h.flattened){if(g.name){var R=e.split(".");R.pop(),R.push(m(g)),e=R.join(".")}}else M="."+(g.name?g.name:"member")+M;l(e+M,b,g,d)}):d.call(this,e,null)}(e,i,h,d):"map"===h.type?function n(e,i,h,d){var g=1;a.each(i,function(b,T){var R=(h.flattened?".":".entry.")+g+++".",P=R+(h.value.name||"value");l(e+(R+(h.key.name||"key")),b,h.key,d),l(e+P,T,h.value,d)})}(e,i,h,d):d(e,h.toWireFormat(i).toString()))}O.prototype.serialize=function(e,i,h){r("",e,i,h)},le.exports=O},89559:le=>{le.exports={now:function(){return typeof performance<"u"&&"function"==typeof performance.now?performance.now():Date.now()}}},95906:le=>{le.exports={isFipsRegion:function k(O){return"string"==typeof O&&(O.startsWith("fips-")||O.endsWith("-fips"))},isGlobalRegion:function y(O){return"string"==typeof O&&["aws-global","aws-us-gov-global"].includes(O)},getRealRegion:function a(O){return["fips-aws-global","aws-fips","aws-global"].includes(O)?"us-east-1":["fips-aws-us-gov-global","aws-us-gov-global"].includes(O)?"us-gov-west-1":O.replace(/fips-(dkr-|prod-)?|-fips/,"")}}},55929:(le,k,y)=>{var a=y(49229),O=y(85595);function n(e,i){a.each(i,function(h,d){"globalEndpoint"!==h&&null==e.config[h]&&(e.config[h]=d)})}le.exports={configureEndpoint:function o(e){for(var i=function r(e){var i=e.config.region,h=function m(e){if(!e)return null;var i=e.split("-");return i.length<3?null:i.slice(0,i.length-2).join("-")+"-*"}(i),d=e.api.endpointPrefix;return[[i,d],[h,d],[i,"*"],[h,"*"],["*",d],["*","*"]].map(function(g){return g[0]&&g[1]?g.join("/"):null})}(e),h=e.config.useFipsEndpoint,d=e.config.useDualstackEndpoint,g=0;g<i.length;g++){var b=i[g];if(b){var T=h?d?O.dualstackFipsRules:O.fipsRules:d?O.dualstackRules:O.rules;if(Object.prototype.hasOwnProperty.call(T,b)){var M=T[b];return"string"==typeof M&&(M=O.patterns[M]),e.isGlobalEndpoint=!!M.globalEndpoint,M.signingRegion&&(e.signingRegion=M.signingRegion),M.signatureVersion||(M.signatureVersion="v4"),void n(e,M)}}}},getEndpointSuffix:function l(e){for(var i={"^(us|eu|ap|sa|ca|me)\\-\\w+\\-\\d+$":"amazonaws.com","^cn\\-\\w+\\-\\d+$":"amazonaws.com.cn","^us\\-gov\\-\\w+\\-\\d+$":"amazonaws.com","^us\\-iso\\-\\w+\\-\\d+$":"c2s.ic.gov","^us\\-isob\\-\\w+\\-\\d+$":"sc2s.sgov.gov"},d=Object.keys(i),g=0;g<d.length;g++){var b=RegExp(d[g]),T=i[d[g]];if(b.test(e))return T}return"amazonaws.com"}}},22091:(le,k,y)=>{var a=y(86462),O=y(45481),m=a.util.inherit,r=a.util.domain,n=y(36151),o={success:1,error:1,complete:1},e=new O;e.setupStates=function(){var i=function(h,d){var g=this;g._haltHandlersOnError=!1,g.emit(g._asm.currentState,function(b){if(b)if(function l(i){return Object.prototype.hasOwnProperty.call(o,i._asm.currentState)}(g)){if(!(r&&g.domain instanceof r.Domain))throw b;b.domainEmitter=g,b.domain=g.domain,b.domainThrown=!1,g.domain.emit("error",b)}else g.response.error=b,d(b);else d(g.response.error)})};this.addState("validate","build","error",i),this.addState("build","afterBuild","restart",i),this.addState("afterBuild","sign","restart",i),this.addState("sign","send","retry",i),this.addState("retry","afterRetry","afterRetry",i),this.addState("afterRetry","sign","error",i),this.addState("send","validateResponse","retry",i),this.addState("validateResponse","extractData","extractError",i),this.addState("extractError","extractData","retry",i),this.addState("extractData","success","retry",i),this.addState("restart","build","error",i),this.addState("success","complete","complete",i),this.addState("error","complete","complete",i),this.addState("complete",null,null,i)},e.setupStates(),a.Request=m({constructor:function(h,d,g){var b=h.endpoint,T=h.config.region,M=h.config.customUserAgent;h.signingRegion?T=h.signingRegion:h.isGlobalEndpoint&&(T="us-east-1"),this.domain=r&&r.active,this.service=h,this.operation=d,this.params=g||{},this.httpRequest=new a.HttpRequest(b,T),this.httpRequest.appendToUserAgent(M),this.startTime=h.getSkewCorrectedDate(),this.response=new a.Response(this),this._asm=new O(e.states,"validate"),this._haltHandlersOnError=!1,a.SequentialExecutor.call(this),this.emit=this.emitEvent},send:function(h){return h&&(this.httpRequest.appendToUserAgent("callback"),this.on("complete",function(d){h.call(d,d.error,d.data)})),this.runTo(),this.response},build:function(h){return this.runTo("send",h)},runTo:function(h,d){return this._asm.runTo(h,d,this),this},abort:function(){return this.removeAllListeners("validateResponse"),this.removeAllListeners("extractError"),this.on("validateResponse",function(d){d.error=a.util.error(new Error("Request aborted by user"),{code:"RequestAbortedError",retryable:!1})}),this.httpRequest.stream&&!this.httpRequest.stream.didCallback&&(this.httpRequest.stream.abort(),this.httpRequest._abortCallback?this.httpRequest._abortCallback():this.removeAllListeners("send")),this},eachPage:function(h){h=a.util.fn.makeAsync(h,3),this.on("complete",function d(g){h.call(g,g.error,g.data,function(b){!1!==b&&(g.hasNextPage()?g.nextPage().on("complete",d).send():h.call(g,null,null,a.util.fn.noop))})}).send()},eachItem:function(h){var d=this;this.eachPage(function g(b,T){if(b)return h(b,null);if(null===T)return h(null,null);var R=d.service.paginationConfig(d.operation).resultKey;Array.isArray(R)&&(R=R[0]);var x=n.search(T,R),P=!0;return a.util.arrayEach(x,function(W){if(!1===(P=h(null,W)))return a.util.abort}),P})},isPageable:function(){return!!this.service.paginationConfig(this.operation)},createReadStream:function(){var h=a.util.stream,d=this,g=null;return 2===a.HttpClient.streamsApiVersion?(g=new h.PassThrough,process.nextTick(function(){d.send()})):((g=new h.Stream).readable=!0,g.sent=!1,g.on("newListener",function(b){!g.sent&&"data"===b&&(g.sent=!0,process.nextTick(function(){d.send()}))})),this.on("error",function(b){g.emit("error",b)}),this.on("httpHeaders",function(T,M,R){if(T<300){d.removeListener("httpData",a.EventListeners.Core.HTTP_DATA),d.removeListener("httpError",a.EventListeners.Core.HTTP_ERROR),d.on("httpError",function(C){R.error=C,R.error.retryable=!1});var P,x=!1;if("HEAD"!==d.httpRequest.method&&(P=parseInt(M["content-length"],10)),void 0!==P&&!isNaN(P)&&P>=0){x=!0;var W=0}var V=function(){x&&W!==P?g.emit("error",a.util.error(new Error("Stream content length mismatch. Received "+W+" of "+P+" bytes."),{code:"StreamContentLengthMismatch"})):2===a.HttpClient.streamsApiVersion?g.end():g.emit("end")},Y=R.httpResponse.createUnbufferedStream();if(2===a.HttpClient.streamsApiVersion)if(x){var j=new h.PassThrough;j._write=function(E){return E&&E.length&&(W+=E.length),h.PassThrough.prototype._write.apply(this,arguments)},j.on("end",V),g.on("error",function(E){x=!1,Y.unpipe(j),j.emit("end"),j.end()}),Y.pipe(j).pipe(g,{end:!1})}else Y.pipe(g);else x&&Y.on("data",function(E){E&&E.length&&(W+=E.length)}),Y.on("data",function(E){g.emit("data",E)}),Y.on("end",V);Y.on("error",function(E){x=!1,g.emit("error",E)})}}),g},emitEvent:function(h,d,g){"function"==typeof d&&(g=d,d=null),g||(g=function(){}),d||(d=this.eventParameters(h,this.response)),a.SequentialExecutor.prototype.emit.call(this,h,d,function(T){T&&(this.response.error=T),g.call(this,T)})},eventParameters:function(h){switch(h){case"restart":case"validate":case"sign":case"build":case"afterValidate":case"afterBuild":return[this];case"error":return[this.response.error,this.response];default:return[this.response]}},presign:function(h,d){return!d&&"function"==typeof h&&(d=h,h=null),(new a.Signers.Presign).sign(this.toGet(),h,d)},isPresigned:function(){return Object.prototype.hasOwnProperty.call(this.httpRequest.headers,"presigned-expires")},toUnauthenticated:function(){return this._unAuthenticated=!0,this.removeListener("validate",a.EventListeners.Core.VALIDATE_CREDENTIALS),this.removeListener("sign",a.EventListeners.Core.SIGN),this},toGet:function(){return("query"===this.service.api.protocol||"ec2"===this.service.api.protocol)&&(this.removeListener("build",this.buildAsGet),this.addListener("build",this.buildAsGet)),this},buildAsGet:function(h){h.httpRequest.method="GET",h.httpRequest.path=h.service.endpoint.path+"?"+h.httpRequest.body,h.httpRequest.body="",delete h.httpRequest.headers["Content-Length"],delete h.httpRequest.headers["Content-Type"]},haltHandlersOnError:function(){this._haltHandlersOnError=!0}}),a.Request.addPromisesToClass=function(h){this.prototype.promise=function(){var g=this;return this.httpRequest.appendToUserAgent("promise"),new h(function(b,T){g.on("complete",function(M){M.error?T(M.error):b(Object.defineProperty(M.data||{},"$response",{value:M}))}),g.runTo()})}},a.Request.deletePromisesFromClass=function(){delete this.prototype.promise},a.util.addPromises(a.Request),a.util.mixin(a.Request,a.SequentialExecutor)},51272:(le,k,y)=>{var a=y(86462),O=a.util.inherit,m=y(36151);function r(n){var o=n.request._waiter,e=!1,i="retry";o.config.acceptors.forEach(function(h){if(!e){var d=o.matchers[h.matcher];d&&d(n,h.expected,h.argument)&&(e=!0,i=h.state)}}),!e&&n.error&&(i="failure"),"success"===i?o.setSuccess(n):o.setError(n,"retry"===i)}a.ResourceWaiter=O({constructor:function(o,l){this.service=o,this.state=l,this.loadWaiterConfig(this.state)},service:null,state:null,config:null,matchers:{path:function(n,o,l){try{var e=m.search(n.data,l)}catch{return!1}return m.strictDeepEqual(e,o)},pathAll:function(n,o,l){try{var e=m.search(n.data,l)}catch{return!1}Array.isArray(e)||(e=[e]);var i=e.length;if(!i)return!1;for(var h=0;h<i;h++)if(!m.strictDeepEqual(e[h],o))return!1;return!0},pathAny:function(n,o,l){try{var e=m.search(n.data,l)}catch{return!1}Array.isArray(e)||(e=[e]);for(var i=e.length,h=0;h<i;h++)if(m.strictDeepEqual(e[h],o))return!0;return!1},status:function(n,o){var l=n.httpResponse.statusCode;return"number"==typeof l&&l===o},error:function(n,o){return"string"==typeof o&&n.error?o===n.error.code:o===!!n.error}},listeners:(new a.SequentialExecutor).addNamedListeners(function(n){n("RETRY_CHECK","retry",function(o){o.error&&"ResourceNotReady"===o.error.code&&(o.error.retryDelay=1e3*(o.request._waiter.config.delay||0))}),n("CHECK_OUTPUT","extractData",r),n("CHECK_ERROR","extractError",r)}),wait:function(o,l){"function"==typeof o&&(l=o,o=void 0),o&&o.$waiter&&("number"==typeof(o=a.util.copy(o)).$waiter.delay&&(this.config.delay=o.$waiter.delay),"number"==typeof o.$waiter.maxAttempts&&(this.config.maxAttempts=o.$waiter.maxAttempts),delete o.$waiter);var e=this.service.makeRequest(this.config.operation,o);return e._waiter=this,e.response.maxRetries=this.config.maxAttempts,e.addListeners(this.listeners),l&&e.send(l),e},setSuccess:function(o){o.error=null,o.data=o.data||{},o.request.removeAllListeners("extractData")},setError:function(o,l){o.data=null,o.error=a.util.error(o.error||new Error,{code:"ResourceNotReady",message:"Resource is not in the state "+this.state,retryable:l})},loadWaiterConfig:function(o){if(!this.service.api.waiters[o])throw new a.util.error(new Error,{code:"StateNotFoundError",message:"State "+o+" not found."});this.config=a.util.copy(this.service.api.waiters[o])}})},5001:(le,k,y)=>{var a=y(86462),O=a.util.inherit,m=y(36151);a.Response=O({constructor:function(n){this.request=n,this.data=null,this.error=null,this.retryCount=0,this.redirectCount=0,this.httpResponse=new a.HttpResponse,n&&(this.maxRetries=n.service.numRetries(),this.maxRedirects=n.service.config.maxRedirects)},nextPage:function(n){var o,l=this.request.service,e=this.request.operation;try{o=l.paginationConfig(e,!0)}catch(g){this.error=g}if(!this.hasNextPage()){if(n)n(this.error,null);else if(this.error)throw this.error;return null}var i=a.util.copy(this.request.params);if(this.nextPageTokens){var h=o.inputToken;"string"==typeof h&&(h=[h]);for(var d=0;d<h.length;d++)i[h[d]]=this.nextPageTokens[d];return l.makeRequest(this.request.operation,i,n)}return n?n(null,null):null},hasNextPage:function(){return this.cacheNextPageTokens(),!!this.nextPageTokens||void 0===this.nextPageTokens&&void 0},cacheNextPageTokens:function(){if(Object.prototype.hasOwnProperty.call(this,"nextPageTokens"))return this.nextPageTokens;this.nextPageTokens=void 0;var n=this.request.service.paginationConfig(this.request.operation);if(!n)return this.nextPageTokens;if(this.nextPageTokens=null,n.moreResults&&!m.search(this.data,n.moreResults))return this.nextPageTokens;var o=n.outputToken;return"string"==typeof o&&(o=[o]),a.util.arrayEach.call(this,o,function(l){var e=m.search(this.data,l);e&&(this.nextPageTokens=this.nextPageTokens||[],this.nextPageTokens.push(e))}),this.nextPageTokens}})},86275:(le,k,y)=>{var a=y(86462);a.SequentialExecutor=a.util.inherit({constructor:function(){this._events={}},listeners:function(m){return this._events[m]?this._events[m].slice(0):[]},on:function(m,r,n){return this._events[m]?n?this._events[m].unshift(r):this._events[m].push(r):this._events[m]=[r],this},onAsync:function(m,r,n){return r._isAsync=!0,this.on(m,r,n)},removeListener:function(m,r){var n=this._events[m];if(n){for(var o=n.length,l=-1,e=0;e<o;++e)n[e]===r&&(l=e);l>-1&&n.splice(l,1)}return this},removeAllListeners:function(m){return m?delete this._events[m]:this._events={},this},emit:function(m,r,n){n||(n=function(){});var o=this.listeners(m),l=o.length;return this.callListeners(o,r,n),l>0},callListeners:function(m,r,n,o){var l=this,e=o||null;function i(d){if(d&&(e=a.util.error(e||new Error,d),l._haltHandlersOnError))return n.call(l,e);l.callListeners(m,r,n,e)}for(;m.length>0;){var h=m.shift();if(h._isAsync)return void h.apply(l,r.concat([i]));try{h.apply(l,r)}catch(d){e=a.util.error(e||new Error,d)}if(e&&l._haltHandlersOnError)return void n.call(l,e)}n.call(l,e)},addListeners:function(m){var r=this;return m._events&&(m=m._events),a.util.each(m,function(n,o){"function"==typeof o&&(o=[o]),a.util.arrayEach(o,function(l){r.on(n,l)})}),r},addNamedListener:function(m,r,n,o){return this[m]=n,this.addListener(r,n,o),this},addNamedAsyncListener:function(m,r,n,o){return n._isAsync=!0,this.addNamedListener(m,r,n,o)},addNamedListeners:function(m){var r=this;return m(function(){r.addNamedListener.apply(r,arguments)},function(){r.addNamedAsyncListener.apply(r,arguments)}),this}}),a.SequentialExecutor.prototype.addListener=a.SequentialExecutor.prototype.on,le.exports=a.SequentialExecutor},95241:(le,k,y)=>{var a=y(86462),O=y(24558),m=y(55929),r=a.util.inherit,n=0,o=y(95906);a.Service=r({constructor:function(e){if(!this.loadServiceClass)throw a.util.error(new Error,"Service must be constructed with `new' operator");if(e){if(e.region){var i=e.region;o.isFipsRegion(i)&&(e.region=o.getRealRegion(i),e.useFipsEndpoint=!0),o.isGlobalRegion(i)&&(e.region=o.getRealRegion(i))}"boolean"==typeof e.useDualstack&&"boolean"!=typeof e.useDualstackEndpoint&&(e.useDualstackEndpoint=e.useDualstack)}var h=this.loadServiceClass(e||{});if(h){var d=a.util.copy(e),g=new h(e);return Object.defineProperty(g,"_originalConfig",{get:function(){return d},enumerable:!1,configurable:!0}),g._clientId=++n,g}this.initialize(e)},initialize:function(e){var i=a.config[this.serviceIdentifier];if(this.config=new a.Config(a.config),i&&this.config.update(i,!0),e&&this.config.update(e,!0),this.validateService(),this.config.endpoint||m.configureEndpoint(this),this.config.endpoint=this.endpointFromTemplate(this.config.endpoint),this.setEndpoint(this.config.endpoint),a.SequentialExecutor.call(this),a.Service.addDefaultMonitoringListeners(this),(this.config.clientSideMonitoring||a.Service._clientSideMonitoring)&&this.publisher){var h=this.publisher;this.addNamedListener("PUBLISH_API_CALL","apiCall",function(g){process.nextTick(function(){h.eventHandler(g)})}),this.addNamedListener("PUBLISH_API_ATTEMPT","apiCallAttempt",function(g){process.nextTick(function(){h.eventHandler(g)})})}},validateService:function(){},loadServiceClass:function(e){var i=e;if(a.util.isEmpty(this.api)){if(i.apiConfig)return a.Service.defineServiceApi(this.constructor,i.apiConfig);if(this.constructor.services){(i=new a.Config(a.config)).update(e,!0);var h=i.apiVersions[this.constructor.serviceIdentifier];return this.getLatestServiceClass(h=h||i.apiVersion)}return null}return null},getLatestServiceClass:function(e){return e=this.getLatestServiceVersion(e),null===this.constructor.services[e]&&a.Service.defineServiceApi(this.constructor,e),this.constructor.services[e]},getLatestServiceVersion:function(e){if(!this.constructor.services||0===this.constructor.services.length)throw new Error("No services defined on "+this.constructor.serviceIdentifier);if(e?a.util.isType(e,Date)&&(e=a.util.date.iso8601(e).split("T")[0]):e="latest",Object.hasOwnProperty(this.constructor.services,e))return e;for(var i=Object.keys(this.constructor.services).sort(),h=null,d=i.length-1;d>=0;d--)if("*"!==i[d][i[d].length-1]&&(h=i[d]),i[d].substr(0,10)<=e)return h;throw new Error("Could not find "+this.constructor.serviceIdentifier+" API to satisfy version constraint `"+e+"'")},api:{},defaultRetryCount:3,customizeRequests:function(e){if(e){if("function"!=typeof e)throw new Error("Invalid callback type '"+typeof e+"' provided in customizeRequests");this.customRequestHandler=e}else this.customRequestHandler=null},makeRequest:function(e,i,h){if("function"==typeof i&&(h=i,i=null),i=i||{},this.config.params){var d=this.api.operations[e];d&&(i=a.util.copy(i),a.util.each(this.config.params,function(b,T){d.input.members[b]&&null==i[b]&&(i[b]=T)}))}var g=new a.Request(this,e,i);return this.addAllRequestListeners(g),this.attachMonitoringEmitter(g),h&&g.send(h),g},makeUnauthenticatedRequest:function(e,i,h){"function"==typeof i&&(h=i,i={});var d=this.makeRequest(e,i).toUnauthenticated();return h?d.send(h):d},waitFor:function(e,i,h){return new a.ResourceWaiter(this,e).wait(i,h)},addAllRequestListeners:function(e){for(var i=[a.events,a.EventListeners.Core,this.serviceInterface(),a.EventListeners.CorePost],h=0;h<i.length;h++)i[h]&&e.addListeners(i[h]);this.config.paramValidation||e.removeListener("validate",a.EventListeners.Core.VALIDATE_PARAMETERS),this.config.logger&&e.addListeners(a.EventListeners.Logger),this.setupRequestListeners(e),"function"==typeof this.constructor.prototype.customRequestHandler&&this.constructor.prototype.customRequestHandler(e),Object.prototype.hasOwnProperty.call(this,"customRequestHandler")&&"function"==typeof this.customRequestHandler&&this.customRequestHandler(e)},apiCallEvent:function(e){var i=e.service.api.operations[e.operation],h={Type:"ApiCall",Api:i?i.name:e.operation,Version:1,Service:e.service.api.serviceId||e.service.api.endpointPrefix,Region:e.httpRequest.region,MaxRetriesExceeded:0,UserAgent:e.httpRequest.getUserAgent()},d=e.response;if(d.httpResponse.statusCode&&(h.FinalHttpStatusCode=d.httpResponse.statusCode),d.error){var g=d.error;d.httpResponse.statusCode>299?(g.code&&(h.FinalAwsException=g.code),g.message&&(h.FinalAwsExceptionMessage=g.message)):((g.code||g.name)&&(h.FinalSdkException=g.code||g.name),g.message&&(h.FinalSdkExceptionMessage=g.message))}return h},apiAttemptEvent:function(e){var i=e.service.api.operations[e.operation],h={Type:"ApiCallAttempt",Api:i?i.name:e.operation,Version:1,Service:e.service.api.serviceId||e.service.api.endpointPrefix,Fqdn:e.httpRequest.endpoint.hostname,UserAgent:e.httpRequest.getUserAgent()},d=e.response;return d.httpResponse.statusCode&&(h.HttpStatusCode=d.httpResponse.statusCode),!e._unAuthenticated&&e.service.config.credentials&&e.service.config.credentials.accessKeyId&&(h.AccessKey=e.service.config.credentials.accessKeyId),d.httpResponse.headers&&(e.httpRequest.headers["x-amz-security-token"]&&(h.SessionToken=e.httpRequest.headers["x-amz-security-token"]),d.httpResponse.headers["x-amzn-requestid"]&&(h.XAmznRequestId=d.httpResponse.headers["x-amzn-requestid"]),d.httpResponse.headers["x-amz-request-id"]&&(h.XAmzRequestId=d.httpResponse.headers["x-amz-request-id"]),d.httpResponse.headers["x-amz-id-2"]&&(h.XAmzId2=d.httpResponse.headers["x-amz-id-2"])),h},attemptFailEvent:function(e){var i=this.apiAttemptEvent(e),h=e.response,d=h.error;return h.httpResponse.statusCode>299?(d.code&&(i.AwsException=d.code),d.message&&(i.AwsExceptionMessage=d.message)):((d.code||d.name)&&(i.SdkException=d.code||d.name),d.message&&(i.SdkExceptionMessage=d.message)),i},attachMonitoringEmitter:function(e){var i,h,d,g,T,M,b=0,R=this;e.on("validate",function(){g=a.util.realClock.now(),M=Date.now()},!0),e.on("sign",function(){h=a.util.realClock.now(),i=Date.now(),T=e.httpRequest.region,b++},!0),e.on("validateResponse",function(){d=Math.round(a.util.realClock.now()-h)}),e.addNamedListener("API_CALL_ATTEMPT","success",function(){var W=R.apiAttemptEvent(e);W.Timestamp=i,W.AttemptLatency=d>=0?d:0,W.Region=T,R.emit("apiCallAttempt",[W])}),e.addNamedListener("API_CALL_ATTEMPT_RETRY","retry",function(){var W=R.attemptFailEvent(e);W.Timestamp=i,d=d||Math.round(a.util.realClock.now()-h),W.AttemptLatency=d>=0?d:0,W.Region=T,R.emit("apiCallAttempt",[W])}),e.addNamedListener("API_CALL","complete",function(){var W=R.apiCallEvent(e);if(W.AttemptCount=b,!(W.AttemptCount<=0)){W.Timestamp=M;var V=Math.round(a.util.realClock.now()-g);W.Latency=V>=0?V:0;var Y=e.response;Y.error&&Y.error.retryable&&"number"==typeof Y.retryCount&&"number"==typeof Y.maxRetries&&Y.retryCount>=Y.maxRetries&&(W.MaxRetriesExceeded=1),R.emit("apiCall",[W])}})},setupRequestListeners:function(e){},getSigningName:function(){return this.api.signingName||this.api.endpointPrefix},getSignerClass:function(e){var h=null,d="";return e&&(d=(h=(e.service.api.operations||{})[e.operation]||null)?h.authtype:""),a.Signers.RequestSigner.getVersion(this.config.signatureVersion?this.config.signatureVersion:"v4"===d||"v4-unsigned-body"===d?"v4":this.api.signatureVersion)},serviceInterface:function(){switch(this.api.protocol){case"ec2":case"query":return a.EventListeners.Query;case"json":return a.EventListeners.Json;case"rest-json":return a.EventListeners.RestJson;case"rest-xml":return a.EventListeners.RestXml}if(this.api.protocol)throw new Error("Invalid service `protocol' "+this.api.protocol+" in API config")},successfulResponse:function(e){return e.httpResponse.statusCode<300},numRetries:function(){return void 0!==this.config.maxRetries?this.config.maxRetries:this.defaultRetryCount},retryDelays:function(e,i){return a.util.calculateRetryDelay(e,this.config.retryDelayOptions,i)},retryableError:function(e){return!!(this.timeoutError(e)||this.networkingError(e)||this.expiredCredentialsError(e)||this.throttledError(e)||e.statusCode>=500)},networkingError:function(e){return"NetworkingError"===e.code},timeoutError:function(e){return"TimeoutError"===e.code},expiredCredentialsError:function(e){return"ExpiredTokenException"===e.code},clockSkewError:function(e){switch(e.code){case"RequestTimeTooSkewed":case"RequestExpired":case"InvalidSignatureException":case"SignatureDoesNotMatch":case"AuthFailure":case"RequestInTheFuture":return!0;default:return!1}},getSkewCorrectedDate:function(){return new Date(Date.now()+this.config.systemClockOffset)},applyClockOffset:function(e){e&&(this.config.systemClockOffset=e-Date.now())},isClockSkewed:function(e){if(e)return Math.abs(this.getSkewCorrectedDate().getTime()-e)>=3e5},throttledError:function(e){if(429===e.statusCode)return!0;switch(e.code){case"ProvisionedThroughputExceededException":case"Throttling":case"ThrottlingException":case"RequestLimitExceeded":case"RequestThrottled":case"RequestThrottledException":case"TooManyRequestsException":case"TransactionInProgressException":case"EC2ThrottledException":return!0;default:return!1}},endpointFromTemplate:function(e){if("string"!=typeof e)return e;var i=e;return(i=(i=i.replace(/\{service\}/g,this.api.endpointPrefix)).replace(/\{region\}/g,this.config.region)).replace(/\{scheme\}/g,this.config.sslEnabled?"https":"http")},setEndpoint:function(e){this.endpoint=new a.Endpoint(e,this.config)},paginationConfig:function(e,i){var h=this.api.operations[e].paginator;if(!h){if(i){var d=new Error;throw a.util.error(d,"No pagination configuration for "+e)}return null}return h}}),a.util.update(a.Service,{defineMethods:function(e){a.util.each(e.prototype.api.operations,function(h){e.prototype[h]||(e.prototype[h]="none"===e.prototype.api.operations[h].authtype?function(g,b){return this.makeUnauthenticatedRequest(h,g,b)}:function(g,b){return this.makeRequest(h,g,b)})})},defineService:function(e,i,h){a.Service._serviceMap[e]=!0,Array.isArray(i)||(h=i,i=[]);var d=r(a.Service,h||{});if("string"==typeof e?(a.Service.addVersions(d,i),d.serviceIdentifier=d.serviceIdentifier||e):(d.prototype.api=e,a.Service.defineMethods(d)),a.SequentialExecutor.call(this.prototype),!this.prototype.publisher&&a.util.clientSideMonitoring){var b=a.util.clientSideMonitoring.Publisher,M=(0,a.util.clientSideMonitoring.configProvider)();this.prototype.publisher=new b(M),M.enabled&&(a.Service._clientSideMonitoring=!0)}return a.SequentialExecutor.call(d.prototype),a.Service.addDefaultMonitoringListeners(d.prototype),d},addVersions:function(e,i){Array.isArray(i)||(i=[i]),e.services=e.services||{};for(var h=0;h<i.length;h++)void 0===e.services[i[h]]&&(e.services[i[h]]=null);e.apiVersions=Object.keys(e.services).sort()},defineServiceApi:function(e,i,h){var d=r(e,{serviceIdentifier:e.serviceIdentifier});function g(b){d.prototype.api=b.isApi?b:new O(b,{serviceIdentifier:e.serviceIdentifier})}if("string"==typeof i){if(h)g(h);else try{g(a.apiLoader(e.serviceIdentifier,i))}catch(b){throw a.util.error(b,{message:"Could not find API configuration "+e.serviceIdentifier+"-"+i})}Object.prototype.hasOwnProperty.call(e.services,i)||(e.apiVersions=e.apiVersions.concat(i).sort()),e.services[i]=d}else g(i);return a.Service.defineMethods(d),d},hasService:function(l){return Object.prototype.hasOwnProperty.call(a.Service._serviceMap,l)},addDefaultMonitoringListeners:function(e){e.addNamedListener("MONITOR_EVENTS_BUBBLE","apiCallAttempt",function(h){var d=Object.getPrototypeOf(e);d._events&&d.emit("apiCallAttempt",[h])}),e.addNamedListener("CALL_EVENTS_BUBBLE","apiCall",function(h){var d=Object.getPrototypeOf(e);d._events&&d.emit("apiCall",[h])})},_serviceMap:{}}),a.util.mixin(a.Service,a.SequentialExecutor),le.exports=a.Service},73884:(le,k,y)=>{var a=y(86462),O=y(46664);a.util.update(a.STS.prototype,{credentialsFrom:function(o,l){return o?(l||(l=new a.TemporaryCredentials),l.expired=!1,l.accessKeyId=o.Credentials.AccessKeyId,l.secretAccessKey=o.Credentials.SecretAccessKey,l.sessionToken=o.Credentials.SessionToken,l.expireTime=o.Credentials.Expiration,l):null},assumeRoleWithWebIdentity:function(o,l){return this.makeUnauthenticatedRequest("assumeRoleWithWebIdentity",o,l)},assumeRoleWithSAML:function(o,l){return this.makeUnauthenticatedRequest("assumeRoleWithSAML",o,l)},setupRequestListeners:function(o){o.addListener("validate",this.optInRegionalEndpoint,!0)},optInRegionalEndpoint:function(o){var l=o.service,e=l.config;if(e.stsRegionalEndpoints=O(l._originalConfig,{env:"AWS_STS_REGIONAL_ENDPOINTS",sharedConfig:"sts_regional_endpoints",clientConfig:"stsRegionalEndpoints"}),"regional"===e.stsRegionalEndpoints&&l.isGlobalEndpoint){if(!e.region)throw a.util.error(new Error,{code:"ConfigError",message:"Missing region in config"});var i=e.endpoint.indexOf(".amazonaws.com"),h=e.endpoint.substring(0,i)+"."+e.region+e.endpoint.substring(i);o.httpRequest.updateEndpoint(h),o.httpRequest.region=e.region}}})},49667:(le,k,y)=>{var a=y(86462),m="presigned-expires";function r(o){var l=o.httpRequest.headers[m],e=o.service.getSignerClass(o);if(delete o.httpRequest.headers["User-Agent"],delete o.httpRequest.headers["X-Amz-User-Agent"],e===a.Signers.V4){if(l>604800)throw a.util.error(new Error,{code:"InvalidExpiryTime",message:"Presigning does not support expiry time greater than a week with SigV4 signing.",retryable:!1});o.httpRequest.headers[m]=l}else{if(e!==a.Signers.S3)throw a.util.error(new Error,{message:"Presigning only supports S3 or SigV4 signing.",code:"UnsupportedSigner",retryable:!1});var h=o.service?o.service.getSkewCorrectedDate():a.util.date.getDate();o.httpRequest.headers[m]=parseInt(a.util.date.unixTimestamp(h)+l,10).toString()}}function n(o){var l=o.httpRequest.endpoint,e=a.util.urlParse(o.httpRequest.path),i={};e.search&&(i=a.util.queryStringParse(e.search.substr(1)));var h=o.httpRequest.headers.Authorization.split(" ");if("AWS"===h[0])h=h[1].split(":"),i.Signature=h.pop(),i.AWSAccessKeyId=h.join(":"),a.util.each(o.httpRequest.headers,function(b,T){b===m&&(b="Expires"),0===b.indexOf("x-amz-meta-")&&(delete i[b],b=b.toLowerCase()),i[b]=T}),delete o.httpRequest.headers[m],delete i.Authorization,delete i.Host;else if("AWS4-HMAC-SHA256"===h[0]){h.shift();var g=h.join(" ").match(/Signature=(.*?)(?:,|\s|\r?\n|$)/)[1];i["X-Amz-Signature"]=g,delete i.Expires}l.pathname=e.pathname,l.search=a.util.queryParamsToString(i)}a.Signers.Presign=(0,a.util.inherit)({sign:function(l,e,i){if(l.httpRequest.headers[m]=e||3600,l.on("build",r),l.on("sign",n),l.removeListener("afterBuild",a.EventListeners.Core.SET_CONTENT_LENGTH),l.removeListener("afterBuild",a.EventListeners.Core.COMPUTE_SHA256),l.emit("beforePresign",[l]),!i){if(l.build(),l.response.error)throw l.response.error;return a.util.urlFormat(l.httpRequest.endpoint)}l.build(function(){this.response.error?i(this.response.error):i(null,a.util.urlFormat(l.httpRequest.endpoint))})}}),le.exports=a.Signers.Presign},91974:(le,k,y)=>{var a=y(86462);a.Signers.RequestSigner=(0,a.util.inherit)({constructor:function(r){this.request=r},setServiceClientId:function(r){this.serviceClientId=r},getServiceClientId:function(){return this.serviceClientId}}),a.Signers.RequestSigner.getVersion=function(r){switch(r){case"v2":return a.Signers.V2;case"v3":return a.Signers.V3;case"s3v4":case"v4":return a.Signers.V4;case"s3":return a.Signers.S3;case"v3https":return a.Signers.V3Https}throw new Error("Unknown signing version "+r)},y(5497),y(33449),y(53806),y(14682),y(71710),y(49667)},71710:(le,k,y)=>{var a=y(86462);a.Signers.S3=(0,a.util.inherit)(a.Signers.RequestSigner,{subResources:{acl:1,accelerate:1,analytics:1,cors:1,lifecycle:1,delete:1,inventory:1,location:1,logging:1,metrics:1,notification:1,partNumber:1,policy:1,requestPayment:1,replication:1,restore:1,tagging:1,torrent:1,uploadId:1,uploads:1,versionId:1,versioning:1,versions:1,website:1},responseHeaders:{"response-content-type":1,"response-content-language":1,"response-expires":1,"response-cache-control":1,"response-content-disposition":1,"response-content-encoding":1},addAuthorization:function(r,n){this.request.headers["presigned-expires"]||(this.request.headers["X-Amz-Date"]=a.util.date.rfc822(n)),r.sessionToken&&(this.request.headers["x-amz-security-token"]=r.sessionToken);var o=this.sign(r.secretAccessKey,this.stringToSign());this.request.headers.Authorization="AWS "+r.accessKeyId+":"+o},stringToSign:function(){var r=this.request,n=[];n.push(r.method),n.push(r.headers["Content-MD5"]||""),n.push(r.headers["Content-Type"]||""),n.push(r.headers["presigned-expires"]||"");var o=this.canonicalizedAmzHeaders();return o&&n.push(o),n.push(this.canonicalizedResource()),n.join("\n")},canonicalizedAmzHeaders:function(){var r=[];a.util.each(this.request.headers,function(o){o.match(/^x-amz-/i)&&r.push(o)}),r.sort(function(o,l){return o.toLowerCase()<l.toLowerCase()?-1:1});var n=[];return a.util.arrayEach.call(this,r,function(o){n.push(o.toLowerCase()+":"+String(this.request.headers[o]))}),n.join("\n")},canonicalizedResource:function(){var r=this.request,n=r.path.split("?"),l=n[1],e="";if(r.virtualHostedBucket&&(e+="/"+r.virtualHostedBucket),e+=n[0],l){var i=[];a.util.arrayEach.call(this,l.split("&"),function(h){var d=h.split("=")[0],g=h.split("=")[1];if(this.subResources[d]||this.responseHeaders[d]){var b={name:d};void 0!==g&&(b.value=this.subResources[d]?g:decodeURIComponent(g)),i.push(b)}}),i.sort(function(h,d){return h.name<d.name?-1:1}),i.length&&(l=[],a.util.arrayEach(i,function(h){l.push(void 0===h.value?h.name:h.name+"="+h.value)}),e+="?"+l.join("&"))}return e},sign:function(r,n){return a.util.crypto.hmac(r,n,"base64","sha1")}}),le.exports=a.Signers.S3},5497:(le,k,y)=>{var a=y(86462);a.Signers.V2=(0,a.util.inherit)(a.Signers.RequestSigner,{addAuthorization:function(r,n){n||(n=a.util.date.getDate());var o=this.request;o.params.Timestamp=a.util.date.iso8601(n),o.params.SignatureVersion="2",o.params.SignatureMethod="HmacSHA256",o.params.AWSAccessKeyId=r.accessKeyId,r.sessionToken&&(o.params.SecurityToken=r.sessionToken),delete o.params.Signature,o.params.Signature=this.signature(r),o.body=a.util.queryParamsToString(o.params),o.headers["Content-Length"]=o.body.length},signature:function(r){return a.util.crypto.hmac(r.secretAccessKey,this.stringToSign(),"base64")},stringToSign:function(){var r=[];return r.push(this.request.method),r.push(this.request.endpoint.host.toLowerCase()),r.push(this.request.pathname()),r.push(a.util.queryParamsToString(this.request.params)),r.join("\n")}}),le.exports=a.Signers.V2},33449:(le,k,y)=>{var a=y(86462);a.Signers.V3=(0,a.util.inherit)(a.Signers.RequestSigner,{addAuthorization:function(r,n){var o=a.util.date.rfc822(n);this.request.headers["X-Amz-Date"]=o,r.sessionToken&&(this.request.headers["x-amz-security-token"]=r.sessionToken),this.request.headers["X-Amzn-Authorization"]=this.authorization(r,o)},authorization:function(r){return"AWS3 AWSAccessKeyId="+r.accessKeyId+",Algorithm=HmacSHA256,SignedHeaders="+this.signedHeaders()+",Signature="+this.signature(r)},signedHeaders:function(){var r=[];return a.util.arrayEach(this.headersToSign(),function(o){r.push(o.toLowerCase())}),r.sort().join(";")},canonicalHeaders:function(){var r=this.request.headers,n=[];return a.util.arrayEach(this.headersToSign(),function(l){n.push(l.toLowerCase().trim()+":"+String(r[l]).trim())}),n.sort().join("\n")+"\n"},headersToSign:function(){var r=[];return a.util.each(this.request.headers,function(o){("Host"===o||"Content-Encoding"===o||o.match(/^X-Amz/i))&&r.push(o)}),r},signature:function(r){return a.util.crypto.hmac(r.secretAccessKey,this.stringToSign(),"base64")},stringToSign:function(){var r=[];return r.push(this.request.method),r.push("/"),r.push(""),r.push(this.canonicalHeaders()),r.push(this.request.body),a.util.crypto.sha256(r.join("\n"))}}),le.exports=a.Signers.V3},53806:(le,k,y)=>{var a=y(86462),O=a.util.inherit;y(33449),a.Signers.V3Https=O(a.Signers.V3,{authorization:function(r){return"AWS3-HTTPS AWSAccessKeyId="+r.accessKeyId+",Algorithm=HmacSHA256,Signature="+this.signature(r)},stringToSign:function(){return this.request.headers["X-Amz-Date"]}}),le.exports=a.Signers.V3Https},14682:(le,k,y)=>{var a=y(86462),O=y(34330),r="presigned-expires";a.Signers.V4=(0,a.util.inherit)(a.Signers.RequestSigner,{constructor:function(o,l,e){a.Signers.RequestSigner.call(this,o),this.serviceName=l,this.signatureCache="boolean"!=typeof(e=e||{}).signatureCache||e.signatureCache,this.operation=e.operation,this.signatureVersion=e.signatureVersion},algorithm:"AWS4-HMAC-SHA256",addAuthorization:function(o,l){var e=a.util.date.iso8601(l).replace(/[:\-]|\.\d{3}/g,"");this.isPresigned()?this.updateForPresigned(o,e):this.addHeaders(o,e),this.request.headers.Authorization=this.authorization(o,e)},addHeaders:function(o,l){this.request.headers["X-Amz-Date"]=l,o.sessionToken&&(this.request.headers["x-amz-security-token"]=o.sessionToken)},updateForPresigned:function(o,l){var e=this.credentialString(l),i={"X-Amz-Date":l,"X-Amz-Algorithm":this.algorithm,"X-Amz-Credential":o.accessKeyId+"/"+e,"X-Amz-Expires":this.request.headers[r],"X-Amz-SignedHeaders":this.signedHeaders()};o.sessionToken&&(i["X-Amz-Security-Token"]=o.sessionToken),this.request.headers["Content-Type"]&&(i["Content-Type"]=this.request.headers["Content-Type"]),this.request.headers["Content-MD5"]&&(i["Content-MD5"]=this.request.headers["Content-MD5"]),this.request.headers["Cache-Control"]&&(i["Cache-Control"]=this.request.headers["Cache-Control"]),a.util.each.call(this,this.request.headers,function(d,g){if(d!==r&&this.isSignableHeader(d)){var b=d.toLowerCase();0===b.indexOf("x-amz-meta-")?i[b]=g:0===b.indexOf("x-amz-")&&(i[d]=g)}});var h=this.request.path.indexOf("?")>=0?"&":"?";this.request.path+=h+a.util.queryParamsToString(i)},authorization:function(o,l){var e=[],i=this.credentialString(l);return e.push(this.algorithm+" Credential="+o.accessKeyId+"/"+i),e.push("SignedHeaders="+this.signedHeaders()),e.push("Signature="+this.signature(o,l)),e.join(", ")},signature:function(o,l){var e=O.getSigningKey(o,l.substr(0,8),this.request.region,this.serviceName,this.signatureCache);return a.util.crypto.hmac(e,this.stringToSign(l),"hex")},stringToSign:function(o){var l=[];return l.push("AWS4-HMAC-SHA256"),l.push(o),l.push(this.credentialString(o)),l.push(this.hexEncodedHash(this.canonicalString())),l.join("\n")},canonicalString:function(){var o=[],l=this.request.pathname();return"s3"!==this.serviceName&&"s3v4"!==this.signatureVersion&&(l=a.util.uriEscapePath(l)),o.push(this.request.method),o.push(l),o.push(this.request.search()),o.push(this.canonicalHeaders()+"\n"),o.push(this.signedHeaders()),o.push(this.hexEncodedBodyHash()),o.join("\n")},canonicalHeaders:function(){var o=[];a.util.each.call(this,this.request.headers,function(e,i){o.push([e,i])}),o.sort(function(e,i){return e[0].toLowerCase()<i[0].toLowerCase()?-1:1});var l=[];return a.util.arrayEach.call(this,o,function(e){var i=e[0].toLowerCase();if(this.isSignableHeader(i)){var h=e[1];if(typeof h>"u"||null===h||"function"!=typeof h.toString)throw a.util.error(new Error("Header "+i+" contains invalid value"),{code:"InvalidHeader"});l.push(i+":"+this.canonicalHeaderValues(h.toString()))}}),l.join("\n")},canonicalHeaderValues:function(o){return o.replace(/\s+/g," ").replace(/^\s+|\s+$/g,"")},signedHeaders:function(){var o=[];return a.util.each.call(this,this.request.headers,function(l){l=l.toLowerCase(),this.isSignableHeader(l)&&o.push(l)}),o.sort().join(";")},credentialString:function(o){return O.createScope(o.substr(0,8),this.request.region,this.serviceName)},hexEncodedHash:function(o){return a.util.crypto.sha256(o,"hex")},hexEncodedBodyHash:function(){var o=this.request;return this.isPresigned()&&["s3","s3-object-lambda"].indexOf(this.serviceName)>-1&&!o.body?"UNSIGNED-PAYLOAD":o.headers["X-Amz-Content-Sha256"]?o.headers["X-Amz-Content-Sha256"]:this.hexEncodedHash(this.request.body||"")},unsignableHeaders:["authorization","content-type","content-length","user-agent",r,"expect","x-amzn-trace-id"],isSignableHeader:function(o){return 0===o.toLowerCase().indexOf("x-amz-")||this.unsignableHeaders.indexOf(o)<0},isPresigned:function(){return!!this.request.headers[r]}}),le.exports=a.Signers.V4},34330:(le,k,y)=>{var a=y(86462),O={},m=[],n="aws4_request";le.exports={createScope:function(l,e,i){return[l.substr(0,8),e,i,n].join("/")},getSigningKey:function(l,e,i,h,d){var b=[a.util.crypto.hmac(l.secretAccessKey,l.accessKeyId,"base64"),e,i,h].join("_");if((d=!1!==d)&&b in O)return O[b];var T=a.util.crypto.hmac("AWS4"+l.secretAccessKey,e,"buffer"),M=a.util.crypto.hmac(T,i,"buffer"),R=a.util.crypto.hmac(M,h,"buffer"),x=a.util.crypto.hmac(R,n,"buffer");return d&&(O[b]=x,m.push(b),m.length>50&&delete O[m.shift()]),x},emptyCache:function(){O={},m=[]}}},45481:le=>{function k(y,a){this.currentState=a||null,this.states=y||{}}k.prototype.runTo=function(a,O,m,r){"function"==typeof a&&(r=m,m=O,O=a,a=null);var n=this,o=n.states[n.currentState];o.fn.call(m||n,r,function(l){if(l){if(!o.fail)return O?O.call(m,l):null;n.currentState=o.fail}else{if(!o.accept)return O?O.call(m):null;n.currentState=o.accept}if(n.currentState===a)return O?O.call(m,l):null;n.runTo(a,O,m,l)})},k.prototype.addState=function(a,O,m,r){return"function"==typeof O?(r=O,O=null,m=null):"function"==typeof m&&(r=m,m=null),this.currentState||(this.currentState=a),this.states[a]={accept:O,fail:m,fn:r},this},le.exports=k},49229:(le,k,y)=>{var a,O={environment:"nodejs",engine:function(){if(O.isBrowser()&&typeof navigator<"u")return navigator.userAgent;var r=process.platform+"/"+process.version;return process.env.AWS_EXECUTION_ENV&&(r+=" exec-env/"+process.env.AWS_EXECUTION_ENV),r},userAgent:function(){var r=O.environment,n="aws-sdk-"+r+"/"+y(86462).VERSION;return"nodejs"===r&&(n+=" "+O.engine()),n},uriEscape:function(r){var n=encodeURIComponent(r);return(n=n.replace(/[^A-Za-z0-9_.~\-%]+/g,escape)).replace(/[*]/g,function(o){return"%"+o.charCodeAt(0).toString(16).toUpperCase()})},uriEscapePath:function(r){var n=[];return O.arrayEach(r.split("/"),function(o){n.push(O.uriEscape(o))}),n.join("/")},urlParse:function(r){return O.url.parse(r)},urlFormat:function(r){return O.url.format(r)},queryStringParse:function(r){return O.querystring.parse(r)},queryParamsToString:function(r){var n=[],o=O.uriEscape,l=Object.keys(r).sort();return O.arrayEach(l,function(e){var i=r[e],h=o(e),d=h+"=";if(Array.isArray(i)){var g=[];O.arrayEach(i,function(b){g.push(o(b))}),d=h+"="+g.sort().join("&"+h+"=")}else null!=i&&(d=h+"="+o(i));n.push(d)}),n.join("&")},readFileSync:function(r){return O.isBrowser()?null:y(47310).readFileSync(r,"utf-8")},base64:{encode:function(r){if("number"==typeof r)throw O.error(new Error("Cannot base64 encode number "+r));return null===r||typeof r>"u"?r:O.buffer.toBuffer(r).toString("base64")},decode:function(r){if("number"==typeof r)throw O.error(new Error("Cannot base64 decode number "+r));return null===r||typeof r>"u"?r:O.buffer.toBuffer(r,"base64")}},buffer:{toBuffer:function(m,r){return"function"==typeof O.Buffer.from&&O.Buffer.from!==Uint8Array.from?O.Buffer.from(m,r):new O.Buffer(m,r)},alloc:function(m,r,n){if("number"!=typeof m)throw new Error("size passed to alloc must be a number.");if("function"==typeof O.Buffer.alloc)return O.Buffer.alloc(m,r,n);var o=new O.Buffer(m);return void 0!==r&&"function"==typeof o.fill&&o.fill(r,void 0,void 0,n),o},toStream:function(r){O.Buffer.isBuffer(r)||(r=O.buffer.toBuffer(r));var n=new O.stream.Readable,o=0;return n._read=function(l){if(o>=r.length)return n.push(null);var e=o+l;e>r.length&&(e=r.length),n.push(r.slice(o,e)),o=e},n},concat:function(m){var o,l,r=0,n=0;for(l=0;l<m.length;l++)r+=m[l].length;for(o=O.buffer.alloc(r),l=0;l<m.length;l++)m[l].copy(o,n),n+=m[l].length;return o}},string:{byteLength:function(r){if(null==r)return 0;if("string"==typeof r&&(r=O.buffer.toBuffer(r)),"number"==typeof r.byteLength)return r.byteLength;if("number"==typeof r.length)return r.length;if("number"==typeof r.size)return r.size;if("string"==typeof r.path)return y(47310).lstatSync(r.path).size;throw O.error(new Error("Cannot determine length of "+r),{object:r})},upperFirst:function(r){return r[0].toUpperCase()+r.substr(1)},lowerFirst:function(r){return r[0].toLowerCase()+r.substr(1)}},ini:{parse:function(r){var n,o={};return O.arrayEach(r.split(/\r?\n/),function(l){if("["===(l=l.split(/(^|\s)[;#]/)[0].trim())[0]&&"]"===l[l.length-1]){if("__proto__"===(n=l.substring(1,l.length-1))||"__proto__"===n.split(/\s/)[1])throw O.error(new Error("Cannot load profile name '"+n+"' from shared ini file."))}else if(n){var i=l.indexOf("=");if(-1!==i&&0!==i&&i!==l.length-1){var b=l.substring(0,i).trim(),T=l.substring(i+1).trim();o[n]=o[n]||{},o[n][b]=T}}}),o}},fn:{noop:function(){},callback:function(m){if(m)throw m},makeAsync:function(r,n){return n&&n<=r.length?r:function(){var o=Array.prototype.slice.call(arguments,0);o.pop()(r.apply(null,o))}}},date:{getDate:function(){return a||(a=y(86462)),a.config.systemClockOffset?new Date((new Date).getTime()+a.config.systemClockOffset):new Date},iso8601:function(r){return void 0===r&&(r=O.date.getDate()),r.toISOString().replace(/\.\d{3}Z$/,"Z")},rfc822:function(r){return void 0===r&&(r=O.date.getDate()),r.toUTCString()},unixTimestamp:function(r){return void 0===r&&(r=O.date.getDate()),r.getTime()/1e3},from:function(r){return"number"==typeof r?new Date(1e3*r):new Date(r)},format:function(r,n){return n||(n="iso8601"),O.date[n](O.date.from(r))},parseTimestamp:function(r){if("number"==typeof r)return new Date(1e3*r);if(r.match(/^\d+$/))return new Date(1e3*r);if(r.match(/^\d{4}/))return new Date(r);if(r.match(/^\w{3},/))return new Date(r);throw O.error(new Error("unhandled timestamp format: "+r),{code:"TimestampParserError"})}},crypto:{crc32Table:[0,1996959894,3993919788,2567524794,124634137,1886057615,3915621685,2657392035,249268274,2044508324,3772115230,2547177864,162941995,2125561021,3887607047,2428444049,498536548,1789927666,4089016648,2227061214,450548861,1843258603,4107580753,2211677639,325883990,1684777152,4251122042,2321926636,335633487,1661365465,4195302755,2366115317,997073096,1281953886,3579855332,2724688242,1006888145,1258607687,3524101629,2768942443,901097722,1119000684,3686517206,2898065728,853044451,1172266101,3705015759,2882616665,651767980,1373503546,3369554304,3218104598,565507253,1454621731,3485111705,3099436303,671266974,1594198024,3322730930,2970347812,795835527,1483230225,3244367275,3060149565,1994146192,31158534,2563907772,4023717930,1907459465,112637215,2680153253,3904427059,2013776290,251722036,2517215374,3775830040,2137656763,141376813,2439277719,3865271297,1802195444,476864866,2238001368,4066508878,1812370925,453092731,2181625025,4111451223,1706088902,314042704,2344532202,4240017532,1658658271,366619977,2362670323,4224994405,1303535960,984961486,2747007092,3569037538,1256170817,1037604311,2765210733,3554079995,1131014506,879679996,2909243462,3663771856,1141124467,855842277,2852801631,3708648649,1342533948,654459306,3188396048,3373015174,1466479909,544179635,3110523913,3462522015,1591671054,702138776,2966460450,3352799412,1504918807,783551873,3082640443,3233442989,3988292384,2596254646,62317068,1957810842,3939845945,2647816111,81470997,1943803523,3814918930,2489596804,225274430,2053790376,3826175755,2466906013,167816743,2097651377,4027552580,2265490386,503444072,1762050814,4150417245,2154129355,426522225,1852507879,4275313526,2312317920,282753626,1742555852,4189708143,2394877945,397917763,1622183637,3604390888,2714866558,953729732,1340076626,3518719985,2797360999,1068828381,1219638859,3624741850,2936675148,906185462,1090812512,3747672003,2825379669,829329135,1181335161,3412177804,3160834842,628085408,1382605366,3423369109,3138078467,570562233,1426400815,3317316542,2998733608,733239954,1555261956,3268935591,3050360625,752459403,1541320221,2607071920,3965973030,1969922972,40735498,2617837225,3943577151,1913087877,83908371,2512341634,3803740692,2075208622,213261112,2463272603,3855990285,2094854071,198958881,2262029012,4057260610,1759359992,534414190,2176718541,4139329115,1873836001,414664567,2282248934,4279200368,1711684554,285281116,2405801727,4167216745,1634467795,376229701,2685067896,3608007406,1308918612,956543938,2808555105,3495958263,1231636301,1047427035,2932959818,3654703836,1088359270,936918e3,2847714899,3736837829,1202900863,817233897,3183342108,3401237130,1404277552,615818150,3134207493,3453421203,1423857449,601450431,3009837614,3294710456,1567103746,711928724,3020668471,3272380065,1510334235,755167117],crc32:function(r){var n=O.crypto.crc32Table,o=-1;"string"==typeof r&&(r=O.buffer.toBuffer(r));for(var l=0;l<r.length;l++)o=o>>>8^n[255&(o^r.readUInt8(l))];return(-1^o)>>>0},hmac:function(r,n,o,l){return o||(o="binary"),"buffer"===o&&(o=void 0),l||(l="sha256"),"string"==typeof n&&(n=O.buffer.toBuffer(n)),O.crypto.lib.createHmac(l,r).update(n).digest(o)},md5:function(r,n,o){return O.crypto.hash("md5",r,n,o)},sha256:function(r,n,o){return O.crypto.hash("sha256",r,n,o)},hash:function(m,r,n,o){var l=O.crypto.createHash(m);n||(n="binary"),"buffer"===n&&(n=void 0),"string"==typeof r&&(r=O.buffer.toBuffer(r));var e=O.arraySliceFn(r),i=O.Buffer.isBuffer(r);if(O.isBrowser()&&typeof ArrayBuffer<"u"&&r&&r.buffer instanceof ArrayBuffer&&(i=!0),o&&"object"==typeof r&&"function"==typeof r.on&&!i)r.on("data",function(T){l.update(T)}),r.on("error",function(T){o(T)}),r.on("end",function(){o(null,l.digest(n))});else{if(!(o&&e&&!i&&typeof FileReader<"u")){O.isBrowser()&&"object"==typeof r&&!i&&(r=new O.Buffer(new Uint8Array(r)));var b=l.update(r).digest(n);return o&&o(null,b),b}var h=0,g=new FileReader;g.onerror=function(){o(new Error("Failed to read data."))},g.onload=function(){var T=new O.Buffer(new Uint8Array(g.result));l.update(T),h+=T.length,g._continueReading()},g._continueReading=function(){if(h>=r.size)o(null,l.digest(n));else{var T=h+524288;T>r.size&&(T=r.size),g.readAsArrayBuffer(e.call(r,h,T))}},g._continueReading()}},toHex:function(r){for(var n=[],o=0;o<r.length;o++)n.push(("0"+r.charCodeAt(o).toString(16)).substr(-2,2));return n.join("")},createHash:function(r){return O.crypto.lib.createHash(r)}},abort:{},each:function(r,n){for(var o in r)if(Object.prototype.hasOwnProperty.call(r,o)&&n.call(this,o,r[o])===O.abort)break},arrayEach:function(r,n){for(var o in r)if(Object.prototype.hasOwnProperty.call(r,o)&&n.call(this,r[o],parseInt(o,10))===O.abort)break},update:function(r,n){return O.each(n,function(l,e){r[l]=e}),r},merge:function(r,n){return O.update(O.copy(r),n)},copy:function(r){if(null==r)return r;var n={};for(var o in r)n[o]=r[o];return n},isEmpty:function(r){for(var n in r)if(Object.prototype.hasOwnProperty.call(r,n))return!1;return!0},arraySliceFn:function(r){var n=r.slice||r.webkitSlice||r.mozSlice;return"function"==typeof n?n:null},isType:function(r,n){return"function"==typeof n&&(n=O.typeName(n)),Object.prototype.toString.call(r)==="[object "+n+"]"},typeName:function(r){if(Object.prototype.hasOwnProperty.call(r,"name"))return r.name;var n=r.toString(),o=n.match(/^\s*function (.+)\(/);return o?o[1]:n},error:function(r,n){var o=null;return"string"==typeof r.message&&""!==r.message&&("string"==typeof n||n&&n.message)&&((o=O.copy(r)).message=r.message),r.message=r.message||null,"string"==typeof n?r.message=n:"object"==typeof n&&null!==n&&(O.update(r,n),n.message&&(r.message=n.message),(n.code||n.name)&&(r.code=n.code||n.name),n.stack&&(r.stack=n.stack)),"function"==typeof Object.defineProperty&&(Object.defineProperty(r,"name",{writable:!0,enumerable:!1}),Object.defineProperty(r,"message",{enumerable:!0})),r.name=String(n&&n.name||r.name||r.code||"Error"),r.time=new Date,o&&(r.originalError=o),r},inherit:function(r,n){var o=null;if(void 0===n)n=r,r=Object,o={};else{var l=function(){};l.prototype=r.prototype,o=new l}return n.constructor===Object&&(n.constructor=function(){if(r!==Object)return r.apply(this,arguments)}),n.constructor.prototype=o,O.update(n.constructor.prototype,n),n.constructor.__super__=r,n.constructor},mixin:function(){for(var r=arguments[0],n=1;n<arguments.length;n++)for(var o in arguments[n].prototype)"constructor"!==o&&(r.prototype[o]=arguments[n].prototype[o]);return r},hideProperties:function(r,n){"function"==typeof Object.defineProperty&&O.arrayEach(n,function(o){Object.defineProperty(r,o,{enumerable:!1,writable:!0,configurable:!0})})},property:function(r,n,o,l,e){var i={configurable:!0,enumerable:void 0===l||l};"function"!=typeof o||e?(i.value=o,i.writable=!0):i.get=o,Object.defineProperty(r,n,i)},memoizedProperty:function(r,n,o,l){var e=null;O.property(r,n,function(){return null===e&&(e=o()),e},l)},hoistPayloadMember:function(r){var n=r.request,l=n.service.api.operations[n.operation],e=l.output;e.payload&&!l.hasEventOutput&&"structure"===e.members[e.payload].type&&O.each(r.data[e.payload],function(d,g){O.property(r.data,d,g,!1)})},computeSha256:function(r,n){if(O.isNode()){var o=O.stream.Stream,l=y(47310);if("function"==typeof o&&r instanceof o){if("string"!=typeof r.path)return n(new Error("Non-file stream objects are not supported with SigV4"));var e={};"number"==typeof r.start&&(e.start=r.start),"number"==typeof r.end&&(e.end=r.end),r=l.createReadStream(r.path,e)}}O.crypto.sha256(r,"hex",function(i,h){i?n(i):n(null,h)})},isClockSkewed:function(r){if(r)return O.property(a.config,"isClockSkewed",Math.abs((new Date).getTime()-r)>=3e5,!1),a.config.isClockSkewed},applyClockOffset:function(r){r&&(a.config.systemClockOffset=r-(new Date).getTime())},extractRequestId:function(r){var n=r.httpResponse.headers["x-amz-request-id"]||r.httpResponse.headers["x-amzn-requestid"];!n&&r.data&&r.data.ResponseMetadata&&(n=r.data.ResponseMetadata.RequestId),n&&(r.requestId=n),r.error&&(r.error.requestId=n)},addPromises:function(r,n){var o=!1;void 0===n&&a&&a.config&&(n=a.config.getPromisesDependency()),void 0===n&&typeof Promise<"u"&&(n=Promise),"function"!=typeof n&&(o=!0),Array.isArray(r)||(r=[r]);for(var l=0;l<r.length;l++){var e=r[l];o?e.deletePromisesFromClass&&e.deletePromisesFromClass():e.addPromisesToClass&&e.addPromisesToClass(n)}},promisifyMethod:function(r,n){return function(){var l=this,e=Array.prototype.slice.call(arguments);return new n(function(i,h){e.push(function(d,g){d?h(d):i(g)}),l[r].apply(l,e)})}},isDualstackAvailable:function(r){if(!r)return!1;var n=y(6839);return"string"!=typeof r&&(r=r.serviceIdentifier),!("string"!=typeof r||!n.hasOwnProperty(r)||!n[r].dualstackAvailable)},calculateRetryDelay:function(r,n,o){n||(n={});var l=n.customBackoff||null;if("function"==typeof l)return l(r,o);var e="number"==typeof n.base?n.base:100;return Math.random()*(Math.pow(2,r)*e)},handleRequestWithRetries:function(r,n,o){n||(n={});var l=a.HttpClient.getInstance(),e=n.httpOptions||{},i=0,h=function(g){var b=n.maxRetries||0;if(g&&"TimeoutError"===g.code&&(g.retryable=!0),g&&g.retryable&&i<b){var T=O.calculateRetryDelay(i,n.retryDelayOptions,g);if(T>=0)return i++,void setTimeout(d,T+(g.retryAfter||0))}o(g)},d=function(){var g="";l.handleRequest(r,e,function(b){b.on("data",function(T){g+=T.toString()}),b.on("end",function(){var T=b.statusCode;if(T<300)o(null,g);else{var M=1e3*parseInt(b.headers["retry-after"],10)||0,R=O.error(new Error,{statusCode:T,retryable:T>=500||429===T});M&&R.retryable&&(R.retryAfter=M),h(R)}})},h)};a.util.defer(d)},uuid:{v4:function(){return y(74521).v4()}},convertPayloadToString:function(r){var n=r.request,l=n.service.api.operations[n.operation].output||{};l.payload&&r.data[l.payload]&&(r.data[l.payload]=r.data[l.payload].toString())},defer:function(r){"object"==typeof process&&"function"==typeof process.nextTick?process.nextTick(r):"function"==typeof setImmediate?setImmediate(r):setTimeout(r,0)},getRequestPayloadShape:function(r){var n=r.service.api.operations;if(n){var o=(n||{})[r.operation];if(o&&o.input&&o.input.payload)return o.input.members[o.input.payload]}},getProfilesFromSharedConfig:function(r,n){var o={},l={};process.env[O.configOptInEnv]&&(l=r.loadFrom({isConfig:!0,filename:process.env[O.sharedConfigFileEnv]}));var e={};try{e=r.loadFrom({filename:n||process.env[O.configOptInEnv]&&process.env[O.sharedCredentialsFileEnv]})}catch(g){if(!process.env[O.configOptInEnv])throw g}for(var i=0,h=Object.keys(l);i<h.length;i++)o[h[i]]=d(o[h[i]]||{},l[h[i]]);for(i=0,h=Object.keys(e);i<h.length;i++)o[h[i]]=d(o[h[i]]||{},e[h[i]]);return o;function d(g,b){for(var T=0,M=Object.keys(b);T<M.length;T++)g[M[T]]=b[M[T]];return g}},ARN:{validate:function(r){return r&&0===r.indexOf("arn:")&&r.split(":").length>=6},parse:function(r){var n=r.split(":");return{partition:n[1],service:n[2],region:n[3],accountId:n[4],resource:n.slice(5).join(":")}},build:function(r){if(void 0===r.service||void 0===r.region||void 0===r.accountId||void 0===r.resource)throw O.error(new Error("Input ARN object is invalid"));return"arn:"+(r.partition||"aws")+":"+r.service+":"+r.region+":"+r.accountId+":"+r.resource}},defaultProfile:"default",configOptInEnv:"AWS_SDK_LOAD_CONFIG",sharedCredentialsFileEnv:"AWS_SHARED_CREDENTIALS_FILE",sharedConfigFileEnv:"AWS_CONFIG_FILE",imdsDisabledEnv:"AWS_EC2_METADATA_DISABLED"};le.exports=O},73972:(le,k,y)=>{var a=y(49229),O=y(65454);function m(){}function r(d,g){for(var b=d.getElementsByTagName(g),T=0,M=b.length;T<M;T++)if(b[T].parentNode===d)return b[T]}function n(d,g){switch(g||(g={}),g.type){case"structure":return o(d,g);case"map":return function l(d,g){for(var b={},T=g.key.name||"key",M=g.value.name||"value",R=g.flattened?g.name:"entry",x=d.firstElementChild;x;){if(x.nodeName===R){var P=r(x,T).textContent,W=r(x,M);b[P]=n(W,g.value)}x=x.nextElementSibling}return b}(d,g);case"list":return function e(d,g){for(var b=[],T=g.flattened?g.name:g.member.name||"member",M=d.firstElementChild;M;)M.nodeName===T&&b.push(n(M,g.member)),M=M.nextElementSibling;return b}(d,g);case void 0:case null:return function h(d){if(null==d)return"";if(!d.firstElementChild)return null===d.parentNode.parentNode?{}:0===d.childNodes.length?"":d.textContent;for(var g={type:"structure",members:{}},b=d.firstElementChild;b;){var T=b.nodeName;Object.prototype.hasOwnProperty.call(g.members,T)?g.members[T].type="list":g.members[T]={name:T},b=b.nextElementSibling}return o(d,g)}(d);default:return function i(d,g){if(d.getAttribute){var b=d.getAttribute("encoding");"base64"===b&&(g=new O.create({type:b}))}var T=d.textContent;return""===T&&(T=null),"function"==typeof g.toType?g.toType(T):T}(d,g)}}function o(d,g){var b={};return null===d||a.each(g.members,function(T,M){if(M.isXmlAttribute)Object.prototype.hasOwnProperty.call(d.attributes,M.name)&&(b[T]=n({textContent:d.attributes[M.name].value},M));else{var x=M.flattened?d:r(d,M.name);x?b[T]=n(x,M):!M.flattened&&"list"===M.type&&!g.api.xmlNoDefaultLists&&(b[T]=M.defaultValue)}}),b}m.prototype.parse=function(d,g){if(""===d.replace(/^\s+/,""))return{};var b,T;try{if(window.DOMParser){try{b=(new DOMParser).parseFromString(d,"text/xml")}catch(V){throw a.error(new Error("Parse error in document"),{originalError:V,code:"XMLParserError",retryable:!0})}if(null===b.documentElement)throw a.error(new Error("Cannot parse empty document."),{code:"XMLParserError",retryable:!0});var R=b.getElementsByTagName("parsererror")[0];if(R&&(R.parentNode===b||"body"===R.parentNode.nodeName||R.parentNode.parentNode===b||"body"===R.parentNode.parentNode.nodeName)){var x=R.getElementsByTagName("div")[0]||R;throw a.error(new Error(x.textContent||"Parser error in document"),{code:"XMLParserError",retryable:!0})}}else{if(!window.ActiveXObject)throw new Error("Cannot load XML parser");if((b=new window.ActiveXObject("Microsoft.XMLDOM")).async=!1,!b.loadXML(d))throw a.error(new Error("Parse error in document"),{code:"XMLParserError",retryable:!0})}}catch(V){T=V}if(b&&b.documentElement&&!T){var P=n(b.documentElement,g),W=r(b.documentElement,"ResponseMetadata");return W&&(P.ResponseMetadata=n(W,{})),P}if(T)throw a.error(T||new Error,{code:"XMLParserError",retryable:!0});return{}},le.exports=m},31883:(le,k,y)=>{var a=y(49229),O=y(48598).XmlNode,m=y(5115).XmlText;function r(){}function n(d,g,b){switch(b.type){case"structure":return function o(d,g,b){a.arrayEach(b.memberNames,function(T){var M=b.members[T];if("body"===M.location){var R=g[T],x=M.name;if(null!=R)if(M.isXmlAttribute)d.addAttribute(x,R);else if(M.flattened)n(d,R,M);else{var P=new O(x);d.addChildNode(P),h(P,M),n(P,R,M)}}})}(d,g,b);case"map":return function l(d,g,b){var T=b.key.name||"key",M=b.value.name||"value";a.each(g,function(R,x){var P=new O(b.flattened?b.name:"entry");d.addChildNode(P);var W=new O(T),V=new O(M);P.addChildNode(W),P.addChildNode(V),n(W,R,b.key),n(V,x,b.value)})}(d,g,b);case"list":return function e(d,g,b){a.arrayEach(g,b.flattened?function(T){var R=new O(b.member.name||b.name);d.addChildNode(R),n(R,T,b.member)}:function(T){var R=new O(b.member.name||"member");d.addChildNode(R),n(R,T,b.member)})}(d,g,b);default:return function i(d,g,b){d.addChildNode(new m(b.toWireFormat(g)))}(d,g,b)}}function h(d,g,b){var T,M="xmlns";g.xmlNamespaceUri?(T=g.xmlNamespaceUri,g.xmlNamespacePrefix&&(M+=":"+g.xmlNamespacePrefix)):b&&g.api.xmlNamespaceUri&&(T=g.api.xmlNamespaceUri),T&&d.addAttribute(M,T)}r.prototype.toXML=function(d,g,b,T){var M=new O(b);return h(M,g,!0),n(M,d,g),M.children.length>0||T?M.toString():""},le.exports=r},85336:le=>{le.exports={escapeAttribute:function k(y){return y.replace(/&/g,"&amp;").replace(/'/g,"&apos;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;")}}},71886:le=>{le.exports={escapeElement:function k(y){return y.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/\r/g,"&#x0D;").replace(/\n/g,"&#x0A;").replace(/\u0085/g,"&#x85;").replace(/\u2028/,"&#x2028;")}}},48598:(le,k,y)=>{var a=y(85336).escapeAttribute;function O(m,r){void 0===r&&(r=[]),this.name=m,this.children=r,this.attributes={}}O.prototype.addAttribute=function(m,r){return this.attributes[m]=r,this},O.prototype.addChildNode=function(m){return this.children.push(m),this},O.prototype.removeAttribute=function(m){return delete this.attributes[m],this},O.prototype.toString=function(){for(var m=!!this.children.length,r="<"+this.name,n=this.attributes,o=0,l=Object.keys(n);o<l.length;o++){var e=l[o],i=n[e];typeof i<"u"&&null!==i&&(r+=" "+e+'="'+a(""+i)+'"')}return r+(m?">"+this.children.map(function(h){return h.toString()}).join("")+"</"+this.name+">":"/>")},le.exports={XmlNode:O}},5115:(le,k,y)=>{var a=y(71886).escapeElement;function O(m){this.value=m}O.prototype.toString=function(){return a(""+this.value)},le.exports={XmlText:O}},81082:(le,k,y)=>{"use strict";var O=y(13369),m=y(94553),r=y(35169);function o(){return e.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function l(f,A){if(o()<A)throw new RangeError("Invalid typed array length");return e.TYPED_ARRAY_SUPPORT?(f=new Uint8Array(A)).__proto__=e.prototype:(null===f&&(f=new e(A)),f.length=A),f}function e(f,A,I){if(!(e.TYPED_ARRAY_SUPPORT||this instanceof e))return new e(f,A,I);if("number"==typeof f){if("string"==typeof A)throw new Error("If encoding is specified then the first argument must be a string");return g(this,f)}return i(this,f,A,I)}function i(f,A,I,ne){if("number"==typeof A)throw new TypeError('"value" argument must not be a number');return typeof ArrayBuffer<"u"&&A instanceof ArrayBuffer?function M(f,A,I,ne){if(I<0||A.byteLength<I)throw new RangeError("'offset' is out of bounds");if(A.byteLength<I+(ne||0))throw new RangeError("'length' is out of bounds");return A=void 0===I&&void 0===ne?new Uint8Array(A):void 0===ne?new Uint8Array(A,I):new Uint8Array(A,I,ne),e.TYPED_ARRAY_SUPPORT?(f=A).__proto__=e.prototype:f=T(f,A),f}(f,A,I,ne):"string"==typeof A?function b(f,A,I){if(("string"!=typeof I||""===I)&&(I="utf8"),!e.isEncoding(I))throw new TypeError('"encoding" must be a valid string encoding');var ne=0|W(A,I),me=(f=l(f,ne)).write(A,I);return me!==ne&&(f=f.slice(0,me)),f}(f,A,I):function R(f,A){if(e.isBuffer(A)){var I=0|x(A.length);return 0===(f=l(f,I)).length||A.copy(f,0,0,I),f}if(A){if(typeof ArrayBuffer<"u"&&A.buffer instanceof ArrayBuffer||"length"in A)return"number"!=typeof A.length||function w(f){return f!=f}(A.length)?l(f,0):T(f,A);if("Buffer"===A.type&&r(A.data))return T(f,A.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(f,A)}function h(f){if("number"!=typeof f)throw new TypeError('"size" argument must be a number');if(f<0)throw new RangeError('"size" argument must not be negative')}function g(f,A){if(h(A),f=l(f,A<0?0:0|x(A)),!e.TYPED_ARRAY_SUPPORT)for(var I=0;I<A;++I)f[I]=0;return f}function T(f,A){var I=A.length<0?0:0|x(A.length);f=l(f,I);for(var ne=0;ne<I;ne+=1)f[ne]=255&A[ne];return f}function x(f){if(f>=o())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+o().toString(16)+" bytes");return 0|f}function W(f,A){if(e.isBuffer(f))return f.length;if(typeof ArrayBuffer<"u"&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(f)||f instanceof ArrayBuffer))return f.byteLength;"string"!=typeof f&&(f=""+f);var I=f.length;if(0===I)return 0;for(var ne=!1;;)switch(A){case"ascii":case"latin1":case"binary":return I;case"utf8":case"utf-8":case void 0:return Z(f).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*I;case"hex":return I>>>1;case"base64":return Ee(f).length;default:if(ne)return Z(f).length;A=(""+A).toLowerCase(),ne=!0}}function V(f,A,I){var ne=!1;if((void 0===A||A<0)&&(A=0),A>this.length||((void 0===I||I>this.length)&&(I=this.length),I<=0)||(I>>>=0)<=(A>>>=0))return"";for(f||(f="utf8");;)switch(f){case"hex":return ue(this,A,I);case"utf8":case"utf-8":return J(this,A,I);case"ascii":return te(this,A,I);case"latin1":case"binary":return ge(this,A,I);case"base64":return Q(this,A,I);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return H(this,A,I);default:if(ne)throw new TypeError("Unknown encoding: "+f);f=(f+"").toLowerCase(),ne=!0}}function Y(f,A,I){var ne=f[A];f[A]=f[I],f[I]=ne}function j(f,A,I,ne,me){if(0===f.length)return-1;if("string"==typeof I?(ne=I,I=0):I>2147483647?I=2147483647:I<-2147483648&&(I=-2147483648),I=+I,isNaN(I)&&(I=me?0:f.length-1),I<0&&(I=f.length+I),I>=f.length){if(me)return-1;I=f.length-1}else if(I<0){if(!me)return-1;I=0}if("string"==typeof A&&(A=e.from(A,ne)),e.isBuffer(A))return 0===A.length?-1:E(f,A,I,ne,me);if("number"==typeof A)return A&=255,e.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?me?Uint8Array.prototype.indexOf.call(f,A,I):Uint8Array.prototype.lastIndexOf.call(f,A,I):E(f,[A],I,ne,me);throw new TypeError("val must be string, number or Buffer")}function E(f,A,I,ne,me){var _e,Re=1,Pe=f.length,ae=A.length;if(void 0!==ne&&("ucs2"===(ne=String(ne).toLowerCase())||"ucs-2"===ne||"utf16le"===ne||"utf-16le"===ne)){if(f.length<2||A.length<2)return-1;Re=2,Pe/=2,ae/=2,I/=2}function ye(Ke,qe){return 1===Re?Ke[qe]:Ke.readUInt16BE(qe*Re)}if(me){var Ie=-1;for(_e=I;_e<Pe;_e++)if(ye(f,_e)===ye(A,-1===Ie?0:_e-Ie)){if(-1===Ie&&(Ie=_e),_e-Ie+1===ae)return Ie*Re}else-1!==Ie&&(_e-=_e-Ie),Ie=-1}else for(I+ae>Pe&&(I=Pe-ae),_e=I;_e>=0;_e--){for(var Me=!0,je=0;je<ae;je++)if(ye(f,_e+je)!==ye(A,je)){Me=!1;break}if(Me)return _e}return-1}function C(f,A,I,ne){I=Number(I)||0;var me=f.length-I;ne?(ne=Number(ne))>me&&(ne=me):ne=me;var Re=A.length;if(Re%2!=0)throw new TypeError("Invalid hex string");ne>Re/2&&(ne=Re/2);for(var Pe=0;Pe<ne;++Pe){var ae=parseInt(A.substr(2*Pe,2),16);if(isNaN(ae))return Pe;f[I+Pe]=ae}return Pe}function p(f,A,I,ne){return K(Z(A,f.length-I),f,I,ne)}function _(f,A,I,ne){return K(function de(f){for(var A=[],I=0;I<f.length;++I)A.push(255&f.charCodeAt(I));return A}(A),f,I,ne)}function v(f,A,I,ne){return _(f,A,I,ne)}function F(f,A,I,ne){return K(Ee(A),f,I,ne)}function q(f,A,I,ne){return K(function he(f,A){for(var I,ne,Re=[],Pe=0;Pe<f.length&&!((A-=2)<0);++Pe)ne=(I=f.charCodeAt(Pe))>>8,Re.push(I%256),Re.push(ne);return Re}(A,f.length-I),f,I,ne)}function Q(f,A,I){return O.fromByteArray(0===A&&I===f.length?f:f.slice(A,I))}function J(f,A,I){I=Math.min(f.length,I);for(var ne=[],me=A;me<I;){var ye,_e,Ie,Me,Re=f[me],Pe=null,ae=Re>239?4:Re>223?3:Re>191?2:1;if(me+ae<=I)switch(ae){case 1:Re<128&&(Pe=Re);break;case 2:128==(192&(ye=f[me+1]))&&(Me=(31&Re)<<6|63&ye)>127&&(Pe=Me);break;case 3:_e=f[me+2],128==(192&(ye=f[me+1]))&&128==(192&_e)&&(Me=(15&Re)<<12|(63&ye)<<6|63&_e)>2047&&(Me<55296||Me>57343)&&(Pe=Me);break;case 4:_e=f[me+2],Ie=f[me+3],128==(192&(ye=f[me+1]))&&128==(192&_e)&&128==(192&Ie)&&(Me=(15&Re)<<18|(63&ye)<<12|(63&_e)<<6|63&Ie)>65535&&Me<1114112&&(Pe=Me)}null===Pe?(Pe=65533,ae=1):Pe>65535&&(ne.push((Pe-=65536)>>>10&1023|55296),Pe=56320|1023&Pe),ne.push(Pe),me+=ae}return function Se(f){var A=f.length;if(A<=ie)return String.fromCharCode.apply(String,f);for(var I="",ne=0;ne<A;)I+=String.fromCharCode.apply(String,f.slice(ne,ne+=ie));return I}(ne)}k.lW=e,k.h2=50,e.TYPED_ARRAY_SUPPORT=void 0!==global.TYPED_ARRAY_SUPPORT?global.TYPED_ARRAY_SUPPORT:function n(){try{var f=new Uint8Array(1);return f.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===f.foo()&&"function"==typeof f.subarray&&0===f.subarray(1,1).byteLength}catch{return!1}}(),o(),e.poolSize=8192,e._augment=function(f){return f.__proto__=e.prototype,f},e.from=function(f,A,I){return i(null,f,A,I)},e.TYPED_ARRAY_SUPPORT&&(e.prototype.__proto__=Uint8Array.prototype,e.__proto__=Uint8Array,typeof Symbol<"u"&&Symbol.species&&e[Symbol.species]===e&&Object.defineProperty(e,Symbol.species,{value:null,configurable:!0})),e.alloc=function(f,A,I){return function d(f,A,I,ne){return h(A),A<=0?l(f,A):void 0!==I?"string"==typeof ne?l(f,A).fill(I,ne):l(f,A).fill(I):l(f,A)}(null,f,A,I)},e.allocUnsafe=function(f){return g(null,f)},e.allocUnsafeSlow=function(f){return g(null,f)},e.isBuffer=function(A){return!(null==A||!A._isBuffer)},e.compare=function(A,I){if(!e.isBuffer(A)||!e.isBuffer(I))throw new TypeError("Arguments must be Buffers");if(A===I)return 0;for(var ne=A.length,me=I.length,Re=0,Pe=Math.min(ne,me);Re<Pe;++Re)if(A[Re]!==I[Re]){ne=A[Re],me=I[Re];break}return ne<me?-1:me<ne?1:0},e.isEncoding=function(A){switch(String(A).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},e.concat=function(A,I){if(!r(A))throw new TypeError('"list" argument must be an Array of Buffers');if(0===A.length)return e.alloc(0);var ne;if(void 0===I)for(I=0,ne=0;ne<A.length;++ne)I+=A[ne].length;var me=e.allocUnsafe(I),Re=0;for(ne=0;ne<A.length;++ne){var Pe=A[ne];if(!e.isBuffer(Pe))throw new TypeError('"list" argument must be an Array of Buffers');Pe.copy(me,Re),Re+=Pe.length}return me},e.byteLength=W,e.prototype._isBuffer=!0,e.prototype.swap16=function(){var A=this.length;if(A%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var I=0;I<A;I+=2)Y(this,I,I+1);return this},e.prototype.swap32=function(){var A=this.length;if(A%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var I=0;I<A;I+=4)Y(this,I,I+3),Y(this,I+1,I+2);return this},e.prototype.swap64=function(){var A=this.length;if(A%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var I=0;I<A;I+=8)Y(this,I,I+7),Y(this,I+1,I+6),Y(this,I+2,I+5),Y(this,I+3,I+4);return this},e.prototype.toString=function(){var A=0|this.length;return 0===A?"":0===arguments.length?J(this,0,A):V.apply(this,arguments)},e.prototype.equals=function(A){if(!e.isBuffer(A))throw new TypeError("Argument must be a Buffer");return this===A||0===e.compare(this,A)},e.prototype.inspect=function(){var A="",I=k.h2;return this.length>0&&(A=this.toString("hex",0,I).match(/.{2}/g).join(" "),this.length>I&&(A+=" ... ")),"<Buffer "+A+">"},e.prototype.compare=function(A,I,ne,me,Re){if(!e.isBuffer(A))throw new TypeError("Argument must be a Buffer");if(void 0===I&&(I=0),void 0===ne&&(ne=A?A.length:0),void 0===me&&(me=0),void 0===Re&&(Re=this.length),I<0||ne>A.length||me<0||Re>this.length)throw new RangeError("out of range index");if(me>=Re&&I>=ne)return 0;if(me>=Re)return-1;if(I>=ne)return 1;if(this===A)return 0;for(var Pe=(Re>>>=0)-(me>>>=0),ae=(ne>>>=0)-(I>>>=0),ye=Math.min(Pe,ae),_e=this.slice(me,Re),Ie=A.slice(I,ne),Me=0;Me<ye;++Me)if(_e[Me]!==Ie[Me]){Pe=_e[Me],ae=Ie[Me];break}return Pe<ae?-1:ae<Pe?1:0},e.prototype.includes=function(A,I,ne){return-1!==this.indexOf(A,I,ne)},e.prototype.indexOf=function(A,I,ne){return j(this,A,I,ne,!0)},e.prototype.lastIndexOf=function(A,I,ne){return j(this,A,I,ne,!1)},e.prototype.write=function(A,I,ne,me){if(void 0===I)me="utf8",ne=this.length,I=0;else if(void 0===ne&&"string"==typeof I)me=I,ne=this.length,I=0;else{if(!isFinite(I))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");I|=0,isFinite(ne)?(ne|=0,void 0===me&&(me="utf8")):(me=ne,ne=void 0)}var Re=this.length-I;if((void 0===ne||ne>Re)&&(ne=Re),A.length>0&&(ne<0||I<0)||I>this.length)throw new RangeError("Attempt to write outside buffer bounds");me||(me="utf8");for(var Pe=!1;;)switch(me){case"hex":return C(this,A,I,ne);case"utf8":case"utf-8":return p(this,A,I,ne);case"ascii":return _(this,A,I,ne);case"latin1":case"binary":return v(this,A,I,ne);case"base64":return F(this,A,I,ne);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return q(this,A,I,ne);default:if(Pe)throw new TypeError("Unknown encoding: "+me);me=(""+me).toLowerCase(),Pe=!0}},e.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var ie=4096;function te(f,A,I){var ne="";I=Math.min(f.length,I);for(var me=A;me<I;++me)ne+=String.fromCharCode(127&f[me]);return ne}function ge(f,A,I){var ne="";I=Math.min(f.length,I);for(var me=A;me<I;++me)ne+=String.fromCharCode(f[me]);return ne}function ue(f,A,I){var ne=f.length;(!A||A<0)&&(A=0),(!I||I<0||I>ne)&&(I=ne);for(var me="",Re=A;Re<I;++Re)me+=be(f[Re]);return me}function H(f,A,I){for(var ne=f.slice(A,I),me="",Re=0;Re<ne.length;Re+=2)me+=String.fromCharCode(ne[Re]+256*ne[Re+1]);return me}function $(f,A,I){if(f%1!=0||f<0)throw new RangeError("offset is not uint");if(f+A>I)throw new RangeError("Trying to access beyond buffer length")}function oe(f,A,I,ne,me,Re){if(!e.isBuffer(f))throw new TypeError('"buffer" argument must be a Buffer instance');if(A>me||A<Re)throw new RangeError('"value" argument is out of bounds');if(I+ne>f.length)throw new RangeError("Index out of range")}function ee(f,A,I,ne){A<0&&(A=65535+A+1);for(var me=0,Re=Math.min(f.length-I,2);me<Re;++me)f[I+me]=(A&255<<8*(ne?me:1-me))>>>8*(ne?me:1-me)}function L(f,A,I,ne){A<0&&(A=4294967295+A+1);for(var me=0,Re=Math.min(f.length-I,4);me<Re;++me)f[I+me]=A>>>8*(ne?me:3-me)&255}function S(f,A,I,ne,me,Re){if(I+ne>f.length)throw new RangeError("Index out of range");if(I<0)throw new RangeError("Index out of range")}function B(f,A,I,ne,me){return me||S(f,0,I,4),m.write(f,A,I,ne,23,4),I+4}function G(f,A,I,ne,me){return me||S(f,0,I,8),m.write(f,A,I,ne,52,8),I+8}e.prototype.slice=function(A,I){var me,ne=this.length;if((A=~~A)<0?(A+=ne)<0&&(A=0):A>ne&&(A=ne),(I=void 0===I?ne:~~I)<0?(I+=ne)<0&&(I=0):I>ne&&(I=ne),I<A&&(I=A),e.TYPED_ARRAY_SUPPORT)(me=this.subarray(A,I)).__proto__=e.prototype;else{var Re=I-A;me=new e(Re,void 0);for(var Pe=0;Pe<Re;++Pe)me[Pe]=this[Pe+A]}return me},e.prototype.readUIntLE=function(A,I,ne){A|=0,I|=0,ne||$(A,I,this.length);for(var me=this[A],Re=1,Pe=0;++Pe<I&&(Re*=256);)me+=this[A+Pe]*Re;return me},e.prototype.readUIntBE=function(A,I,ne){A|=0,I|=0,ne||$(A,I,this.length);for(var me=this[A+--I],Re=1;I>0&&(Re*=256);)me+=this[A+--I]*Re;return me},e.prototype.readUInt8=function(A,I){return I||$(A,1,this.length),this[A]},e.prototype.readUInt16LE=function(A,I){return I||$(A,2,this.length),this[A]|this[A+1]<<8},e.prototype.readUInt16BE=function(A,I){return I||$(A,2,this.length),this[A]<<8|this[A+1]},e.prototype.readUInt32LE=function(A,I){return I||$(A,4,this.length),(this[A]|this[A+1]<<8|this[A+2]<<16)+16777216*this[A+3]},e.prototype.readUInt32BE=function(A,I){return I||$(A,4,this.length),16777216*this[A]+(this[A+1]<<16|this[A+2]<<8|this[A+3])},e.prototype.readIntLE=function(A,I,ne){A|=0,I|=0,ne||$(A,I,this.length);for(var me=this[A],Re=1,Pe=0;++Pe<I&&(Re*=256);)me+=this[A+Pe]*Re;return me>=(Re*=128)&&(me-=Math.pow(2,8*I)),me},e.prototype.readIntBE=function(A,I,ne){A|=0,I|=0,ne||$(A,I,this.length);for(var me=I,Re=1,Pe=this[A+--me];me>0&&(Re*=256);)Pe+=this[A+--me]*Re;return Pe>=(Re*=128)&&(Pe-=Math.pow(2,8*I)),Pe},e.prototype.readInt8=function(A,I){return I||$(A,1,this.length),128&this[A]?-1*(255-this[A]+1):this[A]},e.prototype.readInt16LE=function(A,I){I||$(A,2,this.length);var ne=this[A]|this[A+1]<<8;return 32768&ne?4294901760|ne:ne},e.prototype.readInt16BE=function(A,I){I||$(A,2,this.length);var ne=this[A+1]|this[A]<<8;return 32768&ne?4294901760|ne:ne},e.prototype.readInt32LE=function(A,I){return I||$(A,4,this.length),this[A]|this[A+1]<<8|this[A+2]<<16|this[A+3]<<24},e.prototype.readInt32BE=function(A,I){return I||$(A,4,this.length),this[A]<<24|this[A+1]<<16|this[A+2]<<8|this[A+3]},e.prototype.readFloatLE=function(A,I){return I||$(A,4,this.length),m.read(this,A,!0,23,4)},e.prototype.readFloatBE=function(A,I){return I||$(A,4,this.length),m.read(this,A,!1,23,4)},e.prototype.readDoubleLE=function(A,I){return I||$(A,8,this.length),m.read(this,A,!0,52,8)},e.prototype.readDoubleBE=function(A,I){return I||$(A,8,this.length),m.read(this,A,!1,52,8)},e.prototype.writeUIntLE=function(A,I,ne,me){A=+A,I|=0,ne|=0,me||oe(this,A,I,ne,Math.pow(2,8*ne)-1,0);var Pe=1,ae=0;for(this[I]=255&A;++ae<ne&&(Pe*=256);)this[I+ae]=A/Pe&255;return I+ne},e.prototype.writeUIntBE=function(A,I,ne,me){A=+A,I|=0,ne|=0,me||oe(this,A,I,ne,Math.pow(2,8*ne)-1,0);var Pe=ne-1,ae=1;for(this[I+Pe]=255&A;--Pe>=0&&(ae*=256);)this[I+Pe]=A/ae&255;return I+ne},e.prototype.writeUInt8=function(A,I,ne){return A=+A,I|=0,ne||oe(this,A,I,1,255,0),e.TYPED_ARRAY_SUPPORT||(A=Math.floor(A)),this[I]=255&A,I+1},e.prototype.writeUInt16LE=function(A,I,ne){return A=+A,I|=0,ne||oe(this,A,I,2,65535,0),e.TYPED_ARRAY_SUPPORT?(this[I]=255&A,this[I+1]=A>>>8):ee(this,A,I,!0),I+2},e.prototype.writeUInt16BE=function(A,I,ne){return A=+A,I|=0,ne||oe(this,A,I,2,65535,0),e.TYPED_ARRAY_SUPPORT?(this[I]=A>>>8,this[I+1]=255&A):ee(this,A,I,!1),I+2},e.prototype.writeUInt32LE=function(A,I,ne){return A=+A,I|=0,ne||oe(this,A,I,4,4294967295,0),e.TYPED_ARRAY_SUPPORT?(this[I+3]=A>>>24,this[I+2]=A>>>16,this[I+1]=A>>>8,this[I]=255&A):L(this,A,I,!0),I+4},e.prototype.writeUInt32BE=function(A,I,ne){return A=+A,I|=0,ne||oe(this,A,I,4,4294967295,0),e.TYPED_ARRAY_SUPPORT?(this[I]=A>>>24,this[I+1]=A>>>16,this[I+2]=A>>>8,this[I+3]=255&A):L(this,A,I,!1),I+4},e.prototype.writeIntLE=function(A,I,ne,me){if(A=+A,I|=0,!me){var Re=Math.pow(2,8*ne-1);oe(this,A,I,ne,Re-1,-Re)}var Pe=0,ae=1,ye=0;for(this[I]=255&A;++Pe<ne&&(ae*=256);)A<0&&0===ye&&0!==this[I+Pe-1]&&(ye=1),this[I+Pe]=(A/ae>>0)-ye&255;return I+ne},e.prototype.writeIntBE=function(A,I,ne,me){if(A=+A,I|=0,!me){var Re=Math.pow(2,8*ne-1);oe(this,A,I,ne,Re-1,-Re)}var Pe=ne-1,ae=1,ye=0;for(this[I+Pe]=255&A;--Pe>=0&&(ae*=256);)A<0&&0===ye&&0!==this[I+Pe+1]&&(ye=1),this[I+Pe]=(A/ae>>0)-ye&255;return I+ne},e.prototype.writeInt8=function(A,I,ne){return A=+A,I|=0,ne||oe(this,A,I,1,127,-128),e.TYPED_ARRAY_SUPPORT||(A=Math.floor(A)),A<0&&(A=255+A+1),this[I]=255&A,I+1},e.prototype.writeInt16LE=function(A,I,ne){return A=+A,I|=0,ne||oe(this,A,I,2,32767,-32768),e.TYPED_ARRAY_SUPPORT?(this[I]=255&A,this[I+1]=A>>>8):ee(this,A,I,!0),I+2},e.prototype.writeInt16BE=function(A,I,ne){return A=+A,I|=0,ne||oe(this,A,I,2,32767,-32768),e.TYPED_ARRAY_SUPPORT?(this[I]=A>>>8,this[I+1]=255&A):ee(this,A,I,!1),I+2},e.prototype.writeInt32LE=function(A,I,ne){return A=+A,I|=0,ne||oe(this,A,I,4,2147483647,-2147483648),e.TYPED_ARRAY_SUPPORT?(this[I]=255&A,this[I+1]=A>>>8,this[I+2]=A>>>16,this[I+3]=A>>>24):L(this,A,I,!0),I+4},e.prototype.writeInt32BE=function(A,I,ne){return A=+A,I|=0,ne||oe(this,A,I,4,2147483647,-2147483648),A<0&&(A=4294967295+A+1),e.TYPED_ARRAY_SUPPORT?(this[I]=A>>>24,this[I+1]=A>>>16,this[I+2]=A>>>8,this[I+3]=255&A):L(this,A,I,!1),I+4},e.prototype.writeFloatLE=function(A,I,ne){return B(this,A,I,!0,ne)},e.prototype.writeFloatBE=function(A,I,ne){return B(this,A,I,!1,ne)},e.prototype.writeDoubleLE=function(A,I,ne){return G(this,A,I,!0,ne)},e.prototype.writeDoubleBE=function(A,I,ne){return G(this,A,I,!1,ne)},e.prototype.copy=function(A,I,ne,me){if(ne||(ne=0),!me&&0!==me&&(me=this.length),I>=A.length&&(I=A.length),I||(I=0),me>0&&me<ne&&(me=ne),me===ne||0===A.length||0===this.length)return 0;if(I<0)throw new RangeError("targetStart out of bounds");if(ne<0||ne>=this.length)throw new RangeError("sourceStart out of bounds");if(me<0)throw new RangeError("sourceEnd out of bounds");me>this.length&&(me=this.length),A.length-I<me-ne&&(me=A.length-I+ne);var Pe,Re=me-ne;if(this===A&&ne<I&&I<me)for(Pe=Re-1;Pe>=0;--Pe)A[Pe+I]=this[Pe+ne];else if(Re<1e3||!e.TYPED_ARRAY_SUPPORT)for(Pe=0;Pe<Re;++Pe)A[Pe+I]=this[Pe+ne];else Uint8Array.prototype.set.call(A,this.subarray(ne,ne+Re),I);return Re},e.prototype.fill=function(A,I,ne,me){if("string"==typeof A){if("string"==typeof I?(me=I,I=0,ne=this.length):"string"==typeof ne&&(me=ne,ne=this.length),1===A.length){var Re=A.charCodeAt(0);Re<256&&(A=Re)}if(void 0!==me&&"string"!=typeof me)throw new TypeError("encoding must be a string");if("string"==typeof me&&!e.isEncoding(me))throw new TypeError("Unknown encoding: "+me)}else"number"==typeof A&&(A&=255);if(I<0||this.length<I||this.length<ne)throw new RangeError("Out of range index");if(ne<=I)return this;var Pe;if(I>>>=0,ne=void 0===ne?this.length:ne>>>0,A||(A=0),"number"==typeof A)for(Pe=I;Pe<ne;++Pe)this[Pe]=A;else{var ae=e.isBuffer(A)?A:Z(new e(A,me).toString()),ye=ae.length;for(Pe=0;Pe<ne-I;++Pe)this[Pe+I]=ae[Pe%ye]}return this};var U=/[^+\/0-9A-Za-z-_]/g;function be(f){return f<16?"0"+f.toString(16):f.toString(16)}function Z(f,A){A=A||1/0;for(var I,ne=f.length,me=null,Re=[],Pe=0;Pe<ne;++Pe){if((I=f.charCodeAt(Pe))>55295&&I<57344){if(!me){if(I>56319){(A-=3)>-1&&Re.push(239,191,189);continue}if(Pe+1===ne){(A-=3)>-1&&Re.push(239,191,189);continue}me=I;continue}if(I<56320){(A-=3)>-1&&Re.push(239,191,189),me=I;continue}I=65536+(me-55296<<10|I-56320)}else me&&(A-=3)>-1&&Re.push(239,191,189);if(me=null,I<128){if((A-=1)<0)break;Re.push(I)}else if(I<2048){if((A-=2)<0)break;Re.push(I>>6|192,63&I|128)}else if(I<65536){if((A-=3)<0)break;Re.push(I>>12|224,I>>6&63|128,63&I|128)}else{if(!(I<1114112))throw new Error("Invalid code point");if((A-=4)<0)break;Re.push(I>>18|240,I>>12&63|128,I>>6&63|128,63&I|128)}}return Re}function Ee(f){return O.toByteArray(function re(f){if((f=function ce(f){return f.trim?f.trim():f.replace(/^\s+|\s+$/g,"")}(f).replace(U,"")).length<2)return"";for(;f.length%4!=0;)f+="=";return f}(f))}function K(f,A,I,ne){for(var me=0;me<ne&&!(me+I>=A.length||me>=f.length);++me)A[me+I]=f[me];return me}},94553:(le,k)=>{k.read=function(y,a,O,m,r){var n,o,l=8*r-m-1,e=(1<<l)-1,i=e>>1,h=-7,d=O?r-1:0,g=O?-1:1,b=y[a+d];for(d+=g,n=b&(1<<-h)-1,b>>=-h,h+=l;h>0;n=256*n+y[a+d],d+=g,h-=8);for(o=n&(1<<-h)-1,n>>=-h,h+=m;h>0;o=256*o+y[a+d],d+=g,h-=8);if(0===n)n=1-i;else{if(n===e)return o?NaN:1/0*(b?-1:1);o+=Math.pow(2,m),n-=i}return(b?-1:1)*o*Math.pow(2,n-m)},k.write=function(y,a,O,m,r,n){var o,l,e,i=8*n-r-1,h=(1<<i)-1,d=h>>1,g=23===r?Math.pow(2,-24)-Math.pow(2,-77):0,b=m?0:n-1,T=m?1:-1,M=a<0||0===a&&1/a<0?1:0;for(a=Math.abs(a),isNaN(a)||a===1/0?(l=isNaN(a)?1:0,o=h):(o=Math.floor(Math.log(a)/Math.LN2),a*(e=Math.pow(2,-o))<1&&(o--,e*=2),(a+=o+d>=1?g/e:g*Math.pow(2,1-d))*e>=2&&(o++,e/=2),o+d>=h?(l=0,o=h):o+d>=1?(l=(a*e-1)*Math.pow(2,r),o+=d):(l=a*Math.pow(2,d-1)*Math.pow(2,r),o=0));r>=8;y[O+b]=255&l,b+=T,l/=256,r-=8);for(o=o<<r|l,i+=r;i>0;y[O+b]=255&o,b+=T,o/=256,i-=8);y[O+b-T]|=128*M}},90599:le=>{function k(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0}function y(r){return"function"==typeof r}function O(r){return"object"==typeof r&&null!==r}function m(r){return void 0===r}le.exports=k,k.EventEmitter=k,k.prototype._events=void 0,k.prototype._maxListeners=void 0,k.defaultMaxListeners=10,k.prototype.setMaxListeners=function(r){if(!function a(r){return"number"==typeof r}(r)||r<0||isNaN(r))throw TypeError("n must be a positive number");return this._maxListeners=r,this},k.prototype.emit=function(r){var n,o,l,e,i,h;if(this._events||(this._events={}),"error"===r&&(!this._events.error||O(this._events.error)&&!this._events.error.length)){if((n=arguments[1])instanceof Error)throw n;var d=new Error('Uncaught, unspecified "error" event. ('+n+")");throw d.context=n,d}if(m(o=this._events[r]))return!1;if(y(o))switch(arguments.length){case 1:o.call(this);break;case 2:o.call(this,arguments[1]);break;case 3:o.call(this,arguments[1],arguments[2]);break;default:e=Array.prototype.slice.call(arguments,1),o.apply(this,e)}else if(O(o))for(e=Array.prototype.slice.call(arguments,1),l=(h=o.slice()).length,i=0;i<l;i++)h[i].apply(this,e);return!0},k.prototype.on=k.prototype.addListener=function(r,n){var o;if(!y(n))throw TypeError("listener must be a function");return this._events||(this._events={}),this._events.newListener&&this.emit("newListener",r,y(n.listener)?n.listener:n),this._events[r]?O(this._events[r])?this._events[r].push(n):this._events[r]=[this._events[r],n]:this._events[r]=n,O(this._events[r])&&!this._events[r].warned&&(o=m(this._maxListeners)?k.defaultMaxListeners:this._maxListeners)&&o>0&&this._events[r].length>o&&(this._events[r].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[r].length),"function"==typeof console.trace&&console.trace()),this},k.prototype.once=function(r,n){if(!y(n))throw TypeError("listener must be a function");var o=!1;function l(){this.removeListener(r,l),o||(o=!0,n.apply(this,arguments))}return l.listener=n,this.on(r,l),this},k.prototype.removeListener=function(r,n){var o,l,e,i;if(!y(n))throw TypeError("listener must be a function");if(!this._events||!this._events[r])return this;if(e=(o=this._events[r]).length,l=-1,o===n||y(o.listener)&&o.listener===n)delete this._events[r],this._events.removeListener&&this.emit("removeListener",r,n);else if(O(o)){for(i=e;i-- >0;)if(o[i]===n||o[i].listener&&o[i].listener===n){l=i;break}if(l<0)return this;1===o.length?(o.length=0,delete this._events[r]):o.splice(l,1),this._events.removeListener&&this.emit("removeListener",r,n)}return this},k.prototype.removeAllListeners=function(r){var n,o;if(!this._events)return this;if(!this._events.removeListener)return 0===arguments.length?this._events={}:this._events[r]&&delete this._events[r],this;if(0===arguments.length){for(n in this._events)"removeListener"!==n&&this.removeAllListeners(n);return this.removeAllListeners("removeListener"),this._events={},this}if(y(o=this._events[r]))this.removeListener(r,o);else if(o)for(;o.length;)this.removeListener(r,o[o.length-1]);return delete this._events[r],this},k.prototype.listeners=function(r){return this._events&&this._events[r]?y(this._events[r])?[this._events[r]]:this._events[r].slice():[]},k.prototype.listenerCount=function(r){if(this._events){var n=this._events[r];if(y(n))return 1;if(n)return n.length}return 0},k.listenerCount=function(r,n){return r.listenerCount(n)}},84989:function(le,k,y){var a;le=y.nmd(le),function(O){"object"==typeof global&&global;var o,l=2147483647,e=36,h=26,d=38,g=700,R=/^xn--/,x=/[^\x20-\x7E]/,P=/[\x2E\u3002\uFF0E\uFF61]/g,W={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},V=e-1,Y=Math.floor,j=String.fromCharCode;function C(ue){throw RangeError(W[ue])}function p(ue,H){for(var $=ue.length,oe=[];$--;)oe[$]=H(ue[$]);return oe}function _(ue,H){var $=ue.split("@"),oe="";return $.length>1&&(oe=$[0]+"@",ue=$[1]),oe+p((ue=ue.replace(P,".")).split("."),H).join(".")}function v(ue){for(var ee,L,H=[],$=0,oe=ue.length;$<oe;)(ee=ue.charCodeAt($++))>=55296&&ee<=56319&&$<oe?56320==(64512&(L=ue.charCodeAt($++)))?H.push(((1023&ee)<<10)+(1023&L)+65536):(H.push(ee),$--):H.push(ee);return H}function F(ue){return p(ue,function(H){var $="";return H>65535&&($+=j((H-=65536)>>>10&1023|55296),H=56320|1023&H),$+j(H)}).join("")}function q(ue){return ue-48<10?ue-22:ue-65<26?ue-65:ue-97<26?ue-97:e}function Q(ue,H){return ue+22+75*(ue<26)-((0!=H)<<5)}function J(ue,H,$){var oe=0;for(ue=$?Y(ue/g):ue>>1,ue+=Y(ue/H);ue>V*h>>1;oe+=e)ue=Y(ue/V);return Y(oe+(V+1)*ue/(ue+d))}function ie(ue){var oe,B,G,U,re,ce,be,Z,de,he,H=[],$=ue.length,ee=0,L=128,S=72;for((B=ue.lastIndexOf("-"))<0&&(B=0),G=0;G<B;++G)ue.charCodeAt(G)>=128&&C("not-basic"),H.push(ue.charCodeAt(G));for(U=B>0?B+1:0;U<$;){for(re=ee,ce=1,be=e;U>=$&&C("invalid-input"),((Z=q(ue.charCodeAt(U++)))>=e||Z>Y((l-ee)/ce))&&C("overflow"),ee+=Z*ce,!(Z<(de=be<=S?1:be>=S+h?h:be-S));be+=e)ce>Y(l/(he=e-de))&&C("overflow"),ce*=he;S=J(ee-re,oe=H.length+1,0==re),Y(ee/oe)>l-L&&C("overflow"),L+=Y(ee/oe),ee%=oe,H.splice(ee++,0,L)}return F(H)}function Se(ue){var H,$,oe,ee,L,S,B,G,U,re,ce,Z,de,he,Ee,be=[];for(Z=(ue=v(ue)).length,H=128,$=0,L=72,S=0;S<Z;++S)(ce=ue[S])<128&&be.push(j(ce));for(oe=ee=be.length,ee&&be.push("-");oe<Z;){for(B=l,S=0;S<Z;++S)(ce=ue[S])>=H&&ce<B&&(B=ce);for(B-H>Y((l-$)/(de=oe+1))&&C("overflow"),$+=(B-H)*de,H=B,S=0;S<Z;++S)if((ce=ue[S])<H&&++$>l&&C("overflow"),ce==H){for(G=$,U=e;!(G<(re=U<=L?1:U>=L+h?h:U-L));U+=e)be.push(j(Q(re+(Ee=G-re)%(he=e-re),0))),G=Y(Ee/he);be.push(j(Q(G,0))),L=J($,de,oe==ee),$=0,++oe}++$,++H}return be.join("")}o={version:"1.3.2",ucs2:{decode:v,encode:F},decode:ie,encode:Se,toASCII:function ge(ue){return _(ue,function(H){return x.test(H)?"xn--"+Se(H):H})},toUnicode:function te(ue){return _(ue,function(H){return R.test(H)?ie(H.slice(4).toLowerCase()):H})}},void 0!==(a=function(){return o}.call(k,y,k,le))&&(le.exports=a)}()},63570:(le,k,y)=>{var a=y(84989);function O(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}k.parse=x,k.resolve=function W(p,_){return x(p,!1,!0).resolve(_)},k.resolveObject=function V(p,_){return p?x(p,!1,!0).resolveObject(_):_},k.format=function P(p){return Y(p)&&(p=x(p)),p instanceof O?p.format():O.prototype.format.call(p)},k.Url=O;var m=/^([a-z0-9.+-]+:)/i,r=/:[0-9]*$/,o=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),l=["'"].concat(o),e=["%","/","?",";","#"].concat(l),i=["/","?","#"],d=/^[a-z0-9A-Z_-]{0,63}$/,g=/^([a-z0-9A-Z_-]{0,63})(.*)$/,b={javascript:!0,"javascript:":!0},T={javascript:!0,"javascript:":!0},M={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},R=y(19446);function x(p,_,v){if(p&&j(p)&&p instanceof O)return p;var F=new O;return F.parse(p,_,v),F}function Y(p){return"string"==typeof p}function j(p){return"object"==typeof p&&null!==p}function E(p){return null===p}O.prototype.parse=function(p,_,v){if(!Y(p))throw new TypeError("Parameter 'url' must be a string, not "+typeof p);var F=p;F=F.trim();var q=m.exec(F);if(q){var Q=(q=q[0]).toLowerCase();this.protocol=Q,F=F.substr(q.length)}if(v||q||F.match(/^\/\/[^@\/]+@[^@\/]+/)){var J="//"===F.substr(0,2);J&&(!q||!T[q])&&(F=F.substr(2),this.slashes=!0)}if(!T[q]&&(J||q&&!M[q])){for(var ie=-1,Se=0;Se<i.length;Se++)-1!==(te=F.indexOf(i[Se]))&&(-1===ie||te<ie)&&(ie=te);var ge,ue;for(-1!==(ue=-1===ie?F.lastIndexOf("@"):F.lastIndexOf("@",ie))&&(ge=F.slice(0,ue),F=F.slice(ue+1),this.auth=decodeURIComponent(ge)),ie=-1,Se=0;Se<e.length;Se++){var te;-1!==(te=F.indexOf(e[Se]))&&(-1===ie||te<ie)&&(ie=te)}-1===ie&&(ie=F.length),this.host=F.slice(0,ie),F=F.slice(ie),this.parseHost(),this.hostname=this.hostname||"";var H="["===this.hostname[0]&&"]"===this.hostname[this.hostname.length-1];if(!H)for(var $=this.hostname.split(/\./),oe=(Se=0,$.length);Se<oe;Se++){var ee=$[Se];if(ee&&!ee.match(d)){for(var L="",S=0,B=ee.length;S<B;S++)ee.charCodeAt(S)>127?L+="x":L+=ee[S];if(!L.match(d)){var G=$.slice(0,Se),U=$.slice(Se+1),re=ee.match(g);re&&(G.push(re[1]),U.unshift(re[2])),U.length&&(F="/"+U.join(".")+F),this.hostname=G.join(".");break}}}if(this.hostname=this.hostname.length>255?"":this.hostname.toLowerCase(),!H){var ce=this.hostname.split("."),be=[];for(Se=0;Se<ce.length;++Se)be.push((Z=ce[Se]).match(/[^A-Za-z0-9_-]/)?"xn--"+a.encode(Z):Z);this.hostname=be.join(".")}this.host=(this.hostname||"")+(this.port?":"+this.port:""),this.href+=this.host,H&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==F[0]&&(F="/"+F))}if(!b[Q])for(Se=0,oe=l.length;Se<oe;Se++){var Ee=l[Se],K=encodeURIComponent(Ee);K===Ee&&(K=escape(Ee)),F=F.split(Ee).join(K)}var w=F.indexOf("#");-1!==w&&(this.hash=F.substr(w),F=F.slice(0,w));var Z,f=F.indexOf("?");return-1!==f?(this.search=F.substr(f),this.query=F.substr(f+1),_&&(this.query=R.parse(this.query)),F=F.slice(0,f)):_&&(this.search="",this.query={}),F&&(this.pathname=F),M[Q]&&this.hostname&&!this.pathname&&(this.pathname="/"),(this.pathname||this.search)&&(this.path=(this.pathname||"")+(Z=this.search||"")),this.href=this.format(),this},O.prototype.format=function(){var p=this.auth||"";p&&(p=(p=encodeURIComponent(p)).replace(/%3A/i,":"),p+="@");var _=this.protocol||"",v=this.pathname||"",F=this.hash||"",q=!1,Q="";this.host?q=p+this.host:this.hostname&&(q=p+(-1===this.hostname.indexOf(":")?this.hostname:"["+this.hostname+"]"),this.port&&(q+=":"+this.port)),this.query&&j(this.query)&&Object.keys(this.query).length&&(Q=R.stringify(this.query));var J=this.search||Q&&"?"+Q||"";return _&&":"!==_.substr(-1)&&(_+=":"),this.slashes||(!_||M[_])&&!1!==q?(q="//"+(q||""),v&&"/"!==v.charAt(0)&&(v="/"+v)):q||(q=""),F&&"#"!==F.charAt(0)&&(F="#"+F),J&&"?"!==J.charAt(0)&&(J="?"+J),_+q+(v=v.replace(/[?#]/g,function(ie){return encodeURIComponent(ie)}))+(J=J.replace("#","%23"))+F},O.prototype.resolve=function(p){return this.resolveObject(x(p,!1,!0)).format()},O.prototype.resolveObject=function(p){if(Y(p)){var _=new O;_.parse(p,!1,!0),p=_}var v=new O;if(Object.keys(this).forEach(function(B){v[B]=this[B]},this),v.hash=p.hash,""===p.href)return v.href=v.format(),v;if(p.slashes&&!p.protocol)return Object.keys(p).forEach(function(B){"protocol"!==B&&(v[B]=p[B])}),M[v.protocol]&&v.hostname&&!v.pathname&&(v.path=v.pathname="/"),v.href=v.format(),v;if(p.protocol&&p.protocol!==v.protocol){if(!M[p.protocol])return Object.keys(p).forEach(function(B){v[B]=p[B]}),v.href=v.format(),v;if(v.protocol=p.protocol,p.host||T[p.protocol])v.pathname=p.pathname;else{for(var ge=(p.pathname||"").split("/");ge.length&&!(p.host=ge.shift()););p.host||(p.host=""),p.hostname||(p.hostname=""),""!==ge[0]&&ge.unshift(""),ge.length<2&&ge.unshift(""),v.pathname=ge.join("/")}return v.search=p.search,v.query=p.query,v.host=p.host||"",v.auth=p.auth,v.hostname=p.hostname||p.host,v.port=p.port,(v.pathname||v.search)&&(v.path=(v.pathname||"")+(v.search||"")),v.slashes=v.slashes||p.slashes,v.href=v.format(),v}var Q=v.pathname&&"/"===v.pathname.charAt(0),J=p.host||p.pathname&&"/"===p.pathname.charAt(0),ie=J||Q||v.host&&p.pathname,Se=ie,te=v.pathname&&v.pathname.split("/")||[],ue=(ge=p.pathname&&p.pathname.split("/")||[],v.protocol&&!M[v.protocol]);if(ue&&(v.hostname="",v.port=null,v.host&&(""===te[0]?te[0]=v.host:te.unshift(v.host)),v.host="",p.protocol&&(p.hostname=null,p.port=null,p.host&&(""===ge[0]?ge[0]=p.host:ge.unshift(p.host)),p.host=null),ie=ie&&(""===ge[0]||""===te[0])),J)v.host=p.host||""===p.host?p.host:v.host,v.hostname=p.hostname||""===p.hostname?p.hostname:v.hostname,v.search=p.search,v.query=p.query,te=ge;else if(ge.length)te||(te=[]),te.pop(),te=te.concat(ge),v.search=p.search,v.query=p.query;else if(!function C(p){return null==p}(p.search))return ue&&(v.hostname=v.host=te.shift(),(H=!!(v.host&&v.host.indexOf("@")>0)&&v.host.split("@"))&&(v.auth=H.shift(),v.host=v.hostname=H.shift())),v.search=p.search,v.query=p.query,(!E(v.pathname)||!E(v.search))&&(v.path=(v.pathname?v.pathname:"")+(v.search?v.search:"")),v.href=v.format(),v;if(!te.length)return v.pathname=null,v.path=v.search?"/"+v.search:null,v.href=v.format(),v;for(var $=te.slice(-1)[0],oe=(v.host||p.host)&&("."===$||".."===$)||""===$,ee=0,L=te.length;L>=0;L--)"."==($=te[L])?te.splice(L,1):".."===$?(te.splice(L,1),ee++):ee&&(te.splice(L,1),ee--);if(!ie&&!Se)for(;ee--;ee)te.unshift("..");ie&&""!==te[0]&&(!te[0]||"/"!==te[0].charAt(0))&&te.unshift(""),oe&&"/"!==te.join("/").substr(-1)&&te.push("");var H,S=""===te[0]||te[0]&&"/"===te[0].charAt(0);return ue&&(v.hostname=v.host=S?"":te.length?te.shift():"",(H=!!(v.host&&v.host.indexOf("@")>0)&&v.host.split("@"))&&(v.auth=H.shift(),v.host=v.hostname=H.shift())),(ie=ie||v.host&&te.length)&&!S&&te.unshift(""),te.length?v.pathname=te.join("/"):(v.pathname=null,v.path=null),(!E(v.pathname)||!E(v.search))&&(v.path=(v.pathname?v.pathname:"")+(v.search?v.search:"")),v.auth=p.auth||v.auth,v.slashes=v.slashes||p.slashes,v.href=v.format(),v},O.prototype.parseHost=function(){var p=this.host,_=r.exec(p);_&&(":"!==(_=_[0])&&(this.port=_.substr(1)),p=p.substr(0,p.length-_.length)),p&&(this.hostname=p)}},74379:(le,k)=>{"use strict";Object.defineProperty(k,"__esModule",{value:!0}),k.default=void 0;for(var y=[],a=0;a<256;++a)y[a]=(a+256).toString(16).substr(1);k.default=function O(r,n){var o=n||0;return[y[r[o++]],y[r[o++]],y[r[o++]],y[r[o++]],"-",y[r[o++]],y[r[o++]],"-",y[r[o++]],y[r[o++]],"-",y[r[o++]],y[r[o++]],"-",y[r[o++]],y[r[o++]],y[r[o++]],y[r[o++]],y[r[o++]],y[r[o++]]].join("")}},74521:(le,k,y)=>{"use strict";Object.defineProperty(k,"v4",{enumerable:!0,get:function(){return r.default}});o(y(54432)),o(y(35552));var r=o(y(87658));o(y(87202));function o(l){return l&&l.__esModule?l:{default:l}}},10544:(le,k)=>{"use strict";function r(g,b){var T=(65535&g)+(65535&b);return(g>>16)+(b>>16)+(T>>16)<<16|65535&T}function o(g,b,T,M,R,x){return r(function n(g,b){return g<<b|g>>>32-b}(r(r(b,g),r(M,x)),R),T)}function l(g,b,T,M,R,x,P){return o(b&T|~b&M,g,b,R,x,P)}function e(g,b,T,M,R,x,P){return o(b&M|T&~M,g,b,R,x,P)}function i(g,b,T,M,R,x,P){return o(b^T^M,g,b,R,x,P)}function h(g,b,T,M,R,x,P){return o(T^(b|~M),g,b,R,x,P)}Object.defineProperty(k,"__esModule",{value:!0}),k.default=void 0,k.default=function y(g){if("string"==typeof g){var b=unescape(encodeURIComponent(g));g=new Array(b.length);for(var T=0;T<b.length;T++)g[T]=b.charCodeAt(T)}return function a(g){var b,T,P,M=[],R=32*g.length,x="0123456789abcdef";for(b=0;b<R;b+=8)T=g[b>>5]>>>b%32&255,P=parseInt(x.charAt(T>>>4&15)+x.charAt(15&T),16),M.push(P);return M}(function O(g,b){g[b>>5]|=128<<b%32,g[14+(b+64>>>9<<4)]=b;var T,M,R,x,P,W=1732584193,V=-271733879,Y=-1732584194,j=271733878;for(T=0;T<g.length;T+=16)M=W,R=V,x=Y,P=j,W=l(W,V,Y,j,g[T],7,-680876936),j=l(j,W,V,Y,g[T+1],12,-389564586),Y=l(Y,j,W,V,g[T+2],17,606105819),V=l(V,Y,j,W,g[T+3],22,-1044525330),W=l(W,V,Y,j,g[T+4],7,-176418897),j=l(j,W,V,Y,g[T+5],12,1200080426),Y=l(Y,j,W,V,g[T+6],17,-1473231341),V=l(V,Y,j,W,g[T+7],22,-45705983),W=l(W,V,Y,j,g[T+8],7,1770035416),j=l(j,W,V,Y,g[T+9],12,-1958414417),Y=l(Y,j,W,V,g[T+10],17,-42063),V=l(V,Y,j,W,g[T+11],22,-1990404162),W=l(W,V,Y,j,g[T+12],7,1804603682),j=l(j,W,V,Y,g[T+13],12,-40341101),Y=l(Y,j,W,V,g[T+14],17,-1502002290),W=e(W,V=l(V,Y,j,W,g[T+15],22,1236535329),Y,j,g[T+1],5,-165796510),j=e(j,W,V,Y,g[T+6],9,-1069501632),Y=e(Y,j,W,V,g[T+11],14,643717713),V=e(V,Y,j,W,g[T],20,-373897302),W=e(W,V,Y,j,g[T+5],5,-701558691),j=e(j,W,V,Y,g[T+10],9,38016083),Y=e(Y,j,W,V,g[T+15],14,-660478335),V=e(V,Y,j,W,g[T+4],20,-405537848),W=e(W,V,Y,j,g[T+9],5,568446438),j=e(j,W,V,Y,g[T+14],9,-1019803690),Y=e(Y,j,W,V,g[T+3],14,-187363961),V=e(V,Y,j,W,g[T+8],20,1163531501),W=e(W,V,Y,j,g[T+13],5,-1444681467),j=e(j,W,V,Y,g[T+2],9,-51403784),Y=e(Y,j,W,V,g[T+7],14,1735328473),W=i(W,V=e(V,Y,j,W,g[T+12],20,-1926607734),Y,j,g[T+5],4,-378558),j=i(j,W,V,Y,g[T+8],11,-2022574463),Y=i(Y,j,W,V,g[T+11],16,1839030562),V=i(V,Y,j,W,g[T+14],23,-35309556),W=i(W,V,Y,j,g[T+1],4,-1530992060),j=i(j,W,V,Y,g[T+4],11,1272893353),Y=i(Y,j,W,V,g[T+7],16,-155497632),V=i(V,Y,j,W,g[T+10],23,-1094730640),W=i(W,V,Y,j,g[T+13],4,681279174),j=i(j,W,V,Y,g[T],11,-358537222),Y=i(Y,j,W,V,g[T+3],16,-722521979),V=i(V,Y,j,W,g[T+6],23,76029189),W=i(W,V,Y,j,g[T+9],4,-640364487),j=i(j,W,V,Y,g[T+12],11,-421815835),Y=i(Y,j,W,V,g[T+15],16,530742520),W=h(W,V=i(V,Y,j,W,g[T+2],23,-995338651),Y,j,g[T],6,-198630844),j=h(j,W,V,Y,g[T+7],10,1126891415),Y=h(Y,j,W,V,g[T+14],15,-1416354905),V=h(V,Y,j,W,g[T+5],21,-57434055),W=h(W,V,Y,j,g[T+12],6,1700485571),j=h(j,W,V,Y,g[T+3],10,-1894986606),Y=h(Y,j,W,V,g[T+10],15,-1051523),V=h(V,Y,j,W,g[T+1],21,-2054922799),W=h(W,V,Y,j,g[T+8],6,1873313359),j=h(j,W,V,Y,g[T+15],10,-30611744),Y=h(Y,j,W,V,g[T+6],15,-1560198380),V=h(V,Y,j,W,g[T+13],21,1309151649),W=h(W,V,Y,j,g[T+4],6,-145523070),j=h(j,W,V,Y,g[T+11],10,-1120210379),Y=h(Y,j,W,V,g[T+2],15,718787259),V=h(V,Y,j,W,g[T+9],21,-343485551),W=r(W,M),V=r(V,R),Y=r(Y,x),j=r(j,P);return[W,V,Y,j]}(function m(g){var b,T=[];for(T[(g.length>>2)-1]=void 0,b=0;b<T.length;b+=1)T[b]=0;var M=8*g.length;for(b=0;b<M;b+=8)T[b>>5]|=(255&g[b/8])<<b%32;return T}(g),8*g.length))}},83986:(le,k)=>{"use strict";Object.defineProperty(k,"__esModule",{value:!0}),k.default=function O(){if(!y)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return y(a)};var y=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto<"u"&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto),a=new Uint8Array(16)},71937:(le,k)=>{"use strict";function y(r,n,o,l){switch(r){case 0:return n&o^~n&l;case 1:case 3:return n^o^l;case 2:return n&o^n&l^o&l}}function a(r,n){return r<<n|r>>>32-n}Object.defineProperty(k,"__esModule",{value:!0}),k.default=void 0,k.default=function O(r){var n=[1518500249,1859775393,2400959708,3395469782],o=[1732584193,4023233417,2562383102,271733878,3285377520];if("string"==typeof r){var l=unescape(encodeURIComponent(r));r=new Array(l.length);for(var e=0;e<l.length;e++)r[e]=l.charCodeAt(e)}r.push(128);var h=Math.ceil((r.length/4+2)/16),d=new Array(h);for(e=0;e<h;e++){d[e]=new Array(16);for(var g=0;g<16;g++)d[e][g]=r[64*e+4*g]<<24|r[64*e+4*g+1]<<16|r[64*e+4*g+2]<<8|r[64*e+4*g+3]}for(d[h-1][14]=8*(r.length-1)/Math.pow(2,32),d[h-1][14]=Math.floor(d[h-1][14]),d[h-1][15]=8*(r.length-1)&4294967295,e=0;e<h;e++){for(var b=new Array(80),T=0;T<16;T++)b[T]=d[e][T];for(T=16;T<80;T++)b[T]=a(b[T-3]^b[T-8]^b[T-14]^b[T-16],1);var M=o[0],R=o[1],x=o[2],P=o[3],W=o[4];for(T=0;T<80;T++){var V=Math.floor(T/20),Y=a(M,5)+y(V,R,x,P)+W+n[V]+b[T]>>>0;W=P,P=x,x=a(R,30)>>>0,R=M,M=Y}o[0]=o[0]+M>>>0,o[1]=o[1]+R>>>0,o[2]=o[2]+x>>>0,o[3]=o[3]+P>>>0,o[4]=o[4]+W>>>0}return[o[0]>>24&255,o[0]>>16&255,o[0]>>8&255,255&o[0],o[1]>>24&255,o[1]>>16&255,o[1]>>8&255,255&o[1],o[2]>>24&255,o[2]>>16&255,o[2]>>8&255,255&o[2],o[3]>>24&255,o[3]>>16&255,o[3]>>8&255,255&o[3],o[4]>>24&255,o[4]>>16&255,o[4]>>8&255,255&o[4]]}},54432:(le,k,y)=>{"use strict";Object.defineProperty(k,"__esModule",{value:!0}),k.default=void 0;var a=m(y(83986)),O=m(y(74379));function m(h){return h&&h.__esModule?h:{default:h}}var r,n,o=0,l=0;k.default=function e(h,d,g){var b=d&&g||0,T=d||[],M=(h=h||{}).node||r,R=void 0!==h.clockseq?h.clockseq:n;if(null==M||null==R){var x=h.random||(h.rng||a.default)();null==M&&(M=r=[1|x[0],x[1],x[2],x[3],x[4],x[5]]),null==R&&(R=n=16383&(x[6]<<8|x[7]))}var P=void 0!==h.msecs?h.msecs:(new Date).getTime(),W=void 0!==h.nsecs?h.nsecs:l+1,V=P-o+(W-l)/1e4;if(V<0&&void 0===h.clockseq&&(R=R+1&16383),(V<0||P>o)&&void 0===h.nsecs&&(W=0),W>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");o=P,l=W,n=R;var Y=(1e4*(268435455&(P+=122192928e5))+W)%4294967296;T[b++]=Y>>>24&255,T[b++]=Y>>>16&255,T[b++]=Y>>>8&255,T[b++]=255&Y;var j=P/4294967296*1e4&268435455;T[b++]=j>>>8&255,T[b++]=255&j,T[b++]=j>>>24&15|16,T[b++]=j>>>16&255,T[b++]=R>>>8|128,T[b++]=255&R;for(var E=0;E<6;++E)T[b+E]=M[E];return d||(0,O.default)(T)}},35552:(le,k,y)=>{"use strict";Object.defineProperty(k,"__esModule",{value:!0}),k.default=void 0;var a=m(y(10519)),O=m(y(10544));function m(o){return o&&o.__esModule?o:{default:o}}var n=(0,a.default)("v3",48,O.default);k.default=n},10519:(le,k,y)=>{"use strict";Object.defineProperty(k,"__esModule",{value:!0}),k.default=function l(e,i,h){var d=function(g,b,T,M){var R=T&&M||0;if("string"==typeof g&&(g=function r(e){e=unescape(encodeURIComponent(e));for(var i=new Array(e.length),h=0;h<e.length;h++)i[h]=e.charCodeAt(h);return i}(g)),"string"==typeof b&&(b=function m(e){var i=[];return e.replace(/[a-fA-F0-9]{2}/g,function(h){i.push(parseInt(h,16))}),i}(b)),!Array.isArray(g))throw TypeError("value must be an array of bytes");if(!Array.isArray(b)||16!==b.length)throw TypeError("namespace must be uuid string or an Array of 16 byte values");var x=h(b.concat(g));if(x[6]=15&x[6]|i,x[8]=63&x[8]|128,T)for(var P=0;P<16;++P)T[R+P]=x[P];return T||(0,a.default)(x)};try{d.name=e}catch{}return d.DNS=n,d.URL=o,d},k.URL=k.DNS=void 0;var a=function O(e){return e&&e.__esModule?e:{default:e}}(y(74379));const n="6ba7b810-9dad-11d1-80b4-00c04fd430c8";k.DNS=n;const o="6ba7b811-9dad-11d1-80b4-00c04fd430c8";k.URL=o},87658:(le,k,y)=>{"use strict";Object.defineProperty(k,"__esModule",{value:!0}),k.default=void 0;var a=m(y(83986)),O=m(y(74379));function m(o){return o&&o.__esModule?o:{default:o}}k.default=function r(o,l,e){var i=l&&e||0;"string"==typeof o&&(l="binary"===o?new Array(16):null,o=null);var h=(o=o||{}).random||(o.rng||a.default)();if(h[6]=15&h[6]|64,h[8]=63&h[8]|128,l)for(var d=0;d<16;++d)l[i+d]=h[d];return l||(0,O.default)(h)}},87202:(le,k,y)=>{"use strict";Object.defineProperty(k,"__esModule",{value:!0}),k.default=void 0;var a=m(y(10519)),O=m(y(71937));function m(o){return o&&o.__esModule?o:{default:o}}var n=(0,a.default)("v5",80,O.default);k.default=n},14547:(le,k,y)=>{"use strict";var O=y(67313),r=function(){function n(o){void 0===o&&(o=1e3),this.maxSize=o,this.cache=new O.LRUCache(o)}return Object.defineProperty(n.prototype,"size",{get:function(){return this.cache.length},enumerable:!0,configurable:!0}),n.prototype.put=function(o,l){var e="string"!=typeof o?n.getKeyString(o):o,i=this.populateValue(l);this.cache.put(e,i)},n.prototype.get=function(o){var l="string"!=typeof o?n.getKeyString(o):o,e=Date.now(),i=this.cache.get(l);if(i){for(var h=i.length-1;h>=0;h--)i[h].Expire<e&&i.splice(h,1);if(0===i.length)return void this.cache.remove(l)}return i},n.getKeyString=function(o){for(var l=[],e=Object.keys(o).sort(),i=0;i<e.length;i++){var h=e[i];void 0!==o[h]&&l.push(o[h])}return l.join(" ")},n.prototype.populateValue=function(o){var l=Date.now();return o.map(function(e){return{Address:e.Address||"",Expire:l+60*(e.CachePeriodInMinutes||1)*1e3}})},n.prototype.empty=function(){this.cache.empty()},n.prototype.remove=function(o){var l="string"!=typeof o?n.getKeyString(o):o;this.cache.remove(l)},n}();k.$=r},67313:(le,k)=>{"use strict";Object.defineProperty(k,"__esModule",{value:!0});var y=function O(m,r){this.key=m,this.value=r},a=function(){function O(m){if(this.nodeMap={},this.size=0,"number"!=typeof m||m<1)throw new Error("Cache size can only be positive number");this.sizeLimit=m}return Object.defineProperty(O.prototype,"length",{get:function(){return this.size},enumerable:!0,configurable:!0}),O.prototype.prependToList=function(m){this.headerNode?(this.headerNode.prev=m,m.next=this.headerNode):this.tailNode=m,this.headerNode=m,this.size++},O.prototype.removeFromTail=function(){if(this.tailNode){var m=this.tailNode,r=m.prev;return r&&(r.next=void 0),m.prev=void 0,this.tailNode=r,this.size--,m}},O.prototype.detachFromList=function(m){this.headerNode===m&&(this.headerNode=m.next),this.tailNode===m&&(this.tailNode=m.prev),m.prev&&(m.prev.next=m.next),m.next&&(m.next.prev=m.prev),m.next=void 0,m.prev=void 0,this.size--},O.prototype.get=function(m){if(this.nodeMap[m]){var r=this.nodeMap[m];return this.detachFromList(r),this.prependToList(r),r.value}},O.prototype.remove=function(m){this.nodeMap[m]&&(this.detachFromList(this.nodeMap[m]),delete this.nodeMap[m])},O.prototype.put=function(m,r){if(this.nodeMap[m])this.remove(m);else if(this.size===this.sizeLimit){var n=this.removeFromTail();delete this.nodeMap[n.key]}var l=new y(m,r);this.nodeMap[m]=l,this.prependToList(l)},O.prototype.empty=function(){for(var m=Object.keys(this.nodeMap),r=0;r<m.length;r++){var n=m[r];this.detachFromList(this.nodeMap[n]),delete this.nodeMap[n]}},O}();k.LRUCache=a},13369:(le,k)=>{"use strict";k.byteLength=function l(b){var T=o(b),R=T[1];return 3*(T[0]+R)/4-R},k.toByteArray=function i(b){var T,Y,M=o(b),R=M[0],x=M[1],P=new O(function e(b,T,M){return 3*(T+M)/4-M}(0,R,x)),W=0,V=x>0?R-4:R;for(Y=0;Y<V;Y+=4)T=a[b.charCodeAt(Y)]<<18|a[b.charCodeAt(Y+1)]<<12|a[b.charCodeAt(Y+2)]<<6|a[b.charCodeAt(Y+3)],P[W++]=T>>16&255,P[W++]=T>>8&255,P[W++]=255&T;return 2===x&&(T=a[b.charCodeAt(Y)]<<2|a[b.charCodeAt(Y+1)]>>4,P[W++]=255&T),1===x&&(T=a[b.charCodeAt(Y)]<<10|a[b.charCodeAt(Y+1)]<<4|a[b.charCodeAt(Y+2)]>>2,P[W++]=T>>8&255,P[W++]=255&T),P},k.fromByteArray=function g(b){for(var T,M=b.length,R=M%3,x=[],P=16383,W=0,V=M-R;W<V;W+=P)x.push(d(b,W,W+P>V?V:W+P));return 1===R?x.push(y[(T=b[M-1])>>2]+y[T<<4&63]+"=="):2===R&&x.push(y[(T=(b[M-2]<<8)+b[M-1])>>10]+y[T>>4&63]+y[T<<2&63]+"="),x.join("")};for(var y=[],a=[],O=typeof Uint8Array<"u"?Uint8Array:Array,m="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",r=0;r<64;++r)y[r]=m[r],a[m.charCodeAt(r)]=r;function o(b){var T=b.length;if(T%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var M=b.indexOf("=");return-1===M&&(M=T),[M,M===T?0:4-M%4]}function h(b){return y[b>>18&63]+y[b>>12&63]+y[b>>6&63]+y[63&b]}function d(b,T,M){for(var x=[],P=T;P<M;P+=3)x.push(h((b[P]<<16&16711680)+(b[P+1]<<8&65280)+(255&b[P+2])));return x.join("")}a["-".charCodeAt(0)]=62,a["_".charCodeAt(0)]=63},26149:(le,k,y)=>{"use strict";var O=y(13369),m=y(89255),r="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;k.lW=e,k.h2=50;var n=2147483647;function l(K){if(K>n)throw new RangeError('The value "'+K+'" is invalid for option "size"');var w=new Uint8Array(K);return Object.setPrototypeOf(w,e.prototype),w}function e(K,w,f){if("number"==typeof K){if("string"==typeof w)throw new TypeError('The "string" argument must be of type string. Received type number');return g(K)}return i(K,w,f)}function i(K,w,f){if("string"==typeof K)return function b(K,w){if(("string"!=typeof w||""===w)&&(w="utf8"),!e.isEncoding(w))throw new TypeError("Unknown encoding: "+w);var f=0|V(K,w),A=l(f),I=A.write(K,w);return I!==f&&(A=A.slice(0,I)),A}(K,w);if(ArrayBuffer.isView(K))return function M(K){if(de(K,Uint8Array)){var w=new Uint8Array(K);return R(w.buffer,w.byteOffset,w.byteLength)}return T(K)}(K);if(null==K)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof K);if(de(K,ArrayBuffer)||K&&de(K.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(de(K,SharedArrayBuffer)||K&&de(K.buffer,SharedArrayBuffer)))return R(K,w,f);if("number"==typeof K)throw new TypeError('The "value" argument must not be of type number. Received type number');var A=K.valueOf&&K.valueOf();if(null!=A&&A!==K)return e.from(A,w,f);var I=function x(K){if(e.isBuffer(K)){var w=0|P(K.length),f=l(w);return 0===f.length||K.copy(f,0,0,w),f}return void 0!==K.length?"number"!=typeof K.length||he(K.length)?l(0):T(K):"Buffer"===K.type&&Array.isArray(K.data)?T(K.data):void 0}(K);if(I)return I;if(typeof Symbol<"u"&&null!=Symbol.toPrimitive&&"function"==typeof K[Symbol.toPrimitive])return e.from(K[Symbol.toPrimitive]("string"),w,f);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof K)}function h(K){if("number"!=typeof K)throw new TypeError('"size" argument must be of type number');if(K<0)throw new RangeError('The value "'+K+'" is invalid for option "size"')}function g(K){return h(K),l(K<0?0:0|P(K))}function T(K){for(var w=K.length<0?0:0|P(K.length),f=l(w),A=0;A<w;A+=1)f[A]=255&K[A];return f}function R(K,w,f){if(w<0||K.byteLength<w)throw new RangeError('"offset" is outside of buffer bounds');if(K.byteLength<w+(f||0))throw new RangeError('"length" is outside of buffer bounds');var A;return A=void 0===w&&void 0===f?new Uint8Array(K):void 0===f?new Uint8Array(K,w):new Uint8Array(K,w,f),Object.setPrototypeOf(A,e.prototype),A}function P(K){if(K>=n)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+n.toString(16)+" bytes");return 0|K}function V(K,w){if(e.isBuffer(K))return K.length;if(ArrayBuffer.isView(K)||de(K,ArrayBuffer))return K.byteLength;if("string"!=typeof K)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof K);var f=K.length,A=arguments.length>2&&!0===arguments[2];if(!A&&0===f)return 0;for(var I=!1;;)switch(w){case"ascii":case"latin1":case"binary":return f;case"utf8":case"utf-8":return U(K).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*f;case"hex":return f>>>1;case"base64":return be(K).length;default:if(I)return A?-1:U(K).length;w=(""+w).toLowerCase(),I=!0}}function Y(K,w,f){var A=!1;if((void 0===w||w<0)&&(w=0),w>this.length||((void 0===f||f>this.length)&&(f=this.length),f<=0)||(f>>>=0)<=(w>>>=0))return"";for(K||(K="utf8");;)switch(K){case"hex":return ue(this,w,f);case"utf8":case"utf-8":return J(this,w,f);case"ascii":return te(this,w,f);case"latin1":case"binary":return ge(this,w,f);case"base64":return Q(this,w,f);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return H(this,w,f);default:if(A)throw new TypeError("Unknown encoding: "+K);K=(K+"").toLowerCase(),A=!0}}function j(K,w,f){var A=K[w];K[w]=K[f],K[f]=A}function E(K,w,f,A,I){if(0===K.length)return-1;if("string"==typeof f?(A=f,f=0):f>2147483647?f=2147483647:f<-2147483648&&(f=-2147483648),he(f=+f)&&(f=I?0:K.length-1),f<0&&(f=K.length+f),f>=K.length){if(I)return-1;f=K.length-1}else if(f<0){if(!I)return-1;f=0}if("string"==typeof w&&(w=e.from(w,A)),e.isBuffer(w))return 0===w.length?-1:C(K,w,f,A,I);if("number"==typeof w)return w&=255,"function"==typeof Uint8Array.prototype.indexOf?I?Uint8Array.prototype.indexOf.call(K,w,f):Uint8Array.prototype.lastIndexOf.call(K,w,f):C(K,[w],f,A,I);throw new TypeError("val must be string, number or Buffer")}function C(K,w,f,A,I){var ae,ne=1,me=K.length,Re=w.length;if(void 0!==A&&("ucs2"===(A=String(A).toLowerCase())||"ucs-2"===A||"utf16le"===A||"utf-16le"===A)){if(K.length<2||w.length<2)return-1;ne=2,me/=2,Re/=2,f/=2}function Pe(Me,je){return 1===ne?Me[je]:Me.readUInt16BE(je*ne)}if(I){var ye=-1;for(ae=f;ae<me;ae++)if(Pe(K,ae)===Pe(w,-1===ye?0:ae-ye)){if(-1===ye&&(ye=ae),ae-ye+1===Re)return ye*ne}else-1!==ye&&(ae-=ae-ye),ye=-1}else for(f+Re>me&&(f=me-Re),ae=f;ae>=0;ae--){for(var _e=!0,Ie=0;Ie<Re;Ie++)if(Pe(K,ae+Ie)!==Pe(w,Ie)){_e=!1;break}if(_e)return ae}return-1}function p(K,w,f,A){f=Number(f)||0;var I=K.length-f;A?(A=Number(A))>I&&(A=I):A=I;var ne=w.length;A>ne/2&&(A=ne/2);for(var me=0;me<A;++me){var Re=parseInt(w.substr(2*me,2),16);if(he(Re))return me;K[f+me]=Re}return me}function _(K,w,f,A){return Z(U(w,K.length-f),K,f,A)}function v(K,w,f,A){return Z(function re(K){for(var w=[],f=0;f<K.length;++f)w.push(255&K.charCodeAt(f));return w}(w),K,f,A)}function F(K,w,f,A){return Z(be(w),K,f,A)}function q(K,w,f,A){return Z(function ce(K,w){for(var f,A,ne=[],me=0;me<K.length&&!((w-=2)<0);++me)A=(f=K.charCodeAt(me))>>8,ne.push(f%256),ne.push(A);return ne}(w,K.length-f),K,f,A)}function Q(K,w,f){return O.fromByteArray(0===w&&f===K.length?K:K.slice(w,f))}function J(K,w,f){f=Math.min(K.length,f);for(var A=[],I=w;I<f;){var Pe,ae,ye,_e,ne=K[I],me=null,Re=ne>239?4:ne>223?3:ne>191?2:1;if(I+Re<=f)switch(Re){case 1:ne<128&&(me=ne);break;case 2:128==(192&(Pe=K[I+1]))&&(_e=(31&ne)<<6|63&Pe)>127&&(me=_e);break;case 3:ae=K[I+2],128==(192&(Pe=K[I+1]))&&128==(192&ae)&&(_e=(15&ne)<<12|(63&Pe)<<6|63&ae)>2047&&(_e<55296||_e>57343)&&(me=_e);break;case 4:ae=K[I+2],ye=K[I+3],128==(192&(Pe=K[I+1]))&&128==(192&ae)&&128==(192&ye)&&(_e=(15&ne)<<18|(63&Pe)<<12|(63&ae)<<6|63&ye)>65535&&_e<1114112&&(me=_e)}null===me?(me=65533,Re=1):me>65535&&(A.push((me-=65536)>>>10&1023|55296),me=56320|1023&me),A.push(me),I+=Re}return function Se(K){var w=K.length;if(w<=ie)return String.fromCharCode.apply(String,K);for(var f="",A=0;A<w;)f+=String.fromCharCode.apply(String,K.slice(A,A+=ie));return f}(A)}!(e.TYPED_ARRAY_SUPPORT=function o(){try{var K=new Uint8Array(1),w={foo:function(){return 42}};return Object.setPrototypeOf(w,Uint8Array.prototype),Object.setPrototypeOf(K,w),42===K.foo()}catch{return!1}}())&&typeof console<"u"&&"function"==typeof console.error&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(e.prototype,"parent",{enumerable:!0,get:function(){if(e.isBuffer(this))return this.buffer}}),Object.defineProperty(e.prototype,"offset",{enumerable:!0,get:function(){if(e.isBuffer(this))return this.byteOffset}}),e.poolSize=8192,e.from=function(K,w,f){return i(K,w,f)},Object.setPrototypeOf(e.prototype,Uint8Array.prototype),Object.setPrototypeOf(e,Uint8Array),e.alloc=function(K,w,f){return function d(K,w,f){return h(K),K<=0?l(K):void 0!==w?"string"==typeof f?l(K).fill(w,f):l(K).fill(w):l(K)}(K,w,f)},e.allocUnsafe=function(K){return g(K)},e.allocUnsafeSlow=function(K){return g(K)},e.isBuffer=function(w){return null!=w&&!0===w._isBuffer&&w!==e.prototype},e.compare=function(w,f){if(de(w,Uint8Array)&&(w=e.from(w,w.offset,w.byteLength)),de(f,Uint8Array)&&(f=e.from(f,f.offset,f.byteLength)),!e.isBuffer(w)||!e.isBuffer(f))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(w===f)return 0;for(var A=w.length,I=f.length,ne=0,me=Math.min(A,I);ne<me;++ne)if(w[ne]!==f[ne]){A=w[ne],I=f[ne];break}return A<I?-1:I<A?1:0},e.isEncoding=function(w){switch(String(w).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},e.concat=function(w,f){if(!Array.isArray(w))throw new TypeError('"list" argument must be an Array of Buffers');if(0===w.length)return e.alloc(0);var A;if(void 0===f)for(f=0,A=0;A<w.length;++A)f+=w[A].length;var I=e.allocUnsafe(f),ne=0;for(A=0;A<w.length;++A){var me=w[A];if(de(me,Uint8Array))ne+me.length>I.length?e.from(me).copy(I,ne):Uint8Array.prototype.set.call(I,me,ne);else{if(!e.isBuffer(me))throw new TypeError('"list" argument must be an Array of Buffers');me.copy(I,ne)}ne+=me.length}return I},e.byteLength=V,e.prototype._isBuffer=!0,e.prototype.swap16=function(){var w=this.length;if(w%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var f=0;f<w;f+=2)j(this,f,f+1);return this},e.prototype.swap32=function(){var w=this.length;if(w%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var f=0;f<w;f+=4)j(this,f,f+3),j(this,f+1,f+2);return this},e.prototype.swap64=function(){var w=this.length;if(w%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var f=0;f<w;f+=8)j(this,f,f+7),j(this,f+1,f+6),j(this,f+2,f+5),j(this,f+3,f+4);return this},e.prototype.toLocaleString=e.prototype.toString=function(){var w=this.length;return 0===w?"":0===arguments.length?J(this,0,w):Y.apply(this,arguments)},e.prototype.equals=function(w){if(!e.isBuffer(w))throw new TypeError("Argument must be a Buffer");return this===w||0===e.compare(this,w)},e.prototype.inspect=function(){var w="",f=k.h2;return w=this.toString("hex",0,f).replace(/(.{2})/g,"$1 ").trim(),this.length>f&&(w+=" ... "),"<Buffer "+w+">"},r&&(e.prototype[r]=e.prototype.inspect),e.prototype.compare=function(w,f,A,I,ne){if(de(w,Uint8Array)&&(w=e.from(w,w.offset,w.byteLength)),!e.isBuffer(w))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof w);if(void 0===f&&(f=0),void 0===A&&(A=w?w.length:0),void 0===I&&(I=0),void 0===ne&&(ne=this.length),f<0||A>w.length||I<0||ne>this.length)throw new RangeError("out of range index");if(I>=ne&&f>=A)return 0;if(I>=ne)return-1;if(f>=A)return 1;if(this===w)return 0;for(var me=(ne>>>=0)-(I>>>=0),Re=(A>>>=0)-(f>>>=0),Pe=Math.min(me,Re),ae=this.slice(I,ne),ye=w.slice(f,A),_e=0;_e<Pe;++_e)if(ae[_e]!==ye[_e]){me=ae[_e],Re=ye[_e];break}return me<Re?-1:Re<me?1:0},e.prototype.includes=function(w,f,A){return-1!==this.indexOf(w,f,A)},e.prototype.indexOf=function(w,f,A){return E(this,w,f,A,!0)},e.prototype.lastIndexOf=function(w,f,A){return E(this,w,f,A,!1)},e.prototype.write=function(w,f,A,I){if(void 0===f)I="utf8",A=this.length,f=0;else if(void 0===A&&"string"==typeof f)I=f,A=this.length,f=0;else{if(!isFinite(f))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");f>>>=0,isFinite(A)?(A>>>=0,void 0===I&&(I="utf8")):(I=A,A=void 0)}var ne=this.length-f;if((void 0===A||A>ne)&&(A=ne),w.length>0&&(A<0||f<0)||f>this.length)throw new RangeError("Attempt to write outside buffer bounds");I||(I="utf8");for(var me=!1;;)switch(I){case"hex":return p(this,w,f,A);case"utf8":case"utf-8":return _(this,w,f,A);case"ascii":case"latin1":case"binary":return v(this,w,f,A);case"base64":return F(this,w,f,A);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return q(this,w,f,A);default:if(me)throw new TypeError("Unknown encoding: "+I);I=(""+I).toLowerCase(),me=!0}},e.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var ie=4096;function te(K,w,f){var A="";f=Math.min(K.length,f);for(var I=w;I<f;++I)A+=String.fromCharCode(127&K[I]);return A}function ge(K,w,f){var A="";f=Math.min(K.length,f);for(var I=w;I<f;++I)A+=String.fromCharCode(K[I]);return A}function ue(K,w,f){var A=K.length;(!w||w<0)&&(w=0),(!f||f<0||f>A)&&(f=A);for(var I="",ne=w;ne<f;++ne)I+=Ee[K[ne]];return I}function H(K,w,f){for(var A=K.slice(w,f),I="",ne=0;ne<A.length-1;ne+=2)I+=String.fromCharCode(A[ne]+256*A[ne+1]);return I}function $(K,w,f){if(K%1!=0||K<0)throw new RangeError("offset is not uint");if(K+w>f)throw new RangeError("Trying to access beyond buffer length")}function oe(K,w,f,A,I,ne){if(!e.isBuffer(K))throw new TypeError('"buffer" argument must be a Buffer instance');if(w>I||w<ne)throw new RangeError('"value" argument is out of bounds');if(f+A>K.length)throw new RangeError("Index out of range")}function ee(K,w,f,A,I,ne){if(f+A>K.length)throw new RangeError("Index out of range");if(f<0)throw new RangeError("Index out of range")}function L(K,w,f,A,I){return w=+w,f>>>=0,I||ee(K,0,f,4),m.write(K,w,f,A,23,4),f+4}function S(K,w,f,A,I){return w=+w,f>>>=0,I||ee(K,0,f,8),m.write(K,w,f,A,52,8),f+8}e.prototype.slice=function(w,f){var A=this.length;(w=~~w)<0?(w+=A)<0&&(w=0):w>A&&(w=A),(f=void 0===f?A:~~f)<0?(f+=A)<0&&(f=0):f>A&&(f=A),f<w&&(f=w);var I=this.subarray(w,f);return Object.setPrototypeOf(I,e.prototype),I},e.prototype.readUintLE=e.prototype.readUIntLE=function(w,f,A){w>>>=0,f>>>=0,A||$(w,f,this.length);for(var I=this[w],ne=1,me=0;++me<f&&(ne*=256);)I+=this[w+me]*ne;return I},e.prototype.readUintBE=e.prototype.readUIntBE=function(w,f,A){w>>>=0,f>>>=0,A||$(w,f,this.length);for(var I=this[w+--f],ne=1;f>0&&(ne*=256);)I+=this[w+--f]*ne;return I},e.prototype.readUint8=e.prototype.readUInt8=function(w,f){return w>>>=0,f||$(w,1,this.length),this[w]},e.prototype.readUint16LE=e.prototype.readUInt16LE=function(w,f){return w>>>=0,f||$(w,2,this.length),this[w]|this[w+1]<<8},e.prototype.readUint16BE=e.prototype.readUInt16BE=function(w,f){return w>>>=0,f||$(w,2,this.length),this[w]<<8|this[w+1]},e.prototype.readUint32LE=e.prototype.readUInt32LE=function(w,f){return w>>>=0,f||$(w,4,this.length),(this[w]|this[w+1]<<8|this[w+2]<<16)+16777216*this[w+3]},e.prototype.readUint32BE=e.prototype.readUInt32BE=function(w,f){return w>>>=0,f||$(w,4,this.length),16777216*this[w]+(this[w+1]<<16|this[w+2]<<8|this[w+3])},e.prototype.readIntLE=function(w,f,A){w>>>=0,f>>>=0,A||$(w,f,this.length);for(var I=this[w],ne=1,me=0;++me<f&&(ne*=256);)I+=this[w+me]*ne;return I>=(ne*=128)&&(I-=Math.pow(2,8*f)),I},e.prototype.readIntBE=function(w,f,A){w>>>=0,f>>>=0,A||$(w,f,this.length);for(var I=f,ne=1,me=this[w+--I];I>0&&(ne*=256);)me+=this[w+--I]*ne;return me>=(ne*=128)&&(me-=Math.pow(2,8*f)),me},e.prototype.readInt8=function(w,f){return w>>>=0,f||$(w,1,this.length),128&this[w]?-1*(255-this[w]+1):this[w]},e.prototype.readInt16LE=function(w,f){w>>>=0,f||$(w,2,this.length);var A=this[w]|this[w+1]<<8;return 32768&A?4294901760|A:A},e.prototype.readInt16BE=function(w,f){w>>>=0,f||$(w,2,this.length);var A=this[w+1]|this[w]<<8;return 32768&A?4294901760|A:A},e.prototype.readInt32LE=function(w,f){return w>>>=0,f||$(w,4,this.length),this[w]|this[w+1]<<8|this[w+2]<<16|this[w+3]<<24},e.prototype.readInt32BE=function(w,f){return w>>>=0,f||$(w,4,this.length),this[w]<<24|this[w+1]<<16|this[w+2]<<8|this[w+3]},e.prototype.readFloatLE=function(w,f){return w>>>=0,f||$(w,4,this.length),m.read(this,w,!0,23,4)},e.prototype.readFloatBE=function(w,f){return w>>>=0,f||$(w,4,this.length),m.read(this,w,!1,23,4)},e.prototype.readDoubleLE=function(w,f){return w>>>=0,f||$(w,8,this.length),m.read(this,w,!0,52,8)},e.prototype.readDoubleBE=function(w,f){return w>>>=0,f||$(w,8,this.length),m.read(this,w,!1,52,8)},e.prototype.writeUintLE=e.prototype.writeUIntLE=function(w,f,A,I){w=+w,f>>>=0,A>>>=0,I||oe(this,w,f,A,Math.pow(2,8*A)-1,0);var me=1,Re=0;for(this[f]=255&w;++Re<A&&(me*=256);)this[f+Re]=w/me&255;return f+A},e.prototype.writeUintBE=e.prototype.writeUIntBE=function(w,f,A,I){w=+w,f>>>=0,A>>>=0,I||oe(this,w,f,A,Math.pow(2,8*A)-1,0);var me=A-1,Re=1;for(this[f+me]=255&w;--me>=0&&(Re*=256);)this[f+me]=w/Re&255;return f+A},e.prototype.writeUint8=e.prototype.writeUInt8=function(w,f,A){return w=+w,f>>>=0,A||oe(this,w,f,1,255,0),this[f]=255&w,f+1},e.prototype.writeUint16LE=e.prototype.writeUInt16LE=function(w,f,A){return w=+w,f>>>=0,A||oe(this,w,f,2,65535,0),this[f]=255&w,this[f+1]=w>>>8,f+2},e.prototype.writeUint16BE=e.prototype.writeUInt16BE=function(w,f,A){return w=+w,f>>>=0,A||oe(this,w,f,2,65535,0),this[f]=w>>>8,this[f+1]=255&w,f+2},e.prototype.writeUint32LE=e.prototype.writeUInt32LE=function(w,f,A){return w=+w,f>>>=0,A||oe(this,w,f,4,4294967295,0),this[f+3]=w>>>24,this[f+2]=w>>>16,this[f+1]=w>>>8,this[f]=255&w,f+4},e.prototype.writeUint32BE=e.prototype.writeUInt32BE=function(w,f,A){return w=+w,f>>>=0,A||oe(this,w,f,4,4294967295,0),this[f]=w>>>24,this[f+1]=w>>>16,this[f+2]=w>>>8,this[f+3]=255&w,f+4},e.prototype.writeIntLE=function(w,f,A,I){if(w=+w,f>>>=0,!I){var ne=Math.pow(2,8*A-1);oe(this,w,f,A,ne-1,-ne)}var me=0,Re=1,Pe=0;for(this[f]=255&w;++me<A&&(Re*=256);)w<0&&0===Pe&&0!==this[f+me-1]&&(Pe=1),this[f+me]=(w/Re>>0)-Pe&255;return f+A},e.prototype.writeIntBE=function(w,f,A,I){if(w=+w,f>>>=0,!I){var ne=Math.pow(2,8*A-1);oe(this,w,f,A,ne-1,-ne)}var me=A-1,Re=1,Pe=0;for(this[f+me]=255&w;--me>=0&&(Re*=256);)w<0&&0===Pe&&0!==this[f+me+1]&&(Pe=1),this[f+me]=(w/Re>>0)-Pe&255;return f+A},e.prototype.writeInt8=function(w,f,A){return w=+w,f>>>=0,A||oe(this,w,f,1,127,-128),w<0&&(w=255+w+1),this[f]=255&w,f+1},e.prototype.writeInt16LE=function(w,f,A){return w=+w,f>>>=0,A||oe(this,w,f,2,32767,-32768),this[f]=255&w,this[f+1]=w>>>8,f+2},e.prototype.writeInt16BE=function(w,f,A){return w=+w,f>>>=0,A||oe(this,w,f,2,32767,-32768),this[f]=w>>>8,this[f+1]=255&w,f+2},e.prototype.writeInt32LE=function(w,f,A){return w=+w,f>>>=0,A||oe(this,w,f,4,2147483647,-2147483648),this[f]=255&w,this[f+1]=w>>>8,this[f+2]=w>>>16,this[f+3]=w>>>24,f+4},e.prototype.writeInt32BE=function(w,f,A){return w=+w,f>>>=0,A||oe(this,w,f,4,2147483647,-2147483648),w<0&&(w=4294967295+w+1),this[f]=w>>>24,this[f+1]=w>>>16,this[f+2]=w>>>8,this[f+3]=255&w,f+4},e.prototype.writeFloatLE=function(w,f,A){return L(this,w,f,!0,A)},e.prototype.writeFloatBE=function(w,f,A){return L(this,w,f,!1,A)},e.prototype.writeDoubleLE=function(w,f,A){return S(this,w,f,!0,A)},e.prototype.writeDoubleBE=function(w,f,A){return S(this,w,f,!1,A)},e.prototype.copy=function(w,f,A,I){if(!e.isBuffer(w))throw new TypeError("argument should be a Buffer");if(A||(A=0),!I&&0!==I&&(I=this.length),f>=w.length&&(f=w.length),f||(f=0),I>0&&I<A&&(I=A),I===A||0===w.length||0===this.length)return 0;if(f<0)throw new RangeError("targetStart out of bounds");if(A<0||A>=this.length)throw new RangeError("Index out of range");if(I<0)throw new RangeError("sourceEnd out of bounds");I>this.length&&(I=this.length),w.length-f<I-A&&(I=w.length-f+A);var ne=I-A;return this===w&&"function"==typeof Uint8Array.prototype.copyWithin?this.copyWithin(f,A,I):Uint8Array.prototype.set.call(w,this.subarray(A,I),f),ne},e.prototype.fill=function(w,f,A,I){if("string"==typeof w){if("string"==typeof f?(I=f,f=0,A=this.length):"string"==typeof A&&(I=A,A=this.length),void 0!==I&&"string"!=typeof I)throw new TypeError("encoding must be a string");if("string"==typeof I&&!e.isEncoding(I))throw new TypeError("Unknown encoding: "+I);if(1===w.length){var ne=w.charCodeAt(0);("utf8"===I&&ne<128||"latin1"===I)&&(w=ne)}}else"number"==typeof w?w&=255:"boolean"==typeof w&&(w=Number(w));if(f<0||this.length<f||this.length<A)throw new RangeError("Out of range index");if(A<=f)return this;var me;if(f>>>=0,A=void 0===A?this.length:A>>>0,w||(w=0),"number"==typeof w)for(me=f;me<A;++me)this[me]=w;else{var Re=e.isBuffer(w)?w:e.from(w,I),Pe=Re.length;if(0===Pe)throw new TypeError('The value "'+w+'" is invalid for argument "value"');for(me=0;me<A-f;++me)this[me+f]=Re[me%Pe]}return this};var B=/[^+/0-9A-Za-z-_]/g;function U(K,w){w=w||1/0;for(var f,A=K.length,I=null,ne=[],me=0;me<A;++me){if((f=K.charCodeAt(me))>55295&&f<57344){if(!I){if(f>56319){(w-=3)>-1&&ne.push(239,191,189);continue}if(me+1===A){(w-=3)>-1&&ne.push(239,191,189);continue}I=f;continue}if(f<56320){(w-=3)>-1&&ne.push(239,191,189),I=f;continue}f=65536+(I-55296<<10|f-56320)}else I&&(w-=3)>-1&&ne.push(239,191,189);if(I=null,f<128){if((w-=1)<0)break;ne.push(f)}else if(f<2048){if((w-=2)<0)break;ne.push(f>>6|192,63&f|128)}else if(f<65536){if((w-=3)<0)break;ne.push(f>>12|224,f>>6&63|128,63&f|128)}else{if(!(f<1114112))throw new Error("Invalid code point");if((w-=4)<0)break;ne.push(f>>18|240,f>>12&63|128,f>>6&63|128,63&f|128)}}return ne}function be(K){return O.toByteArray(function G(K){if((K=(K=K.split("=")[0]).trim().replace(B,"")).length<2)return"";for(;K.length%4!=0;)K+="=";return K}(K))}function Z(K,w,f,A){for(var I=0;I<A&&!(I+f>=w.length||I>=K.length);++I)w[I+f]=K[I];return I}function de(K,w){return K instanceof w||null!=K&&null!=K.constructor&&null!=K.constructor.name&&K.constructor.name===w.name}function he(K){return K!=K}var Ee=function(){for(var K="0123456789abcdef",w=new Array(256),f=0;f<16;++f)for(var A=16*f,I=0;I<16;++I)w[A+I]=K[f]+K[I];return w}()},73157:(le,k,y)=>{"use strict";var a=y(82422),O=y(63743),m=O(a("String.prototype.indexOf"));le.exports=function(n,o){var l=a(n,!!o);return"function"==typeof l&&m(n,".prototype.")>-1?O(l):l}},63743:(le,k,y)=>{"use strict";var a=y(47902),O=y(82422),m=O("%Function.prototype.apply%"),r=O("%Function.prototype.call%"),n=O("%Reflect.apply%",!0)||a.call(r,m),o=O("%Object.getOwnPropertyDescriptor%",!0),l=O("%Object.defineProperty%",!0),e=O("%Math.max%");if(l)try{l({},"a",{value:1})}catch{l=null}le.exports=function(d){var g=n(a,r,arguments);return o&&l&&o(g,"length").configurable&&l(g,"length",{value:1+e(0,d.length-(arguments.length-1))}),g};var i=function(){return n(a,m,arguments)};l?l(le.exports,"apply",{value:i}):le.exports.apply=i},29278:le=>{"use strict";le.exports=function(k,y){y||(y={}),"function"==typeof y&&(y={cmp:y});var r,a="boolean"==typeof y.cycles&&y.cycles,O=y.cmp&&(r=y.cmp,function(n){return function(o,l){return r({key:o,value:n[o]},{key:l,value:n[l]})}}),m=[];return function r(n){if(n&&n.toJSON&&"function"==typeof n.toJSON&&(n=n.toJSON()),void 0!==n){if("number"==typeof n)return isFinite(n)?""+n:"null";if("object"!=typeof n)return JSON.stringify(n);var o,l;if(Array.isArray(n)){for(l="[",o=0;o<n.length;o++)o&&(l+=","),l+=r(n[o])||"null";return l+"]"}if(null===n)return"null";if(-1!==m.indexOf(n)){if(a)return JSON.stringify("__cycle__");throw new TypeError("Converting circular structure to JSON")}var e=m.push(n)-1,i=Object.keys(n).sort(O&&O(n));for(l="",o=0;o<i.length;o++){var h=i[o],d=r(n[h]);d&&(l&&(l+=","),l+=JSON.stringify(h)+":"+d)}return m.splice(e,1),"{"+l+"}"}}(k)}},39234:(le,k,y)=>{"use strict";var a=y(59712),O=Object.prototype.toString,m=Object.prototype.hasOwnProperty;le.exports=function(i,h,d){if(!a(h))throw new TypeError("iterator must be a function");var g;arguments.length>=3&&(g=d),"[object Array]"===O.call(i)?function(i,h,d){for(var g=0,b=i.length;g<b;g++)m.call(i,g)&&(null==d?h(i[g],g,i):h.call(d,i[g],g,i))}(i,h,g):"string"==typeof i?function(i,h,d){for(var g=0,b=i.length;g<b;g++)null==d?h(i.charAt(g),g,i):h.call(d,i.charAt(g),g,i)}(i,h,g):function(i,h,d){for(var g in i)m.call(i,g)&&(null==d?h(i[g],g,i):h.call(d,i[g],g,i))}(i,h,g)}},59712:le=>{"use strict";var a,O,k=Function.prototype.toString,y="object"==typeof Reflect&&null!==Reflect&&Reflect.apply;if("function"==typeof y&&"function"==typeof Object.defineProperty)try{a=Object.defineProperty({},"length",{get:function(){throw O}}),O={},y(function(){throw 42},null,a)}catch(d){d!==O&&(y=null)}else y=null;var m=/^\s*class\b/,r=function(g){try{var b=k.call(g);return m.test(b)}catch{return!1}},o=Object.prototype.toString,i="function"==typeof Symbol&&!!Symbol.toStringTag,h="object"==typeof document&&typeof document.all>"u"&&void 0!==document.all?document.all:{};le.exports=y?function(g){if(g===h)return!0;if(!g||"function"!=typeof g&&"object"!=typeof g)return!1;if("function"==typeof g&&!g.prototype)return!0;try{y(g,null,a)}catch(b){if(b!==O)return!1}return!r(g)}:function(g){if(g===h)return!0;if(!g||"function"!=typeof g&&"object"!=typeof g)return!1;if("function"==typeof g&&!g.prototype)return!0;if(i)return function(g){try{return!r(g)&&(k.call(g),!0)}catch{return!1}}(g);if(r(g))return!1;var b=o.call(g);return"[object Function]"===b||"[object GeneratorFunction]"===b}},55150:le=>{"use strict";var y=Array.prototype.slice,a=Object.prototype.toString;le.exports=function(r){var n=this;if("function"!=typeof n||"[object Function]"!==a.call(n))throw new TypeError("Function.prototype.bind called on incompatible "+n);for(var l,o=y.call(arguments,1),i=Math.max(0,n.length-o.length),h=[],d=0;d<i;d++)h.push("$"+d);if(l=Function("binder","return function ("+h.join(",")+"){ return binder.apply(this,arguments); }")(function(){if(this instanceof l){var b=n.apply(this,o.concat(y.call(arguments)));return Object(b)===b?b:this}return n.apply(r,o.concat(y.call(arguments)))}),n.prototype){var g=function(){};g.prototype=n.prototype,l.prototype=new g,g.prototype=null}return l}},47902:(le,k,y)=>{"use strict";var a=y(55150);le.exports=Function.prototype.bind||a},82422:(le,k,y)=>{"use strict";var a,O=SyntaxError,m=Function,r=TypeError,n=function(v){try{return m('"use strict"; return ('+v+").constructor;")()}catch{}},o=Object.getOwnPropertyDescriptor;if(o)try{o({},"")}catch{o=null}var l=function(){throw new r},e=o?function(){try{return l}catch{try{return o(arguments,"callee").get}catch{return l}}}():l,i=y(98517)(),h=Object.getPrototypeOf||function(v){return v.__proto__},d={},g=typeof Uint8Array>"u"?a:h(Uint8Array),b={"%AggregateError%":typeof AggregateError>"u"?a:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?a:ArrayBuffer,"%ArrayIteratorPrototype%":i?h([][Symbol.iterator]()):a,"%AsyncFromSyncIteratorPrototype%":a,"%AsyncFunction%":d,"%AsyncGenerator%":d,"%AsyncGeneratorFunction%":d,"%AsyncIteratorPrototype%":d,"%Atomics%":typeof Atomics>"u"?a:Atomics,"%BigInt%":typeof BigInt>"u"?a:BigInt,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?a:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array>"u"?a:Float32Array,"%Float64Array%":typeof Float64Array>"u"?a:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?a:FinalizationRegistry,"%Function%":m,"%GeneratorFunction%":d,"%Int8Array%":typeof Int8Array>"u"?a:Int8Array,"%Int16Array%":typeof Int16Array>"u"?a:Int16Array,"%Int32Array%":typeof Int32Array>"u"?a:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":i?h(h([][Symbol.iterator]())):a,"%JSON%":"object"==typeof JSON?JSON:a,"%Map%":typeof Map>"u"?a:Map,"%MapIteratorPrototype%":typeof Map>"u"||!i?a:h((new Map)[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?a:Promise,"%Proxy%":typeof Proxy>"u"?a:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect>"u"?a:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?a:Set,"%SetIteratorPrototype%":typeof Set>"u"||!i?a:h((new Set)[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?a:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":i?h(""[Symbol.iterator]()):a,"%Symbol%":i?Symbol:a,"%SyntaxError%":O,"%ThrowTypeError%":e,"%TypedArray%":g,"%TypeError%":r,"%Uint8Array%":typeof Uint8Array>"u"?a:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?a:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?a:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?a:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap>"u"?a:WeakMap,"%WeakRef%":typeof WeakRef>"u"?a:WeakRef,"%WeakSet%":typeof WeakSet>"u"?a:WeakSet},T=function v(F){var q;if("%AsyncFunction%"===F)q=n("async function () {}");else if("%GeneratorFunction%"===F)q=n("function* () {}");else if("%AsyncGeneratorFunction%"===F)q=n("async function* () {}");else if("%AsyncGenerator%"===F){var Q=v("%AsyncGeneratorFunction%");Q&&(q=Q.prototype)}else if("%AsyncIteratorPrototype%"===F){var J=v("%AsyncGenerator%");J&&(q=h(J.prototype))}return b[F]=q,q},M={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},R=y(47902),x=y(32600),P=R.call(Function.call,Array.prototype.concat),W=R.call(Function.apply,Array.prototype.splice),V=R.call(Function.call,String.prototype.replace),Y=R.call(Function.call,String.prototype.slice),j=R.call(Function.call,RegExp.prototype.exec),E=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,C=/\\(\\)?/g,_=function(F,q){var J,Q=F;if(x(M,Q)&&(Q="%"+(J=M[Q])[0]+"%"),x(b,Q)){var ie=b[Q];if(ie===d&&(ie=T(Q)),typeof ie>"u"&&!q)throw new r("intrinsic "+F+" exists, but is not available. Please file an issue!");return{alias:J,name:Q,value:ie}}throw new O("intrinsic "+F+" does not exist!")};le.exports=function(F,q){if("string"!=typeof F||0===F.length)throw new r("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof q)throw new r('"allowMissing" argument must be a boolean');if(null===j(/^%?[^%]*%?$/g,F))throw new O("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var Q=function(F){var q=Y(F,0,1),Q=Y(F,-1);if("%"===q&&"%"!==Q)throw new O("invalid intrinsic syntax, expected closing `%`");if("%"===Q&&"%"!==q)throw new O("invalid intrinsic syntax, expected opening `%`");var J=[];return V(F,E,function(ie,Se,te,ge){J[J.length]=te?V(ge,C,"$1"):Se||ie}),J}(F),J=Q.length>0?Q[0]:"",ie=_("%"+J+"%",q),Se=ie.name,te=ie.value,ge=!1,ue=ie.alias;ue&&(J=ue[0],W(Q,P([0,1],ue)));for(var H=1,$=!0;H<Q.length;H+=1){var oe=Q[H],ee=Y(oe,0,1),L=Y(oe,-1);if(('"'===ee||"'"===ee||"`"===ee||'"'===L||"'"===L||"`"===L)&&ee!==L)throw new O("property names with quotes must have matching quotes");if(("constructor"===oe||!$)&&(ge=!0),x(b,Se="%"+(J+="."+oe)+"%"))te=b[Se];else if(null!=te){if(!(oe in te)){if(!q)throw new r("base intrinsic for "+F+" exists, but the property is not available.");return}if(o&&H+1>=Q.length){var S=o(te,oe);te=($=!!S)&&"get"in S&&!("originalValue"in S.get)?S.get:te[oe]}else $=x(te,oe),te=te[oe];$&&!ge&&(b[Se]=te)}}return te}},68290:(le,k,y)=>{"use strict";y.d(k,{ZP:()=>G,J9:()=>S,_t:()=>ee,wO:()=>L,Ps:()=>$,HW:()=>oe});var m=function(){return m=Object.assign||function(re){for(var ce,be=1,Z=arguments.length;be<Z;be++)for(var de in ce=arguments[be])Object.prototype.hasOwnProperty.call(ce,de)&&(re[de]=ce[de]);return re},m.apply(this,arguments)},F=y(64698),q=new Map,Q=new Map,J=!0,ie=!1;function Se(U){return U.replace(/[\s,]+/g," ").trim()}function H(U){var re=Se(U);if(!q.has(re)){var ce=(0,F.Qc)(U,{experimentalFragmentVariables:ie,allowLegacyFragmentVariables:ie});if(!ce||"Document"!==ce.kind)throw new Error("Not a valid GraphQL document.");q.set(re,function ue(U){var re=new Set(U.definitions);re.forEach(function(be){be.loc&&delete be.loc,Object.keys(be).forEach(function(Z){var de=be[Z];de&&"object"==typeof de&&re.add(de)})});var ce=U.loc;return ce&&(delete ce.startToken,delete ce.endToken),U}(function ge(U){var re=new Set,ce=[];return U.definitions.forEach(function(be){if("FragmentDefinition"===be.kind){var Z=be.name.value,de=function te(U){return Se(U.source.body.substring(U.start,U.end))}(be.loc),he=Q.get(Z);he&&!he.has(de)?J&&console.warn("Warning: fragment with name "+Z+" already exists.\ngraphql-tag enforces all fragment names across your application to be unique; read more about\nthis in the docs: http://dev.apollodata.com/core/fragments.html#unique-names"):he||Q.set(Z,he=new Set),he.add(de),re.has(de)||(re.add(de),ce.push(be))}else ce.push(be)}),m(m({},U),{definitions:ce})}(ce)))}return q.get(re)}function $(U){for(var re=[],ce=1;ce<arguments.length;ce++)re[ce-1]=arguments[ce];"string"==typeof U&&(U=[U]);var be=U[0];return re.forEach(function(Z,de){be+=Z&&"Document"===Z.kind?Z.loc.source.body:Z,be+=U[de+1]}),H(be)}function oe(){q.clear(),Q.clear()}function ee(){J=!1}function L(){ie=!0}function S(){ie=!1}var U,B_gql=$,B_resetCaches=oe,B_disableFragmentWarnings=ee,B_enableExperimentalFragmentVariables=L,B_disableExperimentalFragmentVariables=S;(U=$||($={})).gql=B_gql,U.resetCaches=B_resetCaches,U.disableFragmentWarnings=B_disableFragmentWarnings,U.enableExperimentalFragmentVariables=B_enableExperimentalFragmentVariables,U.disableExperimentalFragmentVariables=B_disableExperimentalFragmentVariables,$.default=$;const G=$},98517:(le,k,y)=>{"use strict";var a=typeof Symbol<"u"&&Symbol,O=y(74169);le.exports=function(){return"function"==typeof a&&"function"==typeof Symbol&&"symbol"==typeof a("foo")&&"symbol"==typeof Symbol("bar")&&O()}},74169:le=>{"use strict";le.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var y={},a=Symbol("test"),O=Object(a);if("string"==typeof a||"[object Symbol]"!==Object.prototype.toString.call(a)||"[object Symbol]"!==Object.prototype.toString.call(O))return!1;for(a in y[a]=42,y)return!1;if("function"==typeof Object.keys&&0!==Object.keys(y).length||"function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(y).length)return!1;var r=Object.getOwnPropertySymbols(y);if(1!==r.length||r[0]!==a||!Object.prototype.propertyIsEnumerable.call(y,a))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var n=Object.getOwnPropertyDescriptor(y,a);if(42!==n.value||!0!==n.enumerable)return!1}return!0}},47724:(le,k,y)=>{"use strict";var a=y(74169);le.exports=function(){return a()&&!!Symbol.toStringTag}},32600:(le,k,y)=>{"use strict";var a=y(47902);le.exports=a.call(Function.call,Object.prototype.hasOwnProperty)},89255:(le,k)=>{k.read=function(y,a,O,m,r){var n,o,l=8*r-m-1,e=(1<<l)-1,i=e>>1,h=-7,d=O?r-1:0,g=O?-1:1,b=y[a+d];for(d+=g,n=b&(1<<-h)-1,b>>=-h,h+=l;h>0;n=256*n+y[a+d],d+=g,h-=8);for(o=n&(1<<-h)-1,n>>=-h,h+=m;h>0;o=256*o+y[a+d],d+=g,h-=8);if(0===n)n=1-i;else{if(n===e)return o?NaN:1/0*(b?-1:1);o+=Math.pow(2,m),n-=i}return(b?-1:1)*o*Math.pow(2,n-m)},k.write=function(y,a,O,m,r,n){var o,l,e,i=8*n-r-1,h=(1<<i)-1,d=h>>1,g=23===r?Math.pow(2,-24)-Math.pow(2,-77):0,b=m?0:n-1,T=m?1:-1,M=a<0||0===a&&1/a<0?1:0;for(a=Math.abs(a),isNaN(a)||a===1/0?(l=isNaN(a)?1:0,o=h):(o=Math.floor(Math.log(a)/Math.LN2),a*(e=Math.pow(2,-o))<1&&(o--,e*=2),(a+=o+d>=1?g/e:g*Math.pow(2,1-d))*e>=2&&(o++,e/=2),o+d>=h?(l=0,o=h):o+d>=1?(l=(a*e-1)*Math.pow(2,r),o+=d):(l=a*Math.pow(2,d-1)*Math.pow(2,r),o=0));r>=8;y[O+b]=255&l,b+=T,l/=256,r-=8);for(o=o<<r|l,i+=r;i>0;y[O+b]=255&o,b+=T,o/=256,i-=8);y[O+b-T]|=128*M}},3011:le=>{le.exports="function"==typeof Object.create?function(y,a){a&&(y.super_=a,y.prototype=Object.create(a.prototype,{constructor:{value:y,enumerable:!1,writable:!0,configurable:!0}}))}:function(y,a){if(a){y.super_=a;var O=function(){};O.prototype=a.prototype,y.prototype=new O,y.prototype.constructor=y}}},58344:le=>{"use strict";var k="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag,y=Object.prototype.toString,a=function(n){return!(k&&n&&"object"==typeof n&&Symbol.toStringTag in n)&&"[object Arguments]"===y.call(n)},O=function(n){return!!a(n)||null!==n&&"object"==typeof n&&"number"==typeof n.length&&n.length>=0&&"[object Array]"!==y.call(n)&&"[object Function]"===y.call(n.callee)},m=function(){return a(arguments)}();a.isLegacyArguments=O,le.exports=m?a:O},41186:(le,k,y)=>{"use strict";var l,a=Object.prototype.toString,O=Function.prototype.toString,m=/^\s*(?:function)?\*/,r=y(47724)(),n=Object.getPrototypeOf;le.exports=function(i){if("function"!=typeof i)return!1;if(m.test(O.call(i)))return!0;if(!r)return"[object GeneratorFunction]"===a.call(i);if(!n)return!1;if(typeof l>"u"){var d=function(){if(!r)return!1;try{return Function("return function*() {}")()}catch{}}();l=!!d&&n(d)}return n(i)===l}},53662:(le,k,y)=>{"use strict";var a=y(39234),O=y(73763),m=y(73157),r=m("Object.prototype.toString"),n=y(47724)(),o=typeof globalThis>"u"?global:globalThis,l=O(),e=m("Array.prototype.indexOf",!0)||function(M,R){for(var x=0;x<M.length;x+=1)if(M[x]===R)return x;return-1},i=m("String.prototype.slice"),h={},d=y(10475),g=Object.getPrototypeOf;n&&d&&g&&a(l,function(T){var M=new o[T];if(Symbol.toStringTag in M){var R=g(M),x=d(R,Symbol.toStringTag);if(!x){var P=g(R);x=d(P,Symbol.toStringTag)}h[T]=x.get}}),le.exports=function(M){if(!M||"object"!=typeof M)return!1;if(!n||!(Symbol.toStringTag in M)){var R=i(r(M),8,-1);return e(l,R)>-1}return!!d&&function(M){var R=!1;return a(h,function(x,P){if(!R)try{R=x.call(M)===P}catch{}}),R}(M)}},35169:le=>{var k={}.toString;le.exports=Array.isArray||function(y){return"[object Array]"==k.call(y)}},36151:(le,k)=>{!function(y){"use strict";function a(ae){return null!==ae&&"[object Array]"===Object.prototype.toString.call(ae)}function O(ae){return null!==ae&&"[object Object]"===Object.prototype.toString.call(ae)}function m(ae,ye){if(ae===ye)return!0;if(Object.prototype.toString.call(ae)!==Object.prototype.toString.call(ye))return!1;if(!0===a(ae)){if(ae.length!==ye.length)return!1;for(var Ie=0;Ie<ae.length;Ie++)if(!1===m(ae[Ie],ye[Ie]))return!1;return!0}if(!0===O(ae)){var Me={};for(var je in ae)if(hasOwnProperty.call(ae,je)){if(!1===m(ae[je],ye[je]))return!1;Me[je]=!0}for(var Ke in ye)if(hasOwnProperty.call(ye,Ke)&&!0!==Me[Ke])return!1;return!0}return!1}function r(ae){if(""===ae||!1===ae||null===ae)return!0;if(a(ae)&&0===ae.length)return!0;if(O(ae)){for(var ye in ae)if(ae.hasOwnProperty(ye))return!1;return!0}return!1}var l;l="function"==typeof String.prototype.trimLeft?function(ae){return ae.trimLeft()}:function(ae){return ae.match(/^\s*(.*)/)[1]};var e=0,h=2,P={0:"number",1:"any",2:"string",3:"array",4:"object",5:"boolean",6:"expression",7:"null",8:"Array<number>",9:"Array<string>"},W="EOF",V="UnquotedIdentifier",Y="QuotedIdentifier",j="Rbracket",E="Rparen",C="Comma",p="Colon",_="Rbrace",v="Number",F="Current",q="Expref",Q="Pipe",J="Or",ue="GTE",H="LTE",$="NE",oe="Flatten",ee="Star",L="Filter",S="Dot",B="Not",G="Lbrace",U="Lbracket",re="Lparen",ce="Literal",be={".":S,"*":ee,",":C,":":p,"{":G,"}":_,"]":j,"(":re,")":E,"@":F},Z={"<":!0,">":!0,"=":!0,"!":!0},de={" ":!0,"\t":!0,"\n":!0};function he(ae){return ae>="a"&&ae<="z"||ae>="A"&&ae<="Z"||"_"===ae}function Ee(ae){return ae>="0"&&ae<="9"||"-"===ae}function K(ae){return ae>="a"&&ae<="z"||ae>="A"&&ae<="Z"||ae>="0"&&ae<="9"||"_"===ae}function w(){}w.prototype={tokenize:function(ae){var _e,Ie,Me,ye=[];for(this._current=0;this._current<ae.length;)if(he(ae[this._current]))_e=this._current,Ie=this._consumeUnquotedIdentifier(ae),ye.push({type:V,value:Ie,start:_e});else if(void 0!==be[ae[this._current]])ye.push({type:be[ae[this._current]],value:ae[this._current],start:this._current}),this._current++;else if(Ee(ae[this._current]))Me=this._consumeNumber(ae),ye.push(Me);else if("["===ae[this._current])Me=this._consumeLBracket(ae),ye.push(Me);else if('"'===ae[this._current])_e=this._current,Ie=this._consumeQuotedIdentifier(ae),ye.push({type:Y,value:Ie,start:_e});else if("'"===ae[this._current])_e=this._current,Ie=this._consumeRawStringLiteral(ae),ye.push({type:ce,value:Ie,start:_e});else if("`"===ae[this._current]){_e=this._current;var je=this._consumeLiteral(ae);ye.push({type:ce,value:je,start:_e})}else if(void 0!==Z[ae[this._current]])ye.push(this._consumeOperator(ae));else if(void 0!==de[ae[this._current]])this._current++;else if("&"===ae[this._current])_e=this._current,this._current++,"&"===ae[this._current]?(this._current++,ye.push({type:"And",value:"&&",start:_e})):ye.push({type:q,value:"&",start:_e});else{if("|"!==ae[this._current]){var Ke=new Error("Unknown character:"+ae[this._current]);throw Ke.name="LexerError",Ke}_e=this._current,this._current++,"|"===ae[this._current]?(this._current++,ye.push({type:J,value:"||",start:_e})):ye.push({type:Q,value:"|",start:_e})}return ye},_consumeUnquotedIdentifier:function(ae){var ye=this._current;for(this._current++;this._current<ae.length&&K(ae[this._current]);)this._current++;return ae.slice(ye,this._current)},_consumeQuotedIdentifier:function(ae){var ye=this._current;this._current++;for(var _e=ae.length;'"'!==ae[this._current]&&this._current<_e;){var Ie=this._current;"\\"!==ae[Ie]||"\\"!==ae[Ie+1]&&'"'!==ae[Ie+1]?Ie++:Ie+=2,this._current=Ie}return this._current++,JSON.parse(ae.slice(ye,this._current))},_consumeRawStringLiteral:function(ae){var ye=this._current;this._current++;for(var _e=ae.length;"'"!==ae[this._current]&&this._current<_e;){var Ie=this._current;"\\"!==ae[Ie]||"\\"!==ae[Ie+1]&&"'"!==ae[Ie+1]?Ie++:Ie+=2,this._current=Ie}return this._current++,ae.slice(ye+1,this._current-1).replace("\\'","'")},_consumeNumber:function(ae){var ye=this._current;this._current++;for(var _e=ae.length;Ee(ae[this._current])&&this._current<_e;)this._current++;var Ie=parseInt(ae.slice(ye,this._current));return{type:v,value:Ie,start:ye}},_consumeLBracket:function(ae){var ye=this._current;return this._current++,"?"===ae[this._current]?(this._current++,{type:L,value:"[?",start:ye}):"]"===ae[this._current]?(this._current++,{type:oe,value:"[]",start:ye}):{type:U,value:"[",start:ye}},_consumeOperator:function(ae){var ye=this._current,_e=ae[ye];return this._current++,"!"===_e?"="===ae[this._current]?(this._current++,{type:$,value:"!=",start:ye}):{type:B,value:"!",start:ye}:"<"===_e?"="===ae[this._current]?(this._current++,{type:H,value:"<=",start:ye}):{type:"LT",value:"<",start:ye}:">"===_e?"="===ae[this._current]?(this._current++,{type:ue,value:">=",start:ye}):{type:"GT",value:">",start:ye}:"="===_e&&"="===ae[this._current]?(this._current++,{type:"EQ",value:"==",start:ye}):void 0},_consumeLiteral:function(ae){this._current++;for(var Ie,ye=this._current,_e=ae.length;"`"!==ae[this._current]&&this._current<_e;){var Me=this._current;"\\"!==ae[Me]||"\\"!==ae[Me+1]&&"`"!==ae[Me+1]?Me++:Me+=2,this._current=Me}var je=l(ae.slice(ye,this._current));return je=je.replace("\\`","`"),Ie=this._looksLikeJSON(je)?JSON.parse(je):JSON.parse('"'+je+'"'),this._current++,Ie},_looksLikeJSON:function(ae){if(""===ae)return!1;if('[{"'.indexOf(ae[0])>=0)return!0;if(["true","false","null"].indexOf(ae)>=0)return!0;if(!("-0123456789".indexOf(ae[0])>=0))return!1;try{return JSON.parse(ae),!0}catch{return!1}}};var f={};function A(){}function I(ae){this.runtime=ae}function ne(ae){this._interpreter=ae,this.functionTable={abs:{_func:this._functionAbs,_signature:[{types:[e]}]},avg:{_func:this._functionAvg,_signature:[{types:[8]}]},ceil:{_func:this._functionCeil,_signature:[{types:[e]}]},contains:{_func:this._functionContains,_signature:[{types:[h,3]},{types:[1]}]},ends_with:{_func:this._functionEndsWith,_signature:[{types:[h]},{types:[h]}]},floor:{_func:this._functionFloor,_signature:[{types:[e]}]},length:{_func:this._functionLength,_signature:[{types:[h,3,4]}]},map:{_func:this._functionMap,_signature:[{types:[6]},{types:[3]}]},max:{_func:this._functionMax,_signature:[{types:[8,9]}]},merge:{_func:this._functionMerge,_signature:[{types:[4],variadic:!0}]},max_by:{_func:this._functionMaxBy,_signature:[{types:[3]},{types:[6]}]},sum:{_func:this._functionSum,_signature:[{types:[8]}]},starts_with:{_func:this._functionStartsWith,_signature:[{types:[h]},{types:[h]}]},min:{_func:this._functionMin,_signature:[{types:[8,9]}]},min_by:{_func:this._functionMinBy,_signature:[{types:[3]},{types:[6]}]},type:{_func:this._functionType,_signature:[{types:[1]}]},keys:{_func:this._functionKeys,_signature:[{types:[4]}]},values:{_func:this._functionValues,_signature:[{types:[4]}]},sort:{_func:this._functionSort,_signature:[{types:[9,8]}]},sort_by:{_func:this._functionSortBy,_signature:[{types:[3]},{types:[6]}]},join:{_func:this._functionJoin,_signature:[{types:[h]},{types:[9]}]},reverse:{_func:this._functionReverse,_signature:[{types:[h,3]}]},to_array:{_func:this._functionToArray,_signature:[{types:[1]}]},to_string:{_func:this._functionToString,_signature:[{types:[1]}]},to_number:{_func:this._functionToNumber,_signature:[{types:[1]}]},not_null:{_func:this._functionNotNull,_signature:[{types:[1],variadic:!0}]}}}f[W]=0,f[V]=0,f[Y]=0,f[j]=0,f[E]=0,f[C]=0,f[_]=0,f[v]=0,f[F]=0,f[q]=0,f[Q]=1,f[J]=2,f.And=3,f.EQ=5,f.GT=5,f.LT=5,f[ue]=5,f[H]=5,f[$]=5,f[oe]=9,f[ee]=20,f[L]=21,f[S]=40,f[B]=45,f[G]=50,f[U]=55,f[re]=60,A.prototype={parse:function(ae){this._loadTokens(ae),this.index=0;var ye=this.expression(0);if(this._lookahead(0)!==W){var _e=this._lookaheadToken(0),Ie=new Error("Unexpected token type: "+_e.type+", value: "+_e.value);throw Ie.name="ParserError",Ie}return ye},_loadTokens:function(ae){var _e=(new w).tokenize(ae);_e.push({type:W,value:"",start:ae.length}),this.tokens=_e},expression:function(ae){var ye=this._lookaheadToken(0);this._advance();for(var _e=this.nud(ye),Ie=this._lookahead(0);ae<f[Ie];)this._advance(),_e=this.led(Ie,_e),Ie=this._lookahead(0);return _e},_lookahead:function(ae){return this.tokens[this.index+ae].type},_lookaheadToken:function(ae){return this.tokens[this.index+ae]},_advance:function(){this.index++},nud:function(ae){var _e,Ie;switch(ae.type){case ce:return{type:"Literal",value:ae.value};case V:return{type:"Field",name:ae.value};case Y:var Me={type:"Field",name:ae.value};if(this._lookahead(0)===re)throw new Error("Quoted identifier not allowed for function names.");return Me;case B:return{type:"NotExpression",children:[_e=this.expression(f.Not)]};case ee:return _e=null,{type:"ValueProjection",children:[{type:"Identity"},_e=this._lookahead(0)===j?{type:"Identity"}:this._parseProjectionRHS(f.Star)]};case L:return this.led(ae.type,{type:"Identity"});case G:return this._parseMultiselectHash();case oe:return{type:"Projection",children:[{type:oe,children:[{type:"Identity"}]},_e=this._parseProjectionRHS(f.Flatten)]};case U:return this._lookahead(0)===v||this._lookahead(0)===p?(_e=this._parseIndexExpression(),this._projectIfSlice({type:"Identity"},_e)):this._lookahead(0)===ee&&this._lookahead(1)===j?(this._advance(),this._advance(),{type:"Projection",children:[{type:"Identity"},_e=this._parseProjectionRHS(f.Star)]}):this._parseMultiselectList();case F:return{type:F};case q:return{type:"ExpressionReference",children:[Ie=this.expression(f.Expref)]};case re:for(var je=[];this._lookahead(0)!==E;)this._lookahead(0)===F?(Ie={type:F},this._advance()):Ie=this.expression(0),je.push(Ie);return this._match(E),je[0];default:this._errorToken(ae)}},led:function(ae,ye){var _e;switch(ae){case S:var Ie=f.Dot;return this._lookahead(0)!==ee?{type:"Subexpression",children:[ye,_e=this._parseDotRHS(Ie)]}:(this._advance(),{type:"ValueProjection",children:[ye,_e=this._parseProjectionRHS(Ie)]});case Q:return _e=this.expression(f.Pipe),{type:Q,children:[ye,_e]};case J:return{type:"OrExpression",children:[ye,_e=this.expression(f.Or)]};case"And":return{type:"AndExpression",children:[ye,_e=this.expression(f.And)]};case re:for(var Ke,Me=ye.name,je=[];this._lookahead(0)!==E;)this._lookahead(0)===F?(Ke={type:F},this._advance()):Ke=this.expression(0),this._lookahead(0)===C&&this._match(C),je.push(Ke);return this._match(E),{type:"Function",name:Me,children:je};case L:var at=this.expression(0);return this._match(j),{type:"FilterProjection",children:[ye,_e=this._lookahead(0)===oe?{type:"Identity"}:this._parseProjectionRHS(f.Filter),at]};case oe:return{type:"Projection",children:[{type:oe,children:[ye]},this._parseProjectionRHS(f.Flatten)]};case"EQ":case $:case"GT":case ue:case"LT":case H:return this._parseComparator(ye,ae);case U:var ze=this._lookaheadToken(0);return ze.type===v||ze.type===p?(_e=this._parseIndexExpression(),this._projectIfSlice(ye,_e)):(this._match(ee),this._match(j),{type:"Projection",children:[ye,_e=this._parseProjectionRHS(f.Star)]});default:this._errorToken(this._lookaheadToken(0))}},_match:function(ae){if(this._lookahead(0)!==ae){var ye=this._lookaheadToken(0),_e=new Error("Expected "+ae+", got: "+ye.type);throw _e.name="ParserError",_e}this._advance()},_errorToken:function(ae){var ye=new Error("Invalid token ("+ae.type+'): "'+ae.value+'"');throw ye.name="ParserError",ye},_parseIndexExpression:function(){if(this._lookahead(0)===p||this._lookahead(1)===p)return this._parseSliceExpression();var ae={type:"Index",value:this._lookaheadToken(0).value};return this._advance(),this._match(j),ae},_projectIfSlice:function(ae,ye){var _e={type:"IndexExpression",children:[ae,ye]};return"Slice"===ye.type?{type:"Projection",children:[_e,this._parseProjectionRHS(f.Star)]}:_e},_parseSliceExpression:function(){for(var ae=[null,null,null],ye=0,_e=this._lookahead(0);_e!==j&&ye<3;){if(_e===p)ye++,this._advance();else{if(_e!==v){var Ie=this._lookahead(0),Me=new Error("Syntax error, unexpected token: "+Ie.value+"("+Ie.type+")");throw Me.name="Parsererror",Me}ae[ye]=this._lookaheadToken(0).value,this._advance()}_e=this._lookahead(0)}return this._match(j),{type:"Slice",children:ae}},_parseComparator:function(ae,ye){return{type:"Comparator",name:ye,children:[ae,this.expression(f[ye])]}},_parseDotRHS:function(ae){var ye=this._lookahead(0);return[V,Y,ee].indexOf(ye)>=0?this.expression(ae):ye===U?(this._match(U),this._parseMultiselectList()):ye===G?(this._match(G),this._parseMultiselectHash()):void 0},_parseProjectionRHS:function(ae){var ye;if(f[this._lookahead(0)]<10)ye={type:"Identity"};else if(this._lookahead(0)===U)ye=this.expression(ae);else if(this._lookahead(0)===L)ye=this.expression(ae);else{if(this._lookahead(0)!==S){var _e=this._lookaheadToken(0),Ie=new Error("Sytanx error, unexpected token: "+_e.value+"("+_e.type+")");throw Ie.name="ParserError",Ie}this._match(S),ye=this._parseDotRHS(ae)}return ye},_parseMultiselectList:function(){for(var ae=[];this._lookahead(0)!==j;){var ye=this.expression(0);if(ae.push(ye),this._lookahead(0)===C&&(this._match(C),this._lookahead(0)===j))throw new Error("Unexpected token Rbracket")}return this._match(j),{type:"MultiSelectList",children:ae}},_parseMultiselectHash:function(){for(var _e,Ie,Me,ae=[],ye=[V,Y];;){if(_e=this._lookaheadToken(0),ye.indexOf(_e.type)<0)throw new Error("Expecting an identifier token, got: "+_e.type);if(Ie=_e.value,this._advance(),this._match(p),Me=this.expression(0),ae.push({type:"KeyValuePair",name:Ie,value:Me}),this._lookahead(0)===C)this._match(C);else if(this._lookahead(0)===_){this._match(_);break}}return{type:"MultiSelectHash",children:ae}}},I.prototype={search:function(ae,ye){return this.visit(ae,ye)},visit:function(ae,ye){var _e,Ie,Me,je,Ke,qe,at,ut,ze;switch(ae.type){case"Field":return null!==ye&&O(ye)?void 0===(qe=ye[ae.name])?null:qe:null;case"Subexpression":for(Me=this.visit(ae.children[0],ye),ze=1;ze<ae.children.length;ze++)if(null===(Me=this.visit(ae.children[1],Me)))return null;return Me;case"IndexExpression":return at=this.visit(ae.children[0],ye),this.visit(ae.children[1],at);case"Index":if(!a(ye))return null;var wt=ae.value;return wt<0&&(wt=ye.length+wt),void 0===(Me=ye[wt])&&(Me=null),Me;case"Slice":if(!a(ye))return null;var Lr=ae.children.slice(0),nr=this.computeSliceParams(ye.length,Lr),Ot=nr[0],br=nr[1],Kt=nr[2];if(Me=[],Kt>0)for(ze=Ot;ze<br;ze+=Kt)Me.push(ye[ze]);else for(ze=Ot;ze>br;ze+=Kt)Me.push(ye[ze]);return Me;case"Projection":var pt=this.visit(ae.children[0],ye);if(!a(pt))return null;for(ut=[],ze=0;ze<pt.length;ze++)null!==(Ie=this.visit(ae.children[1],pt[ze]))&&ut.push(Ie);return ut;case"ValueProjection":if(!O(pt=this.visit(ae.children[0],ye)))return null;ut=[];var Bt=function n(ae){for(var ye=Object.keys(ae),_e=[],Ie=0;Ie<ye.length;Ie++)_e.push(ae[ye[Ie]]);return _e}(pt);for(ze=0;ze<Bt.length;ze++)null!==(Ie=this.visit(ae.children[1],Bt[ze]))&&ut.push(Ie);return ut;case"FilterProjection":if(!a(pt=this.visit(ae.children[0],ye)))return null;var jt=[],mt=[];for(ze=0;ze<pt.length;ze++)r(_e=this.visit(ae.children[2],pt[ze]))||jt.push(pt[ze]);for(var xt=0;xt<jt.length;xt++)null!==(Ie=this.visit(ae.children[1],jt[xt]))&&mt.push(Ie);return mt;case"Comparator":switch(je=this.visit(ae.children[0],ye),Ke=this.visit(ae.children[1],ye),ae.name){case"EQ":Me=m(je,Ke);break;case $:Me=!m(je,Ke);break;case"GT":Me=je>Ke;break;case ue:Me=je>=Ke;break;case"LT":Me=je<Ke;break;case H:Me=je<=Ke;break;default:throw new Error("Unknown comparator: "+ae.name)}return Me;case oe:var Pt=this.visit(ae.children[0],ye);if(!a(Pt))return null;var Tt=[];for(ze=0;ze<Pt.length;ze++)a(Ie=Pt[ze])?Tt.push.apply(Tt,Ie):Tt.push(Ie);return Tt;case"Identity":return ye;case"MultiSelectList":if(null===ye)return null;for(ut=[],ze=0;ze<ae.children.length;ze++)ut.push(this.visit(ae.children[ze],ye));return ut;case"MultiSelectHash":if(null===ye)return null;var qt;for(ut={},ze=0;ze<ae.children.length;ze++)ut[(qt=ae.children[ze]).name]=this.visit(qt.value,ye);return ut;case"OrExpression":return r(_e=this.visit(ae.children[0],ye))&&(_e=this.visit(ae.children[1],ye)),_e;case"AndExpression":return!0===r(je=this.visit(ae.children[0],ye))?je:this.visit(ae.children[1],ye);case"NotExpression":return r(je=this.visit(ae.children[0],ye));case"Literal":return ae.value;case Q:return at=this.visit(ae.children[0],ye),this.visit(ae.children[1],at);case F:return ye;case"Function":var Ut=[];for(ze=0;ze<ae.children.length;ze++)Ut.push(this.visit(ae.children[ze],ye));return this.runtime.callFunction(ae.name,Ut);case"ExpressionReference":var Dt=ae.children[0];return Dt.jmespathType=q,Dt;default:throw new Error("Unknown node type: "+ae.type)}},computeSliceParams:function(ae,ye){var _e=ye[0],Ie=ye[1],Me=ye[2],je=[null,null,null];if(null===Me)Me=1;else if(0===Me){var Ke=new Error("Invalid slice, step cannot be 0");throw Ke.name="RuntimeError",Ke}var qe=Me<0;return _e=null===_e?qe?ae-1:0:this.capSliceRange(ae,_e,Me),Ie=null===Ie?qe?-1:ae:this.capSliceRange(ae,Ie,Me),je[0]=_e,je[1]=Ie,je[2]=Me,je},capSliceRange:function(ae,ye,_e){return ye<0?(ye+=ae)<0&&(ye=_e<0?-1:0):ye>=ae&&(ye=_e<0?ae-1:ae),ye}},ne.prototype={callFunction:function(ae,ye){var _e=this.functionTable[ae];if(void 0===_e)throw new Error("Unknown function: "+ae+"()");return this._validateArgs(ae,ye,_e._signature),_e._func.call(this,ye)},_validateArgs:function(ae,ye,_e){var Ie;if(_e[_e.length-1].variadic){if(ye.length<_e.length)throw Ie=1===_e.length?" argument":" arguments",new Error("ArgumentError: "+ae+"() takes at least"+_e.length+Ie+" but received "+ye.length)}else if(ye.length!==_e.length)throw Ie=1===_e.length?" argument":" arguments",new Error("ArgumentError: "+ae+"() takes "+_e.length+Ie+" but received "+ye.length);for(var Me,je,Ke,qe=0;qe<_e.length;qe++){Ke=!1,Me=_e[qe].types,je=this._getTypeName(ye[qe]);for(var at=0;at<Me.length;at++)if(this._typeMatches(je,Me[at],ye[qe])){Ke=!0;break}if(!Ke){var yt=Me.map(function(ut){return P[ut]}).join(",");throw new Error("TypeError: "+ae+"() expected argument "+(qe+1)+" to be type "+yt+" but received type "+P[je]+" instead.")}}},_typeMatches:function(ae,ye,_e){if(1===ye)return!0;if(9!==ye&&8!==ye&&3!==ye)return ae===ye;if(3===ye)return 3===ae;if(3===ae){var Ie;8===ye?Ie=e:9===ye&&(Ie=h);for(var Me=0;Me<_e.length;Me++)if(!this._typeMatches(this._getTypeName(_e[Me]),Ie,_e[Me]))return!1;return!0}},_getTypeName:function(ae){switch(Object.prototype.toString.call(ae)){case"[object String]":return h;case"[object Number]":return e;case"[object Array]":return 3;case"[object Boolean]":return 5;case"[object Null]":return 7;case"[object Object]":return ae.jmespathType===q?6:4}},_functionStartsWith:function(ae){return 0===ae[0].lastIndexOf(ae[1])},_functionEndsWith:function(ae){var ye=ae[0],_e=ae[1];return-1!==ye.indexOf(_e,ye.length-_e.length)},_functionReverse:function(ae){if(this._getTypeName(ae[0])===h){for(var _e=ae[0],Ie="",Me=_e.length-1;Me>=0;Me--)Ie+=_e[Me];return Ie}var je=ae[0].slice(0);return je.reverse(),je},_functionAbs:function(ae){return Math.abs(ae[0])},_functionCeil:function(ae){return Math.ceil(ae[0])},_functionAvg:function(ae){for(var ye=0,_e=ae[0],Ie=0;Ie<_e.length;Ie++)ye+=_e[Ie];return ye/_e.length},_functionContains:function(ae){return ae[0].indexOf(ae[1])>=0},_functionFloor:function(ae){return Math.floor(ae[0])},_functionLength:function(ae){return O(ae[0])?Object.keys(ae[0]).length:ae[0].length},_functionMap:function(ae){for(var ye=[],_e=this._interpreter,Ie=ae[0],Me=ae[1],je=0;je<Me.length;je++)ye.push(_e.visit(Ie,Me[je]));return ye},_functionMerge:function(ae){for(var ye={},_e=0;_e<ae.length;_e++){var Ie=ae[_e];for(var Me in Ie)ye[Me]=Ie[Me]}return ye},_functionMax:function(ae){if(ae[0].length>0){if(this._getTypeName(ae[0][0])===e)return Math.max.apply(Math,ae[0]);for(var _e=ae[0],Ie=_e[0],Me=1;Me<_e.length;Me++)Ie.localeCompare(_e[Me])<0&&(Ie=_e[Me]);return Ie}return null},_functionMin:function(ae){if(ae[0].length>0){if(this._getTypeName(ae[0][0])===e)return Math.min.apply(Math,ae[0]);for(var _e=ae[0],Ie=_e[0],Me=1;Me<_e.length;Me++)_e[Me].localeCompare(Ie)<0&&(Ie=_e[Me]);return Ie}return null},_functionSum:function(ae){for(var ye=0,_e=ae[0],Ie=0;Ie<_e.length;Ie++)ye+=_e[Ie];return ye},_functionType:function(ae){switch(this._getTypeName(ae[0])){case e:return"number";case h:return"string";case 3:return"array";case 4:return"object";case 5:return"boolean";case 6:return"expref";case 7:return"null"}},_functionKeys:function(ae){return Object.keys(ae[0])},_functionValues:function(ae){for(var ye=ae[0],_e=Object.keys(ye),Ie=[],Me=0;Me<_e.length;Me++)Ie.push(ye[_e[Me]]);return Ie},_functionJoin:function(ae){return ae[1].join(ae[0])},_functionToArray:function(ae){return 3===this._getTypeName(ae[0])?ae[0]:[ae[0]]},_functionToString:function(ae){return this._getTypeName(ae[0])===h?ae[0]:JSON.stringify(ae[0])},_functionToNumber:function(ae){var _e,ye=this._getTypeName(ae[0]);return ye===e?ae[0]:ye!==h||(_e=+ae[0],isNaN(_e))?null:_e},_functionNotNull:function(ae){for(var ye=0;ye<ae.length;ye++)if(7!==this._getTypeName(ae[ye]))return ae[ye];return null},_functionSort:function(ae){var ye=ae[0].slice(0);return ye.sort(),ye},_functionSortBy:function(ae){var ye=ae[0].slice(0);if(0===ye.length)return ye;var _e=this._interpreter,Ie=ae[1],Me=this._getTypeName(_e.visit(Ie,ye[0]));if([e,h].indexOf(Me)<0)throw new Error("TypeError");for(var je=this,Ke=[],qe=0;qe<ye.length;qe++)Ke.push([qe,ye[qe]]);Ke.sort(function(yt,ut){var ze=_e.visit(Ie,yt[1]),wt=_e.visit(Ie,ut[1]);if(je._getTypeName(ze)!==Me)throw new Error("TypeError: expected "+Me+", received "+je._getTypeName(ze));if(je._getTypeName(wt)!==Me)throw new Error("TypeError: expected "+Me+", received "+je._getTypeName(wt));return ze>wt?1:ze<wt?-1:yt[0]-ut[0]});for(var at=0;at<Ke.length;at++)ye[at]=Ke[at][1];return ye},_functionMaxBy:function(ae){for(var je,Ke,_e=ae[0],Ie=this.createKeyFunction(ae[1],[e,h]),Me=-1/0,qe=0;qe<_e.length;qe++)(Ke=Ie(_e[qe]))>Me&&(Me=Ke,je=_e[qe]);return je},_functionMinBy:function(ae){for(var je,Ke,_e=ae[0],Ie=this.createKeyFunction(ae[1],[e,h]),Me=1/0,qe=0;qe<_e.length;qe++)(Ke=Ie(_e[qe]))<Me&&(Me=Ke,je=_e[qe]);return je},createKeyFunction:function(ae,ye){var _e=this,Ie=this._interpreter;return function(je){var Ke=Ie.visit(ae,je);if(ye.indexOf(_e._getTypeName(Ke))<0){var qe="TypeError: expected one of "+ye+", received "+_e._getTypeName(Ke);throw new Error(qe)}return Ke}}},y.tokenize=function Re(ae){return(new w).tokenize(ae)},y.compile=function me(ae){return(new A).parse(ae)},y.search=function Pe(ae,ye){var _e=new A,Ie=new ne,Me=new I(Ie);Ie._interpreter=Me;var je=_e.parse(ye);return Me.search(je,ae)},y.strictDeepEqual=m}(k)},58668:le=>{"use strict";var k=Object.getOwnPropertySymbols,y=Object.prototype.hasOwnProperty,a=Object.prototype.propertyIsEnumerable;le.exports=function m(){try{if(!Object.assign)return!1;var r=new String("abc");if(r[5]="de","5"===Object.getOwnPropertyNames(r)[0])return!1;for(var n={},o=0;o<10;o++)n["_"+String.fromCharCode(o)]=o;if("0123456789"!==Object.getOwnPropertyNames(n).map(function(i){return n[i]}).join(""))return!1;var e={};return"abcdefghijklmnopqrst".split("").forEach(function(i){e[i]=i}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},e)).join("")}catch{return!1}}()?Object.assign:function(r,n){for(var o,e,l=function O(r){if(null==r)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(r)}(r),i=1;i<arguments.length;i++){for(var h in o=Object(arguments[i]))y.call(o,h)&&(l[h]=o[h]);if(k){e=k(o);for(var d=0;d<e.length;d++)a.call(o,e[d])&&(l[e[d]]=o[e[d]])}}return l}},95355:(le,k,y)=>{"use strict";y.d(k,{Gl:()=>a.B,dP:()=>ie,re:()=>ue});var a=y(15541),O=y(83753);function m(){}var o,r=function(){function H($,oe){void 0===$&&($=1/0),void 0===oe&&(oe=m),this.max=$,this.dispose=oe,this.map=new Map,this.newest=null,this.oldest=null}return H.prototype.has=function($){return this.map.has($)},H.prototype.get=function($){var oe=this.getNode($);return oe&&oe.value},H.prototype.getNode=function($){var oe=this.map.get($);if(oe&&oe!==this.newest){var ee=oe.older,L=oe.newer;L&&(L.older=ee),ee&&(ee.newer=L),oe.older=this.newest,oe.older.newer=oe,oe.newer=null,this.newest=oe,oe===this.oldest&&(this.oldest=L)}return oe},H.prototype.set=function($,oe){var ee=this.getNode($);return ee?ee.value=oe:(ee={key:$,value:oe,newer:null,older:this.newest},this.newest&&(this.newest.newer=ee),this.newest=ee,this.oldest=this.oldest||ee,this.map.set($,ee),ee.value)},H.prototype.clean=function(){for(;this.oldest&&this.map.size>this.max;)this.delete(this.oldest.key)},H.prototype.delete=function($){var oe=this.map.get($);return!!oe&&(oe===this.newest&&(this.newest=oe.older),oe===this.oldest&&(this.oldest=oe.newer),oe.newer&&(oe.newer.older=oe.older),oe.older&&(oe.older.newer=oe.newer),this.map.delete($),this.dispose(oe.value,$),!0)},H}(),n=new O.g7,l=Object.prototype.hasOwnProperty,e=void 0===(o=Array.from)?function(H){var $=[];return H.forEach(function(oe){return $.push(oe)}),$}:o;function i(H){var $=H.unsubscribe;"function"==typeof $&&(H.unsubscribe=void 0,$())}var h=[],d=100;function g(H,$){if(!H)throw new Error($||"assertion failure")}function T(H){switch(H.length){case 0:throw new Error("unknown value");case 1:return H[0];case 2:throw H[1]}}var R=function(){function H($){this.fn=$,this.parents=new Set,this.childValues=new Map,this.dirtyChildren=null,this.dirty=!0,this.recomputing=!1,this.value=[],this.deps=null,++H.count}return H.prototype.peek=function(){if(1===this.value.length&&!V(this))return x(this),this.value[0]},H.prototype.recompute=function($){return g(!this.recomputing,"already recomputing"),x(this),V(this)?function P(H,$){return F(H),n.withValue(H,W,[H,$]),function Q(H,$){if("function"==typeof H.subscribe)try{i(H),H.unsubscribe=H.subscribe.apply(null,$)}catch{return H.setDirty(),!1}return!0}(H,$)&&function Y(H){H.dirty=!1,!V(H)&&E(H)}(H),T(H.value)}(this,$):T(this.value)},H.prototype.setDirty=function(){this.dirty||(this.dirty=!0,this.value.length=0,j(this),i(this))},H.prototype.dispose=function(){var $=this;this.setDirty(),F(this),C(this,function(oe,ee){oe.setDirty(),q(oe,$)})},H.prototype.forget=function(){this.dispose()},H.prototype.dependOn=function($){$.add(this),this.deps||(this.deps=h.pop()||new Set),this.deps.add($)},H.prototype.forgetDeps=function(){var $=this;this.deps&&(e(this.deps).forEach(function(oe){return oe.delete($)}),this.deps.clear(),h.push(this.deps),this.deps=null)},H.count=0,H}();function x(H){var $=n.getValue();if($)return H.parents.add($),$.childValues.has(H)||$.childValues.set(H,[]),V(H)?p($,H):_($,H),$}function W(H,$){H.recomputing=!0,H.value.length=0;try{H.value[0]=H.fn.apply(null,$)}catch(oe){H.value[1]=oe}H.recomputing=!1}function V(H){return H.dirty||!(!H.dirtyChildren||!H.dirtyChildren.size)}function j(H){C(H,p)}function E(H){C(H,_)}function C(H,$){var oe=H.parents.size;if(oe)for(var ee=e(H.parents),L=0;L<oe;++L)$(ee[L],H)}function p(H,$){g(H.childValues.has($)),g(V($));var oe=!V(H);if(H.dirtyChildren){if(H.dirtyChildren.has($))return}else H.dirtyChildren=h.pop()||new Set;H.dirtyChildren.add($),oe&&j(H)}function _(H,$){g(H.childValues.has($)),g(!V($));var oe=H.childValues.get($);0===oe.length?H.childValues.set($,function M(H){return H.slice(0)}($.value)):function b(H,$){var oe=H.length;return oe>0&&oe===$.length&&H[oe-1]===$[oe-1]}(oe,$.value)||H.setDirty(),v(H,$),!V(H)&&E(H)}function v(H,$){var oe=H.dirtyChildren;oe&&(oe.delete($),0===oe.size&&(h.length<d&&h.push(oe),H.dirtyChildren=null))}function F(H){H.childValues.size>0&&H.childValues.forEach(function($,oe){q(H,oe)}),H.forgetDeps(),g(null===H.dirtyChildren)}function q(H,$){$.parents.delete(H),H.childValues.delete($),v(H,$)}var J={setDirty:!0,dispose:!0,forget:!0};function ie(H){var $=new Map,oe=H&&H.subscribe;function ee(L){var S=n.getValue();if(S){var B=$.get(L);B||$.set(L,B=new Set),S.dependOn(B),"function"==typeof oe&&(i(B),B.unsubscribe=oe(L))}}return ee.dirty=function(S,B){var G=$.get(S);if(G){var U=B&&l.call(J,B)?B:"setDirty";e(G).forEach(function(re){return re[U]()}),$.delete(S),i(G)}},ee}function Se(){var H=new a.B("function"==typeof WeakMap);return function(){return H.lookupArray(arguments)}}Se();var ge=new Set;function ue(H,$){void 0===$&&($=Object.create(null));var oe=new r($.max||Math.pow(2,16),function(re){return re.dispose()}),ee=$.keyArgs,L=$.makeCacheKey||Se(),S=function(){var re=L.apply(null,ee?ee.apply(null,arguments):arguments);if(void 0===re)return H.apply(null,arguments);var ce=oe.get(re);ce||(oe.set(re,ce=new R(H)),ce.subscribe=$.subscribe,ce.forget=function(){return oe.delete(re)});var be=ce.recompute(Array.prototype.slice.call(arguments));return oe.set(re,ce),ge.add(oe),n.hasValue()||(ge.forEach(function(Z){return Z.clean()}),ge.clear()),be};function B(re){var ce=oe.get(re);ce&&ce.setDirty()}function G(re){var ce=oe.get(re);if(ce)return ce.peek()}function U(re){return oe.delete(re)}return Object.defineProperty(S,"size",{get:function(){return oe.map.size},configurable:!1,enumerable:!1}),S.dirtyKey=B,S.dirty=function(){B(L.apply(null,arguments))},S.peekKey=G,S.peek=function(){return G(L.apply(null,arguments))},S.forgetKey=U,S.forget=function(){return U(L.apply(null,arguments))},S.makeCacheKey=L,S.getKey=ee?function(){return L.apply(null,ee.apply(null,arguments))}:L,Object.freeze(S)}},58253:le=>{"use strict";function k(y,a){return Object.prototype.hasOwnProperty.call(y,a)}le.exports=function(y,a,O,m){O=O||"=";var r={};if("string"!=typeof y||0===y.length)return r;var n=/\+/g;y=y.split(a=a||"&");var o=1e3;m&&"number"==typeof m.maxKeys&&(o=m.maxKeys);var l=y.length;o>0&&l>o&&(l=o);for(var e=0;e<l;++e){var d,g,b,T,i=y[e].replace(n,"%20"),h=i.indexOf(O);h>=0?(d=i.substr(0,h),g=i.substr(h+1)):(d=i,g=""),b=decodeURIComponent(d),T=decodeURIComponent(g),k(r,b)?Array.isArray(r[b])?r[b].push(T):r[b]=[r[b],T]:r[b]=T}return r}},24549:le=>{"use strict";var k=function(y){switch(typeof y){case"string":return y;case"boolean":return y?"true":"false";case"number":return isFinite(y)?y:"";default:return""}};le.exports=function(y,a,O,m){return a=a||"&",O=O||"=",null===y&&(y=void 0),"object"==typeof y?Object.keys(y).map(function(r){var n=encodeURIComponent(k(r))+O;return Array.isArray(y[r])?y[r].map(function(o){return n+encodeURIComponent(k(o))}).join(a):n+encodeURIComponent(k(y[r]))}).join(a):m?encodeURIComponent(k(m))+O+encodeURIComponent(k(y)):""}},19446:(le,k,y)=>{"use strict";k.decode=k.parse=y(58253),k.encode=k.stringify=y(24549)},6135:function(le,k,y){var a;le=y.nmd(le),function(O){"object"==typeof global&&global;var o,l=2147483647,e=36,h=26,d=38,g=700,R=/^xn--/,x=/[^\x20-\x7E]/,P=/[\x2E\u3002\uFF0E\uFF61]/g,W={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},V=e-1,Y=Math.floor,j=String.fromCharCode;function C(ue){throw RangeError(W[ue])}function p(ue,H){for(var $=ue.length,oe=[];$--;)oe[$]=H(ue[$]);return oe}function _(ue,H){var $=ue.split("@"),oe="";return $.length>1&&(oe=$[0]+"@",ue=$[1]),oe+p((ue=ue.replace(P,".")).split("."),H).join(".")}function v(ue){for(var ee,L,H=[],$=0,oe=ue.length;$<oe;)(ee=ue.charCodeAt($++))>=55296&&ee<=56319&&$<oe?56320==(64512&(L=ue.charCodeAt($++)))?H.push(((1023&ee)<<10)+(1023&L)+65536):(H.push(ee),$--):H.push(ee);return H}function F(ue){return p(ue,function(H){var $="";return H>65535&&($+=j((H-=65536)>>>10&1023|55296),H=56320|1023&H),$+j(H)}).join("")}function q(ue){return ue-48<10?ue-22:ue-65<26?ue-65:ue-97<26?ue-97:e}function Q(ue,H){return ue+22+75*(ue<26)-((0!=H)<<5)}function J(ue,H,$){var oe=0;for(ue=$?Y(ue/g):ue>>1,ue+=Y(ue/H);ue>V*h>>1;oe+=e)ue=Y(ue/V);return Y(oe+(V+1)*ue/(ue+d))}function ie(ue){var oe,B,G,U,re,ce,be,Z,de,he,H=[],$=ue.length,ee=0,L=128,S=72;for((B=ue.lastIndexOf("-"))<0&&(B=0),G=0;G<B;++G)ue.charCodeAt(G)>=128&&C("not-basic"),H.push(ue.charCodeAt(G));for(U=B>0?B+1:0;U<$;){for(re=ee,ce=1,be=e;U>=$&&C("invalid-input"),((Z=q(ue.charCodeAt(U++)))>=e||Z>Y((l-ee)/ce))&&C("overflow"),ee+=Z*ce,!(Z<(de=be<=S?1:be>=S+h?h:be-S));be+=e)ce>Y(l/(he=e-de))&&C("overflow"),ce*=he;S=J(ee-re,oe=H.length+1,0==re),Y(ee/oe)>l-L&&C("overflow"),L+=Y(ee/oe),ee%=oe,H.splice(ee++,0,L)}return F(H)}function Se(ue){var H,$,oe,ee,L,S,B,G,U,re,ce,Z,de,he,Ee,be=[];for(Z=(ue=v(ue)).length,H=128,$=0,L=72,S=0;S<Z;++S)(ce=ue[S])<128&&be.push(j(ce));for(oe=ee=be.length,ee&&be.push("-");oe<Z;){for(B=l,S=0;S<Z;++S)(ce=ue[S])>=H&&ce<B&&(B=ce);for(B-H>Y((l-$)/(de=oe+1))&&C("overflow"),$+=(B-H)*de,H=B,S=0;S<Z;++S)if((ce=ue[S])<H&&++$>l&&C("overflow"),ce==H){for(G=$,U=e;!(G<(re=U<=L?1:U>=L+h?h:U-L));U+=e)be.push(j(Q(re+(Ee=G-re)%(he=e-re),0))),G=Y(Ee/he);be.push(j(Q(G,0))),L=J($,de,oe==ee),$=0,++oe}++$,++H}return be.join("")}o={version:"1.3.2",ucs2:{decode:v,encode:F},decode:ie,encode:Se,toASCII:function ge(ue){return _(ue,function(H){return x.test(H)?"xn--"+Se(H):H})},toUnicode:function te(ue){return _(ue,function(H){return R.test(H)?ie(H.slice(4).toLowerCase()):H})}},void 0!==(a=function(){return o}.call(k,y,k,le))&&(le.exports=a)}()},22016:(le,k,y)=>{"use strict";var a=y(6135),O=y(95795);function m(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}k.parse=W,k.resolve=function Y(E,C){return W(E,!1,!0).resolve(C)},k.resolveObject=function j(E,C){return E?W(E,!1,!0).resolveObject(C):C},k.format=function V(E){return O.isString(E)&&(E=W(E)),E instanceof m?E.format():m.prototype.format.call(E)},k.Url=m;var r=/^([a-z0-9.+-]+:)/i,n=/:[0-9]*$/,o=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,e=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),i=["'"].concat(e),h=["%","/","?",";","#"].concat(i),d=["/","?","#"],b=/^[+a-z0-9A-Z_-]{0,63}$/,T=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,M={javascript:!0,"javascript:":!0},R={javascript:!0,"javascript:":!0},x={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},P=y(19446);function W(E,C,p){if(E&&O.isObject(E)&&E instanceof m)return E;var _=new m;return _.parse(E,C,p),_}m.prototype.parse=function(E,C,p){if(!O.isString(E))throw new TypeError("Parameter 'url' must be a string, not "+typeof E);var _=E.indexOf("?"),v=-1!==_&&_<E.indexOf("#")?"?":"#",F=E.split(v);F[0]=F[0].replace(/\\/g,"/");var Q=E=F.join(v);if(Q=Q.trim(),!p&&1===E.split("#").length){var J=o.exec(Q);if(J)return this.path=Q,this.href=Q,this.pathname=J[1],J[2]?(this.search=J[2],this.query=C?P.parse(this.search.substr(1)):this.search.substr(1)):C&&(this.search="",this.query={}),this}var ie=r.exec(Q);if(ie){var Se=(ie=ie[0]).toLowerCase();this.protocol=Se,Q=Q.substr(ie.length)}if(p||ie||Q.match(/^\/\/[^@\/]+@[^@\/]+/)){var te="//"===Q.substr(0,2);te&&(!ie||!R[ie])&&(Q=Q.substr(2),this.slashes=!0)}if(!R[ie]&&(te||ie&&!x[ie])){for(var ge=-1,ue=0;ue<d.length;ue++)-1!==(H=Q.indexOf(d[ue]))&&(-1===ge||H<ge)&&(ge=H);var $,oe;for(-1!==(oe=-1===ge?Q.lastIndexOf("@"):Q.lastIndexOf("@",ge))&&($=Q.slice(0,oe),Q=Q.slice(oe+1),this.auth=decodeURIComponent($)),ge=-1,ue=0;ue<h.length;ue++){var H;-1!==(H=Q.indexOf(h[ue]))&&(-1===ge||H<ge)&&(ge=H)}-1===ge&&(ge=Q.length),this.host=Q.slice(0,ge),Q=Q.slice(ge),this.parseHost(),this.hostname=this.hostname||"";var ee="["===this.hostname[0]&&"]"===this.hostname[this.hostname.length-1];if(!ee)for(var L=this.hostname.split(/\./),S=(ue=0,L.length);ue<S;ue++){var B=L[ue];if(B&&!B.match(b)){for(var G="",U=0,re=B.length;U<re;U++)B.charCodeAt(U)>127?G+="x":G+=B[U];if(!G.match(b)){var ce=L.slice(0,ue),be=L.slice(ue+1),Z=B.match(T);Z&&(ce.push(Z[1]),be.unshift(Z[2])),be.length&&(Q="/"+be.join(".")+Q),this.hostname=ce.join(".");break}}}this.hostname=this.hostname.length>255?"":this.hostname.toLowerCase(),ee||(this.hostname=a.toASCII(this.hostname)),this.host=(this.hostname||"")+(this.port?":"+this.port:""),this.href+=this.host,ee&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==Q[0]&&(Q="/"+Q))}if(!M[Se])for(ue=0,S=i.length;ue<S;ue++){var Ee=i[ue];if(-1!==Q.indexOf(Ee)){var K=encodeURIComponent(Ee);K===Ee&&(K=escape(Ee)),Q=Q.split(Ee).join(K)}}var w=Q.indexOf("#");-1!==w&&(this.hash=Q.substr(w),Q=Q.slice(0,w));var f=Q.indexOf("?");return-1!==f?(this.search=Q.substr(f),this.query=Q.substr(f+1),C&&(this.query=P.parse(this.query)),Q=Q.slice(0,f)):C&&(this.search="",this.query={}),Q&&(this.pathname=Q),x[Se]&&this.hostname&&!this.pathname&&(this.pathname="/"),(this.pathname||this.search)&&(this.path=(this.pathname||"")+(this.search||"")),this.href=this.format(),this},m.prototype.format=function(){var E=this.auth||"";E&&(E=(E=encodeURIComponent(E)).replace(/%3A/i,":"),E+="@");var C=this.protocol||"",p=this.pathname||"",_=this.hash||"",v=!1,F="";this.host?v=E+this.host:this.hostname&&(v=E+(-1===this.hostname.indexOf(":")?this.hostname:"["+this.hostname+"]"),this.port&&(v+=":"+this.port)),this.query&&O.isObject(this.query)&&Object.keys(this.query).length&&(F=P.stringify(this.query));var q=this.search||F&&"?"+F||"";return C&&":"!==C.substr(-1)&&(C+=":"),this.slashes||(!C||x[C])&&!1!==v?(v="//"+(v||""),p&&"/"!==p.charAt(0)&&(p="/"+p)):v||(v=""),_&&"#"!==_.charAt(0)&&(_="#"+_),q&&"?"!==q.charAt(0)&&(q="?"+q),C+v+(p=p.replace(/[?#]/g,function(Q){return encodeURIComponent(Q)}))+(q=q.replace("#","%23"))+_},m.prototype.resolve=function(E){return this.resolveObject(W(E,!1,!0)).format()},m.prototype.resolveObject=function(E){if(O.isString(E)){var C=new m;C.parse(E,!1,!0),E=C}for(var p=new m,_=Object.keys(this),v=0;v<_.length;v++){var F=_[v];p[F]=this[F]}if(p.hash=E.hash,""===E.href)return p.href=p.format(),p;if(E.slashes&&!E.protocol){for(var q=Object.keys(E),Q=0;Q<q.length;Q++){var J=q[Q];"protocol"!==J&&(p[J]=E[J])}return x[p.protocol]&&p.hostname&&!p.pathname&&(p.path=p.pathname="/"),p.href=p.format(),p}if(E.protocol&&E.protocol!==p.protocol){if(!x[E.protocol]){for(var ie=Object.keys(E),Se=0;Se<ie.length;Se++){var te=ie[Se];p[te]=E[te]}return p.href=p.format(),p}if(p.protocol=E.protocol,E.host||R[E.protocol])p.pathname=E.pathname;else{for(var S=(E.pathname||"").split("/");S.length&&!(E.host=S.shift()););E.host||(E.host=""),E.hostname||(E.hostname=""),""!==S[0]&&S.unshift(""),S.length<2&&S.unshift(""),p.pathname=S.join("/")}return p.search=E.search,p.query=E.query,p.host=E.host||"",p.auth=E.auth,p.hostname=E.hostname||E.host,p.port=E.port,(p.pathname||p.search)&&(p.path=(p.pathname||"")+(p.search||"")),p.slashes=p.slashes||E.slashes,p.href=p.format(),p}var H=p.pathname&&"/"===p.pathname.charAt(0),$=E.host||E.pathname&&"/"===E.pathname.charAt(0),oe=$||H||p.host&&E.pathname,ee=oe,L=p.pathname&&p.pathname.split("/")||[],B=(S=E.pathname&&E.pathname.split("/")||[],p.protocol&&!x[p.protocol]);if(B&&(p.hostname="",p.port=null,p.host&&(""===L[0]?L[0]=p.host:L.unshift(p.host)),p.host="",E.protocol&&(E.hostname=null,E.port=null,E.host&&(""===S[0]?S[0]=E.host:S.unshift(E.host)),E.host=null),oe=oe&&(""===S[0]||""===L[0])),$)p.host=E.host||""===E.host?E.host:p.host,p.hostname=E.hostname||""===E.hostname?E.hostname:p.hostname,p.search=E.search,p.query=E.query,L=S;else if(S.length)L||(L=[]),L.pop(),L=L.concat(S),p.search=E.search,p.query=E.query;else if(!O.isNullOrUndefined(E.search))return B&&(p.hostname=p.host=L.shift(),(G=!!(p.host&&p.host.indexOf("@")>0)&&p.host.split("@"))&&(p.auth=G.shift(),p.host=p.hostname=G.shift())),p.search=E.search,p.query=E.query,(!O.isNull(p.pathname)||!O.isNull(p.search))&&(p.path=(p.pathname?p.pathname:"")+(p.search?p.search:"")),p.href=p.format(),p;if(!L.length)return p.pathname=null,p.path=p.search?"/"+p.search:null,p.href=p.format(),p;for(var U=L.slice(-1)[0],re=(p.host||E.host||L.length>1)&&("."===U||".."===U)||""===U,ce=0,be=L.length;be>=0;be--)"."===(U=L[be])?L.splice(be,1):".."===U?(L.splice(be,1),ce++):ce&&(L.splice(be,1),ce--);if(!oe&&!ee)for(;ce--;ce)L.unshift("..");oe&&""!==L[0]&&(!L[0]||"/"!==L[0].charAt(0))&&L.unshift(""),re&&"/"!==L.join("/").substr(-1)&&L.push("");var G,Z=""===L[0]||L[0]&&"/"===L[0].charAt(0);return B&&(p.hostname=p.host=Z?"":L.length?L.shift():"",(G=!!(p.host&&p.host.indexOf("@")>0)&&p.host.split("@"))&&(p.auth=G.shift(),p.host=p.hostname=G.shift())),(oe=oe||p.host&&L.length)&&!Z&&L.unshift(""),L.length?p.pathname=L.join("/"):(p.pathname=null,p.path=null),(!O.isNull(p.pathname)||!O.isNull(p.search))&&(p.path=(p.pathname?p.pathname:"")+(p.search?p.search:"")),p.auth=E.auth||p.auth,p.slashes=p.slashes||E.slashes,p.href=p.format(),p},m.prototype.parseHost=function(){var E=this.host,C=n.exec(E);C&&(":"!==(C=C[0])&&(this.port=C.substr(1)),E=E.substr(0,E.length-C.length)),E&&(this.hostname=E)}},95795:le=>{"use strict";le.exports={isString:function(k){return"string"==typeof k},isObject:function(k){return"object"==typeof k&&null!==k},isNull:function(k){return null===k},isNullOrUndefined:function(k){return null==k}}},19884:le=>{le.exports=function(y){return y&&"object"==typeof y&&"function"==typeof y.copy&&"function"==typeof y.fill&&"function"==typeof y.readUInt8}},19192:(le,k,y)=>{"use strict";var a=y(58344),O=y(41186),m=y(55319),r=y(53662);function n(f){return f.call.bind(f)}var o=typeof BigInt<"u",l=typeof Symbol<"u",e=n(Object.prototype.toString),i=n(Number.prototype.valueOf),h=n(String.prototype.valueOf),d=n(Boolean.prototype.valueOf);if(o)var g=n(BigInt.prototype.valueOf);if(l)var b=n(Symbol.prototype.valueOf);function T(f,A){if("object"!=typeof f)return!1;try{return A(f),!0}catch{return!1}}function F(f){return"[object Map]"===e(f)}function Q(f){return"[object Set]"===e(f)}function ie(f){return"[object WeakMap]"===e(f)}function te(f){return"[object WeakSet]"===e(f)}function ue(f){return"[object ArrayBuffer]"===e(f)}function H(f){return!(typeof ArrayBuffer>"u")&&(ue.working?ue(f):f instanceof ArrayBuffer)}function $(f){return"[object DataView]"===e(f)}function oe(f){return!(typeof DataView>"u")&&($.working?$(f):f instanceof DataView)}k.isArgumentsObject=a,k.isGeneratorFunction=O,k.isTypedArray=r,k.isPromise=function M(f){return typeof Promise<"u"&&f instanceof Promise||null!==f&&"object"==typeof f&&"function"==typeof f.then&&"function"==typeof f.catch},k.isArrayBufferView=function R(f){return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?ArrayBuffer.isView(f):r(f)||oe(f)},k.isUint8Array=function x(f){return"Uint8Array"===m(f)},k.isUint8ClampedArray=function P(f){return"Uint8ClampedArray"===m(f)},k.isUint16Array=function W(f){return"Uint16Array"===m(f)},k.isUint32Array=function V(f){return"Uint32Array"===m(f)},k.isInt8Array=function Y(f){return"Int8Array"===m(f)},k.isInt16Array=function j(f){return"Int16Array"===m(f)},k.isInt32Array=function E(f){return"Int32Array"===m(f)},k.isFloat32Array=function C(f){return"Float32Array"===m(f)},k.isFloat64Array=function p(f){return"Float64Array"===m(f)},k.isBigInt64Array=function _(f){return"BigInt64Array"===m(f)},k.isBigUint64Array=function v(f){return"BigUint64Array"===m(f)},F.working=typeof Map<"u"&&F(new Map),k.isMap=function q(f){return!(typeof Map>"u")&&(F.working?F(f):f instanceof Map)},Q.working=typeof Set<"u"&&Q(new Set),k.isSet=function J(f){return!(typeof Set>"u")&&(Q.working?Q(f):f instanceof Set)},ie.working=typeof WeakMap<"u"&&ie(new WeakMap),k.isWeakMap=function Se(f){return!(typeof WeakMap>"u")&&(ie.working?ie(f):f instanceof WeakMap)},te.working=typeof WeakSet<"u"&&te(new WeakSet),k.isWeakSet=function ge(f){return te(f)},ue.working=typeof ArrayBuffer<"u"&&ue(new ArrayBuffer),k.isArrayBuffer=H,$.working=typeof ArrayBuffer<"u"&&typeof DataView<"u"&&$(new DataView(new ArrayBuffer(1),0,1)),k.isDataView=oe;var ee=typeof SharedArrayBuffer<"u"?SharedArrayBuffer:void 0;function L(f){return"[object SharedArrayBuffer]"===e(f)}function S(f){return!(typeof ee>"u")&&(typeof L.working>"u"&&(L.working=L(new ee)),L.working?L(f):f instanceof ee)}function be(f){return T(f,i)}function Z(f){return T(f,h)}function de(f){return T(f,d)}function he(f){return o&&T(f,g)}function Ee(f){return l&&T(f,b)}k.isSharedArrayBuffer=S,k.isAsyncFunction=function B(f){return"[object AsyncFunction]"===e(f)},k.isMapIterator=function G(f){return"[object Map Iterator]"===e(f)},k.isSetIterator=function U(f){return"[object Set Iterator]"===e(f)},k.isGeneratorObject=function re(f){return"[object Generator]"===e(f)},k.isWebAssemblyCompiledModule=function ce(f){return"[object WebAssembly.Module]"===e(f)},k.isNumberObject=be,k.isStringObject=Z,k.isBooleanObject=de,k.isBigIntObject=he,k.isSymbolObject=Ee,k.isBoxedPrimitive=function K(f){return be(f)||Z(f)||de(f)||he(f)||Ee(f)},k.isAnyArrayBuffer=function w(f){return typeof Uint8Array<"u"&&(H(f)||S(f))},["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(f){Object.defineProperty(k,f,{enumerable:!1,value:function(){throw new Error(f+" is not supported in userland")}})})},20147:(le,k,y)=>{var a=Object.getOwnPropertyDescriptors||function(oe){for(var ee=Object.keys(oe),L={},S=0;S<ee.length;S++)L[ee[S]]=Object.getOwnPropertyDescriptor(oe,ee[S]);return L},O=/%[sdj%]/g;k.format=function($){if(!Y($)){for(var oe=[],ee=0;ee<arguments.length;ee++)oe.push(o(arguments[ee]));return oe.join(" ")}ee=1;for(var L=arguments,S=L.length,B=String($).replace(O,function(U){if("%%"===U)return"%";if(ee>=S)return U;switch(U){case"%s":return String(L[ee++]);case"%d":return Number(L[ee++]);case"%j":try{return JSON.stringify(L[ee++])}catch{return"[Circular]"}default:return U}}),G=L[ee];ee<S;G=L[++ee])P(G)||!p(G)?B+=" "+G:B+=" "+o(G);return B},k.deprecate=function($,oe){if(typeof process<"u"&&!0===process.noDeprecation)return $;if(typeof process>"u")return function(){return k.deprecate($,oe).apply(this,arguments)};var ee=!1;return function L(){if(!ee){if(process.throwDeprecation)throw new Error(oe);process.traceDeprecation?console.trace(oe):console.error(oe),ee=!0}return $.apply(this,arguments)}};var m={},r=/^$/;if(process.env.NODE_DEBUG){var n=process.env.NODE_DEBUG;n=n.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase(),r=new RegExp("^"+n+"$","i")}function o($,oe){var ee={seen:[],stylize:e};return arguments.length>=3&&(ee.depth=arguments[2]),arguments.length>=4&&(ee.colors=arguments[3]),x(oe)?ee.showHidden=oe:oe&&k._extend(ee,oe),E(ee.showHidden)&&(ee.showHidden=!1),E(ee.depth)&&(ee.depth=2),E(ee.colors)&&(ee.colors=!1),E(ee.customInspect)&&(ee.customInspect=!0),ee.colors&&(ee.stylize=l),h(ee,$,ee.depth)}function l($,oe){var ee=o.styles[oe];return ee?"\x1b["+o.colors[ee][0]+"m"+$+"\x1b["+o.colors[ee][1]+"m":$}function e($,oe){return $}function h($,oe,ee){if($.customInspect&&oe&&F(oe.inspect)&&oe.inspect!==k.inspect&&(!oe.constructor||oe.constructor.prototype!==oe)){var L=oe.inspect(ee,$);return Y(L)||(L=h($,L,ee)),L}var S=function d($,oe){if(E(oe))return $.stylize("undefined","undefined");if(Y(oe)){var ee="'"+JSON.stringify(oe).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return $.stylize(ee,"string")}return V(oe)?$.stylize(""+oe,"number"):x(oe)?$.stylize(""+oe,"boolean"):P(oe)?$.stylize("null","null"):void 0}($,oe);if(S)return S;var B=Object.keys(oe),G=function i($){var oe={};return $.forEach(function(ee,L){oe[ee]=!0}),oe}(B);if($.showHidden&&(B=Object.getOwnPropertyNames(oe)),v(oe)&&(B.indexOf("message")>=0||B.indexOf("description")>=0))return g(oe);if(0===B.length){if(F(oe))return $.stylize("[Function"+(oe.name?": "+oe.name:"")+"]","special");if(C(oe))return $.stylize(RegExp.prototype.toString.call(oe),"regexp");if(_(oe))return $.stylize(Date.prototype.toString.call(oe),"date");if(v(oe))return g(oe)}var de,re="",ce=!1,be=["{","}"];return R(oe)&&(ce=!0,be=["[","]"]),F(oe)&&(re=" [Function"+(oe.name?": "+oe.name:"")+"]"),C(oe)&&(re=" "+RegExp.prototype.toString.call(oe)),_(oe)&&(re=" "+Date.prototype.toUTCString.call(oe)),v(oe)&&(re=" "+g(oe)),0!==B.length||ce&&0!=oe.length?ee<0?C(oe)?$.stylize(RegExp.prototype.toString.call(oe),"regexp"):$.stylize("[Object]","special"):($.seen.push(oe),de=ce?function b($,oe,ee,L,S){for(var B=[],G=0,U=oe.length;G<U;++G)te(oe,String(G))?B.push(T($,oe,ee,L,String(G),!0)):B.push("");return S.forEach(function(re){re.match(/^\d+$/)||B.push(T($,oe,ee,L,re,!0))}),B}($,oe,ee,G,B):B.map(function(he){return T($,oe,ee,G,he,ce)}),$.seen.pop(),function M($,oe,ee){var S=$.reduce(function(B,G){return G.indexOf("\n"),B+G.replace(/\u001b\[\d\d?m/g,"").length+1},0);return S>60?ee[0]+(""===oe?"":oe+"\n ")+" "+$.join(",\n ")+" "+ee[1]:ee[0]+oe+" "+$.join(", ")+" "+ee[1]}(de,re,be)):be[0]+re+be[1]}function g($){return"["+Error.prototype.toString.call($)+"]"}function T($,oe,ee,L,S,B){var G,U,re;if((re=Object.getOwnPropertyDescriptor(oe,S)||{value:oe[S]}).get?U=$.stylize(re.set?"[Getter/Setter]":"[Getter]","special"):re.set&&(U=$.stylize("[Setter]","special")),te(L,S)||(G="["+S+"]"),U||($.seen.indexOf(re.value)<0?(U=P(ee)?h($,re.value,null):h($,re.value,ee-1)).indexOf("\n")>-1&&(U=B?U.split("\n").map(function(ce){return" "+ce}).join("\n").substr(2):"\n"+U.split("\n").map(function(ce){return" "+ce}).join("\n")):U=$.stylize("[Circular]","special")),E(G)){if(B&&S.match(/^\d+$/))return U;(G=JSON.stringify(""+S)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(G=G.substr(1,G.length-2),G=$.stylize(G,"name")):(G=G.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),G=$.stylize(G,"string"))}return G+": "+U}function R($){return Array.isArray($)}function x($){return"boolean"==typeof $}function P($){return null===$}function V($){return"number"==typeof $}function Y($){return"string"==typeof $}function E($){return void 0===$}function C($){return p($)&&"[object RegExp]"===Q($)}function p($){return"object"==typeof $&&null!==$}function _($){return p($)&&"[object Date]"===Q($)}function v($){return p($)&&("[object Error]"===Q($)||$ instanceof Error)}function F($){return"function"==typeof $}function Q($){return Object.prototype.toString.call($)}function J($){return $<10?"0"+$.toString(10):$.toString(10)}k.debuglog=function($){if($=$.toUpperCase(),!m[$])if(r.test($)){var oe=process.pid;m[$]=function(){var ee=k.format.apply(k,arguments);console.error("%s %d: %s",$,oe,ee)}}else m[$]=function(){};return m[$]},k.inspect=o,o.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},o.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},k.types=y(19192),k.isArray=R,k.isBoolean=x,k.isNull=P,k.isNullOrUndefined=function W($){return null==$},k.isNumber=V,k.isString=Y,k.isSymbol=function j($){return"symbol"==typeof $},k.isUndefined=E,k.isRegExp=C,k.types.isRegExp=C,k.isObject=p,k.isDate=_,k.types.isDate=_,k.isError=v,k.types.isNativeError=v,k.isFunction=F,k.isPrimitive=function q($){return null===$||"boolean"==typeof $||"number"==typeof $||"string"==typeof $||"symbol"==typeof $||typeof $>"u"},k.isBuffer=y(19884);var ie=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function te($,oe){return Object.prototype.hasOwnProperty.call($,oe)}k.log=function(){console.log("%s - %s",function Se(){var $=new Date,oe=[J($.getHours()),J($.getMinutes()),J($.getSeconds())].join(":");return[$.getDate(),ie[$.getMonth()],oe].join(" ")}(),k.format.apply(k,arguments))},k.inherits=y(3011),k._extend=function($,oe){if(!oe||!p(oe))return $;for(var ee=Object.keys(oe),L=ee.length;L--;)$[ee[L]]=oe[ee[L]];return $};var ge=typeof Symbol<"u"?Symbol("util.promisify.custom"):void 0;function ue($,oe){if(!$){var ee=new Error("Promise was rejected with a falsy value");ee.reason=$,$=ee}return oe($)}k.promisify=function(oe){if("function"!=typeof oe)throw new TypeError('The "original" argument must be of type Function');if(ge&&oe[ge]){var ee;if("function"!=typeof(ee=oe[ge]))throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(ee,ge,{value:ee,enumerable:!1,writable:!1,configurable:!0}),ee}function ee(){for(var L,S,B=new Promise(function(re,ce){L=re,S=ce}),G=[],U=0;U<arguments.length;U++)G.push(arguments[U]);G.push(function(re,ce){re?S(re):L(ce)});try{oe.apply(this,G)}catch(re){S(re)}return B}return Object.setPrototypeOf(ee,Object.getPrototypeOf(oe)),ge&&Object.defineProperty(ee,ge,{value:ee,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(ee,a(oe))},k.promisify.custom=ge,k.callbackify=function H($){if("function"!=typeof $)throw new TypeError('The "original" argument must be of type Function');function oe(){for(var ee=[],L=0;L<arguments.length;L++)ee.push(arguments[L]);var S=ee.pop();if("function"!=typeof S)throw new TypeError("The last argument must be of type Function");var B=this,G=function(){return S.apply(B,arguments)};$.apply(this,ee).then(function(U){process.nextTick(G.bind(null,null,U))},function(U){process.nextTick(ue.bind(null,U,G))})}return Object.setPrototypeOf(oe,Object.getPrototypeOf($)),Object.defineProperties(oe,a($)),oe}},48132:(le,k,y)=>{"use strict";y.r(k),y.d(k,{NIL:()=>re,parse:()=>P,stringify:()=>h,v1:()=>R,v3:()=>H,v4:()=>oe,v5:()=>U,validate:()=>o,version:()=>be});var a,O=new Uint8Array(16);function m(){if(!a&&!(a=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto<"u"&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return a(O)}const r=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i,o=function n(Z){return"string"==typeof Z&&r.test(Z)};for(var l=[],e=0;e<256;++e)l.push((e+256).toString(16).substr(1));const h=function i(Z){var de=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,he=(l[Z[de+0]]+l[Z[de+1]]+l[Z[de+2]]+l[Z[de+3]]+"-"+l[Z[de+4]]+l[Z[de+5]]+"-"+l[Z[de+6]]+l[Z[de+7]]+"-"+l[Z[de+8]]+l[Z[de+9]]+"-"+l[Z[de+10]]+l[Z[de+11]]+l[Z[de+12]]+l[Z[de+13]]+l[Z[de+14]]+l[Z[de+15]]).toLowerCase();if(!o(he))throw TypeError("Stringified UUID is invalid");return he};var d,g,b=0,T=0;const R=function M(Z,de,he){var Ee=de&&he||0,K=de||new Array(16),w=(Z=Z||{}).node||d,f=void 0!==Z.clockseq?Z.clockseq:g;if(null==w||null==f){var A=Z.random||(Z.rng||m)();null==w&&(w=d=[1|A[0],A[1],A[2],A[3],A[4],A[5]]),null==f&&(f=g=16383&(A[6]<<8|A[7]))}var I=void 0!==Z.msecs?Z.msecs:Date.now(),ne=void 0!==Z.nsecs?Z.nsecs:T+1,me=I-b+(ne-T)/1e4;if(me<0&&void 0===Z.clockseq&&(f=f+1&16383),(me<0||I>b)&&void 0===Z.nsecs&&(ne=0),ne>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");b=I,T=ne,g=f;var Re=(1e4*(268435455&(I+=122192928e5))+ne)%4294967296;K[Ee++]=Re>>>24&255,K[Ee++]=Re>>>16&255,K[Ee++]=Re>>>8&255,K[Ee++]=255&Re;var Pe=I/4294967296*1e4&268435455;K[Ee++]=Pe>>>8&255,K[Ee++]=255&Pe,K[Ee++]=Pe>>>24&15|16,K[Ee++]=Pe>>>16&255,K[Ee++]=f>>>8|128,K[Ee++]=255&f;for(var ae=0;ae<6;++ae)K[Ee+ae]=w[ae];return de||h(K)},P=function x(Z){if(!o(Z))throw TypeError("Invalid UUID");var de,he=new Uint8Array(16);return he[0]=(de=parseInt(Z.slice(0,8),16))>>>24,he[1]=de>>>16&255,he[2]=de>>>8&255,he[3]=255&de,he[4]=(de=parseInt(Z.slice(9,13),16))>>>8,he[5]=255&de,he[6]=(de=parseInt(Z.slice(14,18),16))>>>8,he[7]=255&de,he[8]=(de=parseInt(Z.slice(19,23),16))>>>8,he[9]=255&de,he[10]=(de=parseInt(Z.slice(24,36),16))/1099511627776&255,he[11]=de/4294967296&255,he[12]=de>>>24&255,he[13]=de>>>16&255,he[14]=de>>>8&255,he[15]=255&de,he};function j(Z,de,he){function Ee(K,w,f,A){if("string"==typeof K&&(K=function W(Z){Z=unescape(encodeURIComponent(Z));for(var de=[],he=0;he<Z.length;++he)de.push(Z.charCodeAt(he));return de}(K)),"string"==typeof w&&(w=P(w)),16!==w.length)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");var I=new Uint8Array(16+K.length);if(I.set(w),I.set(K,w.length),(I=he(I))[6]=15&I[6]|de,I[8]=63&I[8]|128,f){A=A||0;for(var ne=0;ne<16;++ne)f[A+ne]=I[ne];return f}return h(I)}try{Ee.name=Z}catch{}return Ee.DNS="6ba7b810-9dad-11d1-80b4-00c04fd430c8",Ee.URL="6ba7b811-9dad-11d1-80b4-00c04fd430c8",Ee}function p(Z){return 14+(Z+64>>>9<<4)+1}function F(Z,de){var he=(65535&Z)+(65535&de);return(Z>>16)+(de>>16)+(he>>16)<<16|65535&he}function Q(Z,de,he,Ee,K,w){return F(function q(Z,de){return Z<<de|Z>>>32-de}(F(F(de,Z),F(Ee,w)),K),he)}function J(Z,de,he,Ee,K,w,f){return Q(de&he|~de&Ee,Z,de,K,w,f)}function ie(Z,de,he,Ee,K,w,f){return Q(de&Ee|he&~Ee,Z,de,K,w,f)}function Se(Z,de,he,Ee,K,w,f){return Q(de^he^Ee,Z,de,K,w,f)}function te(Z,de,he,Ee,K,w,f){return Q(he^(de|~Ee),Z,de,K,w,f)}const H=j("v3",48,function E(Z){if("string"==typeof Z){var de=unescape(encodeURIComponent(Z));Z=new Uint8Array(de.length);for(var he=0;he<de.length;++he)Z[he]=de.charCodeAt(he)}return function C(Z){for(var de=[],he=32*Z.length,Ee="0123456789abcdef",K=0;K<he;K+=8){var w=Z[K>>5]>>>K%32&255,f=parseInt(Ee.charAt(w>>>4&15)+Ee.charAt(15&w),16);de.push(f)}return de}(function _(Z,de){Z[de>>5]|=128<<de%32,Z[p(de)-1]=de;for(var he=1732584193,Ee=-271733879,K=-1732584194,w=271733878,f=0;f<Z.length;f+=16){var A=he,I=Ee,ne=K,me=w;he=J(he,Ee,K,w,Z[f],7,-680876936),w=J(w,he,Ee,K,Z[f+1],12,-389564586),K=J(K,w,he,Ee,Z[f+2],17,606105819),Ee=J(Ee,K,w,he,Z[f+3],22,-1044525330),he=J(he,Ee,K,w,Z[f+4],7,-176418897),w=J(w,he,Ee,K,Z[f+5],12,1200080426),K=J(K,w,he,Ee,Z[f+6],17,-1473231341),Ee=J(Ee,K,w,he,Z[f+7],22,-45705983),he=J(he,Ee,K,w,Z[f+8],7,1770035416),w=J(w,he,Ee,K,Z[f+9],12,-1958414417),K=J(K,w,he,Ee,Z[f+10],17,-42063),Ee=J(Ee,K,w,he,Z[f+11],22,-1990404162),he=J(he,Ee,K,w,Z[f+12],7,1804603682),w=J(w,he,Ee,K,Z[f+13],12,-40341101),K=J(K,w,he,Ee,Z[f+14],17,-1502002290),he=ie(he,Ee=J(Ee,K,w,he,Z[f+15],22,1236535329),K,w,Z[f+1],5,-165796510),w=ie(w,he,Ee,K,Z[f+6],9,-1069501632),K=ie(K,w,he,Ee,Z[f+11],14,643717713),Ee=ie(Ee,K,w,he,Z[f],20,-373897302),he=ie(he,Ee,K,w,Z[f+5],5,-701558691),w=ie(w,he,Ee,K,Z[f+10],9,38016083),K=ie(K,w,he,Ee,Z[f+15],14,-660478335),Ee=ie(Ee,K,w,he,Z[f+4],20,-405537848),he=ie(he,Ee,K,w,Z[f+9],5,568446438),w=ie(w,he,Ee,K,Z[f+14],9,-1019803690),K=ie(K,w,he,Ee,Z[f+3],14,-187363961),Ee=ie(Ee,K,w,he,Z[f+8],20,1163531501),he=ie(he,Ee,K,w,Z[f+13],5,-1444681467),w=ie(w,he,Ee,K,Z[f+2],9,-51403784),K=ie(K,w,he,Ee,Z[f+7],14,1735328473),he=Se(he,Ee=ie(Ee,K,w,he,Z[f+12],20,-1926607734),K,w,Z[f+5],4,-378558),w=Se(w,he,Ee,K,Z[f+8],11,-2022574463),K=Se(K,w,he,Ee,Z[f+11],16,1839030562),Ee=Se(Ee,K,w,he,Z[f+14],23,-35309556),he=Se(he,Ee,K,w,Z[f+1],4,-1530992060),w=Se(w,he,Ee,K,Z[f+4],11,1272893353),K=Se(K,w,he,Ee,Z[f+7],16,-155497632),Ee=Se(Ee,K,w,he,Z[f+10],23,-1094730640),he=Se(he,Ee,K,w,Z[f+13],4,681279174),w=Se(w,he,Ee,K,Z[f],11,-358537222),K=Se(K,w,he,Ee,Z[f+3],16,-722521979),Ee=Se(Ee,K,w,he,Z[f+6],23,76029189),he=Se(he,Ee,K,w,Z[f+9],4,-640364487),w=Se(w,he,Ee,K,Z[f+12],11,-421815835),K=Se(K,w,he,Ee,Z[f+15],16,530742520),he=te(he,Ee=Se(Ee,K,w,he,Z[f+2],23,-995338651),K,w,Z[f],6,-198630844),w=te(w,he,Ee,K,Z[f+7],10,1126891415),K=te(K,w,he,Ee,Z[f+14],15,-1416354905),Ee=te(Ee,K,w,he,Z[f+5],21,-57434055),he=te(he,Ee,K,w,Z[f+12],6,1700485571),w=te(w,he,Ee,K,Z[f+3],10,-1894986606),K=te(K,w,he,Ee,Z[f+10],15,-1051523),Ee=te(Ee,K,w,he,Z[f+1],21,-2054922799),he=te(he,Ee,K,w,Z[f+8],6,1873313359),w=te(w,he,Ee,K,Z[f+15],10,-30611744),K=te(K,w,he,Ee,Z[f+6],15,-1560198380),Ee=te(Ee,K,w,he,Z[f+13],21,1309151649),he=te(he,Ee,K,w,Z[f+4],6,-145523070),w=te(w,he,Ee,K,Z[f+11],10,-1120210379),K=te(K,w,he,Ee,Z[f+2],15,718787259),Ee=te(Ee,K,w,he,Z[f+9],21,-343485551),he=F(he,A),Ee=F(Ee,I),K=F(K,ne),w=F(w,me)}return[he,Ee,K,w]}(function v(Z){if(0===Z.length)return[];for(var de=8*Z.length,he=new Uint32Array(p(de)),Ee=0;Ee<de;Ee+=8)he[Ee>>5]|=(255&Z[Ee/8])<<Ee%32;return he}(Z),8*Z.length))}),oe=function $(Z,de,he){var Ee=(Z=Z||{}).random||(Z.rng||m)();if(Ee[6]=15&Ee[6]|64,Ee[8]=63&Ee[8]|128,de){he=he||0;for(var K=0;K<16;++K)de[he+K]=Ee[K];return de}return h(Ee)};function ee(Z,de,he,Ee){switch(Z){case 0:return de&he^~de&Ee;case 1:case 3:return de^he^Ee;case 2:return de&he^de&Ee^he&Ee}}function L(Z,de){return Z<<de|Z>>>32-de}const U=j("v5",80,function S(Z){var de=[1518500249,1859775393,2400959708,3395469782],he=[1732584193,4023233417,2562383102,271733878,3285377520];if("string"==typeof Z){var Ee=unescape(encodeURIComponent(Z));Z=[];for(var K=0;K<Ee.length;++K)Z.push(Ee.charCodeAt(K))}else Array.isArray(Z)||(Z=Array.prototype.slice.call(Z));Z.push(128);for(var f=Math.ceil((Z.length/4+2)/16),A=new Array(f),I=0;I<f;++I){for(var ne=new Uint32Array(16),me=0;me<16;++me)ne[me]=Z[64*I+4*me]<<24|Z[64*I+4*me+1]<<16|Z[64*I+4*me+2]<<8|Z[64*I+4*me+3];A[I]=ne}A[f-1][14]=8*(Z.length-1)/Math.pow(2,32),A[f-1][14]=Math.floor(A[f-1][14]),A[f-1][15]=8*(Z.length-1)&4294967295;for(var Re=0;Re<f;++Re){for(var Pe=new Uint32Array(80),ae=0;ae<16;++ae)Pe[ae]=A[Re][ae];for(var ye=16;ye<80;++ye)Pe[ye]=L(Pe[ye-3]^Pe[ye-8]^Pe[ye-14]^Pe[ye-16],1);for(var _e=he[0],Ie=he[1],Me=he[2],je=he[3],Ke=he[4],qe=0;qe<80;++qe){var at=Math.floor(qe/20),yt=L(_e,5)+ee(at,Ie,Me,je)+Ke+de[at]+Pe[qe]>>>0;Ke=je,je=Me,Me=L(Ie,30)>>>0,Ie=_e,_e=yt}he[0]=he[0]+_e>>>0,he[1]=he[1]+Ie>>>0,he[2]=he[2]+Me>>>0,he[3]=he[3]+je>>>0,he[4]=he[4]+Ke>>>0}return[he[0]>>24&255,he[0]>>16&255,he[0]>>8&255,255&he[0],he[1]>>24&255,he[1]>>16&255,he[1]>>8&255,255&he[1],he[2]>>24&255,he[2]>>16&255,he[2]>>8&255,255&he[2],he[3]>>24&255,he[3]>>16&255,he[3]>>8&255,255&he[3],he[4]>>24&255,he[4]>>16&255,he[4]>>8&255,255&he[4]]}),re="00000000-0000-0000-0000-000000000000",be=function ce(Z){if(!o(Z))throw TypeError("Invalid UUID");return parseInt(Z.substr(14,1),16)}},55319:(le,k,y)=>{"use strict";var a=y(39234),O=y(73763),m=y(73157),r=m("Object.prototype.toString"),n=y(47724)(),o=typeof globalThis>"u"?global:globalThis,l=O(),e=m("String.prototype.slice"),i={},h=y(10475),d=Object.getPrototypeOf;n&&h&&d&&a(l,function(T){if("function"==typeof o[T]){var M=new o[T];if(Symbol.toStringTag in M){var R=d(M),x=h(R,Symbol.toStringTag);if(!x){var P=d(R);x=h(P,Symbol.toStringTag)}i[T]=x.get}}});var b=y(53662);le.exports=function(M){return!!b(M)&&(n&&Symbol.toStringTag in M?function(M){var R=!1;return a(i,function(x,P){if(!R)try{var W=x.call(M);W===P&&(R=W)}catch{}}),R}(M):e(r(M),8,-1))}},13216:(le,k,y)=>{le.exports=y(28646).Observable},28646:(le,k)=>{"use strict";function a(E,C){if(!(E instanceof C))throw new TypeError("Cannot call a class as a function")}function O(E,C){for(var p=0;p<C.length;p++){var _=C[p];_.enumerable=_.enumerable||!1,_.configurable=!0,"value"in _&&(_.writable=!0),Object.defineProperty(E,_.key,_)}}function m(E,C,p){return C&&O(E.prototype,C),p&&O(E,p),E}k.Observable=void 0;var r=function(){return"function"==typeof Symbol},n=function(E){return r()&&!!Symbol[E]},o=function(E){return n(E)?Symbol[E]:"@@"+E};r()&&!n("observable")&&(Symbol.observable=Symbol("observable"));var l=o("iterator"),e=o("observable"),i=o("species");function h(E,C){var p=E[C];if(null!=p){if("function"!=typeof p)throw new TypeError(p+" is not a function");return p}}function d(E){var C=E.constructor;return void 0!==C&&null===(C=C[i])&&(C=void 0),void 0!==C?C:j}function b(E){b.log?b.log(E):setTimeout(function(){throw E})}function T(E){Promise.resolve().then(function(){try{E()}catch(C){b(C)}})}function M(E){var C=E._cleanup;if(void 0!==C&&(E._cleanup=void 0,C))try{if("function"==typeof C)C();else{var p=h(C,"unsubscribe");p&&p.call(C)}}catch(_){b(_)}}function R(E){E._observer=void 0,E._queue=void 0,E._state="closed"}function P(E,C,p){E._state="running";var _=E._observer;try{var v=h(_,C);switch(C){case"next":v&&v.call(_,p);break;case"error":if(R(E),!v)throw p;v.call(_,p);break;case"complete":R(E),v&&v.call(_)}}catch(F){b(F)}"closed"===E._state?M(E):"running"===E._state&&(E._state="ready")}function W(E,C,p){if("closed"!==E._state){if("buffering"===E._state)return void E._queue.push({type:C,value:p});if("ready"!==E._state)return E._state="buffering",E._queue=[{type:C,value:p}],void T(function(){return function x(E){var C=E._queue;if(C){E._queue=void 0,E._state="ready";for(var p=0;p<C.length&&(P(E,C[p].type,C[p].value),"closed"!==E._state);++p);}}(E)});P(E,C,p)}}var V=function(){function E(C,p){a(this,E),this._cleanup=void 0,this._observer=C,this._queue=void 0,this._state="initializing";var _=new Y(this);try{this._cleanup=p.call(void 0,_)}catch(v){_.error(v)}"initializing"===this._state&&(this._state="ready")}return m(E,[{key:"unsubscribe",value:function(){"closed"!==this._state&&(R(this),M(this))}},{key:"closed",get:function(){return"closed"===this._state}}]),E}(),Y=function(){function E(C){a(this,E),this._subscription=C}return m(E,[{key:"next",value:function(p){W(this._subscription,"next",p)}},{key:"error",value:function(p){W(this._subscription,"error",p)}},{key:"complete",value:function(){W(this._subscription,"complete")}},{key:"closed",get:function(){return"closed"===this._subscription._state}}]),E}(),j=function(){function E(C){if(a(this,E),!(this instanceof E))throw new TypeError("Observable cannot be called as a function");if("function"!=typeof C)throw new TypeError("Observable initializer must be a function");this._subscriber=C}return m(E,[{key:"subscribe",value:function(p){return("object"!=typeof p||null===p)&&(p={next:p,error:arguments[1],complete:arguments[2]}),new V(p,this._subscriber)}},{key:"forEach",value:function(p){var _=this;return new Promise(function(v,F){if("function"==typeof p)var Q=_.subscribe({next:function(J){try{p(J,q)}catch(ie){F(ie),Q.unsubscribe()}},error:F,complete:v});else F(new TypeError(p+" is not a function"));function q(){Q.unsubscribe(),v()}})}},{key:"map",value:function(p){var _=this;if("function"!=typeof p)throw new TypeError(p+" is not a function");return new(d(this))(function(F){return _.subscribe({next:function(q){try{q=p(q)}catch(Q){return F.error(Q)}F.next(q)},error:function(q){F.error(q)},complete:function(){F.complete()}})})}},{key:"filter",value:function(p){var _=this;if("function"!=typeof p)throw new TypeError(p+" is not a function");return new(d(this))(function(F){return _.subscribe({next:function(q){try{if(!p(q))return}catch(Q){return F.error(Q)}F.next(q)},error:function(q){F.error(q)},complete:function(){F.complete()}})})}},{key:"reduce",value:function(p){var _=this;if("function"!=typeof p)throw new TypeError(p+" is not a function");var v=d(this),F=arguments.length>1,q=!1,J=arguments[1];return new v(function(ie){return _.subscribe({next:function(Se){var te=!q;if(q=!0,!te||F)try{J=p(J,Se)}catch(ge){return ie.error(ge)}else J=Se},error:function(Se){ie.error(Se)},complete:function(){if(!q&&!F)return ie.error(new TypeError("Cannot reduce an empty sequence"));ie.next(J),ie.complete()}})})}},{key:"concat",value:function(){for(var p=this,_=arguments.length,v=new Array(_),F=0;F<_;F++)v[F]=arguments[F];var q=d(this);return new q(function(Q){var J,ie=0;return function Se(te){J=te.subscribe({next:function(ge){Q.next(ge)},error:function(ge){Q.error(ge)},complete:function(){ie===v.length?(J=void 0,Q.complete()):Se(q.from(v[ie++]))}})}(p),function(){J&&(J.unsubscribe(),J=void 0)}})}},{key:"flatMap",value:function(p){var _=this;if("function"!=typeof p)throw new TypeError(p+" is not a function");var v=d(this);return new v(function(F){var q=[],Q=_.subscribe({next:function(ie){if(p)try{ie=p(ie)}catch(te){return F.error(te)}var Se=v.from(ie).subscribe({next:function(te){F.next(te)},error:function(te){F.error(te)},complete:function(){var te=q.indexOf(Se);te>=0&&q.splice(te,1),J()}});q.push(Se)},error:function(ie){F.error(ie)},complete:function(){J()}});function J(){Q.closed&&0===q.length&&F.complete()}return function(){q.forEach(function(ie){return ie.unsubscribe()}),Q.unsubscribe()}})}},{key:e,value:function(){return this}}],[{key:"from",value:function(p){var _="function"==typeof this?this:E;if(null==p)throw new TypeError(p+" is not an object");var v=h(p,e);if(v){var F=v.call(p);if(Object(F)!==F)throw new TypeError(F+" is not an object");return function g(E){return E instanceof j}(F)&&F.constructor===_?F:new _(function(q){return F.subscribe(q)})}if(n("iterator")&&(v=h(p,l)))return new _(function(q){T(function(){if(!q.closed){var Q=!0,J=!1,ie=void 0;try{for(var te,Se=v.call(p)[Symbol.iterator]();!(Q=(te=Se.next()).done);Q=!0)if(q.next(te.value),q.closed)return}catch(ue){J=!0,ie=ue}finally{try{!Q&&null!=Se.return&&Se.return()}finally{if(J)throw ie}}q.complete()}})});if(Array.isArray(p))return new _(function(q){T(function(){if(!q.closed){for(var Q=0;Q<p.length;++Q)if(q.next(p[Q]),q.closed)return;q.complete()}})});throw new TypeError(p+" is not observable")}},{key:"of",value:function(){for(var p=arguments.length,_=new Array(p),v=0;v<p;v++)_[v]=arguments[v];return new("function"==typeof this?this:E)(function(q){T(function(){if(!q.closed){for(var Q=0;Q<_.length;++Q)if(q.next(_[Q]),q.closed)return;q.complete()}})})}},{key:i,get:function(){return this}}]),E}();k.Observable=j,r()&&Object.defineProperty(j,Symbol("extensions"),{value:{symbol:e,hostReportError:b},configurable:!0})},81667:(le,k,y)=>{"use strict";y.r(k),y.d(k,{AppSyncRequestHandler:()=>h});var a=y(50365),O=y(64698),m=y(26358),r=y(4822),o=y(10653),l=y(94308),e=y(56881),i=y(51356);class h{handle(g){return new a.y(b=>{const T="string"==typeof g.additionalParams?.aws_appsync_graphqlEndpoint?g.additionalParams.aws_appsync_graphqlEndpoint:"",M="string"==typeof g.additionalParams?.aws_appsync_region?g.additionalParams.aws_appsync_region:"",R={type:"string"==typeof g.additionalParams?.aws_appsync_authenticationType?g.additionalParams.aws_appsync_authenticationType:"",apiKey:"string"==typeof g.additionalParams?.aws_appsync_apiKey?g.additionalParams.aws_appsync_apiKey:"",jwtToken:"string"==typeof g.additionalParams?.aws_appsync_jwtToken?g.additionalParams.aws_appsync_jwtToken:""},x=o.ApolloLink.from([(0,m.W9)({url:T,region:M,auth:R}),(0,r.createSubscriptionHandshakeLink)({url:T,region:M,auth:R})]),P=new l.f({link:x,cache:new e.h}),W=Date.now();return this.subscription=P.subscribe({query:(0,O.Qc)(g.query),variables:g.variables}).subscribe((0,i.P)(b,g.url,W)),()=>{this.destroy()}})}destroy(){this.subscription?.closed&&this.subscription?.unsubscribe()}}},53073:function(le,k,y){"use strict";var P,a=this&&this.__extends||(P=function(W,V){return(P=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Y,j){Y.__proto__=j}||function(Y,j){for(var E in j)j.hasOwnProperty(E)&&(Y[E]=j[E])})(W,V)},function(W,V){function Y(){this.constructor=W}P(W,V),W.prototype=null===V?Object.create(V):(Y.prototype=V.prototype,new Y)}),O=this&&this.__assign||function(){return O=Object.assign||function(P){for(var W,V=1,Y=arguments.length;V<Y;V++)for(var j in W=arguments[V])Object.prototype.hasOwnProperty.call(W,j)&&(P[j]=W[j]);return P},O.apply(this,arguments)},m=this&&this.__awaiter||function(P,W,V,Y){return new(V||(V=Promise))(function(E,C){function p(F){try{v(Y.next(F))}catch(q){C(q)}}function _(F){try{v(Y.throw(F))}catch(q){C(q)}}function v(F){F.done?E(F.value):function j(E){return E instanceof V?E:new V(function(C){C(E)})}(F.value).then(p,_)}v((Y=Y.apply(P,W||[])).next())})},r=this&&this.__generator||function(P,W){var Y,j,E,C,V={label:0,sent:function(){if(1&E[0])throw E[1];return E[1]},trys:[],ops:[]};return C={next:p(0),throw:p(1),return:p(2)},"function"==typeof Symbol&&(C[Symbol.iterator]=function(){return this}),C;function p(v){return function(F){return function _(v){if(Y)throw new TypeError("Generator is already executing.");for(;V;)try{if(Y=1,j&&(E=2&v[0]?j.return:v[0]?j.throw||((E=j.return)&&E.call(j),0):j.next)&&!(E=E.call(j,v[1])).done)return E;switch(j=0,E&&(v=[2&v[0],E.value]),v[0]){case 0:case 1:E=v;break;case 4:return V.label++,{value:v[1],done:!1};case 5:V.label++,j=v[1],v=[0];continue;case 7:v=V.ops.pop(),V.trys.pop();continue;default:if(!(E=(E=V.trys).length>0&&E[E.length-1])&&(6===v[0]||2===v[0])){V=0;continue}if(3===v[0]&&(!E||v[1]>E[0]&&v[1]<E[3])){V.label=v[1];break}if(6===v[0]&&V.label<E[1]){V.label=E[1],E=v;break}if(E&&V.label<E[2]){V.label=E[2],V.ops.push(v);break}E[2]&&V.ops.pop(),V.trys.pop();continue}v=W.call(P,V)}catch(F){v=[6,F],j=0}finally{Y=E=0}if(5&v[0])throw v[1];return{value:v[0]?v[1]:void 0,done:!0}}([v,F])}}};Object.defineProperty(k,"__esModule",{value:!0});var g,n=y(92955),o=y(28133),l=y(77688),e=y(22016),i=y(40048),h=y(44226);k.USER_AGENT_HEADER="x-amz-user-agent",k.USER_AGENT="aws-amplify/"+h.version+(i.userAgent&&" ")+i.userAgent,function(P){P.NONE="NONE",P.API_KEY="API_KEY",P.AWS_IAM="AWS_IAM",P.AMAZON_COGNITO_USER_POOLS="AMAZON_COGNITO_USER_POOLS",P.OPENID_CONNECT="OPENID_CONNECT"}(g=k.AUTH_TYPE||(k.AUTH_TYPE={}));var b=function(P){function W(V){var Y=P.call(this)||this;return Y.link=k.authLink(V),Y}return a(W,P),W.prototype.request=function(V,Y){return this.link.request(V,Y)},W}(n.ApolloLink);k.AuthLink=b;var T=function(P,W,V){var Y=void 0===P?{header:"",value:""}:P,j=Y.header,E=Y.value;return m(void 0,void 0,void 0,function(){var C,p,v,F,q;return r(this,function(Q){switch(Q.label){case 0:return C=W.getContext(),p=O(O({},C.headers),((F={})[k.USER_AGENT_HEADER]=k.USER_AGENT,F)),j&&E?"function"!=typeof E?[3,2]:[4,E.call(void 0)]:[3,5];case 1:return v=Q.sent(),[3,4];case 2:return[4,E];case 3:v=Q.sent(),Q.label=4;case 4:p=O(((q={})[j]=v,q),p),Q.label=5;case 5:return W.setContext(O(O({},C),{headers:p})),[2,V(W)]}})})};k.authLink=function(P){var W=P.url,V=P.region,Y=P.auth,j=(void 0===Y?{}:Y).type,E=P.auth;return new n.ApolloLink(function(C,p){return new n.Observable(function(_){var v,F;switch(j){case g.NONE:F=T(void 0,C,p);break;case g.AWS_IAM:var q=E.credentials;F=function(P,W,V){var Y=P.credentials,j=P.region,E=P.url;return m(void 0,void 0,void 0,function(){var C,p,_,v,F,q,Q,J,ie,Se,te,ge,ue;return r(this,function(H){switch(H.label){case 0:return C="appsync",p=W.getContext(),(_="function"==typeof Y?Y.call():Y||{})&&"function"==typeof _.getPromise?[4,_.getPromise()]:[3,2];case 1:H.sent(),H.label=2;case 2:return[4,_];case 3:return v=H.sent(),F=v.accessKeyId,q=v.secretAccessKey,Q=v.sessionToken,J=e.parse(E),ie=J.host,Se=J.path,te=O(O({},R(W,{})),{service:C,region:j,url:E,host:ie,path:Se}),ge=l.Signer.sign(te,{access_key:F,secret_key:q,session_token:Q}).headers,W.setContext(O(O({},p),{headers:O(O(O({},p.headers),ge),(ue={},ue[k.USER_AGENT_HEADER]=k.USER_AGENT,ue))})),[2,V(W)]}})})}({credentials:void 0===q?{}:q,region:V,url:W},C,p);break;case g.API_KEY:var J=E.apiKey;F=T({header:"X-Api-Key",value:void 0===J?"":J},C,p);break;case g.AMAZON_COGNITO_USER_POOLS:case g.OPENID_CONNECT:var Se=E.jwtToken;F=T({header:"Authorization",value:void 0===Se?"":Se},C,p);break;default:throw new Error("Invalid AUTH_TYPE: "+E.type)}return F.then(function(ue){v=ue.subscribe({next:_.next.bind(_),error:_.error.bind(_),complete:_.complete.bind(_)})}),function(){v&&v.unsubscribe()}})})};var R=function(P,W){var j=P.query,E={operationName:P.operationName,variables:x(P.variables),query:o.print(j)};return O(O({body:JSON.stringify(E),method:"POST"},W),{headers:O({accept:"*/*","content-type":"application/json; charset=UTF-8"},W.headers)})},x=function(P){return Object.keys(P).filter(function(W){return!W.startsWith("@@")}).reduce(function(W,V){return W[V]=P[V],W},{})}},26358:(le,k,y)=>{"use strict";var O=y(53073);k.W9=function(r){return new O.AuthLink({url:r.url,region:r.region,auth:r.auth})},y(77688)},40048:(le,k)=>{"use strict";Object.defineProperty(k,"__esModule",{value:!0}),k.userAgent=""},77688:(le,k,y)=>{"use strict";Object.defineProperty(k,"__esModule",{value:!0}),function a(O){for(var m in O)k.hasOwnProperty(m)||(k[m]=O[m])}(y(25905))},25905:(le,k,y)=>{"use strict";Object.defineProperty(k,"__esModule",{value:!0}),global.Buffer=global.Buffer||y(26149).lW;var a=y(22016),O=y(13566).util.crypto,m=function(R,x,P){return void 0===P&&(P=""),O.lib.createHmac("sha256",R).update(x,"utf8").digest(P)},r=function(R){return R=R||"",O.createHash("sha256").update(R,"utf8").digest("hex")},n=function(R){return R&&0!==Object.keys(R).length?Object.keys(R).map(function(x){return{key:x.toLowerCase(),value:R[x]?R[x].trim().replace(/\s+/g," "):""}}).sort(function(x,P){return x.key<P.key?-1:1}).map(function(x){return x.key+":"+x.value}).join("\n")+"\n":""},o=function(R){return Object.keys(R).map(function(x){return x.toLowerCase()}).sort().join(";")},T=function(R,x,P){void 0===P&&(P=null),R.headers=R.headers||{};var V=(new Date).toISOString().replace(/[:-]|\.\d{3}/g,""),Y=V.substr(0,8),j="AWS4-HMAC-SHA256",E=a.parse(R.url);R.headers.host=E.host,R.headers["x-amz-date"]=V,x.session_token&&(R.headers["X-Amz-Security-Token"]=x.session_token);var C=function(R){var x=a.parse(R.url);return[R.method||"/",x.path,x.query,n(R.headers),o(R.headers),r(R.body)].join("\n")}(R);P=P||function(R){var V=(a.parse(R.url).host.match(/([^.]+)\.(?:([^.]*)\.)?amazonaws\.com$/)||[]).slice(1,3);return"es"===V[1]&&(V=V.reverse()),{service:R.service||V[0],region:R.region||V[1]}}(R);var p=function(R,x,P){return[R,x,P,"aws4_request"].join("/")}(Y,P.region,P.service),_=function(R,x,P,W){return[R,P,W,r(x)].join("\n")}(j,C,V,p),v=function(R,x,P){void 0===R&&(R="");var V=m("AWS4"+R,x),Y=m(V,P.region),j=m(Y,P.service);return m(j,"aws4_request")}(x.secret_key,Y,P),F=function(R,x){return m(R,x,"hex")}(v,_),q=function(R,x,P,W,V){return void 0===x&&(x=""),[R+" Credential="+x+"/"+P,"SignedHeaders="+W,"Signature="+V].join(", ")}(j,x.access_key,p,o(R.headers),F);return R.headers.Authorization=q,R},M=function(){function R(){}return R.sign=T,R}();k.Signer=M,k.default=M},97378:(le,k,y)=>{"use strict";y.d(k,{Jh:()=>i,ZT:()=>O,_T:()=>r,mG:()=>e,pi:()=>m,pr:()=>T});var a=function(j,E){return(a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(C,p){C.__proto__=p}||function(C,p){for(var _ in p)p.hasOwnProperty(_)&&(C[_]=p[_])})(j,E)};function O(j,E){function C(){this.constructor=j}a(j,E),j.prototype=null===E?Object.create(E):(C.prototype=E.prototype,new C)}var m=function(){return m=Object.assign||function(E){for(var C,p=1,_=arguments.length;p<_;p++)for(var v in C=arguments[p])Object.prototype.hasOwnProperty.call(C,v)&&(E[v]=C[v]);return E},m.apply(this,arguments)};function r(j,E){var C={};for(var p in j)Object.prototype.hasOwnProperty.call(j,p)&&E.indexOf(p)<0&&(C[p]=j[p]);if(null!=j&&"function"==typeof Object.getOwnPropertySymbols){var _=0;for(p=Object.getOwnPropertySymbols(j);_<p.length;_++)E.indexOf(p[_])<0&&Object.prototype.propertyIsEnumerable.call(j,p[_])&&(C[p[_]]=j[p[_]])}return C}function e(j,E,C,p){return new(C||(C=Promise))(function(_,v){function F(J){try{Q(p.next(J))}catch(ie){v(ie)}}function q(J){try{Q(p.throw(J))}catch(ie){v(ie)}}function Q(J){J.done?_(J.value):new C(function(ie){ie(J.value)}).then(F,q)}Q((p=p.apply(j,E||[])).next())})}function i(j,E){var p,_,v,F,C={label:0,sent:function(){if(1&v[0])throw v[1];return v[1]},trys:[],ops:[]};return F={next:q(0),throw:q(1),return:q(2)},"function"==typeof Symbol&&(F[Symbol.iterator]=function(){return this}),F;function q(J){return function(ie){return function Q(J){if(p)throw new TypeError("Generator is already executing.");for(;C;)try{if(p=1,_&&(v=2&J[0]?_.return:J[0]?_.throw||((v=_.return)&&v.call(_),0):_.next)&&!(v=v.call(_,J[1])).done)return v;switch(_=0,v&&(J=[2&J[0],v.value]),J[0]){case 0:case 1:v=J;break;case 4:return C.label++,{value:J[1],done:!1};case 5:C.label++,_=J[1],J=[0];continue;case 7:J=C.ops.pop(),C.trys.pop();continue;default:if(!(v=(v=C.trys).length>0&&v[v.length-1])&&(6===J[0]||2===J[0])){C=0;continue}if(3===J[0]&&(!v||J[1]>v[0]&&J[1]<v[3])){C.label=J[1];break}if(6===J[0]&&C.label<v[1]){C.label=v[1],v=J;break}if(v&&C.label<v[2]){C.label=v[2],C.ops.push(J);break}v[2]&&C.ops.pop(),C.trys.pop();continue}J=E.call(j,C)}catch(ie){J=[6,ie],_=0}finally{p=v=0}if(5&J[0])throw J[1];return{value:J[0]?J[1]:void 0,done:!0}}([J,ie])}}}function T(){for(var j=0,E=0,C=arguments.length;E<C;E++)j+=arguments[E].length;var p=Array(j),_=0;for(E=0;E<C;E++)for(var v=arguments[E],F=0,q=v.length;F<q;F++,_++)p[_]=v[F];return p}},32534:(le,k,y)=>{"use strict";y.r(k),y.d(k,{__assign:()=>m,__asyncDelegator:()=>P,__asyncGenerator:()=>x,__asyncValues:()=>W,__await:()=>R,__awaiter:()=>e,__classPrivateFieldGet:()=>E,__classPrivateFieldSet:()=>C,__createBinding:()=>h,__decorate:()=>n,__exportStar:()=>d,__extends:()=>O,__generator:()=>i,__importDefault:()=>j,__importStar:()=>Y,__makeTemplateObject:()=>V,__metadata:()=>l,__param:()=>o,__read:()=>b,__rest:()=>r,__spread:()=>T,__spreadArrays:()=>M,__values:()=>g});var a=function(p,_){return(a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(v,F){v.__proto__=F}||function(v,F){for(var q in F)F.hasOwnProperty(q)&&(v[q]=F[q])})(p,_)};function O(p,_){function v(){this.constructor=p}a(p,_),p.prototype=null===_?Object.create(_):(v.prototype=_.prototype,new v)}var m=function(){return m=Object.assign||function(_){for(var v,F=1,q=arguments.length;F<q;F++)for(var Q in v=arguments[F])Object.prototype.hasOwnProperty.call(v,Q)&&(_[Q]=v[Q]);return _},m.apply(this,arguments)};function r(p,_){var v={};for(var F in p)Object.prototype.hasOwnProperty.call(p,F)&&_.indexOf(F)<0&&(v[F]=p[F]);if(null!=p&&"function"==typeof Object.getOwnPropertySymbols){var q=0;for(F=Object.getOwnPropertySymbols(p);q<F.length;q++)_.indexOf(F[q])<0&&Object.prototype.propertyIsEnumerable.call(p,F[q])&&(v[F[q]]=p[F[q]])}return v}function n(p,_,v,F){var J,q=arguments.length,Q=q<3?_:null===F?F=Object.getOwnPropertyDescriptor(_,v):F;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)Q=Reflect.decorate(p,_,v,F);else for(var ie=p.length-1;ie>=0;ie--)(J=p[ie])&&(Q=(q<3?J(Q):q>3?J(_,v,Q):J(_,v))||Q);return q>3&&Q&&Object.defineProperty(_,v,Q),Q}function o(p,_){return function(v,F){_(v,F,p)}}function l(p,_){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(p,_)}function e(p,_,v,F){return new(v||(v=Promise))(function(Q,J){function ie(ge){try{te(F.next(ge))}catch(ue){J(ue)}}function Se(ge){try{te(F.throw(ge))}catch(ue){J(ue)}}function te(ge){ge.done?Q(ge.value):function q(Q){return Q instanceof v?Q:new v(function(J){J(Q)})}(ge.value).then(ie,Se)}te((F=F.apply(p,_||[])).next())})}function i(p,_){var F,q,Q,J,v={label:0,sent:function(){if(1&Q[0])throw Q[1];return Q[1]},trys:[],ops:[]};return J={next:ie(0),throw:ie(1),return:ie(2)},"function"==typeof Symbol&&(J[Symbol.iterator]=function(){return this}),J;function ie(te){return function(ge){return function Se(te){if(F)throw new TypeError("Generator is already executing.");for(;v;)try{if(F=1,q&&(Q=2&te[0]?q.return:te[0]?q.throw||((Q=q.return)&&Q.call(q),0):q.next)&&!(Q=Q.call(q,te[1])).done)return Q;switch(q=0,Q&&(te=[2&te[0],Q.value]),te[0]){case 0:case 1:Q=te;break;case 4:return v.label++,{value:te[1],done:!1};case 5:v.label++,q=te[1],te=[0];continue;case 7:te=v.ops.pop(),v.trys.pop();continue;default:if(!(Q=(Q=v.trys).length>0&&Q[Q.length-1])&&(6===te[0]||2===te[0])){v=0;continue}if(3===te[0]&&(!Q||te[1]>Q[0]&&te[1]<Q[3])){v.label=te[1];break}if(6===te[0]&&v.label<Q[1]){v.label=Q[1],Q=te;break}if(Q&&v.label<Q[2]){v.label=Q[2],v.ops.push(te);break}Q[2]&&v.ops.pop(),v.trys.pop();continue}te=_.call(p,v)}catch(ge){te=[6,ge],q=0}finally{F=Q=0}if(5&te[0])throw te[1];return{value:te[0]?te[1]:void 0,done:!0}}([te,ge])}}}function h(p,_,v,F){void 0===F&&(F=v),p[F]=_[v]}function d(p,_){for(var v in p)"default"!==v&&!_.hasOwnProperty(v)&&(_[v]=p[v])}function g(p){var _="function"==typeof Symbol&&Symbol.iterator,v=_&&p[_],F=0;if(v)return v.call(p);if(p&&"number"==typeof p.length)return{next:function(){return p&&F>=p.length&&(p=void 0),{value:p&&p[F++],done:!p}}};throw new TypeError(_?"Object is not iterable.":"Symbol.iterator is not defined.")}function b(p,_){var v="function"==typeof Symbol&&p[Symbol.iterator];if(!v)return p;var q,J,F=v.call(p),Q=[];try{for(;(void 0===_||_-- >0)&&!(q=F.next()).done;)Q.push(q.value)}catch(ie){J={error:ie}}finally{try{q&&!q.done&&(v=F.return)&&v.call(F)}finally{if(J)throw J.error}}return Q}function T(){for(var p=[],_=0;_<arguments.length;_++)p=p.concat(b(arguments[_]));return p}function M(){for(var p=0,_=0,v=arguments.length;_<v;_++)p+=arguments[_].length;var F=Array(p),q=0;for(_=0;_<v;_++)for(var Q=arguments[_],J=0,ie=Q.length;J<ie;J++,q++)F[q]=Q[J];return F}function R(p){return this instanceof R?(this.v=p,this):new R(p)}function x(p,_,v){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var q,F=v.apply(p,_||[]),Q=[];return q={},J("next"),J("throw"),J("return"),q[Symbol.asyncIterator]=function(){return this},q;function J(H){F[H]&&(q[H]=function($){return new Promise(function(oe,ee){Q.push([H,$,oe,ee])>1||ie(H,$)})})}function ie(H,$){try{!function Se(H){H.value instanceof R?Promise.resolve(H.value.v).then(te,ge):ue(Q[0][2],H)}(F[H]($))}catch(oe){ue(Q[0][3],oe)}}function te(H){ie("next",H)}function ge(H){ie("throw",H)}function ue(H,$){H($),Q.shift(),Q.length&&ie(Q[0][0],Q[0][1])}}function P(p){var _,v;return _={},F("next"),F("throw",function(q){throw q}),F("return"),_[Symbol.iterator]=function(){return this},_;function F(q,Q){_[q]=p[q]?function(J){return(v=!v)?{value:R(p[q](J)),done:"return"===q}:Q?Q(J):J}:Q}}function W(p){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var v,_=p[Symbol.asyncIterator];return _?_.call(p):(p=g(p),v={},F("next"),F("throw"),F("return"),v[Symbol.asyncIterator]=function(){return this},v);function F(Q){v[Q]=p[Q]&&function(J){return new Promise(function(ie,Se){!function q(Q,J,ie,Se){Promise.resolve(Se).then(function(te){Q({value:te,done:ie})},J)}(ie,Se,(J=p[Q](J)).done,J.value)})}}}function V(p,_){return Object.defineProperty?Object.defineProperty(p,"raw",{value:_}):p.raw=_,p}function Y(p){if(p&&p.__esModule)return p;var _={};if(null!=p)for(var v in p)Object.hasOwnProperty.call(p,v)&&(_[v]=p[v]);return _.default=p,_}function j(p){return p&&p.__esModule?p:{default:p}}function E(p,_){if(!_.has(p))throw new TypeError("attempted to get private field on non-instance");return _.get(p)}function C(p,_,v){if(!_.has(p))throw new TypeError("attempted to set private field on non-instance");return _.set(p,v),v}},47310:()=>{},73763:le=>{"use strict";var k=["BigInt64Array","BigUint64Array","Float32Array","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray"],y=typeof globalThis>"u"?global:globalThis;le.exports=function(){for(var O=[],m=0;m<k.length;m++)"function"==typeof y[k[m]]&&(O[O.length]=k[m]);return O}},10475:(le,k,y)=>{"use strict";var O=y(82422)("%Object.getOwnPropertyDescriptor%",!0);if(O)try{O([],"length")}catch{O=null}le.exports=O},24373:(le,k,y)=>{"use strict";y.r(k),y.d(k,{ApolloCache:()=>vi,ApolloClient:()=>ma,ApolloError:()=>rr,ApolloLink:()=>gt,Cache:()=>Dn,HttpLink:()=>qn,InMemoryCache:()=>Ia,MissingFieldError:()=>Mn,NetworkStatus:()=>nt,Observable:()=>rt,ObservableQuery:()=>Zr,checkFetcher:()=>Oe,concat:()=>ka,createHttpLink:()=>Kn,createSignalIfSupported:()=>ft,defaultDataIdFromObject:()=>mn,defaultPrinter:()=>Ne,disableExperimentalFragmentVariables:()=>Fr.J9,disableFragmentWarnings:()=>Fr._t,empty:()=>Pa,enableExperimentalFragmentVariables:()=>Fr.wO,execute:()=>$t,fallbackHttpConfig:()=>Ge,from:()=>Da,fromError:()=>Xt,fromPromise:()=>La,gql:()=>Fr.Ps,isApolloError:()=>ai,isReference:()=>et,makeReference:()=>It,makeVar:()=>li,mergeOptions:()=>en,parseAndCheckHttpResponse:()=>pe,resetCaches:()=>Fr.HW,rewriteURIForGET:()=>St,selectHttpOptionsAndBody:()=>tt,selectHttpOptionsAndBodyInternal:()=>dt,selectURI:()=>Gr,serializeFetchParameter:()=>pr,setLogVerbosity:()=>ue,split:()=>Ma,throwServerError:()=>X,toPromise:()=>Fa});var a=function(u,t){return(a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,c){s.__proto__=c}||function(s,c){for(var D in c)Object.prototype.hasOwnProperty.call(c,D)&&(s[D]=c[D])})(u,t)},F="Invariant Violation",q=Object.setPrototypeOf,Q=void 0===q?function(u,t){return u.__proto__=t,u}:q,J=function(u){function t(s){void 0===s&&(s=F);var c=u.call(this,"number"==typeof s?F+": "+s+" (see https://github.com/apollographql/invariant-packages)":s)||this;return c.framesToPop=1,c.name=F,Q(c,t.prototype),c}return function O(u,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function s(){this.constructor=u}a(u,t),u.prototype=null===t?Object.create(t):(s.prototype=t.prototype,new s)}(t,u),t}(Error);function ie(u,t){if(!u)throw new J(t)}var u,Se=["debug","log","warn","error","silent"],te=Se.indexOf("log");function ge(u){return function(){if(Se.indexOf(u)>=te)return(console[u]||console.log).apply(console,arguments)}}function ue(u){var t=Se[te];return te=Math.max(0,Se.indexOf(u)),t}function $(u){try{return u()}catch{}}(u=ie||(ie={})).debug=ge("debug"),u.log=ge("log"),u.warn=ge("warn"),u.error=ge("error");const oe=$(function(){return globalThis})||$(function(){return window})||$(function(){return self})||$(function(){return global})||$(function(){return $.constructor("return this")()});var ee="__",L=[ee,ee].join("DEV");const B=function S(){try{return!!__DEV__}catch{return Object.defineProperty(oe,L,{value:"production"!==$(function(){return"production"}),enumerable:!1,configurable:!0,writable:!0}),oe[L]}}();function G(u){try{return u()}catch{}}var U=G(function(){return globalThis})||G(function(){return window})||G(function(){return self})||G(function(){return global})||G(function(){return G.constructor("return this")()}),re=!1;!function ce(){U&&!G(function(){return"production"})&&!G(function(){return process})&&(Object.defineProperty(U,"process",{value:{env:{NODE_ENV:"production"}},configurable:!0,enumerable:!1,writable:!0}),re=!0)}(),y(1643),function de(){(function be(){re&&(delete U.process,re=!1)})()}(),function he(){__DEV__?ie("boolean"==typeof B,B):ie("boolean"==typeof B,36)}();var Ee=function(u,t){return(Ee=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,c){s.__proto__=c}||function(s,c){for(var D in c)Object.prototype.hasOwnProperty.call(c,D)&&(s[D]=c[D])})(u,t)};function K(u,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function s(){this.constructor=u}Ee(u,t),u.prototype=null===t?Object.create(t):(s.prototype=t.prototype,new s)}var w=function(){return w=Object.assign||function(t){for(var s,c=1,D=arguments.length;c<D;c++)for(var N in s=arguments[c])Object.prototype.hasOwnProperty.call(s,N)&&(t[N]=s[N]);return t},w.apply(this,arguments)};function f(u,t){var s={};for(var c in u)Object.prototype.hasOwnProperty.call(u,c)&&t.indexOf(c)<0&&(s[c]=u[c]);if(null!=u&&"function"==typeof Object.getOwnPropertySymbols){var D=0;for(c=Object.getOwnPropertySymbols(u);D<c.length;D++)t.indexOf(c[D])<0&&Object.prototype.propertyIsEnumerable.call(u,c[D])&&(s[c[D]]=u[c[D]])}return s}function me(u,t,s,c){return new(s||(s=Promise))(function(N,z){function se(Ae){try{ve(c.next(Ae))}catch(De){z(De)}}function we(Ae){try{ve(c.throw(Ae))}catch(De){z(De)}}function ve(Ae){Ae.done?N(Ae.value):function D(N){return N instanceof s?N:new s(function(z){z(N)})}(Ae.value).then(se,we)}ve((c=c.apply(u,t||[])).next())})}function Re(u,t){var c,D,N,z,s={label:0,sent:function(){if(1&N[0])throw N[1];return N[1]},trys:[],ops:[]};return z={next:se(0),throw:se(1),return:se(2)},"function"==typeof Symbol&&(z[Symbol.iterator]=function(){return this}),z;function se(ve){return function(Ae){return function we(ve){if(c)throw new TypeError("Generator is already executing.");for(;s;)try{if(c=1,D&&(N=2&ve[0]?D.return:ve[0]?D.throw||((N=D.return)&&N.call(D),0):D.next)&&!(N=N.call(D,ve[1])).done)return N;switch(D=0,N&&(ve=[2&ve[0],N.value]),ve[0]){case 0:case 1:N=ve;break;case 4:return s.label++,{value:ve[1],done:!1};case 5:s.label++,D=ve[1],ve=[0];continue;case 7:ve=s.ops.pop(),s.trys.pop();continue;default:if(!(N=(N=s.trys).length>0&&N[N.length-1])&&(6===ve[0]||2===ve[0])){s=0;continue}if(3===ve[0]&&(!N||ve[1]>N[0]&&ve[1]<N[3])){s.label=ve[1];break}if(6===ve[0]&&s.label<N[1]){s.label=N[1],N=ve;break}if(N&&s.label<N[2]){s.label=N[2],s.ops.push(ve);break}N[2]&&s.ops.pop(),s.trys.pop();continue}ve=t.call(u,s)}catch(Ae){ve=[6,Ae],D=0}finally{c=N=0}if(5&ve[0])throw ve[1];return{value:ve[0]?ve[1]:void 0,done:!0}}([ve,Ae])}}}function je(u,t,s){if(s||2===arguments.length)for(var N,c=0,D=t.length;c<D;c++)(N||!(c in t))&&(N||(N=Array.prototype.slice.call(t,0,c)),N[c]=t[c]);return u.concat(N||Array.prototype.slice.call(t))}function Bt(u,t){(null==t||t>u.length)&&(t=u.length);for(var s=0,c=new Array(t);s<t;s++)c[s]=u[s];return c}function jt(u,t){for(var s=0;s<t.length;s++){var c=t[s];c.enumerable=c.enumerable||!1,c.configurable=!0,"value"in c&&(c.writable=!0),Object.defineProperty(u,c.key,c)}}function mt(u,t,s){return t&&jt(u.prototype,t),s&&jt(u,s),Object.defineProperty(u,"prototype",{writable:!1}),u}var xt=function(){return"function"==typeof Symbol},Pt=function(u){return xt()&&!!Symbol[u]},Tt=function(u){return Pt(u)?Symbol[u]:"@@"+u};xt()&&!Pt("observable")&&(Symbol.observable=Symbol("observable"));var qt=Tt("iterator"),Ut=Tt("observable"),Dt=Tt("species");function ir(u,t){var s=u[t];if(null!=s){if("function"!=typeof s)throw new TypeError(s+" is not a function");return s}}function zt(u){var t=u.constructor;return void 0!==t&&null===(t=t[Dt])&&(t=void 0),void 0!==t?t:rt}function Ct(u){Ct.log?Ct.log(u):setTimeout(function(){throw u})}function ar(u){Promise.resolve().then(function(){try{u()}catch(t){Ct(t)}})}function Br(u){var t=u._cleanup;if(void 0!==t&&(u._cleanup=void 0,t))try{if("function"==typeof t)t();else{var s=ir(t,"unsubscribe");s&&s.call(t)}}catch(c){Ct(c)}}function or(u){u._observer=void 0,u._queue=void 0,u._state="closed"}function Er(u,t,s){u._state="running";var c=u._observer;try{var D=ir(c,t);switch(t){case"next":D&&D.call(c,s);break;case"error":if(or(u),!D)throw s;D.call(c,s);break;case"complete":or(u),D&&D.call(c)}}catch(N){Ct(N)}"closed"===u._state?Br(u):"running"===u._state&&(u._state="ready")}function _r(u,t,s){if("closed"!==u._state){if("buffering"===u._state)return void u._queue.push({type:t,value:s});if("ready"!==u._state)return u._state="buffering",u._queue=[{type:t,value:s}],void ar(function(){return function an(u){var t=u._queue;if(t){u._queue=void 0,u._state="ready";for(var s=0;s<t.length&&(Er(u,t[s].type,t[s].value),"closed"!==u._state);++s);}}(u)});Er(u,t,s)}}var Rt=function(){function u(s,c){this._cleanup=void 0,this._observer=s,this._queue=void 0,this._state="initializing";var D=new sr(this);try{this._cleanup=c.call(void 0,D)}catch(N){D.error(N)}"initializing"===this._state&&(this._state="ready")}return u.prototype.unsubscribe=function(){"closed"!==this._state&&(or(this),Br(this))},mt(u,[{key:"closed",get:function(){return"closed"===this._state}}]),u}(),sr=function(){function u(s){this._subscription=s}var t=u.prototype;return t.next=function(c){_r(this._subscription,"next",c)},t.error=function(c){_r(this._subscription,"error",c)},t.complete=function(){_r(this._subscription,"complete")},mt(u,[{key:"closed",get:function(){return"closed"===this._subscription._state}}]),u}(),rt=function(){function u(s){if(!(this instanceof u))throw new TypeError("Observable cannot be called as a function");if("function"!=typeof s)throw new TypeError("Observable initializer must be a function");this._subscriber=s}var t=u.prototype;return t.subscribe=function(c){return("object"!=typeof c||null===c)&&(c={next:c,error:arguments[1],complete:arguments[2]}),new Rt(c,this._subscriber)},t.forEach=function(c){var D=this;return new Promise(function(N,z){if("function"==typeof c)var we=D.subscribe({next:function(ve){try{c(ve,se)}catch(Ae){z(Ae),we.unsubscribe()}},error:z,complete:N});else z(new TypeError(c+" is not a function"));function se(){we.unsubscribe(),N()}})},t.map=function(c){var D=this;if("function"!=typeof c)throw new TypeError(c+" is not a function");return new(zt(this))(function(z){return D.subscribe({next:function(se){try{se=c(se)}catch(we){return z.error(we)}z.next(se)},error:function(se){z.error(se)},complete:function(){z.complete()}})})},t.filter=function(c){var D=this;if("function"!=typeof c)throw new TypeError(c+" is not a function");return new(zt(this))(function(z){return D.subscribe({next:function(se){try{if(!c(se))return}catch(we){return z.error(we)}z.next(se)},error:function(se){z.error(se)},complete:function(){z.complete()}})})},t.reduce=function(c){var D=this;if("function"!=typeof c)throw new TypeError(c+" is not a function");var N=zt(this),z=arguments.length>1,se=!1,ve=arguments[1];return new N(function(Ae){return D.subscribe({next:function(De){var Te=!se;if(se=!0,!Te||z)try{ve=c(ve,De)}catch(ke){return Ae.error(ke)}else ve=De},error:function(De){Ae.error(De)},complete:function(){if(!se&&!z)return Ae.error(new TypeError("Cannot reduce an empty sequence"));Ae.next(ve),Ae.complete()}})})},t.concat=function(){for(var c=this,D=arguments.length,N=new Array(D),z=0;z<D;z++)N[z]=arguments[z];var se=zt(this);return new se(function(we){var ve,Ae=0;return function De(Te){ve=Te.subscribe({next:function(ke){we.next(ke)},error:function(ke){we.error(ke)},complete:function(){Ae===N.length?(ve=void 0,we.complete()):De(se.from(N[Ae++]))}})}(c),function(){ve&&(ve.unsubscribe(),ve=void 0)}})},t.flatMap=function(c){var D=this;if("function"!=typeof c)throw new TypeError(c+" is not a function");var N=zt(this);return new N(function(z){var se=[],we=D.subscribe({next:function(Ae){if(c)try{Ae=c(Ae)}catch(Te){return z.error(Te)}var De=N.from(Ae).subscribe({next:function(Te){z.next(Te)},error:function(Te){z.error(Te)},complete:function(){var Te=se.indexOf(De);Te>=0&&se.splice(Te,1),ve()}});se.push(De)},error:function(Ae){z.error(Ae)},complete:function(){ve()}});function ve(){we.closed&&0===se.length&&z.complete()}return function(){se.forEach(function(Ae){return Ae.unsubscribe()}),we.unsubscribe()}})},t[Ut]=function(){return this},u.from=function(c){var D="function"==typeof this?this:u;if(null==c)throw new TypeError(c+" is not an object");var N=ir(c,Ut);if(N){var z=N.call(c);if(Object(z)!==z)throw new TypeError(z+" is not an object");return function Nr(u){return u instanceof rt}(z)&&z.constructor===D?z:new D(function(se){return z.subscribe(se)})}if(Pt("iterator")&&(N=ir(c,qt)))return new D(function(se){ar(function(){if(!se.closed){for(var ve,we=function Kt(u,t){var s=typeof Symbol<"u"&&u[Symbol.iterator]||u["@@iterator"];if(s)return(s=s.call(u)).next.bind(s);if(Array.isArray(u)||(s=function pt(u,t){if(u){if("string"==typeof u)return Bt(u,t);var s=Object.prototype.toString.call(u).slice(8,-1);if("Object"===s&&u.constructor&&(s=u.constructor.name),"Map"===s||"Set"===s)return Array.from(u);if("Arguments"===s||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(s))return Bt(u,t)}}(u))||t&&u&&"number"==typeof u.length){s&&(u=s);var c=0;return function(){return c>=u.length?{done:!0}:{done:!1,value:u[c++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(N.call(c));!(ve=we()).done;)if(se.next(ve.value),se.closed)return;se.complete()}})});if(Array.isArray(c))return new D(function(se){ar(function(){if(!se.closed){for(var we=0;we<c.length;++we)if(se.next(c[we]),se.closed)return;se.complete()}})});throw new TypeError(c+" is not observable")},u.of=function(){for(var c=arguments.length,D=new Array(c),N=0;N<c;N++)D[N]=arguments[N];return new("function"==typeof this?this:u)(function(se){ar(function(){if(!se.closed){for(var we=0;we<D.length;++we)if(se.next(D[we]),se.closed)return;se.complete()}})})},mt(u,null,[{key:Dt,get:function(){return this}}]),u}();function ot(u){return null!==u&&"object"==typeof u}function sn(u,t){var s=t,c=[];return u.definitions.forEach(function(N){if("OperationDefinition"===N.kind)throw __DEV__?new J("Found a ".concat(N.operation," operation").concat(N.name?" named '".concat(N.name.value,"'"):"",". ")+"No operations are allowed when using a fragment as a query. Only fragments are allowed."):new J(41);"FragmentDefinition"===N.kind&&c.push(N)}),typeof s>"u"&&(__DEV__?ie(1===c.length,"Found ".concat(c.length," fragments. `fragmentName` must be provided when there is not exactly 1 fragment.")):ie(1===c.length,42),s=c[0].name.value),w(w({},u),{definitions:je([{kind:"OperationDefinition",operation:"query",selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:s}}]}}],u.definitions,!0)})}function Ht(u){void 0===u&&(u=[]);var t={};return u.forEach(function(s){t[s.name.value]=s}),t}function ur(u,t){switch(u.kind){case"InlineFragment":return u;case"FragmentSpread":var s=t&&t[u.name.value];return __DEV__?ie(s,"No fragment named ".concat(u.name.value,".")):ie(s,43),s;default:return null}}function It(u){return{__ref:String(u)}}function et(u){return!(!u||"object"!=typeof u||"string"!=typeof u.__ref)}function Mt(u,t,s,c){if(function Ur(u){return"IntValue"===u.kind}(s)||function cr(u){return"FloatValue"===u.kind}(s))u[t.value]=Number(s.value);else if(function cn(u){return"BooleanValue"===u.kind}(s)||function jr(u){return"StringValue"===u.kind}(s))u[t.value]=s.value;else if(function Sr(u){return"ObjectValue"===u.kind}(s)){var D={};s.fields.map(function(z){return Mt(D,z.name,z.value,c)}),u[t.value]=D}else if(function wr(u){return"Variable"===u.kind}(s))u[t.value]=(c||{})[s.name.value];else if(function fn(u){return"ListValue"===u.kind}(s))u[t.value]=s.values.map(function(z){var se={};return Mt(se,t,z,c),se[t.value]});else if(function ln(u){return"EnumValue"===u.kind}(s))u[t.value]=s.value;else{if(!function hn(u){return"NullValue"===u.kind}(s))throw __DEV__?new J('The inline argument "'.concat(t.value,'" of kind "').concat(s.kind,'"')+"is not supported. Use variables instead of inline arguments to overcome this limitation."):new J(52);u[t.value]=null}}xt()&&Object.defineProperty(rt,Symbol("extensions"),{value:{symbol:Ut,hostReportError:Ct},configurable:!0});var pn=["connection","include","skip","client","rest","export"],Or=Object.assign(function(u,t,s){if(t&&s&&s.connection&&s.connection.key){if(s.connection.filter&&s.connection.filter.length>0){var c=s.connection.filter?s.connection.filter:[];c.sort();var D={};return c.forEach(function(se){D[se]=t[se]}),"".concat(s.connection.key,"(").concat(Vt(D),")")}return s.connection.key}var N=u;if(t){var z=Vt(t);N+="(".concat(z,")")}return s&&Object.keys(s).forEach(function(se){-1===pn.indexOf(se)&&(s[se]&&Object.keys(s[se]).length?N+="@".concat(se,"(").concat(Vt(s[se]),")"):N+="@".concat(se))}),N},{setStringify:function(u){var t=Vt;return Vt=u,t}}),Vt=function(t){return JSON.stringify(t,Wr)};function Wr(u,t){return ot(t)&&!Array.isArray(t)&&(t=Object.keys(t).sort().reduce(function(s,c){return s[c]=t[c],s},{})),t}function Gt(u,t){if(u.arguments&&u.arguments.length){var s={};return u.arguments.forEach(function(c){return Mt(s,c.name,c.value,t)}),s}return null}function kt(u){return u.alias?u.alias.value:u.name.value}function Ar(u,t,s){if("string"==typeof u.__typename)return u.__typename;for(var c=0,D=t.selections;c<D.length;c++){var N=D[c];if(At(N)){if("__typename"===N.name.value)return u[kt(N)]}else{var z=Ar(u,ur(N,s).selectionSet,s);if("string"==typeof z)return z}}}function At(u){return"Field"===u.kind}function Qr(u){return"InlineFragment"===u.kind}function fr(u){__DEV__?ie(u&&"Document"===u.kind,'Expecting a parsed GraphQL document. Perhaps you need to wrap the query string in a "gql" tag? http://docs.apollostack.com/apollo-client/core.html#gql'):ie(u&&"Document"===u.kind,44);var t=u.definitions.filter(function(s){return"FragmentDefinition"!==s.kind}).map(function(s){if("OperationDefinition"!==s.kind)throw __DEV__?new J('Schema type definitions not allowed in queries. Found: "'.concat(s.kind,'"')):new J(45);return s});return __DEV__?ie(t.length<=1,"Ambiguous GraphQL document: contains ".concat(t.length," operations")):ie(t.length<=1,46),u}function Ft(u){return fr(u),u.definitions.filter(function(t){return"OperationDefinition"===t.kind})[0]}function lr(u){return u.definitions.filter(function(t){return"OperationDefinition"===t.kind&&t.name}).map(function(t){return t.name.value})[0]||null}function Lt(u){return u.definitions.filter(function(t){return"FragmentDefinition"===t.kind})}function xr(u){var t=Ft(u);return __DEV__?ie(t&&"query"===t.operation,"Must contain a query definition."):ie(t&&"query"===t.operation,47),t}function Yt(u){fr(u);for(var t,s=0,c=u.definitions;s<c.length;s++){var D=c[s];if("OperationDefinition"===D.kind){var N=D.operation;if("query"===N||"mutation"===N||"subscription"===N)return D}"FragmentDefinition"===D.kind&&!t&&(t=D)}if(t)return t;throw __DEV__?new J("Expected a parsed GraphQL query with a query, mutation, subscription, or a fragment."):new J(51)}function Tr(u){var t=Object.create(null),s=u&&u.variableDefinitions;return s&&s.length&&s.forEach(function(c){c.defaultValue&&Mt(t,c.variable.name,c.defaultValue)}),t}function zr(u,t){return t?t(u):rt.of()}function Jt(u){return"function"==typeof u?new gt(u):u}function hr(u){return u.request.length<=1}var Hr=function(u){function t(s,c){var D=u.call(this,s)||this;return D.link=c,D}return K(t,u),t}(Error),gt=function(){function u(t){t&&(this.request=t)}return u.empty=function(){return new u(function(){return rt.of()})},u.from=function(t){return 0===t.length?u.empty():t.map(Jt).reduce(function(s,c){return s.concat(c)})},u.split=function(t,s,c){var D=Jt(s),N=Jt(c||new u(zr));return hr(D)&&hr(N)?new u(function(z){return t(z)?D.request(z)||rt.of():N.request(z)||rt.of()}):new u(function(z,se){return t(z)?D.request(z,se)||rt.of():N.request(z,se)||rt.of()})},u.execute=function(t,s){return t.request(function on(u,t){var s=w({},u);return Object.defineProperty(t,"setContext",{enumerable:!1,value:function(N){s=w(w({},s),"function"==typeof N?N(s):N)}}),Object.defineProperty(t,"getContext",{enumerable:!1,value:function(){return w({},s)}}),t}(s.context,function dn(u){var t={variables:u.variables||{},extensions:u.extensions||{},operationName:u.operationName,query:u.query};return t.operationName||(t.operationName="string"!=typeof t.query?lr(t.query)||void 0:""),t}(function qr(u){for(var t=["query","operationName","variables","extensions","context"],s=0,c=Object.keys(u);s<c.length;s++){var D=c[s];if(t.indexOf(D)<0)throw __DEV__?new J("illegal argument: ".concat(D)):new J(24)}return u}(s))))||rt.of()},u.concat=function(t,s){var c=Jt(t);if(hr(c))return __DEV__&&ie.warn(new Hr("You are calling concat on a terminating link, which will have no effect",c)),c;var D=Jt(s);return hr(D)?new u(function(N){return c.request(N,function(z){return D.request(z)||rt.of()})||rt.of()}):new u(function(N,z){return c.request(N,function(se){return D.request(se,z)||rt.of()})||rt.of()})},u.prototype.split=function(t,s,c){return this.concat(u.split(t,s,c||new u(zr)))},u.prototype.concat=function(t){return u.concat(this,t)},u.prototype.request=function(t,s){throw __DEV__?new J("request is not implemented"):new J(19)},u.prototype.onError=function(t,s){if(s&&s.error)return s.error(t),!1;throw t},u.prototype.setOnError=function(t){return this.onError=t,this},u}(),$t=gt.execute,bt=y(11194),pr=function(u,t){var s;try{s=JSON.stringify(u)}catch(D){var c=__DEV__?new J("Network request failed. ".concat(t," is not serializable: ").concat(D.message)):new J(21);throw c.parseError=D,c}return s},Gr=function(u,t){return u.getContext().uri||("function"==typeof t?t(u):t||"/graphql")},X=function(u,t,s){var c=new Error(s);throw c.name="ServerError",c.response=u,c.statusCode=u.status,c.result=t,c},fe=Object.prototype.hasOwnProperty;function pe(u){return function(t){return t.text().then(function(s){try{return JSON.parse(s)}catch(D){var c=D;throw c.name="ServerParseError",c.response=t,c.statusCode=t.status,c.bodyText=s,c}}).then(function(s){return t.status>=300&&X(t,s,"Response not successful: Received status code ".concat(t.status)),!Array.isArray(s)&&!fe.call(s,"data")&&!fe.call(s,"errors")&&X(t,s,"Server response was missing for query '".concat(Array.isArray(u)?u.map(function(c){return c.operationName}):u.operationName,"'.")),s})}}var Oe=function(u){if(!u&&typeof fetch>"u")throw __DEV__?new J("\n\"fetch\" has not been found globally and no fetcher has been configured. To fix this, install a fetch package (like https://www.npmjs.com/package/cross-fetch), instantiate the fetcher, and pass it into your HttpLink constructor. For example:\n\nimport fetch from 'cross-fetch';\nimport { ApolloClient, HttpLink } from '@apollo/client';\nconst client = new ApolloClient({\n link: new HttpLink({ uri: '/graphql', fetch })\n});\n "):new J(20)},Ce=y(28133),Ge={http:{includeQuery:!0,includeExtensions:!1},headers:{accept:"*/*","content-type":"application/json"},options:{method:"POST"}},Ne=function(u,t){return t(u)};function tt(u,t){for(var s=[],c=2;c<arguments.length;c++)s[c-2]=arguments[c];return s.unshift(t),dt.apply(void 0,je([u,Ne],s,!1))}function dt(u,t){for(var s=[],c=2;c<arguments.length;c++)s[c-2]=arguments[c];var D={},N={};s.forEach(function(De){D=w(w(w({},D),De.options),{headers:w(w({},D.headers),Xe(De.headers))}),De.credentials&&(D.credentials=De.credentials),N=w(w({},N),De.http)});var ve=u.query,Ae={operationName:u.operationName,variables:u.variables};return N.includeExtensions&&(Ae.extensions=u.extensions),N.includeQuery&&(Ae.query=t(ve,Ce.print)),{options:D,body:Ae}}function Xe(u){if(u){var t=Object.create(null);return Object.keys(Object(u)).forEach(function(s){t[s.toLowerCase()]=u[s]}),t}return u}var ft=function(){if(typeof AbortController>"u")return{controller:!1,signal:!1};var u=new AbortController;return{controller:u,signal:u.signal}};function St(u,t){var s=[],c=function(De,Te){s.push("".concat(De,"=").concat(encodeURIComponent(Te)))};if("query"in t&&c("query",t.query),t.operationName&&c("operationName",t.operationName),t.variables){var D=void 0;try{D=pr(t.variables,"Variables map")}catch(De){return{parseError:De}}c("variables",D)}if(t.extensions){var N=void 0;try{N=pr(t.extensions,"Extensions map")}catch(De){return{parseError:De}}c("extensions",N)}var z="",se=u,we=u.indexOf("#");-1!==we&&(z=u.substr(we),se=u.substr(0,we));var ve=-1===se.indexOf("?")?"?":"&";return{newURI:se+ve+s.join("&")+z}}function Xt(u){return new rt(function(t){t.error(u)})}var Qn=$(function(){return fetch}),Kn=function(u){void 0===u&&(u={});var t=u.uri,s=void 0===t?"/graphql":t,c=u.fetch,D=u.print,N=void 0===D?Ne:D,z=u.includeExtensions,se=u.useGETForQueries,we=u.includeUnusedVariables,ve=void 0!==we&&we,Ae=f(u,["uri","fetch","print","includeExtensions","useGETForQueries","includeUnusedVariables"]);__DEV__&&Oe(c||Qn);var De={http:{includeExtensions:z},options:Ae.fetchOptions,credentials:Ae.credentials,headers:Ae.headers};return new gt(function(Te){var ke=Gr(Te,s),Be=Te.getContext(),Le={};if(Be.clientAwareness){var Ve=Be.clientAwareness,Qe=Ve.name,$e=Ve.version;Qe&&(Le["apollographql-client-name"]=Qe),$e&&(Le["apollographql-client-version"]=$e)}var Et,We=w(w({},Le),Be.headers),Ze=dt(Te,N,Ge,De,{http:Be.http,options:Be.fetchOptions,credentials:Be.credentials,headers:We}),Ye=Ze.options,Je=Ze.body;if(Je.variables&&!ve){var it=new Set(Object.keys(Je.variables));(0,bt.Vn)(Te.query,{Variable:function(_t,Ni,vt){vt&&"VariableDefinition"!==vt.kind&&it.delete(_t.name.value)}}),it.size&&(Je.variables=w({},Je.variables),it.forEach(function(_t){delete Je.variables[_t]}))}if(!Ye.signal){var st=ft();(Et=st.controller)&&(Ye.signal=st.signal)}if(se&&!Te.query.definitions.some(function(_t){return"OperationDefinition"===_t.kind&&"mutation"===_t.operation})&&(Ye.method="GET"),"GET"===Ye.method){var Fi=St(ke,Je),Ba=Fi.newURI,Li=Fi.parseError;if(Li)return Xt(Li);ke=Ba}else try{Ye.body=pr(Je,"Payload")}catch(_t){return Xt(_t)}return new rt(function(_t){return(c||$(function(){return fetch})||Qn)(ke,Ye).then(function(vt){return Te.setContext({response:vt}),vt}).then(pe(Te)).then(function(vt){return _t.next(vt),_t.complete(),vt}).catch(function(vt){"AbortError"!==vt.name&&(vt.result&&vt.result.errors&&vt.result.data&&_t.next(vt.result),_t.error(vt))}),function(){Et&&Et.abort()}})})},qn=function(u){function t(s){void 0===s&&(s={});var c=u.call(this,Kn(s).request)||this;return c.options=s,c}return K(t,u),t}(gt),lt=y(87788),Yr=y(15541),Zt="function"==typeof WeakMap&&"ReactNative"!==$(function(){return navigator.product}),Bi="function"==typeof WeakSet,ji="function"==typeof Symbol&&"function"==typeof Symbol.for;function Jr(){for(var u=[],t=0;t<arguments.length;t++)u[t]=arguments[t];var s=Object.create(null);return u.forEach(function(c){c&&Object.keys(c).forEach(function(D){var N=c[D];void 0!==N&&(s[D]=N)})}),s}function $r(u,t){var s=u.directives;return!s||!s.length||function qi(u){var t=[];return u&&u.length&&u.forEach(function(s){if(function Ki(u){var t=u.name.value;return"skip"===t||"include"===t}(s)){var c=s.arguments,D=s.name.value;__DEV__?ie(c&&1===c.length,"Incorrect number of arguments for the @".concat(D," directive.")):ie(c&&1===c.length,38);var N=c[0];__DEV__?ie(N.name&&"if"===N.name.value,"Invalid argument for the @".concat(D," directive.")):ie(N.name&&"if"===N.name.value,39);var z=N.value;__DEV__?ie(z&&("Variable"===z.kind||"BooleanValue"===z.kind),"Argument for the @".concat(D," directive must be a variable or a boolean value.")):ie(z&&("Variable"===z.kind||"BooleanValue"===z.kind),40),t.push({directive:s,ifArgument:N})}}),t}(s).every(function(c){var D=c.directive,N=c.ifArgument,z=!1;return"Variable"===N.value.kind?(z=t&&t[N.value.name.value],__DEV__?ie(void 0!==z,"Invalid variable referenced in @".concat(D.name.value," directive.")):ie(void 0!==z,37)):z=N.value.value,"skip"===D.name.value?!z:z})}function vn(u,t){return function Wi(u){var t=[];return(0,bt.Vn)(u,{Directive:function(s){t.push(s.name.value)}}),t}(t).some(function(s){return u.indexOf(s)>-1})}function Qi(u){return u&&vn(["client"],u)&&vn(["export"],u)}$(function(){return window.document.createElement}),$(function(){return navigator.userAgent.indexOf("jsdom")>=0});var zi=Object.prototype.hasOwnProperty;function zn(){for(var u=[],t=0;t<arguments.length;t++)u[t]=arguments[t];return yn(u)}function yn(u){var t=u[0]||{},s=u.length;if(s>1)for(var c=new dr,D=1;D<s;++D)t=c.merge(t,u[D]);return t}var Hi=function(u,t,s){return this.merge(u[s],t[s])},dr=function(){function u(t){void 0===t&&(t=Hi),this.reconciler=t,this.isObject=ot,this.pastCopies=new Set}return u.prototype.merge=function(t,s){for(var c=this,D=[],N=2;N<arguments.length;N++)D[N-2]=arguments[N];return ot(s)&&ot(t)?(Object.keys(s).forEach(function(z){if(zi.call(t,z)){var se=t[z];if(s[z]!==se){var we=c.reconciler.apply(c,je([t,s,z],D,!1));we!==se&&((t=c.shallowCopyForMerge(t))[z]=we)}}else(t=c.shallowCopyForMerge(t))[z]=s[z]}),t):s},u.prototype.shallowCopyForMerge=function(t){return ot(t)&&(this.pastCopies.has(t)||(t=Array.isArray(t)?t.slice(0):w({__proto__:Object.getPrototypeOf(t)},t),this.pastCopies.add(t))),t},u}(),ht=Object.prototype.hasOwnProperty;function mn(u,t){var s=u.__typename,c=u.id,D=u._id;if("string"==typeof s&&(t&&(t.keyObject=void 0!==c?{id:c}:void 0!==D?{_id:D}:void 0),void 0===c&&(c=D),void 0!==c))return"".concat(s,":").concat("number"==typeof c||"string"==typeof c?c:JSON.stringify(c))}var Hn={dataIdFromObject:mn,addTypename:!0,resultCaching:!0,canonizeResults:!1};function Gn(u){var t=u.canonizeResults;return void 0===t?Hn.canonizeResults:t}var Yn=/^[_a-z][_0-9a-z]*/i;function Wt(u){var t=u.match(Yn);return t?t[0]:u}function gn(u,t,s){return!!ot(t)&&(ct(t)?t.every(function(c){return gn(u,c,s)}):u.selections.every(function(c){if(At(c)&&$r(c,s)){var D=kt(c);return ht.call(t,D)&&(!c.selectionSet||gn(c.selectionSet,t[D],s))}return!0}))}function vr(u){return ot(u)&&!et(u)&&!ct(u)}var En,_n,ct=function(u){return Array.isArray(u)},bn=function(){function u(){this.known=new(Bi?WeakSet:Set),this.pool=new Yr.B(Zt),this.passes=new WeakMap,this.keysByJSON=new Map,this.empty=this.admit({})}return u.prototype.isKnown=function(t){return ot(t)&&this.known.has(t)},u.prototype.pass=function(t){if(ot(t)){var s=function $i(u){return ot(u)?ct(u)?u.slice(0):w({__proto__:Object.getPrototypeOf(u)},u):u}(t);return this.passes.set(s,t),s}return t},u.prototype.admit=function(t){var s=this;if(ot(t)){var c=this.passes.get(t);if(c)return c;switch(Object.getPrototypeOf(t)){case Array.prototype:if(this.known.has(t))return t;var N=t.map(this.admit,this);return(z=this.pool.lookupArray(N)).array||(this.known.add(z.array=N),__DEV__&&Object.freeze(N)),z.array;case null:case Object.prototype:if(this.known.has(t))return t;var se=Object.getPrototypeOf(t),we=[se],ve=this.sortedKeys(t);we.push(ve.json);var z,Ae=we.length;if(ve.sorted.forEach(function(ke){we.push(s.admit(t[ke]))}),!(z=this.pool.lookupArray(we)).object){var De=z.object=Object.create(se);this.known.add(De),ve.sorted.forEach(function(ke,Be){De[ke]=we[Ae+Be]}),__DEV__&&Object.freeze(De)}return z.object}}return t},u.prototype.sortedKeys=function(t){var s=Object.keys(t),c=this.pool.lookupArray(s);if(!c.keys){s.sort();var D=JSON.stringify(s);(c.keys=this.keysByJSON.get(D))||this.keysByJSON.set(D,c.keys={sorted:s,json:D})}return c.keys},u}(),er=Object.assign(function(u){if(ot(u)){void 0===En&&Jn();var t=En.admit(u),s=_n.get(t);return void 0===s&&_n.set(t,s=JSON.stringify(t)),s}return JSON.stringify(u)},{reset:Jn});function Jn(){En=new bn,_n=new(Zt?WeakMap:Map)}function wn(u,t,s){return new rt(function(c){var D=c.next,N=c.error,z=c.complete,se=0,we=!1,ve={then:function(ke){return new Promise(function(Be){return Be(ke())})}};function Ae(ke,Be){return ke?function(Le){++se;var Ve=function(){return ke(Le)};ve=ve.then(Ve,Ve).then(function(Qe){--se,D&&D.call(c,Qe),we&&De.complete()},function(Qe){throw--se,Qe}).catch(function(Qe){N&&N.call(c,Qe)})}:function(Le){return Be&&Be.call(c,Le)}}var De={next:Ae(t,D),error:Ae(s,N),complete:function(){we=!0,se||z&&z.call(c)}},Te=u.subscribe(De);return function(){return Te.unsubscribe()}})}function Xr(u){return u.errors&&u.errors.length>0||!1}function $n(u,t,s){var c=0;return u.forEach(function(D,N){t.call(this,D,N,u)&&(u[c++]=D)},s),u.length=c,u}var Xn={kind:"Field",name:{kind:"Name",value:"__typename"}};function Zn(u,t){return u.selectionSet.selections.every(function(s){return"FragmentSpread"===s.kind&&Zn(t[s.name.value],t)})}function Sn(u){return Zn(Ft(u)||function Kr(u){__DEV__?ie("Document"===u.kind,'Expecting a parsed GraphQL document. Perhaps you need to wrap the query string in a "gql" tag? http://docs.apollostack.com/apollo-client/core.html#gql'):ie("Document"===u.kind,48),__DEV__?ie(u.definitions.length<=1,"Fragment must have exactly one definition."):ie(u.definitions.length<=1,49);var t=u.definitions[0];return __DEV__?ie("FragmentDefinition"===t.kind,"Must be a fragment definition."):ie("FragmentDefinition"===t.kind,50),t}(u),Ht(Lt(u)))?null:u}function On(u){return function(s){return u.some(function(c){return c.name&&c.name===s.name.value||c.test&&c.test(s)})}}function ei(u,t){var s=Object.create(null),c=[],D=Object.create(null),N=[],z=Sn((0,bt.Vn)(t,{Variable:{enter:function(se,we,ve){"VariableDefinition"!==ve.kind&&(s[se.name.value]=!0)}},Field:{enter:function(se){if(u&&se.directives&&u.some(function(ve){return ve.remove})&&se.directives&&se.directives.some(On(u)))return se.arguments&&se.arguments.forEach(function(ve){"Variable"===ve.value.kind&&c.push({name:ve.value.name.value})}),se.selectionSet&&ti(se.selectionSet).forEach(function(ve){N.push({name:ve.name.value})}),null}},FragmentSpread:{enter:function(se){D[se.name.value]=!0}},Directive:{enter:function(se){if(On(u)(se))return null}}}));return z&&$n(c,function(se){return!!se.name&&!s[se.name]}).length&&(z=function na(u,t){var s=function ra(u){return function(s){return u.some(function(c){return s.value&&"Variable"===s.value.kind&&s.value.name&&(c.name===s.value.name.value||c.test&&c.test(s))})}}(u);return Sn((0,bt.Vn)(t,{OperationDefinition:{enter:function(c){return w(w({},c),{variableDefinitions:c.variableDefinitions?c.variableDefinitions.filter(function(D){return!u.some(function(N){return N.name===D.variable.name.value})}):[]})}},Field:{enter:function(c){var D=u.some(function(z){return z.remove});if(D){var N=0;if(c.arguments&&c.arguments.forEach(function(z){s(z)&&(N+=1)}),1===N)return null}}},Argument:{enter:function(c){if(s(c))return null}}}))}(c,z)),z&&$n(N,function(se){return!!se.name&&!D[se.name]}).length&&(z=function ia(u,t){function s(c){if(u.some(function(D){return D.name===c.name.value}))return null}return Sn((0,bt.Vn)(t,{FragmentSpread:{enter:s},FragmentDefinition:{enter:s}}))}(N,z)),z}var An=Object.assign(function(u){return(0,bt.Vn)(u,{SelectionSet:{enter:function(t,s,c){if(!c||"OperationDefinition"!==c.kind){var D=t.selections;if(D&&!D.some(function(se){return At(se)&&("__typename"===se.name.value||0===se.name.value.lastIndexOf("__",0))})){var z=c;if(!(At(z)&&z.directives&&z.directives.some(function(se){return"export"===se.name.value})))return w(w({},t),{selections:je(je([],D,!0),[Xn],!1)})}}}}})},{added:function(u){return u===Xn}}),Xi={test:function(u){var t="connection"===u.name.value;return t&&(!u.arguments||!u.arguments.some(function(s){return"key"===s.name.value}))&&__DEV__&&ie.warn("Removing an @connection directive even though it does not have a key. You may want to use the key parameter to specify a store key."),t}};function ti(u){var t=[];return u.selections.forEach(function(s){(At(s)||Qr(s))&&s.selectionSet?ti(s.selectionSet).forEach(function(c){return t.push(c)}):"FragmentSpread"===s.kind&&t.push(s)}),t}function aa(u){return"query"===Yt(u).operation?u:(0,bt.Vn)(u,{OperationDefinition:{enter:function(D){return w(w({},D),{operation:"query"})}}})}var ri=new Map;function xn(u){var t=ri.get(u)||1;return ri.set(u,t+1),"".concat(u,":").concat(t,":").concat(Math.random().toString(36).slice(2))}function Rr(u,t,s){var c=[];u.forEach(function(D){return D[t]&&c.push(D)}),c.forEach(function(D){return D[t](s)})}function ni(u){function t(s){Object.defineProperty(u,s,{value:rt})}return ji&&Symbol.species&&t(Symbol.species),t("@@species"),u}function ii(u){return u&&"function"==typeof u.then}var Ir=function(u){function t(s){var c=u.call(this,function(D){return c.addObserver(D),function(){return c.removeObserver(D)}})||this;return c.observers=new Set,c.addCount=0,c.promise=new Promise(function(D,N){c.resolve=D,c.reject=N}),c.handlers={next:function(D){null!==c.sub&&(c.latest=["next",D],Rr(c.observers,"next",D))},error:function(D){var N=c.sub;null!==N&&(N&&setTimeout(function(){return N.unsubscribe()}),c.sub=null,c.latest=["error",D],c.reject(D),Rr(c.observers,"error",D))},complete:function(){var D=c.sub;if(null!==D){var N=c.sources.shift();N?ii(N)?N.then(function(z){return c.sub=z.subscribe(c.handlers)}):c.sub=N.subscribe(c.handlers):(D&&setTimeout(function(){return D.unsubscribe()}),c.sub=null,c.latest&&"next"===c.latest[0]?c.resolve(c.latest[1]):c.resolve(),Rr(c.observers,"complete"))}}},c.cancel=function(D){c.reject(D),c.sources=[],c.handlers.complete()},c.promise.catch(function(D){}),"function"==typeof s&&(s=[new rt(s)]),ii(s)?s.then(function(D){return c.start(D)},c.handlers.error):c.start(s),c}return K(t,u),t.prototype.start=function(s){void 0===this.sub&&(this.sources=Array.from(s),this.handlers.complete())},t.prototype.deliverLastMessage=function(s){if(this.latest){var c=this.latest[0],D=s[c];D&&D.call(s,this.latest[1]),null===this.sub&&"next"===c&&s.complete&&s.complete()}},t.prototype.addObserver=function(s){this.observers.has(s)||(this.deliverLastMessage(s),this.observers.add(s),++this.addCount)},t.prototype.removeObserver=function(s,c){this.observers.delete(s)&&--this.addCount<1&&!c&&this.handlers.complete()},t.prototype.cleanup=function(s){var c=this,D=!1,N=function(){D||(D=!0,c.observers.delete(z),s())},z={next:N,error:N,complete:N},se=this.addCount;this.addObserver(z),this.addCount=se},t}(rt);function tr(u){return Array.isArray(u)&&u.length>0}function ai(u){return u.hasOwnProperty("graphQLErrors")}ni(Ir);var rr=function(u){function t(s){var c=s.graphQLErrors,D=s.clientErrors,N=s.networkError,z=s.errorMessage,se=s.extraInfo,we=u.call(this,z)||this;return we.graphQLErrors=c||[],we.clientErrors=D||[],we.networkError=N||null,we.message=z||function(u){var t="";return(tr(u.graphQLErrors)||tr(u.clientErrors))&&(u.graphQLErrors||[]).concat(u.clientErrors||[]).forEach(function(c){t+="".concat(c?c.message:"Error message not found.","\n")}),u.networkError&&(t+="".concat(u.networkError.message,"\n")),t=t.replace(/\n$/,"")}(we),we.extraInfo=se,we.__proto__=t.prototype,we}return K(t,u),t}(Error),nt=function(u){return u[u.loading=1]="loading",u[u.setVariables=2]="setVariables",u[u.fetchMore=3]="fetchMore",u[u.refetch=4]="refetch",u[u.poll=6]="poll",u[u.ready=7]="ready",u[u.error=8]="error",u}(nt||{});function Pr(u){return!!u&&u<7}var ua=Object.prototype.toString;function oi(u){return Tn(u)}function Tn(u,t){switch(ua.call(u)){case"[object Array]":if((t=t||new Map).has(u))return t.get(u);var s=u.slice(0);return t.set(u,s),s.forEach(function(D,N){s[N]=Tn(D,t)}),s;case"[object Object]":if((t=t||new Map).has(u))return t.get(u);var c=Object.create(Object.getPrototypeOf(u));return t.set(u,c),Object.keys(u).forEach(function(D){c[D]=Tn(u[D],t)}),c;default:return u}}var ca=Object.assign,fa=Object.hasOwnProperty,Zr=function(u){function t(s){var c=s.queryManager,D=s.queryInfo,N=s.options,z=u.call(this,function(Ve){try{var Qe=Ve._subscription._observer;Qe&&!Qe.error&&(Qe.error=la)}catch{}var $e=!z.observers.size;z.observers.add(Ve);var We=z.last;return We&&We.error?Ve.error&&Ve.error(We.error):We&&We.result&&Ve.next&&Ve.next(We.result),$e&&z.reobserve().catch(function(){}),function(){z.observers.delete(Ve)&&!z.observers.size&&z.tearDownQuery()}})||this;z.observers=new Set,z.subscriptions=new Set,z.queryInfo=D,z.queryManager=c,z.isTornDown=!1;var se=c.defaultOptions.watchQuery,ve=(void 0===se?{}:se).fetchPolicy,Ae=void 0===ve?"cache-first":ve,De=N.fetchPolicy,Te=void 0===De?Ae:De,ke=N.initialFetchPolicy,Be=void 0===ke?"standby"===Te?Ae:Te:ke;z.options=w(w({},N),{initialFetchPolicy:Be,fetchPolicy:Te}),z.queryId=D.queryId||c.generateQueryId();var Le=Ft(z.query);return z.queryName=Le&&Le.name&&Le.name.value,z}return K(t,u),Object.defineProperty(t.prototype,"query",{get:function(){return this.queryManager.transform(this.options.query).document},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"variables",{get:function(){return this.options.variables},enumerable:!1,configurable:!0}),t.prototype.result=function(){var s=this;return new Promise(function(c,D){var N={next:function(se){c(se),s.observers.delete(N),s.observers.size||s.queryManager.removeQuery(s.queryId),setTimeout(function(){z.unsubscribe()},0)},error:D},z=s.subscribe(N)})},t.prototype.getCurrentResult=function(s){void 0===s&&(s=!0);var c=this.getLastResult(!0),D=this.queryInfo.networkStatus||c&&c.networkStatus||nt.ready,N=w(w({},c),{loading:Pr(D),networkStatus:D}),z=this.options.fetchPolicy,se=void 0===z?"cache-first":z;if("network-only"!==se&&"no-cache"!==se&&"standby"!==se&&!this.queryManager.transform(this.options.query).hasForcedResolvers){var we=this.queryInfo.getDiff();(we.complete||this.options.returnPartialData)&&(N.data=we.result),(0,lt.D)(N.data,{})&&(N.data=void 0),we.complete?(delete N.partial,we.complete&&N.networkStatus===nt.loading&&("cache-first"===se||"cache-only"===se)&&(N.networkStatus=nt.ready,N.loading=!1)):N.partial=!0,__DEV__&&!we.complete&&!this.options.partialRefetch&&!N.loading&&!N.data&&!N.error&&ui(we.missing)}return s&&this.updateLastResult(N),N},t.prototype.isDifferentFromLastResult=function(s){return!this.last||!(0,lt.D)(this.last.result,s)},t.prototype.getLast=function(s,c){var D=this.last;if(D&&D[s]&&(!c||(0,lt.D)(D.variables,this.variables)))return D[s]},t.prototype.getLastResult=function(s){return this.getLast("result",s)},t.prototype.getLastError=function(s){return this.getLast("error",s)},t.prototype.resetLastResults=function(){delete this.last,this.isTornDown=!1},t.prototype.resetQueryStoreErrors=function(){this.queryManager.resetErrors(this.queryId)},t.prototype.refetch=function(s){var c,D={pollInterval:0},N=this.options.fetchPolicy;if(D.fetchPolicy="cache-and-network"===N?N:"no-cache"===N?"no-cache":"network-only",__DEV__&&s&&fa.call(s,"variables")){var z=xr(this.query),se=z.variableDefinitions;(!se||!se.some(function(we){return"variables"===we.variable.name.value}))&&__DEV__&&ie.warn("Called refetch(".concat(JSON.stringify(s),") for query ").concat((null===(c=z.name)||void 0===c?void 0:c.value)||JSON.stringify(z),", which does not declare a $variables variable.\nDid you mean to call refetch(variables) instead of refetch({ variables })?"))}return s&&!(0,lt.D)(this.options.variables,s)&&(D.variables=this.options.variables=w(w({},this.options.variables),s)),this.queryInfo.resetLastWrite(),this.reobserve(D,nt.refetch)},t.prototype.fetchMore=function(s){var c=this,D=w(w({},s.query?s:w(w(w(w({},this.options),{query:this.query}),s),{variables:w(w({},this.options.variables),s.variables)})),{fetchPolicy:"no-cache"}),N=this.queryManager.generateQueryId(),z=this.queryInfo,se=z.networkStatus;z.networkStatus=nt.fetchMore,D.notifyOnNetworkStatusChange&&this.observe();var we=new Set;return this.queryManager.fetchQuery(N,D,nt.fetchMore).then(function(ve){return c.queryManager.removeQuery(N),z.networkStatus===nt.fetchMore&&(z.networkStatus=se),c.queryManager.cache.batch({update:function(Ae){var De=s.updateQuery;De?Ae.updateQuery({query:c.query,variables:c.variables,returnPartialData:!0,optimistic:!1},function(Te){return De(Te,{fetchMoreResult:ve.data,variables:D.variables})}):Ae.writeQuery({query:D.query,variables:D.variables,data:ve.data})},onWatchUpdated:function(Ae){we.add(Ae.query)}}),ve}).finally(function(){we.has(c.query)||si(c)})},t.prototype.subscribeToMore=function(s){var c=this,D=this.queryManager.startGraphQLSubscription({query:s.document,variables:s.variables,context:s.context}).subscribe({next:function(N){var z=s.updateQuery;z&&c.updateQuery(function(se,we){return z(se,{subscriptionData:N,variables:we.variables})})},error:function(N){s.onError?s.onError(N):__DEV__&&ie.error("Unhandled GraphQL subscription error",N)}});return this.subscriptions.add(D),function(){c.subscriptions.delete(D)&&D.unsubscribe()}},t.prototype.setOptions=function(s){return this.reobserve(s)},t.prototype.setVariables=function(s){return(0,lt.D)(this.variables,s)?this.observers.size?this.result():Promise.resolve():(this.options.variables=s,this.observers.size?this.reobserve({fetchPolicy:this.options.initialFetchPolicy,variables:s},nt.setVariables):Promise.resolve())},t.prototype.updateQuery=function(s){var c=this.queryManager,N=s(c.cache.diff({query:this.options.query,variables:this.variables,returnPartialData:!0,optimistic:!1}).result,{variables:this.variables});N&&(c.cache.writeQuery({query:this.options.query,data:N,variables:this.variables}),c.broadcastQueries())},t.prototype.startPolling=function(s){this.options.pollInterval=s,this.updatePolling()},t.prototype.stopPolling=function(){this.options.pollInterval=0,this.updatePolling()},t.prototype.applyNextFetchPolicy=function(s,c){if(c.nextFetchPolicy){var D=c.fetchPolicy,N=void 0===D?"cache-first":D,z=c.initialFetchPolicy,se=void 0===z?N:z;"standby"===N||(c.fetchPolicy="function"==typeof c.nextFetchPolicy?c.nextFetchPolicy(N,{reason:s,options:c,observable:this,initialFetchPolicy:se}):"variables-changed"===s?se:c.nextFetchPolicy)}return c.fetchPolicy},t.prototype.fetch=function(s,c){return this.queryManager.setObservableQuery(this),this.queryManager.fetchQueryObservable(this.queryId,s,c)},t.prototype.updatePolling=function(){var s=this;if(!this.queryManager.ssrMode){var D=this.pollingInfo,N=this.options.pollInterval;if(!N)return void(D&&(clearTimeout(D.timeout),delete this.pollingInfo));if(!D||D.interval!==N){__DEV__?ie(N,"Attempted to start a polling query without a polling interval."):ie(N,10),(D||(this.pollingInfo={})).interval=N;var se=function(){s.pollingInfo&&(Pr(s.queryInfo.networkStatus)?we():s.reobserve({fetchPolicy:"network-only"},nt.poll).then(we,we))},we=function(){var ve=s.pollingInfo;ve&&(clearTimeout(ve.timeout),ve.timeout=setTimeout(se,ve.interval))};we()}}},t.prototype.updateLastResult=function(s,c){return void 0===c&&(c=this.variables),this.last=w(w({},this.last),{result:this.queryManager.assumeImmutableResults?s:oi(s),variables:c}),tr(s.errors)||delete this.last.error,this.last},t.prototype.reobserve=function(s,c){var D=this;this.isTornDown=!1;var N=c===nt.refetch||c===nt.fetchMore||c===nt.poll,z=this.options.variables,se=this.options.fetchPolicy,we=Jr(this.options,s||{}),ve=N?we:ca(this.options,we);N||(this.updatePolling(),s&&s.variables&&!(0,lt.D)(s.variables,z)&&"standby"!==ve.fetchPolicy&&ve.fetchPolicy===se&&(this.applyNextFetchPolicy("variables-changed",ve),void 0===c&&(c=nt.setVariables)));var Ae=ve.variables&&w({},ve.variables),De=this.fetch(ve,c),Te={next:function(ke){D.reportResult(ke,Ae)},error:function(ke){D.reportError(ke,Ae)}};return N||(this.concast&&this.observer&&this.concast.removeObserver(this.observer),this.concast=De,this.observer=Te),De.addObserver(Te),De.promise},t.prototype.observe=function(){this.reportResult(this.getCurrentResult(!1),this.variables)},t.prototype.reportResult=function(s,c){var D=this.getLastError();(D||this.isDifferentFromLastResult(s))&&((D||!s.partial||this.options.returnPartialData)&&this.updateLastResult(s,c),Rr(this.observers,"next",s))},t.prototype.reportError=function(s,c){var D=w(w({},this.getLastResult()),{error:s,errors:s.graphQLErrors,networkStatus:nt.error,loading:!1});this.updateLastResult(D,c),Rr(this.observers,"error",this.last.error=s)},t.prototype.hasObservers=function(){return this.observers.size>0},t.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(s){return s.unsubscribe()}),this.subscriptions.clear(),this.queryManager.stopQuery(this.queryId),this.observers.clear(),this.isTornDown=!0)},t}(rt);function si(u){var t=u.options,s=t.fetchPolicy,c=t.nextFetchPolicy;return"cache-and-network"===s||"network-only"===s?u.reobserve({fetchPolicy:"cache-first",nextFetchPolicy:function(){return this.nextFetchPolicy=c,"function"==typeof c?c.apply(this,arguments):s}}):u.reobserve()}function la(u){__DEV__&&ie.error("Unhandled error",u.message,u.stack)}function ui(u){__DEV__&&u&&__DEV__&&ie.debug("Missing cache result fields: ".concat(JSON.stringify(u)),u)}ni(Zr);var yr=y(95355),Cn=new(y(83753).g7),ci=new WeakMap;function Dr(u){var t=ci.get(u);return t||ci.set(u,t={vars:new Set,dep:(0,yr.dP)()}),t}function fi(u){Dr(u).vars.forEach(function(t){return t.forgetCache(u)})}function li(u){var t=new Set,s=new Set,c=function(N){if(arguments.length>0){if(u!==N){u=N,t.forEach(function(we){Dr(we).dep.dirty(c),function da(u){u.broadcastWatches&&u.broadcastWatches()}(we)});var z=Array.from(s);s.clear(),z.forEach(function(we){return we(u)})}}else{var se=Cn.getValue();se&&(D(se),Dr(se).dep(c))}return u};c.onNextChange=function(N){return s.add(N),function(){s.delete(N)}};var D=c.attachCache=function(N){return t.add(N),Dr(N).vars.add(c),c};return c.forgetCache=function(N){return t.delete(N)},c}var hi=function(){function u(t){var c=t.client,D=t.resolvers,N=t.fragmentMatcher;this.cache=t.cache,c&&(this.client=c),D&&this.addResolvers(D),N&&this.setFragmentMatcher(N)}return u.prototype.addResolvers=function(t){var s=this;this.resolvers=this.resolvers||{},Array.isArray(t)?t.forEach(function(c){s.resolvers=zn(s.resolvers,c)}):this.resolvers=zn(this.resolvers,t)},u.prototype.setResolvers=function(t){this.resolvers={},this.addResolvers(t)},u.prototype.getResolvers=function(){return this.resolvers||{}},u.prototype.runResolvers=function(t){var s=t.document,c=t.remoteResult,D=t.context,N=t.variables,z=t.onlyRunForcedResolvers,se=void 0!==z&&z;return me(this,void 0,void 0,function(){return Re(this,function(we){return s?[2,this.resolveDocument(s,c.data,D,N,this.fragmentMatcher,se).then(function(ve){return w(w({},c),{data:ve.result})})]:[2,c]})})},u.prototype.setFragmentMatcher=function(t){this.fragmentMatcher=t},u.prototype.getFragmentMatcher=function(){return this.fragmentMatcher},u.prototype.clientQuery=function(t){return vn(["client"],t)&&this.resolvers?t:null},u.prototype.serverQuery=function(t){return function oa(u){fr(u);var t=ei([{test:function(s){return"client"===s.name.value},remove:!0}],u);return t&&(t=(0,bt.Vn)(t,{FragmentDefinition:{enter:function(s){if(s.selectionSet&&s.selectionSet.selections.every(function(D){return At(D)&&"__typename"===D.name.value}))return null}}})),t}(t)},u.prototype.prepareContext=function(t){var s=this.cache;return w(w({},t),{cache:s,getCacheKey:function(c){return s.identify(c)}})},u.prototype.addExportedVariables=function(t,s,c){return void 0===s&&(s={}),void 0===c&&(c={}),me(this,void 0,void 0,function(){return Re(this,function(D){return t?[2,this.resolveDocument(t,this.buildRootValueFromCache(t,s)||{},this.prepareContext(c),s).then(function(N){return w(w({},s),N.exportedVariables)})]:[2,w({},s)]})})},u.prototype.shouldForceResolvers=function(t){var s=!1;return(0,bt.Vn)(t,{Directive:{enter:function(c){if("client"===c.name.value&&c.arguments&&(s=c.arguments.some(function(D){return"always"===D.name.value&&"BooleanValue"===D.value.kind&&!0===D.value.value})))return bt.$_}}}),s},u.prototype.buildRootValueFromCache=function(t,s){return this.cache.diff({query:aa(t),variables:s,returnPartialData:!0,optimistic:!1}).result},u.prototype.resolveDocument=function(t,s,c,D,N,z){return void 0===c&&(c={}),void 0===D&&(D={}),void 0===N&&(N=function(){return!0}),void 0===z&&(z=!1),me(this,void 0,void 0,function(){var se,we,ve,Ae,De,Te,ke,Be,Le;return Re(this,function(Ve){return se=Yt(t),we=Lt(t),ve=Ht(we),De=(Ae=se.operation)?Ae.charAt(0).toUpperCase()+Ae.slice(1):"Query",ke=(Te=this).cache,Be=Te.client,Le={fragmentMap:ve,context:w(w({},c),{cache:ke,client:Be}),variables:D,fragmentMatcher:N,defaultOperationType:De,exportedVariables:{},onlyRunForcedResolvers:z},[2,this.resolveSelectionSet(se.selectionSet,s,Le).then(function(Qe){return{result:Qe,exportedVariables:Le.exportedVariables}})]})})},u.prototype.resolveSelectionSet=function(t,s,c){return me(this,void 0,void 0,function(){var D,N,z,se,ve=this;return Re(this,function(Ae){return D=c.fragmentMap,N=c.context,z=c.variables,se=[s],[2,Promise.all(t.selections.map(function(De){return me(ve,void 0,void 0,function(){var Te;return Re(this,function(Be){return $r(De,z)?At(De)?[2,this.resolveField(De,s,c).then(function(Le){var Ve;typeof Le<"u"&&se.push(((Ve={})[kt(De)]=Le,Ve))})]:(Qr(De)?Te=De:(Te=D[De.name.value],__DEV__?ie(Te,"No fragment named ".concat(De.name.value)):ie(Te,9)),Te&&Te.typeCondition&&c.fragmentMatcher(s,Te.typeCondition.name.value,N)?[2,this.resolveSelectionSet(Te.selectionSet,s,c).then(function(Le){se.push(Le)})]:[2]):[2]})})})).then(function(){return yn(se)})]})})},u.prototype.resolveField=function(t,s,c){return me(this,void 0,void 0,function(){var D,N,z,se,we,ve,Ae,De,Te,ke=this;return Re(this,function(Be){return D=c.variables,N=t.name.value,z=kt(t),se=N!==z,we=s[z]||s[N],ve=Promise.resolve(we),(!c.onlyRunForcedResolvers||this.shouldForceResolvers(t))&&(Ae=s.__typename||c.defaultOperationType,(De=this.resolvers&&this.resolvers[Ae])&&(Te=De[se?N:z])&&(ve=Promise.resolve(Cn.withValue(this.cache,Te,[s,Gt(t,D),c.context,{field:t,fragmentMap:c.fragmentMap}])))),[2,ve.then(function(Le){return void 0===Le&&(Le=we),t.directives&&t.directives.forEach(function(Ve){"export"===Ve.name.value&&Ve.arguments&&Ve.arguments.forEach(function(Qe){"as"===Qe.name.value&&"StringValue"===Qe.value.kind&&(c.exportedVariables[Qe.value.value]=Le)})}),t.selectionSet&&null!=Le?Array.isArray(Le)?ke.resolveSubSelectedArray(t,Le,c):t.selectionSet?ke.resolveSelectionSet(t.selectionSet,Le,c):void 0:Le})]})})},u.prototype.resolveSubSelectedArray=function(t,s,c){var D=this;return Promise.all(s.map(function(N){return null===N?null:Array.isArray(N)?D.resolveSubSelectedArray(t,N,c):t.selectionSet?D.resolveSelectionSet(t.selectionSet,N,c):void 0}))},u}(),mr=new(Zt?WeakMap:Map);function Rn(u,t){var s=u[t];"function"==typeof s&&(u[t]=function(){return mr.set(u,(mr.get(u)+1)%1e15),s.apply(this,arguments)})}function pi(u){u.notifyTimeout&&(clearTimeout(u.notifyTimeout),u.notifyTimeout=void 0)}var In=function(){function u(t,s){void 0===s&&(s=t.generateQueryId()),this.queryId=s,this.listeners=new Set,this.document=null,this.lastRequestId=1,this.subscriptions=new Set,this.stopped=!1,this.dirty=!1,this.observableQuery=null;var c=this.cache=t.cache;mr.has(c)||(mr.set(c,0),Rn(c,"evict"),Rn(c,"modify"),Rn(c,"reset"))}return u.prototype.init=function(t){var s=t.networkStatus||nt.loading;return this.variables&&this.networkStatus!==nt.loading&&!(0,lt.D)(this.variables,t.variables)&&(s=nt.setVariables),(0,lt.D)(t.variables,this.variables)||(this.lastDiff=void 0),Object.assign(this,{document:t.document,variables:t.variables,networkError:null,graphQLErrors:this.graphQLErrors||[],networkStatus:s}),t.observableQuery&&this.setObservableQuery(t.observableQuery),t.lastRequestId&&(this.lastRequestId=t.lastRequestId),this},u.prototype.reset=function(){pi(this),this.lastDiff=void 0,this.dirty=!1},u.prototype.getDiff=function(t){void 0===t&&(t=this.variables);var s=this.getDiffOptions(t);if(this.lastDiff&&(0,lt.D)(s,this.lastDiff.options))return this.lastDiff.diff;this.updateWatch(this.variables=t);var c=this.observableQuery;if(c&&"no-cache"===c.options.fetchPolicy)return{complete:!1};var D=this.cache.diff(s);return this.updateLastDiff(D,s),D},u.prototype.updateLastDiff=function(t,s){this.lastDiff=t?{diff:t,options:s||this.getDiffOptions()}:void 0},u.prototype.getDiffOptions=function(t){var s;return void 0===t&&(t=this.variables),{query:this.document,variables:t,returnPartialData:!0,optimistic:!0,canonizeResults:null===(s=this.observableQuery)||void 0===s?void 0:s.options.canonizeResults}},u.prototype.setDiff=function(t){var s=this,c=this.lastDiff&&this.lastDiff.diff;this.updateLastDiff(t),!this.dirty&&!(0,lt.D)(c&&c.result,t&&t.result)&&(this.dirty=!0,this.notifyTimeout||(this.notifyTimeout=setTimeout(function(){return s.notify()},0)))},u.prototype.setObservableQuery=function(t){var s=this;t!==this.observableQuery&&(this.oqListener&&this.listeners.delete(this.oqListener),this.observableQuery=t,t?(t.queryInfo=this,this.listeners.add(this.oqListener=function(){s.getDiff().fromOptimisticTransaction?t.observe():si(t)})):delete this.oqListener)},u.prototype.notify=function(){var t=this;pi(this),this.shouldNotify()&&this.listeners.forEach(function(s){return s(t)}),this.dirty=!1},u.prototype.shouldNotify=function(){if(!this.dirty||!this.listeners.size)return!1;if(Pr(this.networkStatus)&&this.observableQuery){var t=this.observableQuery.options.fetchPolicy;if("cache-only"!==t&&"cache-and-network"!==t)return!1}return!0},u.prototype.stop=function(){if(!this.stopped){this.stopped=!0,this.reset(),this.cancel(),this.cancel=u.prototype.cancel,this.subscriptions.forEach(function(s){return s.unsubscribe()});var t=this.observableQuery;t&&t.stopPolling()}},u.prototype.cancel=function(){},u.prototype.updateWatch=function(t){var s=this;void 0===t&&(t=this.variables);var c=this.observableQuery;if(!c||"no-cache"!==c.options.fetchPolicy){var D=w(w({},this.getDiffOptions(t)),{watcher:this,callback:function(N){return s.setDiff(N)}});(!this.lastWatch||!(0,lt.D)(D,this.lastWatch))&&(this.cancel(),this.cancel=this.cache.watch(this.lastWatch=D))}},u.prototype.resetLastWrite=function(){this.lastWrite=void 0},u.prototype.shouldWrite=function(t,s){var c=this.lastWrite;return!(c&&c.dmCount===mr.get(this.cache)&&(0,lt.D)(s,c.variables)&&(0,lt.D)(t.data,c.result.data))},u.prototype.markResult=function(t,s,c){var D=this;this.graphQLErrors=tr(t.errors)?t.errors:[],this.reset(),"no-cache"===s.fetchPolicy?this.updateLastDiff({result:t.data,complete:!0},this.getDiffOptions(s.variables)):0!==c&&(Pn(t,s.errorPolicy)?this.cache.performTransaction(function(N){if(D.shouldWrite(t,s.variables))N.writeQuery({query:D.document,data:t.data,variables:s.variables,overwrite:1===c}),D.lastWrite={result:t,variables:s.variables,dmCount:mr.get(D.cache)};else if(D.lastDiff&&D.lastDiff.diff.complete)return void(t.data=D.lastDiff.diff.result);var z=D.getDiffOptions(s.variables),se=N.diff(z);D.stopped||D.updateWatch(s.variables),D.updateLastDiff(se,z),se.complete&&(t.data=se.result)}):this.lastWrite=void 0)},u.prototype.markReady=function(){return this.networkError=null,this.networkStatus=nt.ready},u.prototype.markError=function(t){return this.networkStatus=nt.error,this.lastWrite=void 0,this.reset(),t.graphQLErrors&&(this.graphQLErrors=t.graphQLErrors),t.networkError&&(this.networkError=t.networkError),t},u}();function Pn(u,t){void 0===t&&(t="none");var s="ignore"===t||"all"===t,c=!Xr(u);return!c&&s&&u.data&&(c=!0),c}var va=Object.prototype.hasOwnProperty,ya=function(){function u(t){var s=t.cache,c=t.link,D=t.defaultOptions,N=t.queryDeduplication,z=void 0!==N&&N,se=t.onBroadcast,we=t.ssrMode,ve=void 0!==we&&we,Ae=t.clientAwareness,De=void 0===Ae?{}:Ae,Te=t.localState,ke=t.assumeImmutableResults;this.clientAwareness={},this.queries=new Map,this.fetchCancelFns=new Map,this.transformCache=new(Zt?WeakMap:Map),this.queryIdCounter=1,this.requestIdCounter=1,this.mutationIdCounter=1,this.inFlightLinkObservables=new Map,this.cache=s,this.link=c,this.defaultOptions=D||Object.create(null),this.queryDeduplication=z,this.clientAwareness=De,this.localState=Te||new hi({cache:s}),this.ssrMode=ve,this.assumeImmutableResults=!!ke,(this.onBroadcast=se)&&(this.mutationStore=Object.create(null))}return u.prototype.stop=function(){var t=this;this.queries.forEach(function(s,c){t.stopQueryNoBroadcast(c)}),this.cancelPendingFetches(__DEV__?new J("QueryManager stopped while query was in flight"):new J(11))},u.prototype.cancelPendingFetches=function(t){this.fetchCancelFns.forEach(function(s){return s(t)}),this.fetchCancelFns.clear()},u.prototype.mutate=function(t){var s,c,D=t.mutation,N=t.variables,z=t.optimisticResponse,se=t.updateQueries,we=t.refetchQueries,ve=void 0===we?[]:we,Ae=t.awaitRefetchQueries,De=void 0!==Ae&&Ae,Te=t.update,ke=t.onQueryUpdated,Be=t.fetchPolicy,Le=void 0===Be?(null===(s=this.defaultOptions.mutate)||void 0===s?void 0:s.fetchPolicy)||"network-only":Be,Ve=t.errorPolicy,Qe=void 0===Ve?(null===(c=this.defaultOptions.mutate)||void 0===c?void 0:c.errorPolicy)||"none":Ve,$e=t.keepRootFields,We=t.context;return me(this,void 0,void 0,function(){var He,Ze,Ye;return Re(this,function(Je){switch(Je.label){case 0:return __DEV__?ie(D,"mutation option is required. You must specify your GraphQL document in the mutation option."):ie(D,12),__DEV__?ie("network-only"===Le||"no-cache"===Le,"Mutations support only 'network-only' or 'no-cache' fetchPolicy strings. The default `network-only` behavior automatically writes mutation results to the cache. Passing `no-cache` skips the cache write."):ie("network-only"===Le||"no-cache"===Le,13),He=this.generateMutationId(),D=this.transform(D).document,N=this.getVariables(D,N),this.transform(D).hasClientExports?[4,this.localState.addExportedVariables(D,N,We)]:[3,2];case 1:N=Je.sent(),Je.label=2;case 2:return Ze=this.mutationStore&&(this.mutationStore[He]={mutation:D,variables:N,loading:!0,error:null}),z&&this.markMutationOptimistic(z,{mutationId:He,document:D,variables:N,fetchPolicy:Le,errorPolicy:Qe,context:We,updateQueries:se,update:Te,keepRootFields:$e}),this.broadcastQueries(),Ye=this,[2,new Promise(function(it,Et){return wn(Ye.getObservableFromLink(D,w(w({},We),{optimisticResponse:z}),N,!1),function(st){if(Xr(st)&&"none"===Qe)throw new rr({graphQLErrors:st.errors});Ze&&(Ze.loading=!1,Ze.error=null);var Nt=w({},st);return"function"==typeof ve&&(ve=ve(Nt)),"ignore"===Qe&&Xr(Nt)&&delete Nt.errors,Ye.markMutationResult({mutationId:He,result:Nt,document:D,variables:N,fetchPolicy:Le,errorPolicy:Qe,context:We,update:Te,updateQueries:se,awaitRefetchQueries:De,refetchQueries:ve,removeOptimistic:z?He:void 0,onQueryUpdated:ke,keepRootFields:$e})}).subscribe({next:function(st){Ye.broadcastQueries(),it(st)},error:function(st){Ze&&(Ze.loading=!1,Ze.error=st),z&&Ye.cache.removeOptimistic(He),Ye.broadcastQueries(),Et(st instanceof rr?st:new rr({networkError:st}))}})})]}})})},u.prototype.markMutationResult=function(t,s){var c=this;void 0===s&&(s=this.cache);var D=t.result,N=[],z="no-cache"===t.fetchPolicy;if(!z&&Pn(D,t.errorPolicy)){N.push({result:D.data,dataId:"ROOT_MUTATION",query:t.document,variables:t.variables});var se=t.updateQueries;se&&this.queries.forEach(function(ve,Ae){var De=ve.observableQuery,Te=De&&De.queryName;if(Te&&va.call(se,Te)){var ke=se[Te],Be=c.queries.get(Ae),Le=Be.document,Ve=Be.variables,Qe=s.diff({query:Le,variables:Ve,returnPartialData:!0,optimistic:!1}),$e=Qe.result;if(Qe.complete&&$e){var He=ke($e,{mutationResult:D,queryName:Le&&lr(Le)||void 0,queryVariables:Ve});He&&N.push({result:He,dataId:"ROOT_QUERY",query:Le,variables:Ve})}}})}if(N.length>0||t.refetchQueries||t.update||t.onQueryUpdated||t.removeOptimistic){var we=[];if(this.refetchQueries({updateCache:function(ve){z||N.forEach(function(Te){return ve.write(Te)});var Ae=t.update;if(Ae){if(!z){var De=ve.diff({id:"ROOT_MUTATION",query:c.transform(t.document).asQuery,variables:t.variables,optimistic:!1,returnPartialData:!0});De.complete&&(D=w(w({},D),{data:De.result}))}Ae(ve,D,{context:t.context,variables:t.variables})}!z&&!t.keepRootFields&&ve.modify({id:"ROOT_MUTATION",fields:function(Te,ke){return"__typename"===ke.fieldName?Te:ke.DELETE}})},include:t.refetchQueries,optimistic:!1,removeOptimistic:t.removeOptimistic,onQueryUpdated:t.onQueryUpdated||null}).forEach(function(ve){return we.push(ve)}),t.awaitRefetchQueries||t.onQueryUpdated)return Promise.all(we).then(function(){return D})}return Promise.resolve(D)},u.prototype.markMutationOptimistic=function(t,s){var c=this,D="function"==typeof t?t(s.variables):t;return this.cache.recordOptimisticTransaction(function(N){try{c.markMutationResult(w(w({},s),{result:{data:D}}),N)}catch(z){__DEV__&&ie.error(z)}},s.mutationId)},u.prototype.fetchQuery=function(t,s,c){return this.fetchQueryObservable(t,s,c).promise},u.prototype.getQueryStore=function(){var t=Object.create(null);return this.queries.forEach(function(s,c){t[c]={variables:s.variables,networkStatus:s.networkStatus,networkError:s.networkError,graphQLErrors:s.graphQLErrors}}),t},u.prototype.resetErrors=function(t){var s=this.queries.get(t);s&&(s.networkError=void 0,s.graphQLErrors=[])},u.prototype.transform=function(t){var s=this.transformCache;if(!s.has(t)){var c=this.cache.transformDocument(t),D=function Zi(u){return ei([Xi],fr(u))}(this.cache.transformForLink(c)),N=this.localState.clientQuery(c),z=D&&this.localState.serverQuery(D),se={document:c,hasClientExports:Qi(c),hasForcedResolvers:this.localState.shouldForceResolvers(c),clientQuery:N,serverQuery:z,defaultVars:Tr(Ft(c)),asQuery:w(w({},c),{definitions:c.definitions.map(function(ve){return"OperationDefinition"===ve.kind&&"query"!==ve.operation?w(w({},ve),{operation:"query"}):ve})})},we=function(ve){ve&&!s.has(ve)&&s.set(ve,se)};we(t),we(c),we(N),we(z)}return s.get(t)},u.prototype.getVariables=function(t,s){return w(w({},this.transform(t).defaultVars),s)},u.prototype.watchQuery=function(t){typeof(t=w(w({},t),{variables:this.getVariables(t.query,t.variables)})).notifyOnNetworkStatusChange>"u"&&(t.notifyOnNetworkStatusChange=!1);var s=new In(this),c=new Zr({queryManager:this,queryInfo:s,options:t});return this.queries.set(c.queryId,s),s.init({document:c.query,observableQuery:c,variables:c.variables}),c},u.prototype.query=function(t,s){var c=this;return void 0===s&&(s=this.generateQueryId()),__DEV__?ie(t.query,"query option is required. You must specify your GraphQL document in the query option."):ie(t.query,14),__DEV__?ie("Document"===t.query.kind,'You must wrap the query string in a "gql" tag.'):ie("Document"===t.query.kind,15),__DEV__?ie(!t.returnPartialData,"returnPartialData option only supported on watchQuery."):ie(!t.returnPartialData,16),__DEV__?ie(!t.pollInterval,"pollInterval option only supported on watchQuery."):ie(!t.pollInterval,17),this.fetchQuery(s,t).finally(function(){return c.stopQuery(s)})},u.prototype.generateQueryId=function(){return String(this.queryIdCounter++)},u.prototype.generateRequestId=function(){return this.requestIdCounter++},u.prototype.generateMutationId=function(){return String(this.mutationIdCounter++)},u.prototype.stopQueryInStore=function(t){this.stopQueryInStoreNoBroadcast(t),this.broadcastQueries()},u.prototype.stopQueryInStoreNoBroadcast=function(t){var s=this.queries.get(t);s&&s.stop()},u.prototype.clearStore=function(t){return void 0===t&&(t={discardWatches:!0}),this.cancelPendingFetches(__DEV__?new J("Store reset while query was in flight (not completed in link chain)"):new J(18)),this.queries.forEach(function(s){s.observableQuery?s.networkStatus=nt.loading:s.stop()}),this.mutationStore&&(this.mutationStore=Object.create(null)),this.cache.reset(t)},u.prototype.getObservableQueries=function(t){var s=this;void 0===t&&(t="active");var c=new Map,D=new Map,N=new Set;return Array.isArray(t)&&t.forEach(function(z){"string"==typeof z?D.set(z,!1):function un(u){return ot(u)&&"Document"===u.kind&&Array.isArray(u.definitions)}(z)?D.set(s.transform(z).document,!1):ot(z)&&z.query&&N.add(z)}),this.queries.forEach(function(z,se){var we=z.observableQuery,ve=z.document;if(we){if("all"===t)return void c.set(se,we);var Ae=we.queryName;if("standby"===we.options.fetchPolicy||"active"===t&&!we.hasObservers())return;("active"===t||Ae&&D.has(Ae)||ve&&D.has(ve))&&(c.set(se,we),Ae&&D.set(Ae,!0),ve&&D.set(ve,!0))}}),N.size&&N.forEach(function(z){var se=xn("legacyOneTimeQuery"),we=s.getQuery(se).init({document:z.query,variables:z.variables}),ve=new Zr({queryManager:s,queryInfo:we,options:w(w({},z),{fetchPolicy:"network-only"})});ie(ve.queryId===se),we.setObservableQuery(ve),c.set(se,ve)}),__DEV__&&D.size&&D.forEach(function(z,se){z||__DEV__&&ie.warn("Unknown query ".concat("string"==typeof se?"named ":"").concat(JSON.stringify(se,null,2)," requested in refetchQueries options.include array"))}),c},u.prototype.reFetchObservableQueries=function(t){var s=this;void 0===t&&(t=!1);var c=[];return this.getObservableQueries(t?"all":"active").forEach(function(D,N){var z=D.options.fetchPolicy;D.resetLastResults(),(t||"standby"!==z&&"cache-only"!==z)&&c.push(D.refetch()),s.getQuery(N).setDiff(null)}),this.broadcastQueries(),Promise.all(c)},u.prototype.setObservableQuery=function(t){this.getQuery(t.queryId).setObservableQuery(t)},u.prototype.startGraphQLSubscription=function(t){var s=this,c=t.query,D=t.fetchPolicy,N=t.errorPolicy,z=t.variables,se=t.context,we=void 0===se?{}:se;c=this.transform(c).document,z=this.getVariables(c,z);var ve=function(De){return s.getObservableFromLink(c,we,De).map(function(Te){if("no-cache"!==D&&(Pn(Te,N)&&s.cache.write({query:c,result:Te.data,dataId:"ROOT_SUBSCRIPTION",variables:De}),s.broadcastQueries()),Xr(Te))throw new rr({graphQLErrors:Te.errors});return Te})};if(this.transform(c).hasClientExports){var Ae=this.localState.addExportedVariables(c,z,we).then(ve);return new rt(function(De){var Te=null;return Ae.then(function(ke){return Te=ke.subscribe(De)},De.error),function(){return Te&&Te.unsubscribe()}})}return ve(z)},u.prototype.stopQuery=function(t){this.stopQueryNoBroadcast(t),this.broadcastQueries()},u.prototype.stopQueryNoBroadcast=function(t){this.stopQueryInStoreNoBroadcast(t),this.removeQuery(t)},u.prototype.removeQuery=function(t){this.fetchCancelFns.delete(t),this.queries.has(t)&&(this.getQuery(t).stop(),this.queries.delete(t))},u.prototype.broadcastQueries=function(){this.onBroadcast&&this.onBroadcast(),this.queries.forEach(function(t){return t.notify()})},u.prototype.getLocalState=function(){return this.localState},u.prototype.getObservableFromLink=function(t,s,c,D){var z,N=this;void 0===D&&(D=null!==(z=s?.queryDeduplication)&&void 0!==z?z:this.queryDeduplication);var se,we=this.transform(t).serverQuery;if(we){var Ae=this.inFlightLinkObservables,De=this.link,Te={query:we,variables:c,operationName:lr(we)||void 0,context:this.prepareContext(w(w({},s),{forceFetch:!D}))};if(s=Te.context,D){var ke=Ae.get(we)||new Map;Ae.set(we,ke);var Be=er(c);if(!(se=ke.get(Be))){var Le=new Ir([$t(De,Te)]);ke.set(Be,se=Le),Le.cleanup(function(){ke.delete(Be)&&ke.size<1&&Ae.delete(we)})}}else se=new Ir([$t(De,Te)])}else se=new Ir([rt.of({data:{}})]),s=this.prepareContext(s);var Ve=this.transform(t).clientQuery;return Ve&&(se=wn(se,function(Qe){return N.localState.runResolvers({document:Ve,remoteResult:Qe,context:s,variables:c})})),se},u.prototype.getResultsFromLink=function(t,s,c){var D=t.lastRequestId=this.generateRequestId();return wn(this.getObservableFromLink(t.document,c.context,c.variables),function(N){var z=tr(N.errors);if(D>=t.lastRequestId){if(z&&"none"===c.errorPolicy)throw t.markError(new rr({graphQLErrors:N.errors}));t.markResult(N,c,s),t.markReady()}var se={data:N.data,loading:!1,networkStatus:nt.ready};return z&&"ignore"!==c.errorPolicy&&(se.errors=N.errors,se.networkStatus=nt.error),se},function(N){var z=ai(N)?N:new rr({networkError:N});throw D>=t.lastRequestId&&t.markError(z),z})},u.prototype.fetchQueryObservable=function(t,s,c){var D=this;void 0===c&&(c=nt.loading);var N=this.transform(s.query).document,z=this.getVariables(N,s.variables),se=this.getQuery(t),we=this.defaultOptions.watchQuery,ve=s.fetchPolicy,De=s.errorPolicy,ke=s.returnPartialData,Le=s.notifyOnNetworkStatusChange,Qe=s.context,We=Object.assign({},s,{query:N,variables:z,fetchPolicy:void 0===ve?we&&we.fetchPolicy||"cache-first":ve,errorPolicy:void 0===De?we&&we.errorPolicy||"none":De,returnPartialData:void 0!==ke&&ke,notifyOnNetworkStatusChange:void 0!==Le&&Le,context:void 0===Qe?{}:Qe}),He=function(Je){We.variables=Je;var it=D.fetchQueryByPolicy(se,We,c);return"standby"!==We.fetchPolicy&&it.length>0&&se.observableQuery&&se.observableQuery.applyNextFetchPolicy("after-fetch",s),it},Ze=function(){return D.fetchCancelFns.delete(t)};this.fetchCancelFns.set(t,function(Je){Ze(),setTimeout(function(){return Ye.cancel(Je)})});var Ye=new Ir(this.transform(We.query).hasClientExports?this.localState.addExportedVariables(We.query,We.variables,We.context).then(He):He(We.variables));return Ye.promise.then(Ze,Ze),Ye},u.prototype.refetchQueries=function(t){var s=this,c=t.updateCache,D=t.include,N=t.optimistic,z=void 0!==N&&N,se=t.removeOptimistic,we=void 0===se?z?xn("refetchQueries"):void 0:se,ve=t.onQueryUpdated,Ae=new Map;D&&this.getObservableQueries(D).forEach(function(Te,ke){Ae.set(ke,{oq:Te,lastDiff:s.getQuery(ke).getDiff()})});var De=new Map;return c&&this.cache.batch({update:c,optimistic:z&&we||!1,removeOptimistic:we,onWatchUpdated:function(Te,ke,Be){var Le=Te.watcher instanceof In&&Te.watcher.observableQuery;if(Le){if(ve){Ae.delete(Le.queryId);var Ve=ve(Le,ke,Be);return!0===Ve&&(Ve=Le.refetch()),!1!==Ve&&De.set(Le,Ve),Ve}null!==ve&&Ae.set(Le.queryId,{oq:Le,lastDiff:Be,diff:ke})}}}),Ae.size&&Ae.forEach(function(Te,ke){var Qe,Be=Te.oq,Le=Te.lastDiff,Ve=Te.diff;if(ve){if(!Ve){var $e=Be.queryInfo;$e.reset(),Ve=$e.getDiff()}Qe=ve(Be,Ve,Le)}(!ve||!0===Qe)&&(Qe=Be.refetch()),!1!==Qe&&De.set(Be,Qe),ke.indexOf("legacyOneTimeQuery")>=0&&s.stopQueryNoBroadcast(ke)}),we&&this.cache.removeOptimistic(we),De},u.prototype.fetchQueryByPolicy=function(t,s,c){var D=this,N=s.query,z=s.variables,se=s.fetchPolicy,we=s.refetchWritePolicy,ve=s.errorPolicy,Ae=s.returnPartialData,De=s.context,Te=s.notifyOnNetworkStatusChange,ke=t.networkStatus;t.init({document:this.transform(N).document,variables:z,networkStatus:c});var Be=function(){return t.getDiff(z)},Le=function(He,Ze){void 0===Ze&&(Ze=t.networkStatus||nt.loading);var Ye=He.result;__DEV__&&!Ae&&!(0,lt.D)(Ye,{})&&ui(He.missing);var Je=function(it){return rt.of(w({data:it,loading:Pr(Ze),networkStatus:Ze},He.complete?null:{partial:!0}))};return Ye&&D.transform(N).hasForcedResolvers?D.localState.runResolvers({document:N,remoteResult:{data:Ye},context:De,variables:z,onlyRunForcedResolvers:!0}).then(function(it){return Je(it.data||void 0)}):Je(Ye)},Ve="no-cache"===se?0:c===nt.refetch&&"merge"!==we?1:2,Qe=function(){return D.getResultsFromLink(t,Ve,{variables:z,context:De,fetchPolicy:se,errorPolicy:ve})},$e=Te&&"number"==typeof ke&&ke!==c&&Pr(c);switch(se){default:case"cache-first":return(We=Be()).complete?[Le(We,t.markReady())]:Ae||$e?[Le(We),Qe()]:[Qe()];case"cache-and-network":var We;return(We=Be()).complete||Ae||$e?[Le(We),Qe()]:[Qe()];case"cache-only":return[Le(Be(),t.markReady())];case"network-only":return $e?[Le(Be()),Qe()]:[Qe()];case"no-cache":return $e?[Le(t.getDiff()),Qe()]:[Qe()];case"standby":return[]}},u.prototype.getQuery=function(t){return t&&!this.queries.has(t)&&this.queries.set(t,new In(this,t)),this.queries.get(t)},u.prototype.prepareContext=function(t){void 0===t&&(t={});var s=this.localState.prepareContext(t);return w(w({},s),{clientAwareness:this.clientAwareness})},u}();function en(u,t){return Jr(u,t,t.variables&&{variables:w(w({},u&&u.variables),t.variables)})}var Dn,di=!1,ma=function(){function u(t){var s=this;this.resetStoreCallbacks=[],this.clearStoreCallbacks=[];var c=t.uri,z=t.cache,se=t.ssrMode,we=void 0!==se&&se,ve=t.ssrForceFetchDelay,Ae=void 0===ve?0:ve,De=t.connectToDevTools,Te=void 0===De?"object"==typeof window&&!window.__APOLLO_CLIENT__&&__DEV__:De,ke=t.queryDeduplication,Be=void 0===ke||ke,Le=t.defaultOptions,Ve=t.assumeImmutableResults,Qe=void 0!==Ve&&Ve,$e=t.resolvers,We=t.typeDefs,He=t.fragmentMatcher,Ze=t.name,Ye=t.version,Je=t.link;if(Je||(Je=c?new qn({uri:c,credentials:t.credentials,headers:t.headers}):gt.empty()),!z)throw __DEV__?new J("To initialize Apollo Client, you must specify a 'cache' property in the options object. \nFor more information, please visit: https://go.apollo.dev/c/docs"):new J(7);if(this.link=Je,this.cache=z,this.disableNetworkFetches=we||Ae>0,this.queryDeduplication=Be,this.defaultOptions=Le||Object.create(null),this.typeDefs=We,Ae&&setTimeout(function(){return s.disableNetworkFetches=!1},Ae),this.watchQuery=this.watchQuery.bind(this),this.query=this.query.bind(this),this.mutate=this.mutate.bind(this),this.resetStore=this.resetStore.bind(this),this.reFetchObservableQueries=this.reFetchObservableQueries.bind(this),Te&&"object"==typeof window&&(window.__APOLLO_CLIENT__=this),!di&&__DEV__&&(di=!0,typeof window<"u"&&window.document&&window.top===window.self&&!window.__APOLLO_DEVTOOLS_GLOBAL_HOOK__)){var it=window.navigator,Et=it&&it.userAgent,st=void 0;"string"==typeof Et&&(Et.indexOf("Chrome/")>-1?st="https://chrome.google.com/webstore/detail/apollo-client-developer-t/jdkknkkbebbapilgoeccciglkfbmbnfm":Et.indexOf("Firefox/")>-1&&(st="https://addons.mozilla.org/en-US/firefox/addon/apollo-developer-tools/")),st&&__DEV__&&ie.log("Download the Apollo DevTools for a better development experience: "+st)}this.version="3.6.9",this.localState=new hi({cache:z,client:this,resolvers:$e,fragmentMatcher:He}),this.queryManager=new ya({cache:this.cache,link:this.link,defaultOptions:this.defaultOptions,queryDeduplication:Be,ssrMode:we,clientAwareness:{name:Ze,version:Ye},localState:this.localState,assumeImmutableResults:Qe,onBroadcast:Te?function(){s.devToolsHookCb&&s.devToolsHookCb({action:{},state:{queries:s.queryManager.getQueryStore(),mutations:s.queryManager.mutationStore||{}},dataWithOptimisticResults:s.cache.extract(!0)})}:void 0})}return u.prototype.stop=function(){this.queryManager.stop()},u.prototype.watchQuery=function(t){return this.defaultOptions.watchQuery&&(t=en(this.defaultOptions.watchQuery,t)),this.disableNetworkFetches&&("network-only"===t.fetchPolicy||"cache-and-network"===t.fetchPolicy)&&(t=w(w({},t),{fetchPolicy:"cache-first"})),this.queryManager.watchQuery(t)},u.prototype.query=function(t){return this.defaultOptions.query&&(t=en(this.defaultOptions.query,t)),__DEV__?ie("cache-and-network"!==t.fetchPolicy,"The cache-and-network fetchPolicy does not work with client.query, because client.query can only return a single result. Please use client.watchQuery to receive multiple results from the cache and the network, or consider using a different fetchPolicy, such as cache-first or network-only."):ie("cache-and-network"!==t.fetchPolicy,8),this.disableNetworkFetches&&"network-only"===t.fetchPolicy&&(t=w(w({},t),{fetchPolicy:"cache-first"})),this.queryManager.query(t)},u.prototype.mutate=function(t){return this.defaultOptions.mutate&&(t=en(this.defaultOptions.mutate,t)),this.queryManager.mutate(t)},u.prototype.subscribe=function(t){return this.queryManager.startGraphQLSubscription(t)},u.prototype.readQuery=function(t,s){return void 0===s&&(s=!1),this.cache.readQuery(t,s)},u.prototype.readFragment=function(t,s){return void 0===s&&(s=!1),this.cache.readFragment(t,s)},u.prototype.writeQuery=function(t){this.cache.writeQuery(t),this.queryManager.broadcastQueries()},u.prototype.writeFragment=function(t){this.cache.writeFragment(t),this.queryManager.broadcastQueries()},u.prototype.__actionHookForDevTools=function(t){this.devToolsHookCb=t},u.prototype.__requestRaw=function(t){return $t(this.link,t)},u.prototype.resetStore=function(){var t=this;return Promise.resolve().then(function(){return t.queryManager.clearStore({discardWatches:!1})}).then(function(){return Promise.all(t.resetStoreCallbacks.map(function(s){return s()}))}).then(function(){return t.reFetchObservableQueries()})},u.prototype.clearStore=function(){var t=this;return Promise.resolve().then(function(){return t.queryManager.clearStore({discardWatches:!0})}).then(function(){return Promise.all(t.clearStoreCallbacks.map(function(s){return s()}))})},u.prototype.onResetStore=function(t){var s=this;return this.resetStoreCallbacks.push(t),function(){s.resetStoreCallbacks=s.resetStoreCallbacks.filter(function(c){return c!==t})}},u.prototype.onClearStore=function(t){var s=this;return this.clearStoreCallbacks.push(t),function(){s.clearStoreCallbacks=s.clearStoreCallbacks.filter(function(c){return c!==t})}},u.prototype.reFetchObservableQueries=function(t){return this.queryManager.reFetchObservableQueries(t)},u.prototype.refetchQueries=function(t){var s=this.queryManager.refetchQueries(t),c=[],D=[];s.forEach(function(z,se){c.push(se),D.push(z)});var N=Promise.all(D);return N.queries=c,N.results=D,N.catch(function(z){__DEV__&&ie.debug("In client.refetchQueries, Promise.all promise rejected with error ".concat(z))}),N},u.prototype.getObservableQueries=function(t){return void 0===t&&(t="active"),this.queryManager.getObservableQueries(t)},u.prototype.extract=function(t){return this.cache.extract(t)},u.prototype.restore=function(t){return this.cache.restore(t)},u.prototype.addResolvers=function(t){this.localState.addResolvers(t)},u.prototype.setResolvers=function(t){this.localState.setResolvers(t)},u.prototype.getResolvers=function(){return this.localState.getResolvers()},u.prototype.setLocalStateFragmentMatcher=function(t){this.localState.setFragmentMatcher(t)},u.prototype.setLink=function(t){this.link=this.queryManager.link=t},u}();Dn||(Dn={});var vi=function(){function u(){this.getFragmentDoc=(0,yr.re)(sn)}return u.prototype.batch=function(t){var D,s=this;return this.performTransaction(function(){return D=t.update(s)},"string"==typeof t.optimistic?t.optimistic:!1===t.optimistic?null:void 0),D},u.prototype.recordOptimisticTransaction=function(t,s){this.performTransaction(t,s)},u.prototype.transformDocument=function(t){return t},u.prototype.identify=function(t){},u.prototype.gc=function(){return[]},u.prototype.modify=function(t){return!1},u.prototype.transformForLink=function(t){return t},u.prototype.readQuery=function(t,s){return void 0===s&&(s=!!t.optimistic),this.read(w(w({},t),{rootId:t.id||"ROOT_QUERY",optimistic:s}))},u.prototype.readFragment=function(t,s){return void 0===s&&(s=!!t.optimistic),this.read(w(w({},t),{query:this.getFragmentDoc(t.fragment,t.fragmentName),rootId:t.id,optimistic:s}))},u.prototype.writeQuery=function(t){var s=t.id,c=t.data,D=f(t,["id","data"]);return this.write(Object.assign(D,{dataId:s||"ROOT_QUERY",result:c}))},u.prototype.writeFragment=function(t){var s=t.id,c=t.data,D=t.fragment,N=t.fragmentName,z=f(t,["id","data","fragment","fragmentName"]);return this.write(Object.assign(z,{query:this.getFragmentDoc(D,N),dataId:s,result:c}))},u.prototype.updateQuery=function(t,s){return this.batch({update:function(c){var D=c.readQuery(t),N=s(D);return null==N?D:(c.writeQuery(w(w({},t),{data:N})),N)}})},u.prototype.updateFragment=function(t,s){return this.batch({update:function(c){var D=c.readFragment(t),N=s(D);return null==N?D:(c.writeFragment(w(w({},t),{data:N})),N)}})},u}(),Mn=function u(t,s,c,D){this.message=t,this.path=s,this.query=c,this.variables=D};function kn(u){return __DEV__&&function ga(u){var t=new Set([u]);return t.forEach(function(s){ot(s)&&function ba(u){if(__DEV__&&!Object.isFrozen(u))try{Object.freeze(u)}catch(t){if(t instanceof TypeError)return null;throw t}return u}(s)===s&&Object.getOwnPropertyNames(s).forEach(function(c){ot(s[c])&&t.add(s[c])})}),u}(u),u}var tn=Object.create(null),Fn=function(){return tn},yi=Object.create(null),Mr=function(){function u(t,s){var c=this;this.policies=t,this.group=s,this.data=Object.create(null),this.rootIds=Object.create(null),this.refs=Object.create(null),this.getFieldValue=function(D,N){return kn(et(D)?c.get(D.__ref,N):D&&D[N])},this.canRead=function(D){return et(D)?c.has(D.__ref):"object"==typeof D},this.toReference=function(D,N){if("string"==typeof D)return It(D);if(et(D))return D;var z=c.policies.identify(D)[0];if(z){var se=It(z);return N&&c.merge(z,D),se}}}return u.prototype.toObject=function(){return w({},this.data)},u.prototype.has=function(t){return void 0!==this.lookup(t,!0)},u.prototype.get=function(t,s){if(this.group.depend(t,s),ht.call(this.data,t)){var c=this.data[t];if(c&&ht.call(c,s))return c[s]}return"__typename"===s&&ht.call(this.policies.rootTypenamesById,t)?this.policies.rootTypenamesById[t]:this instanceof Qt?this.parent.get(t,s):void 0},u.prototype.lookup=function(t,s){return s&&this.group.depend(t,"__exists"),ht.call(this.data,t)?this.data[t]:this instanceof Qt?this.parent.lookup(t,s):this.policies.rootTypenamesById[t]?Object.create(null):void 0},u.prototype.merge=function(t,s){var D,c=this;et(t)&&(t=t.__ref),et(s)&&(s=s.__ref);var N="string"==typeof t?this.lookup(D=t):t,z="string"==typeof s?this.lookup(D=s):s;if(z){__DEV__?ie("string"==typeof D,"store.merge expects a string ID"):ie("string"==typeof D,1);var se=new dr(_a).merge(N,z);if(this.data[D]=se,se!==N&&(delete this.refs[D],this.group.caching)){var we=Object.create(null);N||(we.__exists=1),Object.keys(z).forEach(function(ve){if(!N||N[ve]!==se[ve]){we[ve]=1;var Ae=Wt(ve);Ae!==ve&&!c.policies.hasKeyArgs(se.__typename,Ae)&&(we[Ae]=1),void 0===se[ve]&&!(c instanceof Qt)&&delete se[ve]}}),we.__typename&&!(N&&N.__typename)&&this.policies.rootTypenamesById[D]===se.__typename&&delete we.__typename,Object.keys(we).forEach(function(ve){return c.group.dirty(D,ve)})}}},u.prototype.modify=function(t,s){var c=this,D=this.lookup(t);if(D){var N=Object.create(null),z=!1,se=!0,we={DELETE:tn,INVALIDATE:yi,isReference:et,toReference:this.toReference,canRead:this.canRead,readField:function(ve,Ae){return c.policies.readField("string"==typeof ve?{fieldName:ve,from:Ae||It(t)}:ve,{store:c})}};if(Object.keys(D).forEach(function(ve){var Ae=Wt(ve),De=D[ve];if(void 0!==De){var Te="function"==typeof s?s:s[ve]||s[Ae];if(Te){var ke=Te===Fn?tn:Te(kn(De),w(w({},we),{fieldName:Ae,storeFieldName:ve,storage:c.getStorage(t,ve)}));ke===yi?c.group.dirty(t,ve):(ke===tn&&(ke=void 0),ke!==De&&(N[ve]=ke,z=!0,De=ke))}void 0!==De&&(se=!1)}}),z)return this.merge(t,N),se&&(this instanceof Qt?this.data[t]=void 0:delete this.data[t],this.group.dirty(t,"__exists")),!0}return!1},u.prototype.delete=function(t,s,c){var D,N=this.lookup(t);if(N){var z=this.getFieldValue(N,"__typename"),se=s&&c?this.policies.getStoreFieldName({typename:z,fieldName:s,args:c}):s;return this.modify(t,se?((D={})[se]=Fn,D):Fn)}return!1},u.prototype.evict=function(t,s){var c=!1;return t.id&&(ht.call(this.data,t.id)&&(c=this.delete(t.id,t.fieldName,t.args)),this instanceof Qt&&this!==s&&(c=this.parent.evict(t,s)||c),(t.fieldName||c)&&this.group.dirty(t.id,t.fieldName||"__exists")),c},u.prototype.clear=function(){this.replace(null)},u.prototype.extract=function(){var t=this,s=this.toObject(),c=[];return this.getRootIdSet().forEach(function(D){ht.call(t.policies.rootTypenamesById,D)||c.push(D)}),c.length&&(s.__META={extraRootIds:c.sort()}),s},u.prototype.replace=function(t){var s=this;if(Object.keys(this.data).forEach(function(N){t&&ht.call(t,N)||s.delete(N)}),t){var c=t.__META,D=f(t,["__META"]);Object.keys(D).forEach(function(N){s.merge(N,D[N])}),c&&c.extraRootIds.forEach(this.retain,this)}},u.prototype.retain=function(t){return this.rootIds[t]=(this.rootIds[t]||0)+1},u.prototype.release=function(t){if(this.rootIds[t]>0){var s=--this.rootIds[t];return s||delete this.rootIds[t],s}return 0},u.prototype.getRootIdSet=function(t){return void 0===t&&(t=new Set),Object.keys(this.rootIds).forEach(t.add,t),this instanceof Qt?this.parent.getRootIdSet(t):Object.keys(this.policies.rootTypenamesById).forEach(t.add,t),t},u.prototype.gc=function(){var t=this,s=this.getRootIdSet(),c=this.toObject();s.forEach(function(z){ht.call(c,z)&&(Object.keys(t.findChildRefIds(z)).forEach(s.add,s),delete c[z])});var D=Object.keys(c);if(D.length){for(var N=this;N instanceof Qt;)N=N.parent;D.forEach(function(z){return N.delete(z)})}return D},u.prototype.findChildRefIds=function(t){if(!ht.call(this.refs,t)){var s=this.refs[t]=Object.create(null),c=this.data[t];if(!c)return s;var D=new Set([c]);D.forEach(function(N){et(N)&&(s[N.__ref]=!0),ot(N)&&Object.keys(N).forEach(function(z){var se=N[z];ot(se)&&D.add(se)})})}return this.refs[t]},u.prototype.makeCacheKey=function(){return this.group.keyMaker.lookupArray(arguments)},u}(),mi=function(){function u(t,s){void 0===s&&(s=null),this.caching=t,this.parent=s,this.d=null,this.resetCaching()}return u.prototype.resetCaching=function(){this.d=this.caching?(0,yr.dP)():null,this.keyMaker=new Yr.B(Zt)},u.prototype.depend=function(t,s){if(this.d){this.d(Ln(t,s));var c=Wt(s);c!==s&&this.d(Ln(t,c)),this.parent&&this.parent.depend(t,s)}},u.prototype.dirty=function(t,s){this.d&&this.d.dirty(Ln(t,s),"__exists"===s?"forget":"setDirty")},u}();function Ln(u,t){return t+"#"+u}function gi(u,t){kr(u)&&u.group.depend(t,"__exists")}!function(u){var t=function(s){function c(D){var z=D.resultCaching,we=D.seed,ve=s.call(this,D.policies,new mi(void 0===z||z))||this;return ve.stump=new Ea(ve),ve.storageTrie=new Yr.B(Zt),we&&ve.replace(we),ve}return K(c,s),c.prototype.addLayer=function(D,N){return this.stump.addLayer(D,N)},c.prototype.removeLayer=function(){return this},c.prototype.getStorage=function(){return this.storageTrie.lookupArray(arguments)},c}(u);u.Root=t}(Mr||(Mr={}));var Qt=function(u){function t(s,c,D,N){var z=u.call(this,c.policies,N)||this;return z.id=s,z.parent=c,z.replay=D,z.group=N,D(z),z}return K(t,u),t.prototype.addLayer=function(s,c){return new t(s,this,c,this.group)},t.prototype.removeLayer=function(s){var c=this,D=this.parent.removeLayer(s);return s===this.id?(this.group.caching&&Object.keys(this.data).forEach(function(N){var z=c.data[N],se=D.lookup(N);se?z?z!==se&&Object.keys(z).forEach(function(we){(0,lt.D)(z[we],se[we])||c.group.dirty(N,we)}):(c.group.dirty(N,"__exists"),Object.keys(se).forEach(function(we){c.group.dirty(N,we)})):c.delete(N)}),D):D===this.parent?this:D.addLayer(this.id,this.replay)},t.prototype.toObject=function(){return w(w({},this.parent.toObject()),this.data)},t.prototype.findChildRefIds=function(s){var c=this.parent.findChildRefIds(s);return ht.call(this.data,s)?w(w({},c),u.prototype.findChildRefIds.call(this,s)):c},t.prototype.getStorage=function(){for(var s=this.parent;s.parent;)s=s.parent;return s.getStorage.apply(s,arguments)},t}(Mr),Ea=function(u){function t(s){return u.call(this,"EntityStore.Stump",s,function(){},new mi(s.group.caching,s.group))||this}return K(t,u),t.prototype.removeLayer=function(){return this},t.prototype.merge=function(){return this.parent.merge.apply(this.parent,arguments)},t}(Qt);function _a(u,t,s){var c=u[s],D=t[s];return(0,lt.D)(c,D)?c:D}function kr(u){return!!(u instanceof Mr&&u.group.caching)}function bi(u){return[u.selectionSet,u.objectOrReference,u.context,u.context.canonizeResults]}var wa=function(){function u(t){var s=this;this.knownResults=new(Zt?WeakMap:Map),this.config=Jr(t,{addTypename:!1!==t.addTypename,canonizeResults:Gn(t)}),this.canon=t.canon||new bn,this.executeSelectionSet=(0,yr.re)(function(c){var D,N=c.context.canonizeResults,z=bi(c);z[3]=!N;var se=(D=s.executeSelectionSet).peek.apply(D,z);return se?N?w(w({},se),{result:s.canon.admit(se.result)}):se:(gi(c.context.store,c.enclosingRef.__ref),s.execSelectionSetImpl(c))},{max:this.config.resultCacheMaxSize,keyArgs:bi,makeCacheKey:function(c,D,N,z){if(kr(N.store))return N.store.makeCacheKey(c,et(D)?D.__ref:D,N.varString,z)}}),this.executeSubSelectedArray=(0,yr.re)(function(c){return gi(c.context.store,c.enclosingRef.__ref),s.execSubSelectedArrayImpl(c)},{max:this.config.resultCacheMaxSize,makeCacheKey:function(c){var D=c.field,N=c.array,z=c.context;if(kr(z.store))return z.store.makeCacheKey(D,N,z.varString)}})}return u.prototype.resetCanon=function(){this.canon=new bn},u.prototype.diffQueryAgainstStore=function(t){var s=t.store,c=t.query,D=t.rootId,N=void 0===D?"ROOT_QUERY":D,z=t.variables,se=t.returnPartialData,we=void 0===se||se,ve=t.canonizeResults,Ae=void 0===ve?this.config.canonizeResults:ve,De=this.config.cache.policies;z=w(w({},Tr(xr(c))),z);var Be,Te=It(N),ke=this.executeSelectionSet({selectionSet:Yt(c).selectionSet,objectOrReference:Te,enclosingRef:Te,context:{store:s,query:c,policies:De,variables:z,varString:er(z),canonizeResults:Ae,fragmentMap:Ht(Lt(c))}});if(ke.missing&&(Be=[new Mn(Sa(ke.missing),ke.missing,c,z)],!we))throw Be[0];return{result:ke.result,complete:!Be,missing:Be}},u.prototype.isFresh=function(t,s,c,D){if(kr(D.store)&&this.knownResults.get(t)===c){var N=this.executeSelectionSet.peek(c,s,D,this.canon.isKnown(t));if(N&&t===N.result)return!0}return!1},u.prototype.execSelectionSetImpl=function(t){var s=this,c=t.selectionSet,D=t.objectOrReference,N=t.enclosingRef,z=t.context;if(et(D)&&!z.policies.rootTypenamesById[D.__ref]&&!z.store.has(D.__ref))return{result:this.canon.empty,missing:"Dangling reference to missing ".concat(D.__ref," object")};var Te,se=z.variables,we=z.policies,Ae=z.store.getFieldValue(D,"__typename"),De=[],ke=new dr;function Be(We,He){var Ze;return We.missing&&(Te=ke.merge(Te,((Ze={})[He]=We.missing,Ze))),We.result}this.config.addTypename&&"string"==typeof Ae&&!we.rootIdsByTypename[Ae]&&De.push({__typename:Ae});var Le=new Set(c.selections);Le.forEach(function(We){var He,Ze;if($r(We,se))if(At(We)){var Ye=we.readField({fieldName:We.name.value,field:We,variables:z.variables,from:D},z),Je=kt(We);void 0===Ye?An.added(We)||(Te=ke.merge(Te,((He={})[Je]="Can't find field '".concat(We.name.value,"' on ").concat(et(D)?D.__ref+" object":"object "+JSON.stringify(D,null,2)),He))):ct(Ye)?Ye=Be(s.executeSubSelectedArray({field:We,array:Ye,enclosingRef:N,context:z}),Je):We.selectionSet?null!=Ye&&(Ye=Be(s.executeSelectionSet({selectionSet:We.selectionSet,objectOrReference:Ye,enclosingRef:et(Ye)?Ye:N,context:z}),Je)):z.canonizeResults&&(Ye=s.canon.pass(Ye)),void 0!==Ye&&De.push(((Ze={})[Je]=Ye,Ze))}else{var it=ur(We,z.fragmentMap);it&&we.fragmentMatches(it,Ae)&&it.selectionSet.selections.forEach(Le.add,Le)}});var Qe={result:yn(De),missing:Te},$e=z.canonizeResults?this.canon.admit(Qe):kn(Qe);return $e.result&&this.knownResults.set($e.result,c),$e},u.prototype.execSubSelectedArrayImpl=function(t){var se,s=this,c=t.field,D=t.array,N=t.enclosingRef,z=t.context,we=new dr;function ve(Ae,De){var Te;return Ae.missing&&(se=we.merge(se,((Te={})[De]=Ae.missing,Te))),Ae.result}return c.selectionSet&&(D=D.filter(z.store.canRead)),D=D.map(function(Ae,De){return null===Ae?null:ct(Ae)?ve(s.executeSubSelectedArray({field:c,array:Ae,enclosingRef:N,context:z}),De):c.selectionSet?ve(s.executeSelectionSet({selectionSet:c.selectionSet,objectOrReference:Ae,enclosingRef:et(Ae)?Ae:N,context:z}),De):(__DEV__&&function Oa(u,t,s){if(!t.selectionSet){var c=new Set([s]);c.forEach(function(D){ot(D)&&(__DEV__?ie(!et(D),"Missing selection set for object of type ".concat(function Yi(u,t){return et(t)?u.get(t.__ref,"__typename"):t&&t.__typename}(u,D)," returned for query field ").concat(t.name.value)):ie(!et(D),5),Object.values(D).forEach(c.add,c))})}}(z.store,c,Ae),Ae)}),{result:z.canonizeResults?this.canon.admit(D):D,missing:se}},u}();function Sa(u){try{JSON.stringify(u,function(t,s){if("string"==typeof s)throw s;return s})}catch(t){return t}}var Ei=Object.create(null);function Nn(u){var t=JSON.stringify(u);return Ei[t]||(Ei[t]=Object.create(null))}function _i(u){var t=Nn(u);return t.keyFieldsFn||(t.keyFieldsFn=function(s,c){var D=function(z,se){return c.readField(se,z)},N=c.keyObject=Bn(u,function(z){var se=gr(c.storeObject,z,D);return void 0===se&&s!==c.storeObject&&ht.call(s,z[0])&&(se=gr(s,z,Oi)),__DEV__?ie(void 0!==se,"Missing field '".concat(z.join("."),"' while extracting keyFields from ").concat(JSON.stringify(s))):ie(void 0!==se,2),se});return"".concat(c.typename,":").concat(JSON.stringify(N))})}function wi(u){var t=Nn(u);return t.keyArgsFn||(t.keyArgsFn=function(s,c){var D=c.field,N=c.variables,z=c.fieldName,se=Bn(u,function(ve){var Ae=ve[0],De=Ae.charAt(0);if("@"!==De)if("$"!==De){if(s)return gr(s,ve)}else{var Le=Ae.slice(1);if(N&&ht.call(N,Le)){var Ve=ve.slice(0);return Ve[0]=Le,gr(N,Ve)}}else if(D&&tr(D.directives)){var Te=Ae.slice(1),ke=D.directives.find(function(Qe){return Qe.name.value===Te}),Be=ke&&Gt(ke,N);return Be&&gr(Be,ve.slice(1))}}),we=JSON.stringify(se);return(s||"{}"!==we)&&(z+=":"+we),z})}function Bn(u,t){var s=new dr;return Si(u).reduce(function(c,D){var N,z=t(D);if(void 0!==z){for(var se=D.length-1;se>=0;--se)(N={})[D[se]]=z,z=N;c=s.merge(c,z)}return c},Object.create(null))}function Si(u){var t=Nn(u);if(!t.paths){var s=t.paths=[],c=[];u.forEach(function(D,N){ct(D)?(Si(D).forEach(function(z){return s.push(c.concat(z))}),c.length=0):(c.push(D),ct(u[N+1])||(s.push(c.slice(0)),c.length=0))})}return t.paths}function Oi(u,t){return u[t]}function gr(u,t,s){return s=s||Oi,Ai(t.reduce(function c(D,N){return ct(D)?D.map(function(z){return c(z,N)}):D&&s(D,N)},u))}function Ai(u){return ot(u)?ct(u)?u.map(Ai):Bn(Object.keys(u).sort(),function(t){return gr(u,t)}):u}function jn(u){return void 0!==u.args?u.args:u.field?Gt(u.field,u.variables):null}Or.setStringify(er);var xa=function(){},xi=function(u,t){return t.fieldName},Ti=function(u,t,s){return(0,s.mergeObjects)(u,t)},Ci=function(u,t){return t},Ta=function(){function u(t){this.config=t,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=w({dataIdFromObject:mn},t),this.cache=this.config.cache,this.setRootTypename("Query"),this.setRootTypename("Mutation"),this.setRootTypename("Subscription"),t.possibleTypes&&this.addPossibleTypes(t.possibleTypes),t.typePolicies&&this.addTypePolicies(t.typePolicies)}return u.prototype.identify=function(t,s){var c,D=this,N=s&&(s.typename||(null===(c=s.storeObject)||void 0===c?void 0:c.__typename))||t.__typename;if(N===this.rootTypenamesById.ROOT_QUERY)return["ROOT_QUERY"];for(var we,z=s&&s.storeObject||t,se=w(w({},s),{typename:N,storeObject:z,readField:s&&s.readField||function(){var Te=Un(arguments,z);return D.readField(Te,{store:D.cache.data,variables:Te.variables})}}),ve=N&&this.getTypePolicy(N),Ae=ve&&ve.keyFn||this.config.dataIdFromObject;Ae;){var De=Ae(t,se);if(!ct(De)){we=De;break}Ae=_i(De)}return we=we?String(we):void 0,se.keyObject?[we,se.keyObject]:[we]},u.prototype.addTypePolicies=function(t){var s=this;Object.keys(t).forEach(function(c){var D=t[c],N=D.queryType,z=D.mutationType,se=D.subscriptionType,we=f(D,["queryType","mutationType","subscriptionType"]);N&&s.setRootTypename("Query",c),z&&s.setRootTypename("Mutation",c),se&&s.setRootTypename("Subscription",c),ht.call(s.toBeAdded,c)?s.toBeAdded[c].push(we):s.toBeAdded[c]=[we]})},u.prototype.updateTypePolicy=function(t,s){var c=this,D=this.getTypePolicy(t),N=s.keyFields,z=s.fields;function se(we,ve){we.merge="function"==typeof ve?ve:!0===ve?Ti:!1===ve?Ci:we.merge}se(D,s.merge),D.keyFn=!1===N?xa:ct(N)?_i(N):"function"==typeof N?N:D.keyFn,z&&Object.keys(z).forEach(function(we){var ve=c.getFieldPolicy(t,we,!0),Ae=z[we];if("function"==typeof Ae)ve.read=Ae;else{var De=Ae.keyArgs,Te=Ae.read,ke=Ae.merge;ve.keyFn=!1===De?xi:ct(De)?wi(De):"function"==typeof De?De:ve.keyFn,"function"==typeof Te&&(ve.read=Te),se(ve,ke)}ve.read&&ve.merge&&(ve.keyFn=ve.keyFn||xi)})},u.prototype.setRootTypename=function(t,s){void 0===s&&(s=t);var c="ROOT_"+t.toUpperCase(),D=this.rootTypenamesById[c];s!==D&&(__DEV__?ie(!D||D===t,"Cannot change root ".concat(t," __typename more than once")):ie(!D||D===t,3),D&&delete this.rootIdsByTypename[D],this.rootIdsByTypename[s]=c,this.rootTypenamesById[c]=s)},u.prototype.addPossibleTypes=function(t){var s=this;this.usingPossibleTypes=!0,Object.keys(t).forEach(function(c){s.getSupertypeSet(c,!0),t[c].forEach(function(D){s.getSupertypeSet(D,!0).add(c);var N=D.match(Yn);(!N||N[0]!==D)&&s.fuzzySubtypes.set(D,new RegExp(D))})})},u.prototype.getTypePolicy=function(t){var s=this;if(!ht.call(this.typePolicies,t)){var c=this.typePolicies[t]=Object.create(null);c.fields=Object.create(null);var D=this.supertypeMap.get(t);D&&D.size&&D.forEach(function(z){var se=s.getTypePolicy(z),we=se.fields,ve=f(se,["fields"]);Object.assign(c,ve),Object.assign(c.fields,we)})}var N=this.toBeAdded[t];return N&&N.length&&N.splice(0).forEach(function(z){s.updateTypePolicy(t,z)}),this.typePolicies[t]},u.prototype.getFieldPolicy=function(t,s,c){if(t){var D=this.getTypePolicy(t).fields;return D[s]||c&&(D[s]=Object.create(null))}},u.prototype.getSupertypeSet=function(t,s){var c=this.supertypeMap.get(t);return!c&&s&&this.supertypeMap.set(t,c=new Set),c},u.prototype.fragmentMatches=function(t,s,c,D){var N=this;if(!t.typeCondition)return!0;if(!s)return!1;var z=t.typeCondition.name.value;if(s===z)return!0;if(this.usingPossibleTypes&&this.supertypeMap.has(z))for(var se=this.getSupertypeSet(s,!0),we=[se],ve=function(Be){var Le=N.getSupertypeSet(Be,!1);Le&&Le.size&&we.indexOf(Le)<0&&we.push(Le)},Ae=!(!c||!this.fuzzySubtypes.size),De=!1,Te=0;Te<we.length;++Te){var ke=we[Te];if(ke.has(z))return se.has(z)||(De&&__DEV__&&ie.warn("Inferring subtype ".concat(s," of supertype ").concat(z)),se.add(z)),!0;ke.forEach(ve),Ae&&Te===we.length-1&&gn(t.selectionSet,c,D)&&(Ae=!1,De=!0,this.fuzzySubtypes.forEach(function(Be,Le){var Ve=s.match(Be);Ve&&Ve[0]===s&&ve(Le)}))}return!1},u.prototype.hasKeyArgs=function(t,s){var c=this.getFieldPolicy(t,s,!1);return!(!c||!c.keyFn)},u.prototype.getStoreFieldName=function(t){var N,s=t.typename,c=t.fieldName,D=this.getFieldPolicy(s,c,!1),z=D&&D.keyFn;if(z&&s)for(var se={typename:s,fieldName:c,field:t.field||null,variables:t.variables},we=jn(t);z;){var ve=z(we,se);if(!ct(ve)){N=ve||c;break}z=wi(ve)}return void 0===N&&(N=t.field?function Vr(u,t){var s=null;u.directives&&(s={},u.directives.forEach(function(D){s[D.name.value]={},D.arguments&&D.arguments.forEach(function(N){return Mt(s[D.name.value],N.name,N.value,t)})}));var c=null;return u.arguments&&u.arguments.length&&(c={},u.arguments.forEach(function(D){return Mt(c,D.name,D.value,t)})),Or(u.name.value,c,s)}(t.field,t.variables):Or(c,jn(t))),!1===N?c:c===Wt(N)?N:c+":"+N},u.prototype.readField=function(t,s){var c=t.from;if(c&&(t.field||t.fieldName)){if(void 0===t.typename){var N=s.store.getFieldValue(c,"__typename");N&&(t.typename=N)}var z=this.getStoreFieldName(t),se=Wt(z),we=s.store.getFieldValue(c,z),ve=this.getFieldPolicy(t.typename,se,!1),Ae=ve&&ve.read;if(Ae){var De=Ri(this,c,t,s,s.store.getStorage(et(c)?c.__ref:c,z));return Cn.withValue(this.cache,Ae,[we,De])}return we}},u.prototype.getReadFunction=function(t,s){var c=this.getFieldPolicy(t,s,!1);return c&&c.read},u.prototype.getMergeFunction=function(t,s,c){var D=this.getFieldPolicy(t,s,!1),N=D&&D.merge;return!N&&c&&(N=(D=this.getTypePolicy(c))&&D.merge),N},u.prototype.runMergeFunction=function(t,s,c,D,N){var z=c.field,se=c.typename,we=c.merge;return we===Ti?Ii(D.store)(t,s):we===Ci?s:(D.overwrite&&(t=void 0),we(t,s,Ri(this,void 0,{typename:se,fieldName:z.name.value,field:z,variables:D.variables},D,N||Object.create(null))))},u}();function Ri(u,t,s,c,D){var N=u.getStoreFieldName(s),z=Wt(N),se=s.variables||c.variables,we=c.store,ve=we.toReference,Ae=we.canRead;return{args:jn(s),field:s.field||null,fieldName:z,storeFieldName:N,variables:se,isReference:et,toReference:ve,storage:D,cache:u.cache,canRead:Ae,readField:function(){return u.readField(Un(arguments,t,se),c)},mergeObjects:Ii(c.store)}}function Un(u,t,s){var z,c=u[0];return"string"==typeof c?z={fieldName:c,from:u.length>1?u[1]:t}:(z=w({},c),ht.call(z,"from")||(z.from=t)),__DEV__&&void 0===z.from&&__DEV__&&ie.warn("Undefined 'from' passed to readField with arguments ".concat(function Aa(u){var t=xn("stringifyForDisplay");return JSON.stringify(u,function(s,c){return void 0===c?t:c}).split(JSON.stringify(t)).join("<undefined>")}(Array.from(u)))),void 0===z.variables&&(z.variables=s),z}function Ii(u){return function(s,c){if(ct(s)||ct(c))throw __DEV__?new J("Cannot automatically merge arrays"):new J(4);if(ot(s)&&ot(c)){var D=u.getFieldValue(s,"__typename"),N=u.getFieldValue(c,"__typename");if(D&&N&&D!==N)return c;if(et(s)&&vr(c))return u.merge(s.__ref,c),s;if(vr(s)&&et(c))return u.merge(s,c.__ref),c;if(vr(s)&&vr(c))return w(w({},s),c)}return c}}function Vn(u,t,s){var c="".concat(t).concat(s),D=u.flavors.get(c);return D||u.flavors.set(c,D=u.clientOnly===t&&u.deferred===s?u:w(w({},u),{clientOnly:t,deferred:s})),D}var Ca=function(){function u(t,s){this.cache=t,this.reader=s}return u.prototype.writeToStore=function(t,s){var c=this,D=s.query,N=s.result,z=s.dataId,se=s.variables,we=s.overwrite,ve=Ft(D),Ae=function Ji(){return new dr}();se=w(w({},Tr(ve)),se);var De={store:t,written:Object.create(null),merge:function(ke,Be){return Ae.merge(ke,Be)},variables:se,varString:er(se),fragmentMap:Ht(Lt(D)),overwrite:!!we,incomingById:new Map,clientOnly:!1,deferred:!1,flavors:new Map},Te=this.processSelectionSet({result:N||Object.create(null),dataId:z,selectionSet:ve.selectionSet,mergeTree:{map:new Map},context:De});if(!et(Te))throw __DEV__?new J("Could not identify object ".concat(JSON.stringify(N))):new J(6);return De.incomingById.forEach(function(ke,Be){var Le=ke.storeObject,Ve=ke.mergeTree,Qe=ke.fieldNodeSet,$e=It(Be);if(Ve&&Ve.map.size){var We=c.applyMerges(Ve,$e,Le,De);if(et(We))return;Le=We}if(__DEV__&&!De.overwrite){var He=Object.create(null);Qe.forEach(function(Je){Je.selectionSet&&(He[Je.name.value]=!0)}),Object.keys(Le).forEach(function(Je){(function(Je){return!0===He[Wt(Je)]})(Je)&&!function(Je){var it=Ve&&Ve.map.get(Je);return!!(it&&it.info&&it.info.merge)}(Je)&&function Ra(u,t,s,c){var D=function(De){var Te=c.getFieldValue(De,s);return"object"==typeof Te&&Te},N=D(u);if(N){var z=D(t);if(z&&!et(N)&&!(0,lt.D)(N,z)&&!Object.keys(N).every(function(De){return void 0!==c.getFieldValue(z,De)})){var se=c.getFieldValue(u,"__typename")||c.getFieldValue(t,"__typename"),we=Wt(s),ve="".concat(se,".").concat(we);if(!ki.has(ve)){ki.add(ve);var Ae=[];!ct(N)&&!ct(z)&&[N,z].forEach(function(De){var Te=c.getFieldValue(De,"__typename");"string"==typeof Te&&!Ae.includes(Te)&&Ae.push(Te)}),__DEV__&&ie.warn("Cache data may be lost when replacing the ".concat(we," field of a ").concat(se," object.\n\nTo address this problem (which is not a bug in Apollo Client), ").concat(Ae.length?"either ensure all objects of type "+Ae.join(" and ")+" have an ID or a custom merge function, or ":"","define a custom merge function for the ").concat(ve," field, so InMemoryCache can safely merge these objects:\n\n existing: ").concat(JSON.stringify(N).slice(0,1e3),"\n incoming: ").concat(JSON.stringify(z).slice(0,1e3),"\n\nFor more information about these options, please refer to the documentation:\n\n * Ensuring entity objects have IDs: https://go.apollo.dev/c/generating-unique-identifiers\n * Defining custom merge functions: https://go.apollo.dev/c/merging-non-normalized-objects\n"))}}}}($e,Le,Je,De.store)})}t.merge(Be,Le)}),t.retain(Te.__ref),Te},u.prototype.processSelectionSet=function(t){var s=this,c=t.dataId,D=t.result,N=t.selectionSet,z=t.context,se=t.mergeTree,we=this.cache.policies,ve=Object.create(null),Ae=c&&we.rootTypenamesById[c]||Ar(D,N,z.fragmentMap)||c&&z.store.get(c,"__typename");"string"==typeof Ae&&(ve.__typename=Ae);var De=function(){var We=Un(arguments,ve,z.variables);if(et(We.from)){var He=z.incomingById.get(We.from.__ref);if(He){var Ze=we.readField(w(w({},We),{from:He.storeObject}),z);if(void 0!==Ze)return Ze}}return we.readField(We,z)},Te=new Set;this.flattenFields(N,D,z,Ae).forEach(function(We,He){var Ze,Ye=kt(He),Je=D[Ye];if(Te.add(He),void 0!==Je){var it=we.getStoreFieldName({typename:Ae,fieldName:He.name.value,field:He,variables:We.variables}),Et=Di(se,it),st=s.processFieldValue(Je,He,He.selectionSet?Vn(We,!1,!1):We,Et),Nt=void 0;He.selectionSet&&(et(st)||vr(st))&&(Nt=De("__typename",st));var nn=we.getMergeFunction(Ae,He.name.value,Nt);nn?Et.info={field:He,typename:Ae,merge:nn}:Mi(se,it),ve=We.merge(ve,((Ze={})[it]=st,Ze))}else __DEV__&&!We.clientOnly&&!We.deferred&&!An.added(He)&&!we.getReadFunction(Ae,He.name.value)&&__DEV__&&ie.error("Missing field '".concat(kt(He),"' while writing result ").concat(JSON.stringify(D,null,2)).substring(0,1e3))});try{var ke=we.identify(D,{typename:Ae,selectionSet:N,fragmentMap:z.fragmentMap,storeObject:ve,readField:De}),Le=ke[1];c=c||ke[0],Le&&(ve=z.merge(ve,Le))}catch(We){if(!c)throw We}if("string"==typeof c){var Ve=It(c),Qe=z.written[c]||(z.written[c]=[]);if(Qe.indexOf(N)>=0||(Qe.push(N),this.reader&&this.reader.isFresh(D,Ve,N,z)))return Ve;var $e=z.incomingById.get(c);return $e?($e.storeObject=z.merge($e.storeObject,ve),$e.mergeTree=Wn($e.mergeTree,se),Te.forEach(function(We){return $e.fieldNodeSet.add(We)})):z.incomingById.set(c,{storeObject:ve,mergeTree:rn(se)?void 0:se,fieldNodeSet:Te}),Ve}return ve},u.prototype.processFieldValue=function(t,s,c,D){var N=this;return s.selectionSet&&null!==t?ct(t)?t.map(function(z,se){var we=N.processFieldValue(z,s,c,Di(D,se));return Mi(D,se),we}):this.processSelectionSet({result:t,selectionSet:s.selectionSet,context:c,mergeTree:D}):__DEV__?oi(t):t},u.prototype.flattenFields=function(t,s,c,D){void 0===D&&(D=Ar(s,t,c.fragmentMap));var N=new Map,z=this.cache.policies,se=new Yr.B(!1);return function we(ve,Ae){var De=se.lookup(ve,Ae.clientOnly,Ae.deferred);De.visited||(De.visited=!0,ve.selections.forEach(function(Te){if($r(Te,c.variables)){var ke=Ae.clientOnly,Be=Ae.deferred;if(!(ke&&Be)&&tr(Te.directives)&&Te.directives.forEach(function(Qe){var $e=Qe.name.value;if("client"===$e&&(ke=!0),"defer"===$e){var We=Gt(Qe,c.variables);(!We||!1!==We.if)&&(Be=!0)}}),At(Te)){var Le=N.get(Te);Le&&(ke=ke&&Le.clientOnly,Be=Be&&Le.deferred),N.set(Te,Vn(c,ke,Be))}else{var Ve=ur(Te,c.fragmentMap);Ve&&z.fragmentMatches(Ve,D,s,c.variables)&&we(Ve.selectionSet,Vn(c,ke,Be))}}}))}(t,c),N},u.prototype.applyMerges=function(t,s,c,D,N){var z,se=this;if(t.map.size&&!et(c)){var we=ct(c)||!et(s)&&!vr(s)?void 0:s,ve=c;we&&!N&&(N=[et(we)?we.__ref:we]);var Ae,De=function(Te,ke){return ct(Te)?"number"==typeof ke?Te[ke]:void 0:D.store.getFieldValue(Te,String(ke))};t.map.forEach(function(Te,ke){var Be=De(we,ke),Le=De(ve,ke);if(void 0!==Le){N&&N.push(ke);var Ve=se.applyMerges(Te,Be,Le,D,N);Ve!==Le&&(Ae=Ae||new Map).set(ke,Ve),N&&ie(N.pop()===ke)}}),Ae&&(c=ct(ve)?ve.slice(0):w({},ve),Ae.forEach(function(Te,ke){c[ke]=Te}))}return t.info?this.cache.policies.runMergeFunction(s,c,t.info,D,N&&(z=D.store).getStorage.apply(z,N)):c},u}(),Pi=[];function Di(u,t){var s=u.map;return s.has(t)||s.set(t,Pi.pop()||{map:new Map}),s.get(t)}function Wn(u,t){if(u===t||!t||rn(t))return u;if(!u||rn(u))return t;var s=u.info&&t.info?w(w({},u.info),t.info):u.info||t.info,c=u.map.size&&t.map.size,N={info:s,map:c?new Map:u.map.size?u.map:t.map};if(c){var z=new Set(t.map.keys());u.map.forEach(function(se,we){N.map.set(we,Wn(se,t.map.get(we))),z.delete(we)}),z.forEach(function(se){N.map.set(se,Wn(t.map.get(se),u.map.get(se)))})}return N}function rn(u){return!u||!(u.info||u.map.size)}function Mi(u,t){var s=u.map,c=s.get(t);c&&rn(c)&&(Pi.push(c),s.delete(t))}var ki=new Set,Ia=function(u){function t(s){void 0===s&&(s={});var c=u.call(this)||this;return c.watches=new Set,c.typenameDocumentCache=new Map,c.makeVar=li,c.txCount=0,c.config=function Gi(u){return Jr(Hn,u)}(s),c.addTypename=!!c.config.addTypename,c.policies=new Ta({cache:c,dataIdFromObject:c.config.dataIdFromObject,possibleTypes:c.config.possibleTypes,typePolicies:c.config.typePolicies}),c.init(),c}return K(t,u),t.prototype.init=function(){var s=this.data=new Mr.Root({policies:this.policies,resultCaching:this.config.resultCaching});this.optimisticData=s.stump,this.resetResultCache()},t.prototype.resetResultCache=function(s){var c=this,D=this.storeReader;this.storeWriter=new Ca(this,this.storeReader=new wa({cache:this,addTypename:this.addTypename,resultCacheMaxSize:this.config.resultCacheMaxSize,canonizeResults:Gn(this.config),canon:s?void 0:D&&D.canon})),this.maybeBroadcastWatch=(0,yr.re)(function(N,z){return c.broadcastWatch(N,z)},{max:this.config.resultCacheMaxSize,makeCacheKey:function(N){var z=N.optimistic?c.optimisticData:c.data;if(kr(z))return z.makeCacheKey(N.query,N.callback,er({optimistic:N.optimistic,rootId:N.rootId,variables:N.variables}))}}),new Set([this.data.group,this.optimisticData.group]).forEach(function(N){return N.resetCaching()})},t.prototype.restore=function(s){return this.init(),s&&this.data.replace(s),this},t.prototype.extract=function(s){return void 0===s&&(s=!1),(s?this.optimisticData:this.data).extract()},t.prototype.read=function(s){var c=s.returnPartialData,D=void 0!==c&&c;try{return this.storeReader.diffQueryAgainstStore(w(w({},s),{store:s.optimistic?this.optimisticData:this.data,config:this.config,returnPartialData:D})).result||null}catch(N){if(N instanceof Mn)return null;throw N}},t.prototype.write=function(s){try{return++this.txCount,this.storeWriter.writeToStore(this.data,s)}finally{! --this.txCount&&!1!==s.broadcast&&this.broadcastWatches()}},t.prototype.modify=function(s){if(ht.call(s,"id")&&!s.id)return!1;var c=s.optimistic?this.optimisticData:this.data;try{return++this.txCount,c.modify(s.id||"ROOT_QUERY",s.fields)}finally{! --this.txCount&&!1!==s.broadcast&&this.broadcastWatches()}},t.prototype.diff=function(s){return this.storeReader.diffQueryAgainstStore(w(w({},s),{store:s.optimistic?this.optimisticData:this.data,rootId:s.id||"ROOT_QUERY",config:this.config}))},t.prototype.watch=function(s){var c=this;return this.watches.size||function pa(u){Dr(u).vars.forEach(function(t){return t.attachCache(u)})}(this),this.watches.add(s),s.immediate&&this.maybeBroadcastWatch(s),function(){c.watches.delete(s)&&!c.watches.size&&fi(c),c.maybeBroadcastWatch.forget(s)}},t.prototype.gc=function(s){er.reset();var c=this.optimisticData.gc();return s&&!this.txCount&&(s.resetResultCache?this.resetResultCache(s.resetResultIdentities):s.resetResultIdentities&&this.storeReader.resetCanon()),c},t.prototype.retain=function(s,c){return(c?this.optimisticData:this.data).retain(s)},t.prototype.release=function(s,c){return(c?this.optimisticData:this.data).release(s)},t.prototype.identify=function(s){if(et(s))return s.__ref;try{return this.policies.identify(s)[0]}catch(c){__DEV__&&ie.warn(c)}},t.prototype.evict=function(s){if(!s.id){if(ht.call(s,"id"))return!1;s=w(w({},s),{id:"ROOT_QUERY"})}try{return++this.txCount,this.optimisticData.evict(s,this.data)}finally{! --this.txCount&&!1!==s.broadcast&&this.broadcastWatches()}},t.prototype.reset=function(s){var c=this;return this.init(),er.reset(),s&&s.discardWatches?(this.watches.forEach(function(D){return c.maybeBroadcastWatch.forget(D)}),this.watches.clear(),fi(this)):this.broadcastWatches(),Promise.resolve()},t.prototype.removeOptimistic=function(s){var c=this.optimisticData.removeLayer(s);c!==this.optimisticData&&(this.optimisticData=c,this.broadcastWatches())},t.prototype.batch=function(s){var ve,c=this,D=s.update,N=s.optimistic,z=void 0===N||N,se=s.removeOptimistic,we=s.onWatchUpdated,Ae=function(Te){var Be=c.data,Le=c.optimisticData;++c.txCount,Te&&(c.data=c.optimisticData=Te);try{return ve=D(c)}finally{--c.txCount,c.data=Be,c.optimisticData=Le}},De=new Set;return we&&!this.txCount&&this.broadcastWatches(w(w({},s),{onWatchUpdated:function(Te){return De.add(Te),!1}})),"string"==typeof z?this.optimisticData=this.optimisticData.addLayer(z,Ae):!1===z?Ae(this.data):Ae(),"string"==typeof se&&(this.optimisticData=this.optimisticData.removeLayer(se)),we&&De.size?(this.broadcastWatches(w(w({},s),{onWatchUpdated:function(Te,ke){var Be=we.call(this,Te,ke);return!1!==Be&&De.delete(Te),Be}})),De.size&&De.forEach(function(Te){return c.maybeBroadcastWatch.dirty(Te)})):this.broadcastWatches(s),ve},t.prototype.performTransaction=function(s,c){return this.batch({update:s,optimistic:c||null!==c})},t.prototype.transformDocument=function(s){if(this.addTypename){var c=this.typenameDocumentCache.get(s);return c||(c=An(s),this.typenameDocumentCache.set(s,c),this.typenameDocumentCache.set(c,c)),c}return s},t.prototype.broadcastWatches=function(s){var c=this;this.txCount||this.watches.forEach(function(D){return c.maybeBroadcastWatch(D,s)})},t.prototype.broadcastWatch=function(s,c){var D=s.lastDiff,N=this.diff(s);c&&(s.optimistic&&"string"==typeof c.optimistic&&(N.fromOptimisticTransaction=!0),c.onWatchUpdated&&!1===c.onWatchUpdated.call(this,s,N,D))||(!D||!(0,lt.D)(D.result,N.result))&&s.callback(s.lastDiff=N,D)},t}(vi),Pa=gt.empty,Da=gt.from,Ma=gt.split,ka=gt.concat;function Fa(u){var t=!1;return new Promise(function(s,c){u.subscribe({next:function(D){t?__DEV__&&ie.warn("Promise Wrapper does not support multiple results from Observable"):(t=!0,s(D))},error:c})})}function La(u){return new rt(function(t){u.then(function(s){t.next(s),t.complete()}).catch(t.error.bind(t))})}var Fr=y(68290);ue(B?"log":"silent")},7535:le=>{"use strict";le.exports=JSON.parse('{"name":"aws-appsync-auth-link","version":"3.0.7","main":"lib/index.js","license":"Apache-2.0","description":"AWS Mobile AppSync Auth Link for JavaScript","author":{"name":"Amazon Web Services","url":"https://aws.amazon.com/"},"homepage":"https://github.com/awslabs/aws-mobile-appsync-sdk-js.git","repository":{"type":"git","url":"https://github.com/awslabs/aws-mobile-appsync-sdk-js.git"},"scripts":{"prepare":"tsc","test":"jest --coverage --coverageReporters=text --passWithNoTests","test-watch":"jest --watch"},"dependencies":{"@aws-crypto/sha256-js":"^1.2.0","@aws-sdk/types":"^3.25.0","@aws-sdk/util-hex-encoding":"^3.29.0","debug":"2.6.9"},"devDependencies":{"@apollo/client":"^3.2.0"},"peerDependencies":{"@apollo/client":"3.x"}}')},79476:le=>{"use strict";le.exports=JSON.parse('{"version":"2.0","metadata":{"apiVersion":"2014-06-30","endpointPrefix":"cognito-identity","jsonVersion":"1.1","protocol":"json","serviceFullName":"Amazon Cognito Identity","serviceId":"Cognito Identity","signatureVersion":"v4","targetPrefix":"AWSCognitoIdentityService","uid":"cognito-identity-2014-06-30"},"operations":{"CreateIdentityPool":{"input":{"type":"structure","required":["IdentityPoolName","AllowUnauthenticatedIdentities"],"members":{"IdentityPoolName":{},"AllowUnauthenticatedIdentities":{"type":"boolean"},"AllowClassicFlow":{"type":"boolean"},"SupportedLoginProviders":{"shape":"S5"},"DeveloperProviderName":{},"OpenIdConnectProviderARNs":{"shape":"S9"},"CognitoIdentityProviders":{"shape":"Sb"},"SamlProviderARNs":{"shape":"Sg"},"IdentityPoolTags":{"shape":"Sh"}}},"output":{"shape":"Sk"}},"DeleteIdentities":{"input":{"type":"structure","required":["IdentityIdsToDelete"],"members":{"IdentityIdsToDelete":{"type":"list","member":{}}}},"output":{"type":"structure","members":{"UnprocessedIdentityIds":{"type":"list","member":{"type":"structure","members":{"IdentityId":{},"ErrorCode":{}}}}}}},"DeleteIdentityPool":{"input":{"type":"structure","required":["IdentityPoolId"],"members":{"IdentityPoolId":{}}}},"DescribeIdentity":{"input":{"type":"structure","required":["IdentityId"],"members":{"IdentityId":{}}},"output":{"shape":"Sv"}},"DescribeIdentityPool":{"input":{"type":"structure","required":["IdentityPoolId"],"members":{"IdentityPoolId":{}}},"output":{"shape":"Sk"}},"GetCredentialsForIdentity":{"input":{"type":"structure","required":["IdentityId"],"members":{"IdentityId":{},"Logins":{"shape":"S10"},"CustomRoleArn":{}}},"output":{"type":"structure","members":{"IdentityId":{},"Credentials":{"type":"structure","members":{"AccessKeyId":{},"SecretKey":{},"SessionToken":{},"Expiration":{"type":"timestamp"}}}}},"authtype":"none"},"GetId":{"input":{"type":"structure","required":["IdentityPoolId"],"members":{"AccountId":{},"IdentityPoolId":{},"Logins":{"shape":"S10"}}},"output":{"type":"structure","members":{"IdentityId":{}}},"authtype":"none"},"GetIdentityPoolRoles":{"input":{"type":"structure","required":["IdentityPoolId"],"members":{"IdentityPoolId":{}}},"output":{"type":"structure","members":{"IdentityPoolId":{},"Roles":{"shape":"S1c"},"RoleMappings":{"shape":"S1e"}}}},"GetOpenIdToken":{"input":{"type":"structure","required":["IdentityId"],"members":{"IdentityId":{},"Logins":{"shape":"S10"}}},"output":{"type":"structure","members":{"IdentityId":{},"Token":{}}},"authtype":"none"},"GetOpenIdTokenForDeveloperIdentity":{"input":{"type":"structure","required":["IdentityPoolId","Logins"],"members":{"IdentityPoolId":{},"IdentityId":{},"Logins":{"shape":"S10"},"PrincipalTags":{"shape":"S1s"},"TokenDuration":{"type":"long"}}},"output":{"type":"structure","members":{"IdentityId":{},"Token":{}}}},"GetPrincipalTagAttributeMap":{"input":{"type":"structure","required":["IdentityPoolId","IdentityProviderName"],"members":{"IdentityPoolId":{},"IdentityProviderName":{}}},"output":{"type":"structure","members":{"IdentityPoolId":{},"IdentityProviderName":{},"UseDefaults":{"type":"boolean"},"PrincipalTags":{"shape":"S1s"}}}},"ListIdentities":{"input":{"type":"structure","required":["IdentityPoolId","MaxResults"],"members":{"IdentityPoolId":{},"MaxResults":{"type":"integer"},"NextToken":{},"HideDisabled":{"type":"boolean"}}},"output":{"type":"structure","members":{"IdentityPoolId":{},"Identities":{"type":"list","member":{"shape":"Sv"}},"NextToken":{}}}},"ListIdentityPools":{"input":{"type":"structure","required":["MaxResults"],"members":{"MaxResults":{"type":"integer"},"NextToken":{}}},"output":{"type":"structure","members":{"IdentityPools":{"type":"list","member":{"type":"structure","members":{"IdentityPoolId":{},"IdentityPoolName":{}}}},"NextToken":{}}}},"ListTagsForResource":{"input":{"type":"structure","required":["ResourceArn"],"members":{"ResourceArn":{}}},"output":{"type":"structure","members":{"Tags":{"shape":"Sh"}}}},"LookupDeveloperIdentity":{"input":{"type":"structure","required":["IdentityPoolId"],"members":{"IdentityPoolId":{},"IdentityId":{},"DeveloperUserIdentifier":{},"MaxResults":{"type":"integer"},"NextToken":{}}},"output":{"type":"structure","members":{"IdentityId":{},"DeveloperUserIdentifierList":{"type":"list","member":{}},"NextToken":{}}}},"MergeDeveloperIdentities":{"input":{"type":"structure","required":["SourceUserIdentifier","DestinationUserIdentifier","DeveloperProviderName","IdentityPoolId"],"members":{"SourceUserIdentifier":{},"DestinationUserIdentifier":{},"DeveloperProviderName":{},"IdentityPoolId":{}}},"output":{"type":"structure","members":{"IdentityId":{}}}},"SetIdentityPoolRoles":{"input":{"type":"structure","required":["IdentityPoolId","Roles"],"members":{"IdentityPoolId":{},"Roles":{"shape":"S1c"},"RoleMappings":{"shape":"S1e"}}}},"SetPrincipalTagAttributeMap":{"input":{"type":"structure","required":["IdentityPoolId","IdentityProviderName"],"members":{"IdentityPoolId":{},"IdentityProviderName":{},"UseDefaults":{"type":"boolean"},"PrincipalTags":{"shape":"S1s"}}},"output":{"type":"structure","members":{"IdentityPoolId":{},"IdentityProviderName":{},"UseDefaults":{"type":"boolean"},"PrincipalTags":{"shape":"S1s"}}}},"TagResource":{"input":{"type":"structure","required":["ResourceArn","Tags"],"members":{"ResourceArn":{},"Tags":{"shape":"Sh"}}},"output":{"type":"structure","members":{}}},"UnlinkDeveloperIdentity":{"input":{"type":"structure","required":["IdentityId","IdentityPoolId","DeveloperProviderName","DeveloperUserIdentifier"],"members":{"IdentityId":{},"IdentityPoolId":{},"DeveloperProviderName":{},"DeveloperUserIdentifier":{}}}},"UnlinkIdentity":{"input":{"type":"structure","required":["IdentityId","Logins","LoginsToRemove"],"members":{"IdentityId":{},"Logins":{"shape":"S10"},"LoginsToRemove":{"shape":"Sw"}}},"authtype":"none"},"UntagResource":{"input":{"type":"structure","required":["ResourceArn","TagKeys"],"members":{"ResourceArn":{},"TagKeys":{"type":"list","member":{}}}},"output":{"type":"structure","members":{}}},"UpdateIdentityPool":{"input":{"shape":"Sk"},"output":{"shape":"Sk"}}},"shapes":{"S5":{"type":"map","key":{},"value":{}},"S9":{"type":"list","member":{}},"Sb":{"type":"list","member":{"type":"structure","members":{"ProviderName":{},"ClientId":{},"ServerSideTokenCheck":{"type":"boolean"}}}},"Sg":{"type":"list","member":{}},"Sh":{"type":"map","key":{},"value":{}},"Sk":{"type":"structure","required":["IdentityPoolId","IdentityPoolName","AllowUnauthenticatedIdentities"],"members":{"IdentityPoolId":{},"IdentityPoolName":{},"AllowUnauthenticatedIdentities":{"type":"boolean"},"AllowClassicFlow":{"type":"boolean"},"SupportedLoginProviders":{"shape":"S5"},"DeveloperProviderName":{},"OpenIdConnectProviderARNs":{"shape":"S9"},"CognitoIdentityProviders":{"shape":"Sb"},"SamlProviderARNs":{"shape":"Sg"},"IdentityPoolTags":{"shape":"Sh"}}},"Sv":{"type":"structure","members":{"IdentityId":{},"Logins":{"shape":"Sw"},"CreationDate":{"type":"timestamp"},"LastModifiedDate":{"type":"timestamp"}}},"Sw":{"type":"list","member":{}},"S10":{"type":"map","key":{},"value":{}},"S1c":{"type":"map","key":{},"value":{}},"S1e":{"type":"map","key":{},"value":{"type":"structure","required":["Type"],"members":{"Type":{},"AmbiguousRoleResolution":{},"RulesConfiguration":{"type":"structure","required":["Rules"],"members":{"Rules":{"type":"list","member":{"type":"structure","required":["Claim","MatchType","Value","RoleARN"],"members":{"Claim":{},"MatchType":{},"Value":{},"RoleARN":{}}}}}}}}},"S1s":{"type":"map","key":{},"value":{}}}}')},85464:le=>{"use strict";le.exports=JSON.parse('{"o":{"ListIdentityPools":{"input_token":"NextToken","limit_key":"MaxResults","output_token":"NextToken","result_key":"IdentityPools"}}}')},6839:le=>{"use strict";le.exports=JSON.parse('{"acm":{"name":"ACM","cors":true},"apigateway":{"name":"APIGateway","cors":true},"applicationautoscaling":{"prefix":"application-autoscaling","name":"ApplicationAutoScaling","cors":true},"appstream":{"name":"AppStream"},"autoscaling":{"name":"AutoScaling","cors":true},"batch":{"name":"Batch"},"budgets":{"name":"Budgets"},"clouddirectory":{"name":"CloudDirectory","versions":["2016-05-10*"]},"cloudformation":{"name":"CloudFormation","cors":true},"cloudfront":{"name":"CloudFront","versions":["2013-05-12*","2013-11-11*","2014-05-31*","2014-10-21*","2014-11-06*","2015-04-17*","2015-07-27*","2015-09-17*","2016-01-13*","2016-01-28*","2016-08-01*","2016-08-20*","2016-09-07*","2016-09-29*","2016-11-25*","2017-03-25*","2017-10-30*","2018-06-18*","2018-11-05*","2019-03-26*"],"cors":true},"cloudhsm":{"name":"CloudHSM","cors":true},"cloudsearch":{"name":"CloudSearch"},"cloudsearchdomain":{"name":"CloudSearchDomain"},"cloudtrail":{"name":"CloudTrail","cors":true},"cloudwatch":{"prefix":"monitoring","name":"CloudWatch","cors":true},"cloudwatchevents":{"prefix":"events","name":"CloudWatchEvents","versions":["2014-02-03*"],"cors":true},"cloudwatchlogs":{"prefix":"logs","name":"CloudWatchLogs","cors":true},"codebuild":{"name":"CodeBuild","cors":true},"codecommit":{"name":"CodeCommit","cors":true},"codedeploy":{"name":"CodeDeploy","cors":true},"codepipeline":{"name":"CodePipeline","cors":true},"cognitoidentity":{"prefix":"cognito-identity","name":"CognitoIdentity","cors":true},"cognitoidentityserviceprovider":{"prefix":"cognito-idp","name":"CognitoIdentityServiceProvider","cors":true},"cognitosync":{"prefix":"cognito-sync","name":"CognitoSync","cors":true},"configservice":{"prefix":"config","name":"ConfigService","cors":true},"cur":{"name":"CUR","cors":true},"datapipeline":{"name":"DataPipeline"},"devicefarm":{"name":"DeviceFarm","cors":true},"directconnect":{"name":"DirectConnect","cors":true},"directoryservice":{"prefix":"ds","name":"DirectoryService"},"discovery":{"name":"Discovery"},"dms":{"name":"DMS"},"dynamodb":{"name":"DynamoDB","cors":true},"dynamodbstreams":{"prefix":"streams.dynamodb","name":"DynamoDBStreams","cors":true},"ec2":{"name":"EC2","versions":["2013-06-15*","2013-10-15*","2014-02-01*","2014-05-01*","2014-06-15*","2014-09-01*","2014-10-01*","2015-03-01*","2015-04-15*","2015-10-01*","2016-04-01*","2016-09-15*"],"cors":true},"ecr":{"name":"ECR","cors":true},"ecs":{"name":"ECS","cors":true},"efs":{"prefix":"elasticfilesystem","name":"EFS","cors":true},"elasticache":{"name":"ElastiCache","versions":["2012-11-15*","2014-03-24*","2014-07-15*","2014-09-30*"],"cors":true},"elasticbeanstalk":{"name":"ElasticBeanstalk","cors":true},"elb":{"prefix":"elasticloadbalancing","name":"ELB","cors":true},"elbv2":{"prefix":"elasticloadbalancingv2","name":"ELBv2","cors":true},"emr":{"prefix":"elasticmapreduce","name":"EMR","cors":true},"es":{"name":"ES"},"elastictranscoder":{"name":"ElasticTranscoder","cors":true},"firehose":{"name":"Firehose","cors":true},"gamelift":{"name":"GameLift","cors":true},"glacier":{"name":"Glacier"},"health":{"name":"Health"},"iam":{"name":"IAM","cors":true},"importexport":{"name":"ImportExport"},"inspector":{"name":"Inspector","versions":["2015-08-18*"],"cors":true},"iot":{"name":"Iot","cors":true},"iotdata":{"prefix":"iot-data","name":"IotData","cors":true},"kinesis":{"name":"Kinesis","cors":true},"kinesisanalytics":{"name":"KinesisAnalytics"},"kms":{"name":"KMS","cors":true},"lambda":{"name":"Lambda","cors":true},"lexruntime":{"prefix":"runtime.lex","name":"LexRuntime","cors":true},"lightsail":{"name":"Lightsail"},"machinelearning":{"name":"MachineLearning","cors":true},"marketplacecommerceanalytics":{"name":"MarketplaceCommerceAnalytics","cors":true},"marketplacemetering":{"prefix":"meteringmarketplace","name":"MarketplaceMetering"},"mturk":{"prefix":"mturk-requester","name":"MTurk","cors":true},"mobileanalytics":{"name":"MobileAnalytics","cors":true},"opsworks":{"name":"OpsWorks","cors":true},"opsworkscm":{"name":"OpsWorksCM"},"organizations":{"name":"Organizations"},"pinpoint":{"name":"Pinpoint"},"polly":{"name":"Polly","cors":true},"rds":{"name":"RDS","versions":["2014-09-01*"],"cors":true},"redshift":{"name":"Redshift","cors":true},"rekognition":{"name":"Rekognition","cors":true},"resourcegroupstaggingapi":{"name":"ResourceGroupsTaggingAPI"},"route53":{"name":"Route53","cors":true},"route53domains":{"name":"Route53Domains","cors":true},"s3":{"name":"S3","dualstackAvailable":true,"cors":true},"s3control":{"name":"S3Control","dualstackAvailable":true,"xmlNoDefaultLists":true},"servicecatalog":{"name":"ServiceCatalog","cors":true},"ses":{"prefix":"email","name":"SES","cors":true},"shield":{"name":"Shield"},"simpledb":{"prefix":"sdb","name":"SimpleDB"},"sms":{"name":"SMS"},"snowball":{"name":"Snowball"},"sns":{"name":"SNS","cors":true},"sqs":{"name":"SQS","cors":true},"ssm":{"name":"SSM","cors":true},"storagegateway":{"name":"StorageGateway","cors":true},"stepfunctions":{"prefix":"states","name":"StepFunctions"},"sts":{"name":"STS","cors":true},"support":{"name":"Support"},"swf":{"name":"SWF"},"xray":{"name":"XRay","cors":true},"waf":{"name":"WAF","cors":true},"wafregional":{"prefix":"waf-regional","name":"WAFRegional"},"workdocs":{"name":"WorkDocs","cors":true},"workspaces":{"name":"WorkSpaces"},"codestar":{"name":"CodeStar"},"lexmodelbuildingservice":{"prefix":"lex-models","name":"LexModelBuildingService","cors":true},"marketplaceentitlementservice":{"prefix":"entitlement.marketplace","name":"MarketplaceEntitlementService"},"athena":{"name":"Athena","cors":true},"greengrass":{"name":"Greengrass"},"dax":{"name":"DAX"},"migrationhub":{"prefix":"AWSMigrationHub","name":"MigrationHub"},"cloudhsmv2":{"name":"CloudHSMV2","cors":true},"glue":{"name":"Glue"},"mobile":{"name":"Mobile"},"pricing":{"name":"Pricing","cors":true},"costexplorer":{"prefix":"ce","name":"CostExplorer","cors":true},"mediaconvert":{"name":"MediaConvert"},"medialive":{"name":"MediaLive"},"mediapackage":{"name":"MediaPackage"},"mediastore":{"name":"MediaStore"},"mediastoredata":{"prefix":"mediastore-data","name":"MediaStoreData","cors":true},"appsync":{"name":"AppSync"},"guardduty":{"name":"GuardDuty"},"mq":{"name":"MQ"},"comprehend":{"name":"Comprehend","cors":true},"iotjobsdataplane":{"prefix":"iot-jobs-data","name":"IoTJobsDataPlane"},"kinesisvideoarchivedmedia":{"prefix":"kinesis-video-archived-media","name":"KinesisVideoArchivedMedia","cors":true},"kinesisvideomedia":{"prefix":"kinesis-video-media","name":"KinesisVideoMedia","cors":true},"kinesisvideo":{"name":"KinesisVideo","cors":true},"sagemakerruntime":{"prefix":"runtime.sagemaker","name":"SageMakerRuntime"},"sagemaker":{"name":"SageMaker"},"translate":{"name":"Translate","cors":true},"resourcegroups":{"prefix":"resource-groups","name":"ResourceGroups","cors":true},"alexaforbusiness":{"name":"AlexaForBusiness"},"cloud9":{"name":"Cloud9"},"serverlessapplicationrepository":{"prefix":"serverlessrepo","name":"ServerlessApplicationRepository"},"servicediscovery":{"name":"ServiceDiscovery"},"workmail":{"name":"WorkMail"},"autoscalingplans":{"prefix":"autoscaling-plans","name":"AutoScalingPlans"},"transcribeservice":{"prefix":"transcribe","name":"TranscribeService"},"connect":{"name":"Connect","cors":true},"acmpca":{"prefix":"acm-pca","name":"ACMPCA"},"fms":{"name":"FMS"},"secretsmanager":{"name":"SecretsManager","cors":true},"iotanalytics":{"name":"IoTAnalytics","cors":true},"iot1clickdevicesservice":{"prefix":"iot1click-devices","name":"IoT1ClickDevicesService"},"iot1clickprojects":{"prefix":"iot1click-projects","name":"IoT1ClickProjects"},"pi":{"name":"PI"},"neptune":{"name":"Neptune"},"mediatailor":{"name":"MediaTailor"},"eks":{"name":"EKS"},"macie":{"name":"Macie"},"dlm":{"name":"DLM"},"signer":{"name":"Signer"},"chime":{"name":"Chime"},"pinpointemail":{"prefix":"pinpoint-email","name":"PinpointEmail"},"ram":{"name":"RAM"},"route53resolver":{"name":"Route53Resolver"},"pinpointsmsvoice":{"prefix":"sms-voice","name":"PinpointSMSVoice"},"quicksight":{"name":"QuickSight"},"rdsdataservice":{"prefix":"rds-data","name":"RDSDataService"},"amplify":{"name":"Amplify"},"datasync":{"name":"DataSync"},"robomaker":{"name":"RoboMaker"},"transfer":{"name":"Transfer"},"globalaccelerator":{"name":"GlobalAccelerator"},"comprehendmedical":{"name":"ComprehendMedical","cors":true},"kinesisanalyticsv2":{"name":"KinesisAnalyticsV2"},"mediaconnect":{"name":"MediaConnect"},"fsx":{"name":"FSx"},"securityhub":{"name":"SecurityHub"},"appmesh":{"name":"AppMesh","versions":["2018-10-01*"]},"licensemanager":{"prefix":"license-manager","name":"LicenseManager"},"kafka":{"name":"Kafka"},"apigatewaymanagementapi":{"name":"ApiGatewayManagementApi"},"apigatewayv2":{"name":"ApiGatewayV2"},"docdb":{"name":"DocDB"},"backup":{"name":"Backup"},"worklink":{"name":"WorkLink"},"textract":{"name":"Textract"},"managedblockchain":{"name":"ManagedBlockchain"},"mediapackagevod":{"prefix":"mediapackage-vod","name":"MediaPackageVod"},"groundstation":{"name":"GroundStation"},"iotthingsgraph":{"name":"IoTThingsGraph"},"iotevents":{"name":"IoTEvents"},"ioteventsdata":{"prefix":"iotevents-data","name":"IoTEventsData"},"personalize":{"name":"Personalize","cors":true},"personalizeevents":{"prefix":"personalize-events","name":"PersonalizeEvents","cors":true},"personalizeruntime":{"prefix":"personalize-runtime","name":"PersonalizeRuntime","cors":true},"applicationinsights":{"prefix":"application-insights","name":"ApplicationInsights"},"servicequotas":{"prefix":"service-quotas","name":"ServiceQuotas"},"ec2instanceconnect":{"prefix":"ec2-instance-connect","name":"EC2InstanceConnect"},"eventbridge":{"name":"EventBridge"},"lakeformation":{"name":"LakeFormation"},"forecastservice":{"prefix":"forecast","name":"ForecastService","cors":true},"forecastqueryservice":{"prefix":"forecastquery","name":"ForecastQueryService","cors":true},"qldb":{"name":"QLDB"},"qldbsession":{"prefix":"qldb-session","name":"QLDBSession"},"workmailmessageflow":{"name":"WorkMailMessageFlow"},"codestarnotifications":{"prefix":"codestar-notifications","name":"CodeStarNotifications"},"savingsplans":{"name":"SavingsPlans"},"sso":{"name":"SSO"},"ssooidc":{"prefix":"sso-oidc","name":"SSOOIDC"},"marketplacecatalog":{"prefix":"marketplace-catalog","name":"MarketplaceCatalog"},"dataexchange":{"name":"DataExchange"},"sesv2":{"name":"SESV2"},"migrationhubconfig":{"prefix":"migrationhub-config","name":"MigrationHubConfig"},"connectparticipant":{"name":"ConnectParticipant"},"appconfig":{"name":"AppConfig"},"iotsecuretunneling":{"name":"IoTSecureTunneling"},"wafv2":{"name":"WAFV2"},"elasticinference":{"prefix":"elastic-inference","name":"ElasticInference"},"imagebuilder":{"name":"Imagebuilder"},"schemas":{"name":"Schemas"},"accessanalyzer":{"name":"AccessAnalyzer"},"codegurureviewer":{"prefix":"codeguru-reviewer","name":"CodeGuruReviewer"},"codeguruprofiler":{"name":"CodeGuruProfiler"},"computeoptimizer":{"prefix":"compute-optimizer","name":"ComputeOptimizer"},"frauddetector":{"name":"FraudDetector"},"kendra":{"name":"Kendra"},"networkmanager":{"name":"NetworkManager"},"outposts":{"name":"Outposts"},"augmentedairuntime":{"prefix":"sagemaker-a2i-runtime","name":"AugmentedAIRuntime"},"ebs":{"name":"EBS"},"kinesisvideosignalingchannels":{"prefix":"kinesis-video-signaling","name":"KinesisVideoSignalingChannels","cors":true},"detective":{"name":"Detective"},"codestarconnections":{"prefix":"codestar-connections","name":"CodeStarconnections"},"synthetics":{"name":"Synthetics"},"iotsitewise":{"name":"IoTSiteWise"},"macie2":{"name":"Macie2"},"codeartifact":{"name":"CodeArtifact"},"honeycode":{"name":"Honeycode"},"ivs":{"name":"IVS"},"braket":{"name":"Braket"},"identitystore":{"name":"IdentityStore"},"appflow":{"name":"Appflow"},"redshiftdata":{"prefix":"redshift-data","name":"RedshiftData"},"ssoadmin":{"prefix":"sso-admin","name":"SSOAdmin"},"timestreamquery":{"prefix":"timestream-query","name":"TimestreamQuery"},"timestreamwrite":{"prefix":"timestream-write","name":"TimestreamWrite"},"s3outposts":{"name":"S3Outposts"},"databrew":{"name":"DataBrew"},"servicecatalogappregistry":{"prefix":"servicecatalog-appregistry","name":"ServiceCatalogAppRegistry"},"networkfirewall":{"prefix":"network-firewall","name":"NetworkFirewall"},"mwaa":{"name":"MWAA"},"amplifybackend":{"name":"AmplifyBackend"},"appintegrations":{"name":"AppIntegrations"},"connectcontactlens":{"prefix":"connect-contact-lens","name":"ConnectContactLens"},"devopsguru":{"prefix":"devops-guru","name":"DevOpsGuru"},"ecrpublic":{"prefix":"ecr-public","name":"ECRPUBLIC"},"lookoutvision":{"name":"LookoutVision"},"sagemakerfeaturestoreruntime":{"prefix":"sagemaker-featurestore-runtime","name":"SageMakerFeatureStoreRuntime"},"customerprofiles":{"prefix":"customer-profiles","name":"CustomerProfiles"},"auditmanager":{"name":"AuditManager"},"emrcontainers":{"prefix":"emr-containers","name":"EMRcontainers"},"healthlake":{"name":"HealthLake"},"sagemakeredge":{"prefix":"sagemaker-edge","name":"SagemakerEdge"},"amp":{"name":"Amp"},"greengrassv2":{"name":"GreengrassV2"},"iotdeviceadvisor":{"name":"IotDeviceAdvisor"},"iotfleethub":{"name":"IoTFleetHub"},"iotwireless":{"name":"IoTWireless"},"location":{"name":"Location","cors":true},"wellarchitected":{"name":"WellArchitected"},"lexmodelsv2":{"prefix":"models.lex.v2","name":"LexModelsV2"},"lexruntimev2":{"prefix":"runtime.lex.v2","name":"LexRuntimeV2","cors":true},"fis":{"name":"Fis"},"lookoutmetrics":{"name":"LookoutMetrics"},"mgn":{"name":"Mgn"},"lookoutequipment":{"name":"LookoutEquipment"},"nimble":{"name":"Nimble"},"finspace":{"name":"Finspace"},"finspacedata":{"prefix":"finspace-data","name":"Finspacedata"},"ssmcontacts":{"prefix":"ssm-contacts","name":"SSMContacts"},"ssmincidents":{"prefix":"ssm-incidents","name":"SSMIncidents"},"applicationcostprofiler":{"name":"ApplicationCostProfiler"},"apprunner":{"name":"AppRunner"},"proton":{"name":"Proton"},"route53recoverycluster":{"prefix":"route53-recovery-cluster","name":"Route53RecoveryCluster"},"route53recoverycontrolconfig":{"prefix":"route53-recovery-control-config","name":"Route53RecoveryControlConfig"},"route53recoveryreadiness":{"prefix":"route53-recovery-readiness","name":"Route53RecoveryReadiness"},"chimesdkidentity":{"prefix":"chime-sdk-identity","name":"ChimeSDKIdentity"},"chimesdkmessaging":{"prefix":"chime-sdk-messaging","name":"ChimeSDKMessaging"},"snowdevicemanagement":{"prefix":"snow-device-management","name":"SnowDeviceManagement"},"memorydb":{"name":"MemoryDB"},"opensearch":{"name":"OpenSearch"},"kafkaconnect":{"name":"KafkaConnect"},"voiceid":{"prefix":"voice-id","name":"VoiceID"},"wisdom":{"name":"Wisdom"},"account":{"name":"Account"},"cloudcontrol":{"name":"CloudControl"},"grafana":{"name":"Grafana"},"panorama":{"name":"Panorama"},"chimesdkmeetings":{"prefix":"chime-sdk-meetings","name":"ChimeSDKMeetings"},"resiliencehub":{"name":"Resiliencehub"},"migrationhubstrategy":{"name":"MigrationHubStrategy"},"appconfigdata":{"name":"AppConfigData"},"drs":{"name":"Drs"},"migrationhubrefactorspaces":{"prefix":"migration-hub-refactor-spaces","name":"MigrationHubRefactorSpaces"},"evidently":{"name":"Evidently"},"inspector2":{"name":"Inspector2"},"rbin":{"name":"Rbin"},"rum":{"name":"RUM"},"backupgateway":{"prefix":"backup-gateway","name":"BackupGateway"},"iottwinmaker":{"name":"IoTTwinMaker"},"workspacesweb":{"prefix":"workspaces-web","name":"WorkSpacesWeb"},"amplifyuibuilder":{"name":"AmplifyUIBuilder"},"keyspaces":{"name":"Keyspaces"},"billingconductor":{"name":"Billingconductor"},"gamesparks":{"name":"GameSparks"},"pinpointsmsvoicev2":{"prefix":"pinpoint-sms-voice-v2","name":"PinpointSMSVoiceV2"},"ivschat":{"name":"Ivschat"},"chimesdkmediapipelines":{"prefix":"chime-sdk-media-pipelines","name":"ChimeSDKMediaPipelines"},"emrserverless":{"prefix":"emr-serverless","name":"EMRServerless"},"m2":{"name":"M2"},"connectcampaigns":{"name":"ConnectCampaigns"},"redshiftserverless":{"prefix":"redshift-serverless","name":"RedshiftServerless"},"rolesanywhere":{"name":"RolesAnywhere"},"licensemanagerusersubscriptions":{"prefix":"license-manager-user-subscriptions","name":"LicenseManagerUserSubscriptions"}}')},3554:le=>{"use strict";le.exports=JSON.parse('{"version":"2.0","metadata":{"apiVersion":"2011-06-15","endpointPrefix":"sts","globalEndpoint":"sts.amazonaws.com","protocol":"query","serviceAbbreviation":"AWS STS","serviceFullName":"AWS Security Token Service","serviceId":"STS","signatureVersion":"v4","uid":"sts-2011-06-15","xmlNamespace":"https://sts.amazonaws.com/doc/2011-06-15/"},"operations":{"AssumeRole":{"input":{"type":"structure","required":["RoleArn","RoleSessionName"],"members":{"RoleArn":{},"RoleSessionName":{},"PolicyArns":{"shape":"S4"},"Policy":{},"DurationSeconds":{"type":"integer"},"Tags":{"shape":"S8"},"TransitiveTagKeys":{"type":"list","member":{}},"ExternalId":{},"SerialNumber":{},"TokenCode":{},"SourceIdentity":{}}},"output":{"resultWrapper":"AssumeRoleResult","type":"structure","members":{"Credentials":{"shape":"Si"},"AssumedRoleUser":{"shape":"Sn"},"PackedPolicySize":{"type":"integer"},"SourceIdentity":{}}}},"AssumeRoleWithSAML":{"input":{"type":"structure","required":["RoleArn","PrincipalArn","SAMLAssertion"],"members":{"RoleArn":{},"PrincipalArn":{},"SAMLAssertion":{},"PolicyArns":{"shape":"S4"},"Policy":{},"DurationSeconds":{"type":"integer"}}},"output":{"resultWrapper":"AssumeRoleWithSAMLResult","type":"structure","members":{"Credentials":{"shape":"Si"},"AssumedRoleUser":{"shape":"Sn"},"PackedPolicySize":{"type":"integer"},"Subject":{},"SubjectType":{},"Issuer":{},"Audience":{},"NameQualifier":{},"SourceIdentity":{}}}},"AssumeRoleWithWebIdentity":{"input":{"type":"structure","required":["RoleArn","RoleSessionName","WebIdentityToken"],"members":{"RoleArn":{},"RoleSessionName":{},"WebIdentityToken":{},"ProviderId":{},"PolicyArns":{"shape":"S4"},"Policy":{},"DurationSeconds":{"type":"integer"}}},"output":{"resultWrapper":"AssumeRoleWithWebIdentityResult","type":"structure","members":{"Credentials":{"shape":"Si"},"SubjectFromWebIdentityToken":{},"AssumedRoleUser":{"shape":"Sn"},"PackedPolicySize":{"type":"integer"},"Provider":{},"Audience":{},"SourceIdentity":{}}}},"DecodeAuthorizationMessage":{"input":{"type":"structure","required":["EncodedMessage"],"members":{"EncodedMessage":{}}},"output":{"resultWrapper":"DecodeAuthorizationMessageResult","type":"structure","members":{"DecodedMessage":{}}}},"GetAccessKeyInfo":{"input":{"type":"structure","required":["AccessKeyId"],"members":{"AccessKeyId":{}}},"output":{"resultWrapper":"GetAccessKeyInfoResult","type":"structure","members":{"Account":{}}}},"GetCallerIdentity":{"input":{"type":"structure","members":{}},"output":{"resultWrapper":"GetCallerIdentityResult","type":"structure","members":{"UserId":{},"Account":{},"Arn":{}}}},"GetFederationToken":{"input":{"type":"structure","required":["Name"],"members":{"Name":{},"Policy":{},"PolicyArns":{"shape":"S4"},"DurationSeconds":{"type":"integer"},"Tags":{"shape":"S8"}}},"output":{"resultWrapper":"GetFederationTokenResult","type":"structure","members":{"Credentials":{"shape":"Si"},"FederatedUser":{"type":"structure","required":["FederatedUserId","Arn"],"members":{"FederatedUserId":{},"Arn":{}}},"PackedPolicySize":{"type":"integer"}}}},"GetSessionToken":{"input":{"type":"structure","members":{"DurationSeconds":{"type":"integer"},"SerialNumber":{},"TokenCode":{}}},"output":{"resultWrapper":"GetSessionTokenResult","type":"structure","members":{"Credentials":{"shape":"Si"}}}}},"shapes":{"S4":{"type":"list","member":{"type":"structure","members":{"arn":{}}}},"S8":{"type":"list","member":{"type":"structure","required":["Key","Value"],"members":{"Key":{},"Value":{}}}},"Si":{"type":"structure","required":["AccessKeyId","SecretAccessKey","SessionToken","Expiration"],"members":{"AccessKeyId":{},"SecretAccessKey":{},"SessionToken":{},"Expiration":{"type":"timestamp"}}},"Sn":{"type":"structure","required":["AssumedRoleId","Arn"],"members":{"AssumedRoleId":{},"Arn":{}}}}}')},31152:le=>{"use strict";le.exports={o:{}}},85595:le=>{"use strict";le.exports=JSON.parse('{"rules":{"*/*":{"endpoint":"{service}.{region}.amazonaws.com"},"cn-*/*":{"endpoint":"{service}.{region}.amazonaws.com.cn"},"us-iso-*/*":"usIso","us-isob-*/*":"usIsob","*/budgets":"globalSSL","*/cloudfront":"globalSSL","*/sts":"globalSSL","*/importexport":{"endpoint":"{service}.amazonaws.com","signatureVersion":"v2","globalEndpoint":true},"*/route53":"globalSSL","cn-*/route53":{"endpoint":"{service}.amazonaws.com.cn","globalEndpoint":true,"signingRegion":"cn-northwest-1"},"us-gov-*/route53":"globalGovCloud","us-iso-*/route53":{"endpoint":"{service}.c2s.ic.gov","globalEndpoint":true,"signingRegion":"us-iso-east-1"},"us-isob-*/route53":{"endpoint":"{service}.sc2s.sgov.gov","globalEndpoint":true,"signingRegion":"us-isob-east-1"},"*/waf":"globalSSL","*/iam":"globalSSL","cn-*/iam":{"endpoint":"{service}.cn-north-1.amazonaws.com.cn","globalEndpoint":true,"signingRegion":"cn-north-1"},"us-gov-*/iam":"globalGovCloud","us-gov-*/sts":{"endpoint":"{service}.{region}.amazonaws.com"},"us-gov-west-1/s3":"s3signature","us-west-1/s3":"s3signature","us-west-2/s3":"s3signature","eu-west-1/s3":"s3signature","ap-southeast-1/s3":"s3signature","ap-southeast-2/s3":"s3signature","ap-northeast-1/s3":"s3signature","sa-east-1/s3":"s3signature","us-east-1/s3":{"endpoint":"{service}.amazonaws.com","signatureVersion":"s3"},"us-east-1/sdb":{"endpoint":"{service}.amazonaws.com","signatureVersion":"v2"},"*/sdb":{"endpoint":"{service}.{region}.amazonaws.com","signatureVersion":"v2"}},"fipsRules":{"*/*":"fipsStandard","us-gov-*/*":"fipsStandard","us-iso-*/*":{"endpoint":"{service}-fips.{region}.c2s.ic.gov"},"us-iso-*/dms":"usIso","us-isob-*/*":{"endpoint":"{service}-fips.{region}.sc2s.sgov.gov"},"us-isob-*/dms":"usIsob","cn-*/*":{"endpoint":"{service}-fips.{region}.amazonaws.com.cn"},"*/api.ecr":"fips.api.ecr","*/api.sagemaker":"fips.api.sagemaker","*/batch":"fipsDotPrefix","*/eks":"fipsDotPrefix","*/models.lex":"fips.models.lex","*/runtime.lex":"fips.runtime.lex","*/runtime.sagemaker":{"endpoint":"runtime-fips.sagemaker.{region}.amazonaws.com"},"*/iam":"fipsWithoutRegion","*/route53":"fipsWithoutRegion","*/transcribe":"fipsDotPrefix","*/waf":"fipsWithoutRegion","us-gov-*/transcribe":"fipsDotPrefix","us-gov-*/api.ecr":"fips.api.ecr","us-gov-*/api.sagemaker":"fips.api.sagemaker","us-gov-*/models.lex":"fips.models.lex","us-gov-*/runtime.lex":"fips.runtime.lex","us-gov-*/acm-pca":"fipsWithServiceOnly","us-gov-*/batch":"fipsWithServiceOnly","us-gov-*/config":"fipsWithServiceOnly","us-gov-*/eks":"fipsWithServiceOnly","us-gov-*/elasticmapreduce":"fipsWithServiceOnly","us-gov-*/identitystore":"fipsWithServiceOnly","us-gov-*/dynamodb":"fipsWithServiceOnly","us-gov-*/elasticloadbalancing":"fipsWithServiceOnly","us-gov-*/guardduty":"fipsWithServiceOnly","us-gov-*/monitoring":"fipsWithServiceOnly","us-gov-*/resource-groups":"fipsWithServiceOnly","us-gov-*/runtime.sagemaker":"fipsWithServiceOnly","us-gov-*/servicecatalog-appregistry":"fipsWithServiceOnly","us-gov-*/servicequotas":"fipsWithServiceOnly","us-gov-*/ssm":"fipsWithServiceOnly","us-gov-*/sts":"fipsWithServiceOnly","us-gov-*/support":"fipsWithServiceOnly","us-gov-west-1/states":"fipsWithServiceOnly","us-iso-east-1/elasticfilesystem":{"endpoint":"elasticfilesystem-fips.{region}.c2s.ic.gov"},"us-gov-west-1/organizations":"fipsWithServiceOnly","us-gov-west-1/route53":{"endpoint":"route53.us-gov.amazonaws.com"}},"dualstackRules":{"*/*":{"endpoint":"{service}.{region}.api.aws"},"cn-*/*":{"endpoint":"{service}.{region}.api.amazonwebservices.com.cn"},"*/s3":"dualstackLegacy","cn-*/s3":"dualstackLegacyCn","*/s3-control":"dualstackLegacy","cn-*/s3-control":"dualstackLegacyCn","ap-south-1/ec2":"dualstackLegacyEc2","eu-west-1/ec2":"dualstackLegacyEc2","sa-east-1/ec2":"dualstackLegacyEc2","us-east-1/ec2":"dualstackLegacyEc2","us-east-2/ec2":"dualstackLegacyEc2","us-west-2/ec2":"dualstackLegacyEc2"},"dualstackFipsRules":{"*/*":{"endpoint":"{service}-fips.{region}.api.aws"},"cn-*/*":{"endpoint":"{service}-fips.{region}.api.amazonwebservices.com.cn"},"*/s3":"dualstackFipsLegacy","cn-*/s3":"dualstackFipsLegacyCn","*/s3-control":"dualstackFipsLegacy","cn-*/s3-control":"dualstackFipsLegacyCn"},"patterns":{"globalSSL":{"endpoint":"https://{service}.amazonaws.com","globalEndpoint":true,"signingRegion":"us-east-1"},"globalGovCloud":{"endpoint":"{service}.us-gov.amazonaws.com","globalEndpoint":true,"signingRegion":"us-gov-west-1"},"s3signature":{"endpoint":"{service}.{region}.amazonaws.com","signatureVersion":"s3"},"usIso":{"endpoint":"{service}.{region}.c2s.ic.gov"},"usIsob":{"endpoint":"{service}.{region}.sc2s.sgov.gov"},"fipsStandard":{"endpoint":"{service}-fips.{region}.amazonaws.com"},"fipsDotPrefix":{"endpoint":"fips.{service}.{region}.amazonaws.com"},"fipsWithoutRegion":{"endpoint":"{service}-fips.amazonaws.com"},"fips.api.ecr":{"endpoint":"ecr-fips.{region}.amazonaws.com"},"fips.api.sagemaker":{"endpoint":"api-fips.sagemaker.{region}.amazonaws.com"},"fips.models.lex":{"endpoint":"models-fips.lex.{region}.amazonaws.com"},"fips.runtime.lex":{"endpoint":"runtime-fips.lex.{region}.amazonaws.com"},"fipsWithServiceOnly":{"endpoint":"{service}.{region}.amazonaws.com"},"dualstackLegacy":{"endpoint":"{service}.dualstack.{region}.amazonaws.com"},"dualstackLegacyCn":{"endpoint":"{service}.dualstack.{region}.amazonaws.com.cn"},"dualstackFipsLegacy":{"endpoint":"{service}-fips.dualstack.{region}.amazonaws.com"},"dualstackFipsLegacyCn":{"endpoint":"{service}-fips.dualstack.{region}.amazonaws.com.cn"},"dualstackLegacyEc2":{"endpoint":"api.ec2.{region}.aws"}}}')},44226:le=>{"use strict";le.exports=JSON.parse('{"name":"aws-appsync-auth-link","version":"3.0.4","main":"lib/index.js","license":"Apache-2.0","description":"AWS Mobile AppSync Auth Link for JavaScript","author":{"name":"Amazon Web Services","url":"https://aws.amazon.com/"},"homepage":"https://github.com/awslabs/aws-mobile-appsync-sdk-js.git","repository":{"type":"git","url":"https://github.com/awslabs/aws-mobile-appsync-sdk-js.git"},"scripts":{"prepare":"tsc","test":"jest --coverage --coverageReporters=text --passWithNoTests","test-watch":"jest --watch"},"dependencies":{"aws-sdk":"^2.814.0","debug":"2.6.9"},"devDependencies":{"@apollo/client":"^3.2.0"},"peerDependencies":{"@apollo/client":"3.x"}}')}}]);
2
+ !function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},n=(new Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="47d93c08-0827-5aa0-b801-01c4004471b8")}catch(e){}}();
3
+ (self.webpackChunkaltair=self.webpackChunkaltair||[]).push([[667],{81993:(ae,I,l)=>{"use strict";l.d(I,{R:()=>p});var t=l(95355),w=l(4789),p=function(){function r(){this.getFragmentDoc=(0,t.re)(w.Yk)}return r.prototype.recordOptimisticTransaction=function(n,i){this.performTransaction(n,i)},r.prototype.transformDocument=function(n){return n},r.prototype.identify=function(n){},r.prototype.gc=function(){return[]},r.prototype.modify=function(n){return!1},r.prototype.transformForLink=function(n){return n},r.prototype.readQuery=function(n,i){return void 0===i&&(i=!!n.optimistic),this.read({rootId:n.id||"ROOT_QUERY",query:n.query,variables:n.variables,returnPartialData:n.returnPartialData,optimistic:i})},r.prototype.readFragment=function(n,i){return void 0===i&&(i=!!n.optimistic),this.read({query:this.getFragmentDoc(n.fragment,n.fragmentName),variables:n.variables,rootId:n.id,returnPartialData:n.returnPartialData,optimistic:i})},r.prototype.writeQuery=function(n){return this.write({dataId:n.id||"ROOT_QUERY",result:n.data,query:n.query,variables:n.variables,broadcast:n.broadcast})},r.prototype.writeFragment=function(n){return this.write({dataId:n.id,result:n.data,variables:n.variables,query:this.getFragmentDoc(n.fragment,n.fragmentName),broadcast:n.broadcast})},r}()},61828:(ae,I,l)=>{"use strict";var t;l.d(I,{C:()=>t}),t||(t={})},20377:(ae,I,l)=>{"use strict";l.d(I,{y:()=>t});var t=function w(p,r,n,i,s){this.message=p,this.path=r,this.query=n,this.clientOnly=i,this.variables=s}},59451:(ae,I,l)=>{"use strict";l.d(I,{$O:()=>i,E_:()=>s,RC:()=>e,RI:()=>r,ig:()=>u,j:()=>a});var t=l(53019),w=l(45e3),p=l(58856),r=Object.prototype.hasOwnProperty,i=/^[_a-z][_0-9a-z]*/i;function s(c){var y=c.match(i);return y?y[0]:c}function e(c,y,f){return!(!y||"object"!=typeof y)&&(Array.isArray(y)?y.every(function(T){return e(c,T,f)}):c.selections.every(function(T){if((0,t.My)(T)&&(0,w.LZ)(T,f)){var x=(0,t.u2)(T);return r.call(y,x)&&(!T.selectionSet||e(T.selectionSet,y[x],f))}return!0}))}function a(c){return null!==c&&"object"==typeof c&&!(0,t.Yk)(c)&&!Array.isArray(c)}function u(){return new p.w0}},56881:(ae,I,l)=>{"use strict";l.d(I,{h:()=>re});var Y,k,t=l(97378),w=l(95355),p=l(81993),r=l(20377),n=l(53019),i=l(12578),s=l(76456),e=l(15401),a=l(4789),u=l(45e3),c=l(58856),y=l(87788),_=l(30688),g=l(59451),A=Object.create(null),L=function(){return A},j=Object.create(null),Q=function(){function Y(k,C){var N=this;this.policies=k,this.group=C,this.data=Object.create(null),this.rootIds=Object.create(null),this.refs=Object.create(null),this.getFieldValue=function(q,Z){return(0,n.Yk)(q)?N.get(q.__ref,Z):q&&q[Z]},this.canRead=function(q){return(0,n.Yk)(q)?N.has(q.__ref):"object"==typeof q},this.toReference=function(q,Z){if("string"==typeof q)return(0,n.kQ)(q);if((0,n.Yk)(q))return q;var fe=N.policies.identify(q)[0];if(fe){var ve=(0,n.kQ)(fe);return Z&&N.merge(fe,q),ve}}}return Y.prototype.toObject=function(){return(0,t.pi)({},this.data)},Y.prototype.has=function(k){return void 0!==this.lookup(k,!0)},Y.prototype.get=function(k,C){if(this.group.depend(k,C),g.RI.call(this.data,k)){var N=this.data[k];if(N&&g.RI.call(N,C))return N[C]}return"__typename"===C&&g.RI.call(this.policies.rootTypenamesById,k)?this.policies.rootTypenamesById[k]:this instanceof P?this.parent.get(k,C):void 0},Y.prototype.lookup=function(k,C){return C&&this.group.depend(k,"__exists"),g.RI.call(this.data,k)?this.data[k]:this instanceof P?this.parent.lookup(k,C):this.policies.rootTypenamesById[k]?Object.create(null):void 0},Y.prototype.merge=function(k,C){var N=this,q=this.lookup(k),Z=new c.w0(d).merge(q,C);if(this.data[k]=Z,Z!==q&&(delete this.refs[k],this.group.caching)){var fe=Object.create(null);q||(fe.__exists=1),Object.keys(C).forEach(function(ve){if(!q||q[ve]!==Z[ve]){fe[ve]=1;var Se=(0,g.E_)(ve);Se!==ve&&!N.policies.hasKeyArgs(Z.__typename,Se)&&(fe[Se]=1),void 0===Z[ve]&&!(N instanceof P)&&delete Z[ve]}}),Object.keys(fe).forEach(function(ve){return N.group.dirty(k,ve)})}},Y.prototype.modify=function(k,C){var N=this,q=this.lookup(k);if(q){var Z=Object.create(null),fe=!1,ve=!0,Se={DELETE:A,INVALIDATE:j,isReference:n.Yk,toReference:this.toReference,canRead:this.canRead,readField:function(be,Pe){return N.policies.readField("string"==typeof be?{fieldName:be,from:Pe||(0,n.kQ)(k)}:be,{store:N})}};if(Object.keys(q).forEach(function(be){var Pe=(0,g.E_)(be),De=q[be];if(void 0!==De){var ke="function"==typeof C?C:C[be]||C[Pe];if(ke){var ne=ke===L?A:ke(De,(0,t.pi)((0,t.pi)({},Se),{fieldName:Pe,storeFieldName:be,storage:N.getStorage(k,be)}));ne===j?N.group.dirty(k,be):(ne===A&&(ne=void 0),ne!==De&&(Z[be]=ne,fe=!0,De=ne))}void 0!==De&&(ve=!1)}}),fe)return this.merge(k,Z),ve&&(this instanceof P?this.data[k]=void 0:delete this.data[k],this.group.dirty(k,"__exists")),!0}return!1},Y.prototype.delete=function(k,C,N){var q,Z=this.lookup(k);if(Z){var fe=this.getFieldValue(Z,"__typename"),ve=C&&N?this.policies.getStoreFieldName({typename:fe,fieldName:C,args:N}):C;return this.modify(k,ve?((q={})[ve]=L,q):L)}return!1},Y.prototype.evict=function(k){var C=!1;return k.id&&(g.RI.call(this.data,k.id)&&(C=this.delete(k.id,k.fieldName,k.args)),this instanceof P&&(C=this.parent.evict(k)||C),(k.fieldName||C)&&this.group.dirty(k.id,k.fieldName||"__exists")),C},Y.prototype.clear=function(){this.replace(null)},Y.prototype.extract=function(){var k=this,C=this.toObject(),N=[];return this.getRootIdSet().forEach(function(q){g.RI.call(k.policies.rootTypenamesById,q)||N.push(q)}),N.length&&(C.__META={extraRootIds:N.sort()}),C},Y.prototype.replace=function(k){var C=this;if(Object.keys(this.data).forEach(function(Z){k&&g.RI.call(k,Z)||C.delete(Z)}),k){var N=k.__META,q=(0,t._T)(k,["__META"]);Object.keys(q).forEach(function(Z){C.merge(Z,q[Z])}),N&&N.extraRootIds.forEach(this.retain,this)}},Y.prototype.retain=function(k){return this.rootIds[k]=(this.rootIds[k]||0)+1},Y.prototype.release=function(k){if(this.rootIds[k]>0){var C=--this.rootIds[k];return C||delete this.rootIds[k],C}return 0},Y.prototype.getRootIdSet=function(k){return void 0===k&&(k=new Set),Object.keys(this.rootIds).forEach(k.add,k),this instanceof P?this.parent.getRootIdSet(k):Object.keys(this.policies.rootTypenamesById).forEach(k.add,k),k},Y.prototype.gc=function(){var k=this,C=this.getRootIdSet(),N=this.toObject();C.forEach(function(fe){g.RI.call(N,fe)&&(Object.keys(k.findChildRefIds(fe)).forEach(C.add,C),delete N[fe])});var q=Object.keys(N);if(q.length){for(var Z=this;Z instanceof P;)Z=Z.parent;q.forEach(function(fe){return Z.delete(fe)})}return q},Y.prototype.findChildRefIds=function(k){if(!g.RI.call(this.refs,k)){var C=this.refs[k]=Object.create(null),N=new Set([this.data[k]]),q=function(Z){return null!==Z&&"object"==typeof Z};N.forEach(function(Z){(0,n.Yk)(Z)?C[Z.__ref]=!0:q(Z)&&Object.values(Z).filter(q).forEach(N.add,N)})}return this.refs[k]},Y.prototype.makeCacheKey=function(){for(var k=[],C=0;C<arguments.length;C++)k[C]=arguments[C];return this.group.keyMaker.lookupArray(k)},Y}(),F=function(){function Y(k){this.caching=k,this.d=null,this.keyMaker=new w.Gl(_.m),this.d=k?(0,w.dP)():null}return Y.prototype.depend=function(k,C){if(this.d){this.d(b(k,C));var N=(0,g.E_)(C);N!==C&&this.d(b(k,N))}},Y.prototype.dirty=function(k,C){this.d&&this.d.dirty(b(k,C))},Y}();function b(Y,k){return k+"#"+Y}k=function(C){function N(q){var fe=q.resultCaching,ve=void 0===fe||fe,Se=q.seed,be=C.call(this,q.policies,new F(ve))||this;return be.storageTrie=new w.Gl(_.m),be.sharedLayerGroup=new F(ve),Se&&be.replace(Se),be}return(0,t.ZT)(N,C),N.prototype.addLayer=function(q,Z){return new P(q,this,Z,this.sharedLayerGroup)},N.prototype.removeLayer=function(){return this},N.prototype.getStorage=function(){return this.storageTrie.lookupArray(arguments)},N}(Y=Q||(Q={})),Y.Root=k;var P=function(Y){function k(C,N,q,Z){var fe=Y.call(this,N.policies,Z)||this;return fe.id=C,fe.parent=N,fe.replay=q,fe.group=Z,q(fe),fe}return(0,t.ZT)(k,Y),k.prototype.addLayer=function(C,N){return new k(C,this,N,this.group)},k.prototype.removeLayer=function(C){var N=this,q=this.parent.removeLayer(C);return C===this.id?(this.group.caching&&Object.keys(this.data).forEach(function(Z){N.data[Z]!==q.lookup(Z)&&N.delete(Z)}),q):q===this.parent?this:q.addLayer(this.id,this.replay)},k.prototype.toObject=function(){return(0,t.pi)((0,t.pi)({},this.parent.toObject()),this.data)},k.prototype.findChildRefIds=function(C){var N=this.parent.findChildRefIds(C);return g.RI.call(this.data,C)?(0,t.pi)((0,t.pi)({},N),Y.prototype.findChildRefIds.call(this,C)):N},k.prototype.getStorage=function(){for(var C=this.parent;C.parent;)C=C.parent;return C.getStorage.apply(C,arguments)},k}(Q);function d(Y,k,C){var N=Y[C],q=k[C];return(0,y.D)(N,q)?N:q}function O(Y){return!!(Y instanceof Q&&Y.group.caching)}function v(Y,k){return new r.y(Y.message,k.path.slice(),k.query,k.clientOnly,k.variables)}var M=function(){function Y(k){var C=this;this.config=k,this.executeSelectionSet=(0,w.re)(function(N){return C.execSelectionSetImpl(N)},{keyArgs:function(N){return[N.selectionSet,N.objectOrReference,N.context]},makeCacheKey:function(N,q,Z){if(O(Z.store))return Z.store.makeCacheKey(N,(0,n.Yk)(q)?q.__ref:q,Z.varString)}}),this.knownResults=new WeakMap,this.executeSubSelectedArray=(0,w.re)(function(N){return C.execSubSelectedArrayImpl(N)},{makeCacheKey:function(N){var q=N.field,Z=N.array,fe=N.context;if(O(fe.store))return fe.store.makeCacheKey(q,Z,fe.varString)}}),this.config=(0,t.pi)({addTypename:!0},k)}return Y.prototype.diffQueryAgainstStore=function(k){var C=k.store,N=k.query,q=k.rootId,Z=void 0===q?"ROOT_QUERY":q,fe=k.variables,ve=k.returnPartialData,Se=void 0===ve||ve,be=this.config.cache.policies;fe=(0,t.pi)((0,t.pi)({},(0,e.O4)((0,e.iW)(N))),fe);var Pe=this.executeSelectionSet({selectionSet:(0,e.p$)(N).selectionSet,objectOrReference:(0,n.kQ)(Z),context:{store:C,query:N,policies:be,variables:fe,varString:JSON.stringify(fe),fragmentMap:(0,a.F)((0,e.kU)(N)),path:[],clientOnly:!1}}),De=Pe.missing&&Pe.missing.length>0;if(De&&!Se)throw Pe.missing[0];return{result:Pe.result,missing:Pe.missing,complete:!De}},Y.prototype.isFresh=function(k,C,N,q){if(O(q.store)&&this.knownResults.get(k)===N){var Z=this.executeSelectionSet.peek(N,C,q);if(Z&&k===Z.result)return!0}return!1},Y.prototype.execSelectionSetImpl=function(k){var C=this,N=k.selectionSet,q=k.objectOrReference,Z=k.context;if((0,n.Yk)(q)&&!Z.policies.rootTypenamesById[q.__ref]&&!Z.store.has(q.__ref))return{result:{},missing:[v(new s.ej(4),Z)]};var fe=Z.variables,ve=Z.policies,be=[],Pe={result:null},De=Z.store.getFieldValue(q,"__typename");function ke(){return Pe.missing||(Pe.missing=[])}function ne(m){var R;return m.missing&&(R=ke()).push.apply(R,m.missing),m.result}this.config.addTypename&&"string"==typeof De&&!ve.rootIdsByTypename[De]&&be.push({__typename:De});var U=new Set(N.selections);return U.forEach(function(m){var R;if((0,u.LZ)(m,fe))if((0,n.My)(m)){var D=ve.readField({fieldName:m.name.value,field:m,variables:Z.variables,from:q},Z),te=(0,n.u2)(m);Z.path.push(te);var pe=Z.clientOnly;Z.clientOnly=pe||!(!m.directives||!m.directives.some(function(Ce){return"client"===Ce.name.value})),void 0===D?i.Gw.added(m)||ke().push(v(new s.ej(5),Z)):Array.isArray(D)?D=ne(C.executeSubSelectedArray({field:m,array:D,context:Z})):m.selectionSet&&null!=D&&(D=ne(C.executeSelectionSet({selectionSet:m.selectionSet,objectOrReference:D,context:Z}))),void 0!==D&&be.push(((R={})[te]=D,R)),Z.clientOnly=pe,(0,s.kG)(Z.path.pop()===te)}else{var xe=(0,a.hi)(m,Z.fragmentMap);xe&&ve.fragmentMatches(xe,De)&&xe.selectionSet.selections.forEach(U.add,U)}}),Pe.result=(0,c.bw)(be),this.knownResults.set(Pe.result,N),Pe},Y.prototype.execSubSelectedArrayImpl=function(k){var fe,C=this,N=k.field,q=k.array,Z=k.context;function ve(Se,be){return Se.missing&&(fe=fe||[]).push.apply(fe,Se.missing),(0,s.kG)(Z.path.pop()===be),Se.result}return N.selectionSet&&(q=q.filter(Z.store.canRead)),{result:q=q.map(function(Se,be){return null===Se?null:(Z.path.push(be),Array.isArray(Se)?ve(C.executeSubSelectedArray({field:N,array:Se,context:Z}),be):N.selectionSet?ve(C.executeSelectionSet({selectionSet:N.selectionSet,objectOrReference:Se,context:Z}),be):((0,s.kG)(Z.path.pop()===be),Se))}),missing:fe}},Y}(),V=function(){function Y(k,C){this.cache=k,this.reader=C}return Y.prototype.writeToStore=function(k){var C=k.query,N=k.result,q=k.dataId,Z=k.store,fe=k.variables,ve=(0,e.$H)(C),Se=(0,g.ig)();fe=(0,t.pi)((0,t.pi)({},(0,e.O4)(ve)),fe);var be=this.processSelectionSet({result:N||Object.create(null),dataId:q,selectionSet:ve.selectionSet,mergeTree:{map:new Map},context:{store:Z,written:Object.create(null),merge:function(Pe,De){return Se.merge(Pe,De)},variables:fe,varString:JSON.stringify(fe),fragmentMap:(0,a.F)((0,e.kU)(C))}});if(!(0,n.Yk)(be))throw new s.ej(7);return Z.retain(be.__ref),be},Y.prototype.processSelectionSet=function(k){var C=this,N=k.dataId,q=k.result,Z=k.selectionSet,fe=k.context,ve=k.mergeTree,Se=this.cache.policies,be=Se.identify(q,Z,fe.fragmentMap),De=be[1];if("string"==typeof(N=N||be[0])){var ke=fe.written[N]||(fe.written[N]=[]),ne=(0,n.kQ)(N);if(ke.indexOf(Z)>=0||(ke.push(Z),this.reader&&this.reader.isFresh(q,ne,Z,fe)))return ne}var U=Object.create(null);De&&(U=fe.merge(U,De));var m=N&&Se.rootTypenamesById[N]||(0,n.qw)(q,Z,fe.fragmentMap)||N&&fe.store.get(N,"__typename");"string"==typeof m&&(U.__typename=m);var R=new Set(Z.selections);if(R.forEach(function(Ce){var ee;if((0,u.LZ)(Ce,fe.variables))if((0,n.My)(Ce)){var le=(0,n.u2)(Ce),de=q[le];if(typeof de<"u"){var Oe=Se.getStoreFieldName({typename:m,fieldName:Ce.name.value,field:Ce,variables:fe.variables}),Re=ue(ve,Oe),Ue=C.processFieldValue(de,Ce,fe,Re),qe=Ce.selectionSet&&fe.store.getFieldValue(Ue,"__typename")||void 0,ze=Se.getMergeFunction(m,Ce.name.value,qe);ze?Re.info={field:Ce,typename:m,merge:ze}:me(ve,Oe),U=fe.merge(U,((ee={})[Oe]=Ue,ee))}else if(Se.usingPossibleTypes&&!(0,u.FS)(["defer","client"],Ce))throw new s.ej(8)}else{var nt=(0,a.hi)(Ce,fe.fragmentMap);nt&&Se.fragmentMatches(nt,m,q,fe.variables)&&nt.selectionSet.selections.forEach(R.add,R)}}),"string"==typeof N){var D=(0,n.kQ)(N);return ve.map.size&&(U=this.applyMerges(ve,D,U,fe)),fe.store.merge(N,U),D}return U},Y.prototype.processFieldValue=function(k,C,N,q){var Z=this;return C.selectionSet&&null!==k?Array.isArray(k)?k.map(function(fe,ve){var Se=Z.processFieldValue(fe,C,N,ue(q,ve));return me(q,ve),Se}):this.processSelectionSet({result:k,selectionSet:C.selectionSet,context:N,mergeTree:q}):k},Y.prototype.applyMerges=function(k,C,N,q,Z){var fe,ve=this;if(k.map.size&&!(0,n.Yk)(N)){var Se=Array.isArray(N)||!(0,n.Yk)(C)&&!(0,g.j)(C)?void 0:C,be=N;Se&&!Z&&(Z=[(0,n.Yk)(Se)?Se.__ref:Se]);var Pe,De=function(ke,ne){return Array.isArray(ke)?"number"==typeof ne?ke[ne]:void 0:q.store.getFieldValue(ke,String(ne))};k.map.forEach(function(ke,ne){Z&&Z.push(ne);var U=De(Se,ne),m=De(be,ne),R=ve.applyMerges(ke,U,m,q,Z);R!==m&&(Pe=Pe||new Map).set(ne,R),Z&&(0,s.kG)(Z.pop()===ne)}),Pe&&(N=Array.isArray(be)?be.slice(0):(0,t.pi)({},be),Pe.forEach(function(ke,ne){N[ne]=ke}))}return k.info?this.cache.policies.runMergeFunction(C,N,k.info,q,Z&&(fe=q.store).getStorage.apply(fe,Z)):N},Y}(),J=[];function ue(Y,k){var C=Y.map;return C.has(k)||C.set(k,J.pop()||{map:new Map}),C.get(k)}function me(Y,k){var C=Y.map,N=C.get(k);N&&!N.info&&!N.map.size&&(J.push(N),C.delete(k))}var ie=l(97983),K=l(5770),G={dataIdFromObject:K.u,addTypename:!0,resultCaching:!0,typePolicies:{}},re=function(Y){function k(C){void 0===C&&(C={});var N=Y.call(this)||this;return N.watches=new Set,N.typenameDocumentCache=new Map,N.makeVar=ie.QS,N.txCount=0,N.maybeBroadcastWatch=(0,w.re)(function(q,Z){return N.broadcastWatch.call(N,q,!!Z)},{makeCacheKey:function(q){var Z=q.optimistic?N.optimisticData:N.data;if(O(Z))return Z.makeCacheKey(q.query,q.callback,JSON.stringify({optimistic:q.optimistic,rootId:q.rootId,variables:q.variables}))}}),N.watchDep=(0,w.dP)(),N.config=(0,t.pi)((0,t.pi)({},G),C),N.addTypename=!!N.config.addTypename,N.policies=new K.r({cache:N,dataIdFromObject:N.config.dataIdFromObject,possibleTypes:N.config.possibleTypes,typePolicies:N.config.typePolicies}),N.data=new Q.Root({policies:N.policies,resultCaching:N.config.resultCaching}),N.optimisticData=N.data,N.storeWriter=new V(N,N.storeReader=new M({cache:N,addTypename:N.addTypename})),N}return(0,t.ZT)(k,Y),k.prototype.restore=function(C){return C&&this.data.replace(C),this},k.prototype.extract=function(C){return void 0===C&&(C=!1),(C?this.optimisticData:this.data).extract()},k.prototype.read=function(C){var N=C.returnPartialData,q=void 0!==N&&N;try{return this.storeReader.diffQueryAgainstStore({store:C.optimistic?this.optimisticData:this.data,query:C.query,variables:C.variables,rootId:C.rootId,config:this.config,returnPartialData:q}).result||null}catch(Z){if(Z instanceof r.y)return null;throw Z}},k.prototype.write=function(C){try{return++this.txCount,this.storeWriter.writeToStore({store:this.data,query:C.query,result:C.result,dataId:C.dataId,variables:C.variables})}finally{! --this.txCount&&!1!==C.broadcast&&this.broadcastWatches()}},k.prototype.modify=function(C){if(g.RI.call(C,"id")&&!C.id)return!1;var N=C.optimistic?this.optimisticData:this.data;try{return++this.txCount,N.modify(C.id||"ROOT_QUERY",C.fields)}finally{! --this.txCount&&!1!==C.broadcast&&this.broadcastWatches()}},k.prototype.diff=function(C){return this.storeReader.diffQueryAgainstStore({store:C.optimistic?this.optimisticData:this.data,rootId:C.id||"ROOT_QUERY",query:C.query,variables:C.variables,returnPartialData:C.returnPartialData,config:this.config})},k.prototype.watch=function(C){var N=this;return this.watches.size||(0,ie._v)(this),this.watches.add(C),C.immediate&&this.maybeBroadcastWatch(C),function(){N.watches.delete(C)&&!N.watches.size&&(0,ie.li)(N),N.watchDep.dirty(C),N.maybeBroadcastWatch.forget(C)}},k.prototype.gc=function(){return this.optimisticData.gc()},k.prototype.retain=function(C,N){return(N?this.optimisticData:this.data).retain(C)},k.prototype.release=function(C,N){return(N?this.optimisticData:this.data).release(C)},k.prototype.identify=function(C){return(0,n.Yk)(C)?C.__ref:this.policies.identify(C)[0]},k.prototype.evict=function(C){if(!C.id){if(g.RI.call(C,"id"))return!1;C=(0,t.pi)((0,t.pi)({},C),{id:"ROOT_QUERY"})}try{return++this.txCount,this.optimisticData.evict(C)}finally{! --this.txCount&&!1!==C.broadcast&&this.broadcastWatches()}},k.prototype.reset=function(){return this.data.clear(),this.optimisticData=this.data,this.broadcastWatches(),Promise.resolve()},k.prototype.removeOptimistic=function(C){var N=this.optimisticData.removeLayer(C);N!==this.optimisticData&&(this.optimisticData=N,this.broadcastWatches())},k.prototype.performTransaction=function(C,N){var q=this,Z=function(ve){var be=q.data,Pe=q.optimisticData;++q.txCount,ve&&(q.data=q.optimisticData=ve);try{C(q)}finally{--q.txCount,q.data=be,q.optimisticData=Pe}},fe=!1;"string"==typeof N?(this.optimisticData=this.optimisticData.addLayer(N,Z),fe=!0):null===N?Z(this.data):Z(),this.broadcastWatches(fe)},k.prototype.transformDocument=function(C){if(this.addTypename){var N=this.typenameDocumentCache.get(C);return N||(N=(0,i.Gw)(C),this.typenameDocumentCache.set(C,N),this.typenameDocumentCache.set(N,N)),N}return C},k.prototype.broadcastWatches=function(C){var N=this;this.txCount||this.watches.forEach(function(q){return N.maybeBroadcastWatch(q,C)})},k.prototype.broadcastWatch=function(C,N){this.watchDep.dirty(C),this.watchDep(C);var q=this.diff({query:C.query,variables:C.variables,optimistic:C.optimistic});C.optimistic&&N&&(q.fromOptimisticTransaction=!0),C.callback(q)},k}(p.R)},5770:(ae,I,l)=>{"use strict";l.d(I,{r:()=>x,u:()=>u});var t=l(97378),w=l(95355),p=l(76456),r=l(53019),n=l(30688),i=l(4789),s=l(59451),e=l(97983);function a(F){return void 0!==F.args?F.args:F.field?(0,r.NC)(F.field,F.variables):null}var u=function(F,b){var P=F.__typename,d=F.id,O=F._id;if("string"==typeof P&&(b&&(b.keyObject=void 0!==d?{id:d}:void 0!==O?{_id:O}:void 0),void 0===d&&(d=O),void 0!==d))return P+":"+("number"==typeof d||"string"==typeof d?d:JSON.stringify(d))},c=function(){},y=function(F,b){return b.fieldName},f=function(F,b,P){return(0,P.mergeObjects)(F,b)},T=function(F,b){return b},x=function(){function F(b){this.config=b,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=(0,t.pi)({dataIdFromObject:u},b),this.cache=this.config.cache,this.setRootTypename("Query"),this.setRootTypename("Mutation"),this.setRootTypename("Subscription"),b.possibleTypes&&this.addPossibleTypes(b.possibleTypes),b.typePolicies&&this.addTypePolicies(b.typePolicies)}return F.prototype.identify=function(b,P,d){var O=P&&d?(0,r.qw)(b,P,d):b.__typename;if(O===this.rootTypenamesById.ROOT_QUERY)return["ROOT_QUERY"];for(var M,v={typename:O,selectionSet:P,fragmentMap:d},W=O&&this.getTypePolicy(O),V=W&&W.keyFn||this.config.dataIdFromObject;V;){var J=V(b,v);if(!Array.isArray(J)){M=J;break}V=L(J)}return M=M?String(M):void 0,v.keyObject?[M,v.keyObject]:[M]},F.prototype.addTypePolicies=function(b){var P=this;Object.keys(b).forEach(function(d){var O=b[d],v=O.queryType,M=O.mutationType,W=O.subscriptionType,V=(0,t._T)(O,["queryType","mutationType","subscriptionType"]);v&&P.setRootTypename("Query",d),M&&P.setRootTypename("Mutation",d),W&&P.setRootTypename("Subscription",d),s.RI.call(P.toBeAdded,d)?P.toBeAdded[d].push(V):P.toBeAdded[d]=[V]})},F.prototype.updateTypePolicy=function(b,P){var d=this,O=this.getTypePolicy(b),v=P.keyFields,M=P.fields;function W(V,J){V.merge="function"==typeof J?J:!0===J?f:!1===J?T:V.merge}W(O,P.merge),O.keyFn=!1===v?c:Array.isArray(v)?L(v):"function"==typeof v?v:O.keyFn,M&&Object.keys(M).forEach(function(V){var J=d.getFieldPolicy(b,V,!0),ue=M[V];if("function"==typeof ue)J.read=ue;else{var me=ue.keyArgs,X=ue.read,he=ue.merge;J.keyFn=!1===me?y:Array.isArray(me)?A(me):"function"==typeof me?me:J.keyFn,"function"==typeof X&&(J.read=X),W(J,he)}J.read&&J.merge&&(J.keyFn=J.keyFn||y)})},F.prototype.setRootTypename=function(b,P){void 0===P&&(P=b);var d="ROOT_"+b.toUpperCase(),O=this.rootTypenamesById[d];P!==O&&((0,p.kG)(!O||O===b,1),O&&delete this.rootIdsByTypename[O],this.rootIdsByTypename[P]=d,this.rootTypenamesById[d]=P)},F.prototype.addPossibleTypes=function(b){var P=this;this.usingPossibleTypes=!0,Object.keys(b).forEach(function(d){P.getSupertypeSet(d,!0),b[d].forEach(function(O){P.getSupertypeSet(O,!0).add(d);var v=O.match(s.$O);(!v||v[0]!==O)&&P.fuzzySubtypes.set(O,new RegExp(O))})})},F.prototype.getTypePolicy=function(b){var P=this;if(!s.RI.call(this.typePolicies,b)){var d=this.typePolicies[b]=Object.create(null);d.fields=Object.create(null);var O=this.supertypeMap.get(b);O&&O.size&&O.forEach(function(M){var W=P.getTypePolicy(M),V=W.fields,J=(0,t._T)(W,["fields"]);Object.assign(d,J),Object.assign(d.fields,V)})}var v=this.toBeAdded[b];return v&&v.length&&v.splice(0).forEach(function(M){P.updateTypePolicy(b,M)}),this.typePolicies[b]},F.prototype.getFieldPolicy=function(b,P,d){if(b){var O=this.getTypePolicy(b).fields;return O[P]||d&&(O[P]=Object.create(null))}},F.prototype.getSupertypeSet=function(b,P){var d=this.supertypeMap.get(b);return!d&&P&&this.supertypeMap.set(b,d=new Set),d},F.prototype.fragmentMatches=function(b,P,d,O){var v=this;if(!b.typeCondition)return!0;if(!P)return!1;var M=b.typeCondition.name.value;if(P===M)return!0;if(this.usingPossibleTypes&&this.supertypeMap.has(M))for(var W=this.getSupertypeSet(P,!0),V=[W],J=function(ie){var K=v.getSupertypeSet(ie,!1);K&&K.size&&V.indexOf(K)<0&&V.push(K)},ue=!(!d||!this.fuzzySubtypes.size),X=0;X<V.length;++X){var he=V[X];if(he.has(M))return W.has(M)||W.add(M),!0;he.forEach(J),ue&&X===V.length-1&&(0,s.RC)(b.selectionSet,d,O)&&(ue=!1,this.fuzzySubtypes.forEach(function(ie,K){var G=P.match(ie);G&&G[0]===P&&J(K)}))}return!1},F.prototype.hasKeyArgs=function(b,P){var d=this.getFieldPolicy(b,P,!1);return!(!d||!d.keyFn)},F.prototype.getStoreFieldName=function(b){var v,P=b.typename,d=b.fieldName,O=this.getFieldPolicy(P,d,!1),M=O&&O.keyFn;if(M&&P)for(var W={typename:P,fieldName:d,field:b.field||null,variables:b.variables},V=a(b);M;){var J=M(V,W);if(!Array.isArray(J)){v=J||d;break}M=A(J)}return void 0===v&&(v=b.field?(0,r.vf)(b.field,b.variables):(0,r.PT)(d,a(b))),!1===v?d:d===(0,s.E_)(v)?v:d+":"+v},F.prototype.readField=function(b,P){var d=b.from;if(d&&(b.field||b.fieldName)){if(void 0===b.typename){var v=P.store.getFieldValue(d,"__typename");v&&(b.typename=v)}var M=this.getStoreFieldName(b),W=(0,s.E_)(M),V=P.store.getFieldValue(d,M),J=this.getFieldPolicy(b.typename,W,!1),ue=J&&J.read;if(ue){var me=_(this,d,b,P,P.store.getStorage((0,r.Yk)(d)?d.__ref:d,M));return e.ab.withValue(this.cache,ue,[V,me])}return V}},F.prototype.getMergeFunction=function(b,P,d){var O=this.getFieldPolicy(b,P,!1),v=O&&O.merge;return!v&&d&&(v=(O=this.getTypePolicy(d))&&O.merge),v},F.prototype.runMergeFunction=function(b,P,d,O,v){var M=d.field,W=d.typename,V=d.merge;return V===f?g(O.store.getFieldValue)(b,P):V===T?P:V(b,P,_(this,void 0,{typename:W,fieldName:M.name.value,field:M,variables:O.variables},O,v||Object.create(null)))},F}();function _(F,b,P,d,O){var v=F.getStoreFieldName(P),M=(0,s.E_)(v),W=P.variables||d.variables,V=d.store,J=V.getFieldValue,ue=V.toReference,me=V.canRead;return{args:a(P),field:P.field||null,fieldName:M,storeFieldName:v,variables:W,isReference:r.Yk,toReference:ue,storage:O,cache:F.cache,canRead:me,readField:function(X,he){var ie="string"==typeof X?{fieldName:X,from:he}:(0,t.pi)({},X);return void 0===ie.from&&(ie.from=b),void 0===ie.variables&&(ie.variables=W),F.readField(ie,d)},mergeObjects:g(J)}}function g(F){return function(P,d){if(Array.isArray(P)||Array.isArray(d))throw new p.ej(2);if(P&&"object"==typeof P&&d&&"object"==typeof d){var O=F(P,"__typename"),v=F(d,"__typename");return O&&v&&O!==v||!(0,s.j)(P)||!(0,s.j)(d)?d:(0,t.pi)((0,t.pi)({},P),d)}return d}}function A(F){return function(b,P){return b?P.fieldName+":"+JSON.stringify(Q(b,F,!1)):P.fieldName}}function L(F){var b=new w.Gl(n.m);return function(P,d){var O;if(d.selectionSet&&d.fragmentMap){var v=b.lookupArray([d.selectionSet,d.fragmentMap]);O=v.aliasMap||(v.aliasMap=j(d.selectionSet,d.fragmentMap))}var M=d.keyObject=Q(P,F,!0,O);return d.typename+":"+JSON.stringify(M)}}function j(F,b){var P=Object.create(null),d=new Set([F]);return d.forEach(function(O){O.selections.forEach(function(v){if((0,r.My)(v)){if(v.alias){var M=v.alias.value,W=v.name.value;W!==M&&((P.aliases||(P.aliases=Object.create(null)))[W]=M)}v.selectionSet&&((P.subsets||(P.subsets=Object.create(null)))[v.name.value]=j(v.selectionSet,b))}else{var ue=(0,i.hi)(v,b);ue&&d.add(ue.selectionSet)}})}),P}function Q(F,b,P,d){var v,O=Object.create(null);return b.forEach(function(M){if(Array.isArray(M)){if("string"==typeof v){var W=d&&d.subsets;O[v]=Q(F[v],M,P,W&&W[v])}}else{var J=d&&d.aliases,ue=J&&J[M]||M;s.RI.call(F,ue)?O[v=M]=F[ue]:((0,p.kG)(!P,3),v=void 0)}}),O}},97983:(ae,I,l)=>{"use strict";l.d(I,{QS:()=>e,_v:()=>s,ab:()=>p,li:()=>i});var t=l(95355),p=new(l(83753).g7),r=new WeakMap;function n(u){var c=r.get(u);return c||r.set(u,c={vars:new Set,dep:(0,t.dP)()}),c}function i(u){n(u).vars.forEach(function(c){return c.forgetCache(u)})}function s(u){n(u).vars.forEach(function(c){return c.attachCache(u)})}function e(u){var c=new Set,y=new Set,f=function(x){if(arguments.length>0){if(u!==x){u=x,c.forEach(function(A){n(A).dep.dirty(f),function a(u){u.broadcastWatches&&u.broadcastWatches()}(A)});var _=Array.from(y);y.clear(),_.forEach(function(A){return A(u)})}}else{var g=p.getValue();g&&(T(g),n(g).dep(f))}return u};f.onNextChange=function(x){return y.add(x),function(){y.delete(x)}};var T=f.attachCache=function(x){return c.add(x),n(x).vars.add(f),f};return f.forgetCache=function(x){return c.delete(x)},f}},14367:()=>{},94308:(ae,I,l)=>{"use strict";l.d(I,{f:()=>Y,J:()=>re});var t=l(97378),w=l(76456),p=l(24925),r=l(22072),n=l(57303),s=l(19154),e=l(87788),a=l(30688);function u(k){return k.errors&&k.errors.length>0||!1}var c=l(92573),y=l(15401),f=l(12578),T=l(45e3),x=l(13216),_=l.n(x),g=l(14423),A=l(77325);function L(k){return k&&"function"==typeof k.then}var j=function(k){function C(N){var q=k.call(this,function(Z){return q.addObserver(Z),function(){return q.removeObserver(Z)}})||this;return q.observers=new Set,q.addCount=0,q.promise=new Promise(function(Z,fe){q.resolve=Z,q.reject=fe}),q.handlers={next:function(Z){null!==q.sub&&(q.latest=["next",Z],(0,g.p)(q.observers,"next",Z))},error:function(Z){var fe=q.sub;null!==fe&&(fe&&Promise.resolve().then(function(){return fe.unsubscribe()}),q.sub=null,q.latest=["error",Z],q.reject(Z),(0,g.p)(q.observers,"error",Z))},complete:function(){if(null!==q.sub){var Z=q.sources.shift();Z?L(Z)?Z.then(function(fe){return q.sub=fe.subscribe(q.handlers)}):q.sub=Z.subscribe(q.handlers):(q.sub=null,q.latest&&"next"===q.latest[0]?q.resolve(q.latest[1]):q.resolve(),(0,g.p)(q.observers,"complete"))}}},q.cancel=function(Z){q.reject(Z),q.sources=[],q.handlers.complete()},q.promise.catch(function(Z){}),"function"==typeof N&&(N=[new(_())(N)]),L(N)?N.then(function(Z){return q.start(Z)},q.handlers.error):q.start(N),q}return(0,t.ZT)(C,k),C.prototype.start=function(N){void 0===this.sub&&(this.sources=Array.from(N),this.handlers.complete())},C.prototype.deliverLastMessage=function(N){if(this.latest){var q=this.latest[0],Z=N[q];Z&&Z.call(N,this.latest[1]),null===this.sub&&"next"===q&&N.complete&&N.complete()}},C.prototype.addObserver=function(N){this.observers.has(N)||(this.deliverLastMessage(N),this.observers.add(N),++this.addCount)},C.prototype.removeObserver=function(N,q){this.observers.delete(N)&&--this.addCount<1&&!q&&this.handlers.error(new Error("Observable cancelled prematurely"))},C.prototype.cleanup=function(N){var q=this,Z=!1,fe=function(){Z||(Z=!0,q.observers.delete(ve),N())},ve={next:fe,error:fe,complete:fe},Se=this.addCount;this.addObserver(ve),this.addCount=Se},C}(_());function Q(k,C,N){return new(_())(function(q){var Z=q.next,fe=q.error,ve=q.complete,Se=0,be=!1,Pe={then:function(U){return new Promise(function(m){return m(U())})}};function De(U,m){return U?function(R){++Se;var D=function(){return U(R)};Pe=Pe.then(D,D).then(function(te){--Se,Z&&Z.call(q,te),be&&ke.complete()},function(te){throw--Se,te}).catch(function(te){fe&&fe.call(q,te)})}:function(R){return m&&m.call(q,R)}}var ke={next:De(C,Z),error:De(N,fe),complete:function(){be=!0,Se||ve&&ve.call(q)}},ne=k.subscribe(ke);return function(){return ne.unsubscribe()}})}(0,A.D)(j);var F=l(81687),b=l(4193),P=l(46046),d=l(11194),O=l(58856),v=l(4789),M=l(53019),W=l(97983),V=function(){function k(C){var q=C.client,Z=C.resolvers,fe=C.fragmentMatcher;this.cache=C.cache,q&&(this.client=q),Z&&this.addResolvers(Z),fe&&this.setFragmentMatcher(fe)}return k.prototype.addResolvers=function(C){var N=this;this.resolvers=this.resolvers||{},Array.isArray(C)?C.forEach(function(q){N.resolvers=(0,O.Ee)(N.resolvers,q)}):this.resolvers=(0,O.Ee)(this.resolvers,C)},k.prototype.setResolvers=function(C){this.resolvers={},this.addResolvers(C)},k.prototype.getResolvers=function(){return this.resolvers||{}},k.prototype.runResolvers=function(C){var N=C.document,q=C.remoteResult,Z=C.context,fe=C.variables,ve=C.onlyRunForcedResolvers,Se=void 0!==ve&&ve;return(0,t.mG)(this,void 0,void 0,function(){return(0,t.Jh)(this,function(be){return N?[2,this.resolveDocument(N,q.data,Z,fe,this.fragmentMatcher,Se).then(function(Pe){return(0,t.pi)((0,t.pi)({},q),{data:Pe.result})})]:[2,q]})})},k.prototype.setFragmentMatcher=function(C){this.fragmentMatcher=C},k.prototype.getFragmentMatcher=function(){return this.fragmentMatcher},k.prototype.clientQuery=function(C){return(0,T.FS)(["client"],C)&&this.resolvers?C:null},k.prototype.serverQuery=function(C){return(0,f.ob)(C)},k.prototype.prepareContext=function(C){var N=this.cache;return(0,t.pi)((0,t.pi)({},C),{cache:N,getCacheKey:function(q){return N.identify(q)}})},k.prototype.addExportedVariables=function(C,N,q){return void 0===N&&(N={}),void 0===q&&(q={}),(0,t.mG)(this,void 0,void 0,function(){return(0,t.Jh)(this,function(Z){return C?[2,this.resolveDocument(C,this.buildRootValueFromCache(C,N)||{},this.prepareContext(q),N).then(function(fe){return(0,t.pi)((0,t.pi)({},N),fe.exportedVariables)})]:[2,(0,t.pi)({},N)]})})},k.prototype.shouldForceResolvers=function(C){var N=!1;return(0,d.Vn)(C,{Directive:{enter:function(q){if("client"===q.name.value&&q.arguments&&(N=q.arguments.some(function(Z){return"always"===Z.name.value&&"BooleanValue"===Z.value.kind&&!0===Z.value.value})))return d.$_}}}),N},k.prototype.buildRootValueFromCache=function(C,N){return this.cache.diff({query:(0,f.aL)(C),variables:N,returnPartialData:!0,optimistic:!1}).result},k.prototype.resolveDocument=function(C,N,q,Z,fe,ve){return void 0===q&&(q={}),void 0===Z&&(Z={}),void 0===fe&&(fe=function(){return!0}),void 0===ve&&(ve=!1),(0,t.mG)(this,void 0,void 0,function(){var Se,be,Pe,De,ke,ne,U,m,R;return(0,t.Jh)(this,function(D){return Se=(0,y.p$)(C),be=(0,y.kU)(C),Pe=(0,v.F)(be),ke=(De=Se.operation)?De.charAt(0).toUpperCase()+De.slice(1):"Query",U=(ne=this).cache,m=ne.client,R={fragmentMap:Pe,context:(0,t.pi)((0,t.pi)({},q),{cache:U,client:m}),variables:Z,fragmentMatcher:fe,defaultOperationType:ke,exportedVariables:{},onlyRunForcedResolvers:ve},[2,this.resolveSelectionSet(Se.selectionSet,N,R).then(function(te){return{result:te,exportedVariables:R.exportedVariables}})]})})},k.prototype.resolveSelectionSet=function(C,N,q){return(0,t.mG)(this,void 0,void 0,function(){var Z,fe,ve,Se,Pe=this;return(0,t.Jh)(this,function(De){return Z=q.fragmentMap,fe=q.context,ve=q.variables,Se=[N],[2,Promise.all(C.selections.map(function(ke){return(0,t.mG)(Pe,void 0,void 0,function(){var ne;return(0,t.Jh)(this,function(m){return(0,T.LZ)(ke,ve)?(0,M.My)(ke)?[2,this.resolveField(ke,N,q).then(function(R){var D;typeof R<"u"&&Se.push(((D={})[(0,M.u2)(ke)]=R,D))})]:((0,M.Ao)(ke)?ne=ke:(0,w.kG)(ne=Z[ke.name.value],11),ne&&ne.typeCondition&&q.fragmentMatcher(N,ne.typeCondition.name.value,fe)?[2,this.resolveSelectionSet(ne.selectionSet,N,q).then(function(R){Se.push(R)})]:[2]):[2]})})})).then(function(){return(0,O.bw)(Se)})]})})},k.prototype.resolveField=function(C,N,q){return(0,t.mG)(this,void 0,void 0,function(){var Z,fe,ve,Se,be,Pe,De,ke,ne,U=this;return(0,t.Jh)(this,function(m){return Z=q.variables,fe=C.name.value,ve=(0,M.u2)(C),Se=fe!==ve,be=N[ve]||N[fe],Pe=Promise.resolve(be),(!q.onlyRunForcedResolvers||this.shouldForceResolvers(C))&&(De=N.__typename||q.defaultOperationType,(ke=this.resolvers&&this.resolvers[De])&&(ne=ke[Se?fe:ve])&&(Pe=Promise.resolve(W.ab.withValue(this.cache,ne,[N,(0,M.NC)(C,Z),q.context,{field:C,fragmentMap:q.fragmentMap}])))),[2,Pe.then(function(R){return void 0===R&&(R=be),C.directives&&C.directives.forEach(function(D){"export"===D.name.value&&D.arguments&&D.arguments.forEach(function(te){"as"===te.name.value&&"StringValue"===te.value.kind&&(q.exportedVariables[te.value.value]=R)})}),C.selectionSet&&null!=R?Array.isArray(R)?U.resolveSubSelectedArray(C,R,q):C.selectionSet?U.resolveSelectionSet(C.selectionSet,R,q):void 0:R})]})})},k.prototype.resolveSubSelectedArray=function(C,N,q){var Z=this;return Promise.all(N.map(function(fe){return null===fe?null:Array.isArray(fe)?Z.resolveSubSelectedArray(C,fe,q):C.selectionSet?Z.resolveSelectionSet(C.selectionSet,fe,q):void 0}))},k}(),J=new(a.m?WeakMap:Map);function ue(k,C){var N=k[C];"function"==typeof N&&(k[C]=function(){return J.set(k,(J.get(k)+1)%1e15),N.apply(this,arguments)})}function me(k){k.notifyTimeout&&(clearTimeout(k.notifyTimeout),k.notifyTimeout=void 0)}var X=function(){function k(C){this.cache=C,this.listeners=new Set,this.document=null,this.lastRequestId=1,this.subscriptions=new Set,this.stopped=!1,this.dirty=!1,this.diff=null,this.observableQuery=null,J.has(C)||(J.set(C,0),ue(C,"evict"),ue(C,"modify"),ue(C,"reset"))}return k.prototype.init=function(C){var N=C.networkStatus||P.I.loading;return this.variables&&this.networkStatus!==P.I.loading&&!(0,e.D)(this.variables,C.variables)&&(N=P.I.setVariables),(0,e.D)(C.variables,this.variables)||(this.diff=null),Object.assign(this,{document:C.document,variables:C.variables,networkError:null,graphQLErrors:this.graphQLErrors||[],networkStatus:N}),C.observableQuery&&this.setObservableQuery(C.observableQuery),C.lastRequestId&&(this.lastRequestId=C.lastRequestId),this},k.prototype.reset=function(){me(this),this.diff=null,this.dirty=!1},k.prototype.getDiff=function(C){return void 0===C&&(C=this.variables),this.diff&&(0,e.D)(C,this.variables)?this.diff:(this.updateWatch(this.variables=C),this.diff=this.cache.diff({query:this.document,variables:C,returnPartialData:!0,optimistic:!0}))},k.prototype.setDiff=function(C){var N=this,q=this.diff;this.diff=C,!this.dirty&&(C&&C.result)!==(q&&q.result)&&(this.dirty=!0,this.notifyTimeout||(this.notifyTimeout=setTimeout(function(){return N.notify()},0)))},k.prototype.setObservableQuery=function(C){var N=this;C!==this.observableQuery&&(this.oqListener&&this.listeners.delete(this.oqListener),this.observableQuery=C,C?(C.queryInfo=this,this.listeners.add(this.oqListener=function(){N.getDiff().fromOptimisticTransaction?C.observe():C.reobserve()})):delete this.oqListener)},k.prototype.notify=function(){var C=this;me(this),this.shouldNotify()&&this.listeners.forEach(function(N){return N(C)}),this.dirty=!1},k.prototype.shouldNotify=function(){if(!this.dirty||!this.listeners.size)return!1;if((0,P.O)(this.networkStatus)&&this.observableQuery){var C=this.observableQuery.options.fetchPolicy;if("cache-only"!==C&&"cache-and-network"!==C)return!1}return!0},k.prototype.stop=function(){if(!this.stopped){this.stopped=!0,this.reset(),this.cancel(),delete this.cancel,this.subscriptions.forEach(function(N){return N.unsubscribe()});var C=this.observableQuery;C&&C.stopPolling()}},k.prototype.cancel=function(){},k.prototype.updateWatch=function(C){var N=this;void 0===C&&(C=this.variables);var q=this.observableQuery;q&&"no-cache"===q.options.fetchPolicy||(!this.lastWatch||this.lastWatch.query!==this.document||!(0,e.D)(C,this.lastWatch.variables))&&(this.cancel(),this.cancel=this.cache.watch(this.lastWatch={query:this.document,variables:C,optimistic:!0,callback:function(Z){return N.setDiff(Z)}}))},k.prototype.shouldWrite=function(C,N){var q=this.lastWrite;return!(q&&q.dmCount===J.get(this.cache)&&(0,e.D)(N,q.variables)&&(0,e.D)(C.data,q.result.data))},k.prototype.markResult=function(C,N,q){var Z=this;this.graphQLErrors=(0,c.O)(C.errors)?C.errors:[],this.reset(),"no-cache"===N.fetchPolicy?this.diff={result:C.data,complete:!0}:!this.stopped&&q&&(he(C,N.errorPolicy)?this.cache.performTransaction(function(fe){if(Z.shouldWrite(C,N.variables))fe.writeQuery({query:Z.document,data:C.data,variables:N.variables}),Z.lastWrite={result:C,variables:N.variables,dmCount:J.get(Z.cache)};else if(Z.diff&&Z.diff.complete)return void(C.data=Z.diff.result);var ve=fe.diff({query:Z.document,variables:N.variables,returnPartialData:!0,optimistic:!0});Z.stopped||Z.updateWatch(N.variables),Z.diff=ve,ve.complete&&(C.data=ve.result)}):this.lastWrite=void 0)},k.prototype.markReady=function(){return this.networkError=null,this.networkStatus=P.I.ready},k.prototype.markError=function(C){return this.networkStatus=P.I.error,this.lastWrite=void 0,this.reset(),C.graphQLErrors&&(this.graphQLErrors=C.graphQLErrors),C.networkError&&(this.networkError=C.networkError),C},k}();function he(k,C){void 0===C&&(C="none");var N="ignore"===C||"all"===C,q=!u(k);return!q&&N&&k.data&&(q=!0),q}var ie=Object.prototype.hasOwnProperty,K=function(){function k(C){var N=C.cache,q=C.link,Z=C.queryDeduplication,fe=void 0!==Z&&Z,ve=C.onBroadcast,Se=C.ssrMode,be=void 0!==Se&&Se,Pe=C.clientAwareness,De=void 0===Pe?{}:Pe,ke=C.localState,ne=C.assumeImmutableResults;this.clientAwareness={},this.queries=new Map,this.fetchCancelFns=new Map,this.transformCache=new(a.m?WeakMap:Map),this.queryIdCounter=1,this.requestIdCounter=1,this.mutationIdCounter=1,this.inFlightLinkObservables=new Map,this.cache=N,this.link=q,this.queryDeduplication=fe,this.clientAwareness=De,this.localState=ke||new V({cache:N}),this.ssrMode=be,this.assumeImmutableResults=!!ne,(this.onBroadcast=ve)&&(this.mutationStore=Object.create(null))}return k.prototype.stop=function(){var C=this;this.queries.forEach(function(N,q){C.stopQueryNoBroadcast(q)}),this.cancelPendingFetches(new w.ej(12))},k.prototype.cancelPendingFetches=function(C){this.fetchCancelFns.forEach(function(N){return N(C)}),this.fetchCancelFns.clear()},k.prototype.mutate=function(C){var N=C.mutation,q=C.variables,Z=C.optimisticResponse,fe=C.updateQueries,ve=C.refetchQueries,Se=void 0===ve?[]:ve,be=C.awaitRefetchQueries,Pe=void 0!==be&&be,De=C.update,ke=C.errorPolicy,ne=void 0===ke?"none":ke,U=C.fetchPolicy,m=C.context,R=void 0===m?{}:m;return(0,t.mG)(this,void 0,void 0,function(){var D,te,pe;return(0,t.Jh)(this,function(xe){switch(xe.label){case 0:return(0,w.kG)(N,13),(0,w.kG)(!U||"no-cache"===U,14),D=this.generateMutationId(),N=this.transform(N).document,q=this.getVariables(N,q),this.transform(N).hasClientExports?[4,this.localState.addExportedVariables(N,q,R)]:[3,2];case 1:q=xe.sent(),xe.label=2;case 2:return te=this.mutationStore&&(this.mutationStore[D]={mutation:N,variables:q,loading:!0,error:null}),Z&&this.markMutationOptimistic(Z,{mutationId:D,document:N,variables:q,errorPolicy:ne,updateQueries:fe,update:De}),this.broadcastQueries(),pe=this,[2,new Promise(function(Ce,ee){var le,de;pe.getObservableFromLink(N,(0,t.pi)((0,t.pi)({},R),{optimisticResponse:Z}),q,!1).subscribe({next:function(Oe){if(u(Oe)&&"none"===ne)de=new F.c({graphQLErrors:Oe.errors});else{if(te&&(te.loading=!1,te.error=null),"no-cache"!==U)try{pe.markMutationResult({mutationId:D,result:Oe,document:N,variables:q,errorPolicy:ne,updateQueries:fe,update:De})}catch(Re){return void(de=new F.c({networkError:Re}))}le=Oe}},error:function(Oe){te&&(te.loading=!1,te.error=Oe),Z&&pe.cache.removeOptimistic(D),pe.broadcastQueries(),ee(new F.c({networkError:Oe}))},complete:function(){if(de&&te&&(te.loading=!1,te.error=de),Z&&pe.cache.removeOptimistic(D),pe.broadcastQueries(),de)ee(de);else{"function"==typeof Se&&(Se=Se(le));var Oe=[];(0,c.O)(Se)&&Se.forEach(function(Re){if("string"==typeof Re)pe.queries.forEach(function(qe){var ze=qe.observableQuery;ze&&ze.hasObservers()&&ze.queryName===Re&&Oe.push(ze.refetch())});else{var Ue={query:Re.query,variables:Re.variables,fetchPolicy:"network-only"};Re.context&&(Ue.context=Re.context),Oe.push(pe.query(Ue))}}),Promise.all(Pe?Oe:[]).then(function(){"ignore"===ne&&le&&u(le)&&delete le.errors,Ce(le)},ee)}}})})]}})})},k.prototype.markMutationResult=function(C,N){var q=this;if(void 0===N&&(N=this.cache),he(C.result,C.errorPolicy)){var Z=[{result:C.result.data,dataId:"ROOT_MUTATION",query:C.document,variables:C.variables}],fe=C.updateQueries;fe&&this.queries.forEach(function(ve,Se){var be=ve.observableQuery,Pe=be&&be.queryName;if(Pe&&ie.call(fe,Pe)){var De=fe[Pe],ke=q.queries.get(Se),ne=ke.document,U=ke.variables,m=N.diff({query:ne,variables:U,returnPartialData:!0,optimistic:!1}),R=m.result;if(m.complete&&R){var te=De(R,{mutationResult:C.result,queryName:ne&&(0,y.rY)(ne)||void 0,queryVariables:U});te&&Z.push({result:te,dataId:"ROOT_QUERY",query:ne,variables:U})}}}),N.performTransaction(function(ve){Z.forEach(function(be){return ve.write(be)});var Se=C.update;Se&&Se(ve,C.result)},null)}},k.prototype.markMutationOptimistic=function(C,N){var q=this,Z="function"==typeof C?C(N.variables):C;return this.cache.recordOptimisticTransaction(function(fe){try{q.markMutationResult((0,t.pi)((0,t.pi)({},N),{result:{data:Z}}),fe)}catch{}},N.mutationId)},k.prototype.fetchQuery=function(C,N,q){return this.fetchQueryObservable(C,N,q).promise},k.prototype.getQueryStore=function(){var C=Object.create(null);return this.queries.forEach(function(N,q){C[q]={variables:N.variables,networkStatus:N.networkStatus,networkError:N.networkError,graphQLErrors:N.graphQLErrors}}),C},k.prototype.resetErrors=function(C){var N=this.queries.get(C);N&&(N.networkError=void 0,N.graphQLErrors=[])},k.prototype.transform=function(C){var N=this.transformCache;if(!N.has(C)){var q=this.cache.transformDocument(C),Z=(0,f.Fo)(this.cache.transformForLink(q)),fe=this.localState.clientQuery(q),ve=Z&&this.localState.serverQuery(Z),Se={document:q,hasClientExports:(0,T.mj)(q),hasForcedResolvers:this.localState.shouldForceResolvers(q),clientQuery:fe,serverQuery:ve,defaultVars:(0,y.O4)((0,y.$H)(q))},be=function(Pe){Pe&&!N.has(Pe)&&N.set(Pe,Se)};be(C),be(q),be(fe),be(ve)}return N.get(C)},k.prototype.getVariables=function(C,N){return(0,t.pi)((0,t.pi)({},this.transform(C).defaultVars),N)},k.prototype.watchQuery=function(C){typeof(C=(0,t.pi)((0,t.pi)({},C),{variables:this.getVariables(C.query,C.variables)})).notifyOnNetworkStatusChange>"u"&&(C.notifyOnNetworkStatusChange=!1);var N=new X(this.cache),q=new b.u({queryManager:this,queryInfo:N,options:C});return this.queries.set(q.queryId,N),N.init({document:C.query,observableQuery:q,variables:C.variables}),q},k.prototype.query=function(C){var N=this;(0,w.kG)(C.query,15),(0,w.kG)("Document"===C.query.kind,16),(0,w.kG)(!C.returnPartialData,17),(0,w.kG)(!C.pollInterval,18);var q=this.generateQueryId();return this.fetchQuery(q,C).finally(function(){return N.stopQuery(q)})},k.prototype.generateQueryId=function(){return String(this.queryIdCounter++)},k.prototype.generateRequestId=function(){return this.requestIdCounter++},k.prototype.generateMutationId=function(){return String(this.mutationIdCounter++)},k.prototype.stopQueryInStore=function(C){this.stopQueryInStoreNoBroadcast(C),this.broadcastQueries()},k.prototype.stopQueryInStoreNoBroadcast=function(C){var N=this.queries.get(C);N&&N.stop()},k.prototype.clearStore=function(){return this.cancelPendingFetches(new w.ej(19)),this.queries.forEach(function(C){C.observableQuery?C.networkStatus=P.I.loading:C.stop()}),this.mutationStore&&(this.mutationStore=Object.create(null)),this.cache.reset()},k.prototype.resetStore=function(){var C=this;return this.clearStore().then(function(){return C.reFetchObservableQueries()})},k.prototype.reFetchObservableQueries=function(C){var N=this;void 0===C&&(C=!1);var q=[];return this.queries.forEach(function(Z,fe){var ve=Z.observableQuery;if(ve&&ve.hasObservers()){var Se=ve.options.fetchPolicy;ve.resetLastResults(),"cache-only"!==Se&&(C||"standby"!==Se)&&q.push(ve.refetch()),N.getQuery(fe).setDiff(null)}}),this.broadcastQueries(),Promise.all(q)},k.prototype.setObservableQuery=function(C){this.getQuery(C.queryId).setObservableQuery(C)},k.prototype.startGraphQLSubscription=function(C){var N=this,q=C.query,Z=C.fetchPolicy,fe=C.errorPolicy,ve=C.variables,Se=C.context,be=void 0===Se?{}:Se;q=this.transform(q).document,ve=this.getVariables(q,ve);var Pe=function(ke){return N.getObservableFromLink(q,be,ke,!1).map(function(ne){if("no-cache"!==Z&&(he(ne,fe)&&N.cache.write({query:q,result:ne.data,dataId:"ROOT_SUBSCRIPTION",variables:ke}),N.broadcastQueries()),u(ne))throw new F.c({graphQLErrors:ne.errors});return ne})};if(this.transform(q).hasClientExports){var De=this.localState.addExportedVariables(q,ve,be).then(Pe);return new(_())(function(ke){var ne=null;return De.then(function(U){return ne=U.subscribe(ke)},ke.error),function(){return ne&&ne.unsubscribe()}})}return Pe(ve)},k.prototype.stopQuery=function(C){this.stopQueryNoBroadcast(C),this.broadcastQueries()},k.prototype.stopQueryNoBroadcast=function(C){this.stopQueryInStoreNoBroadcast(C),this.removeQuery(C)},k.prototype.removeQuery=function(C){this.fetchCancelFns.delete(C),this.getQuery(C).stop(),this.queries.delete(C)},k.prototype.broadcastQueries=function(){this.onBroadcast&&this.onBroadcast(),this.queries.forEach(function(C){return C.notify()})},k.prototype.getLocalState=function(){return this.localState},k.prototype.getObservableFromLink=function(C,N,q,Z){var ve,fe=this;void 0===Z&&(Z=null!==(ve=N?.queryDeduplication)&&void 0!==ve?ve:this.queryDeduplication);var Se,be=this.transform(C).serverQuery;if(be){var De=this.inFlightLinkObservables,ke=this.link,ne={query:be,variables:q,operationName:(0,y.rY)(be)||void 0,context:this.prepareContext((0,t.pi)((0,t.pi)({},N),{forceFetch:!Z}))};if(N=ne.context,Z){var U=De.get(be)||new Map;De.set(be,U);var m=JSON.stringify(q);if(!(Se=U.get(m))){var R=new j([(0,r.h)(ke,ne)]);U.set(m,Se=R),R.cleanup(function(){U.delete(m)&&U.size<1&&De.delete(be)})}}else Se=new j([(0,r.h)(ke,ne)])}else Se=new j([_().of({data:{}})]),N=this.prepareContext(N);var D=this.transform(C).clientQuery;return D&&(Se=Q(Se,function(te){return fe.localState.runResolvers({document:D,remoteResult:te,context:N,variables:q})})),Se},k.prototype.getResultsFromLink=function(C,N,q){var Z=C.lastRequestId=this.generateRequestId();return Q(this.getObservableFromLink(C.document,q.context,q.variables),function(fe){var ve=(0,c.O)(fe.errors);if(Z>=C.lastRequestId){if(ve&&"none"===q.errorPolicy)throw C.markError(new F.c({graphQLErrors:fe.errors}));C.markResult(fe,q,N),C.markReady()}var Se={data:fe.data,loading:!1,networkStatus:C.networkStatus||P.I.ready};return ve&&"ignore"!==q.errorPolicy&&(Se.errors=fe.errors),Se},function(fe){var ve=(0,F.M)(fe)?fe:new F.c({networkError:fe});throw Z>=C.lastRequestId&&C.markError(ve),ve})},k.prototype.fetchQueryObservable=function(C,N,q){var Z=this;void 0===q&&(q=P.I.loading);var fe=this.transform(N.query).document,ve=this.getVariables(fe,N.variables),Se=this.getQuery(C),be=Se.networkStatus,Pe=N.fetchPolicy,De=void 0===Pe?"cache-first":Pe,ke=N.errorPolicy,ne=void 0===ke?"none":ke,U=N.returnPartialData,m=void 0!==U&&U,R=N.notifyOnNetworkStatusChange,D=void 0!==R&&R,te=N.context,pe=void 0===te?{}:te;("cache-first"===De||"cache-and-network"===De||"network-only"===De||"no-cache"===De)&&D&&"number"==typeof be&&be!==q&&(0,P.O)(q)&&("cache-first"!==De&&(De="cache-and-network"),m=!0);var Ce=Object.assign({},N,{query:fe,variables:ve,fetchPolicy:De,errorPolicy:ne,returnPartialData:m,notifyOnNetworkStatusChange:D,context:pe}),ee=function(de){return Ce.variables=de,Z.fetchQueryByPolicy(Se,Ce,q)};this.fetchCancelFns.set(C,function(de){Promise.resolve().then(function(){return le.cancel(de)})});var le=new j(this.transform(Ce.query).hasClientExports?this.localState.addExportedVariables(Ce.query,Ce.variables,Ce.context).then(ee):ee(Ce.variables));return le.cleanup(function(){Z.fetchCancelFns.delete(C);var de=N.nextFetchPolicy;de&&(N.nextFetchPolicy=void 0,N.fetchPolicy="function"==typeof de?de.call(N,N.fetchPolicy||"cache-first"):de)}),le},k.prototype.fetchQueryByPolicy=function(C,N,q){var Z=this,fe=N.query,ve=N.variables,Se=N.fetchPolicy,be=N.errorPolicy,Pe=N.returnPartialData,De=N.context;C.init({document:fe,variables:ve,networkStatus:q});var ke=function(){return C.getDiff(ve)},ne=function(R,D){void 0===D&&(D=C.networkStatus||P.I.loading);var te=R.result,pe=function(xe){return _().of((0,t.pi)({data:xe,loading:(0,P.O)(D),networkStatus:D},R.complete?null:{partial:!0}))};return Z.transform(fe).hasForcedResolvers?Z.localState.runResolvers({document:fe,remoteResult:{data:te},context:De,variables:ve,onlyRunForcedResolvers:!0}).then(function(xe){return pe(xe.data)}):pe(te)},U=function(R){return Z.getResultsFromLink(C,R,{variables:ve,context:De,fetchPolicy:Se,errorPolicy:be})};switch(Se){default:case"cache-first":return(m=ke()).complete?[ne(m,C.markReady())]:Pe?[ne(m),U(!0)]:[U(!0)];case"cache-and-network":var m;return(m=ke()).complete||Pe?[ne(m),U(!0)]:[U(!0)];case"cache-only":return[ne(ke(),C.markReady())];case"network-only":return[U(!0)];case"no-cache":return[U(!1)];case"standby":return[]}},k.prototype.getQuery=function(C){return C&&!this.queries.has(C)&&this.queries.set(C,new X(this.cache)),this.queries.get(C)},k.prototype.prepareContext=function(C){void 0===C&&(C={});var N=this.localState.prepareContext(C);return(0,t.pi)((0,t.pi)({},N),{clientAwareness:this.clientAwareness})},k}();function re(k,C){return(0,n.o)(k,C,C.variables&&{variables:(0,t.pi)((0,t.pi)({},k.variables),C.variables)})}var Y=function(){function k(C){var N=this;this.defaultOptions={},this.resetStoreCallbacks=[],this.clearStoreCallbacks=[];var q=C.uri,ve=C.cache,Se=C.ssrMode,be=void 0!==Se&&Se,Pe=C.ssrForceFetchDelay,De=void 0===Pe?0:Pe,ke=C.connectToDevTools,ne=void 0===ke?"object"==typeof window&&!window.__APOLLO_CLIENT__&&!1:ke,U=C.queryDeduplication,m=void 0===U||U,R=C.defaultOptions,D=C.assumeImmutableResults,te=void 0!==D&&D,pe=C.resolvers,xe=C.typeDefs,Ce=C.fragmentMatcher,ee=C.name,le=C.version,de=C.link;if(de||(de=q?new s.u({uri:q,credentials:C.credentials,headers:C.headers}):p.i.empty()),!ve)throw new w.ej(9);this.link=de,this.cache=ve,this.disableNetworkFetches=be||De>0,this.queryDeduplication=m,this.defaultOptions=R||{},this.typeDefs=xe,De&&setTimeout(function(){return N.disableNetworkFetches=!1},De),this.watchQuery=this.watchQuery.bind(this),this.query=this.query.bind(this),this.mutate=this.mutate.bind(this),this.resetStore=this.resetStore.bind(this),this.reFetchObservableQueries=this.reFetchObservableQueries.bind(this),ne&&"object"==typeof window&&(window.__APOLLO_CLIENT__=this),this.version="3.3.20",this.localState=new V({cache:ve,client:this,resolvers:pe,fragmentMatcher:Ce}),this.queryManager=new K({cache:this.cache,link:this.link,queryDeduplication:m,ssrMode:be,clientAwareness:{name:ee,version:le},localState:this.localState,assumeImmutableResults:te,onBroadcast:ne?function(){N.devToolsHookCb&&N.devToolsHookCb({action:{},state:{queries:N.queryManager.getQueryStore(),mutations:N.queryManager.mutationStore||{}},dataWithOptimisticResults:N.cache.extract(!0)})}:void 0})}return k.prototype.stop=function(){this.queryManager.stop()},k.prototype.watchQuery=function(C){return this.defaultOptions.watchQuery&&(C=re(this.defaultOptions.watchQuery,C)),this.disableNetworkFetches&&("network-only"===C.fetchPolicy||"cache-and-network"===C.fetchPolicy)&&(C=(0,t.pi)((0,t.pi)({},C),{fetchPolicy:"cache-first"})),this.queryManager.watchQuery(C)},k.prototype.query=function(C){return this.defaultOptions.query&&(C=re(this.defaultOptions.query,C)),(0,w.kG)("cache-and-network"!==C.fetchPolicy,10),this.disableNetworkFetches&&"network-only"===C.fetchPolicy&&(C=(0,t.pi)((0,t.pi)({},C),{fetchPolicy:"cache-first"})),this.queryManager.query(C)},k.prototype.mutate=function(C){return this.defaultOptions.mutate&&(C=re(this.defaultOptions.mutate,C)),this.queryManager.mutate(C)},k.prototype.subscribe=function(C){return this.queryManager.startGraphQLSubscription(C)},k.prototype.readQuery=function(C,N){return void 0===N&&(N=!1),this.cache.readQuery(C,N)},k.prototype.readFragment=function(C,N){return void 0===N&&(N=!1),this.cache.readFragment(C,N)},k.prototype.writeQuery=function(C){this.cache.writeQuery(C),this.queryManager.broadcastQueries()},k.prototype.writeFragment=function(C){this.cache.writeFragment(C),this.queryManager.broadcastQueries()},k.prototype.__actionHookForDevTools=function(C){this.devToolsHookCb=C},k.prototype.__requestRaw=function(C){return(0,r.h)(this.link,C)},k.prototype.resetStore=function(){var C=this;return Promise.resolve().then(function(){return C.queryManager.clearStore()}).then(function(){return Promise.all(C.resetStoreCallbacks.map(function(N){return N()}))}).then(function(){return C.reFetchObservableQueries()})},k.prototype.clearStore=function(){var C=this;return Promise.resolve().then(function(){return C.queryManager.clearStore()}).then(function(){return Promise.all(C.clearStoreCallbacks.map(function(N){return N()}))})},k.prototype.onResetStore=function(C){var N=this;return this.resetStoreCallbacks.push(C),function(){N.resetStoreCallbacks=N.resetStoreCallbacks.filter(function(q){return q!==C})}},k.prototype.onClearStore=function(C){var N=this;return this.clearStoreCallbacks.push(C),function(){N.clearStoreCallbacks=N.clearStoreCallbacks.filter(function(q){return q!==C})}},k.prototype.reFetchObservableQueries=function(C){return this.queryManager.reFetchObservableQueries(C)},k.prototype.extract=function(C){return this.cache.extract(C)},k.prototype.restore=function(C){return this.cache.restore(C)},k.prototype.addResolvers=function(C){this.localState.addResolvers(C)},k.prototype.setResolvers=function(C){this.localState.setResolvers(C)},k.prototype.getResolvers=function(){return this.localState.getResolvers()},k.prototype.setLocalStateFragmentMatcher=function(C){this.localState.setFragmentMatcher(C)},k.prototype.setLink=function(C){this.link=this.queryManager.link=C},k}()},4193:(ae,I,l)=>{"use strict";l.d(I,{u:()=>g});var t=l(97378),w=l(76456),p=l(87788),r=l(46046),n=l(14423),i=l(15401),s=Object.prototype.toString;function e(L){return a(L)}function a(L,j){switch(s.call(L)){case"[object Array]":if((j=j||new Map).has(L))return j.get(L);var Q=L.slice(0);return j.set(L,Q),Q.forEach(function(b,P){Q[P]=a(b,j)}),Q;case"[object Object]":if((j=j||new Map).has(L))return j.get(L);var F=Object.create(Object.getPrototypeOf(L));return j.set(L,F),Object.keys(L).forEach(function(b){F[b]=a(L[b],j)}),F;default:return L}}var u=l(92573),c=l(13216),y=l.n(c),f=l(77325),T=l(57303),x=function(){function L(j,Q,F,b){this.observer=j,this.options=Q,this.fetch=F,this.shouldFetch=b}return L.prototype.reobserve=function(j,Q){j?this.updateOptions(j):this.updatePolling();var F=this.fetch(this.options,Q);return this.concast&&this.concast.removeObserver(this.observer,!0),F.addObserver(this.observer),(this.concast=F).promise},L.prototype.updateOptions=function(j){return Object.assign(this.options,(0,T.o)(j)),this.updatePolling(),this},L.prototype.stop=function(){this.concast&&(this.concast.removeObserver(this.observer),delete this.concast),this.pollingInfo&&(clearTimeout(this.pollingInfo.timeout),this.options.pollInterval=0,this.updatePolling())},L.prototype.updatePolling=function(){var j=this,F=this.pollingInfo,b=this.options.pollInterval;if(b){if((!F||F.interval!==b)&&((0,w.kG)(b,20),!1!==this.shouldFetch)){(F||(this.pollingInfo={})).interval=b;var d=function(){j.pollingInfo&&(j.shouldFetch&&j.shouldFetch()?j.reobserve({fetchPolicy:"network-only",nextFetchPolicy:j.options.fetchPolicy||"cache-first"},r.I.poll).then(O,O):O())},O=function(){var v=j.pollingInfo;v&&(clearTimeout(v.timeout),v.timeout=setTimeout(d,v.interval))};O()}}else F&&(clearTimeout(F.timeout),delete this.pollingInfo)},L}(),g=function(L){function j(Q){var F=Q.queryManager,b=Q.queryInfo,P=Q.options,d=L.call(this,function(v){return d.onSubscribe(v)})||this;d.observers=new Set,d.subscriptions=new Set,d.observer={next:function(v){(d.lastError||d.isDifferentFromLastResult(v))&&(d.updateLastResult(v),(0,n.p)(d.observers,"next",v))},error:function(v){d.updateLastResult((0,t.pi)((0,t.pi)({},d.lastResult),{error:v,errors:v.graphQLErrors,networkStatus:r.I.error,loading:!1})),(0,n.p)(d.observers,"error",d.lastError=v)}},d.isTornDown=!1,d.options=P,d.queryId=F.generateQueryId();var O=(0,i.$H)(P.query);return d.queryName=O&&O.name&&O.name.value,d.queryManager=F,d.queryInfo=b,d}return(0,t.ZT)(j,L),Object.defineProperty(j.prototype,"variables",{get:function(){return this.options.variables},enumerable:!1,configurable:!0}),j.prototype.result=function(){var Q=this;return new Promise(function(F,b){var P={next:function(O){F(O),Q.observers.delete(P),Q.observers.size||Q.queryManager.removeQuery(Q.queryId),setTimeout(function(){d.unsubscribe()},0)},error:b},d=Q.subscribe(P)})},j.prototype.getCurrentResult=function(Q){void 0===Q&&(Q=!0);var F=this.lastResult,b=this.queryInfo.networkStatus||F&&F.networkStatus||r.I.ready,P=(0,t.pi)((0,t.pi)({},F),{loading:(0,r.O)(b),networkStatus:b});if(this.isTornDown)return P;var d=this.options.fetchPolicy,O=void 0===d?"cache-first":d;if("no-cache"===O||"network-only"===O)delete P.partial;else if(!P.data||!this.queryManager.transform(this.options.query).hasForcedResolvers){var v=this.queryInfo.getDiff();P.data=v.complete||this.options.returnPartialData?v.result:void 0,v.complete?(P.networkStatus===r.I.loading&&("cache-first"===O||"cache-only"===O)&&(P.networkStatus=r.I.ready,P.loading=!1),delete P.partial):P.partial=!0}return Q&&this.updateLastResult(P),P},j.prototype.isDifferentFromLastResult=function(Q){return!(0,p.D)(this.lastResultSnapshot,Q)},j.prototype.getLastResult=function(){return this.lastResult},j.prototype.getLastError=function(){return this.lastError},j.prototype.resetLastResults=function(){delete this.lastResult,delete this.lastResultSnapshot,delete this.lastError,this.isTornDown=!1},j.prototype.resetQueryStoreErrors=function(){this.queryManager.resetErrors(this.queryId)},j.prototype.refetch=function(Q){var F={pollInterval:0},b=this.options.fetchPolicy;return"no-cache"!==b&&"cache-and-network"!==b&&(F.fetchPolicy="network-only",F.nextFetchPolicy=b||"cache-first"),Q&&!(0,p.D)(this.options.variables,Q)&&(F.variables=this.options.variables=(0,t.pi)((0,t.pi)({},this.options.variables),Q)),this.newReobserver(!1).reobserve(F,r.I.refetch)},j.prototype.fetchMore=function(Q){var F=this,b=(0,t.pi)((0,t.pi)({},Q.query?Q:(0,t.pi)((0,t.pi)((0,t.pi)({},this.options),Q),{variables:(0,t.pi)((0,t.pi)({},this.options.variables),Q.variables)})),{fetchPolicy:"no-cache"}),P=this.queryManager.generateQueryId();return b.notifyOnNetworkStatusChange&&(this.queryInfo.networkStatus=r.I.fetchMore,this.observe()),this.queryManager.fetchQuery(P,b,r.I.fetchMore).then(function(d){var O=d.data,v=Q.updateQuery;return v?F.updateQuery(function(M){return v(M,{fetchMoreResult:O,variables:b.variables})}):F.queryManager.cache.writeQuery({query:b.query,variables:b.variables,data:O}),d}).finally(function(){F.queryManager.stopQuery(P),F.reobserve()})},j.prototype.subscribeToMore=function(Q){var F=this,b=this.queryManager.startGraphQLSubscription({query:Q.document,variables:Q.variables,context:Q.context}).subscribe({next:function(P){var d=Q.updateQuery;d&&F.updateQuery(function(O,v){return d(O,{subscriptionData:P,variables:v.variables})})},error:function(P){Q.onError&&Q.onError(P)}});return this.subscriptions.add(b),function(){F.subscriptions.delete(b)&&b.unsubscribe()}},j.prototype.setOptions=function(Q){return this.reobserve(Q)},j.prototype.setVariables=function(Q){if((0,p.D)(this.variables,Q))return this.observers.size?this.result():Promise.resolve();if(this.options.variables=Q,!this.observers.size)return Promise.resolve();var F=this.options.fetchPolicy,b=void 0===F?"cache-first":F,P={fetchPolicy:b,variables:Q};return"cache-first"!==b&&"no-cache"!==b&&"network-only"!==b&&(P.fetchPolicy="cache-and-network",P.nextFetchPolicy=b),this.reobserve(P,r.I.setVariables)},j.prototype.updateQuery=function(Q){var F,b=this.queryManager,d=Q(b.cache.diff({query:this.options.query,variables:this.variables,previousResult:null===(F=this.lastResult)||void 0===F?void 0:F.data,returnPartialData:!0,optimistic:!1}).result,{variables:this.variables});d&&(b.cache.writeQuery({query:this.options.query,data:d,variables:this.variables}),b.broadcastQueries())},j.prototype.startPolling=function(Q){this.getReobserver().updateOptions({pollInterval:Q})},j.prototype.stopPolling=function(){this.reobserver&&this.reobserver.updateOptions({pollInterval:0})},j.prototype.updateLastResult=function(Q){var F=this.lastResult;return this.lastResult=Q,this.lastResultSnapshot=this.queryManager.assumeImmutableResults?Q:e(Q),(0,u.O)(Q.errors)||delete this.lastError,F},j.prototype.onSubscribe=function(Q){var F=this;if(Q===this.observer)return function(){};try{var b=Q._subscription._observer;b&&!b.error&&(b.error=A)}catch{}var P=!this.observers.size;return this.observers.add(Q),this.lastError?Q.error&&Q.error(this.lastError):this.lastResult&&Q.next&&Q.next(this.lastResult),P&&this.reobserve().catch(function(d){}),function(){F.observers.delete(Q)&&!F.observers.size&&F.tearDownQuery()}},j.prototype.getReobserver=function(){return this.reobserver||(this.reobserver=this.newReobserver(!0))},j.prototype.newReobserver=function(Q){var F=this,P=this.queryManager,d=this.queryId;return P.setObservableQuery(this),new x(this.observer,Q?this.options:(0,t.pi)({},this.options),function(O,v){return P.setObservableQuery(F),P.fetchQueryObservable(d,O,v)},!P.ssrMode&&function(){return!(0,r.O)(F.queryInfo.networkStatus)})},j.prototype.reobserve=function(Q,F){return this.isTornDown=!1,this.getReobserver().reobserve(Q,F)},j.prototype.observe=function(){this.observer.next(this.getCurrentResult(!1))},j.prototype.hasObservers=function(){return this.observers.size>0},j.prototype.tearDownQuery=function(){this.isTornDown||(this.reobserver&&(this.reobserver.stop(),delete this.reobserver),this.subscriptions.forEach(function(Q){return Q.unsubscribe()}),this.subscriptions.clear(),this.queryManager.stopQuery(this.queryId),this.observers.clear(),this.isTornDown=!0)},j}(y());function A(L){}(0,f.D)(g)},10653:(ae,I,l)=>{"use strict";l.r(I),l.d(I,{ApolloCache:()=>e.R,ApolloClient:()=>t.f,ApolloError:()=>i.c,Cache:()=>s.C,HttpLink:()=>g.uG,InMemoryCache:()=>a.h,MissingFieldError:()=>u.y,NetworkStatus:()=>p.I,Observable:()=>b.a,ObservableQuery:()=>w.u,checkFetcher:()=>g.U2,createHttpLink:()=>g.LQ,createSignalIfSupported:()=>g.$g,defaultDataIdFromObject:()=>c.u,disableExperimentalFragmentVariables:()=>O.J9,disableFragmentWarnings:()=>O._t,enableExperimentalFragmentVariables:()=>O.wO,fallbackHttpConfig:()=>g.SC,fromError:()=>A.Q,fromPromise:()=>j.p,gql:()=>O.ZP,isApolloError:()=>i.M,isReference:()=>P.Yk,makeReference:()=>P.kQ,makeVar:()=>y.QS,mergeOptions:()=>t.J,parseAndCheckHttpResponse:()=>g.dO,resetCaches:()=>O.HW,rewriteURIForGET:()=>g.Hg,selectHttpOptionsAndBody:()=>g.E4,selectURI:()=>g.rg,serializeFetchParameter:()=>g.gE,setLogVerbosity:()=>d.U6,throwServerError:()=>Q.P,toPromise:()=>L.V});var t=l(94308),w=l(4193),p=l(46046),r=l(61241),_={};for(const v in r)["default","ApolloClient","mergeOptions","ObservableQuery","NetworkStatus","isApolloError","ApolloError","Cache","ApolloCache","InMemoryCache","MissingFieldError","defaultDataIdFromObject","makeVar","fromError","toPromise","fromPromise","throwServerError","Observable","isReference","makeReference","setLogVerbosity","gql","resetCaches","disableFragmentWarnings","enableExperimentalFragmentVariables","disableExperimentalFragmentVariables"].indexOf(v)<0&&(_[v]=()=>r[v]);l.d(I,_);var i=l(81687),s=l(61828),e=l(81993),a=l(56881),u=l(20377),c=l(5770),y=l(97983),f=l(14367);_={};for(const v in f)["default","ApolloClient","mergeOptions","ObservableQuery","NetworkStatus","isApolloError","ApolloError","Cache","ApolloCache","InMemoryCache","MissingFieldError","defaultDataIdFromObject","makeVar","fromError","toPromise","fromPromise","throwServerError","Observable","isReference","makeReference","setLogVerbosity","gql","resetCaches","disableFragmentWarnings","enableExperimentalFragmentVariables","disableExperimentalFragmentVariables"].indexOf(v)<0&&(_[v]=()=>f[v]);l.d(I,_);var x=l(16576);_={};for(const v in x)["default","ApolloClient","mergeOptions","ObservableQuery","NetworkStatus","isApolloError","ApolloError","Cache","ApolloCache","InMemoryCache","MissingFieldError","defaultDataIdFromObject","makeVar","fromError","toPromise","fromPromise","throwServerError","Observable","isReference","makeReference","setLogVerbosity","gql","resetCaches","disableFragmentWarnings","enableExperimentalFragmentVariables","disableExperimentalFragmentVariables"].indexOf(v)<0&&(_[v]=()=>x[v]);l.d(I,_);var g=l(61168),A=l(691),L=l(18451),j=l(92986),Q=l(23883),F=l(13216),b=l.n(F),P=l(53019),d=l(76456),O=l(29248);(0,d.U6)("log")},46046:(ae,I,l)=>{"use strict";l.d(I,{I:()=>t,O:()=>w});var t=function(p){return p[p.loading=1]="loading",p[p.setVariables=2]="setVariables",p[p.fetchMore=3]="fetchMore",p[p.refetch=4]="refetch",p[p.poll=6]="poll",p[p.ready=7]="ready",p[p.error=8]="error",p}(t||{});function w(p){return!!p&&p<7}},61241:()=>{},81687:(ae,I,l)=>{"use strict";l.d(I,{M:()=>p,c:()=>n});var t=l(97378),w=l(92573);function p(i){return i.hasOwnProperty("graphQLErrors")}var n=function(i){function s(e){var a=e.graphQLErrors,u=e.networkError,c=e.errorMessage,y=e.extraInfo,f=i.call(this,c)||this;return f.graphQLErrors=a||[],f.networkError=u||null,f.message=c||function(i){var s="";return(0,w.O)(i.graphQLErrors)&&i.graphQLErrors.forEach(function(e){s+=(e?e.message:"Error message not found.")+"\n"}),i.networkError&&(s+=i.networkError.message+"\n"),s=s.replace(/\n$/,"")}(f),f.extraInfo=y,f.__proto__=s.prototype,f}return(0,t.ZT)(s,i),s}(Error)},92955:(ae,I,l)=>{"use strict";l.r(I);var t=l(10653),p={};for(const r in t)"default"!==r&&(p[r]=()=>t[r]);l.d(I,p);var w=l(29198);p={};for(const r in w)["default","ApolloCache","ApolloClient","ApolloError","Cache","HttpLink","InMemoryCache","MissingFieldError","NetworkStatus","Observable","ObservableQuery","checkFetcher","createHttpLink","createSignalIfSupported","defaultDataIdFromObject","disableExperimentalFragmentVariables","disableFragmentWarnings","enableExperimentalFragmentVariables","fallbackHttpConfig","fromError","fromPromise","gql","isApolloError","isReference","makeReference","makeVar","mergeOptions","parseAndCheckHttpResponse","resetCaches","rewriteURIForGET","selectHttpOptionsAndBody","selectURI","serializeFetchParameter","setLogVerbosity","throwServerError","toPromise"].indexOf(r)<0&&(p[r]=()=>w[r]);l.d(I,p)},74699:(ae,I,l)=>{"use strict";l.r(I),l.d(I,{setContext:()=>n});var t=l(97378),w=l(24925),p=l(13216),r=l.n(p);function n(i){return new w.i(function(s,e){var a=(0,t._T)(s,[]);return new(r())(function(u){var c;return Promise.resolve(a).then(function(y){return i(y,s.getContext())}).then(s.setContext).then(function(){c=e(s).subscribe({next:u.next.bind(u),error:u.error.bind(u),complete:u.complete.bind(u)})}).catch(u.error.bind(u)),function(){c&&c.unsubscribe()}})})}},24925:(ae,I,l)=>{"use strict";l.d(I,{i:()=>f});var T,t=l(97378),w=l(76456),p=l(13216),r=l.n(p),i=l(15401);function a(T,x){return x?x(T):r().of()}function u(T){return"function"==typeof T?new f(T):T}function c(T){return T.request.length<=1}T=Error,(0,t.ZT)(function x(_,g){var A=T.call(this,_)||this;return A.link=g,A},T);var f=function(){function T(x){x&&(this.request=x)}return T.empty=function(){return new T(function(){return r().of()})},T.from=function(x){return 0===x.length?T.empty():x.map(u).reduce(function(_,g){return _.concat(g)})},T.split=function(x,_,g){var A=u(_),L=u(g||new T(a));return c(A)&&c(L)?new T(function(j){return x(j)?A.request(j)||r().of():L.request(j)||r().of()}):new T(function(j,Q){return x(j)?A.request(j,Q)||r().of():L.request(j,Q)||r().of()})},T.execute=function(x,_){return x.request(function n(T,x){var _=(0,t.pi)({},T);return Object.defineProperty(x,"setContext",{enumerable:!1,value:function(L){_=(0,t.pi)((0,t.pi)({},_),"function"==typeof L?L(_):L)}}),Object.defineProperty(x,"getContext",{enumerable:!1,value:function(){return(0,t.pi)({},_)}}),x}(_.context,function s(T){var x={variables:T.variables||{},extensions:T.extensions||{},operationName:T.operationName,query:T.query};return x.operationName||(x.operationName="string"!=typeof x.query?(0,i.rY)(x.query)||void 0:""),x}(function e(T){for(var x=["query","operationName","variables","extensions","context"],_=0,g=Object.keys(T);_<g.length;_++)if(x.indexOf(g[_])<0)throw new w.ej(26);return T}(_))))||r().of()},T.concat=function(x,_){var g=u(x);if(c(g))return g;var A=u(_);return c(A)?new T(function(L){return g.request(L,function(j){return A.request(j)||r().of()})||r().of()}):new T(function(L,j){return g.request(L,function(Q){return A.request(Q,j)||r().of()})||r().of()})},T.prototype.split=function(x,_,g){return this.concat(T.split(x,_,g||new T(a)))},T.prototype.concat=function(x){return T.concat(this,x)},T.prototype.request=function(x,_){throw new w.ej(21)},T.prototype.onError=function(x,_){if(_&&_.error)return _.error(x),!1;throw x},T.prototype.setOnError=function(x){return this.onError=x,this},T}()},14692:(ae,I,l)=>{"use strict";l.d(I,{z:()=>w});var w=l(24925).i.concat},27930:(ae,I,l)=>{"use strict";l.d(I,{c:()=>w});var w=l(24925).i.empty},22072:(ae,I,l)=>{"use strict";l.d(I,{h:()=>w});var w=l(24925).i.execute},94778:(ae,I,l)=>{"use strict";l.d(I,{D:()=>w});var w=l(24925).i.from},16576:(ae,I,l)=>{"use strict";l.r(I),l.d(I,{ApolloLink:()=>i.i,concat:()=>r.z,empty:()=>t.c,execute:()=>n.h,from:()=>w.D,split:()=>p.V});var t=l(27930),w=l(94778),p=l(8117),r=l(14692),n=l(22072),i=l(24925),s=l(43399),a={};for(const u in s)["default","empty","from","split","concat","execute","ApolloLink"].indexOf(u)<0&&(a[u]=()=>s[u]);l.d(I,a)},8117:(ae,I,l)=>{"use strict";l.d(I,{V:()=>w});var w=l(24925).i.split},43399:()=>{},19154:(ae,I,l)=>{"use strict";l.d(I,{u:()=>r});var t=l(97378),w=l(24925),p=l(41309),r=function(n){function i(s){void 0===s&&(s={});var e=n.call(this,(0,p.L)(s).request)||this;return e.options=s,e}return(0,t.ZT)(i,n),i}(w.i)},51286:(ae,I,l)=>{"use strict";l.d(I,{U:()=>w});var t=l(76456),w=function(p){if(!p&&typeof fetch>"u")throw new t.ej(22)}},41309:(ae,I,l)=>{"use strict";l.d(I,{L:()=>T});var t=l(97378),w=l(11194),p=l(24925),r=l(13216),n=l.n(r),i=l(75646),s=l(3281),e=l(68503),a=l(51286),u=l(77949),c=l(72198),y=l(99398),f=l(691),T=function(x){void 0===x&&(x={});var _=x.uri,g=void 0===_?"/graphql":_,A=x.fetch,L=x.includeExtensions,j=x.useGETForQueries,Q=x.includeUnusedVariables,F=void 0!==Q&&Q,b=(0,t._T)(x,["uri","fetch","includeExtensions","useGETForQueries","includeUnusedVariables"]);(0,a.U)(A),A||(A=fetch);var P={http:{includeExtensions:L},options:b.fetchOptions,credentials:b.credentials,headers:b.headers};return new p.i(function(d){var O=(0,s.r)(d,g),v=d.getContext(),M={};if(v.clientAwareness){var W=v.clientAwareness,V=W.name,J=W.version;V&&(M["apollographql-client-name"]=V),J&&(M["apollographql-client-version"]=J)}var G,ue=(0,t.pi)((0,t.pi)({},M),v.headers),X=(0,u.E)(d,u.S,P,{http:v.http,options:v.fetchOptions,credentials:v.credentials,headers:ue}),he=X.options,ie=X.body;if(ie.variables&&!F){var K=new Set(Object.keys(ie.variables));(0,w.Vn)(d.query,{Variable:function(fe,ve,Se){Se&&"VariableDefinition"!==Se.kind&&K.delete(fe.name.value)}}),K.size&&(ie.variables=(0,t.pi)({},ie.variables),K.forEach(function(fe){delete ie.variables[fe]}))}if(!he.signal){var re=(0,c.$)();(G=re.controller)&&(he.signal=re.signal)}if(j&&!d.query.definitions.some(function(fe){return"OperationDefinition"===fe.kind&&"mutation"===fe.operation})&&(he.method="GET"),"GET"===he.method){var N=(0,y.H)(O,ie),q=N.newURI,Z=N.parseError;if(Z)return(0,f.Q)(Z);O=q}else try{he.body=(0,i.g)(ie,"Payload")}catch(fe){return(0,f.Q)(fe)}return new(n())(function(fe){return A(O,he).then(function(ve){return d.setContext({response:ve}),ve}).then((0,e.d)(d)).then(function(ve){return fe.next(ve),fe.complete(),ve}).catch(function(ve){"AbortError"!==ve.name&&(ve.result&&ve.result.errors&&ve.result.data&&fe.next(ve.result),fe.error(ve))}),function(){G&&G.abort()}})})}},72198:(ae,I,l)=>{"use strict";l.d(I,{$:()=>t});var t=function(){if(typeof AbortController>"u")return{controller:!1,signal:!1};var w=new AbortController;return{controller:w,signal:w.signal}}},61168:(ae,I,l)=>{"use strict";l.d(I,{$g:()=>n.$,E4:()=>p.E,Hg:()=>a.H,LQ:()=>s.L,SC:()=>p.S,U2:()=>r.U,dO:()=>t.d,gE:()=>w.g,rg:()=>i.r,uG:()=>e.u});var t=l(68503),w=l(75646),p=l(77949),r=l(51286),n=l(72198),i=l(3281),s=l(41309),e=l(19154),a=l(99398)},68503:(ae,I,l)=>{"use strict";l.d(I,{d:()=>p});var t=l(23883),w=Object.prototype.hasOwnProperty;function p(r){return function(n){return n.text().then(function(i){try{return JSON.parse(i)}catch(e){var s=e;throw s.name="ServerParseError",s.response=n,s.statusCode=n.status,s.bodyText=i,s}}).then(function(i){return n.status>=300&&(0,t.P)(n,i,"Response not successful: Received status code "+n.status),!Array.isArray(i)&&!w.call(i,"data")&&!w.call(i,"errors")&&(0,t.P)(n,i,"Server response was missing for query '"+(Array.isArray(r)?r.map(function(s){return s.operationName}):r.operationName)+"'."),i})}}},99398:(ae,I,l)=>{"use strict";l.d(I,{H:()=>w});var t=l(75646);function w(p,r){var n=[],i=function(T,x){n.push(T+"="+encodeURIComponent(x))};if("query"in r&&i("query",r.query),r.operationName&&i("operationName",r.operationName),r.variables){var s=void 0;try{s=(0,t.g)(r.variables,"Variables map")}catch(T){return{parseError:T}}i("variables",s)}if(r.extensions){var e=void 0;try{e=(0,t.g)(r.extensions,"Extensions map")}catch(T){return{parseError:T}}i("extensions",e)}var a="",u=p,c=p.indexOf("#");-1!==c&&(a=p.substr(c),u=p.substr(0,c));var y=-1===u.indexOf("?")?"?":"&";return{newURI:u+y+n.join("&")+a}}},77949:(ae,I,l)=>{"use strict";l.d(I,{E:()=>s,S:()=>i});var t=l(97378),w=l(28133),i={http:{includeQuery:!0,includeExtensions:!1},headers:{accept:"*/*","content-type":"application/json"},options:{method:"POST"}},s=function(e,a){for(var u=[],c=2;c<arguments.length;c++)u[c-2]=arguments[c];var y=(0,t.pi)((0,t.pi)({},a.options),{headers:a.headers,credentials:a.credentials}),f=a.http||{};u.forEach(function(L){y=(0,t.pi)((0,t.pi)((0,t.pi)({},y),L.options),{headers:(0,t.pi)((0,t.pi)({},y.headers),L.headers)}),L.credentials&&(y.credentials=L.credentials),f=(0,t.pi)((0,t.pi)({},f),L.http)});var g=e.query,A={operationName:e.operationName,variables:e.variables};return f.includeExtensions&&(A.extensions=e.extensions),f.includeQuery&&(A.query=(0,w.print)(g)),{options:y,body:A}}},3281:(ae,I,l)=>{"use strict";l.d(I,{r:()=>t});var t=function(w,p){return w.getContext().uri||("function"==typeof p?p(w):p||"/graphql")}},75646:(ae,I,l)=>{"use strict";l.d(I,{g:()=>w});var t=l(76456),w=function(p,r){var n;try{n=JSON.stringify(p)}catch(s){var i=new t.ej(23);throw i.parseError=s,i}return n}},691:(ae,I,l)=>{"use strict";l.d(I,{Q:()=>p});var t=l(13216),w=l.n(t);function p(r){return new(w())(function(n){n.error(r)})}},92986:(ae,I,l)=>{"use strict";l.d(I,{p:()=>p});var t=l(13216),w=l.n(t);function p(r){return new(w())(function(n){r.then(function(i){n.next(i),n.complete()}).catch(n.error.bind(n))})}},23883:(ae,I,l)=>{"use strict";l.d(I,{P:()=>t});var t=function(w,p,r){var n=new Error(r);throw n.name="ServerError",n.response=w,n.statusCode=w.status,n.result=p,n}},18451:(ae,I,l)=>{"use strict";function w(p){var r=!1;return new Promise(function(n,i){p.subscribe({next:function(s){r||(r=!0,n(s))},error:i})})}l.d(I,{V:()=>w}),l(76456)},53152:(ae,I,l)=>{"use strict";var t=l(58668),w=60103,p=60106;I.Fragment=60107,I.StrictMode=60108,I.Profiler=60114;var r=60109,n=60110,i=60112;I.Suspense=60113;var s=60115,e=60116;if("function"==typeof Symbol&&Symbol.for){var a=Symbol.for;w=a("react.element"),p=a("react.portal"),I.Fragment=a("react.fragment"),I.StrictMode=a("react.strict_mode"),I.Profiler=a("react.profiler"),r=a("react.provider"),n=a("react.context"),i=a("react.forward_ref"),I.Suspense=a("react.suspense"),s=a("react.memo"),e=a("react.lazy")}var u="function"==typeof Symbol&&Symbol.iterator;function y(X){for(var he="https://reactjs.org/docs/error-decoder.html?invariant="+X,ie=1;ie<arguments.length;ie++)he+="&args[]="+encodeURIComponent(arguments[ie]);return"Minified React error #"+X+"; visit "+he+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var f={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},T={};function x(X,he,ie){this.props=X,this.context=he,this.refs=T,this.updater=ie||f}function _(){}function g(X,he,ie){this.props=X,this.context=he,this.refs=T,this.updater=ie||f}x.prototype.isReactComponent={},x.prototype.setState=function(X,he){if("object"!=typeof X&&"function"!=typeof X&&null!=X)throw Error(y(85));this.updater.enqueueSetState(this,X,he,"setState")},x.prototype.forceUpdate=function(X){this.updater.enqueueForceUpdate(this,X,"forceUpdate")},_.prototype=x.prototype;var A=g.prototype=new _;A.constructor=g,t(A,x.prototype),A.isPureReactComponent=!0;var L={current:null},j=Object.prototype.hasOwnProperty,Q={key:!0,ref:!0,__self:!0,__source:!0};function F(X,he,ie){var K,G={},re=null,Y=null;if(null!=he)for(K in void 0!==he.ref&&(Y=he.ref),void 0!==he.key&&(re=""+he.key),he)j.call(he,K)&&!Q.hasOwnProperty(K)&&(G[K]=he[K]);var k=arguments.length-2;if(1===k)G.children=ie;else if(1<k){for(var C=Array(k),N=0;N<k;N++)C[N]=arguments[N+2];G.children=C}if(X&&X.defaultProps)for(K in k=X.defaultProps)void 0===G[K]&&(G[K]=k[K]);return{$$typeof:w,type:X,key:re,ref:Y,props:G,_owner:L.current}}function P(X){return"object"==typeof X&&null!==X&&X.$$typeof===w}var O=/\/+/g;function v(X,he){return"object"==typeof X&&null!==X&&null!=X.key?function d(X){var he={"=":"=0",":":"=2"};return"$"+X.replace(/[=:]/g,function(ie){return he[ie]})}(""+X.key):he.toString(36)}function M(X,he,ie,K,G){var re=typeof X;("undefined"===re||"boolean"===re)&&(X=null);var Y=!1;if(null===X)Y=!0;else switch(re){case"string":case"number":Y=!0;break;case"object":switch(X.$$typeof){case w:case p:Y=!0}}if(Y)return G=G(Y=X),X=""===K?"."+v(Y,0):K,Array.isArray(G)?(ie="",null!=X&&(ie=X.replace(O,"$&/")+"/"),M(G,he,ie,"",function(N){return N})):null!=G&&(P(G)&&(G=function b(X,he){return{$$typeof:w,type:X.type,key:he,ref:X.ref,props:X.props,_owner:X._owner}}(G,ie+(!G.key||Y&&Y.key===G.key?"":(""+G.key).replace(O,"$&/")+"/")+X)),he.push(G)),1;if(Y=0,K=""===K?".":K+":",Array.isArray(X))for(var k=0;k<X.length;k++){var C=K+v(re=X[k],k);Y+=M(re,he,ie,C,G)}else if(C=function c(X){return null===X||"object"!=typeof X?null:"function"==typeof(X=u&&X[u]||X["@@iterator"])?X:null}(X),"function"==typeof C)for(X=C.call(X),k=0;!(re=X.next()).done;)Y+=M(re=re.value,he,ie,C=K+v(re,k++),G);else if("object"===re)throw he=""+X,Error(y(31,"[object Object]"===he?"object with keys {"+Object.keys(X).join(", ")+"}":he));return Y}function W(X,he,ie){if(null==X)return X;var K=[],G=0;return M(X,K,"","",function(re){return he.call(ie,re,G++)}),K}function V(X){if(-1===X._status){var he=X._result;he=he(),X._status=0,X._result=he,he.then(function(ie){0===X._status&&(ie=ie.default,X._status=1,X._result=ie)},function(ie){0===X._status&&(X._status=2,X._result=ie)})}if(1===X._status)return X._result;throw X._result}var J={current:null};function ue(){var X=J.current;if(null===X)throw Error(y(321));return X}var me={ReactCurrentDispatcher:J,ReactCurrentBatchConfig:{transition:0},ReactCurrentOwner:L,IsSomeRendererActing:{current:!1},assign:t};I.Children={map:W,forEach:function(X,he,ie){W(X,function(){he.apply(this,arguments)},ie)},count:function(X){var he=0;return W(X,function(){he++}),he},toArray:function(X){return W(X,function(he){return he})||[]},only:function(X){if(!P(X))throw Error(y(143));return X}},I.Component=x,I.PureComponent=g,I.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=me,I.cloneElement=function(X,he,ie){if(null==X)throw Error(y(267,X));var K=t({},X.props),G=X.key,re=X.ref,Y=X._owner;if(null!=he){if(void 0!==he.ref&&(re=he.ref,Y=L.current),void 0!==he.key&&(G=""+he.key),X.type&&X.type.defaultProps)var k=X.type.defaultProps;for(C in he)j.call(he,C)&&!Q.hasOwnProperty(C)&&(K[C]=void 0===he[C]&&void 0!==k?k[C]:he[C])}var C=arguments.length-2;if(1===C)K.children=ie;else if(1<C){k=Array(C);for(var N=0;N<C;N++)k[N]=arguments[N+2];K.children=k}return{$$typeof:w,type:X.type,key:G,ref:re,props:K,_owner:Y}},I.createContext=function(X,he){return void 0===he&&(he=null),(X={$$typeof:n,_calculateChangedBits:he,_currentValue:X,_currentValue2:X,_threadCount:0,Provider:null,Consumer:null}).Provider={$$typeof:r,_context:X},X.Consumer=X},I.createElement=F,I.createFactory=function(X){var he=F.bind(null,X);return he.type=X,he},I.createRef=function(){return{current:null}},I.forwardRef=function(X){return{$$typeof:i,render:X}},I.isValidElement=P,I.lazy=function(X){return{$$typeof:e,_payload:{_status:-1,_result:X},_init:V}},I.memo=function(X,he){return{$$typeof:s,type:X,compare:void 0===he?null:he}},I.useCallback=function(X,he){return ue().useCallback(X,he)},I.useContext=function(X,he){return ue().useContext(X,he)},I.useDebugValue=function(){},I.useEffect=function(X,he){return ue().useEffect(X,he)},I.useImperativeHandle=function(X,he,ie){return ue().useImperativeHandle(X,he,ie)},I.useLayoutEffect=function(X,he){return ue().useLayoutEffect(X,he)},I.useMemo=function(X,he){return ue().useMemo(X,he)},I.useReducer=function(X,he,ie){return ue().useReducer(X,he,ie)},I.useRef=function(X){return ue().useRef(X)},I.useState=function(X){return ue().useState(X)},I.version="17.0.2"},35497:(ae,I,l)=>{"use strict";ae.exports=l(53152)},76456:(ae,I,l)=>{"use strict";l.d(I,{ej:()=>J,kG:()=>ue,U6:()=>ie});var t=function(Y,k){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(C,N){C.__proto__=N}||function(C,N){for(var q in N)Object.prototype.hasOwnProperty.call(N,q)&&(C[q]=N[q])})(Y,k)},M="Invariant Violation",W=Object.setPrototypeOf,V=void 0===W?function(Y,k){return Y.__proto__=k,Y}:W,J=function(Y){function k(C){void 0===C&&(C=M);var N=Y.call(this,"number"==typeof C?M+": "+C+" (see https://github.com/apollographql/invariant-packages)":C)||this;return N.framesToPop=1,N.name=M,V(N,k.prototype),N}return function w(Y,k){if("function"!=typeof k&&null!==k)throw new TypeError("Class extends value "+String(k)+" is not a constructor or null");function C(){this.constructor=Y}t(Y,k),Y.prototype=null===k?Object.create(k):(C.prototype=k.prototype,new C)}(k,Y),k}(Error);function ue(Y,k){if(!Y)throw new J(k)}var Y,me=["log","warn","error","silent"],X=me.indexOf("log");function he(Y){return function(){if(me.indexOf(Y)>=X)return console[Y].apply(console,arguments)}}function ie(Y){var k=me[X];return X=Math.max(0,me.indexOf(Y)),k}(Y=ue||(ue={})).log=he("log"),Y.warn=he("warn"),Y.error=he("error"),"object"==typeof process&&"object"==typeof process.env&&process},7416:(ae,I,l)=>{"use strict";l.d(I,{a:()=>r});var t=l(35497),w=l(76456),p=l(48677),r=function(n){var i=(0,p.K)();return t.createElement(i.Consumer,null,function(s){return(0,w.kG)(s&&s.client,27),n.children(s.client)})}},48677:(ae,I,l)=>{"use strict";l.d(I,{K:()=>r,Z:()=>r});var t=l(35497),p=new(l(30688).m?WeakMap:Map);function r(){var n=p.get(t.createContext);return n||((n=t.createContext({})).displayName="ApolloContext",p.set(t.createContext,n)),n}},68918:(ae,I,l)=>{"use strict";l.d(I,{e:()=>r});var t=l(35497),w=l(76456),p=l(48677),r=function(n){var i=n.client,s=n.children,e=(0,p.K)();return t.createElement(e.Consumer,null,function(a){return void 0===a&&(a={}),i&&a.client!==i&&(a=Object.assign({},a,{client:i})),(0,w.kG)(a.client,28),t.createElement(e.Provider,{value:a},s)})}},43396:(ae,I,l)=>{"use strict";l.d(I,{xJ:()=>r,td:()=>T,Db:()=>g,aM:()=>A,lY:()=>Q,mU:()=>j});var t=l(35497),w=l(76456),p=l(48677);function r(){var F=t.useContext((0,p.K)()).client;return(0,w.kG)(F,33),F}var n=l(97378),i=l(87788),s=l(81687),e=l(46046),a=l(69451),u=function(){function F(b,P){this.isMounted=!1,this.previousOptions={},this.context={},this.options={},this.options=b||{},this.context=P||{}}return F.prototype.getOptions=function(){return this.options},F.prototype.setOptions=function(b,P){void 0===P&&(P=!1),P&&!(0,i.D)(this.options,b)&&(this.previousOptions=this.options),this.options=b},F.prototype.unmount=function(){this.isMounted=!1},F.prototype.refreshClient=function(){var b=this.options&&this.options.client||this.context&&this.context.client;(0,w.kG)(!!b,29);var P=!1;return b!==this.client&&(P=!0,this.client=b,this.cleanup()),{client:this.client,isNew:P}},F.prototype.verifyDocumentType=function(b,P){var d=(0,a.E2)(b);(0,a.mw)(P),(0,a.mw)(d.type),(0,w.kG)(d.type===P,30)},F}(),c=function(F){function b(P){var v=P.onNewData,M=F.call(this,P.options,P.context)||this;return M.runLazy=!1,M.previous=Object.create(null),M.runLazyQuery=function(W){M.cleanup(),M.runLazy=!0,M.lazyOptions=W,M.onNewData()},M.getQueryResult=function(){var W=M.observableQueryFields(),V=M.getOptions();if(V.skip)W=(0,n.pi)((0,n.pi)({},W),{data:void 0,error:void 0,loading:!1,networkStatus:e.I.ready,called:!0});else if(M.currentObservable){var J=M.currentObservable.getCurrentResult(),ue=J.data,me=J.loading,X=J.partial,he=J.networkStatus,ie=J.errors,K=J.error;if(ie&&ie.length>0&&(K=new s.c({graphQLErrors:ie})),W=(0,n.pi)((0,n.pi)({},W),{data:ue,loading:me,networkStatus:he,error:K,called:!0}),!me)if(K)Object.assign(W,{data:(M.currentObservable.getLastResult()||{}).data});else{var G=M.currentObservable.options.fetchPolicy;if(V.partialRefetch&&X&&(!ue||0===Object.keys(ue).length)&&"cache-only"!==G)return Object.assign(W,{loading:!0,networkStatus:e.I.loading}),W.refetch(),W}}W.client=M.client,M.setOptions(V,!0);var Y=M.previous.result;return M.previous.loading=Y&&Y.loading||!1,W.previousData=Y&&(Y.data||Y.previousData),M.previous.result=W,M.currentObservable&&M.currentObservable.resetQueryStoreErrors(),W},M.obsRefetch=function(W){var V;return null===(V=M.currentObservable)||void 0===V?void 0:V.refetch(W)},M.obsFetchMore=function(W){return M.currentObservable.fetchMore(W)},M.obsUpdateQuery=function(W){return M.currentObservable.updateQuery(W)},M.obsStartPolling=function(W){var V;null===(V=M.currentObservable)||void 0===V||V.startPolling(W)},M.obsStopPolling=function(){var W;null===(W=M.currentObservable)||void 0===W||W.stopPolling()},M.obsSubscribeToMore=function(W){return M.currentObservable.subscribeToMore(W)},M.onNewData=v,M}return(0,n.ZT)(b,F),b.prototype.execute=function(){this.refreshClient();var P=this.getOptions(),d=P.skip,O=P.query;return(d||O!==this.previous.query)&&(this.removeQuerySubscription(),this.removeObservable(!d),this.previous.query=O),this.updateObservableQuery(),this.isMounted&&this.startQuerySubscription(),this.getExecuteSsrResult()||this.getExecuteResult()},b.prototype.executeLazy=function(){return this.runLazy?[this.runLazyQuery,this.execute()]:[this.runLazyQuery,{loading:!1,networkStatus:e.I.ready,called:!1,data:void 0}]},b.prototype.fetchData=function(){var P=this,d=this.getOptions();return!d.skip&&!1!==d.ssr&&new Promise(function(O){return P.startQuerySubscription(O)})},b.prototype.afterExecute=function(P){var d=(void 0===P?{}:P).lazy,O=void 0!==d&&d;return this.isMounted=!0,(!O||this.runLazy)&&this.handleErrorOrCompleted(),this.previousOptions=this.getOptions(),this.unmount.bind(this)},b.prototype.cleanup=function(){this.removeQuerySubscription(),this.removeObservable(!0),delete this.previous.result},b.prototype.getOptions=function(){var P=F.prototype.getOptions.call(this);return this.lazyOptions&&(P.variables=(0,n.pi)((0,n.pi)({},P.variables),this.lazyOptions.variables),P.context=(0,n.pi)((0,n.pi)({},P.context),this.lazyOptions.context)),this.runLazy&&delete P.skip,P},b.prototype.ssrInitiated=function(){return this.context&&this.context.renderPromises},b.prototype.getExecuteResult=function(){var P=this.getQueryResult();return this.startQuerySubscription(),P},b.prototype.getExecuteSsrResult=function(){var P=this.getOptions(),O=P.skip,v=!1===P.ssr,M=this.refreshClient().client.disableNetworkFetches,W=(0,n.pi)({loading:!0,networkStatus:e.I.loading,called:!0,data:void 0,stale:!1,client:this.client},this.observableQueryFields());if(v&&(this.ssrInitiated()||M))return this.previous.result=W,W;if(this.ssrInitiated()){var V=this.getQueryResult()||W;return V.loading&&!O&&this.context.renderPromises.addQueryPromise(this,function(){return null}),V}},b.prototype.prepareObservableQueryOptions=function(){var P=this.getOptions();this.verifyDocumentType(P.query,a.n_.Query);var d=P.displayName||"Query";return this.ssrInitiated()&&("network-only"===P.fetchPolicy||"cache-and-network"===P.fetchPolicy)&&(P.fetchPolicy="cache-first"),(0,n.pi)((0,n.pi)({},P),{displayName:d,context:P.context})},b.prototype.initializeObservableQuery=function(){if(this.ssrInitiated()&&(this.currentObservable=this.context.renderPromises.getSSRObservable(this.getOptions())),!this.currentObservable){var P=this.prepareObservableQueryOptions();this.previous.observableQueryOptions=(0,n.pi)((0,n.pi)({},P),{children:null}),this.currentObservable=this.refreshClient().client.watchQuery((0,n.pi)({},P)),this.ssrInitiated()&&this.context.renderPromises.registerSSRObservable(this.currentObservable,P)}},b.prototype.updateObservableQuery=function(){if(this.currentObservable){if(!this.getOptions().skip){var P=(0,n.pi)((0,n.pi)({},this.prepareObservableQueryOptions()),{children:null});(0,i.D)(P,this.previous.observableQueryOptions)||(this.previous.observableQueryOptions=P,this.currentObservable.setOptions(P).catch(function(){}))}}else this.initializeObservableQuery()},b.prototype.startQuerySubscription=function(P){var d=this;void 0===P&&(P=this.onNewData),!this.currentSubscription&&!this.getOptions().skip&&(this.currentSubscription=this.currentObservable.subscribe({next:function(O){var V=d.previous.result;V&&V.loading===O.loading&&V.networkStatus===O.networkStatus&&(0,i.D)(V.data,O.data)||P()},error:function(O){if(d.resubscribeToQuery(),!O.hasOwnProperty("graphQLErrors"))throw O;var v=d.previous.result;(v&&v.loading||!(0,i.D)(O,d.previous.error))&&(d.previous.error=O,P())}}))},b.prototype.resubscribeToQuery=function(){this.removeQuerySubscription();var P=this.currentObservable;if(P){var d=P.getLastError(),O=P.getLastResult();P.resetLastResults(),this.startQuerySubscription(),Object.assign(P,{lastError:d,lastResult:O})}},b.prototype.handleErrorOrCompleted=function(){if(this.currentObservable&&this.previous.result){var P=this.previous.result,d=P.data,v=P.error;if(!P.loading){var M=this.getOptions(),V=M.variables,J=M.onCompleted,ue=M.onError,me=M.skip;if(this.previousOptions&&!this.previous.loading&&(0,i.D)(this.previousOptions.query,M.query)&&(0,i.D)(this.previousOptions.variables,V))return;!J||v||me?ue&&v&&ue(v):J(d)}}},b.prototype.removeQuerySubscription=function(){this.currentSubscription&&(this.currentSubscription.unsubscribe(),delete this.currentSubscription)},b.prototype.removeObservable=function(P){this.currentObservable&&(this.currentObservable.tearDownQuery(),P&&delete this.currentObservable)},b.prototype.observableQueryFields=function(){var P;return{variables:null===(P=this.currentObservable)||void 0===P?void 0:P.variables,refetch:this.obsRefetch,fetchMore:this.obsFetchMore,updateQuery:this.obsUpdateQuery,startPolling:this.obsStartPolling,stopPolling:this.obsStopPolling,subscribeToMore:this.obsSubscribeToMore}},b}(u);function f(F,b,P){void 0===P&&(P=!1);var d=(0,t.useContext)((0,p.K)()),O=(0,t.useReducer)(function(he){return he+1},0),v=O[0],M=O[1],W=b?(0,n.pi)((0,n.pi)({},b),{query:F}):{query:F},V=(0,t.useRef)(),J=V.current||(V.current=new c({options:W,context:d,onNewData:function(){J.ssrInitiated()?M():Promise.resolve().then(function(){return V.current&&M()})}}));J.setOptions(W),J.context=d;var me=function y(F,b){var P=(0,t.useRef)();return(!P.current||!(0,i.D)(b,P.current.key))&&(P.current={key:b,value:F()}),P.current.value}(function(){return P?J.executeLazy():J.execute()},{options:(0,n.pi)((0,n.pi)({},W),{onError:void 0,onCompleted:void 0}),context:d,tick:v}),X=P?me[1]:me;return(0,t.useEffect)(function(){return function(){return J.cleanup()}},[]),(0,t.useEffect)(function(){return J.afterExecute({lazy:P})},[X.loading,X.networkStatus,X.error,X.data]),me}function T(F,b){return f(F,b,!0)}var x=l(94308),_=function(F){function b(P){var d=P.options,v=P.result,M=P.setResult,W=F.call(this,d,P.context)||this;return W.runMutation=function(V){void 0===V&&(V={}),W.onMutationStart();var J=W.generateNewMutationId();return W.mutate(V).then(function(ue){return W.onMutationCompleted(ue,J),ue}).catch(function(ue){var me=W.getOptions().onError;if(W.onMutationError(ue,J),me)return me(ue),{data:void 0,errors:ue};throw ue})},W.verifyDocumentType(d.mutation,a.n_.Mutation),W.result=v,W.setResult=M,W.mostRecentMutationId=0,W}return(0,n.ZT)(b,F),b.prototype.execute=function(P){return this.isMounted=!0,this.verifyDocumentType(this.getOptions().mutation,a.n_.Mutation),[this.runMutation,(0,n.pi)((0,n.pi)({},P),{client:this.refreshClient().client})]},b.prototype.afterExecute=function(){return this.isMounted=!0,this.unmount.bind(this)},b.prototype.cleanup=function(){},b.prototype.mutate=function(P){return this.refreshClient().client.mutate((0,x.J)(this.getOptions(),P))},b.prototype.onMutationStart=function(){!this.result.loading&&!this.getOptions().ignoreResults&&this.updateResult({loading:!0,error:void 0,data:void 0,called:!0})},b.prototype.onMutationCompleted=function(P,d){var O=this.getOptions(),v=O.onCompleted,M=O.ignoreResults,W=P.data,V=P.errors,J=V&&V.length>0?new s.c({graphQLErrors:V}):void 0;this.isMostRecentMutation(d)&&!M&&this.updateResult({called:!0,loading:!1,data:W,error:J}),v&&v(W)},b.prototype.onMutationError=function(P,d){this.isMostRecentMutation(d)&&this.updateResult({loading:!1,error:P,data:void 0,called:!0})},b.prototype.generateNewMutationId=function(){return++this.mostRecentMutationId},b.prototype.isMostRecentMutation=function(P){return this.mostRecentMutationId===P},b.prototype.updateResult=function(P){if(this.isMounted&&(!this.previousResult||!(0,i.D)(this.previousResult,P)))return this.setResult(P),this.previousResult=P,P},b}(u);function g(F,b){var P=(0,t.useContext)((0,p.K)()),d=(0,t.useState)({called:!1,loading:!1}),O=d[0],v=d[1],M=b?(0,n.pi)((0,n.pi)({},b),{mutation:F}):{mutation:F},W=(0,t.useRef)(),J=function V(){return W.current||(W.current=new _({options:M,context:P,result:O,setResult:v})),W.current}();return J.setOptions(M),J.context=P,(0,t.useEffect)(function(){return J.afterExecute()}),J.execute(O)}function A(F,b){return f(F,b,!1)}var L=function(F){function b(P){var d=P.options,v=P.setResult,M=F.call(this,d,P.context)||this;return M.currentObservable={},M.setResult=v,M.initialize(d),M}return(0,n.ZT)(b,F),b.prototype.execute=function(P){if(!0===this.getOptions().skip)return this.cleanup(),{loading:!1,error:void 0,data:void 0,variables:this.getOptions().variables};var d=P;this.refreshClient().isNew&&(d=this.getLoadingResult());var O=this.getOptions().shouldResubscribe;return"function"==typeof O&&(O=!!O(this.getOptions())),!1!==O&&this.previousOptions&&Object.keys(this.previousOptions).length>0&&(this.previousOptions.subscription!==this.getOptions().subscription||!(0,i.D)(this.previousOptions.variables,this.getOptions().variables)||this.previousOptions.skip!==this.getOptions().skip)&&(this.cleanup(),d=this.getLoadingResult()),this.initialize(this.getOptions()),this.startSubscription(),this.previousOptions=this.getOptions(),(0,n.pi)((0,n.pi)({},d),{variables:this.getOptions().variables})},b.prototype.afterExecute=function(){this.isMounted=!0},b.prototype.cleanup=function(){this.endSubscription(),delete this.currentObservable.query},b.prototype.initialize=function(P){this.currentObservable.query||!0===this.getOptions().skip||(this.currentObservable.query=this.refreshClient().client.subscribe({query:P.subscription,variables:P.variables,fetchPolicy:P.fetchPolicy,context:P.context}))},b.prototype.startSubscription=function(){this.currentObservable.subscription||(this.currentObservable.subscription=this.currentObservable.query.subscribe({next:this.updateCurrentData.bind(this),error:this.updateError.bind(this),complete:this.completeSubscription.bind(this)}))},b.prototype.getLoadingResult=function(){return{loading:!0,error:void 0,data:void 0}},b.prototype.updateResult=function(P){this.isMounted&&this.setResult(P)},b.prototype.updateCurrentData=function(P){var d=this.getOptions().onSubscriptionData;this.updateResult({data:P.data,loading:!1,error:void 0}),d&&d({client:this.refreshClient().client,subscriptionData:P})},b.prototype.updateError=function(P){this.updateResult({error:P,loading:!1})},b.prototype.completeSubscription=function(){var P=this;Promise.resolve().then(function(){var d=P.getOptions().onSubscriptionComplete;d&&d(),P.endSubscription()})},b.prototype.endSubscription=function(){this.currentObservable.subscription&&(this.currentObservable.subscription.unsubscribe(),delete this.currentObservable.subscription)},b}(u);function j(F,b){var P=(0,t.useContext)((0,p.K)()),d=b?(0,n.pi)((0,n.pi)({},b),{subscription:F}):{subscription:F},O=(0,t.useState)({loading:!d.skip,error:void 0,data:void 0}),v=O[0],M=O[1],W=(0,t.useRef)(),J=function V(){return W.current||(W.current=new L({options:d,context:P,setResult:M})),W.current}();return J.setOptions(d,!0),J.context=P,(0,t.useEffect)(function(){return J.afterExecute()}),(0,t.useEffect)(function(){return J.cleanup.bind(J)},[]),J.execute(v)}function Q(F){var b=F(),P=(0,t.useState)(b)[1];return(0,t.useEffect)(function(){var d=F();if(b===d)return F.onNextChange(P);P(d)},[b]),b}},29198:(ae,I,l)=>{"use strict";l.r(I),l.d(I,{ApolloConsumer:()=>w.a,ApolloProvider:()=>t.e,DocumentType:()=>n.n_,getApolloContext:()=>p.K,operationName:()=>n.mw,parser:()=>n.E2,resetApolloContext:()=>p.Z,useApolloClient:()=>r.xJ,useLazyQuery:()=>r.td,useMutation:()=>r.Db,useQuery:()=>r.aM,useReactiveVar:()=>r.lY,useSubscription:()=>r.mU});var t=l(68918),w=l(7416),p=l(48677),r=l(43396),n=l(69451),i=l(35067),e={};for(const a in i)["default","ApolloProvider","ApolloConsumer","getApolloContext","resetApolloContext","DocumentType","operationName","parser","useApolloClient","useLazyQuery","useMutation","useQuery","useReactiveVar","useSubscription"].indexOf(a)<0&&(e[a]=()=>i[a]);l.d(I,e)},69451:(ae,I,l)=>{"use strict";l.d(I,{E2:()=>n,mw:()=>r,n_:()=>w});var t=l(76456),w=function(i){return i[i.Query=0]="Query",i[i.Mutation=1]="Mutation",i[i.Subscription=2]="Subscription",i}(w||{}),p=new Map;function r(i){var s;switch(i){case w.Query:s="Query";break;case w.Mutation:s="Mutation";break;case w.Subscription:s="Subscription"}return s}function n(i){var a,s=p.get(i);if(s)return s;(0,t.kG)(!!i&&!!i.kind,34);var c=i.definitions.filter(function(A){return"FragmentDefinition"===A.kind}),y=i.definitions.filter(function(A){return"OperationDefinition"===A.kind&&"query"===A.operation}),f=i.definitions.filter(function(A){return"OperationDefinition"===A.kind&&"mutation"===A.operation}),T=i.definitions.filter(function(A){return"OperationDefinition"===A.kind&&"subscription"===A.operation});(0,t.kG)(!c.length||y.length||f.length||T.length,35),(0,t.kG)(y.length+f.length+T.length<=1,36),a=y.length?w.Query:w.Mutation,!y.length&&!f.length&&(a=w.Subscription);var x=y.length?y:f.length?f:T;(0,t.kG)(1===x.length,37);var _=x[0],g={name:_.name&&"Name"===_.name.kind?_.name.value:"data",type:a,variables:_.variableDefinitions||[]};return p.set(i,g),g}},35067:()=>{},92573:(ae,I,l)=>{"use strict";function t(w){return Array.isArray(w)&&w.length>0}l.d(I,{O:()=>t})},30688:(ae,I,l)=>{"use strict";l.d(I,{m:()=>t});var t="function"==typeof WeakMap&&!("object"==typeof navigator&&"ReactNative"===navigator.product)},57303:(ae,I,l)=>{"use strict";function t(){for(var w=[],p=0;p<arguments.length;p++)w[p]=arguments[p];var r=Object.create(null);return w.forEach(function(n){n&&Object.keys(n).forEach(function(i){var s=n[i];void 0!==s&&(r[i]=s)})}),r}l.d(I,{o:()=>t})},58856:(ae,I,l)=>{"use strict";l.d(I,{Ee:()=>p,bw:()=>r,w0:()=>s});var t=l(97378),w=Object.prototype.hasOwnProperty;function p(){for(var e=[],a=0;a<arguments.length;a++)e[a]=arguments[a];return r(e)}function r(e){var a=e[0]||{},u=e.length;if(u>1)for(var c=new s,y=1;y<u;++y)a=c.merge(a,e[y]);return a}function n(e){return null!==e&&"object"==typeof e}var i=function(e,a,u){return this.merge(e[u],a[u])},s=function(){function e(a){void 0===a&&(a=i),this.reconciler=a,this.isObject=n,this.pastCopies=new Set}return e.prototype.merge=function(a,u){for(var c=this,y=[],f=2;f<arguments.length;f++)y[f-2]=arguments[f];return n(u)&&n(a)?(Object.keys(u).forEach(function(T){if(w.call(a,T)){var x=a[T];if(u[T]!==x){var _=c.reconciler.apply(c,(0,t.pr)([a,u,T],y));_!==x&&((a=c.shallowCopyForMerge(a))[T]=_)}}else(a=c.shallowCopyForMerge(a))[T]=u[T]}),a):u},e.prototype.shallowCopyForMerge=function(a){return n(a)&&!this.pastCopies.has(a)&&(a=Array.isArray(a)?a.slice(0):(0,t.pi)({__proto__:Object.getPrototypeOf(a)},a),this.pastCopies.add(a)),a},e}()},45e3:(ae,I,l)=>{"use strict";l.d(I,{FS:()=>n,LZ:()=>p,mj:()=>i});var t=l(11194),w=l(76456);function p(a,u){var c=a.directives;return!c||!c.length||function e(a){var u=[];return a&&a.length&&a.forEach(function(c){if(function s(a){var u=a.name.value;return"skip"===u||"include"===u}(c)){var y=c.arguments;(0,w.kG)(y&&1===y.length,39);var T=y[0];(0,w.kG)(T.name&&"if"===T.name.value,40);var x=T.value;(0,w.kG)(x&&("Variable"===x.kind||"BooleanValue"===x.kind),41),u.push({directive:c,ifArgument:T})}}),u}(c).every(function(y){var f=y.directive,T=y.ifArgument,x=!1;return"Variable"===T.value.kind?(0,w.kG)(void 0!==(x=u&&u[T.value.name.value]),38):x=T.value.value,"skip"===f.name.value?!x:x})}function n(a,u){return function r(a){var u=[];return(0,t.Vn)(a,{Directive:function(c){u.push(c.name.value)}}),u}(u).some(function(c){return a.indexOf(c)>-1})}function i(a){return a&&n(["client"],a)&&n(["export"],a)}},4789:(ae,I,l)=>{"use strict";l.d(I,{F:()=>r,Yk:()=>p,hi:()=>n});var t=l(97378),w=l(76456);function p(i,s){var e=s,a=[];return i.definitions.forEach(function(c){if("OperationDefinition"===c.kind)throw new w.ej(42);"FragmentDefinition"===c.kind&&a.push(c)}),typeof e>"u"&&((0,w.kG)(1===a.length,43),e=a[0].name.value),(0,t.pi)((0,t.pi)({},i),{definitions:(0,t.pr)([{kind:"OperationDefinition",operation:"query",selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:e}}]}}],i.definitions)})}function r(i){void 0===i&&(i=[]);var s={};return i.forEach(function(e){s[e.name.value]=e}),s}function n(i,s){switch(i.kind){case"InlineFragment":return i;case"FragmentSpread":var e=s&&s[i.name.value];return(0,w.kG)(e,44),e;default:return null}}},15401:(ae,I,l)=>{"use strict";l.d(I,{$H:()=>r,A$:()=>p,O4:()=>u,iW:()=>s,kU:()=>i,p$:()=>a,pD:()=>e,rY:()=>n});var t=l(76456),w=l(53019);function p(c){(0,t.kG)(c&&"Document"===c.kind,45);var y=c.definitions.filter(function(f){return"FragmentDefinition"!==f.kind}).map(function(f){if("OperationDefinition"!==f.kind)throw new t.ej(46);return f});return(0,t.kG)(y.length<=1,47),c}function r(c){return p(c),c.definitions.filter(function(y){return"OperationDefinition"===y.kind})[0]}function n(c){return c.definitions.filter(function(y){return"OperationDefinition"===y.kind&&y.name}).map(function(y){return y.name.value})[0]||null}function i(c){return c.definitions.filter(function(y){return"FragmentDefinition"===y.kind})}function s(c){var y=r(c);return(0,t.kG)(y&&"query"===y.operation,48),y}function e(c){(0,t.kG)("Document"===c.kind,49),(0,t.kG)(c.definitions.length<=1,50);var y=c.definitions[0];return(0,t.kG)("FragmentDefinition"===y.kind,51),y}function a(c){p(c);for(var y,f=0,T=c.definitions;f<T.length;f++){var x=T[f];if("OperationDefinition"===x.kind){var _=x.operation;if("query"===_||"mutation"===_||"subscription"===_)return x}"FragmentDefinition"===x.kind&&!y&&(y=x)}if(y)return y;throw new t.ej(52)}function u(c){var y=Object.create(null),f=c&&c.variableDefinitions;return f&&f.length&&f.forEach(function(T){T.defaultValue&&(0,w.vb)(y,T.variable.name,T.defaultValue)}),y}},53019:(ae,I,l)=>{"use strict";l.d(I,{Ao:()=>P,My:()=>b,NC:()=>j,PT:()=>L,Yk:()=>i,kQ:()=>n,qw:()=>F,u2:()=>Q,vb:()=>_,vf:()=>g});var t=l(29278),w=l.n(t),p=l(76456),r=l(4789);function n(d){return{__ref:String(d)}}function i(d){return!(!d||"object"!=typeof d||"string"!=typeof d.__ref)}function _(d,O,v,M){if(function a(d){return"IntValue"===d.kind}(v)||function u(d){return"FloatValue"===d.kind}(v))d[O.value]=Number(v.value);else if(function e(d){return"BooleanValue"===d.kind}(v)||function s(d){return"StringValue"===d.kind}(v))d[O.value]=v.value;else if(function y(d){return"ObjectValue"===d.kind}(v)){var W={};v.fields.map(function(J){return _(W,J.name,J.value,M)}),d[O.value]=W}else if(function c(d){return"Variable"===d.kind}(v))d[O.value]=(M||{})[v.name.value];else if(function f(d){return"ListValue"===d.kind}(v))d[O.value]=v.values.map(function(J){var ue={};return _(ue,O,J,M),ue[O.value]});else if(function T(d){return"EnumValue"===d.kind}(v))d[O.value]=v.value;else{if(!function x(d){return"NullValue"===d.kind}(v))throw new p.ej(53);d[O.value]=null}}function g(d,O){var v=null;d.directives&&(v={},d.directives.forEach(function(W){v[W.name.value]={},W.arguments&&W.arguments.forEach(function(V){return _(v[W.name.value],V.name,V.value,O)})}));var M=null;return d.arguments&&d.arguments.length&&(M={},d.arguments.forEach(function(W){return _(M,W.name,W.value,O)})),L(d.name.value,M,v)}var A=["connection","include","skip","client","rest","export"];function L(d,O,v){if(O&&v&&v.connection&&v.connection.key){if(v.connection.filter&&v.connection.filter.length>0){var M=v.connection.filter?v.connection.filter:[];M.sort();var W={};return M.forEach(function(ue){W[ue]=O[ue]}),v.connection.key+"("+JSON.stringify(W)+")"}return v.connection.key}var V=d;if(O){var J=w()(O);V+="("+J+")"}return v&&Object.keys(v).forEach(function(ue){-1===A.indexOf(ue)&&(v[ue]&&Object.keys(v[ue]).length?V+="@"+ue+"("+JSON.stringify(v[ue])+")":V+="@"+ue)}),V}function j(d,O){if(d.arguments&&d.arguments.length){var v={};return d.arguments.forEach(function(M){return _(v,M.name,M.value,O)}),v}return null}function Q(d){return d.alias?d.alias.value:d.name.value}function F(d,O,v){if("string"==typeof d.__typename)return d.__typename;for(var M=0,W=O.selections;M<W.length;M++){var V=W[M];if(b(V)){if("__typename"===V.name.value)return d[Q(V)]}else{var J=F(d,(0,r.hi)(V,v).selectionSet,v);if("string"==typeof J)return J}}}function b(d){return"Field"===d.kind}function P(d){return"InlineFragment"===d.kind}},12578:(ae,I,l)=>{"use strict";l.d(I,{Gw:()=>f,aL:()=>F,ob:()=>b,Fo:()=>x});var t=l(97378),w=l(11194),r=(l(76456),l(15401));function n(P,d,O){var v=0;return P.forEach(function(M,W){d.call(this,M,W,P)&&(P[v++]=M)},O),P.length=v,P}var i=l(53019),s=l(4789),e={kind:"Field",name:{kind:"Name",value:"__typename"}};function a(P,d){return P.selectionSet.selections.every(function(O){return"FragmentSpread"===O.kind&&a(d[O.name.value],d)})}function u(P){return a((0,r.$H)(P)||(0,r.pD)(P),(0,s.F)((0,r.kU)(P)))?null:P}function c(P){return function(O){return P.some(function(v){return v.name&&v.name===O.name.value||v.test&&v.test(O)})}}function y(P,d){var O=Object.create(null),v=[],M=Object.create(null),W=[],V=u((0,w.Vn)(d,{Variable:{enter:function(J,ue,me){"VariableDefinition"!==me.kind&&(O[J.name.value]=!0)}},Field:{enter:function(J){if(P&&J.directives&&P.some(function(me){return me.remove})&&J.directives&&J.directives.some(c(P)))return J.arguments&&J.arguments.forEach(function(me){"Variable"===me.value.kind&&v.push({name:me.value.name.value})}),J.selectionSet&&Q(J.selectionSet).forEach(function(me){W.push({name:me.name.value})}),null}},FragmentSpread:{enter:function(J){M[J.name.value]=!0}},Directive:{enter:function(J){if(c(P)(J))return null}}}));return V&&n(v,function(J){return!!J.name&&!O[J.name]}).length&&(V=function L(P,d){var O=function A(P){return function(O){return P.some(function(v){return O.value&&"Variable"===O.value.kind&&O.value.name&&(v.name===O.value.name.value||v.test&&v.test(O))})}}(P);return u((0,w.Vn)(d,{OperationDefinition:{enter:function(v){return(0,t.pi)((0,t.pi)({},v),{variableDefinitions:v.variableDefinitions?v.variableDefinitions.filter(function(M){return!P.some(function(W){return W.name===M.variable.name.value})}):[]})}},Field:{enter:function(v){var M=P.some(function(V){return V.remove});if(M){var W=0;if(v.arguments&&v.arguments.forEach(function(V){O(V)&&(W+=1)}),1===W)return null}}},Argument:{enter:function(v){if(O(v))return null}}}))}(v,V)),V&&n(W,function(J){return!!J.name&&!M[J.name]}).length&&(V=function j(P,d){function O(v){if(P.some(function(M){return M.name===v.name.value}))return null}return u((0,w.Vn)(d,{FragmentSpread:{enter:O},FragmentDefinition:{enter:O}}))}(W,V)),V}function f(P){return(0,w.Vn)((0,r.A$)(P),{SelectionSet:{enter:function(d,O,v){if(!v||"OperationDefinition"!==v.kind){var M=d.selections;if(M&&!M.some(function(J){return(0,i.My)(J)&&("__typename"===J.name.value||0===J.name.value.lastIndexOf("__",0))})){var V=v;if(!((0,i.My)(V)&&V.directives&&V.directives.some(function(J){return"export"===J.name.value})))return(0,t.pi)((0,t.pi)({},d),{selections:(0,t.pr)(M,[e])})}}}}})}f.added=function(P){return P===e};var T={test:function(P){var d="connection"===P.name.value;return d&&(!P.arguments||P.arguments.some(function(O){return"key"===O.name.value})),d}};function x(P){return y([T],(0,r.A$)(P))}function Q(P){var d=[];return P.selections.forEach(function(O){((0,i.My)(O)||(0,i.Ao)(O))&&O.selectionSet?Q(O.selectionSet).forEach(function(v){return d.push(v)}):"FragmentSpread"===O.kind&&d.push(O)}),d}function F(P){return"query"===(0,r.p$)(P).operation?P:(0,w.Vn)(P,{OperationDefinition:{enter:function(M){return(0,t.pi)((0,t.pi)({},M),{operation:"query"})}}})}function b(P){(0,r.A$)(P);var d=y([{test:function(O){return"client"===O.name.value},remove:!0}],P);return d&&(d=(0,w.Vn)(d,{FragmentDefinition:{enter:function(O){if(O.selectionSet&&O.selectionSet.selections.every(function(M){return(0,i.My)(M)&&"__typename"===M.name.value}))return null}}})),d}},14423:(ae,I,l)=>{"use strict";function t(w,p,r){var n=[];w.forEach(function(i){return i[p]&&n.push(i)}),n.forEach(function(i){return i[p](r)})}l.d(I,{p:()=>t})},77325:(ae,I,l)=>{"use strict";l.d(I,{D:()=>p});var t=l(13216),w=l.n(t);function p(r){function n(i){Object.defineProperty(r,i,{value:w()})}return"function"==typeof Symbol&&Symbol.species&&n(Symbol.species),n("@@species"),r}},76371:(ae,I,l)=>{"use strict";Object.defineProperty(I,"__esModule",{value:!0}),I.RawSha256=void 0;var t=l(88700),w=function(){function p(){this.state=Int32Array.from(t.INIT),this.temp=new Int32Array(64),this.buffer=new Uint8Array(64),this.bufferLength=0,this.bytesHashed=0,this.finished=!1}return p.prototype.update=function(r){if(this.finished)throw new Error("Attempted to update an already finished hash.");var n=0,i=r.byteLength;if(this.bytesHashed+=i,8*this.bytesHashed>t.MAX_HASHABLE_LENGTH)throw new Error("Cannot hash more than 2^53 - 1 bits");for(;i>0;)this.buffer[this.bufferLength++]=r[n++],i--,this.bufferLength===t.BLOCK_SIZE&&(this.hashBuffer(),this.bufferLength=0)},p.prototype.digest=function(){if(!this.finished){var r=8*this.bytesHashed,n=new DataView(this.buffer.buffer,this.buffer.byteOffset,this.buffer.byteLength),i=this.bufferLength;if(n.setUint8(this.bufferLength++,128),i%t.BLOCK_SIZE>=t.BLOCK_SIZE-8){for(var s=this.bufferLength;s<t.BLOCK_SIZE;s++)n.setUint8(s,0);this.hashBuffer(),this.bufferLength=0}for(s=this.bufferLength;s<t.BLOCK_SIZE-8;s++)n.setUint8(s,0);n.setUint32(t.BLOCK_SIZE-8,Math.floor(r/4294967296),!0),n.setUint32(t.BLOCK_SIZE-4,r),this.hashBuffer(),this.finished=!0}var e=new Uint8Array(t.DIGEST_LENGTH);for(s=0;s<8;s++)e[4*s]=this.state[s]>>>24&255,e[4*s+1]=this.state[s]>>>16&255,e[4*s+2]=this.state[s]>>>8&255,e[4*s+3]=this.state[s]>>>0&255;return e},p.prototype.hashBuffer=function(){for(var n=this.buffer,i=this.state,s=i[0],e=i[1],a=i[2],u=i[3],c=i[4],y=i[5],f=i[6],T=i[7],x=0;x<t.BLOCK_SIZE;x++){if(x<16)this.temp[x]=(255&n[4*x])<<24|(255&n[4*x+1])<<16|(255&n[4*x+2])<<8|255&n[4*x+3];else{var _=this.temp[x-2];this.temp[x]=(((_>>>17|_<<15)^(_>>>19|_<<13)^_>>>10)+this.temp[x-7]|0)+((((_=this.temp[x-15])>>>7|_<<25)^(_>>>18|_<<14)^_>>>3)+this.temp[x-16]|0)}var L=(((c>>>6|c<<26)^(c>>>11|c<<21)^(c>>>25|c<<7))+(c&y^~c&f)|0)+(T+(t.KEY[x]+this.temp[x]|0)|0)|0,j=((s>>>2|s<<30)^(s>>>13|s<<19)^(s>>>22|s<<10))+(s&e^s&a^e&a)|0;T=f,f=y,y=c,c=u+L|0,u=a,a=e,e=s,s=L+j|0}i[0]+=s,i[1]+=e,i[2]+=a,i[3]+=u,i[4]+=c,i[5]+=y,i[6]+=f,i[7]+=T},p}();I.RawSha256=w},88700:(ae,I)=>{"use strict";Object.defineProperty(I,"__esModule",{value:!0}),I.MAX_HASHABLE_LENGTH=I.INIT=I.KEY=I.DIGEST_LENGTH=I.BLOCK_SIZE=void 0,I.BLOCK_SIZE=64,I.DIGEST_LENGTH=32,I.KEY=new Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),I.INIT=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],I.MAX_HASHABLE_LENGTH=Math.pow(2,53)-1},2973:(ae,I,l)=>{"use strict";Object.defineProperty(I,"__esModule",{value:!0}),(0,l(30705).__exportStar)(l(756),I)},756:(ae,I,l)=>{"use strict";Object.defineProperty(I,"__esModule",{value:!0}),I.Sha256=void 0;var t=l(30705),w=l(88700),p=l(76371),r=l(63610),n=function(){function s(e){if(this.hash=new p.RawSha256,e){this.outer=new p.RawSha256;var a=function i(s){var e=(0,r.convertToBuffer)(s);if(e.byteLength>w.BLOCK_SIZE){var a=new p.RawSha256;a.update(e),e=a.digest()}var u=new Uint8Array(w.BLOCK_SIZE);return u.set(e),u}(e),u=new Uint8Array(w.BLOCK_SIZE);u.set(a);for(var c=0;c<w.BLOCK_SIZE;c++)a[c]^=54,u[c]^=92;for(this.hash.update(a),this.outer.update(u),c=0;c<a.byteLength;c++)a[c]=0}}return s.prototype.update=function(e){if(!(0,r.isEmptyData)(e)&&!this.error)try{this.hash.update((0,r.convertToBuffer)(e))}catch(a){this.error=a}},s.prototype.digestSync=function(){if(this.error)throw this.error;return this.outer?(this.outer.finished||this.outer.update(this.hash.digest()),this.outer.digest()):this.hash.digest()},s.prototype.digest=function(){return(0,t.__awaiter)(this,void 0,void 0,function(){return(0,t.__generator)(this,function(e){return[2,this.digestSync()]})})},s}();I.Sha256=n},52514:(ae,I,l)=>{"use strict";Object.defineProperty(I,"__esModule",{value:!0}),I.convertToBuffer=void 0;var t=l(29460),w=typeof Buffer<"u"&&Buffer.from?function(r){return Buffer.from(r,"utf8")}:t.fromUtf8;I.convertToBuffer=function p(r){return r instanceof Uint8Array?r:"string"==typeof r?w(r):ArrayBuffer.isView(r)?new Uint8Array(r.buffer,r.byteOffset,r.byteLength/Uint8Array.BYTES_PER_ELEMENT):new Uint8Array(r)}},63610:(ae,I,l)=>{"use strict";Object.defineProperty(I,"__esModule",{value:!0}),I.uint32ArrayFrom=I.numToUint8=I.isEmptyData=I.convertToBuffer=void 0;var t=l(52514);Object.defineProperty(I,"convertToBuffer",{enumerable:!0,get:function(){return t.convertToBuffer}});var w=l(44780);Object.defineProperty(I,"isEmptyData",{enumerable:!0,get:function(){return w.isEmptyData}});var p=l(44282);Object.defineProperty(I,"numToUint8",{enumerable:!0,get:function(){return p.numToUint8}});var r=l(78874);Object.defineProperty(I,"uint32ArrayFrom",{enumerable:!0,get:function(){return r.uint32ArrayFrom}})},44780:(ae,I)=>{"use strict";Object.defineProperty(I,"__esModule",{value:!0}),I.isEmptyData=void 0,I.isEmptyData=function l(t){return"string"==typeof t?0===t.length:0===t.byteLength}},44282:(ae,I)=>{"use strict";Object.defineProperty(I,"__esModule",{value:!0}),I.numToUint8=void 0,I.numToUint8=function l(t){return new Uint8Array([(4278190080&t)>>24,(16711680&t)>>16,(65280&t)>>8,255&t])}},78874:(ae,I)=>{"use strict";Object.defineProperty(I,"__esModule",{value:!0}),I.uint32ArrayFrom=void 0,I.uint32ArrayFrom=function l(t){if(!Array.from){for(var w=new Uint32Array(t.length);0<t.length;)w[0]=t[0];return w}return Uint32Array.from(t)}},47981:(ae,I,l)=>{"use strict";l.d(I,{N:()=>i});for(var t={},w={},p=0;p<256;p++){var r=p.toString(16).toLowerCase();1===r.length&&(r="0".concat(r)),t[p]=r,w[r]=p}function i(s){for(var e="",a=0;a<s.byteLength;a++)e+=t[s[a]];return e}},29460:(ae,I,l)=>{"use strict";l.r(I),l.d(I,{fromUtf8:()=>n,toUtf8:()=>i});var n=function(s){return"function"==typeof TextEncoder?function p(s){return(new TextEncoder).encode(s)}(s):function(s){for(var e=[],a=0,u=s.length;a<u;a++){var c=s.charCodeAt(a);if(c<128)e.push(c);else if(c<2048)e.push(c>>6|192,63&c|128);else if(a+1<s.length&&55296==(64512&c)&&56320==(64512&s.charCodeAt(a+1))){var y=65536+((1023&c)<<10)+(1023&s.charCodeAt(++a));e.push(y>>18|240,y>>12&63|128,y>>6&63|128,63&y|128)}else e.push(c>>12|224,c>>6&63|128,63&c|128)}return Uint8Array.from(e)}(s)},i=function(s){return"function"==typeof TextDecoder?function r(s){return new TextDecoder("utf-8").decode(s)}(s):function(s){for(var e="",a=0,u=s.length;a<u;a++){var c=s[a];if(c<128)e+=String.fromCharCode(c);else if(192<=c&&c<224){var y=s[++a];e+=String.fromCharCode((31&c)<<6|63&y)}else if(240<=c&&c<365){var T="%"+[c,s[++a],s[++a],s[++a]].map(function(x){return x.toString(16)}).join("%");e+=decodeURIComponent(T)}else e+=String.fromCharCode((15&c)<<12|(63&s[++a])<<6|63&s[++a])}return e}(s)}},83753:(ae,I,l)=>{"use strict";l.d(I,{g7:()=>s});var t=null,w={},p=1,n="@wry/context:Slot",i=Array,s=i[n]||function(){var x=function(){function x(){this.id=["slot",p++,Date.now(),Math.random().toString(36).slice(2)].join(":")}return x.prototype.hasValue=function(){for(var _=t;_;_=_.parent)if(this.id in _.slots){var g=_.slots[this.id];if(g===w)break;return _!==t&&(t.slots[this.id]=g),!0}return t&&(t.slots[this.id]=w),!1},x.prototype.getValue=function(){if(this.hasValue())return t.slots[this.id]},x.prototype.withValue=function(_,g,A,L){var j,Q=((j={__proto__:null})[this.id]=_,j),F=t;t={parent:F,slots:Q};try{return g.apply(L,A)}finally{t=F}},x.bind=function(_){var g=t;return function(){var A=t;try{return t=g,_.apply(this,arguments)}finally{t=A}}},x.noContext=function(_,g,A){if(!t)return _.apply(A,g);var L=t;try{return t=null,_.apply(A,g)}finally{t=L}},x}();try{Object.defineProperty(i,n,{value:i[n]=x,enumerable:!1,writable:!1,configurable:!1})}finally{return x}}()},87788:(ae,I,l)=>{"use strict";l.d(I,{D:()=>i});var t=Object.prototype,w=t.toString,p=t.hasOwnProperty,r=Function.prototype.toString,n=new Map;function i(f,T){try{return s(f,T)}finally{n.clear()}}function s(f,T){if(f===T)return!0;var x=w.call(f);if(x!==w.call(T))return!1;switch(x){case"[object Array]":if(f.length!==T.length)return!1;case"[object Object]":if(y(f,T))return!0;var g=e(f),A=e(T),L=g.length;if(L!==A.length)return!1;for(var j=0;j<L;++j)if(!p.call(T,g[j]))return!1;for(j=0;j<L;++j){var Q=g[j];if(!s(f[Q],T[Q]))return!1}return!0;case"[object Error]":return f.name===T.name&&f.message===T.message;case"[object Number]":if(f!=f)return T!=T;case"[object Boolean]":case"[object Date]":return+f==+T;case"[object RegExp]":case"[object String]":return f==""+T;case"[object Map]":case"[object Set]":if(f.size!==T.size)return!1;if(y(f,T))return!0;for(var F=f.entries(),b="[object Map]"===x;;){var P=F.next();if(P.done)break;var d=P.value,O=d[0],v=d[1];if(!T.has(O)||b&&!s(v,T.get(O)))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]":f=new Uint8Array(f),T=new Uint8Array(T);case"[object DataView]":var M=f.byteLength;if(M===T.byteLength)for(;M--&&f[M]===T[M];);return-1===M;case"[object AsyncFunction]":case"[object GeneratorFunction]":case"[object AsyncGeneratorFunction]":case"[object Function]":var W=r.call(f);return W===r.call(T)&&!function c(f,T){var x=f.length-T.length;return x>=0&&f.indexOf(T,x)===x}(W,u)}return!1}function e(f){return Object.keys(f).filter(a,f)}function a(f){return void 0!==this[f]}var u="{ [native code] }";function y(f,T){var x=n.get(f);if(x){if(x.has(T))return!0}else n.set(f,x=new Set);return x.add(T),!1}},15541:(ae,I,l)=>{"use strict";l.d(I,{B:()=>n});var t=function(){return Object.create(null)},w=Array.prototype,p=w.forEach,r=w.slice,n=function(){function s(e,a){void 0===e&&(e=!0),void 0===a&&(a=t),this.weakness=e,this.makeData=a}return s.prototype.lookup=function(){for(var e=[],a=0;a<arguments.length;a++)e[a]=arguments[a];return this.lookupArray(e)},s.prototype.lookupArray=function(e){var a=this;return p.call(e,function(u){return a=a.getChildTrie(u)}),a.data||(a.data=this.makeData(r.call(e)))},s.prototype.getChildTrie=function(e){var a=this.weakness&&function i(s){switch(typeof s){case"object":if(null===s)break;case"function":return!0}return!1}(e)?this.weak||(this.weak=new WeakMap):this.strong||(this.strong=new Map),u=a.get(e);return u||a.set(e,u=new s(this.weakness,this.makeData)),u},s}()},56846:(ae,I,l)=>{"use strict";l.r(I),l.d(I,{addTypenameToDocument:()=>ut,argumentsObjectFromField:()=>Tt,assign:()=>$t,buildQueryFromSelectionSet:()=>Jr,canUseWeakMap:()=>$r,checkDocument:()=>Ot,cloneDeep:()=>Zr,createFragmentMap:()=>Tr,getDefaultValues:()=>ur,getDirectiveInfoFromField:()=>Jt,getDirectiveNames:()=>mt,getDirectivesFromDocument:()=>Hr,getEnv:()=>hr,getFragmentDefinition:()=>sr,getFragmentDefinitions:()=>xr,getFragmentQueryDocument:()=>Or,getInclusionDirectives:()=>Qt,getMainDefinition:()=>Xt,getMutationDefinition:()=>Ar,getOperationDefinition:()=>Kt,getOperationDefinitionOrDie:()=>Qr,getOperationName:()=>Kr,getQueryDefinition:()=>qr,getStoreKeyName:()=>ft,graphQLResultHasError:()=>Dr,hasClientExports:()=>Wr,hasDirectives:()=>Nt,isDevelopment:()=>Dt,isEnv:()=>Bt,isEqual:()=>ee,isField:()=>wt,isIdValue:()=>It,isInlineFragment:()=>Ct,isJsonValue:()=>Vt,isNumberValue:()=>Ue,isProduction:()=>Pr,isScalarValue:()=>Re,isTest:()=>st,maybeDeepFreeze:()=>kr,mergeDeep:()=>Fr,mergeDeepArray:()=>At,removeArgumentsFromDocument:()=>Yr,removeClientSetsFromDocument:()=>fr,removeConnectionDirectiveFromDocument:()=>Pt,removeDirectivesFromDocument:()=>tr,removeFragmentSpreadFromDocument:()=>zt,resultKeyNameFromField:()=>Ft,shouldInclude:()=>Vr,storeKeyNameFromField:()=>Rt,stripSymbols:()=>vr,toIdValue:()=>Lt,tryFunctionOrLogError:()=>pr,valueFromNode:()=>Et,valueToObjectRepresentation:()=>yt,variablesInOperation:()=>zr,warnOnceInDevelopment:()=>tn});var H,t=l(11194),w=function(H,oe){return(w=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(se,Ee){se.__proto__=Ee}||function(se,Ee){for(var we in Ee)Ee.hasOwnProperty(we)&&(se[we]=Ee[we])})(H,oe)},O="Invariant Violation",v=Object.setPrototypeOf,M=void 0===v?function(H,oe){return H.__proto__=oe,H}:v,W=function(H){function oe(se){void 0===se&&(se=O);var Ee=H.call(this,"number"==typeof se?O+": "+se+" (see https://github.com/apollographql/invariant-packages)":se)||this;return Ee.framesToPop=1,Ee.name=O,M(Ee,oe.prototype),Ee}return function p(H,oe){function se(){this.constructor=H}w(H,oe),H.prototype=null===oe?Object.create(oe):(se.prototype=oe.prototype,new se)}(oe,H),oe}(Error);function V(H,oe){if(!H)throw new W(oe)}function J(H){return function(){return console[H].apply(console,arguments)}}(H=V||(V={})).warn=J("warn"),H.error=J("error");var ue={env:{}};if("object"==typeof process)ue=process;else try{Function("stub","process = stub")(ue)}catch{}var K=function(){return K=Object.assign||function(oe){for(var se,Ee=1,we=arguments.length;Ee<we;Ee++)for(var _e in se=arguments[Ee])Object.prototype.hasOwnProperty.call(se,_e)&&(oe[_e]=se[_e]);return oe},K.apply(this,arguments)};function Se(){for(var H=0,oe=0,se=arguments.length;oe<se;oe++)H+=arguments[oe].length;var Ee=Array(H),we=0;for(oe=0;oe<se;oe++)for(var _e=arguments[oe],Fe=0,Be=_e.length;Fe<Be;Fe++,we++)Ee[we]=_e[Fe];return Ee}var R=l(29278),D=l.n(R),te=Object.prototype,pe=te.toString,xe=te.hasOwnProperty,Ce=new Map;function ee(H,oe){try{return le(H,oe)}finally{Ce.clear()}}function le(H,oe){if(H===oe)return!0;var se=pe.call(H);if(se!==pe.call(oe))return!1;switch(se){case"[object Array]":if(H.length!==oe.length)return!1;case"[object Object]":if(de(H,oe))return!0;var we=Object.keys(H),_e=Object.keys(oe),Fe=we.length;if(Fe!==_e.length)return!1;for(var Be=0;Be<Fe;++Be)if(!xe.call(oe,we[Be]))return!1;for(Be=0;Be<Fe;++Be){var Ge=we[Be];if(!le(H[Ge],oe[Ge]))return!1}return!0;case"[object Error]":return H.name===oe.name&&H.message===oe.message;case"[object Number]":if(H!=H)return oe!=oe;case"[object Boolean]":case"[object Date]":return+H==+oe;case"[object RegExp]":case"[object String]":return H==""+oe;case"[object Map]":case"[object Set]":if(H.size!==oe.size)return!1;if(de(H,oe))return!0;for(var Ne=H.entries(),et="[object Map]"===se;;){var dt=Ne.next();if(dt.done)break;var $e=dt.value,lt=$e[0],xt=$e[1];if(!oe.has(lt)||et&&!le(xt,oe.get(lt)))return!1}return!0}return!1}function de(H,oe){var se=Ce.get(H);if(se){if(se.has(oe))return!0}else Ce.set(H,se=new Set);return se.add(oe),!1}function Re(H){return["StringValue","BooleanValue","EnumValue"].indexOf(H.kind)>-1}function Ue(H){return["IntValue","FloatValue"].indexOf(H.kind)>-1}function yt(H,oe,se,Ee){if(function nt(H){return"IntValue"===H.kind}(se)||function ht(H){return"FloatValue"===H.kind}(se))H[oe.value]=Number(se.value);else if(function ze(H){return"BooleanValue"===H.kind}(se)||function qe(H){return"StringValue"===H.kind}(se))H[oe.value]=se.value;else if(function Ke(H){return"ObjectValue"===H.kind}(se)){var we={};se.fields.map(function(Fe){return yt(we,Fe.name,Fe.value,Ee)}),H[oe.value]=we}else if(function at(H){return"Variable"===H.kind}(se))H[oe.value]=(Ee||{})[se.name.value];else if(function ct(H){return"ListValue"===H.kind}(se))H[oe.value]=se.values.map(function(Fe){var Be={};return yt(Be,oe,Fe,Ee),Be[oe.value]});else if(function jt(H){return"EnumValue"===H.kind}(se))H[oe.value]=se.value;else{if(!function pt(H){return"NullValue"===H.kind}(se))throw new W(17);H[oe.value]=null}}function Rt(H,oe){var se=null;H.directives&&(se={},H.directives.forEach(function(we){se[we.name.value]={},we.arguments&&we.arguments.forEach(function(_e){return yt(se[we.name.value],_e.name,_e.value,oe)})}));var Ee=null;return H.arguments&&H.arguments.length&&(Ee={},H.arguments.forEach(function(we){return yt(Ee,we.name,we.value,oe)})),ft(H.name.value,Ee,se)}var St=["connection","include","skip","client","rest","export"];function ft(H,oe,se){if(se&&se.connection&&se.connection.key){if(se.connection.filter&&se.connection.filter.length>0){var Ee=se.connection.filter?se.connection.filter:[];Ee.sort();var we=oe,_e={};return Ee.forEach(function(Ge){_e[Ge]=we[Ge]}),se.connection.key+"("+JSON.stringify(_e)+")"}return se.connection.key}var Fe=H;if(oe){var Be=D()(oe);Fe+="("+Be+")"}return se&&Object.keys(se).forEach(function(Ge){-1===St.indexOf(Ge)&&(se[Ge]&&Object.keys(se[Ge]).length?Fe+="@"+Ge+"("+JSON.stringify(se[Ge])+")":Fe+="@"+Ge)}),Fe}function Tt(H,oe){if(H.arguments&&H.arguments.length){var se={};return H.arguments.forEach(function(Ee){return yt(se,Ee.name,Ee.value,oe)}),se}return null}function Ft(H){return H.alias?H.alias.value:H.name.value}function wt(H){return"Field"===H.kind}function Ct(H){return"InlineFragment"===H.kind}function It(H){return H&&"id"===H.type&&"boolean"==typeof H.generated}function Lt(H,oe){return void 0===oe&&(oe=!1),K({type:"id",generated:oe},"string"==typeof H?{id:H,typename:void 0}:H)}function Vt(H){return null!=H&&"object"==typeof H&&"json"===H.type}function Wt(H){throw new W(18)}function Et(H,oe){switch(void 0===oe&&(oe=Wt),H.kind){case"Variable":return oe(H);case"NullValue":return null;case"IntValue":return parseInt(H.value,10);case"FloatValue":return parseFloat(H.value);case"ListValue":return H.values.map(function(Fe){return Et(Fe,oe)});case"ObjectValue":for(var se={},Ee=0,we=H.fields;Ee<we.length;Ee++){var _e=we[Ee];se[_e.name.value]=Et(_e.value,oe)}return se;default:return H.value}}function Jt(H,oe){if(H.directives&&H.directives.length){var se={};return H.directives.forEach(function(Ee){se[Ee.name.value]=Tt(Ee,oe)}),se}return null}function Vr(H,oe){return void 0===oe&&(oe={}),Qt(H.directives).every(function(se){var Ee=se.directive,we=se.ifArgument,_e=!1;return"Variable"===we.value.kind?V(void 0!==(_e=oe[we.value.name.value]),13):_e=we.value.value,"skip"===Ee.name.value?!_e:_e})}function mt(H){var oe=[];return(0,t.Vn)(H,{Directive:function(se){oe.push(se.name.value)}}),oe}function Nt(H,oe){return mt(oe).some(function(se){return H.indexOf(se)>-1})}function Wr(H){return H&&Nt(["client"],H)&&Nt(["export"],H)}function _t(H){var oe=H.name.value;return"skip"===oe||"include"===oe}function Qt(H){return H?H.filter(_t).map(function(oe){var se=oe.arguments;V(se&&1===se.length,14);var we=se[0];V(we.name&&"if"===we.name.value,15);var _e=we.value;return V(_e&&("Variable"===_e.kind||"BooleanValue"===_e.kind),16),{directive:oe,ifArgument:we}}):[]}function Or(H,oe){var se=oe,Ee=[];return H.definitions.forEach(function(_e){if("OperationDefinition"===_e.kind)throw new W(11);"FragmentDefinition"===_e.kind&&Ee.push(_e)}),typeof se>"u"&&(V(1===Ee.length,12),se=Ee[0].name.value),K(K({},H),{definitions:Se([{kind:"OperationDefinition",operation:"query",selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:se}}]}}],H.definitions)})}function $t(H){for(var oe=[],se=1;se<arguments.length;se++)oe[se-1]=arguments[se];return oe.forEach(function(Ee){typeof Ee>"u"||null===Ee||Object.keys(Ee).forEach(function(we){H[we]=Ee[we]})}),H}function Ar(H){Ot(H);var oe=H.definitions.filter(function(se){return"OperationDefinition"===se.kind&&"mutation"===se.operation})[0];return V(oe,1),oe}function Ot(H){return V(H&&"Document"===H.kind,2),V(H.definitions.filter(function(se){return"FragmentDefinition"!==se.kind}).map(function(se){if("OperationDefinition"!==se.kind)throw new W(3);return se}).length<=1,4),H}function Kt(H){return Ot(H),H.definitions.filter(function(oe){return"OperationDefinition"===oe.kind})[0]}function Qr(H){var oe=Kt(H);return V(oe,5),oe}function Kr(H){return H.definitions.filter(function(oe){return"OperationDefinition"===oe.kind&&oe.name}).map(function(oe){return oe.name.value})[0]||null}function xr(H){return H.definitions.filter(function(oe){return"FragmentDefinition"===oe.kind})}function qr(H){var oe=Kt(H);return V(oe&&"query"===oe.operation,6),oe}function sr(H){V("Document"===H.kind,7),V(H.definitions.length<=1,8);var oe=H.definitions[0];return V("FragmentDefinition"===oe.kind,9),oe}function Xt(H){Ot(H);for(var oe,se=0,Ee=H.definitions;se<Ee.length;se++){var we=Ee[se];if("OperationDefinition"===we.kind){var _e=we.operation;if("query"===_e||"mutation"===_e||"subscription"===_e)return we}"FragmentDefinition"===we.kind&&!oe&&(oe=we)}if(oe)return oe;throw new W(10)}function Tr(H){void 0===H&&(H=[]);var oe={};return H.forEach(function(se){oe[se.name.value]=se}),oe}function ur(H){if(H&&H.variableDefinitions&&H.variableDefinitions.length){var oe=H.variableDefinitions.filter(function(se){return se.defaultValue}).map(function(se){var _e={};return yt(_e,se.variable.name,se.defaultValue),_e});return $t.apply(void 0,Se([{}],oe))}return{}}function zr(H){var oe=new Set;if(H.variableDefinitions)for(var se=0,Ee=H.variableDefinitions;se<Ee.length;se++)oe.add(Ee[se].variable.name.value);return oe}function cr(H,oe,se){var Ee=0;return H.forEach(function(we,_e){oe.call(this,we,_e,H)&&(H[Ee++]=we)},se),H.length=Ee,H}var Cr={kind:"Field",name:{kind:"Name",value:"__typename"}};function Zt(H,oe){return H.selectionSet.selections.every(function(se){return"FragmentSpread"===se.kind&&Zt(oe[se.name.value],oe)})}function qt(H){return Zt(Kt(H)||sr(H),Tr(xr(H)))?null:H}function er(H){return function(se){return H.some(function(Ee){return Ee.name&&Ee.name===se.name.value||Ee.test&&Ee.test(se)})}}function tr(H,oe){var se=Object.create(null),Ee=[],we=Object.create(null),_e=[],Fe=qt((0,t.Vn)(oe,{Variable:{enter:function(Be,Ge,Ne){"VariableDefinition"!==Ne.kind&&(se[Be.name.value]=!0)}},Field:{enter:function(Be){if(H&&Be.directives&&H.some(function(Ne){return Ne.remove})&&Be.directives&&Be.directives.some(er(H)))return Be.arguments&&Be.arguments.forEach(function(Ne){"Variable"===Ne.value.kind&&Ee.push({name:Ne.value.name.value})}),Be.selectionSet&&Ht(Be.selectionSet).forEach(function(Ne){_e.push({name:Ne.name.value})}),null}},FragmentSpread:{enter:function(Be){we[Be.name.value]=!0}},Directive:{enter:function(Be){if(er(H)(Be))return null}}}));return Fe&&cr(Ee,function(Be){return!se[Be.name]}).length&&(Fe=Yr(Ee,Fe)),Fe&&cr(_e,function(Be){return!we[Be.name]}).length&&(Fe=zt(_e,Fe)),Fe}function ut(H){return(0,t.Vn)(Ot(H),{SelectionSet:{enter:function(oe,se,Ee){if(!Ee||"OperationDefinition"!==Ee.kind){var we=oe.selections;if(we&&!we.some(function(Be){return wt(Be)&&("__typename"===Be.name.value||0===Be.name.value.lastIndexOf("__",0))})){var Fe=Ee;if(!(wt(Fe)&&Fe.directives&&Fe.directives.some(function(Be){return"export"===Be.name.value})))return K(K({},oe),{selections:Se(we,[Cr])})}}}}})}var rr={test:function(H){var oe="connection"===H.name.value;return oe&&(!H.arguments||H.arguments.some(function(se){return"key"===se.name.value})),oe}};function Pt(H){return tr([rr],Ot(H))}function Rr(H,oe,se){return void 0===se&&(se=!0),oe&&oe.selections&&oe.selections.some(function(Ee){return Ir(H,Ee,se)})}function Ir(H,oe,se){return void 0===se&&(se=!0),!wt(oe)||!!oe.directives&&(oe.directives.some(er(H))||se&&Rr(H,oe.selectionSet,se))}function Hr(H,oe){var se;return Ot(oe),qt((0,t.Vn)(oe,{SelectionSet:{enter:function(Ee,we,_e,Fe){var Be=Fe.join("-");if(!se||Be===se||!Be.startsWith(se)){if(Ee.selections){var Ge=Ee.selections.filter(function(Ne){return Ir(H,Ne)});return Rr(H,Ee,!1)&&(se=Be),K(K({},Ee),{selections:Ge})}return null}}}}))}function Yr(H,oe){var se=function Gr(H){return function(se){return H.some(function(Ee){return se.value&&"Variable"===se.value.kind&&se.value.name&&(Ee.name===se.value.name.value||Ee.test&&Ee.test(se))})}}(H);return qt((0,t.Vn)(oe,{OperationDefinition:{enter:function(Ee){return K(K({},Ee),{variableDefinitions:Ee.variableDefinitions.filter(function(we){return!H.some(function(_e){return _e.name===we.variable.name.value})})})}},Field:{enter:function(Ee){if(H.some(function(Fe){return Fe.remove})){var _e=0;if(Ee.arguments.forEach(function(Fe){se(Fe)&&(_e+=1)}),1===_e)return null}}},Argument:{enter:function(Ee){if(se(Ee))return null}}}))}function zt(H,oe){function se(Ee){if(H.some(function(we){return we.name===Ee.name.value}))return null}return qt((0,t.Vn)(oe,{FragmentSpread:{enter:se},FragmentDefinition:{enter:se}}))}function Ht(H){var oe=[];return H.selections.forEach(function(se){(wt(se)||Ct(se))&&se.selectionSet?Ht(se.selectionSet).forEach(function(Ee){return oe.push(Ee)}):"FragmentSpread"===se.kind&&oe.push(se)}),oe}function Jr(H){return"query"===Xt(H).operation?H:(0,t.Vn)(H,{OperationDefinition:{enter:function(we){return K(K({},we),{operation:"query"})}}})}function fr(H){Ot(H);var oe=tr([{test:function(se){return"client"===se.name.value},remove:!0}],H);return oe&&(oe=(0,t.Vn)(oe,{FragmentDefinition:{enter:function(se){if(se.selectionSet&&se.selectionSet.selections.every(function(we){return wt(we)&&"__typename"===we.name.value}))return null}}})),oe}var $r="function"==typeof WeakMap&&!("object"==typeof navigator&&"ReactNative"===navigator.product),Xr=Object.prototype.toString;function Zr(H){return lr(H,new Map)}function lr(H,oe){switch(Xr.call(H)){case"[object Array]":if(oe.has(H))return oe.get(H);var se=H.slice(0);return oe.set(H,se),se.forEach(function(we,_e){se[_e]=lr(we,oe)}),se;case"[object Object]":if(oe.has(H))return oe.get(H);var Ee=Object.create(Object.getPrototypeOf(H));return oe.set(H,Ee),Object.keys(H).forEach(function(we){Ee[we]=lr(H[we],oe)}),Ee;default:return H}}function hr(){return typeof process<"u"?"production":"development"}function Bt(H){return hr()===H}function Pr(){return!0===Bt("production")}function Dt(){return!0===Bt("development")}function st(){return!0===Bt("test")}function pr(H){try{return H()}catch(oe){console.error&&console.error(oe)}}function Dr(H){return H.errors&&H.errors.length}function Mr(H){return Object.freeze(H),Object.getOwnPropertyNames(H).forEach(function(oe){null!==H[oe]&&("object"==typeof H[oe]||"function"==typeof H[oe])&&!Object.isFrozen(H[oe])&&Mr(H[oe])}),H}function kr(H){return!Dt()&&!st()||"function"==typeof Symbol&&"string"==typeof Symbol("")?H:Mr(H)}var en=Object.prototype.hasOwnProperty;function Fr(){for(var H=[],oe=0;oe<arguments.length;oe++)H[oe]=arguments[oe];return At(H)}function At(H){var oe=H[0]||{},se=H.length;if(se>1){var Ee=[];oe=dr(oe,Ee);for(var we=1;we<se;++we)oe=Mt(oe,H[we],Ee)}return oe}function nr(H){return null!==H&&"object"==typeof H}function Mt(H,oe,se){return nr(oe)&&nr(H)?(Object.isExtensible&&!Object.isExtensible(H)&&(H=dr(H,se)),Object.keys(oe).forEach(function(Ee){var we=oe[Ee];if(en.call(H,Ee)){var _e=H[Ee];we!==_e&&(H[Ee]=Mt(dr(_e,se),we,se))}else H[Ee]=we}),H):oe}function dr(H,oe){return null!==H&&"object"==typeof H&&oe.indexOf(H)<0&&(H=Array.isArray(H)?H.slice(0):K({__proto__:Object.getPrototypeOf(H)},H),oe.push(H)),H}var it=Object.create({});function tn(H,oe){void 0===oe&&(oe="warn"),!Pr()&&!it[H]&&(st()||(it[H]=!0),"error"===oe?console.error(H):console.warn(H))}function vr(H){return JSON.parse(JSON.stringify(H))}},13427:function(ae,I,l){"use strict";var A,t=this&&this.__extends||(A=function(L,j){return(A=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Q,F){Q.__proto__=F}||function(Q,F){for(var b in F)F.hasOwnProperty(b)&&(Q[b]=F[b])})(L,j)},function(L,j){function Q(){this.constructor=L}A(L,j),L.prototype=null===j?Object.create(j):(Q.prototype=j.prototype,new Q)}),w=this&&this.__assign||function(){return w=Object.assign||function(A){for(var L,j=1,Q=arguments.length;j<Q;j++)for(var F in L=arguments[j])Object.prototype.hasOwnProperty.call(L,F)&&(A[F]=L[F]);return A},w.apply(this,arguments)},p=this&&this.__awaiter||function(A,L,j,Q){return new(j||(j=Promise))(function(b,P){function d(M){try{v(Q.next(M))}catch(W){P(W)}}function O(M){try{v(Q.throw(M))}catch(W){P(W)}}function v(M){M.done?b(M.value):function F(b){return b instanceof j?b:new j(function(P){P(b)})}(M.value).then(d,O)}v((Q=Q.apply(A,L||[])).next())})},r=this&&this.__generator||function(A,L){var Q,F,b,P,j={label:0,sent:function(){if(1&b[0])throw b[1];return b[1]},trys:[],ops:[]};return P={next:d(0),throw:d(1),return:d(2)},"function"==typeof Symbol&&(P[Symbol.iterator]=function(){return this}),P;function d(v){return function(M){return function O(v){if(Q)throw new TypeError("Generator is already executing.");for(;j;)try{if(Q=1,F&&(b=2&v[0]?F.return:v[0]?F.throw||((b=F.return)&&b.call(F),0):F.next)&&!(b=b.call(F,v[1])).done)return b;switch(F=0,b&&(v=[2&v[0],b.value]),v[0]){case 0:case 1:b=v;break;case 4:return j.label++,{value:v[1],done:!1};case 5:j.label++,F=v[1],v=[0];continue;case 7:v=j.ops.pop(),j.trys.pop();continue;default:if(!(b=(b=j.trys).length>0&&b[b.length-1])&&(6===v[0]||2===v[0])){j=0;continue}if(3===v[0]&&(!b||v[1]>b[0]&&v[1]<b[3])){j.label=v[1];break}if(6===v[0]&&j.label<b[1]){j.label=b[1],b=v;break}if(b&&j.label<b[2]){j.label=b[2],j.ops.push(v);break}b[2]&&j.ops.pop(),j.trys.pop();continue}v=L.call(A,j)}catch(M){v=[6,M],F=0}finally{Q=b=0}if(5&v[0])throw v[1];return{value:v[0]?v[1]:void 0,done:!0}}([v,M])}}};Object.defineProperty(I,"__esModule",{value:!0});var y,n=l(33379),i=l(28133),s=l(35661),e=l(22016),a=l(35588),u=l(7535);I.USER_AGENT_HEADER="x-amz-user-agent",I.USER_AGENT="aws-amplify/"+u.version+(a.userAgent&&" ")+a.userAgent,function(A){A.NONE="NONE",A.API_KEY="API_KEY",A.AWS_IAM="AWS_IAM",A.AMAZON_COGNITO_USER_POOLS="AMAZON_COGNITO_USER_POOLS",A.OPENID_CONNECT="OPENID_CONNECT",A.AWS_LAMBDA="AWS_LAMBDA"}(y=I.AUTH_TYPE||(I.AUTH_TYPE={}));var f=function(A){function L(j){var Q=A.call(this)||this;return Q.link=I.authLink(j),Q}return t(L,A),L.prototype.request=function(j,Q){return this.link.request(j,Q)},L}(n.ApolloLink);I.AuthLink=f;var T=function(A,L,j){var Q=void 0===A?{header:"",value:""}:A,F=Q.header,b=Q.value;return p(void 0,void 0,void 0,function(){var P,d,v,M,W;return r(this,function(V){switch(V.label){case 0:return P=L.getContext(),d=w(w({},P.headers),((M={})[I.USER_AGENT_HEADER]=I.USER_AGENT,M)),F&&b?"function"!=typeof b?[3,2]:[4,b.call(void 0)]:[3,5];case 1:return v=V.sent(),[3,4];case 2:return[4,b];case 3:v=V.sent(),V.label=4;case 4:d=w(((W={})[F]=v,W),d),V.label=5;case 5:return L.setContext(w(w({},P),{headers:d})),[2,j(L)]}})})};I.authLink=function(A){var L=A.url,j=A.region,Q=A.auth,F=(void 0===Q?{}:Q).type,b=A.auth;return new n.ApolloLink(function(P,d){return new n.Observable(function(O){var v,M;switch(F){case y.NONE:M=T(void 0,P,d);break;case y.AWS_IAM:var W=b.credentials;M=function(A,L,j){var Q=A.credentials,F=A.region,b=A.url;return p(void 0,void 0,void 0,function(){var P,d,O,v,M,W,V,J,ue,me,X,he,ie;return r(this,function(K){switch(K.label){case 0:return P="appsync",d=L.getContext(),(O="function"==typeof Q?Q.call():Q||{})&&"function"==typeof O.getPromise?[4,O.getPromise()]:[3,2];case 1:K.sent(),K.label=2;case 2:return[4,O];case 3:return v=K.sent(),M=v.accessKeyId,W=v.secretAccessKey,V=v.sessionToken,J=e.parse(b),ue=J.host,me=J.path,X=w(w({},_(L,{})),{service:P,region:F,url:b,host:ue,path:me}),he=s.Signer.sign(X,{access_key:M,secret_key:W,session_token:V}).headers,L.setContext(w(w({},d),{headers:w(w(w({},d.headers),he),(ie={},ie[I.USER_AGENT_HEADER]=I.USER_AGENT,ie))})),[2,j(L)]}})})}({credentials:void 0===W?{}:W,region:j,url:L},P,d);break;case y.API_KEY:var J=b.apiKey;M=T({header:"X-Api-Key",value:void 0===J?"":J},P,d);break;case y.AMAZON_COGNITO_USER_POOLS:case y.OPENID_CONNECT:var me=b.jwtToken;M=T({header:"Authorization",value:void 0===me?"":me},P,d);break;case y.AWS_LAMBDA:var he=b.token;M=T({header:"Authorization",value:void 0===he?"":he},P,d);break;default:throw new Error("Invalid AUTH_TYPE: "+b.type)}return M.then(function(G){v=G.subscribe({next:O.next.bind(O),error:O.error.bind(O),complete:O.complete.bind(O)})}),function(){v&&v.unsubscribe()}})})};var _=function(A,L){var F=A.query,b={operationName:A.operationName,variables:g(A.variables),query:i.print(F)};return w(w({body:JSON.stringify(b),method:"POST"},L),{headers:w({accept:"*/*","content-type":"application/json; charset=UTF-8"},L.headers)})},g=function(A){return Object.keys(A).filter(function(L){return!L.startsWith("@@")}).reduce(function(L,j){return L[j]=A[j],L},{})}},50785:(ae,I,l)=>{"use strict";Object.defineProperty(I,"__esModule",{value:!0});var t=l(13427);I.AuthLink=t.AuthLink,I.AUTH_TYPE=t.AUTH_TYPE,I.USER_AGENT_HEADER=t.USER_AGENT_HEADER,I.USER_AGENT=t.USER_AGENT,I.createAuthLink=function(p){return new t.AuthLink({url:p.url,region:p.region,auth:p.auth})};var w=l(35661);I.Signer=w.Signer},35588:(ae,I)=>{"use strict";Object.defineProperty(I,"__esModule",{value:!0}),I.userAgent=""},35661:(ae,I,l)=>{"use strict";Object.defineProperty(I,"__esModule",{value:!0}),function t(w){for(var p in w)I.hasOwnProperty(p)||(I[p]=w[p])}(l(8675))},8675:(ae,I,l)=>{"use strict";Object.defineProperty(I,"__esModule",{value:!0}),global.Buffer=global.Buffer||l(26149).lW;var t=l(22016),w=l(2973).Sha256,p=l(47981).N,r=function(g,A,L){void 0===L&&(L="");var j=new w(g);j.update(A);var Q=j.digestSync();return"hex"===L?p(Q):Q},n=function(g){var A=g||"",L=new w;return L.update(A),p(L.digestSync())},i=function(g){return g&&0!==Object.keys(g).length?Object.keys(g).map(function(A){return{key:A.toLowerCase(),value:g[A]?g[A].trim().replace(/\s+/g," "):""}}).sort(function(A,L){return A.key<L.key?-1:1}).map(function(A){return A.key+":"+A.value}).join("\n")+"\n":""},s=function(g){return Object.keys(g).map(function(A){return A.toLowerCase()}).sort().join(";")},x=function(g,A,L){void 0===L&&(L=null),g.headers=g.headers||{};var Q=(new Date).toISOString().replace(/[:-]|\.\d{3}/g,""),F=Q.substr(0,8),b="AWS4-HMAC-SHA256",P=t.parse(g.url);g.headers.host=P.host,g.headers["x-amz-date"]=Q,A.session_token&&(g.headers["X-Amz-Security-Token"]=A.session_token);var d=function(g){var A=t.parse(g.url);return[g.method||"/",A.path,A.query,i(g.headers),s(g.headers),n(g.body)].join("\n")}(g);L=L||function(g){var Q=(t.parse(g.url).host.match(/([^.]+)\.(?:([^.]*)\.)?amazonaws\.com$/)||[]).slice(1,3);return"es"===Q[1]&&(Q=Q.reverse()),{service:g.service||Q[0],region:g.region||Q[1]}}(g);var O=function(g,A,L){return[g,A,L,"aws4_request"].join("/")}(F,L.region,L.service),v=function(g,A,L,j){return[g,L,j,n(A)].join("\n")}(b,d,Q,O),M=function(g,A,L){void 0===g&&(g="");var Q=r("AWS4"+g,A),F=r(Q,L.region),b=r(F,L.service);return r(b,"aws4_request")}(A.secret_key,F,L),W=function(g,A){return r(g,A,"hex")}(M,v),V=function(g,A,L,j,Q){return void 0===A&&(A=""),[g+" Credential="+A+"/"+L,"SignedHeaders="+j,"Signature="+Q].join(", ")}(b,A.access_key,O,s(g.headers),W);return g.headers.Authorization=V,g},_=function(){function g(){}return g.sign=x,g}();I.Signer=_,I.default=_},4822:function(ae,I,l){"use strict";var t=this&&this.__rest||function(e,a){var u={};for(var c in e)Object.prototype.hasOwnProperty.call(e,c)&&a.indexOf(c)<0&&(u[c]=e[c]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var y=0;for(c=Object.getOwnPropertySymbols(e);y<c.length;y++)a.indexOf(c[y])<0&&Object.prototype.propertyIsEnumerable.call(e,c[y])&&(u[c[y]]=e[c[y]])}return u};Object.defineProperty(I,"__esModule",{value:!0});var w=l(20399);I.CONTROL_EVENTS_KEY=w.CONTROL_EVENTS_KEY;var p=l(92955),r=l(56846),n=l(33708),i=l(58e3);I.createSubscriptionHandshakeLink=function s(e,a){var u,c;return"string"==typeof e?(u=a||p.createHttpLink({uri:e}),c=p.ApolloLink.from([new n.NonTerminatingLink("controlMessages",{link:new p.ApolloLink(function(f,T){return new p.Observable(function(x){var _,g=f.variables,A=w.CONTROL_EVENTS_KEY,L=g[A],j=t(g,["symbol"==typeof A?A:A+""]);return typeof L<"u"&&(f.variables=j),x.next(((_={})[w.CONTROL_EVENTS_KEY]=L,_)),function(){}})})}),new n.NonTerminatingLink("subsInfo",{link:u}),new w.SubscriptionHandshakeLink("subsInfo")])):(u=a||p.createHttpLink({uri:e.url}),c=new i.AppSyncRealTimeSubscriptionHandshakeLink(e)),p.ApolloLink.split(function(f){var x=r.getMainDefinition(f.query);return"OperationDefinition"===x.kind&&"subscription"===x.operation},c,u)}},33708:function(ae,I,l){"use strict";var e,t=this&&this.__extends||(e=function(a,u){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,y){c.__proto__=y}||function(c,y){for(var f in y)y.hasOwnProperty(f)&&(c[f]=y[f])})(a,u)},function(a,u){function c(){this.constructor=a}e(a,u),a.prototype=null===u?Object.create(u):(c.prototype=u.prototype,new c)}),w=this&&this.__assign||function(){return w=Object.assign||function(e){for(var a,u=1,c=arguments.length;u<c;u++)for(var y in a=arguments[u])Object.prototype.hasOwnProperty.call(a,y)&&(e[y]=a[y]);return e},w.apply(this,arguments)},p=this&&this.__awaiter||function(e,a,u,c){return new(u||(u=Promise))(function(f,T){function x(A){try{g(c.next(A))}catch(L){T(L)}}function _(A){try{g(c.throw(A))}catch(L){T(L)}}function g(A){A.done?f(A.value):function y(f){return f instanceof u?f:new u(function(T){T(f)})}(A.value).then(x,_)}g((c=c.apply(e,a||[])).next())})},r=this&&this.__generator||function(e,a){var c,y,f,T,u={label:0,sent:function(){if(1&f[0])throw f[1];return f[1]},trys:[],ops:[]};return T={next:x(0),throw:x(1),return:x(2)},"function"==typeof Symbol&&(T[Symbol.iterator]=function(){return this}),T;function x(g){return function(A){return function _(g){if(c)throw new TypeError("Generator is already executing.");for(;u;)try{if(c=1,y&&(f=2&g[0]?y.return:g[0]?y.throw||((f=y.return)&&f.call(y),0):y.next)&&!(f=f.call(y,g[1])).done)return f;switch(y=0,f&&(g=[2&g[0],f.value]),g[0]){case 0:case 1:f=g;break;case 4:return u.label++,{value:g[1],done:!1};case 5:u.label++,y=g[1],g=[0];continue;case 7:g=u.ops.pop(),u.trys.pop();continue;default:if(!(f=(f=u.trys).length>0&&f[f.length-1])&&(6===g[0]||2===g[0])){u=0;continue}if(3===g[0]&&(!f||g[1]>f[0]&&g[1]<f[3])){u.label=g[1];break}if(6===g[0]&&u.label<f[1]){u.label=f[1],f=g;break}if(f&&u.label<f[2]){u.label=f[2],u.ops.push(g);break}f[2]&&u.ops.pop(),u.trys.pop();continue}g=a.call(e,u)}catch(A){g=[6,A],y=0}finally{c=f=0}if(5&g[0])throw g[1];return{value:g[0]?g[1]:void 0,done:!0}}([g,A])}}};Object.defineProperty(I,"__esModule",{value:!0});var n=l(92955),i=l(74699),s=function(e){function a(u,c){var y=c.link,f=e.call(this)||this;return f.contextKey=u,f.link=y,f}return t(a,e),a.prototype.request=function(u,c){var y=this;return i.setContext(function(f,T){return p(y,void 0,void 0,function(){var x,_,g=this;return r(this,function(A){switch(A.label){case 0:return[4,new Promise(function(L,j){g.link.request(u).subscribe({next:L,error:j})})];case 1:return x=A.sent(),[2,w(w({},T),(_={},_[this.contextKey]=x,_))]}})})}).request(u,c)},a}(n.ApolloLink);I.NonTerminatingLink=s},58e3:function(ae,I,l){"use strict";var Q,t=this&&this.__extends||(Q=function(F,b){return(Q=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(P,d){P.__proto__=d}||function(P,d){for(var O in d)d.hasOwnProperty(O)&&(P[O]=d[O])})(F,b)},function(F,b){function P(){this.constructor=F}Q(F,b),F.prototype=null===b?Object.create(b):(P.prototype=b.prototype,new P)}),w=this&&this.__assign||function(){return w=Object.assign||function(Q){for(var F,b=1,P=arguments.length;b<P;b++)for(var d in F=arguments[b])Object.prototype.hasOwnProperty.call(F,d)&&(Q[d]=F[d]);return Q},w.apply(this,arguments)},p=this&&this.__awaiter||function(Q,F,b,P){return new(b||(b=Promise))(function(O,v){function M(J){try{V(P.next(J))}catch(ue){v(ue)}}function W(J){try{V(P.throw(J))}catch(ue){v(ue)}}function V(J){J.done?O(J.value):function d(O){return O instanceof b?O:new b(function(v){v(O)})}(J.value).then(M,W)}V((P=P.apply(Q,F||[])).next())})},r=this&&this.__generator||function(Q,F){var P,d,O,v,b={label:0,sent:function(){if(1&O[0])throw O[1];return O[1]},trys:[],ops:[]};return v={next:M(0),throw:M(1),return:M(2)},"function"==typeof Symbol&&(v[Symbol.iterator]=function(){return this}),v;function M(V){return function(J){return function W(V){if(P)throw new TypeError("Generator is already executing.");for(;b;)try{if(P=1,d&&(O=2&V[0]?d.return:V[0]?d.throw||((O=d.return)&&O.call(d),0):d.next)&&!(O=O.call(d,V[1])).done)return O;switch(d=0,O&&(V=[2&V[0],O.value]),V[0]){case 0:case 1:O=V;break;case 4:return b.label++,{value:V[1],done:!1};case 5:b.label++,d=V[1],V=[0];continue;case 7:V=b.ops.pop(),b.trys.pop();continue;default:if(!(O=(O=b.trys).length>0&&O[O.length-1])&&(6===V[0]||2===V[0])){b=0;continue}if(3===V[0]&&(!O||V[1]>O[0]&&V[1]<O[3])){b.label=V[1];break}if(6===V[0]&&b.label<O[1]){b.label=O[1],O=V;break}if(O&&b.label<O[2]){b.label=O[2],b.ops.push(V);break}O[2]&&b.ops.pop(),b.trys.pop();continue}V=F.call(Q,b)}catch(J){V=[6,J],d=0}finally{P=O=0}if(5&V[0])throw V[1];return{value:V[0]?V[1]:void 0,done:!0}}([V,J])}}};Object.defineProperty(I,"__esModule",{value:!0});var n=l(92955),i=l(13563),s=l(50785),e=l(47256),a=l(22016),u=l(25804),c=l(14328),y=l(32104),f=i.rootLogger.extend("subscriptions");I.CONTROL_EVENTS_KEY="@@controlEvents";var T=[400,401,403],_={accept:"application/json, text/javascript","content-encoding":"amz-1.0","content-type":"application/json; charset=UTF-8"},L=3e5,j=function(Q){function F(b){var P=b.url,d=b.region,O=b.auth,v=Q.call(this)||this;return v.socketStatus=c.SOCKET_STATUS.CLOSED,v.keepAliveTimeout=L,v.subscriptionObserverMap=new Map,v.promiseArray=[],v.url=P,v.region=d,v.auth=O,v}return t(F,Q),F.prototype.request=function(b){var P,d=this,O=b.query,v=b.variables,M=b.getContext(),W=M.controlMessages,V=I.CONTROL_EVENTS_KEY,J=(void 0===W?(P={},P[I.CONTROL_EVENTS_KEY]=void 0,P):W)[V],ue=M.headers;return new n.Observable(function(me){if(d.url){var X=u.v4(),he={appSyncGraphqlEndpoint:d.url,authenticationType:d.auth.type,query:e.print(O),region:d.region,graphql_headers:function(){return ue},variables:v,apiKey:d.auth.type===s.AUTH_TYPE.API_KEY?d.auth.apiKey:"",credentials:d.auth.type===s.AUTH_TYPE.AWS_IAM?d.auth.credentials:null,jwtToken:d.auth.type===s.AUTH_TYPE.AMAZON_COGNITO_USER_POOLS||d.auth.type===s.AUTH_TYPE.OPENID_CONNECT?d.auth.jwtToken:null};return d._startSubscriptionWithAWSAppSyncRealTime({options:he,observer:me,subscriptionId:X}),function(){return p(d,void 0,void 0,function(){return r(this,function(K){try{if(this._verifySubscriptionAlreadyStarted(X),this.subscriptionObserverMap.get(X).subscriptionState!==c.SUBSCRIPTION_STATUS.CONNECTED)throw new Error("Subscription has failed, starting to remove subscription.");this._sendUnsubscriptionMessage(X)}catch{return this._removeSubscriptionObserver(X),[2]}return[2]})})}}me.error({errors:[w({},new e.GraphQLError("Subscribe only available for AWS AppSync endpoint"))]}),me.complete()}).filter(function(me){var X=me.extensions,he=(void 0===X?{}:X).controlMsgType;return!0===J||!(typeof(void 0===he?void 0:he)<"u")})},F.prototype._verifySubscriptionAlreadyStarted=function(b){return p(this,void 0,void 0,function(){var d=this;return r(this,function(O){return this.subscriptionObserverMap.get(b).subscriptionState===c.SUBSCRIPTION_STATUS.PENDING?[2,new Promise(function(v,M){var W=d.subscriptionObserverMap.get(b);d.subscriptionObserverMap.set(b,{observer:W.observer,subscriptionState:W.subscriptionState,variables:W.variables,query:W.query,subscriptionReadyCallback:v,subscriptionFailedCallback:M})})]:[2]})})},F.prototype._sendUnsubscriptionMessage=function(b){try{if(this.awsRealTimeSocket&&this.awsRealTimeSocket.readyState===WebSocket.OPEN&&this.socketStatus===c.SOCKET_STATUS.READY){var d=JSON.stringify({id:b,type:c.MESSAGE_TYPES.GQL_STOP});this.awsRealTimeSocket.send(d),this._removeSubscriptionObserver(b)}}catch(O){f({err:O})}},F.prototype._removeSubscriptionObserver=function(b){this.subscriptionObserverMap.delete(b),0===this.subscriptionObserverMap.size&&this._closeSocketWhenFlushed()},F.prototype._closeSocketWhenFlushed=function(){f("closing WebSocket..."),clearTimeout(this.keepAliveTimeoutId),this.awsRealTimeSocket?this.awsRealTimeSocket.bufferedAmount>0?setTimeout(this._closeSocketWhenFlushed.bind(this),1e3):(this.awsRealTimeSocket.close(1e3),this.awsRealTimeSocket=null,this.socketStatus=c.SOCKET_STATUS.CLOSED):this.socketStatus=c.SOCKET_STATUS.CLOSED},F.prototype._startSubscriptionWithAWSAppSyncRealTime=function(b){var P=b.options,d=b.observer,O=b.subscriptionId;return p(this,void 0,void 0,function(){var v,M,W,V,J,ue,me,X,he,ie,K,G,re,Y,k,C,N,q,Z,fe,Se,be,ke,ne=this;return r(this,function(U){switch(U.label){case 0:return v=P.appSyncGraphqlEndpoint,M=P.authenticationType,J=P.apiKey,ue=P.region,X=void 0===(me=P.graphql_headers)?function(){return{}}:me,he=P.credentials,ie=P.jwtToken,G={query:W=P.query,variables:V=P.variables},this.subscriptionObserverMap.set(O,{observer:d,query:W,variables:V,subscriptionState:K=c.SUBSCRIPTION_STATUS.PENDING,startAckTimeoutId:null}),re=JSON.stringify(G),k=[{}],[4,this._awsRealTimeHeaderBasedAuth({apiKey:J,appSyncGraphqlEndpoint:v,authenticationType:M,payload:re,canonicalUri:"",region:ue,credentials:he,jwtToken:ie})];case 1:return C=[w.apply(void 0,k.concat([U.sent()]))],[4,X()];case 2:Y=w.apply(void 0,[w.apply(void 0,C.concat([U.sent()])),(ke={},ke[s.USER_AGENT_HEADER]=s.USER_AGENT,ke)]),N={id:O,payload:{data:re,extensions:{authorization:w({},Y)}},type:c.MESSAGE_TYPES.GQL_START},q=JSON.stringify(N),U.label=3;case 3:return U.trys.push([3,5,,6]),[4,this._initializeWebSocketConnection({apiKey:J,appSyncGraphqlEndpoint:v,authenticationType:M,region:ue,credentials:he,jwtToken:ie})];case 4:return U.sent(),[3,6];case 5:return Z=U.sent(),d.error({errors:[w({},new e.GraphQLError("Connection failed: "+(void 0===(fe=Z.message)?"":fe)))]}),d.complete(),"function"==typeof(Se=(this.subscriptionObserverMap.get(O)||{}).subscriptionFailedCallback)&&Se(),[2];case 6:return be=this.subscriptionObserverMap.get(O),this.subscriptionObserverMap.set(O,{observer:d,subscriptionState:K,variables:V,query:W,subscriptionReadyCallback:be.subscriptionReadyCallback,subscriptionFailedCallback:be.subscriptionFailedCallback,startAckTimeoutId:setTimeout(function(){ne._timeoutStartSubscriptionAck.call(ne,O)},15e3)}),this.awsRealTimeSocket&&this.awsRealTimeSocket.send(q),[2]}})})},F.prototype._initializeWebSocketConnection=function(b){var P=this,d=b.appSyncGraphqlEndpoint,O=b.authenticationType,v=b.apiKey,M=b.region,W=b.credentials,V=b.jwtToken;if(this.socketStatus!==c.SOCKET_STATUS.READY)return new Promise(function(J,ue){return p(P,void 0,void 0,function(){var me,X,he,ie,K,G,re,k;return r(this,function(C){switch(C.label){case 0:if(this.promiseArray.push({res:J,rej:ue}),this.socketStatus!==c.SOCKET_STATUS.CLOSED)return[3,5];C.label=1;case 1:return C.trys.push([1,4,,5]),this.socketStatus=c.SOCKET_STATUS.CONNECTING,me=F._discoverAppSyncRealTimeEndpoint(this.url),X="{}",K=(ie=JSON).stringify,[4,this._awsRealTimeHeaderBasedAuth({authenticationType:O,payload:X,canonicalUri:"/connect",apiKey:v,appSyncGraphqlEndpoint:d,region:M,credentials:W,jwtToken:V})];case 2:return he=K.apply(ie,[C.sent()]),G=Buffer.from(he).toString("base64"),re=Buffer.from(X).toString("base64"),[4,this._initializeRetryableHandshake({awsRealTimeUrl:me+"?header="+G+"&payload="+re})];case 3:return C.sent(),this.promiseArray.forEach(function(N){var q=N.res;f("Notifying connection successful"),q()}),this.socketStatus=c.SOCKET_STATUS.READY,this.promiseArray=[],[3,5];case 4:return k=C.sent(),this.promiseArray.forEach(function(N){return(0,N.rej)(k)}),this.promiseArray=[],this.awsRealTimeSocket&&this.awsRealTimeSocket.readyState===WebSocket.OPEN&&this.awsRealTimeSocket.close(3001),this.awsRealTimeSocket=null,this.socketStatus=c.SOCKET_STATUS.CLOSED,[3,5];case 5:return[2]}})})})},F.prototype._awsRealTimeHeaderBasedAuth=function(b){var P=b.authenticationType,d=b.payload,O=b.canonicalUri,v=b.appSyncGraphqlEndpoint,M=b.apiKey,W=b.region,V=b.credentials,J=b.jwtToken;return p(this,void 0,void 0,function(){var ue,me,X;return r(this,function(ie){switch(ie.label){case 0:return ue={API_KEY:this._awsRealTimeApiKeyHeader.bind(this),AWS_IAM:this._awsRealTimeIAMHeader.bind(this),OPENID_CONNECT:this._awsRealTimeOPENIDHeader.bind(this),AMAZON_COGNITO_USER_POOLS:this._awsRealTimeOPENIDHeader.bind(this)},"function"!=typeof(me=ue[P])?(f("Authentication type "+P+" not supported"),[2,{}]):(X=a.parse(v).host,[4,me({payload:d,canonicalUri:O,appSyncGraphqlEndpoint:v,apiKey:M,region:W,host:X,credentials:V,jwtToken:J})]);case 1:return[2,ie.sent()]}})})},F.prototype._awsRealTimeOPENIDHeader=function(b){var P=b.host,d=b.jwtToken;return p(this,void 0,void 0,function(){var O,v;return r(this,function(M){switch(M.label){case 0:return O={},"function"!=typeof d?[3,2]:[4,d.call(void 0)];case 1:return v=M.sent(),[3,4];case 2:return[4,d];case 3:v=M.sent(),M.label=4;case 4:return[2,(O.Authorization=v,O.host=P,O)]}})})},F.prototype._awsRealTimeApiKeyHeader=function(b){var P=b.apiKey,d=b.host;return p(this,void 0,void 0,function(){var v;return r(this,function(M){return v=(new Date).toISOString().replace(/[:\-]|\.\d{3}/g,""),[2,{host:d,"x-amz-date":v,"x-api-key":P}]})})},F.prototype._awsRealTimeIAMHeader=function(b){var P=b.payload,d=b.canonicalUri,O=b.appSyncGraphqlEndpoint,v=b.region,M=b.credentials;return p(this,void 0,void 0,function(){var W,V,J,he,ie;return r(this,function(G){switch(G.label){case 0:return W={region:v,service:"appsync"},(V="function"==typeof M?M.call():M||{})&&"function"==typeof V.getPromise?[4,V.getPromise()]:[3,2];case 1:G.sent(),G.label=2;case 2:if(!V)throw new Error("No credentials");return[4,V];case 3:return J=G.sent(),he={access_key:J.accessKeyId,secret_key:J.secretAccessKey,session_token:J.sessionToken},ie={url:""+O+d,body:P,method:"POST",headers:w({},_)},[2,s.Signer.sign(ie,he,W).headers]}})})},F.prototype._initializeRetryableHandshake=function(b){var P=b.awsRealTimeUrl;return p(this,void 0,void 0,function(){return r(this,function(d){switch(d.label){case 0:return f("Initializaling retryable Handshake"),[4,y.jitteredExponentialRetry(this._initializeHandshake.bind(this),[{awsRealTimeUrl:P}])];case 1:return d.sent(),[2]}})})},F.prototype._initializeHandshake=function(b){var P=b.awsRealTimeUrl;return p(this,void 0,void 0,function(){var d,O,M=this;return r(this,function(W){switch(W.label){case 0:f("Initializing handshake "+P),W.label=1;case 1:return W.trys.push([1,4,,5]),[4,new Promise(function(V,J){var ue=F.createWebSocket(P,"graphql-ws");ue.onerror=function(){f("WebSocket connection error")},ue.onclose=function(){J(new Error("Connection handshake error"))},ue.onopen=function(){return M.awsRealTimeSocket=ue,V()}})];case 2:return W.sent(),[4,new Promise(function(V,J){var ue=!1;M.awsRealTimeSocket.onerror=function(he){f("WebSocket closed "+JSON.stringify(he))},M.awsRealTimeSocket.onclose=function(he){f("WebSocket closed "+he.reason),J(new Error(JSON.stringify(he)))},M.awsRealTimeSocket.onmessage=function(he){f("subscription message from AWS AppSyncRealTime: "+he.data+" ");var ie=JSON.parse(he.data),K=ie.type,G=ie.payload,re=(void 0===G?{}:G).connectionTimeoutMs;if(K===c.MESSAGE_TYPES.GQL_CONNECTION_ACK)return ue=!0,M.keepAliveTimeout=void 0===re?L:re,M.awsRealTimeSocket.onmessage=M._handleIncomingSubscriptionMessage.bind(M),M.awsRealTimeSocket.onerror=function(be){f(be),M._errorDisconnect(c.CONTROL_MSG.CONNECTION_CLOSED)},M.awsRealTimeSocket.onclose=function(be){f("WebSocket closed "+be.reason),M._errorDisconnect(c.CONTROL_MSG.CONNECTION_CLOSED)},void V("Cool, connected to AWS AppSyncRealTime");if(K===c.MESSAGE_TYPES.GQL_CONNECTION_ERROR){var k=ie.payload,C=(void 0===k?{}:k).errors,N=(void 0===C?[]:C)[0],q=void 0===N?{}:N,Z=q.errorType,ve=q.errorCode;J({errorType:void 0===Z?"":Z,errorCode:void 0===ve?0:ve})}},M.awsRealTimeSocket.send(JSON.stringify({type:c.MESSAGE_TYPES.GQL_CONNECTION_INIT})),setTimeout(function X(){ue||J(new Error("Connection timeout: ack from AWSRealTime was not received on 15000 ms"))}.bind(M),15e3)})];case 3:return W.sent(),[3,5];case 4:throw d=W.sent(),O=d.errorType,T.indexOf(d.errorCode)>=0?new y.NonRetryableError(O):O?new Error(O):d;case 5:return[2]}})})},F.prototype._handleIncomingSubscriptionMessage=function(b){f("subscription message from AWS AppSync RealTime: "+b.data);var P=JSON.parse(b.data),d=P.id,O=void 0===d?"":d,v=P.payload,M=P.type,W=this.subscriptionObserverMap.get(O)||{},V=W.observer,J=void 0===V?null:V,ue=W.query,me=void 0===ue?"":ue,X=W.variables,he=void 0===X?{}:X,ie=W.startAckTimeoutId,K=void 0===ie?0:ie,G=W.subscriptionReadyCallback,re=void 0===G?null:G,Y=W.subscriptionFailedCallback,k=void 0===Y?null:Y;if(f({id:O,observer:J,query:me,variables:he}),M===c.MESSAGE_TYPES.GQL_DATA&&v&&v.data)J?J.next(v):f("observer not found for id: "+O);else{if(M===c.MESSAGE_TYPES.GQL_START_ACK)return f("subscription ready for "+JSON.stringify({query:me,variables:he})),"function"==typeof re&&re(),clearTimeout(K),J?J.next({data:v,extensions:{controlMsgType:"CONNECTED"}}):f("observer not found for id: "+O),void this.subscriptionObserverMap.set(O,{observer:J,query:me,variables:he,startAckTimeoutId:null,subscriptionState:c.SUBSCRIPTION_STATUS.CONNECTED,subscriptionReadyCallback:re,subscriptionFailedCallback:k});if(M===c.MESSAGE_TYPES.GQL_CONNECTION_KEEP_ALIVE)return clearTimeout(this.keepAliveTimeoutId),void(this.keepAliveTimeoutId=setTimeout(this._errorDisconnect.bind(this,c.CONTROL_MSG.TIMEOUT_DISCONNECT),this.keepAliveTimeout));M===c.MESSAGE_TYPES.GQL_ERROR&&(this.subscriptionObserverMap.set(O,{observer:J,query:me,variables:he,startAckTimeoutId:K,subscriptionReadyCallback:re,subscriptionFailedCallback:k,subscriptionState:c.SUBSCRIPTION_STATUS.FAILED}),J.error({errors:[w({},new e.GraphQLError("Connection failed: "+JSON.stringify(v)))]}),clearTimeout(K),J.complete(),"function"==typeof k&&k())}},F.prototype._errorDisconnect=function(b){f("Disconnect error: "+b),this.subscriptionObserverMap.forEach(function(P){var d=P.observer;d&&!d.closed&&d.error({errors:[w({},new e.GraphQLError(b))]})}),this.subscriptionObserverMap.clear(),this.awsRealTimeSocket&&this.awsRealTimeSocket.close(),this.socketStatus=c.SOCKET_STATUS.CLOSED},F.prototype._timeoutStartSubscriptionAck=function(b){var P=this.subscriptionObserverMap.get(b)||{},d=P.observer,O=P.query,v=P.variables;d&&(this.subscriptionObserverMap.set(b,{observer:d,query:O,variables:v,subscriptionState:c.SUBSCRIPTION_STATUS.FAILED}),d&&!d.closed&&(d.error({errors:[w({},new e.GraphQLError("Subscription timeout "+JSON.stringify({query:O,variables:v})))]}),d.complete()),f("timeoutStartSubscription",JSON.stringify({query:O,variables:v})))},F.createWebSocket=function(b,P){return new WebSocket(b,P)},F._discoverAppSyncRealTimeEndpoint=function(b){return b.replace("https://","wss://").replace("http://","ws://").replace("appsync-api","appsync-realtime-api").replace("gogi-beta","grt-beta")},F}(n.ApolloLink);I.AppSyncRealTimeSubscriptionHandshakeLink=j},20399:function(ae,I,l){"use strict";var f,t=this&&this.__extends||(f=function(T,x){return(f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(_,g){_.__proto__=g}||function(_,g){for(var A in g)g.hasOwnProperty(A)&&(_[A]=g[A])})(T,x)},function(T,x){function _(){this.constructor=T}f(T,x),T.prototype=null===x?Object.create(x):(_.prototype=x.prototype,new _)}),w=this&&this.__assign||function(){return w=Object.assign||function(f){for(var T,x=1,_=arguments.length;x<_;x++)for(var g in T=arguments[x])Object.prototype.hasOwnProperty.call(T,g)&&(f[g]=T[g]);return f},w.apply(this,arguments)},p=this&&this.__awaiter||function(f,T,x,_){return new(x||(x=Promise))(function(A,L){function j(b){try{F(_.next(b))}catch(P){L(P)}}function Q(b){try{F(_.throw(b))}catch(P){L(P)}}function F(b){b.done?A(b.value):function g(A){return A instanceof x?A:new x(function(L){L(A)})}(b.value).then(j,Q)}F((_=_.apply(f,T||[])).next())})},r=this&&this.__generator||function(f,T){var _,g,A,L,x={label:0,sent:function(){if(1&A[0])throw A[1];return A[1]},trys:[],ops:[]};return L={next:j(0),throw:j(1),return:j(2)},"function"==typeof Symbol&&(L[Symbol.iterator]=function(){return this}),L;function j(F){return function(b){return function Q(F){if(_)throw new TypeError("Generator is already executing.");for(;x;)try{if(_=1,g&&(A=2&F[0]?g.return:F[0]?g.throw||((A=g.return)&&A.call(g),0):g.next)&&!(A=A.call(g,F[1])).done)return A;switch(g=0,A&&(F=[2&F[0],A.value]),F[0]){case 0:case 1:A=F;break;case 4:return x.label++,{value:F[1],done:!1};case 5:x.label++,g=F[1],F=[0];continue;case 7:F=x.ops.pop(),x.trys.pop();continue;default:if(!(A=(A=x.trys).length>0&&A[A.length-1])&&(6===F[0]||2===F[0])){x=0;continue}if(3===F[0]&&(!A||F[1]>A[0]&&F[1]<A[3])){x.label=F[1];break}if(6===F[0]&&x.label<A[1]){x.label=A[1],A=F;break}if(A&&x.label<A[2]){x.label=A[2],x.ops.push(F);break}A[2]&&x.ops.pop(),x.trys.pop();continue}F=T.call(f,x)}catch(b){F=[6,b],g=0}finally{_=A=0}if(5&F[0])throw F[1];return{value:F[0]?F[1]:void 0,done:!0}}([F,b])}}},n=this&&this.__rest||function(f,T){var x={};for(var _ in f)Object.prototype.hasOwnProperty.call(f,_)&&T.indexOf(_)<0&&(x[_]=f[_]);if(null!=f&&"function"==typeof Object.getOwnPropertySymbols){var g=0;for(_=Object.getOwnPropertySymbols(f);g<_.length;g++)T.indexOf(_[g])<0&&Object.prototype.propertyIsEnumerable.call(f,_[g])&&(x[_[g]]=f[_[g]])}return x};Object.defineProperty(I,"__esModule",{value:!0});var i=l(92955),s=l(13563),e=l(76353),a=l(56846),u=s.rootLogger.extend("subscriptions"),c=u.extend("mqtt");I.CONTROL_EVENTS_KEY="@@controlEvents";var y=function(f){function T(x){var _=f.call(this)||this;return _.topicObservers=new Map,_.clientObservers=new Map,_.onMessage=function(g,A,L){var j=JSON.parse(A),Q=_.topicObservers.get(g),F=L.reduce(function(b,P){return b[P]=b[P]||null,b},j.data||{});u("Message received",{data:F,topic:g,observers:Q}),Q.forEach(function(b){try{b.next(w(w({},j),{data:F}))}catch(P){u(P)}})},_.subsInfoContextKey=x,_}return t(T,f),T.prototype.request=function(x){var _,g=this,A=x.getContext(),j=A[this.subsInfoContextKey],Q=A.controlMessages,F=I.CONTROL_EVENTS_KEY,b=(void 0===Q?(_={},_[I.CONTROL_EVENTS_KEY]=void 0,_):Q)[F],P=j.extensions,d=(void 0===P?{subscription:{newSubscriptions:{},mqttConnections:[]}}:P).subscription,O=d.newSubscriptions,v=d.mqttConnections,M=j.errors,W=void 0===M?[]:M;if(W&&W.length)return new i.Observable(function(me){return me.error(new i.ApolloError({errorMessage:"Error during subscription handshake",extraInfo:{errors:W},graphQLErrors:W})),function(){}});var V=Object.keys(O).map(function(me){return O[me].topic}),J=new Set(V.filter(function(me){return g.topicObservers.has(me)})),ue=new Set(V.filter(function(me){return!J.has(me)}));return new i.Observable(function(me){J.forEach(function(he){g.topicObservers.get(he).add(me);var ie=Array.from(g.topicObservers.get(he)).find(function(){return!0}),K=Array.from(g.clientObservers).find(function(G){return G[1].observers.has(ie)})[0];g.clientObservers.get(K).observers.add(me)});var X=v.filter(function(he){return he.topics.some(function(ie){return ue.has(ie)})}).map(function(he){var ie=he.topics,K=n(he,["topics"]);return w(w({},K),{topics:ie.filter(function(G){return ue.has(G)})})});return g.connectNewClients(X,me,x),function(){Array.from(g.clientObservers).filter(function(ie){return ie[1].observers.has(me)}).forEach(function(ie){return g.clientObservers.get(ie[0]).observers.delete(me)}),g.clientObservers.forEach(function(ie){var G=ie.client;0===ie.observers.size&&(G.isConnected()&&G.disconnect(),g.clientObservers.delete(G.clientId))}),g.clientObservers=new Map(Array.from(g.clientObservers).filter(function(ie){return ie[1].observers.size>0})),g.topicObservers.forEach(function(ie){return ie.delete(me)}),g.topicObservers=new Map(Array.from(g.topicObservers).filter(function(ie){return ie[1].size>0}))}}).filter(function(me){var X=me.extensions,he=(void 0===X?{}:X).controlMsgType;return!0===b||!(typeof(void 0===he?void 0:he)<"u")})},T.prototype.connectNewClients=function(x,_,g){return p(this,void 0,void 0,function(){var L,j,Q,F=this;return r(this,function(b){return L=a.getMainDefinition(g.query).selectionSet.selections.map(function(P){return P.name.value}),j=Promise.all(x.map(function(P){return F.connectNewClient(P,_,L)})),Q=L.reduce(function(P,d){return P[d]=P[d]||null,P},{}),_.next({data:Q,extensions:{controlMsgType:"CONNECTED",controlMsgInfo:{connectionInfo:x}}}),[2,j]})})},T.prototype.connectNewClient=function(x,_,g){return p(this,void 0,void 0,function(){var A,L,j,Q,F=this;return r(this,function(b){switch(b.label){case 0:return j=x.topics,(Q=new e.Client(L=x.url,A=x.client)).trace=c.bind(null,A),Q.onConnectionLost=function(P){var d=P.errorCode,O=n(P,["errorCode"]);0!==d&&j.forEach(function(v){F.topicObservers.has(v)&&F.topicObservers.get(v).forEach(function(M){return M.error(w(w({},O),{permanent:!0}))})}),j.forEach(function(v){return F.topicObservers.delete(v)})},Q.onMessageArrived=function(P){return F.onMessage(P.destinationName,P.payloadString,g)},[4,new Promise(function(P,d){Q.connect({useSSL:0===L.indexOf("wss://"),mqttVersion:3,onSuccess:function(){return P(Q)},onFailure:d})})];case 1:return b.sent(),[4,this.subscribeToTopics(Q,j,_)];case 2:return b.sent(),[2,Q]}})})},T.prototype.subscribeToTopics=function(x,_,g){var A=this;return Promise.all(_.map(function(L){return A.subscribeToTopic(x,L,g)}))},T.prototype.subscribeToTopic=function(x,_,g){var A=this;return new Promise(function(L,j){x.subscribe(_,{onSuccess:function(){A.topicObservers.has(_)||A.topicObservers.set(_,new Set),A.clientObservers.has(x.clientId)||A.clientObservers.set(x.clientId,{client:x,observers:new Set}),A.topicObservers.get(_).add(g),A.clientObservers.get(x.clientId).observers.add(g),L(_)},onFailure:j})})},T}(i.ApolloLink);I.SubscriptionHandshakeLink=y},14328:(ae,I)=>{"use strict";var r;Object.defineProperty(I,"__esModule",{value:!0}),(r=I.SUBSCRIPTION_STATUS||(I.SUBSCRIPTION_STATUS={}))[r.PENDING=0]="PENDING",r[r.CONNECTED=1]="CONNECTED",r[r.FAILED=2]="FAILED",function(r){r[r.CLOSED=0]="CLOSED",r[r.READY=1]="READY",r[r.CONNECTING=2]="CONNECTING"}(I.SOCKET_STATUS||(I.SOCKET_STATUS={})),function(r){r.GQL_CONNECTION_INIT="connection_init",r.GQL_CONNECTION_ERROR="connection_error",r.GQL_CONNECTION_ACK="connection_ack",r.GQL_START="start",r.GQL_START_ACK="start_ack",r.GQL_DATA="data",r.GQL_CONNECTION_KEEP_ALIVE="ka",r.GQL_STOP="stop",r.GQL_COMPLETE="complete",r.GQL_ERROR="error"}(I.MESSAGE_TYPES||(I.MESSAGE_TYPES={})),function(r){r.CONNECTION_CLOSED="Connection closed",r.TIMEOUT_DISCONNECT="Timeout disconnect",r.SUBSCRIPTION_ACK="Subscription ack"}(I.CONTROL_MSG||(I.CONTROL_MSG={}))},13563:(ae,I,l)=>{"use strict";Object.defineProperty(I,"__esModule",{value:!0});var t=l(76699);I.rootLogger=t.default},76699:function(ae,I,l){"use strict";var t=this&&this.__spreadArrays||function(){for(var n=0,i=0,s=arguments.length;i<s;i++)n+=arguments[i].length;var e=Array(n),a=0;for(i=0;i<s;i++)for(var u=arguments[i],c=0,y=u.length;c<y;c++,a++)e[a]=u[c];return e};Object.defineProperty(I,"__esModule",{value:!0});var w=l(55354),p=w.default("aws-appsync"),r=function(n){void 0===n&&(n="");var i=n?t(this.namespace.split(":"),[n]).join(":"):this.namespace,s=w.default(i);return s.extend=r.bind(s),s};p.extend=r.bind(p),I.default=p},32104:function(ae,I,l){"use strict";var c,t=this&&this.__extends||(c=function(y,f){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(T,x){T.__proto__=x}||function(T,x){for(var _ in x)x.hasOwnProperty(_)&&(T[_]=x[_])})(y,f)},function(y,f){function T(){this.constructor=y}c(y,f),y.prototype=null===f?Object.create(f):(T.prototype=f.prototype,new T)}),w=this&&this.__awaiter||function(c,y,f,T){return new(f||(f=Promise))(function(_,g){function A(Q){try{j(T.next(Q))}catch(F){g(F)}}function L(Q){try{j(T.throw(Q))}catch(F){g(F)}}function j(Q){Q.done?_(Q.value):function x(_){return _ instanceof f?_:new f(function(g){g(_)})}(Q.value).then(A,L)}j((T=T.apply(c,y||[])).next())})},p=this&&this.__generator||function(c,y){var T,x,_,g,f={label:0,sent:function(){if(1&_[0])throw _[1];return _[1]},trys:[],ops:[]};return g={next:A(0),throw:A(1),return:A(2)},"function"==typeof Symbol&&(g[Symbol.iterator]=function(){return this}),g;function A(j){return function(Q){return function L(j){if(T)throw new TypeError("Generator is already executing.");for(;f;)try{if(T=1,x&&(_=2&j[0]?x.return:j[0]?x.throw||((_=x.return)&&_.call(x),0):x.next)&&!(_=_.call(x,j[1])).done)return _;switch(x=0,_&&(j=[2&j[0],_.value]),j[0]){case 0:case 1:_=j;break;case 4:return f.label++,{value:j[1],done:!1};case 5:f.label++,x=j[1],j=[0];continue;case 7:j=f.ops.pop(),f.trys.pop();continue;default:if(!(_=(_=f.trys).length>0&&_[_.length-1])&&(6===j[0]||2===j[0])){f=0;continue}if(3===j[0]&&(!_||j[1]>_[0]&&j[1]<_[3])){f.label=j[1];break}if(6===j[0]&&f.label<_[1]){f.label=_[1],_=j;break}if(_&&f.label<_[2]){f.label=_[2],f.ops.push(j);break}_[2]&&f.ops.pop(),f.trys.pop();continue}j=y.call(c,f)}catch(Q){j=[6,Q],x=0}finally{T=_=0}if(5&j[0])throw j[1];return{value:j[0]?j[1]:void 0,done:!0}}([j,Q])}}};Object.defineProperty(I,"__esModule",{value:!0});var n=l(13563).rootLogger.extend("retry"),s=function(c){function y(f){var T=c.call(this,f)||this;return T.nonRetryable=!0,T}return t(y,c),y}(Error);function a(c,y,f,T){return void 0===T&&(T=1),w(this,void 0,void 0,function(){var x,_;return p(this,function(g){switch(g.label){case 0:n("Attempt #"+T+" for this vars: "+JSON.stringify(y)),g.label=1;case 1:return g.trys.push([1,3,,8]),[4,c.apply(void 0,y)];case 2:return g.sent(),[3,8];case 3:if(x=g.sent(),n("error "+x),function(c){return c&&c.nonRetryable}(x))throw n("non retryable error"),x;return _=f(T,y,x),n("retryIn ",_),!1===_?[3,6]:[4,new Promise(function(A){return setTimeout(A,_)})];case 4:return g.sent(),[4,a(c,y,f,T+1)];case 5:return[2,g.sent()];case 6:throw x;case 7:return[3,8];case 8:return[2]}})})}I.NonRetryableError=s,I.retry=a,I.jitteredExponentialRetry=function(c,y,f){return void 0===f&&(f=5e3),a(c,y,function u(c){return function(T){var x=100*Math.pow(2,T)+100*Math.random();return!(x>c)&&x}}(f))}},76353:function(ae){var l;ae.exports=(l=function(t){var O,p=t.localStorage||(O={},{setItem:function(v,M){O[v]=M},getItem:function(v){return O[v]},removeItem:function(v){delete O[v]}}),r_CONNECT=1,r_CONNACK=2,r_PUBLISH=3,r_PUBACK=4,r_PUBREC=5,r_PUBREL=6,r_PUBCOMP=7,r_SUBSCRIBE=8,r_SUBACK=9,r_UNSUBSCRIBE=10,r_UNSUBACK=11,r_PINGREQ=12,r_PINGRESP=13,r_DISCONNECT=14,n=function(O,v){for(var M in O)if(O.hasOwnProperty(M)){if(!v.hasOwnProperty(M)){var W="Unknown property, "+M+". Valid properties are:";for(var V in v)v.hasOwnProperty(V)&&(W=W+" "+V);throw new Error(W)}if(typeof O[M]!==v[M])throw new Error(a(s.INVALID_TYPE,[typeof O[M],M]))}},i=function(O,v){return function(){return O.apply(v,arguments)}},s={OK:{code:0,text:"AMQJSC0000I OK."},CONNECT_TIMEOUT:{code:1,text:"AMQJSC0001E Connect timed out."},SUBSCRIBE_TIMEOUT:{code:2,text:"AMQJS0002E Subscribe timed out."},UNSUBSCRIBE_TIMEOUT:{code:3,text:"AMQJS0003E Unsubscribe timed out."},PING_TIMEOUT:{code:4,text:"AMQJS0004E Ping timed out."},INTERNAL_ERROR:{code:5,text:"AMQJS0005E Internal error. Error Message: {0}, Stack trace: {1}"},CONNACK_RETURNCODE:{code:6,text:"AMQJS0006E Bad Connack return code:{0} {1}."},SOCKET_ERROR:{code:7,text:"AMQJS0007E Socket error:{0}."},SOCKET_CLOSE:{code:8,text:"AMQJS0008I Socket closed."},MALFORMED_UTF:{code:9,text:"AMQJS0009E Malformed UTF data:{0} {1} {2}."},UNSUPPORTED:{code:10,text:"AMQJS0010E {0} is not supported by this browser."},INVALID_STATE:{code:11,text:"AMQJS0011E Invalid state {0}."},INVALID_TYPE:{code:12,text:"AMQJS0012E Invalid type {0} for {1}."},INVALID_ARGUMENT:{code:13,text:"AMQJS0013E Invalid argument {0} for {1}."},UNSUPPORTED_OPERATION:{code:14,text:"AMQJS0014E Unsupported operation."},INVALID_STORED_DATA:{code:15,text:"AMQJS0015E Invalid data in local storage key={0} value={1}."},INVALID_MQTT_MESSAGE_TYPE:{code:16,text:"AMQJS0016E Invalid MQTT message type {0}."},MALFORMED_UNICODE:{code:17,text:"AMQJS0017E Malformed Unicode string:{0} {1}."},BUFFER_FULL:{code:18,text:"AMQJS0018E Message buffer is full, maximum buffer size: {0}."}},e={0:"Connection Accepted",1:"Connection Refused: unacceptable protocol version",2:"Connection Refused: identifier rejected",3:"Connection Refused: server unavailable",4:"Connection Refused: bad user name or password",5:"Connection Refused: not authorized"},a=function(O,v){var M=O.text;if(v)for(var W,V,J=0;J<v.length;J++)if((V=M.indexOf(W="{"+J+"}"))>0){var ue=M.substring(0,V),me=M.substring(V+W.length);M=ue+v[J]+me}return M},u=[0,6,77,81,73,115,100,112,3],c=[0,4,77,81,84,84,4],y=function(O,v){for(var M in this.type=O,v)v.hasOwnProperty(M)&&(this[M]=v[M])};function f(O,v){var M=v,W=O[v],V=W>>4,J=W&=15;v+=1;var ue,me=0,X=1;do{if(v==O.length)return[null,M];me+=(127&(ue=O[v++]))*X,X*=128}while(128&ue);var he=v+me;if(he>O.length)return[null,M];var ie=new y(V);switch(V){case r_CONNACK:1&O[v++]&&(ie.sessionPresent=!0),ie.returnCode=O[v++];break;case r_PUBLISH:var G=J>>1&3,re=_(O,v),Y=j(O,v+=2,re);v+=re,G>0&&(ie.messageIdentifier=_(O,v),v+=2);var k=new l.Message(O.subarray(v,he));1==(1&J)&&(k.retained=!0),8==(8&J)&&(k.duplicate=!0),k.qos=G,k.destinationName=Y,ie.payloadMessage=k;break;case r_PUBACK:case r_PUBREC:case r_PUBREL:case r_PUBCOMP:case r_UNSUBACK:ie.messageIdentifier=_(O,v);break;case r_SUBACK:ie.messageIdentifier=_(O,v),ie.returnCode=O.subarray(v+=2,he)}return[ie,he]}function T(O,v,M){return v[M++]=O>>8,v[M++]=O%256,M}function x(O,v,M,W){return L(O,M,W=T(v,M,W)),W+v}function _(O,v){return 256*O[v]+O[v+1]}function A(O){for(var v=0,M=0;M<O.length;M++){var W=O.charCodeAt(M);W>2047?(55296<=W&&W<=56319&&(M++,v++),v+=3):W>127?v+=2:v++}return v}function L(O,v,M){for(var W=M,V=0;V<O.length;V++){var J=O.charCodeAt(V);if(55296<=J&&J<=56319){var ue=O.charCodeAt(++V);if(isNaN(ue))throw new Error(a(s.MALFORMED_UNICODE,[J,ue]));J=ue-56320+(J-55296<<10)+65536}J<=127?v[W++]=J:J<=2047?(v[W++]=J>>6&31|192,v[W++]=63&J|128):J<=65535?(v[W++]=J>>12&15|224,v[W++]=J>>6&63|128,v[W++]=63&J|128):(v[W++]=J>>18&7|240,v[W++]=J>>12&63|128,v[W++]=J>>6&63|128,v[W++]=63&J|128)}return v}function j(O,v,M){for(var V,W="",J=v;J<v+M;){var ue=O[J++];if(ue<128)V=ue;else{var me=O[J++]-128;if(me<0)throw new Error(a(s.MALFORMED_UTF,[ue.toString(16),me.toString(16),""]));if(ue<224)V=64*(ue-192)+me;else{var X=O[J++]-128;if(X<0)throw new Error(a(s.MALFORMED_UTF,[ue.toString(16),me.toString(16),X.toString(16)]));if(ue<240)V=4096*(ue-224)+64*me+X;else{var he=O[J++]-128;if(he<0)throw new Error(a(s.MALFORMED_UTF,[ue.toString(16),me.toString(16),X.toString(16),he.toString(16)]));if(!(ue<248))throw new Error(a(s.MALFORMED_UTF,[ue.toString(16),me.toString(16),X.toString(16),he.toString(16)]));V=262144*(ue-240)+4096*me+64*X+he}}}V>65535&&(V-=65536,W+=String.fromCharCode(55296+(V>>10)),V=56320+(1023&V)),W+=String.fromCharCode(V)}return W}y.prototype.encode=function(){var V,O=(15&this.type)<<4,v=0,M=[],W=0;switch(void 0!==this.messageIdentifier&&(v+=2),this.type){case r_CONNECT:switch(this.mqttVersion){case 3:v+=u.length+3;break;case 4:v+=c.length+3}v+=A(this.clientId)+2,void 0!==this.willMessage&&(v+=A(this.willMessage.destinationName)+2,(V=this.willMessage.payloadBytes)instanceof Uint8Array||(V=new Uint8Array(ue)),v+=V.byteLength+2),void 0!==this.userName&&(v+=A(this.userName)+2),void 0!==this.password&&(v+=A(this.password)+2);break;case r_SUBSCRIBE:O|=2;for(var J=0;J<this.topics.length;J++)M[J]=A(this.topics[J]),v+=M[J]+2;v+=this.requestedQos.length;break;case r_UNSUBSCRIBE:for(O|=2,J=0;J<this.topics.length;J++)M[J]=A(this.topics[J]),v+=M[J]+2;break;case r_PUBREL:O|=2;break;case r_PUBLISH:this.payloadMessage.duplicate&&(O|=8),O=O|=this.payloadMessage.qos<<1,this.payloadMessage.retained&&(O|=1),v+=(W=A(this.payloadMessage.destinationName))+2;var ue=this.payloadMessage.payloadBytes;v+=ue.byteLength,ue instanceof ArrayBuffer?ue=new Uint8Array(ue):ue instanceof Uint8Array||(ue=new Uint8Array(ue.buffer))}var me=function g(O){var v=new Array(1),M=0;do{var W=O%128;(O>>=7)>0&&(W|=128),v[M++]=W}while(O>0&&M<4);return v}(v),X=me.length+1,he=new ArrayBuffer(v+X),ie=new Uint8Array(he);if(ie[0]=O,ie.set(me,1),this.type==r_PUBLISH)X=x(this.payloadMessage.destinationName,W,ie,X);else if(this.type==r_CONNECT){switch(this.mqttVersion){case 3:ie.set(u,X),X+=u.length;break;case 4:ie.set(c,X),X+=c.length}var K=0;this.cleanSession&&(K=2),void 0!==this.willMessage&&(K|=4,K|=this.willMessage.qos<<3,this.willMessage.retained&&(K|=32)),void 0!==this.userName&&(K|=128),void 0!==this.password&&(K|=64),ie[X++]=K,X=T(this.keepAliveInterval,ie,X)}switch(void 0!==this.messageIdentifier&&(X=T(this.messageIdentifier,ie,X)),this.type){case r_CONNECT:X=x(this.clientId,A(this.clientId),ie,X),void 0!==this.willMessage&&(X=x(this.willMessage.destinationName,A(this.willMessage.destinationName),ie,X),X=T(V.byteLength,ie,X),ie.set(V,X),X+=V.byteLength),void 0!==this.userName&&(X=x(this.userName,A(this.userName),ie,X)),void 0!==this.password&&(X=x(this.password,A(this.password),ie,X));break;case r_PUBLISH:ie.set(ue,X);break;case r_SUBSCRIBE:for(J=0;J<this.topics.length;J++)X=x(this.topics[J],M[J],ie,X),ie[X++]=this.requestedQos[J];break;case r_UNSUBSCRIBE:for(J=0;J<this.topics.length;J++)X=x(this.topics[J],M[J],ie,X)}return he};var Q=function(O,v){this._client=O,this._keepAliveInterval=1e3*v,this.isReset=!1;var M=new y(r_PINGREQ).encode(),W=function(J){return function(){return V.apply(J)}},V=function(){this.isReset?(this.isReset=!1,this._client._trace("Pinger.doPing","send PINGREQ"),this._client.socket.send(M),this.timeout=setTimeout(W(this),this._keepAliveInterval)):(this._client._trace("Pinger.doPing","Timed out"),this._client._disconnected(s.PING_TIMEOUT.code,a(s.PING_TIMEOUT)))};this.reset=function(){this.isReset=!0,clearTimeout(this.timeout),this._keepAliveInterval>0&&(this.timeout=setTimeout(W(this),this._keepAliveInterval))},this.cancel=function(){clearTimeout(this.timeout)}},F=function(O,v,M,W){var J,ue,me;v||(v=30),this.timeout=setTimeout((J=M,ue=O,me=W,function(){return J.apply(ue,me)}),1e3*v),this.cancel=function(){clearTimeout(this.timeout)}},b=function(O,v,M,W,V){if(!("WebSocket"in t)||null===t.WebSocket)throw new Error(a(s.UNSUPPORTED,["WebSocket"]));if(!("ArrayBuffer"in t)||null===t.ArrayBuffer)throw new Error(a(s.UNSUPPORTED,["ArrayBuffer"]));for(var J in this._trace("Paho.Client",O,v,M,W,V),this.host=v,this.port=M,this.path=W,this.uri=O,this.clientId=V,this._wsuri=null,this._localKey=v+":"+M+("/mqtt"!=W?":"+W:"")+":"+V+":",this._msg_queue=[],this._buffered_msg_queue=[],this._sentMessages={},this._receivedMessages={},this._notify_msg_sent={},this._message_identifier=1,this._sequence=0,p)(0===J.indexOf("Sent:"+this._localKey)||0===J.indexOf("Received:"+this._localKey))&&this.restore(J)};b.prototype.host=null,b.prototype.port=null,b.prototype.path=null,b.prototype.uri=null,b.prototype.clientId=null,b.prototype.socket=null,b.prototype.connected=!1,b.prototype.maxMessageIdentifier=65536,b.prototype.connectOptions=null,b.prototype.hostIndex=null,b.prototype.onConnected=null,b.prototype.onConnectionLost=null,b.prototype.onMessageDelivered=null,b.prototype.onMessageArrived=null,b.prototype.traceFunction=null,b.prototype._msg_queue=null,b.prototype._buffered_msg_queue=null,b.prototype._connectTimeout=null,b.prototype.sendPinger=null,b.prototype.receivePinger=null,b.prototype._reconnectInterval=1,b.prototype._reconnecting=!1,b.prototype._reconnectTimeout=null,b.prototype.disconnectedPublishing=!1,b.prototype.disconnectedBufferSize=5e3,b.prototype.receiveBuffer=null,b.prototype._traceBuffer=null,b.prototype._MAX_TRACE_ENTRIES=100,b.prototype.connect=function(O){var v=this._traceMask(O,"password");if(this._trace("Client.connect",v,this.socket,this.connected),this.connected)throw new Error(a(s.INVALID_STATE,["already connected"]));if(this.socket)throw new Error(a(s.INVALID_STATE,["already connected"]));this._reconnecting&&(this._reconnectTimeout.cancel(),this._reconnectTimeout=null,this._reconnecting=!1),this.connectOptions=O,this._reconnectInterval=1,this._reconnecting=!1,O.uris?(this.hostIndex=0,this._doConnect(O.uris[0])):this._doConnect(this.uri)},b.prototype.subscribe=function(O,v){if(this._trace("Client.subscribe",O,v),!this.connected)throw new Error(a(s.INVALID_STATE,["not connected"]));var M=new y(r_SUBSCRIBE);M.topics=[O],M.requestedQos=void 0!==v.qos?[v.qos]:[0],v.onSuccess&&(M.onSuccess=function(W){v.onSuccess({invocationContext:v.invocationContext,grantedQos:W})}),v.onFailure&&(M.onFailure=function(W){v.onFailure({invocationContext:v.invocationContext,errorCode:W,errorMessage:a(W)})}),v.timeout&&(M.timeOut=new F(this,v.timeout,v.onFailure,[{invocationContext:v.invocationContext,errorCode:s.SUBSCRIBE_TIMEOUT.code,errorMessage:a(s.SUBSCRIBE_TIMEOUT)}])),this._requires_ack(M),this._schedule_message(M)},b.prototype.unsubscribe=function(O,v){if(this._trace("Client.unsubscribe",O,v),!this.connected)throw new Error(a(s.INVALID_STATE,["not connected"]));var M=new y(r_UNSUBSCRIBE);M.topics=[O],v.onSuccess&&(M.callback=function(){v.onSuccess({invocationContext:v.invocationContext})}),v.timeout&&(M.timeOut=new F(this,v.timeout,v.onFailure,[{invocationContext:v.invocationContext,errorCode:s.UNSUBSCRIBE_TIMEOUT.code,errorMessage:a(s.UNSUBSCRIBE_TIMEOUT)}])),this._requires_ack(M),this._schedule_message(M)},b.prototype.send=function(O){this._trace("Client.send",O);var v=new y(r_PUBLISH);if(v.payloadMessage=O,this.connected)O.qos>0?this._requires_ack(v):this.onMessageDelivered&&(this._notify_msg_sent[v]=this.onMessageDelivered(v.payloadMessage)),this._schedule_message(v);else{if(!this._reconnecting||!this.disconnectedPublishing)throw new Error(a(s.INVALID_STATE,["not connected"]));if(Object.keys(this._sentMessages).length+this._buffered_msg_queue.length>this.disconnectedBufferSize)throw new Error(a(s.BUFFER_FULL,[this.disconnectedBufferSize]));O.qos>0?this._requires_ack(v):(v.sequence=++this._sequence,this._buffered_msg_queue.unshift(v))}},b.prototype.disconnect=function(){if(this._trace("Client.disconnect"),this._reconnecting&&(this._reconnectTimeout.cancel(),this._reconnectTimeout=null,this._reconnecting=!1),!this.socket)throw new Error(a(s.INVALID_STATE,["not connecting or connected"]));var O=new y(r_DISCONNECT);this._notify_msg_sent[O]=i(this._disconnected,this),this._schedule_message(O)},b.prototype.getTraceLog=function(){if(null!==this._traceBuffer){for(var O in this._trace("Client.getTraceLog",new Date),this._trace("Client.getTraceLog in flight messages",this._sentMessages.length),this._sentMessages)this._trace("_sentMessages ",O,this._sentMessages[O]);for(var O in this._receivedMessages)this._trace("_receivedMessages ",O,this._receivedMessages[O]);return this._traceBuffer}},b.prototype.startTrace=function(){null===this._traceBuffer&&(this._traceBuffer=[]),this._trace("Client.startTrace",new Date,"@VERSION@-@BUILDLEVEL@")},b.prototype.stopTrace=function(){delete this._traceBuffer},b.prototype._doConnect=function(O){if(this.connectOptions.useSSL){var v=O.split(":");v[0]="wss",O=v.join(":")}this._wsuri=O,this.connected=!1,this.socket=this.connectOptions.mqttVersion<4?new WebSocket(O,["mqttv3.1"]):new WebSocket(O,["mqtt"]),this.socket.binaryType="arraybuffer",this.socket.onopen=i(this._on_socket_open,this),this.socket.onmessage=i(this._on_socket_message,this),this.socket.onerror=i(this._on_socket_error,this),this.socket.onclose=i(this._on_socket_close,this),this.sendPinger=new Q(this,this.connectOptions.keepAliveInterval),this.receivePinger=new Q(this,this.connectOptions.keepAliveInterval),this._connectTimeout&&(this._connectTimeout.cancel(),this._connectTimeout=null),this._connectTimeout=new F(this,this.connectOptions.timeout,this._disconnected,[s.CONNECT_TIMEOUT.code,a(s.CONNECT_TIMEOUT)])},b.prototype._schedule_message=function(O){this._msg_queue.unshift(O),this.connected&&this._process_queue()},b.prototype.store=function(O,v){var M={type:v.type,messageIdentifier:v.messageIdentifier,version:1};if(v.type!==r_PUBLISH)throw Error(a(s.INVALID_STORED_DATA,[O+this._localKey+v.messageIdentifier,M]));v.pubRecReceived&&(M.pubRecReceived=!0),M.payloadMessage={};for(var W="",V=v.payloadMessage.payloadBytes,J=0;J<V.length;J++)V[J]<=15?W=W+"0"+V[J].toString(16):W+=V[J].toString(16);M.payloadMessage.payloadHex=W,M.payloadMessage.qos=v.payloadMessage.qos,M.payloadMessage.destinationName=v.payloadMessage.destinationName,v.payloadMessage.duplicate&&(M.payloadMessage.duplicate=!0),v.payloadMessage.retained&&(M.payloadMessage.retained=!0),0===O.indexOf("Sent:")&&(void 0===v.sequence&&(v.sequence=++this._sequence),M.sequence=v.sequence),p.setItem(O+this._localKey+v.messageIdentifier,JSON.stringify(M))},b.prototype.restore=function(O){var v=p.getItem(O),M=JSON.parse(v),W=new y(M.type,M);if(M.type!==r_PUBLISH)throw Error(a(s.INVALID_STORED_DATA,[O,v]));for(var V=M.payloadMessage.payloadHex,J=new ArrayBuffer(V.length/2),ue=new Uint8Array(J),me=0;V.length>=2;){var X=parseInt(V.substring(0,2),16);V=V.substring(2,V.length),ue[me++]=X}var he=new l.Message(ue);he.qos=M.payloadMessage.qos,he.destinationName=M.payloadMessage.destinationName,M.payloadMessage.duplicate&&(he.duplicate=!0),M.payloadMessage.retained&&(he.retained=!0),W.payloadMessage=he,0===O.indexOf("Sent:"+this._localKey)?(W.payloadMessage.duplicate=!0,this._sentMessages[W.messageIdentifier]=W):0===O.indexOf("Received:"+this._localKey)&&(this._receivedMessages[W.messageIdentifier]=W)},b.prototype._process_queue=function(){for(var O=null;O=this._msg_queue.pop();)this._socket_send(O),this._notify_msg_sent[O]&&(this._notify_msg_sent[O](),delete this._notify_msg_sent[O])},b.prototype._requires_ack=function(O){var v=Object.keys(this._sentMessages).length;if(v>this.maxMessageIdentifier)throw Error("Too many messages:"+v);for(;void 0!==this._sentMessages[this._message_identifier];)this._message_identifier++;O.messageIdentifier=this._message_identifier,this._sentMessages[O.messageIdentifier]=O,O.type===r_PUBLISH&&this.store("Sent:",O),this._message_identifier===this.maxMessageIdentifier&&(this._message_identifier=1)},b.prototype._on_socket_open=function(){var O=new y(r_CONNECT,this.connectOptions);O.clientId=this.clientId,this._socket_send(O)},b.prototype._on_socket_message=function(O){this._trace("Client._on_socket_message",O.data);for(var v=this._deframeMessages(O.data),M=0;M<v.length;M+=1)this._handleMessage(v[M])},b.prototype._deframeMessages=function(O){var v=new Uint8Array(O),M=[];if(this.receiveBuffer){var W=new Uint8Array(this.receiveBuffer.length+v.length);W.set(this.receiveBuffer),W.set(v,this.receiveBuffer.length),v=W,delete this.receiveBuffer}try{for(var V=0;V<v.length;){var J=f(v,V),ue=J[0];if(V=J[1],null===ue)break;M.push(ue)}V<v.length&&(this.receiveBuffer=v.subarray(V))}catch(X){var me="undefined"==X.hasOwnProperty("stack")?X.stack.toString():"No Error Stack Available";return void this._disconnected(s.INTERNAL_ERROR.code,a(s.INTERNAL_ERROR,[X.message,me]))}return M},b.prototype._handleMessage=function(O){this._trace("Client._handleMessage",O);try{switch(O.type){case r_CONNACK:if(this._connectTimeout.cancel(),this._reconnectTimeout&&this._reconnectTimeout.cancel(),this.connectOptions.cleanSession){for(var v in this._sentMessages)p.removeItem("Sent:"+this._localKey+(K=this._sentMessages[v]).messageIdentifier);for(var v in this._sentMessages={},this._receivedMessages)p.removeItem("Received:"+this._localKey+(he=this._receivedMessages[v]).messageIdentifier);this._receivedMessages={}}if(0!==O.returnCode){this._disconnected(s.CONNACK_RETURNCODE.code,a(s.CONNACK_RETURNCODE,[O.returnCode,e[O.returnCode]]));break}this.connected=!0,this.connectOptions.uris&&(this.hostIndex=this.connectOptions.uris.length);var V=[];for(var M in this._sentMessages)this._sentMessages.hasOwnProperty(M)&&V.push(this._sentMessages[M]);if(this._buffered_msg_queue.length>0)for(var W=null;W=this._buffered_msg_queue.pop();)V.push(W),this.onMessageDelivered&&(this._notify_msg_sent[W]=this.onMessageDelivered(W.payloadMessage));V=V.sort(function(re,Y){return re.sequence-Y.sequence});for(var J=0,ue=V.length;J<ue;J++)if((K=V[J]).type==r_PUBLISH&&K.pubRecReceived){var me=new y(r_PUBREL,{messageIdentifier:K.messageIdentifier});this._schedule_message(me)}else this._schedule_message(K);this.connectOptions.onSuccess&&this.connectOptions.onSuccess({invocationContext:this.connectOptions.invocationContext});var X=!1;this._reconnecting&&(X=!0,this._reconnectInterval=1,this._reconnecting=!1),this._connected(X,this._wsuri),this._process_queue();break;case r_PUBLISH:this._receivePublish(O);break;case r_PUBACK:(K=this._sentMessages[O.messageIdentifier])&&(delete this._sentMessages[O.messageIdentifier],p.removeItem("Sent:"+this._localKey+O.messageIdentifier),this.onMessageDelivered&&this.onMessageDelivered(K.payloadMessage));break;case r_PUBREC:(K=this._sentMessages[O.messageIdentifier])&&(K.pubRecReceived=!0,me=new y(r_PUBREL,{messageIdentifier:O.messageIdentifier}),this.store("Sent:",K),this._schedule_message(me));break;case r_PUBREL:var he=this._receivedMessages[O.messageIdentifier];p.removeItem("Received:"+this._localKey+O.messageIdentifier),he&&(this._receiveMessage(he),delete this._receivedMessages[O.messageIdentifier]);var ie=new y(r_PUBCOMP,{messageIdentifier:O.messageIdentifier});this._schedule_message(ie);break;case r_PUBCOMP:var K=this._sentMessages[O.messageIdentifier];delete this._sentMessages[O.messageIdentifier],p.removeItem("Sent:"+this._localKey+O.messageIdentifier),this.onMessageDelivered&&this.onMessageDelivered(K.payloadMessage);break;case r_SUBACK:(K=this._sentMessages[O.messageIdentifier])&&(K.timeOut&&K.timeOut.cancel(),128===O.returnCode[0]?K.onFailure&&K.onFailure(O.returnCode):K.onSuccess&&K.onSuccess(O.returnCode),delete this._sentMessages[O.messageIdentifier]);break;case r_UNSUBACK:(K=this._sentMessages[O.messageIdentifier])&&(K.timeOut&&K.timeOut.cancel(),K.callback&&K.callback(),delete this._sentMessages[O.messageIdentifier]);break;case r_PINGRESP:this.sendPinger.reset();break;default:this._disconnected(s.INVALID_MQTT_MESSAGE_TYPE.code,a(s.INVALID_MQTT_MESSAGE_TYPE,[O.type]))}}catch(re){var G="undefined"==re.hasOwnProperty("stack")?re.stack.toString():"No Error Stack Available";return void this._disconnected(s.INTERNAL_ERROR.code,a(s.INTERNAL_ERROR,[re.message,G]))}},b.prototype._on_socket_error=function(O){this._reconnecting||this._disconnected(s.SOCKET_ERROR.code,a(s.SOCKET_ERROR,[O.data]))},b.prototype._on_socket_close=function(){this._reconnecting||this._disconnected(s.SOCKET_CLOSE.code,a(s.SOCKET_CLOSE))},b.prototype._socket_send=function(O){if(1==O.type){var v=this._traceMask(O,"password");this._trace("Client._socket_send",v)}else this._trace("Client._socket_send",O);this.socket.send(O.encode()),this.sendPinger.reset()},b.prototype._receivePublish=function(O){switch(O.payloadMessage.qos){case"undefined":case 0:this._receiveMessage(O);break;case 1:var v=new y(r_PUBACK,{messageIdentifier:O.messageIdentifier});this._schedule_message(v),this._receiveMessage(O);break;case 2:this._receivedMessages[O.messageIdentifier]=O,this.store("Received:",O);var M=new y(r_PUBREC,{messageIdentifier:O.messageIdentifier});this._schedule_message(M);break;default:throw Error("Invaild qos="+O.payloadMessage.qos)}},b.prototype._receiveMessage=function(O){this.onMessageArrived&&this.onMessageArrived(O.payloadMessage)},b.prototype._connected=function(O,v){this.onConnected&&this.onConnected(O,v)},b.prototype._reconnect=function(){this._trace("Client._reconnect"),this.connected||(this._reconnecting=!0,this.sendPinger.cancel(),this.receivePinger.cancel(),this._reconnectInterval<128&&(this._reconnectInterval=2*this._reconnectInterval),this.connectOptions.uris?(this.hostIndex=0,this._doConnect(this.connectOptions.uris[0])):this._doConnect(this.uri))},b.prototype._disconnected=function(O,v){if(this._trace("Client._disconnected",O,v),void 0!==O&&this._reconnecting)this._reconnectTimeout=new F(this,this._reconnectInterval,this._reconnect);else if(this.sendPinger.cancel(),this.receivePinger.cancel(),this._connectTimeout&&(this._connectTimeout.cancel(),this._connectTimeout=null),this._msg_queue=[],this._buffered_msg_queue=[],this._notify_msg_sent={},this.socket&&(this.socket.onopen=null,this.socket.onmessage=null,this.socket.onerror=null,this.socket.onclose=null,1===this.socket.readyState&&this.socket.close(),delete this.socket),this.connectOptions.uris&&this.hostIndex<this.connectOptions.uris.length-1)this.hostIndex++,this._doConnect(this.connectOptions.uris[this.hostIndex]);else if(void 0===O&&(O=s.OK.code,v=a(s.OK)),this.connected){if(this.connected=!1,this.onConnectionLost&&this.onConnectionLost({errorCode:O,errorMessage:v,reconnect:this.connectOptions.reconnect,uri:this._wsuri}),O!==s.OK.code&&this.connectOptions.reconnect)return this._reconnectInterval=1,void this._reconnect()}else 4===this.connectOptions.mqttVersion&&!1===this.connectOptions.mqttVersionExplicit?(this._trace("Failed to connect V4, dropping back to V3"),this.connectOptions.mqttVersion=3,this.connectOptions.uris?(this.hostIndex=0,this._doConnect(this.connectOptions.uris[0])):this._doConnect(this.uri)):this.connectOptions.onFailure&&this.connectOptions.onFailure({invocationContext:this.connectOptions.invocationContext,errorCode:O,errorMessage:v})},b.prototype._trace=function(){if(this.traceFunction){var O=Array.prototype.slice.call(arguments);for(var v in O)typeof O[v]<"u"&&O.splice(v,1,JSON.stringify(O[v]));var M=O.join("");this.traceFunction({severity:"Debug",message:M})}if(null!==this._traceBuffer){v=0;for(var W=arguments.length;v<W;v++)this._traceBuffer.length==this._MAX_TRACE_ENTRIES&&this._traceBuffer.shift(),this._traceBuffer.push(0===v||typeof arguments[v]>"u"?arguments[v]:" "+JSON.stringify(arguments[v]))}},b.prototype._traceMask=function(O,v){var M={};for(var W in O)O.hasOwnProperty(W)&&(M[W]=W==v?"******":O[W]);return M};var d=function(O){var v;if(!("string"==typeof O||O instanceof ArrayBuffer||ArrayBuffer.isView(O)&&!(O instanceof DataView)))throw a(s.INVALID_ARGUMENT,[O,"newPayload"]);v=O;var M,W=0,V=!1,J=!1;Object.defineProperties(this,{payloadString:{enumerable:!0,get:function(){return"string"==typeof v?v:j(v,0,v.length)}},payloadBytes:{enumerable:!0,get:function(){if("string"==typeof v){var ue=new ArrayBuffer(A(v)),me=new Uint8Array(ue);return L(v,me,0),me}return v}},destinationName:{enumerable:!0,get:function(){return M},set:function(ue){if("string"!=typeof ue)throw new Error(a(s.INVALID_ARGUMENT,[ue,"newDestinationName"]));M=ue}},qos:{enumerable:!0,get:function(){return W},set:function(ue){if(0!==ue&&1!==ue&&2!==ue)throw new Error("Invalid argument:"+ue);W=ue}},retained:{enumerable:!0,get:function(){return V},set:function(ue){if("boolean"!=typeof ue)throw new Error(a(s.INVALID_ARGUMENT,[ue,"newRetained"]));V=ue}},topic:{enumerable:!0,get:function(){return M},set:function(ue){M=ue}},duplicate:{enumerable:!0,get:function(){return J},set:function(ue){J=ue}}})};return{Client:function(O,v,M,W){var V;if("string"!=typeof O)throw new Error(a(s.INVALID_TYPE,[typeof O,"host"]));if(2==arguments.length){W=v;var J=(V=O).match(/^(wss?):\/\/((\[(.+)\])|([^\/]+?))(:(\d+))?(\/.*)$/);if(!J)throw new Error(a(s.INVALID_ARGUMENT,[O,"host"]));O=J[4]||J[2],v=parseInt(J[7]),M=J[8]}else{if(3==arguments.length&&(W=M,M="/mqtt"),"number"!=typeof v||v<0)throw new Error(a(s.INVALID_TYPE,[typeof v,"port"]));if("string"!=typeof M)throw new Error(a(s.INVALID_TYPE,[typeof M,"path"]));var ue=-1!==O.indexOf(":")&&"["!==O.slice(0,1)&&"]"!==O.slice(-1);V="ws://"+(ue?"["+O+"]":O)+":"+v+M}for(var me=0,X=0;X<W.length;X++){var he=W.charCodeAt(X);55296<=he&&he<=56319&&X++,me++}if("string"!=typeof W||me>65535)throw new Error(a(s.INVALID_ARGUMENT,[W,"clientId"]));var ie=new b(V,O,v,M,W);Object.defineProperties(this,{host:{get:function(){return O},set:function(){throw new Error(a(s.UNSUPPORTED_OPERATION))}},port:{get:function(){return v},set:function(){throw new Error(a(s.UNSUPPORTED_OPERATION))}},path:{get:function(){return M},set:function(){throw new Error(a(s.UNSUPPORTED_OPERATION))}},uri:{get:function(){return V},set:function(){throw new Error(a(s.UNSUPPORTED_OPERATION))}},clientId:{get:function(){return ie.clientId},set:function(){throw new Error(a(s.UNSUPPORTED_OPERATION))}},onConnected:{get:function(){return ie.onConnected},set:function(K){if("function"!=typeof K)throw new Error(a(s.INVALID_TYPE,[typeof K,"onConnected"]));ie.onConnected=K}},disconnectedPublishing:{get:function(){return ie.disconnectedPublishing},set:function(K){ie.disconnectedPublishing=K}},disconnectedBufferSize:{get:function(){return ie.disconnectedBufferSize},set:function(K){ie.disconnectedBufferSize=K}},onConnectionLost:{get:function(){return ie.onConnectionLost},set:function(K){if("function"!=typeof K)throw new Error(a(s.INVALID_TYPE,[typeof K,"onConnectionLost"]));ie.onConnectionLost=K}},onMessageDelivered:{get:function(){return ie.onMessageDelivered},set:function(K){if("function"!=typeof K)throw new Error(a(s.INVALID_TYPE,[typeof K,"onMessageDelivered"]));ie.onMessageDelivered=K}},onMessageArrived:{get:function(){return ie.onMessageArrived},set:function(K){if("function"!=typeof K)throw new Error(a(s.INVALID_TYPE,[typeof K,"onMessageArrived"]));ie.onMessageArrived=K}},trace:{get:function(){return ie.traceFunction},set:function(K){if("function"!=typeof K)throw new Error(a(s.INVALID_TYPE,[typeof K,"onTrace"]));ie.traceFunction=K}}}),this.connect=function(K){if(n(K=K||{},{timeout:"number",userName:"string",password:"string",willMessage:"object",keepAliveInterval:"number",cleanSession:"boolean",useSSL:"boolean",invocationContext:"object",onSuccess:"function",onFailure:"function",hosts:"object",ports:"object",reconnect:"boolean",mqttVersion:"number",mqttVersionExplicit:"boolean",uris:"object"}),void 0===K.keepAliveInterval&&(K.keepAliveInterval=60),K.mqttVersion>4||K.mqttVersion<3)throw new Error(a(s.INVALID_ARGUMENT,[K.mqttVersion,"connectOptions.mqttVersion"]));if(void 0===K.mqttVersion?(K.mqttVersionExplicit=!1,K.mqttVersion=4):K.mqttVersionExplicit=!0,void 0!==K.password&&void 0===K.userName)throw new Error(a(s.INVALID_ARGUMENT,[K.password,"connectOptions.password"]));if(K.willMessage){if(!(K.willMessage instanceof d))throw new Error(a(s.INVALID_TYPE,[K.willMessage,"connectOptions.willMessage"]));if(K.willMessage.stringPayload=null,typeof K.willMessage.destinationName>"u")throw new Error(a(s.INVALID_TYPE,[typeof K.willMessage.destinationName,"connectOptions.willMessage.destinationName"]))}if(typeof K.cleanSession>"u"&&(K.cleanSession=!0),K.hosts){if(!(K.hosts instanceof Array))throw new Error(a(s.INVALID_ARGUMENT,[K.hosts,"connectOptions.hosts"]));if(K.hosts.length<1)throw new Error(a(s.INVALID_ARGUMENT,[K.hosts,"connectOptions.hosts"]));for(var G=!1,re=0;re<K.hosts.length;re++){if("string"!=typeof K.hosts[re])throw new Error(a(s.INVALID_TYPE,[typeof K.hosts[re],"connectOptions.hosts["+re+"]"]));if(/^(wss?):\/\/((\[(.+)\])|([^\/]+?))(:(\d+))?(\/.*)$/.test(K.hosts[re])){if(0===re)G=!0;else if(!G)throw new Error(a(s.INVALID_ARGUMENT,[K.hosts[re],"connectOptions.hosts["+re+"]"]))}else if(G)throw new Error(a(s.INVALID_ARGUMENT,[K.hosts[re],"connectOptions.hosts["+re+"]"]))}if(G)K.uris=K.hosts;else{if(!K.ports)throw new Error(a(s.INVALID_ARGUMENT,[K.ports,"connectOptions.ports"]));if(!(K.ports instanceof Array))throw new Error(a(s.INVALID_ARGUMENT,[K.ports,"connectOptions.ports"]));if(K.hosts.length!==K.ports.length)throw new Error(a(s.INVALID_ARGUMENT,[K.ports,"connectOptions.ports"]));for(K.uris=[],re=0;re<K.hosts.length;re++){if("number"!=typeof K.ports[re]||K.ports[re]<0)throw new Error(a(s.INVALID_TYPE,[typeof K.ports[re],"connectOptions.ports["+re+"]"]));var Y=K.hosts[re],k=K.ports[re],C=-1!==Y.indexOf(":");K.uris.push(V="ws://"+(C?"["+Y+"]":Y)+":"+k+M)}}}ie.connect(K)},this.subscribe=function(K,G){if("string"!=typeof K)throw new Error("Invalid argument:"+K);if(n(G=G||{},{qos:"number",invocationContext:"object",onSuccess:"function",onFailure:"function",timeout:"number"}),G.timeout&&!G.onFailure)throw new Error("subscribeOptions.timeout specified with no onFailure callback.");if(typeof G.qos<"u"&&0!==G.qos&&1!==G.qos&&2!==G.qos)throw new Error(a(s.INVALID_ARGUMENT,[G.qos,"subscribeOptions.qos"]));ie.subscribe(K,G)},this.unsubscribe=function(K,G){if("string"!=typeof K)throw new Error("Invalid argument:"+K);if(n(G=G||{},{invocationContext:"object",onSuccess:"function",onFailure:"function",timeout:"number"}),G.timeout&&!G.onFailure)throw new Error("unsubscribeOptions.timeout specified with no onFailure callback.");ie.unsubscribe(K,G)},this.send=function(K,G,re,Y){var k;if(0===arguments.length)throw new Error("Invalid argument.length");if(1==arguments.length){if(!(K instanceof d)&&"string"!=typeof K)throw new Error("Invalid argument:"+typeof K);if(typeof(k=K).destinationName>"u")throw new Error(a(s.INVALID_ARGUMENT,[k.destinationName,"Message.destinationName"]));ie.send(k)}else(k=new d(G)).destinationName=K,arguments.length>=3&&(k.qos=re),arguments.length>=4&&(k.retained=Y),ie.send(k)},this.publish=function(K,G,re,Y){var k;if(0===arguments.length)throw new Error("Invalid argument.length");if(1==arguments.length){if(!(K instanceof d)&&"string"!=typeof K)throw new Error("Invalid argument:"+typeof K);if(typeof(k=K).destinationName>"u")throw new Error(a(s.INVALID_ARGUMENT,[k.destinationName,"Message.destinationName"]));ie.send(k)}else(k=new d(G)).destinationName=K,arguments.length>=3&&(k.qos=re),arguments.length>=4&&(k.retained=Y),ie.send(k)},this.disconnect=function(){ie.disconnect()},this.getTraceLog=function(){return ie.getTraceLog()},this.startTrace=function(){ie.startTrace()},this.stopTrace=function(){ie.stopTrace()},this.isConnected=function(){return ie.connected}},Message:d}}(typeof global<"u"?global:typeof self<"u"?self:typeof window<"u"?window:{}),l)},55354:(ae,I,l)=>{function n(){var s;try{s=I.storage.debug}catch{}return!s&&typeof process<"u"&&"env"in process&&(s=process.env.DEBUG),s}(I=ae.exports=l(81326)).log=function p(){return"object"==typeof console&&console.log&&Function.prototype.apply.call(console.log,console,arguments)},I.formatArgs=function w(s){var e=this.useColors;if(s[0]=(e?"%c":"")+this.namespace+(e?" %c":" ")+s[0]+(e?"%c ":" ")+"+"+I.humanize(this.diff),e){var a="color: "+this.color;s.splice(1,0,a,"color: inherit");var u=0,c=0;s[0].replace(/%[a-zA-Z%]/g,function(y){"%%"!==y&&(u++,"%c"===y&&(c=u))}),s.splice(c,0,a)}},I.save=function r(s){try{null==s?I.storage.removeItem("debug"):I.storage.debug=s}catch{}},I.load=n,I.useColors=function t(){return!!(typeof window<"u"&&window.process&&"renderer"===window.process.type)||typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)},I.storage=typeof chrome<"u"&&typeof chrome.storage<"u"?chrome.storage.local:function i(){try{return window.localStorage}catch{}}(),I.colors=["lightseagreen","forestgreen","goldenrod","dodgerblue","darkorchid","crimson"],I.formatters.j=function(s){try{return JSON.stringify(s)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}},I.enable(n())},81326:(ae,I,l)=>{var t;function p(e){function a(){if(a.enabled){var u=a,c=+new Date;u.diff=c-(t||c),u.prev=t,u.curr=c,t=c;for(var f=new Array(arguments.length),T=0;T<f.length;T++)f[T]=arguments[T];f[0]=I.coerce(f[0]),"string"!=typeof f[0]&&f.unshift("%O");var x=0;f[0]=f[0].replace(/%([a-zA-Z%])/g,function(g,A){if("%%"===g)return g;x++;var L=I.formatters[A];return"function"==typeof L&&(g=L.call(u,f[x]),f.splice(x,1),x--),g}),I.formatArgs.call(u,f),(a.log||I.log||console.log.bind(console)).apply(u,f)}}return a.namespace=e,a.enabled=I.enabled(e),a.useColors=I.useColors(),a.color=function w(e){var u,a=0;for(u in e)a=(a<<5)-a+e.charCodeAt(u),a|=0;return I.colors[Math.abs(a)%I.colors.length]}(e),"function"==typeof I.init&&I.init(a),a}(I=ae.exports=p.debug=p.default=p).coerce=function s(e){return e instanceof Error?e.stack||e.message:e},I.disable=function n(){I.enable("")},I.enable=function r(e){I.save(e),I.names=[],I.skips=[];for(var a=("string"==typeof e?e:"").split(/[\s,]+/),u=a.length,c=0;c<u;c++)a[c]&&("-"===(e=a[c].replace(/\*/g,".*?"))[0]?I.skips.push(new RegExp("^"+e.substr(1)+"$")):I.names.push(new RegExp("^"+e+"$")))},I.enabled=function i(e){var a,u;for(a=0,u=I.skips.length;a<u;a++)if(I.skips[a].test(e))return!1;for(a=0,u=I.names.length;a<u;a++)if(I.names[a].test(e))return!0;return!1},I.humanize=l(88008),I.names=[],I.skips=[],I.formatters={}},88008:ae=>{var I=1e3,l=60*I,t=60*l,w=24*t;function s(e,a,u){if(!(e<a))return e<1.5*a?Math.floor(e/a)+" "+u:Math.ceil(e/a)+" "+u+"s"}ae.exports=function(e,a){a=a||{};var u=typeof e;if("string"===u&&e.length>0)return function r(e){if(!((e=String(e)).length>100)){var a=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(e);if(a){var u=parseFloat(a[1]);switch((a[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return 315576e5*u;case"days":case"day":case"d":return u*w;case"hours":case"hour":case"hrs":case"hr":case"h":return u*t;case"minutes":case"minute":case"mins":case"min":case"m":return u*l;case"seconds":case"second":case"secs":case"sec":case"s":return u*I;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return u;default:return}}}}(e);if("number"===u&&!1===isNaN(e))return a.long?function i(e){return s(e,w,"day")||s(e,t,"hour")||s(e,l,"minute")||s(e,I,"second")||e+" ms"}(e):function n(e){return e>=w?Math.round(e/w)+"d":e>=t?Math.round(e/t)+"h":e>=l?Math.round(e/l)+"m":e>=I?Math.round(e/I)+"s":e+"ms"}(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}},13566:(ae,I,l)=>{l(22488);var t=l(86462);typeof window<"u"&&(window.AWS=t),ae.exports=t,typeof self<"u"&&(self.AWS=t)},56549:(ae,I,l)=>{l(22488);var t=l(86462),w=t.Service,p=t.apiLoader;p.services.cognitoidentity={},t.CognitoIdentity=w.defineService("cognitoidentity",["2014-06-30"]),Object.defineProperty(p.services.cognitoidentity,"2014-06-30",{get:function(){var n=l(79476);return n.paginators=l(85464).o,n},enumerable:!0,configurable:!0}),ae.exports=t.CognitoIdentity},81999:(ae,I,l)=>{l(22488);var t=l(86462),w=t.Service,p=t.apiLoader;p.services.sts={},t.STS=w.defineService("sts",["2011-06-15"]),l(73884),Object.defineProperty(p.services.sts,"2011-06-15",{get:function(){var n=l(3554);return n.paginators=l(31152).o,n},enumerable:!0,configurable:!0}),ae.exports=t.STS},91151:ae=>{function I(l,t){if(!I.services.hasOwnProperty(l))throw new Error("InvalidService: Failed to load api for "+l);return I.services[l][t]}I.services={},ae.exports=I},79427:(ae,I,l)=>{var t=l(11943),w=l(91777),p=l(47539),r=l(68469);ae.exports={createHash:function(i){if("md5"===(i=i.toLowerCase()))return new w;if("sha256"===i)return new r;if("sha1"===i)return new p;throw new Error("Hash algorithm "+i+" is not supported in the browser SDK")},createHmac:function(i,s){if("md5"===(i=i.toLowerCase()))return new t(w,s);if("sha256"===i)return new t(r,s);if("sha1"===i)return new t(p,s);throw new Error("HMAC algorithm "+i+" is not supported in the browser SDK")},createSign:function(){throw new Error("createSign is not implemented in the browser")}}},42959:(ae,I,l)=>{var t=l(81082).lW;typeof ArrayBuffer<"u"&&typeof ArrayBuffer.isView>"u"&&(ArrayBuffer.isView=function(n){return w.indexOf(Object.prototype.toString.call(n))>-1});var w=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]","[object DataView]"];ae.exports={isEmptyData:function p(n){return"string"==typeof n?0===n.length:0===n.byteLength},convertToBuffer:function r(n){return"string"==typeof n&&(n=new t(n,"utf8")),ArrayBuffer.isView(n)?new Uint8Array(n.buffer,n.byteOffset,n.byteLength/Uint8Array.BYTES_PER_ELEMENT):new Uint8Array(n)}}},11943:(ae,I,l)=>{var t=l(42959);function w(r,n){this.hash=new r,this.outer=new r;var i=function p(r,n){var i=t.convertToBuffer(n);if(i.byteLength>r.BLOCK_SIZE){var s=new r;s.update(i),i=s.digest()}var e=new Uint8Array(r.BLOCK_SIZE);return e.set(i),e}(r,n),s=new Uint8Array(r.BLOCK_SIZE);s.set(i);for(var e=0;e<r.BLOCK_SIZE;e++)i[e]^=54,s[e]^=92;for(this.hash.update(i),this.outer.update(s),e=0;e<i.byteLength;e++)i[e]=0}ae.exports=w,w.prototype.update=function(r){if(t.isEmptyData(r)||this.error)return this;try{this.hash.update(t.convertToBuffer(r))}catch(n){this.error=n}return this},w.prototype.digest=function(r){return this.outer.finished||this.outer.update(this.hash.digest()),this.outer.digest(r)}},91777:(ae,I,l)=>{var t=l(42959),w=l(81082).lW;function i(){this.state=[1732584193,4023233417,2562383102,271733878],this.buffer=new DataView(new ArrayBuffer(64)),this.bufferLength=0,this.bytesHashed=0,this.finished=!1}function s(y,f,T,x,_,g){return((f=(f+y&4294967295)+(x+g&4294967295)&4294967295)<<_|f>>>32-_)+T&4294967295}function e(y,f,T,x,_,g,A){return s(f&T|~f&x,y,f,_,g,A)}function a(y,f,T,x,_,g,A){return s(f&x|T&~x,y,f,_,g,A)}function u(y,f,T,x,_,g,A){return s(f^T^x,y,f,_,g,A)}function c(y,f,T,x,_,g,A){return s(T^(f|~x),y,f,_,g,A)}ae.exports=i,i.BLOCK_SIZE=64,i.prototype.update=function(y){if(t.isEmptyData(y))return this;if(this.finished)throw new Error("Attempted to update an already finished hash.");var f=t.convertToBuffer(y),T=0,x=f.byteLength;for(this.bytesHashed+=x;x>0;)this.buffer.setUint8(this.bufferLength++,f[T++]),x--,64===this.bufferLength&&(this.hashBuffer(),this.bufferLength=0);return this},i.prototype.digest=function(y){if(!this.finished){var f=this,T=f.buffer,x=f.bufferLength,g=8*f.bytesHashed;if(T.setUint8(this.bufferLength++,128),x%64>=56){for(var A=this.bufferLength;A<64;A++)T.setUint8(A,0);this.hashBuffer(),this.bufferLength=0}for(A=this.bufferLength;A<56;A++)T.setUint8(A,0);T.setUint32(56,g>>>0,!0),T.setUint32(60,Math.floor(g/4294967296),!0),this.hashBuffer(),this.finished=!0}var L=new DataView(new ArrayBuffer(16));for(A=0;A<4;A++)L.setUint32(4*A,this.state[A],!0);var j=new w(L.buffer,L.byteOffset,L.byteLength);return y?j.toString(y):j},i.prototype.hashBuffer=function(){var f=this.buffer,T=this.state,x=T[0],_=T[1],g=T[2],A=T[3];x=e(x,_,g,A,f.getUint32(0,!0),7,3614090360),A=e(A,x,_,g,f.getUint32(4,!0),12,3905402710),g=e(g,A,x,_,f.getUint32(8,!0),17,606105819),_=e(_,g,A,x,f.getUint32(12,!0),22,3250441966),x=e(x,_,g,A,f.getUint32(16,!0),7,4118548399),A=e(A,x,_,g,f.getUint32(20,!0),12,1200080426),g=e(g,A,x,_,f.getUint32(24,!0),17,2821735955),_=e(_,g,A,x,f.getUint32(28,!0),22,4249261313),x=e(x,_,g,A,f.getUint32(32,!0),7,1770035416),A=e(A,x,_,g,f.getUint32(36,!0),12,2336552879),g=e(g,A,x,_,f.getUint32(40,!0),17,4294925233),_=e(_,g,A,x,f.getUint32(44,!0),22,2304563134),x=e(x,_,g,A,f.getUint32(48,!0),7,1804603682),A=e(A,x,_,g,f.getUint32(52,!0),12,4254626195),g=e(g,A,x,_,f.getUint32(56,!0),17,2792965006),x=a(x,_=e(_,g,A,x,f.getUint32(60,!0),22,1236535329),g,A,f.getUint32(4,!0),5,4129170786),A=a(A,x,_,g,f.getUint32(24,!0),9,3225465664),g=a(g,A,x,_,f.getUint32(44,!0),14,643717713),_=a(_,g,A,x,f.getUint32(0,!0),20,3921069994),x=a(x,_,g,A,f.getUint32(20,!0),5,3593408605),A=a(A,x,_,g,f.getUint32(40,!0),9,38016083),g=a(g,A,x,_,f.getUint32(60,!0),14,3634488961),_=a(_,g,A,x,f.getUint32(16,!0),20,3889429448),x=a(x,_,g,A,f.getUint32(36,!0),5,568446438),A=a(A,x,_,g,f.getUint32(56,!0),9,3275163606),g=a(g,A,x,_,f.getUint32(12,!0),14,4107603335),_=a(_,g,A,x,f.getUint32(32,!0),20,1163531501),x=a(x,_,g,A,f.getUint32(52,!0),5,2850285829),A=a(A,x,_,g,f.getUint32(8,!0),9,4243563512),g=a(g,A,x,_,f.getUint32(28,!0),14,1735328473),x=u(x,_=a(_,g,A,x,f.getUint32(48,!0),20,2368359562),g,A,f.getUint32(20,!0),4,4294588738),A=u(A,x,_,g,f.getUint32(32,!0),11,2272392833),g=u(g,A,x,_,f.getUint32(44,!0),16,1839030562),_=u(_,g,A,x,f.getUint32(56,!0),23,4259657740),x=u(x,_,g,A,f.getUint32(4,!0),4,2763975236),A=u(A,x,_,g,f.getUint32(16,!0),11,1272893353),g=u(g,A,x,_,f.getUint32(28,!0),16,4139469664),_=u(_,g,A,x,f.getUint32(40,!0),23,3200236656),x=u(x,_,g,A,f.getUint32(52,!0),4,681279174),A=u(A,x,_,g,f.getUint32(0,!0),11,3936430074),g=u(g,A,x,_,f.getUint32(12,!0),16,3572445317),_=u(_,g,A,x,f.getUint32(24,!0),23,76029189),x=u(x,_,g,A,f.getUint32(36,!0),4,3654602809),A=u(A,x,_,g,f.getUint32(48,!0),11,3873151461),g=u(g,A,x,_,f.getUint32(60,!0),16,530742520),x=c(x,_=u(_,g,A,x,f.getUint32(8,!0),23,3299628645),g,A,f.getUint32(0,!0),6,4096336452),A=c(A,x,_,g,f.getUint32(28,!0),10,1126891415),g=c(g,A,x,_,f.getUint32(56,!0),15,2878612391),_=c(_,g,A,x,f.getUint32(20,!0),21,4237533241),x=c(x,_,g,A,f.getUint32(48,!0),6,1700485571),A=c(A,x,_,g,f.getUint32(12,!0),10,2399980690),g=c(g,A,x,_,f.getUint32(40,!0),15,4293915773),_=c(_,g,A,x,f.getUint32(4,!0),21,2240044497),x=c(x,_,g,A,f.getUint32(32,!0),6,1873313359),A=c(A,x,_,g,f.getUint32(60,!0),10,4264355552),g=c(g,A,x,_,f.getUint32(24,!0),15,2734768916),_=c(_,g,A,x,f.getUint32(52,!0),21,1309151649),x=c(x,_,g,A,f.getUint32(16,!0),6,4149444226),A=c(A,x,_,g,f.getUint32(44,!0),10,3174756917),g=c(g,A,x,_,f.getUint32(8,!0),15,718787259),_=c(_,g,A,x,f.getUint32(36,!0),21,3951481745),T[0]=x+T[0]&4294967295,T[1]=_+T[1]&4294967295,T[2]=g+T[2]&4294967295,T[3]=A+T[3]&4294967295}},47539:(ae,I,l)=>{var t=l(81082).lW,w=l(42959);function e(){this.h0=1732584193,this.h1=4023233417,this.h2=2562383102,this.h3=271733878,this.h4=3285377520,this.block=new Uint32Array(80),this.offset=0,this.shift=24,this.totalLength=0}new Uint32Array([1518500249,1859775393,-1894007588,-899497514]),Math.pow(2,53),ae.exports=e,e.BLOCK_SIZE=64,e.prototype.update=function(a){if(this.finished)throw new Error("Attempted to update an already finished hash.");if(w.isEmptyData(a))return this;var u=(a=w.convertToBuffer(a)).length;this.totalLength+=8*u;for(var c=0;c<u;c++)this.write(a[c]);return this},e.prototype.write=function(u){this.block[this.offset]|=(255&u)<<this.shift,this.shift?this.shift-=8:(this.offset++,this.shift=24),16===this.offset&&this.processBlock()},e.prototype.digest=function(a){this.write(128),(this.offset>14||14===this.offset&&this.shift<24)&&this.processBlock(),this.offset=14,this.shift=24,this.write(0),this.write(0),this.write(this.totalLength>0xffffffffff?this.totalLength/1099511627776:0),this.write(this.totalLength>4294967295?this.totalLength/4294967296:0);for(var u=24;u>=0;u-=8)this.write(this.totalLength>>u);var c=new t(20),y=new DataView(c.buffer);return y.setUint32(0,this.h0,!1),y.setUint32(4,this.h1,!1),y.setUint32(8,this.h2,!1),y.setUint32(12,this.h3,!1),y.setUint32(16,this.h4,!1),a?c.toString(a):c},e.prototype.processBlock=function(){for(var u=16;u<80;u++){var c=this.block[u-3]^this.block[u-8]^this.block[u-14]^this.block[u-16];this.block[u]=c<<1|c>>>31}var g,A,y=this.h0,f=this.h1,T=this.h2,x=this.h3,_=this.h4;for(u=0;u<80;u++){u<20?(g=x^f&(T^x),A=1518500249):u<40?(g=f^T^x,A=1859775393):u<60?(g=f&T|x&(f|T),A=2400959708):(g=f^T^x,A=3395469782);var L=(y<<5|y>>>27)+g+_+A+(0|this.block[u]);_=x,x=T,T=f<<30|f>>>2,f=y,y=L}for(this.h0=this.h0+y|0,this.h1=this.h1+f|0,this.h2=this.h2+T|0,this.h3=this.h3+x|0,this.h4=this.h4+_|0,this.offset=0,u=0;u<16;u++)this.block[u]=0}},68469:(ae,I,l)=>{var t=l(81082).lW,w=l(42959),n=new Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),s=Math.pow(2,53)-1;function e(){this.state=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.temp=new Int32Array(64),this.buffer=new Uint8Array(64),this.bufferLength=0,this.bytesHashed=0,this.finished=!1}ae.exports=e,e.BLOCK_SIZE=64,e.prototype.update=function(a){if(this.finished)throw new Error("Attempted to update an already finished hash.");if(w.isEmptyData(a))return this;var u=0,c=(a=w.convertToBuffer(a)).byteLength;if(this.bytesHashed+=c,8*this.bytesHashed>s)throw new Error("Cannot hash more than 2^53 - 1 bits");for(;c>0;)this.buffer[this.bufferLength++]=a[u++],c--,64===this.bufferLength&&(this.hashBuffer(),this.bufferLength=0);return this},e.prototype.digest=function(a){if(!this.finished){var u=8*this.bytesHashed,c=new DataView(this.buffer.buffer,this.buffer.byteOffset,this.buffer.byteLength),y=this.bufferLength;if(c.setUint8(this.bufferLength++,128),y%64>=56){for(var f=this.bufferLength;f<64;f++)c.setUint8(f,0);this.hashBuffer(),this.bufferLength=0}for(f=this.bufferLength;f<56;f++)c.setUint8(f,0);c.setUint32(56,Math.floor(u/4294967296),!0),c.setUint32(60,u),this.hashBuffer(),this.finished=!0}var T=new t(32);for(f=0;f<8;f++)T[4*f]=this.state[f]>>>24&255,T[4*f+1]=this.state[f]>>>16&255,T[4*f+2]=this.state[f]>>>8&255,T[4*f+3]=this.state[f]>>>0&255;return a?T.toString(a):T},e.prototype.hashBuffer=function(){for(var u=this.buffer,c=this.state,y=c[0],f=c[1],T=c[2],x=c[3],_=c[4],g=c[5],A=c[6],L=c[7],j=0;j<64;j++){if(j<16)this.temp[j]=(255&u[4*j])<<24|(255&u[4*j+1])<<16|(255&u[4*j+2])<<8|255&u[4*j+3];else{var Q=this.temp[j-2];this.temp[j]=(((Q>>>17|Q<<15)^(Q>>>19|Q<<13)^Q>>>10)+this.temp[j-7]|0)+((((Q=this.temp[j-15])>>>7|Q<<25)^(Q>>>18|Q<<14)^Q>>>3)+this.temp[j-16]|0)}var P=(((_>>>6|_<<26)^(_>>>11|_<<21)^(_>>>25|_<<7))+(_&g^~_&A)|0)+(L+(n[j]+this.temp[j]|0)|0)|0,d=((y>>>2|y<<30)^(y>>>13|y<<19)^(y>>>22|y<<10))+(y&f^y&T^f&T)|0;L=A,A=g,g=_,_=x+P|0,x=T,T=f,f=y,y=P+d|0}c[0]+=y,c[1]+=f,c[2]+=T,c[3]+=x,c[4]+=_,c[5]+=g,c[6]+=A,c[7]+=L}},22488:(ae,I,l)=>{var t=l(49229);t.crypto.lib=l(79427),t.Buffer=l(81082).lW,t.url=l(63570),t.querystring=l(19446),t.realClock=l(89559),t.environment="js",t.createEventStream=l(33474).createEventStream,t.isBrowser=function(){return!0},t.isNode=function(){return!1};var w=l(86462);if(ae.exports=w,l(84301),l(37001),l(6881),l(30910),l(47113),l(91744),l(79530),w.XML.Parser=l(73972),l(99970),typeof p>"u")var p={browser:!0}},48797:(ae,I,l)=>{var w,t=l(86462);l(84301),l(37001),t.Config=t.util.inherit({constructor:function(r){void 0===r&&(r={}),r=this.extractCredentials(r),t.util.each.call(this,this.keys,function(n,i){this.set(n,r[n],i)})},getCredentials:function(r){var n=this;function i(u){r(u,u?null:n.credentials)}function s(u,c){return new t.util.error(c||new Error,{code:"CredentialsError",message:u,name:"CredentialsError"})}n.credentials?"function"==typeof n.credentials.get?function e(){n.credentials.get(function(u){u&&(u=s("Could not load credentials from "+n.credentials.constructor.name,u)),i(u)})}():function a(){var u=null;(!n.credentials.accessKeyId||!n.credentials.secretAccessKey)&&(u=s("Missing credentials")),i(u)}():n.credentialProvider?n.credentialProvider.resolve(function(u,c){u&&(u=s("Could not load credentials from any providers",u)),n.credentials=c,i(u)}):i(s("No credentials to load"))},update:function(r,n){n=n||!1,r=this.extractCredentials(r),t.util.each.call(this,r,function(i,s){(n||Object.prototype.hasOwnProperty.call(this.keys,i)||t.Service.hasService(i))&&this.set(i,s)})},loadFromPath:function(r){this.clear();var n=JSON.parse(t.util.readFileSync(r)),i=new t.FileSystemCredentials(r),s=new t.CredentialProviderChain;return s.providers.unshift(i),s.resolve(function(e,a){if(e)throw e;n.credentials=a}),this.constructor(n),this},clear:function(){t.util.each.call(this,this.keys,function(r){delete this[r]}),this.set("credentials",void 0),this.set("credentialProvider",void 0)},set:function(r,n,i){void 0===n?(void 0===i&&(i=this.keys[r]),this[r]="function"==typeof i?i.call(this):i):this[r]="httpOptions"===r&&this[r]?t.util.merge(this[r],n):n},keys:{credentials:null,credentialProvider:null,region:null,logger:null,apiVersions:{},apiVersion:null,endpoint:void 0,httpOptions:{timeout:12e4},maxRetries:void 0,maxRedirects:10,paramValidation:!0,sslEnabled:!0,s3ForcePathStyle:!1,s3BucketEndpoint:!1,s3DisableBodySigning:!0,s3UsEast1RegionalEndpoint:"legacy",s3UseArnRegion:void 0,computeChecksums:!0,convertResponseTypes:!0,correctClockSkew:!1,customUserAgent:null,dynamoDbCrc32:!0,systemClockOffset:0,signatureVersion:null,signatureCache:!0,retryDelayOptions:{},useAccelerateEndpoint:!1,clientSideMonitoring:!1,endpointDiscoveryEnabled:void 0,endpointCacheSize:1e3,hostPrefixEnabled:!0,stsRegionalEndpoints:"legacy",useFipsEndpoint:!1,useDualstackEndpoint:!1},extractCredentials:function(r){return r.accessKeyId&&r.secretAccessKey&&((r=t.util.copy(r)).credentials=new t.Credentials(r)),r},setPromisesDependency:function(r){w=r,null===r&&"function"==typeof Promise&&(w=Promise);var n=[t.Request,t.Credentials,t.CredentialProviderChain];t.S3&&(n.push(t.S3),t.S3.ManagedUpload&&n.push(t.S3.ManagedUpload)),t.util.addPromises(n,w)},getPromisesDependency:function(){return w}}),t.config=new t.Config},46664:(ae,I,l)=>{var t=l(86462);function w(r,n){if("string"==typeof r){if(["legacy","regional"].indexOf(r.toLowerCase())>=0)return r.toLowerCase();throw t.util.error(new Error,n)}}ae.exports=function p(r,n){var i;if((r=r||{})[n.clientConfig]&&(i=w(r[n.clientConfig],{code:"InvalidConfiguration",message:'invalid "'+n.clientConfig+'" configuration. Expect "legacy" or "regional". Got "'+r[n.clientConfig]+'".'}))||!t.util.isNode())return i;if(Object.prototype.hasOwnProperty.call(process.env,n.env)&&(i=w(process.env[n.env],{code:"InvalidEnvironmentalVariable",message:"invalid "+n.env+' environmental variable. Expect "legacy" or "regional". Got "'+process.env[n.env]+'".'})))return i;var e={};try{e=t.util.getProfilesFromSharedConfig(t.util.iniLoader)[process.env.AWS_PROFILE||t.util.defaultProfile]}catch{}return e&&Object.prototype.hasOwnProperty.call(e,n.sharedConfig)&&(i=w(e[n.sharedConfig],{code:"InvalidConfiguration",message:"invalid "+n.sharedConfig+' profile config. Expect "legacy" or "regional". Got "'+e[n.sharedConfig]+'".'})),i}},86462:(ae,I,l)=>{var t={util:l(49229)};({}).toString(),ae.exports=t,t.util.update(t,{VERSION:"2.1189.0",Signers:{},Protocol:{Json:l(93240),Query:l(88694),Rest:l(12153),RestJson:l(34691),RestXml:l(49679)},XML:{Builder:l(31883),Parser:null},JSON:{Builder:l(50629),Parser:l(4413)},Model:{Api:l(24558),Operation:l(92556),Shape:l(65454),Paginator:l(80410),ResourceWaiter:l(53269)},apiLoader:l(91151),EndpointCache:l(14547).$}),l(86275),l(95241),l(48797),l(16939),l(26552),l(22091),l(5001),l(51272),l(91974),l(70988),t.events=new t.SequentialExecutor,t.util.memoizedProperty(t,"endpointCache",function(){return new t.EndpointCache(t.config.endpointCacheSize)},!0)},84301:(ae,I,l)=>{var t=l(86462);t.Credentials=t.util.inherit({constructor:function(){if(t.util.hideProperties(this,["secretAccessKey"]),this.expired=!1,this.expireTime=null,this.refreshCallbacks=[],1===arguments.length&&"object"==typeof arguments[0]){var p=arguments[0].credentials||arguments[0];this.accessKeyId=p.accessKeyId,this.secretAccessKey=p.secretAccessKey,this.sessionToken=p.sessionToken}else this.accessKeyId=arguments[0],this.secretAccessKey=arguments[1],this.sessionToken=arguments[2]},expiryWindow:15,needsRefresh:function(){var p=t.util.date.getDate().getTime(),r=new Date(p+1e3*this.expiryWindow);return!!(this.expireTime&&r>this.expireTime)||this.expired||!this.accessKeyId||!this.secretAccessKey},get:function(p){var r=this;this.needsRefresh()?this.refresh(function(n){n||(r.expired=!1),p&&p(n)}):p&&p()},refresh:function(p){this.expired=!1,p()},coalesceRefresh:function(p,r){var n=this;1===n.refreshCallbacks.push(p)&&n.load(function(s){t.util.arrayEach(n.refreshCallbacks,function(e){r?e(s):t.util.defer(function(){e(s)})}),n.refreshCallbacks.length=0})},load:function(p){p()}}),t.Credentials.addPromisesToClass=function(p){this.prototype.getPromise=t.util.promisifyMethod("get",p),this.prototype.refreshPromise=t.util.promisifyMethod("refresh",p)},t.Credentials.deletePromisesFromClass=function(){delete this.prototype.getPromise,delete this.prototype.refreshPromise},t.util.addPromises(t.Credentials)},30910:(ae,I,l)=>{var t=l(86462),w=l(81999);t.ChainableTemporaryCredentials=t.util.inherit(t.Credentials,{constructor:function(r){t.Credentials.call(this),r=r||{},this.errorCode="ChainableTemporaryCredentialsProviderFailure",this.expired=!0,this.tokenCodeFn=null;var n=t.util.copy(r.params)||{};if(n.RoleArn&&(n.RoleSessionName=n.RoleSessionName||"temporary-credentials"),n.SerialNumber){if(!r.tokenCodeFn||"function"!=typeof r.tokenCodeFn)throw new t.util.error(new Error("tokenCodeFn must be a function when params.SerialNumber is given"),{code:this.errorCode});this.tokenCodeFn=r.tokenCodeFn}var i=t.util.merge({params:n,credentials:r.masterCredentials||t.config.credentials},r.stsConfig||{});this.service=new w(i)},refresh:function(r){this.coalesceRefresh(r||t.util.fn.callback)},load:function(r){var n=this,i=n.service.config.params.RoleArn?"assumeRole":"getSessionToken";this.getTokenCode(function(s,e){var a={};s?r(s):(e&&(a.TokenCode=e),n.service[i](a,function(u,c){u||n.service.credentialsFrom(c,n),r(u)}))})},getTokenCode:function(r){var n=this;this.tokenCodeFn?this.tokenCodeFn(this.service.config.params.SerialNumber,function(i,s){if(i){var e=i;return i instanceof Error&&(e=i.message),void r(t.util.error(new Error("Error fetching MFA token: "+e),{code:n.errorCode}))}r(null,s)}):r(null)}})},91744:(ae,I,l)=>{var t=l(86462),w=l(56549),p=l(81999);t.CognitoIdentityCredentials=t.util.inherit(t.Credentials,{localStorageKey:{id:"aws.cognito.identity-id.",providers:"aws.cognito.identity-providers."},constructor:function(n,i){t.Credentials.call(this),this.expired=!0,this.params=n,this.data=null,this._identityId=null,this._clientConfig=t.util.copy(i||{}),this.loadCachedId();var s=this;Object.defineProperty(this,"identityId",{get:function(){return s.loadCachedId(),s._identityId||s.params.IdentityId},set:function(e){s._identityId=e}})},refresh:function(n){this.coalesceRefresh(n||t.util.fn.callback)},load:function(n){var i=this;i.createClients(),i.data=null,i._identityId=null,i.getId(function(s){s?(i.clearIdOnNotAuthorized(s),n(s)):i.params.RoleArn?i.getCredentialsFromSTS(n):i.getCredentialsForIdentity(n)})},clearCachedId:function(){this._identityId=null,delete this.params.IdentityId;var n=this.params.IdentityPoolId,i=this.params.LoginId||"";delete this.storage[this.localStorageKey.id+n+i],delete this.storage[this.localStorageKey.providers+n+i]},clearIdOnNotAuthorized:function(n){"NotAuthorizedException"==n.code&&this.clearCachedId()},getId:function(n){var i=this;if("string"==typeof i.params.IdentityId)return n(null,i.params.IdentityId);i.cognito.getId(function(s,e){!s&&e.IdentityId?(i.params.IdentityId=e.IdentityId,n(null,e.IdentityId)):n(s)})},loadCredentials:function(n,i){!n||!i||(i.expired=!1,i.accessKeyId=n.Credentials.AccessKeyId,i.secretAccessKey=n.Credentials.SecretKey,i.sessionToken=n.Credentials.SessionToken,i.expireTime=n.Credentials.Expiration)},getCredentialsForIdentity:function(n){var i=this;i.cognito.getCredentialsForIdentity(function(s,e){s?i.clearIdOnNotAuthorized(s):(i.cacheId(e),i.data=e,i.loadCredentials(i.data,i)),n(s)})},getCredentialsFromSTS:function(n){var i=this;i.cognito.getOpenIdToken(function(s,e){s?(i.clearIdOnNotAuthorized(s),n(s)):(i.cacheId(e),i.params.WebIdentityToken=e.Token,i.webIdentityCredentials.refresh(function(a){a||(i.data=i.webIdentityCredentials.data,i.sts.credentialsFrom(i.data,i)),n(a)}))})},loadCachedId:function(){var n=this;if(t.util.isBrowser()&&!n.params.IdentityId){var i=n.getStorage("id");if(i&&n.params.Logins){var s=Object.keys(n.params.Logins);0!==(n.getStorage("providers")||"").split(",").filter(function(u){return-1!==s.indexOf(u)}).length&&(n.params.IdentityId=i)}else i&&(n.params.IdentityId=i)}},createClients:function(){var r=this._clientConfig;if(this.webIdentityCredentials=this.webIdentityCredentials||new t.WebIdentityCredentials(this.params,r),!this.cognito){var n=t.util.merge({},r);n.params=this.params,this.cognito=new w(n)}this.sts=this.sts||new p(r)},cacheId:function(n){this._identityId=n.IdentityId,this.params.IdentityId=this._identityId,t.util.isBrowser()&&(this.setStorage("id",n.IdentityId),this.params.Logins&&this.setStorage("providers",Object.keys(this.params.Logins).join(",")))},getStorage:function(n){return this.storage[this.localStorageKey[n]+this.params.IdentityPoolId+(this.params.LoginId||"")]},setStorage:function(n,i){try{this.storage[this.localStorageKey[n]+this.params.IdentityPoolId+(this.params.LoginId||"")]=i}catch{}},storage:function(){try{var r=t.util.isBrowser()&&null!==window.localStorage&&"object"==typeof window.localStorage?window.localStorage:{};return r["aws.test-storage"]="foobar",delete r["aws.test-storage"],r}catch{return{}}}()})},37001:(ae,I,l)=>{var t=l(86462);t.CredentialProviderChain=t.util.inherit(t.Credentials,{constructor:function(p){this.providers=p||t.CredentialProviderChain.defaultProviders.slice(0),this.resolveCallbacks=[]},resolve:function(p){var r=this;if(0===r.providers.length)return p(new Error("No providers")),r;if(1===r.resolveCallbacks.push(p)){let e=function(a,u){if(!a&&u||n===i.length)return t.util.arrayEach(r.resolveCallbacks,function(y){y(a,u)}),void(r.resolveCallbacks.length=0);var c=i[n++];(u="function"==typeof c?c.call():c).get?u.get(function(y){e(y,y?null:u)}):e(null,u)};var n=0,i=r.providers.slice(0);e()}return r}}),t.CredentialProviderChain.defaultProviders=[],t.CredentialProviderChain.addPromisesToClass=function(p){this.prototype.resolvePromise=t.util.promisifyMethod("resolve",p)},t.CredentialProviderChain.deletePromisesFromClass=function(){delete this.prototype.resolvePromise},t.util.addPromises(t.CredentialProviderChain)},79530:(ae,I,l)=>{var t=l(86462),w=l(81999);t.SAMLCredentials=t.util.inherit(t.Credentials,{constructor:function(r){t.Credentials.call(this),this.expired=!0,this.params=r},refresh:function(r){this.coalesceRefresh(r||t.util.fn.callback)},load:function(r){var n=this;n.createClients(),n.service.assumeRoleWithSAML(function(i,s){i||n.service.credentialsFrom(s,n),r(i)})},createClients:function(){this.service=this.service||new w({params:this.params})}})},6881:(ae,I,l)=>{var t=l(86462),w=l(81999);t.TemporaryCredentials=t.util.inherit(t.Credentials,{constructor:function(r,n){t.Credentials.call(this),this.loadMasterCredentials(n),this.expired=!0,this.params=r||{},this.params.RoleArn&&(this.params.RoleSessionName=this.params.RoleSessionName||"temporary-credentials")},refresh:function(r){this.coalesceRefresh(r||t.util.fn.callback)},load:function(r){var n=this;n.createClients(),n.masterCredentials.get(function(){n.service.config.credentials=n.masterCredentials,(n.params.RoleArn?n.service.assumeRole:n.service.getSessionToken).call(n.service,function(s,e){s||n.service.credentialsFrom(e,n),r(s)})})},loadMasterCredentials:function(r){for(this.masterCredentials=r||t.config.credentials;this.masterCredentials.masterCredentials;)this.masterCredentials=this.masterCredentials.masterCredentials;"function"!=typeof this.masterCredentials.get&&(this.masterCredentials=new t.Credentials(this.masterCredentials))},createClients:function(){this.service=this.service||new w({params:this.params})}})},47113:(ae,I,l)=>{var t=l(86462),w=l(81999);t.WebIdentityCredentials=t.util.inherit(t.Credentials,{constructor:function(r,n){t.Credentials.call(this),this.expired=!0,this.params=r,this.params.RoleSessionName=this.params.RoleSessionName||"web-identity",this.data=null,this._clientConfig=t.util.copy(n||{})},refresh:function(r){this.coalesceRefresh(r||t.util.fn.callback)},load:function(r){var n=this;n.createClients(),n.service.assumeRoleWithWebIdentity(function(i,s){n.data=null,i||(n.data=s,n.service.credentialsFrom(s,n)),r(i)})},createClients:function(){if(!this.service){var p=t.util.merge({},this._clientConfig);p.params=this.params,this.service=new w(p)}}})},36798:(ae,I,l)=>{var t=l(86462),w=l(49229),p=["AWS_ENABLE_ENDPOINT_DISCOVERY","AWS_ENDPOINT_DISCOVERY_ENABLED"];function r(_){var g=_.service,A=g.api||{},j={};return g.config.region&&(j.region=g.config.region),A.serviceId&&(j.serviceId=A.serviceId),g.config.credentials.accessKeyId&&(j.accessKeyId=g.config.credentials.accessKeyId),j}function n(_,g,A){!A||null==g||"structure"===A.type&&A.required&&A.required.length>0&&w.arrayEach(A.required,function(L){var j=A.members[L];!0===j.endpointDiscoveryId?_[j.isLocationName?j.name:L]=String(g[L]):n(_,g[L],j)})}function i(_,g){var A={};return n(A,_.params,g),A}function s(_){var g=_.service,A=g.api,L=A.operations?A.operations[_.operation]:void 0,Q=i(_,L?L.input:void 0),F=r(_);Object.keys(Q).length>0&&(F=w.update(F,Q),L&&(F.operation=L.name));var b=t.endpointCache.get(F);if(!b||1!==b.length||""!==b[0].Address)if(b&&b.length>0)_.httpRequest.updateEndpoint(b[0].Address);else{var P=g.makeRequest(A.endpointOperation,{Operation:L.name,Identifiers:Q});u(P),P.removeListener("validate",t.EventListeners.Core.VALIDATE_PARAMETERS),P.removeListener("retry",t.EventListeners.Core.RETRY_CHECK),t.endpointCache.put(F,[{Address:"",CachePeriodInMinutes:1}]),P.send(function(d,O){O&&O.Endpoints?t.endpointCache.put(F,O.Endpoints):d&&t.endpointCache.put(F,[{Address:"",CachePeriodInMinutes:1}])})}}var e={};function a(_,g){var A=_.service,L=A.api,j=L.operations?L.operations[_.operation]:void 0,F=i(_,j?j.input:void 0),b=r(_);Object.keys(F).length>0&&(b=w.update(b,F),j&&(b.operation=j.name));var P=t.EndpointCache.getKeyString(b),d=t.endpointCache.get(P);if(d&&1===d.length&&""===d[0].Address)return e[P]||(e[P]=[]),void e[P].push({request:_,callback:g});if(d&&d.length>0)_.httpRequest.updateEndpoint(d[0].Address),g();else{var O=A.makeRequest(L.endpointOperation,{Operation:j.name,Identifiers:F});O.removeListener("validate",t.EventListeners.Core.VALIDATE_PARAMETERS),u(O),t.endpointCache.put(P,[{Address:"",CachePeriodInMinutes:60}]),O.send(function(v,M){v?(_.response.error=w.error(v,{retryable:!1}),t.endpointCache.remove(b),e[P]&&(w.arrayEach(e[P],function(V){V.request.response.error=w.error(v,{retryable:!1}),V.callback()}),delete e[P])):M&&(t.endpointCache.put(P,M.Endpoints),_.httpRequest.updateEndpoint(M.Endpoints[0].Address),e[P])&&(w.arrayEach(e[P],function(J){J.request.httpRequest.updateEndpoint(M.Endpoints[0].Address),J.callback()}),delete e[P]),g()})}}function u(_){var A=_.service.api.apiVersion;A&&!_.httpRequest.headers["x-amz-api-version"]&&(_.httpRequest.headers["x-amz-api-version"]=A)}function c(_){var g=_.error;if(g&&("InvalidEndpointException"===g.code||421===_.httpResponse.statusCode)){var L=_.request,j=L.service.api.operations||{},F=i(L,j[L.operation]?j[L.operation].input:void 0),b=r(L);Object.keys(F).length>0&&(b=w.update(b,F),j[L.operation]&&(b.operation=j[L.operation].name)),t.endpointCache.remove(b)}}function f(_){return["false","0"].indexOf(_)>=0}ae.exports={discoverEndpoint:function x(_,g){var A=_.service||{};if(function y(_){if(_._originalConfig&&_._originalConfig.endpoint&&!0===_._originalConfig.endpointDiscoveryEnabled)throw w.error(new Error,{code:"ConfigurationException",message:"Custom endpoint is supplied; endpointDiscoveryEnabled must not be true."});return!!(t.config.endpoint||(t.config[_.serviceIdentifier]||{}).endpoint||_._originalConfig&&_._originalConfig.endpoint)}(A)||_.isPresigned())return g();var j=(A.api.operations||{})[_.operation],Q=j?j.endpointDiscoveryRequired:"NULL",F=function T(_){var g=_.service||{};if(void 0!==g.config.endpointDiscoveryEnabled)return g.config.endpointDiscoveryEnabled;if(!w.isBrowser()){for(var A=0;A<p.length;A++){var L=p[A];if(Object.prototype.hasOwnProperty.call(process.env,L)){if(""===process.env[L]||void 0===process.env[L])throw w.error(new Error,{code:"ConfigurationException",message:"environmental variable "+L+" cannot be set to nothing"});return!f(process.env[L])}}var j={};try{j=t.util.iniLoader?t.util.iniLoader.loadFrom({isConfig:!0,filename:process.env[t.util.sharedConfigFileEnv]}):{}}catch{}var Q=j[process.env.AWS_PROFILE||t.util.defaultProfile]||{};if(Object.prototype.hasOwnProperty.call(Q,"endpoint_discovery_enabled")){if(void 0===Q.endpoint_discovery_enabled)throw w.error(new Error,{code:"ConfigurationException",message:"config file entry 'endpoint_discovery_enabled' cannot be set to nothing"});return!f(Q.endpoint_discovery_enabled)}}}(_),b=A.api.hasRequiredEndpointDiscovery;switch((F||b)&&_.httpRequest.appendToUserAgent("endpoint-discovery"),Q){case"OPTIONAL":(F||b)&&(s(_),_.addNamedListener("INVALIDATE_CACHED_ENDPOINTS","extractError",c)),g();break;case"REQUIRED":if(!1===F){_.response.error=w.error(new Error,{code:"ConfigurationException",message:"Endpoint Discovery is disabled but "+A.api.className+"."+_.operation+"() requires it. Please check your configurations."}),g();break}_.addNamedListener("INVALIDATE_CACHED_ENDPOINTS","extractError",c),a(_,g);break;default:g()}},requiredDiscoverEndpoint:a,optionalDiscoverEndpoint:s,marshallCustomIdentifiers:i,getCacheKey:r,invalidateCachedEndpoint:c}},33474:(ae,I,l)=>{var t=l(49618).eventMessageChunker,w=l(27457).parseEvent;ae.exports={createEventStream:function p(r,n,i){for(var s=t(r),e=[],a=0;a<s.length;a++)e.push(w(n,s[a],i));return e}}},49618:ae=>{ae.exports={eventMessageChunker:function I(l){for(var t=[],w=0;w<l.length;){var p=l.readInt32BE(w),r=l.slice(w,p+w);w+=p,t.push(r)}return t}}},96575:(ae,I,l)=>{var t=l(86462).util,w=t.buffer.toBuffer;function p(n){if(8!==n.length)throw new Error("Int64 buffers must be exactly 8 bytes");t.Buffer.isBuffer(n)||(n=w(n)),this.bytes=n}function r(n){for(var i=0;i<8;i++)n[i]^=255;for(i=7;i>-1&&(n[i]++,0===n[i]);i--);}p.fromNumber=function(n){if(n>0x8000000000000000||n<-0x8000000000000000)throw new Error(n+" is too large (or, if negative, too small) to represent as an Int64");for(var i=new Uint8Array(8),s=7,e=Math.abs(Math.round(n));s>-1&&e>0;s--,e/=256)i[s]=e;return n<0&&r(i),new p(i)},p.prototype.valueOf=function(){var n=this.bytes.slice(0),i=128&n[0];return i&&r(n),parseInt(n.toString("hex"),16)*(i?-1:1)},p.prototype.toString=function(){return String(this.valueOf())},ae.exports={Int64:p}},27457:(ae,I,l)=>{var t=l(54602).parseMessage;ae.exports={parseEvent:function w(r,n,i){var s=t(n),e=s.headers[":message-type"];if(e){if("error"===e.value)throw function p(r){var n=r.headers[":error-code"],i=r.headers[":error-message"],s=new Error(i.value||i);return s.code=s.name=n.value||n,s}(s);if("event"!==e.value)return}var a=s.headers[":event-type"],u=i.members[a.value];if(u){var c={},y=u.eventPayloadMemberName;if(y){var f=u.members[y];c[y]="binary"===f.type?s.body:r.parse(s.body.toString(),f)}for(var T=u.eventHeaderMemberNames,x=0;x<T.length;x++){var _=T[x];s.headers[_]&&(c[_]=u.members[_].toType(s.headers[_].value))}var g={};return g[a.value]=c,g}}}},54602:(ae,I,l)=>{var t=l(96575).Int64,w=l(38648).splitMessage,p="boolean";function y(T){for(var x={},_=0;_<T.length;){var g=T.readUInt8(_++),A=T.slice(_,_+g).toString();switch(_+=g,T.readUInt8(_++)){case 0:x[A]={type:p,value:!0};break;case 1:x[A]={type:p,value:!1};break;case 2:x[A]={type:"byte",value:T.readInt8(_++)};break;case 3:x[A]={type:"short",value:T.readInt16BE(_)},_+=2;break;case 4:x[A]={type:"integer",value:T.readInt32BE(_)},_+=4;break;case 5:x[A]={type:"long",value:new t(T.slice(_,_+8))},_+=8;break;case 6:var L=T.readUInt16BE(_);x[A]={type:"binary",value:T.slice(_+=2,_+L)},_+=L;break;case 7:var j=T.readUInt16BE(_);x[A]={type:"string",value:T.slice(_+=2,_+j).toString()},_+=j;break;case 8:x[A]={type:"timestamp",value:new Date(new t(T.slice(_,_+8)).valueOf())},_+=8;break;case 9:var Q=T.slice(_,_+16).toString("hex");_+=16,x[A]={type:"uuid",value:Q.substr(0,8)+"-"+Q.substr(8,4)+"-"+Q.substr(12,4)+"-"+Q.substr(16,4)+"-"+Q.substr(20)};break;default:throw new Error("Unrecognized header type tag")}}return x}ae.exports={parseMessage:function f(T){var x=w(T);return{headers:y(x.headers),body:x.body}}}},38648:(ae,I,l)=>{var t=l(86462).util,w=t.buffer.toBuffer;ae.exports={splitMessage:function s(e){if(t.Buffer.isBuffer(e)||(e=w(e)),e.length<16)throw new Error("Provided message too short to accommodate event stream message overhead");if(e.length!==e.readUInt32BE(0))throw new Error("Reported message length does not match received message length");var a=e.readUInt32BE(8);if(a!==t.crypto.crc32(e.slice(0,8)))throw new Error("The prelude checksum specified in the message ("+a+") does not match the calculated CRC32 checksum.");var u=e.readUInt32BE(e.length-4);if(u!==t.crypto.crc32(e.slice(0,e.length-4)))throw new Error("The message checksum did not match the expected value of "+u);var y=12+e.readUInt32BE(4);return{headers:e.slice(12,y),body:e.slice(y,e.length-4)}}}},26552:(ae,I,l)=>{var t=l(86462),w=l(86275),p=l(36798).discoverEndpoint;t.EventListeners={Core:{}},t.EventListeners={Core:(new w).addNamedListeners(function(n,i){i("VALIDATE_CREDENTIALS","validate",function(a,u){if(!a.service.api.signatureVersion&&!a.service.config.signatureVersion)return u();a.service.config.getCredentials(function(c){c&&(a.response.error=t.util.error(c,{code:"CredentialsError",message:"Missing credentials in config, if using AWS_CONFIG_FILE, set AWS_SDK_LOAD_CONFIG=1"})),u()})}),n("VALIDATE_REGION","validate",function(a){if(!a.service.isGlobalEndpoint){var u=new RegExp(/^([a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9-]{0,61}[a-zA-Z0-9])$/);a.service.config.region?u.test(a.service.config.region)||(a.response.error=t.util.error(new Error,{code:"ConfigError",message:"Invalid region in config"})):a.response.error=t.util.error(new Error,{code:"ConfigError",message:"Missing region in config"})}}),n("BUILD_IDEMPOTENCY_TOKENS","validate",function(a){if(a.service.api.operations){var u=a.service.api.operations[a.operation];if(u){var c=u.idempotentMembers;if(c.length){for(var y=t.util.copy(a.params),f=0,T=c.length;f<T;f++)y[c[f]]||(y[c[f]]=t.util.uuid.v4());a.params=y}}}}),n("VALIDATE_PARAMETERS","validate",function(a){if(a.service.api.operations){var u=a.service.api.operations[a.operation].input;new t.ParamValidator(a.service.config.paramValidation).validate(u,a.params)}}),n("COMPUTE_CHECKSUM","afterBuild",function(a){if(a.service.api.operations){var u=a.service.api.operations[a.operation];if(u){var c=a.httpRequest.body,y=c&&(t.util.Buffer.isBuffer(c)||"string"==typeof c),f=a.httpRequest.headers;if(u.httpChecksumRequired&&a.service.config.computeChecksums&&y&&!f["Content-MD5"]){var T=t.util.crypto.md5(c,"base64");f["Content-MD5"]=T}}}}),i("COMPUTE_SHA256","afterBuild",function(a,u){if(a.haltHandlersOnError(),a.service.api.operations){var c=a.service.api.operations[a.operation],y=c?c.authtype:"";if(!a.service.api.signatureVersion&&!y&&!a.service.config.signatureVersion)return u();if(a.service.getSignerClass(a)===t.Signers.V4){var f=a.httpRequest.body||"";if(y.indexOf("unsigned-body")>=0)return a.httpRequest.headers["X-Amz-Content-Sha256"]="UNSIGNED-PAYLOAD",u();t.util.computeSha256(f,function(T,x){T?u(T):(a.httpRequest.headers["X-Amz-Content-Sha256"]=x,u())})}else u()}}),n("SET_CONTENT_LENGTH","afterBuild",function(a){var u=function r(n){if(!n.service.api.operations)return"";var i=n.service.api.operations[n.operation];return i?i.authtype:""}(a),c=t.util.getRequestPayloadShape(a);if(void 0===a.httpRequest.headers["Content-Length"])try{var y=t.util.string.byteLength(a.httpRequest.body);a.httpRequest.headers["Content-Length"]=y}catch(f){if(c&&c.isStreaming){if(c.requiresLength)throw f;if(u.indexOf("unsigned-body")>=0)return void(a.httpRequest.headers["Transfer-Encoding"]="chunked");throw f}throw f}}),n("SET_HTTP_HOST","afterBuild",function(a){a.httpRequest.headers.Host=a.httpRequest.endpoint.host}),n("SET_TRACE_ID","afterBuild",function(a){var u="X-Amzn-Trace-Id";if(t.util.isNode()&&!Object.hasOwnProperty.call(a.httpRequest.headers,u)){var f=process.env.AWS_LAMBDA_FUNCTION_NAME,T=process.env._X_AMZN_TRACE_ID;"string"==typeof f&&f.length>0&&"string"==typeof T&&T.length>0&&(a.httpRequest.headers[u]=T)}}),n("RESTART","restart",function(){var a=this.response.error;!a||!a.retryable||(this.httpRequest=new t.HttpRequest(this.service.endpoint,this.service.region),this.response.retryCount<this.service.config.maxRetries?this.response.retryCount++:this.response.error=null)}),i("DISCOVER_ENDPOINT","sign",p,!0),i("SIGN","sign",function(a,u){var c=a.service,f=(a.service.api.operations||{})[a.operation];if(!(c.api.signatureVersion||f&&f.authtype||c.config.signatureVersion))return u();c.config.getCredentials(function(x,_){if(x)return a.response.error=x,u();try{var g=c.getSkewCorrectedDate(),L=new(c.getSignerClass(a))(a.httpRequest,c.getSigningName(a),{signatureCache:c.config.signatureCache,operation:f,signatureVersion:c.api.signatureVersion});L.setServiceClientId(c._clientId),delete a.httpRequest.headers.Authorization,delete a.httpRequest.headers.Date,delete a.httpRequest.headers["X-Amz-Date"],L.addAuthorization(_,g),a.signedAt=g}catch(j){a.response.error=j}u()})}),n("VALIDATE_RESPONSE","validateResponse",function(a){this.service.successfulResponse(a,this)?(a.data={},a.error=null):(a.data=null,a.error=t.util.error(new Error,{code:"UnknownError",message:"An unknown error occurred."}))}),n("ERROR","error",function(a,u){var c=u.request.service.api.errorCodeMapping;if(c&&a&&a.code){var y=c[a.code];y&&(u.error.code=y.code)}},!0),i("SEND","send",function(a,u){function c(_){a.httpResponse.stream=_;var g=a.request.httpRequest.stream,A=a.request.service,Q=A.api.operations[a.request.operation]||{};_.on("headers",function(b,P,d){if(a.request.emit("httpHeaders",[b,P,a,d]),!a.httpResponse.streaming)if(2===t.HttpClient.streamsApiVersion){if(Q.hasEventOutput&&A.successfulResponse(a))return a.request.emit("httpDone"),void u();_.on("readable",function(){var v=_.read();null!==v&&a.request.emit("httpData",[v,a])})}else _.on("data",function(v){a.request.emit("httpData",[v,a])})}),_.on("end",function(){if(!g||!g.didCallback){if(2===t.HttpClient.streamsApiVersion&&Q.hasEventOutput&&A.successfulResponse(a))return;a.request.emit("httpDone"),u()}})}function f(_){"RequestAbortedError"!==_.code&&(_=t.util.error(_,{code:"TimeoutError"===_.code?_.code:"NetworkingError",region:a.request.httpRequest.region,hostname:a.request.httpRequest.endpoint.hostname,retryable:!0})),a.error=_,a.request.emit("httpError",[a.error,a],function(){u()})}function T(){var _=t.HttpClient.getInstance(),g=a.request.service.config.httpOptions||{};try{!function y(_){_.on("sendProgress",function(A){a.request.emit("httpUploadProgress",[A,a])}),_.on("receiveProgress",function(A){a.request.emit("httpDownloadProgress",[A,a])})}(_.handleRequest(a.request.httpRequest,g,c,f))}catch(L){f(L)}}a.httpResponse._abortCallback=u,a.error=null,a.data=null,(a.request.service.getSkewCorrectedDate()-this.signedAt)/1e3>=600?this.emit("sign",[this],function(_){_?u(_):T()}):T()}),n("HTTP_HEADERS","httpHeaders",function(a,u,c,y){c.httpResponse.statusCode=a,c.httpResponse.statusMessage=y,c.httpResponse.headers=u,c.httpResponse.body=t.util.buffer.toBuffer(""),c.httpResponse.buffers=[],c.httpResponse.numBytes=0;var f=u.date||u.Date,T=c.request.service;if(f){var x=Date.parse(f);T.config.correctClockSkew&&T.isClockSkewed(x)&&T.applyClockOffset(x)}}),n("HTTP_DATA","httpData",function(a,u){a&&(t.util.isNode()&&(u.httpResponse.numBytes+=a.length,u.request.emit("httpDownloadProgress",[{loaded:u.httpResponse.numBytes,total:u.httpResponse.headers["content-length"]},u])),u.httpResponse.buffers.push(t.util.buffer.toBuffer(a)))}),n("HTTP_DONE","httpDone",function(a){if(a.httpResponse.buffers&&a.httpResponse.buffers.length>0){var u=t.util.buffer.concat(a.httpResponse.buffers);a.httpResponse.body=u}delete a.httpResponse.numBytes,delete a.httpResponse.buffers}),n("FINALIZE_ERROR","retry",function(a){a.httpResponse.statusCode&&(a.error.statusCode=a.httpResponse.statusCode,void 0===a.error.retryable&&(a.error.retryable=this.service.retryableError(a.error,this)))}),n("INVALIDATE_CREDENTIALS","retry",function(a){if(a.error)switch(a.error.code){case"RequestExpired":case"ExpiredTokenException":case"ExpiredToken":a.error.retryable=!0,a.request.service.config.credentials.expired=!0}}),n("EXPIRED_SIGNATURE","retry",function(a){var u=a.error;u&&"string"==typeof u.code&&"string"==typeof u.message&&u.code.match(/Signature/)&&u.message.match(/expired/)&&(a.error.retryable=!0)}),n("CLOCK_SKEWED","retry",function(a){a.error&&this.service.clockSkewError(a.error)&&this.service.config.correctClockSkew&&(a.error.retryable=!0)}),n("REDIRECT","retry",function(a){a.error&&a.error.statusCode>=300&&a.error.statusCode<400&&a.httpResponse.headers.location&&(this.httpRequest.endpoint=new t.Endpoint(a.httpResponse.headers.location),this.httpRequest.headers.Host=this.httpRequest.endpoint.host,a.error.redirect=!0,a.error.retryable=!0)}),n("RETRY_CHECK","retry",function(a){a.error&&(a.error.redirect&&a.redirectCount<a.maxRedirects?a.error.retryDelay=0:a.retryCount<a.maxRetries&&(a.error.retryDelay=this.service.retryDelays(a.retryCount,a.error)||0))}),i("RESET_RETRY_STATE","afterRetry",function(a,u){var c,y=!1;a.error&&(c=a.error.retryDelay||0,a.error.retryable&&a.retryCount<a.maxRetries?(a.retryCount++,y=!0):a.error.redirect&&a.redirectCount<a.maxRedirects&&(a.redirectCount++,y=!0)),y&&c>=0?(a.error=null,setTimeout(u,c)):u()})}),CorePost:(new w).addNamedListeners(function(n){n("EXTRACT_REQUEST_ID","extractData",t.util.extractRequestId),n("EXTRACT_REQUEST_ID","extractError",t.util.extractRequestId),n("ENOTFOUND_ERROR","httpError",function(s){"NetworkingError"===s.code&&function e(u){return"ENOTFOUND"===u.errno||"number"==typeof u.errno&&"function"==typeof t.util.getSystemErrorName&&["EAI_NONAME","EAI_NODATA"].indexOf(t.util.getSystemErrorName(u.errno)>=0)}(s)&&(this.response.error=t.util.error(new Error("Inaccessible host: `"+s.hostname+"' at port `"+s.port+"'. This service may not be available in the `"+s.region+"' region."),{code:"UnknownEndpoint",region:s.region,hostname:s.hostname,retryable:!0,originalError:s}))})}),Logger:(new w).addNamedListeners(function(n){n("LOG_REQUEST","complete",function(s){var e=s.request,a=e.service.config.logger;if(a){var y=function c(){var T=(s.request.service.getSkewCorrectedDate().getTime()-e.startTime.getTime())/1e3,x=!!a.isTTY,_=s.httpResponse.statusCode,g=e.params;e.service.api.operations&&e.service.api.operations[e.operation]&&e.service.api.operations[e.operation].input&&(g=u(e.service.api.operations[e.operation].input,e.params));var L=l(20147).inspect(g,!0,null),j="";return x&&(j+="\x1b[33m"),j+="[AWS "+e.service.serviceIdentifier+" "+_,j+=" "+T.toString()+"s "+s.retryCount+" retries]",x&&(j+="\x1b[0;1m"),j+=" "+t.util.string.lowerFirst(e.operation),j+="("+L+")",x&&(j+="\x1b[0m"),j}();"function"==typeof a.log?a.log(y):"function"==typeof a.write&&a.write(y+"\n")}function u(f,T){if(!T)return T;if(f.isSensitive)return"***SensitiveInformation***";switch(f.type){case"structure":var x={};return t.util.each(T,function(A,L){x[A]=Object.prototype.hasOwnProperty.call(f.members,A)?u(f.members[A],L):L}),x;case"list":var _=[];return t.util.arrayEach(T,function(A,L){_.push(u(f.member,A))}),_;case"map":var g={};return t.util.each(T,function(A,L){g[A]=u(f.value,L)}),g;default:return T}}})}),Json:(new w).addNamedListeners(function(n){var i=l(93240);n("BUILD","build",i.buildRequest),n("EXTRACT_DATA","extractData",i.extractData),n("EXTRACT_ERROR","extractError",i.extractError)}),Rest:(new w).addNamedListeners(function(n){var i=l(12153);n("BUILD","build",i.buildRequest),n("EXTRACT_DATA","extractData",i.extractData),n("EXTRACT_ERROR","extractError",i.extractError)}),RestJson:(new w).addNamedListeners(function(n){var i=l(34691);n("BUILD","build",i.buildRequest),n("EXTRACT_DATA","extractData",i.extractData),n("EXTRACT_ERROR","extractError",i.extractError)}),RestXml:(new w).addNamedListeners(function(n){var i=l(49679);n("BUILD","build",i.buildRequest),n("EXTRACT_DATA","extractData",i.extractData),n("EXTRACT_ERROR","extractError",i.extractError)}),Query:(new w).addNamedListeners(function(n){var i=l(88694);n("BUILD","build",i.buildRequest),n("EXTRACT_DATA","extractData",i.extractData),n("EXTRACT_ERROR","extractError",i.extractError)})}},16939:(ae,I,l)=>{var t=l(86462),w=t.util.inherit;t.Endpoint=w({constructor:function(r,n){if(t.util.hideProperties(this,["slashes","auth","hash","search","query"]),typeof r>"u"||null===r)throw new Error("Invalid endpoint: "+r);if("string"!=typeof r)return t.util.copy(r);r.match(/^http/)||(r=((n&&void 0!==n.sslEnabled?n.sslEnabled:t.config.sslEnabled)?"https":"http")+"://"+r),t.util.update(this,t.util.urlParse(r)),this.port=this.port?parseInt(this.port,10):"https:"===this.protocol?443:80}}),t.HttpRequest=w({constructor:function(r,n){r=new t.Endpoint(r),this.method="POST",this.path=r.path||"/",this.headers={},this.body="",this.endpoint=r,this.region=n,this._userAgent="",this.setUserAgent()},setUserAgent:function(){this._userAgent=this.headers[this.getUserAgentHeaderName()]=t.util.userAgent()},getUserAgentHeaderName:function(){return(t.util.isBrowser()?"X-Amz-":"")+"User-Agent"},appendToUserAgent:function(r){"string"==typeof r&&r&&(this._userAgent+=" "+r),this.headers[this.getUserAgentHeaderName()]=this._userAgent},getUserAgent:function(){return this._userAgent},pathname:function(){return this.path.split("?",1)[0]},search:function(){var r=this.path.split("?",2)[1];return r?(r=t.util.queryStringParse(r),t.util.queryParamsToString(r)):""},updateEndpoint:function(r){var n=new t.Endpoint(r);this.endpoint=n,this.path=n.path||"/",this.headers.Host&&(this.headers.Host=n.host)}}),t.HttpResponse=w({constructor:function(){this.statusCode=void 0,this.headers={},this.body=void 0,this.streaming=!1,this.stream=null},createUnbufferedStream:function(){return this.streaming=!0,this.stream}}),t.HttpClient=w({}),t.HttpClient.getInstance=function(){return void 0===this.singleton&&(this.singleton=new this),this.singleton}},99970:(ae,I,l)=>{var t=l(86462),w=l(90599).EventEmitter;l(16939),t.XHRClient=t.util.inherit({handleRequest:function(r,n,i,s){var e=this,a=r.endpoint,u=new w,c=a.protocol+"//"+a.hostname;80!==a.port&&443!==a.port&&(c+=":"+a.port),c+=r.path;var y=new XMLHttpRequest,f=!1;r.stream=y,y.addEventListener("readystatechange",function(){try{if(0===y.status)return}catch{return}this.readyState>=this.HEADERS_RECEIVED&&!f&&(u.statusCode=y.status,u.headers=e.parseHeaders(y.getAllResponseHeaders()),u.emit("headers",u.statusCode,u.headers,y.statusText),f=!0),this.readyState===this.DONE&&e.finishRequest(y,u)},!1),y.upload.addEventListener("progress",function(T){u.emit("sendProgress",T)}),y.addEventListener("progress",function(T){u.emit("receiveProgress",T)},!1),y.addEventListener("timeout",function(){s(t.util.error(new Error("Timeout"),{code:"TimeoutError"}))},!1),y.addEventListener("error",function(){s(t.util.error(new Error("Network Failure"),{code:"NetworkingError"}))},!1),y.addEventListener("abort",function(){s(t.util.error(new Error("Request aborted"),{code:"RequestAbortedError"}))},!1),i(u),y.open(r.method,c,!1!==n.xhrAsync),t.util.each(r.headers,function(T,x){"Content-Length"!==T&&"User-Agent"!==T&&"Host"!==T&&y.setRequestHeader(T,x)}),n.timeout&&!1!==n.xhrAsync&&(y.timeout=n.timeout),n.xhrWithCredentials&&(y.withCredentials=!0);try{y.responseType="arraybuffer"}catch{}try{r.body?y.send(r.body):y.send()}catch(T){if(!r.body||"object"!=typeof r.body.buffer)throw T;y.send(r.body.buffer)}return u},parseHeaders:function(r){var n={};return t.util.arrayEach(r.split(/\r?\n/),function(i){var s=i.split(":",1)[0],e=i.substring(s.length+2);s.length>0&&(n[s.toLowerCase()]=e)}),n},finishRequest:function(r,n){var i;if("arraybuffer"===r.responseType&&r.response){var s=r.response;i=new t.util.Buffer(s.byteLength);for(var e=new Uint8Array(s),a=0;a<i.length;++a)i[a]=e[a]}try{!i&&"string"==typeof r.responseText&&(i=new t.util.Buffer(r.responseText))}catch{}i&&n.emit("data",i),n.emit("end")}}),t.HttpClient.prototype=t.XHRClient.prototype,t.HttpClient.streamsApiVersion=1},50629:(ae,I,l)=>{var t=l(49229);function w(){}function p(e,a){if(a&&null!=e)switch(a.type){case"structure":return function r(e,a){if(a.isDocument)return e;var u={};return t.each(e,function(c,y){var f=a.members[c];if(f){if("body"!==f.location)return;var T=f.isLocationName?f.name:c,x=p(y,f);void 0!==x&&(u[T]=x)}}),u}(e,a);case"map":return function i(e,a){var u={};return t.each(e,function(c,y){var f=p(y,a.value);void 0!==f&&(u[c]=f)}),u}(e,a);case"list":return function n(e,a){var u=[];return t.arrayEach(e,function(c){var y=p(c,a.member);void 0!==y&&u.push(y)}),u}(e,a);default:return function s(e,a){return a.toWireFormat(e)}(e,a)}}w.prototype.build=function(e,a){return JSON.stringify(p(e,a))},ae.exports=w},4413:(ae,I,l)=>{var t=l(49229);function w(){}function p(e,a){if(a&&void 0!==e)switch(a.type){case"structure":return function r(e,a){if(null!=e){if(a.isDocument)return e;var u={};return t.each(a.members,function(y,f){var T=f.isLocationName?f.name:y;if(Object.prototype.hasOwnProperty.call(e,T)){var _=p(e[T],f);void 0!==_&&(u[y]=_)}}),u}}(e,a);case"map":return function i(e,a){if(null!=e){var u={};return t.each(e,function(c,y){var f=p(y,a.value);u[c]=void 0===f?null:f}),u}}(e,a);case"list":return function n(e,a){if(null!=e){var u=[];return t.arrayEach(e,function(c){var y=p(c,a.member);u.push(void 0===y?null:y)}),u}}(e,a);default:return function s(e,a){return a.toType(e)}(e,a)}}w.prototype.parse=function(e,a){return p(JSON.parse(e),a)},ae.exports=w},24558:(ae,I,l)=>{var t=l(13081),w=l(92556),p=l(65454),r=l(80410),n=l(53269),i=l(6839),s=l(49229),e=s.property,a=s.memoizedProperty;ae.exports=function u(c,y){var f=this;c=c||{},(y=y||{}).api=this,c.metadata=c.metadata||{};var T=y.serviceIdentifier;delete y.serviceIdentifier,e(this,"isApi",!0,!1),e(this,"apiVersion",c.metadata.apiVersion),e(this,"endpointPrefix",c.metadata.endpointPrefix),e(this,"signingName",c.metadata.signingName),e(this,"globalEndpoint",c.metadata.globalEndpoint),e(this,"signatureVersion",c.metadata.signatureVersion),e(this,"jsonVersion",c.metadata.jsonVersion),e(this,"targetPrefix",c.metadata.targetPrefix),e(this,"protocol",c.metadata.protocol),e(this,"timestampFormat",c.metadata.timestampFormat),e(this,"xmlNamespaceUri",c.metadata.xmlNamespace),e(this,"abbreviation",c.metadata.serviceAbbreviation),e(this,"fullName",c.metadata.serviceFullName),e(this,"serviceId",c.metadata.serviceId),T&&i[T]&&e(this,"xmlNoDefaultLists",i[T].xmlNoDefaultLists,!1),a(this,"className",function(){var _=c.metadata.serviceAbbreviation||c.metadata.serviceFullName;return _?("ElasticLoadBalancing"===(_=_.replace(/^Amazon|AWS\s*|\(.*|\s+|\W+/g,""))&&(_="ELB"),_):null}),e(this,"operations",new t(c.operations,y,function(_,g){return new w(_,g,y)},s.string.lowerFirst,function x(_,g){!0===g.endpointoperation&&e(f,"endpointOperation",s.string.lowerFirst(_)),g.endpointdiscovery&&!f.hasRequiredEndpointDiscovery&&e(f,"hasRequiredEndpointDiscovery",!0===g.endpointdiscovery.required)})),e(this,"shapes",new t(c.shapes,y,function(_,g){return p.create(g,y)})),e(this,"paginators",new t(c.paginators,y,function(_,g){return new r(_,g,y)})),e(this,"waiters",new t(c.waiters,y,function(_,g){return new n(_,g,y)},s.string.lowerFirst)),y.documentation&&(e(this,"documentation",c.documentation),e(this,"documentationUrl",c.documentationUrl)),e(this,"errorCodeMapping",c.awsQueryCompatible)}},13081:(ae,I,l)=>{var t=l(49229).memoizedProperty;function w(r,n,i,s){t(this,s(r),function(){return i(r,n)})}ae.exports=function p(r,n,i,s,e){for(var u in s=s||String,r)Object.prototype.hasOwnProperty.call(r,u)&&(w.call(this,u,r[u],i,s),e&&e(u,r[u]))}},92556:(ae,I,l)=>{var t=l(65454),w=l(49229),p=w.property,r=w.memoizedProperty;ae.exports=function n(s,e,a){var u=this;a=a||{},p(this,"name",e.name||s),p(this,"api",a.api,!1),e.http=e.http||{},p(this,"endpoint",e.endpoint),p(this,"httpMethod",e.http.method||"POST"),p(this,"httpPath",e.http.requestUri||"/"),p(this,"authtype",e.authtype||""),p(this,"endpointDiscoveryRequired",e.endpointdiscovery?e.endpointdiscovery.required?"REQUIRED":"OPTIONAL":"NULL"),p(this,"httpChecksumRequired",e.httpChecksumRequired||e.httpChecksum&&e.httpChecksum.requestChecksumRequired,!1),r(this,"input",function(){return e.input?t.create(e.input,a):new t.create({type:"structure"},a)}),r(this,"output",function(){return e.output?t.create(e.output,a):new t.create({type:"structure"},a)}),r(this,"errors",function(){var y=[];if(!e.errors)return null;for(var f=0;f<e.errors.length;f++)y.push(t.create(e.errors[f],a));return y}),r(this,"paginator",function(){return a.api.paginators[s]}),a.documentation&&(p(this,"documentation",e.documentation),p(this,"documentationUrl",e.documentationUrl)),r(this,"idempotentMembers",function(){var y=[],f=u.input,T=f.members;if(!f.members)return y;for(var x in T)T.hasOwnProperty(x)&&!0===T[x].isIdempotent&&y.push(x);return y}),r(this,"hasEventOutput",function(){return function i(s){var e=s.members,a=s.payload;if(!s.members)return!1;if(a)return e[a].isEventStream;for(var c in e)if(!e.hasOwnProperty(c)&&!0===e[c].isEventStream)return!0;return!1}(u.output)})}},80410:(ae,I,l)=>{var t=l(49229).property;ae.exports=function w(p,r){t(this,"inputToken",r.input_token),t(this,"limitKey",r.limit_key),t(this,"moreResults",r.more_results),t(this,"outputToken",r.output_token),t(this,"resultKey",r.result_key)}},53269:(ae,I,l)=>{var t=l(49229),w=t.property;ae.exports=function p(r,n,i){i=i||{},w(this,"name",r),w(this,"api",i.api,!1),n.operation&&w(this,"operation",t.string.lowerFirst(n.operation));var s=this;["type","description","delay","maxAttempts","acceptors"].forEach(function(a){var u=n[a];u&&w(s,a,u)})}},65454:(ae,I,l)=>{var t=l(13081),w=l(49229);function p(g,A,L){null!=L&&w.property.apply(this,arguments)}function r(g,A){g.constructor.prototype[A]||w.memoizedProperty.apply(this,arguments)}function n(g,A,L){A=A||{},p(this,"shape",g.shape),p(this,"api",A.api,!1),p(this,"type",g.type),p(this,"enum",g.enum),p(this,"min",g.min),p(this,"max",g.max),p(this,"pattern",g.pattern),p(this,"location",g.location||this.location||"body"),p(this,"name",this.name||g.xmlName||g.queryName||g.locationName||L),p(this,"isStreaming",g.streaming||this.isStreaming||!1),p(this,"requiresLength",g.requiresLength,!1),p(this,"isComposite",g.isComposite||!1),p(this,"isShape",!0,!1),p(this,"isQueryName",!!g.queryName,!1),p(this,"isLocationName",!!g.locationName,!1),p(this,"isIdempotent",!0===g.idempotencyToken),p(this,"isJsonValue",!0===g.jsonvalue),p(this,"isSensitive",!0===g.sensitive||g.prototype&&!0===g.prototype.sensitive),p(this,"isEventStream",!!g.eventstream,!1),p(this,"isEvent",!!g.event,!1),p(this,"isEventPayload",!!g.eventpayload,!1),p(this,"isEventHeader",!!g.eventheader,!1),p(this,"isTimestampFormatSet",!!g.timestampFormat||g.prototype&&!0===g.prototype.isTimestampFormatSet,!1),p(this,"endpointDiscoveryId",!!g.endpointdiscoveryid,!1),p(this,"hostLabel",!!g.hostLabel,!1),A.documentation&&(p(this,"documentation",g.documentation),p(this,"documentationUrl",g.documentationUrl)),g.xmlAttribute&&p(this,"isXmlAttribute",g.xmlAttribute||!1),p(this,"defaultValue",null),this.toWireFormat=function(j){return j??""},this.toType=function(j){return j}}function i(g){n.apply(this,arguments),p(this,"isComposite",!0),g.flattened&&p(this,"flattened",g.flattened||!1)}function s(g,A){var L=this,j=null,Q=!this.isShape;i.apply(this,arguments),Q&&(p(this,"defaultValue",function(){return{}}),p(this,"members",{}),p(this,"memberNames",[]),p(this,"required",[]),p(this,"isRequired",function(){return!1}),p(this,"isDocument",!!g.document)),g.members&&(p(this,"members",new t(g.members,A,function(F,b){return n.create(b,A,F)})),r(this,"memberNames",function(){return g.xmlOrder||Object.keys(g.members)}),g.event&&(r(this,"eventPayloadMemberName",function(){for(var F=L.members,b=L.memberNames,P=0,d=b.length;P<d;P++)if(F[b[P]].isEventPayload)return b[P]}),r(this,"eventHeaderMemberNames",function(){for(var F=L.members,b=L.memberNames,P=[],d=0,O=b.length;d<O;d++)F[b[d]].isEventHeader&&P.push(b[d]);return P}))),g.required&&(p(this,"required",g.required),p(this,"isRequired",function(F){if(!j){j={};for(var b=0;b<g.required.length;b++)j[g.required[b]]=!0}return j[F]},!1,!0)),p(this,"resultWrapper",g.resultWrapper||null),g.payload&&p(this,"payload",g.payload),"string"==typeof g.xmlNamespace?p(this,"xmlNamespaceUri",g.xmlNamespace):"object"==typeof g.xmlNamespace&&(p(this,"xmlNamespacePrefix",g.xmlNamespace.prefix),p(this,"xmlNamespaceUri",g.xmlNamespace.uri))}function e(g,A){var L=this,j=!this.isShape;if(i.apply(this,arguments),j&&p(this,"defaultValue",function(){return[]}),g.member&&r(this,"member",function(){return n.create(g.member,A)}),this.flattened){var Q=this.name;r(this,"name",function(){return L.member.name||Q})}}function a(g,A){var L=!this.isShape;i.apply(this,arguments),L&&(p(this,"defaultValue",function(){return{}}),p(this,"key",n.create({type:"string"},A)),p(this,"value",n.create({type:"string"},A))),g.key&&r(this,"key",function(){return n.create(g.key,A)}),g.value&&r(this,"value",function(){return n.create(g.value,A)})}function c(){n.apply(this,arguments);var g=["rest-xml","query","ec2"];this.toType=function(A){return A=this.api&&g.indexOf(this.api.protocol)>-1?A||"":A,this.isJsonValue?JSON.parse(A):A&&"function"==typeof A.toString?A.toString():A},this.toWireFormat=function(A){return this.isJsonValue?JSON.stringify(A):A}}function T(){n.apply(this,arguments),this.toType=function(g){var A=w.base64.decode(g);if(this.isSensitive&&w.isNode()&&"function"==typeof w.Buffer.alloc){var L=w.Buffer.alloc(A.length,A);A.fill(0),A=L}return A},this.toWireFormat=w.base64.encode}function x(){T.apply(this,arguments)}function _(){n.apply(this,arguments),this.toType=function(g){return"boolean"==typeof g?g:null==g?null:"true"===g}}n.normalizedTypes={character:"string",double:"float",long:"integer",short:"integer",biginteger:"integer",bigdecimal:"float",blob:"binary"},n.types={structure:s,list:e,map:a,boolean:_,timestamp:function u(g){var A=this;if(n.apply(this,arguments),g.timestampFormat)p(this,"timestampFormat",g.timestampFormat);else if(A.isTimestampFormatSet&&this.timestampFormat)p(this,"timestampFormat",this.timestampFormat);else if("header"===this.location)p(this,"timestampFormat","rfc822");else if("querystring"===this.location)p(this,"timestampFormat","iso8601");else if(this.api)switch(this.api.protocol){case"json":case"rest-json":p(this,"timestampFormat","unixTimestamp");break;case"rest-xml":case"query":case"ec2":p(this,"timestampFormat","iso8601")}this.toType=function(L){return null==L?null:"function"==typeof L.toUTCString?L:"string"==typeof L||"number"==typeof L?w.date.parseTimestamp(L):null},this.toWireFormat=function(L){return w.date.format(L,A.timestampFormat)}},float:function y(){n.apply(this,arguments),this.toType=function(g){return null==g?null:parseFloat(g)},this.toWireFormat=this.toType},integer:function f(){n.apply(this,arguments),this.toType=function(g){return null==g?null:parseInt(g,10)},this.toWireFormat=this.toType},string:c,base64:x,binary:T},n.resolve=function(A,L){if(A.shape){var j=L.api.shapes[A.shape];if(!j)throw new Error("Cannot find shape reference: "+A.shape);return j}return null},n.create=function(A,L,j){if(A.isShape)return A;var Q=n.resolve(A,L);if(Q){var F=Object.keys(A);L.documentation||(F=F.filter(function(d){return!d.match(/documentation/)}));var b=function(){Q.constructor.call(this,A,L,j)};return b.prototype=Q,new b}A.type||(A.type=A.members?"structure":A.member?"list":A.key?"map":"string");var P=A.type;if(n.normalizedTypes[A.type]&&(A.type=n.normalizedTypes[A.type]),n.types[A.type])return new n.types[A.type](A,L,j);throw new Error("Unrecognized shape type: "+P)},n.shapes={StructureShape:s,ListShape:e,MapShape:a,StringShape:c,BooleanShape:_,Base64Shape:x},ae.exports=n},70988:(ae,I,l)=>{var t=l(86462);t.ParamValidator=t.util.inherit({constructor:function(p){(!0===p||void 0===p)&&(p={min:!0}),this.validation=p},validate:function(p,r,n){if(this.errors=[],this.validateMember(p,r||{},n||"params"),this.errors.length>1){var i=this.errors.join("\n* ");throw i="There were "+this.errors.length+" validation errors:\n* "+i,t.util.error(new Error(i),{code:"MultipleValidationErrors",errors:this.errors})}if(1===this.errors.length)throw this.errors[0];return!0},fail:function(p,r){this.errors.push(t.util.error(new Error(r),{code:p}))},validateStructure:function(p,r,n){if(p.isDocument)return!0;this.validateType(r,n,["object"],"structure");for(var i,s=0;p.required&&s<p.required.length;s++)null==r[i=p.required[s]]&&this.fail("MissingRequiredParameter","Missing required key '"+i+"' in "+n);for(i in r)if(Object.prototype.hasOwnProperty.call(r,i)){var a=r[i],u=p.members[i];if(void 0!==u){var c=[n,i].join(".");this.validateMember(u,a,c)}else null!=a&&this.fail("UnexpectedParameter","Unexpected key '"+i+"' found in "+n)}return!0},validateMember:function(p,r,n){switch(p.type){case"structure":return this.validateStructure(p,r,n);case"list":return this.validateList(p,r,n);case"map":return this.validateMap(p,r,n);default:return this.validateScalar(p,r,n)}},validateList:function(p,r,n){if(this.validateType(r,n,[Array])){this.validateRange(p,r.length,n,"list member count");for(var i=0;i<r.length;i++)this.validateMember(p.member,r[i],n+"["+i+"]")}},validateMap:function(p,r,n){if(this.validateType(r,n,["object"],"map")){var i=0;for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&(this.validateMember(p.key,s,n+"[key='"+s+"']"),this.validateMember(p.value,r[s],n+"['"+s+"']"),i++);this.validateRange(p,i,n,"map member count")}},validateScalar:function(p,r,n){switch(p.type){case null:case void 0:case"string":return this.validateString(p,r,n);case"base64":case"binary":return this.validatePayload(r,n);case"integer":case"float":return this.validateNumber(p,r,n);case"boolean":return this.validateType(r,n,["boolean"]);case"timestamp":return this.validateType(r,n,[Date,/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d+)?Z$/,"number"],"Date object, ISO-8601 string, or a UNIX timestamp");default:return this.fail("UnkownType","Unhandled type "+p.type+" for "+n)}},validateString:function(p,r,n){var i=["string"];p.isJsonValue&&(i=i.concat(["number","object","boolean"])),null!==r&&this.validateType(r,n,i)&&(this.validateEnum(p,r,n),this.validateRange(p,r.length,n,"string length"),this.validatePattern(p,r,n),this.validateUri(p,r,n))},validateUri:function(p,r,n){"uri"===p.location&&0===r.length&&this.fail("UriParameterError",'Expected uri parameter to have length >= 1, but found "'+r+'" for '+n)},validatePattern:function(p,r,n){this.validation.pattern&&void 0!==p.pattern&&(new RegExp(p.pattern).test(r)||this.fail("PatternMatchError",'Provided value "'+r+'" does not match regex pattern /'+p.pattern+"/ for "+n))},validateRange:function(p,r,n,i){this.validation.min&&void 0!==p.min&&r<p.min&&this.fail("MinRangeError","Expected "+i+" >= "+p.min+", but found "+r+" for "+n),this.validation.max&&void 0!==p.max&&r>p.max&&this.fail("MaxRangeError","Expected "+i+" <= "+p.max+", but found "+r+" for "+n)},validateEnum:function(p,r,n){this.validation.enum&&void 0!==p.enum&&-1===p.enum.indexOf(r)&&this.fail("EnumError","Found string value of "+r+", but expected "+p.enum.join("|")+" for "+n)},validateType:function(p,r,n,i){if(null==p)return!1;for(var s=!1,e=0;e<n.length;e++){if("string"==typeof n[e]){if(typeof p===n[e])return!0}else if(n[e]instanceof RegExp){if((p||"").toString().match(n[e]))return!0}else{if(p instanceof n[e]||t.util.isType(p,n[e]))return!0;!i&&!s&&(n=n.slice()),n[e]=t.util.typeName(n[e])}s=!0}var a=i;a||(a=n.join(", ").replace(/,([^,]+)$/,", or$1"));var u=a.match(/^[aeiou]/i)?"n":"";return this.fail("InvalidParameterType","Expected "+r+" to be a"+u+" "+a),!1},validateNumber:function(p,r,n){if(null!=r){if("string"==typeof r){var i=parseFloat(r);i.toString()===r&&(r=i)}this.validateType(r,n,["number"])&&this.validateRange(p,r,n,"numeric value")}},validatePayload:function(p,r){if(null!=p&&"string"!=typeof p&&(!p||"number"!=typeof p.byteLength)){if(t.util.isNode()){var n=t.util.stream.Stream;if(t.util.Buffer.isBuffer(p)||p instanceof n)return}else if(void 0!==typeof Blob&&p instanceof Blob)return;var i=["Buffer","Stream","File","Blob","ArrayBuffer","DataView"];if(p)for(var s=0;s<i.length;s++)if(t.util.isType(p,i[s])||t.util.typeName(p.constructor)===i[s])return;this.fail("InvalidParameterType","Expected "+r+" to be a string, Buffer, Stream, Blob, or typed array object")}}})},96091:(ae,I,l)=>{var t=l(49229),w=l(86462);ae.exports={populateHostPrefix:function p(e){if(!e.service.config.hostPrefixEnabled)return e;var u=e.service.api.operations[e.operation];if(function r(e){var a=e.service.api,u=a.operations[e.operation],c=a.endpointOperation&&a.endpointOperation===t.string.lowerFirst(u.name);return"NULL"!==u.endpointDiscoveryRequired||!0===c}(e))return e;if(u.endpoint&&u.endpoint.hostPrefix){var y=function n(e,a,u){return t.each(u.members,function(c,y){if(!0===y.hostLabel){if("string"!=typeof a[c]||""===a[c])throw t.error(new Error,{message:"Parameter "+c+" should be a non-empty string.",code:"InvalidParameter"});var f=new RegExp("\\{"+c+"\\}","g");e=e.replace(f,a[c])}}),e}(u.endpoint.hostPrefix,e.params,u.input);(function i(e,a){e.host&&(e.host=a+e.host),e.hostname&&(e.hostname=a+e.hostname)})(e.httpRequest.endpoint,y),function s(e){var a=e.split("."),u=/^[a-zA-Z0-9]{1}$|^[a-zA-Z0-9][a-zA-Z0-9\-]*[a-zA-Z0-9]$/;t.arrayEach(a,function(c){if(!c.length||c.length<1||c.length>63)throw t.error(new Error,{code:"ValidationError",message:"Hostname label length should be between 1 to 63 characters, inclusive."});if(!u.test(c))throw w.util.error(new Error,{code:"ValidationError",message:c+" is not hostname compatible."})})}(e.httpRequest.endpoint.hostname)}return e}}},93240:(ae,I,l)=>{var t=l(49229),w=l(50629),p=l(4413),r=l(96091).populateHostPrefix;ae.exports={buildRequest:function n(e){var a=e.httpRequest,u=e.service.api,c=u.targetPrefix+"."+u.operations[e.operation].name,y=u.jsonVersion||"1.0",f=u.operations[e.operation].input,T=new w;1===y&&(y="1.0"),a.body=T.build(e.params||{},f),a.headers["Content-Type"]="application/x-amz-json-"+y,a.headers["X-Amz-Target"]=c,r(e)},extractError:function i(e){var a={},u=e.httpResponse;if(a.code=u.headers["x-amzn-errortype"]||"UnknownError","string"==typeof a.code&&(a.code=a.code.split(":")[0]),u.body.length>0)try{var c=JSON.parse(u.body.toString()),y=c.__type||c.code||c.Code;y&&(a.code=y.split("#").pop()),a.message="RequestEntityTooLarge"===a.code?"Request body must be less than 1 MB":c.message||c.Message||null}catch{a.statusCode=u.statusCode,a.message=u.statusMessage}else a.statusCode=u.statusCode,a.message=u.statusCode.toString();e.error=t.error(new Error,a)},extractData:function s(e){var a=e.httpResponse.body.toString()||"{}";if(!1===e.request.service.config.convertResponseTypes)e.data=JSON.parse(a);else{var c=e.request.service.api.operations[e.request.operation].output||{},y=new p;e.data=y.parse(a,c)}}}},88694:(ae,I,l)=>{var t=l(86462),w=l(49229),p=l(39119),r=l(65454),n=l(96091).populateHostPrefix;ae.exports={buildRequest:function i(a){var u=a.service.api.operations[a.operation],c=a.httpRequest;c.headers["Content-Type"]="application/x-www-form-urlencoded; charset=utf-8",c.params={Version:a.service.api.apiVersion,Action:u.name},(new p).serialize(a.params,u.input,function(f,T){c.params[f]=T}),c.body=w.queryParamsToString(c.params),n(a)},extractError:function s(a){var u,c=a.httpResponse.body.toString();if(c.match("<UnknownOperationException"))u={Code:"UnknownOperation",Message:"Unknown operation "+a.request.operation};else try{u=(new t.XML.Parser).parse(c)}catch{u={Code:a.httpResponse.statusCode,Message:a.httpResponse.statusMessage}}u.requestId&&!a.requestId&&(a.requestId=u.requestId),u.Errors&&(u=u.Errors),u.Error&&(u=u.Error),a.error=w.error(new Error,u.Code?{code:u.Code,message:u.Message}:{code:a.httpResponse.statusCode,message:null})},extractData:function e(a){var u=a.request,y=u.service.api.operations[u.operation].output||{},f=y;if(f.resultWrapper){var T=r.create({type:"structure"});T.members[f.resultWrapper]=y,T.memberNames=[f.resultWrapper],w.property(y,"name",y.resultWrapper),y=T}var x=new t.XML.Parser;if(y&&y.members&&!y.members._XAMZRequestId){var _=r.create({type:"string"},{api:{protocol:"query"}},"requestId");y.members._XAMZRequestId=_}var g=x.parse(a.httpResponse.body.toString(),y);a.requestId=g._XAMZRequestId||g.requestId,g._XAMZRequestId&&delete g._XAMZRequestId,f.resultWrapper&&g[f.resultWrapper]&&(w.update(g,g[f.resultWrapper]),delete g[f.resultWrapper]),a.data=g}}},12153:(ae,I,l)=>{var t=l(49229),w=l(96091).populateHostPrefix;function r(u,c,y,f){var T=[u,c].join("/");T=T.replace(/\/+/g,"/");var x={},_=!1;if(t.each(y.members,function(A,L){var j=f[A];if(null!=j)if("uri"===L.location){var Q=new RegExp("\\{"+L.name+"(\\+)?\\}");T=T.replace(Q,function(F,b){return(b?t.uriEscapePath:t.uriEscape)(String(j))})}else"querystring"===L.location&&(_=!0,"list"===L.type?x[L.name]=j.map(function(F){return t.uriEscape(L.member.toWireFormat(F).toString())}):"map"===L.type?t.each(j,function(F,b){x[F]=Array.isArray(b)?b.map(function(P){return t.uriEscape(String(P))}):t.uriEscape(String(b))}):x[L.name]=t.uriEscape(L.toWireFormat(j).toString()))}),_){T+=T.indexOf("?")>=0?"&":"?";var g=[];t.arrayEach(Object.keys(x).sort(),function(A){Array.isArray(x[A])||(x[A]=[x[A]]);for(var L=0;L<x[A].length;L++)g.push(t.uriEscape(String(A))+"="+x[A][L])}),T+=g.join("&")}return T}ae.exports={buildRequest:function s(u){(function p(u){u.httpRequest.method=u.service.api.operations[u.operation].httpMethod})(u),function n(u){var c=u.service.api.operations[u.operation],f=r(u.httpRequest.endpoint.path,c.httpPath,c.input,u.params);u.httpRequest.path=f}(u),function i(u){t.each(u.service.api.operations[u.operation].input.members,function(y,f){var T=u.params[y];null!=T&&("headers"===f.location&&"map"===f.type?t.each(T,function(x,_){u.httpRequest.headers[f.name+x]=_}):"header"===f.location&&(T=f.toWireFormat(T).toString(),f.isJsonValue&&(T=t.base64.encode(T)),u.httpRequest.headers[f.name]=T))})}(u),w(u)},extractError:function e(){},extractData:function a(u){var c=u.request,y={},f=u.httpResponse,x=c.service.api.operations[c.operation].output,_={};t.each(f.headers,function(g,A){_[g.toLowerCase()]=A}),t.each(x.members,function(g,A){var L=(A.name||g).toLowerCase();if("headers"===A.location&&"map"===A.type){y[g]={};var Q=new RegExp("^"+(A.isLocationName?A.name:"")+"(.+)","i");t.each(f.headers,function(b,P){var d=b.match(Q);null!==d&&(y[g][d[1]]=P)})}else if("header"===A.location){if(void 0!==_[L]){var F=A.isJsonValue?t.base64.decode(_[L]):_[L];y[g]=A.toType(F)}}else"statusCode"===A.location&&(y[g]=parseInt(f.statusCode,10))}),u.data=y},generateURI:r}},34691:(ae,I,l)=>{var t=l(49229),w=l(12153),p=l(93240),r=l(50629),n=l(4413);function s(c,y){c.httpRequest.headers["Content-Type"]||(c.httpRequest.headers["Content-Type"]=y?"binary/octet-stream":"application/json")}ae.exports={buildRequest:function e(c){w.buildRequest(c),["GET","HEAD","DELETE"].indexOf(c.httpRequest.method)<0&&function i(c){var y=new r,f=c.service.api.operations[c.operation].input;if(f.payload){var T,x=f.members[f.payload];T=c.params[f.payload],"structure"===x.type?(c.httpRequest.body=y.build(T||{},x),s(c)):void 0!==T&&(c.httpRequest.body=T,("binary"===x.type||x.isStreaming)&&s(c,!0))}else c.httpRequest.body=y.build(c.params,f),s(c)}(c)},extractError:function a(c){p.extractError(c)},extractData:function u(c){w.extractData(c);var y=c.request,T=y.service.api.operations[y.operation].output||{};if(T.payload){var g=T.members[T.payload],A=c.httpResponse.body;if(g.isEventStream)x=new n,c.data[payload]=t.createEventStream(2===AWS.HttpClient.streamsApiVersion?c.httpResponse.stream:A,x,g);else if("structure"===g.type||"list"===g.type){var x=new n;c.data[T.payload]=x.parse(A,g)}else c.data[T.payload]="binary"===g.type||g.isStreaming?A:g.toType(A)}else{var L=c.data;p.extractData(c),c.data=t.merge(L,c.data)}}}},49679:(ae,I,l)=>{var t=l(86462),w=l(49229),p=l(12153);ae.exports={buildRequest:function n(e){p.buildRequest(e),["GET","HEAD"].indexOf(e.httpRequest.method)<0&&function r(e){var a=e.service.api.operations[e.operation].input,u=new t.XML.Builder,c=e.params,y=a.payload;if(y){var f=a.members[y];if(void 0===(c=c[y]))return;e.httpRequest.body="structure"===f.type?u.toXML(c,f,f.name,!0):c}else e.httpRequest.body=u.toXML(c,a,a.name||a.shape||w.string.upperFirst(e.operation)+"Request")}(e)},extractError:function i(e){var a;p.extractError(e);try{a=(new t.XML.Parser).parse(e.httpResponse.body.toString())}catch{a={Code:e.httpResponse.statusCode,Message:e.httpResponse.statusMessage}}a.Errors&&(a=a.Errors),a.Error&&(a=a.Error),e.error=w.error(new Error,a.Code?{code:a.Code,message:a.Message}:{code:e.httpResponse.statusCode,message:null})},extractData:function s(e){p.extractData(e);var a,u=e.request,c=e.httpResponse.body,f=u.service.api.operations[u.operation].output,x=f.payload;if(x){var _=f.members[x];_.isEventStream?(a=new t.XML.Parser,e.data[x]=w.createEventStream(2===t.HttpClient.streamsApiVersion?e.httpResponse.stream:e.httpResponse.body,a,_)):"structure"===_.type?(a=new t.XML.Parser,e.data[x]=a.parse(c.toString(),_)):e.data[x]="binary"===_.type||_.isStreaming?c:_.toType(c)}else if(c.length>0){var g=(a=new t.XML.Parser).parse(c.toString(),f);w.update(e.data,g)}}}},39119:(ae,I,l)=>{var t=l(49229);function w(){}function p(e){return e.isQueryName||"ec2"!==e.api.protocol?e.name:e.name[0].toUpperCase()+e.name.substr(1)}function r(e,a,u,c){t.each(u.members,function(y,f){var T=a[y];if(null!=T){var x=p(f);s(x=e?e+"."+x:x,T,f,c)}})}function s(e,a,u,c){null!=a&&("structure"===u.type?r(e,a,u,c):"list"===u.type?function i(e,a,u,c){var y=u.member||{};0!==a.length?t.arrayEach(a,function(f,T){var x="."+(T+1);if("ec2"===u.api.protocol)x+="";else if(u.flattened){if(y.name){var _=e.split(".");_.pop(),_.push(p(y)),e=_.join(".")}}else x="."+(y.name?y.name:"member")+x;s(e+x,f,y,c)}):c.call(this,e,null)}(e,a,u,c):"map"===u.type?function n(e,a,u,c){var y=1;t.each(a,function(f,T){var _=(u.flattened?".":".entry.")+y+++".",A=_+(u.value.name||"value");s(e+(_+(u.key.name||"key")),f,u.key,c),s(e+A,T,u.value,c)})}(e,a,u,c):c(e,u.toWireFormat(a).toString()))}w.prototype.serialize=function(e,a,u){r("",e,a,u)},ae.exports=w},89559:ae=>{ae.exports={now:function(){return typeof performance<"u"&&"function"==typeof performance.now?performance.now():Date.now()}}},95906:ae=>{ae.exports={isFipsRegion:function I(w){return"string"==typeof w&&(w.startsWith("fips-")||w.endsWith("-fips"))},isGlobalRegion:function l(w){return"string"==typeof w&&["aws-global","aws-us-gov-global"].includes(w)},getRealRegion:function t(w){return["fips-aws-global","aws-fips","aws-global"].includes(w)?"us-east-1":["fips-aws-us-gov-global","aws-us-gov-global"].includes(w)?"us-gov-west-1":w.replace(/fips-(dkr-|prod-)?|-fips/,"")}}},55929:(ae,I,l)=>{var t=l(49229),w=l(85595);function n(e,a){t.each(a,function(u,c){"globalEndpoint"!==u&&null==e.config[u]&&(e.config[u]=c)})}ae.exports={configureEndpoint:function i(e){for(var a=function r(e){var a=e.config.region,u=function p(e){if(!e)return null;var a=e.split("-");return a.length<3?null:a.slice(0,a.length-2).join("-")+"-*"}(a),c=e.api.endpointPrefix;return[[a,c],[u,c],[a,"*"],[u,"*"],["*",c],["*","*"]].map(function(y){return y[0]&&y[1]?y.join("/"):null})}(e),u=e.config.useFipsEndpoint,c=e.config.useDualstackEndpoint,y=0;y<a.length;y++){var f=a[y];if(f){var T=u?c?w.dualstackFipsRules:w.fipsRules:c?w.dualstackRules:w.rules;if(Object.prototype.hasOwnProperty.call(T,f)){var x=T[f];return"string"==typeof x&&(x=w.patterns[x]),e.isGlobalEndpoint=!!x.globalEndpoint,x.signingRegion&&(e.signingRegion=x.signingRegion),x.signatureVersion||(x.signatureVersion="v4"),void n(e,x)}}}},getEndpointSuffix:function s(e){for(var a={"^(us|eu|ap|sa|ca|me)\\-\\w+\\-\\d+$":"amazonaws.com","^cn\\-\\w+\\-\\d+$":"amazonaws.com.cn","^us\\-gov\\-\\w+\\-\\d+$":"amazonaws.com","^us\\-iso\\-\\w+\\-\\d+$":"c2s.ic.gov","^us\\-isob\\-\\w+\\-\\d+$":"sc2s.sgov.gov"},c=Object.keys(a),y=0;y<c.length;y++){var f=RegExp(c[y]),T=a[c[y]];if(f.test(e))return T}return"amazonaws.com"}}},22091:(ae,I,l)=>{var t=l(86462),w=l(45481),p=t.util.inherit,r=t.util.domain,n=l(36151),i={success:1,error:1,complete:1},e=new w;e.setupStates=function(){var a=function(u,c){var y=this;y._haltHandlersOnError=!1,y.emit(y._asm.currentState,function(f){if(f)if(function s(a){return Object.prototype.hasOwnProperty.call(i,a._asm.currentState)}(y)){if(!(r&&y.domain instanceof r.Domain))throw f;f.domainEmitter=y,f.domain=y.domain,f.domainThrown=!1,y.domain.emit("error",f)}else y.response.error=f,c(f);else c(y.response.error)})};this.addState("validate","build","error",a),this.addState("build","afterBuild","restart",a),this.addState("afterBuild","sign","restart",a),this.addState("sign","send","retry",a),this.addState("retry","afterRetry","afterRetry",a),this.addState("afterRetry","sign","error",a),this.addState("send","validateResponse","retry",a),this.addState("validateResponse","extractData","extractError",a),this.addState("extractError","extractData","retry",a),this.addState("extractData","success","retry",a),this.addState("restart","build","error",a),this.addState("success","complete","complete",a),this.addState("error","complete","complete",a),this.addState("complete",null,null,a)},e.setupStates(),t.Request=p({constructor:function(u,c,y){var f=u.endpoint,T=u.config.region,x=u.config.customUserAgent;u.signingRegion?T=u.signingRegion:u.isGlobalEndpoint&&(T="us-east-1"),this.domain=r&&r.active,this.service=u,this.operation=c,this.params=y||{},this.httpRequest=new t.HttpRequest(f,T),this.httpRequest.appendToUserAgent(x),this.startTime=u.getSkewCorrectedDate(),this.response=new t.Response(this),this._asm=new w(e.states,"validate"),this._haltHandlersOnError=!1,t.SequentialExecutor.call(this),this.emit=this.emitEvent},send:function(u){return u&&(this.httpRequest.appendToUserAgent("callback"),this.on("complete",function(c){u.call(c,c.error,c.data)})),this.runTo(),this.response},build:function(u){return this.runTo("send",u)},runTo:function(u,c){return this._asm.runTo(u,c,this),this},abort:function(){return this.removeAllListeners("validateResponse"),this.removeAllListeners("extractError"),this.on("validateResponse",function(c){c.error=t.util.error(new Error("Request aborted by user"),{code:"RequestAbortedError",retryable:!1})}),this.httpRequest.stream&&!this.httpRequest.stream.didCallback&&(this.httpRequest.stream.abort(),this.httpRequest._abortCallback?this.httpRequest._abortCallback():this.removeAllListeners("send")),this},eachPage:function(u){u=t.util.fn.makeAsync(u,3),this.on("complete",function c(y){u.call(y,y.error,y.data,function(f){!1!==f&&(y.hasNextPage()?y.nextPage().on("complete",c).send():u.call(y,null,null,t.util.fn.noop))})}).send()},eachItem:function(u){var c=this;this.eachPage(function y(f,T){if(f)return u(f,null);if(null===T)return u(null,null);var _=c.service.paginationConfig(c.operation).resultKey;Array.isArray(_)&&(_=_[0]);var g=n.search(T,_),A=!0;return t.util.arrayEach(g,function(L){if(!1===(A=u(null,L)))return t.util.abort}),A})},isPageable:function(){return!!this.service.paginationConfig(this.operation)},createReadStream:function(){var u=t.util.stream,c=this,y=null;return 2===t.HttpClient.streamsApiVersion?(y=new u.PassThrough,process.nextTick(function(){c.send()})):((y=new u.Stream).readable=!0,y.sent=!1,y.on("newListener",function(f){!y.sent&&"data"===f&&(y.sent=!0,process.nextTick(function(){c.send()}))})),this.on("error",function(f){y.emit("error",f)}),this.on("httpHeaders",function(T,x,_){if(T<300){c.removeListener("httpData",t.EventListeners.Core.HTTP_DATA),c.removeListener("httpError",t.EventListeners.Core.HTTP_ERROR),c.on("httpError",function(P){_.error=P,_.error.retryable=!1});var A,g=!1;if("HEAD"!==c.httpRequest.method&&(A=parseInt(x["content-length"],10)),void 0!==A&&!isNaN(A)&&A>=0){g=!0;var L=0}var j=function(){g&&L!==A?y.emit("error",t.util.error(new Error("Stream content length mismatch. Received "+L+" of "+A+" bytes."),{code:"StreamContentLengthMismatch"})):2===t.HttpClient.streamsApiVersion?y.end():y.emit("end")},Q=_.httpResponse.createUnbufferedStream();if(2===t.HttpClient.streamsApiVersion)if(g){var F=new u.PassThrough;F._write=function(b){return b&&b.length&&(L+=b.length),u.PassThrough.prototype._write.apply(this,arguments)},F.on("end",j),y.on("error",function(b){g=!1,Q.unpipe(F),F.emit("end"),F.end()}),Q.pipe(F).pipe(y,{end:!1})}else Q.pipe(y);else g&&Q.on("data",function(b){b&&b.length&&(L+=b.length)}),Q.on("data",function(b){y.emit("data",b)}),Q.on("end",j);Q.on("error",function(b){g=!1,y.emit("error",b)})}}),y},emitEvent:function(u,c,y){"function"==typeof c&&(y=c,c=null),y||(y=function(){}),c||(c=this.eventParameters(u,this.response)),t.SequentialExecutor.prototype.emit.call(this,u,c,function(T){T&&(this.response.error=T),y.call(this,T)})},eventParameters:function(u){switch(u){case"restart":case"validate":case"sign":case"build":case"afterValidate":case"afterBuild":return[this];case"error":return[this.response.error,this.response];default:return[this.response]}},presign:function(u,c){return!c&&"function"==typeof u&&(c=u,u=null),(new t.Signers.Presign).sign(this.toGet(),u,c)},isPresigned:function(){return Object.prototype.hasOwnProperty.call(this.httpRequest.headers,"presigned-expires")},toUnauthenticated:function(){return this._unAuthenticated=!0,this.removeListener("validate",t.EventListeners.Core.VALIDATE_CREDENTIALS),this.removeListener("sign",t.EventListeners.Core.SIGN),this},toGet:function(){return("query"===this.service.api.protocol||"ec2"===this.service.api.protocol)&&(this.removeListener("build",this.buildAsGet),this.addListener("build",this.buildAsGet)),this},buildAsGet:function(u){u.httpRequest.method="GET",u.httpRequest.path=u.service.endpoint.path+"?"+u.httpRequest.body,u.httpRequest.body="",delete u.httpRequest.headers["Content-Length"],delete u.httpRequest.headers["Content-Type"]},haltHandlersOnError:function(){this._haltHandlersOnError=!0}}),t.Request.addPromisesToClass=function(u){this.prototype.promise=function(){var y=this;return this.httpRequest.appendToUserAgent("promise"),new u(function(f,T){y.on("complete",function(x){x.error?T(x.error):f(Object.defineProperty(x.data||{},"$response",{value:x}))}),y.runTo()})}},t.Request.deletePromisesFromClass=function(){delete this.prototype.promise},t.util.addPromises(t.Request),t.util.mixin(t.Request,t.SequentialExecutor)},51272:(ae,I,l)=>{var t=l(86462),w=t.util.inherit,p=l(36151);function r(n){var i=n.request._waiter,e=!1,a="retry";i.config.acceptors.forEach(function(u){if(!e){var c=i.matchers[u.matcher];c&&c(n,u.expected,u.argument)&&(e=!0,a=u.state)}}),!e&&n.error&&(a="failure"),"success"===a?i.setSuccess(n):i.setError(n,"retry"===a)}t.ResourceWaiter=w({constructor:function(i,s){this.service=i,this.state=s,this.loadWaiterConfig(this.state)},service:null,state:null,config:null,matchers:{path:function(n,i,s){try{var e=p.search(n.data,s)}catch{return!1}return p.strictDeepEqual(e,i)},pathAll:function(n,i,s){try{var e=p.search(n.data,s)}catch{return!1}Array.isArray(e)||(e=[e]);var a=e.length;if(!a)return!1;for(var u=0;u<a;u++)if(!p.strictDeepEqual(e[u],i))return!1;return!0},pathAny:function(n,i,s){try{var e=p.search(n.data,s)}catch{return!1}Array.isArray(e)||(e=[e]);for(var a=e.length,u=0;u<a;u++)if(p.strictDeepEqual(e[u],i))return!0;return!1},status:function(n,i){var s=n.httpResponse.statusCode;return"number"==typeof s&&s===i},error:function(n,i){return"string"==typeof i&&n.error?i===n.error.code:i===!!n.error}},listeners:(new t.SequentialExecutor).addNamedListeners(function(n){n("RETRY_CHECK","retry",function(i){i.error&&"ResourceNotReady"===i.error.code&&(i.error.retryDelay=1e3*(i.request._waiter.config.delay||0))}),n("CHECK_OUTPUT","extractData",r),n("CHECK_ERROR","extractError",r)}),wait:function(i,s){"function"==typeof i&&(s=i,i=void 0),i&&i.$waiter&&("number"==typeof(i=t.util.copy(i)).$waiter.delay&&(this.config.delay=i.$waiter.delay),"number"==typeof i.$waiter.maxAttempts&&(this.config.maxAttempts=i.$waiter.maxAttempts),delete i.$waiter);var e=this.service.makeRequest(this.config.operation,i);return e._waiter=this,e.response.maxRetries=this.config.maxAttempts,e.addListeners(this.listeners),s&&e.send(s),e},setSuccess:function(i){i.error=null,i.data=i.data||{},i.request.removeAllListeners("extractData")},setError:function(i,s){i.data=null,i.error=t.util.error(i.error||new Error,{code:"ResourceNotReady",message:"Resource is not in the state "+this.state,retryable:s})},loadWaiterConfig:function(i){if(!this.service.api.waiters[i])throw new t.util.error(new Error,{code:"StateNotFoundError",message:"State "+i+" not found."});this.config=t.util.copy(this.service.api.waiters[i])}})},5001:(ae,I,l)=>{var t=l(86462),w=t.util.inherit,p=l(36151);t.Response=w({constructor:function(n){this.request=n,this.data=null,this.error=null,this.retryCount=0,this.redirectCount=0,this.httpResponse=new t.HttpResponse,n&&(this.maxRetries=n.service.numRetries(),this.maxRedirects=n.service.config.maxRedirects)},nextPage:function(n){var i,s=this.request.service,e=this.request.operation;try{i=s.paginationConfig(e,!0)}catch(y){this.error=y}if(!this.hasNextPage()){if(n)n(this.error,null);else if(this.error)throw this.error;return null}var a=t.util.copy(this.request.params);if(this.nextPageTokens){var u=i.inputToken;"string"==typeof u&&(u=[u]);for(var c=0;c<u.length;c++)a[u[c]]=this.nextPageTokens[c];return s.makeRequest(this.request.operation,a,n)}return n?n(null,null):null},hasNextPage:function(){return this.cacheNextPageTokens(),!!this.nextPageTokens||void 0===this.nextPageTokens&&void 0},cacheNextPageTokens:function(){if(Object.prototype.hasOwnProperty.call(this,"nextPageTokens"))return this.nextPageTokens;this.nextPageTokens=void 0;var n=this.request.service.paginationConfig(this.request.operation);if(!n)return this.nextPageTokens;if(this.nextPageTokens=null,n.moreResults&&!p.search(this.data,n.moreResults))return this.nextPageTokens;var i=n.outputToken;return"string"==typeof i&&(i=[i]),t.util.arrayEach.call(this,i,function(s){var e=p.search(this.data,s);e&&(this.nextPageTokens=this.nextPageTokens||[],this.nextPageTokens.push(e))}),this.nextPageTokens}})},86275:(ae,I,l)=>{var t=l(86462);t.SequentialExecutor=t.util.inherit({constructor:function(){this._events={}},listeners:function(p){return this._events[p]?this._events[p].slice(0):[]},on:function(p,r,n){return this._events[p]?n?this._events[p].unshift(r):this._events[p].push(r):this._events[p]=[r],this},onAsync:function(p,r,n){return r._isAsync=!0,this.on(p,r,n)},removeListener:function(p,r){var n=this._events[p];if(n){for(var i=n.length,s=-1,e=0;e<i;++e)n[e]===r&&(s=e);s>-1&&n.splice(s,1)}return this},removeAllListeners:function(p){return p?delete this._events[p]:this._events={},this},emit:function(p,r,n){n||(n=function(){});var i=this.listeners(p),s=i.length;return this.callListeners(i,r,n),s>0},callListeners:function(p,r,n,i){var s=this,e=i||null;function a(c){if(c&&(e=t.util.error(e||new Error,c),s._haltHandlersOnError))return n.call(s,e);s.callListeners(p,r,n,e)}for(;p.length>0;){var u=p.shift();if(u._isAsync)return void u.apply(s,r.concat([a]));try{u.apply(s,r)}catch(c){e=t.util.error(e||new Error,c)}if(e&&s._haltHandlersOnError)return void n.call(s,e)}n.call(s,e)},addListeners:function(p){var r=this;return p._events&&(p=p._events),t.util.each(p,function(n,i){"function"==typeof i&&(i=[i]),t.util.arrayEach(i,function(s){r.on(n,s)})}),r},addNamedListener:function(p,r,n,i){return this[p]=n,this.addListener(r,n,i),this},addNamedAsyncListener:function(p,r,n,i){return n._isAsync=!0,this.addNamedListener(p,r,n,i)},addNamedListeners:function(p){var r=this;return p(function(){r.addNamedListener.apply(r,arguments)},function(){r.addNamedAsyncListener.apply(r,arguments)}),this}}),t.SequentialExecutor.prototype.addListener=t.SequentialExecutor.prototype.on,ae.exports=t.SequentialExecutor},95241:(ae,I,l)=>{var t=l(86462),w=l(24558),p=l(55929),r=t.util.inherit,n=0,i=l(95906);t.Service=r({constructor:function(e){if(!this.loadServiceClass)throw t.util.error(new Error,"Service must be constructed with `new' operator");if(e){if(e.region){var a=e.region;i.isFipsRegion(a)&&(e.region=i.getRealRegion(a),e.useFipsEndpoint=!0),i.isGlobalRegion(a)&&(e.region=i.getRealRegion(a))}"boolean"==typeof e.useDualstack&&"boolean"!=typeof e.useDualstackEndpoint&&(e.useDualstackEndpoint=e.useDualstack)}var u=this.loadServiceClass(e||{});if(u){var c=t.util.copy(e),y=new u(e);return Object.defineProperty(y,"_originalConfig",{get:function(){return c},enumerable:!1,configurable:!0}),y._clientId=++n,y}this.initialize(e)},initialize:function(e){var a=t.config[this.serviceIdentifier];if(this.config=new t.Config(t.config),a&&this.config.update(a,!0),e&&this.config.update(e,!0),this.validateService(),this.config.endpoint||p.configureEndpoint(this),this.config.endpoint=this.endpointFromTemplate(this.config.endpoint),this.setEndpoint(this.config.endpoint),t.SequentialExecutor.call(this),t.Service.addDefaultMonitoringListeners(this),(this.config.clientSideMonitoring||t.Service._clientSideMonitoring)&&this.publisher){var u=this.publisher;this.addNamedListener("PUBLISH_API_CALL","apiCall",function(y){process.nextTick(function(){u.eventHandler(y)})}),this.addNamedListener("PUBLISH_API_ATTEMPT","apiCallAttempt",function(y){process.nextTick(function(){u.eventHandler(y)})})}},validateService:function(){},loadServiceClass:function(e){var a=e;if(t.util.isEmpty(this.api)){if(a.apiConfig)return t.Service.defineServiceApi(this.constructor,a.apiConfig);if(this.constructor.services){(a=new t.Config(t.config)).update(e,!0);var u=a.apiVersions[this.constructor.serviceIdentifier];return this.getLatestServiceClass(u=u||a.apiVersion)}return null}return null},getLatestServiceClass:function(e){return e=this.getLatestServiceVersion(e),null===this.constructor.services[e]&&t.Service.defineServiceApi(this.constructor,e),this.constructor.services[e]},getLatestServiceVersion:function(e){if(!this.constructor.services||0===this.constructor.services.length)throw new Error("No services defined on "+this.constructor.serviceIdentifier);if(e?t.util.isType(e,Date)&&(e=t.util.date.iso8601(e).split("T")[0]):e="latest",Object.hasOwnProperty(this.constructor.services,e))return e;for(var a=Object.keys(this.constructor.services).sort(),u=null,c=a.length-1;c>=0;c--)if("*"!==a[c][a[c].length-1]&&(u=a[c]),a[c].substr(0,10)<=e)return u;throw new Error("Could not find "+this.constructor.serviceIdentifier+" API to satisfy version constraint `"+e+"'")},api:{},defaultRetryCount:3,customizeRequests:function(e){if(e){if("function"!=typeof e)throw new Error("Invalid callback type '"+typeof e+"' provided in customizeRequests");this.customRequestHandler=e}else this.customRequestHandler=null},makeRequest:function(e,a,u){if("function"==typeof a&&(u=a,a=null),a=a||{},this.config.params){var c=this.api.operations[e];c&&(a=t.util.copy(a),t.util.each(this.config.params,function(f,T){c.input.members[f]&&null==a[f]&&(a[f]=T)}))}var y=new t.Request(this,e,a);return this.addAllRequestListeners(y),this.attachMonitoringEmitter(y),u&&y.send(u),y},makeUnauthenticatedRequest:function(e,a,u){"function"==typeof a&&(u=a,a={});var c=this.makeRequest(e,a).toUnauthenticated();return u?c.send(u):c},waitFor:function(e,a,u){return new t.ResourceWaiter(this,e).wait(a,u)},addAllRequestListeners:function(e){for(var a=[t.events,t.EventListeners.Core,this.serviceInterface(),t.EventListeners.CorePost],u=0;u<a.length;u++)a[u]&&e.addListeners(a[u]);this.config.paramValidation||e.removeListener("validate",t.EventListeners.Core.VALIDATE_PARAMETERS),this.config.logger&&e.addListeners(t.EventListeners.Logger),this.setupRequestListeners(e),"function"==typeof this.constructor.prototype.customRequestHandler&&this.constructor.prototype.customRequestHandler(e),Object.prototype.hasOwnProperty.call(this,"customRequestHandler")&&"function"==typeof this.customRequestHandler&&this.customRequestHandler(e)},apiCallEvent:function(e){var a=e.service.api.operations[e.operation],u={Type:"ApiCall",Api:a?a.name:e.operation,Version:1,Service:e.service.api.serviceId||e.service.api.endpointPrefix,Region:e.httpRequest.region,MaxRetriesExceeded:0,UserAgent:e.httpRequest.getUserAgent()},c=e.response;if(c.httpResponse.statusCode&&(u.FinalHttpStatusCode=c.httpResponse.statusCode),c.error){var y=c.error;c.httpResponse.statusCode>299?(y.code&&(u.FinalAwsException=y.code),y.message&&(u.FinalAwsExceptionMessage=y.message)):((y.code||y.name)&&(u.FinalSdkException=y.code||y.name),y.message&&(u.FinalSdkExceptionMessage=y.message))}return u},apiAttemptEvent:function(e){var a=e.service.api.operations[e.operation],u={Type:"ApiCallAttempt",Api:a?a.name:e.operation,Version:1,Service:e.service.api.serviceId||e.service.api.endpointPrefix,Fqdn:e.httpRequest.endpoint.hostname,UserAgent:e.httpRequest.getUserAgent()},c=e.response;return c.httpResponse.statusCode&&(u.HttpStatusCode=c.httpResponse.statusCode),!e._unAuthenticated&&e.service.config.credentials&&e.service.config.credentials.accessKeyId&&(u.AccessKey=e.service.config.credentials.accessKeyId),c.httpResponse.headers&&(e.httpRequest.headers["x-amz-security-token"]&&(u.SessionToken=e.httpRequest.headers["x-amz-security-token"]),c.httpResponse.headers["x-amzn-requestid"]&&(u.XAmznRequestId=c.httpResponse.headers["x-amzn-requestid"]),c.httpResponse.headers["x-amz-request-id"]&&(u.XAmzRequestId=c.httpResponse.headers["x-amz-request-id"]),c.httpResponse.headers["x-amz-id-2"]&&(u.XAmzId2=c.httpResponse.headers["x-amz-id-2"])),u},attemptFailEvent:function(e){var a=this.apiAttemptEvent(e),u=e.response,c=u.error;return u.httpResponse.statusCode>299?(c.code&&(a.AwsException=c.code),c.message&&(a.AwsExceptionMessage=c.message)):((c.code||c.name)&&(a.SdkException=c.code||c.name),c.message&&(a.SdkExceptionMessage=c.message)),a},attachMonitoringEmitter:function(e){var a,u,c,y,T,x,f=0,_=this;e.on("validate",function(){y=t.util.realClock.now(),x=Date.now()},!0),e.on("sign",function(){u=t.util.realClock.now(),a=Date.now(),T=e.httpRequest.region,f++},!0),e.on("validateResponse",function(){c=Math.round(t.util.realClock.now()-u)}),e.addNamedListener("API_CALL_ATTEMPT","success",function(){var L=_.apiAttemptEvent(e);L.Timestamp=a,L.AttemptLatency=c>=0?c:0,L.Region=T,_.emit("apiCallAttempt",[L])}),e.addNamedListener("API_CALL_ATTEMPT_RETRY","retry",function(){var L=_.attemptFailEvent(e);L.Timestamp=a,c=c||Math.round(t.util.realClock.now()-u),L.AttemptLatency=c>=0?c:0,L.Region=T,_.emit("apiCallAttempt",[L])}),e.addNamedListener("API_CALL","complete",function(){var L=_.apiCallEvent(e);if(L.AttemptCount=f,!(L.AttemptCount<=0)){L.Timestamp=x;var j=Math.round(t.util.realClock.now()-y);L.Latency=j>=0?j:0;var Q=e.response;Q.error&&Q.error.retryable&&"number"==typeof Q.retryCount&&"number"==typeof Q.maxRetries&&Q.retryCount>=Q.maxRetries&&(L.MaxRetriesExceeded=1),_.emit("apiCall",[L])}})},setupRequestListeners:function(e){},getSigningName:function(){return this.api.signingName||this.api.endpointPrefix},getSignerClass:function(e){var u=null,c="";return e&&(c=(u=(e.service.api.operations||{})[e.operation]||null)?u.authtype:""),t.Signers.RequestSigner.getVersion(this.config.signatureVersion?this.config.signatureVersion:"v4"===c||"v4-unsigned-body"===c?"v4":this.api.signatureVersion)},serviceInterface:function(){switch(this.api.protocol){case"ec2":case"query":return t.EventListeners.Query;case"json":return t.EventListeners.Json;case"rest-json":return t.EventListeners.RestJson;case"rest-xml":return t.EventListeners.RestXml}if(this.api.protocol)throw new Error("Invalid service `protocol' "+this.api.protocol+" in API config")},successfulResponse:function(e){return e.httpResponse.statusCode<300},numRetries:function(){return void 0!==this.config.maxRetries?this.config.maxRetries:this.defaultRetryCount},retryDelays:function(e,a){return t.util.calculateRetryDelay(e,this.config.retryDelayOptions,a)},retryableError:function(e){return!!(this.timeoutError(e)||this.networkingError(e)||this.expiredCredentialsError(e)||this.throttledError(e)||e.statusCode>=500)},networkingError:function(e){return"NetworkingError"===e.code},timeoutError:function(e){return"TimeoutError"===e.code},expiredCredentialsError:function(e){return"ExpiredTokenException"===e.code},clockSkewError:function(e){switch(e.code){case"RequestTimeTooSkewed":case"RequestExpired":case"InvalidSignatureException":case"SignatureDoesNotMatch":case"AuthFailure":case"RequestInTheFuture":return!0;default:return!1}},getSkewCorrectedDate:function(){return new Date(Date.now()+this.config.systemClockOffset)},applyClockOffset:function(e){e&&(this.config.systemClockOffset=e-Date.now())},isClockSkewed:function(e){if(e)return Math.abs(this.getSkewCorrectedDate().getTime()-e)>=3e5},throttledError:function(e){if(429===e.statusCode)return!0;switch(e.code){case"ProvisionedThroughputExceededException":case"Throttling":case"ThrottlingException":case"RequestLimitExceeded":case"RequestThrottled":case"RequestThrottledException":case"TooManyRequestsException":case"TransactionInProgressException":case"EC2ThrottledException":return!0;default:return!1}},endpointFromTemplate:function(e){if("string"!=typeof e)return e;var a=e;return(a=(a=a.replace(/\{service\}/g,this.api.endpointPrefix)).replace(/\{region\}/g,this.config.region)).replace(/\{scheme\}/g,this.config.sslEnabled?"https":"http")},setEndpoint:function(e){this.endpoint=new t.Endpoint(e,this.config)},paginationConfig:function(e,a){var u=this.api.operations[e].paginator;if(!u){if(a){var c=new Error;throw t.util.error(c,"No pagination configuration for "+e)}return null}return u}}),t.util.update(t.Service,{defineMethods:function(e){t.util.each(e.prototype.api.operations,function(u){e.prototype[u]||(e.prototype[u]="none"===e.prototype.api.operations[u].authtype?function(y,f){return this.makeUnauthenticatedRequest(u,y,f)}:function(y,f){return this.makeRequest(u,y,f)})})},defineService:function(e,a,u){t.Service._serviceMap[e]=!0,Array.isArray(a)||(u=a,a=[]);var c=r(t.Service,u||{});if("string"==typeof e?(t.Service.addVersions(c,a),c.serviceIdentifier=c.serviceIdentifier||e):(c.prototype.api=e,t.Service.defineMethods(c)),t.SequentialExecutor.call(this.prototype),!this.prototype.publisher&&t.util.clientSideMonitoring){var f=t.util.clientSideMonitoring.Publisher,x=(0,t.util.clientSideMonitoring.configProvider)();this.prototype.publisher=new f(x),x.enabled&&(t.Service._clientSideMonitoring=!0)}return t.SequentialExecutor.call(c.prototype),t.Service.addDefaultMonitoringListeners(c.prototype),c},addVersions:function(e,a){Array.isArray(a)||(a=[a]),e.services=e.services||{};for(var u=0;u<a.length;u++)void 0===e.services[a[u]]&&(e.services[a[u]]=null);e.apiVersions=Object.keys(e.services).sort()},defineServiceApi:function(e,a,u){var c=r(e,{serviceIdentifier:e.serviceIdentifier});function y(f){c.prototype.api=f.isApi?f:new w(f,{serviceIdentifier:e.serviceIdentifier})}if("string"==typeof a){if(u)y(u);else try{y(t.apiLoader(e.serviceIdentifier,a))}catch(f){throw t.util.error(f,{message:"Could not find API configuration "+e.serviceIdentifier+"-"+a})}Object.prototype.hasOwnProperty.call(e.services,a)||(e.apiVersions=e.apiVersions.concat(a).sort()),e.services[a]=c}else y(a);return t.Service.defineMethods(c),c},hasService:function(s){return Object.prototype.hasOwnProperty.call(t.Service._serviceMap,s)},addDefaultMonitoringListeners:function(e){e.addNamedListener("MONITOR_EVENTS_BUBBLE","apiCallAttempt",function(u){var c=Object.getPrototypeOf(e);c._events&&c.emit("apiCallAttempt",[u])}),e.addNamedListener("CALL_EVENTS_BUBBLE","apiCall",function(u){var c=Object.getPrototypeOf(e);c._events&&c.emit("apiCall",[u])})},_serviceMap:{}}),t.util.mixin(t.Service,t.SequentialExecutor),ae.exports=t.Service},73884:(ae,I,l)=>{var t=l(86462),w=l(46664);t.util.update(t.STS.prototype,{credentialsFrom:function(i,s){return i?(s||(s=new t.TemporaryCredentials),s.expired=!1,s.accessKeyId=i.Credentials.AccessKeyId,s.secretAccessKey=i.Credentials.SecretAccessKey,s.sessionToken=i.Credentials.SessionToken,s.expireTime=i.Credentials.Expiration,s):null},assumeRoleWithWebIdentity:function(i,s){return this.makeUnauthenticatedRequest("assumeRoleWithWebIdentity",i,s)},assumeRoleWithSAML:function(i,s){return this.makeUnauthenticatedRequest("assumeRoleWithSAML",i,s)},setupRequestListeners:function(i){i.addListener("validate",this.optInRegionalEndpoint,!0)},optInRegionalEndpoint:function(i){var s=i.service,e=s.config;if(e.stsRegionalEndpoints=w(s._originalConfig,{env:"AWS_STS_REGIONAL_ENDPOINTS",sharedConfig:"sts_regional_endpoints",clientConfig:"stsRegionalEndpoints"}),"regional"===e.stsRegionalEndpoints&&s.isGlobalEndpoint){if(!e.region)throw t.util.error(new Error,{code:"ConfigError",message:"Missing region in config"});var a=e.endpoint.indexOf(".amazonaws.com"),u=e.endpoint.substring(0,a)+"."+e.region+e.endpoint.substring(a);i.httpRequest.updateEndpoint(u),i.httpRequest.region=e.region}}})},49667:(ae,I,l)=>{var t=l(86462),p="presigned-expires";function r(i){var s=i.httpRequest.headers[p],e=i.service.getSignerClass(i);if(delete i.httpRequest.headers["User-Agent"],delete i.httpRequest.headers["X-Amz-User-Agent"],e===t.Signers.V4){if(s>604800)throw t.util.error(new Error,{code:"InvalidExpiryTime",message:"Presigning does not support expiry time greater than a week with SigV4 signing.",retryable:!1});i.httpRequest.headers[p]=s}else{if(e!==t.Signers.S3)throw t.util.error(new Error,{message:"Presigning only supports S3 or SigV4 signing.",code:"UnsupportedSigner",retryable:!1});var u=i.service?i.service.getSkewCorrectedDate():t.util.date.getDate();i.httpRequest.headers[p]=parseInt(t.util.date.unixTimestamp(u)+s,10).toString()}}function n(i){var s=i.httpRequest.endpoint,e=t.util.urlParse(i.httpRequest.path),a={};e.search&&(a=t.util.queryStringParse(e.search.substr(1)));var u=i.httpRequest.headers.Authorization.split(" ");if("AWS"===u[0])u=u[1].split(":"),a.Signature=u.pop(),a.AWSAccessKeyId=u.join(":"),t.util.each(i.httpRequest.headers,function(f,T){f===p&&(f="Expires"),0===f.indexOf("x-amz-meta-")&&(delete a[f],f=f.toLowerCase()),a[f]=T}),delete i.httpRequest.headers[p],delete a.Authorization,delete a.Host;else if("AWS4-HMAC-SHA256"===u[0]){u.shift();var y=u.join(" ").match(/Signature=(.*?)(?:,|\s|\r?\n|$)/)[1];a["X-Amz-Signature"]=y,delete a.Expires}s.pathname=e.pathname,s.search=t.util.queryParamsToString(a)}t.Signers.Presign=(0,t.util.inherit)({sign:function(s,e,a){if(s.httpRequest.headers[p]=e||3600,s.on("build",r),s.on("sign",n),s.removeListener("afterBuild",t.EventListeners.Core.SET_CONTENT_LENGTH),s.removeListener("afterBuild",t.EventListeners.Core.COMPUTE_SHA256),s.emit("beforePresign",[s]),!a){if(s.build(),s.response.error)throw s.response.error;return t.util.urlFormat(s.httpRequest.endpoint)}s.build(function(){this.response.error?a(this.response.error):a(null,t.util.urlFormat(s.httpRequest.endpoint))})}}),ae.exports=t.Signers.Presign},91974:(ae,I,l)=>{var t=l(86462);t.Signers.RequestSigner=(0,t.util.inherit)({constructor:function(r){this.request=r},setServiceClientId:function(r){this.serviceClientId=r},getServiceClientId:function(){return this.serviceClientId}}),t.Signers.RequestSigner.getVersion=function(r){switch(r){case"v2":return t.Signers.V2;case"v3":return t.Signers.V3;case"s3v4":case"v4":return t.Signers.V4;case"s3":return t.Signers.S3;case"v3https":return t.Signers.V3Https}throw new Error("Unknown signing version "+r)},l(5497),l(33449),l(53806),l(14682),l(71710),l(49667)},71710:(ae,I,l)=>{var t=l(86462);t.Signers.S3=(0,t.util.inherit)(t.Signers.RequestSigner,{subResources:{acl:1,accelerate:1,analytics:1,cors:1,lifecycle:1,delete:1,inventory:1,location:1,logging:1,metrics:1,notification:1,partNumber:1,policy:1,requestPayment:1,replication:1,restore:1,tagging:1,torrent:1,uploadId:1,uploads:1,versionId:1,versioning:1,versions:1,website:1},responseHeaders:{"response-content-type":1,"response-content-language":1,"response-expires":1,"response-cache-control":1,"response-content-disposition":1,"response-content-encoding":1},addAuthorization:function(r,n){this.request.headers["presigned-expires"]||(this.request.headers["X-Amz-Date"]=t.util.date.rfc822(n)),r.sessionToken&&(this.request.headers["x-amz-security-token"]=r.sessionToken);var i=this.sign(r.secretAccessKey,this.stringToSign());this.request.headers.Authorization="AWS "+r.accessKeyId+":"+i},stringToSign:function(){var r=this.request,n=[];n.push(r.method),n.push(r.headers["Content-MD5"]||""),n.push(r.headers["Content-Type"]||""),n.push(r.headers["presigned-expires"]||"");var i=this.canonicalizedAmzHeaders();return i&&n.push(i),n.push(this.canonicalizedResource()),n.join("\n")},canonicalizedAmzHeaders:function(){var r=[];t.util.each(this.request.headers,function(i){i.match(/^x-amz-/i)&&r.push(i)}),r.sort(function(i,s){return i.toLowerCase()<s.toLowerCase()?-1:1});var n=[];return t.util.arrayEach.call(this,r,function(i){n.push(i.toLowerCase()+":"+String(this.request.headers[i]))}),n.join("\n")},canonicalizedResource:function(){var r=this.request,n=r.path.split("?"),s=n[1],e="";if(r.virtualHostedBucket&&(e+="/"+r.virtualHostedBucket),e+=n[0],s){var a=[];t.util.arrayEach.call(this,s.split("&"),function(u){var c=u.split("=")[0],y=u.split("=")[1];if(this.subResources[c]||this.responseHeaders[c]){var f={name:c};void 0!==y&&(f.value=this.subResources[c]?y:decodeURIComponent(y)),a.push(f)}}),a.sort(function(u,c){return u.name<c.name?-1:1}),a.length&&(s=[],t.util.arrayEach(a,function(u){s.push(void 0===u.value?u.name:u.name+"="+u.value)}),e+="?"+s.join("&"))}return e},sign:function(r,n){return t.util.crypto.hmac(r,n,"base64","sha1")}}),ae.exports=t.Signers.S3},5497:(ae,I,l)=>{var t=l(86462);t.Signers.V2=(0,t.util.inherit)(t.Signers.RequestSigner,{addAuthorization:function(r,n){n||(n=t.util.date.getDate());var i=this.request;i.params.Timestamp=t.util.date.iso8601(n),i.params.SignatureVersion="2",i.params.SignatureMethod="HmacSHA256",i.params.AWSAccessKeyId=r.accessKeyId,r.sessionToken&&(i.params.SecurityToken=r.sessionToken),delete i.params.Signature,i.params.Signature=this.signature(r),i.body=t.util.queryParamsToString(i.params),i.headers["Content-Length"]=i.body.length},signature:function(r){return t.util.crypto.hmac(r.secretAccessKey,this.stringToSign(),"base64")},stringToSign:function(){var r=[];return r.push(this.request.method),r.push(this.request.endpoint.host.toLowerCase()),r.push(this.request.pathname()),r.push(t.util.queryParamsToString(this.request.params)),r.join("\n")}}),ae.exports=t.Signers.V2},33449:(ae,I,l)=>{var t=l(86462);t.Signers.V3=(0,t.util.inherit)(t.Signers.RequestSigner,{addAuthorization:function(r,n){var i=t.util.date.rfc822(n);this.request.headers["X-Amz-Date"]=i,r.sessionToken&&(this.request.headers["x-amz-security-token"]=r.sessionToken),this.request.headers["X-Amzn-Authorization"]=this.authorization(r,i)},authorization:function(r){return"AWS3 AWSAccessKeyId="+r.accessKeyId+",Algorithm=HmacSHA256,SignedHeaders="+this.signedHeaders()+",Signature="+this.signature(r)},signedHeaders:function(){var r=[];return t.util.arrayEach(this.headersToSign(),function(i){r.push(i.toLowerCase())}),r.sort().join(";")},canonicalHeaders:function(){var r=this.request.headers,n=[];return t.util.arrayEach(this.headersToSign(),function(s){n.push(s.toLowerCase().trim()+":"+String(r[s]).trim())}),n.sort().join("\n")+"\n"},headersToSign:function(){var r=[];return t.util.each(this.request.headers,function(i){("Host"===i||"Content-Encoding"===i||i.match(/^X-Amz/i))&&r.push(i)}),r},signature:function(r){return t.util.crypto.hmac(r.secretAccessKey,this.stringToSign(),"base64")},stringToSign:function(){var r=[];return r.push(this.request.method),r.push("/"),r.push(""),r.push(this.canonicalHeaders()),r.push(this.request.body),t.util.crypto.sha256(r.join("\n"))}}),ae.exports=t.Signers.V3},53806:(ae,I,l)=>{var t=l(86462),w=t.util.inherit;l(33449),t.Signers.V3Https=w(t.Signers.V3,{authorization:function(r){return"AWS3-HTTPS AWSAccessKeyId="+r.accessKeyId+",Algorithm=HmacSHA256,Signature="+this.signature(r)},stringToSign:function(){return this.request.headers["X-Amz-Date"]}}),ae.exports=t.Signers.V3Https},14682:(ae,I,l)=>{var t=l(86462),w=l(34330),r="presigned-expires";t.Signers.V4=(0,t.util.inherit)(t.Signers.RequestSigner,{constructor:function(i,s,e){t.Signers.RequestSigner.call(this,i),this.serviceName=s,this.signatureCache="boolean"!=typeof(e=e||{}).signatureCache||e.signatureCache,this.operation=e.operation,this.signatureVersion=e.signatureVersion},algorithm:"AWS4-HMAC-SHA256",addAuthorization:function(i,s){var e=t.util.date.iso8601(s).replace(/[:\-]|\.\d{3}/g,"");this.isPresigned()?this.updateForPresigned(i,e):this.addHeaders(i,e),this.request.headers.Authorization=this.authorization(i,e)},addHeaders:function(i,s){this.request.headers["X-Amz-Date"]=s,i.sessionToken&&(this.request.headers["x-amz-security-token"]=i.sessionToken)},updateForPresigned:function(i,s){var e=this.credentialString(s),a={"X-Amz-Date":s,"X-Amz-Algorithm":this.algorithm,"X-Amz-Credential":i.accessKeyId+"/"+e,"X-Amz-Expires":this.request.headers[r],"X-Amz-SignedHeaders":this.signedHeaders()};i.sessionToken&&(a["X-Amz-Security-Token"]=i.sessionToken),this.request.headers["Content-Type"]&&(a["Content-Type"]=this.request.headers["Content-Type"]),this.request.headers["Content-MD5"]&&(a["Content-MD5"]=this.request.headers["Content-MD5"]),this.request.headers["Cache-Control"]&&(a["Cache-Control"]=this.request.headers["Cache-Control"]),t.util.each.call(this,this.request.headers,function(c,y){if(c!==r&&this.isSignableHeader(c)){var f=c.toLowerCase();0===f.indexOf("x-amz-meta-")?a[f]=y:0===f.indexOf("x-amz-")&&(a[c]=y)}});var u=this.request.path.indexOf("?")>=0?"&":"?";this.request.path+=u+t.util.queryParamsToString(a)},authorization:function(i,s){var e=[],a=this.credentialString(s);return e.push(this.algorithm+" Credential="+i.accessKeyId+"/"+a),e.push("SignedHeaders="+this.signedHeaders()),e.push("Signature="+this.signature(i,s)),e.join(", ")},signature:function(i,s){var e=w.getSigningKey(i,s.substr(0,8),this.request.region,this.serviceName,this.signatureCache);return t.util.crypto.hmac(e,this.stringToSign(s),"hex")},stringToSign:function(i){var s=[];return s.push("AWS4-HMAC-SHA256"),s.push(i),s.push(this.credentialString(i)),s.push(this.hexEncodedHash(this.canonicalString())),s.join("\n")},canonicalString:function(){var i=[],s=this.request.pathname();return"s3"!==this.serviceName&&"s3v4"!==this.signatureVersion&&(s=t.util.uriEscapePath(s)),i.push(this.request.method),i.push(s),i.push(this.request.search()),i.push(this.canonicalHeaders()+"\n"),i.push(this.signedHeaders()),i.push(this.hexEncodedBodyHash()),i.join("\n")},canonicalHeaders:function(){var i=[];t.util.each.call(this,this.request.headers,function(e,a){i.push([e,a])}),i.sort(function(e,a){return e[0].toLowerCase()<a[0].toLowerCase()?-1:1});var s=[];return t.util.arrayEach.call(this,i,function(e){var a=e[0].toLowerCase();if(this.isSignableHeader(a)){var u=e[1];if(typeof u>"u"||null===u||"function"!=typeof u.toString)throw t.util.error(new Error("Header "+a+" contains invalid value"),{code:"InvalidHeader"});s.push(a+":"+this.canonicalHeaderValues(u.toString()))}}),s.join("\n")},canonicalHeaderValues:function(i){return i.replace(/\s+/g," ").replace(/^\s+|\s+$/g,"")},signedHeaders:function(){var i=[];return t.util.each.call(this,this.request.headers,function(s){s=s.toLowerCase(),this.isSignableHeader(s)&&i.push(s)}),i.sort().join(";")},credentialString:function(i){return w.createScope(i.substr(0,8),this.request.region,this.serviceName)},hexEncodedHash:function(i){return t.util.crypto.sha256(i,"hex")},hexEncodedBodyHash:function(){var i=this.request;return this.isPresigned()&&["s3","s3-object-lambda"].indexOf(this.serviceName)>-1&&!i.body?"UNSIGNED-PAYLOAD":i.headers["X-Amz-Content-Sha256"]?i.headers["X-Amz-Content-Sha256"]:this.hexEncodedHash(this.request.body||"")},unsignableHeaders:["authorization","content-type","content-length","user-agent",r,"expect","x-amzn-trace-id"],isSignableHeader:function(i){return 0===i.toLowerCase().indexOf("x-amz-")||this.unsignableHeaders.indexOf(i)<0},isPresigned:function(){return!!this.request.headers[r]}}),ae.exports=t.Signers.V4},34330:(ae,I,l)=>{var t=l(86462),w={},p=[],n="aws4_request";ae.exports={createScope:function(s,e,a){return[s.substr(0,8),e,a,n].join("/")},getSigningKey:function(s,e,a,u,c){var f=[t.util.crypto.hmac(s.secretAccessKey,s.accessKeyId,"base64"),e,a,u].join("_");if((c=!1!==c)&&f in w)return w[f];var T=t.util.crypto.hmac("AWS4"+s.secretAccessKey,e,"buffer"),x=t.util.crypto.hmac(T,a,"buffer"),_=t.util.crypto.hmac(x,u,"buffer"),g=t.util.crypto.hmac(_,n,"buffer");return c&&(w[f]=g,p.push(f),p.length>50&&delete w[p.shift()]),g},emptyCache:function(){w={},p=[]}}},45481:ae=>{function I(l,t){this.currentState=t||null,this.states=l||{}}I.prototype.runTo=function(t,w,p,r){"function"==typeof t&&(r=p,p=w,w=t,t=null);var n=this,i=n.states[n.currentState];i.fn.call(p||n,r,function(s){if(s){if(!i.fail)return w?w.call(p,s):null;n.currentState=i.fail}else{if(!i.accept)return w?w.call(p):null;n.currentState=i.accept}if(n.currentState===t)return w?w.call(p,s):null;n.runTo(t,w,p,s)})},I.prototype.addState=function(t,w,p,r){return"function"==typeof w?(r=w,w=null,p=null):"function"==typeof p&&(r=p,p=null),this.currentState||(this.currentState=t),this.states[t]={accept:w,fail:p,fn:r},this},ae.exports=I},49229:(ae,I,l)=>{var t,w={environment:"nodejs",engine:function(){if(w.isBrowser()&&typeof navigator<"u")return navigator.userAgent;var r=process.platform+"/"+process.version;return process.env.AWS_EXECUTION_ENV&&(r+=" exec-env/"+process.env.AWS_EXECUTION_ENV),r},userAgent:function(){var r=w.environment,n="aws-sdk-"+r+"/"+l(86462).VERSION;return"nodejs"===r&&(n+=" "+w.engine()),n},uriEscape:function(r){var n=encodeURIComponent(r);return(n=n.replace(/[^A-Za-z0-9_.~\-%]+/g,escape)).replace(/[*]/g,function(i){return"%"+i.charCodeAt(0).toString(16).toUpperCase()})},uriEscapePath:function(r){var n=[];return w.arrayEach(r.split("/"),function(i){n.push(w.uriEscape(i))}),n.join("/")},urlParse:function(r){return w.url.parse(r)},urlFormat:function(r){return w.url.format(r)},queryStringParse:function(r){return w.querystring.parse(r)},queryParamsToString:function(r){var n=[],i=w.uriEscape,s=Object.keys(r).sort();return w.arrayEach(s,function(e){var a=r[e],u=i(e),c=u+"=";if(Array.isArray(a)){var y=[];w.arrayEach(a,function(f){y.push(i(f))}),c=u+"="+y.sort().join("&"+u+"=")}else null!=a&&(c=u+"="+i(a));n.push(c)}),n.join("&")},readFileSync:function(r){return w.isBrowser()?null:l(47310).readFileSync(r,"utf-8")},base64:{encode:function(r){if("number"==typeof r)throw w.error(new Error("Cannot base64 encode number "+r));return null===r||typeof r>"u"?r:w.buffer.toBuffer(r).toString("base64")},decode:function(r){if("number"==typeof r)throw w.error(new Error("Cannot base64 decode number "+r));return null===r||typeof r>"u"?r:w.buffer.toBuffer(r,"base64")}},buffer:{toBuffer:function(p,r){return"function"==typeof w.Buffer.from&&w.Buffer.from!==Uint8Array.from?w.Buffer.from(p,r):new w.Buffer(p,r)},alloc:function(p,r,n){if("number"!=typeof p)throw new Error("size passed to alloc must be a number.");if("function"==typeof w.Buffer.alloc)return w.Buffer.alloc(p,r,n);var i=new w.Buffer(p);return void 0!==r&&"function"==typeof i.fill&&i.fill(r,void 0,void 0,n),i},toStream:function(r){w.Buffer.isBuffer(r)||(r=w.buffer.toBuffer(r));var n=new w.stream.Readable,i=0;return n._read=function(s){if(i>=r.length)return n.push(null);var e=i+s;e>r.length&&(e=r.length),n.push(r.slice(i,e)),i=e},n},concat:function(p){var i,s,r=0,n=0;for(s=0;s<p.length;s++)r+=p[s].length;for(i=w.buffer.alloc(r),s=0;s<p.length;s++)p[s].copy(i,n),n+=p[s].length;return i}},string:{byteLength:function(r){if(null==r)return 0;if("string"==typeof r&&(r=w.buffer.toBuffer(r)),"number"==typeof r.byteLength)return r.byteLength;if("number"==typeof r.length)return r.length;if("number"==typeof r.size)return r.size;if("string"==typeof r.path)return l(47310).lstatSync(r.path).size;throw w.error(new Error("Cannot determine length of "+r),{object:r})},upperFirst:function(r){return r[0].toUpperCase()+r.substr(1)},lowerFirst:function(r){return r[0].toLowerCase()+r.substr(1)}},ini:{parse:function(r){var n,i={};return w.arrayEach(r.split(/\r?\n/),function(s){if("["===(s=s.split(/(^|\s)[;#]/)[0].trim())[0]&&"]"===s[s.length-1]){if("__proto__"===(n=s.substring(1,s.length-1))||"__proto__"===n.split(/\s/)[1])throw w.error(new Error("Cannot load profile name '"+n+"' from shared ini file."))}else if(n){var a=s.indexOf("=");if(-1!==a&&0!==a&&a!==s.length-1){var f=s.substring(0,a).trim(),T=s.substring(a+1).trim();i[n]=i[n]||{},i[n][f]=T}}}),i}},fn:{noop:function(){},callback:function(p){if(p)throw p},makeAsync:function(r,n){return n&&n<=r.length?r:function(){var i=Array.prototype.slice.call(arguments,0);i.pop()(r.apply(null,i))}}},date:{getDate:function(){return t||(t=l(86462)),t.config.systemClockOffset?new Date((new Date).getTime()+t.config.systemClockOffset):new Date},iso8601:function(r){return void 0===r&&(r=w.date.getDate()),r.toISOString().replace(/\.\d{3}Z$/,"Z")},rfc822:function(r){return void 0===r&&(r=w.date.getDate()),r.toUTCString()},unixTimestamp:function(r){return void 0===r&&(r=w.date.getDate()),r.getTime()/1e3},from:function(r){return"number"==typeof r?new Date(1e3*r):new Date(r)},format:function(r,n){return n||(n="iso8601"),w.date[n](w.date.from(r))},parseTimestamp:function(r){if("number"==typeof r)return new Date(1e3*r);if(r.match(/^\d+$/))return new Date(1e3*r);if(r.match(/^\d{4}/))return new Date(r);if(r.match(/^\w{3},/))return new Date(r);throw w.error(new Error("unhandled timestamp format: "+r),{code:"TimestampParserError"})}},crypto:{crc32Table:[0,1996959894,3993919788,2567524794,124634137,1886057615,3915621685,2657392035,249268274,2044508324,3772115230,2547177864,162941995,2125561021,3887607047,2428444049,498536548,1789927666,4089016648,2227061214,450548861,1843258603,4107580753,2211677639,325883990,1684777152,4251122042,2321926636,335633487,1661365465,4195302755,2366115317,997073096,1281953886,3579855332,2724688242,1006888145,1258607687,3524101629,2768942443,901097722,1119000684,3686517206,2898065728,853044451,1172266101,3705015759,2882616665,651767980,1373503546,3369554304,3218104598,565507253,1454621731,3485111705,3099436303,671266974,1594198024,3322730930,2970347812,795835527,1483230225,3244367275,3060149565,1994146192,31158534,2563907772,4023717930,1907459465,112637215,2680153253,3904427059,2013776290,251722036,2517215374,3775830040,2137656763,141376813,2439277719,3865271297,1802195444,476864866,2238001368,4066508878,1812370925,453092731,2181625025,4111451223,1706088902,314042704,2344532202,4240017532,1658658271,366619977,2362670323,4224994405,1303535960,984961486,2747007092,3569037538,1256170817,1037604311,2765210733,3554079995,1131014506,879679996,2909243462,3663771856,1141124467,855842277,2852801631,3708648649,1342533948,654459306,3188396048,3373015174,1466479909,544179635,3110523913,3462522015,1591671054,702138776,2966460450,3352799412,1504918807,783551873,3082640443,3233442989,3988292384,2596254646,62317068,1957810842,3939845945,2647816111,81470997,1943803523,3814918930,2489596804,225274430,2053790376,3826175755,2466906013,167816743,2097651377,4027552580,2265490386,503444072,1762050814,4150417245,2154129355,426522225,1852507879,4275313526,2312317920,282753626,1742555852,4189708143,2394877945,397917763,1622183637,3604390888,2714866558,953729732,1340076626,3518719985,2797360999,1068828381,1219638859,3624741850,2936675148,906185462,1090812512,3747672003,2825379669,829329135,1181335161,3412177804,3160834842,628085408,1382605366,3423369109,3138078467,570562233,1426400815,3317316542,2998733608,733239954,1555261956,3268935591,3050360625,752459403,1541320221,2607071920,3965973030,1969922972,40735498,2617837225,3943577151,1913087877,83908371,2512341634,3803740692,2075208622,213261112,2463272603,3855990285,2094854071,198958881,2262029012,4057260610,1759359992,534414190,2176718541,4139329115,1873836001,414664567,2282248934,4279200368,1711684554,285281116,2405801727,4167216745,1634467795,376229701,2685067896,3608007406,1308918612,956543938,2808555105,3495958263,1231636301,1047427035,2932959818,3654703836,1088359270,936918e3,2847714899,3736837829,1202900863,817233897,3183342108,3401237130,1404277552,615818150,3134207493,3453421203,1423857449,601450431,3009837614,3294710456,1567103746,711928724,3020668471,3272380065,1510334235,755167117],crc32:function(r){var n=w.crypto.crc32Table,i=-1;"string"==typeof r&&(r=w.buffer.toBuffer(r));for(var s=0;s<r.length;s++)i=i>>>8^n[255&(i^r.readUInt8(s))];return(-1^i)>>>0},hmac:function(r,n,i,s){return i||(i="binary"),"buffer"===i&&(i=void 0),s||(s="sha256"),"string"==typeof n&&(n=w.buffer.toBuffer(n)),w.crypto.lib.createHmac(s,r).update(n).digest(i)},md5:function(r,n,i){return w.crypto.hash("md5",r,n,i)},sha256:function(r,n,i){return w.crypto.hash("sha256",r,n,i)},hash:function(p,r,n,i){var s=w.crypto.createHash(p);n||(n="binary"),"buffer"===n&&(n=void 0),"string"==typeof r&&(r=w.buffer.toBuffer(r));var e=w.arraySliceFn(r),a=w.Buffer.isBuffer(r);if(w.isBrowser()&&typeof ArrayBuffer<"u"&&r&&r.buffer instanceof ArrayBuffer&&(a=!0),i&&"object"==typeof r&&"function"==typeof r.on&&!a)r.on("data",function(T){s.update(T)}),r.on("error",function(T){i(T)}),r.on("end",function(){i(null,s.digest(n))});else{if(!(i&&e&&!a&&typeof FileReader<"u")){w.isBrowser()&&"object"==typeof r&&!a&&(r=new w.Buffer(new Uint8Array(r)));var f=s.update(r).digest(n);return i&&i(null,f),f}var u=0,y=new FileReader;y.onerror=function(){i(new Error("Failed to read data."))},y.onload=function(){var T=new w.Buffer(new Uint8Array(y.result));s.update(T),u+=T.length,y._continueReading()},y._continueReading=function(){if(u>=r.size)i(null,s.digest(n));else{var T=u+524288;T>r.size&&(T=r.size),y.readAsArrayBuffer(e.call(r,u,T))}},y._continueReading()}},toHex:function(r){for(var n=[],i=0;i<r.length;i++)n.push(("0"+r.charCodeAt(i).toString(16)).substr(-2,2));return n.join("")},createHash:function(r){return w.crypto.lib.createHash(r)}},abort:{},each:function(r,n){for(var i in r)if(Object.prototype.hasOwnProperty.call(r,i)&&n.call(this,i,r[i])===w.abort)break},arrayEach:function(r,n){for(var i in r)if(Object.prototype.hasOwnProperty.call(r,i)&&n.call(this,r[i],parseInt(i,10))===w.abort)break},update:function(r,n){return w.each(n,function(s,e){r[s]=e}),r},merge:function(r,n){return w.update(w.copy(r),n)},copy:function(r){if(null==r)return r;var n={};for(var i in r)n[i]=r[i];return n},isEmpty:function(r){for(var n in r)if(Object.prototype.hasOwnProperty.call(r,n))return!1;return!0},arraySliceFn:function(r){var n=r.slice||r.webkitSlice||r.mozSlice;return"function"==typeof n?n:null},isType:function(r,n){return"function"==typeof n&&(n=w.typeName(n)),Object.prototype.toString.call(r)==="[object "+n+"]"},typeName:function(r){if(Object.prototype.hasOwnProperty.call(r,"name"))return r.name;var n=r.toString(),i=n.match(/^\s*function (.+)\(/);return i?i[1]:n},error:function(r,n){var i=null;return"string"==typeof r.message&&""!==r.message&&("string"==typeof n||n&&n.message)&&((i=w.copy(r)).message=r.message),r.message=r.message||null,"string"==typeof n?r.message=n:"object"==typeof n&&null!==n&&(w.update(r,n),n.message&&(r.message=n.message),(n.code||n.name)&&(r.code=n.code||n.name),n.stack&&(r.stack=n.stack)),"function"==typeof Object.defineProperty&&(Object.defineProperty(r,"name",{writable:!0,enumerable:!1}),Object.defineProperty(r,"message",{enumerable:!0})),r.name=String(n&&n.name||r.name||r.code||"Error"),r.time=new Date,i&&(r.originalError=i),r},inherit:function(r,n){var i=null;if(void 0===n)n=r,r=Object,i={};else{var s=function(){};s.prototype=r.prototype,i=new s}return n.constructor===Object&&(n.constructor=function(){if(r!==Object)return r.apply(this,arguments)}),n.constructor.prototype=i,w.update(n.constructor.prototype,n),n.constructor.__super__=r,n.constructor},mixin:function(){for(var r=arguments[0],n=1;n<arguments.length;n++)for(var i in arguments[n].prototype)"constructor"!==i&&(r.prototype[i]=arguments[n].prototype[i]);return r},hideProperties:function(r,n){"function"==typeof Object.defineProperty&&w.arrayEach(n,function(i){Object.defineProperty(r,i,{enumerable:!1,writable:!0,configurable:!0})})},property:function(r,n,i,s,e){var a={configurable:!0,enumerable:void 0===s||s};"function"!=typeof i||e?(a.value=i,a.writable=!0):a.get=i,Object.defineProperty(r,n,a)},memoizedProperty:function(r,n,i,s){var e=null;w.property(r,n,function(){return null===e&&(e=i()),e},s)},hoistPayloadMember:function(r){var n=r.request,s=n.service.api.operations[n.operation],e=s.output;e.payload&&!s.hasEventOutput&&"structure"===e.members[e.payload].type&&w.each(r.data[e.payload],function(c,y){w.property(r.data,c,y,!1)})},computeSha256:function(r,n){if(w.isNode()){var i=w.stream.Stream,s=l(47310);if("function"==typeof i&&r instanceof i){if("string"!=typeof r.path)return n(new Error("Non-file stream objects are not supported with SigV4"));var e={};"number"==typeof r.start&&(e.start=r.start),"number"==typeof r.end&&(e.end=r.end),r=s.createReadStream(r.path,e)}}w.crypto.sha256(r,"hex",function(a,u){a?n(a):n(null,u)})},isClockSkewed:function(r){if(r)return w.property(t.config,"isClockSkewed",Math.abs((new Date).getTime()-r)>=3e5,!1),t.config.isClockSkewed},applyClockOffset:function(r){r&&(t.config.systemClockOffset=r-(new Date).getTime())},extractRequestId:function(r){var n=r.httpResponse.headers["x-amz-request-id"]||r.httpResponse.headers["x-amzn-requestid"];!n&&r.data&&r.data.ResponseMetadata&&(n=r.data.ResponseMetadata.RequestId),n&&(r.requestId=n),r.error&&(r.error.requestId=n)},addPromises:function(r,n){var i=!1;void 0===n&&t&&t.config&&(n=t.config.getPromisesDependency()),void 0===n&&typeof Promise<"u"&&(n=Promise),"function"!=typeof n&&(i=!0),Array.isArray(r)||(r=[r]);for(var s=0;s<r.length;s++){var e=r[s];i?e.deletePromisesFromClass&&e.deletePromisesFromClass():e.addPromisesToClass&&e.addPromisesToClass(n)}},promisifyMethod:function(r,n){return function(){var s=this,e=Array.prototype.slice.call(arguments);return new n(function(a,u){e.push(function(c,y){c?u(c):a(y)}),s[r].apply(s,e)})}},isDualstackAvailable:function(r){if(!r)return!1;var n=l(6839);return"string"!=typeof r&&(r=r.serviceIdentifier),!("string"!=typeof r||!n.hasOwnProperty(r)||!n[r].dualstackAvailable)},calculateRetryDelay:function(r,n,i){n||(n={});var s=n.customBackoff||null;if("function"==typeof s)return s(r,i);var e="number"==typeof n.base?n.base:100;return Math.random()*(Math.pow(2,r)*e)},handleRequestWithRetries:function(r,n,i){n||(n={});var s=t.HttpClient.getInstance(),e=n.httpOptions||{},a=0,u=function(y){var f=n.maxRetries||0;if(y&&"TimeoutError"===y.code&&(y.retryable=!0),y&&y.retryable&&a<f){var T=w.calculateRetryDelay(a,n.retryDelayOptions,y);if(T>=0)return a++,void setTimeout(c,T+(y.retryAfter||0))}i(y)},c=function(){var y="";s.handleRequest(r,e,function(f){f.on("data",function(T){y+=T.toString()}),f.on("end",function(){var T=f.statusCode;if(T<300)i(null,y);else{var x=1e3*parseInt(f.headers["retry-after"],10)||0,_=w.error(new Error,{statusCode:T,retryable:T>=500||429===T});x&&_.retryable&&(_.retryAfter=x),u(_)}})},u)};t.util.defer(c)},uuid:{v4:function(){return l(74521).v4()}},convertPayloadToString:function(r){var n=r.request,s=n.service.api.operations[n.operation].output||{};s.payload&&r.data[s.payload]&&(r.data[s.payload]=r.data[s.payload].toString())},defer:function(r){"object"==typeof process&&"function"==typeof process.nextTick?process.nextTick(r):"function"==typeof setImmediate?setImmediate(r):setTimeout(r,0)},getRequestPayloadShape:function(r){var n=r.service.api.operations;if(n){var i=(n||{})[r.operation];if(i&&i.input&&i.input.payload)return i.input.members[i.input.payload]}},getProfilesFromSharedConfig:function(r,n){var i={},s={};process.env[w.configOptInEnv]&&(s=r.loadFrom({isConfig:!0,filename:process.env[w.sharedConfigFileEnv]}));var e={};try{e=r.loadFrom({filename:n||process.env[w.configOptInEnv]&&process.env[w.sharedCredentialsFileEnv]})}catch(y){if(!process.env[w.configOptInEnv])throw y}for(var a=0,u=Object.keys(s);a<u.length;a++)i[u[a]]=c(i[u[a]]||{},s[u[a]]);for(a=0,u=Object.keys(e);a<u.length;a++)i[u[a]]=c(i[u[a]]||{},e[u[a]]);return i;function c(y,f){for(var T=0,x=Object.keys(f);T<x.length;T++)y[x[T]]=f[x[T]];return y}},ARN:{validate:function(r){return r&&0===r.indexOf("arn:")&&r.split(":").length>=6},parse:function(r){var n=r.split(":");return{partition:n[1],service:n[2],region:n[3],accountId:n[4],resource:n.slice(5).join(":")}},build:function(r){if(void 0===r.service||void 0===r.region||void 0===r.accountId||void 0===r.resource)throw w.error(new Error("Input ARN object is invalid"));return"arn:"+(r.partition||"aws")+":"+r.service+":"+r.region+":"+r.accountId+":"+r.resource}},defaultProfile:"default",configOptInEnv:"AWS_SDK_LOAD_CONFIG",sharedCredentialsFileEnv:"AWS_SHARED_CREDENTIALS_FILE",sharedConfigFileEnv:"AWS_CONFIG_FILE",imdsDisabledEnv:"AWS_EC2_METADATA_DISABLED"};ae.exports=w},73972:(ae,I,l)=>{var t=l(49229),w=l(65454);function p(){}function r(c,y){for(var f=c.getElementsByTagName(y),T=0,x=f.length;T<x;T++)if(f[T].parentNode===c)return f[T]}function n(c,y){switch(y||(y={}),y.type){case"structure":return i(c,y);case"map":return function s(c,y){for(var f={},T=y.key.name||"key",x=y.value.name||"value",_=y.flattened?y.name:"entry",g=c.firstElementChild;g;){if(g.nodeName===_){var A=r(g,T).textContent,L=r(g,x);f[A]=n(L,y.value)}g=g.nextElementSibling}return f}(c,y);case"list":return function e(c,y){for(var f=[],T=y.flattened?y.name:y.member.name||"member",x=c.firstElementChild;x;)x.nodeName===T&&f.push(n(x,y.member)),x=x.nextElementSibling;return f}(c,y);case void 0:case null:return function u(c){if(null==c)return"";if(!c.firstElementChild)return null===c.parentNode.parentNode?{}:0===c.childNodes.length?"":c.textContent;for(var y={type:"structure",members:{}},f=c.firstElementChild;f;){var T=f.nodeName;Object.prototype.hasOwnProperty.call(y.members,T)?y.members[T].type="list":y.members[T]={name:T},f=f.nextElementSibling}return i(c,y)}(c);default:return function a(c,y){if(c.getAttribute){var f=c.getAttribute("encoding");"base64"===f&&(y=new w.create({type:f}))}var T=c.textContent;return""===T&&(T=null),"function"==typeof y.toType?y.toType(T):T}(c,y)}}function i(c,y){var f={};return null===c||t.each(y.members,function(T,x){if(x.isXmlAttribute)Object.prototype.hasOwnProperty.call(c.attributes,x.name)&&(f[T]=n({textContent:c.attributes[x.name].value},x));else{var g=x.flattened?c:r(c,x.name);g?f[T]=n(g,x):!x.flattened&&"list"===x.type&&!y.api.xmlNoDefaultLists&&(f[T]=x.defaultValue)}}),f}p.prototype.parse=function(c,y){if(""===c.replace(/^\s+/,""))return{};var f,T;try{if(window.DOMParser){try{f=(new DOMParser).parseFromString(c,"text/xml")}catch(j){throw t.error(new Error("Parse error in document"),{originalError:j,code:"XMLParserError",retryable:!0})}if(null===f.documentElement)throw t.error(new Error("Cannot parse empty document."),{code:"XMLParserError",retryable:!0});var _=f.getElementsByTagName("parsererror")[0];if(_&&(_.parentNode===f||"body"===_.parentNode.nodeName||_.parentNode.parentNode===f||"body"===_.parentNode.parentNode.nodeName)){var g=_.getElementsByTagName("div")[0]||_;throw t.error(new Error(g.textContent||"Parser error in document"),{code:"XMLParserError",retryable:!0})}}else{if(!window.ActiveXObject)throw new Error("Cannot load XML parser");if((f=new window.ActiveXObject("Microsoft.XMLDOM")).async=!1,!f.loadXML(c))throw t.error(new Error("Parse error in document"),{code:"XMLParserError",retryable:!0})}}catch(j){T=j}if(f&&f.documentElement&&!T){var A=n(f.documentElement,y),L=r(f.documentElement,"ResponseMetadata");return L&&(A.ResponseMetadata=n(L,{})),A}if(T)throw t.error(T||new Error,{code:"XMLParserError",retryable:!0});return{}},ae.exports=p},31883:(ae,I,l)=>{var t=l(49229),w=l(48598).XmlNode,p=l(5115).XmlText;function r(){}function n(c,y,f){switch(f.type){case"structure":return function i(c,y,f){t.arrayEach(f.memberNames,function(T){var x=f.members[T];if("body"===x.location){var _=y[T],g=x.name;if(null!=_)if(x.isXmlAttribute)c.addAttribute(g,_);else if(x.flattened)n(c,_,x);else{var A=new w(g);c.addChildNode(A),u(A,x),n(A,_,x)}}})}(c,y,f);case"map":return function s(c,y,f){var T=f.key.name||"key",x=f.value.name||"value";t.each(y,function(_,g){var A=new w(f.flattened?f.name:"entry");c.addChildNode(A);var L=new w(T),j=new w(x);A.addChildNode(L),A.addChildNode(j),n(L,_,f.key),n(j,g,f.value)})}(c,y,f);case"list":return function e(c,y,f){t.arrayEach(y,f.flattened?function(T){var _=new w(f.member.name||f.name);c.addChildNode(_),n(_,T,f.member)}:function(T){var _=new w(f.member.name||"member");c.addChildNode(_),n(_,T,f.member)})}(c,y,f);default:return function a(c,y,f){c.addChildNode(new p(f.toWireFormat(y)))}(c,y,f)}}function u(c,y,f){var T,x="xmlns";y.xmlNamespaceUri?(T=y.xmlNamespaceUri,y.xmlNamespacePrefix&&(x+=":"+y.xmlNamespacePrefix)):f&&y.api.xmlNamespaceUri&&(T=y.api.xmlNamespaceUri),T&&c.addAttribute(x,T)}r.prototype.toXML=function(c,y,f,T){var x=new w(f);return u(x,y,!0),n(x,c,y),x.children.length>0||T?x.toString():""},ae.exports=r},85336:ae=>{ae.exports={escapeAttribute:function I(l){return l.replace(/&/g,"&amp;").replace(/'/g,"&apos;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;")}}},71886:ae=>{ae.exports={escapeElement:function I(l){return l.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/\r/g,"&#x0D;").replace(/\n/g,"&#x0A;").replace(/\u0085/g,"&#x85;").replace(/\u2028/,"&#x2028;")}}},48598:(ae,I,l)=>{var t=l(85336).escapeAttribute;function w(p,r){void 0===r&&(r=[]),this.name=p,this.children=r,this.attributes={}}w.prototype.addAttribute=function(p,r){return this.attributes[p]=r,this},w.prototype.addChildNode=function(p){return this.children.push(p),this},w.prototype.removeAttribute=function(p){return delete this.attributes[p],this},w.prototype.toString=function(){for(var p=!!this.children.length,r="<"+this.name,n=this.attributes,i=0,s=Object.keys(n);i<s.length;i++){var e=s[i],a=n[e];typeof a<"u"&&null!==a&&(r+=" "+e+'="'+t(""+a)+'"')}return r+(p?">"+this.children.map(function(u){return u.toString()}).join("")+"</"+this.name+">":"/>")},ae.exports={XmlNode:w}},5115:(ae,I,l)=>{var t=l(71886).escapeElement;function w(p){this.value=p}w.prototype.toString=function(){return t(""+this.value)},ae.exports={XmlText:w}},81082:(ae,I,l)=>{"use strict";var w=l(13369),p=l(94553),r=l(35169);function i(){return e.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function s(m,R){if(i()<R)throw new RangeError("Invalid typed array length");return e.TYPED_ARRAY_SUPPORT?(m=new Uint8Array(R)).__proto__=e.prototype:(null===m&&(m=new e(R)),m.length=R),m}function e(m,R,D){if(!(e.TYPED_ARRAY_SUPPORT||this instanceof e))return new e(m,R,D);if("number"==typeof m){if("string"==typeof R)throw new Error("If encoding is specified then the first argument must be a string");return y(this,m)}return a(this,m,R,D)}function a(m,R,D,te){if("number"==typeof R)throw new TypeError('"value" argument must not be a number');return typeof ArrayBuffer<"u"&&R instanceof ArrayBuffer?function x(m,R,D,te){if(D<0||R.byteLength<D)throw new RangeError("'offset' is out of bounds");if(R.byteLength<D+(te||0))throw new RangeError("'length' is out of bounds");return R=void 0===D&&void 0===te?new Uint8Array(R):void 0===te?new Uint8Array(R,D):new Uint8Array(R,D,te),e.TYPED_ARRAY_SUPPORT?(m=R).__proto__=e.prototype:m=T(m,R),m}(m,R,D,te):"string"==typeof R?function f(m,R,D){if(("string"!=typeof D||""===D)&&(D="utf8"),!e.isEncoding(D))throw new TypeError('"encoding" must be a valid string encoding');var te=0|L(R,D),pe=(m=s(m,te)).write(R,D);return pe!==te&&(m=m.slice(0,pe)),m}(m,R,D):function _(m,R){if(e.isBuffer(R)){var D=0|g(R.length);return 0===(m=s(m,D)).length||R.copy(m,0,0,D),m}if(R){if(typeof ArrayBuffer<"u"&&R.buffer instanceof ArrayBuffer||"length"in R)return"number"!=typeof R.length||function U(m){return m!=m}(R.length)?s(m,0):T(m,R);if("Buffer"===R.type&&r(R.data))return T(m,R.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(m,R)}function u(m){if("number"!=typeof m)throw new TypeError('"size" argument must be a number');if(m<0)throw new RangeError('"size" argument must not be negative')}function y(m,R){if(u(R),m=s(m,R<0?0:0|g(R)),!e.TYPED_ARRAY_SUPPORT)for(var D=0;D<R;++D)m[D]=0;return m}function T(m,R){var D=R.length<0?0:0|g(R.length);m=s(m,D);for(var te=0;te<D;te+=1)m[te]=255&R[te];return m}function g(m){if(m>=i())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+i().toString(16)+" bytes");return 0|m}function L(m,R){if(e.isBuffer(m))return m.length;if(typeof ArrayBuffer<"u"&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(m)||m instanceof ArrayBuffer))return m.byteLength;"string"!=typeof m&&(m=""+m);var D=m.length;if(0===D)return 0;for(var te=!1;;)switch(R){case"ascii":case"latin1":case"binary":return D;case"utf8":case"utf-8":case void 0:return be(m).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*D;case"hex":return D>>>1;case"base64":return ke(m).length;default:if(te)return be(m).length;R=(""+R).toLowerCase(),te=!0}}function j(m,R,D){var te=!1;if((void 0===R||R<0)&&(R=0),R>this.length||((void 0===D||D>this.length)&&(D=this.length),D<=0)||(D>>>=0)<=(R>>>=0))return"";for(m||(m="utf8");;)switch(m){case"hex":return ie(this,R,D);case"utf8":case"utf-8":return J(this,R,D);case"ascii":return X(this,R,D);case"latin1":case"binary":return he(this,R,D);case"base64":return V(this,R,D);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return K(this,R,D);default:if(te)throw new TypeError("Unknown encoding: "+m);m=(m+"").toLowerCase(),te=!0}}function Q(m,R,D){var te=m[R];m[R]=m[D],m[D]=te}function F(m,R,D,te,pe){if(0===m.length)return-1;if("string"==typeof D?(te=D,D=0):D>2147483647?D=2147483647:D<-2147483648&&(D=-2147483648),D=+D,isNaN(D)&&(D=pe?0:m.length-1),D<0&&(D=m.length+D),D>=m.length){if(pe)return-1;D=m.length-1}else if(D<0){if(!pe)return-1;D=0}if("string"==typeof R&&(R=e.from(R,te)),e.isBuffer(R))return 0===R.length?-1:b(m,R,D,te,pe);if("number"==typeof R)return R&=255,e.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?pe?Uint8Array.prototype.indexOf.call(m,R,D):Uint8Array.prototype.lastIndexOf.call(m,R,D):b(m,[R],D,te,pe);throw new TypeError("val must be string, number or Buffer")}function b(m,R,D,te,pe){var de,xe=1,Ce=m.length,ee=R.length;if(void 0!==te&&("ucs2"===(te=String(te).toLowerCase())||"ucs-2"===te||"utf16le"===te||"utf-16le"===te)){if(m.length<2||R.length<2)return-1;xe=2,Ce/=2,ee/=2,D/=2}function le(qe,ze){return 1===xe?qe[ze]:qe.readUInt16BE(ze*xe)}if(pe){var Oe=-1;for(de=D;de<Ce;de++)if(le(m,de)===le(R,-1===Oe?0:de-Oe)){if(-1===Oe&&(Oe=de),de-Oe+1===ee)return Oe*xe}else-1!==Oe&&(de-=de-Oe),Oe=-1}else for(D+ee>Ce&&(D=Ce-ee),de=D;de>=0;de--){for(var Re=!0,Ue=0;Ue<ee;Ue++)if(le(m,de+Ue)!==le(R,Ue)){Re=!1;break}if(Re)return de}return-1}function P(m,R,D,te){D=Number(D)||0;var pe=m.length-D;te?(te=Number(te))>pe&&(te=pe):te=pe;var xe=R.length;if(xe%2!=0)throw new TypeError("Invalid hex string");te>xe/2&&(te=xe/2);for(var Ce=0;Ce<te;++Ce){var ee=parseInt(R.substr(2*Ce,2),16);if(isNaN(ee))return Ce;m[D+Ce]=ee}return Ce}function d(m,R,D,te){return ne(be(R,m.length-D),m,D,te)}function O(m,R,D,te){return ne(function Pe(m){for(var R=[],D=0;D<m.length;++D)R.push(255&m.charCodeAt(D));return R}(R),m,D,te)}function v(m,R,D,te){return O(m,R,D,te)}function M(m,R,D,te){return ne(ke(R),m,D,te)}function W(m,R,D,te){return ne(function De(m,R){for(var D,te,xe=[],Ce=0;Ce<m.length&&!((R-=2)<0);++Ce)te=(D=m.charCodeAt(Ce))>>8,xe.push(D%256),xe.push(te);return xe}(R,m.length-D),m,D,te)}function V(m,R,D){return w.fromByteArray(0===R&&D===m.length?m:m.slice(R,D))}function J(m,R,D){D=Math.min(m.length,D);for(var te=[],pe=R;pe<D;){var le,de,Oe,Re,xe=m[pe],Ce=null,ee=xe>239?4:xe>223?3:xe>191?2:1;if(pe+ee<=D)switch(ee){case 1:xe<128&&(Ce=xe);break;case 2:128==(192&(le=m[pe+1]))&&(Re=(31&xe)<<6|63&le)>127&&(Ce=Re);break;case 3:de=m[pe+2],128==(192&(le=m[pe+1]))&&128==(192&de)&&(Re=(15&xe)<<12|(63&le)<<6|63&de)>2047&&(Re<55296||Re>57343)&&(Ce=Re);break;case 4:de=m[pe+2],Oe=m[pe+3],128==(192&(le=m[pe+1]))&&128==(192&de)&&128==(192&Oe)&&(Re=(15&xe)<<18|(63&le)<<12|(63&de)<<6|63&Oe)>65535&&Re<1114112&&(Ce=Re)}null===Ce?(Ce=65533,ee=1):Ce>65535&&(te.push((Ce-=65536)>>>10&1023|55296),Ce=56320|1023&Ce),te.push(Ce),pe+=ee}return function me(m){var R=m.length;if(R<=ue)return String.fromCharCode.apply(String,m);for(var D="",te=0;te<R;)D+=String.fromCharCode.apply(String,m.slice(te,te+=ue));return D}(te)}I.lW=e,I.h2=50,e.TYPED_ARRAY_SUPPORT=void 0!==global.TYPED_ARRAY_SUPPORT?global.TYPED_ARRAY_SUPPORT:function n(){try{var m=new Uint8Array(1);return m.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===m.foo()&&"function"==typeof m.subarray&&0===m.subarray(1,1).byteLength}catch{return!1}}(),i(),e.poolSize=8192,e._augment=function(m){return m.__proto__=e.prototype,m},e.from=function(m,R,D){return a(null,m,R,D)},e.TYPED_ARRAY_SUPPORT&&(e.prototype.__proto__=Uint8Array.prototype,e.__proto__=Uint8Array,typeof Symbol<"u"&&Symbol.species&&e[Symbol.species]===e&&Object.defineProperty(e,Symbol.species,{value:null,configurable:!0})),e.alloc=function(m,R,D){return function c(m,R,D,te){return u(R),R<=0?s(m,R):void 0!==D?"string"==typeof te?s(m,R).fill(D,te):s(m,R).fill(D):s(m,R)}(null,m,R,D)},e.allocUnsafe=function(m){return y(null,m)},e.allocUnsafeSlow=function(m){return y(null,m)},e.isBuffer=function(R){return!(null==R||!R._isBuffer)},e.compare=function(R,D){if(!e.isBuffer(R)||!e.isBuffer(D))throw new TypeError("Arguments must be Buffers");if(R===D)return 0;for(var te=R.length,pe=D.length,xe=0,Ce=Math.min(te,pe);xe<Ce;++xe)if(R[xe]!==D[xe]){te=R[xe],pe=D[xe];break}return te<pe?-1:pe<te?1:0},e.isEncoding=function(R){switch(String(R).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},e.concat=function(R,D){if(!r(R))throw new TypeError('"list" argument must be an Array of Buffers');if(0===R.length)return e.alloc(0);var te;if(void 0===D)for(D=0,te=0;te<R.length;++te)D+=R[te].length;var pe=e.allocUnsafe(D),xe=0;for(te=0;te<R.length;++te){var Ce=R[te];if(!e.isBuffer(Ce))throw new TypeError('"list" argument must be an Array of Buffers');Ce.copy(pe,xe),xe+=Ce.length}return pe},e.byteLength=L,e.prototype._isBuffer=!0,e.prototype.swap16=function(){var R=this.length;if(R%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var D=0;D<R;D+=2)Q(this,D,D+1);return this},e.prototype.swap32=function(){var R=this.length;if(R%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var D=0;D<R;D+=4)Q(this,D,D+3),Q(this,D+1,D+2);return this},e.prototype.swap64=function(){var R=this.length;if(R%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var D=0;D<R;D+=8)Q(this,D,D+7),Q(this,D+1,D+6),Q(this,D+2,D+5),Q(this,D+3,D+4);return this},e.prototype.toString=function(){var R=0|this.length;return 0===R?"":0===arguments.length?J(this,0,R):j.apply(this,arguments)},e.prototype.equals=function(R){if(!e.isBuffer(R))throw new TypeError("Argument must be a Buffer");return this===R||0===e.compare(this,R)},e.prototype.inspect=function(){var R="",D=I.h2;return this.length>0&&(R=this.toString("hex",0,D).match(/.{2}/g).join(" "),this.length>D&&(R+=" ... ")),"<Buffer "+R+">"},e.prototype.compare=function(R,D,te,pe,xe){if(!e.isBuffer(R))throw new TypeError("Argument must be a Buffer");if(void 0===D&&(D=0),void 0===te&&(te=R?R.length:0),void 0===pe&&(pe=0),void 0===xe&&(xe=this.length),D<0||te>R.length||pe<0||xe>this.length)throw new RangeError("out of range index");if(pe>=xe&&D>=te)return 0;if(pe>=xe)return-1;if(D>=te)return 1;if(this===R)return 0;for(var Ce=(xe>>>=0)-(pe>>>=0),ee=(te>>>=0)-(D>>>=0),le=Math.min(Ce,ee),de=this.slice(pe,xe),Oe=R.slice(D,te),Re=0;Re<le;++Re)if(de[Re]!==Oe[Re]){Ce=de[Re],ee=Oe[Re];break}return Ce<ee?-1:ee<Ce?1:0},e.prototype.includes=function(R,D,te){return-1!==this.indexOf(R,D,te)},e.prototype.indexOf=function(R,D,te){return F(this,R,D,te,!0)},e.prototype.lastIndexOf=function(R,D,te){return F(this,R,D,te,!1)},e.prototype.write=function(R,D,te,pe){if(void 0===D)pe="utf8",te=this.length,D=0;else if(void 0===te&&"string"==typeof D)pe=D,te=this.length,D=0;else{if(!isFinite(D))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");D|=0,isFinite(te)?(te|=0,void 0===pe&&(pe="utf8")):(pe=te,te=void 0)}var xe=this.length-D;if((void 0===te||te>xe)&&(te=xe),R.length>0&&(te<0||D<0)||D>this.length)throw new RangeError("Attempt to write outside buffer bounds");pe||(pe="utf8");for(var Ce=!1;;)switch(pe){case"hex":return P(this,R,D,te);case"utf8":case"utf-8":return d(this,R,D,te);case"ascii":return O(this,R,D,te);case"latin1":case"binary":return v(this,R,D,te);case"base64":return M(this,R,D,te);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return W(this,R,D,te);default:if(Ce)throw new TypeError("Unknown encoding: "+pe);pe=(""+pe).toLowerCase(),Ce=!0}},e.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var ue=4096;function X(m,R,D){var te="";D=Math.min(m.length,D);for(var pe=R;pe<D;++pe)te+=String.fromCharCode(127&m[pe]);return te}function he(m,R,D){var te="";D=Math.min(m.length,D);for(var pe=R;pe<D;++pe)te+=String.fromCharCode(m[pe]);return te}function ie(m,R,D){var te=m.length;(!R||R<0)&&(R=0),(!D||D<0||D>te)&&(D=te);for(var pe="",xe=R;xe<D;++xe)pe+=Se(m[xe]);return pe}function K(m,R,D){for(var te=m.slice(R,D),pe="",xe=0;xe<te.length;xe+=2)pe+=String.fromCharCode(te[xe]+256*te[xe+1]);return pe}function G(m,R,D){if(m%1!=0||m<0)throw new RangeError("offset is not uint");if(m+R>D)throw new RangeError("Trying to access beyond buffer length")}function re(m,R,D,te,pe,xe){if(!e.isBuffer(m))throw new TypeError('"buffer" argument must be a Buffer instance');if(R>pe||R<xe)throw new RangeError('"value" argument is out of bounds');if(D+te>m.length)throw new RangeError("Index out of range")}function Y(m,R,D,te){R<0&&(R=65535+R+1);for(var pe=0,xe=Math.min(m.length-D,2);pe<xe;++pe)m[D+pe]=(R&255<<8*(te?pe:1-pe))>>>8*(te?pe:1-pe)}function k(m,R,D,te){R<0&&(R=4294967295+R+1);for(var pe=0,xe=Math.min(m.length-D,4);pe<xe;++pe)m[D+pe]=R>>>8*(te?pe:3-pe)&255}function C(m,R,D,te,pe,xe){if(D+te>m.length)throw new RangeError("Index out of range");if(D<0)throw new RangeError("Index out of range")}function N(m,R,D,te,pe){return pe||C(m,0,D,4),p.write(m,R,D,te,23,4),D+4}function q(m,R,D,te,pe){return pe||C(m,0,D,8),p.write(m,R,D,te,52,8),D+8}e.prototype.slice=function(R,D){var pe,te=this.length;if((R=~~R)<0?(R+=te)<0&&(R=0):R>te&&(R=te),(D=void 0===D?te:~~D)<0?(D+=te)<0&&(D=0):D>te&&(D=te),D<R&&(D=R),e.TYPED_ARRAY_SUPPORT)(pe=this.subarray(R,D)).__proto__=e.prototype;else{var xe=D-R;pe=new e(xe,void 0);for(var Ce=0;Ce<xe;++Ce)pe[Ce]=this[Ce+R]}return pe},e.prototype.readUIntLE=function(R,D,te){R|=0,D|=0,te||G(R,D,this.length);for(var pe=this[R],xe=1,Ce=0;++Ce<D&&(xe*=256);)pe+=this[R+Ce]*xe;return pe},e.prototype.readUIntBE=function(R,D,te){R|=0,D|=0,te||G(R,D,this.length);for(var pe=this[R+--D],xe=1;D>0&&(xe*=256);)pe+=this[R+--D]*xe;return pe},e.prototype.readUInt8=function(R,D){return D||G(R,1,this.length),this[R]},e.prototype.readUInt16LE=function(R,D){return D||G(R,2,this.length),this[R]|this[R+1]<<8},e.prototype.readUInt16BE=function(R,D){return D||G(R,2,this.length),this[R]<<8|this[R+1]},e.prototype.readUInt32LE=function(R,D){return D||G(R,4,this.length),(this[R]|this[R+1]<<8|this[R+2]<<16)+16777216*this[R+3]},e.prototype.readUInt32BE=function(R,D){return D||G(R,4,this.length),16777216*this[R]+(this[R+1]<<16|this[R+2]<<8|this[R+3])},e.prototype.readIntLE=function(R,D,te){R|=0,D|=0,te||G(R,D,this.length);for(var pe=this[R],xe=1,Ce=0;++Ce<D&&(xe*=256);)pe+=this[R+Ce]*xe;return pe>=(xe*=128)&&(pe-=Math.pow(2,8*D)),pe},e.prototype.readIntBE=function(R,D,te){R|=0,D|=0,te||G(R,D,this.length);for(var pe=D,xe=1,Ce=this[R+--pe];pe>0&&(xe*=256);)Ce+=this[R+--pe]*xe;return Ce>=(xe*=128)&&(Ce-=Math.pow(2,8*D)),Ce},e.prototype.readInt8=function(R,D){return D||G(R,1,this.length),128&this[R]?-1*(255-this[R]+1):this[R]},e.prototype.readInt16LE=function(R,D){D||G(R,2,this.length);var te=this[R]|this[R+1]<<8;return 32768&te?4294901760|te:te},e.prototype.readInt16BE=function(R,D){D||G(R,2,this.length);var te=this[R+1]|this[R]<<8;return 32768&te?4294901760|te:te},e.prototype.readInt32LE=function(R,D){return D||G(R,4,this.length),this[R]|this[R+1]<<8|this[R+2]<<16|this[R+3]<<24},e.prototype.readInt32BE=function(R,D){return D||G(R,4,this.length),this[R]<<24|this[R+1]<<16|this[R+2]<<8|this[R+3]},e.prototype.readFloatLE=function(R,D){return D||G(R,4,this.length),p.read(this,R,!0,23,4)},e.prototype.readFloatBE=function(R,D){return D||G(R,4,this.length),p.read(this,R,!1,23,4)},e.prototype.readDoubleLE=function(R,D){return D||G(R,8,this.length),p.read(this,R,!0,52,8)},e.prototype.readDoubleBE=function(R,D){return D||G(R,8,this.length),p.read(this,R,!1,52,8)},e.prototype.writeUIntLE=function(R,D,te,pe){R=+R,D|=0,te|=0,pe||re(this,R,D,te,Math.pow(2,8*te)-1,0);var Ce=1,ee=0;for(this[D]=255&R;++ee<te&&(Ce*=256);)this[D+ee]=R/Ce&255;return D+te},e.prototype.writeUIntBE=function(R,D,te,pe){R=+R,D|=0,te|=0,pe||re(this,R,D,te,Math.pow(2,8*te)-1,0);var Ce=te-1,ee=1;for(this[D+Ce]=255&R;--Ce>=0&&(ee*=256);)this[D+Ce]=R/ee&255;return D+te},e.prototype.writeUInt8=function(R,D,te){return R=+R,D|=0,te||re(this,R,D,1,255,0),e.TYPED_ARRAY_SUPPORT||(R=Math.floor(R)),this[D]=255&R,D+1},e.prototype.writeUInt16LE=function(R,D,te){return R=+R,D|=0,te||re(this,R,D,2,65535,0),e.TYPED_ARRAY_SUPPORT?(this[D]=255&R,this[D+1]=R>>>8):Y(this,R,D,!0),D+2},e.prototype.writeUInt16BE=function(R,D,te){return R=+R,D|=0,te||re(this,R,D,2,65535,0),e.TYPED_ARRAY_SUPPORT?(this[D]=R>>>8,this[D+1]=255&R):Y(this,R,D,!1),D+2},e.prototype.writeUInt32LE=function(R,D,te){return R=+R,D|=0,te||re(this,R,D,4,4294967295,0),e.TYPED_ARRAY_SUPPORT?(this[D+3]=R>>>24,this[D+2]=R>>>16,this[D+1]=R>>>8,this[D]=255&R):k(this,R,D,!0),D+4},e.prototype.writeUInt32BE=function(R,D,te){return R=+R,D|=0,te||re(this,R,D,4,4294967295,0),e.TYPED_ARRAY_SUPPORT?(this[D]=R>>>24,this[D+1]=R>>>16,this[D+2]=R>>>8,this[D+3]=255&R):k(this,R,D,!1),D+4},e.prototype.writeIntLE=function(R,D,te,pe){if(R=+R,D|=0,!pe){var xe=Math.pow(2,8*te-1);re(this,R,D,te,xe-1,-xe)}var Ce=0,ee=1,le=0;for(this[D]=255&R;++Ce<te&&(ee*=256);)R<0&&0===le&&0!==this[D+Ce-1]&&(le=1),this[D+Ce]=(R/ee>>0)-le&255;return D+te},e.prototype.writeIntBE=function(R,D,te,pe){if(R=+R,D|=0,!pe){var xe=Math.pow(2,8*te-1);re(this,R,D,te,xe-1,-xe)}var Ce=te-1,ee=1,le=0;for(this[D+Ce]=255&R;--Ce>=0&&(ee*=256);)R<0&&0===le&&0!==this[D+Ce+1]&&(le=1),this[D+Ce]=(R/ee>>0)-le&255;return D+te},e.prototype.writeInt8=function(R,D,te){return R=+R,D|=0,te||re(this,R,D,1,127,-128),e.TYPED_ARRAY_SUPPORT||(R=Math.floor(R)),R<0&&(R=255+R+1),this[D]=255&R,D+1},e.prototype.writeInt16LE=function(R,D,te){return R=+R,D|=0,te||re(this,R,D,2,32767,-32768),e.TYPED_ARRAY_SUPPORT?(this[D]=255&R,this[D+1]=R>>>8):Y(this,R,D,!0),D+2},e.prototype.writeInt16BE=function(R,D,te){return R=+R,D|=0,te||re(this,R,D,2,32767,-32768),e.TYPED_ARRAY_SUPPORT?(this[D]=R>>>8,this[D+1]=255&R):Y(this,R,D,!1),D+2},e.prototype.writeInt32LE=function(R,D,te){return R=+R,D|=0,te||re(this,R,D,4,2147483647,-2147483648),e.TYPED_ARRAY_SUPPORT?(this[D]=255&R,this[D+1]=R>>>8,this[D+2]=R>>>16,this[D+3]=R>>>24):k(this,R,D,!0),D+4},e.prototype.writeInt32BE=function(R,D,te){return R=+R,D|=0,te||re(this,R,D,4,2147483647,-2147483648),R<0&&(R=4294967295+R+1),e.TYPED_ARRAY_SUPPORT?(this[D]=R>>>24,this[D+1]=R>>>16,this[D+2]=R>>>8,this[D+3]=255&R):k(this,R,D,!1),D+4},e.prototype.writeFloatLE=function(R,D,te){return N(this,R,D,!0,te)},e.prototype.writeFloatBE=function(R,D,te){return N(this,R,D,!1,te)},e.prototype.writeDoubleLE=function(R,D,te){return q(this,R,D,!0,te)},e.prototype.writeDoubleBE=function(R,D,te){return q(this,R,D,!1,te)},e.prototype.copy=function(R,D,te,pe){if(te||(te=0),!pe&&0!==pe&&(pe=this.length),D>=R.length&&(D=R.length),D||(D=0),pe>0&&pe<te&&(pe=te),pe===te||0===R.length||0===this.length)return 0;if(D<0)throw new RangeError("targetStart out of bounds");if(te<0||te>=this.length)throw new RangeError("sourceStart out of bounds");if(pe<0)throw new RangeError("sourceEnd out of bounds");pe>this.length&&(pe=this.length),R.length-D<pe-te&&(pe=R.length-D+te);var Ce,xe=pe-te;if(this===R&&te<D&&D<pe)for(Ce=xe-1;Ce>=0;--Ce)R[Ce+D]=this[Ce+te];else if(xe<1e3||!e.TYPED_ARRAY_SUPPORT)for(Ce=0;Ce<xe;++Ce)R[Ce+D]=this[Ce+te];else Uint8Array.prototype.set.call(R,this.subarray(te,te+xe),D);return xe},e.prototype.fill=function(R,D,te,pe){if("string"==typeof R){if("string"==typeof D?(pe=D,D=0,te=this.length):"string"==typeof te&&(pe=te,te=this.length),1===R.length){var xe=R.charCodeAt(0);xe<256&&(R=xe)}if(void 0!==pe&&"string"!=typeof pe)throw new TypeError("encoding must be a string");if("string"==typeof pe&&!e.isEncoding(pe))throw new TypeError("Unknown encoding: "+pe)}else"number"==typeof R&&(R&=255);if(D<0||this.length<D||this.length<te)throw new RangeError("Out of range index");if(te<=D)return this;var Ce;if(D>>>=0,te=void 0===te?this.length:te>>>0,R||(R=0),"number"==typeof R)for(Ce=D;Ce<te;++Ce)this[Ce]=R;else{var ee=e.isBuffer(R)?R:be(new e(R,pe).toString()),le=ee.length;for(Ce=0;Ce<te-D;++Ce)this[Ce+D]=ee[Ce%le]}return this};var Z=/[^+\/0-9A-Za-z-_]/g;function Se(m){return m<16?"0"+m.toString(16):m.toString(16)}function be(m,R){R=R||1/0;for(var D,te=m.length,pe=null,xe=[],Ce=0;Ce<te;++Ce){if((D=m.charCodeAt(Ce))>55295&&D<57344){if(!pe){if(D>56319){(R-=3)>-1&&xe.push(239,191,189);continue}if(Ce+1===te){(R-=3)>-1&&xe.push(239,191,189);continue}pe=D;continue}if(D<56320){(R-=3)>-1&&xe.push(239,191,189),pe=D;continue}D=65536+(pe-55296<<10|D-56320)}else pe&&(R-=3)>-1&&xe.push(239,191,189);if(pe=null,D<128){if((R-=1)<0)break;xe.push(D)}else if(D<2048){if((R-=2)<0)break;xe.push(D>>6|192,63&D|128)}else if(D<65536){if((R-=3)<0)break;xe.push(D>>12|224,D>>6&63|128,63&D|128)}else{if(!(D<1114112))throw new Error("Invalid code point");if((R-=4)<0)break;xe.push(D>>18|240,D>>12&63|128,D>>6&63|128,63&D|128)}}return xe}function ke(m){return w.toByteArray(function fe(m){if((m=function ve(m){return m.trim?m.trim():m.replace(/^\s+|\s+$/g,"")}(m).replace(Z,"")).length<2)return"";for(;m.length%4!=0;)m+="=";return m}(m))}function ne(m,R,D,te){for(var pe=0;pe<te&&!(pe+D>=R.length||pe>=m.length);++pe)R[pe+D]=m[pe];return pe}},94553:(ae,I)=>{I.read=function(l,t,w,p,r){var n,i,s=8*r-p-1,e=(1<<s)-1,a=e>>1,u=-7,c=w?r-1:0,y=w?-1:1,f=l[t+c];for(c+=y,n=f&(1<<-u)-1,f>>=-u,u+=s;u>0;n=256*n+l[t+c],c+=y,u-=8);for(i=n&(1<<-u)-1,n>>=-u,u+=p;u>0;i=256*i+l[t+c],c+=y,u-=8);if(0===n)n=1-a;else{if(n===e)return i?NaN:1/0*(f?-1:1);i+=Math.pow(2,p),n-=a}return(f?-1:1)*i*Math.pow(2,n-p)},I.write=function(l,t,w,p,r,n){var i,s,e,a=8*n-r-1,u=(1<<a)-1,c=u>>1,y=23===r?Math.pow(2,-24)-Math.pow(2,-77):0,f=p?0:n-1,T=p?1:-1,x=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,i=u):(i=Math.floor(Math.log(t)/Math.LN2),t*(e=Math.pow(2,-i))<1&&(i--,e*=2),(t+=i+c>=1?y/e:y*Math.pow(2,1-c))*e>=2&&(i++,e/=2),i+c>=u?(s=0,i=u):i+c>=1?(s=(t*e-1)*Math.pow(2,r),i+=c):(s=t*Math.pow(2,c-1)*Math.pow(2,r),i=0));r>=8;l[w+f]=255&s,f+=T,s/=256,r-=8);for(i=i<<r|s,a+=r;a>0;l[w+f]=255&i,f+=T,i/=256,a-=8);l[w+f-T]|=128*x}},90599:ae=>{function I(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0}function l(r){return"function"==typeof r}function w(r){return"object"==typeof r&&null!==r}function p(r){return void 0===r}ae.exports=I,I.EventEmitter=I,I.prototype._events=void 0,I.prototype._maxListeners=void 0,I.defaultMaxListeners=10,I.prototype.setMaxListeners=function(r){if(!function t(r){return"number"==typeof r}(r)||r<0||isNaN(r))throw TypeError("n must be a positive number");return this._maxListeners=r,this},I.prototype.emit=function(r){var n,i,s,e,a,u;if(this._events||(this._events={}),"error"===r&&(!this._events.error||w(this._events.error)&&!this._events.error.length)){if((n=arguments[1])instanceof Error)throw n;var c=new Error('Uncaught, unspecified "error" event. ('+n+")");throw c.context=n,c}if(p(i=this._events[r]))return!1;if(l(i))switch(arguments.length){case 1:i.call(this);break;case 2:i.call(this,arguments[1]);break;case 3:i.call(this,arguments[1],arguments[2]);break;default:e=Array.prototype.slice.call(arguments,1),i.apply(this,e)}else if(w(i))for(e=Array.prototype.slice.call(arguments,1),s=(u=i.slice()).length,a=0;a<s;a++)u[a].apply(this,e);return!0},I.prototype.on=I.prototype.addListener=function(r,n){var i;if(!l(n))throw TypeError("listener must be a function");return this._events||(this._events={}),this._events.newListener&&this.emit("newListener",r,l(n.listener)?n.listener:n),this._events[r]?w(this._events[r])?this._events[r].push(n):this._events[r]=[this._events[r],n]:this._events[r]=n,w(this._events[r])&&!this._events[r].warned&&(i=p(this._maxListeners)?I.defaultMaxListeners:this._maxListeners)&&i>0&&this._events[r].length>i&&(this._events[r].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[r].length),"function"==typeof console.trace&&console.trace()),this},I.prototype.once=function(r,n){if(!l(n))throw TypeError("listener must be a function");var i=!1;function s(){this.removeListener(r,s),i||(i=!0,n.apply(this,arguments))}return s.listener=n,this.on(r,s),this},I.prototype.removeListener=function(r,n){var i,s,e,a;if(!l(n))throw TypeError("listener must be a function");if(!this._events||!this._events[r])return this;if(e=(i=this._events[r]).length,s=-1,i===n||l(i.listener)&&i.listener===n)delete this._events[r],this._events.removeListener&&this.emit("removeListener",r,n);else if(w(i)){for(a=e;a-- >0;)if(i[a]===n||i[a].listener&&i[a].listener===n){s=a;break}if(s<0)return this;1===i.length?(i.length=0,delete this._events[r]):i.splice(s,1),this._events.removeListener&&this.emit("removeListener",r,n)}return this},I.prototype.removeAllListeners=function(r){var n,i;if(!this._events)return this;if(!this._events.removeListener)return 0===arguments.length?this._events={}:this._events[r]&&delete this._events[r],this;if(0===arguments.length){for(n in this._events)"removeListener"!==n&&this.removeAllListeners(n);return this.removeAllListeners("removeListener"),this._events={},this}if(l(i=this._events[r]))this.removeListener(r,i);else if(i)for(;i.length;)this.removeListener(r,i[i.length-1]);return delete this._events[r],this},I.prototype.listeners=function(r){return this._events&&this._events[r]?l(this._events[r])?[this._events[r]]:this._events[r].slice():[]},I.prototype.listenerCount=function(r){if(this._events){var n=this._events[r];if(l(n))return 1;if(n)return n.length}return 0},I.listenerCount=function(r,n){return r.listenerCount(n)}},84989:function(ae,I,l){var t;ae=l.nmd(ae),function(w){"object"==typeof global&&global;var i,s=2147483647,e=36,u=26,c=38,y=700,_=/^xn--/,g=/[^\x20-\x7E]/,A=/[\x2E\u3002\uFF0E\uFF61]/g,L={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},j=e-1,Q=Math.floor,F=String.fromCharCode;function P(ie){throw RangeError(L[ie])}function d(ie,K){for(var G=ie.length,re=[];G--;)re[G]=K(ie[G]);return re}function O(ie,K){var G=ie.split("@"),re="";return G.length>1&&(re=G[0]+"@",ie=G[1]),re+d((ie=ie.replace(A,".")).split("."),K).join(".")}function v(ie){for(var Y,k,K=[],G=0,re=ie.length;G<re;)(Y=ie.charCodeAt(G++))>=55296&&Y<=56319&&G<re?56320==(64512&(k=ie.charCodeAt(G++)))?K.push(((1023&Y)<<10)+(1023&k)+65536):(K.push(Y),G--):K.push(Y);return K}function M(ie){return d(ie,function(K){var G="";return K>65535&&(G+=F((K-=65536)>>>10&1023|55296),K=56320|1023&K),G+F(K)}).join("")}function W(ie){return ie-48<10?ie-22:ie-65<26?ie-65:ie-97<26?ie-97:e}function V(ie,K){return ie+22+75*(ie<26)-((0!=K)<<5)}function J(ie,K,G){var re=0;for(ie=G?Q(ie/y):ie>>1,ie+=Q(ie/K);ie>j*u>>1;re+=e)ie=Q(ie/j);return Q(re+(j+1)*ie/(ie+c))}function ue(ie){var re,N,q,Z,fe,ve,Se,be,Pe,De,K=[],G=ie.length,Y=0,k=128,C=72;for((N=ie.lastIndexOf("-"))<0&&(N=0),q=0;q<N;++q)ie.charCodeAt(q)>=128&&P("not-basic"),K.push(ie.charCodeAt(q));for(Z=N>0?N+1:0;Z<G;){for(fe=Y,ve=1,Se=e;Z>=G&&P("invalid-input"),((be=W(ie.charCodeAt(Z++)))>=e||be>Q((s-Y)/ve))&&P("overflow"),Y+=be*ve,!(be<(Pe=Se<=C?1:Se>=C+u?u:Se-C));Se+=e)ve>Q(s/(De=e-Pe))&&P("overflow"),ve*=De;C=J(Y-fe,re=K.length+1,0==fe),Q(Y/re)>s-k&&P("overflow"),k+=Q(Y/re),Y%=re,K.splice(Y++,0,k)}return M(K)}function me(ie){var K,G,re,Y,k,C,N,q,Z,fe,ve,be,Pe,De,ke,Se=[];for(be=(ie=v(ie)).length,K=128,G=0,k=72,C=0;C<be;++C)(ve=ie[C])<128&&Se.push(F(ve));for(re=Y=Se.length,Y&&Se.push("-");re<be;){for(N=s,C=0;C<be;++C)(ve=ie[C])>=K&&ve<N&&(N=ve);for(N-K>Q((s-G)/(Pe=re+1))&&P("overflow"),G+=(N-K)*Pe,K=N,C=0;C<be;++C)if((ve=ie[C])<K&&++G>s&&P("overflow"),ve==K){for(q=G,Z=e;!(q<(fe=Z<=k?1:Z>=k+u?u:Z-k));Z+=e)Se.push(F(V(fe+(ke=q-fe)%(De=e-fe),0))),q=Q(ke/De);Se.push(F(V(q,0))),k=J(G,Pe,re==Y),G=0,++re}++G,++K}return Se.join("")}i={version:"1.3.2",ucs2:{decode:v,encode:M},decode:ue,encode:me,toASCII:function he(ie){return O(ie,function(K){return g.test(K)?"xn--"+me(K):K})},toUnicode:function X(ie){return O(ie,function(K){return _.test(K)?ue(K.slice(4).toLowerCase()):K})}},void 0!==(t=function(){return i}.call(I,l,I,ae))&&(ae.exports=t)}()},63570:(ae,I,l)=>{var t=l(84989);function w(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}I.parse=g,I.resolve=function L(d,O){return g(d,!1,!0).resolve(O)},I.resolveObject=function j(d,O){return d?g(d,!1,!0).resolveObject(O):O},I.format=function A(d){return Q(d)&&(d=g(d)),d instanceof w?d.format():w.prototype.format.call(d)},I.Url=w;var p=/^([a-z0-9.+-]+:)/i,r=/:[0-9]*$/,i=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),s=["'"].concat(i),e=["%","/","?",";","#"].concat(s),a=["/","?","#"],c=/^[a-z0-9A-Z_-]{0,63}$/,y=/^([a-z0-9A-Z_-]{0,63})(.*)$/,f={javascript:!0,"javascript:":!0},T={javascript:!0,"javascript:":!0},x={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},_=l(19446);function g(d,O,v){if(d&&F(d)&&d instanceof w)return d;var M=new w;return M.parse(d,O,v),M}function Q(d){return"string"==typeof d}function F(d){return"object"==typeof d&&null!==d}function b(d){return null===d}w.prototype.parse=function(d,O,v){if(!Q(d))throw new TypeError("Parameter 'url' must be a string, not "+typeof d);var M=d;M=M.trim();var W=p.exec(M);if(W){var V=(W=W[0]).toLowerCase();this.protocol=V,M=M.substr(W.length)}if(v||W||M.match(/^\/\/[^@\/]+@[^@\/]+/)){var J="//"===M.substr(0,2);J&&(!W||!T[W])&&(M=M.substr(2),this.slashes=!0)}if(!T[W]&&(J||W&&!x[W])){for(var ue=-1,me=0;me<a.length;me++)-1!==(X=M.indexOf(a[me]))&&(-1===ue||X<ue)&&(ue=X);var he,ie;for(-1!==(ie=-1===ue?M.lastIndexOf("@"):M.lastIndexOf("@",ue))&&(he=M.slice(0,ie),M=M.slice(ie+1),this.auth=decodeURIComponent(he)),ue=-1,me=0;me<e.length;me++){var X;-1!==(X=M.indexOf(e[me]))&&(-1===ue||X<ue)&&(ue=X)}-1===ue&&(ue=M.length),this.host=M.slice(0,ue),M=M.slice(ue),this.parseHost(),this.hostname=this.hostname||"";var K="["===this.hostname[0]&&"]"===this.hostname[this.hostname.length-1];if(!K)for(var G=this.hostname.split(/\./),re=(me=0,G.length);me<re;me++){var Y=G[me];if(Y&&!Y.match(c)){for(var k="",C=0,N=Y.length;C<N;C++)Y.charCodeAt(C)>127?k+="x":k+=Y[C];if(!k.match(c)){var q=G.slice(0,me),Z=G.slice(me+1),fe=Y.match(y);fe&&(q.push(fe[1]),Z.unshift(fe[2])),Z.length&&(M="/"+Z.join(".")+M),this.hostname=q.join(".");break}}}if(this.hostname=this.hostname.length>255?"":this.hostname.toLowerCase(),!K){var ve=this.hostname.split("."),Se=[];for(me=0;me<ve.length;++me)Se.push((be=ve[me]).match(/[^A-Za-z0-9_-]/)?"xn--"+t.encode(be):be);this.hostname=Se.join(".")}this.host=(this.hostname||"")+(this.port?":"+this.port:""),this.href+=this.host,K&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==M[0]&&(M="/"+M))}if(!f[V])for(me=0,re=s.length;me<re;me++){var ke=s[me],ne=encodeURIComponent(ke);ne===ke&&(ne=escape(ke)),M=M.split(ke).join(ne)}var U=M.indexOf("#");-1!==U&&(this.hash=M.substr(U),M=M.slice(0,U));var be,m=M.indexOf("?");return-1!==m?(this.search=M.substr(m),this.query=M.substr(m+1),O&&(this.query=_.parse(this.query)),M=M.slice(0,m)):O&&(this.search="",this.query={}),M&&(this.pathname=M),x[V]&&this.hostname&&!this.pathname&&(this.pathname="/"),(this.pathname||this.search)&&(this.path=(this.pathname||"")+(be=this.search||"")),this.href=this.format(),this},w.prototype.format=function(){var d=this.auth||"";d&&(d=(d=encodeURIComponent(d)).replace(/%3A/i,":"),d+="@");var O=this.protocol||"",v=this.pathname||"",M=this.hash||"",W=!1,V="";this.host?W=d+this.host:this.hostname&&(W=d+(-1===this.hostname.indexOf(":")?this.hostname:"["+this.hostname+"]"),this.port&&(W+=":"+this.port)),this.query&&F(this.query)&&Object.keys(this.query).length&&(V=_.stringify(this.query));var J=this.search||V&&"?"+V||"";return O&&":"!==O.substr(-1)&&(O+=":"),this.slashes||(!O||x[O])&&!1!==W?(W="//"+(W||""),v&&"/"!==v.charAt(0)&&(v="/"+v)):W||(W=""),M&&"#"!==M.charAt(0)&&(M="#"+M),J&&"?"!==J.charAt(0)&&(J="?"+J),O+W+(v=v.replace(/[?#]/g,function(ue){return encodeURIComponent(ue)}))+(J=J.replace("#","%23"))+M},w.prototype.resolve=function(d){return this.resolveObject(g(d,!1,!0)).format()},w.prototype.resolveObject=function(d){if(Q(d)){var O=new w;O.parse(d,!1,!0),d=O}var v=new w;if(Object.keys(this).forEach(function(N){v[N]=this[N]},this),v.hash=d.hash,""===d.href)return v.href=v.format(),v;if(d.slashes&&!d.protocol)return Object.keys(d).forEach(function(N){"protocol"!==N&&(v[N]=d[N])}),x[v.protocol]&&v.hostname&&!v.pathname&&(v.path=v.pathname="/"),v.href=v.format(),v;if(d.protocol&&d.protocol!==v.protocol){if(!x[d.protocol])return Object.keys(d).forEach(function(N){v[N]=d[N]}),v.href=v.format(),v;if(v.protocol=d.protocol,d.host||T[d.protocol])v.pathname=d.pathname;else{for(var he=(d.pathname||"").split("/");he.length&&!(d.host=he.shift()););d.host||(d.host=""),d.hostname||(d.hostname=""),""!==he[0]&&he.unshift(""),he.length<2&&he.unshift(""),v.pathname=he.join("/")}return v.search=d.search,v.query=d.query,v.host=d.host||"",v.auth=d.auth,v.hostname=d.hostname||d.host,v.port=d.port,(v.pathname||v.search)&&(v.path=(v.pathname||"")+(v.search||"")),v.slashes=v.slashes||d.slashes,v.href=v.format(),v}var V=v.pathname&&"/"===v.pathname.charAt(0),J=d.host||d.pathname&&"/"===d.pathname.charAt(0),ue=J||V||v.host&&d.pathname,me=ue,X=v.pathname&&v.pathname.split("/")||[],ie=(he=d.pathname&&d.pathname.split("/")||[],v.protocol&&!x[v.protocol]);if(ie&&(v.hostname="",v.port=null,v.host&&(""===X[0]?X[0]=v.host:X.unshift(v.host)),v.host="",d.protocol&&(d.hostname=null,d.port=null,d.host&&(""===he[0]?he[0]=d.host:he.unshift(d.host)),d.host=null),ue=ue&&(""===he[0]||""===X[0])),J)v.host=d.host||""===d.host?d.host:v.host,v.hostname=d.hostname||""===d.hostname?d.hostname:v.hostname,v.search=d.search,v.query=d.query,X=he;else if(he.length)X||(X=[]),X.pop(),X=X.concat(he),v.search=d.search,v.query=d.query;else if(!function P(d){return null==d}(d.search))return ie&&(v.hostname=v.host=X.shift(),(K=!!(v.host&&v.host.indexOf("@")>0)&&v.host.split("@"))&&(v.auth=K.shift(),v.host=v.hostname=K.shift())),v.search=d.search,v.query=d.query,(!b(v.pathname)||!b(v.search))&&(v.path=(v.pathname?v.pathname:"")+(v.search?v.search:"")),v.href=v.format(),v;if(!X.length)return v.pathname=null,v.path=v.search?"/"+v.search:null,v.href=v.format(),v;for(var G=X.slice(-1)[0],re=(v.host||d.host)&&("."===G||".."===G)||""===G,Y=0,k=X.length;k>=0;k--)"."==(G=X[k])?X.splice(k,1):".."===G?(X.splice(k,1),Y++):Y&&(X.splice(k,1),Y--);if(!ue&&!me)for(;Y--;Y)X.unshift("..");ue&&""!==X[0]&&(!X[0]||"/"!==X[0].charAt(0))&&X.unshift(""),re&&"/"!==X.join("/").substr(-1)&&X.push("");var K,C=""===X[0]||X[0]&&"/"===X[0].charAt(0);return ie&&(v.hostname=v.host=C?"":X.length?X.shift():"",(K=!!(v.host&&v.host.indexOf("@")>0)&&v.host.split("@"))&&(v.auth=K.shift(),v.host=v.hostname=K.shift())),(ue=ue||v.host&&X.length)&&!C&&X.unshift(""),X.length?v.pathname=X.join("/"):(v.pathname=null,v.path=null),(!b(v.pathname)||!b(v.search))&&(v.path=(v.pathname?v.pathname:"")+(v.search?v.search:"")),v.auth=d.auth||v.auth,v.slashes=v.slashes||d.slashes,v.href=v.format(),v},w.prototype.parseHost=function(){var d=this.host,O=r.exec(d);O&&(":"!==(O=O[0])&&(this.port=O.substr(1)),d=d.substr(0,d.length-O.length)),d&&(this.hostname=d)}},74379:(ae,I)=>{"use strict";Object.defineProperty(I,"__esModule",{value:!0}),I.default=void 0;for(var l=[],t=0;t<256;++t)l[t]=(t+256).toString(16).substr(1);I.default=function w(r,n){var i=n||0;return[l[r[i++]],l[r[i++]],l[r[i++]],l[r[i++]],"-",l[r[i++]],l[r[i++]],"-",l[r[i++]],l[r[i++]],"-",l[r[i++]],l[r[i++]],"-",l[r[i++]],l[r[i++]],l[r[i++]],l[r[i++]],l[r[i++]],l[r[i++]]].join("")}},74521:(ae,I,l)=>{"use strict";Object.defineProperty(I,"v4",{enumerable:!0,get:function(){return r.default}});i(l(54432)),i(l(35552));var r=i(l(87658));i(l(87202));function i(s){return s&&s.__esModule?s:{default:s}}},10544:(ae,I)=>{"use strict";function r(y,f){var T=(65535&y)+(65535&f);return(y>>16)+(f>>16)+(T>>16)<<16|65535&T}function i(y,f,T,x,_,g){return r(function n(y,f){return y<<f|y>>>32-f}(r(r(f,y),r(x,g)),_),T)}function s(y,f,T,x,_,g,A){return i(f&T|~f&x,y,f,_,g,A)}function e(y,f,T,x,_,g,A){return i(f&x|T&~x,y,f,_,g,A)}function a(y,f,T,x,_,g,A){return i(f^T^x,y,f,_,g,A)}function u(y,f,T,x,_,g,A){return i(T^(f|~x),y,f,_,g,A)}Object.defineProperty(I,"__esModule",{value:!0}),I.default=void 0,I.default=function l(y){if("string"==typeof y){var f=unescape(encodeURIComponent(y));y=new Array(f.length);for(var T=0;T<f.length;T++)y[T]=f.charCodeAt(T)}return function t(y){var f,T,A,x=[],_=32*y.length,g="0123456789abcdef";for(f=0;f<_;f+=8)T=y[f>>5]>>>f%32&255,A=parseInt(g.charAt(T>>>4&15)+g.charAt(15&T),16),x.push(A);return x}(function w(y,f){y[f>>5]|=128<<f%32,y[14+(f+64>>>9<<4)]=f;var T,x,_,g,A,L=1732584193,j=-271733879,Q=-1732584194,F=271733878;for(T=0;T<y.length;T+=16)x=L,_=j,g=Q,A=F,L=s(L,j,Q,F,y[T],7,-680876936),F=s(F,L,j,Q,y[T+1],12,-389564586),Q=s(Q,F,L,j,y[T+2],17,606105819),j=s(j,Q,F,L,y[T+3],22,-1044525330),L=s(L,j,Q,F,y[T+4],7,-176418897),F=s(F,L,j,Q,y[T+5],12,1200080426),Q=s(Q,F,L,j,y[T+6],17,-1473231341),j=s(j,Q,F,L,y[T+7],22,-45705983),L=s(L,j,Q,F,y[T+8],7,1770035416),F=s(F,L,j,Q,y[T+9],12,-1958414417),Q=s(Q,F,L,j,y[T+10],17,-42063),j=s(j,Q,F,L,y[T+11],22,-1990404162),L=s(L,j,Q,F,y[T+12],7,1804603682),F=s(F,L,j,Q,y[T+13],12,-40341101),Q=s(Q,F,L,j,y[T+14],17,-1502002290),L=e(L,j=s(j,Q,F,L,y[T+15],22,1236535329),Q,F,y[T+1],5,-165796510),F=e(F,L,j,Q,y[T+6],9,-1069501632),Q=e(Q,F,L,j,y[T+11],14,643717713),j=e(j,Q,F,L,y[T],20,-373897302),L=e(L,j,Q,F,y[T+5],5,-701558691),F=e(F,L,j,Q,y[T+10],9,38016083),Q=e(Q,F,L,j,y[T+15],14,-660478335),j=e(j,Q,F,L,y[T+4],20,-405537848),L=e(L,j,Q,F,y[T+9],5,568446438),F=e(F,L,j,Q,y[T+14],9,-1019803690),Q=e(Q,F,L,j,y[T+3],14,-187363961),j=e(j,Q,F,L,y[T+8],20,1163531501),L=e(L,j,Q,F,y[T+13],5,-1444681467),F=e(F,L,j,Q,y[T+2],9,-51403784),Q=e(Q,F,L,j,y[T+7],14,1735328473),L=a(L,j=e(j,Q,F,L,y[T+12],20,-1926607734),Q,F,y[T+5],4,-378558),F=a(F,L,j,Q,y[T+8],11,-2022574463),Q=a(Q,F,L,j,y[T+11],16,1839030562),j=a(j,Q,F,L,y[T+14],23,-35309556),L=a(L,j,Q,F,y[T+1],4,-1530992060),F=a(F,L,j,Q,y[T+4],11,1272893353),Q=a(Q,F,L,j,y[T+7],16,-155497632),j=a(j,Q,F,L,y[T+10],23,-1094730640),L=a(L,j,Q,F,y[T+13],4,681279174),F=a(F,L,j,Q,y[T],11,-358537222),Q=a(Q,F,L,j,y[T+3],16,-722521979),j=a(j,Q,F,L,y[T+6],23,76029189),L=a(L,j,Q,F,y[T+9],4,-640364487),F=a(F,L,j,Q,y[T+12],11,-421815835),Q=a(Q,F,L,j,y[T+15],16,530742520),L=u(L,j=a(j,Q,F,L,y[T+2],23,-995338651),Q,F,y[T],6,-198630844),F=u(F,L,j,Q,y[T+7],10,1126891415),Q=u(Q,F,L,j,y[T+14],15,-1416354905),j=u(j,Q,F,L,y[T+5],21,-57434055),L=u(L,j,Q,F,y[T+12],6,1700485571),F=u(F,L,j,Q,y[T+3],10,-1894986606),Q=u(Q,F,L,j,y[T+10],15,-1051523),j=u(j,Q,F,L,y[T+1],21,-2054922799),L=u(L,j,Q,F,y[T+8],6,1873313359),F=u(F,L,j,Q,y[T+15],10,-30611744),Q=u(Q,F,L,j,y[T+6],15,-1560198380),j=u(j,Q,F,L,y[T+13],21,1309151649),L=u(L,j,Q,F,y[T+4],6,-145523070),F=u(F,L,j,Q,y[T+11],10,-1120210379),Q=u(Q,F,L,j,y[T+2],15,718787259),j=u(j,Q,F,L,y[T+9],21,-343485551),L=r(L,x),j=r(j,_),Q=r(Q,g),F=r(F,A);return[L,j,Q,F]}(function p(y){var f,T=[];for(T[(y.length>>2)-1]=void 0,f=0;f<T.length;f+=1)T[f]=0;var x=8*y.length;for(f=0;f<x;f+=8)T[f>>5]|=(255&y[f/8])<<f%32;return T}(y),8*y.length))}},83986:(ae,I)=>{"use strict";Object.defineProperty(I,"__esModule",{value:!0}),I.default=function w(){if(!l)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return l(t)};var l=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto<"u"&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto),t=new Uint8Array(16)},71937:(ae,I)=>{"use strict";function l(r,n,i,s){switch(r){case 0:return n&i^~n&s;case 1:case 3:return n^i^s;case 2:return n&i^n&s^i&s}}function t(r,n){return r<<n|r>>>32-n}Object.defineProperty(I,"__esModule",{value:!0}),I.default=void 0,I.default=function w(r){var n=[1518500249,1859775393,2400959708,3395469782],i=[1732584193,4023233417,2562383102,271733878,3285377520];if("string"==typeof r){var s=unescape(encodeURIComponent(r));r=new Array(s.length);for(var e=0;e<s.length;e++)r[e]=s.charCodeAt(e)}r.push(128);var u=Math.ceil((r.length/4+2)/16),c=new Array(u);for(e=0;e<u;e++){c[e]=new Array(16);for(var y=0;y<16;y++)c[e][y]=r[64*e+4*y]<<24|r[64*e+4*y+1]<<16|r[64*e+4*y+2]<<8|r[64*e+4*y+3]}for(c[u-1][14]=8*(r.length-1)/Math.pow(2,32),c[u-1][14]=Math.floor(c[u-1][14]),c[u-1][15]=8*(r.length-1)&4294967295,e=0;e<u;e++){for(var f=new Array(80),T=0;T<16;T++)f[T]=c[e][T];for(T=16;T<80;T++)f[T]=t(f[T-3]^f[T-8]^f[T-14]^f[T-16],1);var x=i[0],_=i[1],g=i[2],A=i[3],L=i[4];for(T=0;T<80;T++){var j=Math.floor(T/20),Q=t(x,5)+l(j,_,g,A)+L+n[j]+f[T]>>>0;L=A,A=g,g=t(_,30)>>>0,_=x,x=Q}i[0]=i[0]+x>>>0,i[1]=i[1]+_>>>0,i[2]=i[2]+g>>>0,i[3]=i[3]+A>>>0,i[4]=i[4]+L>>>0}return[i[0]>>24&255,i[0]>>16&255,i[0]>>8&255,255&i[0],i[1]>>24&255,i[1]>>16&255,i[1]>>8&255,255&i[1],i[2]>>24&255,i[2]>>16&255,i[2]>>8&255,255&i[2],i[3]>>24&255,i[3]>>16&255,i[3]>>8&255,255&i[3],i[4]>>24&255,i[4]>>16&255,i[4]>>8&255,255&i[4]]}},54432:(ae,I,l)=>{"use strict";Object.defineProperty(I,"__esModule",{value:!0}),I.default=void 0;var t=p(l(83986)),w=p(l(74379));function p(u){return u&&u.__esModule?u:{default:u}}var r,n,i=0,s=0;I.default=function e(u,c,y){var f=c&&y||0,T=c||[],x=(u=u||{}).node||r,_=void 0!==u.clockseq?u.clockseq:n;if(null==x||null==_){var g=u.random||(u.rng||t.default)();null==x&&(x=r=[1|g[0],g[1],g[2],g[3],g[4],g[5]]),null==_&&(_=n=16383&(g[6]<<8|g[7]))}var A=void 0!==u.msecs?u.msecs:(new Date).getTime(),L=void 0!==u.nsecs?u.nsecs:s+1,j=A-i+(L-s)/1e4;if(j<0&&void 0===u.clockseq&&(_=_+1&16383),(j<0||A>i)&&void 0===u.nsecs&&(L=0),L>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");i=A,s=L,n=_;var Q=(1e4*(268435455&(A+=122192928e5))+L)%4294967296;T[f++]=Q>>>24&255,T[f++]=Q>>>16&255,T[f++]=Q>>>8&255,T[f++]=255&Q;var F=A/4294967296*1e4&268435455;T[f++]=F>>>8&255,T[f++]=255&F,T[f++]=F>>>24&15|16,T[f++]=F>>>16&255,T[f++]=_>>>8|128,T[f++]=255&_;for(var b=0;b<6;++b)T[f+b]=x[b];return c||(0,w.default)(T)}},35552:(ae,I,l)=>{"use strict";Object.defineProperty(I,"__esModule",{value:!0}),I.default=void 0;var t=p(l(10519)),w=p(l(10544));function p(i){return i&&i.__esModule?i:{default:i}}var n=(0,t.default)("v3",48,w.default);I.default=n},10519:(ae,I,l)=>{"use strict";Object.defineProperty(I,"__esModule",{value:!0}),I.default=function s(e,a,u){var c=function(y,f,T,x){var _=T&&x||0;if("string"==typeof y&&(y=function r(e){e=unescape(encodeURIComponent(e));for(var a=new Array(e.length),u=0;u<e.length;u++)a[u]=e.charCodeAt(u);return a}(y)),"string"==typeof f&&(f=function p(e){var a=[];return e.replace(/[a-fA-F0-9]{2}/g,function(u){a.push(parseInt(u,16))}),a}(f)),!Array.isArray(y))throw TypeError("value must be an array of bytes");if(!Array.isArray(f)||16!==f.length)throw TypeError("namespace must be uuid string or an Array of 16 byte values");var g=u(f.concat(y));if(g[6]=15&g[6]|a,g[8]=63&g[8]|128,T)for(var A=0;A<16;++A)T[_+A]=g[A];return T||(0,t.default)(g)};try{c.name=e}catch{}return c.DNS=n,c.URL=i,c},I.URL=I.DNS=void 0;var t=function w(e){return e&&e.__esModule?e:{default:e}}(l(74379));const n="6ba7b810-9dad-11d1-80b4-00c04fd430c8";I.DNS=n;const i="6ba7b811-9dad-11d1-80b4-00c04fd430c8";I.URL=i},87658:(ae,I,l)=>{"use strict";Object.defineProperty(I,"__esModule",{value:!0}),I.default=void 0;var t=p(l(83986)),w=p(l(74379));function p(i){return i&&i.__esModule?i:{default:i}}I.default=function r(i,s,e){var a=s&&e||0;"string"==typeof i&&(s="binary"===i?new Array(16):null,i=null);var u=(i=i||{}).random||(i.rng||t.default)();if(u[6]=15&u[6]|64,u[8]=63&u[8]|128,s)for(var c=0;c<16;++c)s[a+c]=u[c];return s||(0,w.default)(u)}},87202:(ae,I,l)=>{"use strict";Object.defineProperty(I,"__esModule",{value:!0}),I.default=void 0;var t=p(l(10519)),w=p(l(71937));function p(i){return i&&i.__esModule?i:{default:i}}var n=(0,t.default)("v5",80,w.default);I.default=n},14547:(ae,I,l)=>{"use strict";var w=l(67313),r=function(){function n(i){void 0===i&&(i=1e3),this.maxSize=i,this.cache=new w.LRUCache(i)}return Object.defineProperty(n.prototype,"size",{get:function(){return this.cache.length},enumerable:!0,configurable:!0}),n.prototype.put=function(i,s){var e="string"!=typeof i?n.getKeyString(i):i,a=this.populateValue(s);this.cache.put(e,a)},n.prototype.get=function(i){var s="string"!=typeof i?n.getKeyString(i):i,e=Date.now(),a=this.cache.get(s);if(a){for(var u=a.length-1;u>=0;u--)a[u].Expire<e&&a.splice(u,1);if(0===a.length)return void this.cache.remove(s)}return a},n.getKeyString=function(i){for(var s=[],e=Object.keys(i).sort(),a=0;a<e.length;a++){var u=e[a];void 0!==i[u]&&s.push(i[u])}return s.join(" ")},n.prototype.populateValue=function(i){var s=Date.now();return i.map(function(e){return{Address:e.Address||"",Expire:s+60*(e.CachePeriodInMinutes||1)*1e3}})},n.prototype.empty=function(){this.cache.empty()},n.prototype.remove=function(i){var s="string"!=typeof i?n.getKeyString(i):i;this.cache.remove(s)},n}();I.$=r},67313:(ae,I)=>{"use strict";Object.defineProperty(I,"__esModule",{value:!0});var l=function w(p,r){this.key=p,this.value=r},t=function(){function w(p){if(this.nodeMap={},this.size=0,"number"!=typeof p||p<1)throw new Error("Cache size can only be positive number");this.sizeLimit=p}return Object.defineProperty(w.prototype,"length",{get:function(){return this.size},enumerable:!0,configurable:!0}),w.prototype.prependToList=function(p){this.headerNode?(this.headerNode.prev=p,p.next=this.headerNode):this.tailNode=p,this.headerNode=p,this.size++},w.prototype.removeFromTail=function(){if(this.tailNode){var p=this.tailNode,r=p.prev;return r&&(r.next=void 0),p.prev=void 0,this.tailNode=r,this.size--,p}},w.prototype.detachFromList=function(p){this.headerNode===p&&(this.headerNode=p.next),this.tailNode===p&&(this.tailNode=p.prev),p.prev&&(p.prev.next=p.next),p.next&&(p.next.prev=p.prev),p.next=void 0,p.prev=void 0,this.size--},w.prototype.get=function(p){if(this.nodeMap[p]){var r=this.nodeMap[p];return this.detachFromList(r),this.prependToList(r),r.value}},w.prototype.remove=function(p){this.nodeMap[p]&&(this.detachFromList(this.nodeMap[p]),delete this.nodeMap[p])},w.prototype.put=function(p,r){if(this.nodeMap[p])this.remove(p);else if(this.size===this.sizeLimit){var n=this.removeFromTail();delete this.nodeMap[n.key]}var s=new l(p,r);this.nodeMap[p]=s,this.prependToList(s)},w.prototype.empty=function(){for(var p=Object.keys(this.nodeMap),r=0;r<p.length;r++){var n=p[r];this.detachFromList(this.nodeMap[n]),delete this.nodeMap[n]}},w}();I.LRUCache=t},13369:(ae,I)=>{"use strict";I.byteLength=function s(f){var T=i(f),_=T[1];return 3*(T[0]+_)/4-_},I.toByteArray=function a(f){var T,Q,x=i(f),_=x[0],g=x[1],A=new w(function e(f,T,x){return 3*(T+x)/4-x}(0,_,g)),L=0,j=g>0?_-4:_;for(Q=0;Q<j;Q+=4)T=t[f.charCodeAt(Q)]<<18|t[f.charCodeAt(Q+1)]<<12|t[f.charCodeAt(Q+2)]<<6|t[f.charCodeAt(Q+3)],A[L++]=T>>16&255,A[L++]=T>>8&255,A[L++]=255&T;return 2===g&&(T=t[f.charCodeAt(Q)]<<2|t[f.charCodeAt(Q+1)]>>4,A[L++]=255&T),1===g&&(T=t[f.charCodeAt(Q)]<<10|t[f.charCodeAt(Q+1)]<<4|t[f.charCodeAt(Q+2)]>>2,A[L++]=T>>8&255,A[L++]=255&T),A},I.fromByteArray=function y(f){for(var T,x=f.length,_=x%3,g=[],A=16383,L=0,j=x-_;L<j;L+=A)g.push(c(f,L,L+A>j?j:L+A));return 1===_?g.push(l[(T=f[x-1])>>2]+l[T<<4&63]+"=="):2===_&&g.push(l[(T=(f[x-2]<<8)+f[x-1])>>10]+l[T>>4&63]+l[T<<2&63]+"="),g.join("")};for(var l=[],t=[],w=typeof Uint8Array<"u"?Uint8Array:Array,p="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",r=0;r<64;++r)l[r]=p[r],t[p.charCodeAt(r)]=r;function i(f){var T=f.length;if(T%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var x=f.indexOf("=");return-1===x&&(x=T),[x,x===T?0:4-x%4]}function u(f){return l[f>>18&63]+l[f>>12&63]+l[f>>6&63]+l[63&f]}function c(f,T,x){for(var g=[],A=T;A<x;A+=3)g.push(u((f[A]<<16&16711680)+(f[A+1]<<8&65280)+(255&f[A+2])));return g.join("")}t["-".charCodeAt(0)]=62,t["_".charCodeAt(0)]=63},26149:(ae,I,l)=>{"use strict";var w=l(13369),p=l(89255),r="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;I.lW=e,I.h2=50;var n=2147483647;function s(ne){if(ne>n)throw new RangeError('The value "'+ne+'" is invalid for option "size"');var U=new Uint8Array(ne);return Object.setPrototypeOf(U,e.prototype),U}function e(ne,U,m){if("number"==typeof ne){if("string"==typeof U)throw new TypeError('The "string" argument must be of type string. Received type number');return y(ne)}return a(ne,U,m)}function a(ne,U,m){if("string"==typeof ne)return function f(ne,U){if(("string"!=typeof U||""===U)&&(U="utf8"),!e.isEncoding(U))throw new TypeError("Unknown encoding: "+U);var m=0|j(ne,U),R=s(m),D=R.write(ne,U);return D!==m&&(R=R.slice(0,D)),R}(ne,U);if(ArrayBuffer.isView(ne))return function x(ne){if(Pe(ne,Uint8Array)){var U=new Uint8Array(ne);return _(U.buffer,U.byteOffset,U.byteLength)}return T(ne)}(ne);if(null==ne)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof ne);if(Pe(ne,ArrayBuffer)||ne&&Pe(ne.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(Pe(ne,SharedArrayBuffer)||ne&&Pe(ne.buffer,SharedArrayBuffer)))return _(ne,U,m);if("number"==typeof ne)throw new TypeError('The "value" argument must not be of type number. Received type number');var R=ne.valueOf&&ne.valueOf();if(null!=R&&R!==ne)return e.from(R,U,m);var D=function g(ne){if(e.isBuffer(ne)){var U=0|A(ne.length),m=s(U);return 0===m.length||ne.copy(m,0,0,U),m}return void 0!==ne.length?"number"!=typeof ne.length||De(ne.length)?s(0):T(ne):"Buffer"===ne.type&&Array.isArray(ne.data)?T(ne.data):void 0}(ne);if(D)return D;if(typeof Symbol<"u"&&null!=Symbol.toPrimitive&&"function"==typeof ne[Symbol.toPrimitive])return e.from(ne[Symbol.toPrimitive]("string"),U,m);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof ne)}function u(ne){if("number"!=typeof ne)throw new TypeError('"size" argument must be of type number');if(ne<0)throw new RangeError('The value "'+ne+'" is invalid for option "size"')}function y(ne){return u(ne),s(ne<0?0:0|A(ne))}function T(ne){for(var U=ne.length<0?0:0|A(ne.length),m=s(U),R=0;R<U;R+=1)m[R]=255&ne[R];return m}function _(ne,U,m){if(U<0||ne.byteLength<U)throw new RangeError('"offset" is outside of buffer bounds');if(ne.byteLength<U+(m||0))throw new RangeError('"length" is outside of buffer bounds');var R;return R=void 0===U&&void 0===m?new Uint8Array(ne):void 0===m?new Uint8Array(ne,U):new Uint8Array(ne,U,m),Object.setPrototypeOf(R,e.prototype),R}function A(ne){if(ne>=n)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+n.toString(16)+" bytes");return 0|ne}function j(ne,U){if(e.isBuffer(ne))return ne.length;if(ArrayBuffer.isView(ne)||Pe(ne,ArrayBuffer))return ne.byteLength;if("string"!=typeof ne)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof ne);var m=ne.length,R=arguments.length>2&&!0===arguments[2];if(!R&&0===m)return 0;for(var D=!1;;)switch(U){case"ascii":case"latin1":case"binary":return m;case"utf8":case"utf-8":return Z(ne).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*m;case"hex":return m>>>1;case"base64":return Se(ne).length;default:if(D)return R?-1:Z(ne).length;U=(""+U).toLowerCase(),D=!0}}function Q(ne,U,m){var R=!1;if((void 0===U||U<0)&&(U=0),U>this.length||((void 0===m||m>this.length)&&(m=this.length),m<=0)||(m>>>=0)<=(U>>>=0))return"";for(ne||(ne="utf8");;)switch(ne){case"hex":return ie(this,U,m);case"utf8":case"utf-8":return J(this,U,m);case"ascii":return X(this,U,m);case"latin1":case"binary":return he(this,U,m);case"base64":return V(this,U,m);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return K(this,U,m);default:if(R)throw new TypeError("Unknown encoding: "+ne);ne=(ne+"").toLowerCase(),R=!0}}function F(ne,U,m){var R=ne[U];ne[U]=ne[m],ne[m]=R}function b(ne,U,m,R,D){if(0===ne.length)return-1;if("string"==typeof m?(R=m,m=0):m>2147483647?m=2147483647:m<-2147483648&&(m=-2147483648),De(m=+m)&&(m=D?0:ne.length-1),m<0&&(m=ne.length+m),m>=ne.length){if(D)return-1;m=ne.length-1}else if(m<0){if(!D)return-1;m=0}if("string"==typeof U&&(U=e.from(U,R)),e.isBuffer(U))return 0===U.length?-1:P(ne,U,m,R,D);if("number"==typeof U)return U&=255,"function"==typeof Uint8Array.prototype.indexOf?D?Uint8Array.prototype.indexOf.call(ne,U,m):Uint8Array.prototype.lastIndexOf.call(ne,U,m):P(ne,[U],m,R,D);throw new TypeError("val must be string, number or Buffer")}function P(ne,U,m,R,D){var ee,te=1,pe=ne.length,xe=U.length;if(void 0!==R&&("ucs2"===(R=String(R).toLowerCase())||"ucs-2"===R||"utf16le"===R||"utf-16le"===R)){if(ne.length<2||U.length<2)return-1;te=2,pe/=2,xe/=2,m/=2}function Ce(Re,Ue){return 1===te?Re[Ue]:Re.readUInt16BE(Ue*te)}if(D){var le=-1;for(ee=m;ee<pe;ee++)if(Ce(ne,ee)===Ce(U,-1===le?0:ee-le)){if(-1===le&&(le=ee),ee-le+1===xe)return le*te}else-1!==le&&(ee-=ee-le),le=-1}else for(m+xe>pe&&(m=pe-xe),ee=m;ee>=0;ee--){for(var de=!0,Oe=0;Oe<xe;Oe++)if(Ce(ne,ee+Oe)!==Ce(U,Oe)){de=!1;break}if(de)return ee}return-1}function d(ne,U,m,R){m=Number(m)||0;var D=ne.length-m;R?(R=Number(R))>D&&(R=D):R=D;var te=U.length;R>te/2&&(R=te/2);for(var pe=0;pe<R;++pe){var xe=parseInt(U.substr(2*pe,2),16);if(De(xe))return pe;ne[m+pe]=xe}return pe}function O(ne,U,m,R){return be(Z(U,ne.length-m),ne,m,R)}function v(ne,U,m,R){return be(function fe(ne){for(var U=[],m=0;m<ne.length;++m)U.push(255&ne.charCodeAt(m));return U}(U),ne,m,R)}function M(ne,U,m,R){return be(Se(U),ne,m,R)}function W(ne,U,m,R){return be(function ve(ne,U){for(var m,R,te=[],pe=0;pe<ne.length&&!((U-=2)<0);++pe)R=(m=ne.charCodeAt(pe))>>8,te.push(m%256),te.push(R);return te}(U,ne.length-m),ne,m,R)}function V(ne,U,m){return w.fromByteArray(0===U&&m===ne.length?ne:ne.slice(U,m))}function J(ne,U,m){m=Math.min(ne.length,m);for(var R=[],D=U;D<m;){var Ce,ee,le,de,te=ne[D],pe=null,xe=te>239?4:te>223?3:te>191?2:1;if(D+xe<=m)switch(xe){case 1:te<128&&(pe=te);break;case 2:128==(192&(Ce=ne[D+1]))&&(de=(31&te)<<6|63&Ce)>127&&(pe=de);break;case 3:ee=ne[D+2],128==(192&(Ce=ne[D+1]))&&128==(192&ee)&&(de=(15&te)<<12|(63&Ce)<<6|63&ee)>2047&&(de<55296||de>57343)&&(pe=de);break;case 4:ee=ne[D+2],le=ne[D+3],128==(192&(Ce=ne[D+1]))&&128==(192&ee)&&128==(192&le)&&(de=(15&te)<<18|(63&Ce)<<12|(63&ee)<<6|63&le)>65535&&de<1114112&&(pe=de)}null===pe?(pe=65533,xe=1):pe>65535&&(R.push((pe-=65536)>>>10&1023|55296),pe=56320|1023&pe),R.push(pe),D+=xe}return function me(ne){var U=ne.length;if(U<=ue)return String.fromCharCode.apply(String,ne);for(var m="",R=0;R<U;)m+=String.fromCharCode.apply(String,ne.slice(R,R+=ue));return m}(R)}!(e.TYPED_ARRAY_SUPPORT=function i(){try{var ne=new Uint8Array(1),U={foo:function(){return 42}};return Object.setPrototypeOf(U,Uint8Array.prototype),Object.setPrototypeOf(ne,U),42===ne.foo()}catch{return!1}}())&&typeof console<"u"&&"function"==typeof console.error&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(e.prototype,"parent",{enumerable:!0,get:function(){if(e.isBuffer(this))return this.buffer}}),Object.defineProperty(e.prototype,"offset",{enumerable:!0,get:function(){if(e.isBuffer(this))return this.byteOffset}}),e.poolSize=8192,e.from=function(ne,U,m){return a(ne,U,m)},Object.setPrototypeOf(e.prototype,Uint8Array.prototype),Object.setPrototypeOf(e,Uint8Array),e.alloc=function(ne,U,m){return function c(ne,U,m){return u(ne),ne<=0?s(ne):void 0!==U?"string"==typeof m?s(ne).fill(U,m):s(ne).fill(U):s(ne)}(ne,U,m)},e.allocUnsafe=function(ne){return y(ne)},e.allocUnsafeSlow=function(ne){return y(ne)},e.isBuffer=function(U){return null!=U&&!0===U._isBuffer&&U!==e.prototype},e.compare=function(U,m){if(Pe(U,Uint8Array)&&(U=e.from(U,U.offset,U.byteLength)),Pe(m,Uint8Array)&&(m=e.from(m,m.offset,m.byteLength)),!e.isBuffer(U)||!e.isBuffer(m))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(U===m)return 0;for(var R=U.length,D=m.length,te=0,pe=Math.min(R,D);te<pe;++te)if(U[te]!==m[te]){R=U[te],D=m[te];break}return R<D?-1:D<R?1:0},e.isEncoding=function(U){switch(String(U).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},e.concat=function(U,m){if(!Array.isArray(U))throw new TypeError('"list" argument must be an Array of Buffers');if(0===U.length)return e.alloc(0);var R;if(void 0===m)for(m=0,R=0;R<U.length;++R)m+=U[R].length;var D=e.allocUnsafe(m),te=0;for(R=0;R<U.length;++R){var pe=U[R];if(Pe(pe,Uint8Array))te+pe.length>D.length?e.from(pe).copy(D,te):Uint8Array.prototype.set.call(D,pe,te);else{if(!e.isBuffer(pe))throw new TypeError('"list" argument must be an Array of Buffers');pe.copy(D,te)}te+=pe.length}return D},e.byteLength=j,e.prototype._isBuffer=!0,e.prototype.swap16=function(){var U=this.length;if(U%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var m=0;m<U;m+=2)F(this,m,m+1);return this},e.prototype.swap32=function(){var U=this.length;if(U%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var m=0;m<U;m+=4)F(this,m,m+3),F(this,m+1,m+2);return this},e.prototype.swap64=function(){var U=this.length;if(U%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var m=0;m<U;m+=8)F(this,m,m+7),F(this,m+1,m+6),F(this,m+2,m+5),F(this,m+3,m+4);return this},e.prototype.toLocaleString=e.prototype.toString=function(){var U=this.length;return 0===U?"":0===arguments.length?J(this,0,U):Q.apply(this,arguments)},e.prototype.equals=function(U){if(!e.isBuffer(U))throw new TypeError("Argument must be a Buffer");return this===U||0===e.compare(this,U)},e.prototype.inspect=function(){var U="",m=I.h2;return U=this.toString("hex",0,m).replace(/(.{2})/g,"$1 ").trim(),this.length>m&&(U+=" ... "),"<Buffer "+U+">"},r&&(e.prototype[r]=e.prototype.inspect),e.prototype.compare=function(U,m,R,D,te){if(Pe(U,Uint8Array)&&(U=e.from(U,U.offset,U.byteLength)),!e.isBuffer(U))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof U);if(void 0===m&&(m=0),void 0===R&&(R=U?U.length:0),void 0===D&&(D=0),void 0===te&&(te=this.length),m<0||R>U.length||D<0||te>this.length)throw new RangeError("out of range index");if(D>=te&&m>=R)return 0;if(D>=te)return-1;if(m>=R)return 1;if(this===U)return 0;for(var pe=(te>>>=0)-(D>>>=0),xe=(R>>>=0)-(m>>>=0),Ce=Math.min(pe,xe),ee=this.slice(D,te),le=U.slice(m,R),de=0;de<Ce;++de)if(ee[de]!==le[de]){pe=ee[de],xe=le[de];break}return pe<xe?-1:xe<pe?1:0},e.prototype.includes=function(U,m,R){return-1!==this.indexOf(U,m,R)},e.prototype.indexOf=function(U,m,R){return b(this,U,m,R,!0)},e.prototype.lastIndexOf=function(U,m,R){return b(this,U,m,R,!1)},e.prototype.write=function(U,m,R,D){if(void 0===m)D="utf8",R=this.length,m=0;else if(void 0===R&&"string"==typeof m)D=m,R=this.length,m=0;else{if(!isFinite(m))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");m>>>=0,isFinite(R)?(R>>>=0,void 0===D&&(D="utf8")):(D=R,R=void 0)}var te=this.length-m;if((void 0===R||R>te)&&(R=te),U.length>0&&(R<0||m<0)||m>this.length)throw new RangeError("Attempt to write outside buffer bounds");D||(D="utf8");for(var pe=!1;;)switch(D){case"hex":return d(this,U,m,R);case"utf8":case"utf-8":return O(this,U,m,R);case"ascii":case"latin1":case"binary":return v(this,U,m,R);case"base64":return M(this,U,m,R);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return W(this,U,m,R);default:if(pe)throw new TypeError("Unknown encoding: "+D);D=(""+D).toLowerCase(),pe=!0}},e.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var ue=4096;function X(ne,U,m){var R="";m=Math.min(ne.length,m);for(var D=U;D<m;++D)R+=String.fromCharCode(127&ne[D]);return R}function he(ne,U,m){var R="";m=Math.min(ne.length,m);for(var D=U;D<m;++D)R+=String.fromCharCode(ne[D]);return R}function ie(ne,U,m){var R=ne.length;(!U||U<0)&&(U=0),(!m||m<0||m>R)&&(m=R);for(var D="",te=U;te<m;++te)D+=ke[ne[te]];return D}function K(ne,U,m){for(var R=ne.slice(U,m),D="",te=0;te<R.length-1;te+=2)D+=String.fromCharCode(R[te]+256*R[te+1]);return D}function G(ne,U,m){if(ne%1!=0||ne<0)throw new RangeError("offset is not uint");if(ne+U>m)throw new RangeError("Trying to access beyond buffer length")}function re(ne,U,m,R,D,te){if(!e.isBuffer(ne))throw new TypeError('"buffer" argument must be a Buffer instance');if(U>D||U<te)throw new RangeError('"value" argument is out of bounds');if(m+R>ne.length)throw new RangeError("Index out of range")}function Y(ne,U,m,R,D,te){if(m+R>ne.length)throw new RangeError("Index out of range");if(m<0)throw new RangeError("Index out of range")}function k(ne,U,m,R,D){return U=+U,m>>>=0,D||Y(ne,0,m,4),p.write(ne,U,m,R,23,4),m+4}function C(ne,U,m,R,D){return U=+U,m>>>=0,D||Y(ne,0,m,8),p.write(ne,U,m,R,52,8),m+8}e.prototype.slice=function(U,m){var R=this.length;(U=~~U)<0?(U+=R)<0&&(U=0):U>R&&(U=R),(m=void 0===m?R:~~m)<0?(m+=R)<0&&(m=0):m>R&&(m=R),m<U&&(m=U);var D=this.subarray(U,m);return Object.setPrototypeOf(D,e.prototype),D},e.prototype.readUintLE=e.prototype.readUIntLE=function(U,m,R){U>>>=0,m>>>=0,R||G(U,m,this.length);for(var D=this[U],te=1,pe=0;++pe<m&&(te*=256);)D+=this[U+pe]*te;return D},e.prototype.readUintBE=e.prototype.readUIntBE=function(U,m,R){U>>>=0,m>>>=0,R||G(U,m,this.length);for(var D=this[U+--m],te=1;m>0&&(te*=256);)D+=this[U+--m]*te;return D},e.prototype.readUint8=e.prototype.readUInt8=function(U,m){return U>>>=0,m||G(U,1,this.length),this[U]},e.prototype.readUint16LE=e.prototype.readUInt16LE=function(U,m){return U>>>=0,m||G(U,2,this.length),this[U]|this[U+1]<<8},e.prototype.readUint16BE=e.prototype.readUInt16BE=function(U,m){return U>>>=0,m||G(U,2,this.length),this[U]<<8|this[U+1]},e.prototype.readUint32LE=e.prototype.readUInt32LE=function(U,m){return U>>>=0,m||G(U,4,this.length),(this[U]|this[U+1]<<8|this[U+2]<<16)+16777216*this[U+3]},e.prototype.readUint32BE=e.prototype.readUInt32BE=function(U,m){return U>>>=0,m||G(U,4,this.length),16777216*this[U]+(this[U+1]<<16|this[U+2]<<8|this[U+3])},e.prototype.readIntLE=function(U,m,R){U>>>=0,m>>>=0,R||G(U,m,this.length);for(var D=this[U],te=1,pe=0;++pe<m&&(te*=256);)D+=this[U+pe]*te;return D>=(te*=128)&&(D-=Math.pow(2,8*m)),D},e.prototype.readIntBE=function(U,m,R){U>>>=0,m>>>=0,R||G(U,m,this.length);for(var D=m,te=1,pe=this[U+--D];D>0&&(te*=256);)pe+=this[U+--D]*te;return pe>=(te*=128)&&(pe-=Math.pow(2,8*m)),pe},e.prototype.readInt8=function(U,m){return U>>>=0,m||G(U,1,this.length),128&this[U]?-1*(255-this[U]+1):this[U]},e.prototype.readInt16LE=function(U,m){U>>>=0,m||G(U,2,this.length);var R=this[U]|this[U+1]<<8;return 32768&R?4294901760|R:R},e.prototype.readInt16BE=function(U,m){U>>>=0,m||G(U,2,this.length);var R=this[U+1]|this[U]<<8;return 32768&R?4294901760|R:R},e.prototype.readInt32LE=function(U,m){return U>>>=0,m||G(U,4,this.length),this[U]|this[U+1]<<8|this[U+2]<<16|this[U+3]<<24},e.prototype.readInt32BE=function(U,m){return U>>>=0,m||G(U,4,this.length),this[U]<<24|this[U+1]<<16|this[U+2]<<8|this[U+3]},e.prototype.readFloatLE=function(U,m){return U>>>=0,m||G(U,4,this.length),p.read(this,U,!0,23,4)},e.prototype.readFloatBE=function(U,m){return U>>>=0,m||G(U,4,this.length),p.read(this,U,!1,23,4)},e.prototype.readDoubleLE=function(U,m){return U>>>=0,m||G(U,8,this.length),p.read(this,U,!0,52,8)},e.prototype.readDoubleBE=function(U,m){return U>>>=0,m||G(U,8,this.length),p.read(this,U,!1,52,8)},e.prototype.writeUintLE=e.prototype.writeUIntLE=function(U,m,R,D){U=+U,m>>>=0,R>>>=0,D||re(this,U,m,R,Math.pow(2,8*R)-1,0);var pe=1,xe=0;for(this[m]=255&U;++xe<R&&(pe*=256);)this[m+xe]=U/pe&255;return m+R},e.prototype.writeUintBE=e.prototype.writeUIntBE=function(U,m,R,D){U=+U,m>>>=0,R>>>=0,D||re(this,U,m,R,Math.pow(2,8*R)-1,0);var pe=R-1,xe=1;for(this[m+pe]=255&U;--pe>=0&&(xe*=256);)this[m+pe]=U/xe&255;return m+R},e.prototype.writeUint8=e.prototype.writeUInt8=function(U,m,R){return U=+U,m>>>=0,R||re(this,U,m,1,255,0),this[m]=255&U,m+1},e.prototype.writeUint16LE=e.prototype.writeUInt16LE=function(U,m,R){return U=+U,m>>>=0,R||re(this,U,m,2,65535,0),this[m]=255&U,this[m+1]=U>>>8,m+2},e.prototype.writeUint16BE=e.prototype.writeUInt16BE=function(U,m,R){return U=+U,m>>>=0,R||re(this,U,m,2,65535,0),this[m]=U>>>8,this[m+1]=255&U,m+2},e.prototype.writeUint32LE=e.prototype.writeUInt32LE=function(U,m,R){return U=+U,m>>>=0,R||re(this,U,m,4,4294967295,0),this[m+3]=U>>>24,this[m+2]=U>>>16,this[m+1]=U>>>8,this[m]=255&U,m+4},e.prototype.writeUint32BE=e.prototype.writeUInt32BE=function(U,m,R){return U=+U,m>>>=0,R||re(this,U,m,4,4294967295,0),this[m]=U>>>24,this[m+1]=U>>>16,this[m+2]=U>>>8,this[m+3]=255&U,m+4},e.prototype.writeIntLE=function(U,m,R,D){if(U=+U,m>>>=0,!D){var te=Math.pow(2,8*R-1);re(this,U,m,R,te-1,-te)}var pe=0,xe=1,Ce=0;for(this[m]=255&U;++pe<R&&(xe*=256);)U<0&&0===Ce&&0!==this[m+pe-1]&&(Ce=1),this[m+pe]=(U/xe>>0)-Ce&255;return m+R},e.prototype.writeIntBE=function(U,m,R,D){if(U=+U,m>>>=0,!D){var te=Math.pow(2,8*R-1);re(this,U,m,R,te-1,-te)}var pe=R-1,xe=1,Ce=0;for(this[m+pe]=255&U;--pe>=0&&(xe*=256);)U<0&&0===Ce&&0!==this[m+pe+1]&&(Ce=1),this[m+pe]=(U/xe>>0)-Ce&255;return m+R},e.prototype.writeInt8=function(U,m,R){return U=+U,m>>>=0,R||re(this,U,m,1,127,-128),U<0&&(U=255+U+1),this[m]=255&U,m+1},e.prototype.writeInt16LE=function(U,m,R){return U=+U,m>>>=0,R||re(this,U,m,2,32767,-32768),this[m]=255&U,this[m+1]=U>>>8,m+2},e.prototype.writeInt16BE=function(U,m,R){return U=+U,m>>>=0,R||re(this,U,m,2,32767,-32768),this[m]=U>>>8,this[m+1]=255&U,m+2},e.prototype.writeInt32LE=function(U,m,R){return U=+U,m>>>=0,R||re(this,U,m,4,2147483647,-2147483648),this[m]=255&U,this[m+1]=U>>>8,this[m+2]=U>>>16,this[m+3]=U>>>24,m+4},e.prototype.writeInt32BE=function(U,m,R){return U=+U,m>>>=0,R||re(this,U,m,4,2147483647,-2147483648),U<0&&(U=4294967295+U+1),this[m]=U>>>24,this[m+1]=U>>>16,this[m+2]=U>>>8,this[m+3]=255&U,m+4},e.prototype.writeFloatLE=function(U,m,R){return k(this,U,m,!0,R)},e.prototype.writeFloatBE=function(U,m,R){return k(this,U,m,!1,R)},e.prototype.writeDoubleLE=function(U,m,R){return C(this,U,m,!0,R)},e.prototype.writeDoubleBE=function(U,m,R){return C(this,U,m,!1,R)},e.prototype.copy=function(U,m,R,D){if(!e.isBuffer(U))throw new TypeError("argument should be a Buffer");if(R||(R=0),!D&&0!==D&&(D=this.length),m>=U.length&&(m=U.length),m||(m=0),D>0&&D<R&&(D=R),D===R||0===U.length||0===this.length)return 0;if(m<0)throw new RangeError("targetStart out of bounds");if(R<0||R>=this.length)throw new RangeError("Index out of range");if(D<0)throw new RangeError("sourceEnd out of bounds");D>this.length&&(D=this.length),U.length-m<D-R&&(D=U.length-m+R);var te=D-R;return this===U&&"function"==typeof Uint8Array.prototype.copyWithin?this.copyWithin(m,R,D):Uint8Array.prototype.set.call(U,this.subarray(R,D),m),te},e.prototype.fill=function(U,m,R,D){if("string"==typeof U){if("string"==typeof m?(D=m,m=0,R=this.length):"string"==typeof R&&(D=R,R=this.length),void 0!==D&&"string"!=typeof D)throw new TypeError("encoding must be a string");if("string"==typeof D&&!e.isEncoding(D))throw new TypeError("Unknown encoding: "+D);if(1===U.length){var te=U.charCodeAt(0);("utf8"===D&&te<128||"latin1"===D)&&(U=te)}}else"number"==typeof U?U&=255:"boolean"==typeof U&&(U=Number(U));if(m<0||this.length<m||this.length<R)throw new RangeError("Out of range index");if(R<=m)return this;var pe;if(m>>>=0,R=void 0===R?this.length:R>>>0,U||(U=0),"number"==typeof U)for(pe=m;pe<R;++pe)this[pe]=U;else{var xe=e.isBuffer(U)?U:e.from(U,D),Ce=xe.length;if(0===Ce)throw new TypeError('The value "'+U+'" is invalid for argument "value"');for(pe=0;pe<R-m;++pe)this[pe+m]=xe[pe%Ce]}return this};var N=/[^+/0-9A-Za-z-_]/g;function Z(ne,U){U=U||1/0;for(var m,R=ne.length,D=null,te=[],pe=0;pe<R;++pe){if((m=ne.charCodeAt(pe))>55295&&m<57344){if(!D){if(m>56319){(U-=3)>-1&&te.push(239,191,189);continue}if(pe+1===R){(U-=3)>-1&&te.push(239,191,189);continue}D=m;continue}if(m<56320){(U-=3)>-1&&te.push(239,191,189),D=m;continue}m=65536+(D-55296<<10|m-56320)}else D&&(U-=3)>-1&&te.push(239,191,189);if(D=null,m<128){if((U-=1)<0)break;te.push(m)}else if(m<2048){if((U-=2)<0)break;te.push(m>>6|192,63&m|128)}else if(m<65536){if((U-=3)<0)break;te.push(m>>12|224,m>>6&63|128,63&m|128)}else{if(!(m<1114112))throw new Error("Invalid code point");if((U-=4)<0)break;te.push(m>>18|240,m>>12&63|128,m>>6&63|128,63&m|128)}}return te}function Se(ne){return w.toByteArray(function q(ne){if((ne=(ne=ne.split("=")[0]).trim().replace(N,"")).length<2)return"";for(;ne.length%4!=0;)ne+="=";return ne}(ne))}function be(ne,U,m,R){for(var D=0;D<R&&!(D+m>=U.length||D>=ne.length);++D)U[D+m]=ne[D];return D}function Pe(ne,U){return ne instanceof U||null!=ne&&null!=ne.constructor&&null!=ne.constructor.name&&ne.constructor.name===U.name}function De(ne){return ne!=ne}var ke=function(){for(var ne="0123456789abcdef",U=new Array(256),m=0;m<16;++m)for(var R=16*m,D=0;D<16;++D)U[R+D]=ne[m]+ne[D];return U}()},73157:(ae,I,l)=>{"use strict";var t=l(82422),w=l(63743),p=w(t("String.prototype.indexOf"));ae.exports=function(n,i){var s=t(n,!!i);return"function"==typeof s&&p(n,".prototype.")>-1?w(s):s}},63743:(ae,I,l)=>{"use strict";var t=l(47902),w=l(82422),p=w("%Function.prototype.apply%"),r=w("%Function.prototype.call%"),n=w("%Reflect.apply%",!0)||t.call(r,p),i=w("%Object.getOwnPropertyDescriptor%",!0),s=w("%Object.defineProperty%",!0),e=w("%Math.max%");if(s)try{s({},"a",{value:1})}catch{s=null}ae.exports=function(c){var y=n(t,r,arguments);return i&&s&&i(y,"length").configurable&&s(y,"length",{value:1+e(0,c.length-(arguments.length-1))}),y};var a=function(){return n(t,p,arguments)};s?s(ae.exports,"apply",{value:a}):ae.exports.apply=a},29278:ae=>{"use strict";ae.exports=function(I,l){l||(l={}),"function"==typeof l&&(l={cmp:l});var r,t="boolean"==typeof l.cycles&&l.cycles,w=l.cmp&&(r=l.cmp,function(n){return function(i,s){return r({key:i,value:n[i]},{key:s,value:n[s]})}}),p=[];return function r(n){if(n&&n.toJSON&&"function"==typeof n.toJSON&&(n=n.toJSON()),void 0!==n){if("number"==typeof n)return isFinite(n)?""+n:"null";if("object"!=typeof n)return JSON.stringify(n);var i,s;if(Array.isArray(n)){for(s="[",i=0;i<n.length;i++)i&&(s+=","),s+=r(n[i])||"null";return s+"]"}if(null===n)return"null";if(-1!==p.indexOf(n)){if(t)return JSON.stringify("__cycle__");throw new TypeError("Converting circular structure to JSON")}var e=p.push(n)-1,a=Object.keys(n).sort(w&&w(n));for(s="",i=0;i<a.length;i++){var u=a[i],c=r(n[u]);c&&(s&&(s+=","),s+=JSON.stringify(u)+":"+c)}return p.splice(e,1),"{"+s+"}"}}(I)}},39234:(ae,I,l)=>{"use strict";var t=l(59712),w=Object.prototype.toString,p=Object.prototype.hasOwnProperty;ae.exports=function(a,u,c){if(!t(u))throw new TypeError("iterator must be a function");var y;arguments.length>=3&&(y=c),"[object Array]"===w.call(a)?function(a,u,c){for(var y=0,f=a.length;y<f;y++)p.call(a,y)&&(null==c?u(a[y],y,a):u.call(c,a[y],y,a))}(a,u,y):"string"==typeof a?function(a,u,c){for(var y=0,f=a.length;y<f;y++)null==c?u(a.charAt(y),y,a):u.call(c,a.charAt(y),y,a)}(a,u,y):function(a,u,c){for(var y in a)p.call(a,y)&&(null==c?u(a[y],y,a):u.call(c,a[y],y,a))}(a,u,y)}},59712:ae=>{"use strict";var t,w,I=Function.prototype.toString,l="object"==typeof Reflect&&null!==Reflect&&Reflect.apply;if("function"==typeof l&&"function"==typeof Object.defineProperty)try{t=Object.defineProperty({},"length",{get:function(){throw w}}),w={},l(function(){throw 42},null,t)}catch(c){c!==w&&(l=null)}else l=null;var p=/^\s*class\b/,r=function(y){try{var f=I.call(y);return p.test(f)}catch{return!1}},i=Object.prototype.toString,a="function"==typeof Symbol&&!!Symbol.toStringTag,u="object"==typeof document&&typeof document.all>"u"&&void 0!==document.all?document.all:{};ae.exports=l?function(y){if(y===u)return!0;if(!y||"function"!=typeof y&&"object"!=typeof y)return!1;if("function"==typeof y&&!y.prototype)return!0;try{l(y,null,t)}catch(f){if(f!==w)return!1}return!r(y)}:function(y){if(y===u)return!0;if(!y||"function"!=typeof y&&"object"!=typeof y)return!1;if("function"==typeof y&&!y.prototype)return!0;if(a)return function(y){try{return!r(y)&&(I.call(y),!0)}catch{return!1}}(y);if(r(y))return!1;var f=i.call(y);return"[object Function]"===f||"[object GeneratorFunction]"===f}},55150:ae=>{"use strict";var l=Array.prototype.slice,t=Object.prototype.toString;ae.exports=function(r){var n=this;if("function"!=typeof n||"[object Function]"!==t.call(n))throw new TypeError("Function.prototype.bind called on incompatible "+n);for(var s,i=l.call(arguments,1),a=Math.max(0,n.length-i.length),u=[],c=0;c<a;c++)u.push("$"+c);if(s=Function("binder","return function ("+u.join(",")+"){ return binder.apply(this,arguments); }")(function(){if(this instanceof s){var f=n.apply(this,i.concat(l.call(arguments)));return Object(f)===f?f:this}return n.apply(r,i.concat(l.call(arguments)))}),n.prototype){var y=function(){};y.prototype=n.prototype,s.prototype=new y,y.prototype=null}return s}},47902:(ae,I,l)=>{"use strict";var t=l(55150);ae.exports=Function.prototype.bind||t},82422:(ae,I,l)=>{"use strict";var t,w=SyntaxError,p=Function,r=TypeError,n=function(v){try{return p('"use strict"; return ('+v+").constructor;")()}catch{}},i=Object.getOwnPropertyDescriptor;if(i)try{i({},"")}catch{i=null}var s=function(){throw new r},e=i?function(){try{return s}catch{try{return i(arguments,"callee").get}catch{return s}}}():s,a=l(98517)(),u=Object.getPrototypeOf||function(v){return v.__proto__},c={},y=typeof Uint8Array>"u"?t:u(Uint8Array),f={"%AggregateError%":typeof AggregateError>"u"?t:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?t:ArrayBuffer,"%ArrayIteratorPrototype%":a?u([][Symbol.iterator]()):t,"%AsyncFromSyncIteratorPrototype%":t,"%AsyncFunction%":c,"%AsyncGenerator%":c,"%AsyncGeneratorFunction%":c,"%AsyncIteratorPrototype%":c,"%Atomics%":typeof Atomics>"u"?t:Atomics,"%BigInt%":typeof BigInt>"u"?t:BigInt,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?t:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array>"u"?t:Float32Array,"%Float64Array%":typeof Float64Array>"u"?t:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?t:FinalizationRegistry,"%Function%":p,"%GeneratorFunction%":c,"%Int8Array%":typeof Int8Array>"u"?t:Int8Array,"%Int16Array%":typeof Int16Array>"u"?t:Int16Array,"%Int32Array%":typeof Int32Array>"u"?t:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":a?u(u([][Symbol.iterator]())):t,"%JSON%":"object"==typeof JSON?JSON:t,"%Map%":typeof Map>"u"?t:Map,"%MapIteratorPrototype%":typeof Map>"u"||!a?t:u((new Map)[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?t:Promise,"%Proxy%":typeof Proxy>"u"?t:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect>"u"?t:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?t:Set,"%SetIteratorPrototype%":typeof Set>"u"||!a?t:u((new Set)[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?t:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":a?u(""[Symbol.iterator]()):t,"%Symbol%":a?Symbol:t,"%SyntaxError%":w,"%ThrowTypeError%":e,"%TypedArray%":y,"%TypeError%":r,"%Uint8Array%":typeof Uint8Array>"u"?t:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?t:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?t:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?t:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap>"u"?t:WeakMap,"%WeakRef%":typeof WeakRef>"u"?t:WeakRef,"%WeakSet%":typeof WeakSet>"u"?t:WeakSet},T=function v(M){var W;if("%AsyncFunction%"===M)W=n("async function () {}");else if("%GeneratorFunction%"===M)W=n("function* () {}");else if("%AsyncGeneratorFunction%"===M)W=n("async function* () {}");else if("%AsyncGenerator%"===M){var V=v("%AsyncGeneratorFunction%");V&&(W=V.prototype)}else if("%AsyncIteratorPrototype%"===M){var J=v("%AsyncGenerator%");J&&(W=u(J.prototype))}return f[M]=W,W},x={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},_=l(47902),g=l(32600),A=_.call(Function.call,Array.prototype.concat),L=_.call(Function.apply,Array.prototype.splice),j=_.call(Function.call,String.prototype.replace),Q=_.call(Function.call,String.prototype.slice),F=_.call(Function.call,RegExp.prototype.exec),b=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,P=/\\(\\)?/g,O=function(M,W){var J,V=M;if(g(x,V)&&(V="%"+(J=x[V])[0]+"%"),g(f,V)){var ue=f[V];if(ue===c&&(ue=T(V)),typeof ue>"u"&&!W)throw new r("intrinsic "+M+" exists, but is not available. Please file an issue!");return{alias:J,name:V,value:ue}}throw new w("intrinsic "+M+" does not exist!")};ae.exports=function(M,W){if("string"!=typeof M||0===M.length)throw new r("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof W)throw new r('"allowMissing" argument must be a boolean');if(null===F(/^%?[^%]*%?$/g,M))throw new w("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var V=function(M){var W=Q(M,0,1),V=Q(M,-1);if("%"===W&&"%"!==V)throw new w("invalid intrinsic syntax, expected closing `%`");if("%"===V&&"%"!==W)throw new w("invalid intrinsic syntax, expected opening `%`");var J=[];return j(M,b,function(ue,me,X,he){J[J.length]=X?j(he,P,"$1"):me||ue}),J}(M),J=V.length>0?V[0]:"",ue=O("%"+J+"%",W),me=ue.name,X=ue.value,he=!1,ie=ue.alias;ie&&(J=ie[0],L(V,A([0,1],ie)));for(var K=1,G=!0;K<V.length;K+=1){var re=V[K],Y=Q(re,0,1),k=Q(re,-1);if(('"'===Y||"'"===Y||"`"===Y||'"'===k||"'"===k||"`"===k)&&Y!==k)throw new w("property names with quotes must have matching quotes");if(("constructor"===re||!G)&&(he=!0),g(f,me="%"+(J+="."+re)+"%"))X=f[me];else if(null!=X){if(!(re in X)){if(!W)throw new r("base intrinsic for "+M+" exists, but the property is not available.");return}if(i&&K+1>=V.length){var C=i(X,re);X=(G=!!C)&&"get"in C&&!("originalValue"in C.get)?C.get:X[re]}else G=g(X,re),X=X[re];G&&!he&&(f[me]=X)}}return X}},29248:(ae,I,l)=>{"use strict";l.d(I,{HW:()=>f,J9:()=>_,Ps:()=>y,ZP:()=>A,_t:()=>T,wO:()=>x});var t=l(30512),w=l(64698),p=new Map,r=new Map,n=!0,i=!1;function s(L){return L.replace(/[\s,]+/g," ").trim()}function c(L){var j=s(L);if(!p.has(j)){var Q=(0,w.Qc)(L,{experimentalFragmentVariables:i,allowLegacyFragmentVariables:i});if(!Q||"Document"!==Q.kind)throw new Error("Not a valid GraphQL document.");p.set(j,function u(L){var j=new Set(L.definitions);j.forEach(function(F){F.loc&&delete F.loc,Object.keys(F).forEach(function(b){var P=F[b];P&&"object"==typeof P&&j.add(P)})});var Q=L.loc;return Q&&(delete Q.startToken,delete Q.endToken),L}(function a(L){var j=new Set,Q=[];return L.definitions.forEach(function(F){if("FragmentDefinition"===F.kind){var b=F.name.value,P=function e(L){return s(L.source.body.substring(L.start,L.end))}(F.loc),d=r.get(b);d&&!d.has(P)?n&&console.warn("Warning: fragment with name "+b+" already exists.\ngraphql-tag enforces all fragment names across your application to be unique; read more about\nthis in the docs: http://dev.apollodata.com/core/fragments.html#unique-names"):d||r.set(b,d=new Set),d.add(P),j.has(P)||(j.add(P),Q.push(F))}else Q.push(F)}),(0,t.pi)((0,t.pi)({},L),{definitions:Q})}(Q)))}return p.get(j)}function y(L){for(var j=[],Q=1;Q<arguments.length;Q++)j[Q-1]=arguments[Q];"string"==typeof L&&(L=[L]);var F=L[0];return j.forEach(function(b,P){F+=b&&"Document"===b.kind?b.loc.source.body:b,F+=L[P+1]}),c(F)}function f(){p.clear(),r.clear()}function T(){n=!1}function x(){i=!0}function _(){i=!1}var L,g_gql=y,g_resetCaches=f,g_disableFragmentWarnings=T,g_enableExperimentalFragmentVariables=x,g_disableExperimentalFragmentVariables=_;(L=y||(y={})).gql=g_gql,L.resetCaches=g_resetCaches,L.disableFragmentWarnings=g_disableFragmentWarnings,L.enableExperimentalFragmentVariables=g_enableExperimentalFragmentVariables,L.disableExperimentalFragmentVariables=g_disableExperimentalFragmentVariables,y.default=y;const A=y},98517:(ae,I,l)=>{"use strict";var t=typeof Symbol<"u"&&Symbol,w=l(74169);ae.exports=function(){return"function"==typeof t&&"function"==typeof Symbol&&"symbol"==typeof t("foo")&&"symbol"==typeof Symbol("bar")&&w()}},74169:ae=>{"use strict";ae.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var l={},t=Symbol("test"),w=Object(t);if("string"==typeof t||"[object Symbol]"!==Object.prototype.toString.call(t)||"[object Symbol]"!==Object.prototype.toString.call(w))return!1;for(t in l[t]=42,l)return!1;if("function"==typeof Object.keys&&0!==Object.keys(l).length||"function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(l).length)return!1;var r=Object.getOwnPropertySymbols(l);if(1!==r.length||r[0]!==t||!Object.prototype.propertyIsEnumerable.call(l,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var n=Object.getOwnPropertyDescriptor(l,t);if(42!==n.value||!0!==n.enumerable)return!1}return!0}},47724:(ae,I,l)=>{"use strict";var t=l(74169);ae.exports=function(){return t()&&!!Symbol.toStringTag}},32600:(ae,I,l)=>{"use strict";var t=l(47902);ae.exports=t.call(Function.call,Object.prototype.hasOwnProperty)},89255:(ae,I)=>{I.read=function(l,t,w,p,r){var n,i,s=8*r-p-1,e=(1<<s)-1,a=e>>1,u=-7,c=w?r-1:0,y=w?-1:1,f=l[t+c];for(c+=y,n=f&(1<<-u)-1,f>>=-u,u+=s;u>0;n=256*n+l[t+c],c+=y,u-=8);for(i=n&(1<<-u)-1,n>>=-u,u+=p;u>0;i=256*i+l[t+c],c+=y,u-=8);if(0===n)n=1-a;else{if(n===e)return i?NaN:1/0*(f?-1:1);i+=Math.pow(2,p),n-=a}return(f?-1:1)*i*Math.pow(2,n-p)},I.write=function(l,t,w,p,r,n){var i,s,e,a=8*n-r-1,u=(1<<a)-1,c=u>>1,y=23===r?Math.pow(2,-24)-Math.pow(2,-77):0,f=p?0:n-1,T=p?1:-1,x=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,i=u):(i=Math.floor(Math.log(t)/Math.LN2),t*(e=Math.pow(2,-i))<1&&(i--,e*=2),(t+=i+c>=1?y/e:y*Math.pow(2,1-c))*e>=2&&(i++,e/=2),i+c>=u?(s=0,i=u):i+c>=1?(s=(t*e-1)*Math.pow(2,r),i+=c):(s=t*Math.pow(2,c-1)*Math.pow(2,r),i=0));r>=8;l[w+f]=255&s,f+=T,s/=256,r-=8);for(i=i<<r|s,a+=r;a>0;l[w+f]=255&i,f+=T,i/=256,a-=8);l[w+f-T]|=128*x}},3011:ae=>{ae.exports="function"==typeof Object.create?function(l,t){t&&(l.super_=t,l.prototype=Object.create(t.prototype,{constructor:{value:l,enumerable:!1,writable:!0,configurable:!0}}))}:function(l,t){if(t){l.super_=t;var w=function(){};w.prototype=t.prototype,l.prototype=new w,l.prototype.constructor=l}}},58344:ae=>{"use strict";var I="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag,l=Object.prototype.toString,t=function(n){return!(I&&n&&"object"==typeof n&&Symbol.toStringTag in n)&&"[object Arguments]"===l.call(n)},w=function(n){return!!t(n)||null!==n&&"object"==typeof n&&"number"==typeof n.length&&n.length>=0&&"[object Array]"!==l.call(n)&&"[object Function]"===l.call(n.callee)},p=function(){return t(arguments)}();t.isLegacyArguments=w,ae.exports=p?t:w},41186:(ae,I,l)=>{"use strict";var s,t=Object.prototype.toString,w=Function.prototype.toString,p=/^\s*(?:function)?\*/,r=l(47724)(),n=Object.getPrototypeOf;ae.exports=function(a){if("function"!=typeof a)return!1;if(p.test(w.call(a)))return!0;if(!r)return"[object GeneratorFunction]"===t.call(a);if(!n)return!1;if(typeof s>"u"){var c=function(){if(!r)return!1;try{return Function("return function*() {}")()}catch{}}();s=!!c&&n(c)}return n(a)===s}},53662:(ae,I,l)=>{"use strict";var t=l(39234),w=l(73763),p=l(73157),r=p("Object.prototype.toString"),n=l(47724)(),i=typeof globalThis>"u"?global:globalThis,s=w(),e=p("Array.prototype.indexOf",!0)||function(x,_){for(var g=0;g<x.length;g+=1)if(x[g]===_)return g;return-1},a=p("String.prototype.slice"),u={},c=l(10475),y=Object.getPrototypeOf;n&&c&&y&&t(s,function(T){var x=new i[T];if(Symbol.toStringTag in x){var _=y(x),g=c(_,Symbol.toStringTag);if(!g){var A=y(_);g=c(A,Symbol.toStringTag)}u[T]=g.get}}),ae.exports=function(x){if(!x||"object"!=typeof x)return!1;if(!n||!(Symbol.toStringTag in x)){var _=a(r(x),8,-1);return e(s,_)>-1}return!!c&&function(x){var _=!1;return t(u,function(g,A){if(!_)try{_=g.call(x)===A}catch{}}),_}(x)}},35169:ae=>{var I={}.toString;ae.exports=Array.isArray||function(l){return"[object Array]"==I.call(l)}},36151:(ae,I)=>{!function(l){"use strict";function t(ee){return null!==ee&&"[object Array]"===Object.prototype.toString.call(ee)}function w(ee){return null!==ee&&"[object Object]"===Object.prototype.toString.call(ee)}function p(ee,le){if(ee===le)return!0;if(Object.prototype.toString.call(ee)!==Object.prototype.toString.call(le))return!1;if(!0===t(ee)){if(ee.length!==le.length)return!1;for(var Oe=0;Oe<ee.length;Oe++)if(!1===p(ee[Oe],le[Oe]))return!1;return!0}if(!0===w(ee)){var Re={};for(var Ue in ee)if(hasOwnProperty.call(ee,Ue)){if(!1===p(ee[Ue],le[Ue]))return!1;Re[Ue]=!0}for(var qe in le)if(hasOwnProperty.call(le,qe)&&!0!==Re[qe])return!1;return!0}return!1}function r(ee){if(""===ee||!1===ee||null===ee)return!0;if(t(ee)&&0===ee.length)return!0;if(w(ee)){for(var le in ee)if(ee.hasOwnProperty(le))return!1;return!0}return!1}var s;s="function"==typeof String.prototype.trimLeft?function(ee){return ee.trimLeft()}:function(ee){return ee.match(/^\s*(.*)/)[1]};var e=0,u=2,A={0:"number",1:"any",2:"string",3:"array",4:"object",5:"boolean",6:"expression",7:"null",8:"Array<number>",9:"Array<string>"},L="EOF",j="UnquotedIdentifier",Q="QuotedIdentifier",F="Rbracket",b="Rparen",P="Comma",d="Colon",O="Rbrace",v="Number",M="Current",W="Expref",V="Pipe",J="Or",X="GT",ie="GTE",K="LTE",G="NE",re="Flatten",Y="Star",k="Filter",C="Dot",N="Not",q="Lbrace",Z="Lbracket",fe="Lparen",ve="Literal",Se={".":C,"*":Y,",":P,":":d,"{":q,"}":O,"]":F,"(":fe,")":b,"@":M},be={"<":!0,">":!0,"=":!0,"!":!0},Pe={" ":!0,"\t":!0,"\n":!0};function De(ee){return ee>="a"&&ee<="z"||ee>="A"&&ee<="Z"||"_"===ee}function ke(ee){return ee>="0"&&ee<="9"||"-"===ee}function ne(ee){return ee>="a"&&ee<="z"||ee>="A"&&ee<="Z"||ee>="0"&&ee<="9"||"_"===ee}function U(){}U.prototype={tokenize:function(ee){var de,Oe,Re,le=[];for(this._current=0;this._current<ee.length;)if(De(ee[this._current]))de=this._current,Oe=this._consumeUnquotedIdentifier(ee),le.push({type:j,value:Oe,start:de});else if(void 0!==Se[ee[this._current]])le.push({type:Se[ee[this._current]],value:ee[this._current],start:this._current}),this._current++;else if(ke(ee[this._current]))Re=this._consumeNumber(ee),le.push(Re);else if("["===ee[this._current])Re=this._consumeLBracket(ee),le.push(Re);else if('"'===ee[this._current])de=this._current,Oe=this._consumeQuotedIdentifier(ee),le.push({type:Q,value:Oe,start:de});else if("'"===ee[this._current])de=this._current,Oe=this._consumeRawStringLiteral(ee),le.push({type:ve,value:Oe,start:de});else if("`"===ee[this._current]){de=this._current;var Ue=this._consumeLiteral(ee);le.push({type:ve,value:Ue,start:de})}else if(void 0!==be[ee[this._current]])le.push(this._consumeOperator(ee));else if(void 0!==Pe[ee[this._current]])this._current++;else if("&"===ee[this._current])de=this._current,this._current++,"&"===ee[this._current]?(this._current++,le.push({type:"And",value:"&&",start:de})):le.push({type:W,value:"&",start:de});else{if("|"!==ee[this._current]){var qe=new Error("Unknown character:"+ee[this._current]);throw qe.name="LexerError",qe}de=this._current,this._current++,"|"===ee[this._current]?(this._current++,le.push({type:J,value:"||",start:de})):le.push({type:V,value:"|",start:de})}return le},_consumeUnquotedIdentifier:function(ee){var le=this._current;for(this._current++;this._current<ee.length&&ne(ee[this._current]);)this._current++;return ee.slice(le,this._current)},_consumeQuotedIdentifier:function(ee){var le=this._current;this._current++;for(var de=ee.length;'"'!==ee[this._current]&&this._current<de;){var Oe=this._current;"\\"!==ee[Oe]||"\\"!==ee[Oe+1]&&'"'!==ee[Oe+1]?Oe++:Oe+=2,this._current=Oe}return this._current++,JSON.parse(ee.slice(le,this._current))},_consumeRawStringLiteral:function(ee){var le=this._current;this._current++;for(var de=ee.length;"'"!==ee[this._current]&&this._current<de;){var Oe=this._current;"\\"!==ee[Oe]||"\\"!==ee[Oe+1]&&"'"!==ee[Oe+1]?Oe++:Oe+=2,this._current=Oe}return this._current++,ee.slice(le+1,this._current-1).replace("\\'","'")},_consumeNumber:function(ee){var le=this._current;this._current++;for(var de=ee.length;ke(ee[this._current])&&this._current<de;)this._current++;var Oe=parseInt(ee.slice(le,this._current));return{type:v,value:Oe,start:le}},_consumeLBracket:function(ee){var le=this._current;return this._current++,"?"===ee[this._current]?(this._current++,{type:k,value:"[?",start:le}):"]"===ee[this._current]?(this._current++,{type:re,value:"[]",start:le}):{type:Z,value:"[",start:le}},_consumeOperator:function(ee){var le=this._current,de=ee[le];return this._current++,"!"===de?"="===ee[this._current]?(this._current++,{type:G,value:"!=",start:le}):{type:N,value:"!",start:le}:"<"===de?"="===ee[this._current]?(this._current++,{type:K,value:"<=",start:le}):{type:"LT",value:"<",start:le}:">"===de?"="===ee[this._current]?(this._current++,{type:ie,value:">=",start:le}):{type:X,value:">",start:le}:"="===de&&"="===ee[this._current]?(this._current++,{type:"EQ",value:"==",start:le}):void 0},_consumeLiteral:function(ee){this._current++;for(var Oe,le=this._current,de=ee.length;"`"!==ee[this._current]&&this._current<de;){var Re=this._current;"\\"!==ee[Re]||"\\"!==ee[Re+1]&&"`"!==ee[Re+1]?Re++:Re+=2,this._current=Re}var Ue=s(ee.slice(le,this._current));return Ue=Ue.replace("\\`","`"),Oe=this._looksLikeJSON(Ue)?JSON.parse(Ue):JSON.parse('"'+Ue+'"'),this._current++,Oe},_looksLikeJSON:function(ee){if(""===ee)return!1;if('[{"'.indexOf(ee[0])>=0)return!0;if(["true","false","null"].indexOf(ee)>=0)return!0;if(!("-0123456789".indexOf(ee[0])>=0))return!1;try{return JSON.parse(ee),!0}catch{return!1}}};var m={};function R(){}function D(ee){this.runtime=ee}function te(ee){this._interpreter=ee,this.functionTable={abs:{_func:this._functionAbs,_signature:[{types:[e]}]},avg:{_func:this._functionAvg,_signature:[{types:[8]}]},ceil:{_func:this._functionCeil,_signature:[{types:[e]}]},contains:{_func:this._functionContains,_signature:[{types:[u,3]},{types:[1]}]},ends_with:{_func:this._functionEndsWith,_signature:[{types:[u]},{types:[u]}]},floor:{_func:this._functionFloor,_signature:[{types:[e]}]},length:{_func:this._functionLength,_signature:[{types:[u,3,4]}]},map:{_func:this._functionMap,_signature:[{types:[6]},{types:[3]}]},max:{_func:this._functionMax,_signature:[{types:[8,9]}]},merge:{_func:this._functionMerge,_signature:[{types:[4],variadic:!0}]},max_by:{_func:this._functionMaxBy,_signature:[{types:[3]},{types:[6]}]},sum:{_func:this._functionSum,_signature:[{types:[8]}]},starts_with:{_func:this._functionStartsWith,_signature:[{types:[u]},{types:[u]}]},min:{_func:this._functionMin,_signature:[{types:[8,9]}]},min_by:{_func:this._functionMinBy,_signature:[{types:[3]},{types:[6]}]},type:{_func:this._functionType,_signature:[{types:[1]}]},keys:{_func:this._functionKeys,_signature:[{types:[4]}]},values:{_func:this._functionValues,_signature:[{types:[4]}]},sort:{_func:this._functionSort,_signature:[{types:[9,8]}]},sort_by:{_func:this._functionSortBy,_signature:[{types:[3]},{types:[6]}]},join:{_func:this._functionJoin,_signature:[{types:[u]},{types:[9]}]},reverse:{_func:this._functionReverse,_signature:[{types:[u,3]}]},to_array:{_func:this._functionToArray,_signature:[{types:[1]}]},to_string:{_func:this._functionToString,_signature:[{types:[1]}]},to_number:{_func:this._functionToNumber,_signature:[{types:[1]}]},not_null:{_func:this._functionNotNull,_signature:[{types:[1],variadic:!0}]}}}m[L]=0,m[j]=0,m[Q]=0,m[F]=0,m[b]=0,m[P]=0,m[O]=0,m[v]=0,m[M]=0,m[W]=0,m[V]=1,m[J]=2,m.And=3,m.EQ=5,m[X]=5,m.LT=5,m[ie]=5,m[K]=5,m[G]=5,m[re]=9,m[Y]=20,m[k]=21,m[C]=40,m[N]=45,m[q]=50,m[Z]=55,m[fe]=60,R.prototype={parse:function(ee){this._loadTokens(ee),this.index=0;var le=this.expression(0);if(this._lookahead(0)!==L){var de=this._lookaheadToken(0),Oe=new Error("Unexpected token type: "+de.type+", value: "+de.value);throw Oe.name="ParserError",Oe}return le},_loadTokens:function(ee){var de=(new U).tokenize(ee);de.push({type:L,value:"",start:ee.length}),this.tokens=de},expression:function(ee){var le=this._lookaheadToken(0);this._advance();for(var de=this.nud(le),Oe=this._lookahead(0);ee<m[Oe];)this._advance(),de=this.led(Oe,de),Oe=this._lookahead(0);return de},_lookahead:function(ee){return this.tokens[this.index+ee].type},_lookaheadToken:function(ee){return this.tokens[this.index+ee]},_advance:function(){this.index++},nud:function(ee){var de,Oe;switch(ee.type){case ve:return{type:"Literal",value:ee.value};case j:return{type:"Field",name:ee.value};case Q:var Re={type:"Field",name:ee.value};if(this._lookahead(0)===fe)throw new Error("Quoted identifier not allowed for function names.");return Re;case N:return{type:"NotExpression",children:[de=this.expression(m.Not)]};case Y:return de=null,{type:"ValueProjection",children:[{type:"Identity"},de=this._lookahead(0)===F?{type:"Identity"}:this._parseProjectionRHS(m.Star)]};case k:return this.led(ee.type,{type:"Identity"});case q:return this._parseMultiselectHash();case re:return{type:"Projection",children:[{type:re,children:[{type:"Identity"}]},de=this._parseProjectionRHS(m.Flatten)]};case Z:return this._lookahead(0)===v||this._lookahead(0)===d?(de=this._parseIndexExpression(),this._projectIfSlice({type:"Identity"},de)):this._lookahead(0)===Y&&this._lookahead(1)===F?(this._advance(),this._advance(),{type:"Projection",children:[{type:"Identity"},de=this._parseProjectionRHS(m.Star)]}):this._parseMultiselectList();case M:return{type:M};case W:return{type:"ExpressionReference",children:[Oe=this.expression(m.Expref)]};case fe:for(var Ue=[];this._lookahead(0)!==b;)this._lookahead(0)===M?(Oe={type:M},this._advance()):Oe=this.expression(0),Ue.push(Oe);return this._match(b),Ue[0];default:this._errorToken(ee)}},led:function(ee,le){var de;switch(ee){case C:var Oe=m.Dot;return this._lookahead(0)!==Y?{type:"Subexpression",children:[le,de=this._parseDotRHS(Oe)]}:(this._advance(),{type:"ValueProjection",children:[le,de=this._parseProjectionRHS(Oe)]});case V:return de=this.expression(m.Pipe),{type:V,children:[le,de]};case J:return{type:"OrExpression",children:[le,de=this.expression(m.Or)]};case"And":return{type:"AndExpression",children:[le,de=this.expression(m.And)]};case fe:for(var qe,Re=le.name,Ue=[];this._lookahead(0)!==b;)this._lookahead(0)===M?(qe={type:M},this._advance()):qe=this.expression(0),this._lookahead(0)===P&&this._match(P),Ue.push(qe);return this._match(b),{type:"Function",name:Re,children:Ue};case k:var nt=this.expression(0);return this._match(F),{type:"FilterProjection",children:[le,de=this._lookahead(0)===re?{type:"Identity"}:this._parseProjectionRHS(m.Filter),nt]};case re:return{type:"Projection",children:[{type:re,children:[le]},this._parseProjectionRHS(m.Flatten)]};case"EQ":case G:case X:case ie:case"LT":case K:return this._parseComparator(le,ee);case Z:var Ke=this._lookaheadToken(0);return Ke.type===v||Ke.type===d?(de=this._parseIndexExpression(),this._projectIfSlice(le,de)):(this._match(Y),this._match(F),{type:"Projection",children:[le,de=this._parseProjectionRHS(m.Star)]});default:this._errorToken(this._lookaheadToken(0))}},_match:function(ee){if(this._lookahead(0)!==ee){var le=this._lookaheadToken(0),de=new Error("Expected "+ee+", got: "+le.type);throw de.name="ParserError",de}this._advance()},_errorToken:function(ee){var le=new Error("Invalid token ("+ee.type+'): "'+ee.value+'"');throw le.name="ParserError",le},_parseIndexExpression:function(){if(this._lookahead(0)===d||this._lookahead(1)===d)return this._parseSliceExpression();var ee={type:"Index",value:this._lookaheadToken(0).value};return this._advance(),this._match(F),ee},_projectIfSlice:function(ee,le){var de={type:"IndexExpression",children:[ee,le]};return"Slice"===le.type?{type:"Projection",children:[de,this._parseProjectionRHS(m.Star)]}:de},_parseSliceExpression:function(){for(var ee=[null,null,null],le=0,de=this._lookahead(0);de!==F&&le<3;){if(de===d)le++,this._advance();else{if(de!==v){var Oe=this._lookahead(0),Re=new Error("Syntax error, unexpected token: "+Oe.value+"("+Oe.type+")");throw Re.name="Parsererror",Re}ee[le]=this._lookaheadToken(0).value,this._advance()}de=this._lookahead(0)}return this._match(F),{type:"Slice",children:ee}},_parseComparator:function(ee,le){return{type:"Comparator",name:le,children:[ee,this.expression(m[le])]}},_parseDotRHS:function(ee){var le=this._lookahead(0);return[j,Q,Y].indexOf(le)>=0?this.expression(ee):le===Z?(this._match(Z),this._parseMultiselectList()):le===q?(this._match(q),this._parseMultiselectHash()):void 0},_parseProjectionRHS:function(ee){var le;if(m[this._lookahead(0)]<10)le={type:"Identity"};else if(this._lookahead(0)===Z)le=this.expression(ee);else if(this._lookahead(0)===k)le=this.expression(ee);else{if(this._lookahead(0)!==C){var de=this._lookaheadToken(0),Oe=new Error("Sytanx error, unexpected token: "+de.value+"("+de.type+")");throw Oe.name="ParserError",Oe}this._match(C),le=this._parseDotRHS(ee)}return le},_parseMultiselectList:function(){for(var ee=[];this._lookahead(0)!==F;){var le=this.expression(0);if(ee.push(le),this._lookahead(0)===P&&(this._match(P),this._lookahead(0)===F))throw new Error("Unexpected token Rbracket")}return this._match(F),{type:"MultiSelectList",children:ee}},_parseMultiselectHash:function(){for(var de,Oe,Re,ee=[],le=[j,Q];;){if(de=this._lookaheadToken(0),le.indexOf(de.type)<0)throw new Error("Expecting an identifier token, got: "+de.type);if(Oe=de.value,this._advance(),this._match(d),Re=this.expression(0),ee.push({type:"KeyValuePair",name:Oe,value:Re}),this._lookahead(0)===P)this._match(P);else if(this._lookahead(0)===O){this._match(O);break}}return{type:"MultiSelectHash",children:ee}}},D.prototype={search:function(ee,le){return this.visit(ee,le)},visit:function(ee,le){var de,Oe,Re,Ue,qe,ze,nt,at,Ke;switch(ee.type){case"Field":return null!==le&&w(le)?void 0===(ze=le[ee.name])?null:ze:null;case"Subexpression":for(Re=this.visit(ee.children[0],le),Ke=1;Ke<ee.children.length;Ke++)if(null===(Re=this.visit(ee.children[1],Re)))return null;return Re;case"IndexExpression":return nt=this.visit(ee.children[0],le),this.visit(ee.children[1],nt);case"Index":if(!t(le))return null;var ct=ee.value;return ct<0&&(ct=le.length+ct),void 0===(Re=le[ct])&&(Re=null),Re;case"Slice":if(!t(le))return null;var jt=ee.children.slice(0),pt=this.computeSliceParams(le.length,jt),yt=pt[0],Rt=pt[1],St=pt[2];if(Re=[],St>0)for(Ke=yt;Ke<Rt;Ke+=St)Re.push(le[Ke]);else for(Ke=yt;Ke>Rt;Ke+=St)Re.push(le[Ke]);return Re;case"Projection":var ft=this.visit(ee.children[0],le);if(!t(ft))return null;for(at=[],Ke=0;Ke<ft.length;Ke++)null!==(Oe=this.visit(ee.children[1],ft[Ke]))&&at.push(Oe);return at;case"ValueProjection":if(!w(ft=this.visit(ee.children[0],le)))return null;at=[];var Tt=function n(ee){for(var le=Object.keys(ee),de=[],Oe=0;Oe<le.length;Oe++)de.push(ee[le[Oe]]);return de}(ft);for(Ke=0;Ke<Tt.length;Ke++)null!==(Oe=this.visit(ee.children[1],Tt[Ke]))&&at.push(Oe);return at;case"FilterProjection":if(!t(ft=this.visit(ee.children[0],le)))return null;var Ft=[],wt=[];for(Ke=0;Ke<ft.length;Ke++)r(de=this.visit(ee.children[2],ft[Ke]))||Ft.push(ft[Ke]);for(var Ct=0;Ct<Ft.length;Ct++)null!==(Oe=this.visit(ee.children[1],Ft[Ct]))&&wt.push(Oe);return wt;case"Comparator":switch(Ue=this.visit(ee.children[0],le),qe=this.visit(ee.children[1],le),ee.name){case"EQ":Re=p(Ue,qe);break;case G:Re=!p(Ue,qe);break;case X:Re=Ue>qe;break;case ie:Re=Ue>=qe;break;case"LT":Re=Ue<qe;break;case K:Re=Ue<=qe;break;default:throw new Error("Unknown comparator: "+ee.name)}return Re;case re:var It=this.visit(ee.children[0],le);if(!t(It))return null;var Lt=[];for(Ke=0;Ke<It.length;Ke++)t(Oe=It[Ke])?Lt.push.apply(Lt,Oe):Lt.push(Oe);return Lt;case"Identity":return le;case"MultiSelectList":if(null===le)return null;for(at=[],Ke=0;Ke<ee.children.length;Ke++)at.push(this.visit(ee.children[Ke],le));return at;case"MultiSelectHash":if(null===le)return null;var Vt;for(at={},Ke=0;Ke<ee.children.length;Ke++)at[(Vt=ee.children[Ke]).name]=this.visit(Vt.value,le);return at;case"OrExpression":return r(de=this.visit(ee.children[0],le))&&(de=this.visit(ee.children[1],le)),de;case"AndExpression":return!0===r(Ue=this.visit(ee.children[0],le))?Ue:this.visit(ee.children[1],le);case"NotExpression":return r(Ue=this.visit(ee.children[0],le));case"Literal":return ee.value;case V:return nt=this.visit(ee.children[0],le),this.visit(ee.children[1],nt);case M:return le;case"Function":var Wt=[];for(Ke=0;Ke<ee.children.length;Ke++)Wt.push(this.visit(ee.children[Ke],le));return this.runtime.callFunction(ee.name,Wt);case"ExpressionReference":var Et=ee.children[0];return Et.jmespathType=W,Et;default:throw new Error("Unknown node type: "+ee.type)}},computeSliceParams:function(ee,le){var de=le[0],Oe=le[1],Re=le[2],Ue=[null,null,null];if(null===Re)Re=1;else if(0===Re){var qe=new Error("Invalid slice, step cannot be 0");throw qe.name="RuntimeError",qe}var ze=Re<0;return de=null===de?ze?ee-1:0:this.capSliceRange(ee,de,Re),Oe=null===Oe?ze?-1:ee:this.capSliceRange(ee,Oe,Re),Ue[0]=de,Ue[1]=Oe,Ue[2]=Re,Ue},capSliceRange:function(ee,le,de){return le<0?(le+=ee)<0&&(le=de<0?-1:0):le>=ee&&(le=de<0?ee-1:ee),le}},te.prototype={callFunction:function(ee,le){var de=this.functionTable[ee];if(void 0===de)throw new Error("Unknown function: "+ee+"()");return this._validateArgs(ee,le,de._signature),de._func.call(this,le)},_validateArgs:function(ee,le,de){var Oe;if(de[de.length-1].variadic){if(le.length<de.length)throw Oe=1===de.length?" argument":" arguments",new Error("ArgumentError: "+ee+"() takes at least"+de.length+Oe+" but received "+le.length)}else if(le.length!==de.length)throw Oe=1===de.length?" argument":" arguments",new Error("ArgumentError: "+ee+"() takes "+de.length+Oe+" but received "+le.length);for(var Re,Ue,qe,ze=0;ze<de.length;ze++){qe=!1,Re=de[ze].types,Ue=this._getTypeName(le[ze]);for(var nt=0;nt<Re.length;nt++)if(this._typeMatches(Ue,Re[nt],le[ze])){qe=!0;break}if(!qe){var ht=Re.map(function(at){return A[at]}).join(",");throw new Error("TypeError: "+ee+"() expected argument "+(ze+1)+" to be type "+ht+" but received type "+A[Ue]+" instead.")}}},_typeMatches:function(ee,le,de){if(1===le)return!0;if(9!==le&&8!==le&&3!==le)return ee===le;if(3===le)return 3===ee;if(3===ee){var Oe;8===le?Oe=e:9===le&&(Oe=u);for(var Re=0;Re<de.length;Re++)if(!this._typeMatches(this._getTypeName(de[Re]),Oe,de[Re]))return!1;return!0}},_getTypeName:function(ee){switch(Object.prototype.toString.call(ee)){case"[object String]":return u;case"[object Number]":return e;case"[object Array]":return 3;case"[object Boolean]":return 5;case"[object Null]":return 7;case"[object Object]":return ee.jmespathType===W?6:4}},_functionStartsWith:function(ee){return 0===ee[0].lastIndexOf(ee[1])},_functionEndsWith:function(ee){var le=ee[0],de=ee[1];return-1!==le.indexOf(de,le.length-de.length)},_functionReverse:function(ee){if(this._getTypeName(ee[0])===u){for(var de=ee[0],Oe="",Re=de.length-1;Re>=0;Re--)Oe+=de[Re];return Oe}var Ue=ee[0].slice(0);return Ue.reverse(),Ue},_functionAbs:function(ee){return Math.abs(ee[0])},_functionCeil:function(ee){return Math.ceil(ee[0])},_functionAvg:function(ee){for(var le=0,de=ee[0],Oe=0;Oe<de.length;Oe++)le+=de[Oe];return le/de.length},_functionContains:function(ee){return ee[0].indexOf(ee[1])>=0},_functionFloor:function(ee){return Math.floor(ee[0])},_functionLength:function(ee){return w(ee[0])?Object.keys(ee[0]).length:ee[0].length},_functionMap:function(ee){for(var le=[],de=this._interpreter,Oe=ee[0],Re=ee[1],Ue=0;Ue<Re.length;Ue++)le.push(de.visit(Oe,Re[Ue]));return le},_functionMerge:function(ee){for(var le={},de=0;de<ee.length;de++){var Oe=ee[de];for(var Re in Oe)le[Re]=Oe[Re]}return le},_functionMax:function(ee){if(ee[0].length>0){if(this._getTypeName(ee[0][0])===e)return Math.max.apply(Math,ee[0]);for(var de=ee[0],Oe=de[0],Re=1;Re<de.length;Re++)Oe.localeCompare(de[Re])<0&&(Oe=de[Re]);return Oe}return null},_functionMin:function(ee){if(ee[0].length>0){if(this._getTypeName(ee[0][0])===e)return Math.min.apply(Math,ee[0]);for(var de=ee[0],Oe=de[0],Re=1;Re<de.length;Re++)de[Re].localeCompare(Oe)<0&&(Oe=de[Re]);return Oe}return null},_functionSum:function(ee){for(var le=0,de=ee[0],Oe=0;Oe<de.length;Oe++)le+=de[Oe];return le},_functionType:function(ee){switch(this._getTypeName(ee[0])){case e:return"number";case u:return"string";case 3:return"array";case 4:return"object";case 5:return"boolean";case 6:return"expref";case 7:return"null"}},_functionKeys:function(ee){return Object.keys(ee[0])},_functionValues:function(ee){for(var le=ee[0],de=Object.keys(le),Oe=[],Re=0;Re<de.length;Re++)Oe.push(le[de[Re]]);return Oe},_functionJoin:function(ee){return ee[1].join(ee[0])},_functionToArray:function(ee){return 3===this._getTypeName(ee[0])?ee[0]:[ee[0]]},_functionToString:function(ee){return this._getTypeName(ee[0])===u?ee[0]:JSON.stringify(ee[0])},_functionToNumber:function(ee){var de,le=this._getTypeName(ee[0]);return le===e?ee[0]:le!==u||(de=+ee[0],isNaN(de))?null:de},_functionNotNull:function(ee){for(var le=0;le<ee.length;le++)if(7!==this._getTypeName(ee[le]))return ee[le];return null},_functionSort:function(ee){var le=ee[0].slice(0);return le.sort(),le},_functionSortBy:function(ee){var le=ee[0].slice(0);if(0===le.length)return le;var de=this._interpreter,Oe=ee[1],Re=this._getTypeName(de.visit(Oe,le[0]));if([e,u].indexOf(Re)<0)throw new Error("TypeError");for(var Ue=this,qe=[],ze=0;ze<le.length;ze++)qe.push([ze,le[ze]]);qe.sort(function(ht,at){var Ke=de.visit(Oe,ht[1]),ct=de.visit(Oe,at[1]);if(Ue._getTypeName(Ke)!==Re)throw new Error("TypeError: expected "+Re+", received "+Ue._getTypeName(Ke));if(Ue._getTypeName(ct)!==Re)throw new Error("TypeError: expected "+Re+", received "+Ue._getTypeName(ct));return Ke>ct?1:Ke<ct?-1:ht[0]-at[0]});for(var nt=0;nt<qe.length;nt++)le[nt]=qe[nt][1];return le},_functionMaxBy:function(ee){for(var Ue,qe,de=ee[0],Oe=this.createKeyFunction(ee[1],[e,u]),Re=-1/0,ze=0;ze<de.length;ze++)(qe=Oe(de[ze]))>Re&&(Re=qe,Ue=de[ze]);return Ue},_functionMinBy:function(ee){for(var Ue,qe,de=ee[0],Oe=this.createKeyFunction(ee[1],[e,u]),Re=1/0,ze=0;ze<de.length;ze++)(qe=Oe(de[ze]))<Re&&(Re=qe,Ue=de[ze]);return Ue},createKeyFunction:function(ee,le){var de=this,Oe=this._interpreter;return function(Ue){var qe=Oe.visit(ee,Ue);if(le.indexOf(de._getTypeName(qe))<0){var ze="TypeError: expected one of "+le+", received "+de._getTypeName(qe);throw new Error(ze)}return qe}}},l.tokenize=function xe(ee){return(new U).tokenize(ee)},l.compile=function pe(ee){return(new R).parse(ee)},l.search=function Ce(ee,le){var de=new R,Oe=new te,Re=new D(Oe);Oe._interpreter=Re;var Ue=de.parse(le);return Re.search(Ue,ee)},l.strictDeepEqual=p}(I)},58668:ae=>{"use strict";var I=Object.getOwnPropertySymbols,l=Object.prototype.hasOwnProperty,t=Object.prototype.propertyIsEnumerable;ae.exports=function p(){try{if(!Object.assign)return!1;var r=new String("abc");if(r[5]="de","5"===Object.getOwnPropertyNames(r)[0])return!1;for(var n={},i=0;i<10;i++)n["_"+String.fromCharCode(i)]=i;if("0123456789"!==Object.getOwnPropertyNames(n).map(function(a){return n[a]}).join(""))return!1;var e={};return"abcdefghijklmnopqrst".split("").forEach(function(a){e[a]=a}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},e)).join("")}catch{return!1}}()?Object.assign:function(r,n){for(var i,e,s=function w(r){if(null==r)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(r)}(r),a=1;a<arguments.length;a++){for(var u in i=Object(arguments[a]))l.call(i,u)&&(s[u]=i[u]);if(I){e=I(i);for(var c=0;c<e.length;c++)t.call(i,e[c])&&(s[e[c]]=i[e[c]])}}return s}},95355:(ae,I,l)=>{"use strict";l.d(I,{Gl:()=>t.B,dP:()=>ue,re:()=>ie});var t=l(15541),w=l(83753);function p(){}var i,r=function(){function K(G,re){void 0===G&&(G=1/0),void 0===re&&(re=p),this.max=G,this.dispose=re,this.map=new Map,this.newest=null,this.oldest=null}return K.prototype.has=function(G){return this.map.has(G)},K.prototype.get=function(G){var re=this.getNode(G);return re&&re.value},K.prototype.getNode=function(G){var re=this.map.get(G);if(re&&re!==this.newest){var Y=re.older,k=re.newer;k&&(k.older=Y),Y&&(Y.newer=k),re.older=this.newest,re.older.newer=re,re.newer=null,this.newest=re,re===this.oldest&&(this.oldest=k)}return re},K.prototype.set=function(G,re){var Y=this.getNode(G);return Y?Y.value=re:(Y={key:G,value:re,newer:null,older:this.newest},this.newest&&(this.newest.newer=Y),this.newest=Y,this.oldest=this.oldest||Y,this.map.set(G,Y),Y.value)},K.prototype.clean=function(){for(;this.oldest&&this.map.size>this.max;)this.delete(this.oldest.key)},K.prototype.delete=function(G){var re=this.map.get(G);return!!re&&(re===this.newest&&(this.newest=re.older),re===this.oldest&&(this.oldest=re.newer),re.newer&&(re.newer.older=re.older),re.older&&(re.older.newer=re.newer),this.map.delete(G),this.dispose(re.value,G),!0)},K}(),n=new w.g7,s=Object.prototype.hasOwnProperty,e=void 0===(i=Array.from)?function(K){var G=[];return K.forEach(function(re){return G.push(re)}),G}:i;function a(K){var G=K.unsubscribe;"function"==typeof G&&(K.unsubscribe=void 0,G())}var u=[],c=100;function y(K,G){if(!K)throw new Error(G||"assertion failure")}function T(K){switch(K.length){case 0:throw new Error("unknown value");case 1:return K[0];case 2:throw K[1]}}var _=function(){function K(G){this.fn=G,this.parents=new Set,this.childValues=new Map,this.dirtyChildren=null,this.dirty=!0,this.recomputing=!1,this.value=[],this.deps=null,++K.count}return K.prototype.peek=function(){if(1===this.value.length&&!j(this))return g(this),this.value[0]},K.prototype.recompute=function(G){return y(!this.recomputing,"already recomputing"),g(this),j(this)?function A(K,G){return M(K),n.withValue(K,L,[K,G]),function V(K,G){if("function"==typeof K.subscribe)try{a(K),K.unsubscribe=K.subscribe.apply(null,G)}catch{return K.setDirty(),!1}return!0}(K,G)&&function Q(K){K.dirty=!1,!j(K)&&b(K)}(K),T(K.value)}(this,G):T(this.value)},K.prototype.setDirty=function(){this.dirty||(this.dirty=!0,this.value.length=0,F(this),a(this))},K.prototype.dispose=function(){var G=this;this.setDirty(),M(this),P(this,function(re,Y){re.setDirty(),W(re,G)})},K.prototype.forget=function(){this.dispose()},K.prototype.dependOn=function(G){G.add(this),this.deps||(this.deps=u.pop()||new Set),this.deps.add(G)},K.prototype.forgetDeps=function(){var G=this;this.deps&&(e(this.deps).forEach(function(re){return re.delete(G)}),this.deps.clear(),u.push(this.deps),this.deps=null)},K.count=0,K}();function g(K){var G=n.getValue();if(G)return K.parents.add(G),G.childValues.has(K)||G.childValues.set(K,[]),j(K)?d(G,K):O(G,K),G}function L(K,G){K.recomputing=!0,K.value.length=0;try{K.value[0]=K.fn.apply(null,G)}catch(re){K.value[1]=re}K.recomputing=!1}function j(K){return K.dirty||!(!K.dirtyChildren||!K.dirtyChildren.size)}function F(K){P(K,d)}function b(K){P(K,O)}function P(K,G){var re=K.parents.size;if(re)for(var Y=e(K.parents),k=0;k<re;++k)G(Y[k],K)}function d(K,G){y(K.childValues.has(G)),y(j(G));var re=!j(K);if(K.dirtyChildren){if(K.dirtyChildren.has(G))return}else K.dirtyChildren=u.pop()||new Set;K.dirtyChildren.add(G),re&&F(K)}function O(K,G){y(K.childValues.has(G)),y(!j(G));var re=K.childValues.get(G);0===re.length?K.childValues.set(G,function x(K){return K.slice(0)}(G.value)):function f(K,G){var re=K.length;return re>0&&re===G.length&&K[re-1]===G[re-1]}(re,G.value)||K.setDirty(),v(K,G),!j(K)&&b(K)}function v(K,G){var re=K.dirtyChildren;re&&(re.delete(G),0===re.size&&(u.length<c&&u.push(re),K.dirtyChildren=null))}function M(K){K.childValues.size>0&&K.childValues.forEach(function(G,re){W(K,re)}),K.forgetDeps(),y(null===K.dirtyChildren)}function W(K,G){G.parents.delete(K),K.childValues.delete(G),v(K,G)}var J={setDirty:!0,dispose:!0,forget:!0};function ue(K){var G=new Map,re=K&&K.subscribe;function Y(k){var C=n.getValue();if(C){var N=G.get(k);N||G.set(k,N=new Set),C.dependOn(N),"function"==typeof re&&(a(N),N.unsubscribe=re(k))}}return Y.dirty=function(C,N){var q=G.get(C);if(q){var Z=N&&s.call(J,N)?N:"setDirty";e(q).forEach(function(fe){return fe[Z]()}),G.delete(C),a(q)}},Y}function me(){var K=new t.B("function"==typeof WeakMap);return function(){return K.lookupArray(arguments)}}me();var he=new Set;function ie(K,G){void 0===G&&(G=Object.create(null));var re=new r(G.max||Math.pow(2,16),function(fe){return fe.dispose()}),Y=G.keyArgs,k=G.makeCacheKey||me(),C=function(){var fe=k.apply(null,Y?Y.apply(null,arguments):arguments);if(void 0===fe)return K.apply(null,arguments);var ve=re.get(fe);ve||(re.set(fe,ve=new _(K)),ve.subscribe=G.subscribe,ve.forget=function(){return re.delete(fe)});var Se=ve.recompute(Array.prototype.slice.call(arguments));return re.set(fe,ve),he.add(re),n.hasValue()||(he.forEach(function(be){return be.clean()}),he.clear()),Se};function N(fe){var ve=re.get(fe);ve&&ve.setDirty()}function q(fe){var ve=re.get(fe);if(ve)return ve.peek()}function Z(fe){return re.delete(fe)}return Object.defineProperty(C,"size",{get:function(){return re.map.size},configurable:!1,enumerable:!1}),C.dirtyKey=N,C.dirty=function(){N(k.apply(null,arguments))},C.peekKey=q,C.peek=function(){return q(k.apply(null,arguments))},C.forgetKey=Z,C.forget=function(){return Z(k.apply(null,arguments))},C.makeCacheKey=k,C.getKey=Y?function(){return k.apply(null,Y.apply(null,arguments))}:k,Object.freeze(C)}},58253:ae=>{"use strict";function I(l,t){return Object.prototype.hasOwnProperty.call(l,t)}ae.exports=function(l,t,w,p){w=w||"=";var r={};if("string"!=typeof l||0===l.length)return r;var n=/\+/g;l=l.split(t=t||"&");var i=1e3;p&&"number"==typeof p.maxKeys&&(i=p.maxKeys);var s=l.length;i>0&&s>i&&(s=i);for(var e=0;e<s;++e){var c,y,f,T,a=l[e].replace(n,"%20"),u=a.indexOf(w);u>=0?(c=a.substr(0,u),y=a.substr(u+1)):(c=a,y=""),f=decodeURIComponent(c),T=decodeURIComponent(y),I(r,f)?Array.isArray(r[f])?r[f].push(T):r[f]=[r[f],T]:r[f]=T}return r}},24549:ae=>{"use strict";var I=function(l){switch(typeof l){case"string":return l;case"boolean":return l?"true":"false";case"number":return isFinite(l)?l:"";default:return""}};ae.exports=function(l,t,w,p){return t=t||"&",w=w||"=",null===l&&(l=void 0),"object"==typeof l?Object.keys(l).map(function(r){var n=encodeURIComponent(I(r))+w;return Array.isArray(l[r])?l[r].map(function(i){return n+encodeURIComponent(I(i))}).join(t):n+encodeURIComponent(I(l[r]))}).join(t):p?encodeURIComponent(I(p))+w+encodeURIComponent(I(l)):""}},19446:(ae,I,l)=>{"use strict";I.decode=I.parse=l(58253),I.encode=I.stringify=l(24549)},6135:function(ae,I,l){var t;ae=l.nmd(ae),function(w){"object"==typeof global&&global;var i,s=2147483647,e=36,u=26,c=38,y=700,_=/^xn--/,g=/[^\x20-\x7E]/,A=/[\x2E\u3002\uFF0E\uFF61]/g,L={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},j=e-1,Q=Math.floor,F=String.fromCharCode;function P(ie){throw RangeError(L[ie])}function d(ie,K){for(var G=ie.length,re=[];G--;)re[G]=K(ie[G]);return re}function O(ie,K){var G=ie.split("@"),re="";return G.length>1&&(re=G[0]+"@",ie=G[1]),re+d((ie=ie.replace(A,".")).split("."),K).join(".")}function v(ie){for(var Y,k,K=[],G=0,re=ie.length;G<re;)(Y=ie.charCodeAt(G++))>=55296&&Y<=56319&&G<re?56320==(64512&(k=ie.charCodeAt(G++)))?K.push(((1023&Y)<<10)+(1023&k)+65536):(K.push(Y),G--):K.push(Y);return K}function M(ie){return d(ie,function(K){var G="";return K>65535&&(G+=F((K-=65536)>>>10&1023|55296),K=56320|1023&K),G+F(K)}).join("")}function W(ie){return ie-48<10?ie-22:ie-65<26?ie-65:ie-97<26?ie-97:e}function V(ie,K){return ie+22+75*(ie<26)-((0!=K)<<5)}function J(ie,K,G){var re=0;for(ie=G?Q(ie/y):ie>>1,ie+=Q(ie/K);ie>j*u>>1;re+=e)ie=Q(ie/j);return Q(re+(j+1)*ie/(ie+c))}function ue(ie){var re,N,q,Z,fe,ve,Se,be,Pe,De,K=[],G=ie.length,Y=0,k=128,C=72;for((N=ie.lastIndexOf("-"))<0&&(N=0),q=0;q<N;++q)ie.charCodeAt(q)>=128&&P("not-basic"),K.push(ie.charCodeAt(q));for(Z=N>0?N+1:0;Z<G;){for(fe=Y,ve=1,Se=e;Z>=G&&P("invalid-input"),((be=W(ie.charCodeAt(Z++)))>=e||be>Q((s-Y)/ve))&&P("overflow"),Y+=be*ve,!(be<(Pe=Se<=C?1:Se>=C+u?u:Se-C));Se+=e)ve>Q(s/(De=e-Pe))&&P("overflow"),ve*=De;C=J(Y-fe,re=K.length+1,0==fe),Q(Y/re)>s-k&&P("overflow"),k+=Q(Y/re),Y%=re,K.splice(Y++,0,k)}return M(K)}function me(ie){var K,G,re,Y,k,C,N,q,Z,fe,ve,be,Pe,De,ke,Se=[];for(be=(ie=v(ie)).length,K=128,G=0,k=72,C=0;C<be;++C)(ve=ie[C])<128&&Se.push(F(ve));for(re=Y=Se.length,Y&&Se.push("-");re<be;){for(N=s,C=0;C<be;++C)(ve=ie[C])>=K&&ve<N&&(N=ve);for(N-K>Q((s-G)/(Pe=re+1))&&P("overflow"),G+=(N-K)*Pe,K=N,C=0;C<be;++C)if((ve=ie[C])<K&&++G>s&&P("overflow"),ve==K){for(q=G,Z=e;!(q<(fe=Z<=k?1:Z>=k+u?u:Z-k));Z+=e)Se.push(F(V(fe+(ke=q-fe)%(De=e-fe),0))),q=Q(ke/De);Se.push(F(V(q,0))),k=J(G,Pe,re==Y),G=0,++re}++G,++K}return Se.join("")}i={version:"1.3.2",ucs2:{decode:v,encode:M},decode:ue,encode:me,toASCII:function he(ie){return O(ie,function(K){return g.test(K)?"xn--"+me(K):K})},toUnicode:function X(ie){return O(ie,function(K){return _.test(K)?ue(K.slice(4).toLowerCase()):K})}},void 0!==(t=function(){return i}.call(I,l,I,ae))&&(ae.exports=t)}()},22016:(ae,I,l)=>{"use strict";var t=l(6135),w=l(95795);function p(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}I.parse=L,I.resolve=function Q(b,P){return L(b,!1,!0).resolve(P)},I.resolveObject=function F(b,P){return b?L(b,!1,!0).resolveObject(P):P},I.format=function j(b){return w.isString(b)&&(b=L(b)),b instanceof p?b.format():p.prototype.format.call(b)},I.Url=p;var r=/^([a-z0-9.+-]+:)/i,n=/:[0-9]*$/,i=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,e=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),a=["'"].concat(e),u=["%","/","?",";","#"].concat(a),c=["/","?","#"],f=/^[+a-z0-9A-Z_-]{0,63}$/,T=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,x={javascript:!0,"javascript:":!0},_={javascript:!0,"javascript:":!0},g={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},A=l(19446);function L(b,P,d){if(b&&w.isObject(b)&&b instanceof p)return b;var O=new p;return O.parse(b,P,d),O}p.prototype.parse=function(b,P,d){if(!w.isString(b))throw new TypeError("Parameter 'url' must be a string, not "+typeof b);var O=b.indexOf("?"),v=-1!==O&&O<b.indexOf("#")?"?":"#",M=b.split(v);M[0]=M[0].replace(/\\/g,"/");var V=b=M.join(v);if(V=V.trim(),!d&&1===b.split("#").length){var J=i.exec(V);if(J)return this.path=V,this.href=V,this.pathname=J[1],J[2]?(this.search=J[2],this.query=P?A.parse(this.search.substr(1)):this.search.substr(1)):P&&(this.search="",this.query={}),this}var ue=r.exec(V);if(ue){var me=(ue=ue[0]).toLowerCase();this.protocol=me,V=V.substr(ue.length)}if(d||ue||V.match(/^\/\/[^@\/]+@[^@\/]+/)){var X="//"===V.substr(0,2);X&&(!ue||!_[ue])&&(V=V.substr(2),this.slashes=!0)}if(!_[ue]&&(X||ue&&!g[ue])){for(var he=-1,ie=0;ie<c.length;ie++)-1!==(K=V.indexOf(c[ie]))&&(-1===he||K<he)&&(he=K);var G,re;for(-1!==(re=-1===he?V.lastIndexOf("@"):V.lastIndexOf("@",he))&&(G=V.slice(0,re),V=V.slice(re+1),this.auth=decodeURIComponent(G)),he=-1,ie=0;ie<u.length;ie++){var K;-1!==(K=V.indexOf(u[ie]))&&(-1===he||K<he)&&(he=K)}-1===he&&(he=V.length),this.host=V.slice(0,he),V=V.slice(he),this.parseHost(),this.hostname=this.hostname||"";var Y="["===this.hostname[0]&&"]"===this.hostname[this.hostname.length-1];if(!Y)for(var k=this.hostname.split(/\./),C=(ie=0,k.length);ie<C;ie++){var N=k[ie];if(N&&!N.match(f)){for(var q="",Z=0,fe=N.length;Z<fe;Z++)N.charCodeAt(Z)>127?q+="x":q+=N[Z];if(!q.match(f)){var ve=k.slice(0,ie),Se=k.slice(ie+1),be=N.match(T);be&&(ve.push(be[1]),Se.unshift(be[2])),Se.length&&(V="/"+Se.join(".")+V),this.hostname=ve.join(".");break}}}this.hostname=this.hostname.length>255?"":this.hostname.toLowerCase(),Y||(this.hostname=t.toASCII(this.hostname)),this.host=(this.hostname||"")+(this.port?":"+this.port:""),this.href+=this.host,Y&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==V[0]&&(V="/"+V))}if(!x[me])for(ie=0,C=a.length;ie<C;ie++){var ke=a[ie];if(-1!==V.indexOf(ke)){var ne=encodeURIComponent(ke);ne===ke&&(ne=escape(ke)),V=V.split(ke).join(ne)}}var U=V.indexOf("#");-1!==U&&(this.hash=V.substr(U),V=V.slice(0,U));var m=V.indexOf("?");return-1!==m?(this.search=V.substr(m),this.query=V.substr(m+1),P&&(this.query=A.parse(this.query)),V=V.slice(0,m)):P&&(this.search="",this.query={}),V&&(this.pathname=V),g[me]&&this.hostname&&!this.pathname&&(this.pathname="/"),(this.pathname||this.search)&&(this.path=(this.pathname||"")+(this.search||"")),this.href=this.format(),this},p.prototype.format=function(){var b=this.auth||"";b&&(b=(b=encodeURIComponent(b)).replace(/%3A/i,":"),b+="@");var P=this.protocol||"",d=this.pathname||"",O=this.hash||"",v=!1,M="";this.host?v=b+this.host:this.hostname&&(v=b+(-1===this.hostname.indexOf(":")?this.hostname:"["+this.hostname+"]"),this.port&&(v+=":"+this.port)),this.query&&w.isObject(this.query)&&Object.keys(this.query).length&&(M=A.stringify(this.query));var W=this.search||M&&"?"+M||"";return P&&":"!==P.substr(-1)&&(P+=":"),this.slashes||(!P||g[P])&&!1!==v?(v="//"+(v||""),d&&"/"!==d.charAt(0)&&(d="/"+d)):v||(v=""),O&&"#"!==O.charAt(0)&&(O="#"+O),W&&"?"!==W.charAt(0)&&(W="?"+W),P+v+(d=d.replace(/[?#]/g,function(V){return encodeURIComponent(V)}))+(W=W.replace("#","%23"))+O},p.prototype.resolve=function(b){return this.resolveObject(L(b,!1,!0)).format()},p.prototype.resolveObject=function(b){if(w.isString(b)){var P=new p;P.parse(b,!1,!0),b=P}for(var d=new p,O=Object.keys(this),v=0;v<O.length;v++){var M=O[v];d[M]=this[M]}if(d.hash=b.hash,""===b.href)return d.href=d.format(),d;if(b.slashes&&!b.protocol){for(var W=Object.keys(b),V=0;V<W.length;V++){var J=W[V];"protocol"!==J&&(d[J]=b[J])}return g[d.protocol]&&d.hostname&&!d.pathname&&(d.path=d.pathname="/"),d.href=d.format(),d}if(b.protocol&&b.protocol!==d.protocol){if(!g[b.protocol]){for(var ue=Object.keys(b),me=0;me<ue.length;me++){var X=ue[me];d[X]=b[X]}return d.href=d.format(),d}if(d.protocol=b.protocol,b.host||_[b.protocol])d.pathname=b.pathname;else{for(var C=(b.pathname||"").split("/");C.length&&!(b.host=C.shift()););b.host||(b.host=""),b.hostname||(b.hostname=""),""!==C[0]&&C.unshift(""),C.length<2&&C.unshift(""),d.pathname=C.join("/")}return d.search=b.search,d.query=b.query,d.host=b.host||"",d.auth=b.auth,d.hostname=b.hostname||b.host,d.port=b.port,(d.pathname||d.search)&&(d.path=(d.pathname||"")+(d.search||"")),d.slashes=d.slashes||b.slashes,d.href=d.format(),d}var K=d.pathname&&"/"===d.pathname.charAt(0),G=b.host||b.pathname&&"/"===b.pathname.charAt(0),re=G||K||d.host&&b.pathname,Y=re,k=d.pathname&&d.pathname.split("/")||[],N=(C=b.pathname&&b.pathname.split("/")||[],d.protocol&&!g[d.protocol]);if(N&&(d.hostname="",d.port=null,d.host&&(""===k[0]?k[0]=d.host:k.unshift(d.host)),d.host="",b.protocol&&(b.hostname=null,b.port=null,b.host&&(""===C[0]?C[0]=b.host:C.unshift(b.host)),b.host=null),re=re&&(""===C[0]||""===k[0])),G)d.host=b.host||""===b.host?b.host:d.host,d.hostname=b.hostname||""===b.hostname?b.hostname:d.hostname,d.search=b.search,d.query=b.query,k=C;else if(C.length)k||(k=[]),k.pop(),k=k.concat(C),d.search=b.search,d.query=b.query;else if(!w.isNullOrUndefined(b.search))return N&&(d.hostname=d.host=k.shift(),(q=!!(d.host&&d.host.indexOf("@")>0)&&d.host.split("@"))&&(d.auth=q.shift(),d.host=d.hostname=q.shift())),d.search=b.search,d.query=b.query,(!w.isNull(d.pathname)||!w.isNull(d.search))&&(d.path=(d.pathname?d.pathname:"")+(d.search?d.search:"")),d.href=d.format(),d;if(!k.length)return d.pathname=null,d.path=d.search?"/"+d.search:null,d.href=d.format(),d;for(var Z=k.slice(-1)[0],fe=(d.host||b.host||k.length>1)&&("."===Z||".."===Z)||""===Z,ve=0,Se=k.length;Se>=0;Se--)"."===(Z=k[Se])?k.splice(Se,1):".."===Z?(k.splice(Se,1),ve++):ve&&(k.splice(Se,1),ve--);if(!re&&!Y)for(;ve--;ve)k.unshift("..");re&&""!==k[0]&&(!k[0]||"/"!==k[0].charAt(0))&&k.unshift(""),fe&&"/"!==k.join("/").substr(-1)&&k.push("");var q,be=""===k[0]||k[0]&&"/"===k[0].charAt(0);return N&&(d.hostname=d.host=be?"":k.length?k.shift():"",(q=!!(d.host&&d.host.indexOf("@")>0)&&d.host.split("@"))&&(d.auth=q.shift(),d.host=d.hostname=q.shift())),(re=re||d.host&&k.length)&&!be&&k.unshift(""),k.length?d.pathname=k.join("/"):(d.pathname=null,d.path=null),(!w.isNull(d.pathname)||!w.isNull(d.search))&&(d.path=(d.pathname?d.pathname:"")+(d.search?d.search:"")),d.auth=b.auth||d.auth,d.slashes=d.slashes||b.slashes,d.href=d.format(),d},p.prototype.parseHost=function(){var b=this.host,P=n.exec(b);P&&(":"!==(P=P[0])&&(this.port=P.substr(1)),b=b.substr(0,b.length-P.length)),b&&(this.hostname=b)}},95795:ae=>{"use strict";ae.exports={isString:function(I){return"string"==typeof I},isObject:function(I){return"object"==typeof I&&null!==I},isNull:function(I){return null===I},isNullOrUndefined:function(I){return null==I}}},19884:ae=>{ae.exports=function(l){return l&&"object"==typeof l&&"function"==typeof l.copy&&"function"==typeof l.fill&&"function"==typeof l.readUInt8}},19192:(ae,I,l)=>{"use strict";var t=l(58344),w=l(41186),p=l(55319),r=l(53662);function n(m){return m.call.bind(m)}var i=typeof BigInt<"u",s=typeof Symbol<"u",e=n(Object.prototype.toString),a=n(Number.prototype.valueOf),u=n(String.prototype.valueOf),c=n(Boolean.prototype.valueOf);if(i)var y=n(BigInt.prototype.valueOf);if(s)var f=n(Symbol.prototype.valueOf);function T(m,R){if("object"!=typeof m)return!1;try{return R(m),!0}catch{return!1}}function M(m){return"[object Map]"===e(m)}function V(m){return"[object Set]"===e(m)}function ue(m){return"[object WeakMap]"===e(m)}function X(m){return"[object WeakSet]"===e(m)}function ie(m){return"[object ArrayBuffer]"===e(m)}function K(m){return!(typeof ArrayBuffer>"u")&&(ie.working?ie(m):m instanceof ArrayBuffer)}function G(m){return"[object DataView]"===e(m)}function re(m){return!(typeof DataView>"u")&&(G.working?G(m):m instanceof DataView)}I.isArgumentsObject=t,I.isGeneratorFunction=w,I.isTypedArray=r,I.isPromise=function x(m){return typeof Promise<"u"&&m instanceof Promise||null!==m&&"object"==typeof m&&"function"==typeof m.then&&"function"==typeof m.catch},I.isArrayBufferView=function _(m){return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?ArrayBuffer.isView(m):r(m)||re(m)},I.isUint8Array=function g(m){return"Uint8Array"===p(m)},I.isUint8ClampedArray=function A(m){return"Uint8ClampedArray"===p(m)},I.isUint16Array=function L(m){return"Uint16Array"===p(m)},I.isUint32Array=function j(m){return"Uint32Array"===p(m)},I.isInt8Array=function Q(m){return"Int8Array"===p(m)},I.isInt16Array=function F(m){return"Int16Array"===p(m)},I.isInt32Array=function b(m){return"Int32Array"===p(m)},I.isFloat32Array=function P(m){return"Float32Array"===p(m)},I.isFloat64Array=function d(m){return"Float64Array"===p(m)},I.isBigInt64Array=function O(m){return"BigInt64Array"===p(m)},I.isBigUint64Array=function v(m){return"BigUint64Array"===p(m)},M.working=typeof Map<"u"&&M(new Map),I.isMap=function W(m){return!(typeof Map>"u")&&(M.working?M(m):m instanceof Map)},V.working=typeof Set<"u"&&V(new Set),I.isSet=function J(m){return!(typeof Set>"u")&&(V.working?V(m):m instanceof Set)},ue.working=typeof WeakMap<"u"&&ue(new WeakMap),I.isWeakMap=function me(m){return!(typeof WeakMap>"u")&&(ue.working?ue(m):m instanceof WeakMap)},X.working=typeof WeakSet<"u"&&X(new WeakSet),I.isWeakSet=function he(m){return X(m)},ie.working=typeof ArrayBuffer<"u"&&ie(new ArrayBuffer),I.isArrayBuffer=K,G.working=typeof ArrayBuffer<"u"&&typeof DataView<"u"&&G(new DataView(new ArrayBuffer(1),0,1)),I.isDataView=re;var Y=typeof SharedArrayBuffer<"u"?SharedArrayBuffer:void 0;function k(m){return"[object SharedArrayBuffer]"===e(m)}function C(m){return!(typeof Y>"u")&&(typeof k.working>"u"&&(k.working=k(new Y)),k.working?k(m):m instanceof Y)}function Se(m){return T(m,a)}function be(m){return T(m,u)}function Pe(m){return T(m,c)}function De(m){return i&&T(m,y)}function ke(m){return s&&T(m,f)}I.isSharedArrayBuffer=C,I.isAsyncFunction=function N(m){return"[object AsyncFunction]"===e(m)},I.isMapIterator=function q(m){return"[object Map Iterator]"===e(m)},I.isSetIterator=function Z(m){return"[object Set Iterator]"===e(m)},I.isGeneratorObject=function fe(m){return"[object Generator]"===e(m)},I.isWebAssemblyCompiledModule=function ve(m){return"[object WebAssembly.Module]"===e(m)},I.isNumberObject=Se,I.isStringObject=be,I.isBooleanObject=Pe,I.isBigIntObject=De,I.isSymbolObject=ke,I.isBoxedPrimitive=function ne(m){return Se(m)||be(m)||Pe(m)||De(m)||ke(m)},I.isAnyArrayBuffer=function U(m){return typeof Uint8Array<"u"&&(K(m)||C(m))},["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(m){Object.defineProperty(I,m,{enumerable:!1,value:function(){throw new Error(m+" is not supported in userland")}})})},20147:(ae,I,l)=>{var t=Object.getOwnPropertyDescriptors||function(re){for(var Y=Object.keys(re),k={},C=0;C<Y.length;C++)k[Y[C]]=Object.getOwnPropertyDescriptor(re,Y[C]);return k},w=/%[sdj%]/g;I.format=function(G){if(!Q(G)){for(var re=[],Y=0;Y<arguments.length;Y++)re.push(i(arguments[Y]));return re.join(" ")}Y=1;for(var k=arguments,C=k.length,N=String(G).replace(w,function(Z){if("%%"===Z)return"%";if(Y>=C)return Z;switch(Z){case"%s":return String(k[Y++]);case"%d":return Number(k[Y++]);case"%j":try{return JSON.stringify(k[Y++])}catch{return"[Circular]"}default:return Z}}),q=k[Y];Y<C;q=k[++Y])A(q)||!d(q)?N+=" "+q:N+=" "+i(q);return N},I.deprecate=function(G,re){if(typeof process<"u"&&!0===process.noDeprecation)return G;if(typeof process>"u")return function(){return I.deprecate(G,re).apply(this,arguments)};var Y=!1;return function k(){if(!Y){if(process.throwDeprecation)throw new Error(re);process.traceDeprecation?console.trace(re):console.error(re),Y=!0}return G.apply(this,arguments)}};var p={},r=/^$/;if(process.env.NODE_DEBUG){var n=process.env.NODE_DEBUG;n=n.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase(),r=new RegExp("^"+n+"$","i")}function i(G,re){var Y={seen:[],stylize:e};return arguments.length>=3&&(Y.depth=arguments[2]),arguments.length>=4&&(Y.colors=arguments[3]),g(re)?Y.showHidden=re:re&&I._extend(Y,re),b(Y.showHidden)&&(Y.showHidden=!1),b(Y.depth)&&(Y.depth=2),b(Y.colors)&&(Y.colors=!1),b(Y.customInspect)&&(Y.customInspect=!0),Y.colors&&(Y.stylize=s),u(Y,G,Y.depth)}function s(G,re){var Y=i.styles[re];return Y?"\x1b["+i.colors[Y][0]+"m"+G+"\x1b["+i.colors[Y][1]+"m":G}function e(G,re){return G}function u(G,re,Y){if(G.customInspect&&re&&M(re.inspect)&&re.inspect!==I.inspect&&(!re.constructor||re.constructor.prototype!==re)){var k=re.inspect(Y,G);return Q(k)||(k=u(G,k,Y)),k}var C=function c(G,re){if(b(re))return G.stylize("undefined","undefined");if(Q(re)){var Y="'"+JSON.stringify(re).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return G.stylize(Y,"string")}return j(re)?G.stylize(""+re,"number"):g(re)?G.stylize(""+re,"boolean"):A(re)?G.stylize("null","null"):void 0}(G,re);if(C)return C;var N=Object.keys(re),q=function a(G){var re={};return G.forEach(function(Y,k){re[Y]=!0}),re}(N);if(G.showHidden&&(N=Object.getOwnPropertyNames(re)),v(re)&&(N.indexOf("message")>=0||N.indexOf("description")>=0))return y(re);if(0===N.length){if(M(re))return G.stylize("[Function"+(re.name?": "+re.name:"")+"]","special");if(P(re))return G.stylize(RegExp.prototype.toString.call(re),"regexp");if(O(re))return G.stylize(Date.prototype.toString.call(re),"date");if(v(re))return y(re)}var Pe,fe="",ve=!1,Se=["{","}"];return _(re)&&(ve=!0,Se=["[","]"]),M(re)&&(fe=" [Function"+(re.name?": "+re.name:"")+"]"),P(re)&&(fe=" "+RegExp.prototype.toString.call(re)),O(re)&&(fe=" "+Date.prototype.toUTCString.call(re)),v(re)&&(fe=" "+y(re)),0!==N.length||ve&&0!=re.length?Y<0?P(re)?G.stylize(RegExp.prototype.toString.call(re),"regexp"):G.stylize("[Object]","special"):(G.seen.push(re),Pe=ve?function f(G,re,Y,k,C){for(var N=[],q=0,Z=re.length;q<Z;++q)X(re,String(q))?N.push(T(G,re,Y,k,String(q),!0)):N.push("");return C.forEach(function(fe){fe.match(/^\d+$/)||N.push(T(G,re,Y,k,fe,!0))}),N}(G,re,Y,q,N):N.map(function(De){return T(G,re,Y,q,De,ve)}),G.seen.pop(),function x(G,re,Y){var C=G.reduce(function(N,q){return q.indexOf("\n"),N+q.replace(/\u001b\[\d\d?m/g,"").length+1},0);return C>60?Y[0]+(""===re?"":re+"\n ")+" "+G.join(",\n ")+" "+Y[1]:Y[0]+re+" "+G.join(", ")+" "+Y[1]}(Pe,fe,Se)):Se[0]+fe+Se[1]}function y(G){return"["+Error.prototype.toString.call(G)+"]"}function T(G,re,Y,k,C,N){var q,Z,fe;if((fe=Object.getOwnPropertyDescriptor(re,C)||{value:re[C]}).get?Z=G.stylize(fe.set?"[Getter/Setter]":"[Getter]","special"):fe.set&&(Z=G.stylize("[Setter]","special")),X(k,C)||(q="["+C+"]"),Z||(G.seen.indexOf(fe.value)<0?(Z=A(Y)?u(G,fe.value,null):u(G,fe.value,Y-1)).indexOf("\n")>-1&&(Z=N?Z.split("\n").map(function(ve){return" "+ve}).join("\n").substr(2):"\n"+Z.split("\n").map(function(ve){return" "+ve}).join("\n")):Z=G.stylize("[Circular]","special")),b(q)){if(N&&C.match(/^\d+$/))return Z;(q=JSON.stringify(""+C)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(q=q.substr(1,q.length-2),q=G.stylize(q,"name")):(q=q.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),q=G.stylize(q,"string"))}return q+": "+Z}function _(G){return Array.isArray(G)}function g(G){return"boolean"==typeof G}function A(G){return null===G}function j(G){return"number"==typeof G}function Q(G){return"string"==typeof G}function b(G){return void 0===G}function P(G){return d(G)&&"[object RegExp]"===V(G)}function d(G){return"object"==typeof G&&null!==G}function O(G){return d(G)&&"[object Date]"===V(G)}function v(G){return d(G)&&("[object Error]"===V(G)||G instanceof Error)}function M(G){return"function"==typeof G}function V(G){return Object.prototype.toString.call(G)}function J(G){return G<10?"0"+G.toString(10):G.toString(10)}I.debuglog=function(G){if(G=G.toUpperCase(),!p[G])if(r.test(G)){var re=process.pid;p[G]=function(){var Y=I.format.apply(I,arguments);console.error("%s %d: %s",G,re,Y)}}else p[G]=function(){};return p[G]},I.inspect=i,i.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},i.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},I.types=l(19192),I.isArray=_,I.isBoolean=g,I.isNull=A,I.isNullOrUndefined=function L(G){return null==G},I.isNumber=j,I.isString=Q,I.isSymbol=function F(G){return"symbol"==typeof G},I.isUndefined=b,I.isRegExp=P,I.types.isRegExp=P,I.isObject=d,I.isDate=O,I.types.isDate=O,I.isError=v,I.types.isNativeError=v,I.isFunction=M,I.isPrimitive=function W(G){return null===G||"boolean"==typeof G||"number"==typeof G||"string"==typeof G||"symbol"==typeof G||typeof G>"u"},I.isBuffer=l(19884);var ue=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function X(G,re){return Object.prototype.hasOwnProperty.call(G,re)}I.log=function(){console.log("%s - %s",function me(){var G=new Date,re=[J(G.getHours()),J(G.getMinutes()),J(G.getSeconds())].join(":");return[G.getDate(),ue[G.getMonth()],re].join(" ")}(),I.format.apply(I,arguments))},I.inherits=l(3011),I._extend=function(G,re){if(!re||!d(re))return G;for(var Y=Object.keys(re),k=Y.length;k--;)G[Y[k]]=re[Y[k]];return G};var he=typeof Symbol<"u"?Symbol("util.promisify.custom"):void 0;function ie(G,re){if(!G){var Y=new Error("Promise was rejected with a falsy value");Y.reason=G,G=Y}return re(G)}I.promisify=function(re){if("function"!=typeof re)throw new TypeError('The "original" argument must be of type Function');if(he&&re[he]){var Y;if("function"!=typeof(Y=re[he]))throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(Y,he,{value:Y,enumerable:!1,writable:!1,configurable:!0}),Y}function Y(){for(var k,C,N=new Promise(function(fe,ve){k=fe,C=ve}),q=[],Z=0;Z<arguments.length;Z++)q.push(arguments[Z]);q.push(function(fe,ve){fe?C(fe):k(ve)});try{re.apply(this,q)}catch(fe){C(fe)}return N}return Object.setPrototypeOf(Y,Object.getPrototypeOf(re)),he&&Object.defineProperty(Y,he,{value:Y,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(Y,t(re))},I.promisify.custom=he,I.callbackify=function K(G){if("function"!=typeof G)throw new TypeError('The "original" argument must be of type Function');function re(){for(var Y=[],k=0;k<arguments.length;k++)Y.push(arguments[k]);var C=Y.pop();if("function"!=typeof C)throw new TypeError("The last argument must be of type Function");var N=this,q=function(){return C.apply(N,arguments)};G.apply(this,Y).then(function(Z){process.nextTick(q.bind(null,null,Z))},function(Z){process.nextTick(ie.bind(null,Z,q))})}return Object.setPrototypeOf(re,Object.getPrototypeOf(G)),Object.defineProperties(re,t(G)),re}},25804:(ae,I,l)=>{"use strict";Object.defineProperty(I,"__esModule",{value:!0}),Object.defineProperty(I,"NIL",{enumerable:!0,get:function(){return n.default}}),Object.defineProperty(I,"parse",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(I,"stringify",{enumerable:!0,get:function(){return e.default}}),Object.defineProperty(I,"v1",{enumerable:!0,get:function(){return t.default}}),Object.defineProperty(I,"v3",{enumerable:!0,get:function(){return w.default}}),Object.defineProperty(I,"v4",{enumerable:!0,get:function(){return p.default}}),Object.defineProperty(I,"v5",{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(I,"validate",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(I,"version",{enumerable:!0,get:function(){return i.default}});var t=u(l(15043)),w=u(l(25745)),p=u(l(65511)),r=u(l(95461)),n=u(l(35057)),i=u(l(98967)),s=u(l(61312)),e=u(l(68173)),a=u(l(51130));function u(c){return c&&c.__esModule?c:{default:c}}},44339:(ae,I)=>{"use strict";function w(f){return 14+(f+64>>>9<<4)+1}function n(f,T){const x=(65535&f)+(65535&T);return(f>>16)+(T>>16)+(x>>16)<<16|65535&x}function s(f,T,x,_,g,A){return n(function i(f,T){return f<<T|f>>>32-T}(n(n(T,f),n(_,A)),g),x)}function e(f,T,x,_,g,A,L){return s(T&x|~T&_,f,T,g,A,L)}function a(f,T,x,_,g,A,L){return s(T&_|x&~_,f,T,g,A,L)}function u(f,T,x,_,g,A,L){return s(T^x^_,f,T,g,A,L)}function c(f,T,x,_,g,A,L){return s(x^(T|~_),f,T,g,A,L)}Object.defineProperty(I,"__esModule",{value:!0}),I.default=void 0,I.default=function l(f){if("string"==typeof f){const T=unescape(encodeURIComponent(f));f=new Uint8Array(T.length);for(let x=0;x<T.length;++x)f[x]=T.charCodeAt(x)}return function t(f){const T=[],x=32*f.length,_="0123456789abcdef";for(let g=0;g<x;g+=8){const A=f[g>>5]>>>g%32&255,L=parseInt(_.charAt(A>>>4&15)+_.charAt(15&A),16);T.push(L)}return T}(function p(f,T){f[T>>5]|=128<<T%32,f[w(T)-1]=T;let x=1732584193,_=-271733879,g=-1732584194,A=271733878;for(let L=0;L<f.length;L+=16){const j=x,Q=_,F=g,b=A;x=e(x,_,g,A,f[L],7,-680876936),A=e(A,x,_,g,f[L+1],12,-389564586),g=e(g,A,x,_,f[L+2],17,606105819),_=e(_,g,A,x,f[L+3],22,-1044525330),x=e(x,_,g,A,f[L+4],7,-176418897),A=e(A,x,_,g,f[L+5],12,1200080426),g=e(g,A,x,_,f[L+6],17,-1473231341),_=e(_,g,A,x,f[L+7],22,-45705983),x=e(x,_,g,A,f[L+8],7,1770035416),A=e(A,x,_,g,f[L+9],12,-1958414417),g=e(g,A,x,_,f[L+10],17,-42063),_=e(_,g,A,x,f[L+11],22,-1990404162),x=e(x,_,g,A,f[L+12],7,1804603682),A=e(A,x,_,g,f[L+13],12,-40341101),g=e(g,A,x,_,f[L+14],17,-1502002290),_=e(_,g,A,x,f[L+15],22,1236535329),x=a(x,_,g,A,f[L+1],5,-165796510),A=a(A,x,_,g,f[L+6],9,-1069501632),g=a(g,A,x,_,f[L+11],14,643717713),_=a(_,g,A,x,f[L],20,-373897302),x=a(x,_,g,A,f[L+5],5,-701558691),A=a(A,x,_,g,f[L+10],9,38016083),g=a(g,A,x,_,f[L+15],14,-660478335),_=a(_,g,A,x,f[L+4],20,-405537848),x=a(x,_,g,A,f[L+9],5,568446438),A=a(A,x,_,g,f[L+14],9,-1019803690),g=a(g,A,x,_,f[L+3],14,-187363961),_=a(_,g,A,x,f[L+8],20,1163531501),x=a(x,_,g,A,f[L+13],5,-1444681467),A=a(A,x,_,g,f[L+2],9,-51403784),g=a(g,A,x,_,f[L+7],14,1735328473),_=a(_,g,A,x,f[L+12],20,-1926607734),x=u(x,_,g,A,f[L+5],4,-378558),A=u(A,x,_,g,f[L+8],11,-2022574463),g=u(g,A,x,_,f[L+11],16,1839030562),_=u(_,g,A,x,f[L+14],23,-35309556),x=u(x,_,g,A,f[L+1],4,-1530992060),A=u(A,x,_,g,f[L+4],11,1272893353),g=u(g,A,x,_,f[L+7],16,-155497632),_=u(_,g,A,x,f[L+10],23,-1094730640),x=u(x,_,g,A,f[L+13],4,681279174),A=u(A,x,_,g,f[L],11,-358537222),g=u(g,A,x,_,f[L+3],16,-722521979),_=u(_,g,A,x,f[L+6],23,76029189),x=u(x,_,g,A,f[L+9],4,-640364487),A=u(A,x,_,g,f[L+12],11,-421815835),g=u(g,A,x,_,f[L+15],16,530742520),_=u(_,g,A,x,f[L+2],23,-995338651),x=c(x,_,g,A,f[L],6,-198630844),A=c(A,x,_,g,f[L+7],10,1126891415),g=c(g,A,x,_,f[L+14],15,-1416354905),_=c(_,g,A,x,f[L+5],21,-57434055),x=c(x,_,g,A,f[L+12],6,1700485571),A=c(A,x,_,g,f[L+3],10,-1894986606),g=c(g,A,x,_,f[L+10],15,-1051523),_=c(_,g,A,x,f[L+1],21,-2054922799),x=c(x,_,g,A,f[L+8],6,1873313359),A=c(A,x,_,g,f[L+15],10,-30611744),g=c(g,A,x,_,f[L+6],15,-1560198380),_=c(_,g,A,x,f[L+13],21,1309151649),x=c(x,_,g,A,f[L+4],6,-145523070),A=c(A,x,_,g,f[L+11],10,-1120210379),g=c(g,A,x,_,f[L+2],15,718787259),_=c(_,g,A,x,f[L+9],21,-343485551),x=n(x,j),_=n(_,Q),g=n(g,F),A=n(A,b)}return[x,_,g,A]}(function r(f){if(0===f.length)return[];const T=8*f.length,x=new Uint32Array(w(T));for(let _=0;_<T;_+=8)x[_>>5]|=(255&f[_/8])<<_%32;return x}(f),8*f.length))}},38573:(ae,I)=>{"use strict";Object.defineProperty(I,"__esModule",{value:!0}),I.default=void 0;var t={randomUUID:typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};I.default=t},35057:(ae,I)=>{"use strict";Object.defineProperty(I,"__esModule",{value:!0}),I.default=void 0,I.default="00000000-0000-0000-0000-000000000000"},51130:(ae,I,l)=>{"use strict";Object.defineProperty(I,"__esModule",{value:!0}),I.default=void 0;var t=function w(n){return n&&n.__esModule?n:{default:n}}(l(61312));I.default=function p(n){if(!(0,t.default)(n))throw TypeError("Invalid UUID");let i;const s=new Uint8Array(16);return s[0]=(i=parseInt(n.slice(0,8),16))>>>24,s[1]=i>>>16&255,s[2]=i>>>8&255,s[3]=255&i,s[4]=(i=parseInt(n.slice(9,13),16))>>>8,s[5]=255&i,s[6]=(i=parseInt(n.slice(14,18),16))>>>8,s[7]=255&i,s[8]=(i=parseInt(n.slice(19,23),16))>>>8,s[9]=255&i,s[10]=(i=parseInt(n.slice(24,36),16))/1099511627776&255,s[11]=i/4294967296&255,s[12]=i>>>24&255,s[13]=i>>>16&255,s[14]=i>>>8&255,s[15]=255&i,s}},27591:(ae,I)=>{"use strict";Object.defineProperty(I,"__esModule",{value:!0}),I.default=void 0,I.default=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i},65241:(ae,I)=>{"use strict";let l;Object.defineProperty(I,"__esModule",{value:!0}),I.default=function w(){if(!l&&(l=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!l))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return l(t)};const t=new Uint8Array(16)},57359:(ae,I)=>{"use strict";function l(r,n,i,s){switch(r){case 0:return n&i^~n&s;case 1:case 3:return n^i^s;case 2:return n&i^n&s^i&s}}function t(r,n){return r<<n|r>>>32-n}Object.defineProperty(I,"__esModule",{value:!0}),I.default=void 0,I.default=function w(r){const n=[1518500249,1859775393,2400959708,3395469782],i=[1732584193,4023233417,2562383102,271733878,3285377520];if("string"==typeof r){const u=unescape(encodeURIComponent(r));r=[];for(let c=0;c<u.length;++c)r.push(u.charCodeAt(c))}else Array.isArray(r)||(r=Array.prototype.slice.call(r));r.push(128);const e=Math.ceil((r.length/4+2)/16),a=new Array(e);for(let u=0;u<e;++u){const c=new Uint32Array(16);for(let y=0;y<16;++y)c[y]=r[64*u+4*y]<<24|r[64*u+4*y+1]<<16|r[64*u+4*y+2]<<8|r[64*u+4*y+3];a[u]=c}a[e-1][14]=8*(r.length-1)/Math.pow(2,32),a[e-1][14]=Math.floor(a[e-1][14]),a[e-1][15]=8*(r.length-1)&4294967295;for(let u=0;u<e;++u){const c=new Uint32Array(80);for(let g=0;g<16;++g)c[g]=a[u][g];for(let g=16;g<80;++g)c[g]=t(c[g-3]^c[g-8]^c[g-14]^c[g-16],1);let y=i[0],f=i[1],T=i[2],x=i[3],_=i[4];for(let g=0;g<80;++g){const A=Math.floor(g/20),L=t(y,5)+l(A,f,T,x)+_+n[A]+c[g]>>>0;_=x,x=T,T=t(f,30)>>>0,f=y,y=L}i[0]=i[0]+y>>>0,i[1]=i[1]+f>>>0,i[2]=i[2]+T>>>0,i[3]=i[3]+x>>>0,i[4]=i[4]+_>>>0}return[i[0]>>24&255,i[0]>>16&255,i[0]>>8&255,255&i[0],i[1]>>24&255,i[1]>>16&255,i[1]>>8&255,255&i[1],i[2]>>24&255,i[2]>>16&255,i[2]>>8&255,255&i[2],i[3]>>24&255,i[3]>>16&255,i[3]>>8&255,255&i[3],i[4]>>24&255,i[4]>>16&255,i[4]>>8&255,255&i[4]]}},68173:(ae,I,l)=>{"use strict";Object.defineProperty(I,"__esModule",{value:!0}),I.default=void 0,I.unsafeStringify=r;var t=function w(s){return s&&s.__esModule?s:{default:s}}(l(61312));const p=[];for(let s=0;s<256;++s)p.push((s+256).toString(16).slice(1));function r(s,e=0){return p[s[e+0]]+p[s[e+1]]+p[s[e+2]]+p[s[e+3]]+"-"+p[s[e+4]]+p[s[e+5]]+"-"+p[s[e+6]]+p[s[e+7]]+"-"+p[s[e+8]]+p[s[e+9]]+"-"+p[s[e+10]]+p[s[e+11]]+p[s[e+12]]+p[s[e+13]]+p[s[e+14]]+p[s[e+15]]}I.default=function n(s,e=0){const a=r(s,e);if(!(0,t.default)(a))throw TypeError("Stringified UUID is invalid");return a}},15043:(ae,I,l)=>{"use strict";Object.defineProperty(I,"__esModule",{value:!0}),I.default=void 0;var t=function p(u){return u&&u.__esModule?u:{default:u}}(l(65241)),w=l(68173);let r,n,i=0,s=0;I.default=function e(u,c,y){let f=c&&y||0;const T=c||new Array(16);let x=(u=u||{}).node||r,_=void 0!==u.clockseq?u.clockseq:n;if(null==x||null==_){const F=u.random||(u.rng||t.default)();null==x&&(x=r=[1|F[0],F[1],F[2],F[3],F[4],F[5]]),null==_&&(_=n=16383&(F[6]<<8|F[7]))}let g=void 0!==u.msecs?u.msecs:Date.now(),A=void 0!==u.nsecs?u.nsecs:s+1;const L=g-i+(A-s)/1e4;if(L<0&&void 0===u.clockseq&&(_=_+1&16383),(L<0||g>i)&&void 0===u.nsecs&&(A=0),A>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");i=g,s=A,n=_,g+=122192928e5;const j=(1e4*(268435455&g)+A)%4294967296;T[f++]=j>>>24&255,T[f++]=j>>>16&255,T[f++]=j>>>8&255,T[f++]=255&j;const Q=g/4294967296*1e4&268435455;T[f++]=Q>>>8&255,T[f++]=255&Q,T[f++]=Q>>>24&15|16,T[f++]=Q>>>16&255,T[f++]=_>>>8|128,T[f++]=255&_;for(let F=0;F<6;++F)T[f+F]=x[F];return c||(0,w.unsafeStringify)(T)}},25745:(ae,I,l)=>{"use strict";Object.defineProperty(I,"__esModule",{value:!0}),I.default=void 0;var t=p(l(25046)),w=p(l(44339));function p(i){return i&&i.__esModule?i:{default:i}}var n=(0,t.default)("v3",48,w.default);I.default=n},25046:(ae,I,l)=>{"use strict";Object.defineProperty(I,"__esModule",{value:!0}),I.URL=I.DNS=void 0,I.default=function s(e,a,u){function c(y,f,T,x){var _;if("string"==typeof y&&(y=function r(e){e=unescape(encodeURIComponent(e));const a=[];for(let u=0;u<e.length;++u)a.push(e.charCodeAt(u));return a}(y)),"string"==typeof f&&(f=(0,w.default)(f)),16!==(null===(_=f)||void 0===_?void 0:_.length))throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");let g=new Uint8Array(16+y.length);if(g.set(f),g.set(y,f.length),g=u(g),g[6]=15&g[6]|a,g[8]=63&g[8]|128,T){x=x||0;for(let A=0;A<16;++A)T[x+A]=g[A];return T}return(0,t.unsafeStringify)(g)}try{c.name=e}catch{}return c.DNS=n,c.URL=i,c};var t=l(68173),w=function p(e){return e&&e.__esModule?e:{default:e}}(l(51130));const n="6ba7b810-9dad-11d1-80b4-00c04fd430c8";I.DNS=n;const i="6ba7b811-9dad-11d1-80b4-00c04fd430c8";I.URL=i},65511:(ae,I,l)=>{"use strict";Object.defineProperty(I,"__esModule",{value:!0}),I.default=void 0;var t=r(l(38573)),w=r(l(65241)),p=l(68173);function r(s){return s&&s.__esModule?s:{default:s}}I.default=function n(s,e,a){if(t.default.randomUUID&&!e&&!s)return t.default.randomUUID();const u=(s=s||{}).random||(s.rng||w.default)();if(u[6]=15&u[6]|64,u[8]=63&u[8]|128,e){a=a||0;for(let c=0;c<16;++c)e[a+c]=u[c];return e}return(0,p.unsafeStringify)(u)}},95461:(ae,I,l)=>{"use strict";Object.defineProperty(I,"__esModule",{value:!0}),I.default=void 0;var t=p(l(25046)),w=p(l(57359));function p(i){return i&&i.__esModule?i:{default:i}}var n=(0,t.default)("v5",80,w.default);I.default=n},61312:(ae,I,l)=>{"use strict";Object.defineProperty(I,"__esModule",{value:!0}),I.default=void 0;var t=function w(n){return n&&n.__esModule?n:{default:n}}(l(27591));I.default=function p(n){return"string"==typeof n&&t.default.test(n)}},98967:(ae,I,l)=>{"use strict";Object.defineProperty(I,"__esModule",{value:!0}),I.default=void 0;var t=function w(n){return n&&n.__esModule?n:{default:n}}(l(61312));I.default=function p(n){if(!(0,t.default)(n))throw TypeError("Invalid UUID");return parseInt(n.slice(14,15),16)}},55319:(ae,I,l)=>{"use strict";var t=l(39234),w=l(73763),p=l(73157),r=p("Object.prototype.toString"),n=l(47724)(),i=typeof globalThis>"u"?global:globalThis,s=w(),e=p("String.prototype.slice"),a={},u=l(10475),c=Object.getPrototypeOf;n&&u&&c&&t(s,function(T){if("function"==typeof i[T]){var x=new i[T];if(Symbol.toStringTag in x){var _=c(x),g=u(_,Symbol.toStringTag);if(!g){var A=c(_);g=u(A,Symbol.toStringTag)}a[T]=g.get}}});var f=l(53662);ae.exports=function(x){return!!f(x)&&(n&&Symbol.toStringTag in x?function(x){var _=!1;return t(a,function(g,A){if(!_)try{var L=g.call(x);L===A&&(_=L)}catch{}}),_}(x):e(r(x),8,-1))}},13216:(ae,I,l)=>{ae.exports=l(28646).Observable},28646:(ae,I)=>{"use strict";function t(b,P){if(!(b instanceof P))throw new TypeError("Cannot call a class as a function")}function w(b,P){for(var d=0;d<P.length;d++){var O=P[d];O.enumerable=O.enumerable||!1,O.configurable=!0,"value"in O&&(O.writable=!0),Object.defineProperty(b,O.key,O)}}function p(b,P,d){return P&&w(b.prototype,P),d&&w(b,d),b}I.Observable=void 0;var r=function(){return"function"==typeof Symbol},n=function(b){return r()&&!!Symbol[b]},i=function(b){return n(b)?Symbol[b]:"@@"+b};r()&&!n("observable")&&(Symbol.observable=Symbol("observable"));var s=i("iterator"),e=i("observable"),a=i("species");function u(b,P){var d=b[P];if(null!=d){if("function"!=typeof d)throw new TypeError(d+" is not a function");return d}}function c(b){var P=b.constructor;return void 0!==P&&null===(P=P[a])&&(P=void 0),void 0!==P?P:F}function f(b){f.log?f.log(b):setTimeout(function(){throw b})}function T(b){Promise.resolve().then(function(){try{b()}catch(P){f(P)}})}function x(b){var P=b._cleanup;if(void 0!==P&&(b._cleanup=void 0,P))try{if("function"==typeof P)P();else{var d=u(P,"unsubscribe");d&&d.call(P)}}catch(O){f(O)}}function _(b){b._observer=void 0,b._queue=void 0,b._state="closed"}function A(b,P,d){b._state="running";var O=b._observer;try{var v=u(O,P);switch(P){case"next":v&&v.call(O,d);break;case"error":if(_(b),!v)throw d;v.call(O,d);break;case"complete":_(b),v&&v.call(O)}}catch(M){f(M)}"closed"===b._state?x(b):"running"===b._state&&(b._state="ready")}function L(b,P,d){if("closed"!==b._state){if("buffering"===b._state)return void b._queue.push({type:P,value:d});if("ready"!==b._state)return b._state="buffering",b._queue=[{type:P,value:d}],void T(function(){return function g(b){var P=b._queue;if(P){b._queue=void 0,b._state="ready";for(var d=0;d<P.length&&(A(b,P[d].type,P[d].value),"closed"!==b._state);++d);}}(b)});A(b,P,d)}}var j=function(){function b(P,d){t(this,b),this._cleanup=void 0,this._observer=P,this._queue=void 0,this._state="initializing";var O=new Q(this);try{this._cleanup=d.call(void 0,O)}catch(v){O.error(v)}"initializing"===this._state&&(this._state="ready")}return p(b,[{key:"unsubscribe",value:function(){"closed"!==this._state&&(_(this),x(this))}},{key:"closed",get:function(){return"closed"===this._state}}]),b}(),Q=function(){function b(P){t(this,b),this._subscription=P}return p(b,[{key:"next",value:function(d){L(this._subscription,"next",d)}},{key:"error",value:function(d){L(this._subscription,"error",d)}},{key:"complete",value:function(){L(this._subscription,"complete")}},{key:"closed",get:function(){return"closed"===this._subscription._state}}]),b}(),F=function(){function b(P){if(t(this,b),!(this instanceof b))throw new TypeError("Observable cannot be called as a function");if("function"!=typeof P)throw new TypeError("Observable initializer must be a function");this._subscriber=P}return p(b,[{key:"subscribe",value:function(d){return("object"!=typeof d||null===d)&&(d={next:d,error:arguments[1],complete:arguments[2]}),new j(d,this._subscriber)}},{key:"forEach",value:function(d){var O=this;return new Promise(function(v,M){if("function"==typeof d)var V=O.subscribe({next:function(J){try{d(J,W)}catch(ue){M(ue),V.unsubscribe()}},error:M,complete:v});else M(new TypeError(d+" is not a function"));function W(){V.unsubscribe(),v()}})}},{key:"map",value:function(d){var O=this;if("function"!=typeof d)throw new TypeError(d+" is not a function");return new(c(this))(function(M){return O.subscribe({next:function(W){try{W=d(W)}catch(V){return M.error(V)}M.next(W)},error:function(W){M.error(W)},complete:function(){M.complete()}})})}},{key:"filter",value:function(d){var O=this;if("function"!=typeof d)throw new TypeError(d+" is not a function");return new(c(this))(function(M){return O.subscribe({next:function(W){try{if(!d(W))return}catch(V){return M.error(V)}M.next(W)},error:function(W){M.error(W)},complete:function(){M.complete()}})})}},{key:"reduce",value:function(d){var O=this;if("function"!=typeof d)throw new TypeError(d+" is not a function");var v=c(this),M=arguments.length>1,W=!1,J=arguments[1];return new v(function(ue){return O.subscribe({next:function(me){var X=!W;if(W=!0,!X||M)try{J=d(J,me)}catch(he){return ue.error(he)}else J=me},error:function(me){ue.error(me)},complete:function(){if(!W&&!M)return ue.error(new TypeError("Cannot reduce an empty sequence"));ue.next(J),ue.complete()}})})}},{key:"concat",value:function(){for(var d=this,O=arguments.length,v=new Array(O),M=0;M<O;M++)v[M]=arguments[M];var W=c(this);return new W(function(V){var J,ue=0;return function me(X){J=X.subscribe({next:function(he){V.next(he)},error:function(he){V.error(he)},complete:function(){ue===v.length?(J=void 0,V.complete()):me(W.from(v[ue++]))}})}(d),function(){J&&(J.unsubscribe(),J=void 0)}})}},{key:"flatMap",value:function(d){var O=this;if("function"!=typeof d)throw new TypeError(d+" is not a function");var v=c(this);return new v(function(M){var W=[],V=O.subscribe({next:function(ue){if(d)try{ue=d(ue)}catch(X){return M.error(X)}var me=v.from(ue).subscribe({next:function(X){M.next(X)},error:function(X){M.error(X)},complete:function(){var X=W.indexOf(me);X>=0&&W.splice(X,1),J()}});W.push(me)},error:function(ue){M.error(ue)},complete:function(){J()}});function J(){V.closed&&0===W.length&&M.complete()}return function(){W.forEach(function(ue){return ue.unsubscribe()}),V.unsubscribe()}})}},{key:e,value:function(){return this}}],[{key:"from",value:function(d){var O="function"==typeof this?this:b;if(null==d)throw new TypeError(d+" is not an object");var v=u(d,e);if(v){var M=v.call(d);if(Object(M)!==M)throw new TypeError(M+" is not an object");return function y(b){return b instanceof F}(M)&&M.constructor===O?M:new O(function(W){return M.subscribe(W)})}if(n("iterator")&&(v=u(d,s)))return new O(function(W){T(function(){if(!W.closed){var V=!0,J=!1,ue=void 0;try{for(var X,me=v.call(d)[Symbol.iterator]();!(V=(X=me.next()).done);V=!0)if(W.next(X.value),W.closed)return}catch(ie){J=!0,ue=ie}finally{try{!V&&null!=me.return&&me.return()}finally{if(J)throw ue}}W.complete()}})});if(Array.isArray(d))return new O(function(W){T(function(){if(!W.closed){for(var V=0;V<d.length;++V)if(W.next(d[V]),W.closed)return;W.complete()}})});throw new TypeError(d+" is not observable")}},{key:"of",value:function(){for(var d=arguments.length,O=new Array(d),v=0;v<d;v++)O[v]=arguments[v];return new("function"==typeof this?this:b)(function(W){T(function(){if(!W.closed){for(var V=0;V<O.length;++V)if(W.next(O[V]),W.closed)return;W.complete()}})})}},{key:a,get:function(){return this}}]),b}();I.Observable=F,r()&&Object.defineProperty(F,Symbol("extensions"),{value:{symbol:e,hostReportError:f},configurable:!0})},81667:(ae,I,l)=>{"use strict";l.r(I),l.d(I,{AppSyncRequestHandler:()=>u});var t=l(50365),w=l(64698),p=l(26358),r=l(4822),i=l(10653),s=l(94308),e=l(56881),a=l(51356);class u{handle(y){return new t.y(f=>{const T="string"==typeof y.additionalParams?.aws_appsync_graphqlEndpoint?y.additionalParams.aws_appsync_graphqlEndpoint:"",x="string"==typeof y.additionalParams?.aws_appsync_region?y.additionalParams.aws_appsync_region:"",_={type:"string"==typeof y.additionalParams?.aws_appsync_authenticationType?y.additionalParams.aws_appsync_authenticationType:"",apiKey:"string"==typeof y.additionalParams?.aws_appsync_apiKey?y.additionalParams.aws_appsync_apiKey:"",jwtToken:"string"==typeof y.additionalParams?.aws_appsync_jwtToken?y.additionalParams.aws_appsync_jwtToken:""},g=i.ApolloLink.from([(0,p.W9)({url:T,region:x,auth:_}),(0,r.createSubscriptionHandshakeLink)({url:T,region:x,auth:_})]),A=new s.f({link:g,cache:new e.h}),L=Date.now();return this.subscription=A.subscribe({query:(0,w.Qc)(y.query),variables:y.variables}).subscribe((0,a.P)(f,y.url,L)),()=>{this.destroy()}})}destroy(){this.subscription?.closed&&this.subscription?.unsubscribe()}}},53073:function(ae,I,l){"use strict";var A,t=this&&this.__extends||(A=function(L,j){return(A=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Q,F){Q.__proto__=F}||function(Q,F){for(var b in F)F.hasOwnProperty(b)&&(Q[b]=F[b])})(L,j)},function(L,j){function Q(){this.constructor=L}A(L,j),L.prototype=null===j?Object.create(j):(Q.prototype=j.prototype,new Q)}),w=this&&this.__assign||function(){return w=Object.assign||function(A){for(var L,j=1,Q=arguments.length;j<Q;j++)for(var F in L=arguments[j])Object.prototype.hasOwnProperty.call(L,F)&&(A[F]=L[F]);return A},w.apply(this,arguments)},p=this&&this.__awaiter||function(A,L,j,Q){return new(j||(j=Promise))(function(b,P){function d(M){try{v(Q.next(M))}catch(W){P(W)}}function O(M){try{v(Q.throw(M))}catch(W){P(W)}}function v(M){M.done?b(M.value):function F(b){return b instanceof j?b:new j(function(P){P(b)})}(M.value).then(d,O)}v((Q=Q.apply(A,L||[])).next())})},r=this&&this.__generator||function(A,L){var Q,F,b,P,j={label:0,sent:function(){if(1&b[0])throw b[1];return b[1]},trys:[],ops:[]};return P={next:d(0),throw:d(1),return:d(2)},"function"==typeof Symbol&&(P[Symbol.iterator]=function(){return this}),P;function d(v){return function(M){return function O(v){if(Q)throw new TypeError("Generator is already executing.");for(;j;)try{if(Q=1,F&&(b=2&v[0]?F.return:v[0]?F.throw||((b=F.return)&&b.call(F),0):F.next)&&!(b=b.call(F,v[1])).done)return b;switch(F=0,b&&(v=[2&v[0],b.value]),v[0]){case 0:case 1:b=v;break;case 4:return j.label++,{value:v[1],done:!1};case 5:j.label++,F=v[1],v=[0];continue;case 7:v=j.ops.pop(),j.trys.pop();continue;default:if(!(b=(b=j.trys).length>0&&b[b.length-1])&&(6===v[0]||2===v[0])){j=0;continue}if(3===v[0]&&(!b||v[1]>b[0]&&v[1]<b[3])){j.label=v[1];break}if(6===v[0]&&j.label<b[1]){j.label=b[1],b=v;break}if(b&&j.label<b[2]){j.label=b[2],j.ops.push(v);break}b[2]&&j.ops.pop(),j.trys.pop();continue}v=L.call(A,j)}catch(M){v=[6,M],F=0}finally{Q=b=0}if(5&v[0])throw v[1];return{value:v[0]?v[1]:void 0,done:!0}}([v,M])}}};Object.defineProperty(I,"__esModule",{value:!0});var y,n=l(92955),i=l(28133),s=l(77688),e=l(22016),a=l(40048),u=l(44226);I.USER_AGENT_HEADER="x-amz-user-agent",I.USER_AGENT="aws-amplify/"+u.version+(a.userAgent&&" ")+a.userAgent,function(A){A.NONE="NONE",A.API_KEY="API_KEY",A.AWS_IAM="AWS_IAM",A.AMAZON_COGNITO_USER_POOLS="AMAZON_COGNITO_USER_POOLS",A.OPENID_CONNECT="OPENID_CONNECT"}(y=I.AUTH_TYPE||(I.AUTH_TYPE={}));var f=function(A){function L(j){var Q=A.call(this)||this;return Q.link=I.authLink(j),Q}return t(L,A),L.prototype.request=function(j,Q){return this.link.request(j,Q)},L}(n.ApolloLink);I.AuthLink=f;var T=function(A,L,j){var Q=void 0===A?{header:"",value:""}:A,F=Q.header,b=Q.value;return p(void 0,void 0,void 0,function(){var P,d,v,M,W;return r(this,function(V){switch(V.label){case 0:return P=L.getContext(),d=w(w({},P.headers),((M={})[I.USER_AGENT_HEADER]=I.USER_AGENT,M)),F&&b?"function"!=typeof b?[3,2]:[4,b.call(void 0)]:[3,5];case 1:return v=V.sent(),[3,4];case 2:return[4,b];case 3:v=V.sent(),V.label=4;case 4:d=w(((W={})[F]=v,W),d),V.label=5;case 5:return L.setContext(w(w({},P),{headers:d})),[2,j(L)]}})})};I.authLink=function(A){var L=A.url,j=A.region,Q=A.auth,F=(void 0===Q?{}:Q).type,b=A.auth;return new n.ApolloLink(function(P,d){return new n.Observable(function(O){var v,M;switch(F){case y.NONE:M=T(void 0,P,d);break;case y.AWS_IAM:var W=b.credentials;M=function(A,L,j){var Q=A.credentials,F=A.region,b=A.url;return p(void 0,void 0,void 0,function(){var P,d,O,v,M,W,V,J,ue,me,X,he,ie;return r(this,function(K){switch(K.label){case 0:return P="appsync",d=L.getContext(),(O="function"==typeof Q?Q.call():Q||{})&&"function"==typeof O.getPromise?[4,O.getPromise()]:[3,2];case 1:K.sent(),K.label=2;case 2:return[4,O];case 3:return v=K.sent(),M=v.accessKeyId,W=v.secretAccessKey,V=v.sessionToken,J=e.parse(b),ue=J.host,me=J.path,X=w(w({},_(L,{})),{service:P,region:F,url:b,host:ue,path:me}),he=s.Signer.sign(X,{access_key:M,secret_key:W,session_token:V}).headers,L.setContext(w(w({},d),{headers:w(w(w({},d.headers),he),(ie={},ie[I.USER_AGENT_HEADER]=I.USER_AGENT,ie))})),[2,j(L)]}})})}({credentials:void 0===W?{}:W,region:j,url:L},P,d);break;case y.API_KEY:var J=b.apiKey;M=T({header:"X-Api-Key",value:void 0===J?"":J},P,d);break;case y.AMAZON_COGNITO_USER_POOLS:case y.OPENID_CONNECT:var me=b.jwtToken;M=T({header:"Authorization",value:void 0===me?"":me},P,d);break;default:throw new Error("Invalid AUTH_TYPE: "+b.type)}return M.then(function(ie){v=ie.subscribe({next:O.next.bind(O),error:O.error.bind(O),complete:O.complete.bind(O)})}),function(){v&&v.unsubscribe()}})})};var _=function(A,L){var F=A.query,b={operationName:A.operationName,variables:g(A.variables),query:i.print(F)};return w(w({body:JSON.stringify(b),method:"POST"},L),{headers:w({accept:"*/*","content-type":"application/json; charset=UTF-8"},L.headers)})},g=function(A){return Object.keys(A).filter(function(L){return!L.startsWith("@@")}).reduce(function(L,j){return L[j]=A[j],L},{})}},26358:(ae,I,l)=>{"use strict";var w=l(53073);I.W9=function(r){return new w.AuthLink({url:r.url,region:r.region,auth:r.auth})},l(77688)},40048:(ae,I)=>{"use strict";Object.defineProperty(I,"__esModule",{value:!0}),I.userAgent=""},77688:(ae,I,l)=>{"use strict";Object.defineProperty(I,"__esModule",{value:!0}),function t(w){for(var p in w)I.hasOwnProperty(p)||(I[p]=w[p])}(l(25905))},25905:(ae,I,l)=>{"use strict";Object.defineProperty(I,"__esModule",{value:!0}),global.Buffer=global.Buffer||l(26149).lW;var t=l(22016),w=l(13566).util.crypto,p=function(_,g,A){return void 0===A&&(A=""),w.lib.createHmac("sha256",_).update(g,"utf8").digest(A)},r=function(_){return _=_||"",w.createHash("sha256").update(_,"utf8").digest("hex")},n=function(_){return _&&0!==Object.keys(_).length?Object.keys(_).map(function(g){return{key:g.toLowerCase(),value:_[g]?_[g].trim().replace(/\s+/g," "):""}}).sort(function(g,A){return g.key<A.key?-1:1}).map(function(g){return g.key+":"+g.value}).join("\n")+"\n":""},i=function(_){return Object.keys(_).map(function(g){return g.toLowerCase()}).sort().join(";")},T=function(_,g,A){void 0===A&&(A=null),_.headers=_.headers||{};var j=(new Date).toISOString().replace(/[:-]|\.\d{3}/g,""),Q=j.substr(0,8),F="AWS4-HMAC-SHA256",b=t.parse(_.url);_.headers.host=b.host,_.headers["x-amz-date"]=j,g.session_token&&(_.headers["X-Amz-Security-Token"]=g.session_token);var P=function(_){var g=t.parse(_.url);return[_.method||"/",g.path,g.query,n(_.headers),i(_.headers),r(_.body)].join("\n")}(_);A=A||function(_){var j=(t.parse(_.url).host.match(/([^.]+)\.(?:([^.]*)\.)?amazonaws\.com$/)||[]).slice(1,3);return"es"===j[1]&&(j=j.reverse()),{service:_.service||j[0],region:_.region||j[1]}}(_);var d=function(_,g,A){return[_,g,A,"aws4_request"].join("/")}(Q,A.region,A.service),O=function(_,g,A,L){return[_,A,L,r(g)].join("\n")}(F,P,j,d),v=function(_,g,A){void 0===_&&(_="");var j=p("AWS4"+_,g),Q=p(j,A.region),F=p(Q,A.service);return p(F,"aws4_request")}(g.secret_key,Q,A),M=function(_,g){return p(_,g,"hex")}(v,O),W=function(_,g,A,L,j){return void 0===g&&(g=""),[_+" Credential="+g+"/"+A,"SignedHeaders="+L,"Signature="+j].join(", ")}(F,g.access_key,d,i(_.headers),M);return _.headers.Authorization=W,_},x=function(){function _(){}return _.sign=T,_}();I.Signer=x,I.default=x},97378:(ae,I,l)=>{"use strict";l.d(I,{Jh:()=>a,ZT:()=>w,_T:()=>r,mG:()=>e,pi:()=>p,pr:()=>T});var t=function(F,b){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(P,d){P.__proto__=d}||function(P,d){for(var O in d)d.hasOwnProperty(O)&&(P[O]=d[O])})(F,b)};function w(F,b){function P(){this.constructor=F}t(F,b),F.prototype=null===b?Object.create(b):(P.prototype=b.prototype,new P)}var p=function(){return p=Object.assign||function(b){for(var P,d=1,O=arguments.length;d<O;d++)for(var v in P=arguments[d])Object.prototype.hasOwnProperty.call(P,v)&&(b[v]=P[v]);return b},p.apply(this,arguments)};function r(F,b){var P={};for(var d in F)Object.prototype.hasOwnProperty.call(F,d)&&b.indexOf(d)<0&&(P[d]=F[d]);if(null!=F&&"function"==typeof Object.getOwnPropertySymbols){var O=0;for(d=Object.getOwnPropertySymbols(F);O<d.length;O++)b.indexOf(d[O])<0&&Object.prototype.propertyIsEnumerable.call(F,d[O])&&(P[d[O]]=F[d[O]])}return P}function e(F,b,P,d){return new(P||(P=Promise))(function(O,v){function M(J){try{V(d.next(J))}catch(ue){v(ue)}}function W(J){try{V(d.throw(J))}catch(ue){v(ue)}}function V(J){J.done?O(J.value):new P(function(ue){ue(J.value)}).then(M,W)}V((d=d.apply(F,b||[])).next())})}function a(F,b){var d,O,v,M,P={label:0,sent:function(){if(1&v[0])throw v[1];return v[1]},trys:[],ops:[]};return M={next:W(0),throw:W(1),return:W(2)},"function"==typeof Symbol&&(M[Symbol.iterator]=function(){return this}),M;function W(J){return function(ue){return function V(J){if(d)throw new TypeError("Generator is already executing.");for(;P;)try{if(d=1,O&&(v=2&J[0]?O.return:J[0]?O.throw||((v=O.return)&&v.call(O),0):O.next)&&!(v=v.call(O,J[1])).done)return v;switch(O=0,v&&(J=[2&J[0],v.value]),J[0]){case 0:case 1:v=J;break;case 4:return P.label++,{value:J[1],done:!1};case 5:P.label++,O=J[1],J=[0];continue;case 7:J=P.ops.pop(),P.trys.pop();continue;default:if(!(v=(v=P.trys).length>0&&v[v.length-1])&&(6===J[0]||2===J[0])){P=0;continue}if(3===J[0]&&(!v||J[1]>v[0]&&J[1]<v[3])){P.label=J[1];break}if(6===J[0]&&P.label<v[1]){P.label=v[1],v=J;break}if(v&&P.label<v[2]){P.label=v[2],P.ops.push(J);break}v[2]&&P.ops.pop(),P.trys.pop();continue}J=b.call(F,P)}catch(ue){J=[6,ue],O=0}finally{d=v=0}if(5&J[0])throw J[1];return{value:J[0]?J[1]:void 0,done:!0}}([J,ue])}}}function T(){for(var F=0,b=0,P=arguments.length;b<P;b++)F+=arguments[b].length;var d=Array(F),O=0;for(b=0;b<P;b++)for(var v=arguments[b],M=0,W=v.length;M<W;M++,O++)d[O]=v[M];return d}},30705:(ae,I,l)=>{"use strict";l.r(I),l.d(I,{__assign:()=>p,__asyncDelegator:()=>A,__asyncGenerator:()=>g,__asyncValues:()=>L,__await:()=>_,__awaiter:()=>e,__classPrivateFieldGet:()=>b,__classPrivateFieldSet:()=>P,__createBinding:()=>u,__decorate:()=>n,__exportStar:()=>c,__extends:()=>w,__generator:()=>a,__importDefault:()=>F,__importStar:()=>Q,__makeTemplateObject:()=>j,__metadata:()=>s,__param:()=>i,__read:()=>f,__rest:()=>r,__spread:()=>T,__spreadArrays:()=>x,__values:()=>y});var t=function(d,O){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(v,M){v.__proto__=M}||function(v,M){for(var W in M)M.hasOwnProperty(W)&&(v[W]=M[W])})(d,O)};function w(d,O){function v(){this.constructor=d}t(d,O),d.prototype=null===O?Object.create(O):(v.prototype=O.prototype,new v)}var p=function(){return p=Object.assign||function(O){for(var v,M=1,W=arguments.length;M<W;M++)for(var V in v=arguments[M])Object.prototype.hasOwnProperty.call(v,V)&&(O[V]=v[V]);return O},p.apply(this,arguments)};function r(d,O){var v={};for(var M in d)Object.prototype.hasOwnProperty.call(d,M)&&O.indexOf(M)<0&&(v[M]=d[M]);if(null!=d&&"function"==typeof Object.getOwnPropertySymbols){var W=0;for(M=Object.getOwnPropertySymbols(d);W<M.length;W++)O.indexOf(M[W])<0&&Object.prototype.propertyIsEnumerable.call(d,M[W])&&(v[M[W]]=d[M[W]])}return v}function n(d,O,v,M){var J,W=arguments.length,V=W<3?O:null===M?M=Object.getOwnPropertyDescriptor(O,v):M;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)V=Reflect.decorate(d,O,v,M);else for(var ue=d.length-1;ue>=0;ue--)(J=d[ue])&&(V=(W<3?J(V):W>3?J(O,v,V):J(O,v))||V);return W>3&&V&&Object.defineProperty(O,v,V),V}function i(d,O){return function(v,M){O(v,M,d)}}function s(d,O){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(d,O)}function e(d,O,v,M){return new(v||(v=Promise))(function(V,J){function ue(he){try{X(M.next(he))}catch(ie){J(ie)}}function me(he){try{X(M.throw(he))}catch(ie){J(ie)}}function X(he){he.done?V(he.value):function W(V){return V instanceof v?V:new v(function(J){J(V)})}(he.value).then(ue,me)}X((M=M.apply(d,O||[])).next())})}function a(d,O){var M,W,V,J,v={label:0,sent:function(){if(1&V[0])throw V[1];return V[1]},trys:[],ops:[]};return J={next:ue(0),throw:ue(1),return:ue(2)},"function"==typeof Symbol&&(J[Symbol.iterator]=function(){return this}),J;function ue(X){return function(he){return function me(X){if(M)throw new TypeError("Generator is already executing.");for(;v;)try{if(M=1,W&&(V=2&X[0]?W.return:X[0]?W.throw||((V=W.return)&&V.call(W),0):W.next)&&!(V=V.call(W,X[1])).done)return V;switch(W=0,V&&(X=[2&X[0],V.value]),X[0]){case 0:case 1:V=X;break;case 4:return v.label++,{value:X[1],done:!1};case 5:v.label++,W=X[1],X=[0];continue;case 7:X=v.ops.pop(),v.trys.pop();continue;default:if(!(V=(V=v.trys).length>0&&V[V.length-1])&&(6===X[0]||2===X[0])){v=0;continue}if(3===X[0]&&(!V||X[1]>V[0]&&X[1]<V[3])){v.label=X[1];break}if(6===X[0]&&v.label<V[1]){v.label=V[1],V=X;break}if(V&&v.label<V[2]){v.label=V[2],v.ops.push(X);break}V[2]&&v.ops.pop(),v.trys.pop();continue}X=O.call(d,v)}catch(he){X=[6,he],W=0}finally{M=V=0}if(5&X[0])throw X[1];return{value:X[0]?X[1]:void 0,done:!0}}([X,he])}}}function u(d,O,v,M){void 0===M&&(M=v),d[M]=O[v]}function c(d,O){for(var v in d)"default"!==v&&!O.hasOwnProperty(v)&&(O[v]=d[v])}function y(d){var O="function"==typeof Symbol&&Symbol.iterator,v=O&&d[O],M=0;if(v)return v.call(d);if(d&&"number"==typeof d.length)return{next:function(){return d&&M>=d.length&&(d=void 0),{value:d&&d[M++],done:!d}}};throw new TypeError(O?"Object is not iterable.":"Symbol.iterator is not defined.")}function f(d,O){var v="function"==typeof Symbol&&d[Symbol.iterator];if(!v)return d;var W,J,M=v.call(d),V=[];try{for(;(void 0===O||O-- >0)&&!(W=M.next()).done;)V.push(W.value)}catch(ue){J={error:ue}}finally{try{W&&!W.done&&(v=M.return)&&v.call(M)}finally{if(J)throw J.error}}return V}function T(){for(var d=[],O=0;O<arguments.length;O++)d=d.concat(f(arguments[O]));return d}function x(){for(var d=0,O=0,v=arguments.length;O<v;O++)d+=arguments[O].length;var M=Array(d),W=0;for(O=0;O<v;O++)for(var V=arguments[O],J=0,ue=V.length;J<ue;J++,W++)M[W]=V[J];return M}function _(d){return this instanceof _?(this.v=d,this):new _(d)}function g(d,O,v){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var W,M=v.apply(d,O||[]),V=[];return W={},J("next"),J("throw"),J("return"),W[Symbol.asyncIterator]=function(){return this},W;function J(K){M[K]&&(W[K]=function(G){return new Promise(function(re,Y){V.push([K,G,re,Y])>1||ue(K,G)})})}function ue(K,G){try{!function me(K){K.value instanceof _?Promise.resolve(K.value.v).then(X,he):ie(V[0][2],K)}(M[K](G))}catch(re){ie(V[0][3],re)}}function X(K){ue("next",K)}function he(K){ue("throw",K)}function ie(K,G){K(G),V.shift(),V.length&&ue(V[0][0],V[0][1])}}function A(d){var O,v;return O={},M("next"),M("throw",function(W){throw W}),M("return"),O[Symbol.iterator]=function(){return this},O;function M(W,V){O[W]=d[W]?function(J){return(v=!v)?{value:_(d[W](J)),done:"return"===W}:V?V(J):J}:V}}function L(d){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var v,O=d[Symbol.asyncIterator];return O?O.call(d):(d=y(d),v={},M("next"),M("throw"),M("return"),v[Symbol.asyncIterator]=function(){return this},v);function M(V){v[V]=d[V]&&function(J){return new Promise(function(ue,me){!function W(V,J,ue,me){Promise.resolve(me).then(function(X){V({value:X,done:ue})},J)}(ue,me,(J=d[V](J)).done,J.value)})}}}function j(d,O){return Object.defineProperty?Object.defineProperty(d,"raw",{value:O}):d.raw=O,d}function Q(d){if(d&&d.__esModule)return d;var O={};if(null!=d)for(var v in d)Object.hasOwnProperty.call(d,v)&&(O[v]=d[v]);return O.default=d,O}function F(d){return d&&d.__esModule?d:{default:d}}function b(d,O){if(!O.has(d))throw new TypeError("attempted to get private field on non-instance");return O.get(d)}function P(d,O,v){if(!O.has(d))throw new TypeError("attempted to set private field on non-instance");return O.set(d,v),v}},47310:()=>{},73763:ae=>{"use strict";var I=["BigInt64Array","BigUint64Array","Float32Array","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray"],l=typeof globalThis>"u"?global:globalThis;ae.exports=function(){for(var w=[],p=0;p<I.length;p++)"function"==typeof l[I[p]]&&(w[w.length]=I[p]);return w}},10475:(ae,I,l)=>{"use strict";var w=l(82422)("%Object.getOwnPropertyDescriptor%",!0);if(w)try{w([],"length")}catch{w=null}ae.exports=w},33379:(ae,I,l)=>{"use strict";l.r(I),l.d(I,{ApolloCache:()=>kn,ApolloClient:()=>bi,ApolloError:()=>Yt,ApolloLink:()=>mt,Cache:()=>cn,HttpLink:()=>tr,InMemoryCache:()=>Di,MissingFieldError:()=>fn,NetworkStatus:()=>tt,Observable:()=>be,ObservableQuery:()=>Lr,checkFetcher:()=>Kt,concat:()=>Li,createHttpLink:()=>er,createSignalIfSupported:()=>cr,defaultDataIdFromObject:()=>pr,defaultPrinter:()=>Xt,disableExperimentalFragmentVariables:()=>wr.J9,disableFragmentWarnings:()=>wr._t,empty:()=>Mi,enableExperimentalFragmentVariables:()=>wr.wO,execute:()=>Nt,fallbackHttpConfig:()=>sr,from:()=>ki,fromError:()=>Zt,fromPromise:()=>Bi,gql:()=>wr.Ps,isApolloError:()=>On,isReference:()=>R,makeReference:()=>m,makeVar:()=>In,mergeOptions:()=>Nr,parseAndCheckHttpResponse:()=>Ot,resetCaches:()=>wr.HW,rewriteURIForGET:()=>Cr,selectHttpOptionsAndBody:()=>Tr,selectHttpOptionsAndBodyInternal:()=>ur,selectURI:()=>Or,serializeFetchParameter:()=>Qt,setLogVerbosity:()=>u,split:()=>Fi,throwServerError:()=>$t,toPromise:()=>Ni});var t=l(30512),w="Invariant Violation",p=Object.setPrototypeOf,r=void 0===p?function(S,o){return S.__proto__=o,S}:p,n=function(S){function o(h){void 0===h&&(h=w);var E=S.call(this,"number"==typeof h?w+": "+h+" (see https://github.com/apollographql/invariant-packages)":h)||this;return E.framesToPop=1,E.name=w,r(E,o.prototype),E}return(0,t.ZT)(o,S),o}(Error);function i(S,o){if(!S)throw new n(o)}var S,s=["debug","log","warn","error","silent"],e=s.indexOf("log");function a(S){return function(){if(s.indexOf(S)>=e)return(console[S]||console.log).apply(console,arguments)}}function u(S){var o=s[e];return e=Math.max(0,s.indexOf(S)),o}function y(S){try{return S()}catch{}}(S=i||(i={})).debug=a("debug"),S.log=a("log"),S.warn=a("warn"),S.error=a("error");const f=y(function(){return globalThis})||y(function(){return window})||y(function(){return self})||y(function(){return global})||y(function(){return y.constructor("return this")()});var T="__",x=[T,T].join("DEV");const g=function _(){try{return!!__DEV__}catch{return Object.defineProperty(f,x,{value:"production"!==y(function(){return"production"}),enumerable:!1,configurable:!0,writable:!0}),f[x]}}();function A(S){try{return S()}catch{}}var L=A(function(){return globalThis})||A(function(){return window})||A(function(){return self})||A(function(){return global})||A(function(){return A.constructor("return this")()}),j=!1;function M(S,o){(null==o||o>S.length)&&(o=S.length);for(var h=0,E=new Array(o);h<o;h++)E[h]=S[h];return E}function W(S,o){for(var h=0;h<o.length;h++){var E=o[h];E.enumerable=E.enumerable||!1,E.configurable=!0,"value"in E&&(E.writable=!0),Object.defineProperty(S,E.key,E)}}function V(S,o,h){return o&&W(S.prototype,o),h&&W(S,h),Object.defineProperty(S,"prototype",{writable:!1}),S}!function Q(){L&&!A(function(){return"production"})&&!A(function(){return process})&&(Object.defineProperty(L,"process",{value:{env:{NODE_ENV:"production"}},configurable:!0,enumerable:!1,writable:!0}),j=!0)}(),l(1643),function P(){(function F(){j&&(delete L.process,j=!1)})()}(),function d(){__DEV__?i("boolean"==typeof g,g):i("boolean"==typeof g,36)}();var J=function(){return"function"==typeof Symbol},ue=function(S){return J()&&!!Symbol[S]},me=function(S){return ue(S)?Symbol[S]:"@@"+S};J()&&!ue("observable")&&(Symbol.observable=Symbol("observable"));var X=me("iterator"),he=me("observable"),ie=me("species");function K(S,o){var h=S[o];if(null!=h){if("function"!=typeof h)throw new TypeError(h+" is not a function");return h}}function G(S){var o=S.constructor;return void 0!==o&&null===(o=o[ie])&&(o=void 0),void 0!==o?o:be}function Y(S){Y.log?Y.log(S):setTimeout(function(){throw S})}function k(S){Promise.resolve().then(function(){try{S()}catch(o){Y(o)}})}function C(S){var o=S._cleanup;if(void 0!==o&&(S._cleanup=void 0,o))try{if("function"==typeof o)o();else{var h=K(o,"unsubscribe");h&&h.call(o)}}catch(E){Y(E)}}function N(S){S._observer=void 0,S._queue=void 0,S._state="closed"}function Z(S,o,h){S._state="running";var E=S._observer;try{var B=K(E,o);switch(o){case"next":B&&B.call(E,h);break;case"error":if(N(S),!B)throw h;B.call(E,h);break;case"complete":N(S),B&&B.call(E)}}catch(z){Y(z)}"closed"===S._state?C(S):"running"===S._state&&(S._state="ready")}function fe(S,o,h){if("closed"!==S._state){if("buffering"===S._state)return void S._queue.push({type:o,value:h});if("ready"!==S._state)return S._state="buffering",S._queue=[{type:o,value:h}],void k(function(){return function q(S){var o=S._queue;if(o){S._queue=void 0,S._state="ready";for(var h=0;h<o.length&&(Z(S,o[h].type,o[h].value),"closed"!==S._state);++h);}}(S)});Z(S,o,h)}}var ve=function(){function S(h,E){this._cleanup=void 0,this._observer=h,this._queue=void 0,this._state="initializing";var B=new Se(this);try{this._cleanup=E.call(void 0,B)}catch(z){B.error(z)}"initializing"===this._state&&(this._state="ready")}return S.prototype.unsubscribe=function(){"closed"!==this._state&&(N(this),C(this))},V(S,[{key:"closed",get:function(){return"closed"===this._state}}]),S}(),Se=function(){function S(h){this._subscription=h}var o=S.prototype;return o.next=function(E){fe(this._subscription,"next",E)},o.error=function(E){fe(this._subscription,"error",E)},o.complete=function(){fe(this._subscription,"complete")},V(S,[{key:"closed",get:function(){return"closed"===this._subscription._state}}]),S}(),be=function(){function S(h){if(!(this instanceof S))throw new TypeError("Observable cannot be called as a function");if("function"!=typeof h)throw new TypeError("Observable initializer must be a function");this._subscriber=h}var o=S.prototype;return o.subscribe=function(E){return("object"!=typeof E||null===E)&&(E={next:E,error:arguments[1],complete:arguments[2]}),new ve(E,this._subscriber)},o.forEach=function(E){var B=this;return new Promise(function(z,$){if("function"==typeof E)var ye=B.subscribe({next:function(ge){try{E(ge,ce)}catch(Ae){$(Ae),ye.unsubscribe()}},error:$,complete:z});else $(new TypeError(E+" is not a function"));function ce(){ye.unsubscribe(),z()}})},o.map=function(E){var B=this;if("function"!=typeof E)throw new TypeError(E+" is not a function");return new(G(this))(function($){return B.subscribe({next:function(ce){try{ce=E(ce)}catch(ye){return $.error(ye)}$.next(ce)},error:function(ce){$.error(ce)},complete:function(){$.complete()}})})},o.filter=function(E){var B=this;if("function"!=typeof E)throw new TypeError(E+" is not a function");return new(G(this))(function($){return B.subscribe({next:function(ce){try{if(!E(ce))return}catch(ye){return $.error(ye)}$.next(ce)},error:function(ce){$.error(ce)},complete:function(){$.complete()}})})},o.reduce=function(E){var B=this;if("function"!=typeof E)throw new TypeError(E+" is not a function");var z=G(this),$=arguments.length>1,ce=!1,ge=arguments[1];return new z(function(Ae){return B.subscribe({next:function(Ie){var Te=!ce;if(ce=!0,!Te||$)try{ge=E(ge,Ie)}catch(Me){return Ae.error(Me)}else ge=Ie},error:function(Ie){Ae.error(Ie)},complete:function(){if(!ce&&!$)return Ae.error(new TypeError("Cannot reduce an empty sequence"));Ae.next(ge),Ae.complete()}})})},o.concat=function(){for(var E=this,B=arguments.length,z=new Array(B),$=0;$<B;$++)z[$]=arguments[$];var ce=G(this);return new ce(function(ye){var ge,Ae=0;return function Ie(Te){ge=Te.subscribe({next:function(Me){ye.next(Me)},error:function(Me){ye.error(Me)},complete:function(){Ae===z.length?(ge=void 0,ye.complete()):Ie(ce.from(z[Ae++]))}})}(E),function(){ge&&(ge.unsubscribe(),ge=void 0)}})},o.flatMap=function(E){var B=this;if("function"!=typeof E)throw new TypeError(E+" is not a function");var z=G(this);return new z(function($){var ce=[],ye=B.subscribe({next:function(Ae){if(E)try{Ae=E(Ae)}catch(Te){return $.error(Te)}var Ie=z.from(Ae).subscribe({next:function(Te){$.next(Te)},error:function(Te){$.error(Te)},complete:function(){var Te=ce.indexOf(Ie);Te>=0&&ce.splice(Te,1),ge()}});ce.push(Ie)},error:function(Ae){$.error(Ae)},complete:function(){ge()}});function ge(){ye.closed&&0===ce.length&&$.complete()}return function(){ce.forEach(function(Ae){return Ae.unsubscribe()}),ye.unsubscribe()}})},o[he]=function(){return this},S.from=function(E){var B="function"==typeof this?this:S;if(null==E)throw new TypeError(E+" is not an object");var z=K(E,he);if(z){var $=z.call(E);if(Object($)!==$)throw new TypeError($+" is not an object");return function re(S){return S instanceof be}($)&&$.constructor===B?$:new B(function(ce){return $.subscribe(ce)})}if(ue("iterator")&&(z=K(E,X)))return new B(function(ce){k(function(){if(!ce.closed){for(var ge,ye=function O(S,o){var h=typeof Symbol<"u"&&S[Symbol.iterator]||S["@@iterator"];if(h)return(h=h.call(S)).next.bind(h);if(Array.isArray(S)||(h=function v(S,o){if(S){if("string"==typeof S)return M(S,o);var h=Object.prototype.toString.call(S).slice(8,-1);if("Object"===h&&S.constructor&&(h=S.constructor.name),"Map"===h||"Set"===h)return Array.from(S);if("Arguments"===h||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(h))return M(S,o)}}(S))||o&&S&&"number"==typeof S.length){h&&(S=h);var E=0;return function(){return E>=S.length?{done:!0}:{done:!1,value:S[E++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(z.call(E));!(ge=ye()).done;)if(ce.next(ge.value),ce.closed)return;ce.complete()}})});if(Array.isArray(E))return new B(function(ce){k(function(){if(!ce.closed){for(var ye=0;ye<E.length;++ye)if(ce.next(E[ye]),ce.closed)return;ce.complete()}})});throw new TypeError(E+" is not observable")},S.of=function(){for(var E=arguments.length,B=new Array(E),z=0;z<E;z++)B[z]=arguments[z];return new("function"==typeof this?this:S)(function(ce){k(function(){if(!ce.closed){for(var ye=0;ye<B.length;++ye)if(ce.next(B[ye]),ce.closed)return;ce.complete()}})})},V(S,null,[{key:ie,get:function(){return this}}]),S}();function De(S){return null!==S&&"object"==typeof S}function ke(S,o){var h=o,E=[];return S.definitions.forEach(function(z){if("OperationDefinition"===z.kind)throw __DEV__?new n("Found a ".concat(z.operation," operation").concat(z.name?" named '".concat(z.name.value,"'"):"",". ")+"No operations are allowed when using a fragment as a query. Only fragments are allowed."):new n(41);"FragmentDefinition"===z.kind&&E.push(z)}),typeof h>"u"&&(__DEV__?i(1===E.length,"Found ".concat(E.length," fragments. `fragmentName` must be provided when there is not exactly 1 fragment.")):i(1===E.length,42),h=E[0].name.value),(0,t.pi)((0,t.pi)({},S),{definitions:(0,t.ev)([{kind:"OperationDefinition",operation:"query",selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:h}}]}}],S.definitions,!0)})}function ne(S){void 0===S&&(S=[]);var o={};return S.forEach(function(h){o[h.name.value]=h}),o}function U(S,o){switch(S.kind){case"InlineFragment":return S;case"FragmentSpread":var h=o&&o[S.name.value];return __DEV__?i(h,"No fragment named ".concat(S.name.value,".")):i(h,43),h;default:return null}}function m(S){return{__ref:String(S)}}function R(S){return!(!S||"object"!=typeof S||"string"!=typeof S.__ref)}function Ue(S,o,h,E){if(function xe(S){return"IntValue"===S.kind}(h)||function Ce(S){return"FloatValue"===S.kind}(h))S[o.value]=Number(h.value);else if(function pe(S){return"BooleanValue"===S.kind}(h)||function te(S){return"StringValue"===S.kind}(h))S[o.value]=h.value;else if(function le(S){return"ObjectValue"===S.kind}(h)){var B={};h.fields.map(function($){return Ue(B,$.name,$.value,E)}),S[o.value]=B}else if(function ee(S){return"Variable"===S.kind}(h))S[o.value]=(E||{})[h.name.value];else if(function de(S){return"ListValue"===S.kind}(h))S[o.value]=h.values.map(function($){var ce={};return Ue(ce,o,$,E),ce[o.value]});else if(function Oe(S){return"EnumValue"===S.kind}(h))S[o.value]=h.value;else{if(!function Re(S){return"NullValue"===S.kind}(h))throw __DEV__?new n('The inline argument "'.concat(o.value,'" of kind "').concat(h.kind,'"')+"is not supported. Use variables instead of inline arguments to overcome this limitation."):new n(52);S[o.value]=null}}J()&&Object.defineProperty(be,Symbol("extensions"),{value:{symbol:he,hostReportError:Y},configurable:!0});var ze=["connection","include","skip","client","rest","export"],nt=Object.assign(function(S,o,h){if(o&&h&&h.connection&&h.connection.key){if(h.connection.filter&&h.connection.filter.length>0){var E=h.connection.filter?h.connection.filter:[];E.sort();var B={};return E.forEach(function(ce){B[ce]=o[ce]}),"".concat(h.connection.key,"(").concat(ht(B),")")}return h.connection.key}var z=S;if(o){var $=ht(o);z+="(".concat($,")")}return h&&Object.keys(h).forEach(function(ce){-1===ze.indexOf(ce)&&(h[ce]&&Object.keys(h[ce]).length?z+="@".concat(ce,"(").concat(ht(h[ce]),")"):z+="@".concat(ce))}),z},{setStringify:function(S){var o=ht;return ht=S,o}}),ht=function(o){return JSON.stringify(o,at)};function at(S,o){return De(o)&&!Array.isArray(o)&&(o=Object.keys(o).sort().reduce(function(h,E){return h[E]=o[E],h},{})),o}function Ke(S,o){if(S.arguments&&S.arguments.length){var h={};return S.arguments.forEach(function(E){return Ue(h,E.name,E.value,o)}),h}return null}function ct(S){return S.alias?S.alias.value:S.name.value}function jt(S,o,h){if("string"==typeof S.__typename)return S.__typename;for(var E=0,B=o.selections;E<B.length;E++){var z=B[E];if(pt(z)){if("__typename"===z.name.value)return S[ct(z)]}else{var $=jt(S,U(z,h).selectionSet,h);if("string"==typeof $)return $}}}function pt(S){return"Field"===S.kind}function yt(S){return"InlineFragment"===S.kind}function Rt(S){__DEV__?i(S&&"Document"===S.kind,'Expecting a parsed GraphQL document. Perhaps you need to wrap the query string in a "gql" tag? http://docs.apollostack.com/apollo-client/core.html#gql'):i(S&&"Document"===S.kind,44);var o=S.definitions.filter(function(h){return"FragmentDefinition"!==h.kind}).map(function(h){if("OperationDefinition"!==h.kind)throw __DEV__?new n('Schema type definitions not allowed in queries. Found: "'.concat(h.kind,'"')):new n(45);return h});return __DEV__?i(o.length<=1,"Ambiguous GraphQL document: contains ".concat(o.length," operations")):i(o.length<=1,46),S}function St(S){return Rt(S),S.definitions.filter(function(o){return"OperationDefinition"===o.kind})[0]}function ft(S){return S.definitions.filter(function(o){return"OperationDefinition"===o.kind&&o.name}).map(function(o){return o.name.value})[0]||null}function Tt(S){return S.definitions.filter(function(o){return"FragmentDefinition"===o.kind})}function Ft(S){var o=St(S);return __DEV__?i(o&&"query"===o.operation,"Must contain a query definition."):i(o&&"query"===o.operation,47),o}function Ct(S){Rt(S);for(var o,h=0,E=S.definitions;h<E.length;h++){var B=E[h];if("OperationDefinition"===B.kind){var z=B.operation;if("query"===z||"mutation"===z||"subscription"===z)return B}"FragmentDefinition"===B.kind&&!o&&(o=B)}if(o)return o;throw __DEV__?new n("Expected a parsed GraphQL query with a query, mutation, subscription, or a fragment."):new n(51)}function It(S){var o=Object.create(null),h=S&&S.variableDefinitions;return h&&h.length&&h.forEach(function(E){E.defaultValue&&Ue(o,E.variable.name,E.defaultValue)}),o}function Wt(S,o){return o?o(S):be.of()}function Et(S){return"function"==typeof S?new mt(S):S}function Jt(S){return S.request.length<=1}var Vr=function(S){function o(h,E){var B=S.call(this,h)||this;return B.link=E,B}return(0,t.ZT)(o,S),o}(Error),mt=function(){function S(o){o&&(this.request=o)}return S.empty=function(){return new S(function(){return be.of()})},S.from=function(o){return 0===o.length?S.empty():o.map(Et).reduce(function(h,E){return h.concat(E)})},S.split=function(o,h,E){var B=Et(h),z=Et(E||new S(Wt));return Jt(B)&&Jt(z)?new S(function($){return o($)?B.request($)||be.of():z.request($)||be.of()}):new S(function($,ce){return o($)?B.request($,ce)||be.of():z.request($,ce)||be.of()})},S.execute=function(o,h){return o.request(function Pe(S,o){var h=(0,t.pi)({},S);return Object.defineProperty(o,"setContext",{enumerable:!1,value:function(z){h=(0,t.pi)((0,t.pi)({},h),"function"==typeof z?z(h):z)}}),Object.defineProperty(o,"getContext",{enumerable:!1,value:function(){return(0,t.pi)({},h)}}),o}(h.context,function Lt(S){var o={variables:S.variables||{},extensions:S.extensions||{},operationName:S.operationName,query:S.query};return o.operationName||(o.operationName="string"!=typeof o.query?ft(o.query)||void 0:""),o}(function Vt(S){for(var o=["query","operationName","variables","extensions","context"],h=0,E=Object.keys(S);h<E.length;h++){var B=E[h];if(o.indexOf(B)<0)throw __DEV__?new n("illegal argument: ".concat(B)):new n(24)}return S}(h))))||be.of()},S.concat=function(o,h){var E=Et(o);if(Jt(E))return __DEV__&&i.warn(new Vr("You are calling concat on a terminating link, which will have no effect",E)),E;var B=Et(h);return Jt(B)?new S(function(z){return E.request(z,function($){return B.request($)||be.of()})||be.of()}):new S(function(z,$){return E.request(z,function(ce){return B.request(ce,$)||be.of()})||be.of()})},S.prototype.split=function(o,h,E){return this.concat(S.split(o,h,E||new S(Wt)))},S.prototype.concat=function(o){return S.concat(this,o)},S.prototype.request=function(o,h){throw __DEV__?new n("request is not implemented"):new n(19)},S.prototype.onError=function(o,h){if(h&&h.error)return h.error(o),!1;throw o},S.prototype.setOnError=function(o){return this.onError=o,this},S}(),Nt=mt.execute,_t=l(11194),Qt=function(S,o){var h;try{h=JSON.stringify(S)}catch(B){var E=__DEV__?new n("Network request failed. ".concat(o," is not serializable: ").concat(B.message)):new n(21);throw E.parseError=B,E}return h},Or=function(S,o){return S.getContext().uri||("function"==typeof o?o(S):o||"/graphql")},$t=function(S,o,h){var E=new Error(h);throw E.name="ServerError",E.response=S,E.statusCode=S.status,E.result=o,E},Ar=Object.prototype.hasOwnProperty;function Ot(S){return function(o){return o.text().then(function(h){try{return JSON.parse(h)}catch(B){var E=B;throw E.name="ServerParseError",E.response=o,E.statusCode=o.status,E.bodyText=h,E}}).then(function(h){return o.status>=300&&$t(o,h,"Response not successful: Received status code ".concat(o.status)),!Array.isArray(h)&&!Ar.call(h,"data")&&!Ar.call(h,"errors")&&$t(o,h,"Server response was missing for query '".concat(Array.isArray(S)?S.map(function(E){return E.operationName}):S.operationName,"'.")),h})}}var Kt=function(S){if(!S&&typeof fetch>"u")throw __DEV__?new n("\n\"fetch\" has not been found globally and no fetcher has been configured. To fix this, install a fetch package (like https://www.npmjs.com/package/cross-fetch), instantiate the fetcher, and pass it into your HttpLink constructor. For example:\n\nimport fetch from 'cross-fetch';\nimport { ApolloClient, HttpLink } from '@apollo/client';\nconst client = new ApolloClient({\n link: new HttpLink({ uri: '/graphql', fetch })\n});\n "):new n(20)},Qr=l(28133),sr={http:{includeQuery:!0,includeExtensions:!1},headers:{accept:"*/*","content-type":"application/json"},options:{method:"POST"}},Xt=function(S,o){return o(S)};function Tr(S,o){for(var h=[],E=2;E<arguments.length;E++)h[E-2]=arguments[E];return h.unshift(o),ur.apply(void 0,(0,t.ev)([S,Xt],h,!1))}function ur(S,o){for(var h=[],E=2;E<arguments.length;E++)h[E-2]=arguments[E];var B={},z={};h.forEach(function(Ie){B=(0,t.pi)((0,t.pi)((0,t.pi)({},B),Ie.options),{headers:(0,t.pi)((0,t.pi)({},B.headers),zr(Ie.headers))}),Ie.credentials&&(B.credentials=Ie.credentials),z=(0,t.pi)((0,t.pi)({},z),Ie.http)});var ge=S.query,Ae={operationName:S.operationName,variables:S.variables};return z.includeExtensions&&(Ae.extensions=S.extensions),z.includeQuery&&(Ae.query=o(ge,Qr.print)),{options:B,body:Ae}}function zr(S){if(S){var o=Object.create(null);return Object.keys(Object(S)).forEach(function(h){o[h.toLowerCase()]=S[h]}),o}return S}var cr=function(){if(typeof AbortController>"u")return{controller:!1,signal:!1};var S=new AbortController;return{controller:S,signal:S.signal}};function Cr(S,o){var h=[],E=function(Ie,Te){h.push("".concat(Ie,"=").concat(encodeURIComponent(Te)))};if("query"in o&&E("query",o.query),o.operationName&&E("operationName",o.operationName),o.variables){var B=void 0;try{B=Qt(o.variables,"Variables map")}catch(Ie){return{parseError:Ie}}E("variables",B)}if(o.extensions){var z=void 0;try{z=Qt(o.extensions,"Extensions map")}catch(Ie){return{parseError:Ie}}E("extensions",z)}var $="",ce=S,ye=S.indexOf("#");-1!==ye&&($=S.substr(ye),ce=S.substr(0,ye));var ge=-1===ce.indexOf("?")?"?":"&";return{newURI:ce+ge+h.join("&")+$}}function Zt(S){return new be(function(o){o.error(S)})}var qt=y(function(){return fetch}),er=function(S){void 0===S&&(S={});var o=S.uri,h=void 0===o?"/graphql":o,E=S.fetch,B=S.print,z=void 0===B?Xt:B,$=S.includeExtensions,ce=S.useGETForQueries,ye=S.includeUnusedVariables,ge=void 0!==ye&&ye,Ae=(0,t._T)(S,["uri","fetch","print","includeExtensions","useGETForQueries","includeUnusedVariables"]);__DEV__&&Kt(E||qt);var Ie={http:{includeExtensions:$},options:Ae.fetchOptions,credentials:Ae.credentials,headers:Ae.headers};return new mt(function(Te){var Me=Or(Te,h),je=Te.getContext(),Le={};if(je.clientAwareness){var Ve=je.clientAwareness,Qe=Ve.name,Xe=Ve.version;Qe&&(Le["apollographql-client-name"]=Qe),Xe&&(Le["apollographql-client-version"]=Xe)}var gt,We=(0,t.pi)((0,t.pi)({},Le),je.headers),Ze=ur(Te,z,sr,Ie,{http:je.http,options:je.fetchOptions,credentials:je.credentials,headers:We}),Ye=Ze.options,Je=Ze.body;if(Je.variables&&!ge){var rt=new Set(Object.keys(Je.variables));(0,_t.Vn)(Te.query,{Variable:function(bt,ri,vt){vt&&"VariableDefinition"!==vt.kind&&rt.delete(bt.name.value)}}),rt.size&&(Je.variables=(0,t.pi)({},Je.variables),rt.forEach(function(bt){delete Je.variables[bt]}))}if(!Ye.signal){var ot=cr();(gt=ot.controller)&&(Ye.signal=ot.signal)}if(ce&&!Te.query.definitions.some(function(bt){return"OperationDefinition"===bt.kind&&"mutation"===bt.operation})&&(Ye.method="GET"),"GET"===Ye.method){var ei=Cr(Me,Je),ji=ei.newURI,ti=ei.parseError;if(ti)return Zt(ti);Me=ji}else try{Ye.body=Qt(Je,"Payload")}catch(bt){return Zt(bt)}return new be(function(bt){return(E||y(function(){return fetch})||qt)(Me,Ye).then(function(vt){return Te.setContext({response:vt}),vt}).then(Ot(Te)).then(function(vt){return bt.next(vt),bt.complete(),vt}).catch(function(vt){"AbortError"!==vt.name&&(vt.result&&vt.result.errors&&vt.result.data&&bt.next(vt.result),bt.error(vt))}),function(){gt&&gt.abort()}})})},tr=function(S){function o(h){void 0===h&&(h={});var E=S.call(this,er(h).request)||this;return E.options=h,E}return(0,t.ZT)(o,S),o}(mt),ut=l(87788),rr=l(15541),Pt="function"==typeof WeakMap&&"ReactNative"!==y(function(){return navigator.product}),Rr="function"==typeof WeakSet,Ir="function"==typeof Symbol&&"function"==typeof Symbol.for;function zt(){for(var S=[],o=0;o<arguments.length;o++)S[o]=arguments[o];var h=Object.create(null);return S.forEach(function(E){E&&Object.keys(E).forEach(function(B){var z=E[B];void 0!==z&&(h[B]=z)})}),h}function Ht(S,o){var h=S.directives;return!h||!h.length||function Zr(S){var o=[];return S&&S.length&&S.forEach(function(h){if(function Xr(S){var o=S.name.value;return"skip"===o||"include"===o}(h)){var E=h.arguments,B=h.name.value;__DEV__?i(E&&1===E.length,"Incorrect number of arguments for the @".concat(B," directive.")):i(E&&1===E.length,38);var z=E[0];__DEV__?i(z.name&&"if"===z.name.value,"Invalid argument for the @".concat(B," directive.")):i(z.name&&"if"===z.name.value,39);var $=z.value;__DEV__?i($&&("Variable"===$.kind||"BooleanValue"===$.kind),"Argument for the @".concat(B," directive must be a variable or a boolean value.")):i($&&("Variable"===$.kind||"BooleanValue"===$.kind),40),o.push({directive:h,ifArgument:z})}}),o}(h).every(function(E){var B=E.directive,z=E.ifArgument,$=!1;return"Variable"===z.value.kind?($=o&&o[z.value.name.value],__DEV__?i(void 0!==$,"Invalid variable referenced in @".concat(B.name.value," directive.")):i(void 0!==$,37)):$=z.value.value,"skip"===B.name.value?!$:$})}function fr(S,o){return function Jr(S){var o=[];return(0,_t.Vn)(S,{Directive:function(h){o.push(h.name.value)}}),o}(o).some(function(h){return S.indexOf(h)>-1})}function $r(S){return S&&fr(["client"],S)&&fr(["export"],S)}y(function(){return window.document.createElement}),y(function(){return navigator.userAgent.indexOf("jsdom")>=0});var lr=Object.prototype.hasOwnProperty;function hr(){for(var S=[],o=0;o<arguments.length;o++)S[o]=arguments[o];return Bt(S)}function Bt(S){var o=S[0]||{},h=S.length;if(h>1)for(var E=new Dt,B=1;B<h;++B)o=E.merge(o,S[B]);return o}var Pr=function(S,o,h){return this.merge(S[h],o[h])},Dt=function(){function S(o){void 0===o&&(o=Pr),this.reconciler=o,this.isObject=De,this.pastCopies=new Set}return S.prototype.merge=function(o,h){for(var E=this,B=[],z=2;z<arguments.length;z++)B[z-2]=arguments[z];return De(h)&&De(o)?(Object.keys(h).forEach(function($){if(lr.call(o,$)){var ce=o[$];if(h[$]!==ce){var ye=E.reconciler.apply(E,(0,t.ev)([o,h,$],B,!1));ye!==ce&&((o=E.shallowCopyForMerge(o))[$]=ye)}}else(o=E.shallowCopyForMerge(o))[$]=h[$]}),o):h},S.prototype.shallowCopyForMerge=function(o){return De(o)&&(this.pastCopies.has(o)||(o=Array.isArray(o)?o.slice(0):(0,t.pi)({__proto__:Object.getPrototypeOf(o)},o),this.pastCopies.add(o))),o},S}(),st=Object.prototype.hasOwnProperty;function pr(S,o){var h=S.__typename,E=S.id,B=S._id;if("string"==typeof h&&(o&&(o.keyObject=void 0!==E?{id:E}:void 0!==B?{_id:B}:void 0),void 0===E&&(E=B),void 0!==E))return"".concat(h,":").concat("number"==typeof E||"string"==typeof E?E:JSON.stringify(E))}var Dr={dataIdFromObject:pr,addTypename:!0,resultCaching:!0,canonizeResults:!1};function kr(S){var o=S.canonizeResults;return void 0===o?Dr.canonizeResults:o}var Fr=/^[_a-z][_0-9a-z]*/i;function At(S){var o=S.match(Fr);return o?o[0]:S}function nr(S,o,h){return!!De(o)&&(it(o)?o.every(function(E){return nr(S,E,h)}):S.selections.every(function(E){if(pt(E)&&Ht(E,h)){var B=ct(E);return st.call(o,B)&&(!E.selectionSet||nr(E.selectionSet,o[B],h))}return!0}))}function Mt(S){return De(S)&&!R(S)&&!it(S)}var oe,se,it=function(S){return Array.isArray(S)},vr=function(){function S(){this.known=new(Rr?WeakSet:Set),this.pool=new rr.B(Pt),this.passes=new WeakMap,this.keysByJSON=new Map,this.empty=this.admit({})}return S.prototype.isKnown=function(o){return De(o)&&this.known.has(o)},S.prototype.pass=function(o){if(De(o)){var h=function tn(S){return De(S)?it(S)?S.slice(0):(0,t.pi)({__proto__:Object.getPrototypeOf(S)},S):S}(o);return this.passes.set(h,o),h}return o},S.prototype.admit=function(o){var h=this;if(De(o)){var E=this.passes.get(o);if(E)return E;switch(Object.getPrototypeOf(o)){case Array.prototype:if(this.known.has(o))return o;var z=o.map(this.admit,this);return($=this.pool.lookupArray(z)).array||(this.known.add($.array=z),__DEV__&&Object.freeze(z)),$.array;case null:case Object.prototype:if(this.known.has(o))return o;var ce=Object.getPrototypeOf(o),ye=[ce],ge=this.sortedKeys(o);ye.push(ge.json);var $,Ae=ye.length;if(ge.sorted.forEach(function(Me){ye.push(h.admit(o[Me]))}),!($=this.pool.lookupArray(ye)).object){var Ie=$.object=Object.create(ce);this.known.add(Ie),ge.sorted.forEach(function(Me,je){Ie[Me]=ye[Ae+je]}),__DEV__&&Object.freeze(Ie)}return $.object}}return o},S.prototype.sortedKeys=function(o){var h=Object.keys(o),E=this.pool.lookupArray(h);if(!E.keys){h.sort();var B=JSON.stringify(h);(E.keys=this.keysByJSON.get(B))||this.keysByJSON.set(B,E.keys={sorted:h,json:B})}return E.keys},S}(),H=Object.assign(function(S){if(De(S)){void 0===oe&&Ee();var o=oe.admit(S),h=se.get(o);return void 0===h&&se.set(o,h=JSON.stringify(o)),h}return JSON.stringify(S)},{reset:Ee});function Ee(){oe=new vr,se=new(Pt?WeakMap:Map)}function we(S,o,h){return new be(function(E){var B=E.next,z=E.error,$=E.complete,ce=0,ye=!1,ge={then:function(Me){return new Promise(function(je){return je(Me())})}};function Ae(Me,je){return Me?function(Le){++ce;var Ve=function(){return Me(Le)};ge=ge.then(Ve,Ve).then(function(Qe){--ce,B&&B.call(E,Qe),ye&&Ie.complete()},function(Qe){throw--ce,Qe}).catch(function(Qe){z&&z.call(E,Qe)})}:function(Le){return je&&je.call(E,Le)}}var Ie={next:Ae(o,B),error:Ae(h,z),complete:function(){ye=!0,ce||$&&$.call(E)}},Te=S.subscribe(Ie);return function(){return Te.unsubscribe()}})}function _e(S){return S.errors&&S.errors.length>0||!1}function Fe(S,o,h){var E=0;return S.forEach(function(B,z){o.call(this,B,z,S)&&(S[E++]=B)},h),S.length=E,S}var Be={kind:"Field",name:{kind:"Name",value:"__typename"}};function Ge(S,o){return S.selectionSet.selections.every(function(h){return"FragmentSpread"===h.kind&&Ge(o[h.name.value],o)})}function Ne(S){return Ge(St(S)||function wt(S){__DEV__?i("Document"===S.kind,'Expecting a parsed GraphQL document. Perhaps you need to wrap the query string in a "gql" tag? http://docs.apollostack.com/apollo-client/core.html#gql'):i("Document"===S.kind,48),__DEV__?i(S.definitions.length<=1,"Fragment must have exactly one definition."):i(S.definitions.length<=1,49);var o=S.definitions[0];return __DEV__?i("FragmentDefinition"===o.kind,"Must be a fragment definition."):i("FragmentDefinition"===o.kind,50),o}(S),ne(Tt(S)))?null:S}function et(S){return function(h){return S.some(function(E){return E.name&&E.name===h.name.value||E.test&&E.test(h)})}}function dt(S,o){var h=Object.create(null),E=[],B=Object.create(null),z=[],$=Ne((0,_t.Vn)(o,{Variable:{enter:function(ce,ye,ge){"VariableDefinition"!==ge.kind&&(h[ce.name.value]=!0)}},Field:{enter:function(ce){if(S&&ce.directives&&S.some(function(ge){return ge.remove})&&ce.directives&&ce.directives.some(et(S)))return ce.arguments&&ce.arguments.forEach(function(ge){"Variable"===ge.value.kind&&E.push({name:ge.value.name.value})}),ce.selectionSet&&En(ce.selectionSet).forEach(function(ge){z.push({name:ge.name.value})}),null}},FragmentSpread:{enter:function(ce){B[ce.name.value]=!0}},Directive:{enter:function(ce){if(et(S)(ce))return null}}}));return $&&Fe(E,function(ce){return!!ce.name&&!h[ce.name]}).length&&($=function ai(S,o){var h=function ii(S){return function(h){return S.some(function(E){return h.value&&"Variable"===h.value.kind&&h.value.name&&(E.name===h.value.name.value||E.test&&E.test(h))})}}(S);return Ne((0,_t.Vn)(o,{OperationDefinition:{enter:function(E){return(0,t.pi)((0,t.pi)({},E),{variableDefinitions:E.variableDefinitions?E.variableDefinitions.filter(function(B){return!S.some(function(z){return z.name===B.variable.name.value})}):[]})}},Field:{enter:function(E){var B=S.some(function($){return $.remove});if(B){var z=0;if(E.arguments&&E.arguments.forEach(function($){h($)&&(z+=1)}),1===z)return null}}},Argument:{enter:function(E){if(h(E))return null}}}))}(E,$)),$&&Fe(z,function(ce){return!!ce.name&&!B[ce.name]}).length&&($=function oi(S,o){function h(E){if(S.some(function(B){return B.name===E.name.value}))return null}return Ne((0,_t.Vn)(o,{FragmentSpread:{enter:h},FragmentDefinition:{enter:h}}))}(z,$)),$}var $e=Object.assign(function(S){return(0,_t.Vn)(S,{SelectionSet:{enter:function(o,h,E){if(!E||"OperationDefinition"!==E.kind){var B=o.selections;if(B&&!B.some(function(ce){return pt(ce)&&("__typename"===ce.name.value||0===ce.name.value.lastIndexOf("__",0))})){var $=E;if(!(pt($)&&$.directives&&$.directives.some(function(ce){return"export"===ce.name.value})))return(0,t.pi)((0,t.pi)({},o),{selections:(0,t.ev)((0,t.ev)([],B,!0),[Be],!1)})}}}}})},{added:function(S){return S===Be}}),lt={test:function(S){var o="connection"===S.name.value;return o&&(!S.arguments||!S.arguments.some(function(h){return"key"===h.name.value}))&&__DEV__&&i.warn("Removing an @connection directive even though it does not have a key. You may want to use the key parameter to specify a store key."),o}};function En(S){var o=[];return S.selections.forEach(function(h){(pt(h)||yt(h))&&h.selectionSet?En(h.selectionSet).forEach(function(E){return o.push(E)}):"FragmentSpread"===h.kind&&o.push(h)}),o}function si(S){return"query"===Ct(S).operation?S:(0,_t.Vn)(S,{OperationDefinition:{enter:function(B){return(0,t.pi)((0,t.pi)({},B),{operation:"query"})}}})}var _n=new Map;function rn(S){var o=_n.get(S)||1;return _n.set(S,o+1),"".concat(S,":").concat(o,":").concat(Math.random().toString(36).slice(2))}function mr(S,o,h){var E=[];S.forEach(function(B){return B[o]&&E.push(B)}),E.forEach(function(B){return B[o](h)})}function Sn(S){function o(h){Object.defineProperty(S,h,{value:be})}return Ir&&Symbol.species&&o(Symbol.species),o("@@species"),S}function wn(S){return S&&"function"==typeof S.then}var gr=function(S){function o(h){var E=S.call(this,function(B){return E.addObserver(B),function(){return E.removeObserver(B)}})||this;return E.observers=new Set,E.addCount=0,E.promise=new Promise(function(B,z){E.resolve=B,E.reject=z}),E.handlers={next:function(B){null!==E.sub&&(E.latest=["next",B],mr(E.observers,"next",B))},error:function(B){var z=E.sub;null!==z&&(z&&setTimeout(function(){return z.unsubscribe()}),E.sub=null,E.latest=["error",B],E.reject(B),mr(E.observers,"error",B))},complete:function(){var B=E.sub;if(null!==B){var z=E.sources.shift();z?wn(z)?z.then(function($){return E.sub=$.subscribe(E.handlers)}):E.sub=z.subscribe(E.handlers):(B&&setTimeout(function(){return B.unsubscribe()}),E.sub=null,E.latest&&"next"===E.latest[0]?E.resolve(E.latest[1]):E.resolve(),mr(E.observers,"complete"))}}},E.cancel=function(B){E.reject(B),E.sources=[],E.handlers.complete()},E.promise.catch(function(B){}),"function"==typeof h&&(h=[new be(h)]),wn(h)?h.then(function(B){return E.start(B)},E.handlers.error):E.start(h),E}return(0,t.ZT)(o,S),o.prototype.start=function(h){void 0===this.sub&&(this.sources=Array.from(h),this.handlers.complete())},o.prototype.deliverLastMessage=function(h){if(this.latest){var E=this.latest[0],B=h[E];B&&B.call(h,this.latest[1]),null===this.sub&&"next"===E&&h.complete&&h.complete()}},o.prototype.addObserver=function(h){this.observers.has(h)||(this.deliverLastMessage(h),this.observers.add(h),++this.addCount)},o.prototype.removeObserver=function(h,E){this.observers.delete(h)&&--this.addCount<1&&!E&&this.handlers.complete()},o.prototype.cleanup=function(h){var E=this,B=!1,z=function(){B||(B=!0,E.observers.delete($),h())},$={next:z,error:z,complete:z},ce=this.addCount;this.addObserver($),this.addCount=ce},o}(be);function Gt(S){return Array.isArray(S)&&S.length>0}function On(S){return S.hasOwnProperty("graphQLErrors")}Sn(gr);var Yt=function(S){function o(h){var E=h.graphQLErrors,B=h.clientErrors,z=h.networkError,$=h.errorMessage,ce=h.extraInfo,ye=S.call(this,$)||this;return ye.graphQLErrors=E||[],ye.clientErrors=B||[],ye.networkError=z||null,ye.message=$||function(S){var o="";return(Gt(S.graphQLErrors)||Gt(S.clientErrors))&&(S.graphQLErrors||[]).concat(S.clientErrors||[]).forEach(function(E){o+="".concat(E?E.message:"Error message not found.","\n")}),S.networkError&&(o+="".concat(S.networkError.message,"\n")),o=o.replace(/\n$/,"")}(ye),ye.extraInfo=ce,ye.__proto__=o.prototype,ye}return(0,t.ZT)(o,S),o}(Error),tt=function(S){return S[S.loading=1]="loading",S[S.setVariables=2]="setVariables",S[S.fetchMore=3]="fetchMore",S[S.refetch=4]="refetch",S[S.poll=6]="poll",S[S.ready=7]="ready",S[S.error=8]="error",S}(tt||{});function br(S){return!!S&&S<7}var fi=Object.prototype.toString;function An(S){return nn(S)}function nn(S,o){switch(fi.call(S)){case"[object Array]":if((o=o||new Map).has(S))return o.get(S);var h=S.slice(0);return o.set(S,h),h.forEach(function(B,z){h[z]=nn(B,o)}),h;case"[object Object]":if((o=o||new Map).has(S))return o.get(S);var E=Object.create(Object.getPrototypeOf(S));return o.set(S,E),Object.keys(S).forEach(function(B){E[B]=nn(S[B],o)}),E;default:return S}}var li=Object.assign,hi=Object.hasOwnProperty,Lr=function(S){function o(h){var E=h.queryManager,B=h.queryInfo,z=h.options,$=S.call(this,function(Ve){try{var Qe=Ve._subscription._observer;Qe&&!Qe.error&&(Qe.error=pi)}catch{}var Xe=!$.observers.size;$.observers.add(Ve);var We=$.last;return We&&We.error?Ve.error&&Ve.error(We.error):We&&We.result&&Ve.next&&Ve.next(We.result),Xe&&$.reobserve().catch(function(){}),function(){$.observers.delete(Ve)&&!$.observers.size&&$.tearDownQuery()}})||this;$.observers=new Set,$.subscriptions=new Set,$.queryInfo=B,$.queryManager=E,$.isTornDown=!1;var ce=E.defaultOptions.watchQuery,ge=(void 0===ce?{}:ce).fetchPolicy,Ae=void 0===ge?"cache-first":ge,Ie=z.fetchPolicy,Te=void 0===Ie?Ae:Ie,Me=z.initialFetchPolicy,je=void 0===Me?"standby"===Te?Ae:Te:Me;$.options=(0,t.pi)((0,t.pi)({},z),{initialFetchPolicy:je,fetchPolicy:Te}),$.queryId=B.queryId||E.generateQueryId();var Le=St($.query);return $.queryName=Le&&Le.name&&Le.name.value,$}return(0,t.ZT)(o,S),Object.defineProperty(o.prototype,"query",{get:function(){return this.queryManager.transform(this.options.query).document},enumerable:!1,configurable:!0}),Object.defineProperty(o.prototype,"variables",{get:function(){return this.options.variables},enumerable:!1,configurable:!0}),o.prototype.result=function(){var h=this;return new Promise(function(E,B){var z={next:function(ce){E(ce),h.observers.delete(z),h.observers.size||h.queryManager.removeQuery(h.queryId),setTimeout(function(){$.unsubscribe()},0)},error:B},$=h.subscribe(z)})},o.prototype.getCurrentResult=function(h){void 0===h&&(h=!0);var E=this.getLastResult(!0),B=this.queryInfo.networkStatus||E&&E.networkStatus||tt.ready,z=(0,t.pi)((0,t.pi)({},E),{loading:br(B),networkStatus:B}),$=this.options.fetchPolicy,ce=void 0===$?"cache-first":$;if("network-only"!==ce&&"no-cache"!==ce&&"standby"!==ce&&!this.queryManager.transform(this.options.query).hasForcedResolvers){var ye=this.queryInfo.getDiff();(ye.complete||this.options.returnPartialData)&&(z.data=ye.result),(0,ut.D)(z.data,{})&&(z.data=void 0),ye.complete?(delete z.partial,ye.complete&&z.networkStatus===tt.loading&&("cache-first"===ce||"cache-only"===ce)&&(z.networkStatus=tt.ready,z.loading=!1)):z.partial=!0,__DEV__&&!ye.complete&&!this.options.partialRefetch&&!z.loading&&!z.data&&!z.error&&Tn(ye.missing)}return h&&this.updateLastResult(z),z},o.prototype.isDifferentFromLastResult=function(h){return!this.last||!(0,ut.D)(this.last.result,h)},o.prototype.getLast=function(h,E){var B=this.last;if(B&&B[h]&&(!E||(0,ut.D)(B.variables,this.variables)))return B[h]},o.prototype.getLastResult=function(h){return this.getLast("result",h)},o.prototype.getLastError=function(h){return this.getLast("error",h)},o.prototype.resetLastResults=function(){delete this.last,this.isTornDown=!1},o.prototype.resetQueryStoreErrors=function(){this.queryManager.resetErrors(this.queryId)},o.prototype.refetch=function(h){var E,B={pollInterval:0},z=this.options.fetchPolicy;if(B.fetchPolicy="cache-and-network"===z?z:"no-cache"===z?"no-cache":"network-only",__DEV__&&h&&hi.call(h,"variables")){var $=Ft(this.query),ce=$.variableDefinitions;(!ce||!ce.some(function(ye){return"variables"===ye.variable.name.value}))&&__DEV__&&i.warn("Called refetch(".concat(JSON.stringify(h),") for query ").concat((null===(E=$.name)||void 0===E?void 0:E.value)||JSON.stringify($),", which does not declare a $variables variable.\nDid you mean to call refetch(variables) instead of refetch({ variables })?"))}return h&&!(0,ut.D)(this.options.variables,h)&&(B.variables=this.options.variables=(0,t.pi)((0,t.pi)({},this.options.variables),h)),this.queryInfo.resetLastWrite(),this.reobserve(B,tt.refetch)},o.prototype.fetchMore=function(h){var E=this,B=(0,t.pi)((0,t.pi)({},h.query?h:(0,t.pi)((0,t.pi)((0,t.pi)((0,t.pi)({},this.options),{query:this.query}),h),{variables:(0,t.pi)((0,t.pi)({},this.options.variables),h.variables)})),{fetchPolicy:"no-cache"}),z=this.queryManager.generateQueryId(),$=this.queryInfo,ce=$.networkStatus;$.networkStatus=tt.fetchMore,B.notifyOnNetworkStatusChange&&this.observe();var ye=new Set;return this.queryManager.fetchQuery(z,B,tt.fetchMore).then(function(ge){return E.queryManager.removeQuery(z),$.networkStatus===tt.fetchMore&&($.networkStatus=ce),E.queryManager.cache.batch({update:function(Ae){var Ie=h.updateQuery;Ie?Ae.updateQuery({query:E.query,variables:E.variables,returnPartialData:!0,optimistic:!1},function(Te){return Ie(Te,{fetchMoreResult:ge.data,variables:B.variables})}):Ae.writeQuery({query:B.query,variables:B.variables,data:ge.data})},onWatchUpdated:function(Ae){ye.add(Ae.query)}}),ge}).finally(function(){ye.has(E.query)||xn(E)})},o.prototype.subscribeToMore=function(h){var E=this,B=this.queryManager.startGraphQLSubscription({query:h.document,variables:h.variables,context:h.context}).subscribe({next:function(z){var $=h.updateQuery;$&&E.updateQuery(function(ce,ye){return $(ce,{subscriptionData:z,variables:ye.variables})})},error:function(z){h.onError?h.onError(z):__DEV__&&i.error("Unhandled GraphQL subscription error",z)}});return this.subscriptions.add(B),function(){E.subscriptions.delete(B)&&B.unsubscribe()}},o.prototype.setOptions=function(h){return this.reobserve(h)},o.prototype.setVariables=function(h){return(0,ut.D)(this.variables,h)?this.observers.size?this.result():Promise.resolve():(this.options.variables=h,this.observers.size?this.reobserve({fetchPolicy:this.options.initialFetchPolicy,variables:h},tt.setVariables):Promise.resolve())},o.prototype.updateQuery=function(h){var E=this.queryManager,z=h(E.cache.diff({query:this.options.query,variables:this.variables,returnPartialData:!0,optimistic:!1}).result,{variables:this.variables});z&&(E.cache.writeQuery({query:this.options.query,data:z,variables:this.variables}),E.broadcastQueries())},o.prototype.startPolling=function(h){this.options.pollInterval=h,this.updatePolling()},o.prototype.stopPolling=function(){this.options.pollInterval=0,this.updatePolling()},o.prototype.applyNextFetchPolicy=function(h,E){if(E.nextFetchPolicy){var B=E.fetchPolicy,z=void 0===B?"cache-first":B,$=E.initialFetchPolicy,ce=void 0===$?z:$;"standby"===z||(E.fetchPolicy="function"==typeof E.nextFetchPolicy?E.nextFetchPolicy(z,{reason:h,options:E,observable:this,initialFetchPolicy:ce}):"variables-changed"===h?ce:E.nextFetchPolicy)}return E.fetchPolicy},o.prototype.fetch=function(h,E){return this.queryManager.setObservableQuery(this),this.queryManager.fetchQueryObservable(this.queryId,h,E)},o.prototype.updatePolling=function(){var h=this;if(!this.queryManager.ssrMode){var B=this.pollingInfo,z=this.options.pollInterval;if(!z)return void(B&&(clearTimeout(B.timeout),delete this.pollingInfo));if(!B||B.interval!==z){__DEV__?i(z,"Attempted to start a polling query without a polling interval."):i(z,10),(B||(this.pollingInfo={})).interval=z;var ce=function(){h.pollingInfo&&(br(h.queryInfo.networkStatus)?ye():h.reobserve({fetchPolicy:"network-only"},tt.poll).then(ye,ye))},ye=function(){var ge=h.pollingInfo;ge&&(clearTimeout(ge.timeout),ge.timeout=setTimeout(ce,ge.interval))};ye()}}},o.prototype.updateLastResult=function(h,E){return void 0===E&&(E=this.variables),this.last=(0,t.pi)((0,t.pi)({},this.last),{result:this.queryManager.assumeImmutableResults?h:An(h),variables:E}),Gt(h.errors)||delete this.last.error,this.last},o.prototype.reobserve=function(h,E){var B=this;this.isTornDown=!1;var z=E===tt.refetch||E===tt.fetchMore||E===tt.poll,$=this.options.variables,ce=this.options.fetchPolicy,ye=zt(this.options,h||{}),ge=z?ye:li(this.options,ye);z||(this.updatePolling(),h&&h.variables&&!(0,ut.D)(h.variables,$)&&"standby"!==ge.fetchPolicy&&ge.fetchPolicy===ce&&(this.applyNextFetchPolicy("variables-changed",ge),void 0===E&&(E=tt.setVariables)));var Ae=ge.variables&&(0,t.pi)({},ge.variables),Ie=this.fetch(ge,E),Te={next:function(Me){B.reportResult(Me,Ae)},error:function(Me){B.reportError(Me,Ae)}};return z||(this.concast&&this.observer&&this.concast.removeObserver(this.observer),this.concast=Ie,this.observer=Te),Ie.addObserver(Te),Ie.promise},o.prototype.observe=function(){this.reportResult(this.getCurrentResult(!1),this.variables)},o.prototype.reportResult=function(h,E){var B=this.getLastError();(B||this.isDifferentFromLastResult(h))&&((B||!h.partial||this.options.returnPartialData)&&this.updateLastResult(h,E),mr(this.observers,"next",h))},o.prototype.reportError=function(h,E){var B=(0,t.pi)((0,t.pi)({},this.getLastResult()),{error:h,errors:h.graphQLErrors,networkStatus:tt.error,loading:!1});this.updateLastResult(B,E),mr(this.observers,"error",this.last.error=h)},o.prototype.hasObservers=function(){return this.observers.size>0},o.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(h){return h.unsubscribe()}),this.subscriptions.clear(),this.queryManager.stopQuery(this.queryId),this.observers.clear(),this.isTornDown=!0)},o}(be);function xn(S){var o=S.options,h=o.fetchPolicy,E=o.nextFetchPolicy;return"cache-and-network"===h||"network-only"===h?S.reobserve({fetchPolicy:"cache-first",nextFetchPolicy:function(){return this.nextFetchPolicy=E,"function"==typeof E?E.apply(this,arguments):h}}):S.reobserve()}function pi(S){__DEV__&&i.error("Unhandled error",S.message,S.stack)}function Tn(S){__DEV__&&S&&__DEV__&&i.debug("Missing cache result fields: ".concat(JSON.stringify(S)),S)}Sn(Lr);var ir=l(95355),an=new(l(83753).g7),Cn=new WeakMap;function Er(S){var o=Cn.get(S);return o||Cn.set(S,o={vars:new Set,dep:(0,ir.dP)()}),o}function Rn(S){Er(S).vars.forEach(function(o){return o.forgetCache(S)})}function In(S){var o=new Set,h=new Set,E=function(z){if(arguments.length>0){if(S!==z){S=z,o.forEach(function(ye){Er(ye).dep.dirty(E),function yi(S){S.broadcastWatches&&S.broadcastWatches()}(ye)});var $=Array.from(h);h.clear(),$.forEach(function(ye){return ye(S)})}}else{var ce=an.getValue();ce&&(B(ce),Er(ce).dep(E))}return S};E.onNextChange=function(z){return h.add(z),function(){h.delete(z)}};var B=E.attachCache=function(z){return o.add(z),Er(z).vars.add(E),E};return E.forgetCache=function(z){return o.delete(z)},E}var Pn=function(){function S(o){var E=o.client,B=o.resolvers,z=o.fragmentMatcher;this.cache=o.cache,E&&(this.client=E),B&&this.addResolvers(B),z&&this.setFragmentMatcher(z)}return S.prototype.addResolvers=function(o){var h=this;this.resolvers=this.resolvers||{},Array.isArray(o)?o.forEach(function(E){h.resolvers=hr(h.resolvers,E)}):this.resolvers=hr(this.resolvers,o)},S.prototype.setResolvers=function(o){this.resolvers={},this.addResolvers(o)},S.prototype.getResolvers=function(){return this.resolvers||{}},S.prototype.runResolvers=function(o){var h=o.document,E=o.remoteResult,B=o.context,z=o.variables,$=o.onlyRunForcedResolvers,ce=void 0!==$&&$;return(0,t.mG)(this,void 0,void 0,function(){return(0,t.Jh)(this,function(ye){return h?[2,this.resolveDocument(h,E.data,B,z,this.fragmentMatcher,ce).then(function(ge){return(0,t.pi)((0,t.pi)({},E),{data:ge.result})})]:[2,E]})})},S.prototype.setFragmentMatcher=function(o){this.fragmentMatcher=o},S.prototype.getFragmentMatcher=function(){return this.fragmentMatcher},S.prototype.clientQuery=function(o){return fr(["client"],o)&&this.resolvers?o:null},S.prototype.serverQuery=function(o){return function ui(S){Rt(S);var o=dt([{test:function(h){return"client"===h.name.value},remove:!0}],S);return o&&(o=(0,_t.Vn)(o,{FragmentDefinition:{enter:function(h){if(h.selectionSet&&h.selectionSet.selections.every(function(B){return pt(B)&&"__typename"===B.name.value}))return null}}})),o}(o)},S.prototype.prepareContext=function(o){var h=this.cache;return(0,t.pi)((0,t.pi)({},o),{cache:h,getCacheKey:function(E){return h.identify(E)}})},S.prototype.addExportedVariables=function(o,h,E){return void 0===h&&(h={}),void 0===E&&(E={}),(0,t.mG)(this,void 0,void 0,function(){return(0,t.Jh)(this,function(B){return o?[2,this.resolveDocument(o,this.buildRootValueFromCache(o,h)||{},this.prepareContext(E),h).then(function(z){return(0,t.pi)((0,t.pi)({},h),z.exportedVariables)})]:[2,(0,t.pi)({},h)]})})},S.prototype.shouldForceResolvers=function(o){var h=!1;return(0,_t.Vn)(o,{Directive:{enter:function(E){if("client"===E.name.value&&E.arguments&&(h=E.arguments.some(function(B){return"always"===B.name.value&&"BooleanValue"===B.value.kind&&!0===B.value.value})))return _t.$_}}}),h},S.prototype.buildRootValueFromCache=function(o,h){return this.cache.diff({query:si(o),variables:h,returnPartialData:!0,optimistic:!1}).result},S.prototype.resolveDocument=function(o,h,E,B,z,$){return void 0===E&&(E={}),void 0===B&&(B={}),void 0===z&&(z=function(){return!0}),void 0===$&&($=!1),(0,t.mG)(this,void 0,void 0,function(){var ce,ye,ge,Ae,Ie,Te,Me,je,Le;return(0,t.Jh)(this,function(Ve){return ce=Ct(o),ye=Tt(o),ge=ne(ye),Ie=(Ae=ce.operation)?Ae.charAt(0).toUpperCase()+Ae.slice(1):"Query",Me=(Te=this).cache,je=Te.client,Le={fragmentMap:ge,context:(0,t.pi)((0,t.pi)({},E),{cache:Me,client:je}),variables:B,fragmentMatcher:z,defaultOperationType:Ie,exportedVariables:{},onlyRunForcedResolvers:$},[2,this.resolveSelectionSet(ce.selectionSet,h,Le).then(function(Qe){return{result:Qe,exportedVariables:Le.exportedVariables}})]})})},S.prototype.resolveSelectionSet=function(o,h,E){return(0,t.mG)(this,void 0,void 0,function(){var B,z,$,ce,ge=this;return(0,t.Jh)(this,function(Ae){return B=E.fragmentMap,z=E.context,$=E.variables,ce=[h],[2,Promise.all(o.selections.map(function(Ie){return(0,t.mG)(ge,void 0,void 0,function(){var Te;return(0,t.Jh)(this,function(je){return Ht(Ie,$)?pt(Ie)?[2,this.resolveField(Ie,h,E).then(function(Le){var Ve;typeof Le<"u"&&ce.push(((Ve={})[ct(Ie)]=Le,Ve))})]:(yt(Ie)?Te=Ie:(Te=B[Ie.name.value],__DEV__?i(Te,"No fragment named ".concat(Ie.name.value)):i(Te,9)),Te&&Te.typeCondition&&E.fragmentMatcher(h,Te.typeCondition.name.value,z)?[2,this.resolveSelectionSet(Te.selectionSet,h,E).then(function(Le){ce.push(Le)})]:[2]):[2]})})})).then(function(){return Bt(ce)})]})})},S.prototype.resolveField=function(o,h,E){return(0,t.mG)(this,void 0,void 0,function(){var B,z,$,ce,ye,ge,Ae,Ie,Te,Me=this;return(0,t.Jh)(this,function(je){return B=E.variables,z=o.name.value,$=ct(o),ce=z!==$,ye=h[$]||h[z],ge=Promise.resolve(ye),(!E.onlyRunForcedResolvers||this.shouldForceResolvers(o))&&(Ae=h.__typename||E.defaultOperationType,(Ie=this.resolvers&&this.resolvers[Ae])&&(Te=Ie[ce?z:$])&&(ge=Promise.resolve(an.withValue(this.cache,Te,[h,Ke(o,B),E.context,{field:o,fragmentMap:E.fragmentMap}])))),[2,ge.then(function(Le){return void 0===Le&&(Le=ye),o.directives&&o.directives.forEach(function(Ve){"export"===Ve.name.value&&Ve.arguments&&Ve.arguments.forEach(function(Qe){"as"===Qe.name.value&&"StringValue"===Qe.value.kind&&(E.exportedVariables[Qe.value.value]=Le)})}),o.selectionSet&&null!=Le?Array.isArray(Le)?Me.resolveSubSelectedArray(o,Le,E):o.selectionSet?Me.resolveSelectionSet(o.selectionSet,Le,E):void 0:Le})]})})},S.prototype.resolveSubSelectedArray=function(o,h,E){var B=this;return Promise.all(h.map(function(z){return null===z?null:Array.isArray(z)?B.resolveSubSelectedArray(o,z,E):o.selectionSet?B.resolveSelectionSet(o.selectionSet,z,E):void 0}))},S}(),ar=new(Pt?WeakMap:Map);function on(S,o){var h=S[o];"function"==typeof h&&(S[o]=function(){return ar.set(S,(ar.get(S)+1)%1e15),h.apply(this,arguments)})}function Dn(S){S.notifyTimeout&&(clearTimeout(S.notifyTimeout),S.notifyTimeout=void 0)}var sn=function(){function S(o,h){void 0===h&&(h=o.generateQueryId()),this.queryId=h,this.listeners=new Set,this.document=null,this.lastRequestId=1,this.subscriptions=new Set,this.stopped=!1,this.dirty=!1,this.observableQuery=null;var E=this.cache=o.cache;ar.has(E)||(ar.set(E,0),on(E,"evict"),on(E,"modify"),on(E,"reset"))}return S.prototype.init=function(o){var h=o.networkStatus||tt.loading;return this.variables&&this.networkStatus!==tt.loading&&!(0,ut.D)(this.variables,o.variables)&&(h=tt.setVariables),(0,ut.D)(o.variables,this.variables)||(this.lastDiff=void 0),Object.assign(this,{document:o.document,variables:o.variables,networkError:null,graphQLErrors:this.graphQLErrors||[],networkStatus:h}),o.observableQuery&&this.setObservableQuery(o.observableQuery),o.lastRequestId&&(this.lastRequestId=o.lastRequestId),this},S.prototype.reset=function(){Dn(this),this.lastDiff=void 0,this.dirty=!1},S.prototype.getDiff=function(o){void 0===o&&(o=this.variables);var h=this.getDiffOptions(o);if(this.lastDiff&&(0,ut.D)(h,this.lastDiff.options))return this.lastDiff.diff;this.updateWatch(this.variables=o);var E=this.observableQuery;if(E&&"no-cache"===E.options.fetchPolicy)return{complete:!1};var B=this.cache.diff(h);return this.updateLastDiff(B,h),B},S.prototype.updateLastDiff=function(o,h){this.lastDiff=o?{diff:o,options:h||this.getDiffOptions()}:void 0},S.prototype.getDiffOptions=function(o){var h;return void 0===o&&(o=this.variables),{query:this.document,variables:o,returnPartialData:!0,optimistic:!0,canonizeResults:null===(h=this.observableQuery)||void 0===h?void 0:h.options.canonizeResults}},S.prototype.setDiff=function(o){var h=this,E=this.lastDiff&&this.lastDiff.diff;this.updateLastDiff(o),!this.dirty&&!(0,ut.D)(E&&E.result,o&&o.result)&&(this.dirty=!0,this.notifyTimeout||(this.notifyTimeout=setTimeout(function(){return h.notify()},0)))},S.prototype.setObservableQuery=function(o){var h=this;o!==this.observableQuery&&(this.oqListener&&this.listeners.delete(this.oqListener),this.observableQuery=o,o?(o.queryInfo=this,this.listeners.add(this.oqListener=function(){h.getDiff().fromOptimisticTransaction?o.observe():xn(o)})):delete this.oqListener)},S.prototype.notify=function(){var o=this;Dn(this),this.shouldNotify()&&this.listeners.forEach(function(h){return h(o)}),this.dirty=!1},S.prototype.shouldNotify=function(){if(!this.dirty||!this.listeners.size)return!1;if(br(this.networkStatus)&&this.observableQuery){var o=this.observableQuery.options.fetchPolicy;if("cache-only"!==o&&"cache-and-network"!==o)return!1}return!0},S.prototype.stop=function(){if(!this.stopped){this.stopped=!0,this.reset(),this.cancel(),this.cancel=S.prototype.cancel,this.subscriptions.forEach(function(h){return h.unsubscribe()});var o=this.observableQuery;o&&o.stopPolling()}},S.prototype.cancel=function(){},S.prototype.updateWatch=function(o){var h=this;void 0===o&&(o=this.variables);var E=this.observableQuery;if(!E||"no-cache"!==E.options.fetchPolicy){var B=(0,t.pi)((0,t.pi)({},this.getDiffOptions(o)),{watcher:this,callback:function(z){return h.setDiff(z)}});(!this.lastWatch||!(0,ut.D)(B,this.lastWatch))&&(this.cancel(),this.cancel=this.cache.watch(this.lastWatch=B))}},S.prototype.resetLastWrite=function(){this.lastWrite=void 0},S.prototype.shouldWrite=function(o,h){var E=this.lastWrite;return!(E&&E.dmCount===ar.get(this.cache)&&(0,ut.D)(h,E.variables)&&(0,ut.D)(o.data,E.result.data))},S.prototype.markResult=function(o,h,E){var B=this;this.graphQLErrors=Gt(o.errors)?o.errors:[],this.reset(),"no-cache"===h.fetchPolicy?this.updateLastDiff({result:o.data,complete:!0},this.getDiffOptions(h.variables)):0!==E&&(un(o,h.errorPolicy)?this.cache.performTransaction(function(z){if(B.shouldWrite(o,h.variables))z.writeQuery({query:B.document,data:o.data,variables:h.variables,overwrite:1===E}),B.lastWrite={result:o,variables:h.variables,dmCount:ar.get(B.cache)};else if(B.lastDiff&&B.lastDiff.diff.complete)return void(o.data=B.lastDiff.diff.result);var $=B.getDiffOptions(h.variables),ce=z.diff($);B.stopped||B.updateWatch(h.variables),B.updateLastDiff(ce,$),ce.complete&&(o.data=ce.result)}):this.lastWrite=void 0)},S.prototype.markReady=function(){return this.networkError=null,this.networkStatus=tt.ready},S.prototype.markError=function(o){return this.networkStatus=tt.error,this.lastWrite=void 0,this.reset(),o.graphQLErrors&&(this.graphQLErrors=o.graphQLErrors),o.networkError&&(this.networkError=o.networkError),o},S}();function un(S,o){void 0===o&&(o="none");var h="ignore"===o||"all"===o,E=!_e(S);return!E&&h&&S.data&&(E=!0),E}var mi=Object.prototype.hasOwnProperty,gi=function(){function S(o){var h=o.cache,E=o.link,B=o.defaultOptions,z=o.queryDeduplication,$=void 0!==z&&z,ce=o.onBroadcast,ye=o.ssrMode,ge=void 0!==ye&&ye,Ae=o.clientAwareness,Ie=void 0===Ae?{}:Ae,Te=o.localState,Me=o.assumeImmutableResults;this.clientAwareness={},this.queries=new Map,this.fetchCancelFns=new Map,this.transformCache=new(Pt?WeakMap:Map),this.queryIdCounter=1,this.requestIdCounter=1,this.mutationIdCounter=1,this.inFlightLinkObservables=new Map,this.cache=h,this.link=E,this.defaultOptions=B||Object.create(null),this.queryDeduplication=$,this.clientAwareness=Ie,this.localState=Te||new Pn({cache:h}),this.ssrMode=ge,this.assumeImmutableResults=!!Me,(this.onBroadcast=ce)&&(this.mutationStore=Object.create(null))}return S.prototype.stop=function(){var o=this;this.queries.forEach(function(h,E){o.stopQueryNoBroadcast(E)}),this.cancelPendingFetches(__DEV__?new n("QueryManager stopped while query was in flight"):new n(11))},S.prototype.cancelPendingFetches=function(o){this.fetchCancelFns.forEach(function(h){return h(o)}),this.fetchCancelFns.clear()},S.prototype.mutate=function(o){var h,E,B=o.mutation,z=o.variables,$=o.optimisticResponse,ce=o.updateQueries,ye=o.refetchQueries,ge=void 0===ye?[]:ye,Ae=o.awaitRefetchQueries,Ie=void 0!==Ae&&Ae,Te=o.update,Me=o.onQueryUpdated,je=o.fetchPolicy,Le=void 0===je?(null===(h=this.defaultOptions.mutate)||void 0===h?void 0:h.fetchPolicy)||"network-only":je,Ve=o.errorPolicy,Qe=void 0===Ve?(null===(E=this.defaultOptions.mutate)||void 0===E?void 0:E.errorPolicy)||"none":Ve,Xe=o.keepRootFields,We=o.context;return(0,t.mG)(this,void 0,void 0,function(){var He,Ze,Ye;return(0,t.Jh)(this,function(Je){switch(Je.label){case 0:return __DEV__?i(B,"mutation option is required. You must specify your GraphQL document in the mutation option."):i(B,12),__DEV__?i("network-only"===Le||"no-cache"===Le,"Mutations support only 'network-only' or 'no-cache' fetchPolicy strings. The default `network-only` behavior automatically writes mutation results to the cache. Passing `no-cache` skips the cache write."):i("network-only"===Le||"no-cache"===Le,13),He=this.generateMutationId(),B=this.transform(B).document,z=this.getVariables(B,z),this.transform(B).hasClientExports?[4,this.localState.addExportedVariables(B,z,We)]:[3,2];case 1:z=Je.sent(),Je.label=2;case 2:return Ze=this.mutationStore&&(this.mutationStore[He]={mutation:B,variables:z,loading:!0,error:null}),$&&this.markMutationOptimistic($,{mutationId:He,document:B,variables:z,fetchPolicy:Le,errorPolicy:Qe,context:We,updateQueries:ce,update:Te,keepRootFields:Xe}),this.broadcastQueries(),Ye=this,[2,new Promise(function(rt,gt){return we(Ye.getObservableFromLink(B,(0,t.pi)((0,t.pi)({},We),{optimisticResponse:$}),z,!1),function(ot){if(_e(ot)&&"none"===Qe)throw new Yt({graphQLErrors:ot.errors});Ze&&(Ze.loading=!1,Ze.error=null);var kt=(0,t.pi)({},ot);return"function"==typeof ge&&(ge=ge(kt)),"ignore"===Qe&&_e(kt)&&delete kt.errors,Ye.markMutationResult({mutationId:He,result:kt,document:B,variables:z,fetchPolicy:Le,errorPolicy:Qe,context:We,update:Te,updateQueries:ce,awaitRefetchQueries:Ie,refetchQueries:ge,removeOptimistic:$?He:void 0,onQueryUpdated:Me,keepRootFields:Xe})}).subscribe({next:function(ot){Ye.broadcastQueries(),rt(ot)},error:function(ot){Ze&&(Ze.loading=!1,Ze.error=ot),$&&Ye.cache.removeOptimistic(He),Ye.broadcastQueries(),gt(ot instanceof Yt?ot:new Yt({networkError:ot}))}})})]}})})},S.prototype.markMutationResult=function(o,h){var E=this;void 0===h&&(h=this.cache);var B=o.result,z=[],$="no-cache"===o.fetchPolicy;if(!$&&un(B,o.errorPolicy)){z.push({result:B.data,dataId:"ROOT_MUTATION",query:o.document,variables:o.variables});var ce=o.updateQueries;ce&&this.queries.forEach(function(ge,Ae){var Ie=ge.observableQuery,Te=Ie&&Ie.queryName;if(Te&&mi.call(ce,Te)){var Me=ce[Te],je=E.queries.get(Ae),Le=je.document,Ve=je.variables,Qe=h.diff({query:Le,variables:Ve,returnPartialData:!0,optimistic:!1}),Xe=Qe.result;if(Qe.complete&&Xe){var He=Me(Xe,{mutationResult:B,queryName:Le&&ft(Le)||void 0,queryVariables:Ve});He&&z.push({result:He,dataId:"ROOT_QUERY",query:Le,variables:Ve})}}})}if(z.length>0||o.refetchQueries||o.update||o.onQueryUpdated||o.removeOptimistic){var ye=[];if(this.refetchQueries({updateCache:function(ge){$||z.forEach(function(Te){return ge.write(Te)});var Ae=o.update;if(Ae){if(!$){var Ie=ge.diff({id:"ROOT_MUTATION",query:E.transform(o.document).asQuery,variables:o.variables,optimistic:!1,returnPartialData:!0});Ie.complete&&(B=(0,t.pi)((0,t.pi)({},B),{data:Ie.result}))}Ae(ge,B,{context:o.context,variables:o.variables})}!$&&!o.keepRootFields&&ge.modify({id:"ROOT_MUTATION",fields:function(Te,Me){return"__typename"===Me.fieldName?Te:Me.DELETE}})},include:o.refetchQueries,optimistic:!1,removeOptimistic:o.removeOptimistic,onQueryUpdated:o.onQueryUpdated||null}).forEach(function(ge){return ye.push(ge)}),o.awaitRefetchQueries||o.onQueryUpdated)return Promise.all(ye).then(function(){return B})}return Promise.resolve(B)},S.prototype.markMutationOptimistic=function(o,h){var E=this,B="function"==typeof o?o(h.variables):o;return this.cache.recordOptimisticTransaction(function(z){try{E.markMutationResult((0,t.pi)((0,t.pi)({},h),{result:{data:B}}),z)}catch($){__DEV__&&i.error($)}},h.mutationId)},S.prototype.fetchQuery=function(o,h,E){return this.fetchQueryObservable(o,h,E).promise},S.prototype.getQueryStore=function(){var o=Object.create(null);return this.queries.forEach(function(h,E){o[E]={variables:h.variables,networkStatus:h.networkStatus,networkError:h.networkError,graphQLErrors:h.graphQLErrors}}),o},S.prototype.resetErrors=function(o){var h=this.queries.get(o);h&&(h.networkError=void 0,h.graphQLErrors=[])},S.prototype.transform=function(o){var h=this.transformCache;if(!h.has(o)){var E=this.cache.transformDocument(o),B=function xt(S){return dt([lt],Rt(S))}(this.cache.transformForLink(E)),z=this.localState.clientQuery(E),$=B&&this.localState.serverQuery(B),ce={document:E,hasClientExports:$r(E),hasForcedResolvers:this.localState.shouldForceResolvers(E),clientQuery:z,serverQuery:$,defaultVars:It(St(E)),asQuery:(0,t.pi)((0,t.pi)({},E),{definitions:E.definitions.map(function(ge){return"OperationDefinition"===ge.kind&&"query"!==ge.operation?(0,t.pi)((0,t.pi)({},ge),{operation:"query"}):ge})})},ye=function(ge){ge&&!h.has(ge)&&h.set(ge,ce)};ye(o),ye(E),ye(z),ye($)}return h.get(o)},S.prototype.getVariables=function(o,h){return(0,t.pi)((0,t.pi)({},this.transform(o).defaultVars),h)},S.prototype.watchQuery=function(o){typeof(o=(0,t.pi)((0,t.pi)({},o),{variables:this.getVariables(o.query,o.variables)})).notifyOnNetworkStatusChange>"u"&&(o.notifyOnNetworkStatusChange=!1);var h=new sn(this),E=new Lr({queryManager:this,queryInfo:h,options:o});return this.queries.set(E.queryId,h),h.init({document:E.query,observableQuery:E,variables:E.variables}),E},S.prototype.query=function(o,h){var E=this;return void 0===h&&(h=this.generateQueryId()),__DEV__?i(o.query,"query option is required. You must specify your GraphQL document in the query option."):i(o.query,14),__DEV__?i("Document"===o.query.kind,'You must wrap the query string in a "gql" tag.'):i("Document"===o.query.kind,15),__DEV__?i(!o.returnPartialData,"returnPartialData option only supported on watchQuery."):i(!o.returnPartialData,16),__DEV__?i(!o.pollInterval,"pollInterval option only supported on watchQuery."):i(!o.pollInterval,17),this.fetchQuery(h,o).finally(function(){return E.stopQuery(h)})},S.prototype.generateQueryId=function(){return String(this.queryIdCounter++)},S.prototype.generateRequestId=function(){return this.requestIdCounter++},S.prototype.generateMutationId=function(){return String(this.mutationIdCounter++)},S.prototype.stopQueryInStore=function(o){this.stopQueryInStoreNoBroadcast(o),this.broadcastQueries()},S.prototype.stopQueryInStoreNoBroadcast=function(o){var h=this.queries.get(o);h&&h.stop()},S.prototype.clearStore=function(o){return void 0===o&&(o={discardWatches:!0}),this.cancelPendingFetches(__DEV__?new n("Store reset while query was in flight (not completed in link chain)"):new n(18)),this.queries.forEach(function(h){h.observableQuery?h.networkStatus=tt.loading:h.stop()}),this.mutationStore&&(this.mutationStore=Object.create(null)),this.cache.reset(o)},S.prototype.getObservableQueries=function(o){var h=this;void 0===o&&(o="active");var E=new Map,B=new Map,z=new Set;return Array.isArray(o)&&o.forEach(function($){"string"==typeof $?B.set($,!1):function D(S){return De(S)&&"Document"===S.kind&&Array.isArray(S.definitions)}($)?B.set(h.transform($).document,!1):De($)&&$.query&&z.add($)}),this.queries.forEach(function($,ce){var ye=$.observableQuery,ge=$.document;if(ye){if("all"===o)return void E.set(ce,ye);var Ae=ye.queryName;if("standby"===ye.options.fetchPolicy||"active"===o&&!ye.hasObservers())return;("active"===o||Ae&&B.has(Ae)||ge&&B.has(ge))&&(E.set(ce,ye),Ae&&B.set(Ae,!0),ge&&B.set(ge,!0))}}),z.size&&z.forEach(function($){var ce=rn("legacyOneTimeQuery"),ye=h.getQuery(ce).init({document:$.query,variables:$.variables}),ge=new Lr({queryManager:h,queryInfo:ye,options:(0,t.pi)((0,t.pi)({},$),{fetchPolicy:"network-only"})});i(ge.queryId===ce),ye.setObservableQuery(ge),E.set(ce,ge)}),__DEV__&&B.size&&B.forEach(function($,ce){$||__DEV__&&i.warn("Unknown query ".concat("string"==typeof ce?"named ":"").concat(JSON.stringify(ce,null,2)," requested in refetchQueries options.include array"))}),E},S.prototype.reFetchObservableQueries=function(o){var h=this;void 0===o&&(o=!1);var E=[];return this.getObservableQueries(o?"all":"active").forEach(function(B,z){var $=B.options.fetchPolicy;B.resetLastResults(),(o||"standby"!==$&&"cache-only"!==$)&&E.push(B.refetch()),h.getQuery(z).setDiff(null)}),this.broadcastQueries(),Promise.all(E)},S.prototype.setObservableQuery=function(o){this.getQuery(o.queryId).setObservableQuery(o)},S.prototype.startGraphQLSubscription=function(o){var h=this,E=o.query,B=o.fetchPolicy,z=o.errorPolicy,$=o.variables,ce=o.context,ye=void 0===ce?{}:ce;E=this.transform(E).document,$=this.getVariables(E,$);var ge=function(Ie){return h.getObservableFromLink(E,ye,Ie).map(function(Te){if("no-cache"!==B&&(un(Te,z)&&h.cache.write({query:E,result:Te.data,dataId:"ROOT_SUBSCRIPTION",variables:Ie}),h.broadcastQueries()),_e(Te))throw new Yt({graphQLErrors:Te.errors});return Te})};if(this.transform(E).hasClientExports){var Ae=this.localState.addExportedVariables(E,$,ye).then(ge);return new be(function(Ie){var Te=null;return Ae.then(function(Me){return Te=Me.subscribe(Ie)},Ie.error),function(){return Te&&Te.unsubscribe()}})}return ge($)},S.prototype.stopQuery=function(o){this.stopQueryNoBroadcast(o),this.broadcastQueries()},S.prototype.stopQueryNoBroadcast=function(o){this.stopQueryInStoreNoBroadcast(o),this.removeQuery(o)},S.prototype.removeQuery=function(o){this.fetchCancelFns.delete(o),this.queries.has(o)&&(this.getQuery(o).stop(),this.queries.delete(o))},S.prototype.broadcastQueries=function(){this.onBroadcast&&this.onBroadcast(),this.queries.forEach(function(o){return o.notify()})},S.prototype.getLocalState=function(){return this.localState},S.prototype.getObservableFromLink=function(o,h,E,B){var $,z=this;void 0===B&&(B=null!==($=h?.queryDeduplication)&&void 0!==$?$:this.queryDeduplication);var ce,ye=this.transform(o).serverQuery;if(ye){var Ae=this.inFlightLinkObservables,Ie=this.link,Te={query:ye,variables:E,operationName:ft(ye)||void 0,context:this.prepareContext((0,t.pi)((0,t.pi)({},h),{forceFetch:!B}))};if(h=Te.context,B){var Me=Ae.get(ye)||new Map;Ae.set(ye,Me);var je=H(E);if(!(ce=Me.get(je))){var Le=new gr([Nt(Ie,Te)]);Me.set(je,ce=Le),Le.cleanup(function(){Me.delete(je)&&Me.size<1&&Ae.delete(ye)})}}else ce=new gr([Nt(Ie,Te)])}else ce=new gr([be.of({data:{}})]),h=this.prepareContext(h);var Ve=this.transform(o).clientQuery;return Ve&&(ce=we(ce,function(Qe){return z.localState.runResolvers({document:Ve,remoteResult:Qe,context:h,variables:E})})),ce},S.prototype.getResultsFromLink=function(o,h,E){var B=o.lastRequestId=this.generateRequestId();return we(this.getObservableFromLink(o.document,E.context,E.variables),function(z){var $=Gt(z.errors);if(B>=o.lastRequestId){if($&&"none"===E.errorPolicy)throw o.markError(new Yt({graphQLErrors:z.errors}));o.markResult(z,E,h),o.markReady()}var ce={data:z.data,loading:!1,networkStatus:tt.ready};return $&&"ignore"!==E.errorPolicy&&(ce.errors=z.errors,ce.networkStatus=tt.error),ce},function(z){var $=On(z)?z:new Yt({networkError:z});throw B>=o.lastRequestId&&o.markError($),$})},S.prototype.fetchQueryObservable=function(o,h,E){var B=this;void 0===E&&(E=tt.loading);var z=this.transform(h.query).document,$=this.getVariables(z,h.variables),ce=this.getQuery(o),ye=this.defaultOptions.watchQuery,ge=h.fetchPolicy,Ie=h.errorPolicy,Me=h.returnPartialData,Le=h.notifyOnNetworkStatusChange,Qe=h.context,We=Object.assign({},h,{query:z,variables:$,fetchPolicy:void 0===ge?ye&&ye.fetchPolicy||"cache-first":ge,errorPolicy:void 0===Ie?ye&&ye.errorPolicy||"none":Ie,returnPartialData:void 0!==Me&&Me,notifyOnNetworkStatusChange:void 0!==Le&&Le,context:void 0===Qe?{}:Qe}),He=function(Je){We.variables=Je;var rt=B.fetchQueryByPolicy(ce,We,E);return"standby"!==We.fetchPolicy&&rt.length>0&&ce.observableQuery&&ce.observableQuery.applyNextFetchPolicy("after-fetch",h),rt},Ze=function(){return B.fetchCancelFns.delete(o)};this.fetchCancelFns.set(o,function(Je){Ze(),setTimeout(function(){return Ye.cancel(Je)})});var Ye=new gr(this.transform(We.query).hasClientExports?this.localState.addExportedVariables(We.query,We.variables,We.context).then(He):He(We.variables));return Ye.promise.then(Ze,Ze),Ye},S.prototype.refetchQueries=function(o){var h=this,E=o.updateCache,B=o.include,z=o.optimistic,$=void 0!==z&&z,ce=o.removeOptimistic,ye=void 0===ce?$?rn("refetchQueries"):void 0:ce,ge=o.onQueryUpdated,Ae=new Map;B&&this.getObservableQueries(B).forEach(function(Te,Me){Ae.set(Me,{oq:Te,lastDiff:h.getQuery(Me).getDiff()})});var Ie=new Map;return E&&this.cache.batch({update:E,optimistic:$&&ye||!1,removeOptimistic:ye,onWatchUpdated:function(Te,Me,je){var Le=Te.watcher instanceof sn&&Te.watcher.observableQuery;if(Le){if(ge){Ae.delete(Le.queryId);var Ve=ge(Le,Me,je);return!0===Ve&&(Ve=Le.refetch()),!1!==Ve&&Ie.set(Le,Ve),Ve}null!==ge&&Ae.set(Le.queryId,{oq:Le,lastDiff:je,diff:Me})}}}),Ae.size&&Ae.forEach(function(Te,Me){var Qe,je=Te.oq,Le=Te.lastDiff,Ve=Te.diff;if(ge){if(!Ve){var Xe=je.queryInfo;Xe.reset(),Ve=Xe.getDiff()}Qe=ge(je,Ve,Le)}(!ge||!0===Qe)&&(Qe=je.refetch()),!1!==Qe&&Ie.set(je,Qe),Me.indexOf("legacyOneTimeQuery")>=0&&h.stopQueryNoBroadcast(Me)}),ye&&this.cache.removeOptimistic(ye),Ie},S.prototype.fetchQueryByPolicy=function(o,h,E){var B=this,z=h.query,$=h.variables,ce=h.fetchPolicy,ye=h.refetchWritePolicy,ge=h.errorPolicy,Ae=h.returnPartialData,Ie=h.context,Te=h.notifyOnNetworkStatusChange,Me=o.networkStatus;o.init({document:this.transform(z).document,variables:$,networkStatus:E});var je=function(){return o.getDiff($)},Le=function(He,Ze){void 0===Ze&&(Ze=o.networkStatus||tt.loading);var Ye=He.result;__DEV__&&!Ae&&!(0,ut.D)(Ye,{})&&Tn(He.missing);var Je=function(rt){return be.of((0,t.pi)({data:rt,loading:br(Ze),networkStatus:Ze},He.complete?null:{partial:!0}))};return Ye&&B.transform(z).hasForcedResolvers?B.localState.runResolvers({document:z,remoteResult:{data:Ye},context:Ie,variables:$,onlyRunForcedResolvers:!0}).then(function(rt){return Je(rt.data||void 0)}):Je(Ye)},Ve="no-cache"===ce?0:E===tt.refetch&&"merge"!==ye?1:2,Qe=function(){return B.getResultsFromLink(o,Ve,{variables:$,context:Ie,fetchPolicy:ce,errorPolicy:ge})},Xe=Te&&"number"==typeof Me&&Me!==E&&br(E);switch(ce){default:case"cache-first":return(We=je()).complete?[Le(We,o.markReady())]:Ae||Xe?[Le(We),Qe()]:[Qe()];case"cache-and-network":var We;return(We=je()).complete||Ae||Xe?[Le(We),Qe()]:[Qe()];case"cache-only":return[Le(je(),o.markReady())];case"network-only":return Xe?[Le(je()),Qe()]:[Qe()];case"no-cache":return Xe?[Le(o.getDiff()),Qe()]:[Qe()];case"standby":return[]}},S.prototype.getQuery=function(o){return o&&!this.queries.has(o)&&this.queries.set(o,new sn(this,o)),this.queries.get(o)},S.prototype.prepareContext=function(o){void 0===o&&(o={});var h=this.localState.prepareContext(o);return(0,t.pi)((0,t.pi)({},h),{clientAwareness:this.clientAwareness})},S}();function Nr(S,o){return zt(S,o,o.variables&&{variables:(0,t.pi)((0,t.pi)({},S&&S.variables),o.variables)})}var cn,Mn=!1,bi=function(){function S(o){var h=this;this.resetStoreCallbacks=[],this.clearStoreCallbacks=[];var E=o.uri,$=o.cache,ce=o.ssrMode,ye=void 0!==ce&&ce,ge=o.ssrForceFetchDelay,Ae=void 0===ge?0:ge,Ie=o.connectToDevTools,Te=void 0===Ie?"object"==typeof window&&!window.__APOLLO_CLIENT__&&__DEV__:Ie,Me=o.queryDeduplication,je=void 0===Me||Me,Le=o.defaultOptions,Ve=o.assumeImmutableResults,Qe=void 0!==Ve&&Ve,Xe=o.resolvers,We=o.typeDefs,He=o.fragmentMatcher,Ze=o.name,Ye=o.version,Je=o.link;if(Je||(Je=E?new tr({uri:E,credentials:o.credentials,headers:o.headers}):mt.empty()),!$)throw __DEV__?new n("To initialize Apollo Client, you must specify a 'cache' property in the options object. \nFor more information, please visit: https://go.apollo.dev/c/docs"):new n(7);if(this.link=Je,this.cache=$,this.disableNetworkFetches=ye||Ae>0,this.queryDeduplication=je,this.defaultOptions=Le||Object.create(null),this.typeDefs=We,Ae&&setTimeout(function(){return h.disableNetworkFetches=!1},Ae),this.watchQuery=this.watchQuery.bind(this),this.query=this.query.bind(this),this.mutate=this.mutate.bind(this),this.resetStore=this.resetStore.bind(this),this.reFetchObservableQueries=this.reFetchObservableQueries.bind(this),Te&&"object"==typeof window&&(window.__APOLLO_CLIENT__=this),!Mn&&__DEV__&&(Mn=!0,typeof window<"u"&&window.document&&window.top===window.self&&!window.__APOLLO_DEVTOOLS_GLOBAL_HOOK__)){var rt=window.navigator,gt=rt&&rt.userAgent,ot=void 0;"string"==typeof gt&&(gt.indexOf("Chrome/")>-1?ot="https://chrome.google.com/webstore/detail/apollo-client-developer-t/jdkknkkbebbapilgoeccciglkfbmbnfm":gt.indexOf("Firefox/")>-1&&(ot="https://addons.mozilla.org/en-US/firefox/addon/apollo-developer-tools/")),ot&&__DEV__&&i.log("Download the Apollo DevTools for a better development experience: "+ot)}this.version="3.6.9",this.localState=new Pn({cache:$,client:this,resolvers:Xe,fragmentMatcher:He}),this.queryManager=new gi({cache:this.cache,link:this.link,defaultOptions:this.defaultOptions,queryDeduplication:je,ssrMode:ye,clientAwareness:{name:Ze,version:Ye},localState:this.localState,assumeImmutableResults:Qe,onBroadcast:Te?function(){h.devToolsHookCb&&h.devToolsHookCb({action:{},state:{queries:h.queryManager.getQueryStore(),mutations:h.queryManager.mutationStore||{}},dataWithOptimisticResults:h.cache.extract(!0)})}:void 0})}return S.prototype.stop=function(){this.queryManager.stop()},S.prototype.watchQuery=function(o){return this.defaultOptions.watchQuery&&(o=Nr(this.defaultOptions.watchQuery,o)),this.disableNetworkFetches&&("network-only"===o.fetchPolicy||"cache-and-network"===o.fetchPolicy)&&(o=(0,t.pi)((0,t.pi)({},o),{fetchPolicy:"cache-first"})),this.queryManager.watchQuery(o)},S.prototype.query=function(o){return this.defaultOptions.query&&(o=Nr(this.defaultOptions.query,o)),__DEV__?i("cache-and-network"!==o.fetchPolicy,"The cache-and-network fetchPolicy does not work with client.query, because client.query can only return a single result. Please use client.watchQuery to receive multiple results from the cache and the network, or consider using a different fetchPolicy, such as cache-first or network-only."):i("cache-and-network"!==o.fetchPolicy,8),this.disableNetworkFetches&&"network-only"===o.fetchPolicy&&(o=(0,t.pi)((0,t.pi)({},o),{fetchPolicy:"cache-first"})),this.queryManager.query(o)},S.prototype.mutate=function(o){return this.defaultOptions.mutate&&(o=Nr(this.defaultOptions.mutate,o)),this.queryManager.mutate(o)},S.prototype.subscribe=function(o){return this.queryManager.startGraphQLSubscription(o)},S.prototype.readQuery=function(o,h){return void 0===h&&(h=!1),this.cache.readQuery(o,h)},S.prototype.readFragment=function(o,h){return void 0===h&&(h=!1),this.cache.readFragment(o,h)},S.prototype.writeQuery=function(o){this.cache.writeQuery(o),this.queryManager.broadcastQueries()},S.prototype.writeFragment=function(o){this.cache.writeFragment(o),this.queryManager.broadcastQueries()},S.prototype.__actionHookForDevTools=function(o){this.devToolsHookCb=o},S.prototype.__requestRaw=function(o){return Nt(this.link,o)},S.prototype.resetStore=function(){var o=this;return Promise.resolve().then(function(){return o.queryManager.clearStore({discardWatches:!1})}).then(function(){return Promise.all(o.resetStoreCallbacks.map(function(h){return h()}))}).then(function(){return o.reFetchObservableQueries()})},S.prototype.clearStore=function(){var o=this;return Promise.resolve().then(function(){return o.queryManager.clearStore({discardWatches:!0})}).then(function(){return Promise.all(o.clearStoreCallbacks.map(function(h){return h()}))})},S.prototype.onResetStore=function(o){var h=this;return this.resetStoreCallbacks.push(o),function(){h.resetStoreCallbacks=h.resetStoreCallbacks.filter(function(E){return E!==o})}},S.prototype.onClearStore=function(o){var h=this;return this.clearStoreCallbacks.push(o),function(){h.clearStoreCallbacks=h.clearStoreCallbacks.filter(function(E){return E!==o})}},S.prototype.reFetchObservableQueries=function(o){return this.queryManager.reFetchObservableQueries(o)},S.prototype.refetchQueries=function(o){var h=this.queryManager.refetchQueries(o),E=[],B=[];h.forEach(function($,ce){E.push(ce),B.push($)});var z=Promise.all(B);return z.queries=E,z.results=B,z.catch(function($){__DEV__&&i.debug("In client.refetchQueries, Promise.all promise rejected with error ".concat($))}),z},S.prototype.getObservableQueries=function(o){return void 0===o&&(o="active"),this.queryManager.getObservableQueries(o)},S.prototype.extract=function(o){return this.cache.extract(o)},S.prototype.restore=function(o){return this.cache.restore(o)},S.prototype.addResolvers=function(o){this.localState.addResolvers(o)},S.prototype.setResolvers=function(o){this.localState.setResolvers(o)},S.prototype.getResolvers=function(){return this.localState.getResolvers()},S.prototype.setLocalStateFragmentMatcher=function(o){this.localState.setFragmentMatcher(o)},S.prototype.setLink=function(o){this.link=this.queryManager.link=o},S}();cn||(cn={});var kn=function(){function S(){this.getFragmentDoc=(0,ir.re)(ke)}return S.prototype.batch=function(o){var B,h=this;return this.performTransaction(function(){return B=o.update(h)},"string"==typeof o.optimistic?o.optimistic:!1===o.optimistic?null:void 0),B},S.prototype.recordOptimisticTransaction=function(o,h){this.performTransaction(o,h)},S.prototype.transformDocument=function(o){return o},S.prototype.identify=function(o){},S.prototype.gc=function(){return[]},S.prototype.modify=function(o){return!1},S.prototype.transformForLink=function(o){return o},S.prototype.readQuery=function(o,h){return void 0===h&&(h=!!o.optimistic),this.read((0,t.pi)((0,t.pi)({},o),{rootId:o.id||"ROOT_QUERY",optimistic:h}))},S.prototype.readFragment=function(o,h){return void 0===h&&(h=!!o.optimistic),this.read((0,t.pi)((0,t.pi)({},o),{query:this.getFragmentDoc(o.fragment,o.fragmentName),rootId:o.id,optimistic:h}))},S.prototype.writeQuery=function(o){var h=o.id,E=o.data,B=(0,t._T)(o,["id","data"]);return this.write(Object.assign(B,{dataId:h||"ROOT_QUERY",result:E}))},S.prototype.writeFragment=function(o){var h=o.id,E=o.data,B=o.fragment,z=o.fragmentName,$=(0,t._T)(o,["id","data","fragment","fragmentName"]);return this.write(Object.assign($,{query:this.getFragmentDoc(B,z),dataId:h,result:E}))},S.prototype.updateQuery=function(o,h){return this.batch({update:function(E){var B=E.readQuery(o),z=h(B);return null==z?B:(E.writeQuery((0,t.pi)((0,t.pi)({},o),{data:z})),z)}})},S.prototype.updateFragment=function(o,h){return this.batch({update:function(E){var B=E.readFragment(o),z=h(B);return null==z?B:(E.writeFragment((0,t.pi)((0,t.pi)({},o),{data:z})),z)}})},S}(),fn=function S(o,h,E,B){this.message=o,this.path=h,this.query=E,this.variables=B};function ln(S){return __DEV__&&function Ei(S){var o=new Set([S]);return o.forEach(function(h){De(h)&&function _i(S){if(__DEV__&&!Object.isFrozen(S))try{Object.freeze(S)}catch(o){if(o instanceof TypeError)return null;throw o}return S}(h)===h&&Object.getOwnPropertyNames(h).forEach(function(E){De(h[E])&&o.add(h[E])})}),S}(S),S}var Br=Object.create(null),hn=function(){return Br},Fn=Object.create(null),_r=function(){function S(o,h){var E=this;this.policies=o,this.group=h,this.data=Object.create(null),this.rootIds=Object.create(null),this.refs=Object.create(null),this.getFieldValue=function(B,z){return ln(R(B)?E.get(B.__ref,z):B&&B[z])},this.canRead=function(B){return R(B)?E.has(B.__ref):"object"==typeof B},this.toReference=function(B,z){if("string"==typeof B)return m(B);if(R(B))return B;var $=E.policies.identify(B)[0];if($){var ce=m($);return z&&E.merge($,B),ce}}}return S.prototype.toObject=function(){return(0,t.pi)({},this.data)},S.prototype.has=function(o){return void 0!==this.lookup(o,!0)},S.prototype.get=function(o,h){if(this.group.depend(o,h),st.call(this.data,o)){var E=this.data[o];if(E&&st.call(E,h))return E[h]}return"__typename"===h&&st.call(this.policies.rootTypenamesById,o)?this.policies.rootTypenamesById[o]:this instanceof Ut?this.parent.get(o,h):void 0},S.prototype.lookup=function(o,h){return h&&this.group.depend(o,"__exists"),st.call(this.data,o)?this.data[o]:this instanceof Ut?this.parent.lookup(o,h):this.policies.rootTypenamesById[o]?Object.create(null):void 0},S.prototype.merge=function(o,h){var B,E=this;R(o)&&(o=o.__ref),R(h)&&(h=h.__ref);var z="string"==typeof o?this.lookup(B=o):o,$="string"==typeof h?this.lookup(B=h):h;if($){__DEV__?i("string"==typeof B,"store.merge expects a string ID"):i("string"==typeof B,1);var ce=new Dt(wi).merge(z,$);if(this.data[B]=ce,ce!==z&&(delete this.refs[B],this.group.caching)){var ye=Object.create(null);z||(ye.__exists=1),Object.keys($).forEach(function(ge){if(!z||z[ge]!==ce[ge]){ye[ge]=1;var Ae=At(ge);Ae!==ge&&!E.policies.hasKeyArgs(ce.__typename,Ae)&&(ye[Ae]=1),void 0===ce[ge]&&!(E instanceof Ut)&&delete ce[ge]}}),ye.__typename&&!(z&&z.__typename)&&this.policies.rootTypenamesById[B]===ce.__typename&&delete ye.__typename,Object.keys(ye).forEach(function(ge){return E.group.dirty(B,ge)})}}},S.prototype.modify=function(o,h){var E=this,B=this.lookup(o);if(B){var z=Object.create(null),$=!1,ce=!0,ye={DELETE:Br,INVALIDATE:Fn,isReference:R,toReference:this.toReference,canRead:this.canRead,readField:function(ge,Ae){return E.policies.readField("string"==typeof ge?{fieldName:ge,from:Ae||m(o)}:ge,{store:E})}};if(Object.keys(B).forEach(function(ge){var Ae=At(ge),Ie=B[ge];if(void 0!==Ie){var Te="function"==typeof h?h:h[ge]||h[Ae];if(Te){var Me=Te===hn?Br:Te(ln(Ie),(0,t.pi)((0,t.pi)({},ye),{fieldName:Ae,storeFieldName:ge,storage:E.getStorage(o,ge)}));Me===Fn?E.group.dirty(o,ge):(Me===Br&&(Me=void 0),Me!==Ie&&(z[ge]=Me,$=!0,Ie=Me))}void 0!==Ie&&(ce=!1)}}),$)return this.merge(o,z),ce&&(this instanceof Ut?this.data[o]=void 0:delete this.data[o],this.group.dirty(o,"__exists")),!0}return!1},S.prototype.delete=function(o,h,E){var B,z=this.lookup(o);if(z){var $=this.getFieldValue(z,"__typename"),ce=h&&E?this.policies.getStoreFieldName({typename:$,fieldName:h,args:E}):h;return this.modify(o,ce?((B={})[ce]=hn,B):hn)}return!1},S.prototype.evict=function(o,h){var E=!1;return o.id&&(st.call(this.data,o.id)&&(E=this.delete(o.id,o.fieldName,o.args)),this instanceof Ut&&this!==h&&(E=this.parent.evict(o,h)||E),(o.fieldName||E)&&this.group.dirty(o.id,o.fieldName||"__exists")),E},S.prototype.clear=function(){this.replace(null)},S.prototype.extract=function(){var o=this,h=this.toObject(),E=[];return this.getRootIdSet().forEach(function(B){st.call(o.policies.rootTypenamesById,B)||E.push(B)}),E.length&&(h.__META={extraRootIds:E.sort()}),h},S.prototype.replace=function(o){var h=this;if(Object.keys(this.data).forEach(function(z){o&&st.call(o,z)||h.delete(z)}),o){var E=o.__META,B=(0,t._T)(o,["__META"]);Object.keys(B).forEach(function(z){h.merge(z,B[z])}),E&&E.extraRootIds.forEach(this.retain,this)}},S.prototype.retain=function(o){return this.rootIds[o]=(this.rootIds[o]||0)+1},S.prototype.release=function(o){if(this.rootIds[o]>0){var h=--this.rootIds[o];return h||delete this.rootIds[o],h}return 0},S.prototype.getRootIdSet=function(o){return void 0===o&&(o=new Set),Object.keys(this.rootIds).forEach(o.add,o),this instanceof Ut?this.parent.getRootIdSet(o):Object.keys(this.policies.rootTypenamesById).forEach(o.add,o),o},S.prototype.gc=function(){var o=this,h=this.getRootIdSet(),E=this.toObject();h.forEach(function($){st.call(E,$)&&(Object.keys(o.findChildRefIds($)).forEach(h.add,h),delete E[$])});var B=Object.keys(E);if(B.length){for(var z=this;z instanceof Ut;)z=z.parent;B.forEach(function($){return z.delete($)})}return B},S.prototype.findChildRefIds=function(o){if(!st.call(this.refs,o)){var h=this.refs[o]=Object.create(null),E=this.data[o];if(!E)return h;var B=new Set([E]);B.forEach(function(z){R(z)&&(h[z.__ref]=!0),De(z)&&Object.keys(z).forEach(function($){var ce=z[$];De(ce)&&B.add(ce)})})}return this.refs[o]},S.prototype.makeCacheKey=function(){return this.group.keyMaker.lookupArray(arguments)},S}(),Ln=function(){function S(o,h){void 0===h&&(h=null),this.caching=o,this.parent=h,this.d=null,this.resetCaching()}return S.prototype.resetCaching=function(){this.d=this.caching?(0,ir.dP)():null,this.keyMaker=new rr.B(Pt)},S.prototype.depend=function(o,h){if(this.d){this.d(pn(o,h));var E=At(h);E!==h&&this.d(pn(o,E)),this.parent&&this.parent.depend(o,h)}},S.prototype.dirty=function(o,h){this.d&&this.d.dirty(pn(o,h),"__exists"===h?"forget":"setDirty")},S}();function pn(S,o){return o+"#"+S}function Nn(S,o){Sr(S)&&S.group.depend(o,"__exists")}!function(S){var o=function(h){function E(B){var $=B.resultCaching,ye=B.seed,ge=h.call(this,B.policies,new Ln(void 0===$||$))||this;return ge.stump=new Si(ge),ge.storageTrie=new rr.B(Pt),ye&&ge.replace(ye),ge}return(0,t.ZT)(E,h),E.prototype.addLayer=function(B,z){return this.stump.addLayer(B,z)},E.prototype.removeLayer=function(){return this},E.prototype.getStorage=function(){return this.storageTrie.lookupArray(arguments)},E}(S);S.Root=o}(_r||(_r={}));var Ut=function(S){function o(h,E,B,z){var $=S.call(this,E.policies,z)||this;return $.id=h,$.parent=E,$.replay=B,$.group=z,B($),$}return(0,t.ZT)(o,S),o.prototype.addLayer=function(h,E){return new o(h,this,E,this.group)},o.prototype.removeLayer=function(h){var E=this,B=this.parent.removeLayer(h);return h===this.id?(this.group.caching&&Object.keys(this.data).forEach(function(z){var $=E.data[z],ce=B.lookup(z);ce?$?$!==ce&&Object.keys($).forEach(function(ye){(0,ut.D)($[ye],ce[ye])||E.group.dirty(z,ye)}):(E.group.dirty(z,"__exists"),Object.keys(ce).forEach(function(ye){E.group.dirty(z,ye)})):E.delete(z)}),B):B===this.parent?this:B.addLayer(this.id,this.replay)},o.prototype.toObject=function(){return(0,t.pi)((0,t.pi)({},this.parent.toObject()),this.data)},o.prototype.findChildRefIds=function(h){var E=this.parent.findChildRefIds(h);return st.call(this.data,h)?(0,t.pi)((0,t.pi)({},E),S.prototype.findChildRefIds.call(this,h)):E},o.prototype.getStorage=function(){for(var h=this.parent;h.parent;)h=h.parent;return h.getStorage.apply(h,arguments)},o}(_r),Si=function(S){function o(h){return S.call(this,"EntityStore.Stump",h,function(){},new Ln(h.group.caching,h.group))||this}return(0,t.ZT)(o,S),o.prototype.removeLayer=function(){return this},o.prototype.merge=function(){return this.parent.merge.apply(this.parent,arguments)},o}(Ut);function wi(S,o,h){var E=S[h],B=o[h];return(0,ut.D)(E,B)?E:B}function Sr(S){return!!(S instanceof _r&&S.group.caching)}function Bn(S){return[S.selectionSet,S.objectOrReference,S.context,S.context.canonizeResults]}var Oi=function(){function S(o){var h=this;this.knownResults=new(Pt?WeakMap:Map),this.config=zt(o,{addTypename:!1!==o.addTypename,canonizeResults:kr(o)}),this.canon=o.canon||new vr,this.executeSelectionSet=(0,ir.re)(function(E){var B,z=E.context.canonizeResults,$=Bn(E);$[3]=!z;var ce=(B=h.executeSelectionSet).peek.apply(B,$);return ce?z?(0,t.pi)((0,t.pi)({},ce),{result:h.canon.admit(ce.result)}):ce:(Nn(E.context.store,E.enclosingRef.__ref),h.execSelectionSetImpl(E))},{max:this.config.resultCacheMaxSize,keyArgs:Bn,makeCacheKey:function(E,B,z,$){if(Sr(z.store))return z.store.makeCacheKey(E,R(B)?B.__ref:B,z.varString,$)}}),this.executeSubSelectedArray=(0,ir.re)(function(E){return Nn(E.context.store,E.enclosingRef.__ref),h.execSubSelectedArrayImpl(E)},{max:this.config.resultCacheMaxSize,makeCacheKey:function(E){var B=E.field,z=E.array,$=E.context;if(Sr($.store))return $.store.makeCacheKey(B,z,$.varString)}})}return S.prototype.resetCanon=function(){this.canon=new vr},S.prototype.diffQueryAgainstStore=function(o){var h=o.store,E=o.query,B=o.rootId,z=void 0===B?"ROOT_QUERY":B,$=o.variables,ce=o.returnPartialData,ye=void 0===ce||ce,ge=o.canonizeResults,Ae=void 0===ge?this.config.canonizeResults:ge,Ie=this.config.cache.policies;$=(0,t.pi)((0,t.pi)({},It(Ft(E))),$);var je,Te=m(z),Me=this.executeSelectionSet({selectionSet:Ct(E).selectionSet,objectOrReference:Te,enclosingRef:Te,context:{store:h,query:E,policies:Ie,variables:$,varString:H($),canonizeResults:Ae,fragmentMap:ne(Tt(E))}});if(Me.missing&&(je=[new fn(Ai(Me.missing),Me.missing,E,$)],!ye))throw je[0];return{result:Me.result,complete:!je,missing:je}},S.prototype.isFresh=function(o,h,E,B){if(Sr(B.store)&&this.knownResults.get(o)===E){var z=this.executeSelectionSet.peek(E,h,B,this.canon.isKnown(o));if(z&&o===z.result)return!0}return!1},S.prototype.execSelectionSetImpl=function(o){var h=this,E=o.selectionSet,B=o.objectOrReference,z=o.enclosingRef,$=o.context;if(R(B)&&!$.policies.rootTypenamesById[B.__ref]&&!$.store.has(B.__ref))return{result:this.canon.empty,missing:"Dangling reference to missing ".concat(B.__ref," object")};var Te,ce=$.variables,ye=$.policies,Ae=$.store.getFieldValue(B,"__typename"),Ie=[],Me=new Dt;function je(We,He){var Ze;return We.missing&&(Te=Me.merge(Te,((Ze={})[He]=We.missing,Ze))),We.result}this.config.addTypename&&"string"==typeof Ae&&!ye.rootIdsByTypename[Ae]&&Ie.push({__typename:Ae});var Le=new Set(E.selections);Le.forEach(function(We){var He,Ze;if(Ht(We,ce))if(pt(We)){var Ye=ye.readField({fieldName:We.name.value,field:We,variables:$.variables,from:B},$),Je=ct(We);void 0===Ye?$e.added(We)||(Te=Me.merge(Te,((He={})[Je]="Can't find field '".concat(We.name.value,"' on ").concat(R(B)?B.__ref+" object":"object "+JSON.stringify(B,null,2)),He))):it(Ye)?Ye=je(h.executeSubSelectedArray({field:We,array:Ye,enclosingRef:z,context:$}),Je):We.selectionSet?null!=Ye&&(Ye=je(h.executeSelectionSet({selectionSet:We.selectionSet,objectOrReference:Ye,enclosingRef:R(Ye)?Ye:z,context:$}),Je)):$.canonizeResults&&(Ye=h.canon.pass(Ye)),void 0!==Ye&&Ie.push(((Ze={})[Je]=Ye,Ze))}else{var rt=U(We,$.fragmentMap);rt&&ye.fragmentMatches(rt,Ae)&&rt.selectionSet.selections.forEach(Le.add,Le)}});var Qe={result:Bt(Ie),missing:Te},Xe=$.canonizeResults?this.canon.admit(Qe):ln(Qe);return Xe.result&&this.knownResults.set(Xe.result,E),Xe},S.prototype.execSubSelectedArrayImpl=function(o){var ce,h=this,E=o.field,B=o.array,z=o.enclosingRef,$=o.context,ye=new Dt;function ge(Ae,Ie){var Te;return Ae.missing&&(ce=ye.merge(ce,((Te={})[Ie]=Ae.missing,Te))),Ae.result}return E.selectionSet&&(B=B.filter($.store.canRead)),B=B.map(function(Ae,Ie){return null===Ae?null:it(Ae)?ge(h.executeSubSelectedArray({field:E,array:Ae,enclosingRef:z,context:$}),Ie):E.selectionSet?ge(h.executeSelectionSet({selectionSet:E.selectionSet,objectOrReference:Ae,enclosingRef:R(Ae)?Ae:z,context:$}),Ie):(__DEV__&&function xi(S,o,h){if(!o.selectionSet){var E=new Set([h]);E.forEach(function(B){De(B)&&(__DEV__?i(!R(B),"Missing selection set for object of type ".concat(function en(S,o){return R(o)?S.get(o.__ref,"__typename"):o&&o.__typename}(S,B)," returned for query field ").concat(o.name.value)):i(!R(B),5),Object.values(B).forEach(E.add,E))})}}($.store,E,Ae),Ae)}),{result:$.canonizeResults?this.canon.admit(B):B,missing:ce}},S}();function Ai(S){try{JSON.stringify(S,function(o,h){if("string"==typeof h)throw h;return h})}catch(o){return o}}var Un=Object.create(null);function dn(S){var o=JSON.stringify(S);return Un[o]||(Un[o]=Object.create(null))}function jn(S){var o=dn(S);return o.keyFieldsFn||(o.keyFieldsFn=function(h,E){var B=function($,ce){return E.readField(ce,$)},z=E.keyObject=vn(S,function($){var ce=or(E.storeObject,$,B);return void 0===ce&&h!==E.storeObject&&st.call(h,$[0])&&(ce=or(h,$,Qn)),__DEV__?i(void 0!==ce,"Missing field '".concat($.join("."),"' while extracting keyFields from ").concat(JSON.stringify(h))):i(void 0!==ce,2),ce});return"".concat(E.typename,":").concat(JSON.stringify(z))})}function Vn(S){var o=dn(S);return o.keyArgsFn||(o.keyArgsFn=function(h,E){var B=E.field,z=E.variables,$=E.fieldName,ce=vn(S,function(ge){var Ae=ge[0],Ie=Ae.charAt(0);if("@"!==Ie)if("$"!==Ie){if(h)return or(h,ge)}else{var Le=Ae.slice(1);if(z&&st.call(z,Le)){var Ve=ge.slice(0);return Ve[0]=Le,or(z,Ve)}}else if(B&&Gt(B.directives)){var Te=Ae.slice(1),Me=B.directives.find(function(Qe){return Qe.name.value===Te}),je=Me&&Ke(Me,z);return je&&or(je,ge.slice(1))}}),ye=JSON.stringify(ce);return(h||"{}"!==ye)&&($+=":"+ye),$})}function vn(S,o){var h=new Dt;return Wn(S).reduce(function(E,B){var z,$=o(B);if(void 0!==$){for(var ce=B.length-1;ce>=0;--ce)(z={})[B[ce]]=$,$=z;E=h.merge(E,$)}return E},Object.create(null))}function Wn(S){var o=dn(S);if(!o.paths){var h=o.paths=[],E=[];S.forEach(function(B,z){it(B)?(Wn(B).forEach(function($){return h.push(E.concat($))}),E.length=0):(E.push(B),it(S[z+1])||(h.push(E.slice(0)),E.length=0))})}return o.paths}function Qn(S,o){return S[o]}function or(S,o,h){return h=h||Qn,Kn(o.reduce(function E(B,z){return it(B)?B.map(function($){return E($,z)}):B&&h(B,z)},S))}function Kn(S){return De(S)?it(S)?S.map(Kn):vn(Object.keys(S).sort(),function(o){return or(S,o)}):S}function yn(S){return void 0!==S.args?S.args:S.field?Ke(S.field,S.variables):null}nt.setStringify(H);var Ci=function(){},qn=function(S,o){return o.fieldName},zn=function(S,o,h){return(0,h.mergeObjects)(S,o)},Hn=function(S,o){return o},Ri=function(){function S(o){this.config=o,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=(0,t.pi)({dataIdFromObject:pr},o),this.cache=this.config.cache,this.setRootTypename("Query"),this.setRootTypename("Mutation"),this.setRootTypename("Subscription"),o.possibleTypes&&this.addPossibleTypes(o.possibleTypes),o.typePolicies&&this.addTypePolicies(o.typePolicies)}return S.prototype.identify=function(o,h){var E,B=this,z=h&&(h.typename||(null===(E=h.storeObject)||void 0===E?void 0:E.__typename))||o.__typename;if(z===this.rootTypenamesById.ROOT_QUERY)return["ROOT_QUERY"];for(var ye,$=h&&h.storeObject||o,ce=(0,t.pi)((0,t.pi)({},h),{typename:z,storeObject:$,readField:h&&h.readField||function(){var Te=mn(arguments,$);return B.readField(Te,{store:B.cache.data,variables:Te.variables})}}),ge=z&&this.getTypePolicy(z),Ae=ge&&ge.keyFn||this.config.dataIdFromObject;Ae;){var Ie=Ae(o,ce);if(!it(Ie)){ye=Ie;break}Ae=jn(Ie)}return ye=ye?String(ye):void 0,ce.keyObject?[ye,ce.keyObject]:[ye]},S.prototype.addTypePolicies=function(o){var h=this;Object.keys(o).forEach(function(E){var B=o[E],z=B.queryType,$=B.mutationType,ce=B.subscriptionType,ye=(0,t._T)(B,["queryType","mutationType","subscriptionType"]);z&&h.setRootTypename("Query",E),$&&h.setRootTypename("Mutation",E),ce&&h.setRootTypename("Subscription",E),st.call(h.toBeAdded,E)?h.toBeAdded[E].push(ye):h.toBeAdded[E]=[ye]})},S.prototype.updateTypePolicy=function(o,h){var E=this,B=this.getTypePolicy(o),z=h.keyFields,$=h.fields;function ce(ye,ge){ye.merge="function"==typeof ge?ge:!0===ge?zn:!1===ge?Hn:ye.merge}ce(B,h.merge),B.keyFn=!1===z?Ci:it(z)?jn(z):"function"==typeof z?z:B.keyFn,$&&Object.keys($).forEach(function(ye){var ge=E.getFieldPolicy(o,ye,!0),Ae=$[ye];if("function"==typeof Ae)ge.read=Ae;else{var Ie=Ae.keyArgs,Te=Ae.read,Me=Ae.merge;ge.keyFn=!1===Ie?qn:it(Ie)?Vn(Ie):"function"==typeof Ie?Ie:ge.keyFn,"function"==typeof Te&&(ge.read=Te),ce(ge,Me)}ge.read&&ge.merge&&(ge.keyFn=ge.keyFn||qn)})},S.prototype.setRootTypename=function(o,h){void 0===h&&(h=o);var E="ROOT_"+o.toUpperCase(),B=this.rootTypenamesById[E];h!==B&&(__DEV__?i(!B||B===o,"Cannot change root ".concat(o," __typename more than once")):i(!B||B===o,3),B&&delete this.rootIdsByTypename[B],this.rootIdsByTypename[h]=E,this.rootTypenamesById[E]=h)},S.prototype.addPossibleTypes=function(o){var h=this;this.usingPossibleTypes=!0,Object.keys(o).forEach(function(E){h.getSupertypeSet(E,!0),o[E].forEach(function(B){h.getSupertypeSet(B,!0).add(E);var z=B.match(Fr);(!z||z[0]!==B)&&h.fuzzySubtypes.set(B,new RegExp(B))})})},S.prototype.getTypePolicy=function(o){var h=this;if(!st.call(this.typePolicies,o)){var E=this.typePolicies[o]=Object.create(null);E.fields=Object.create(null);var B=this.supertypeMap.get(o);B&&B.size&&B.forEach(function($){var ce=h.getTypePolicy($),ye=ce.fields,ge=(0,t._T)(ce,["fields"]);Object.assign(E,ge),Object.assign(E.fields,ye)})}var z=this.toBeAdded[o];return z&&z.length&&z.splice(0).forEach(function($){h.updateTypePolicy(o,$)}),this.typePolicies[o]},S.prototype.getFieldPolicy=function(o,h,E){if(o){var B=this.getTypePolicy(o).fields;return B[h]||E&&(B[h]=Object.create(null))}},S.prototype.getSupertypeSet=function(o,h){var E=this.supertypeMap.get(o);return!E&&h&&this.supertypeMap.set(o,E=new Set),E},S.prototype.fragmentMatches=function(o,h,E,B){var z=this;if(!o.typeCondition)return!0;if(!h)return!1;var $=o.typeCondition.name.value;if(h===$)return!0;if(this.usingPossibleTypes&&this.supertypeMap.has($))for(var ce=this.getSupertypeSet(h,!0),ye=[ce],ge=function(je){var Le=z.getSupertypeSet(je,!1);Le&&Le.size&&ye.indexOf(Le)<0&&ye.push(Le)},Ae=!(!E||!this.fuzzySubtypes.size),Ie=!1,Te=0;Te<ye.length;++Te){var Me=ye[Te];if(Me.has($))return ce.has($)||(Ie&&__DEV__&&i.warn("Inferring subtype ".concat(h," of supertype ").concat($)),ce.add($)),!0;Me.forEach(ge),Ae&&Te===ye.length-1&&nr(o.selectionSet,E,B)&&(Ae=!1,Ie=!0,this.fuzzySubtypes.forEach(function(je,Le){var Ve=h.match(je);Ve&&Ve[0]===h&&ge(Le)}))}return!1},S.prototype.hasKeyArgs=function(o,h){var E=this.getFieldPolicy(o,h,!1);return!(!E||!E.keyFn)},S.prototype.getStoreFieldName=function(o){var z,h=o.typename,E=o.fieldName,B=this.getFieldPolicy(h,E,!1),$=B&&B.keyFn;if($&&h)for(var ce={typename:h,fieldName:E,field:o.field||null,variables:o.variables},ye=yn(o);$;){var ge=$(ye,ce);if(!it(ge)){z=ge||E;break}$=Vn(ge)}return void 0===z&&(z=o.field?function qe(S,o){var h=null;S.directives&&(h={},S.directives.forEach(function(B){h[B.name.value]={},B.arguments&&B.arguments.forEach(function(z){return Ue(h[B.name.value],z.name,z.value,o)})}));var E=null;return S.arguments&&S.arguments.length&&(E={},S.arguments.forEach(function(B){return Ue(E,B.name,B.value,o)})),nt(S.name.value,E,h)}(o.field,o.variables):nt(E,yn(o))),!1===z?E:E===At(z)?z:E+":"+z},S.prototype.readField=function(o,h){var E=o.from;if(E&&(o.field||o.fieldName)){if(void 0===o.typename){var z=h.store.getFieldValue(E,"__typename");z&&(o.typename=z)}var $=this.getStoreFieldName(o),ce=At($),ye=h.store.getFieldValue(E,$),ge=this.getFieldPolicy(o.typename,ce,!1),Ae=ge&&ge.read;if(Ae){var Ie=Gn(this,E,o,h,h.store.getStorage(R(E)?E.__ref:E,$));return an.withValue(this.cache,Ae,[ye,Ie])}return ye}},S.prototype.getReadFunction=function(o,h){var E=this.getFieldPolicy(o,h,!1);return E&&E.read},S.prototype.getMergeFunction=function(o,h,E){var B=this.getFieldPolicy(o,h,!1),z=B&&B.merge;return!z&&E&&(z=(B=this.getTypePolicy(E))&&B.merge),z},S.prototype.runMergeFunction=function(o,h,E,B,z){var $=E.field,ce=E.typename,ye=E.merge;return ye===zn?Yn(B.store)(o,h):ye===Hn?h:(B.overwrite&&(o=void 0),ye(o,h,Gn(this,void 0,{typename:ce,fieldName:$.name.value,field:$,variables:B.variables},B,z||Object.create(null))))},S}();function Gn(S,o,h,E,B){var z=S.getStoreFieldName(h),$=At(z),ce=h.variables||E.variables,ye=E.store,ge=ye.toReference,Ae=ye.canRead;return{args:yn(h),field:h.field||null,fieldName:$,storeFieldName:z,variables:ce,isReference:R,toReference:ge,storage:B,cache:S.cache,canRead:Ae,readField:function(){return S.readField(mn(arguments,o,ce),E)},mergeObjects:Yn(E.store)}}function mn(S,o,h){var $,E=S[0];return"string"==typeof E?$={fieldName:E,from:S.length>1?S[1]:o}:($=(0,t.pi)({},E),st.call($,"from")||($.from=o)),__DEV__&&void 0===$.from&&__DEV__&&i.warn("Undefined 'from' passed to readField with arguments ".concat(function Ti(S){var o=rn("stringifyForDisplay");return JSON.stringify(S,function(h,E){return void 0===E?o:E}).split(JSON.stringify(o)).join("<undefined>")}(Array.from(S)))),void 0===$.variables&&($.variables=h),$}function Yn(S){return function(h,E){if(it(h)||it(E))throw __DEV__?new n("Cannot automatically merge arrays"):new n(4);if(De(h)&&De(E)){var B=S.getFieldValue(h,"__typename"),z=S.getFieldValue(E,"__typename");if(B&&z&&B!==z)return E;if(R(h)&&Mt(E))return S.merge(h.__ref,E),h;if(Mt(h)&&R(E))return S.merge(h,E.__ref),E;if(Mt(h)&&Mt(E))return(0,t.pi)((0,t.pi)({},h),E)}return E}}function gn(S,o,h){var E="".concat(o).concat(h),B=S.flavors.get(E);return B||S.flavors.set(E,B=S.clientOnly===o&&S.deferred===h?S:(0,t.pi)((0,t.pi)({},S),{clientOnly:o,deferred:h})),B}var Ii=function(){function S(o,h){this.cache=o,this.reader=h}return S.prototype.writeToStore=function(o,h){var E=this,B=h.query,z=h.result,$=h.dataId,ce=h.variables,ye=h.overwrite,ge=St(B),Ae=function dr(){return new Dt}();ce=(0,t.pi)((0,t.pi)({},It(ge)),ce);var Ie={store:o,written:Object.create(null),merge:function(Me,je){return Ae.merge(Me,je)},variables:ce,varString:H(ce),fragmentMap:ne(Tt(B)),overwrite:!!ye,incomingById:new Map,clientOnly:!1,deferred:!1,flavors:new Map},Te=this.processSelectionSet({result:z||Object.create(null),dataId:$,selectionSet:ge.selectionSet,mergeTree:{map:new Map},context:Ie});if(!R(Te))throw __DEV__?new n("Could not identify object ".concat(JSON.stringify(z))):new n(6);return Ie.incomingById.forEach(function(Me,je){var Le=Me.storeObject,Ve=Me.mergeTree,Qe=Me.fieldNodeSet,Xe=m(je);if(Ve&&Ve.map.size){var We=E.applyMerges(Ve,Xe,Le,Ie);if(R(We))return;Le=We}if(__DEV__&&!Ie.overwrite){var He=Object.create(null);Qe.forEach(function(Je){Je.selectionSet&&(He[Je.name.value]=!0)}),Object.keys(Le).forEach(function(Je){(function(Je){return!0===He[At(Je)]})(Je)&&!function(Je){var rt=Ve&&Ve.map.get(Je);return!!(rt&&rt.info&&rt.info.merge)}(Je)&&function Pi(S,o,h,E){var B=function(Ie){var Te=E.getFieldValue(Ie,h);return"object"==typeof Te&&Te},z=B(S);if(z){var $=B(o);if($&&!R(z)&&!(0,ut.D)(z,$)&&!Object.keys(z).every(function(Ie){return void 0!==E.getFieldValue($,Ie)})){var ce=E.getFieldValue(S,"__typename")||E.getFieldValue(o,"__typename"),ye=At(h),ge="".concat(ce,".").concat(ye);if(!Zn.has(ge)){Zn.add(ge);var Ae=[];!it(z)&&!it($)&&[z,$].forEach(function(Ie){var Te=E.getFieldValue(Ie,"__typename");"string"==typeof Te&&!Ae.includes(Te)&&Ae.push(Te)}),__DEV__&&i.warn("Cache data may be lost when replacing the ".concat(ye," field of a ").concat(ce," object.\n\nTo address this problem (which is not a bug in Apollo Client), ").concat(Ae.length?"either ensure all objects of type "+Ae.join(" and ")+" have an ID or a custom merge function, or ":"","define a custom merge function for the ").concat(ge," field, so InMemoryCache can safely merge these objects:\n\n existing: ").concat(JSON.stringify(z).slice(0,1e3),"\n incoming: ").concat(JSON.stringify($).slice(0,1e3),"\n\nFor more information about these options, please refer to the documentation:\n\n * Ensuring entity objects have IDs: https://go.apollo.dev/c/generating-unique-identifiers\n * Defining custom merge functions: https://go.apollo.dev/c/merging-non-normalized-objects\n"))}}}}(Xe,Le,Je,Ie.store)})}o.merge(je,Le)}),o.retain(Te.__ref),Te},S.prototype.processSelectionSet=function(o){var h=this,E=o.dataId,B=o.result,z=o.selectionSet,$=o.context,ce=o.mergeTree,ye=this.cache.policies,ge=Object.create(null),Ae=E&&ye.rootTypenamesById[E]||jt(B,z,$.fragmentMap)||E&&$.store.get(E,"__typename");"string"==typeof Ae&&(ge.__typename=Ae);var Ie=function(){var We=mn(arguments,ge,$.variables);if(R(We.from)){var He=$.incomingById.get(We.from.__ref);if(He){var Ze=ye.readField((0,t.pi)((0,t.pi)({},We),{from:He.storeObject}),$);if(void 0!==Ze)return Ze}}return ye.readField(We,$)},Te=new Set;this.flattenFields(z,B,$,Ae).forEach(function(We,He){var Ze,Ye=ct(He),Je=B[Ye];if(Te.add(He),void 0!==Je){var rt=ye.getStoreFieldName({typename:Ae,fieldName:He.name.value,field:He,variables:We.variables}),gt=$n(ce,rt),ot=h.processFieldValue(Je,He,He.selectionSet?gn(We,!1,!1):We,gt),kt=void 0;He.selectionSet&&(R(ot)||Mt(ot))&&(kt=Ie("__typename",ot));var jr=ye.getMergeFunction(Ae,He.name.value,kt);jr?gt.info={field:He,typename:Ae,merge:jr}:Xn(ce,rt),ge=We.merge(ge,((Ze={})[rt]=ot,Ze))}else __DEV__&&!We.clientOnly&&!We.deferred&&!$e.added(He)&&!ye.getReadFunction(Ae,He.name.value)&&__DEV__&&i.error("Missing field '".concat(ct(He),"' while writing result ").concat(JSON.stringify(B,null,2)).substring(0,1e3))});try{var Me=ye.identify(B,{typename:Ae,selectionSet:z,fragmentMap:$.fragmentMap,storeObject:ge,readField:Ie}),Le=Me[1];E=E||Me[0],Le&&(ge=$.merge(ge,Le))}catch(We){if(!E)throw We}if("string"==typeof E){var Ve=m(E),Qe=$.written[E]||($.written[E]=[]);if(Qe.indexOf(z)>=0||(Qe.push(z),this.reader&&this.reader.isFresh(B,Ve,z,$)))return Ve;var Xe=$.incomingById.get(E);return Xe?(Xe.storeObject=$.merge(Xe.storeObject,ge),Xe.mergeTree=bn(Xe.mergeTree,ce),Te.forEach(function(We){return Xe.fieldNodeSet.add(We)})):$.incomingById.set(E,{storeObject:ge,mergeTree:Ur(ce)?void 0:ce,fieldNodeSet:Te}),Ve}return ge},S.prototype.processFieldValue=function(o,h,E,B){var z=this;return h.selectionSet&&null!==o?it(o)?o.map(function($,ce){var ye=z.processFieldValue($,h,E,$n(B,ce));return Xn(B,ce),ye}):this.processSelectionSet({result:o,selectionSet:h.selectionSet,context:E,mergeTree:B}):__DEV__?An(o):o},S.prototype.flattenFields=function(o,h,E,B){void 0===B&&(B=jt(h,o,E.fragmentMap));var z=new Map,$=this.cache.policies,ce=new rr.B(!1);return function ye(ge,Ae){var Ie=ce.lookup(ge,Ae.clientOnly,Ae.deferred);Ie.visited||(Ie.visited=!0,ge.selections.forEach(function(Te){if(Ht(Te,E.variables)){var Me=Ae.clientOnly,je=Ae.deferred;if(!(Me&&je)&&Gt(Te.directives)&&Te.directives.forEach(function(Qe){var Xe=Qe.name.value;if("client"===Xe&&(Me=!0),"defer"===Xe){var We=Ke(Qe,E.variables);(!We||!1!==We.if)&&(je=!0)}}),pt(Te)){var Le=z.get(Te);Le&&(Me=Me&&Le.clientOnly,je=je&&Le.deferred),z.set(Te,gn(E,Me,je))}else{var Ve=U(Te,E.fragmentMap);Ve&&$.fragmentMatches(Ve,B,h,E.variables)&&ye(Ve.selectionSet,gn(E,Me,je))}}}))}(o,E),z},S.prototype.applyMerges=function(o,h,E,B,z){var $,ce=this;if(o.map.size&&!R(E)){var ye=it(E)||!R(h)&&!Mt(h)?void 0:h,ge=E;ye&&!z&&(z=[R(ye)?ye.__ref:ye]);var Ae,Ie=function(Te,Me){return it(Te)?"number"==typeof Me?Te[Me]:void 0:B.store.getFieldValue(Te,String(Me))};o.map.forEach(function(Te,Me){var je=Ie(ye,Me),Le=Ie(ge,Me);if(void 0!==Le){z&&z.push(Me);var Ve=ce.applyMerges(Te,je,Le,B,z);Ve!==Le&&(Ae=Ae||new Map).set(Me,Ve),z&&i(z.pop()===Me)}}),Ae&&(E=it(ge)?ge.slice(0):(0,t.pi)({},ge),Ae.forEach(function(Te,Me){E[Me]=Te}))}return o.info?this.cache.policies.runMergeFunction(h,E,o.info,B,z&&($=B.store).getStorage.apply($,z)):E},S}(),Jn=[];function $n(S,o){var h=S.map;return h.has(o)||h.set(o,Jn.pop()||{map:new Map}),h.get(o)}function bn(S,o){if(S===o||!o||Ur(o))return S;if(!S||Ur(S))return o;var h=S.info&&o.info?(0,t.pi)((0,t.pi)({},S.info),o.info):S.info||o.info,E=S.map.size&&o.map.size,z={info:h,map:E?new Map:S.map.size?S.map:o.map};if(E){var $=new Set(o.map.keys());S.map.forEach(function(ce,ye){z.map.set(ye,bn(ce,o.map.get(ye))),$.delete(ye)}),$.forEach(function(ce){z.map.set(ce,bn(o.map.get(ce),S.map.get(ce)))})}return z}function Ur(S){return!S||!(S.info||S.map.size)}function Xn(S,o){var h=S.map,E=h.get(o);E&&Ur(E)&&(Jn.push(E),h.delete(o))}var Zn=new Set,Di=function(S){function o(h){void 0===h&&(h={});var E=S.call(this)||this;return E.watches=new Set,E.typenameDocumentCache=new Map,E.makeVar=In,E.txCount=0,E.config=function Mr(S){return zt(Dr,S)}(h),E.addTypename=!!E.config.addTypename,E.policies=new Ri({cache:E,dataIdFromObject:E.config.dataIdFromObject,possibleTypes:E.config.possibleTypes,typePolicies:E.config.typePolicies}),E.init(),E}return(0,t.ZT)(o,S),o.prototype.init=function(){var h=this.data=new _r.Root({policies:this.policies,resultCaching:this.config.resultCaching});this.optimisticData=h.stump,this.resetResultCache()},o.prototype.resetResultCache=function(h){var E=this,B=this.storeReader;this.storeWriter=new Ii(this,this.storeReader=new Oi({cache:this,addTypename:this.addTypename,resultCacheMaxSize:this.config.resultCacheMaxSize,canonizeResults:kr(this.config),canon:h?void 0:B&&B.canon})),this.maybeBroadcastWatch=(0,ir.re)(function(z,$){return E.broadcastWatch(z,$)},{max:this.config.resultCacheMaxSize,makeCacheKey:function(z){var $=z.optimistic?E.optimisticData:E.data;if(Sr($))return $.makeCacheKey(z.query,z.callback,H({optimistic:z.optimistic,rootId:z.rootId,variables:z.variables}))}}),new Set([this.data.group,this.optimisticData.group]).forEach(function(z){return z.resetCaching()})},o.prototype.restore=function(h){return this.init(),h&&this.data.replace(h),this},o.prototype.extract=function(h){return void 0===h&&(h=!1),(h?this.optimisticData:this.data).extract()},o.prototype.read=function(h){var E=h.returnPartialData,B=void 0!==E&&E;try{return this.storeReader.diffQueryAgainstStore((0,t.pi)((0,t.pi)({},h),{store:h.optimistic?this.optimisticData:this.data,config:this.config,returnPartialData:B})).result||null}catch(z){if(z instanceof fn)return null;throw z}},o.prototype.write=function(h){try{return++this.txCount,this.storeWriter.writeToStore(this.data,h)}finally{! --this.txCount&&!1!==h.broadcast&&this.broadcastWatches()}},o.prototype.modify=function(h){if(st.call(h,"id")&&!h.id)return!1;var E=h.optimistic?this.optimisticData:this.data;try{return++this.txCount,E.modify(h.id||"ROOT_QUERY",h.fields)}finally{! --this.txCount&&!1!==h.broadcast&&this.broadcastWatches()}},o.prototype.diff=function(h){return this.storeReader.diffQueryAgainstStore((0,t.pi)((0,t.pi)({},h),{store:h.optimistic?this.optimisticData:this.data,rootId:h.id||"ROOT_QUERY",config:this.config}))},o.prototype.watch=function(h){var E=this;return this.watches.size||function vi(S){Er(S).vars.forEach(function(o){return o.attachCache(S)})}(this),this.watches.add(h),h.immediate&&this.maybeBroadcastWatch(h),function(){E.watches.delete(h)&&!E.watches.size&&Rn(E),E.maybeBroadcastWatch.forget(h)}},o.prototype.gc=function(h){H.reset();var E=this.optimisticData.gc();return h&&!this.txCount&&(h.resetResultCache?this.resetResultCache(h.resetResultIdentities):h.resetResultIdentities&&this.storeReader.resetCanon()),E},o.prototype.retain=function(h,E){return(E?this.optimisticData:this.data).retain(h)},o.prototype.release=function(h,E){return(E?this.optimisticData:this.data).release(h)},o.prototype.identify=function(h){if(R(h))return h.__ref;try{return this.policies.identify(h)[0]}catch(E){__DEV__&&i.warn(E)}},o.prototype.evict=function(h){if(!h.id){if(st.call(h,"id"))return!1;h=(0,t.pi)((0,t.pi)({},h),{id:"ROOT_QUERY"})}try{return++this.txCount,this.optimisticData.evict(h,this.data)}finally{! --this.txCount&&!1!==h.broadcast&&this.broadcastWatches()}},o.prototype.reset=function(h){var E=this;return this.init(),H.reset(),h&&h.discardWatches?(this.watches.forEach(function(B){return E.maybeBroadcastWatch.forget(B)}),this.watches.clear(),Rn(this)):this.broadcastWatches(),Promise.resolve()},o.prototype.removeOptimistic=function(h){var E=this.optimisticData.removeLayer(h);E!==this.optimisticData&&(this.optimisticData=E,this.broadcastWatches())},o.prototype.batch=function(h){var ge,E=this,B=h.update,z=h.optimistic,$=void 0===z||z,ce=h.removeOptimistic,ye=h.onWatchUpdated,Ae=function(Te){var je=E.data,Le=E.optimisticData;++E.txCount,Te&&(E.data=E.optimisticData=Te);try{return ge=B(E)}finally{--E.txCount,E.data=je,E.optimisticData=Le}},Ie=new Set;return ye&&!this.txCount&&this.broadcastWatches((0,t.pi)((0,t.pi)({},h),{onWatchUpdated:function(Te){return Ie.add(Te),!1}})),"string"==typeof $?this.optimisticData=this.optimisticData.addLayer($,Ae):!1===$?Ae(this.data):Ae(),"string"==typeof ce&&(this.optimisticData=this.optimisticData.removeLayer(ce)),ye&&Ie.size?(this.broadcastWatches((0,t.pi)((0,t.pi)({},h),{onWatchUpdated:function(Te,Me){var je=ye.call(this,Te,Me);return!1!==je&&Ie.delete(Te),je}})),Ie.size&&Ie.forEach(function(Te){return E.maybeBroadcastWatch.dirty(Te)})):this.broadcastWatches(h),ge},o.prototype.performTransaction=function(h,E){return this.batch({update:h,optimistic:E||null!==E})},o.prototype.transformDocument=function(h){if(this.addTypename){var E=this.typenameDocumentCache.get(h);return E||(E=$e(h),this.typenameDocumentCache.set(h,E),this.typenameDocumentCache.set(E,E)),E}return h},o.prototype.broadcastWatches=function(h){var E=this;this.txCount||this.watches.forEach(function(B){return E.maybeBroadcastWatch(B,h)})},o.prototype.broadcastWatch=function(h,E){var B=h.lastDiff,z=this.diff(h);E&&(h.optimistic&&"string"==typeof E.optimistic&&(z.fromOptimisticTransaction=!0),E.onWatchUpdated&&!1===E.onWatchUpdated.call(this,h,z,B))||(!B||!(0,ut.D)(B.result,z.result))&&h.callback(h.lastDiff=z,B)},o}(kn),Mi=mt.empty,ki=mt.from,Fi=mt.split,Li=mt.concat;function Ni(S){var o=!1;return new Promise(function(h,E){S.subscribe({next:function(B){o?__DEV__&&i.warn("Promise Wrapper does not support multiple results from Observable"):(o=!0,h(B))},error:E})})}function Bi(S){return new be(function(o){S.then(function(h){o.next(h),o.complete()}).catch(o.error.bind(o))})}var wr=l(29248);u(g?"log":"silent")},7535:ae=>{"use strict";ae.exports=JSON.parse('{"name":"aws-appsync-auth-link","version":"3.0.7","main":"lib/index.js","license":"Apache-2.0","description":"AWS Mobile AppSync Auth Link for JavaScript","author":{"name":"Amazon Web Services","url":"https://aws.amazon.com/"},"homepage":"https://github.com/awslabs/aws-mobile-appsync-sdk-js.git","repository":{"type":"git","url":"https://github.com/awslabs/aws-mobile-appsync-sdk-js.git"},"scripts":{"prepare":"tsc","test":"jest --coverage --coverageReporters=text --passWithNoTests","test-watch":"jest --watch"},"dependencies":{"@aws-crypto/sha256-js":"^1.2.0","@aws-sdk/types":"^3.25.0","@aws-sdk/util-hex-encoding":"^3.29.0","debug":"2.6.9"},"devDependencies":{"@apollo/client":"^3.2.0"},"peerDependencies":{"@apollo/client":"3.x"}}')},79476:ae=>{"use strict";ae.exports=JSON.parse('{"version":"2.0","metadata":{"apiVersion":"2014-06-30","endpointPrefix":"cognito-identity","jsonVersion":"1.1","protocol":"json","serviceFullName":"Amazon Cognito Identity","serviceId":"Cognito Identity","signatureVersion":"v4","targetPrefix":"AWSCognitoIdentityService","uid":"cognito-identity-2014-06-30"},"operations":{"CreateIdentityPool":{"input":{"type":"structure","required":["IdentityPoolName","AllowUnauthenticatedIdentities"],"members":{"IdentityPoolName":{},"AllowUnauthenticatedIdentities":{"type":"boolean"},"AllowClassicFlow":{"type":"boolean"},"SupportedLoginProviders":{"shape":"S5"},"DeveloperProviderName":{},"OpenIdConnectProviderARNs":{"shape":"S9"},"CognitoIdentityProviders":{"shape":"Sb"},"SamlProviderARNs":{"shape":"Sg"},"IdentityPoolTags":{"shape":"Sh"}}},"output":{"shape":"Sk"}},"DeleteIdentities":{"input":{"type":"structure","required":["IdentityIdsToDelete"],"members":{"IdentityIdsToDelete":{"type":"list","member":{}}}},"output":{"type":"structure","members":{"UnprocessedIdentityIds":{"type":"list","member":{"type":"structure","members":{"IdentityId":{},"ErrorCode":{}}}}}}},"DeleteIdentityPool":{"input":{"type":"structure","required":["IdentityPoolId"],"members":{"IdentityPoolId":{}}}},"DescribeIdentity":{"input":{"type":"structure","required":["IdentityId"],"members":{"IdentityId":{}}},"output":{"shape":"Sv"}},"DescribeIdentityPool":{"input":{"type":"structure","required":["IdentityPoolId"],"members":{"IdentityPoolId":{}}},"output":{"shape":"Sk"}},"GetCredentialsForIdentity":{"input":{"type":"structure","required":["IdentityId"],"members":{"IdentityId":{},"Logins":{"shape":"S10"},"CustomRoleArn":{}}},"output":{"type":"structure","members":{"IdentityId":{},"Credentials":{"type":"structure","members":{"AccessKeyId":{},"SecretKey":{},"SessionToken":{},"Expiration":{"type":"timestamp"}}}}},"authtype":"none"},"GetId":{"input":{"type":"structure","required":["IdentityPoolId"],"members":{"AccountId":{},"IdentityPoolId":{},"Logins":{"shape":"S10"}}},"output":{"type":"structure","members":{"IdentityId":{}}},"authtype":"none"},"GetIdentityPoolRoles":{"input":{"type":"structure","required":["IdentityPoolId"],"members":{"IdentityPoolId":{}}},"output":{"type":"structure","members":{"IdentityPoolId":{},"Roles":{"shape":"S1c"},"RoleMappings":{"shape":"S1e"}}}},"GetOpenIdToken":{"input":{"type":"structure","required":["IdentityId"],"members":{"IdentityId":{},"Logins":{"shape":"S10"}}},"output":{"type":"structure","members":{"IdentityId":{},"Token":{}}},"authtype":"none"},"GetOpenIdTokenForDeveloperIdentity":{"input":{"type":"structure","required":["IdentityPoolId","Logins"],"members":{"IdentityPoolId":{},"IdentityId":{},"Logins":{"shape":"S10"},"PrincipalTags":{"shape":"S1s"},"TokenDuration":{"type":"long"}}},"output":{"type":"structure","members":{"IdentityId":{},"Token":{}}}},"GetPrincipalTagAttributeMap":{"input":{"type":"structure","required":["IdentityPoolId","IdentityProviderName"],"members":{"IdentityPoolId":{},"IdentityProviderName":{}}},"output":{"type":"structure","members":{"IdentityPoolId":{},"IdentityProviderName":{},"UseDefaults":{"type":"boolean"},"PrincipalTags":{"shape":"S1s"}}}},"ListIdentities":{"input":{"type":"structure","required":["IdentityPoolId","MaxResults"],"members":{"IdentityPoolId":{},"MaxResults":{"type":"integer"},"NextToken":{},"HideDisabled":{"type":"boolean"}}},"output":{"type":"structure","members":{"IdentityPoolId":{},"Identities":{"type":"list","member":{"shape":"Sv"}},"NextToken":{}}}},"ListIdentityPools":{"input":{"type":"structure","required":["MaxResults"],"members":{"MaxResults":{"type":"integer"},"NextToken":{}}},"output":{"type":"structure","members":{"IdentityPools":{"type":"list","member":{"type":"structure","members":{"IdentityPoolId":{},"IdentityPoolName":{}}}},"NextToken":{}}}},"ListTagsForResource":{"input":{"type":"structure","required":["ResourceArn"],"members":{"ResourceArn":{}}},"output":{"type":"structure","members":{"Tags":{"shape":"Sh"}}}},"LookupDeveloperIdentity":{"input":{"type":"structure","required":["IdentityPoolId"],"members":{"IdentityPoolId":{},"IdentityId":{},"DeveloperUserIdentifier":{},"MaxResults":{"type":"integer"},"NextToken":{}}},"output":{"type":"structure","members":{"IdentityId":{},"DeveloperUserIdentifierList":{"type":"list","member":{}},"NextToken":{}}}},"MergeDeveloperIdentities":{"input":{"type":"structure","required":["SourceUserIdentifier","DestinationUserIdentifier","DeveloperProviderName","IdentityPoolId"],"members":{"SourceUserIdentifier":{},"DestinationUserIdentifier":{},"DeveloperProviderName":{},"IdentityPoolId":{}}},"output":{"type":"structure","members":{"IdentityId":{}}}},"SetIdentityPoolRoles":{"input":{"type":"structure","required":["IdentityPoolId","Roles"],"members":{"IdentityPoolId":{},"Roles":{"shape":"S1c"},"RoleMappings":{"shape":"S1e"}}}},"SetPrincipalTagAttributeMap":{"input":{"type":"structure","required":["IdentityPoolId","IdentityProviderName"],"members":{"IdentityPoolId":{},"IdentityProviderName":{},"UseDefaults":{"type":"boolean"},"PrincipalTags":{"shape":"S1s"}}},"output":{"type":"structure","members":{"IdentityPoolId":{},"IdentityProviderName":{},"UseDefaults":{"type":"boolean"},"PrincipalTags":{"shape":"S1s"}}}},"TagResource":{"input":{"type":"structure","required":["ResourceArn","Tags"],"members":{"ResourceArn":{},"Tags":{"shape":"Sh"}}},"output":{"type":"structure","members":{}}},"UnlinkDeveloperIdentity":{"input":{"type":"structure","required":["IdentityId","IdentityPoolId","DeveloperProviderName","DeveloperUserIdentifier"],"members":{"IdentityId":{},"IdentityPoolId":{},"DeveloperProviderName":{},"DeveloperUserIdentifier":{}}}},"UnlinkIdentity":{"input":{"type":"structure","required":["IdentityId","Logins","LoginsToRemove"],"members":{"IdentityId":{},"Logins":{"shape":"S10"},"LoginsToRemove":{"shape":"Sw"}}},"authtype":"none"},"UntagResource":{"input":{"type":"structure","required":["ResourceArn","TagKeys"],"members":{"ResourceArn":{},"TagKeys":{"type":"list","member":{}}}},"output":{"type":"structure","members":{}}},"UpdateIdentityPool":{"input":{"shape":"Sk"},"output":{"shape":"Sk"}}},"shapes":{"S5":{"type":"map","key":{},"value":{}},"S9":{"type":"list","member":{}},"Sb":{"type":"list","member":{"type":"structure","members":{"ProviderName":{},"ClientId":{},"ServerSideTokenCheck":{"type":"boolean"}}}},"Sg":{"type":"list","member":{}},"Sh":{"type":"map","key":{},"value":{}},"Sk":{"type":"structure","required":["IdentityPoolId","IdentityPoolName","AllowUnauthenticatedIdentities"],"members":{"IdentityPoolId":{},"IdentityPoolName":{},"AllowUnauthenticatedIdentities":{"type":"boolean"},"AllowClassicFlow":{"type":"boolean"},"SupportedLoginProviders":{"shape":"S5"},"DeveloperProviderName":{},"OpenIdConnectProviderARNs":{"shape":"S9"},"CognitoIdentityProviders":{"shape":"Sb"},"SamlProviderARNs":{"shape":"Sg"},"IdentityPoolTags":{"shape":"Sh"}}},"Sv":{"type":"structure","members":{"IdentityId":{},"Logins":{"shape":"Sw"},"CreationDate":{"type":"timestamp"},"LastModifiedDate":{"type":"timestamp"}}},"Sw":{"type":"list","member":{}},"S10":{"type":"map","key":{},"value":{}},"S1c":{"type":"map","key":{},"value":{}},"S1e":{"type":"map","key":{},"value":{"type":"structure","required":["Type"],"members":{"Type":{},"AmbiguousRoleResolution":{},"RulesConfiguration":{"type":"structure","required":["Rules"],"members":{"Rules":{"type":"list","member":{"type":"structure","required":["Claim","MatchType","Value","RoleARN"],"members":{"Claim":{},"MatchType":{},"Value":{},"RoleARN":{}}}}}}}}},"S1s":{"type":"map","key":{},"value":{}}}}')},85464:ae=>{"use strict";ae.exports=JSON.parse('{"o":{"ListIdentityPools":{"input_token":"NextToken","limit_key":"MaxResults","output_token":"NextToken","result_key":"IdentityPools"}}}')},6839:ae=>{"use strict";ae.exports=JSON.parse('{"acm":{"name":"ACM","cors":true},"apigateway":{"name":"APIGateway","cors":true},"applicationautoscaling":{"prefix":"application-autoscaling","name":"ApplicationAutoScaling","cors":true},"appstream":{"name":"AppStream"},"autoscaling":{"name":"AutoScaling","cors":true},"batch":{"name":"Batch"},"budgets":{"name":"Budgets"},"clouddirectory":{"name":"CloudDirectory","versions":["2016-05-10*"]},"cloudformation":{"name":"CloudFormation","cors":true},"cloudfront":{"name":"CloudFront","versions":["2013-05-12*","2013-11-11*","2014-05-31*","2014-10-21*","2014-11-06*","2015-04-17*","2015-07-27*","2015-09-17*","2016-01-13*","2016-01-28*","2016-08-01*","2016-08-20*","2016-09-07*","2016-09-29*","2016-11-25*","2017-03-25*","2017-10-30*","2018-06-18*","2018-11-05*","2019-03-26*"],"cors":true},"cloudhsm":{"name":"CloudHSM","cors":true},"cloudsearch":{"name":"CloudSearch"},"cloudsearchdomain":{"name":"CloudSearchDomain"},"cloudtrail":{"name":"CloudTrail","cors":true},"cloudwatch":{"prefix":"monitoring","name":"CloudWatch","cors":true},"cloudwatchevents":{"prefix":"events","name":"CloudWatchEvents","versions":["2014-02-03*"],"cors":true},"cloudwatchlogs":{"prefix":"logs","name":"CloudWatchLogs","cors":true},"codebuild":{"name":"CodeBuild","cors":true},"codecommit":{"name":"CodeCommit","cors":true},"codedeploy":{"name":"CodeDeploy","cors":true},"codepipeline":{"name":"CodePipeline","cors":true},"cognitoidentity":{"prefix":"cognito-identity","name":"CognitoIdentity","cors":true},"cognitoidentityserviceprovider":{"prefix":"cognito-idp","name":"CognitoIdentityServiceProvider","cors":true},"cognitosync":{"prefix":"cognito-sync","name":"CognitoSync","cors":true},"configservice":{"prefix":"config","name":"ConfigService","cors":true},"cur":{"name":"CUR","cors":true},"datapipeline":{"name":"DataPipeline"},"devicefarm":{"name":"DeviceFarm","cors":true},"directconnect":{"name":"DirectConnect","cors":true},"directoryservice":{"prefix":"ds","name":"DirectoryService"},"discovery":{"name":"Discovery"},"dms":{"name":"DMS"},"dynamodb":{"name":"DynamoDB","cors":true},"dynamodbstreams":{"prefix":"streams.dynamodb","name":"DynamoDBStreams","cors":true},"ec2":{"name":"EC2","versions":["2013-06-15*","2013-10-15*","2014-02-01*","2014-05-01*","2014-06-15*","2014-09-01*","2014-10-01*","2015-03-01*","2015-04-15*","2015-10-01*","2016-04-01*","2016-09-15*"],"cors":true},"ecr":{"name":"ECR","cors":true},"ecs":{"name":"ECS","cors":true},"efs":{"prefix":"elasticfilesystem","name":"EFS","cors":true},"elasticache":{"name":"ElastiCache","versions":["2012-11-15*","2014-03-24*","2014-07-15*","2014-09-30*"],"cors":true},"elasticbeanstalk":{"name":"ElasticBeanstalk","cors":true},"elb":{"prefix":"elasticloadbalancing","name":"ELB","cors":true},"elbv2":{"prefix":"elasticloadbalancingv2","name":"ELBv2","cors":true},"emr":{"prefix":"elasticmapreduce","name":"EMR","cors":true},"es":{"name":"ES"},"elastictranscoder":{"name":"ElasticTranscoder","cors":true},"firehose":{"name":"Firehose","cors":true},"gamelift":{"name":"GameLift","cors":true},"glacier":{"name":"Glacier"},"health":{"name":"Health"},"iam":{"name":"IAM","cors":true},"importexport":{"name":"ImportExport"},"inspector":{"name":"Inspector","versions":["2015-08-18*"],"cors":true},"iot":{"name":"Iot","cors":true},"iotdata":{"prefix":"iot-data","name":"IotData","cors":true},"kinesis":{"name":"Kinesis","cors":true},"kinesisanalytics":{"name":"KinesisAnalytics"},"kms":{"name":"KMS","cors":true},"lambda":{"name":"Lambda","cors":true},"lexruntime":{"prefix":"runtime.lex","name":"LexRuntime","cors":true},"lightsail":{"name":"Lightsail"},"machinelearning":{"name":"MachineLearning","cors":true},"marketplacecommerceanalytics":{"name":"MarketplaceCommerceAnalytics","cors":true},"marketplacemetering":{"prefix":"meteringmarketplace","name":"MarketplaceMetering"},"mturk":{"prefix":"mturk-requester","name":"MTurk","cors":true},"mobileanalytics":{"name":"MobileAnalytics","cors":true},"opsworks":{"name":"OpsWorks","cors":true},"opsworkscm":{"name":"OpsWorksCM"},"organizations":{"name":"Organizations"},"pinpoint":{"name":"Pinpoint"},"polly":{"name":"Polly","cors":true},"rds":{"name":"RDS","versions":["2014-09-01*"],"cors":true},"redshift":{"name":"Redshift","cors":true},"rekognition":{"name":"Rekognition","cors":true},"resourcegroupstaggingapi":{"name":"ResourceGroupsTaggingAPI"},"route53":{"name":"Route53","cors":true},"route53domains":{"name":"Route53Domains","cors":true},"s3":{"name":"S3","dualstackAvailable":true,"cors":true},"s3control":{"name":"S3Control","dualstackAvailable":true,"xmlNoDefaultLists":true},"servicecatalog":{"name":"ServiceCatalog","cors":true},"ses":{"prefix":"email","name":"SES","cors":true},"shield":{"name":"Shield"},"simpledb":{"prefix":"sdb","name":"SimpleDB"},"sms":{"name":"SMS"},"snowball":{"name":"Snowball"},"sns":{"name":"SNS","cors":true},"sqs":{"name":"SQS","cors":true},"ssm":{"name":"SSM","cors":true},"storagegateway":{"name":"StorageGateway","cors":true},"stepfunctions":{"prefix":"states","name":"StepFunctions"},"sts":{"name":"STS","cors":true},"support":{"name":"Support"},"swf":{"name":"SWF"},"xray":{"name":"XRay","cors":true},"waf":{"name":"WAF","cors":true},"wafregional":{"prefix":"waf-regional","name":"WAFRegional"},"workdocs":{"name":"WorkDocs","cors":true},"workspaces":{"name":"WorkSpaces"},"codestar":{"name":"CodeStar"},"lexmodelbuildingservice":{"prefix":"lex-models","name":"LexModelBuildingService","cors":true},"marketplaceentitlementservice":{"prefix":"entitlement.marketplace","name":"MarketplaceEntitlementService"},"athena":{"name":"Athena","cors":true},"greengrass":{"name":"Greengrass"},"dax":{"name":"DAX"},"migrationhub":{"prefix":"AWSMigrationHub","name":"MigrationHub"},"cloudhsmv2":{"name":"CloudHSMV2","cors":true},"glue":{"name":"Glue"},"mobile":{"name":"Mobile"},"pricing":{"name":"Pricing","cors":true},"costexplorer":{"prefix":"ce","name":"CostExplorer","cors":true},"mediaconvert":{"name":"MediaConvert"},"medialive":{"name":"MediaLive"},"mediapackage":{"name":"MediaPackage"},"mediastore":{"name":"MediaStore"},"mediastoredata":{"prefix":"mediastore-data","name":"MediaStoreData","cors":true},"appsync":{"name":"AppSync"},"guardduty":{"name":"GuardDuty"},"mq":{"name":"MQ"},"comprehend":{"name":"Comprehend","cors":true},"iotjobsdataplane":{"prefix":"iot-jobs-data","name":"IoTJobsDataPlane"},"kinesisvideoarchivedmedia":{"prefix":"kinesis-video-archived-media","name":"KinesisVideoArchivedMedia","cors":true},"kinesisvideomedia":{"prefix":"kinesis-video-media","name":"KinesisVideoMedia","cors":true},"kinesisvideo":{"name":"KinesisVideo","cors":true},"sagemakerruntime":{"prefix":"runtime.sagemaker","name":"SageMakerRuntime"},"sagemaker":{"name":"SageMaker"},"translate":{"name":"Translate","cors":true},"resourcegroups":{"prefix":"resource-groups","name":"ResourceGroups","cors":true},"alexaforbusiness":{"name":"AlexaForBusiness"},"cloud9":{"name":"Cloud9"},"serverlessapplicationrepository":{"prefix":"serverlessrepo","name":"ServerlessApplicationRepository"},"servicediscovery":{"name":"ServiceDiscovery"},"workmail":{"name":"WorkMail"},"autoscalingplans":{"prefix":"autoscaling-plans","name":"AutoScalingPlans"},"transcribeservice":{"prefix":"transcribe","name":"TranscribeService"},"connect":{"name":"Connect","cors":true},"acmpca":{"prefix":"acm-pca","name":"ACMPCA"},"fms":{"name":"FMS"},"secretsmanager":{"name":"SecretsManager","cors":true},"iotanalytics":{"name":"IoTAnalytics","cors":true},"iot1clickdevicesservice":{"prefix":"iot1click-devices","name":"IoT1ClickDevicesService"},"iot1clickprojects":{"prefix":"iot1click-projects","name":"IoT1ClickProjects"},"pi":{"name":"PI"},"neptune":{"name":"Neptune"},"mediatailor":{"name":"MediaTailor"},"eks":{"name":"EKS"},"macie":{"name":"Macie"},"dlm":{"name":"DLM"},"signer":{"name":"Signer"},"chime":{"name":"Chime"},"pinpointemail":{"prefix":"pinpoint-email","name":"PinpointEmail"},"ram":{"name":"RAM"},"route53resolver":{"name":"Route53Resolver"},"pinpointsmsvoice":{"prefix":"sms-voice","name":"PinpointSMSVoice"},"quicksight":{"name":"QuickSight"},"rdsdataservice":{"prefix":"rds-data","name":"RDSDataService"},"amplify":{"name":"Amplify"},"datasync":{"name":"DataSync"},"robomaker":{"name":"RoboMaker"},"transfer":{"name":"Transfer"},"globalaccelerator":{"name":"GlobalAccelerator"},"comprehendmedical":{"name":"ComprehendMedical","cors":true},"kinesisanalyticsv2":{"name":"KinesisAnalyticsV2"},"mediaconnect":{"name":"MediaConnect"},"fsx":{"name":"FSx"},"securityhub":{"name":"SecurityHub"},"appmesh":{"name":"AppMesh","versions":["2018-10-01*"]},"licensemanager":{"prefix":"license-manager","name":"LicenseManager"},"kafka":{"name":"Kafka"},"apigatewaymanagementapi":{"name":"ApiGatewayManagementApi"},"apigatewayv2":{"name":"ApiGatewayV2"},"docdb":{"name":"DocDB"},"backup":{"name":"Backup"},"worklink":{"name":"WorkLink"},"textract":{"name":"Textract"},"managedblockchain":{"name":"ManagedBlockchain"},"mediapackagevod":{"prefix":"mediapackage-vod","name":"MediaPackageVod"},"groundstation":{"name":"GroundStation"},"iotthingsgraph":{"name":"IoTThingsGraph"},"iotevents":{"name":"IoTEvents"},"ioteventsdata":{"prefix":"iotevents-data","name":"IoTEventsData"},"personalize":{"name":"Personalize","cors":true},"personalizeevents":{"prefix":"personalize-events","name":"PersonalizeEvents","cors":true},"personalizeruntime":{"prefix":"personalize-runtime","name":"PersonalizeRuntime","cors":true},"applicationinsights":{"prefix":"application-insights","name":"ApplicationInsights"},"servicequotas":{"prefix":"service-quotas","name":"ServiceQuotas"},"ec2instanceconnect":{"prefix":"ec2-instance-connect","name":"EC2InstanceConnect"},"eventbridge":{"name":"EventBridge"},"lakeformation":{"name":"LakeFormation"},"forecastservice":{"prefix":"forecast","name":"ForecastService","cors":true},"forecastqueryservice":{"prefix":"forecastquery","name":"ForecastQueryService","cors":true},"qldb":{"name":"QLDB"},"qldbsession":{"prefix":"qldb-session","name":"QLDBSession"},"workmailmessageflow":{"name":"WorkMailMessageFlow"},"codestarnotifications":{"prefix":"codestar-notifications","name":"CodeStarNotifications"},"savingsplans":{"name":"SavingsPlans"},"sso":{"name":"SSO"},"ssooidc":{"prefix":"sso-oidc","name":"SSOOIDC"},"marketplacecatalog":{"prefix":"marketplace-catalog","name":"MarketplaceCatalog"},"dataexchange":{"name":"DataExchange"},"sesv2":{"name":"SESV2"},"migrationhubconfig":{"prefix":"migrationhub-config","name":"MigrationHubConfig"},"connectparticipant":{"name":"ConnectParticipant"},"appconfig":{"name":"AppConfig"},"iotsecuretunneling":{"name":"IoTSecureTunneling"},"wafv2":{"name":"WAFV2"},"elasticinference":{"prefix":"elastic-inference","name":"ElasticInference"},"imagebuilder":{"name":"Imagebuilder"},"schemas":{"name":"Schemas"},"accessanalyzer":{"name":"AccessAnalyzer"},"codegurureviewer":{"prefix":"codeguru-reviewer","name":"CodeGuruReviewer"},"codeguruprofiler":{"name":"CodeGuruProfiler"},"computeoptimizer":{"prefix":"compute-optimizer","name":"ComputeOptimizer"},"frauddetector":{"name":"FraudDetector"},"kendra":{"name":"Kendra"},"networkmanager":{"name":"NetworkManager"},"outposts":{"name":"Outposts"},"augmentedairuntime":{"prefix":"sagemaker-a2i-runtime","name":"AugmentedAIRuntime"},"ebs":{"name":"EBS"},"kinesisvideosignalingchannels":{"prefix":"kinesis-video-signaling","name":"KinesisVideoSignalingChannels","cors":true},"detective":{"name":"Detective"},"codestarconnections":{"prefix":"codestar-connections","name":"CodeStarconnections"},"synthetics":{"name":"Synthetics"},"iotsitewise":{"name":"IoTSiteWise"},"macie2":{"name":"Macie2"},"codeartifact":{"name":"CodeArtifact"},"honeycode":{"name":"Honeycode"},"ivs":{"name":"IVS"},"braket":{"name":"Braket"},"identitystore":{"name":"IdentityStore"},"appflow":{"name":"Appflow"},"redshiftdata":{"prefix":"redshift-data","name":"RedshiftData"},"ssoadmin":{"prefix":"sso-admin","name":"SSOAdmin"},"timestreamquery":{"prefix":"timestream-query","name":"TimestreamQuery"},"timestreamwrite":{"prefix":"timestream-write","name":"TimestreamWrite"},"s3outposts":{"name":"S3Outposts"},"databrew":{"name":"DataBrew"},"servicecatalogappregistry":{"prefix":"servicecatalog-appregistry","name":"ServiceCatalogAppRegistry"},"networkfirewall":{"prefix":"network-firewall","name":"NetworkFirewall"},"mwaa":{"name":"MWAA"},"amplifybackend":{"name":"AmplifyBackend"},"appintegrations":{"name":"AppIntegrations"},"connectcontactlens":{"prefix":"connect-contact-lens","name":"ConnectContactLens"},"devopsguru":{"prefix":"devops-guru","name":"DevOpsGuru"},"ecrpublic":{"prefix":"ecr-public","name":"ECRPUBLIC"},"lookoutvision":{"name":"LookoutVision"},"sagemakerfeaturestoreruntime":{"prefix":"sagemaker-featurestore-runtime","name":"SageMakerFeatureStoreRuntime"},"customerprofiles":{"prefix":"customer-profiles","name":"CustomerProfiles"},"auditmanager":{"name":"AuditManager"},"emrcontainers":{"prefix":"emr-containers","name":"EMRcontainers"},"healthlake":{"name":"HealthLake"},"sagemakeredge":{"prefix":"sagemaker-edge","name":"SagemakerEdge"},"amp":{"name":"Amp"},"greengrassv2":{"name":"GreengrassV2"},"iotdeviceadvisor":{"name":"IotDeviceAdvisor"},"iotfleethub":{"name":"IoTFleetHub"},"iotwireless":{"name":"IoTWireless"},"location":{"name":"Location","cors":true},"wellarchitected":{"name":"WellArchitected"},"lexmodelsv2":{"prefix":"models.lex.v2","name":"LexModelsV2"},"lexruntimev2":{"prefix":"runtime.lex.v2","name":"LexRuntimeV2","cors":true},"fis":{"name":"Fis"},"lookoutmetrics":{"name":"LookoutMetrics"},"mgn":{"name":"Mgn"},"lookoutequipment":{"name":"LookoutEquipment"},"nimble":{"name":"Nimble"},"finspace":{"name":"Finspace"},"finspacedata":{"prefix":"finspace-data","name":"Finspacedata"},"ssmcontacts":{"prefix":"ssm-contacts","name":"SSMContacts"},"ssmincidents":{"prefix":"ssm-incidents","name":"SSMIncidents"},"applicationcostprofiler":{"name":"ApplicationCostProfiler"},"apprunner":{"name":"AppRunner"},"proton":{"name":"Proton"},"route53recoverycluster":{"prefix":"route53-recovery-cluster","name":"Route53RecoveryCluster"},"route53recoverycontrolconfig":{"prefix":"route53-recovery-control-config","name":"Route53RecoveryControlConfig"},"route53recoveryreadiness":{"prefix":"route53-recovery-readiness","name":"Route53RecoveryReadiness"},"chimesdkidentity":{"prefix":"chime-sdk-identity","name":"ChimeSDKIdentity"},"chimesdkmessaging":{"prefix":"chime-sdk-messaging","name":"ChimeSDKMessaging"},"snowdevicemanagement":{"prefix":"snow-device-management","name":"SnowDeviceManagement"},"memorydb":{"name":"MemoryDB"},"opensearch":{"name":"OpenSearch"},"kafkaconnect":{"name":"KafkaConnect"},"voiceid":{"prefix":"voice-id","name":"VoiceID"},"wisdom":{"name":"Wisdom"},"account":{"name":"Account"},"cloudcontrol":{"name":"CloudControl"},"grafana":{"name":"Grafana"},"panorama":{"name":"Panorama"},"chimesdkmeetings":{"prefix":"chime-sdk-meetings","name":"ChimeSDKMeetings"},"resiliencehub":{"name":"Resiliencehub"},"migrationhubstrategy":{"name":"MigrationHubStrategy"},"appconfigdata":{"name":"AppConfigData"},"drs":{"name":"Drs"},"migrationhubrefactorspaces":{"prefix":"migration-hub-refactor-spaces","name":"MigrationHubRefactorSpaces"},"evidently":{"name":"Evidently"},"inspector2":{"name":"Inspector2"},"rbin":{"name":"Rbin"},"rum":{"name":"RUM"},"backupgateway":{"prefix":"backup-gateway","name":"BackupGateway"},"iottwinmaker":{"name":"IoTTwinMaker"},"workspacesweb":{"prefix":"workspaces-web","name":"WorkSpacesWeb"},"amplifyuibuilder":{"name":"AmplifyUIBuilder"},"keyspaces":{"name":"Keyspaces"},"billingconductor":{"name":"Billingconductor"},"gamesparks":{"name":"GameSparks"},"pinpointsmsvoicev2":{"prefix":"pinpoint-sms-voice-v2","name":"PinpointSMSVoiceV2"},"ivschat":{"name":"Ivschat"},"chimesdkmediapipelines":{"prefix":"chime-sdk-media-pipelines","name":"ChimeSDKMediaPipelines"},"emrserverless":{"prefix":"emr-serverless","name":"EMRServerless"},"m2":{"name":"M2"},"connectcampaigns":{"name":"ConnectCampaigns"},"redshiftserverless":{"prefix":"redshift-serverless","name":"RedshiftServerless"},"rolesanywhere":{"name":"RolesAnywhere"},"licensemanagerusersubscriptions":{"prefix":"license-manager-user-subscriptions","name":"LicenseManagerUserSubscriptions"}}')},3554:ae=>{"use strict";ae.exports=JSON.parse('{"version":"2.0","metadata":{"apiVersion":"2011-06-15","endpointPrefix":"sts","globalEndpoint":"sts.amazonaws.com","protocol":"query","serviceAbbreviation":"AWS STS","serviceFullName":"AWS Security Token Service","serviceId":"STS","signatureVersion":"v4","uid":"sts-2011-06-15","xmlNamespace":"https://sts.amazonaws.com/doc/2011-06-15/"},"operations":{"AssumeRole":{"input":{"type":"structure","required":["RoleArn","RoleSessionName"],"members":{"RoleArn":{},"RoleSessionName":{},"PolicyArns":{"shape":"S4"},"Policy":{},"DurationSeconds":{"type":"integer"},"Tags":{"shape":"S8"},"TransitiveTagKeys":{"type":"list","member":{}},"ExternalId":{},"SerialNumber":{},"TokenCode":{},"SourceIdentity":{}}},"output":{"resultWrapper":"AssumeRoleResult","type":"structure","members":{"Credentials":{"shape":"Si"},"AssumedRoleUser":{"shape":"Sn"},"PackedPolicySize":{"type":"integer"},"SourceIdentity":{}}}},"AssumeRoleWithSAML":{"input":{"type":"structure","required":["RoleArn","PrincipalArn","SAMLAssertion"],"members":{"RoleArn":{},"PrincipalArn":{},"SAMLAssertion":{},"PolicyArns":{"shape":"S4"},"Policy":{},"DurationSeconds":{"type":"integer"}}},"output":{"resultWrapper":"AssumeRoleWithSAMLResult","type":"structure","members":{"Credentials":{"shape":"Si"},"AssumedRoleUser":{"shape":"Sn"},"PackedPolicySize":{"type":"integer"},"Subject":{},"SubjectType":{},"Issuer":{},"Audience":{},"NameQualifier":{},"SourceIdentity":{}}}},"AssumeRoleWithWebIdentity":{"input":{"type":"structure","required":["RoleArn","RoleSessionName","WebIdentityToken"],"members":{"RoleArn":{},"RoleSessionName":{},"WebIdentityToken":{},"ProviderId":{},"PolicyArns":{"shape":"S4"},"Policy":{},"DurationSeconds":{"type":"integer"}}},"output":{"resultWrapper":"AssumeRoleWithWebIdentityResult","type":"structure","members":{"Credentials":{"shape":"Si"},"SubjectFromWebIdentityToken":{},"AssumedRoleUser":{"shape":"Sn"},"PackedPolicySize":{"type":"integer"},"Provider":{},"Audience":{},"SourceIdentity":{}}}},"DecodeAuthorizationMessage":{"input":{"type":"structure","required":["EncodedMessage"],"members":{"EncodedMessage":{}}},"output":{"resultWrapper":"DecodeAuthorizationMessageResult","type":"structure","members":{"DecodedMessage":{}}}},"GetAccessKeyInfo":{"input":{"type":"structure","required":["AccessKeyId"],"members":{"AccessKeyId":{}}},"output":{"resultWrapper":"GetAccessKeyInfoResult","type":"structure","members":{"Account":{}}}},"GetCallerIdentity":{"input":{"type":"structure","members":{}},"output":{"resultWrapper":"GetCallerIdentityResult","type":"structure","members":{"UserId":{},"Account":{},"Arn":{}}}},"GetFederationToken":{"input":{"type":"structure","required":["Name"],"members":{"Name":{},"Policy":{},"PolicyArns":{"shape":"S4"},"DurationSeconds":{"type":"integer"},"Tags":{"shape":"S8"}}},"output":{"resultWrapper":"GetFederationTokenResult","type":"structure","members":{"Credentials":{"shape":"Si"},"FederatedUser":{"type":"structure","required":["FederatedUserId","Arn"],"members":{"FederatedUserId":{},"Arn":{}}},"PackedPolicySize":{"type":"integer"}}}},"GetSessionToken":{"input":{"type":"structure","members":{"DurationSeconds":{"type":"integer"},"SerialNumber":{},"TokenCode":{}}},"output":{"resultWrapper":"GetSessionTokenResult","type":"structure","members":{"Credentials":{"shape":"Si"}}}}},"shapes":{"S4":{"type":"list","member":{"type":"structure","members":{"arn":{}}}},"S8":{"type":"list","member":{"type":"structure","required":["Key","Value"],"members":{"Key":{},"Value":{}}}},"Si":{"type":"structure","required":["AccessKeyId","SecretAccessKey","SessionToken","Expiration"],"members":{"AccessKeyId":{},"SecretAccessKey":{},"SessionToken":{},"Expiration":{"type":"timestamp"}}},"Sn":{"type":"structure","required":["AssumedRoleId","Arn"],"members":{"AssumedRoleId":{},"Arn":{}}}}}')},31152:ae=>{"use strict";ae.exports={o:{}}},85595:ae=>{"use strict";ae.exports=JSON.parse('{"rules":{"*/*":{"endpoint":"{service}.{region}.amazonaws.com"},"cn-*/*":{"endpoint":"{service}.{region}.amazonaws.com.cn"},"us-iso-*/*":"usIso","us-isob-*/*":"usIsob","*/budgets":"globalSSL","*/cloudfront":"globalSSL","*/sts":"globalSSL","*/importexport":{"endpoint":"{service}.amazonaws.com","signatureVersion":"v2","globalEndpoint":true},"*/route53":"globalSSL","cn-*/route53":{"endpoint":"{service}.amazonaws.com.cn","globalEndpoint":true,"signingRegion":"cn-northwest-1"},"us-gov-*/route53":"globalGovCloud","us-iso-*/route53":{"endpoint":"{service}.c2s.ic.gov","globalEndpoint":true,"signingRegion":"us-iso-east-1"},"us-isob-*/route53":{"endpoint":"{service}.sc2s.sgov.gov","globalEndpoint":true,"signingRegion":"us-isob-east-1"},"*/waf":"globalSSL","*/iam":"globalSSL","cn-*/iam":{"endpoint":"{service}.cn-north-1.amazonaws.com.cn","globalEndpoint":true,"signingRegion":"cn-north-1"},"us-gov-*/iam":"globalGovCloud","us-gov-*/sts":{"endpoint":"{service}.{region}.amazonaws.com"},"us-gov-west-1/s3":"s3signature","us-west-1/s3":"s3signature","us-west-2/s3":"s3signature","eu-west-1/s3":"s3signature","ap-southeast-1/s3":"s3signature","ap-southeast-2/s3":"s3signature","ap-northeast-1/s3":"s3signature","sa-east-1/s3":"s3signature","us-east-1/s3":{"endpoint":"{service}.amazonaws.com","signatureVersion":"s3"},"us-east-1/sdb":{"endpoint":"{service}.amazonaws.com","signatureVersion":"v2"},"*/sdb":{"endpoint":"{service}.{region}.amazonaws.com","signatureVersion":"v2"}},"fipsRules":{"*/*":"fipsStandard","us-gov-*/*":"fipsStandard","us-iso-*/*":{"endpoint":"{service}-fips.{region}.c2s.ic.gov"},"us-iso-*/dms":"usIso","us-isob-*/*":{"endpoint":"{service}-fips.{region}.sc2s.sgov.gov"},"us-isob-*/dms":"usIsob","cn-*/*":{"endpoint":"{service}-fips.{region}.amazonaws.com.cn"},"*/api.ecr":"fips.api.ecr","*/api.sagemaker":"fips.api.sagemaker","*/batch":"fipsDotPrefix","*/eks":"fipsDotPrefix","*/models.lex":"fips.models.lex","*/runtime.lex":"fips.runtime.lex","*/runtime.sagemaker":{"endpoint":"runtime-fips.sagemaker.{region}.amazonaws.com"},"*/iam":"fipsWithoutRegion","*/route53":"fipsWithoutRegion","*/transcribe":"fipsDotPrefix","*/waf":"fipsWithoutRegion","us-gov-*/transcribe":"fipsDotPrefix","us-gov-*/api.ecr":"fips.api.ecr","us-gov-*/api.sagemaker":"fips.api.sagemaker","us-gov-*/models.lex":"fips.models.lex","us-gov-*/runtime.lex":"fips.runtime.lex","us-gov-*/acm-pca":"fipsWithServiceOnly","us-gov-*/batch":"fipsWithServiceOnly","us-gov-*/config":"fipsWithServiceOnly","us-gov-*/eks":"fipsWithServiceOnly","us-gov-*/elasticmapreduce":"fipsWithServiceOnly","us-gov-*/identitystore":"fipsWithServiceOnly","us-gov-*/dynamodb":"fipsWithServiceOnly","us-gov-*/elasticloadbalancing":"fipsWithServiceOnly","us-gov-*/guardduty":"fipsWithServiceOnly","us-gov-*/monitoring":"fipsWithServiceOnly","us-gov-*/resource-groups":"fipsWithServiceOnly","us-gov-*/runtime.sagemaker":"fipsWithServiceOnly","us-gov-*/servicecatalog-appregistry":"fipsWithServiceOnly","us-gov-*/servicequotas":"fipsWithServiceOnly","us-gov-*/ssm":"fipsWithServiceOnly","us-gov-*/sts":"fipsWithServiceOnly","us-gov-*/support":"fipsWithServiceOnly","us-gov-west-1/states":"fipsWithServiceOnly","us-iso-east-1/elasticfilesystem":{"endpoint":"elasticfilesystem-fips.{region}.c2s.ic.gov"},"us-gov-west-1/organizations":"fipsWithServiceOnly","us-gov-west-1/route53":{"endpoint":"route53.us-gov.amazonaws.com"}},"dualstackRules":{"*/*":{"endpoint":"{service}.{region}.api.aws"},"cn-*/*":{"endpoint":"{service}.{region}.api.amazonwebservices.com.cn"},"*/s3":"dualstackLegacy","cn-*/s3":"dualstackLegacyCn","*/s3-control":"dualstackLegacy","cn-*/s3-control":"dualstackLegacyCn","ap-south-1/ec2":"dualstackLegacyEc2","eu-west-1/ec2":"dualstackLegacyEc2","sa-east-1/ec2":"dualstackLegacyEc2","us-east-1/ec2":"dualstackLegacyEc2","us-east-2/ec2":"dualstackLegacyEc2","us-west-2/ec2":"dualstackLegacyEc2"},"dualstackFipsRules":{"*/*":{"endpoint":"{service}-fips.{region}.api.aws"},"cn-*/*":{"endpoint":"{service}-fips.{region}.api.amazonwebservices.com.cn"},"*/s3":"dualstackFipsLegacy","cn-*/s3":"dualstackFipsLegacyCn","*/s3-control":"dualstackFipsLegacy","cn-*/s3-control":"dualstackFipsLegacyCn"},"patterns":{"globalSSL":{"endpoint":"https://{service}.amazonaws.com","globalEndpoint":true,"signingRegion":"us-east-1"},"globalGovCloud":{"endpoint":"{service}.us-gov.amazonaws.com","globalEndpoint":true,"signingRegion":"us-gov-west-1"},"s3signature":{"endpoint":"{service}.{region}.amazonaws.com","signatureVersion":"s3"},"usIso":{"endpoint":"{service}.{region}.c2s.ic.gov"},"usIsob":{"endpoint":"{service}.{region}.sc2s.sgov.gov"},"fipsStandard":{"endpoint":"{service}-fips.{region}.amazonaws.com"},"fipsDotPrefix":{"endpoint":"fips.{service}.{region}.amazonaws.com"},"fipsWithoutRegion":{"endpoint":"{service}-fips.amazonaws.com"},"fips.api.ecr":{"endpoint":"ecr-fips.{region}.amazonaws.com"},"fips.api.sagemaker":{"endpoint":"api-fips.sagemaker.{region}.amazonaws.com"},"fips.models.lex":{"endpoint":"models-fips.lex.{region}.amazonaws.com"},"fips.runtime.lex":{"endpoint":"runtime-fips.lex.{region}.amazonaws.com"},"fipsWithServiceOnly":{"endpoint":"{service}.{region}.amazonaws.com"},"dualstackLegacy":{"endpoint":"{service}.dualstack.{region}.amazonaws.com"},"dualstackLegacyCn":{"endpoint":"{service}.dualstack.{region}.amazonaws.com.cn"},"dualstackFipsLegacy":{"endpoint":"{service}-fips.dualstack.{region}.amazonaws.com"},"dualstackFipsLegacyCn":{"endpoint":"{service}-fips.dualstack.{region}.amazonaws.com.cn"},"dualstackLegacyEc2":{"endpoint":"api.ec2.{region}.aws"}}}')},44226:ae=>{"use strict";ae.exports=JSON.parse('{"name":"aws-appsync-auth-link","version":"3.0.4","main":"lib/index.js","license":"Apache-2.0","description":"AWS Mobile AppSync Auth Link for JavaScript","author":{"name":"Amazon Web Services","url":"https://aws.amazon.com/"},"homepage":"https://github.com/awslabs/aws-mobile-appsync-sdk-js.git","repository":{"type":"git","url":"https://github.com/awslabs/aws-mobile-appsync-sdk-js.git"},"scripts":{"prepare":"tsc","test":"jest --coverage --coverageReporters=text --passWithNoTests","test-watch":"jest --watch"},"dependencies":{"aws-sdk":"^2.814.0","debug":"2.6.9"},"devDependencies":{"@apollo/client":"^3.2.0"},"peerDependencies":{"@apollo/client":"3.x"}}')}}]);
4
4
  //# sourceMappingURL=667.js.map
5
- //# debugId=1df962e9-494e-5fc2-bbce-d03dff2d1a15
5
+ //# debugId=47d93c08-0827-5aa0-b801-01c4004471b8