From 2f07ae6bf8a1a20ce7e473061dc7ad4140518700 Mon Sep 17 00:00:00 2001 From: Tony Air Date: Tue, 4 May 2021 00:19:04 +0700 Subject: [PATCH] IMPR: Minor updates --- app/client/dist/js/app.js | 2 +- app/client/dist/js/sample.js | 2 +- app/client/dist/records.json | 314 +++++++++++++++++------------------ app/client/dist/report.html | 4 +- webpack.config.js | 8 +- webpack.config.serve.js | 7 +- 6 files changed, 169 insertions(+), 168 deletions(-) diff --git a/app/client/dist/js/app.js b/app/client/dist/js/app.js index 25629df..5c2bc00 100644 --- a/app/client/dist/js/app.js +++ b/app/client/dist/js/app.js @@ -1,2 +1,2 @@ /*! For license information please see app.js.LICENSE.txt */ -!function(){var e={6999:function(e,t,n){var r={"./bg.png":3300,"./logo.png":8864,"./logo.svg":625,"./original.png":6843,"./original2.png":4730,"./photo1.png":9272,"./photo2.jpg":8616,"./photo3.svg":5802,"app/client/src/img/bg.png":3300,"app/client/src/img/logo.png":8864,"app/client/src/img/logo.svg":625,"app/client/src/img/original.png":6843,"app/client/src/img/original2.png":4730,"app/client/src/img/photo1.png":9272,"app/client/src/img/photo2.jpg":8616,"app/client/src/img/photo3.svg":5802,"bg.png":3300,"img/bg.png":3300,"img/logo.png":8864,"img/logo.svg":625,"img/original.png":6843,"img/original2.png":4730,"img/photo1.png":9272,"img/photo2.jpg":8616,"img/photo3.svg":5802,"logo.png":8864,"logo.svg":625,"original.png":6843,"original2.png":4730,"photo1.png":9272,"photo2.jpg":8616,"photo3.svg":5802};function webpackContext(e){var t=webpackContextResolve(e);return n(t)}function webpackContextResolve(e){if(!n.o(r,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return r[e]}webpackContext.keys=function webpackContextKeys(){return Object.keys(r)},webpackContext.resolve=webpackContextResolve,e.exports=webpackContext,webpackContext.id=6999},9900:function(e){const t={getParents:(e,t)=>{const n=[];let r=e;for(;r&&r!==document;)t?r.matches(t)&&n.push(r):n.push(r),r=r.parentNode;return n}};e.exports=t,e.exports.default=t},4580:function(e,t,n){"use strict";n.d(t,{h4:function(){return Y},ab:function(){return H}});var defaultMakeData=function(){return Object.create(null)},r=Array.prototype,i=r.forEach,h=r.slice,d=function(){function Trie(e,t){void 0===e&&(e=!0),void 0===t&&(t=defaultMakeData),this.weakness=e,this.makeData=t}return Trie.prototype.lookup=function(){for(var e=[],t=0;tthis.max;)this.delete(this.oldest.key)},Cache.prototype.delete=function(e){var t=this.map.get(e);return!!t&&(t===this.newest&&(this.newest=t.older),t===this.oldest&&(this.oldest=t.newer),t.newer&&(t.newer.older=t.older),t.older&&(t.older.newer=t.newer),this.map.delete(e),this.dispose(t.value,e),!0)},Cache}(),S=new w;function maybeUnsubscribe(e){var t=e.unsubscribe;"function"===typeof t&&(e.unsubscribe=void 0,t())}var k=[];function assert(e,t){if(!e)throw new Error(t||"assertion failure")}function valueGet(e){switch(e.length){case 0:throw new Error("unknown value");case 1:return e[0];case 2:throw e[1]}}var O=function(){function Entry(e){this.fn=e,this.parents=new Set,this.childValues=new Map,this.dirtyChildren=null,this.dirty=!0,this.recomputing=!1,this.value=[],this.deps=null,++Entry.count}return Entry.prototype.peek=function(){if(1===this.value.length&&!mightBeDirty(this))return this.value[0]},Entry.prototype.recompute=function(e){return assert(!this.recomputing,"already recomputing"),function rememberParent(e){var t=S.getValue();if(t)return e.parents.add(t),t.childValues.has(e)||t.childValues.set(e,[]),mightBeDirty(e)?reportDirtyChild(t,e):reportCleanChild(t,e),t}(this),mightBeDirty(this)?function reallyRecompute(e,t){forgetChildren(e),S.withValue(e,recomputeNewValue,[e,t]),function maybeSubscribe(e,t){if("function"===typeof e.subscribe)try{maybeUnsubscribe(e),e.unsubscribe=e.subscribe.apply(null,t)}catch(n){return e.setDirty(),!1}return!0}(e,t)&&function setClean(e){if(e.dirty=!1,mightBeDirty(e))return;reportClean(e)}(e);return valueGet(e.value)}(this,e):valueGet(this.value)},Entry.prototype.setDirty=function(){this.dirty||(this.dirty=!0,this.value.length=0,reportDirty(this),forgetChildren(this),maybeUnsubscribe(this))},Entry.prototype.dispose=function(){var e=this;forgetChildren(this),maybeUnsubscribe(this),this.parents.forEach((function(t){t.setDirty(),forgetChild(t,e)}))},Entry.prototype.dependOn=function(e){e.add(this),this.deps||(this.deps=k.pop()||new Set),this.deps.add(e)},Entry.prototype.forgetDeps=function(){var e=this;this.deps&&(this.deps.forEach((function(t){return t.delete(e)})),this.deps.clear(),k.push(this.deps),this.deps=null)},Entry.count=0,Entry}();function recomputeNewValue(e,t){e.recomputing=!0,e.value.length=0;try{e.value[0]=e.fn.apply(null,t)}catch(n){e.value[1]=n}e.recomputing=!1}function mightBeDirty(e){return e.dirty||!(!e.dirtyChildren||!e.dirtyChildren.size)}function reportDirty(e){e.parents.forEach((function(t){return reportDirtyChild(t,e)}))}function reportClean(e){e.parents.forEach((function(t){return reportCleanChild(t,e)}))}function reportDirtyChild(e,t){if(assert(e.childValues.has(t)),assert(mightBeDirty(t)),e.dirtyChildren){if(e.dirtyChildren.has(t))return}else e.dirtyChildren=k.pop()||new Set;e.dirtyChildren.add(t),reportDirty(e)}function reportCleanChild(e,t){assert(e.childValues.has(t)),assert(!mightBeDirty(t));var n=e.childValues.get(t);0===n.length?e.childValues.set(t,function valueCopy(e){return e.slice(0)}(t.value)):function valueIs(e,t){var n=e.length;return n>0&&n===t.length&&e[n-1]===t[n-1]}(n,t.value)||e.setDirty(),removeDirtyChild(e,t),mightBeDirty(e)||reportClean(e)}function removeDirtyChild(e,t){var n=e.dirtyChildren;n&&(n.delete(t),0===n.size&&(k.length<100&&k.push(n),e.dirtyChildren=null))}function forgetChildren(e){e.childValues.size>0&&e.childValues.forEach((function(t,n){forgetChild(e,n)})),e.forgetDeps(),assert(null===e.dirtyChildren)}function forgetChild(e,t){t.parents.delete(e),e.childValues.delete(t),removeDirtyChild(e,t)}function dep(e){var t=new Map,n=e&&e.subscribe;function depend(e){var r=S.getValue();if(r){var i=t.get(e);i||t.set(e,i=new Set),r.dependOn(i),"function"===typeof n&&(maybeUnsubscribe(i),i.unsubscribe=n(e))}}return depend.dirty=function dirty(e){var n=t.get(e);n&&(n.forEach((function(e){return e.setDirty()})),t.delete(e),maybeUnsubscribe(n))},depend}var C=new d("function"===typeof WeakMap);function defaultMakeCacheKey(){for(var e=[],t=0;t0){var t=--this.rootIds[e];return t||delete this.rootIds[e],t}return 0},EntityStore.prototype.getRootIdSet=function(e){return void 0===e&&(e=new Set),Object.keys(this.rootIds).forEach(e.add,e),this instanceof B?this.parent.getRootIdSet(e):Object.keys(this.policies.rootTypenamesById).forEach(e.add,e),e},EntityStore.prototype.gc=function(){var e=this,t=this.getRootIdSet(),n=this.toObject();t.forEach((function(r){M.call(n,r)&&(Object.keys(e.findChildRefIds(r)).forEach(t.add,t),delete n[r])}));var r=Object.keys(n);if(r.length){for(var i=this;i instanceof B;)i=i.parent;r.forEach((function(e){return i.delete(e)}))}return r},EntityStore.prototype.findChildRefIds=function(e){if(!M.call(this.refs,e)){var t=this.refs[e]=Object.create(null),n=new Set([this.data[e]]),canTraverse_1=function(e){return null!==e&&"object"===typeof e};n.forEach((function(e){(0,A.hh)(e)?t[e.__ref]=!0:canTraverse_1(e)&&Object.values(e).filter(canTraverse_1).forEach(n.add,n)}))}return this.refs[e]},EntityStore.prototype.makeCacheKey=function(){for(var e=[],t=0;t0;if(b&&!g)throw v.missing[0];return{result:v.result,missing:v.missing,complete:!b}},StoreReader.prototype.isFresh=function(e,t,n,r){if(supportsResultCaching(r.store)&&this.knownResults.get(e)===n){var i=this.executeSelectionSet.peek(n,t,r);if(i&&e===i.result)return!0}return!1},StoreReader.prototype.execSelectionSetImpl=function(e){var t=this,n=e.selectionSet,r=e.objectOrReference,i=e.context;if((0,A.hh)(r)&&!i.policies.rootTypenamesById[r.__ref]&&!i.store.has(r.__ref))return{result:{},missing:[missingFromInvariant(new I.ej(4),i)]};var h=i.variables,d=i.policies,g=i.store,y=[],v={result:null},b=g.getFieldValue(r,"__typename");function getMissing(){return v.missing||(v.missing=[])}function handleMissing(e){var t;return e.missing&&(t=getMissing()).push.apply(t,e.missing),e.result}this.config.addTypename&&"string"===typeof b&&!d.rootIdsByTypename[b]&&y.push({__typename:b});var _=new Set(n.selections);return _.forEach((function(e){var n;if((0,A.LZ)(e,h))if((0,A.My)(e)){var g=d.readField({fieldName:e.name.value,field:e,variables:i.variables,from:r},i),v=(0,A.u2)(e);i.path.push(v);var w=i.clientOnly;i.clientOnly=w||!(!e.directives||!e.directives.some((function(e){return"client"===e.name.value}))),void 0===g?A.Gw.added(e)||getMissing().push(missingFromInvariant(new I.ej(5),i)):Array.isArray(g)?g=handleMissing(t.executeSubSelectedArray({field:e,array:g,context:i})):e.selectionSet&&null!=g&&(g=handleMissing(t.executeSelectionSet({selectionSet:e.selectionSet,objectOrReference:g,context:i}))),void 0!==g&&y.push(((n={})[v]=g,n)),i.clientOnly=w,(0,I.kG)(i.path.pop()===v)}else{var E=(0,A.hi)(e,i.fragmentMap);E&&d.fragmentMatches(E,b)&&E.selectionSet.selections.forEach(_.add,_)}})),v.result=(0,A.bw)(y),this.knownResults.set(v.result,n),v},StoreReader.prototype.execSubSelectedArrayImpl=function(e){var t,n=this,r=e.field,i=e.array,h=e.context;function handleMissing(e,n){return e.missing&&(t=t||[]).push.apply(t,e.missing),(0,I.kG)(h.path.pop()===n),e.result}return r.selectionSet&&(i=i.filter(h.store.canRead)),{result:i=i.map((function(e,t){return null===e?null:(h.path.push(t),Array.isArray(e)?handleMissing(n.executeSubSelectedArray({field:r,array:e,context:h}),t):r.selectionSet?handleMissing(n.executeSelectionSet({selectionSet:r.selectionSet,objectOrReference:e,context:h}),t):((0,I.kG)(h.path.pop()===t),e))})),missing:t}},StoreReader}();var U=function(){function StoreWriter(e,t){this.cache=e,this.reader=t}return StoreWriter.prototype.writeToStore=function(e){var t=e.query,n=e.result,r=e.dataId,i=e.store,h=e.variables,d=(0,A.$H)(t),g=function makeProcessedFieldsMerger(){return new A.w0}();h=(0,N.pi)((0,N.pi)({},(0,A.O4)(d)),h);var y=this.processSelectionSet({result:n||Object.create(null),dataId:r,selectionSet:d.selectionSet,mergeTree:{map:new Map},context:{store:i,written:Object.create(null),merge:function(e,t){return g.merge(e,t)},variables:h,varString:JSON.stringify(h),fragmentMap:(0,A.F)((0,A.kU)(t))}});if(!(0,A.hh)(y))throw new I.ej(7);return i.retain(y.__ref),y},StoreWriter.prototype.processSelectionSet=function(e){var t=this,n=e.dataId,r=e.result,i=e.selectionSet,h=e.context,d=e.mergeTree,g=this.cache.policies,y=g.identify(r,i,h.fragmentMap),v=y[0],b=y[1];if("string"===typeof(n=n||v)){var _=h.written[n]||(h.written[n]=[]),w=(0,A.kQ)(n);if(_.indexOf(i)>=0)return w;if(_.push(i),this.reader&&this.reader.isFresh(r,w,i,h))return w}var E=Object.create(null);b&&(E=h.merge(E,b));var S=n&&g.rootTypenamesById[n]||(0,A.qw)(r,i,h.fragmentMap)||n&&h.store.get(n,"__typename");"string"===typeof S&&(E.__typename=S);var k=new Set(i.selections);if(k.forEach((function(e){var n;if((0,A.LZ)(e,h.variables))if((0,A.My)(e)){var i=(0,A.u2)(e),y=r[i];if("undefined"!==typeof y){var v=g.getStoreFieldName({typename:S,fieldName:e.name.value,field:e,variables:h.variables}),b=getChildMergeTree(d,v),_=t.processFieldValue(y,e,h,b),w=e.selectionSet&&h.store.getFieldValue(_,"__typename")||void 0,O=g.getMergeFunction(S,e.name.value,w);O?b.info={field:e,typename:S,merge:O}:maybeRecycleChildMergeTree(d,v),E=h.merge(E,((n={})[v]=_,n))}else if(g.usingPossibleTypes&&!(0,A.FS)(["defer","client"],e))throw new I.ej(8)}else{var C=(0,A.hi)(e,h.fragmentMap);C&&g.fragmentMatches(C,S,r,h.variables)&&C.selectionSet.selections.forEach(k.add,k)}})),"string"===typeof n){var O=(0,A.kQ)(n);return d.map.size&&(E=this.applyMerges(d,O,E,h)),h.store.merge(n,E),O}return E},StoreWriter.prototype.processFieldValue=function(e,t,n,r){var i=this;return t.selectionSet&&null!==e?Array.isArray(e)?e.map((function(e,h){var d=i.processFieldValue(e,t,n,getChildMergeTree(r,h));return maybeRecycleChildMergeTree(r,h),d})):this.processSelectionSet({result:e,selectionSet:t.selectionSet,context:n,mergeTree:r}):e},StoreWriter.prototype.applyMerges=function(e,t,n,r,i){var h,d=this;if(e.map.size&&!(0,A.hh)(n)){var g,y=Array.isArray(n)||!(0,A.hh)(t)&&!storeValueIsStoreObject(t)?void 0:t,v=n;y&&!i&&(i=[(0,A.hh)(y)?y.__ref:y]);var getValue_1=function(e,t){return Array.isArray(e)?"number"===typeof t?e[t]:void 0:r.store.getFieldValue(e,String(t))};e.map.forEach((function(e,t){i&&i.push(t);var n=getValue_1(y,t),h=getValue_1(v,t),b=d.applyMerges(e,n,h,r,i);b!==h&&(g=g||new Map).set(t,b),i&&(0,I.kG)(i.pop()===t)})),g&&(n=Array.isArray(v)?v.slice(0):(0,N.pi)({},v),g.forEach((function(e,t){n[t]=e})))}return e.info?this.cache.policies.runMergeFunction(t,n,e.info,r,i&&(h=r.store).getStorage.apply(h,i)):n},StoreWriter}(),V=[];function getChildMergeTree(e,t){var n=e.map;return n.has(t)||n.set(t,V.pop()||{map:new Map}),n.get(t)}function maybeRecycleChildMergeTree(e,t){var n=e.map,r=n.get(t);!r||r.info||r.map.size||(V.push(r),n.delete(t))}new Set;var H=new w,W=new WeakMap;function getCacheInfo(e){var t=W.get(e);return t||W.set(e,t={vars:new Set,dep:dep()}),t}function makeVar(e){var t=new Set,n=new Set,rv=function(i){if(arguments.length>0){if(e!==i){e=i,t.forEach((function(e){getCacheInfo(e).dep.dirty(rv),broadcast(e)}));var h=Array.from(n);n.clear(),h.forEach((function(t){return t(e)}))}}else{var d=H.getValue();d&&(r(d),getCacheInfo(d).dep(rv))}return e};rv.onNextChange=function(e){return n.add(e),function(){n.delete(e)}};var r=rv.attachCache=function(e){return t.add(e),getCacheInfo(e).vars.add(rv),rv};return rv.forgetCache=function(e){return t.delete(e)},rv}function broadcast(e){e.broadcastWatches&&e.broadcastWatches()}function argsFromFieldSpecifier(e){return void 0!==e.args?e.args:e.field?(0,A.NC)(e.field,e.variables):null}var defaultDataIdFromObject=function(e,t){var n=e.__typename,r=e.id,i=e._id;if("string"===typeof n&&(t&&(t.keyObject=void 0!==r?{id:r}:void 0!==i?{_id:i}:void 0),void 0===r&&(r=i),void 0!==r))return n+":"+("number"===typeof r||"string"===typeof r?r:JSON.stringify(r))},nullKeyFieldsFn=function(){},simpleKeyArgsFn=function(e,t){return t.fieldName},mergeTrueFn=function(e,t,n){return(0,n.mergeObjects)(e,t)},mergeFalseFn=function(e,t){return t},z=function(){function Policies(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,N.pi)({dataIdFromObject:defaultDataIdFromObject},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 Policies.prototype.identify=function(e,t,n){var r=t&&n?(0,A.qw)(e,t,n):e.__typename;if(r===this.rootTypenamesById.ROOT_QUERY)return["ROOT_QUERY"];for(var i,h={typename:r,selectionSet:t,fragmentMap:n},d=r&&this.getTypePolicy(r),g=d&&d.keyFn||this.config.dataIdFromObject;g;){var y=g(e,h);if(!Array.isArray(y)){i=y;break}g=keyFieldsFnFromSpecifier(y)}return i=i?String(i):void 0,h.keyObject?[i,h.keyObject]:[i]},Policies.prototype.addTypePolicies=function(e){var t=this;Object.keys(e).forEach((function(n){var r=e[n],i=r.queryType,h=r.mutationType,d=r.subscriptionType,g=(0,N._T)(r,["queryType","mutationType","subscriptionType"]);i&&t.setRootTypename("Query",n),h&&t.setRootTypename("Mutation",n),d&&t.setRootTypename("Subscription",n),M.call(t.toBeAdded,n)?t.toBeAdded[n].push(g):t.toBeAdded[n]=[g]}))},Policies.prototype.updateTypePolicy=function(e,t){var n=this,r=this.getTypePolicy(e),i=t.keyFields,h=t.fields;function setMerge(e,t){e.merge="function"===typeof t?t:!0===t?mergeTrueFn:!1===t?mergeFalseFn:e.merge}setMerge(r,t.merge),r.keyFn=!1===i?nullKeyFieldsFn:Array.isArray(i)?keyFieldsFnFromSpecifier(i):"function"===typeof i?i:r.keyFn,h&&Object.keys(h).forEach((function(t){var r=n.getFieldPolicy(e,t,!0),i=h[t];if("function"===typeof i)r.read=i;else{var d=i.keyArgs,g=i.read,y=i.merge;r.keyFn=!1===d?simpleKeyArgsFn:Array.isArray(d)?keyArgsFnFromSpecifier(d):"function"===typeof d?d:r.keyFn,"function"===typeof g&&(r.read=g),setMerge(r,y)}r.read&&r.merge&&(r.keyFn=r.keyFn||simpleKeyArgsFn)}))},Policies.prototype.setRootTypename=function(e,t){void 0===t&&(t=e);var n="ROOT_"+e.toUpperCase(),r=this.rootTypenamesById[n];t!==r&&((0,I.kG)(!r||r===e,1),r&&delete this.rootIdsByTypename[r],this.rootIdsByTypename[t]=n,this.rootTypenamesById[n]=t)},Policies.prototype.addPossibleTypes=function(e){var t=this;this.usingPossibleTypes=!0,Object.keys(e).forEach((function(n){t.getSupertypeSet(n,!0),e[n].forEach((function(e){t.getSupertypeSet(e,!0).add(n);var r=e.match(P);r&&r[0]===e||t.fuzzySubtypes.set(e,new RegExp(e))}))}))},Policies.prototype.getTypePolicy=function(e){var t=this;if(!M.call(this.typePolicies,e)){var n=this.typePolicies[e]=Object.create(null);n.fields=Object.create(null);var r=this.supertypeMap.get(e);r&&r.size&&r.forEach((function(e){var r=t.getTypePolicy(e),i=r.fields,h=(0,N._T)(r,["fields"]);Object.assign(n,h),Object.assign(n.fields,i)}))}var i=this.toBeAdded[e];return i&&i.length&&this.updateTypePolicy(e,A.oA.apply(void 0,i.splice(0))),this.typePolicies[e]},Policies.prototype.getFieldPolicy=function(e,t,n){if(e){var r=this.getTypePolicy(e).fields;return r[t]||n&&(r[t]=Object.create(null))}},Policies.prototype.getSupertypeSet=function(e,t){var n=this.supertypeMap.get(e);return!n&&t&&this.supertypeMap.set(e,n=new Set),n},Policies.prototype.fragmentMatches=function(e,t,n,r){var i=this;if(!e.typeCondition)return!0;if(!t)return!1;var h=e.typeCondition.name.value;if(t===h)return!0;if(this.usingPossibleTypes&&this.supertypeMap.has(h))for(var d=this.getSupertypeSet(t,!0),g=[d],maybeEnqueue_1=function(e){var t=i.getSupertypeSet(e,!1);t&&t.size&&g.indexOf(t)<0&&g.push(t)},y=!(!n||!this.fuzzySubtypes.size),v=0;v=e.lastRequestId){if(h&&"none"===n.errorPolicy)throw e.markError(new v.c({graphQLErrors:i.errors}));e.markResult(i,n,t),e.markReady()}var g={data:i.data,loading:!1,networkStatus:e.networkStatus||_.I.ready};return h&&"ignore"!==n.errorPolicy&&(g.errors=i.errors),g}),(function(t){var n=(0,v.M)(t)?t:new v.c({networkError:t});throw r>=e.lastRequestId&&e.markError(n),n}))},QueryManager.prototype.fetchQueryObservable=function(e,t,n){var r=this;void 0===n&&(n=_.I.loading);var i=this.transform(t.query).document,h=this.getVariables(i,t.variables),g=this.getQuery(e),y=g.networkStatus,v=t.fetchPolicy,b=void 0===v?"cache-first":v,w=t.errorPolicy,E=void 0===w?"none":w,S=t.returnPartialData,k=void 0!==S&&S,O=t.notifyOnNetworkStatusChange,C=void 0!==O&&O,T=t.context,x=void 0===T?{}:T;("cache-first"===b||"cache-and-network"===b||"network-only"===b||"no-cache"===b)&&C&&"number"===typeof y&&y!==n&&(0,_.O)(n)&&("cache-first"!==b&&(b="cache-and-network"),k=!0);var A=Object.assign({},t,{query:i,variables:h,fetchPolicy:b,errorPolicy:E,returnPartialData:k,notifyOnNetworkStatusChange:C,context:x}),fromVariables=function(e){return A.variables=e,r.fetchQueryByPolicy(g,A,n)};this.fetchCancelFns.set(e,(function(e){Promise.resolve().then((function(){return D.cancel(e)}))}));var D=new d.X_(this.transform(A.query).hasClientExports?this.localState.addExportedVariables(A.query,A.variables,A.context).then(fromVariables):fromVariables(A.variables));return D.cleanup((function(){r.fetchCancelFns.delete(e);var n=t.nextFetchPolicy;n&&(t.nextFetchPolicy=void 0,t.fetchPolicy="function"===typeof n?n.call(t,t.fetchPolicy||"cache-first"):n)})),D},QueryManager.prototype.fetchQueryByPolicy=function(e,t,n){var i=this,h=t.query,g=t.variables,y=t.fetchPolicy,v=t.errorPolicy,b=t.returnPartialData,w=t.context;e.init({document:h,variables:g,networkStatus:n});var readCache=function(){return e.getDiff(g)},resultsFromCache=function(t,n){void 0===n&&(n=e.networkStatus||_.I.loading);var y=t.result;var fromData=function(e){return d.y$.of((0,r.pi)({data:e,loading:(0,_.O)(n),networkStatus:n},t.complete?null:{partial:!0}))};return i.transform(h).hasForcedResolvers?i.localState.runResolvers({document:h,remoteResult:{data:y},context:w,variables:g,onlyRunForcedResolvers:!0}).then((function(e){return fromData(e.data)})):fromData(y)},resultsFromLink=function(t){return i.getResultsFromLink(e,t,{variables:g,context:w,fetchPolicy:y,errorPolicy:v})};switch(y){default:case"cache-first":return(E=readCache()).complete?[resultsFromCache(E,e.markReady())]:b?[resultsFromCache(E),resultsFromLink(!0)]:[resultsFromLink(!0)];case"cache-and-network":var E;return(E=readCache()).complete||b?[resultsFromCache(E),resultsFromLink(!0)]:[resultsFromLink(!0)];case"cache-only":return[resultsFromCache(readCache(),e.markReady())];case"network-only":return[resultsFromLink(!0)];case"no-cache":return[resultsFromLink(!1)];case"standby":return[]}},QueryManager.prototype.getQuery=function(e){return e&&!this.queries.has(e)&&this.queries.set(e,new O(this.cache)),this.queries.get(e)},QueryManager.prototype.prepareContext=function(e){void 0===e&&(e={});var t=this.localState.prepareContext(e);return(0,r.pi)((0,r.pi)({},t),{clientAwareness:this.clientAwareness})},QueryManager}();function mergeOptions(e,t){return(0,d.oA)(e,t,t.variables&&{variables:(0,r.pi)((0,r.pi)({},e.variables),t.variables)})}var x=function(){function ApolloClient(e){var t=this;this.defaultOptions={},this.resetStoreCallbacks=[],this.clearStoreCallbacks=[];var n=e.uri,r=e.credentials,d=e.headers,y=e.cache,v=e.ssrMode,b=void 0!==v&&v,_=e.ssrForceFetchDelay,w=void 0===_?0:_,E=e.connectToDevTools,k=void 0===E?"object"===typeof window&&!window.__APOLLO_CLIENT__&&!1:E,O=e.queryDeduplication,C=void 0===O||O,x=e.defaultOptions,A=e.assumeImmutableResults,D=void 0!==A&&A,L=e.resolvers,N=e.typeDefs,I=e.fragmentMatcher,R=e.name,M=e.version,P=e.link;if(P||(P=n?new g.uG({uri:n,credentials:r,headers:d}):h.i0.empty()),!y)throw new i.ej(9);this.link=P,this.cache=y,this.disableNetworkFetches=b||w>0,this.queryDeduplication=C,this.defaultOptions=x||{},this.typeDefs=N,w&&setTimeout((function(){return t.disableNetworkFetches=!1}),w),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.16",this.localState=new S({cache:y,client:this,resolvers:L,fragmentMatcher:I}),this.queryManager=new T({cache:this.cache,link:this.link,queryDeduplication:C,ssrMode:b,clientAwareness:{name:R,version:M},localState:this.localState,assumeImmutableResults:D,onBroadcast:k?function(){t.devToolsHookCb&&t.devToolsHookCb({action:{},state:{queries:t.queryManager.getQueryStore(),mutations:t.queryManager.mutationStore||{}},dataWithOptimisticResults:t.cache.extract(!0)})}:void 0})}return ApolloClient.prototype.stop=function(){this.queryManager.stop()},ApolloClient.prototype.watchQuery=function(e){return this.defaultOptions.watchQuery&&(e=mergeOptions(this.defaultOptions.watchQuery,e)),!this.disableNetworkFetches||"network-only"!==e.fetchPolicy&&"cache-and-network"!==e.fetchPolicy||(e=(0,r.pi)((0,r.pi)({},e),{fetchPolicy:"cache-first"})),this.queryManager.watchQuery(e)},ApolloClient.prototype.query=function(e){return this.defaultOptions.query&&(e=mergeOptions(this.defaultOptions.query,e)),(0,i.kG)("cache-and-network"!==e.fetchPolicy,10),this.disableNetworkFetches&&"network-only"===e.fetchPolicy&&(e=(0,r.pi)((0,r.pi)({},e),{fetchPolicy:"cache-first"})),this.queryManager.query(e)},ApolloClient.prototype.mutate=function(e){return this.defaultOptions.mutate&&(e=mergeOptions(this.defaultOptions.mutate,e)),this.queryManager.mutate(e)},ApolloClient.prototype.subscribe=function(e){return this.queryManager.startGraphQLSubscription(e)},ApolloClient.prototype.readQuery=function(e,t){return void 0===t&&(t=!1),this.cache.readQuery(e,t)},ApolloClient.prototype.readFragment=function(e,t){return void 0===t&&(t=!1),this.cache.readFragment(e,t)},ApolloClient.prototype.writeQuery=function(e){this.cache.writeQuery(e),this.queryManager.broadcastQueries()},ApolloClient.prototype.writeFragment=function(e){this.cache.writeFragment(e),this.queryManager.broadcastQueries()},ApolloClient.prototype.__actionHookForDevTools=function(e){this.devToolsHookCb=e},ApolloClient.prototype.__requestRaw=function(e){return(0,h.ht)(this.link,e)},ApolloClient.prototype.resetStore=function(){var e=this;return Promise.resolve().then((function(){return e.queryManager.clearStore()})).then((function(){return Promise.all(e.resetStoreCallbacks.map((function(e){return e()})))})).then((function(){return e.reFetchObservableQueries()}))},ApolloClient.prototype.clearStore=function(){var e=this;return Promise.resolve().then((function(){return e.queryManager.clearStore()})).then((function(){return Promise.all(e.clearStoreCallbacks.map((function(e){return e()})))}))},ApolloClient.prototype.onResetStore=function(e){var t=this;return this.resetStoreCallbacks.push(e),function(){t.resetStoreCallbacks=t.resetStoreCallbacks.filter((function(t){return t!==e}))}},ApolloClient.prototype.onClearStore=function(e){var t=this;return this.clearStoreCallbacks.push(e),function(){t.clearStoreCallbacks=t.clearStoreCallbacks.filter((function(t){return t!==e}))}},ApolloClient.prototype.reFetchObservableQueries=function(e){return this.queryManager.reFetchObservableQueries(e)},ApolloClient.prototype.extract=function(e){return this.cache.extract(e)},ApolloClient.prototype.restore=function(e){return this.cache.restore(e)},ApolloClient.prototype.addResolvers=function(e){this.localState.addResolvers(e)},ApolloClient.prototype.setResolvers=function(e){this.localState.setResolvers(e)},ApolloClient.prototype.getResolvers=function(){return this.localState.getResolvers()},ApolloClient.prototype.setLocalStateFragmentMatcher=function(e){this.localState.setFragmentMatcher(e)},ApolloClient.prototype.setLink=function(e){this.link=this.queryManager.link=e},ApolloClient}()},1434:function(e,t,n){"use strict";n.d(t,{u:function(){return v}});var r=n(3158),i=n(4082),h=n(3035),d=n(3199),g=n(3946),y=function(){function Reobserver(e,t,n,r){this.observer=e,this.options=t,this.fetch=n,this.shouldFetch=r}return Reobserver.prototype.reobserve=function(e,t){e?this.updateOptions(e):this.updatePolling();var n=this.fetch(this.options,t);return this.concast&&this.concast.removeObserver(this.observer,!0),n.addObserver(this.observer),(this.concast=n).promise},Reobserver.prototype.updateOptions=function(e){return Object.assign(this.options,(0,g.oA)(e)),this.updatePolling(),this},Reobserver.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())},Reobserver.prototype.updatePolling=function(){var e=this,t=this.pollingInfo,n=this.options.pollInterval;if(n){if((!t||t.interval!==n)&&((0,i.kG)(n,20),!1!==this.shouldFetch)){(t||(this.pollingInfo={})).interval=n;var maybeFetch=function(){e.pollingInfo&&(e.shouldFetch&&e.shouldFetch()?e.reobserve({fetchPolicy:"network-only",nextFetchPolicy:e.options.fetchPolicy||"cache-first"},d.I.poll).then(poll,poll):poll())},poll=function(){var t=e.pollingInfo;t&&(clearTimeout(t.timeout),t.timeout=setTimeout(maybeFetch,t.interval))};poll()}}else t&&(clearTimeout(t.timeout),delete this.pollingInfo)},Reobserver}(),v=function(e){function ObservableQuery(t){var n=t.queryManager,i=t.queryInfo,h=t.options,y=e.call(this,(function(e){return y.onSubscribe(e)}))||this;y.observers=new Set,y.subscriptions=new Set,y.observer={next:function(e){(y.lastError||y.isDifferentFromLastResult(e))&&(y.updateLastResult(e),(0,g.pM)(y.observers,"next",e))},error:function(e){y.updateLastResult((0,r.pi)((0,r.pi)({},y.lastResult),{error:e,errors:e.graphQLErrors,networkStatus:d.I.error,loading:!1})),(0,g.pM)(y.observers,"error",y.lastError=e)}},y.isTornDown=!1,y.options=h,y.queryId=n.generateQueryId();var v=(0,g.$H)(h.query);return y.queryName=v&&v.name&&v.name.value,y.queryManager=n,y.queryInfo=i,y}return(0,r.ZT)(ObservableQuery,e),Object.defineProperty(ObservableQuery.prototype,"variables",{get:function(){return this.options.variables},enumerable:!1,configurable:!0}),ObservableQuery.prototype.result=function(){var e=this;return new Promise((function(t,n){var r={next:function(n){t(n),e.observers.delete(r),e.observers.size||e.queryManager.removeQuery(e.queryId),setTimeout((function(){i.unsubscribe()}),0)},error:n},i=e.subscribe(r)}))},ObservableQuery.prototype.getCurrentResult=function(e){void 0===e&&(e=!0);var t=this.lastResult,n=this.queryInfo.networkStatus||t&&t.networkStatus||d.I.ready,i=(0,r.pi)((0,r.pi)({},t),{loading:(0,d.O)(n),networkStatus:n});if(this.isTornDown)return i;var h=this.options.fetchPolicy,g=void 0===h?"cache-first":h;if("no-cache"===g||"network-only"===g)delete i.partial;else if(!i.data||!this.queryManager.transform(this.options.query).hasForcedResolvers){var y=this.queryInfo.getDiff();i.data=y.complete||this.options.returnPartialData?y.result:void 0,y.complete?(i.networkStatus!==d.I.loading||"cache-first"!==g&&"cache-only"!==g||(i.networkStatus=d.I.ready,i.loading=!1),delete i.partial):i.partial=!0}return e&&this.updateLastResult(i),i},ObservableQuery.prototype.isDifferentFromLastResult=function(e){return!(0,h.D)(this.lastResultSnapshot,e)},ObservableQuery.prototype.getLastResult=function(){return this.lastResult},ObservableQuery.prototype.getLastError=function(){return this.lastError},ObservableQuery.prototype.resetLastResults=function(){delete this.lastResult,delete this.lastResultSnapshot,delete this.lastError,this.isTornDown=!1},ObservableQuery.prototype.resetQueryStoreErrors=function(){this.queryManager.resetErrors(this.queryId)},ObservableQuery.prototype.refetch=function(e){var t={pollInterval:0},n=this.options.fetchPolicy;return"no-cache"!==n&&"cache-and-network"!==n&&(t.fetchPolicy="network-only",t.nextFetchPolicy=n||"cache-first"),e&&!(0,h.D)(this.options.variables,e)&&(t.variables=this.options.variables=(0,r.pi)((0,r.pi)({},this.options.variables),e)),this.newReobserver(!1).reobserve(t,d.I.refetch)},ObservableQuery.prototype.fetchMore=function(e){var t=this,n=(0,r.pi)((0,r.pi)({},e.query?e:(0,r.pi)((0,r.pi)((0,r.pi)({},this.options),e),{variables:(0,r.pi)((0,r.pi)({},this.options.variables),e.variables)})),{fetchPolicy:"no-cache"}),i=this.queryManager.generateQueryId();return n.notifyOnNetworkStatusChange&&(this.queryInfo.networkStatus=d.I.fetchMore,this.observe()),this.queryManager.fetchQuery(i,n,d.I.fetchMore).then((function(r){var i=r.data,h=e.updateQuery;return h?t.updateQuery((function(e){return h(e,{fetchMoreResult:i,variables:n.variables})})):t.queryManager.cache.writeQuery({query:n.query,variables:n.variables,data:i}),r})).finally((function(){t.queryManager.stopQuery(i),t.reobserve()}))},ObservableQuery.prototype.subscribeToMore=function(e){var t=this,n=this.queryManager.startGraphQLSubscription({query:e.document,variables:e.variables,context:e.context}).subscribe({next:function(n){var r=e.updateQuery;r&&t.updateQuery((function(e,t){var i=t.variables;return r(e,{subscriptionData:n,variables:i})}))},error:function(t){e.onError&&e.onError(t)}});return this.subscriptions.add(n),function(){t.subscriptions.delete(n)&&n.unsubscribe()}},ObservableQuery.prototype.setOptions=function(e){return this.reobserve(e)},ObservableQuery.prototype.setVariables=function(e){if((0,h.D)(this.variables,e))return this.observers.size?this.result():Promise.resolve();if(this.options.variables=e,!this.observers.size)return Promise.resolve();var t=this.options.fetchPolicy,n=void 0===t?"cache-first":t,r={fetchPolicy:n,variables:e};return"cache-first"!==n&&"no-cache"!==n&&"network-only"!==n&&(r.fetchPolicy="cache-and-network",r.nextFetchPolicy=n),this.reobserve(r,d.I.setVariables)},ObservableQuery.prototype.updateQuery=function(e){var t,n=this.queryManager,r=e(n.cache.diff({query:this.options.query,variables:this.variables,previousResult:null===(t=this.lastResult)||void 0===t?void 0:t.data,returnPartialData:!0,optimistic:!1}).result,{variables:this.variables});r&&(n.cache.writeQuery({query:this.options.query,data:r,variables:this.variables}),n.broadcastQueries())},ObservableQuery.prototype.startPolling=function(e){this.getReobserver().updateOptions({pollInterval:e})},ObservableQuery.prototype.stopPolling=function(){this.reobserver&&this.reobserver.updateOptions({pollInterval:0})},ObservableQuery.prototype.updateLastResult=function(e){var t=this.lastResult;return this.lastResult=e,this.lastResultSnapshot=this.queryManager.assumeImmutableResults?e:(0,g.Xh)(e),(0,g.Of)(e.errors)||delete this.lastError,t},ObservableQuery.prototype.onSubscribe=function(e){var t=this;if(e===this.observer)return function(){};try{var n=e._subscription._observer;n&&!n.error&&(n.error=defaultSubscriptionObserverErrorCallback)}catch(i){}var r=!this.observers.size;return this.observers.add(e),this.lastError?e.error&&e.error(this.lastError):this.lastResult&&e.next&&e.next(this.lastResult),r&&this.reobserve().catch((function(e){})),function(){t.observers.delete(e)&&!t.observers.size&&t.tearDownQuery()}},ObservableQuery.prototype.getReobserver=function(){return this.reobserver||(this.reobserver=this.newReobserver(!0))},ObservableQuery.prototype.newReobserver=function(e){var t=this,n=this.queryManager,i=this.queryId;return n.setObservableQuery(this),new y(this.observer,e?this.options:(0,r.pi)({},this.options),(function(e,r){return n.setObservableQuery(t),n.fetchQueryObservable(i,e,r)}),!n.ssrMode&&function(){return!(0,d.O)(t.queryInfo.networkStatus)})},ObservableQuery.prototype.reobserve=function(e,t){return this.isTornDown=!1,this.getReobserver().reobserve(e,t)},ObservableQuery.prototype.observe=function(){this.observer.next(this.getCurrentResult(!1))},ObservableQuery.prototype.hasObservers=function(){return this.observers.size>0},ObservableQuery.prototype.tearDownQuery=function(){this.isTornDown||(this.reobserver&&(this.reobserver.stop(),delete this.reobserver),this.subscriptions.forEach((function(e){return e.unsubscribe()})),this.subscriptions.clear(),this.queryManager.stopQuery(this.queryId),this.observers.clear(),this.isTornDown=!0)},ObservableQuery}(g.y$);function defaultSubscriptionObserverErrorCallback(e){}(0,g.Dy)(v)},8468:function(e,t,n){"use strict";n.d(t,{fe:function(){return r.f},JH:function(){return r.J},Ie:function(){return i.I},h4:function(){return d.h4},ApolloLink:function(){return y.i0},from:function(){return y.Dp},HttpLink:function(){return v.uG},Ps:function(){return _.ZP}});var r=n(8443),i=(n(1434),n(3199)),h=n(9874);n.o(h,"ApolloLink")&&n.d(t,{ApolloLink:function(){return h.ApolloLink}}),n.o(h,"HttpLink")&&n.d(t,{HttpLink:function(){return h.HttpLink}}),n.o(h,"from")&&n.d(t,{from:function(){return h.from}});n(908);var d=n(4580),g=n(6004);n.o(g,"ApolloLink")&&n.d(t,{ApolloLink:function(){return g.ApolloLink}}),n.o(g,"HttpLink")&&n.d(t,{HttpLink:function(){return g.HttpLink}}),n.o(g,"from")&&n.d(t,{from:function(){return g.from}});var y=n(6937);n.o(y,"HttpLink")&&n.d(t,{HttpLink:function(){return y.HttpLink}});var v=n(4576),b=(n(6970),n(3946),n(4082)),_=n(6750);(0,b.U6)("log");_.ZP.resetCaches,_.ZP.disableFragmentWarnings,_.ZP.enableExperimentalFragmentVariables,_.ZP.disableExperimentalFragmentVariables},3199:function(e,t,n){"use strict";var r;function isNetworkRequestInFlight(e){return!!e&&e<7}n.d(t,{I:function(){return r},O:function(){return isNetworkRequestInFlight}}),function(e){e[e.loading=1]="loading",e[e.setVariables=2]="setVariables",e[e.fetchMore=3]="fetchMore",e[e.refetch=4]="refetch",e[e.poll=6]="poll",e[e.ready=7]="ready",e[e.error=8]="error"}(r||(r={}))},9874:function(){},908:function(e,t,n){"use strict";n.d(t,{M:function(){return isApolloError},c:function(){return h}});var r=n(3158),i=n(3946);function isApolloError(e){return e.hasOwnProperty("graphQLErrors")}var h=function(e){function ApolloError(t){var n,r,h=t.graphQLErrors,d=t.networkError,g=t.errorMessage,y=t.extraInfo,v=e.call(this,g)||this;return v.graphQLErrors=h||[],v.networkError=d||null,v.message=g||(n=v,r="",(0,i.Of)(n.graphQLErrors)&&n.graphQLErrors.forEach((function(e){var t=e?e.message:"Error message not found.";r+=t+"\n"})),n.networkError&&(r+=n.networkError.message+"\n"),r=r.replace(/\n$/,"")),v.extraInfo=y,v.__proto__=ApolloError.prototype,v}return(0,r.ZT)(ApolloError,e),ApolloError}(Error)},1313:function(e,t,n){"use strict";var r=n(8468);n.o(r,"ApolloLink")&&n.d(t,{ApolloLink:function(){return r.ApolloLink}}),n.o(r,"from")&&n.d(t,{from:function(){return r.from}});var i=n(4159);n.o(i,"ApolloLink")&&n.d(t,{ApolloLink:function(){return i.ApolloLink}}),n.o(i,"from")&&n.d(t,{from:function(){return i.from}})},5710:function(e,t,n){"use strict";n.d(t,{i:function(){return g}});var r=n(3158),i=n(4082),h=n(3946),d=n(6970);function passthrough(e,t){return t?t(e):h.y$.of()}function toLink(e){return"function"===typeof e?new g(e):e}function isTerminating(e){return e.request.length<=1}!function(e){function LinkError(t,n){var r=e.call(this,t)||this;return r.link=n,r}(0,r.ZT)(LinkError,e)}(Error);var g=function(){function ApolloLink(e){e&&(this.request=e)}return ApolloLink.empty=function(){return new ApolloLink((function(){return h.y$.of()}))},ApolloLink.from=function(e){return 0===e.length?ApolloLink.empty():e.map(toLink).reduce((function(e,t){return e.concat(t)}))},ApolloLink.split=function(e,t,n){var r=toLink(t),i=toLink(n||new ApolloLink(passthrough));return isTerminating(r)&&isTerminating(i)?new ApolloLink((function(t){return e(t)?r.request(t)||h.y$.of():i.request(t)||h.y$.of()})):new ApolloLink((function(t,n){return e(t)?r.request(t,n)||h.y$.of():i.request(t,n)||h.y$.of()}))},ApolloLink.execute=function(e,t){return e.request((0,d.zi)(t.context,(0,d.DQ)((0,d.Ak)(t))))||h.y$.of()},ApolloLink.concat=function(e,t){var n=toLink(e);if(isTerminating(n))return n;var r=toLink(t);return isTerminating(r)?new ApolloLink((function(e){return n.request(e,(function(e){return r.request(e)||h.y$.of()}))||h.y$.of()})):new ApolloLink((function(e,t){return n.request(e,(function(e){return r.request(e,t)||h.y$.of()}))||h.y$.of()}))},ApolloLink.prototype.split=function(e,t,n){return this.concat(ApolloLink.split(e,t,n||new ApolloLink(passthrough)))},ApolloLink.prototype.concat=function(e){return ApolloLink.concat(this,e)},ApolloLink.prototype.request=function(e,t){throw new i.ej(21)},ApolloLink.prototype.onError=function(e,t){if(t&&t.error)return t.error(e),!1;throw e},ApolloLink.prototype.setOnError=function(e){return this.onError=e,this},ApolloLink}()},4081:function(e,t,n){"use strict";n(5710).i.concat},1562:function(e,t,n){"use strict";n(5710).i.empty},8370:function(e,t,n){"use strict";n.d(t,{h:function(){return r}});var r=n(5710).i.execute},6835:function(e,t,n){"use strict";n.d(t,{D:function(){return r}});var r=n(5710).i.from},6937:function(e,t,n){"use strict";n.d(t,{Dp:function(){return r.D},ht:function(){return i.h},i0:function(){return h.i}});n(1562);var r=n(6835),i=(n(2862),n(4081),n(8370)),h=n(5710),d=n(4738);n.o(d,"HttpLink")&&n.d(t,{HttpLink:function(){return d.HttpLink}})},2862:function(e,t,n){"use strict";n(5710).i.split},4738:function(){},4576:function(e,t,n){"use strict";n.d(t,{uG:function(){return E}});var r=n(6970),i=Object.prototype.hasOwnProperty;var h=n(4082),serializeFetchParameter=function(e,t){var n;try{n=JSON.stringify(e)}catch(i){var r=new h.ej(23);throw r.parseError=i,r}return n},d=n(3158),g=n(4893),y=n(2464);function print(e){return(0,g.Vn)(e,{leave:v})}var v={Name:function Name(e){return e.value},Variable:function Variable(e){return"$"+e.name},Document:function Document(e){return join(e.definitions,"\n\n")+"\n"},OperationDefinition:function OperationDefinition(e){var t=e.operation,n=e.name,r=wrap("(",join(e.variableDefinitions,", "),")"),i=join(e.directives," "),h=e.selectionSet;return n||i||r||"query"!==t?join([t,join([n,r]),i,h]," "):h},VariableDefinition:function VariableDefinition(e){var t=e.variable,n=e.type,r=e.defaultValue,i=e.directives;return t+": "+n+wrap(" = ",r)+wrap(" ",join(i," "))},SelectionSet:function SelectionSet(e){return block(e.selections)},Field:function Field(e){var t=e.alias,n=e.name,r=e.arguments,i=e.directives,h=e.selectionSet,d=wrap("",t,": ")+n,g=d+wrap("(",join(r,", "),")");return g.length>80&&(g=d+wrap("(\n",indent(join(r,"\n")),"\n)")),join([g,join(i," "),h]," ")},Argument:function Argument(e){return e.name+": "+e.value},FragmentSpread:function FragmentSpread(e){return"..."+e.name+wrap(" ",join(e.directives," "))},InlineFragment:function InlineFragment(e){var t=e.typeCondition,n=e.directives,r=e.selectionSet;return join(["...",wrap("on ",t),join(n," "),r]," ")},FragmentDefinition:function FragmentDefinition(e){var t=e.name,n=e.typeCondition,r=e.variableDefinitions,i=e.directives,h=e.selectionSet;return"fragment ".concat(t).concat(wrap("(",join(r,", "),")")," ")+"on ".concat(n," ").concat(wrap("",join(i," ")," "))+h},IntValue:function IntValue(e){return e.value},FloatValue:function FloatValue(e){return e.value},StringValue:function StringValue(e,t){var n=e.value;return e.block?(0,y.LZ)(n,"description"===t?"":" "):JSON.stringify(n)},BooleanValue:function BooleanValue(e){return e.value?"true":"false"},NullValue:function NullValue(){return"null"},EnumValue:function EnumValue(e){return e.value},ListValue:function ListValue(e){return"["+join(e.values,", ")+"]"},ObjectValue:function ObjectValue(e){return"{"+join(e.fields,", ")+"}"},ObjectField:function ObjectField(e){return e.name+": "+e.value},Directive:function Directive(e){return"@"+e.name+wrap("(",join(e.arguments,", "),")")},NamedType:function NamedType(e){return e.name},ListType:function ListType(e){return"["+e.type+"]"},NonNullType:function NonNullType(e){return e.type+"!"},SchemaDefinition:addDescription((function(e){var t=e.directives,n=e.operationTypes;return join(["schema",join(t," "),block(n)]," ")})),OperationTypeDefinition:function OperationTypeDefinition(e){return e.operation+": "+e.type},ScalarTypeDefinition:addDescription((function(e){return join(["scalar",e.name,join(e.directives," ")]," ")})),ObjectTypeDefinition:addDescription((function(e){var t=e.name,n=e.interfaces,r=e.directives,i=e.fields;return join(["type",t,wrap("implements ",join(n," & ")),join(r," "),block(i)]," ")})),FieldDefinition:addDescription((function(e){var t=e.name,n=e.arguments,r=e.type,i=e.directives;return t+(hasMultilineItems(n)?wrap("(\n",indent(join(n,"\n")),"\n)"):wrap("(",join(n,", "),")"))+": "+r+wrap(" ",join(i," "))})),InputValueDefinition:addDescription((function(e){var t=e.name,n=e.type,r=e.defaultValue,i=e.directives;return join([t+": "+n,wrap("= ",r),join(i," ")]," ")})),InterfaceTypeDefinition:addDescription((function(e){var t=e.name,n=e.interfaces,r=e.directives,i=e.fields;return join(["interface",t,wrap("implements ",join(n," & ")),join(r," "),block(i)]," ")})),UnionTypeDefinition:addDescription((function(e){var t=e.name,n=e.directives,r=e.types;return join(["union",t,join(n," "),r&&0!==r.length?"= "+join(r," | "):""]," ")})),EnumTypeDefinition:addDescription((function(e){var t=e.name,n=e.directives,r=e.values;return join(["enum",t,join(n," "),block(r)]," ")})),EnumValueDefinition:addDescription((function(e){return join([e.name,join(e.directives," ")]," ")})),InputObjectTypeDefinition:addDescription((function(e){var t=e.name,n=e.directives,r=e.fields;return join(["input",t,join(n," "),block(r)]," ")})),DirectiveDefinition:addDescription((function(e){var t=e.name,n=e.arguments,r=e.repeatable,i=e.locations;return"directive @"+t+(hasMultilineItems(n)?wrap("(\n",indent(join(n,"\n")),"\n)"):wrap("(",join(n,", "),")"))+(r?" repeatable":"")+" on "+join(i," | ")})),SchemaExtension:function SchemaExtension(e){var t=e.directives,n=e.operationTypes;return join(["extend schema",join(t," "),block(n)]," ")},ScalarTypeExtension:function ScalarTypeExtension(e){return join(["extend scalar",e.name,join(e.directives," ")]," ")},ObjectTypeExtension:function ObjectTypeExtension(e){var t=e.name,n=e.interfaces,r=e.directives,i=e.fields;return join(["extend type",t,wrap("implements ",join(n," & ")),join(r," "),block(i)]," ")},InterfaceTypeExtension:function InterfaceTypeExtension(e){var t=e.name,n=e.interfaces,r=e.directives,i=e.fields;return join(["extend interface",t,wrap("implements ",join(n," & ")),join(r," "),block(i)]," ")},UnionTypeExtension:function UnionTypeExtension(e){var t=e.name,n=e.directives,r=e.types;return join(["extend union",t,join(n," "),r&&0!==r.length?"= "+join(r," | "):""]," ")},EnumTypeExtension:function EnumTypeExtension(e){var t=e.name,n=e.directives,r=e.values;return join(["extend enum",t,join(n," "),block(r)]," ")},InputObjectTypeExtension:function InputObjectTypeExtension(e){var t=e.name,n=e.directives,r=e.fields;return join(["extend input",t,join(n," "),block(r)]," ")}};function addDescription(e){return function(t){return join([t.description,e(t)],"\n")}}function join(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return null!==(t=null===e||void 0===e?void 0:e.filter((function(e){return e})).join(n))&&void 0!==t?t:""}function block(e){return wrap("{\n",indent(join(e,"\n")),"\n}")}function wrap(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return null!=t&&""!==t?e+t+n:""}function indent(e){return wrap(" ",e.replace(/\n/g,"\n "))}function isMultiline(e){return-1!==e.indexOf("\n")}function hasMultilineItems(e){return null!=e&&e.some(isMultiline)}var b={http:{includeQuery:!0,includeExtensions:!1},headers:{accept:"*/*","content-type":"application/json"},options:{method:"POST"}},_=n(6937),w=n(3946);var createHttpLink=function(e){void 0===e&&(e={});var t=e.uri,n=void 0===t?"/graphql":t,y=e.fetch,v=e.includeExtensions,E=e.useGETForQueries,S=e.includeUnusedVariables,k=void 0!==S&&S,O=(0,d._T)(e,["uri","fetch","includeExtensions","useGETForQueries","includeUnusedVariables"]);!function(e){if(!e&&"undefined"===typeof fetch)throw new h.ej(22)}(y),y||(y=fetch);var C={http:{includeExtensions:v},options:O.fetchOptions,credentials:O.credentials,headers:O.headers};return new _.i0((function(e){var t=function(e,t){return e.getContext().uri||("function"===typeof t?t(e):t||"/graphql")}(e,n),h=e.getContext(),v={};if(h.clientAwareness){var _=h.clientAwareness,S=_.name,O=_.version;S&&(v["apollographql-client-name"]=S),O&&(v["apollographql-client-version"]=O)}var T,x=(0,d.pi)((0,d.pi)({},v),h.headers),A={http:h.http,options:h.fetchOptions,credentials:h.credentials,headers:x},D=function(e,t){for(var n=[],r=2;r=300&&(0,r.PW)(t,n,"Response not successful: Received status code "+t.status),Array.isArray(n)||i.call(n,"data")||i.call(n,"errors")||(0,r.PW)(t,n,"Server response was missing for query '"+(Array.isArray(e)?e.map((function(e){return e.operationName})):e.operationName)+"'."),n}))}}(e)).then((function(e){return n.next(e),n.complete(),e})).catch((function(e){"AbortError"!==e.name&&(e.result&&e.result.errors&&e.result.data&&n.next(e.result),n.error(e))})),function(){T&&T.abort()}}))}))},E=function(e){function HttpLink(t){void 0===t&&(t={});var n=e.call(this,createHttpLink(t).request)||this;return n.options=t,n}return(0,d.ZT)(HttpLink,e),HttpLink}(_.i0)},6970:function(e,t,n){"use strict";n.d(t,{zi:function(){return createOperation},Qc:function(){return fromError},PW:function(){return throwServerError},DQ:function(){return transformOperation},Ak:function(){return validateOperation}});var r=n(3946);function fromError(e){return new r.y$((function(t){t.error(e)}))}var i=n(4082);var throwServerError=function(e,t,n){var r=new Error(n);throw r.name="ServerError",r.response=e,r.statusCode=e.status,r.result=t,r};function validateOperation(e){for(var t=["query","operationName","variables","extensions","context"],n=0,r=Object.keys(e);n0&&(this.previousOptions.subscription!==this.getOptions().subscription||!(0,h.D)(this.previousOptions.variables,this.getOptions().variables)||this.previousOptions.skip!==this.getOptions().skip)&&(this.cleanup(),t=this.getLoadingResult()),this.initialize(this.getOptions()),this.startSubscription(),this.previousOptions=this.getOptions(),(0,i.pi)((0,i.pi)({},t),{variables:this.getOptions().variables})},SubscriptionData.prototype.afterExecute=function(){this.isMounted=!0},SubscriptionData.prototype.cleanup=function(){this.endSubscription(),delete this.currentObservable.query},SubscriptionData.prototype.initialize=function(e){this.currentObservable.query||!0===this.getOptions().skip||(this.currentObservable.query=this.refreshClient().client.subscribe({query:e.subscription,variables:e.variables,fetchPolicy:e.fetchPolicy,context:e.context}))},SubscriptionData.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)}))},SubscriptionData.prototype.getLoadingResult=function(){return{loading:!0,error:void 0,data:void 0}},SubscriptionData.prototype.updateResult=function(e){this.isMounted&&this.setResult(e)},SubscriptionData.prototype.updateCurrentData=function(e){var t=this.getOptions().onSubscriptionData;this.updateResult({data:e.data,loading:!1,error:void 0}),t&&t({client:this.refreshClient().client,subscriptionData:e})},SubscriptionData.prototype.updateError=function(e){this.updateResult({error:e,loading:!1})},SubscriptionData.prototype.completeSubscription=function(){var e=this;Promise.resolve().then((function(){var t=e.getOptions().onSubscriptionComplete;t&&t(),e.endSubscription()}))},SubscriptionData.prototype.endSubscription=function(){this.currentObservable.subscription&&(this.currentObservable.subscription.unsubscribe(),delete this.currentObservable.subscription)}}(g),n(908)),v=n(8468);(function(e){function MutationData(t){var n=t.options,r=t.context,i=t.result,h=t.setResult,g=e.call(this,n,r)||this;return g.runMutation=function(e){void 0===e&&(e={}),g.onMutationStart();var t=g.generateNewMutationId();return g.mutate(e).then((function(e){return g.onMutationCompleted(e,t),e})).catch((function(e){var n=g.getOptions().onError;if(g.onMutationError(e,t),n)return n(e),{data:void 0,errors:e};throw e}))},g.verifyDocumentType(n.mutation,d.n_.Mutation),g.result=i,g.setResult=h,g.mostRecentMutationId=0,g}(0,i.ZT)(MutationData,e),MutationData.prototype.execute=function(e){return this.isMounted=!0,this.verifyDocumentType(this.getOptions().mutation,d.n_.Mutation),[this.runMutation,(0,i.pi)((0,i.pi)({},e),{client:this.refreshClient().client})]},MutationData.prototype.afterExecute=function(){return this.isMounted=!0,this.unmount.bind(this)},MutationData.prototype.cleanup=function(){},MutationData.prototype.mutate=function(e){return this.refreshClient().client.mutate((0,v.JH)(this.getOptions(),e))},MutationData.prototype.onMutationStart=function(){this.result.loading||this.getOptions().ignoreResults||this.updateResult({loading:!0,error:void 0,data:void 0,called:!0})},MutationData.prototype.onMutationCompleted=function(e,t){var n=this.getOptions(),r=n.onCompleted,i=n.ignoreResults,h=e.data,d=e.errors,g=d&&d.length>0?new y.c({graphQLErrors:d}):void 0;this.isMostRecentMutation(t)&&!i&&this.updateResult({called:!0,loading:!1,data:h,error:g}),r&&r(h)},MutationData.prototype.onMutationError=function(e,t){this.isMostRecentMutation(t)&&this.updateResult({loading:!1,error:e,data:void 0,called:!0})},MutationData.prototype.generateNewMutationId=function(){return++this.mostRecentMutationId},MutationData.prototype.isMostRecentMutation=function(e){return this.mostRecentMutationId===e},MutationData.prototype.updateResult=function(e){if(this.isMounted&&(!this.previousResult||!(0,h.D)(this.previousResult,e)))return this.setResult(e),this.previousResult=e,e}})(g),function(e){function QueryData(t){var n=t.options,r=t.context,h=t.onNewData,d=e.call(this,n,r)||this;return d.runLazy=!1,d.previous=Object.create(null),d.runLazyQuery=function(e){d.cleanup(),d.runLazy=!0,d.lazyOptions=e,d.onNewData()},d.getQueryResult=function(){var e=d.observableQueryFields(),t=d.getOptions();if(t.skip)e=(0,i.pi)((0,i.pi)({},e),{data:void 0,error:void 0,loading:!1,networkStatus:v.Ie.ready,called:!0});else if(d.currentObservable){var n=d.currentObservable.getCurrentResult(),r=n.data,h=n.loading,g=n.partial,b=n.networkStatus,_=n.errors,w=n.error;if(_&&_.length>0&&(w=new y.c({graphQLErrors:_})),e=(0,i.pi)((0,i.pi)({},e),{data:r,loading:h,networkStatus:b,error:w,called:!0}),h);else if(w)Object.assign(e,{data:(d.currentObservable.getLastResult()||{}).data});else{var E=d.currentObservable.options.fetchPolicy;if(t.partialRefetch&&g&&(!r||0===Object.keys(r).length)&&"cache-only"!==E)return Object.assign(e,{loading:!0,networkStatus:v.Ie.loading}),e.refetch(),e}}e.client=d.client,d.setOptions(t,!0);var S=d.previous.result;return d.previous.loading=S&&S.loading||!1,e.previousData=S&&(S.data||S.previousData),d.previous.result=e,d.currentObservable&&d.currentObservable.resetQueryStoreErrors(),e},d.obsRefetch=function(e){var t;return null===(t=d.currentObservable)||void 0===t?void 0:t.refetch(e)},d.obsFetchMore=function(e){return d.currentObservable.fetchMore(e)},d.obsUpdateQuery=function(e){return d.currentObservable.updateQuery(e)},d.obsStartPolling=function(e){var t;null===(t=d.currentObservable)||void 0===t||t.startPolling(e)},d.obsStopPolling=function(){var e;null===(e=d.currentObservable)||void 0===e||e.stopPolling()},d.obsSubscribeToMore=function(e){return d.currentObservable.subscribeToMore(e)},d.onNewData=h,d}(0,i.ZT)(QueryData,e),QueryData.prototype.execute=function(){this.refreshClient();var e=this.getOptions(),t=e.skip,n=e.query;return(t||n!==this.previous.query)&&(this.removeQuerySubscription(),this.removeObservable(!t),this.previous.query=n),this.updateObservableQuery(),this.isMounted&&this.startQuerySubscription(),this.getExecuteSsrResult()||this.getExecuteResult()},QueryData.prototype.executeLazy=function(){return this.runLazy?[this.runLazyQuery,this.execute()]:[this.runLazyQuery,{loading:!1,networkStatus:v.Ie.ready,called:!1,data:void 0}]},QueryData.prototype.fetchData=function(){var e=this,t=this.getOptions();return!t.skip&&!1!==t.ssr&&new Promise((function(t){return e.startQuerySubscription(t)}))},QueryData.prototype.afterExecute=function(e){var t=(void 0===e?{}:e).lazy,n=void 0!==t&&t;return this.isMounted=!0,n&&!this.runLazy||this.handleErrorOrCompleted(),this.previousOptions=this.getOptions(),this.unmount.bind(this)},QueryData.prototype.cleanup=function(){this.removeQuerySubscription(),this.removeObservable(!0),delete this.previous.result},QueryData.prototype.getOptions=function(){var t=e.prototype.getOptions.call(this);return this.lazyOptions&&(t.variables=(0,i.pi)((0,i.pi)({},t.variables),this.lazyOptions.variables),t.context=(0,i.pi)((0,i.pi)({},t.context),this.lazyOptions.context)),this.runLazy&&delete t.skip,t},QueryData.prototype.ssrInitiated=function(){return this.context&&this.context.renderPromises},QueryData.prototype.getExecuteResult=function(){var e=this.getQueryResult();return this.startQuerySubscription(),e},QueryData.prototype.getExecuteSsrResult=function(){var e=this.getOptions(),t=e.ssr,n=e.skip,r=!1===t,h=this.refreshClient().client.disableNetworkFetches,d=(0,i.pi)({loading:!0,networkStatus:v.Ie.loading,called:!0,data:void 0,stale:!1,client:this.client},this.observableQueryFields());if(r&&(this.ssrInitiated()||h))return this.previous.result=d,d;if(this.ssrInitiated()){var g=this.getQueryResult()||d;return g.loading&&!n&&this.context.renderPromises.addQueryPromise(this,(function(){return null})),g}},QueryData.prototype.prepareObservableQueryOptions=function(){var e=this.getOptions();this.verifyDocumentType(e.query,d.n_.Query);var t=e.displayName||"Query";return!this.ssrInitiated()||"network-only"!==e.fetchPolicy&&"cache-and-network"!==e.fetchPolicy||(e.fetchPolicy="cache-first"),(0,i.pi)((0,i.pi)({},e),{displayName:t,context:e.context})},QueryData.prototype.initializeObservableQuery=function(){if(this.ssrInitiated()&&(this.currentObservable=this.context.renderPromises.getSSRObservable(this.getOptions())),!this.currentObservable){var e=this.prepareObservableQueryOptions();this.previous.observableQueryOptions=(0,i.pi)((0,i.pi)({},e),{children:null}),this.currentObservable=this.refreshClient().client.watchQuery((0,i.pi)({},e)),this.ssrInitiated()&&this.context.renderPromises.registerSSRObservable(this.currentObservable,e)}},QueryData.prototype.updateObservableQuery=function(){if(this.currentObservable){if(!this.getOptions().skip){var e=(0,i.pi)((0,i.pi)({},this.prepareObservableQueryOptions()),{children:null});(0,h.D)(e,this.previous.observableQueryOptions)||(this.previous.observableQueryOptions=e,this.currentObservable.setOptions(e).catch((function(){})))}}else this.initializeObservableQuery()},QueryData.prototype.startQuerySubscription=function(e){var t=this;void 0===e&&(e=this.onNewData),this.currentSubscription||this.getOptions().skip||(this.currentSubscription=this.currentObservable.subscribe({next:function(n){var r=n.loading,i=n.networkStatus,d=n.data,g=t.previous.result;g&&g.loading===r&&g.networkStatus===i&&(0,h.D)(g.data,d)||e()},error:function(n){if(t.resubscribeToQuery(),!n.hasOwnProperty("graphQLErrors"))throw n;var r=t.previous.result;(r&&r.loading||!(0,h.D)(n,t.previous.error))&&(t.previous.error=n,e())}}))},QueryData.prototype.resubscribeToQuery=function(){this.removeQuerySubscription();var e=this.currentObservable;if(e){var t=e.getLastError(),n=e.getLastResult();e.resetLastResults(),this.startQuerySubscription(),Object.assign(e,{lastError:t,lastResult:n})}},QueryData.prototype.handleErrorOrCompleted=function(){if(this.currentObservable&&this.previous.result){var e=this.previous.result,t=e.data,n=e.loading,r=e.error;if(!n){var i=this.getOptions(),d=i.query,g=i.variables,y=i.onCompleted,v=i.onError,b=i.skip;if(this.previousOptions&&!this.previous.loading&&(0,h.D)(this.previousOptions.query,d)&&(0,h.D)(this.previousOptions.variables,g))return;!y||r||b?v&&r&&v(r):y(t)}}},QueryData.prototype.removeQuerySubscription=function(){this.currentSubscription&&(this.currentSubscription.unsubscribe(),delete this.currentSubscription)},QueryData.prototype.removeObservable=function(e){this.currentObservable&&(this.currentObservable.tearDownQuery(),e&&delete this.currentObservable)},QueryData.prototype.observableQueryFields=function(){var e;return{variables:null===(e=this.currentObservable)||void 0===e?void 0:e.variables,refetch:this.obsRefetch,fetchMore:this.obsFetchMore,updateQuery:this.obsUpdateQuery,startPolling:this.obsStartPolling,stopPolling:this.obsStopPolling,subscribeToMore:this.obsSubscribeToMore}}}(g)},4159:function(e,t,n){"use strict";n(7573),n(2510),n(3709);var r=n(3275);n.o(r,"ApolloLink")&&n.d(t,{ApolloLink:function(){return r.ApolloLink}}),n.o(r,"from")&&n.d(t,{from:function(){return r.from}})},3709:function(e,t,n){"use strict";n.d(t,{n_:function(){return r},mw:function(){return operationName},E2:function(){return parser}});var r,i=n(4082);!function(e){e[e.Query=0]="Query",e[e.Mutation=1]="Mutation",e[e.Subscription=2]="Subscription"}(r||(r={}));var h=new Map;function operationName(e){var t;switch(e){case r.Query:t="Query";break;case r.Mutation:t="Mutation";break;case r.Subscription:t="Subscription"}return t}function parser(e){var t,n,d=h.get(e);if(d)return d;(0,i.kG)(!!e&&!!e.kind,34);var g=e.definitions.filter((function(e){return"FragmentDefinition"===e.kind})),y=e.definitions.filter((function(e){return"OperationDefinition"===e.kind&&"query"===e.operation})),v=e.definitions.filter((function(e){return"OperationDefinition"===e.kind&&"mutation"===e.operation})),b=e.definitions.filter((function(e){return"OperationDefinition"===e.kind&&"subscription"===e.operation}));(0,i.kG)(!g.length||y.length||v.length||b.length,35),(0,i.kG)(y.length+v.length+b.length<=1,36),n=y.length?r.Query:r.Mutation,y.length||v.length||(n=r.Subscription);var _=y.length?y:v.length?v:b;(0,i.kG)(1===_.length,37);var w=_[0];t=w.variableDefinitions||[];var E={name:w.name&&"Name"===w.name.kind?w.name.value:"data",type:n,variables:t};return h.set(e,E),E}},3275:function(){},3946:function(e,t,n){"use strict";n.d(t,{X_:function(){return T},w0:function(){return w},y$:function(){return S()},Gw:function(){return addTypenameToDocument},NC:function(){return argumentsObjectFromField},sz:function(){return asyncMap},aL:function(){return buildQueryFromSelectionSet},mr:function(){return x},Xh:function(){return cloneDeep},oA:function(){return compact},F:function(){return createFragmentMap},Dy:function(){return fixObservableSubclass},O4:function(){return getDefaultValues},kU:function(){return getFragmentDefinitions},hi:function(){return getFragmentFromSelection},Yk:function(){return getFragmentQueryDocument},p$:function(){return getMainDefinition},$H:function(){return getOperationDefinition},rY:function(){return getOperationName},iW:function(){return getQueryDefinition},PT:function(){return getStoreKeyName},qw:function(){return getTypenameFromResult},d2:function(){return graphQLResultHasError},mj:function(){return hasClientExports},FS:function(){return hasDirectives},My:function(){return storeUtils_isField},Ao:function(){return isInlineFragment},Of:function(){return isNonEmptyArray},hh:function(){return isReference},pM:function(){return iterateObserversSafely},kQ:function(){return makeReference},Jv:function(){return maybeDeepFreeze},Ee:function(){return mergeDeep_mergeDeep},bw:function(){return mergeDeepArray},ob:function(){return removeClientSetsFromDocument},Fo:function(){return removeConnectionDirectiveFromDocument},u2:function(){return resultKeyNameFromField},LZ:function(){return shouldInclude},vf:function(){return storeKeyNameFromField}});var r=n(4893),i=n(4082);function shouldInclude(e,t){var n=e.directives;return!n||!n.length||function getInclusionDirectives(e){var t=[];e&&e.length&&e.forEach((function(e){if(function isInclusionDirective(e){var t=e.name.value;return"skip"===t||"include"===t}(e)){var n=e.arguments;e.name.value;(0,i.kG)(n&&1===n.length,39);var r=n[0];(0,i.kG)(r.name&&"if"===r.name.value,40);var h=r.value;(0,i.kG)(h&&("Variable"===h.kind||"BooleanValue"===h.kind),41),t.push({directive:e,ifArgument:r})}}));return t}(n).every((function(e){var n=e.directive,r=e.ifArgument,h=!1;return"Variable"===r.value.kind?(h=t&&t[r.value.name.value],(0,i.kG)(void 0!==h,38)):h=r.value.value,"skip"===n.name.value?!h:h}))}function hasDirectives(e,t){return function getDirectiveNames(e){var t=[];return(0,r.Vn)(e,{Directive:function(e){t.push(e.name.value)}}),t}(t).some((function(t){return e.indexOf(t)>-1}))}function hasClientExports(e){return e&&hasDirectives(["client"],e)&&hasDirectives(["export"],e)}var h=n(3158);function getFragmentQueryDocument(e,t){var n=t,r=[];return e.definitions.forEach((function(e){if("OperationDefinition"===e.kind)throw new i.ej(42);"FragmentDefinition"===e.kind&&r.push(e)})),"undefined"===typeof n&&((0,i.kG)(1===r.length,43),n=r[0].name.value),(0,h.pi)((0,h.pi)({},e),{definitions:(0,h.pr)([{kind:"OperationDefinition",operation:"query",selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:n}}]}}],e.definitions)})}function createFragmentMap(e){void 0===e&&(e=[]);var t={};return e.forEach((function(e){t[e.name.value]=e})),t}function getFragmentFromSelection(e,t){switch(e.kind){case"InlineFragment":return e;case"FragmentSpread":var n=t&&t[e.name.value];return(0,i.kG)(n,44),n;default:return null}}var d=n(7020),g=n.n(d);function makeReference(e){return{__ref:String(e)}}function isReference(e){return Boolean(e&&"object"===typeof e&&"string"===typeof e.__ref)}function valueToObjectRepresentation(e,t,n,r){if(function isIntValue(e){return"IntValue"===e.kind}(n)||function isFloatValue(e){return"FloatValue"===e.kind}(n))e[t.value]=Number(n.value);else if(function isBooleanValue(e){return"BooleanValue"===e.kind}(n)||function isStringValue(e){return"StringValue"===e.kind}(n))e[t.value]=n.value;else if(function isObjectValue(e){return"ObjectValue"===e.kind}(n)){var h={};n.fields.map((function(e){return valueToObjectRepresentation(h,e.name,e.value,r)})),e[t.value]=h}else if(function isVariable(e){return"Variable"===e.kind}(n)){var d=(r||{})[n.name.value];e[t.value]=d}else if(function isListValue(e){return"ListValue"===e.kind}(n))e[t.value]=n.values.map((function(e){var n={};return valueToObjectRepresentation(n,t,e,r),n[t.value]}));else if(function isEnumValue(e){return"EnumValue"===e.kind}(n))e[t.value]=n.value;else{if(!function isNullValue(e){return"NullValue"===e.kind}(n))throw new i.ej(53);e[t.value]=null}}function storeKeyNameFromField(e,t){var n=null;e.directives&&(n={},e.directives.forEach((function(e){n[e.name.value]={},e.arguments&&e.arguments.forEach((function(r){var i=r.name,h=r.value;return valueToObjectRepresentation(n[e.name.value],i,h,t)}))})));var r=null;return e.arguments&&e.arguments.length&&(r={},e.arguments.forEach((function(e){var n=e.name,i=e.value;return valueToObjectRepresentation(r,n,i,t)}))),getStoreKeyName(e.name.value,r,n)}var y=["connection","include","skip","client","rest","export"];function getStoreKeyName(e,t,n){if(t&&n&&n.connection&&n.connection.key){if(n.connection.filter&&n.connection.filter.length>0){var r=n.connection.filter?n.connection.filter:[];r.sort();var i={};return r.forEach((function(e){i[e]=t[e]})),n.connection.key+"("+JSON.stringify(i)+")"}return n.connection.key}var h=e;if(t){var d=g()(t);h+="("+d+")"}return n&&Object.keys(n).forEach((function(e){-1===y.indexOf(e)&&(n[e]&&Object.keys(n[e]).length?h+="@"+e+"("+JSON.stringify(n[e])+")":h+="@"+e)})),h}function argumentsObjectFromField(e,t){if(e.arguments&&e.arguments.length){var n={};return e.arguments.forEach((function(e){var r=e.name,i=e.value;return valueToObjectRepresentation(n,r,i,t)})),n}return null}function resultKeyNameFromField(e){return e.alias?e.alias.value:e.name.value}function getTypenameFromResult(e,t,n){if("string"===typeof e.__typename)return e.__typename;for(var r=0,i=t.selections;r1)for(var r=new w,i=1;i0}function graphQLResultHasError(e){return e.errors&&e.errors.length>0||!1}fixObservableSubclass(T);var x="function"===typeof WeakMap&&!("object"===typeof navigator&&"ReactNative"===navigator.product);function compact(){for(var e=[],t=0;t=0&&e.indexOf(t,n)===n}(T,y)}return!1}function definedKeys(e){return Object.keys(e).filter(isDefinedKey,e)}function isDefinedKey(e){return void 0!==this[e]}var y="{ [native code] }";function previouslyCompared(e,t){var n=g.get(e);if(n){if(n.has(t))return!0}else g.set(e,n=new Set);return n.add(t),!1}},6971:function(e,t,n){e.exports=n(5263)},8992:function(e,t,n){"use strict";var r=n(608),i=n(6232),h=n(7739),d=n(9598),g=n(4853),y=n(2592),v=n(5034),b=n(4773);e.exports=function xhrAdapter(e){return new Promise((function dispatchXhrRequest(t,n){var _=e.data,w=e.headers;r.isFormData(_)&&delete w["Content-Type"];var E=new XMLHttpRequest;if(e.auth){var S=e.auth.username||"",k=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";w.Authorization="Basic "+btoa(S+":"+k)}var O=g(e.baseURL,e.url);if(E.open(e.method.toUpperCase(),d(O,e.params,e.paramsSerializer),!0),E.timeout=e.timeout,E.onreadystatechange=function handleLoad(){if(E&&4===E.readyState&&(0!==E.status||E.responseURL&&0===E.responseURL.indexOf("file:"))){var r="getAllResponseHeaders"in E?y(E.getAllResponseHeaders()):null,h={data:e.responseType&&"text"!==e.responseType?E.response:E.responseText,status:E.status,statusText:E.statusText,headers:r,config:e,request:E};i(t,n,h),E=null}},E.onabort=function handleAbort(){E&&(n(b("Request aborted",e,"ECONNABORTED",E)),E=null)},E.onerror=function handleError(){n(b("Network Error",e,null,E)),E=null},E.ontimeout=function handleTimeout(){var t="timeout of "+e.timeout+"ms exceeded";e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),n(b(t,e,"ECONNABORTED",E)),E=null},r.isStandardBrowserEnv()){var C=(e.withCredentials||v(O))&&e.xsrfCookieName?h.read(e.xsrfCookieName):void 0;C&&(w[e.xsrfHeaderName]=C)}if("setRequestHeader"in E&&r.forEach(w,(function setRequestHeader(e,t){"undefined"===typeof _&&"content-type"===t.toLowerCase()?delete w[t]:E.setRequestHeader(t,e)})),r.isUndefined(e.withCredentials)||(E.withCredentials=!!e.withCredentials),e.responseType)try{E.responseType=e.responseType}catch(T){if("json"!==e.responseType)throw T}"function"===typeof e.onDownloadProgress&&E.addEventListener("progress",e.onDownloadProgress),"function"===typeof e.onUploadProgress&&E.upload&&E.upload.addEventListener("progress",e.onUploadProgress),e.cancelToken&&e.cancelToken.promise.then((function onCanceled(e){E&&(E.abort(),n(e),E=null)})),_||(_=null),E.send(_)}))}},5263:function(e,t,n){"use strict";var r=n(608),i=n(655),h=n(2671),d=n(6961);function createInstance(e){var t=new h(e),n=i(h.prototype.request,t);return r.extend(n,h.prototype,t),r.extend(n,t),n}var g=createInstance(n(8479));g.Axios=h,g.create=function create(e){return createInstance(d(g.defaults,e))},g.Cancel=n(1828),g.CancelToken=n(9953),g.isCancel=n(4373),g.all=function all(e){return Promise.all(e)},g.spread=n(5869),g.isAxiosError=n(2936),e.exports=g,e.exports.default=g},1828:function(e){"use strict";function Cancel(e){this.message=e}Cancel.prototype.toString=function toString(){return"Cancel"+(this.message?": "+this.message:"")},Cancel.prototype.__CANCEL__=!0,e.exports=Cancel},9953:function(e,t,n){"use strict";var r=n(1828);function CancelToken(e){if("function"!==typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise((function promiseExecutor(e){t=e}));var n=this;e((function cancel(e){n.reason||(n.reason=new r(e),t(n.reason))}))}CancelToken.prototype.throwIfRequested=function throwIfRequested(){if(this.reason)throw this.reason},CancelToken.source=function source(){var e;return{token:new CancelToken((function executor(t){e=t})),cancel:e}},e.exports=CancelToken},4373:function(e){"use strict";e.exports=function isCancel(e){return!(!e||!e.__CANCEL__)}},2671:function(e,t,n){"use strict";var r=n(608),i=n(9598),h=n(2974),d=n(3925),g=n(6961);function Axios(e){this.defaults=e,this.interceptors={request:new h,response:new h}}Axios.prototype.request=function request(e){"string"===typeof e?(e=arguments[1]||{}).url=arguments[0]:e=e||{},(e=g(this.defaults,e)).method?e.method=e.method.toLowerCase():this.defaults.method?e.method=this.defaults.method.toLowerCase():e.method="get";var t=[d,void 0],n=Promise.resolve(e);for(this.interceptors.request.forEach((function unshiftRequestInterceptors(e){t.unshift(e.fulfilled,e.rejected)})),this.interceptors.response.forEach((function pushResponseInterceptors(e){t.push(e.fulfilled,e.rejected)}));t.length;)n=n.then(t.shift(),t.shift());return n},Axios.prototype.getUri=function getUri(e){return e=g(this.defaults,e),i(e.url,e.params,e.paramsSerializer).replace(/^\?/,"")},r.forEach(["delete","get","head","options"],(function forEachMethodNoData(e){Axios.prototype[e]=function(t,n){return this.request(g(n||{},{method:e,url:t,data:(n||{}).data}))}})),r.forEach(["post","put","patch"],(function forEachMethodWithData(e){Axios.prototype[e]=function(t,n,r){return this.request(g(r||{},{method:e,url:t,data:n}))}})),e.exports=Axios},2974:function(e,t,n){"use strict";var r=n(608);function InterceptorManager(){this.handlers=[]}InterceptorManager.prototype.use=function use(e,t){return this.handlers.push({fulfilled:e,rejected:t}),this.handlers.length-1},InterceptorManager.prototype.eject=function eject(e){this.handlers[e]&&(this.handlers[e]=null)},InterceptorManager.prototype.forEach=function forEach(e){r.forEach(this.handlers,(function forEachHandler(t){null!==t&&e(t)}))},e.exports=InterceptorManager},4853:function(e,t,n){"use strict";var r=n(1882),i=n(4476);e.exports=function buildFullPath(e,t){return e&&!r(t)?i(e,t):t}},4773:function(e,t,n){"use strict";var r=n(4665);e.exports=function createError(e,t,n,i,h){var d=new Error(e);return r(d,t,n,i,h)}},3925:function(e,t,n){"use strict";var r=n(608),i=n(6517),h=n(4373),d=n(8479);function throwIfCancellationRequested(e){e.cancelToken&&e.cancelToken.throwIfRequested()}e.exports=function dispatchRequest(e){return throwIfCancellationRequested(e),e.headers=e.headers||{},e.data=i(e.data,e.headers,e.transformRequest),e.headers=r.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),r.forEach(["delete","get","head","post","put","patch","common"],(function cleanHeaderConfig(t){delete e.headers[t]})),(e.adapter||d.adapter)(e).then((function onAdapterResolution(t){return throwIfCancellationRequested(e),t.data=i(t.data,t.headers,e.transformResponse),t}),(function onAdapterRejection(t){return h(t)||(throwIfCancellationRequested(e),t&&t.response&&(t.response.data=i(t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)}))}},4665:function(e){"use strict";e.exports=function enhanceError(e,t,n,r,i){return e.config=t,n&&(e.code=n),e.request=r,e.response=i,e.isAxiosError=!0,e.toJSON=function toJSON(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code}},e}},6961:function(e,t,n){"use strict";var r=n(608);e.exports=function mergeConfig(e,t){t=t||{};var n={},i=["url","method","data"],h=["headers","auth","proxy","params"],d=["baseURL","transformRequest","transformResponse","paramsSerializer","timeout","timeoutMessage","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","decompress","maxContentLength","maxBodyLength","maxRedirects","transport","httpAgent","httpsAgent","cancelToken","socketPath","responseEncoding"],g=["validateStatus"];function getMergedValue(e,t){return r.isPlainObject(e)&&r.isPlainObject(t)?r.merge(e,t):r.isPlainObject(t)?r.merge({},t):r.isArray(t)?t.slice():t}function mergeDeepProperties(i){r.isUndefined(t[i])?r.isUndefined(e[i])||(n[i]=getMergedValue(void 0,e[i])):n[i]=getMergedValue(e[i],t[i])}r.forEach(i,(function valueFromConfig2(e){r.isUndefined(t[e])||(n[e]=getMergedValue(void 0,t[e]))})),r.forEach(h,mergeDeepProperties),r.forEach(d,(function defaultToConfig2(i){r.isUndefined(t[i])?r.isUndefined(e[i])||(n[i]=getMergedValue(void 0,e[i])):n[i]=getMergedValue(void 0,t[i])})),r.forEach(g,(function merge(r){r in t?n[r]=getMergedValue(e[r],t[r]):r in e&&(n[r]=getMergedValue(void 0,e[r]))}));var y=i.concat(h).concat(d).concat(g),v=Object.keys(e).concat(Object.keys(t)).filter((function filterAxiosKeys(e){return-1===y.indexOf(e)}));return r.forEach(v,mergeDeepProperties),n}},6232:function(e,t,n){"use strict";var r=n(4773);e.exports=function settle(e,t,n){var i=n.config.validateStatus;n.status&&i&&!i(n.status)?t(r("Request failed with status code "+n.status,n.config,null,n.request,n)):e(n)}},6517:function(e,t,n){"use strict";var r=n(608);e.exports=function transformData(e,t,n){return r.forEach(n,(function transform(n){e=n(e,t)})),e}},8479:function(e,t,n){"use strict";var r=n(608),i=n(9273),h={"Content-Type":"application/x-www-form-urlencoded"};function setContentTypeIfUnset(e,t){!r.isUndefined(e)&&r.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}var d={adapter:function getDefaultAdapter(){var e;return("undefined"!==typeof XMLHttpRequest||"undefined"!==typeof process&&"[object process]"===Object.prototype.toString.call(process))&&(e=n(8992)),e}(),transformRequest:[function transformRequest(e,t){return i(t,"Accept"),i(t,"Content-Type"),r.isFormData(e)||r.isArrayBuffer(e)||r.isBuffer(e)||r.isStream(e)||r.isFile(e)||r.isBlob(e)?e:r.isArrayBufferView(e)?e.buffer:r.isURLSearchParams(e)?(setContentTypeIfUnset(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString()):r.isObject(e)?(setContentTypeIfUnset(t,"application/json;charset=utf-8"),JSON.stringify(e)):e}],transformResponse:[function transformResponse(e){if("string"===typeof e)try{e=JSON.parse(e)}catch(t){}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function validateStatus(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};r.forEach(["delete","get","head"],(function forEachMethodNoData(e){d.headers[e]={}})),r.forEach(["post","put","patch"],(function forEachMethodWithData(e){d.headers[e]=r.merge(h)})),e.exports=d},655:function(e){"use strict";e.exports=function bind(e,t){return function wrap(){for(var n=new Array(arguments.length),r=0;r=0)return;d[t]="set-cookie"===t?(d[t]?d[t]:[]).concat([n]):d[t]?d[t]+", "+n:n}})),d):d}},5869:function(e){"use strict";e.exports=function spread(e){return function wrap(t){return e.apply(null,t)}}},608:function(e,t,n){"use strict";var r=n(655),i=Object.prototype.toString;function isArray(e){return"[object Array]"===i.call(e)}function isUndefined(e){return"undefined"===typeof e}function isObject(e){return null!==e&&"object"===typeof e}function isPlainObject(e){if("[object Object]"!==i.call(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}function isFunction(e){return"[object Function]"===i.call(e)}function forEach(e,t){if(null!==e&&"undefined"!==typeof e)if("object"!==typeof e&&(e=[e]),isArray(e))for(var n=0,r=e.length;n=0&&v>0){if(e===t)return[y,v];for(r=[],h=n.length;b>=0&&!g;)b===y?(r.push(b),y=n.indexOf(e,b+1)):1===r.length?g=[r.pop(),v]:(i=r.pop(),i=0?y:v;r.length&&(g=[h,d])}return g}e.exports=balanced,balanced.range=range},6141:function(e,t,n){var r=n(3413);e.exports=function expandTop(e){if(!e)return[];"{}"===e.substr(0,2)&&(e="\\{\\}"+e.substr(2));return expand(function escapeBraces(e){return e.split("\\\\").join(i).split("\\{").join(h).split("\\}").join(d).split("\\,").join(g).split("\\.").join(y)}(e),!0).map(unescapeBraces)};var i="\0SLASH"+Math.random()+"\0",h="\0OPEN"+Math.random()+"\0",d="\0CLOSE"+Math.random()+"\0",g="\0COMMA"+Math.random()+"\0",y="\0PERIOD"+Math.random()+"\0";function numeric(e){return parseInt(e,10)==e?parseInt(e,10):e.charCodeAt(0)}function unescapeBraces(e){return e.split(i).join("\\").split(h).join("{").split(d).join("}").split(g).join(",").split(y).join(".")}function parseCommaParts(e){if(!e)return[""];var t=[],n=r("{","}",e);if(!n)return e.split(",");var i=n.pre,h=n.body,d=n.post,g=i.split(",");g[g.length-1]+="{"+h+"}";var y=parseCommaParts(d);return d.length&&(g[g.length-1]+=y.shift(),g.push.apply(g,y)),t.push.apply(t,g),t}function embrace(e){return"{"+e+"}"}function isPadded(e){return/^-?0\d/.test(e)}function lte(e,t){return e<=t}function gte(e,t){return e>=t}function expand(e,t){var n=[],i=r("{","}",e);if(!i)return[e];var h=i.pre,g=i.post.length?expand(i.post,!1):[""];if(/\$$/.test(i.pre))for(var y=0;y=0;if(!S&&!k)return i.post.match(/,.*\}/)?expand(e=i.pre+"{"+i.body+d+i.post):[e];if(S)b=i.body.split(/\.\./);else if(1===(b=parseCommaParts(i.body)).length&&1===(b=expand(b[0],!1).map(embrace)).length)return g.map((function(e){return i.pre+b[0]+e}));if(S){var O=numeric(b[0]),C=numeric(b[1]),T=Math.max(b[0].length,b[1].length),x=3==b.length?Math.abs(numeric(b[2])):1,A=lte;C0){var R=new Array(I+1).join("0");N=L<0?"-"+R+N.slice(1):R+N}}_.push(N)}}else{_=[];for(var M=0;M":">",'"':""","'":"'","/":"/","`":"`","=":"="};function escape_string(e){return e.replace(/[&<>"'`=\/]/g,(function(e){return n[e]}))}function parse_caption(e,t){return"undefined"!==typeof e.node.edge_media_to_caption.edges[0]&&"undefined"!==typeof e.node.edge_media_to_caption.edges[0].node&&"undefined"!==typeof e.node.edge_media_to_caption.edges[0].node.text&&null!==e.node.edge_media_to_caption.edges[0].node.text?e.node.edge_media_to_caption.edges[0].node.text:"undefined"!==typeof e.node.title&&null!==e.node.title&&0!=e.node.title.length?e.node.title:"undefined"!==typeof e.node.accessibility_caption&&null!==e.node.accessibility_caption&&0!=e.node.accessibility_caption.length&&e.node.accessibility_caption}function get_cache(e,t){var n=t||!1;if(!t&&e.cache_time>0){var r=localStorage.getItem(e.cache_time_key);null!==r&&parseInt(r)+6e4*e.cache_time>(new Date).getTime()&&(n=!0)}if(n){var i=localStorage.getItem(e.cache_data_key);if(null!==i)return JSON.parse(i)}return!1}function set_cache(e,t){var n=localStorage.getItem(e.cache_time_key);0!=e.cache_time&&(null===n||parseInt(n)+6e4*e.cache_time>(new Date).getTime())&&(localStorage.setItem(e.cache_data_key,JSON.stringify(t)),localStorage.setItem(e.cache_time_key,(new Date).getTime()))}function parse_response(e,t){switch(e){case"username":case"tag":case"location":try{t=t.split("window._sharedData = ")[1].split("<\/script>")[0]}catch(n){return!1}return"undefined"!==typeof(t=(t=JSON.parse(t.substr(0,t.length-1))).entry_data.ProfilePage||t.entry_data.TagPage||t.entry_data.LocationsPage)&&(t[0].graphql.user||t[0].graphql.hashtag||t[0].graphql.location);case"userid":return"undefined"!==typeof t.data.user&&t.data.user}}function request_data(e,t,n,r,i,h){var d;i&&h&&(d="https://images"+~~(3333*Math.random())+"-focus-opensocial.googleusercontent.com/gadgets/proxy?container=none&url="+e);var g=new XMLHttpRequest;g.onload=function(e){4===g.readyState&&200===g.status&&(data=parse_response(t,g.responseText),!1!==data?r(data):r(!1))},g.onerror=function(d){n>1?(console.warn("Instagram Feed: Request failed, "+(n-1)+" tries left. Retrying..."),request_data(e,t,n-1,r,i,!h)):r(!1,d)},g.open("GET",d||e,!0),g.send()}function get_data(t,n){var r=get_cache(t,!1);if(!1!==r)n(r);else{var i;switch(t.type){case"username":i=t.host+t.id+"/";break;case"tag":i=t.host+"explore/tags/"+t.id+"/";break;case"location":i=t.host+"explore/locations/"+t.id+"/";break;case"userid":i=t.host+'graphql/query/?query_id=17888483320059182&variables={"id":"'+t.id+'","first":'+t.items+',"after":null}'}request_data(i,t.type,t.max_tries,(function(e,r){!1!==e?(set_cache(t,e),n(e)):"undefined"===typeof r?t.on_error("Instagram Feed: It looks like the profile you are trying to fetch is age restricted. See https://github.com/jsanahuja/InstagramFeed/issues/26",3):!1!==(e=get_cache(t,!0))?n(e):t.on_error("Instagram Feed: Unable to fetch the given user/tag. Instagram responded with the status code: "+r.status,5)}),t.host===e.host&&"userid"!=t.type,!1)}}function resolveUrl(e,t){return"function"===typeof t?t(e):e}function render(e,n){var r,i="";if(e.styling?(r={profile_container:' style="text-align:center;"',profile_image:' style="border-radius:10em;width:15%;max-width:125px;min-width:50px;"',profile_name:' style="font-size:1.2em;"',profile_biography:' style="font-size:1em;"',gallery_image:' style="width:100%;"',gallery_image_link:' style="width:'+(100-2*e.margin*e.items_per_row)/e.items_per_row+"%; margin:"+e.margin+'%;position:relative; display: inline-block; height: 100%;"'},e.display_captions&&(i+="")):r={profile_container:"",profile_image:"",profile_name:"",profile_biography:"",gallery_image:"",gallery_image_link:""},e.display_profile&&"userid"!==e.type&&(i+='
",i+=''+(","tag"==e.type?i+='

#'+e.tag+"

":"username"==e.type?(i+="

@"+n.full_name+" (@"+e.username+")

",e.display_biography&&(i+="

"+n.biography+"

")):"location"==e.type&&(i+="

"+n.name+"

"),i+="
"),e.display_gallery)if("undefined"!==typeof n.is_private&&!0===n.is_private)i+='

This profile is private

';else{var h="undefined"!==typeof t[e.image_size]?t[e.image_size]:t[640],d=(n.edge_owner_to_timeline_media||n.edge_hashtag_to_media||n.edge_location_to_media).edges,g=d.length>e.items?e.items:d.length;i+=""}if(e.display_igtv&&"undefined"!==typeof n.edge_felix_video_timeline){var w=n.edge_felix_video_timeline.edges;if(g=w.length>e.items?e.items:w.length,w.length>0){for(i+='
',y=0;y",i+="",i+=""}i+="
"}}e.container.innerHTML=i}return"function"!=typeof Object.assign&&(Object.assign=function(e){"use strict";if(null==e)throw new TypeError("Cannot convert undefined or null to object");e=Object(e);for(var t=1;t120){for(var w=Math.floor(y/80),E=y%80,S=[],k=0;k<_.length;k+=80)S.push(_.slice(k,k+80));return v+printPrefixedLines([["".concat(d),S[0]]].concat(S.slice(1,w+1).map((function(e){return["",e]})),[[" ",whitespace(E-1)+"^"],["",S[w+1]]]))}return v+printPrefixedLines([["".concat(d-1),b[i-1]],["".concat(d),_],["",whitespace(y-1)+"^"],["".concat(d+1),b[i+1]]])}function printPrefixedLines(e){var t=e.filter((function(e){e[0];return void 0!==e[1]})),n=Math.max.apply(Math,t.map((function(e){return e[0].length})));return t.map((function(e){var t=e[0],r=e[1];return function leftPad(e,t){return whitespace(e-t.length)+t}(n,t)+(r?" | "+r:" |")})).join("\n")}function whitespace(e){return Array(e+1).join(" ")}function GraphQLError_typeof(e){return(GraphQLError_typeof="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function _typeof(e){return typeof e}:function _typeof(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function _defineProperties(e,t){for(var n=0;n",EOF:"",BANG:"!",DOLLAR:"$",AMP:"&",PAREN_L:"(",PAREN_R:")",SPREAD:"...",COLON:":",EQUALS:"=",AT:"@",BRACKET_L:"[",BRACKET_R:"]",BRACE_L:"{",PIPE:"|",BRACE_R:"}",NAME:"Name",INT:"Int",FLOAT:"Float",STRING:"String",BLOCK_STRING:"BlockString",COMMENT:"Comment"}),v=n(6430);function devAssert(e,t){if(!Boolean(e))throw new Error(t)}var b=function instanceOf(e,t){return e instanceof t};function source_defineProperties(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:"GraphQL request",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{line:1,column:1};"string"===typeof e||devAssert(0,"Body must be a string. Received: ".concat((0,v.Z)(e),".")),this.body=e,this.name=t,this.locationOffset=n,this.locationOffset.line>0||devAssert(0,"line in locationOffset is 1-indexed and must be positive."),this.locationOffset.column>0||devAssert(0,"column in locationOffset is 1-indexed and must be positive.")}return function source_createClass(e,t,n){return t&&source_defineProperties(e.prototype,t),n&&source_defineProperties(e,n),e}(Source,[{key:i,get:function get(){return"Source"}}]),Source}();var w=Object.freeze({QUERY:"QUERY",MUTATION:"MUTATION",SUBSCRIPTION:"SUBSCRIPTION",FIELD:"FIELD",FRAGMENT_DEFINITION:"FRAGMENT_DEFINITION",FRAGMENT_SPREAD:"FRAGMENT_SPREAD",INLINE_FRAGMENT:"INLINE_FRAGMENT",VARIABLE_DEFINITION:"VARIABLE_DEFINITION",SCHEMA:"SCHEMA",SCALAR:"SCALAR",OBJECT:"OBJECT",FIELD_DEFINITION:"FIELD_DEFINITION",ARGUMENT_DEFINITION:"ARGUMENT_DEFINITION",INTERFACE:"INTERFACE",UNION:"UNION",ENUM:"ENUM",ENUM_VALUE:"ENUM_VALUE",INPUT_OBJECT:"INPUT_OBJECT",INPUT_FIELD_DEFINITION:"INPUT_FIELD_DEFINITION"}),E=n(2464),S=function(){function Lexer(e){var t=new g.WU(y.SOF,0,0,0,0,null);this.source=e,this.lastToken=t,this.token=t,this.line=1,this.lineStart=0}var e=Lexer.prototype;return e.advance=function advance(){return this.lastToken=this.token,this.token=this.lookahead()},e.lookahead=function lookahead(){var e=this.token;if(e.kind!==y.EOF)do{var t;e=null!==(t=e.next)&&void 0!==t?t:e.next=readToken(this,e)}while(e.kind===y.COMMENT);return e},Lexer}();function printCharCode(e){return isNaN(e)?y.EOF:e<127?JSON.stringify(String.fromCharCode(e)):'"\\u'.concat(("00"+e.toString(16).toUpperCase()).slice(-4),'"')}function readToken(e,t){for(var n=e.source,r=n.body,i=r.length,h=t.end;h31||9===h));return new g.WU(y.COMMENT,t,v,n,r,i,d.slice(t+1,v))}function readNumber(e,t,n,r,i,h){var d=e.body,v=n,b=t,_=!1;if(45===v&&(v=d.charCodeAt(++b)),48===v){if((v=d.charCodeAt(++b))>=48&&v<=57)throw syntaxError(e,b,"Invalid number, unexpected digit after 0: ".concat(printCharCode(v),"."))}else b=readDigits(e,b,v),v=d.charCodeAt(b);if(46===v&&(_=!0,v=d.charCodeAt(++b),b=readDigits(e,b,v),v=d.charCodeAt(b)),69!==v&&101!==v||(_=!0,43!==(v=d.charCodeAt(++b))&&45!==v||(v=d.charCodeAt(++b)),b=readDigits(e,b,v),v=d.charCodeAt(b)),46===v||function isNameStart(e){return 95===e||e>=65&&e<=90||e>=97&&e<=122}(v))throw syntaxError(e,b,"Invalid number, expected digit but got: ".concat(printCharCode(v),"."));return new g.WU(_?y.FLOAT:y.INT,t,b,r,i,h,d.slice(t,b))}function readDigits(e,t,n){var r=e.body,i=t,h=n;if(h>=48&&h<=57){do{h=r.charCodeAt(++i)}while(h>=48&&h<=57);return i}throw syntaxError(e,i,"Invalid number, expected digit but got: ".concat(printCharCode(h),"."))}function readString(e,t,n,r,i){for(var h,d,v,b,_=e.body,w=t+1,E=w,S=0,k="";w<_.length&&!isNaN(S=_.charCodeAt(w))&&10!==S&&13!==S;){if(34===S)return k+=_.slice(E,w),new g.WU(y.STRING,t,w+1,n,r,i,k);if(S<32&&9!==S)throw syntaxError(e,w,"Invalid character within String: ".concat(printCharCode(S),"."));if(++w,92===S){switch(k+=_.slice(E,w-1),S=_.charCodeAt(w)){case 34:k+='"';break;case 47:k+="/";break;case 92:k+="\\";break;case 98:k+="\b";break;case 102:k+="\f";break;case 110:k+="\n";break;case 114:k+="\r";break;case 116:k+="\t";break;case 117:var O=(h=_.charCodeAt(w+1),d=_.charCodeAt(w+2),v=_.charCodeAt(w+3),b=_.charCodeAt(w+4),char2hex(h)<<12|char2hex(d)<<8|char2hex(v)<<4|char2hex(b));if(O<0){var C=_.slice(w+1,w+5);throw syntaxError(e,w,"Invalid character escape sequence: \\u".concat(C,"."))}k+=String.fromCharCode(O),w+=4;break;default:throw syntaxError(e,w,"Invalid character escape sequence: \\".concat(String.fromCharCode(S),"."))}E=++w}}throw syntaxError(e,w,"Unterminated string.")}function readBlockString(e,t,n,r,i,h){for(var d=e.body,v=t+3,b=v,_=0,w="";v=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:-1}function readName(e,t,n,r,i){for(var h=e.body,d=h.length,v=t+1,b=0;v!==d&&!isNaN(b=h.charCodeAt(v))&&(95===b||b>=48&&b<=57||b>=65&&b<=90||b>=97&&b<=122);)++v;return new g.WU(y.NAME,t,v,n,r,i,h.slice(t,v))}var k=function(){function Parser(e,t){var n=function isSource(e){return b(e,_)}(e)?e:new _(e);this._lexer=new S(n),this._options=t}var e=Parser.prototype;return e.parseName=function parseName(){var e=this.expectToken(y.NAME);return{kind:d.NAME,value:e.value,loc:this.loc(e)}},e.parseDocument=function parseDocument(){var e=this._lexer.token;return{kind:d.DOCUMENT,definitions:this.many(y.SOF,this.parseDefinition,y.EOF),loc:this.loc(e)}},e.parseDefinition=function parseDefinition(){if(this.peek(y.NAME))switch(this._lexer.token.value){case"query":case"mutation":case"subscription":return this.parseOperationDefinition();case"fragment":return this.parseFragmentDefinition();case"schema":case"scalar":case"type":case"interface":case"union":case"enum":case"input":case"directive":return this.parseTypeSystemDefinition();case"extend":return this.parseTypeSystemExtension()}else{if(this.peek(y.BRACE_L))return this.parseOperationDefinition();if(this.peekDescription())return this.parseTypeSystemDefinition()}throw this.unexpected()},e.parseOperationDefinition=function parseOperationDefinition(){var e=this._lexer.token;if(this.peek(y.BRACE_L))return{kind:d.OPERATION_DEFINITION,operation:"query",name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet(),loc:this.loc(e)};var t,n=this.parseOperationType();return this.peek(y.NAME)&&(t=this.parseName()),{kind:d.OPERATION_DEFINITION,operation:n,name:t,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(e)}},e.parseOperationType=function parseOperationType(){var e=this.expectToken(y.NAME);switch(e.value){case"query":return"query";case"mutation":return"mutation";case"subscription":return"subscription"}throw this.unexpected(e)},e.parseVariableDefinitions=function parseVariableDefinitions(){return this.optionalMany(y.PAREN_L,this.parseVariableDefinition,y.PAREN_R)},e.parseVariableDefinition=function parseVariableDefinition(){var e=this._lexer.token;return{kind:d.VARIABLE_DEFINITION,variable:this.parseVariable(),type:(this.expectToken(y.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(y.EQUALS)?this.parseValueLiteral(!0):void 0,directives:this.parseDirectives(!0),loc:this.loc(e)}},e.parseVariable=function parseVariable(){var e=this._lexer.token;return this.expectToken(y.DOLLAR),{kind:d.VARIABLE,name:this.parseName(),loc:this.loc(e)}},e.parseSelectionSet=function parseSelectionSet(){var e=this._lexer.token;return{kind:d.SELECTION_SET,selections:this.many(y.BRACE_L,this.parseSelection,y.BRACE_R),loc:this.loc(e)}},e.parseSelection=function parseSelection(){return this.peek(y.SPREAD)?this.parseFragment():this.parseField()},e.parseField=function parseField(){var e,t,n=this._lexer.token,r=this.parseName();return this.expectOptionalToken(y.COLON)?(e=r,t=this.parseName()):t=r,{kind:d.FIELD,alias:e,name:t,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(y.BRACE_L)?this.parseSelectionSet():void 0,loc:this.loc(n)}},e.parseArguments=function parseArguments(e){var t=e?this.parseConstArgument:this.parseArgument;return this.optionalMany(y.PAREN_L,t,y.PAREN_R)},e.parseArgument=function parseArgument(){var e=this._lexer.token,t=this.parseName();return this.expectToken(y.COLON),{kind:d.ARGUMENT,name:t,value:this.parseValueLiteral(!1),loc:this.loc(e)}},e.parseConstArgument=function parseConstArgument(){var e=this._lexer.token;return{kind:d.ARGUMENT,name:this.parseName(),value:(this.expectToken(y.COLON),this.parseValueLiteral(!0)),loc:this.loc(e)}},e.parseFragment=function parseFragment(){var e=this._lexer.token;this.expectToken(y.SPREAD);var t=this.expectOptionalKeyword("on");return!t&&this.peek(y.NAME)?{kind:d.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1),loc:this.loc(e)}:{kind:d.INLINE_FRAGMENT,typeCondition:t?this.parseNamedType():void 0,directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(e)}},e.parseFragmentDefinition=function parseFragmentDefinition(){var e,t=this._lexer.token;return this.expectKeyword("fragment"),!0===(null===(e=this._options)||void 0===e?void 0:e.experimentalFragmentVariables)?{kind:d.FRAGMENT_DEFINITION,name:this.parseFragmentName(),variableDefinitions:this.parseVariableDefinitions(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(t)}:{kind:d.FRAGMENT_DEFINITION,name:this.parseFragmentName(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(t)}},e.parseFragmentName=function parseFragmentName(){if("on"===this._lexer.token.value)throw this.unexpected();return this.parseName()},e.parseValueLiteral=function parseValueLiteral(e){var t=this._lexer.token;switch(t.kind){case y.BRACKET_L:return this.parseList(e);case y.BRACE_L:return this.parseObject(e);case y.INT:return this._lexer.advance(),{kind:d.INT,value:t.value,loc:this.loc(t)};case y.FLOAT:return this._lexer.advance(),{kind:d.FLOAT,value:t.value,loc:this.loc(t)};case y.STRING:case y.BLOCK_STRING:return this.parseStringLiteral();case y.NAME:switch(this._lexer.advance(),t.value){case"true":return{kind:d.BOOLEAN,value:!0,loc:this.loc(t)};case"false":return{kind:d.BOOLEAN,value:!1,loc:this.loc(t)};case"null":return{kind:d.NULL,loc:this.loc(t)};default:return{kind:d.ENUM,value:t.value,loc:this.loc(t)}}case y.DOLLAR:if(!e)return this.parseVariable()}throw this.unexpected()},e.parseStringLiteral=function parseStringLiteral(){var e=this._lexer.token;return this._lexer.advance(),{kind:d.STRING,value:e.value,block:e.kind===y.BLOCK_STRING,loc:this.loc(e)}},e.parseList=function parseList(e){var t=this,n=this._lexer.token;return{kind:d.LIST,values:this.any(y.BRACKET_L,(function item(){return t.parseValueLiteral(e)}),y.BRACKET_R),loc:this.loc(n)}},e.parseObject=function parseObject(e){var t=this,n=this._lexer.token;return{kind:d.OBJECT,fields:this.any(y.BRACE_L,(function item(){return t.parseObjectField(e)}),y.BRACE_R),loc:this.loc(n)}},e.parseObjectField=function parseObjectField(e){var t=this._lexer.token,n=this.parseName();return this.expectToken(y.COLON),{kind:d.OBJECT_FIELD,name:n,value:this.parseValueLiteral(e),loc:this.loc(t)}},e.parseDirectives=function parseDirectives(e){for(var t=[];this.peek(y.AT);)t.push(this.parseDirective(e));return t},e.parseDirective=function parseDirective(e){var t=this._lexer.token;return this.expectToken(y.AT),{kind:d.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(e),loc:this.loc(t)}},e.parseTypeReference=function parseTypeReference(){var e,t=this._lexer.token;return this.expectOptionalToken(y.BRACKET_L)?(e=this.parseTypeReference(),this.expectToken(y.BRACKET_R),e={kind:d.LIST_TYPE,type:e,loc:this.loc(t)}):e=this.parseNamedType(),this.expectOptionalToken(y.BANG)?{kind:d.NON_NULL_TYPE,type:e,loc:this.loc(t)}:e},e.parseNamedType=function parseNamedType(){var e=this._lexer.token;return{kind:d.NAMED_TYPE,name:this.parseName(),loc:this.loc(e)}},e.parseTypeSystemDefinition=function parseTypeSystemDefinition(){var e=this.peekDescription()?this._lexer.lookahead():this._lexer.token;if(e.kind===y.NAME)switch(e.value){case"schema":return this.parseSchemaDefinition();case"scalar":return this.parseScalarTypeDefinition();case"type":return this.parseObjectTypeDefinition();case"interface":return this.parseInterfaceTypeDefinition();case"union":return this.parseUnionTypeDefinition();case"enum":return this.parseEnumTypeDefinition();case"input":return this.parseInputObjectTypeDefinition();case"directive":return this.parseDirectiveDefinition()}throw this.unexpected(e)},e.peekDescription=function peekDescription(){return this.peek(y.STRING)||this.peek(y.BLOCK_STRING)},e.parseDescription=function parseDescription(){if(this.peekDescription())return this.parseStringLiteral()},e.parseSchemaDefinition=function parseSchemaDefinition(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("schema");var n=this.parseDirectives(!0),r=this.many(y.BRACE_L,this.parseOperationTypeDefinition,y.BRACE_R);return{kind:d.SCHEMA_DEFINITION,description:t,directives:n,operationTypes:r,loc:this.loc(e)}},e.parseOperationTypeDefinition=function parseOperationTypeDefinition(){var e=this._lexer.token,t=this.parseOperationType();this.expectToken(y.COLON);var n=this.parseNamedType();return{kind:d.OPERATION_TYPE_DEFINITION,operation:t,type:n,loc:this.loc(e)}},e.parseScalarTypeDefinition=function parseScalarTypeDefinition(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("scalar");var n=this.parseName(),r=this.parseDirectives(!0);return{kind:d.SCALAR_TYPE_DEFINITION,description:t,name:n,directives:r,loc:this.loc(e)}},e.parseObjectTypeDefinition=function parseObjectTypeDefinition(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("type");var n=this.parseName(),r=this.parseImplementsInterfaces(),i=this.parseDirectives(!0),h=this.parseFieldsDefinition();return{kind:d.OBJECT_TYPE_DEFINITION,description:t,name:n,interfaces:r,directives:i,fields:h,loc:this.loc(e)}},e.parseImplementsInterfaces=function parseImplementsInterfaces(){var e;if(!this.expectOptionalKeyword("implements"))return[];if(!0===(null===(e=this._options)||void 0===e?void 0:e.allowLegacySDLImplementsInterfaces)){var t=[];this.expectOptionalToken(y.AMP);do{t.push(this.parseNamedType())}while(this.expectOptionalToken(y.AMP)||this.peek(y.NAME));return t}return this.delimitedMany(y.AMP,this.parseNamedType)},e.parseFieldsDefinition=function parseFieldsDefinition(){var e;return!0===(null===(e=this._options)||void 0===e?void 0:e.allowLegacySDLEmptyFields)&&this.peek(y.BRACE_L)&&this._lexer.lookahead().kind===y.BRACE_R?(this._lexer.advance(),this._lexer.advance(),[]):this.optionalMany(y.BRACE_L,this.parseFieldDefinition,y.BRACE_R)},e.parseFieldDefinition=function parseFieldDefinition(){var e=this._lexer.token,t=this.parseDescription(),n=this.parseName(),r=this.parseArgumentDefs();this.expectToken(y.COLON);var i=this.parseTypeReference(),h=this.parseDirectives(!0);return{kind:d.FIELD_DEFINITION,description:t,name:n,arguments:r,type:i,directives:h,loc:this.loc(e)}},e.parseArgumentDefs=function parseArgumentDefs(){return this.optionalMany(y.PAREN_L,this.parseInputValueDef,y.PAREN_R)},e.parseInputValueDef=function parseInputValueDef(){var e=this._lexer.token,t=this.parseDescription(),n=this.parseName();this.expectToken(y.COLON);var r,i=this.parseTypeReference();this.expectOptionalToken(y.EQUALS)&&(r=this.parseValueLiteral(!0));var h=this.parseDirectives(!0);return{kind:d.INPUT_VALUE_DEFINITION,description:t,name:n,type:i,defaultValue:r,directives:h,loc:this.loc(e)}},e.parseInterfaceTypeDefinition=function parseInterfaceTypeDefinition(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("interface");var n=this.parseName(),r=this.parseImplementsInterfaces(),i=this.parseDirectives(!0),h=this.parseFieldsDefinition();return{kind:d.INTERFACE_TYPE_DEFINITION,description:t,name:n,interfaces:r,directives:i,fields:h,loc:this.loc(e)}},e.parseUnionTypeDefinition=function parseUnionTypeDefinition(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("union");var n=this.parseName(),r=this.parseDirectives(!0),i=this.parseUnionMemberTypes();return{kind:d.UNION_TYPE_DEFINITION,description:t,name:n,directives:r,types:i,loc:this.loc(e)}},e.parseUnionMemberTypes=function parseUnionMemberTypes(){return this.expectOptionalToken(y.EQUALS)?this.delimitedMany(y.PIPE,this.parseNamedType):[]},e.parseEnumTypeDefinition=function parseEnumTypeDefinition(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("enum");var n=this.parseName(),r=this.parseDirectives(!0),i=this.parseEnumValuesDefinition();return{kind:d.ENUM_TYPE_DEFINITION,description:t,name:n,directives:r,values:i,loc:this.loc(e)}},e.parseEnumValuesDefinition=function parseEnumValuesDefinition(){return this.optionalMany(y.BRACE_L,this.parseEnumValueDefinition,y.BRACE_R)},e.parseEnumValueDefinition=function parseEnumValueDefinition(){var e=this._lexer.token,t=this.parseDescription(),n=this.parseName(),r=this.parseDirectives(!0);return{kind:d.ENUM_VALUE_DEFINITION,description:t,name:n,directives:r,loc:this.loc(e)}},e.parseInputObjectTypeDefinition=function parseInputObjectTypeDefinition(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("input");var n=this.parseName(),r=this.parseDirectives(!0),i=this.parseInputFieldsDefinition();return{kind:d.INPUT_OBJECT_TYPE_DEFINITION,description:t,name:n,directives:r,fields:i,loc:this.loc(e)}},e.parseInputFieldsDefinition=function parseInputFieldsDefinition(){return this.optionalMany(y.BRACE_L,this.parseInputValueDef,y.BRACE_R)},e.parseTypeSystemExtension=function parseTypeSystemExtension(){var e=this._lexer.lookahead();if(e.kind===y.NAME)switch(e.value){case"schema":return this.parseSchemaExtension();case"scalar":return this.parseScalarTypeExtension();case"type":return this.parseObjectTypeExtension();case"interface":return this.parseInterfaceTypeExtension();case"union":return this.parseUnionTypeExtension();case"enum":return this.parseEnumTypeExtension();case"input":return this.parseInputObjectTypeExtension()}throw this.unexpected(e)},e.parseSchemaExtension=function parseSchemaExtension(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("schema");var t=this.parseDirectives(!0),n=this.optionalMany(y.BRACE_L,this.parseOperationTypeDefinition,y.BRACE_R);if(0===t.length&&0===n.length)throw this.unexpected();return{kind:d.SCHEMA_EXTENSION,directives:t,operationTypes:n,loc:this.loc(e)}},e.parseScalarTypeExtension=function parseScalarTypeExtension(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("scalar");var t=this.parseName(),n=this.parseDirectives(!0);if(0===n.length)throw this.unexpected();return{kind:d.SCALAR_TYPE_EXTENSION,name:t,directives:n,loc:this.loc(e)}},e.parseObjectTypeExtension=function parseObjectTypeExtension(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("type");var t=this.parseName(),n=this.parseImplementsInterfaces(),r=this.parseDirectives(!0),i=this.parseFieldsDefinition();if(0===n.length&&0===r.length&&0===i.length)throw this.unexpected();return{kind:d.OBJECT_TYPE_EXTENSION,name:t,interfaces:n,directives:r,fields:i,loc:this.loc(e)}},e.parseInterfaceTypeExtension=function parseInterfaceTypeExtension(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("interface");var t=this.parseName(),n=this.parseImplementsInterfaces(),r=this.parseDirectives(!0),i=this.parseFieldsDefinition();if(0===n.length&&0===r.length&&0===i.length)throw this.unexpected();return{kind:d.INTERFACE_TYPE_EXTENSION,name:t,interfaces:n,directives:r,fields:i,loc:this.loc(e)}},e.parseUnionTypeExtension=function parseUnionTypeExtension(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("union");var t=this.parseName(),n=this.parseDirectives(!0),r=this.parseUnionMemberTypes();if(0===n.length&&0===r.length)throw this.unexpected();return{kind:d.UNION_TYPE_EXTENSION,name:t,directives:n,types:r,loc:this.loc(e)}},e.parseEnumTypeExtension=function parseEnumTypeExtension(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("enum");var t=this.parseName(),n=this.parseDirectives(!0),r=this.parseEnumValuesDefinition();if(0===n.length&&0===r.length)throw this.unexpected();return{kind:d.ENUM_TYPE_EXTENSION,name:t,directives:n,values:r,loc:this.loc(e)}},e.parseInputObjectTypeExtension=function parseInputObjectTypeExtension(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("input");var t=this.parseName(),n=this.parseDirectives(!0),r=this.parseInputFieldsDefinition();if(0===n.length&&0===r.length)throw this.unexpected();return{kind:d.INPUT_OBJECT_TYPE_EXTENSION,name:t,directives:n,fields:r,loc:this.loc(e)}},e.parseDirectiveDefinition=function parseDirectiveDefinition(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("directive"),this.expectToken(y.AT);var n=this.parseName(),r=this.parseArgumentDefs(),i=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");var h=this.parseDirectiveLocations();return{kind:d.DIRECTIVE_DEFINITION,description:t,name:n,arguments:r,repeatable:i,locations:h,loc:this.loc(e)}},e.parseDirectiveLocations=function parseDirectiveLocations(){return this.delimitedMany(y.PIPE,this.parseDirectiveLocation)},e.parseDirectiveLocation=function parseDirectiveLocation(){var e=this._lexer.token,t=this.parseName();if(void 0!==w[t.value])return t;throw this.unexpected(e)},e.loc=function loc(e){var t;if(!0!==(null===(t=this._options)||void 0===t?void 0:t.noLocation))return new g.Ye(e,this._lexer.lastToken,this._lexer.source)},e.peek=function peek(e){return this._lexer.token.kind===e},e.expectToken=function expectToken(e){var t=this._lexer.token;if(t.kind===e)return this._lexer.advance(),t;throw syntaxError(this._lexer.source,t.start,"Expected ".concat(getTokenKindDesc(e),", found ").concat(getTokenDesc(t),"."))},e.expectOptionalToken=function expectOptionalToken(e){var t=this._lexer.token;if(t.kind===e)return this._lexer.advance(),t},e.expectKeyword=function expectKeyword(e){var t=this._lexer.token;if(t.kind!==y.NAME||t.value!==e)throw syntaxError(this._lexer.source,t.start,'Expected "'.concat(e,'", found ').concat(getTokenDesc(t),"."));this._lexer.advance()},e.expectOptionalKeyword=function expectOptionalKeyword(e){var t=this._lexer.token;return t.kind===y.NAME&&t.value===e&&(this._lexer.advance(),!0)},e.unexpected=function unexpected(e){var t=null!==e&&void 0!==e?e:this._lexer.token;return syntaxError(this._lexer.source,t.start,"Unexpected ".concat(getTokenDesc(t),"."))},e.any=function any(e,t,n){this.expectToken(e);for(var r=[];!this.expectOptionalToken(n);)r.push(t.call(this));return r},e.optionalMany=function optionalMany(e,t,n){if(this.expectOptionalToken(e)){var r=[];do{r.push(t.call(this))}while(!this.expectOptionalToken(n));return r}return[]},e.many=function many(e,t,n){this.expectToken(e);var r=[];do{r.push(t.call(this))}while(!this.expectOptionalToken(n));return r},e.delimitedMany=function delimitedMany(e,t){this.expectOptionalToken(e);var n=[];do{n.push(t.call(this))}while(this.expectOptionalToken(e));return n},Parser}();function getTokenDesc(e){var t=e.value;return getTokenKindDesc(e.kind)+(null!=t?' "'.concat(t,'"'):"")}function getTokenKindDesc(e){return function isPunctuatorTokenKind(e){return e===y.BANG||e===y.DOLLAR||e===y.AMP||e===y.PAREN_L||e===y.PAREN_R||e===y.SPREAD||e===y.COLON||e===y.EQUALS||e===y.AT||e===y.BRACKET_L||e===y.BRACKET_R||e===y.BRACE_L||e===y.PIPE||e===y.BRACE_R}(e)?'"'.concat(e,'"'):e}var O=new Map,C=new Map,T=!0,x=!1;function normalize(e){return e.replace(/[\s,]+/g," ").trim()}function processFragments(e){var t=new Set,n=[];return e.definitions.forEach((function(e){if("FragmentDefinition"===e.kind){var r=e.name.value,i=function cacheKeyFromLoc(e){return normalize(e.source.body.substring(e.start,e.end))}(e.loc),h=C.get(r);h&&!h.has(i)?T&&console.warn("Warning: fragment with name "+r+" 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"):h||C.set(r,h=new Set),h.add(i),t.has(i)||(t.add(i),n.push(e))}else n.push(e)})),(0,r.pi)((0,r.pi)({},e),{definitions:n})}function parseDocument(e){var t=normalize(e);if(!O.has(t)){var n=function parse(e,t){return new k(e,t).parseDocument()}(e,{experimentalFragmentVariables:x});if(!n||"Document"!==n.kind)throw new Error("Not a valid GraphQL document.");O.set(t,function stripLoc(e){var t=new Set(e.definitions);t.forEach((function(e){e.loc&&delete e.loc,Object.keys(e).forEach((function(n){var r=e[n];r&&"object"===typeof r&&t.add(r)}))}));var n=e.loc;return n&&(delete n.startToken,delete n.endToken),e}(processFragments(n)))}return O.get(t)}function gql(e){for(var t=[],n=1;ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n-1&&i.splice(g,1)}if(0!==i.length)return!1}return!0}},{key:"_checkSubCombo",value:function _checkSubCombo(e,t,n){e=e.slice(0),n=n.slice(t);for(var r=t,i=0;i-1&&(e.splice(i,1),i-=1,g>r&&(r=g),0===e.length))return r}return-1}}]),KeyCombo}();e.comboDeliminator=">",e.keyDeliminator="+",e.parseComboStr=function(t){for(var n=e._splitStr(t,e.comboDeliminator),r=[],i=0;i0&&n[d]===r&&"\\"!==n[d-1]&&(h.push(i.trim()),i="",d+=1),i+=n[d];return i&&h.push(i.trim()),h};var t=function(){function Locale(e){_classCallCheck(this,Locale),this.localeName=e,this.activeTargetKeys=[],this.pressedKeys=[],this._appliedMacros=[],this._keyMap={},this._killKeyCodes=[],this._macros=[]}return _createClass(Locale,[{key:"bindKeyCode",value:function bindKeyCode(e,t){"string"===typeof t&&(t=[t]),this._keyMap[e]=t}},{key:"bindMacro",value:function bindMacro(t,n){"string"===typeof n&&(n=[n]);var r=null;"function"===typeof n&&(r=n,n=null);var i={keyCombo:new e(t),keyNames:n,handler:r};this._macros.push(i)}},{key:"getKeyCodes",value:function getKeyCodes(e){var t=[];for(var n in this._keyMap)this._keyMap[n].indexOf(e)>-1&&t.push(0|n);return t}},{key:"getKeyNames",value:function getKeyNames(e){return this._keyMap[e]||[]}},{key:"setKillKey",value:function setKillKey(e){if("string"!==typeof e)this._killKeyCodes.push(e);else for(var t=this.getKeyCodes(e),n=0;n-1&&this.pressedKeys.splice(h,1)}this.activeTargetKeys.length=0,this._clearMacros()}}},{key:"_applyMacros",value:function _applyMacros(){for(var e=this._macros.slice(0),t=0;t-1&&this.pressedKeys.splice(r,1)}t.handler&&(t.keyNames=null),this._appliedMacros.splice(e,1),e-=1}}}}]),Locale}(),r=function(){function Keyboard(e,t,n,r){_classCallCheck(this,Keyboard),this._locale=null,this._currentContext="",this._contexts={},this._listeners=[],this._appliedListeners=[],this._locales={},this._targetElement=null,this._targetWindow=null,this._targetPlatform="",this._targetUserAgent="",this._isModernBrowser=!1,this._targetKeyDownBinding=null,this._targetKeyUpBinding=null,this._targetResetBinding=null,this._paused=!1,this._contexts.global={listeners:this._listeners,targetWindow:e,targetElement:t,targetPlatform:n,targetUserAgent:r},this.setContext("global")}return _createClass(Keyboard,[{key:"setLocale",value:function setLocale(e,n){var r=null;return"string"===typeof e?n?n(r=new t(e),this._targetPlatform,this._targetUserAgent):r=this._locales[e]||null:e=(r=e)._localeName,this._locale=r,this._locales[e]=r,r&&(this._locale.pressedKeys=r.pressedKeys),this}},{key:"getLocale",value:function getLocale(e){return e||(e=this._locale.localeName),this._locales[e]||null}},{key:"bind",value:function bind(t,n,r,i){if(null!==t&&"function"!==typeof t||(i=r,r=n,n=t,t=null),t&&"object"===_typeof(t)&&"number"===typeof t.length){for(var h=0;h"]),e.bindMacro("shift + /",["questionmark","?"]),t.match("Mac")?e.bindMacro("command",["mod","modifier"]):e.bindMacro("ctrl",["mod","modifier"]);for(var r=65;r<=90;r+=1){var i=String.fromCharCode(r+32),h=String.fromCharCode(r);e.bindKeyCode(r,i),e.bindMacro("shift + "+i,h),e.bindMacro("capslock + "+i,h)}var d,g,y=n.match("Firefox")?59:186,v=n.match("Firefox")?173:189,b=n.match("Firefox")?61:187;t.match("Mac")&&(n.match("Safari")||n.match("Chrome"))?(d=91,g=93):t.match("Mac")&&n.match("Opera")?(d=17,g=17):t.match("Mac")&&n.match("Firefox")&&(d=224,g=224),e.bindKeyCode(y,["semicolon",";"]),e.bindKeyCode(v,["dash","-"]),e.bindKeyCode(b,["equal","equalsign","="]),e.bindKeyCode(d,["command","windows","win","super","leftcommand","leftwindows","leftwin","leftsuper"]),e.bindKeyCode(g,["command","windows","win","super","rightcommand","rightwindows","rightwin","rightsuper"]),e.setKillKey("command")}var i=new r;return i.setLocale("us",us),i.Keyboard=r,i.Locale=t,i.KeyCombo=e,i}()},3131:function(e,t,n){e.exports=minimatch,minimatch.Minimatch=Minimatch;var r={sep:"/"};try{r=n(2061)}catch(w){}var i=minimatch.GLOBSTAR=Minimatch.GLOBSTAR={},h=n(6141),d={"!":{open:"(?:(?!(?:",close:"))[^/]*?)"},"?":{open:"(?:",close:")?"},"+":{open:"(?:",close:")+"},"*":{open:"(?:",close:")*"},"@":{open:"(?:",close:")"}},g="[^/]",y="[^/]*?",v=function charSet(e){return e.split("").reduce((function(e,t){return e[t]=!0,e}),{})}("().*{}+?[]^$\\!");var b=/\/+/;function ext(e,t){e=e||{},t=t||{};var n={};return Object.keys(t).forEach((function(e){n[e]=t[e]})),Object.keys(e).forEach((function(t){n[t]=e[t]})),n}function minimatch(e,t,n){if("string"!==typeof t)throw new TypeError("glob pattern string required");return n||(n={}),!(!n.nocomment&&"#"===t.charAt(0))&&(""===t.trim()?""===e:new Minimatch(t,n).match(e))}function Minimatch(e,t){if(!(this instanceof Minimatch))return new Minimatch(e,t);if("string"!==typeof e)throw new TypeError("glob pattern string required");t||(t={}),e=e.trim(),"/"!==r.sep&&(e=e.split(r.sep).join("/")),this.options=t,this.set=[],this.pattern=e,this.regexp=null,this.negate=!1,this.comment=!1,this.empty=!1,this.make()}function braceExpand(e,t){if(t||(t=this instanceof Minimatch?this.options:{}),"undefined"===typeof(e="undefined"===typeof e?this.pattern:e))throw new TypeError("undefined pattern");return t.nobrace||!e.match(/\{.*\}/)?[e]:h(e)}minimatch.filter=function filter(e,t){return t=t||{},function(n,r,i){return minimatch(n,e,t)}},minimatch.defaults=function(e){if(!e||!Object.keys(e).length)return minimatch;var t=minimatch,n=function minimatch(n,r,i){return t.minimatch(n,r,ext(e,i))};return n.Minimatch=function Minimatch(n,r){return new t.Minimatch(n,ext(e,r))},n},Minimatch.defaults=function(e){return e&&Object.keys(e).length?minimatch.defaults(e).Minimatch:Minimatch},Minimatch.prototype.debug=function(){},Minimatch.prototype.make=function make(){if(this._made)return;var e=this.pattern,t=this.options;if(!t.nocomment&&"#"===e.charAt(0))return void(this.comment=!0);if(!e)return void(this.empty=!0);this.parseNegate();var n=this.globSet=this.braceExpand();t.debug&&(this.debug=console.error);this.debug(this.pattern,n),n=this.globParts=n.map((function(e){return e.split(b)})),this.debug(this.pattern,n),n=n.map((function(e,t,n){return e.map(this.parse,this)}),this),this.debug(this.pattern,n),n=n.filter((function(e){return-1===e.indexOf(!1)})),this.debug(this.pattern,n),this.set=n},Minimatch.prototype.parseNegate=function parseNegate(){var e=this.pattern,t=!1,n=this.options,r=0;if(n.nonegate)return;for(var i=0,h=e.length;i65536)throw new TypeError("pattern is too long");var n=this.options;if(!n.noglobstar&&"**"===e)return i;if(""===e)return"";var r,h="",b=!!n.nocase,E=!1,S=[],k=[],O=!1,C=-1,T=-1,x="."===e.charAt(0)?"":n.dot?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)",A=this;function clearStateChar(){if(r){switch(r){case"*":h+=y,b=!0;break;case"?":h+=g,b=!0;break;default:h+="\\"+r}A.debug("clearStateChar %j %j",r,h),r=!1}}for(var D,L=0,N=e.length;L-1;q--){var Q=k[q],B=h.slice(0,Q.reStart),K=h.slice(Q.reStart,Q.reEnd-8),U=h.slice(Q.reEnd-8,Q.reEnd),V=h.slice(Q.reEnd);U+=V;var H=B.split("(").length-1,W=V;for(L=0;L=0&&!(i=e[h]);h--);for(h=0;h>> no match, partial?",e,w,t,E),w!==g))}if("string"===typeof b?(v=r.nocase?_.toLowerCase()===b.toLowerCase():_===b,this.debug("string match",b,_,v)):(v=_.match(b),this.debug("pattern match",b,_,v)),!v)return!1}if(h===g&&d===y)return!0;if(h===g)return n;if(d===y)return h===g-1&&""===e[h];throw new Error("wtf?")}},2614:function(e,t,n){"use strict";var r=n(4105);function emptyFunction(){}function emptyFunctionWithReset(){}emptyFunctionWithReset.resetWarningCache=emptyFunction,e.exports=function(){function shim(e,t,n,i,h,d){if(d!==r){var g=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw g.name="Invariant Violation",g}}function getShim(){return shim}shim.isRequired=shim;var e={array:shim,bool:shim,func:shim,number:shim,object:shim,string:shim,symbol:shim,any:shim,arrayOf:getShim,element:shim,elementType:shim,instanceOf:getShim,node:shim,objectOf:getShim,oneOf:getShim,oneOfType:getShim,shape:getShim,exact:getShim,checkPropTypes:emptyFunctionWithReset,resetWarningCache:emptyFunction};return e.PropTypes=e,e}},954:function(e,t,n){e.exports=n(2614)()},4105:function(e){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},575:function(e,t,n){var r,i,h;i=[t,n(1157)],void 0===(h="function"===typeof(r=function(e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=_interopRequireDefault(t);function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}e.default=n.default})?r.apply(t,i):r)||(e.exports=h)},1157:function(e,t,n){var r,i,h;i=[t,n(3804),n(954)],void 0===(h="function"===typeof(r=function(e,t,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.setHasSupportToCaptureOption=setHasSupportToCaptureOption;var r=_interopRequireDefault(t),i=_interopRequireDefault(n);function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}var h=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function _classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var d=function(){function defineProperties(e,t){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:{capture:!0};return g?e:e.capture}function getPosition(e){if("touches"in e){var t=e.touches[0];return{x:t.pageX,y:t.pageY}}return{x:e.screenX,y:e.screenY}}var y=function(e){function ReactSwipe(){var e;_classCallCheck(this,ReactSwipe);for(var t=arguments.length,n=Array(t),r=0;rt&&this.props.onSwipeRight(1,e),this.movePosition.deltaY<-t?this.props.onSwipeUp(1,e):this.movePosition.deltaY>t&&this.props.onSwipeDown(1,e)),this.moveStart=null,this.moving=!1,this.movePosition=null}},{key:"_setSwiperRef",value:function _setSwiperRef(e){this.swiper=e,this.props.innerRef(e)}},{key:"render",value:function render(){var e=this.props,t=(e.tagName,e.className),n=e.style,i=e.children,d=(e.allowMouseEvents,e.onSwipeUp,e.onSwipeDown,e.onSwipeLeft,e.onSwipeRight,e.onSwipeStart,e.onSwipeMove,e.onSwipeEnd,e.innerRef,e.tolerance,_objectWithoutProperties(e,["tagName","className","style","children","allowMouseEvents","onSwipeUp","onSwipeDown","onSwipeLeft","onSwipeRight","onSwipeStart","onSwipeMove","onSwipeEnd","innerRef","tolerance"]));return r.default.createElement(this.props.tagName,h({ref:this._setSwiperRef,onMouseDown:this._onMouseDown,onTouchStart:this._handleSwipeStart,onTouchEnd:this._handleSwipeEnd,className:t,style:n},d),i)}}]),ReactSwipe}(t.Component);y.displayName="ReactSwipe",y.propTypes={tagName:i.default.string,className:i.default.string,style:i.default.object,children:i.default.node,allowMouseEvents:i.default.bool,onSwipeUp:i.default.func,onSwipeDown:i.default.func,onSwipeLeft:i.default.func,onSwipeRight:i.default.func,onSwipeStart:i.default.func,onSwipeMove:i.default.func,onSwipeEnd:i.default.func,innerRef:i.default.func,tolerance:i.default.number.isRequired},y.defaultProps={tagName:"div",allowMouseEvents:!1,onSwipeUp:function onSwipeUp(){},onSwipeDown:function onSwipeDown(){},onSwipeLeft:function onSwipeLeft(){},onSwipeRight:function onSwipeRight(){},onSwipeStart:function onSwipeStart(){},onSwipeMove:function onSwipeMove(){},onSwipeEnd:function onSwipeEnd(){},innerRef:function innerRef(){},tolerance:0},e.default=y})?r.apply(t,i):r)||(e.exports=h)},8297:function(e,t,n){!function(e,t,n,r){"use strict";function o(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var i=o(t),h=o(n),d=o(r),a=function(){return(a=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0&&i[i.length-1])||6!==h[0]&&2!==h[0])){d=0;continue}if(3===h[0]&&(!i||h[1]>i[0]&&h[1]=v)return console[e].apply(console,arguments)}}function setVerbosity(e){var t=y[v];return v=Math.max(0,y.indexOf(e)),t}!function(e){e.log=wrapConsoleMethod("log"),e.warn=wrapConsoleMethod("warn"),e.error=wrapConsoleMethod("error")}(invariant||(invariant={}));"object"===typeof process&&process},3158:function(e,t,n){"use strict";n.d(t,{ZT:function(){return __extends},pi:function(){return __assign},_T:function(){return __rest},mG:function(){return __awaiter},Jh:function(){return __generator},pr:function(){return __spreadArrays}});var extendStatics=function(e,t){return(extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)};function __extends(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function __(){this.constructor=e}extendStatics(e,t),e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)}var __assign=function(){return(__assign=Object.assign||function __assign(e){for(var t,n=1,r=arguments.length;n0&&i[i.length-1])&&(6===h[0]||2===h[0])){d=0;continue}if(3===h[0]&&(!i||h[1]>i[0]&&h[1]1,i=!1,h=arguments[1],d=h;return new n((function(n){return t.subscribe({next:function(t){var h=!i;if(i=!0,!h||r)try{d=e(d,t)}catch(g){return n.error(g)}else d=t},error:function(e){n.error(e)},complete:function(){if(!i&&!r)return n.error(new TypeError("Cannot reduce an empty sequence"));n.next(d),n.complete()}})}))}},{key:"concat",value:function concat(){for(var e=this,t=arguments.length,n=new Array(t),r=0;r=0&&i.splice(e,1),completeIfDone()}});i.push(h)},error:function(e){r.error(e)},complete:function(){completeIfDone()}});function completeIfDone(){h.closed&&0===i.length&&r.complete()}return function(){i.forEach((function(e){return e.unsubscribe()})),h.unsubscribe()}}))}},{key:r,value:function(){return this}}],[{key:"from",value:function from(e){var t="function"===typeof this?this:Observable;if(null==e)throw new TypeError(e+" is not an object");var i=getMethod(e,r);if(i){var h=i.call(e);if(Object(h)!==h)throw new TypeError(h+" is not an object");return isObservable(h)&&h.constructor===t?h:new t((function(e){return h.subscribe(e)}))}if(hasSymbol("iterator")&&(i=getMethod(e,n)))return new t((function(t){enqueue((function(){if(!t.closed){var n=!0,r=!1,h=void 0;try{for(var d,g=i.call(e)[Symbol.iterator]();!(n=(d=g.next()).done);n=!0){var y=d.value;if(t.next(y),t.closed)return}}catch(v){r=!0,h=v}finally{try{n||null==g.return||g.return()}finally{if(r)throw h}}t.complete()}}))}));if(Array.isArray(e))return new t((function(t){enqueue((function(){if(!t.closed){for(var n=0;n2)return"[Array]";for(var n=Math.min(10,e.length),r=e.length-n,i=[],h=0;h1&&i.push("... ".concat(r," more items"));return"["+i.join(", ")+"]"}(e,n);return function formatObject(e,t){var n=Object.keys(e);if(0===n.length)return"{}";if(t.length>2)return"["+function getObjectTag(e){var t=Object.prototype.toString.call(e).replace(/^\[object /,"").replace(/]$/,"");if("Object"===t&&"function"===typeof e.constructor){var n=e.constructor.name;if("string"===typeof n&&""!==n)return n}return t}(e)+"]";return"{ "+n.map((function(n){return n+": "+formatValue(e[n],t)})).join(", ")+" }"}(e,n)}(e,t);default:return String(e)}}},5332:function(e,t){"use strict";var n="function"===typeof Symbol&&"function"===typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):void 0;t.Z=n},8265:function(e,t,n){"use strict";n.d(t,{Ye:function(){return i},WU:function(){return h},UG:function(){return isNode}});var r=n(5332);function defineInspect(e){var t=e.prototype.toJSON;"function"===typeof t||function invariant(e,t){if(!Boolean(e))throw new Error(null!=t?t:"Unexpected invariant triggered.")}(0),e.prototype.inspect=t,r.Z&&(e.prototype[r.Z]=t)}var i=function(){function Location(e,t,n){this.start=e.start,this.end=t.end,this.startToken=e,this.endToken=t,this.source=n}return Location.prototype.toJSON=function toJSON(){return{start:this.start,end:this.end}},Location}();defineInspect(i);var h=function(){function Token(e,t,n,r,i,h,d){this.kind=e,this.start=t,this.end=n,this.line=r,this.column=i,this.value=d,this.prev=h,this.next=null}return Token.prototype.toJSON=function toJSON(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}},Token}();function isNode(e){return null!=e&&"string"===typeof e.kind}defineInspect(h)},2464:function(e,t,n){"use strict";function dedentBlockStringValue(e){var t=e.split(/\r\n|[\n\r]/g),n=function getBlockStringIndentation(e){for(var t,n=!0,r=!0,i=0,h=null,d=0;di&&isBlank(t[h-1]);)--h;return t.slice(i,h).join("\n")}function isBlank(e){for(var t=0;t1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=-1===e.indexOf("\n"),i=" "===e[0]||"\t"===e[0],h='"'===e[e.length-1],d="\\"===e[e.length-1],g=!r||h||d||n,y="";return!g||r&&i||(y+="\n"+t),y+=t?e.replace(/\n/g,"\n"+t):e,g&&(y+="\n"),'"""'+y.replace(/"""/g,'\\"""')+'"""'}n.d(t,{W7:function(){return dedentBlockStringValue},LZ:function(){return printBlockString}})},4893:function(e,t,n){"use strict";n.d(t,{$_:function(){return d},Vn:function(){return visit}});var r=n(6430),i=n(8265),h={Name:[],Document:["definitions"],OperationDefinition:["name","variableDefinitions","directives","selectionSet"],VariableDefinition:["variable","type","defaultValue","directives"],Variable:["name"],SelectionSet:["selections"],Field:["alias","name","arguments","directives","selectionSet"],Argument:["name","value"],FragmentSpread:["name","directives"],InlineFragment:["typeCondition","directives","selectionSet"],FragmentDefinition:["name","variableDefinitions","typeCondition","directives","selectionSet"],IntValue:[],FloatValue:[],StringValue:[],BooleanValue:[],NullValue:[],EnumValue:[],ListValue:["values"],ObjectValue:["fields"],ObjectField:["name","value"],Directive:["name","arguments"],NamedType:["name"],ListType:["type"],NonNullType:["type"],SchemaDefinition:["description","directives","operationTypes"],OperationTypeDefinition:["type"],ScalarTypeDefinition:["description","name","directives"],ObjectTypeDefinition:["description","name","interfaces","directives","fields"],FieldDefinition:["description","name","arguments","type","directives"],InputValueDefinition:["description","name","type","defaultValue","directives"],InterfaceTypeDefinition:["description","name","interfaces","directives","fields"],UnionTypeDefinition:["description","name","directives","types"],EnumTypeDefinition:["description","name","directives","values"],EnumValueDefinition:["description","name","directives"],InputObjectTypeDefinition:["description","name","directives","fields"],DirectiveDefinition:["description","name","arguments","locations"],SchemaExtension:["directives","operationTypes"],ScalarTypeExtension:["name","directives"],ObjectTypeExtension:["name","interfaces","directives","fields"],InterfaceTypeExtension:["name","interfaces","directives","fields"],UnionTypeExtension:["name","directives","types"],EnumTypeExtension:["name","directives","values"],InputObjectTypeExtension:["name","directives","fields"]},d=Object.freeze({});function visit(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:h,g=void 0,y=Array.isArray(e),v=[e],b=-1,_=[],w=void 0,E=void 0,S=void 0,k=[],O=[],C=e;do{var T=++b===v.length,x=T&&0!==_.length;if(T){if(E=0===O.length?void 0:k[k.length-1],w=S,S=O.pop(),x){if(y)w=w.slice();else{for(var A={},D=0,L=Object.keys(w);D{const e=this.state.current,t=e.getAttribute("data-gallery");return this.state.collections[t].indexOf(e)}}__init3(){this.next=()=>{const e=this,t=e.state.current.getAttribute("data-gallery");let n=e._currIndex();n{const e=this,t=e.state.current.getAttribute("data-gallery");let n=e._currIndex();n>0?n--:n=e.state.collections[t].length-1,e.state.collections[t][n].click(),console.log(`${e.name}: prev`),S.dispatchEvent(new Event("{ui.name}.prev"))}}__init5(){this.reset=()=>{this.setState({content:"",type:[],shown:!1,loading:!1,error:!1,embed:!1})}}__init6(){this.embed=e=>{const t=this;console.log(`${t.name}: embed`),t.reset(),t.setState({embed:e,loading:!1,type:["embed","video"]}),t.show()}}__init7(){this.load=e=>{const t=this,n=t.axios;t.reset(),t.setState({loading:!0}),t.show(),n.get(e,{responseType:"arraybuffer"}).then((e=>{switch(console.log(`${t.name}: response content-type: ${e.headers["content-type"]}`),e.headers["content-type"]){case"image/jpeg":case"image/png":case"image/svg+xml":case"image/bmp":case"image/gif":case"image/tiff":case"image/webp":case"image/jpg":case"image/svg":t.setContent(``,"image");break;case"application/json":case"application/ld+json":case"application/json; charset=UTF-8":const n=JSON.parse(t._abToString(e.data));t.setContent(`${n.Content}`,"text html json");break;case"text/html":case"application/xhtml+xml":case"text/plain":case"text/html; charset=UTF-8":case"application/xhtml+xml; charset=UTF-8":case"text/plain; charset=UTF-8":t.setContent(t._abToString(e.data),"text html pajax");break;default:console.warn(`${t.name}: Unknown response content-type!`)}S.dispatchEvent(new Event("{ui.name}.loaded"))})).catch((e=>{console.error(e);let n="";if(e.response)switch(e.response.status){case 404:n="Not Found.";break;case 500:n="Server issue, please try again latter.";break;default:n="Something went wrong."}else e.request?n="No response received":console.warn("Error",e.message);t.setState({error:n}),S.dispatchEvent(new Event("{ui.name}.error"))})).then((()=>{t.setState({loading:!1})}))}}__init8(){this._abToString=e=>String.fromCharCode.apply(null,new Uint8Array(e))}__init9(){this._imageEncode=e=>{new Uint8Array(e);return btoa([].reduce.call(new Uint8Array(e),(function(e,t){return e+String.fromCharCode(t)}),""))}}__init10(){this.setContent=(e,t)=>{console.log(`${this.name}: setContent`);let n=t||["html","text"];Array.isArray(n)||(n=t.split(" ")),this.setState({content:e,type:n})}}__init11(){this.show=()=>{console.log(`${this.name}: show`),this.setState({shown:!0}),S.dispatchEvent(new Event("{ui.name}.show"))}}__init12(){this.hide=()=>{const e=this;console.log(`${e.name}: hide`),b().withContext(name,(()=>{b().unbind("left",e.prev),b().unbind("right",e.next)})),b().setContext("index"),e.setState({shown:!1}),S.dispatchEvent(new Event("{ui.name}.hide"))}}__init13(){this.getHtml=()=>({__html:this.state.content})}onSwipeMove(e,t){const n=this.ui,r=e.x;n.locked||Math.abs(r)<50||(n.locked=!0,setTimeout((()=>{n.locked=!1}),1e3),r>0?(console.log(`${n.name}: swipe right`),n.prev()):(console.log(`${n.name}: swipe left`),n.next()))}render(){const e=this,t=e.name;let n=null;const r=e.state.current;if(b().setContext(t),b().withContext(t,(()=>{b().unbind("left",e.prev),b().unbind("right",e.next)})),r){const i=r.getAttribute("data-gallery");i&&e.state.collections[i].length>1&&(n=React.createElement("nav",{className:"meta-navs",__self:this,__source:{fileName:E,lineNumber:364}},React.createElement("button",{className:"meta-nav meta-nav-arrow meta-nav-arrow__prev a",onClick:e.prev,__self:this,__source:{fileName:E,lineNumber:365}},React.createElement("i",{className:"fa fas fa-chevron-left",__self:this,__source:{fileName:E,lineNumber:369}}),React.createElement("span",{className:"sr-only",__self:this,__source:{fileName:E,lineNumber:370}},"Previous")),React.createElement("button",{className:"meta-nav meta-nav-arrow meta-nav-arrow__next a",onClick:e.next,__self:this,__source:{fileName:E,lineNumber:372}},React.createElement("i",{className:"fa fas fa-chevron-right",__self:this,__source:{fileName:E,lineNumber:376}}),React.createElement("span",{className:"sr-only",__self:this,__source:{fileName:E,lineNumber:377}},"Next"))),b().withContext(t,(()=>{b().bind("left",e.prev),b().bind("right",e.next)})))}const i=e.state.embed?React.createElement("section",{className:"meta-wrap typography",__self:this,__source:{fileName:E,lineNumber:390}},React.createElement(w(),{url:e.state.embed,providers:[..._.defaultProviders,k],LoadingFallbackElement:React.createElement("div",{className:"meta-spinner_embed",__self:this,__source:{fileName:E,lineNumber:394}},"... Loading ..."),__self:this,__source:{fileName:E,lineNumber:391}})):React.createElement("section",{className:"meta-wrap typography",dangerouslySetInnerHTML:e.getHtml(),__self:this,__source:{fileName:E,lineNumber:400}}),h=`meta-${t} meta-${t}__${e.state.type.join(` meta-${t}__`)}`,d=`meta-${t}-overlay${e.state.shown?` meta-${t}-overlay__open`:""}${e.state.loading?` meta-${t}-overlay__loading`:""}${e.state.error?` meta-${t}-overlay__error`:""}`;return React.createElement(y(),{className:h,ui:e,onSwipeMove:e.onSwipeMove,__self:this,__source:{fileName:E,lineNumber:417}},React.createElement("div",{className:d,__self:this,__source:{fileName:E,lineNumber:418}},React.createElement("article",{className:"meta-content",__self:this,__source:{fileName:E,lineNumber:419}},n,React.createElement("button",{className:"meta-nav meta-close a",onClick:e.hide,__self:this,__source:{fileName:E,lineNumber:421}},React.createElement("i",{className:"fa fas fa-times",__self:this,__source:{fileName:E,lineNumber:425}}),React.createElement("span",{className:"sr-only",__self:this,__source:{fileName:E,lineNumber:426}},"Close")),React.createElement("div",{className:"meta-spinner",__self:this,__source:{fileName:E,lineNumber:429}},"... Loading ..."),React.createElement("div",{className:"meta-error alert alert-danger",__self:this,__source:{fileName:E,lineNumber:430}},e.state.error),i)))}}var C=MetaWindow;(e=>{const r=d().render(i().createElement(C,{__self:void 0,__source:{fileName:"/mnt/data/srv/dist/repositories/silverstripe-webpack/node_modules/.pnpm/@a2nt+meta-lightbox-react@3.1.3/node_modules/@a2nt/meta-lightbox-react/src/js/app.js",lineNumber:15}}),document.getElementById("MetaLightboxApp")),initMetaWindowLinks=()=>{const e=r;console.log("MetaWindow: [links] init"),document.querySelectorAll('[data-toggle="lightbox"],[data-gallery="${gallery}"]').forEach((t=>{const n=t.getAttribute("data-gallery");n&&(e.state.collections[n]=[],document.querySelectorAll(`[data-toggle="lightbox"][data-gallery="${n}"]`).forEach((t=>{e.state.collections[n].push(t)}))),t.addEventListener("click",(t=>{t.preventDefault(),console.log("MetaWindow: [link] click");const n=t.currentTarget,r=n.getAttribute("href")||n.getAttribute("data-href"),i=n.getAttribute("data-embed");e.state.current=n,i?e.embed(r):e.load(r)}))}))};e.addEventListener(`${n}`,initMetaWindowLinks),e.addEventListener(`${t}`,initMetaWindowLinks),e.addEventListener("MetaWindow.initLinks",initMetaWindowLinks)})(window);var T={APOLLO_ERROR:"apollo-error",AJAX:"ajax-load",AJAXMAIN:"ajax-main-load",MAININIT:"main-init",TABHIDDEN:"tab-hidden",TABFOCUSED:"tab-focused",OFFLINE:"offline",ONLINE:"online",BACKONLINE:"back-online",TOUCHENABLE:"touch-enabled",TOUCHDISABLED:"touch-disabled",LOADED:"load",SWIPELEFT:"swipeleft panleft",SWIPERIGHT:"swiperight panright",ALLERTAPPEARED:"alert-appeared",ALERTREMOVED:"alert-removed",LODEDANDREADY:"load-ready",LAZYIMAGEREADY:"image-lazy-bg-loaded",LAZYIMAGESREADY:"images-lazy-loaded",MAPLOADED:"map-loaded",MAPAPILOADED:"map-api-loaded",MAPMARKERCLICK:"map-marker-click",MAPPOPUPCLOSE:"map-popup-close",SCROLL:"scroll",RESIZE:"resize",CAROUSEL_READY:"bs.carousel.ready",SET_TARGET_UPDATE:"set-target-update",RESTORE_FIELD:"restore-field",FORM_INIT_BASICS:"form-basics",FORM_INIT_STEPPED:"form-init-stepped",FORM_INIT_VALIDATE:"form-init-validate",FORM_INIT_VALIDATE_FIELD:"form-init-validate-field",FORM_INIT_STORAGE:"form-init-storage",FORM_VALIDATION_FAILED:"form-validation-failed",FORM_STEPPED_NEW_STEP:"form-new-step",FORM_STEPPED_FIRST_STEP:"form-first-step",FORM_STEPPED_LAST_STEP:"form-last-step",FORM_FIELDS:"input,textarea,select"};var x,A={ENVS:["xs","sm","md","lg","xl","xxl","xxxl"]},D=__webpack_require__(8468),__spreadArrays=function(){for(var e=0,t=0,n=arguments.length;t0&&i[i.length-1])&&(6===h[0]||2===h[0])){d=0;continue}if(3===h[0]&&(!i||h[1]>i[0]&&h[1]0&&i[i.length-1])&&(6===h[0]||2===h[0])){d=0;continue}if(3===h[0]&&(!i||h[1]>i[0]&&h[1]this.maxSize&&!this.paused?[4,this.purge()]:[3,2];case 1:return n.sent(),this.paused=!0,[2];case 2:return this.paused?[2]:[4,this.storage.write(e)];case 3:return n.sent(),this.log.info("string"===typeof e?"Persisted cache of size "+e.length+" characters":"Persisted cache"),[3,5];case 4:throw t=n.sent(),this.log.error("Error persisting cache",t),t;case 5:return[2]}}))}))},Persistor.prototype.restore=function(){return Persistor_awaiter(this,void 0,void 0,(function(){var e,t;return Persistor_generator(this,(function(n){switch(n.label){case 0:return n.trys.push([0,5,,6]),[4,this.storage.read()];case 1:return null==(e=n.sent())?[3,3]:[4,this.cache.restore(e)];case 2:return n.sent(),this.log.info("string"===typeof e?"Restored cache of size "+e.length+" characters":"Restored cache"),[3,4];case 3:this.log.info("No stored cache to restore"),n.label=4;case 4:return[3,6];case 5:throw t=n.sent(),this.log.error("Error restoring cache",t),t;case 6:return[2]}}))}))},Persistor.prototype.purge=function(){return Persistor_awaiter(this,void 0,void 0,(function(){var e;return Persistor_generator(this,(function(t){switch(t.label){case 0:return t.trys.push([0,2,,3]),[4,this.storage.purge()];case 1:return t.sent(),this.log.info("Purged cache storage"),[3,3];case 2:throw e=t.sent(),this.log.error("Error purging cache storage",e),e;case 3:return[2]}}))}))},Persistor}(),onCacheWrite=function(e){var t=e.cache;return function(e){var n=t.write,r=t.evict,i=t.modify;return t.write=function(){for(var r=[],i=0;i(e.setContext({headers:{apikey:"LgPaRkVPYa8IY7x3AjbLC8wx6oPPSlO01yPflFXecvQ"}}),t(e))));console.info(`%cAPI: ${Y}`,"color:green;font-size:10px");const X=(0,V.from)([J,new V.ApolloLink(((e,t)=>(e.setContext({start:new Date}),t(e)))),onError((({operation:e,response:t,graphQLErrors:n,networkError:r,forward:i})=>{if("IgnoreErrorsQuery"===e.operationName)return console.error("_appolo: IgnoreErrorsQuery"),void(t.errors=null);n&&n.forEach((({message:e,locations:t,path:n})=>console.error(`_appolo: [GraphQL error]: Message: ${e}, Location: ${t}, Path: ${n}`))),r&&console.error(`_appolo: [Network error] ${r.statusCode}`),console.error("_appolo: [APOLLO_ERROR]"),window.dispatchEvent(new Event(T.APOLLO_ERROR))})),new V.ApolloLink(((e,t)=>t(e).map((t=>{const n=new Date-e.getContext().start;return console.log(`_appolo: operation ${e.operationName} took ${n} ms to complete`),window.dispatchEvent(new Event(T.ONLINE)),t})))),new D.HttpLink({uri:Y,fetch:(...e)=>fetch(...e),credentials:"same-origin",connectToDevTools:!1})]),Z=new D.fe({cache:K,link:X}),ee="/mnt/data/srv/dist/repositories/silverstripe-webpack/node_modules/.pnpm/@a2nt+ss-bootstrap-ui-webpack-boilerplate-react@3.2.1/node_modules/@a2nt/ss-bootstrap-ui-webpack-boilerplate-react/src/js/_components/_page.jsx",te=document,ne=document.body;class Page extends r.Component{__init(){this.state={type:[],shown:!1,Title:"Loading ...",loading:!0,error:!1,current:null,ID:null,URLSegment:null,ClassName:"Page",CSSClass:null,Summary:null,Link:null,URL:null,HTML:null,Elements:[],page:null}}componentDidUpdate(){const e=this;e.state.Title&&(document.title=e.state.Title)}constructor(e){super(e),Page.prototype.__init.call(this),Page.prototype.__init2.call(this),Page.prototype.__init3.call(this),Page.prototype.__init4.call(this),Page.prototype.__init5.call(this);const t=this;t.name=t.constructor.name,t.empty_state=t.state,console.log(`${t.name}: init`)}__init2(){this.isOnline=()=>ne.classList.contains("is-online")}__init3(){this.load=e=>{const t=this;return new Promise(((n,r)=>{const i=(0,D.Ps)(`query Pages {\n\t\t\t readPages(Link: "${e}") {\n\t\t\t edges {\n\t\t\t node {\n\t\t\t __typename\n\t\t\t _id\n\t\t\t ID\n\t\t\t Title\n\t\t\t ClassName\n\t\t\t CSSClass\n\t\t\t Summary\n\t\t\t Link\n\t\t\t URLSegment\n\t\t\t HTML\n\t\t\t }\n\t\t\t }\n\t\t\t }\n\t\t\t}`);if(t.isOnline())t.state.loading||t.setState(t.empty_state),Z.query({query:i,fetchPolicy:t.isOnline()?"no-cache":"cache-first"}).then((e=>{const h=e.data;Z.writeQuery({query:i,data:h}),t.processResponse(h)?(console.log(`${t.name}: got the server response`),n(h)):(console.log(`${t.name}: not found`),r({status:404}))})).catch((e=>{r({status:500,error:e})}));else{const e=Z.readQuery({query:i});e&&t.processResponse(e)?(console.log(`${t.name}: Offline cached response`),n(e)):(console.log(`${t.name}: No offline response`),t.setState(Object.assign(t.empty_state,{Title:"Offline",CSSClass:"graphql__status-523",Summary:"You're Offline. The page is not available now.",loading:!1})),r({status:523}))}}))}}__init4(){this.processResponse=e=>{const t=this;if(!e.readPages.edges.length)return console.log(`${t.name}: not found`),t.setState(Object.assign(t.empty_state,{Title:"Not Found",CSSClass:"graphql__status-404",Summary:"The page is not found.",loading:!1})),!1;const n=e.readPages.edges[0].node;return t.setState({ID:n.ID,Title:n.Title,ClassName:n.ClassName,URLSegment:n.URLSegment,CSSClass:n.CSSClass,Summary:n.Summary,Link:n.Link,HTML:n.HTML,Elements:[],loading:!1}),!0}}__init5(){this.getHtml=e=>{return{__html:(t=e,(new DOMParser).parseFromString(t,"text/html").documentElement.textContent)};var t}}render(){const e=this,t=(e.name,`elemental-area graphql__page page-${e.state.CSSClass} url-${e.state.URLSegment}`);let n="";if(e.state.HTML?(console.log(`${e.name}: HTML only`),n=e.state.HTML):e.state.Elements.length?(console.log(`${e.name}: render`),e.state.Elements.map((e=>{n+=e.node.Render}))):e.state.Summary&&e.state.Summary.length&&(console.log(`${e.name}: summary only`),n=`
${e.state.Summary}
`),e.state.loading){te.getElementById("PageLoading");n='
Loading ...
'}return React.createElement("div",{className:t,dangerouslySetInnerHTML:e.getHtml(n),__self:this,__source:{fileName:ee,lineNumber:202}})}}var re=Page;(e=>{const t="_main.visibility",n=document,r=n.body;n.addEventListener("visibilitychange",(()=>{"hidden"===n.visibilityState?(console.log(`${t}: Tab: hidden`),r.classList.add("is-hidden"),r.classList.remove("is-focused"),e.dispatchEvent(new Event(T.TABHIDDEN))):(console.log(`${t}: Tab: focused`),r.classList.add("is-focused"),r.classList.remove("is-hidden"),e.dispatchEvent(new Event(T.TABFOCUSED)))}))})(window),(e=>{const t="_main.touch",n=document,r=n.body;let i,h;const SET_TOUCH_SCREEN=(n,d)=>{h||d===i||(n?(console.log(`${t}: Touch screen enabled`),r.classList.add("is-touch"),r.classList.remove("is-mouse"),e.dispatchEvent(new Event(T.TOUCHENABLE))):(console.log(`${t}: Touch screen disabled`),r.classList.add("is-mouse"),r.classList.remove("is-touch"),e.dispatchEvent(new Event(T.TOUCHDISABLED))),i=d,h||(h=setTimeout((()=>{clearTimeout(h),h=null}),500)))};SET_TOUCH_SCREEN("ontouchstart"in e||navigator.MaxTouchPoints>0||navigator.msMaxTouchPoints>0||e.matchMedia("(hover: none)").matches,"init"),n.addEventListener("touchend",(e=>{let t=!1;"click"!==e.type&&(t=!0),SET_TOUCH_SCREEN(t,"click-touchend")})),n.addEventListener("click",(e=>{let t=!1;"click"!==e.type&&(t=!0),SET_TOUCH_SCREEN(t,"click-touchend")}))})(window);const ie=__webpack_require__(6971);(e=>{const t="_main.online",n=document,r=n.body;let i;const h=n.querySelector('meta[name="ping"]');let d=!1;const UPDATE_ONLINE_STATUS=n=>{d||(d=!0,n?(r.classList.contains("is-offline")?(console.log(`${t}: back Online`),e.dispatchEvent(new Event(T.BACKONLINE))):(console.log(`${t}: Online`),e.dispatchEvent(new Event(T.ONLINE))),r.classList.add("is-online"),r.classList.remove("is-offline"),h&&!i&&(console.log(`${t}: SESSION_PING is active`),i=setInterval(SESSION_PING,3e5))):(console.log(`${t}: Offline`),r.classList.add("is-offline"),r.classList.remove("is-online"),clearInterval(i),i=null,e.dispatchEvent(new Event(T.OFFLINE))),d=!1)};let g=!1;const SESSION_PING=()=>{if(g||r.classList.contains("is-offline"))return;const e=h.getAttribute("content");console.log(`${t}: session ping`),g=!0,ie.post(e,{}).then((e=>{g=!1,UPDATE_ONLINE_STATUS(!0)})).catch((e=>{console.error(e),console.warn(`${t}: SESSION_PING failed`),g=!1,UPDATE_ONLINE_STATUS(!1)}))},navigatorStateUpdate=()=>{"undefined"!==typeof navigator.onLine&&(navigator.onLine?UPDATE_ONLINE_STATUS(!0):UPDATE_ONLINE_STATUS(!1))};e.addEventListener(`${T.OFFLINE}`,(()=>{UPDATE_ONLINE_STATUS(!1)})),e.addEventListener(`${T.ONLINE}`,(()=>{UPDATE_ONLINE_STATUS(!0)})),e.addEventListener(`${T.LOADED}`,navigatorStateUpdate),e.addEventListener(`${T.AJAX}`,navigatorStateUpdate)})(window),(e=>{const t=document,n=t.body,detectCSSScreenSize=()=>{const r=t.createElement("div");r.className="env-test",n.appendChild(r);const i=[...A.ENVS].reverse();let h=i.shift();n.classList.remove(...i);for(let t=0;te.innerHeight?(n.classList.add("landscape"),n.classList.remove("portrait")):(d=!1,n.classList.add("portrait"),n.classList.remove("landscape")),console.log(`_main.css-screen-size: screen size detected ${h} | landscape ${d}`),n.removeChild(r),h};e.addEventListener(`${T.LOADED}`,detectCSSScreenSize),e.addEventListener(`${T.RESIZE}`,detectCSSScreenSize)})(window);var oe=__webpack_require__(9900),se="top",ae="bottom",ce="right",le="left",ue="auto",pe=[se,ae,ce,le],he="start",de="end",fe="clippingParents",me="viewport",ge="popper",ye="reference",ve=pe.reduce((function(e,t){return e.concat([t+"-"+he,t+"-"+de])}),[]),be=[].concat(pe,[ue]).reduce((function(e,t){return e.concat([t,t+"-"+he,t+"-"+de])}),[]),_e="beforeRead",we="read",Ee="afterRead",Se="beforeMain",ke="main",Oe="afterMain",Ce="beforeWrite",Te="write",xe="afterWrite",Ae=[_e,we,Ee,Se,ke,Oe,Ce,Te,xe];function getNodeName(e){return e?(e.nodeName||"").toLowerCase():null}function getWindow(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function isElement(e){return e instanceof getWindow(e).Element||e instanceof Element}function isHTMLElement(e){return e instanceof getWindow(e).HTMLElement||e instanceof HTMLElement}function isShadowRoot(e){return"undefined"!==typeof ShadowRoot&&(e instanceof getWindow(e).ShadowRoot||e instanceof ShadowRoot)}var De={name:"applyStyles",enabled:!0,phase:"write",fn:function applyStyles(e){var t=e.state;Object.keys(t.elements).forEach((function(e){var n=t.styles[e]||{},r=t.attributes[e]||{},i=t.elements[e];isHTMLElement(i)&&getNodeName(i)&&(Object.assign(i.style,n),Object.keys(r).forEach((function(e){var t=r[e];!1===t?i.removeAttribute(e):i.setAttribute(e,!0===t?"":t)})))}))},effect:function effect(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach((function(e){var r=t.elements[e],i=t.attributes[e]||{},h=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce((function(e,t){return e[t]="",e}),{});isHTMLElement(r)&&getNodeName(r)&&(Object.assign(r.style,h),Object.keys(i).forEach((function(e){r.removeAttribute(e)})))}))}},requires:["computeStyles"]};function getBasePlacement(e){return e.split("-")[0]}function getBoundingClientRect(e){var t=e.getBoundingClientRect();return{width:t.width,height:t.height,top:t.top,right:t.right,bottom:t.bottom,left:t.left,x:t.left,y:t.top}}function getLayoutRect(e){var t=getBoundingClientRect(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function contains(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&isShadowRoot(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function getComputedStyle_getComputedStyle(e){return getWindow(e).getComputedStyle(e)}function isTableElement(e){return["table","td","th"].indexOf(getNodeName(e))>=0}function getDocumentElement(e){return((isElement(e)?e.ownerDocument:e.document)||window.document).documentElement}function getParentNode(e){return"html"===getNodeName(e)?e:e.assignedSlot||e.parentNode||(isShadowRoot(e)?e.host:null)||getDocumentElement(e)}function getTrueOffsetParent(e){return isHTMLElement(e)&&"fixed"!==getComputedStyle_getComputedStyle(e).position?e.offsetParent:null}function getOffsetParent(e){for(var t=getWindow(e),n=getTrueOffsetParent(e);n&&isTableElement(n)&&"static"===getComputedStyle_getComputedStyle(n).position;)n=getTrueOffsetParent(n);return n&&("html"===getNodeName(n)||"body"===getNodeName(n)&&"static"===getComputedStyle_getComputedStyle(n).position)?t:n||function getContainingBlock(e){var t=-1!==navigator.userAgent.toLowerCase().indexOf("firefox");if(-1!==navigator.userAgent.indexOf("Trident")&&isHTMLElement(e)&&"fixed"===getComputedStyle_getComputedStyle(e).position)return null;for(var n=getParentNode(e);isHTMLElement(n)&&["html","body"].indexOf(getNodeName(n))<0;){var r=getComputedStyle_getComputedStyle(n);if("none"!==r.transform||"none"!==r.perspective||"paint"===r.contain||-1!==["transform","perspective"].indexOf(r.willChange)||t&&"filter"===r.willChange||t&&r.filter&&"none"!==r.filter)return n;n=n.parentNode}return null}(e)||t}function getMainAxisFromPlacement(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}var Le=Math.max,Ne=Math.min,Ie=Math.round;function within(e,t,n){return Le(e,Ne(t,n))}function mergePaddingObject(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function expandToHashMap(e,t){return t.reduce((function(t,n){return t[n]=e,t}),{})}var Re={name:"arrow",enabled:!0,phase:"main",fn:function arrow(e){var t,n=e.state,r=e.name,i=e.options,h=n.elements.arrow,d=n.modifiersData.popperOffsets,g=getBasePlacement(n.placement),y=getMainAxisFromPlacement(g),v=[le,ce].indexOf(g)>=0?"height":"width";if(h&&d){var b=function toPaddingObject(e,t){return mergePaddingObject("number"!==typeof(e="function"===typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:expandToHashMap(e,pe))}(i.padding,n),_=getLayoutRect(h),w="y"===y?se:le,E="y"===y?ae:ce,S=n.rects.reference[v]+n.rects.reference[y]-d[y]-n.rects.popper[v],k=d[y]-n.rects.reference[y],O=getOffsetParent(h),C=O?"y"===y?O.clientHeight||0:O.clientWidth||0:0,T=S/2-k/2,x=b[w],A=C-_[v]-b[E],D=C/2-_[v]/2+T,L=within(x,D,A),N=y;n.modifiersData[r]=((t={})[N]=L,t.centerOffset=L-D,t)}},effect:function arrow_effect(e){var t=e.state,n=e.options.element,r=void 0===n?"[data-popper-arrow]":n;null!=r&&("string"!==typeof r||(r=t.elements.popper.querySelector(r)))&&contains(t.elements.popper,r)&&(t.elements.arrow=r)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]},Me={top:"auto",right:"auto",bottom:"auto",left:"auto"};function mapToStyles(e){var t,n=e.popper,r=e.popperRect,i=e.placement,h=e.offsets,d=e.position,g=e.gpuAcceleration,y=e.adaptive,v=e.roundOffsets,b=!0===v?function roundOffsetsByDPR(e){var t=e.x,n=e.y,r=window.devicePixelRatio||1;return{x:Ie(Ie(t*r)/r)||0,y:Ie(Ie(n*r)/r)||0}}(h):"function"===typeof v?v(h):h,_=b.x,w=void 0===_?0:_,E=b.y,S=void 0===E?0:E,k=h.hasOwnProperty("x"),O=h.hasOwnProperty("y"),C=le,T=se,x=window;if(y){var A=getOffsetParent(n),D="clientHeight",L="clientWidth";A===getWindow(n)&&"static"!==getComputedStyle_getComputedStyle(A=getDocumentElement(n)).position&&(D="scrollHeight",L="scrollWidth"),A=A,i===se&&(T=ae,S-=A[D]-r.height,S*=g?1:-1),i===le&&(C=ce,w-=A[L]-r.width,w*=g?1:-1)}var N,I=Object.assign({position:d},y&&Me);return g?Object.assign({},I,((N={})[T]=O?"0":"",N[C]=k?"0":"",N.transform=(x.devicePixelRatio||1)<2?"translate("+w+"px, "+S+"px)":"translate3d("+w+"px, "+S+"px, 0)",N)):Object.assign({},I,((t={})[T]=O?S+"px":"",t[C]=k?w+"px":"",t.transform="",t))}var Pe={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function computeStyles(e){var t=e.state,n=e.options,r=n.gpuAcceleration,i=void 0===r||r,h=n.adaptive,d=void 0===h||h,g=n.roundOffsets,y=void 0===g||g,v={placement:getBasePlacement(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:i};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,mapToStyles(Object.assign({},v,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:d,roundOffsets:y})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,mapToStyles(Object.assign({},v,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:y})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},je={passive:!0};var Fe={name:"eventListeners",enabled:!0,phase:"write",fn:function fn(){},effect:function eventListeners_effect(e){var t=e.state,n=e.instance,r=e.options,i=r.scroll,h=void 0===i||i,d=r.resize,g=void 0===d||d,y=getWindow(t.elements.popper),v=[].concat(t.scrollParents.reference,t.scrollParents.popper);return h&&v.forEach((function(e){e.addEventListener("scroll",n.update,je)})),g&&y.addEventListener("resize",n.update,je),function(){h&&v.forEach((function(e){e.removeEventListener("scroll",n.update,je)})),g&&y.removeEventListener("resize",n.update,je)}},data:{}},qe={left:"right",right:"left",bottom:"top",top:"bottom"};function getOppositePlacement(e){return e.replace(/left|right|bottom|top/g,(function(e){return qe[e]}))}var Qe={start:"end",end:"start"};function getOppositeVariationPlacement(e){return e.replace(/start|end/g,(function(e){return Qe[e]}))}function getWindowScroll(e){var t=getWindow(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function getWindowScrollBarX(e){return getBoundingClientRect(getDocumentElement(e)).left+getWindowScroll(e).scrollLeft}function isScrollParent(e){var t=getComputedStyle_getComputedStyle(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}function getScrollParent(e){return["html","body","#document"].indexOf(getNodeName(e))>=0?e.ownerDocument.body:isHTMLElement(e)&&isScrollParent(e)?e:getScrollParent(getParentNode(e))}function listScrollParents(e,t){var n;void 0===t&&(t=[]);var r=getScrollParent(e),i=r===(null==(n=e.ownerDocument)?void 0:n.body),h=getWindow(r),d=i?[h].concat(h.visualViewport||[],isScrollParent(r)?r:[]):r,g=t.concat(d);return i?g:g.concat(listScrollParents(getParentNode(d)))}function rectToClientRect(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function getClientRectFromMixedType(e,t){return t===me?rectToClientRect(function getViewportRect(e){var t=getWindow(e),n=getDocumentElement(e),r=t.visualViewport,i=n.clientWidth,h=n.clientHeight,d=0,g=0;return r&&(i=r.width,h=r.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(d=r.offsetLeft,g=r.offsetTop)),{width:i,height:h,x:d+getWindowScrollBarX(e),y:g}}(e)):isHTMLElement(t)?function getInnerBoundingClientRect(e){var t=getBoundingClientRect(e);return t.top=t.top+e.clientTop,t.left=t.left+e.clientLeft,t.bottom=t.top+e.clientHeight,t.right=t.left+e.clientWidth,t.width=e.clientWidth,t.height=e.clientHeight,t.x=t.left,t.y=t.top,t}(t):rectToClientRect(function getDocumentRect(e){var t,n=getDocumentElement(e),r=getWindowScroll(e),i=null==(t=e.ownerDocument)?void 0:t.body,h=Le(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),d=Le(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),g=-r.scrollLeft+getWindowScrollBarX(e),y=-r.scrollTop;return"rtl"===getComputedStyle_getComputedStyle(i||n).direction&&(g+=Le(n.clientWidth,i?i.clientWidth:0)-h),{width:h,height:d,x:g,y:y}}(getDocumentElement(e)))}function getClippingRect(e,t,n){var r="clippingParents"===t?function getClippingParents(e){var t=listScrollParents(getParentNode(e)),n=["absolute","fixed"].indexOf(getComputedStyle_getComputedStyle(e).position)>=0&&isHTMLElement(e)?getOffsetParent(e):e;return isElement(n)?t.filter((function(e){return isElement(e)&&contains(e,n)&&"body"!==getNodeName(e)})):[]}(e):[].concat(t),i=[].concat(r,[n]),h=i[0],d=i.reduce((function(t,n){var r=getClientRectFromMixedType(e,n);return t.top=Le(r.top,t.top),t.right=Ne(r.right,t.right),t.bottom=Ne(r.bottom,t.bottom),t.left=Le(r.left,t.left),t}),getClientRectFromMixedType(e,h));return d.width=d.right-d.left,d.height=d.bottom-d.top,d.x=d.left,d.y=d.top,d}function getVariation(e){return e.split("-")[1]}function computeOffsets(e){var t,n=e.reference,r=e.element,i=e.placement,h=i?getBasePlacement(i):null,d=i?getVariation(i):null,g=n.x+n.width/2-r.width/2,y=n.y+n.height/2-r.height/2;switch(h){case se:t={x:g,y:n.y-r.height};break;case ae:t={x:g,y:n.y+n.height};break;case ce:t={x:n.x+n.width,y:y};break;case le:t={x:n.x-r.width,y:y};break;default:t={x:n.x,y:n.y}}var v=h?getMainAxisFromPlacement(h):null;if(null!=v){var b="y"===v?"height":"width";switch(d){case he:t[v]=t[v]-(n[b]/2-r[b]/2);break;case de:t[v]=t[v]+(n[b]/2-r[b]/2)}}return t}function detectOverflow(e,t){void 0===t&&(t={});var n=t,r=n.placement,i=void 0===r?e.placement:r,h=n.boundary,d=void 0===h?fe:h,g=n.rootBoundary,y=void 0===g?me:g,v=n.elementContext,b=void 0===v?ge:v,_=n.altBoundary,w=void 0!==_&&_,E=n.padding,S=void 0===E?0:E,k=mergePaddingObject("number"!==typeof S?S:expandToHashMap(S,pe)),O=b===ge?ye:ge,C=e.elements.reference,T=e.rects.popper,x=e.elements[w?O:b],A=getClippingRect(isElement(x)?x:x.contextElement||getDocumentElement(e.elements.popper),d,y),D=getBoundingClientRect(C),L=computeOffsets({reference:D,element:T,strategy:"absolute",placement:i}),N=rectToClientRect(Object.assign({},T,L)),I=b===ge?N:D,R={top:A.top-I.top+k.top,bottom:I.bottom-A.bottom+k.bottom,left:A.left-I.left+k.left,right:I.right-A.right+k.right},M=e.modifiersData.offset;if(b===ge&&M){var P=M[i];Object.keys(R).forEach((function(e){var t=[ce,ae].indexOf(e)>=0?1:-1,n=[se,ae].indexOf(e)>=0?"y":"x";R[e]+=P[n]*t}))}return R}var Be={name:"flip",enabled:!0,phase:"main",fn:function flip(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var i=n.mainAxis,h=void 0===i||i,d=n.altAxis,g=void 0===d||d,y=n.fallbackPlacements,v=n.padding,b=n.boundary,_=n.rootBoundary,w=n.altBoundary,E=n.flipVariations,S=void 0===E||E,k=n.allowedAutoPlacements,O=t.options.placement,C=getBasePlacement(O),T=y||(C===O||!S?[getOppositePlacement(O)]:function getExpandedFallbackPlacements(e){if(getBasePlacement(e)===ue)return[];var t=getOppositePlacement(e);return[getOppositeVariationPlacement(e),t,getOppositeVariationPlacement(t)]}(O)),x=[O].concat(T).reduce((function(e,n){return e.concat(getBasePlacement(n)===ue?function computeAutoPlacement(e,t){void 0===t&&(t={});var n=t,r=n.placement,i=n.boundary,h=n.rootBoundary,d=n.padding,g=n.flipVariations,y=n.allowedAutoPlacements,v=void 0===y?be:y,b=getVariation(r),_=b?g?ve:ve.filter((function(e){return getVariation(e)===b})):pe,w=_.filter((function(e){return v.indexOf(e)>=0}));0===w.length&&(w=_);var E=w.reduce((function(t,n){return t[n]=detectOverflow(e,{placement:n,boundary:i,rootBoundary:h,padding:d})[getBasePlacement(n)],t}),{});return Object.keys(E).sort((function(e,t){return E[e]-E[t]}))}(t,{placement:n,boundary:b,rootBoundary:_,padding:v,flipVariations:S,allowedAutoPlacements:k}):n)}),[]),A=t.rects.reference,D=t.rects.popper,L=new Map,N=!0,I=x[0],R=0;R=0,q=F?"width":"height",Q=detectOverflow(t,{placement:M,boundary:b,rootBoundary:_,altBoundary:w,padding:v}),B=F?j?ce:le:j?ae:se;A[q]>D[q]&&(B=getOppositePlacement(B));var K=getOppositePlacement(B),U=[];if(h&&U.push(Q[P]<=0),g&&U.push(Q[B]<=0,Q[K]<=0),U.every((function(e){return e}))){I=M,N=!1;break}L.set(M,U)}if(N)for(var V=function _loop(e){var t=x.find((function(t){var n=L.get(t);if(n)return n.slice(0,e).every((function(e){return e}))}));if(t)return I=t,"break"},H=S?3:1;H>0;H--){if("break"===V(H))break}t.placement!==I&&(t.modifiersData[r]._skip=!0,t.placement=I,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function getSideOffsets(e,t,n){return void 0===n&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function isAnySideFullyClipped(e){return[se,ce,ae,le].some((function(t){return e[t]>=0}))}var Ke={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function hide(e){var t=e.state,n=e.name,r=t.rects.reference,i=t.rects.popper,h=t.modifiersData.preventOverflow,d=detectOverflow(t,{elementContext:"reference"}),g=detectOverflow(t,{altBoundary:!0}),y=getSideOffsets(d,r),v=getSideOffsets(g,i,h),b=isAnySideFullyClipped(y),_=isAnySideFullyClipped(v);t.modifiersData[n]={referenceClippingOffsets:y,popperEscapeOffsets:v,isReferenceHidden:b,hasPopperEscaped:_},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":b,"data-popper-escaped":_})}};var Ue={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function offset(e){var t=e.state,n=e.options,r=e.name,i=n.offset,h=void 0===i?[0,0]:i,d=be.reduce((function(e,n){return e[n]=function distanceAndSkiddingToXY(e,t,n){var r=getBasePlacement(e),i=[le,se].indexOf(r)>=0?-1:1,h="function"===typeof n?n(Object.assign({},t,{placement:e})):n,d=h[0],g=h[1];return d=d||0,g=(g||0)*i,[le,ce].indexOf(r)>=0?{x:g,y:d}:{x:d,y:g}}(n,t.rects,h),e}),{}),g=d[t.placement],y=g.x,v=g.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=y,t.modifiersData.popperOffsets.y+=v),t.modifiersData[r]=d}};var Ve={name:"popperOffsets",enabled:!0,phase:"read",fn:function popperOffsets(e){var t=e.state,n=e.name;t.modifiersData[n]=computeOffsets({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}};var $e={name:"preventOverflow",enabled:!0,phase:"main",fn:function preventOverflow(e){var t=e.state,n=e.options,r=e.name,i=n.mainAxis,h=void 0===i||i,d=n.altAxis,g=void 0!==d&&d,y=n.boundary,v=n.rootBoundary,b=n.altBoundary,_=n.padding,w=n.tether,E=void 0===w||w,S=n.tetherOffset,k=void 0===S?0:S,O=detectOverflow(t,{boundary:y,rootBoundary:v,padding:_,altBoundary:b}),C=getBasePlacement(t.placement),T=getVariation(t.placement),x=!T,A=getMainAxisFromPlacement(C),D=function getAltAxis(e){return"x"===e?"y":"x"}(A),L=t.modifiersData.popperOffsets,N=t.rects.reference,I=t.rects.popper,R="function"===typeof k?k(Object.assign({},t.rects,{placement:t.placement})):k,M={x:0,y:0};if(L){if(h||g){var P="y"===A?se:le,j="y"===A?ae:ce,F="y"===A?"height":"width",q=L[A],Q=L[A]+O[P],B=L[A]-O[j],K=E?-I[F]/2:0,U=T===he?N[F]:I[F],V=T===he?-I[F]:-N[F],H=t.elements.arrow,W=E&&H?getLayoutRect(H):{width:0,height:0},z=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},G=z[P],Y=z[j],J=within(0,N[F],W[F]),X=x?N[F]/2-K-J-G-R:U-J-G-R,Z=x?-N[F]/2+K+J+Y+R:V+J+Y+R,ee=t.elements.arrow&&getOffsetParent(t.elements.arrow),te=ee?"y"===A?ee.clientTop||0:ee.clientLeft||0:0,ne=t.modifiersData.offset?t.modifiersData.offset[t.placement][A]:0,re=L[A]+X-ne-te,ie=L[A]+Z-ne;if(h){var oe=within(E?Ne(Q,re):Q,q,E?Le(B,ie):B);L[A]=oe,M[A]=oe-q}if(g){var ue="x"===A?se:le,pe="x"===A?ae:ce,de=L[D],fe=de+O[ue],me=de-O[pe],ge=within(E?Ne(fe,re):fe,de,E?Le(me,ie):me);L[D]=ge,M[D]=ge-de}}t.modifiersData[r]=M}},requiresIfExists:["offset"]};function getCompositeRect(e,t,n){void 0===n&&(n=!1);var r=getDocumentElement(t),i=getBoundingClientRect(e),h=isHTMLElement(t),d={scrollLeft:0,scrollTop:0},g={x:0,y:0};return(h||!h&&!n)&&(("body"!==getNodeName(t)||isScrollParent(r))&&(d=function getNodeScroll(e){return e!==getWindow(e)&&isHTMLElement(e)?function getHTMLElementScroll(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}(e):getWindowScroll(e)}(t)),isHTMLElement(t)?((g=getBoundingClientRect(t)).x+=t.clientLeft,g.y+=t.clientTop):r&&(g.x=getWindowScrollBarX(r))),{x:i.left+d.scrollLeft-g.x,y:i.top+d.scrollTop-g.y,width:i.width,height:i.height}}function order(e){var t=new Map,n=new Set,r=[];function sort(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach((function(e){if(!n.has(e)){var r=t.get(e);r&&sort(r)}})),r.push(e)}return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){n.has(e.name)||sort(e)})),r}var He={placement:"bottom",modifiers:[],strategy:"absolute"};function areValidElements(){for(var e=arguments.length,t=new Array(e),n=0;n{do{e+=Math.floor(1e6*Math.random())}while(document.getElementById(e));return e},getSelector=e=>{let t=e.getAttribute("data-bs-target");if(!t||"#"===t){let n=e.getAttribute("href");if(!n||!n.includes("#")&&!n.startsWith("."))return null;n.includes("#")&&!n.startsWith("#")&&(n="#"+n.split("#")[1]),t=n&&"#"!==n?n.trim():null}return t},getSelectorFromElement=e=>{const t=getSelector(e);return t&&document.querySelector(t)?t:null},getElementFromSelector=e=>{const t=getSelector(e);return t?document.querySelector(t):null},getTransitionDurationFromElement=e=>{if(!e)return 0;let{transitionDuration:t,transitionDelay:n}=window.getComputedStyle(e);const r=Number.parseFloat(t),i=Number.parseFloat(n);return r||i?(t=t.split(",")[0],n=n.split(",")[0],1e3*(Number.parseFloat(t)+Number.parseFloat(n))):0},triggerTransitionEnd=e=>{e.dispatchEvent(new Event(Ye))},bootstrap_esm_isElement=e=>(e[0]||e).nodeType,emulateTransitionEnd=(e,t)=>{let n=!1;const r=t+5;e.addEventListener(Ye,(function listener(){n=!0,e.removeEventListener(Ye,listener)})),setTimeout((()=>{n||triggerTransitionEnd(e)}),r)},typeCheckConfig=(e,t,n)=>{Object.keys(n).forEach((r=>{const i=n[r],h=t[r],d=h&&bootstrap_esm_isElement(h)?"element":null===(g=h)||void 0===g?`${g}`:{}.toString.call(g).match(/\s([a-z]+)/i)[1].toLowerCase();var g;if(!new RegExp(i).test(d))throw new TypeError(`${e.toUpperCase()}: Option "${r}" provided type "${d}" but expected type "${i}".`)}))},isVisible=e=>{if(!e)return!1;if(e.style&&e.parentNode&&e.parentNode.style){const t=getComputedStyle(e),n=getComputedStyle(e.parentNode);return"none"!==t.display&&"none"!==n.display&&"hidden"!==t.visibility}return!1},isDisabled=e=>!e||e.nodeType!==Node.ELEMENT_NODE||(!!e.classList.contains("disabled")||("undefined"!==typeof e.disabled?e.disabled:e.hasAttribute("disabled")&&"false"!==e.getAttribute("disabled"))),findShadowRoot=e=>{if(!document.documentElement.attachShadow)return null;if("function"===typeof e.getRootNode){const t=e.getRootNode();return t instanceof ShadowRoot?t:null}return e instanceof ShadowRoot?e:e.parentNode?findShadowRoot(e.parentNode):null},noop=()=>function(){},reflow=e=>e.offsetHeight,getjQuery=()=>{const{jQuery:jQuery}=window;return jQuery&&!document.body.hasAttribute("data-bs-no-jquery")?jQuery:null},isRTL=()=>"rtl"===document.documentElement.dir,defineJQueryPlugin=(e,t)=>{var n;n=()=>{const $=getjQuery();if($){const n=$.fn[e];$.fn[e]=t.jQueryInterface,$.fn[e].Constructor=t,$.fn[e].noConflict=()=>($.fn[e]=n,t.jQueryInterface)}},"loading"===document.readyState?document.addEventListener("DOMContentLoaded",n):n()},Je=new Map;var Xe={set(e,t,n){Je.has(e)||Je.set(e,new Map);const r=Je.get(e);r.has(t)||0===r.size?r.set(t,n):console.error(`Bootstrap doesn't allow more than one instance per element. Bound instance: ${Array.from(r.keys())[0]}.`)},get:(e,t)=>Je.has(e)&&Je.get(e).get(t)||null,remove(e,t){if(!Je.has(e))return;const n=Je.get(e);n.delete(t),0===n.size&&Je.delete(e)}};const Ze=/[^.]*(?=\..*)\.|.*/,et=/\..*/,tt=/::\d+$/,nt={};let rt=1;const it={mouseenter:"mouseover",mouseleave:"mouseout"},ot=new Set(["click","dblclick","mouseup","mousedown","contextmenu","mousewheel","DOMMouseScroll","mouseover","mouseout","mousemove","selectstart","selectend","keydown","keypress","keyup","orientationchange","touchstart","touchmove","touchend","touchcancel","pointerdown","pointermove","pointerup","pointerleave","pointercancel","gesturestart","gesturechange","gestureend","focus","blur","change","reset","select","submit","focusin","focusout","load","unload","beforeunload","resize","move","DOMContentLoaded","readystatechange","error","abort","scroll"]);function getUidEvent(e,t){return t&&`${t}::${rt++}`||e.uidEvent||rt++}function getEvent(e){const t=getUidEvent(e);return e.uidEvent=t,nt[t]=nt[t]||{},nt[t]}function findHandler(e,t,n=null){const r=Object.keys(e);for(let i=0,h=r.length;i{!function removeNamespacedHandlers(e,t,n,r){const i=t[n]||{};Object.keys(i).forEach((h=>{if(h.includes(r)){const r=i[h];removeHandler(e,t,n,r.originalHandler,r.delegationSelector)}}))}(e,y,n,t.slice(1))}));const b=y[d]||{};Object.keys(b).forEach((n=>{const r=n.replace(tt,"");if(!g||t.includes(r)){const t=b[n];removeHandler(e,y,d,t.originalHandler,t.delegationSelector)}}))},trigger(e,t,n){if("string"!==typeof t||!e)return null;const $=getjQuery(),r=t.replace(et,""),i=t!==r,h=ot.has(r);let d,g=!0,y=!0,v=!1,b=null;return i&&$&&(d=$.Event(t,n),$(e).trigger(d),g=!d.isPropagationStopped(),y=!d.isImmediatePropagationStopped(),v=d.isDefaultPrevented()),h?(b=document.createEvent("HTMLEvents"),b.initEvent(r,g,!0)):b=new CustomEvent(t,{bubbles:g,cancelable:!0}),"undefined"!==typeof n&&Object.keys(n).forEach((e=>{Object.defineProperty(b,e,{get:()=>n[e]})})),v&&b.preventDefault(),y&&e.dispatchEvent(b),b.defaultPrevented&&"undefined"!==typeof d&&d.preventDefault(),b}};class BaseComponent{constructor(e){(e="string"===typeof e?document.querySelector(e):e)&&(this._element=e,Xe.set(this._element,this.constructor.DATA_KEY,this))}dispose(){Xe.remove(this._element,this.constructor.DATA_KEY),this._element=null}static getInstance(e){return Xe.get(e,this.DATA_KEY)}static get VERSION(){return"5.0.0-beta3"}}const at="bs.alert";class Alert extends BaseComponent{static get DATA_KEY(){return at}close(e){const t=e?this._getRootElement(e):this._element,n=this._triggerCloseEvent(t);null===n||n.defaultPrevented||this._removeElement(t)}_getRootElement(e){return getElementFromSelector(e)||e.closest(".alert")}_triggerCloseEvent(e){return st.trigger(e,"close.bs.alert")}_removeElement(e){if(e.classList.remove("show"),!e.classList.contains("fade"))return void this._destroyElement(e);const t=getTransitionDurationFromElement(e);st.one(e,"transitionend",(()=>this._destroyElement(e))),emulateTransitionEnd(e,t)}_destroyElement(e){e.parentNode&&e.parentNode.removeChild(e),st.trigger(e,"closed.bs.alert")}static jQueryInterface(e){return this.each((function(){let t=Xe.get(this,at);t||(t=new Alert(this)),"close"===e&&t[e](this)}))}static handleDismiss(e){return function(t){t&&t.preventDefault(),e.close(this)}}}st.on(document,"click.bs.alert.data-api",'[data-bs-dismiss="alert"]',Alert.handleDismiss(new Alert)),defineJQueryPlugin("alert",Alert);const ct="bs.button",lt='[data-bs-toggle="button"]';class Button extends BaseComponent{static get DATA_KEY(){return ct}toggle(){this._element.setAttribute("aria-pressed",this._element.classList.toggle("active"))}static jQueryInterface(e){return this.each((function(){let t=Xe.get(this,ct);t||(t=new Button(this)),"toggle"===e&&t[e]()}))}}function normalizeData(e){return"true"===e||"false"!==e&&(e===Number(e).toString()?Number(e):""===e||"null"===e?null:e)}function normalizeDataKey(e){return e.replace(/[A-Z]/g,(e=>`-${e.toLowerCase()}`))}st.on(document,"click.bs.button.data-api",lt,(e=>{e.preventDefault();const t=e.target.closest(lt);let n=Xe.get(t,ct);n||(n=new Button(t)),n.toggle()})),defineJQueryPlugin("button",Button);const ut={setDataAttribute(e,t,n){e.setAttribute(`data-bs-${normalizeDataKey(t)}`,n)},removeDataAttribute(e,t){e.removeAttribute(`data-bs-${normalizeDataKey(t)}`)},getDataAttributes(e){if(!e)return{};const t={};return Object.keys(e.dataset).filter((e=>e.startsWith("bs"))).forEach((n=>{let r=n.replace(/^bs/,"");r=r.charAt(0).toLowerCase()+r.slice(1,r.length),t[r]=normalizeData(e.dataset[n])})),t},getDataAttribute:(e,t)=>normalizeData(e.getAttribute(`data-bs-${normalizeDataKey(t)}`)),offset(e){const t=e.getBoundingClientRect();return{top:t.top+document.body.scrollTop,left:t.left+document.body.scrollLeft}},position:e=>({top:e.offsetTop,left:e.offsetLeft})},pt={find:(e,t=document.documentElement)=>[].concat(...Element.prototype.querySelectorAll.call(t,e)),findOne:(e,t=document.documentElement)=>Element.prototype.querySelector.call(t,e),children:(e,t)=>[].concat(...e.children).filter((e=>e.matches(t))),parents(e,t){const n=[];let r=e.parentNode;for(;r&&r.nodeType===Node.ELEMENT_NODE&&3!==r.nodeType;)r.matches(t)&&n.push(r),r=r.parentNode;return n},prev(e,t){let n=e.previousElementSibling;for(;n;){if(n.matches(t))return[n];n=n.previousElementSibling}return[]},next(e,t){let n=e.nextElementSibling;for(;n;){if(n.matches(t))return[n];n=n.nextElementSibling}return[]}},ht="carousel",dt="bs.carousel",ft=".bs.carousel",mt={interval:5e3,keyboard:!0,slide:!1,pause:"hover",wrap:!0,touch:!0},gt={interval:"(number|boolean)",keyboard:"boolean",slide:"(boolean|string)",pause:"(string|boolean)",wrap:"boolean",touch:"boolean"},yt="next",vt="prev",bt="left",_t="right",wt="slid.bs.carousel",Et="active",St=".active.carousel-item",kt="touch";class Carousel extends BaseComponent{constructor(e,t){super(e),this._items=null,this._interval=null,this._activeElement=null,this._isPaused=!1,this._isSliding=!1,this.touchTimeout=null,this.touchStartX=0,this.touchDeltaX=0,this._config=this._getConfig(t),this._indicatorsElement=pt.findOne(".carousel-indicators",this._element),this._touchSupported="ontouchstart"in document.documentElement||navigator.maxTouchPoints>0,this._pointerEvent=Boolean(window.PointerEvent),this._addEventListeners()}static get Default(){return mt}static get DATA_KEY(){return dt}next(){this._isSliding||this._slide(yt)}nextWhenVisible(){!document.hidden&&isVisible(this._element)&&this.next()}prev(){this._isSliding||this._slide(vt)}pause(e){e||(this._isPaused=!0),pt.findOne(".carousel-item-next, .carousel-item-prev",this._element)&&(triggerTransitionEnd(this._element),this.cycle(!0)),clearInterval(this._interval),this._interval=null}cycle(e){e||(this._isPaused=!1),this._interval&&(clearInterval(this._interval),this._interval=null),this._config&&this._config.interval&&!this._isPaused&&(this._updateInterval(),this._interval=setInterval((document.visibilityState?this.nextWhenVisible:this.next).bind(this),this._config.interval))}to(e){this._activeElement=pt.findOne(St,this._element);const t=this._getItemIndex(this._activeElement);if(e>this._items.length-1||e<0)return;if(this._isSliding)return void st.one(this._element,wt,(()=>this.to(e)));if(t===e)return this.pause(),void this.cycle();const n=e>t?yt:vt;this._slide(n,this._items[e])}dispose(){st.off(this._element,ft),this._items=null,this._config=null,this._interval=null,this._isPaused=null,this._isSliding=null,this._activeElement=null,this._indicatorsElement=null,super.dispose()}_getConfig(e){return e={...mt,...e},typeCheckConfig(ht,e,gt),e}_handleSwipe(){const e=Math.abs(this.touchDeltaX);if(e<=40)return;const t=e/this.touchDeltaX;this.touchDeltaX=0,t&&this._slide(t>0?_t:bt)}_addEventListeners(){this._config.keyboard&&st.on(this._element,"keydown.bs.carousel",(e=>this._keydown(e))),"hover"===this._config.pause&&(st.on(this._element,"mouseenter.bs.carousel",(e=>this.pause(e))),st.on(this._element,"mouseleave.bs.carousel",(e=>this.cycle(e)))),this._config.touch&&this._touchSupported&&this._addTouchEventListeners()}_addTouchEventListeners(){const start=e=>{!this._pointerEvent||"pen"!==e.pointerType&&e.pointerType!==kt?this._pointerEvent||(this.touchStartX=e.touches[0].clientX):this.touchStartX=e.clientX},move=e=>{this.touchDeltaX=e.touches&&e.touches.length>1?0:e.touches[0].clientX-this.touchStartX},end=e=>{!this._pointerEvent||"pen"!==e.pointerType&&e.pointerType!==kt||(this.touchDeltaX=e.clientX-this.touchStartX),this._handleSwipe(),"hover"===this._config.pause&&(this.pause(),this.touchTimeout&&clearTimeout(this.touchTimeout),this.touchTimeout=setTimeout((e=>this.cycle(e)),500+this._config.interval))};pt.find(".carousel-item img",this._element).forEach((e=>{st.on(e,"dragstart.bs.carousel",(e=>e.preventDefault()))})),this._pointerEvent?(st.on(this._element,"pointerdown.bs.carousel",(e=>start(e))),st.on(this._element,"pointerup.bs.carousel",(e=>end(e))),this._element.classList.add("pointer-event")):(st.on(this._element,"touchstart.bs.carousel",(e=>start(e))),st.on(this._element,"touchmove.bs.carousel",(e=>move(e))),st.on(this._element,"touchend.bs.carousel",(e=>end(e))))}_keydown(e){/input|textarea/i.test(e.target.tagName)||("ArrowLeft"===e.key?(e.preventDefault(),this._slide(bt)):"ArrowRight"===e.key&&(e.preventDefault(),this._slide(_t)))}_getItemIndex(e){return this._items=e&&e.parentNode?pt.find(".carousel-item",e.parentNode):[],this._items.indexOf(e)}_getItemByOrder(e,t){const n=e===yt,r=e===vt,i=this._getItemIndex(t),h=this._items.length-1;if((r&&0===i||n&&i===h)&&!this._config.wrap)return t;const d=(i+(r?-1:1))%this._items.length;return-1===d?this._items[this._items.length-1]:this._items[d]}_triggerSlideEvent(e,t){const n=this._getItemIndex(e),r=this._getItemIndex(pt.findOne(St,this._element));return st.trigger(this._element,"slide.bs.carousel",{relatedTarget:e,direction:t,from:r,to:n})}_setActiveIndicatorElement(e){if(this._indicatorsElement){const t=pt.findOne(".active",this._indicatorsElement);t.classList.remove(Et),t.removeAttribute("aria-current");const n=pt.find("[data-bs-target]",this._indicatorsElement);for(let r=0;r{h.classList.remove(v,b),h.classList.add(Et),r.classList.remove(Et,b,v),this._isSliding=!1,setTimeout((()=>{st.trigger(this._element,wt,{relatedTarget:h,direction:_,from:i,to:d})}),0)})),emulateTransitionEnd(r,e)}else r.classList.remove(Et),h.classList.add(Et),this._isSliding=!1,st.trigger(this._element,wt,{relatedTarget:h,direction:_,from:i,to:d});g&&this.cycle()}}_directionToOrder(e){return[_t,bt].includes(e)?isRTL()?e===_t?vt:yt:e===_t?yt:vt:e}_orderToDirection(e){return[yt,vt].includes(e)?isRTL()?e===yt?bt:_t:e===yt?_t:bt:e}static carouselInterface(e,t){let n=Xe.get(e,dt),r={...mt,...ut.getDataAttributes(e)};"object"===typeof t&&(r={...r,...t});const i="string"===typeof t?t:r.slide;if(n||(n=new Carousel(e,r)),"number"===typeof t)n.to(t);else if("string"===typeof i){if("undefined"===typeof n[i])throw new TypeError(`No method named "${i}"`);n[i]()}else r.interval&&r.ride&&(n.pause(),n.cycle())}static jQueryInterface(e){return this.each((function(){Carousel.carouselInterface(this,e)}))}static dataApiClickHandler(e){const t=getElementFromSelector(this);if(!t||!t.classList.contains("carousel"))return;const n={...ut.getDataAttributes(t),...ut.getDataAttributes(this)},r=this.getAttribute("data-bs-slide-to");r&&(n.interval=!1),Carousel.carouselInterface(t,n),r&&Xe.get(t,dt).to(r),e.preventDefault()}}st.on(document,"click.bs.carousel.data-api","[data-bs-slide], [data-bs-slide-to]",Carousel.dataApiClickHandler),st.on(window,"load.bs.carousel.data-api",(()=>{const e=pt.find('[data-bs-ride="carousel"]');for(let t=0,n=e.length;te===this._element));null!==t&&i.length&&(this._selector=t,this._triggerArray.push(e))}this._parent=this._config.parent?this._getParent():null,this._config.parent||this._addAriaAndCollapsedClass(this._element,this._triggerArray),this._config.toggle&&this.toggle()}static get Default(){return Tt}static get DATA_KEY(){return Ct}toggle(){this._element.classList.contains(At)?this.hide():this.show()}show(){if(this._isTransitioning||this._element.classList.contains(At))return;let e,t;this._parent&&(e=pt.find(".show, .collapsing",this._parent).filter((e=>"string"===typeof this._config.parent?e.getAttribute("data-bs-parent")===this._config.parent:e.classList.contains(Dt))),0===e.length&&(e=null));const n=pt.findOne(this._selector);if(e){const r=e.find((e=>n!==e));if(t=r?Xe.get(r,Ct):null,t&&t._isTransitioning)return}if(st.trigger(this._element,"show.bs.collapse").defaultPrevented)return;e&&e.forEach((e=>{n!==e&&Collapse.collapseInterface(e,"hide"),t||Xe.set(e,Ct,null)}));const r=this._getDimension();this._element.classList.remove(Dt),this._element.classList.add(Lt),this._element.style[r]=0,this._triggerArray.length&&this._triggerArray.forEach((e=>{e.classList.remove(Nt),e.setAttribute("aria-expanded",!0)})),this.setTransitioning(!0);const i=`scroll${r[0].toUpperCase()+r.slice(1)}`,h=getTransitionDurationFromElement(this._element);st.one(this._element,"transitionend",(()=>{this._element.classList.remove(Lt),this._element.classList.add(Dt,At),this._element.style[r]="",this.setTransitioning(!1),st.trigger(this._element,"shown.bs.collapse")})),emulateTransitionEnd(this._element,h),this._element.style[r]=`${this._element[i]}px`}hide(){if(this._isTransitioning||!this._element.classList.contains(At))return;if(st.trigger(this._element,"hide.bs.collapse").defaultPrevented)return;const e=this._getDimension();this._element.style[e]=`${this._element.getBoundingClientRect()[e]}px`,reflow(this._element),this._element.classList.add(Lt),this._element.classList.remove(Dt,At);const t=this._triggerArray.length;if(t>0)for(let r=0;r{this.setTransitioning(!1),this._element.classList.remove(Lt),this._element.classList.add(Dt),st.trigger(this._element,"hidden.bs.collapse")})),emulateTransitionEnd(this._element,n)}setTransitioning(e){this._isTransitioning=e}dispose(){super.dispose(),this._config=null,this._parent=null,this._triggerArray=null,this._isTransitioning=null}_getConfig(e){return(e={...Tt,...e}).toggle=Boolean(e.toggle),typeCheckConfig(Ot,e,xt),e}_getDimension(){return this._element.classList.contains(It)?It:"height"}_getParent(){let{parent:e}=this._config;bootstrap_esm_isElement(e)?"undefined"===typeof e.jquery&&"undefined"===typeof e[0]||(e=e[0]):e=pt.findOne(e);const t=`${Rt}[data-bs-parent="${e}"]`;return pt.find(t,e).forEach((e=>{const t=getElementFromSelector(e);this._addAriaAndCollapsedClass(t,[e])})),e}_addAriaAndCollapsedClass(e,t){if(!e||!t.length)return;const n=e.classList.contains(At);t.forEach((e=>{n?e.classList.remove(Nt):e.classList.add(Nt),e.setAttribute("aria-expanded",n)}))}static collapseInterface(e,t){let n=Xe.get(e,Ct);const r={...Tt,...ut.getDataAttributes(e),..."object"===typeof t&&t?t:{}};if(!n&&r.toggle&&"string"===typeof t&&/show|hide/.test(t)&&(r.toggle=!1),n||(n=new Collapse(e,r)),"string"===typeof t){if("undefined"===typeof n[t])throw new TypeError(`No method named "${t}"`);n[t]()}}static jQueryInterface(e){return this.each((function(){Collapse.collapseInterface(this,e)}))}}st.on(document,"click.bs.collapse.data-api",Rt,(function(e){("A"===e.target.tagName||e.delegateTarget&&"A"===e.delegateTarget.tagName)&&e.preventDefault();const t=ut.getDataAttributes(this),n=getSelectorFromElement(this);pt.find(n).forEach((e=>{const n=Xe.get(e,Ct);let r;n?(null===n._parent&&"string"===typeof t.parent&&(n._config.parent=t.parent,n._parent=n._getParent()),r="toggle"):r=t,Collapse.collapseInterface(e,r)}))})),defineJQueryPlugin(Ot,Collapse);const Mt="dropdown",Pt="bs.dropdown",jt=".bs.dropdown",Ft="Escape",qt="Space",Qt="ArrowUp",Bt="ArrowDown",Kt=new RegExp("ArrowUp|ArrowDown|Escape"),Ut="hide.bs.dropdown",Vt="hidden.bs.dropdown",$t="click.bs.dropdown.data-api",Ht="keydown.bs.dropdown.data-api",Wt="disabled",zt="show",Gt='[data-bs-toggle="dropdown"]',Yt=".dropdown-menu",Jt=isRTL()?"top-end":"top-start",Xt=isRTL()?"top-start":"top-end",Zt=isRTL()?"bottom-end":"bottom-start",en=isRTL()?"bottom-start":"bottom-end",tn=isRTL()?"left-start":"right-start",nn=isRTL()?"right-start":"left-start",rn={offset:[0,2],boundary:"clippingParents",reference:"toggle",display:"dynamic",popperConfig:null},sn={offset:"(array|string|function)",boundary:"(string|element)",reference:"(string|element|object)",display:"string",popperConfig:"(null|object|function)"};class Dropdown extends BaseComponent{constructor(e,t){super(e),this._popper=null,this._config=this._getConfig(t),this._menu=this._getMenuElement(),this._inNavbar=this._detectNavbar(),this._addEventListeners()}static get Default(){return rn}static get DefaultType(){return sn}static get DATA_KEY(){return Pt}toggle(){if(this._element.disabled||this._element.classList.contains(Wt))return;const e=this._element.classList.contains(zt);Dropdown.clearMenus(),e||this.show()}show(){if(this._element.disabled||this._element.classList.contains(Wt)||this._menu.classList.contains(zt))return;const t=Dropdown.getParentFromElement(this._element),n={relatedTarget:this._element};if(!st.trigger(this._element,"show.bs.dropdown",n).defaultPrevented){if(this._inNavbar)ut.setDataAttribute(this._menu,"popper","none");else{if("undefined"===typeof e)throw new TypeError("Bootstrap's dropdowns require Popper (https://popper.js.org)");let n=this._element;"parent"===this._config.reference?n=t:bootstrap_esm_isElement(this._config.reference)?(n=this._config.reference,"undefined"!==typeof this._config.reference.jquery&&(n=this._config.reference[0])):"object"===typeof this._config.reference&&(n=this._config.reference);const r=this._getPopperConfig(),i=r.modifiers.find((e=>"applyStyles"===e.name&&!1===e.enabled));this._popper=ze(n,this._menu,r),i&&ut.setDataAttribute(this._menu,"popper","static")}"ontouchstart"in document.documentElement&&!t.closest(".navbar-nav")&&[].concat(...document.body.children).forEach((e=>st.on(e,"mouseover",null,(function(){})))),this._element.focus(),this._element.setAttribute("aria-expanded",!0),this._menu.classList.toggle(zt),this._element.classList.toggle(zt),st.trigger(this._element,"shown.bs.dropdown",n)}}hide(){if(this._element.disabled||this._element.classList.contains(Wt)||!this._menu.classList.contains(zt))return;const e={relatedTarget:this._element};st.trigger(this._element,Ut,e).defaultPrevented||(this._popper&&this._popper.destroy(),this._menu.classList.toggle(zt),this._element.classList.toggle(zt),ut.removeDataAttribute(this._menu,"popper"),st.trigger(this._element,Vt,e))}dispose(){st.off(this._element,jt),this._menu=null,this._popper&&(this._popper.destroy(),this._popper=null),super.dispose()}update(){this._inNavbar=this._detectNavbar(),this._popper&&this._popper.update()}_addEventListeners(){st.on(this._element,"click.bs.dropdown",(e=>{e.preventDefault(),this.toggle()}))}_getConfig(e){if(e={...this.constructor.Default,...ut.getDataAttributes(this._element),...e},typeCheckConfig(Mt,e,this.constructor.DefaultType),"object"===typeof e.reference&&!bootstrap_esm_isElement(e.reference)&&"function"!==typeof e.reference.getBoundingClientRect)throw new TypeError(`${Mt.toUpperCase()}: Option "reference" provided type "object" without a required "getBoundingClientRect" method.`);return e}_getMenuElement(){return pt.next(this._element,Yt)[0]}_getPlacement(){const e=this._element.parentNode;if(e.classList.contains("dropend"))return tn;if(e.classList.contains("dropstart"))return nn;const t="end"===getComputedStyle(this._menu).getPropertyValue("--bs-position").trim();return e.classList.contains("dropup")?t?Xt:Jt:t?en:Zt}_detectNavbar(){return null!==this._element.closest(".navbar")}_getOffset(){const{offset:e}=this._config;return"string"===typeof e?e.split(",").map((e=>Number.parseInt(e,10))):"function"===typeof e?t=>e(t,this._element):e}_getPopperConfig(){const e={placement:this._getPlacement(),modifiers:[{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"offset",options:{offset:this._getOffset()}}]};return"static"===this._config.display&&(e.modifiers=[{name:"applyStyles",enabled:!1}]),{...e,..."function"===typeof this._config.popperConfig?this._config.popperConfig(e):this._config.popperConfig}}static dropdownInterface(e,t){let n=Xe.get(e,Pt);if(n||(n=new Dropdown(e,"object"===typeof t?t:null)),"string"===typeof t){if("undefined"===typeof n[t])throw new TypeError(`No method named "${t}"`);n[t]()}}static jQueryInterface(e){return this.each((function(){Dropdown.dropdownInterface(this,e)}))}static clearMenus(e){if(e){if(2===e.button||"keyup"===e.type&&"Tab"!==e.key)return;if(/input|select|textarea|form/i.test(e.target.tagName))return}const t=pt.find(Gt);for(let n=0,r=t.length;ne.composedPath().includes(t))))continue;if("keyup"===e.type&&"Tab"===e.key&&h.contains(e.target))continue}st.trigger(t[n],Ut,i).defaultPrevented||("ontouchstart"in document.documentElement&&[].concat(...document.body.children).forEach((e=>st.off(e,"mouseover",null,(function(){})))),t[n].setAttribute("aria-expanded","false"),r._popper&&r._popper.destroy(),h.classList.remove(zt),t[n].classList.remove(zt),ut.removeDataAttribute(h,"popper"),st.trigger(t[n],Vt,i))}}static getParentFromElement(e){return getElementFromSelector(e)||e.parentNode}static dataApiKeydownHandler(e){if(/input|textarea/i.test(e.target.tagName)?e.key===qt||e.key!==Ft&&(e.key!==Bt&&e.key!==Qt||e.target.closest(Yt)):!Kt.test(e.key))return;if(e.preventDefault(),e.stopPropagation(),this.disabled||this.classList.contains(Wt))return;const t=Dropdown.getParentFromElement(this),n=this.classList.contains(zt);if(e.key===Ft){return(this.matches(Gt)?this:pt.prev(this,Gt)[0]).focus(),void Dropdown.clearMenus()}if(!n&&(e.key===Qt||e.key===Bt)){return void(this.matches(Gt)?this:pt.prev(this,Gt)[0]).click()}if(!n||e.key===qt)return void Dropdown.clearMenus();const r=pt.find(".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)",t).filter(isVisible);if(!r.length)return;let i=r.indexOf(e.target);e.key===Qt&&i>0&&i--,e.key===Bt&&ithis.hide(e))),st.on(this._dialog,_n,(()=>{st.one(this._element,"mouseup.dismiss.bs.modal",(e=>{e.target===this._element&&(this._ignoreBackdropClick=!0)}))})),this._showBackdrop((()=>this._showElement(e))))}hide(e){if(e&&e.preventDefault(),!this._isShown||this._isTransitioning)return;if(st.trigger(this._element,"hide.bs.modal").defaultPrevented)return;this._isShown=!1;const t=this._isAnimated();if(t&&(this._isTransitioning=!0),this._setEscapeEvent(),this._setResizeEvent(),st.off(document,gn),this._element.classList.remove(Sn),st.off(this._element,vn),st.off(this._dialog,_n),t){const e=getTransitionDurationFromElement(this._element);st.one(this._element,"transitionend",(e=>this._hideModal(e))),emulateTransitionEnd(this._element,e)}else this._hideModal()}dispose(){[window,this._element,this._dialog].forEach((e=>st.off(e,ln))),super.dispose(),st.off(document,gn),this._config=null,this._dialog=null,this._backdrop=null,this._isShown=null,this._isBodyOverflowing=null,this._ignoreBackdropClick=null,this._isTransitioning=null,this._scrollbarWidth=null}handleUpdate(){this._adjustDialog()}_getConfig(e){return e={...pn,...e},typeCheckConfig(an,e,hn),e}_showElement(e){const t=this._isAnimated(),n=pt.findOne(".modal-body",this._dialog);this._element.parentNode&&this._element.parentNode.nodeType===Node.ELEMENT_NODE||document.body.appendChild(this._element),this._element.style.display="block",this._element.removeAttribute("aria-hidden"),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.scrollTop=0,n&&(n.scrollTop=0),t&&reflow(this._element),this._element.classList.add(Sn),this._config.focus&&this._enforceFocus();const transitionComplete=()=>{this._config.focus&&this._element.focus(),this._isTransitioning=!1,st.trigger(this._element,"shown.bs.modal",{relatedTarget:e})};if(t){const e=getTransitionDurationFromElement(this._dialog);st.one(this._dialog,"transitionend",transitionComplete),emulateTransitionEnd(this._dialog,e)}else transitionComplete()}_enforceFocus(){st.off(document,gn),st.on(document,gn,(e=>{document===e.target||this._element===e.target||this._element.contains(e.target)||this._element.focus()}))}_setEscapeEvent(){this._isShown?st.on(this._element,bn,(e=>{this._config.keyboard&&e.key===un?(e.preventDefault(),this.hide()):this._config.keyboard||e.key!==un||this._triggerBackdropTransition()})):st.off(this._element,bn)}_setResizeEvent(){this._isShown?st.on(window,yn,(()=>this._adjustDialog())):st.off(window,yn)}_hideModal(){this._element.style.display="none",this._element.setAttribute("aria-hidden",!0),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._isTransitioning=!1,this._showBackdrop((()=>{document.body.classList.remove(wn),this._resetAdjustments(),this._resetScrollbar(),st.trigger(this._element,dn)}))}_removeBackdrop(){this._backdrop.parentNode.removeChild(this._backdrop),this._backdrop=null}_showBackdrop(e){const t=this._isAnimated();if(this._isShown&&this._config.backdrop){if(this._backdrop=document.createElement("div"),this._backdrop.className="modal-backdrop",t&&this._backdrop.classList.add(En),document.body.appendChild(this._backdrop),st.on(this._element,vn,(e=>{this._ignoreBackdropClick?this._ignoreBackdropClick=!1:e.target===e.currentTarget&&("static"===this._config.backdrop?this._triggerBackdropTransition():this.hide())})),t&&reflow(this._backdrop),this._backdrop.classList.add(Sn),!t)return void e();const n=getTransitionDurationFromElement(this._backdrop);st.one(this._backdrop,"transitionend",e),emulateTransitionEnd(this._backdrop,n)}else if(!this._isShown&&this._backdrop){this._backdrop.classList.remove(Sn);const callbackRemove=()=>{this._removeBackdrop(),e()};if(t){const e=getTransitionDurationFromElement(this._backdrop);st.one(this._backdrop,"transitionend",callbackRemove),emulateTransitionEnd(this._backdrop,e)}else callbackRemove()}else e()}_isAnimated(){return this._element.classList.contains(En)}_triggerBackdropTransition(){if(st.trigger(this._element,"hidePrevented.bs.modal").defaultPrevented)return;const e=this._element.scrollHeight>document.documentElement.clientHeight;e||(this._element.style.overflowY="hidden"),this._element.classList.add(kn);const t=getTransitionDurationFromElement(this._dialog);st.off(this._element,"transitionend"),st.one(this._element,"transitionend",(()=>{this._element.classList.remove(kn),e||(st.one(this._element,"transitionend",(()=>{this._element.style.overflowY=""})),emulateTransitionEnd(this._element,t))})),emulateTransitionEnd(this._element,t),this._element.focus()}_adjustDialog(){const e=this._element.scrollHeight>document.documentElement.clientHeight;(!this._isBodyOverflowing&&e&&!isRTL()||this._isBodyOverflowing&&!e&&isRTL())&&(this._element.style.paddingLeft=`${this._scrollbarWidth}px`),(this._isBodyOverflowing&&!e&&!isRTL()||!this._isBodyOverflowing&&e&&isRTL())&&(this._element.style.paddingRight=`${this._scrollbarWidth}px`)}_resetAdjustments(){this._element.style.paddingLeft="",this._element.style.paddingRight=""}_checkScrollbar(){const e=document.body.getBoundingClientRect();this._isBodyOverflowing=Math.round(e.left+e.right)e+this._scrollbarWidth)),this._setElementAttributes(Cn,"marginRight",(e=>e-this._scrollbarWidth)),this._setElementAttributes("body","paddingRight",(e=>e+this._scrollbarWidth))),document.body.classList.add(wn)}_setElementAttributes(e,t,n){pt.find(e).forEach((e=>{if(e!==document.body&&window.innerWidth>e.clientWidth+this._scrollbarWidth)return;const r=e.style[t],i=window.getComputedStyle(e)[t];ut.setDataAttribute(e,t,r),e.style[t]=n(Number.parseFloat(i))+"px"}))}_resetScrollbar(){this._resetElementAttributes(On,"paddingRight"),this._resetElementAttributes(Cn,"marginRight"),this._resetElementAttributes("body","paddingRight")}_resetElementAttributes(e,t){pt.find(e).forEach((e=>{const n=ut.getDataAttribute(e,t);"undefined"===typeof n&&e===document.body?e.style[t]="":(ut.removeDataAttribute(e,t),e.style[t]=n)}))}_getScrollbarWidth(){const e=document.createElement("div");e.className="modal-scrollbar-measure",document.body.appendChild(e);const t=e.getBoundingClientRect().width-e.clientWidth;return document.body.removeChild(e),t}static jQueryInterface(e,t){return this.each((function(){let n=Xe.get(this,cn);const r={...pn,...ut.getDataAttributes(this),..."object"===typeof e&&e?e:{}};if(n||(n=new Modal(this,r)),"string"===typeof e){if("undefined"===typeof n[e])throw new TypeError(`No method named "${e}"`);n[e](t)}}))}}st.on(document,"click.bs.modal.data-api",'[data-bs-toggle="modal"]',(function(e){const t=getElementFromSelector(this);"A"!==this.tagName&&"AREA"!==this.tagName||e.preventDefault(),st.one(t,mn,(e=>{e.defaultPrevented||st.one(t,dn,(()=>{isVisible(this)&&this.focus()}))}));let n=Xe.get(t,cn);if(!n){const e={...ut.getDataAttributes(t),...ut.getDataAttributes(this)};n=new Modal(t,e)}n.toggle(this)})),defineJQueryPlugin(an,Modal);const Tn=".fixed-top, .fixed-bottom, .is-fixed",xn=".sticky-top",getWidth=()=>{const e=document.documentElement.clientWidth;return Math.abs(window.innerWidth-e)},_setElementAttributes=(e,t,n)=>{const r=getWidth();pt.find(e).forEach((e=>{if(e!==document.body&&window.innerWidth>e.clientWidth+r)return;const i=e.style[t],h=window.getComputedStyle(e)[t];ut.setDataAttribute(e,t,i),e.style[t]=n(Number.parseFloat(h))+"px"}))},_resetElementAttributes=(e,t)=>{pt.find(e).forEach((e=>{const n=ut.getDataAttribute(e,t);"undefined"===typeof n&&e===document.body?e.style.removeProperty(t):(ut.removeDataAttribute(e,t),e.style[t]=n)}))},An="offcanvas",Dn="bs.offcanvas",Ln={backdrop:!0,keyboard:!0,scroll:!1},Nn={backdrop:"boolean",keyboard:"boolean",scroll:"boolean"},In="offcanvas-backdrop",Rn="show",Mn="offcanvas-toggling",Pn=".offcanvas.show",jn="hidden.bs.offcanvas",Fn="focusin.bs.offcanvas",qn="click.bs.offcanvas.data-api";class Offcanvas extends BaseComponent{constructor(e,t){super(e),this._config=this._getConfig(t),this._isShown=!1,this._addEventListeners()}static get Default(){return Ln}static get DATA_KEY(){return Dn}toggle(e){return this._isShown?this.hide():this.show(e)}show(e){if(this._isShown)return;if(st.trigger(this._element,"show.bs.offcanvas",{relatedTarget:e}).defaultPrevented)return;this._isShown=!0,this._element.style.visibility="visible",this._config.backdrop&&document.body.classList.add(In),this._config.scroll||((e=getWidth())=>{document.body.style.overflow="hidden",_setElementAttributes(Tn,"paddingRight",(t=>t+e)),_setElementAttributes(xn,"marginRight",(t=>t-e)),_setElementAttributes("body","paddingRight",(t=>t+e))})(),this._element.classList.add(Mn),this._element.removeAttribute("aria-hidden"),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.classList.add(Rn);setTimeout((()=>{this._element.classList.remove(Mn),st.trigger(this._element,"shown.bs.offcanvas",{relatedTarget:e}),this._enforceFocusOnElement(this._element)}),getTransitionDurationFromElement(this._element))}hide(){if(!this._isShown)return;if(st.trigger(this._element,"hide.bs.offcanvas").defaultPrevented)return;this._element.classList.add(Mn),st.off(document,Fn),this._element.blur(),this._isShown=!1,this._element.classList.remove(Rn);setTimeout((()=>{this._element.setAttribute("aria-hidden",!0),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._element.style.visibility="hidden",this._config.backdrop&&document.body.classList.remove(In),this._config.scroll||(document.body.style.overflow="auto",_resetElementAttributes(Tn,"paddingRight"),_resetElementAttributes(xn,"marginRight"),_resetElementAttributes("body","paddingRight")),st.trigger(this._element,jn),this._element.classList.remove(Mn)}),getTransitionDurationFromElement(this._element))}_getConfig(e){return e={...Ln,...ut.getDataAttributes(this._element),..."object"===typeof e?e:{}},typeCheckConfig(An,e,Nn),e}_enforceFocusOnElement(e){st.off(document,Fn),st.on(document,Fn,(t=>{document===t.target||e===t.target||e.contains(t.target)||e.focus()})),e.focus()}_addEventListeners(){st.on(this._element,"click.dismiss.bs.offcanvas",'[data-bs-dismiss="offcanvas"]',(()=>this.hide())),st.on(document,"keydown",(e=>{this._config.keyboard&&"Escape"===e.key&&this.hide()})),st.on(document,qn,(e=>{const t=pt.findOne(getSelectorFromElement(e.target));this._element.contains(e.target)||t===this._element||this.hide()}))}static jQueryInterface(e){return this.each((function(){const t=Xe.get(this,Dn)||new Offcanvas(this,"object"===typeof e?e:{});if("string"===typeof e){if(void 0===t[e]||e.startsWith("_")||"constructor"===e)throw new TypeError(`No method named "${e}"`);t[e](this)}}))}}st.on(document,qn,'[data-bs-toggle="offcanvas"]',(function(e){const t=getElementFromSelector(this);if(["A","AREA"].includes(this.tagName)&&e.preventDefault(),isDisabled(this))return;st.one(t,jn,(()=>{isVisible(this)&&this.focus()}));const n=pt.findOne(".offcanvas.show, .offcanvas-toggling");if(n&&n!==t)return;(Xe.get(t,Dn)||new Offcanvas(t)).toggle(this)})),st.on(window,"load.bs.offcanvas.data-api",(()=>{pt.find(Pn).forEach((e=>(Xe.get(e,Dn)||new Offcanvas(e)).show()))})),defineJQueryPlugin(An,Offcanvas);const Qn=new Set(["background","cite","href","itemtype","longdesc","poster","src","xlink:href"]),Bn=/^(?:(?:https?|mailto|ftp|tel|file):|[^#&/:?]*(?:[#/?]|$))/i,Kn=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[\d+/a-z]+=*$/i,allowedAttribute=(e,t)=>{const n=e.nodeName.toLowerCase();if(t.includes(n))return!Qn.has(n)||Boolean(Bn.test(e.nodeValue)||Kn.test(e.nodeValue));const r=t.filter((e=>e instanceof RegExp));for(let i=0,h=r.length;i{allowedAttribute(t,g)||e.removeAttribute(t.nodeName)}))}return r.body.innerHTML}const Vn="tooltip",$n="bs.tooltip",Hn=".bs.tooltip",Wn=new RegExp("(^|\\s)bs-tooltip\\S+","g"),zn=new Set(["sanitize","allowList","sanitizeFn"]),Gn={animation:"boolean",template:"string",title:"(string|element|function)",trigger:"string",delay:"(number|object)",html:"boolean",selector:"(string|boolean)",placement:"(string|function)",offset:"(array|string|function)",container:"(string|element|boolean)",fallbackPlacements:"array",boundary:"(string|element)",customClass:"(string|function)",sanitize:"boolean",sanitizeFn:"(null|function)",allowList:"object",popperConfig:"(null|object|function)"},Yn={AUTO:"auto",TOP:"top",RIGHT:isRTL()?"left":"right",BOTTOM:"bottom",LEFT:isRTL()?"right":"left"},Jn={animation:!0,template:'',trigger:"hover focus",title:"",delay:0,html:!1,selector:!1,placement:"top",offset:[0,0],container:!1,fallbackPlacements:["top","right","bottom","left"],boundary:"clippingParents",customClass:"",sanitize:!0,sanitizeFn:null,allowList:Un,popperConfig:null},Xn={HIDE:"hide.bs.tooltip",HIDDEN:"hidden.bs.tooltip",SHOW:"show.bs.tooltip",SHOWN:"shown.bs.tooltip",INSERTED:"inserted.bs.tooltip",CLICK:"click.bs.tooltip",FOCUSIN:"focusin.bs.tooltip",FOCUSOUT:"focusout.bs.tooltip",MOUSEENTER:"mouseenter.bs.tooltip",MOUSELEAVE:"mouseleave.bs.tooltip"},Zn="fade",er="show",tr="show",nr="out",rr="hover",ir="focus";class Tooltip extends BaseComponent{constructor(t,n){if("undefined"===typeof e)throw new TypeError("Bootstrap's tooltips require Popper (https://popper.js.org)");super(t),this._isEnabled=!0,this._timeout=0,this._hoverState="",this._activeTrigger={},this._popper=null,this.config=this._getConfig(n),this.tip=null,this._setListeners()}static get Default(){return Jn}static get NAME(){return Vn}static get DATA_KEY(){return $n}static get Event(){return Xn}static get EVENT_KEY(){return Hn}static get DefaultType(){return Gn}enable(){this._isEnabled=!0}disable(){this._isEnabled=!1}toggleEnabled(){this._isEnabled=!this._isEnabled}toggle(e){if(this._isEnabled)if(e){const t=this._initializeOnDelegatedTarget(e);t._activeTrigger.click=!t._activeTrigger.click,t._isWithActiveTrigger()?t._enter(null,t):t._leave(null,t)}else{if(this.getTipElement().classList.contains(er))return void this._leave(null,this);this._enter(null,this)}}dispose(){clearTimeout(this._timeout),st.off(this._element,this.constructor.EVENT_KEY),st.off(this._element.closest(".modal"),"hide.bs.modal",this._hideModalHandler),this.tip&&this.tip.parentNode&&this.tip.parentNode.removeChild(this.tip),this._isEnabled=null,this._timeout=null,this._hoverState=null,this._activeTrigger=null,this._popper&&this._popper.destroy(),this._popper=null,this.config=null,this.tip=null,super.dispose()}show(){if("none"===this._element.style.display)throw new Error("Please use show on visible elements");if(!this.isWithContent()||!this._isEnabled)return;const e=st.trigger(this._element,this.constructor.Event.SHOW),t=findShadowRoot(this._element),n=null===t?this._element.ownerDocument.documentElement.contains(this._element):t.contains(this._element);if(e.defaultPrevented||!n)return;const r=this.getTipElement(),i=getUID(this.constructor.NAME);r.setAttribute("id",i),this._element.setAttribute("aria-describedby",i),this.setContent(),this.config.animation&&r.classList.add(Zn);const h="function"===typeof this.config.placement?this.config.placement.call(this,r,this._element):this.config.placement,d=this._getAttachment(h);this._addAttachmentClass(d);const g=this._getContainer();Xe.set(r,this.constructor.DATA_KEY,this),this._element.ownerDocument.documentElement.contains(this.tip)||(g.appendChild(r),st.trigger(this._element,this.constructor.Event.INSERTED)),this._popper?this._popper.update():this._popper=ze(this._element,r,this._getPopperConfig(d)),r.classList.add(er);const y="function"===typeof this.config.customClass?this.config.customClass():this.config.customClass;y&&r.classList.add(...y.split(" ")),"ontouchstart"in document.documentElement&&[].concat(...document.body.children).forEach((e=>{st.on(e,"mouseover",(function(){}))}));const complete=()=>{const e=this._hoverState;this._hoverState=null,st.trigger(this._element,this.constructor.Event.SHOWN),e===nr&&this._leave(null,this)};if(this.tip.classList.contains(Zn)){const e=getTransitionDurationFromElement(this.tip);st.one(this.tip,"transitionend",complete),emulateTransitionEnd(this.tip,e)}else complete()}hide(){if(!this._popper)return;const e=this.getTipElement(),complete=()=>{this._isWithActiveTrigger()||(this._hoverState!==tr&&e.parentNode&&e.parentNode.removeChild(e),this._cleanTipClass(),this._element.removeAttribute("aria-describedby"),st.trigger(this._element,this.constructor.Event.HIDDEN),this._popper&&(this._popper.destroy(),this._popper=null))};if(!st.trigger(this._element,this.constructor.Event.HIDE).defaultPrevented){if(e.classList.remove(er),"ontouchstart"in document.documentElement&&[].concat(...document.body.children).forEach((e=>st.off(e,"mouseover",noop))),this._activeTrigger.click=!1,this._activeTrigger.focus=!1,this._activeTrigger.hover=!1,this.tip.classList.contains(Zn)){const t=getTransitionDurationFromElement(e);st.one(e,"transitionend",complete),emulateTransitionEnd(e,t)}else complete();this._hoverState=""}}update(){null!==this._popper&&this._popper.update()}isWithContent(){return Boolean(this.getTitle())}getTipElement(){if(this.tip)return this.tip;const e=document.createElement("div");return e.innerHTML=this.config.template,this.tip=e.children[0],this.tip}setContent(){const e=this.getTipElement();this.setElementContent(pt.findOne(".tooltip-inner",e),this.getTitle()),e.classList.remove(Zn,er)}setElementContent(e,t){if(null!==e)return"object"===typeof t&&bootstrap_esm_isElement(t)?(t.jquery&&(t=t[0]),void(this.config.html?t.parentNode!==e&&(e.innerHTML="",e.appendChild(t)):e.textContent=t.textContent)):void(this.config.html?(this.config.sanitize&&(t=sanitizeHtml(t,this.config.allowList,this.config.sanitizeFn)),e.innerHTML=t):e.textContent=t)}getTitle(){let e=this._element.getAttribute("data-bs-original-title");return e||(e="function"===typeof this.config.title?this.config.title.call(this._element):this.config.title),e}updateAttachment(e){return"right"===e?"end":"left"===e?"start":e}_initializeOnDelegatedTarget(e,t){const n=this.constructor.DATA_KEY;return(t=t||Xe.get(e.delegateTarget,n))||(t=new this.constructor(e.delegateTarget,this._getDelegateConfig()),Xe.set(e.delegateTarget,n,t)),t}_getOffset(){const{offset:e}=this.config;return"string"===typeof e?e.split(",").map((e=>Number.parseInt(e,10))):"function"===typeof e?t=>e(t,this._element):e}_getPopperConfig(e){const t={placement:e,modifiers:[{name:"flip",options:{altBoundary:!0,fallbackPlacements:this.config.fallbackPlacements}},{name:"offset",options:{offset:this._getOffset()}},{name:"preventOverflow",options:{boundary:this.config.boundary}},{name:"arrow",options:{element:`.${this.constructor.NAME}-arrow`}},{name:"onChange",enabled:!0,phase:"afterWrite",fn:e=>this._handlePopperPlacementChange(e)}],onFirstUpdate:e=>{e.options.placement!==e.placement&&this._handlePopperPlacementChange(e)}};return{...t,..."function"===typeof this.config.popperConfig?this.config.popperConfig(t):this.config.popperConfig}}_addAttachmentClass(e){this.getTipElement().classList.add(`bs-tooltip-${this.updateAttachment(e)}`)}_getContainer(){return!1===this.config.container?document.body:bootstrap_esm_isElement(this.config.container)?this.config.container:pt.findOne(this.config.container)}_getAttachment(e){return Yn[e.toUpperCase()]}_setListeners(){this.config.trigger.split(" ").forEach((e=>{if("click"===e)st.on(this._element,this.constructor.Event.CLICK,this.config.selector,(e=>this.toggle(e)));else if("manual"!==e){const t=e===rr?this.constructor.Event.MOUSEENTER:this.constructor.Event.FOCUSIN,n=e===rr?this.constructor.Event.MOUSELEAVE:this.constructor.Event.FOCUSOUT;st.on(this._element,t,this.config.selector,(e=>this._enter(e))),st.on(this._element,n,this.config.selector,(e=>this._leave(e)))}})),this._hideModalHandler=()=>{this._element&&this.hide()},st.on(this._element.closest(".modal"),"hide.bs.modal",this._hideModalHandler),this.config.selector?this.config={...this.config,trigger:"manual",selector:""}:this._fixTitle()}_fixTitle(){const e=this._element.getAttribute("title"),t=typeof this._element.getAttribute("data-bs-original-title");(e||"string"!==t)&&(this._element.setAttribute("data-bs-original-title",e||""),!e||this._element.getAttribute("aria-label")||this._element.textContent||this._element.setAttribute("aria-label",e),this._element.setAttribute("title",""))}_enter(e,t){t=this._initializeOnDelegatedTarget(e,t),e&&(t._activeTrigger["focusin"===e.type?ir:rr]=!0),t.getTipElement().classList.contains(er)||t._hoverState===tr?t._hoverState=tr:(clearTimeout(t._timeout),t._hoverState=tr,t.config.delay&&t.config.delay.show?t._timeout=setTimeout((()=>{t._hoverState===tr&&t.show()}),t.config.delay.show):t.show())}_leave(e,t){t=this._initializeOnDelegatedTarget(e,t),e&&(t._activeTrigger["focusout"===e.type?ir:rr]=t._element.contains(e.relatedTarget)),t._isWithActiveTrigger()||(clearTimeout(t._timeout),t._hoverState=nr,t.config.delay&&t.config.delay.hide?t._timeout=setTimeout((()=>{t._hoverState===nr&&t.hide()}),t.config.delay.hide):t.hide())}_isWithActiveTrigger(){for(const e in this._activeTrigger)if(this._activeTrigger[e])return!0;return!1}_getConfig(e){const t=ut.getDataAttributes(this._element);return Object.keys(t).forEach((e=>{zn.has(e)&&delete t[e]})),e&&"object"===typeof e.container&&e.container.jquery&&(e.container=e.container[0]),"number"===typeof(e={...this.constructor.Default,...t,..."object"===typeof e&&e?e:{}}).delay&&(e.delay={show:e.delay,hide:e.delay}),"number"===typeof e.title&&(e.title=e.title.toString()),"number"===typeof e.content&&(e.content=e.content.toString()),typeCheckConfig(Vn,e,this.constructor.DefaultType),e.sanitize&&(e.template=sanitizeHtml(e.template,e.allowList,e.sanitizeFn)),e}_getDelegateConfig(){const e={};if(this.config)for(const t in this.config)this.constructor.Default[t]!==this.config[t]&&(e[t]=this.config[t]);return e}_cleanTipClass(){const e=this.getTipElement(),t=e.getAttribute("class").match(Wn);null!==t&&t.length>0&&t.map((e=>e.trim())).forEach((t=>e.classList.remove(t)))}_handlePopperPlacementChange(e){const{state:t}=e;t&&(this.tip=t.elements.popper,this._cleanTipClass(),this._addAttachmentClass(this._getAttachment(t.placement)))}static jQueryInterface(e){return this.each((function(){let t=Xe.get(this,$n);const n="object"===typeof e&&e;if((t||!/dispose|hide/.test(e))&&(t||(t=new Tooltip(this,n)),"string"===typeof e)){if("undefined"===typeof t[e])throw new TypeError(`No method named "${e}"`);t[e]()}}))}}defineJQueryPlugin(Vn,Tooltip);const or="popover",sr="bs.popover",ar=".bs.popover",cr=new RegExp("(^|\\s)bs-popover\\S+","g"),lr={...Tooltip.Default,placement:"right",offset:[0,8],trigger:"click",content:"",template:''},ur={...Tooltip.DefaultType,content:"(string|element|function)"},pr={HIDE:"hide.bs.popover",HIDDEN:"hidden.bs.popover",SHOW:"show.bs.popover",SHOWN:"shown.bs.popover",INSERTED:"inserted.bs.popover",CLICK:"click.bs.popover",FOCUSIN:"focusin.bs.popover",FOCUSOUT:"focusout.bs.popover",MOUSEENTER:"mouseenter.bs.popover",MOUSELEAVE:"mouseleave.bs.popover"};class Popover extends Tooltip{static get Default(){return lr}static get NAME(){return or}static get DATA_KEY(){return sr}static get Event(){return pr}static get EVENT_KEY(){return ar}static get DefaultType(){return ur}isWithContent(){return this.getTitle()||this._getContent()}setContent(){const e=this.getTipElement();this.setElementContent(pt.findOne(".popover-header",e),this.getTitle());let t=this._getContent();"function"===typeof t&&(t=t.call(this._element)),this.setElementContent(pt.findOne(".popover-body",e),t),e.classList.remove("fade","show")}_addAttachmentClass(e){this.getTipElement().classList.add(`bs-popover-${this.updateAttachment(e)}`)}_getContent(){return this._element.getAttribute("data-bs-content")||this.config.content}_cleanTipClass(){const e=this.getTipElement(),t=e.getAttribute("class").match(cr);null!==t&&t.length>0&&t.map((e=>e.trim())).forEach((t=>e.classList.remove(t)))}static jQueryInterface(e){return this.each((function(){let t=Xe.get(this,sr);const n="object"===typeof e?e:null;if((t||!/dispose|hide/.test(e))&&(t||(t=new Popover(this,n),Xe.set(this,sr,t)),"string"===typeof e)){if("undefined"===typeof t[e])throw new TypeError(`No method named "${e}"`);t[e]()}}))}}defineJQueryPlugin(or,Popover);const hr="scrollspy",dr="bs.scrollspy",fr=".bs.scrollspy",mr={offset:10,method:"auto",target:""},gr={offset:"number",method:"string",target:"(string|element)"},yr="dropdown-item",vr="active",br=".nav-link",_r="position";class ScrollSpy extends BaseComponent{constructor(e,t){super(e),this._scrollElement="BODY"===this._element.tagName?window:this._element,this._config=this._getConfig(t),this._selector=`${this._config.target} .nav-link, ${this._config.target} .list-group-item, ${this._config.target} .dropdown-item`,this._offsets=[],this._targets=[],this._activeTarget=null,this._scrollHeight=0,st.on(this._scrollElement,"scroll.bs.scrollspy",(()=>this._process())),this.refresh(),this._process()}static get Default(){return mr}static get DATA_KEY(){return dr}refresh(){const e=this._scrollElement===this._scrollElement.window?"offset":_r,t="auto"===this._config.method?e:this._config.method,n=t===_r?this._getScrollTop():0;this._offsets=[],this._targets=[],this._scrollHeight=this._getScrollHeight();pt.find(this._selector).map((e=>{const r=getSelectorFromElement(e),i=r?pt.findOne(r):null;if(i){const e=i.getBoundingClientRect();if(e.width||e.height)return[ut[t](i).top+n,r]}return null})).filter((e=>e)).sort(((e,t)=>e[0]-t[0])).forEach((e=>{this._offsets.push(e[0]),this._targets.push(e[1])}))}dispose(){super.dispose(),st.off(this._scrollElement,fr),this._scrollElement=null,this._config=null,this._selector=null,this._offsets=null,this._targets=null,this._activeTarget=null,this._scrollHeight=null}_getConfig(e){if("string"!==typeof(e={...mr,..."object"===typeof e&&e?e:{}}).target&&bootstrap_esm_isElement(e.target)){let{id:t}=e.target;t||(t=getUID(hr),e.target.id=t),e.target=`#${t}`}return typeCheckConfig(hr,e,gr),e}_getScrollTop(){return this._scrollElement===window?this._scrollElement.pageYOffset:this._scrollElement.scrollTop}_getScrollHeight(){return this._scrollElement.scrollHeight||Math.max(document.body.scrollHeight,document.documentElement.scrollHeight)}_getOffsetHeight(){return this._scrollElement===window?window.innerHeight:this._scrollElement.getBoundingClientRect().height}_process(){const e=this._getScrollTop()+this._config.offset,t=this._getScrollHeight(),n=this._config.offset+t-this._getOffsetHeight();if(this._scrollHeight!==t&&this.refresh(),e>=n){const e=this._targets[this._targets.length-1];this._activeTarget!==e&&this._activate(e)}else{if(this._activeTarget&&e0)return this._activeTarget=null,void this._clear();for(let t=this._offsets.length;t--;){this._activeTarget!==this._targets[t]&&e>=this._offsets[t]&&("undefined"===typeof this._offsets[t+1]||e`${t}[data-bs-target="${e}"],${t}[href="${e}"]`)),n=pt.findOne(t.join(","));n.classList.contains(yr)?(pt.findOne(".dropdown-toggle",n.closest(".dropdown")).classList.add(vr),n.classList.add(vr)):(n.classList.add(vr),pt.parents(n,".nav, .list-group").forEach((e=>{pt.prev(e,".nav-link, .list-group-item").forEach((e=>e.classList.add(vr))),pt.prev(e,".nav-item").forEach((e=>{pt.children(e,br).forEach((e=>e.classList.add(vr)))}))}))),st.trigger(this._scrollElement,"activate.bs.scrollspy",{relatedTarget:e})}_clear(){pt.find(this._selector).filter((e=>e.classList.contains(vr))).forEach((e=>e.classList.remove(vr)))}static jQueryInterface(e){return this.each((function(){let t=Xe.get(this,dr);if(t||(t=new ScrollSpy(this,"object"===typeof e&&e)),"string"===typeof e){if("undefined"===typeof t[e])throw new TypeError(`No method named "${e}"`);t[e]()}}))}}st.on(window,"load.bs.scrollspy.data-api",(()=>{pt.find('[data-bs-spy="scroll"]').forEach((e=>new ScrollSpy(e,ut.getDataAttributes(e))))})),defineJQueryPlugin(hr,ScrollSpy);const wr="bs.tab",Er="active",Sr="fade",kr="show",Or=".active",Cr=":scope > li > .active";class Tab extends BaseComponent{static get DATA_KEY(){return wr}show(){if(this._element.parentNode&&this._element.parentNode.nodeType===Node.ELEMENT_NODE&&this._element.classList.contains(Er)||isDisabled(this._element))return;let e;const t=getElementFromSelector(this._element),n=this._element.closest(".nav, .list-group");if(n){const t="UL"===n.nodeName||"OL"===n.nodeName?Cr:Or;e=pt.find(t,n),e=e[e.length-1]}const r=e?st.trigger(e,"hide.bs.tab",{relatedTarget:this._element}):null;if(st.trigger(this._element,"show.bs.tab",{relatedTarget:e}).defaultPrevented||null!==r&&r.defaultPrevented)return;this._activate(this._element,n);const complete=()=>{st.trigger(e,"hidden.bs.tab",{relatedTarget:this._element}),st.trigger(this._element,"shown.bs.tab",{relatedTarget:e})};t?this._activate(t,t.parentNode,complete):complete()}_activate(e,t,n){const r=(!t||"UL"!==t.nodeName&&"OL"!==t.nodeName?pt.children(t,Or):pt.find(Cr,t))[0],i=n&&r&&r.classList.contains(Sr),complete=()=>this._transitionComplete(e,r,n);if(r&&i){const e=getTransitionDurationFromElement(r);r.classList.remove(kr),st.one(r,"transitionend",complete),emulateTransitionEnd(r,e)}else complete()}_transitionComplete(e,t,n){if(t){t.classList.remove(Er);const e=pt.findOne(":scope > .dropdown-menu .active",t.parentNode);e&&e.classList.remove(Er),"tab"===t.getAttribute("role")&&t.setAttribute("aria-selected",!1)}if(e.classList.add(Er),"tab"===e.getAttribute("role")&&e.setAttribute("aria-selected",!0),reflow(e),e.classList.contains(Sr)&&e.classList.add(kr),e.parentNode&&e.parentNode.classList.contains("dropdown-menu")){e.closest(".dropdown")&&pt.find(".dropdown-toggle").forEach((e=>e.classList.add(Er))),e.setAttribute("aria-expanded",!0)}n&&n()}static jQueryInterface(e){return this.each((function(){const t=Xe.get(this,wr)||new Tab(this);if("string"===typeof e){if("undefined"===typeof t[e])throw new TypeError(`No method named "${e}"`);t[e]()}}))}}st.on(document,"click.bs.tab.data-api",'[data-bs-toggle="tab"], [data-bs-toggle="pill"], [data-bs-toggle="list"]',(function(e){e.preventDefault();(Xe.get(this,wr)||new Tab(this)).show()})),defineJQueryPlugin("tab",Tab);const Tr="toast",xr="bs.toast",Ar="click.dismiss.bs.toast",Dr="hide",Lr="show",Nr="showing",Ir={animation:"boolean",autohide:"boolean",delay:"number"},Rr={animation:!0,autohide:!0,delay:5e3};class Toast extends BaseComponent{constructor(e,t){super(e),this._config=this._getConfig(t),this._timeout=null,this._setListeners()}static get DefaultType(){return Ir}static get Default(){return Rr}static get DATA_KEY(){return xr}show(){if(st.trigger(this._element,"show.bs.toast").defaultPrevented)return;this._clearTimeout(),this._config.animation&&this._element.classList.add("fade");const complete=()=>{this._element.classList.remove(Nr),this._element.classList.add(Lr),st.trigger(this._element,"shown.bs.toast"),this._config.autohide&&(this._timeout=setTimeout((()=>{this.hide()}),this._config.delay))};if(this._element.classList.remove(Dr),reflow(this._element),this._element.classList.add(Nr),this._config.animation){const e=getTransitionDurationFromElement(this._element);st.one(this._element,"transitionend",complete),emulateTransitionEnd(this._element,e)}else complete()}hide(){if(!this._element.classList.contains(Lr))return;if(st.trigger(this._element,"hide.bs.toast").defaultPrevented)return;const complete=()=>{this._element.classList.add(Dr),st.trigger(this._element,"hidden.bs.toast")};if(this._element.classList.remove(Lr),this._config.animation){const e=getTransitionDurationFromElement(this._element);st.one(this._element,"transitionend",complete),emulateTransitionEnd(this._element,e)}else complete()}dispose(){this._clearTimeout(),this._element.classList.contains(Lr)&&this._element.classList.remove(Lr),st.off(this._element,Ar),super.dispose(),this._config=null}_getConfig(e){return e={...Rr,...ut.getDataAttributes(this._element),..."object"===typeof e&&e?e:{}},typeCheckConfig(Tr,e,this.constructor.DefaultType),e}_setListeners(){st.on(this._element,Ar,'[data-bs-dismiss="toast"]',(()=>this.hide()))}_clearTimeout(){clearTimeout(this._timeout),this._timeout=null}static jQueryInterface(e){return this.each((function(){let t=Xe.get(this,xr);if(t||(t=new Toast(this,"object"===typeof e&&e)),"string"===typeof e){if("undefined"===typeof t[e])throw new TypeError(`No method named "${e}"`);t[e](this)}}))}}defineJQueryPlugin(Tr,Toast);const Mr=document,Pr=(Mr.body,Mr.getElementById("PageLoading"));var jr=class SpinnerUI{static show(){console.log("_main.loading-spinner: show"),Pr.classList.remove("d-none")}static hide(){console.log("_main.loading-spinner: hide"),Pr.classList.add("d-none")}};const Fr="/mnt/data/srv/dist/repositories/silverstripe-webpack/node_modules/.pnpm/@a2nt+ss-bootstrap-ui-webpack-boilerplate-react@3.2.1/node_modules/@a2nt/ss-bootstrap-ui-webpack-boilerplate-react/src/js/_components/_main.links.js";(e=>{const t="_main.links",n=document,r=n.body;class MainUILinks{static init(){const n=this;n.GraphPage=null,console.log(`${t}: init`),n.loaded(),e.addEventListener("popstate",(e=>{n.popState(e)}))}static loaded(){const e=this;n.querySelectorAll(".graphql-page").forEach(((t,n)=>{const r=t.getAttribute("href");t.setAttribute(`data-${e.name}-id`,r),t.addEventListener("click",e.loadClick)}))}static setActiveLinks(e){n.querySelectorAll(`[data-${this.name}-id="${e}"]`).forEach((e=>{e.classList.add("active")}))}static reset(){n.activeElement.blur(),n.querySelectorAll(".graphql-page,.nav-item").forEach((e=>{e.classList.remove("active","loading")}))}static popState(n){const r=this;if(jr.show(),n.state&&n.state.page){console.log(`${t}: [popstate] load`);const e=JSON.parse(n.state.page);e.current=null,e.popstate=!0,r.reset(),r.setActiveLinks(n.state.link),r.GraphPage||(console.log(`${t}: [popstate] GraphPage is missing. Have to render it first`),r.GraphPage=ReactDOM.render(React.createElement(re,{__self:this,__source:{fileName:Fr,lineNumber:83}}),document.getElementById("MainContent"))),r.GraphPage.setState(e),jr.hide(),window.dispatchEvent(new Event(T.AJAX))}else n.state&&n.state.landing?(console.log(`${t}: [popstate] go to landing`),e.location.href=n.state.landing):(console.warn(`${t}: [popstate] state is missing`),console.log(n),jr.hide())}static loadClick(i){console.groupCollapsed(`${t}: load on click`),i.preventDefault();const h=MainUILinks,d=i.currentTarget;jr.show(),h.reset(),d.classList.add("loading"),d.classList.remove("response-404","response-500","response-523"),r.classList.add("ajax-loading");const g=(0,oe.getParents)(d,".collapse");g.length&&g.forEach((e=>{const t=Collapse.getInstance(e);t&&t.hide()})),h.GraphPage||(h.GraphPage=ReactDOM.render(React.createElement(re,{__self:this,__source:{fileName:Fr,lineNumber:137}}),document.getElementById("MainContent")));const y=d.getAttribute("href")||d.getAttribute("data-href");h.GraphPage.state.current=d,h.GraphPage.load(y).then((e=>{r.classList.remove("ajax-loading"),d.classList.remove("loading"),d.classList.add("active"),n.loading_apollo_link=null,h.GraphPage.state.Link&&(window.history.pushState({page:JSON.stringify(h.GraphPage.state),link:d.getAttribute(`data-${h.name}-id`)},h.GraphPage.state.Title,h.GraphPage.state.Link),h.setActiveLinks(h.GraphPage.state.Link)),jr.hide(),window.dispatchEvent(new Event(T.AJAX)),console.groupEnd(`${t}: load on click`)})).catch((n=>{console.error(`${t}: loading error`),console.log(n),d.classList.add("error",`response-${n.status}`),console.groupEnd(`${t}: load on click`),console.log(`${t}: reloading page ${y}`),e.location.href=y}))}}e.addEventListener(`${T.LOADED}`,(()=>{MainUILinks.init()})),e.addEventListener(`${T.AJAX}`,(()=>{MainUILinks.loaded()}))})(window);const qr=__webpack_require__(6971);(e=>{const t="_main.lazy-images",n=document,r=(n.body,document.querySelector('meta[name="api_static_domain"]')),i=r?r.getAttribute("content"):`${window.location.protocol}//${window.location.host}`;console.log(`${t} [static url]: ${i}`);const loadLazyImages=()=>{console.log(`${t}: Load lazy images`),n.querySelectorAll("[data-lazy-src]").forEach((e=>{e.classList.remove("empty"),e.classList.add("loading"),e.classList.remove("loading__network-error");const n=e.getAttribute("data-lazy-src"),r=n.startsWith("http")?n:i+n;qr.get(r,{responseType:"blob"}).then((t=>{const n=new FileReader;n.readAsDataURL(t.data),n.onload=()=>{const t=n.result;e.setAttribute("src",t),e.classList.remove("loading"),e.classList.add("loading__success")}})).catch((n=>{if(n.response){switch(n.response.status){case 404:msg="Not Found.";break;case 500:msg="Server issue, please try again latter.";break;default:msg="Something went wrong."}console.error(`${t} [${r}]: ${msg}`)}else n.request?(msg="No response received",console.error(`${t} [${r}]: ${msg}`)):console.error(`${t} [${r}]: ${n.message}`);e.classList.remove("loading"),e.classList.add("loading__network-error"),e.classList.add("empty")}))}))};e.addEventListener(`${T.LODEDANDREADY}`,loadLazyImages),e.addEventListener(`${T.AJAX}`,loadLazyImages)})(window);(e=>{const t=document,n=t.body;console.info("%cUI Kit ss-webpack-boilerplate 2.0.2","color:yellow;font-size:14px"),console.info("%c@a2nt/meta-lightbox-react 3.1.3","color:yellow;font-size:12px"),console.info("%chttps://github.com/a2nt/webpack-bootstrap-ui-kit by Tony Air ","color:yellow;font-size:10px"),console.info("%cENV: production","color:green;font-size:10px"),console.groupCollapsed("Events"),Object.keys(T).forEach((e=>{console.info(`${e}: ${T[e]}`)})),console.groupEnd("Events"),console.groupCollapsed("Consts"),Object.keys(A).forEach((e=>{console.info(`${e}: ${A[e]}`)})),console.groupEnd("Events"),console.groupCollapsed("Init"),console.time("init");class MainUI{static init(){e.history.replaceState({landing:e.location.href},t.title,e.location.href),this.loaded()}static loaded(){console.log("_main: loaded")}}e.addEventListener(`${T.LOADED}`,(()=>{MainUI.init(),n.classList.add("loaded"),jr.hide(),console.groupEnd("init"),console.timeEnd("init"),e.dispatchEvent(new Event(T.LODEDANDREADY))})),e.addEventListener(`${T.AJAX}`,(()=>{MainUI.loaded()})),e.MainUI=MainUI})(window);var Qr=__webpack_require__(7849),Br=__webpack_require__.n(Qr);(e=>{const t="js-instagramfeed",n=(document.body,()=>{console.log(`${t}: loading`),document.querySelectorAll(`.${t}`).forEach(((n,r)=>{const i=`InstagramFeed${r}`,h=n.dataset;n.classList.add(`${t}-loading`),n.classList.remove(`${t}-loaded`,`${t}-error`),new(Br())({username:h.username,tag:h.tag||null,display_profile:h["display-profile"],display_biography:h["display-biography"],display_gallery:h["display-gallery"],display_captions:h["display-captions"],cache_time:h.cache_time||360,items:h.items||12,styling:!1,lazy_load:!0,callback:r=>{console.log(`${t}: data response received`);const h=document.createElement("div");h.classList.add(`${t}-list`,"row"),n.appendChild(h),r.edge_owner_to_timeline_media.edges.forEach(((e,n)=>{const r=e.node,d=(e=>{const t=atob(e),n=t.slice(3).split(""),r=t.substring(0,3).split("").map((e=>e.charCodeAt(0))),i=atob("/9j/4AAQSkZJRgABAQAAAQABAAD/2wCEABsaGikdKUEmJkFCLy8vQkc/Pj4/R0dHR0dHR0dHR0dHR0dHR0dHR0dHR0dHR0dHR0dHR0dHR0dHR0dHR0dHR0cBHSkpNCY0PygoP0c/NT9HR0dHR0dHR0dHR0dHR0dHR0dHR0dHR0dHR0dHR0dHR0dHR0dHR0dHR0dHR0dHR0dHR//AABEIABQAKgMBIgACEQEDEQH/xAGiAAABBQEBAQEBAQAAAAAAAAAAAQIDBAUGBwgJCgsQAAIBAwMCBAMFBQQEAAABfQECAwAEEQUSITFBBhNRYQcicRQygZGhCCNCscEVUtHwJDNicoIJChYXGBkaJSYnKCkqNDU2Nzg5OkNERUZHSElKU1RVVldYWVpjZGVmZ2hpanN0dXZ3eHl6g4SFhoeIiYqSk5SVlpeYmZqio6Slpqeoqaqys7S1tre4ubrCw8TFxsfIycrS09TV1tfY2drh4uPk5ebn6Onq8fLz9PX29/j5+gEAAwEBAQEBAQEBAQAAAAAAAAECAwQFBgcICQoLEQACAQIEBAMEBwUEBAABAncAAQIDEQQFITEGEkFRB2FxEyIygQgUQpGhscEJIzNS8BVictEKFiQ04SXxFxgZGiYnKCkqNTY3ODk6Q0RFRkdISUpTVFVWV1hZWmNkZWZnaGlqc3R1dnd4eXqCg4SFhoeIiYqSk5SVlpeYmZqio6Slpqeoqaqys7S1tre4ubrCw8TFxsfIycrS09TV1tfY2dri4+Tl5ufo6ery8/T19vf4+fr/2gAMAwEAAhEDEQA/AA==").split("");return i[162]=String.fromCharCode(r[1]),i[160]=String.fromCharCode(r[2]),e?`data:image/jpeg;base64,${btoa(i.concat(n).join(""))}`:null})(r.media_preview);h.innerHTML+=`
${r.accessibility_caption}
`})),n.classList.remove(`${t}-loading`),n.classList.add(`${t}-loaded`),e.dispatchEvent(new Event("MetaWindowindow.initLinks")),e.dispatchEvent(new Event(`${t}.loaded`))},on_error:r=>{console.error(`${t}: ${r}`),n.classList.remove(`${t}-loading`),n.classList.add(`${t}-error`),e.dispatchEvent(new Event(`${t}.error`))}})}))});e.addEventListener(`${T.LODEDANDREADY}`,n),e.addEventListener(`${T.AJAX}`,n)})(window);const Kr="transitionend",util_getSelector=e=>{let t=e.getAttribute("data-bs-target");if(!t||"#"===t){let n=e.getAttribute("href");if(!n||!n.includes("#")&&!n.startsWith("."))return null;n.includes("#")&&!n.startsWith("#")&&(n="#"+n.split("#")[1]),t=n&&"#"!==n?n.trim():null}return t},util_triggerTransitionEnd=e=>{e.dispatchEvent(new Event(Kr))},util_getjQuery=()=>{const{jQuery:jQuery}=window;return jQuery&&!document.body.hasAttribute("data-bs-no-jquery")?jQuery:null},util_isRTL=()=>"rtl"===document.documentElement.dir,Ur=new Map;var Vr={set(e,t,n){Ur.has(e)||Ur.set(e,new Map);const r=Ur.get(e);r.has(t)||0===r.size?r.set(t,n):console.error(`Bootstrap doesn't allow more than one instance per element. Bound instance: ${Array.from(r.keys())[0]}.`)},get:(e,t)=>Ur.has(e)&&Ur.get(e).get(t)||null,remove(e,t){if(!Ur.has(e))return;const n=Ur.get(e);n.delete(t),0===n.size&&Ur.delete(e)}};const $r=/[^.]*(?=\..*)\.|.*/,Hr=/\..*/,Wr=/::\d+$/,zr={};let Gr=1;const Yr={mouseenter:"mouseover",mouseleave:"mouseout"},Jr=new Set(["click","dblclick","mouseup","mousedown","contextmenu","mousewheel","DOMMouseScroll","mouseover","mouseout","mousemove","selectstart","selectend","keydown","keypress","keyup","orientationchange","touchstart","touchmove","touchend","touchcancel","pointerdown","pointermove","pointerup","pointerleave","pointercancel","gesturestart","gesturechange","gestureend","focus","blur","change","reset","select","submit","focusin","focusout","load","unload","beforeunload","resize","move","DOMContentLoaded","readystatechange","error","abort","scroll"]);function event_handler_getUidEvent(e,t){return t&&`${t}::${Gr++}`||e.uidEvent||Gr++}function event_handler_getEvent(e){const t=event_handler_getUidEvent(e);return e.uidEvent=t,zr[t]=zr[t]||{},zr[t]}function event_handler_findHandler(e,t,n=null){const r=Object.keys(e);for(let i=0,h=r.length;i{!function event_handler_removeNamespacedHandlers(e,t,n,r){const i=t[n]||{};Object.keys(i).forEach((h=>{if(h.includes(r)){const r=i[h];event_handler_removeHandler(e,t,n,r.originalHandler,r.delegationSelector)}}))}(e,y,n,t.slice(1))}));const b=y[d]||{};Object.keys(b).forEach((n=>{const r=n.replace(Wr,"");if(!g||t.includes(r)){const t=b[n];event_handler_removeHandler(e,y,d,t.originalHandler,t.delegationSelector)}}))},trigger(e,t,n){if("string"!==typeof t||!e)return null;const $=util_getjQuery(),r=t.replace(Hr,""),i=t!==r,h=Jr.has(r);let d,g=!0,y=!0,v=!1,b=null;return i&&$&&(d=$.Event(t,n),$(e).trigger(d),g=!d.isPropagationStopped(),y=!d.isImmediatePropagationStopped(),v=d.isDefaultPrevented()),h?(b=document.createEvent("HTMLEvents"),b.initEvent(r,g,!0)):b=new CustomEvent(t,{bubbles:g,cancelable:!0}),"undefined"!==typeof n&&Object.keys(n).forEach((e=>{Object.defineProperty(b,e,{get:()=>n[e]})})),v&&b.preventDefault(),y&&e.dispatchEvent(b),b.defaultPrevented&&"undefined"!==typeof d&&d.preventDefault(),b}};var Zr=Xr;function manipulator_normalizeData(e){return"true"===e||"false"!==e&&(e===Number(e).toString()?Number(e):""===e||"null"===e?null:e)}function manipulator_normalizeDataKey(e){return e.replace(/[A-Z]/g,(e=>`-${e.toLowerCase()}`))}var ei={setDataAttribute(e,t,n){e.setAttribute(`data-bs-${manipulator_normalizeDataKey(t)}`,n)},removeDataAttribute(e,t){e.removeAttribute(`data-bs-${manipulator_normalizeDataKey(t)}`)},getDataAttributes(e){if(!e)return{};const t={};return Object.keys(e.dataset).filter((e=>e.startsWith("bs"))).forEach((n=>{let r=n.replace(/^bs/,"");r=r.charAt(0).toLowerCase()+r.slice(1,r.length),t[r]=manipulator_normalizeData(e.dataset[n])})),t},getDataAttribute:(e,t)=>manipulator_normalizeData(e.getAttribute(`data-bs-${manipulator_normalizeDataKey(t)}`)),offset(e){const t=e.getBoundingClientRect();return{top:t.top+document.body.scrollTop,left:t.left+document.body.scrollLeft}},position:e=>({top:e.offsetTop,left:e.offsetLeft})};var ti={find:(e,t=document.documentElement)=>[].concat(...Element.prototype.querySelectorAll.call(t,e)),findOne:(e,t=document.documentElement)=>Element.prototype.querySelector.call(t,e),children:(e,t)=>[].concat(...e.children).filter((e=>e.matches(t))),parents(e,t){const n=[];let r=e.parentNode;for(;r&&r.nodeType===Node.ELEMENT_NODE&&3!==r.nodeType;)r.matches(t)&&n.push(r),r=r.parentNode;return n},prev(e,t){let n=e.previousElementSibling;for(;n;){if(n.matches(t))return[n];n=n.previousElementSibling}return[]},next(e,t){let n=e.nextElementSibling;for(;n;){if(n.matches(t))return[n];n=n.nextElementSibling}return[]}};var ni=class base_component_BaseComponent{constructor(e){(e="string"===typeof e?document.querySelector(e):e)&&(this._element=e,Vr.set(this._element,this.constructor.DATA_KEY,this))}dispose(){Vr.remove(this._element,this.constructor.DATA_KEY),this._element=null}static getInstance(e){return Vr.get(e,this.DATA_KEY)}static get VERSION(){return"5.0.0-beta3"}};const ri="carousel",ii="bs.carousel",oi=".bs.carousel",si={interval:5e3,keyboard:!0,slide:!1,pause:"hover",wrap:!0,touch:!0},ai={interval:"(number|boolean)",keyboard:"boolean",slide:"(boolean|string)",pause:"(string|boolean)",wrap:"boolean",touch:"boolean"},ci="next",li="prev",ui="left",pi="right",hi="slid.bs.carousel",di="active",fi=".active.carousel-item",mi="touch";class carousel_Carousel extends ni{constructor(e,t){super(e),this._items=null,this._interval=null,this._activeElement=null,this._isPaused=!1,this._isSliding=!1,this.touchTimeout=null,this.touchStartX=0,this.touchDeltaX=0,this._config=this._getConfig(t),this._indicatorsElement=ti.findOne(".carousel-indicators",this._element),this._touchSupported="ontouchstart"in document.documentElement||navigator.maxTouchPoints>0,this._pointerEvent=Boolean(window.PointerEvent),this._addEventListeners()}static get Default(){return si}static get DATA_KEY(){return ii}next(){this._isSliding||this._slide(ci)}nextWhenVisible(){!document.hidden&&(e=>{if(!e)return!1;if(e.style&&e.parentNode&&e.parentNode.style){const t=getComputedStyle(e),n=getComputedStyle(e.parentNode);return"none"!==t.display&&"none"!==n.display&&"hidden"!==t.visibility}return!1})(this._element)&&this.next()}prev(){this._isSliding||this._slide(li)}pause(e){e||(this._isPaused=!0),ti.findOne(".carousel-item-next, .carousel-item-prev",this._element)&&(util_triggerTransitionEnd(this._element),this.cycle(!0)),clearInterval(this._interval),this._interval=null}cycle(e){e||(this._isPaused=!1),this._interval&&(clearInterval(this._interval),this._interval=null),this._config&&this._config.interval&&!this._isPaused&&(this._updateInterval(),this._interval=setInterval((document.visibilityState?this.nextWhenVisible:this.next).bind(this),this._config.interval))}to(e){this._activeElement=ti.findOne(fi,this._element);const t=this._getItemIndex(this._activeElement);if(e>this._items.length-1||e<0)return;if(this._isSliding)return void Zr.one(this._element,hi,(()=>this.to(e)));if(t===e)return this.pause(),void this.cycle();const n=e>t?ci:li;this._slide(n,this._items[e])}dispose(){Zr.off(this._element,oi),this._items=null,this._config=null,this._interval=null,this._isPaused=null,this._isSliding=null,this._activeElement=null,this._indicatorsElement=null,super.dispose()}_getConfig(e){return e={...si,...e},((e,t,n)=>{Object.keys(n).forEach((r=>{const i=n[r],h=t[r],d=h&&((g=h)[0]||g).nodeType?"element":(e=>null===e||void 0===e?`${e}`:{}.toString.call(e).match(/\s([a-z]+)/i)[1].toLowerCase())(h);var g;if(!new RegExp(i).test(d))throw new TypeError(`${e.toUpperCase()}: Option "${r}" provided type "${d}" but expected type "${i}".`)}))})(ri,e,ai),e}_handleSwipe(){const e=Math.abs(this.touchDeltaX);if(e<=40)return;const t=e/this.touchDeltaX;this.touchDeltaX=0,t&&this._slide(t>0?pi:ui)}_addEventListeners(){this._config.keyboard&&Zr.on(this._element,"keydown.bs.carousel",(e=>this._keydown(e))),"hover"===this._config.pause&&(Zr.on(this._element,"mouseenter.bs.carousel",(e=>this.pause(e))),Zr.on(this._element,"mouseleave.bs.carousel",(e=>this.cycle(e)))),this._config.touch&&this._touchSupported&&this._addTouchEventListeners()}_addTouchEventListeners(){const start=e=>{!this._pointerEvent||"pen"!==e.pointerType&&e.pointerType!==mi?this._pointerEvent||(this.touchStartX=e.touches[0].clientX):this.touchStartX=e.clientX},move=e=>{this.touchDeltaX=e.touches&&e.touches.length>1?0:e.touches[0].clientX-this.touchStartX},end=e=>{!this._pointerEvent||"pen"!==e.pointerType&&e.pointerType!==mi||(this.touchDeltaX=e.clientX-this.touchStartX),this._handleSwipe(),"hover"===this._config.pause&&(this.pause(),this.touchTimeout&&clearTimeout(this.touchTimeout),this.touchTimeout=setTimeout((e=>this.cycle(e)),500+this._config.interval))};ti.find(".carousel-item img",this._element).forEach((e=>{Zr.on(e,"dragstart.bs.carousel",(e=>e.preventDefault()))})),this._pointerEvent?(Zr.on(this._element,"pointerdown.bs.carousel",(e=>start(e))),Zr.on(this._element,"pointerup.bs.carousel",(e=>end(e))),this._element.classList.add("pointer-event")):(Zr.on(this._element,"touchstart.bs.carousel",(e=>start(e))),Zr.on(this._element,"touchmove.bs.carousel",(e=>move(e))),Zr.on(this._element,"touchend.bs.carousel",(e=>end(e))))}_keydown(e){/input|textarea/i.test(e.target.tagName)||("ArrowLeft"===e.key?(e.preventDefault(),this._slide(ui)):"ArrowRight"===e.key&&(e.preventDefault(),this._slide(pi)))}_getItemIndex(e){return this._items=e&&e.parentNode?ti.find(".carousel-item",e.parentNode):[],this._items.indexOf(e)}_getItemByOrder(e,t){const n=e===ci,r=e===li,i=this._getItemIndex(t),h=this._items.length-1;if((r&&0===i||n&&i===h)&&!this._config.wrap)return t;const d=(i+(r?-1:1))%this._items.length;return-1===d?this._items[this._items.length-1]:this._items[d]}_triggerSlideEvent(e,t){const n=this._getItemIndex(e),r=this._getItemIndex(ti.findOne(fi,this._element));return Zr.trigger(this._element,"slide.bs.carousel",{relatedTarget:e,direction:t,from:r,to:n})}_setActiveIndicatorElement(e){if(this._indicatorsElement){const t=ti.findOne(".active",this._indicatorsElement);t.classList.remove(di),t.removeAttribute("aria-current");const n=ti.find("[data-bs-target]",this._indicatorsElement);for(let r=0;r{e.offsetHeight})(h),r.classList.add(v),h.classList.add(v);const e=(e=>{if(!e)return 0;let{transitionDuration:t,transitionDelay:n}=window.getComputedStyle(e);const r=Number.parseFloat(t),i=Number.parseFloat(n);return r||i?(t=t.split(",")[0],n=n.split(",")[0],1e3*(Number.parseFloat(t)+Number.parseFloat(n))):0})(r);Zr.one(r,"transitionend",(()=>{h.classList.remove(v,b),h.classList.add(di),r.classList.remove(di,b,v),this._isSliding=!1,setTimeout((()=>{Zr.trigger(this._element,hi,{relatedTarget:h,direction:_,from:i,to:d})}),0)})),((e,t)=>{let n=!1;const r=t+5;e.addEventListener(Kr,(function listener(){n=!0,e.removeEventListener(Kr,listener)})),setTimeout((()=>{n||util_triggerTransitionEnd(e)}),r)})(r,e)}else r.classList.remove(di),h.classList.add(di),this._isSliding=!1,Zr.trigger(this._element,hi,{relatedTarget:h,direction:_,from:i,to:d});g&&this.cycle()}}_directionToOrder(e){return[pi,ui].includes(e)?util_isRTL()?e===pi?li:ci:e===pi?ci:li:e}_orderToDirection(e){return[ci,li].includes(e)?util_isRTL()?e===ci?ui:pi:e===ci?pi:ui:e}static carouselInterface(e,t){let n=Vr.get(e,ii),r={...si,...ei.getDataAttributes(e)};"object"===typeof t&&(r={...r,...t});const i="string"===typeof t?t:r.slide;if(n||(n=new carousel_Carousel(e,r)),"number"===typeof t)n.to(t);else if("string"===typeof i){if("undefined"===typeof n[i])throw new TypeError(`No method named "${i}"`);n[i]()}else r.interval&&r.ride&&(n.pause(),n.cycle())}static jQueryInterface(e){return this.each((function(){carousel_Carousel.carouselInterface(this,e)}))}static dataApiClickHandler(e){const t=(e=>{const t=util_getSelector(e);return t?document.querySelector(t):null})(this);if(!t||!t.classList.contains("carousel"))return;const n={...ei.getDataAttributes(t),...ei.getDataAttributes(this)},r=this.getAttribute("data-bs-slide-to");r&&(n.interval=!1),carousel_Carousel.carouselInterface(t,n),r&&Vr.get(t,ii).to(r),e.preventDefault()}}Zr.on(document,"click.bs.carousel.data-api","[data-bs-slide], [data-bs-slide-to]",carousel_Carousel.dataApiClickHandler),Zr.on(window,"load.bs.carousel.data-api",(()=>{const e=ti.find('[data-bs-ride="carousel"]');for(let t=0,n=e.length;t{var n;n=()=>{const $=util_getjQuery();if($){const n=$.fn[e];$.fn[e]=t.jQueryInterface,$.fn[e].Constructor=t,$.fn[e].noConflict=()=>($.fn[e]=n,t.jQueryInterface)}},"loading"===document.readyState?document.addEventListener("DOMContentLoaded",n):n()})(ri,carousel_Carousel);var gi=carousel_Carousel;(e=>{const t="js-carousel",init=()=>{console.log(`${t}: init`),document.querySelectorAll(`.${t}`).forEach(((e,n)=>{new gi(e);e.classList.add(`${t}-active`)}))};e.addEventListener(`${T.LODEDANDREADY}`,init),e.addEventListener(`${T.AJAX}`,init)})(window);(e=>{const t=document;t.body;e.addEventListener(`${T.LOADED}`,(()=>{(()=>{console.log("_layout: init_fonts");const e=t.createElement("link");e.rel="stylesheet",e.type="text/css",e.media="all",e.href="https://fonts.googleapis.com/css?family=Roboto:ital,wght@0,400;0,700;1,400&display=swap",t.getElementsByTagName("head")[0].appendChild(e)})()}))})(window);if("serviceWorker"in navigator){const e=(document.getElementsByTagName("base")[0]||{}).href,t=(document.querySelector('meta[name="swversion"]')||{}).content;e&&navigator.serviceWorker.register(`${e}sw.js?v=${t}`).then((()=>{console.log("Service Worker Registered")}))}function importAll(e){return e.keys().map(e)}importAll(__webpack_require__(6999)),importAll(__webpack_require__(3429))}()}(); \ No newline at end of file +!function(){var e={6999:function(e,t,n){var r={"./bg.png":3300,"./logo.png":8864,"./logo.svg":625,"./original.png":6843,"./original2.png":4730,"./photo1.png":9272,"./photo2.jpg":8616,"./photo3.svg":5802,"app/client/src/img/bg.png":3300,"app/client/src/img/logo.png":8864,"app/client/src/img/logo.svg":625,"app/client/src/img/original.png":6843,"app/client/src/img/original2.png":4730,"app/client/src/img/photo1.png":9272,"app/client/src/img/photo2.jpg":8616,"app/client/src/img/photo3.svg":5802,"bg.png":3300,"img/bg.png":3300,"img/logo.png":8864,"img/logo.svg":625,"img/original.png":6843,"img/original2.png":4730,"img/photo1.png":9272,"img/photo2.jpg":8616,"img/photo3.svg":5802,"logo.png":8864,"logo.svg":625,"original.png":6843,"original2.png":4730,"photo1.png":9272,"photo2.jpg":8616,"photo3.svg":5802};function webpackContext(e){var t=webpackContextResolve(e);return n(t)}function webpackContextResolve(e){if(!n.o(r,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return r[e]}webpackContext.keys=function webpackContextKeys(){return Object.keys(r)},webpackContext.resolve=webpackContextResolve,e.exports=webpackContext,webpackContext.id=6999},1882:function(e){var t={getParents:function(e,t){for(var n=[],r=e;r&&r!==document;)t?r.matches(t)&&n.push(r):n.push(r),r=r.parentNode;return n}};e.exports=t,e.exports.default=t},4662:function(e,t,n){"use strict";function _typeof(e){return(_typeof="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function _typeof(e){return typeof e}:function _typeof(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}n.d(t,{h4:function(){return re},ab:function(){return z}});var r=function defaultMakeData(){return Object.create(null)},i=Array.prototype,d=i.forEach,h=i.slice,y=function(){function Trie(e,t){void 0===e&&(e=!0),void 0===t&&(t=r),this.weakness=e,this.makeData=t}return Trie.prototype.lookup=function(){for(var e=[],t=0;tthis.max;)this.delete(this.oldest.key)},Cache.prototype.delete=function(e){var t=this.map.get(e);return!!t&&(t===this.newest&&(this.newest=t.older),t===this.oldest&&(this.oldest=t.newer),t.newer&&(t.newer.older=t.older),t.older&&(t.older.newer=t.newer),this.map.delete(e),this.dispose(t.value,e),!0)},Cache}(),k=new E;function maybeUnsubscribe(e){var t=e.unsubscribe;"function"===typeof t&&(e.unsubscribe=void 0,t())}var O=[];function assert(e,t){if(!e)throw new Error(t||"assertion failure")}function valueGet(e){switch(e.length){case 0:throw new Error("unknown value");case 1:return e[0];case 2:throw e[1]}}var C=function(){function Entry(e){this.fn=e,this.parents=new Set,this.childValues=new Map,this.dirtyChildren=null,this.dirty=!0,this.recomputing=!1,this.value=[],this.deps=null,++Entry.count}return Entry.prototype.peek=function(){if(1===this.value.length&&!mightBeDirty(this))return this.value[0]},Entry.prototype.recompute=function(e){return assert(!this.recomputing,"already recomputing"),function rememberParent(e){var t=k.getValue();if(t)return e.parents.add(t),t.childValues.has(e)||t.childValues.set(e,[]),mightBeDirty(e)?reportDirtyChild(t,e):reportCleanChild(t,e),t}(this),mightBeDirty(this)?function reallyRecompute(e,t){forgetChildren(e),k.withValue(e,recomputeNewValue,[e,t]),function maybeSubscribe(e,t){if("function"===typeof e.subscribe)try{maybeUnsubscribe(e),e.unsubscribe=e.subscribe.apply(null,t)}catch(n){return e.setDirty(),!1}return!0}(e,t)&&function setClean(e){if(e.dirty=!1,mightBeDirty(e))return;reportClean(e)}(e);return valueGet(e.value)}(this,e):valueGet(this.value)},Entry.prototype.setDirty=function(){this.dirty||(this.dirty=!0,this.value.length=0,reportDirty(this),forgetChildren(this),maybeUnsubscribe(this))},Entry.prototype.dispose=function(){var e=this;forgetChildren(this),maybeUnsubscribe(this),this.parents.forEach((function(t){t.setDirty(),forgetChild(t,e)}))},Entry.prototype.dependOn=function(e){e.add(this),this.deps||(this.deps=O.pop()||new Set),this.deps.add(e)},Entry.prototype.forgetDeps=function(){var e=this;this.deps&&(this.deps.forEach((function(t){return t.delete(e)})),this.deps.clear(),O.push(this.deps),this.deps=null)},Entry.count=0,Entry}();function recomputeNewValue(e,t){e.recomputing=!0,e.value.length=0;try{e.value[0]=e.fn.apply(null,t)}catch(n){e.value[1]=n}e.recomputing=!1}function mightBeDirty(e){return e.dirty||!(!e.dirtyChildren||!e.dirtyChildren.size)}function reportDirty(e){e.parents.forEach((function(t){return reportDirtyChild(t,e)}))}function reportClean(e){e.parents.forEach((function(t){return reportCleanChild(t,e)}))}function reportDirtyChild(e,t){if(assert(e.childValues.has(t)),assert(mightBeDirty(t)),e.dirtyChildren){if(e.dirtyChildren.has(t))return}else e.dirtyChildren=O.pop()||new Set;e.dirtyChildren.add(t),reportDirty(e)}function reportCleanChild(e,t){assert(e.childValues.has(t)),assert(!mightBeDirty(t));var n=e.childValues.get(t);0===n.length?e.childValues.set(t,function valueCopy(e){return e.slice(0)}(t.value)):function valueIs(e,t){var n=e.length;return n>0&&n===t.length&&e[n-1]===t[n-1]}(n,t.value)||e.setDirty(),removeDirtyChild(e,t),mightBeDirty(e)||reportClean(e)}function removeDirtyChild(e,t){var n=e.dirtyChildren;n&&(n.delete(t),0===n.size&&(O.length<100&&O.push(n),e.dirtyChildren=null))}function forgetChildren(e){e.childValues.size>0&&e.childValues.forEach((function(t,n){forgetChild(e,n)})),e.forgetDeps(),assert(null===e.dirtyChildren)}function forgetChild(e,t){t.parents.delete(e),e.childValues.delete(t),removeDirtyChild(e,t)}function dep(e){var t=new Map,n=e&&e.subscribe;function depend(e){var r=k.getValue();if(r){var i=t.get(e);i||t.set(e,i=new Set),r.dependOn(i),"function"===typeof n&&(maybeUnsubscribe(i),i.unsubscribe=n(e))}}return depend.dirty=function dirty(e){var n=t.get(e);n&&(n.forEach((function(e){return e.setDirty()})),t.delete(e),maybeUnsubscribe(n))},depend}var T=new y("function"===typeof WeakMap);function defaultMakeCacheKey(){for(var e=[],t=0;t0){var t=--this.rootIds[e];return t||delete this.rootIds[e],t}return 0},EntityStore.prototype.getRootIdSet=function(e){return void 0===e&&(e=new Set),Object.keys(this.rootIds).forEach(e.add,e),this instanceof U?this.parent.getRootIdSet(e):Object.keys(this.policies.rootTypenamesById).forEach(e.add,e),e},EntityStore.prototype.gc=function(){var e=this,t=this.getRootIdSet(),n=this.toObject();t.forEach((function(r){M.call(n,r)&&(Object.keys(e.findChildRefIds(r)).forEach(t.add,t),delete n[r])}));var r=Object.keys(n);if(r.length){for(var i=this;i instanceof U;)i=i.parent;r.forEach((function(e){return i.delete(e)}))}return r},EntityStore.prototype.findChildRefIds=function(e){if(!M.call(this.refs,e)){var t=this.refs[e]=Object.create(null),n=new Set([this.data[e]]),r=function canTraverse_1(e){return null!==e&&"object"===entityStore_typeof(e)};n.forEach((function(e){(0,D.hh)(e)?t[e.__ref]=!0:r(e)&&Object.values(e).filter(r).forEach(n.add,n)}))}return this.refs[e]},EntityStore.prototype.makeCacheKey=function(){for(var e=[],t=0;t0;if(b&&!y)throw v.missing[0];return{result:v.result,missing:v.missing,complete:!b}},StoreReader.prototype.isFresh=function(e,t,n,r){if(supportsResultCaching(r.store)&&this.knownResults.get(e)===n){var i=this.executeSelectionSet.peek(n,t,r);if(i&&e===i.result)return!0}return!1},StoreReader.prototype.execSelectionSetImpl=function(e){var t=this,n=e.selectionSet,r=e.objectOrReference,i=e.context;if((0,D.hh)(r)&&!i.policies.rootTypenamesById[r.__ref]&&!i.store.has(r.__ref))return{result:{},missing:[missingFromInvariant(new N.ej(4),i)]};var d=i.variables,h=i.policies,y=i.store,g=[],v={result:null},b=y.getFieldValue(r,"__typename");function getMissing(){return v.missing||(v.missing=[])}function handleMissing(e){var t;return e.missing&&(t=getMissing()).push.apply(t,e.missing),e.result}this.config.addTypename&&"string"===typeof b&&!h.rootIdsByTypename[b]&&g.push({__typename:b});var _=new Set(n.selections);return _.forEach((function(e){var n;if((0,D.LZ)(e,d))if((0,D.My)(e)){var y=h.readField({fieldName:e.name.value,field:e,variables:i.variables,from:r},i),v=(0,D.u2)(e);i.path.push(v);var w=i.clientOnly;i.clientOnly=w||!(!e.directives||!e.directives.some((function(e){return"client"===e.name.value}))),void 0===y?D.Gw.added(e)||getMissing().push(missingFromInvariant(new N.ej(5),i)):Array.isArray(y)?y=handleMissing(t.executeSubSelectedArray({field:e,array:y,context:i})):e.selectionSet&&null!=y&&(y=handleMissing(t.executeSelectionSet({selectionSet:e.selectionSet,objectOrReference:y,context:i}))),void 0!==y&&g.push(((n={})[v]=y,n)),i.clientOnly=w,(0,N.kG)(i.path.pop()===v)}else{var E=(0,D.hi)(e,i.fragmentMap);E&&h.fragmentMatches(E,b)&&E.selectionSet.selections.forEach(_.add,_)}})),v.result=(0,D.bw)(g),this.knownResults.set(v.result,n),v},StoreReader.prototype.execSubSelectedArrayImpl=function(e){var t,n=this,r=e.field,i=e.array,d=e.context;function handleMissing(e,n){return e.missing&&(t=t||[]).push.apply(t,e.missing),(0,N.kG)(d.path.pop()===n),e.result}return r.selectionSet&&(i=i.filter(d.store.canRead)),{result:i=i.map((function(e,t){return null===e?null:(d.path.push(t),Array.isArray(e)?handleMissing(n.executeSubSelectedArray({field:r,array:e,context:d}),t):r.selectionSet?handleMissing(n.executeSelectionSet({selectionSet:r.selectionSet,objectOrReference:e,context:d}),t):((0,N.kG)(d.path.pop()===t),e))})),missing:t}},StoreReader}();var H=function(){function StoreWriter(e,t){this.cache=e,this.reader=t}return StoreWriter.prototype.writeToStore=function(e){var t=e.query,n=e.result,r=e.dataId,i=e.store,d=e.variables,h=(0,D.$H)(t),y=function makeProcessedFieldsMerger(){return new D.w0}();d=(0,P.pi)((0,P.pi)({},(0,D.O4)(h)),d);var g=this.processSelectionSet({result:n||Object.create(null),dataId:r,selectionSet:h.selectionSet,mergeTree:{map:new Map},context:{store:i,written:Object.create(null),merge:function merge(e,t){return y.merge(e,t)},variables:d,varString:JSON.stringify(d),fragmentMap:(0,D.F)((0,D.kU)(t))}});if(!(0,D.hh)(g))throw new N.ej(7);return i.retain(g.__ref),g},StoreWriter.prototype.processSelectionSet=function(e){var t=this,n=e.dataId,r=e.result,i=e.selectionSet,d=e.context,h=e.mergeTree,y=this.cache.policies,g=y.identify(r,i,d.fragmentMap),v=g[0],b=g[1];if("string"===typeof(n=n||v)){var _=d.written[n]||(d.written[n]=[]),w=(0,D.kQ)(n);if(_.indexOf(i)>=0)return w;if(_.push(i),this.reader&&this.reader.isFresh(r,w,i,d))return w}var E=Object.create(null);b&&(E=d.merge(E,b));var S=n&&y.rootTypenamesById[n]||(0,D.qw)(r,i,d.fragmentMap)||n&&d.store.get(n,"__typename");"string"===typeof S&&(E.__typename=S);var k=new Set(i.selections);if(k.forEach((function(e){var n;if((0,D.LZ)(e,d.variables))if((0,D.My)(e)){var i=(0,D.u2)(e),g=r[i];if("undefined"!==typeof g){var v=y.getStoreFieldName({typename:S,fieldName:e.name.value,field:e,variables:d.variables}),b=getChildMergeTree(h,v),_=t.processFieldValue(g,e,d,b),w=e.selectionSet&&d.store.getFieldValue(_,"__typename")||void 0,O=y.getMergeFunction(S,e.name.value,w);O?b.info={field:e,typename:S,merge:O}:maybeRecycleChildMergeTree(h,v),E=d.merge(E,((n={})[v]=_,n))}else if(y.usingPossibleTypes&&!(0,D.FS)(["defer","client"],e))throw new N.ej(8)}else{var C=(0,D.hi)(e,d.fragmentMap);C&&y.fragmentMatches(C,S,r,d.variables)&&C.selectionSet.selections.forEach(k.add,k)}})),"string"===typeof n){var O=(0,D.kQ)(n);return h.map.size&&(E=this.applyMerges(h,O,E,d)),d.store.merge(n,E),O}return E},StoreWriter.prototype.processFieldValue=function(e,t,n,r){var i=this;return t.selectionSet&&null!==e?Array.isArray(e)?e.map((function(e,d){var h=i.processFieldValue(e,t,n,getChildMergeTree(r,d));return maybeRecycleChildMergeTree(r,d),h})):this.processSelectionSet({result:e,selectionSet:t.selectionSet,context:n,mergeTree:r}):e},StoreWriter.prototype.applyMerges=function(e,t,n,r,i){var d,h=this;if(e.map.size&&!(0,D.hh)(n)){var y,g=Array.isArray(n)||!(0,D.hh)(t)&&!storeValueIsStoreObject(t)?void 0:t,v=n;g&&!i&&(i=[(0,D.hh)(g)?g.__ref:g]);var b=function getValue_1(e,t){return Array.isArray(e)?"number"===typeof t?e[t]:void 0:r.store.getFieldValue(e,String(t))};e.map.forEach((function(e,t){i&&i.push(t);var n=b(g,t),d=b(v,t),_=h.applyMerges(e,n,d,r,i);_!==d&&(y=y||new Map).set(t,_),i&&(0,N.kG)(i.pop()===t)})),y&&(n=Array.isArray(v)?v.slice(0):(0,P.pi)({},v),y.forEach((function(e,t){n[t]=e})))}return e.info?this.cache.policies.runMergeFunction(t,n,e.info,r,i&&(d=r.store).getStorage.apply(d,i)):n},StoreWriter}(),W=[];function getChildMergeTree(e,t){var n=e.map;return n.has(t)||n.set(t,W.pop()||{map:new Map}),n.get(t)}function maybeRecycleChildMergeTree(e,t){var n=e.map,r=n.get(t);!r||r.info||r.map.size||(W.push(r),n.delete(t))}new Set;var z=new E,G=new WeakMap;function getCacheInfo(e){var t=G.get(e);return t||G.set(e,t={vars:new Set,dep:dep()}),t}function makeVar(e){var t=new Set,n=new Set,r=function rv(r){if(arguments.length>0){if(e!==r){e=r,t.forEach((function(e){getCacheInfo(e).dep.dirty(rv),broadcast(e)}));var d=Array.from(n);n.clear(),d.forEach((function(t){return t(e)}))}}else{var h=z.getValue();h&&(i(h),getCacheInfo(h).dep(rv))}return e};r.onNextChange=function(e){return n.add(e),function(){n.delete(e)}};var i=r.attachCache=function(e){return t.add(e),getCacheInfo(e).vars.add(r),r};return r.forgetCache=function(e){return t.delete(e)},r}function broadcast(e){e.broadcastWatches&&e.broadcastWatches()}function policies_typeof(e){return(policies_typeof="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function _typeof(e){return typeof e}:function _typeof(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function argsFromFieldSpecifier(e){return void 0!==e.args?e.args:e.field?(0,D.NC)(e.field,e.variables):null}var Y=function defaultDataIdFromObject(e,t){var n=e.__typename,r=e.id,i=e._id;if("string"===typeof n&&(t&&(t.keyObject=void 0!==r?{id:r}:void 0!==i?{_id:i}:void 0),void 0===r&&(r=i),void 0!==r))return n+":"+("number"===typeof r||"string"===typeof r?r:JSON.stringify(r))},J=function nullKeyFieldsFn(){},X=function simpleKeyArgsFn(e,t){return t.fieldName},Z=function mergeTrueFn(e,t,n){return(0,n.mergeObjects)(e,t)},ee=function mergeFalseFn(e,t){return t},te=function(){function Policies(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,P.pi)({dataIdFromObject:Y},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 Policies.prototype.identify=function(e,t,n){var r=t&&n?(0,D.qw)(e,t,n):e.__typename;if(r===this.rootTypenamesById.ROOT_QUERY)return["ROOT_QUERY"];for(var i,d={typename:r,selectionSet:t,fragmentMap:n},h=r&&this.getTypePolicy(r),y=h&&h.keyFn||this.config.dataIdFromObject;y;){var g=y(e,d);if(!Array.isArray(g)){i=g;break}y=keyFieldsFnFromSpecifier(g)}return i=i?String(i):void 0,d.keyObject?[i,d.keyObject]:[i]},Policies.prototype.addTypePolicies=function(e){var t=this;Object.keys(e).forEach((function(n){var r=e[n],i=r.queryType,d=r.mutationType,h=r.subscriptionType,y=(0,P._T)(r,["queryType","mutationType","subscriptionType"]);i&&t.setRootTypename("Query",n),d&&t.setRootTypename("Mutation",n),h&&t.setRootTypename("Subscription",n),M.call(t.toBeAdded,n)?t.toBeAdded[n].push(y):t.toBeAdded[n]=[y]}))},Policies.prototype.updateTypePolicy=function(e,t){var n=this,r=this.getTypePolicy(e),i=t.keyFields,d=t.fields;function setMerge(e,t){e.merge="function"===typeof t?t:!0===t?Z:!1===t?ee:e.merge}setMerge(r,t.merge),r.keyFn=!1===i?J:Array.isArray(i)?keyFieldsFnFromSpecifier(i):"function"===typeof i?i:r.keyFn,d&&Object.keys(d).forEach((function(t){var r=n.getFieldPolicy(e,t,!0),i=d[t];if("function"===typeof i)r.read=i;else{var h=i.keyArgs,y=i.read,g=i.merge;r.keyFn=!1===h?X:Array.isArray(h)?keyArgsFnFromSpecifier(h):"function"===typeof h?h:r.keyFn,"function"===typeof y&&(r.read=y),setMerge(r,g)}r.read&&r.merge&&(r.keyFn=r.keyFn||X)}))},Policies.prototype.setRootTypename=function(e,t){void 0===t&&(t=e);var n="ROOT_"+e.toUpperCase(),r=this.rootTypenamesById[n];t!==r&&((0,N.kG)(!r||r===e,1),r&&delete this.rootIdsByTypename[r],this.rootIdsByTypename[t]=n,this.rootTypenamesById[n]=t)},Policies.prototype.addPossibleTypes=function(e){var t=this;this.usingPossibleTypes=!0,Object.keys(e).forEach((function(n){t.getSupertypeSet(n,!0),e[n].forEach((function(e){t.getSupertypeSet(e,!0).add(n);var r=e.match(j);r&&r[0]===e||t.fuzzySubtypes.set(e,new RegExp(e))}))}))},Policies.prototype.getTypePolicy=function(e){var t=this;if(!M.call(this.typePolicies,e)){var n=this.typePolicies[e]=Object.create(null);n.fields=Object.create(null);var r=this.supertypeMap.get(e);r&&r.size&&r.forEach((function(e){var r=t.getTypePolicy(e),i=r.fields,d=(0,P._T)(r,["fields"]);Object.assign(n,d),Object.assign(n.fields,i)}))}var i=this.toBeAdded[e];return i&&i.length&&this.updateTypePolicy(e,D.oA.apply(void 0,i.splice(0))),this.typePolicies[e]},Policies.prototype.getFieldPolicy=function(e,t,n){if(e){var r=this.getTypePolicy(e).fields;return r[t]||n&&(r[t]=Object.create(null))}},Policies.prototype.getSupertypeSet=function(e,t){var n=this.supertypeMap.get(e);return!n&&t&&this.supertypeMap.set(e,n=new Set),n},Policies.prototype.fragmentMatches=function(e,t,n,r){var i=this;if(!e.typeCondition)return!0;if(!t)return!1;var d=e.typeCondition.name.value;if(t===d)return!0;if(this.usingPossibleTypes&&this.supertypeMap.has(d))for(var h=this.getSupertypeSet(t,!0),y=[h],g=function maybeEnqueue_1(e){var t=i.getSupertypeSet(e,!1);t&&t.size&&y.indexOf(t)<0&&y.push(t)},v=!(!n||!this.fuzzySubtypes.size),b=0;b=e.lastRequestId){if(d&&"none"===n.errorPolicy)throw e.markError(new v.c({graphQLErrors:i.errors}));e.markResult(i,n,t),e.markReady()}var y={data:i.data,loading:!1,networkStatus:e.networkStatus||_.I.ready};return d&&"ignore"!==n.errorPolicy&&(y.errors=i.errors),y}),(function(t){var n=(0,v.M)(t)?t:new v.c({networkError:t});throw r>=e.lastRequestId&&e.markError(n),n}))},QueryManager.prototype.fetchQueryObservable=function(e,t,n){var r=this;void 0===n&&(n=_.I.loading);var i=this.transform(t.query).document,d=this.getVariables(i,t.variables),y=this.getQuery(e),g=y.networkStatus,v=t.fetchPolicy,b=void 0===v?"cache-first":v,w=t.errorPolicy,E=void 0===w?"none":w,S=t.returnPartialData,k=void 0!==S&&S,O=t.notifyOnNetworkStatusChange,C=void 0!==O&&O,T=t.context,A=void 0===T?{}:T;("cache-first"===b||"cache-and-network"===b||"network-only"===b||"no-cache"===b)&&C&&"number"===typeof g&&g!==n&&(0,_.O)(n)&&("cache-first"!==b&&(b="cache-and-network"),k=!0);var x=Object.assign({},t,{query:i,variables:d,fetchPolicy:b,errorPolicy:E,returnPartialData:k,notifyOnNetworkStatusChange:C,context:A}),D=function fromVariables(e){return x.variables=e,r.fetchQueryByPolicy(y,x,n)};this.fetchCancelFns.set(e,(function(e){Promise.resolve().then((function(){return I.cancel(e)}))}));var I=new h.X_(this.transform(x.query).hasClientExports?this.localState.addExportedVariables(x.query,x.variables,x.context).then(D):D(x.variables));return I.cleanup((function(){r.fetchCancelFns.delete(e);var n=t.nextFetchPolicy;n&&(t.nextFetchPolicy=void 0,t.fetchPolicy="function"===typeof n?n.call(t,t.fetchPolicy||"cache-first"):n)})),I},QueryManager.prototype.fetchQueryByPolicy=function(e,t,n){var i=this,d=t.query,y=t.variables,g=t.fetchPolicy,v=t.errorPolicy,b=t.returnPartialData,w=t.context;e.init({document:d,variables:y,networkStatus:n});var E=function readCache(){return e.getDiff(y)},S=function resultsFromCache(t,n){void 0===n&&(n=e.networkStatus||_.I.loading);var g=t.result;var v=function fromData(e){return h.y$.of((0,r.pi)({data:e,loading:(0,_.O)(n),networkStatus:n},t.complete?null:{partial:!0}))};return i.transform(d).hasForcedResolvers?i.localState.runResolvers({document:d,remoteResult:{data:g},context:w,variables:y,onlyRunForcedResolvers:!0}).then((function(e){return v(e.data)})):v(g)},k=function resultsFromLink(t){return i.getResultsFromLink(e,t,{variables:y,context:w,fetchPolicy:g,errorPolicy:v})};switch(g){default:case"cache-first":return(O=E()).complete?[S(O,e.markReady())]:b?[S(O),k(!0)]:[k(!0)];case"cache-and-network":var O;return(O=E()).complete||b?[S(O),k(!0)]:[k(!0)];case"cache-only":return[S(E(),e.markReady())];case"network-only":return[k(!0)];case"no-cache":return[k(!1)];case"standby":return[]}},QueryManager.prototype.getQuery=function(e){return e&&!this.queries.has(e)&&this.queries.set(e,new O(this.cache)),this.queries.get(e)},QueryManager.prototype.prepareContext=function(e){void 0===e&&(e={});var t=this.localState.prepareContext(e);return(0,r.pi)((0,r.pi)({},t),{clientAwareness:this.clientAwareness})},QueryManager}();function _typeof(e){return(_typeof="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function _typeof(e){return typeof e}:function _typeof(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function mergeOptions(e,t){return(0,h.oA)(e,t,t.variables&&{variables:(0,r.pi)((0,r.pi)({},e.variables),t.variables)})}var A=function(){function ApolloClient(e){var t=this;this.defaultOptions={},this.resetStoreCallbacks=[],this.clearStoreCallbacks=[];var n=e.uri,r=e.credentials,h=e.headers,g=e.cache,v=e.ssrMode,b=void 0!==v&&v,_=e.ssrForceFetchDelay,w=void 0===_?0:_,E=e.connectToDevTools,k=void 0===E?"object"===("undefined"===typeof window?"undefined":_typeof(window))&&!window.__APOLLO_CLIENT__&&!1:E,O=e.queryDeduplication,C=void 0===O||O,A=e.defaultOptions,x=e.assumeImmutableResults,D=void 0!==x&&x,I=e.resolvers,L=e.typeDefs,P=e.fragmentMatcher,N=e.name,R=e.version,M=e.link;if(M||(M=n?new y.uG({uri:n,credentials:r,headers:h}):d.i0.empty()),!g)throw new i.ej(9);this.link=M,this.cache=g,this.disableNetworkFetches=b||w>0,this.queryDeduplication=C,this.defaultOptions=A||{},this.typeDefs=L,w&&setTimeout((function(){return t.disableNetworkFetches=!1}),w),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"===("undefined"===typeof window?"undefined":_typeof(window))&&(window.__APOLLO_CLIENT__=this),this.version="3.3.16",this.localState=new S({cache:g,client:this,resolvers:I,fragmentMatcher:P}),this.queryManager=new T({cache:this.cache,link:this.link,queryDeduplication:C,ssrMode:b,clientAwareness:{name:N,version:R},localState:this.localState,assumeImmutableResults:D,onBroadcast:k?function(){t.devToolsHookCb&&t.devToolsHookCb({action:{},state:{queries:t.queryManager.getQueryStore(),mutations:t.queryManager.mutationStore||{}},dataWithOptimisticResults:t.cache.extract(!0)})}:void 0})}return ApolloClient.prototype.stop=function(){this.queryManager.stop()},ApolloClient.prototype.watchQuery=function(e){return this.defaultOptions.watchQuery&&(e=mergeOptions(this.defaultOptions.watchQuery,e)),!this.disableNetworkFetches||"network-only"!==e.fetchPolicy&&"cache-and-network"!==e.fetchPolicy||(e=(0,r.pi)((0,r.pi)({},e),{fetchPolicy:"cache-first"})),this.queryManager.watchQuery(e)},ApolloClient.prototype.query=function(e){return this.defaultOptions.query&&(e=mergeOptions(this.defaultOptions.query,e)),(0,i.kG)("cache-and-network"!==e.fetchPolicy,10),this.disableNetworkFetches&&"network-only"===e.fetchPolicy&&(e=(0,r.pi)((0,r.pi)({},e),{fetchPolicy:"cache-first"})),this.queryManager.query(e)},ApolloClient.prototype.mutate=function(e){return this.defaultOptions.mutate&&(e=mergeOptions(this.defaultOptions.mutate,e)),this.queryManager.mutate(e)},ApolloClient.prototype.subscribe=function(e){return this.queryManager.startGraphQLSubscription(e)},ApolloClient.prototype.readQuery=function(e,t){return void 0===t&&(t=!1),this.cache.readQuery(e,t)},ApolloClient.prototype.readFragment=function(e,t){return void 0===t&&(t=!1),this.cache.readFragment(e,t)},ApolloClient.prototype.writeQuery=function(e){this.cache.writeQuery(e),this.queryManager.broadcastQueries()},ApolloClient.prototype.writeFragment=function(e){this.cache.writeFragment(e),this.queryManager.broadcastQueries()},ApolloClient.prototype.__actionHookForDevTools=function(e){this.devToolsHookCb=e},ApolloClient.prototype.__requestRaw=function(e){return(0,d.ht)(this.link,e)},ApolloClient.prototype.resetStore=function(){var e=this;return Promise.resolve().then((function(){return e.queryManager.clearStore()})).then((function(){return Promise.all(e.resetStoreCallbacks.map((function(e){return e()})))})).then((function(){return e.reFetchObservableQueries()}))},ApolloClient.prototype.clearStore=function(){var e=this;return Promise.resolve().then((function(){return e.queryManager.clearStore()})).then((function(){return Promise.all(e.clearStoreCallbacks.map((function(e){return e()})))}))},ApolloClient.prototype.onResetStore=function(e){var t=this;return this.resetStoreCallbacks.push(e),function(){t.resetStoreCallbacks=t.resetStoreCallbacks.filter((function(t){return t!==e}))}},ApolloClient.prototype.onClearStore=function(e){var t=this;return this.clearStoreCallbacks.push(e),function(){t.clearStoreCallbacks=t.clearStoreCallbacks.filter((function(t){return t!==e}))}},ApolloClient.prototype.reFetchObservableQueries=function(e){return this.queryManager.reFetchObservableQueries(e)},ApolloClient.prototype.extract=function(e){return this.cache.extract(e)},ApolloClient.prototype.restore=function(e){return this.cache.restore(e)},ApolloClient.prototype.addResolvers=function(e){this.localState.addResolvers(e)},ApolloClient.prototype.setResolvers=function(e){this.localState.setResolvers(e)},ApolloClient.prototype.getResolvers=function(){return this.localState.getResolvers()},ApolloClient.prototype.setLocalStateFragmentMatcher=function(e){this.localState.setFragmentMatcher(e)},ApolloClient.prototype.setLink=function(e){this.link=this.queryManager.link=e},ApolloClient}()},6950:function(e,t,n){"use strict";n.d(t,{u:function(){return v}});var r=n(2965),i=n(394),d=n(1429),h=n(4304),y=n(3423),g=function(){function Reobserver(e,t,n,r){this.observer=e,this.options=t,this.fetch=n,this.shouldFetch=r}return Reobserver.prototype.reobserve=function(e,t){e?this.updateOptions(e):this.updatePolling();var n=this.fetch(this.options,t);return this.concast&&this.concast.removeObserver(this.observer,!0),n.addObserver(this.observer),(this.concast=n).promise},Reobserver.prototype.updateOptions=function(e){return Object.assign(this.options,(0,y.oA)(e)),this.updatePolling(),this},Reobserver.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())},Reobserver.prototype.updatePolling=function(){var e=this,t=this.pollingInfo,n=this.options.pollInterval;if(n){if((!t||t.interval!==n)&&((0,i.kG)(n,20),!1!==this.shouldFetch)){(t||(this.pollingInfo={})).interval=n;var r=function maybeFetch(){e.pollingInfo&&(e.shouldFetch&&e.shouldFetch()?e.reobserve({fetchPolicy:"network-only",nextFetchPolicy:e.options.fetchPolicy||"cache-first"},h.I.poll).then(d,d):d())},d=function poll(){var t=e.pollingInfo;t&&(clearTimeout(t.timeout),t.timeout=setTimeout(r,t.interval))};d()}}else t&&(clearTimeout(t.timeout),delete this.pollingInfo)},Reobserver}(),v=function(e){function ObservableQuery(t){var n=t.queryManager,i=t.queryInfo,d=t.options,g=e.call(this,(function(e){return g.onSubscribe(e)}))||this;g.observers=new Set,g.subscriptions=new Set,g.observer={next:function next(e){(g.lastError||g.isDifferentFromLastResult(e))&&(g.updateLastResult(e),(0,y.pM)(g.observers,"next",e))},error:function error(e){g.updateLastResult((0,r.pi)((0,r.pi)({},g.lastResult),{error:e,errors:e.graphQLErrors,networkStatus:h.I.error,loading:!1})),(0,y.pM)(g.observers,"error",g.lastError=e)}},g.isTornDown=!1,g.options=d,g.queryId=n.generateQueryId();var v=(0,y.$H)(d.query);return g.queryName=v&&v.name&&v.name.value,g.queryManager=n,g.queryInfo=i,g}return(0,r.ZT)(ObservableQuery,e),Object.defineProperty(ObservableQuery.prototype,"variables",{get:function get(){return this.options.variables},enumerable:!1,configurable:!0}),ObservableQuery.prototype.result=function(){var e=this;return new Promise((function(t,n){var r={next:function next(n){t(n),e.observers.delete(r),e.observers.size||e.queryManager.removeQuery(e.queryId),setTimeout((function(){i.unsubscribe()}),0)},error:n},i=e.subscribe(r)}))},ObservableQuery.prototype.getCurrentResult=function(e){void 0===e&&(e=!0);var t=this.lastResult,n=this.queryInfo.networkStatus||t&&t.networkStatus||h.I.ready,i=(0,r.pi)((0,r.pi)({},t),{loading:(0,h.O)(n),networkStatus:n});if(this.isTornDown)return i;var d=this.options.fetchPolicy,y=void 0===d?"cache-first":d;if("no-cache"===y||"network-only"===y)delete i.partial;else if(!i.data||!this.queryManager.transform(this.options.query).hasForcedResolvers){var g=this.queryInfo.getDiff();i.data=g.complete||this.options.returnPartialData?g.result:void 0,g.complete?(i.networkStatus!==h.I.loading||"cache-first"!==y&&"cache-only"!==y||(i.networkStatus=h.I.ready,i.loading=!1),delete i.partial):i.partial=!0}return e&&this.updateLastResult(i),i},ObservableQuery.prototype.isDifferentFromLastResult=function(e){return!(0,d.D)(this.lastResultSnapshot,e)},ObservableQuery.prototype.getLastResult=function(){return this.lastResult},ObservableQuery.prototype.getLastError=function(){return this.lastError},ObservableQuery.prototype.resetLastResults=function(){delete this.lastResult,delete this.lastResultSnapshot,delete this.lastError,this.isTornDown=!1},ObservableQuery.prototype.resetQueryStoreErrors=function(){this.queryManager.resetErrors(this.queryId)},ObservableQuery.prototype.refetch=function(e){var t={pollInterval:0},n=this.options.fetchPolicy;return"no-cache"!==n&&"cache-and-network"!==n&&(t.fetchPolicy="network-only",t.nextFetchPolicy=n||"cache-first"),e&&!(0,d.D)(this.options.variables,e)&&(t.variables=this.options.variables=(0,r.pi)((0,r.pi)({},this.options.variables),e)),this.newReobserver(!1).reobserve(t,h.I.refetch)},ObservableQuery.prototype.fetchMore=function(e){var t=this,n=(0,r.pi)((0,r.pi)({},e.query?e:(0,r.pi)((0,r.pi)((0,r.pi)({},this.options),e),{variables:(0,r.pi)((0,r.pi)({},this.options.variables),e.variables)})),{fetchPolicy:"no-cache"}),i=this.queryManager.generateQueryId();return n.notifyOnNetworkStatusChange&&(this.queryInfo.networkStatus=h.I.fetchMore,this.observe()),this.queryManager.fetchQuery(i,n,h.I.fetchMore).then((function(r){var i=r.data,d=e.updateQuery;return d?t.updateQuery((function(e){return d(e,{fetchMoreResult:i,variables:n.variables})})):t.queryManager.cache.writeQuery({query:n.query,variables:n.variables,data:i}),r})).finally((function(){t.queryManager.stopQuery(i),t.reobserve()}))},ObservableQuery.prototype.subscribeToMore=function(e){var t=this,n=this.queryManager.startGraphQLSubscription({query:e.document,variables:e.variables,context:e.context}).subscribe({next:function next(n){var r=e.updateQuery;r&&t.updateQuery((function(e,t){var i=t.variables;return r(e,{subscriptionData:n,variables:i})}))},error:function error(t){e.onError&&e.onError(t)}});return this.subscriptions.add(n),function(){t.subscriptions.delete(n)&&n.unsubscribe()}},ObservableQuery.prototype.setOptions=function(e){return this.reobserve(e)},ObservableQuery.prototype.setVariables=function(e){if((0,d.D)(this.variables,e))return this.observers.size?this.result():Promise.resolve();if(this.options.variables=e,!this.observers.size)return Promise.resolve();var t=this.options.fetchPolicy,n=void 0===t?"cache-first":t,r={fetchPolicy:n,variables:e};return"cache-first"!==n&&"no-cache"!==n&&"network-only"!==n&&(r.fetchPolicy="cache-and-network",r.nextFetchPolicy=n),this.reobserve(r,h.I.setVariables)},ObservableQuery.prototype.updateQuery=function(e){var t,n=this.queryManager,r=e(n.cache.diff({query:this.options.query,variables:this.variables,previousResult:null===(t=this.lastResult)||void 0===t?void 0:t.data,returnPartialData:!0,optimistic:!1}).result,{variables:this.variables});r&&(n.cache.writeQuery({query:this.options.query,data:r,variables:this.variables}),n.broadcastQueries())},ObservableQuery.prototype.startPolling=function(e){this.getReobserver().updateOptions({pollInterval:e})},ObservableQuery.prototype.stopPolling=function(){this.reobserver&&this.reobserver.updateOptions({pollInterval:0})},ObservableQuery.prototype.updateLastResult=function(e){var t=this.lastResult;return this.lastResult=e,this.lastResultSnapshot=this.queryManager.assumeImmutableResults?e:(0,y.Xh)(e),(0,y.Of)(e.errors)||delete this.lastError,t},ObservableQuery.prototype.onSubscribe=function(e){var t=this;if(e===this.observer)return function(){};try{var n=e._subscription._observer;n&&!n.error&&(n.error=defaultSubscriptionObserverErrorCallback)}catch(i){}var r=!this.observers.size;return this.observers.add(e),this.lastError?e.error&&e.error(this.lastError):this.lastResult&&e.next&&e.next(this.lastResult),r&&this.reobserve().catch((function(e){})),function(){t.observers.delete(e)&&!t.observers.size&&t.tearDownQuery()}},ObservableQuery.prototype.getReobserver=function(){return this.reobserver||(this.reobserver=this.newReobserver(!0))},ObservableQuery.prototype.newReobserver=function(e){var t=this,n=this.queryManager,i=this.queryId;return n.setObservableQuery(this),new g(this.observer,e?this.options:(0,r.pi)({},this.options),(function(e,r){return n.setObservableQuery(t),n.fetchQueryObservable(i,e,r)}),!n.ssrMode&&function(){return!(0,h.O)(t.queryInfo.networkStatus)})},ObservableQuery.prototype.reobserve=function(e,t){return this.isTornDown=!1,this.getReobserver().reobserve(e,t)},ObservableQuery.prototype.observe=function(){this.observer.next(this.getCurrentResult(!1))},ObservableQuery.prototype.hasObservers=function(){return this.observers.size>0},ObservableQuery.prototype.tearDownQuery=function(){this.isTornDown||(this.reobserver&&(this.reobserver.stop(),delete this.reobserver),this.subscriptions.forEach((function(e){return e.unsubscribe()})),this.subscriptions.clear(),this.queryManager.stopQuery(this.queryId),this.observers.clear(),this.isTornDown=!0)},ObservableQuery}(y.y$);function defaultSubscriptionObserverErrorCallback(e){}(0,y.Dy)(v)},361:function(e,t,n){"use strict";n.d(t,{fe:function(){return r.f},JH:function(){return r.J},Ie:function(){return i.I},h4:function(){return h.h4},ApolloLink:function(){return g.i0},from:function(){return g.Dp},HttpLink:function(){return v.uG},Ps:function(){return _.ZP}});var r=n(639),i=(n(6950),n(4304)),d=n(2631);n.o(d,"ApolloLink")&&n.d(t,{ApolloLink:function(){return d.ApolloLink}}),n.o(d,"HttpLink")&&n.d(t,{HttpLink:function(){return d.HttpLink}}),n.o(d,"from")&&n.d(t,{from:function(){return d.from}});n(3344);var h=n(4662),y=n(9178);n.o(y,"ApolloLink")&&n.d(t,{ApolloLink:function(){return y.ApolloLink}}),n.o(y,"HttpLink")&&n.d(t,{HttpLink:function(){return y.HttpLink}}),n.o(y,"from")&&n.d(t,{from:function(){return y.from}});var g=n(159);n.o(g,"HttpLink")&&n.d(t,{HttpLink:function(){return g.HttpLink}});var v=n(8845),b=(n(5766),n(3423),n(394)),_=n(9756);(0,b.U6)("log");_.ZP.resetCaches,_.ZP.disableFragmentWarnings,_.ZP.enableExperimentalFragmentVariables,_.ZP.disableExperimentalFragmentVariables},4304:function(e,t,n){"use strict";var r;function isNetworkRequestInFlight(e){return!!e&&e<7}n.d(t,{I:function(){return r},O:function(){return isNetworkRequestInFlight}}),function(e){e[e.loading=1]="loading",e[e.setVariables=2]="setVariables",e[e.fetchMore=3]="fetchMore",e[e.refetch=4]="refetch",e[e.poll=6]="poll",e[e.ready=7]="ready",e[e.error=8]="error"}(r||(r={}))},2631:function(){},3344:function(e,t,n){"use strict";n.d(t,{M:function(){return isApolloError},c:function(){return d}});var r=n(2965),i=n(3423);function isApolloError(e){return e.hasOwnProperty("graphQLErrors")}var d=function(e){function ApolloError(t){var n=t.graphQLErrors,r=t.networkError,d=t.errorMessage,h=t.extraInfo,y=e.call(this,d)||this;return y.graphQLErrors=n||[],y.networkError=r||null,y.message=d||function generateErrorMessage(e){var t="";return(0,i.Of)(e.graphQLErrors)&&e.graphQLErrors.forEach((function(e){var n=e?e.message:"Error message not found.";t+=n+"\n"})),e.networkError&&(t+=e.networkError.message+"\n"),t=t.replace(/\n$/,"")}(y),y.extraInfo=h,y.__proto__=ApolloError.prototype,y}return(0,r.ZT)(ApolloError,e),ApolloError}(Error)},4747:function(e,t,n){"use strict";var r=n(361);n.o(r,"ApolloLink")&&n.d(t,{ApolloLink:function(){return r.ApolloLink}}),n.o(r,"from")&&n.d(t,{from:function(){return r.from}});var i=n(3165);n.o(i,"ApolloLink")&&n.d(t,{ApolloLink:function(){return i.ApolloLink}}),n.o(i,"from")&&n.d(t,{from:function(){return i.from}})},678:function(e,t,n){"use strict";n.d(t,{i:function(){return y}});var r=n(2965),i=n(394),d=n(3423),h=n(5766);function passthrough(e,t){return t?t(e):d.y$.of()}function toLink(e){return"function"===typeof e?new y(e):e}function isTerminating(e){return e.request.length<=1}!function(e){function LinkError(t,n){var r=e.call(this,t)||this;return r.link=n,r}(0,r.ZT)(LinkError,e)}(Error);var y=function(){function ApolloLink(e){e&&(this.request=e)}return ApolloLink.empty=function(){return new ApolloLink((function(){return d.y$.of()}))},ApolloLink.from=function(e){return 0===e.length?ApolloLink.empty():e.map(toLink).reduce((function(e,t){return e.concat(t)}))},ApolloLink.split=function(e,t,n){var r=toLink(t),i=toLink(n||new ApolloLink(passthrough));return isTerminating(r)&&isTerminating(i)?new ApolloLink((function(t){return e(t)?r.request(t)||d.y$.of():i.request(t)||d.y$.of()})):new ApolloLink((function(t,n){return e(t)?r.request(t,n)||d.y$.of():i.request(t,n)||d.y$.of()}))},ApolloLink.execute=function(e,t){return e.request((0,h.zi)(t.context,(0,h.DQ)((0,h.Ak)(t))))||d.y$.of()},ApolloLink.concat=function(e,t){var n=toLink(e);if(isTerminating(n))return n;var r=toLink(t);return isTerminating(r)?new ApolloLink((function(e){return n.request(e,(function(e){return r.request(e)||d.y$.of()}))||d.y$.of()})):new ApolloLink((function(e,t){return n.request(e,(function(e){return r.request(e,t)||d.y$.of()}))||d.y$.of()}))},ApolloLink.prototype.split=function(e,t,n){return this.concat(ApolloLink.split(e,t,n||new ApolloLink(passthrough)))},ApolloLink.prototype.concat=function(e){return ApolloLink.concat(this,e)},ApolloLink.prototype.request=function(e,t){throw new i.ej(21)},ApolloLink.prototype.onError=function(e,t){if(t&&t.error)return t.error(e),!1;throw e},ApolloLink.prototype.setOnError=function(e){return this.onError=e,this},ApolloLink}()},1648:function(e,t,n){"use strict";n(678).i.concat},3960:function(e,t,n){"use strict";n(678).i.empty},7128:function(e,t,n){"use strict";n.d(t,{h:function(){return r}});var r=n(678).i.execute},244:function(e,t,n){"use strict";n.d(t,{D:function(){return r}});var r=n(678).i.from},159:function(e,t,n){"use strict";n.d(t,{Dp:function(){return r.D},ht:function(){return i.h},i0:function(){return d.i}});n(3960);var r=n(244),i=(n(3954),n(1648),n(7128)),d=n(678),h=n(549);n.o(h,"HttpLink")&&n.d(t,{HttpLink:function(){return h.HttpLink}})},3954:function(e,t,n){"use strict";n(678).i.split},549:function(){},8845:function(e,t,n){"use strict";n.d(t,{uG:function(){return k}});var r=n(5766),i=Object.prototype.hasOwnProperty;var d=n(394),h=function serializeFetchParameter(e,t){var n;try{n=JSON.stringify(e)}catch(i){var r=new d.ej(23);throw r.parseError=i,r}return n},y=n(2965),g=n(4893),v=n(2464);function print(e){return(0,g.Vn)(e,{leave:b})}var b={Name:function Name(e){return e.value},Variable:function Variable(e){return"$"+e.name},Document:function Document(e){return join(e.definitions,"\n\n")+"\n"},OperationDefinition:function OperationDefinition(e){var t=e.operation,n=e.name,r=wrap("(",join(e.variableDefinitions,", "),")"),i=join(e.directives," "),d=e.selectionSet;return n||i||r||"query"!==t?join([t,join([n,r]),i,d]," "):d},VariableDefinition:function VariableDefinition(e){var t=e.variable,n=e.type,r=e.defaultValue,i=e.directives;return t+": "+n+wrap(" = ",r)+wrap(" ",join(i," "))},SelectionSet:function SelectionSet(e){return block(e.selections)},Field:function Field(e){var t=e.alias,n=e.name,r=e.arguments,i=e.directives,d=e.selectionSet,h=wrap("",t,": ")+n,y=h+wrap("(",join(r,", "),")");return y.length>80&&(y=h+wrap("(\n",indent(join(r,"\n")),"\n)")),join([y,join(i," "),d]," ")},Argument:function Argument(e){return e.name+": "+e.value},FragmentSpread:function FragmentSpread(e){return"..."+e.name+wrap(" ",join(e.directives," "))},InlineFragment:function InlineFragment(e){var t=e.typeCondition,n=e.directives,r=e.selectionSet;return join(["...",wrap("on ",t),join(n," "),r]," ")},FragmentDefinition:function FragmentDefinition(e){var t=e.name,n=e.typeCondition,r=e.variableDefinitions,i=e.directives,d=e.selectionSet;return"fragment ".concat(t).concat(wrap("(",join(r,", "),")")," ")+"on ".concat(n," ").concat(wrap("",join(i," ")," "))+d},IntValue:function IntValue(e){return e.value},FloatValue:function FloatValue(e){return e.value},StringValue:function StringValue(e,t){var n=e.value;return e.block?(0,v.LZ)(n,"description"===t?"":" "):JSON.stringify(n)},BooleanValue:function BooleanValue(e){return e.value?"true":"false"},NullValue:function NullValue(){return"null"},EnumValue:function EnumValue(e){return e.value},ListValue:function ListValue(e){return"["+join(e.values,", ")+"]"},ObjectValue:function ObjectValue(e){return"{"+join(e.fields,", ")+"}"},ObjectField:function ObjectField(e){return e.name+": "+e.value},Directive:function Directive(e){return"@"+e.name+wrap("(",join(e.arguments,", "),")")},NamedType:function NamedType(e){return e.name},ListType:function ListType(e){return"["+e.type+"]"},NonNullType:function NonNullType(e){return e.type+"!"},SchemaDefinition:addDescription((function(e){var t=e.directives,n=e.operationTypes;return join(["schema",join(t," "),block(n)]," ")})),OperationTypeDefinition:function OperationTypeDefinition(e){return e.operation+": "+e.type},ScalarTypeDefinition:addDescription((function(e){return join(["scalar",e.name,join(e.directives," ")]," ")})),ObjectTypeDefinition:addDescription((function(e){var t=e.name,n=e.interfaces,r=e.directives,i=e.fields;return join(["type",t,wrap("implements ",join(n," & ")),join(r," "),block(i)]," ")})),FieldDefinition:addDescription((function(e){var t=e.name,n=e.arguments,r=e.type,i=e.directives;return t+(hasMultilineItems(n)?wrap("(\n",indent(join(n,"\n")),"\n)"):wrap("(",join(n,", "),")"))+": "+r+wrap(" ",join(i," "))})),InputValueDefinition:addDescription((function(e){var t=e.name,n=e.type,r=e.defaultValue,i=e.directives;return join([t+": "+n,wrap("= ",r),join(i," ")]," ")})),InterfaceTypeDefinition:addDescription((function(e){var t=e.name,n=e.interfaces,r=e.directives,i=e.fields;return join(["interface",t,wrap("implements ",join(n," & ")),join(r," "),block(i)]," ")})),UnionTypeDefinition:addDescription((function(e){var t=e.name,n=e.directives,r=e.types;return join(["union",t,join(n," "),r&&0!==r.length?"= "+join(r," | "):""]," ")})),EnumTypeDefinition:addDescription((function(e){var t=e.name,n=e.directives,r=e.values;return join(["enum",t,join(n," "),block(r)]," ")})),EnumValueDefinition:addDescription((function(e){return join([e.name,join(e.directives," ")]," ")})),InputObjectTypeDefinition:addDescription((function(e){var t=e.name,n=e.directives,r=e.fields;return join(["input",t,join(n," "),block(r)]," ")})),DirectiveDefinition:addDescription((function(e){var t=e.name,n=e.arguments,r=e.repeatable,i=e.locations;return"directive @"+t+(hasMultilineItems(n)?wrap("(\n",indent(join(n,"\n")),"\n)"):wrap("(",join(n,", "),")"))+(r?" repeatable":"")+" on "+join(i," | ")})),SchemaExtension:function SchemaExtension(e){var t=e.directives,n=e.operationTypes;return join(["extend schema",join(t," "),block(n)]," ")},ScalarTypeExtension:function ScalarTypeExtension(e){return join(["extend scalar",e.name,join(e.directives," ")]," ")},ObjectTypeExtension:function ObjectTypeExtension(e){var t=e.name,n=e.interfaces,r=e.directives,i=e.fields;return join(["extend type",t,wrap("implements ",join(n," & ")),join(r," "),block(i)]," ")},InterfaceTypeExtension:function InterfaceTypeExtension(e){var t=e.name,n=e.interfaces,r=e.directives,i=e.fields;return join(["extend interface",t,wrap("implements ",join(n," & ")),join(r," "),block(i)]," ")},UnionTypeExtension:function UnionTypeExtension(e){var t=e.name,n=e.directives,r=e.types;return join(["extend union",t,join(n," "),r&&0!==r.length?"= "+join(r," | "):""]," ")},EnumTypeExtension:function EnumTypeExtension(e){var t=e.name,n=e.directives,r=e.values;return join(["extend enum",t,join(n," "),block(r)]," ")},InputObjectTypeExtension:function InputObjectTypeExtension(e){var t=e.name,n=e.directives,r=e.fields;return join(["extend input",t,join(n," "),block(r)]," ")}};function addDescription(e){return function(t){return join([t.description,e(t)],"\n")}}function join(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return null!==(t=null===e||void 0===e?void 0:e.filter((function(e){return e})).join(n))&&void 0!==t?t:""}function block(e){return wrap("{\n",indent(join(e,"\n")),"\n}")}function wrap(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return null!=t&&""!==t?e+t+n:""}function indent(e){return wrap(" ",e.replace(/\n/g,"\n "))}function isMultiline(e){return-1!==e.indexOf("\n")}function hasMultilineItems(e){return null!=e&&e.some(isMultiline)}var _={http:{includeQuery:!0,includeExtensions:!1},headers:{accept:"*/*","content-type":"application/json"},options:{method:"POST"}},w=n(159),E=n(3423);var S=function createHttpLink(e){void 0===e&&(e={});var t=e.uri,n=void 0===t?"/graphql":t,v=e.fetch,b=e.includeExtensions,S=e.useGETForQueries,k=e.includeUnusedVariables,O=void 0!==k&&k,C=(0,y._T)(e,["uri","fetch","includeExtensions","useGETForQueries","includeUnusedVariables"]);!function checkFetcher(e){if(!e&&"undefined"===typeof fetch)throw new d.ej(22)}(v),v||(v=fetch);var T={http:{includeExtensions:b},options:C.fetchOptions,credentials:C.credentials,headers:C.headers};return new w.i0((function(e){var t=function selectURI(e,t){return e.getContext().uri||("function"===typeof t?t(e):t||"/graphql")}(e,n),d=e.getContext(),b={};if(d.clientAwareness){var w=d.clientAwareness,k=w.name,C=w.version;k&&(b["apollographql-client-name"]=k),C&&(b["apollographql-client-version"]=C)}var A,x=(0,y.pi)((0,y.pi)({},b),d.headers),D={http:d.http,options:d.fetchOptions,credentials:d.credentials,headers:x},I=function selectHttpOptionsAndBody(e,t){for(var n=[],r=2;r=300&&(0,r.PW)(t,n,"Response not successful: Received status code "+t.status),Array.isArray(n)||i.call(n,"data")||i.call(n,"errors")||(0,r.PW)(t,n,"Server response was missing for query '"+(Array.isArray(e)?e.map((function(e){return e.operationName})):e.operationName)+"'."),n}))}}(e)).then((function(e){return n.next(e),n.complete(),e})).catch((function(e){"AbortError"!==e.name&&(e.result&&e.result.errors&&e.result.data&&n.next(e.result),n.error(e))})),function(){A&&A.abort()}}))}))},k=function(e){function HttpLink(t){void 0===t&&(t={});var n=e.call(this,S(t).request)||this;return n.options=t,n}return(0,y.ZT)(HttpLink,e),HttpLink}(w.i0)},5766:function(e,t,n){"use strict";n.d(t,{zi:function(){return createOperation},Qc:function(){return fromError},PW:function(){return d},DQ:function(){return transformOperation},Ak:function(){return validateOperation}});var r=n(3423);function fromError(e){return new r.y$((function(t){t.error(e)}))}var i=n(394);var d=function throwServerError(e,t,n){var r=new Error(n);throw r.name="ServerError",r.response=e,r.statusCode=e.status,r.result=t,r};function validateOperation(e){for(var t=["query","operationName","variables","extensions","context"],n=0,r=Object.keys(e);n0&&(this.previousOptions.subscription!==this.getOptions().subscription||!(0,d.D)(this.previousOptions.variables,this.getOptions().variables)||this.previousOptions.skip!==this.getOptions().skip)&&(this.cleanup(),t=this.getLoadingResult()),this.initialize(this.getOptions()),this.startSubscription(),this.previousOptions=this.getOptions(),(0,i.pi)((0,i.pi)({},t),{variables:this.getOptions().variables})},SubscriptionData.prototype.afterExecute=function(){this.isMounted=!0},SubscriptionData.prototype.cleanup=function(){this.endSubscription(),delete this.currentObservable.query},SubscriptionData.prototype.initialize=function(e){this.currentObservable.query||!0===this.getOptions().skip||(this.currentObservable.query=this.refreshClient().client.subscribe({query:e.subscription,variables:e.variables,fetchPolicy:e.fetchPolicy,context:e.context}))},SubscriptionData.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)}))},SubscriptionData.prototype.getLoadingResult=function(){return{loading:!0,error:void 0,data:void 0}},SubscriptionData.prototype.updateResult=function(e){this.isMounted&&this.setResult(e)},SubscriptionData.prototype.updateCurrentData=function(e){var t=this.getOptions().onSubscriptionData;this.updateResult({data:e.data,loading:!1,error:void 0}),t&&t({client:this.refreshClient().client,subscriptionData:e})},SubscriptionData.prototype.updateError=function(e){this.updateResult({error:e,loading:!1})},SubscriptionData.prototype.completeSubscription=function(){var e=this;Promise.resolve().then((function(){var t=e.getOptions().onSubscriptionComplete;t&&t(),e.endSubscription()}))},SubscriptionData.prototype.endSubscription=function(){this.currentObservable.subscription&&(this.currentObservable.subscription.unsubscribe(),delete this.currentObservable.subscription)}}(y),n(3344)),v=n(361);(function(e){function MutationData(t){var n=t.options,r=t.context,i=t.result,d=t.setResult,y=e.call(this,n,r)||this;return y.runMutation=function(e){void 0===e&&(e={}),y.onMutationStart();var t=y.generateNewMutationId();return y.mutate(e).then((function(e){return y.onMutationCompleted(e,t),e})).catch((function(e){var n=y.getOptions().onError;if(y.onMutationError(e,t),n)return n(e),{data:void 0,errors:e};throw e}))},y.verifyDocumentType(n.mutation,h.n_.Mutation),y.result=i,y.setResult=d,y.mostRecentMutationId=0,y}(0,i.ZT)(MutationData,e),MutationData.prototype.execute=function(e){return this.isMounted=!0,this.verifyDocumentType(this.getOptions().mutation,h.n_.Mutation),[this.runMutation,(0,i.pi)((0,i.pi)({},e),{client:this.refreshClient().client})]},MutationData.prototype.afterExecute=function(){return this.isMounted=!0,this.unmount.bind(this)},MutationData.prototype.cleanup=function(){},MutationData.prototype.mutate=function(e){return this.refreshClient().client.mutate((0,v.JH)(this.getOptions(),e))},MutationData.prototype.onMutationStart=function(){this.result.loading||this.getOptions().ignoreResults||this.updateResult({loading:!0,error:void 0,data:void 0,called:!0})},MutationData.prototype.onMutationCompleted=function(e,t){var n=this.getOptions(),r=n.onCompleted,i=n.ignoreResults,d=e.data,h=e.errors,y=h&&h.length>0?new g.c({graphQLErrors:h}):void 0;this.isMostRecentMutation(t)&&!i&&this.updateResult({called:!0,loading:!1,data:d,error:y}),function callOncomplete(){r&&r(d)}()},MutationData.prototype.onMutationError=function(e,t){this.isMostRecentMutation(t)&&this.updateResult({loading:!1,error:e,data:void 0,called:!0})},MutationData.prototype.generateNewMutationId=function(){return++this.mostRecentMutationId},MutationData.prototype.isMostRecentMutation=function(e){return this.mostRecentMutationId===e},MutationData.prototype.updateResult=function(e){if(this.isMounted&&(!this.previousResult||!(0,d.D)(this.previousResult,e)))return this.setResult(e),this.previousResult=e,e}})(y),function(e){function QueryData(t){var n=t.options,r=t.context,d=t.onNewData,h=e.call(this,n,r)||this;return h.runLazy=!1,h.previous=Object.create(null),h.runLazyQuery=function(e){h.cleanup(),h.runLazy=!0,h.lazyOptions=e,h.onNewData()},h.getQueryResult=function(){var e=h.observableQueryFields(),t=h.getOptions();if(t.skip)e=(0,i.pi)((0,i.pi)({},e),{data:void 0,error:void 0,loading:!1,networkStatus:v.Ie.ready,called:!0});else if(h.currentObservable){var n=h.currentObservable.getCurrentResult(),r=n.data,d=n.loading,y=n.partial,b=n.networkStatus,_=n.errors,w=n.error;if(_&&_.length>0&&(w=new g.c({graphQLErrors:_})),e=(0,i.pi)((0,i.pi)({},e),{data:r,loading:d,networkStatus:b,error:w,called:!0}),d);else if(w)Object.assign(e,{data:(h.currentObservable.getLastResult()||{}).data});else{var E=h.currentObservable.options.fetchPolicy;if(t.partialRefetch&&y&&(!r||0===Object.keys(r).length)&&"cache-only"!==E)return Object.assign(e,{loading:!0,networkStatus:v.Ie.loading}),e.refetch(),e}}e.client=h.client,h.setOptions(t,!0);var S=h.previous.result;return h.previous.loading=S&&S.loading||!1,e.previousData=S&&(S.data||S.previousData),h.previous.result=e,h.currentObservable&&h.currentObservable.resetQueryStoreErrors(),e},h.obsRefetch=function(e){var t;return null===(t=h.currentObservable)||void 0===t?void 0:t.refetch(e)},h.obsFetchMore=function(e){return h.currentObservable.fetchMore(e)},h.obsUpdateQuery=function(e){return h.currentObservable.updateQuery(e)},h.obsStartPolling=function(e){var t;null===(t=h.currentObservable)||void 0===t||t.startPolling(e)},h.obsStopPolling=function(){var e;null===(e=h.currentObservable)||void 0===e||e.stopPolling()},h.obsSubscribeToMore=function(e){return h.currentObservable.subscribeToMore(e)},h.onNewData=d,h}(0,i.ZT)(QueryData,e),QueryData.prototype.execute=function(){this.refreshClient();var e=this.getOptions(),t=e.skip,n=e.query;return(t||n!==this.previous.query)&&(this.removeQuerySubscription(),this.removeObservable(!t),this.previous.query=n),this.updateObservableQuery(),this.isMounted&&this.startQuerySubscription(),this.getExecuteSsrResult()||this.getExecuteResult()},QueryData.prototype.executeLazy=function(){return this.runLazy?[this.runLazyQuery,this.execute()]:[this.runLazyQuery,{loading:!1,networkStatus:v.Ie.ready,called:!1,data:void 0}]},QueryData.prototype.fetchData=function(){var e=this,t=this.getOptions();return!t.skip&&!1!==t.ssr&&new Promise((function(t){return e.startQuerySubscription(t)}))},QueryData.prototype.afterExecute=function(e){var t=(void 0===e?{}:e).lazy,n=void 0!==t&&t;return this.isMounted=!0,n&&!this.runLazy||this.handleErrorOrCompleted(),this.previousOptions=this.getOptions(),this.unmount.bind(this)},QueryData.prototype.cleanup=function(){this.removeQuerySubscription(),this.removeObservable(!0),delete this.previous.result},QueryData.prototype.getOptions=function(){var t=e.prototype.getOptions.call(this);return this.lazyOptions&&(t.variables=(0,i.pi)((0,i.pi)({},t.variables),this.lazyOptions.variables),t.context=(0,i.pi)((0,i.pi)({},t.context),this.lazyOptions.context)),this.runLazy&&delete t.skip,t},QueryData.prototype.ssrInitiated=function(){return this.context&&this.context.renderPromises},QueryData.prototype.getExecuteResult=function(){var e=this.getQueryResult();return this.startQuerySubscription(),e},QueryData.prototype.getExecuteSsrResult=function(){var e=this.getOptions(),t=e.ssr,n=e.skip,r=!1===t,d=this.refreshClient().client.disableNetworkFetches,h=(0,i.pi)({loading:!0,networkStatus:v.Ie.loading,called:!0,data:void 0,stale:!1,client:this.client},this.observableQueryFields());if(r&&(this.ssrInitiated()||d))return this.previous.result=h,h;if(this.ssrInitiated()){var y=this.getQueryResult()||h;return y.loading&&!n&&this.context.renderPromises.addQueryPromise(this,(function(){return null})),y}},QueryData.prototype.prepareObservableQueryOptions=function(){var e=this.getOptions();this.verifyDocumentType(e.query,h.n_.Query);var t=e.displayName||"Query";return!this.ssrInitiated()||"network-only"!==e.fetchPolicy&&"cache-and-network"!==e.fetchPolicy||(e.fetchPolicy="cache-first"),(0,i.pi)((0,i.pi)({},e),{displayName:t,context:e.context})},QueryData.prototype.initializeObservableQuery=function(){if(this.ssrInitiated()&&(this.currentObservable=this.context.renderPromises.getSSRObservable(this.getOptions())),!this.currentObservable){var e=this.prepareObservableQueryOptions();this.previous.observableQueryOptions=(0,i.pi)((0,i.pi)({},e),{children:null}),this.currentObservable=this.refreshClient().client.watchQuery((0,i.pi)({},e)),this.ssrInitiated()&&this.context.renderPromises.registerSSRObservable(this.currentObservable,e)}},QueryData.prototype.updateObservableQuery=function(){if(this.currentObservable){if(!this.getOptions().skip){var e=(0,i.pi)((0,i.pi)({},this.prepareObservableQueryOptions()),{children:null});(0,d.D)(e,this.previous.observableQueryOptions)||(this.previous.observableQueryOptions=e,this.currentObservable.setOptions(e).catch((function(){})))}}else this.initializeObservableQuery()},QueryData.prototype.startQuerySubscription=function(e){var t=this;void 0===e&&(e=this.onNewData),this.currentSubscription||this.getOptions().skip||(this.currentSubscription=this.currentObservable.subscribe({next:function next(n){var r=n.loading,i=n.networkStatus,h=n.data,y=t.previous.result;y&&y.loading===r&&y.networkStatus===i&&(0,d.D)(y.data,h)||e()},error:function error(n){if(t.resubscribeToQuery(),!n.hasOwnProperty("graphQLErrors"))throw n;var r=t.previous.result;(r&&r.loading||!(0,d.D)(n,t.previous.error))&&(t.previous.error=n,e())}}))},QueryData.prototype.resubscribeToQuery=function(){this.removeQuerySubscription();var e=this.currentObservable;if(e){var t=e.getLastError(),n=e.getLastResult();e.resetLastResults(),this.startQuerySubscription(),Object.assign(e,{lastError:t,lastResult:n})}},QueryData.prototype.handleErrorOrCompleted=function(){if(this.currentObservable&&this.previous.result){var e=this.previous.result,t=e.data,n=e.loading,r=e.error;if(!n){var i=this.getOptions(),h=i.query,y=i.variables,g=i.onCompleted,v=i.onError,b=i.skip;if(this.previousOptions&&!this.previous.loading&&(0,d.D)(this.previousOptions.query,h)&&(0,d.D)(this.previousOptions.variables,y))return;!g||r||b?v&&r&&v(r):g(t)}}},QueryData.prototype.removeQuerySubscription=function(){this.currentSubscription&&(this.currentSubscription.unsubscribe(),delete this.currentSubscription)},QueryData.prototype.removeObservable=function(e){this.currentObservable&&(this.currentObservable.tearDownQuery(),e&&delete this.currentObservable)},QueryData.prototype.observableQueryFields=function(){var e;return{variables:null===(e=this.currentObservable)||void 0===e?void 0:e.variables,refetch:this.obsRefetch,fetchMore:this.obsFetchMore,updateQuery:this.obsUpdateQuery,startPolling:this.obsStartPolling,stopPolling:this.obsStopPolling,subscribeToMore:this.obsSubscribeToMore}}}(y)},3165:function(e,t,n){"use strict";n(5812),n(6550),n(8062);var r=n(1305);n.o(r,"ApolloLink")&&n.d(t,{ApolloLink:function(){return r.ApolloLink}}),n.o(r,"from")&&n.d(t,{from:function(){return r.from}})},8062:function(e,t,n){"use strict";n.d(t,{n_:function(){return r},mw:function(){return operationName},E2:function(){return parser}});var r,i=n(394);!function(e){e[e.Query=0]="Query",e[e.Mutation=1]="Mutation",e[e.Subscription=2]="Subscription"}(r||(r={}));var d=new Map;function operationName(e){var t;switch(e){case r.Query:t="Query";break;case r.Mutation:t="Mutation";break;case r.Subscription:t="Subscription"}return t}function parser(e){var t,n,h=d.get(e);if(h)return h;(0,i.kG)(!!e&&!!e.kind,34);var y=e.definitions.filter((function(e){return"FragmentDefinition"===e.kind})),g=e.definitions.filter((function(e){return"OperationDefinition"===e.kind&&"query"===e.operation})),v=e.definitions.filter((function(e){return"OperationDefinition"===e.kind&&"mutation"===e.operation})),b=e.definitions.filter((function(e){return"OperationDefinition"===e.kind&&"subscription"===e.operation}));(0,i.kG)(!y.length||g.length||v.length||b.length,35),(0,i.kG)(g.length+v.length+b.length<=1,36),n=g.length?r.Query:r.Mutation,g.length||v.length||(n=r.Subscription);var _=g.length?g:v.length?v:b;(0,i.kG)(1===_.length,37);var w=_[0];t=w.variableDefinitions||[];var E={name:w.name&&"Name"===w.name.kind?w.name.value:"data",type:n,variables:t};return d.set(e,E),E}},1305:function(){},3423:function(e,t,n){"use strict";n.d(t,{X_:function(){return A},w0:function(){return E},y$:function(){return k()},Gw:function(){return addTypenameToDocument},NC:function(){return argumentsObjectFromField},sz:function(){return asyncMap},aL:function(){return buildQueryFromSelectionSet},mr:function(){return x},Xh:function(){return cloneDeep},oA:function(){return compact},F:function(){return createFragmentMap},Dy:function(){return fixObservableSubclass},O4:function(){return getDefaultValues},kU:function(){return getFragmentDefinitions},hi:function(){return getFragmentFromSelection},Yk:function(){return getFragmentQueryDocument},p$:function(){return getMainDefinition},$H:function(){return getOperationDefinition},rY:function(){return getOperationName},iW:function(){return getQueryDefinition},PT:function(){return getStoreKeyName},qw:function(){return getTypenameFromResult},d2:function(){return graphQLResultHasError},mj:function(){return hasClientExports},FS:function(){return hasDirectives},My:function(){return storeUtils_isField},Ao:function(){return isInlineFragment},Of:function(){return isNonEmptyArray},hh:function(){return isReference},pM:function(){return iterateObserversSafely},kQ:function(){return makeReference},Jv:function(){return maybeDeepFreeze},Ee:function(){return mergeDeep_mergeDeep},bw:function(){return mergeDeepArray},ob:function(){return removeClientSetsFromDocument},Fo:function(){return removeConnectionDirectiveFromDocument},u2:function(){return resultKeyNameFromField},LZ:function(){return shouldInclude},vf:function(){return storeKeyNameFromField}});var r=n(4893),i=n(394);function shouldInclude(e,t){var n=e.directives;return!n||!n.length||function getInclusionDirectives(e){var t=[];e&&e.length&&e.forEach((function(e){if(function isInclusionDirective(e){var t=e.name.value;return"skip"===t||"include"===t}(e)){var n=e.arguments;e.name.value;(0,i.kG)(n&&1===n.length,39);var r=n[0];(0,i.kG)(r.name&&"if"===r.name.value,40);var d=r.value;(0,i.kG)(d&&("Variable"===d.kind||"BooleanValue"===d.kind),41),t.push({directive:e,ifArgument:r})}}));return t}(n).every((function(e){var n=e.directive,r=e.ifArgument,d=!1;return"Variable"===r.value.kind?(d=t&&t[r.value.name.value],(0,i.kG)(void 0!==d,38)):d=r.value.value,"skip"===n.name.value?!d:d}))}function hasDirectives(e,t){return function getDirectiveNames(e){var t=[];return(0,r.Vn)(e,{Directive:function Directive(e){t.push(e.name.value)}}),t}(t).some((function(t){return e.indexOf(t)>-1}))}function hasClientExports(e){return e&&hasDirectives(["client"],e)&&hasDirectives(["export"],e)}var d=n(2965);function getFragmentQueryDocument(e,t){var n=t,r=[];return e.definitions.forEach((function(e){if("OperationDefinition"===e.kind)throw new i.ej(42);"FragmentDefinition"===e.kind&&r.push(e)})),"undefined"===typeof n&&((0,i.kG)(1===r.length,43),n=r[0].name.value),(0,d.pi)((0,d.pi)({},e),{definitions:(0,d.pr)([{kind:"OperationDefinition",operation:"query",selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:n}}]}}],e.definitions)})}function createFragmentMap(e){void 0===e&&(e=[]);var t={};return e.forEach((function(e){t[e.name.value]=e})),t}function getFragmentFromSelection(e,t){switch(e.kind){case"InlineFragment":return e;case"FragmentSpread":var n=t&&t[e.name.value];return(0,i.kG)(n,44),n;default:return null}}var h=n(7301),y=n.n(h);function _typeof(e){return(_typeof="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function _typeof(e){return typeof e}:function _typeof(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function makeReference(e){return{__ref:String(e)}}function isReference(e){return Boolean(e&&"object"===_typeof(e)&&"string"===typeof e.__ref)}function valueToObjectRepresentation(e,t,n,r){if(function isIntValue(e){return"IntValue"===e.kind}(n)||function isFloatValue(e){return"FloatValue"===e.kind}(n))e[t.value]=Number(n.value);else if(function isBooleanValue(e){return"BooleanValue"===e.kind}(n)||function isStringValue(e){return"StringValue"===e.kind}(n))e[t.value]=n.value;else if(function isObjectValue(e){return"ObjectValue"===e.kind}(n)){var d={};n.fields.map((function(e){return valueToObjectRepresentation(d,e.name,e.value,r)})),e[t.value]=d}else if(function isVariable(e){return"Variable"===e.kind}(n)){var h=(r||{})[n.name.value];e[t.value]=h}else if(function isListValue(e){return"ListValue"===e.kind}(n))e[t.value]=n.values.map((function(e){var n={};return valueToObjectRepresentation(n,t,e,r),n[t.value]}));else if(function isEnumValue(e){return"EnumValue"===e.kind}(n))e[t.value]=n.value;else{if(!function isNullValue(e){return"NullValue"===e.kind}(n))throw new i.ej(53);e[t.value]=null}}function storeKeyNameFromField(e,t){var n=null;e.directives&&(n={},e.directives.forEach((function(e){n[e.name.value]={},e.arguments&&e.arguments.forEach((function(r){var i=r.name,d=r.value;return valueToObjectRepresentation(n[e.name.value],i,d,t)}))})));var r=null;return e.arguments&&e.arguments.length&&(r={},e.arguments.forEach((function(e){var n=e.name,i=e.value;return valueToObjectRepresentation(r,n,i,t)}))),getStoreKeyName(e.name.value,r,n)}var g=["connection","include","skip","client","rest","export"];function getStoreKeyName(e,t,n){if(t&&n&&n.connection&&n.connection.key){if(n.connection.filter&&n.connection.filter.length>0){var r=n.connection.filter?n.connection.filter:[];r.sort();var i={};return r.forEach((function(e){i[e]=t[e]})),n.connection.key+"("+JSON.stringify(i)+")"}return n.connection.key}var d=e;if(t){var h=y()(t);d+="("+h+")"}return n&&Object.keys(n).forEach((function(e){-1===g.indexOf(e)&&(n[e]&&Object.keys(n[e]).length?d+="@"+e+"("+JSON.stringify(n[e])+")":d+="@"+e)})),d}function argumentsObjectFromField(e,t){if(e.arguments&&e.arguments.length){var n={};return e.arguments.forEach((function(e){var r=e.name,i=e.value;return valueToObjectRepresentation(n,r,i,t)})),n}return null}function resultKeyNameFromField(e){return e.alias?e.alias.value:e.name.value}function getTypenameFromResult(e,t,n){if("string"===typeof e.__typename)return e.__typename;for(var r=0,i=t.selections;r1)for(var r=new E,i=1;i0}function graphQLResultHasError(e){return e.errors&&e.errors.length>0||!1}function canUse_typeof(e){return(canUse_typeof="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function _typeof(e){return typeof e}:function _typeof(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}fixObservableSubclass(A);var x="function"===typeof WeakMap&&!("object"===("undefined"===typeof navigator?"undefined":canUse_typeof(navigator))&&"ReactNative"===navigator.product);function compact(){for(var e=[],t=0;t=0&&e.indexOf(t,n)===n}(T,g)}return!1}function definedKeys(e){return Object.keys(e).filter(isDefinedKey,e)}function isDefinedKey(e){return void 0!==this[e]}var g="{ [native code] }";function previouslyCompared(e,t){var n=y.get(e);if(n){if(n.has(t))return!0}else y.set(e,n=new Set);return n.add(t),!1}},9614:function(e,t,n){e.exports=n(5392)},7205:function(e,t,n){"use strict";var r=n(3985),i=n(7401),d=n(6303),h=n(2197),y=n(1124),g=n(8414),v=n(1970),b=n(9747);e.exports=function xhrAdapter(e){return new Promise((function dispatchXhrRequest(t,n){var _=e.data,w=e.headers;r.isFormData(_)&&delete w["Content-Type"];var E=new XMLHttpRequest;if(e.auth){var S=e.auth.username||"",k=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";w.Authorization="Basic "+btoa(S+":"+k)}var O=y(e.baseURL,e.url);if(E.open(e.method.toUpperCase(),h(O,e.params,e.paramsSerializer),!0),E.timeout=e.timeout,E.onreadystatechange=function handleLoad(){if(E&&4===E.readyState&&(0!==E.status||E.responseURL&&0===E.responseURL.indexOf("file:"))){var r="getAllResponseHeaders"in E?g(E.getAllResponseHeaders()):null,d={data:e.responseType&&"text"!==e.responseType?E.response:E.responseText,status:E.status,statusText:E.statusText,headers:r,config:e,request:E};i(t,n,d),E=null}},E.onabort=function handleAbort(){E&&(n(b("Request aborted",e,"ECONNABORTED",E)),E=null)},E.onerror=function handleError(){n(b("Network Error",e,null,E)),E=null},E.ontimeout=function handleTimeout(){var t="timeout of "+e.timeout+"ms exceeded";e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),n(b(t,e,"ECONNABORTED",E)),E=null},r.isStandardBrowserEnv()){var C=(e.withCredentials||v(O))&&e.xsrfCookieName?d.read(e.xsrfCookieName):void 0;C&&(w[e.xsrfHeaderName]=C)}if("setRequestHeader"in E&&r.forEach(w,(function setRequestHeader(e,t){"undefined"===typeof _&&"content-type"===t.toLowerCase()?delete w[t]:E.setRequestHeader(t,e)})),r.isUndefined(e.withCredentials)||(E.withCredentials=!!e.withCredentials),e.responseType)try{E.responseType=e.responseType}catch(T){if("json"!==e.responseType)throw T}"function"===typeof e.onDownloadProgress&&E.addEventListener("progress",e.onDownloadProgress),"function"===typeof e.onUploadProgress&&E.upload&&E.upload.addEventListener("progress",e.onUploadProgress),e.cancelToken&&e.cancelToken.promise.then((function onCanceled(e){E&&(E.abort(),n(e),E=null)})),_||(_=null),E.send(_)}))}},5392:function(e,t,n){"use strict";var r=n(3985),i=n(1802),d=n(9706),h=n(8200);function createInstance(e){var t=new d(e),n=i(d.prototype.request,t);return r.extend(n,d.prototype,t),r.extend(n,t),n}var y=createInstance(n(4095));y.Axios=d,y.create=function create(e){return createInstance(h(y.defaults,e))},y.Cancel=n(476),y.CancelToken=n(8418),y.isCancel=n(8976),y.all=function all(e){return Promise.all(e)},y.spread=n(2048),y.isAxiosError=n(8523),e.exports=y,e.exports.default=y},476:function(e){"use strict";function Cancel(e){this.message=e}Cancel.prototype.toString=function toString(){return"Cancel"+(this.message?": "+this.message:"")},Cancel.prototype.__CANCEL__=!0,e.exports=Cancel},8418:function(e,t,n){"use strict";var r=n(476);function CancelToken(e){if("function"!==typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise((function promiseExecutor(e){t=e}));var n=this;e((function cancel(e){n.reason||(n.reason=new r(e),t(n.reason))}))}CancelToken.prototype.throwIfRequested=function throwIfRequested(){if(this.reason)throw this.reason},CancelToken.source=function source(){var e;return{token:new CancelToken((function executor(t){e=t})),cancel:e}},e.exports=CancelToken},8976:function(e){"use strict";e.exports=function isCancel(e){return!(!e||!e.__CANCEL__)}},9706:function(e,t,n){"use strict";var r=n(3985),i=n(2197),d=n(3509),h=n(9041),y=n(8200);function Axios(e){this.defaults=e,this.interceptors={request:new d,response:new d}}Axios.prototype.request=function request(e){"string"===typeof e?(e=arguments[1]||{}).url=arguments[0]:e=e||{},(e=y(this.defaults,e)).method?e.method=e.method.toLowerCase():this.defaults.method?e.method=this.defaults.method.toLowerCase():e.method="get";var t=[h,void 0],n=Promise.resolve(e);for(this.interceptors.request.forEach((function unshiftRequestInterceptors(e){t.unshift(e.fulfilled,e.rejected)})),this.interceptors.response.forEach((function pushResponseInterceptors(e){t.push(e.fulfilled,e.rejected)}));t.length;)n=n.then(t.shift(),t.shift());return n},Axios.prototype.getUri=function getUri(e){return e=y(this.defaults,e),i(e.url,e.params,e.paramsSerializer).replace(/^\?/,"")},r.forEach(["delete","get","head","options"],(function forEachMethodNoData(e){Axios.prototype[e]=function(t,n){return this.request(y(n||{},{method:e,url:t,data:(n||{}).data}))}})),r.forEach(["post","put","patch"],(function forEachMethodWithData(e){Axios.prototype[e]=function(t,n,r){return this.request(y(r||{},{method:e,url:t,data:n}))}})),e.exports=Axios},3509:function(e,t,n){"use strict";var r=n(3985);function InterceptorManager(){this.handlers=[]}InterceptorManager.prototype.use=function use(e,t){return this.handlers.push({fulfilled:e,rejected:t}),this.handlers.length-1},InterceptorManager.prototype.eject=function eject(e){this.handlers[e]&&(this.handlers[e]=null)},InterceptorManager.prototype.forEach=function forEach(e){r.forEach(this.handlers,(function forEachHandler(t){null!==t&&e(t)}))},e.exports=InterceptorManager},1124:function(e,t,n){"use strict";var r=n(6597),i=n(4578);e.exports=function buildFullPath(e,t){return e&&!r(t)?i(e,t):t}},9747:function(e,t,n){"use strict";var r=n(9215);e.exports=function createError(e,t,n,i,d){var h=new Error(e);return r(h,t,n,i,d)}},9041:function(e,t,n){"use strict";var r=n(3985),i=n(249),d=n(8976),h=n(4095);function throwIfCancellationRequested(e){e.cancelToken&&e.cancelToken.throwIfRequested()}e.exports=function dispatchRequest(e){return throwIfCancellationRequested(e),e.headers=e.headers||{},e.data=i(e.data,e.headers,e.transformRequest),e.headers=r.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),r.forEach(["delete","get","head","post","put","patch","common"],(function cleanHeaderConfig(t){delete e.headers[t]})),(e.adapter||h.adapter)(e).then((function onAdapterResolution(t){return throwIfCancellationRequested(e),t.data=i(t.data,t.headers,e.transformResponse),t}),(function onAdapterRejection(t){return d(t)||(throwIfCancellationRequested(e),t&&t.response&&(t.response.data=i(t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)}))}},9215:function(e){"use strict";e.exports=function enhanceError(e,t,n,r,i){return e.config=t,n&&(e.code=n),e.request=r,e.response=i,e.isAxiosError=!0,e.toJSON=function toJSON(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code}},e}},8200:function(e,t,n){"use strict";var r=n(3985);e.exports=function mergeConfig(e,t){t=t||{};var n={},i=["url","method","data"],d=["headers","auth","proxy","params"],h=["baseURL","transformRequest","transformResponse","paramsSerializer","timeout","timeoutMessage","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","decompress","maxContentLength","maxBodyLength","maxRedirects","transport","httpAgent","httpsAgent","cancelToken","socketPath","responseEncoding"],y=["validateStatus"];function getMergedValue(e,t){return r.isPlainObject(e)&&r.isPlainObject(t)?r.merge(e,t):r.isPlainObject(t)?r.merge({},t):r.isArray(t)?t.slice():t}function mergeDeepProperties(i){r.isUndefined(t[i])?r.isUndefined(e[i])||(n[i]=getMergedValue(void 0,e[i])):n[i]=getMergedValue(e[i],t[i])}r.forEach(i,(function valueFromConfig2(e){r.isUndefined(t[e])||(n[e]=getMergedValue(void 0,t[e]))})),r.forEach(d,mergeDeepProperties),r.forEach(h,(function defaultToConfig2(i){r.isUndefined(t[i])?r.isUndefined(e[i])||(n[i]=getMergedValue(void 0,e[i])):n[i]=getMergedValue(void 0,t[i])})),r.forEach(y,(function merge(r){r in t?n[r]=getMergedValue(e[r],t[r]):r in e&&(n[r]=getMergedValue(void 0,e[r]))}));var g=i.concat(d).concat(h).concat(y),v=Object.keys(e).concat(Object.keys(t)).filter((function filterAxiosKeys(e){return-1===g.indexOf(e)}));return r.forEach(v,mergeDeepProperties),n}},7401:function(e,t,n){"use strict";var r=n(9747);e.exports=function settle(e,t,n){var i=n.config.validateStatus;n.status&&i&&!i(n.status)?t(r("Request failed with status code "+n.status,n.config,null,n.request,n)):e(n)}},249:function(e,t,n){"use strict";var r=n(3985);e.exports=function transformData(e,t,n){return r.forEach(n,(function transform(n){e=n(e,t)})),e}},4095:function(e,t,n){"use strict";var r=n(3985),i=n(3988),d={"Content-Type":"application/x-www-form-urlencoded"};function setContentTypeIfUnset(e,t){!r.isUndefined(e)&&r.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}var h={adapter:function getDefaultAdapter(){var e;return("undefined"!==typeof XMLHttpRequest||"undefined"!==typeof process&&"[object process]"===Object.prototype.toString.call(process))&&(e=n(7205)),e}(),transformRequest:[function transformRequest(e,t){return i(t,"Accept"),i(t,"Content-Type"),r.isFormData(e)||r.isArrayBuffer(e)||r.isBuffer(e)||r.isStream(e)||r.isFile(e)||r.isBlob(e)?e:r.isArrayBufferView(e)?e.buffer:r.isURLSearchParams(e)?(setContentTypeIfUnset(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString()):r.isObject(e)?(setContentTypeIfUnset(t,"application/json;charset=utf-8"),JSON.stringify(e)):e}],transformResponse:[function transformResponse(e){if("string"===typeof e)try{e=JSON.parse(e)}catch(t){}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function validateStatus(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};r.forEach(["delete","get","head"],(function forEachMethodNoData(e){h.headers[e]={}})),r.forEach(["post","put","patch"],(function forEachMethodWithData(e){h.headers[e]=r.merge(d)})),e.exports=h},1802:function(e){"use strict";e.exports=function bind(e,t){return function wrap(){for(var n=new Array(arguments.length),r=0;r=0)return;h[t]="set-cookie"===t?(h[t]?h[t]:[]).concat([n]):h[t]?h[t]+", "+n:n}})),h):h}},2048:function(e){"use strict";e.exports=function spread(e){return function wrap(t){return e.apply(null,t)}}},3985:function(e,t,n){"use strict";function _typeof(e){return(_typeof="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function _typeof(e){return typeof e}:function _typeof(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var r=n(1802),i=Object.prototype.toString;function isArray(e){return"[object Array]"===i.call(e)}function isUndefined(e){return"undefined"===typeof e}function isObject(e){return null!==e&&"object"===_typeof(e)}function isPlainObject(e){if("[object Object]"!==i.call(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}function isFunction(e){return"[object Function]"===i.call(e)}function forEach(e,t){if(null!==e&&"undefined"!==typeof e)if("object"!==_typeof(e)&&(e=[e]),isArray(e))for(var n=0,r=e.length;n=0&&v>0){if(e===t)return[g,v];for(r=[],d=n.length;b>=0&&!y;)b===g?(r.push(b),g=n.indexOf(e,b+1)):1===r.length?y=[r.pop(),v]:((i=r.pop())=0?g:v;r.length&&(y=[d,h])}return y}e.exports=balanced,balanced.range=range},3936:function(e,t,n){var r=n(2913);e.exports=function expandTop(e){if(!e)return[];"{}"===e.substr(0,2)&&(e="\\{\\}"+e.substr(2));return expand(function escapeBraces(e){return e.split("\\\\").join(i).split("\\{").join(d).split("\\}").join(h).split("\\,").join(y).split("\\.").join(g)}(e),!0).map(unescapeBraces)};var i="\0SLASH"+Math.random()+"\0",d="\0OPEN"+Math.random()+"\0",h="\0CLOSE"+Math.random()+"\0",y="\0COMMA"+Math.random()+"\0",g="\0PERIOD"+Math.random()+"\0";function numeric(e){return parseInt(e,10)==e?parseInt(e,10):e.charCodeAt(0)}function unescapeBraces(e){return e.split(i).join("\\").split(d).join("{").split(h).join("}").split(y).join(",").split(g).join(".")}function parseCommaParts(e){if(!e)return[""];var t=[],n=r("{","}",e);if(!n)return e.split(",");var i=n.pre,d=n.body,h=n.post,y=i.split(",");y[y.length-1]+="{"+d+"}";var g=parseCommaParts(h);return h.length&&(y[y.length-1]+=g.shift(),y.push.apply(y,g)),t.push.apply(t,y),t}function embrace(e){return"{"+e+"}"}function isPadded(e){return/^-?0\d/.test(e)}function lte(e,t){return e<=t}function gte(e,t){return e>=t}function expand(e,t){var n=[],i=r("{","}",e);if(!i)return[e];var d=i.pre,y=i.post.length?expand(i.post,!1):[""];if(/\$$/.test(i.pre))for(var g=0;g=0;if(!S&&!k)return i.post.match(/,.*\}/)?expand(e=i.pre+"{"+i.body+h+i.post):[e];if(S)b=i.body.split(/\.\./);else if(1===(b=parseCommaParts(i.body)).length&&1===(b=expand(b[0],!1).map(embrace)).length)return y.map((function(e){return i.pre+b[0]+e}));if(S){var O=numeric(b[0]),C=numeric(b[1]),T=Math.max(b[0].length,b[1].length),A=3==b.length?Math.abs(numeric(b[2])):1,x=lte;C0){var N=new Array(P+1).join("0");L=I<0?"-"+N+L.slice(1):N+L}}_.push(L)}}else{_=[];for(var R=0;R":">",'"':""","'":"'","/":"/","`":"`","=":"="};function escape_string(e){return e.replace(/[&<>"'`=\/]/g,(function(e){return n[e]}))}function parse_caption(e,t){return"undefined"!==typeof e.node.edge_media_to_caption.edges[0]&&"undefined"!==typeof e.node.edge_media_to_caption.edges[0].node&&"undefined"!==typeof e.node.edge_media_to_caption.edges[0].node.text&&null!==e.node.edge_media_to_caption.edges[0].node.text?e.node.edge_media_to_caption.edges[0].node.text:"undefined"!==typeof e.node.title&&null!==e.node.title&&0!=e.node.title.length?e.node.title:"undefined"!==typeof e.node.accessibility_caption&&null!==e.node.accessibility_caption&&0!=e.node.accessibility_caption.length&&e.node.accessibility_caption}function get_cache(e,t){var n=t||!1;if(!t&&e.cache_time>0){var r=localStorage.getItem(e.cache_time_key);null!==r&&parseInt(r)+6e4*e.cache_time>(new Date).getTime()&&(n=!0)}if(n){var i=localStorage.getItem(e.cache_data_key);if(null!==i)return JSON.parse(i)}return!1}function set_cache(e,t){var n=localStorage.getItem(e.cache_time_key);0!=e.cache_time&&(null===n||parseInt(n)+6e4*e.cache_time>(new Date).getTime())&&(localStorage.setItem(e.cache_data_key,JSON.stringify(t)),localStorage.setItem(e.cache_time_key,(new Date).getTime()))}function parse_response(e,t){switch(e){case"username":case"tag":case"location":try{t=t.split("window._sharedData = ")[1].split("<\/script>")[0]}catch(n){return!1}return"undefined"!==typeof(t=(t=JSON.parse(t.substr(0,t.length-1))).entry_data.ProfilePage||t.entry_data.TagPage||t.entry_data.LocationsPage)&&(t[0].graphql.user||t[0].graphql.hashtag||t[0].graphql.location);case"userid":return"undefined"!==typeof t.data.user&&t.data.user}}function request_data(e,t,n,r,i,d){var h;i&&d&&(h="https://images"+~~(3333*Math.random())+"-focus-opensocial.googleusercontent.com/gadgets/proxy?container=none&url="+e);var y=new XMLHttpRequest;y.onload=function(e){4===y.readyState&&200===y.status&&(data=parse_response(t,y.responseText),!1!==data?r(data):r(!1))},y.onerror=function(h){n>1?(console.warn("Instagram Feed: Request failed, "+(n-1)+" tries left. Retrying..."),request_data(e,t,n-1,r,i,!d)):r(!1,h)},y.open("GET",h||e,!0),y.send()}function get_data(t,n){var r=get_cache(t,!1);if(!1!==r)n(r);else{var i;switch(t.type){case"username":i=t.host+t.id+"/";break;case"tag":i=t.host+"explore/tags/"+t.id+"/";break;case"location":i=t.host+"explore/locations/"+t.id+"/";break;case"userid":i=t.host+'graphql/query/?query_id=17888483320059182&variables={"id":"'+t.id+'","first":'+t.items+',"after":null}'}request_data(i,t.type,t.max_tries,(function(e,r){!1!==e?(set_cache(t,e),n(e)):"undefined"===typeof r?t.on_error("Instagram Feed: It looks like the profile you are trying to fetch is age restricted. See https://github.com/jsanahuja/InstagramFeed/issues/26",3):!1!==(e=get_cache(t,!0))?n(e):t.on_error("Instagram Feed: Unable to fetch the given user/tag. Instagram responded with the status code: "+r.status,5)}),t.host===e.host&&"userid"!=t.type,!1)}}function resolveUrl(e,t){return"function"===typeof t?t(e):e}function render(e,n){var r,i="";if(e.styling?(r={profile_container:' style="text-align:center;"',profile_image:' style="border-radius:10em;width:15%;max-width:125px;min-width:50px;"',profile_name:' style="font-size:1.2em;"',profile_biography:' style="font-size:1em;"',gallery_image:' style="width:100%;"',gallery_image_link:' style="width:'+(100-2*e.margin*e.items_per_row)/e.items_per_row+"%; margin:"+e.margin+'%;position:relative; display: inline-block; height: 100%;"'},e.display_captions&&(i+="")):r={profile_container:"",profile_image:"",profile_name:"",profile_biography:"",gallery_image:"",gallery_image_link:""},e.display_profile&&"userid"!==e.type&&(i+='
",i+=''+(","tag"==e.type?i+='

#'+e.tag+"

":"username"==e.type?(i+="

@"+n.full_name+" (@"+e.username+")

",e.display_biography&&(i+="

"+n.biography+"

")):"location"==e.type&&(i+="

"+n.name+"

"),i+="
"),e.display_gallery)if("undefined"!==typeof n.is_private&&!0===n.is_private)i+='

This profile is private

';else{var d="undefined"!==typeof t[e.image_size]?t[e.image_size]:t[640],h=(n.edge_owner_to_timeline_media||n.edge_hashtag_to_media||n.edge_location_to_media).edges,y=h.length>e.items?e.items:h.length;i+=""}if(e.display_igtv&&"undefined"!==typeof n.edge_felix_video_timeline){var w=n.edge_felix_video_timeline.edges;if(y=w.length>e.items?e.items:w.length,w.length>0){for(i+='
',g=0;g",i+="",i+=""}i+="
"}}e.container.innerHTML=i}return"function"!=typeof Object.assign&&(Object.assign=function(e){"use strict";if(null==e)throw new TypeError("Cannot convert undefined or null to object");e=Object(e);for(var t=1;t120){for(var w=Math.floor(g/80),E=g%80,S=[],k=0;k<_.length;k+=80)S.push(_.slice(k,k+80));return v+printPrefixedLines([["".concat(h),S[0]]].concat(S.slice(1,w+1).map((function(e){return["",e]})),[[" ",whitespace(E-1)+"^"],["",S[w+1]]]))}return v+printPrefixedLines([["".concat(h-1),b[i-1]],["".concat(h),_],["",whitespace(g-1)+"^"],["".concat(h+1),b[i+1]]])}function printPrefixedLines(e){var t=e.filter((function(e){e[0];return void 0!==e[1]})),n=Math.max.apply(Math,t.map((function(e){return e[0].length})));return t.map((function(e){var t=e[0],r=e[1];return function leftPad(e,t){return whitespace(e-t.length)+t}(n,t)+(r?" | "+r:" |")})).join("\n")}function whitespace(e){return Array(e+1).join(" ")}function GraphQLError_typeof(e){return(GraphQLError_typeof="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function _typeof(e){return typeof e}:function _typeof(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function _defineProperties(e,t){for(var n=0;n",EOF:"",BANG:"!",DOLLAR:"$",AMP:"&",PAREN_L:"(",PAREN_R:")",SPREAD:"...",COLON:":",EQUALS:"=",AT:"@",BRACKET_L:"[",BRACKET_R:"]",BRACE_L:"{",PIPE:"|",BRACE_R:"}",NAME:"Name",INT:"Int",FLOAT:"Float",STRING:"String",BLOCK_STRING:"BlockString",COMMENT:"Comment"}),v=n(6430);function devAssert(e,t){if(!Boolean(e))throw new Error(t)}var b=function instanceOf(e,t){return e instanceof t};function source_defineProperties(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:"GraphQL request",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{line:1,column:1};"string"===typeof e||devAssert(0,"Body must be a string. Received: ".concat((0,v.Z)(e),".")),this.body=e,this.name=t,this.locationOffset=n,this.locationOffset.line>0||devAssert(0,"line in locationOffset is 1-indexed and must be positive."),this.locationOffset.column>0||devAssert(0,"column in locationOffset is 1-indexed and must be positive.")}return function source_createClass(e,t,n){return t&&source_defineProperties(e.prototype,t),n&&source_defineProperties(e,n),e}(Source,[{key:i,get:function get(){return"Source"}}]),Source}();var w=Object.freeze({QUERY:"QUERY",MUTATION:"MUTATION",SUBSCRIPTION:"SUBSCRIPTION",FIELD:"FIELD",FRAGMENT_DEFINITION:"FRAGMENT_DEFINITION",FRAGMENT_SPREAD:"FRAGMENT_SPREAD",INLINE_FRAGMENT:"INLINE_FRAGMENT",VARIABLE_DEFINITION:"VARIABLE_DEFINITION",SCHEMA:"SCHEMA",SCALAR:"SCALAR",OBJECT:"OBJECT",FIELD_DEFINITION:"FIELD_DEFINITION",ARGUMENT_DEFINITION:"ARGUMENT_DEFINITION",INTERFACE:"INTERFACE",UNION:"UNION",ENUM:"ENUM",ENUM_VALUE:"ENUM_VALUE",INPUT_OBJECT:"INPUT_OBJECT",INPUT_FIELD_DEFINITION:"INPUT_FIELD_DEFINITION"}),E=n(2464),S=function(){function Lexer(e){var t=new y.WU(g.SOF,0,0,0,0,null);this.source=e,this.lastToken=t,this.token=t,this.line=1,this.lineStart=0}var e=Lexer.prototype;return e.advance=function advance(){return this.lastToken=this.token,this.token=this.lookahead()},e.lookahead=function lookahead(){var e=this.token;if(e.kind!==g.EOF)do{var t;e=null!==(t=e.next)&&void 0!==t?t:e.next=readToken(this,e)}while(e.kind===g.COMMENT);return e},Lexer}();function printCharCode(e){return isNaN(e)?g.EOF:e<127?JSON.stringify(String.fromCharCode(e)):'"\\u'.concat(("00"+e.toString(16).toUpperCase()).slice(-4),'"')}function readToken(e,t){for(var n=e.source,r=n.body,i=r.length,d=t.end;d31||9===d));return new y.WU(g.COMMENT,t,v,n,r,i,h.slice(t+1,v))}function readNumber(e,t,n,r,i,d){var h=e.body,v=n,b=t,_=!1;if(45===v&&(v=h.charCodeAt(++b)),48===v){if((v=h.charCodeAt(++b))>=48&&v<=57)throw syntaxError(e,b,"Invalid number, unexpected digit after 0: ".concat(printCharCode(v),"."))}else b=readDigits(e,b,v),v=h.charCodeAt(b);if(46===v&&(_=!0,v=h.charCodeAt(++b),b=readDigits(e,b,v),v=h.charCodeAt(b)),69!==v&&101!==v||(_=!0,43!==(v=h.charCodeAt(++b))&&45!==v||(v=h.charCodeAt(++b)),b=readDigits(e,b,v),v=h.charCodeAt(b)),46===v||function isNameStart(e){return 95===e||e>=65&&e<=90||e>=97&&e<=122}(v))throw syntaxError(e,b,"Invalid number, expected digit but got: ".concat(printCharCode(v),"."));return new y.WU(_?g.FLOAT:g.INT,t,b,r,i,d,h.slice(t,b))}function readDigits(e,t,n){var r=e.body,i=t,d=n;if(d>=48&&d<=57){do{d=r.charCodeAt(++i)}while(d>=48&&d<=57);return i}throw syntaxError(e,i,"Invalid number, expected digit but got: ".concat(printCharCode(d),"."))}function readString(e,t,n,r,i){for(var d,h,v,b,_=e.body,w=t+1,E=w,S=0,k="";w<_.length&&!isNaN(S=_.charCodeAt(w))&&10!==S&&13!==S;){if(34===S)return k+=_.slice(E,w),new y.WU(g.STRING,t,w+1,n,r,i,k);if(S<32&&9!==S)throw syntaxError(e,w,"Invalid character within String: ".concat(printCharCode(S),"."));if(++w,92===S){switch(k+=_.slice(E,w-1),S=_.charCodeAt(w)){case 34:k+='"';break;case 47:k+="/";break;case 92:k+="\\";break;case 98:k+="\b";break;case 102:k+="\f";break;case 110:k+="\n";break;case 114:k+="\r";break;case 116:k+="\t";break;case 117:var O=(d=_.charCodeAt(w+1),h=_.charCodeAt(w+2),v=_.charCodeAt(w+3),b=_.charCodeAt(w+4),char2hex(d)<<12|char2hex(h)<<8|char2hex(v)<<4|char2hex(b));if(O<0){var C=_.slice(w+1,w+5);throw syntaxError(e,w,"Invalid character escape sequence: \\u".concat(C,"."))}k+=String.fromCharCode(O),w+=4;break;default:throw syntaxError(e,w,"Invalid character escape sequence: \\".concat(String.fromCharCode(S),"."))}E=++w}}throw syntaxError(e,w,"Unterminated string.")}function readBlockString(e,t,n,r,i,d){for(var h=e.body,v=t+3,b=v,_=0,w="";v=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:-1}function readName(e,t,n,r,i){for(var d=e.body,h=d.length,v=t+1,b=0;v!==h&&!isNaN(b=d.charCodeAt(v))&&(95===b||b>=48&&b<=57||b>=65&&b<=90||b>=97&&b<=122);)++v;return new y.WU(g.NAME,t,v,n,r,i,d.slice(t,v))}var k=function(){function Parser(e,t){var n=function isSource(e){return b(e,_)}(e)?e:new _(e);this._lexer=new S(n),this._options=t}var e=Parser.prototype;return e.parseName=function parseName(){var e=this.expectToken(g.NAME);return{kind:h.NAME,value:e.value,loc:this.loc(e)}},e.parseDocument=function parseDocument(){var e=this._lexer.token;return{kind:h.DOCUMENT,definitions:this.many(g.SOF,this.parseDefinition,g.EOF),loc:this.loc(e)}},e.parseDefinition=function parseDefinition(){if(this.peek(g.NAME))switch(this._lexer.token.value){case"query":case"mutation":case"subscription":return this.parseOperationDefinition();case"fragment":return this.parseFragmentDefinition();case"schema":case"scalar":case"type":case"interface":case"union":case"enum":case"input":case"directive":return this.parseTypeSystemDefinition();case"extend":return this.parseTypeSystemExtension()}else{if(this.peek(g.BRACE_L))return this.parseOperationDefinition();if(this.peekDescription())return this.parseTypeSystemDefinition()}throw this.unexpected()},e.parseOperationDefinition=function parseOperationDefinition(){var e=this._lexer.token;if(this.peek(g.BRACE_L))return{kind:h.OPERATION_DEFINITION,operation:"query",name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet(),loc:this.loc(e)};var t,n=this.parseOperationType();return this.peek(g.NAME)&&(t=this.parseName()),{kind:h.OPERATION_DEFINITION,operation:n,name:t,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(e)}},e.parseOperationType=function parseOperationType(){var e=this.expectToken(g.NAME);switch(e.value){case"query":return"query";case"mutation":return"mutation";case"subscription":return"subscription"}throw this.unexpected(e)},e.parseVariableDefinitions=function parseVariableDefinitions(){return this.optionalMany(g.PAREN_L,this.parseVariableDefinition,g.PAREN_R)},e.parseVariableDefinition=function parseVariableDefinition(){var e=this._lexer.token;return{kind:h.VARIABLE_DEFINITION,variable:this.parseVariable(),type:(this.expectToken(g.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(g.EQUALS)?this.parseValueLiteral(!0):void 0,directives:this.parseDirectives(!0),loc:this.loc(e)}},e.parseVariable=function parseVariable(){var e=this._lexer.token;return this.expectToken(g.DOLLAR),{kind:h.VARIABLE,name:this.parseName(),loc:this.loc(e)}},e.parseSelectionSet=function parseSelectionSet(){var e=this._lexer.token;return{kind:h.SELECTION_SET,selections:this.many(g.BRACE_L,this.parseSelection,g.BRACE_R),loc:this.loc(e)}},e.parseSelection=function parseSelection(){return this.peek(g.SPREAD)?this.parseFragment():this.parseField()},e.parseField=function parseField(){var e,t,n=this._lexer.token,r=this.parseName();return this.expectOptionalToken(g.COLON)?(e=r,t=this.parseName()):t=r,{kind:h.FIELD,alias:e,name:t,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(g.BRACE_L)?this.parseSelectionSet():void 0,loc:this.loc(n)}},e.parseArguments=function parseArguments(e){var t=e?this.parseConstArgument:this.parseArgument;return this.optionalMany(g.PAREN_L,t,g.PAREN_R)},e.parseArgument=function parseArgument(){var e=this._lexer.token,t=this.parseName();return this.expectToken(g.COLON),{kind:h.ARGUMENT,name:t,value:this.parseValueLiteral(!1),loc:this.loc(e)}},e.parseConstArgument=function parseConstArgument(){var e=this._lexer.token;return{kind:h.ARGUMENT,name:this.parseName(),value:(this.expectToken(g.COLON),this.parseValueLiteral(!0)),loc:this.loc(e)}},e.parseFragment=function parseFragment(){var e=this._lexer.token;this.expectToken(g.SPREAD);var t=this.expectOptionalKeyword("on");return!t&&this.peek(g.NAME)?{kind:h.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1),loc:this.loc(e)}:{kind:h.INLINE_FRAGMENT,typeCondition:t?this.parseNamedType():void 0,directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(e)}},e.parseFragmentDefinition=function parseFragmentDefinition(){var e,t=this._lexer.token;return this.expectKeyword("fragment"),!0===(null===(e=this._options)||void 0===e?void 0:e.experimentalFragmentVariables)?{kind:h.FRAGMENT_DEFINITION,name:this.parseFragmentName(),variableDefinitions:this.parseVariableDefinitions(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(t)}:{kind:h.FRAGMENT_DEFINITION,name:this.parseFragmentName(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(t)}},e.parseFragmentName=function parseFragmentName(){if("on"===this._lexer.token.value)throw this.unexpected();return this.parseName()},e.parseValueLiteral=function parseValueLiteral(e){var t=this._lexer.token;switch(t.kind){case g.BRACKET_L:return this.parseList(e);case g.BRACE_L:return this.parseObject(e);case g.INT:return this._lexer.advance(),{kind:h.INT,value:t.value,loc:this.loc(t)};case g.FLOAT:return this._lexer.advance(),{kind:h.FLOAT,value:t.value,loc:this.loc(t)};case g.STRING:case g.BLOCK_STRING:return this.parseStringLiteral();case g.NAME:switch(this._lexer.advance(),t.value){case"true":return{kind:h.BOOLEAN,value:!0,loc:this.loc(t)};case"false":return{kind:h.BOOLEAN,value:!1,loc:this.loc(t)};case"null":return{kind:h.NULL,loc:this.loc(t)};default:return{kind:h.ENUM,value:t.value,loc:this.loc(t)}}case g.DOLLAR:if(!e)return this.parseVariable()}throw this.unexpected()},e.parseStringLiteral=function parseStringLiteral(){var e=this._lexer.token;return this._lexer.advance(),{kind:h.STRING,value:e.value,block:e.kind===g.BLOCK_STRING,loc:this.loc(e)}},e.parseList=function parseList(e){var t=this,n=this._lexer.token;return{kind:h.LIST,values:this.any(g.BRACKET_L,(function item(){return t.parseValueLiteral(e)}),g.BRACKET_R),loc:this.loc(n)}},e.parseObject=function parseObject(e){var t=this,n=this._lexer.token;return{kind:h.OBJECT,fields:this.any(g.BRACE_L,(function item(){return t.parseObjectField(e)}),g.BRACE_R),loc:this.loc(n)}},e.parseObjectField=function parseObjectField(e){var t=this._lexer.token,n=this.parseName();return this.expectToken(g.COLON),{kind:h.OBJECT_FIELD,name:n,value:this.parseValueLiteral(e),loc:this.loc(t)}},e.parseDirectives=function parseDirectives(e){for(var t=[];this.peek(g.AT);)t.push(this.parseDirective(e));return t},e.parseDirective=function parseDirective(e){var t=this._lexer.token;return this.expectToken(g.AT),{kind:h.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(e),loc:this.loc(t)}},e.parseTypeReference=function parseTypeReference(){var e,t=this._lexer.token;return this.expectOptionalToken(g.BRACKET_L)?(e=this.parseTypeReference(),this.expectToken(g.BRACKET_R),e={kind:h.LIST_TYPE,type:e,loc:this.loc(t)}):e=this.parseNamedType(),this.expectOptionalToken(g.BANG)?{kind:h.NON_NULL_TYPE,type:e,loc:this.loc(t)}:e},e.parseNamedType=function parseNamedType(){var e=this._lexer.token;return{kind:h.NAMED_TYPE,name:this.parseName(),loc:this.loc(e)}},e.parseTypeSystemDefinition=function parseTypeSystemDefinition(){var e=this.peekDescription()?this._lexer.lookahead():this._lexer.token;if(e.kind===g.NAME)switch(e.value){case"schema":return this.parseSchemaDefinition();case"scalar":return this.parseScalarTypeDefinition();case"type":return this.parseObjectTypeDefinition();case"interface":return this.parseInterfaceTypeDefinition();case"union":return this.parseUnionTypeDefinition();case"enum":return this.parseEnumTypeDefinition();case"input":return this.parseInputObjectTypeDefinition();case"directive":return this.parseDirectiveDefinition()}throw this.unexpected(e)},e.peekDescription=function peekDescription(){return this.peek(g.STRING)||this.peek(g.BLOCK_STRING)},e.parseDescription=function parseDescription(){if(this.peekDescription())return this.parseStringLiteral()},e.parseSchemaDefinition=function parseSchemaDefinition(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("schema");var n=this.parseDirectives(!0),r=this.many(g.BRACE_L,this.parseOperationTypeDefinition,g.BRACE_R);return{kind:h.SCHEMA_DEFINITION,description:t,directives:n,operationTypes:r,loc:this.loc(e)}},e.parseOperationTypeDefinition=function parseOperationTypeDefinition(){var e=this._lexer.token,t=this.parseOperationType();this.expectToken(g.COLON);var n=this.parseNamedType();return{kind:h.OPERATION_TYPE_DEFINITION,operation:t,type:n,loc:this.loc(e)}},e.parseScalarTypeDefinition=function parseScalarTypeDefinition(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("scalar");var n=this.parseName(),r=this.parseDirectives(!0);return{kind:h.SCALAR_TYPE_DEFINITION,description:t,name:n,directives:r,loc:this.loc(e)}},e.parseObjectTypeDefinition=function parseObjectTypeDefinition(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("type");var n=this.parseName(),r=this.parseImplementsInterfaces(),i=this.parseDirectives(!0),d=this.parseFieldsDefinition();return{kind:h.OBJECT_TYPE_DEFINITION,description:t,name:n,interfaces:r,directives:i,fields:d,loc:this.loc(e)}},e.parseImplementsInterfaces=function parseImplementsInterfaces(){var e;if(!this.expectOptionalKeyword("implements"))return[];if(!0===(null===(e=this._options)||void 0===e?void 0:e.allowLegacySDLImplementsInterfaces)){var t=[];this.expectOptionalToken(g.AMP);do{t.push(this.parseNamedType())}while(this.expectOptionalToken(g.AMP)||this.peek(g.NAME));return t}return this.delimitedMany(g.AMP,this.parseNamedType)},e.parseFieldsDefinition=function parseFieldsDefinition(){var e;return!0===(null===(e=this._options)||void 0===e?void 0:e.allowLegacySDLEmptyFields)&&this.peek(g.BRACE_L)&&this._lexer.lookahead().kind===g.BRACE_R?(this._lexer.advance(),this._lexer.advance(),[]):this.optionalMany(g.BRACE_L,this.parseFieldDefinition,g.BRACE_R)},e.parseFieldDefinition=function parseFieldDefinition(){var e=this._lexer.token,t=this.parseDescription(),n=this.parseName(),r=this.parseArgumentDefs();this.expectToken(g.COLON);var i=this.parseTypeReference(),d=this.parseDirectives(!0);return{kind:h.FIELD_DEFINITION,description:t,name:n,arguments:r,type:i,directives:d,loc:this.loc(e)}},e.parseArgumentDefs=function parseArgumentDefs(){return this.optionalMany(g.PAREN_L,this.parseInputValueDef,g.PAREN_R)},e.parseInputValueDef=function parseInputValueDef(){var e=this._lexer.token,t=this.parseDescription(),n=this.parseName();this.expectToken(g.COLON);var r,i=this.parseTypeReference();this.expectOptionalToken(g.EQUALS)&&(r=this.parseValueLiteral(!0));var d=this.parseDirectives(!0);return{kind:h.INPUT_VALUE_DEFINITION,description:t,name:n,type:i,defaultValue:r,directives:d,loc:this.loc(e)}},e.parseInterfaceTypeDefinition=function parseInterfaceTypeDefinition(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("interface");var n=this.parseName(),r=this.parseImplementsInterfaces(),i=this.parseDirectives(!0),d=this.parseFieldsDefinition();return{kind:h.INTERFACE_TYPE_DEFINITION,description:t,name:n,interfaces:r,directives:i,fields:d,loc:this.loc(e)}},e.parseUnionTypeDefinition=function parseUnionTypeDefinition(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("union");var n=this.parseName(),r=this.parseDirectives(!0),i=this.parseUnionMemberTypes();return{kind:h.UNION_TYPE_DEFINITION,description:t,name:n,directives:r,types:i,loc:this.loc(e)}},e.parseUnionMemberTypes=function parseUnionMemberTypes(){return this.expectOptionalToken(g.EQUALS)?this.delimitedMany(g.PIPE,this.parseNamedType):[]},e.parseEnumTypeDefinition=function parseEnumTypeDefinition(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("enum");var n=this.parseName(),r=this.parseDirectives(!0),i=this.parseEnumValuesDefinition();return{kind:h.ENUM_TYPE_DEFINITION,description:t,name:n,directives:r,values:i,loc:this.loc(e)}},e.parseEnumValuesDefinition=function parseEnumValuesDefinition(){return this.optionalMany(g.BRACE_L,this.parseEnumValueDefinition,g.BRACE_R)},e.parseEnumValueDefinition=function parseEnumValueDefinition(){var e=this._lexer.token,t=this.parseDescription(),n=this.parseName(),r=this.parseDirectives(!0);return{kind:h.ENUM_VALUE_DEFINITION,description:t,name:n,directives:r,loc:this.loc(e)}},e.parseInputObjectTypeDefinition=function parseInputObjectTypeDefinition(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("input");var n=this.parseName(),r=this.parseDirectives(!0),i=this.parseInputFieldsDefinition();return{kind:h.INPUT_OBJECT_TYPE_DEFINITION,description:t,name:n,directives:r,fields:i,loc:this.loc(e)}},e.parseInputFieldsDefinition=function parseInputFieldsDefinition(){return this.optionalMany(g.BRACE_L,this.parseInputValueDef,g.BRACE_R)},e.parseTypeSystemExtension=function parseTypeSystemExtension(){var e=this._lexer.lookahead();if(e.kind===g.NAME)switch(e.value){case"schema":return this.parseSchemaExtension();case"scalar":return this.parseScalarTypeExtension();case"type":return this.parseObjectTypeExtension();case"interface":return this.parseInterfaceTypeExtension();case"union":return this.parseUnionTypeExtension();case"enum":return this.parseEnumTypeExtension();case"input":return this.parseInputObjectTypeExtension()}throw this.unexpected(e)},e.parseSchemaExtension=function parseSchemaExtension(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("schema");var t=this.parseDirectives(!0),n=this.optionalMany(g.BRACE_L,this.parseOperationTypeDefinition,g.BRACE_R);if(0===t.length&&0===n.length)throw this.unexpected();return{kind:h.SCHEMA_EXTENSION,directives:t,operationTypes:n,loc:this.loc(e)}},e.parseScalarTypeExtension=function parseScalarTypeExtension(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("scalar");var t=this.parseName(),n=this.parseDirectives(!0);if(0===n.length)throw this.unexpected();return{kind:h.SCALAR_TYPE_EXTENSION,name:t,directives:n,loc:this.loc(e)}},e.parseObjectTypeExtension=function parseObjectTypeExtension(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("type");var t=this.parseName(),n=this.parseImplementsInterfaces(),r=this.parseDirectives(!0),i=this.parseFieldsDefinition();if(0===n.length&&0===r.length&&0===i.length)throw this.unexpected();return{kind:h.OBJECT_TYPE_EXTENSION,name:t,interfaces:n,directives:r,fields:i,loc:this.loc(e)}},e.parseInterfaceTypeExtension=function parseInterfaceTypeExtension(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("interface");var t=this.parseName(),n=this.parseImplementsInterfaces(),r=this.parseDirectives(!0),i=this.parseFieldsDefinition();if(0===n.length&&0===r.length&&0===i.length)throw this.unexpected();return{kind:h.INTERFACE_TYPE_EXTENSION,name:t,interfaces:n,directives:r,fields:i,loc:this.loc(e)}},e.parseUnionTypeExtension=function parseUnionTypeExtension(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("union");var t=this.parseName(),n=this.parseDirectives(!0),r=this.parseUnionMemberTypes();if(0===n.length&&0===r.length)throw this.unexpected();return{kind:h.UNION_TYPE_EXTENSION,name:t,directives:n,types:r,loc:this.loc(e)}},e.parseEnumTypeExtension=function parseEnumTypeExtension(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("enum");var t=this.parseName(),n=this.parseDirectives(!0),r=this.parseEnumValuesDefinition();if(0===n.length&&0===r.length)throw this.unexpected();return{kind:h.ENUM_TYPE_EXTENSION,name:t,directives:n,values:r,loc:this.loc(e)}},e.parseInputObjectTypeExtension=function parseInputObjectTypeExtension(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("input");var t=this.parseName(),n=this.parseDirectives(!0),r=this.parseInputFieldsDefinition();if(0===n.length&&0===r.length)throw this.unexpected();return{kind:h.INPUT_OBJECT_TYPE_EXTENSION,name:t,directives:n,fields:r,loc:this.loc(e)}},e.parseDirectiveDefinition=function parseDirectiveDefinition(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("directive"),this.expectToken(g.AT);var n=this.parseName(),r=this.parseArgumentDefs(),i=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");var d=this.parseDirectiveLocations();return{kind:h.DIRECTIVE_DEFINITION,description:t,name:n,arguments:r,repeatable:i,locations:d,loc:this.loc(e)}},e.parseDirectiveLocations=function parseDirectiveLocations(){return this.delimitedMany(g.PIPE,this.parseDirectiveLocation)},e.parseDirectiveLocation=function parseDirectiveLocation(){var e=this._lexer.token,t=this.parseName();if(void 0!==w[t.value])return t;throw this.unexpected(e)},e.loc=function loc(e){var t;if(!0!==(null===(t=this._options)||void 0===t?void 0:t.noLocation))return new y.Ye(e,this._lexer.lastToken,this._lexer.source)},e.peek=function peek(e){return this._lexer.token.kind===e},e.expectToken=function expectToken(e){var t=this._lexer.token;if(t.kind===e)return this._lexer.advance(),t;throw syntaxError(this._lexer.source,t.start,"Expected ".concat(getTokenKindDesc(e),", found ").concat(getTokenDesc(t),"."))},e.expectOptionalToken=function expectOptionalToken(e){var t=this._lexer.token;if(t.kind===e)return this._lexer.advance(),t},e.expectKeyword=function expectKeyword(e){var t=this._lexer.token;if(t.kind!==g.NAME||t.value!==e)throw syntaxError(this._lexer.source,t.start,'Expected "'.concat(e,'", found ').concat(getTokenDesc(t),"."));this._lexer.advance()},e.expectOptionalKeyword=function expectOptionalKeyword(e){var t=this._lexer.token;return t.kind===g.NAME&&t.value===e&&(this._lexer.advance(),!0)},e.unexpected=function unexpected(e){var t=null!==e&&void 0!==e?e:this._lexer.token;return syntaxError(this._lexer.source,t.start,"Unexpected ".concat(getTokenDesc(t),"."))},e.any=function any(e,t,n){this.expectToken(e);for(var r=[];!this.expectOptionalToken(n);)r.push(t.call(this));return r},e.optionalMany=function optionalMany(e,t,n){if(this.expectOptionalToken(e)){var r=[];do{r.push(t.call(this))}while(!this.expectOptionalToken(n));return r}return[]},e.many=function many(e,t,n){this.expectToken(e);var r=[];do{r.push(t.call(this))}while(!this.expectOptionalToken(n));return r},e.delimitedMany=function delimitedMany(e,t){this.expectOptionalToken(e);var n=[];do{n.push(t.call(this))}while(this.expectOptionalToken(e));return n},Parser}();function getTokenDesc(e){var t=e.value;return getTokenKindDesc(e.kind)+(null!=t?' "'.concat(t,'"'):"")}function getTokenKindDesc(e){return function isPunctuatorTokenKind(e){return e===g.BANG||e===g.DOLLAR||e===g.AMP||e===g.PAREN_L||e===g.PAREN_R||e===g.SPREAD||e===g.COLON||e===g.EQUALS||e===g.AT||e===g.BRACKET_L||e===g.BRACKET_R||e===g.BRACE_L||e===g.PIPE||e===g.BRACE_R}(e)?'"'.concat(e,'"'):e}function lib_typeof(e){return(lib_typeof="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function _typeof(e){return typeof e}:function _typeof(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var O=new Map,C=new Map,T=!0,A=!1;function normalize(e){return e.replace(/[\s,]+/g," ").trim()}function processFragments(e){var t=new Set,n=[];return e.definitions.forEach((function(e){if("FragmentDefinition"===e.kind){var r=e.name.value,i=function cacheKeyFromLoc(e){return normalize(e.source.body.substring(e.start,e.end))}(e.loc),d=C.get(r);d&&!d.has(i)?T&&console.warn("Warning: fragment with name "+r+" 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||C.set(r,d=new Set),d.add(i),t.has(i)||(t.add(i),n.push(e))}else n.push(e)})),(0,r.pi)((0,r.pi)({},e),{definitions:n})}function parseDocument(e){var t=normalize(e);if(!O.has(t)){var n=function parse(e,t){return new k(e,t).parseDocument()}(e,{experimentalFragmentVariables:A});if(!n||"Document"!==n.kind)throw new Error("Not a valid GraphQL document.");O.set(t,function stripLoc(e){var t=new Set(e.definitions);t.forEach((function(e){e.loc&&delete e.loc,Object.keys(e).forEach((function(n){var r=e[n];r&&"object"===lib_typeof(r)&&t.add(r)}))}));var n=e.loc;return n&&(delete n.startToken,delete n.endToken),e}(processFragments(n)))}return O.get(t)}function gql(e){for(var t=[],n=1;ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n-1&&i.splice(y,1)}if(0!==i.length)return!1}return!0}},{key:"_checkSubCombo",value:function _checkSubCombo(e,t,n){e=e.slice(0),n=n.slice(t);for(var r=t,i=0;i-1&&(e.splice(i,1),i-=1,y>r&&(r=y),0===e.length))return r}return-1}}]),KeyCombo}();e.comboDeliminator=">",e.keyDeliminator="+",e.parseComboStr=function(t){for(var n=e._splitStr(t,e.comboDeliminator),r=[],i=0;i0&&n[h]===r&&"\\"!==n[h-1]&&(d.push(i.trim()),i="",h+=1),i+=n[h];return i&&d.push(i.trim()),d};var t=function(){function Locale(e){_classCallCheck(this,Locale),this.localeName=e,this.activeTargetKeys=[],this.pressedKeys=[],this._appliedMacros=[],this._keyMap={},this._killKeyCodes=[],this._macros=[]}return _createClass(Locale,[{key:"bindKeyCode",value:function bindKeyCode(e,t){"string"===typeof t&&(t=[t]),this._keyMap[e]=t}},{key:"bindMacro",value:function bindMacro(t,n){"string"===typeof n&&(n=[n]);var r=null;"function"===typeof n&&(r=n,n=null);var i={keyCombo:new e(t),keyNames:n,handler:r};this._macros.push(i)}},{key:"getKeyCodes",value:function getKeyCodes(e){var t=[];for(var n in this._keyMap)this._keyMap[n].indexOf(e)>-1&&t.push(0|n);return t}},{key:"getKeyNames",value:function getKeyNames(e){return this._keyMap[e]||[]}},{key:"setKillKey",value:function setKillKey(e){if("string"!==typeof e)this._killKeyCodes.push(e);else for(var t=this.getKeyCodes(e),n=0;n-1&&this.pressedKeys.splice(d,1)}this.activeTargetKeys.length=0,this._clearMacros()}}},{key:"_applyMacros",value:function _applyMacros(){for(var e=this._macros.slice(0),t=0;t-1&&this.pressedKeys.splice(r,1)}t.handler&&(t.keyNames=null),this._appliedMacros.splice(e,1),e-=1}}}}]),Locale}(),r=function(){function Keyboard(e,t,n,r){_classCallCheck(this,Keyboard),this._locale=null,this._currentContext="",this._contexts={},this._listeners=[],this._appliedListeners=[],this._locales={},this._targetElement=null,this._targetWindow=null,this._targetPlatform="",this._targetUserAgent="",this._isModernBrowser=!1,this._targetKeyDownBinding=null,this._targetKeyUpBinding=null,this._targetResetBinding=null,this._paused=!1,this._contexts.global={listeners:this._listeners,targetWindow:e,targetElement:t,targetPlatform:n,targetUserAgent:r},this.setContext("global")}return _createClass(Keyboard,[{key:"setLocale",value:function setLocale(e,n){var r=null;return"string"===typeof e?n?n(r=new t(e),this._targetPlatform,this._targetUserAgent):r=this._locales[e]||null:e=(r=e)._localeName,this._locale=r,this._locales[e]=r,r&&(this._locale.pressedKeys=r.pressedKeys),this}},{key:"getLocale",value:function getLocale(e){return e||(e=this._locale.localeName),this._locales[e]||null}},{key:"bind",value:function bind(t,n,r,i){if(null!==t&&"function"!==typeof t||(i=r,r=n,n=t,t=null),t&&"object"===_typeof(t)&&"number"===typeof t.length){for(var d=0;d"]),e.bindMacro("shift + /",["questionmark","?"]),t.match("Mac")?e.bindMacro("command",["mod","modifier"]):e.bindMacro("ctrl",["mod","modifier"]);for(var r=65;r<=90;r+=1){var i=String.fromCharCode(r+32),d=String.fromCharCode(r);e.bindKeyCode(r,i),e.bindMacro("shift + "+i,d),e.bindMacro("capslock + "+i,d)}var h,y,g=n.match("Firefox")?59:186,v=n.match("Firefox")?173:189,b=n.match("Firefox")?61:187;t.match("Mac")&&(n.match("Safari")||n.match("Chrome"))?(h=91,y=93):t.match("Mac")&&n.match("Opera")?(h=17,y=17):t.match("Mac")&&n.match("Firefox")&&(h=224,y=224),e.bindKeyCode(g,["semicolon",";"]),e.bindKeyCode(v,["dash","-"]),e.bindKeyCode(b,["equal","equalsign","="]),e.bindKeyCode(h,["command","windows","win","super","leftcommand","leftwindows","leftwin","leftsuper"]),e.bindKeyCode(y,["command","windows","win","super","rightcommand","rightwindows","rightwin","rightsuper"]),e.setKillKey("command")})),i.Keyboard=r,i.Locale=t,i.KeyCombo=e,i},"object"===_typeof2(t)?e.exports=d():void 0===(i="function"===typeof(r=d)?r.call(t,n,t,e):r)||(e.exports=i)},9110:function(e,t,n){e.exports=minimatch,minimatch.Minimatch=Minimatch;var r={sep:"/"};try{r=n(2061)}catch(w){}var i=minimatch.GLOBSTAR=Minimatch.GLOBSTAR={},d=n(3936),h={"!":{open:"(?:(?!(?:",close:"))[^/]*?)"},"?":{open:"(?:",close:")?"},"+":{open:"(?:",close:")+"},"*":{open:"(?:",close:")*"},"@":{open:"(?:",close:")"}},y="[^/]",g="[^/]*?",v=function charSet(e){return e.split("").reduce((function(e,t){return e[t]=!0,e}),{})}("().*{}+?[]^$\\!");var b=/\/+/;function ext(e,t){e=e||{},t=t||{};var n={};return Object.keys(t).forEach((function(e){n[e]=t[e]})),Object.keys(e).forEach((function(t){n[t]=e[t]})),n}function minimatch(e,t,n){if("string"!==typeof t)throw new TypeError("glob pattern string required");return n||(n={}),!(!n.nocomment&&"#"===t.charAt(0))&&(""===t.trim()?""===e:new Minimatch(t,n).match(e))}function Minimatch(e,t){if(!(this instanceof Minimatch))return new Minimatch(e,t);if("string"!==typeof e)throw new TypeError("glob pattern string required");t||(t={}),e=e.trim(),"/"!==r.sep&&(e=e.split(r.sep).join("/")),this.options=t,this.set=[],this.pattern=e,this.regexp=null,this.negate=!1,this.comment=!1,this.empty=!1,this.make()}function braceExpand(e,t){if(t||(t=this instanceof Minimatch?this.options:{}),"undefined"===typeof(e="undefined"===typeof e?this.pattern:e))throw new TypeError("undefined pattern");return t.nobrace||!e.match(/\{.*\}/)?[e]:d(e)}minimatch.filter=function filter(e,t){return t=t||{},function(n,r,i){return minimatch(n,e,t)}},minimatch.defaults=function(e){if(!e||!Object.keys(e).length)return minimatch;var t=minimatch,n=function minimatch(n,r,i){return t.minimatch(n,r,ext(e,i))};return n.Minimatch=function Minimatch(n,r){return new t.Minimatch(n,ext(e,r))},n},Minimatch.defaults=function(e){return e&&Object.keys(e).length?minimatch.defaults(e).Minimatch:Minimatch},Minimatch.prototype.debug=function(){},Minimatch.prototype.make=function make(){if(this._made)return;var e=this.pattern,t=this.options;if(!t.nocomment&&"#"===e.charAt(0))return void(this.comment=!0);if(!e)return void(this.empty=!0);this.parseNegate();var n=this.globSet=this.braceExpand();t.debug&&(this.debug=console.error);this.debug(this.pattern,n),n=this.globParts=n.map((function(e){return e.split(b)})),this.debug(this.pattern,n),n=n.map((function(e,t,n){return e.map(this.parse,this)}),this),this.debug(this.pattern,n),n=n.filter((function(e){return-1===e.indexOf(!1)})),this.debug(this.pattern,n),this.set=n},Minimatch.prototype.parseNegate=function parseNegate(){var e=this.pattern,t=!1,n=this.options,r=0;if(n.nonegate)return;for(var i=0,d=e.length;i65536)throw new TypeError("pattern is too long");var n=this.options;if(!n.noglobstar&&"**"===e)return i;if(""===e)return"";var r,d="",b=!!n.nocase,E=!1,S=[],k=[],O=!1,C=-1,T=-1,A="."===e.charAt(0)?"":n.dot?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)",x=this;function clearStateChar(){if(r){switch(r){case"*":d+=g,b=!0;break;case"?":d+=y,b=!0;break;default:d+="\\"+r}x.debug("clearStateChar %j %j",r,d),r=!1}}for(var D,I=0,L=e.length;I-1;q--){var Q=k[q],B=d.slice(0,Q.reStart),K=d.slice(Q.reStart,Q.reEnd-8),U=d.slice(Q.reEnd-8,Q.reEnd),V=d.slice(Q.reEnd);U+=V;var H=B.split("(").length-1,W=V;for(I=0;I=0&&!(i=e[d]);d--);for(d=0;d>> no match, partial?",e,w,t,E),w!==y))}if("string"===typeof b?(v=r.nocase?_.toLowerCase()===b.toLowerCase():_===b,this.debug("string match",b,_,v)):(v=_.match(b),this.debug("pattern match",b,_,v)),!v)return!1}if(d===y&&h===g)return!0;if(d===y)return n;if(h===g)return d===y-1&&""===e[d];throw new Error("wtf?")}},5901:function(e,t,n){"use strict";var r=n(9125);function emptyFunction(){}function emptyFunctionWithReset(){}emptyFunctionWithReset.resetWarningCache=emptyFunction,e.exports=function(){function shim(e,t,n,i,d,h){if(h!==r){var y=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw y.name="Invariant Violation",y}}function getShim(){return shim}shim.isRequired=shim;var e={array:shim,bool:shim,func:shim,number:shim,object:shim,string:shim,symbol:shim,any:shim,arrayOf:getShim,element:shim,elementType:shim,instanceOf:getShim,node:shim,objectOf:getShim,oneOf:getShim,oneOfType:getShim,shape:getShim,exact:getShim,checkPropTypes:emptyFunctionWithReset,resetWarningCache:emptyFunction};return e.PropTypes=e,e}},5295:function(e,t,n){e.exports=n(5901)()},9125:function(e){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},2981:function(e,t,n){var r,i,d;i=[t,n(4921)],void 0===(d="function"===typeof(r=function(e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=_interopRequireDefault(t);function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}e.default=n.default})?r.apply(t,i):r)||(e.exports=d)},4921:function(e,t,n){var r,i,d;function _typeof(e){return(_typeof="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function _typeof(e){return typeof e}:function _typeof(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}i=[t,n(3804),n(5295)],void 0===(d="function"===typeof(r=function(e,t,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.setHasSupportToCaptureOption=setHasSupportToCaptureOption;var r=_interopRequireDefault(t),i=_interopRequireDefault(n);function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}var d=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function _classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var h=function(){function defineProperties(e,t){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:{capture:!0};return y?e:e.capture}function getPosition(e){if("touches"in e){var t=e.touches[0];return{x:t.pageX,y:t.pageY}}return{x:e.screenX,y:e.screenY}}var g=function(e){function ReactSwipe(){var e;_classCallCheck(this,ReactSwipe);for(var t=arguments.length,n=Array(t),r=0;rt&&this.props.onSwipeRight(1,e),this.movePosition.deltaY<-t?this.props.onSwipeUp(1,e):this.movePosition.deltaY>t&&this.props.onSwipeDown(1,e)),this.moveStart=null,this.moving=!1,this.movePosition=null}},{key:"_setSwiperRef",value:function _setSwiperRef(e){this.swiper=e,this.props.innerRef(e)}},{key:"render",value:function render(){var e=this.props,t=(e.tagName,e.className),n=e.style,i=e.children,h=(e.allowMouseEvents,e.onSwipeUp,e.onSwipeDown,e.onSwipeLeft,e.onSwipeRight,e.onSwipeStart,e.onSwipeMove,e.onSwipeEnd,e.innerRef,e.tolerance,_objectWithoutProperties(e,["tagName","className","style","children","allowMouseEvents","onSwipeUp","onSwipeDown","onSwipeLeft","onSwipeRight","onSwipeStart","onSwipeMove","onSwipeEnd","innerRef","tolerance"]));return r.default.createElement(this.props.tagName,d({ref:this._setSwiperRef,onMouseDown:this._onMouseDown,onTouchStart:this._handleSwipeStart,onTouchEnd:this._handleSwipeEnd,className:t,style:n},h),i)}}]),ReactSwipe}(t.Component);g.displayName="ReactSwipe",g.propTypes={tagName:i.default.string,className:i.default.string,style:i.default.object,children:i.default.node,allowMouseEvents:i.default.bool,onSwipeUp:i.default.func,onSwipeDown:i.default.func,onSwipeLeft:i.default.func,onSwipeRight:i.default.func,onSwipeStart:i.default.func,onSwipeMove:i.default.func,onSwipeEnd:i.default.func,innerRef:i.default.func,tolerance:i.default.number.isRequired},g.defaultProps={tagName:"div",allowMouseEvents:!1,onSwipeUp:function onSwipeUp(){},onSwipeDown:function onSwipeDown(){},onSwipeLeft:function onSwipeLeft(){},onSwipeRight:function onSwipeRight(){},onSwipeStart:function onSwipeStart(){},onSwipeMove:function onSwipeMove(){},onSwipeEnd:function onSwipeEnd(){},innerRef:function innerRef(){},tolerance:0},e.default=g})?r.apply(t,i):r)||(e.exports=d)},3427:function(e,t,n){var r,i,d,h;function _typeof(e){return(_typeof="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function _typeof(e){return typeof e}:function _typeof(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}h=function(e,t,n,r){"use strict";function o(e){return e&&"object"==_typeof(e)&&"default"in e?e:{default:e}}var i=o(t),d=o(n),h=o(r),y=function a(){return(y=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0&&i[i.length-1])||6!==d[0]&&2!==d[0])){h=0;continue}if(3===d[0]&&(!i||d[1]>i[0]&&d[1]=v)return console[e].apply(console,arguments)}}function setVerbosity(e){var t=g[v];return v=Math.max(0,g.indexOf(e)),t}!function(e){e.log=wrapConsoleMethod("log"),e.warn=wrapConsoleMethod("warn"),e.error=wrapConsoleMethod("error")}(invariant||(invariant={}));"object"===("undefined"===typeof process?"undefined":_typeof(process))&&"object"===_typeof({NODE_ENV:"production"})&&process},2965:function(e,t,n){"use strict";n.d(t,{ZT:function(){return __extends},pi:function(){return i},_T:function(){return __rest},mG:function(){return __awaiter},Jh:function(){return __generator},pr:function(){return __spreadArrays}});var r=function extendStatics(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)};function __extends(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function __(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)}var i=function __assign(){return(i=Object.assign||function __assign(e){for(var t,n=1,r=arguments.length;n0&&i[i.length-1])&&(6===d[0]||2===d[0])){h=0;continue}if(3===d[0]&&(!i||d[1]>i[0]&&d[1]1,i=!1,d=arguments[1],h=d;return new n((function(n){return t.subscribe({next:function next(t){var d=!i;if(i=!0,!d||r)try{h=e(h,t)}catch(y){return n.error(y)}else h=t},error:function error(e){n.error(e)},complete:function complete(){if(!i&&!r)return n.error(new TypeError("Cannot reduce an empty sequence"));n.next(h),n.complete()}})}))}},{key:"concat",value:function concat(){for(var e=this,t=arguments.length,n=new Array(t),r=0;r=0&&i.splice(e,1),completeIfDone()}});i.push(d)},error:function error(e){r.error(e)},complete:function complete(){completeIfDone()}});function completeIfDone(){d.closed&&0===i.length&&r.complete()}return function(){i.forEach((function(e){return e.unsubscribe()})),d.unsubscribe()}}))}},{key:h,value:function value(){return this}}],[{key:"from",value:function from(e){var t="function"===typeof this?this:Observable;if(null==e)throw new TypeError(e+" is not an object");var n=getMethod(e,h);if(n){var i=n.call(e);if(Object(i)!==i)throw new TypeError(i+" is not an object");return isObservable(i)&&i.constructor===t?i:new t((function(e){return i.subscribe(e)}))}if(r("iterator")&&(n=getMethod(e,d)))return new t((function(t){enqueue((function(){if(!t.closed){var r=!0,i=!1,d=void 0;try{for(var h,y=n.call(e)[Symbol.iterator]();!(r=(h=y.next()).done);r=!0){var g=h.value;if(t.next(g),t.closed)return}}catch(v){i=!0,d=v}finally{try{r||null==y.return||y.return()}finally{if(i)throw d}}t.complete()}}))}));if(Array.isArray(e))return new t((function(t){enqueue((function(){if(!t.closed){for(var n=0;n2)return"[Array]";for(var n=Math.min(10,e.length),r=e.length-n,i=[],d=0;d1&&i.push("... ".concat(r," more items"));return"["+i.join(", ")+"]"}(e,n);return function formatObject(e,t){var n=Object.keys(e);if(0===n.length)return"{}";if(t.length>2)return"["+function getObjectTag(e){var t=Object.prototype.toString.call(e).replace(/^\[object /,"").replace(/]$/,"");if("Object"===t&&"function"===typeof e.constructor){var n=e.constructor.name;if("string"===typeof n&&""!==n)return n}return t}(e)+"]";return"{ "+n.map((function(n){return n+": "+formatValue(e[n],t)})).join(", ")+" }"}(e,n)}(e,t);default:return String(e)}}},5332:function(e,t){"use strict";var n="function"===typeof Symbol&&"function"===typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):void 0;t.Z=n},8265:function(e,t,n){"use strict";n.d(t,{Ye:function(){return i},WU:function(){return d},UG:function(){return isNode}});var r=n(5332);function defineInspect(e){var t=e.prototype.toJSON;"function"===typeof t||function invariant(e,t){if(!Boolean(e))throw new Error(null!=t?t:"Unexpected invariant triggered.")}(0),e.prototype.inspect=t,r.Z&&(e.prototype[r.Z]=t)}var i=function(){function Location(e,t,n){this.start=e.start,this.end=t.end,this.startToken=e,this.endToken=t,this.source=n}return Location.prototype.toJSON=function toJSON(){return{start:this.start,end:this.end}},Location}();defineInspect(i);var d=function(){function Token(e,t,n,r,i,d,h){this.kind=e,this.start=t,this.end=n,this.line=r,this.column=i,this.value=h,this.prev=d,this.next=null}return Token.prototype.toJSON=function toJSON(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}},Token}();function isNode(e){return null!=e&&"string"===typeof e.kind}defineInspect(d)},2464:function(e,t,n){"use strict";function dedentBlockStringValue(e){var t=e.split(/\r\n|[\n\r]/g),n=function getBlockStringIndentation(e){for(var t,n=!0,r=!0,i=0,d=null,h=0;hi&&isBlank(t[d-1]);)--d;return t.slice(i,d).join("\n")}function isBlank(e){for(var t=0;t1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=-1===e.indexOf("\n"),i=" "===e[0]||"\t"===e[0],d='"'===e[e.length-1],h="\\"===e[e.length-1],y=!r||d||h||n,g="";return!y||r&&i||(g+="\n"+t),g+=t?e.replace(/\n/g,"\n"+t):e,y&&(g+="\n"),'"""'+g.replace(/"""/g,'\\"""')+'"""'}n.d(t,{W7:function(){return dedentBlockStringValue},LZ:function(){return printBlockString}})},4893:function(e,t,n){"use strict";n.d(t,{$_:function(){return h},Vn:function(){return visit}});var r=n(6430),i=n(8265),d={Name:[],Document:["definitions"],OperationDefinition:["name","variableDefinitions","directives","selectionSet"],VariableDefinition:["variable","type","defaultValue","directives"],Variable:["name"],SelectionSet:["selections"],Field:["alias","name","arguments","directives","selectionSet"],Argument:["name","value"],FragmentSpread:["name","directives"],InlineFragment:["typeCondition","directives","selectionSet"],FragmentDefinition:["name","variableDefinitions","typeCondition","directives","selectionSet"],IntValue:[],FloatValue:[],StringValue:[],BooleanValue:[],NullValue:[],EnumValue:[],ListValue:["values"],ObjectValue:["fields"],ObjectField:["name","value"],Directive:["name","arguments"],NamedType:["name"],ListType:["type"],NonNullType:["type"],SchemaDefinition:["description","directives","operationTypes"],OperationTypeDefinition:["type"],ScalarTypeDefinition:["description","name","directives"],ObjectTypeDefinition:["description","name","interfaces","directives","fields"],FieldDefinition:["description","name","arguments","type","directives"],InputValueDefinition:["description","name","type","defaultValue","directives"],InterfaceTypeDefinition:["description","name","interfaces","directives","fields"],UnionTypeDefinition:["description","name","directives","types"],EnumTypeDefinition:["description","name","directives","values"],EnumValueDefinition:["description","name","directives"],InputObjectTypeDefinition:["description","name","directives","fields"],DirectiveDefinition:["description","name","arguments","locations"],SchemaExtension:["directives","operationTypes"],ScalarTypeExtension:["name","directives"],ObjectTypeExtension:["name","interfaces","directives","fields"],InterfaceTypeExtension:["name","interfaces","directives","fields"],UnionTypeExtension:["name","directives","types"],EnumTypeExtension:["name","directives","values"],InputObjectTypeExtension:["name","directives","fields"]},h=Object.freeze({});function visit(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:d,y=void 0,g=Array.isArray(e),v=[e],b=-1,_=[],w=void 0,E=void 0,S=void 0,k=[],O=[],C=e;do{var T=++b===v.length,A=T&&0!==_.length;if(T){if(E=0===O.length?void 0:k[k.length-1],w=S,S=O.pop(),A){if(g)w=w.slice();else{for(var x={},D=0,I=Object.keys(w);De.length)&&(t=e.length);for(var n=0,r=new Array(t);n0?r--:r=e.state.collections[t].length-1,e.state.collections[t][r].click(),console.log("".concat(e.name,": prev")),S.dispatchEvent(new Event("{ui.name}.prev"))})),_defineProperty(_assertThisInitialized(n),"reset",(function(){_assertThisInitialized(n).setState({content:"",type:[],shown:!1,loading:!1,error:!1,embed:!1})})),_defineProperty(_assertThisInitialized(n),"embed",(function(e){var t=_assertThisInitialized(n);console.log("".concat(t.name,": embed")),t.reset(),t.setState({embed:e,loading:!1,type:["embed","video"]}),t.show()})),_defineProperty(_assertThisInitialized(n),"load",(function(e){var t=_assertThisInitialized(n),r=t.axios;t.reset(),t.setState({loading:!0}),t.show(),r.get(e,{responseType:"arraybuffer"}).then((function(e){switch(console.log("".concat(t.name,": response content-type: ").concat(e.headers["content-type"])),e.headers["content-type"]){case"image/jpeg":case"image/png":case"image/svg+xml":case"image/bmp":case"image/gif":case"image/tiff":case"image/webp":case"image/jpg":case"image/svg":t.setContent(''),"image");break;case"application/json":case"application/ld+json":case"application/json; charset=UTF-8":var n=JSON.parse(t._abToString(e.data));t.setContent("".concat(n.Content),"text html json");break;case"text/html":case"application/xhtml+xml":case"text/plain":case"text/html; charset=UTF-8":case"application/xhtml+xml; charset=UTF-8":case"text/plain; charset=UTF-8":t.setContent(t._abToString(e.data),"text html pajax");break;default:console.warn("".concat(t.name,": Unknown response content-type!"))}S.dispatchEvent(new Event("{ui.name}.loaded"))})).catch((function(e){console.error(e);var n="";if(e.response)switch(e.response.status){case 404:n="Not Found.";break;case 500:n="Server issue, please try again latter.";break;default:n="Something went wrong."}else e.request?n="No response received":console.warn("Error",e.message);t.setState({error:n}),S.dispatchEvent(new Event("{ui.name}.error"))})).then((function(){t.setState({loading:!1})}))})),_defineProperty(_assertThisInitialized(n),"_abToString",(function(e){return String.fromCharCode.apply(null,new Uint8Array(e))})),_defineProperty(_assertThisInitialized(n),"_imageEncode",(function(e){new Uint8Array(e);return btoa([].reduce.call(new Uint8Array(e),(function(e,t){return e+String.fromCharCode(t)}),""))})),_defineProperty(_assertThisInitialized(n),"setContent",(function(e,t){var r=_assertThisInitialized(n);console.log("".concat(r.name,": setContent"));var i=t||["html","text"];Array.isArray(i)||(i=t.split(" ")),r.setState({content:e,type:i})})),_defineProperty(_assertThisInitialized(n),"show",(function(){var e=_assertThisInitialized(n);console.log("".concat(e.name,": show")),e.setState({shown:!0}),S.dispatchEvent(new Event("{ui.name}.show"))})),_defineProperty(_assertThisInitialized(n),"hide",(function(){var e=_assertThisInitialized(n);console.log("".concat(e.name,": hide")),b().withContext(name,(function(){b().unbind("left",e.prev),b().unbind("right",e.next)})),b().setContext("index"),e.setState({shown:!1}),S.dispatchEvent(new Event("{ui.name}.hide"))})),_defineProperty(_assertThisInitialized(n),"getHtml",(function(){return{__html:_assertThisInitialized(n).state.content}}));var r=_assertThisInitialized(n);return r.name=r.constructor.name,console.log("".concat(r.name,": init")),r.axios=O,S.dispatchEvent(new Event("{ui.name}.init")),n}return function _createClass(e,t,n){return t&&_defineProperties(e.prototype,t),n&&_defineProperties(e,n),e}(MetaWindow,[{key:"onSwipeMove",value:function onSwipeMove(e,t){var n=this.ui,r=e.x;n.locked||Math.abs(r)<50||(n.locked=!0,setTimeout((function(){n.locked=!1}),1e3),r>0?(console.log("".concat(n.name,": swipe right")),n.prev()):(console.log("".concat(n.name,": swipe left")),n.next()))}},{key:"render",value:function render(){var e=this,t=e.name,n=null,r=e.state.current;if(b().setContext(t),b().withContext(t,(function(){b().unbind("left",e.prev),b().unbind("right",e.next)})),r){var i=r.getAttribute("data-gallery");i&&e.state.collections[i].length>1&&(n=React.createElement("nav",{className:"meta-navs"},React.createElement("button",{className:"meta-nav meta-nav-arrow meta-nav-arrow__prev a",onClick:e.prev},React.createElement("i",{className:"fa fas fa-chevron-left"}),React.createElement("span",{className:"sr-only"},"Previous")),React.createElement("button",{className:"meta-nav meta-nav-arrow meta-nav-arrow__next a",onClick:e.next},React.createElement("i",{className:"fa fas fa-chevron-right"}),React.createElement("span",{className:"sr-only"},"Next"))),b().withContext(t,(function(){b().bind("left",e.prev),b().bind("right",e.next)})))}var d=e.state.embed?React.createElement("section",{className:"meta-wrap typography"},React.createElement(w(),{url:e.state.embed,providers:[].concat(_toConsumableArray(_.defaultProviders),[k]),LoadingFallbackElement:React.createElement("div",{className:"meta-spinner_embed"},"... Loading ...")})):React.createElement("section",{className:"meta-wrap typography",dangerouslySetInnerHTML:e.getHtml()}),h="meta-".concat(t," meta-").concat(t,"__").concat(e.state.type.join(" meta-".concat(t,"__"))),y="meta-".concat(t,"-overlay").concat(e.state.shown?" meta-".concat(t,"-overlay__open"):"").concat(e.state.loading?" meta-".concat(t,"-overlay__loading"):"").concat(e.state.error?" meta-".concat(t,"-overlay__error"):"");return React.createElement(g(),{className:h,ui:e,onSwipeMove:e.onSwipeMove},React.createElement("div",{className:y},React.createElement("article",{className:"meta-content"},n,React.createElement("button",{className:"meta-nav meta-close a",onClick:e.hide},React.createElement("i",{className:"fa fas fa-times"}),React.createElement("span",{className:"sr-only"},"Close")),React.createElement("div",{className:"meta-spinner"},"... Loading ..."),React.createElement("div",{className:"meta-error alert alert-danger"},e.state.error),d)))}}]),MetaWindow}(r.Component),T=(function(e){var r=h().render(i().createElement(C,null),document.getElementById("MetaLightboxApp")),d=function initMetaWindowLinks(){var e=r;console.log("MetaWindow: [links] init"),document.querySelectorAll('[data-toggle="lightbox"],[data-gallery="${gallery}"]').forEach((function(t){var n=t.getAttribute("data-gallery");n&&(e.state.collections[n]=[],document.querySelectorAll('[data-toggle="lightbox"][data-gallery="'.concat(n,'"]')).forEach((function(t){e.state.collections[n].push(t)}))),t.addEventListener("click",(function(t){t.preventDefault(),console.log("MetaWindow: [link] click");var n=t.currentTarget,r=n.getAttribute("href")||n.getAttribute("data-href"),i=n.getAttribute("data-embed");e.state.current=n,i?e.embed(r):e.load(r)}))}))};e.addEventListener("".concat(n),d),e.addEventListener("".concat(t),d),e.addEventListener("MetaWindow.initLinks",d)}(window),{APOLLO_ERROR:"apollo-error",AJAX:"ajax-load",AJAXMAIN:"ajax-main-load",MAININIT:"main-init",TABHIDDEN:"tab-hidden",TABFOCUSED:"tab-focused",OFFLINE:"offline",ONLINE:"online",BACKONLINE:"back-online",TOUCHENABLE:"touch-enabled",TOUCHDISABLED:"touch-disabled",LOADED:"load",SWIPELEFT:"swipeleft panleft",SWIPERIGHT:"swiperight panright",ALLERTAPPEARED:"alert-appeared",ALERTREMOVED:"alert-removed",LODEDANDREADY:"load-ready",LAZYIMAGEREADY:"image-lazy-bg-loaded",LAZYIMAGESREADY:"images-lazy-loaded",MAPLOADED:"map-loaded",MAPAPILOADED:"map-api-loaded",MAPMARKERCLICK:"map-marker-click",MAPPOPUPCLOSE:"map-popup-close",SCROLL:"scroll",RESIZE:"resize",CAROUSEL_READY:"bs.carousel.ready",SET_TARGET_UPDATE:"set-target-update",RESTORE_FIELD:"restore-field",FORM_INIT_BASICS:"form-basics",FORM_INIT_STEPPED:"form-init-stepped",FORM_INIT_VALIDATE:"form-init-validate",FORM_INIT_VALIDATE_FIELD:"form-init-validate-field",FORM_INIT_STORAGE:"form-init-storage",FORM_VALIDATION_FAILED:"form-validation-failed",FORM_STEPPED_NEW_STEP:"form-new-step",FORM_STEPPED_FIRST_STEP:"form-first-step",FORM_STEPPED_LAST_STEP:"form-last-step",FORM_FIELDS:"input,textarea,select"}),A={ENVS:["xs","sm","md","lg","xl","xxl","xxxl"]},x=__webpack_require__(361),__spreadArrays=function(){for(var e=0,t=0,n=arguments.length;t0&&i[i.length-1])&&(6===d[0]||2===d[0])){h=0;continue}if(3===d[0]&&(!i||d[1]>i[0]&&d[1]0&&i[i.length-1])&&(6===d[0]||2===d[0])){h=0;continue}if(3===d[0]&&(!i||d[1]>i[0]&&d[1]this.maxSize&&!this.paused?[4,this.purge()]:[3,2];case 1:return n.sent(),this.paused=!0,[2];case 2:return this.paused?[2]:[4,this.storage.write(e)];case 3:return n.sent(),this.log.info("string"===typeof e?"Persisted cache of size "+e.length+" characters":"Persisted cache"),[3,5];case 4:throw t=n.sent(),this.log.error("Error persisting cache",t),t;case 5:return[2]}}))}))},Persistor.prototype.restore=function(){return Persistor_awaiter(this,void 0,void 0,(function(){var e,t;return Persistor_generator(this,(function(n){switch(n.label){case 0:return n.trys.push([0,5,,6]),[4,this.storage.read()];case 1:return null==(e=n.sent())?[3,3]:[4,this.cache.restore(e)];case 2:return n.sent(),this.log.info("string"===typeof e?"Restored cache of size "+e.length+" characters":"Restored cache"),[3,4];case 3:this.log.info("No stored cache to restore"),n.label=4;case 4:return[3,6];case 5:throw t=n.sent(),this.log.error("Error restoring cache",t),t;case 6:return[2]}}))}))},Persistor.prototype.purge=function(){return Persistor_awaiter(this,void 0,void 0,(function(){var e;return Persistor_generator(this,(function(t){switch(t.label){case 0:return t.trys.push([0,2,,3]),[4,this.storage.purge()];case 1:return t.sent(),this.log.info("Purged cache storage"),[3,3];case 2:throw e=t.sent(),this.log.error("Error purging cache storage",e),e;case 3:return[2]}}))}))},Persistor}(),onCacheWrite=function(e){var t=e.cache;return function(e){var n=t.write,r=t.evict,i=t.modify;return t.write=function(){for(var r=[],i=0;i")),e.state.loading){Z.getElementById("PageLoading");n='
Loading ...
'}return React.createElement("div",{className:t,dangerouslySetInnerHTML:e.getHtml(n)})}}]),Page}(r.Component),ne=(function(e){var t="_main.visibility",n=document,r=n.body;n.addEventListener("visibilitychange",(function(){"hidden"===n.visibilityState?(console.log("".concat(t,": Tab: hidden")),r.classList.add("is-hidden"),r.classList.remove("is-focused"),e.dispatchEvent(new Event(T.TABHIDDEN))):(console.log("".concat(t,": Tab: focused")),r.classList.add("is-focused"),r.classList.remove("is-hidden"),e.dispatchEvent(new Event(T.TABFOCUSED)))}))}(window),function(e){var t,n,r="_main.touch",i=document,d=i.body,h=function SET_TOUCH_SCREEN(i,h){n||h===t||(i?(console.log("".concat(r,": Touch screen enabled")),d.classList.add("is-touch"),d.classList.remove("is-mouse"),e.dispatchEvent(new Event(T.TOUCHENABLE))):(console.log("".concat(r,": Touch screen disabled")),d.classList.add("is-mouse"),d.classList.remove("is-touch"),e.dispatchEvent(new Event(T.TOUCHDISABLED))),t=h,n||(n=setTimeout((function(){clearTimeout(n),n=null}),500)))};h("ontouchstart"in e||navigator.MaxTouchPoints>0||navigator.msMaxTouchPoints>0||e.matchMedia("(hover: none)").matches,"init"),i.addEventListener("touchend",(function(e){var t=!1;"click"!==e.type&&(t=!0),h(t,"click-touchend")})),i.addEventListener("click",(function(e){var t=!1;"click"!==e.type&&(t=!0),h(t,"click-touchend")}))}(window),__webpack_require__(9614));!function(e){var t,n="_main.online",r=document,i=r.body,d=r.querySelector('meta[name="ping"]'),h=!1,y=function UPDATE_ONLINE_STATUS(r){h||(h=!0,r?(i.classList.contains("is-offline")?(console.log("".concat(n,": back Online")),e.dispatchEvent(new Event(T.BACKONLINE))):(console.log("".concat(n,": Online")),e.dispatchEvent(new Event(T.ONLINE))),i.classList.add("is-online"),i.classList.remove("is-offline"),d&&!t&&(console.log("".concat(n,": SESSION_PING is active")),t=setInterval(v,3e5))):(console.log("".concat(n,": Offline")),i.classList.add("is-offline"),i.classList.remove("is-online"),clearInterval(t),t=null,e.dispatchEvent(new Event(T.OFFLINE))),h=!1)},g=!1,v=function SESSION_PING(){if(!g&&!i.classList.contains("is-offline")){var e=d.getAttribute("content");console.log("".concat(n,": session ping")),g=!0,ne.post(e,{}).then((function(e){g=!1,y(!0)})).catch((function(e){console.error(e),console.warn("".concat(n,": SESSION_PING failed")),g=!1,y(!1)}))}},b=function navigatorStateUpdate(){"undefined"!==typeof navigator.onLine&&(navigator.onLine?y(!0):y(!1))};e.addEventListener("".concat(T.OFFLINE),(function(){y(!1)})),e.addEventListener("".concat(T.ONLINE),(function(){y(!0)})),e.addEventListener("".concat(T.LOADED),b),e.addEventListener("".concat(T.AJAX),b)}(window);function _main_css_screen_size_toConsumableArray(e){return function _main_css_screen_size_arrayWithoutHoles(e){if(Array.isArray(e))return _main_css_screen_size_arrayLikeToArray(e)}(e)||function _main_css_screen_size_iterableToArray(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function _main_css_screen_size_unsupportedIterableToArray(e,t){if(!e)return;if("string"===typeof e)return _main_css_screen_size_arrayLikeToArray(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _main_css_screen_size_arrayLikeToArray(e,t)}(e)||function _main_css_screen_size_nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _main_css_screen_size_arrayLikeToArray(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.innerHeight?(n.classList.add("landscape"),n.classList.remove("portrait")):(v=!1,n.classList.add("portrait"),n.classList.remove("landscape")),console.log("".concat("_main.css-screen-size",": screen size detected ").concat(h," | landscape ").concat(v)),n.removeChild(i),h};e.addEventListener("".concat(T.LOADED),r),e.addEventListener("".concat(T.RESIZE),r)}(window);var re=__webpack_require__(1882),ie="top",oe="bottom",ae="right",se="left",ce="auto",ue=[ie,oe,ae,se],le="start",pe="end",fe="clippingParents",de="viewport",he="popper",me="reference",ye=ue.reduce((function(e,t){return e.concat([t+"-"+le,t+"-"+pe])}),[]),ge=[].concat(ue,[ce]).reduce((function(e,t){return e.concat([t,t+"-"+le,t+"-"+pe])}),[]),ve="beforeRead",be="read",_e="afterRead",we="beforeMain",Ee="main",Se="afterMain",ke="beforeWrite",Oe="write",Ce="afterWrite",Te=[ve,be,_e,we,Ee,Se,ke,Oe,Ce];function getNodeName(e){return e?(e.nodeName||"").toLowerCase():null}function getWindow(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function isElement(e){return e instanceof getWindow(e).Element||e instanceof Element}function isHTMLElement(e){return e instanceof getWindow(e).HTMLElement||e instanceof HTMLElement}function isShadowRoot(e){return"undefined"!==typeof ShadowRoot&&(e instanceof getWindow(e).ShadowRoot||e instanceof ShadowRoot)}var Ae={name:"applyStyles",enabled:!0,phase:"write",fn:function applyStyles(e){var t=e.state;Object.keys(t.elements).forEach((function(e){var n=t.styles[e]||{},r=t.attributes[e]||{},i=t.elements[e];isHTMLElement(i)&&getNodeName(i)&&(Object.assign(i.style,n),Object.keys(r).forEach((function(e){var t=r[e];!1===t?i.removeAttribute(e):i.setAttribute(e,!0===t?"":t)})))}))},effect:function effect(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach((function(e){var r=t.elements[e],i=t.attributes[e]||{},d=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce((function(e,t){return e[t]="",e}),{});isHTMLElement(r)&&getNodeName(r)&&(Object.assign(r.style,d),Object.keys(i).forEach((function(e){r.removeAttribute(e)})))}))}},requires:["computeStyles"]};function getBasePlacement(e){return e.split("-")[0]}function getBoundingClientRect(e){var t=e.getBoundingClientRect();return{width:t.width,height:t.height,top:t.top,right:t.right,bottom:t.bottom,left:t.left,x:t.left,y:t.top}}function getLayoutRect(e){var t=getBoundingClientRect(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function contains(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&isShadowRoot(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function getComputedStyle_getComputedStyle(e){return getWindow(e).getComputedStyle(e)}function isTableElement(e){return["table","td","th"].indexOf(getNodeName(e))>=0}function getDocumentElement(e){return((isElement(e)?e.ownerDocument:e.document)||window.document).documentElement}function getParentNode(e){return"html"===getNodeName(e)?e:e.assignedSlot||e.parentNode||(isShadowRoot(e)?e.host:null)||getDocumentElement(e)}function getTrueOffsetParent(e){return isHTMLElement(e)&&"fixed"!==getComputedStyle_getComputedStyle(e).position?e.offsetParent:null}function getOffsetParent(e){for(var t=getWindow(e),n=getTrueOffsetParent(e);n&&isTableElement(n)&&"static"===getComputedStyle_getComputedStyle(n).position;)n=getTrueOffsetParent(n);return n&&("html"===getNodeName(n)||"body"===getNodeName(n)&&"static"===getComputedStyle_getComputedStyle(n).position)?t:n||function getContainingBlock(e){var t=-1!==navigator.userAgent.toLowerCase().indexOf("firefox");if(-1!==navigator.userAgent.indexOf("Trident")&&isHTMLElement(e)&&"fixed"===getComputedStyle_getComputedStyle(e).position)return null;for(var n=getParentNode(e);isHTMLElement(n)&&["html","body"].indexOf(getNodeName(n))<0;){var r=getComputedStyle_getComputedStyle(n);if("none"!==r.transform||"none"!==r.perspective||"paint"===r.contain||-1!==["transform","perspective"].indexOf(r.willChange)||t&&"filter"===r.willChange||t&&r.filter&&"none"!==r.filter)return n;n=n.parentNode}return null}(e)||t}function getMainAxisFromPlacement(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}var xe=Math.max,De=Math.min,Ie=Math.round;function within(e,t,n){return xe(e,De(t,n))}function mergePaddingObject(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function expandToHashMap(e,t){return t.reduce((function(t,n){return t[n]=e,t}),{})}var Le={name:"arrow",enabled:!0,phase:"main",fn:function arrow(e){var t,n=e.state,r=e.name,i=e.options,d=n.elements.arrow,h=n.modifiersData.popperOffsets,y=getBasePlacement(n.placement),g=getMainAxisFromPlacement(y),v=[se,ae].indexOf(y)>=0?"height":"width";if(d&&h){var b=function toPaddingObject(e,t){return mergePaddingObject("number"!==typeof(e="function"===typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:expandToHashMap(e,ue))}(i.padding,n),_=getLayoutRect(d),w="y"===g?ie:se,E="y"===g?oe:ae,S=n.rects.reference[v]+n.rects.reference[g]-h[g]-n.rects.popper[v],k=h[g]-n.rects.reference[g],O=getOffsetParent(d),C=O?"y"===g?O.clientHeight||0:O.clientWidth||0:0,T=S/2-k/2,A=b[w],x=C-_[v]-b[E],D=C/2-_[v]/2+T,I=within(A,D,x),L=g;n.modifiersData[r]=((t={})[L]=I,t.centerOffset=I-D,t)}},effect:function arrow_effect(e){var t=e.state,n=e.options.element,r=void 0===n?"[data-popper-arrow]":n;null!=r&&("string"!==typeof r||(r=t.elements.popper.querySelector(r)))&&contains(t.elements.popper,r)&&(t.elements.arrow=r)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]},Pe={top:"auto",right:"auto",bottom:"auto",left:"auto"};function mapToStyles(e){var t,n=e.popper,r=e.popperRect,i=e.placement,d=e.offsets,h=e.position,y=e.gpuAcceleration,g=e.adaptive,v=e.roundOffsets,b=!0===v?function roundOffsetsByDPR(e){var t=e.x,n=e.y,r=window.devicePixelRatio||1;return{x:Ie(Ie(t*r)/r)||0,y:Ie(Ie(n*r)/r)||0}}(d):"function"===typeof v?v(d):d,_=b.x,w=void 0===_?0:_,E=b.y,S=void 0===E?0:E,k=d.hasOwnProperty("x"),O=d.hasOwnProperty("y"),C=se,T=ie,A=window;if(g){var x=getOffsetParent(n),D="clientHeight",I="clientWidth";x===getWindow(n)&&"static"!==getComputedStyle_getComputedStyle(x=getDocumentElement(n)).position&&(D="scrollHeight",I="scrollWidth"),x=x,i===ie&&(T=oe,S-=x[D]-r.height,S*=y?1:-1),i===se&&(C=ae,w-=x[I]-r.width,w*=y?1:-1)}var L,P=Object.assign({position:h},g&&Pe);return y?Object.assign({},P,((L={})[T]=O?"0":"",L[C]=k?"0":"",L.transform=(A.devicePixelRatio||1)<2?"translate("+w+"px, "+S+"px)":"translate3d("+w+"px, "+S+"px, 0)",L)):Object.assign({},P,((t={})[T]=O?S+"px":"",t[C]=k?w+"px":"",t.transform="",t))}var Ne={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function computeStyles(e){var t=e.state,n=e.options,r=n.gpuAcceleration,i=void 0===r||r,d=n.adaptive,h=void 0===d||d,y=n.roundOffsets,g=void 0===y||y,v={placement:getBasePlacement(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:i};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,mapToStyles(Object.assign({},v,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:h,roundOffsets:g})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,mapToStyles(Object.assign({},v,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:g})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},Re={passive:!0};var Me={name:"eventListeners",enabled:!0,phase:"write",fn:function fn(){},effect:function eventListeners_effect(e){var t=e.state,n=e.instance,r=e.options,i=r.scroll,d=void 0===i||i,h=r.resize,y=void 0===h||h,g=getWindow(t.elements.popper),v=[].concat(t.scrollParents.reference,t.scrollParents.popper);return d&&v.forEach((function(e){e.addEventListener("scroll",n.update,Re)})),y&&g.addEventListener("resize",n.update,Re),function(){d&&v.forEach((function(e){e.removeEventListener("scroll",n.update,Re)})),y&&g.removeEventListener("resize",n.update,Re)}},data:{}},je={left:"right",right:"left",bottom:"top",top:"bottom"};function getOppositePlacement(e){return e.replace(/left|right|bottom|top/g,(function(e){return je[e]}))}var Fe={start:"end",end:"start"};function getOppositeVariationPlacement(e){return e.replace(/start|end/g,(function(e){return Fe[e]}))}function getWindowScroll(e){var t=getWindow(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function getWindowScrollBarX(e){return getBoundingClientRect(getDocumentElement(e)).left+getWindowScroll(e).scrollLeft}function isScrollParent(e){var t=getComputedStyle_getComputedStyle(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}function getScrollParent(e){return["html","body","#document"].indexOf(getNodeName(e))>=0?e.ownerDocument.body:isHTMLElement(e)&&isScrollParent(e)?e:getScrollParent(getParentNode(e))}function listScrollParents(e,t){var n;void 0===t&&(t=[]);var r=getScrollParent(e),i=r===(null==(n=e.ownerDocument)?void 0:n.body),d=getWindow(r),h=i?[d].concat(d.visualViewport||[],isScrollParent(r)?r:[]):r,y=t.concat(h);return i?y:y.concat(listScrollParents(getParentNode(h)))}function rectToClientRect(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function getClientRectFromMixedType(e,t){return t===de?rectToClientRect(function getViewportRect(e){var t=getWindow(e),n=getDocumentElement(e),r=t.visualViewport,i=n.clientWidth,d=n.clientHeight,h=0,y=0;return r&&(i=r.width,d=r.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(h=r.offsetLeft,y=r.offsetTop)),{width:i,height:d,x:h+getWindowScrollBarX(e),y:y}}(e)):isHTMLElement(t)?function getInnerBoundingClientRect(e){var t=getBoundingClientRect(e);return t.top=t.top+e.clientTop,t.left=t.left+e.clientLeft,t.bottom=t.top+e.clientHeight,t.right=t.left+e.clientWidth,t.width=e.clientWidth,t.height=e.clientHeight,t.x=t.left,t.y=t.top,t}(t):rectToClientRect(function getDocumentRect(e){var t,n=getDocumentElement(e),r=getWindowScroll(e),i=null==(t=e.ownerDocument)?void 0:t.body,d=xe(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),h=xe(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),y=-r.scrollLeft+getWindowScrollBarX(e),g=-r.scrollTop;return"rtl"===getComputedStyle_getComputedStyle(i||n).direction&&(y+=xe(n.clientWidth,i?i.clientWidth:0)-d),{width:d,height:h,x:y,y:g}}(getDocumentElement(e)))}function getClippingRect(e,t,n){var r="clippingParents"===t?function getClippingParents(e){var t=listScrollParents(getParentNode(e)),n=["absolute","fixed"].indexOf(getComputedStyle_getComputedStyle(e).position)>=0&&isHTMLElement(e)?getOffsetParent(e):e;return isElement(n)?t.filter((function(e){return isElement(e)&&contains(e,n)&&"body"!==getNodeName(e)})):[]}(e):[].concat(t),i=[].concat(r,[n]),d=i[0],h=i.reduce((function(t,n){var r=getClientRectFromMixedType(e,n);return t.top=xe(r.top,t.top),t.right=De(r.right,t.right),t.bottom=De(r.bottom,t.bottom),t.left=xe(r.left,t.left),t}),getClientRectFromMixedType(e,d));return h.width=h.right-h.left,h.height=h.bottom-h.top,h.x=h.left,h.y=h.top,h}function getVariation(e){return e.split("-")[1]}function computeOffsets(e){var t,n=e.reference,r=e.element,i=e.placement,d=i?getBasePlacement(i):null,h=i?getVariation(i):null,y=n.x+n.width/2-r.width/2,g=n.y+n.height/2-r.height/2;switch(d){case ie:t={x:y,y:n.y-r.height};break;case oe:t={x:y,y:n.y+n.height};break;case ae:t={x:n.x+n.width,y:g};break;case se:t={x:n.x-r.width,y:g};break;default:t={x:n.x,y:n.y}}var v=d?getMainAxisFromPlacement(d):null;if(null!=v){var b="y"===v?"height":"width";switch(h){case le:t[v]=t[v]-(n[b]/2-r[b]/2);break;case pe:t[v]=t[v]+(n[b]/2-r[b]/2)}}return t}function detectOverflow(e,t){void 0===t&&(t={});var n=t,r=n.placement,i=void 0===r?e.placement:r,d=n.boundary,h=void 0===d?fe:d,y=n.rootBoundary,g=void 0===y?de:y,v=n.elementContext,b=void 0===v?he:v,_=n.altBoundary,w=void 0!==_&&_,E=n.padding,S=void 0===E?0:E,k=mergePaddingObject("number"!==typeof S?S:expandToHashMap(S,ue)),O=b===he?me:he,C=e.elements.reference,T=e.rects.popper,A=e.elements[w?O:b],x=getClippingRect(isElement(A)?A:A.contextElement||getDocumentElement(e.elements.popper),h,g),D=getBoundingClientRect(C),I=computeOffsets({reference:D,element:T,strategy:"absolute",placement:i}),L=rectToClientRect(Object.assign({},T,I)),P=b===he?L:D,N={top:x.top-P.top+k.top,bottom:P.bottom-x.bottom+k.bottom,left:x.left-P.left+k.left,right:P.right-x.right+k.right},R=e.modifiersData.offset;if(b===he&&R){var M=R[i];Object.keys(N).forEach((function(e){var t=[ae,oe].indexOf(e)>=0?1:-1,n=[ie,oe].indexOf(e)>=0?"y":"x";N[e]+=M[n]*t}))}return N}var qe={name:"flip",enabled:!0,phase:"main",fn:function flip(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var i=n.mainAxis,d=void 0===i||i,h=n.altAxis,y=void 0===h||h,g=n.fallbackPlacements,v=n.padding,b=n.boundary,_=n.rootBoundary,w=n.altBoundary,E=n.flipVariations,S=void 0===E||E,k=n.allowedAutoPlacements,O=t.options.placement,C=getBasePlacement(O),T=g||(C===O||!S?[getOppositePlacement(O)]:function getExpandedFallbackPlacements(e){if(getBasePlacement(e)===ce)return[];var t=getOppositePlacement(e);return[getOppositeVariationPlacement(e),t,getOppositeVariationPlacement(t)]}(O)),A=[O].concat(T).reduce((function(e,n){return e.concat(getBasePlacement(n)===ce?function computeAutoPlacement(e,t){void 0===t&&(t={});var n=t,r=n.placement,i=n.boundary,d=n.rootBoundary,h=n.padding,y=n.flipVariations,g=n.allowedAutoPlacements,v=void 0===g?ge:g,b=getVariation(r),_=b?y?ye:ye.filter((function(e){return getVariation(e)===b})):ue,w=_.filter((function(e){return v.indexOf(e)>=0}));0===w.length&&(w=_);var E=w.reduce((function(t,n){return t[n]=detectOverflow(e,{placement:n,boundary:i,rootBoundary:d,padding:h})[getBasePlacement(n)],t}),{});return Object.keys(E).sort((function(e,t){return E[e]-E[t]}))}(t,{placement:n,boundary:b,rootBoundary:_,padding:v,flipVariations:S,allowedAutoPlacements:k}):n)}),[]),x=t.rects.reference,D=t.rects.popper,I=new Map,L=!0,P=A[0],N=0;N=0,q=F?"width":"height",Q=detectOverflow(t,{placement:R,boundary:b,rootBoundary:_,altBoundary:w,padding:v}),B=F?j?ae:se:j?oe:ie;x[q]>D[q]&&(B=getOppositePlacement(B));var K=getOppositePlacement(B),U=[];if(d&&U.push(Q[M]<=0),y&&U.push(Q[B]<=0,Q[K]<=0),U.every((function(e){return e}))){P=R,L=!1;break}I.set(R,U)}if(L)for(var V=function _loop(e){var t=A.find((function(t){var n=I.get(t);if(n)return n.slice(0,e).every((function(e){return e}))}));if(t)return P=t,"break"},H=S?3:1;H>0;H--){if("break"===V(H))break}t.placement!==P&&(t.modifiersData[r]._skip=!0,t.placement=P,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function getSideOffsets(e,t,n){return void 0===n&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function isAnySideFullyClipped(e){return[ie,ae,oe,se].some((function(t){return e[t]>=0}))}var Qe={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function hide(e){var t=e.state,n=e.name,r=t.rects.reference,i=t.rects.popper,d=t.modifiersData.preventOverflow,h=detectOverflow(t,{elementContext:"reference"}),y=detectOverflow(t,{altBoundary:!0}),g=getSideOffsets(h,r),v=getSideOffsets(y,i,d),b=isAnySideFullyClipped(g),_=isAnySideFullyClipped(v);t.modifiersData[n]={referenceClippingOffsets:g,popperEscapeOffsets:v,isReferenceHidden:b,hasPopperEscaped:_},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":b,"data-popper-escaped":_})}};var Be={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function offset(e){var t=e.state,n=e.options,r=e.name,i=n.offset,d=void 0===i?[0,0]:i,h=ge.reduce((function(e,n){return e[n]=function distanceAndSkiddingToXY(e,t,n){var r=getBasePlacement(e),i=[se,ie].indexOf(r)>=0?-1:1,d="function"===typeof n?n(Object.assign({},t,{placement:e})):n,h=d[0],y=d[1];return h=h||0,y=(y||0)*i,[se,ae].indexOf(r)>=0?{x:y,y:h}:{x:h,y:y}}(n,t.rects,d),e}),{}),y=h[t.placement],g=y.x,v=y.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=g,t.modifiersData.popperOffsets.y+=v),t.modifiersData[r]=h}};var Ke={name:"popperOffsets",enabled:!0,phase:"read",fn:function popperOffsets(e){var t=e.state,n=e.name;t.modifiersData[n]=computeOffsets({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}};var Ue={name:"preventOverflow",enabled:!0,phase:"main",fn:function preventOverflow(e){var t=e.state,n=e.options,r=e.name,i=n.mainAxis,d=void 0===i||i,h=n.altAxis,y=void 0!==h&&h,g=n.boundary,v=n.rootBoundary,b=n.altBoundary,_=n.padding,w=n.tether,E=void 0===w||w,S=n.tetherOffset,k=void 0===S?0:S,O=detectOverflow(t,{boundary:g,rootBoundary:v,padding:_,altBoundary:b}),C=getBasePlacement(t.placement),T=getVariation(t.placement),A=!T,x=getMainAxisFromPlacement(C),D=function getAltAxis(e){return"x"===e?"y":"x"}(x),I=t.modifiersData.popperOffsets,L=t.rects.reference,P=t.rects.popper,N="function"===typeof k?k(Object.assign({},t.rects,{placement:t.placement})):k,R={x:0,y:0};if(I){if(d||y){var M="y"===x?ie:se,j="y"===x?oe:ae,F="y"===x?"height":"width",q=I[x],Q=I[x]+O[M],B=I[x]-O[j],K=E?-P[F]/2:0,U=T===le?L[F]:P[F],V=T===le?-P[F]:-L[F],H=t.elements.arrow,W=E&&H?getLayoutRect(H):{width:0,height:0},z=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},G=z[M],Y=z[j],J=within(0,L[F],W[F]),X=A?L[F]/2-K-J-G-N:U-J-G-N,Z=A?-L[F]/2+K+J+Y+N:V+J+Y+N,ee=t.elements.arrow&&getOffsetParent(t.elements.arrow),te=ee?"y"===x?ee.clientTop||0:ee.clientLeft||0:0,ne=t.modifiersData.offset?t.modifiersData.offset[t.placement][x]:0,re=I[x]+X-ne-te,ce=I[x]+Z-ne;if(d){var ue=within(E?De(Q,re):Q,q,E?xe(B,ce):B);I[x]=ue,R[x]=ue-q}if(y){var pe="x"===x?ie:se,fe="x"===x?oe:ae,de=I[D],he=de+O[pe],me=de-O[fe],ye=within(E?De(he,re):he,de,E?xe(me,ce):me);I[D]=ye,R[D]=ye-de}}t.modifiersData[r]=R}},requiresIfExists:["offset"]};function getCompositeRect(e,t,n){void 0===n&&(n=!1);var r=getDocumentElement(t),i=getBoundingClientRect(e),d=isHTMLElement(t),h={scrollLeft:0,scrollTop:0},y={x:0,y:0};return(d||!d&&!n)&&(("body"!==getNodeName(t)||isScrollParent(r))&&(h=function getNodeScroll(e){return e!==getWindow(e)&&isHTMLElement(e)?function getHTMLElementScroll(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}(e):getWindowScroll(e)}(t)),isHTMLElement(t)?((y=getBoundingClientRect(t)).x+=t.clientLeft,y.y+=t.clientTop):r&&(y.x=getWindowScrollBarX(r))),{x:i.left+h.scrollLeft-y.x,y:i.top+h.scrollTop-y.y,width:i.width,height:i.height}}function order(e){var t=new Map,n=new Set,r=[];function sort(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach((function(e){if(!n.has(e)){var r=t.get(e);r&&sort(r)}})),r.push(e)}return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){n.has(e.name)||sort(e)})),r}var Ve={placement:"bottom",modifiers:[],strategy:"absolute"};function areValidElements(){for(var e=arguments.length,t=new Array(e),n=0;ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n2&&void 0!==arguments[2]?arguments[2]:null,r=Object.keys(e),i=0,d=r.length;i1&&void 0!==arguments[1]?arguments[1]:document.documentElement;return(t=[]).concat.apply(t,bootstrap_esm_toConsumableArray(Element.prototype.querySelectorAll.call(n,e)))},Ft=function findOne(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:document.documentElement;return Element.prototype.querySelector.call(t,e)},qt=function children(e,t){var n;return(n=[]).concat.apply(n,bootstrap_esm_toConsumableArray(e.children)).filter((function(e){return e.matches(t)}))},Qt=function parents(e,t){for(var parents=[],n=e.parentNode;n&&n.nodeType===Node.ELEMENT_NODE&&3!==n.nodeType;)n.matches(t)&&parents.push(n),n=n.parentNode;return parents},Bt=function prev(e,t){for(var n=e.previousElementSibling;n;){if(n.matches(t))return[n];n=n.previousElementSibling}return[]},Kt=function next(e,t){for(var next=e.nextElementSibling;next;){if(next.matches(t))return[next];next=next.nextElementSibling}return[]},Ut="carousel",Vt="bs.carousel",Ht=".".concat(Vt),Wt=".data-api",zt={interval:5e3,keyboard:!0,slide:!1,pause:"hover",wrap:!0,touch:!0},Gt={interval:"(number|boolean)",keyboard:"boolean",slide:"(boolean|string)",pause:"(string|boolean)",wrap:"boolean",touch:"boolean"},Yt="next",Jt="prev",Xt="left",$t="right",Zt="slide".concat(Ht),en="slid".concat(Ht),tn="keydown".concat(Ht),nn="mouseenter".concat(Ht),rn="mouseleave".concat(Ht),an="touchstart".concat(Ht),sn="touchmove".concat(Ht),cn="touchend".concat(Ht),un="pointerdown".concat(Ht),ln="pointerup".concat(Ht),pn="dragstart".concat(Ht),dn="load".concat(Ht).concat(Wt),hn="click".concat(Ht).concat(Wt),mn="active",yn=".active.carousel-item",gn="touch",vn=function(e){bootstrap_esm_inherits(Carousel,e);var t=bootstrap_esm_createSuper(Carousel);function Carousel(e,n){var r;return bootstrap_esm_classCallCheck(this,Carousel),(r=t.call(this,e))._items=null,r._interval=null,r._activeElement=null,r._isPaused=!1,r._isSliding=!1,r.touchTimeout=null,r.touchStartX=0,r.touchDeltaX=0,r._config=r._getConfig(n),r._indicatorsElement=Ft(".carousel-indicators",r._element),r._touchSupported="ontouchstart"in document.documentElement||navigator.maxTouchPoints>0,r._pointerEvent=Boolean(window.PointerEvent),r._addEventListeners(),r}return bootstrap_esm_createClass(Carousel,[{key:"next",value:function next(){this._isSliding||this._slide(Yt)}},{key:"nextWhenVisible",value:function nextWhenVisible(){!document.hidden&&it(this._element)&&this.next()}},{key:"prev",value:function prev(){this._isSliding||this._slide(Jt)}},{key:"pause",value:function pause(e){e||(this._isPaused=!0),Ft(".carousel-item-next, .carousel-item-prev",this._element)&&(et(this._element),this.cycle(!0)),clearInterval(this._interval),this._interval=null}},{key:"cycle",value:function cycle(e){e||(this._isPaused=!1),this._interval&&(clearInterval(this._interval),this._interval=null),this._config&&this._config.interval&&!this._isPaused&&(this._updateInterval(),this._interval=setInterval((document.visibilityState?this.nextWhenVisible:this.next).bind(this),this._config.interval))}},{key:"to",value:function to(e){var t=this;this._activeElement=Ft(yn,this._element);var n=this._getItemIndex(this._activeElement);if(!(e>this._items.length-1||e<0))if(this._isSliding)St.one(this._element,en,(function(){return t.to(e)}));else{if(n===e)return this.pause(),void this.cycle();var r=e>n?Yt:Jt;this._slide(r,this._items[e])}}},{key:"dispose",value:function dispose(){St.off(this._element,Ht),this._items=null,this._config=null,this._interval=null,this._isPaused=null,this._isSliding=null,this._activeElement=null,this._indicatorsElement=null,_get(bootstrap_esm_getPrototypeOf(Carousel.prototype),"dispose",this).call(this)}},{key:"_getConfig",value:function _getConfig(e){return e=_objectSpread(_objectSpread({},zt),e),rt(Ut,e,Gt),e}},{key:"_handleSwipe",value:function _handleSwipe(){var e=Math.abs(this.touchDeltaX);if(!(e<=40)){var t=e/this.touchDeltaX;this.touchDeltaX=0,t&&this._slide(t>0?$t:Xt)}}},{key:"_addEventListeners",value:function _addEventListeners(){var e=this;this._config.keyboard&&St.on(this._element,tn,(function(t){return e._keydown(t)})),"hover"===this._config.pause&&(St.on(this._element,nn,(function(t){return e.pause(t)})),St.on(this._element,rn,(function(t){return e.cycle(t)}))),this._config.touch&&this._touchSupported&&this._addTouchEventListeners()}},{key:"_addTouchEventListeners",value:function _addTouchEventListeners(){var e=this,t=function start(t){!e._pointerEvent||"pen"!==t.pointerType&&t.pointerType!==gn?e._pointerEvent||(e.touchStartX=t.touches[0].clientX):e.touchStartX=t.clientX},n=function end(t){!e._pointerEvent||"pen"!==t.pointerType&&t.pointerType!==gn||(e.touchDeltaX=t.clientX-e.touchStartX),e._handleSwipe(),"hover"===e._config.pause&&(e.pause(),e.touchTimeout&&clearTimeout(e.touchTimeout),e.touchTimeout=setTimeout((function(t){return e.cycle(t)}),500+e._config.interval))};jt(".carousel-item img",this._element).forEach((function(e){St.on(e,pn,(function(e){return e.preventDefault()}))})),this._pointerEvent?(St.on(this._element,un,(function(e){return t(e)})),St.on(this._element,ln,(function(e){return n(e)})),this._element.classList.add("pointer-event")):(St.on(this._element,an,(function(e){return t(e)})),St.on(this._element,sn,(function(t){return function move(t){e.touchDeltaX=t.touches&&t.touches.length>1?0:t.touches[0].clientX-e.touchStartX}(t)})),St.on(this._element,cn,(function(e){return n(e)})))}},{key:"_keydown",value:function _keydown(e){/input|textarea/i.test(e.target.tagName)||("ArrowLeft"===e.key?(e.preventDefault(),this._slide(Xt)):"ArrowRight"===e.key&&(e.preventDefault(),this._slide($t)))}},{key:"_getItemIndex",value:function _getItemIndex(e){return this._items=e&&e.parentNode?jt(".carousel-item",e.parentNode):[],this._items.indexOf(e)}},{key:"_getItemByOrder",value:function _getItemByOrder(e,t){var n=e===Yt,r=e===Jt,i=this._getItemIndex(t),d=this._items.length-1;if((r&&0===i||n&&i===d)&&!this._config.wrap)return t;var h=(i+(r?-1:1))%this._items.length;return-1===h?this._items[this._items.length-1]:this._items[h]}},{key:"_triggerSlideEvent",value:function _triggerSlideEvent(e,t){var n=this._getItemIndex(e),r=this._getItemIndex(Ft(yn,this._element));return St.trigger(this._element,Zt,{relatedTarget:e,direction:t,from:r,to:n})}},{key:"_setActiveIndicatorElement",value:function _setActiveIndicatorElement(e){if(this._indicatorsElement){var t=Ft(".active",this._indicatorsElement);t.classList.remove(mn),t.removeAttribute("aria-current");for(var n=jt("[data-bs-target]",this._indicatorsElement),r=0;r0)for(var r=0;r0&&i--,e.key===Un&&idocument.documentElement.clientHeight;t||(this._element.style.overflowY="hidden"),this._element.classList.add(Pr);var n=Ze(this._dialog);St.off(this._element,"transitionend"),St.one(this._element,"transitionend",(function(){e._element.classList.remove(Pr),t||(St.one(e._element,"transitionend",(function(){e._element.style.overflowY=""})),nt(e._element,n))})),nt(this._element,n),this._element.focus()}}},{key:"_adjustDialog",value:function _adjustDialog(){var e=this._element.scrollHeight>document.documentElement.clientHeight;(!this._isBodyOverflowing&&e&&!lt()||this._isBodyOverflowing&&!e&<())&&(this._element.style.paddingLeft="".concat(this._scrollbarWidth,"px")),(this._isBodyOverflowing&&!e&&!lt()||!this._isBodyOverflowing&&e&<())&&(this._element.style.paddingRight="".concat(this._scrollbarWidth,"px"))}},{key:"_resetAdjustments",value:function _resetAdjustments(){this._element.style.paddingLeft="",this._element.style.paddingRight=""}},{key:"_checkScrollbar",value:function _checkScrollbar(){var e=document.body.getBoundingClientRect();this._isBodyOverflowing=Math.round(e.left+e.right)e.clientWidth+r._scrollbarWidth)){var i=e.style[t],d=window.getComputedStyle(e)[t];Mt.setDataAttribute(e,t,i),e.style[t]=n(Number.parseFloat(d))+"px"}}))}},{key:"_resetScrollbar",value:function _resetScrollbar(){this._resetElementAttributes(Nr,"paddingRight"),this._resetElementAttributes(Rr,"marginRight"),this._resetElementAttributes("body","paddingRight")}},{key:"_resetElementAttributes",value:function _resetElementAttributes(e,t){jt(e).forEach((function(e){var n=Mt.getDataAttribute(e,t);"undefined"===typeof n&&e===document.body?e.style[t]="":(Mt.removeDataAttribute(e,t),e.style[t]=n)}))}},{key:"_getScrollbarWidth",value:function _getScrollbarWidth(){var e=document.createElement("div");e.className="modal-scrollbar-measure",document.body.appendChild(e);var t=e.getBoundingClientRect().width-e.clientWidth;return document.body.removeChild(e),t}}],[{key:"Default",get:function get(){return yr}},{key:"DATA_KEY",get:function get(){return dr}},{key:"jQueryInterface",value:function jQueryInterface(e,t){return this.each((function(){var n=ht(this,dr),r=_objectSpread(_objectSpread(_objectSpread({},yr),Mt.getDataAttributes(this)),"object"===bootstrap_esm_typeof(e)&&e?e:{});if(n||(n=new Modal(this,r)),"string"===typeof e){if("undefined"===typeof n[e])throw new TypeError('No method named "'.concat(e,'"'));n[e](t)}}))}}]),Modal}(kt);St.on(document,xr,'[data-bs-toggle="modal"]',(function(e){var t=this,n=$e(this);"A"!==this.tagName&&"AREA"!==this.tagName||e.preventDefault(),St.one(n,wr,(function(e){e.defaultPrevented||St.one(n,_r,(function(){it(t)&&t.focus()}))}));var r=ht(n,dr);if(!r){var i=_objectSpread(_objectSpread({},Mt.getDataAttributes(n)),Mt.getDataAttributes(this));r=new Mr(n,i)}r.toggle(this)})),pt(fr,Mr);var jr=".fixed-top, .fixed-bottom, .is-fixed",Fr=".sticky-top",qr=function getWidth(){var e=document.documentElement.clientWidth;return Math.abs(window.innerWidth-e)},Qr=function _setElementAttributes(e,t,n){var r=qr();jt(e).forEach((function(e){if(!(e!==document.body&&window.innerWidth>e.clientWidth+r)){var i=e.style[t],d=window.getComputedStyle(e)[t];Mt.setDataAttribute(e,t,i),e.style[t]=n(Number.parseFloat(d))+"px"}}))},Br=function _resetElementAttributes(e,t){jt(e).forEach((function(e){var n=Mt.getDataAttribute(e,t);"undefined"===typeof n&&e===document.body?e.style.removeProperty(t):(Mt.removeDataAttribute(e,t),e.style[t]=n)}))},Kr="offcanvas",Ur="bs.offcanvas",Vr=".".concat(Ur),Hr=".data-api",Wr="load".concat(Vr).concat(Hr),zr={backdrop:!0,keyboard:!0,scroll:!1},Gr={backdrop:"boolean",keyboard:"boolean",scroll:"boolean"},Yr="offcanvas-backdrop",Jr="show",Xr="offcanvas-toggling",$r=".offcanvas.show",Zr="".concat($r,", .").concat(Xr),ei="show".concat(Vr),ti="shown".concat(Vr),ni="hide".concat(Vr),ri="hidden".concat(Vr),ii="focusin".concat(Vr),oi="click".concat(Vr).concat(Hr),ai="click.dismiss".concat(Vr),si=function(e){bootstrap_esm_inherits(Offcanvas,e);var t=bootstrap_esm_createSuper(Offcanvas);function Offcanvas(e,n){var r;return bootstrap_esm_classCallCheck(this,Offcanvas),(r=t.call(this,e))._config=r._getConfig(n),r._isShown=!1,r._addEventListeners(),r}return bootstrap_esm_createClass(Offcanvas,[{key:"toggle",value:function toggle(e){return this._isShown?this.hide():this.show(e)}},{key:"show",value:function show(e){var t=this;if(!this._isShown&&!St.trigger(this._element,ei,{relatedTarget:e}).defaultPrevented){this._isShown=!0,this._element.style.visibility="visible",this._config.backdrop&&document.body.classList.add(Yr),this._config.scroll||function hide(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:qr();document.body.style.overflow="hidden",Qr(jr,"paddingRight",(function(t){return t+e})),Qr(Fr,"marginRight",(function(t){return t-e})),Qr("body","paddingRight",(function(t){return t+e}))}(),this._element.classList.add(Xr),this._element.removeAttribute("aria-hidden"),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.classList.add(Jr);setTimeout((function completeCallBack(){t._element.classList.remove(Xr),St.trigger(t._element,ti,{relatedTarget:e}),t._enforceFocusOnElement(t._element)}),Ze(this._element))}}},{key:"hide",value:function hide(){var e=this;if(this._isShown&&!St.trigger(this._element,ni).defaultPrevented){this._element.classList.add(Xr),St.off(document,ii),this._element.blur(),this._isShown=!1,this._element.classList.remove(Jr);setTimeout((function completeCallback(){e._element.setAttribute("aria-hidden",!0),e._element.removeAttribute("aria-modal"),e._element.removeAttribute("role"),e._element.style.visibility="hidden",e._config.backdrop&&document.body.classList.remove(Yr),e._config.scroll||function reset(){document.body.style.overflow="auto",Br(jr,"paddingRight"),Br(Fr,"marginRight"),Br("body","paddingRight")}(),St.trigger(e._element,ri),e._element.classList.remove(Xr)}),Ze(this._element))}}},{key:"_getConfig",value:function _getConfig(e){return e=_objectSpread(_objectSpread(_objectSpread({},zr),Mt.getDataAttributes(this._element)),"object"===bootstrap_esm_typeof(e)?e:{}),rt(Kr,e,Gr),e}},{key:"_enforceFocusOnElement",value:function _enforceFocusOnElement(e){St.off(document,ii),St.on(document,ii,(function(t){document===t.target||e===t.target||e.contains(t.target)||e.focus()})),e.focus()}},{key:"_addEventListeners",value:function _addEventListeners(){var e=this;St.on(this._element,ai,'[data-bs-dismiss="offcanvas"]',(function(){return e.hide()})),St.on(document,"keydown",(function(t){e._config.keyboard&&"Escape"===t.key&&e.hide()})),St.on(document,oi,(function(t){var n=Ft(Xe(t.target));e._element.contains(t.target)||n===e._element||e.hide()}))}}],[{key:"Default",get:function get(){return zr}},{key:"DATA_KEY",get:function get(){return Ur}},{key:"jQueryInterface",value:function jQueryInterface(e){return this.each((function(){var t=ht(this,Ur)||new Offcanvas(this,"object"===bootstrap_esm_typeof(e)?e:{});if("string"===typeof e){if(void 0===t[e]||e.startsWith("_")||"constructor"===e)throw new TypeError('No method named "'.concat(e,'"'));t[e](this)}}))}}]),Offcanvas}(kt);St.on(document,oi,'[data-bs-toggle="offcanvas"]',(function(e){var t=this,n=$e(this);if(["A","AREA"].includes(this.tagName)&&e.preventDefault(),!ot(this)){St.one(n,ri,(function(){it(t)&&t.focus()}));var r=Ft(Zr);if(!r||r===n)(ht(n,Ur)||new si(n)).toggle(this)}})),St.on(window,Wr,(function(){jt($r).forEach((function(e){return(ht(e,Ur)||new si(e)).show()}))})),pt(Kr,si);var ci=new Set(["background","cite","href","itemtype","longdesc","poster","src","xlink:href"]),ui=/^(?:(?:https?|mailto|ftp|tel|file):|[^#&/:?]*(?:[#/?]|$))/i,li=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[\d+/a-z]+=*$/i,pi={"*":["class","dir","id","lang","role",/^aria-[\w-]*$/i],a:["target","href","title","rel"],area:[],b:[],br:[],col:[],code:[],div:[],em:[],hr:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],i:[],img:["src","srcset","alt","title","width","height"],li:[],ol:[],p:[],pre:[],s:[],small:[],span:[],sub:[],sup:[],strong:[],u:[],ul:[]};function sanitizeHtml(e,t,n){var r;if(!e.length)return e;if(n&&"function"===typeof n)return n(e);for(var i=(new window.DOMParser).parseFromString(e,"text/html"),d=Object.keys(t),h=(r=[]).concat.apply(r,bootstrap_esm_toConsumableArray(i.body.querySelectorAll("*"))),y=function _loop(e,n){var r,i=h[e],y=i.nodeName.toLowerCase();if(!d.includes(y))return i.parentNode.removeChild(i),"continue";var g=(r=[]).concat.apply(r,bootstrap_esm_toConsumableArray(i.attributes)),v=[].concat(t["*"]||[],t[y]||[]);g.forEach((function(e){(function allowedAttribute(e,t){var n=e.nodeName.toLowerCase();if(t.includes(n))return!ci.has(n)||Boolean(ui.test(e.nodeValue)||li.test(e.nodeValue));for(var r=t.filter((function(e){return e instanceof RegExp})),i=0,d=r.length;i
',trigger:"hover focus",title:"",delay:0,html:!1,selector:!1,placement:"top",offset:[0,0],container:!1,fallbackPlacements:["top","right","bottom","left"],boundary:"clippingParents",customClass:"",sanitize:!0,sanitizeFn:null,allowList:pi,popperConfig:null},wi={HIDE:"hide".concat(hi),HIDDEN:"hidden".concat(hi),SHOW:"show".concat(hi),SHOWN:"shown".concat(hi),INSERTED:"inserted".concat(hi),CLICK:"click".concat(hi),FOCUSIN:"focusin".concat(hi),FOCUSOUT:"focusout".concat(hi),MOUSEENTER:"mouseenter".concat(hi),MOUSELEAVE:"mouseleave".concat(hi)},Ei="fade",Si="modal",ki="show",Oi="show",Ci="out",Ti="hover",Ai="focus",xi=function(t){bootstrap_esm_inherits(Tooltip,t);var n=bootstrap_esm_createSuper(Tooltip);function Tooltip(t,r){var i;if(bootstrap_esm_classCallCheck(this,Tooltip),"undefined"===typeof e)throw new TypeError("Bootstrap's tooltips require Popper (https://popper.js.org)");return(i=n.call(this,t))._isEnabled=!0,i._timeout=0,i._hoverState="",i._activeTrigger={},i._popper=null,i.config=i._getConfig(r),i.tip=null,i._setListeners(),i}return bootstrap_esm_createClass(Tooltip,[{key:"enable",value:function enable(){this._isEnabled=!0}},{key:"disable",value:function disable(){this._isEnabled=!1}},{key:"toggleEnabled",value:function toggleEnabled(){this._isEnabled=!this._isEnabled}},{key:"toggle",value:function toggle(e){if(this._isEnabled)if(e){var t=this._initializeOnDelegatedTarget(e);t._activeTrigger.click=!t._activeTrigger.click,t._isWithActiveTrigger()?t._enter(null,t):t._leave(null,t)}else{if(this.getTipElement().classList.contains(ki))return void this._leave(null,this);this._enter(null,this)}}},{key:"dispose",value:function dispose(){clearTimeout(this._timeout),St.off(this._element,this.constructor.EVENT_KEY),St.off(this._element.closest(".".concat(Si)),"hide.bs.modal",this._hideModalHandler),this.tip&&this.tip.parentNode&&this.tip.parentNode.removeChild(this.tip),this._isEnabled=null,this._timeout=null,this._hoverState=null,this._activeTrigger=null,this._popper&&this._popper.destroy(),this._popper=null,this.config=null,this.tip=null,_get(bootstrap_esm_getPrototypeOf(Tooltip.prototype),"dispose",this).call(this)}},{key:"show",value:function show(){var e=this;if("none"===this._element.style.display)throw new Error("Please use show on visible elements");if(this.isWithContent()&&this._isEnabled){var t=St.trigger(this._element,this.constructor.Event.SHOW),n=at(this._element),r=null===n?this._element.ownerDocument.documentElement.contains(this._element):n.contains(this._element);if(!t.defaultPrevented&&r){var i=this.getTipElement(),d=Ye(this.constructor.NAME);i.setAttribute("id",d),this._element.setAttribute("aria-describedby",d),this.setContent(),this.config.animation&&i.classList.add(Ei);var h="function"===typeof this.config.placement?this.config.placement.call(this,i,this._element):this.config.placement,y=this._getAttachment(h);this._addAttachmentClass(y);var g=this._getContainer();dt(i,this.constructor.DATA_KEY,this),this._element.ownerDocument.documentElement.contains(this.tip)||(g.appendChild(i),St.trigger(this._element,this.constructor.Event.INSERTED)),this._popper?this._popper.update():this._popper=We(this._element,i,this._getPopperConfig(y)),i.classList.add(ki);var v,b,_="function"===typeof this.config.customClass?this.config.customClass():this.config.customClass;if(_)(v=i.classList).add.apply(v,bootstrap_esm_toConsumableArray(_.split(" ")));if("ontouchstart"in document.documentElement)(b=[]).concat.apply(b,bootstrap_esm_toConsumableArray(document.body.children)).forEach((function(e){St.on(e,"mouseover",(function(){}))}));var w=function complete(){var t=e._hoverState;e._hoverState=null,St.trigger(e._element,e.constructor.Event.SHOWN),t===Ci&&e._leave(null,e)};if(this.tip.classList.contains(Ei)){var E=Ze(this.tip);St.one(this.tip,"transitionend",w),nt(this.tip,E)}else w()}}}},{key:"hide",value:function hide(){var e=this;if(this._popper){var t=this.getTipElement(),n=function complete(){e._isWithActiveTrigger()||(e._hoverState!==Oi&&t.parentNode&&t.parentNode.removeChild(t),e._cleanTipClass(),e._element.removeAttribute("aria-describedby"),St.trigger(e._element,e.constructor.Event.HIDDEN),e._popper&&(e._popper.destroy(),e._popper=null))};if(!St.trigger(this._element,this.constructor.Event.HIDE).defaultPrevented){var r;if(t.classList.remove(ki),"ontouchstart"in document.documentElement)(r=[]).concat.apply(r,bootstrap_esm_toConsumableArray(document.body.children)).forEach((function(e){return St.off(e,"mouseover",st)}));if(this._activeTrigger.click=!1,this._activeTrigger.focus=!1,this._activeTrigger.hover=!1,this.tip.classList.contains(Ei)){var i=Ze(t);St.one(t,"transitionend",n),nt(t,i)}else n();this._hoverState=""}}}},{key:"update",value:function update(){null!==this._popper&&this._popper.update()}},{key:"isWithContent",value:function isWithContent(){return Boolean(this.getTitle())}},{key:"getTipElement",value:function getTipElement(){if(this.tip)return this.tip;var e=document.createElement("div");return e.innerHTML=this.config.template,this.tip=e.children[0],this.tip}},{key:"setContent",value:function setContent(){var e=this.getTipElement();this.setElementContent(Ft(".tooltip-inner",e),this.getTitle()),e.classList.remove(Ei,ki)}},{key:"setElementContent",value:function setElementContent(e,t){if(null!==e)return"object"===bootstrap_esm_typeof(t)&&tt(t)?(t.jquery&&(t=t[0]),void(this.config.html?t.parentNode!==e&&(e.innerHTML="",e.appendChild(t)):e.textContent=t.textContent)):void(this.config.html?(this.config.sanitize&&(t=sanitizeHtml(t,this.config.allowList,this.config.sanitizeFn)),e.innerHTML=t):e.textContent=t)}},{key:"getTitle",value:function getTitle(){var e=this._element.getAttribute("data-bs-original-title");return e||(e="function"===typeof this.config.title?this.config.title.call(this._element):this.config.title),e}},{key:"updateAttachment",value:function updateAttachment(e){return"right"===e?"end":"left"===e?"start":e}},{key:"_initializeOnDelegatedTarget",value:function _initializeOnDelegatedTarget(e,t){var n=this.constructor.DATA_KEY;return(t=t||ht(e.delegateTarget,n))||(t=new this.constructor(e.delegateTarget,this._getDelegateConfig()),dt(e.delegateTarget,n,t)),t}},{key:"_getOffset",value:function _getOffset(){var e=this,t=this.config.offset;return"string"===typeof t?t.split(",").map((function(e){return Number.parseInt(e,10)})):"function"===typeof t?function(n){return t(n,e._element)}:t}},{key:"_getPopperConfig",value:function _getPopperConfig(e){var t=this,n={placement:e,modifiers:[{name:"flip",options:{altBoundary:!0,fallbackPlacements:this.config.fallbackPlacements}},{name:"offset",options:{offset:this._getOffset()}},{name:"preventOverflow",options:{boundary:this.config.boundary}},{name:"arrow",options:{element:".".concat(this.constructor.NAME,"-arrow")}},{name:"onChange",enabled:!0,phase:"afterWrite",fn:function fn(e){return t._handlePopperPlacementChange(e)}}],onFirstUpdate:function onFirstUpdate(e){e.options.placement!==e.placement&&t._handlePopperPlacementChange(e)}};return _objectSpread(_objectSpread({},n),"function"===typeof this.config.popperConfig?this.config.popperConfig(n):this.config.popperConfig)}},{key:"_addAttachmentClass",value:function _addAttachmentClass(e){this.getTipElement().classList.add("".concat(mi,"-").concat(this.updateAttachment(e)))}},{key:"_getContainer",value:function _getContainer(){return!1===this.config.container?document.body:tt(this.config.container)?this.config.container:Ft(this.config.container)}},{key:"_getAttachment",value:function _getAttachment(e){return bi[e.toUpperCase()]}},{key:"_setListeners",value:function _setListeners(){var e=this;this.config.trigger.split(" ").forEach((function(t){if("click"===t)St.on(e._element,e.constructor.Event.CLICK,e.config.selector,(function(t){return e.toggle(t)}));else if("manual"!==t){var n=t===Ti?e.constructor.Event.MOUSEENTER:e.constructor.Event.FOCUSIN,r=t===Ti?e.constructor.Event.MOUSELEAVE:e.constructor.Event.FOCUSOUT;St.on(e._element,n,e.config.selector,(function(t){return e._enter(t)})),St.on(e._element,r,e.config.selector,(function(t){return e._leave(t)}))}})),this._hideModalHandler=function(){e._element&&e.hide()},St.on(this._element.closest(".".concat(Si)),"hide.bs.modal",this._hideModalHandler),this.config.selector?this.config=_objectSpread(_objectSpread({},this.config),{},{trigger:"manual",selector:""}):this._fixTitle()}},{key:"_fixTitle",value:function _fixTitle(){var e=this._element.getAttribute("title"),t=bootstrap_esm_typeof(this._element.getAttribute("data-bs-original-title"));(e||"string"!==t)&&(this._element.setAttribute("data-bs-original-title",e||""),!e||this._element.getAttribute("aria-label")||this._element.textContent||this._element.setAttribute("aria-label",e),this._element.setAttribute("title",""))}},{key:"_enter",value:function _enter(e,t){t=this._initializeOnDelegatedTarget(e,t),e&&(t._activeTrigger["focusin"===e.type?Ai:Ti]=!0),t.getTipElement().classList.contains(ki)||t._hoverState===Oi?t._hoverState=Oi:(clearTimeout(t._timeout),t._hoverState=Oi,t.config.delay&&t.config.delay.show?t._timeout=setTimeout((function(){t._hoverState===Oi&&t.show()}),t.config.delay.show):t.show())}},{key:"_leave",value:function _leave(e,t){t=this._initializeOnDelegatedTarget(e,t),e&&(t._activeTrigger["focusout"===e.type?Ai:Ti]=t._element.contains(e.relatedTarget)),t._isWithActiveTrigger()||(clearTimeout(t._timeout),t._hoverState=Ci,t.config.delay&&t.config.delay.hide?t._timeout=setTimeout((function(){t._hoverState===Ci&&t.hide()}),t.config.delay.hide):t.hide())}},{key:"_isWithActiveTrigger",value:function _isWithActiveTrigger(){for(var e in this._activeTrigger)if(this._activeTrigger[e])return!0;return!1}},{key:"_getConfig",value:function _getConfig(e){var t=Mt.getDataAttributes(this._element);return Object.keys(t).forEach((function(e){gi.has(e)&&delete t[e]})),e&&"object"===bootstrap_esm_typeof(e.container)&&e.container.jquery&&(e.container=e.container[0]),"number"===typeof(e=_objectSpread(_objectSpread(_objectSpread({},this.constructor.Default),t),"object"===bootstrap_esm_typeof(e)&&e?e:{})).delay&&(e.delay={show:e.delay,hide:e.delay}),"number"===typeof e.title&&(e.title=e.title.toString()),"number"===typeof e.content&&(e.content=e.content.toString()),rt(fi,e,this.constructor.DefaultType),e.sanitize&&(e.template=sanitizeHtml(e.template,e.allowList,e.sanitizeFn)),e}},{key:"_getDelegateConfig",value:function _getDelegateConfig(){var e={};if(this.config)for(var t in this.config)this.constructor.Default[t]!==this.config[t]&&(e[t]=this.config[t]);return e}},{key:"_cleanTipClass",value:function _cleanTipClass(){var e=this.getTipElement(),t=e.getAttribute("class").match(yi);null!==t&&t.length>0&&t.map((function(e){return e.trim()})).forEach((function(t){return e.classList.remove(t)}))}},{key:"_handlePopperPlacementChange",value:function _handlePopperPlacementChange(e){var t=e.state;t&&(this.tip=t.elements.popper,this._cleanTipClass(),this._addAttachmentClass(this._getAttachment(t.placement)))}}],[{key:"Default",get:function get(){return _i}},{key:"NAME",get:function get(){return fi}},{key:"DATA_KEY",get:function get(){return di}},{key:"Event",get:function get(){return wi}},{key:"EVENT_KEY",get:function get(){return hi}},{key:"DefaultType",get:function get(){return vi}},{key:"jQueryInterface",value:function jQueryInterface(e){return this.each((function(){var t=ht(this,di),n="object"===bootstrap_esm_typeof(e)&&e;if((t||!/dispose|hide/.test(e))&&(t||(t=new Tooltip(this,n)),"string"===typeof e)){if("undefined"===typeof t[e])throw new TypeError('No method named "'.concat(e,'"'));t[e]()}}))}}]),Tooltip}(kt);pt(fi,xi);var Di="popover",Ii="bs.popover",Li=".".concat(Ii),Pi="bs-popover",Ni=new RegExp("(^|\\s)".concat(Pi,"\\S+"),"g"),Ri=_objectSpread(_objectSpread({},xi.Default),{},{placement:"right",offset:[0,8],trigger:"click",content:"",template:''}),Mi=_objectSpread(_objectSpread({},xi.DefaultType),{},{content:"(string|element|function)"}),ji={HIDE:"hide".concat(Li),HIDDEN:"hidden".concat(Li),SHOW:"show".concat(Li),SHOWN:"shown".concat(Li),INSERTED:"inserted".concat(Li),CLICK:"click".concat(Li),FOCUSIN:"focusin".concat(Li),FOCUSOUT:"focusout".concat(Li),MOUSEENTER:"mouseenter".concat(Li),MOUSELEAVE:"mouseleave".concat(Li)};pt(Di,function(e){bootstrap_esm_inherits(Popover,e);var t=bootstrap_esm_createSuper(Popover);function Popover(){return bootstrap_esm_classCallCheck(this,Popover),t.apply(this,arguments)}return bootstrap_esm_createClass(Popover,[{key:"isWithContent",value:function isWithContent(){return this.getTitle()||this._getContent()}},{key:"setContent",value:function setContent(){var e=this.getTipElement();this.setElementContent(Ft(".popover-header",e),this.getTitle());var t=this._getContent();"function"===typeof t&&(t=t.call(this._element)),this.setElementContent(Ft(".popover-body",e),t),e.classList.remove("fade","show")}},{key:"_addAttachmentClass",value:function _addAttachmentClass(e){this.getTipElement().classList.add("".concat(Pi,"-").concat(this.updateAttachment(e)))}},{key:"_getContent",value:function _getContent(){return this._element.getAttribute("data-bs-content")||this.config.content}},{key:"_cleanTipClass",value:function _cleanTipClass(){var e=this.getTipElement(),t=e.getAttribute("class").match(Ni);null!==t&&t.length>0&&t.map((function(e){return e.trim()})).forEach((function(t){return e.classList.remove(t)}))}}],[{key:"Default",get:function get(){return Ri}},{key:"NAME",get:function get(){return Di}},{key:"DATA_KEY",get:function get(){return Ii}},{key:"Event",get:function get(){return ji}},{key:"EVENT_KEY",get:function get(){return Li}},{key:"DefaultType",get:function get(){return Mi}},{key:"jQueryInterface",value:function jQueryInterface(e){return this.each((function(){var t=ht(this,Ii),n="object"===bootstrap_esm_typeof(e)?e:null;if((t||!/dispose|hide/.test(e))&&(t||(t=new Popover(this,n),dt(this,Ii,t)),"string"===typeof e)){if("undefined"===typeof t[e])throw new TypeError('No method named "'.concat(e,'"'));t[e]()}}))}}]),Popover}(xi));var Fi="scrollspy",qi="bs.scrollspy",Qi=".".concat(qi),Bi={offset:10,method:"auto",target:""},Ki={offset:"number",method:"string",target:"(string|element)"},Ui="activate".concat(Qi),Vi="scroll".concat(Qi),Hi="load".concat(Qi).concat(".data-api"),Wi="dropdown-item",zi="active",Gi=".nav-link",Yi=".list-group-item",Ji="position",Xi=function(e){bootstrap_esm_inherits(ScrollSpy,e);var t=bootstrap_esm_createSuper(ScrollSpy);function ScrollSpy(e,n){var r;return bootstrap_esm_classCallCheck(this,ScrollSpy),(r=t.call(this,e))._scrollElement="BODY"===r._element.tagName?window:r._element,r._config=r._getConfig(n),r._selector="".concat(r._config.target," ").concat(Gi,", ").concat(r._config.target," ").concat(Yi,", ").concat(r._config.target," .").concat(Wi),r._offsets=[],r._targets=[],r._activeTarget=null,r._scrollHeight=0,St.on(r._scrollElement,Vi,(function(){return r._process()})),r.refresh(),r._process(),r}return bootstrap_esm_createClass(ScrollSpy,[{key:"refresh",value:function refresh(){var e=this,t=this._scrollElement===this._scrollElement.window?"offset":Ji,n="auto"===this._config.method?t:this._config.method,r=n===Ji?this._getScrollTop():0;this._offsets=[],this._targets=[],this._scrollHeight=this._getScrollHeight(),jt(this._selector).map((function(e){var t=Xe(e),i=t?Ft(t):null;if(i){var d=i.getBoundingClientRect();if(d.width||d.height)return[Mt[n](i).top+r,t]}return null})).filter((function(e){return e})).sort((function(e,t){return e[0]-t[0]})).forEach((function(t){e._offsets.push(t[0]),e._targets.push(t[1])}))}},{key:"dispose",value:function dispose(){_get(bootstrap_esm_getPrototypeOf(ScrollSpy.prototype),"dispose",this).call(this),St.off(this._scrollElement,Qi),this._scrollElement=null,this._config=null,this._selector=null,this._offsets=null,this._targets=null,this._activeTarget=null,this._scrollHeight=null}},{key:"_getConfig",value:function _getConfig(e){if("string"!==typeof(e=_objectSpread(_objectSpread({},Bi),"object"===bootstrap_esm_typeof(e)&&e?e:{})).target&&tt(e.target)){var t=e.target.id;t||(t=Ye(Fi),e.target.id=t),e.target="#".concat(t)}return rt(Fi,e,Ki),e}},{key:"_getScrollTop",value:function _getScrollTop(){return this._scrollElement===window?this._scrollElement.pageYOffset:this._scrollElement.scrollTop}},{key:"_getScrollHeight",value:function _getScrollHeight(){return this._scrollElement.scrollHeight||Math.max(document.body.scrollHeight,document.documentElement.scrollHeight)}},{key:"_getOffsetHeight",value:function _getOffsetHeight(){return this._scrollElement===window?window.innerHeight:this._scrollElement.getBoundingClientRect().height}},{key:"_process",value:function _process(){var e=this._getScrollTop()+this._config.offset,t=this._getScrollHeight(),n=this._config.offset+t-this._getOffsetHeight();if(this._scrollHeight!==t&&this.refresh(),e>=n){var r=this._targets[this._targets.length-1];this._activeTarget!==r&&this._activate(r)}else{if(this._activeTarget&&e0)return this._activeTarget=null,void this._clear();for(var i=this._offsets.length;i--;){this._activeTarget!==this._targets[i]&&e>=this._offsets[i]&&("undefined"===typeof this._offsets[i+1]||e .dropdown-menu .active",t.parentNode);r&&r.classList.remove(ao),"tab"===t.getAttribute("role")&&t.setAttribute("aria-selected",!1)}(e.classList.add(ao),"tab"===e.getAttribute("role")&&e.setAttribute("aria-selected",!0),ct(e),e.classList.contains(so)&&e.classList.add(co),e.parentNode&&e.parentNode.classList.contains("dropdown-menu"))&&(e.closest(".dropdown")&&jt(".dropdown-toggle").forEach((function(e){return e.classList.add(ao)})),e.setAttribute("aria-expanded",!0));n&&n()}}],[{key:"DATA_KEY",get:function get(){return $i}},{key:"jQueryInterface",value:function jQueryInterface(e){return this.each((function(){var t=ht(this,$i)||new Tab(this);if("string"===typeof e){if("undefined"===typeof t[e])throw new TypeError('No method named "'.concat(e,'"'));t[e]()}}))}}]),Tab}(kt);St.on(document,oo,'[data-bs-toggle="tab"], [data-bs-toggle="pill"], [data-bs-toggle="list"]',(function(e){e.preventDefault(),(ht(this,$i)||new po(this)).show()})),pt("tab",po);var fo="toast",ho="bs.toast",mo=".".concat(ho),yo="click.dismiss".concat(mo),go="hide".concat(mo),vo="hidden".concat(mo),bo="show".concat(mo),_o="shown".concat(mo),wo="hide",Eo="show",So="showing",ko={animation:"boolean",autohide:"boolean",delay:"number"},Oo={animation:!0,autohide:!0,delay:5e3};function _main_loading_spinner_defineProperties(e,t){for(var n=0;n"),"color:yellow;font-size:10px"),console.info("%cENV: ".concat("production"),"color:green;font-size:10px"),console.groupCollapsed("Events"),Object.keys(T).forEach((function(e){console.info("".concat(e,": ").concat(T[e]))})),console.groupEnd("Events"),console.groupCollapsed("Consts"),Object.keys(A).forEach((function(e){console.info("".concat(e,": ").concat(A[e]))})),console.groupEnd("Events"),console.groupCollapsed("Init"),console.time("init");var r=function(){function MainUI(){!function _main_classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,MainUI)}return function _main_createClass(e,t,n){return t&&_main_defineProperties(e.prototype,t),n&&_main_defineProperties(e,n),e}(MainUI,null,[{key:"init",value:function init(){e.history.replaceState({landing:e.location.href},t.title,e.location.href),this.loaded()}},{key:"loaded",value:function loaded(){console.log("".concat("_main",": loaded"))}}]),MainUI}();e.addEventListener("".concat(T.LOADED),(function(){r.init(),n.classList.add("loaded"),xo.hide(),console.groupEnd("init"),console.timeEnd("init"),e.dispatchEvent(new Event(T.LODEDANDREADY))})),e.addEventListener("".concat(T.AJAX),(function(){r.loaded()})),e.MainUI=r}(window);var Io=__webpack_require__(6062),Lo=__webpack_require__.n(Io),Po=(function(e){var t="js-instagramfeed",n=(document.body,function loadFeed(){console.log("".concat(t,": loading")),document.querySelectorAll(".".concat(t)).forEach((function(n,r){var i="InstagramFeed".concat(r),d=n.dataset;n.classList.add("".concat(t,"-loading")),n.classList.remove("".concat(t,"-loaded"),"".concat(t,"-error")),new(Lo())({username:d.username,tag:d.tag||null,display_profile:d["display-profile"],display_biography:d["display-biography"],display_gallery:d["display-gallery"],display_captions:d["display-captions"],cache_time:d.cache_time||360,items:d.items||12,styling:!1,lazy_load:!0,callback:function callback(r){console.log("".concat(t,": data response received"));var d=document.createElement("div");d.classList.add("".concat(t,"-list"),"row"),n.appendChild(d),r.edge_owner_to_timeline_media.edges.forEach((function(e,n){var r=e.node,h=function ig_media_preview(e){var t=atob(e),n=t.slice(3).split(""),r=t.substring(0,3).split("").map((function(e){return e.charCodeAt(0)})),i=atob("/9j/4AAQSkZJRgABAQAAAQABAAD/2wCEABsaGikdKUEmJkFCLy8vQkc/Pj4/R0dHR0dHR0dHR0dHR0dHR0dHR0dHR0dHR0dHR0dHR0dHR0dHR0dHR0dHR0cBHSkpNCY0PygoP0c/NT9HR0dHR0dHR0dHR0dHR0dHR0dHR0dHR0dHR0dHR0dHR0dHR0dHR0dHR0dHR0dHR0dHR//AABEIABQAKgMBIgACEQEDEQH/xAGiAAABBQEBAQEBAQAAAAAAAAAAAQIDBAUGBwgJCgsQAAIBAwMCBAMFBQQEAAABfQECAwAEEQUSITFBBhNRYQcicRQygZGhCCNCscEVUtHwJDNicoIJChYXGBkaJSYnKCkqNDU2Nzg5OkNERUZHSElKU1RVVldYWVpjZGVmZ2hpanN0dXZ3eHl6g4SFhoeIiYqSk5SVlpeYmZqio6Slpqeoqaqys7S1tre4ubrCw8TFxsfIycrS09TV1tfY2drh4uPk5ebn6Onq8fLz9PX29/j5+gEAAwEBAQEBAQEBAQAAAAAAAAECAwQFBgcICQoLEQACAQIEBAMEBwUEBAABAncAAQIDEQQFITEGEkFRB2FxEyIygQgUQpGhscEJIzNS8BVictEKFiQ04SXxFxgZGiYnKCkqNTY3ODk6Q0RFRkdISUpTVFVWV1hZWmNkZWZnaGlqc3R1dnd4eXqCg4SFhoeIiYqSk5SVlpeYmZqio6Slpqeoqaqys7S1tre4ubrCw8TFxsfIycrS09TV1tfY2dri4+Tl5ufo6ery8/T19vf4+fr/2gAMAwEAAhEDEQA/AA==").split("");return i[162]=String.fromCharCode(r[1]),i[160]=String.fromCharCode(r[2]),e?"data:image/jpeg;base64,".concat(btoa(i.concat(n).join(""))):null}(r.media_preview);d.innerHTML+='
')+'').concat(r.accessibility_caption,'')+"
"})),n.classList.remove("".concat(t,"-loading")),n.classList.add("".concat(t,"-loaded")),e.dispatchEvent(new Event("MetaWindowindow.initLinks")),e.dispatchEvent(new Event("".concat(t,".loaded")))},on_error:function on_error(r){console.error("".concat(t,": ").concat(r)),n.classList.remove("".concat(t,"-loading")),n.classList.add("".concat(t,"-error")),e.dispatchEvent(new Event("".concat(t,".error")))}})}))});e.addEventListener("".concat(T.LODEDANDREADY),n),e.addEventListener("".concat(T.AJAX),n)}(window),"transitionend"),No=function getSelector(e){var t=e.getAttribute("data-bs-target");if(!t||"#"===t){var n=e.getAttribute("href");if(!n||!n.includes("#")&&!n.startsWith("."))return null;n.includes("#")&&!n.startsWith("#")&&(n="#"+n.split("#")[1]),t=n&&"#"!==n?n.trim():null}return t},Ro=function triggerTransitionEnd(e){e.dispatchEvent(new Event(Po))},Mo=function getjQuery(){var jQuery=window.jQuery;return jQuery&&!document.body.hasAttribute("data-bs-no-jquery")?jQuery:null},jo=function isRTL(){return"rtl"===document.documentElement.dir},Fo=new Map,qo=function set(e,t,n){Fo.has(e)||Fo.set(e,new Map);var r=Fo.get(e);r.has(t)||0===r.size?r.set(t,n):console.error("Bootstrap doesn't allow more than one instance per element. Bound instance: ".concat(Array.from(r.keys())[0],"."))},Qo=function get(e,t){return Fo.has(e)&&Fo.get(e).get(t)||null},Bo=function remove(e,t){if(Fo.has(e)){var n=Fo.get(e);n.delete(t),0===n.size&&Fo.delete(e)}};function event_handler_slicedToArray(e,t){return function event_handler_arrayWithHoles(e){if(Array.isArray(e))return e}(e)||function event_handler_iterableToArrayLimit(e,t){var n=e&&("undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"]);if(null==n)return;var r,i,d=[],h=!0,y=!1;try{for(n=n.call(e);!(h=(r=n.next()).done)&&(d.push(r.value),!t||d.length!==t);h=!0);}catch(g){y=!0,i=g}finally{try{h||null==n.return||n.return()}finally{if(y)throw i}}return d}(e,t)||function event_handler_unsupportedIterableToArray(e,t){if(!e)return;if("string"===typeof e)return event_handler_arrayLikeToArray(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return event_handler_arrayLikeToArray(e,t)}(e,t)||function event_handler_nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function event_handler_arrayLikeToArray(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n2&&void 0!==arguments[2]?arguments[2]:null,r=Object.keys(e),i=0,d=r.length;ie.length)&&(t=e.length);for(var n=0,r=new Array(t);n1&&void 0!==arguments[1]?arguments[1]:document.documentElement;return(t=[]).concat.apply(t,selector_engine_toConsumableArray(Element.prototype.querySelectorAll.call(n,e)))},findOne:function findOne(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:document.documentElement;return Element.prototype.querySelector.call(t,e)},children:function children(e,t){var n;return(n=[]).concat.apply(n,selector_engine_toConsumableArray(e.children)).filter((function(e){return e.matches(t)}))},parents:function parents(e,t){for(var parents=[],n=e.parentNode;n&&n.nodeType===Node.ELEMENT_NODE&&3!==n.nodeType;)n.matches(t)&&parents.push(n),n=n.parentNode;return parents},prev:function prev(e,t){for(var n=e.previousElementSibling;n;){if(n.matches(t))return[n];n=n.previousElementSibling}return[]},next:function next(e,t){for(var next=e.nextElementSibling;next;){if(next.matches(t))return[next];next=next.nextElementSibling}return[]}};function base_component_defineProperties(e,t){for(var n=0;n0,r._pointerEvent=Boolean(window.PointerEvent),r._addEventListeners(),r}return function carousel_createClass(e,t,n){return t&&carousel_defineProperties(e.prototype,t),n&&carousel_defineProperties(e,n),e}(Carousel,[{key:"next",value:function next(){this._isSliding||this._slide(aa)}},{key:"nextWhenVisible",value:function nextWhenVisible(){!document.hidden&&function isVisible(e){if(!e)return!1;if(e.style&&e.parentNode&&e.parentNode.style){var t=getComputedStyle(e),n=getComputedStyle(e.parentNode);return"none"!==t.display&&"none"!==n.display&&"hidden"!==t.visibility}return!1}(this._element)&&this.next()}},{key:"prev",value:function prev(){this._isSliding||this._slide(sa)}},{key:"pause",value:function pause(e){e||(this._isPaused=!0),$o.findOne(".carousel-item-next, .carousel-item-prev",this._element)&&(Ro(this._element),this.cycle(!0)),clearInterval(this._interval),this._interval=null}},{key:"cycle",value:function cycle(e){e||(this._isPaused=!1),this._interval&&(clearInterval(this._interval),this._interval=null),this._config&&this._config.interval&&!this._isPaused&&(this._updateInterval(),this._interval=setInterval((document.visibilityState?this.nextWhenVisible:this.next).bind(this),this._config.interval))}},{key:"to",value:function to(e){var t=this;this._activeElement=$o.findOne(ka,this._element);var n=this._getItemIndex(this._activeElement);if(!(e>this._items.length-1||e<0))if(this._isSliding)Jo.one(this._element,pa,(function(){return t.to(e)}));else{if(n===e)return this.pause(),void this.cycle();var r=e>n?aa:sa;this._slide(r,this._items[e])}}},{key:"dispose",value:function dispose(){Jo.off(this._element,na),this._items=null,this._config=null,this._interval=null,this._isPaused=null,this._isSliding=null,this._activeElement=null,this._indicatorsElement=null,carousel_get(carousel_getPrototypeOf(Carousel.prototype),"dispose",this).call(this)}},{key:"_getConfig",value:function _getConfig(e){return e=carousel_objectSpread(carousel_objectSpread({},ia),e),function typeCheckConfig(e,t,n){Object.keys(n).forEach((function(r){var i=n[r],d=t[r],h=d&&function isElement(e){return(e[0]||e).nodeType}(d)?"element":function toType(e){return null===e||void 0===e?"".concat(e):{}.toString.call(e).match(/\s([a-z]+)/i)[1].toLowerCase()}(d);if(!new RegExp(i).test(h))throw new TypeError("".concat(e.toUpperCase(),": ")+'Option "'.concat(r,'" provided type "').concat(h,'" ')+'but expected type "'.concat(i,'".'))}))}(ea,e,oa),e}},{key:"_handleSwipe",value:function _handleSwipe(){var e=Math.abs(this.touchDeltaX);if(!(e<=40)){var t=e/this.touchDeltaX;this.touchDeltaX=0,t&&this._slide(t>0?ua:ca)}}},{key:"_addEventListeners",value:function _addEventListeners(){var e=this;this._config.keyboard&&Jo.on(this._element,fa,(function(t){return e._keydown(t)})),"hover"===this._config.pause&&(Jo.on(this._element,da,(function(t){return e.pause(t)})),Jo.on(this._element,ha,(function(t){return e.cycle(t)}))),this._config.touch&&this._touchSupported&&this._addTouchEventListeners()}},{key:"_addTouchEventListeners",value:function _addTouchEventListeners(){var e=this,t=function start(t){!e._pointerEvent||"pen"!==t.pointerType&&t.pointerType!==Oa?e._pointerEvent||(e.touchStartX=t.touches[0].clientX):e.touchStartX=t.clientX},n=function end(t){!e._pointerEvent||"pen"!==t.pointerType&&t.pointerType!==Oa||(e.touchDeltaX=t.clientX-e.touchStartX),e._handleSwipe(),"hover"===e._config.pause&&(e.pause(),e.touchTimeout&&clearTimeout(e.touchTimeout),e.touchTimeout=setTimeout((function(t){return e.cycle(t)}),500+e._config.interval))};$o.find(".carousel-item img",this._element).forEach((function(e){Jo.on(e,_a,(function(e){return e.preventDefault()}))})),this._pointerEvent?(Jo.on(this._element,va,(function(e){return t(e)})),Jo.on(this._element,ba,(function(e){return n(e)})),this._element.classList.add("pointer-event")):(Jo.on(this._element,ma,(function(e){return t(e)})),Jo.on(this._element,ya,(function(t){return function move(t){e.touchDeltaX=t.touches&&t.touches.length>1?0:t.touches[0].clientX-e.touchStartX}(t)})),Jo.on(this._element,ga,(function(e){return n(e)})))}},{key:"_keydown",value:function _keydown(e){/input|textarea/i.test(e.target.tagName)||("ArrowLeft"===e.key?(e.preventDefault(),this._slide(ca)):"ArrowRight"===e.key&&(e.preventDefault(),this._slide(ua)))}},{key:"_getItemIndex",value:function _getItemIndex(e){return this._items=e&&e.parentNode?$o.find(".carousel-item",e.parentNode):[],this._items.indexOf(e)}},{key:"_getItemByOrder",value:function _getItemByOrder(e,t){var n=e===aa,r=e===sa,i=this._getItemIndex(t),d=this._items.length-1;if((r&&0===i||n&&i===d)&&!this._config.wrap)return t;var h=(i+(r?-1:1))%this._items.length;return-1===h?this._items[this._items.length-1]:this._items[h]}},{key:"_triggerSlideEvent",value:function _triggerSlideEvent(e,t){var n=this._getItemIndex(e),r=this._getItemIndex($o.findOne(ka,this._element));return Jo.trigger(this._element,la,{relatedTarget:e,direction:t,from:r,to:n})}},{key:"_setActiveIndicatorElement",value:function _setActiveIndicatorElement(e){if(this._indicatorsElement){var t=$o.findOne(".active",this._indicatorsElement);t.classList.remove(Sa),t.removeAttribute("aria-current");for(var n=$o.find("[data-bs-target]",this._indicatorsElement),r=0;r{const e=this.state.current,t=e.getAttribute("data-gallery");return this.state.collections[t].indexOf(e)}}__init3(){this.next=()=>{const e=this,t=e.state.current.getAttribute("data-gallery");let n=e._currIndex();n{const e=this,t=e.state.current.getAttribute("data-gallery");let n=e._currIndex();n>0?n--:n=e.state.collections[t].length-1,e.state.collections[t][n].click(),console.log(`${e.name}: prev`),C.dispatchEvent(new Event("{ui.name}.prev"))}}__init5(){this.reset=()=>{this.setState({content:"",type:[],shown:!1,loading:!1,error:!1,embed:!1})}}__init6(){this.embed=e=>{const t=this;console.log(`${t.name}: embed`),t.reset(),t.setState({embed:e,loading:!1,type:["embed","video"]}),t.show()}}__init7(){this.load=e=>{const t=this,n=t.axios;t.reset(),t.setState({loading:!0}),t.show(),n.get(e,{responseType:"arraybuffer"}).then((e=>{switch(console.log(`${t.name}: response content-type: ${e.headers["content-type"]}`),e.headers["content-type"]){case"image/jpeg":case"image/png":case"image/svg+xml":case"image/bmp":case"image/gif":case"image/tiff":case"image/webp":case"image/jpg":case"image/svg":t.setContent(``,"image");break;case"application/json":case"application/ld+json":case"application/json; charset=UTF-8":const n=JSON.parse(t._abToString(e.data));t.setContent(`${n.Content}`,"text html json");break;case"text/html":case"application/xhtml+xml":case"text/plain":case"text/html; charset=UTF-8":case"application/xhtml+xml; charset=UTF-8":case"text/plain; charset=UTF-8":t.setContent(t._abToString(e.data),"text html pajax");break;default:console.warn(`${t.name}: Unknown response content-type!`)}C.dispatchEvent(new Event("{ui.name}.loaded"))})).catch((e=>{console.error(e);let n="";if(e.response)switch(e.response.status){case 404:n="Not Found.";break;case 500:n="Server issue, please try again latter.";break;default:n="Something went wrong."}else e.request?n="No response received":console.warn("Error",e.message);t.setState({error:n}),C.dispatchEvent(new Event("{ui.name}.error"))})).then((()=>{t.setState({loading:!1})}))}}__init8(){this._abToString=e=>String.fromCharCode.apply(null,new Uint8Array(e))}__init9(){this._imageEncode=e=>{new Uint8Array(e);return btoa([].reduce.call(new Uint8Array(e),(function(e,t){return e+String.fromCharCode(t)}),""))}}__init10(){this.setContent=(e,t)=>{console.log(`${this.name}: setContent`);let n=t||["html","text"];Array.isArray(n)||(n=t.split(" ")),this.setState({content:e,type:n})}}__init11(){this.show=()=>{console.log(`${this.name}: show`),this.setState({shown:!0}),C.dispatchEvent(new Event("{ui.name}.show"))}}__init12(){this.hide=()=>{const e=this;console.log(`${e.name}: hide`),E().withContext(name,(()=>{E().unbind("left",e.prev),E().unbind("right",e.next)})),E().setContext("index"),e.setState({shown:!1}),C.dispatchEvent(new Event("{ui.name}.hide"))}}__init13(){this.getHtml=()=>({__html:this.state.content})}onSwipeMove(e,t){const n=this.ui,r=e.x;n.locked||Math.abs(r)<50||(n.locked=!0,setTimeout((()=>{n.locked=!1}),1e3),r>0?(console.log(`${n.name}: swipe right`),n.prev()):(console.log(`${n.name}: swipe left`),n.next()))}render(){const e=this,t=e.name;let n=null;const r=e.state.current;if(E().setContext(t),E().withContext(t,(()=>{E().unbind("left",e.prev),E().unbind("right",e.next)})),r){const i=r.getAttribute("data-gallery");i&&e.state.collections[i].length>1&&(n=React.createElement("nav",{className:"meta-navs",__self:this,__source:{fileName:O,lineNumber:364}},React.createElement("button",{className:"meta-nav meta-nav-arrow meta-nav-arrow__prev a",onClick:e.prev,__self:this,__source:{fileName:O,lineNumber:365}},React.createElement("i",{className:"fa fas fa-chevron-left",__self:this,__source:{fileName:O,lineNumber:369}}),React.createElement("span",{className:"sr-only",__self:this,__source:{fileName:O,lineNumber:370}},"Previous")),React.createElement("button",{className:"meta-nav meta-nav-arrow meta-nav-arrow__next a",onClick:e.next,__self:this,__source:{fileName:O,lineNumber:372}},React.createElement("i",{className:"fa fas fa-chevron-right",__self:this,__source:{fileName:O,lineNumber:376}}),React.createElement("span",{className:"sr-only",__self:this,__source:{fileName:O,lineNumber:377}},"Next"))),E().withContext(t,(()=>{E().bind("left",e.prev),E().bind("right",e.next)})))}const i=e.state.embed?React.createElement("section",{className:"meta-wrap typography",__self:this,__source:{fileName:O,lineNumber:390}},React.createElement(k(),{url:e.state.embed,providers:[...S.defaultProviders,T],LoadingFallbackElement:React.createElement("div",{className:"meta-spinner_embed",__self:this,__source:{fileName:O,lineNumber:394}},"... Loading ..."),__self:this,__source:{fileName:O,lineNumber:391}})):React.createElement("section",{className:"meta-wrap typography",dangerouslySetInnerHTML:e.getHtml(),__self:this,__source:{fileName:O,lineNumber:400}}),h=`meta-${t} meta-${t}__${e.state.type.join(` meta-${t}__`)}`,d=`meta-${t}-overlay${e.state.shown?` meta-${t}-overlay__open`:""}${e.state.loading?` meta-${t}-overlay__loading`:""}${e.state.error?` meta-${t}-overlay__error`:""}`;return React.createElement(_(),{className:h,ui:e,onSwipeMove:e.onSwipeMove,__self:this,__source:{fileName:O,lineNumber:417}},React.createElement("div",{className:d,__self:this,__source:{fileName:O,lineNumber:418}},React.createElement("article",{className:"meta-content",__self:this,__source:{fileName:O,lineNumber:419}},n,React.createElement("button",{className:"meta-nav meta-close a",onClick:e.hide,__self:this,__source:{fileName:O,lineNumber:421}},React.createElement("i",{className:"fa fas fa-times",__self:this,__source:{fileName:O,lineNumber:425}}),React.createElement("span",{className:"sr-only",__self:this,__source:{fileName:O,lineNumber:426}},"Close")),React.createElement("div",{className:"meta-spinner",__self:this,__source:{fileName:O,lineNumber:429}},"... Loading ..."),React.createElement("div",{className:"meta-error alert alert-danger",__self:this,__source:{fileName:O,lineNumber:430}},e.state.error),i)))}}var A=MetaWindow;(e=>{const t=v().render(g().createElement(A,{__self:void 0,__source:{fileName:"/mnt/data/srv/dist/repositories/silverstripe-webpack/node_modules/.pnpm/@a2nt+meta-lightbox-react@3.1.3/node_modules/@a2nt/meta-lightbox-react/src/js/app.js",lineNumber:15}}),document.getElementById("MetaLightboxApp")),initMetaWindowLinks=()=>{const e=t;console.log("MetaWindow: [links] init"),document.querySelectorAll('[data-toggle="lightbox"],[data-gallery="${gallery}"]').forEach((t=>{const n=t.getAttribute("data-gallery");n&&(e.state.collections[n]=[],document.querySelectorAll(`[data-toggle="lightbox"][data-gallery="${n}"]`).forEach((t=>{e.state.collections[n].push(t)}))),t.addEventListener("click",(t=>{t.preventDefault(),console.log("MetaWindow: [link] click");const n=t.currentTarget,r=n.getAttribute("href")||n.getAttribute("data-href"),i=n.getAttribute("data-embed");e.state.current=n,i?e.embed(r):e.load(r)}))}))};e.addEventListener(`${h}`,initMetaWindowLinks),e.addEventListener(`${i}`,initMetaWindowLinks),e.addEventListener("MetaWindow.initLinks",initMetaWindowLinks)})(window);var D={APOLLO_ERROR:"apollo-error",AJAX:"ajax-load",AJAXMAIN:"ajax-main-load",MAININIT:"main-init",TABHIDDEN:"tab-hidden",TABFOCUSED:"tab-focused",OFFLINE:"offline",ONLINE:"online",BACKONLINE:"back-online",TOUCHENABLE:"touch-enabled",TOUCHDISABLED:"touch-disabled",LOADED:"load",SWIPELEFT:"swipeleft panleft",SWIPERIGHT:"swiperight panright",ALLERTAPPEARED:"alert-appeared",ALERTREMOVED:"alert-removed",LODEDANDREADY:"load-ready",LAZYIMAGEREADY:"image-lazy-bg-loaded",LAZYIMAGESREADY:"images-lazy-loaded",MAPLOADED:"map-loaded",MAPAPILOADED:"map-api-loaded",MAPMARKERCLICK:"map-marker-click",MAPPOPUPCLOSE:"map-popup-close",SCROLL:"scroll",RESIZE:"resize",CAROUSEL_READY:"bs.carousel.ready",SET_TARGET_UPDATE:"set-target-update",RESTORE_FIELD:"restore-field",FORM_INIT_BASICS:"form-basics",FORM_INIT_STEPPED:"form-init-stepped",FORM_INIT_VALIDATE:"form-init-validate",FORM_INIT_VALIDATE_FIELD:"form-init-validate-field",FORM_INIT_STORAGE:"form-init-storage",FORM_VALIDATION_FAILED:"form-validation-failed",FORM_STEPPED_NEW_STEP:"form-new-step",FORM_STEPPED_FIRST_STEP:"form-first-step",FORM_STEPPED_LAST_STEP:"form-last-step",FORM_FIELDS:"input,textarea,select"};var L,N={ENVS:["xs","sm","md","lg","xl","xxl","xxxl"]},I=n(8468),__spreadArrays=function(){for(var e=0,t=0,n=arguments.length;t0&&i[i.length-1])&&(6===h[0]||2===h[0])){d=0;continue}if(3===h[0]&&(!i||h[1]>i[0]&&h[1]0&&i[i.length-1])&&(6===h[0]||2===h[0])){d=0;continue}if(3===h[0]&&(!i||h[1]>i[0]&&h[1]this.maxSize&&!this.paused?[4,this.purge()]:[3,2];case 1:return n.sent(),this.paused=!0,[2];case 2:return this.paused?[2]:[4,this.storage.write(e)];case 3:return n.sent(),this.log.info("string"===typeof e?"Persisted cache of size "+e.length+" characters":"Persisted cache"),[3,5];case 4:throw t=n.sent(),this.log.error("Error persisting cache",t),t;case 5:return[2]}}))}))},Persistor.prototype.restore=function(){return Persistor_awaiter(this,void 0,void 0,(function(){var e,t;return Persistor_generator(this,(function(n){switch(n.label){case 0:return n.trys.push([0,5,,6]),[4,this.storage.read()];case 1:return null==(e=n.sent())?[3,3]:[4,this.cache.restore(e)];case 2:return n.sent(),this.log.info("string"===typeof e?"Restored cache of size "+e.length+" characters":"Restored cache"),[3,4];case 3:this.log.info("No stored cache to restore"),n.label=4;case 4:return[3,6];case 5:throw t=n.sent(),this.log.error("Error restoring cache",t),t;case 6:return[2]}}))}))},Persistor.prototype.purge=function(){return Persistor_awaiter(this,void 0,void 0,(function(){var e;return Persistor_generator(this,(function(t){switch(t.label){case 0:return t.trys.push([0,2,,3]),[4,this.storage.purge()];case 1:return t.sent(),this.log.info("Purged cache storage"),[3,3];case 2:throw e=t.sent(),this.log.error("Error purging cache storage",e),e;case 3:return[2]}}))}))},Persistor}(),onCacheWrite=function(e){var t=e.cache;return function(e){var n=t.write,r=t.evict,i=t.modify;return t.write=function(){for(var r=[],i=0;i(e.setContext({headers:{apikey:"LgPaRkVPYa8IY7x3AjbLC8wx6oPPSlO01yPflFXecvQ"}}),t(e))));console.info(`%cAPI: ${Z}`,"color:green;font-size:10px");const te=(0,z.from)([ee,new z.ApolloLink(((e,t)=>(e.setContext({start:new Date}),t(e)))),onError((({operation:e,response:t,graphQLErrors:n,networkError:r,forward:i})=>{if("IgnoreErrorsQuery"===e.operationName)return console.error("_appolo: IgnoreErrorsQuery"),void(t.errors=null);n&&n.forEach((({message:e,locations:t,path:n})=>console.error(`_appolo: [GraphQL error]: Message: ${e}, Location: ${t}, Path: ${n}`))),r&&console.error(`_appolo: [Network error] ${r.statusCode}`),console.error("_appolo: [APOLLO_ERROR]"),window.dispatchEvent(new Event(D.APOLLO_ERROR))})),new z.ApolloLink(((e,t)=>t(e).map((t=>{const n=new Date-e.getContext().start;return console.log(`_appolo: operation ${e.operationName} took ${n} ms to complete`),window.dispatchEvent(new Event(D.ONLINE)),t})))),new I.HttpLink({uri:Z,fetch:(...e)=>fetch(...e),credentials:"same-origin",connectToDevTools:!1})]),ne=new I.fe({cache:H,link:te}),re="/mnt/data/srv/dist/repositories/silverstripe-webpack/node_modules/.pnpm/@a2nt+ss-bootstrap-ui-webpack-boilerplate-react@3.2.1/node_modules/@a2nt/ss-bootstrap-ui-webpack-boilerplate-react/src/js/_components/_page.jsx",ie=document,oe=document.body;class Page extends d.Component{__init(){this.state={type:[],shown:!1,Title:"Loading ...",loading:!0,error:!1,current:null,ID:null,URLSegment:null,ClassName:"Page",CSSClass:null,Summary:null,Link:null,URL:null,HTML:null,Elements:[],page:null}}componentDidUpdate(){const e=this;e.state.Title&&(document.title=e.state.Title)}constructor(e){super(e),Page.prototype.__init.call(this),Page.prototype.__init2.call(this),Page.prototype.__init3.call(this),Page.prototype.__init4.call(this),Page.prototype.__init5.call(this);const t=this;t.name=t.constructor.name,t.empty_state=t.state,console.log(`${t.name}: init`)}__init2(){this.isOnline=()=>oe.classList.contains("is-online")}__init3(){this.load=e=>{const t=this;return new Promise(((n,r)=>{const i=(0,I.Ps)(`query Pages {\n\t\t\t readPages(Link: "${e}") {\n\t\t\t edges {\n\t\t\t node {\n\t\t\t __typename\n\t\t\t _id\n\t\t\t ID\n\t\t\t Title\n\t\t\t ClassName\n\t\t\t CSSClass\n\t\t\t Summary\n\t\t\t Link\n\t\t\t URLSegment\n\t\t\t HTML\n\t\t\t }\n\t\t\t }\n\t\t\t }\n\t\t\t}`);if(t.isOnline())t.state.loading||t.setState(t.empty_state),ne.query({query:i,fetchPolicy:t.isOnline()?"no-cache":"cache-first"}).then((e=>{const h=e.data;ne.writeQuery({query:i,data:h}),t.processResponse(h)?(console.log(`${t.name}: got the server response`),n(h)):(console.log(`${t.name}: not found`),r({status:404}))})).catch((e=>{r({status:500,error:e})}));else{const e=ne.readQuery({query:i});e&&t.processResponse(e)?(console.log(`${t.name}: Offline cached response`),n(e)):(console.log(`${t.name}: No offline response`),t.setState(Object.assign(t.empty_state,{Title:"Offline",CSSClass:"graphql__status-523",Summary:"You're Offline. The page is not available now.",loading:!1})),r({status:523}))}}))}}__init4(){this.processResponse=e=>{const t=this;if(!e.readPages.edges.length)return console.log(`${t.name}: not found`),t.setState(Object.assign(t.empty_state,{Title:"Not Found",CSSClass:"graphql__status-404",Summary:"The page is not found.",loading:!1})),!1;const n=e.readPages.edges[0].node;return t.setState({ID:n.ID,Title:n.Title,ClassName:n.ClassName,URLSegment:n.URLSegment,CSSClass:n.CSSClass,Summary:n.Summary,Link:n.Link,HTML:n.HTML,Elements:[],loading:!1}),!0}}__init5(){this.getHtml=e=>{return{__html:(t=e,(new DOMParser).parseFromString(t,"text/html").documentElement.textContent)};var t}}render(){const e=this,t=(e.name,`elemental-area graphql__page page-${e.state.CSSClass} url-${e.state.URLSegment}`);let n="";if(e.state.HTML?(console.log(`${e.name}: HTML only`),n=e.state.HTML):e.state.Elements.length?(console.log(`${e.name}: render`),e.state.Elements.map((e=>{n+=e.node.Render}))):e.state.Summary&&e.state.Summary.length&&(console.log(`${e.name}: summary only`),n=`
${e.state.Summary}
`),e.state.loading){ie.getElementById("PageLoading");n='
Loading ...
'}return React.createElement("div",{className:t,dangerouslySetInnerHTML:e.getHtml(n),__self:this,__source:{fileName:re,lineNumber:202}})}}var se=Page;(e=>{const t="_main.visibility",n=document,r=n.body;n.addEventListener("visibilitychange",(()=>{"hidden"===n.visibilityState?(console.log(`${t}: Tab: hidden`),r.classList.add("is-hidden"),r.classList.remove("is-focused"),e.dispatchEvent(new Event(D.TABHIDDEN))):(console.log(`${t}: Tab: focused`),r.classList.add("is-focused"),r.classList.remove("is-hidden"),e.dispatchEvent(new Event(D.TABFOCUSED)))}))})(window),(e=>{const t="_main.touch",n=document,r=n.body;let i,h;const SET_TOUCH_SCREEN=(n,d)=>{h||d===i||(n?(console.log(`${t}: Touch screen enabled`),r.classList.add("is-touch"),r.classList.remove("is-mouse"),e.dispatchEvent(new Event(D.TOUCHENABLE))):(console.log(`${t}: Touch screen disabled`),r.classList.add("is-mouse"),r.classList.remove("is-touch"),e.dispatchEvent(new Event(D.TOUCHDISABLED))),i=d,h||(h=setTimeout((()=>{clearTimeout(h),h=null}),500)))};SET_TOUCH_SCREEN("ontouchstart"in e||navigator.MaxTouchPoints>0||navigator.msMaxTouchPoints>0||e.matchMedia("(hover: none)").matches,"init"),n.addEventListener("touchend",(e=>{let t=!1;"click"!==e.type&&(t=!0),SET_TOUCH_SCREEN(t,"click-touchend")})),n.addEventListener("click",(e=>{let t=!1;"click"!==e.type&&(t=!0),SET_TOUCH_SCREEN(t,"click-touchend")}))})(window);const ae=n(6971);(e=>{const t="_main.online",n=document,r=n.body;let i;const h=n.querySelector('meta[name="ping"]');let d=!1;const UPDATE_ONLINE_STATUS=n=>{d||(d=!0,n?(r.classList.contains("is-offline")?(console.log(`${t}: back Online`),e.dispatchEvent(new Event(D.BACKONLINE))):(console.log(`${t}: Online`),e.dispatchEvent(new Event(D.ONLINE))),r.classList.add("is-online"),r.classList.remove("is-offline"),h&&!i&&(console.log(`${t}: SESSION_PING is active`),i=setInterval(SESSION_PING,3e5))):(console.log(`${t}: Offline`),r.classList.add("is-offline"),r.classList.remove("is-online"),clearInterval(i),i=null,e.dispatchEvent(new Event(D.OFFLINE))),d=!1)};let g=!1;const SESSION_PING=()=>{if(g||r.classList.contains("is-offline"))return;const e=h.getAttribute("content");console.log(`${t}: session ping`),g=!0,ae.post(e,{}).then((e=>{g=!1,UPDATE_ONLINE_STATUS(!0)})).catch((e=>{console.error(e),console.warn(`${t}: SESSION_PING failed`),g=!1,UPDATE_ONLINE_STATUS(!1)}))},navigatorStateUpdate=()=>{"undefined"!==typeof navigator.onLine&&(navigator.onLine?UPDATE_ONLINE_STATUS(!0):UPDATE_ONLINE_STATUS(!1))};e.addEventListener(`${D.OFFLINE}`,(()=>{UPDATE_ONLINE_STATUS(!1)})),e.addEventListener(`${D.ONLINE}`,(()=>{UPDATE_ONLINE_STATUS(!0)})),e.addEventListener(`${D.LOADED}`,navigatorStateUpdate),e.addEventListener(`${D.AJAX}`,navigatorStateUpdate)})(window),(e=>{const t=document,n=t.body,detectCSSScreenSize=()=>{const r=t.createElement("div");r.className="env-test",n.appendChild(r);const i=[...N.ENVS].reverse();let h=i.shift();n.classList.remove(...i);for(let t=0;te.innerHeight?(n.classList.add("landscape"),n.classList.remove("portrait")):(d=!1,n.classList.add("portrait"),n.classList.remove("landscape")),console.log(`_main.css-screen-size: screen size detected ${h} | landscape ${d}`),n.removeChild(r),h};e.addEventListener(`${D.LOADED}`,detectCSSScreenSize),e.addEventListener(`${D.RESIZE}`,detectCSSScreenSize)})(window);var ce=n(9900),le="top",ue="bottom",pe="right",he="left",de="auto",fe=[le,ue,pe,he],me="start",ge="end",ye="clippingParents",ve="viewport",be="popper",_e="reference",we=fe.reduce((function(e,t){return e.concat([t+"-"+me,t+"-"+ge])}),[]),Ee=[].concat(fe,[de]).reduce((function(e,t){return e.concat([t,t+"-"+me,t+"-"+ge])}),[]),Se="beforeRead",ke="read",Oe="afterRead",Ce="beforeMain",Te="main",xe="afterMain",Ae="beforeWrite",De="write",Le="afterWrite",Ne=[Se,ke,Oe,Ce,Te,xe,Ae,De,Le];function getNodeName(e){return e?(e.nodeName||"").toLowerCase():null}function getWindow(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function isElement(e){return e instanceof getWindow(e).Element||e instanceof Element}function isHTMLElement(e){return e instanceof getWindow(e).HTMLElement||e instanceof HTMLElement}function isShadowRoot(e){return"undefined"!==typeof ShadowRoot&&(e instanceof getWindow(e).ShadowRoot||e instanceof ShadowRoot)}var Ie={name:"applyStyles",enabled:!0,phase:"write",fn:function applyStyles(e){var t=e.state;Object.keys(t.elements).forEach((function(e){var n=t.styles[e]||{},r=t.attributes[e]||{},i=t.elements[e];isHTMLElement(i)&&getNodeName(i)&&(Object.assign(i.style,n),Object.keys(r).forEach((function(e){var t=r[e];!1===t?i.removeAttribute(e):i.setAttribute(e,!0===t?"":t)})))}))},effect:function effect(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach((function(e){var r=t.elements[e],i=t.attributes[e]||{},h=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce((function(e,t){return e[t]="",e}),{});isHTMLElement(r)&&getNodeName(r)&&(Object.assign(r.style,h),Object.keys(i).forEach((function(e){r.removeAttribute(e)})))}))}},requires:["computeStyles"]};function getBasePlacement(e){return e.split("-")[0]}function getBoundingClientRect(e){var t=e.getBoundingClientRect();return{width:t.width,height:t.height,top:t.top,right:t.right,bottom:t.bottom,left:t.left,x:t.left,y:t.top}}function getLayoutRect(e){var t=getBoundingClientRect(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function contains(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&isShadowRoot(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function getComputedStyle_getComputedStyle(e){return getWindow(e).getComputedStyle(e)}function isTableElement(e){return["table","td","th"].indexOf(getNodeName(e))>=0}function getDocumentElement(e){return((isElement(e)?e.ownerDocument:e.document)||window.document).documentElement}function getParentNode(e){return"html"===getNodeName(e)?e:e.assignedSlot||e.parentNode||(isShadowRoot(e)?e.host:null)||getDocumentElement(e)}function getTrueOffsetParent(e){return isHTMLElement(e)&&"fixed"!==getComputedStyle_getComputedStyle(e).position?e.offsetParent:null}function getOffsetParent(e){for(var t=getWindow(e),n=getTrueOffsetParent(e);n&&isTableElement(n)&&"static"===getComputedStyle_getComputedStyle(n).position;)n=getTrueOffsetParent(n);return n&&("html"===getNodeName(n)||"body"===getNodeName(n)&&"static"===getComputedStyle_getComputedStyle(n).position)?t:n||function getContainingBlock(e){var t=-1!==navigator.userAgent.toLowerCase().indexOf("firefox");if(-1!==navigator.userAgent.indexOf("Trident")&&isHTMLElement(e)&&"fixed"===getComputedStyle_getComputedStyle(e).position)return null;for(var n=getParentNode(e);isHTMLElement(n)&&["html","body"].indexOf(getNodeName(n))<0;){var r=getComputedStyle_getComputedStyle(n);if("none"!==r.transform||"none"!==r.perspective||"paint"===r.contain||-1!==["transform","perspective"].indexOf(r.willChange)||t&&"filter"===r.willChange||t&&r.filter&&"none"!==r.filter)return n;n=n.parentNode}return null}(e)||t}function getMainAxisFromPlacement(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}var Re=Math.max,Me=Math.min,Pe=Math.round;function within(e,t,n){return Re(e,Me(t,n))}function mergePaddingObject(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function expandToHashMap(e,t){return t.reduce((function(t,n){return t[n]=e,t}),{})}var je={name:"arrow",enabled:!0,phase:"main",fn:function arrow(e){var t,n=e.state,r=e.name,i=e.options,h=n.elements.arrow,d=n.modifiersData.popperOffsets,g=getBasePlacement(n.placement),y=getMainAxisFromPlacement(g),v=[he,pe].indexOf(g)>=0?"height":"width";if(h&&d){var b=function toPaddingObject(e,t){return mergePaddingObject("number"!==typeof(e="function"===typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:expandToHashMap(e,fe))}(i.padding,n),_=getLayoutRect(h),w="y"===y?le:he,E="y"===y?ue:pe,S=n.rects.reference[v]+n.rects.reference[y]-d[y]-n.rects.popper[v],k=d[y]-n.rects.reference[y],O=getOffsetParent(h),C=O?"y"===y?O.clientHeight||0:O.clientWidth||0:0,T=S/2-k/2,x=b[w],A=C-_[v]-b[E],D=C/2-_[v]/2+T,L=within(x,D,A),N=y;n.modifiersData[r]=((t={})[N]=L,t.centerOffset=L-D,t)}},effect:function arrow_effect(e){var t=e.state,n=e.options.element,r=void 0===n?"[data-popper-arrow]":n;null!=r&&("string"!==typeof r||(r=t.elements.popper.querySelector(r)))&&contains(t.elements.popper,r)&&(t.elements.arrow=r)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]},Fe={top:"auto",right:"auto",bottom:"auto",left:"auto"};function mapToStyles(e){var t,n=e.popper,r=e.popperRect,i=e.placement,h=e.offsets,d=e.position,g=e.gpuAcceleration,y=e.adaptive,v=e.roundOffsets,b=!0===v?function roundOffsetsByDPR(e){var t=e.x,n=e.y,r=window.devicePixelRatio||1;return{x:Pe(Pe(t*r)/r)||0,y:Pe(Pe(n*r)/r)||0}}(h):"function"===typeof v?v(h):h,_=b.x,w=void 0===_?0:_,E=b.y,S=void 0===E?0:E,k=h.hasOwnProperty("x"),O=h.hasOwnProperty("y"),C=he,T=le,x=window;if(y){var A=getOffsetParent(n),D="clientHeight",L="clientWidth";A===getWindow(n)&&"static"!==getComputedStyle_getComputedStyle(A=getDocumentElement(n)).position&&(D="scrollHeight",L="scrollWidth"),A=A,i===le&&(T=ue,S-=A[D]-r.height,S*=g?1:-1),i===he&&(C=pe,w-=A[L]-r.width,w*=g?1:-1)}var N,I=Object.assign({position:d},y&&Fe);return g?Object.assign({},I,((N={})[T]=O?"0":"",N[C]=k?"0":"",N.transform=(x.devicePixelRatio||1)<2?"translate("+w+"px, "+S+"px)":"translate3d("+w+"px, "+S+"px, 0)",N)):Object.assign({},I,((t={})[T]=O?S+"px":"",t[C]=k?w+"px":"",t.transform="",t))}var Qe={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function computeStyles(e){var t=e.state,n=e.options,r=n.gpuAcceleration,i=void 0===r||r,h=n.adaptive,d=void 0===h||h,g=n.roundOffsets,y=void 0===g||g,v={placement:getBasePlacement(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:i};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,mapToStyles(Object.assign({},v,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:d,roundOffsets:y})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,mapToStyles(Object.assign({},v,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:y})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},qe={passive:!0};var Be={name:"eventListeners",enabled:!0,phase:"write",fn:function fn(){},effect:function eventListeners_effect(e){var t=e.state,n=e.instance,r=e.options,i=r.scroll,h=void 0===i||i,d=r.resize,g=void 0===d||d,y=getWindow(t.elements.popper),v=[].concat(t.scrollParents.reference,t.scrollParents.popper);return h&&v.forEach((function(e){e.addEventListener("scroll",n.update,qe)})),g&&y.addEventListener("resize",n.update,qe),function(){h&&v.forEach((function(e){e.removeEventListener("scroll",n.update,qe)})),g&&y.removeEventListener("resize",n.update,qe)}},data:{}},Ke={left:"right",right:"left",bottom:"top",top:"bottom"};function getOppositePlacement(e){return e.replace(/left|right|bottom|top/g,(function(e){return Ke[e]}))}var Ue={start:"end",end:"start"};function getOppositeVariationPlacement(e){return e.replace(/start|end/g,(function(e){return Ue[e]}))}function getWindowScroll(e){var t=getWindow(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function getWindowScrollBarX(e){return getBoundingClientRect(getDocumentElement(e)).left+getWindowScroll(e).scrollLeft}function isScrollParent(e){var t=getComputedStyle_getComputedStyle(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}function getScrollParent(e){return["html","body","#document"].indexOf(getNodeName(e))>=0?e.ownerDocument.body:isHTMLElement(e)&&isScrollParent(e)?e:getScrollParent(getParentNode(e))}function listScrollParents(e,t){var n;void 0===t&&(t=[]);var r=getScrollParent(e),i=r===(null==(n=e.ownerDocument)?void 0:n.body),h=getWindow(r),d=i?[h].concat(h.visualViewport||[],isScrollParent(r)?r:[]):r,g=t.concat(d);return i?g:g.concat(listScrollParents(getParentNode(d)))}function rectToClientRect(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function getClientRectFromMixedType(e,t){return t===ve?rectToClientRect(function getViewportRect(e){var t=getWindow(e),n=getDocumentElement(e),r=t.visualViewport,i=n.clientWidth,h=n.clientHeight,d=0,g=0;return r&&(i=r.width,h=r.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(d=r.offsetLeft,g=r.offsetTop)),{width:i,height:h,x:d+getWindowScrollBarX(e),y:g}}(e)):isHTMLElement(t)?function getInnerBoundingClientRect(e){var t=getBoundingClientRect(e);return t.top=t.top+e.clientTop,t.left=t.left+e.clientLeft,t.bottom=t.top+e.clientHeight,t.right=t.left+e.clientWidth,t.width=e.clientWidth,t.height=e.clientHeight,t.x=t.left,t.y=t.top,t}(t):rectToClientRect(function getDocumentRect(e){var t,n=getDocumentElement(e),r=getWindowScroll(e),i=null==(t=e.ownerDocument)?void 0:t.body,h=Re(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),d=Re(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),g=-r.scrollLeft+getWindowScrollBarX(e),y=-r.scrollTop;return"rtl"===getComputedStyle_getComputedStyle(i||n).direction&&(g+=Re(n.clientWidth,i?i.clientWidth:0)-h),{width:h,height:d,x:g,y:y}}(getDocumentElement(e)))}function getClippingRect(e,t,n){var r="clippingParents"===t?function getClippingParents(e){var t=listScrollParents(getParentNode(e)),n=["absolute","fixed"].indexOf(getComputedStyle_getComputedStyle(e).position)>=0&&isHTMLElement(e)?getOffsetParent(e):e;return isElement(n)?t.filter((function(e){return isElement(e)&&contains(e,n)&&"body"!==getNodeName(e)})):[]}(e):[].concat(t),i=[].concat(r,[n]),h=i[0],d=i.reduce((function(t,n){var r=getClientRectFromMixedType(e,n);return t.top=Re(r.top,t.top),t.right=Me(r.right,t.right),t.bottom=Me(r.bottom,t.bottom),t.left=Re(r.left,t.left),t}),getClientRectFromMixedType(e,h));return d.width=d.right-d.left,d.height=d.bottom-d.top,d.x=d.left,d.y=d.top,d}function getVariation(e){return e.split("-")[1]}function computeOffsets(e){var t,n=e.reference,r=e.element,i=e.placement,h=i?getBasePlacement(i):null,d=i?getVariation(i):null,g=n.x+n.width/2-r.width/2,y=n.y+n.height/2-r.height/2;switch(h){case le:t={x:g,y:n.y-r.height};break;case ue:t={x:g,y:n.y+n.height};break;case pe:t={x:n.x+n.width,y:y};break;case he:t={x:n.x-r.width,y:y};break;default:t={x:n.x,y:n.y}}var v=h?getMainAxisFromPlacement(h):null;if(null!=v){var b="y"===v?"height":"width";switch(d){case me:t[v]=t[v]-(n[b]/2-r[b]/2);break;case ge:t[v]=t[v]+(n[b]/2-r[b]/2)}}return t}function detectOverflow(e,t){void 0===t&&(t={});var n=t,r=n.placement,i=void 0===r?e.placement:r,h=n.boundary,d=void 0===h?ye:h,g=n.rootBoundary,y=void 0===g?ve:g,v=n.elementContext,b=void 0===v?be:v,_=n.altBoundary,w=void 0!==_&&_,E=n.padding,S=void 0===E?0:E,k=mergePaddingObject("number"!==typeof S?S:expandToHashMap(S,fe)),O=b===be?_e:be,C=e.elements.reference,T=e.rects.popper,x=e.elements[w?O:b],A=getClippingRect(isElement(x)?x:x.contextElement||getDocumentElement(e.elements.popper),d,y),D=getBoundingClientRect(C),L=computeOffsets({reference:D,element:T,strategy:"absolute",placement:i}),N=rectToClientRect(Object.assign({},T,L)),I=b===be?N:D,R={top:A.top-I.top+k.top,bottom:I.bottom-A.bottom+k.bottom,left:A.left-I.left+k.left,right:I.right-A.right+k.right},M=e.modifiersData.offset;if(b===be&&M){var P=M[i];Object.keys(R).forEach((function(e){var t=[pe,ue].indexOf(e)>=0?1:-1,n=[le,ue].indexOf(e)>=0?"y":"x";R[e]+=P[n]*t}))}return R}var Ve={name:"flip",enabled:!0,phase:"main",fn:function flip(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var i=n.mainAxis,h=void 0===i||i,d=n.altAxis,g=void 0===d||d,y=n.fallbackPlacements,v=n.padding,b=n.boundary,_=n.rootBoundary,w=n.altBoundary,E=n.flipVariations,S=void 0===E||E,k=n.allowedAutoPlacements,O=t.options.placement,C=getBasePlacement(O),T=y||(C===O||!S?[getOppositePlacement(O)]:function getExpandedFallbackPlacements(e){if(getBasePlacement(e)===de)return[];var t=getOppositePlacement(e);return[getOppositeVariationPlacement(e),t,getOppositeVariationPlacement(t)]}(O)),x=[O].concat(T).reduce((function(e,n){return e.concat(getBasePlacement(n)===de?function computeAutoPlacement(e,t){void 0===t&&(t={});var n=t,r=n.placement,i=n.boundary,h=n.rootBoundary,d=n.padding,g=n.flipVariations,y=n.allowedAutoPlacements,v=void 0===y?Ee:y,b=getVariation(r),_=b?g?we:we.filter((function(e){return getVariation(e)===b})):fe,w=_.filter((function(e){return v.indexOf(e)>=0}));0===w.length&&(w=_);var E=w.reduce((function(t,n){return t[n]=detectOverflow(e,{placement:n,boundary:i,rootBoundary:h,padding:d})[getBasePlacement(n)],t}),{});return Object.keys(E).sort((function(e,t){return E[e]-E[t]}))}(t,{placement:n,boundary:b,rootBoundary:_,padding:v,flipVariations:S,allowedAutoPlacements:k}):n)}),[]),A=t.rects.reference,D=t.rects.popper,L=new Map,N=!0,I=x[0],R=0;R=0,Q=F?"width":"height",q=detectOverflow(t,{placement:M,boundary:b,rootBoundary:_,altBoundary:w,padding:v}),B=F?j?pe:he:j?ue:le;A[Q]>D[Q]&&(B=getOppositePlacement(B));var K=getOppositePlacement(B),U=[];if(h&&U.push(q[P]<=0),g&&U.push(q[B]<=0,q[K]<=0),U.every((function(e){return e}))){I=M,N=!1;break}L.set(M,U)}if(N)for(var V=function _loop(e){var t=x.find((function(t){var n=L.get(t);if(n)return n.slice(0,e).every((function(e){return e}))}));if(t)return I=t,"break"},H=S?3:1;H>0;H--){if("break"===V(H))break}t.placement!==I&&(t.modifiersData[r]._skip=!0,t.placement=I,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function getSideOffsets(e,t,n){return void 0===n&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function isAnySideFullyClipped(e){return[le,pe,ue,he].some((function(t){return e[t]>=0}))}var $e={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function hide(e){var t=e.state,n=e.name,r=t.rects.reference,i=t.rects.popper,h=t.modifiersData.preventOverflow,d=detectOverflow(t,{elementContext:"reference"}),g=detectOverflow(t,{altBoundary:!0}),y=getSideOffsets(d,r),v=getSideOffsets(g,i,h),b=isAnySideFullyClipped(y),_=isAnySideFullyClipped(v);t.modifiersData[n]={referenceClippingOffsets:y,popperEscapeOffsets:v,isReferenceHidden:b,hasPopperEscaped:_},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":b,"data-popper-escaped":_})}};var He={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function offset(e){var t=e.state,n=e.options,r=e.name,i=n.offset,h=void 0===i?[0,0]:i,d=Ee.reduce((function(e,n){return e[n]=function distanceAndSkiddingToXY(e,t,n){var r=getBasePlacement(e),i=[he,le].indexOf(r)>=0?-1:1,h="function"===typeof n?n(Object.assign({},t,{placement:e})):n,d=h[0],g=h[1];return d=d||0,g=(g||0)*i,[he,pe].indexOf(r)>=0?{x:g,y:d}:{x:d,y:g}}(n,t.rects,h),e}),{}),g=d[t.placement],y=g.x,v=g.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=y,t.modifiersData.popperOffsets.y+=v),t.modifiersData[r]=d}};var We={name:"popperOffsets",enabled:!0,phase:"read",fn:function popperOffsets(e){var t=e.state,n=e.name;t.modifiersData[n]=computeOffsets({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}};var ze={name:"preventOverflow",enabled:!0,phase:"main",fn:function preventOverflow(e){var t=e.state,n=e.options,r=e.name,i=n.mainAxis,h=void 0===i||i,d=n.altAxis,g=void 0!==d&&d,y=n.boundary,v=n.rootBoundary,b=n.altBoundary,_=n.padding,w=n.tether,E=void 0===w||w,S=n.tetherOffset,k=void 0===S?0:S,O=detectOverflow(t,{boundary:y,rootBoundary:v,padding:_,altBoundary:b}),C=getBasePlacement(t.placement),T=getVariation(t.placement),x=!T,A=getMainAxisFromPlacement(C),D=function getAltAxis(e){return"x"===e?"y":"x"}(A),L=t.modifiersData.popperOffsets,N=t.rects.reference,I=t.rects.popper,R="function"===typeof k?k(Object.assign({},t.rects,{placement:t.placement})):k,M={x:0,y:0};if(L){if(h||g){var P="y"===A?le:he,j="y"===A?ue:pe,F="y"===A?"height":"width",Q=L[A],q=L[A]+O[P],B=L[A]-O[j],K=E?-I[F]/2:0,U=T===me?N[F]:I[F],V=T===me?-I[F]:-N[F],H=t.elements.arrow,W=E&&H?getLayoutRect(H):{width:0,height:0},z=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},G=z[P],Y=z[j],J=within(0,N[F],W[F]),X=x?N[F]/2-K-J-G-R:U-J-G-R,Z=x?-N[F]/2+K+J+Y+R:V+J+Y+R,ee=t.elements.arrow&&getOffsetParent(t.elements.arrow),te=ee?"y"===A?ee.clientTop||0:ee.clientLeft||0:0,ne=t.modifiersData.offset?t.modifiersData.offset[t.placement][A]:0,re=L[A]+X-ne-te,ie=L[A]+Z-ne;if(h){var oe=within(E?Me(q,re):q,Q,E?Re(B,ie):B);L[A]=oe,M[A]=oe-Q}if(g){var se="x"===A?le:he,ae="x"===A?ue:pe,ce=L[D],de=ce+O[se],fe=ce-O[ae],ge=within(E?Me(de,re):de,ce,E?Re(fe,ie):fe);L[D]=ge,M[D]=ge-ce}}t.modifiersData[r]=M}},requiresIfExists:["offset"]};function getCompositeRect(e,t,n){void 0===n&&(n=!1);var r=getDocumentElement(t),i=getBoundingClientRect(e),h=isHTMLElement(t),d={scrollLeft:0,scrollTop:0},g={x:0,y:0};return(h||!h&&!n)&&(("body"!==getNodeName(t)||isScrollParent(r))&&(d=function getNodeScroll(e){return e!==getWindow(e)&&isHTMLElement(e)?function getHTMLElementScroll(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}(e):getWindowScroll(e)}(t)),isHTMLElement(t)?((g=getBoundingClientRect(t)).x+=t.clientLeft,g.y+=t.clientTop):r&&(g.x=getWindowScrollBarX(r))),{x:i.left+d.scrollLeft-g.x,y:i.top+d.scrollTop-g.y,width:i.width,height:i.height}}function order(e){var t=new Map,n=new Set,r=[];function sort(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach((function(e){if(!n.has(e)){var r=t.get(e);r&&sort(r)}})),r.push(e)}return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){n.has(e.name)||sort(e)})),r}var Ge={placement:"bottom",modifiers:[],strategy:"absolute"};function areValidElements(){for(var e=arguments.length,t=new Array(e),n=0;n{do{e+=Math.floor(1e6*Math.random())}while(document.getElementById(e));return e},getSelector=e=>{let t=e.getAttribute("data-bs-target");if(!t||"#"===t){let n=e.getAttribute("href");if(!n||!n.includes("#")&&!n.startsWith("."))return null;n.includes("#")&&!n.startsWith("#")&&(n="#"+n.split("#")[1]),t=n&&"#"!==n?n.trim():null}return t},getSelectorFromElement=e=>{const t=getSelector(e);return t&&document.querySelector(t)?t:null},getElementFromSelector=e=>{const t=getSelector(e);return t?document.querySelector(t):null},getTransitionDurationFromElement=e=>{if(!e)return 0;let{transitionDuration:t,transitionDelay:n}=window.getComputedStyle(e);const r=Number.parseFloat(t),i=Number.parseFloat(n);return r||i?(t=t.split(",")[0],n=n.split(",")[0],1e3*(Number.parseFloat(t)+Number.parseFloat(n))):0},triggerTransitionEnd=e=>{e.dispatchEvent(new Event(Ze))},bootstrap_esm_isElement=e=>(e[0]||e).nodeType,emulateTransitionEnd=(e,t)=>{let n=!1;const r=t+5;e.addEventListener(Ze,(function listener(){n=!0,e.removeEventListener(Ze,listener)})),setTimeout((()=>{n||triggerTransitionEnd(e)}),r)},typeCheckConfig=(e,t,n)=>{Object.keys(n).forEach((r=>{const i=n[r],h=t[r],d=h&&bootstrap_esm_isElement(h)?"element":null===(g=h)||void 0===g?`${g}`:{}.toString.call(g).match(/\s([a-z]+)/i)[1].toLowerCase();var g;if(!new RegExp(i).test(d))throw new TypeError(`${e.toUpperCase()}: Option "${r}" provided type "${d}" but expected type "${i}".`)}))},isVisible=e=>{if(!e)return!1;if(e.style&&e.parentNode&&e.parentNode.style){const t=getComputedStyle(e),n=getComputedStyle(e.parentNode);return"none"!==t.display&&"none"!==n.display&&"hidden"!==t.visibility}return!1},isDisabled=e=>!e||e.nodeType!==Node.ELEMENT_NODE||(!!e.classList.contains("disabled")||("undefined"!==typeof e.disabled?e.disabled:e.hasAttribute("disabled")&&"false"!==e.getAttribute("disabled"))),findShadowRoot=e=>{if(!document.documentElement.attachShadow)return null;if("function"===typeof e.getRootNode){const t=e.getRootNode();return t instanceof ShadowRoot?t:null}return e instanceof ShadowRoot?e:e.parentNode?findShadowRoot(e.parentNode):null},noop=()=>function(){},reflow=e=>e.offsetHeight,getjQuery=()=>{const{jQuery:jQuery}=window;return jQuery&&!document.body.hasAttribute("data-bs-no-jquery")?jQuery:null},isRTL=()=>"rtl"===document.documentElement.dir,defineJQueryPlugin=(e,t)=>{var n;n=()=>{const $=getjQuery();if($){const n=$.fn[e];$.fn[e]=t.jQueryInterface,$.fn[e].Constructor=t,$.fn[e].noConflict=()=>($.fn[e]=n,t.jQueryInterface)}},"loading"===document.readyState?document.addEventListener("DOMContentLoaded",n):n()},et=new Map;var tt={set(e,t,n){et.has(e)||et.set(e,new Map);const r=et.get(e);r.has(t)||0===r.size?r.set(t,n):console.error(`Bootstrap doesn't allow more than one instance per element. Bound instance: ${Array.from(r.keys())[0]}.`)},get:(e,t)=>et.has(e)&&et.get(e).get(t)||null,remove(e,t){if(!et.has(e))return;const n=et.get(e);n.delete(t),0===n.size&&et.delete(e)}};const nt=/[^.]*(?=\..*)\.|.*/,rt=/\..*/,it=/::\d+$/,ot={};let st=1;const at={mouseenter:"mouseover",mouseleave:"mouseout"},ct=new Set(["click","dblclick","mouseup","mousedown","contextmenu","mousewheel","DOMMouseScroll","mouseover","mouseout","mousemove","selectstart","selectend","keydown","keypress","keyup","orientationchange","touchstart","touchmove","touchend","touchcancel","pointerdown","pointermove","pointerup","pointerleave","pointercancel","gesturestart","gesturechange","gestureend","focus","blur","change","reset","select","submit","focusin","focusout","load","unload","beforeunload","resize","move","DOMContentLoaded","readystatechange","error","abort","scroll"]);function getUidEvent(e,t){return t&&`${t}::${st++}`||e.uidEvent||st++}function getEvent(e){const t=getUidEvent(e);return e.uidEvent=t,ot[t]=ot[t]||{},ot[t]}function findHandler(e,t,n=null){const r=Object.keys(e);for(let i=0,h=r.length;i{!function removeNamespacedHandlers(e,t,n,r){const i=t[n]||{};Object.keys(i).forEach((h=>{if(h.includes(r)){const r=i[h];removeHandler(e,t,n,r.originalHandler,r.delegationSelector)}}))}(e,y,n,t.slice(1))}));const b=y[d]||{};Object.keys(b).forEach((n=>{const r=n.replace(it,"");if(!g||t.includes(r)){const t=b[n];removeHandler(e,y,d,t.originalHandler,t.delegationSelector)}}))},trigger(e,t,n){if("string"!==typeof t||!e)return null;const $=getjQuery(),r=t.replace(rt,""),i=t!==r,h=ct.has(r);let d,g=!0,y=!0,v=!1,b=null;return i&&$&&(d=$.Event(t,n),$(e).trigger(d),g=!d.isPropagationStopped(),y=!d.isImmediatePropagationStopped(),v=d.isDefaultPrevented()),h?(b=document.createEvent("HTMLEvents"),b.initEvent(r,g,!0)):b=new CustomEvent(t,{bubbles:g,cancelable:!0}),"undefined"!==typeof n&&Object.keys(n).forEach((e=>{Object.defineProperty(b,e,{get:()=>n[e]})})),v&&b.preventDefault(),y&&e.dispatchEvent(b),b.defaultPrevented&&"undefined"!==typeof d&&d.preventDefault(),b}};class BaseComponent{constructor(e){(e="string"===typeof e?document.querySelector(e):e)&&(this._element=e,tt.set(this._element,this.constructor.DATA_KEY,this))}dispose(){tt.remove(this._element,this.constructor.DATA_KEY),this._element=null}static getInstance(e){return tt.get(e,this.DATA_KEY)}static get VERSION(){return"5.0.0-beta3"}}const ut="bs.alert";class Alert extends BaseComponent{static get DATA_KEY(){return ut}close(e){const t=e?this._getRootElement(e):this._element,n=this._triggerCloseEvent(t);null===n||n.defaultPrevented||this._removeElement(t)}_getRootElement(e){return getElementFromSelector(e)||e.closest(".alert")}_triggerCloseEvent(e){return lt.trigger(e,"close.bs.alert")}_removeElement(e){if(e.classList.remove("show"),!e.classList.contains("fade"))return void this._destroyElement(e);const t=getTransitionDurationFromElement(e);lt.one(e,"transitionend",(()=>this._destroyElement(e))),emulateTransitionEnd(e,t)}_destroyElement(e){e.parentNode&&e.parentNode.removeChild(e),lt.trigger(e,"closed.bs.alert")}static jQueryInterface(e){return this.each((function(){let t=tt.get(this,ut);t||(t=new Alert(this)),"close"===e&&t[e](this)}))}static handleDismiss(e){return function(t){t&&t.preventDefault(),e.close(this)}}}lt.on(document,"click.bs.alert.data-api",'[data-bs-dismiss="alert"]',Alert.handleDismiss(new Alert)),defineJQueryPlugin("alert",Alert);const pt="bs.button",ht='[data-bs-toggle="button"]';class Button extends BaseComponent{static get DATA_KEY(){return pt}toggle(){this._element.setAttribute("aria-pressed",this._element.classList.toggle("active"))}static jQueryInterface(e){return this.each((function(){let t=tt.get(this,pt);t||(t=new Button(this)),"toggle"===e&&t[e]()}))}}function normalizeData(e){return"true"===e||"false"!==e&&(e===Number(e).toString()?Number(e):""===e||"null"===e?null:e)}function normalizeDataKey(e){return e.replace(/[A-Z]/g,(e=>`-${e.toLowerCase()}`))}lt.on(document,"click.bs.button.data-api",ht,(e=>{e.preventDefault();const t=e.target.closest(ht);let n=tt.get(t,pt);n||(n=new Button(t)),n.toggle()})),defineJQueryPlugin("button",Button);const dt={setDataAttribute(e,t,n){e.setAttribute(`data-bs-${normalizeDataKey(t)}`,n)},removeDataAttribute(e,t){e.removeAttribute(`data-bs-${normalizeDataKey(t)}`)},getDataAttributes(e){if(!e)return{};const t={};return Object.keys(e.dataset).filter((e=>e.startsWith("bs"))).forEach((n=>{let r=n.replace(/^bs/,"");r=r.charAt(0).toLowerCase()+r.slice(1,r.length),t[r]=normalizeData(e.dataset[n])})),t},getDataAttribute:(e,t)=>normalizeData(e.getAttribute(`data-bs-${normalizeDataKey(t)}`)),offset(e){const t=e.getBoundingClientRect();return{top:t.top+document.body.scrollTop,left:t.left+document.body.scrollLeft}},position:e=>({top:e.offsetTop,left:e.offsetLeft})},ft={find:(e,t=document.documentElement)=>[].concat(...Element.prototype.querySelectorAll.call(t,e)),findOne:(e,t=document.documentElement)=>Element.prototype.querySelector.call(t,e),children:(e,t)=>[].concat(...e.children).filter((e=>e.matches(t))),parents(e,t){const n=[];let r=e.parentNode;for(;r&&r.nodeType===Node.ELEMENT_NODE&&3!==r.nodeType;)r.matches(t)&&n.push(r),r=r.parentNode;return n},prev(e,t){let n=e.previousElementSibling;for(;n;){if(n.matches(t))return[n];n=n.previousElementSibling}return[]},next(e,t){let n=e.nextElementSibling;for(;n;){if(n.matches(t))return[n];n=n.nextElementSibling}return[]}},mt="carousel",gt="bs.carousel",yt=".bs.carousel",vt={interval:5e3,keyboard:!0,slide:!1,pause:"hover",wrap:!0,touch:!0},bt={interval:"(number|boolean)",keyboard:"boolean",slide:"(boolean|string)",pause:"(string|boolean)",wrap:"boolean",touch:"boolean"},_t="next",wt="prev",Et="left",St="right",kt="slid.bs.carousel",Ot="active",Ct=".active.carousel-item",Tt="touch";class Carousel extends BaseComponent{constructor(e,t){super(e),this._items=null,this._interval=null,this._activeElement=null,this._isPaused=!1,this._isSliding=!1,this.touchTimeout=null,this.touchStartX=0,this.touchDeltaX=0,this._config=this._getConfig(t),this._indicatorsElement=ft.findOne(".carousel-indicators",this._element),this._touchSupported="ontouchstart"in document.documentElement||navigator.maxTouchPoints>0,this._pointerEvent=Boolean(window.PointerEvent),this._addEventListeners()}static get Default(){return vt}static get DATA_KEY(){return gt}next(){this._isSliding||this._slide(_t)}nextWhenVisible(){!document.hidden&&isVisible(this._element)&&this.next()}prev(){this._isSliding||this._slide(wt)}pause(e){e||(this._isPaused=!0),ft.findOne(".carousel-item-next, .carousel-item-prev",this._element)&&(triggerTransitionEnd(this._element),this.cycle(!0)),clearInterval(this._interval),this._interval=null}cycle(e){e||(this._isPaused=!1),this._interval&&(clearInterval(this._interval),this._interval=null),this._config&&this._config.interval&&!this._isPaused&&(this._updateInterval(),this._interval=setInterval((document.visibilityState?this.nextWhenVisible:this.next).bind(this),this._config.interval))}to(e){this._activeElement=ft.findOne(Ct,this._element);const t=this._getItemIndex(this._activeElement);if(e>this._items.length-1||e<0)return;if(this._isSliding)return void lt.one(this._element,kt,(()=>this.to(e)));if(t===e)return this.pause(),void this.cycle();const n=e>t?_t:wt;this._slide(n,this._items[e])}dispose(){lt.off(this._element,yt),this._items=null,this._config=null,this._interval=null,this._isPaused=null,this._isSliding=null,this._activeElement=null,this._indicatorsElement=null,super.dispose()}_getConfig(e){return e={...vt,...e},typeCheckConfig(mt,e,bt),e}_handleSwipe(){const e=Math.abs(this.touchDeltaX);if(e<=40)return;const t=e/this.touchDeltaX;this.touchDeltaX=0,t&&this._slide(t>0?St:Et)}_addEventListeners(){this._config.keyboard&<.on(this._element,"keydown.bs.carousel",(e=>this._keydown(e))),"hover"===this._config.pause&&(lt.on(this._element,"mouseenter.bs.carousel",(e=>this.pause(e))),lt.on(this._element,"mouseleave.bs.carousel",(e=>this.cycle(e)))),this._config.touch&&this._touchSupported&&this._addTouchEventListeners()}_addTouchEventListeners(){const start=e=>{!this._pointerEvent||"pen"!==e.pointerType&&e.pointerType!==Tt?this._pointerEvent||(this.touchStartX=e.touches[0].clientX):this.touchStartX=e.clientX},move=e=>{this.touchDeltaX=e.touches&&e.touches.length>1?0:e.touches[0].clientX-this.touchStartX},end=e=>{!this._pointerEvent||"pen"!==e.pointerType&&e.pointerType!==Tt||(this.touchDeltaX=e.clientX-this.touchStartX),this._handleSwipe(),"hover"===this._config.pause&&(this.pause(),this.touchTimeout&&clearTimeout(this.touchTimeout),this.touchTimeout=setTimeout((e=>this.cycle(e)),500+this._config.interval))};ft.find(".carousel-item img",this._element).forEach((e=>{lt.on(e,"dragstart.bs.carousel",(e=>e.preventDefault()))})),this._pointerEvent?(lt.on(this._element,"pointerdown.bs.carousel",(e=>start(e))),lt.on(this._element,"pointerup.bs.carousel",(e=>end(e))),this._element.classList.add("pointer-event")):(lt.on(this._element,"touchstart.bs.carousel",(e=>start(e))),lt.on(this._element,"touchmove.bs.carousel",(e=>move(e))),lt.on(this._element,"touchend.bs.carousel",(e=>end(e))))}_keydown(e){/input|textarea/i.test(e.target.tagName)||("ArrowLeft"===e.key?(e.preventDefault(),this._slide(Et)):"ArrowRight"===e.key&&(e.preventDefault(),this._slide(St)))}_getItemIndex(e){return this._items=e&&e.parentNode?ft.find(".carousel-item",e.parentNode):[],this._items.indexOf(e)}_getItemByOrder(e,t){const n=e===_t,r=e===wt,i=this._getItemIndex(t),h=this._items.length-1;if((r&&0===i||n&&i===h)&&!this._config.wrap)return t;const d=(i+(r?-1:1))%this._items.length;return-1===d?this._items[this._items.length-1]:this._items[d]}_triggerSlideEvent(e,t){const n=this._getItemIndex(e),r=this._getItemIndex(ft.findOne(Ct,this._element));return lt.trigger(this._element,"slide.bs.carousel",{relatedTarget:e,direction:t,from:r,to:n})}_setActiveIndicatorElement(e){if(this._indicatorsElement){const t=ft.findOne(".active",this._indicatorsElement);t.classList.remove(Ot),t.removeAttribute("aria-current");const n=ft.find("[data-bs-target]",this._indicatorsElement);for(let r=0;r{h.classList.remove(v,b),h.classList.add(Ot),r.classList.remove(Ot,b,v),this._isSliding=!1,setTimeout((()=>{lt.trigger(this._element,kt,{relatedTarget:h,direction:_,from:i,to:d})}),0)})),emulateTransitionEnd(r,e)}else r.classList.remove(Ot),h.classList.add(Ot),this._isSliding=!1,lt.trigger(this._element,kt,{relatedTarget:h,direction:_,from:i,to:d});g&&this.cycle()}}_directionToOrder(e){return[St,Et].includes(e)?isRTL()?e===St?wt:_t:e===St?_t:wt:e}_orderToDirection(e){return[_t,wt].includes(e)?isRTL()?e===_t?Et:St:e===_t?St:Et:e}static carouselInterface(e,t){let n=tt.get(e,gt),r={...vt,...dt.getDataAttributes(e)};"object"===typeof t&&(r={...r,...t});const i="string"===typeof t?t:r.slide;if(n||(n=new Carousel(e,r)),"number"===typeof t)n.to(t);else if("string"===typeof i){if("undefined"===typeof n[i])throw new TypeError(`No method named "${i}"`);n[i]()}else r.interval&&r.ride&&(n.pause(),n.cycle())}static jQueryInterface(e){return this.each((function(){Carousel.carouselInterface(this,e)}))}static dataApiClickHandler(e){const t=getElementFromSelector(this);if(!t||!t.classList.contains("carousel"))return;const n={...dt.getDataAttributes(t),...dt.getDataAttributes(this)},r=this.getAttribute("data-bs-slide-to");r&&(n.interval=!1),Carousel.carouselInterface(t,n),r&&tt.get(t,gt).to(r),e.preventDefault()}}lt.on(document,"click.bs.carousel.data-api","[data-bs-slide], [data-bs-slide-to]",Carousel.dataApiClickHandler),lt.on(window,"load.bs.carousel.data-api",(()=>{const e=ft.find('[data-bs-ride="carousel"]');for(let t=0,n=e.length;te===this._element));null!==t&&i.length&&(this._selector=t,this._triggerArray.push(e))}this._parent=this._config.parent?this._getParent():null,this._config.parent||this._addAriaAndCollapsedClass(this._element,this._triggerArray),this._config.toggle&&this.toggle()}static get Default(){return Dt}static get DATA_KEY(){return At}toggle(){this._element.classList.contains(Nt)?this.hide():this.show()}show(){if(this._isTransitioning||this._element.classList.contains(Nt))return;let e,t;this._parent&&(e=ft.find(".show, .collapsing",this._parent).filter((e=>"string"===typeof this._config.parent?e.getAttribute("data-bs-parent")===this._config.parent:e.classList.contains(It))),0===e.length&&(e=null));const n=ft.findOne(this._selector);if(e){const r=e.find((e=>n!==e));if(t=r?tt.get(r,At):null,t&&t._isTransitioning)return}if(lt.trigger(this._element,"show.bs.collapse").defaultPrevented)return;e&&e.forEach((e=>{n!==e&&Collapse.collapseInterface(e,"hide"),t||tt.set(e,At,null)}));const r=this._getDimension();this._element.classList.remove(It),this._element.classList.add(Rt),this._element.style[r]=0,this._triggerArray.length&&this._triggerArray.forEach((e=>{e.classList.remove(Mt),e.setAttribute("aria-expanded",!0)})),this.setTransitioning(!0);const i=`scroll${r[0].toUpperCase()+r.slice(1)}`,h=getTransitionDurationFromElement(this._element);lt.one(this._element,"transitionend",(()=>{this._element.classList.remove(Rt),this._element.classList.add(It,Nt),this._element.style[r]="",this.setTransitioning(!1),lt.trigger(this._element,"shown.bs.collapse")})),emulateTransitionEnd(this._element,h),this._element.style[r]=`${this._element[i]}px`}hide(){if(this._isTransitioning||!this._element.classList.contains(Nt))return;if(lt.trigger(this._element,"hide.bs.collapse").defaultPrevented)return;const e=this._getDimension();this._element.style[e]=`${this._element.getBoundingClientRect()[e]}px`,reflow(this._element),this._element.classList.add(Rt),this._element.classList.remove(It,Nt);const t=this._triggerArray.length;if(t>0)for(let r=0;r{this.setTransitioning(!1),this._element.classList.remove(Rt),this._element.classList.add(It),lt.trigger(this._element,"hidden.bs.collapse")})),emulateTransitionEnd(this._element,n)}setTransitioning(e){this._isTransitioning=e}dispose(){super.dispose(),this._config=null,this._parent=null,this._triggerArray=null,this._isTransitioning=null}_getConfig(e){return(e={...Dt,...e}).toggle=Boolean(e.toggle),typeCheckConfig(xt,e,Lt),e}_getDimension(){return this._element.classList.contains(Pt)?Pt:"height"}_getParent(){let{parent:e}=this._config;bootstrap_esm_isElement(e)?"undefined"===typeof e.jquery&&"undefined"===typeof e[0]||(e=e[0]):e=ft.findOne(e);const t=`${jt}[data-bs-parent="${e}"]`;return ft.find(t,e).forEach((e=>{const t=getElementFromSelector(e);this._addAriaAndCollapsedClass(t,[e])})),e}_addAriaAndCollapsedClass(e,t){if(!e||!t.length)return;const n=e.classList.contains(Nt);t.forEach((e=>{n?e.classList.remove(Mt):e.classList.add(Mt),e.setAttribute("aria-expanded",n)}))}static collapseInterface(e,t){let n=tt.get(e,At);const r={...Dt,...dt.getDataAttributes(e),..."object"===typeof t&&t?t:{}};if(!n&&r.toggle&&"string"===typeof t&&/show|hide/.test(t)&&(r.toggle=!1),n||(n=new Collapse(e,r)),"string"===typeof t){if("undefined"===typeof n[t])throw new TypeError(`No method named "${t}"`);n[t]()}}static jQueryInterface(e){return this.each((function(){Collapse.collapseInterface(this,e)}))}}lt.on(document,"click.bs.collapse.data-api",jt,(function(e){("A"===e.target.tagName||e.delegateTarget&&"A"===e.delegateTarget.tagName)&&e.preventDefault();const t=dt.getDataAttributes(this),n=getSelectorFromElement(this);ft.find(n).forEach((e=>{const n=tt.get(e,At);let r;n?(null===n._parent&&"string"===typeof t.parent&&(n._config.parent=t.parent,n._parent=n._getParent()),r="toggle"):r=t,Collapse.collapseInterface(e,r)}))})),defineJQueryPlugin(xt,Collapse);const Ft="dropdown",Qt="bs.dropdown",qt=".bs.dropdown",Bt="Escape",Kt="Space",Ut="ArrowUp",Vt="ArrowDown",$t=new RegExp("ArrowUp|ArrowDown|Escape"),Ht="hide.bs.dropdown",Wt="hidden.bs.dropdown",zt="click.bs.dropdown.data-api",Gt="keydown.bs.dropdown.data-api",Yt="disabled",Jt="show",Xt='[data-bs-toggle="dropdown"]',Zt=".dropdown-menu",en=isRTL()?"top-end":"top-start",tn=isRTL()?"top-start":"top-end",nn=isRTL()?"bottom-end":"bottom-start",rn=isRTL()?"bottom-start":"bottom-end",sn=isRTL()?"left-start":"right-start",an=isRTL()?"right-start":"left-start",cn={offset:[0,2],boundary:"clippingParents",reference:"toggle",display:"dynamic",popperConfig:null},ln={offset:"(array|string|function)",boundary:"(string|element)",reference:"(string|element|object)",display:"string",popperConfig:"(null|object|function)"};class Dropdown extends BaseComponent{constructor(e,t){super(e),this._popper=null,this._config=this._getConfig(t),this._menu=this._getMenuElement(),this._inNavbar=this._detectNavbar(),this._addEventListeners()}static get Default(){return cn}static get DefaultType(){return ln}static get DATA_KEY(){return Qt}toggle(){if(this._element.disabled||this._element.classList.contains(Yt))return;const e=this._element.classList.contains(Jt);Dropdown.clearMenus(),e||this.show()}show(){if(this._element.disabled||this._element.classList.contains(Yt)||this._menu.classList.contains(Jt))return;const e=Dropdown.getParentFromElement(this._element),t={relatedTarget:this._element};if(!lt.trigger(this._element,"show.bs.dropdown",t).defaultPrevented){if(this._inNavbar)dt.setDataAttribute(this._menu,"popper","none");else{if("undefined"===typeof r)throw new TypeError("Bootstrap's dropdowns require Popper (https://popper.js.org)");let t=this._element;"parent"===this._config.reference?t=e:bootstrap_esm_isElement(this._config.reference)?(t=this._config.reference,"undefined"!==typeof this._config.reference.jquery&&(t=this._config.reference[0])):"object"===typeof this._config.reference&&(t=this._config.reference);const n=this._getPopperConfig(),i=n.modifiers.find((e=>"applyStyles"===e.name&&!1===e.enabled));this._popper=Je(t,this._menu,n),i&&dt.setDataAttribute(this._menu,"popper","static")}"ontouchstart"in document.documentElement&&!e.closest(".navbar-nav")&&[].concat(...document.body.children).forEach((e=>lt.on(e,"mouseover",null,(function(){})))),this._element.focus(),this._element.setAttribute("aria-expanded",!0),this._menu.classList.toggle(Jt),this._element.classList.toggle(Jt),lt.trigger(this._element,"shown.bs.dropdown",t)}}hide(){if(this._element.disabled||this._element.classList.contains(Yt)||!this._menu.classList.contains(Jt))return;const e={relatedTarget:this._element};lt.trigger(this._element,Ht,e).defaultPrevented||(this._popper&&this._popper.destroy(),this._menu.classList.toggle(Jt),this._element.classList.toggle(Jt),dt.removeDataAttribute(this._menu,"popper"),lt.trigger(this._element,Wt,e))}dispose(){lt.off(this._element,qt),this._menu=null,this._popper&&(this._popper.destroy(),this._popper=null),super.dispose()}update(){this._inNavbar=this._detectNavbar(),this._popper&&this._popper.update()}_addEventListeners(){lt.on(this._element,"click.bs.dropdown",(e=>{e.preventDefault(),this.toggle()}))}_getConfig(e){if(e={...this.constructor.Default,...dt.getDataAttributes(this._element),...e},typeCheckConfig(Ft,e,this.constructor.DefaultType),"object"===typeof e.reference&&!bootstrap_esm_isElement(e.reference)&&"function"!==typeof e.reference.getBoundingClientRect)throw new TypeError(`${Ft.toUpperCase()}: Option "reference" provided type "object" without a required "getBoundingClientRect" method.`);return e}_getMenuElement(){return ft.next(this._element,Zt)[0]}_getPlacement(){const e=this._element.parentNode;if(e.classList.contains("dropend"))return sn;if(e.classList.contains("dropstart"))return an;const t="end"===getComputedStyle(this._menu).getPropertyValue("--bs-position").trim();return e.classList.contains("dropup")?t?tn:en:t?rn:nn}_detectNavbar(){return null!==this._element.closest(".navbar")}_getOffset(){const{offset:e}=this._config;return"string"===typeof e?e.split(",").map((e=>Number.parseInt(e,10))):"function"===typeof e?t=>e(t,this._element):e}_getPopperConfig(){const e={placement:this._getPlacement(),modifiers:[{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"offset",options:{offset:this._getOffset()}}]};return"static"===this._config.display&&(e.modifiers=[{name:"applyStyles",enabled:!1}]),{...e,..."function"===typeof this._config.popperConfig?this._config.popperConfig(e):this._config.popperConfig}}static dropdownInterface(e,t){let n=tt.get(e,Qt);if(n||(n=new Dropdown(e,"object"===typeof t?t:null)),"string"===typeof t){if("undefined"===typeof n[t])throw new TypeError(`No method named "${t}"`);n[t]()}}static jQueryInterface(e){return this.each((function(){Dropdown.dropdownInterface(this,e)}))}static clearMenus(e){if(e){if(2===e.button||"keyup"===e.type&&"Tab"!==e.key)return;if(/input|select|textarea|form/i.test(e.target.tagName))return}const t=ft.find(Xt);for(let n=0,r=t.length;ne.composedPath().includes(t))))continue;if("keyup"===e.type&&"Tab"===e.key&&h.contains(e.target))continue}lt.trigger(t[n],Ht,i).defaultPrevented||("ontouchstart"in document.documentElement&&[].concat(...document.body.children).forEach((e=>lt.off(e,"mouseover",null,(function(){})))),t[n].setAttribute("aria-expanded","false"),r._popper&&r._popper.destroy(),h.classList.remove(Jt),t[n].classList.remove(Jt),dt.removeDataAttribute(h,"popper"),lt.trigger(t[n],Wt,i))}}static getParentFromElement(e){return getElementFromSelector(e)||e.parentNode}static dataApiKeydownHandler(e){if(/input|textarea/i.test(e.target.tagName)?e.key===Kt||e.key!==Bt&&(e.key!==Vt&&e.key!==Ut||e.target.closest(Zt)):!$t.test(e.key))return;if(e.preventDefault(),e.stopPropagation(),this.disabled||this.classList.contains(Yt))return;const t=Dropdown.getParentFromElement(this),n=this.classList.contains(Jt);if(e.key===Bt){return(this.matches(Xt)?this:ft.prev(this,Xt)[0]).focus(),void Dropdown.clearMenus()}if(!n&&(e.key===Ut||e.key===Vt)){return void(this.matches(Xt)?this:ft.prev(this,Xt)[0]).click()}if(!n||e.key===Kt)return void Dropdown.clearMenus();const r=ft.find(".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)",t).filter(isVisible);if(!r.length)return;let i=r.indexOf(e.target);e.key===Ut&&i>0&&i--,e.key===Vt&&ithis.hide(e))),lt.on(this._dialog,Sn,(()=>{lt.one(this._element,"mouseup.dismiss.bs.modal",(e=>{e.target===this._element&&(this._ignoreBackdropClick=!0)}))})),this._showBackdrop((()=>this._showElement(e))))}hide(e){if(e&&e.preventDefault(),!this._isShown||this._isTransitioning)return;if(lt.trigger(this._element,"hide.bs.modal").defaultPrevented)return;this._isShown=!1;const t=this._isAnimated();if(t&&(this._isTransitioning=!0),this._setEscapeEvent(),this._setResizeEvent(),lt.off(document,bn),this._element.classList.remove(Cn),lt.off(this._element,wn),lt.off(this._dialog,Sn),t){const e=getTransitionDurationFromElement(this._element);lt.one(this._element,"transitionend",(e=>this._hideModal(e))),emulateTransitionEnd(this._element,e)}else this._hideModal()}dispose(){[window,this._element,this._dialog].forEach((e=>lt.off(e,hn))),super.dispose(),lt.off(document,bn),this._config=null,this._dialog=null,this._backdrop=null,this._isShown=null,this._isBodyOverflowing=null,this._ignoreBackdropClick=null,this._isTransitioning=null,this._scrollbarWidth=null}handleUpdate(){this._adjustDialog()}_getConfig(e){return e={...mn,...e},typeCheckConfig(un,e,gn),e}_showElement(e){const t=this._isAnimated(),n=ft.findOne(".modal-body",this._dialog);this._element.parentNode&&this._element.parentNode.nodeType===Node.ELEMENT_NODE||document.body.appendChild(this._element),this._element.style.display="block",this._element.removeAttribute("aria-hidden"),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.scrollTop=0,n&&(n.scrollTop=0),t&&reflow(this._element),this._element.classList.add(Cn),this._config.focus&&this._enforceFocus();const transitionComplete=()=>{this._config.focus&&this._element.focus(),this._isTransitioning=!1,lt.trigger(this._element,"shown.bs.modal",{relatedTarget:e})};if(t){const e=getTransitionDurationFromElement(this._dialog);lt.one(this._dialog,"transitionend",transitionComplete),emulateTransitionEnd(this._dialog,e)}else transitionComplete()}_enforceFocus(){lt.off(document,bn),lt.on(document,bn,(e=>{document===e.target||this._element===e.target||this._element.contains(e.target)||this._element.focus()}))}_setEscapeEvent(){this._isShown?lt.on(this._element,En,(e=>{this._config.keyboard&&e.key===dn?(e.preventDefault(),this.hide()):this._config.keyboard||e.key!==dn||this._triggerBackdropTransition()})):lt.off(this._element,En)}_setResizeEvent(){this._isShown?lt.on(window,_n,(()=>this._adjustDialog())):lt.off(window,_n)}_hideModal(){this._element.style.display="none",this._element.setAttribute("aria-hidden",!0),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._isTransitioning=!1,this._showBackdrop((()=>{document.body.classList.remove(kn),this._resetAdjustments(),this._resetScrollbar(),lt.trigger(this._element,yn)}))}_removeBackdrop(){this._backdrop.parentNode.removeChild(this._backdrop),this._backdrop=null}_showBackdrop(e){const t=this._isAnimated();if(this._isShown&&this._config.backdrop){if(this._backdrop=document.createElement("div"),this._backdrop.className="modal-backdrop",t&&this._backdrop.classList.add(On),document.body.appendChild(this._backdrop),lt.on(this._element,wn,(e=>{this._ignoreBackdropClick?this._ignoreBackdropClick=!1:e.target===e.currentTarget&&("static"===this._config.backdrop?this._triggerBackdropTransition():this.hide())})),t&&reflow(this._backdrop),this._backdrop.classList.add(Cn),!t)return void e();const n=getTransitionDurationFromElement(this._backdrop);lt.one(this._backdrop,"transitionend",e),emulateTransitionEnd(this._backdrop,n)}else if(!this._isShown&&this._backdrop){this._backdrop.classList.remove(Cn);const callbackRemove=()=>{this._removeBackdrop(),e()};if(t){const e=getTransitionDurationFromElement(this._backdrop);lt.one(this._backdrop,"transitionend",callbackRemove),emulateTransitionEnd(this._backdrop,e)}else callbackRemove()}else e()}_isAnimated(){return this._element.classList.contains(On)}_triggerBackdropTransition(){if(lt.trigger(this._element,"hidePrevented.bs.modal").defaultPrevented)return;const e=this._element.scrollHeight>document.documentElement.clientHeight;e||(this._element.style.overflowY="hidden"),this._element.classList.add(Tn);const t=getTransitionDurationFromElement(this._dialog);lt.off(this._element,"transitionend"),lt.one(this._element,"transitionend",(()=>{this._element.classList.remove(Tn),e||(lt.one(this._element,"transitionend",(()=>{this._element.style.overflowY=""})),emulateTransitionEnd(this._element,t))})),emulateTransitionEnd(this._element,t),this._element.focus()}_adjustDialog(){const e=this._element.scrollHeight>document.documentElement.clientHeight;(!this._isBodyOverflowing&&e&&!isRTL()||this._isBodyOverflowing&&!e&&isRTL())&&(this._element.style.paddingLeft=`${this._scrollbarWidth}px`),(this._isBodyOverflowing&&!e&&!isRTL()||!this._isBodyOverflowing&&e&&isRTL())&&(this._element.style.paddingRight=`${this._scrollbarWidth}px`)}_resetAdjustments(){this._element.style.paddingLeft="",this._element.style.paddingRight=""}_checkScrollbar(){const e=document.body.getBoundingClientRect();this._isBodyOverflowing=Math.round(e.left+e.right)e+this._scrollbarWidth)),this._setElementAttributes(An,"marginRight",(e=>e-this._scrollbarWidth)),this._setElementAttributes("body","paddingRight",(e=>e+this._scrollbarWidth))),document.body.classList.add(kn)}_setElementAttributes(e,t,n){ft.find(e).forEach((e=>{if(e!==document.body&&window.innerWidth>e.clientWidth+this._scrollbarWidth)return;const r=e.style[t],i=window.getComputedStyle(e)[t];dt.setDataAttribute(e,t,r),e.style[t]=n(Number.parseFloat(i))+"px"}))}_resetScrollbar(){this._resetElementAttributes(xn,"paddingRight"),this._resetElementAttributes(An,"marginRight"),this._resetElementAttributes("body","paddingRight")}_resetElementAttributes(e,t){ft.find(e).forEach((e=>{const n=dt.getDataAttribute(e,t);"undefined"===typeof n&&e===document.body?e.style[t]="":(dt.removeDataAttribute(e,t),e.style[t]=n)}))}_getScrollbarWidth(){const e=document.createElement("div");e.className="modal-scrollbar-measure",document.body.appendChild(e);const t=e.getBoundingClientRect().width-e.clientWidth;return document.body.removeChild(e),t}static jQueryInterface(e,t){return this.each((function(){let n=tt.get(this,pn);const r={...mn,...dt.getDataAttributes(this),..."object"===typeof e&&e?e:{}};if(n||(n=new Modal(this,r)),"string"===typeof e){if("undefined"===typeof n[e])throw new TypeError(`No method named "${e}"`);n[e](t)}}))}}lt.on(document,"click.bs.modal.data-api",'[data-bs-toggle="modal"]',(function(e){const t=getElementFromSelector(this);"A"!==this.tagName&&"AREA"!==this.tagName||e.preventDefault(),lt.one(t,vn,(e=>{e.defaultPrevented||lt.one(t,yn,(()=>{isVisible(this)&&this.focus()}))}));let n=tt.get(t,pn);if(!n){const e={...dt.getDataAttributes(t),...dt.getDataAttributes(this)};n=new Modal(t,e)}n.toggle(this)})),defineJQueryPlugin(un,Modal);const Dn=".fixed-top, .fixed-bottom, .is-fixed",Ln=".sticky-top",getWidth=()=>{const e=document.documentElement.clientWidth;return Math.abs(window.innerWidth-e)},_setElementAttributes=(e,t,n)=>{const r=getWidth();ft.find(e).forEach((e=>{if(e!==document.body&&window.innerWidth>e.clientWidth+r)return;const i=e.style[t],h=window.getComputedStyle(e)[t];dt.setDataAttribute(e,t,i),e.style[t]=n(Number.parseFloat(h))+"px"}))},_resetElementAttributes=(e,t)=>{ft.find(e).forEach((e=>{const n=dt.getDataAttribute(e,t);"undefined"===typeof n&&e===document.body?e.style.removeProperty(t):(dt.removeDataAttribute(e,t),e.style[t]=n)}))},Nn="offcanvas",In="bs.offcanvas",Rn={backdrop:!0,keyboard:!0,scroll:!1},Mn={backdrop:"boolean",keyboard:"boolean",scroll:"boolean"},Pn="offcanvas-backdrop",jn="show",Fn="offcanvas-toggling",Qn=".offcanvas.show",qn="hidden.bs.offcanvas",Bn="focusin.bs.offcanvas",Kn="click.bs.offcanvas.data-api";class Offcanvas extends BaseComponent{constructor(e,t){super(e),this._config=this._getConfig(t),this._isShown=!1,this._addEventListeners()}static get Default(){return Rn}static get DATA_KEY(){return In}toggle(e){return this._isShown?this.hide():this.show(e)}show(e){if(this._isShown)return;if(lt.trigger(this._element,"show.bs.offcanvas",{relatedTarget:e}).defaultPrevented)return;this._isShown=!0,this._element.style.visibility="visible",this._config.backdrop&&document.body.classList.add(Pn),this._config.scroll||((e=getWidth())=>{document.body.style.overflow="hidden",_setElementAttributes(Dn,"paddingRight",(t=>t+e)),_setElementAttributes(Ln,"marginRight",(t=>t-e)),_setElementAttributes("body","paddingRight",(t=>t+e))})(),this._element.classList.add(Fn),this._element.removeAttribute("aria-hidden"),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.classList.add(jn);setTimeout((()=>{this._element.classList.remove(Fn),lt.trigger(this._element,"shown.bs.offcanvas",{relatedTarget:e}),this._enforceFocusOnElement(this._element)}),getTransitionDurationFromElement(this._element))}hide(){if(!this._isShown)return;if(lt.trigger(this._element,"hide.bs.offcanvas").defaultPrevented)return;this._element.classList.add(Fn),lt.off(document,Bn),this._element.blur(),this._isShown=!1,this._element.classList.remove(jn);setTimeout((()=>{this._element.setAttribute("aria-hidden",!0),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._element.style.visibility="hidden",this._config.backdrop&&document.body.classList.remove(Pn),this._config.scroll||(document.body.style.overflow="auto",_resetElementAttributes(Dn,"paddingRight"),_resetElementAttributes(Ln,"marginRight"),_resetElementAttributes("body","paddingRight")),lt.trigger(this._element,qn),this._element.classList.remove(Fn)}),getTransitionDurationFromElement(this._element))}_getConfig(e){return e={...Rn,...dt.getDataAttributes(this._element),..."object"===typeof e?e:{}},typeCheckConfig(Nn,e,Mn),e}_enforceFocusOnElement(e){lt.off(document,Bn),lt.on(document,Bn,(t=>{document===t.target||e===t.target||e.contains(t.target)||e.focus()})),e.focus()}_addEventListeners(){lt.on(this._element,"click.dismiss.bs.offcanvas",'[data-bs-dismiss="offcanvas"]',(()=>this.hide())),lt.on(document,"keydown",(e=>{this._config.keyboard&&"Escape"===e.key&&this.hide()})),lt.on(document,Kn,(e=>{const t=ft.findOne(getSelectorFromElement(e.target));this._element.contains(e.target)||t===this._element||this.hide()}))}static jQueryInterface(e){return this.each((function(){const t=tt.get(this,In)||new Offcanvas(this,"object"===typeof e?e:{});if("string"===typeof e){if(void 0===t[e]||e.startsWith("_")||"constructor"===e)throw new TypeError(`No method named "${e}"`);t[e](this)}}))}}lt.on(document,Kn,'[data-bs-toggle="offcanvas"]',(function(e){const t=getElementFromSelector(this);if(["A","AREA"].includes(this.tagName)&&e.preventDefault(),isDisabled(this))return;lt.one(t,qn,(()=>{isVisible(this)&&this.focus()}));const n=ft.findOne(".offcanvas.show, .offcanvas-toggling");if(n&&n!==t)return;(tt.get(t,In)||new Offcanvas(t)).toggle(this)})),lt.on(window,"load.bs.offcanvas.data-api",(()=>{ft.find(Qn).forEach((e=>(tt.get(e,In)||new Offcanvas(e)).show()))})),defineJQueryPlugin(Nn,Offcanvas);const Un=new Set(["background","cite","href","itemtype","longdesc","poster","src","xlink:href"]),Vn=/^(?:(?:https?|mailto|ftp|tel|file):|[^#&/:?]*(?:[#/?]|$))/i,$n=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[\d+/a-z]+=*$/i,allowedAttribute=(e,t)=>{const n=e.nodeName.toLowerCase();if(t.includes(n))return!Un.has(n)||Boolean(Vn.test(e.nodeValue)||$n.test(e.nodeValue));const r=t.filter((e=>e instanceof RegExp));for(let i=0,h=r.length;i{allowedAttribute(t,g)||e.removeAttribute(t.nodeName)}))}return r.body.innerHTML}const Wn="tooltip",zn="bs.tooltip",Gn=".bs.tooltip",Yn=new RegExp("(^|\\s)bs-tooltip\\S+","g"),Jn=new Set(["sanitize","allowList","sanitizeFn"]),Xn={animation:"boolean",template:"string",title:"(string|element|function)",trigger:"string",delay:"(number|object)",html:"boolean",selector:"(string|boolean)",placement:"(string|function)",offset:"(array|string|function)",container:"(string|element|boolean)",fallbackPlacements:"array",boundary:"(string|element)",customClass:"(string|function)",sanitize:"boolean",sanitizeFn:"(null|function)",allowList:"object",popperConfig:"(null|object|function)"},Zn={AUTO:"auto",TOP:"top",RIGHT:isRTL()?"left":"right",BOTTOM:"bottom",LEFT:isRTL()?"right":"left"},er={animation:!0,template:'',trigger:"hover focus",title:"",delay:0,html:!1,selector:!1,placement:"top",offset:[0,0],container:!1,fallbackPlacements:["top","right","bottom","left"],boundary:"clippingParents",customClass:"",sanitize:!0,sanitizeFn:null,allowList:Hn,popperConfig:null},tr={HIDE:"hide.bs.tooltip",HIDDEN:"hidden.bs.tooltip",SHOW:"show.bs.tooltip",SHOWN:"shown.bs.tooltip",INSERTED:"inserted.bs.tooltip",CLICK:"click.bs.tooltip",FOCUSIN:"focusin.bs.tooltip",FOCUSOUT:"focusout.bs.tooltip",MOUSEENTER:"mouseenter.bs.tooltip",MOUSELEAVE:"mouseleave.bs.tooltip"},nr="fade",rr="show",ir="show",or="out",sr="hover",ar="focus";class Tooltip extends BaseComponent{constructor(e,t){if("undefined"===typeof r)throw new TypeError("Bootstrap's tooltips require Popper (https://popper.js.org)");super(e),this._isEnabled=!0,this._timeout=0,this._hoverState="",this._activeTrigger={},this._popper=null,this.config=this._getConfig(t),this.tip=null,this._setListeners()}static get Default(){return er}static get NAME(){return Wn}static get DATA_KEY(){return zn}static get Event(){return tr}static get EVENT_KEY(){return Gn}static get DefaultType(){return Xn}enable(){this._isEnabled=!0}disable(){this._isEnabled=!1}toggleEnabled(){this._isEnabled=!this._isEnabled}toggle(e){if(this._isEnabled)if(e){const t=this._initializeOnDelegatedTarget(e);t._activeTrigger.click=!t._activeTrigger.click,t._isWithActiveTrigger()?t._enter(null,t):t._leave(null,t)}else{if(this.getTipElement().classList.contains(rr))return void this._leave(null,this);this._enter(null,this)}}dispose(){clearTimeout(this._timeout),lt.off(this._element,this.constructor.EVENT_KEY),lt.off(this._element.closest(".modal"),"hide.bs.modal",this._hideModalHandler),this.tip&&this.tip.parentNode&&this.tip.parentNode.removeChild(this.tip),this._isEnabled=null,this._timeout=null,this._hoverState=null,this._activeTrigger=null,this._popper&&this._popper.destroy(),this._popper=null,this.config=null,this.tip=null,super.dispose()}show(){if("none"===this._element.style.display)throw new Error("Please use show on visible elements");if(!this.isWithContent()||!this._isEnabled)return;const e=lt.trigger(this._element,this.constructor.Event.SHOW),t=findShadowRoot(this._element),n=null===t?this._element.ownerDocument.documentElement.contains(this._element):t.contains(this._element);if(e.defaultPrevented||!n)return;const r=this.getTipElement(),i=getUID(this.constructor.NAME);r.setAttribute("id",i),this._element.setAttribute("aria-describedby",i),this.setContent(),this.config.animation&&r.classList.add(nr);const h="function"===typeof this.config.placement?this.config.placement.call(this,r,this._element):this.config.placement,d=this._getAttachment(h);this._addAttachmentClass(d);const g=this._getContainer();tt.set(r,this.constructor.DATA_KEY,this),this._element.ownerDocument.documentElement.contains(this.tip)||(g.appendChild(r),lt.trigger(this._element,this.constructor.Event.INSERTED)),this._popper?this._popper.update():this._popper=Je(this._element,r,this._getPopperConfig(d)),r.classList.add(rr);const y="function"===typeof this.config.customClass?this.config.customClass():this.config.customClass;y&&r.classList.add(...y.split(" ")),"ontouchstart"in document.documentElement&&[].concat(...document.body.children).forEach((e=>{lt.on(e,"mouseover",(function(){}))}));const complete=()=>{const e=this._hoverState;this._hoverState=null,lt.trigger(this._element,this.constructor.Event.SHOWN),e===or&&this._leave(null,this)};if(this.tip.classList.contains(nr)){const e=getTransitionDurationFromElement(this.tip);lt.one(this.tip,"transitionend",complete),emulateTransitionEnd(this.tip,e)}else complete()}hide(){if(!this._popper)return;const e=this.getTipElement(),complete=()=>{this._isWithActiveTrigger()||(this._hoverState!==ir&&e.parentNode&&e.parentNode.removeChild(e),this._cleanTipClass(),this._element.removeAttribute("aria-describedby"),lt.trigger(this._element,this.constructor.Event.HIDDEN),this._popper&&(this._popper.destroy(),this._popper=null))};if(!lt.trigger(this._element,this.constructor.Event.HIDE).defaultPrevented){if(e.classList.remove(rr),"ontouchstart"in document.documentElement&&[].concat(...document.body.children).forEach((e=>lt.off(e,"mouseover",noop))),this._activeTrigger.click=!1,this._activeTrigger.focus=!1,this._activeTrigger.hover=!1,this.tip.classList.contains(nr)){const t=getTransitionDurationFromElement(e);lt.one(e,"transitionend",complete),emulateTransitionEnd(e,t)}else complete();this._hoverState=""}}update(){null!==this._popper&&this._popper.update()}isWithContent(){return Boolean(this.getTitle())}getTipElement(){if(this.tip)return this.tip;const e=document.createElement("div");return e.innerHTML=this.config.template,this.tip=e.children[0],this.tip}setContent(){const e=this.getTipElement();this.setElementContent(ft.findOne(".tooltip-inner",e),this.getTitle()),e.classList.remove(nr,rr)}setElementContent(e,t){if(null!==e)return"object"===typeof t&&bootstrap_esm_isElement(t)?(t.jquery&&(t=t[0]),void(this.config.html?t.parentNode!==e&&(e.innerHTML="",e.appendChild(t)):e.textContent=t.textContent)):void(this.config.html?(this.config.sanitize&&(t=sanitizeHtml(t,this.config.allowList,this.config.sanitizeFn)),e.innerHTML=t):e.textContent=t)}getTitle(){let e=this._element.getAttribute("data-bs-original-title");return e||(e="function"===typeof this.config.title?this.config.title.call(this._element):this.config.title),e}updateAttachment(e){return"right"===e?"end":"left"===e?"start":e}_initializeOnDelegatedTarget(e,t){const n=this.constructor.DATA_KEY;return(t=t||tt.get(e.delegateTarget,n))||(t=new this.constructor(e.delegateTarget,this._getDelegateConfig()),tt.set(e.delegateTarget,n,t)),t}_getOffset(){const{offset:e}=this.config;return"string"===typeof e?e.split(",").map((e=>Number.parseInt(e,10))):"function"===typeof e?t=>e(t,this._element):e}_getPopperConfig(e){const t={placement:e,modifiers:[{name:"flip",options:{altBoundary:!0,fallbackPlacements:this.config.fallbackPlacements}},{name:"offset",options:{offset:this._getOffset()}},{name:"preventOverflow",options:{boundary:this.config.boundary}},{name:"arrow",options:{element:`.${this.constructor.NAME}-arrow`}},{name:"onChange",enabled:!0,phase:"afterWrite",fn:e=>this._handlePopperPlacementChange(e)}],onFirstUpdate:e=>{e.options.placement!==e.placement&&this._handlePopperPlacementChange(e)}};return{...t,..."function"===typeof this.config.popperConfig?this.config.popperConfig(t):this.config.popperConfig}}_addAttachmentClass(e){this.getTipElement().classList.add(`bs-tooltip-${this.updateAttachment(e)}`)}_getContainer(){return!1===this.config.container?document.body:bootstrap_esm_isElement(this.config.container)?this.config.container:ft.findOne(this.config.container)}_getAttachment(e){return Zn[e.toUpperCase()]}_setListeners(){this.config.trigger.split(" ").forEach((e=>{if("click"===e)lt.on(this._element,this.constructor.Event.CLICK,this.config.selector,(e=>this.toggle(e)));else if("manual"!==e){const t=e===sr?this.constructor.Event.MOUSEENTER:this.constructor.Event.FOCUSIN,n=e===sr?this.constructor.Event.MOUSELEAVE:this.constructor.Event.FOCUSOUT;lt.on(this._element,t,this.config.selector,(e=>this._enter(e))),lt.on(this._element,n,this.config.selector,(e=>this._leave(e)))}})),this._hideModalHandler=()=>{this._element&&this.hide()},lt.on(this._element.closest(".modal"),"hide.bs.modal",this._hideModalHandler),this.config.selector?this.config={...this.config,trigger:"manual",selector:""}:this._fixTitle()}_fixTitle(){const e=this._element.getAttribute("title"),t=typeof this._element.getAttribute("data-bs-original-title");(e||"string"!==t)&&(this._element.setAttribute("data-bs-original-title",e||""),!e||this._element.getAttribute("aria-label")||this._element.textContent||this._element.setAttribute("aria-label",e),this._element.setAttribute("title",""))}_enter(e,t){t=this._initializeOnDelegatedTarget(e,t),e&&(t._activeTrigger["focusin"===e.type?ar:sr]=!0),t.getTipElement().classList.contains(rr)||t._hoverState===ir?t._hoverState=ir:(clearTimeout(t._timeout),t._hoverState=ir,t.config.delay&&t.config.delay.show?t._timeout=setTimeout((()=>{t._hoverState===ir&&t.show()}),t.config.delay.show):t.show())}_leave(e,t){t=this._initializeOnDelegatedTarget(e,t),e&&(t._activeTrigger["focusout"===e.type?ar:sr]=t._element.contains(e.relatedTarget)),t._isWithActiveTrigger()||(clearTimeout(t._timeout),t._hoverState=or,t.config.delay&&t.config.delay.hide?t._timeout=setTimeout((()=>{t._hoverState===or&&t.hide()}),t.config.delay.hide):t.hide())}_isWithActiveTrigger(){for(const e in this._activeTrigger)if(this._activeTrigger[e])return!0;return!1}_getConfig(e){const t=dt.getDataAttributes(this._element);return Object.keys(t).forEach((e=>{Jn.has(e)&&delete t[e]})),e&&"object"===typeof e.container&&e.container.jquery&&(e.container=e.container[0]),"number"===typeof(e={...this.constructor.Default,...t,..."object"===typeof e&&e?e:{}}).delay&&(e.delay={show:e.delay,hide:e.delay}),"number"===typeof e.title&&(e.title=e.title.toString()),"number"===typeof e.content&&(e.content=e.content.toString()),typeCheckConfig(Wn,e,this.constructor.DefaultType),e.sanitize&&(e.template=sanitizeHtml(e.template,e.allowList,e.sanitizeFn)),e}_getDelegateConfig(){const e={};if(this.config)for(const t in this.config)this.constructor.Default[t]!==this.config[t]&&(e[t]=this.config[t]);return e}_cleanTipClass(){const e=this.getTipElement(),t=e.getAttribute("class").match(Yn);null!==t&&t.length>0&&t.map((e=>e.trim())).forEach((t=>e.classList.remove(t)))}_handlePopperPlacementChange(e){const{state:t}=e;t&&(this.tip=t.elements.popper,this._cleanTipClass(),this._addAttachmentClass(this._getAttachment(t.placement)))}static jQueryInterface(e){return this.each((function(){let t=tt.get(this,zn);const n="object"===typeof e&&e;if((t||!/dispose|hide/.test(e))&&(t||(t=new Tooltip(this,n)),"string"===typeof e)){if("undefined"===typeof t[e])throw new TypeError(`No method named "${e}"`);t[e]()}}))}}defineJQueryPlugin(Wn,Tooltip);const cr="popover",lr="bs.popover",ur=".bs.popover",pr=new RegExp("(^|\\s)bs-popover\\S+","g"),hr={...Tooltip.Default,placement:"right",offset:[0,8],trigger:"click",content:"",template:''},dr={...Tooltip.DefaultType,content:"(string|element|function)"},fr={HIDE:"hide.bs.popover",HIDDEN:"hidden.bs.popover",SHOW:"show.bs.popover",SHOWN:"shown.bs.popover",INSERTED:"inserted.bs.popover",CLICK:"click.bs.popover",FOCUSIN:"focusin.bs.popover",FOCUSOUT:"focusout.bs.popover",MOUSEENTER:"mouseenter.bs.popover",MOUSELEAVE:"mouseleave.bs.popover"};class Popover extends Tooltip{static get Default(){return hr}static get NAME(){return cr}static get DATA_KEY(){return lr}static get Event(){return fr}static get EVENT_KEY(){return ur}static get DefaultType(){return dr}isWithContent(){return this.getTitle()||this._getContent()}setContent(){const e=this.getTipElement();this.setElementContent(ft.findOne(".popover-header",e),this.getTitle());let t=this._getContent();"function"===typeof t&&(t=t.call(this._element)),this.setElementContent(ft.findOne(".popover-body",e),t),e.classList.remove("fade","show")}_addAttachmentClass(e){this.getTipElement().classList.add(`bs-popover-${this.updateAttachment(e)}`)}_getContent(){return this._element.getAttribute("data-bs-content")||this.config.content}_cleanTipClass(){const e=this.getTipElement(),t=e.getAttribute("class").match(pr);null!==t&&t.length>0&&t.map((e=>e.trim())).forEach((t=>e.classList.remove(t)))}static jQueryInterface(e){return this.each((function(){let t=tt.get(this,lr);const n="object"===typeof e?e:null;if((t||!/dispose|hide/.test(e))&&(t||(t=new Popover(this,n),tt.set(this,lr,t)),"string"===typeof e)){if("undefined"===typeof t[e])throw new TypeError(`No method named "${e}"`);t[e]()}}))}}defineJQueryPlugin(cr,Popover);const mr="scrollspy",gr="bs.scrollspy",yr=".bs.scrollspy",vr={offset:10,method:"auto",target:""},br={offset:"number",method:"string",target:"(string|element)"},_r="dropdown-item",wr="active",Er=".nav-link",Sr="position";class ScrollSpy extends BaseComponent{constructor(e,t){super(e),this._scrollElement="BODY"===this._element.tagName?window:this._element,this._config=this._getConfig(t),this._selector=`${this._config.target} .nav-link, ${this._config.target} .list-group-item, ${this._config.target} .dropdown-item`,this._offsets=[],this._targets=[],this._activeTarget=null,this._scrollHeight=0,lt.on(this._scrollElement,"scroll.bs.scrollspy",(()=>this._process())),this.refresh(),this._process()}static get Default(){return vr}static get DATA_KEY(){return gr}refresh(){const e=this._scrollElement===this._scrollElement.window?"offset":Sr,t="auto"===this._config.method?e:this._config.method,n=t===Sr?this._getScrollTop():0;this._offsets=[],this._targets=[],this._scrollHeight=this._getScrollHeight();ft.find(this._selector).map((e=>{const r=getSelectorFromElement(e),i=r?ft.findOne(r):null;if(i){const e=i.getBoundingClientRect();if(e.width||e.height)return[dt[t](i).top+n,r]}return null})).filter((e=>e)).sort(((e,t)=>e[0]-t[0])).forEach((e=>{this._offsets.push(e[0]),this._targets.push(e[1])}))}dispose(){super.dispose(),lt.off(this._scrollElement,yr),this._scrollElement=null,this._config=null,this._selector=null,this._offsets=null,this._targets=null,this._activeTarget=null,this._scrollHeight=null}_getConfig(e){if("string"!==typeof(e={...vr,..."object"===typeof e&&e?e:{}}).target&&bootstrap_esm_isElement(e.target)){let{id:t}=e.target;t||(t=getUID(mr),e.target.id=t),e.target=`#${t}`}return typeCheckConfig(mr,e,br),e}_getScrollTop(){return this._scrollElement===window?this._scrollElement.pageYOffset:this._scrollElement.scrollTop}_getScrollHeight(){return this._scrollElement.scrollHeight||Math.max(document.body.scrollHeight,document.documentElement.scrollHeight)}_getOffsetHeight(){return this._scrollElement===window?window.innerHeight:this._scrollElement.getBoundingClientRect().height}_process(){const e=this._getScrollTop()+this._config.offset,t=this._getScrollHeight(),n=this._config.offset+t-this._getOffsetHeight();if(this._scrollHeight!==t&&this.refresh(),e>=n){const e=this._targets[this._targets.length-1];this._activeTarget!==e&&this._activate(e)}else{if(this._activeTarget&&e0)return this._activeTarget=null,void this._clear();for(let t=this._offsets.length;t--;){this._activeTarget!==this._targets[t]&&e>=this._offsets[t]&&("undefined"===typeof this._offsets[t+1]||e`${t}[data-bs-target="${e}"],${t}[href="${e}"]`)),n=ft.findOne(t.join(","));n.classList.contains(_r)?(ft.findOne(".dropdown-toggle",n.closest(".dropdown")).classList.add(wr),n.classList.add(wr)):(n.classList.add(wr),ft.parents(n,".nav, .list-group").forEach((e=>{ft.prev(e,".nav-link, .list-group-item").forEach((e=>e.classList.add(wr))),ft.prev(e,".nav-item").forEach((e=>{ft.children(e,Er).forEach((e=>e.classList.add(wr)))}))}))),lt.trigger(this._scrollElement,"activate.bs.scrollspy",{relatedTarget:e})}_clear(){ft.find(this._selector).filter((e=>e.classList.contains(wr))).forEach((e=>e.classList.remove(wr)))}static jQueryInterface(e){return this.each((function(){let t=tt.get(this,gr);if(t||(t=new ScrollSpy(this,"object"===typeof e&&e)),"string"===typeof e){if("undefined"===typeof t[e])throw new TypeError(`No method named "${e}"`);t[e]()}}))}}lt.on(window,"load.bs.scrollspy.data-api",(()=>{ft.find('[data-bs-spy="scroll"]').forEach((e=>new ScrollSpy(e,dt.getDataAttributes(e))))})),defineJQueryPlugin(mr,ScrollSpy);const kr="bs.tab",Or="active",Cr="fade",Tr="show",xr=".active",Ar=":scope > li > .active";class Tab extends BaseComponent{static get DATA_KEY(){return kr}show(){if(this._element.parentNode&&this._element.parentNode.nodeType===Node.ELEMENT_NODE&&this._element.classList.contains(Or)||isDisabled(this._element))return;let e;const t=getElementFromSelector(this._element),n=this._element.closest(".nav, .list-group");if(n){const t="UL"===n.nodeName||"OL"===n.nodeName?Ar:xr;e=ft.find(t,n),e=e[e.length-1]}const r=e?lt.trigger(e,"hide.bs.tab",{relatedTarget:this._element}):null;if(lt.trigger(this._element,"show.bs.tab",{relatedTarget:e}).defaultPrevented||null!==r&&r.defaultPrevented)return;this._activate(this._element,n);const complete=()=>{lt.trigger(e,"hidden.bs.tab",{relatedTarget:this._element}),lt.trigger(this._element,"shown.bs.tab",{relatedTarget:e})};t?this._activate(t,t.parentNode,complete):complete()}_activate(e,t,n){const r=(!t||"UL"!==t.nodeName&&"OL"!==t.nodeName?ft.children(t,xr):ft.find(Ar,t))[0],i=n&&r&&r.classList.contains(Cr),complete=()=>this._transitionComplete(e,r,n);if(r&&i){const e=getTransitionDurationFromElement(r);r.classList.remove(Tr),lt.one(r,"transitionend",complete),emulateTransitionEnd(r,e)}else complete()}_transitionComplete(e,t,n){if(t){t.classList.remove(Or);const e=ft.findOne(":scope > .dropdown-menu .active",t.parentNode);e&&e.classList.remove(Or),"tab"===t.getAttribute("role")&&t.setAttribute("aria-selected",!1)}if(e.classList.add(Or),"tab"===e.getAttribute("role")&&e.setAttribute("aria-selected",!0),reflow(e),e.classList.contains(Cr)&&e.classList.add(Tr),e.parentNode&&e.parentNode.classList.contains("dropdown-menu")){e.closest(".dropdown")&&ft.find(".dropdown-toggle").forEach((e=>e.classList.add(Or))),e.setAttribute("aria-expanded",!0)}n&&n()}static jQueryInterface(e){return this.each((function(){const t=tt.get(this,kr)||new Tab(this);if("string"===typeof e){if("undefined"===typeof t[e])throw new TypeError(`No method named "${e}"`);t[e]()}}))}}lt.on(document,"click.bs.tab.data-api",'[data-bs-toggle="tab"], [data-bs-toggle="pill"], [data-bs-toggle="list"]',(function(e){e.preventDefault();(tt.get(this,kr)||new Tab(this)).show()})),defineJQueryPlugin("tab",Tab);const Dr="toast",Lr="bs.toast",Nr="click.dismiss.bs.toast",Ir="hide",Rr="show",Mr="showing",Pr={animation:"boolean",autohide:"boolean",delay:"number"},jr={animation:!0,autohide:!0,delay:5e3};class Toast extends BaseComponent{constructor(e,t){super(e),this._config=this._getConfig(t),this._timeout=null,this._setListeners()}static get DefaultType(){return Pr}static get Default(){return jr}static get DATA_KEY(){return Lr}show(){if(lt.trigger(this._element,"show.bs.toast").defaultPrevented)return;this._clearTimeout(),this._config.animation&&this._element.classList.add("fade");const complete=()=>{this._element.classList.remove(Mr),this._element.classList.add(Rr),lt.trigger(this._element,"shown.bs.toast"),this._config.autohide&&(this._timeout=setTimeout((()=>{this.hide()}),this._config.delay))};if(this._element.classList.remove(Ir),reflow(this._element),this._element.classList.add(Mr),this._config.animation){const e=getTransitionDurationFromElement(this._element);lt.one(this._element,"transitionend",complete),emulateTransitionEnd(this._element,e)}else complete()}hide(){if(!this._element.classList.contains(Rr))return;if(lt.trigger(this._element,"hide.bs.toast").defaultPrevented)return;const complete=()=>{this._element.classList.add(Ir),lt.trigger(this._element,"hidden.bs.toast")};if(this._element.classList.remove(Rr),this._config.animation){const e=getTransitionDurationFromElement(this._element);lt.one(this._element,"transitionend",complete),emulateTransitionEnd(this._element,e)}else complete()}dispose(){this._clearTimeout(),this._element.classList.contains(Rr)&&this._element.classList.remove(Rr),lt.off(this._element,Nr),super.dispose(),this._config=null}_getConfig(e){return e={...jr,...dt.getDataAttributes(this._element),..."object"===typeof e&&e?e:{}},typeCheckConfig(Dr,e,this.constructor.DefaultType),e}_setListeners(){lt.on(this._element,Nr,'[data-bs-dismiss="toast"]',(()=>this.hide()))}_clearTimeout(){clearTimeout(this._timeout),this._timeout=null}static jQueryInterface(e){return this.each((function(){let t=tt.get(this,Lr);if(t||(t=new Toast(this,"object"===typeof e&&e)),"string"===typeof e){if("undefined"===typeof t[e])throw new TypeError(`No method named "${e}"`);t[e](this)}}))}}defineJQueryPlugin(Dr,Toast);const Fr=document,Qr=(Fr.body,Fr.getElementById("PageLoading"));var qr=class SpinnerUI{static show(){console.log("_main.loading-spinner: show"),Qr.classList.remove("d-none")}static hide(){console.log("_main.loading-spinner: hide"),Qr.classList.add("d-none")}};const Br="/mnt/data/srv/dist/repositories/silverstripe-webpack/node_modules/.pnpm/@a2nt+ss-bootstrap-ui-webpack-boilerplate-react@3.2.1/node_modules/@a2nt/ss-bootstrap-ui-webpack-boilerplate-react/src/js/_components/_main.links.js";(e=>{const t="_main.links",n=document,r=n.body;class MainUILinks{static init(){const n=this;n.GraphPage=null,console.log(`${t}: init`),n.loaded(),e.addEventListener("popstate",(e=>{n.popState(e)}))}static loaded(){const e=this;n.querySelectorAll(".graphql-page").forEach(((t,n)=>{const r=t.getAttribute("href");t.setAttribute(`data-${e.name}-id`,r),t.addEventListener("click",e.loadClick)}))}static setActiveLinks(e){n.querySelectorAll(`[data-${this.name}-id="${e}"]`).forEach((e=>{e.classList.add("active")}))}static reset(){n.activeElement.blur(),n.querySelectorAll(".graphql-page,.nav-item").forEach((e=>{e.classList.remove("active","loading")}))}static popState(n){const r=this;if(qr.show(),n.state&&n.state.page){console.log(`${t}: [popstate] load`);const e=JSON.parse(n.state.page);e.current=null,e.popstate=!0,r.reset(),r.setActiveLinks(n.state.link),r.GraphPage||(console.log(`${t}: [popstate] GraphPage is missing. Have to render it first`),r.GraphPage=ReactDOM.render(React.createElement(se,{__self:this,__source:{fileName:Br,lineNumber:83}}),document.getElementById("MainContent"))),r.GraphPage.setState(e),qr.hide(),window.dispatchEvent(new Event(D.AJAX))}else n.state&&n.state.landing?(console.log(`${t}: [popstate] go to landing`),e.location.href=n.state.landing):(console.warn(`${t}: [popstate] state is missing`),console.log(n),qr.hide())}static loadClick(i){console.groupCollapsed(`${t}: load on click`),i.preventDefault();const h=MainUILinks,d=i.currentTarget;qr.show(),h.reset(),d.classList.add("loading"),d.classList.remove("response-404","response-500","response-523"),r.classList.add("ajax-loading");const g=(0,ce.getParents)(d,".collapse");g.length&&g.forEach((e=>{const t=Collapse.getInstance(e);t&&t.hide()})),h.GraphPage||(h.GraphPage=ReactDOM.render(React.createElement(se,{__self:this,__source:{fileName:Br,lineNumber:137}}),document.getElementById("MainContent")));const y=d.getAttribute("href")||d.getAttribute("data-href");h.GraphPage.state.current=d,h.GraphPage.load(y).then((e=>{r.classList.remove("ajax-loading"),d.classList.remove("loading"),d.classList.add("active"),n.loading_apollo_link=null,h.GraphPage.state.Link&&(window.history.pushState({page:JSON.stringify(h.GraphPage.state),link:d.getAttribute(`data-${h.name}-id`)},h.GraphPage.state.Title,h.GraphPage.state.Link),h.setActiveLinks(h.GraphPage.state.Link)),qr.hide(),window.dispatchEvent(new Event(D.AJAX)),console.groupEnd(`${t}: load on click`)})).catch((n=>{console.error(`${t}: loading error`),console.log(n),d.classList.add("error",`response-${n.status}`),console.groupEnd(`${t}: load on click`),console.log(`${t}: reloading page ${y}`),e.location.href=y}))}}e.addEventListener(`${D.LOADED}`,(()=>{MainUILinks.init()})),e.addEventListener(`${D.AJAX}`,(()=>{MainUILinks.loaded()}))})(window);const Kr=n(6971);(e=>{const t="_main.lazy-images",n=document,r=(n.body,document.querySelector('meta[name="api_static_domain"]')),i=r?r.getAttribute("content"):`${window.location.protocol}//${window.location.host}`;console.log(`${t} [static url]: ${i}`);const loadLazyImages=()=>{console.log(`${t}: Load lazy images`),n.querySelectorAll("[data-lazy-src]").forEach((e=>{e.classList.remove("empty"),e.classList.add("loading"),e.classList.remove("loading__network-error");const n=e.getAttribute("data-lazy-src"),r=n.startsWith("http")?n:i+n;Kr.get(r,{responseType:"blob"}).then((t=>{const n=new FileReader;n.readAsDataURL(t.data),n.onload=()=>{const t=n.result;e.setAttribute("src",t),e.classList.remove("loading"),e.classList.add("loading__success")}})).catch((n=>{if(n.response){switch(n.response.status){case 404:msg="Not Found.";break;case 500:msg="Server issue, please try again latter.";break;default:msg="Something went wrong."}console.error(`${t} [${r}]: ${msg}`)}else n.request?(msg="No response received",console.error(`${t} [${r}]: ${msg}`)):console.error(`${t} [${r}]: ${n.message}`);e.classList.remove("loading"),e.classList.add("loading__network-error"),e.classList.add("empty")}))}))};e.addEventListener(`${D.LODEDANDREADY}`,loadLazyImages),e.addEventListener(`${D.AJAX}`,loadLazyImages)})(window);(e=>{const t=document,n=t.body;console.info("%cUI Kit ss-webpack-boilerplate 2.0.2","color:yellow;font-size:14px"),console.info("%c@a2nt/meta-lightbox-react 3.1.3","color:yellow;font-size:12px"),console.info("%chttps://github.com/a2nt/webpack-bootstrap-ui-kit by Tony Air ","color:yellow;font-size:10px"),console.info("%cENV: production","color:green;font-size:10px"),console.groupCollapsed("Events"),Object.keys(D).forEach((e=>{console.info(`${e}: ${D[e]}`)})),console.groupEnd("Events"),console.groupCollapsed("Consts"),Object.keys(N).forEach((e=>{console.info(`${e}: ${N[e]}`)})),console.groupEnd("Events"),console.groupCollapsed("Init"),console.time("init");class MainUI{static init(){e.history.replaceState({landing:e.location.href},t.title,e.location.href),this.loaded()}static loaded(){console.log("_main: loaded")}}e.addEventListener(`${D.LOADED}`,(()=>{MainUI.init(),n.classList.add("loaded"),qr.hide(),console.groupEnd("init"),console.timeEnd("init"),e.dispatchEvent(new Event(D.LODEDANDREADY))})),e.addEventListener(`${D.AJAX}`,(()=>{MainUI.loaded()})),e.MainUI=MainUI})(window);var Ur=n(7849),Vr=n.n(Ur);(e=>{const t="js-instagramfeed",n=(document.body,()=>{console.log(`${t}: loading`),document.querySelectorAll(`.${t}`).forEach(((n,r)=>{const i=`InstagramFeed${r}`,h=n.dataset;n.classList.add(`${t}-loading`),n.classList.remove(`${t}-loaded`,`${t}-error`),new(Vr())({username:h.username,tag:h.tag||null,display_profile:h["display-profile"],display_biography:h["display-biography"],display_gallery:h["display-gallery"],display_captions:h["display-captions"],cache_time:h.cache_time||360,items:h.items||12,styling:!1,lazy_load:!0,callback:r=>{console.log(`${t}: data response received`);const h=document.createElement("div");h.classList.add(`${t}-list`,"row"),n.appendChild(h),r.edge_owner_to_timeline_media.edges.forEach(((e,n)=>{const r=e.node,d=(e=>{const t=atob(e),n=t.slice(3).split(""),r=t.substring(0,3).split("").map((e=>e.charCodeAt(0))),i=atob("/9j/4AAQSkZJRgABAQAAAQABAAD/2wCEABsaGikdKUEmJkFCLy8vQkc/Pj4/R0dHR0dHR0dHR0dHR0dHR0dHR0dHR0dHR0dHR0dHR0dHR0dHR0dHR0dHR0cBHSkpNCY0PygoP0c/NT9HR0dHR0dHR0dHR0dHR0dHR0dHR0dHR0dHR0dHR0dHR0dHR0dHR0dHR0dHR0dHR0dHR//AABEIABQAKgMBIgACEQEDEQH/xAGiAAABBQEBAQEBAQAAAAAAAAAAAQIDBAUGBwgJCgsQAAIBAwMCBAMFBQQEAAABfQECAwAEEQUSITFBBhNRYQcicRQygZGhCCNCscEVUtHwJDNicoIJChYXGBkaJSYnKCkqNDU2Nzg5OkNERUZHSElKU1RVVldYWVpjZGVmZ2hpanN0dXZ3eHl6g4SFhoeIiYqSk5SVlpeYmZqio6Slpqeoqaqys7S1tre4ubrCw8TFxsfIycrS09TV1tfY2drh4uPk5ebn6Onq8fLz9PX29/j5+gEAAwEBAQEBAQEBAQAAAAAAAAECAwQFBgcICQoLEQACAQIEBAMEBwUEBAABAncAAQIDEQQFITEGEkFRB2FxEyIygQgUQpGhscEJIzNS8BVictEKFiQ04SXxFxgZGiYnKCkqNTY3ODk6Q0RFRkdISUpTVFVWV1hZWmNkZWZnaGlqc3R1dnd4eXqCg4SFhoeIiYqSk5SVlpeYmZqio6Slpqeoqaqys7S1tre4ubrCw8TFxsfIycrS09TV1tfY2dri4+Tl5ufo6ery8/T19vf4+fr/2gAMAwEAAhEDEQA/AA==").split("");return i[162]=String.fromCharCode(r[1]),i[160]=String.fromCharCode(r[2]),e?`data:image/jpeg;base64,${btoa(i.concat(n).join(""))}`:null})(r.media_preview);h.innerHTML+=`
${r.accessibility_caption}
`})),n.classList.remove(`${t}-loading`),n.classList.add(`${t}-loaded`),e.dispatchEvent(new Event("MetaWindowindow.initLinks")),e.dispatchEvent(new Event(`${t}.loaded`))},on_error:r=>{console.error(`${t}: ${r}`),n.classList.remove(`${t}-loading`),n.classList.add(`${t}-error`),e.dispatchEvent(new Event(`${t}.error`))}})}))});e.addEventListener(`${D.LODEDANDREADY}`,n),e.addEventListener(`${D.AJAX}`,n)})(window);const $r="transitionend",util_getSelector=e=>{let t=e.getAttribute("data-bs-target");if(!t||"#"===t){let n=e.getAttribute("href");if(!n||!n.includes("#")&&!n.startsWith("."))return null;n.includes("#")&&!n.startsWith("#")&&(n="#"+n.split("#")[1]),t=n&&"#"!==n?n.trim():null}return t},util_triggerTransitionEnd=e=>{e.dispatchEvent(new Event($r))},util_getjQuery=()=>{const{jQuery:jQuery}=window;return jQuery&&!document.body.hasAttribute("data-bs-no-jquery")?jQuery:null},util_isRTL=()=>"rtl"===document.documentElement.dir,Hr=new Map;var Wr={set(e,t,n){Hr.has(e)||Hr.set(e,new Map);const r=Hr.get(e);r.has(t)||0===r.size?r.set(t,n):console.error(`Bootstrap doesn't allow more than one instance per element. Bound instance: ${Array.from(r.keys())[0]}.`)},get:(e,t)=>Hr.has(e)&&Hr.get(e).get(t)||null,remove(e,t){if(!Hr.has(e))return;const n=Hr.get(e);n.delete(t),0===n.size&&Hr.delete(e)}};const zr=/[^.]*(?=\..*)\.|.*/,Gr=/\..*/,Yr=/::\d+$/,Jr={};let Xr=1;const Zr={mouseenter:"mouseover",mouseleave:"mouseout"},ei=new Set(["click","dblclick","mouseup","mousedown","contextmenu","mousewheel","DOMMouseScroll","mouseover","mouseout","mousemove","selectstart","selectend","keydown","keypress","keyup","orientationchange","touchstart","touchmove","touchend","touchcancel","pointerdown","pointermove","pointerup","pointerleave","pointercancel","gesturestart","gesturechange","gestureend","focus","blur","change","reset","select","submit","focusin","focusout","load","unload","beforeunload","resize","move","DOMContentLoaded","readystatechange","error","abort","scroll"]);function event_handler_getUidEvent(e,t){return t&&`${t}::${Xr++}`||e.uidEvent||Xr++}function event_handler_getEvent(e){const t=event_handler_getUidEvent(e);return e.uidEvent=t,Jr[t]=Jr[t]||{},Jr[t]}function event_handler_findHandler(e,t,n=null){const r=Object.keys(e);for(let i=0,h=r.length;i{!function event_handler_removeNamespacedHandlers(e,t,n,r){const i=t[n]||{};Object.keys(i).forEach((h=>{if(h.includes(r)){const r=i[h];event_handler_removeHandler(e,t,n,r.originalHandler,r.delegationSelector)}}))}(e,y,n,t.slice(1))}));const b=y[d]||{};Object.keys(b).forEach((n=>{const r=n.replace(Yr,"");if(!g||t.includes(r)){const t=b[n];event_handler_removeHandler(e,y,d,t.originalHandler,t.delegationSelector)}}))},trigger(e,t,n){if("string"!==typeof t||!e)return null;const $=util_getjQuery(),r=t.replace(Gr,""),i=t!==r,h=ei.has(r);let d,g=!0,y=!0,v=!1,b=null;return i&&$&&(d=$.Event(t,n),$(e).trigger(d),g=!d.isPropagationStopped(),y=!d.isImmediatePropagationStopped(),v=d.isDefaultPrevented()),h?(b=document.createEvent("HTMLEvents"),b.initEvent(r,g,!0)):b=new CustomEvent(t,{bubbles:g,cancelable:!0}),"undefined"!==typeof n&&Object.keys(n).forEach((e=>{Object.defineProperty(b,e,{get:()=>n[e]})})),v&&b.preventDefault(),y&&e.dispatchEvent(b),b.defaultPrevented&&"undefined"!==typeof d&&d.preventDefault(),b}};var ni=ti;function manipulator_normalizeData(e){return"true"===e||"false"!==e&&(e===Number(e).toString()?Number(e):""===e||"null"===e?null:e)}function manipulator_normalizeDataKey(e){return e.replace(/[A-Z]/g,(e=>`-${e.toLowerCase()}`))}var ri={setDataAttribute(e,t,n){e.setAttribute(`data-bs-${manipulator_normalizeDataKey(t)}`,n)},removeDataAttribute(e,t){e.removeAttribute(`data-bs-${manipulator_normalizeDataKey(t)}`)},getDataAttributes(e){if(!e)return{};const t={};return Object.keys(e.dataset).filter((e=>e.startsWith("bs"))).forEach((n=>{let r=n.replace(/^bs/,"");r=r.charAt(0).toLowerCase()+r.slice(1,r.length),t[r]=manipulator_normalizeData(e.dataset[n])})),t},getDataAttribute:(e,t)=>manipulator_normalizeData(e.getAttribute(`data-bs-${manipulator_normalizeDataKey(t)}`)),offset(e){const t=e.getBoundingClientRect();return{top:t.top+document.body.scrollTop,left:t.left+document.body.scrollLeft}},position:e=>({top:e.offsetTop,left:e.offsetLeft})};var ii={find:(e,t=document.documentElement)=>[].concat(...Element.prototype.querySelectorAll.call(t,e)),findOne:(e,t=document.documentElement)=>Element.prototype.querySelector.call(t,e),children:(e,t)=>[].concat(...e.children).filter((e=>e.matches(t))),parents(e,t){const n=[];let r=e.parentNode;for(;r&&r.nodeType===Node.ELEMENT_NODE&&3!==r.nodeType;)r.matches(t)&&n.push(r),r=r.parentNode;return n},prev(e,t){let n=e.previousElementSibling;for(;n;){if(n.matches(t))return[n];n=n.previousElementSibling}return[]},next(e,t){let n=e.nextElementSibling;for(;n;){if(n.matches(t))return[n];n=n.nextElementSibling}return[]}};var oi=class base_component_BaseComponent{constructor(e){(e="string"===typeof e?document.querySelector(e):e)&&(this._element=e,Wr.set(this._element,this.constructor.DATA_KEY,this))}dispose(){Wr.remove(this._element,this.constructor.DATA_KEY),this._element=null}static getInstance(e){return Wr.get(e,this.DATA_KEY)}static get VERSION(){return"5.0.0-beta3"}};const si="carousel",ai="bs.carousel",ci=".bs.carousel",li={interval:5e3,keyboard:!0,slide:!1,pause:"hover",wrap:!0,touch:!0},ui={interval:"(number|boolean)",keyboard:"boolean",slide:"(boolean|string)",pause:"(string|boolean)",wrap:"boolean",touch:"boolean"},pi="next",hi="prev",di="left",fi="right",mi="slid.bs.carousel",gi="active",yi=".active.carousel-item",vi="touch";class carousel_Carousel extends oi{constructor(e,t){super(e),this._items=null,this._interval=null,this._activeElement=null,this._isPaused=!1,this._isSliding=!1,this.touchTimeout=null,this.touchStartX=0,this.touchDeltaX=0,this._config=this._getConfig(t),this._indicatorsElement=ii.findOne(".carousel-indicators",this._element),this._touchSupported="ontouchstart"in document.documentElement||navigator.maxTouchPoints>0,this._pointerEvent=Boolean(window.PointerEvent),this._addEventListeners()}static get Default(){return li}static get DATA_KEY(){return ai}next(){this._isSliding||this._slide(pi)}nextWhenVisible(){!document.hidden&&(e=>{if(!e)return!1;if(e.style&&e.parentNode&&e.parentNode.style){const t=getComputedStyle(e),n=getComputedStyle(e.parentNode);return"none"!==t.display&&"none"!==n.display&&"hidden"!==t.visibility}return!1})(this._element)&&this.next()}prev(){this._isSliding||this._slide(hi)}pause(e){e||(this._isPaused=!0),ii.findOne(".carousel-item-next, .carousel-item-prev",this._element)&&(util_triggerTransitionEnd(this._element),this.cycle(!0)),clearInterval(this._interval),this._interval=null}cycle(e){e||(this._isPaused=!1),this._interval&&(clearInterval(this._interval),this._interval=null),this._config&&this._config.interval&&!this._isPaused&&(this._updateInterval(),this._interval=setInterval((document.visibilityState?this.nextWhenVisible:this.next).bind(this),this._config.interval))}to(e){this._activeElement=ii.findOne(yi,this._element);const t=this._getItemIndex(this._activeElement);if(e>this._items.length-1||e<0)return;if(this._isSliding)return void ni.one(this._element,mi,(()=>this.to(e)));if(t===e)return this.pause(),void this.cycle();const n=e>t?pi:hi;this._slide(n,this._items[e])}dispose(){ni.off(this._element,ci),this._items=null,this._config=null,this._interval=null,this._isPaused=null,this._isSliding=null,this._activeElement=null,this._indicatorsElement=null,super.dispose()}_getConfig(e){return e={...li,...e},((e,t,n)=>{Object.keys(n).forEach((r=>{const i=n[r],h=t[r],d=h&&((g=h)[0]||g).nodeType?"element":(e=>null===e||void 0===e?`${e}`:{}.toString.call(e).match(/\s([a-z]+)/i)[1].toLowerCase())(h);var g;if(!new RegExp(i).test(d))throw new TypeError(`${e.toUpperCase()}: Option "${r}" provided type "${d}" but expected type "${i}".`)}))})(si,e,ui),e}_handleSwipe(){const e=Math.abs(this.touchDeltaX);if(e<=40)return;const t=e/this.touchDeltaX;this.touchDeltaX=0,t&&this._slide(t>0?fi:di)}_addEventListeners(){this._config.keyboard&&ni.on(this._element,"keydown.bs.carousel",(e=>this._keydown(e))),"hover"===this._config.pause&&(ni.on(this._element,"mouseenter.bs.carousel",(e=>this.pause(e))),ni.on(this._element,"mouseleave.bs.carousel",(e=>this.cycle(e)))),this._config.touch&&this._touchSupported&&this._addTouchEventListeners()}_addTouchEventListeners(){const start=e=>{!this._pointerEvent||"pen"!==e.pointerType&&e.pointerType!==vi?this._pointerEvent||(this.touchStartX=e.touches[0].clientX):this.touchStartX=e.clientX},move=e=>{this.touchDeltaX=e.touches&&e.touches.length>1?0:e.touches[0].clientX-this.touchStartX},end=e=>{!this._pointerEvent||"pen"!==e.pointerType&&e.pointerType!==vi||(this.touchDeltaX=e.clientX-this.touchStartX),this._handleSwipe(),"hover"===this._config.pause&&(this.pause(),this.touchTimeout&&clearTimeout(this.touchTimeout),this.touchTimeout=setTimeout((e=>this.cycle(e)),500+this._config.interval))};ii.find(".carousel-item img",this._element).forEach((e=>{ni.on(e,"dragstart.bs.carousel",(e=>e.preventDefault()))})),this._pointerEvent?(ni.on(this._element,"pointerdown.bs.carousel",(e=>start(e))),ni.on(this._element,"pointerup.bs.carousel",(e=>end(e))),this._element.classList.add("pointer-event")):(ni.on(this._element,"touchstart.bs.carousel",(e=>start(e))),ni.on(this._element,"touchmove.bs.carousel",(e=>move(e))),ni.on(this._element,"touchend.bs.carousel",(e=>end(e))))}_keydown(e){/input|textarea/i.test(e.target.tagName)||("ArrowLeft"===e.key?(e.preventDefault(),this._slide(di)):"ArrowRight"===e.key&&(e.preventDefault(),this._slide(fi)))}_getItemIndex(e){return this._items=e&&e.parentNode?ii.find(".carousel-item",e.parentNode):[],this._items.indexOf(e)}_getItemByOrder(e,t){const n=e===pi,r=e===hi,i=this._getItemIndex(t),h=this._items.length-1;if((r&&0===i||n&&i===h)&&!this._config.wrap)return t;const d=(i+(r?-1:1))%this._items.length;return-1===d?this._items[this._items.length-1]:this._items[d]}_triggerSlideEvent(e,t){const n=this._getItemIndex(e),r=this._getItemIndex(ii.findOne(yi,this._element));return ni.trigger(this._element,"slide.bs.carousel",{relatedTarget:e,direction:t,from:r,to:n})}_setActiveIndicatorElement(e){if(this._indicatorsElement){const t=ii.findOne(".active",this._indicatorsElement);t.classList.remove(gi),t.removeAttribute("aria-current");const n=ii.find("[data-bs-target]",this._indicatorsElement);for(let r=0;r{e.offsetHeight})(h),r.classList.add(v),h.classList.add(v);const e=(e=>{if(!e)return 0;let{transitionDuration:t,transitionDelay:n}=window.getComputedStyle(e);const r=Number.parseFloat(t),i=Number.parseFloat(n);return r||i?(t=t.split(",")[0],n=n.split(",")[0],1e3*(Number.parseFloat(t)+Number.parseFloat(n))):0})(r);ni.one(r,"transitionend",(()=>{h.classList.remove(v,b),h.classList.add(gi),r.classList.remove(gi,b,v),this._isSliding=!1,setTimeout((()=>{ni.trigger(this._element,mi,{relatedTarget:h,direction:_,from:i,to:d})}),0)})),((e,t)=>{let n=!1;const r=t+5;e.addEventListener($r,(function listener(){n=!0,e.removeEventListener($r,listener)})),setTimeout((()=>{n||util_triggerTransitionEnd(e)}),r)})(r,e)}else r.classList.remove(gi),h.classList.add(gi),this._isSliding=!1,ni.trigger(this._element,mi,{relatedTarget:h,direction:_,from:i,to:d});g&&this.cycle()}}_directionToOrder(e){return[fi,di].includes(e)?util_isRTL()?e===fi?hi:pi:e===fi?pi:hi:e}_orderToDirection(e){return[pi,hi].includes(e)?util_isRTL()?e===pi?di:fi:e===pi?fi:di:e}static carouselInterface(e,t){let n=Wr.get(e,ai),r={...li,...ri.getDataAttributes(e)};"object"===typeof t&&(r={...r,...t});const i="string"===typeof t?t:r.slide;if(n||(n=new carousel_Carousel(e,r)),"number"===typeof t)n.to(t);else if("string"===typeof i){if("undefined"===typeof n[i])throw new TypeError(`No method named "${i}"`);n[i]()}else r.interval&&r.ride&&(n.pause(),n.cycle())}static jQueryInterface(e){return this.each((function(){carousel_Carousel.carouselInterface(this,e)}))}static dataApiClickHandler(e){const t=(e=>{const t=util_getSelector(e);return t?document.querySelector(t):null})(this);if(!t||!t.classList.contains("carousel"))return;const n={...ri.getDataAttributes(t),...ri.getDataAttributes(this)},r=this.getAttribute("data-bs-slide-to");r&&(n.interval=!1),carousel_Carousel.carouselInterface(t,n),r&&Wr.get(t,ai).to(r),e.preventDefault()}}ni.on(document,"click.bs.carousel.data-api","[data-bs-slide], [data-bs-slide-to]",carousel_Carousel.dataApiClickHandler),ni.on(window,"load.bs.carousel.data-api",(()=>{const e=ii.find('[data-bs-ride="carousel"]');for(let t=0,n=e.length;t{var n;n=()=>{const $=util_getjQuery();if($){const n=$.fn[e];$.fn[e]=t.jQueryInterface,$.fn[e].Constructor=t,$.fn[e].noConflict=()=>($.fn[e]=n,t.jQueryInterface)}},"loading"===document.readyState?document.addEventListener("DOMContentLoaded",n):n()})(si,carousel_Carousel);var bi=carousel_Carousel;(e=>{const t="js-carousel",init=()=>{console.log(`${t}: init`),document.querySelectorAll(`.${t}`).forEach(((e,n)=>{new bi(e);e.classList.add(`${t}-active`)}))};e.addEventListener(`${D.LODEDANDREADY}`,init),e.addEventListener(`${D.AJAX}`,init)})(window);(e=>{const t=document;t.body;e.addEventListener(`${D.LOADED}`,(()=>{(()=>{console.log("_layout: init_fonts");const e=t.createElement("link");e.rel="stylesheet",e.type="text/css",e.media="all",e.href="https://fonts.googleapis.com/css?family=Roboto:ital,wght@0,400;0,700;1,400&display=swap",t.getElementsByTagName("head")[0].appendChild(e)})()}))})(window);if("serviceWorker"in navigator){const e=(document.getElementsByTagName("base")[0]||{}).href,t=(document.querySelector('meta[name="swversion"]')||{}).content;e&&navigator.serviceWorker.register(`${e}sw.js?v=${t}`).then((()=>{console.log("Service Worker Registered")}))}function importAll(e){return e.keys().map(e)}importAll(n(6999)),importAll(n(3429))},9900:function(e){const t={getParents:(e,t)=>{const n=[];let r=e;for(;r&&r!==document;)t?r.matches(t)&&n.push(r):n.push(r),r=r.parentNode;return n}};e.exports=t,e.exports.default=t},4580:function(e,t,n){"use strict";n.d(t,{h4:function(){return Y},ab:function(){return H}});var defaultMakeData=function(){return Object.create(null)},r=Array.prototype,i=r.forEach,h=r.slice,d=function(){function Trie(e,t){void 0===e&&(e=!0),void 0===t&&(t=defaultMakeData),this.weakness=e,this.makeData=t}return Trie.prototype.lookup=function(){for(var e=[],t=0;tthis.max;)this.delete(this.oldest.key)},Cache.prototype.delete=function(e){var t=this.map.get(e);return!!t&&(t===this.newest&&(this.newest=t.older),t===this.oldest&&(this.oldest=t.newer),t.newer&&(t.newer.older=t.older),t.older&&(t.older.newer=t.newer),this.map.delete(e),this.dispose(t.value,e),!0)},Cache}(),S=new w;function maybeUnsubscribe(e){var t=e.unsubscribe;"function"===typeof t&&(e.unsubscribe=void 0,t())}var k=[];function assert(e,t){if(!e)throw new Error(t||"assertion failure")}function valueGet(e){switch(e.length){case 0:throw new Error("unknown value");case 1:return e[0];case 2:throw e[1]}}var O=function(){function Entry(e){this.fn=e,this.parents=new Set,this.childValues=new Map,this.dirtyChildren=null,this.dirty=!0,this.recomputing=!1,this.value=[],this.deps=null,++Entry.count}return Entry.prototype.peek=function(){if(1===this.value.length&&!mightBeDirty(this))return this.value[0]},Entry.prototype.recompute=function(e){return assert(!this.recomputing,"already recomputing"),function rememberParent(e){var t=S.getValue();if(t)return e.parents.add(t),t.childValues.has(e)||t.childValues.set(e,[]),mightBeDirty(e)?reportDirtyChild(t,e):reportCleanChild(t,e),t}(this),mightBeDirty(this)?function reallyRecompute(e,t){forgetChildren(e),S.withValue(e,recomputeNewValue,[e,t]),function maybeSubscribe(e,t){if("function"===typeof e.subscribe)try{maybeUnsubscribe(e),e.unsubscribe=e.subscribe.apply(null,t)}catch(n){return e.setDirty(),!1}return!0}(e,t)&&function setClean(e){if(e.dirty=!1,mightBeDirty(e))return;reportClean(e)}(e);return valueGet(e.value)}(this,e):valueGet(this.value)},Entry.prototype.setDirty=function(){this.dirty||(this.dirty=!0,this.value.length=0,reportDirty(this),forgetChildren(this),maybeUnsubscribe(this))},Entry.prototype.dispose=function(){var e=this;forgetChildren(this),maybeUnsubscribe(this),this.parents.forEach((function(t){t.setDirty(),forgetChild(t,e)}))},Entry.prototype.dependOn=function(e){e.add(this),this.deps||(this.deps=k.pop()||new Set),this.deps.add(e)},Entry.prototype.forgetDeps=function(){var e=this;this.deps&&(this.deps.forEach((function(t){return t.delete(e)})),this.deps.clear(),k.push(this.deps),this.deps=null)},Entry.count=0,Entry}();function recomputeNewValue(e,t){e.recomputing=!0,e.value.length=0;try{e.value[0]=e.fn.apply(null,t)}catch(n){e.value[1]=n}e.recomputing=!1}function mightBeDirty(e){return e.dirty||!(!e.dirtyChildren||!e.dirtyChildren.size)}function reportDirty(e){e.parents.forEach((function(t){return reportDirtyChild(t,e)}))}function reportClean(e){e.parents.forEach((function(t){return reportCleanChild(t,e)}))}function reportDirtyChild(e,t){if(assert(e.childValues.has(t)),assert(mightBeDirty(t)),e.dirtyChildren){if(e.dirtyChildren.has(t))return}else e.dirtyChildren=k.pop()||new Set;e.dirtyChildren.add(t),reportDirty(e)}function reportCleanChild(e,t){assert(e.childValues.has(t)),assert(!mightBeDirty(t));var n=e.childValues.get(t);0===n.length?e.childValues.set(t,function valueCopy(e){return e.slice(0)}(t.value)):function valueIs(e,t){var n=e.length;return n>0&&n===t.length&&e[n-1]===t[n-1]}(n,t.value)||e.setDirty(),removeDirtyChild(e,t),mightBeDirty(e)||reportClean(e)}function removeDirtyChild(e,t){var n=e.dirtyChildren;n&&(n.delete(t),0===n.size&&(k.length<100&&k.push(n),e.dirtyChildren=null))}function forgetChildren(e){e.childValues.size>0&&e.childValues.forEach((function(t,n){forgetChild(e,n)})),e.forgetDeps(),assert(null===e.dirtyChildren)}function forgetChild(e,t){t.parents.delete(e),e.childValues.delete(t),removeDirtyChild(e,t)}function dep(e){var t=new Map,n=e&&e.subscribe;function depend(e){var r=S.getValue();if(r){var i=t.get(e);i||t.set(e,i=new Set),r.dependOn(i),"function"===typeof n&&(maybeUnsubscribe(i),i.unsubscribe=n(e))}}return depend.dirty=function dirty(e){var n=t.get(e);n&&(n.forEach((function(e){return e.setDirty()})),t.delete(e),maybeUnsubscribe(n))},depend}var C=new d("function"===typeof WeakMap);function defaultMakeCacheKey(){for(var e=[],t=0;t0){var t=--this.rootIds[e];return t||delete this.rootIds[e],t}return 0},EntityStore.prototype.getRootIdSet=function(e){return void 0===e&&(e=new Set),Object.keys(this.rootIds).forEach(e.add,e),this instanceof B?this.parent.getRootIdSet(e):Object.keys(this.policies.rootTypenamesById).forEach(e.add,e),e},EntityStore.prototype.gc=function(){var e=this,t=this.getRootIdSet(),n=this.toObject();t.forEach((function(r){M.call(n,r)&&(Object.keys(e.findChildRefIds(r)).forEach(t.add,t),delete n[r])}));var r=Object.keys(n);if(r.length){for(var i=this;i instanceof B;)i=i.parent;r.forEach((function(e){return i.delete(e)}))}return r},EntityStore.prototype.findChildRefIds=function(e){if(!M.call(this.refs,e)){var t=this.refs[e]=Object.create(null),n=new Set([this.data[e]]),canTraverse_1=function(e){return null!==e&&"object"===typeof e};n.forEach((function(e){(0,A.hh)(e)?t[e.__ref]=!0:canTraverse_1(e)&&Object.values(e).filter(canTraverse_1).forEach(n.add,n)}))}return this.refs[e]},EntityStore.prototype.makeCacheKey=function(){for(var e=[],t=0;t0;if(b&&!g)throw v.missing[0];return{result:v.result,missing:v.missing,complete:!b}},StoreReader.prototype.isFresh=function(e,t,n,r){if(supportsResultCaching(r.store)&&this.knownResults.get(e)===n){var i=this.executeSelectionSet.peek(n,t,r);if(i&&e===i.result)return!0}return!1},StoreReader.prototype.execSelectionSetImpl=function(e){var t=this,n=e.selectionSet,r=e.objectOrReference,i=e.context;if((0,A.hh)(r)&&!i.policies.rootTypenamesById[r.__ref]&&!i.store.has(r.__ref))return{result:{},missing:[missingFromInvariant(new I.ej(4),i)]};var h=i.variables,d=i.policies,g=i.store,y=[],v={result:null},b=g.getFieldValue(r,"__typename");function getMissing(){return v.missing||(v.missing=[])}function handleMissing(e){var t;return e.missing&&(t=getMissing()).push.apply(t,e.missing),e.result}this.config.addTypename&&"string"===typeof b&&!d.rootIdsByTypename[b]&&y.push({__typename:b});var _=new Set(n.selections);return _.forEach((function(e){var n;if((0,A.LZ)(e,h))if((0,A.My)(e)){var g=d.readField({fieldName:e.name.value,field:e,variables:i.variables,from:r},i),v=(0,A.u2)(e);i.path.push(v);var w=i.clientOnly;i.clientOnly=w||!(!e.directives||!e.directives.some((function(e){return"client"===e.name.value}))),void 0===g?A.Gw.added(e)||getMissing().push(missingFromInvariant(new I.ej(5),i)):Array.isArray(g)?g=handleMissing(t.executeSubSelectedArray({field:e,array:g,context:i})):e.selectionSet&&null!=g&&(g=handleMissing(t.executeSelectionSet({selectionSet:e.selectionSet,objectOrReference:g,context:i}))),void 0!==g&&y.push(((n={})[v]=g,n)),i.clientOnly=w,(0,I.kG)(i.path.pop()===v)}else{var E=(0,A.hi)(e,i.fragmentMap);E&&d.fragmentMatches(E,b)&&E.selectionSet.selections.forEach(_.add,_)}})),v.result=(0,A.bw)(y),this.knownResults.set(v.result,n),v},StoreReader.prototype.execSubSelectedArrayImpl=function(e){var t,n=this,r=e.field,i=e.array,h=e.context;function handleMissing(e,n){return e.missing&&(t=t||[]).push.apply(t,e.missing),(0,I.kG)(h.path.pop()===n),e.result}return r.selectionSet&&(i=i.filter(h.store.canRead)),{result:i=i.map((function(e,t){return null===e?null:(h.path.push(t),Array.isArray(e)?handleMissing(n.executeSubSelectedArray({field:r,array:e,context:h}),t):r.selectionSet?handleMissing(n.executeSelectionSet({selectionSet:r.selectionSet,objectOrReference:e,context:h}),t):((0,I.kG)(h.path.pop()===t),e))})),missing:t}},StoreReader}();var U=function(){function StoreWriter(e,t){this.cache=e,this.reader=t}return StoreWriter.prototype.writeToStore=function(e){var t=e.query,n=e.result,r=e.dataId,i=e.store,h=e.variables,d=(0,A.$H)(t),g=function makeProcessedFieldsMerger(){return new A.w0}();h=(0,N.pi)((0,N.pi)({},(0,A.O4)(d)),h);var y=this.processSelectionSet({result:n||Object.create(null),dataId:r,selectionSet:d.selectionSet,mergeTree:{map:new Map},context:{store:i,written:Object.create(null),merge:function(e,t){return g.merge(e,t)},variables:h,varString:JSON.stringify(h),fragmentMap:(0,A.F)((0,A.kU)(t))}});if(!(0,A.hh)(y))throw new I.ej(7);return i.retain(y.__ref),y},StoreWriter.prototype.processSelectionSet=function(e){var t=this,n=e.dataId,r=e.result,i=e.selectionSet,h=e.context,d=e.mergeTree,g=this.cache.policies,y=g.identify(r,i,h.fragmentMap),v=y[0],b=y[1];if("string"===typeof(n=n||v)){var _=h.written[n]||(h.written[n]=[]),w=(0,A.kQ)(n);if(_.indexOf(i)>=0)return w;if(_.push(i),this.reader&&this.reader.isFresh(r,w,i,h))return w}var E=Object.create(null);b&&(E=h.merge(E,b));var S=n&&g.rootTypenamesById[n]||(0,A.qw)(r,i,h.fragmentMap)||n&&h.store.get(n,"__typename");"string"===typeof S&&(E.__typename=S);var k=new Set(i.selections);if(k.forEach((function(e){var n;if((0,A.LZ)(e,h.variables))if((0,A.My)(e)){var i=(0,A.u2)(e),y=r[i];if("undefined"!==typeof y){var v=g.getStoreFieldName({typename:S,fieldName:e.name.value,field:e,variables:h.variables}),b=getChildMergeTree(d,v),_=t.processFieldValue(y,e,h,b),w=e.selectionSet&&h.store.getFieldValue(_,"__typename")||void 0,O=g.getMergeFunction(S,e.name.value,w);O?b.info={field:e,typename:S,merge:O}:maybeRecycleChildMergeTree(d,v),E=h.merge(E,((n={})[v]=_,n))}else if(g.usingPossibleTypes&&!(0,A.FS)(["defer","client"],e))throw new I.ej(8)}else{var C=(0,A.hi)(e,h.fragmentMap);C&&g.fragmentMatches(C,S,r,h.variables)&&C.selectionSet.selections.forEach(k.add,k)}})),"string"===typeof n){var O=(0,A.kQ)(n);return d.map.size&&(E=this.applyMerges(d,O,E,h)),h.store.merge(n,E),O}return E},StoreWriter.prototype.processFieldValue=function(e,t,n,r){var i=this;return t.selectionSet&&null!==e?Array.isArray(e)?e.map((function(e,h){var d=i.processFieldValue(e,t,n,getChildMergeTree(r,h));return maybeRecycleChildMergeTree(r,h),d})):this.processSelectionSet({result:e,selectionSet:t.selectionSet,context:n,mergeTree:r}):e},StoreWriter.prototype.applyMerges=function(e,t,n,r,i){var h,d=this;if(e.map.size&&!(0,A.hh)(n)){var g,y=Array.isArray(n)||!(0,A.hh)(t)&&!storeValueIsStoreObject(t)?void 0:t,v=n;y&&!i&&(i=[(0,A.hh)(y)?y.__ref:y]);var getValue_1=function(e,t){return Array.isArray(e)?"number"===typeof t?e[t]:void 0:r.store.getFieldValue(e,String(t))};e.map.forEach((function(e,t){i&&i.push(t);var n=getValue_1(y,t),h=getValue_1(v,t),b=d.applyMerges(e,n,h,r,i);b!==h&&(g=g||new Map).set(t,b),i&&(0,I.kG)(i.pop()===t)})),g&&(n=Array.isArray(v)?v.slice(0):(0,N.pi)({},v),g.forEach((function(e,t){n[t]=e})))}return e.info?this.cache.policies.runMergeFunction(t,n,e.info,r,i&&(h=r.store).getStorage.apply(h,i)):n},StoreWriter}(),V=[];function getChildMergeTree(e,t){var n=e.map;return n.has(t)||n.set(t,V.pop()||{map:new Map}),n.get(t)}function maybeRecycleChildMergeTree(e,t){var n=e.map,r=n.get(t);!r||r.info||r.map.size||(V.push(r),n.delete(t))}new Set;var H=new w,W=new WeakMap;function getCacheInfo(e){var t=W.get(e);return t||W.set(e,t={vars:new Set,dep:dep()}),t}function makeVar(e){var t=new Set,n=new Set,rv=function(i){if(arguments.length>0){if(e!==i){e=i,t.forEach((function(e){getCacheInfo(e).dep.dirty(rv),broadcast(e)}));var h=Array.from(n);n.clear(),h.forEach((function(t){return t(e)}))}}else{var d=H.getValue();d&&(r(d),getCacheInfo(d).dep(rv))}return e};rv.onNextChange=function(e){return n.add(e),function(){n.delete(e)}};var r=rv.attachCache=function(e){return t.add(e),getCacheInfo(e).vars.add(rv),rv};return rv.forgetCache=function(e){return t.delete(e)},rv}function broadcast(e){e.broadcastWatches&&e.broadcastWatches()}function argsFromFieldSpecifier(e){return void 0!==e.args?e.args:e.field?(0,A.NC)(e.field,e.variables):null}var defaultDataIdFromObject=function(e,t){var n=e.__typename,r=e.id,i=e._id;if("string"===typeof n&&(t&&(t.keyObject=void 0!==r?{id:r}:void 0!==i?{_id:i}:void 0),void 0===r&&(r=i),void 0!==r))return n+":"+("number"===typeof r||"string"===typeof r?r:JSON.stringify(r))},nullKeyFieldsFn=function(){},simpleKeyArgsFn=function(e,t){return t.fieldName},mergeTrueFn=function(e,t,n){return(0,n.mergeObjects)(e,t)},mergeFalseFn=function(e,t){return t},z=function(){function Policies(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,N.pi)({dataIdFromObject:defaultDataIdFromObject},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 Policies.prototype.identify=function(e,t,n){var r=t&&n?(0,A.qw)(e,t,n):e.__typename;if(r===this.rootTypenamesById.ROOT_QUERY)return["ROOT_QUERY"];for(var i,h={typename:r,selectionSet:t,fragmentMap:n},d=r&&this.getTypePolicy(r),g=d&&d.keyFn||this.config.dataIdFromObject;g;){var y=g(e,h);if(!Array.isArray(y)){i=y;break}g=keyFieldsFnFromSpecifier(y)}return i=i?String(i):void 0,h.keyObject?[i,h.keyObject]:[i]},Policies.prototype.addTypePolicies=function(e){var t=this;Object.keys(e).forEach((function(n){var r=e[n],i=r.queryType,h=r.mutationType,d=r.subscriptionType,g=(0,N._T)(r,["queryType","mutationType","subscriptionType"]);i&&t.setRootTypename("Query",n),h&&t.setRootTypename("Mutation",n),d&&t.setRootTypename("Subscription",n),M.call(t.toBeAdded,n)?t.toBeAdded[n].push(g):t.toBeAdded[n]=[g]}))},Policies.prototype.updateTypePolicy=function(e,t){var n=this,r=this.getTypePolicy(e),i=t.keyFields,h=t.fields;function setMerge(e,t){e.merge="function"===typeof t?t:!0===t?mergeTrueFn:!1===t?mergeFalseFn:e.merge}setMerge(r,t.merge),r.keyFn=!1===i?nullKeyFieldsFn:Array.isArray(i)?keyFieldsFnFromSpecifier(i):"function"===typeof i?i:r.keyFn,h&&Object.keys(h).forEach((function(t){var r=n.getFieldPolicy(e,t,!0),i=h[t];if("function"===typeof i)r.read=i;else{var d=i.keyArgs,g=i.read,y=i.merge;r.keyFn=!1===d?simpleKeyArgsFn:Array.isArray(d)?keyArgsFnFromSpecifier(d):"function"===typeof d?d:r.keyFn,"function"===typeof g&&(r.read=g),setMerge(r,y)}r.read&&r.merge&&(r.keyFn=r.keyFn||simpleKeyArgsFn)}))},Policies.prototype.setRootTypename=function(e,t){void 0===t&&(t=e);var n="ROOT_"+e.toUpperCase(),r=this.rootTypenamesById[n];t!==r&&((0,I.kG)(!r||r===e,1),r&&delete this.rootIdsByTypename[r],this.rootIdsByTypename[t]=n,this.rootTypenamesById[n]=t)},Policies.prototype.addPossibleTypes=function(e){var t=this;this.usingPossibleTypes=!0,Object.keys(e).forEach((function(n){t.getSupertypeSet(n,!0),e[n].forEach((function(e){t.getSupertypeSet(e,!0).add(n);var r=e.match(P);r&&r[0]===e||t.fuzzySubtypes.set(e,new RegExp(e))}))}))},Policies.prototype.getTypePolicy=function(e){var t=this;if(!M.call(this.typePolicies,e)){var n=this.typePolicies[e]=Object.create(null);n.fields=Object.create(null);var r=this.supertypeMap.get(e);r&&r.size&&r.forEach((function(e){var r=t.getTypePolicy(e),i=r.fields,h=(0,N._T)(r,["fields"]);Object.assign(n,h),Object.assign(n.fields,i)}))}var i=this.toBeAdded[e];return i&&i.length&&this.updateTypePolicy(e,A.oA.apply(void 0,i.splice(0))),this.typePolicies[e]},Policies.prototype.getFieldPolicy=function(e,t,n){if(e){var r=this.getTypePolicy(e).fields;return r[t]||n&&(r[t]=Object.create(null))}},Policies.prototype.getSupertypeSet=function(e,t){var n=this.supertypeMap.get(e);return!n&&t&&this.supertypeMap.set(e,n=new Set),n},Policies.prototype.fragmentMatches=function(e,t,n,r){var i=this;if(!e.typeCondition)return!0;if(!t)return!1;var h=e.typeCondition.name.value;if(t===h)return!0;if(this.usingPossibleTypes&&this.supertypeMap.has(h))for(var d=this.getSupertypeSet(t,!0),g=[d],maybeEnqueue_1=function(e){var t=i.getSupertypeSet(e,!1);t&&t.size&&g.indexOf(t)<0&&g.push(t)},y=!(!n||!this.fuzzySubtypes.size),v=0;v=e.lastRequestId){if(h&&"none"===n.errorPolicy)throw e.markError(new v.c({graphQLErrors:i.errors}));e.markResult(i,n,t),e.markReady()}var g={data:i.data,loading:!1,networkStatus:e.networkStatus||_.I.ready};return h&&"ignore"!==n.errorPolicy&&(g.errors=i.errors),g}),(function(t){var n=(0,v.M)(t)?t:new v.c({networkError:t});throw r>=e.lastRequestId&&e.markError(n),n}))},QueryManager.prototype.fetchQueryObservable=function(e,t,n){var r=this;void 0===n&&(n=_.I.loading);var i=this.transform(t.query).document,h=this.getVariables(i,t.variables),g=this.getQuery(e),y=g.networkStatus,v=t.fetchPolicy,b=void 0===v?"cache-first":v,w=t.errorPolicy,E=void 0===w?"none":w,S=t.returnPartialData,k=void 0!==S&&S,O=t.notifyOnNetworkStatusChange,C=void 0!==O&&O,T=t.context,x=void 0===T?{}:T;("cache-first"===b||"cache-and-network"===b||"network-only"===b||"no-cache"===b)&&C&&"number"===typeof y&&y!==n&&(0,_.O)(n)&&("cache-first"!==b&&(b="cache-and-network"),k=!0);var A=Object.assign({},t,{query:i,variables:h,fetchPolicy:b,errorPolicy:E,returnPartialData:k,notifyOnNetworkStatusChange:C,context:x}),fromVariables=function(e){return A.variables=e,r.fetchQueryByPolicy(g,A,n)};this.fetchCancelFns.set(e,(function(e){Promise.resolve().then((function(){return D.cancel(e)}))}));var D=new d.X_(this.transform(A.query).hasClientExports?this.localState.addExportedVariables(A.query,A.variables,A.context).then(fromVariables):fromVariables(A.variables));return D.cleanup((function(){r.fetchCancelFns.delete(e);var n=t.nextFetchPolicy;n&&(t.nextFetchPolicy=void 0,t.fetchPolicy="function"===typeof n?n.call(t,t.fetchPolicy||"cache-first"):n)})),D},QueryManager.prototype.fetchQueryByPolicy=function(e,t,n){var i=this,h=t.query,g=t.variables,y=t.fetchPolicy,v=t.errorPolicy,b=t.returnPartialData,w=t.context;e.init({document:h,variables:g,networkStatus:n});var readCache=function(){return e.getDiff(g)},resultsFromCache=function(t,n){void 0===n&&(n=e.networkStatus||_.I.loading);var y=t.result;var fromData=function(e){return d.y$.of((0,r.pi)({data:e,loading:(0,_.O)(n),networkStatus:n},t.complete?null:{partial:!0}))};return i.transform(h).hasForcedResolvers?i.localState.runResolvers({document:h,remoteResult:{data:y},context:w,variables:g,onlyRunForcedResolvers:!0}).then((function(e){return fromData(e.data)})):fromData(y)},resultsFromLink=function(t){return i.getResultsFromLink(e,t,{variables:g,context:w,fetchPolicy:y,errorPolicy:v})};switch(y){default:case"cache-first":return(E=readCache()).complete?[resultsFromCache(E,e.markReady())]:b?[resultsFromCache(E),resultsFromLink(!0)]:[resultsFromLink(!0)];case"cache-and-network":var E;return(E=readCache()).complete||b?[resultsFromCache(E),resultsFromLink(!0)]:[resultsFromLink(!0)];case"cache-only":return[resultsFromCache(readCache(),e.markReady())];case"network-only":return[resultsFromLink(!0)];case"no-cache":return[resultsFromLink(!1)];case"standby":return[]}},QueryManager.prototype.getQuery=function(e){return e&&!this.queries.has(e)&&this.queries.set(e,new O(this.cache)),this.queries.get(e)},QueryManager.prototype.prepareContext=function(e){void 0===e&&(e={});var t=this.localState.prepareContext(e);return(0,r.pi)((0,r.pi)({},t),{clientAwareness:this.clientAwareness})},QueryManager}();function mergeOptions(e,t){return(0,d.oA)(e,t,t.variables&&{variables:(0,r.pi)((0,r.pi)({},e.variables),t.variables)})}var x=function(){function ApolloClient(e){var t=this;this.defaultOptions={},this.resetStoreCallbacks=[],this.clearStoreCallbacks=[];var n=e.uri,r=e.credentials,d=e.headers,y=e.cache,v=e.ssrMode,b=void 0!==v&&v,_=e.ssrForceFetchDelay,w=void 0===_?0:_,E=e.connectToDevTools,k=void 0===E?"object"===typeof window&&!window.__APOLLO_CLIENT__&&!1:E,O=e.queryDeduplication,C=void 0===O||O,x=e.defaultOptions,A=e.assumeImmutableResults,D=void 0!==A&&A,L=e.resolvers,N=e.typeDefs,I=e.fragmentMatcher,R=e.name,M=e.version,P=e.link;if(P||(P=n?new g.uG({uri:n,credentials:r,headers:d}):h.i0.empty()),!y)throw new i.ej(9);this.link=P,this.cache=y,this.disableNetworkFetches=b||w>0,this.queryDeduplication=C,this.defaultOptions=x||{},this.typeDefs=N,w&&setTimeout((function(){return t.disableNetworkFetches=!1}),w),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.16",this.localState=new S({cache:y,client:this,resolvers:L,fragmentMatcher:I}),this.queryManager=new T({cache:this.cache,link:this.link,queryDeduplication:C,ssrMode:b,clientAwareness:{name:R,version:M},localState:this.localState,assumeImmutableResults:D,onBroadcast:k?function(){t.devToolsHookCb&&t.devToolsHookCb({action:{},state:{queries:t.queryManager.getQueryStore(),mutations:t.queryManager.mutationStore||{}},dataWithOptimisticResults:t.cache.extract(!0)})}:void 0})}return ApolloClient.prototype.stop=function(){this.queryManager.stop()},ApolloClient.prototype.watchQuery=function(e){return this.defaultOptions.watchQuery&&(e=mergeOptions(this.defaultOptions.watchQuery,e)),!this.disableNetworkFetches||"network-only"!==e.fetchPolicy&&"cache-and-network"!==e.fetchPolicy||(e=(0,r.pi)((0,r.pi)({},e),{fetchPolicy:"cache-first"})),this.queryManager.watchQuery(e)},ApolloClient.prototype.query=function(e){return this.defaultOptions.query&&(e=mergeOptions(this.defaultOptions.query,e)),(0,i.kG)("cache-and-network"!==e.fetchPolicy,10),this.disableNetworkFetches&&"network-only"===e.fetchPolicy&&(e=(0,r.pi)((0,r.pi)({},e),{fetchPolicy:"cache-first"})),this.queryManager.query(e)},ApolloClient.prototype.mutate=function(e){return this.defaultOptions.mutate&&(e=mergeOptions(this.defaultOptions.mutate,e)),this.queryManager.mutate(e)},ApolloClient.prototype.subscribe=function(e){return this.queryManager.startGraphQLSubscription(e)},ApolloClient.prototype.readQuery=function(e,t){return void 0===t&&(t=!1),this.cache.readQuery(e,t)},ApolloClient.prototype.readFragment=function(e,t){return void 0===t&&(t=!1),this.cache.readFragment(e,t)},ApolloClient.prototype.writeQuery=function(e){this.cache.writeQuery(e),this.queryManager.broadcastQueries()},ApolloClient.prototype.writeFragment=function(e){this.cache.writeFragment(e),this.queryManager.broadcastQueries()},ApolloClient.prototype.__actionHookForDevTools=function(e){this.devToolsHookCb=e},ApolloClient.prototype.__requestRaw=function(e){return(0,h.ht)(this.link,e)},ApolloClient.prototype.resetStore=function(){var e=this;return Promise.resolve().then((function(){return e.queryManager.clearStore()})).then((function(){return Promise.all(e.resetStoreCallbacks.map((function(e){return e()})))})).then((function(){return e.reFetchObservableQueries()}))},ApolloClient.prototype.clearStore=function(){var e=this;return Promise.resolve().then((function(){return e.queryManager.clearStore()})).then((function(){return Promise.all(e.clearStoreCallbacks.map((function(e){return e()})))}))},ApolloClient.prototype.onResetStore=function(e){var t=this;return this.resetStoreCallbacks.push(e),function(){t.resetStoreCallbacks=t.resetStoreCallbacks.filter((function(t){return t!==e}))}},ApolloClient.prototype.onClearStore=function(e){var t=this;return this.clearStoreCallbacks.push(e),function(){t.clearStoreCallbacks=t.clearStoreCallbacks.filter((function(t){return t!==e}))}},ApolloClient.prototype.reFetchObservableQueries=function(e){return this.queryManager.reFetchObservableQueries(e)},ApolloClient.prototype.extract=function(e){return this.cache.extract(e)},ApolloClient.prototype.restore=function(e){return this.cache.restore(e)},ApolloClient.prototype.addResolvers=function(e){this.localState.addResolvers(e)},ApolloClient.prototype.setResolvers=function(e){this.localState.setResolvers(e)},ApolloClient.prototype.getResolvers=function(){return this.localState.getResolvers()},ApolloClient.prototype.setLocalStateFragmentMatcher=function(e){this.localState.setFragmentMatcher(e)},ApolloClient.prototype.setLink=function(e){this.link=this.queryManager.link=e},ApolloClient}()},1434:function(e,t,n){"use strict";n.d(t,{u:function(){return v}});var r=n(3158),i=n(4082),h=n(3035),d=n(3199),g=n(3946),y=function(){function Reobserver(e,t,n,r){this.observer=e,this.options=t,this.fetch=n,this.shouldFetch=r}return Reobserver.prototype.reobserve=function(e,t){e?this.updateOptions(e):this.updatePolling();var n=this.fetch(this.options,t);return this.concast&&this.concast.removeObserver(this.observer,!0),n.addObserver(this.observer),(this.concast=n).promise},Reobserver.prototype.updateOptions=function(e){return Object.assign(this.options,(0,g.oA)(e)),this.updatePolling(),this},Reobserver.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())},Reobserver.prototype.updatePolling=function(){var e=this,t=this.pollingInfo,n=this.options.pollInterval;if(n){if((!t||t.interval!==n)&&((0,i.kG)(n,20),!1!==this.shouldFetch)){(t||(this.pollingInfo={})).interval=n;var maybeFetch=function(){e.pollingInfo&&(e.shouldFetch&&e.shouldFetch()?e.reobserve({fetchPolicy:"network-only",nextFetchPolicy:e.options.fetchPolicy||"cache-first"},d.I.poll).then(poll,poll):poll())},poll=function(){var t=e.pollingInfo;t&&(clearTimeout(t.timeout),t.timeout=setTimeout(maybeFetch,t.interval))};poll()}}else t&&(clearTimeout(t.timeout),delete this.pollingInfo)},Reobserver}(),v=function(e){function ObservableQuery(t){var n=t.queryManager,i=t.queryInfo,h=t.options,y=e.call(this,(function(e){return y.onSubscribe(e)}))||this;y.observers=new Set,y.subscriptions=new Set,y.observer={next:function(e){(y.lastError||y.isDifferentFromLastResult(e))&&(y.updateLastResult(e),(0,g.pM)(y.observers,"next",e))},error:function(e){y.updateLastResult((0,r.pi)((0,r.pi)({},y.lastResult),{error:e,errors:e.graphQLErrors,networkStatus:d.I.error,loading:!1})),(0,g.pM)(y.observers,"error",y.lastError=e)}},y.isTornDown=!1,y.options=h,y.queryId=n.generateQueryId();var v=(0,g.$H)(h.query);return y.queryName=v&&v.name&&v.name.value,y.queryManager=n,y.queryInfo=i,y}return(0,r.ZT)(ObservableQuery,e),Object.defineProperty(ObservableQuery.prototype,"variables",{get:function(){return this.options.variables},enumerable:!1,configurable:!0}),ObservableQuery.prototype.result=function(){var e=this;return new Promise((function(t,n){var r={next:function(n){t(n),e.observers.delete(r),e.observers.size||e.queryManager.removeQuery(e.queryId),setTimeout((function(){i.unsubscribe()}),0)},error:n},i=e.subscribe(r)}))},ObservableQuery.prototype.getCurrentResult=function(e){void 0===e&&(e=!0);var t=this.lastResult,n=this.queryInfo.networkStatus||t&&t.networkStatus||d.I.ready,i=(0,r.pi)((0,r.pi)({},t),{loading:(0,d.O)(n),networkStatus:n});if(this.isTornDown)return i;var h=this.options.fetchPolicy,g=void 0===h?"cache-first":h;if("no-cache"===g||"network-only"===g)delete i.partial;else if(!i.data||!this.queryManager.transform(this.options.query).hasForcedResolvers){var y=this.queryInfo.getDiff();i.data=y.complete||this.options.returnPartialData?y.result:void 0,y.complete?(i.networkStatus!==d.I.loading||"cache-first"!==g&&"cache-only"!==g||(i.networkStatus=d.I.ready,i.loading=!1),delete i.partial):i.partial=!0}return e&&this.updateLastResult(i),i},ObservableQuery.prototype.isDifferentFromLastResult=function(e){return!(0,h.D)(this.lastResultSnapshot,e)},ObservableQuery.prototype.getLastResult=function(){return this.lastResult},ObservableQuery.prototype.getLastError=function(){return this.lastError},ObservableQuery.prototype.resetLastResults=function(){delete this.lastResult,delete this.lastResultSnapshot,delete this.lastError,this.isTornDown=!1},ObservableQuery.prototype.resetQueryStoreErrors=function(){this.queryManager.resetErrors(this.queryId)},ObservableQuery.prototype.refetch=function(e){var t={pollInterval:0},n=this.options.fetchPolicy;return"no-cache"!==n&&"cache-and-network"!==n&&(t.fetchPolicy="network-only",t.nextFetchPolicy=n||"cache-first"),e&&!(0,h.D)(this.options.variables,e)&&(t.variables=this.options.variables=(0,r.pi)((0,r.pi)({},this.options.variables),e)),this.newReobserver(!1).reobserve(t,d.I.refetch)},ObservableQuery.prototype.fetchMore=function(e){var t=this,n=(0,r.pi)((0,r.pi)({},e.query?e:(0,r.pi)((0,r.pi)((0,r.pi)({},this.options),e),{variables:(0,r.pi)((0,r.pi)({},this.options.variables),e.variables)})),{fetchPolicy:"no-cache"}),i=this.queryManager.generateQueryId();return n.notifyOnNetworkStatusChange&&(this.queryInfo.networkStatus=d.I.fetchMore,this.observe()),this.queryManager.fetchQuery(i,n,d.I.fetchMore).then((function(r){var i=r.data,h=e.updateQuery;return h?t.updateQuery((function(e){return h(e,{fetchMoreResult:i,variables:n.variables})})):t.queryManager.cache.writeQuery({query:n.query,variables:n.variables,data:i}),r})).finally((function(){t.queryManager.stopQuery(i),t.reobserve()}))},ObservableQuery.prototype.subscribeToMore=function(e){var t=this,n=this.queryManager.startGraphQLSubscription({query:e.document,variables:e.variables,context:e.context}).subscribe({next:function(n){var r=e.updateQuery;r&&t.updateQuery((function(e,t){var i=t.variables;return r(e,{subscriptionData:n,variables:i})}))},error:function(t){e.onError&&e.onError(t)}});return this.subscriptions.add(n),function(){t.subscriptions.delete(n)&&n.unsubscribe()}},ObservableQuery.prototype.setOptions=function(e){return this.reobserve(e)},ObservableQuery.prototype.setVariables=function(e){if((0,h.D)(this.variables,e))return this.observers.size?this.result():Promise.resolve();if(this.options.variables=e,!this.observers.size)return Promise.resolve();var t=this.options.fetchPolicy,n=void 0===t?"cache-first":t,r={fetchPolicy:n,variables:e};return"cache-first"!==n&&"no-cache"!==n&&"network-only"!==n&&(r.fetchPolicy="cache-and-network",r.nextFetchPolicy=n),this.reobserve(r,d.I.setVariables)},ObservableQuery.prototype.updateQuery=function(e){var t,n=this.queryManager,r=e(n.cache.diff({query:this.options.query,variables:this.variables,previousResult:null===(t=this.lastResult)||void 0===t?void 0:t.data,returnPartialData:!0,optimistic:!1}).result,{variables:this.variables});r&&(n.cache.writeQuery({query:this.options.query,data:r,variables:this.variables}),n.broadcastQueries())},ObservableQuery.prototype.startPolling=function(e){this.getReobserver().updateOptions({pollInterval:e})},ObservableQuery.prototype.stopPolling=function(){this.reobserver&&this.reobserver.updateOptions({pollInterval:0})},ObservableQuery.prototype.updateLastResult=function(e){var t=this.lastResult;return this.lastResult=e,this.lastResultSnapshot=this.queryManager.assumeImmutableResults?e:(0,g.Xh)(e),(0,g.Of)(e.errors)||delete this.lastError,t},ObservableQuery.prototype.onSubscribe=function(e){var t=this;if(e===this.observer)return function(){};try{var n=e._subscription._observer;n&&!n.error&&(n.error=defaultSubscriptionObserverErrorCallback)}catch(i){}var r=!this.observers.size;return this.observers.add(e),this.lastError?e.error&&e.error(this.lastError):this.lastResult&&e.next&&e.next(this.lastResult),r&&this.reobserve().catch((function(e){})),function(){t.observers.delete(e)&&!t.observers.size&&t.tearDownQuery()}},ObservableQuery.prototype.getReobserver=function(){return this.reobserver||(this.reobserver=this.newReobserver(!0))},ObservableQuery.prototype.newReobserver=function(e){var t=this,n=this.queryManager,i=this.queryId;return n.setObservableQuery(this),new y(this.observer,e?this.options:(0,r.pi)({},this.options),(function(e,r){return n.setObservableQuery(t),n.fetchQueryObservable(i,e,r)}),!n.ssrMode&&function(){return!(0,d.O)(t.queryInfo.networkStatus)})},ObservableQuery.prototype.reobserve=function(e,t){return this.isTornDown=!1,this.getReobserver().reobserve(e,t)},ObservableQuery.prototype.observe=function(){this.observer.next(this.getCurrentResult(!1))},ObservableQuery.prototype.hasObservers=function(){return this.observers.size>0},ObservableQuery.prototype.tearDownQuery=function(){this.isTornDown||(this.reobserver&&(this.reobserver.stop(),delete this.reobserver),this.subscriptions.forEach((function(e){return e.unsubscribe()})),this.subscriptions.clear(),this.queryManager.stopQuery(this.queryId),this.observers.clear(),this.isTornDown=!0)},ObservableQuery}(g.y$);function defaultSubscriptionObserverErrorCallback(e){}(0,g.Dy)(v)},8468:function(e,t,n){"use strict";n.d(t,{fe:function(){return r.f},JH:function(){return r.J},Ie:function(){return i.I},h4:function(){return d.h4},ApolloLink:function(){return y.i0},from:function(){return y.Dp},HttpLink:function(){return v.uG},Ps:function(){return _.ZP}});var r=n(8443),i=(n(1434),n(3199)),h=n(9874);n.o(h,"ApolloLink")&&n.d(t,{ApolloLink:function(){return h.ApolloLink}}),n.o(h,"HttpLink")&&n.d(t,{HttpLink:function(){return h.HttpLink}}),n.o(h,"from")&&n.d(t,{from:function(){return h.from}});n(908);var d=n(4580),g=n(6004);n.o(g,"ApolloLink")&&n.d(t,{ApolloLink:function(){return g.ApolloLink}}),n.o(g,"HttpLink")&&n.d(t,{HttpLink:function(){return g.HttpLink}}),n.o(g,"from")&&n.d(t,{from:function(){return g.from}});var y=n(6937);n.o(y,"HttpLink")&&n.d(t,{HttpLink:function(){return y.HttpLink}});var v=n(4576),b=(n(6970),n(3946),n(4082)),_=n(6750);(0,b.U6)("log");_.ZP.resetCaches,_.ZP.disableFragmentWarnings,_.ZP.enableExperimentalFragmentVariables,_.ZP.disableExperimentalFragmentVariables},3199:function(e,t,n){"use strict";var r;function isNetworkRequestInFlight(e){return!!e&&e<7}n.d(t,{I:function(){return r},O:function(){return isNetworkRequestInFlight}}),function(e){e[e.loading=1]="loading",e[e.setVariables=2]="setVariables",e[e.fetchMore=3]="fetchMore",e[e.refetch=4]="refetch",e[e.poll=6]="poll",e[e.ready=7]="ready",e[e.error=8]="error"}(r||(r={}))},9874:function(){},908:function(e,t,n){"use strict";n.d(t,{M:function(){return isApolloError},c:function(){return h}});var r=n(3158),i=n(3946);function isApolloError(e){return e.hasOwnProperty("graphQLErrors")}var h=function(e){function ApolloError(t){var n,r,h=t.graphQLErrors,d=t.networkError,g=t.errorMessage,y=t.extraInfo,v=e.call(this,g)||this;return v.graphQLErrors=h||[],v.networkError=d||null,v.message=g||(n=v,r="",(0,i.Of)(n.graphQLErrors)&&n.graphQLErrors.forEach((function(e){var t=e?e.message:"Error message not found.";r+=t+"\n"})),n.networkError&&(r+=n.networkError.message+"\n"),r=r.replace(/\n$/,"")),v.extraInfo=y,v.__proto__=ApolloError.prototype,v}return(0,r.ZT)(ApolloError,e),ApolloError}(Error)},1313:function(e,t,n){"use strict";var r=n(8468);n.o(r,"ApolloLink")&&n.d(t,{ApolloLink:function(){return r.ApolloLink}}),n.o(r,"from")&&n.d(t,{from:function(){return r.from}});var i=n(4159);n.o(i,"ApolloLink")&&n.d(t,{ApolloLink:function(){return i.ApolloLink}}),n.o(i,"from")&&n.d(t,{from:function(){return i.from}})},5710:function(e,t,n){"use strict";n.d(t,{i:function(){return g}});var r=n(3158),i=n(4082),h=n(3946),d=n(6970);function passthrough(e,t){return t?t(e):h.y$.of()}function toLink(e){return"function"===typeof e?new g(e):e}function isTerminating(e){return e.request.length<=1}!function(e){function LinkError(t,n){var r=e.call(this,t)||this;return r.link=n,r}(0,r.ZT)(LinkError,e)}(Error);var g=function(){function ApolloLink(e){e&&(this.request=e)}return ApolloLink.empty=function(){return new ApolloLink((function(){return h.y$.of()}))},ApolloLink.from=function(e){return 0===e.length?ApolloLink.empty():e.map(toLink).reduce((function(e,t){return e.concat(t)}))},ApolloLink.split=function(e,t,n){var r=toLink(t),i=toLink(n||new ApolloLink(passthrough));return isTerminating(r)&&isTerminating(i)?new ApolloLink((function(t){return e(t)?r.request(t)||h.y$.of():i.request(t)||h.y$.of()})):new ApolloLink((function(t,n){return e(t)?r.request(t,n)||h.y$.of():i.request(t,n)||h.y$.of()}))},ApolloLink.execute=function(e,t){return e.request((0,d.zi)(t.context,(0,d.DQ)((0,d.Ak)(t))))||h.y$.of()},ApolloLink.concat=function(e,t){var n=toLink(e);if(isTerminating(n))return n;var r=toLink(t);return isTerminating(r)?new ApolloLink((function(e){return n.request(e,(function(e){return r.request(e)||h.y$.of()}))||h.y$.of()})):new ApolloLink((function(e,t){return n.request(e,(function(e){return r.request(e,t)||h.y$.of()}))||h.y$.of()}))},ApolloLink.prototype.split=function(e,t,n){return this.concat(ApolloLink.split(e,t,n||new ApolloLink(passthrough)))},ApolloLink.prototype.concat=function(e){return ApolloLink.concat(this,e)},ApolloLink.prototype.request=function(e,t){throw new i.ej(21)},ApolloLink.prototype.onError=function(e,t){if(t&&t.error)return t.error(e),!1;throw e},ApolloLink.prototype.setOnError=function(e){return this.onError=e,this},ApolloLink}()},4081:function(e,t,n){"use strict";n(5710).i.concat},1562:function(e,t,n){"use strict";n(5710).i.empty},8370:function(e,t,n){"use strict";n.d(t,{h:function(){return r}});var r=n(5710).i.execute},6835:function(e,t,n){"use strict";n.d(t,{D:function(){return r}});var r=n(5710).i.from},6937:function(e,t,n){"use strict";n.d(t,{Dp:function(){return r.D},ht:function(){return i.h},i0:function(){return h.i}});n(1562);var r=n(6835),i=(n(2862),n(4081),n(8370)),h=n(5710),d=n(4738);n.o(d,"HttpLink")&&n.d(t,{HttpLink:function(){return d.HttpLink}})},2862:function(e,t,n){"use strict";n(5710).i.split},4738:function(){},4576:function(e,t,n){"use strict";n.d(t,{uG:function(){return E}});var r=n(6970),i=Object.prototype.hasOwnProperty;var h=n(4082),serializeFetchParameter=function(e,t){var n;try{n=JSON.stringify(e)}catch(i){var r=new h.ej(23);throw r.parseError=i,r}return n},d=n(3158),g=n(4893),y=n(2464);function print(e){return(0,g.Vn)(e,{leave:v})}var v={Name:function Name(e){return e.value},Variable:function Variable(e){return"$"+e.name},Document:function Document(e){return join(e.definitions,"\n\n")+"\n"},OperationDefinition:function OperationDefinition(e){var t=e.operation,n=e.name,r=wrap("(",join(e.variableDefinitions,", "),")"),i=join(e.directives," "),h=e.selectionSet;return n||i||r||"query"!==t?join([t,join([n,r]),i,h]," "):h},VariableDefinition:function VariableDefinition(e){var t=e.variable,n=e.type,r=e.defaultValue,i=e.directives;return t+": "+n+wrap(" = ",r)+wrap(" ",join(i," "))},SelectionSet:function SelectionSet(e){return block(e.selections)},Field:function Field(e){var t=e.alias,n=e.name,r=e.arguments,i=e.directives,h=e.selectionSet,d=wrap("",t,": ")+n,g=d+wrap("(",join(r,", "),")");return g.length>80&&(g=d+wrap("(\n",indent(join(r,"\n")),"\n)")),join([g,join(i," "),h]," ")},Argument:function Argument(e){return e.name+": "+e.value},FragmentSpread:function FragmentSpread(e){return"..."+e.name+wrap(" ",join(e.directives," "))},InlineFragment:function InlineFragment(e){var t=e.typeCondition,n=e.directives,r=e.selectionSet;return join(["...",wrap("on ",t),join(n," "),r]," ")},FragmentDefinition:function FragmentDefinition(e){var t=e.name,n=e.typeCondition,r=e.variableDefinitions,i=e.directives,h=e.selectionSet;return"fragment ".concat(t).concat(wrap("(",join(r,", "),")")," ")+"on ".concat(n," ").concat(wrap("",join(i," ")," "))+h},IntValue:function IntValue(e){return e.value},FloatValue:function FloatValue(e){return e.value},StringValue:function StringValue(e,t){var n=e.value;return e.block?(0,y.LZ)(n,"description"===t?"":" "):JSON.stringify(n)},BooleanValue:function BooleanValue(e){return e.value?"true":"false"},NullValue:function NullValue(){return"null"},EnumValue:function EnumValue(e){return e.value},ListValue:function ListValue(e){return"["+join(e.values,", ")+"]"},ObjectValue:function ObjectValue(e){return"{"+join(e.fields,", ")+"}"},ObjectField:function ObjectField(e){return e.name+": "+e.value},Directive:function Directive(e){return"@"+e.name+wrap("(",join(e.arguments,", "),")")},NamedType:function NamedType(e){return e.name},ListType:function ListType(e){return"["+e.type+"]"},NonNullType:function NonNullType(e){return e.type+"!"},SchemaDefinition:addDescription((function(e){var t=e.directives,n=e.operationTypes;return join(["schema",join(t," "),block(n)]," ")})),OperationTypeDefinition:function OperationTypeDefinition(e){return e.operation+": "+e.type},ScalarTypeDefinition:addDescription((function(e){return join(["scalar",e.name,join(e.directives," ")]," ")})),ObjectTypeDefinition:addDescription((function(e){var t=e.name,n=e.interfaces,r=e.directives,i=e.fields;return join(["type",t,wrap("implements ",join(n," & ")),join(r," "),block(i)]," ")})),FieldDefinition:addDescription((function(e){var t=e.name,n=e.arguments,r=e.type,i=e.directives;return t+(hasMultilineItems(n)?wrap("(\n",indent(join(n,"\n")),"\n)"):wrap("(",join(n,", "),")"))+": "+r+wrap(" ",join(i," "))})),InputValueDefinition:addDescription((function(e){var t=e.name,n=e.type,r=e.defaultValue,i=e.directives;return join([t+": "+n,wrap("= ",r),join(i," ")]," ")})),InterfaceTypeDefinition:addDescription((function(e){var t=e.name,n=e.interfaces,r=e.directives,i=e.fields;return join(["interface",t,wrap("implements ",join(n," & ")),join(r," "),block(i)]," ")})),UnionTypeDefinition:addDescription((function(e){var t=e.name,n=e.directives,r=e.types;return join(["union",t,join(n," "),r&&0!==r.length?"= "+join(r," | "):""]," ")})),EnumTypeDefinition:addDescription((function(e){var t=e.name,n=e.directives,r=e.values;return join(["enum",t,join(n," "),block(r)]," ")})),EnumValueDefinition:addDescription((function(e){return join([e.name,join(e.directives," ")]," ")})),InputObjectTypeDefinition:addDescription((function(e){var t=e.name,n=e.directives,r=e.fields;return join(["input",t,join(n," "),block(r)]," ")})),DirectiveDefinition:addDescription((function(e){var t=e.name,n=e.arguments,r=e.repeatable,i=e.locations;return"directive @"+t+(hasMultilineItems(n)?wrap("(\n",indent(join(n,"\n")),"\n)"):wrap("(",join(n,", "),")"))+(r?" repeatable":"")+" on "+join(i," | ")})),SchemaExtension:function SchemaExtension(e){var t=e.directives,n=e.operationTypes;return join(["extend schema",join(t," "),block(n)]," ")},ScalarTypeExtension:function ScalarTypeExtension(e){return join(["extend scalar",e.name,join(e.directives," ")]," ")},ObjectTypeExtension:function ObjectTypeExtension(e){var t=e.name,n=e.interfaces,r=e.directives,i=e.fields;return join(["extend type",t,wrap("implements ",join(n," & ")),join(r," "),block(i)]," ")},InterfaceTypeExtension:function InterfaceTypeExtension(e){var t=e.name,n=e.interfaces,r=e.directives,i=e.fields;return join(["extend interface",t,wrap("implements ",join(n," & ")),join(r," "),block(i)]," ")},UnionTypeExtension:function UnionTypeExtension(e){var t=e.name,n=e.directives,r=e.types;return join(["extend union",t,join(n," "),r&&0!==r.length?"= "+join(r," | "):""]," ")},EnumTypeExtension:function EnumTypeExtension(e){var t=e.name,n=e.directives,r=e.values;return join(["extend enum",t,join(n," "),block(r)]," ")},InputObjectTypeExtension:function InputObjectTypeExtension(e){var t=e.name,n=e.directives,r=e.fields;return join(["extend input",t,join(n," "),block(r)]," ")}};function addDescription(e){return function(t){return join([t.description,e(t)],"\n")}}function join(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return null!==(t=null===e||void 0===e?void 0:e.filter((function(e){return e})).join(n))&&void 0!==t?t:""}function block(e){return wrap("{\n",indent(join(e,"\n")),"\n}")}function wrap(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return null!=t&&""!==t?e+t+n:""}function indent(e){return wrap(" ",e.replace(/\n/g,"\n "))}function isMultiline(e){return-1!==e.indexOf("\n")}function hasMultilineItems(e){return null!=e&&e.some(isMultiline)}var b={http:{includeQuery:!0,includeExtensions:!1},headers:{accept:"*/*","content-type":"application/json"},options:{method:"POST"}},_=n(6937),w=n(3946);var createHttpLink=function(e){void 0===e&&(e={});var t=e.uri,n=void 0===t?"/graphql":t,y=e.fetch,v=e.includeExtensions,E=e.useGETForQueries,S=e.includeUnusedVariables,k=void 0!==S&&S,O=(0,d._T)(e,["uri","fetch","includeExtensions","useGETForQueries","includeUnusedVariables"]);!function(e){if(!e&&"undefined"===typeof fetch)throw new h.ej(22)}(y),y||(y=fetch);var C={http:{includeExtensions:v},options:O.fetchOptions,credentials:O.credentials,headers:O.headers};return new _.i0((function(e){var t=function(e,t){return e.getContext().uri||("function"===typeof t?t(e):t||"/graphql")}(e,n),h=e.getContext(),v={};if(h.clientAwareness){var _=h.clientAwareness,S=_.name,O=_.version;S&&(v["apollographql-client-name"]=S),O&&(v["apollographql-client-version"]=O)}var T,x=(0,d.pi)((0,d.pi)({},v),h.headers),A={http:h.http,options:h.fetchOptions,credentials:h.credentials,headers:x},D=function(e,t){for(var n=[],r=2;r=300&&(0,r.PW)(t,n,"Response not successful: Received status code "+t.status),Array.isArray(n)||i.call(n,"data")||i.call(n,"errors")||(0,r.PW)(t,n,"Server response was missing for query '"+(Array.isArray(e)?e.map((function(e){return e.operationName})):e.operationName)+"'."),n}))}}(e)).then((function(e){return n.next(e),n.complete(),e})).catch((function(e){"AbortError"!==e.name&&(e.result&&e.result.errors&&e.result.data&&n.next(e.result),n.error(e))})),function(){T&&T.abort()}}))}))},E=function(e){function HttpLink(t){void 0===t&&(t={});var n=e.call(this,createHttpLink(t).request)||this;return n.options=t,n}return(0,d.ZT)(HttpLink,e),HttpLink}(_.i0)},6970:function(e,t,n){"use strict";n.d(t,{zi:function(){return createOperation},Qc:function(){return fromError},PW:function(){return throwServerError},DQ:function(){return transformOperation},Ak:function(){return validateOperation}});var r=n(3946);function fromError(e){return new r.y$((function(t){t.error(e)}))}var i=n(4082);var throwServerError=function(e,t,n){var r=new Error(n);throw r.name="ServerError",r.response=e,r.statusCode=e.status,r.result=t,r};function validateOperation(e){for(var t=["query","operationName","variables","extensions","context"],n=0,r=Object.keys(e);n0&&(this.previousOptions.subscription!==this.getOptions().subscription||!(0,h.D)(this.previousOptions.variables,this.getOptions().variables)||this.previousOptions.skip!==this.getOptions().skip)&&(this.cleanup(),t=this.getLoadingResult()),this.initialize(this.getOptions()),this.startSubscription(),this.previousOptions=this.getOptions(),(0,i.pi)((0,i.pi)({},t),{variables:this.getOptions().variables})},SubscriptionData.prototype.afterExecute=function(){this.isMounted=!0},SubscriptionData.prototype.cleanup=function(){this.endSubscription(),delete this.currentObservable.query},SubscriptionData.prototype.initialize=function(e){this.currentObservable.query||!0===this.getOptions().skip||(this.currentObservable.query=this.refreshClient().client.subscribe({query:e.subscription,variables:e.variables,fetchPolicy:e.fetchPolicy,context:e.context}))},SubscriptionData.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)}))},SubscriptionData.prototype.getLoadingResult=function(){return{loading:!0,error:void 0,data:void 0}},SubscriptionData.prototype.updateResult=function(e){this.isMounted&&this.setResult(e)},SubscriptionData.prototype.updateCurrentData=function(e){var t=this.getOptions().onSubscriptionData;this.updateResult({data:e.data,loading:!1,error:void 0}),t&&t({client:this.refreshClient().client,subscriptionData:e})},SubscriptionData.prototype.updateError=function(e){this.updateResult({error:e,loading:!1})},SubscriptionData.prototype.completeSubscription=function(){var e=this;Promise.resolve().then((function(){var t=e.getOptions().onSubscriptionComplete;t&&t(),e.endSubscription()}))},SubscriptionData.prototype.endSubscription=function(){this.currentObservable.subscription&&(this.currentObservable.subscription.unsubscribe(),delete this.currentObservable.subscription)}}(g),n(908)),v=n(8468);(function(e){function MutationData(t){var n=t.options,r=t.context,i=t.result,h=t.setResult,g=e.call(this,n,r)||this;return g.runMutation=function(e){void 0===e&&(e={}),g.onMutationStart();var t=g.generateNewMutationId();return g.mutate(e).then((function(e){return g.onMutationCompleted(e,t),e})).catch((function(e){var n=g.getOptions().onError;if(g.onMutationError(e,t),n)return n(e),{data:void 0,errors:e};throw e}))},g.verifyDocumentType(n.mutation,d.n_.Mutation),g.result=i,g.setResult=h,g.mostRecentMutationId=0,g}(0,i.ZT)(MutationData,e),MutationData.prototype.execute=function(e){return this.isMounted=!0,this.verifyDocumentType(this.getOptions().mutation,d.n_.Mutation),[this.runMutation,(0,i.pi)((0,i.pi)({},e),{client:this.refreshClient().client})]},MutationData.prototype.afterExecute=function(){return this.isMounted=!0,this.unmount.bind(this)},MutationData.prototype.cleanup=function(){},MutationData.prototype.mutate=function(e){return this.refreshClient().client.mutate((0,v.JH)(this.getOptions(),e))},MutationData.prototype.onMutationStart=function(){this.result.loading||this.getOptions().ignoreResults||this.updateResult({loading:!0,error:void 0,data:void 0,called:!0})},MutationData.prototype.onMutationCompleted=function(e,t){var n=this.getOptions(),r=n.onCompleted,i=n.ignoreResults,h=e.data,d=e.errors,g=d&&d.length>0?new y.c({graphQLErrors:d}):void 0;this.isMostRecentMutation(t)&&!i&&this.updateResult({called:!0,loading:!1,data:h,error:g}),r&&r(h)},MutationData.prototype.onMutationError=function(e,t){this.isMostRecentMutation(t)&&this.updateResult({loading:!1,error:e,data:void 0,called:!0})},MutationData.prototype.generateNewMutationId=function(){return++this.mostRecentMutationId},MutationData.prototype.isMostRecentMutation=function(e){return this.mostRecentMutationId===e},MutationData.prototype.updateResult=function(e){if(this.isMounted&&(!this.previousResult||!(0,h.D)(this.previousResult,e)))return this.setResult(e),this.previousResult=e,e}})(g),function(e){function QueryData(t){var n=t.options,r=t.context,h=t.onNewData,d=e.call(this,n,r)||this;return d.runLazy=!1,d.previous=Object.create(null),d.runLazyQuery=function(e){d.cleanup(),d.runLazy=!0,d.lazyOptions=e,d.onNewData()},d.getQueryResult=function(){var e=d.observableQueryFields(),t=d.getOptions();if(t.skip)e=(0,i.pi)((0,i.pi)({},e),{data:void 0,error:void 0,loading:!1,networkStatus:v.Ie.ready,called:!0});else if(d.currentObservable){var n=d.currentObservable.getCurrentResult(),r=n.data,h=n.loading,g=n.partial,b=n.networkStatus,_=n.errors,w=n.error;if(_&&_.length>0&&(w=new y.c({graphQLErrors:_})),e=(0,i.pi)((0,i.pi)({},e),{data:r,loading:h,networkStatus:b,error:w,called:!0}),h);else if(w)Object.assign(e,{data:(d.currentObservable.getLastResult()||{}).data});else{var E=d.currentObservable.options.fetchPolicy;if(t.partialRefetch&&g&&(!r||0===Object.keys(r).length)&&"cache-only"!==E)return Object.assign(e,{loading:!0,networkStatus:v.Ie.loading}),e.refetch(),e}}e.client=d.client,d.setOptions(t,!0);var S=d.previous.result;return d.previous.loading=S&&S.loading||!1,e.previousData=S&&(S.data||S.previousData),d.previous.result=e,d.currentObservable&&d.currentObservable.resetQueryStoreErrors(),e},d.obsRefetch=function(e){var t;return null===(t=d.currentObservable)||void 0===t?void 0:t.refetch(e)},d.obsFetchMore=function(e){return d.currentObservable.fetchMore(e)},d.obsUpdateQuery=function(e){return d.currentObservable.updateQuery(e)},d.obsStartPolling=function(e){var t;null===(t=d.currentObservable)||void 0===t||t.startPolling(e)},d.obsStopPolling=function(){var e;null===(e=d.currentObservable)||void 0===e||e.stopPolling()},d.obsSubscribeToMore=function(e){return d.currentObservable.subscribeToMore(e)},d.onNewData=h,d}(0,i.ZT)(QueryData,e),QueryData.prototype.execute=function(){this.refreshClient();var e=this.getOptions(),t=e.skip,n=e.query;return(t||n!==this.previous.query)&&(this.removeQuerySubscription(),this.removeObservable(!t),this.previous.query=n),this.updateObservableQuery(),this.isMounted&&this.startQuerySubscription(),this.getExecuteSsrResult()||this.getExecuteResult()},QueryData.prototype.executeLazy=function(){return this.runLazy?[this.runLazyQuery,this.execute()]:[this.runLazyQuery,{loading:!1,networkStatus:v.Ie.ready,called:!1,data:void 0}]},QueryData.prototype.fetchData=function(){var e=this,t=this.getOptions();return!t.skip&&!1!==t.ssr&&new Promise((function(t){return e.startQuerySubscription(t)}))},QueryData.prototype.afterExecute=function(e){var t=(void 0===e?{}:e).lazy,n=void 0!==t&&t;return this.isMounted=!0,n&&!this.runLazy||this.handleErrorOrCompleted(),this.previousOptions=this.getOptions(),this.unmount.bind(this)},QueryData.prototype.cleanup=function(){this.removeQuerySubscription(),this.removeObservable(!0),delete this.previous.result},QueryData.prototype.getOptions=function(){var t=e.prototype.getOptions.call(this);return this.lazyOptions&&(t.variables=(0,i.pi)((0,i.pi)({},t.variables),this.lazyOptions.variables),t.context=(0,i.pi)((0,i.pi)({},t.context),this.lazyOptions.context)),this.runLazy&&delete t.skip,t},QueryData.prototype.ssrInitiated=function(){return this.context&&this.context.renderPromises},QueryData.prototype.getExecuteResult=function(){var e=this.getQueryResult();return this.startQuerySubscription(),e},QueryData.prototype.getExecuteSsrResult=function(){var e=this.getOptions(),t=e.ssr,n=e.skip,r=!1===t,h=this.refreshClient().client.disableNetworkFetches,d=(0,i.pi)({loading:!0,networkStatus:v.Ie.loading,called:!0,data:void 0,stale:!1,client:this.client},this.observableQueryFields());if(r&&(this.ssrInitiated()||h))return this.previous.result=d,d;if(this.ssrInitiated()){var g=this.getQueryResult()||d;return g.loading&&!n&&this.context.renderPromises.addQueryPromise(this,(function(){return null})),g}},QueryData.prototype.prepareObservableQueryOptions=function(){var e=this.getOptions();this.verifyDocumentType(e.query,d.n_.Query);var t=e.displayName||"Query";return!this.ssrInitiated()||"network-only"!==e.fetchPolicy&&"cache-and-network"!==e.fetchPolicy||(e.fetchPolicy="cache-first"),(0,i.pi)((0,i.pi)({},e),{displayName:t,context:e.context})},QueryData.prototype.initializeObservableQuery=function(){if(this.ssrInitiated()&&(this.currentObservable=this.context.renderPromises.getSSRObservable(this.getOptions())),!this.currentObservable){var e=this.prepareObservableQueryOptions();this.previous.observableQueryOptions=(0,i.pi)((0,i.pi)({},e),{children:null}),this.currentObservable=this.refreshClient().client.watchQuery((0,i.pi)({},e)),this.ssrInitiated()&&this.context.renderPromises.registerSSRObservable(this.currentObservable,e)}},QueryData.prototype.updateObservableQuery=function(){if(this.currentObservable){if(!this.getOptions().skip){var e=(0,i.pi)((0,i.pi)({},this.prepareObservableQueryOptions()),{children:null});(0,h.D)(e,this.previous.observableQueryOptions)||(this.previous.observableQueryOptions=e,this.currentObservable.setOptions(e).catch((function(){})))}}else this.initializeObservableQuery()},QueryData.prototype.startQuerySubscription=function(e){var t=this;void 0===e&&(e=this.onNewData),this.currentSubscription||this.getOptions().skip||(this.currentSubscription=this.currentObservable.subscribe({next:function(n){var r=n.loading,i=n.networkStatus,d=n.data,g=t.previous.result;g&&g.loading===r&&g.networkStatus===i&&(0,h.D)(g.data,d)||e()},error:function(n){if(t.resubscribeToQuery(),!n.hasOwnProperty("graphQLErrors"))throw n;var r=t.previous.result;(r&&r.loading||!(0,h.D)(n,t.previous.error))&&(t.previous.error=n,e())}}))},QueryData.prototype.resubscribeToQuery=function(){this.removeQuerySubscription();var e=this.currentObservable;if(e){var t=e.getLastError(),n=e.getLastResult();e.resetLastResults(),this.startQuerySubscription(),Object.assign(e,{lastError:t,lastResult:n})}},QueryData.prototype.handleErrorOrCompleted=function(){if(this.currentObservable&&this.previous.result){var e=this.previous.result,t=e.data,n=e.loading,r=e.error;if(!n){var i=this.getOptions(),d=i.query,g=i.variables,y=i.onCompleted,v=i.onError,b=i.skip;if(this.previousOptions&&!this.previous.loading&&(0,h.D)(this.previousOptions.query,d)&&(0,h.D)(this.previousOptions.variables,g))return;!y||r||b?v&&r&&v(r):y(t)}}},QueryData.prototype.removeQuerySubscription=function(){this.currentSubscription&&(this.currentSubscription.unsubscribe(),delete this.currentSubscription)},QueryData.prototype.removeObservable=function(e){this.currentObservable&&(this.currentObservable.tearDownQuery(),e&&delete this.currentObservable)},QueryData.prototype.observableQueryFields=function(){var e;return{variables:null===(e=this.currentObservable)||void 0===e?void 0:e.variables,refetch:this.obsRefetch,fetchMore:this.obsFetchMore,updateQuery:this.obsUpdateQuery,startPolling:this.obsStartPolling,stopPolling:this.obsStopPolling,subscribeToMore:this.obsSubscribeToMore}}}(g)},4159:function(e,t,n){"use strict";n(7573),n(2510),n(3709);var r=n(3275);n.o(r,"ApolloLink")&&n.d(t,{ApolloLink:function(){return r.ApolloLink}}),n.o(r,"from")&&n.d(t,{from:function(){return r.from}})},3709:function(e,t,n){"use strict";n.d(t,{n_:function(){return r},mw:function(){return operationName},E2:function(){return parser}});var r,i=n(4082);!function(e){e[e.Query=0]="Query",e[e.Mutation=1]="Mutation",e[e.Subscription=2]="Subscription"}(r||(r={}));var h=new Map;function operationName(e){var t;switch(e){case r.Query:t="Query";break;case r.Mutation:t="Mutation";break;case r.Subscription:t="Subscription"}return t}function parser(e){var t,n,d=h.get(e);if(d)return d;(0,i.kG)(!!e&&!!e.kind,34);var g=e.definitions.filter((function(e){return"FragmentDefinition"===e.kind})),y=e.definitions.filter((function(e){return"OperationDefinition"===e.kind&&"query"===e.operation})),v=e.definitions.filter((function(e){return"OperationDefinition"===e.kind&&"mutation"===e.operation})),b=e.definitions.filter((function(e){return"OperationDefinition"===e.kind&&"subscription"===e.operation}));(0,i.kG)(!g.length||y.length||v.length||b.length,35),(0,i.kG)(y.length+v.length+b.length<=1,36),n=y.length?r.Query:r.Mutation,y.length||v.length||(n=r.Subscription);var _=y.length?y:v.length?v:b;(0,i.kG)(1===_.length,37);var w=_[0];t=w.variableDefinitions||[];var E={name:w.name&&"Name"===w.name.kind?w.name.value:"data",type:n,variables:t};return h.set(e,E),E}},3275:function(){},3946:function(e,t,n){"use strict";n.d(t,{X_:function(){return T},w0:function(){return w},y$:function(){return S()},Gw:function(){return addTypenameToDocument},NC:function(){return argumentsObjectFromField},sz:function(){return asyncMap},aL:function(){return buildQueryFromSelectionSet},mr:function(){return x},Xh:function(){return cloneDeep},oA:function(){return compact},F:function(){return createFragmentMap},Dy:function(){return fixObservableSubclass},O4:function(){return getDefaultValues},kU:function(){return getFragmentDefinitions},hi:function(){return getFragmentFromSelection},Yk:function(){return getFragmentQueryDocument},p$:function(){return getMainDefinition},$H:function(){return getOperationDefinition},rY:function(){return getOperationName},iW:function(){return getQueryDefinition},PT:function(){return getStoreKeyName},qw:function(){return getTypenameFromResult},d2:function(){return graphQLResultHasError},mj:function(){return hasClientExports},FS:function(){return hasDirectives},My:function(){return storeUtils_isField},Ao:function(){return isInlineFragment},Of:function(){return isNonEmptyArray},hh:function(){return isReference},pM:function(){return iterateObserversSafely},kQ:function(){return makeReference},Jv:function(){return maybeDeepFreeze},Ee:function(){return mergeDeep_mergeDeep},bw:function(){return mergeDeepArray},ob:function(){return removeClientSetsFromDocument},Fo:function(){return removeConnectionDirectiveFromDocument},u2:function(){return resultKeyNameFromField},LZ:function(){return shouldInclude},vf:function(){return storeKeyNameFromField}});var r=n(4893),i=n(4082);function shouldInclude(e,t){var n=e.directives;return!n||!n.length||function getInclusionDirectives(e){var t=[];e&&e.length&&e.forEach((function(e){if(function isInclusionDirective(e){var t=e.name.value;return"skip"===t||"include"===t}(e)){var n=e.arguments;e.name.value;(0,i.kG)(n&&1===n.length,39);var r=n[0];(0,i.kG)(r.name&&"if"===r.name.value,40);var h=r.value;(0,i.kG)(h&&("Variable"===h.kind||"BooleanValue"===h.kind),41),t.push({directive:e,ifArgument:r})}}));return t}(n).every((function(e){var n=e.directive,r=e.ifArgument,h=!1;return"Variable"===r.value.kind?(h=t&&t[r.value.name.value],(0,i.kG)(void 0!==h,38)):h=r.value.value,"skip"===n.name.value?!h:h}))}function hasDirectives(e,t){return function getDirectiveNames(e){var t=[];return(0,r.Vn)(e,{Directive:function(e){t.push(e.name.value)}}),t}(t).some((function(t){return e.indexOf(t)>-1}))}function hasClientExports(e){return e&&hasDirectives(["client"],e)&&hasDirectives(["export"],e)}var h=n(3158);function getFragmentQueryDocument(e,t){var n=t,r=[];return e.definitions.forEach((function(e){if("OperationDefinition"===e.kind)throw new i.ej(42);"FragmentDefinition"===e.kind&&r.push(e)})),"undefined"===typeof n&&((0,i.kG)(1===r.length,43),n=r[0].name.value),(0,h.pi)((0,h.pi)({},e),{definitions:(0,h.pr)([{kind:"OperationDefinition",operation:"query",selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:n}}]}}],e.definitions)})}function createFragmentMap(e){void 0===e&&(e=[]);var t={};return e.forEach((function(e){t[e.name.value]=e})),t}function getFragmentFromSelection(e,t){switch(e.kind){case"InlineFragment":return e;case"FragmentSpread":var n=t&&t[e.name.value];return(0,i.kG)(n,44),n;default:return null}}var d=n(7020),g=n.n(d);function makeReference(e){return{__ref:String(e)}}function isReference(e){return Boolean(e&&"object"===typeof e&&"string"===typeof e.__ref)}function valueToObjectRepresentation(e,t,n,r){if(function isIntValue(e){return"IntValue"===e.kind}(n)||function isFloatValue(e){return"FloatValue"===e.kind}(n))e[t.value]=Number(n.value);else if(function isBooleanValue(e){return"BooleanValue"===e.kind}(n)||function isStringValue(e){return"StringValue"===e.kind}(n))e[t.value]=n.value;else if(function isObjectValue(e){return"ObjectValue"===e.kind}(n)){var h={};n.fields.map((function(e){return valueToObjectRepresentation(h,e.name,e.value,r)})),e[t.value]=h}else if(function isVariable(e){return"Variable"===e.kind}(n)){var d=(r||{})[n.name.value];e[t.value]=d}else if(function isListValue(e){return"ListValue"===e.kind}(n))e[t.value]=n.values.map((function(e){var n={};return valueToObjectRepresentation(n,t,e,r),n[t.value]}));else if(function isEnumValue(e){return"EnumValue"===e.kind}(n))e[t.value]=n.value;else{if(!function isNullValue(e){return"NullValue"===e.kind}(n))throw new i.ej(53);e[t.value]=null}}function storeKeyNameFromField(e,t){var n=null;e.directives&&(n={},e.directives.forEach((function(e){n[e.name.value]={},e.arguments&&e.arguments.forEach((function(r){var i=r.name,h=r.value;return valueToObjectRepresentation(n[e.name.value],i,h,t)}))})));var r=null;return e.arguments&&e.arguments.length&&(r={},e.arguments.forEach((function(e){var n=e.name,i=e.value;return valueToObjectRepresentation(r,n,i,t)}))),getStoreKeyName(e.name.value,r,n)}var y=["connection","include","skip","client","rest","export"];function getStoreKeyName(e,t,n){if(t&&n&&n.connection&&n.connection.key){if(n.connection.filter&&n.connection.filter.length>0){var r=n.connection.filter?n.connection.filter:[];r.sort();var i={};return r.forEach((function(e){i[e]=t[e]})),n.connection.key+"("+JSON.stringify(i)+")"}return n.connection.key}var h=e;if(t){var d=g()(t);h+="("+d+")"}return n&&Object.keys(n).forEach((function(e){-1===y.indexOf(e)&&(n[e]&&Object.keys(n[e]).length?h+="@"+e+"("+JSON.stringify(n[e])+")":h+="@"+e)})),h}function argumentsObjectFromField(e,t){if(e.arguments&&e.arguments.length){var n={};return e.arguments.forEach((function(e){var r=e.name,i=e.value;return valueToObjectRepresentation(n,r,i,t)})),n}return null}function resultKeyNameFromField(e){return e.alias?e.alias.value:e.name.value}function getTypenameFromResult(e,t,n){if("string"===typeof e.__typename)return e.__typename;for(var r=0,i=t.selections;r1)for(var r=new w,i=1;i0}function graphQLResultHasError(e){return e.errors&&e.errors.length>0||!1}fixObservableSubclass(T);var x="function"===typeof WeakMap&&!("object"===typeof navigator&&"ReactNative"===navigator.product);function compact(){for(var e=[],t=0;t=0&&e.indexOf(t,n)===n}(T,y)}return!1}function definedKeys(e){return Object.keys(e).filter(isDefinedKey,e)}function isDefinedKey(e){return void 0!==this[e]}var y="{ [native code] }";function previouslyCompared(e,t){var n=g.get(e);if(n){if(n.has(t))return!0}else g.set(e,n=new Set);return n.add(t),!1}},6971:function(e,t,n){e.exports=n(5263)},8992:function(e,t,n){"use strict";var r=n(608),i=n(6232),h=n(7739),d=n(9598),g=n(4853),y=n(2592),v=n(5034),b=n(4773);e.exports=function xhrAdapter(e){return new Promise((function dispatchXhrRequest(t,n){var _=e.data,w=e.headers;r.isFormData(_)&&delete w["Content-Type"];var E=new XMLHttpRequest;if(e.auth){var S=e.auth.username||"",k=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";w.Authorization="Basic "+btoa(S+":"+k)}var O=g(e.baseURL,e.url);if(E.open(e.method.toUpperCase(),d(O,e.params,e.paramsSerializer),!0),E.timeout=e.timeout,E.onreadystatechange=function handleLoad(){if(E&&4===E.readyState&&(0!==E.status||E.responseURL&&0===E.responseURL.indexOf("file:"))){var r="getAllResponseHeaders"in E?y(E.getAllResponseHeaders()):null,h={data:e.responseType&&"text"!==e.responseType?E.response:E.responseText,status:E.status,statusText:E.statusText,headers:r,config:e,request:E};i(t,n,h),E=null}},E.onabort=function handleAbort(){E&&(n(b("Request aborted",e,"ECONNABORTED",E)),E=null)},E.onerror=function handleError(){n(b("Network Error",e,null,E)),E=null},E.ontimeout=function handleTimeout(){var t="timeout of "+e.timeout+"ms exceeded";e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),n(b(t,e,"ECONNABORTED",E)),E=null},r.isStandardBrowserEnv()){var C=(e.withCredentials||v(O))&&e.xsrfCookieName?h.read(e.xsrfCookieName):void 0;C&&(w[e.xsrfHeaderName]=C)}if("setRequestHeader"in E&&r.forEach(w,(function setRequestHeader(e,t){"undefined"===typeof _&&"content-type"===t.toLowerCase()?delete w[t]:E.setRequestHeader(t,e)})),r.isUndefined(e.withCredentials)||(E.withCredentials=!!e.withCredentials),e.responseType)try{E.responseType=e.responseType}catch(T){if("json"!==e.responseType)throw T}"function"===typeof e.onDownloadProgress&&E.addEventListener("progress",e.onDownloadProgress),"function"===typeof e.onUploadProgress&&E.upload&&E.upload.addEventListener("progress",e.onUploadProgress),e.cancelToken&&e.cancelToken.promise.then((function onCanceled(e){E&&(E.abort(),n(e),E=null)})),_||(_=null),E.send(_)}))}},5263:function(e,t,n){"use strict";var r=n(608),i=n(655),h=n(2671),d=n(6961);function createInstance(e){var t=new h(e),n=i(h.prototype.request,t);return r.extend(n,h.prototype,t),r.extend(n,t),n}var g=createInstance(n(8479));g.Axios=h,g.create=function create(e){return createInstance(d(g.defaults,e))},g.Cancel=n(1828),g.CancelToken=n(9953),g.isCancel=n(4373),g.all=function all(e){return Promise.all(e)},g.spread=n(5869),g.isAxiosError=n(2936),e.exports=g,e.exports.default=g},1828:function(e){"use strict";function Cancel(e){this.message=e}Cancel.prototype.toString=function toString(){return"Cancel"+(this.message?": "+this.message:"")},Cancel.prototype.__CANCEL__=!0,e.exports=Cancel},9953:function(e,t,n){"use strict";var r=n(1828);function CancelToken(e){if("function"!==typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise((function promiseExecutor(e){t=e}));var n=this;e((function cancel(e){n.reason||(n.reason=new r(e),t(n.reason))}))}CancelToken.prototype.throwIfRequested=function throwIfRequested(){if(this.reason)throw this.reason},CancelToken.source=function source(){var e;return{token:new CancelToken((function executor(t){e=t})),cancel:e}},e.exports=CancelToken},4373:function(e){"use strict";e.exports=function isCancel(e){return!(!e||!e.__CANCEL__)}},2671:function(e,t,n){"use strict";var r=n(608),i=n(9598),h=n(2974),d=n(3925),g=n(6961);function Axios(e){this.defaults=e,this.interceptors={request:new h,response:new h}}Axios.prototype.request=function request(e){"string"===typeof e?(e=arguments[1]||{}).url=arguments[0]:e=e||{},(e=g(this.defaults,e)).method?e.method=e.method.toLowerCase():this.defaults.method?e.method=this.defaults.method.toLowerCase():e.method="get";var t=[d,void 0],n=Promise.resolve(e);for(this.interceptors.request.forEach((function unshiftRequestInterceptors(e){t.unshift(e.fulfilled,e.rejected)})),this.interceptors.response.forEach((function pushResponseInterceptors(e){t.push(e.fulfilled,e.rejected)}));t.length;)n=n.then(t.shift(),t.shift());return n},Axios.prototype.getUri=function getUri(e){return e=g(this.defaults,e),i(e.url,e.params,e.paramsSerializer).replace(/^\?/,"")},r.forEach(["delete","get","head","options"],(function forEachMethodNoData(e){Axios.prototype[e]=function(t,n){return this.request(g(n||{},{method:e,url:t,data:(n||{}).data}))}})),r.forEach(["post","put","patch"],(function forEachMethodWithData(e){Axios.prototype[e]=function(t,n,r){return this.request(g(r||{},{method:e,url:t,data:n}))}})),e.exports=Axios},2974:function(e,t,n){"use strict";var r=n(608);function InterceptorManager(){this.handlers=[]}InterceptorManager.prototype.use=function use(e,t){return this.handlers.push({fulfilled:e,rejected:t}),this.handlers.length-1},InterceptorManager.prototype.eject=function eject(e){this.handlers[e]&&(this.handlers[e]=null)},InterceptorManager.prototype.forEach=function forEach(e){r.forEach(this.handlers,(function forEachHandler(t){null!==t&&e(t)}))},e.exports=InterceptorManager},4853:function(e,t,n){"use strict";var r=n(1882),i=n(4476);e.exports=function buildFullPath(e,t){return e&&!r(t)?i(e,t):t}},4773:function(e,t,n){"use strict";var r=n(4665);e.exports=function createError(e,t,n,i,h){var d=new Error(e);return r(d,t,n,i,h)}},3925:function(e,t,n){"use strict";var r=n(608),i=n(6517),h=n(4373),d=n(8479);function throwIfCancellationRequested(e){e.cancelToken&&e.cancelToken.throwIfRequested()}e.exports=function dispatchRequest(e){return throwIfCancellationRequested(e),e.headers=e.headers||{},e.data=i(e.data,e.headers,e.transformRequest),e.headers=r.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),r.forEach(["delete","get","head","post","put","patch","common"],(function cleanHeaderConfig(t){delete e.headers[t]})),(e.adapter||d.adapter)(e).then((function onAdapterResolution(t){return throwIfCancellationRequested(e),t.data=i(t.data,t.headers,e.transformResponse),t}),(function onAdapterRejection(t){return h(t)||(throwIfCancellationRequested(e),t&&t.response&&(t.response.data=i(t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)}))}},4665:function(e){"use strict";e.exports=function enhanceError(e,t,n,r,i){return e.config=t,n&&(e.code=n),e.request=r,e.response=i,e.isAxiosError=!0,e.toJSON=function toJSON(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code}},e}},6961:function(e,t,n){"use strict";var r=n(608);e.exports=function mergeConfig(e,t){t=t||{};var n={},i=["url","method","data"],h=["headers","auth","proxy","params"],d=["baseURL","transformRequest","transformResponse","paramsSerializer","timeout","timeoutMessage","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","decompress","maxContentLength","maxBodyLength","maxRedirects","transport","httpAgent","httpsAgent","cancelToken","socketPath","responseEncoding"],g=["validateStatus"];function getMergedValue(e,t){return r.isPlainObject(e)&&r.isPlainObject(t)?r.merge(e,t):r.isPlainObject(t)?r.merge({},t):r.isArray(t)?t.slice():t}function mergeDeepProperties(i){r.isUndefined(t[i])?r.isUndefined(e[i])||(n[i]=getMergedValue(void 0,e[i])):n[i]=getMergedValue(e[i],t[i])}r.forEach(i,(function valueFromConfig2(e){r.isUndefined(t[e])||(n[e]=getMergedValue(void 0,t[e]))})),r.forEach(h,mergeDeepProperties),r.forEach(d,(function defaultToConfig2(i){r.isUndefined(t[i])?r.isUndefined(e[i])||(n[i]=getMergedValue(void 0,e[i])):n[i]=getMergedValue(void 0,t[i])})),r.forEach(g,(function merge(r){r in t?n[r]=getMergedValue(e[r],t[r]):r in e&&(n[r]=getMergedValue(void 0,e[r]))}));var y=i.concat(h).concat(d).concat(g),v=Object.keys(e).concat(Object.keys(t)).filter((function filterAxiosKeys(e){return-1===y.indexOf(e)}));return r.forEach(v,mergeDeepProperties),n}},6232:function(e,t,n){"use strict";var r=n(4773);e.exports=function settle(e,t,n){var i=n.config.validateStatus;n.status&&i&&!i(n.status)?t(r("Request failed with status code "+n.status,n.config,null,n.request,n)):e(n)}},6517:function(e,t,n){"use strict";var r=n(608);e.exports=function transformData(e,t,n){return r.forEach(n,(function transform(n){e=n(e,t)})),e}},8479:function(e,t,n){"use strict";var r=n(608),i=n(9273),h={"Content-Type":"application/x-www-form-urlencoded"};function setContentTypeIfUnset(e,t){!r.isUndefined(e)&&r.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}var d={adapter:function getDefaultAdapter(){var e;return("undefined"!==typeof XMLHttpRequest||"undefined"!==typeof process&&"[object process]"===Object.prototype.toString.call(process))&&(e=n(8992)),e}(),transformRequest:[function transformRequest(e,t){return i(t,"Accept"),i(t,"Content-Type"),r.isFormData(e)||r.isArrayBuffer(e)||r.isBuffer(e)||r.isStream(e)||r.isFile(e)||r.isBlob(e)?e:r.isArrayBufferView(e)?e.buffer:r.isURLSearchParams(e)?(setContentTypeIfUnset(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString()):r.isObject(e)?(setContentTypeIfUnset(t,"application/json;charset=utf-8"),JSON.stringify(e)):e}],transformResponse:[function transformResponse(e){if("string"===typeof e)try{e=JSON.parse(e)}catch(t){}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function validateStatus(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};r.forEach(["delete","get","head"],(function forEachMethodNoData(e){d.headers[e]={}})),r.forEach(["post","put","patch"],(function forEachMethodWithData(e){d.headers[e]=r.merge(h)})),e.exports=d},655:function(e){"use strict";e.exports=function bind(e,t){return function wrap(){for(var n=new Array(arguments.length),r=0;r=0)return;d[t]="set-cookie"===t?(d[t]?d[t]:[]).concat([n]):d[t]?d[t]+", "+n:n}})),d):d}},5869:function(e){"use strict";e.exports=function spread(e){return function wrap(t){return e.apply(null,t)}}},608:function(e,t,n){"use strict";var r=n(655),i=Object.prototype.toString;function isArray(e){return"[object Array]"===i.call(e)}function isUndefined(e){return"undefined"===typeof e}function isObject(e){return null!==e&&"object"===typeof e}function isPlainObject(e){if("[object Object]"!==i.call(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}function isFunction(e){return"[object Function]"===i.call(e)}function forEach(e,t){if(null!==e&&"undefined"!==typeof e)if("object"!==typeof e&&(e=[e]),isArray(e))for(var n=0,r=e.length;n=0&&v>0){if(e===t)return[y,v];for(r=[],h=n.length;b>=0&&!g;)b===y?(r.push(b),y=n.indexOf(e,b+1)):1===r.length?g=[r.pop(),v]:(i=r.pop(),i=0?y:v;r.length&&(g=[h,d])}return g}e.exports=balanced,balanced.range=range},6141:function(e,t,n){var r=n(3413);e.exports=function expandTop(e){if(!e)return[];"{}"===e.substr(0,2)&&(e="\\{\\}"+e.substr(2));return expand(function escapeBraces(e){return e.split("\\\\").join(i).split("\\{").join(h).split("\\}").join(d).split("\\,").join(g).split("\\.").join(y)}(e),!0).map(unescapeBraces)};var i="\0SLASH"+Math.random()+"\0",h="\0OPEN"+Math.random()+"\0",d="\0CLOSE"+Math.random()+"\0",g="\0COMMA"+Math.random()+"\0",y="\0PERIOD"+Math.random()+"\0";function numeric(e){return parseInt(e,10)==e?parseInt(e,10):e.charCodeAt(0)}function unescapeBraces(e){return e.split(i).join("\\").split(h).join("{").split(d).join("}").split(g).join(",").split(y).join(".")}function parseCommaParts(e){if(!e)return[""];var t=[],n=r("{","}",e);if(!n)return e.split(",");var i=n.pre,h=n.body,d=n.post,g=i.split(",");g[g.length-1]+="{"+h+"}";var y=parseCommaParts(d);return d.length&&(g[g.length-1]+=y.shift(),g.push.apply(g,y)),t.push.apply(t,g),t}function embrace(e){return"{"+e+"}"}function isPadded(e){return/^-?0\d/.test(e)}function lte(e,t){return e<=t}function gte(e,t){return e>=t}function expand(e,t){var n=[],i=r("{","}",e);if(!i)return[e];var h=i.pre,g=i.post.length?expand(i.post,!1):[""];if(/\$$/.test(i.pre))for(var y=0;y=0;if(!S&&!k)return i.post.match(/,.*\}/)?expand(e=i.pre+"{"+i.body+d+i.post):[e];if(S)b=i.body.split(/\.\./);else if(1===(b=parseCommaParts(i.body)).length&&1===(b=expand(b[0],!1).map(embrace)).length)return g.map((function(e){return i.pre+b[0]+e}));if(S){var O=numeric(b[0]),C=numeric(b[1]),T=Math.max(b[0].length,b[1].length),x=3==b.length?Math.abs(numeric(b[2])):1,A=lte;C0){var R=new Array(I+1).join("0");N=L<0?"-"+R+N.slice(1):R+N}}_.push(N)}}else{_=[];for(var M=0;M":">",'"':""","'":"'","/":"/","`":"`","=":"="};function escape_string(e){return e.replace(/[&<>"'`=\/]/g,(function(e){return n[e]}))}function parse_caption(e,t){return"undefined"!==typeof e.node.edge_media_to_caption.edges[0]&&"undefined"!==typeof e.node.edge_media_to_caption.edges[0].node&&"undefined"!==typeof e.node.edge_media_to_caption.edges[0].node.text&&null!==e.node.edge_media_to_caption.edges[0].node.text?e.node.edge_media_to_caption.edges[0].node.text:"undefined"!==typeof e.node.title&&null!==e.node.title&&0!=e.node.title.length?e.node.title:"undefined"!==typeof e.node.accessibility_caption&&null!==e.node.accessibility_caption&&0!=e.node.accessibility_caption.length&&e.node.accessibility_caption}function get_cache(e,t){var n=t||!1;if(!t&&e.cache_time>0){var r=localStorage.getItem(e.cache_time_key);null!==r&&parseInt(r)+6e4*e.cache_time>(new Date).getTime()&&(n=!0)}if(n){var i=localStorage.getItem(e.cache_data_key);if(null!==i)return JSON.parse(i)}return!1}function set_cache(e,t){var n=localStorage.getItem(e.cache_time_key);0!=e.cache_time&&(null===n||parseInt(n)+6e4*e.cache_time>(new Date).getTime())&&(localStorage.setItem(e.cache_data_key,JSON.stringify(t)),localStorage.setItem(e.cache_time_key,(new Date).getTime()))}function parse_response(e,t){switch(e){case"username":case"tag":case"location":try{t=t.split("window._sharedData = ")[1].split("<\/script>")[0]}catch(n){return!1}return"undefined"!==typeof(t=(t=JSON.parse(t.substr(0,t.length-1))).entry_data.ProfilePage||t.entry_data.TagPage||t.entry_data.LocationsPage)&&(t[0].graphql.user||t[0].graphql.hashtag||t[0].graphql.location);case"userid":return"undefined"!==typeof t.data.user&&t.data.user}}function request_data(e,t,n,r,i,h){var d;i&&h&&(d="https://images"+~~(3333*Math.random())+"-focus-opensocial.googleusercontent.com/gadgets/proxy?container=none&url="+e);var g=new XMLHttpRequest;g.onload=function(e){4===g.readyState&&200===g.status&&(data=parse_response(t,g.responseText),!1!==data?r(data):r(!1))},g.onerror=function(d){n>1?(console.warn("Instagram Feed: Request failed, "+(n-1)+" tries left. Retrying..."),request_data(e,t,n-1,r,i,!h)):r(!1,d)},g.open("GET",d||e,!0),g.send()}function get_data(t,n){var r=get_cache(t,!1);if(!1!==r)n(r);else{var i;switch(t.type){case"username":i=t.host+t.id+"/";break;case"tag":i=t.host+"explore/tags/"+t.id+"/";break;case"location":i=t.host+"explore/locations/"+t.id+"/";break;case"userid":i=t.host+'graphql/query/?query_id=17888483320059182&variables={"id":"'+t.id+'","first":'+t.items+',"after":null}'}request_data(i,t.type,t.max_tries,(function(e,r){!1!==e?(set_cache(t,e),n(e)):"undefined"===typeof r?t.on_error("Instagram Feed: It looks like the profile you are trying to fetch is age restricted. See https://github.com/jsanahuja/InstagramFeed/issues/26",3):!1!==(e=get_cache(t,!0))?n(e):t.on_error("Instagram Feed: Unable to fetch the given user/tag. Instagram responded with the status code: "+r.status,5)}),t.host===e.host&&"userid"!=t.type,!1)}}function resolveUrl(e,t){return"function"===typeof t?t(e):e}function render(e,n){var r,i="";if(e.styling?(r={profile_container:' style="text-align:center;"',profile_image:' style="border-radius:10em;width:15%;max-width:125px;min-width:50px;"',profile_name:' style="font-size:1.2em;"',profile_biography:' style="font-size:1em;"',gallery_image:' style="width:100%;"',gallery_image_link:' style="width:'+(100-2*e.margin*e.items_per_row)/e.items_per_row+"%; margin:"+e.margin+'%;position:relative; display: inline-block; height: 100%;"'},e.display_captions&&(i+="")):r={profile_container:"",profile_image:"",profile_name:"",profile_biography:"",gallery_image:"",gallery_image_link:""},e.display_profile&&"userid"!==e.type&&(i+='
",i+=''+(","tag"==e.type?i+='

#'+e.tag+"

":"username"==e.type?(i+="

@"+n.full_name+" (@"+e.username+")

",e.display_biography&&(i+="

"+n.biography+"

")):"location"==e.type&&(i+="

"+n.name+"

"),i+="
"),e.display_gallery)if("undefined"!==typeof n.is_private&&!0===n.is_private)i+='

This profile is private

';else{var h="undefined"!==typeof t[e.image_size]?t[e.image_size]:t[640],d=(n.edge_owner_to_timeline_media||n.edge_hashtag_to_media||n.edge_location_to_media).edges,g=d.length>e.items?e.items:d.length;i+=""}if(e.display_igtv&&"undefined"!==typeof n.edge_felix_video_timeline){var w=n.edge_felix_video_timeline.edges;if(g=w.length>e.items?e.items:w.length,w.length>0){for(i+='
',y=0;y",i+="",i+=""}i+="
"}}e.container.innerHTML=i}return"function"!=typeof Object.assign&&(Object.assign=function(e){"use strict";if(null==e)throw new TypeError("Cannot convert undefined or null to object");e=Object(e);for(var t=1;t120){for(var w=Math.floor(y/80),E=y%80,S=[],k=0;k<_.length;k+=80)S.push(_.slice(k,k+80));return v+printPrefixedLines([["".concat(d),S[0]]].concat(S.slice(1,w+1).map((function(e){return["",e]})),[[" ",whitespace(E-1)+"^"],["",S[w+1]]]))}return v+printPrefixedLines([["".concat(d-1),b[i-1]],["".concat(d),_],["",whitespace(y-1)+"^"],["".concat(d+1),b[i+1]]])}function printPrefixedLines(e){var t=e.filter((function(e){e[0];return void 0!==e[1]})),n=Math.max.apply(Math,t.map((function(e){return e[0].length})));return t.map((function(e){var t=e[0],r=e[1];return function leftPad(e,t){return whitespace(e-t.length)+t}(n,t)+(r?" | "+r:" |")})).join("\n")}function whitespace(e){return Array(e+1).join(" ")}function GraphQLError_typeof(e){return(GraphQLError_typeof="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function _typeof(e){return typeof e}:function _typeof(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function _defineProperties(e,t){for(var n=0;n",EOF:"",BANG:"!",DOLLAR:"$",AMP:"&",PAREN_L:"(",PAREN_R:")",SPREAD:"...",COLON:":",EQUALS:"=",AT:"@",BRACKET_L:"[",BRACKET_R:"]",BRACE_L:"{",PIPE:"|",BRACE_R:"}",NAME:"Name",INT:"Int",FLOAT:"Float",STRING:"String",BLOCK_STRING:"BlockString",COMMENT:"Comment"}),v=n(6430);function devAssert(e,t){if(!Boolean(e))throw new Error(t)}var b=function instanceOf(e,t){return e instanceof t};function source_defineProperties(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:"GraphQL request",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{line:1,column:1};"string"===typeof e||devAssert(0,"Body must be a string. Received: ".concat((0,v.Z)(e),".")),this.body=e,this.name=t,this.locationOffset=n,this.locationOffset.line>0||devAssert(0,"line in locationOffset is 1-indexed and must be positive."),this.locationOffset.column>0||devAssert(0,"column in locationOffset is 1-indexed and must be positive.")}return function source_createClass(e,t,n){return t&&source_defineProperties(e.prototype,t),n&&source_defineProperties(e,n),e}(Source,[{key:i,get:function get(){return"Source"}}]),Source}();var w=Object.freeze({QUERY:"QUERY",MUTATION:"MUTATION",SUBSCRIPTION:"SUBSCRIPTION",FIELD:"FIELD",FRAGMENT_DEFINITION:"FRAGMENT_DEFINITION",FRAGMENT_SPREAD:"FRAGMENT_SPREAD",INLINE_FRAGMENT:"INLINE_FRAGMENT",VARIABLE_DEFINITION:"VARIABLE_DEFINITION",SCHEMA:"SCHEMA",SCALAR:"SCALAR",OBJECT:"OBJECT",FIELD_DEFINITION:"FIELD_DEFINITION",ARGUMENT_DEFINITION:"ARGUMENT_DEFINITION",INTERFACE:"INTERFACE",UNION:"UNION",ENUM:"ENUM",ENUM_VALUE:"ENUM_VALUE",INPUT_OBJECT:"INPUT_OBJECT",INPUT_FIELD_DEFINITION:"INPUT_FIELD_DEFINITION"}),E=n(2464),S=function(){function Lexer(e){var t=new g.WU(y.SOF,0,0,0,0,null);this.source=e,this.lastToken=t,this.token=t,this.line=1,this.lineStart=0}var e=Lexer.prototype;return e.advance=function advance(){return this.lastToken=this.token,this.token=this.lookahead()},e.lookahead=function lookahead(){var e=this.token;if(e.kind!==y.EOF)do{var t;e=null!==(t=e.next)&&void 0!==t?t:e.next=readToken(this,e)}while(e.kind===y.COMMENT);return e},Lexer}();function printCharCode(e){return isNaN(e)?y.EOF:e<127?JSON.stringify(String.fromCharCode(e)):'"\\u'.concat(("00"+e.toString(16).toUpperCase()).slice(-4),'"')}function readToken(e,t){for(var n=e.source,r=n.body,i=r.length,h=t.end;h31||9===h));return new g.WU(y.COMMENT,t,v,n,r,i,d.slice(t+1,v))}function readNumber(e,t,n,r,i,h){var d=e.body,v=n,b=t,_=!1;if(45===v&&(v=d.charCodeAt(++b)),48===v){if((v=d.charCodeAt(++b))>=48&&v<=57)throw syntaxError(e,b,"Invalid number, unexpected digit after 0: ".concat(printCharCode(v),"."))}else b=readDigits(e,b,v),v=d.charCodeAt(b);if(46===v&&(_=!0,v=d.charCodeAt(++b),b=readDigits(e,b,v),v=d.charCodeAt(b)),69!==v&&101!==v||(_=!0,43!==(v=d.charCodeAt(++b))&&45!==v||(v=d.charCodeAt(++b)),b=readDigits(e,b,v),v=d.charCodeAt(b)),46===v||function isNameStart(e){return 95===e||e>=65&&e<=90||e>=97&&e<=122}(v))throw syntaxError(e,b,"Invalid number, expected digit but got: ".concat(printCharCode(v),"."));return new g.WU(_?y.FLOAT:y.INT,t,b,r,i,h,d.slice(t,b))}function readDigits(e,t,n){var r=e.body,i=t,h=n;if(h>=48&&h<=57){do{h=r.charCodeAt(++i)}while(h>=48&&h<=57);return i}throw syntaxError(e,i,"Invalid number, expected digit but got: ".concat(printCharCode(h),"."))}function readString(e,t,n,r,i){for(var h,d,v,b,_=e.body,w=t+1,E=w,S=0,k="";w<_.length&&!isNaN(S=_.charCodeAt(w))&&10!==S&&13!==S;){if(34===S)return k+=_.slice(E,w),new g.WU(y.STRING,t,w+1,n,r,i,k);if(S<32&&9!==S)throw syntaxError(e,w,"Invalid character within String: ".concat(printCharCode(S),"."));if(++w,92===S){switch(k+=_.slice(E,w-1),S=_.charCodeAt(w)){case 34:k+='"';break;case 47:k+="/";break;case 92:k+="\\";break;case 98:k+="\b";break;case 102:k+="\f";break;case 110:k+="\n";break;case 114:k+="\r";break;case 116:k+="\t";break;case 117:var O=(h=_.charCodeAt(w+1),d=_.charCodeAt(w+2),v=_.charCodeAt(w+3),b=_.charCodeAt(w+4),char2hex(h)<<12|char2hex(d)<<8|char2hex(v)<<4|char2hex(b));if(O<0){var C=_.slice(w+1,w+5);throw syntaxError(e,w,"Invalid character escape sequence: \\u".concat(C,"."))}k+=String.fromCharCode(O),w+=4;break;default:throw syntaxError(e,w,"Invalid character escape sequence: \\".concat(String.fromCharCode(S),"."))}E=++w}}throw syntaxError(e,w,"Unterminated string.")}function readBlockString(e,t,n,r,i,h){for(var d=e.body,v=t+3,b=v,_=0,w="";v=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:-1}function readName(e,t,n,r,i){for(var h=e.body,d=h.length,v=t+1,b=0;v!==d&&!isNaN(b=h.charCodeAt(v))&&(95===b||b>=48&&b<=57||b>=65&&b<=90||b>=97&&b<=122);)++v;return new g.WU(y.NAME,t,v,n,r,i,h.slice(t,v))}var k=function(){function Parser(e,t){var n=function isSource(e){return b(e,_)}(e)?e:new _(e);this._lexer=new S(n),this._options=t}var e=Parser.prototype;return e.parseName=function parseName(){var e=this.expectToken(y.NAME);return{kind:d.NAME,value:e.value,loc:this.loc(e)}},e.parseDocument=function parseDocument(){var e=this._lexer.token;return{kind:d.DOCUMENT,definitions:this.many(y.SOF,this.parseDefinition,y.EOF),loc:this.loc(e)}},e.parseDefinition=function parseDefinition(){if(this.peek(y.NAME))switch(this._lexer.token.value){case"query":case"mutation":case"subscription":return this.parseOperationDefinition();case"fragment":return this.parseFragmentDefinition();case"schema":case"scalar":case"type":case"interface":case"union":case"enum":case"input":case"directive":return this.parseTypeSystemDefinition();case"extend":return this.parseTypeSystemExtension()}else{if(this.peek(y.BRACE_L))return this.parseOperationDefinition();if(this.peekDescription())return this.parseTypeSystemDefinition()}throw this.unexpected()},e.parseOperationDefinition=function parseOperationDefinition(){var e=this._lexer.token;if(this.peek(y.BRACE_L))return{kind:d.OPERATION_DEFINITION,operation:"query",name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet(),loc:this.loc(e)};var t,n=this.parseOperationType();return this.peek(y.NAME)&&(t=this.parseName()),{kind:d.OPERATION_DEFINITION,operation:n,name:t,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(e)}},e.parseOperationType=function parseOperationType(){var e=this.expectToken(y.NAME);switch(e.value){case"query":return"query";case"mutation":return"mutation";case"subscription":return"subscription"}throw this.unexpected(e)},e.parseVariableDefinitions=function parseVariableDefinitions(){return this.optionalMany(y.PAREN_L,this.parseVariableDefinition,y.PAREN_R)},e.parseVariableDefinition=function parseVariableDefinition(){var e=this._lexer.token;return{kind:d.VARIABLE_DEFINITION,variable:this.parseVariable(),type:(this.expectToken(y.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(y.EQUALS)?this.parseValueLiteral(!0):void 0,directives:this.parseDirectives(!0),loc:this.loc(e)}},e.parseVariable=function parseVariable(){var e=this._lexer.token;return this.expectToken(y.DOLLAR),{kind:d.VARIABLE,name:this.parseName(),loc:this.loc(e)}},e.parseSelectionSet=function parseSelectionSet(){var e=this._lexer.token;return{kind:d.SELECTION_SET,selections:this.many(y.BRACE_L,this.parseSelection,y.BRACE_R),loc:this.loc(e)}},e.parseSelection=function parseSelection(){return this.peek(y.SPREAD)?this.parseFragment():this.parseField()},e.parseField=function parseField(){var e,t,n=this._lexer.token,r=this.parseName();return this.expectOptionalToken(y.COLON)?(e=r,t=this.parseName()):t=r,{kind:d.FIELD,alias:e,name:t,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(y.BRACE_L)?this.parseSelectionSet():void 0,loc:this.loc(n)}},e.parseArguments=function parseArguments(e){var t=e?this.parseConstArgument:this.parseArgument;return this.optionalMany(y.PAREN_L,t,y.PAREN_R)},e.parseArgument=function parseArgument(){var e=this._lexer.token,t=this.parseName();return this.expectToken(y.COLON),{kind:d.ARGUMENT,name:t,value:this.parseValueLiteral(!1),loc:this.loc(e)}},e.parseConstArgument=function parseConstArgument(){var e=this._lexer.token;return{kind:d.ARGUMENT,name:this.parseName(),value:(this.expectToken(y.COLON),this.parseValueLiteral(!0)),loc:this.loc(e)}},e.parseFragment=function parseFragment(){var e=this._lexer.token;this.expectToken(y.SPREAD);var t=this.expectOptionalKeyword("on");return!t&&this.peek(y.NAME)?{kind:d.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1),loc:this.loc(e)}:{kind:d.INLINE_FRAGMENT,typeCondition:t?this.parseNamedType():void 0,directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(e)}},e.parseFragmentDefinition=function parseFragmentDefinition(){var e,t=this._lexer.token;return this.expectKeyword("fragment"),!0===(null===(e=this._options)||void 0===e?void 0:e.experimentalFragmentVariables)?{kind:d.FRAGMENT_DEFINITION,name:this.parseFragmentName(),variableDefinitions:this.parseVariableDefinitions(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(t)}:{kind:d.FRAGMENT_DEFINITION,name:this.parseFragmentName(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(t)}},e.parseFragmentName=function parseFragmentName(){if("on"===this._lexer.token.value)throw this.unexpected();return this.parseName()},e.parseValueLiteral=function parseValueLiteral(e){var t=this._lexer.token;switch(t.kind){case y.BRACKET_L:return this.parseList(e);case y.BRACE_L:return this.parseObject(e);case y.INT:return this._lexer.advance(),{kind:d.INT,value:t.value,loc:this.loc(t)};case y.FLOAT:return this._lexer.advance(),{kind:d.FLOAT,value:t.value,loc:this.loc(t)};case y.STRING:case y.BLOCK_STRING:return this.parseStringLiteral();case y.NAME:switch(this._lexer.advance(),t.value){case"true":return{kind:d.BOOLEAN,value:!0,loc:this.loc(t)};case"false":return{kind:d.BOOLEAN,value:!1,loc:this.loc(t)};case"null":return{kind:d.NULL,loc:this.loc(t)};default:return{kind:d.ENUM,value:t.value,loc:this.loc(t)}}case y.DOLLAR:if(!e)return this.parseVariable()}throw this.unexpected()},e.parseStringLiteral=function parseStringLiteral(){var e=this._lexer.token;return this._lexer.advance(),{kind:d.STRING,value:e.value,block:e.kind===y.BLOCK_STRING,loc:this.loc(e)}},e.parseList=function parseList(e){var t=this,n=this._lexer.token;return{kind:d.LIST,values:this.any(y.BRACKET_L,(function item(){return t.parseValueLiteral(e)}),y.BRACKET_R),loc:this.loc(n)}},e.parseObject=function parseObject(e){var t=this,n=this._lexer.token;return{kind:d.OBJECT,fields:this.any(y.BRACE_L,(function item(){return t.parseObjectField(e)}),y.BRACE_R),loc:this.loc(n)}},e.parseObjectField=function parseObjectField(e){var t=this._lexer.token,n=this.parseName();return this.expectToken(y.COLON),{kind:d.OBJECT_FIELD,name:n,value:this.parseValueLiteral(e),loc:this.loc(t)}},e.parseDirectives=function parseDirectives(e){for(var t=[];this.peek(y.AT);)t.push(this.parseDirective(e));return t},e.parseDirective=function parseDirective(e){var t=this._lexer.token;return this.expectToken(y.AT),{kind:d.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(e),loc:this.loc(t)}},e.parseTypeReference=function parseTypeReference(){var e,t=this._lexer.token;return this.expectOptionalToken(y.BRACKET_L)?(e=this.parseTypeReference(),this.expectToken(y.BRACKET_R),e={kind:d.LIST_TYPE,type:e,loc:this.loc(t)}):e=this.parseNamedType(),this.expectOptionalToken(y.BANG)?{kind:d.NON_NULL_TYPE,type:e,loc:this.loc(t)}:e},e.parseNamedType=function parseNamedType(){var e=this._lexer.token;return{kind:d.NAMED_TYPE,name:this.parseName(),loc:this.loc(e)}},e.parseTypeSystemDefinition=function parseTypeSystemDefinition(){var e=this.peekDescription()?this._lexer.lookahead():this._lexer.token;if(e.kind===y.NAME)switch(e.value){case"schema":return this.parseSchemaDefinition();case"scalar":return this.parseScalarTypeDefinition();case"type":return this.parseObjectTypeDefinition();case"interface":return this.parseInterfaceTypeDefinition();case"union":return this.parseUnionTypeDefinition();case"enum":return this.parseEnumTypeDefinition();case"input":return this.parseInputObjectTypeDefinition();case"directive":return this.parseDirectiveDefinition()}throw this.unexpected(e)},e.peekDescription=function peekDescription(){return this.peek(y.STRING)||this.peek(y.BLOCK_STRING)},e.parseDescription=function parseDescription(){if(this.peekDescription())return this.parseStringLiteral()},e.parseSchemaDefinition=function parseSchemaDefinition(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("schema");var n=this.parseDirectives(!0),r=this.many(y.BRACE_L,this.parseOperationTypeDefinition,y.BRACE_R);return{kind:d.SCHEMA_DEFINITION,description:t,directives:n,operationTypes:r,loc:this.loc(e)}},e.parseOperationTypeDefinition=function parseOperationTypeDefinition(){var e=this._lexer.token,t=this.parseOperationType();this.expectToken(y.COLON);var n=this.parseNamedType();return{kind:d.OPERATION_TYPE_DEFINITION,operation:t,type:n,loc:this.loc(e)}},e.parseScalarTypeDefinition=function parseScalarTypeDefinition(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("scalar");var n=this.parseName(),r=this.parseDirectives(!0);return{kind:d.SCALAR_TYPE_DEFINITION,description:t,name:n,directives:r,loc:this.loc(e)}},e.parseObjectTypeDefinition=function parseObjectTypeDefinition(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("type");var n=this.parseName(),r=this.parseImplementsInterfaces(),i=this.parseDirectives(!0),h=this.parseFieldsDefinition();return{kind:d.OBJECT_TYPE_DEFINITION,description:t,name:n,interfaces:r,directives:i,fields:h,loc:this.loc(e)}},e.parseImplementsInterfaces=function parseImplementsInterfaces(){var e;if(!this.expectOptionalKeyword("implements"))return[];if(!0===(null===(e=this._options)||void 0===e?void 0:e.allowLegacySDLImplementsInterfaces)){var t=[];this.expectOptionalToken(y.AMP);do{t.push(this.parseNamedType())}while(this.expectOptionalToken(y.AMP)||this.peek(y.NAME));return t}return this.delimitedMany(y.AMP,this.parseNamedType)},e.parseFieldsDefinition=function parseFieldsDefinition(){var e;return!0===(null===(e=this._options)||void 0===e?void 0:e.allowLegacySDLEmptyFields)&&this.peek(y.BRACE_L)&&this._lexer.lookahead().kind===y.BRACE_R?(this._lexer.advance(),this._lexer.advance(),[]):this.optionalMany(y.BRACE_L,this.parseFieldDefinition,y.BRACE_R)},e.parseFieldDefinition=function parseFieldDefinition(){var e=this._lexer.token,t=this.parseDescription(),n=this.parseName(),r=this.parseArgumentDefs();this.expectToken(y.COLON);var i=this.parseTypeReference(),h=this.parseDirectives(!0);return{kind:d.FIELD_DEFINITION,description:t,name:n,arguments:r,type:i,directives:h,loc:this.loc(e)}},e.parseArgumentDefs=function parseArgumentDefs(){return this.optionalMany(y.PAREN_L,this.parseInputValueDef,y.PAREN_R)},e.parseInputValueDef=function parseInputValueDef(){var e=this._lexer.token,t=this.parseDescription(),n=this.parseName();this.expectToken(y.COLON);var r,i=this.parseTypeReference();this.expectOptionalToken(y.EQUALS)&&(r=this.parseValueLiteral(!0));var h=this.parseDirectives(!0);return{kind:d.INPUT_VALUE_DEFINITION,description:t,name:n,type:i,defaultValue:r,directives:h,loc:this.loc(e)}},e.parseInterfaceTypeDefinition=function parseInterfaceTypeDefinition(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("interface");var n=this.parseName(),r=this.parseImplementsInterfaces(),i=this.parseDirectives(!0),h=this.parseFieldsDefinition();return{kind:d.INTERFACE_TYPE_DEFINITION,description:t,name:n,interfaces:r,directives:i,fields:h,loc:this.loc(e)}},e.parseUnionTypeDefinition=function parseUnionTypeDefinition(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("union");var n=this.parseName(),r=this.parseDirectives(!0),i=this.parseUnionMemberTypes();return{kind:d.UNION_TYPE_DEFINITION,description:t,name:n,directives:r,types:i,loc:this.loc(e)}},e.parseUnionMemberTypes=function parseUnionMemberTypes(){return this.expectOptionalToken(y.EQUALS)?this.delimitedMany(y.PIPE,this.parseNamedType):[]},e.parseEnumTypeDefinition=function parseEnumTypeDefinition(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("enum");var n=this.parseName(),r=this.parseDirectives(!0),i=this.parseEnumValuesDefinition();return{kind:d.ENUM_TYPE_DEFINITION,description:t,name:n,directives:r,values:i,loc:this.loc(e)}},e.parseEnumValuesDefinition=function parseEnumValuesDefinition(){return this.optionalMany(y.BRACE_L,this.parseEnumValueDefinition,y.BRACE_R)},e.parseEnumValueDefinition=function parseEnumValueDefinition(){var e=this._lexer.token,t=this.parseDescription(),n=this.parseName(),r=this.parseDirectives(!0);return{kind:d.ENUM_VALUE_DEFINITION,description:t,name:n,directives:r,loc:this.loc(e)}},e.parseInputObjectTypeDefinition=function parseInputObjectTypeDefinition(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("input");var n=this.parseName(),r=this.parseDirectives(!0),i=this.parseInputFieldsDefinition();return{kind:d.INPUT_OBJECT_TYPE_DEFINITION,description:t,name:n,directives:r,fields:i,loc:this.loc(e)}},e.parseInputFieldsDefinition=function parseInputFieldsDefinition(){return this.optionalMany(y.BRACE_L,this.parseInputValueDef,y.BRACE_R)},e.parseTypeSystemExtension=function parseTypeSystemExtension(){var e=this._lexer.lookahead();if(e.kind===y.NAME)switch(e.value){case"schema":return this.parseSchemaExtension();case"scalar":return this.parseScalarTypeExtension();case"type":return this.parseObjectTypeExtension();case"interface":return this.parseInterfaceTypeExtension();case"union":return this.parseUnionTypeExtension();case"enum":return this.parseEnumTypeExtension();case"input":return this.parseInputObjectTypeExtension()}throw this.unexpected(e)},e.parseSchemaExtension=function parseSchemaExtension(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("schema");var t=this.parseDirectives(!0),n=this.optionalMany(y.BRACE_L,this.parseOperationTypeDefinition,y.BRACE_R);if(0===t.length&&0===n.length)throw this.unexpected();return{kind:d.SCHEMA_EXTENSION,directives:t,operationTypes:n,loc:this.loc(e)}},e.parseScalarTypeExtension=function parseScalarTypeExtension(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("scalar");var t=this.parseName(),n=this.parseDirectives(!0);if(0===n.length)throw this.unexpected();return{kind:d.SCALAR_TYPE_EXTENSION,name:t,directives:n,loc:this.loc(e)}},e.parseObjectTypeExtension=function parseObjectTypeExtension(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("type");var t=this.parseName(),n=this.parseImplementsInterfaces(),r=this.parseDirectives(!0),i=this.parseFieldsDefinition();if(0===n.length&&0===r.length&&0===i.length)throw this.unexpected();return{kind:d.OBJECT_TYPE_EXTENSION,name:t,interfaces:n,directives:r,fields:i,loc:this.loc(e)}},e.parseInterfaceTypeExtension=function parseInterfaceTypeExtension(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("interface");var t=this.parseName(),n=this.parseImplementsInterfaces(),r=this.parseDirectives(!0),i=this.parseFieldsDefinition();if(0===n.length&&0===r.length&&0===i.length)throw this.unexpected();return{kind:d.INTERFACE_TYPE_EXTENSION,name:t,interfaces:n,directives:r,fields:i,loc:this.loc(e)}},e.parseUnionTypeExtension=function parseUnionTypeExtension(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("union");var t=this.parseName(),n=this.parseDirectives(!0),r=this.parseUnionMemberTypes();if(0===n.length&&0===r.length)throw this.unexpected();return{kind:d.UNION_TYPE_EXTENSION,name:t,directives:n,types:r,loc:this.loc(e)}},e.parseEnumTypeExtension=function parseEnumTypeExtension(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("enum");var t=this.parseName(),n=this.parseDirectives(!0),r=this.parseEnumValuesDefinition();if(0===n.length&&0===r.length)throw this.unexpected();return{kind:d.ENUM_TYPE_EXTENSION,name:t,directives:n,values:r,loc:this.loc(e)}},e.parseInputObjectTypeExtension=function parseInputObjectTypeExtension(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("input");var t=this.parseName(),n=this.parseDirectives(!0),r=this.parseInputFieldsDefinition();if(0===n.length&&0===r.length)throw this.unexpected();return{kind:d.INPUT_OBJECT_TYPE_EXTENSION,name:t,directives:n,fields:r,loc:this.loc(e)}},e.parseDirectiveDefinition=function parseDirectiveDefinition(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("directive"),this.expectToken(y.AT);var n=this.parseName(),r=this.parseArgumentDefs(),i=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");var h=this.parseDirectiveLocations();return{kind:d.DIRECTIVE_DEFINITION,description:t,name:n,arguments:r,repeatable:i,locations:h,loc:this.loc(e)}},e.parseDirectiveLocations=function parseDirectiveLocations(){return this.delimitedMany(y.PIPE,this.parseDirectiveLocation)},e.parseDirectiveLocation=function parseDirectiveLocation(){var e=this._lexer.token,t=this.parseName();if(void 0!==w[t.value])return t;throw this.unexpected(e)},e.loc=function loc(e){var t;if(!0!==(null===(t=this._options)||void 0===t?void 0:t.noLocation))return new g.Ye(e,this._lexer.lastToken,this._lexer.source)},e.peek=function peek(e){return this._lexer.token.kind===e},e.expectToken=function expectToken(e){var t=this._lexer.token;if(t.kind===e)return this._lexer.advance(),t;throw syntaxError(this._lexer.source,t.start,"Expected ".concat(getTokenKindDesc(e),", found ").concat(getTokenDesc(t),"."))},e.expectOptionalToken=function expectOptionalToken(e){var t=this._lexer.token;if(t.kind===e)return this._lexer.advance(),t},e.expectKeyword=function expectKeyword(e){var t=this._lexer.token;if(t.kind!==y.NAME||t.value!==e)throw syntaxError(this._lexer.source,t.start,'Expected "'.concat(e,'", found ').concat(getTokenDesc(t),"."));this._lexer.advance()},e.expectOptionalKeyword=function expectOptionalKeyword(e){var t=this._lexer.token;return t.kind===y.NAME&&t.value===e&&(this._lexer.advance(),!0)},e.unexpected=function unexpected(e){var t=null!==e&&void 0!==e?e:this._lexer.token;return syntaxError(this._lexer.source,t.start,"Unexpected ".concat(getTokenDesc(t),"."))},e.any=function any(e,t,n){this.expectToken(e);for(var r=[];!this.expectOptionalToken(n);)r.push(t.call(this));return r},e.optionalMany=function optionalMany(e,t,n){if(this.expectOptionalToken(e)){var r=[];do{r.push(t.call(this))}while(!this.expectOptionalToken(n));return r}return[]},e.many=function many(e,t,n){this.expectToken(e);var r=[];do{r.push(t.call(this))}while(!this.expectOptionalToken(n));return r},e.delimitedMany=function delimitedMany(e,t){this.expectOptionalToken(e);var n=[];do{n.push(t.call(this))}while(this.expectOptionalToken(e));return n},Parser}();function getTokenDesc(e){var t=e.value;return getTokenKindDesc(e.kind)+(null!=t?' "'.concat(t,'"'):"")}function getTokenKindDesc(e){return function isPunctuatorTokenKind(e){return e===y.BANG||e===y.DOLLAR||e===y.AMP||e===y.PAREN_L||e===y.PAREN_R||e===y.SPREAD||e===y.COLON||e===y.EQUALS||e===y.AT||e===y.BRACKET_L||e===y.BRACKET_R||e===y.BRACE_L||e===y.PIPE||e===y.BRACE_R}(e)?'"'.concat(e,'"'):e}var O=new Map,C=new Map,T=!0,x=!1;function normalize(e){return e.replace(/[\s,]+/g," ").trim()}function processFragments(e){var t=new Set,n=[];return e.definitions.forEach((function(e){if("FragmentDefinition"===e.kind){var r=e.name.value,i=function cacheKeyFromLoc(e){return normalize(e.source.body.substring(e.start,e.end))}(e.loc),h=C.get(r);h&&!h.has(i)?T&&console.warn("Warning: fragment with name "+r+" 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"):h||C.set(r,h=new Set),h.add(i),t.has(i)||(t.add(i),n.push(e))}else n.push(e)})),(0,r.pi)((0,r.pi)({},e),{definitions:n})}function parseDocument(e){var t=normalize(e);if(!O.has(t)){var n=function parse(e,t){return new k(e,t).parseDocument()}(e,{experimentalFragmentVariables:x});if(!n||"Document"!==n.kind)throw new Error("Not a valid GraphQL document.");O.set(t,function stripLoc(e){var t=new Set(e.definitions);t.forEach((function(e){e.loc&&delete e.loc,Object.keys(e).forEach((function(n){var r=e[n];r&&"object"===typeof r&&t.add(r)}))}));var n=e.loc;return n&&(delete n.startToken,delete n.endToken),e}(processFragments(n)))}return O.get(t)}function gql(e){for(var t=[],n=1;ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n-1&&i.splice(g,1)}if(0!==i.length)return!1}return!0}},{key:"_checkSubCombo",value:function _checkSubCombo(e,t,n){e=e.slice(0),n=n.slice(t);for(var r=t,i=0;i-1&&(e.splice(i,1),i-=1,g>r&&(r=g),0===e.length))return r}return-1}}]),KeyCombo}();e.comboDeliminator=">",e.keyDeliminator="+",e.parseComboStr=function(t){for(var n=e._splitStr(t,e.comboDeliminator),r=[],i=0;i0&&n[d]===r&&"\\"!==n[d-1]&&(h.push(i.trim()),i="",d+=1),i+=n[d];return i&&h.push(i.trim()),h};var t=function(){function Locale(e){_classCallCheck(this,Locale),this.localeName=e,this.activeTargetKeys=[],this.pressedKeys=[],this._appliedMacros=[],this._keyMap={},this._killKeyCodes=[],this._macros=[]}return _createClass(Locale,[{key:"bindKeyCode",value:function bindKeyCode(e,t){"string"===typeof t&&(t=[t]),this._keyMap[e]=t}},{key:"bindMacro",value:function bindMacro(t,n){"string"===typeof n&&(n=[n]);var r=null;"function"===typeof n&&(r=n,n=null);var i={keyCombo:new e(t),keyNames:n,handler:r};this._macros.push(i)}},{key:"getKeyCodes",value:function getKeyCodes(e){var t=[];for(var n in this._keyMap)this._keyMap[n].indexOf(e)>-1&&t.push(0|n);return t}},{key:"getKeyNames",value:function getKeyNames(e){return this._keyMap[e]||[]}},{key:"setKillKey",value:function setKillKey(e){if("string"!==typeof e)this._killKeyCodes.push(e);else for(var t=this.getKeyCodes(e),n=0;n-1&&this.pressedKeys.splice(h,1)}this.activeTargetKeys.length=0,this._clearMacros()}}},{key:"_applyMacros",value:function _applyMacros(){for(var e=this._macros.slice(0),t=0;t-1&&this.pressedKeys.splice(r,1)}t.handler&&(t.keyNames=null),this._appliedMacros.splice(e,1),e-=1}}}}]),Locale}(),r=function(){function Keyboard(e,t,n,r){_classCallCheck(this,Keyboard),this._locale=null,this._currentContext="",this._contexts={},this._listeners=[],this._appliedListeners=[],this._locales={},this._targetElement=null,this._targetWindow=null,this._targetPlatform="",this._targetUserAgent="",this._isModernBrowser=!1,this._targetKeyDownBinding=null,this._targetKeyUpBinding=null,this._targetResetBinding=null,this._paused=!1,this._contexts.global={listeners:this._listeners,targetWindow:e,targetElement:t,targetPlatform:n,targetUserAgent:r},this.setContext("global")}return _createClass(Keyboard,[{key:"setLocale",value:function setLocale(e,n){var r=null;return"string"===typeof e?n?n(r=new t(e),this._targetPlatform,this._targetUserAgent):r=this._locales[e]||null:e=(r=e)._localeName,this._locale=r,this._locales[e]=r,r&&(this._locale.pressedKeys=r.pressedKeys),this}},{key:"getLocale",value:function getLocale(e){return e||(e=this._locale.localeName),this._locales[e]||null}},{key:"bind",value:function bind(t,n,r,i){if(null!==t&&"function"!==typeof t||(i=r,r=n,n=t,t=null),t&&"object"===_typeof(t)&&"number"===typeof t.length){for(var h=0;h"]),e.bindMacro("shift + /",["questionmark","?"]),t.match("Mac")?e.bindMacro("command",["mod","modifier"]):e.bindMacro("ctrl",["mod","modifier"]);for(var r=65;r<=90;r+=1){var i=String.fromCharCode(r+32),h=String.fromCharCode(r);e.bindKeyCode(r,i),e.bindMacro("shift + "+i,h),e.bindMacro("capslock + "+i,h)}var d,g,y=n.match("Firefox")?59:186,v=n.match("Firefox")?173:189,b=n.match("Firefox")?61:187;t.match("Mac")&&(n.match("Safari")||n.match("Chrome"))?(d=91,g=93):t.match("Mac")&&n.match("Opera")?(d=17,g=17):t.match("Mac")&&n.match("Firefox")&&(d=224,g=224),e.bindKeyCode(y,["semicolon",";"]),e.bindKeyCode(v,["dash","-"]),e.bindKeyCode(b,["equal","equalsign","="]),e.bindKeyCode(d,["command","windows","win","super","leftcommand","leftwindows","leftwin","leftsuper"]),e.bindKeyCode(g,["command","windows","win","super","rightcommand","rightwindows","rightwin","rightsuper"]),e.setKillKey("command")}var i=new r;return i.setLocale("us",us),i.Keyboard=r,i.Locale=t,i.KeyCombo=e,i}()},3131:function(e,t,n){e.exports=minimatch,minimatch.Minimatch=Minimatch;var r={sep:"/"};try{r=n(2061)}catch(w){}var i=minimatch.GLOBSTAR=Minimatch.GLOBSTAR={},h=n(6141),d={"!":{open:"(?:(?!(?:",close:"))[^/]*?)"},"?":{open:"(?:",close:")?"},"+":{open:"(?:",close:")+"},"*":{open:"(?:",close:")*"},"@":{open:"(?:",close:")"}},g="[^/]",y="[^/]*?",v=function charSet(e){return e.split("").reduce((function(e,t){return e[t]=!0,e}),{})}("().*{}+?[]^$\\!");var b=/\/+/;function ext(e,t){e=e||{},t=t||{};var n={};return Object.keys(t).forEach((function(e){n[e]=t[e]})),Object.keys(e).forEach((function(t){n[t]=e[t]})),n}function minimatch(e,t,n){if("string"!==typeof t)throw new TypeError("glob pattern string required");return n||(n={}),!(!n.nocomment&&"#"===t.charAt(0))&&(""===t.trim()?""===e:new Minimatch(t,n).match(e))}function Minimatch(e,t){if(!(this instanceof Minimatch))return new Minimatch(e,t);if("string"!==typeof e)throw new TypeError("glob pattern string required");t||(t={}),e=e.trim(),"/"!==r.sep&&(e=e.split(r.sep).join("/")),this.options=t,this.set=[],this.pattern=e,this.regexp=null,this.negate=!1,this.comment=!1,this.empty=!1,this.make()}function braceExpand(e,t){if(t||(t=this instanceof Minimatch?this.options:{}),"undefined"===typeof(e="undefined"===typeof e?this.pattern:e))throw new TypeError("undefined pattern");return t.nobrace||!e.match(/\{.*\}/)?[e]:h(e)}minimatch.filter=function filter(e,t){return t=t||{},function(n,r,i){return minimatch(n,e,t)}},minimatch.defaults=function(e){if(!e||!Object.keys(e).length)return minimatch;var t=minimatch,n=function minimatch(n,r,i){return t.minimatch(n,r,ext(e,i))};return n.Minimatch=function Minimatch(n,r){return new t.Minimatch(n,ext(e,r))},n},Minimatch.defaults=function(e){return e&&Object.keys(e).length?minimatch.defaults(e).Minimatch:Minimatch},Minimatch.prototype.debug=function(){},Minimatch.prototype.make=function make(){if(this._made)return;var e=this.pattern,t=this.options;if(!t.nocomment&&"#"===e.charAt(0))return void(this.comment=!0);if(!e)return void(this.empty=!0);this.parseNegate();var n=this.globSet=this.braceExpand();t.debug&&(this.debug=console.error);this.debug(this.pattern,n),n=this.globParts=n.map((function(e){return e.split(b)})),this.debug(this.pattern,n),n=n.map((function(e,t,n){return e.map(this.parse,this)}),this),this.debug(this.pattern,n),n=n.filter((function(e){return-1===e.indexOf(!1)})),this.debug(this.pattern,n),this.set=n},Minimatch.prototype.parseNegate=function parseNegate(){var e=this.pattern,t=!1,n=this.options,r=0;if(n.nonegate)return;for(var i=0,h=e.length;i65536)throw new TypeError("pattern is too long");var n=this.options;if(!n.noglobstar&&"**"===e)return i;if(""===e)return"";var r,h="",b=!!n.nocase,E=!1,S=[],k=[],O=!1,C=-1,T=-1,x="."===e.charAt(0)?"":n.dot?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)",A=this;function clearStateChar(){if(r){switch(r){case"*":h+=y,b=!0;break;case"?":h+=g,b=!0;break;default:h+="\\"+r}A.debug("clearStateChar %j %j",r,h),r=!1}}for(var D,L=0,N=e.length;L-1;Q--){var q=k[Q],B=h.slice(0,q.reStart),K=h.slice(q.reStart,q.reEnd-8),U=h.slice(q.reEnd-8,q.reEnd),V=h.slice(q.reEnd);U+=V;var H=B.split("(").length-1,W=V;for(L=0;L=0&&!(i=e[h]);h--);for(h=0;h>> no match, partial?",e,w,t,E),w!==g))}if("string"===typeof b?(v=r.nocase?_.toLowerCase()===b.toLowerCase():_===b,this.debug("string match",b,_,v)):(v=_.match(b),this.debug("pattern match",b,_,v)),!v)return!1}if(h===g&&d===y)return!0;if(h===g)return n;if(d===y)return h===g-1&&""===e[h];throw new Error("wtf?")}},2614:function(e,t,n){"use strict";var r=n(4105);function emptyFunction(){}function emptyFunctionWithReset(){}emptyFunctionWithReset.resetWarningCache=emptyFunction,e.exports=function(){function shim(e,t,n,i,h,d){if(d!==r){var g=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw g.name="Invariant Violation",g}}function getShim(){return shim}shim.isRequired=shim;var e={array:shim,bool:shim,func:shim,number:shim,object:shim,string:shim,symbol:shim,any:shim,arrayOf:getShim,element:shim,elementType:shim,instanceOf:getShim,node:shim,objectOf:getShim,oneOf:getShim,oneOfType:getShim,shape:getShim,exact:getShim,checkPropTypes:emptyFunctionWithReset,resetWarningCache:emptyFunction};return e.PropTypes=e,e}},954:function(e,t,n){e.exports=n(2614)()},4105:function(e){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},575:function(e,t,n){var r,i,h;i=[t,n(1157)],void 0===(h="function"===typeof(r=function(e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=_interopRequireDefault(t);function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}e.default=n.default})?r.apply(t,i):r)||(e.exports=h)},1157:function(e,t,n){var r,i,h;i=[t,n(3804),n(954)],void 0===(h="function"===typeof(r=function(e,t,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.setHasSupportToCaptureOption=setHasSupportToCaptureOption;var r=_interopRequireDefault(t),i=_interopRequireDefault(n);function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}var h=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function _classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var d=function(){function defineProperties(e,t){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:{capture:!0};return g?e:e.capture}function getPosition(e){if("touches"in e){var t=e.touches[0];return{x:t.pageX,y:t.pageY}}return{x:e.screenX,y:e.screenY}}var y=function(e){function ReactSwipe(){var e;_classCallCheck(this,ReactSwipe);for(var t=arguments.length,n=Array(t),r=0;rt&&this.props.onSwipeRight(1,e),this.movePosition.deltaY<-t?this.props.onSwipeUp(1,e):this.movePosition.deltaY>t&&this.props.onSwipeDown(1,e)),this.moveStart=null,this.moving=!1,this.movePosition=null}},{key:"_setSwiperRef",value:function _setSwiperRef(e){this.swiper=e,this.props.innerRef(e)}},{key:"render",value:function render(){var e=this.props,t=(e.tagName,e.className),n=e.style,i=e.children,d=(e.allowMouseEvents,e.onSwipeUp,e.onSwipeDown,e.onSwipeLeft,e.onSwipeRight,e.onSwipeStart,e.onSwipeMove,e.onSwipeEnd,e.innerRef,e.tolerance,_objectWithoutProperties(e,["tagName","className","style","children","allowMouseEvents","onSwipeUp","onSwipeDown","onSwipeLeft","onSwipeRight","onSwipeStart","onSwipeMove","onSwipeEnd","innerRef","tolerance"]));return r.default.createElement(this.props.tagName,h({ref:this._setSwiperRef,onMouseDown:this._onMouseDown,onTouchStart:this._handleSwipeStart,onTouchEnd:this._handleSwipeEnd,className:t,style:n},d),i)}}]),ReactSwipe}(t.Component);y.displayName="ReactSwipe",y.propTypes={tagName:i.default.string,className:i.default.string,style:i.default.object,children:i.default.node,allowMouseEvents:i.default.bool,onSwipeUp:i.default.func,onSwipeDown:i.default.func,onSwipeLeft:i.default.func,onSwipeRight:i.default.func,onSwipeStart:i.default.func,onSwipeMove:i.default.func,onSwipeEnd:i.default.func,innerRef:i.default.func,tolerance:i.default.number.isRequired},y.defaultProps={tagName:"div",allowMouseEvents:!1,onSwipeUp:function onSwipeUp(){},onSwipeDown:function onSwipeDown(){},onSwipeLeft:function onSwipeLeft(){},onSwipeRight:function onSwipeRight(){},onSwipeStart:function onSwipeStart(){},onSwipeMove:function onSwipeMove(){},onSwipeEnd:function onSwipeEnd(){},innerRef:function innerRef(){},tolerance:0},e.default=y})?r.apply(t,i):r)||(e.exports=h)},8297:function(e,t,n){!function(e,t,n,r){"use strict";function o(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var i=o(t),h=o(n),d=o(r),a=function(){return(a=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0&&i[i.length-1])||6!==h[0]&&2!==h[0])){d=0;continue}if(3===h[0]&&(!i||h[1]>i[0]&&h[1]=v)return console[e].apply(console,arguments)}}function setVerbosity(e){var t=y[v];return v=Math.max(0,y.indexOf(e)),t}!function(e){e.log=wrapConsoleMethod("log"),e.warn=wrapConsoleMethod("warn"),e.error=wrapConsoleMethod("error")}(invariant||(invariant={}));"object"===typeof process&&process},3158:function(e,t,n){"use strict";n.d(t,{ZT:function(){return __extends},pi:function(){return __assign},_T:function(){return __rest},mG:function(){return __awaiter},Jh:function(){return __generator},pr:function(){return __spreadArrays}});var extendStatics=function(e,t){return(extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)};function __extends(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function __(){this.constructor=e}extendStatics(e,t),e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)}var __assign=function(){return(__assign=Object.assign||function __assign(e){for(var t,n=1,r=arguments.length;n0&&i[i.length-1])&&(6===h[0]||2===h[0])){d=0;continue}if(3===h[0]&&(!i||h[1]>i[0]&&h[1]1,i=!1,h=arguments[1],d=h;return new n((function(n){return t.subscribe({next:function(t){var h=!i;if(i=!0,!h||r)try{d=e(d,t)}catch(g){return n.error(g)}else d=t},error:function(e){n.error(e)},complete:function(){if(!i&&!r)return n.error(new TypeError("Cannot reduce an empty sequence"));n.next(d),n.complete()}})}))}},{key:"concat",value:function concat(){for(var e=this,t=arguments.length,n=new Array(t),r=0;r=0&&i.splice(e,1),completeIfDone()}});i.push(h)},error:function(e){r.error(e)},complete:function(){completeIfDone()}});function completeIfDone(){h.closed&&0===i.length&&r.complete()}return function(){i.forEach((function(e){return e.unsubscribe()})),h.unsubscribe()}}))}},{key:r,value:function(){return this}}],[{key:"from",value:function from(e){var t="function"===typeof this?this:Observable;if(null==e)throw new TypeError(e+" is not an object");var i=getMethod(e,r);if(i){var h=i.call(e);if(Object(h)!==h)throw new TypeError(h+" is not an object");return isObservable(h)&&h.constructor===t?h:new t((function(e){return h.subscribe(e)}))}if(hasSymbol("iterator")&&(i=getMethod(e,n)))return new t((function(t){enqueue((function(){if(!t.closed){var n=!0,r=!1,h=void 0;try{for(var d,g=i.call(e)[Symbol.iterator]();!(n=(d=g.next()).done);n=!0){var y=d.value;if(t.next(y),t.closed)return}}catch(v){r=!0,h=v}finally{try{n||null==g.return||g.return()}finally{if(r)throw h}}t.complete()}}))}));if(Array.isArray(e))return new t((function(t){enqueue((function(){if(!t.closed){for(var n=0;n2)return"[Array]";for(var n=Math.min(10,e.length),r=e.length-n,i=[],h=0;h1&&i.push("... ".concat(r," more items"));return"["+i.join(", ")+"]"}(e,n);return function formatObject(e,t){var n=Object.keys(e);if(0===n.length)return"{}";if(t.length>2)return"["+function getObjectTag(e){var t=Object.prototype.toString.call(e).replace(/^\[object /,"").replace(/]$/,"");if("Object"===t&&"function"===typeof e.constructor){var n=e.constructor.name;if("string"===typeof n&&""!==n)return n}return t}(e)+"]";return"{ "+n.map((function(n){return n+": "+formatValue(e[n],t)})).join(", ")+" }"}(e,n)}(e,t);default:return String(e)}}},5332:function(e,t){"use strict";var n="function"===typeof Symbol&&"function"===typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):void 0;t.Z=n},8265:function(e,t,n){"use strict";n.d(t,{Ye:function(){return i},WU:function(){return h},UG:function(){return isNode}});var r=n(5332);function defineInspect(e){var t=e.prototype.toJSON;"function"===typeof t||function invariant(e,t){if(!Boolean(e))throw new Error(null!=t?t:"Unexpected invariant triggered.")}(0),e.prototype.inspect=t,r.Z&&(e.prototype[r.Z]=t)}var i=function(){function Location(e,t,n){this.start=e.start,this.end=t.end,this.startToken=e,this.endToken=t,this.source=n}return Location.prototype.toJSON=function toJSON(){return{start:this.start,end:this.end}},Location}();defineInspect(i);var h=function(){function Token(e,t,n,r,i,h,d){this.kind=e,this.start=t,this.end=n,this.line=r,this.column=i,this.value=d,this.prev=h,this.next=null}return Token.prototype.toJSON=function toJSON(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}},Token}();function isNode(e){return null!=e&&"string"===typeof e.kind}defineInspect(h)},2464:function(e,t,n){"use strict";function dedentBlockStringValue(e){var t=e.split(/\r\n|[\n\r]/g),n=function getBlockStringIndentation(e){for(var t,n=!0,r=!0,i=0,h=null,d=0;di&&isBlank(t[h-1]);)--h;return t.slice(i,h).join("\n")}function isBlank(e){for(var t=0;t1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=-1===e.indexOf("\n"),i=" "===e[0]||"\t"===e[0],h='"'===e[e.length-1],d="\\"===e[e.length-1],g=!r||h||d||n,y="";return!g||r&&i||(y+="\n"+t),y+=t?e.replace(/\n/g,"\n"+t):e,g&&(y+="\n"),'"""'+y.replace(/"""/g,'\\"""')+'"""'}n.d(t,{W7:function(){return dedentBlockStringValue},LZ:function(){return printBlockString}})},4893:function(e,t,n){"use strict";n.d(t,{$_:function(){return d},Vn:function(){return visit}});var r=n(6430),i=n(8265),h={Name:[],Document:["definitions"],OperationDefinition:["name","variableDefinitions","directives","selectionSet"],VariableDefinition:["variable","type","defaultValue","directives"],Variable:["name"],SelectionSet:["selections"],Field:["alias","name","arguments","directives","selectionSet"],Argument:["name","value"],FragmentSpread:["name","directives"],InlineFragment:["typeCondition","directives","selectionSet"],FragmentDefinition:["name","variableDefinitions","typeCondition","directives","selectionSet"],IntValue:[],FloatValue:[],StringValue:[],BooleanValue:[],NullValue:[],EnumValue:[],ListValue:["values"],ObjectValue:["fields"],ObjectField:["name","value"],Directive:["name","arguments"],NamedType:["name"],ListType:["type"],NonNullType:["type"],SchemaDefinition:["description","directives","operationTypes"],OperationTypeDefinition:["type"],ScalarTypeDefinition:["description","name","directives"],ObjectTypeDefinition:["description","name","interfaces","directives","fields"],FieldDefinition:["description","name","arguments","type","directives"],InputValueDefinition:["description","name","type","defaultValue","directives"],InterfaceTypeDefinition:["description","name","interfaces","directives","fields"],UnionTypeDefinition:["description","name","directives","types"],EnumTypeDefinition:["description","name","directives","values"],EnumValueDefinition:["description","name","directives"],InputObjectTypeDefinition:["description","name","directives","fields"],DirectiveDefinition:["description","name","arguments","locations"],SchemaExtension:["directives","operationTypes"],ScalarTypeExtension:["name","directives"],ObjectTypeExtension:["name","interfaces","directives","fields"],InterfaceTypeExtension:["name","interfaces","directives","fields"],UnionTypeExtension:["name","directives","types"],EnumTypeExtension:["name","directives","values"],InputObjectTypeExtension:["name","directives","fields"]},d=Object.freeze({});function visit(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:h,g=void 0,y=Array.isArray(e),v=[e],b=-1,_=[],w=void 0,E=void 0,S=void 0,k=[],O=[],C=e;do{var T=++b===v.length,x=T&&0!==_.length;if(T){if(E=0===O.length?void 0:k[k.length-1],w=S,S=O.pop(),x){if(y)w=w.slice();else{for(var A={},D=0,L=Object.keys(w);De.length)&&(t=e.length);for(var n=0,r=new Array(t);n0?r--:r=e.state.collections[t].length-1,e.state.collections[t][r].click(),console.log("".concat(e.name,": prev")),C.dispatchEvent(new Event("{ui.name}.prev"))})),_defineProperty(_assertThisInitialized(n),"reset",(function(){_assertThisInitialized(n).setState({content:"",type:[],shown:!1,loading:!1,error:!1,embed:!1})})),_defineProperty(_assertThisInitialized(n),"embed",(function(e){var t=_assertThisInitialized(n);console.log("".concat(t.name,": embed")),t.reset(),t.setState({embed:e,loading:!1,type:["embed","video"]}),t.show()})),_defineProperty(_assertThisInitialized(n),"load",(function(e){var t=_assertThisInitialized(n),r=t.axios;t.reset(),t.setState({loading:!0}),t.show(),r.get(e,{responseType:"arraybuffer"}).then((function(e){switch(console.log("".concat(t.name,": response content-type: ").concat(e.headers["content-type"])),e.headers["content-type"]){case"image/jpeg":case"image/png":case"image/svg+xml":case"image/bmp":case"image/gif":case"image/tiff":case"image/webp":case"image/jpg":case"image/svg":t.setContent(''),"image");break;case"application/json":case"application/ld+json":case"application/json; charset=UTF-8":var n=JSON.parse(t._abToString(e.data));t.setContent("".concat(n.Content),"text html json");break;case"text/html":case"application/xhtml+xml":case"text/plain":case"text/html; charset=UTF-8":case"application/xhtml+xml; charset=UTF-8":case"text/plain; charset=UTF-8":t.setContent(t._abToString(e.data),"text html pajax");break;default:console.warn("".concat(t.name,": Unknown response content-type!"))}C.dispatchEvent(new Event("{ui.name}.loaded"))})).catch((function(e){console.error(e);var n="";if(e.response)switch(e.response.status){case 404:n="Not Found.";break;case 500:n="Server issue, please try again latter.";break;default:n="Something went wrong."}else e.request?n="No response received":console.warn("Error",e.message);t.setState({error:n}),C.dispatchEvent(new Event("{ui.name}.error"))})).then((function(){t.setState({loading:!1})}))})),_defineProperty(_assertThisInitialized(n),"_abToString",(function(e){return String.fromCharCode.apply(null,new Uint8Array(e))})),_defineProperty(_assertThisInitialized(n),"_imageEncode",(function(e){new Uint8Array(e);return btoa([].reduce.call(new Uint8Array(e),(function(e,t){return e+String.fromCharCode(t)}),""))})),_defineProperty(_assertThisInitialized(n),"setContent",(function(e,t){var r=_assertThisInitialized(n);console.log("".concat(r.name,": setContent"));var i=t||["html","text"];Array.isArray(i)||(i=t.split(" ")),r.setState({content:e,type:i})})),_defineProperty(_assertThisInitialized(n),"show",(function(){var e=_assertThisInitialized(n);console.log("".concat(e.name,": show")),e.setState({shown:!0}),C.dispatchEvent(new Event("{ui.name}.show"))})),_defineProperty(_assertThisInitialized(n),"hide",(function(){var e=_assertThisInitialized(n);console.log("".concat(e.name,": hide")),E().withContext(name,(function(){E().unbind("left",e.prev),E().unbind("right",e.next)})),E().setContext("index"),e.setState({shown:!1}),C.dispatchEvent(new Event("{ui.name}.hide"))})),_defineProperty(_assertThisInitialized(n),"getHtml",(function(){return{__html:_assertThisInitialized(n).state.content}}));var r=_assertThisInitialized(n);return r.name=r.constructor.name,console.log("".concat(r.name,": init")),r.axios=A,C.dispatchEvent(new Event("{ui.name}.init")),n}return function _createClass(e,t,n){return t&&_defineProperties(e.prototype,t),n&&_defineProperties(e,n),e}(MetaWindow,[{key:"onSwipeMove",value:function onSwipeMove(e,t){var n=this.ui,r=e.x;n.locked||Math.abs(r)<50||(n.locked=!0,setTimeout((function(){n.locked=!1}),1e3),r>0?(console.log("".concat(n.name,": swipe right")),n.prev()):(console.log("".concat(n.name,": swipe left")),n.next()))}},{key:"render",value:function render(){var e=this,t=e.name,n=null,r=e.state.current;if(E().setContext(t),E().withContext(t,(function(){E().unbind("left",e.prev),E().unbind("right",e.next)})),r){var i=r.getAttribute("data-gallery");i&&e.state.collections[i].length>1&&(n=React.createElement("nav",{className:"meta-navs"},React.createElement("button",{className:"meta-nav meta-nav-arrow meta-nav-arrow__prev a",onClick:e.prev},React.createElement("i",{className:"fa fas fa-chevron-left"}),React.createElement("span",{className:"sr-only"},"Previous")),React.createElement("button",{className:"meta-nav meta-nav-arrow meta-nav-arrow__next a",onClick:e.next},React.createElement("i",{className:"fa fas fa-chevron-right"}),React.createElement("span",{className:"sr-only"},"Next"))),E().withContext(t,(function(){E().bind("left",e.prev),E().bind("right",e.next)})))}var d=e.state.embed?React.createElement("section",{className:"meta-wrap typography"},React.createElement(k(),{url:e.state.embed,providers:[].concat(_toConsumableArray(S.defaultProviders),[T]),LoadingFallbackElement:React.createElement("div",{className:"meta-spinner_embed"},"... Loading ...")})):React.createElement("section",{className:"meta-wrap typography",dangerouslySetInnerHTML:e.getHtml()}),h="meta-".concat(t," meta-").concat(t,"__").concat(e.state.type.join(" meta-".concat(t,"__"))),y="meta-".concat(t,"-overlay").concat(e.state.shown?" meta-".concat(t,"-overlay__open"):"").concat(e.state.loading?" meta-".concat(t,"-overlay__loading"):"").concat(e.state.error?" meta-".concat(t,"-overlay__error"):"");return React.createElement(_(),{className:h,ui:e,onSwipeMove:e.onSwipeMove},React.createElement("div",{className:y},React.createElement("article",{className:"meta-content"},n,React.createElement("button",{className:"meta-nav meta-close a",onClick:e.hide},React.createElement("i",{className:"fa fas fa-times"}),React.createElement("span",{className:"sr-only"},"Close")),React.createElement("div",{className:"meta-spinner"},"... Loading ..."),React.createElement("div",{className:"meta-error alert alert-danger"},e.state.error),d)))}}]),MetaWindow}(h.Component),D=(function(e){var t=v().render(y().createElement(x,null),document.getElementById("MetaLightboxApp")),n=function initMetaWindowLinks(){var e=t;console.log("MetaWindow: [links] init"),document.querySelectorAll('[data-toggle="lightbox"],[data-gallery="${gallery}"]').forEach((function(t){var n=t.getAttribute("data-gallery");n&&(e.state.collections[n]=[],document.querySelectorAll('[data-toggle="lightbox"][data-gallery="'.concat(n,'"]')).forEach((function(t){e.state.collections[n].push(t)}))),t.addEventListener("click",(function(t){t.preventDefault(),console.log("MetaWindow: [link] click");var n=t.currentTarget,r=n.getAttribute("href")||n.getAttribute("data-href"),i=n.getAttribute("data-embed");e.state.current=n,i?e.embed(r):e.load(r)}))}))};e.addEventListener("".concat(d),n),e.addEventListener("".concat(i),n),e.addEventListener("MetaWindow.initLinks",n)}(window),{APOLLO_ERROR:"apollo-error",AJAX:"ajax-load",AJAXMAIN:"ajax-main-load",MAININIT:"main-init",TABHIDDEN:"tab-hidden",TABFOCUSED:"tab-focused",OFFLINE:"offline",ONLINE:"online",BACKONLINE:"back-online",TOUCHENABLE:"touch-enabled",TOUCHDISABLED:"touch-disabled",LOADED:"load",SWIPELEFT:"swipeleft panleft",SWIPERIGHT:"swiperight panright",ALLERTAPPEARED:"alert-appeared",ALERTREMOVED:"alert-removed",LODEDANDREADY:"load-ready",LAZYIMAGEREADY:"image-lazy-bg-loaded",LAZYIMAGESREADY:"images-lazy-loaded",MAPLOADED:"map-loaded",MAPAPILOADED:"map-api-loaded",MAPMARKERCLICK:"map-marker-click",MAPPOPUPCLOSE:"map-popup-close",SCROLL:"scroll",RESIZE:"resize",CAROUSEL_READY:"bs.carousel.ready",SET_TARGET_UPDATE:"set-target-update",RESTORE_FIELD:"restore-field",FORM_INIT_BASICS:"form-basics",FORM_INIT_STEPPED:"form-init-stepped",FORM_INIT_VALIDATE:"form-init-validate",FORM_INIT_VALIDATE_FIELD:"form-init-validate-field",FORM_INIT_STORAGE:"form-init-storage",FORM_VALIDATION_FAILED:"form-validation-failed",FORM_STEPPED_NEW_STEP:"form-new-step",FORM_STEPPED_FIRST_STEP:"form-first-step",FORM_STEPPED_LAST_STEP:"form-last-step",FORM_FIELDS:"input,textarea,select"}),I={ENVS:["xs","sm","md","lg","xl","xxl","xxxl"]},L=n(361),__spreadArrays=function(){for(var e=0,t=0,n=arguments.length;t0&&i[i.length-1])&&(6===d[0]||2===d[0])){h=0;continue}if(3===d[0]&&(!i||d[1]>i[0]&&d[1]0&&i[i.length-1])&&(6===d[0]||2===d[0])){h=0;continue}if(3===d[0]&&(!i||d[1]>i[0]&&d[1]this.maxSize&&!this.paused?[4,this.purge()]:[3,2];case 1:return n.sent(),this.paused=!0,[2];case 2:return this.paused?[2]:[4,this.storage.write(e)];case 3:return n.sent(),this.log.info("string"===typeof e?"Persisted cache of size "+e.length+" characters":"Persisted cache"),[3,5];case 4:throw t=n.sent(),this.log.error("Error persisting cache",t),t;case 5:return[2]}}))}))},Persistor.prototype.restore=function(){return Persistor_awaiter(this,void 0,void 0,(function(){var e,t;return Persistor_generator(this,(function(n){switch(n.label){case 0:return n.trys.push([0,5,,6]),[4,this.storage.read()];case 1:return null==(e=n.sent())?[3,3]:[4,this.cache.restore(e)];case 2:return n.sent(),this.log.info("string"===typeof e?"Restored cache of size "+e.length+" characters":"Restored cache"),[3,4];case 3:this.log.info("No stored cache to restore"),n.label=4;case 4:return[3,6];case 5:throw t=n.sent(),this.log.error("Error restoring cache",t),t;case 6:return[2]}}))}))},Persistor.prototype.purge=function(){return Persistor_awaiter(this,void 0,void 0,(function(){var e;return Persistor_generator(this,(function(t){switch(t.label){case 0:return t.trys.push([0,2,,3]),[4,this.storage.purge()];case 1:return t.sent(),this.log.info("Purged cache storage"),[3,3];case 2:throw e=t.sent(),this.log.error("Error purging cache storage",e),e;case 3:return[2]}}))}))},Persistor}(),onCacheWrite=function(e){var t=e.cache;return function(e){var n=t.write,r=t.evict,i=t.modify;return t.write=function(){for(var r=[],i=0;i")),e.state.loading){ne.getElementById("PageLoading");n='
Loading ...
'}return React.createElement("div",{className:t,dangerouslySetInnerHTML:e.getHtml(n)})}}]),Page}(h.Component),oe=(function(e){var t="_main.visibility",n=document,r=n.body;n.addEventListener("visibilitychange",(function(){"hidden"===n.visibilityState?(console.log("".concat(t,": Tab: hidden")),r.classList.add("is-hidden"),r.classList.remove("is-focused"),e.dispatchEvent(new Event(D.TABHIDDEN))):(console.log("".concat(t,": Tab: focused")),r.classList.add("is-focused"),r.classList.remove("is-hidden"),e.dispatchEvent(new Event(D.TABFOCUSED)))}))}(window),function(e){var t,n,r="_main.touch",i=document,d=i.body,h=function SET_TOUCH_SCREEN(i,h){n||h===t||(i?(console.log("".concat(r,": Touch screen enabled")),d.classList.add("is-touch"),d.classList.remove("is-mouse"),e.dispatchEvent(new Event(D.TOUCHENABLE))):(console.log("".concat(r,": Touch screen disabled")),d.classList.add("is-mouse"),d.classList.remove("is-touch"),e.dispatchEvent(new Event(D.TOUCHDISABLED))),t=h,n||(n=setTimeout((function(){clearTimeout(n),n=null}),500)))};h("ontouchstart"in e||navigator.MaxTouchPoints>0||navigator.msMaxTouchPoints>0||e.matchMedia("(hover: none)").matches,"init"),i.addEventListener("touchend",(function(e){var t=!1;"click"!==e.type&&(t=!0),h(t,"click-touchend")})),i.addEventListener("click",(function(e){var t=!1;"click"!==e.type&&(t=!0),h(t,"click-touchend")}))}(window),n(9614));!function(e){var t,n="_main.online",r=document,i=r.body,d=r.querySelector('meta[name="ping"]'),h=!1,y=function UPDATE_ONLINE_STATUS(r){h||(h=!0,r?(i.classList.contains("is-offline")?(console.log("".concat(n,": back Online")),e.dispatchEvent(new Event(D.BACKONLINE))):(console.log("".concat(n,": Online")),e.dispatchEvent(new Event(D.ONLINE))),i.classList.add("is-online"),i.classList.remove("is-offline"),d&&!t&&(console.log("".concat(n,": SESSION_PING is active")),t=setInterval(v,3e5))):(console.log("".concat(n,": Offline")),i.classList.add("is-offline"),i.classList.remove("is-online"),clearInterval(t),t=null,e.dispatchEvent(new Event(D.OFFLINE))),h=!1)},g=!1,v=function SESSION_PING(){if(!g&&!i.classList.contains("is-offline")){var e=d.getAttribute("content");console.log("".concat(n,": session ping")),g=!0,oe.post(e,{}).then((function(e){g=!1,y(!0)})).catch((function(e){console.error(e),console.warn("".concat(n,": SESSION_PING failed")),g=!1,y(!1)}))}},b=function navigatorStateUpdate(){"undefined"!==typeof navigator.onLine&&(navigator.onLine?y(!0):y(!1))};e.addEventListener("".concat(D.OFFLINE),(function(){y(!1)})),e.addEventListener("".concat(D.ONLINE),(function(){y(!0)})),e.addEventListener("".concat(D.LOADED),b),e.addEventListener("".concat(D.AJAX),b)}(window);function _main_css_screen_size_toConsumableArray(e){return function _main_css_screen_size_arrayWithoutHoles(e){if(Array.isArray(e))return _main_css_screen_size_arrayLikeToArray(e)}(e)||function _main_css_screen_size_iterableToArray(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function _main_css_screen_size_unsupportedIterableToArray(e,t){if(!e)return;if("string"===typeof e)return _main_css_screen_size_arrayLikeToArray(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _main_css_screen_size_arrayLikeToArray(e,t)}(e)||function _main_css_screen_size_nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _main_css_screen_size_arrayLikeToArray(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.innerHeight?(n.classList.add("landscape"),n.classList.remove("portrait")):(v=!1,n.classList.add("portrait"),n.classList.remove("landscape")),console.log("".concat("_main.css-screen-size",": screen size detected ").concat(h," | landscape ").concat(v)),n.removeChild(i),h};e.addEventListener("".concat(D.LOADED),r),e.addEventListener("".concat(D.RESIZE),r)}(window);var ae=n(1882),se="top",ce="bottom",ue="right",le="left",pe="auto",fe=[se,ce,ue,le],de="start",he="end",me="clippingParents",ye="viewport",ge="popper",ve="reference",be=fe.reduce((function(e,t){return e.concat([t+"-"+de,t+"-"+he])}),[]),_e=[].concat(fe,[pe]).reduce((function(e,t){return e.concat([t,t+"-"+de,t+"-"+he])}),[]),we="beforeRead",Ee="read",Se="afterRead",ke="beforeMain",Oe="main",Ce="afterMain",Te="beforeWrite",Ae="write",xe="afterWrite",De=[we,Ee,Se,ke,Oe,Ce,Te,Ae,xe];function getNodeName(e){return e?(e.nodeName||"").toLowerCase():null}function getWindow(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function isElement(e){return e instanceof getWindow(e).Element||e instanceof Element}function isHTMLElement(e){return e instanceof getWindow(e).HTMLElement||e instanceof HTMLElement}function isShadowRoot(e){return"undefined"!==typeof ShadowRoot&&(e instanceof getWindow(e).ShadowRoot||e instanceof ShadowRoot)}var Ie={name:"applyStyles",enabled:!0,phase:"write",fn:function applyStyles(e){var t=e.state;Object.keys(t.elements).forEach((function(e){var n=t.styles[e]||{},r=t.attributes[e]||{},i=t.elements[e];isHTMLElement(i)&&getNodeName(i)&&(Object.assign(i.style,n),Object.keys(r).forEach((function(e){var t=r[e];!1===t?i.removeAttribute(e):i.setAttribute(e,!0===t?"":t)})))}))},effect:function effect(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach((function(e){var r=t.elements[e],i=t.attributes[e]||{},d=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce((function(e,t){return e[t]="",e}),{});isHTMLElement(r)&&getNodeName(r)&&(Object.assign(r.style,d),Object.keys(i).forEach((function(e){r.removeAttribute(e)})))}))}},requires:["computeStyles"]};function getBasePlacement(e){return e.split("-")[0]}function getBoundingClientRect(e){var t=e.getBoundingClientRect();return{width:t.width,height:t.height,top:t.top,right:t.right,bottom:t.bottom,left:t.left,x:t.left,y:t.top}}function getLayoutRect(e){var t=getBoundingClientRect(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function contains(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&isShadowRoot(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function getComputedStyle_getComputedStyle(e){return getWindow(e).getComputedStyle(e)}function isTableElement(e){return["table","td","th"].indexOf(getNodeName(e))>=0}function getDocumentElement(e){return((isElement(e)?e.ownerDocument:e.document)||window.document).documentElement}function getParentNode(e){return"html"===getNodeName(e)?e:e.assignedSlot||e.parentNode||(isShadowRoot(e)?e.host:null)||getDocumentElement(e)}function getTrueOffsetParent(e){return isHTMLElement(e)&&"fixed"!==getComputedStyle_getComputedStyle(e).position?e.offsetParent:null}function getOffsetParent(e){for(var t=getWindow(e),n=getTrueOffsetParent(e);n&&isTableElement(n)&&"static"===getComputedStyle_getComputedStyle(n).position;)n=getTrueOffsetParent(n);return n&&("html"===getNodeName(n)||"body"===getNodeName(n)&&"static"===getComputedStyle_getComputedStyle(n).position)?t:n||function getContainingBlock(e){var t=-1!==navigator.userAgent.toLowerCase().indexOf("firefox");if(-1!==navigator.userAgent.indexOf("Trident")&&isHTMLElement(e)&&"fixed"===getComputedStyle_getComputedStyle(e).position)return null;for(var n=getParentNode(e);isHTMLElement(n)&&["html","body"].indexOf(getNodeName(n))<0;){var r=getComputedStyle_getComputedStyle(n);if("none"!==r.transform||"none"!==r.perspective||"paint"===r.contain||-1!==["transform","perspective"].indexOf(r.willChange)||t&&"filter"===r.willChange||t&&r.filter&&"none"!==r.filter)return n;n=n.parentNode}return null}(e)||t}function getMainAxisFromPlacement(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}var Le=Math.max,Pe=Math.min,Ne=Math.round;function within(e,t,n){return Le(e,Pe(t,n))}function mergePaddingObject(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function expandToHashMap(e,t){return t.reduce((function(t,n){return t[n]=e,t}),{})}var Re={name:"arrow",enabled:!0,phase:"main",fn:function arrow(e){var t,n=e.state,r=e.name,i=e.options,d=n.elements.arrow,h=n.modifiersData.popperOffsets,y=getBasePlacement(n.placement),g=getMainAxisFromPlacement(y),v=[le,ue].indexOf(y)>=0?"height":"width";if(d&&h){var b=function toPaddingObject(e,t){return mergePaddingObject("number"!==typeof(e="function"===typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:expandToHashMap(e,fe))}(i.padding,n),_=getLayoutRect(d),w="y"===g?se:le,E="y"===g?ce:ue,S=n.rects.reference[v]+n.rects.reference[g]-h[g]-n.rects.popper[v],k=h[g]-n.rects.reference[g],O=getOffsetParent(d),C=O?"y"===g?O.clientHeight||0:O.clientWidth||0:0,T=S/2-k/2,A=b[w],x=C-_[v]-b[E],D=C/2-_[v]/2+T,I=within(A,D,x),L=g;n.modifiersData[r]=((t={})[L]=I,t.centerOffset=I-D,t)}},effect:function arrow_effect(e){var t=e.state,n=e.options.element,r=void 0===n?"[data-popper-arrow]":n;null!=r&&("string"!==typeof r||(r=t.elements.popper.querySelector(r)))&&contains(t.elements.popper,r)&&(t.elements.arrow=r)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]},Me={top:"auto",right:"auto",bottom:"auto",left:"auto"};function mapToStyles(e){var t,n=e.popper,r=e.popperRect,i=e.placement,d=e.offsets,h=e.position,y=e.gpuAcceleration,g=e.adaptive,v=e.roundOffsets,b=!0===v?function roundOffsetsByDPR(e){var t=e.x,n=e.y,r=window.devicePixelRatio||1;return{x:Ne(Ne(t*r)/r)||0,y:Ne(Ne(n*r)/r)||0}}(d):"function"===typeof v?v(d):d,_=b.x,w=void 0===_?0:_,E=b.y,S=void 0===E?0:E,k=d.hasOwnProperty("x"),O=d.hasOwnProperty("y"),C=le,T=se,A=window;if(g){var x=getOffsetParent(n),D="clientHeight",I="clientWidth";x===getWindow(n)&&"static"!==getComputedStyle_getComputedStyle(x=getDocumentElement(n)).position&&(D="scrollHeight",I="scrollWidth"),x=x,i===se&&(T=ce,S-=x[D]-r.height,S*=y?1:-1),i===le&&(C=ue,w-=x[I]-r.width,w*=y?1:-1)}var L,P=Object.assign({position:h},g&&Me);return y?Object.assign({},P,((L={})[T]=O?"0":"",L[C]=k?"0":"",L.transform=(A.devicePixelRatio||1)<2?"translate("+w+"px, "+S+"px)":"translate3d("+w+"px, "+S+"px, 0)",L)):Object.assign({},P,((t={})[T]=O?S+"px":"",t[C]=k?w+"px":"",t.transform="",t))}var je={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function computeStyles(e){var t=e.state,n=e.options,r=n.gpuAcceleration,i=void 0===r||r,d=n.adaptive,h=void 0===d||d,y=n.roundOffsets,g=void 0===y||y,v={placement:getBasePlacement(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:i};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,mapToStyles(Object.assign({},v,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:h,roundOffsets:g})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,mapToStyles(Object.assign({},v,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:g})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},Fe={passive:!0};var Qe={name:"eventListeners",enabled:!0,phase:"write",fn:function fn(){},effect:function eventListeners_effect(e){var t=e.state,n=e.instance,r=e.options,i=r.scroll,d=void 0===i||i,h=r.resize,y=void 0===h||h,g=getWindow(t.elements.popper),v=[].concat(t.scrollParents.reference,t.scrollParents.popper);return d&&v.forEach((function(e){e.addEventListener("scroll",n.update,Fe)})),y&&g.addEventListener("resize",n.update,Fe),function(){d&&v.forEach((function(e){e.removeEventListener("scroll",n.update,Fe)})),y&&g.removeEventListener("resize",n.update,Fe)}},data:{}},qe={left:"right",right:"left",bottom:"top",top:"bottom"};function getOppositePlacement(e){return e.replace(/left|right|bottom|top/g,(function(e){return qe[e]}))}var Be={start:"end",end:"start"};function getOppositeVariationPlacement(e){return e.replace(/start|end/g,(function(e){return Be[e]}))}function getWindowScroll(e){var t=getWindow(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function getWindowScrollBarX(e){return getBoundingClientRect(getDocumentElement(e)).left+getWindowScroll(e).scrollLeft}function isScrollParent(e){var t=getComputedStyle_getComputedStyle(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}function getScrollParent(e){return["html","body","#document"].indexOf(getNodeName(e))>=0?e.ownerDocument.body:isHTMLElement(e)&&isScrollParent(e)?e:getScrollParent(getParentNode(e))}function listScrollParents(e,t){var n;void 0===t&&(t=[]);var r=getScrollParent(e),i=r===(null==(n=e.ownerDocument)?void 0:n.body),d=getWindow(r),h=i?[d].concat(d.visualViewport||[],isScrollParent(r)?r:[]):r,y=t.concat(h);return i?y:y.concat(listScrollParents(getParentNode(h)))}function rectToClientRect(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function getClientRectFromMixedType(e,t){return t===ye?rectToClientRect(function getViewportRect(e){var t=getWindow(e),n=getDocumentElement(e),r=t.visualViewport,i=n.clientWidth,d=n.clientHeight,h=0,y=0;return r&&(i=r.width,d=r.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(h=r.offsetLeft,y=r.offsetTop)),{width:i,height:d,x:h+getWindowScrollBarX(e),y:y}}(e)):isHTMLElement(t)?function getInnerBoundingClientRect(e){var t=getBoundingClientRect(e);return t.top=t.top+e.clientTop,t.left=t.left+e.clientLeft,t.bottom=t.top+e.clientHeight,t.right=t.left+e.clientWidth,t.width=e.clientWidth,t.height=e.clientHeight,t.x=t.left,t.y=t.top,t}(t):rectToClientRect(function getDocumentRect(e){var t,n=getDocumentElement(e),r=getWindowScroll(e),i=null==(t=e.ownerDocument)?void 0:t.body,d=Le(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),h=Le(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),y=-r.scrollLeft+getWindowScrollBarX(e),g=-r.scrollTop;return"rtl"===getComputedStyle_getComputedStyle(i||n).direction&&(y+=Le(n.clientWidth,i?i.clientWidth:0)-d),{width:d,height:h,x:y,y:g}}(getDocumentElement(e)))}function getClippingRect(e,t,n){var r="clippingParents"===t?function getClippingParents(e){var t=listScrollParents(getParentNode(e)),n=["absolute","fixed"].indexOf(getComputedStyle_getComputedStyle(e).position)>=0&&isHTMLElement(e)?getOffsetParent(e):e;return isElement(n)?t.filter((function(e){return isElement(e)&&contains(e,n)&&"body"!==getNodeName(e)})):[]}(e):[].concat(t),i=[].concat(r,[n]),d=i[0],h=i.reduce((function(t,n){var r=getClientRectFromMixedType(e,n);return t.top=Le(r.top,t.top),t.right=Pe(r.right,t.right),t.bottom=Pe(r.bottom,t.bottom),t.left=Le(r.left,t.left),t}),getClientRectFromMixedType(e,d));return h.width=h.right-h.left,h.height=h.bottom-h.top,h.x=h.left,h.y=h.top,h}function getVariation(e){return e.split("-")[1]}function computeOffsets(e){var t,n=e.reference,r=e.element,i=e.placement,d=i?getBasePlacement(i):null,h=i?getVariation(i):null,y=n.x+n.width/2-r.width/2,g=n.y+n.height/2-r.height/2;switch(d){case se:t={x:y,y:n.y-r.height};break;case ce:t={x:y,y:n.y+n.height};break;case ue:t={x:n.x+n.width,y:g};break;case le:t={x:n.x-r.width,y:g};break;default:t={x:n.x,y:n.y}}var v=d?getMainAxisFromPlacement(d):null;if(null!=v){var b="y"===v?"height":"width";switch(h){case de:t[v]=t[v]-(n[b]/2-r[b]/2);break;case he:t[v]=t[v]+(n[b]/2-r[b]/2)}}return t}function detectOverflow(e,t){void 0===t&&(t={});var n=t,r=n.placement,i=void 0===r?e.placement:r,d=n.boundary,h=void 0===d?me:d,y=n.rootBoundary,g=void 0===y?ye:y,v=n.elementContext,b=void 0===v?ge:v,_=n.altBoundary,w=void 0!==_&&_,E=n.padding,S=void 0===E?0:E,k=mergePaddingObject("number"!==typeof S?S:expandToHashMap(S,fe)),O=b===ge?ve:ge,C=e.elements.reference,T=e.rects.popper,A=e.elements[w?O:b],x=getClippingRect(isElement(A)?A:A.contextElement||getDocumentElement(e.elements.popper),h,g),D=getBoundingClientRect(C),I=computeOffsets({reference:D,element:T,strategy:"absolute",placement:i}),L=rectToClientRect(Object.assign({},T,I)),P=b===ge?L:D,N={top:x.top-P.top+k.top,bottom:P.bottom-x.bottom+k.bottom,left:x.left-P.left+k.left,right:P.right-x.right+k.right},R=e.modifiersData.offset;if(b===ge&&R){var M=R[i];Object.keys(N).forEach((function(e){var t=[ue,ce].indexOf(e)>=0?1:-1,n=[se,ce].indexOf(e)>=0?"y":"x";N[e]+=M[n]*t}))}return N}var Ke={name:"flip",enabled:!0,phase:"main",fn:function flip(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var i=n.mainAxis,d=void 0===i||i,h=n.altAxis,y=void 0===h||h,g=n.fallbackPlacements,v=n.padding,b=n.boundary,_=n.rootBoundary,w=n.altBoundary,E=n.flipVariations,S=void 0===E||E,k=n.allowedAutoPlacements,O=t.options.placement,C=getBasePlacement(O),T=g||(C===O||!S?[getOppositePlacement(O)]:function getExpandedFallbackPlacements(e){if(getBasePlacement(e)===pe)return[];var t=getOppositePlacement(e);return[getOppositeVariationPlacement(e),t,getOppositeVariationPlacement(t)]}(O)),A=[O].concat(T).reduce((function(e,n){return e.concat(getBasePlacement(n)===pe?function computeAutoPlacement(e,t){void 0===t&&(t={});var n=t,r=n.placement,i=n.boundary,d=n.rootBoundary,h=n.padding,y=n.flipVariations,g=n.allowedAutoPlacements,v=void 0===g?_e:g,b=getVariation(r),_=b?y?be:be.filter((function(e){return getVariation(e)===b})):fe,w=_.filter((function(e){return v.indexOf(e)>=0}));0===w.length&&(w=_);var E=w.reduce((function(t,n){return t[n]=detectOverflow(e,{placement:n,boundary:i,rootBoundary:d,padding:h})[getBasePlacement(n)],t}),{});return Object.keys(E).sort((function(e,t){return E[e]-E[t]}))}(t,{placement:n,boundary:b,rootBoundary:_,padding:v,flipVariations:S,allowedAutoPlacements:k}):n)}),[]),x=t.rects.reference,D=t.rects.popper,I=new Map,L=!0,P=A[0],N=0;N=0,Q=F?"width":"height",q=detectOverflow(t,{placement:R,boundary:b,rootBoundary:_,altBoundary:w,padding:v}),B=F?j?ue:le:j?ce:se;x[Q]>D[Q]&&(B=getOppositePlacement(B));var K=getOppositePlacement(B),U=[];if(d&&U.push(q[M]<=0),y&&U.push(q[B]<=0,q[K]<=0),U.every((function(e){return e}))){P=R,L=!1;break}I.set(R,U)}if(L)for(var V=function _loop(e){var t=A.find((function(t){var n=I.get(t);if(n)return n.slice(0,e).every((function(e){return e}))}));if(t)return P=t,"break"},H=S?3:1;H>0;H--){if("break"===V(H))break}t.placement!==P&&(t.modifiersData[r]._skip=!0,t.placement=P,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function getSideOffsets(e,t,n){return void 0===n&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function isAnySideFullyClipped(e){return[se,ue,ce,le].some((function(t){return e[t]>=0}))}var Ue={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function hide(e){var t=e.state,n=e.name,r=t.rects.reference,i=t.rects.popper,d=t.modifiersData.preventOverflow,h=detectOverflow(t,{elementContext:"reference"}),y=detectOverflow(t,{altBoundary:!0}),g=getSideOffsets(h,r),v=getSideOffsets(y,i,d),b=isAnySideFullyClipped(g),_=isAnySideFullyClipped(v);t.modifiersData[n]={referenceClippingOffsets:g,popperEscapeOffsets:v,isReferenceHidden:b,hasPopperEscaped:_},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":b,"data-popper-escaped":_})}};var Ve={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function offset(e){var t=e.state,n=e.options,r=e.name,i=n.offset,d=void 0===i?[0,0]:i,h=_e.reduce((function(e,n){return e[n]=function distanceAndSkiddingToXY(e,t,n){var r=getBasePlacement(e),i=[le,se].indexOf(r)>=0?-1:1,d="function"===typeof n?n(Object.assign({},t,{placement:e})):n,h=d[0],y=d[1];return h=h||0,y=(y||0)*i,[le,ue].indexOf(r)>=0?{x:y,y:h}:{x:h,y:y}}(n,t.rects,d),e}),{}),y=h[t.placement],g=y.x,v=y.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=g,t.modifiersData.popperOffsets.y+=v),t.modifiersData[r]=h}};var He={name:"popperOffsets",enabled:!0,phase:"read",fn:function popperOffsets(e){var t=e.state,n=e.name;t.modifiersData[n]=computeOffsets({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}};var We={name:"preventOverflow",enabled:!0,phase:"main",fn:function preventOverflow(e){var t=e.state,n=e.options,r=e.name,i=n.mainAxis,d=void 0===i||i,h=n.altAxis,y=void 0!==h&&h,g=n.boundary,v=n.rootBoundary,b=n.altBoundary,_=n.padding,w=n.tether,E=void 0===w||w,S=n.tetherOffset,k=void 0===S?0:S,O=detectOverflow(t,{boundary:g,rootBoundary:v,padding:_,altBoundary:b}),C=getBasePlacement(t.placement),T=getVariation(t.placement),A=!T,x=getMainAxisFromPlacement(C),D=function getAltAxis(e){return"x"===e?"y":"x"}(x),I=t.modifiersData.popperOffsets,L=t.rects.reference,P=t.rects.popper,N="function"===typeof k?k(Object.assign({},t.rects,{placement:t.placement})):k,R={x:0,y:0};if(I){if(d||y){var M="y"===x?se:le,j="y"===x?ce:ue,F="y"===x?"height":"width",Q=I[x],q=I[x]+O[M],B=I[x]-O[j],K=E?-P[F]/2:0,U=T===de?L[F]:P[F],V=T===de?-P[F]:-L[F],H=t.elements.arrow,W=E&&H?getLayoutRect(H):{width:0,height:0},z=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},G=z[M],Y=z[j],J=within(0,L[F],W[F]),X=A?L[F]/2-K-J-G-N:U-J-G-N,Z=A?-L[F]/2+K+J+Y+N:V+J+Y+N,ee=t.elements.arrow&&getOffsetParent(t.elements.arrow),te=ee?"y"===x?ee.clientTop||0:ee.clientLeft||0:0,ne=t.modifiersData.offset?t.modifiersData.offset[t.placement][x]:0,re=I[x]+X-ne-te,ie=I[x]+Z-ne;if(d){var oe=within(E?Pe(q,re):q,Q,E?Le(B,ie):B);I[x]=oe,R[x]=oe-Q}if(y){var ae="x"===x?se:le,pe="x"===x?ce:ue,fe=I[D],he=fe+O[ae],me=fe-O[pe],ye=within(E?Pe(he,re):he,fe,E?Le(me,ie):me);I[D]=ye,R[D]=ye-fe}}t.modifiersData[r]=R}},requiresIfExists:["offset"]};function getCompositeRect(e,t,n){void 0===n&&(n=!1);var r=getDocumentElement(t),i=getBoundingClientRect(e),d=isHTMLElement(t),h={scrollLeft:0,scrollTop:0},y={x:0,y:0};return(d||!d&&!n)&&(("body"!==getNodeName(t)||isScrollParent(r))&&(h=function getNodeScroll(e){return e!==getWindow(e)&&isHTMLElement(e)?function getHTMLElementScroll(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}(e):getWindowScroll(e)}(t)),isHTMLElement(t)?((y=getBoundingClientRect(t)).x+=t.clientLeft,y.y+=t.clientTop):r&&(y.x=getWindowScrollBarX(r))),{x:i.left+h.scrollLeft-y.x,y:i.top+h.scrollTop-y.y,width:i.width,height:i.height}}function order(e){var t=new Map,n=new Set,r=[];function sort(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach((function(e){if(!n.has(e)){var r=t.get(e);r&&sort(r)}})),r.push(e)}return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){n.has(e.name)||sort(e)})),r}var ze={placement:"bottom",modifiers:[],strategy:"absolute"};function areValidElements(){for(var e=arguments.length,t=new Array(e),n=0;ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n2&&void 0!==arguments[2]?arguments[2]:null,r=Object.keys(e),i=0,d=r.length;i1&&void 0!==arguments[1]?arguments[1]:document.documentElement;return(t=[]).concat.apply(t,bootstrap_esm_toConsumableArray(Element.prototype.querySelectorAll.call(n,e)))},Bt=function findOne(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:document.documentElement;return Element.prototype.querySelector.call(t,e)},Kt=function children(e,t){var n;return(n=[]).concat.apply(n,bootstrap_esm_toConsumableArray(e.children)).filter((function(e){return e.matches(t)}))},Ut=function parents(e,t){for(var parents=[],n=e.parentNode;n&&n.nodeType===Node.ELEMENT_NODE&&3!==n.nodeType;)n.matches(t)&&parents.push(n),n=n.parentNode;return parents},Vt=function prev(e,t){for(var n=e.previousElementSibling;n;){if(n.matches(t))return[n];n=n.previousElementSibling}return[]},Ht=function next(e,t){for(var next=e.nextElementSibling;next;){if(next.matches(t))return[next];next=next.nextElementSibling}return[]},Wt="carousel",zt="bs.carousel",Gt=".".concat(zt),Yt=".data-api",Jt={interval:5e3,keyboard:!0,slide:!1,pause:"hover",wrap:!0,touch:!0},Xt={interval:"(number|boolean)",keyboard:"boolean",slide:"(boolean|string)",pause:"(string|boolean)",wrap:"boolean",touch:"boolean"},$t="next",Zt="prev",en="left",tn="right",nn="slide".concat(Gt),rn="slid".concat(Gt),an="keydown".concat(Gt),sn="mouseenter".concat(Gt),cn="mouseleave".concat(Gt),un="touchstart".concat(Gt),ln="touchmove".concat(Gt),pn="touchend".concat(Gt),dn="pointerdown".concat(Gt),hn="pointerup".concat(Gt),mn="dragstart".concat(Gt),yn="load".concat(Gt).concat(Yt),gn="click".concat(Gt).concat(Yt),vn="active",bn=".active.carousel-item",_n="touch",wn=function(e){bootstrap_esm_inherits(Carousel,e);var t=bootstrap_esm_createSuper(Carousel);function Carousel(e,n){var r;return bootstrap_esm_classCallCheck(this,Carousel),(r=t.call(this,e))._items=null,r._interval=null,r._activeElement=null,r._isPaused=!1,r._isSliding=!1,r.touchTimeout=null,r.touchStartX=0,r.touchDeltaX=0,r._config=r._getConfig(n),r._indicatorsElement=Bt(".carousel-indicators",r._element),r._touchSupported="ontouchstart"in document.documentElement||navigator.maxTouchPoints>0,r._pointerEvent=Boolean(window.PointerEvent),r._addEventListeners(),r}return bootstrap_esm_createClass(Carousel,[{key:"next",value:function next(){this._isSliding||this._slide($t)}},{key:"nextWhenVisible",value:function nextWhenVisible(){!document.hidden&&st(this._element)&&this.next()}},{key:"prev",value:function prev(){this._isSliding||this._slide(Zt)}},{key:"pause",value:function pause(e){e||(this._isPaused=!0),Bt(".carousel-item-next, .carousel-item-prev",this._element)&&(rt(this._element),this.cycle(!0)),clearInterval(this._interval),this._interval=null}},{key:"cycle",value:function cycle(e){e||(this._isPaused=!1),this._interval&&(clearInterval(this._interval),this._interval=null),this._config&&this._config.interval&&!this._isPaused&&(this._updateInterval(),this._interval=setInterval((document.visibilityState?this.nextWhenVisible:this.next).bind(this),this._config.interval))}},{key:"to",value:function to(e){var t=this;this._activeElement=Bt(bn,this._element);var n=this._getItemIndex(this._activeElement);if(!(e>this._items.length-1||e<0))if(this._isSliding)Ct.one(this._element,rn,(function(){return t.to(e)}));else{if(n===e)return this.pause(),void this.cycle();var r=e>n?$t:Zt;this._slide(r,this._items[e])}}},{key:"dispose",value:function dispose(){Ct.off(this._element,Gt),this._items=null,this._config=null,this._interval=null,this._isPaused=null,this._isSliding=null,this._activeElement=null,this._indicatorsElement=null,_get(bootstrap_esm_getPrototypeOf(Carousel.prototype),"dispose",this).call(this)}},{key:"_getConfig",value:function _getConfig(e){return e=_objectSpread(_objectSpread({},Jt),e),at(Wt,e,Xt),e}},{key:"_handleSwipe",value:function _handleSwipe(){var e=Math.abs(this.touchDeltaX);if(!(e<=40)){var t=e/this.touchDeltaX;this.touchDeltaX=0,t&&this._slide(t>0?tn:en)}}},{key:"_addEventListeners",value:function _addEventListeners(){var e=this;this._config.keyboard&&Ct.on(this._element,an,(function(t){return e._keydown(t)})),"hover"===this._config.pause&&(Ct.on(this._element,sn,(function(t){return e.pause(t)})),Ct.on(this._element,cn,(function(t){return e.cycle(t)}))),this._config.touch&&this._touchSupported&&this._addTouchEventListeners()}},{key:"_addTouchEventListeners",value:function _addTouchEventListeners(){var e=this,t=function start(t){!e._pointerEvent||"pen"!==t.pointerType&&t.pointerType!==_n?e._pointerEvent||(e.touchStartX=t.touches[0].clientX):e.touchStartX=t.clientX},n=function end(t){!e._pointerEvent||"pen"!==t.pointerType&&t.pointerType!==_n||(e.touchDeltaX=t.clientX-e.touchStartX),e._handleSwipe(),"hover"===e._config.pause&&(e.pause(),e.touchTimeout&&clearTimeout(e.touchTimeout),e.touchTimeout=setTimeout((function(t){return e.cycle(t)}),500+e._config.interval))};qt(".carousel-item img",this._element).forEach((function(e){Ct.on(e,mn,(function(e){return e.preventDefault()}))})),this._pointerEvent?(Ct.on(this._element,dn,(function(e){return t(e)})),Ct.on(this._element,hn,(function(e){return n(e)})),this._element.classList.add("pointer-event")):(Ct.on(this._element,un,(function(e){return t(e)})),Ct.on(this._element,ln,(function(t){return function move(t){e.touchDeltaX=t.touches&&t.touches.length>1?0:t.touches[0].clientX-e.touchStartX}(t)})),Ct.on(this._element,pn,(function(e){return n(e)})))}},{key:"_keydown",value:function _keydown(e){/input|textarea/i.test(e.target.tagName)||("ArrowLeft"===e.key?(e.preventDefault(),this._slide(en)):"ArrowRight"===e.key&&(e.preventDefault(),this._slide(tn)))}},{key:"_getItemIndex",value:function _getItemIndex(e){return this._items=e&&e.parentNode?qt(".carousel-item",e.parentNode):[],this._items.indexOf(e)}},{key:"_getItemByOrder",value:function _getItemByOrder(e,t){var n=e===$t,r=e===Zt,i=this._getItemIndex(t),d=this._items.length-1;if((r&&0===i||n&&i===d)&&!this._config.wrap)return t;var h=(i+(r?-1:1))%this._items.length;return-1===h?this._items[this._items.length-1]:this._items[h]}},{key:"_triggerSlideEvent",value:function _triggerSlideEvent(e,t){var n=this._getItemIndex(e),r=this._getItemIndex(Bt(bn,this._element));return Ct.trigger(this._element,nn,{relatedTarget:e,direction:t,from:r,to:n})}},{key:"_setActiveIndicatorElement",value:function _setActiveIndicatorElement(e){if(this._indicatorsElement){var t=Bt(".active",this._indicatorsElement);t.classList.remove(vn),t.removeAttribute("aria-current");for(var n=qt("[data-bs-target]",this._indicatorsElement),r=0;r0)for(var r=0;r0&&i--,e.key===Wn&&idocument.documentElement.clientHeight;t||(this._element.style.overflowY="hidden"),this._element.classList.add(Mr);var n=nt(this._dialog);Ct.off(this._element,"transitionend"),Ct.one(this._element,"transitionend",(function(){e._element.classList.remove(Mr),t||(Ct.one(e._element,"transitionend",(function(){e._element.style.overflowY=""})),ot(e._element,n))})),ot(this._element,n),this._element.focus()}}},{key:"_adjustDialog",value:function _adjustDialog(){var e=this._element.scrollHeight>document.documentElement.clientHeight;(!this._isBodyOverflowing&&e&&!dt()||this._isBodyOverflowing&&!e&&dt())&&(this._element.style.paddingLeft="".concat(this._scrollbarWidth,"px")),(this._isBodyOverflowing&&!e&&!dt()||!this._isBodyOverflowing&&e&&dt())&&(this._element.style.paddingRight="".concat(this._scrollbarWidth,"px"))}},{key:"_resetAdjustments",value:function _resetAdjustments(){this._element.style.paddingLeft="",this._element.style.paddingRight=""}},{key:"_checkScrollbar",value:function _checkScrollbar(){var e=document.body.getBoundingClientRect();this._isBodyOverflowing=Math.round(e.left+e.right)e.clientWidth+r._scrollbarWidth)){var i=e.style[t],d=window.getComputedStyle(e)[t];Qt.setDataAttribute(e,t,i),e.style[t]=n(Number.parseFloat(d))+"px"}}))}},{key:"_resetScrollbar",value:function _resetScrollbar(){this._resetElementAttributes(jr,"paddingRight"),this._resetElementAttributes(Fr,"marginRight"),this._resetElementAttributes("body","paddingRight")}},{key:"_resetElementAttributes",value:function _resetElementAttributes(e,t){qt(e).forEach((function(e){var n=Qt.getDataAttribute(e,t);"undefined"===typeof n&&e===document.body?e.style[t]="":(Qt.removeDataAttribute(e,t),e.style[t]=n)}))}},{key:"_getScrollbarWidth",value:function _getScrollbarWidth(){var e=document.createElement("div");e.className="modal-scrollbar-measure",document.body.appendChild(e);var t=e.getBoundingClientRect().width-e.clientWidth;return document.body.removeChild(e),t}}],[{key:"Default",get:function get(){return br}},{key:"DATA_KEY",get:function get(){return yr}},{key:"jQueryInterface",value:function jQueryInterface(e,t){return this.each((function(){var n=gt(this,yr),r=_objectSpread(_objectSpread(_objectSpread({},br),Qt.getDataAttributes(this)),"object"===bootstrap_esm_typeof(e)&&e?e:{});if(n||(n=new Modal(this,r)),"string"===typeof e){if("undefined"===typeof n[e])throw new TypeError('No method named "'.concat(e,'"'));n[e](t)}}))}}]),Modal}(Tt);Ct.on(document,Lr,'[data-bs-toggle="modal"]',(function(e){var t=this,n=tt(this);"A"!==this.tagName&&"AREA"!==this.tagName||e.preventDefault(),Ct.one(n,kr,(function(e){e.defaultPrevented||Ct.one(n,Sr,(function(){st(t)&&t.focus()}))}));var r=gt(n,yr);if(!r){var i=_objectSpread(_objectSpread({},Qt.getDataAttributes(n)),Qt.getDataAttributes(this));r=new Qr(n,i)}r.toggle(this)})),ht(mr,Qr);var qr=".fixed-top, .fixed-bottom, .is-fixed",Br=".sticky-top",Kr=function getWidth(){var e=document.documentElement.clientWidth;return Math.abs(window.innerWidth-e)},Ur=function _setElementAttributes(e,t,n){var r=Kr();qt(e).forEach((function(e){if(!(e!==document.body&&window.innerWidth>e.clientWidth+r)){var i=e.style[t],d=window.getComputedStyle(e)[t];Qt.setDataAttribute(e,t,i),e.style[t]=n(Number.parseFloat(d))+"px"}}))},Vr=function _resetElementAttributes(e,t){qt(e).forEach((function(e){var n=Qt.getDataAttribute(e,t);"undefined"===typeof n&&e===document.body?e.style.removeProperty(t):(Qt.removeDataAttribute(e,t),e.style[t]=n)}))},Hr="offcanvas",Wr="bs.offcanvas",zr=".".concat(Wr),Gr=".data-api",Yr="load".concat(zr).concat(Gr),Jr={backdrop:!0,keyboard:!0,scroll:!1},Xr={backdrop:"boolean",keyboard:"boolean",scroll:"boolean"},$r="offcanvas-backdrop",Zr="show",ei="offcanvas-toggling",ti=".offcanvas.show",ni="".concat(ti,", .").concat(ei),ri="show".concat(zr),ii="shown".concat(zr),oi="hide".concat(zr),ai="hidden".concat(zr),si="focusin".concat(zr),ci="click".concat(zr).concat(Gr),ui="click.dismiss".concat(zr),li=function(e){bootstrap_esm_inherits(Offcanvas,e);var t=bootstrap_esm_createSuper(Offcanvas);function Offcanvas(e,n){var r;return bootstrap_esm_classCallCheck(this,Offcanvas),(r=t.call(this,e))._config=r._getConfig(n),r._isShown=!1,r._addEventListeners(),r}return bootstrap_esm_createClass(Offcanvas,[{key:"toggle",value:function toggle(e){return this._isShown?this.hide():this.show(e)}},{key:"show",value:function show(e){var t=this;if(!this._isShown&&!Ct.trigger(this._element,ri,{relatedTarget:e}).defaultPrevented){this._isShown=!0,this._element.style.visibility="visible",this._config.backdrop&&document.body.classList.add($r),this._config.scroll||function hide(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Kr();document.body.style.overflow="hidden",Ur(qr,"paddingRight",(function(t){return t+e})),Ur(Br,"marginRight",(function(t){return t-e})),Ur("body","paddingRight",(function(t){return t+e}))}(),this._element.classList.add(ei),this._element.removeAttribute("aria-hidden"),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.classList.add(Zr);setTimeout((function completeCallBack(){t._element.classList.remove(ei),Ct.trigger(t._element,ii,{relatedTarget:e}),t._enforceFocusOnElement(t._element)}),nt(this._element))}}},{key:"hide",value:function hide(){var e=this;if(this._isShown&&!Ct.trigger(this._element,oi).defaultPrevented){this._element.classList.add(ei),Ct.off(document,si),this._element.blur(),this._isShown=!1,this._element.classList.remove(Zr);setTimeout((function completeCallback(){e._element.setAttribute("aria-hidden",!0),e._element.removeAttribute("aria-modal"),e._element.removeAttribute("role"),e._element.style.visibility="hidden",e._config.backdrop&&document.body.classList.remove($r),e._config.scroll||function reset(){document.body.style.overflow="auto",Vr(qr,"paddingRight"),Vr(Br,"marginRight"),Vr("body","paddingRight")}(),Ct.trigger(e._element,ai),e._element.classList.remove(ei)}),nt(this._element))}}},{key:"_getConfig",value:function _getConfig(e){return e=_objectSpread(_objectSpread(_objectSpread({},Jr),Qt.getDataAttributes(this._element)),"object"===bootstrap_esm_typeof(e)?e:{}),at(Hr,e,Xr),e}},{key:"_enforceFocusOnElement",value:function _enforceFocusOnElement(e){Ct.off(document,si),Ct.on(document,si,(function(t){document===t.target||e===t.target||e.contains(t.target)||e.focus()})),e.focus()}},{key:"_addEventListeners",value:function _addEventListeners(){var e=this;Ct.on(this._element,ui,'[data-bs-dismiss="offcanvas"]',(function(){return e.hide()})),Ct.on(document,"keydown",(function(t){e._config.keyboard&&"Escape"===t.key&&e.hide()})),Ct.on(document,ci,(function(t){var n=Bt(et(t.target));e._element.contains(t.target)||n===e._element||e.hide()}))}}],[{key:"Default",get:function get(){return Jr}},{key:"DATA_KEY",get:function get(){return Wr}},{key:"jQueryInterface",value:function jQueryInterface(e){return this.each((function(){var t=gt(this,Wr)||new Offcanvas(this,"object"===bootstrap_esm_typeof(e)?e:{});if("string"===typeof e){if(void 0===t[e]||e.startsWith("_")||"constructor"===e)throw new TypeError('No method named "'.concat(e,'"'));t[e](this)}}))}}]),Offcanvas}(Tt);Ct.on(document,ci,'[data-bs-toggle="offcanvas"]',(function(e){var t=this,n=tt(this);if(["A","AREA"].includes(this.tagName)&&e.preventDefault(),!ct(this)){Ct.one(n,ai,(function(){st(t)&&t.focus()}));var r=Bt(ni);if(!r||r===n)(gt(n,Wr)||new li(n)).toggle(this)}})),Ct.on(window,Yr,(function(){qt(ti).forEach((function(e){return(gt(e,Wr)||new li(e)).show()}))})),ht(Hr,li);var pi=new Set(["background","cite","href","itemtype","longdesc","poster","src","xlink:href"]),fi=/^(?:(?:https?|mailto|ftp|tel|file):|[^#&/:?]*(?:[#/?]|$))/i,di=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[\d+/a-z]+=*$/i,hi={"*":["class","dir","id","lang","role",/^aria-[\w-]*$/i],a:["target","href","title","rel"],area:[],b:[],br:[],col:[],code:[],div:[],em:[],hr:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],i:[],img:["src","srcset","alt","title","width","height"],li:[],ol:[],p:[],pre:[],s:[],small:[],span:[],sub:[],sup:[],strong:[],u:[],ul:[]};function sanitizeHtml(e,t,n){var r;if(!e.length)return e;if(n&&"function"===typeof n)return n(e);for(var i=(new window.DOMParser).parseFromString(e,"text/html"),d=Object.keys(t),h=(r=[]).concat.apply(r,bootstrap_esm_toConsumableArray(i.body.querySelectorAll("*"))),y=function _loop(e,n){var r,i=h[e],y=i.nodeName.toLowerCase();if(!d.includes(y))return i.parentNode.removeChild(i),"continue";var g=(r=[]).concat.apply(r,bootstrap_esm_toConsumableArray(i.attributes)),v=[].concat(t["*"]||[],t[y]||[]);g.forEach((function(e){(function allowedAttribute(e,t){var n=e.nodeName.toLowerCase();if(t.includes(n))return!pi.has(n)||Boolean(fi.test(e.nodeValue)||di.test(e.nodeValue));for(var r=t.filter((function(e){return e instanceof RegExp})),i=0,d=r.length;i
',trigger:"hover focus",title:"",delay:0,html:!1,selector:!1,placement:"top",offset:[0,0],container:!1,fallbackPlacements:["top","right","bottom","left"],boundary:"clippingParents",customClass:"",sanitize:!0,sanitizeFn:null,allowList:hi,popperConfig:null},ki={HIDE:"hide".concat(gi),HIDDEN:"hidden".concat(gi),SHOW:"show".concat(gi),SHOWN:"shown".concat(gi),INSERTED:"inserted".concat(gi),CLICK:"click".concat(gi),FOCUSIN:"focusin".concat(gi),FOCUSOUT:"focusout".concat(gi),MOUSEENTER:"mouseenter".concat(gi),MOUSELEAVE:"mouseleave".concat(gi)},Oi="fade",Ci="modal",Ti="show",Ai="show",xi="out",Di="hover",Ii="focus",Li=function(e){bootstrap_esm_inherits(Tooltip,e);var t=bootstrap_esm_createSuper(Tooltip);function Tooltip(e,n){var i;if(bootstrap_esm_classCallCheck(this,Tooltip),"undefined"===typeof r)throw new TypeError("Bootstrap's tooltips require Popper (https://popper.js.org)");return(i=t.call(this,e))._isEnabled=!0,i._timeout=0,i._hoverState="",i._activeTrigger={},i._popper=null,i.config=i._getConfig(n),i.tip=null,i._setListeners(),i}return bootstrap_esm_createClass(Tooltip,[{key:"enable",value:function enable(){this._isEnabled=!0}},{key:"disable",value:function disable(){this._isEnabled=!1}},{key:"toggleEnabled",value:function toggleEnabled(){this._isEnabled=!this._isEnabled}},{key:"toggle",value:function toggle(e){if(this._isEnabled)if(e){var t=this._initializeOnDelegatedTarget(e);t._activeTrigger.click=!t._activeTrigger.click,t._isWithActiveTrigger()?t._enter(null,t):t._leave(null,t)}else{if(this.getTipElement().classList.contains(Ti))return void this._leave(null,this);this._enter(null,this)}}},{key:"dispose",value:function dispose(){clearTimeout(this._timeout),Ct.off(this._element,this.constructor.EVENT_KEY),Ct.off(this._element.closest(".".concat(Ci)),"hide.bs.modal",this._hideModalHandler),this.tip&&this.tip.parentNode&&this.tip.parentNode.removeChild(this.tip),this._isEnabled=null,this._timeout=null,this._hoverState=null,this._activeTrigger=null,this._popper&&this._popper.destroy(),this._popper=null,this.config=null,this.tip=null,_get(bootstrap_esm_getPrototypeOf(Tooltip.prototype),"dispose",this).call(this)}},{key:"show",value:function show(){var e=this;if("none"===this._element.style.display)throw new Error("Please use show on visible elements");if(this.isWithContent()&&this._isEnabled){var t=Ct.trigger(this._element,this.constructor.Event.SHOW),n=ut(this._element),r=null===n?this._element.ownerDocument.documentElement.contains(this._element):n.contains(this._element);if(!t.defaultPrevented&&r){var i=this.getTipElement(),d=$e(this.constructor.NAME);i.setAttribute("id",d),this._element.setAttribute("aria-describedby",d),this.setContent(),this.config.animation&&i.classList.add(Oi);var h="function"===typeof this.config.placement?this.config.placement.call(this,i,this._element):this.config.placement,y=this._getAttachment(h);this._addAttachmentClass(y);var g=this._getContainer();yt(i,this.constructor.DATA_KEY,this),this._element.ownerDocument.documentElement.contains(this.tip)||(g.appendChild(i),Ct.trigger(this._element,this.constructor.Event.INSERTED)),this._popper?this._popper.update():this._popper=Ye(this._element,i,this._getPopperConfig(y)),i.classList.add(Ti);var v,b,_="function"===typeof this.config.customClass?this.config.customClass():this.config.customClass;if(_)(v=i.classList).add.apply(v,bootstrap_esm_toConsumableArray(_.split(" ")));if("ontouchstart"in document.documentElement)(b=[]).concat.apply(b,bootstrap_esm_toConsumableArray(document.body.children)).forEach((function(e){Ct.on(e,"mouseover",(function(){}))}));var w=function complete(){var t=e._hoverState;e._hoverState=null,Ct.trigger(e._element,e.constructor.Event.SHOWN),t===xi&&e._leave(null,e)};if(this.tip.classList.contains(Oi)){var E=nt(this.tip);Ct.one(this.tip,"transitionend",w),ot(this.tip,E)}else w()}}}},{key:"hide",value:function hide(){var e=this;if(this._popper){var t=this.getTipElement(),n=function complete(){e._isWithActiveTrigger()||(e._hoverState!==Ai&&t.parentNode&&t.parentNode.removeChild(t),e._cleanTipClass(),e._element.removeAttribute("aria-describedby"),Ct.trigger(e._element,e.constructor.Event.HIDDEN),e._popper&&(e._popper.destroy(),e._popper=null))};if(!Ct.trigger(this._element,this.constructor.Event.HIDE).defaultPrevented){var r;if(t.classList.remove(Ti),"ontouchstart"in document.documentElement)(r=[]).concat.apply(r,bootstrap_esm_toConsumableArray(document.body.children)).forEach((function(e){return Ct.off(e,"mouseover",lt)}));if(this._activeTrigger.click=!1,this._activeTrigger.focus=!1,this._activeTrigger.hover=!1,this.tip.classList.contains(Oi)){var i=nt(t);Ct.one(t,"transitionend",n),ot(t,i)}else n();this._hoverState=""}}}},{key:"update",value:function update(){null!==this._popper&&this._popper.update()}},{key:"isWithContent",value:function isWithContent(){return Boolean(this.getTitle())}},{key:"getTipElement",value:function getTipElement(){if(this.tip)return this.tip;var e=document.createElement("div");return e.innerHTML=this.config.template,this.tip=e.children[0],this.tip}},{key:"setContent",value:function setContent(){var e=this.getTipElement();this.setElementContent(Bt(".tooltip-inner",e),this.getTitle()),e.classList.remove(Oi,Ti)}},{key:"setElementContent",value:function setElementContent(e,t){if(null!==e)return"object"===bootstrap_esm_typeof(t)&&it(t)?(t.jquery&&(t=t[0]),void(this.config.html?t.parentNode!==e&&(e.innerHTML="",e.appendChild(t)):e.textContent=t.textContent)):void(this.config.html?(this.config.sanitize&&(t=sanitizeHtml(t,this.config.allowList,this.config.sanitizeFn)),e.innerHTML=t):e.textContent=t)}},{key:"getTitle",value:function getTitle(){var e=this._element.getAttribute("data-bs-original-title");return e||(e="function"===typeof this.config.title?this.config.title.call(this._element):this.config.title),e}},{key:"updateAttachment",value:function updateAttachment(e){return"right"===e?"end":"left"===e?"start":e}},{key:"_initializeOnDelegatedTarget",value:function _initializeOnDelegatedTarget(e,t){var n=this.constructor.DATA_KEY;return(t=t||gt(e.delegateTarget,n))||(t=new this.constructor(e.delegateTarget,this._getDelegateConfig()),yt(e.delegateTarget,n,t)),t}},{key:"_getOffset",value:function _getOffset(){var e=this,t=this.config.offset;return"string"===typeof t?t.split(",").map((function(e){return Number.parseInt(e,10)})):"function"===typeof t?function(n){return t(n,e._element)}:t}},{key:"_getPopperConfig",value:function _getPopperConfig(e){var t=this,n={placement:e,modifiers:[{name:"flip",options:{altBoundary:!0,fallbackPlacements:this.config.fallbackPlacements}},{name:"offset",options:{offset:this._getOffset()}},{name:"preventOverflow",options:{boundary:this.config.boundary}},{name:"arrow",options:{element:".".concat(this.constructor.NAME,"-arrow")}},{name:"onChange",enabled:!0,phase:"afterWrite",fn:function fn(e){return t._handlePopperPlacementChange(e)}}],onFirstUpdate:function onFirstUpdate(e){e.options.placement!==e.placement&&t._handlePopperPlacementChange(e)}};return _objectSpread(_objectSpread({},n),"function"===typeof this.config.popperConfig?this.config.popperConfig(n):this.config.popperConfig)}},{key:"_addAttachmentClass",value:function _addAttachmentClass(e){this.getTipElement().classList.add("".concat(vi,"-").concat(this.updateAttachment(e)))}},{key:"_getContainer",value:function _getContainer(){return!1===this.config.container?document.body:it(this.config.container)?this.config.container:Bt(this.config.container)}},{key:"_getAttachment",value:function _getAttachment(e){return Ei[e.toUpperCase()]}},{key:"_setListeners",value:function _setListeners(){var e=this;this.config.trigger.split(" ").forEach((function(t){if("click"===t)Ct.on(e._element,e.constructor.Event.CLICK,e.config.selector,(function(t){return e.toggle(t)}));else if("manual"!==t){var n=t===Di?e.constructor.Event.MOUSEENTER:e.constructor.Event.FOCUSIN,r=t===Di?e.constructor.Event.MOUSELEAVE:e.constructor.Event.FOCUSOUT;Ct.on(e._element,n,e.config.selector,(function(t){return e._enter(t)})),Ct.on(e._element,r,e.config.selector,(function(t){return e._leave(t)}))}})),this._hideModalHandler=function(){e._element&&e.hide()},Ct.on(this._element.closest(".".concat(Ci)),"hide.bs.modal",this._hideModalHandler),this.config.selector?this.config=_objectSpread(_objectSpread({},this.config),{},{trigger:"manual",selector:""}):this._fixTitle()}},{key:"_fixTitle",value:function _fixTitle(){var e=this._element.getAttribute("title"),t=bootstrap_esm_typeof(this._element.getAttribute("data-bs-original-title"));(e||"string"!==t)&&(this._element.setAttribute("data-bs-original-title",e||""),!e||this._element.getAttribute("aria-label")||this._element.textContent||this._element.setAttribute("aria-label",e),this._element.setAttribute("title",""))}},{key:"_enter",value:function _enter(e,t){t=this._initializeOnDelegatedTarget(e,t),e&&(t._activeTrigger["focusin"===e.type?Ii:Di]=!0),t.getTipElement().classList.contains(Ti)||t._hoverState===Ai?t._hoverState=Ai:(clearTimeout(t._timeout),t._hoverState=Ai,t.config.delay&&t.config.delay.show?t._timeout=setTimeout((function(){t._hoverState===Ai&&t.show()}),t.config.delay.show):t.show())}},{key:"_leave",value:function _leave(e,t){t=this._initializeOnDelegatedTarget(e,t),e&&(t._activeTrigger["focusout"===e.type?Ii:Di]=t._element.contains(e.relatedTarget)),t._isWithActiveTrigger()||(clearTimeout(t._timeout),t._hoverState=xi,t.config.delay&&t.config.delay.hide?t._timeout=setTimeout((function(){t._hoverState===xi&&t.hide()}),t.config.delay.hide):t.hide())}},{key:"_isWithActiveTrigger",value:function _isWithActiveTrigger(){for(var e in this._activeTrigger)if(this._activeTrigger[e])return!0;return!1}},{key:"_getConfig",value:function _getConfig(e){var t=Qt.getDataAttributes(this._element);return Object.keys(t).forEach((function(e){_i.has(e)&&delete t[e]})),e&&"object"===bootstrap_esm_typeof(e.container)&&e.container.jquery&&(e.container=e.container[0]),"number"===typeof(e=_objectSpread(_objectSpread(_objectSpread({},this.constructor.Default),t),"object"===bootstrap_esm_typeof(e)&&e?e:{})).delay&&(e.delay={show:e.delay,hide:e.delay}),"number"===typeof e.title&&(e.title=e.title.toString()),"number"===typeof e.content&&(e.content=e.content.toString()),at(mi,e,this.constructor.DefaultType),e.sanitize&&(e.template=sanitizeHtml(e.template,e.allowList,e.sanitizeFn)),e}},{key:"_getDelegateConfig",value:function _getDelegateConfig(){var e={};if(this.config)for(var t in this.config)this.constructor.Default[t]!==this.config[t]&&(e[t]=this.config[t]);return e}},{key:"_cleanTipClass",value:function _cleanTipClass(){var e=this.getTipElement(),t=e.getAttribute("class").match(bi);null!==t&&t.length>0&&t.map((function(e){return e.trim()})).forEach((function(t){return e.classList.remove(t)}))}},{key:"_handlePopperPlacementChange",value:function _handlePopperPlacementChange(e){var t=e.state;t&&(this.tip=t.elements.popper,this._cleanTipClass(),this._addAttachmentClass(this._getAttachment(t.placement)))}}],[{key:"Default",get:function get(){return Si}},{key:"NAME",get:function get(){return mi}},{key:"DATA_KEY",get:function get(){return yi}},{key:"Event",get:function get(){return ki}},{key:"EVENT_KEY",get:function get(){return gi}},{key:"DefaultType",get:function get(){return wi}},{key:"jQueryInterface",value:function jQueryInterface(e){return this.each((function(){var t=gt(this,yi),n="object"===bootstrap_esm_typeof(e)&&e;if((t||!/dispose|hide/.test(e))&&(t||(t=new Tooltip(this,n)),"string"===typeof e)){if("undefined"===typeof t[e])throw new TypeError('No method named "'.concat(e,'"'));t[e]()}}))}}]),Tooltip}(Tt);ht(mi,Li);var Pi="popover",Ni="bs.popover",Ri=".".concat(Ni),Mi="bs-popover",ji=new RegExp("(^|\\s)".concat(Mi,"\\S+"),"g"),Fi=_objectSpread(_objectSpread({},Li.Default),{},{placement:"right",offset:[0,8],trigger:"click",content:"",template:''}),Qi=_objectSpread(_objectSpread({},Li.DefaultType),{},{content:"(string|element|function)"}),qi={HIDE:"hide".concat(Ri),HIDDEN:"hidden".concat(Ri),SHOW:"show".concat(Ri),SHOWN:"shown".concat(Ri),INSERTED:"inserted".concat(Ri),CLICK:"click".concat(Ri),FOCUSIN:"focusin".concat(Ri),FOCUSOUT:"focusout".concat(Ri),MOUSEENTER:"mouseenter".concat(Ri),MOUSELEAVE:"mouseleave".concat(Ri)};ht(Pi,function(e){bootstrap_esm_inherits(Popover,e);var t=bootstrap_esm_createSuper(Popover);function Popover(){return bootstrap_esm_classCallCheck(this,Popover),t.apply(this,arguments)}return bootstrap_esm_createClass(Popover,[{key:"isWithContent",value:function isWithContent(){return this.getTitle()||this._getContent()}},{key:"setContent",value:function setContent(){var e=this.getTipElement();this.setElementContent(Bt(".popover-header",e),this.getTitle());var t=this._getContent();"function"===typeof t&&(t=t.call(this._element)),this.setElementContent(Bt(".popover-body",e),t),e.classList.remove("fade","show")}},{key:"_addAttachmentClass",value:function _addAttachmentClass(e){this.getTipElement().classList.add("".concat(Mi,"-").concat(this.updateAttachment(e)))}},{key:"_getContent",value:function _getContent(){return this._element.getAttribute("data-bs-content")||this.config.content}},{key:"_cleanTipClass",value:function _cleanTipClass(){var e=this.getTipElement(),t=e.getAttribute("class").match(ji);null!==t&&t.length>0&&t.map((function(e){return e.trim()})).forEach((function(t){return e.classList.remove(t)}))}}],[{key:"Default",get:function get(){return Fi}},{key:"NAME",get:function get(){return Pi}},{key:"DATA_KEY",get:function get(){return Ni}},{key:"Event",get:function get(){return qi}},{key:"EVENT_KEY",get:function get(){return Ri}},{key:"DefaultType",get:function get(){return Qi}},{key:"jQueryInterface",value:function jQueryInterface(e){return this.each((function(){var t=gt(this,Ni),n="object"===bootstrap_esm_typeof(e)?e:null;if((t||!/dispose|hide/.test(e))&&(t||(t=new Popover(this,n),yt(this,Ni,t)),"string"===typeof e)){if("undefined"===typeof t[e])throw new TypeError('No method named "'.concat(e,'"'));t[e]()}}))}}]),Popover}(Li));var Bi="scrollspy",Ki="bs.scrollspy",Ui=".".concat(Ki),Vi={offset:10,method:"auto",target:""},Hi={offset:"number",method:"string",target:"(string|element)"},Wi="activate".concat(Ui),zi="scroll".concat(Ui),Gi="load".concat(Ui).concat(".data-api"),Yi="dropdown-item",Ji="active",Xi=".nav-link",$i=".list-group-item",Zi="position",eo=function(e){bootstrap_esm_inherits(ScrollSpy,e);var t=bootstrap_esm_createSuper(ScrollSpy);function ScrollSpy(e,n){var r;return bootstrap_esm_classCallCheck(this,ScrollSpy),(r=t.call(this,e))._scrollElement="BODY"===r._element.tagName?window:r._element,r._config=r._getConfig(n),r._selector="".concat(r._config.target," ").concat(Xi,", ").concat(r._config.target," ").concat($i,", ").concat(r._config.target," .").concat(Yi),r._offsets=[],r._targets=[],r._activeTarget=null,r._scrollHeight=0,Ct.on(r._scrollElement,zi,(function(){return r._process()})),r.refresh(),r._process(),r}return bootstrap_esm_createClass(ScrollSpy,[{key:"refresh",value:function refresh(){var e=this,t=this._scrollElement===this._scrollElement.window?"offset":Zi,n="auto"===this._config.method?t:this._config.method,r=n===Zi?this._getScrollTop():0;this._offsets=[],this._targets=[],this._scrollHeight=this._getScrollHeight(),qt(this._selector).map((function(e){var t=et(e),i=t?Bt(t):null;if(i){var d=i.getBoundingClientRect();if(d.width||d.height)return[Qt[n](i).top+r,t]}return null})).filter((function(e){return e})).sort((function(e,t){return e[0]-t[0]})).forEach((function(t){e._offsets.push(t[0]),e._targets.push(t[1])}))}},{key:"dispose",value:function dispose(){_get(bootstrap_esm_getPrototypeOf(ScrollSpy.prototype),"dispose",this).call(this),Ct.off(this._scrollElement,Ui),this._scrollElement=null,this._config=null,this._selector=null,this._offsets=null,this._targets=null,this._activeTarget=null,this._scrollHeight=null}},{key:"_getConfig",value:function _getConfig(e){if("string"!==typeof(e=_objectSpread(_objectSpread({},Vi),"object"===bootstrap_esm_typeof(e)&&e?e:{})).target&&it(e.target)){var t=e.target.id;t||(t=$e(Bi),e.target.id=t),e.target="#".concat(t)}return at(Bi,e,Hi),e}},{key:"_getScrollTop",value:function _getScrollTop(){return this._scrollElement===window?this._scrollElement.pageYOffset:this._scrollElement.scrollTop}},{key:"_getScrollHeight",value:function _getScrollHeight(){return this._scrollElement.scrollHeight||Math.max(document.body.scrollHeight,document.documentElement.scrollHeight)}},{key:"_getOffsetHeight",value:function _getOffsetHeight(){return this._scrollElement===window?window.innerHeight:this._scrollElement.getBoundingClientRect().height}},{key:"_process",value:function _process(){var e=this._getScrollTop()+this._config.offset,t=this._getScrollHeight(),n=this._config.offset+t-this._getOffsetHeight();if(this._scrollHeight!==t&&this.refresh(),e>=n){var r=this._targets[this._targets.length-1];this._activeTarget!==r&&this._activate(r)}else{if(this._activeTarget&&e0)return this._activeTarget=null,void this._clear();for(var i=this._offsets.length;i--;){this._activeTarget!==this._targets[i]&&e>=this._offsets[i]&&("undefined"===typeof this._offsets[i+1]||e .dropdown-menu .active",t.parentNode);r&&r.classList.remove(uo),"tab"===t.getAttribute("role")&&t.setAttribute("aria-selected",!1)}(e.classList.add(uo),"tab"===e.getAttribute("role")&&e.setAttribute("aria-selected",!0),pt(e),e.classList.contains(lo)&&e.classList.add(po),e.parentNode&&e.parentNode.classList.contains("dropdown-menu"))&&(e.closest(".dropdown")&&qt(".dropdown-toggle").forEach((function(e){return e.classList.add(uo)})),e.setAttribute("aria-expanded",!0));n&&n()}}],[{key:"DATA_KEY",get:function get(){return no}},{key:"jQueryInterface",value:function jQueryInterface(e){return this.each((function(){var t=gt(this,no)||new Tab(this);if("string"===typeof e){if("undefined"===typeof t[e])throw new TypeError('No method named "'.concat(e,'"'));t[e]()}}))}}]),Tab}(Tt);Ct.on(document,co,'[data-bs-toggle="tab"], [data-bs-toggle="pill"], [data-bs-toggle="list"]',(function(e){e.preventDefault(),(gt(this,no)||new mo(this)).show()})),ht("tab",mo);var yo="toast",go="bs.toast",vo=".".concat(go),bo="click.dismiss".concat(vo),_o="hide".concat(vo),wo="hidden".concat(vo),Eo="show".concat(vo),So="shown".concat(vo),ko="hide",Oo="show",Co="showing",To={animation:"boolean",autohide:"boolean",delay:"number"},Ao={animation:!0,autohide:!0,delay:5e3};function _main_loading_spinner_defineProperties(e,t){for(var n=0;n"),"color:yellow;font-size:10px"),console.info("%cENV: ".concat("production"),"color:green;font-size:10px"),console.groupCollapsed("Events"),Object.keys(D).forEach((function(e){console.info("".concat(e,": ").concat(D[e]))})),console.groupEnd("Events"),console.groupCollapsed("Consts"),Object.keys(I).forEach((function(e){console.info("".concat(e,": ").concat(I[e]))})),console.groupEnd("Events"),console.groupCollapsed("Init"),console.time("init");var r=function(){function MainUI(){!function _main_classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,MainUI)}return function _main_createClass(e,t,n){return t&&_main_defineProperties(e.prototype,t),n&&_main_defineProperties(e,n),e}(MainUI,null,[{key:"init",value:function init(){e.history.replaceState({landing:e.location.href},t.title,e.location.href),this.loaded()}},{key:"loaded",value:function loaded(){console.log("".concat("_main",": loaded"))}}]),MainUI}();e.addEventListener("".concat(D.LOADED),(function(){r.init(),n.classList.add("loaded"),Lo.hide(),console.groupEnd("init"),console.timeEnd("init"),e.dispatchEvent(new Event(D.LODEDANDREADY))})),e.addEventListener("".concat(D.AJAX),(function(){r.loaded()})),e.MainUI=r}(window);var No=n(6062),Ro=n.n(No),Mo=(function(e){var t="js-instagramfeed",n=(document.body,function loadFeed(){console.log("".concat(t,": loading")),document.querySelectorAll(".".concat(t)).forEach((function(n,r){var i="InstagramFeed".concat(r),d=n.dataset;n.classList.add("".concat(t,"-loading")),n.classList.remove("".concat(t,"-loaded"),"".concat(t,"-error")),new(Ro())({username:d.username,tag:d.tag||null,display_profile:d["display-profile"],display_biography:d["display-biography"],display_gallery:d["display-gallery"],display_captions:d["display-captions"],cache_time:d.cache_time||360,items:d.items||12,styling:!1,lazy_load:!0,callback:function callback(r){console.log("".concat(t,": data response received"));var d=document.createElement("div");d.classList.add("".concat(t,"-list"),"row"),n.appendChild(d),r.edge_owner_to_timeline_media.edges.forEach((function(e,n){var r=e.node,h=function ig_media_preview(e){var t=atob(e),n=t.slice(3).split(""),r=t.substring(0,3).split("").map((function(e){return e.charCodeAt(0)})),i=atob("/9j/4AAQSkZJRgABAQAAAQABAAD/2wCEABsaGikdKUEmJkFCLy8vQkc/Pj4/R0dHR0dHR0dHR0dHR0dHR0dHR0dHR0dHR0dHR0dHR0dHR0dHR0dHR0dHR0cBHSkpNCY0PygoP0c/NT9HR0dHR0dHR0dHR0dHR0dHR0dHR0dHR0dHR0dHR0dHR0dHR0dHR0dHR0dHR0dHR0dHR//AABEIABQAKgMBIgACEQEDEQH/xAGiAAABBQEBAQEBAQAAAAAAAAAAAQIDBAUGBwgJCgsQAAIBAwMCBAMFBQQEAAABfQECAwAEEQUSITFBBhNRYQcicRQygZGhCCNCscEVUtHwJDNicoIJChYXGBkaJSYnKCkqNDU2Nzg5OkNERUZHSElKU1RVVldYWVpjZGVmZ2hpanN0dXZ3eHl6g4SFhoeIiYqSk5SVlpeYmZqio6Slpqeoqaqys7S1tre4ubrCw8TFxsfIycrS09TV1tfY2drh4uPk5ebn6Onq8fLz9PX29/j5+gEAAwEBAQEBAQEBAQAAAAAAAAECAwQFBgcICQoLEQACAQIEBAMEBwUEBAABAncAAQIDEQQFITEGEkFRB2FxEyIygQgUQpGhscEJIzNS8BVictEKFiQ04SXxFxgZGiYnKCkqNTY3ODk6Q0RFRkdISUpTVFVWV1hZWmNkZWZnaGlqc3R1dnd4eXqCg4SFhoeIiYqSk5SVlpeYmZqio6Slpqeoqaqys7S1tre4ubrCw8TFxsfIycrS09TV1tfY2dri4+Tl5ufo6ery8/T19vf4+fr/2gAMAwEAAhEDEQA/AA==").split("");return i[162]=String.fromCharCode(r[1]),i[160]=String.fromCharCode(r[2]),e?"data:image/jpeg;base64,".concat(btoa(i.concat(n).join(""))):null}(r.media_preview);d.innerHTML+='
')+'').concat(r.accessibility_caption,'')+"
"})),n.classList.remove("".concat(t,"-loading")),n.classList.add("".concat(t,"-loaded")),e.dispatchEvent(new Event("MetaWindowindow.initLinks")),e.dispatchEvent(new Event("".concat(t,".loaded")))},on_error:function on_error(r){console.error("".concat(t,": ").concat(r)),n.classList.remove("".concat(t,"-loading")),n.classList.add("".concat(t,"-error")),e.dispatchEvent(new Event("".concat(t,".error")))}})}))});e.addEventListener("".concat(D.LODEDANDREADY),n),e.addEventListener("".concat(D.AJAX),n)}(window),"transitionend"),jo=function getSelector(e){var t=e.getAttribute("data-bs-target");if(!t||"#"===t){var n=e.getAttribute("href");if(!n||!n.includes("#")&&!n.startsWith("."))return null;n.includes("#")&&!n.startsWith("#")&&(n="#"+n.split("#")[1]),t=n&&"#"!==n?n.trim():null}return t},Fo=function triggerTransitionEnd(e){e.dispatchEvent(new Event(Mo))},Qo=function getjQuery(){var jQuery=window.jQuery;return jQuery&&!document.body.hasAttribute("data-bs-no-jquery")?jQuery:null},qo=function isRTL(){return"rtl"===document.documentElement.dir},Bo=new Map,Ko=function set(e,t,n){Bo.has(e)||Bo.set(e,new Map);var r=Bo.get(e);r.has(t)||0===r.size?r.set(t,n):console.error("Bootstrap doesn't allow more than one instance per element. Bound instance: ".concat(Array.from(r.keys())[0],"."))},Uo=function get(e,t){return Bo.has(e)&&Bo.get(e).get(t)||null},Vo=function remove(e,t){if(Bo.has(e)){var n=Bo.get(e);n.delete(t),0===n.size&&Bo.delete(e)}};function event_handler_slicedToArray(e,t){return function event_handler_arrayWithHoles(e){if(Array.isArray(e))return e}(e)||function event_handler_iterableToArrayLimit(e,t){var n=e&&("undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"]);if(null==n)return;var r,i,d=[],h=!0,y=!1;try{for(n=n.call(e);!(h=(r=n.next()).done)&&(d.push(r.value),!t||d.length!==t);h=!0);}catch(g){y=!0,i=g}finally{try{h||null==n.return||n.return()}finally{if(y)throw i}}return d}(e,t)||function event_handler_unsupportedIterableToArray(e,t){if(!e)return;if("string"===typeof e)return event_handler_arrayLikeToArray(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return event_handler_arrayLikeToArray(e,t)}(e,t)||function event_handler_nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function event_handler_arrayLikeToArray(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n2&&void 0!==arguments[2]?arguments[2]:null,r=Object.keys(e),i=0,d=r.length;ie.length)&&(t=e.length);for(var n=0,r=new Array(t);n1&&void 0!==arguments[1]?arguments[1]:document.documentElement;return(t=[]).concat.apply(t,selector_engine_toConsumableArray(Element.prototype.querySelectorAll.call(n,e)))},findOne:function findOne(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:document.documentElement;return Element.prototype.querySelector.call(t,e)},children:function children(e,t){var n;return(n=[]).concat.apply(n,selector_engine_toConsumableArray(e.children)).filter((function(e){return e.matches(t)}))},parents:function parents(e,t){for(var parents=[],n=e.parentNode;n&&n.nodeType===Node.ELEMENT_NODE&&3!==n.nodeType;)n.matches(t)&&parents.push(n),n=n.parentNode;return parents},prev:function prev(e,t){for(var n=e.previousElementSibling;n;){if(n.matches(t))return[n];n=n.previousElementSibling}return[]},next:function next(e,t){for(var next=e.nextElementSibling;next;){if(next.matches(t))return[next];next=next.nextElementSibling}return[]}};function base_component_defineProperties(e,t){for(var n=0;n0,r._pointerEvent=Boolean(window.PointerEvent),r._addEventListeners(),r}return function carousel_createClass(e,t,n){return t&&carousel_defineProperties(e.prototype,t),n&&carousel_defineProperties(e,n),e}(Carousel,[{key:"next",value:function next(){this._isSliding||this._slide(ua)}},{key:"nextWhenVisible",value:function nextWhenVisible(){!document.hidden&&function isVisible(e){if(!e)return!1;if(e.style&&e.parentNode&&e.parentNode.style){var t=getComputedStyle(e),n=getComputedStyle(e.parentNode);return"none"!==t.display&&"none"!==n.display&&"hidden"!==t.visibility}return!1}(this._element)&&this.next()}},{key:"prev",value:function prev(){this._isSliding||this._slide(la)}},{key:"pause",value:function pause(e){e||(this._isPaused=!0),ta.findOne(".carousel-item-next, .carousel-item-prev",this._element)&&(Fo(this._element),this.cycle(!0)),clearInterval(this._interval),this._interval=null}},{key:"cycle",value:function cycle(e){e||(this._isPaused=!1),this._interval&&(clearInterval(this._interval),this._interval=null),this._config&&this._config.interval&&!this._isPaused&&(this._updateInterval(),this._interval=setInterval((document.visibilityState?this.nextWhenVisible:this.next).bind(this),this._config.interval))}},{key:"to",value:function to(e){var t=this;this._activeElement=ta.findOne(Ta,this._element);var n=this._getItemIndex(this._activeElement);if(!(e>this._items.length-1||e<0))if(this._isSliding)Zo.one(this._element,ha,(function(){return t.to(e)}));else{if(n===e)return this.pause(),void this.cycle();var r=e>n?ua:la;this._slide(r,this._items[e])}}},{key:"dispose",value:function dispose(){Zo.off(this._element,oa),this._items=null,this._config=null,this._interval=null,this._isPaused=null,this._isSliding=null,this._activeElement=null,this._indicatorsElement=null,carousel_get(carousel_getPrototypeOf(Carousel.prototype),"dispose",this).call(this)}},{key:"_getConfig",value:function _getConfig(e){return e=carousel_objectSpread(carousel_objectSpread({},sa),e),function typeCheckConfig(e,t,n){Object.keys(n).forEach((function(r){var i=n[r],d=t[r],h=d&&function isElement(e){return(e[0]||e).nodeType}(d)?"element":function toType(e){return null===e||void 0===e?"".concat(e):{}.toString.call(e).match(/\s([a-z]+)/i)[1].toLowerCase()}(d);if(!new RegExp(i).test(h))throw new TypeError("".concat(e.toUpperCase(),": ")+'Option "'.concat(r,'" provided type "').concat(h,'" ')+'but expected type "'.concat(i,'".'))}))}(ra,e,ca),e}},{key:"_handleSwipe",value:function _handleSwipe(){var e=Math.abs(this.touchDeltaX);if(!(e<=40)){var t=e/this.touchDeltaX;this.touchDeltaX=0,t&&this._slide(t>0?fa:pa)}}},{key:"_addEventListeners",value:function _addEventListeners(){var e=this;this._config.keyboard&&Zo.on(this._element,ma,(function(t){return e._keydown(t)})),"hover"===this._config.pause&&(Zo.on(this._element,ya,(function(t){return e.pause(t)})),Zo.on(this._element,ga,(function(t){return e.cycle(t)}))),this._config.touch&&this._touchSupported&&this._addTouchEventListeners()}},{key:"_addTouchEventListeners",value:function _addTouchEventListeners(){var e=this,t=function start(t){!e._pointerEvent||"pen"!==t.pointerType&&t.pointerType!==Aa?e._pointerEvent||(e.touchStartX=t.touches[0].clientX):e.touchStartX=t.clientX},n=function end(t){!e._pointerEvent||"pen"!==t.pointerType&&t.pointerType!==Aa||(e.touchDeltaX=t.clientX-e.touchStartX),e._handleSwipe(),"hover"===e._config.pause&&(e.pause(),e.touchTimeout&&clearTimeout(e.touchTimeout),e.touchTimeout=setTimeout((function(t){return e.cycle(t)}),500+e._config.interval))};ta.find(".carousel-item img",this._element).forEach((function(e){Zo.on(e,Sa,(function(e){return e.preventDefault()}))})),this._pointerEvent?(Zo.on(this._element,wa,(function(e){return t(e)})),Zo.on(this._element,Ea,(function(e){return n(e)})),this._element.classList.add("pointer-event")):(Zo.on(this._element,va,(function(e){return t(e)})),Zo.on(this._element,ba,(function(t){return function move(t){e.touchDeltaX=t.touches&&t.touches.length>1?0:t.touches[0].clientX-e.touchStartX}(t)})),Zo.on(this._element,_a,(function(e){return n(e)})))}},{key:"_keydown",value:function _keydown(e){/input|textarea/i.test(e.target.tagName)||("ArrowLeft"===e.key?(e.preventDefault(),this._slide(pa)):"ArrowRight"===e.key&&(e.preventDefault(),this._slide(fa)))}},{key:"_getItemIndex",value:function _getItemIndex(e){return this._items=e&&e.parentNode?ta.find(".carousel-item",e.parentNode):[],this._items.indexOf(e)}},{key:"_getItemByOrder",value:function _getItemByOrder(e,t){var n=e===ua,r=e===la,i=this._getItemIndex(t),d=this._items.length-1;if((r&&0===i||n&&i===d)&&!this._config.wrap)return t;var h=(i+(r?-1:1))%this._items.length;return-1===h?this._items[this._items.length-1]:this._items[h]}},{key:"_triggerSlideEvent",value:function _triggerSlideEvent(e,t){var n=this._getItemIndex(e),r=this._getItemIndex(ta.findOne(Ta,this._element));return Zo.trigger(this._element,da,{relatedTarget:e,direction:t,from:r,to:n})}},{key:"_setActiveIndicatorElement",value:function _setActiveIndicatorElement(e){if(this._indicatorsElement){var t=ta.findOne(".active",this._indicatorsElement);t.classList.remove(Ca),t.removeAttribute("aria-current");for(var n=ta.find("[data-bs-target]",this._indicatorsElement),r=0;rthis.max;)this.delete(this.oldest.key)},Cache.prototype.delete=function(e){var t=this.map.get(e);return!!t&&(t===this.newest&&(this.newest=t.older),t===this.oldest&&(this.oldest=t.newer),t.newer&&(t.newer.older=t.older),t.older&&(t.older.newer=t.newer),this.map.delete(e),this.dispose(t.value,e),!0)},Cache}(),k=new E;function maybeUnsubscribe(e){var t=e.unsubscribe;"function"===typeof t&&(e.unsubscribe=void 0,t())}var O=[];function assert(e,t){if(!e)throw new Error(t||"assertion failure")}function valueGet(e){switch(e.length){case 0:throw new Error("unknown value");case 1:return e[0];case 2:throw e[1]}}var C=function(){function Entry(e){this.fn=e,this.parents=new Set,this.childValues=new Map,this.dirtyChildren=null,this.dirty=!0,this.recomputing=!1,this.value=[],this.deps=null,++Entry.count}return Entry.prototype.peek=function(){if(1===this.value.length&&!mightBeDirty(this))return this.value[0]},Entry.prototype.recompute=function(e){return assert(!this.recomputing,"already recomputing"),function rememberParent(e){var t=k.getValue();if(t)return e.parents.add(t),t.childValues.has(e)||t.childValues.set(e,[]),mightBeDirty(e)?reportDirtyChild(t,e):reportCleanChild(t,e),t}(this),mightBeDirty(this)?function reallyRecompute(e,t){forgetChildren(e),k.withValue(e,recomputeNewValue,[e,t]),function maybeSubscribe(e,t){if("function"===typeof e.subscribe)try{maybeUnsubscribe(e),e.unsubscribe=e.subscribe.apply(null,t)}catch(n){return e.setDirty(),!1}return!0}(e,t)&&function setClean(e){if(e.dirty=!1,mightBeDirty(e))return;reportClean(e)}(e);return valueGet(e.value)}(this,e):valueGet(this.value)},Entry.prototype.setDirty=function(){this.dirty||(this.dirty=!0,this.value.length=0,reportDirty(this),forgetChildren(this),maybeUnsubscribe(this))},Entry.prototype.dispose=function(){var e=this;forgetChildren(this),maybeUnsubscribe(this),this.parents.forEach((function(t){t.setDirty(),forgetChild(t,e)}))},Entry.prototype.dependOn=function(e){e.add(this),this.deps||(this.deps=O.pop()||new Set),this.deps.add(e)},Entry.prototype.forgetDeps=function(){var e=this;this.deps&&(this.deps.forEach((function(t){return t.delete(e)})),this.deps.clear(),O.push(this.deps),this.deps=null)},Entry.count=0,Entry}();function recomputeNewValue(e,t){e.recomputing=!0,e.value.length=0;try{e.value[0]=e.fn.apply(null,t)}catch(n){e.value[1]=n}e.recomputing=!1}function mightBeDirty(e){return e.dirty||!(!e.dirtyChildren||!e.dirtyChildren.size)}function reportDirty(e){e.parents.forEach((function(t){return reportDirtyChild(t,e)}))}function reportClean(e){e.parents.forEach((function(t){return reportCleanChild(t,e)}))}function reportDirtyChild(e,t){if(assert(e.childValues.has(t)),assert(mightBeDirty(t)),e.dirtyChildren){if(e.dirtyChildren.has(t))return}else e.dirtyChildren=O.pop()||new Set;e.dirtyChildren.add(t),reportDirty(e)}function reportCleanChild(e,t){assert(e.childValues.has(t)),assert(!mightBeDirty(t));var n=e.childValues.get(t);0===n.length?e.childValues.set(t,function valueCopy(e){return e.slice(0)}(t.value)):function valueIs(e,t){var n=e.length;return n>0&&n===t.length&&e[n-1]===t[n-1]}(n,t.value)||e.setDirty(),removeDirtyChild(e,t),mightBeDirty(e)||reportClean(e)}function removeDirtyChild(e,t){var n=e.dirtyChildren;n&&(n.delete(t),0===n.size&&(O.length<100&&O.push(n),e.dirtyChildren=null))}function forgetChildren(e){e.childValues.size>0&&e.childValues.forEach((function(t,n){forgetChild(e,n)})),e.forgetDeps(),assert(null===e.dirtyChildren)}function forgetChild(e,t){t.parents.delete(e),e.childValues.delete(t),removeDirtyChild(e,t)}function dep(e){var t=new Map,n=e&&e.subscribe;function depend(e){var r=k.getValue();if(r){var i=t.get(e);i||t.set(e,i=new Set),r.dependOn(i),"function"===typeof n&&(maybeUnsubscribe(i),i.unsubscribe=n(e))}}return depend.dirty=function dirty(e){var n=t.get(e);n&&(n.forEach((function(e){return e.setDirty()})),t.delete(e),maybeUnsubscribe(n))},depend}var T=new y("function"===typeof WeakMap);function defaultMakeCacheKey(){for(var e=[],t=0;t0){var t=--this.rootIds[e];return t||delete this.rootIds[e],t}return 0},EntityStore.prototype.getRootIdSet=function(e){return void 0===e&&(e=new Set),Object.keys(this.rootIds).forEach(e.add,e),this instanceof U?this.parent.getRootIdSet(e):Object.keys(this.policies.rootTypenamesById).forEach(e.add,e),e},EntityStore.prototype.gc=function(){var e=this,t=this.getRootIdSet(),n=this.toObject();t.forEach((function(r){M.call(n,r)&&(Object.keys(e.findChildRefIds(r)).forEach(t.add,t),delete n[r])}));var r=Object.keys(n);if(r.length){for(var i=this;i instanceof U;)i=i.parent;r.forEach((function(e){return i.delete(e)}))}return r},EntityStore.prototype.findChildRefIds=function(e){if(!M.call(this.refs,e)){var t=this.refs[e]=Object.create(null),n=new Set([this.data[e]]),r=function canTraverse_1(e){return null!==e&&"object"===entityStore_typeof(e)};n.forEach((function(e){(0,D.hh)(e)?t[e.__ref]=!0:r(e)&&Object.values(e).filter(r).forEach(n.add,n)}))}return this.refs[e]},EntityStore.prototype.makeCacheKey=function(){for(var e=[],t=0;t0;if(b&&!y)throw v.missing[0];return{result:v.result,missing:v.missing,complete:!b}},StoreReader.prototype.isFresh=function(e,t,n,r){if(supportsResultCaching(r.store)&&this.knownResults.get(e)===n){var i=this.executeSelectionSet.peek(n,t,r);if(i&&e===i.result)return!0}return!1},StoreReader.prototype.execSelectionSetImpl=function(e){var t=this,n=e.selectionSet,r=e.objectOrReference,i=e.context;if((0,D.hh)(r)&&!i.policies.rootTypenamesById[r.__ref]&&!i.store.has(r.__ref))return{result:{},missing:[missingFromInvariant(new N.ej(4),i)]};var d=i.variables,h=i.policies,y=i.store,g=[],v={result:null},b=y.getFieldValue(r,"__typename");function getMissing(){return v.missing||(v.missing=[])}function handleMissing(e){var t;return e.missing&&(t=getMissing()).push.apply(t,e.missing),e.result}this.config.addTypename&&"string"===typeof b&&!h.rootIdsByTypename[b]&&g.push({__typename:b});var _=new Set(n.selections);return _.forEach((function(e){var n;if((0,D.LZ)(e,d))if((0,D.My)(e)){var y=h.readField({fieldName:e.name.value,field:e,variables:i.variables,from:r},i),v=(0,D.u2)(e);i.path.push(v);var w=i.clientOnly;i.clientOnly=w||!(!e.directives||!e.directives.some((function(e){return"client"===e.name.value}))),void 0===y?D.Gw.added(e)||getMissing().push(missingFromInvariant(new N.ej(5),i)):Array.isArray(y)?y=handleMissing(t.executeSubSelectedArray({field:e,array:y,context:i})):e.selectionSet&&null!=y&&(y=handleMissing(t.executeSelectionSet({selectionSet:e.selectionSet,objectOrReference:y,context:i}))),void 0!==y&&g.push(((n={})[v]=y,n)),i.clientOnly=w,(0,N.kG)(i.path.pop()===v)}else{var E=(0,D.hi)(e,i.fragmentMap);E&&h.fragmentMatches(E,b)&&E.selectionSet.selections.forEach(_.add,_)}})),v.result=(0,D.bw)(g),this.knownResults.set(v.result,n),v},StoreReader.prototype.execSubSelectedArrayImpl=function(e){var t,n=this,r=e.field,i=e.array,d=e.context;function handleMissing(e,n){return e.missing&&(t=t||[]).push.apply(t,e.missing),(0,N.kG)(d.path.pop()===n),e.result}return r.selectionSet&&(i=i.filter(d.store.canRead)),{result:i=i.map((function(e,t){return null===e?null:(d.path.push(t),Array.isArray(e)?handleMissing(n.executeSubSelectedArray({field:r,array:e,context:d}),t):r.selectionSet?handleMissing(n.executeSelectionSet({selectionSet:r.selectionSet,objectOrReference:e,context:d}),t):((0,N.kG)(d.path.pop()===t),e))})),missing:t}},StoreReader}();var H=function(){function StoreWriter(e,t){this.cache=e,this.reader=t}return StoreWriter.prototype.writeToStore=function(e){var t=e.query,n=e.result,r=e.dataId,i=e.store,d=e.variables,h=(0,D.$H)(t),y=function makeProcessedFieldsMerger(){return new D.w0}();d=(0,P.pi)((0,P.pi)({},(0,D.O4)(h)),d);var g=this.processSelectionSet({result:n||Object.create(null),dataId:r,selectionSet:h.selectionSet,mergeTree:{map:new Map},context:{store:i,written:Object.create(null),merge:function merge(e,t){return y.merge(e,t)},variables:d,varString:JSON.stringify(d),fragmentMap:(0,D.F)((0,D.kU)(t))}});if(!(0,D.hh)(g))throw new N.ej(7);return i.retain(g.__ref),g},StoreWriter.prototype.processSelectionSet=function(e){var t=this,n=e.dataId,r=e.result,i=e.selectionSet,d=e.context,h=e.mergeTree,y=this.cache.policies,g=y.identify(r,i,d.fragmentMap),v=g[0],b=g[1];if("string"===typeof(n=n||v)){var _=d.written[n]||(d.written[n]=[]),w=(0,D.kQ)(n);if(_.indexOf(i)>=0)return w;if(_.push(i),this.reader&&this.reader.isFresh(r,w,i,d))return w}var E=Object.create(null);b&&(E=d.merge(E,b));var S=n&&y.rootTypenamesById[n]||(0,D.qw)(r,i,d.fragmentMap)||n&&d.store.get(n,"__typename");"string"===typeof S&&(E.__typename=S);var k=new Set(i.selections);if(k.forEach((function(e){var n;if((0,D.LZ)(e,d.variables))if((0,D.My)(e)){var i=(0,D.u2)(e),g=r[i];if("undefined"!==typeof g){var v=y.getStoreFieldName({typename:S,fieldName:e.name.value,field:e,variables:d.variables}),b=getChildMergeTree(h,v),_=t.processFieldValue(g,e,d,b),w=e.selectionSet&&d.store.getFieldValue(_,"__typename")||void 0,O=y.getMergeFunction(S,e.name.value,w);O?b.info={field:e,typename:S,merge:O}:maybeRecycleChildMergeTree(h,v),E=d.merge(E,((n={})[v]=_,n))}else if(y.usingPossibleTypes&&!(0,D.FS)(["defer","client"],e))throw new N.ej(8)}else{var C=(0,D.hi)(e,d.fragmentMap);C&&y.fragmentMatches(C,S,r,d.variables)&&C.selectionSet.selections.forEach(k.add,k)}})),"string"===typeof n){var O=(0,D.kQ)(n);return h.map.size&&(E=this.applyMerges(h,O,E,d)),d.store.merge(n,E),O}return E},StoreWriter.prototype.processFieldValue=function(e,t,n,r){var i=this;return t.selectionSet&&null!==e?Array.isArray(e)?e.map((function(e,d){var h=i.processFieldValue(e,t,n,getChildMergeTree(r,d));return maybeRecycleChildMergeTree(r,d),h})):this.processSelectionSet({result:e,selectionSet:t.selectionSet,context:n,mergeTree:r}):e},StoreWriter.prototype.applyMerges=function(e,t,n,r,i){var d,h=this;if(e.map.size&&!(0,D.hh)(n)){var y,g=Array.isArray(n)||!(0,D.hh)(t)&&!storeValueIsStoreObject(t)?void 0:t,v=n;g&&!i&&(i=[(0,D.hh)(g)?g.__ref:g]);var b=function getValue_1(e,t){return Array.isArray(e)?"number"===typeof t?e[t]:void 0:r.store.getFieldValue(e,String(t))};e.map.forEach((function(e,t){i&&i.push(t);var n=b(g,t),d=b(v,t),_=h.applyMerges(e,n,d,r,i);_!==d&&(y=y||new Map).set(t,_),i&&(0,N.kG)(i.pop()===t)})),y&&(n=Array.isArray(v)?v.slice(0):(0,P.pi)({},v),y.forEach((function(e,t){n[t]=e})))}return e.info?this.cache.policies.runMergeFunction(t,n,e.info,r,i&&(d=r.store).getStorage.apply(d,i)):n},StoreWriter}(),W=[];function getChildMergeTree(e,t){var n=e.map;return n.has(t)||n.set(t,W.pop()||{map:new Map}),n.get(t)}function maybeRecycleChildMergeTree(e,t){var n=e.map,r=n.get(t);!r||r.info||r.map.size||(W.push(r),n.delete(t))}new Set;var z=new E,G=new WeakMap;function getCacheInfo(e){var t=G.get(e);return t||G.set(e,t={vars:new Set,dep:dep()}),t}function makeVar(e){var t=new Set,n=new Set,r=function rv(r){if(arguments.length>0){if(e!==r){e=r,t.forEach((function(e){getCacheInfo(e).dep.dirty(rv),broadcast(e)}));var d=Array.from(n);n.clear(),d.forEach((function(t){return t(e)}))}}else{var h=z.getValue();h&&(i(h),getCacheInfo(h).dep(rv))}return e};r.onNextChange=function(e){return n.add(e),function(){n.delete(e)}};var i=r.attachCache=function(e){return t.add(e),getCacheInfo(e).vars.add(r),r};return r.forgetCache=function(e){return t.delete(e)},r}function broadcast(e){e.broadcastWatches&&e.broadcastWatches()}function policies_typeof(e){return(policies_typeof="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function _typeof(e){return typeof e}:function _typeof(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function argsFromFieldSpecifier(e){return void 0!==e.args?e.args:e.field?(0,D.NC)(e.field,e.variables):null}var Y=function defaultDataIdFromObject(e,t){var n=e.__typename,r=e.id,i=e._id;if("string"===typeof n&&(t&&(t.keyObject=void 0!==r?{id:r}:void 0!==i?{_id:i}:void 0),void 0===r&&(r=i),void 0!==r))return n+":"+("number"===typeof r||"string"===typeof r?r:JSON.stringify(r))},J=function nullKeyFieldsFn(){},X=function simpleKeyArgsFn(e,t){return t.fieldName},Z=function mergeTrueFn(e,t,n){return(0,n.mergeObjects)(e,t)},ee=function mergeFalseFn(e,t){return t},te=function(){function Policies(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,P.pi)({dataIdFromObject:Y},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 Policies.prototype.identify=function(e,t,n){var r=t&&n?(0,D.qw)(e,t,n):e.__typename;if(r===this.rootTypenamesById.ROOT_QUERY)return["ROOT_QUERY"];for(var i,d={typename:r,selectionSet:t,fragmentMap:n},h=r&&this.getTypePolicy(r),y=h&&h.keyFn||this.config.dataIdFromObject;y;){var g=y(e,d);if(!Array.isArray(g)){i=g;break}y=keyFieldsFnFromSpecifier(g)}return i=i?String(i):void 0,d.keyObject?[i,d.keyObject]:[i]},Policies.prototype.addTypePolicies=function(e){var t=this;Object.keys(e).forEach((function(n){var r=e[n],i=r.queryType,d=r.mutationType,h=r.subscriptionType,y=(0,P._T)(r,["queryType","mutationType","subscriptionType"]);i&&t.setRootTypename("Query",n),d&&t.setRootTypename("Mutation",n),h&&t.setRootTypename("Subscription",n),M.call(t.toBeAdded,n)?t.toBeAdded[n].push(y):t.toBeAdded[n]=[y]}))},Policies.prototype.updateTypePolicy=function(e,t){var n=this,r=this.getTypePolicy(e),i=t.keyFields,d=t.fields;function setMerge(e,t){e.merge="function"===typeof t?t:!0===t?Z:!1===t?ee:e.merge}setMerge(r,t.merge),r.keyFn=!1===i?J:Array.isArray(i)?keyFieldsFnFromSpecifier(i):"function"===typeof i?i:r.keyFn,d&&Object.keys(d).forEach((function(t){var r=n.getFieldPolicy(e,t,!0),i=d[t];if("function"===typeof i)r.read=i;else{var h=i.keyArgs,y=i.read,g=i.merge;r.keyFn=!1===h?X:Array.isArray(h)?keyArgsFnFromSpecifier(h):"function"===typeof h?h:r.keyFn,"function"===typeof y&&(r.read=y),setMerge(r,g)}r.read&&r.merge&&(r.keyFn=r.keyFn||X)}))},Policies.prototype.setRootTypename=function(e,t){void 0===t&&(t=e);var n="ROOT_"+e.toUpperCase(),r=this.rootTypenamesById[n];t!==r&&((0,N.kG)(!r||r===e,1),r&&delete this.rootIdsByTypename[r],this.rootIdsByTypename[t]=n,this.rootTypenamesById[n]=t)},Policies.prototype.addPossibleTypes=function(e){var t=this;this.usingPossibleTypes=!0,Object.keys(e).forEach((function(n){t.getSupertypeSet(n,!0),e[n].forEach((function(e){t.getSupertypeSet(e,!0).add(n);var r=e.match(j);r&&r[0]===e||t.fuzzySubtypes.set(e,new RegExp(e))}))}))},Policies.prototype.getTypePolicy=function(e){var t=this;if(!M.call(this.typePolicies,e)){var n=this.typePolicies[e]=Object.create(null);n.fields=Object.create(null);var r=this.supertypeMap.get(e);r&&r.size&&r.forEach((function(e){var r=t.getTypePolicy(e),i=r.fields,d=(0,P._T)(r,["fields"]);Object.assign(n,d),Object.assign(n.fields,i)}))}var i=this.toBeAdded[e];return i&&i.length&&this.updateTypePolicy(e,D.oA.apply(void 0,i.splice(0))),this.typePolicies[e]},Policies.prototype.getFieldPolicy=function(e,t,n){if(e){var r=this.getTypePolicy(e).fields;return r[t]||n&&(r[t]=Object.create(null))}},Policies.prototype.getSupertypeSet=function(e,t){var n=this.supertypeMap.get(e);return!n&&t&&this.supertypeMap.set(e,n=new Set),n},Policies.prototype.fragmentMatches=function(e,t,n,r){var i=this;if(!e.typeCondition)return!0;if(!t)return!1;var d=e.typeCondition.name.value;if(t===d)return!0;if(this.usingPossibleTypes&&this.supertypeMap.has(d))for(var h=this.getSupertypeSet(t,!0),y=[h],g=function maybeEnqueue_1(e){var t=i.getSupertypeSet(e,!1);t&&t.size&&y.indexOf(t)<0&&y.push(t)},v=!(!n||!this.fuzzySubtypes.size),b=0;b=e.lastRequestId){if(d&&"none"===n.errorPolicy)throw e.markError(new v.c({graphQLErrors:i.errors}));e.markResult(i,n,t),e.markReady()}var y={data:i.data,loading:!1,networkStatus:e.networkStatus||_.I.ready};return d&&"ignore"!==n.errorPolicy&&(y.errors=i.errors),y}),(function(t){var n=(0,v.M)(t)?t:new v.c({networkError:t});throw r>=e.lastRequestId&&e.markError(n),n}))},QueryManager.prototype.fetchQueryObservable=function(e,t,n){var r=this;void 0===n&&(n=_.I.loading);var i=this.transform(t.query).document,d=this.getVariables(i,t.variables),y=this.getQuery(e),g=y.networkStatus,v=t.fetchPolicy,b=void 0===v?"cache-first":v,w=t.errorPolicy,E=void 0===w?"none":w,S=t.returnPartialData,k=void 0!==S&&S,O=t.notifyOnNetworkStatusChange,C=void 0!==O&&O,T=t.context,A=void 0===T?{}:T;("cache-first"===b||"cache-and-network"===b||"network-only"===b||"no-cache"===b)&&C&&"number"===typeof g&&g!==n&&(0,_.O)(n)&&("cache-first"!==b&&(b="cache-and-network"),k=!0);var x=Object.assign({},t,{query:i,variables:d,fetchPolicy:b,errorPolicy:E,returnPartialData:k,notifyOnNetworkStatusChange:C,context:A}),D=function fromVariables(e){return x.variables=e,r.fetchQueryByPolicy(y,x,n)};this.fetchCancelFns.set(e,(function(e){Promise.resolve().then((function(){return I.cancel(e)}))}));var I=new h.X_(this.transform(x.query).hasClientExports?this.localState.addExportedVariables(x.query,x.variables,x.context).then(D):D(x.variables));return I.cleanup((function(){r.fetchCancelFns.delete(e);var n=t.nextFetchPolicy;n&&(t.nextFetchPolicy=void 0,t.fetchPolicy="function"===typeof n?n.call(t,t.fetchPolicy||"cache-first"):n)})),I},QueryManager.prototype.fetchQueryByPolicy=function(e,t,n){var i=this,d=t.query,y=t.variables,g=t.fetchPolicy,v=t.errorPolicy,b=t.returnPartialData,w=t.context;e.init({document:d,variables:y,networkStatus:n});var E=function readCache(){return e.getDiff(y)},S=function resultsFromCache(t,n){void 0===n&&(n=e.networkStatus||_.I.loading);var g=t.result;var v=function fromData(e){return h.y$.of((0,r.pi)({data:e,loading:(0,_.O)(n),networkStatus:n},t.complete?null:{partial:!0}))};return i.transform(d).hasForcedResolvers?i.localState.runResolvers({document:d,remoteResult:{data:g},context:w,variables:y,onlyRunForcedResolvers:!0}).then((function(e){return v(e.data)})):v(g)},k=function resultsFromLink(t){return i.getResultsFromLink(e,t,{variables:y,context:w,fetchPolicy:g,errorPolicy:v})};switch(g){default:case"cache-first":return(O=E()).complete?[S(O,e.markReady())]:b?[S(O),k(!0)]:[k(!0)];case"cache-and-network":var O;return(O=E()).complete||b?[S(O),k(!0)]:[k(!0)];case"cache-only":return[S(E(),e.markReady())];case"network-only":return[k(!0)];case"no-cache":return[k(!1)];case"standby":return[]}},QueryManager.prototype.getQuery=function(e){return e&&!this.queries.has(e)&&this.queries.set(e,new O(this.cache)),this.queries.get(e)},QueryManager.prototype.prepareContext=function(e){void 0===e&&(e={});var t=this.localState.prepareContext(e);return(0,r.pi)((0,r.pi)({},t),{clientAwareness:this.clientAwareness})},QueryManager}();function _typeof(e){return(_typeof="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function _typeof(e){return typeof e}:function _typeof(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function mergeOptions(e,t){return(0,h.oA)(e,t,t.variables&&{variables:(0,r.pi)((0,r.pi)({},e.variables),t.variables)})}var A=function(){function ApolloClient(e){var t=this;this.defaultOptions={},this.resetStoreCallbacks=[],this.clearStoreCallbacks=[];var n=e.uri,r=e.credentials,h=e.headers,g=e.cache,v=e.ssrMode,b=void 0!==v&&v,_=e.ssrForceFetchDelay,w=void 0===_?0:_,E=e.connectToDevTools,k=void 0===E?"object"===("undefined"===typeof window?"undefined":_typeof(window))&&!window.__APOLLO_CLIENT__&&!1:E,O=e.queryDeduplication,C=void 0===O||O,A=e.defaultOptions,x=e.assumeImmutableResults,D=void 0!==x&&x,I=e.resolvers,L=e.typeDefs,P=e.fragmentMatcher,N=e.name,R=e.version,M=e.link;if(M||(M=n?new y.uG({uri:n,credentials:r,headers:h}):d.i0.empty()),!g)throw new i.ej(9);this.link=M,this.cache=g,this.disableNetworkFetches=b||w>0,this.queryDeduplication=C,this.defaultOptions=A||{},this.typeDefs=L,w&&setTimeout((function(){return t.disableNetworkFetches=!1}),w),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"===("undefined"===typeof window?"undefined":_typeof(window))&&(window.__APOLLO_CLIENT__=this),this.version="3.3.16",this.localState=new S({cache:g,client:this,resolvers:I,fragmentMatcher:P}),this.queryManager=new T({cache:this.cache,link:this.link,queryDeduplication:C,ssrMode:b,clientAwareness:{name:N,version:R},localState:this.localState,assumeImmutableResults:D,onBroadcast:k?function(){t.devToolsHookCb&&t.devToolsHookCb({action:{},state:{queries:t.queryManager.getQueryStore(),mutations:t.queryManager.mutationStore||{}},dataWithOptimisticResults:t.cache.extract(!0)})}:void 0})}return ApolloClient.prototype.stop=function(){this.queryManager.stop()},ApolloClient.prototype.watchQuery=function(e){return this.defaultOptions.watchQuery&&(e=mergeOptions(this.defaultOptions.watchQuery,e)),!this.disableNetworkFetches||"network-only"!==e.fetchPolicy&&"cache-and-network"!==e.fetchPolicy||(e=(0,r.pi)((0,r.pi)({},e),{fetchPolicy:"cache-first"})),this.queryManager.watchQuery(e)},ApolloClient.prototype.query=function(e){return this.defaultOptions.query&&(e=mergeOptions(this.defaultOptions.query,e)),(0,i.kG)("cache-and-network"!==e.fetchPolicy,10),this.disableNetworkFetches&&"network-only"===e.fetchPolicy&&(e=(0,r.pi)((0,r.pi)({},e),{fetchPolicy:"cache-first"})),this.queryManager.query(e)},ApolloClient.prototype.mutate=function(e){return this.defaultOptions.mutate&&(e=mergeOptions(this.defaultOptions.mutate,e)),this.queryManager.mutate(e)},ApolloClient.prototype.subscribe=function(e){return this.queryManager.startGraphQLSubscription(e)},ApolloClient.prototype.readQuery=function(e,t){return void 0===t&&(t=!1),this.cache.readQuery(e,t)},ApolloClient.prototype.readFragment=function(e,t){return void 0===t&&(t=!1),this.cache.readFragment(e,t)},ApolloClient.prototype.writeQuery=function(e){this.cache.writeQuery(e),this.queryManager.broadcastQueries()},ApolloClient.prototype.writeFragment=function(e){this.cache.writeFragment(e),this.queryManager.broadcastQueries()},ApolloClient.prototype.__actionHookForDevTools=function(e){this.devToolsHookCb=e},ApolloClient.prototype.__requestRaw=function(e){return(0,d.ht)(this.link,e)},ApolloClient.prototype.resetStore=function(){var e=this;return Promise.resolve().then((function(){return e.queryManager.clearStore()})).then((function(){return Promise.all(e.resetStoreCallbacks.map((function(e){return e()})))})).then((function(){return e.reFetchObservableQueries()}))},ApolloClient.prototype.clearStore=function(){var e=this;return Promise.resolve().then((function(){return e.queryManager.clearStore()})).then((function(){return Promise.all(e.clearStoreCallbacks.map((function(e){return e()})))}))},ApolloClient.prototype.onResetStore=function(e){var t=this;return this.resetStoreCallbacks.push(e),function(){t.resetStoreCallbacks=t.resetStoreCallbacks.filter((function(t){return t!==e}))}},ApolloClient.prototype.onClearStore=function(e){var t=this;return this.clearStoreCallbacks.push(e),function(){t.clearStoreCallbacks=t.clearStoreCallbacks.filter((function(t){return t!==e}))}},ApolloClient.prototype.reFetchObservableQueries=function(e){return this.queryManager.reFetchObservableQueries(e)},ApolloClient.prototype.extract=function(e){return this.cache.extract(e)},ApolloClient.prototype.restore=function(e){return this.cache.restore(e)},ApolloClient.prototype.addResolvers=function(e){this.localState.addResolvers(e)},ApolloClient.prototype.setResolvers=function(e){this.localState.setResolvers(e)},ApolloClient.prototype.getResolvers=function(){return this.localState.getResolvers()},ApolloClient.prototype.setLocalStateFragmentMatcher=function(e){this.localState.setFragmentMatcher(e)},ApolloClient.prototype.setLink=function(e){this.link=this.queryManager.link=e},ApolloClient}()},6950:function(e,t,n){"use strict";n.d(t,{u:function(){return v}});var r=n(2965),i=n(394),d=n(1429),h=n(4304),y=n(3423),g=function(){function Reobserver(e,t,n,r){this.observer=e,this.options=t,this.fetch=n,this.shouldFetch=r}return Reobserver.prototype.reobserve=function(e,t){e?this.updateOptions(e):this.updatePolling();var n=this.fetch(this.options,t);return this.concast&&this.concast.removeObserver(this.observer,!0),n.addObserver(this.observer),(this.concast=n).promise},Reobserver.prototype.updateOptions=function(e){return Object.assign(this.options,(0,y.oA)(e)),this.updatePolling(),this},Reobserver.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())},Reobserver.prototype.updatePolling=function(){var e=this,t=this.pollingInfo,n=this.options.pollInterval;if(n){if((!t||t.interval!==n)&&((0,i.kG)(n,20),!1!==this.shouldFetch)){(t||(this.pollingInfo={})).interval=n;var r=function maybeFetch(){e.pollingInfo&&(e.shouldFetch&&e.shouldFetch()?e.reobserve({fetchPolicy:"network-only",nextFetchPolicy:e.options.fetchPolicy||"cache-first"},h.I.poll).then(d,d):d())},d=function poll(){var t=e.pollingInfo;t&&(clearTimeout(t.timeout),t.timeout=setTimeout(r,t.interval))};d()}}else t&&(clearTimeout(t.timeout),delete this.pollingInfo)},Reobserver}(),v=function(e){function ObservableQuery(t){var n=t.queryManager,i=t.queryInfo,d=t.options,g=e.call(this,(function(e){return g.onSubscribe(e)}))||this;g.observers=new Set,g.subscriptions=new Set,g.observer={next:function next(e){(g.lastError||g.isDifferentFromLastResult(e))&&(g.updateLastResult(e),(0,y.pM)(g.observers,"next",e))},error:function error(e){g.updateLastResult((0,r.pi)((0,r.pi)({},g.lastResult),{error:e,errors:e.graphQLErrors,networkStatus:h.I.error,loading:!1})),(0,y.pM)(g.observers,"error",g.lastError=e)}},g.isTornDown=!1,g.options=d,g.queryId=n.generateQueryId();var v=(0,y.$H)(d.query);return g.queryName=v&&v.name&&v.name.value,g.queryManager=n,g.queryInfo=i,g}return(0,r.ZT)(ObservableQuery,e),Object.defineProperty(ObservableQuery.prototype,"variables",{get:function get(){return this.options.variables},enumerable:!1,configurable:!0}),ObservableQuery.prototype.result=function(){var e=this;return new Promise((function(t,n){var r={next:function next(n){t(n),e.observers.delete(r),e.observers.size||e.queryManager.removeQuery(e.queryId),setTimeout((function(){i.unsubscribe()}),0)},error:n},i=e.subscribe(r)}))},ObservableQuery.prototype.getCurrentResult=function(e){void 0===e&&(e=!0);var t=this.lastResult,n=this.queryInfo.networkStatus||t&&t.networkStatus||h.I.ready,i=(0,r.pi)((0,r.pi)({},t),{loading:(0,h.O)(n),networkStatus:n});if(this.isTornDown)return i;var d=this.options.fetchPolicy,y=void 0===d?"cache-first":d;if("no-cache"===y||"network-only"===y)delete i.partial;else if(!i.data||!this.queryManager.transform(this.options.query).hasForcedResolvers){var g=this.queryInfo.getDiff();i.data=g.complete||this.options.returnPartialData?g.result:void 0,g.complete?(i.networkStatus!==h.I.loading||"cache-first"!==y&&"cache-only"!==y||(i.networkStatus=h.I.ready,i.loading=!1),delete i.partial):i.partial=!0}return e&&this.updateLastResult(i),i},ObservableQuery.prototype.isDifferentFromLastResult=function(e){return!(0,d.D)(this.lastResultSnapshot,e)},ObservableQuery.prototype.getLastResult=function(){return this.lastResult},ObservableQuery.prototype.getLastError=function(){return this.lastError},ObservableQuery.prototype.resetLastResults=function(){delete this.lastResult,delete this.lastResultSnapshot,delete this.lastError,this.isTornDown=!1},ObservableQuery.prototype.resetQueryStoreErrors=function(){this.queryManager.resetErrors(this.queryId)},ObservableQuery.prototype.refetch=function(e){var t={pollInterval:0},n=this.options.fetchPolicy;return"no-cache"!==n&&"cache-and-network"!==n&&(t.fetchPolicy="network-only",t.nextFetchPolicy=n||"cache-first"),e&&!(0,d.D)(this.options.variables,e)&&(t.variables=this.options.variables=(0,r.pi)((0,r.pi)({},this.options.variables),e)),this.newReobserver(!1).reobserve(t,h.I.refetch)},ObservableQuery.prototype.fetchMore=function(e){var t=this,n=(0,r.pi)((0,r.pi)({},e.query?e:(0,r.pi)((0,r.pi)((0,r.pi)({},this.options),e),{variables:(0,r.pi)((0,r.pi)({},this.options.variables),e.variables)})),{fetchPolicy:"no-cache"}),i=this.queryManager.generateQueryId();return n.notifyOnNetworkStatusChange&&(this.queryInfo.networkStatus=h.I.fetchMore,this.observe()),this.queryManager.fetchQuery(i,n,h.I.fetchMore).then((function(r){var i=r.data,d=e.updateQuery;return d?t.updateQuery((function(e){return d(e,{fetchMoreResult:i,variables:n.variables})})):t.queryManager.cache.writeQuery({query:n.query,variables:n.variables,data:i}),r})).finally((function(){t.queryManager.stopQuery(i),t.reobserve()}))},ObservableQuery.prototype.subscribeToMore=function(e){var t=this,n=this.queryManager.startGraphQLSubscription({query:e.document,variables:e.variables,context:e.context}).subscribe({next:function next(n){var r=e.updateQuery;r&&t.updateQuery((function(e,t){var i=t.variables;return r(e,{subscriptionData:n,variables:i})}))},error:function error(t){e.onError&&e.onError(t)}});return this.subscriptions.add(n),function(){t.subscriptions.delete(n)&&n.unsubscribe()}},ObservableQuery.prototype.setOptions=function(e){return this.reobserve(e)},ObservableQuery.prototype.setVariables=function(e){if((0,d.D)(this.variables,e))return this.observers.size?this.result():Promise.resolve();if(this.options.variables=e,!this.observers.size)return Promise.resolve();var t=this.options.fetchPolicy,n=void 0===t?"cache-first":t,r={fetchPolicy:n,variables:e};return"cache-first"!==n&&"no-cache"!==n&&"network-only"!==n&&(r.fetchPolicy="cache-and-network",r.nextFetchPolicy=n),this.reobserve(r,h.I.setVariables)},ObservableQuery.prototype.updateQuery=function(e){var t,n=this.queryManager,r=e(n.cache.diff({query:this.options.query,variables:this.variables,previousResult:null===(t=this.lastResult)||void 0===t?void 0:t.data,returnPartialData:!0,optimistic:!1}).result,{variables:this.variables});r&&(n.cache.writeQuery({query:this.options.query,data:r,variables:this.variables}),n.broadcastQueries())},ObservableQuery.prototype.startPolling=function(e){this.getReobserver().updateOptions({pollInterval:e})},ObservableQuery.prototype.stopPolling=function(){this.reobserver&&this.reobserver.updateOptions({pollInterval:0})},ObservableQuery.prototype.updateLastResult=function(e){var t=this.lastResult;return this.lastResult=e,this.lastResultSnapshot=this.queryManager.assumeImmutableResults?e:(0,y.Xh)(e),(0,y.Of)(e.errors)||delete this.lastError,t},ObservableQuery.prototype.onSubscribe=function(e){var t=this;if(e===this.observer)return function(){};try{var n=e._subscription._observer;n&&!n.error&&(n.error=defaultSubscriptionObserverErrorCallback)}catch(i){}var r=!this.observers.size;return this.observers.add(e),this.lastError?e.error&&e.error(this.lastError):this.lastResult&&e.next&&e.next(this.lastResult),r&&this.reobserve().catch((function(e){})),function(){t.observers.delete(e)&&!t.observers.size&&t.tearDownQuery()}},ObservableQuery.prototype.getReobserver=function(){return this.reobserver||(this.reobserver=this.newReobserver(!0))},ObservableQuery.prototype.newReobserver=function(e){var t=this,n=this.queryManager,i=this.queryId;return n.setObservableQuery(this),new g(this.observer,e?this.options:(0,r.pi)({},this.options),(function(e,r){return n.setObservableQuery(t),n.fetchQueryObservable(i,e,r)}),!n.ssrMode&&function(){return!(0,h.O)(t.queryInfo.networkStatus)})},ObservableQuery.prototype.reobserve=function(e,t){return this.isTornDown=!1,this.getReobserver().reobserve(e,t)},ObservableQuery.prototype.observe=function(){this.observer.next(this.getCurrentResult(!1))},ObservableQuery.prototype.hasObservers=function(){return this.observers.size>0},ObservableQuery.prototype.tearDownQuery=function(){this.isTornDown||(this.reobserver&&(this.reobserver.stop(),delete this.reobserver),this.subscriptions.forEach((function(e){return e.unsubscribe()})),this.subscriptions.clear(),this.queryManager.stopQuery(this.queryId),this.observers.clear(),this.isTornDown=!0)},ObservableQuery}(y.y$);function defaultSubscriptionObserverErrorCallback(e){}(0,y.Dy)(v)},361:function(e,t,n){"use strict";n.d(t,{fe:function(){return r.f},JH:function(){return r.J},Ie:function(){return i.I},h4:function(){return h.h4},ApolloLink:function(){return g.i0},from:function(){return g.Dp},HttpLink:function(){return v.uG},Ps:function(){return _.ZP}});var r=n(639),i=(n(6950),n(4304)),d=n(2631);n.o(d,"ApolloLink")&&n.d(t,{ApolloLink:function(){return d.ApolloLink}}),n.o(d,"HttpLink")&&n.d(t,{HttpLink:function(){return d.HttpLink}}),n.o(d,"from")&&n.d(t,{from:function(){return d.from}});n(3344);var h=n(4662),y=n(9178);n.o(y,"ApolloLink")&&n.d(t,{ApolloLink:function(){return y.ApolloLink}}),n.o(y,"HttpLink")&&n.d(t,{HttpLink:function(){return y.HttpLink}}),n.o(y,"from")&&n.d(t,{from:function(){return y.from}});var g=n(159);n.o(g,"HttpLink")&&n.d(t,{HttpLink:function(){return g.HttpLink}});var v=n(8845),b=(n(5766),n(3423),n(394)),_=n(9756);(0,b.U6)("log");_.ZP.resetCaches,_.ZP.disableFragmentWarnings,_.ZP.enableExperimentalFragmentVariables,_.ZP.disableExperimentalFragmentVariables},4304:function(e,t,n){"use strict";var r;function isNetworkRequestInFlight(e){return!!e&&e<7}n.d(t,{I:function(){return r},O:function(){return isNetworkRequestInFlight}}),function(e){e[e.loading=1]="loading",e[e.setVariables=2]="setVariables",e[e.fetchMore=3]="fetchMore",e[e.refetch=4]="refetch",e[e.poll=6]="poll",e[e.ready=7]="ready",e[e.error=8]="error"}(r||(r={}))},2631:function(){},3344:function(e,t,n){"use strict";n.d(t,{M:function(){return isApolloError},c:function(){return d}});var r=n(2965),i=n(3423);function isApolloError(e){return e.hasOwnProperty("graphQLErrors")}var d=function(e){function ApolloError(t){var n=t.graphQLErrors,r=t.networkError,d=t.errorMessage,h=t.extraInfo,y=e.call(this,d)||this;return y.graphQLErrors=n||[],y.networkError=r||null,y.message=d||function generateErrorMessage(e){var t="";return(0,i.Of)(e.graphQLErrors)&&e.graphQLErrors.forEach((function(e){var n=e?e.message:"Error message not found.";t+=n+"\n"})),e.networkError&&(t+=e.networkError.message+"\n"),t=t.replace(/\n$/,"")}(y),y.extraInfo=h,y.__proto__=ApolloError.prototype,y}return(0,r.ZT)(ApolloError,e),ApolloError}(Error)},4747:function(e,t,n){"use strict";var r=n(361);n.o(r,"ApolloLink")&&n.d(t,{ApolloLink:function(){return r.ApolloLink}}),n.o(r,"from")&&n.d(t,{from:function(){return r.from}});var i=n(3165);n.o(i,"ApolloLink")&&n.d(t,{ApolloLink:function(){return i.ApolloLink}}),n.o(i,"from")&&n.d(t,{from:function(){return i.from}})},678:function(e,t,n){"use strict";n.d(t,{i:function(){return y}});var r=n(2965),i=n(394),d=n(3423),h=n(5766);function passthrough(e,t){return t?t(e):d.y$.of()}function toLink(e){return"function"===typeof e?new y(e):e}function isTerminating(e){return e.request.length<=1}!function(e){function LinkError(t,n){var r=e.call(this,t)||this;return r.link=n,r}(0,r.ZT)(LinkError,e)}(Error);var y=function(){function ApolloLink(e){e&&(this.request=e)}return ApolloLink.empty=function(){return new ApolloLink((function(){return d.y$.of()}))},ApolloLink.from=function(e){return 0===e.length?ApolloLink.empty():e.map(toLink).reduce((function(e,t){return e.concat(t)}))},ApolloLink.split=function(e,t,n){var r=toLink(t),i=toLink(n||new ApolloLink(passthrough));return isTerminating(r)&&isTerminating(i)?new ApolloLink((function(t){return e(t)?r.request(t)||d.y$.of():i.request(t)||d.y$.of()})):new ApolloLink((function(t,n){return e(t)?r.request(t,n)||d.y$.of():i.request(t,n)||d.y$.of()}))},ApolloLink.execute=function(e,t){return e.request((0,h.zi)(t.context,(0,h.DQ)((0,h.Ak)(t))))||d.y$.of()},ApolloLink.concat=function(e,t){var n=toLink(e);if(isTerminating(n))return n;var r=toLink(t);return isTerminating(r)?new ApolloLink((function(e){return n.request(e,(function(e){return r.request(e)||d.y$.of()}))||d.y$.of()})):new ApolloLink((function(e,t){return n.request(e,(function(e){return r.request(e,t)||d.y$.of()}))||d.y$.of()}))},ApolloLink.prototype.split=function(e,t,n){return this.concat(ApolloLink.split(e,t,n||new ApolloLink(passthrough)))},ApolloLink.prototype.concat=function(e){return ApolloLink.concat(this,e)},ApolloLink.prototype.request=function(e,t){throw new i.ej(21)},ApolloLink.prototype.onError=function(e,t){if(t&&t.error)return t.error(e),!1;throw e},ApolloLink.prototype.setOnError=function(e){return this.onError=e,this},ApolloLink}()},1648:function(e,t,n){"use strict";n(678).i.concat},3960:function(e,t,n){"use strict";n(678).i.empty},7128:function(e,t,n){"use strict";n.d(t,{h:function(){return r}});var r=n(678).i.execute},244:function(e,t,n){"use strict";n.d(t,{D:function(){return r}});var r=n(678).i.from},159:function(e,t,n){"use strict";n.d(t,{Dp:function(){return r.D},ht:function(){return i.h},i0:function(){return d.i}});n(3960);var r=n(244),i=(n(3954),n(1648),n(7128)),d=n(678),h=n(549);n.o(h,"HttpLink")&&n.d(t,{HttpLink:function(){return h.HttpLink}})},3954:function(e,t,n){"use strict";n(678).i.split},549:function(){},8845:function(e,t,n){"use strict";n.d(t,{uG:function(){return k}});var r=n(5766),i=Object.prototype.hasOwnProperty;var d=n(394),h=function serializeFetchParameter(e,t){var n;try{n=JSON.stringify(e)}catch(i){var r=new d.ej(23);throw r.parseError=i,r}return n},y=n(2965),g=n(4893),v=n(2464);function print(e){return(0,g.Vn)(e,{leave:b})}var b={Name:function Name(e){return e.value},Variable:function Variable(e){return"$"+e.name},Document:function Document(e){return join(e.definitions,"\n\n")+"\n"},OperationDefinition:function OperationDefinition(e){var t=e.operation,n=e.name,r=wrap("(",join(e.variableDefinitions,", "),")"),i=join(e.directives," "),d=e.selectionSet;return n||i||r||"query"!==t?join([t,join([n,r]),i,d]," "):d},VariableDefinition:function VariableDefinition(e){var t=e.variable,n=e.type,r=e.defaultValue,i=e.directives;return t+": "+n+wrap(" = ",r)+wrap(" ",join(i," "))},SelectionSet:function SelectionSet(e){return block(e.selections)},Field:function Field(e){var t=e.alias,n=e.name,r=e.arguments,i=e.directives,d=e.selectionSet,h=wrap("",t,": ")+n,y=h+wrap("(",join(r,", "),")");return y.length>80&&(y=h+wrap("(\n",indent(join(r,"\n")),"\n)")),join([y,join(i," "),d]," ")},Argument:function Argument(e){return e.name+": "+e.value},FragmentSpread:function FragmentSpread(e){return"..."+e.name+wrap(" ",join(e.directives," "))},InlineFragment:function InlineFragment(e){var t=e.typeCondition,n=e.directives,r=e.selectionSet;return join(["...",wrap("on ",t),join(n," "),r]," ")},FragmentDefinition:function FragmentDefinition(e){var t=e.name,n=e.typeCondition,r=e.variableDefinitions,i=e.directives,d=e.selectionSet;return"fragment ".concat(t).concat(wrap("(",join(r,", "),")")," ")+"on ".concat(n," ").concat(wrap("",join(i," ")," "))+d},IntValue:function IntValue(e){return e.value},FloatValue:function FloatValue(e){return e.value},StringValue:function StringValue(e,t){var n=e.value;return e.block?(0,v.LZ)(n,"description"===t?"":" "):JSON.stringify(n)},BooleanValue:function BooleanValue(e){return e.value?"true":"false"},NullValue:function NullValue(){return"null"},EnumValue:function EnumValue(e){return e.value},ListValue:function ListValue(e){return"["+join(e.values,", ")+"]"},ObjectValue:function ObjectValue(e){return"{"+join(e.fields,", ")+"}"},ObjectField:function ObjectField(e){return e.name+": "+e.value},Directive:function Directive(e){return"@"+e.name+wrap("(",join(e.arguments,", "),")")},NamedType:function NamedType(e){return e.name},ListType:function ListType(e){return"["+e.type+"]"},NonNullType:function NonNullType(e){return e.type+"!"},SchemaDefinition:addDescription((function(e){var t=e.directives,n=e.operationTypes;return join(["schema",join(t," "),block(n)]," ")})),OperationTypeDefinition:function OperationTypeDefinition(e){return e.operation+": "+e.type},ScalarTypeDefinition:addDescription((function(e){return join(["scalar",e.name,join(e.directives," ")]," ")})),ObjectTypeDefinition:addDescription((function(e){var t=e.name,n=e.interfaces,r=e.directives,i=e.fields;return join(["type",t,wrap("implements ",join(n," & ")),join(r," "),block(i)]," ")})),FieldDefinition:addDescription((function(e){var t=e.name,n=e.arguments,r=e.type,i=e.directives;return t+(hasMultilineItems(n)?wrap("(\n",indent(join(n,"\n")),"\n)"):wrap("(",join(n,", "),")"))+": "+r+wrap(" ",join(i," "))})),InputValueDefinition:addDescription((function(e){var t=e.name,n=e.type,r=e.defaultValue,i=e.directives;return join([t+": "+n,wrap("= ",r),join(i," ")]," ")})),InterfaceTypeDefinition:addDescription((function(e){var t=e.name,n=e.interfaces,r=e.directives,i=e.fields;return join(["interface",t,wrap("implements ",join(n," & ")),join(r," "),block(i)]," ")})),UnionTypeDefinition:addDescription((function(e){var t=e.name,n=e.directives,r=e.types;return join(["union",t,join(n," "),r&&0!==r.length?"= "+join(r," | "):""]," ")})),EnumTypeDefinition:addDescription((function(e){var t=e.name,n=e.directives,r=e.values;return join(["enum",t,join(n," "),block(r)]," ")})),EnumValueDefinition:addDescription((function(e){return join([e.name,join(e.directives," ")]," ")})),InputObjectTypeDefinition:addDescription((function(e){var t=e.name,n=e.directives,r=e.fields;return join(["input",t,join(n," "),block(r)]," ")})),DirectiveDefinition:addDescription((function(e){var t=e.name,n=e.arguments,r=e.repeatable,i=e.locations;return"directive @"+t+(hasMultilineItems(n)?wrap("(\n",indent(join(n,"\n")),"\n)"):wrap("(",join(n,", "),")"))+(r?" repeatable":"")+" on "+join(i," | ")})),SchemaExtension:function SchemaExtension(e){var t=e.directives,n=e.operationTypes;return join(["extend schema",join(t," "),block(n)]," ")},ScalarTypeExtension:function ScalarTypeExtension(e){return join(["extend scalar",e.name,join(e.directives," ")]," ")},ObjectTypeExtension:function ObjectTypeExtension(e){var t=e.name,n=e.interfaces,r=e.directives,i=e.fields;return join(["extend type",t,wrap("implements ",join(n," & ")),join(r," "),block(i)]," ")},InterfaceTypeExtension:function InterfaceTypeExtension(e){var t=e.name,n=e.interfaces,r=e.directives,i=e.fields;return join(["extend interface",t,wrap("implements ",join(n," & ")),join(r," "),block(i)]," ")},UnionTypeExtension:function UnionTypeExtension(e){var t=e.name,n=e.directives,r=e.types;return join(["extend union",t,join(n," "),r&&0!==r.length?"= "+join(r," | "):""]," ")},EnumTypeExtension:function EnumTypeExtension(e){var t=e.name,n=e.directives,r=e.values;return join(["extend enum",t,join(n," "),block(r)]," ")},InputObjectTypeExtension:function InputObjectTypeExtension(e){var t=e.name,n=e.directives,r=e.fields;return join(["extend input",t,join(n," "),block(r)]," ")}};function addDescription(e){return function(t){return join([t.description,e(t)],"\n")}}function join(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return null!==(t=null===e||void 0===e?void 0:e.filter((function(e){return e})).join(n))&&void 0!==t?t:""}function block(e){return wrap("{\n",indent(join(e,"\n")),"\n}")}function wrap(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return null!=t&&""!==t?e+t+n:""}function indent(e){return wrap(" ",e.replace(/\n/g,"\n "))}function isMultiline(e){return-1!==e.indexOf("\n")}function hasMultilineItems(e){return null!=e&&e.some(isMultiline)}var _={http:{includeQuery:!0,includeExtensions:!1},headers:{accept:"*/*","content-type":"application/json"},options:{method:"POST"}},w=n(159),E=n(3423);var S=function createHttpLink(e){void 0===e&&(e={});var t=e.uri,n=void 0===t?"/graphql":t,v=e.fetch,b=e.includeExtensions,S=e.useGETForQueries,k=e.includeUnusedVariables,O=void 0!==k&&k,C=(0,y._T)(e,["uri","fetch","includeExtensions","useGETForQueries","includeUnusedVariables"]);!function checkFetcher(e){if(!e&&"undefined"===typeof fetch)throw new d.ej(22)}(v),v||(v=fetch);var T={http:{includeExtensions:b},options:C.fetchOptions,credentials:C.credentials,headers:C.headers};return new w.i0((function(e){var t=function selectURI(e,t){return e.getContext().uri||("function"===typeof t?t(e):t||"/graphql")}(e,n),d=e.getContext(),b={};if(d.clientAwareness){var w=d.clientAwareness,k=w.name,C=w.version;k&&(b["apollographql-client-name"]=k),C&&(b["apollographql-client-version"]=C)}var A,x=(0,y.pi)((0,y.pi)({},b),d.headers),D={http:d.http,options:d.fetchOptions,credentials:d.credentials,headers:x},I=function selectHttpOptionsAndBody(e,t){for(var n=[],r=2;r=300&&(0,r.PW)(t,n,"Response not successful: Received status code "+t.status),Array.isArray(n)||i.call(n,"data")||i.call(n,"errors")||(0,r.PW)(t,n,"Server response was missing for query '"+(Array.isArray(e)?e.map((function(e){return e.operationName})):e.operationName)+"'."),n}))}}(e)).then((function(e){return n.next(e),n.complete(),e})).catch((function(e){"AbortError"!==e.name&&(e.result&&e.result.errors&&e.result.data&&n.next(e.result),n.error(e))})),function(){A&&A.abort()}}))}))},k=function(e){function HttpLink(t){void 0===t&&(t={});var n=e.call(this,S(t).request)||this;return n.options=t,n}return(0,y.ZT)(HttpLink,e),HttpLink}(w.i0)},5766:function(e,t,n){"use strict";n.d(t,{zi:function(){return createOperation},Qc:function(){return fromError},PW:function(){return d},DQ:function(){return transformOperation},Ak:function(){return validateOperation}});var r=n(3423);function fromError(e){return new r.y$((function(t){t.error(e)}))}var i=n(394);var d=function throwServerError(e,t,n){var r=new Error(n);throw r.name="ServerError",r.response=e,r.statusCode=e.status,r.result=t,r};function validateOperation(e){for(var t=["query","operationName","variables","extensions","context"],n=0,r=Object.keys(e);n0&&(this.previousOptions.subscription!==this.getOptions().subscription||!(0,d.D)(this.previousOptions.variables,this.getOptions().variables)||this.previousOptions.skip!==this.getOptions().skip)&&(this.cleanup(),t=this.getLoadingResult()),this.initialize(this.getOptions()),this.startSubscription(),this.previousOptions=this.getOptions(),(0,i.pi)((0,i.pi)({},t),{variables:this.getOptions().variables})},SubscriptionData.prototype.afterExecute=function(){this.isMounted=!0},SubscriptionData.prototype.cleanup=function(){this.endSubscription(),delete this.currentObservable.query},SubscriptionData.prototype.initialize=function(e){this.currentObservable.query||!0===this.getOptions().skip||(this.currentObservable.query=this.refreshClient().client.subscribe({query:e.subscription,variables:e.variables,fetchPolicy:e.fetchPolicy,context:e.context}))},SubscriptionData.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)}))},SubscriptionData.prototype.getLoadingResult=function(){return{loading:!0,error:void 0,data:void 0}},SubscriptionData.prototype.updateResult=function(e){this.isMounted&&this.setResult(e)},SubscriptionData.prototype.updateCurrentData=function(e){var t=this.getOptions().onSubscriptionData;this.updateResult({data:e.data,loading:!1,error:void 0}),t&&t({client:this.refreshClient().client,subscriptionData:e})},SubscriptionData.prototype.updateError=function(e){this.updateResult({error:e,loading:!1})},SubscriptionData.prototype.completeSubscription=function(){var e=this;Promise.resolve().then((function(){var t=e.getOptions().onSubscriptionComplete;t&&t(),e.endSubscription()}))},SubscriptionData.prototype.endSubscription=function(){this.currentObservable.subscription&&(this.currentObservable.subscription.unsubscribe(),delete this.currentObservable.subscription)}}(y),n(3344)),v=n(361);(function(e){function MutationData(t){var n=t.options,r=t.context,i=t.result,d=t.setResult,y=e.call(this,n,r)||this;return y.runMutation=function(e){void 0===e&&(e={}),y.onMutationStart();var t=y.generateNewMutationId();return y.mutate(e).then((function(e){return y.onMutationCompleted(e,t),e})).catch((function(e){var n=y.getOptions().onError;if(y.onMutationError(e,t),n)return n(e),{data:void 0,errors:e};throw e}))},y.verifyDocumentType(n.mutation,h.n_.Mutation),y.result=i,y.setResult=d,y.mostRecentMutationId=0,y}(0,i.ZT)(MutationData,e),MutationData.prototype.execute=function(e){return this.isMounted=!0,this.verifyDocumentType(this.getOptions().mutation,h.n_.Mutation),[this.runMutation,(0,i.pi)((0,i.pi)({},e),{client:this.refreshClient().client})]},MutationData.prototype.afterExecute=function(){return this.isMounted=!0,this.unmount.bind(this)},MutationData.prototype.cleanup=function(){},MutationData.prototype.mutate=function(e){return this.refreshClient().client.mutate((0,v.JH)(this.getOptions(),e))},MutationData.prototype.onMutationStart=function(){this.result.loading||this.getOptions().ignoreResults||this.updateResult({loading:!0,error:void 0,data:void 0,called:!0})},MutationData.prototype.onMutationCompleted=function(e,t){var n=this.getOptions(),r=n.onCompleted,i=n.ignoreResults,d=e.data,h=e.errors,y=h&&h.length>0?new g.c({graphQLErrors:h}):void 0;this.isMostRecentMutation(t)&&!i&&this.updateResult({called:!0,loading:!1,data:d,error:y}),function callOncomplete(){r&&r(d)}()},MutationData.prototype.onMutationError=function(e,t){this.isMostRecentMutation(t)&&this.updateResult({loading:!1,error:e,data:void 0,called:!0})},MutationData.prototype.generateNewMutationId=function(){return++this.mostRecentMutationId},MutationData.prototype.isMostRecentMutation=function(e){return this.mostRecentMutationId===e},MutationData.prototype.updateResult=function(e){if(this.isMounted&&(!this.previousResult||!(0,d.D)(this.previousResult,e)))return this.setResult(e),this.previousResult=e,e}})(y),function(e){function QueryData(t){var n=t.options,r=t.context,d=t.onNewData,h=e.call(this,n,r)||this;return h.runLazy=!1,h.previous=Object.create(null),h.runLazyQuery=function(e){h.cleanup(),h.runLazy=!0,h.lazyOptions=e,h.onNewData()},h.getQueryResult=function(){var e=h.observableQueryFields(),t=h.getOptions();if(t.skip)e=(0,i.pi)((0,i.pi)({},e),{data:void 0,error:void 0,loading:!1,networkStatus:v.Ie.ready,called:!0});else if(h.currentObservable){var n=h.currentObservable.getCurrentResult(),r=n.data,d=n.loading,y=n.partial,b=n.networkStatus,_=n.errors,w=n.error;if(_&&_.length>0&&(w=new g.c({graphQLErrors:_})),e=(0,i.pi)((0,i.pi)({},e),{data:r,loading:d,networkStatus:b,error:w,called:!0}),d);else if(w)Object.assign(e,{data:(h.currentObservable.getLastResult()||{}).data});else{var E=h.currentObservable.options.fetchPolicy;if(t.partialRefetch&&y&&(!r||0===Object.keys(r).length)&&"cache-only"!==E)return Object.assign(e,{loading:!0,networkStatus:v.Ie.loading}),e.refetch(),e}}e.client=h.client,h.setOptions(t,!0);var S=h.previous.result;return h.previous.loading=S&&S.loading||!1,e.previousData=S&&(S.data||S.previousData),h.previous.result=e,h.currentObservable&&h.currentObservable.resetQueryStoreErrors(),e},h.obsRefetch=function(e){var t;return null===(t=h.currentObservable)||void 0===t?void 0:t.refetch(e)},h.obsFetchMore=function(e){return h.currentObservable.fetchMore(e)},h.obsUpdateQuery=function(e){return h.currentObservable.updateQuery(e)},h.obsStartPolling=function(e){var t;null===(t=h.currentObservable)||void 0===t||t.startPolling(e)},h.obsStopPolling=function(){var e;null===(e=h.currentObservable)||void 0===e||e.stopPolling()},h.obsSubscribeToMore=function(e){return h.currentObservable.subscribeToMore(e)},h.onNewData=d,h}(0,i.ZT)(QueryData,e),QueryData.prototype.execute=function(){this.refreshClient();var e=this.getOptions(),t=e.skip,n=e.query;return(t||n!==this.previous.query)&&(this.removeQuerySubscription(),this.removeObservable(!t),this.previous.query=n),this.updateObservableQuery(),this.isMounted&&this.startQuerySubscription(),this.getExecuteSsrResult()||this.getExecuteResult()},QueryData.prototype.executeLazy=function(){return this.runLazy?[this.runLazyQuery,this.execute()]:[this.runLazyQuery,{loading:!1,networkStatus:v.Ie.ready,called:!1,data:void 0}]},QueryData.prototype.fetchData=function(){var e=this,t=this.getOptions();return!t.skip&&!1!==t.ssr&&new Promise((function(t){return e.startQuerySubscription(t)}))},QueryData.prototype.afterExecute=function(e){var t=(void 0===e?{}:e).lazy,n=void 0!==t&&t;return this.isMounted=!0,n&&!this.runLazy||this.handleErrorOrCompleted(),this.previousOptions=this.getOptions(),this.unmount.bind(this)},QueryData.prototype.cleanup=function(){this.removeQuerySubscription(),this.removeObservable(!0),delete this.previous.result},QueryData.prototype.getOptions=function(){var t=e.prototype.getOptions.call(this);return this.lazyOptions&&(t.variables=(0,i.pi)((0,i.pi)({},t.variables),this.lazyOptions.variables),t.context=(0,i.pi)((0,i.pi)({},t.context),this.lazyOptions.context)),this.runLazy&&delete t.skip,t},QueryData.prototype.ssrInitiated=function(){return this.context&&this.context.renderPromises},QueryData.prototype.getExecuteResult=function(){var e=this.getQueryResult();return this.startQuerySubscription(),e},QueryData.prototype.getExecuteSsrResult=function(){var e=this.getOptions(),t=e.ssr,n=e.skip,r=!1===t,d=this.refreshClient().client.disableNetworkFetches,h=(0,i.pi)({loading:!0,networkStatus:v.Ie.loading,called:!0,data:void 0,stale:!1,client:this.client},this.observableQueryFields());if(r&&(this.ssrInitiated()||d))return this.previous.result=h,h;if(this.ssrInitiated()){var y=this.getQueryResult()||h;return y.loading&&!n&&this.context.renderPromises.addQueryPromise(this,(function(){return null})),y}},QueryData.prototype.prepareObservableQueryOptions=function(){var e=this.getOptions();this.verifyDocumentType(e.query,h.n_.Query);var t=e.displayName||"Query";return!this.ssrInitiated()||"network-only"!==e.fetchPolicy&&"cache-and-network"!==e.fetchPolicy||(e.fetchPolicy="cache-first"),(0,i.pi)((0,i.pi)({},e),{displayName:t,context:e.context})},QueryData.prototype.initializeObservableQuery=function(){if(this.ssrInitiated()&&(this.currentObservable=this.context.renderPromises.getSSRObservable(this.getOptions())),!this.currentObservable){var e=this.prepareObservableQueryOptions();this.previous.observableQueryOptions=(0,i.pi)((0,i.pi)({},e),{children:null}),this.currentObservable=this.refreshClient().client.watchQuery((0,i.pi)({},e)),this.ssrInitiated()&&this.context.renderPromises.registerSSRObservable(this.currentObservable,e)}},QueryData.prototype.updateObservableQuery=function(){if(this.currentObservable){if(!this.getOptions().skip){var e=(0,i.pi)((0,i.pi)({},this.prepareObservableQueryOptions()),{children:null});(0,d.D)(e,this.previous.observableQueryOptions)||(this.previous.observableQueryOptions=e,this.currentObservable.setOptions(e).catch((function(){})))}}else this.initializeObservableQuery()},QueryData.prototype.startQuerySubscription=function(e){var t=this;void 0===e&&(e=this.onNewData),this.currentSubscription||this.getOptions().skip||(this.currentSubscription=this.currentObservable.subscribe({next:function next(n){var r=n.loading,i=n.networkStatus,h=n.data,y=t.previous.result;y&&y.loading===r&&y.networkStatus===i&&(0,d.D)(y.data,h)||e()},error:function error(n){if(t.resubscribeToQuery(),!n.hasOwnProperty("graphQLErrors"))throw n;var r=t.previous.result;(r&&r.loading||!(0,d.D)(n,t.previous.error))&&(t.previous.error=n,e())}}))},QueryData.prototype.resubscribeToQuery=function(){this.removeQuerySubscription();var e=this.currentObservable;if(e){var t=e.getLastError(),n=e.getLastResult();e.resetLastResults(),this.startQuerySubscription(),Object.assign(e,{lastError:t,lastResult:n})}},QueryData.prototype.handleErrorOrCompleted=function(){if(this.currentObservable&&this.previous.result){var e=this.previous.result,t=e.data,n=e.loading,r=e.error;if(!n){var i=this.getOptions(),h=i.query,y=i.variables,g=i.onCompleted,v=i.onError,b=i.skip;if(this.previousOptions&&!this.previous.loading&&(0,d.D)(this.previousOptions.query,h)&&(0,d.D)(this.previousOptions.variables,y))return;!g||r||b?v&&r&&v(r):g(t)}}},QueryData.prototype.removeQuerySubscription=function(){this.currentSubscription&&(this.currentSubscription.unsubscribe(),delete this.currentSubscription)},QueryData.prototype.removeObservable=function(e){this.currentObservable&&(this.currentObservable.tearDownQuery(),e&&delete this.currentObservable)},QueryData.prototype.observableQueryFields=function(){var e;return{variables:null===(e=this.currentObservable)||void 0===e?void 0:e.variables,refetch:this.obsRefetch,fetchMore:this.obsFetchMore,updateQuery:this.obsUpdateQuery,startPolling:this.obsStartPolling,stopPolling:this.obsStopPolling,subscribeToMore:this.obsSubscribeToMore}}}(y)},3165:function(e,t,n){"use strict";n(5812),n(6550),n(8062);var r=n(1305);n.o(r,"ApolloLink")&&n.d(t,{ApolloLink:function(){return r.ApolloLink}}),n.o(r,"from")&&n.d(t,{from:function(){return r.from}})},8062:function(e,t,n){"use strict";n.d(t,{n_:function(){return r},mw:function(){return operationName},E2:function(){return parser}});var r,i=n(394);!function(e){e[e.Query=0]="Query",e[e.Mutation=1]="Mutation",e[e.Subscription=2]="Subscription"}(r||(r={}));var d=new Map;function operationName(e){var t;switch(e){case r.Query:t="Query";break;case r.Mutation:t="Mutation";break;case r.Subscription:t="Subscription"}return t}function parser(e){var t,n,h=d.get(e);if(h)return h;(0,i.kG)(!!e&&!!e.kind,34);var y=e.definitions.filter((function(e){return"FragmentDefinition"===e.kind})),g=e.definitions.filter((function(e){return"OperationDefinition"===e.kind&&"query"===e.operation})),v=e.definitions.filter((function(e){return"OperationDefinition"===e.kind&&"mutation"===e.operation})),b=e.definitions.filter((function(e){return"OperationDefinition"===e.kind&&"subscription"===e.operation}));(0,i.kG)(!y.length||g.length||v.length||b.length,35),(0,i.kG)(g.length+v.length+b.length<=1,36),n=g.length?r.Query:r.Mutation,g.length||v.length||(n=r.Subscription);var _=g.length?g:v.length?v:b;(0,i.kG)(1===_.length,37);var w=_[0];t=w.variableDefinitions||[];var E={name:w.name&&"Name"===w.name.kind?w.name.value:"data",type:n,variables:t};return d.set(e,E),E}},1305:function(){},3423:function(e,t,n){"use strict";n.d(t,{X_:function(){return A},w0:function(){return E},y$:function(){return k()},Gw:function(){return addTypenameToDocument},NC:function(){return argumentsObjectFromField},sz:function(){return asyncMap},aL:function(){return buildQueryFromSelectionSet},mr:function(){return x},Xh:function(){return cloneDeep},oA:function(){return compact},F:function(){return createFragmentMap},Dy:function(){return fixObservableSubclass},O4:function(){return getDefaultValues},kU:function(){return getFragmentDefinitions},hi:function(){return getFragmentFromSelection},Yk:function(){return getFragmentQueryDocument},p$:function(){return getMainDefinition},$H:function(){return getOperationDefinition},rY:function(){return getOperationName},iW:function(){return getQueryDefinition},PT:function(){return getStoreKeyName},qw:function(){return getTypenameFromResult},d2:function(){return graphQLResultHasError},mj:function(){return hasClientExports},FS:function(){return hasDirectives},My:function(){return storeUtils_isField},Ao:function(){return isInlineFragment},Of:function(){return isNonEmptyArray},hh:function(){return isReference},pM:function(){return iterateObserversSafely},kQ:function(){return makeReference},Jv:function(){return maybeDeepFreeze},Ee:function(){return mergeDeep_mergeDeep},bw:function(){return mergeDeepArray},ob:function(){return removeClientSetsFromDocument},Fo:function(){return removeConnectionDirectiveFromDocument},u2:function(){return resultKeyNameFromField},LZ:function(){return shouldInclude},vf:function(){return storeKeyNameFromField}});var r=n(4893),i=n(394);function shouldInclude(e,t){var n=e.directives;return!n||!n.length||function getInclusionDirectives(e){var t=[];e&&e.length&&e.forEach((function(e){if(function isInclusionDirective(e){var t=e.name.value;return"skip"===t||"include"===t}(e)){var n=e.arguments;e.name.value;(0,i.kG)(n&&1===n.length,39);var r=n[0];(0,i.kG)(r.name&&"if"===r.name.value,40);var d=r.value;(0,i.kG)(d&&("Variable"===d.kind||"BooleanValue"===d.kind),41),t.push({directive:e,ifArgument:r})}}));return t}(n).every((function(e){var n=e.directive,r=e.ifArgument,d=!1;return"Variable"===r.value.kind?(d=t&&t[r.value.name.value],(0,i.kG)(void 0!==d,38)):d=r.value.value,"skip"===n.name.value?!d:d}))}function hasDirectives(e,t){return function getDirectiveNames(e){var t=[];return(0,r.Vn)(e,{Directive:function Directive(e){t.push(e.name.value)}}),t}(t).some((function(t){return e.indexOf(t)>-1}))}function hasClientExports(e){return e&&hasDirectives(["client"],e)&&hasDirectives(["export"],e)}var d=n(2965);function getFragmentQueryDocument(e,t){var n=t,r=[];return e.definitions.forEach((function(e){if("OperationDefinition"===e.kind)throw new i.ej(42);"FragmentDefinition"===e.kind&&r.push(e)})),"undefined"===typeof n&&((0,i.kG)(1===r.length,43),n=r[0].name.value),(0,d.pi)((0,d.pi)({},e),{definitions:(0,d.pr)([{kind:"OperationDefinition",operation:"query",selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:n}}]}}],e.definitions)})}function createFragmentMap(e){void 0===e&&(e=[]);var t={};return e.forEach((function(e){t[e.name.value]=e})),t}function getFragmentFromSelection(e,t){switch(e.kind){case"InlineFragment":return e;case"FragmentSpread":var n=t&&t[e.name.value];return(0,i.kG)(n,44),n;default:return null}}var h=n(7301),y=n.n(h);function _typeof(e){return(_typeof="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function _typeof(e){return typeof e}:function _typeof(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function makeReference(e){return{__ref:String(e)}}function isReference(e){return Boolean(e&&"object"===_typeof(e)&&"string"===typeof e.__ref)}function valueToObjectRepresentation(e,t,n,r){if(function isIntValue(e){return"IntValue"===e.kind}(n)||function isFloatValue(e){return"FloatValue"===e.kind}(n))e[t.value]=Number(n.value);else if(function isBooleanValue(e){return"BooleanValue"===e.kind}(n)||function isStringValue(e){return"StringValue"===e.kind}(n))e[t.value]=n.value;else if(function isObjectValue(e){return"ObjectValue"===e.kind}(n)){var d={};n.fields.map((function(e){return valueToObjectRepresentation(d,e.name,e.value,r)})),e[t.value]=d}else if(function isVariable(e){return"Variable"===e.kind}(n)){var h=(r||{})[n.name.value];e[t.value]=h}else if(function isListValue(e){return"ListValue"===e.kind}(n))e[t.value]=n.values.map((function(e){var n={};return valueToObjectRepresentation(n,t,e,r),n[t.value]}));else if(function isEnumValue(e){return"EnumValue"===e.kind}(n))e[t.value]=n.value;else{if(!function isNullValue(e){return"NullValue"===e.kind}(n))throw new i.ej(53);e[t.value]=null}}function storeKeyNameFromField(e,t){var n=null;e.directives&&(n={},e.directives.forEach((function(e){n[e.name.value]={},e.arguments&&e.arguments.forEach((function(r){var i=r.name,d=r.value;return valueToObjectRepresentation(n[e.name.value],i,d,t)}))})));var r=null;return e.arguments&&e.arguments.length&&(r={},e.arguments.forEach((function(e){var n=e.name,i=e.value;return valueToObjectRepresentation(r,n,i,t)}))),getStoreKeyName(e.name.value,r,n)}var g=["connection","include","skip","client","rest","export"];function getStoreKeyName(e,t,n){if(t&&n&&n.connection&&n.connection.key){if(n.connection.filter&&n.connection.filter.length>0){var r=n.connection.filter?n.connection.filter:[];r.sort();var i={};return r.forEach((function(e){i[e]=t[e]})),n.connection.key+"("+JSON.stringify(i)+")"}return n.connection.key}var d=e;if(t){var h=y()(t);d+="("+h+")"}return n&&Object.keys(n).forEach((function(e){-1===g.indexOf(e)&&(n[e]&&Object.keys(n[e]).length?d+="@"+e+"("+JSON.stringify(n[e])+")":d+="@"+e)})),d}function argumentsObjectFromField(e,t){if(e.arguments&&e.arguments.length){var n={};return e.arguments.forEach((function(e){var r=e.name,i=e.value;return valueToObjectRepresentation(n,r,i,t)})),n}return null}function resultKeyNameFromField(e){return e.alias?e.alias.value:e.name.value}function getTypenameFromResult(e,t,n){if("string"===typeof e.__typename)return e.__typename;for(var r=0,i=t.selections;r1)for(var r=new E,i=1;i0}function graphQLResultHasError(e){return e.errors&&e.errors.length>0||!1}function canUse_typeof(e){return(canUse_typeof="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function _typeof(e){return typeof e}:function _typeof(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}fixObservableSubclass(A);var x="function"===typeof WeakMap&&!("object"===("undefined"===typeof navigator?"undefined":canUse_typeof(navigator))&&"ReactNative"===navigator.product);function compact(){for(var e=[],t=0;t=0&&e.indexOf(t,n)===n}(T,g)}return!1}function definedKeys(e){return Object.keys(e).filter(isDefinedKey,e)}function isDefinedKey(e){return void 0!==this[e]}var g="{ [native code] }";function previouslyCompared(e,t){var n=y.get(e);if(n){if(n.has(t))return!0}else y.set(e,n=new Set);return n.add(t),!1}},9614:function(e,t,n){e.exports=n(5392)},7205:function(e,t,n){"use strict";var r=n(3985),i=n(7401),d=n(6303),h=n(2197),y=n(1124),g=n(8414),v=n(1970),b=n(9747);e.exports=function xhrAdapter(e){return new Promise((function dispatchXhrRequest(t,n){var _=e.data,w=e.headers;r.isFormData(_)&&delete w["Content-Type"];var E=new XMLHttpRequest;if(e.auth){var S=e.auth.username||"",k=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";w.Authorization="Basic "+btoa(S+":"+k)}var O=y(e.baseURL,e.url);if(E.open(e.method.toUpperCase(),h(O,e.params,e.paramsSerializer),!0),E.timeout=e.timeout,E.onreadystatechange=function handleLoad(){if(E&&4===E.readyState&&(0!==E.status||E.responseURL&&0===E.responseURL.indexOf("file:"))){var r="getAllResponseHeaders"in E?g(E.getAllResponseHeaders()):null,d={data:e.responseType&&"text"!==e.responseType?E.response:E.responseText,status:E.status,statusText:E.statusText,headers:r,config:e,request:E};i(t,n,d),E=null}},E.onabort=function handleAbort(){E&&(n(b("Request aborted",e,"ECONNABORTED",E)),E=null)},E.onerror=function handleError(){n(b("Network Error",e,null,E)),E=null},E.ontimeout=function handleTimeout(){var t="timeout of "+e.timeout+"ms exceeded";e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),n(b(t,e,"ECONNABORTED",E)),E=null},r.isStandardBrowserEnv()){var C=(e.withCredentials||v(O))&&e.xsrfCookieName?d.read(e.xsrfCookieName):void 0;C&&(w[e.xsrfHeaderName]=C)}if("setRequestHeader"in E&&r.forEach(w,(function setRequestHeader(e,t){"undefined"===typeof _&&"content-type"===t.toLowerCase()?delete w[t]:E.setRequestHeader(t,e)})),r.isUndefined(e.withCredentials)||(E.withCredentials=!!e.withCredentials),e.responseType)try{E.responseType=e.responseType}catch(T){if("json"!==e.responseType)throw T}"function"===typeof e.onDownloadProgress&&E.addEventListener("progress",e.onDownloadProgress),"function"===typeof e.onUploadProgress&&E.upload&&E.upload.addEventListener("progress",e.onUploadProgress),e.cancelToken&&e.cancelToken.promise.then((function onCanceled(e){E&&(E.abort(),n(e),E=null)})),_||(_=null),E.send(_)}))}},5392:function(e,t,n){"use strict";var r=n(3985),i=n(1802),d=n(9706),h=n(8200);function createInstance(e){var t=new d(e),n=i(d.prototype.request,t);return r.extend(n,d.prototype,t),r.extend(n,t),n}var y=createInstance(n(4095));y.Axios=d,y.create=function create(e){return createInstance(h(y.defaults,e))},y.Cancel=n(476),y.CancelToken=n(8418),y.isCancel=n(8976),y.all=function all(e){return Promise.all(e)},y.spread=n(2048),y.isAxiosError=n(8523),e.exports=y,e.exports.default=y},476:function(e){"use strict";function Cancel(e){this.message=e}Cancel.prototype.toString=function toString(){return"Cancel"+(this.message?": "+this.message:"")},Cancel.prototype.__CANCEL__=!0,e.exports=Cancel},8418:function(e,t,n){"use strict";var r=n(476);function CancelToken(e){if("function"!==typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise((function promiseExecutor(e){t=e}));var n=this;e((function cancel(e){n.reason||(n.reason=new r(e),t(n.reason))}))}CancelToken.prototype.throwIfRequested=function throwIfRequested(){if(this.reason)throw this.reason},CancelToken.source=function source(){var e;return{token:new CancelToken((function executor(t){e=t})),cancel:e}},e.exports=CancelToken},8976:function(e){"use strict";e.exports=function isCancel(e){return!(!e||!e.__CANCEL__)}},9706:function(e,t,n){"use strict";var r=n(3985),i=n(2197),d=n(3509),h=n(9041),y=n(8200);function Axios(e){this.defaults=e,this.interceptors={request:new d,response:new d}}Axios.prototype.request=function request(e){"string"===typeof e?(e=arguments[1]||{}).url=arguments[0]:e=e||{},(e=y(this.defaults,e)).method?e.method=e.method.toLowerCase():this.defaults.method?e.method=this.defaults.method.toLowerCase():e.method="get";var t=[h,void 0],n=Promise.resolve(e);for(this.interceptors.request.forEach((function unshiftRequestInterceptors(e){t.unshift(e.fulfilled,e.rejected)})),this.interceptors.response.forEach((function pushResponseInterceptors(e){t.push(e.fulfilled,e.rejected)}));t.length;)n=n.then(t.shift(),t.shift());return n},Axios.prototype.getUri=function getUri(e){return e=y(this.defaults,e),i(e.url,e.params,e.paramsSerializer).replace(/^\?/,"")},r.forEach(["delete","get","head","options"],(function forEachMethodNoData(e){Axios.prototype[e]=function(t,n){return this.request(y(n||{},{method:e,url:t,data:(n||{}).data}))}})),r.forEach(["post","put","patch"],(function forEachMethodWithData(e){Axios.prototype[e]=function(t,n,r){return this.request(y(r||{},{method:e,url:t,data:n}))}})),e.exports=Axios},3509:function(e,t,n){"use strict";var r=n(3985);function InterceptorManager(){this.handlers=[]}InterceptorManager.prototype.use=function use(e,t){return this.handlers.push({fulfilled:e,rejected:t}),this.handlers.length-1},InterceptorManager.prototype.eject=function eject(e){this.handlers[e]&&(this.handlers[e]=null)},InterceptorManager.prototype.forEach=function forEach(e){r.forEach(this.handlers,(function forEachHandler(t){null!==t&&e(t)}))},e.exports=InterceptorManager},1124:function(e,t,n){"use strict";var r=n(6597),i=n(4578);e.exports=function buildFullPath(e,t){return e&&!r(t)?i(e,t):t}},9747:function(e,t,n){"use strict";var r=n(9215);e.exports=function createError(e,t,n,i,d){var h=new Error(e);return r(h,t,n,i,d)}},9041:function(e,t,n){"use strict";var r=n(3985),i=n(249),d=n(8976),h=n(4095);function throwIfCancellationRequested(e){e.cancelToken&&e.cancelToken.throwIfRequested()}e.exports=function dispatchRequest(e){return throwIfCancellationRequested(e),e.headers=e.headers||{},e.data=i(e.data,e.headers,e.transformRequest),e.headers=r.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),r.forEach(["delete","get","head","post","put","patch","common"],(function cleanHeaderConfig(t){delete e.headers[t]})),(e.adapter||h.adapter)(e).then((function onAdapterResolution(t){return throwIfCancellationRequested(e),t.data=i(t.data,t.headers,e.transformResponse),t}),(function onAdapterRejection(t){return d(t)||(throwIfCancellationRequested(e),t&&t.response&&(t.response.data=i(t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)}))}},9215:function(e){"use strict";e.exports=function enhanceError(e,t,n,r,i){return e.config=t,n&&(e.code=n),e.request=r,e.response=i,e.isAxiosError=!0,e.toJSON=function toJSON(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code}},e}},8200:function(e,t,n){"use strict";var r=n(3985);e.exports=function mergeConfig(e,t){t=t||{};var n={},i=["url","method","data"],d=["headers","auth","proxy","params"],h=["baseURL","transformRequest","transformResponse","paramsSerializer","timeout","timeoutMessage","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","decompress","maxContentLength","maxBodyLength","maxRedirects","transport","httpAgent","httpsAgent","cancelToken","socketPath","responseEncoding"],y=["validateStatus"];function getMergedValue(e,t){return r.isPlainObject(e)&&r.isPlainObject(t)?r.merge(e,t):r.isPlainObject(t)?r.merge({},t):r.isArray(t)?t.slice():t}function mergeDeepProperties(i){r.isUndefined(t[i])?r.isUndefined(e[i])||(n[i]=getMergedValue(void 0,e[i])):n[i]=getMergedValue(e[i],t[i])}r.forEach(i,(function valueFromConfig2(e){r.isUndefined(t[e])||(n[e]=getMergedValue(void 0,t[e]))})),r.forEach(d,mergeDeepProperties),r.forEach(h,(function defaultToConfig2(i){r.isUndefined(t[i])?r.isUndefined(e[i])||(n[i]=getMergedValue(void 0,e[i])):n[i]=getMergedValue(void 0,t[i])})),r.forEach(y,(function merge(r){r in t?n[r]=getMergedValue(e[r],t[r]):r in e&&(n[r]=getMergedValue(void 0,e[r]))}));var g=i.concat(d).concat(h).concat(y),v=Object.keys(e).concat(Object.keys(t)).filter((function filterAxiosKeys(e){return-1===g.indexOf(e)}));return r.forEach(v,mergeDeepProperties),n}},7401:function(e,t,n){"use strict";var r=n(9747);e.exports=function settle(e,t,n){var i=n.config.validateStatus;n.status&&i&&!i(n.status)?t(r("Request failed with status code "+n.status,n.config,null,n.request,n)):e(n)}},249:function(e,t,n){"use strict";var r=n(3985);e.exports=function transformData(e,t,n){return r.forEach(n,(function transform(n){e=n(e,t)})),e}},4095:function(e,t,n){"use strict";var r=n(3985),i=n(3988),d={"Content-Type":"application/x-www-form-urlencoded"};function setContentTypeIfUnset(e,t){!r.isUndefined(e)&&r.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}var h={adapter:function getDefaultAdapter(){var e;return("undefined"!==typeof XMLHttpRequest||"undefined"!==typeof process&&"[object process]"===Object.prototype.toString.call(process))&&(e=n(7205)),e}(),transformRequest:[function transformRequest(e,t){return i(t,"Accept"),i(t,"Content-Type"),r.isFormData(e)||r.isArrayBuffer(e)||r.isBuffer(e)||r.isStream(e)||r.isFile(e)||r.isBlob(e)?e:r.isArrayBufferView(e)?e.buffer:r.isURLSearchParams(e)?(setContentTypeIfUnset(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString()):r.isObject(e)?(setContentTypeIfUnset(t,"application/json;charset=utf-8"),JSON.stringify(e)):e}],transformResponse:[function transformResponse(e){if("string"===typeof e)try{e=JSON.parse(e)}catch(t){}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function validateStatus(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};r.forEach(["delete","get","head"],(function forEachMethodNoData(e){h.headers[e]={}})),r.forEach(["post","put","patch"],(function forEachMethodWithData(e){h.headers[e]=r.merge(d)})),e.exports=h},1802:function(e){"use strict";e.exports=function bind(e,t){return function wrap(){for(var n=new Array(arguments.length),r=0;r=0)return;h[t]="set-cookie"===t?(h[t]?h[t]:[]).concat([n]):h[t]?h[t]+", "+n:n}})),h):h}},2048:function(e){"use strict";e.exports=function spread(e){return function wrap(t){return e.apply(null,t)}}},3985:function(e,t,n){"use strict";function _typeof(e){return(_typeof="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function _typeof(e){return typeof e}:function _typeof(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var r=n(1802),i=Object.prototype.toString;function isArray(e){return"[object Array]"===i.call(e)}function isUndefined(e){return"undefined"===typeof e}function isObject(e){return null!==e&&"object"===_typeof(e)}function isPlainObject(e){if("[object Object]"!==i.call(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}function isFunction(e){return"[object Function]"===i.call(e)}function forEach(e,t){if(null!==e&&"undefined"!==typeof e)if("object"!==_typeof(e)&&(e=[e]),isArray(e))for(var n=0,r=e.length;n=0&&v>0){if(e===t)return[g,v];for(r=[],d=n.length;b>=0&&!y;)b===g?(r.push(b),g=n.indexOf(e,b+1)):1===r.length?y=[r.pop(),v]:((i=r.pop())=0?g:v;r.length&&(y=[d,h])}return y}e.exports=balanced,balanced.range=range},3936:function(e,t,n){var r=n(2913);e.exports=function expandTop(e){if(!e)return[];"{}"===e.substr(0,2)&&(e="\\{\\}"+e.substr(2));return expand(function escapeBraces(e){return e.split("\\\\").join(i).split("\\{").join(d).split("\\}").join(h).split("\\,").join(y).split("\\.").join(g)}(e),!0).map(unescapeBraces)};var i="\0SLASH"+Math.random()+"\0",d="\0OPEN"+Math.random()+"\0",h="\0CLOSE"+Math.random()+"\0",y="\0COMMA"+Math.random()+"\0",g="\0PERIOD"+Math.random()+"\0";function numeric(e){return parseInt(e,10)==e?parseInt(e,10):e.charCodeAt(0)}function unescapeBraces(e){return e.split(i).join("\\").split(d).join("{").split(h).join("}").split(y).join(",").split(g).join(".")}function parseCommaParts(e){if(!e)return[""];var t=[],n=r("{","}",e);if(!n)return e.split(",");var i=n.pre,d=n.body,h=n.post,y=i.split(",");y[y.length-1]+="{"+d+"}";var g=parseCommaParts(h);return h.length&&(y[y.length-1]+=g.shift(),y.push.apply(y,g)),t.push.apply(t,y),t}function embrace(e){return"{"+e+"}"}function isPadded(e){return/^-?0\d/.test(e)}function lte(e,t){return e<=t}function gte(e,t){return e>=t}function expand(e,t){var n=[],i=r("{","}",e);if(!i)return[e];var d=i.pre,y=i.post.length?expand(i.post,!1):[""];if(/\$$/.test(i.pre))for(var g=0;g=0;if(!S&&!k)return i.post.match(/,.*\}/)?expand(e=i.pre+"{"+i.body+h+i.post):[e];if(S)b=i.body.split(/\.\./);else if(1===(b=parseCommaParts(i.body)).length&&1===(b=expand(b[0],!1).map(embrace)).length)return y.map((function(e){return i.pre+b[0]+e}));if(S){var O=numeric(b[0]),C=numeric(b[1]),T=Math.max(b[0].length,b[1].length),A=3==b.length?Math.abs(numeric(b[2])):1,x=lte;C0){var N=new Array(P+1).join("0");L=I<0?"-"+N+L.slice(1):N+L}}_.push(L)}}else{_=[];for(var R=0;R":">",'"':""","'":"'","/":"/","`":"`","=":"="};function escape_string(e){return e.replace(/[&<>"'`=\/]/g,(function(e){return n[e]}))}function parse_caption(e,t){return"undefined"!==typeof e.node.edge_media_to_caption.edges[0]&&"undefined"!==typeof e.node.edge_media_to_caption.edges[0].node&&"undefined"!==typeof e.node.edge_media_to_caption.edges[0].node.text&&null!==e.node.edge_media_to_caption.edges[0].node.text?e.node.edge_media_to_caption.edges[0].node.text:"undefined"!==typeof e.node.title&&null!==e.node.title&&0!=e.node.title.length?e.node.title:"undefined"!==typeof e.node.accessibility_caption&&null!==e.node.accessibility_caption&&0!=e.node.accessibility_caption.length&&e.node.accessibility_caption}function get_cache(e,t){var n=t||!1;if(!t&&e.cache_time>0){var r=localStorage.getItem(e.cache_time_key);null!==r&&parseInt(r)+6e4*e.cache_time>(new Date).getTime()&&(n=!0)}if(n){var i=localStorage.getItem(e.cache_data_key);if(null!==i)return JSON.parse(i)}return!1}function set_cache(e,t){var n=localStorage.getItem(e.cache_time_key);0!=e.cache_time&&(null===n||parseInt(n)+6e4*e.cache_time>(new Date).getTime())&&(localStorage.setItem(e.cache_data_key,JSON.stringify(t)),localStorage.setItem(e.cache_time_key,(new Date).getTime()))}function parse_response(e,t){switch(e){case"username":case"tag":case"location":try{t=t.split("window._sharedData = ")[1].split("<\/script>")[0]}catch(n){return!1}return"undefined"!==typeof(t=(t=JSON.parse(t.substr(0,t.length-1))).entry_data.ProfilePage||t.entry_data.TagPage||t.entry_data.LocationsPage)&&(t[0].graphql.user||t[0].graphql.hashtag||t[0].graphql.location);case"userid":return"undefined"!==typeof t.data.user&&t.data.user}}function request_data(e,t,n,r,i,d){var h;i&&d&&(h="https://images"+~~(3333*Math.random())+"-focus-opensocial.googleusercontent.com/gadgets/proxy?container=none&url="+e);var y=new XMLHttpRequest;y.onload=function(e){4===y.readyState&&200===y.status&&(data=parse_response(t,y.responseText),!1!==data?r(data):r(!1))},y.onerror=function(h){n>1?(console.warn("Instagram Feed: Request failed, "+(n-1)+" tries left. Retrying..."),request_data(e,t,n-1,r,i,!d)):r(!1,h)},y.open("GET",h||e,!0),y.send()}function get_data(t,n){var r=get_cache(t,!1);if(!1!==r)n(r);else{var i;switch(t.type){case"username":i=t.host+t.id+"/";break;case"tag":i=t.host+"explore/tags/"+t.id+"/";break;case"location":i=t.host+"explore/locations/"+t.id+"/";break;case"userid":i=t.host+'graphql/query/?query_id=17888483320059182&variables={"id":"'+t.id+'","first":'+t.items+',"after":null}'}request_data(i,t.type,t.max_tries,(function(e,r){!1!==e?(set_cache(t,e),n(e)):"undefined"===typeof r?t.on_error("Instagram Feed: It looks like the profile you are trying to fetch is age restricted. See https://github.com/jsanahuja/InstagramFeed/issues/26",3):!1!==(e=get_cache(t,!0))?n(e):t.on_error("Instagram Feed: Unable to fetch the given user/tag. Instagram responded with the status code: "+r.status,5)}),t.host===e.host&&"userid"!=t.type,!1)}}function resolveUrl(e,t){return"function"===typeof t?t(e):e}function render(e,n){var r,i="";if(e.styling?(r={profile_container:' style="text-align:center;"',profile_image:' style="border-radius:10em;width:15%;max-width:125px;min-width:50px;"',profile_name:' style="font-size:1.2em;"',profile_biography:' style="font-size:1em;"',gallery_image:' style="width:100%;"',gallery_image_link:' style="width:'+(100-2*e.margin*e.items_per_row)/e.items_per_row+"%; margin:"+e.margin+'%;position:relative; display: inline-block; height: 100%;"'},e.display_captions&&(i+="")):r={profile_container:"",profile_image:"",profile_name:"",profile_biography:"",gallery_image:"",gallery_image_link:""},e.display_profile&&"userid"!==e.type&&(i+='
",i+=''+(","tag"==e.type?i+='

#'+e.tag+"

":"username"==e.type?(i+="

@"+n.full_name+" (@"+e.username+")

",e.display_biography&&(i+="

"+n.biography+"

")):"location"==e.type&&(i+="

"+n.name+"

"),i+="
"),e.display_gallery)if("undefined"!==typeof n.is_private&&!0===n.is_private)i+='

This profile is private

';else{var d="undefined"!==typeof t[e.image_size]?t[e.image_size]:t[640],h=(n.edge_owner_to_timeline_media||n.edge_hashtag_to_media||n.edge_location_to_media).edges,y=h.length>e.items?e.items:h.length;i+=""}if(e.display_igtv&&"undefined"!==typeof n.edge_felix_video_timeline){var w=n.edge_felix_video_timeline.edges;if(y=w.length>e.items?e.items:w.length,w.length>0){for(i+='
',g=0;g",i+="",i+=""}i+="
"}}e.container.innerHTML=i}return"function"!=typeof Object.assign&&(Object.assign=function(e){"use strict";if(null==e)throw new TypeError("Cannot convert undefined or null to object");e=Object(e);for(var t=1;t120){for(var w=Math.floor(g/80),E=g%80,S=[],k=0;k<_.length;k+=80)S.push(_.slice(k,k+80));return v+printPrefixedLines([["".concat(h),S[0]]].concat(S.slice(1,w+1).map((function(e){return["",e]})),[[" ",whitespace(E-1)+"^"],["",S[w+1]]]))}return v+printPrefixedLines([["".concat(h-1),b[i-1]],["".concat(h),_],["",whitespace(g-1)+"^"],["".concat(h+1),b[i+1]]])}function printPrefixedLines(e){var t=e.filter((function(e){e[0];return void 0!==e[1]})),n=Math.max.apply(Math,t.map((function(e){return e[0].length})));return t.map((function(e){var t=e[0],r=e[1];return function leftPad(e,t){return whitespace(e-t.length)+t}(n,t)+(r?" | "+r:" |")})).join("\n")}function whitespace(e){return Array(e+1).join(" ")}function GraphQLError_typeof(e){return(GraphQLError_typeof="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function _typeof(e){return typeof e}:function _typeof(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function _defineProperties(e,t){for(var n=0;n",EOF:"",BANG:"!",DOLLAR:"$",AMP:"&",PAREN_L:"(",PAREN_R:")",SPREAD:"...",COLON:":",EQUALS:"=",AT:"@",BRACKET_L:"[",BRACKET_R:"]",BRACE_L:"{",PIPE:"|",BRACE_R:"}",NAME:"Name",INT:"Int",FLOAT:"Float",STRING:"String",BLOCK_STRING:"BlockString",COMMENT:"Comment"}),v=n(6430);function devAssert(e,t){if(!Boolean(e))throw new Error(t)}var b=function instanceOf(e,t){return e instanceof t};function source_defineProperties(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:"GraphQL request",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{line:1,column:1};"string"===typeof e||devAssert(0,"Body must be a string. Received: ".concat((0,v.Z)(e),".")),this.body=e,this.name=t,this.locationOffset=n,this.locationOffset.line>0||devAssert(0,"line in locationOffset is 1-indexed and must be positive."),this.locationOffset.column>0||devAssert(0,"column in locationOffset is 1-indexed and must be positive.")}return function source_createClass(e,t,n){return t&&source_defineProperties(e.prototype,t),n&&source_defineProperties(e,n),e}(Source,[{key:i,get:function get(){return"Source"}}]),Source}();var w=Object.freeze({QUERY:"QUERY",MUTATION:"MUTATION",SUBSCRIPTION:"SUBSCRIPTION",FIELD:"FIELD",FRAGMENT_DEFINITION:"FRAGMENT_DEFINITION",FRAGMENT_SPREAD:"FRAGMENT_SPREAD",INLINE_FRAGMENT:"INLINE_FRAGMENT",VARIABLE_DEFINITION:"VARIABLE_DEFINITION",SCHEMA:"SCHEMA",SCALAR:"SCALAR",OBJECT:"OBJECT",FIELD_DEFINITION:"FIELD_DEFINITION",ARGUMENT_DEFINITION:"ARGUMENT_DEFINITION",INTERFACE:"INTERFACE",UNION:"UNION",ENUM:"ENUM",ENUM_VALUE:"ENUM_VALUE",INPUT_OBJECT:"INPUT_OBJECT",INPUT_FIELD_DEFINITION:"INPUT_FIELD_DEFINITION"}),E=n(2464),S=function(){function Lexer(e){var t=new y.WU(g.SOF,0,0,0,0,null);this.source=e,this.lastToken=t,this.token=t,this.line=1,this.lineStart=0}var e=Lexer.prototype;return e.advance=function advance(){return this.lastToken=this.token,this.token=this.lookahead()},e.lookahead=function lookahead(){var e=this.token;if(e.kind!==g.EOF)do{var t;e=null!==(t=e.next)&&void 0!==t?t:e.next=readToken(this,e)}while(e.kind===g.COMMENT);return e},Lexer}();function printCharCode(e){return isNaN(e)?g.EOF:e<127?JSON.stringify(String.fromCharCode(e)):'"\\u'.concat(("00"+e.toString(16).toUpperCase()).slice(-4),'"')}function readToken(e,t){for(var n=e.source,r=n.body,i=r.length,d=t.end;d31||9===d));return new y.WU(g.COMMENT,t,v,n,r,i,h.slice(t+1,v))}function readNumber(e,t,n,r,i,d){var h=e.body,v=n,b=t,_=!1;if(45===v&&(v=h.charCodeAt(++b)),48===v){if((v=h.charCodeAt(++b))>=48&&v<=57)throw syntaxError(e,b,"Invalid number, unexpected digit after 0: ".concat(printCharCode(v),"."))}else b=readDigits(e,b,v),v=h.charCodeAt(b);if(46===v&&(_=!0,v=h.charCodeAt(++b),b=readDigits(e,b,v),v=h.charCodeAt(b)),69!==v&&101!==v||(_=!0,43!==(v=h.charCodeAt(++b))&&45!==v||(v=h.charCodeAt(++b)),b=readDigits(e,b,v),v=h.charCodeAt(b)),46===v||function isNameStart(e){return 95===e||e>=65&&e<=90||e>=97&&e<=122}(v))throw syntaxError(e,b,"Invalid number, expected digit but got: ".concat(printCharCode(v),"."));return new y.WU(_?g.FLOAT:g.INT,t,b,r,i,d,h.slice(t,b))}function readDigits(e,t,n){var r=e.body,i=t,d=n;if(d>=48&&d<=57){do{d=r.charCodeAt(++i)}while(d>=48&&d<=57);return i}throw syntaxError(e,i,"Invalid number, expected digit but got: ".concat(printCharCode(d),"."))}function readString(e,t,n,r,i){for(var d,h,v,b,_=e.body,w=t+1,E=w,S=0,k="";w<_.length&&!isNaN(S=_.charCodeAt(w))&&10!==S&&13!==S;){if(34===S)return k+=_.slice(E,w),new y.WU(g.STRING,t,w+1,n,r,i,k);if(S<32&&9!==S)throw syntaxError(e,w,"Invalid character within String: ".concat(printCharCode(S),"."));if(++w,92===S){switch(k+=_.slice(E,w-1),S=_.charCodeAt(w)){case 34:k+='"';break;case 47:k+="/";break;case 92:k+="\\";break;case 98:k+="\b";break;case 102:k+="\f";break;case 110:k+="\n";break;case 114:k+="\r";break;case 116:k+="\t";break;case 117:var O=(d=_.charCodeAt(w+1),h=_.charCodeAt(w+2),v=_.charCodeAt(w+3),b=_.charCodeAt(w+4),char2hex(d)<<12|char2hex(h)<<8|char2hex(v)<<4|char2hex(b));if(O<0){var C=_.slice(w+1,w+5);throw syntaxError(e,w,"Invalid character escape sequence: \\u".concat(C,"."))}k+=String.fromCharCode(O),w+=4;break;default:throw syntaxError(e,w,"Invalid character escape sequence: \\".concat(String.fromCharCode(S),"."))}E=++w}}throw syntaxError(e,w,"Unterminated string.")}function readBlockString(e,t,n,r,i,d){for(var h=e.body,v=t+3,b=v,_=0,w="";v=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:-1}function readName(e,t,n,r,i){for(var d=e.body,h=d.length,v=t+1,b=0;v!==h&&!isNaN(b=d.charCodeAt(v))&&(95===b||b>=48&&b<=57||b>=65&&b<=90||b>=97&&b<=122);)++v;return new y.WU(g.NAME,t,v,n,r,i,d.slice(t,v))}var k=function(){function Parser(e,t){var n=function isSource(e){return b(e,_)}(e)?e:new _(e);this._lexer=new S(n),this._options=t}var e=Parser.prototype;return e.parseName=function parseName(){var e=this.expectToken(g.NAME);return{kind:h.NAME,value:e.value,loc:this.loc(e)}},e.parseDocument=function parseDocument(){var e=this._lexer.token;return{kind:h.DOCUMENT,definitions:this.many(g.SOF,this.parseDefinition,g.EOF),loc:this.loc(e)}},e.parseDefinition=function parseDefinition(){if(this.peek(g.NAME))switch(this._lexer.token.value){case"query":case"mutation":case"subscription":return this.parseOperationDefinition();case"fragment":return this.parseFragmentDefinition();case"schema":case"scalar":case"type":case"interface":case"union":case"enum":case"input":case"directive":return this.parseTypeSystemDefinition();case"extend":return this.parseTypeSystemExtension()}else{if(this.peek(g.BRACE_L))return this.parseOperationDefinition();if(this.peekDescription())return this.parseTypeSystemDefinition()}throw this.unexpected()},e.parseOperationDefinition=function parseOperationDefinition(){var e=this._lexer.token;if(this.peek(g.BRACE_L))return{kind:h.OPERATION_DEFINITION,operation:"query",name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet(),loc:this.loc(e)};var t,n=this.parseOperationType();return this.peek(g.NAME)&&(t=this.parseName()),{kind:h.OPERATION_DEFINITION,operation:n,name:t,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(e)}},e.parseOperationType=function parseOperationType(){var e=this.expectToken(g.NAME);switch(e.value){case"query":return"query";case"mutation":return"mutation";case"subscription":return"subscription"}throw this.unexpected(e)},e.parseVariableDefinitions=function parseVariableDefinitions(){return this.optionalMany(g.PAREN_L,this.parseVariableDefinition,g.PAREN_R)},e.parseVariableDefinition=function parseVariableDefinition(){var e=this._lexer.token;return{kind:h.VARIABLE_DEFINITION,variable:this.parseVariable(),type:(this.expectToken(g.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(g.EQUALS)?this.parseValueLiteral(!0):void 0,directives:this.parseDirectives(!0),loc:this.loc(e)}},e.parseVariable=function parseVariable(){var e=this._lexer.token;return this.expectToken(g.DOLLAR),{kind:h.VARIABLE,name:this.parseName(),loc:this.loc(e)}},e.parseSelectionSet=function parseSelectionSet(){var e=this._lexer.token;return{kind:h.SELECTION_SET,selections:this.many(g.BRACE_L,this.parseSelection,g.BRACE_R),loc:this.loc(e)}},e.parseSelection=function parseSelection(){return this.peek(g.SPREAD)?this.parseFragment():this.parseField()},e.parseField=function parseField(){var e,t,n=this._lexer.token,r=this.parseName();return this.expectOptionalToken(g.COLON)?(e=r,t=this.parseName()):t=r,{kind:h.FIELD,alias:e,name:t,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(g.BRACE_L)?this.parseSelectionSet():void 0,loc:this.loc(n)}},e.parseArguments=function parseArguments(e){var t=e?this.parseConstArgument:this.parseArgument;return this.optionalMany(g.PAREN_L,t,g.PAREN_R)},e.parseArgument=function parseArgument(){var e=this._lexer.token,t=this.parseName();return this.expectToken(g.COLON),{kind:h.ARGUMENT,name:t,value:this.parseValueLiteral(!1),loc:this.loc(e)}},e.parseConstArgument=function parseConstArgument(){var e=this._lexer.token;return{kind:h.ARGUMENT,name:this.parseName(),value:(this.expectToken(g.COLON),this.parseValueLiteral(!0)),loc:this.loc(e)}},e.parseFragment=function parseFragment(){var e=this._lexer.token;this.expectToken(g.SPREAD);var t=this.expectOptionalKeyword("on");return!t&&this.peek(g.NAME)?{kind:h.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1),loc:this.loc(e)}:{kind:h.INLINE_FRAGMENT,typeCondition:t?this.parseNamedType():void 0,directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(e)}},e.parseFragmentDefinition=function parseFragmentDefinition(){var e,t=this._lexer.token;return this.expectKeyword("fragment"),!0===(null===(e=this._options)||void 0===e?void 0:e.experimentalFragmentVariables)?{kind:h.FRAGMENT_DEFINITION,name:this.parseFragmentName(),variableDefinitions:this.parseVariableDefinitions(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(t)}:{kind:h.FRAGMENT_DEFINITION,name:this.parseFragmentName(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(t)}},e.parseFragmentName=function parseFragmentName(){if("on"===this._lexer.token.value)throw this.unexpected();return this.parseName()},e.parseValueLiteral=function parseValueLiteral(e){var t=this._lexer.token;switch(t.kind){case g.BRACKET_L:return this.parseList(e);case g.BRACE_L:return this.parseObject(e);case g.INT:return this._lexer.advance(),{kind:h.INT,value:t.value,loc:this.loc(t)};case g.FLOAT:return this._lexer.advance(),{kind:h.FLOAT,value:t.value,loc:this.loc(t)};case g.STRING:case g.BLOCK_STRING:return this.parseStringLiteral();case g.NAME:switch(this._lexer.advance(),t.value){case"true":return{kind:h.BOOLEAN,value:!0,loc:this.loc(t)};case"false":return{kind:h.BOOLEAN,value:!1,loc:this.loc(t)};case"null":return{kind:h.NULL,loc:this.loc(t)};default:return{kind:h.ENUM,value:t.value,loc:this.loc(t)}}case g.DOLLAR:if(!e)return this.parseVariable()}throw this.unexpected()},e.parseStringLiteral=function parseStringLiteral(){var e=this._lexer.token;return this._lexer.advance(),{kind:h.STRING,value:e.value,block:e.kind===g.BLOCK_STRING,loc:this.loc(e)}},e.parseList=function parseList(e){var t=this,n=this._lexer.token;return{kind:h.LIST,values:this.any(g.BRACKET_L,(function item(){return t.parseValueLiteral(e)}),g.BRACKET_R),loc:this.loc(n)}},e.parseObject=function parseObject(e){var t=this,n=this._lexer.token;return{kind:h.OBJECT,fields:this.any(g.BRACE_L,(function item(){return t.parseObjectField(e)}),g.BRACE_R),loc:this.loc(n)}},e.parseObjectField=function parseObjectField(e){var t=this._lexer.token,n=this.parseName();return this.expectToken(g.COLON),{kind:h.OBJECT_FIELD,name:n,value:this.parseValueLiteral(e),loc:this.loc(t)}},e.parseDirectives=function parseDirectives(e){for(var t=[];this.peek(g.AT);)t.push(this.parseDirective(e));return t},e.parseDirective=function parseDirective(e){var t=this._lexer.token;return this.expectToken(g.AT),{kind:h.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(e),loc:this.loc(t)}},e.parseTypeReference=function parseTypeReference(){var e,t=this._lexer.token;return this.expectOptionalToken(g.BRACKET_L)?(e=this.parseTypeReference(),this.expectToken(g.BRACKET_R),e={kind:h.LIST_TYPE,type:e,loc:this.loc(t)}):e=this.parseNamedType(),this.expectOptionalToken(g.BANG)?{kind:h.NON_NULL_TYPE,type:e,loc:this.loc(t)}:e},e.parseNamedType=function parseNamedType(){var e=this._lexer.token;return{kind:h.NAMED_TYPE,name:this.parseName(),loc:this.loc(e)}},e.parseTypeSystemDefinition=function parseTypeSystemDefinition(){var e=this.peekDescription()?this._lexer.lookahead():this._lexer.token;if(e.kind===g.NAME)switch(e.value){case"schema":return this.parseSchemaDefinition();case"scalar":return this.parseScalarTypeDefinition();case"type":return this.parseObjectTypeDefinition();case"interface":return this.parseInterfaceTypeDefinition();case"union":return this.parseUnionTypeDefinition();case"enum":return this.parseEnumTypeDefinition();case"input":return this.parseInputObjectTypeDefinition();case"directive":return this.parseDirectiveDefinition()}throw this.unexpected(e)},e.peekDescription=function peekDescription(){return this.peek(g.STRING)||this.peek(g.BLOCK_STRING)},e.parseDescription=function parseDescription(){if(this.peekDescription())return this.parseStringLiteral()},e.parseSchemaDefinition=function parseSchemaDefinition(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("schema");var n=this.parseDirectives(!0),r=this.many(g.BRACE_L,this.parseOperationTypeDefinition,g.BRACE_R);return{kind:h.SCHEMA_DEFINITION,description:t,directives:n,operationTypes:r,loc:this.loc(e)}},e.parseOperationTypeDefinition=function parseOperationTypeDefinition(){var e=this._lexer.token,t=this.parseOperationType();this.expectToken(g.COLON);var n=this.parseNamedType();return{kind:h.OPERATION_TYPE_DEFINITION,operation:t,type:n,loc:this.loc(e)}},e.parseScalarTypeDefinition=function parseScalarTypeDefinition(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("scalar");var n=this.parseName(),r=this.parseDirectives(!0);return{kind:h.SCALAR_TYPE_DEFINITION,description:t,name:n,directives:r,loc:this.loc(e)}},e.parseObjectTypeDefinition=function parseObjectTypeDefinition(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("type");var n=this.parseName(),r=this.parseImplementsInterfaces(),i=this.parseDirectives(!0),d=this.parseFieldsDefinition();return{kind:h.OBJECT_TYPE_DEFINITION,description:t,name:n,interfaces:r,directives:i,fields:d,loc:this.loc(e)}},e.parseImplementsInterfaces=function parseImplementsInterfaces(){var e;if(!this.expectOptionalKeyword("implements"))return[];if(!0===(null===(e=this._options)||void 0===e?void 0:e.allowLegacySDLImplementsInterfaces)){var t=[];this.expectOptionalToken(g.AMP);do{t.push(this.parseNamedType())}while(this.expectOptionalToken(g.AMP)||this.peek(g.NAME));return t}return this.delimitedMany(g.AMP,this.parseNamedType)},e.parseFieldsDefinition=function parseFieldsDefinition(){var e;return!0===(null===(e=this._options)||void 0===e?void 0:e.allowLegacySDLEmptyFields)&&this.peek(g.BRACE_L)&&this._lexer.lookahead().kind===g.BRACE_R?(this._lexer.advance(),this._lexer.advance(),[]):this.optionalMany(g.BRACE_L,this.parseFieldDefinition,g.BRACE_R)},e.parseFieldDefinition=function parseFieldDefinition(){var e=this._lexer.token,t=this.parseDescription(),n=this.parseName(),r=this.parseArgumentDefs();this.expectToken(g.COLON);var i=this.parseTypeReference(),d=this.parseDirectives(!0);return{kind:h.FIELD_DEFINITION,description:t,name:n,arguments:r,type:i,directives:d,loc:this.loc(e)}},e.parseArgumentDefs=function parseArgumentDefs(){return this.optionalMany(g.PAREN_L,this.parseInputValueDef,g.PAREN_R)},e.parseInputValueDef=function parseInputValueDef(){var e=this._lexer.token,t=this.parseDescription(),n=this.parseName();this.expectToken(g.COLON);var r,i=this.parseTypeReference();this.expectOptionalToken(g.EQUALS)&&(r=this.parseValueLiteral(!0));var d=this.parseDirectives(!0);return{kind:h.INPUT_VALUE_DEFINITION,description:t,name:n,type:i,defaultValue:r,directives:d,loc:this.loc(e)}},e.parseInterfaceTypeDefinition=function parseInterfaceTypeDefinition(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("interface");var n=this.parseName(),r=this.parseImplementsInterfaces(),i=this.parseDirectives(!0),d=this.parseFieldsDefinition();return{kind:h.INTERFACE_TYPE_DEFINITION,description:t,name:n,interfaces:r,directives:i,fields:d,loc:this.loc(e)}},e.parseUnionTypeDefinition=function parseUnionTypeDefinition(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("union");var n=this.parseName(),r=this.parseDirectives(!0),i=this.parseUnionMemberTypes();return{kind:h.UNION_TYPE_DEFINITION,description:t,name:n,directives:r,types:i,loc:this.loc(e)}},e.parseUnionMemberTypes=function parseUnionMemberTypes(){return this.expectOptionalToken(g.EQUALS)?this.delimitedMany(g.PIPE,this.parseNamedType):[]},e.parseEnumTypeDefinition=function parseEnumTypeDefinition(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("enum");var n=this.parseName(),r=this.parseDirectives(!0),i=this.parseEnumValuesDefinition();return{kind:h.ENUM_TYPE_DEFINITION,description:t,name:n,directives:r,values:i,loc:this.loc(e)}},e.parseEnumValuesDefinition=function parseEnumValuesDefinition(){return this.optionalMany(g.BRACE_L,this.parseEnumValueDefinition,g.BRACE_R)},e.parseEnumValueDefinition=function parseEnumValueDefinition(){var e=this._lexer.token,t=this.parseDescription(),n=this.parseName(),r=this.parseDirectives(!0);return{kind:h.ENUM_VALUE_DEFINITION,description:t,name:n,directives:r,loc:this.loc(e)}},e.parseInputObjectTypeDefinition=function parseInputObjectTypeDefinition(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("input");var n=this.parseName(),r=this.parseDirectives(!0),i=this.parseInputFieldsDefinition();return{kind:h.INPUT_OBJECT_TYPE_DEFINITION,description:t,name:n,directives:r,fields:i,loc:this.loc(e)}},e.parseInputFieldsDefinition=function parseInputFieldsDefinition(){return this.optionalMany(g.BRACE_L,this.parseInputValueDef,g.BRACE_R)},e.parseTypeSystemExtension=function parseTypeSystemExtension(){var e=this._lexer.lookahead();if(e.kind===g.NAME)switch(e.value){case"schema":return this.parseSchemaExtension();case"scalar":return this.parseScalarTypeExtension();case"type":return this.parseObjectTypeExtension();case"interface":return this.parseInterfaceTypeExtension();case"union":return this.parseUnionTypeExtension();case"enum":return this.parseEnumTypeExtension();case"input":return this.parseInputObjectTypeExtension()}throw this.unexpected(e)},e.parseSchemaExtension=function parseSchemaExtension(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("schema");var t=this.parseDirectives(!0),n=this.optionalMany(g.BRACE_L,this.parseOperationTypeDefinition,g.BRACE_R);if(0===t.length&&0===n.length)throw this.unexpected();return{kind:h.SCHEMA_EXTENSION,directives:t,operationTypes:n,loc:this.loc(e)}},e.parseScalarTypeExtension=function parseScalarTypeExtension(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("scalar");var t=this.parseName(),n=this.parseDirectives(!0);if(0===n.length)throw this.unexpected();return{kind:h.SCALAR_TYPE_EXTENSION,name:t,directives:n,loc:this.loc(e)}},e.parseObjectTypeExtension=function parseObjectTypeExtension(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("type");var t=this.parseName(),n=this.parseImplementsInterfaces(),r=this.parseDirectives(!0),i=this.parseFieldsDefinition();if(0===n.length&&0===r.length&&0===i.length)throw this.unexpected();return{kind:h.OBJECT_TYPE_EXTENSION,name:t,interfaces:n,directives:r,fields:i,loc:this.loc(e)}},e.parseInterfaceTypeExtension=function parseInterfaceTypeExtension(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("interface");var t=this.parseName(),n=this.parseImplementsInterfaces(),r=this.parseDirectives(!0),i=this.parseFieldsDefinition();if(0===n.length&&0===r.length&&0===i.length)throw this.unexpected();return{kind:h.INTERFACE_TYPE_EXTENSION,name:t,interfaces:n,directives:r,fields:i,loc:this.loc(e)}},e.parseUnionTypeExtension=function parseUnionTypeExtension(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("union");var t=this.parseName(),n=this.parseDirectives(!0),r=this.parseUnionMemberTypes();if(0===n.length&&0===r.length)throw this.unexpected();return{kind:h.UNION_TYPE_EXTENSION,name:t,directives:n,types:r,loc:this.loc(e)}},e.parseEnumTypeExtension=function parseEnumTypeExtension(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("enum");var t=this.parseName(),n=this.parseDirectives(!0),r=this.parseEnumValuesDefinition();if(0===n.length&&0===r.length)throw this.unexpected();return{kind:h.ENUM_TYPE_EXTENSION,name:t,directives:n,values:r,loc:this.loc(e)}},e.parseInputObjectTypeExtension=function parseInputObjectTypeExtension(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("input");var t=this.parseName(),n=this.parseDirectives(!0),r=this.parseInputFieldsDefinition();if(0===n.length&&0===r.length)throw this.unexpected();return{kind:h.INPUT_OBJECT_TYPE_EXTENSION,name:t,directives:n,fields:r,loc:this.loc(e)}},e.parseDirectiveDefinition=function parseDirectiveDefinition(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("directive"),this.expectToken(g.AT);var n=this.parseName(),r=this.parseArgumentDefs(),i=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");var d=this.parseDirectiveLocations();return{kind:h.DIRECTIVE_DEFINITION,description:t,name:n,arguments:r,repeatable:i,locations:d,loc:this.loc(e)}},e.parseDirectiveLocations=function parseDirectiveLocations(){return this.delimitedMany(g.PIPE,this.parseDirectiveLocation)},e.parseDirectiveLocation=function parseDirectiveLocation(){var e=this._lexer.token,t=this.parseName();if(void 0!==w[t.value])return t;throw this.unexpected(e)},e.loc=function loc(e){var t;if(!0!==(null===(t=this._options)||void 0===t?void 0:t.noLocation))return new y.Ye(e,this._lexer.lastToken,this._lexer.source)},e.peek=function peek(e){return this._lexer.token.kind===e},e.expectToken=function expectToken(e){var t=this._lexer.token;if(t.kind===e)return this._lexer.advance(),t;throw syntaxError(this._lexer.source,t.start,"Expected ".concat(getTokenKindDesc(e),", found ").concat(getTokenDesc(t),"."))},e.expectOptionalToken=function expectOptionalToken(e){var t=this._lexer.token;if(t.kind===e)return this._lexer.advance(),t},e.expectKeyword=function expectKeyword(e){var t=this._lexer.token;if(t.kind!==g.NAME||t.value!==e)throw syntaxError(this._lexer.source,t.start,'Expected "'.concat(e,'", found ').concat(getTokenDesc(t),"."));this._lexer.advance()},e.expectOptionalKeyword=function expectOptionalKeyword(e){var t=this._lexer.token;return t.kind===g.NAME&&t.value===e&&(this._lexer.advance(),!0)},e.unexpected=function unexpected(e){var t=null!==e&&void 0!==e?e:this._lexer.token;return syntaxError(this._lexer.source,t.start,"Unexpected ".concat(getTokenDesc(t),"."))},e.any=function any(e,t,n){this.expectToken(e);for(var r=[];!this.expectOptionalToken(n);)r.push(t.call(this));return r},e.optionalMany=function optionalMany(e,t,n){if(this.expectOptionalToken(e)){var r=[];do{r.push(t.call(this))}while(!this.expectOptionalToken(n));return r}return[]},e.many=function many(e,t,n){this.expectToken(e);var r=[];do{r.push(t.call(this))}while(!this.expectOptionalToken(n));return r},e.delimitedMany=function delimitedMany(e,t){this.expectOptionalToken(e);var n=[];do{n.push(t.call(this))}while(this.expectOptionalToken(e));return n},Parser}();function getTokenDesc(e){var t=e.value;return getTokenKindDesc(e.kind)+(null!=t?' "'.concat(t,'"'):"")}function getTokenKindDesc(e){return function isPunctuatorTokenKind(e){return e===g.BANG||e===g.DOLLAR||e===g.AMP||e===g.PAREN_L||e===g.PAREN_R||e===g.SPREAD||e===g.COLON||e===g.EQUALS||e===g.AT||e===g.BRACKET_L||e===g.BRACKET_R||e===g.BRACE_L||e===g.PIPE||e===g.BRACE_R}(e)?'"'.concat(e,'"'):e}function lib_typeof(e){return(lib_typeof="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function _typeof(e){return typeof e}:function _typeof(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var O=new Map,C=new Map,T=!0,A=!1;function normalize(e){return e.replace(/[\s,]+/g," ").trim()}function processFragments(e){var t=new Set,n=[];return e.definitions.forEach((function(e){if("FragmentDefinition"===e.kind){var r=e.name.value,i=function cacheKeyFromLoc(e){return normalize(e.source.body.substring(e.start,e.end))}(e.loc),d=C.get(r);d&&!d.has(i)?T&&console.warn("Warning: fragment with name "+r+" 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||C.set(r,d=new Set),d.add(i),t.has(i)||(t.add(i),n.push(e))}else n.push(e)})),(0,r.pi)((0,r.pi)({},e),{definitions:n})}function parseDocument(e){var t=normalize(e);if(!O.has(t)){var n=function parse(e,t){return new k(e,t).parseDocument()}(e,{experimentalFragmentVariables:A});if(!n||"Document"!==n.kind)throw new Error("Not a valid GraphQL document.");O.set(t,function stripLoc(e){var t=new Set(e.definitions);t.forEach((function(e){e.loc&&delete e.loc,Object.keys(e).forEach((function(n){var r=e[n];r&&"object"===lib_typeof(r)&&t.add(r)}))}));var n=e.loc;return n&&(delete n.startToken,delete n.endToken),e}(processFragments(n)))}return O.get(t)}function gql(e){for(var t=[],n=1;ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n-1&&i.splice(y,1)}if(0!==i.length)return!1}return!0}},{key:"_checkSubCombo",value:function _checkSubCombo(e,t,n){e=e.slice(0),n=n.slice(t);for(var r=t,i=0;i-1&&(e.splice(i,1),i-=1,y>r&&(r=y),0===e.length))return r}return-1}}]),KeyCombo}();e.comboDeliminator=">",e.keyDeliminator="+",e.parseComboStr=function(t){for(var n=e._splitStr(t,e.comboDeliminator),r=[],i=0;i0&&n[h]===r&&"\\"!==n[h-1]&&(d.push(i.trim()),i="",h+=1),i+=n[h];return i&&d.push(i.trim()),d};var t=function(){function Locale(e){_classCallCheck(this,Locale),this.localeName=e,this.activeTargetKeys=[],this.pressedKeys=[],this._appliedMacros=[],this._keyMap={},this._killKeyCodes=[],this._macros=[]}return _createClass(Locale,[{key:"bindKeyCode",value:function bindKeyCode(e,t){"string"===typeof t&&(t=[t]),this._keyMap[e]=t}},{key:"bindMacro",value:function bindMacro(t,n){"string"===typeof n&&(n=[n]);var r=null;"function"===typeof n&&(r=n,n=null);var i={keyCombo:new e(t),keyNames:n,handler:r};this._macros.push(i)}},{key:"getKeyCodes",value:function getKeyCodes(e){var t=[];for(var n in this._keyMap)this._keyMap[n].indexOf(e)>-1&&t.push(0|n);return t}},{key:"getKeyNames",value:function getKeyNames(e){return this._keyMap[e]||[]}},{key:"setKillKey",value:function setKillKey(e){if("string"!==typeof e)this._killKeyCodes.push(e);else for(var t=this.getKeyCodes(e),n=0;n-1&&this.pressedKeys.splice(d,1)}this.activeTargetKeys.length=0,this._clearMacros()}}},{key:"_applyMacros",value:function _applyMacros(){for(var e=this._macros.slice(0),t=0;t-1&&this.pressedKeys.splice(r,1)}t.handler&&(t.keyNames=null),this._appliedMacros.splice(e,1),e-=1}}}}]),Locale}(),r=function(){function Keyboard(e,t,n,r){_classCallCheck(this,Keyboard),this._locale=null,this._currentContext="",this._contexts={},this._listeners=[],this._appliedListeners=[],this._locales={},this._targetElement=null,this._targetWindow=null,this._targetPlatform="",this._targetUserAgent="",this._isModernBrowser=!1,this._targetKeyDownBinding=null,this._targetKeyUpBinding=null,this._targetResetBinding=null,this._paused=!1,this._contexts.global={listeners:this._listeners,targetWindow:e,targetElement:t,targetPlatform:n,targetUserAgent:r},this.setContext("global")}return _createClass(Keyboard,[{key:"setLocale",value:function setLocale(e,n){var r=null;return"string"===typeof e?n?n(r=new t(e),this._targetPlatform,this._targetUserAgent):r=this._locales[e]||null:e=(r=e)._localeName,this._locale=r,this._locales[e]=r,r&&(this._locale.pressedKeys=r.pressedKeys),this}},{key:"getLocale",value:function getLocale(e){return e||(e=this._locale.localeName),this._locales[e]||null}},{key:"bind",value:function bind(t,n,r,i){if(null!==t&&"function"!==typeof t||(i=r,r=n,n=t,t=null),t&&"object"===_typeof(t)&&"number"===typeof t.length){for(var d=0;d"]),e.bindMacro("shift + /",["questionmark","?"]),t.match("Mac")?e.bindMacro("command",["mod","modifier"]):e.bindMacro("ctrl",["mod","modifier"]);for(var r=65;r<=90;r+=1){var i=String.fromCharCode(r+32),d=String.fromCharCode(r);e.bindKeyCode(r,i),e.bindMacro("shift + "+i,d),e.bindMacro("capslock + "+i,d)}var h,y,g=n.match("Firefox")?59:186,v=n.match("Firefox")?173:189,b=n.match("Firefox")?61:187;t.match("Mac")&&(n.match("Safari")||n.match("Chrome"))?(h=91,y=93):t.match("Mac")&&n.match("Opera")?(h=17,y=17):t.match("Mac")&&n.match("Firefox")&&(h=224,y=224),e.bindKeyCode(g,["semicolon",";"]),e.bindKeyCode(v,["dash","-"]),e.bindKeyCode(b,["equal","equalsign","="]),e.bindKeyCode(h,["command","windows","win","super","leftcommand","leftwindows","leftwin","leftsuper"]),e.bindKeyCode(y,["command","windows","win","super","rightcommand","rightwindows","rightwin","rightsuper"]),e.setKillKey("command")})),i.Keyboard=r,i.Locale=t,i.KeyCombo=e,i},"object"===_typeof2(t)?e.exports=d():void 0===(i="function"===typeof(r=d)?r.call(t,n,t,e):r)||(e.exports=i)},9110:function(e,t,n){e.exports=minimatch,minimatch.Minimatch=Minimatch;var r={sep:"/"};try{r=n(2061)}catch(w){}var i=minimatch.GLOBSTAR=Minimatch.GLOBSTAR={},d=n(3936),h={"!":{open:"(?:(?!(?:",close:"))[^/]*?)"},"?":{open:"(?:",close:")?"},"+":{open:"(?:",close:")+"},"*":{open:"(?:",close:")*"},"@":{open:"(?:",close:")"}},y="[^/]",g="[^/]*?",v=function charSet(e){return e.split("").reduce((function(e,t){return e[t]=!0,e}),{})}("().*{}+?[]^$\\!");var b=/\/+/;function ext(e,t){e=e||{},t=t||{};var n={};return Object.keys(t).forEach((function(e){n[e]=t[e]})),Object.keys(e).forEach((function(t){n[t]=e[t]})),n}function minimatch(e,t,n){if("string"!==typeof t)throw new TypeError("glob pattern string required");return n||(n={}),!(!n.nocomment&&"#"===t.charAt(0))&&(""===t.trim()?""===e:new Minimatch(t,n).match(e))}function Minimatch(e,t){if(!(this instanceof Minimatch))return new Minimatch(e,t);if("string"!==typeof e)throw new TypeError("glob pattern string required");t||(t={}),e=e.trim(),"/"!==r.sep&&(e=e.split(r.sep).join("/")),this.options=t,this.set=[],this.pattern=e,this.regexp=null,this.negate=!1,this.comment=!1,this.empty=!1,this.make()}function braceExpand(e,t){if(t||(t=this instanceof Minimatch?this.options:{}),"undefined"===typeof(e="undefined"===typeof e?this.pattern:e))throw new TypeError("undefined pattern");return t.nobrace||!e.match(/\{.*\}/)?[e]:d(e)}minimatch.filter=function filter(e,t){return t=t||{},function(n,r,i){return minimatch(n,e,t)}},minimatch.defaults=function(e){if(!e||!Object.keys(e).length)return minimatch;var t=minimatch,n=function minimatch(n,r,i){return t.minimatch(n,r,ext(e,i))};return n.Minimatch=function Minimatch(n,r){return new t.Minimatch(n,ext(e,r))},n},Minimatch.defaults=function(e){return e&&Object.keys(e).length?minimatch.defaults(e).Minimatch:Minimatch},Minimatch.prototype.debug=function(){},Minimatch.prototype.make=function make(){if(this._made)return;var e=this.pattern,t=this.options;if(!t.nocomment&&"#"===e.charAt(0))return void(this.comment=!0);if(!e)return void(this.empty=!0);this.parseNegate();var n=this.globSet=this.braceExpand();t.debug&&(this.debug=console.error);this.debug(this.pattern,n),n=this.globParts=n.map((function(e){return e.split(b)})),this.debug(this.pattern,n),n=n.map((function(e,t,n){return e.map(this.parse,this)}),this),this.debug(this.pattern,n),n=n.filter((function(e){return-1===e.indexOf(!1)})),this.debug(this.pattern,n),this.set=n},Minimatch.prototype.parseNegate=function parseNegate(){var e=this.pattern,t=!1,n=this.options,r=0;if(n.nonegate)return;for(var i=0,d=e.length;i65536)throw new TypeError("pattern is too long");var n=this.options;if(!n.noglobstar&&"**"===e)return i;if(""===e)return"";var r,d="",b=!!n.nocase,E=!1,S=[],k=[],O=!1,C=-1,T=-1,A="."===e.charAt(0)?"":n.dot?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)",x=this;function clearStateChar(){if(r){switch(r){case"*":d+=g,b=!0;break;case"?":d+=y,b=!0;break;default:d+="\\"+r}x.debug("clearStateChar %j %j",r,d),r=!1}}for(var D,I=0,L=e.length;I-1;Q--){var q=k[Q],B=d.slice(0,q.reStart),K=d.slice(q.reStart,q.reEnd-8),U=d.slice(q.reEnd-8,q.reEnd),V=d.slice(q.reEnd);U+=V;var H=B.split("(").length-1,W=V;for(I=0;I=0&&!(i=e[d]);d--);for(d=0;d>> no match, partial?",e,w,t,E),w!==y))}if("string"===typeof b?(v=r.nocase?_.toLowerCase()===b.toLowerCase():_===b,this.debug("string match",b,_,v)):(v=_.match(b),this.debug("pattern match",b,_,v)),!v)return!1}if(d===y&&h===g)return!0;if(d===y)return n;if(h===g)return d===y-1&&""===e[d];throw new Error("wtf?")}},5901:function(e,t,n){"use strict";var r=n(9125);function emptyFunction(){}function emptyFunctionWithReset(){}emptyFunctionWithReset.resetWarningCache=emptyFunction,e.exports=function(){function shim(e,t,n,i,d,h){if(h!==r){var y=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw y.name="Invariant Violation",y}}function getShim(){return shim}shim.isRequired=shim;var e={array:shim,bool:shim,func:shim,number:shim,object:shim,string:shim,symbol:shim,any:shim,arrayOf:getShim,element:shim,elementType:shim,instanceOf:getShim,node:shim,objectOf:getShim,oneOf:getShim,oneOfType:getShim,shape:getShim,exact:getShim,checkPropTypes:emptyFunctionWithReset,resetWarningCache:emptyFunction};return e.PropTypes=e,e}},5295:function(e,t,n){e.exports=n(5901)()},9125:function(e){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},2981:function(e,t,n){var r,i,d;i=[t,n(4921)],void 0===(d="function"===typeof(r=function(e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=_interopRequireDefault(t);function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}e.default=n.default})?r.apply(t,i):r)||(e.exports=d)},4921:function(e,t,n){var r,i,d;function _typeof(e){return(_typeof="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function _typeof(e){return typeof e}:function _typeof(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}i=[t,n(3804),n(5295)],void 0===(d="function"===typeof(r=function(e,t,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.setHasSupportToCaptureOption=setHasSupportToCaptureOption;var r=_interopRequireDefault(t),i=_interopRequireDefault(n);function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}var d=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function _classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var h=function(){function defineProperties(e,t){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:{capture:!0};return y?e:e.capture}function getPosition(e){if("touches"in e){var t=e.touches[0];return{x:t.pageX,y:t.pageY}}return{x:e.screenX,y:e.screenY}}var g=function(e){function ReactSwipe(){var e;_classCallCheck(this,ReactSwipe);for(var t=arguments.length,n=Array(t),r=0;rt&&this.props.onSwipeRight(1,e),this.movePosition.deltaY<-t?this.props.onSwipeUp(1,e):this.movePosition.deltaY>t&&this.props.onSwipeDown(1,e)),this.moveStart=null,this.moving=!1,this.movePosition=null}},{key:"_setSwiperRef",value:function _setSwiperRef(e){this.swiper=e,this.props.innerRef(e)}},{key:"render",value:function render(){var e=this.props,t=(e.tagName,e.className),n=e.style,i=e.children,h=(e.allowMouseEvents,e.onSwipeUp,e.onSwipeDown,e.onSwipeLeft,e.onSwipeRight,e.onSwipeStart,e.onSwipeMove,e.onSwipeEnd,e.innerRef,e.tolerance,_objectWithoutProperties(e,["tagName","className","style","children","allowMouseEvents","onSwipeUp","onSwipeDown","onSwipeLeft","onSwipeRight","onSwipeStart","onSwipeMove","onSwipeEnd","innerRef","tolerance"]));return r.default.createElement(this.props.tagName,d({ref:this._setSwiperRef,onMouseDown:this._onMouseDown,onTouchStart:this._handleSwipeStart,onTouchEnd:this._handleSwipeEnd,className:t,style:n},h),i)}}]),ReactSwipe}(t.Component);g.displayName="ReactSwipe",g.propTypes={tagName:i.default.string,className:i.default.string,style:i.default.object,children:i.default.node,allowMouseEvents:i.default.bool,onSwipeUp:i.default.func,onSwipeDown:i.default.func,onSwipeLeft:i.default.func,onSwipeRight:i.default.func,onSwipeStart:i.default.func,onSwipeMove:i.default.func,onSwipeEnd:i.default.func,innerRef:i.default.func,tolerance:i.default.number.isRequired},g.defaultProps={tagName:"div",allowMouseEvents:!1,onSwipeUp:function onSwipeUp(){},onSwipeDown:function onSwipeDown(){},onSwipeLeft:function onSwipeLeft(){},onSwipeRight:function onSwipeRight(){},onSwipeStart:function onSwipeStart(){},onSwipeMove:function onSwipeMove(){},onSwipeEnd:function onSwipeEnd(){},innerRef:function innerRef(){},tolerance:0},e.default=g})?r.apply(t,i):r)||(e.exports=d)},3427:function(e,t,n){var r,i,d,h;function _typeof(e){return(_typeof="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function _typeof(e){return typeof e}:function _typeof(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}h=function(e,t,n,r){"use strict";function o(e){return e&&"object"==_typeof(e)&&"default"in e?e:{default:e}}var i=o(t),d=o(n),h=o(r),y=function a(){return(y=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0&&i[i.length-1])||6!==d[0]&&2!==d[0])){h=0;continue}if(3===d[0]&&(!i||d[1]>i[0]&&d[1]=v)return console[e].apply(console,arguments)}}function setVerbosity(e){var t=g[v];return v=Math.max(0,g.indexOf(e)),t}!function(e){e.log=wrapConsoleMethod("log"),e.warn=wrapConsoleMethod("warn"),e.error=wrapConsoleMethod("error")}(invariant||(invariant={}));"object"===("undefined"===typeof process?"undefined":_typeof(process))&&"object"===_typeof({NODE_ENV:"production"})&&process},2965:function(e,t,n){"use strict";n.d(t,{ZT:function(){return __extends},pi:function(){return i},_T:function(){return __rest},mG:function(){return __awaiter},Jh:function(){return __generator},pr:function(){return __spreadArrays}});var r=function extendStatics(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)};function __extends(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function __(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)}var i=function __assign(){return(i=Object.assign||function __assign(e){for(var t,n=1,r=arguments.length;n0&&i[i.length-1])&&(6===d[0]||2===d[0])){h=0;continue}if(3===d[0]&&(!i||d[1]>i[0]&&d[1]1,i=!1,d=arguments[1],h=d;return new n((function(n){return t.subscribe({next:function next(t){var d=!i;if(i=!0,!d||r)try{h=e(h,t)}catch(y){return n.error(y)}else h=t},error:function error(e){n.error(e)},complete:function complete(){if(!i&&!r)return n.error(new TypeError("Cannot reduce an empty sequence"));n.next(h),n.complete()}})}))}},{key:"concat",value:function concat(){for(var e=this,t=arguments.length,n=new Array(t),r=0;r=0&&i.splice(e,1),completeIfDone()}});i.push(d)},error:function error(e){r.error(e)},complete:function complete(){completeIfDone()}});function completeIfDone(){d.closed&&0===i.length&&r.complete()}return function(){i.forEach((function(e){return e.unsubscribe()})),d.unsubscribe()}}))}},{key:h,value:function value(){return this}}],[{key:"from",value:function from(e){var t="function"===typeof this?this:Observable;if(null==e)throw new TypeError(e+" is not an object");var n=getMethod(e,h);if(n){var i=n.call(e);if(Object(i)!==i)throw new TypeError(i+" is not an object");return isObservable(i)&&i.constructor===t?i:new t((function(e){return i.subscribe(e)}))}if(r("iterator")&&(n=getMethod(e,d)))return new t((function(t){enqueue((function(){if(!t.closed){var r=!0,i=!1,d=void 0;try{for(var h,y=n.call(e)[Symbol.iterator]();!(r=(h=y.next()).done);r=!0){var g=h.value;if(t.next(g),t.closed)return}}catch(v){i=!0,d=v}finally{try{r||null==y.return||y.return()}finally{if(i)throw d}}t.complete()}}))}));if(Array.isArray(e))return new t((function(t){enqueue((function(){if(!t.closed){for(var n=0;n2)return"[Array]";for(var n=Math.min(10,e.length),r=e.length-n,i=[],d=0;d1&&i.push("... ".concat(r," more items"));return"["+i.join(", ")+"]"}(e,n);return function formatObject(e,t){var n=Object.keys(e);if(0===n.length)return"{}";if(t.length>2)return"["+function getObjectTag(e){var t=Object.prototype.toString.call(e).replace(/^\[object /,"").replace(/]$/,"");if("Object"===t&&"function"===typeof e.constructor){var n=e.constructor.name;if("string"===typeof n&&""!==n)return n}return t}(e)+"]";return"{ "+n.map((function(n){return n+": "+formatValue(e[n],t)})).join(", ")+" }"}(e,n)}(e,t);default:return String(e)}}},5332:function(e,t){"use strict";var n="function"===typeof Symbol&&"function"===typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):void 0;t.Z=n},8265:function(e,t,n){"use strict";n.d(t,{Ye:function(){return i},WU:function(){return d},UG:function(){return isNode}});var r=n(5332);function defineInspect(e){var t=e.prototype.toJSON;"function"===typeof t||function invariant(e,t){if(!Boolean(e))throw new Error(null!=t?t:"Unexpected invariant triggered.")}(0),e.prototype.inspect=t,r.Z&&(e.prototype[r.Z]=t)}var i=function(){function Location(e,t,n){this.start=e.start,this.end=t.end,this.startToken=e,this.endToken=t,this.source=n}return Location.prototype.toJSON=function toJSON(){return{start:this.start,end:this.end}},Location}();defineInspect(i);var d=function(){function Token(e,t,n,r,i,d,h){this.kind=e,this.start=t,this.end=n,this.line=r,this.column=i,this.value=h,this.prev=d,this.next=null}return Token.prototype.toJSON=function toJSON(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}},Token}();function isNode(e){return null!=e&&"string"===typeof e.kind}defineInspect(d)},2464:function(e,t,n){"use strict";function dedentBlockStringValue(e){var t=e.split(/\r\n|[\n\r]/g),n=function getBlockStringIndentation(e){for(var t,n=!0,r=!0,i=0,d=null,h=0;hi&&isBlank(t[d-1]);)--d;return t.slice(i,d).join("\n")}function isBlank(e){for(var t=0;t1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=-1===e.indexOf("\n"),i=" "===e[0]||"\t"===e[0],d='"'===e[e.length-1],h="\\"===e[e.length-1],y=!r||d||h||n,g="";return!y||r&&i||(g+="\n"+t),g+=t?e.replace(/\n/g,"\n"+t):e,y&&(g+="\n"),'"""'+g.replace(/"""/g,'\\"""')+'"""'}n.d(t,{W7:function(){return dedentBlockStringValue},LZ:function(){return printBlockString}})},4893:function(e,t,n){"use strict";n.d(t,{$_:function(){return h},Vn:function(){return visit}});var r=n(6430),i=n(8265),d={Name:[],Document:["definitions"],OperationDefinition:["name","variableDefinitions","directives","selectionSet"],VariableDefinition:["variable","type","defaultValue","directives"],Variable:["name"],SelectionSet:["selections"],Field:["alias","name","arguments","directives","selectionSet"],Argument:["name","value"],FragmentSpread:["name","directives"],InlineFragment:["typeCondition","directives","selectionSet"],FragmentDefinition:["name","variableDefinitions","typeCondition","directives","selectionSet"],IntValue:[],FloatValue:[],StringValue:[],BooleanValue:[],NullValue:[],EnumValue:[],ListValue:["values"],ObjectValue:["fields"],ObjectField:["name","value"],Directive:["name","arguments"],NamedType:["name"],ListType:["type"],NonNullType:["type"],SchemaDefinition:["description","directives","operationTypes"],OperationTypeDefinition:["type"],ScalarTypeDefinition:["description","name","directives"],ObjectTypeDefinition:["description","name","interfaces","directives","fields"],FieldDefinition:["description","name","arguments","type","directives"],InputValueDefinition:["description","name","type","defaultValue","directives"],InterfaceTypeDefinition:["description","name","interfaces","directives","fields"],UnionTypeDefinition:["description","name","directives","types"],EnumTypeDefinition:["description","name","directives","values"],EnumValueDefinition:["description","name","directives"],InputObjectTypeDefinition:["description","name","directives","fields"],DirectiveDefinition:["description","name","arguments","locations"],SchemaExtension:["directives","operationTypes"],ScalarTypeExtension:["name","directives"],ObjectTypeExtension:["name","interfaces","directives","fields"],InterfaceTypeExtension:["name","interfaces","directives","fields"],UnionTypeExtension:["name","directives","types"],EnumTypeExtension:["name","directives","values"],InputObjectTypeExtension:["name","directives","fields"]},h=Object.freeze({});function visit(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:d,y=void 0,g=Array.isArray(e),v=[e],b=-1,_=[],w=void 0,E=void 0,S=void 0,k=[],O=[],C=e;do{var T=++b===v.length,A=T&&0!==_.length;if(T){if(E=0===O.length?void 0:k[k.length-1],w=S,S=O.pop(),A){if(g)w=w.slice();else{for(var x={},D=0,I=Object.keys(w);D - ss-webpack-boilerplate [4 May 2021 at 00:10] + ss-webpack-boilerplate [4 May 2021 at 00:18] diff --git a/webpack.config.js b/webpack.config.js index 4ad16c7..2b051ac 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -283,10 +283,10 @@ const cfg = merge(common.webpack, { test: /\.jsx?$/, //exclude: /node_modules/, use: { - loader: '@sucrase/webpack-loader', // babel-loader + loader: 'babel-loader', //'@sucrase/webpack-loader', options: { - transforms: ['jsx'] - /*presets: [ + //transforms: ['jsx'] + presets: [ '@babel/preset-env', '@babel/react', { @@ -299,7 +299,7 @@ const cfg = merge(common.webpack, { ['@babel/transform-react-jsx'] ], cacheDirectory: true, - cacheCompression: true,*/ + cacheCompression: true, }, }, }, diff --git a/webpack.config.serve.js b/webpack.config.serve.js index 185fe68..65badab 100644 --- a/webpack.config.serve.js +++ b/webpack.config.serve.js @@ -95,9 +95,10 @@ const config = merge(common.webpack, { test: /\.jsx?$/, //exclude: /node_modules/, use: { - loader: 'babel-loader', + loader: '@sucrase/webpack-loader', //'babel-loader', options: { - presets: [ + transforms: ['jsx'] + /*presets: [ '@babel/preset-env', '@babel/react', { @@ -112,7 +113,7 @@ const config = merge(common.webpack, { ['@babel/plugin-syntax-top-level-await'], ], cacheDirectory: true, - cacheCompression: true, + cacheCompression: true,*/ }, }, },