/*! For license information please see sample.js.LICENSE.txt */ !function(){var e={6999:function(e,t,n){var r={"./bg.png":6316,"./logo.png":1887,"./logo.svg":738,"./original.png":1582,"./original2.png":104,"./photo1.png":8035,"./photo2.jpg":7675,"./photo3.svg":5192,"app/client/src/img/bg.png":6316,"app/client/src/img/logo.png":1887,"app/client/src/img/logo.svg":738,"app/client/src/img/original.png":1582,"app/client/src/img/original2.png":104,"app/client/src/img/photo1.png":8035,"app/client/src/img/photo2.jpg":7675,"app/client/src/img/photo3.svg":5192,"bg.png":6316,"img/bg.png":6316,"img/logo.png":1887,"img/logo.svg":738,"img/original.png":1582,"img/original2.png":104,"img/photo1.png":8035,"img/photo2.jpg":7675,"img/photo3.svg":5192,"logo.png":1887,"logo.svg":738,"original.png":1582,"original2.png":104,"photo1.png":8035,"photo2.jpg":7675,"photo3.svg":5192};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},4712:function(e,t,n){"use strict";var r={};n.r(r),n.d(r,{afterMain:function(){return kn},afterRead:function(){return wn},afterWrite:function(){return Tn},applyStyles:function(){return xn},arrow:function(){return Nn},auto:function(){return cn},basePlacements:function(){return ln},beforeMain:function(){return En},beforeRead:function(){return bn},beforeWrite:function(){return Cn},bottom:function(){return rn},clippingParents:function(){return dn},computeStyles:function(){return Rn},createPopper:function(){return Gn},createPopperBase:function(){return Wn},createPopperLite:function(){return Yn},detectOverflow:function(){return detectOverflow},end:function(){return pn},eventListeners:function(){return Mn},flip:function(){return Bn},hide:function(){return Qn},left:function(){return sn},main:function(){return Sn},modifierPhases:function(){return An},offset:function(){return Kn},placements:function(){return vn},popper:function(){return mn},popperGenerator:function(){return popperGenerator},popperOffsets:function(){return Vn},preventOverflow:function(){return Un},read:function(){return _n},reference:function(){return yn},right:function(){return an},start:function(){return un},top:function(){return nn},variationPlacements:function(){return gn},viewport:function(){return hn},write:function(){return On}});var i="ajax-load",d="load",h=n(3804),y=n.n(h),g=ReactDOM,v=n.n(g),b=n(9639),_=n.n(b),w=n(4982),E=n.n(w),S=n(3309),k=n.n(S);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 _toConsumableArray(e){return function _arrayWithoutHoles(e){if(Array.isArray(e))return _arrayLikeToArray(e)}(e)||function _iterableToArray(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function _unsupportedIterableToArray(e,t){if(!e)return;if("string"===typeof e)return _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 _arrayLikeToArray(e,t)}(e)||function _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 _arrayLikeToArray(e,t){(null==t||t>e.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=T,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),[O]),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),x=(function(e){var t=v().render(y().createElement(A,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"]},D=n(4878);function isObjectLike_typeof(e){return(isObjectLike_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"===typeof Symbol&&null!=Symbol.iterator&&Symbol.iterator,"function"===typeof Symbol&&null!=Symbol.asyncIterator&&Symbol.asyncIterator;var L="function"===typeof Symbol&&null!=Symbol.toStringTag?Symbol.toStringTag:"@@toStringTag";function getLocation(e,t){for(var n,r=/\r\n|[\n\r]/g,i=1,d=t+1;(n=r.exec(e.body))&&n.index120){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 GraphQLError_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"});function inspect_typeof(e){return(inspect_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 inspect(e){return formatValue(e,[])}function formatValue(e,t){switch(inspect_typeof(e)){case"string":return JSON.stringify(e);case"function":return e.name?"[function ".concat(e.name,"]"):"[function]";case"object":return null===e?"null":function formatObjectValue(e,t){if(-1!==t.indexOf(e))return"[Circular]";var n=[].concat(t,[e]),r=function getCustomFn(e){var t=e[String(R)];if("function"===typeof t)return t;if("function"===typeof e.inspect)return e.inspect}(e);if(void 0!==r){var i=r.call(e);if(i!==e)return"string"===typeof i?i:formatValue(i,n)}else if(Array.isArray(e))return function formatArray(e,t){if(0===e.length)return"[]";if(t.length>2)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)}}function devAssert(e,t){if(!Boolean(e))throw new Error(t)}var q=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(inspect(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:L,get:function get(){return"Source"}}]),Source}();var Q=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"});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;t31||9===d));return new M(F.COMMENT,t,y,n,r,i,h.slice(t+1,y))}function readNumber(e,t,n,r,i,d){var h=e.body,y=n,g=t,v=!1;if(45===y&&(y=h.charCodeAt(++g)),48===y){if((y=h.charCodeAt(++g))>=48&&y<=57)throw syntaxError(e,g,"Invalid number, unexpected digit after 0: ".concat(printCharCode(y),"."))}else g=readDigits(e,g,y),y=h.charCodeAt(g);if(46===y&&(v=!0,y=h.charCodeAt(++g),g=readDigits(e,g,y),y=h.charCodeAt(g)),69!==y&&101!==y||(v=!0,43!==(y=h.charCodeAt(++g))&&45!==y||(y=h.charCodeAt(++g)),g=readDigits(e,g,y),y=h.charCodeAt(g)),46===y||function isNameStart(e){return 95===e||e>=65&&e<=90||e>=97&&e<=122}(y))throw syntaxError(e,g,"Invalid number, expected digit but got: ".concat(printCharCode(y),"."));return new M(v?F.FLOAT:F.INT,t,g,r,i,d,h.slice(t,g))}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,y,g,v=e.body,b=t+1,_=b,w=0,E="";b=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,y=t+1,g=0;y!==h&&!isNaN(g=d.charCodeAt(y))&&(95===g||g>=48&&g<=57||g>=65&&g<=90||g>=97&&g<=122);)++y;return new M(F.NAME,t,y,n,r,i,d.slice(t,y))}var V=function(){function Parser(e,t){var n=function isSource(e){return q(e,B)}(e)?e:new B(e);this._lexer=new K(n),this._options=t}var e=Parser.prototype;return e.parseName=function parseName(){var e=this.expectToken(F.NAME);return{kind:P.NAME,value:e.value,loc:this.loc(e)}},e.parseDocument=function parseDocument(){var e=this._lexer.token;return{kind:P.DOCUMENT,definitions:this.many(F.SOF,this.parseDefinition,F.EOF),loc:this.loc(e)}},e.parseDefinition=function parseDefinition(){if(this.peek(F.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(F.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(F.BRACE_L))return{kind:P.OPERATION_DEFINITION,operation:"query",name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet(),loc:this.loc(e)};var t,n=this.parseOperationType();return this.peek(F.NAME)&&(t=this.parseName()),{kind:P.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(F.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(F.PAREN_L,this.parseVariableDefinition,F.PAREN_R)},e.parseVariableDefinition=function parseVariableDefinition(){var e=this._lexer.token;return{kind:P.VARIABLE_DEFINITION,variable:this.parseVariable(),type:(this.expectToken(F.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(F.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(F.DOLLAR),{kind:P.VARIABLE,name:this.parseName(),loc:this.loc(e)}},e.parseSelectionSet=function parseSelectionSet(){var e=this._lexer.token;return{kind:P.SELECTION_SET,selections:this.many(F.BRACE_L,this.parseSelection,F.BRACE_R),loc:this.loc(e)}},e.parseSelection=function parseSelection(){return this.peek(F.SPREAD)?this.parseFragment():this.parseField()},e.parseField=function parseField(){var e,t,n=this._lexer.token,r=this.parseName();return this.expectOptionalToken(F.COLON)?(e=r,t=this.parseName()):t=r,{kind:P.FIELD,alias:e,name:t,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(F.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(F.PAREN_L,t,F.PAREN_R)},e.parseArgument=function parseArgument(){var e=this._lexer.token,t=this.parseName();return this.expectToken(F.COLON),{kind:P.ARGUMENT,name:t,value:this.parseValueLiteral(!1),loc:this.loc(e)}},e.parseConstArgument=function parseConstArgument(){var e=this._lexer.token;return{kind:P.ARGUMENT,name:this.parseName(),value:(this.expectToken(F.COLON),this.parseValueLiteral(!0)),loc:this.loc(e)}},e.parseFragment=function parseFragment(){var e=this._lexer.token;this.expectToken(F.SPREAD);var t=this.expectOptionalKeyword("on");return!t&&this.peek(F.NAME)?{kind:P.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1),loc:this.loc(e)}:{kind:P.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:P.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:P.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 F.BRACKET_L:return this.parseList(e);case F.BRACE_L:return this.parseObject(e);case F.INT:return this._lexer.advance(),{kind:P.INT,value:t.value,loc:this.loc(t)};case F.FLOAT:return this._lexer.advance(),{kind:P.FLOAT,value:t.value,loc:this.loc(t)};case F.STRING:case F.BLOCK_STRING:return this.parseStringLiteral();case F.NAME:switch(this._lexer.advance(),t.value){case"true":return{kind:P.BOOLEAN,value:!0,loc:this.loc(t)};case"false":return{kind:P.BOOLEAN,value:!1,loc:this.loc(t)};case"null":return{kind:P.NULL,loc:this.loc(t)};default:return{kind:P.ENUM,value:t.value,loc:this.loc(t)}}case F.DOLLAR:if(!e)return this.parseVariable()}throw this.unexpected()},e.parseStringLiteral=function parseStringLiteral(){var e=this._lexer.token;return this._lexer.advance(),{kind:P.STRING,value:e.value,block:e.kind===F.BLOCK_STRING,loc:this.loc(e)}},e.parseList=function parseList(e){var t=this,n=this._lexer.token;return{kind:P.LIST,values:this.any(F.BRACKET_L,(function item(){return t.parseValueLiteral(e)}),F.BRACKET_R),loc:this.loc(n)}},e.parseObject=function parseObject(e){var t=this,n=this._lexer.token;return{kind:P.OBJECT,fields:this.any(F.BRACE_L,(function item(){return t.parseObjectField(e)}),F.BRACE_R),loc:this.loc(n)}},e.parseObjectField=function parseObjectField(e){var t=this._lexer.token,n=this.parseName();return this.expectToken(F.COLON),{kind:P.OBJECT_FIELD,name:n,value:this.parseValueLiteral(e),loc:this.loc(t)}},e.parseDirectives=function parseDirectives(e){for(var t=[];this.peek(F.AT);)t.push(this.parseDirective(e));return t},e.parseDirective=function parseDirective(e){var t=this._lexer.token;return this.expectToken(F.AT),{kind:P.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(F.BRACKET_L)?(e=this.parseTypeReference(),this.expectToken(F.BRACKET_R),e={kind:P.LIST_TYPE,type:e,loc:this.loc(t)}):e=this.parseNamedType(),this.expectOptionalToken(F.BANG)?{kind:P.NON_NULL_TYPE,type:e,loc:this.loc(t)}:e},e.parseNamedType=function parseNamedType(){var e=this._lexer.token;return{kind:P.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===F.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(F.STRING)||this.peek(F.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(F.BRACE_L,this.parseOperationTypeDefinition,F.BRACE_R);return{kind:P.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(F.COLON);var n=this.parseNamedType();return{kind:P.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:P.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:P.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(F.AMP);do{t.push(this.parseNamedType())}while(this.expectOptionalToken(F.AMP)||this.peek(F.NAME));return t}return this.delimitedMany(F.AMP,this.parseNamedType)},e.parseFieldsDefinition=function parseFieldsDefinition(){var e;return!0===(null===(e=this._options)||void 0===e?void 0:e.allowLegacySDLEmptyFields)&&this.peek(F.BRACE_L)&&this._lexer.lookahead().kind===F.BRACE_R?(this._lexer.advance(),this._lexer.advance(),[]):this.optionalMany(F.BRACE_L,this.parseFieldDefinition,F.BRACE_R)},e.parseFieldDefinition=function parseFieldDefinition(){var e=this._lexer.token,t=this.parseDescription(),n=this.parseName(),r=this.parseArgumentDefs();this.expectToken(F.COLON);var i=this.parseTypeReference(),d=this.parseDirectives(!0);return{kind:P.FIELD_DEFINITION,description:t,name:n,arguments:r,type:i,directives:d,loc:this.loc(e)}},e.parseArgumentDefs=function parseArgumentDefs(){return this.optionalMany(F.PAREN_L,this.parseInputValueDef,F.PAREN_R)},e.parseInputValueDef=function parseInputValueDef(){var e=this._lexer.token,t=this.parseDescription(),n=this.parseName();this.expectToken(F.COLON);var r,i=this.parseTypeReference();this.expectOptionalToken(F.EQUALS)&&(r=this.parseValueLiteral(!0));var d=this.parseDirectives(!0);return{kind:P.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:P.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:P.UNION_TYPE_DEFINITION,description:t,name:n,directives:r,types:i,loc:this.loc(e)}},e.parseUnionMemberTypes=function parseUnionMemberTypes(){return this.expectOptionalToken(F.EQUALS)?this.delimitedMany(F.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:P.ENUM_TYPE_DEFINITION,description:t,name:n,directives:r,values:i,loc:this.loc(e)}},e.parseEnumValuesDefinition=function parseEnumValuesDefinition(){return this.optionalMany(F.BRACE_L,this.parseEnumValueDefinition,F.BRACE_R)},e.parseEnumValueDefinition=function parseEnumValueDefinition(){var e=this._lexer.token,t=this.parseDescription(),n=this.parseName(),r=this.parseDirectives(!0);return{kind:P.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:P.INPUT_OBJECT_TYPE_DEFINITION,description:t,name:n,directives:r,fields:i,loc:this.loc(e)}},e.parseInputFieldsDefinition=function parseInputFieldsDefinition(){return this.optionalMany(F.BRACE_L,this.parseInputValueDef,F.BRACE_R)},e.parseTypeSystemExtension=function parseTypeSystemExtension(){var e=this._lexer.lookahead();if(e.kind===F.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(F.BRACE_L,this.parseOperationTypeDefinition,F.BRACE_R);if(0===t.length&&0===n.length)throw this.unexpected();return{kind:P.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:P.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:P.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:P.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:P.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:P.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:P.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(F.AT);var n=this.parseName(),r=this.parseArgumentDefs(),i=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");var d=this.parseDirectiveLocations();return{kind:P.DIRECTIVE_DEFINITION,description:t,name:n,arguments:r,repeatable:i,locations:d,loc:this.loc(e)}},e.parseDirectiveLocations=function parseDirectiveLocations(){return this.delimitedMany(F.PIPE,this.parseDirectiveLocation)},e.parseDirectiveLocation=function parseDirectiveLocation(){var e=this._lexer.token,t=this.parseName();if(void 0!==Q[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 j(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!==F.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===F.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===F.BANG||e===F.DOLLAR||e===F.AMP||e===F.PAREN_L||e===F.PAREN_R||e===F.SPREAD||e===F.COLON||e===F.EQUALS||e===F.AT||e===F.BRACKET_L||e===F.BRACKET_R||e===F.BRACE_L||e===F.PIPE||e===F.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 U=new Map,H=new Map,z=!0,W=!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=H.get(r);d&&!d.has(i)?z&&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||H.set(r,d=new Set),d.add(i),t.has(i)||(t.add(i),n.push(e))}else n.push(e)})),(0,D.pi)((0,D.pi)({},e),{definitions:n})}function parseDocument(e){var t=normalize(e);if(!U.has(t)){var n=function parse(e,t){return new V(e,t).parseDocument()}(e,{experimentalFragmentVariables:W});if(!n||"Document"!==n.kind)throw new Error("Not a valid GraphQL document.");U.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 U.get(t)}function gql(e){for(var t=[],n=1;nthis.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}(),me=new pe,ye=Object.prototype.hasOwnProperty,ge=void 0===(de=Array.from)?function(e){var t=[];return e.forEach((function(e){return t.push(e)})),t}:de;function maybeUnsubscribe(e){var t=e.unsubscribe;"function"===typeof t&&(e.unsubscribe=void 0,t())}var ve=[];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 be=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 rememberParent(this),this.value[0]},Entry.prototype.recompute=function(e){return assert(!this.recomputing,"already recomputing"),rememberParent(this),mightBeDirty(this)?function reallyRecompute(e,t){forgetChildren(e),me.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),maybeUnsubscribe(this))},Entry.prototype.dispose=function(){var e=this;this.setDirty(),forgetChildren(this),eachParent(this,(function(t,n){t.setDirty(),forgetChild(t,e)}))},Entry.prototype.forget=function(){this.dispose()},Entry.prototype.dependOn=function(e){e.add(this),this.deps||(this.deps=ve.pop()||new Set),this.deps.add(e)},Entry.prototype.forgetDeps=function(){var e=this;this.deps&&(ge(this.deps).forEach((function(t){return t.delete(e)})),this.deps.clear(),ve.push(this.deps),this.deps=null)},Entry.count=0,Entry}();function rememberParent(e){var t=me.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}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){eachParent(e,reportDirtyChild)}function reportClean(e){eachParent(e,reportCleanChild)}function eachParent(e,t){var n=e.parents.size;if(n)for(var r=ge(e.parents),i=0;i0&&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&&(ve.length<100&&ve.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)}var _e={setDirty:!0,dispose:!0,forget:!0};function dep(e){var t=new Map,n=e&&e.subscribe;function depend(e){var r=me.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,n){var r=t.get(e);if(r){var i=n&&ye.call(_e,n)?n:"setDirty";ge(r).forEach((function(e){return e[i]()})),t.delete(e),maybeUnsubscribe(r)}},depend}function makeDefaultMakeCacheKeyFunction(){var e=new ae("function"===typeof WeakMap);return function(){return e.lookupArray(arguments)}}makeDefaultMakeCacheKeyFunction();var we=new Set;function wrap(e,t){void 0===t&&(t=Object.create(null));var n=new he(t.max||Math.pow(2,16),(function(e){return e.dispose()})),r=t.keyArgs,i=t.makeCacheKey||makeDefaultMakeCacheKeyFunction(),d=function optimistic(){var d=i.apply(null,r?r.apply(null,arguments):arguments);if(void 0===d)return e.apply(null,arguments);var h=n.get(d);h||(n.set(d,h=new be(e)),h.subscribe=t.subscribe,h.forget=function(){return n.delete(d)});var y=h.recompute(Array.prototype.slice.call(arguments));return n.set(d,h),we.add(n),me.hasValue()||(we.forEach((function(e){return e.clean()})),we.clear()),y};function dirtyKey(e){var t=n.get(e);t&&t.setDirty()}function peekKey(e){var t=n.get(e);if(t)return t.peek()}function forgetKey(e){return n.delete(e)}return Object.defineProperty(d,"size",{get:function get(){return n.map.size},configurable:!1,enumerable:!1}),d.dirtyKey=dirtyKey,d.dirty=function dirty(){dirtyKey(i.apply(null,arguments))},d.peekKey=peekKey,d.peek=function peek(){return peekKey(i.apply(null,arguments))},d.forgetKey=forgetKey,d.forget=function forget(){return forgetKey(i.apply(null,arguments))},d.makeCacheKey=i,d.getKey=r?function getKey(){return i.apply(null,r.apply(null,arguments))}:i,Object.freeze(d)}var Ee=n(6795),Se=function(){function ApolloCache(){this.getFragmentDoc=wrap(Ee.Yk)}return ApolloCache.prototype.recordOptimisticTransaction=function(e,t){this.performTransaction(e,t)},ApolloCache.prototype.transformDocument=function(e){return e},ApolloCache.prototype.identify=function(e){},ApolloCache.prototype.gc=function(){return[]},ApolloCache.prototype.modify=function(e){return!1},ApolloCache.prototype.transformForLink=function(e){return e},ApolloCache.prototype.readQuery=function(e,t){return void 0===t&&(t=!!e.optimistic),this.read({rootId:e.id||"ROOT_QUERY",query:e.query,variables:e.variables,returnPartialData:e.returnPartialData,optimistic:t})},ApolloCache.prototype.readFragment=function(e,t){return void 0===t&&(t=!!e.optimistic),this.read({query:this.getFragmentDoc(e.fragment,e.fragmentName),variables:e.variables,rootId:e.id,returnPartialData:e.returnPartialData,optimistic:t})},ApolloCache.prototype.writeQuery=function(e){return this.write({dataId:e.id||"ROOT_QUERY",result:e.data,query:e.query,variables:e.variables,broadcast:e.broadcast})},ApolloCache.prototype.writeFragment=function(e){return this.write({dataId:e.id,result:e.data,variables:e.variables,query:this.getFragmentDoc(e.fragment,e.fragmentName),broadcast:e.broadcast})},ApolloCache}(),ke=function ke(e,t,n,r,i){this.message=e,this.path=t,this.query=n,this.clientOnly=r,this.variables=i},Ce=n(8452),Oe={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"]},Te=Object.freeze({});function visit(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Oe,r=void 0,i=Array.isArray(e),d=[e],h=-1,y=[],g=void 0,v=void 0,b=void 0,_=[],w=[],E=e;do{var S=++h===d.length,k=S&&0!==y.length;if(S){if(v=0===w.length?void 0:_[_.length-1],g=b,b=w.pop(),k){if(i)g=g.slice();else{for(var C={},O=0,T=Object.keys(g);O-1}))}function hasClientExports(e){return e&&hasDirectives(["client"],e)&&hasDirectives(["export"],e)}function mergeDeep_typeof(e){return(mergeDeep_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 Le=Object.prototype.hasOwnProperty;function mergeDeep(){for(var e=[],t=0;t1)for(var r=new Pe,i=1;i=0&&e.indexOf(t,n)===n}(k,Be)}return!1}function definedKeys(e){return Object.keys(e).filter(isDefinedKey,e)}function isDefinedKey(e){return void 0!==this[e]}var Be="{ [native code] }";function previouslyCompared(e,t){var n=qe.get(e);if(n){if(n.has(t))return!0}else qe.set(e,n=new Set);return n.add(t),!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)}var Qe="function"===typeof WeakMap&&!("object"===("undefined"===typeof navigator?"undefined":canUse_typeof(navigator))&&"ReactNative"===navigator.product);function helpers_typeof(e){return(helpers_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 Ke=Object.prototype.hasOwnProperty;var Ve=/^[_a-z][_0-9a-z]*/i;function helpers_fieldNameFromStoreName(e){var t=e.match(Ve);return t?t[0]:e}function selectionSetMatchesResult(e,t,n){return!(!t||"object"!==helpers_typeof(t))&&(Array.isArray(t)?t.every((function(t){return selectionSetMatchesResult(e,t,n)})):e.selections.every((function(e){if((0,Ce.My)(e)&&shouldInclude(e,n)){var r=(0,Ce.u2)(e);return Ke.call(t,r)&&(!e.selectionSet||selectionSetMatchesResult(e.selectionSet,t[r],n))}return!0})))}function storeValueIsStoreObject(e){return null!==e&&"object"===helpers_typeof(e)&&!(0,Ce.Yk)(e)&&!Array.isArray(e)}function entityStore_typeof(e){return(entityStore_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 Ue=Object.create(null),He=function delModifier(){return Ue},ze=Object.create(null),We=function(){function EntityStore(e,t){var n=this;this.policies=e,this.group=t,this.data=Object.create(null),this.rootIds=Object.create(null),this.refs=Object.create(null),this.getFieldValue=function(e,t){return(0,Ce.Yk)(e)?n.get(e.__ref,t):e&&e[t]},this.canRead=function(e){return(0,Ce.Yk)(e)?n.has(e.__ref):"object"===entityStore_typeof(e)},this.toReference=function(e,t){if("string"===typeof e)return(0,Ce.kQ)(e);if((0,Ce.Yk)(e))return e;var r=n.policies.identify(e)[0];if(r){var i=(0,Ce.kQ)(r);return t&&n.merge(r,e),i}}}return EntityStore.prototype.toObject=function(){return(0,D.pi)({},this.data)},EntityStore.prototype.has=function(e){return void 0!==this.lookup(e,!0)},EntityStore.prototype.get=function(e,t){if(this.group.depend(e,t),Ke.call(this.data,e)){var n=this.data[e];if(n&&Ke.call(n,t))return n[t]}return"__typename"===t&&Ke.call(this.policies.rootTypenamesById,e)?this.policies.rootTypenamesById[e]:this instanceof Ye?this.parent.get(e,t):void 0},EntityStore.prototype.lookup=function(e,t){return t&&this.group.depend(e,"__exists"),Ke.call(this.data,e)?this.data[e]:this instanceof Ye?this.parent.lookup(e,t):this.policies.rootTypenamesById[e]?Object.create(null):void 0},EntityStore.prototype.merge=function(e,t){var n=this,r=this.lookup(e),i=new Pe(storeObjectReconciler).merge(r,t);if(this.data[e]=i,i!==r&&(delete this.refs[e],this.group.caching)){var d=Object.create(null);r||(d.__exists=1),Object.keys(t).forEach((function(e){if(!r||r[e]!==i[e]){d[e]=1;var t=helpers_fieldNameFromStoreName(e);t===e||n.policies.hasKeyArgs(i.__typename,t)||(d[t]=1),void 0!==i[e]||n instanceof Ye||delete i[e]}})),Object.keys(d).forEach((function(t){return n.group.dirty(e,t)}))}},EntityStore.prototype.modify=function(e,t){var n=this,r=this.lookup(e);if(r){var i=Object.create(null),d=!1,h=!0,y={DELETE:Ue,INVALIDATE:ze,isReference:Ce.Yk,toReference:this.toReference,canRead:this.canRead,readField:function readField(t,r){return n.policies.readField("string"===typeof t?{fieldName:t,from:r||(0,Ce.kQ)(e)}:t,{store:n})}};if(Object.keys(r).forEach((function(g){var v=helpers_fieldNameFromStoreName(g),b=r[g];if(void 0!==b){var _="function"===typeof t?t:t[g]||t[v];if(_){var w=_===He?Ue:_(b,(0,D.pi)((0,D.pi)({},y),{fieldName:v,storeFieldName:g,storage:n.getStorage(e,g)}));w===ze?n.group.dirty(e,g):(w===Ue&&(w=void 0),w!==b&&(i[g]=w,d=!0,b=w))}void 0!==b&&(h=!1)}})),d)return this.merge(e,i),h&&(this instanceof Ye?this.data[e]=void 0:delete this.data[e],this.group.dirty(e,"__exists")),!0}return!1},EntityStore.prototype.delete=function(e,t,n){var r,i=this.lookup(e);if(i){var d=this.getFieldValue(i,"__typename"),h=t&&n?this.policies.getStoreFieldName({typename:d,fieldName:t,args:n}):t;return this.modify(e,h?((r={})[h]=He,r):He)}return!1},EntityStore.prototype.evict=function(e){var t=!1;return e.id&&(Ke.call(this.data,e.id)&&(t=this.delete(e.id,e.fieldName,e.args)),this instanceof Ye&&(t=this.parent.evict(e)||t),(e.fieldName||t)&&this.group.dirty(e.id,e.fieldName||"__exists")),t},EntityStore.prototype.clear=function(){this.replace(null)},EntityStore.prototype.extract=function(){var e=this,t=this.toObject(),n=[];return this.getRootIdSet().forEach((function(t){Ke.call(e.policies.rootTypenamesById,t)||n.push(t)})),n.length&&(t.__META={extraRootIds:n.sort()}),t},EntityStore.prototype.replace=function(e){var t=this;if(Object.keys(this.data).forEach((function(n){e&&Ke.call(e,n)||t.delete(n)})),e){var n=e.__META,r=(0,D._T)(e,["__META"]);Object.keys(r).forEach((function(e){t.merge(e,r[e])})),n&&n.extraRootIds.forEach(this.retain,this)}},EntityStore.prototype.retain=function(e){return this.rootIds[e]=(this.rootIds[e]||0)+1},EntityStore.prototype.release=function(e){if(this.rootIds[e]>0){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 Ye?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){Ke.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 Ye;)i=i.parent;r.forEach((function(e){return i.delete(e)}))}return r},EntityStore.prototype.findChildRefIds=function(e){if(!Ke.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,Ce.Yk)(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,Ce.Yk)(r)&&!i.policies.rootTypenamesById[r.__ref]&&!i.store.has(r.__ref))return{result:{},missing:[missingFromInvariant(new Ae.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(shouldInclude(e,d))if((0,Ce.My)(e)){var y=h.readField({fieldName:e.name.value,field:e,variables:i.variables,from:r},i),v=(0,Ce.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?addTypenameToDocument.added(e)||getMissing().push(missingFromInvariant(new Ae.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,Ae.kG)(i.path.pop()===v)}else{var E=(0,Ee.hi)(e,i.fragmentMap);E&&h.fragmentMatches(E,b)&&E.selectionSet.selections.forEach(_.add,_)}})),v.result=mergeDeepArray(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,Ae.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,Ae.kG)(d.path.pop()===t),e))})),missing:t}},StoreReader}();var Xe=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,xe.$H)(t),y=function makeProcessedFieldsMerger(){return new Pe}();d=(0,D.pi)((0,D.pi)({},(0,xe.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,Ee.F)((0,xe.kU)(t))}});if(!(0,Ce.Yk)(g))throw new Ae.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,Ce.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,Ce.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(shouldInclude(e,d.variables))if((0,Ce.My)(e)){var i=(0,Ce.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,C=y.getMergeFunction(S,e.name.value,w);C?b.info={field:e,typename:S,merge:C}:maybeRecycleChildMergeTree(h,v),E=d.merge(E,((n={})[v]=_,n))}else if(y.usingPossibleTypes&&!hasDirectives(["defer","client"],e))throw new Ae.ej(8)}else{var O=(0,Ee.hi)(e,d.fragmentMap);O&&y.fragmentMatches(O,S,r,d.variables)&&O.selectionSet.selections.forEach(k.add,k)}})),"string"===typeof n){var C=(0,Ce.kQ)(n);return h.map.size&&(E=this.applyMerges(h,C,E,d)),d.store.merge(n,E),C}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,Ce.Yk)(n)){var y,g=Array.isArray(n)||!(0,Ce.Yk)(t)&&!storeValueIsStoreObject(t)?void 0:t,v=n;g&&!i&&(i=[(0,Ce.Yk)(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,Ae.kG)(i.pop()===t)})),y&&(n=Array.isArray(v)?v.slice(0):(0,D.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}(),$e=[];function getChildMergeTree(e,t){var n=e.map;return n.has(t)||n.set(t,$e.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||($e.push(r),n.delete(t))}new Set;var Ze=new pe,et=new WeakMap;function getCacheInfo(e){var t=et.get(e);return t||et.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=Ze.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,Ce.NC)(e.field,e.variables):null}var tt=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))},nt=function nullKeyFieldsFn(){},rt=function simpleKeyArgsFn(e,t){return t.fieldName},ot=function mergeTrueFn(e,t,n){return(0,n.mergeObjects)(e,t)},it=function mergeFalseFn(e,t){return t},at=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,D.pi)({dataIdFromObject:tt},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,Ce.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,D._T)(r,["queryType","mutationType","subscriptionType"]);i&&t.setRootTypename("Query",n),d&&t.setRootTypename("Mutation",n),h&&t.setRootTypename("Subscription",n),Ke.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?ot:!1===t?it:e.merge}setMerge(r,t.merge),r.keyFn=!1===i?nt: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?rt: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||rt)}))},Policies.prototype.setRootTypename=function(e,t){void 0===t&&(t=e);var n="ROOT_"+e.toUpperCase(),r=this.rootTypenamesById[n];t!==r&&((0,Ae.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(Ve);r&&r[0]===e||t.fuzzySubtypes.set(e,new RegExp(e))}))}))},Policies.prototype.getTypePolicy=function(e){var t=this;if(!Ke.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,D._T)(r,["fields"]);Object.assign(n,d),Object.assign(n.fields,i)}))}var i=this.toBeAdded[e];return i&&i.length&&i.splice(0).forEach((function(n){t.updateTypePolicy(e,n)})),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;b0&&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;i80&&(y=h+printer_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+printer_wrap(" ",join(e.directives," "))},InlineFragment:function InlineFragment(e){var t=e.typeCondition,n=e.directives,r=e.selectionSet;return join(["...",printer_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(printer_wrap("(",join(r,", "),")")," ")+"on ".concat(n," ").concat(printer_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?function printBlockString(e){var t=arguments.length>1&&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,"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+printer_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,printer_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)?printer_wrap("(\n",indent(join(n,"\n")),"\n)"):printer_wrap("(",join(n,", "),")"))+": "+r+printer_wrap(" ",join(i," "))})),InputValueDefinition:addDescription((function(e){var t=e.name,n=e.type,r=e.defaultValue,i=e.directives;return join([t+": "+n,printer_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,printer_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)?printer_wrap("(\n",indent(join(n,"\n")),"\n)"):printer_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,printer_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,printer_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 printer_wrap("{\n",indent(join(e,"\n")),"\n}")}function printer_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 printer_wrap(" ",e.replace(/\n/g,"\n "))}function isMultiline(e){return-1!==e.indexOf("\n")}function hasMultilineItems(e){return null!=e&&e.some(isMultiline)}var It={http:{includeQuery:!0,includeExtensions:!1},headers:{accept:"*/*","content-type":"application/json"},options:{method:"POST"}};function fromError(e){return new(Ct())((function(t){t.error(e)}))}var Dt=function createHttpLink(e){void 0===e&&(e={});var t=e.uri,n=void 0===t?"/graphql":t,r=e.fetch,i=e.includeExtensions,d=e.useGETForQueries,h=e.includeUnusedVariables,y=void 0!==h&&h,g=(0,D._T)(e,["uri","fetch","includeExtensions","useGETForQueries","includeUnusedVariables"]);!function checkFetcher(e){if(!e&&"undefined"===typeof fetch)throw new Ae.ej(22)}(r),r||(r=fetch);var v={http:{includeExtensions:i},options:g.fetchOptions,credentials:g.credentials,headers:g.headers};return new St.i((function(e){var t=function selectURI(e,t){return e.getContext().uri||("function"===typeof t?t(e):t||"/graphql")}(e,n),i=e.getContext(),h={};if(i.clientAwareness){var g=i.clientAwareness,b=g.name,_=g.version;b&&(h["apollographql-client-name"]=b),_&&(h["apollographql-client-version"]=_)}var w,E=(0,D.pi)((0,D.pi)({},h),i.headers),S={http:i.http,options:i.fetchOptions,credentials:i.credentials,headers:E},k=function selectHttpOptionsAndBody(e,t){for(var n=[],r=2;r=300&&Tt(t,n,"Response not successful: Received status code "+t.status),Array.isArray(n)||At.call(n,"data")||At.call(n,"errors")||Tt(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(){w&&w.abort()}}))}))},Lt=function(e){function HttpLink(t){void 0===t&&(t={});var n=e.call(this,Dt(t).request)||this;return n.options=t,n}return(0,D.ZT)(HttpLink,e),HttpLink}(St.i),Nt=St.i.execute;function compact(){for(var e=[],t=0;t0||!1}function isNonEmptyArray(e){return Array.isArray(e)&&e.length>0}function iterateObserversSafely(e,t,n){var r=[];e.forEach((function(e){return e[t]&&r.push(e)})),r.forEach((function(e){return e[t](n)}))}function fixObservableSubclass(e){function set(t){Object.defineProperty(e,t,{value:Ct()})}return"function"===typeof Symbol&&Symbol.species&&set(Symbol.species),set("@@species"),e}function Concast_isPromiseLike(e){return e&&"function"===typeof e.then}var Pt=function(e){function Concast(t){var n=e.call(this,(function(e){return n.addObserver(e),function(){return n.removeObserver(e)}}))||this;return n.observers=new Set,n.addCount=0,n.promise=new Promise((function(e,t){n.resolve=e,n.reject=t})),n.handlers={next:function next(e){null!==n.sub&&(n.latest=["next",e],iterateObserversSafely(n.observers,"next",e))},error:function error(e){var t=n.sub;null!==t&&(t&&Promise.resolve().then((function(){return t.unsubscribe()})),n.sub=null,n.latest=["error",e],n.reject(e),iterateObserversSafely(n.observers,"error",e))},complete:function complete(){if(null!==n.sub){var e=n.sources.shift();e?Concast_isPromiseLike(e)?e.then((function(e){return n.sub=e.subscribe(n.handlers)})):n.sub=e.subscribe(n.handlers):(n.sub=null,n.latest&&"next"===n.latest[0]?n.resolve(n.latest[1]):n.resolve(),iterateObserversSafely(n.observers,"complete"))}}},n.cancel=function(e){n.reject(e),n.sources=[],n.handlers.complete()},n.promise.catch((function(e){})),"function"===typeof t&&(t=[new(Ct())(t)]),Concast_isPromiseLike(t)?t.then((function(e){return n.start(e)}),n.handlers.error):n.start(t),n}return(0,D.ZT)(Concast,e),Concast.prototype.start=function(e){void 0===this.sub&&(this.sources=Array.from(e),this.handlers.complete())},Concast.prototype.deliverLastMessage=function(e){if(this.latest){var t=this.latest[0],n=e[t];n&&n.call(e,this.latest[1]),null===this.sub&&"next"===t&&e.complete&&e.complete()}},Concast.prototype.addObserver=function(e){this.observers.has(e)||(this.deliverLastMessage(e),this.observers.add(e),++this.addCount)},Concast.prototype.removeObserver=function(e,t){this.observers.delete(e)&&--this.addCount<1&&!t&&this.handlers.error(new Error("Observable cancelled prematurely"))},Concast.prototype.cleanup=function(e){var t=this,n=!1,r=function once(){n||(n=!0,t.observers.delete(i),e())},i={next:r,error:r,complete:r},d=this.addCount;this.addObserver(i),this.addCount=d},Concast}(Ct());function asyncMap(e,t,n){return new(Ct())((function(r){var i=r.next,d=r.error,h=r.complete,y=0,g=!1,v={then:function then(e){return new Promise((function(t){return t(e())}))}};function makeCallback(e,t){return e?function(t){++y;var n=function both(){return e(t)};v=v.then(n,n).then((function(e){--y,i&&i.call(r,e),g&&b.complete()}),(function(e){throw--y,e})).catch((function(e){d&&d.call(r,e)}))}:function(e){return t&&t.call(r,e)}}var b={next:makeCallback(t,i),error:makeCallback(n,d),complete:function complete(){g=!0,y||h&&h.call(r)}},_=e.subscribe(b);return function(){return _.unsubscribe()}}))}fixObservableSubclass(Pt);var Rt,jt=function(e){function ApolloError(t){var n=t.graphQLErrors,r=t.networkError,i=t.errorMessage,d=t.extraInfo,h=e.call(this,i)||this;return h.graphQLErrors=n||[],h.networkError=r||null,h.message=i||function generateErrorMessage(e){var t="";return isNonEmptyArray(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$/,"")}(h),h.extraInfo=d,h.__proto__=ApolloError.prototype,h}return(0,D.ZT)(ApolloError,e),ApolloError}(Error);function isNetworkRequestInFlight(e){return!!e&&e<7}!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"}(Rt||(Rt={}));var Mt=Object.prototype.toString;function cloneDeep(e){return cloneDeepHelper(e)}function cloneDeepHelper(e,t){switch(Mt.call(e)){case"[object Array]":if((t=t||new Map).has(e))return t.get(e);var n=e.slice(0);return t.set(e,n),n.forEach((function(e,r){n[r]=cloneDeepHelper(e,t)})),n;case"[object Object]":if((t=t||new Map).has(e))return t.get(e);var r=Object.create(Object.getPrototypeOf(e));return t.set(e,r),Object.keys(e).forEach((function(n){r[n]=cloneDeepHelper(e[n],t)})),r;default:return e}}var Ft=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,compact(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,Ae.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"},Rt.poll).then(i,i):i())},i=function poll(){var t=e.pollingInfo;t&&(clearTimeout(t.timeout),t.timeout=setTimeout(r,t.interval))};i()}}else t&&(clearTimeout(t.timeout),delete this.pollingInfo)},Reobserver}(),qt=function(e){function ObservableQuery(t){var n=t.queryManager,r=t.queryInfo,i=t.options,d=e.call(this,(function(e){return d.onSubscribe(e)}))||this;d.observers=new Set,d.subscriptions=new Set,d.observer={next:function next(e){(d.lastError||d.isDifferentFromLastResult(e))&&(d.updateLastResult(e),iterateObserversSafely(d.observers,"next",e))},error:function error(e){d.updateLastResult((0,D.pi)((0,D.pi)({},d.lastResult),{error:e,errors:e.graphQLErrors,networkStatus:Rt.error,loading:!1})),iterateObserversSafely(d.observers,"error",d.lastError=e)}},d.isTornDown=!1,d.options=i,d.queryId=n.generateQueryId();var h=(0,xe.$H)(i.query);return d.queryName=h&&h.name&&h.name.value,d.queryManager=n,d.queryInfo=r,d}return(0,D.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||Rt.ready,r=(0,D.pi)((0,D.pi)({},t),{loading:isNetworkRequestInFlight(n),networkStatus:n});if(this.isTornDown)return r;var i=this.options.fetchPolicy,d=void 0===i?"cache-first":i;if("no-cache"===d||"network-only"===d)delete r.partial;else if(!r.data||!this.queryManager.transform(this.options.query).hasForcedResolvers){var h=this.queryInfo.getDiff();r.data=h.complete||this.options.returnPartialData?h.result:void 0,h.complete?(r.networkStatus!==Rt.loading||"cache-first"!==d&&"cache-only"!==d||(r.networkStatus=Rt.ready,r.loading=!1),delete r.partial):r.partial=!0}return e&&this.updateLastResult(r),r},ObservableQuery.prototype.isDifferentFromLastResult=function(e){return!equality_esm_equal(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&&!equality_esm_equal(this.options.variables,e)&&(t.variables=this.options.variables=(0,D.pi)((0,D.pi)({},this.options.variables),e)),this.newReobserver(!1).reobserve(t,Rt.refetch)},ObservableQuery.prototype.fetchMore=function(e){var t=this,n=(0,D.pi)((0,D.pi)({},e.query?e:(0,D.pi)((0,D.pi)((0,D.pi)({},this.options),e),{variables:(0,D.pi)((0,D.pi)({},this.options.variables),e.variables)})),{fetchPolicy:"no-cache"}),r=this.queryManager.generateQueryId();return n.notifyOnNetworkStatusChange&&(this.queryInfo.networkStatus=Rt.fetchMore,this.observe()),this.queryManager.fetchQuery(r,n,Rt.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(r),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(equality_esm_equal(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,Rt.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:cloneDeep(e),isNonEmptyArray(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(re){}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,r=this.queryId;return n.setObservableQuery(this),new Ft(this.observer,e?this.options:(0,D.pi)({},this.options),(function(e,i){return n.setObservableQuery(t),n.fetchQueryObservable(r,e,i)}),!n.ssrMode&&function(){return!isNetworkRequestInFlight(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}(Ct());function defaultSubscriptionObserverErrorCallback(e){}fixObservableSubclass(qt);var Bt=function(){function LocalState(e){var t=e.cache,n=e.client,r=e.resolvers,i=e.fragmentMatcher;this.cache=t,n&&(this.client=n),r&&this.addResolvers(r),i&&this.setFragmentMatcher(i)}return LocalState.prototype.addResolvers=function(e){var t=this;this.resolvers=this.resolvers||{},Array.isArray(e)?e.forEach((function(e){t.resolvers=mergeDeep(t.resolvers,e)})):this.resolvers=mergeDeep(this.resolvers,e)},LocalState.prototype.setResolvers=function(e){this.resolvers={},this.addResolvers(e)},LocalState.prototype.getResolvers=function(){return this.resolvers||{}},LocalState.prototype.runResolvers=function(e){var t=e.document,n=e.remoteResult,r=e.context,i=e.variables,d=e.onlyRunForcedResolvers,h=void 0!==d&&d;return(0,D.mG)(this,void 0,void 0,(function(){return(0,D.Jh)(this,(function(e){return t?[2,this.resolveDocument(t,n.data,r,i,this.fragmentMatcher,h).then((function(e){return(0,D.pi)((0,D.pi)({},n),{data:e.result})}))]:[2,n]}))}))},LocalState.prototype.setFragmentMatcher=function(e){this.fragmentMatcher=e},LocalState.prototype.getFragmentMatcher=function(){return this.fragmentMatcher},LocalState.prototype.clientQuery=function(e){return hasDirectives(["client"],e)&&this.resolvers?e:null},LocalState.prototype.serverQuery=function(e){return function removeClientSetsFromDocument(e){(0,xe.A$)(e);var t=removeDirectivesFromDocument([{test:function test(e){return"client"===e.name.value},remove:!0}],e);return t&&(t=visit(t,{FragmentDefinition:{enter:function enter(e){if(e.selectionSet&&e.selectionSet.selections.every((function(e){return(0,Ce.My)(e)&&"__typename"===e.name.value})))return null}}})),t}(e)},LocalState.prototype.prepareContext=function(e){var t=this.cache;return(0,D.pi)((0,D.pi)({},e),{cache:t,getCacheKey:function getCacheKey(e){return t.identify(e)}})},LocalState.prototype.addExportedVariables=function(e,t,n){return void 0===t&&(t={}),void 0===n&&(n={}),(0,D.mG)(this,void 0,void 0,(function(){return(0,D.Jh)(this,(function(r){return e?[2,this.resolveDocument(e,this.buildRootValueFromCache(e,t)||{},this.prepareContext(n),t).then((function(e){return(0,D.pi)((0,D.pi)({},t),e.exportedVariables)}))]:[2,(0,D.pi)({},t)]}))}))},LocalState.prototype.shouldForceResolvers=function(e){var t=!1;return visit(e,{Directive:{enter:function enter(e){if("client"===e.name.value&&e.arguments&&(t=e.arguments.some((function(e){return"always"===e.name.value&&"BooleanValue"===e.value.kind&&!0===e.value.value}))))return Te}}}),t},LocalState.prototype.buildRootValueFromCache=function(e,t){return this.cache.diff({query:buildQueryFromSelectionSet(e),variables:t,returnPartialData:!0,optimistic:!1}).result},LocalState.prototype.resolveDocument=function(e,t,n,r,i,d){return void 0===n&&(n={}),void 0===r&&(r={}),void 0===i&&(i=function fragmentMatcher(){return!0}),void 0===d&&(d=!1),(0,D.mG)(this,void 0,void 0,(function(){var h,y,g,v,b,_,w,E,S;return(0,D.Jh)(this,(function(k){return h=(0,xe.p$)(e),y=(0,xe.kU)(e),g=(0,Ee.F)(y),v=h.operation,b=v?v.charAt(0).toUpperCase()+v.slice(1):"Query",w=(_=this).cache,E=_.client,S={fragmentMap:g,context:(0,D.pi)((0,D.pi)({},n),{cache:w,client:E}),variables:r,fragmentMatcher:i,defaultOperationType:b,exportedVariables:{},onlyRunForcedResolvers:d},[2,this.resolveSelectionSet(h.selectionSet,t,S).then((function(e){return{result:e,exportedVariables:S.exportedVariables}}))]}))}))},LocalState.prototype.resolveSelectionSet=function(e,t,n){return(0,D.mG)(this,void 0,void 0,(function(){var r,i,d,h,y,g=this;return(0,D.Jh)(this,(function(v){return r=n.fragmentMap,i=n.context,d=n.variables,h=[t],y=function execute(e){return(0,D.mG)(g,void 0,void 0,(function(){var y,g;return(0,D.Jh)(this,(function(v){return shouldInclude(e,d)?(0,Ce.My)(e)?[2,this.resolveField(e,t,n).then((function(t){var n;"undefined"!==typeof t&&h.push(((n={})[(0,Ce.u2)(e)]=t,n))}))]:((0,Ce.Ao)(e)?y=e:(y=r[e.name.value],(0,Ae.kG)(y,11)),y&&y.typeCondition&&(g=y.typeCondition.name.value,n.fragmentMatcher(t,g,i))?[2,this.resolveSelectionSet(y.selectionSet,t,n).then((function(e){h.push(e)}))]:[2]):[2]}))}))},[2,Promise.all(e.selections.map(y)).then((function(){return mergeDeepArray(h)}))]}))}))},LocalState.prototype.resolveField=function(e,t,n){return(0,D.mG)(this,void 0,void 0,(function(){var r,i,d,h,y,g,v,b,_,w=this;return(0,D.Jh)(this,(function(E){return r=n.variables,i=e.name.value,d=(0,Ce.u2)(e),h=i!==d,y=t[d]||t[i],g=Promise.resolve(y),n.onlyRunForcedResolvers&&!this.shouldForceResolvers(e)||(v=t.__typename||n.defaultOperationType,(b=this.resolvers&&this.resolvers[v])&&(_=b[h?i:d])&&(g=Promise.resolve(Ze.withValue(this.cache,_,[t,(0,Ce.NC)(e,r),n.context,{field:e,fragmentMap:n.fragmentMap}])))),[2,g.then((function(t){return void 0===t&&(t=y),e.directives&&e.directives.forEach((function(e){"export"===e.name.value&&e.arguments&&e.arguments.forEach((function(e){"as"===e.name.value&&"StringValue"===e.value.kind&&(n.exportedVariables[e.value.value]=t)}))})),e.selectionSet?null==t?t:Array.isArray(t)?w.resolveSubSelectedArray(e,t,n):e.selectionSet?w.resolveSelectionSet(e.selectionSet,t,n):void 0:t}))]}))}))},LocalState.prototype.resolveSubSelectedArray=function(e,t,n){var r=this;return Promise.all(t.map((function(t){return null===t?null:Array.isArray(t)?r.resolveSubSelectedArray(e,t,n):e.selectionSet?r.resolveSelectionSet(e.selectionSet,t,n):void 0})))},LocalState}(),Qt=new(Qe?WeakMap:Map);function wrapDestructiveCacheMethod(e,t){var n=e[t];"function"===typeof n&&(e[t]=function(){return Qt.set(e,(Qt.get(e)+1)%1e15),n.apply(this,arguments)})}function cancelNotifyTimeout(e){e.notifyTimeout&&(clearTimeout(e.notifyTimeout),e.notifyTimeout=void 0)}var Kt=function(){function QueryInfo(e){this.cache=e,this.listeners=new Set,this.document=null,this.lastRequestId=1,this.subscriptions=new Set,this.stopped=!1,this.dirty=!1,this.diff=null,this.observableQuery=null,Qt.has(e)||(Qt.set(e,0),wrapDestructiveCacheMethod(e,"evict"),wrapDestructiveCacheMethod(e,"modify"),wrapDestructiveCacheMethod(e,"reset"))}return QueryInfo.prototype.init=function(e){var t=e.networkStatus||Rt.loading;return this.variables&&this.networkStatus!==Rt.loading&&!equality_esm_equal(this.variables,e.variables)&&(t=Rt.setVariables),equality_esm_equal(e.variables,this.variables)||(this.diff=null),Object.assign(this,{document:e.document,variables:e.variables,networkError:null,graphQLErrors:this.graphQLErrors||[],networkStatus:t}),e.observableQuery&&this.setObservableQuery(e.observableQuery),e.lastRequestId&&(this.lastRequestId=e.lastRequestId),this},QueryInfo.prototype.reset=function(){cancelNotifyTimeout(this),this.diff=null,this.dirty=!1},QueryInfo.prototype.getDiff=function(e){return void 0===e&&(e=this.variables),this.diff&&equality_esm_equal(e,this.variables)?this.diff:(this.updateWatch(this.variables=e),this.diff=this.cache.diff({query:this.document,variables:e,returnPartialData:!0,optimistic:!0}))},QueryInfo.prototype.setDiff=function(e){var t=this,n=this.diff;this.diff=e,this.dirty||(e&&e.result)===(n&&n.result)||(this.dirty=!0,this.notifyTimeout||(this.notifyTimeout=setTimeout((function(){return t.notify()}),0)))},QueryInfo.prototype.setObservableQuery=function(e){var t=this;e!==this.observableQuery&&(this.oqListener&&this.listeners.delete(this.oqListener),this.observableQuery=e,e?(e.queryInfo=this,this.listeners.add(this.oqListener=function(){t.getDiff().fromOptimisticTransaction?e.observe():e.reobserve()})):delete this.oqListener)},QueryInfo.prototype.notify=function(){var e=this;cancelNotifyTimeout(this),this.shouldNotify()&&this.listeners.forEach((function(t){return t(e)})),this.dirty=!1},QueryInfo.prototype.shouldNotify=function(){if(!this.dirty||!this.listeners.size)return!1;if(isNetworkRequestInFlight(this.networkStatus)&&this.observableQuery){var e=this.observableQuery.options.fetchPolicy;if("cache-only"!==e&&"cache-and-network"!==e)return!1}return!0},QueryInfo.prototype.stop=function(){if(!this.stopped){this.stopped=!0,this.reset(),this.cancel(),delete this.cancel,this.subscriptions.forEach((function(e){return e.unsubscribe()}));var e=this.observableQuery;e&&e.stopPolling()}},QueryInfo.prototype.cancel=function(){},QueryInfo.prototype.updateWatch=function(e){var t=this;void 0===e&&(e=this.variables);var n=this.observableQuery;n&&"no-cache"===n.options.fetchPolicy||this.lastWatch&&this.lastWatch.query===this.document&&equality_esm_equal(e,this.lastWatch.variables)||(this.cancel(),this.cancel=this.cache.watch(this.lastWatch={query:this.document,variables:e,optimistic:!0,callback:function callback(e){return t.setDiff(e)}}))},QueryInfo.prototype.shouldWrite=function(e,t){var n=this.lastWrite;return!(n&&n.dmCount===Qt.get(this.cache)&&equality_esm_equal(t,n.variables)&&equality_esm_equal(e.data,n.result.data))},QueryInfo.prototype.markResult=function(e,t,n){var r=this;this.graphQLErrors=isNonEmptyArray(e.errors)?e.errors:[],this.reset(),"no-cache"===t.fetchPolicy?this.diff={result:e.data,complete:!0}:!this.stopped&&n&&(shouldWriteResult(e,t.errorPolicy)?this.cache.performTransaction((function(n){if(r.shouldWrite(e,t.variables))n.writeQuery({query:r.document,data:e.data,variables:t.variables}),r.lastWrite={result:e,variables:t.variables,dmCount:Qt.get(r.cache)};else if(r.diff&&r.diff.complete)return void(e.data=r.diff.result);var i=n.diff({query:r.document,variables:t.variables,returnPartialData:!0,optimistic:!0});r.stopped||r.updateWatch(t.variables),r.diff=i,i.complete&&(e.data=i.result)})):this.lastWrite=void 0)},QueryInfo.prototype.markReady=function(){return this.networkError=null,this.networkStatus=Rt.ready},QueryInfo.prototype.markError=function(e){return this.networkStatus=Rt.error,this.lastWrite=void 0,this.reset(),e.graphQLErrors&&(this.graphQLErrors=e.graphQLErrors),e.networkError&&(this.networkError=e.networkError),e},QueryInfo}();function shouldWriteResult(e,t){void 0===t&&(t="none");var n="ignore"===t||"all"===t,r=!graphQLResultHasError(e);return!r&&n&&e.data&&(r=!0),r}var Vt=Object.prototype.hasOwnProperty,Ut=function(){function QueryManager(e){var t=e.cache,n=e.link,r=e.queryDeduplication,i=void 0!==r&&r,d=e.onBroadcast,h=e.ssrMode,y=void 0!==h&&h,g=e.clientAwareness,v=void 0===g?{}:g,b=e.localState,_=e.assumeImmutableResults;this.clientAwareness={},this.queries=new Map,this.fetchCancelFns=new Map,this.transformCache=new(Qe?WeakMap:Map),this.queryIdCounter=1,this.requestIdCounter=1,this.mutationIdCounter=1,this.inFlightLinkObservables=new Map,this.cache=t,this.link=n,this.queryDeduplication=i,this.clientAwareness=v,this.localState=b||new Bt({cache:t}),this.ssrMode=y,this.assumeImmutableResults=!!_,(this.onBroadcast=d)&&(this.mutationStore=Object.create(null))}return QueryManager.prototype.stop=function(){var e=this;this.queries.forEach((function(t,n){e.stopQueryNoBroadcast(n)})),this.cancelPendingFetches(new Ae.ej(12))},QueryManager.prototype.cancelPendingFetches=function(e){this.fetchCancelFns.forEach((function(t){return t(e)})),this.fetchCancelFns.clear()},QueryManager.prototype.mutate=function(e){var t=e.mutation,n=e.variables,r=e.optimisticResponse,i=e.updateQueries,d=e.refetchQueries,h=void 0===d?[]:d,y=e.awaitRefetchQueries,g=void 0!==y&&y,v=e.update,b=e.errorPolicy,_=void 0===b?"none":b,w=e.fetchPolicy,E=e.context,S=void 0===E?{}:E;return(0,D.mG)(this,void 0,void 0,(function(){var e,d,y;return(0,D.Jh)(this,(function(b){switch(b.label){case 0:return(0,Ae.kG)(t,13),(0,Ae.kG)(!w||"no-cache"===w,14),e=this.generateMutationId(),t=this.transform(t).document,n=this.getVariables(t,n),this.transform(t).hasClientExports?[4,this.localState.addExportedVariables(t,n,S)]:[3,2];case 1:n=b.sent(),b.label=2;case 2:return d=this.mutationStore&&(this.mutationStore[e]={mutation:t,variables:n,loading:!0,error:null}),r&&this.markMutationOptimistic(r,{mutationId:e,document:t,variables:n,errorPolicy:_,updateQueries:i,update:v}),this.broadcastQueries(),y=this,[2,new Promise((function(b,E){var k,C;y.getObservableFromLink(t,(0,D.pi)((0,D.pi)({},S),{optimisticResponse:r}),n,!1).subscribe({next:function next(r){if(graphQLResultHasError(r)&&"none"===_)C=new jt({graphQLErrors:r.errors});else{if(d&&(d.loading=!1,d.error=null),"no-cache"!==w)try{y.markMutationResult({mutationId:e,result:r,document:t,variables:n,errorPolicy:_,updateQueries:i,update:v})}catch(h){return void(C=new jt({networkError:h}))}k=r}},error:function error(t){d&&(d.loading=!1,d.error=t),r&&y.cache.removeOptimistic(e),y.broadcastQueries(),E(new jt({networkError:t}))},complete:function complete(){if(C&&d&&(d.loading=!1,d.error=C),r&&y.cache.removeOptimistic(e),y.broadcastQueries(),C)E(C);else{"function"===typeof h&&(h=h(k));var t=[];isNonEmptyArray(h)&&h.forEach((function(e){if("string"===typeof e)y.queries.forEach((function(n){var r=n.observableQuery;r&&r.hasObservers()&&r.queryName===e&&t.push(r.refetch())}));else{var n={query:e.query,variables:e.variables,fetchPolicy:"network-only"};e.context&&(n.context=e.context),t.push(y.query(n))}})),Promise.all(g?t:[]).then((function(){"ignore"===_&&k&&graphQLResultHasError(k)&&delete k.errors,b(k)}),E)}}})}))]}}))}))},QueryManager.prototype.markMutationResult=function(e,t){var n=this;if(void 0===t&&(t=this.cache),shouldWriteResult(e.result,e.errorPolicy)){var r=[{result:e.result.data,dataId:"ROOT_MUTATION",query:e.document,variables:e.variables}],i=e.updateQueries;i&&this.queries.forEach((function(d,h){var y=d.observableQuery,g=y&&y.queryName;if(g&&Vt.call(i,g)){var v=i[g],b=n.queries.get(h),_=b.document,w=b.variables,E=t.diff({query:_,variables:w,returnPartialData:!0,optimistic:!1}),S=E.result;if(E.complete&&S){var k=v(S,{mutationResult:e.result,queryName:_&&(0,xe.rY)(_)||void 0,queryVariables:w});k&&r.push({result:k,dataId:"ROOT_QUERY",query:_,variables:w})}}})),t.performTransaction((function(t){r.forEach((function(e){return t.write(e)}));var n=e.update;n&&n(t,e.result)}),null)}},QueryManager.prototype.markMutationOptimistic=function(e,t){var n=this,r="function"===typeof e?e(t.variables):e;return this.cache.recordOptimisticTransaction((function(e){try{n.markMutationResult((0,D.pi)((0,D.pi)({},t),{result:{data:r}}),e)}catch(i){}}),t.mutationId)},QueryManager.prototype.fetchQuery=function(e,t,n){return this.fetchQueryObservable(e,t,n).promise},QueryManager.prototype.getQueryStore=function(){var e=Object.create(null);return this.queries.forEach((function(t,n){e[n]={variables:t.variables,networkStatus:t.networkStatus,networkError:t.networkError,graphQLErrors:t.graphQLErrors}})),e},QueryManager.prototype.resetErrors=function(e){var t=this.queries.get(e);t&&(t.networkError=void 0,t.graphQLErrors=[])},QueryManager.prototype.transform=function(e){var t=this.transformCache;if(!t.has(e)){var n=this.cache.transformDocument(e),r=function removeConnectionDirectiveFromDocument(e){return removeDirectivesFromDocument([De],(0,xe.A$)(e))}(this.cache.transformForLink(n)),i=this.localState.clientQuery(n),d=r&&this.localState.serverQuery(r),h={document:n,hasClientExports:hasClientExports(n),hasForcedResolvers:this.localState.shouldForceResolvers(n),clientQuery:i,serverQuery:d,defaultVars:(0,xe.O4)((0,xe.$H)(n))},y=function add(e){e&&!t.has(e)&&t.set(e,h)};y(e),y(n),y(i),y(d)}return t.get(e)},QueryManager.prototype.getVariables=function(e,t){return(0,D.pi)((0,D.pi)({},this.transform(e).defaultVars),t)},QueryManager.prototype.watchQuery=function(e){"undefined"===typeof(e=(0,D.pi)((0,D.pi)({},e),{variables:this.getVariables(e.query,e.variables)})).notifyOnNetworkStatusChange&&(e.notifyOnNetworkStatusChange=!1);var t=new Kt(this.cache),n=new qt({queryManager:this,queryInfo:t,options:e});return this.queries.set(n.queryId,t),t.init({document:e.query,observableQuery:n,variables:e.variables}),n},QueryManager.prototype.query=function(e){var t=this;(0,Ae.kG)(e.query,15),(0,Ae.kG)("Document"===e.query.kind,16),(0,Ae.kG)(!e.returnPartialData,17),(0,Ae.kG)(!e.pollInterval,18);var n=this.generateQueryId();return this.fetchQuery(n,e).finally((function(){return t.stopQuery(n)}))},QueryManager.prototype.generateQueryId=function(){return String(this.queryIdCounter++)},QueryManager.prototype.generateRequestId=function(){return this.requestIdCounter++},QueryManager.prototype.generateMutationId=function(){return String(this.mutationIdCounter++)},QueryManager.prototype.stopQueryInStore=function(e){this.stopQueryInStoreNoBroadcast(e),this.broadcastQueries()},QueryManager.prototype.stopQueryInStoreNoBroadcast=function(e){var t=this.queries.get(e);t&&t.stop()},QueryManager.prototype.clearStore=function(){return this.cancelPendingFetches(new Ae.ej(19)),this.queries.forEach((function(e){e.observableQuery?e.networkStatus=Rt.loading:e.stop()})),this.mutationStore&&(this.mutationStore=Object.create(null)),this.cache.reset()},QueryManager.prototype.resetStore=function(){var e=this;return this.clearStore().then((function(){return e.reFetchObservableQueries()}))},QueryManager.prototype.reFetchObservableQueries=function(e){var t=this;void 0===e&&(e=!1);var n=[];return this.queries.forEach((function(r,i){var d=r.observableQuery;if(d&&d.hasObservers()){var h=d.options.fetchPolicy;d.resetLastResults(),"cache-only"===h||!e&&"standby"===h||n.push(d.refetch()),t.getQuery(i).setDiff(null)}})),this.broadcastQueries(),Promise.all(n)},QueryManager.prototype.setObservableQuery=function(e){this.getQuery(e.queryId).setObservableQuery(e)},QueryManager.prototype.startGraphQLSubscription=function(e){var t=this,n=e.query,r=e.fetchPolicy,i=e.errorPolicy,d=e.variables,h=e.context,y=void 0===h?{}:h;n=this.transform(n).document,d=this.getVariables(n,d);var g=function makeObservable(e){return t.getObservableFromLink(n,y,e,!1).map((function(d){if("no-cache"!==r&&(shouldWriteResult(d,i)&&t.cache.write({query:n,result:d.data,dataId:"ROOT_SUBSCRIPTION",variables:e}),t.broadcastQueries()),graphQLResultHasError(d))throw new jt({graphQLErrors:d.errors});return d}))};if(this.transform(n).hasClientExports){var v=this.localState.addExportedVariables(n,d,y).then(g);return new(Ct())((function(e){var t=null;return v.then((function(n){return t=n.subscribe(e)}),e.error),function(){return t&&t.unsubscribe()}}))}return g(d)},QueryManager.prototype.stopQuery=function(e){this.stopQueryNoBroadcast(e),this.broadcastQueries()},QueryManager.prototype.stopQueryNoBroadcast=function(e){this.stopQueryInStoreNoBroadcast(e),this.removeQuery(e)},QueryManager.prototype.removeQuery=function(e){this.fetchCancelFns.delete(e),this.getQuery(e).stop(),this.queries.delete(e)},QueryManager.prototype.broadcastQueries=function(){this.onBroadcast&&this.onBroadcast(),this.queries.forEach((function(e){return e.notify()}))},QueryManager.prototype.getLocalState=function(){return this.localState},QueryManager.prototype.getObservableFromLink=function(e,t,n,r){var i,d,h=this;void 0===r&&(r=null!==(i=null===t||void 0===t?void 0:t.queryDeduplication)&&void 0!==i?i:this.queryDeduplication);var y=this.transform(e).serverQuery;if(y){var g=this.inFlightLinkObservables,v=this.link,b={query:y,variables:n,operationName:(0,xe.rY)(y)||void 0,context:this.prepareContext((0,D.pi)((0,D.pi)({},t),{forceFetch:!r}))};if(t=b.context,r){var _=g.get(y)||new Map;g.set(y,_);var w=JSON.stringify(n);if(!(d=_.get(w))){var E=new Pt([Nt(v,b)]);_.set(w,d=E),E.cleanup((function(){_.delete(w)&&_.size<1&&g.delete(y)}))}}else d=new Pt([Nt(v,b)])}else d=new Pt([Ct().of({data:{}})]),t=this.prepareContext(t);var S=this.transform(e).clientQuery;return S&&(d=asyncMap(d,(function(e){return h.localState.runResolvers({document:S,remoteResult:e,context:t,variables:n})}))),d},QueryManager.prototype.getResultsFromLink=function(e,t,n){var r=e.lastRequestId=this.generateRequestId();return asyncMap(this.getObservableFromLink(e.document,n.context,n.variables),(function(i){var d=isNonEmptyArray(i.errors);if(r>=e.lastRequestId){if(d&&"none"===n.errorPolicy)throw e.markError(new jt({graphQLErrors:i.errors}));e.markResult(i,n,t),e.markReady()}var h={data:i.data,loading:!1,networkStatus:e.networkStatus||Rt.ready};return d&&"ignore"!==n.errorPolicy&&(h.errors=i.errors),h}),(function(t){var n=function isApolloError(e){return e.hasOwnProperty("graphQLErrors")}(t)?t:new jt({networkError:t});throw r>=e.lastRequestId&&e.markError(n),n}))},QueryManager.prototype.fetchQueryObservable=function(e,t,n){var r=this;void 0===n&&(n=Rt.loading);var i=this.transform(t.query).document,d=this.getVariables(i,t.variables),h=this.getQuery(e),y=h.networkStatus,g=t.fetchPolicy,v=void 0===g?"cache-first":g,b=t.errorPolicy,_=void 0===b?"none":b,w=t.returnPartialData,E=void 0!==w&&w,S=t.notifyOnNetworkStatusChange,k=void 0!==S&&S,C=t.context,O=void 0===C?{}:C;("cache-first"===v||"cache-and-network"===v||"network-only"===v||"no-cache"===v)&&k&&"number"===typeof y&&y!==n&&isNetworkRequestInFlight(n)&&("cache-first"!==v&&(v="cache-and-network"),E=!0);var T=Object.assign({},t,{query:i,variables:d,fetchPolicy:v,errorPolicy:_,returnPartialData:E,notifyOnNetworkStatusChange:k,context:O}),A=function fromVariables(e){return T.variables=e,r.fetchQueryByPolicy(h,T,n)};this.fetchCancelFns.set(e,(function(e){Promise.resolve().then((function(){return x.cancel(e)}))}));var x=new Pt(this.transform(T.query).hasClientExports?this.localState.addExportedVariables(T.query,T.variables,T.context).then(A):A(T.variables));return x.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)})),x},QueryManager.prototype.fetchQueryByPolicy=function(e,t,n){var r=this,i=t.query,d=t.variables,h=t.fetchPolicy,y=t.errorPolicy,g=t.returnPartialData,v=t.context;e.init({document:i,variables:d,networkStatus:n});var b=function readCache(){return e.getDiff(d)},_=function resultsFromCache(t,n){void 0===n&&(n=e.networkStatus||Rt.loading);var h=t.result;var y=function fromData(e){return Ct().of((0,D.pi)({data:e,loading:isNetworkRequestInFlight(n),networkStatus:n},t.complete?null:{partial:!0}))};return r.transform(i).hasForcedResolvers?r.localState.runResolvers({document:i,remoteResult:{data:h},context:v,variables:d,onlyRunForcedResolvers:!0}).then((function(e){return y(e.data)})):y(h)},w=function resultsFromLink(t){return r.getResultsFromLink(e,t,{variables:d,context:v,fetchPolicy:h,errorPolicy:y})};switch(h){default:case"cache-first":return(E=b()).complete?[_(E,e.markReady())]:g?[_(E),w(!0)]:[w(!0)];case"cache-and-network":var E;return(E=b()).complete||g?[_(E),w(!0)]:[w(!0)];case"cache-only":return[_(b(),e.markReady())];case"network-only":return[w(!0)];case"no-cache":return[w(!1)];case"standby":return[]}},QueryManager.prototype.getQuery=function(e){return e&&!this.queries.has(e)&&this.queries.set(e,new Kt(this.cache)),this.queries.get(e)},QueryManager.prototype.prepareContext=function(e){void 0===e&&(e={});var t=this.localState.prepareContext(e);return(0,D.pi)((0,D.pi)({},t),{clientAwareness:this.clientAwareness})},QueryManager}();function ApolloClient_typeof(e){return(ApolloClient_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 compact(e,t,t.variables&&{variables:(0,D.pi)((0,D.pi)({},e.variables),t.variables)})}var Ht=function(){function ApolloClient(e){var t=this;this.defaultOptions={},this.resetStoreCallbacks=[],this.clearStoreCallbacks=[];var n=e.uri,r=e.credentials,i=e.headers,d=e.cache,h=e.ssrMode,y=void 0!==h&&h,g=e.ssrForceFetchDelay,v=void 0===g?0:g,b=e.connectToDevTools,_=void 0===b?"object"===("undefined"===typeof window?"undefined":ApolloClient_typeof(window))&&!window.__APOLLO_CLIENT__&&!1:b,w=e.queryDeduplication,E=void 0===w||w,S=e.defaultOptions,k=e.assumeImmutableResults,C=void 0!==k&&k,O=e.resolvers,T=e.typeDefs,A=e.fragmentMatcher,x=e.name,I=e.version,D=e.link;if(D||(D=n?new Lt({uri:n,credentials:r,headers:i}):St.i.empty()),!d)throw new Ae.ej(9);this.link=D,this.cache=d,this.disableNetworkFetches=y||v>0,this.queryDeduplication=E,this.defaultOptions=S||{},this.typeDefs=T,v&&setTimeout((function(){return t.disableNetworkFetches=!1}),v),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),_&&"object"===("undefined"===typeof window?"undefined":ApolloClient_typeof(window))&&(window.__APOLLO_CLIENT__=this),this.version="3.3.20",this.localState=new Bt({cache:d,client:this,resolvers:O,fragmentMatcher:A}),this.queryManager=new Ut({cache:this.cache,link:this.link,queryDeduplication:E,ssrMode:y,clientAwareness:{name:x,version:I},localState:this.localState,assumeImmutableResults:C,onBroadcast:_?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,D.pi)((0,D.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,Ae.kG)("cache-and-network"!==e.fetchPolicy,10),this.disableNetworkFetches&&"network-only"===e.fetchPolicy&&(e=(0,D.pi)((0,D.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 Nt(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}();function onError(e){return new St.i((function(t,n){return new(Ct())((function(r){var i,d,h;try{i=n(t).subscribe({next:function next(i){i.errors&&(h=e({graphQLErrors:i.errors,response:i,operation:t,forward:n}))?d=h.subscribe({next:r.next.bind(r),error:r.error.bind(r),complete:r.complete.bind(r)}):r.next(i)},error:function error(i){(h=e({operation:t,networkError:i,graphQLErrors:i&&i.result&&i.result.errors,forward:n}))?d=h.subscribe({next:r.next.bind(r),error:r.error.bind(r),complete:r.complete.bind(r)}):r.error(i)},complete:function complete(){h||r.complete.bind(r)()}})}catch(y){e({networkError:y,operation:t,forward:n}),r.error(y)}return function(){i&&i.unsubscribe(),d&&i.unsubscribe()}}))}))}!function(e){function ErrorLink(t){var n=e.call(this)||this;return n.link=onError(t),n}(0,D.ZT)(ErrorLink,e),ErrorLink.prototype.request=function(e,t){return this.link.request(e,t)}}(St.i);var zt="_appolo",Wt=document.querySelector('meta[name="api_url"]'),Gt=Wt?Wt.getAttribute("content"):"".concat(window.location.protocol,"//").concat(window.location.host,"/graphql"),Yt=new Et.ApolloLink((function(e,t){return e.setContext({headers:{apikey:"".concat("LgPaRkVPYa8IY7x3AjbLC8wx6oPPSlO01yPflFXecvQ")}}),t(e)}));console.info("%cAPI: ".concat(Gt),"color:green;font-size:10px");var Jt=new Ht({cache:wt,link:(0,Et.from)([Yt,new Et.ApolloLink((function(e,t){return e.setContext({start:new Date}),t(e)})),onError((function(e){var t=e.operation,n=e.response,r=e.graphQLErrors,i=e.networkError;e.forward;if("IgnoreErrorsQuery"===t.operationName)return console.error("".concat(zt,": IgnoreErrorsQuery")),void(n.errors=null);r&&r.forEach((function(e){var t=e.message,n=e.locations,r=e.path;return console.error("".concat(zt,": [GraphQL error]: Message: ").concat(t,", Location: ").concat(n,", Path: ").concat(r))})),i&&console.error("".concat(zt,": [Network error] ").concat(i.statusCode)),console.error("".concat(zt,": [APOLLO_ERROR]")),window.dispatchEvent(new Event(x.APOLLO_ERROR))})),new Et.ApolloLink((function(e,t){return t(e).map((function(t){var n=new Date-e.getContext().start;return console.log("".concat(zt,": operation ").concat(e.operationName," took ").concat(n," ms to complete")),window.dispatchEvent(new Event(x.ONLINE)),t}))})),new Lt({uri:Gt,fetch:function(e){function fetch(){return e.apply(this,arguments)}return fetch.toString=function(){return e.toString()},fetch}((function(){return fetch.apply(void 0,arguments)})),credentials:"same-origin",connectToDevTools:!1})])});function _page_typeof(e){return(_page_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 _page_defineProperties(e,t){for(var n=0;n")),e.state.loading){Xt.getElementById("PageLoading");n='
Loading ...
'}return React.createElement("div",{className:t,dangerouslySetInnerHTML:e.getHtml(n)})}}]),Page}(h.Component),en=(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(x.TABHIDDEN))):(console.log("".concat(t,": Tab: focused")),r.classList.add("is-focused"),r.classList.remove("is-hidden"),e.dispatchEvent(new Event(x.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(x.TOUCHENABLE))):(console.log("".concat(r,": Touch screen disabled")),d.classList.add("is-mouse"),d.classList.remove("is-touch"),e.dispatchEvent(new Event(x.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(3180));!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(x.BACKONLINE))):(console.log("".concat(n,": Online")),e.dispatchEvent(new Event(x.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(x.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,en.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(x.OFFLINE),(function(){y(!1)})),e.addEventListener("".concat(x.ONLINE),(function(){y(!0)})),e.addEventListener("".concat(x.LOADED),b),e.addEventListener("".concat(x.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(x.LOADED),r),e.addEventListener("".concat(x.RESIZE),r)}(window);var tn=n(3458),nn="top",rn="bottom",an="right",sn="left",cn="auto",ln=[nn,rn,an,sn],un="start",pn="end",dn="clippingParents",hn="viewport",mn="popper",yn="reference",gn=ln.reduce((function(e,t){return e.concat([t+"-"+un,t+"-"+pn])}),[]),vn=[].concat(ln,[cn]).reduce((function(e,t){return e.concat([t,t+"-"+un,t+"-"+pn])}),[]),bn="beforeRead",_n="read",wn="afterRead",En="beforeMain",Sn="main",kn="afterMain",Cn="beforeWrite",On="write",Tn="afterWrite",An=[bn,_n,wn,En,Sn,kn,Cn,On,Tn];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 xn={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 In=Math.max,Dn=Math.min,Ln=Math.round;function within(e,t,n){return In(e,Dn(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 Nn={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=[sn,an].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,ln))}(i.padding,n),_=getLayoutRect(d),w="y"===g?nn:sn,E="y"===g?rn:an,S=n.rects.reference[v]+n.rects.reference[g]-h[g]-n.rects.popper[v],k=h[g]-n.rects.reference[g],C=getOffsetParent(d),O=C?"y"===g?C.clientHeight||0:C.clientWidth||0:0,T=S/2-k/2,A=b[w],x=O-_[v]-b[E],I=O/2-_[v]/2+T,D=within(A,I,x),L=g;n.modifiersData[r]=((t={})[L]=D,t.centerOffset=D-I,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"]},Pn={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:Ln(Ln(t*r)/r)||0,y:Ln(Ln(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"),C=d.hasOwnProperty("y"),O=sn,T=nn,A=window;if(g){var x=getOffsetParent(n),I="clientHeight",D="clientWidth";x===getWindow(n)&&"static"!==getComputedStyle_getComputedStyle(x=getDocumentElement(n)).position&&(I="scrollHeight",D="scrollWidth"),x=x,i===nn&&(T=rn,S-=x[I]-r.height,S*=y?1:-1),i===sn&&(O=an,w-=x[D]-r.width,w*=y?1:-1)}var L,N=Object.assign({position:h},g&&Pn);return y?Object.assign({},N,((L={})[T]=C?"0":"",L[O]=k?"0":"",L.transform=(A.devicePixelRatio||1)<2?"translate("+w+"px, "+S+"px)":"translate3d("+w+"px, "+S+"px, 0)",L)):Object.assign({},N,((t={})[T]=C?S+"px":"",t[O]=k?w+"px":"",t.transform="",t))}var Rn={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:{}},jn={passive:!0};var Mn={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,jn)})),y&&g.addEventListener("resize",n.update,jn),function(){d&&v.forEach((function(e){e.removeEventListener("scroll",n.update,jn)})),y&&g.removeEventListener("resize",n.update,jn)}},data:{}},Fn={left:"right",right:"left",bottom:"top",top:"bottom"};function getOppositePlacement(e){return e.replace(/left|right|bottom|top/g,(function(e){return Fn[e]}))}var qn={start:"end",end:"start"};function getOppositeVariationPlacement(e){return e.replace(/start|end/g,(function(e){return qn[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===hn?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=In(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),h=In(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+=In(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=In(r.top,t.top),t.right=Dn(r.right,t.right),t.bottom=Dn(r.bottom,t.bottom),t.left=In(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 nn:t={x:y,y:n.y-r.height};break;case rn:t={x:y,y:n.y+n.height};break;case an:t={x:n.x+n.width,y:g};break;case sn: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 un:t[v]=t[v]-(n[b]/2-r[b]/2);break;case pn: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?dn:d,y=n.rootBoundary,g=void 0===y?hn:y,v=n.elementContext,b=void 0===v?mn:v,_=n.altBoundary,w=void 0!==_&&_,E=n.padding,S=void 0===E?0:E,k=mergePaddingObject("number"!==typeof S?S:expandToHashMap(S,ln)),C=b===mn?yn:mn,O=e.elements.reference,T=e.rects.popper,A=e.elements[w?C:b],x=getClippingRect(isElement(A)?A:A.contextElement||getDocumentElement(e.elements.popper),h,g),I=getBoundingClientRect(O),D=computeOffsets({reference:I,element:T,strategy:"absolute",placement:i}),L=rectToClientRect(Object.assign({},T,D)),N=b===mn?L:I,P={top:x.top-N.top+k.top,bottom:N.bottom-x.bottom+k.bottom,left:x.left-N.left+k.left,right:N.right-x.right+k.right},R=e.modifiersData.offset;if(b===mn&&R){var j=R[i];Object.keys(P).forEach((function(e){var t=[an,rn].indexOf(e)>=0?1:-1,n=[nn,rn].indexOf(e)>=0?"y":"x";P[e]+=j[n]*t}))}return P}var Bn={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,C=t.options.placement,O=getBasePlacement(C),T=g||(O===C||!S?[getOppositePlacement(C)]:function getExpandedFallbackPlacements(e){if(getBasePlacement(e)===cn)return[];var t=getOppositePlacement(e);return[getOppositeVariationPlacement(e),t,getOppositeVariationPlacement(t)]}(C)),A=[C].concat(T).reduce((function(e,n){return e.concat(getBasePlacement(n)===cn?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?vn:g,b=getVariation(r),_=b?y?gn:gn.filter((function(e){return getVariation(e)===b})):ln,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,I=t.rects.popper,D=new Map,L=!0,N=A[0],P=0;P=0,q=F?"width":"height",B=detectOverflow(t,{placement:R,boundary:b,rootBoundary:_,altBoundary:w,padding:v}),Q=F?M?an:sn:M?rn:nn;x[q]>I[q]&&(Q=getOppositePlacement(Q));var K=getOppositePlacement(Q),V=[];if(d&&V.push(B[j]<=0),y&&V.push(B[Q]<=0,B[K]<=0),V.every((function(e){return e}))){N=R,L=!1;break}D.set(R,V)}if(L)for(var U=function _loop(e){var t=A.find((function(t){var n=D.get(t);if(n)return n.slice(0,e).every((function(e){return e}))}));if(t)return N=t,"break"},H=S?3:1;H>0;H--){if("break"===U(H))break}t.placement!==N&&(t.modifiersData[r]._skip=!0,t.placement=N,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[nn,an,rn,sn].some((function(t){return e[t]>=0}))}var Qn={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 Kn={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=vn.reduce((function(e,n){return e[n]=function distanceAndSkiddingToXY(e,t,n){var r=getBasePlacement(e),i=[sn,nn].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,[sn,an].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 Vn={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 Un={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,C=detectOverflow(t,{boundary:g,rootBoundary:v,padding:_,altBoundary:b}),O=getBasePlacement(t.placement),T=getVariation(t.placement),A=!T,x=getMainAxisFromPlacement(O),I=function getAltAxis(e){return"x"===e?"y":"x"}(x),D=t.modifiersData.popperOffsets,L=t.rects.reference,N=t.rects.popper,P="function"===typeof k?k(Object.assign({},t.rects,{placement:t.placement})):k,R={x:0,y:0};if(D){if(d||y){var j="y"===x?nn:sn,M="y"===x?rn:an,F="y"===x?"height":"width",q=D[x],B=D[x]+C[j],Q=D[x]-C[M],K=E?-N[F]/2:0,V=T===un?L[F]:N[F],U=T===un?-N[F]:-L[F],H=t.elements.arrow,z=E&&H?getLayoutRect(H):{width:0,height:0},W=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},G=W[j],Y=W[M],J=within(0,L[F],z[F]),X=A?L[F]/2-K-J-G-P:V-J-G-P,Z=A?-L[F]/2+K+J+Y+P:U+J+Y+P,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=D[x]+X-ne-te,oe=D[x]+Z-ne;if(d){var ie=within(E?Dn(B,re):B,q,E?In(Q,oe):Q);D[x]=ie,R[x]=ie-q}if(y){var ae="x"===x?nn:sn,se="x"===x?rn:an,ce=D[I],le=ce+C[ae],ue=ce-C[se],fe=within(E?Dn(le,re):le,ce,E?In(ue,oe):ue);D[I]=fe,R[I]=fe-ce}}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 Hn={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);n1&&void 0!==arguments[1]?arguments[1]:document.documentElement;return(t=[]).concat.apply(t,bootstrap_esm_toConsumableArray(Element.prototype.querySelectorAll.call(n,e)))},Xn=function findOne(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:document.documentElement;return Element.prototype.querySelector.call(t,e)},$n=function children(e,t){var n;return(n=[]).concat.apply(n,bootstrap_esm_toConsumableArray(e.children)).filter((function(e){return e.matches(t)}))},Zn=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},er=function prev(e,t){for(var n=e.previousElementSibling;n;){if(n.matches(t))return[n];n=n.previousElementSibling}return[]},tr=function next(e,t){for(var next=e.nextElementSibling;next;){if(next.matches(t))return[next];next=next.nextElementSibling}return[]},nr="transitionend",rr=function getUID(e){do{e+=Math.floor(1e6*Math.random())}while(document.getElementById(e));return e},or=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="#".concat(n.split("#")[1])),t=n&&"#"!==n?n.trim():null}return t},ir=function getSelectorFromElement(e){var t=or(e);return t&&document.querySelector(t)?t:null},ar=function getElementFromSelector(e){var t=or(e);return t?document.querySelector(t):null},sr=function getTransitionDurationFromElement(e){if(!e)return 0;var t=window.getComputedStyle(e),n=t.transitionDuration,r=t.transitionDelay,i=Number.parseFloat(n),d=Number.parseFloat(r);return i||d?(n=n.split(",")[0],r=r.split(",")[0],1e3*(Number.parseFloat(n)+Number.parseFloat(r))):0},cr=function triggerTransitionEnd(e){e.dispatchEvent(new Event(nr))},lr=function isElement(e){return!(!e||"object"!==bootstrap_esm_typeof(e))&&("undefined"!==typeof e.jquery&&(e=e[0]),"undefined"!==typeof e.nodeType)},ur=function getElement(e){return lr(e)?e.jquery?e[0]:e:"string"===typeof e&&e.length>0?Xn(e):null},fr=function typeCheckConfig(e,t,n){Object.keys(n).forEach((function(r){var i=n[r],d=t[r],h=d&&lr(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,'".'))}))},pr=function isVisible(e){return!(!lr(e)||0===e.getClientRects().length)&&"visible"===getComputedStyle(e).getPropertyValue("visibility")},dr=function isDisabled(e){return!e||e.nodeType!==Node.ELEMENT_NODE||(!!e.classList.contains("disabled")||("undefined"!==typeof e.disabled?e.disabled:e.hasAttribute("disabled")&&"false"!==e.getAttribute("disabled")))},hr=function findShadowRoot(e){if(!document.documentElement.attachShadow)return null;if("function"===typeof e.getRootNode){var t=e.getRootNode();return t instanceof ShadowRoot?t:null}return e instanceof ShadowRoot?e:e.parentNode?findShadowRoot(e.parentNode):null},mr=function noop(){},yr=function reflow(e){return e.offsetHeight},gr=function getjQuery(){var jQuery=window.jQuery;return jQuery&&!document.body.hasAttribute("data-bs-no-jquery")?jQuery:null},vr=[],br=function isRTL(){return"rtl"===document.documentElement.dir},_r=function defineJQueryPlugin(e){!function onDOMContentLoaded(e){"loading"===document.readyState?(vr.length||document.addEventListener("DOMContentLoaded",(function(){vr.forEach((function(e){return e()}))})),vr.push(e)):e()}((function(){var $=gr();if($){var t=e.NAME,n=$.fn[t];$.fn[t]=e.jQueryInterface,$.fn[t].Constructor=e,$.fn[t].noConflict=function(){return $.fn[t]=n,e.jQueryInterface}}}))},wr=function execute(e){"function"===typeof e&&e()},Er=function executeAfterTransition(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(n){var r=5,i=sr(t)+r,d=!1,h=function handler(n){n.target===t&&(d=!0,t.removeEventListener(nr,handler),wr(e))};t.addEventListener(nr,h),setTimeout((function(){d||cr(t)}),i)}else wr(e)},Sr=function getNextActiveElement(e,t,n,r){var i=e.indexOf(t);if(-1===i)return e[!n&&r?e.length-1:0];var d=e.length;return i+=n?1:-1,r&&(i=(i+d)%d),e[Math.max(0,Math.min(i,d-1))]},kr=/[^.]*(?=\..*)\.|.*/,Cr=/\..*/,Or=/::\d+$/,Tr={},Ar=1,xr={mouseenter:"mouseover",mouseleave:"mouseout"},Ir=/^(mouseenter|mouseleave)/i,Dr=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&&"".concat(t,"::").concat(Ar++)||e.uidEvent||Ar++}function getEvent(e){var t=getUidEvent(e);return e.uidEvent=t,Tr[t]=Tr[t]||{},Tr[t]}function findHandler(e,t){for(var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=Object.keys(e),i=0,d=r.length;i2&&void 0!==arguments[2])||arguments[2];Er(e,t,n)}}],[{key:"getInstance",value:function getInstance(e){return Rr(e,this.DATA_KEY)}},{key:"getOrCreateInstance",value:function getOrCreateInstance(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.getInstance(e)||new this(e,"object"===bootstrap_esm_typeof(t)?t:null)}},{key:"VERSION",get:function get(){return"5.0.2"}},{key:"NAME",get:function get(){throw new Error('You have to implement the static method "NAME", for each component!')}},{key:"DATA_KEY",get:function get(){return"bs.".concat(this.NAME)}},{key:"EVENT_KEY",get:function get(){return".".concat(this.DATA_KEY)}}]),BaseComponent}(),Fr=".".concat("bs.alert"),qr="close".concat(Fr),Br="closed".concat(Fr),Qr="click".concat(Fr).concat(".data-api"),Kr=function(e){bootstrap_esm_inherits(Alert,e);var t=bootstrap_esm_createSuper(Alert);function Alert(){return bootstrap_esm_classCallCheck(this,Alert),t.apply(this,arguments)}return bootstrap_esm_createClass(Alert,[{key:"close",value:function close(e){var t=e?this._getRootElement(e):this._element,n=this._triggerCloseEvent(t);null===n||n.defaultPrevented||this._removeElement(t)}},{key:"_getRootElement",value:function _getRootElement(e){return ar(e)||e.closest(".".concat("alert"))}},{key:"_triggerCloseEvent",value:function _triggerCloseEvent(e){return Lr.trigger(e,qr)}},{key:"_removeElement",value:function _removeElement(e){var t=this;e.classList.remove("show");var n=e.classList.contains("fade");this._queueCallback((function(){return t._destroyElement(e)}),e,n)}},{key:"_destroyElement",value:function _destroyElement(e){e.remove(),Lr.trigger(e,Br)}}],[{key:"NAME",get:function get(){return"alert"}},{key:"jQueryInterface",value:function jQueryInterface(e){return this.each((function(){var t=Alert.getOrCreateInstance(this);"close"===e&&t[e](this)}))}},{key:"handleDismiss",value:function handleDismiss(e){return function(t){t&&t.preventDefault(),e.close(this)}}}]),Alert}(Mr);Lr.on(document,Qr,'[data-bs-dismiss="alert"]',Kr.handleDismiss(new Kr)),_r(Kr);var Vr=".".concat("bs.button"),Ur='[data-bs-toggle="button"]',Hr="click".concat(Vr).concat(".data-api"),zr=function(e){bootstrap_esm_inherits(Button,e);var t=bootstrap_esm_createSuper(Button);function Button(){return bootstrap_esm_classCallCheck(this,Button),t.apply(this,arguments)}return bootstrap_esm_createClass(Button,[{key:"toggle",value:function toggle(){this._element.setAttribute("aria-pressed",this._element.classList.toggle("active"))}}],[{key:"NAME",get:function get(){return"button"}},{key:"jQueryInterface",value:function jQueryInterface(e){return this.each((function(){var t=Button.getOrCreateInstance(this);"toggle"===e&&t[e]()}))}}]),Button}(Mr);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,(function(e){return"-".concat(e.toLowerCase())}))}Lr.on(document,Hr,Ur,(function(e){e.preventDefault();var t=e.target.closest(Ur);zr.getOrCreateInstance(t).toggle()})),_r(zr);var Wr={setDataAttribute:function setDataAttribute(e,t,n){e.setAttribute("data-bs-".concat(normalizeDataKey(t)),n)},removeDataAttribute:function removeDataAttribute(e,t){e.removeAttribute("data-bs-".concat(normalizeDataKey(t)))},getDataAttributes:function getDataAttributes(e){if(!e)return{};var t={};return Object.keys(e.dataset).filter((function(e){return e.startsWith("bs")})).forEach((function(n){var r=n.replace(/^bs/,"");r=r.charAt(0).toLowerCase()+r.slice(1,r.length),t[r]=normalizeData(e.dataset[n])})),t},getDataAttribute:function getDataAttribute(e,t){return normalizeData(e.getAttribute("data-bs-".concat(normalizeDataKey(t))))},offset:function offset(e){var t=e.getBoundingClientRect();return{top:t.top+document.body.scrollTop,left:t.left+document.body.scrollLeft}},position:function position(e){return{top:e.offsetTop,left:e.offsetLeft}}},Gr="carousel",Yr=".".concat("bs.carousel"),Jr=".data-api",Xr={interval:5e3,keyboard:!0,slide:!1,pause:"hover",wrap:!0,touch:!0},$r={interval:"(number|boolean)",keyboard:"boolean",slide:"(boolean|string)",pause:"(string|boolean)",wrap:"boolean",touch:"boolean"},Zr="next",eo="prev",no="left",ro="right",oo=(bootstrap_esm_defineProperty(zn={},"ArrowLeft",ro),bootstrap_esm_defineProperty(zn,"ArrowRight",no),zn),io="slide".concat(Yr),ao="slid".concat(Yr),so="keydown".concat(Yr),co="mouseenter".concat(Yr),lo="mouseleave".concat(Yr),uo="touchstart".concat(Yr),fo="touchmove".concat(Yr),po="touchend".concat(Yr),ho="pointerdown".concat(Yr),mo="pointerup".concat(Yr),yo="dragstart".concat(Yr),go="load".concat(Yr).concat(Jr),vo="click".concat(Yr).concat(Jr),bo="active",_o=".active.carousel-item",wo="touch",Eo=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=Xn(".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._slide(Zr)}},{key:"nextWhenVisible",value:function nextWhenVisible(){!document.hidden&&pr(this._element)&&this.next()}},{key:"prev",value:function prev(){this._slide(eo)}},{key:"pause",value:function pause(e){e||(this._isPaused=!0),Xn(".carousel-item-next, .carousel-item-prev",this._element)&&(cr(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=Xn(_o,this._element);var n=this._getItemIndex(this._activeElement);if(!(e>this._items.length-1||e<0))if(this._isSliding)Lr.one(this._element,ao,(function(){return t.to(e)}));else{if(n===e)return this.pause(),void this.cycle();var r=e>n?Zr:eo;this._slide(r,this._items[e])}}},{key:"_getConfig",value:function _getConfig(e){return e=_objectSpread(_objectSpread(_objectSpread({},Xr),Wr.getDataAttributes(this._element)),"object"===bootstrap_esm_typeof(e)?e:{}),fr(Gr,e,$r),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?ro:no)}}},{key:"_addEventListeners",value:function _addEventListeners(){var e=this;this._config.keyboard&&Lr.on(this._element,so,(function(t){return e._keydown(t)})),"hover"===this._config.pause&&(Lr.on(this._element,co,(function(t){return e.pause(t)})),Lr.on(this._element,lo,(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!==wo?e._pointerEvent||(e.touchStartX=t.touches[0].clientX):e.touchStartX=t.clientX},n=function end(t){!e._pointerEvent||"pen"!==t.pointerType&&t.pointerType!==wo||(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))};Jn(".carousel-item img",this._element).forEach((function(e){Lr.on(e,yo,(function(e){return e.preventDefault()}))})),this._pointerEvent?(Lr.on(this._element,ho,(function(e){return t(e)})),Lr.on(this._element,mo,(function(e){return n(e)})),this._element.classList.add("pointer-event")):(Lr.on(this._element,uo,(function(e){return t(e)})),Lr.on(this._element,fo,(function(t){return function move(t){e.touchDeltaX=t.touches&&t.touches.length>1?0:t.touches[0].clientX-e.touchStartX}(t)})),Lr.on(this._element,po,(function(e){return n(e)})))}},{key:"_keydown",value:function _keydown(e){if(!/input|textarea/i.test(e.target.tagName)){var t=oo[e.key];t&&(e.preventDefault(),this._slide(t))}}},{key:"_getItemIndex",value:function _getItemIndex(e){return this._items=e&&e.parentNode?Jn(".carousel-item",e.parentNode):[],this._items.indexOf(e)}},{key:"_getItemByOrder",value:function _getItemByOrder(e,t){var n=e===Zr;return Sr(this._items,t,n,this._config.wrap)}},{key:"_triggerSlideEvent",value:function _triggerSlideEvent(e,t){var n=this._getItemIndex(e),r=this._getItemIndex(Xn(_o,this._element));return Lr.trigger(this._element,io,{relatedTarget:e,direction:t,from:r,to:n})}},{key:"_setActiveIndicatorElement",value:function _setActiveIndicatorElement(e){if(this._indicatorsElement){var t=Xn(".active",this._indicatorsElement);t.classList.remove(bo),t.removeAttribute("aria-current");for(var n=Jn("[data-bs-target]",this._indicatorsElement),r=0;r0)for(var r=0;re.clientWidth+i)){r._saveInitialAttribute(e,t);var d=window.getComputedStyle(e)[t];e.style[t]="".concat(n(Number.parseFloat(d)),"px")}}))}},{key:"reset",value:function reset(){this._resetElementAttributes(this._element,"overflow"),this._resetElementAttributes(this._element,"paddingRight"),this._resetElementAttributes(hi,"paddingRight"),this._resetElementAttributes(mi,"marginRight")}},{key:"_saveInitialAttribute",value:function _saveInitialAttribute(e,t){var n=e.style[t];n&&Wr.setDataAttribute(e,t,n)}},{key:"_resetElementAttributes",value:function _resetElementAttributes(e,t){this._applyManipulationCallback(e,(function manipulationCallBack(e){var n=Wr.getDataAttribute(e,t);"undefined"===typeof n?e.style.removeProperty(t):(Wr.removeDataAttribute(e,t),e.style[t]=n)}))}},{key:"_applyManipulationCallback",value:function _applyManipulationCallback(e,t){lr(e)?t(e):Jn(e,this._element).forEach(t)}},{key:"isOverflowing",value:function isOverflowing(){return this.getWidth()>0}}]),ScrollBarHelper}(),gi={isVisible:!0,isAnimated:!1,rootElement:"body",clickCallback:null},vi={isVisible:"boolean",isAnimated:"boolean",rootElement:"(element|string)",clickCallback:"(function|null)"},bi="backdrop",_i="show",wi="mousedown.bs.".concat(bi),Ei=function(){function Backdrop(e){bootstrap_esm_classCallCheck(this,Backdrop),this._config=this._getConfig(e),this._isAppended=!1,this._element=null}return bootstrap_esm_createClass(Backdrop,[{key:"show",value:function show(e){this._config.isVisible?(this._append(),this._config.isAnimated&&yr(this._getElement()),this._getElement().classList.add(_i),this._emulateAnimation((function(){wr(e)}))):wr(e)}},{key:"hide",value:function hide(e){var t=this;this._config.isVisible?(this._getElement().classList.remove(_i),this._emulateAnimation((function(){t.dispose(),wr(e)}))):wr(e)}},{key:"_getElement",value:function _getElement(){if(!this._element){var e=document.createElement("div");e.className="modal-backdrop",this._config.isAnimated&&e.classList.add("fade"),this._element=e}return this._element}},{key:"_getConfig",value:function _getConfig(e){return(e=_objectSpread(_objectSpread({},gi),"object"===bootstrap_esm_typeof(e)?e:{})).rootElement=ur(e.rootElement),fr(bi,e,vi),e}},{key:"_append",value:function _append(){var e=this;this._isAppended||(this._config.rootElement.appendChild(this._getElement()),Lr.on(this._getElement(),wi,(function(){wr(e._config.clickCallback)})),this._isAppended=!0)}},{key:"dispose",value:function dispose(){this._isAppended&&(Lr.off(this._element,wi),this._element.remove(),this._isAppended=!1)}},{key:"_emulateAnimation",value:function _emulateAnimation(e){Er(e,this._getElement(),this._config.isAnimated)}}]),Backdrop}(),Si="modal",ki=".".concat("bs.modal"),Ci="Escape",Oi={backdrop:!0,keyboard:!0,focus:!0},Ti={backdrop:"(boolean|string)",keyboard:"boolean",focus:"boolean"},Ai="hide".concat(ki),xi="hidePrevented".concat(ki),Ii="hidden".concat(ki),Di="show".concat(ki),Li="shown".concat(ki),Ni="focusin".concat(ki),Pi="resize".concat(ki),Ri="click.dismiss".concat(ki),ji="keydown.dismiss".concat(ki),Mi="mouseup.dismiss".concat(ki),Fi="mousedown.dismiss".concat(ki),qi="click".concat(ki).concat(".data-api"),Bi="modal-open",Qi="show",Ki="modal-static",Vi=function(e){bootstrap_esm_inherits(Modal,e);var t=bootstrap_esm_createSuper(Modal);function Modal(e,n){var r;return bootstrap_esm_classCallCheck(this,Modal),(r=t.call(this,e))._config=r._getConfig(n),r._dialog=Xn(".modal-dialog",r._element),r._backdrop=r._initializeBackDrop(),r._isShown=!1,r._ignoreBackdropClick=!1,r._isTransitioning=!1,r._scrollBar=new yi,r}return bootstrap_esm_createClass(Modal,[{key:"toggle",value:function toggle(e){return this._isShown?this.hide():this.show(e)}},{key:"show",value:function show(e){var t=this;this._isShown||this._isTransitioning||(Lr.trigger(this._element,Di,{relatedTarget:e}).defaultPrevented||(this._isShown=!0,this._isAnimated()&&(this._isTransitioning=!0),this._scrollBar.hide(),document.body.classList.add(Bi),this._adjustDialog(),this._setEscapeEvent(),this._setResizeEvent(),Lr.on(this._element,Ri,'[data-bs-dismiss="modal"]',(function(e){return t.hide(e)})),Lr.on(this._dialog,Fi,(function(){Lr.one(t._element,Mi,(function(e){e.target===t._element&&(t._ignoreBackdropClick=!0)}))})),this._showBackdrop((function(){return t._showElement(e)}))))}},{key:"hide",value:function hide(e){var t=this;if((e&&["A","AREA"].includes(e.target.tagName)&&e.preventDefault(),this._isShown&&!this._isTransitioning)&&!Lr.trigger(this._element,Ai).defaultPrevented){this._isShown=!1;var n=this._isAnimated();n&&(this._isTransitioning=!0),this._setEscapeEvent(),this._setResizeEvent(),Lr.off(document,Ni),this._element.classList.remove(Qi),Lr.off(this._element,Ri),Lr.off(this._dialog,Fi),this._queueCallback((function(){return t._hideModal()}),this._element,n)}}},{key:"dispose",value:function dispose(){[window,this._dialog].forEach((function(e){return Lr.off(e,ki)})),this._backdrop.dispose(),_get(bootstrap_esm_getPrototypeOf(Modal.prototype),"dispose",this).call(this),Lr.off(document,Ni)}},{key:"handleUpdate",value:function handleUpdate(){this._adjustDialog()}},{key:"_initializeBackDrop",value:function _initializeBackDrop(){return new Ei({isVisible:Boolean(this._config.backdrop),isAnimated:this._isAnimated()})}},{key:"_getConfig",value:function _getConfig(e){return e=_objectSpread(_objectSpread(_objectSpread({},Oi),Wr.getDataAttributes(this._element)),"object"===bootstrap_esm_typeof(e)?e:{}),fr(Si,e,Ti),e}},{key:"_showElement",value:function _showElement(e){var t=this,n=this._isAnimated(),r=Xn(".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,r&&(r.scrollTop=0),n&&yr(this._element),this._element.classList.add(Qi),this._config.focus&&this._enforceFocus();this._queueCallback((function transitionComplete(){t._config.focus&&t._element.focus(),t._isTransitioning=!1,Lr.trigger(t._element,Li,{relatedTarget:e})}),this._dialog,n)}},{key:"_enforceFocus",value:function _enforceFocus(){var e=this;Lr.off(document,Ni),Lr.on(document,Ni,(function(t){document===t.target||e._element===t.target||e._element.contains(t.target)||e._element.focus()}))}},{key:"_setEscapeEvent",value:function _setEscapeEvent(){var e=this;this._isShown?Lr.on(this._element,ji,(function(t){e._config.keyboard&&t.key===Ci?(t.preventDefault(),e.hide()):e._config.keyboard||t.key!==Ci||e._triggerBackdropTransition()})):Lr.off(this._element,ji)}},{key:"_setResizeEvent",value:function _setResizeEvent(){var e=this;this._isShown?Lr.on(window,Pi,(function(){return e._adjustDialog()})):Lr.off(window,Pi)}},{key:"_hideModal",value:function _hideModal(){var e=this;this._element.style.display="none",this._element.setAttribute("aria-hidden",!0),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._isTransitioning=!1,this._backdrop.hide((function(){document.body.classList.remove(Bi),e._resetAdjustments(),e._scrollBar.reset(),Lr.trigger(e._element,Ii)}))}},{key:"_showBackdrop",value:function _showBackdrop(e){var t=this;Lr.on(this._element,Ri,(function(e){t._ignoreBackdropClick?t._ignoreBackdropClick=!1:e.target===e.currentTarget&&(!0===t._config.backdrop?t.hide():"static"===t._config.backdrop&&t._triggerBackdropTransition())})),this._backdrop.show(e)}},{key:"_isAnimated",value:function _isAnimated(){return this._element.classList.contains("fade")}},{key:"_triggerBackdropTransition",value:function _triggerBackdropTransition(){var e=this;if(!Lr.trigger(this._element,xi).defaultPrevented){var t=this._element,n=t.classList,r=t.scrollHeight,i=t.style,d=r>document.documentElement.clientHeight;!d&&"hidden"===i.overflowY||n.contains(Ki)||(d||(i.overflowY="hidden"),n.add(Ki),this._queueCallback((function(){n.remove(Ki),d||e._queueCallback((function(){i.overflowY=""}),e._dialog)}),this._dialog),this._element.focus())}}},{key:"_adjustDialog",value:function _adjustDialog(){var e=this._element.scrollHeight>document.documentElement.clientHeight,t=this._scrollBar.getWidth(),n=t>0;(!n&&e&&!br()||n&&!e&&br())&&(this._element.style.paddingLeft="".concat(t,"px")),(n&&!e&&!br()||!n&&e&&br())&&(this._element.style.paddingRight="".concat(t,"px"))}},{key:"_resetAdjustments",value:function _resetAdjustments(){this._element.style.paddingLeft="",this._element.style.paddingRight=""}}],[{key:"Default",get:function get(){return Oi}},{key:"NAME",get:function get(){return Si}},{key:"jQueryInterface",value:function jQueryInterface(e,t){return this.each((function(){var n=Modal.getOrCreateInstance(this,e);if("string"===typeof e){if("undefined"===typeof n[e])throw new TypeError('No method named "'.concat(e,'"'));n[e](t)}}))}}]),Modal}(Mr);Lr.on(document,qi,'[data-bs-toggle="modal"]',(function(e){var t=this,n=ar(this);["A","AREA"].includes(this.tagName)&&e.preventDefault(),Lr.one(n,Di,(function(e){e.defaultPrevented||Lr.one(n,Ii,(function(){pr(t)&&t.focus()}))})),Vi.getOrCreateInstance(n).toggle(this)})),_r(Vi);var Ui="offcanvas",Hi=".".concat("bs.offcanvas"),zi=".data-api",Wi="load".concat(Hi).concat(zi),Gi={backdrop:!0,keyboard:!0,scroll:!1},Yi={backdrop:"boolean",keyboard:"boolean",scroll:"boolean"},Ji="show",Xi=".offcanvas.show",$i="show".concat(Hi),Zi="shown".concat(Hi),ea="hide".concat(Hi),ta="hidden".concat(Hi),na="focusin".concat(Hi),ra="click".concat(Hi).concat(zi),oa="click.dismiss".concat(Hi),ia="keydown.dismiss".concat(Hi),aa=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._backdrop=r._initializeBackDrop(),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&&!Lr.trigger(this._element,$i,{relatedTarget:e}).defaultPrevented){this._isShown=!0,this._element.style.visibility="visible",this._backdrop.show(),this._config.scroll||((new yi).hide(),this._enforceFocusOnElement(this._element)),this._element.removeAttribute("aria-hidden"),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.classList.add(Ji);this._queueCallback((function completeCallBack(){Lr.trigger(t._element,Zi,{relatedTarget:e})}),this._element,!0)}}},{key:"hide",value:function hide(){var e=this;if(this._isShown&&!Lr.trigger(this._element,ea).defaultPrevented){Lr.off(document,na),this._element.blur(),this._isShown=!1,this._element.classList.remove(Ji),this._backdrop.hide();this._queueCallback((function completeCallback(){e._element.setAttribute("aria-hidden",!0),e._element.removeAttribute("aria-modal"),e._element.removeAttribute("role"),e._element.style.visibility="hidden",e._config.scroll||(new yi).reset(),Lr.trigger(e._element,ta)}),this._element,!0)}}},{key:"dispose",value:function dispose(){this._backdrop.dispose(),_get(bootstrap_esm_getPrototypeOf(Offcanvas.prototype),"dispose",this).call(this),Lr.off(document,na)}},{key:"_getConfig",value:function _getConfig(e){return e=_objectSpread(_objectSpread(_objectSpread({},Gi),Wr.getDataAttributes(this._element)),"object"===bootstrap_esm_typeof(e)?e:{}),fr(Ui,e,Yi),e}},{key:"_initializeBackDrop",value:function _initializeBackDrop(){var e=this;return new Ei({isVisible:this._config.backdrop,isAnimated:!0,rootElement:this._element.parentNode,clickCallback:function clickCallback(){return e.hide()}})}},{key:"_enforceFocusOnElement",value:function _enforceFocusOnElement(e){Lr.off(document,na),Lr.on(document,na,(function(t){document===t.target||e===t.target||e.contains(t.target)||e.focus()})),e.focus()}},{key:"_addEventListeners",value:function _addEventListeners(){var e=this;Lr.on(this._element,oa,'[data-bs-dismiss="offcanvas"]',(function(){return e.hide()})),Lr.on(this._element,ia,(function(t){e._config.keyboard&&"Escape"===t.key&&e.hide()}))}}],[{key:"NAME",get:function get(){return Ui}},{key:"Default",get:function get(){return Gi}},{key:"jQueryInterface",value:function jQueryInterface(e){return this.each((function(){var t=Offcanvas.getOrCreateInstance(this,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}(Mr);Lr.on(document,ra,'[data-bs-toggle="offcanvas"]',(function(e){var t=this,n=ar(this);if(["A","AREA"].includes(this.tagName)&&e.preventDefault(),!dr(this)){Lr.one(n,ta,(function(){pr(t)&&t.focus()}));var r=Xn(Xi);r&&r!==n&&aa.getInstance(r).hide(),aa.getOrCreateInstance(n).toggle(this)}})),Lr.on(window,Wi,(function(){return Jn(Xi).forEach((function(e){return aa.getOrCreateInstance(e).show()}))})),_r(aa);var sa=new Set(["background","cite","href","itemtype","longdesc","poster","src","xlink:href"]),ca=/^(?:(?:https?|mailto|ftp|tel|file):|[^#&/:?]*(?:[#/?]|$))/i,la=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[\d+/a-z]+=*$/i,ua={"*":["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.remove(),"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!sa.has(n)||Boolean(ca.test(e.nodeValue)||la.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:ua,popperConfig:null},ba={HIDE:"hide".concat(pa),HIDDEN:"hidden".concat(pa),SHOW:"show".concat(pa),SHOWN:"shown".concat(pa),INSERTED:"inserted".concat(pa),CLICK:"click".concat(pa),FOCUSIN:"focusin".concat(pa),FOCUSOUT:"focusout".concat(pa),MOUSEENTER:"mouseenter".concat(pa),MOUSELEAVE:"mouseleave".concat(pa)},_a="fade",wa="modal",Ea="show",Sa="show",ka="out",Ca="hover",Oa="focus",Ta=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(Ea))return void this._leave(null,this);this._enter(null,this)}}},{key:"dispose",value:function dispose(){clearTimeout(this._timeout),Lr.off(this._element.closest(".".concat(wa)),"hide.bs.modal",this._hideModalHandler),this.tip&&this.tip.remove(),this._popper&&this._popper.destroy(),_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=Lr.trigger(this._element,this.constructor.Event.SHOW),n=hr(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=rr(this.constructor.NAME);i.setAttribute("id",d),this._element.setAttribute("aria-describedby",d),this.setContent(),this._config.animation&&i.classList.add(_a);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._config.container;Pr(i,this.constructor.DATA_KEY,this),this._element.ownerDocument.documentElement.contains(this.tip)||(g.appendChild(i),Lr.trigger(this._element,this.constructor.Event.INSERTED)),this._popper?this._popper.update():this._popper=Gn(this._element,i,this._getPopperConfig(y)),i.classList.add(Ea);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){Lr.on(e,"mouseover",mr)}));var w=this.tip.classList.contains(_a);this._queueCallback((function complete(){var t=e._hoverState;e._hoverState=null,Lr.trigger(e._element,e.constructor.Event.SHOWN),t===ka&&e._leave(null,e)}),this.tip,w)}}}},{key:"hide",value:function hide(){var e=this;if(this._popper){var t=this.getTipElement();if(!Lr.trigger(this._element,this.constructor.Event.HIDE).defaultPrevented){var n;if(t.classList.remove(Ea),"ontouchstart"in document.documentElement)(n=[]).concat.apply(n,bootstrap_esm_toConsumableArray(document.body.children)).forEach((function(e){return Lr.off(e,"mouseover",mr)}));this._activeTrigger.click=!1,this._activeTrigger.focus=!1,this._activeTrigger.hover=!1;var r=this.tip.classList.contains(_a);this._queueCallback((function complete(){e._isWithActiveTrigger()||(e._hoverState!==Sa&&t.remove(),e._cleanTipClass(),e._element.removeAttribute("aria-describedby"),Lr.trigger(e._element,e.constructor.Event.HIDDEN),e._popper&&(e._popper.destroy(),e._popper=null))}),this.tip,r),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(Xn(".tooltip-inner",e),this.getTitle()),e.classList.remove(_a,Ea)}},{key:"setElementContent",value:function setElementContent(e,t){if(null!==e)return lr(t)?(t=ur(t),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||Rr(e.delegateTarget,n))||(t=new this.constructor(e.delegateTarget,this._getDelegateConfig()),Pr(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:{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(da,"-").concat(this.updateAttachment(e)))}},{key:"_getAttachment",value:function _getAttachment(e){return ga[e.toUpperCase()]}},{key:"_setListeners",value:function _setListeners(){var e=this;this._config.trigger.split(" ").forEach((function(t){if("click"===t)Lr.on(e._element,e.constructor.Event.CLICK,e._config.selector,(function(t){return e.toggle(t)}));else if("manual"!==t){var n=t===Ca?e.constructor.Event.MOUSEENTER:e.constructor.Event.FOCUSIN,r=t===Ca?e.constructor.Event.MOUSELEAVE:e.constructor.Event.FOCUSOUT;Lr.on(e._element,n,e._config.selector,(function(t){return e._enter(t)})),Lr.on(e._element,r,e._config.selector,(function(t){return e._leave(t)}))}})),this._hideModalHandler=function(){e._element&&e.hide()},Lr.on(this._element.closest(".".concat(wa)),"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?Oa:Ca]=!0),t.getTipElement().classList.contains(Ea)||t._hoverState===Sa?t._hoverState=Sa:(clearTimeout(t._timeout),t._hoverState=Sa,t._config.delay&&t._config.delay.show?t._timeout=setTimeout((function(){t._hoverState===Sa&&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?Oa:Ca]=t._element.contains(e.relatedTarget)),t._isWithActiveTrigger()||(clearTimeout(t._timeout),t._hoverState=ka,t._config.delay&&t._config.delay.hide?t._timeout=setTimeout((function(){t._hoverState===ka&&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=Wr.getDataAttributes(this._element);return Object.keys(t).forEach((function(e){ma.has(e)&&delete t[e]})),(e=_objectSpread(_objectSpread(_objectSpread({},this.constructor.Default),t),"object"===bootstrap_esm_typeof(e)&&e?e:{})).container=!1===e.container?document.body:ur(e.container),"number"===typeof 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()),fr(fa,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(ha);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 va}},{key:"NAME",get:function get(){return fa}},{key:"Event",get:function get(){return ba}},{key:"DefaultType",get:function get(){return ya}},{key:"jQueryInterface",value:function jQueryInterface(e){return this.each((function(){var t=Tooltip.getOrCreateInstance(this,e);if("string"===typeof e){if("undefined"===typeof t[e])throw new TypeError('No method named "'.concat(e,'"'));t[e]()}}))}}]),Tooltip}(Mr);_r(Ta);var Aa=".".concat("bs.popover"),xa="bs-popover",Ia=new RegExp("(^|\\s)".concat(xa,"\\S+"),"g"),Da=_objectSpread(_objectSpread({},Ta.Default),{},{placement:"right",offset:[0,8],trigger:"click",content:"",template:''}),La=_objectSpread(_objectSpread({},Ta.DefaultType),{},{content:"(string|element|function)"}),Na={HIDE:"hide".concat(Aa),HIDDEN:"hidden".concat(Aa),SHOW:"show".concat(Aa),SHOWN:"shown".concat(Aa),INSERTED:"inserted".concat(Aa),CLICK:"click".concat(Aa),FOCUSIN:"focusin".concat(Aa),FOCUSOUT:"focusout".concat(Aa),MOUSEENTER:"mouseenter".concat(Aa),MOUSELEAVE:"mouseleave".concat(Aa)},Pa=".popover-header",Ra=".popover-body";_r(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:"getTipElement",value:function getTipElement(){return this.tip||(this.tip=_get(bootstrap_esm_getPrototypeOf(Popover.prototype),"getTipElement",this).call(this),this.getTitle()||Xn(Pa,this.tip).remove(),this._getContent()||Xn(Ra,this.tip).remove()),this.tip}},{key:"setContent",value:function setContent(){var e=this.getTipElement();this.setElementContent(Xn(Pa,e),this.getTitle());var t=this._getContent();"function"===typeof t&&(t=t.call(this._element)),this.setElementContent(Xn(Ra,e),t),e.classList.remove("fade","show")}},{key:"_addAttachmentClass",value:function _addAttachmentClass(e){this.getTipElement().classList.add("".concat(xa,"-").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(Ia);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 Da}},{key:"NAME",get:function get(){return"popover"}},{key:"Event",get:function get(){return Na}},{key:"DefaultType",get:function get(){return La}},{key:"jQueryInterface",value:function jQueryInterface(e){return this.each((function(){var t=Popover.getOrCreateInstance(this,e);if("string"===typeof e){if("undefined"===typeof t[e])throw new TypeError('No method named "'.concat(e,'"'));t[e]()}}))}}]),Popover}(Ta));var ja="scrollspy",Ma=".".concat("bs.scrollspy"),Fa={offset:10,method:"auto",target:""},qa={offset:"number",method:"string",target:"(string|element)"},Ba="activate".concat(Ma),Qa="scroll".concat(Ma),Ka="load".concat(Ma).concat(".data-api"),Va="dropdown-item",Ua="active",Ha=".nav-link",za=".list-group-item",Wa="position",Ga=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(Ha,", ").concat(r._config.target," ").concat(za,", ").concat(r._config.target," .").concat(Va),r._offsets=[],r._targets=[],r._activeTarget=null,r._scrollHeight=0,Lr.on(r._scrollElement,Qa,(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":Wa,n="auto"===this._config.method?t:this._config.method,r=n===Wa?this._getScrollTop():0;this._offsets=[],this._targets=[],this._scrollHeight=this._getScrollHeight(),Jn(this._selector).map((function(e){var t=ir(e),i=t?Xn(t):null;if(i){var d=i.getBoundingClientRect();if(d.width||d.height)return[Wr[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(){Lr.off(this._scrollElement,Ma),_get(bootstrap_esm_getPrototypeOf(ScrollSpy.prototype),"dispose",this).call(this)}},{key:"_getConfig",value:function _getConfig(e){if("string"!==typeof(e=_objectSpread(_objectSpread(_objectSpread({},Fa),Wr.getDataAttributes(this._element)),"object"===bootstrap_esm_typeof(e)&&e?e:{})).target&&lr(e.target)){var t=e.target.id;t||(t=rr(ja),e.target.id=t),e.target="#".concat(t)}return fr(ja,e,qa),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(ts),"tab"===t.getAttribute("role")&&t.setAttribute("aria-selected",!1)}e.classList.add(ts),"tab"===e.getAttribute("role")&&e.setAttribute("aria-selected",!0),yr(e),e.classList.contains(ns)&&e.classList.add(rs);var i=e.parentNode;if(i&&"LI"===i.nodeName&&(i=i.parentNode),i&&i.classList.contains("dropdown-menu")){var d=e.closest(".dropdown");d&&Jn(".dropdown-toggle",d).forEach((function(e){return e.classList.add(ts)})),e.setAttribute("aria-expanded",!0)}n&&n()}}],[{key:"NAME",get:function get(){return"tab"}},{key:"jQueryInterface",value:function jQueryInterface(e){return this.each((function(){var t=Tab.getOrCreateInstance(this);if("string"===typeof e){if("undefined"===typeof t[e])throw new TypeError('No method named "'.concat(e,'"'));t[e]()}}))}}]),Tab}(Mr);Lr.on(document,es,'[data-bs-toggle="tab"], [data-bs-toggle="pill"], [data-bs-toggle="list"]',(function(e){(["A","AREA"].includes(this.tagName)&&e.preventDefault(),dr(this))||as.getOrCreateInstance(this).show()})),_r(as);var ss="toast",cs=".".concat("bs.toast"),ls="click.dismiss".concat(cs),fs="mouseover".concat(cs),ps="mouseout".concat(cs),ds="focusin".concat(cs),hs="focusout".concat(cs),ms="hide".concat(cs),ys="hidden".concat(cs),gs="show".concat(cs),vs="shown".concat(cs),bs="hide",_s="show",ws="showing",Es={animation:"boolean",autohide:"boolean",delay:"number"},Ss={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(x).forEach((function(e){console.info("".concat(e,": ").concat(x[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(x.LOADED),(function(){r.init(),n.classList.add("loaded"),Ts.hide(),console.groupEnd("init"),console.timeEnd("init"),e.dispatchEvent(new Event(x.LODEDANDREADY))})),e.addEventListener("".concat(x.AJAX),(function(){r.loaded()})),e.MainUI=r}(window);var xs=n(1535),Is=n.n(xs);!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(Is())({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(x.LODEDANDREADY),n),e.addEventListener("".concat(x.AJAX),n)}(window);function selector_engine_toConsumableArray(e){return function selector_engine_arrayWithoutHoles(e){if(Array.isArray(e))return selector_engine_arrayLikeToArray(e)}(e)||function selector_engine_iterableToArray(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function selector_engine_unsupportedIterableToArray(e,t){if(!e)return;if("string"===typeof e)return selector_engine_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 selector_engine_arrayLikeToArray(e,t)}(e)||function selector_engine_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 selector_engine_arrayLikeToArray(e,t){(null==t||t>e.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 util_typeof(e){return(util_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 Ls="transitionend",Ns=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="#".concat(n.split("#")[1])),t=n&&"#"!==n?n.trim():null}return t},Ps=function getTransitionDurationFromElement(e){if(!e)return 0;var t=window.getComputedStyle(e),n=t.transitionDuration,r=t.transitionDelay,i=Number.parseFloat(n),d=Number.parseFloat(r);return i||d?(n=n.split(",")[0],r=r.split(",")[0],1e3*(Number.parseFloat(n)+Number.parseFloat(r))):0},Rs=function triggerTransitionEnd(e){e.dispatchEvent(new Event(Ls))},js=function isElement(e){return!(!e||"object"!==util_typeof(e))&&("undefined"!==typeof e.jquery&&(e=e[0]),"undefined"!==typeof e.nodeType)},Ms=function getjQuery(){var jQuery=window.jQuery;return jQuery&&!document.body.hasAttribute("data-bs-no-jquery")?jQuery:null},Fs=[],qs=function isRTL(){return"rtl"===document.documentElement.dir},Bs=function execute(e){"function"===typeof e&&e()},Qs=function executeAfterTransition(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(n){var r=5,i=Ps(t)+r,d=!1,h=function handler(n){n.target===t&&(d=!0,t.removeEventListener(Ls,handler),Bs(e))};t.addEventListener(Ls,h),setTimeout((function(){d||Rs(t)}),i)}else Bs(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=null==e?null:"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;i0?Ds.findOne(e):null}(e))&&(this._element=e,ec(this._element,this.constructor.DATA_KEY,this))}return function base_component_createClass(e,t,n){return t&&base_component_defineProperties(e.prototype,t),n&&base_component_defineProperties(e,n),e}(BaseComponent,[{key:"dispose",value:function dispose(){var e=this;nc(this._element,this.constructor.DATA_KEY),Xs.off(this._element,this.constructor.EVENT_KEY),Object.getOwnPropertyNames(this).forEach((function(t){e[t]=null}))}},{key:"_queueCallback",value:function _queueCallback(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];Qs(e,t,n)}}],[{key:"getInstance",value:function getInstance(e){return tc(e,this.DATA_KEY)}},{key:"getOrCreateInstance",value:function getOrCreateInstance(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.getInstance(e)||new this(e,"object"===base_component_typeof(t)?t:null)}},{key:"VERSION",get:function get(){return"5.0.2"}},{key:"NAME",get:function get(){throw new Error('You have to implement the static method "NAME", for each component!')}},{key:"DATA_KEY",get:function get(){return"bs.".concat(this.NAME)}},{key:"EVENT_KEY",get:function get(){return".".concat(this.DATA_KEY)}}]),BaseComponent}();function carousel_typeof(e){return(carousel_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 carousel_ownKeys(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function carousel_objectSpread(e){for(var t=1;t0,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._slide(uc)}},{key:"nextWhenVisible",value:function nextWhenVisible(){!document.hidden&&function isVisible(e){return!(!js(e)||0===e.getClientRects().length)&&"visible"===getComputedStyle(e).getPropertyValue("visibility")}(this._element)&&this.next()}},{key:"prev",value:function prev(){this._slide(fc)}},{key:"pause",value:function pause(e){e||(this._isPaused=!0),Ds.findOne(".carousel-item-next, .carousel-item-prev",this._element)&&(Rs(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=Ds.findOne(xc,this._element);var n=this._getItemIndex(this._activeElement);if(!(e>this._items.length-1||e<0))if(this._isSliding)Xs.one(this._element,yc,(function(){return t.to(e)}));else{if(n===e)return this.pause(),void this.cycle();var r=e>n?uc:fc;this._slide(r,this._items[e])}}},{key:"_getConfig",value:function _getConfig(e){return e=carousel_objectSpread(carousel_objectSpread(carousel_objectSpread({},cc),$s.getDataAttributes(this._element)),"object"===carousel_typeof(e)?e:{}),function typeCheckConfig(e,t,n){Object.keys(n).forEach((function(r){var i=n[r],d=t[r],h=d&&js(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,'".'))}))}(ic,e,lc),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?dc:pc)}}},{key:"_addEventListeners",value:function _addEventListeners(){var e=this;this._config.keyboard&&Xs.on(this._element,gc,(function(t){return e._keydown(t)})),"hover"===this._config.pause&&(Xs.on(this._element,vc,(function(t){return e.pause(t)})),Xs.on(this._element,bc,(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!==Ic?e._pointerEvent||(e.touchStartX=t.touches[0].clientX):e.touchStartX=t.clientX},n=function end(t){!e._pointerEvent||"pen"!==t.pointerType&&t.pointerType!==Ic||(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))};Ds.find(".carousel-item img",this._element).forEach((function(e){Xs.on(e,Cc,(function(e){return e.preventDefault()}))})),this._pointerEvent?(Xs.on(this._element,Sc,(function(e){return t(e)})),Xs.on(this._element,kc,(function(e){return n(e)})),this._element.classList.add("pointer-event")):(Xs.on(this._element,_c,(function(e){return t(e)})),Xs.on(this._element,wc,(function(t){return function move(t){e.touchDeltaX=t.touches&&t.touches.length>1?0:t.touches[0].clientX-e.touchStartX}(t)})),Xs.on(this._element,Ec,(function(e){return n(e)})))}},{key:"_keydown",value:function _keydown(e){if(!/input|textarea/i.test(e.target.tagName)){var t=hc[e.key];t&&(e.preventDefault(),this._slide(t))}}},{key:"_getItemIndex",value:function _getItemIndex(e){return this._items=e&&e.parentNode?Ds.find(".carousel-item",e.parentNode):[],this._items.indexOf(e)}},{key:"_getItemByOrder",value:function _getItemByOrder(e,t){var n=e===uc;return function getNextActiveElement(e,t,n,r){var i=e.indexOf(t);if(-1===i)return e[!n&&r?e.length-1:0];var d=e.length;return i+=n?1:-1,r&&(i=(i+d)%d),e[Math.max(0,Math.min(i,d-1))]}(this._items,t,n,this._config.wrap)}},{key:"_triggerSlideEvent",value:function _triggerSlideEvent(e,t){var n=this._getItemIndex(e),r=this._getItemIndex(Ds.findOne(xc,this._element));return Xs.trigger(this._element,mc,{relatedTarget:e,direction:t,from:r,to:n})}},{key:"_setActiveIndicatorElement",value:function _setActiveIndicatorElement(e){if(this._indicatorsElement){var t=Ds.findOne(".active",this._indicatorsElement);t.classList.remove(Ac),t.removeAttribute("aria-current");for(var n=Ds.find("[data-bs-target]",this._indicatorsElement),r=0;r